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

Skip to content

Commit 9c90e0a

Browse files
committed
make contour and heatmap have distinct attribute objects
1 parent de92572 commit 9c90e0a

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

src/traces/contour/attributes.js

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,35 @@
77
*/
88

99

10+
var heatmapAttrs = require('../heatmap/attributes');
1011
var scatterAttrs = require('../scatter/attributes');
1112
var extendFlat = require('../../lib/extend').extendFlat;
1213

1314
var scatterLineAttrs = scatterAttrs.line;
1415

1516
module.exports = {
16-
_composedModules: { // composed module coupling
17-
'contour': 'Heatmap',
18-
'histogram2dcontour': 'Heatmap'
19-
},
17+
z: heatmapAttrs.z,
18+
x: heatmapAttrs.x,
19+
x0: heatmapAttrs.x0,
20+
dx: heatmapAttrs.dx,
21+
y: heatmapAttrs.y,
22+
y0: heatmapAttrs.y0,
23+
dy: heatmapAttrs.dy,
24+
text: heatmapAttrs.text,
25+
transpose: heatmapAttrs.transpose,
26+
xtype: heatmapAttrs.xtype,
27+
ytype: heatmapAttrs.ytype,
28+
29+
zauto: heatmapAttrs.zauto,
30+
zmin: heatmapAttrs.zmin,
31+
zmax: heatmapAttrs.zmax,
32+
colorscale: heatmapAttrs.colorscale,
33+
autocolorscale: heatmapAttrs.autocolorscale,
34+
reversescale: heatmapAttrs.reversescale,
35+
showscale: heatmapAttrs.showscale,
36+
37+
connectgaps: heatmapAttrs.connectgaps,
38+
2039
autocontour: {
2140
valType: 'boolean',
2241
dflt: true,
@@ -34,6 +53,7 @@ module.exports = {
3453
role: 'style',
3554
description: 'Sets the number of contour levels.'
3655
},
56+
3757
contours: {
3858
start: {
3959
valType: 'number',
@@ -77,6 +97,7 @@ module.exports = {
7797
].join(' ')
7898
}
7999
},
100+
80101
line: {
81102
color: extendFlat({}, scatterLineAttrs.color, {
82103
description: [
@@ -92,6 +113,9 @@ module.exports = {
92113
'where *0* corresponds to no smoothing.'
93114
].join(' ')
94115
})
116+
},
117+
118+
_nestedModules: {
119+
'colorbar': 'Colorbar'
95120
}
96121
};
97-

0 commit comments

Comments
 (0)