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

Skip to content

Commit 465b45b

Browse files
committed
use overrideAll in table attributes
1 parent 3cab51d commit 465b45b

File tree

1 file changed

+3
-29
lines changed

1 file changed

+3
-29
lines changed

src/traces/table/attributes.js

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010

1111
var annAttrs = require('../../components/annotations/attributes');
1212
var extendFlat = require('../../lib/extend').extendFlat;
13+
var overrideAll = require('../../plot_api/edit_types').overrideAll;
1314

14-
module.exports = {
15-
15+
module.exports = overrideAll({
1616
domain: {
1717
x: {
1818
valType: 'info_array',
19-
editType: 'calc',
2019
role: 'info',
2120
items: [
2221
{valType: 'number', min: 0, max: 1},
@@ -30,7 +29,6 @@ module.exports = {
3029
},
3130
y: {
3231
valType: 'info_array',
33-
editType: 'calc',
3432
role: 'info',
3533
items: [
3634
{valType: 'number', min: 0, max: 1},
@@ -46,7 +44,6 @@ module.exports = {
4644

4745
columnwidth: {
4846
valType: 'number',
49-
editType: 'calc',
5047
arrayOk: true,
5148
dflt: null,
5249
role: 'style',
@@ -55,7 +52,6 @@ module.exports = {
5552

5653
columnorder: {
5754
valType: 'data_array',
58-
editType: 'calc',
5955
role: 'info',
6056
description: [
6157
'Specifies the rendered order of the data columns; for example, a value `2` at position `0`',
@@ -68,7 +64,6 @@ module.exports = {
6864

6965
values: {
7066
valType: 'data_array',
71-
editType: 'calc',
7267
role: 'info',
7368
dflt: [],
7469
description: [
@@ -80,7 +75,6 @@ module.exports = {
8075

8176
format: {
8277
valType: 'data_array',
83-
editType: 'calc',
8478
role: 'info',
8579
dflt: [],
8680
description: [
@@ -92,7 +86,6 @@ module.exports = {
9286

9387
prefix: {
9488
valType: 'string',
95-
editType: 'calc',
9689
arrayOk: true,
9790
dflt: null,
9891
role: 'style',
@@ -101,7 +94,6 @@ module.exports = {
10194

10295
suffix: {
10396
valType: 'string',
104-
editType: 'calc',
10597
arrayOk: true,
10698
dflt: null,
10799
role: 'style',
@@ -110,7 +102,6 @@ module.exports = {
110102

111103
height: {
112104
valType: 'number',
113-
editType: 'calc',
114105
dflt: 28,
115106
role: 'style',
116107
description: 'The height of cells.'
@@ -121,13 +112,11 @@ module.exports = {
121112
line: {
122113
width: {
123114
valType: 'number',
124-
editType: 'calc',
125115
arrayOk: true,
126116
role: 'style'
127117
},
128118
color: {
129119
valType: 'color',
130-
editType: 'calc',
131120
arrayOk: true,
132121
role: 'style'
133122
}
@@ -136,7 +125,6 @@ module.exports = {
136125
fill: {
137126
color: {
138127
valType: 'color',
139-
editType: 'calc',
140128
arrayOk: true,
141129
dflt: 'white',
142130
role: 'style',
@@ -150,7 +138,6 @@ module.exports = {
150138
font: {
151139
family: {
152140
valType: 'string',
153-
editType: 'calc',
154141
arrayOk: true,
155142
role: 'style',
156143
noBlank: true,
@@ -170,13 +157,11 @@ module.exports = {
170157
},
171158
size: {
172159
valType: 'number',
173-
editType: 'calc',
174160
arrayOk: true,
175161
role: 'style'
176162
},
177163
color: {
178164
valType: 'color',
179-
editType: 'calc',
180165
arrayOk: true,
181166
role: 'style'
182167
}
@@ -187,7 +172,6 @@ module.exports = {
187172

188173
values: {
189174
valType: 'data_array',
190-
editType: 'calc',
191175
role: 'info',
192176
dflt: [],
193177
description: [
@@ -199,7 +183,6 @@ module.exports = {
199183

200184
format: {
201185
valType: 'data_array',
202-
editType: 'calc',
203186
role: 'info',
204187
dflt: [],
205188
description: [
@@ -211,7 +194,6 @@ module.exports = {
211194

212195
prefix: {
213196
valType: 'string',
214-
editType: 'calc',
215197
arrayOk: true,
216198
dflt: null,
217199
role: 'style',
@@ -220,7 +202,6 @@ module.exports = {
220202

221203
suffix: {
222204
valType: 'string',
223-
editType: 'calc',
224205
arrayOk: true,
225206
dflt: null,
226207
role: 'style',
@@ -229,7 +210,6 @@ module.exports = {
229210

230211
height: {
231212
valType: 'number',
232-
editType: 'calc',
233213
dflt: 20,
234214
role: 'style',
235215
description: 'The height of cells.'
@@ -240,13 +220,11 @@ module.exports = {
240220
line: {
241221
width: {
242222
valType: 'number',
243-
editType: 'calc',
244223
arrayOk: true,
245224
role: 'style'
246225
},
247226
color: {
248227
valType: 'color',
249-
editType: 'calc',
250228
arrayOk: true,
251229
role: 'style'
252230
}
@@ -255,7 +233,6 @@ module.exports = {
255233
fill: {
256234
color: {
257235
valType: 'color',
258-
editType: 'calc',
259236
arrayOk: true,
260237
role: 'style',
261238
dflt: 'white',
@@ -269,7 +246,6 @@ module.exports = {
269246
font: {
270247
family: {
271248
valType: 'string',
272-
editType: 'calc',
273249
arrayOk: true,
274250
role: 'style',
275251
noBlank: true,
@@ -289,16 +265,14 @@ module.exports = {
289265
},
290266
size: {
291267
valType: 'number',
292-
editType: 'calc',
293268
arrayOk: true,
294269
role: 'style'
295270
},
296271
color: {
297272
valType: 'color',
298-
editType: 'calc',
299273
arrayOk: true,
300274
role: 'style'
301275
}
302276
}
303277
}
304-
};
278+
}, 'calc', 'from-root');

0 commit comments

Comments
 (0)