Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d8dc0a

Browse files
committed
refactor - rename zindex which is not zorder
1 parent 8b7805d commit 7d8dc0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plots/cartesian/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
244244
if(cdModule.length) {
245245
layerData.push({
246246
i: traceLayerClasses.indexOf(classBaseName),
247-
zorder: z,
247+
zindex: z,
248248
className: className,
249249
plotMethod: plotMethod,
250250
cdModule: cdModule
@@ -257,10 +257,10 @@ function plotOne(gd, plotinfo, cdSubplot, transitionOpts, makeOnCompleteCallback
257257
}
258258
}
259259
}
260-
// Sort the layers primarily by z, then by i
260+
// Sort the layers primarily by zindex, then by i
261261
layerData.sort(function(a, b) {
262262
return (
263-
(a.zorder || 0) - (b.zorder || 0) ||
263+
(a.zindex || 0) - (b.zindex || 0) ||
264264
(a.i - b.i)
265265
);
266266
});

0 commit comments

Comments
 (0)