Skip to content

Commit 3d2c792

Browse files
committed
update docstring formatting
1 parent 9eb7c90 commit 3d2c792

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/components/shapes/attributes.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,11 @@ module.exports = templatedArray('shape', {
249249
description: [
250250
'Sets the position of the label text relative to the shape.',
251251
'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-
'Default: `middle center` for rectangles, circles, and paths; `middle` for lines.',
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+
'Default: *middle center* for rectangles, circles, and paths; *middle* for lines.',
257257
].join(' ')
258258
},
259259
textangle: {
@@ -262,9 +262,9 @@ module.exports = templatedArray('shape', {
262262
editType: 'calc+arraydraw',
263263
description: [
264264
'Sets the angle at which the label text is drawn',
265-
'with respect to the horizontal. For lines, angle `auto`',
265+
'with respect to the horizontal. For lines, angle *auto*',
266266
'is the same angle as the line. For all other shapes,',
267-
'angle `auto` is horizontal.'
267+
'angle *auto* is horizontal.'
268268
].join(' ')
269269
},
270270
xanchor: {
@@ -274,9 +274,9 @@ module.exports = templatedArray('shape', {
274274
editType: 'calc+arraydraw',
275275
description: [
276276
'Sets the label\'s horizontal position anchor',
277-
'This anchor binds the specified `label.textposition` to the *left*, *center*',
277+
'This anchor binds the specified `textposition` to the *left*, *center*',
278278
'or *right* of the label text.',
279-
'For example, if `label.textposition` is set to *top right* and',
279+
'For example, if `textposition` is set to *top right* and',
280280
'`xanchor` to *right* then the right-most portion of the',
281281
'label text lines up with the right-most edge of the',
282282
'shape.',
@@ -288,9 +288,9 @@ module.exports = templatedArray('shape', {
288288
editType: 'calc+arraydraw',
289289
description: [
290290
'Sets the label\'s vertical position anchor',
291-
'This anchor binds the specified `label.textposition` to the *top*, *middle*',
291+
'This anchor binds the specified `textposition` to the *top*, *middle*',
292292
'or *bottom* of the label text.',
293-
'For example, if `label.textposition` is set to *top right* and',
293+
'For example, if `textposition` is set to *top right* and',
294294
'`yanchor` to *top* then the top-most portion of the',
295295
'label text lines up with the top-most edge of the',
296296
'shape.',

src/components/shapes/draw_newshape/attributes.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ module.exports = {
102102
description: [
103103
'Sets the position of the label text relative to the new shape.',
104104
'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-
'Default: `middle center` for rectangles, circles, and paths; `middle` for lines.',
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+
'Default: *middle center* for rectangles, circles, and paths; *middle* for lines.',
110110
].join(' ')
111111
},
112112
textangle: {
@@ -115,9 +115,9 @@ module.exports = {
115115
editType: 'none',
116116
description: [
117117
'Sets the angle at which the label text is drawn',
118-
'with respect to the horizontal. For lines, angle `auto`',
118+
'with respect to the horizontal. For lines, angle *auto*',
119119
'is the same angle as the line. For all other shapes,',
120-
'angle `auto` is horizontal.'
120+
'angle *auto* is horizontal.'
121121
].join(' ')
122122
},
123123
xanchor: {
@@ -127,9 +127,9 @@ module.exports = {
127127
editType: 'none',
128128
description: [
129129
'Sets the label\'s horizontal position anchor',
130-
'This anchor binds the specified `label.textposition` to the *left*, *center*',
130+
'This anchor binds the specified `textposition` to the *left*, *center*',
131131
'or *right* of the label text.',
132-
'For example, if `label.textposition` is set to *top right* and',
132+
'For example, if `textposition` is set to *top right* and',
133133
'`xanchor` to *right* then the right-most portion of the',
134134
'label text lines up with the right-most edge of the',
135135
'new shape.',
@@ -141,9 +141,9 @@ module.exports = {
141141
editType: 'none',
142142
description: [
143143
'Sets the label\'s vertical position anchor',
144-
'This anchor binds the specified `label.textposition` to the *top*, *middle*',
144+
'This anchor binds the specified `textposition` to the *top*, *middle*',
145145
'or *bottom* of the label text.',
146-
'For example, if `label.textposition` is set to *top right* and',
146+
'For example, if `textposition` is set to *top right* and',
147147
'`yanchor` to *top* then the top-most portion of the',
148148
'label text lines up with the top-most edge of the',
149149
'new shape.',

0 commit comments

Comments
 (0)