Skip to content

Commit 6033cc5

Browse files
committed
keep null in x,y so regl knows the end of polygon
1 parent d45eef5 commit 6033cc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/traces/scattergl/plot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ module.exports = function plot(gd, subplot, cdata) {
186186
if(isNaN(srcPos[j]) || isNaN(srcPos[j + 1])) {
187187
pos = pos.concat(srcPos.slice(last, j));
188188
pos.push(srcPos[last], srcPos[last + 1]);
189+
pos.push(null, null); // keep null to mark end of polygon
189190
last = j + 2;
190191
}
191192
}

0 commit comments

Comments
 (0)