Skip to content

Commit cbd4834

Browse files
committed
use len as snap for regl-scatter2d
1 parent f7a5e73 commit cbd4834

File tree

4 files changed

+246993
-6
lines changed

4 files changed

+246993
-6
lines changed

src/traces/scattergl/calc.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,7 @@ module.exports = function calc(gd, trace) {
9797
if(opts.line && !scene.line2d) scene.line2d = true;
9898
if((opts.errorX || opts.errorY) && !scene.error2d) scene.error2d = true;
9999
if(opts.text && !scene.glText) scene.glText = true;
100-
101-
// FIXME: organize it in a more appropriate manner, probably in sceneOptions
102-
// put point-cluster instance for optimized regl calc
103-
if(opts.marker) {
104-
opts.marker.snap = stash.tree || TOO_MANY_POINTS;
105-
}
100+
if(opts.marker) opts.marker.snap = len;
106101

107102
scene.lineOptions.push(opts.line);
108103
scene.errorXOptions.push(opts.errorX);
1.05 MB
Loading

0 commit comments

Comments
 (0)