10
10
11
11
var annAttrs = require ( '../../components/annotations/attributes' ) ;
12
12
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
13
+ var overrideAll = require ( '../../plot_api/edit_types' ) . overrideAll ;
13
14
14
- module . exports = {
15
-
15
+ module . exports = overrideAll ( {
16
16
domain : {
17
17
x : {
18
18
valType : 'info_array' ,
19
- editType : 'calc' ,
20
19
role : 'info' ,
21
20
items : [
22
21
{ valType : 'number' , min : 0 , max : 1 } ,
@@ -30,7 +29,6 @@ module.exports = {
30
29
} ,
31
30
y : {
32
31
valType : 'info_array' ,
33
- editType : 'calc' ,
34
32
role : 'info' ,
35
33
items : [
36
34
{ valType : 'number' , min : 0 , max : 1 } ,
@@ -46,7 +44,6 @@ module.exports = {
46
44
47
45
columnwidth : {
48
46
valType : 'number' ,
49
- editType : 'calc' ,
50
47
arrayOk : true ,
51
48
dflt : null ,
52
49
role : 'style' ,
@@ -55,7 +52,6 @@ module.exports = {
55
52
56
53
columnorder : {
57
54
valType : 'data_array' ,
58
- editType : 'calc' ,
59
55
role : 'info' ,
60
56
description : [
61
57
'Specifies the rendered order of the data columns; for example, a value `2` at position `0`' ,
@@ -68,7 +64,6 @@ module.exports = {
68
64
69
65
values : {
70
66
valType : 'data_array' ,
71
- editType : 'calc' ,
72
67
role : 'info' ,
73
68
dflt : [ ] ,
74
69
description : [
@@ -80,7 +75,6 @@ module.exports = {
80
75
81
76
format : {
82
77
valType : 'data_array' ,
83
- editType : 'calc' ,
84
78
role : 'info' ,
85
79
dflt : [ ] ,
86
80
description : [
@@ -92,7 +86,6 @@ module.exports = {
92
86
93
87
prefix : {
94
88
valType : 'string' ,
95
- editType : 'calc' ,
96
89
arrayOk : true ,
97
90
dflt : null ,
98
91
role : 'style' ,
@@ -101,7 +94,6 @@ module.exports = {
101
94
102
95
suffix : {
103
96
valType : 'string' ,
104
- editType : 'calc' ,
105
97
arrayOk : true ,
106
98
dflt : null ,
107
99
role : 'style' ,
@@ -110,7 +102,6 @@ module.exports = {
110
102
111
103
height : {
112
104
valType : 'number' ,
113
- editType : 'calc' ,
114
105
dflt : 28 ,
115
106
role : 'style' ,
116
107
description : 'The height of cells.'
@@ -121,13 +112,11 @@ module.exports = {
121
112
line : {
122
113
width : {
123
114
valType : 'number' ,
124
- editType : 'calc' ,
125
115
arrayOk : true ,
126
116
role : 'style'
127
117
} ,
128
118
color : {
129
119
valType : 'color' ,
130
- editType : 'calc' ,
131
120
arrayOk : true ,
132
121
role : 'style'
133
122
}
@@ -136,7 +125,6 @@ module.exports = {
136
125
fill : {
137
126
color : {
138
127
valType : 'color' ,
139
- editType : 'calc' ,
140
128
arrayOk : true ,
141
129
dflt : 'white' ,
142
130
role : 'style' ,
@@ -150,7 +138,6 @@ module.exports = {
150
138
font : {
151
139
family : {
152
140
valType : 'string' ,
153
- editType : 'calc' ,
154
141
arrayOk : true ,
155
142
role : 'style' ,
156
143
noBlank : true ,
@@ -170,13 +157,11 @@ module.exports = {
170
157
} ,
171
158
size : {
172
159
valType : 'number' ,
173
- editType : 'calc' ,
174
160
arrayOk : true ,
175
161
role : 'style'
176
162
} ,
177
163
color : {
178
164
valType : 'color' ,
179
- editType : 'calc' ,
180
165
arrayOk : true ,
181
166
role : 'style'
182
167
}
@@ -187,7 +172,6 @@ module.exports = {
187
172
188
173
values : {
189
174
valType : 'data_array' ,
190
- editType : 'calc' ,
191
175
role : 'info' ,
192
176
dflt : [ ] ,
193
177
description : [
@@ -199,7 +183,6 @@ module.exports = {
199
183
200
184
format : {
201
185
valType : 'data_array' ,
202
- editType : 'calc' ,
203
186
role : 'info' ,
204
187
dflt : [ ] ,
205
188
description : [
@@ -211,7 +194,6 @@ module.exports = {
211
194
212
195
prefix : {
213
196
valType : 'string' ,
214
- editType : 'calc' ,
215
197
arrayOk : true ,
216
198
dflt : null ,
217
199
role : 'style' ,
@@ -220,7 +202,6 @@ module.exports = {
220
202
221
203
suffix : {
222
204
valType : 'string' ,
223
- editType : 'calc' ,
224
205
arrayOk : true ,
225
206
dflt : null ,
226
207
role : 'style' ,
@@ -229,7 +210,6 @@ module.exports = {
229
210
230
211
height : {
231
212
valType : 'number' ,
232
- editType : 'calc' ,
233
213
dflt : 20 ,
234
214
role : 'style' ,
235
215
description : 'The height of cells.'
@@ -240,13 +220,11 @@ module.exports = {
240
220
line : {
241
221
width : {
242
222
valType : 'number' ,
243
- editType : 'calc' ,
244
223
arrayOk : true ,
245
224
role : 'style'
246
225
} ,
247
226
color : {
248
227
valType : 'color' ,
249
- editType : 'calc' ,
250
228
arrayOk : true ,
251
229
role : 'style'
252
230
}
@@ -255,7 +233,6 @@ module.exports = {
255
233
fill : {
256
234
color : {
257
235
valType : 'color' ,
258
- editType : 'calc' ,
259
236
arrayOk : true ,
260
237
role : 'style' ,
261
238
dflt : 'white' ,
@@ -269,7 +246,6 @@ module.exports = {
269
246
font : {
270
247
family : {
271
248
valType : 'string' ,
272
- editType : 'calc' ,
273
249
arrayOk : true ,
274
250
role : 'style' ,
275
251
noBlank : true ,
@@ -289,16 +265,14 @@ module.exports = {
289
265
} ,
290
266
size : {
291
267
valType : 'number' ,
292
- editType : 'calc' ,
293
268
arrayOk : true ,
294
269
role : 'style'
295
270
} ,
296
271
color : {
297
272
valType : 'color' ,
298
- editType : 'calc' ,
299
273
arrayOk : true ,
300
274
role : 'style'
301
275
}
302
276
}
303
277
}
304
- } ;
278
+ } , 'calc' , 'from-root' ) ;
0 commit comments