@@ -57,19 +57,20 @@ ReactDOM.render(<App />, rootElement);
5757
5858## ReactPictureAnnotation Props
5959
60- | Name | Type | Comment | required |
61- | --------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------ | -------- |
62- | onChange | ` (annotationData: IAnnotation[]) => void ` | Called every time the shape changes. | √ |
63- | onSelected | ` (id: string or null) => void ` | Called each time the selection is changed. | √ |
64- | width | ` number ` | Width of the canvas. | √ |
65- | height | ` number ` | Height of the canvas. | √ |
66- | image | ` string ` | Image to be annotated. | √ |
67- | inputElement | ` (value: string,onChange: (value: string) => void,onDelete: () => void) => React.ReactElement; ` | Customizable input control. | X |
68- | annotationData | ` Array<IAnnotation> ` | Control the marked areas on the page. | X |
69- | annotationStyle | ` IShapeStyle ` | Control the mark style | X |
70- | selectedId | ` string or null ` | Selected markId | X |
71- | scrollSpeed | ` number ` | Speed of wheel zoom, default 0.0005 | X |
72- | marginWithInput | ` number ` | Margin between input and mark, default 1 | X |
60+ | Name | Type | Comment | required |
61+ | --------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------ | -------- |
62+ | onChange | ` (annotationData: IAnnotation[]) => void ` | Called every time the shape changes. | √ |
63+ | onSelected | ` (id: string or null) => void ` | Called each time the selection is changed. | √ |
64+ | width | ` number ` | Width of the canvas. | √ |
65+ | height | ` number ` | Height of the canvas. | √ |
66+ | image | ` string ` | Image to be annotated. | √ |
67+ | inputElement | ` (value: string,onChange: (value: string) => void,onDelete: () => void) => React.ReactElement; ` | Customizable input control. | X |
68+ | annotationData | ` Array<IAnnotation> ` | Control the marked areas on the page. | X |
69+ | annotationStyle | ` IShapeStyle ` | Control the mark style | X |
70+ | selectedId | ` string or null ` | Selected markId | X |
71+ | scrollSpeed | ` number ` | Speed of wheel zoom, default 0.0005 | X |
72+ | marginWithInput | ` number ` | Margin between input and mark, default 1 | X |
73+ | defaultAnnotationSize | ` number[] ` | Size for annotations created by clicking. | X |
7374
7475## IShapeStyle
7576
0 commit comments