Skip to content

Commit 8192b50

Browse files
committed
Fix code for linter
1 parent 0efb54e commit 8192b50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/traces/pointcloud/convert.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ proto.updateFast = function(options) {
176176
this.pointcloudOptions.color = markerColor;
177177

178178
var blend = options.marker.blend;
179-
if (blend == null) {
180-
blend = x.length < 100 || y.length < 100;
179+
if(blend === undefined) {
180+
var maxPoints = 100;
181+
blend = x.length < maxPoints || y.length < maxPoints;
181182
}
182183
this.pointcloudOptions.blend = blend;
183184

0 commit comments

Comments
 (0)