Skip to content

Commit 90cacae

Browse files
committed
fix issue with tozeroy/tozerox by only enable new fill behavior for toself/tonext
1 parent 5f779e0 commit 90cacae

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"polybooljs": "^1.2.0",
111111
"regl": "^1.6.1",
112112
"regl-error2d": "^2.0.11",
113-
"regl-line2d": "git://github.com/ruijin/regl-line2d.git#e9d0198ece05e135557e786d8815c23ed3fb0e9f",
113+
"regl-line2d": "git://github.com/ruijin/regl-line2d.git#75188f75010ed77e5f376e7f7dc153cd89813c88",
114114
"regl-scatter2d": "^3.2.1",
115115
"regl-splom": "^1.0.12",
116116
"right-now": "^1.0.0",

src/traces/scattergl/plot.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ module.exports = function plot(gd, subplot, cdata) {
182182
} else if(trace.fill === 'toself' || trace.fill === 'tonext') {
183183
pos = [];
184184
last = 0;
185+
186+
fillOptions.splitNull = true
187+
185188
for(j = 0; j < srcPos.length; j += 2) {
186189
if(isNaN(srcPos[j]) || isNaN(srcPos[j + 1])) {
187190
pos = pos.concat(srcPos.slice(last, j));

0 commit comments

Comments
 (0)