Skip to content

Commit dfb608e

Browse files
committed
provide missing editTypes
1 parent f642a52 commit dfb608e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/components/shapes/draw_newshape/attributes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ module.exports = {
8383
text: {
8484
valType: 'string',
8585
dflt: '',
86+
editType: 'none',
8687
description: 'Sets the text to display with shape.'
8788
},
8889
font: fontAttrs({
89-
editType: 'calc+arraydraw',
90+
editType: 'none',
9091
description: 'Sets the shape label text font.'
9192
}),
9293
textposition: {
@@ -97,6 +98,7 @@ module.exports = {
9798
'bottom left', 'bottom center', 'bottom right',
9899
'start', 'middle', 'end',
99100
],
101+
editType: 'none',
100102
description: 'Sets the position of the label text relative to the shape.'
101103
},
102104
textangle: {

test/plot-schema.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3577,21 +3577,21 @@
35773577
"editType": "none",
35783578
"font": {
35793579
"color": {
3580-
"editType": "calc+arraydraw",
3580+
"editType": "none",
35813581
"valType": "color"
35823582
},
35833583
"description": "Sets the shape label text font.",
3584-
"editType": "calc+arraydraw",
3584+
"editType": "none",
35853585
"family": {
35863586
"description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.",
3587-
"editType": "calc+arraydraw",
3587+
"editType": "none",
35883588
"noBlank": true,
35893589
"strict": true,
35903590
"valType": "string"
35913591
},
35923592
"role": "object",
35933593
"size": {
3594-
"editType": "calc+arraydraw",
3594+
"editType": "none",
35953595
"min": 1,
35963596
"valType": "number"
35973597
}
@@ -3606,6 +3606,7 @@
36063606
"text": {
36073607
"description": "Sets the text to display with shape.",
36083608
"dflt": "",
3609+
"editType": "none",
36093610
"valType": "string"
36103611
},
36113612
"textangle": {
@@ -3615,6 +3616,7 @@
36153616
},
36163617
"textposition": {
36173618
"description": "Sets the position of the label text relative to the shape.",
3619+
"editType": "none",
36183620
"valType": "enumerated",
36193621
"values": [
36203622
"top left",

0 commit comments

Comments
 (0)