Skip to content

Commit e01a765

Browse files
committed
default annotation width/height attribute = null
1 parent 71112e6 commit e01a765

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/annotations/attributes.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,22 @@ module.exports = {
5151
}),
5252
width: {
5353
valType: 'number',
54-
min: 0,
55-
dflt: 0,
54+
min: 1,
55+
dflt: null,
5656
role: 'style',
5757
description: [
58-
'Sets an explicit width for the text box. 0 (default) lets the',
58+
'Sets an explicit width for the text box. null (default) lets the',
5959
'text set the box width. Wider text will be clipped.',
6060
'There is no automatic wrapping; use <br> to start a new line.'
6161
].join(' ')
6262
},
6363
height: {
6464
valType: 'number',
65-
min: 0,
66-
dflt: 0,
65+
min: 1,
66+
dflt: null,
6767
role: 'style',
6868
description: [
69-
'Sets an explicit height for the text box. 0 (default) lets the',
69+
'Sets an explicit height for the text box. null (default) lets the',
7070
'text set the box height. Taller text will be clipped.'
7171
].join(' ')
7272
},

0 commit comments

Comments
 (0)