Skip to content

Commit be211e5

Browse files
authored
LabelOptions.width and .height are optional (#453)
1 parent 449eeb4 commit be211e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/label.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ export interface LabelOptions {
6666
* Overrides the width of the image. Could be set in pixel by a number,
6767
* or in percentage of current width of image by a string
6868
*/
69-
width: Scriptable<number | string, PartialEventContext>,
69+
width?: Scriptable<number | string, PartialEventContext>,
7070

7171
/**
7272
* Overrides the height of the image. Could be set in pixel by a number,
7373
* or in percentage of current height of image by a string
7474
*/
75-
height: Scriptable<number | string, PartialEventContext>,
75+
height?: Scriptable<number | string, PartialEventContext>,
7676

7777
/**
7878
* Rotation of label, in degrees, or 'auto' to use the degrees of the line, default is 0

0 commit comments

Comments
 (0)