Skip to content

Commit e96c3c4

Browse files
committed
adding editType (for now, conservatively)
1 parent 7186527 commit e96c3c4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/traces/table/attributes.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = {
1616
domain: {
1717
x: {
1818
valType: 'info_array',
19+
editType: 'calc',
1920
role: 'info',
2021
items: [
2122
{valType: 'number', min: 0, max: 1},
@@ -29,6 +30,7 @@ module.exports = {
2930
},
3031
y: {
3132
valType: 'info_array',
33+
editType: 'calc',
3234
role: 'info',
3335
items: [
3436
{valType: 'number', min: 0, max: 1},
@@ -44,6 +46,7 @@ module.exports = {
4446

4547
columnwidth: {
4648
valType: 'number',
49+
editType: 'calc',
4750
arrayOk: true,
4851
dflt: null,
4952
role: 'style',
@@ -52,6 +55,7 @@ module.exports = {
5255

5356
columnorder: {
5457
valType: 'data_array',
58+
editType: 'calc',
5559
role: 'info',
5660
description: [
5761
'Specifies the rendered order of the data columns; for example, a value `2` at position `0`',
@@ -64,6 +68,7 @@ module.exports = {
6468

6569
values: {
6670
valType: 'data_array',
71+
editType: 'calc',
6772
role: 'info',
6873
dflt: [],
6974
description: [
@@ -75,6 +80,7 @@ module.exports = {
7580

7681
format: {
7782
valType: 'data_array',
83+
editType: 'calc',
7884
role: 'info',
7985
dflt: [],
8086
description: [
@@ -86,6 +92,7 @@ module.exports = {
8692

8793
prefix: {
8894
valType: 'string',
95+
editType: 'calc',
8996
arrayOk: true,
9097
dflt: null,
9198
role: 'style',
@@ -94,6 +101,7 @@ module.exports = {
94101

95102
suffix: {
96103
valType: 'string',
104+
editType: 'calc',
97105
arrayOk: true,
98106
dflt: null,
99107
role: 'style',
@@ -102,6 +110,7 @@ module.exports = {
102110

103111
height: {
104112
valType: 'number',
113+
editType: 'calc',
105114
dflt: 28,
106115
role: 'style',
107116
description: 'The height of cells.'
@@ -112,11 +121,13 @@ module.exports = {
112121
line: {
113122
width: {
114123
valType: 'number',
124+
editType: 'calc',
115125
arrayOk: true,
116126
role: 'style'
117127
},
118128
color: {
119129
valType: 'color',
130+
editType: 'calc',
120131
arrayOk: true,
121132
role: 'style'
122133
}
@@ -125,6 +136,7 @@ module.exports = {
125136
fill: {
126137
color: {
127138
valType: 'color',
139+
editType: 'calc',
128140
arrayOk: true,
129141
role: 'style',
130142
description: [
@@ -137,6 +149,7 @@ module.exports = {
137149
font: {
138150
family: {
139151
valType: 'string',
152+
editType: 'calc',
140153
arrayOk: true,
141154
role: 'style',
142155
noBlank: true,
@@ -156,11 +169,13 @@ module.exports = {
156169
},
157170
size: {
158171
valType: 'number',
172+
editType: 'calc',
159173
arrayOk: true,
160174
role: 'style'
161175
},
162176
color: {
163177
valType: 'color',
178+
editType: 'calc',
164179
arrayOk: true,
165180
role: 'style'
166181
}
@@ -171,6 +186,7 @@ module.exports = {
171186

172187
values: {
173188
valType: 'data_array',
189+
editType: 'calc',
174190
role: 'info',
175191
dflt: [],
176192
description: [
@@ -182,6 +198,7 @@ module.exports = {
182198

183199
format: {
184200
valType: 'data_array',
201+
editType: 'calc',
185202
role: 'info',
186203
dflt: [],
187204
description: [
@@ -193,6 +210,7 @@ module.exports = {
193210

194211
prefix: {
195212
valType: 'string',
213+
editType: 'calc',
196214
arrayOk: true,
197215
dflt: null,
198216
role: 'style',
@@ -201,6 +219,7 @@ module.exports = {
201219

202220
suffix: {
203221
valType: 'string',
222+
editType: 'calc',
204223
arrayOk: true,
205224
dflt: null,
206225
role: 'style',
@@ -209,6 +228,7 @@ module.exports = {
209228

210229
height: {
211230
valType: 'number',
231+
editType: 'calc',
212232
dflt: 20,
213233
role: 'style',
214234
description: 'The height of cells.'
@@ -219,11 +239,13 @@ module.exports = {
219239
line: {
220240
width: {
221241
valType: 'number',
242+
editType: 'calc',
222243
arrayOk: true,
223244
role: 'style'
224245
},
225246
color: {
226247
valType: 'color',
248+
editType: 'calc',
227249
arrayOk: true,
228250
role: 'style'
229251
}
@@ -232,6 +254,7 @@ module.exports = {
232254
fill: {
233255
color: {
234256
valType: 'color',
257+
editType: 'calc',
235258
arrayOk: true,
236259
role: 'style',
237260
description: [
@@ -244,6 +267,7 @@ module.exports = {
244267
font: {
245268
family: {
246269
valType: 'string',
270+
editType: 'calc',
247271
arrayOk: true,
248272
role: 'style',
249273
noBlank: true,
@@ -263,11 +287,13 @@ module.exports = {
263287
},
264288
size: {
265289
valType: 'number',
290+
editType: 'calc',
266291
arrayOk: true,
267292
role: 'style'
268293
},
269294
color: {
270295
valType: 'color',
296+
editType: 'calc',
271297
arrayOk: true,
272298
role: 'style'
273299
}

src/traces/table/plot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ function populateCellText(cellText, tableControlView, allColumnBlock, gd) {
513513
delete d.fragments;
514514
textToRender = prefixSuffixedText;
515515
}
516+
516517
return textToRender;
517518
})
518519
.attr('alignment-baseline', function(d) {

0 commit comments

Comments
 (0)