Skip to content

Commit d5d1927

Browse files
committed
set min padding to 0
1 parent 8d35f6e commit d5d1927

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/shapes/attributes.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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, the default textangle is `auto`,',
266-
'which displays the text at the same angle as the line. For all other shapes,',
267-
'the default textangle is 0 (horizontal).'
265+
'with respect to the horizontal. For lines, angle `auto`',
266+
'is the same angle as the line. For all other shapes,',
267+
'angle `auto` is horizontal.'
268268
].join(' ')
269269
},
270270
xanchor: {
@@ -299,6 +299,7 @@ module.exports = templatedArray('shape', {
299299
padding: {
300300
valType: 'number',
301301
dflt: 3,
302+
min: 0,
302303
editType: 'arraydraw',
303304
description: 'Sets padding between edge of label and xanchor / yanchor.'
304305
},

src/components/shapes/draw_newshape/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ module.exports = {
152152
padding: {
153153
valType: 'number',
154154
dflt: 3,
155+
min: 0,
155156
editType: 'none',
156157
description: 'Sets padding between edge of label and xanchor / yanchor.'
157158
},

0 commit comments

Comments
 (0)