Skip to content

Commit 9575eb3

Browse files
committed
update some editTypes, fix drag behavior
1 parent eaf1927 commit 9575eb3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/shapes/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ module.exports = templatedArray('shape', {
237237
texttemplate: {
238238
valType: 'string',
239239
dflt: '',
240-
editType: 'calc+arraydraw',
240+
editType: 'arraydraw',
241241
description: [
242242
'Template string used for rendering the shape\'s label.',
243243
'Note that this will override `text`.',

src/components/shapes/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function drawOne(gd, index) {
168168
plotinfo: plotinfo,
169169
gd: gd,
170170
editHelpers: editHelpers,
171-
hasText: options.label.text,
171+
hasText: options.label.text || options.label.texttemplate,
172172
isActiveShape: true // i.e. to enable controllers
173173
};
174174

src/components/shapes/draw_newshape/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module.exports = {
9191
texttemplate: {
9292
valType: 'string',
9393
dflt: '',
94-
editType: 'calc+arraydraw',
94+
editType: 'none',
9595
description: [
9696
'Template string used for rendering the new shape\'s label.',
9797
'Note that this will override `text`.',

0 commit comments

Comments
 (0)