diff --git a/lib/index-strict.js b/lib/index-strict.js
index 97f4fe57440..063cb44b236 100644
--- a/lib/index-strict.js
+++ b/lib/index-strict.js
@@ -19,6 +19,7 @@ Plotly.register([
require('./pie'),
require('./sunburst'),
require('./treemap'),
+ require('./voronoi'),
require('./icicle'),
require('./funnelarea'),
require('./scatter3d'),
diff --git a/lib/index.js b/lib/index.js
index 18fc6ed35b5..b9401bc7b7b 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -19,6 +19,7 @@ Plotly.register([
require('./pie'),
require('./sunburst'),
require('./treemap'),
+ require('./voronoi'),
require('./icicle'),
require('./funnelarea'),
require('./scatter3d'),
diff --git a/lib/voronoi.js b/lib/voronoi.js
new file mode 100644
index 00000000000..e84dcb2f2da
--- /dev/null
+++ b/lib/voronoi.js
@@ -0,0 +1,3 @@
+'use strict';
+
+module.exports = require('../src/traces/voronoi');
diff --git a/package-lock.json b/package-lock.json
index 59def33838a..7a4ac8b810e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -31,6 +31,7 @@
"d3-interpolate": "^3.0.1",
"d3-time": "^1.1.0",
"d3-time-format": "^2.2.3",
+ "d3-voronoi-treemap": "^1.1.2",
"fast-isnumeric": "^1.1.4",
"gl-mat4": "^1.2.0",
"gl-text": "^1.4.0",
@@ -45,12 +46,14 @@
"parse-svg-path": "^0.1.2",
"point-in-polygon": "^1.1.0",
"polybooljs": "^1.2.2",
+ "polygon-offset": "^0.3.2",
"probe-image-size": "^7.2.3",
"regl": "npm:@plotly/regl@^2.1.2",
"regl-error2d": "^2.0.12",
"regl-line2d": "^3.1.3",
"regl-scatter2d": "^3.3.1",
"regl-splom": "^1.0.14",
+ "round-polygon": "^0.6.7",
"strongly-connected-components": "^1.0.1",
"superscript-text": "^1.0.0",
"svg-path-sdf": "^1.1.3",
@@ -3685,6 +3688,11 @@
"resolved": "https://registry.npmjs.org/binary-search-bounds/-/binary-search-bounds-2.0.5.tgz",
"integrity": "sha512-H0ea4Fd3lS1+sTEB2TgcLoK21lLhwEJzlQv3IN47pJS976Gx4zoWe0ak3q+uYh60ppQxg9F16Ri4tS1sfD4+jA=="
},
+ "node_modules/bintrees": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.2.tgz",
+ "integrity": "sha512-VOMgTMwjAaUG580SXn3LacVgjurrbMme7ZZNYGSSV7mmtY6QQRh0Eg3pwIcntQ77DErK1L0NxkbetjcoXzVwKw=="
+ },
"node_modules/bit-twiddle": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/bit-twiddle/-/bit-twiddle-1.0.2.tgz",
@@ -4997,6 +5005,11 @@
"resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz",
"integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg=="
},
+ "node_modules/d3-polygon": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-2.0.0.tgz",
+ "integrity": "sha512-MsexrCK38cTGermELs0cO1d79DcTsQRN7IWMJKczD/2kBjzNXxLUWP33qRF6VDpiLV/4EI4r6Gs0DAWQkE8pSQ=="
+ },
"node_modules/d3-quadtree": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-1.0.7.tgz",
@@ -5028,6 +5041,52 @@
"resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-1.0.10.tgz",
"integrity": "sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw=="
},
+ "node_modules/d3-voronoi-map": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/d3-voronoi-map/-/d3-voronoi-map-2.1.1.tgz",
+ "integrity": "sha512-mCXfz/kD9IQxjHaU2IMjkO8fSo4J6oysPR2iL+omDsCy1i1Qn6BQ/e4hEAW8C6ms2kfuHwqtbNom80Hih94YsA==",
+ "dependencies": {
+ "d3-dispatch": "2.*",
+ "d3-polygon": "2.*",
+ "d3-timer": "2.*",
+ "d3-weighted-voronoi": "1.*"
+ }
+ },
+ "node_modules/d3-voronoi-map/node_modules/d3-dispatch": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-2.0.0.tgz",
+ "integrity": "sha512-S/m2VsXI7gAti2pBoLClFFTMOO1HTtT0j99AuXLoGFKO6deHDdnv6ZGTxSTTUTgO1zVcv82fCOtDjYK4EECmWA=="
+ },
+ "node_modules/d3-voronoi-map/node_modules/d3-timer": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-2.0.0.tgz",
+ "integrity": "sha512-TO4VLh0/420Y/9dO3+f9abDEFYeCUr2WZRlxJvbp4HPTQcSylXNiL6yZa9FIUvV1yRiFufl1bszTCLDqv9PWNA=="
+ },
+ "node_modules/d3-voronoi-treemap": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/d3-voronoi-treemap/-/d3-voronoi-treemap-1.1.2.tgz",
+ "integrity": "sha512-7odu9HdG/yLPWwzDteJq4yd9Q/NwgQV7IE/u36VQtcCK7k1sZwDqbkHCeMKNTBsq5mQjDwolTsrXcU0j8ZEMCA==",
+ "dependencies": {
+ "d3-voronoi-map": "2.*"
+ }
+ },
+ "node_modules/d3-weighted-voronoi": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/d3-weighted-voronoi/-/d3-weighted-voronoi-1.1.3.tgz",
+ "integrity": "sha512-C3WdvSKl9aqhAy+f3QT3PPsQG6V+ajDfYO3BSclQDSD+araW2xDBFIH67aKzsSuuuKaX8K2y2dGq1fq/dWTVig==",
+ "dependencies": {
+ "d3-array": "2",
+ "d3-polygon": "2"
+ }
+ },
+ "node_modules/d3-weighted-voronoi/node_modules/d3-array": {
+ "version": "2.12.1",
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz",
+ "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==",
+ "dependencies": {
+ "internmap": "^1.0.0"
+ }
+ },
"node_modules/data-urls": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz",
@@ -7597,6 +7656,11 @@
"node": ">= 0.4"
}
},
+ "node_modules/internmap": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz",
+ "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw=="
+ },
"node_modules/interpret": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz",
@@ -9057,6 +9121,20 @@
"resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz",
"integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g=="
},
+ "node_modules/martinez-polygon-clipping": {
+ "version": "0.1.5",
+ "resolved": "https://registry.npmjs.org/martinez-polygon-clipping/-/martinez-polygon-clipping-0.1.5.tgz",
+ "integrity": "sha512-sZ/tS4/DfyzZlTjrg8ZRt1YxNoI83HkRCKkAU9u41YTyUm/S87yVZZa+8fc29sz081Hn8VDysrZOyaU0Wna8mQ==",
+ "dependencies": {
+ "bintrees": "^1.0.1",
+ "tinyqueue": "^1.1.0"
+ }
+ },
+ "node_modules/martinez-polygon-clipping/node_modules/tinyqueue": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-1.2.3.tgz",
+ "integrity": "sha512-Qz9RgWuO9l8lT+Y9xvbzhPT2efIUIFd69N7eF7tJ9lnQl0iLj1M7peK7IoUGZL9DJHw9XftqLreccfxcQgYLxA=="
+ },
"node_modules/math-log2": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/math-log2/-/math-log2-1.0.1.tgz",
@@ -10439,6 +10517,14 @@
"resolved": "https://registry.npmjs.org/polybooljs/-/polybooljs-1.2.2.tgz",
"integrity": "sha512-ziHW/02J0XuNuUtmidBc6GXE8YohYydp3DWPWXYsd7O721TjcmN+k6ezjdwkDqep+gnWnFY+yqZHvzElra2oCg=="
},
+ "node_modules/polygon-offset": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/polygon-offset/-/polygon-offset-0.3.2.tgz",
+ "integrity": "sha512-+EqcQ6aITqEzgTFiLTPdeYRJq/JiV2eJFxBPI6sKgULz4x7UPNPKcCQb8YvXp1lMPeeBK+qqLTI8AbYy9W2CUg==",
+ "dependencies": {
+ "martinez-polygon-clipping": "^0.1.5"
+ }
+ },
"node_modules/postcss": {
"version": "8.4.41",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz",
@@ -11224,6 +11310,11 @@
"inherits": "^2.0.1"
}
},
+ "node_modules/round-polygon": {
+ "version": "0.6.7",
+ "resolved": "https://registry.npmjs.org/round-polygon/-/round-polygon-0.6.7.tgz",
+ "integrity": "sha512-h5rNwOEP6+EHeRuZAGI2/HsNdl6UCKIFvQXzQfv7nTICZ4/sIURe51vOmQJgk/I6KW5LjQ87HJFoASKjaIEySQ=="
+ },
"node_modules/rrweb-cssom": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.7.1.tgz",
diff --git a/package.json b/package.json
index 87e468da773..cb234954eab 100644
--- a/package.json
+++ b/package.json
@@ -89,6 +89,7 @@
"d3-interpolate": "^3.0.1",
"d3-time": "^1.1.0",
"d3-time-format": "^2.2.3",
+ "d3-voronoi-treemap": "^1.1.2",
"fast-isnumeric": "^1.1.4",
"gl-mat4": "^1.2.0",
"gl-text": "^1.4.0",
@@ -103,12 +104,14 @@
"parse-svg-path": "^0.1.2",
"point-in-polygon": "^1.1.0",
"polybooljs": "^1.2.2",
+ "polygon-offset": "^0.3.2",
"probe-image-size": "^7.2.3",
"regl": "npm:@plotly/regl@^2.1.2",
"regl-error2d": "^2.0.12",
"regl-line2d": "^3.1.3",
"regl-scatter2d": "^3.3.1",
"regl-splom": "^1.0.14",
+ "round-polygon": "^0.6.7",
"strongly-connected-components": "^1.0.1",
"superscript-text": "^1.0.0",
"svg-path-sdf": "^1.1.3",
diff --git a/src/plot_api/plot_api.js b/src/plot_api/plot_api.js
index e82bd29ebc1..427d2535fb7 100644
--- a/src/plot_api/plot_api.js
+++ b/src/plot_api/plot_api.js
@@ -3805,12 +3805,15 @@ function makePlotFramework(gd) {
// single pie layer for the whole plot
fullLayout._pielayer = fullLayout._paper.append('g').classed('pielayer', true);
- // single treemap layer for the whole plot
+ // single icicle layer for the whole plot
fullLayout._iciclelayer = fullLayout._paper.append('g').classed('iciclelayer', true);
// single treemap layer for the whole plot
fullLayout._treemaplayer = fullLayout._paper.append('g').classed('treemaplayer', true);
+ // single voronoi layer for the whole plot
+ fullLayout._voronoilayer = fullLayout._paper.append('g').classed('voronoilayer', true);
+
// single sunburst layer for the whole plot
fullLayout._sunburstlayer = fullLayout._paper.append('g').classed('sunburstlayer', true);
diff --git a/src/plots/plots.js b/src/plots/plots.js
index 0aaab922b95..1ea8609f74d 100644
--- a/src/plots/plots.js
+++ b/src/plots/plots.js
@@ -3043,10 +3043,11 @@ plots.doCalcdata = function(gd, traces) {
gd._hmpixcount = 0;
gd._hmlumcount = 0;
- // for sharing colors across pies / sunbursts / treemap / icicle / funnelarea (and for legend)
+ // for sharing colors across pies / sunbursts / treemap / voronoi / icicle / funnelarea (and for legend)
fullLayout._piecolormap = {};
fullLayout._sunburstcolormap = {};
fullLayout._treemapcolormap = {};
+ fullLayout._voronoicolormap = {};
fullLayout._iciclecolormap = {};
fullLayout._funnelareacolormap = {};
diff --git a/src/traces/bar/uniform_text.js b/src/traces/bar/uniform_text.js
index 825018e44d0..dbcc8cc69da 100644
--- a/src/traces/bar/uniform_text.js
+++ b/src/traces/bar/uniform_text.js
@@ -17,6 +17,7 @@ function resizeText(gd, gTrace, traceType) {
selector = 'g.slice';
break;
case 'treemap' :
+ case 'voronoi' :
case 'icicle' :
selector = 'g.slice, g.pathbar';
break;
diff --git a/src/traces/pie/defaults.js b/src/traces/pie/defaults.js
index f2aef62d0e2..8d612ef3046 100644
--- a/src/traces/pie/defaults.js
+++ b/src/traces/pie/defaults.js
@@ -41,7 +41,7 @@ function handleMarkerDefaults(traceIn, traceOut, layout, coerce, isPie) {
if(lineWidth) {
coerce('marker.line.color',
isPie ? undefined :
- layout.paper_bgcolor // case of funnelarea, sunburst, icicle, treemap
+ layout.paper_bgcolor // case of funnelarea, sunburst, icicle, treemap, voronoi
);
}
diff --git a/src/traces/sunburst/attributes.js b/src/traces/sunburst/attributes.js
index 73a769b8009..c2684f06ca9 100644
--- a/src/traces/sunburst/attributes.js
+++ b/src/traces/sunburst/attributes.js
@@ -208,7 +208,7 @@ module.exports = {
editType: 'calc',
dflt: 'rgba(0,0,0,0)',
description: [
- 'sets the color of the root node for a sunburst/treemap/icicle trace.',
+ 'sets the color of the root node for a sunburst/treemap/voronoi/icicle trace.',
'this has no effect when a colorscale is used to set the markers.'
].join(' ')
},
diff --git a/src/traces/sunburst/calc.js b/src/traces/sunburst/calc.js
index c05e4a39f1e..06bef3ec95a 100644
--- a/src/traces/sunburst/calc.js
+++ b/src/traces/sunburst/calc.js
@@ -13,6 +13,7 @@ var ALMOST_EQUAL = require('../../constants/numerical').ALMOST_EQUAL;
var sunburstExtendedColorWays = {};
var treemapExtendedColorWays = {};
+var voronoiExtendedColorWays = {};
var icicleExtendedColorWays = {};
exports.calc = function(gd, trace) {
@@ -248,6 +249,7 @@ exports._runCrossTraceCalc = function(desiredType, gd) {
colorWay = generateExtendedColors(colorWay,
desiredType === 'icicle' ? icicleExtendedColorWays :
desiredType === 'treemap' ? treemapExtendedColorWays :
+ desiredType === 'voronoi' ? voronoiExtendedColorWays :
sunburstExtendedColorWays
);
}
diff --git a/src/traces/sunburst/fx.js b/src/traces/sunburst/fx.js
index cb634567664..215d5024bb9 100644
--- a/src/traces/sunburst/fx.js
+++ b/src/traces/sunburst/fx.js
@@ -20,6 +20,7 @@ module.exports = function attachFxHandlers(sliceTop, entry, gd, cd, opts) {
var isSunburst = trace.type === 'sunburst';
var isTreemapOrIcicle =
trace.type === 'treemap' ||
+ trace.type === 'voronoi' ||
trace.type === 'icicle';
// hover state vars
diff --git a/src/traces/treemap/draw_descendants.js b/src/traces/treemap/draw_descendants.js
index dc37f2e0ceb..fdda154564d 100644
--- a/src/traces/treemap/draw_descendants.js
+++ b/src/traces/treemap/draw_descendants.js
@@ -132,7 +132,7 @@ module.exports = function drawDescendants(gd, cd, entry, slices, opts) {
pt._y0 = viewY(pt.y0);
pt._y1 = viewY(pt.y1);
- pt._hoverX = viewX(pt.x1 - trace.marker.pad.r),
+ pt._hoverX = viewX(pt.x1 - trace.marker.pad.r);
pt._hoverY = hasBottom ?
viewY(pt.y1 - trace.marker.pad.b / 2) :
viewY(pt.y0 + trace.marker.pad.t / 2);
diff --git a/src/traces/treemap/plot_one.js b/src/traces/treemap/plot_one.js
index a7fac9b6491..0846909cd8d 100644
--- a/src/traces/treemap/plot_one.js
+++ b/src/traces/treemap/plot_one.js
@@ -2,6 +2,7 @@
var d3 = require('@plotly/d3');
var interpolate = require('d3-interpolate').interpolate;
+var roundPolygon = require('round-polygon');
var helpers = require('../sunburst/helpers');
@@ -26,6 +27,7 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
var trace = cd0.trace;
var type = trace.type;
var isIcicle = type === 'icicle';
+ var isVoronoi = type === 'voronoi';
var hierarchy = cd0.hierarchy;
var entry = helpers.findEntryWithLevel(hierarchy, trace.level);
@@ -41,7 +43,10 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
}
var isRoot = helpers.isHierarchyRoot(entry);
- var hasTransition = !fullLayout.uniformtext.mode && helpers.hasTransition(transitionOpts);
+ var hasTransition =
+ !isVoronoi && // TODO: Could we handle transitions for voronoi?
+ !fullLayout.uniformtext.mode &&
+ helpers.hasTransition(transitionOpts);
var maxDepth = helpers.getMaxDepth(trace);
var hasVisibleDepth = function(pt) {
@@ -210,7 +215,11 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
// `pad` is a hashmap for treemap: pad.t, pad.b, pad.l, and pad.r
var pad = trace[isIcicle ? 'tiling' : 'marker'].pad;
- var hasFlag = function(f) { return trace.textposition.indexOf(f) !== -1; };
+ var textposition =
+ trace.textposition ||
+ 'middle center'; // case of voronoi
+
+ var hasFlag = function(f) { return textposition.indexOf(f) !== -1; };
var hasTop = hasFlag('top');
var hasLeft = hasFlag('left');
@@ -229,17 +238,54 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
if(!dx || !dy) return '';
var cornerradius = trace.marker.cornerradius || 0;
- var r = Math.min(cornerradius, dx / 2, dy / 2);
- if(
- r &&
- d.data &&
- d.data.data &&
- d.data.data.label
- ) {
- if(hasTop) r = Math.min(r, pad.t);
- if(hasLeft) r = Math.min(r, pad.l);
- if(hasRight) r = Math.min(r, pad.r);
- if(hasBottom) r = Math.min(r, pad.b);
+ var r = cornerradius;
+ if(!isVoronoi) {
+ r = Math.min(r, dx / 2, dy / 2);
+ if(
+ r &&
+ d.data &&
+ d.data.data &&
+ d.data.data.label
+ ) {
+ if(hasTop) r = Math.min(r, pad.t);
+ if(hasLeft) r = Math.min(r, pad.l);
+ if(hasRight) r = Math.min(r, pad.r);
+ if(hasBottom) r = Math.min(r, pad.b);
+ }
+ }
+
+ if(isVoronoi) {
+ var path = '';
+ if(d.polygon) {
+ var polygonToRound = [];
+ for(var i = 0; i < d.polygon.length; i++) {
+ var x = viewMapX(d.polygon[i][0]);
+ var y = viewMapY(d.polygon[i][1]);
+ if(r) {
+ polygonToRound.push({x: x, y: y});
+ } else {
+ path += i ? 'L' : 'M';
+ path += pos(x, y);
+ }
+ }
+
+ if(r) {
+ var roundedPolygon = roundPolygon.default(polygonToRound, r);
+ path = '';
+
+ var segments = roundPolygon.getSegments(roundedPolygon, 'LENGTH', 3);
+
+ for(var k = 0; k < segments.length; k++) {
+ var p = segments[k];
+ path += k ? 'L' : 'M';
+ path += pos(p.x, p.y);
+ }
+ }
+
+ path += 'Z';
+ }
+
+ return path;
}
var arc = function(rx, ry) { return r ? 'a' + pos(r, r) + ' 0 0 1 ' + pos(rx, ry) : ''; };
@@ -277,8 +323,8 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
_hasRight ? 1 : 0;
if(opts.isHeader) {
- x0 += (isIcicle ? pad : pad.l) - TEXTPAD;
- x1 -= (isIcicle ? pad : pad.r) - TEXTPAD;
+ x0 += (isVoronoi ? 0 : isIcicle ? pad : pad.l) - TEXTPAD;
+ x1 -= (isVoronoi ? 0 : isIcicle ? pad : pad.r) - TEXTPAD;
if(x0 >= x1) {
var mid = (x0 + x1) / 2;
x0 = mid;
@@ -288,10 +334,10 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
// limit the drawing area for headers
var limY;
if(hasBottom) {
- limY = y1 - (isIcicle ? pad : pad.b);
+ limY = y1 - (isVoronoi ? 0 : isIcicle ? pad : pad.b);
if(y0 < limY && limY < y1) y0 = limY;
} else {
- limY = y0 + (isIcicle ? pad : pad.t);
+ limY = y0 + (isVoronoi ? 0 : isIcicle ? pad : pad.t);
if(y0 < limY && limY < y1) y1 = limY;
}
}
diff --git a/src/traces/voronoi/attributes.js b/src/traces/voronoi/attributes.js
new file mode 100644
index 00000000000..aff525e4f7d
--- /dev/null
+++ b/src/traces/voronoi/attributes.js
@@ -0,0 +1,126 @@
+'use strict';
+
+var extendFlat = require('../../lib/extend').extendFlat;
+var colorScaleAttrs = require('../../components/colorscale/attributes');
+var domainAttrs = require('../../plots/domain').attributes;
+var treemapAttrs = require('../treemap/attributes');
+var treemapMarker = treemapAttrs.marker;
+
+module.exports = {
+ labels: treemapAttrs.labels,
+ parents: treemapAttrs.parents,
+
+ values: treemapAttrs.values,
+ branchvalues: treemapAttrs.branchvalues,
+ count: treemapAttrs.count,
+
+ level: treemapAttrs.level,
+ maxdepth: treemapAttrs.maxdepth,
+
+ tiling: {
+ seed: {
+ valType: 'integer',
+ dflt: 0,
+ min: 0,
+ max: 100,
+ editType: 'plot',
+ description: [
+ 'Determines seed which controls creation of identical or different grid representations.',
+
+ ].join(' ')
+ },
+
+ shape: {
+ valType: 'enumerated',
+ values: [
+ 'circle',
+ 'ellipse',
+ 'rectangle',
+ 'triangle',
+ 'square',
+ 'pentagon',
+ 'hexagon',
+ 'heptagon',
+ 'octagon',
+ 'nonagon',
+ 'decagon',
+ 'undecagon',
+ 'dodecagon',
+ // TODO: add other shapes e.g. half circle, pie
+ ],
+ dflt: 'hexagon',
+ editType: 'plot',
+ description: [
+ 'Determines aspect ratio between width and height of shape',
+ ].join(' ')
+ },
+
+ aspectratio: {
+ valType: 'number',
+ min: 0,
+ editType: 'plot',
+ description: [
+ 'Determines aspect ratio between width and height of shape',
+ 'Defalts to 0 when `tiling.shape` is set to *rectangle*, *ellipse* or *triangle*.',
+ 'Defalts to 1 when `tiling.shape` is set to *square*, *circle*, *pentagon*, *hexagon*, etc.'
+ ].join(' ')
+ },
+
+ // TODO: add rotation?
+ // TODO: add flip?
+
+ pad: {
+ valType: 'number',
+ min: 0,
+ dflt: 2,
+ editType: 'plot',
+ description: [
+ 'Sets the inner padding (in px) for each level of the hierarchy.',
+ ].join(' ')
+ },
+
+ editType: 'calc',
+ },
+
+ marker: extendFlat({
+ colors: treemapMarker.colors,
+ pattern: treemapMarker.pattern,
+ depthfade: treemapMarker.depthfade,
+ line: treemapMarker.line,
+ cornerradius: treemapMarker.cornerradius,
+ editType: 'calc',
+ },
+ colorScaleAttrs('marker', {
+ colorAttr: 'colors',
+ anim: false
+ })
+ ),
+
+ pathbar: treemapAttrs.pathbar,
+
+ text: treemapAttrs.text,
+ textinfo: treemapAttrs.textinfo,
+
+ hovertext: treemapAttrs.hovertext,
+ hoverinfo: treemapAttrs.hoverinfo,
+ hovertemplate: treemapAttrs.hovertemplate,
+ texttemplate: treemapAttrs.texttemplate,
+
+ textfont: treemapAttrs.textfont,
+ insidetextfont: treemapAttrs.insidetextfont,
+ outsidetextfont: extendFlat({}, treemapAttrs.outsidetextfont, {
+ description: [
+ 'Sets the font used for `textinfo` lying outside the sector.',
+ 'This option refers to the root of the hierarchy',
+ 'presented when viewing the root of a voronoi graph.',
+ 'Please note that if a hierarchy has multiple root nodes,',
+ 'this option won\'t have any effect and `insidetextfont` would be used.'
+ ].join(' ')
+ }),
+
+
+ sort: treemapAttrs.sort, // TODO: possibly unused?
+ root: treemapAttrs.root,
+
+ domain: domainAttrs({name: 'voronoi', trace: true, editType: 'calc'}),
+};
diff --git a/src/traces/voronoi/base_plot.js b/src/traces/voronoi/base_plot.js
new file mode 100644
index 00000000000..4ed721599f4
--- /dev/null
+++ b/src/traces/voronoi/base_plot.js
@@ -0,0 +1,13 @@
+'use strict';
+
+var plots = require('../../plots/plots');
+
+exports.name = 'voronoi';
+
+exports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {
+ plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);
+};
+
+exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {
+ plots.cleanBasePlot(exports.name, newFullData, newFullLayout, oldFullData, oldFullLayout);
+};
diff --git a/src/traces/voronoi/calc.js b/src/traces/voronoi/calc.js
new file mode 100644
index 00000000000..7907105a3a4
--- /dev/null
+++ b/src/traces/voronoi/calc.js
@@ -0,0 +1,11 @@
+'use strict';
+
+var calc = require('../sunburst/calc');
+
+exports.calc = function(gd, trace) {
+ return calc.calc(gd, trace);
+};
+
+exports.crossTraceCalc = function(gd) {
+ return calc._runCrossTraceCalc('voronoi', gd);
+};
diff --git a/src/traces/voronoi/defaults.js b/src/traces/voronoi/defaults.js
new file mode 100644
index 00000000000..5490b4b3fe2
--- /dev/null
+++ b/src/traces/voronoi/defaults.js
@@ -0,0 +1,108 @@
+'use strict';
+
+var Lib = require('../../lib');
+var attributes = require('./attributes');
+var Color = require('../../components/color');
+var handleDomainDefaults = require('../../plots/domain').defaults;
+var handleText = require('../bar/defaults').handleText;
+var TEXTPAD = require('../bar/constants').TEXTPAD;
+var handleMarkerDefaults = require('../pie/defaults').handleMarkerDefaults;
+
+var Colorscale = require('../../components/colorscale');
+var hasColorscale = Colorscale.hasColorscale;
+var colorscaleDefaults = Colorscale.handleDefaults;
+
+module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) {
+ function coerce(attr, dflt) {
+ return Lib.coerce(traceIn, traceOut, attributes, attr, dflt);
+ }
+
+ var labels = coerce('labels');
+ var parents = coerce('parents');
+
+ if(!labels || !labels.length || !parents || !parents.length) {
+ traceOut.visible = false;
+ return;
+ }
+
+ var vals = coerce('values');
+ if(vals && vals.length) {
+ coerce('branchvalues');
+ } else {
+ coerce('count');
+ }
+
+ coerce('level');
+ coerce('maxdepth');
+
+ var shape = coerce('tiling.shape');
+ coerce('tiling.aspectratio', [
+ 'rectangle',
+ 'triangle',
+ 'ellipse'
+ ].indexOf(shape) !== -1 ? 0 : 1
+ );
+
+ coerce('tiling.seed');
+ coerce('tiling.pad');
+
+ var text = coerce('text');
+ coerce('texttemplate');
+ if(!traceOut.texttemplate) coerce('textinfo', Lib.isArrayOrTypedArray(text) ? 'text+label' : 'label');
+
+ coerce('hovertext');
+ coerce('hovertemplate');
+
+ var hasPathbar = coerce('pathbar.visible');
+
+ var textposition = 'auto';
+ handleText(traceIn, traceOut, layout, coerce, textposition, {
+ hasPathbar: hasPathbar,
+ moduleHasSelected: false,
+ moduleHasUnselected: false,
+ moduleHasConstrain: false,
+ moduleHasCliponaxis: false,
+ moduleHasTextangle: false,
+ moduleHasInsideanchor: false
+ });
+
+ handleMarkerDefaults(traceIn, traceOut, layout, coerce);
+ var withColorscale = traceOut._hasColorscale = (
+ hasColorscale(traceIn, 'marker', 'colors') ||
+ (traceIn.marker || {}).coloraxis // N.B. special logic to consider "values" colorscales
+ );
+ if(withColorscale) {
+ colorscaleDefaults(traceIn, traceOut, layout, coerce, {prefix: 'marker.', cLetter: 'c'});
+ } else {
+ var depthfadeDflt = (traceOut.marker.colors || []).length ? false : 'reversed';
+ coerce('marker.depthfade', depthfadeDflt);
+ }
+
+ coerce('marker.cornerradius');
+
+ traceOut._hovered = {
+ marker: {
+ line: {
+ width: 2,
+ color: Color.contrast(layout.paper_bgcolor)
+ }
+ }
+ };
+
+ if(hasPathbar) {
+ // This works even for multi-line labels as voronoi pathbar trim out line breaks
+ coerce('pathbar.thickness', traceOut.pathbar.textfont.size + 2 * TEXTPAD);
+
+ coerce('pathbar.side');
+ coerce('pathbar.edgeshape');
+ }
+
+ coerce('sort');
+
+ coerce('root.color');
+
+ handleDomainDefaults(traceOut, layout, coerce);
+
+ // do not support transforms for now
+ traceOut._length = null;
+};
diff --git a/src/traces/voronoi/draw_descendants.js b/src/traces/voronoi/draw_descendants.js
new file mode 100644
index 00000000000..64413304042
--- /dev/null
+++ b/src/traces/voronoi/draw_descendants.js
@@ -0,0 +1,357 @@
+'use strict';
+
+var d3 = require('@plotly/d3');
+var Lib = require('../../lib');
+var Drawing = require('../../components/drawing');
+var svgTextUtils = require('../../lib/svg_text_utils');
+
+var Offset = require('polygon-offset');
+var voronoiTreemap = require('d3-voronoi-treemap').voronoiTreemap;
+var styleOne = require('./style').styleOne;
+var constants = require('../treemap/constants');
+var helpers = require('../sunburst/helpers');
+var attachFxHandlers = require('../sunburst/fx');
+var formatSliceLabel = require('../sunburst/plot').formatSliceLabel;
+
+var onPathbar = false; // for Descendants
+
+module.exports = function drawDescendants(gd, cd, entry, slices, opts) {
+ var width = opts.width;
+ var height = opts.height;
+ var viewX = opts.viewX;
+ var viewY = opts.viewY;
+ var pathSlice = opts.pathSlice;
+ var toMoveInsideSlice = opts.toMoveInsideSlice;
+ var strTransform = opts.strTransform;
+ var hasTransition = opts.hasTransition;
+ var handleSlicesExit = opts.handleSlicesExit;
+ var makeUpdateSliceInterpolator = opts.makeUpdateSliceInterpolator;
+ var makeUpdateTextInterpolator = opts.makeUpdateTextInterpolator;
+ var prevEntry = opts.prevEntry;
+ var refRect = {};
+
+ var isStatic = gd._context.staticPlot;
+
+ var fullLayout = gd._fullLayout;
+ var cd0 = cd[0];
+ var trace = cd0.trace;
+
+ entry.each(function(pt) {
+ pt.weight = pt.value;
+ });
+
+
+ var tiling = trace.tiling;
+
+ Lib.seedPseudoRandom();
+ for(var seed = 0; seed < tiling.seed; seed++) {
+ Lib.pseudoRandom();
+ }
+
+ voronoiTreemap()
+ .prng(Lib.pseudoRandom)
+ .clip(createShape(
+ tiling.shape,
+ tiling.aspectratio,
+ width,
+ height
+ ))(entry);
+
+ entry.each(function(pt) {
+ var offsetValue = trace.tiling.pad * (
+ pt.height + 1
+ // pt.depth // TODO: an option could be exposed
+ );
+ if(offsetValue) {
+ var site = pt.polygon.site; // keep track of attached site
+
+ // offset polygon
+ var offset = new Offset();
+ pt.polygon.push(pt.polygon[0]); // duplicate first vertex to close
+ pt.polygon = offset.data(
+ pt.polygon
+ ).padding(offsetValue)[0];
+ if(pt.polygon) {
+ pt.polygon.pop(); // delete the vertex we added
+ } else {
+ pt.polygon = [];
+ }
+
+ pt.polygon.site = site;
+ }
+
+ var minX = Infinity;
+ var minY = Infinity;
+ var maxX = -Infinity;
+ var maxY = -Infinity;
+
+ var sumX = 0;
+ var sumY = 0;
+ var len = pt.polygon.length;
+ for(var i = 0; i < len; i++) {
+ var x = pt.polygon[i][0];
+ var y = pt.polygon[i][1];
+ minX = Math.min(minX, x);
+ maxX = Math.max(maxX, x);
+ minY = Math.min(minY, y);
+ maxY = Math.max(maxY, y);
+ sumX += x;
+ sumY += y;
+ }
+
+ var ave = [sumX / len, sumY / len];
+ var cen = getCentroid(pt.polygon);
+
+ // Estimating a large orthogonal rectangle
+ // TODO: improve me to find the largest inside the polygon
+ var a = -1;
+ var b = 2;
+ var c = 2;
+ pt.x0 = (a * ave[0] + b * minX + c * cen[0]) / (a + b + c);
+ pt.x1 = (a * ave[0] + b * maxX + c * cen[0]) / (a + b + c);
+ pt.y0 = (a * ave[1] + b * minY + c * cen[1]) / (a + b + c);
+ pt.y1 = (a * ave[1] + b * maxY + c * cen[1]) / (a + b + c);
+ });
+
+ var sliceData = entry.descendants();
+
+ var minVisibleDepth = Infinity;
+ var maxVisibleDepth = -Infinity;
+ sliceData.forEach(function(pt) {
+ var depth = pt.depth;
+ if(depth >= trace._maxDepth) {
+ // hide slices that won't show up on graph
+ pt.x0 = pt.x1 = (pt.x0 + pt.x1) / 2;
+ pt.y0 = pt.y1 = (pt.y0 + pt.y1) / 2;
+ } else {
+ minVisibleDepth = Math.min(minVisibleDepth, depth);
+ maxVisibleDepth = Math.max(maxVisibleDepth, depth);
+ }
+ });
+
+ slices = slices.data(sliceData, helpers.getPtId);
+
+ trace._maxVisibleLayers = isFinite(maxVisibleDepth) ? maxVisibleDepth - minVisibleDepth + 1 : 0;
+
+ slices.enter().append('g')
+ .classed('slice', true);
+
+ handleSlicesExit(slices, onPathbar, refRect, [width, height], pathSlice);
+
+ slices.order();
+
+ // next coords of previous entry
+ var nextOfPrevEntry = null;
+ if(hasTransition && prevEntry) {
+ var prevEntryId = helpers.getPtId(prevEntry);
+ slices.each(function(pt) {
+ if(nextOfPrevEntry === null && (helpers.getPtId(pt) === prevEntryId)) {
+ nextOfPrevEntry = {
+ x0: pt.x0,
+ x1: pt.x1,
+ y0: pt.y0,
+ y1: pt.y1
+ };
+ }
+ });
+ }
+
+ var getRefRect = function() {
+ return nextOfPrevEntry || {
+ x0: 0,
+ x1: width,
+ y0: 0,
+ y1: height
+ };
+ };
+
+ var updateSlices = slices;
+ if(hasTransition) {
+ updateSlices = updateSlices.transition().each('end', function() {
+ // N.B. gd._transitioning is (still) *true* by the time
+ // transition updates get here
+ var sliceTop = d3.select(this);
+ helpers.setSliceCursor(sliceTop, gd, {
+ hideOnRoot: true,
+ hideOnLeaves: false,
+ isTransitioning: false
+ });
+ });
+ }
+
+ updateSlices.each(function(pt) {
+ var isHeader = helpers.isHeader(pt, trace);
+
+ // for bbox
+ pt._x0 = viewX(pt.x0);
+ pt._x1 = viewX(pt.x1);
+ pt._y0 = viewY(pt.y0);
+ pt._y1 = viewY(pt.y1);
+
+ pt._hoverX = viewX(pt.x1);
+ pt._hoverY = viewY(pt.y0);
+
+ var sliceTop = d3.select(this);
+
+ var slicePath = Lib.ensureSingle(sliceTop, 'path', 'surface', function(s) {
+ s.style('pointer-events', isStatic ? 'none' : 'all');
+ });
+
+ if(hasTransition) {
+ slicePath.transition().attrTween('d', function(pt2) {
+ var interp = makeUpdateSliceInterpolator(pt2, onPathbar, getRefRect(), [width, height]);
+ return function(t) { return pathSlice(interp(t)); };
+ });
+ } else {
+ slicePath.attr('d', pathSlice);
+ }
+
+ sliceTop
+ .call(attachFxHandlers, entry, gd, cd, {
+ styleOne: styleOne,
+ eventDataKeys: constants.eventDataKeys,
+ transitionTime: constants.CLICK_TRANSITION_TIME,
+ transitionEasing: constants.CLICK_TRANSITION_EASING
+ })
+ .call(helpers.setSliceCursor, gd, { isTransitioning: gd._transitioning });
+
+ slicePath.call(styleOne, pt, trace, gd, {
+ hovered: false
+ });
+
+ if(pt.x0 === pt.x1 || pt.y0 === pt.y1) {
+ pt._text = '';
+ } else {
+ if(isHeader) {
+ pt._text = '';
+ } else {
+ pt._text = formatSliceLabel(pt, entry, trace, cd, fullLayout) || '';
+ }
+ }
+
+ var sliceTextGroup = Lib.ensureSingle(sliceTop, 'g', 'slicetext');
+ var sliceText = Lib.ensureSingle(sliceTextGroup, 'text', '', function(s) {
+ // prohibit tex interpretation until we can handle
+ // tex and regular text together
+ s.attr('data-notex', 1);
+ });
+
+ var font = Lib.ensureUniformFontSize(gd, helpers.determineTextFont(trace, pt, fullLayout.font));
+
+ var text = pt._text || ' '; // use one space character instead of a blank string to avoid jumps during transition
+
+ sliceText.text(text)
+ .classed('slicetext', true)
+ .attr('text-anchor', 'middle')
+ .call(Drawing.font, font)
+ .call(svgTextUtils.convertToTspans, gd);
+
+ pt.textBB = Drawing.bBox(sliceText.node());
+ pt.transform = toMoveInsideSlice(pt, {
+ fontSize: font.size,
+ isHeader: isHeader
+ });
+ pt.transform.fontSize = font.size;
+
+ if(hasTransition) {
+ sliceText.transition().attrTween('transform', function(pt2) {
+ var interp = makeUpdateTextInterpolator(pt2, onPathbar, getRefRect(), [width, height]);
+ return function(t) { return strTransform(interp(t)); };
+ });
+ } else {
+ sliceText.attr('transform', strTransform(pt));
+ }
+ });
+
+ return nextOfPrevEntry;
+};
+
+function getCentroid(points) {
+ var len = points.length;
+ if(!len) return [];
+
+ var A2 = 0;
+ var Sx = 0;
+ var Sy = 0;
+ for(var i = 0; i < len; i++) {
+ var p0 = points[i];
+ var p1 = points[(i + 1) % len];
+
+ var Q = p0[0] * p1[1] - p0[1] * p1[0];
+ A2 += Q;
+
+ Sx += (p0[0] + p1[0]) * Q;
+ Sy += (p0[1] + p1[1]) * Q;
+ }
+
+ return [
+ Sx / (A2 * 3),
+ Sy / (A2 * 3)
+ ];
+}
+
+var nShapes = {
+ rectangle: 4,
+ triangle: 3,
+ square: 4,
+ pentagon: 5,
+ hexagon: 6,
+ heptagon: 7,
+ octagon: 8,
+ nonagon: 9,
+ decagon: 10,
+ undecagon: 11,
+ dodecagon: 12,
+
+ // TODO: is this optimal for circles as well as ellipses?
+ circle: 360,
+ ellipse: 360,
+};
+
+function createShape(shape, aspectratio, width, height) {
+ var points = [];
+ var i;
+ var n = nShapes[shape];
+ var minX = Infinity;
+ var minY = Infinity;
+ var maxX = -Infinity;
+ var maxY = -Infinity;
+ var tStep = 2 * Math.PI / n;
+
+ var tStart = Math.PI / 2 - tStep / 2; // so that the bottom edge stay horizontal
+ for(i = 0; i < n; i++) {
+ var t = i * tStep + tStart;
+ var x = Math.cos(t);
+ var y = Math.sin(t);
+ points.push([x, y]);
+
+ minX = Math.min(minX, x);
+ maxX = Math.max(maxX, x);
+ minY = Math.min(minY, y);
+ maxY = Math.max(maxY, y);
+ }
+
+ var scaleX = width / (maxX - minX);
+ var scaleY = height / (maxY - minY);
+
+ if(aspectratio === 1) {
+ var minScale = Math.min(scaleX, scaleY);
+ scaleX = minScale;
+ scaleY = minScale;
+ } else if(aspectratio > 1) {
+ scaleY = scaleX / aspectratio;
+ } else if(aspectratio > 0) {
+ scaleX = scaleY * aspectratio;
+ }
+
+ var oX = ((-minX > maxX) ? 1 : -1) * (minX + maxX) / 2;
+ var oY = ((-minY > maxY) ? -1 : 1) * (minY + maxY) / 2;
+
+ for(i = 0; i < n; i++) {
+ var p = points[i];
+ p[0] = (p[0] + oX) * scaleX + width / 2;
+ p[1] = (p[1] + oY) * scaleY + height / 2;
+ }
+
+ return points;
+}
diff --git a/src/traces/voronoi/index.js b/src/traces/voronoi/index.js
new file mode 100644
index 00000000000..7e33caeb054
--- /dev/null
+++ b/src/traces/voronoi/index.js
@@ -0,0 +1,30 @@
+'use strict';
+
+module.exports = {
+ moduleType: 'trace',
+ name: 'voronoi',
+ basePlotModule: require('./base_plot'),
+ categories: [],
+ animatable: true,
+
+ attributes: require('./attributes'),
+ layoutAttributes: require('./layout_attributes'),
+ supplyDefaults: require('./defaults'),
+ supplyLayoutDefaults: require('./layout_defaults'),
+
+ calc: require('./calc').calc,
+ crossTraceCalc: require('./calc').crossTraceCalc,
+
+ plot: require('./plot'),
+ style: require('./style').style,
+
+ colorbar: require('../scatter/marker_colorbar'),
+
+ meta: {
+ description: [
+ 'Visualize hierarchal data from leaves (and/or outer branches) towards root',
+ 'with rectangles. The voronoi sectors are determined by the entries in',
+ '*labels* or *ids* and in *parents*.'
+ ].join(' ')
+ }
+};
diff --git a/src/traces/voronoi/layout_attributes.js b/src/traces/voronoi/layout_attributes.js
new file mode 100644
index 00000000000..39ba534be5c
--- /dev/null
+++ b/src/traces/voronoi/layout_attributes.js
@@ -0,0 +1,29 @@
+'use strict';
+
+module.exports = {
+ voronoicolorway: {
+ valType: 'colorlist',
+ editType: 'calc',
+ description: [
+ 'Sets the default voronoi slice colors. Defaults to the main',
+ '`colorway` used for trace colors. If you specify a new',
+ 'list here it can still be extended with lighter and darker',
+ 'colors, see `extendvoronoicolors`.'
+ ].join(' ')
+ },
+ extendvoronoicolors: {
+ valType: 'boolean',
+ dflt: true,
+ editType: 'calc',
+ description: [
+ 'If `true`, the voronoi slice colors (whether given by `voronoicolorway` or',
+ 'inherited from `colorway`) will be extended to three times its',
+ 'original length by first repeating every color 20% lighter then',
+ 'each color 20% darker. This is intended to reduce the likelihood',
+ 'of reusing the same color when you have many slices, but you can',
+ 'set `false` to disable.',
+ 'Colors provided in the trace, using `marker.colors`, are never',
+ 'extended.'
+ ].join(' ')
+ }
+};
diff --git a/src/traces/voronoi/layout_defaults.js b/src/traces/voronoi/layout_defaults.js
new file mode 100644
index 00000000000..cf43d60935e
--- /dev/null
+++ b/src/traces/voronoi/layout_defaults.js
@@ -0,0 +1,12 @@
+'use strict';
+
+var Lib = require('../../lib');
+var layoutAttributes = require('./layout_attributes');
+
+module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
+ function coerce(attr, dflt) {
+ return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);
+ }
+ coerce('voronoicolorway', layoutOut.colorway);
+ coerce('extendvoronoicolors');
+};
diff --git a/src/traces/voronoi/plot.js b/src/traces/voronoi/plot.js
new file mode 100644
index 00000000000..34b02648bbf
--- /dev/null
+++ b/src/traces/voronoi/plot.js
@@ -0,0 +1,11 @@
+'use strict';
+
+var draw = require('../treemap/draw');
+var drawDescendants = require('./draw_descendants');
+
+module.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback) {
+ return draw(gd, cdmodule, transitionOpts, makeOnCompleteCallback, {
+ type: 'voronoi',
+ drawDescendants: drawDescendants
+ });
+};
diff --git a/src/traces/voronoi/style.js b/src/traces/voronoi/style.js
new file mode 100644
index 00000000000..c6c9ddf6f07
--- /dev/null
+++ b/src/traces/voronoi/style.js
@@ -0,0 +1,29 @@
+'use strict';
+
+var d3 = require('@plotly/d3');
+var resizeText = require('../bar/uniform_text').resizeText;
+var styleOne = require('../treemap/style').styleOne;
+
+function style(gd) {
+ var s = gd._fullLayout._voronoilayer.selectAll('.trace');
+ resizeText(gd, s, 'voronoi');
+
+ s.each(function(cd) {
+ var gTrace = d3.select(this);
+ var cd0 = cd[0];
+ var trace = cd0.trace;
+
+ gTrace.style('opacity', trace.opacity);
+
+ gTrace.selectAll('path.surface').each(function(pt) {
+ d3.select(this).call(styleOne, pt, trace, gd, {
+ hovered: false
+ });
+ });
+ });
+}
+
+module.exports = {
+ style: style,
+ styleOne: styleOne
+};
diff --git a/tasks/test_syntax.js b/tasks/test_syntax.js
index 7fc13c3ab10..1e29c356c68 100644
--- a/tasks/test_syntax.js
+++ b/tasks/test_syntax.js
@@ -132,16 +132,17 @@ function assertSrcContents() {
} else if(IE_BLACK_LIST.indexOf(lastPart) !== -1) {
logs.push(file + ' : contains .' + lastPart + ' (IE failure)');
} else if(IE_SVG_BLACK_LIST.indexOf(lastPart) !== -1) {
- // add special case for sunburst, icicle and treemap where we use 'children'
+ // add special case for sunburst, icicle, voronoi and treemap where we use 'children'
// off the d3-hierarchy output
var dirParts = path.dirname(file).split(path.sep);
var filename = dirParts[dirParts.length - 1];
- var isSunburstOrIcicleOrTreemap =
+ var hasHierarchy =
filename === 'sunburst' ||
filename === 'icicle' ||
+ filename === 'voronoi' ||
filename === 'treemap';
var isLinkedToObject = ['pt', 'd', 'parent', 'node'].indexOf(parts[parts.length - 2]) !== -1;
- if(!(isSunburstOrIcicleOrTreemap && isLinkedToObject)) {
+ if(!(hasHierarchy && isLinkedToObject)) {
logs.push(file + ' : contains .' + lastPart + ' (IE failure in SVG)');
}
}
diff --git a/tasks/util/constants.js b/tasks/util/constants.js
index cc29bd49276..a75bbfc23f4 100644
--- a/tasks/util/constants.js
+++ b/tasks/util/constants.js
@@ -158,6 +158,7 @@ var partialBundleTraces = {
'treemap',
'violin',
'volume',
+ 'voronoi',
'waterfall'
]
};
diff --git a/test/image/baselines/zz-uniformtext_sunburst_voronoi.png b/test/image/baselines/zz-uniformtext_sunburst_voronoi.png
new file mode 100644
index 00000000000..b6d17c7da08
Binary files /dev/null and b/test/image/baselines/zz-uniformtext_sunburst_voronoi.png differ
diff --git a/test/image/baselines/zz-uniformtext_voronoi.png b/test/image/baselines/zz-uniformtext_voronoi.png
new file mode 100644
index 00000000000..8a41340d9d4
Binary files /dev/null and b/test/image/baselines/zz-uniformtext_voronoi.png differ
diff --git a/test/image/baselines/zz-uniformtext_voronoi_coffee-maxdepth3.png b/test/image/baselines/zz-uniformtext_voronoi_coffee-maxdepth3.png
new file mode 100644
index 00000000000..04e6f274a73
Binary files /dev/null and b/test/image/baselines/zz-uniformtext_voronoi_coffee-maxdepth3.png differ
diff --git a/test/image/baselines/zz-voronoi_coffee-maxdepth3.png b/test/image/baselines/zz-voronoi_coffee-maxdepth3.png
new file mode 100644
index 00000000000..9dc67cb9b9e
Binary files /dev/null and b/test/image/baselines/zz-voronoi_coffee-maxdepth3.png differ
diff --git a/test/image/baselines/zz-voronoi_coffee.png b/test/image/baselines/zz-voronoi_coffee.png
new file mode 100644
index 00000000000..46ece3b4be4
Binary files /dev/null and b/test/image/baselines/zz-voronoi_coffee.png differ
diff --git a/test/image/baselines/zz-voronoi_first.png b/test/image/baselines/zz-voronoi_first.png
new file mode 100644
index 00000000000..0731ca98357
Binary files /dev/null and b/test/image/baselines/zz-voronoi_first.png differ
diff --git a/test/image/baselines/zz-voronoi_flare.png b/test/image/baselines/zz-voronoi_flare.png
new file mode 100644
index 00000000000..14e631adfd8
Binary files /dev/null and b/test/image/baselines/zz-voronoi_flare.png differ
diff --git a/test/image/baselines/zz-voronoi_fonts_nocolor.png b/test/image/baselines/zz-voronoi_fonts_nocolor.png
new file mode 100644
index 00000000000..b60c202b22b
Binary files /dev/null and b/test/image/baselines/zz-voronoi_fonts_nocolor.png differ
diff --git a/test/image/baselines/zz-voronoi_fonts_withcolor.png b/test/image/baselines/zz-voronoi_fonts_withcolor.png
new file mode 100644
index 00000000000..752c0d40a9a
Binary files /dev/null and b/test/image/baselines/zz-voronoi_fonts_withcolor.png differ
diff --git a/test/image/baselines/zz-voronoi_level-depth.png b/test/image/baselines/zz-voronoi_level-depth.png
new file mode 100644
index 00000000000..b6ba2b36191
Binary files /dev/null and b/test/image/baselines/zz-voronoi_level-depth.png differ
diff --git a/test/image/baselines/zz-voronoi_packages_colorscale_allone.png b/test/image/baselines/zz-voronoi_packages_colorscale_allone.png
new file mode 100644
index 00000000000..4c7de3096c0
Binary files /dev/null and b/test/image/baselines/zz-voronoi_packages_colorscale_allone.png differ
diff --git a/test/image/baselines/zz-voronoi_packages_colorscale_novalue.png b/test/image/baselines/zz-voronoi_packages_colorscale_novalue.png
new file mode 100644
index 00000000000..96e6d6f9608
Binary files /dev/null and b/test/image/baselines/zz-voronoi_packages_colorscale_novalue.png differ
diff --git a/test/image/baselines/zz-voronoi_packings.png b/test/image/baselines/zz-voronoi_packings.png
new file mode 100644
index 00000000000..93ce6a23838
Binary files /dev/null and b/test/image/baselines/zz-voronoi_packings.png differ
diff --git a/test/image/baselines/zz-voronoi_pad_mirror.png b/test/image/baselines/zz-voronoi_pad_mirror.png
new file mode 100644
index 00000000000..539dcf35abd
Binary files /dev/null and b/test/image/baselines/zz-voronoi_pad_mirror.png differ
diff --git a/test/image/baselines/zz-voronoi_pad_transpose.png b/test/image/baselines/zz-voronoi_pad_transpose.png
new file mode 100644
index 00000000000..35404468c9b
Binary files /dev/null and b/test/image/baselines/zz-voronoi_pad_transpose.png differ
diff --git a/test/image/baselines/zz-voronoi_root-color.png b/test/image/baselines/zz-voronoi_root-color.png
new file mode 100644
index 00000000000..66747281ef2
Binary files /dev/null and b/test/image/baselines/zz-voronoi_root-color.png differ
diff --git a/test/image/baselines/zz-voronoi_sunburst_basic.png b/test/image/baselines/zz-voronoi_sunburst_basic.png
new file mode 100644
index 00000000000..85770d347bd
Binary files /dev/null and b/test/image/baselines/zz-voronoi_sunburst_basic.png differ
diff --git a/test/image/baselines/zz-voronoi_sunburst_marker_colors.png b/test/image/baselines/zz-voronoi_sunburst_marker_colors.png
new file mode 100644
index 00000000000..30997d7c5ab
Binary files /dev/null and b/test/image/baselines/zz-voronoi_sunburst_marker_colors.png differ
diff --git a/test/image/baselines/zz-voronoi_textfit.png b/test/image/baselines/zz-voronoi_textfit.png
new file mode 100644
index 00000000000..5d04304f9ea
Binary files /dev/null and b/test/image/baselines/zz-voronoi_textfit.png differ
diff --git a/test/image/baselines/zz-voronoi_textposition.png b/test/image/baselines/zz-voronoi_textposition.png
new file mode 100644
index 00000000000..a70096a7d04
Binary files /dev/null and b/test/image/baselines/zz-voronoi_textposition.png differ
diff --git a/test/image/baselines/zz-voronoi_transpose_nopad.png b/test/image/baselines/zz-voronoi_transpose_nopad.png
new file mode 100644
index 00000000000..c371b131268
Binary files /dev/null and b/test/image/baselines/zz-voronoi_transpose_nopad.png differ
diff --git a/test/image/baselines/zz-voronoi_values.png b/test/image/baselines/zz-voronoi_values.png
new file mode 100644
index 00000000000..b1a01ab5b96
Binary files /dev/null and b/test/image/baselines/zz-voronoi_values.png differ
diff --git a/test/image/baselines/zz-voronoi_values_colorscale.png b/test/image/baselines/zz-voronoi_values_colorscale.png
new file mode 100644
index 00000000000..41e1ed7d676
Binary files /dev/null and b/test/image/baselines/zz-voronoi_values_colorscale.png differ
diff --git a/test/image/baselines/zz-voronoi_with-without_values.png b/test/image/baselines/zz-voronoi_with-without_values.png
new file mode 100644
index 00000000000..9ce5f4a3e6a
Binary files /dev/null and b/test/image/baselines/zz-voronoi_with-without_values.png differ
diff --git a/test/image/baselines/zz-voronoi_with-without_values_template.png b/test/image/baselines/zz-voronoi_with-without_values_template.png
new file mode 100644
index 00000000000..2e688571133
Binary files /dev/null and b/test/image/baselines/zz-voronoi_with-without_values_template.png differ
diff --git a/test/image/mocks/zz-uniformtext_sunburst_voronoi.json b/test/image/mocks/zz-uniformtext_sunburst_voronoi.json
new file mode 100644
index 00000000000..f19a0c8d737
--- /dev/null
+++ b/test/image/mocks/zz-uniformtext_sunburst_voronoi.json
@@ -0,0 +1,172 @@
+{
+ "data": [
+ {
+ "type": "sunburst",
+ "insidetextorientation": "horizontal",
+ "domain": {
+ "y": [0.5, 1]
+ },
+ "count": "leaves+branches",
+ "textinfo": "label",
+ "marker": {
+ "line": {
+ "color": "#777"
+ },
+ "coloraxis": "coloraxis"
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ]
+ },
+ {
+ "type": "voronoi",
+ "tiling": {
+ "pad": 2,
+ "shape": "circle"
+ },
+ "domain": {
+ "y": [0, 0.5]
+ },
+ "count": "leaves+branches",
+ "textinfo": "label",
+ "marker": {
+ "cornerradius": 10,
+ "line": {
+ "color": "#777"
+ },
+ "coloraxis": "coloraxis"
+ },
+ "level": "Alpha",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ]
+ }
+ ],
+ "layout": {
+ "coloraxis": {
+ "colorscale": "Blackbody",
+ "reversescale": true,
+ "showscale": false
+ },
+ "width": 500,
+ "height": 1000,
+ "margin": {
+ "t": 10,
+ "b": 10,
+ "l": 10,
+ "r": 10
+ },
+ "uniformtext": {
+ "mode": "hide",
+ "minsize": 8
+ }
+ }
+}
diff --git a/test/image/mocks/zz-uniformtext_voronoi.json b/test/image/mocks/zz-uniformtext_voronoi.json
new file mode 100644
index 00000000000..31b7e29d910
--- /dev/null
+++ b/test/image/mocks/zz-uniformtext_voronoi.json
@@ -0,0 +1,327 @@
+{
+ "data": [
+ {
+ "marker": {
+ "coloraxis": "coloraxis"
+ },
+ "type": "voronoi",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0.52, 0.98]
+ }
+ },
+ {
+ "marker": {
+ "coloraxis": "coloraxis"
+ },
+ "type": "voronoi",
+ "level": "Uniform",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "textfont": {
+ "family": "Raleway, sans-serif",
+ "color": "#FFF",
+ "size": 15
+ },
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0.02, 0.48]
+ }
+ },
+ {
+ "marker": {
+ "coloraxis": "coloraxis"
+ },
+ "type": "voronoi",
+ "level": "Whiskey",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "insidetextfont": {
+ "family": "Courier New, monospace",
+ "color": "#000",
+ "size": 10
+ },
+ "pathbar": {
+ "textfont": {
+ "family": "Times New Roman, Times, serif",
+ "color": "#FF0",
+ "size": 20
+ }
+ },
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0.02, 0.48]
+ }
+ },
+ {
+ "marker": {
+ "coloraxis": "coloraxis"
+ },
+ "type": "voronoi",
+ "level": "Juliet",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "insidetextfont": {
+ "family": "Times New Roman, Times, serif",
+ "color": "#FF0",
+ "size": 20
+ },
+ "pathbar": {
+ "textfont": {
+ "family": "Courier New, monospace",
+ "color": "#000",
+ "size": 10
+ }
+ },
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0.52, 0.98]
+ }
+ }
+ ],
+ "layout": {
+ "coloraxis": {
+ "colorscale": "Portland",
+ "reversescale": true,
+ "showscale": false
+ },
+ "width": 550,
+ "height": 800,
+ "margin": {
+ "t": 10,
+ "b": 10,
+ "l": 10,
+ "r": 10
+ },
+ "uniformtext": {
+ "minsize": 12,
+ "mode": "hide"
+ }
+ }
+}
diff --git a/test/image/mocks/zz-uniformtext_voronoi_coffee-maxdepth3.json b/test/image/mocks/zz-uniformtext_voronoi_coffee-maxdepth3.json
new file mode 100644
index 00000000000..c420d7e342d
--- /dev/null
+++ b/test/image/mocks/zz-uniformtext_voronoi_coffee-maxdepth3.json
@@ -0,0 +1,317 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "pathbar": {
+ "visible": false
+ },
+ "maxdepth": 3,
+ "textinfo": "label+percent parent",
+ "ids": [
+ "Aromas",
+ "Tastes",
+ "Aromas-Enzymatic",
+ "Aromas-Sugar Browning",
+ "Aromas-Dry Distillation",
+ "Tastes-Bitter",
+ "Tastes-Salt",
+ "Tastes-Sweet",
+ "Tastes-Sour",
+ "Enzymatic-Flowery",
+ "Enzymatic-Fruity",
+ "Enzymatic-Herby",
+ "Sugar Browning-Nutty",
+ "Sugar Browning-Carmelly",
+ "Sugar Browning-Chocolatey",
+ "Dry Distillation-Resinous",
+ "Dry Distillation-Spicy",
+ "Dry Distillation-Carbony",
+ "Bitter-Pungent",
+ "Bitter-Harsh",
+ "Salt-Sharp",
+ "Salt-Bland",
+ "Sweet-Mellow",
+ "Sweet-Acidy",
+ "Sour-Winey",
+ "Sour-Soury",
+ "Flowery-Floral",
+ "Flowery-Fragrant",
+ "Fruity-Citrus",
+ "Fruity-Berry-like",
+ "Herby-Alliaceous",
+ "Herby-Leguminous",
+ "Nutty-Nut-like",
+ "Nutty-Malt-like",
+ "Carmelly-Candy-like",
+ "Carmelly-Syrup-like",
+ "Chocolatey-Chocolate-like",
+ "Chocolatey-Vanilla-like",
+ "Resinous-Turpeny",
+ "Resinous-Medicinal",
+ "Spicy-Warming",
+ "Spicy-Pungent",
+ "Carbony-Smokey",
+ "Carbony-Ashy",
+ "Pungent-Creosol",
+ "Pungent-Phenolic",
+ "Harsh-Caustic",
+ "Harsh-Alkaline",
+ "Sharp-Astringent",
+ "Sharp-Rough",
+ "Bland-Neutral",
+ "Bland-Soft",
+ "Mellow-Delicate",
+ "Mellow-Mild",
+ "Acidy-Nippy",
+ "Acidy-Piquant",
+ "Winey-Tangy",
+ "Winey-Tart",
+ "Soury-Hard",
+ "Soury-Acrid",
+ "Floral-Coffee Blossom",
+ "Floral-Tea Rose",
+ "Fragrant-Cardamon Caraway",
+ "Fragrant-Coriander Seeds",
+ "Citrus-Lemon",
+ "Citrus-Apple",
+ "Berry-like-Apricot",
+ "Berry-like-Blackberry",
+ "Alliaceous-Onion",
+ "Alliaceous-Garlic",
+ "Leguminous-Cucumber",
+ "Leguminous-Garden Peas",
+ "Nut-like-Roasted Peanuts",
+ "Nut-like-Walnuts",
+ "Malt-like-Balsamic Rice",
+ "Malt-like-Toast",
+ "Candy-like-Roasted Hazelnut",
+ "Candy-like-Roasted Almond",
+ "Syrup-like-Honey",
+ "Syrup-like-Maple Syrup",
+ "Chocolate-like-Bakers",
+ "Chocolate-like-Dark Chocolate",
+ "Vanilla-like-Swiss",
+ "Vanilla-like-Butter",
+ "Turpeny-Piney",
+ "Turpeny-Blackcurrant-like",
+ "Medicinal-Camphoric",
+ "Medicinal-Cineolic",
+ "Warming-Cedar",
+ "Warming-Pepper",
+ "Pungent-Clove",
+ "Pungent-Thyme",
+ "Smokey-Tarry",
+ "Smokey-Pipe Tobacco",
+ "Ashy-Burnt",
+ "Ashy-Charred"
+ ],
+ "labels": [
+ "Aromas",
+ "Tastes",
+ "Enzymatic",
+ "Sugar Browning",
+ "Dry Distillation",
+ "Bitter",
+ "Salt",
+ "Sweet",
+ "Sour",
+ "Flowery",
+ "Fruity",
+ "Herby",
+ "Nutty",
+ "Carmelly",
+ "Chocolatey",
+ "Resinous",
+ "Spicy",
+ "Carbony",
+ "Pungent",
+ "Harsh",
+ "Sharp",
+ "Bland",
+ "Mellow",
+ "Acidy",
+ "Winey",
+ "Soury",
+ "Floral",
+ "Fragrant",
+ "Citrus",
+ "Berry-like",
+ "Alliaceous",
+ "Leguminous",
+ "Nut-like",
+ "Malt-like",
+ "Candy-like",
+ "Syrup-like",
+ "Chocolate-like",
+ "Vanilla-like",
+ "Turpeny",
+ "Medicinal",
+ "Warming",
+ "Pungent",
+ "Smokey",
+ "Ashy",
+ "Creosol",
+ "Phenolic",
+ "Caustic",
+ "Alkaline",
+ "Astringent",
+ "Rough",
+ "Neutral",
+ "Soft",
+ "Delicate",
+ "Mild",
+ "Nippy",
+ "Piquant",
+ "Tangy",
+ "Tart",
+ "Hard",
+ "Acrid",
+ "Coffee Blossom",
+ "Tea Rose",
+ "Cardamon Caraway",
+ "Coriander Seeds",
+ "Lemon",
+ "Apple",
+ "Apricot",
+ "Blackberry",
+ "Onion",
+ "Garlic",
+ "Cucumber",
+ "Garden Peas",
+ "Roasted Peanuts",
+ "Walnuts",
+ "Balsamic Rice",
+ "Toast",
+ "Roasted Hazelnut",
+ "Roasted Almond",
+ "Honey",
+ "Maple Syrup",
+ "Bakers",
+ "Dark Chocolate",
+ "Swiss",
+ "Butter",
+ "Piney",
+ "Blackcurrant-like",
+ "Camphoric",
+ "Cineolic",
+ "Cedar",
+ "Pepper",
+ "Clove",
+ "Thyme",
+ "Tarry",
+ "Pipe Tobacco",
+ "Burnt",
+ "Charred"
+ ],
+ "parents": [
+ "",
+ "",
+ "Aromas",
+ "Aromas",
+ "Aromas",
+ "Tastes",
+ "Tastes",
+ "Tastes",
+ "Tastes",
+ "Aromas-Enzymatic",
+ "Aromas-Enzymatic",
+ "Aromas-Enzymatic",
+ "Aromas-Sugar Browning",
+ "Aromas-Sugar Browning",
+ "Aromas-Sugar Browning",
+ "Aromas-Dry Distillation",
+ "Aromas-Dry Distillation",
+ "Aromas-Dry Distillation",
+ "Tastes-Bitter",
+ "Tastes-Bitter",
+ "Tastes-Salt",
+ "Tastes-Salt",
+ "Tastes-Sweet",
+ "Tastes-Sweet",
+ "Tastes-Sour",
+ "Tastes-Sour",
+ "Enzymatic-Flowery",
+ "Enzymatic-Flowery",
+ "Enzymatic-Fruity",
+ "Enzymatic-Fruity",
+ "Enzymatic-Herby",
+ "Enzymatic-Herby",
+ "Sugar Browning-Nutty",
+ "Sugar Browning-Nutty",
+ "Sugar Browning-Carmelly",
+ "Sugar Browning-Carmelly",
+ "Sugar Browning-Chocolatey",
+ "Sugar Browning-Chocolatey",
+ "Dry Distillation-Resinous",
+ "Dry Distillation-Resinous",
+ "Dry Distillation-Spicy",
+ "Dry Distillation-Spicy",
+ "Dry Distillation-Carbony",
+ "Dry Distillation-Carbony",
+ "Bitter-Pungent",
+ "Bitter-Pungent",
+ "Bitter-Harsh",
+ "Bitter-Harsh",
+ "Salt-Sharp",
+ "Salt-Sharp",
+ "Salt-Bland",
+ "Salt-Bland",
+ "Sweet-Mellow",
+ "Sweet-Mellow",
+ "Sweet-Acidy",
+ "Sweet-Acidy",
+ "Sour-Winey",
+ "Sour-Winey",
+ "Sour-Soury",
+ "Sour-Soury",
+ "Flowery-Floral",
+ "Flowery-Floral",
+ "Flowery-Fragrant",
+ "Flowery-Fragrant",
+ "Fruity-Citrus",
+ "Fruity-Citrus",
+ "Fruity-Berry-like",
+ "Fruity-Berry-like",
+ "Herby-Alliaceous",
+ "Herby-Alliaceous",
+ "Herby-Leguminous",
+ "Herby-Leguminous",
+ "Nutty-Nut-like",
+ "Nutty-Nut-like",
+ "Nutty-Malt-like",
+ "Nutty-Malt-like",
+ "Carmelly-Candy-like",
+ "Carmelly-Candy-like",
+ "Carmelly-Syrup-like",
+ "Carmelly-Syrup-like",
+ "Chocolatey-Chocolate-like",
+ "Chocolatey-Chocolate-like",
+ "Chocolatey-Vanilla-like",
+ "Chocolatey-Vanilla-like",
+ "Resinous-Turpeny",
+ "Resinous-Turpeny",
+ "Resinous-Medicinal",
+ "Resinous-Medicinal",
+ "Spicy-Warming",
+ "Spicy-Warming",
+ "Spicy-Pungent",
+ "Spicy-Pungent",
+ "Carbony-Smokey",
+ "Carbony-Smokey",
+ "Carbony-Ashy",
+ "Carbony-Ashy"
+ ]
+ }
+ ],
+ "layout": {
+ "uniformtext": {
+ "mode": "hide"
+ },
+ "margin": { "l": 0, "r": 0, "b": 0, "t": 0 },
+ "width": 400,
+ "height": 400,
+ "shapes": [
+ { "type": "rect", "layer": "below", "x0": 0, "x1": 1, "y0": 0, "y1": 1 }
+ ]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_coffee-maxdepth3.json b/test/image/mocks/zz-voronoi_coffee-maxdepth3.json
new file mode 100644
index 00000000000..dbbbfdf05de
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_coffee-maxdepth3.json
@@ -0,0 +1,314 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "pathbar": {
+ "visible": false
+ },
+ "maxdepth": 3,
+ "textinfo": "label+percent parent",
+ "ids": [
+ "Aromas",
+ "Tastes",
+ "Aromas-Enzymatic",
+ "Aromas-Sugar Browning",
+ "Aromas-Dry Distillation",
+ "Tastes-Bitter",
+ "Tastes-Salt",
+ "Tastes-Sweet",
+ "Tastes-Sour",
+ "Enzymatic-Flowery",
+ "Enzymatic-Fruity",
+ "Enzymatic-Herby",
+ "Sugar Browning-Nutty",
+ "Sugar Browning-Carmelly",
+ "Sugar Browning-Chocolatey",
+ "Dry Distillation-Resinous",
+ "Dry Distillation-Spicy",
+ "Dry Distillation-Carbony",
+ "Bitter-Pungent",
+ "Bitter-Harsh",
+ "Salt-Sharp",
+ "Salt-Bland",
+ "Sweet-Mellow",
+ "Sweet-Acidy",
+ "Sour-Winey",
+ "Sour-Soury",
+ "Flowery-Floral",
+ "Flowery-Fragrant",
+ "Fruity-Citrus",
+ "Fruity-Berry-like",
+ "Herby-Alliaceous",
+ "Herby-Leguminous",
+ "Nutty-Nut-like",
+ "Nutty-Malt-like",
+ "Carmelly-Candy-like",
+ "Carmelly-Syrup-like",
+ "Chocolatey-Chocolate-like",
+ "Chocolatey-Vanilla-like",
+ "Resinous-Turpeny",
+ "Resinous-Medicinal",
+ "Spicy-Warming",
+ "Spicy-Pungent",
+ "Carbony-Smokey",
+ "Carbony-Ashy",
+ "Pungent-Creosol",
+ "Pungent-Phenolic",
+ "Harsh-Caustic",
+ "Harsh-Alkaline",
+ "Sharp-Astringent",
+ "Sharp-Rough",
+ "Bland-Neutral",
+ "Bland-Soft",
+ "Mellow-Delicate",
+ "Mellow-Mild",
+ "Acidy-Nippy",
+ "Acidy-Piquant",
+ "Winey-Tangy",
+ "Winey-Tart",
+ "Soury-Hard",
+ "Soury-Acrid",
+ "Floral-Coffee Blossom",
+ "Floral-Tea Rose",
+ "Fragrant-Cardamon Caraway",
+ "Fragrant-Coriander Seeds",
+ "Citrus-Lemon",
+ "Citrus-Apple",
+ "Berry-like-Apricot",
+ "Berry-like-Blackberry",
+ "Alliaceous-Onion",
+ "Alliaceous-Garlic",
+ "Leguminous-Cucumber",
+ "Leguminous-Garden Peas",
+ "Nut-like-Roasted Peanuts",
+ "Nut-like-Walnuts",
+ "Malt-like-Balsamic Rice",
+ "Malt-like-Toast",
+ "Candy-like-Roasted Hazelnut",
+ "Candy-like-Roasted Almond",
+ "Syrup-like-Honey",
+ "Syrup-like-Maple Syrup",
+ "Chocolate-like-Bakers",
+ "Chocolate-like-Dark Chocolate",
+ "Vanilla-like-Swiss",
+ "Vanilla-like-Butter",
+ "Turpeny-Piney",
+ "Turpeny-Blackcurrant-like",
+ "Medicinal-Camphoric",
+ "Medicinal-Cineolic",
+ "Warming-Cedar",
+ "Warming-Pepper",
+ "Pungent-Clove",
+ "Pungent-Thyme",
+ "Smokey-Tarry",
+ "Smokey-Pipe Tobacco",
+ "Ashy-Burnt",
+ "Ashy-Charred"
+ ],
+ "labels": [
+ "Aromas",
+ "Tastes",
+ "Enzymatic",
+ "Sugar Browning",
+ "Dry Distillation",
+ "Bitter",
+ "Salt",
+ "Sweet",
+ "Sour",
+ "Flowery",
+ "Fruity",
+ "Herby",
+ "Nutty",
+ "Carmelly",
+ "Chocolatey",
+ "Resinous",
+ "Spicy",
+ "Carbony",
+ "Pungent",
+ "Harsh",
+ "Sharp",
+ "Bland",
+ "Mellow",
+ "Acidy",
+ "Winey",
+ "Soury",
+ "Floral",
+ "Fragrant",
+ "Citrus",
+ "Berry-like",
+ "Alliaceous",
+ "Leguminous",
+ "Nut-like",
+ "Malt-like",
+ "Candy-like",
+ "Syrup-like",
+ "Chocolate-like",
+ "Vanilla-like",
+ "Turpeny",
+ "Medicinal",
+ "Warming",
+ "Pungent",
+ "Smokey",
+ "Ashy",
+ "Creosol",
+ "Phenolic",
+ "Caustic",
+ "Alkaline",
+ "Astringent",
+ "Rough",
+ "Neutral",
+ "Soft",
+ "Delicate",
+ "Mild",
+ "Nippy",
+ "Piquant",
+ "Tangy",
+ "Tart",
+ "Hard",
+ "Acrid",
+ "Coffee Blossom",
+ "Tea Rose",
+ "Cardamon Caraway",
+ "Coriander Seeds",
+ "Lemon",
+ "Apple",
+ "Apricot",
+ "Blackberry",
+ "Onion",
+ "Garlic",
+ "Cucumber",
+ "Garden Peas",
+ "Roasted Peanuts",
+ "Walnuts",
+ "Balsamic Rice",
+ "Toast",
+ "Roasted Hazelnut",
+ "Roasted Almond",
+ "Honey",
+ "Maple Syrup",
+ "Bakers",
+ "Dark Chocolate",
+ "Swiss",
+ "Butter",
+ "Piney",
+ "Blackcurrant-like",
+ "Camphoric",
+ "Cineolic",
+ "Cedar",
+ "Pepper",
+ "Clove",
+ "Thyme",
+ "Tarry",
+ "Pipe Tobacco",
+ "Burnt",
+ "Charred"
+ ],
+ "parents": [
+ "",
+ "",
+ "Aromas",
+ "Aromas",
+ "Aromas",
+ "Tastes",
+ "Tastes",
+ "Tastes",
+ "Tastes",
+ "Aromas-Enzymatic",
+ "Aromas-Enzymatic",
+ "Aromas-Enzymatic",
+ "Aromas-Sugar Browning",
+ "Aromas-Sugar Browning",
+ "Aromas-Sugar Browning",
+ "Aromas-Dry Distillation",
+ "Aromas-Dry Distillation",
+ "Aromas-Dry Distillation",
+ "Tastes-Bitter",
+ "Tastes-Bitter",
+ "Tastes-Salt",
+ "Tastes-Salt",
+ "Tastes-Sweet",
+ "Tastes-Sweet",
+ "Tastes-Sour",
+ "Tastes-Sour",
+ "Enzymatic-Flowery",
+ "Enzymatic-Flowery",
+ "Enzymatic-Fruity",
+ "Enzymatic-Fruity",
+ "Enzymatic-Herby",
+ "Enzymatic-Herby",
+ "Sugar Browning-Nutty",
+ "Sugar Browning-Nutty",
+ "Sugar Browning-Carmelly",
+ "Sugar Browning-Carmelly",
+ "Sugar Browning-Chocolatey",
+ "Sugar Browning-Chocolatey",
+ "Dry Distillation-Resinous",
+ "Dry Distillation-Resinous",
+ "Dry Distillation-Spicy",
+ "Dry Distillation-Spicy",
+ "Dry Distillation-Carbony",
+ "Dry Distillation-Carbony",
+ "Bitter-Pungent",
+ "Bitter-Pungent",
+ "Bitter-Harsh",
+ "Bitter-Harsh",
+ "Salt-Sharp",
+ "Salt-Sharp",
+ "Salt-Bland",
+ "Salt-Bland",
+ "Sweet-Mellow",
+ "Sweet-Mellow",
+ "Sweet-Acidy",
+ "Sweet-Acidy",
+ "Sour-Winey",
+ "Sour-Winey",
+ "Sour-Soury",
+ "Sour-Soury",
+ "Flowery-Floral",
+ "Flowery-Floral",
+ "Flowery-Fragrant",
+ "Flowery-Fragrant",
+ "Fruity-Citrus",
+ "Fruity-Citrus",
+ "Fruity-Berry-like",
+ "Fruity-Berry-like",
+ "Herby-Alliaceous",
+ "Herby-Alliaceous",
+ "Herby-Leguminous",
+ "Herby-Leguminous",
+ "Nutty-Nut-like",
+ "Nutty-Nut-like",
+ "Nutty-Malt-like",
+ "Nutty-Malt-like",
+ "Carmelly-Candy-like",
+ "Carmelly-Candy-like",
+ "Carmelly-Syrup-like",
+ "Carmelly-Syrup-like",
+ "Chocolatey-Chocolate-like",
+ "Chocolatey-Chocolate-like",
+ "Chocolatey-Vanilla-like",
+ "Chocolatey-Vanilla-like",
+ "Resinous-Turpeny",
+ "Resinous-Turpeny",
+ "Resinous-Medicinal",
+ "Resinous-Medicinal",
+ "Spicy-Warming",
+ "Spicy-Warming",
+ "Spicy-Pungent",
+ "Spicy-Pungent",
+ "Carbony-Smokey",
+ "Carbony-Smokey",
+ "Carbony-Ashy",
+ "Carbony-Ashy"
+ ]
+ }
+ ],
+ "layout": {
+ "margin": { "l": 0, "r": 0, "b": 0, "t": 0 },
+ "width": 500,
+ "height": 500,
+ "shapes": [
+ { "type": "rect", "layer": "below", "x0": 0, "x1": 1, "y0": 0, "y1": 1 }
+ ]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_coffee.json b/test/image/mocks/zz-voronoi_coffee.json
new file mode 100644
index 00000000000..e66f1d54a5d
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_coffee.json
@@ -0,0 +1,313 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "pathbar": {
+ "visible": false
+ },
+ "textinfo": "label+percent parent",
+ "ids": [
+ "Aromas",
+ "Tastes",
+ "Aromas-Enzymatic",
+ "Aromas-Sugar Browning",
+ "Aromas-Dry Distillation",
+ "Tastes-Bitter",
+ "Tastes-Salt",
+ "Tastes-Sweet",
+ "Tastes-Sour",
+ "Enzymatic-Flowery",
+ "Enzymatic-Fruity",
+ "Enzymatic-Herby",
+ "Sugar Browning-Nutty",
+ "Sugar Browning-Carmelly",
+ "Sugar Browning-Chocolatey",
+ "Dry Distillation-Resinous",
+ "Dry Distillation-Spicy",
+ "Dry Distillation-Carbony",
+ "Bitter-Pungent",
+ "Bitter-Harsh",
+ "Salt-Sharp",
+ "Salt-Bland",
+ "Sweet-Mellow",
+ "Sweet-Acidy",
+ "Sour-Winey",
+ "Sour-Soury",
+ "Flowery-Floral",
+ "Flowery-Fragrant",
+ "Fruity-Citrus",
+ "Fruity-Berry-like",
+ "Herby-Alliaceous",
+ "Herby-Leguminous",
+ "Nutty-Nut-like",
+ "Nutty-Malt-like",
+ "Carmelly-Candy-like",
+ "Carmelly-Syrup-like",
+ "Chocolatey-Chocolate-like",
+ "Chocolatey-Vanilla-like",
+ "Resinous-Turpeny",
+ "Resinous-Medicinal",
+ "Spicy-Warming",
+ "Spicy-Pungent",
+ "Carbony-Smokey",
+ "Carbony-Ashy",
+ "Pungent-Creosol",
+ "Pungent-Phenolic",
+ "Harsh-Caustic",
+ "Harsh-Alkaline",
+ "Sharp-Astringent",
+ "Sharp-Rough",
+ "Bland-Neutral",
+ "Bland-Soft",
+ "Mellow-Delicate",
+ "Mellow-Mild",
+ "Acidy-Nippy",
+ "Acidy-Piquant",
+ "Winey-Tangy",
+ "Winey-Tart",
+ "Soury-Hard",
+ "Soury-Acrid",
+ "Floral-Coffee Blossom",
+ "Floral-Tea Rose",
+ "Fragrant-Cardamon Caraway",
+ "Fragrant-Coriander Seeds",
+ "Citrus-Lemon",
+ "Citrus-Apple",
+ "Berry-like-Apricot",
+ "Berry-like-Blackberry",
+ "Alliaceous-Onion",
+ "Alliaceous-Garlic",
+ "Leguminous-Cucumber",
+ "Leguminous-Garden Peas",
+ "Nut-like-Roasted Peanuts",
+ "Nut-like-Walnuts",
+ "Malt-like-Balsamic Rice",
+ "Malt-like-Toast",
+ "Candy-like-Roasted Hazelnut",
+ "Candy-like-Roasted Almond",
+ "Syrup-like-Honey",
+ "Syrup-like-Maple Syrup",
+ "Chocolate-like-Bakers",
+ "Chocolate-like-Dark Chocolate",
+ "Vanilla-like-Swiss",
+ "Vanilla-like-Butter",
+ "Turpeny-Piney",
+ "Turpeny-Blackcurrant-like",
+ "Medicinal-Camphoric",
+ "Medicinal-Cineolic",
+ "Warming-Cedar",
+ "Warming-Pepper",
+ "Pungent-Clove",
+ "Pungent-Thyme",
+ "Smokey-Tarry",
+ "Smokey-Pipe Tobacco",
+ "Ashy-Burnt",
+ "Ashy-Charred"
+ ],
+ "labels": [
+ "Aromas",
+ "Tastes",
+ "Enzymatic",
+ "Sugar Browning",
+ "Dry Distillation",
+ "Bitter",
+ "Salt",
+ "Sweet",
+ "Sour",
+ "Flowery",
+ "Fruity",
+ "Herby",
+ "Nutty",
+ "Carmelly",
+ "Chocolatey",
+ "Resinous",
+ "Spicy",
+ "Carbony",
+ "Pungent",
+ "Harsh",
+ "Sharp",
+ "Bland",
+ "Mellow",
+ "Acidy",
+ "Winey",
+ "Soury",
+ "Floral",
+ "Fragrant",
+ "Citrus",
+ "Berry-like",
+ "Alliaceous",
+ "Leguminous",
+ "Nut-like",
+ "Malt-like",
+ "Candy-like",
+ "Syrup-like",
+ "Chocolate-like",
+ "Vanilla-like",
+ "Turpeny",
+ "Medicinal",
+ "Warming",
+ "Pungent",
+ "Smokey",
+ "Ashy",
+ "Creosol",
+ "Phenolic",
+ "Caustic",
+ "Alkaline",
+ "Astringent",
+ "Rough",
+ "Neutral",
+ "Soft",
+ "Delicate",
+ "Mild",
+ "Nippy",
+ "Piquant",
+ "Tangy",
+ "Tart",
+ "Hard",
+ "Acrid",
+ "Coffee Blossom",
+ "Tea Rose",
+ "Cardamon Caraway",
+ "Coriander Seeds",
+ "Lemon",
+ "Apple",
+ "Apricot",
+ "Blackberry",
+ "Onion",
+ "Garlic",
+ "Cucumber",
+ "Garden Peas",
+ "Roasted Peanuts",
+ "Walnuts",
+ "Balsamic Rice",
+ "Toast",
+ "Roasted Hazelnut",
+ "Roasted Almond",
+ "Honey",
+ "Maple Syrup",
+ "Bakers",
+ "Dark Chocolate",
+ "Swiss",
+ "Butter",
+ "Piney",
+ "Blackcurrant-like",
+ "Camphoric",
+ "Cineolic",
+ "Cedar",
+ "Pepper",
+ "Clove",
+ "Thyme",
+ "Tarry",
+ "Pipe Tobacco",
+ "Burnt",
+ "Charred"
+ ],
+ "parents": [
+ "",
+ "",
+ "Aromas",
+ "Aromas",
+ "Aromas",
+ "Tastes",
+ "Tastes",
+ "Tastes",
+ "Tastes",
+ "Aromas-Enzymatic",
+ "Aromas-Enzymatic",
+ "Aromas-Enzymatic",
+ "Aromas-Sugar Browning",
+ "Aromas-Sugar Browning",
+ "Aromas-Sugar Browning",
+ "Aromas-Dry Distillation",
+ "Aromas-Dry Distillation",
+ "Aromas-Dry Distillation",
+ "Tastes-Bitter",
+ "Tastes-Bitter",
+ "Tastes-Salt",
+ "Tastes-Salt",
+ "Tastes-Sweet",
+ "Tastes-Sweet",
+ "Tastes-Sour",
+ "Tastes-Sour",
+ "Enzymatic-Flowery",
+ "Enzymatic-Flowery",
+ "Enzymatic-Fruity",
+ "Enzymatic-Fruity",
+ "Enzymatic-Herby",
+ "Enzymatic-Herby",
+ "Sugar Browning-Nutty",
+ "Sugar Browning-Nutty",
+ "Sugar Browning-Carmelly",
+ "Sugar Browning-Carmelly",
+ "Sugar Browning-Chocolatey",
+ "Sugar Browning-Chocolatey",
+ "Dry Distillation-Resinous",
+ "Dry Distillation-Resinous",
+ "Dry Distillation-Spicy",
+ "Dry Distillation-Spicy",
+ "Dry Distillation-Carbony",
+ "Dry Distillation-Carbony",
+ "Bitter-Pungent",
+ "Bitter-Pungent",
+ "Bitter-Harsh",
+ "Bitter-Harsh",
+ "Salt-Sharp",
+ "Salt-Sharp",
+ "Salt-Bland",
+ "Salt-Bland",
+ "Sweet-Mellow",
+ "Sweet-Mellow",
+ "Sweet-Acidy",
+ "Sweet-Acidy",
+ "Sour-Winey",
+ "Sour-Winey",
+ "Sour-Soury",
+ "Sour-Soury",
+ "Flowery-Floral",
+ "Flowery-Floral",
+ "Flowery-Fragrant",
+ "Flowery-Fragrant",
+ "Fruity-Citrus",
+ "Fruity-Citrus",
+ "Fruity-Berry-like",
+ "Fruity-Berry-like",
+ "Herby-Alliaceous",
+ "Herby-Alliaceous",
+ "Herby-Leguminous",
+ "Herby-Leguminous",
+ "Nutty-Nut-like",
+ "Nutty-Nut-like",
+ "Nutty-Malt-like",
+ "Nutty-Malt-like",
+ "Carmelly-Candy-like",
+ "Carmelly-Candy-like",
+ "Carmelly-Syrup-like",
+ "Carmelly-Syrup-like",
+ "Chocolatey-Chocolate-like",
+ "Chocolatey-Chocolate-like",
+ "Chocolatey-Vanilla-like",
+ "Chocolatey-Vanilla-like",
+ "Resinous-Turpeny",
+ "Resinous-Turpeny",
+ "Resinous-Medicinal",
+ "Resinous-Medicinal",
+ "Spicy-Warming",
+ "Spicy-Warming",
+ "Spicy-Pungent",
+ "Spicy-Pungent",
+ "Carbony-Smokey",
+ "Carbony-Smokey",
+ "Carbony-Ashy",
+ "Carbony-Ashy"
+ ]
+ }
+ ],
+ "layout": {
+ "margin": { "l": 0, "r": 0, "b": 0, "t": 0 },
+ "width": 500,
+ "height": 500,
+ "shapes": [
+ { "type": "rect", "layer": "below", "x0": 0, "x1": 1, "y0": 0, "y1": 1 }
+ ]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_first.json b/test/image/mocks/zz-voronoi_first.json
new file mode 100644
index 00000000000..30f7d50e622
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_first.json
@@ -0,0 +1,58 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "pathbar": {
+ "visible": false
+ },
+ "textinfo": "label+percent parent",
+ "labels": [
+ "Eve",
+ "Cain",
+ "Seth",
+ "Enos",
+ "Noam",
+ "Abel",
+ "Awan",
+ "Enoch",
+ "Azura"
+ ],
+ "parents": ["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"],
+ "domain": {
+ "x": [0, 0.5]
+ }
+ },
+ {
+ "type": "voronoi",
+ "pathbar": {
+ "visible": false
+ },
+ "textinfo": "label+percent entry",
+ "labels": ["Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"],
+ "parents": ["Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"],
+ "domain": {
+ "x": [0.5, 1]
+ }
+ }
+ ],
+ "layout": {
+ "annotations": [
+ {
+ "showarrow": false,
+ "text": "percent parent",
+ "x": 0.25,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ },
+ {
+ "showarrow": false,
+ "text": "percent entry",
+ "x": 0.75,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ }
+ ]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_flare.json b/test/image/mocks/zz-voronoi_flare.json
new file mode 100644
index 00000000000..df01940e837
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_flare.json
@@ -0,0 +1,774 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "hoverinfo": "all",
+ "ids": [
+ "flare",
+ "flare-analytics",
+ "flare-animate",
+ "flare-data",
+ "flare-display",
+ "flare-flex",
+ "flare-physics",
+ "flare-query",
+ "flare-scale",
+ "flare-util",
+ "flare-vis",
+ "analytics-cluster",
+ "analytics-graph",
+ "analytics-optimization",
+ "animate-Easing",
+ "animate-FunctionSequence",
+ "animate-interpolate",
+ "animate-ISchedulable",
+ "animate-Parallel",
+ "animate-Pause",
+ "animate-Scheduler",
+ "animate-Sequence",
+ "animate-Transition",
+ "animate-Transitioner",
+ "animate-TransitionEvent",
+ "animate-Tween",
+ "data-converters",
+ "data-DataField",
+ "data-DataSchema",
+ "data-DataSet",
+ "data-DataSource",
+ "data-DataTable",
+ "data-DataUtil",
+ "display-DirtySprite",
+ "display-LineSprite",
+ "display-RectSprite",
+ "display-TextSprite",
+ "flex-FlareVis",
+ "physics-DragForce",
+ "physics-GravityForce",
+ "physics-IForce",
+ "physics-NBodyForce",
+ "physics-Particle",
+ "physics-Simulation",
+ "physics-Spring",
+ "physics-SpringForce",
+ "query-AggregateExpression",
+ "query-And",
+ "query-Arithmetic",
+ "query-Average",
+ "query-BinaryExpression",
+ "query-Comparison",
+ "query-CompositeExpression",
+ "query-Count",
+ "query-DateUtil",
+ "query-Distinct",
+ "query-Expression",
+ "query-ExpressionIterator",
+ "query-Fn",
+ "query-If",
+ "query-IsA",
+ "query-Literal",
+ "query-Match",
+ "query-Maximum",
+ "query-methods",
+ "query-Minimum",
+ "query-Not",
+ "query-Or",
+ "query-Query",
+ "query-Range",
+ "query-StringUtil",
+ "query-Sum",
+ "query-Variable",
+ "query-Variance",
+ "query-Xor",
+ "scale-IScaleMap",
+ "scale-LinearScale",
+ "scale-LogScale",
+ "scale-OrdinalScale",
+ "scale-QuantileScale",
+ "scale-QuantitativeScale",
+ "scale-RootScale",
+ "scale-Scale",
+ "scale-ScaleType",
+ "scale-TimeScale",
+ "util-Arrays",
+ "util-Colors",
+ "util-Dates",
+ "util-Displays",
+ "util-Filter",
+ "util-Geometry",
+ "util-heap",
+ "util-IEvaluable",
+ "util-IPredicate",
+ "util-IValueProxy",
+ "util-math",
+ "util-Maths",
+ "util-Orientation",
+ "util-palette",
+ "util-Property",
+ "util-Shapes",
+ "util-Sort",
+ "util-Stats",
+ "util-Strings",
+ "vis-axis",
+ "vis-controls",
+ "vis-data",
+ "vis-events",
+ "vis-legend",
+ "vis-operator",
+ "vis-Visualization",
+ "cluster-AgglomerativeCluster",
+ "cluster-CommunityStructure",
+ "cluster-HierarchicalCluster",
+ "cluster-MergeEdge",
+ "graph-BetweennessCentrality",
+ "graph-LinkDistance",
+ "graph-MaxFlowMinCut",
+ "graph-ShortestPaths",
+ "graph-SpanningTree",
+ "optimization-AspectRatioBanker",
+ "interpolate-ArrayInterpolator",
+ "interpolate-ColorInterpolator",
+ "interpolate-DateInterpolator",
+ "interpolate-Interpolator",
+ "interpolate-MatrixInterpolator",
+ "interpolate-NumberInterpolator",
+ "interpolate-ObjectInterpolator",
+ "interpolate-PointInterpolator",
+ "interpolate-RectangleInterpolator",
+ "converters-Converters",
+ "converters-DelimitedTextConverter",
+ "converters-GraphMLConverter",
+ "converters-IDataConverter",
+ "converters-JSONConverter",
+ "methods-add",
+ "methods-and",
+ "methods-average",
+ "methods-count",
+ "methods-distinct",
+ "methods-div",
+ "methods-eq",
+ "methods-fn",
+ "methods-gt",
+ "methods-gte",
+ "methods-iff",
+ "methods-isa",
+ "methods-lt",
+ "methods-lte",
+ "methods-max",
+ "methods-min",
+ "methods-mod",
+ "methods-mul",
+ "methods-neq",
+ "methods-not",
+ "methods-or",
+ "methods-orderby",
+ "methods-range",
+ "methods-select",
+ "methods-stddev",
+ "methods-sub",
+ "methods-sum",
+ "methods-update",
+ "methods-variance",
+ "methods-where",
+ "methods-xor",
+ "methods-_",
+ "heap-FibonacciHeap",
+ "heap-HeapNode",
+ "math-DenseMatrix",
+ "math-IMatrix",
+ "math-SparseMatrix",
+ "palette-ColorPalette",
+ "palette-Palette",
+ "palette-ShapePalette",
+ "palette-SizePalette",
+ "axis-Axes",
+ "axis-Axis",
+ "axis-AxisGridLine",
+ "axis-AxisLabel",
+ "axis-CartesianAxes",
+ "controls-AnchorControl",
+ "controls-ClickControl",
+ "controls-Control",
+ "controls-ControlList",
+ "controls-DragControl",
+ "controls-ExpandControl",
+ "controls-HoverControl",
+ "controls-IControl",
+ "controls-PanZoomControl",
+ "controls-SelectionControl",
+ "controls-TooltipControl",
+ "data-Data",
+ "data-DataList",
+ "data-DataSprite",
+ "data-EdgeSprite",
+ "data-NodeSprite",
+ "data-render",
+ "data-ScaleBinding",
+ "data-Tree",
+ "data-TreeBuilder",
+ "events-DataEvent",
+ "events-SelectionEvent",
+ "events-TooltipEvent",
+ "events-VisualizationEvent",
+ "legend-Legend",
+ "legend-LegendItem",
+ "legend-LegendRange",
+ "operator-distortion",
+ "operator-encoder",
+ "operator-filter",
+ "operator-IOperator",
+ "operator-label",
+ "operator-layout",
+ "operator-Operator",
+ "operator-OperatorList",
+ "operator-OperatorSequence",
+ "operator-OperatorSwitch",
+ "operator-SortOperator",
+ "render-ArrowType",
+ "render-EdgeRenderer",
+ "render-IRenderer",
+ "render-ShapeRenderer",
+ "distortion-BifocalDistortion",
+ "distortion-Distortion",
+ "distortion-FisheyeDistortion",
+ "encoder-ColorEncoder",
+ "encoder-Encoder",
+ "encoder-PropertyEncoder",
+ "encoder-ShapeEncoder",
+ "encoder-SizeEncoder",
+ "filter-FisheyeTreeFilter",
+ "filter-GraphDistanceFilter",
+ "filter-VisibilityFilter",
+ "label-Labeler",
+ "label-RadialLabeler",
+ "label-StackedAreaLabeler",
+ "layout-AxisLayout",
+ "layout-BundledEdgeRouter",
+ "layout-CircleLayout",
+ "layout-CirclePackingLayout",
+ "layout-DendrogramLayout",
+ "layout-ForceDirectedLayout",
+ "layout-IcicleTreeLayout",
+ "layout-IndentedTreeLayout",
+ "layout-Layout",
+ "layout-NodeLinkTreeLayout",
+ "layout-PieLayout",
+ "layout-RadialTreeLayout",
+ "layout-RandomLayout",
+ "layout-StackedAreaLayout",
+ "layout-TreeMapLayout"
+ ],
+ "labels": [
+ "flare",
+ "analytics",
+ "animate",
+ "data",
+ "display",
+ "flex",
+ "physics",
+ "query",
+ "scale",
+ "util",
+ "vis",
+ "cluster",
+ "graph",
+ "optimization",
+ "Easing",
+ "FunctionSequence",
+ "interpolate",
+ "ISchedulable",
+ "Parallel",
+ "Pause",
+ "Scheduler",
+ "Sequence",
+ "Transition",
+ "Transitioner",
+ "TransitionEvent",
+ "Tween",
+ "converters",
+ "DataField",
+ "DataSchema",
+ "DataSet",
+ "DataSource",
+ "DataTable",
+ "DataUtil",
+ "DirtySprite",
+ "LineSprite",
+ "RectSprite",
+ "TextSprite",
+ "FlareVis",
+ "DragForce",
+ "GravityForce",
+ "IForce",
+ "NBodyForce",
+ "Particle",
+ "Simulation",
+ "Spring",
+ "SpringForce",
+ "AggregateExpression",
+ "And",
+ "Arithmetic",
+ "Average",
+ "BinaryExpression",
+ "Comparison",
+ "CompositeExpression",
+ "Count",
+ "DateUtil",
+ "Distinct",
+ "Expression",
+ "ExpressionIterator",
+ "Fn",
+ "If",
+ "IsA",
+ "Literal",
+ "Match",
+ "Maximum",
+ "methods",
+ "Minimum",
+ "Not",
+ "Or",
+ "Query",
+ "Range",
+ "StringUtil",
+ "Sum",
+ "Variable",
+ "Variance",
+ "Xor",
+ "IScaleMap",
+ "LinearScale",
+ "LogScale",
+ "OrdinalScale",
+ "QuantileScale",
+ "QuantitativeScale",
+ "RootScale",
+ "Scale",
+ "ScaleType",
+ "TimeScale",
+ "Arrays",
+ "Colors",
+ "Dates",
+ "Displays",
+ "Filter",
+ "Geometry",
+ "heap",
+ "IEvaluable",
+ "IPredicate",
+ "IValueProxy",
+ "math",
+ "Maths",
+ "Orientation",
+ "palette",
+ "Property",
+ "Shapes",
+ "Sort",
+ "Stats",
+ "Strings",
+ "axis",
+ "controls",
+ "data",
+ "events",
+ "legend",
+ "operator",
+ "Visualization",
+ "AgglomerativeCluster",
+ "CommunityStructure",
+ "HierarchicalCluster",
+ "MergeEdge",
+ "BetweennessCentrality",
+ "LinkDistance",
+ "MaxFlowMinCut",
+ "ShortestPaths",
+ "SpanningTree",
+ "AspectRatioBanker",
+ "ArrayInterpolator",
+ "ColorInterpolator",
+ "DateInterpolator",
+ "Interpolator",
+ "MatrixInterpolator",
+ "NumberInterpolator",
+ "ObjectInterpolator",
+ "PointInterpolator",
+ "RectangleInterpolator",
+ "Converters",
+ "DelimitedTextConverter",
+ "GraphMLConverter",
+ "IDataConverter",
+ "JSONConverter",
+ "add",
+ "and",
+ "average",
+ "count",
+ "distinct",
+ "div",
+ "eq",
+ "fn",
+ "gt",
+ "gte",
+ "iff",
+ "isa",
+ "lt",
+ "lte",
+ "max",
+ "min",
+ "mod",
+ "mul",
+ "neq",
+ "not",
+ "or",
+ "orderby",
+ "range",
+ "select",
+ "stddev",
+ "sub",
+ "sum",
+ "update",
+ "variance",
+ "where",
+ "xor",
+ "_",
+ "FibonacciHeap",
+ "HeapNode",
+ "DenseMatrix",
+ "IMatrix",
+ "SparseMatrix",
+ "ColorPalette",
+ "Palette",
+ "ShapePalette",
+ "SizePalette",
+ "Axes",
+ "Axis",
+ "AxisGridLine",
+ "AxisLabel",
+ "CartesianAxes",
+ "AnchorControl",
+ "ClickControl",
+ "Control",
+ "ControlList",
+ "DragControl",
+ "ExpandControl",
+ "HoverControl",
+ "IControl",
+ "PanZoomControl",
+ "SelectionControl",
+ "TooltipControl",
+ "Data",
+ "DataList",
+ "DataSprite",
+ "EdgeSprite",
+ "NodeSprite",
+ "render",
+ "ScaleBinding",
+ "Tree",
+ "TreeBuilder",
+ "DataEvent",
+ "SelectionEvent",
+ "TooltipEvent",
+ "VisualizationEvent",
+ "Legend",
+ "LegendItem",
+ "LegendRange",
+ "distortion",
+ "encoder",
+ "filter",
+ "IOperator",
+ "label",
+ "layout",
+ "Operator",
+ "OperatorList",
+ "OperatorSequence",
+ "OperatorSwitch",
+ "SortOperator",
+ "ArrowType",
+ "EdgeRenderer",
+ "IRenderer",
+ "ShapeRenderer",
+ "BifocalDistortion",
+ "Distortion",
+ "FisheyeDistortion",
+ "ColorEncoder",
+ "Encoder",
+ "PropertyEncoder",
+ "ShapeEncoder",
+ "SizeEncoder",
+ "FisheyeTreeFilter",
+ "GraphDistanceFilter",
+ "VisibilityFilter",
+ "Labeler",
+ "RadialLabeler",
+ "StackedAreaLabeler",
+ "AxisLayout",
+ "BundledEdgeRouter",
+ "CircleLayout",
+ "CirclePackingLayout",
+ "DendrogramLayout",
+ "ForceDirectedLayout",
+ "IcicleTreeLayout",
+ "IndentedTreeLayout",
+ "Layout",
+ "NodeLinkTreeLayout",
+ "PieLayout",
+ "RadialTreeLayout",
+ "RandomLayout",
+ "StackedAreaLayout",
+ "TreeMapLayout"
+ ],
+ "parents": [
+ "",
+ "flare",
+ "flare",
+ "flare",
+ "flare",
+ "flare",
+ "flare",
+ "flare",
+ "flare",
+ "flare",
+ "flare",
+ "flare-analytics",
+ "flare-analytics",
+ "flare-analytics",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-animate",
+ "flare-data",
+ "flare-data",
+ "flare-data",
+ "flare-data",
+ "flare-data",
+ "flare-data",
+ "flare-data",
+ "flare-display",
+ "flare-display",
+ "flare-display",
+ "flare-display",
+ "flare-flex",
+ "flare-physics",
+ "flare-physics",
+ "flare-physics",
+ "flare-physics",
+ "flare-physics",
+ "flare-physics",
+ "flare-physics",
+ "flare-physics",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-query",
+ "flare-scale",
+ "flare-scale",
+ "flare-scale",
+ "flare-scale",
+ "flare-scale",
+ "flare-scale",
+ "flare-scale",
+ "flare-scale",
+ "flare-scale",
+ "flare-scale",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-util",
+ "flare-vis",
+ "flare-vis",
+ "flare-vis",
+ "flare-vis",
+ "flare-vis",
+ "flare-vis",
+ "flare-vis",
+ "analytics-cluster",
+ "analytics-cluster",
+ "analytics-cluster",
+ "analytics-cluster",
+ "analytics-graph",
+ "analytics-graph",
+ "analytics-graph",
+ "analytics-graph",
+ "analytics-graph",
+ "analytics-optimization",
+ "animate-interpolate",
+ "animate-interpolate",
+ "animate-interpolate",
+ "animate-interpolate",
+ "animate-interpolate",
+ "animate-interpolate",
+ "animate-interpolate",
+ "animate-interpolate",
+ "animate-interpolate",
+ "data-converters",
+ "data-converters",
+ "data-converters",
+ "data-converters",
+ "data-converters",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "query-methods",
+ "util-heap",
+ "util-heap",
+ "util-math",
+ "util-math",
+ "util-math",
+ "util-palette",
+ "util-palette",
+ "util-palette",
+ "util-palette",
+ "vis-axis",
+ "vis-axis",
+ "vis-axis",
+ "vis-axis",
+ "vis-axis",
+ "vis-controls",
+ "vis-controls",
+ "vis-controls",
+ "vis-controls",
+ "vis-controls",
+ "vis-controls",
+ "vis-controls",
+ "vis-controls",
+ "vis-controls",
+ "vis-controls",
+ "vis-controls",
+ "vis-data",
+ "vis-data",
+ "vis-data",
+ "vis-data",
+ "vis-data",
+ "vis-data",
+ "vis-data",
+ "vis-data",
+ "vis-data",
+ "vis-events",
+ "vis-events",
+ "vis-events",
+ "vis-events",
+ "vis-legend",
+ "vis-legend",
+ "vis-legend",
+ "vis-operator",
+ "vis-operator",
+ "vis-operator",
+ "vis-operator",
+ "vis-operator",
+ "vis-operator",
+ "vis-operator",
+ "vis-operator",
+ "vis-operator",
+ "vis-operator",
+ "vis-operator",
+ "data-render",
+ "data-render",
+ "data-render",
+ "data-render",
+ "operator-distortion",
+ "operator-distortion",
+ "operator-distortion",
+ "operator-encoder",
+ "operator-encoder",
+ "operator-encoder",
+ "operator-encoder",
+ "operator-encoder",
+ "operator-filter",
+ "operator-filter",
+ "operator-filter",
+ "operator-label",
+ "operator-label",
+ "operator-label",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout",
+ "operator-layout"
+ ]
+ }
+ ],
+ "layout": {
+ "width": 600,
+ "height": 600
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_fonts_nocolor.json b/test/image/mocks/zz-voronoi_fonts_nocolor.json
new file mode 100644
index 00000000000..14e534afccc
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_fonts_nocolor.json
@@ -0,0 +1,312 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "level": "Oscar",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0.52, 0.98]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "Oscar",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "textfont": {
+ "family": "Raleway, sans-serif",
+ "color": "#007",
+ "size": 15
+ },
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0.02, 0.48]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "Oscar",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "insidetextfont": {
+ "family": "Courier New, monospace",
+ "color": "#000",
+ "size": 10
+ },
+ "pathbar": {
+ "textfont": {
+ "family": "Times New Roman, Times, serif",
+ "color": "#FF0",
+ "size": 20
+ }
+ },
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0.02, 0.48]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "Oscar",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "insidetextfont": {
+ "family": "Times New Roman, Times, serif",
+ "color": "#FF0",
+ "size": 20
+ },
+ "pathbar": {
+ "textfont": {
+ "family": "Courier New, monospace",
+ "color": "#000",
+ "size": 10
+ }
+ },
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0.52, 0.98]
+ }
+ }
+ ],
+ "layout": {
+ "font": {
+ "weight": "bold",
+ "style": "italic",
+ "variant": "small-caps"
+ },
+ "width": 800,
+ "height": 800,
+ "margin": {
+ "t": 10,
+ "b": 10,
+ "l": 10,
+ "r": 10
+ }
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_fonts_withcolor.json b/test/image/mocks/zz-voronoi_fonts_withcolor.json
new file mode 100644
index 00000000000..e9ac7d79ce0
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_fonts_withcolor.json
@@ -0,0 +1,328 @@
+{
+ "data": [
+ {
+ "marker": {
+ "coloraxis": "coloraxis"
+ },
+ "type": "voronoi",
+ "tiling": { "seed": 0 },
+ "level": "Oscar",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0.52, 0.98]
+ }
+ },
+ {
+ "marker": {
+ "coloraxis": "coloraxis"
+ },
+ "type": "voronoi",
+ "tiling": { "seed": 1 },
+ "level": "Oscar",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "textfont": {
+ "family": "Raleway, sans-serif",
+ "color": "#FFF",
+ "size": 15
+ },
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0.02, 0.48]
+ }
+ },
+ {
+ "marker": {
+ "coloraxis": "coloraxis"
+ },
+ "type": "voronoi",
+ "tiling": { "seed": 2 },
+ "level": "Oscar",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "insidetextfont": {
+ "family": "Courier New, monospace",
+ "color": "#000",
+ "size": 10
+ },
+ "pathbar": {
+ "textfont": {
+ "family": "Times New Roman, Times, serif",
+ "color": "#FF0",
+ "size": 20
+ }
+ },
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0.02, 0.48]
+ }
+ },
+ {
+ "marker": {
+ "coloraxis": "coloraxis"
+ },
+ "type": "voronoi",
+ "tiling": { "seed": 1 },
+ "level": "Oscar",
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "textinfo": "label",
+ "insidetextfont": {
+ "family": "Times New Roman, Times, serif",
+ "color": "#FF0",
+ "size": 20
+ },
+ "pathbar": {
+ "textfont": {
+ "family": "Courier New, monospace",
+ "color": "#000",
+ "size": 10
+ }
+ },
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0.52, 0.98]
+ }
+ }
+ ],
+ "layout": {
+ "coloraxis": {
+ "colorscale": "Portland",
+ "reversescale": true,
+ "showscale": false
+ },
+ "width": 800,
+ "height": 800,
+ "margin": {
+ "t": 10,
+ "b": 10,
+ "l": 10,
+ "r": 10
+ }
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_level-depth.json b/test/image/mocks/zz-voronoi_level-depth.json
new file mode 100644
index 00000000000..dac2a186b84
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_level-depth.json
@@ -0,0 +1,440 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "tiling": {
+ "shape": "rectangle"
+ },
+ "maxdepth": 3,
+ "texttemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "hovertemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U",
+ ""
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu",
+ 0
+ ],
+ "values": [
+ 4000000, 3000000, 2000000, 1000000, 1000000, 3000000, 2000000, 1000000,
+ 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 2000000,
+ 1000000, 1000000, 1000000, 1000000, 1000000, 2000000, 1000000, 1000000,
+ 1000000, 1000000, 1000000
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "Alpha",
+ "Alpha",
+ "Alpha",
+ "Alpha",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Charlie",
+ "Charlie",
+ "Delta",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Golf",
+ "Golf",
+ "Hotel",
+ "Papa",
+ "Papa",
+ "Quebec",
+ "Victor",
+ "Victor",
+ "Yankee"
+ ],
+ "domain": {
+ "x": [0, 0.5],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "voronoi",
+ "tiling": {
+ "shape": "rectangle"
+ },
+ "level": "Victor",
+ "texttemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "hovertemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U",
+ ""
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu",
+ 0
+ ],
+ "values": [
+ 4000000, 3000000, 2000000, 1000000, 1000000, 3000000, 2000000, 1000000,
+ 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 2000000,
+ 1000000, 1000000, 1000000, 1000000, 1000000, 2000000, 1000000, 1000000,
+ 1000000, 1000000, 1000000
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "Alpha",
+ "Alpha",
+ "Alpha",
+ "Alpha",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Charlie",
+ "Charlie",
+ "Delta",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Golf",
+ "Golf",
+ "Hotel",
+ "Papa",
+ "Papa",
+ "Quebec",
+ "Victor",
+ "Victor",
+ "Yankee"
+ ],
+ "marker": {
+ "line": {
+ "color": "black",
+ "width": 2
+ }
+ },
+ "domain": {
+ "x": [0.5, 1],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "sunburst",
+ "maxdepth": 3,
+ "texttemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "hovertemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U",
+ ""
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu",
+ 0
+ ],
+ "values": [
+ 4000000, 3000000, 2000000, 1000000, 1000000, 3000000, 2000000, 1000000,
+ 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 2000000,
+ 1000000, 1000000, 1000000, 1000000, 1000000, 2000000, 1000000, 1000000,
+ 1000000, 1000000, 1000000
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "Alpha",
+ "Alpha",
+ "Alpha",
+ "Alpha",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Charlie",
+ "Charlie",
+ "Delta",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Golf",
+ "Golf",
+ "Hotel",
+ "Papa",
+ "Papa",
+ "Quebec",
+ "Victor",
+ "Victor",
+ "Yankee"
+ ],
+ "domain": {
+ "x": [0, 0.5],
+ "y": [0.2, 1]
+ }
+ },
+ {
+ "type": "sunburst",
+ "level": "Victor",
+ "texttemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "hovertemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U",
+ ""
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu",
+ 0
+ ],
+ "values": [
+ 4000000, 3000000, 2000000, 1000000, 1000000, 3000000, 2000000, 1000000,
+ 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 2000000,
+ 1000000, 1000000, 1000000, 1000000, 1000000, 2000000, 1000000, 1000000,
+ 1000000, 1000000, 1000000
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "Alpha",
+ "Alpha",
+ "Alpha",
+ "Alpha",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Charlie",
+ "Charlie",
+ "Delta",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Golf",
+ "Golf",
+ "Hotel",
+ "Papa",
+ "Papa",
+ "Quebec",
+ "Victor",
+ "Victor",
+ "Yankee"
+ ],
+ "marker": {
+ "line": {
+ "color": "black",
+ "width": 2
+ }
+ },
+ "domain": {
+ "x": [0.5, 1],
+ "y": [0.2, 1]
+ }
+ }
+ ],
+ "layout": {
+ "width": 1200,
+ "height": 800,
+ "voronoicolorway": ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3"],
+ "sunburstcolorway": ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3"]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_packages_colorscale_allone.json b/test/image/mocks/zz-voronoi_packages_colorscale_allone.json
new file mode 100644
index 00000000000..4497fe3f1d7
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_packages_colorscale_allone.json
@@ -0,0 +1,2339 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "count": "leaves+branches",
+ "maxdepth": 3,
+ "textinfo": "label+percent parent",
+ "hoverinfo": "all",
+ "pathbar": {
+ "side": "bottom"
+ },
+ "marker": {
+ "line": {
+ "color": "#777"
+ },
+ "pattern": {
+ "fillmode": "replace",
+ "shape": ".",
+ "size": 3
+ },
+ "colorscale": [[0, "#FFF"], [0.01, "#FF0"], [0.1, "#F00"], [1, "#000"]],
+ "showscale": true
+ },
+ "level": "1. gl-mesh3d",
+ "ids": [
+ "Plotly.js v1.46.x external module counter",
+ "1. @plotly/d3-sankey",
+ "1. alpha-shape",
+ "1. array-range",
+ "1. canvas-fit",
+ "1. color-normalize",
+ "1. convex-hull",
+ "1. country-regex",
+ "1. d3",
+ "1. d3-force",
+ "1. d3-hierarchy",
+ "1. d3-interpolate",
+ "1. d3-sankey-circular",
+ "1. delaunay-triangulate",
+ "1. es6-promise",
+ "1. fast-isnumeric",
+ "1. font-atlas-sdf",
+ "1. gl-cone3d",
+ "1. gl-contour2d",
+ "1. gl-error3d",
+ "1. gl-heatmap2d",
+ "1. gl-line3d",
+ "1. gl-mat4",
+ "1. gl-mesh3d",
+ "1. gl-plot2d",
+ "1. gl-plot3d",
+ "1. gl-pointcloud2d",
+ "1. gl-scatter3d",
+ "1. gl-select-box",
+ "1. gl-spikes2d",
+ "1. gl-streamtube3d",
+ "1. gl-surface3d",
+ "1. gl-text",
+ "1. glslify",
+ "1. has-hover",
+ "1. has-passive-events",
+ "1. mapbox-gl",
+ "1. matrix-camera-controller",
+ "1. mouse-change",
+ "1. mouse-event-offset",
+ "1. mouse-wheel",
+ "1. ndarray",
+ "1. ndarray-fill",
+ "1. ndarray-homography",
+ "1. point-cluster",
+ "1. polybooljs",
+ "1. regl",
+ "1. regl-error2d",
+ "1. regl-line2d",
+ "1. regl-scatter2d",
+ "1. regl-splom",
+ "1. right-now",
+ "1. robust-orientation",
+ "1. sane-topojson",
+ "1. strongly-connected-components",
+ "1. superscript-text",
+ "1. svg-path-sdf",
+ "1. tinycolor2",
+ "1. topojson-client",
+ "1. webgl-context",
+ "1. world-calendars",
+ "2. 3d-view",
+ "2. @mapbox/gl-matrix",
+ "2. @mapbox/jsonlint-lines-primitives",
+ "2. @mapbox/mapbox-gl-supported",
+ "2. @mapbox/point-geometry",
+ "2. @mapbox/shelf-pack",
+ "2. @mapbox/tiny-sdf",
+ "2. @mapbox/unitbezier",
+ "2. @mapbox/vector-tile",
+ "2. @mapbox/whoots-js",
+ "2. a-big-triangle",
+ "2. affine-hull",
+ "2. alpha-complex",
+ "2. array-bounds",
+ "2. array-normalize",
+ "2. array-range",
+ "2. array-rearrange",
+ "2. barycentric",
+ "2. binary-search-bounds",
+ "2. bit-twiddle",
+ "2. bitmap-sdf",
+ "2. bl",
+ "2. brfs",
+ "2. bubleify",
+ "2. cdt2d",
+ "2. clamp",
+ "2. clean-pslg",
+ "2. color-alpha",
+ "2. color-id",
+ "2. color-normalize",
+ "2. color-rgba",
+ "2. colormap",
+ "2. commander",
+ "2. concat-stream",
+ "2. css-font",
+ "2. csscolorparser",
+ "2. cwise",
+ "2. d3-array",
+ "2. d3-collection",
+ "2. d3-color",
+ "2. d3-dispatch",
+ "2. d3-quadtree",
+ "2. d3-shape",
+ "2. d3-timer",
+ "2. defined",
+ "2. detect-kerning",
+ "2. draw-svg-path",
+ "2. dtype",
+ "2. dup",
+ "2. duplexify",
+ "2. earcut",
+ "2. element-size",
+ "2. elementary-circuits-directed-graph",
+ "2. es6-weak-map",
+ "2. falafel",
+ "2. flatten-vertex-data",
+ "2. font-atlas",
+ "2. font-measure",
+ "2. from2",
+ "2. geojson-rewind",
+ "2. geojson-vt",
+ "2. get-canvas-context",
+ "2. gl-axes3d",
+ "2. gl-buffer",
+ "2. gl-fbo",
+ "2. gl-mat4",
+ "2. gl-matrix-invert",
+ "2. gl-select-static",
+ "2. gl-shader",
+ "2. gl-spikes3d",
+ "2. gl-texture2d",
+ "2. gl-util",
+ "2. gl-vao",
+ "2. gl-vec3",
+ "2. glsl-inverse",
+ "2. glsl-out-of-range",
+ "2. glsl-read-float",
+ "2. glsl-resolve",
+ "2. glsl-specular-beckmann",
+ "2. glsl-specular-cook-torrance",
+ "2. glsl-token-whitespace-trim",
+ "2. glslify",
+ "2. glslify-bundle",
+ "2. glslify-deps",
+ "2. gray-matter",
+ "2. grid-index",
+ "2. has-passive-events",
+ "2. image-palette",
+ "2. incremental-convex-hull",
+ "2. iota-array",
+ "2. is-browser",
+ "2. is-buffer",
+ "2. is-iexplorer",
+ "2. is-mobile",
+ "2. is-obj",
+ "2. is-plain-obj",
+ "2. is-string-blank",
+ "2. is-svg-path",
+ "2. left-pad",
+ "2. mat4-interpolate",
+ "2. math-log2",
+ "2. minimist",
+ "2. monotone-convex-hull-2d",
+ "2. mouse-change",
+ "2. mouse-event",
+ "2. mouse-event-offset",
+ "2. mouse-wheel",
+ "2. ndarray",
+ "2. ndarray-gradient",
+ "2. ndarray-ops",
+ "2. ndarray-pack",
+ "2. ndarray-scratch",
+ "2. ndarray-warp",
+ "2. normals",
+ "2. object-assign",
+ "2. optical-properties",
+ "2. parse-rect",
+ "2. parse-svg-path",
+ "2. parse-unit",
+ "2. pbf",
+ "2. pick-by-alias",
+ "2. point-cluster",
+ "2. polytope-closest-point",
+ "2. quickselect",
+ "2. raf",
+ "2. regl",
+ "2. regl-scatter2d",
+ "2. resolve",
+ "2. right-now",
+ "2. robust-scale",
+ "2. robust-subtract",
+ "2. robust-sum",
+ "2. rw",
+ "2. shuffle-seed",
+ "2. signum",
+ "2. simplicial-complex-boundary",
+ "2. simplicial-complex-contour",
+ "2. sort-object",
+ "2. stack-trace",
+ "2. static-eval",
+ "2. supercluster",
+ "2. surface-nets",
+ "2. svg-path-bounds",
+ "2. text-cache",
+ "2. through2",
+ "2. tiny-sdf",
+ "2. tinyqueue",
+ "2. to-float32",
+ "2. to-px",
+ "2. two-product",
+ "2. typedarray-pool",
+ "2. uniq",
+ "2. update-diff",
+ "2. vectorize-text",
+ "2. vt-pbf",
+ "2. xtend",
+ "3. @choojs/findup",
+ "3. @mapbox/geojson-area",
+ "3. @mapbox/point-geometry",
+ "3. @mapbox/vector-tile",
+ "3. abs-svg-path",
+ "3. acorn",
+ "3. array-bounds",
+ "3. big-rat",
+ "3. binary-search-bounds",
+ "3. bit-twiddle",
+ "3. boundary-cells",
+ "3. box-intersect",
+ "3. buble",
+ "3. buffer-from",
+ "3. cdt2d",
+ "3. circumradius",
+ "3. clamp",
+ "3. clean-pslg",
+ "3. color-id",
+ "3. color-parse",
+ "3. color-space",
+ "3. concat-stream",
+ "3. css-font",
+ "3. css-font-size-keywords",
+ "3. css-font-stretch-keywords",
+ "3. css-font-style-keywords",
+ "3. css-font-weight-keywords",
+ "3. css-global-keywords",
+ "3. css-system-font-keywords",
+ "3. cwise",
+ "3. cwise-compiler",
+ "3. cwise-parser",
+ "3. d",
+ "3. d3-path",
+ "3. delaunay-triangulate",
+ "3. dtype",
+ "3. dup",
+ "3. end-of-stream",
+ "3. es5-ext",
+ "3. es6-iterator",
+ "3. es6-symbol",
+ "3. es6-weak-map",
+ "3. escodegen",
+ "3. events",
+ "3. extend-shallow",
+ "3. extract-frustum-planes",
+ "3. foreach",
+ "3. gl-buffer",
+ "3. gl-fbo",
+ "3. gl-format-compiler-error",
+ "3. gl-mat2",
+ "3. gl-mat3",
+ "3. gl-mat4",
+ "3. gl-shader",
+ "3. gl-state",
+ "3. gl-texture2d",
+ "3. gl-vao",
+ "3. gl-vec3",
+ "3. gl-vec4",
+ "3. glsl-inject-defines",
+ "3. glsl-resolve",
+ "3. glsl-specular-beckmann",
+ "3. glsl-token-defines",
+ "3. glsl-token-depth",
+ "3. glsl-token-descope",
+ "3. glsl-token-scope",
+ "3. glsl-token-string",
+ "3. glsl-token-whitespace-trim",
+ "3. glsl-tokenizer",
+ "3. glslify",
+ "3. graceful-fs",
+ "3. ieee754",
+ "3. inherits",
+ "3. is-browser",
+ "3. is-firefox",
+ "3. is-plain-obj",
+ "3. is-svg-path",
+ "3. isarray",
+ "3. js-yaml",
+ "3. kdbush",
+ "3. kind-of",
+ "3. lerp",
+ "3. map-limit",
+ "3. marching-simplex-table",
+ "3. mat4-decompose",
+ "3. mat4-recompose",
+ "3. matrix-camera-controller",
+ "3. minimist",
+ "3. murmurhash-js",
+ "3. ndarray",
+ "3. ndarray-extract-contour",
+ "3. ndarray-linear-interpolate",
+ "3. ndarray-ops",
+ "3. ndarray-sort",
+ "3. nextafter",
+ "3. normalize-svg-path",
+ "3. number-is-integer",
+ "3. numeric",
+ "3. object-assign",
+ "3. object-keys",
+ "3. orbit-camera-controller",
+ "3. parse-svg-path",
+ "3. parse-unit",
+ "3. path-parse",
+ "3. pbf",
+ "3. performance-now",
+ "3. pick-by-alias",
+ "3. planar-graph-to-polyline",
+ "3. pxls",
+ "3. quantize",
+ "3. quat-slerp",
+ "3. quote-stream",
+ "3. rat-vec",
+ "3. readable-stream",
+ "3. reduce-simplicial-complex",
+ "3. resolve",
+ "3. resolve-protobuf-schema",
+ "3. robust-in-sphere",
+ "3. robust-linear-solve",
+ "3. robust-orientation",
+ "3. robust-segment-intersect",
+ "3. safe-buffer",
+ "3. seedrandom",
+ "3. shallow-copy",
+ "3. sharkdown",
+ "3. simplicial-complex",
+ "3. simplify-planar-graph",
+ "3. sort-asc",
+ "3. sort-desc",
+ "3. split-polygon",
+ "3. static-module",
+ "3. stream-shift",
+ "3. string-split-by",
+ "3. strip-bom-string",
+ "3. strongly-connected-components",
+ "3. surface-nets",
+ "3. through2",
+ "3. triangulate-hypercube",
+ "3. triangulate-polyline",
+ "3. turntable-camera-controller",
+ "3. two-product",
+ "3. two-sum",
+ "3. typedarray",
+ "3. typedarray-pool",
+ "3. uglify-js",
+ "3. union-find",
+ "3. uniq",
+ "3. unquote",
+ "3. vectorize-text",
+ "3. weak-map",
+ "3. weakmap-shim",
+ "3. xtend",
+ "3. zero-crossings",
+ "4. acorn",
+ "4. acorn-dynamic-import",
+ "4. acorn-jsx",
+ "4. add-line-numbers",
+ "4. argparse",
+ "4. arr-flatten",
+ "4. big-rat",
+ "4. bit-twiddle",
+ "4. bn.js",
+ "4. buffer-equal",
+ "4. cardinal",
+ "4. cdt2d",
+ "4. cell-orientation",
+ "4. chalk",
+ "4. circumcenter",
+ "4. color-name",
+ "4. commander",
+ "4. compare-cell",
+ "4. compare-oriented-cell",
+ "4. compute-dims",
+ "4. concat-stream",
+ "4. convert-source-map",
+ "4. convex-hull",
+ "4. core-util-is",
+ "4. cwise-compiler",
+ "4. d",
+ "4. defined",
+ "4. double-bits",
+ "4. duplexer2",
+ "4. edges-to-adjacency-list",
+ "4. es5-ext",
+ "4. es6-iterator",
+ "4. es6-symbol",
+ "4. escodegen",
+ "4. esprima",
+ "4. estraverse",
+ "4. esutils",
+ "4. expect.js",
+ "4. falafel",
+ "4. filtered-vector",
+ "4. flip-pixels",
+ "4. gamma",
+ "4. gl-constants",
+ "4. gl-mat4",
+ "4. gl-quat",
+ "4. gl-vec3",
+ "4. glsl-shader-name",
+ "4. glsl-token-assignments",
+ "4. glsl-token-depth",
+ "4. glsl-token-inject-block",
+ "4. glsl-token-properties",
+ "4. glsl-token-scope",
+ "4. glsl-token-string",
+ "4. glsl-tokenizer",
+ "4. has",
+ "4. hsluv",
+ "4. inherits",
+ "4. is-browser",
+ "4. is-buffer",
+ "4. is-extendable",
+ "4. is-finite",
+ "4. is-plain-obj",
+ "4. isarray",
+ "4. magic-string",
+ "4. merge-source-map",
+ "4. minimist",
+ "4. mumath",
+ "4. next-tick",
+ "4. object-inspect",
+ "4. once",
+ "4. optionator",
+ "4. os-homedir",
+ "4. parenthesis",
+ "4. permutation-parity",
+ "4. permutation-rank",
+ "4. planar-dual",
+ "4. point-in-big-polygon",
+ "4. process-nextick-args",
+ "4. protocol-buffers-schema",
+ "4. quote-stream",
+ "4. readable-stream",
+ "4. robust-determinant",
+ "4. robust-dot-product",
+ "4. robust-orientation",
+ "4. robust-scale",
+ "4. robust-subtract",
+ "4. robust-sum",
+ "4. safe-buffer",
+ "4. shallow-copy",
+ "4. simplicial-complex",
+ "4. source-map",
+ "4. split",
+ "4. sprintf-js",
+ "4. static-eval",
+ "4. stream-spigot",
+ "4. string_decoder",
+ "4. svg-arc-to-cubic-bezier",
+ "4. tape",
+ "4. through",
+ "4. through2",
+ "4. to-uint8",
+ "4. two-product",
+ "4. typedarray-pool",
+ "4. uglify-to-browserify",
+ "4. union-find",
+ "4. uniq",
+ "4. util-deprecate",
+ "4. vlq",
+ "4. wgs84",
+ "4. yargs",
+ "5. acorn",
+ "5. almost-equal",
+ "5. ansi-styles",
+ "5. ansicolors",
+ "5. arr-flatten",
+ "5. atob-lite",
+ "5. binary-search-bounds",
+ "5. bit-twiddle",
+ "5. camelcase",
+ "5. cell-orientation",
+ "5. clamp",
+ "5. cliui",
+ "5. compare-angle",
+ "5. compare-cell",
+ "5. core-util-is",
+ "5. cubic-hermite",
+ "5. decamelize",
+ "5. deep-equal",
+ "5. deep-is",
+ "5. defined",
+ "5. dup",
+ "5. escape-string-regexp",
+ "5. escodegen",
+ "5. esprima",
+ "5. estraverse",
+ "5. esutils",
+ "5. fast-levenshtein",
+ "5. for-each",
+ "5. function-bind",
+ "5. gl-mat3",
+ "5. gl-vec3",
+ "5. gl-vec4",
+ "5. glob",
+ "5. glsl-tokenizer",
+ "5. has",
+ "5. inherits",
+ "5. interval-tree-1d",
+ "5. invert-permutation",
+ "5. is-base64",
+ "5. is-float-array",
+ "5. isarray",
+ "5. levn",
+ "5. minimist",
+ "5. number-is-nan",
+ "5. object-inspect",
+ "5. optionator",
+ "5. pad-left",
+ "5. prelude-ls",
+ "5. readable-stream",
+ "5. redeyed",
+ "5. resolve",
+ "5. resumer",
+ "5. robust-compress",
+ "5. robust-linear-solve",
+ "5. robust-orientation",
+ "5. robust-scale",
+ "5. robust-sum",
+ "5. safe-buffer",
+ "5. slab-decomposition",
+ "5. source-map",
+ "5. sprintf-js",
+ "5. string.prototype.trim",
+ "5. string_decoder",
+ "5. supports-color",
+ "5. through",
+ "5. through2",
+ "5. to-array-buffer",
+ "5. two-product",
+ "5. type-check",
+ "5. typedarray-pool",
+ "5. union-find",
+ "5. uniq",
+ "5. utils-copy",
+ "5. validate.io-array",
+ "5. validate.io-matrix-like",
+ "5. validate.io-ndarray-like",
+ "5. validate.io-positive-integer",
+ "5. vlq",
+ "5. window-size",
+ "5. wordwrap",
+ "5. wrappy",
+ "5. xtend",
+ "6. amdefine",
+ "6. binary-search-bounds",
+ "6. center-align",
+ "6. color-convert",
+ "6. const-pinf-float64",
+ "6. core-util-is",
+ "6. define-properties",
+ "6. es-abstract",
+ "6. esprima",
+ "6. estraverse",
+ "6. flatten-vertex-data",
+ "6. fs.realpath",
+ "6. function-bind",
+ "6. functional-red-black-tree",
+ "6. has-flag",
+ "6. inflight",
+ "6. inherits",
+ "6. is-blob",
+ "6. is-callable",
+ "6. isarray",
+ "6. minimatch",
+ "6. object-keys",
+ "6. once",
+ "6. path-is-absolute",
+ "6. prelude-ls",
+ "6. readable-stream",
+ "6. repeat-string",
+ "6. right-align",
+ "6. robust-orientation",
+ "6. robust-product",
+ "6. robust-sum",
+ "6. signum",
+ "6. source-map",
+ "6. string-to-arraybuffer",
+ "6. string_decoder",
+ "6. through",
+ "6. two-sum",
+ "6. type-check",
+ "6. type-name",
+ "6. utils-copy-error",
+ "6. utils-indexof",
+ "6. utils-regex-from-string",
+ "6. validate.io-array",
+ "6. validate.io-buffer",
+ "6. validate.io-integer",
+ "6. validate.io-nonnegative-integer",
+ "6. wordwrap",
+ "6. xtend"
+ ],
+ "parents": [
+ "",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "1. @plotly/d3-sankey",
+ "1. @plotly/d3-sankey",
+ "1. @plotly/d3-sankey",
+ "1. alpha-shape",
+ "1. alpha-shape",
+ "1. canvas-fit",
+ "1. color-normalize",
+ "1. color-normalize",
+ "1. color-normalize",
+ "1. convex-hull",
+ "1. convex-hull",
+ "1. convex-hull",
+ "1. d3-force",
+ "1. d3-force",
+ "1. d3-force",
+ "1. d3-force",
+ "1. d3-interpolate",
+ "1. d3-sankey-circular",
+ "1. d3-sankey-circular",
+ "1. d3-sankey-circular",
+ "1. d3-sankey-circular",
+ "1. delaunay-triangulate",
+ "1. delaunay-triangulate",
+ "1. fast-isnumeric",
+ "1. font-atlas-sdf",
+ "1. font-atlas-sdf",
+ "1. gl-cone3d",
+ "1. gl-cone3d",
+ "1. gl-cone3d",
+ "1. gl-cone3d",
+ "1. gl-cone3d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-error3d",
+ "1. gl-error3d",
+ "1. gl-error3d",
+ "1. gl-error3d",
+ "1. gl-error3d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-pointcloud2d",
+ "1. gl-pointcloud2d",
+ "1. gl-pointcloud2d",
+ "1. gl-pointcloud2d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-select-box",
+ "1. gl-select-box",
+ "1. gl-select-box",
+ "1. gl-streamtube3d",
+ "1. gl-streamtube3d",
+ "1. gl-streamtube3d",
+ "1. gl-streamtube3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. has-hover",
+ "1. has-passive-events",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. matrix-camera-controller",
+ "1. matrix-camera-controller",
+ "1. matrix-camera-controller",
+ "1. matrix-camera-controller",
+ "1. mouse-change",
+ "1. mouse-wheel",
+ "1. mouse-wheel",
+ "1. mouse-wheel",
+ "1. ndarray",
+ "1. ndarray",
+ "1. ndarray-fill",
+ "1. ndarray-homography",
+ "1. ndarray-homography",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. robust-orientation",
+ "1. robust-orientation",
+ "1. robust-orientation",
+ "1. robust-orientation",
+ "1. svg-path-sdf",
+ "1. svg-path-sdf",
+ "1. svg-path-sdf",
+ "1. svg-path-sdf",
+ "1. svg-path-sdf",
+ "1. topojson-client",
+ "1. webgl-context",
+ "1. world-calendars",
+ "2. d3-shape",
+ "2. alpha-complex",
+ "2. alpha-complex",
+ "2. simplicial-complex-boundary",
+ "2. simplicial-complex-boundary",
+ "2. color-rgba",
+ "2. color-rgba",
+ "2. color-rgba",
+ "2. affine-hull",
+ "2. incremental-convex-hull",
+ "2. incremental-convex-hull",
+ "2. monotone-convex-hull-2d",
+ "2. elementary-circuits-directed-graph",
+ "2. gl-shader",
+ "2. gl-shader",
+ "2. cdt2d",
+ "2. cdt2d",
+ "2. cdt2d",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. gl-buffer",
+ "2. gl-buffer",
+ "2. gl-buffer",
+ "2. surface-nets",
+ "2. surface-nets",
+ "2. surface-nets",
+ "2. typedarray-pool",
+ "2. typedarray-pool",
+ "2. gl-texture2d",
+ "2. gl-texture2d",
+ "2. gl-texture2d",
+ "2. barycentric",
+ "2. colormap",
+ "2. glsl-specular-cook-torrance",
+ "2. polytope-closest-point",
+ "2. simplicial-complex-contour",
+ "2. simplicial-complex-contour",
+ "2. simplicial-complex-contour",
+ "2. simplicial-complex-contour",
+ "2. gl-select-static",
+ "2. gl-select-static",
+ "2. gl-select-static",
+ "2. gl-select-static",
+ "2. gl-select-static",
+ "2. text-cache",
+ "2. 3d-view",
+ "2. 3d-view",
+ "2. 3d-view",
+ "2. a-big-triangle",
+ "2. a-big-triangle",
+ "2. a-big-triangle",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-fbo",
+ "2. gl-spikes3d",
+ "2. gl-spikes3d",
+ "2. gl-spikes3d",
+ "2. gl-spikes3d",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. ndarray-gradient",
+ "2. ndarray-gradient",
+ "2. ndarray-ops",
+ "2. ndarray-pack",
+ "2. ndarray-pack",
+ "2. ndarray-scratch",
+ "2. ndarray-scratch",
+ "2. ndarray-scratch",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. es6-weak-map",
+ "2. es6-weak-map",
+ "2. es6-weak-map",
+ "2. es6-weak-map",
+ "2. flatten-vertex-data",
+ "2. font-atlas",
+ "2. font-measure",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. parse-rect",
+ "2. to-px",
+ "2. bl",
+ "2. bl",
+ "2. concat-stream",
+ "2. concat-stream",
+ "2. concat-stream",
+ "2. concat-stream",
+ "2. duplexify",
+ "2. duplexify",
+ "2. duplexify",
+ "2. duplexify",
+ "2. falafel",
+ "2. falafel",
+ "2. falafel",
+ "2. falafel",
+ "2. from2",
+ "2. from2",
+ "2. glsl-resolve",
+ "2. glsl-resolve",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. through2",
+ "2. through2",
+ "2. resolve",
+ "2. static-eval",
+ "2. @mapbox/vector-tile",
+ "2. geojson-rewind",
+ "2. geojson-rewind",
+ "2. geojson-rewind",
+ "2. geojson-rewind",
+ "2. gray-matter",
+ "2. gray-matter",
+ "2. gray-matter",
+ "2. gray-matter",
+ "2. brfs",
+ "2. brfs",
+ "2. brfs",
+ "2. brfs",
+ "2. through2",
+ "2. through2",
+ "2. pbf",
+ "2. pbf",
+ "2. shuffle-seed",
+ "2. sort-object",
+ "2. sort-object",
+ "2. supercluster",
+ "2. vt-pbf",
+ "2. vt-pbf",
+ "2. vt-pbf",
+ "2. mat4-interpolate",
+ "2. mat4-interpolate",
+ "2. mat4-interpolate",
+ "2. mat4-interpolate",
+ "2. mat4-interpolate",
+ "2. cwise",
+ "2. cwise",
+ "2. cwise",
+ "2. cwise",
+ "2. gl-matrix-invert",
+ "2. gl-matrix-invert",
+ "2. gl-matrix-invert",
+ "2. ndarray-warp",
+ "2. ndarray-warp",
+ "2. array-normalize",
+ "2. bubleify",
+ "2. color-id",
+ "2. image-palette",
+ "2. image-palette",
+ "2. image-palette",
+ "2. color-alpha",
+ "2. raf",
+ "2. robust-scale",
+ "2. robust-scale",
+ "2. bitmap-sdf",
+ "2. draw-svg-path",
+ "2. draw-svg-path",
+ "2. svg-path-bounds",
+ "2. svg-path-bounds",
+ "2. svg-path-bounds",
+ "2. svg-path-bounds",
+ "3. circumradius",
+ "3. boundary-cells",
+ "3. reduce-simplicial-complex",
+ "3. reduce-simplicial-complex",
+ "3. reduce-simplicial-complex",
+ "3. color-parse",
+ "3. color-parse",
+ "3. color-parse",
+ "3. color-space",
+ "3. color-space",
+ "3. simplicial-complex",
+ "3. simplicial-complex",
+ "3. gl-format-compiler-error",
+ "3. gl-format-compiler-error",
+ "3. gl-format-compiler-error",
+ "3. gl-format-compiler-error",
+ "3. robust-in-sphere",
+ "3. robust-in-sphere",
+ "3. robust-in-sphere",
+ "3. robust-in-sphere",
+ "3. big-rat",
+ "3. big-rat",
+ "3. big-rat",
+ "3. box-intersect",
+ "3. box-intersect",
+ "3. nextafter",
+ "3. rat-vec",
+ "3. robust-segment-intersect",
+ "3. ndarray-extract-contour",
+ "3. triangulate-hypercube",
+ "3. triangulate-hypercube",
+ "3. triangulate-hypercube",
+ "3. zero-crossings",
+ "3. robust-linear-solve",
+ "3. marching-simplex-table",
+ "3. ndarray-sort",
+ "3. orbit-camera-controller",
+ "3. orbit-camera-controller",
+ "3. turntable-camera-controller",
+ "3. turntable-camera-controller",
+ "3. turntable-camera-controller",
+ "3. gl-state",
+ "3. split-polygon",
+ "3. split-polygon",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. simplify-planar-graph",
+ "3. simplify-planar-graph",
+ "3. triangulate-polyline",
+ "3. cwise-compiler",
+ "3. string-split-by",
+ "3. d",
+ "3. es5-ext",
+ "3. es5-ext",
+ "3. es5-ext",
+ "3. es6-iterator",
+ "3. es6-iterator",
+ "3. es6-iterator",
+ "3. es6-symbol",
+ "3. es6-symbol",
+ "3. number-is-integer",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. end-of-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. glsl-inject-defines",
+ "3. glsl-inject-defines",
+ "3. glsl-inject-defines",
+ "3. glsl-token-defines",
+ "3. glsl-token-descope",
+ "3. glsl-token-descope",
+ "3. glsl-token-descope",
+ "3. glsl-token-descope",
+ "3. glsl-tokenizer",
+ "3. @choojs/findup",
+ "3. map-limit",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. escodegen",
+ "3. escodegen",
+ "3. escodegen",
+ "3. escodegen",
+ "3. escodegen",
+ "3. @mapbox/geojson-area",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. extend-shallow",
+ "3. js-yaml",
+ "3. js-yaml",
+ "3. quote-stream",
+ "3. quote-stream",
+ "3. quote-stream",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. resolve-protobuf-schema",
+ "3. mat4-decompose",
+ "3. mat4-decompose",
+ "3. mat4-recompose",
+ "3. quat-slerp",
+ "3. cwise-parser",
+ "3. cwise-parser",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. uglify-js",
+ "3. uglify-js",
+ "3. uglify-js",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. pxls",
+ "3. pxls",
+ "3. pxls",
+ "3. pxls",
+ "3. pxls",
+ "3. pxls",
+ "3. normalize-svg-path",
+ "4. circumcenter",
+ "4. circumcenter",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. compare-oriented-cell",
+ "4. compare-oriented-cell",
+ "4. mumath",
+ "4. add-line-numbers",
+ "4. glsl-shader-name",
+ "4. glsl-shader-name",
+ "4. permutation-parity",
+ "4. permutation-rank",
+ "4. permutation-rank",
+ "4. robust-determinant",
+ "4. robust-determinant",
+ "4. robust-determinant",
+ "4. robust-determinant",
+ "4. filtered-vector",
+ "4. filtered-vector",
+ "4. robust-dot-product",
+ "4. robust-dot-product",
+ "4. edges-to-adjacency-list",
+ "4. planar-dual",
+ "4. planar-dual",
+ "4. point-in-big-polygon",
+ "4. point-in-big-polygon",
+ "4. point-in-big-polygon",
+ "4. point-in-big-polygon",
+ "4. simplicial-complex",
+ "4. simplicial-complex",
+ "4. is-finite",
+ "4. string_decoder",
+ "4. string_decoder",
+ "4. string_decoder",
+ "4. once",
+ "4. string_decoder",
+ "4. through2",
+ "4. through2",
+ "4. once",
+ "4. string_decoder",
+ "4. optionator",
+ "4. optionator",
+ "4. optionator",
+ "4. optionator",
+ "4. optionator",
+ "4. optionator",
+ "4. cardinal",
+ "4. cardinal",
+ "4. split",
+ "4. stream-spigot",
+ "4. argparse",
+ "4. has",
+ "4. magic-string",
+ "4. duplexer2",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. merge-source-map",
+ "4. string_decoder",
+ "4. gl-quat",
+ "4. gl-quat",
+ "4. gl-quat",
+ "4. duplexer2",
+ "4. quote-stream",
+ "4. quote-stream",
+ "4. readable-stream",
+ "4. readable-stream",
+ "4. readable-stream",
+ "4. readable-stream",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. static-eval",
+ "4. through2",
+ "4. through2",
+ "4. yargs",
+ "4. yargs",
+ "4. yargs",
+ "4. yargs",
+ "4. acorn-dynamic-import",
+ "4. acorn-jsx",
+ "4. chalk",
+ "4. chalk",
+ "4. chalk",
+ "4. compute-dims",
+ "4. compute-dims",
+ "4. compute-dims",
+ "4. compute-dims",
+ "4. compute-dims",
+ "4. to-uint8",
+ "4. to-uint8",
+ "4. to-uint8",
+ "4. to-uint8",
+ "4. to-uint8"
+ ],
+ "labels": [
+ "Plotly.js v1.46.x external module counter",
+ "1. @plotly/d3-sankey",
+ "1. alpha-shape",
+ "1. array-range",
+ "1. canvas-fit",
+ "1. color-normalize",
+ "1. convex-hull",
+ "1. country-regex",
+ "1. d3",
+ "1. d3-force",
+ "1. d3-hierarchy",
+ "1. d3-interpolate",
+ "1. d3-sankey-circular",
+ "1. delaunay-triangulate",
+ "1. es6-promise",
+ "1. fast-isnumeric",
+ "1. font-atlas-sdf",
+ "1. gl-cone3d",
+ "1. gl-contour2d",
+ "1. gl-error3d",
+ "1. gl-heatmap2d",
+ "1. gl-line3d",
+ "1. gl-mat4",
+ "1. gl-mesh3d",
+ "1. gl-plot2d",
+ "1. gl-plot3d",
+ "1. gl-pointcloud2d",
+ "1. gl-scatter3d",
+ "1. gl-select-box",
+ "1. gl-spikes2d",
+ "1. gl-streamtube3d",
+ "1. gl-surface3d",
+ "1. gl-text",
+ "1. glslify",
+ "1. has-hover",
+ "1. has-passive-events",
+ "1. mapbox-gl",
+ "1. matrix-camera-controller",
+ "1. mouse-change",
+ "1. mouse-event-offset",
+ "1. mouse-wheel",
+ "1. ndarray",
+ "1. ndarray-fill",
+ "1. ndarray-homography",
+ "1. point-cluster",
+ "1. polybooljs",
+ "1. regl",
+ "1. regl-error2d",
+ "1. regl-line2d",
+ "1. regl-scatter2d",
+ "1. regl-splom",
+ "1. right-now",
+ "1. robust-orientation",
+ "1. sane-topojson",
+ "1. strongly-connected-components",
+ "1. superscript-text",
+ "1. svg-path-sdf",
+ "1. tinycolor2",
+ "1. topojson-client",
+ "1. webgl-context",
+ "1. world-calendars",
+ "2. d3-array",
+ "2. d3-collection",
+ "2. d3-shape",
+ "2. alpha-complex",
+ "2. simplicial-complex-boundary",
+ "2. element-size",
+ "2. clamp",
+ "2. color-rgba",
+ "2. dtype",
+ "2. affine-hull",
+ "2. incremental-convex-hull",
+ "2. monotone-convex-hull-2d",
+ "2. d3-collection",
+ "2. d3-dispatch",
+ "2. d3-quadtree",
+ "2. d3-timer",
+ "2. d3-color",
+ "2. d3-array",
+ "2. d3-collection",
+ "2. d3-shape",
+ "2. elementary-circuits-directed-graph",
+ "2. incremental-convex-hull",
+ "2. uniq",
+ "2. is-string-blank",
+ "2. optical-properties",
+ "2. tiny-sdf",
+ "2. gl-shader",
+ "2. gl-vec3",
+ "2. glsl-inverse",
+ "2. glsl-out-of-range",
+ "2. glslify",
+ "2. cdt2d",
+ "2. clean-pslg",
+ "2. gl-buffer",
+ "2. binary-search-bounds",
+ "2. gl-shader",
+ "2. glslify",
+ "2. iota-array",
+ "2. ndarray",
+ "2. surface-nets",
+ "2. gl-buffer",
+ "2. gl-shader",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glslify",
+ "2. gl-buffer",
+ "2. binary-search-bounds",
+ "2. gl-shader",
+ "2. glslify",
+ "2. iota-array",
+ "2. typedarray-pool",
+ "2. gl-buffer",
+ "2. binary-search-bounds",
+ "2. gl-shader",
+ "2. gl-texture2d",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glsl-read-float",
+ "2. glslify",
+ "2. ndarray",
+ "2. barycentric",
+ "2. colormap",
+ "2. gl-buffer",
+ "2. gl-mat4",
+ "2. gl-shader",
+ "2. gl-texture2d",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glsl-specular-cook-torrance",
+ "2. glslify",
+ "2. ndarray",
+ "2. normals",
+ "2. polytope-closest-point",
+ "2. simplicial-complex-contour",
+ "2. typedarray-pool",
+ "2. gl-buffer",
+ "2. binary-search-bounds",
+ "2. gl-select-static",
+ "2. gl-shader",
+ "2. glsl-inverse",
+ "2. glslify",
+ "2. text-cache",
+ "2. 3d-view",
+ "2. a-big-triangle",
+ "2. gl-axes3d",
+ "2. gl-fbo",
+ "2. gl-mat4",
+ "2. gl-select-static",
+ "2. gl-shader",
+ "2. gl-spikes3d",
+ "2. glslify",
+ "2. has-passive-events",
+ "2. is-mobile",
+ "2. mouse-change",
+ "2. mouse-event-offset",
+ "2. mouse-wheel",
+ "2. ndarray",
+ "2. right-now",
+ "2. gl-buffer",
+ "2. gl-shader",
+ "2. glslify",
+ "2. typedarray-pool",
+ "2. gl-buffer",
+ "2. gl-mat4",
+ "2. gl-shader",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glslify",
+ "2. is-string-blank",
+ "2. typedarray-pool",
+ "2. vectorize-text",
+ "2. gl-buffer",
+ "2. gl-shader",
+ "2. glslify",
+ "2. gl-vec3",
+ "2. glsl-inverse",
+ "2. glsl-out-of-range",
+ "2. glslify",
+ "2. bit-twiddle",
+ "2. colormap",
+ "2. dup",
+ "2. gl-buffer",
+ "2. gl-mat4",
+ "2. gl-shader",
+ "2. binary-search-bounds",
+ "2. gl-texture2d",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glsl-specular-beckmann",
+ "2. glslify",
+ "2. ndarray",
+ "2. ndarray-gradient",
+ "2. ndarray-ops",
+ "2. ndarray-pack",
+ "2. ndarray-scratch",
+ "2. surface-nets",
+ "2. typedarray-pool",
+ "2. bit-twiddle",
+ "2. color-normalize",
+ "2. css-font",
+ "2. detect-kerning",
+ "2. es6-weak-map",
+ "2. flatten-vertex-data",
+ "2. font-atlas",
+ "2. font-measure",
+ "2. gl-util",
+ "2. is-plain-obj",
+ "2. object-assign",
+ "2. parse-rect",
+ "2. parse-unit",
+ "2. pick-by-alias",
+ "2. regl",
+ "2. to-px",
+ "2. typedarray-pool",
+ "2. bl",
+ "2. concat-stream",
+ "2. duplexify",
+ "2. falafel",
+ "2. from2",
+ "2. glsl-resolve",
+ "2. glsl-token-whitespace-trim",
+ "2. glslify-bundle",
+ "2. glslify-deps",
+ "2. through2",
+ "2. minimist",
+ "2. resolve",
+ "2. stack-trace",
+ "2. static-eval",
+ "2. xtend",
+ "2. is-browser",
+ "2. is-browser",
+ "2. @mapbox/gl-matrix",
+ "2. @mapbox/jsonlint-lines-primitives",
+ "2. @mapbox/mapbox-gl-supported",
+ "2. @mapbox/point-geometry",
+ "2. @mapbox/shelf-pack",
+ "2. @mapbox/tiny-sdf",
+ "2. @mapbox/unitbezier",
+ "2. @mapbox/vector-tile",
+ "2. @mapbox/whoots-js",
+ "2. csscolorparser",
+ "2. earcut",
+ "2. geojson-rewind",
+ "2. geojson-vt",
+ "2. gray-matter",
+ "2. grid-index",
+ "2. brfs",
+ "2. minimist",
+ "2. through2",
+ "2. pbf",
+ "2. quickselect",
+ "2. rw",
+ "2. shuffle-seed",
+ "2. sort-object",
+ "2. supercluster",
+ "2. tinyqueue",
+ "2. vt-pbf",
+ "2. binary-search-bounds",
+ "2. gl-mat4",
+ "2. gl-vec3",
+ "2. mat4-interpolate",
+ "2. mouse-event",
+ "2. signum",
+ "2. right-now",
+ "2. to-px",
+ "2. iota-array",
+ "2. is-buffer",
+ "2. cwise",
+ "2. gl-matrix-invert",
+ "2. ndarray-warp",
+ "2. array-bounds",
+ "2. array-normalize",
+ "2. bubleify",
+ "2. clamp",
+ "2. dtype",
+ "2. flatten-vertex-data",
+ "2. is-obj",
+ "2. math-log2",
+ "2. parse-rect",
+ "2. binary-search-bounds",
+ "2. array-bounds",
+ "2. bubleify",
+ "2. color-normalize",
+ "2. flatten-vertex-data",
+ "2. object-assign",
+ "2. pick-by-alias",
+ "2. to-float32",
+ "2. update-diff",
+ "2. array-bounds",
+ "2. array-normalize",
+ "2. bubleify",
+ "2. color-normalize",
+ "2. earcut",
+ "2. es6-weak-map",
+ "2. flatten-vertex-data",
+ "2. glslify",
+ "2. object-assign",
+ "2. parse-rect",
+ "2. pick-by-alias",
+ "2. to-float32",
+ "2. array-range",
+ "2. array-rearrange",
+ "2. clamp",
+ "2. color-id",
+ "2. color-normalize",
+ "2. color-rgba",
+ "2. flatten-vertex-data",
+ "2. glslify",
+ "2. image-palette",
+ "2. is-iexplorer",
+ "2. object-assign",
+ "2. parse-rect",
+ "2. pick-by-alias",
+ "2. point-cluster",
+ "2. to-float32",
+ "2. update-diff",
+ "2. array-bounds",
+ "2. array-range",
+ "2. bubleify",
+ "2. color-alpha",
+ "2. defined",
+ "2. flatten-vertex-data",
+ "2. left-pad",
+ "2. parse-rect",
+ "2. pick-by-alias",
+ "2. point-cluster",
+ "2. raf",
+ "2. regl-scatter2d",
+ "2. robust-scale",
+ "2. robust-subtract",
+ "2. robust-sum",
+ "2. two-product",
+ "2. bitmap-sdf",
+ "2. draw-svg-path",
+ "2. is-svg-path",
+ "2. parse-svg-path",
+ "2. svg-path-bounds",
+ "2. commander",
+ "2. get-canvas-context",
+ "2. object-assign",
+ "3. d3-path",
+ "3. circumradius",
+ "3. delaunay-triangulate",
+ "3. boundary-cells",
+ "3. reduce-simplicial-complex",
+ "3. clamp",
+ "3. color-parse",
+ "3. color-space",
+ "3. robust-orientation",
+ "3. robust-orientation",
+ "3. simplicial-complex",
+ "3. robust-orientation",
+ "3. strongly-connected-components",
+ "3. gl-format-compiler-error",
+ "3. weakmap-shim",
+ "3. binary-search-bounds",
+ "3. robust-in-sphere",
+ "3. robust-orientation",
+ "3. big-rat",
+ "3. box-intersect",
+ "3. nextafter",
+ "3. rat-vec",
+ "3. robust-segment-intersect",
+ "3. union-find",
+ "3. uniq",
+ "3. ndarray",
+ "3. ndarray-ops",
+ "3. typedarray-pool",
+ "3. ndarray-extract-contour",
+ "3. triangulate-hypercube",
+ "3. zero-crossings",
+ "3. bit-twiddle",
+ "3. dup",
+ "3. ndarray",
+ "3. ndarray-ops",
+ "3. typedarray-pool",
+ "3. robust-linear-solve",
+ "3. lerp",
+ "3. glsl-specular-beckmann",
+ "3. numeric",
+ "3. marching-simplex-table",
+ "3. ndarray",
+ "3. ndarray-sort",
+ "3. typedarray-pool",
+ "3. bit-twiddle",
+ "3. cwise",
+ "3. gl-fbo",
+ "3. ndarray",
+ "3. typedarray-pool",
+ "3. vectorize-text",
+ "3. matrix-camera-controller",
+ "3. orbit-camera-controller",
+ "3. turntable-camera-controller",
+ "3. gl-buffer",
+ "3. gl-vao",
+ "3. weak-map",
+ "3. bit-twiddle",
+ "3. dup",
+ "3. extract-frustum-planes",
+ "3. gl-buffer",
+ "3. gl-mat4",
+ "3. gl-shader",
+ "3. gl-state",
+ "3. gl-vao",
+ "3. gl-vec4",
+ "3. glslify",
+ "3. robust-orientation",
+ "3. split-polygon",
+ "3. vectorize-text",
+ "3. gl-texture2d",
+ "3. gl-buffer",
+ "3. gl-shader",
+ "3. gl-vao",
+ "3. glslify",
+ "3. cdt2d",
+ "3. clean-pslg",
+ "3. ndarray",
+ "3. planar-graph-to-polyline",
+ "3. simplify-planar-graph",
+ "3. surface-nets",
+ "3. triangulate-polyline",
+ "3. cwise-compiler",
+ "3. dup",
+ "3. cwise-compiler",
+ "3. cwise-compiler",
+ "3. ndarray",
+ "3. ndarray",
+ "3. ndarray-ops",
+ "3. typedarray-pool",
+ "3. css-font-size-keywords",
+ "3. css-font-stretch-keywords",
+ "3. css-font-style-keywords",
+ "3. css-font-weight-keywords",
+ "3. css-global-keywords",
+ "3. css-system-font-keywords",
+ "3. pick-by-alias",
+ "3. string-split-by",
+ "3. unquote",
+ "3. d",
+ "3. es5-ext",
+ "3. es6-iterator",
+ "3. es6-symbol",
+ "3. dtype",
+ "3. css-font",
+ "3. css-font",
+ "3. es6-weak-map",
+ "3. is-browser",
+ "3. is-firefox",
+ "3. is-plain-obj",
+ "3. number-is-integer",
+ "3. object-assign",
+ "3. pick-by-alias",
+ "3. pick-by-alias",
+ "3. parse-unit",
+ "3. readable-stream",
+ "3. safe-buffer",
+ "3. buffer-from",
+ "3. readable-stream",
+ "3. inherits",
+ "3. typedarray",
+ "3. readable-stream",
+ "3. end-of-stream",
+ "3. inherits",
+ "3. stream-shift",
+ "3. acorn",
+ "3. foreach",
+ "3. isarray",
+ "3. object-keys",
+ "3. readable-stream",
+ "3. inherits",
+ "3. resolve",
+ "3. xtend",
+ "3. glsl-inject-defines",
+ "3. glsl-token-defines",
+ "3. glsl-token-depth",
+ "3. glsl-token-descope",
+ "3. glsl-token-scope",
+ "3. glsl-token-string",
+ "3. glsl-token-whitespace-trim",
+ "3. glsl-tokenizer",
+ "3. murmurhash-js",
+ "3. shallow-copy",
+ "3. @choojs/findup",
+ "3. events",
+ "3. glsl-resolve",
+ "3. glsl-tokenizer",
+ "3. graceful-fs",
+ "3. inherits",
+ "3. map-limit",
+ "3. resolve",
+ "3. readable-stream",
+ "3. xtend",
+ "3. path-parse",
+ "3. escodegen",
+ "3. @mapbox/point-geometry",
+ "3. @mapbox/geojson-area",
+ "3. concat-stream",
+ "3. minimist",
+ "3. sharkdown",
+ "3. extend-shallow",
+ "3. kind-of",
+ "3. js-yaml",
+ "3. strip-bom-string",
+ "3. quote-stream",
+ "3. static-module",
+ "3. through2",
+ "3. resolve",
+ "3. readable-stream",
+ "3. xtend",
+ "3. ieee754",
+ "3. resolve-protobuf-schema",
+ "3. seedrandom",
+ "3. sort-asc",
+ "3. sort-desc",
+ "3. kdbush",
+ "3. @mapbox/point-geometry",
+ "3. @mapbox/vector-tile",
+ "3. pbf",
+ "3. gl-mat4",
+ "3. gl-vec3",
+ "3. mat4-decompose",
+ "3. mat4-recompose",
+ "3. quat-slerp",
+ "3. cwise-compiler",
+ "3. cwise-parser",
+ "3. static-module",
+ "3. uglify-js",
+ "3. gl-mat2",
+ "3. gl-mat3",
+ "3. gl-mat4",
+ "3. cwise",
+ "3. ndarray-linear-interpolate",
+ "3. array-bounds",
+ "3. buble",
+ "3. clamp",
+ "3. color-id",
+ "3. pxls",
+ "3. quantize",
+ "3. color-parse",
+ "3. performance-now",
+ "3. two-product",
+ "3. two-sum",
+ "3. clamp",
+ "3. abs-svg-path",
+ "3. normalize-svg-path",
+ "3. abs-svg-path",
+ "3. is-svg-path",
+ "3. parse-svg-path",
+ "3. normalize-svg-path",
+ "4. circumcenter",
+ "4. tape",
+ "4. cell-orientation",
+ "4. compare-cell",
+ "4. compare-oriented-cell",
+ "4. color-name",
+ "4. defined",
+ "4. is-plain-obj",
+ "4. hsluv",
+ "4. mumath",
+ "4. bit-twiddle",
+ "4. union-find",
+ "4. add-line-numbers",
+ "4. gl-constants",
+ "4. glsl-shader-name",
+ "4. sprintf-js",
+ "4. robust-scale",
+ "4. robust-subtract",
+ "4. robust-sum",
+ "4. two-product",
+ "4. bit-twiddle",
+ "4. bn.js",
+ "4. double-bits",
+ "4. bit-twiddle",
+ "4. typedarray-pool",
+ "4. double-bits",
+ "4. big-rat",
+ "4. robust-orientation",
+ "4. typedarray-pool",
+ "4. gamma",
+ "4. permutation-parity",
+ "4. permutation-rank",
+ "4. cwise-compiler",
+ "4. robust-determinant",
+ "4. convex-hull",
+ "4. typedarray-pool",
+ "4. filtered-vector",
+ "4. gl-mat4",
+ "4. filtered-vector",
+ "4. gl-mat4",
+ "4. gl-vec3",
+ "4. uniq",
+ "4. robust-dot-product",
+ "4. robust-sum",
+ "4. edges-to-adjacency-list",
+ "4. planar-dual",
+ "4. point-in-big-polygon",
+ "4. robust-orientation",
+ "4. robust-sum",
+ "4. two-product",
+ "4. uniq",
+ "4. robust-orientation",
+ "4. simplicial-complex",
+ "4. cdt2d",
+ "4. uniq",
+ "4. parenthesis",
+ "4. es5-ext",
+ "4. es6-iterator",
+ "4. es6-symbol",
+ "4. next-tick",
+ "4. d",
+ "4. es5-ext",
+ "4. es6-symbol",
+ "4. d",
+ "4. es5-ext",
+ "4. is-finite",
+ "4. isarray",
+ "4. string_decoder",
+ "4. core-util-is",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. isarray",
+ "4. string_decoder",
+ "4. core-util-is",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. core-util-is",
+ "4. isarray",
+ "4. string_decoder",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. once",
+ "4. core-util-is",
+ "4. isarray",
+ "4. string_decoder",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. glsl-token-inject-block",
+ "4. glsl-token-string",
+ "4. glsl-tokenizer",
+ "4. glsl-tokenizer",
+ "4. glsl-token-assignments",
+ "4. glsl-token-depth",
+ "4. glsl-token-properties",
+ "4. glsl-token-scope",
+ "4. through2",
+ "4. commander",
+ "4. once",
+ "4. core-util-is",
+ "4. isarray",
+ "4. string_decoder",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. esprima",
+ "4. estraverse",
+ "4. esutils",
+ "4. optionator",
+ "4. source-map",
+ "4. wgs84",
+ "4. cardinal",
+ "4. expect.js",
+ "4. minimist",
+ "4. split",
+ "4. stream-spigot",
+ "4. through",
+ "4. is-extendable",
+ "4. argparse",
+ "4. esprima",
+ "4. buffer-equal",
+ "4. minimist",
+ "4. through2",
+ "4. concat-stream",
+ "4. convert-source-map",
+ "4. falafel",
+ "4. has",
+ "4. magic-string",
+ "4. duplexer2",
+ "4. escodegen",
+ "4. object-inspect",
+ "4. quote-stream",
+ "4. readable-stream",
+ "4. through2",
+ "4. merge-source-map",
+ "4. shallow-copy",
+ "4. static-eval",
+ "4. core-util-is",
+ "4. inherits",
+ "4. isarray",
+ "4. string_decoder",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. protocol-buffers-schema",
+ "4. gl-mat4",
+ "4. gl-vec3",
+ "4. gl-mat4",
+ "4. gl-quat",
+ "4. esprima",
+ "4. uniq",
+ "4. concat-stream",
+ "4. duplexer2",
+ "4. falafel",
+ "4. has",
+ "4. quote-stream",
+ "4. readable-stream",
+ "4. shallow-copy",
+ "4. escodegen",
+ "4. object-inspect",
+ "4. static-eval",
+ "4. through2",
+ "4. source-map",
+ "4. uglify-to-browserify",
+ "4. yargs",
+ "4. acorn",
+ "4. acorn-dynamic-import",
+ "4. acorn-jsx",
+ "4. vlq",
+ "4. chalk",
+ "4. magic-string",
+ "4. minimist",
+ "4. os-homedir",
+ "4. arr-flatten",
+ "4. compute-dims",
+ "4. flip-pixels",
+ "4. is-browser",
+ "4. is-buffer",
+ "4. to-uint8",
+ "4. svg-arc-to-cubic-bezier",
+ "5. dup",
+ "5. robust-linear-solve",
+ "5. deep-equal",
+ "5. defined",
+ "5. for-each",
+ "5. function-bind",
+ "5. glob",
+ "5. has",
+ "5. inherits",
+ "5. minimist",
+ "5. object-inspect",
+ "5. resolve",
+ "5. resumer",
+ "5. string.prototype.trim",
+ "5. through",
+ "5. cell-orientation",
+ "5. compare-cell",
+ "5. almost-equal",
+ "5. pad-left",
+ "5. atob-lite",
+ "5. glsl-tokenizer",
+ "5. typedarray-pool",
+ "5. invert-permutation",
+ "5. typedarray-pool",
+ "5. robust-compress",
+ "5. robust-scale",
+ "5. robust-sum",
+ "5. two-product",
+ "5. binary-search-bounds",
+ "5. cubic-hermite",
+ "5. robust-sum",
+ "5. two-product",
+ "5. uniq",
+ "5. compare-angle",
+ "5. dup",
+ "5. binary-search-bounds",
+ "5. interval-tree-1d",
+ "5. robust-orientation",
+ "5. slab-decomposition",
+ "5. bit-twiddle",
+ "5. union-find",
+ "5. number-is-nan",
+ "5. safe-buffer",
+ "5. safe-buffer",
+ "5. safe-buffer",
+ "5. wrappy",
+ "5. safe-buffer",
+ "5. readable-stream",
+ "5. xtend",
+ "5. wrappy",
+ "5. safe-buffer",
+ "5. deep-is",
+ "5. fast-levenshtein",
+ "5. levn",
+ "5. prelude-ls",
+ "5. type-check",
+ "5. wordwrap",
+ "5. ansicolors",
+ "5. redeyed",
+ "5. through",
+ "5. readable-stream",
+ "5. sprintf-js",
+ "5. function-bind",
+ "5. vlq",
+ "5. readable-stream",
+ "5. esprima",
+ "5. estraverse",
+ "5. esutils",
+ "5. optionator",
+ "5. source-map",
+ "5. source-map",
+ "5. safe-buffer",
+ "5. gl-mat3",
+ "5. gl-vec3",
+ "5. gl-vec4",
+ "5. readable-stream",
+ "5. minimist",
+ "5. through2",
+ "5. core-util-is",
+ "5. inherits",
+ "5. isarray",
+ "5. string_decoder",
+ "5. esprima",
+ "5. estraverse",
+ "5. esutils",
+ "5. source-map",
+ "5. escodegen",
+ "5. readable-stream",
+ "5. xtend",
+ "5. camelcase",
+ "5. cliui",
+ "5. decamelize",
+ "5. window-size",
+ "5. acorn",
+ "5. acorn",
+ "5. ansi-styles",
+ "5. escape-string-regexp",
+ "5. supports-color",
+ "5. utils-copy",
+ "5. validate.io-array",
+ "5. validate.io-matrix-like",
+ "5. validate.io-ndarray-like",
+ "5. validate.io-positive-integer",
+ "5. arr-flatten",
+ "5. clamp",
+ "5. is-base64",
+ "5. is-float-array",
+ "5. to-array-buffer"
+ ]
+ }
+ ],
+ "layout": {
+ "width": 800,
+ "height": 800
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_packages_colorscale_novalue.json b/test/image/mocks/zz-voronoi_packages_colorscale_novalue.json
new file mode 100644
index 00000000000..70a577be7ea
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_packages_colorscale_novalue.json
@@ -0,0 +1,2330 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "maxdepth": 3,
+ "textinfo": "label+percent parent",
+ "hoverinfo": "all",
+ "marker": {
+ "line": {
+ "color": "#777"
+ },
+ "cornerradius": 4,
+ "colorscale": [[0, "#FFF"], [0.01, "#FF0"], [0.1, "#F00"], [1, "#000"]],
+ "showscale": true
+ },
+ "ids": [
+ "Plotly.js v1.46.x external module counter",
+ "1. @plotly/d3-sankey",
+ "1. alpha-shape",
+ "1. array-range",
+ "1. canvas-fit",
+ "1. color-normalize",
+ "1. convex-hull",
+ "1. country-regex",
+ "1. d3",
+ "1. d3-force",
+ "1. d3-hierarchy",
+ "1. d3-interpolate",
+ "1. d3-sankey-circular",
+ "1. delaunay-triangulate",
+ "1. es6-promise",
+ "1. fast-isnumeric",
+ "1. font-atlas-sdf",
+ "1. gl-cone3d",
+ "1. gl-contour2d",
+ "1. gl-error3d",
+ "1. gl-heatmap2d",
+ "1. gl-line3d",
+ "1. gl-mat4",
+ "1. gl-mesh3d",
+ "1. gl-plot2d",
+ "1. gl-plot3d",
+ "1. gl-pointcloud2d",
+ "1. gl-scatter3d",
+ "1. gl-select-box",
+ "1. gl-spikes2d",
+ "1. gl-streamtube3d",
+ "1. gl-surface3d",
+ "1. gl-text",
+ "1. glslify",
+ "1. has-hover",
+ "1. has-passive-events",
+ "1. mapbox-gl",
+ "1. matrix-camera-controller",
+ "1. mouse-change",
+ "1. mouse-event-offset",
+ "1. mouse-wheel",
+ "1. ndarray",
+ "1. ndarray-fill",
+ "1. ndarray-homography",
+ "1. point-cluster",
+ "1. polybooljs",
+ "1. regl",
+ "1. regl-error2d",
+ "1. regl-line2d",
+ "1. regl-scatter2d",
+ "1. regl-splom",
+ "1. right-now",
+ "1. robust-orientation",
+ "1. sane-topojson",
+ "1. strongly-connected-components",
+ "1. superscript-text",
+ "1. svg-path-sdf",
+ "1. tinycolor2",
+ "1. topojson-client",
+ "1. webgl-context",
+ "1. world-calendars",
+ "2. 3d-view",
+ "2. @mapbox/gl-matrix",
+ "2. @mapbox/jsonlint-lines-primitives",
+ "2. @mapbox/mapbox-gl-supported",
+ "2. @mapbox/point-geometry",
+ "2. @mapbox/shelf-pack",
+ "2. @mapbox/tiny-sdf",
+ "2. @mapbox/unitbezier",
+ "2. @mapbox/vector-tile",
+ "2. @mapbox/whoots-js",
+ "2. a-big-triangle",
+ "2. affine-hull",
+ "2. alpha-complex",
+ "2. array-bounds",
+ "2. array-normalize",
+ "2. array-range",
+ "2. array-rearrange",
+ "2. barycentric",
+ "2. binary-search-bounds",
+ "2. bit-twiddle",
+ "2. bitmap-sdf",
+ "2. bl",
+ "2. brfs",
+ "2. bubleify",
+ "2. cdt2d",
+ "2. clamp",
+ "2. clean-pslg",
+ "2. color-alpha",
+ "2. color-id",
+ "2. color-normalize",
+ "2. color-rgba",
+ "2. colormap",
+ "2. commander",
+ "2. concat-stream",
+ "2. css-font",
+ "2. csscolorparser",
+ "2. cwise",
+ "2. d3-array",
+ "2. d3-collection",
+ "2. d3-color",
+ "2. d3-dispatch",
+ "2. d3-quadtree",
+ "2. d3-shape",
+ "2. d3-timer",
+ "2. defined",
+ "2. detect-kerning",
+ "2. draw-svg-path",
+ "2. dtype",
+ "2. dup",
+ "2. duplexify",
+ "2. earcut",
+ "2. element-size",
+ "2. elementary-circuits-directed-graph",
+ "2. es6-weak-map",
+ "2. falafel",
+ "2. flatten-vertex-data",
+ "2. font-atlas",
+ "2. font-measure",
+ "2. from2",
+ "2. geojson-rewind",
+ "2. geojson-vt",
+ "2. get-canvas-context",
+ "2. gl-axes3d",
+ "2. gl-buffer",
+ "2. gl-fbo",
+ "2. gl-mat4",
+ "2. gl-matrix-invert",
+ "2. gl-select-static",
+ "2. gl-shader",
+ "2. gl-spikes3d",
+ "2. gl-texture2d",
+ "2. gl-util",
+ "2. gl-vao",
+ "2. gl-vec3",
+ "2. glsl-inverse",
+ "2. glsl-out-of-range",
+ "2. glsl-read-float",
+ "2. glsl-resolve",
+ "2. glsl-specular-beckmann",
+ "2. glsl-specular-cook-torrance",
+ "2. glsl-token-whitespace-trim",
+ "2. glslify",
+ "2. glslify-bundle",
+ "2. glslify-deps",
+ "2. gray-matter",
+ "2. grid-index",
+ "2. has-passive-events",
+ "2. image-palette",
+ "2. incremental-convex-hull",
+ "2. iota-array",
+ "2. is-browser",
+ "2. is-buffer",
+ "2. is-iexplorer",
+ "2. is-mobile",
+ "2. is-obj",
+ "2. is-plain-obj",
+ "2. is-string-blank",
+ "2. is-svg-path",
+ "2. left-pad",
+ "2. mat4-interpolate",
+ "2. math-log2",
+ "2. minimist",
+ "2. monotone-convex-hull-2d",
+ "2. mouse-change",
+ "2. mouse-event",
+ "2. mouse-event-offset",
+ "2. mouse-wheel",
+ "2. ndarray",
+ "2. ndarray-gradient",
+ "2. ndarray-ops",
+ "2. ndarray-pack",
+ "2. ndarray-scratch",
+ "2. ndarray-warp",
+ "2. normals",
+ "2. object-assign",
+ "2. optical-properties",
+ "2. parse-rect",
+ "2. parse-svg-path",
+ "2. parse-unit",
+ "2. pbf",
+ "2. pick-by-alias",
+ "2. point-cluster",
+ "2. polytope-closest-point",
+ "2. quickselect",
+ "2. raf",
+ "2. regl",
+ "2. regl-scatter2d",
+ "2. resolve",
+ "2. right-now",
+ "2. robust-scale",
+ "2. robust-subtract",
+ "2. robust-sum",
+ "2. rw",
+ "2. shuffle-seed",
+ "2. signum",
+ "2. simplicial-complex-boundary",
+ "2. simplicial-complex-contour",
+ "2. sort-object",
+ "2. stack-trace",
+ "2. static-eval",
+ "2. supercluster",
+ "2. surface-nets",
+ "2. svg-path-bounds",
+ "2. text-cache",
+ "2. through2",
+ "2. tiny-sdf",
+ "2. tinyqueue",
+ "2. to-float32",
+ "2. to-px",
+ "2. two-product",
+ "2. typedarray-pool",
+ "2. uniq",
+ "2. update-diff",
+ "2. vectorize-text",
+ "2. vt-pbf",
+ "2. xtend",
+ "3. @choojs/findup",
+ "3. @mapbox/geojson-area",
+ "3. @mapbox/point-geometry",
+ "3. @mapbox/vector-tile",
+ "3. abs-svg-path",
+ "3. acorn",
+ "3. array-bounds",
+ "3. big-rat",
+ "3. binary-search-bounds",
+ "3. bit-twiddle",
+ "3. boundary-cells",
+ "3. box-intersect",
+ "3. buble",
+ "3. buffer-from",
+ "3. cdt2d",
+ "3. circumradius",
+ "3. clamp",
+ "3. clean-pslg",
+ "3. color-id",
+ "3. color-parse",
+ "3. color-space",
+ "3. concat-stream",
+ "3. css-font",
+ "3. css-font-size-keywords",
+ "3. css-font-stretch-keywords",
+ "3. css-font-style-keywords",
+ "3. css-font-weight-keywords",
+ "3. css-global-keywords",
+ "3. css-system-font-keywords",
+ "3. cwise",
+ "3. cwise-compiler",
+ "3. cwise-parser",
+ "3. d",
+ "3. d3-path",
+ "3. delaunay-triangulate",
+ "3. dtype",
+ "3. dup",
+ "3. end-of-stream",
+ "3. es5-ext",
+ "3. es6-iterator",
+ "3. es6-symbol",
+ "3. es6-weak-map",
+ "3. escodegen",
+ "3. events",
+ "3. extend-shallow",
+ "3. extract-frustum-planes",
+ "3. foreach",
+ "3. gl-buffer",
+ "3. gl-fbo",
+ "3. gl-format-compiler-error",
+ "3. gl-mat2",
+ "3. gl-mat3",
+ "3. gl-mat4",
+ "3. gl-shader",
+ "3. gl-state",
+ "3. gl-texture2d",
+ "3. gl-vao",
+ "3. gl-vec3",
+ "3. gl-vec4",
+ "3. glsl-inject-defines",
+ "3. glsl-resolve",
+ "3. glsl-specular-beckmann",
+ "3. glsl-token-defines",
+ "3. glsl-token-depth",
+ "3. glsl-token-descope",
+ "3. glsl-token-scope",
+ "3. glsl-token-string",
+ "3. glsl-token-whitespace-trim",
+ "3. glsl-tokenizer",
+ "3. glslify",
+ "3. graceful-fs",
+ "3. ieee754",
+ "3. inherits",
+ "3. is-browser",
+ "3. is-firefox",
+ "3. is-plain-obj",
+ "3. is-svg-path",
+ "3. isarray",
+ "3. js-yaml",
+ "3. kdbush",
+ "3. kind-of",
+ "3. lerp",
+ "3. map-limit",
+ "3. marching-simplex-table",
+ "3. mat4-decompose",
+ "3. mat4-recompose",
+ "3. matrix-camera-controller",
+ "3. minimist",
+ "3. murmurhash-js",
+ "3. ndarray",
+ "3. ndarray-extract-contour",
+ "3. ndarray-linear-interpolate",
+ "3. ndarray-ops",
+ "3. ndarray-sort",
+ "3. nextafter",
+ "3. normalize-svg-path",
+ "3. number-is-integer",
+ "3. numeric",
+ "3. object-assign",
+ "3. object-keys",
+ "3. orbit-camera-controller",
+ "3. parse-svg-path",
+ "3. parse-unit",
+ "3. path-parse",
+ "3. pbf",
+ "3. performance-now",
+ "3. pick-by-alias",
+ "3. planar-graph-to-polyline",
+ "3. pxls",
+ "3. quantize",
+ "3. quat-slerp",
+ "3. quote-stream",
+ "3. rat-vec",
+ "3. readable-stream",
+ "3. reduce-simplicial-complex",
+ "3. resolve",
+ "3. resolve-protobuf-schema",
+ "3. robust-in-sphere",
+ "3. robust-linear-solve",
+ "3. robust-orientation",
+ "3. robust-segment-intersect",
+ "3. safe-buffer",
+ "3. seedrandom",
+ "3. shallow-copy",
+ "3. sharkdown",
+ "3. simplicial-complex",
+ "3. simplify-planar-graph",
+ "3. sort-asc",
+ "3. sort-desc",
+ "3. split-polygon",
+ "3. static-module",
+ "3. stream-shift",
+ "3. string-split-by",
+ "3. strip-bom-string",
+ "3. strongly-connected-components",
+ "3. surface-nets",
+ "3. through2",
+ "3. triangulate-hypercube",
+ "3. triangulate-polyline",
+ "3. turntable-camera-controller",
+ "3. two-product",
+ "3. two-sum",
+ "3. typedarray",
+ "3. typedarray-pool",
+ "3. uglify-js",
+ "3. union-find",
+ "3. uniq",
+ "3. unquote",
+ "3. vectorize-text",
+ "3. weak-map",
+ "3. weakmap-shim",
+ "3. xtend",
+ "3. zero-crossings",
+ "4. acorn",
+ "4. acorn-dynamic-import",
+ "4. acorn-jsx",
+ "4. add-line-numbers",
+ "4. argparse",
+ "4. arr-flatten",
+ "4. big-rat",
+ "4. bit-twiddle",
+ "4. bn.js",
+ "4. buffer-equal",
+ "4. cardinal",
+ "4. cdt2d",
+ "4. cell-orientation",
+ "4. chalk",
+ "4. circumcenter",
+ "4. color-name",
+ "4. commander",
+ "4. compare-cell",
+ "4. compare-oriented-cell",
+ "4. compute-dims",
+ "4. concat-stream",
+ "4. convert-source-map",
+ "4. convex-hull",
+ "4. core-util-is",
+ "4. cwise-compiler",
+ "4. d",
+ "4. defined",
+ "4. double-bits",
+ "4. duplexer2",
+ "4. edges-to-adjacency-list",
+ "4. es5-ext",
+ "4. es6-iterator",
+ "4. es6-symbol",
+ "4. escodegen",
+ "4. esprima",
+ "4. estraverse",
+ "4. esutils",
+ "4. expect.js",
+ "4. falafel",
+ "4. filtered-vector",
+ "4. flip-pixels",
+ "4. gamma",
+ "4. gl-constants",
+ "4. gl-mat4",
+ "4. gl-quat",
+ "4. gl-vec3",
+ "4. glsl-shader-name",
+ "4. glsl-token-assignments",
+ "4. glsl-token-depth",
+ "4. glsl-token-inject-block",
+ "4. glsl-token-properties",
+ "4. glsl-token-scope",
+ "4. glsl-token-string",
+ "4. glsl-tokenizer",
+ "4. has",
+ "4. hsluv",
+ "4. inherits",
+ "4. is-browser",
+ "4. is-buffer",
+ "4. is-extendable",
+ "4. is-finite",
+ "4. is-plain-obj",
+ "4. isarray",
+ "4. magic-string",
+ "4. merge-source-map",
+ "4. minimist",
+ "4. mumath",
+ "4. next-tick",
+ "4. object-inspect",
+ "4. once",
+ "4. optionator",
+ "4. os-homedir",
+ "4. parenthesis",
+ "4. permutation-parity",
+ "4. permutation-rank",
+ "4. planar-dual",
+ "4. point-in-big-polygon",
+ "4. process-nextick-args",
+ "4. protocol-buffers-schema",
+ "4. quote-stream",
+ "4. readable-stream",
+ "4. robust-determinant",
+ "4. robust-dot-product",
+ "4. robust-orientation",
+ "4. robust-scale",
+ "4. robust-subtract",
+ "4. robust-sum",
+ "4. safe-buffer",
+ "4. shallow-copy",
+ "4. simplicial-complex",
+ "4. source-map",
+ "4. split",
+ "4. sprintf-js",
+ "4. static-eval",
+ "4. stream-spigot",
+ "4. string_decoder",
+ "4. svg-arc-to-cubic-bezier",
+ "4. tape",
+ "4. through",
+ "4. through2",
+ "4. to-uint8",
+ "4. two-product",
+ "4. typedarray-pool",
+ "4. uglify-to-browserify",
+ "4. union-find",
+ "4. uniq",
+ "4. util-deprecate",
+ "4. vlq",
+ "4. wgs84",
+ "4. yargs",
+ "5. acorn",
+ "5. almost-equal",
+ "5. ansi-styles",
+ "5. ansicolors",
+ "5. arr-flatten",
+ "5. atob-lite",
+ "5. binary-search-bounds",
+ "5. bit-twiddle",
+ "5. camelcase",
+ "5. cell-orientation",
+ "5. clamp",
+ "5. cliui",
+ "5. compare-angle",
+ "5. compare-cell",
+ "5. core-util-is",
+ "5. cubic-hermite",
+ "5. decamelize",
+ "5. deep-equal",
+ "5. deep-is",
+ "5. defined",
+ "5. dup",
+ "5. escape-string-regexp",
+ "5. escodegen",
+ "5. esprima",
+ "5. estraverse",
+ "5. esutils",
+ "5. fast-levenshtein",
+ "5. for-each",
+ "5. function-bind",
+ "5. gl-mat3",
+ "5. gl-vec3",
+ "5. gl-vec4",
+ "5. glob",
+ "5. glsl-tokenizer",
+ "5. has",
+ "5. inherits",
+ "5. interval-tree-1d",
+ "5. invert-permutation",
+ "5. is-base64",
+ "5. is-float-array",
+ "5. isarray",
+ "5. levn",
+ "5. minimist",
+ "5. number-is-nan",
+ "5. object-inspect",
+ "5. optionator",
+ "5. pad-left",
+ "5. prelude-ls",
+ "5. readable-stream",
+ "5. redeyed",
+ "5. resolve",
+ "5. resumer",
+ "5. robust-compress",
+ "5. robust-linear-solve",
+ "5. robust-orientation",
+ "5. robust-scale",
+ "5. robust-sum",
+ "5. safe-buffer",
+ "5. slab-decomposition",
+ "5. source-map",
+ "5. sprintf-js",
+ "5. string.prototype.trim",
+ "5. string_decoder",
+ "5. supports-color",
+ "5. through",
+ "5. through2",
+ "5. to-array-buffer",
+ "5. two-product",
+ "5. type-check",
+ "5. typedarray-pool",
+ "5. union-find",
+ "5. uniq",
+ "5. utils-copy",
+ "5. validate.io-array",
+ "5. validate.io-matrix-like",
+ "5. validate.io-ndarray-like",
+ "5. validate.io-positive-integer",
+ "5. vlq",
+ "5. window-size",
+ "5. wordwrap",
+ "5. wrappy",
+ "5. xtend",
+ "6. amdefine",
+ "6. binary-search-bounds",
+ "6. center-align",
+ "6. color-convert",
+ "6. const-pinf-float64",
+ "6. core-util-is",
+ "6. define-properties",
+ "6. es-abstract",
+ "6. esprima",
+ "6. estraverse",
+ "6. flatten-vertex-data",
+ "6. fs.realpath",
+ "6. function-bind",
+ "6. functional-red-black-tree",
+ "6. has-flag",
+ "6. inflight",
+ "6. inherits",
+ "6. is-blob",
+ "6. is-callable",
+ "6. isarray",
+ "6. minimatch",
+ "6. object-keys",
+ "6. once",
+ "6. path-is-absolute",
+ "6. prelude-ls",
+ "6. readable-stream",
+ "6. repeat-string",
+ "6. right-align",
+ "6. robust-orientation",
+ "6. robust-product",
+ "6. robust-sum",
+ "6. signum",
+ "6. source-map",
+ "6. string-to-arraybuffer",
+ "6. string_decoder",
+ "6. through",
+ "6. two-sum",
+ "6. type-check",
+ "6. type-name",
+ "6. utils-copy-error",
+ "6. utils-indexof",
+ "6. utils-regex-from-string",
+ "6. validate.io-array",
+ "6. validate.io-buffer",
+ "6. validate.io-integer",
+ "6. validate.io-nonnegative-integer",
+ "6. wordwrap",
+ "6. xtend"
+ ],
+ "parents": [
+ "",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "Plotly.js v1.46.x external module counter",
+ "1. @plotly/d3-sankey",
+ "1. @plotly/d3-sankey",
+ "1. @plotly/d3-sankey",
+ "1. alpha-shape",
+ "1. alpha-shape",
+ "1. canvas-fit",
+ "1. color-normalize",
+ "1. color-normalize",
+ "1. color-normalize",
+ "1. convex-hull",
+ "1. convex-hull",
+ "1. convex-hull",
+ "1. d3-force",
+ "1. d3-force",
+ "1. d3-force",
+ "1. d3-force",
+ "1. d3-interpolate",
+ "1. d3-sankey-circular",
+ "1. d3-sankey-circular",
+ "1. d3-sankey-circular",
+ "1. d3-sankey-circular",
+ "1. delaunay-triangulate",
+ "1. delaunay-triangulate",
+ "1. fast-isnumeric",
+ "1. font-atlas-sdf",
+ "1. font-atlas-sdf",
+ "1. gl-cone3d",
+ "1. gl-cone3d",
+ "1. gl-cone3d",
+ "1. gl-cone3d",
+ "1. gl-cone3d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-contour2d",
+ "1. gl-error3d",
+ "1. gl-error3d",
+ "1. gl-error3d",
+ "1. gl-error3d",
+ "1. gl-error3d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-heatmap2d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-line3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-mesh3d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot2d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-plot3d",
+ "1. gl-pointcloud2d",
+ "1. gl-pointcloud2d",
+ "1. gl-pointcloud2d",
+ "1. gl-pointcloud2d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-scatter3d",
+ "1. gl-select-box",
+ "1. gl-select-box",
+ "1. gl-select-box",
+ "1. gl-streamtube3d",
+ "1. gl-streamtube3d",
+ "1. gl-streamtube3d",
+ "1. gl-streamtube3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-surface3d",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. gl-text",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. glslify",
+ "1. has-hover",
+ "1. has-passive-events",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. mapbox-gl",
+ "1. matrix-camera-controller",
+ "1. matrix-camera-controller",
+ "1. matrix-camera-controller",
+ "1. matrix-camera-controller",
+ "1. mouse-change",
+ "1. mouse-wheel",
+ "1. mouse-wheel",
+ "1. mouse-wheel",
+ "1. ndarray",
+ "1. ndarray",
+ "1. ndarray-fill",
+ "1. ndarray-homography",
+ "1. ndarray-homography",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. point-cluster",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-error2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-line2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-scatter2d",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. regl-splom",
+ "1. robust-orientation",
+ "1. robust-orientation",
+ "1. robust-orientation",
+ "1. robust-orientation",
+ "1. svg-path-sdf",
+ "1. svg-path-sdf",
+ "1. svg-path-sdf",
+ "1. svg-path-sdf",
+ "1. svg-path-sdf",
+ "1. topojson-client",
+ "1. webgl-context",
+ "1. world-calendars",
+ "2. d3-shape",
+ "2. alpha-complex",
+ "2. alpha-complex",
+ "2. simplicial-complex-boundary",
+ "2. simplicial-complex-boundary",
+ "2. color-rgba",
+ "2. color-rgba",
+ "2. color-rgba",
+ "2. affine-hull",
+ "2. incremental-convex-hull",
+ "2. incremental-convex-hull",
+ "2. monotone-convex-hull-2d",
+ "2. elementary-circuits-directed-graph",
+ "2. gl-shader",
+ "2. gl-shader",
+ "2. cdt2d",
+ "2. cdt2d",
+ "2. cdt2d",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. clean-pslg",
+ "2. gl-buffer",
+ "2. gl-buffer",
+ "2. gl-buffer",
+ "2. surface-nets",
+ "2. surface-nets",
+ "2. surface-nets",
+ "2. typedarray-pool",
+ "2. typedarray-pool",
+ "2. gl-texture2d",
+ "2. gl-texture2d",
+ "2. gl-texture2d",
+ "2. barycentric",
+ "2. colormap",
+ "2. glsl-specular-cook-torrance",
+ "2. polytope-closest-point",
+ "2. simplicial-complex-contour",
+ "2. simplicial-complex-contour",
+ "2. simplicial-complex-contour",
+ "2. simplicial-complex-contour",
+ "2. gl-select-static",
+ "2. gl-select-static",
+ "2. gl-select-static",
+ "2. gl-select-static",
+ "2. gl-select-static",
+ "2. text-cache",
+ "2. 3d-view",
+ "2. 3d-view",
+ "2. 3d-view",
+ "2. a-big-triangle",
+ "2. a-big-triangle",
+ "2. a-big-triangle",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-axes3d",
+ "2. gl-fbo",
+ "2. gl-spikes3d",
+ "2. gl-spikes3d",
+ "2. gl-spikes3d",
+ "2. gl-spikes3d",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. vectorize-text",
+ "2. ndarray-gradient",
+ "2. ndarray-gradient",
+ "2. ndarray-ops",
+ "2. ndarray-pack",
+ "2. ndarray-pack",
+ "2. ndarray-scratch",
+ "2. ndarray-scratch",
+ "2. ndarray-scratch",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. css-font",
+ "2. es6-weak-map",
+ "2. es6-weak-map",
+ "2. es6-weak-map",
+ "2. es6-weak-map",
+ "2. flatten-vertex-data",
+ "2. font-atlas",
+ "2. font-measure",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. gl-util",
+ "2. parse-rect",
+ "2. to-px",
+ "2. bl",
+ "2. bl",
+ "2. concat-stream",
+ "2. concat-stream",
+ "2. concat-stream",
+ "2. concat-stream",
+ "2. duplexify",
+ "2. duplexify",
+ "2. duplexify",
+ "2. duplexify",
+ "2. falafel",
+ "2. falafel",
+ "2. falafel",
+ "2. falafel",
+ "2. from2",
+ "2. from2",
+ "2. glsl-resolve",
+ "2. glsl-resolve",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-bundle",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. glslify-deps",
+ "2. through2",
+ "2. through2",
+ "2. resolve",
+ "2. static-eval",
+ "2. @mapbox/vector-tile",
+ "2. geojson-rewind",
+ "2. geojson-rewind",
+ "2. geojson-rewind",
+ "2. geojson-rewind",
+ "2. gray-matter",
+ "2. gray-matter",
+ "2. gray-matter",
+ "2. gray-matter",
+ "2. brfs",
+ "2. brfs",
+ "2. brfs",
+ "2. brfs",
+ "2. through2",
+ "2. through2",
+ "2. pbf",
+ "2. pbf",
+ "2. shuffle-seed",
+ "2. sort-object",
+ "2. sort-object",
+ "2. supercluster",
+ "2. vt-pbf",
+ "2. vt-pbf",
+ "2. vt-pbf",
+ "2. mat4-interpolate",
+ "2. mat4-interpolate",
+ "2. mat4-interpolate",
+ "2. mat4-interpolate",
+ "2. mat4-interpolate",
+ "2. cwise",
+ "2. cwise",
+ "2. cwise",
+ "2. cwise",
+ "2. gl-matrix-invert",
+ "2. gl-matrix-invert",
+ "2. gl-matrix-invert",
+ "2. ndarray-warp",
+ "2. ndarray-warp",
+ "2. array-normalize",
+ "2. bubleify",
+ "2. color-id",
+ "2. image-palette",
+ "2. image-palette",
+ "2. image-palette",
+ "2. color-alpha",
+ "2. raf",
+ "2. robust-scale",
+ "2. robust-scale",
+ "2. bitmap-sdf",
+ "2. draw-svg-path",
+ "2. draw-svg-path",
+ "2. svg-path-bounds",
+ "2. svg-path-bounds",
+ "2. svg-path-bounds",
+ "2. svg-path-bounds",
+ "3. circumradius",
+ "3. boundary-cells",
+ "3. reduce-simplicial-complex",
+ "3. reduce-simplicial-complex",
+ "3. reduce-simplicial-complex",
+ "3. color-parse",
+ "3. color-parse",
+ "3. color-parse",
+ "3. color-space",
+ "3. color-space",
+ "3. simplicial-complex",
+ "3. simplicial-complex",
+ "3. gl-format-compiler-error",
+ "3. gl-format-compiler-error",
+ "3. gl-format-compiler-error",
+ "3. gl-format-compiler-error",
+ "3. robust-in-sphere",
+ "3. robust-in-sphere",
+ "3. robust-in-sphere",
+ "3. robust-in-sphere",
+ "3. big-rat",
+ "3. big-rat",
+ "3. big-rat",
+ "3. box-intersect",
+ "3. box-intersect",
+ "3. nextafter",
+ "3. rat-vec",
+ "3. robust-segment-intersect",
+ "3. ndarray-extract-contour",
+ "3. triangulate-hypercube",
+ "3. triangulate-hypercube",
+ "3. triangulate-hypercube",
+ "3. zero-crossings",
+ "3. robust-linear-solve",
+ "3. marching-simplex-table",
+ "3. ndarray-sort",
+ "3. orbit-camera-controller",
+ "3. orbit-camera-controller",
+ "3. turntable-camera-controller",
+ "3. turntable-camera-controller",
+ "3. turntable-camera-controller",
+ "3. gl-state",
+ "3. split-polygon",
+ "3. split-polygon",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. planar-graph-to-polyline",
+ "3. simplify-planar-graph",
+ "3. simplify-planar-graph",
+ "3. triangulate-polyline",
+ "3. cwise-compiler",
+ "3. string-split-by",
+ "3. d",
+ "3. es5-ext",
+ "3. es5-ext",
+ "3. es5-ext",
+ "3. es6-iterator",
+ "3. es6-iterator",
+ "3. es6-iterator",
+ "3. es6-symbol",
+ "3. es6-symbol",
+ "3. number-is-integer",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. end-of-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. glsl-inject-defines",
+ "3. glsl-inject-defines",
+ "3. glsl-inject-defines",
+ "3. glsl-token-defines",
+ "3. glsl-token-descope",
+ "3. glsl-token-descope",
+ "3. glsl-token-descope",
+ "3. glsl-token-descope",
+ "3. glsl-tokenizer",
+ "3. @choojs/findup",
+ "3. map-limit",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. escodegen",
+ "3. escodegen",
+ "3. escodegen",
+ "3. escodegen",
+ "3. escodegen",
+ "3. @mapbox/geojson-area",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. sharkdown",
+ "3. extend-shallow",
+ "3. js-yaml",
+ "3. js-yaml",
+ "3. quote-stream",
+ "3. quote-stream",
+ "3. quote-stream",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. readable-stream",
+ "3. resolve-protobuf-schema",
+ "3. mat4-decompose",
+ "3. mat4-decompose",
+ "3. mat4-recompose",
+ "3. quat-slerp",
+ "3. cwise-parser",
+ "3. cwise-parser",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. static-module",
+ "3. uglify-js",
+ "3. uglify-js",
+ "3. uglify-js",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. buble",
+ "3. pxls",
+ "3. pxls",
+ "3. pxls",
+ "3. pxls",
+ "3. pxls",
+ "3. pxls",
+ "3. normalize-svg-path",
+ "4. circumcenter",
+ "4. circumcenter",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. tape",
+ "4. compare-oriented-cell",
+ "4. compare-oriented-cell",
+ "4. mumath",
+ "4. add-line-numbers",
+ "4. glsl-shader-name",
+ "4. glsl-shader-name",
+ "4. permutation-parity",
+ "4. permutation-rank",
+ "4. permutation-rank",
+ "4. robust-determinant",
+ "4. robust-determinant",
+ "4. robust-determinant",
+ "4. robust-determinant",
+ "4. filtered-vector",
+ "4. filtered-vector",
+ "4. robust-dot-product",
+ "4. robust-dot-product",
+ "4. edges-to-adjacency-list",
+ "4. planar-dual",
+ "4. planar-dual",
+ "4. point-in-big-polygon",
+ "4. point-in-big-polygon",
+ "4. point-in-big-polygon",
+ "4. point-in-big-polygon",
+ "4. simplicial-complex",
+ "4. simplicial-complex",
+ "4. is-finite",
+ "4. string_decoder",
+ "4. string_decoder",
+ "4. string_decoder",
+ "4. once",
+ "4. string_decoder",
+ "4. through2",
+ "4. through2",
+ "4. once",
+ "4. string_decoder",
+ "4. optionator",
+ "4. optionator",
+ "4. optionator",
+ "4. optionator",
+ "4. optionator",
+ "4. optionator",
+ "4. cardinal",
+ "4. cardinal",
+ "4. split",
+ "4. stream-spigot",
+ "4. argparse",
+ "4. has",
+ "4. magic-string",
+ "4. duplexer2",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. merge-source-map",
+ "4. string_decoder",
+ "4. gl-quat",
+ "4. gl-quat",
+ "4. gl-quat",
+ "4. duplexer2",
+ "4. quote-stream",
+ "4. quote-stream",
+ "4. readable-stream",
+ "4. readable-stream",
+ "4. readable-stream",
+ "4. readable-stream",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. escodegen",
+ "4. static-eval",
+ "4. through2",
+ "4. through2",
+ "4. yargs",
+ "4. yargs",
+ "4. yargs",
+ "4. yargs",
+ "4. acorn-dynamic-import",
+ "4. acorn-jsx",
+ "4. chalk",
+ "4. chalk",
+ "4. chalk",
+ "4. compute-dims",
+ "4. compute-dims",
+ "4. compute-dims",
+ "4. compute-dims",
+ "4. compute-dims",
+ "4. to-uint8",
+ "4. to-uint8",
+ "4. to-uint8",
+ "4. to-uint8",
+ "4. to-uint8"
+ ],
+ "labels": [
+ "Plotly.js v1.46.x external module counter",
+ "1. @plotly/d3-sankey",
+ "1. alpha-shape",
+ "1. array-range",
+ "1. canvas-fit",
+ "1. color-normalize",
+ "1. convex-hull",
+ "1. country-regex",
+ "1. d3",
+ "1. d3-force",
+ "1. d3-hierarchy",
+ "1. d3-interpolate",
+ "1. d3-sankey-circular",
+ "1. delaunay-triangulate",
+ "1. es6-promise",
+ "1. fast-isnumeric",
+ "1. font-atlas-sdf",
+ "1. gl-cone3d",
+ "1. gl-contour2d",
+ "1. gl-error3d",
+ "1. gl-heatmap2d",
+ "1. gl-line3d",
+ "1. gl-mat4",
+ "1. gl-mesh3d",
+ "1. gl-plot2d",
+ "1. gl-plot3d",
+ "1. gl-pointcloud2d",
+ "1. gl-scatter3d",
+ "1. gl-select-box",
+ "1. gl-spikes2d",
+ "1. gl-streamtube3d",
+ "1. gl-surface3d",
+ "1. gl-text",
+ "1. glslify",
+ "1. has-hover",
+ "1. has-passive-events",
+ "1. mapbox-gl",
+ "1. matrix-camera-controller",
+ "1. mouse-change",
+ "1. mouse-event-offset",
+ "1. mouse-wheel",
+ "1. ndarray",
+ "1. ndarray-fill",
+ "1. ndarray-homography",
+ "1. point-cluster",
+ "1. polybooljs",
+ "1. regl",
+ "1. regl-error2d",
+ "1. regl-line2d",
+ "1. regl-scatter2d",
+ "1. regl-splom",
+ "1. right-now",
+ "1. robust-orientation",
+ "1. sane-topojson",
+ "1. strongly-connected-components",
+ "1. superscript-text",
+ "1. svg-path-sdf",
+ "1. tinycolor2",
+ "1. topojson-client",
+ "1. webgl-context",
+ "1. world-calendars",
+ "2. d3-array",
+ "2. d3-collection",
+ "2. d3-shape",
+ "2. alpha-complex",
+ "2. simplicial-complex-boundary",
+ "2. element-size",
+ "2. clamp",
+ "2. color-rgba",
+ "2. dtype",
+ "2. affine-hull",
+ "2. incremental-convex-hull",
+ "2. monotone-convex-hull-2d",
+ "2. d3-collection",
+ "2. d3-dispatch",
+ "2. d3-quadtree",
+ "2. d3-timer",
+ "2. d3-color",
+ "2. d3-array",
+ "2. d3-collection",
+ "2. d3-shape",
+ "2. elementary-circuits-directed-graph",
+ "2. incremental-convex-hull",
+ "2. uniq",
+ "2. is-string-blank",
+ "2. optical-properties",
+ "2. tiny-sdf",
+ "2. gl-shader",
+ "2. gl-vec3",
+ "2. glsl-inverse",
+ "2. glsl-out-of-range",
+ "2. glslify",
+ "2. cdt2d",
+ "2. clean-pslg",
+ "2. gl-buffer",
+ "2. binary-search-bounds",
+ "2. gl-shader",
+ "2. glslify",
+ "2. iota-array",
+ "2. ndarray",
+ "2. surface-nets",
+ "2. gl-buffer",
+ "2. gl-shader",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glslify",
+ "2. gl-buffer",
+ "2. binary-search-bounds",
+ "2. gl-shader",
+ "2. glslify",
+ "2. iota-array",
+ "2. typedarray-pool",
+ "2. gl-buffer",
+ "2. binary-search-bounds",
+ "2. gl-shader",
+ "2. gl-texture2d",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glsl-read-float",
+ "2. glslify",
+ "2. ndarray",
+ "2. barycentric",
+ "2. colormap",
+ "2. gl-buffer",
+ "2. gl-mat4",
+ "2. gl-shader",
+ "2. gl-texture2d",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glsl-specular-cook-torrance",
+ "2. glslify",
+ "2. ndarray",
+ "2. normals",
+ "2. polytope-closest-point",
+ "2. simplicial-complex-contour",
+ "2. typedarray-pool",
+ "2. gl-buffer",
+ "2. binary-search-bounds",
+ "2. gl-select-static",
+ "2. gl-shader",
+ "2. glsl-inverse",
+ "2. glslify",
+ "2. text-cache",
+ "2. 3d-view",
+ "2. a-big-triangle",
+ "2. gl-axes3d",
+ "2. gl-fbo",
+ "2. gl-mat4",
+ "2. gl-select-static",
+ "2. gl-shader",
+ "2. gl-spikes3d",
+ "2. glslify",
+ "2. has-passive-events",
+ "2. is-mobile",
+ "2. mouse-change",
+ "2. mouse-event-offset",
+ "2. mouse-wheel",
+ "2. ndarray",
+ "2. right-now",
+ "2. gl-buffer",
+ "2. gl-shader",
+ "2. glslify",
+ "2. typedarray-pool",
+ "2. gl-buffer",
+ "2. gl-mat4",
+ "2. gl-shader",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glslify",
+ "2. is-string-blank",
+ "2. typedarray-pool",
+ "2. vectorize-text",
+ "2. gl-buffer",
+ "2. gl-shader",
+ "2. glslify",
+ "2. gl-vec3",
+ "2. glsl-inverse",
+ "2. glsl-out-of-range",
+ "2. glslify",
+ "2. bit-twiddle",
+ "2. colormap",
+ "2. dup",
+ "2. gl-buffer",
+ "2. gl-mat4",
+ "2. gl-shader",
+ "2. binary-search-bounds",
+ "2. gl-texture2d",
+ "2. gl-vao",
+ "2. glsl-out-of-range",
+ "2. glsl-specular-beckmann",
+ "2. glslify",
+ "2. ndarray",
+ "2. ndarray-gradient",
+ "2. ndarray-ops",
+ "2. ndarray-pack",
+ "2. ndarray-scratch",
+ "2. surface-nets",
+ "2. typedarray-pool",
+ "2. bit-twiddle",
+ "2. color-normalize",
+ "2. css-font",
+ "2. detect-kerning",
+ "2. es6-weak-map",
+ "2. flatten-vertex-data",
+ "2. font-atlas",
+ "2. font-measure",
+ "2. gl-util",
+ "2. is-plain-obj",
+ "2. object-assign",
+ "2. parse-rect",
+ "2. parse-unit",
+ "2. pick-by-alias",
+ "2. regl",
+ "2. to-px",
+ "2. typedarray-pool",
+ "2. bl",
+ "2. concat-stream",
+ "2. duplexify",
+ "2. falafel",
+ "2. from2",
+ "2. glsl-resolve",
+ "2. glsl-token-whitespace-trim",
+ "2. glslify-bundle",
+ "2. glslify-deps",
+ "2. through2",
+ "2. minimist",
+ "2. resolve",
+ "2. stack-trace",
+ "2. static-eval",
+ "2. xtend",
+ "2. is-browser",
+ "2. is-browser",
+ "2. @mapbox/gl-matrix",
+ "2. @mapbox/jsonlint-lines-primitives",
+ "2. @mapbox/mapbox-gl-supported",
+ "2. @mapbox/point-geometry",
+ "2. @mapbox/shelf-pack",
+ "2. @mapbox/tiny-sdf",
+ "2. @mapbox/unitbezier",
+ "2. @mapbox/vector-tile",
+ "2. @mapbox/whoots-js",
+ "2. csscolorparser",
+ "2. earcut",
+ "2. geojson-rewind",
+ "2. geojson-vt",
+ "2. gray-matter",
+ "2. grid-index",
+ "2. brfs",
+ "2. minimist",
+ "2. through2",
+ "2. pbf",
+ "2. quickselect",
+ "2. rw",
+ "2. shuffle-seed",
+ "2. sort-object",
+ "2. supercluster",
+ "2. tinyqueue",
+ "2. vt-pbf",
+ "2. binary-search-bounds",
+ "2. gl-mat4",
+ "2. gl-vec3",
+ "2. mat4-interpolate",
+ "2. mouse-event",
+ "2. signum",
+ "2. right-now",
+ "2. to-px",
+ "2. iota-array",
+ "2. is-buffer",
+ "2. cwise",
+ "2. gl-matrix-invert",
+ "2. ndarray-warp",
+ "2. array-bounds",
+ "2. array-normalize",
+ "2. bubleify",
+ "2. clamp",
+ "2. dtype",
+ "2. flatten-vertex-data",
+ "2. is-obj",
+ "2. math-log2",
+ "2. parse-rect",
+ "2. binary-search-bounds",
+ "2. array-bounds",
+ "2. bubleify",
+ "2. color-normalize",
+ "2. flatten-vertex-data",
+ "2. object-assign",
+ "2. pick-by-alias",
+ "2. to-float32",
+ "2. update-diff",
+ "2. array-bounds",
+ "2. array-normalize",
+ "2. bubleify",
+ "2. color-normalize",
+ "2. earcut",
+ "2. es6-weak-map",
+ "2. flatten-vertex-data",
+ "2. glslify",
+ "2. object-assign",
+ "2. parse-rect",
+ "2. pick-by-alias",
+ "2. to-float32",
+ "2. array-range",
+ "2. array-rearrange",
+ "2. clamp",
+ "2. color-id",
+ "2. color-normalize",
+ "2. color-rgba",
+ "2. flatten-vertex-data",
+ "2. glslify",
+ "2. image-palette",
+ "2. is-iexplorer",
+ "2. object-assign",
+ "2. parse-rect",
+ "2. pick-by-alias",
+ "2. point-cluster",
+ "2. to-float32",
+ "2. update-diff",
+ "2. array-bounds",
+ "2. array-range",
+ "2. bubleify",
+ "2. color-alpha",
+ "2. defined",
+ "2. flatten-vertex-data",
+ "2. left-pad",
+ "2. parse-rect",
+ "2. pick-by-alias",
+ "2. point-cluster",
+ "2. raf",
+ "2. regl-scatter2d",
+ "2. robust-scale",
+ "2. robust-subtract",
+ "2. robust-sum",
+ "2. two-product",
+ "2. bitmap-sdf",
+ "2. draw-svg-path",
+ "2. is-svg-path",
+ "2. parse-svg-path",
+ "2. svg-path-bounds",
+ "2. commander",
+ "2. get-canvas-context",
+ "2. object-assign",
+ "3. d3-path",
+ "3. circumradius",
+ "3. delaunay-triangulate",
+ "3. boundary-cells",
+ "3. reduce-simplicial-complex",
+ "3. clamp",
+ "3. color-parse",
+ "3. color-space",
+ "3. robust-orientation",
+ "3. robust-orientation",
+ "3. simplicial-complex",
+ "3. robust-orientation",
+ "3. strongly-connected-components",
+ "3. gl-format-compiler-error",
+ "3. weakmap-shim",
+ "3. binary-search-bounds",
+ "3. robust-in-sphere",
+ "3. robust-orientation",
+ "3. big-rat",
+ "3. box-intersect",
+ "3. nextafter",
+ "3. rat-vec",
+ "3. robust-segment-intersect",
+ "3. union-find",
+ "3. uniq",
+ "3. ndarray",
+ "3. ndarray-ops",
+ "3. typedarray-pool",
+ "3. ndarray-extract-contour",
+ "3. triangulate-hypercube",
+ "3. zero-crossings",
+ "3. bit-twiddle",
+ "3. dup",
+ "3. ndarray",
+ "3. ndarray-ops",
+ "3. typedarray-pool",
+ "3. robust-linear-solve",
+ "3. lerp",
+ "3. glsl-specular-beckmann",
+ "3. numeric",
+ "3. marching-simplex-table",
+ "3. ndarray",
+ "3. ndarray-sort",
+ "3. typedarray-pool",
+ "3. bit-twiddle",
+ "3. cwise",
+ "3. gl-fbo",
+ "3. ndarray",
+ "3. typedarray-pool",
+ "3. vectorize-text",
+ "3. matrix-camera-controller",
+ "3. orbit-camera-controller",
+ "3. turntable-camera-controller",
+ "3. gl-buffer",
+ "3. gl-vao",
+ "3. weak-map",
+ "3. bit-twiddle",
+ "3. dup",
+ "3. extract-frustum-planes",
+ "3. gl-buffer",
+ "3. gl-mat4",
+ "3. gl-shader",
+ "3. gl-state",
+ "3. gl-vao",
+ "3. gl-vec4",
+ "3. glslify",
+ "3. robust-orientation",
+ "3. split-polygon",
+ "3. vectorize-text",
+ "3. gl-texture2d",
+ "3. gl-buffer",
+ "3. gl-shader",
+ "3. gl-vao",
+ "3. glslify",
+ "3. cdt2d",
+ "3. clean-pslg",
+ "3. ndarray",
+ "3. planar-graph-to-polyline",
+ "3. simplify-planar-graph",
+ "3. surface-nets",
+ "3. triangulate-polyline",
+ "3. cwise-compiler",
+ "3. dup",
+ "3. cwise-compiler",
+ "3. cwise-compiler",
+ "3. ndarray",
+ "3. ndarray",
+ "3. ndarray-ops",
+ "3. typedarray-pool",
+ "3. css-font-size-keywords",
+ "3. css-font-stretch-keywords",
+ "3. css-font-style-keywords",
+ "3. css-font-weight-keywords",
+ "3. css-global-keywords",
+ "3. css-system-font-keywords",
+ "3. pick-by-alias",
+ "3. string-split-by",
+ "3. unquote",
+ "3. d",
+ "3. es5-ext",
+ "3. es6-iterator",
+ "3. es6-symbol",
+ "3. dtype",
+ "3. css-font",
+ "3. css-font",
+ "3. es6-weak-map",
+ "3. is-browser",
+ "3. is-firefox",
+ "3. is-plain-obj",
+ "3. number-is-integer",
+ "3. object-assign",
+ "3. pick-by-alias",
+ "3. pick-by-alias",
+ "3. parse-unit",
+ "3. readable-stream",
+ "3. safe-buffer",
+ "3. buffer-from",
+ "3. readable-stream",
+ "3. inherits",
+ "3. typedarray",
+ "3. readable-stream",
+ "3. end-of-stream",
+ "3. inherits",
+ "3. stream-shift",
+ "3. acorn",
+ "3. foreach",
+ "3. isarray",
+ "3. object-keys",
+ "3. readable-stream",
+ "3. inherits",
+ "3. resolve",
+ "3. xtend",
+ "3. glsl-inject-defines",
+ "3. glsl-token-defines",
+ "3. glsl-token-depth",
+ "3. glsl-token-descope",
+ "3. glsl-token-scope",
+ "3. glsl-token-string",
+ "3. glsl-token-whitespace-trim",
+ "3. glsl-tokenizer",
+ "3. murmurhash-js",
+ "3. shallow-copy",
+ "3. @choojs/findup",
+ "3. events",
+ "3. glsl-resolve",
+ "3. glsl-tokenizer",
+ "3. graceful-fs",
+ "3. inherits",
+ "3. map-limit",
+ "3. resolve",
+ "3. readable-stream",
+ "3. xtend",
+ "3. path-parse",
+ "3. escodegen",
+ "3. @mapbox/point-geometry",
+ "3. @mapbox/geojson-area",
+ "3. concat-stream",
+ "3. minimist",
+ "3. sharkdown",
+ "3. extend-shallow",
+ "3. kind-of",
+ "3. js-yaml",
+ "3. strip-bom-string",
+ "3. quote-stream",
+ "3. static-module",
+ "3. through2",
+ "3. resolve",
+ "3. readable-stream",
+ "3. xtend",
+ "3. ieee754",
+ "3. resolve-protobuf-schema",
+ "3. seedrandom",
+ "3. sort-asc",
+ "3. sort-desc",
+ "3. kdbush",
+ "3. @mapbox/point-geometry",
+ "3. @mapbox/vector-tile",
+ "3. pbf",
+ "3. gl-mat4",
+ "3. gl-vec3",
+ "3. mat4-decompose",
+ "3. mat4-recompose",
+ "3. quat-slerp",
+ "3. cwise-compiler",
+ "3. cwise-parser",
+ "3. static-module",
+ "3. uglify-js",
+ "3. gl-mat2",
+ "3. gl-mat3",
+ "3. gl-mat4",
+ "3. cwise",
+ "3. ndarray-linear-interpolate",
+ "3. array-bounds",
+ "3. buble",
+ "3. clamp",
+ "3. color-id",
+ "3. pxls",
+ "3. quantize",
+ "3. color-parse",
+ "3. performance-now",
+ "3. two-product",
+ "3. two-sum",
+ "3. clamp",
+ "3. abs-svg-path",
+ "3. normalize-svg-path",
+ "3. abs-svg-path",
+ "3. is-svg-path",
+ "3. parse-svg-path",
+ "3. normalize-svg-path",
+ "4. circumcenter",
+ "4. tape",
+ "4. cell-orientation",
+ "4. compare-cell",
+ "4. compare-oriented-cell",
+ "4. color-name",
+ "4. defined",
+ "4. is-plain-obj",
+ "4. hsluv",
+ "4. mumath",
+ "4. bit-twiddle",
+ "4. union-find",
+ "4. add-line-numbers",
+ "4. gl-constants",
+ "4. glsl-shader-name",
+ "4. sprintf-js",
+ "4. robust-scale",
+ "4. robust-subtract",
+ "4. robust-sum",
+ "4. two-product",
+ "4. bit-twiddle",
+ "4. bn.js",
+ "4. double-bits",
+ "4. bit-twiddle",
+ "4. typedarray-pool",
+ "4. double-bits",
+ "4. big-rat",
+ "4. robust-orientation",
+ "4. typedarray-pool",
+ "4. gamma",
+ "4. permutation-parity",
+ "4. permutation-rank",
+ "4. cwise-compiler",
+ "4. robust-determinant",
+ "4. convex-hull",
+ "4. typedarray-pool",
+ "4. filtered-vector",
+ "4. gl-mat4",
+ "4. filtered-vector",
+ "4. gl-mat4",
+ "4. gl-vec3",
+ "4. uniq",
+ "4. robust-dot-product",
+ "4. robust-sum",
+ "4. edges-to-adjacency-list",
+ "4. planar-dual",
+ "4. point-in-big-polygon",
+ "4. robust-orientation",
+ "4. robust-sum",
+ "4. two-product",
+ "4. uniq",
+ "4. robust-orientation",
+ "4. simplicial-complex",
+ "4. cdt2d",
+ "4. uniq",
+ "4. parenthesis",
+ "4. es5-ext",
+ "4. es6-iterator",
+ "4. es6-symbol",
+ "4. next-tick",
+ "4. d",
+ "4. es5-ext",
+ "4. es6-symbol",
+ "4. d",
+ "4. es5-ext",
+ "4. is-finite",
+ "4. isarray",
+ "4. string_decoder",
+ "4. core-util-is",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. isarray",
+ "4. string_decoder",
+ "4. core-util-is",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. core-util-is",
+ "4. isarray",
+ "4. string_decoder",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. once",
+ "4. core-util-is",
+ "4. isarray",
+ "4. string_decoder",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. glsl-token-inject-block",
+ "4. glsl-token-string",
+ "4. glsl-tokenizer",
+ "4. glsl-tokenizer",
+ "4. glsl-token-assignments",
+ "4. glsl-token-depth",
+ "4. glsl-token-properties",
+ "4. glsl-token-scope",
+ "4. through2",
+ "4. commander",
+ "4. once",
+ "4. core-util-is",
+ "4. isarray",
+ "4. string_decoder",
+ "4. inherits",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. esprima",
+ "4. estraverse",
+ "4. esutils",
+ "4. optionator",
+ "4. source-map",
+ "4. wgs84",
+ "4. cardinal",
+ "4. expect.js",
+ "4. minimist",
+ "4. split",
+ "4. stream-spigot",
+ "4. through",
+ "4. is-extendable",
+ "4. argparse",
+ "4. esprima",
+ "4. buffer-equal",
+ "4. minimist",
+ "4. through2",
+ "4. concat-stream",
+ "4. convert-source-map",
+ "4. falafel",
+ "4. has",
+ "4. magic-string",
+ "4. duplexer2",
+ "4. escodegen",
+ "4. object-inspect",
+ "4. quote-stream",
+ "4. readable-stream",
+ "4. through2",
+ "4. merge-source-map",
+ "4. shallow-copy",
+ "4. static-eval",
+ "4. core-util-is",
+ "4. inherits",
+ "4. isarray",
+ "4. string_decoder",
+ "4. process-nextick-args",
+ "4. safe-buffer",
+ "4. util-deprecate",
+ "4. protocol-buffers-schema",
+ "4. gl-mat4",
+ "4. gl-vec3",
+ "4. gl-mat4",
+ "4. gl-quat",
+ "4. esprima",
+ "4. uniq",
+ "4. concat-stream",
+ "4. duplexer2",
+ "4. falafel",
+ "4. has",
+ "4. quote-stream",
+ "4. readable-stream",
+ "4. shallow-copy",
+ "4. escodegen",
+ "4. object-inspect",
+ "4. static-eval",
+ "4. through2",
+ "4. source-map",
+ "4. uglify-to-browserify",
+ "4. yargs",
+ "4. acorn",
+ "4. acorn-dynamic-import",
+ "4. acorn-jsx",
+ "4. vlq",
+ "4. chalk",
+ "4. magic-string",
+ "4. minimist",
+ "4. os-homedir",
+ "4. arr-flatten",
+ "4. compute-dims",
+ "4. flip-pixels",
+ "4. is-browser",
+ "4. is-buffer",
+ "4. to-uint8",
+ "4. svg-arc-to-cubic-bezier",
+ "5. dup",
+ "5. robust-linear-solve",
+ "5. deep-equal",
+ "5. defined",
+ "5. for-each",
+ "5. function-bind",
+ "5. glob",
+ "5. has",
+ "5. inherits",
+ "5. minimist",
+ "5. object-inspect",
+ "5. resolve",
+ "5. resumer",
+ "5. string.prototype.trim",
+ "5. through",
+ "5. cell-orientation",
+ "5. compare-cell",
+ "5. almost-equal",
+ "5. pad-left",
+ "5. atob-lite",
+ "5. glsl-tokenizer",
+ "5. typedarray-pool",
+ "5. invert-permutation",
+ "5. typedarray-pool",
+ "5. robust-compress",
+ "5. robust-scale",
+ "5. robust-sum",
+ "5. two-product",
+ "5. binary-search-bounds",
+ "5. cubic-hermite",
+ "5. robust-sum",
+ "5. two-product",
+ "5. uniq",
+ "5. compare-angle",
+ "5. dup",
+ "5. binary-search-bounds",
+ "5. interval-tree-1d",
+ "5. robust-orientation",
+ "5. slab-decomposition",
+ "5. bit-twiddle",
+ "5. union-find",
+ "5. number-is-nan",
+ "5. safe-buffer",
+ "5. safe-buffer",
+ "5. safe-buffer",
+ "5. wrappy",
+ "5. safe-buffer",
+ "5. readable-stream",
+ "5. xtend",
+ "5. wrappy",
+ "5. safe-buffer",
+ "5. deep-is",
+ "5. fast-levenshtein",
+ "5. levn",
+ "5. prelude-ls",
+ "5. type-check",
+ "5. wordwrap",
+ "5. ansicolors",
+ "5. redeyed",
+ "5. through",
+ "5. readable-stream",
+ "5. sprintf-js",
+ "5. function-bind",
+ "5. vlq",
+ "5. readable-stream",
+ "5. esprima",
+ "5. estraverse",
+ "5. esutils",
+ "5. optionator",
+ "5. source-map",
+ "5. source-map",
+ "5. safe-buffer",
+ "5. gl-mat3",
+ "5. gl-vec3",
+ "5. gl-vec4",
+ "5. readable-stream",
+ "5. minimist",
+ "5. through2",
+ "5. core-util-is",
+ "5. inherits",
+ "5. isarray",
+ "5. string_decoder",
+ "5. esprima",
+ "5. estraverse",
+ "5. esutils",
+ "5. source-map",
+ "5. escodegen",
+ "5. readable-stream",
+ "5. xtend",
+ "5. camelcase",
+ "5. cliui",
+ "5. decamelize",
+ "5. window-size",
+ "5. acorn",
+ "5. acorn",
+ "5. ansi-styles",
+ "5. escape-string-regexp",
+ "5. supports-color",
+ "5. utils-copy",
+ "5. validate.io-array",
+ "5. validate.io-matrix-like",
+ "5. validate.io-ndarray-like",
+ "5. validate.io-positive-integer",
+ "5. arr-flatten",
+ "5. clamp",
+ "5. is-base64",
+ "5. is-float-array",
+ "5. to-array-buffer"
+ ]
+ }
+ ],
+ "layout": {
+ "width": 800,
+ "height": 800
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_packings.json b/test/image/mocks/zz-voronoi_packings.json
new file mode 100644
index 00000000000..d2971032e23
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_packings.json
@@ -0,0 +1,550 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "hoverinfo": "all",
+ "name": "ellipse voronoi",
+ "tiling": {
+ "shape": "ellipse"
+ },
+ "pathbar": {
+ "edgeshape": "/",
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": "Blackbody",
+ "reversescale": true
+ },
+ "domain": {
+ "x": [0, 0.3],
+ "y": [0, 0.45]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "hoverinfo": "all",
+ "name": "rectangle voronoi",
+ "tiling": {
+ "shape": "rectangle"
+ },
+ "pathbar": {
+ "edgeshape": "|",
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": "Blackbody",
+ "reversescale": true
+ },
+ "domain": {
+ "x": [0.35, 0.65],
+ "y": [0, 0.45]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "hoverinfo": "all",
+ "name": "triangle voronoi",
+ "tiling": {
+ "shape": "triangle"
+ },
+ "pathbar": {
+ "edgeshape": "<",
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": "Blackbody",
+ "reversescale": true
+ },
+ "domain": {
+ "x": [0.7, 1],
+ "y": [0, 0.45]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "hoverinfo": "all",
+ "name": "circle voronoi",
+ "tiling": {
+ "shape": "circle"
+ },
+ "pathbar": {
+ "edgeshape": ">",
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": "Blackbody",
+ "reversescale": true
+ },
+ "domain": {
+ "x": [0, 0.3],
+ "y": [0.5, 0.95]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "hoverinfo": "all",
+ "name": "square voronoi",
+ "tiling": {
+ "shape": "square"
+ },
+ "pathbar": {
+ "edgeshape": "|",
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": "Blackbody",
+ "reversescale": true
+ },
+ "domain": {
+ "x": [0.35, 0.65],
+ "y": [0.5, 0.95]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "hoverinfo": "all",
+ "name": "pentagon voronoi",
+ "tiling": {
+ "shape": "pentagon"
+ },
+ "pathbar": {
+ "edgeshape": "\\",
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": "Blackbody",
+ "reversescale": true
+ },
+ "domain": {
+ "x": [0.7, 1],
+ "y": [0.5, 0.95]
+ }
+ }
+ ],
+ "layout": {
+ "width": 1200,
+ "height": 800,
+ "annotations": [
+ {
+ "showarrow": false,
+ "text": "ellipse voronoi
with / edgeshape",
+ "x": 0.15,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "rectangle voronoi
with | edgeshape",
+ "x": 0.5,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "triangle voronoi
with < edgeshape",
+ "x": 0.85,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "circle voronoi
with > edgeshape",
+ "x": 0.15,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ },
+ {
+ "showarrow": false,
+ "text": "square voronoi
with | edgeshape",
+ "x": 0.5,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ },
+ {
+ "showarrow": false,
+ "text": "pentagon voronoi
with \\ edgeshape",
+ "x": 0.85,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ }
+ ]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_pad_mirror.json b/test/image/mocks/zz-voronoi_pad_mirror.json
new file mode 100644
index 00000000000..2f643e852ca
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_pad_mirror.json
@@ -0,0 +1,400 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "rectangle"
+ },
+ "marker": {
+ "depthfade": "reversed"
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0, 0.45]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "ellipse"
+ },
+ "marker": {
+ "depthfade": "reversed"
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0.5, 0.95]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "rectangle"
+ },
+ "marker": {
+ "depthfade": true
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0, 0.45]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "ellipse"
+ },
+ "marker": {
+ "depthfade": true
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0.5, 0.95]
+ }
+ }
+ ],
+ "layout": {
+ "width": 1200,
+ "height": 800,
+ "shapes": [
+ {
+ "type": "circle",
+ "layer": "below",
+ "x0": 0.075,
+ "x1": 0.925,
+ "y0": 0.0,
+ "y1": 0.8
+ },
+ {
+ "type": "rect",
+ "layer": "below",
+ "x0": 0.02,
+ "x1": 0.48,
+ "y0": 0,
+ "y1": 0.45
+ },
+ {
+ "type": "rect",
+ "layer": "below",
+ "x0": 0.02,
+ "x1": 0.48,
+ "y0": 0.5,
+ "y1": 0.95
+ },
+ {
+ "type": "rect",
+ "layer": "below",
+ "x0": 0.52,
+ "x1": 0.98,
+ "y0": 0,
+ "y1": 0.45
+ },
+ {
+ "type": "rect",
+ "layer": "below",
+ "x0": 0.52,
+ "x1": 0.98,
+ "y0": 0.5,
+ "y1": 0.95
+ }
+ ],
+ "annotations": [
+ {
+ "showarrow": false,
+ "text": "rectangle
depthfade: 'reversed'",
+ "font": {
+ "size": 16
+ },
+ "x": 0.25,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "ellipse
depthfade: 'reversed'",
+ "font": {
+ "size": 16
+ },
+ "x": 0.25,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ },
+ {
+ "showarrow": false,
+ "text": "rectangle
depthfade: true",
+ "font": {
+ "size": 16
+ },
+ "x": 0.75,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "ellipse
depthfade: true",
+ "font": {
+ "size": 16
+ },
+ "x": 0.75,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ }
+ ]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_pad_transpose.json b/test/image/mocks/zz-voronoi_pad_transpose.json
new file mode 100644
index 00000000000..fca8458c137
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_pad_transpose.json
@@ -0,0 +1,406 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "rectangle"
+ },
+ "marker": {
+ "depthfade": "reversed"
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0, 0.45]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "ellipse"
+ },
+ "marker": {
+ "depthfade": "reversed"
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.02, 0.48],
+ "y": [0.5, 0.95]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "rectangle"
+ },
+ "marker": {
+ "depthfade": true
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0, 0.45]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "ellipse"
+ },
+ "marker": {
+ "depthfade": true
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.52, 0.98],
+ "y": [0.5, 0.95]
+ }
+ }
+ ],
+ "layout": {
+ "width": 1200,
+ "height": 800,
+ "paper_bgcolor": "darkblue",
+ "voronoicolorway": ["#ff0", "#f00", "#0f0"],
+ "shapes": [
+ {
+ "type": "circle",
+ "layer": "below",
+ "x0": 0.075,
+ "x1": 0.925,
+ "y0": 0.0,
+ "y1": 0.8
+ },
+ {
+ "type": "rect",
+ "layer": "below",
+ "x0": 0.02,
+ "x1": 0.48,
+ "y0": 0.0,
+ "y1": 0.45
+ },
+ {
+ "type": "rect",
+ "layer": "below",
+ "x0": 0.02,
+ "x1": 0.48,
+ "y0": 0.5,
+ "y1": 0.95
+ },
+ {
+ "type": "rect",
+ "layer": "below",
+ "x0": 0.52,
+ "x1": 0.98,
+ "y0": 0.0,
+ "y1": 0.45
+ },
+ {
+ "type": "rect",
+ "layer": "below",
+ "x0": 0.52,
+ "x1": 0.98,
+ "y0": 0.5,
+ "y1": 0.95
+ }
+ ],
+ "annotations": [
+ {
+ "showarrow": false,
+ "text": "rectangle
depthfade: 'reversed'",
+ "font": {
+ "color": "white",
+ "size": 16
+ },
+ "x": 0.25,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "ellipse
depthfade: 'reversed'",
+ "font": {
+ "color": "white",
+ "size": 16
+ },
+ "x": 0.25,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ },
+ {
+ "showarrow": false,
+ "text": "rectangle
depthfade: true",
+ "font": {
+ "color": "white",
+ "size": 16
+ },
+ "x": 0.75,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "ellipse
depthfade: true",
+ "font": {
+ "color": "white",
+ "size": 16
+ },
+ "x": 0.75,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ }
+ ]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_root-color.json b/test/image/mocks/zz-voronoi_root-color.json
new file mode 100644
index 00000000000..b8c7438635d
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_root-color.json
@@ -0,0 +1,78 @@
+{
+ "data": [
+ {
+ "hovertemplate": "labels=%{label}
sales=%{value}
parent=%{parent}
id=%{id}",
+ "ids": [
+ "all/North/Tech/A",
+ "all/North/Tech/B",
+ "all/North/Finance/C",
+ "all/North/Finance/D",
+ "all/South/Tech/E",
+ "all/South/Tech/F",
+ "all/South/Finance/G",
+ "all/South/Finance/H",
+ "all/North/Finance",
+ "all/South/Finance",
+ "all/North/Other",
+ "all/South/Other",
+ "all/North/Tech",
+ "all/South/Tech",
+ "all/North",
+ "all/South",
+ "all"
+ ],
+ "labels": [
+ "A",
+ "B",
+ "C",
+ "D",
+ "E",
+ "F",
+ "G",
+ "H",
+ "Finance",
+ "Finance",
+ "Other",
+ "Other",
+ "Tech",
+ "Tech",
+ "North",
+ "South",
+ "all"
+ ],
+ "name": "",
+ "parents": [
+ "all/North/Tech",
+ "all/North/Tech",
+ "all/North/Finance",
+ "all/North/Finance",
+ "all/South/Tech",
+ "all/South/Tech",
+ "all/South/Finance",
+ "all/South/Finance",
+ "all/North",
+ "all/South",
+ "all/North",
+ "all/South",
+ "all/North",
+ "all/South",
+ "all",
+ "all",
+ ""
+ ],
+ "type": "voronoi",
+ "branchvalues": "total",
+ "values": [1, 3, 2, 4, 2, 2, 1, 4, 6, 5, 1, 1, 4, 4, 11, 10, 21]
+ }
+ ],
+ "layout": {
+ "width": 320,
+ "height": 200,
+ "margin": {
+ "t": 20,
+ "l": 20,
+ "r": 20,
+ "b": 20
+ }
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_sunburst_basic.json b/test/image/mocks/zz-voronoi_sunburst_basic.json
new file mode 100644
index 00000000000..8eabe4f78f8
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_sunburst_basic.json
@@ -0,0 +1,147 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "level": "",
+ "labels": ["A1", "A2", "A3", "A4", "A5", "B1", "B2"],
+ "parents": ["", "A1", "A2", "A3", "A4", "", "B1"],
+ "domain": {
+ "x": [0, 0.24],
+ "y": [0.7, 1]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "A1",
+ "labels": ["A1", "A2", "A3", "A4", "A5", "B1", "B2"],
+ "parents": ["", "A1", "A2", "A3", "A4", "", "B1"],
+ "domain": {
+ "x": [0, 0.24],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "A4",
+ "labels": ["A1", "A2", "A3", "A4", "A5", "B1", "B2"],
+ "parents": ["", "A1", "A2", "A3", "A4", "", "B1"],
+ "domain": {
+ "x": [0, 0.24],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "",
+ "labels": ["C1", "C2", "C3", "C4", "C5", "D1", "D2"],
+ "parents": ["Root", "C1", "C2", "C3", "C4", "Root", "D1"],
+ "domain": {
+ "x": [0.26, 0.49],
+ "y": [0.7, 1]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "C1",
+ "labels": ["C1", "C2", "C3", "C4", "C5", "D1", "D2"],
+ "parents": ["Root", "C1", "C2", "C3", "C4", "Root", "D1"],
+ "domain": {
+ "x": [0.26, 0.49],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "C4",
+ "labels": ["C1", "C2", "C3", "C4", "C5", "D1", "D2"],
+ "parents": ["Root", "C1", "C2", "C3", "C4", "Root", "D1"],
+ "domain": {
+ "x": [0.26, 0.49],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "sunburst",
+ "rotation": 180,
+ "level": "",
+ "labels": ["A1", "A2", "A3", "A4", "A5", "B1", "B2"],
+ "parents": ["", "A1", "A2", "A3", "A4", "", "B1"],
+ "domain": {
+ "x": [0.51, 0.74],
+ "y": [0.7, 1]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "A2",
+ "maxdepth": 3,
+ "labels": ["A1", "A2", "A3", "A4", "A5", "B1", "B2"],
+ "parents": ["", "A1", "A2", "A3", "A4", "", "B1"],
+ "domain": {
+ "x": [0.51, 0.74],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "A2",
+ "maxdepth": 3,
+ "marker": {
+ "depthfade": "reversed"
+ },
+ "labels": ["A1", "A2", "A3", "A4", "A5", "B1", "B2"],
+ "parents": ["", "A1", "A2", "A3", "A4", "", "B1"],
+ "domain": {
+ "x": [0.51, 0.74],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "sunburst",
+ "rotation": 90,
+ "level": "",
+ "labels": ["C1", "C2", "C3", "C4", "C5", "D1", "D2"],
+ "parents": ["Root", "C1", "C2", "C3", "C4", "Root", "D1"],
+ "domain": {
+ "x": [0.76, 0.99],
+ "y": [0.7, 1]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "",
+ "marker": {
+ "colors": ["red", "green", "blue", "yellow", "magenta", "orange", "gray"]
+ },
+ "labels": ["E1", "E2", "E3", "E4", "E5", "F1", "F2"],
+ "parents": ["", "E1", "E2", "E3", "E4", "", "F1"],
+ "domain": {
+ "x": [0.76, 0.99],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "voronoi",
+ "level": "",
+ "marker": {
+ "depthfade": "reversed"
+ },
+ "labels": ["C1", "C2", "C3", "C4", "C5", "B1", "B2"],
+ "parents": ["Root", "C1", "C2", "C3", "C4", "Root", "B1"],
+ "domain": {
+ "x": [0.76, 0.99],
+ "y": [0, 0.3]
+ }
+ }
+ ],
+ "layout": {
+ "width": 1200,
+ "height": 800,
+ "margin": {
+ "t": 0,
+ "b": 0,
+ "l": 0,
+ "r": 0
+ }
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_sunburst_marker_colors.json b/test/image/mocks/zz-voronoi_sunburst_marker_colors.json
new file mode 100644
index 00000000000..83eb55969ef
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_sunburst_marker_colors.json
@@ -0,0 +1,711 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "marker": {
+ "colors": [
+ "aquamarine",
+ "brown",
+ "chocolate",
+ "darkblue",
+ "darkgreen",
+ "forestgreen",
+ "gold",
+ "honeydew",
+ "indigo",
+ "navajowhite",
+ "khaki",
+ "lightblue",
+ "magenta",
+ "navy",
+ "orange",
+ "pink",
+ "aqua",
+ "red",
+ "silver",
+ "tomato",
+ "turquoise",
+ "violet",
+ "wheat",
+ "yellow",
+ "azure"
+ ]
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "domain": {
+ "x": [0, 0.3],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "sunburst",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "domain": {
+ "x": [0.35, 0.65],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "voronoi",
+ "text": [
+ "aquamarine",
+ "brown",
+ "chocolate",
+ "darkblue",
+ "darkgreen",
+ "forestgreen",
+ "gold",
+ "honeydew",
+ "indigo",
+ "navajowhite",
+ "khaki",
+ "lightblue",
+ "magenta",
+ "navy",
+ "orange",
+ "pink",
+ "aqua",
+ "red",
+ "silver",
+ "tomato",
+ "turquoise",
+ "violet",
+ "wheat",
+ "yellow",
+ "azure"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "domain": {
+ "x": [0.7, 1],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "sunburst",
+ "marker": {
+ "colors": [
+ "aquamarine",
+ "brown",
+ "chocolate",
+ "darkblue",
+ "darkgreen",
+ "forestgreen",
+ "gold",
+ "honeydew",
+ "indigo",
+ "navajowhite",
+ "khaki",
+ "lightblue",
+ "magenta",
+ "navy",
+ "orange",
+ "pink",
+ "aqua",
+ "red",
+ "silver",
+ "tomato",
+ "turquoise",
+ "violet",
+ "wheat",
+ "yellow",
+ "azure"
+ ]
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "domain": {
+ "x": [0, 0.3],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "voronoi",
+ "marker": {
+ "colors": [
+ -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7,
+ 8, 9, 10, 11, 12, 13
+ ]
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "level": "Hotel",
+ "domain": {
+ "x": [0.35, 0.65],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "sunburst",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Foxtrot",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0.7, 1],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "voronoi",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0, 0.3],
+ "y": [0.7, 1]
+ }
+ },
+ {
+ "type": "sunburst",
+ "marker": {
+ "colors": [
+ -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7,
+ 8, 9, 10, 11, 12, 13
+ ]
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.35, 0.65],
+ "y": [0.7, 1]
+ }
+ },
+ {
+ "type": "voronoi",
+ "text": [
+ "aquamarine",
+ "brown",
+ "chocolate",
+ "darkblue",
+ "darkgreen",
+ "forestgreen",
+ "gold",
+ "honeydew",
+ "indigo",
+ "navajowhite",
+ "khaki",
+ "lightblue",
+ "magenta",
+ "navy",
+ "orange",
+ "pink",
+ "aqua",
+ "red",
+ "silver",
+ "tomato",
+ "turquoise",
+ "violet",
+ "wheat",
+ "yellow",
+ "azure"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Foxtrot",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0.7, 1],
+ "y": [0.7, 1]
+ }
+ }
+ ],
+ "layout": {
+ "width": 1200,
+ "height": 1200,
+ "paper_bgcolor": "black"
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_textfit.json b/test/image/mocks/zz-voronoi_textfit.json
new file mode 100644
index 00000000000..d3378422bf3
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_textfit.json
@@ -0,0 +1,575 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "tiling": {
+ "pad": 2
+ },
+ "pathbar": {
+ "textfont": {
+ "size": 12
+ }
+ },
+ "textfont": {
+ "size": 256
+ },
+ "texttemplate": "%{label}
%{text}",
+ "labels": [
+ "Queen - 1973",
+ "Queen II - 1974",
+ "Sheer Heart Attack - 1974",
+ "A Night at the Opera - 1975",
+ "A Day at the Races - 1976",
+ "News of the World - 1977",
+ "Jazz - 1978",
+ "The Game - 1980",
+ "Hot Space - 1982",
+ "The Works - 1984",
+ "A Kind of Magic - 1986",
+ "The Miracle - 1989",
+ "Innuendo - 1991",
+ "Made in Heaven - 1995",
+
+ "Keep
Yourself
Alive",
+ "Doing
All
Right",
+ "Great
King
Rat",
+ "My
Fairy
King",
+ "Liar",
+ "The
Night
Comes
Down",
+ "Modern
Times
Rock
'N'
Roll",
+ "Son
and
Daughter",
+ "Jesus",
+ "Seven
Seas
of
Rhye...",
+
+ "Procession",
+ "Father
to
Son",
+ "White
Queen",
+ "Some
Day
One
Day",
+ "The
Loser
in
the
End",
+ "Ogre
Battle",
+ "The
Fairy
Feller's
Master-Stroke",
+ "Nevermore",
+ "The
March
of
the
Black
Queen",
+ "Funny
How
Love
Is",
+ "Seven
Seas
of
Rhye",
+
+ "Brighton
Rock",
+ "Killer
Queen",
+ "Tenement
Funster",
+ "Flick
of
the
Wrist",
+ "Lily
of
the
Valley",
+ "Now
I'm
Here",
+ "In
the
Lap
of
the
Gods",
+ "Stone
Cold
Crazy",
+ "Dear
Friends",
+ "Misfire",
+ "Bring
Back
That
Leroy
Brown",
+ "She
Makes
Me",
+ "In
the
Lap
of
the
God
-
Revisited",
+
+ "Death
on
Two
Legs",
+ "Lazing
on
a
Sunday
Afternoon",
+ "I'm
in
Love
with
My
Car",
+ "You're
My
Best
Friend",
+ "'39",
+ "Sweet
Lady",
+ "Seaside
Rendezvous",
+ "The
Prophet's
Song",
+ "Love
of
My
Life",
+ "Good
Company",
+ "Bohemian
Rhapsody",
+ "God
Save
the
Queen",
+
+ "Tie
Your
Mother
Down",
+ "You
Take
My
Breath
Away",
+ "Long
Away",
+ "The
Millionaire
Waltz",
+ "You
and
I",
+ "Somebody
to
Love",
+ "White
Man",
+ "Good
Old-Fashioned
Lover
Boy",
+ "Drowse",
+ "Teo
Torriatte",
+
+ "We
Will
Rock
You",
+ "We
Are
the
Champions",
+ "Sheer
Heart
Attack",
+ "All
Dead,
All
Dead",
+ "Spread
Your
Wings",
+ "Fight
from
the
Inside",
+ "Get
Down,
Make
Love",
+ "Sleeping
on
the
Sidewalk",
+ "Who
Needs
You",
+ "It's
Late",
+ "My
Melancholy
Blues",
+
+ "Mustapha",
+ "Fat
Bottomed
Girls",
+ "Jealousy",
+ "Bicycle
Race",
+ "If
You
Can't
Beat
Them",
+ "Let
Me
Entertain
You",
+ "Dead
on
Time",
+ "In
Only
Seven
Days",
+ "Dreamer's
Ball",
+ "Fun
It",
+ "Leaving
Home
Ain't
Easy",
+ "Don't
Stop
Me
Now",
+ "More
of
That
Jazz",
+
+ "Play
the
Game",
+ "Dragon
Attack",
+ "Another
One
Bites
the
Dust",
+ "Need
Your
Loving
Tonight",
+ "Crazy
Little
Thing
Called
Love",
+ "Rock
It",
+ "Don't
Try
Suicide",
+ "Sail
Away
Sweet
Sister",
+ "Coming
Soon",
+ "Save
Me",
+
+ "Staying
Power",
+ "Dancer",
+ "Back
Chat",
+ "Body
Language",
+ "Action
This
Day",
+ "Put
Out
the
Fire",
+ "Life
Is
Real",
+ "Calling
All
Girls",
+ "Las
Palabras
de
Amor",
+ "Cool
Cat",
+ "Under
Pressure",
+
+ "Radio
Ga
Ga",
+ "Tear
It
Up",
+ "It's
a
Hard
Life",
+ "Man
on
the
Prowl",
+ "Back
to
Humans'",
+ "I
Want
to
Break
Free",
+ "Keep
Passing
the
Open
Windows",
+ "Hammer
to
Fall",
+ "Is
This
the
World
We
Created?",
+
+ "One
Vision",
+ "A
Kind
of
Magic",
+ "One
Year
of
Love",
+ "Pain
Is
So
Close
to
Pleasure",
+ "Friends
Will
Be
Friends",
+ "Who
Wants
to
Live
Forever",
+ "Gimme
the
Prize",
+ "Don't
Lose
Your
Head",
+ "Princes
of
the
Universe",
+
+ "Party",
+ "Khashoggi's
Ship",
+ "The
Miracle",
+ "I
Want
It
All",
+ "The
Invisible
Man",
+ "Breakthru",
+ "Rain
Must
Fall",
+ "Scandal",
+ "My
Baby
Does
Me",
+ "Was
It
All
Worth
It",
+
+ "Innuendo",
+ "I'm
Going
Slightly
Mad",
+ "Headlong",
+ "I
Can't
Live
with
You",
+ "Don't
Try
So
Hard",
+ "Ride
the
Wild
Wind",
+ "All
God's
People",
+ "These
Are
the
Days
of
Our
Lives",
+ "Delilah",
+ "The
Hitman",
+ "Bijou",
+ "The
Show
Must
Go
On",
+
+ "It's
a
Beautiful
Day",
+ "Made
in
Heaven",
+ "Let
Me
Live",
+ "Mother
Love",
+ "My
Life
Has
Been
Saved",
+ "I
Was
Born
to
Love
You",
+ "Heaven
for
Everyone",
+ "Too
Much
Love
Will
Kill
You",
+ "You
Don't
Fool
Me",
+ "A
Winter's
Tale",
+ "It's
a
Beautiful
Day
-
Revisited",
+ "Yeah",
+ "13"
+ ],
+ "parents": [
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+ "Queen records",
+
+ "Queen - 1973",
+ "Queen - 1973",
+ "Queen - 1973",
+ "Queen - 1973",
+ "Queen - 1973",
+ "Queen - 1973",
+ "Queen - 1973",
+ "Queen - 1973",
+ "Queen - 1973",
+ "Queen - 1973",
+
+ "Queen II - 1974",
+ "Queen II - 1974",
+ "Queen II - 1974",
+ "Queen II - 1974",
+ "Queen II - 1974",
+ "Queen II - 1974",
+ "Queen II - 1974",
+ "Queen II - 1974",
+ "Queen II - 1974",
+ "Queen II - 1974",
+ "Queen II - 1974",
+
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+ "Sheer Heart Attack - 1974",
+
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+ "A Night at the Opera - 1975",
+
+ "A Day at the Races - 1976",
+ "A Day at the Races - 1976",
+ "A Day at the Races - 1976",
+ "A Day at the Races - 1976",
+ "A Day at the Races - 1976",
+ "A Day at the Races - 1976",
+ "A Day at the Races - 1976",
+ "A Day at the Races - 1976",
+ "A Day at the Races - 1976",
+ "A Day at the Races - 1976",
+
+ "News of the World - 1977",
+ "News of the World - 1977",
+ "News of the World - 1977",
+ "News of the World - 1977",
+ "News of the World - 1977",
+ "News of the World - 1977",
+ "News of the World - 1977",
+ "News of the World - 1977",
+ "News of the World - 1977",
+ "News of the World - 1977",
+ "News of the World - 1977",
+
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+ "Jazz - 1978",
+
+ "The Game - 1980",
+ "The Game - 1980",
+ "The Game - 1980",
+ "The Game - 1980",
+ "The Game - 1980",
+ "The Game - 1980",
+ "The Game - 1980",
+ "The Game - 1980",
+ "The Game - 1980",
+ "The Game - 1980",
+
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+ "Hot Space - 1982",
+
+ "The Works - 1984",
+ "The Works - 1984",
+ "The Works - 1984",
+ "The Works - 1984",
+ "The Works - 1984",
+ "The Works - 1984",
+ "The Works - 1984",
+ "The Works - 1984",
+ "The Works - 1984",
+
+ "A Kind of Magic - 1986",
+ "A Kind of Magic - 1986",
+ "A Kind of Magic - 1986",
+ "A Kind of Magic - 1986",
+ "A Kind of Magic - 1986",
+ "A Kind of Magic - 1986",
+ "A Kind of Magic - 1986",
+ "A Kind of Magic - 1986",
+ "A Kind of Magic - 1986",
+
+ "The Miracle - 1989",
+ "The Miracle - 1989",
+ "The Miracle - 1989",
+ "The Miracle - 1989",
+ "The Miracle - 1989",
+ "The Miracle - 1989",
+ "The Miracle - 1989",
+ "The Miracle - 1989",
+ "The Miracle - 1989",
+ "The Miracle - 1989",
+
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+ "Innuendo - 1991",
+
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995",
+ "Made in Heaven - 1995"
+ ],
+ "text": [
+ "38:41",
+ "40:45",
+ "38:41",
+ "43:03",
+ "44:04",
+ "39:10",
+ "44:39",
+ "35:32",
+ "43:29",
+ "37:15",
+ "40:28",
+ "41:22",
+ "53:48",
+ "70:21",
+
+ "3:46",
+ "4:10",
+ "5:41",
+ "4:07",
+ "6:26",
+ "4:24",
+ "1:48",
+ "3:24",
+ "3:45",
+ "1:10",
+
+ "1:12",
+ "6:14",
+ "4:34",
+ "4:23",
+ "4:02",
+ "4:10",
+ "2:40",
+ "1:17",
+ "6:33",
+ "2:50",
+ "2:50",
+
+ "5:08",
+ "3:01",
+ "2:48",
+ "3:19",
+ "1:43",
+ "4:10",
+ "3:20",
+ "2:12",
+ "1:07",
+ "1:50",
+ "2:13",
+ "4:08",
+ "3:42",
+
+ "3:43",
+ "1:08",
+ "3:05",
+ "2:50",
+ "3:30",
+ "4:01",
+ "2:13",
+ "8:21",
+ "3:38",
+ "3:26",
+ "5:57",
+ "1:11",
+
+ "4:48",
+ "5:09",
+ "3:34",
+ "4:54",
+ "3:25",
+ "4:56",
+ "4:59",
+ "2:54",
+ "3:45",
+ "5:50",
+
+ "2:01",
+ "2:59",
+ "3:26",
+ "3:10",
+ "4:34",
+ "3:03",
+ "3:51",
+ "3:06",
+ "3:05",
+ "6:26",
+ "3:29",
+
+ "3:03",
+ "4:14",
+ "3:14",
+ "3:04",
+ "4:15",
+ "3:01",
+ "3:23",
+ "2:30",
+ "3:30",
+ "3:29",
+ "3:15",
+ "3:29",
+ "4:12",
+
+ "3:30",
+ "4:18",
+ "3:35",
+ "2:50",
+ "2:42",
+ "4:33",
+ "3:52",
+ "3:33",
+ "2:51",
+ "3:48",
+
+ "4:10",
+ "3:46",
+ "4:31",
+ "4:29",
+ "3:33",
+ "3:15",
+ "3:39",
+ "3:53",
+ "4:26",
+ "3:26",
+ "4:02",
+
+ "5:48",
+ "3:28",
+ "4:08",
+ "3:28",
+ "5:10",
+ "3:20",
+ "5:21",
+ "4:28",
+ "2:13",
+
+ "5:11",
+ "4:24",
+ "4:27",
+ "4:21",
+ "4:06",
+ "5:15",
+ "4:33",
+ "4:38",
+ "3:33",
+
+ "2:24",
+ "2:47",
+ "5:02",
+ "4:41",
+ "3:55",
+ "4:07",
+ "4:20",
+ "4:42",
+ "3:22",
+ "5:45",
+
+ "6:31",
+ "4:22",
+ "4:38",
+ "4:33",
+ "3:39",
+ "4:42",
+ "4:21",
+ "4:15",
+ "3:35",
+ "4:56",
+ "3:36",
+ "4:35",
+
+ "2:32",
+ "5:25",
+ "4:45",
+ "4:49",
+ "3:15",
+ "4:49",
+ "5:36",
+ "4:20",
+ "5:24",
+ "3:49",
+ "3:01",
+ "0:04",
+ "22:32"
+ ]
+ }
+ ],
+ "layout": {
+ "width": 1000,
+ "height": 1000
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_textposition.json b/test/image/mocks/zz-voronoi_textposition.json
new file mode 100644
index 00000000000..2b3e4b548b2
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_textposition.json
@@ -0,0 +1,922 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "root": { "color": "yellow" },
+ "textinfo": "label+text+percent parent+percent entry+percent root",
+ "pathbar": {
+ "side": "bottom",
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "domain": {
+ "x": [0, 0.3],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "voronoi",
+ "root": { "color": "yellow" },
+ "textinfo": "label+text+percent parent+percent entry+percent root",
+ "pathbar": {
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Charlie",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0.35, 0.65],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "voronoi",
+ "root": { "color": "yellow" },
+ "textinfo": "label+text+percent parent+percent entry+percent root",
+ "pathbar": {
+ "side": "bottom",
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "marker": { "depthfade": "reversed" },
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Foxtrot",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0.7, 1],
+ "y": [0, 0.3]
+ }
+ },
+ {
+ "type": "voronoi",
+ "root": { "color": "yellow" },
+ "textinfo": "label+text+percent parent+percent entry+percent root",
+ "pathbar": {
+ "visible": false
+ },
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Zulu",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0, 0.3],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "voronoi",
+ "root": { "color": "yellow" },
+ "textinfo": "label+text+percent parent+percent entry+percent root",
+ "pathbar": {
+ "visible": false
+ },
+ "marker": { "depthfade": "reversed" },
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Alpha",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0.35, 0.65],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "voronoi",
+ "root": { "color": "yellow" },
+ "textinfo": "label+text+percent parent+percent entry+percent root",
+ "pathbar": {
+ "visible": false
+ },
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Bravo",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0.7, 1],
+ "y": [0.35, 0.65]
+ }
+ },
+ {
+ "type": "voronoi",
+ "root": { "color": "yellow" },
+ "textinfo": "label+text+percent parent+percent entry+percent root",
+ "pathbar": {
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "marker": { "depthfade": "reversed" },
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Juliet",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0, 0.3],
+ "y": [0.7, 1]
+ }
+ },
+ {
+ "type": "voronoi",
+ "root": { "color": "yellow" },
+ "textinfo": "label+text+percent parent+percent entry+percent root",
+ "pathbar": {
+ "side": "bottom",
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Oscar",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0.35, 0.65],
+ "y": [0.7, 1]
+ }
+ },
+ {
+ "type": "voronoi",
+ "root": { "color": "yellow" },
+ "textinfo": "label+text+percent parent+percent entry+percent root",
+ "pathbar": {
+ "textfont": {
+ "size": 12,
+ "family": "Times New Roman"
+ }
+ },
+ "text": [
+ "A L P H A",
+ "B R A V O",
+ "C H A R L I E",
+ "D E L T A",
+ "E C H O",
+ "F O X T R O T",
+ "G O L F",
+ "H O T E L",
+ "I N D I A",
+ "J U L I E T",
+ "K I L O",
+ "L I M A",
+ "M I K E",
+ "N O V E M B E R",
+ "O S C A R",
+ "P A P A",
+ "Q U E B E C",
+ "R O M E O",
+ "S I E R R A",
+ "T A N G O",
+ "U N I F O R M",
+ "V I C T O R",
+ "W H I S K E Y",
+ "X R A Y",
+ "Y A N K E E",
+ "Z U L U"
+ ],
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "level": "Uniform",
+ "maxdepth": 3,
+ "domain": {
+ "x": [0.7, 1],
+ "y": [0.7, 1]
+ }
+ }
+ ],
+ "layout": {
+ "width": 1200,
+ "height": 1200,
+ "paper_bgcolor": "black"
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_transpose_nopad.json b/test/image/mocks/zz-voronoi_transpose_nopad.json
new file mode 100644
index 00000000000..fdd5967295d
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_transpose_nopad.json
@@ -0,0 +1,374 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "hoverinfo": "all",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "square",
+ "aspectratio": 1,
+ "pad": 0
+ },
+ "marker": {
+ "cornerradius": 10,
+ "depthfade": "reversed"
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.02, 0.31],
+ "y": [0, 0.45]
+ }
+ },
+ {
+ "type": "voronoi",
+ "hoverinfo": "all",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "square",
+ "aspectratio": 0.75,
+ "pad": 0
+ },
+ "marker": {
+ "cornerradius": 10,
+ "depthfade": "reversed"
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.02, 0.31],
+ "y": [0.5, 0.95]
+ }
+ },
+ {
+ "type": "voronoi",
+ "hoverinfo": "all",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "square",
+ "aspectratio": 1,
+ "pad": 0
+ },
+ "marker": {
+ "cornerradius": 10,
+ "depthfade": true
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.35, 0.98],
+ "y": [0, 0.45]
+ }
+ },
+ {
+ "type": "voronoi",
+ "hoverinfo": "all",
+ "textinfo": "label",
+ "textfont": {
+ "size": 10
+ },
+ "pathbar": {
+ "visible": true
+ },
+ "tiling": {
+ "shape": "square",
+ "aspectratio": 0.75,
+ "pad": 0
+ },
+ "marker": {
+ "cornerradius": 10,
+ "depthfade": true
+ },
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "",
+ "",
+ "Bravo",
+ "Bravo",
+ "Bravo",
+ "Echo",
+ "Echo",
+ "Echo",
+ "Hotel",
+ "Hotel",
+ "Hotel",
+ "Kilo",
+ "Kilo",
+ "Kilo",
+ "November",
+ "November",
+ "November",
+ "Quebec",
+ "Quebec",
+ "Quebec",
+ "Tango",
+ "Tango",
+ "Tango",
+ "Whiskey",
+ "Whiskey"
+ ],
+ "domain": {
+ "x": [0.35, 0.98],
+ "y": [0.5, 0.95]
+ }
+ }
+ ],
+ "layout": {
+ "width": 1200,
+ "height": 800,
+ "annotations": [
+ {
+ "showarrow": false,
+ "text": "square
depthfade: 'reversed'",
+ "font": {
+ "size": 16
+ },
+ "x": 0.17,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "aspectratio: 0.75
depthfade: 'reversed'",
+ "font": {
+ "size": 16
+ },
+ "x": 0.17,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ },
+ {
+ "showarrow": false,
+ "text": "square",
+ "font": {
+ "size": 16
+ },
+ "x": 0.66,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "aspectratio: 0.75",
+ "font": {
+ "size": 16
+ },
+ "x": 0.66,
+ "xanchor": "center",
+ "y": 1,
+ "yanchor": "bottom"
+ }
+ ]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_values.json b/test/image/mocks/zz-voronoi_values.json
new file mode 100644
index 00000000000..6fa1662f6ca
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_values.json
@@ -0,0 +1,71 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "name": "with branchvalues:remainder",
+ "labels": [
+ "Eve",
+ "Cain",
+ "Seth",
+ "Enos",
+ "Noam",
+ "Abel",
+ "Awan",
+ "Enoch",
+ "Azura"
+ ],
+ "parents": ["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"],
+ "values": [10, 14, 12, 10, 2, 6, 6, 1, 4],
+ "textinfo": "label+value+percent parent+percent entry",
+ "domain": { "x": [0, 0.48] },
+ "outsidetextfont": { "size": 20, "color": "#377eb8" },
+ "marker": { "line": { "width": 2 } },
+ "pathbar": { "visible": false }
+ },
+ {
+ "type": "voronoi",
+ "name": "with branchvalues:total",
+ "branchvalues": "total",
+ "labels": [
+ "Eve",
+ "Cain",
+ "Seth",
+ "Enos",
+ "Noam",
+ "Abel",
+ "Awan",
+ "Enoch",
+ "Azura"
+ ],
+ "parents": ["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"],
+ "domain": { "x": [0.52, 1] },
+ "values": [65, 14, 12, 10, 2, 6, 6, 1, 4],
+ "textinfo": "label+value+percent parent+percent entry",
+ "outsidetextfont": { "size": 20, "color": "#377eb8" },
+ "marker": { "line": { "width": 2 } },
+ "pathbar": { "visible": false }
+ }
+ ],
+ "layout": {
+ "annotations": [
+ {
+ "showarrow": false,
+ "text": "branchvalues: remainder",
+ "x": 0.25,
+ "xanchor": "center",
+ "y": 1.1,
+ "yanchor": "bottom"
+ },
+ {
+ "showarrow": false,
+ "text": "branchvalues: total",
+ "x": 0.75,
+ "xanchor": "center",
+ "y": 1.1,
+ "yanchor": "bottom"
+ }
+ ],
+
+ "paper_bgcolor": "#d3d3d3"
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_values_colorscale.json b/test/image/mocks/zz-voronoi_values_colorscale.json
new file mode 100644
index 00000000000..0ad8e9cbcc8
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_values_colorscale.json
@@ -0,0 +1,116 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "name": "with branchvalues:remainder",
+ "labels": [
+ "Eve",
+ "Cain",
+ "Seth",
+ "Enos",
+ "Noam",
+ "Abel",
+ "Awan",
+ "Enoch",
+ "Azura"
+ ],
+ "parents": ["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"],
+ "values": [10, 14, 12, 10, 2, 6, 6, 1, 4],
+ "domain": {
+ "x": [0, 0.48]
+ },
+ "marker": {
+ "colorscale": "Portland",
+ "colors": [10, 14, 12, 10, 2, 6, 6, 1, 4],
+ "showscale": true,
+ "colorbar": {
+ "title": {
+ "text": "trace A"
+ },
+ "x": 0,
+ "xanchor": "right"
+ }
+ },
+ "textinfo": "label+value",
+ "tiling": {
+ "pad": 4
+ },
+ "pathbar": {
+ "thickness": 32,
+ "textfont": {
+ "color": "white",
+ "size": 28,
+ "family": "Times New Roman"
+ }
+ }
+ },
+ {
+ "type": "voronoi",
+ "name": "with branchvalues:total",
+ "branchvalues": "total",
+ "labels": [
+ "Eve",
+ "Cain",
+ "Seth",
+ "Enos",
+ "Noam",
+ "Abel",
+ "Awan",
+ "Enoch",
+ "Azura"
+ ],
+ "parents": ["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"],
+ "domain": {
+ "x": [0.52, 1]
+ },
+ "values": [65, 14, 12, 10, 2, 6, 6, 1, 4],
+ "text": [
+ "sixty five",
+ "fourteen",
+ "twelve",
+ "ten",
+ "two",
+ "six",
+ "six",
+ "one",
+ "four"
+ ],
+ "marker": {
+ "cmin": 0,
+ "cmax": 25,
+ "colorscale": "Blackbody",
+ "reversescale": true,
+ "showscale": true,
+ "colorbar": {
+ "title": {
+ "text": "trace B"
+ }
+ }
+ },
+ "textinfo": "label+text"
+ }
+ ],
+ "layout": {
+ "width": 800,
+ "height": 500,
+ "annotations": [
+ {
+ "showarrow": false,
+ "text": "branchvalues: remainder",
+ "x": 0.25,
+ "xanchor": "center",
+ "y": 1.1,
+ "yanchor": "bottom"
+ },
+ {
+ "showarrow": false,
+ "text": "branchvalues: total
used as input to marker.color",
+ "x": 0.75,
+ "xanchor": "center",
+ "y": 1.1,
+ "yanchor": "bottom"
+ }
+ ],
+ "paper_bgcolor": "#d3d3d3"
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_with-without_values.json b/test/image/mocks/zz-voronoi_with-without_values.json
new file mode 100644
index 00000000000..848935d4b60
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_with-without_values.json
@@ -0,0 +1,339 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "textinfo": "label+value+percent parent+percent entry+percent root+text+current path",
+ "hoverinfo": "all",
+ "name": "without values",
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "domain": {
+ "x": [0.01, 0.33]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label+value+percent parent+percent entry+percent root+text+current path",
+ "hoverinfo": "all",
+ "name": "with total values",
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "branchvalues": "total",
+ "values": [
+ 40, 2, 38, 1.5, 2.5, 34, 1, 2, 3, 28, 1.25, 1.75, 2.25, 2.75, 20, 1, 1.5, 2,
+ 2.5, 3, 10, 1, 1.5, 2, 2.5, 3
+ ],
+ "text": [
+ "forty",
+ "two",
+ "thirty-eight",
+ "one and a half",
+ "two and a half",
+ "thirty-four",
+ "one",
+ "two",
+ "three",
+ "twenty-eight",
+ "one and twenty-five hundredths",
+ "one and seventy-five hundredths",
+ "two and twenty-five hundredths",
+ "two and seventy-five hundredths",
+ "twenty",
+ "one",
+ "one and a half",
+ "two",
+ "two and a half",
+ "three",
+ "ten",
+ "one",
+ "one and a half",
+ "two",
+ "two and a half",
+ "three"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": [[0, "#FFF"], [0.01, "#0FF"], [0.1, "#00F"], [1, "#000"]]
+ },
+ "domain": {
+ "x": [0.34, 0.66]
+ }
+ },
+ {
+ "type": "voronoi",
+ "textinfo": "label+value+percent parent+percent entry+percent root+text+current path",
+ "hoverinfo": "all",
+ "name": "with remainder values",
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "branchvalues": "remainder",
+ "values": [
+ 0, 2, 0, 1.5, 2.5, 0, 1, 2, 3, 0, 1.25, 1.75, 2.25, 2.75, 0, 1, 1.5, 2, 2.5,
+ 3, 0, 1, 1.5, 2, 2.5, 3
+ ],
+ "text": [
+ "zero",
+ "two",
+ "zero",
+ "one and a half",
+ "two and a half",
+ "zero",
+ "one",
+ "two",
+ "three",
+ "zero",
+ "one and twenty-five hundredths",
+ "one and seventy-five hundredths",
+ "two and twenty-five hundredths",
+ "two and seventy-five hundredths",
+ "zero",
+ "one",
+ "one and a half",
+ "two",
+ "two and a half",
+ "three",
+ "zero",
+ "one",
+ "one and a half",
+ "two",
+ "two and a half",
+ "three"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": [[0, "#FFF"], [0.01, "#0FF"], [0.1, "#00F"], [1, "#000"]]
+ },
+ "domain": {
+ "x": [0.67, 0.99]
+ }
+ }
+ ],
+ "layout": {
+ "margin": {
+ "t": 50,
+ "l": 0,
+ "r": 0,
+ "b": 25
+ },
+ "width": 1500,
+ "height": 600,
+ "shapes": [
+ {
+ "type": "rect",
+ "layer": "above",
+ "x0": 0.01,
+ "x1": 0.33,
+ "y0": 0,
+ "y1": 1
+ },
+ {
+ "type": "rect",
+ "layer": "above",
+ "x0": 0.34,
+ "x1": 0.66,
+ "y0": 0,
+ "y1": 1
+ },
+ {
+ "type": "rect",
+ "layer": "above",
+ "x0": 0.67,
+ "x1": 0.99,
+ "y0": 0,
+ "y1": 1
+ }
+ ],
+ "annotations": [
+ {
+ "showarrow": false,
+ "text": "with counted leaves
",
+ "x": 0.17,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "with values and branchvalues: total
",
+ "x": 0.5,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "with values and branchvalues: remainder
",
+ "x": 0.83,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ }
+ ]
+ }
+}
diff --git a/test/image/mocks/zz-voronoi_with-without_values_template.json b/test/image/mocks/zz-voronoi_with-without_values_template.json
new file mode 100644
index 00000000000..3ac1ab8d90b
--- /dev/null
+++ b/test/image/mocks/zz-voronoi_with-without_values_template.json
@@ -0,0 +1,340 @@
+{
+ "data": [
+ {
+ "type": "voronoi",
+ "texttemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "hovertemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "name": "without values",
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "domain": {
+ "x": [0.01, 0.33]
+ }
+ },
+ {
+ "type": "voronoi",
+ "texttemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "hovertemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "name": "with total values",
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "branchvalues": "total",
+ "values": [
+ 40, 2, 38, 1.5, 2.5, 34, 1, 2, 3, 28, 1.25, 1.75, 2.25, 2.75, 20, 1, 1.5, 2,
+ 2.5, 3, 10, 1, 1.5, 2, 2.5, 3
+ ],
+ "text": [
+ "forty",
+ "two",
+ "thirty-eight",
+ "one and a half",
+ "two and a half",
+ "thirty-four",
+ "one",
+ "two",
+ "three",
+ "twenty-eight",
+ "one and twenty-five hundredths",
+ "one and seventy-five hundredths",
+ "two and twenty-five hundredths",
+ "two and seventy-five hundredths",
+ "twenty",
+ "one",
+ "one and a half",
+ "two",
+ "two and a half",
+ "three",
+ "ten",
+ "one",
+ "one and a half",
+ "two",
+ "two and a half",
+ "three"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": [[0, "#FFF"], [0.01, "#FF0"], [0.1, "#F00"], [1, "#000"]]
+ },
+ "domain": {
+ "x": [0.34, 0.66]
+ }
+ },
+ {
+ "type": "voronoi",
+ "texttemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "hovertemplate": "%{currentPath}%{label}
%{text}
%{value}
%{parent} <=> %{percentParent}
%{entry} <=> %{percentEntry}
%{root} <=> %{percentRoot}",
+ "name": "with remainder values",
+ "level": "Oscar",
+ "labels": [
+ "Alpha",
+ "Bravo",
+ "Charlie",
+ "Delta",
+ "Echo",
+ "Foxtrot",
+ "Golf",
+ "Hotel",
+ "India",
+ "Juliet",
+ "Kilo",
+ "Lima",
+ "Mike",
+ "November",
+ "Oscar",
+ "Papa",
+ "Quebec",
+ "Romeo",
+ "Sierra",
+ "Tango",
+ "Uniform",
+ "Victor",
+ "Whiskey",
+ "X ray",
+ "Yankee",
+ "Zulu"
+ ],
+ "branchvalues": "remainder",
+ "values": [
+ 0, 2, 0, 1.5, 2.5, 0, 1, 2, 3, 0, 1.25, 1.75, 2.25, 2.75, 0, 1, 1.5, 2, 2.5,
+ 3, 0, 1, 1.5, 2, 2.5, 3
+ ],
+ "text": [
+ "zero",
+ "two",
+ "zero",
+ "one and a half",
+ "two and a half",
+ "zero",
+ "one",
+ "two",
+ "three",
+ "zero",
+ "one and twenty-five hundredths",
+ "one and seventy-five hundredths",
+ "two and twenty-five hundredths",
+ "two and seventy-five hundredths",
+ "zero",
+ "one",
+ "one and a half",
+ "two",
+ "two and a half",
+ "three",
+ "zero",
+ "one",
+ "one and a half",
+ "two",
+ "two and a half",
+ "three"
+ ],
+ "parents": [
+ "",
+ "Alpha",
+ "Alpha",
+ "Charlie",
+ "Charlie",
+ "Charlie",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Foxtrot",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Juliet",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Oscar",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform",
+ "Uniform"
+ ],
+ "marker": {
+ "colorscale": [[0, "#FFF"], [0.01, "#FF0"], [0.1, "#F00"], [1, "#000"]]
+ },
+ "domain": {
+ "x": [0.67, 0.99]
+ }
+ }
+ ],
+ "layout": {
+ "voronoicolorway": ["#700", "#077"],
+ "margin": {
+ "t": 50,
+ "l": 0,
+ "r": 0,
+ "b": 25
+ },
+ "width": 1500,
+ "height": 600,
+ "shapes": [
+ {
+ "type": "rect",
+ "layer": "above",
+ "x0": 0.01,
+ "x1": 0.33,
+ "y0": 0,
+ "y1": 1
+ },
+ {
+ "type": "rect",
+ "layer": "above",
+ "x0": 0.34,
+ "x1": 0.66,
+ "y0": 0,
+ "y1": 1
+ },
+ {
+ "type": "rect",
+ "layer": "above",
+ "x0": 0.67,
+ "x1": 0.99,
+ "y0": 0,
+ "y1": 1
+ }
+ ],
+ "annotations": [
+ {
+ "showarrow": false,
+ "text": "with counted leaves
",
+ "x": 0.17,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "with values and branchvalues: total
",
+ "x": 0.5,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ },
+ {
+ "showarrow": false,
+ "text": "with values and branchvalues: remainder
",
+ "x": 0.83,
+ "xanchor": "center",
+ "y": 0,
+ "yanchor": "top"
+ }
+ ]
+ }
+}
diff --git a/test/jasmine/assets/mock_lists.js b/test/jasmine/assets/mock_lists.js
index 27a09b99770..845a693fd1b 100644
--- a/test/jasmine/assets/mock_lists.js
+++ b/test/jasmine/assets/mock_lists.js
@@ -35,6 +35,7 @@ var svgMockList = [
['sankey_energy', require('../../image/mocks/sankey_energy.json')],
['sunburst_coffee', require('../../image/mocks/sunburst_coffee.json')],
['treemap_coffee', require('../../image/mocks/treemap_coffee.json')],
+ ['voronoi_coffee', require('../../image/mocks/zz-voronoi_coffee.json')],
['icicle_coffee', require('../../image/mocks/icicle_coffee.json')],
['parcats_bad-displayindex', require('../../image/mocks/parcats_bad-displayindex.json')],
['scattercarpet', require('../../image/mocks/scattercarpet.json')],
diff --git a/test/jasmine/tests/plot_api_react_test.js b/test/jasmine/tests/plot_api_react_test.js
index 5ef740f05e9..697b25149a7 100644
--- a/test/jasmine/tests/plot_api_react_test.js
+++ b/test/jasmine/tests/plot_api_react_test.js
@@ -2149,7 +2149,7 @@ describe('Plotly.react and uirevision attributes', function() {
_run(fig, editComponents, checkInitial, checkEdited).then(done);
});
- ['sunburst', 'icicle', 'treemap'].forEach(function(type) {
+ ['sunburst', 'icicle', 'treemap', 'voronoi'].forEach(function(type) {
it('preserves ' + type + ' level changes', function(done) {
function assertLevel(msg, exp) {
expect(gd._fullData[0].level).toBe(exp, msg);
diff --git a/test/jasmine/tests/voronoi_test.js b/test/jasmine/tests/voronoi_test.js
new file mode 100644
index 00000000000..3a7449aecaf
--- /dev/null
+++ b/test/jasmine/tests/voronoi_test.js
@@ -0,0 +1,1965 @@
+var Plotly = require('../../../lib/index');
+var Plots = require('../../../src/plots/plots');
+var Lib = require('../../../src/lib');
+var Drawing = require('../../../src/components/drawing');
+var constants = require('../../../src/traces/treemap/constants');
+
+var d3Select = require('../../strict-d3').select;
+var d3SelectAll = require('../../strict-d3').selectAll;
+var d3Transition = require('../../strict-d3').transition;
+var supplyAllDefaults = require('../assets/supply_defaults');
+var createGraphDiv = require('../assets/create_graph_div');
+var destroyGraphDiv = require('../assets/destroy_graph_div');
+var mouseEvent = require('../assets/mouse_event');
+var delay = require('../assets/delay');
+
+
+var customAssertions = require('../assets/custom_assertions');
+var assertHoverLabelStyle = customAssertions.assertHoverLabelStyle;
+var assertHoverLabelContent = customAssertions.assertHoverLabelContent;
+var checkTextTemplate = require('../assets/check_texttemplate');
+
+var SLICES_SELECTOR = '.voronoilayer path.surface';
+var SLICES_TEXT_SELECTOR = '.voronoilayer text.slicetext';
+
+function _mouseEvent(type, gd, v) {
+ return function() {
+ if(Array.isArray(v)) {
+ // px-based position
+ mouseEvent(type, v[0], v[1]);
+ } else {
+ // position from slice number
+ var gd3 = d3Select(gd);
+ var el = gd3.select('.slice:nth-child(' + v + ')').node();
+ mouseEvent(type, 0, 0, {element: el});
+ }
+ };
+}
+
+function hover(gd, v) {
+ return _mouseEvent('mouseover', gd, v);
+}
+
+function unhover(gd, v) {
+ return _mouseEvent('mouseout', gd, v);
+}
+
+function click(gd, v) {
+ return _mouseEvent('click', gd, v);
+}
+
+describe('Test voronoi defaults:', function() {
+ var gd;
+ var fullData;
+
+ function _supply(opts, layout) {
+ gd = {};
+ opts = Array.isArray(opts) ? opts : [opts];
+
+ gd.data = opts.map(function(o) {
+ return Lib.extendFlat({type: 'voronoi'}, o || {});
+ });
+ gd.layout = layout || {};
+
+ supplyAllDefaults(gd);
+ fullData = gd._fullData;
+ }
+
+ it('should set *visible:false* when *labels* or *parents* is missing', function() {
+ _supply([
+ {labels: [1], parents: ['']},
+ {labels: [1]},
+ {parents: ['']}
+ ]);
+
+ expect(fullData[0].visible).toBe(true, 'base');
+ expect(fullData[1].visible).toBe(false, 'no parents');
+ expect(fullData[2].visible).toBe(false, 'no labels');
+ });
+
+ it('should only coerce *count* when the *values* array is not present', function() {
+ _supply([
+ {labels: [1], parents: ['']},
+ {labels: [1], parents: [''], values: []},
+ {labels: [1], parents: [''], values: [1]}
+ ]);
+
+ expect(fullData[0].count).toBe('leaves');
+ expect(fullData[1].count).toBe('leaves', 'has empty values');
+ expect(fullData[2].count).toBe(undefined, 'has values');
+ });
+
+ it('should not coerce *branchvalues* when *values* is not set', function() {
+ _supply([
+ {labels: [1], parents: [''], values: [1]},
+ {labels: [1], parents: ['']},
+ ]);
+
+ expect(fullData[0].branchvalues).toBe('remainder', 'base');
+ expect(fullData[1].branchvalues).toBe(undefined, 'no values');
+ });
+
+ it('should use *paper_bgcolor* as *marker.line.color* default', function() {
+ _supply([
+ {labels: [1], parents: [''], marker: {line: {color: 'red'}}},
+ {labels: [1], parents: ['']}
+ ], {
+ paper_bgcolor: 'orange'
+ });
+
+ expect(fullData[0].marker.line.color).toBe('red', 'set color');
+ expect(fullData[1].marker.line.color).toBe('orange', 'using dflt');
+ });
+
+ it('should not coerce *marker.line.color* when *marker.line.width* is 0', function() {
+ _supply([
+ {labels: [1], parents: [''], marker: {line: {width: 0}}},
+ {labels: [1], parents: ['']}
+ ]);
+
+ expect(fullData[0].marker.line.color).toBe(undefined, 'not coerced');
+ expect(fullData[1].marker.line.color).toBe('#fff', 'dflt');
+ });
+
+ it('should default *marker.depthfade* depending on *marker.colors* is present or not', function() {
+ _supply([
+ {labels: ['A', 'B', 'a'], parents: ['', '', 'A']},
+ {labels: ['A', 'B', 'a'], parents: ['', '', 'A'], marker: {colors: ['red', 'green', 'blue']}}
+ ]);
+
+ expect(fullData[0].marker.depthfade).toBe(true);
+ expect(fullData[1].marker.depthfade).toBe(false);
+ });
+
+ it('should not coerce *marker.depthfade* when a *colorscale* is present', function() {
+ _supply([
+ {labels: [1], parents: [''], marker: {colorscale: 'Blues'}}
+ ]);
+
+ expect(fullData[0].marker.depthfade).toBe(undefined);
+ });
+
+ it('should use *textfont.size* to adjust top, bottom , left and right *marker.pad* defaults', function() {
+ _supply([
+ {labels: [1], parents: ['']},
+ {labels: [1], parents: [''], textfont: {size: 24}},
+ {labels: [1], parents: [''], textposition: 'bottom left'},
+ {labels: [1], parents: [''], textposition: 'bottom center'},
+ {labels: [1], parents: [''], textposition: 'bottom right'},
+ {labels: [1], parents: [''], textposition: 'middle left'},
+ {labels: [1], parents: [''], textposition: 'middle center'},
+ {labels: [1], parents: [''], textposition: 'middle right'},
+ {labels: [1], parents: [''], textposition: 'top left'},
+ {labels: [1], parents: [''], textposition: 'tpo center'},
+ {labels: [1], parents: [''], textposition: 'top right'}
+ ]);
+
+ expect(fullData[0].textfont.size).toBe(12);
+ expect(fullData[0].marker.pad.t).toBe(24, 'twice of default textfont.size');
+ expect(fullData[0].marker.pad.l).toBe(6, 'half of default textfont.size');
+ expect(fullData[0].marker.pad.r).toBe(6, 'half of default textfont.size');
+ expect(fullData[0].marker.pad.b).toBe(6, 'half of default textfont.size');
+
+ expect(fullData[1].textfont.size).toBe(24);
+ expect(fullData[1].marker.pad.t).toBe(48, 'twice of increased textfont.size');
+ expect(fullData[1].marker.pad.l).toBe(12, 'half of increased textfont.size');
+ expect(fullData[1].marker.pad.r).toBe(12, 'half of increased textfont.size');
+ expect(fullData[1].marker.pad.b).toBe(12, 'half of increased textfont.size');
+
+ var i;
+ for(i = 0 + 2; i < 3 + 2; i++) {
+ expect(fullData[i].marker.pad.t).toBe(6, 'half of default textfont.size', 'with textposition:' + fullData[i].textposition);
+ expect(fullData[i].marker.pad.l).toBe(6, 'half of default textfont.size', 'with textposition:' + fullData[i].textposition);
+ expect(fullData[i].marker.pad.r).toBe(6, 'half of default textfont.size', 'with textposition:' + fullData[i].textposition);
+ expect(fullData[i].marker.pad.b).toBe(24, 'twice of default textfont.size', 'with textposition:' + fullData[i].textposition);
+ }
+ for(i = 0 + 5; i < 6 + 5; i++) {
+ expect(fullData[i].marker.pad.t).toBe(24, 'twice of default textfont.size', 'with textposition:' + fullData[i].textposition);
+ expect(fullData[i].marker.pad.l).toBe(6, 'half of default textfont.size', 'with textposition:' + fullData[i].textposition);
+ expect(fullData[i].marker.pad.r).toBe(6, 'half of default textfont.size', 'with textposition:' + fullData[i].textposition);
+ expect(fullData[i].marker.pad.b).toBe(6, 'half of default textfont.size', 'with textposition:' + fullData[i].textposition);
+ }
+ });
+
+ it('should not include "text" flag in *textinfo* when *text* is set', function() {
+ _supply([
+ {labels: [1], parents: [''], text: ['A']},
+ {labels: [1], parents: ['']}
+ ]);
+
+ expect(fullData[0].textinfo).toBe('text+label', 'with text');
+ expect(fullData[1].textinfo).toBe('label', 'no text');
+ });
+
+ it('should use *layout.colorway* as dflt for *voronoicolorway*', function() {
+ _supply([
+ {labels: [1], parents: ['']}
+ ], {
+ colorway: ['red', 'blue', 'green']
+ });
+ expect(gd._fullLayout.voronoicolorway)
+ .toEqual(['red', 'blue', 'green'], 'dflt to layout colorway');
+
+ _supply([
+ {labels: [1], parents: ['']}
+ ], {
+ colorway: ['red', 'blue', 'green'],
+ voronoicolorway: ['cyan', 'yellow', 'black']
+ });
+ expect(gd._fullLayout.voronoicolorway)
+ .toEqual(['cyan', 'yellow', 'black'], 'user-defined value');
+ });
+
+ it('should only coerce *squarifyratio* when *tiling.packing* is *squarify*', function() {
+ _supply([
+ {labels: [1], parents: ['']},
+ {labels: [1], parents: [''], tiling: {packing: 'binary'}},
+ {labels: [1], parents: [''], tiling: {packing: 'slice'}},
+ {labels: [1], parents: [''], tiling: {packing: 'dice'}},
+ {labels: [1], parents: [''], tiling: {packing: 'slice-dice'}},
+ {labels: [1], parents: [''], tiling: {packing: 'dice-slice'}}
+ ]);
+
+ expect(fullData[0].tiling.squarifyratio).toBe(1);
+ expect(fullData[1].tiling.squarifyratio).toBe(undefined, 'no squarify');
+ expect(fullData[2].tiling.squarifyratio).toBe(undefined, 'no squarify');
+ expect(fullData[3].tiling.squarifyratio).toBe(undefined, 'no squarify');
+ expect(fullData[4].tiling.squarifyratio).toBe(undefined, 'no squarify');
+ expect(fullData[5].tiling.squarifyratio).toBe(undefined, 'no squarify');
+ });
+
+ it('should not coerce *pathbar* attributes when *pathbar.visible* is false', function() {
+ _supply([
+ {labels: [1], parents: [''], pathbar: {visible: false}}
+ ]);
+
+ expect(fullData[0].pathbar.visible).toBe(false);
+ expect(fullData[0].pathbar.textfont).toBe(undefined);
+ expect(fullData[0].pathbar.thickness).toBe(undefined);
+ expect(fullData[0].pathbar.side).toBe(undefined);
+ expect(fullData[0].pathbar.edgeshape).toBe(undefined);
+ });
+
+ it('should set *pathbar.visible* to true by default', function() {
+ _supply([
+ {labels: [1], parents: ['']}
+ ]);
+
+ expect(fullData[0].pathbar.visible).toBe(true);
+ });
+
+ it('should set *pathbar.visible* to true by default', function() {
+ _supply([
+ {labels: [1], parents: ['']}
+ ]);
+
+ expect(fullData[0].pathbar.textfont.family).toBe('"Open Sans", verdana, arial, sans-serif');
+ expect(fullData[0].pathbar.textfont.color).toBe(undefined);
+ expect(fullData[0].pathbar.textfont.size).toBe(12);
+ expect(fullData[0].pathbar.thickness).toBe(18);
+ expect(fullData[0].pathbar.side).toBe('top');
+ expect(fullData[0].pathbar.edgeshape).toBe('>');
+ });
+
+ it('should default *pathbar* sizes and styles to layout', function() {
+ _supply([
+ {labels: [1], parents: ['']}
+ ], {
+ font: {family: 'Times New Romans', color: '#ABC', size: 24}
+ });
+
+ expect(fullData[0].pathbar.textfont.family).toBe('Times New Romans');
+ expect(fullData[0].pathbar.textfont.color).toBe(undefined);
+ expect(fullData[0].pathbar.textfont.size).toBe(24);
+ expect(fullData[0].pathbar.thickness).toBe(30);
+ });
+
+ it('should not default *marker.colorscale* when *marker.colors* is not present', function() {
+ _supply([
+ {labels: [1], parents: ['']}
+ ]);
+
+ expect(fullData[0].marker.colorscale).toBe(undefined);
+ });
+
+ it('should default *marker.colorscale* to *Reds* when *marker.colors* is present', function() {
+ _supply([
+ {labels: [1], parents: [''], marker: {
+ colors: [0]
+ }}
+ ]);
+
+ expect(fullData[0].marker.colorscale).toBeCloseToArray([
+ [ 0, 'rgb(5,10,172)' ],
+ [ 0.35, 'rgb(106,137,247)' ],
+ [ 0.5, 'rgb(190,190,190)' ],
+ [ 0.6, 'rgb(220,170,132)' ],
+ [ 0.7, 'rgb(230,145,90)' ],
+ [ 1, 'rgb(178,10,28)' ]
+ ]);
+ });
+});
+
+describe('Test voronoi calc:', function() {
+ var gd;
+
+ beforeEach(function() {
+ spyOn(Lib, 'warn');
+ });
+
+ function _calc(opts, layout) {
+ gd = {};
+ opts = Array.isArray(opts) ? opts : [opts];
+
+ gd.data = opts.map(function(o) {
+ return Lib.extendFlat({type: 'voronoi'}, o || {});
+ });
+ gd.layout = layout || {};
+
+ supplyAllDefaults(gd);
+ Plots.doCalcdata(gd);
+ }
+
+ function extract(k) {
+ var out = gd.calcdata.map(function(cd) {
+ return cd.map(function(pt) { return pt[k]; });
+ });
+ return out.length > 1 ? out : out[0];
+ }
+
+ function extractPt(k) {
+ var out = gd.calcdata.map(function(cd) {
+ return cd[0].hierarchy.descendants().map(function(pt) {
+ return pt[k];
+ });
+ });
+ return out.length > 1 ? out : out[0];
+ }
+
+ it('should generate *id* when it can', function() {
+ _calc({
+ labels: ['Root', 'A', 'B', 'b'],
+ parents: ['', 'Root', 'Root', 'B']
+ });
+
+ expect(extract('id')).toEqual(['Root', 'A', 'B', 'b']);
+ expect(Lib.warn).toHaveBeenCalledTimes(0);
+ });
+
+ it('should generate "implied root" when it can', function() {
+ _calc({
+ labels: [ 'A', 'B', 'b'],
+ parents: ['Root', 'Root', 'B']
+ });
+
+ expect(extract('id')).toEqual(['Root', 'A', 'B', 'b']);
+ expect(extract('pid')).toEqual(['', 'Root', 'Root', 'B']);
+ expect(extract('label')).toEqual(['Root', 'A', 'B', 'b']);
+ expect(Lib.warn).toHaveBeenCalledTimes(0);
+ });
+
+ it('should warn when there are multiple implied roots', function() {
+ _calc({
+ labels: [ 'A', 'B', 'b'],
+ parents: ['Root1', 'Root22', 'B']
+ });
+
+ expect(Lib.warn).toHaveBeenCalledTimes(1);
+ expect(Lib.warn).toHaveBeenCalledWith('Multiple implied roots, cannot build voronoi hierarchy of trace 0. These roots include: Root1, Root22');
+ });
+
+ it('should generate "root of roots" when it can', function() {
+ spyOn(Lib, 'randstr').and.callFake(function() {
+ return 'dummy';
+ });
+
+ _calc({
+ labels: [ 'A', 'B', 'b'],
+ parents: ['', '', 'B']
+ });
+
+ expect(extract('id')).toEqual(['dummy', 'A', 'B', 'b']);
+ expect(extract('pid')).toEqual(['', 'dummy', 'dummy', 'B']);
+ expect(extract('label')).toEqual(['', 'A', 'B', 'b']);
+ });
+
+ it('should compute hierarchy values', function() {
+ var labels = ['Root', 'A', 'B', 'b'];
+ var parents = ['', 'Root', 'Root', 'B'];
+
+ _calc([
+ {labels: labels, parents: parents, count: 'leaves+branches'},
+ {labels: labels, parents: parents, count: 'branches'},
+ {labels: labels, parents: parents}, // N.B. counts 'leaves' in this case
+ {labels: labels, parents: parents, values: [0, 1, 2, 3]},
+ {labels: labels, parents: parents, values: [30, 20, 10, 5], branchvalues: 'total'}
+ ]);
+
+ expect(extractPt('value')).toEqual([
+ [4, 2, 1, 1],
+ [2, 1, 0, 0],
+ [2, 1, 1, 1],
+ [6, 5, 1, 3],
+ [30, 20, 10, 5]
+ ]);
+ expect(Lib.warn).toHaveBeenCalledTimes(0);
+ });
+
+ it('should warn when values under *branchvalues:total* do not add up and not show trace', function() {
+ _calc({
+ labels: ['Root', 'A', 'B', 'b'],
+ parents: ['', 'Root', 'Root', 'B'],
+ values: [0, 1, 2, 3],
+ branchvalues: 'total'
+ });
+
+ expect(gd.calcdata[0][0].hierarchy).toBe(undefined, 'no computed hierarchy');
+
+ expect(Lib.warn).toHaveBeenCalledTimes(2);
+ expect(Lib.warn.calls.allArgs()[0][0]).toBe('Total value for node Root of trace 0 is smaller than the sum of its children. \nparent value = 0 \nchildren sum = 3');
+ expect(Lib.warn.calls.allArgs()[1][0]).toBe('Total value for node B of trace 0 is smaller than the sum of its children. \nparent value = 2 \nchildren sum = 3');
+ });
+
+ it('should warn labels/parents lead to ambiguous hierarchy', function() {
+ _calc({
+ labels: ['Root', 'A', 'A', 'B'],
+ parents: ['', 'Root', 'Root', 'A']
+ });
+
+ expect(Lib.warn).toHaveBeenCalledTimes(1);
+ expect(Lib.warn).toHaveBeenCalledWith('Failed to build voronoi hierarchy of trace 0. Error: ambiguous: A');
+ });
+
+ it('should warn ids/parents lead to ambiguous hierarchy', function() {
+ _calc({
+ labels: ['label 1', 'label 2', 'label 3', 'label 4'],
+ ids: ['a', 'b', 'b', 'c'],
+ parents: ['', 'a', 'a', 'b']
+ });
+
+ expect(Lib.warn).toHaveBeenCalledTimes(1);
+ expect(Lib.warn).toHaveBeenCalledWith('Failed to build voronoi hierarchy of trace 0. Error: ambiguous: b');
+ });
+
+ it('should accept numbers (even `0`) are ids/parents items', function() {
+ _calc({
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ ids: [0, 1, 2, 3, 4, 5, 6, 7, 8],
+ parents: ['', 0, 0, 2, 2, 0, 0, 6, 0]
+ });
+
+ expect(extract('id')).toEqual(['0', '1', '2', '3', '4', '5', '6', '7', '8']);
+ expect(extract('pid')).toEqual(['', '0', '0', '2', '2', '0', '0', '6', '0']);
+ });
+
+ it('should accept mix typed are ids/parents items', function() {
+ _calc({
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ ids: [true, 1, '2', 3, 4, 5, 6, 7, 8],
+ parents: ['', true, true, 2, 2, 'true', 'true', '6', true]
+ });
+
+ expect(extract('id')).toEqual(['true', '1', '2', '3', '4', '5', '6', '7', '8']);
+ expect(extract('pid')).toEqual(['', 'true', 'true', '2', '2', 'true', 'true', '6', 'true']);
+ });
+
+ it('should use *marker.colors*', function() {
+ _calc({
+ marker: { colors: ['pink', '#777', '#f00', '#ff0', '#0f0', '#0ff', '#00f', '#f0f', '#fff'] },
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ parents: ['', 'Eve', 'Eve', 'Seth', 'Seth', 'Eve', 'Eve', 'Awan', 'Eve']
+ });
+
+ var cd = gd.calcdata[0];
+ expect(cd.length).toEqual(9);
+ expect(cd[0].color).toEqual('rgba(255, 192, 203, 1)');
+ expect(cd[1].color).toEqual('rgba(119, 119, 119, 1)');
+ expect(cd[2].color).toEqual('rgba(255, 0, 0, 1)');
+ expect(cd[3].color).toEqual('rgba(255, 255, 0, 1)');
+ expect(cd[4].color).toEqual('rgba(0, 255, 0, 1)');
+ expect(cd[5].color).toEqual('rgba(0, 255, 255, 1)');
+ expect(cd[6].color).toEqual('rgba(0, 0, 255, 1)');
+ expect(cd[7].color).toEqual('rgba(255, 0, 255, 1)');
+ expect(cd[8].color).toEqual('rgba(255, 255, 255, 1)');
+ });
+
+ it('should use *marker.colors* numbers with default colorscale', function() {
+ _calc({
+ marker: { colors: [-4, -3, -2, -1, 0, 1, 2, 3, 4] },
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ parents: ['', 'Eve', 'Eve', 'Seth', 'Seth', 'Eve', 'Eve', 'Awan', 'Eve']
+ });
+
+ var cd = gd.calcdata[0];
+ expect(cd.length).toEqual(9);
+ expect(cd[0].color).toEqual('rgb(5, 10, 172)');
+ expect(cd[1].color).toEqual('rgb(41, 55, 199)');
+ expect(cd[2].color).toEqual('rgb(77, 101, 226)');
+ expect(cd[3].color).toEqual('rgb(120, 146, 238)');
+ expect(cd[4].color).toEqual('rgb(190, 190, 190)');
+ expect(cd[5].color).toEqual('rgb(223, 164, 122)');
+ expect(cd[6].color).toEqual('rgb(221, 123, 80)');
+ expect(cd[7].color).toEqual('rgb(200, 66, 54)');
+ expect(cd[8].color).toEqual('rgb(178, 10, 28)');
+ });
+
+ it('should use *marker.colors* numbers with desired colorscale', function() {
+ _calc({
+ marker: { colors: [1, 2, 3, 4, 5, 6, 7, 8, 9], colorscale: 'Portland' },
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ parents: ['', 'Eve', 'Eve', 'Seth', 'Seth', 'Eve', 'Eve', 'Awan', 'Eve']
+ });
+
+ var cd = gd.calcdata[0];
+ expect(cd.length).toEqual(9);
+ expect(cd[0].color).toEqual('rgb(12, 51, 131)');
+ expect(cd[1].color).toEqual('rgb(11, 94, 159)');
+ expect(cd[2].color).toEqual('rgb(10, 136, 186)');
+ expect(cd[3].color).toEqual('rgb(126, 174, 121)');
+ expect(cd[4].color).toEqual('rgb(242, 211, 56)');
+ expect(cd[5].color).toEqual('rgb(242, 177, 56)');
+ expect(cd[6].color).toEqual('rgb(242, 143, 56)');
+ expect(cd[7].color).toEqual('rgb(230, 87, 43)');
+ expect(cd[8].color).toEqual('rgb(217, 30, 30)');
+ });
+
+ it('should use *marker.colors* numbers not values with colorscale', function() {
+ _calc({
+ values: [0.0001, 0.001, 0.01, 0.1, 1, 10, 100, 1000, 10000],
+ marker: { colors: [1, 2, 3, 4, 5, 6, 7, 8, 9], colorscale: 'Portland' },
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ parents: ['', 'Eve', 'Eve', 'Seth', 'Seth', 'Eve', 'Eve', 'Awan', 'Eve']
+ });
+
+ var cd = gd.calcdata[0];
+ expect(cd.length).toEqual(9);
+ expect(cd[0].color).toEqual('rgb(12, 51, 131)');
+ expect(cd[1].color).toEqual('rgb(11, 94, 159)');
+ expect(cd[2].color).toEqual('rgb(10, 136, 186)');
+ expect(cd[3].color).toEqual('rgb(126, 174, 121)');
+ expect(cd[4].color).toEqual('rgb(242, 211, 56)');
+ expect(cd[5].color).toEqual('rgb(242, 177, 56)');
+ expect(cd[6].color).toEqual('rgb(242, 143, 56)');
+ expect(cd[7].color).toEqual('rgb(230, 87, 43)');
+ expect(cd[8].color).toEqual('rgb(217, 30, 30)');
+ });
+
+ it('should use values with colorscale when *marker.colors* in empty', function() {
+ _calc({
+ values: [1, 2, 3, 4, 5, 6, 7, 8, 9],
+ marker: { colors: [], colorscale: 'Portland' },
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ parents: ['', 'Eve', 'Eve', 'Seth', 'Seth', 'Eve', 'Eve', 'Awan', 'Eve']
+ });
+
+ var cd = gd.calcdata[0];
+ expect(cd.length).toEqual(9);
+ expect(cd[0].color).toEqual('rgb(12, 51, 131)');
+ expect(cd[1].color).toEqual('rgb(11, 94, 159)');
+ expect(cd[2].color).toEqual('rgb(10, 136, 186)');
+ expect(cd[3].color).toEqual('rgb(126, 174, 121)');
+ expect(cd[4].color).toEqual('rgb(242, 211, 56)');
+ expect(cd[5].color).toEqual('rgb(242, 177, 56)');
+ expect(cd[6].color).toEqual('rgb(242, 143, 56)');
+ expect(cd[7].color).toEqual('rgb(230, 87, 43)');
+ expect(cd[8].color).toEqual('rgb(217, 30, 30)');
+ });
+});
+
+describe('Test voronoi plot:', function() {
+ var gd;
+
+ beforeEach(function() { gd = createGraphDiv(); });
+
+ afterEach(destroyGraphDiv);
+
+ it('should return early from the plot when there is no entry', function(done) {
+ Plotly.newPlot(gd, [{
+ labels: ['a', 'b'],
+ parents: ['A', 'B'],
+ type: 'voronoi'
+ }])
+ .then(function() {
+ var gd3 = d3Select(gd);
+ var element = gd3.select('.voronoi trace').node();
+ expect(element).toBe(null);
+ })
+ .then(done, done.fail);
+ });
+});
+
+describe('Test voronoi hover:', function() {
+ var gd;
+
+ var labels0 = ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'];
+ var parents0 = ['', 'Eve', 'Eve', 'Seth', 'Seth', 'Eve', 'Eve', 'Awan', 'Eve'];
+ var values0 = [10, 14, 12, 10, 2, 6, 6, 1, 4];
+
+ afterEach(destroyGraphDiv);
+
+ function run(spec) {
+ gd = createGraphDiv();
+
+ var data = (spec.traces || [{}]).map(function(t) {
+ t.type = 'voronoi';
+ if(!t.labels) t.labels = labels0.slice();
+ if(!t.parents) t.parents = parents0.slice();
+ return t;
+ });
+
+ var layout = Lib.extendFlat({
+ width: 500,
+ height: 500,
+ margin: {t: 0, b: 0, l: 0, r: 0, pad: 0}
+ }, spec.layout || {});
+
+ var exp = spec.exp || {};
+ var ptData = null;
+
+ return Plotly.newPlot(gd, data, layout)
+ .then(function() {
+ gd.once('plotly_hover', function(d) { ptData = d.points[0]; });
+ })
+ .then(hover(gd, spec.pos))
+ .then(function() {
+ assertHoverLabelContent(exp.label);
+
+ for(var k in exp.ptData) {
+ expect(ptData[k]).toBe(exp.ptData[k], 'pt event data key ' + k);
+ }
+
+ expect(typeof ptData.bbox).toEqual('object');
+ expect(typeof ptData.bbox.x0).toEqual('number');
+ expect(typeof ptData.bbox.x1).toEqual('number');
+ expect(typeof ptData.bbox.y0).toEqual('number');
+ expect(typeof ptData.bbox.y1).toEqual('number');
+
+ if(exp.style) {
+ var gd3 = d3Select(gd);
+ assertHoverLabelStyle(gd3.select('.hovertext'), exp.style);
+ }
+ });
+ }
+
+ [{
+ desc: 'base',
+ pos: 2,
+ exp: {
+ label: {
+ nums: 'Seth',
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 2,
+ label: 'Seth',
+ parent: 'Eve'
+ }
+ }
+ }, {
+ desc: 'with scalar hovertext',
+ traces: [{ hovertext: 'A' }],
+ pos: 3,
+ exp: {
+ label: {
+ nums: 'Cain\nA',
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 1,
+ label: 'Cain',
+ parent: 'Eve'
+ }
+ }
+ }, {
+ desc: 'with array hovertext',
+ traces: [{
+ hovertext: values0,
+ hoverinfo: 'all'
+ }],
+ pos: 4,
+ exp: {
+ label: {
+ nums: 'Abel\nEve/\n17% of Eve\n6',
+ name: 'trace 0'
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 5,
+ label: 'Abel',
+ parent: 'Eve'
+ }
+ }
+ }, {
+ desc: 'with hoverlabel.namelength set ',
+ traces: [{
+ hoverlabel: {namelength: 4},
+ hoverinfo: 'all'
+ }],
+ pos: 4,
+ exp: {
+ label: {
+ nums: 'Abel\nEve/\n17% of Eve',
+ name: 't...'
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 5,
+ label: 'Abel',
+ parent: 'Eve'
+ }
+ }
+ }, {
+ desc: 'with values',
+ traces: [{
+ values: values0,
+ hoverinfo: 'value'
+ }],
+ pos: 5,
+ exp: {
+ label: {
+ nums: '6'
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 5,
+ label: 'Abel',
+ parent: 'Eve',
+ value: 6
+ }
+ }
+ }, {
+ desc: 'with values and hovertemplate',
+ traces: [{
+ values: values0,
+ hovertemplate: '%{label} :: %{value:.2f}N.B.'
+ }],
+ pos: 5,
+ exp: {
+ label: {
+ nums: 'Abel :: 6.00',
+ name: 'N.B.'
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 5,
+ label: 'Abel',
+ parent: 'Eve',
+ value: 6
+ }
+ }
+ }, {
+ desc: 'with array hovertemplate and label styling',
+ traces: [{
+ hovertemplate: parents0.map(function(p) {
+ return p ?
+ '%{label} -| %{parent}' :
+ '%{label}THE ROOT';
+ }),
+ hoverlabel: {
+ bgcolor: 'red',
+ bordercolor: 'blue',
+ font: {
+ size: 20,
+ family: 'Roboto',
+ color: 'orange'
+ }
+ }
+ }],
+ pos: 1,
+ exp: {
+ label: {
+ nums: 'Eve',
+ name: 'THE ROOT'
+ },
+ style: {
+ bgcolor: 'rgb(255, 0, 0)',
+ bordercolor: 'rgb(0, 0, 255)',
+ fontSize: 20,
+ fontFamily: 'Roboto',
+ fontColor: 'rgb(255, 165, 0)'
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 0,
+ label: 'Eve',
+ parent: ''
+ }
+ }
+ }]
+ .forEach(function(spec) {
+ it('should generate correct hover labels and event data - ' + spec.desc, function(done) {
+ run(spec).then(done, done.fail);
+ });
+ });
+});
+
+describe('Test voronoi hover with and without levels', function() {
+ var gd;
+
+ var labels0 = ['Alpha', 'Bravo', 'Charlie', 'Delta', 'Echo', 'Foxtrot', 'Golf', 'Hotel', 'India', 'Juliet', 'Kilo', 'Lima', 'Mike', 'November', 'Oscar', 'Papa', 'Quebec', 'Romeo', 'Sierra', 'Tango', 'Uniform', 'Victor', 'Whiskey', 'X ray', 'Yankee', 'Zulu'];
+ var parents0 = ['', 'Alpha', 'Alpha', 'Charlie', 'Charlie', 'Charlie', 'Foxtrot', 'Foxtrot', 'Foxtrot', 'Foxtrot', 'Juliet', 'Juliet', 'Juliet', 'Juliet', 'Juliet', 'Oscar', 'Oscar', 'Oscar', 'Oscar', 'Oscar', 'Oscar', 'Uniform', 'Uniform', 'Uniform', 'Uniform', 'Uniform', 'Uniform'];
+ var values0 = [40, 2, 38, 1.5, 2.5, 34, 1, 2, 3, 28, 1.25, 1.75, 2.25, 2.75, 20, 1, 1.5, 2, 2.5, 3, 10, 1, 1.5, 2, 2.5, 3];
+ var text0 = ['forty', 'two', 'thirty-eight', 'one and a half', 'two and a half', 'thirty-four', 'one', 'two', 'three', 'twenty-eight', 'one and twenty-five hundredths', 'one and seventy-five hundredths', 'two and twenty-five hundredths', 'two and seventy-five hundredths', 'twenty', 'one', 'one and a half', 'two', 'two and a half', 'three', 'ten', 'one', 'one and a half', 'two', 'two and a half', 'three'];
+
+ afterEach(destroyGraphDiv);
+
+ function run(spec) {
+ gd = createGraphDiv();
+
+ var data = (spec.traces || [{}]).map(function(t) {
+ t.type = 'voronoi';
+ t.text = text0;
+ t.values = values0;
+ t.level = spec.level;
+ t.branchvalues = 'total';
+ t.hovertemplate = 'path = %{currentPath}
label = %{label}
text = %{text}
value = %{value}
ratio to %{parent} = %{percentParent}
ratio to %{entry} = %{percentEntry}
ratio to %{root} = %{percentRoot}';
+
+ if(!t.labels) t.labels = labels0.slice();
+ if(!t.parents) t.parents = parents0.slice();
+ return t;
+ });
+
+ var layout = Lib.extendFlat({
+ width: 500,
+ height: 500,
+ margin: {t: 0, b: 0, l: 0, r: 0, pad: 0}
+ }, spec.layout || {});
+
+ var exp = spec.exp || {};
+ var ptData = null;
+
+ return Plotly.newPlot(gd, data, layout)
+ .then(function() {
+ gd.once('plotly_hover', function(d) { ptData = d.points[0]; });
+ })
+ .then(hover(gd, spec.pos))
+ .then(function() {
+ assertHoverLabelContent(exp.label);
+
+ for(var k in exp.ptData) {
+ expect(ptData[k]).toBe(exp.ptData[k], 'pt event data key ' + k);
+ }
+
+ if(exp.style) {
+ var gd3 = d3Select(gd);
+ assertHoverLabelStyle(gd3.select('.hovertext'), exp.style);
+ }
+ });
+ }
+
+ [{
+ desc: 'entry',
+ level: 'X ray',
+ pos: 0,
+ exp: {
+ label: {
+ name: 'trace 0',
+ nums: 'path = Alpha/Charlie/Foxtrot/Juliet/Oscar/Uniform/\nlabel = X ray\ntext = two\nvalue = 2\nratio to Uniform = 0.2\nratio to X ray = 1\nratio to Alpha = 0.05',
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 23,
+ label: 'X ray',
+ parent: 'Uniform'
+ }
+ }
+ }, {
+ desc: 'entry',
+ level: 'Oscar',
+ pos: 0,
+ exp: {
+ label: {
+ name: 'trace 0',
+ nums: 'path = Alpha/Charlie/Foxtrot/Juliet/\nlabel = Oscar\ntext = twenty\nvalue = 20\nratio to Juliet = 0.7142857142857143\nratio to Oscar = 1\nratio to Alpha = 0.5',
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 14,
+ label: 'Oscar',
+ parent: 'Juliet'
+ }
+ }
+ }, {
+ desc: 'leaf',
+ level: 'Oscar',
+ pos: 10,
+ exp: {
+ label: {
+ name: 'trace 0',
+ nums: 'path = Alpha/Charlie/Foxtrot/Juliet/Oscar/Uniform/\nlabel = X ray\ntext = two\nvalue = 2\nratio to Uniform = 0.2\nratio to Oscar = 0.1\nratio to Alpha = 0.05',
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 23,
+ label: 'X ray',
+ parent: 'Uniform'
+ }
+ }
+ }, {
+ desc: 'entry',
+ level: undefined, // root
+ pos: 0,
+ exp: {
+ label: {
+ name: 'trace 0',
+ nums: 'path = /\nlabel = Alpha\ntext = forty\nvalue = 40\nratio to = 1\nratio to Alpha = 1\nratio to Alpha = 1',
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 0,
+ label: 'Alpha',
+ parent: ''
+ }
+ }
+ }, {
+ desc: 'leaf',
+ level: undefined, // root
+ pos: 10,
+ exp: {
+ label: {
+ name: 'trace 0',
+ nums: 'path = Alpha/Charlie/Foxtrot/\nlabel = Golf\ntext = one\nvalue = 1\nratio to Foxtrot = 0.029411764705882353\nratio to Alpha = 0.025\nratio to Alpha = 0.025',
+ },
+ ptData: {
+ curveNumber: 0,
+ pointNumber: 6,
+ label: 'Golf',
+ parent: 'Foxtrot'
+ }
+ }
+ }]
+ .forEach(function(spec) {
+ it('should generate correct hover labels and event data - ' + spec.desc + ' with level:' + spec.level, function(done) {
+ run(spec).then(done, done.fail);
+ });
+ });
+});
+
+describe('Test voronoi hover lifecycle:', function() {
+ var gd;
+ var hoverData;
+ var unhoverData;
+ var hoverCnt;
+ var unhoverCnt;
+
+ beforeEach(function() { gd = createGraphDiv(); });
+
+ afterEach(destroyGraphDiv);
+
+ function setupListeners() {
+ hoverData = null;
+ unhoverData = null;
+ hoverCnt = 0;
+ unhoverCnt = 0;
+
+ return function() {
+ gd.on('plotly_hover', function(d) {
+ hoverData = d;
+ hoverCnt++;
+ });
+ gd.on('plotly_unhover', function(d) {
+ unhoverData = d;
+ unhoverCnt++;
+ });
+ };
+ }
+
+ it('should fire the correct events', function(done) {
+ var mock = Lib.extendDeep({}, require('../../image/mocks/zz-voronoi_first.json'));
+
+ Plotly.newPlot(gd, mock)
+ .then(setupListeners())
+ .then(hover(gd, 1))
+ .then(function() {
+ if(hoverCnt === 1) {
+ expect(hoverData.event).toBeDefined();
+ expect(hoverData.points[0].label).toBe('Eve');
+ } else {
+ fail('did not trigger correct # of plotly_hover events');
+ }
+
+ if(unhoverCnt) {
+ fail('should not have triggered plotly_unhover');
+ }
+ })
+ .then(unhover(gd, 1))
+ .then(hover(gd, 2))
+ .then(function() {
+ if(hoverCnt === 2) {
+ expect(hoverData.event).toBeDefined();
+ expect(hoverData.points[0].label).toBe('Seth');
+ } else {
+ fail('did not trigger correct # of plotly_hover events');
+ }
+
+ if(unhoverCnt === 1) {
+ expect(unhoverData.event).toBeDefined();
+ expect(unhoverData.points[0].label).toBe('Eve');
+ } else {
+ fail('did not trigger correct # of plotly_unhover events');
+ }
+ })
+ .then(done, done.fail);
+ });
+});
+
+describe('Test voronoi clicks:', function() {
+ var gd;
+ var trackers;
+
+ beforeEach(function() {
+ gd = createGraphDiv();
+ trackers = {};
+ });
+
+ afterEach(destroyGraphDiv);
+
+ function setupListeners(opts) {
+ opts = opts || {};
+
+ trackers.voronoiclick = [];
+ trackers.click = [];
+ trackers.animating = [];
+
+ // use `.unshift` that way to latest event data object
+ // will be in entry [0], which is easier to pick out
+
+ return function() {
+ gd.on('plotly_voronoiclick', function(d) {
+ trackers.voronoiclick.unshift(d);
+ if(opts.turnOffAnimation) return false;
+ });
+ gd.on('plotly_click', function(d) {
+ trackers.click.unshift(d);
+ });
+ gd.on('plotly_animating', function() {
+ // N.B. does not emit event data
+ trackers.animating.unshift(true);
+ });
+ };
+ }
+
+ it('should trigger animation when clicking on branches', function(done) {
+ var mock = Lib.extendDeep({}, require('../../image/mocks/zz-voronoi_first.json'));
+
+ Plotly.newPlot(gd, mock)
+ .then(setupListeners())
+ .then(click(gd, 2))
+ .then(function() {
+ if(trackers.voronoiclick.length === 1) {
+ expect(trackers.voronoiclick[0].event).toBeDefined();
+ expect(trackers.voronoiclick[0].points[0].label).toBe('Seth');
+ expect(trackers.voronoiclick[0].nextLevel).toBe('Seth');
+ } else {
+ fail('incorrect plotly_voronoiclick triggering');
+ }
+
+ if(trackers.click.length === 1) {
+ expect(trackers.click[0].event).toBeDefined();
+ expect(trackers.click[0].points[0].label).toBe('Seth');
+ expect(trackers.click[0].nextLevel).not.toBeDefined();
+ } else {
+ fail('incorrect plotly_click triggering');
+ }
+
+ if(trackers.animating.length !== 1) {
+ fail('incorrect plotly_animating triggering');
+ }
+ })
+ .then(done, done.fail);
+ });
+
+ it('should trigger plotly_click event when clicking on leaf node', function(done) {
+ var mock = Lib.extendDeep({}, require('../../image/mocks/zz-voronoi_first.json'));
+
+ Plotly.newPlot(gd, mock)
+ .then(setupListeners())
+ .then(click(gd, 8))
+ .then(function() {
+ if(trackers.voronoiclick.length === 1) {
+ expect(trackers.voronoiclick[0].event).toBeDefined();
+ expect(trackers.voronoiclick[0].points[0].label).toBe('Noam');
+ } else {
+ fail('incorrect plotly_voronoiclick triggering');
+ }
+
+ if(trackers.click.length === 1) {
+ expect(trackers.click[0].event).toBeDefined();
+ expect(trackers.click[0].points[0].label).toBe('Noam');
+ }
+ })
+ .then(done, done.fail);
+ });
+
+ it('should not trigger animation when graph is transitioning', function(done) {
+ var mock = Lib.extendDeep({}, require('../../image/mocks/zz-voronoi_first.json'));
+
+ Plotly.newPlot(gd, mock)
+ .then(setupListeners())
+ .then(click(gd, 2))
+ .then(function() {
+ var msg = 'after 1st click';
+
+ if(trackers.voronoiclick.length === 1) {
+ expect(trackers.voronoiclick[0].event).toBeDefined(msg);
+ expect(trackers.voronoiclick[0].points[0].label).toBe('Seth', msg);
+ expect(trackers.voronoiclick[0].nextLevel).toBe('Seth', msg);
+ } else {
+ fail('incorrect plotly_voronoiclick triggering - ' + msg);
+ }
+
+ if(trackers.click.length === 1) {
+ expect(trackers.click[0].event).toBeDefined(msg);
+ expect(trackers.click[0].points[0].label).toBe('Seth', msg);
+ expect(trackers.click[0].nextLevel).not.toBeDefined(msg);
+ } else {
+ fail('incorrect plotly_click triggering - ' + msg);
+ }
+
+ if(trackers.animating.length !== 1) {
+ fail('incorrect plotly_animating triggering - ' + msg);
+ }
+ })
+ .then(click(gd, 4))
+ .then(function() {
+ var msg = 'after 2nd click';
+
+ // should trigger plotly_voronoiclick and plotly_click twice,
+ // but not plotly_animating
+
+ if(trackers.voronoiclick.length === 2) {
+ expect(trackers.voronoiclick[0].event).toBeDefined(msg);
+ expect(trackers.voronoiclick[0].points[0].label).toBe('Awan', msg);
+ expect(trackers.voronoiclick[0].nextLevel).toBe('Awan', msg);
+ } else {
+ fail('incorrect plotly_voronoiclick triggering - ' + msg);
+ }
+
+ if(trackers.click.length === 2) {
+ expect(trackers.click[0].event).toBeDefined(msg);
+ expect(trackers.click[0].points[0].label).toBe('Awan', msg);
+ expect(trackers.click[0].nextLevel).not.toBeDefined(msg);
+ } else {
+ fail('incorrect plotly_click triggering - ' + msg);
+ }
+
+
+ if(trackers.animating.length !== 1) {
+ fail('incorrect plotly_animating triggering - ' + msg);
+ }
+ })
+ .then(done, done.fail);
+ });
+
+ it('should be able to override default click behavior using plotly_voronoiclick handler ()', function(done) {
+ var mock = Lib.extendDeep({}, require('../../image/mocks/zz-voronoi_first.json'));
+
+ Plotly.newPlot(gd, mock)
+ .then(setupListeners({turnOffAnimation: true}))
+ .then(click(gd, 2))
+ .then(function() {
+ if(trackers.voronoiclick.length === 1) {
+ expect(trackers.voronoiclick[0].event).toBeDefined();
+ expect(trackers.voronoiclick[0].points[0].label).toBe('Seth');
+ } else {
+ fail('incorrect plotly_voronoiclick triggering');
+ }
+
+ if(trackers.click.length !== 0) {
+ fail('incorrect plotly_click triggering');
+ }
+
+ if(trackers.animating.length !== 0) {
+ fail('incorrect plotly_animating triggering');
+ }
+ })
+ .then(done, done.fail);
+ });
+});
+
+describe('Test voronoi restyle:', function() {
+ var gd;
+
+ beforeEach(function() { gd = createGraphDiv(); });
+
+ afterEach(destroyGraphDiv);
+
+ function _restyle(updateObj) {
+ return function() { return Plotly.restyle(gd, updateObj); };
+ }
+
+ it('should be able to toggle visibility', function(done) {
+ var mock = Lib.extendDeep({}, require('../../image/mocks/zz-voronoi_first.json'));
+
+ function _assert(msg, exp) {
+ return function() {
+ var layer = d3Select(gd).select('.voronoilayer');
+ expect(layer.selectAll('.trace').size()).toBe(exp, msg);
+ };
+ }
+
+ Plotly.newPlot(gd, mock)
+ .then(_assert('base', 2))
+ .then(_restyle({visible: false}))
+ .then(_assert('both visible:false', 0))
+ .then(_restyle({visible: true}))
+ .then(_assert('back to visible:true', 2))
+ .then(done, done.fail);
+ });
+
+ it('should be able to restyle *maxdepth* and *level* w/o recomputing the hierarchy', function(done) {
+ var mock = Lib.extendDeep({}, require('../../image/mocks/zz-voronoi_coffee.json'));
+
+ function _assert(msg, exp) {
+ return function() {
+ var layer = d3Select(gd).select('.voronoilayer');
+
+ expect(layer.selectAll('.slice').size()).toBe(exp, msg);
+
+ // editType:plot
+ if(msg !== 'base') {
+ expect(Plots.doCalcdata).toHaveBeenCalledTimes(0);
+ }
+ };
+ }
+
+ Plotly.newPlot(gd, mock)
+ .then(_assert('base', 97))
+ .then(function() {
+ spyOn(Plots, 'doCalcdata').and.callThrough();
+ })
+ .then(_restyle({maxdepth: 3}))
+ .then(_assert('with maxdepth:3', 97))
+ .then(_restyle({level: 'Aromas'}))
+ .then(_assert('with non-root level', 67))
+ .then(_restyle({maxdepth: null, level: null}))
+ .then(_assert('back to first view', 97))
+ .then(done, done.fail);
+ });
+
+ it('should be able to restyle *textinfo*', function(done) {
+ var mock = {
+ data: [{
+ type: 'voronoi',
+ labels: ['Root', 'A', 'B', 'b'],
+ parents: ['', 'Root', 'Root', 'B'],
+ text: ['node0', 'node1', 'node2', 'node3'],
+ values: [0, 1, 2, 3],
+ pathbar: { visible: false }
+ }]
+ };
+
+ function _assert(msg, exp) {
+ return function() {
+ var layer = d3Select(gd).select('.voronoilayer');
+ var tx = [];
+
+ layer.selectAll('text.slicetext').each(function() {
+ var lines = d3Select(this).selectAll('tspan');
+
+ if(lines.size()) {
+ var t = [];
+ lines.each(function() {
+ t.push(this.innerHTML);
+ });
+ tx.push(t.join('\n'));
+ } else {
+ tx.push(this.innerHTML);
+ }
+ });
+
+ expect(tx).toEqual(exp, msg);
+
+ // editType:plot
+ if(msg !== 'base') {
+ expect(Plots.doCalcdata).toHaveBeenCalledTimes(0);
+ }
+ };
+ }
+
+ Plotly.newPlot(gd, mock)
+ .then(_assert('base', ['Root', 'B', 'A\nnode1', 'b\nnode3']))
+ .then(function() {
+ spyOn(Plots, 'doCalcdata').and.callThrough();
+ })
+ .then(_restyle({textinfo: 'label'}))
+ .then(_assert('just label', ['Root', 'B', 'A', 'b']))
+ .then(_restyle({textinfo: 'value'}))
+ .then(_assert('show input values', ['Root', 'B', '1', '3']))
+ .then(_restyle({textinfo: 'none'}))
+ .then(_assert('no textinfo', ['Root', 'B', ' ', ' '])) // use one space character instead of a blank string to avoid jumps during transition
+ .then(_restyle({textinfo: 'label+text+value'}))
+ .then(_assert('show everything', ['Root', 'B', 'A\n1\nnode1', 'b\n3\nnode3']))
+ .then(_restyle({textinfo: null}))
+ .then(_assert('back to dflt', ['Root', 'B', 'A\nnode1', 'b\nnode3']))
+ .then(done, done.fail);
+ });
+
+ it('should be able to restyle *marker.cornerradius*', function(done) {
+ var mock = {
+ data: [{
+ type: 'voronoi',
+ labels: ['Root', 'A', 'B', 'b'],
+ parents: ['', 'Root', 'Root', 'B'],
+ text: ['node0', 'node1', 'node2', 'node3'],
+ values: [0, 1, 2, 3],
+ pathbar: { visible: false }
+ }]
+ };
+
+ function _assert(msg, exp) {
+ return function() {
+ var layer = d3Select(gd).select('.voronoilayer');
+ layer.selectAll('.surface').each(function() {
+ var surfaces = d3Select(this);
+ var path = surfaces[0][0].getAttribute('d');
+ expect(path.indexOf('a') !== -1).toEqual(exp);
+ });
+ };
+ }
+
+ Plotly.newPlot(gd, mock)
+ .then(_assert('no arcs', false))
+ .then(function() {
+ return Plotly.restyle(gd, 'marker.cornerradius', 10);
+ })
+ .then(_assert('has arcs', true))
+ .then(function() {
+ return Plotly.restyle(gd, 'marker.cornerradius', 0);
+ })
+ .then(_assert('no arcs', false))
+ .then(done, done.fail);
+ });
+});
+
+describe('Test voronoi tweening:', function() {
+ var gd;
+ var pathTweenFnLookup;
+ var textTweenFnLookup;
+
+ beforeEach(function() {
+ gd = createGraphDiv();
+
+ // hacky way to track tween functions
+ spyOn(d3Transition.prototype, 'attrTween').and.callFake(function(attrName, fn) {
+ var lookup = {d: pathTweenFnLookup, transform: textTweenFnLookup}[attrName];
+ var pt = this[0][0].__data__;
+ var id = pt.data.data.id;
+
+ // we should never tween the same node twice on a given sector click
+ lookup[id] = lookup[id] ? null : fn(pt);
+ });
+ });
+
+ afterEach(destroyGraphDiv);
+
+ function _reset() {
+ pathTweenFnLookup = {};
+ textTweenFnLookup = {};
+ }
+
+ function _run(gd, v) {
+ _reset();
+ click(gd, v)();
+
+ // 1 second more than the click transition duration
+ return delay(constants.CLICK_TRANSITION_TIME + 1);
+ }
+
+ function trim(s) {
+ return s.replace(/\s/g, '');
+ }
+
+
+ function _assert(msg, attrName, id, exp, tolerance) {
+ var lookup = {d: pathTweenFnLookup, transform: textTweenFnLookup}[attrName];
+ var fn = lookup[id];
+ // normalize time in [0, 1] where we'll assert the tweening fn output,
+ // asserting at the mid point *should be* representative enough
+ var t = 0.5;
+ var actual = trim(fn(t));
+ var msg2 = msg + ' | node ' + id + ' @t=' + t;
+
+ if(attrName === 'transform') {
+ var fake = {attr: function() { return actual; }};
+ var xy = Drawing.getTranslate(fake);
+ expect([xy.x, xy.y]).toBeWithinArray(exp, tolerance || 2, msg2);
+ } else {
+ // we could maybe to bring in:
+ // https://github.com/hughsk/svg-path-parser
+ // to make these assertions more readable
+ expect(actual).toBe(trim(exp), msg2);
+ }
+ }
+
+ it('should tween sector exit/update (case: click on branch, no maxdepth)', function(done) {
+ var mock = {
+ data: [{
+ type: 'voronoi', pathbar: { visible: false },
+ labels: ['Root', 'A', 'B', 'b'],
+ parents: ['', 'Root', 'Root', 'B']
+ }]
+ };
+
+ Plotly.newPlot(gd, mock)
+ .then(_run(gd, 3))
+ .then(function() {
+ _assert('exit entry', 'd', 'Root',
+ 'M80,100L620,100L620,370L80,370Z'
+ );
+ _assert('update A to new position', 'd', 'A',
+ 'M83,112L214.25,112L214.25,367L83,367Z'
+ );
+ _assert('update B to new position', 'd', 'B',
+ 'M215.75,112L617,112L617,367L215.75,367Z'
+ );
+ _assert('update b to new position', 'd', 'b',
+ 'M221.75,136L611,136L611,361L221.75,361Z'
+ );
+ _assert('move B text to new position', 'transform', 'B', [222.75, 126], 3);
+ _assert('move b text to new position', 'transform', 'b', [225.75, 150], 3);
+ })
+ .then(done, done.fail);
+ });
+
+ it('should tween sector enter/update (case: click on entry, no maxdepth)', function(done) {
+ var mock = {
+ data: [{
+ type: 'voronoi', pathbar: { visible: false },
+ labels: ['Root', 'A', 'B', 'b'],
+ parents: ['', 'Root', 'Root', 'B'],
+ level: 'B'
+ }]
+ };
+
+ Plotly.newPlot(gd, mock)
+ .then(_run(gd, 1))
+ .then(function() {
+ _assert('enter new entry', 'd', 'Root',
+ 'M80,100L620,100L620,370L80,370Z'
+ );
+ _assert('update A to new position', 'd', 'A',
+ 'M83,112L214.25,112L214.25,367L83,367Z'
+ );
+ _assert('update B to new position', 'd', 'B',
+ 'M215.75,112L617,112L617,367L215.75,367Z'
+ );
+ _assert('update b to new position', 'd', 'b',
+ 'M221.75,136L611,136L611,361L221.75,361Z'
+ );
+ _assert('move B text to new position', 'transform', 'B', [222.75, 126], 3);
+ _assert('move b text to new position', 'transform', 'b', [225.75, 150], 3);
+ })
+ .then(done, done.fail);
+ });
+
+ it('should tween sector enter/update/exit (case: click on entry, maxdepth=2)', function(done) {
+ var mock = {
+ data: [{
+ type: 'voronoi', pathbar: { visible: false },
+ labels: ['Root', 'A', 'B', 'b'],
+ parents: ['', 'Root', 'Root', 'B'],
+ maxdepth: 2
+ }]
+ };
+
+ Plotly.newPlot(gd, mock)
+ .then(_run(gd, 3))
+ .then(function() {
+ _assert('exit entry', 'd', 'Root',
+ 'M80,100L620,100L620,370L80,370Z'
+ );
+ _assert('update A to new position', 'd', 'A',
+ 'M83,112L214.25,112L214.25,367L83,367Z'
+ );
+ _assert('update B to new position', 'd', 'B',
+ 'M215.75,112L617,112L617,367L215.75,367Z'
+ );
+ _assert('enter b for parent position', 'd', 'b',
+ 'M284.375,188.5L548.375,188.5L548.375,308.5L284.375,308.5Z'
+ );
+ _assert('move B text to new position', 'transform', 'B', [221.25, 126], 3);
+ _assert('enter b text to new position', 'transform', 'b', [287.625, 192]);
+ })
+ .then(done, done.fail);
+ });
+
+ it('should tween sector enter/update/exit (case: click on entry, maxdepth=2, level=B)', function(done) {
+ var mock = {
+ data: [{
+ type: 'voronoi', pathbar: { visible: false },
+ labels: ['Root', 'A', 'B', 'b', 'bb'],
+ parents: ['', 'Root', 'Root', 'B', 'b'],
+ maxdepth: 2,
+ level: 'B'
+ }]
+ };
+
+ Plotly.newPlot(gd, mock)
+ .then(_run(gd, 1))
+ .then(function() {
+ _assert('exit b', 'd', 'b',
+ 'M284.375,188.5L548.375,188.5L548.375,308.5L284.375,308.5Z'
+ );
+ _assert('enter new entry', 'd', 'Root',
+ 'M80,100L620,100L620,370L80,370Z'
+ );
+ _assert('enter A counterclockwise', 'd', 'A',
+ 'M83,112L214.25,112L214.25,367L83,367Z'
+ );
+ _assert('update B to new position', 'd', 'B',
+ 'M215.75,112L617,112L617,367L215.75,367Z'
+ );
+ })
+ .then(done, done.fail);
+ });
+});
+
+describe('Test voronoi interactions edge cases', function() {
+ var gd;
+
+ beforeEach(function() { gd = createGraphDiv(); });
+
+ afterEach(destroyGraphDiv);
+
+ it('should keep tracking hover labels and hover events after *calc* edits', function(done) {
+ var mock = Lib.extendFlat({}, require('../../image/mocks/zz-voronoi_first.json'));
+ var hoverCnt = 0;
+ var unhoverCnt = 0;
+
+ // see https://github.com/plotly/plotly.js/issues/3618
+
+ function _assert(msg, exp) {
+ expect(hoverCnt).toBe(exp.hoverCnt, msg + ' - hover cnt');
+ expect(unhoverCnt).toBe(exp.unhoverCnt, msg + ' - unhover cnt');
+
+ var label = d3Select(gd).select('g.hovertext');
+ expect(label.size()).toBe(exp.hoverLabel, msg + ' - hover label cnt');
+
+ hoverCnt = 0;
+ unhoverCnt = 0;
+ }
+
+ Plotly.newPlot(gd, mock)
+ .then(function() {
+ gd.on('plotly_hover', function() {
+ hoverCnt++;
+ // N.B. trigger a 'plot' edit
+ Plotly.restyle(gd, 'textinfo', 'none');
+ });
+ gd.on('plotly_unhover', function() {
+ unhoverCnt++;
+ // N.B. trigger a 'plot' edit
+ Plotly.restyle(gd, 'textinfo', null);
+ });
+ })
+ .then(hover(gd, 1))
+ .then(function() {
+ _assert('after hovering on first sector', {
+ hoverCnt: 1,
+ unhoverCnt: 0,
+ hoverLabel: 1
+ });
+ })
+ .then(unhover(gd, 1))
+ .then(function() {
+ _assert('after un-hovering from first sector', {
+ hoverCnt: 0,
+ unhoverCnt: 1,
+ hoverLabel: 0
+ });
+ })
+ .then(hover(gd, 2))
+ .then(function() {
+ _assert('after hovering onto second sector', {
+ hoverCnt: 1,
+ unhoverCnt: 0,
+ hoverLabel: 1
+ });
+ })
+ .then(done, done.fail);
+ });
+
+ it('should show falsy zero text', function(done) {
+ Plotly.newPlot(gd, {
+ data: [{
+ type: 'voronoi',
+ parents: ['', 'A', 'B', 'C', 'D', 'E', 'F'],
+ labels: ['A', 'B', 'C', 'D', 'E', 'F', 'G'],
+ values: [7, 6, 5, 4, 3, 2, 1],
+ text: [null, '', '0', 0, 1, true, false],
+ textinfo: 'label+text+value'
+ }],
+ layout: {
+ width: 400,
+ height: 400
+ }
+ })
+ .then(hover(gd, 4))
+ .then(function() {
+ assertHoverLabelContent({ nums: 'D\n4\n0' });
+ })
+ .then(done, done.fail);
+ });
+
+ it('should transition voronoi traces only', function(done) {
+ var mock = Lib.extendDeep({}, require('../../image/mocks/display-text_zero-number.json'));
+ mock.data[0].visible = false;
+ mock.data[1].type = 'voronoi';
+ mock.data[1].name = 'voronoi';
+
+ function _assert(msg, exp) {
+ var gd3 = d3Select(gd);
+ expect(gd3.select('.cartesianlayer').selectAll('.trace').size())
+ .toBe(exp.cartesianTraceCnt, '# of cartesian traces');
+ expect(gd3.select('.pielayer').selectAll('.trace').size())
+ .toBe(exp.pieTraceCnt, '# of pie traces');
+ expect(gd3.select('.voronoilayer').selectAll('.trace').size())
+ .toBe(exp.voronoiTraceCnt, '# of voronoi traces');
+ }
+
+ Plotly.newPlot(gd, mock)
+ .then(function() {
+ _assert('base', {
+ cartesianTraceCnt: 2,
+ pieTraceCnt: 0,
+ voronoiTraceCnt: 1
+ });
+ })
+ .then(click(gd, 2))
+ .then(delay(constants.CLICK_TRANSITION_TIME + 1))
+ .then(function() {
+ _assert('after voronoi click', {
+ cartesianTraceCnt: 2,
+ pieTraceCnt: 0,
+ voronoiTraceCnt: 1
+ });
+ })
+ .then(done, done.fail);
+ });
+
+ it('should be able to transition voronoi traces via `Plotly.react`', function(done) {
+ var mock = Lib.extendDeep({}, require('../../image/mocks/display-text_zero-number.json'));
+ mock.data[1].type = 'voronoi';
+ mock.data[1].name = 'voronoi';
+
+ mock.layout.transition = {duration: 200};
+
+ spyOn(Plots, 'transitionFromReact').and.callThrough();
+
+ Plotly.newPlot(gd, mock)
+ .then(function() {
+ gd.data[1].level = 'B';
+ return Plotly.react(gd, gd.data, gd.layout);
+ })
+ .then(delay(202))
+ .then(function() {
+ expect(Plots.transitionFromReact).toHaveBeenCalledTimes(1);
+ })
+ .then(done, done.fail);
+ });
+});
+
+describe('Test voronoi texttemplate without `values` should work:', function() {
+ checkTextTemplate([{
+ type: 'voronoi', pathbar: { visible: false },
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ parents: ['', 'Eve', 'Eve', 'Seth', 'Seth', 'Eve', 'Eve', 'Awan', 'Eve' ],
+ text: ['sixty-five', 'fourteen', 'twelve', 'ten', 'two', 'six', 'six', 'one', 'four']
+ }], 'g.slicetext', [
+ ['color: %{color}', ['Eve', 'color: #1f77b4', 'Seth', 'color: #2ca02c', 'color: #d62728', 'color: #9467bd', 'Awan', 'color: #ff7f0e', 'color: #d62728']],
+ ['label: %{label}', ['Eve', 'label: Cain', 'Seth', 'label: Enos', 'label: Noam', 'label: Abel', 'Awan', 'label: Enoch', 'label: Azura']],
+ ['text: %{text}', ['Eve', 'text: fourteen', 'Seth', 'text: ten', 'text: two', 'text: six', 'Awan', 'text: one', 'text: four']],
+ ['path: %{currentPath}', ['Eve', 'path: Eve/', 'Seth', 'path: Eve/', 'path: Eve/', 'path: Eve/Seth/', 'Awan', 'path: Eve/Seth/', 'path: Eve/Awan/']],
+ ['%{percentRoot} of %{root}', ['Eve', '33% of Eve', 'Seth', '17% of Eve', '17% of Eve', '17% of Eve', 'Awan', '17% of Eve', '17% of Eve']],
+ ['%{percentEntry} of %{entry}', ['Eve', '33% of Eve', 'Seth', '17% of Eve', '17% of Eve', '17% of Eve', 'Awan', '17% of Eve', '17% of Eve']],
+ ['%{percentParent} of %{parent}', ['Eve', '100% of Seth', 'Seth', '17% of Eve', '17% of Eve', '17% of Eve', 'Awan', '50% of Seth', '100% of Awan']],
+ [
+ [
+ 'color: %{color}',
+ 'label: %{label}, text: %{text}',
+ 'text: %{text}',
+ 'value: %{value}',
+ '%{percentRoot} of %{root}',
+ '%{percentEntry} of %{entry}',
+ '%{percentParent} of %{parent}',
+ '%{percentParent} of %{parent}',
+ '%{percentParent} of %{parent}'
+ ],
+ [
+ 'Eve',
+ 'label: Cain, text: fourteen',
+ 'Seth',
+ 'value: %{value}', // N.B. there is no `values` array
+ '17% of Eve',
+ '17% of Eve',
+ 'Awan',
+ '17% of Eve',
+ '100% of Awan'
+ ]
+ ]
+ ], /* skipEtra */ true);
+});
+
+describe('Test voronoi texttemplate with *total* `values` should work:', function() {
+ checkTextTemplate([{
+ type: 'voronoi', pathbar: { visible: false },
+ branchvalues: 'total',
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ parents: ['', 'Eve', 'Eve', 'Seth', 'Seth', 'Eve', 'Eve', 'Awan', 'Eve' ],
+ values: [65, 14, 12, 10, 2, 6, 6, 1, 4],
+ text: ['sixty-five', 'fourteen', 'twelve', 'ten', 'two', 'six', 'six', 'one', 'four']
+ }], 'g.slicetext', [
+ ['color: %{color}', ['Eve', 'color: #1f77b4', 'Seth', 'color: #2ca02c', 'color: #d62728', 'color: #9467bd', 'Awan', 'color: #ff7f0e', 'color: #d62728']],
+ ['label: %{label}', ['Eve', 'label: Cain', 'Seth', 'label: Enos', 'label: Noam', 'label: Abel', 'Awan', 'label: Enoch', 'label: Azura']],
+ ['value: %{value}', ['Eve', 'value: 14', 'Seth', 'value: 10', 'value: 2', 'value: 6', 'Awan', 'value: 1', 'value: 4']],
+ ['text: %{text}', ['Eve', 'text: fourteen', 'Seth', 'text: ten', 'text: two', 'text: six', 'Awan', 'text: one', 'text: four']],
+ ['path: %{currentPath}', ['Eve', 'path: Eve/', 'Seth', 'path: Eve/', 'path: Eve/', 'path: Eve/Seth/', 'Awan', 'path: Eve/Seth/', 'path: Eve/Awan/']]
+ ], /* skipEtra */ true);
+});
+
+describe('Test voronoi texttemplate with *remainder* `values` should work:', function() {
+ checkTextTemplate([{
+ type: 'voronoi', pathbar: { visible: false },
+ branchvalues: 'remainder',
+ labels: ['Eve', 'Cain', 'Seth', 'Enos', 'Noam', 'Abel', 'Awan', 'Enoch', 'Azura'],
+ parents: ['', 'Eve', 'Eve', 'Seth', 'Seth', 'Eve', 'Eve', 'Awan', 'Eve' ],
+ values: [65, 14, 12, 10, 2, 6, 6, 1, 4],
+ text: ['sixty-five', 'fourteen', 'twelve', 'ten', 'two', 'six', 'six', 'one', 'four']
+ }], 'g.slicetext', [
+ ['color: %{color}', ['Eve', 'color: #1f77b4', 'Seth', 'color: #2ca02c', 'color: #d62728', 'color: #9467bd', 'Awan', 'color: #ff7f0e', 'color: #d62728']],
+ ['label: %{label}', ['Eve', 'label: Cain', 'Seth', 'label: Enos', 'label: Noam', 'label: Abel', 'Awan', 'label: Enoch', 'label: Azura']],
+ ['value: %{value}', ['Eve', 'value: 14', 'Seth', 'value: 10', 'value: 2', 'value: 6', 'Awan', 'value: 1', 'value: 4']],
+ ['text: %{text}', ['Eve', 'text: fourteen', 'Seth', 'text: ten', 'text: two', 'text: six', 'Awan', 'text: one', 'text: four']],
+ ['path: %{currentPath}', ['Eve', 'path: Eve/', 'Seth', 'path: Eve/', 'path: Eve/', 'path: Eve/Seth/', 'Awan', 'path: Eve/Seth/', 'path: Eve/Awan/']]
+ ], /* skipEtra */ true);
+});
+
+describe('voronoi uniformtext', function() {
+ 'use strict';
+
+ var gd;
+
+ beforeEach(function() {
+ gd = createGraphDiv();
+ });
+
+ afterEach(destroyGraphDiv);
+
+ function assertTextSizes(msg, opts) {
+ return function() {
+ var selection = d3SelectAll(SLICES_TEXT_SELECTOR);
+ var size = selection.size();
+ ['fontsizes', 'scales'].forEach(function(e) {
+ expect(size).toBe(opts[e].length, 'length for ' + e + ' does not match with the number of elements');
+ });
+
+ selection.each(function(d, i) {
+ var fontSize = this.style.fontSize;
+ expect(fontSize).toBe(opts.fontsizes[i] + 'px', 'fontSize for element ' + i, msg);
+ });
+
+ for(var i = 0; i < selection[0].length; i++) {
+ var transform = selection[0][i].getAttribute('transform');
+ var pos0 = transform.indexOf('scale(');
+ var scale = 1;
+ if(pos0 !== -1) {
+ pos0 += 'scale('.length;
+ var pos1 = transform.indexOf(')', pos0);
+ scale = +(transform.substring(pos0, pos1));
+ }
+
+ expect(opts.scales[i]).toBeCloseTo(scale, 1, 'scale for element ' + i, msg);
+ }
+ };
+ }
+
+ it('should be able to react with new uniform text options', function(done) {
+ var fig = {
+ data: [{
+ type: 'voronoi', tiling: { packing: 'slice' },
+ parents: ['', '', '', '', '', '', '', '', '', ''],
+ labels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
+ values: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
+
+ text: [
+ 0,
+ '
',
+ null,
+ '',
+ ' ',
+ '.',
+ '|',
+ '=',
+ 'longest word in German',
+ 'Rindfleischetikettierungsueberwachungsaufgabenuebertragungsgesetz'
+ ],
+
+ textinfo: 'text'
+ }],
+ layout: {
+ width: 500,
+ height: 500
+ }
+ };
+
+ Plotly.newPlot(gd, fig)
+ .then(assertTextSizes('without uniformtext', {
+ fontsizes: [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
+ scales: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.84],
+ }))
+ .then(function() {
+ fig.layout.uniformtext = {mode: 'hide'}; // default with minsize=0
+ return Plotly.react(gd, fig);
+ })
+ .then(assertTextSizes('using mode: "hide"', {
+ fontsizes: [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
+ scales: [0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84],
+ }))
+ .then(function() {
+ fig.layout.uniformtext.minsize = 9; // set a minsize less than trace font size
+ return Plotly.react(gd, fig);
+ })
+ .then(assertTextSizes('using minsize: 9', {
+ fontsizes: [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
+ scales: [0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84, 0.84],
+ }))
+ .then(function() {
+ fig.layout.uniformtext.minsize = 13; // set a minsize greater than trace font size
+ return Plotly.react(gd, fig);
+ })
+ .then(assertTextSizes('using minsize: 13', {
+ fontsizes: [13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13],
+ scales: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
+ }))
+ .then(function() {
+ fig.layout.uniformtext.mode = 'show';
+ return Plotly.react(gd, fig);
+ })
+ .then(assertTextSizes('using mode: "show"', {
+ fontsizes: [13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13],
+ scales: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
+ }))
+ .then(function() {
+ fig.layout.uniformtext = undefined; // back to default
+ return Plotly.react(gd, fig);
+ })
+ .then(assertTextSizes('clear uniformtext', {
+ fontsizes: [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
+ scales: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.84],
+ }))
+ .then(done, done.fail);
+ });
+
+ it('should uniform text scales after transition', function(done) {
+ Plotly.newPlot(gd, {
+ data: [{
+ type: 'voronoi',
+ tiling: { packing: 'dice'},
+ pathbar: { visible: false },
+ parents: [
+ '',
+ 'Oscar',
+ 'Oscar',
+ 'Oscar',
+ 'Oscar',
+ 'Oscar',
+ 'Oscar',
+ 'Uniform',
+ 'Uniform',
+ 'Uniform',
+ 'Uniform',
+ 'Uniform',
+ 'Uniform'
+ ],
+ labels: [
+ 'Oscar',
+ 'Papa',
+ 'Quebec',
+ 'Romeo and Juliet',
+ 'Sierra',
+ 'Tango',
+ 'Uniform',
+ 'ViKtor Korchnoi - Anatoly Karpov',
+ 'Whiskey',
+ 'X ray',
+ 'Yankee',
+ 'Zulu'
+ ],
+ textinfo: 'label'
+ }],
+ layout: {
+ width: 850,
+ height: 350,
+ uniformtext: {
+ mode: 'hide',
+ minsize: 12
+ }
+ }
+ })
+ .then(assertTextSizes('before click', {
+ fontsizes: [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
+ scales: [1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1],
+ }))
+ .then(click(gd, 2)) // click on Uniform
+ .then(delay(constants.CLICK_TRANSITION_TIME + 1))
+ .then(assertTextSizes('after click child', {
+ fontsizes: [12, 12, 12, 12, 12, 12],
+ scales: [1, 0, 1, 1, 1, 1],
+ }))
+ .then(click(gd, 1)) // click on Oscar
+ .then(delay(constants.CLICK_TRANSITION_TIME + 1))
+ .then(assertTextSizes('after click parent', {
+ fontsizes: [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12],
+ scales: [1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1],
+ }))
+ .then(done, done.fail);
+ });
+});
+
+describe('voronoi pathbar react', function() {
+ 'use strict';
+
+ var gd;
+
+ beforeEach(function() {
+ gd = createGraphDiv();
+ });
+
+ afterEach(destroyGraphDiv);
+
+ it('should show and hide pathbar', function(done) {
+ var fig = {
+ data: [{
+ type: 'voronoi',
+ parents: ['', 'A', 'B', 'C'],
+ labels: ['A', 'B', 'C', 'D'],
+ level: 'C'
+ }],
+ layout: {}
+ };
+
+ function _assert(msg, exp) {
+ return function() {
+ var selection = d3SelectAll(SLICES_SELECTOR);
+ var size = selection.size();
+
+ expect(size).toBe(exp, msg);
+ };
+ }
+
+ Plotly.newPlot(gd, fig)
+ .then(_assert('default pathbar.visible: true', 4))
+ .then(function() {
+ fig.data[0].pathbar = {visible: false};
+ return Plotly.react(gd, fig);
+ })
+ .then(_assert('disable pathbar', 2))
+ .then(function() {
+ fig.data[0].pathbar = {visible: true};
+ return Plotly.react(gd, fig);
+ })
+ .then(_assert('enable pathbar', 4))
+ .then(done, done.fail);
+ });
+});
diff --git a/test/plot-schema.json b/test/plot-schema.json
index a40625eeaca..13bf54fe6d7 100644
--- a/test/plot-schema.json
+++ b/test/plot-schema.json
@@ -51437,7 +51437,7 @@
},
"root": {
"color": {
- "description": "sets the color of the root node for a sunburst/treemap/icicle trace. this has no effect when a colorscale is used to set the markers.",
+ "description": "sets the color of the root node for a sunburst/treemap/voronoi/icicle trace. this has no effect when a colorscale is used to set the markers.",
"dflt": "rgba(0,0,0,0)",
"editType": "calc",
"valType": "color"
@@ -95459,7 +95459,7 @@
},
"root": {
"color": {
- "description": "sets the color of the root node for a sunburst/treemap/icicle trace. this has no effect when a colorscale is used to set the markers.",
+ "description": "sets the color of the root node for a sunburst/treemap/voronoi/icicle trace. this has no effect when a colorscale is used to set the markers.",
"dflt": "rgba(0,0,0,0)",
"editType": "calc",
"valType": "color"
@@ -100518,7 +100518,7 @@
},
"root": {
"color": {
- "description": "sets the color of the root node for a sunburst/treemap/icicle trace. this has no effect when a colorscale is used to set the markers.",
+ "description": "sets the color of the root node for a sunburst/treemap/voronoi/icicle trace. this has no effect when a colorscale is used to set the markers.",
"dflt": "rgba(0,0,0,0)",
"editType": "calc",
"valType": "color"
@@ -103963,6 +103963,2263 @@
},
"type": "volume"
},
+ "voronoi": {
+ "animatable": true,
+ "attributes": {
+ "branchvalues": {
+ "description": "Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves.",
+ "dflt": "remainder",
+ "editType": "calc",
+ "valType": "enumerated",
+ "values": [
+ "remainder",
+ "total"
+ ]
+ },
+ "count": {
+ "description": "Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0.",
+ "dflt": "leaves",
+ "editType": "calc",
+ "flags": [
+ "branches",
+ "leaves"
+ ],
+ "valType": "flaglist"
+ },
+ "customdata": {
+ "description": "Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, *scatter* traces also appends customdata items in the markers DOM elements",
+ "editType": "calc",
+ "valType": "data_array"
+ },
+ "customdatasrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `customdata`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "domain": {
+ "column": {
+ "description": "If there is a layout grid, use the domain for this column in the grid for this voronoi trace .",
+ "dflt": 0,
+ "editType": "calc",
+ "min": 0,
+ "valType": "integer"
+ },
+ "editType": "calc",
+ "role": "object",
+ "row": {
+ "description": "If there is a layout grid, use the domain for this row in the grid for this voronoi trace .",
+ "dflt": 0,
+ "editType": "calc",
+ "min": 0,
+ "valType": "integer"
+ },
+ "x": {
+ "description": "Sets the horizontal domain of this voronoi trace (in plot fraction).",
+ "dflt": [
+ 0,
+ 1
+ ],
+ "editType": "calc",
+ "items": [
+ {
+ "editType": "calc",
+ "max": 1,
+ "min": 0,
+ "valType": "number"
+ },
+ {
+ "editType": "calc",
+ "max": 1,
+ "min": 0,
+ "valType": "number"
+ }
+ ],
+ "valType": "info_array"
+ },
+ "y": {
+ "description": "Sets the vertical domain of this voronoi trace (in plot fraction).",
+ "dflt": [
+ 0,
+ 1
+ ],
+ "editType": "calc",
+ "items": [
+ {
+ "editType": "calc",
+ "max": 1,
+ "min": 0,
+ "valType": "number"
+ },
+ {
+ "editType": "calc",
+ "max": 1,
+ "min": 0,
+ "valType": "number"
+ }
+ ],
+ "valType": "info_array"
+ }
+ },
+ "hoverinfo": {
+ "arrayOk": true,
+ "description": "Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired.",
+ "dflt": "label+text+value+name",
+ "editType": "none",
+ "extras": [
+ "all",
+ "none",
+ "skip"
+ ],
+ "flags": [
+ "label",
+ "text",
+ "value",
+ "name",
+ "current path",
+ "percent root",
+ "percent entry",
+ "percent parent"
+ ],
+ "valType": "flaglist"
+ },
+ "hoverinfosrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `hoverinfo`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "hoverlabel": {
+ "align": {
+ "arrayOk": true,
+ "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines",
+ "dflt": "auto",
+ "editType": "none",
+ "valType": "enumerated",
+ "values": [
+ "left",
+ "right",
+ "auto"
+ ]
+ },
+ "alignsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `align`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "bgcolor": {
+ "arrayOk": true,
+ "description": "Sets the background color of the hover labels for this trace",
+ "editType": "none",
+ "valType": "color"
+ },
+ "bgcolorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `bgcolor`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "bordercolor": {
+ "arrayOk": true,
+ "description": "Sets the border color of the hover labels for this trace.",
+ "editType": "none",
+ "valType": "color"
+ },
+ "bordercolorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `bordercolor`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "editType": "none",
+ "font": {
+ "color": {
+ "arrayOk": true,
+ "editType": "none",
+ "valType": "color"
+ },
+ "colorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `color`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "description": "Sets the font used in hover labels.",
+ "editType": "none",
+ "family": {
+ "arrayOk": true,
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
+ "editType": "none",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ },
+ "familysrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `family`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "lineposition": {
+ "arrayOk": true,
+ "description": "Sets the kind of decoration line(s) with text, such as an *under*, *over* or *through* as well as combinations e.g. *under+over*, etc.",
+ "dflt": "none",
+ "editType": "none",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "under",
+ "over",
+ "through"
+ ],
+ "valType": "flaglist"
+ },
+ "linepositionsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `lineposition`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "role": "object",
+ "shadow": {
+ "arrayOk": true,
+ "description": "Sets the shape and color of the shadow behind text. *auto* places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.",
+ "dflt": "none",
+ "editType": "none",
+ "valType": "string"
+ },
+ "shadowsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `shadow`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "size": {
+ "arrayOk": true,
+ "editType": "none",
+ "min": 1,
+ "valType": "number"
+ },
+ "sizesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `size`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "style": {
+ "arrayOk": true,
+ "description": "Sets whether a font should be styled with a normal or italic face from its family.",
+ "dflt": "normal",
+ "editType": "none",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "italic"
+ ]
+ },
+ "stylesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `style`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "textcase": {
+ "arrayOk": true,
+ "description": "Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.",
+ "dflt": "normal",
+ "editType": "none",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "word caps",
+ "upper",
+ "lower"
+ ]
+ },
+ "textcasesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `textcase`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "variant": {
+ "arrayOk": true,
+ "description": "Sets the variant of the font.",
+ "dflt": "normal",
+ "editType": "none",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "small-caps",
+ "all-small-caps",
+ "all-petite-caps",
+ "petite-caps",
+ "unicase"
+ ]
+ },
+ "variantsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `variant`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "weight": {
+ "arrayOk": true,
+ "description": "Sets the weight (or boldness) of the font.",
+ "dflt": "normal",
+ "editType": "none",
+ "extras": [
+ "normal",
+ "bold"
+ ],
+ "max": 1000,
+ "min": 1,
+ "valType": "integer"
+ },
+ "weightsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `weight`.",
+ "editType": "none",
+ "valType": "string"
+ }
+ },
+ "namelength": {
+ "arrayOk": true,
+ "description": "Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis.",
+ "dflt": 15,
+ "editType": "none",
+ "min": -1,
+ "valType": "integer"
+ },
+ "namelengthsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `namelength`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "role": "object"
+ },
+ "hovertemplate": {
+ "arrayOk": true,
+ "description": "Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example \"{fullData.name}\". To hide the secondary box completely, use an empty tag ``.",
+ "dflt": "",
+ "editType": "none",
+ "valType": "string"
+ },
+ "hovertemplatesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `hovertemplate`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "hovertext": {
+ "arrayOk": true,
+ "description": "Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag.",
+ "dflt": "",
+ "editType": "style",
+ "valType": "string"
+ },
+ "hovertextsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `hovertext`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "ids": {
+ "anim": true,
+ "description": "Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.",
+ "editType": "calc",
+ "valType": "data_array"
+ },
+ "idssrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `ids`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "insidetextfont": {
+ "color": {
+ "arrayOk": true,
+ "editType": "plot",
+ "valType": "color"
+ },
+ "colorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `color`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "description": "Sets the font used for `textinfo` lying inside the sector.",
+ "editType": "plot",
+ "family": {
+ "arrayOk": true,
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
+ "editType": "plot",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ },
+ "familysrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `family`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "lineposition": {
+ "arrayOk": true,
+ "description": "Sets the kind of decoration line(s) with text, such as an *under*, *over* or *through* as well as combinations e.g. *under+over*, etc.",
+ "dflt": "none",
+ "editType": "plot",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "under",
+ "over",
+ "through"
+ ],
+ "valType": "flaglist"
+ },
+ "linepositionsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `lineposition`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "role": "object",
+ "shadow": {
+ "arrayOk": true,
+ "description": "Sets the shape and color of the shadow behind text. *auto* places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.",
+ "dflt": "none",
+ "editType": "plot",
+ "valType": "string"
+ },
+ "shadowsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `shadow`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "size": {
+ "arrayOk": true,
+ "editType": "plot",
+ "min": 1,
+ "valType": "number"
+ },
+ "sizesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `size`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "style": {
+ "arrayOk": true,
+ "description": "Sets whether a font should be styled with a normal or italic face from its family.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "italic"
+ ]
+ },
+ "stylesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `style`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "textcase": {
+ "arrayOk": true,
+ "description": "Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "word caps",
+ "upper",
+ "lower"
+ ]
+ },
+ "textcasesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `textcase`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "variant": {
+ "arrayOk": true,
+ "description": "Sets the variant of the font.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "small-caps",
+ "all-small-caps",
+ "all-petite-caps",
+ "petite-caps",
+ "unicase"
+ ]
+ },
+ "variantsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `variant`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "weight": {
+ "arrayOk": true,
+ "description": "Sets the weight (or boldness) of the font.",
+ "dflt": "normal",
+ "editType": "plot",
+ "extras": [
+ "normal",
+ "bold"
+ ],
+ "max": 1000,
+ "min": 1,
+ "valType": "integer"
+ },
+ "weightsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `weight`.",
+ "editType": "none",
+ "valType": "string"
+ }
+ },
+ "labels": {
+ "description": "Sets the labels of each of the sectors.",
+ "editType": "calc",
+ "valType": "data_array"
+ },
+ "labelssrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `labels`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "legend": {
+ "description": "Sets the reference to a legend to show this trace in. References to these legends are *legend*, *legend2*, *legend3*, etc. Settings for these legends are set in the layout, under `layout.legend`, `layout.legend2`, etc.",
+ "dflt": "legend",
+ "editType": "style",
+ "valType": "subplotid"
+ },
+ "legendgrouptitle": {
+ "editType": "style",
+ "font": {
+ "color": {
+ "editType": "style",
+ "valType": "color"
+ },
+ "description": "Sets this legend group's title font.",
+ "editType": "style",
+ "family": {
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
+ "editType": "style",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ },
+ "lineposition": {
+ "description": "Sets the kind of decoration line(s) with text, such as an *under*, *over* or *through* as well as combinations e.g. *under+over*, etc.",
+ "dflt": "none",
+ "editType": "style",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "under",
+ "over",
+ "through"
+ ],
+ "valType": "flaglist"
+ },
+ "role": "object",
+ "shadow": {
+ "description": "Sets the shape and color of the shadow behind text. *auto* places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.",
+ "dflt": "none",
+ "editType": "style",
+ "valType": "string"
+ },
+ "size": {
+ "editType": "style",
+ "min": 1,
+ "valType": "number"
+ },
+ "style": {
+ "description": "Sets whether a font should be styled with a normal or italic face from its family.",
+ "dflt": "normal",
+ "editType": "style",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "italic"
+ ]
+ },
+ "textcase": {
+ "description": "Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.",
+ "dflt": "normal",
+ "editType": "style",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "word caps",
+ "upper",
+ "lower"
+ ]
+ },
+ "variant": {
+ "description": "Sets the variant of the font.",
+ "dflt": "normal",
+ "editType": "style",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "small-caps",
+ "all-small-caps",
+ "all-petite-caps",
+ "petite-caps",
+ "unicase"
+ ]
+ },
+ "weight": {
+ "description": "Sets the weight (or boldness) of the font.",
+ "dflt": "normal",
+ "editType": "style",
+ "extras": [
+ "normal",
+ "bold"
+ ],
+ "max": 1000,
+ "min": 1,
+ "valType": "integer"
+ }
+ },
+ "role": "object",
+ "text": {
+ "description": "Sets the title of the legend group.",
+ "dflt": "",
+ "editType": "style",
+ "valType": "string"
+ }
+ },
+ "legendrank": {
+ "description": "Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with *reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.",
+ "dflt": 1000,
+ "editType": "style",
+ "valType": "number"
+ },
+ "legendwidth": {
+ "description": "Sets the width (in px or fraction) of the legend for this trace.",
+ "editType": "style",
+ "min": 0,
+ "valType": "number"
+ },
+ "level": {
+ "anim": true,
+ "description": "Sets the level from which this trace hierarchy is rendered. Set `level` to `''` to start from the root node in the hierarchy. Must be an \"id\" if `ids` is filled in, otherwise plotly attempts to find a matching item in `labels`.",
+ "editType": "plot",
+ "valType": "any"
+ },
+ "marker": {
+ "autocolorscale": {
+ "description": "Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if colors is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.",
+ "dflt": true,
+ "editType": "calc",
+ "impliedEdits": {},
+ "valType": "boolean"
+ },
+ "cauto": {
+ "description": "Determines whether or not the color domain is computed with respect to the input data (here colors) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if colors is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.",
+ "dflt": true,
+ "editType": "calc",
+ "impliedEdits": {},
+ "valType": "boolean"
+ },
+ "cmax": {
+ "description": "Sets the upper bound of the color domain. Has an effect only if colors is set to a numerical array. Value should have the same units as colors and if set, `marker.cmin` must be set as well.",
+ "dflt": null,
+ "editType": "plot",
+ "impliedEdits": {
+ "cauto": false
+ },
+ "valType": "number"
+ },
+ "cmid": {
+ "description": "Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if colors is set to a numerical array. Value should have the same units as colors. Has no effect when `marker.cauto` is `false`.",
+ "dflt": null,
+ "editType": "calc",
+ "impliedEdits": {},
+ "valType": "number"
+ },
+ "cmin": {
+ "description": "Sets the lower bound of the color domain. Has an effect only if colors is set to a numerical array. Value should have the same units as colors and if set, `marker.cmax` must be set as well.",
+ "dflt": null,
+ "editType": "plot",
+ "impliedEdits": {
+ "cauto": false
+ },
+ "valType": "number"
+ },
+ "coloraxis": {
+ "description": "Sets a reference to a shared color axis. References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be linked to the same color axis.",
+ "dflt": null,
+ "editType": "calc",
+ "regex": "/^coloraxis([2-9]|[1-9][0-9]+)?$/",
+ "valType": "subplotid"
+ },
+ "colorbar": {
+ "_deprecated": {
+ "title": {
+ "description": "Deprecated in favor of color bar's `title.text`. Note that value of color bar's `title` is no longer a simple *string* but a set of sub-attributes.",
+ "editType": "colorbars",
+ "valType": "string"
+ },
+ "titlefont": {
+ "color": {
+ "editType": "colorbars",
+ "valType": "color"
+ },
+ "description": "Deprecated in favor of color bar's `title.font`.",
+ "editType": "colorbars",
+ "family": {
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
+ "editType": "colorbars",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ },
+ "lineposition": {
+ "description": "Sets the kind of decoration line(s) with text, such as an *under*, *over* or *through* as well as combinations e.g. *under+over*, etc.",
+ "dflt": "none",
+ "editType": "colorbars",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "under",
+ "over",
+ "through"
+ ],
+ "valType": "flaglist"
+ },
+ "shadow": {
+ "description": "Sets the shape and color of the shadow behind text. *auto* places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.",
+ "dflt": "none",
+ "editType": "colorbars",
+ "valType": "string"
+ },
+ "size": {
+ "editType": "colorbars",
+ "min": 1,
+ "valType": "number"
+ },
+ "style": {
+ "description": "Sets whether a font should be styled with a normal or italic face from its family.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "italic"
+ ]
+ },
+ "textcase": {
+ "description": "Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "word caps",
+ "upper",
+ "lower"
+ ]
+ },
+ "variant": {
+ "description": "Sets the variant of the font.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "small-caps",
+ "all-small-caps",
+ "all-petite-caps",
+ "petite-caps",
+ "unicase"
+ ]
+ },
+ "weight": {
+ "description": "Sets the weight (or boldness) of the font.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "extras": [
+ "normal",
+ "bold"
+ ],
+ "max": 1000,
+ "min": 1,
+ "valType": "integer"
+ }
+ },
+ "titleside": {
+ "description": "Deprecated in favor of color bar's `title.side`.",
+ "dflt": "top",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "right",
+ "top",
+ "bottom"
+ ]
+ }
+ },
+ "bgcolor": {
+ "description": "Sets the color of padded area.",
+ "dflt": "rgba(0,0,0,0)",
+ "editType": "colorbars",
+ "valType": "color"
+ },
+ "bordercolor": {
+ "description": "Sets the axis line color.",
+ "dflt": "#444",
+ "editType": "colorbars",
+ "valType": "color"
+ },
+ "borderwidth": {
+ "description": "Sets the width (in px) or the border enclosing this color bar.",
+ "dflt": 0,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "number"
+ },
+ "dtick": {
+ "description": "Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*",
+ "editType": "colorbars",
+ "impliedEdits": {
+ "tickmode": "linear"
+ },
+ "valType": "any"
+ },
+ "editType": "colorbars",
+ "exponentformat": {
+ "description": "Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B.",
+ "dflt": "B",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "none",
+ "e",
+ "E",
+ "power",
+ "SI",
+ "B"
+ ]
+ },
+ "labelalias": {
+ "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash. That means you need to use −1 instead of -1. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.",
+ "dflt": false,
+ "editType": "colorbars",
+ "valType": "any"
+ },
+ "len": {
+ "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.",
+ "dflt": 1,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "number"
+ },
+ "lenmode": {
+ "description": "Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value.",
+ "dflt": "fraction",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "fraction",
+ "pixels"
+ ]
+ },
+ "minexponent": {
+ "description": "Hide SI prefix for 10^n if |n| is below this number. This only has an effect when `tickformat` is *SI* or *B*.",
+ "dflt": 3,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "number"
+ },
+ "nticks": {
+ "description": "Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.",
+ "dflt": 0,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "integer"
+ },
+ "orientation": {
+ "description": "Sets the orientation of the colorbar.",
+ "dflt": "v",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "h",
+ "v"
+ ]
+ },
+ "outlinecolor": {
+ "description": "Sets the axis line color.",
+ "dflt": "#444",
+ "editType": "colorbars",
+ "valType": "color"
+ },
+ "outlinewidth": {
+ "description": "Sets the width (in px) of the axis line.",
+ "dflt": 1,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "number"
+ },
+ "role": "object",
+ "separatethousands": {
+ "description": "If \"true\", even 4-digit integers are separated",
+ "dflt": false,
+ "editType": "colorbars",
+ "valType": "boolean"
+ },
+ "showexponent": {
+ "description": "If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear.",
+ "dflt": "all",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "all",
+ "first",
+ "last",
+ "none"
+ ]
+ },
+ "showticklabels": {
+ "description": "Determines whether or not the tick labels are drawn.",
+ "dflt": true,
+ "editType": "colorbars",
+ "valType": "boolean"
+ },
+ "showtickprefix": {
+ "description": "If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden.",
+ "dflt": "all",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "all",
+ "first",
+ "last",
+ "none"
+ ]
+ },
+ "showticksuffix": {
+ "description": "Same as `showtickprefix` but for tick suffixes.",
+ "dflt": "all",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "all",
+ "first",
+ "last",
+ "none"
+ ]
+ },
+ "thickness": {
+ "description": "Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels.",
+ "dflt": 30,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "number"
+ },
+ "thicknessmode": {
+ "description": "Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value.",
+ "dflt": "pixels",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "fraction",
+ "pixels"
+ ]
+ },
+ "tick0": {
+ "description": "Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is *log*, then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L* (see `dtick` for more info). If the axis `type` is *date*, it should be a date string, like date data. If the axis `type` is *category*, it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.",
+ "editType": "colorbars",
+ "impliedEdits": {
+ "tickmode": "linear"
+ },
+ "valType": "any"
+ },
+ "tickangle": {
+ "description": "Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically.",
+ "dflt": "auto",
+ "editType": "colorbars",
+ "valType": "angle"
+ },
+ "tickcolor": {
+ "description": "Sets the tick color.",
+ "dflt": "#444",
+ "editType": "colorbars",
+ "valType": "color"
+ },
+ "tickfont": {
+ "color": {
+ "editType": "colorbars",
+ "valType": "color"
+ },
+ "description": "Sets the color bar's tick label font",
+ "editType": "colorbars",
+ "family": {
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
+ "editType": "colorbars",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ },
+ "lineposition": {
+ "description": "Sets the kind of decoration line(s) with text, such as an *under*, *over* or *through* as well as combinations e.g. *under+over*, etc.",
+ "dflt": "none",
+ "editType": "colorbars",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "under",
+ "over",
+ "through"
+ ],
+ "valType": "flaglist"
+ },
+ "role": "object",
+ "shadow": {
+ "description": "Sets the shape and color of the shadow behind text. *auto* places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.",
+ "dflt": "none",
+ "editType": "colorbars",
+ "valType": "string"
+ },
+ "size": {
+ "editType": "colorbars",
+ "min": 1,
+ "valType": "number"
+ },
+ "style": {
+ "description": "Sets whether a font should be styled with a normal or italic face from its family.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "italic"
+ ]
+ },
+ "textcase": {
+ "description": "Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "word caps",
+ "upper",
+ "lower"
+ ]
+ },
+ "variant": {
+ "description": "Sets the variant of the font.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "small-caps",
+ "all-small-caps",
+ "all-petite-caps",
+ "petite-caps",
+ "unicase"
+ ]
+ },
+ "weight": {
+ "description": "Sets the weight (or boldness) of the font.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "extras": [
+ "normal",
+ "bold"
+ ],
+ "max": 1000,
+ "min": 1,
+ "valType": "integer"
+ }
+ },
+ "tickformat": {
+ "description": "Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*",
+ "dflt": "",
+ "editType": "colorbars",
+ "valType": "string"
+ },
+ "tickformatstops": {
+ "items": {
+ "tickformatstop": {
+ "dtickrange": {
+ "description": "range [*min*, *max*], where *min*, *max* - dtick values which describe some zoom level, it is possible to omit *min* or *max* value by passing *null*",
+ "editType": "colorbars",
+ "items": [
+ {
+ "editType": "colorbars",
+ "valType": "any"
+ },
+ {
+ "editType": "colorbars",
+ "valType": "any"
+ }
+ ],
+ "valType": "info_array"
+ },
+ "editType": "colorbars",
+ "enabled": {
+ "description": "Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`.",
+ "dflt": true,
+ "editType": "colorbars",
+ "valType": "boolean"
+ },
+ "name": {
+ "description": "When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: false` or `enabled: false` to hide it). Has no effect outside of a template.",
+ "editType": "colorbars",
+ "valType": "string"
+ },
+ "role": "object",
+ "templateitemname": {
+ "description": "Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: false` or `enabled: false` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: true`.",
+ "editType": "colorbars",
+ "valType": "string"
+ },
+ "value": {
+ "description": "string - dtickformat for described zoom level, the same as *tickformat*",
+ "dflt": "",
+ "editType": "colorbars",
+ "valType": "string"
+ }
+ }
+ },
+ "role": "object"
+ },
+ "ticklabeloverflow": {
+ "description": "Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*.",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "allow",
+ "hide past div",
+ "hide past domain"
+ ]
+ },
+ "ticklabelposition": {
+ "description": "Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*.",
+ "dflt": "outside",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "outside",
+ "inside",
+ "outside top",
+ "inside top",
+ "outside left",
+ "inside left",
+ "outside right",
+ "inside right",
+ "outside bottom",
+ "inside bottom"
+ ]
+ },
+ "ticklabelstep": {
+ "description": "Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.",
+ "dflt": 1,
+ "editType": "colorbars",
+ "min": 1,
+ "valType": "integer"
+ },
+ "ticklen": {
+ "description": "Sets the tick length (in px).",
+ "dflt": 5,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "number"
+ },
+ "tickmode": {
+ "description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided).",
+ "editType": "colorbars",
+ "impliedEdits": {},
+ "valType": "enumerated",
+ "values": [
+ "auto",
+ "linear",
+ "array"
+ ]
+ },
+ "tickprefix": {
+ "description": "Sets a tick label prefix.",
+ "dflt": "",
+ "editType": "colorbars",
+ "valType": "string"
+ },
+ "ticks": {
+ "description": "Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines.",
+ "dflt": "",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "outside",
+ "inside",
+ ""
+ ]
+ },
+ "ticksuffix": {
+ "description": "Sets a tick label suffix.",
+ "dflt": "",
+ "editType": "colorbars",
+ "valType": "string"
+ },
+ "ticktext": {
+ "description": "Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to *array*. Used with `tickvals`.",
+ "editType": "colorbars",
+ "valType": "data_array"
+ },
+ "ticktextsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `ticktext`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "tickvals": {
+ "description": "Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to *array*. Used with `ticktext`.",
+ "editType": "colorbars",
+ "valType": "data_array"
+ },
+ "tickvalssrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `tickvals`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "tickwidth": {
+ "description": "Sets the tick width (in px).",
+ "dflt": 1,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "number"
+ },
+ "title": {
+ "editType": "colorbars",
+ "font": {
+ "color": {
+ "editType": "colorbars",
+ "valType": "color"
+ },
+ "description": "Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute.",
+ "editType": "colorbars",
+ "family": {
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
+ "editType": "colorbars",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ },
+ "lineposition": {
+ "description": "Sets the kind of decoration line(s) with text, such as an *under*, *over* or *through* as well as combinations e.g. *under+over*, etc.",
+ "dflt": "none",
+ "editType": "colorbars",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "under",
+ "over",
+ "through"
+ ],
+ "valType": "flaglist"
+ },
+ "role": "object",
+ "shadow": {
+ "description": "Sets the shape and color of the shadow behind text. *auto* places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.",
+ "dflt": "none",
+ "editType": "colorbars",
+ "valType": "string"
+ },
+ "size": {
+ "editType": "colorbars",
+ "min": 1,
+ "valType": "number"
+ },
+ "style": {
+ "description": "Sets whether a font should be styled with a normal or italic face from its family.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "italic"
+ ]
+ },
+ "textcase": {
+ "description": "Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "word caps",
+ "upper",
+ "lower"
+ ]
+ },
+ "variant": {
+ "description": "Sets the variant of the font.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "small-caps",
+ "all-small-caps",
+ "all-petite-caps",
+ "petite-caps",
+ "unicase"
+ ]
+ },
+ "weight": {
+ "description": "Sets the weight (or boldness) of the font.",
+ "dflt": "normal",
+ "editType": "colorbars",
+ "extras": [
+ "normal",
+ "bold"
+ ],
+ "max": 1000,
+ "min": 1,
+ "valType": "integer"
+ }
+ },
+ "role": "object",
+ "side": {
+ "description": "Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute.",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "right",
+ "top",
+ "bottom"
+ ]
+ },
+ "text": {
+ "description": "Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated.",
+ "editType": "colorbars",
+ "valType": "string"
+ }
+ },
+ "x": {
+ "description": "Sets the x position with respect to `xref` of the color bar (in plot fraction). When `xref` is *paper*, defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*. When `xref` is *container*, defaults to *1* when `orientation` is *v* and 0.5 when `orientation` is *h*. Must be between *0* and *1* if `xref` is *container* and between *-2* and *3* if `xref` is *paper*.",
+ "editType": "colorbars",
+ "valType": "number"
+ },
+ "xanchor": {
+ "description": "Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*.",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "left",
+ "center",
+ "right"
+ ]
+ },
+ "xpad": {
+ "description": "Sets the amount of padding (in px) along the x direction.",
+ "dflt": 10,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "number"
+ },
+ "xref": {
+ "description": "Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only.",
+ "dflt": "paper",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "container",
+ "paper"
+ ]
+ },
+ "y": {
+ "description": "Sets the y position with respect to `yref` of the color bar (in plot fraction). When `yref` is *paper*, defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*. When `yref` is *container*, defaults to 0.5 when `orientation` is *v* and 1 when `orientation` is *h*. Must be between *0* and *1* if `yref` is *container* and between *-2* and *3* if `yref` is *paper*.",
+ "editType": "colorbars",
+ "valType": "number"
+ },
+ "yanchor": {
+ "description": "Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*.",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "top",
+ "middle",
+ "bottom"
+ ]
+ },
+ "ypad": {
+ "description": "Sets the amount of padding (in px) along the y direction.",
+ "dflt": 10,
+ "editType": "colorbars",
+ "min": 0,
+ "valType": "number"
+ },
+ "yref": {
+ "description": "Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only.",
+ "dflt": "paper",
+ "editType": "colorbars",
+ "valType": "enumerated",
+ "values": [
+ "container",
+ "paper"
+ ]
+ }
+ },
+ "colors": {
+ "description": "Sets the color of each sector of this trace. If not specified, the default trace color set is used to pick the sector colors.",
+ "editType": "calc",
+ "valType": "data_array"
+ },
+ "colorscale": {
+ "description": "Sets the colorscale. Has an effect only if colors is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.",
+ "dflt": null,
+ "editType": "calc",
+ "impliedEdits": {
+ "autocolorscale": false
+ },
+ "valType": "colorscale"
+ },
+ "colorssrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `colors`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "cornerradius": {
+ "description": "Sets the maximum rounding of corners (in px).",
+ "dflt": 0,
+ "editType": "plot",
+ "min": 0,
+ "valType": "number"
+ },
+ "depthfade": {
+ "description": "Determines if the sector colors are faded towards the background from the leaves up to the headers. This option is unavailable when a `colorscale` is present, defaults to false when `marker.colors` is set, but otherwise defaults to true. When set to *reversed*, the fading direction is inverted, that is the top elements within hierarchy are drawn with fully saturated colors while the leaves are faded towards the background color.",
+ "editType": "style",
+ "valType": "enumerated",
+ "values": [
+ true,
+ false,
+ "reversed"
+ ]
+ },
+ "editType": "calc",
+ "line": {
+ "color": {
+ "arrayOk": true,
+ "description": "Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value.",
+ "dflt": null,
+ "editType": "style",
+ "valType": "color"
+ },
+ "colorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `color`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "editType": "calc",
+ "role": "object",
+ "width": {
+ "arrayOk": true,
+ "description": "Sets the width (in px) of the line enclosing each sector.",
+ "dflt": 1,
+ "editType": "style",
+ "min": 0,
+ "valType": "number"
+ },
+ "widthsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `width`.",
+ "editType": "none",
+ "valType": "string"
+ }
+ },
+ "pattern": {
+ "bgcolor": {
+ "arrayOk": true,
+ "description": "When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background.",
+ "editType": "style",
+ "valType": "color"
+ },
+ "bgcolorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `bgcolor`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "description": "Sets the pattern within the marker.",
+ "editType": "style",
+ "fgcolor": {
+ "arrayOk": true,
+ "description": "When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`.",
+ "editType": "style",
+ "valType": "color"
+ },
+ "fgcolorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `fgcolor`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "fgopacity": {
+ "description": "Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when `fillmode` is *overlay*. Otherwise, defaults to 1.",
+ "editType": "style",
+ "max": 1,
+ "min": 0,
+ "valType": "number"
+ },
+ "fillmode": {
+ "description": "Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`.",
+ "dflt": "replace",
+ "editType": "style",
+ "valType": "enumerated",
+ "values": [
+ "replace",
+ "overlay"
+ ]
+ },
+ "role": "object",
+ "shape": {
+ "arrayOk": true,
+ "description": "Sets the shape of the pattern fill. By default, no pattern is used for filling the area.",
+ "dflt": "",
+ "editType": "style",
+ "valType": "enumerated",
+ "values": [
+ "",
+ "/",
+ "\\",
+ "x",
+ "-",
+ "|",
+ "+",
+ "."
+ ]
+ },
+ "shapesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `shape`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "size": {
+ "arrayOk": true,
+ "description": "Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern.",
+ "dflt": 8,
+ "editType": "style",
+ "min": 0,
+ "valType": "number"
+ },
+ "sizesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `size`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "solidity": {
+ "arrayOk": true,
+ "description": "Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern.",
+ "dflt": 0.3,
+ "editType": "style",
+ "max": 1,
+ "min": 0,
+ "valType": "number"
+ },
+ "soliditysrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `solidity`.",
+ "editType": "none",
+ "valType": "string"
+ }
+ },
+ "reversescale": {
+ "description": "Reverses the color mapping if true. Has an effect only if colors is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.",
+ "dflt": false,
+ "editType": "plot",
+ "valType": "boolean"
+ },
+ "role": "object",
+ "showscale": {
+ "description": "Determines whether or not a colorbar is displayed for this trace. Has an effect only if colors is set to a numerical array.",
+ "dflt": false,
+ "editType": "calc",
+ "valType": "boolean"
+ }
+ },
+ "maxdepth": {
+ "description": "Sets the number of rendered sectors from any given `level`. Set `maxdepth` to *-1* to render all the levels in the hierarchy.",
+ "dflt": -1,
+ "editType": "plot",
+ "valType": "integer"
+ },
+ "meta": {
+ "arrayOk": true,
+ "description": "Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index.",
+ "editType": "plot",
+ "valType": "any"
+ },
+ "metasrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `meta`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "name": {
+ "description": "Sets the trace name. The trace name appears as the legend item and on hover.",
+ "editType": "style",
+ "valType": "string"
+ },
+ "opacity": {
+ "description": "Sets the opacity of the trace.",
+ "dflt": 1,
+ "editType": "style",
+ "max": 1,
+ "min": 0,
+ "valType": "number"
+ },
+ "outsidetextfont": {
+ "color": {
+ "arrayOk": true,
+ "editType": "plot",
+ "valType": "color"
+ },
+ "colorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `color`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "description": "Sets the font used for `textinfo` lying outside the sector. This option refers to the root of the hierarchy presented when viewing the root of a voronoi graph. Please note that if a hierarchy has multiple root nodes, this option won't have any effect and `insidetextfont` would be used.",
+ "editType": "plot",
+ "family": {
+ "arrayOk": true,
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
+ "editType": "plot",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ },
+ "familysrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `family`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "lineposition": {
+ "arrayOk": true,
+ "description": "Sets the kind of decoration line(s) with text, such as an *under*, *over* or *through* as well as combinations e.g. *under+over*, etc.",
+ "dflt": "none",
+ "editType": "plot",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "under",
+ "over",
+ "through"
+ ],
+ "valType": "flaglist"
+ },
+ "linepositionsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `lineposition`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "role": "object",
+ "shadow": {
+ "arrayOk": true,
+ "description": "Sets the shape and color of the shadow behind text. *auto* places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.",
+ "dflt": "none",
+ "editType": "plot",
+ "valType": "string"
+ },
+ "shadowsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `shadow`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "size": {
+ "arrayOk": true,
+ "editType": "plot",
+ "min": 1,
+ "valType": "number"
+ },
+ "sizesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `size`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "style": {
+ "arrayOk": true,
+ "description": "Sets whether a font should be styled with a normal or italic face from its family.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "italic"
+ ]
+ },
+ "stylesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `style`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "textcase": {
+ "arrayOk": true,
+ "description": "Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "word caps",
+ "upper",
+ "lower"
+ ]
+ },
+ "textcasesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `textcase`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "variant": {
+ "arrayOk": true,
+ "description": "Sets the variant of the font.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "small-caps",
+ "all-small-caps",
+ "all-petite-caps",
+ "petite-caps",
+ "unicase"
+ ]
+ },
+ "variantsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `variant`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "weight": {
+ "arrayOk": true,
+ "description": "Sets the weight (or boldness) of the font.",
+ "dflt": "normal",
+ "editType": "plot",
+ "extras": [
+ "normal",
+ "bold"
+ ],
+ "max": 1000,
+ "min": 1,
+ "valType": "integer"
+ },
+ "weightsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `weight`.",
+ "editType": "none",
+ "valType": "string"
+ }
+ },
+ "parents": {
+ "description": "Sets the parent sectors for each of the sectors. Empty string items '' are understood to reference the root node in the hierarchy. If `ids` is filled, `parents` items are understood to be \"ids\" themselves. When `ids` is not set, plotly attempts to find matching items in `labels`, but beware they must be unique.",
+ "editType": "calc",
+ "valType": "data_array"
+ },
+ "parentssrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `parents`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "pathbar": {
+ "edgeshape": {
+ "description": "Determines which shape is used for edges between `barpath` labels.",
+ "dflt": ">",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ ">",
+ "<",
+ "|",
+ "/",
+ "\\"
+ ]
+ },
+ "editType": "calc",
+ "role": "object",
+ "side": {
+ "description": "Determines on which side of the the treemap the `pathbar` should be presented.",
+ "dflt": "top",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "top",
+ "bottom"
+ ]
+ },
+ "textfont": {
+ "color": {
+ "arrayOk": true,
+ "editType": "plot",
+ "valType": "color"
+ },
+ "colorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `color`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "description": "Sets the font used inside `pathbar`.",
+ "editType": "plot",
+ "family": {
+ "arrayOk": true,
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
+ "editType": "plot",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ },
+ "familysrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `family`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "lineposition": {
+ "arrayOk": true,
+ "description": "Sets the kind of decoration line(s) with text, such as an *under*, *over* or *through* as well as combinations e.g. *under+over*, etc.",
+ "dflt": "none",
+ "editType": "plot",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "under",
+ "over",
+ "through"
+ ],
+ "valType": "flaglist"
+ },
+ "linepositionsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `lineposition`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "role": "object",
+ "shadow": {
+ "arrayOk": true,
+ "description": "Sets the shape and color of the shadow behind text. *auto* places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.",
+ "dflt": "none",
+ "editType": "plot",
+ "valType": "string"
+ },
+ "shadowsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `shadow`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "size": {
+ "arrayOk": true,
+ "editType": "plot",
+ "min": 1,
+ "valType": "number"
+ },
+ "sizesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `size`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "style": {
+ "arrayOk": true,
+ "description": "Sets whether a font should be styled with a normal or italic face from its family.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "italic"
+ ]
+ },
+ "stylesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `style`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "textcase": {
+ "arrayOk": true,
+ "description": "Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "word caps",
+ "upper",
+ "lower"
+ ]
+ },
+ "textcasesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `textcase`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "variant": {
+ "arrayOk": true,
+ "description": "Sets the variant of the font.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "small-caps",
+ "all-small-caps",
+ "all-petite-caps",
+ "petite-caps",
+ "unicase"
+ ]
+ },
+ "variantsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `variant`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "weight": {
+ "arrayOk": true,
+ "description": "Sets the weight (or boldness) of the font.",
+ "dflt": "normal",
+ "editType": "plot",
+ "extras": [
+ "normal",
+ "bold"
+ ],
+ "max": 1000,
+ "min": 1,
+ "valType": "integer"
+ },
+ "weightsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `weight`.",
+ "editType": "none",
+ "valType": "string"
+ }
+ },
+ "thickness": {
+ "description": "Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used with 3 pixles extra padding on each side.",
+ "editType": "plot",
+ "min": 12,
+ "valType": "number"
+ },
+ "visible": {
+ "description": "Determines if the path bar is drawn i.e. outside the trace `domain` and with one pixel gap.",
+ "dflt": true,
+ "editType": "plot",
+ "valType": "boolean"
+ }
+ },
+ "root": {
+ "color": {
+ "description": "sets the color of the root node for a sunburst/treemap/voronoi/icicle trace. this has no effect when a colorscale is used to set the markers.",
+ "dflt": "rgba(0,0,0,0)",
+ "editType": "calc",
+ "valType": "color"
+ },
+ "editType": "calc",
+ "role": "object"
+ },
+ "sort": {
+ "description": "Determines whether or not the sectors are reordered from largest to smallest.",
+ "dflt": true,
+ "editType": "calc",
+ "valType": "boolean"
+ },
+ "stream": {
+ "editType": "calc",
+ "maxpoints": {
+ "description": "Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to *50*, only the newest 50 points will be displayed on the plot.",
+ "dflt": 500,
+ "editType": "calc",
+ "max": 10000,
+ "min": 0,
+ "valType": "number"
+ },
+ "role": "object",
+ "token": {
+ "description": "The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details.",
+ "editType": "calc",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ }
+ },
+ "text": {
+ "description": "Sets text elements associated with each sector. If trace `textinfo` contains a *text* flag, these elements will be seen on the chart. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels.",
+ "editType": "plot",
+ "valType": "data_array"
+ },
+ "textfont": {
+ "color": {
+ "arrayOk": true,
+ "editType": "plot",
+ "valType": "color"
+ },
+ "colorsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `color`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "description": "Sets the font used for `textinfo`.",
+ "editType": "plot",
+ "family": {
+ "arrayOk": true,
+ "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
+ "editType": "plot",
+ "noBlank": true,
+ "strict": true,
+ "valType": "string"
+ },
+ "familysrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `family`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "lineposition": {
+ "arrayOk": true,
+ "description": "Sets the kind of decoration line(s) with text, such as an *under*, *over* or *through* as well as combinations e.g. *under+over*, etc.",
+ "dflt": "none",
+ "editType": "plot",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "under",
+ "over",
+ "through"
+ ],
+ "valType": "flaglist"
+ },
+ "linepositionsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `lineposition`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "role": "object",
+ "shadow": {
+ "arrayOk": true,
+ "description": "Sets the shape and color of the shadow behind text. *auto* places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.",
+ "dflt": "none",
+ "editType": "plot",
+ "valType": "string"
+ },
+ "shadowsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `shadow`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "size": {
+ "arrayOk": true,
+ "editType": "plot",
+ "min": 1,
+ "valType": "number"
+ },
+ "sizesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `size`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "style": {
+ "arrayOk": true,
+ "description": "Sets whether a font should be styled with a normal or italic face from its family.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "italic"
+ ]
+ },
+ "stylesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `style`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "textcase": {
+ "arrayOk": true,
+ "description": "Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "word caps",
+ "upper",
+ "lower"
+ ]
+ },
+ "textcasesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `textcase`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "variant": {
+ "arrayOk": true,
+ "description": "Sets the variant of the font.",
+ "dflt": "normal",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "normal",
+ "small-caps",
+ "all-small-caps",
+ "all-petite-caps",
+ "petite-caps",
+ "unicase"
+ ]
+ },
+ "variantsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `variant`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "weight": {
+ "arrayOk": true,
+ "description": "Sets the weight (or boldness) of the font.",
+ "dflt": "normal",
+ "editType": "plot",
+ "extras": [
+ "normal",
+ "bold"
+ ],
+ "max": 1000,
+ "min": 1,
+ "valType": "integer"
+ },
+ "weightsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `weight`.",
+ "editType": "none",
+ "valType": "string"
+ }
+ },
+ "textinfo": {
+ "description": "Determines which trace information appear on the graph.",
+ "editType": "plot",
+ "extras": [
+ "none"
+ ],
+ "flags": [
+ "label",
+ "text",
+ "value",
+ "current path",
+ "percent root",
+ "percent entry",
+ "percent parent"
+ ],
+ "valType": "flaglist"
+ },
+ "textsrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `text`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "texttemplate": {
+ "arrayOk": true,
+ "description": "Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`.",
+ "dflt": "",
+ "editType": "plot",
+ "valType": "string"
+ },
+ "texttemplatesrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `texttemplate`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "tiling": {
+ "aspectratio": {
+ "description": "Determines aspect ratio between width and height of shape Defalts to 0 when `tiling.shape` is set to *rectangle*, *ellipse* or *triangle*. Defalts to 1 when `tiling.shape` is set to *square*, *circle*, *pentagon*, *hexagon*, etc.",
+ "editType": "plot",
+ "min": 0,
+ "valType": "number"
+ },
+ "editType": "calc",
+ "pad": {
+ "description": "Sets the inner padding (in px) for each level of the hierarchy.",
+ "dflt": 2,
+ "editType": "plot",
+ "min": 0,
+ "valType": "number"
+ },
+ "role": "object",
+ "seed": {
+ "description": "Determines seed which controls creation of identical or different grid representations.",
+ "dflt": 0,
+ "editType": "plot",
+ "max": 100,
+ "min": 0,
+ "valType": "integer"
+ },
+ "shape": {
+ "description": "Determines aspect ratio between width and height of shape",
+ "dflt": "hexagon",
+ "editType": "plot",
+ "valType": "enumerated",
+ "values": [
+ "circle",
+ "ellipse",
+ "rectangle",
+ "triangle",
+ "square",
+ "pentagon",
+ "hexagon",
+ "heptagon",
+ "octagon",
+ "nonagon",
+ "decagon",
+ "undecagon",
+ "dodecagon"
+ ]
+ }
+ },
+ "transforms": {
+ "items": {
+ "transform": {
+ "description": "WARNING: All transforms are deprecated and may be removed from the API in next major version. An array of operations that manipulate the trace data, for example filtering or sorting the data arrays.",
+ "editType": "calc",
+ "role": "object"
+ }
+ },
+ "role": "object"
+ },
+ "type": "voronoi",
+ "uid": {
+ "anim": true,
+ "description": "Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.",
+ "editType": "plot",
+ "valType": "string"
+ },
+ "uirevision": {
+ "description": "Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.",
+ "editType": "none",
+ "valType": "any"
+ },
+ "values": {
+ "description": "Sets the values associated with each of the sectors. Use with `branchvalues` to determine how the values are summed.",
+ "editType": "calc",
+ "valType": "data_array"
+ },
+ "valuessrc": {
+ "description": "Sets the source reference on Chart Studio Cloud for `values`.",
+ "editType": "none",
+ "valType": "string"
+ },
+ "visible": {
+ "description": "Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).",
+ "dflt": true,
+ "editType": "calc",
+ "valType": "enumerated",
+ "values": [
+ true,
+ false,
+ "legendonly"
+ ]
+ }
+ },
+ "categories": [],
+ "layoutAttributes": {
+ "extendvoronoicolors": {
+ "description": "If `true`, the voronoi slice colors (whether given by `voronoicolorway` or inherited from `colorway`) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker. This is intended to reduce the likelihood of reusing the same color when you have many slices, but you can set `false` to disable. Colors provided in the trace, using `marker.colors`, are never extended.",
+ "dflt": true,
+ "editType": "calc",
+ "valType": "boolean"
+ },
+ "voronoicolorway": {
+ "description": "Sets the default voronoi slice colors. Defaults to the main `colorway` used for trace colors. If you specify a new list here it can still be extended with lighter and darker colors, see `extendvoronoicolors`.",
+ "editType": "calc",
+ "valType": "colorlist"
+ }
+ },
+ "meta": {
+ "description": "Visualize hierarchal data from leaves (and/or outer branches) towards root with rectangles. The voronoi sectors are determined by the entries in *labels* or *ids* and in *parents*."
+ },
+ "type": "voronoi"
+ },
"waterfall": {
"animatable": false,
"attributes": {
diff --git a/webpack.config.js b/webpack.config.js
index f63b1654d1f..7f754d8ca58 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -22,7 +22,7 @@ module.exports = {
}
}, {
test: /\.js$/,
- include: /node_modules[\\\/](buffer|d3-color|d3-interpolate|is-mobile)[\\\/]/,
+ include: /node_modules[\\\/](buffer|d3-color|d3-interpolate|is-mobile|round-polygon)[\\\/]/,
use: {
loader: 'babel-loader',
options: {