Skip to content

Commit 1f61ff0

Browse files
committed
adapt scatterpolargl for scene.visibleBatch
1 parent 25ed567 commit 1f61ff0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/traces/scatterpolargl/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function plot(container, subplot, cdata) {
5454

5555
var scene = ScatterGl.sceneUpdate(container, subplot);
5656
scene.clear();
57+
scene.visibleBatch = [];
5758

5859
cdata.forEach(function(cdscatter, traceIndex) {
5960
if(!cdscatter || !cdscatter[0] || !cdscatter[0].trace) return;
@@ -64,6 +65,8 @@ function plot(container, subplot, cdata) {
6465
var thetaArray = stash.theta;
6566
var i, r, rr, theta, rad;
6667

68+
scene.uid2batchIndex[trace.uid] = traceIndex;
69+
6770
var subRArray = rArray.slice();
6871
var subThetaArray = thetaArray.slice();
6972

0 commit comments

Comments
 (0)