Skip to content

Commit 31f6252

Browse files
committed
rename
1 parent a8cca6c commit 31f6252

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

src/traces/voronoi/attributes.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ module.exports = {
3636
dflt: 'squarify',
3737
editType: 'plot',
3838
description: [
39-
'Determines d3 treemap solver.',
40-
'For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling'
39+
'Determines d3 voronoi solver.',
40+
'For more info please refer to https://github.com/d3/d3-hierarchy#voronoi-tiling'
4141
].join(' ')
4242
},
4343

@@ -54,7 +54,7 @@ module.exports = {
5454
'is not implied by the ratio; for example, a ratio of two will attempt',
5555
'to produce a mixture of rectangles whose width:height ratio is either 2:1 or 1:2.',
5656
'When using *squarify*, unlike d3 which uses the Golden Ratio i.e. 1.618034,',
57-
'Plotly applies 1 to increase squares in treemap layouts.'
57+
'Plotly applies 1 to increase squares in voronoi layouts.'
5858
].join(' ')
5959
},
6060

@@ -183,7 +183,7 @@ module.exports = {
183183
dflt: 'top',
184184
editType: 'plot',
185185
description: [
186-
'Determines on which side of the the treemap the',
186+
'Determines on which side of the the voronoi the',
187187
'`pathbar` should be presented.'
188188
].join(' ')
189189
},
@@ -240,7 +240,7 @@ module.exports = {
240240
description: [
241241
'Sets the font used for `textinfo` lying outside the sector.',
242242
'This option refers to the root of the hierarchy',
243-
'presented on top left corner of a treemap graph.',
243+
'presented on top left corner of a voronoi graph.',
244244
'Please note that if a hierarchy has multiple root nodes,',
245245
'this option won\'t have any effect and `insidetextfont` would be used.'
246246
].join(' ')
@@ -262,5 +262,5 @@ module.exports = {
262262
sort: pieAttrs.sort,
263263
root: sunburstAttrs.root,
264264

265-
domain: domainAttrs({name: 'treemap', trace: true, editType: 'calc'}),
265+
domain: domainAttrs({name: 'voronoi', trace: true, editType: 'calc'}),
266266
};

src/traces/voronoi/base_plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var plots = require('../../plots/plots');
44

5-
exports.name = 'treemap';
5+
exports.name = 'voronoi';
66

77
exports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {
88
plots.plotBasePlot(exports.name, gd, traces, transitionOpts, makeOnCompleteCallback);

src/traces/voronoi/calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ exports.calc = function(gd, trace) {
77
};
88

99
exports.crossTraceCalc = function(gd) {
10-
return calc._runCrossTraceCalc('treemap', gd);
10+
return calc._runCrossTraceCalc('voronoi', gd);
1111
};

src/traces/voronoi/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
9595
};
9696

9797
if(hasPathbar) {
98-
// This works even for multi-line labels as treemap pathbar trim out line breaks
98+
// This works even for multi-line labels as voronoi pathbar trim out line breaks
9999
coerce('pathbar.thickness', traceOut.pathbar.textfont.size + 2 * TEXTPAD);
100100

101101
coerce('pathbar.side');

src/traces/voronoi/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = {
44
moduleType: 'trace',
5-
name: 'treemap',
5+
name: 'voronoi',
66
basePlotModule: require('./base_plot'),
77
categories: [],
88
animatable: true,
@@ -23,7 +23,7 @@ module.exports = {
2323
meta: {
2424
description: [
2525
'Visualize hierarchal data from leaves (and/or outer branches) towards root',
26-
'with rectangles. The treemap sectors are determined by the entries in',
26+
'with rectangles. The voronoi sectors are determined by the entries in',
2727
'*labels* or *ids* and in *parents*.'
2828
].join(' ')
2929
}

src/traces/voronoi/layout_attributes.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
'use strict';
22

33
module.exports = {
4-
treemapcolorway: {
4+
voronoicolorway: {
55
valType: 'colorlist',
66
editType: 'calc',
77
description: [
8-
'Sets the default treemap slice colors. Defaults to the main',
8+
'Sets the default voronoi slice colors. Defaults to the main',
99
'`colorway` used for trace colors. If you specify a new',
1010
'list here it can still be extended with lighter and darker',
11-
'colors, see `extendtreemapcolors`.'
11+
'colors, see `extendvoronoicolors`.'
1212
].join(' ')
1313
},
14-
extendtreemapcolors: {
14+
extendvoronoicolors: {
1515
valType: 'boolean',
1616
dflt: true,
1717
editType: 'calc',
1818
description: [
19-
'If `true`, the treemap slice colors (whether given by `treemapcolorway` or',
19+
'If `true`, the voronoi slice colors (whether given by `voronoicolorway` or',
2020
'inherited from `colorway`) will be extended to three times its',
2121
'original length by first repeating every color 20% lighter then',
2222
'each color 20% darker. This is intended to reduce the likelihood',

src/traces/voronoi/layout_defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
77
function coerce(attr, dflt) {
88
return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt);
99
}
10-
coerce('treemapcolorway', layoutOut.colorway);
11-
coerce('extendtreemapcolors');
10+
coerce('voronoicolorway', layoutOut.colorway);
11+
coerce('extendvoronoicolors');
1212
};

src/traces/voronoi/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var drawDescendants = require('./draw_descendants');
55

66
module.exports = function _plot(gd, cdmodule, transitionOpts, makeOnCompleteCallback) {
77
return draw(gd, cdmodule, transitionOpts, makeOnCompleteCallback, {
8-
type: 'treemap',
8+
type: 'voronoi',
99
drawDescendants: drawDescendants
1010
});
1111
};

src/traces/voronoi/plot_one.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
207207
};
208208

209209
// Note that `pad` is just an integer for `icicle`` traces where
210-
// `pad` is a hashmap for treemap: pad.t, pad.b, pad.l, and pad.r
210+
// `pad` is a hashmap for voronoi: pad.t, pad.b, pad.l, and pad.r
211211
var pad = trace[isIcicle ? 'tiling' : 'marker'].pad;
212212

213213
var hasFlag = function(f) { return trace.textposition.indexOf(f) !== -1; };

src/traces/voronoi/style.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ var resizeText = require('../bar/uniform_text').resizeText;
88
var fillOne = require('../sunburst/fill_one');
99

1010
function style(gd) {
11-
var s = gd._fullLayout._treemaplayer.selectAll('.trace');
12-
resizeText(gd, s, 'treemap');
11+
var s = gd._fullLayout._voronoilayer.selectAll('.trace');
12+
resizeText(gd, s, 'voronoi');
1313

1414
s.each(function(cd) {
1515
var gTrace = d3.select(this);

0 commit comments

Comments
 (0)