Skip to content

Commit 394b48f

Browse files
committed
improve label.textposition docstring
1 parent 52463fa commit 394b48f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/components/shapes/attributes.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,14 @@ module.exports = templatedArray('shape', {
246246
'start', 'middle', 'end',
247247
],
248248
editType: 'arraydraw',
249-
description: 'Sets the position of the label text relative to the shape.'
249+
description: [
250+
'Sets the position of the label text relative to the shape.',
251+
'Supported values for rectangles, circles and paths are',
252+
'`top left`, `top center`, `top right`, `middle left`,',
253+
'`middle center`, `middle right`, `bottom left`, `bottom center`,',
254+
'and `bottom right`.',
255+
'Supported values for lines are `start`, `middle`, and `end`.',
256+
].join(' ')
250257
},
251258
textangle: {
252259
valType: 'angle',

src/components/shapes/draw_newshape/attributes.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,14 @@ module.exports = {
9999
'start', 'middle', 'end',
100100
],
101101
editType: 'none',
102-
description: 'Sets the position of the label text relative to the shape.'
102+
description: [
103+
'Sets the position of the label text relative to the shape.',
104+
'Supported values for rectangles, circles and paths are',
105+
'`top left`, `top center`, `top right`, `middle left`,',
106+
'`middle center`, `middle right`, `bottom left`, `bottom center`,',
107+
'and `bottom right`.',
108+
'Supported values for lines are `start`, `middle`, and `end`.',
109+
].join(' ')
103110
},
104111
textangle: {
105112
valType: 'angle',

0 commit comments

Comments
 (0)