@aivex/ui 1.2.0-dev.54 → 1.2.0-dev.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -1
- package/dist/DESIGN.md +241 -0
- package/dist/comment.cjs +1 -1
- package/dist/comment.js +1 -1
- package/dist/components/Avatar/Avatar.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.d.cts +42 -0
- package/dist/components/Avatar/Avatar.d.ts +24 -0
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/index.d.cts +2 -0
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/Badge/Badge.cjs.map +1 -1
- package/dist/components/Badge/Badge.d.cts +93 -0
- package/dist/components/Badge/Badge.d.ts +58 -0
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/index.d.cts +2 -0
- package/dist/components/Badge/index.d.ts +2 -2
- package/dist/components/BreadCrumb/BreadCrumb.cjs.map +1 -1
- package/dist/components/BreadCrumb/BreadCrumb.d.cts +57 -0
- package/dist/components/BreadCrumb/BreadCrumb.d.ts +32 -2
- package/dist/components/BreadCrumb/BreadCrumb.js.map +1 -1
- package/dist/components/BreadCrumb/index.d.cts +2 -0
- package/dist/components/BreadCrumb/index.d.ts +2 -2
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.cts +50 -0
- package/dist/components/Button/Button.d.ts +31 -1
- package/dist/components/Button/Button.js +25 -24
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/index.d.cts +2 -0
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.cjs.map +1 -1
- package/dist/components/Calendar/Calendar.d.cts +81 -0
- package/dist/components/Calendar/Calendar.d.ts +48 -5
- package/dist/components/Calendar/Calendar.js +104 -57
- package/dist/components/Calendar/Calendar.js.map +1 -1
- package/dist/components/Calendar/date.cjs +1 -1
- package/dist/components/Calendar/date.cjs.map +1 -1
- package/dist/components/Calendar/date.d.cts +35 -0
- package/dist/components/Calendar/date.d.ts +10 -0
- package/dist/components/Calendar/date.js +22 -1
- package/dist/components/Calendar/date.js.map +1 -1
- package/dist/components/Calendar/index.d.cts +2 -0
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.d.cts +46 -0
- package/dist/components/Card/Card.d.ts +30 -3
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/index.d.cts +2 -0
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.cts +37 -0
- package/dist/components/Checkbox/Checkbox.d.ts +24 -0
- package/dist/components/Checkbox/Checkbox.js +24 -23
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/ChipsCheckbox.cjs.map +1 -1
- package/dist/components/Checkbox/ChipsCheckbox.d.cts +24 -0
- package/dist/components/Checkbox/ChipsCheckbox.d.ts +15 -0
- package/dist/components/Checkbox/ChipsCheckbox.js.map +1 -1
- package/dist/components/Checkbox/index.d.cts +4 -0
- package/dist/components/Checkbox/index.d.ts +4 -4
- package/dist/components/Coachmark/Coachmark.cjs.map +1 -1
- package/dist/components/Coachmark/Coachmark.d.cts +87 -0
- package/dist/components/Coachmark/Coachmark.d.ts +39 -8
- package/dist/components/Coachmark/Coachmark.js.map +1 -1
- package/dist/components/Coachmark/index.d.cts +2 -0
- package/dist/components/Coachmark/index.d.ts +2 -2
- package/dist/components/Comment/CommentInput.cjs +1 -1
- package/dist/components/Comment/CommentInput.cjs.map +1 -1
- package/dist/components/Comment/CommentInput.d.cts +75 -0
- package/dist/components/Comment/CommentInput.d.ts +46 -6
- package/dist/components/Comment/CommentInput.js +15 -14
- package/dist/components/Comment/CommentInput.js.map +1 -1
- package/dist/components/Comment/CommentPin.cjs +1 -1
- package/dist/components/Comment/CommentPin.cjs.map +1 -1
- package/dist/components/Comment/CommentPin.d.cts +48 -0
- package/dist/components/Comment/CommentPin.d.ts +35 -4
- package/dist/components/Comment/CommentPin.js +29 -20
- package/dist/components/Comment/CommentPin.js.map +1 -1
- package/dist/components/Comment/MentionInput.cjs +1 -1
- package/dist/components/Comment/MentionInput.cjs.map +1 -1
- package/dist/components/Comment/MentionInput.d.cts +45 -0
- package/dist/components/Comment/MentionInput.d.ts +19 -4
- package/dist/components/Comment/MentionInput.js +51 -38
- package/dist/components/Comment/MentionInput.js.map +1 -1
- package/dist/components/Comment/MentionList.cjs +1 -1
- package/dist/components/Comment/MentionList.cjs.map +1 -1
- package/dist/components/Comment/MentionList.d.cts +19 -0
- package/dist/components/Comment/MentionList.d.ts +3 -3
- package/dist/components/Comment/MentionList.js +1 -1
- package/dist/components/Comment/MentionList.js.map +1 -1
- package/dist/components/Comment/index.d.cts +4 -0
- package/dist/components/Comment/index.d.ts +4 -4
- package/dist/components/Comment/mentionContent.d.cts +5 -0
- package/dist/components/Comment/types.d.cts +16 -0
- package/dist/components/Comment/types.d.ts +6 -2
- package/dist/components/Comment/useMentionSuggestion.cjs +1 -1
- package/dist/components/Comment/useMentionSuggestion.cjs.map +1 -1
- package/dist/components/Comment/useMentionSuggestion.d.cts +19 -0
- package/dist/components/Comment/useMentionSuggestion.d.ts +6 -2
- package/dist/components/Comment/useMentionSuggestion.js +72 -62
- package/dist/components/Comment/useMentionSuggestion.js.map +1 -1
- package/dist/components/DataGrid/DataGrid.cjs +1 -1
- package/dist/components/DataGrid/DataGrid.cjs.map +1 -1
- package/dist/components/DataGrid/DataGrid.d.cts +136 -0
- package/dist/components/DataGrid/DataGrid.d.ts +77 -5
- package/dist/components/DataGrid/DataGrid.js +109 -106
- package/dist/components/DataGrid/DataGrid.js.map +1 -1
- package/dist/components/DataGrid/DataGridColumnSettings.cjs +1 -1
- package/dist/components/DataGrid/DataGridColumnSettings.cjs.map +1 -1
- package/dist/components/DataGrid/DataGridColumnSettings.d.cts +41 -0
- package/dist/components/DataGrid/DataGridColumnSettings.d.ts +21 -3
- package/dist/components/DataGrid/DataGridColumnSettings.js +8 -5
- package/dist/components/DataGrid/DataGridColumnSettings.js.map +1 -1
- package/dist/components/DataGrid/DataGridPrimitives.cjs.map +1 -1
- package/dist/components/DataGrid/DataGridPrimitives.d.cts +167 -0
- package/dist/components/DataGrid/DataGridPrimitives.d.ts +81 -1
- package/dist/components/DataGrid/DataGridPrimitives.js.map +1 -1
- package/dist/components/DataGrid/DataGridRows.d.cts +66 -0
- package/dist/components/DataGrid/index.d.cts +8 -0
- package/dist/components/DataGrid/index.d.ts +6 -6
- package/dist/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.d.cts +66 -0
- package/dist/components/Dialog/Dialog.d.ts +47 -1
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/index.d.cts +2 -0
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/Divider/Divider.cjs.map +1 -1
- package/dist/components/Divider/Divider.d.cts +30 -0
- package/dist/components/Divider/Divider.d.ts +19 -0
- package/dist/components/Divider/Divider.js.map +1 -1
- package/dist/components/Divider/index.d.cts +2 -0
- package/dist/components/Divider/index.d.ts +2 -2
- package/dist/components/DraggableScroll/DraggableScroll.cjs.map +1 -1
- package/dist/components/DraggableScroll/DraggableScroll.d.cts +47 -0
- package/dist/components/DraggableScroll/DraggableScroll.d.ts +32 -1
- package/dist/components/DraggableScroll/DraggableScroll.js.map +1 -1
- package/dist/components/DraggableScroll/index.d.cts +2 -0
- package/dist/components/DraggableScroll/index.d.ts +2 -2
- package/dist/components/Drawer/Drawer.cjs +1 -1
- package/dist/components/Drawer/Drawer.cjs.map +1 -1
- package/dist/components/Drawer/Drawer.d.cts +149 -0
- package/dist/components/Drawer/Drawer.d.ts +119 -12
- package/dist/components/Drawer/Drawer.js +87 -29
- package/dist/components/Drawer/Drawer.js.map +1 -1
- package/dist/components/Drawer/index.d.cts +2 -0
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Field/Field.cjs +1 -1
- package/dist/components/Field/Field.cjs.map +1 -1
- package/dist/components/Field/Field.d.cts +100 -0
- package/dist/components/Field/Field.d.ts +59 -5
- package/dist/components/Field/Field.js +49 -42
- package/dist/components/Field/Field.js.map +1 -1
- package/dist/components/Field/index.d.cts +1 -0
- package/dist/components/Field/index.d.ts +1 -1
- package/dist/components/FilterModal/FilterModal.cjs +1 -1
- package/dist/components/FilterModal/FilterModal.cjs.map +1 -1
- package/dist/components/FilterModal/FilterModal.d.cts +83 -0
- package/dist/components/FilterModal/FilterModal.d.ts +52 -1
- package/dist/components/FilterModal/FilterModal.js +5 -4
- package/dist/components/FilterModal/FilterModal.js.map +1 -1
- package/dist/components/FilterModal/index.d.cts +2 -0
- package/dist/components/FilterModal/index.d.ts +2 -2
- package/dist/components/Icon/index.cjs.map +1 -1
- package/dist/components/Icon/index.d.cts +2077 -0
- package/dist/components/Icon/index.d.ts +41 -0
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Icon/svgA11y.d.cts +10 -0
- package/dist/components/Icon/uniqueSvgIds.d.cts +8 -0
- package/dist/components/IconButton/IconButton.cjs +1 -1
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.d.cts +45 -0
- package/dist/components/IconButton/IconButton.d.ts +31 -3
- package/dist/components/IconButton/IconButton.js +25 -24
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/IconButton/index.d.cts +2 -0
- package/dist/components/IconButton/index.d.ts +2 -2
- package/dist/components/Illustration/Illustration.cjs +2 -0
- package/dist/components/Illustration/Illustration.cjs.map +1 -0
- package/dist/components/Illustration/Illustration.d.cts +37 -0
- package/dist/components/Illustration/Illustration.d.ts +37 -0
- package/dist/components/Illustration/Illustration.js +40 -0
- package/dist/components/Illustration/Illustration.js.map +1 -0
- package/dist/components/Illustration/assets/box-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/box-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/box-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/box-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/box-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/box-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/box-light.webp.js +7 -0
- package/dist/components/Illustration/assets/box-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/equipment-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/equipment-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/equipment-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/equipment-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/equipment-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/equipment-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/equipment-light.webp.js +7 -0
- package/dist/components/Illustration/assets/equipment-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/failed-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/failed-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/failed-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/failed-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/failed-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/failed-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/failed-light.webp.js +7 -0
- package/dist/components/Illustration/assets/failed-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/file-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/file-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/file-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/file-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/file-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/file-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/file-light.webp.js +7 -0
- package/dist/components/Illustration/assets/file-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/images-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/images-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/images-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/images-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/images-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/images-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/images-light.webp.js +7 -0
- package/dist/components/Illustration/assets/images-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/letter-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/letter-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/letter-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/letter-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/letter-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/letter-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/letter-light.webp.js +7 -0
- package/dist/components/Illustration/assets/letter-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/message-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/message-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/message-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/message-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/message-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/message-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/message-light.webp.js +7 -0
- package/dist/components/Illustration/assets/message-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/network-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/network-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/network-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/network-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/network-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/network-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/network-light.webp.js +7 -0
- package/dist/components/Illustration/assets/network-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/no-data-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/no-data-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/no-data-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/no-data-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/no-data-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/no-data-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/no-data-light.webp.js +7 -0
- package/dist/components/Illustration/assets/no-data-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/paper-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/paper-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/paper-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/paper-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/paper-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/paper-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/paper-light.webp.js +7 -0
- package/dist/components/Illustration/assets/paper-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/success-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/success-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/success-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/success-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/success-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/success-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/success-light.webp.js +7 -0
- package/dist/components/Illustration/assets/success-light.webp.js.map +1 -0
- package/dist/components/Illustration/assets/warning-dark.webp.cjs +2 -0
- package/dist/components/Illustration/assets/warning-dark.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/warning-dark.webp.js +7 -0
- package/dist/components/Illustration/assets/warning-dark.webp.js.map +1 -0
- package/dist/components/Illustration/assets/warning-light.webp.cjs +2 -0
- package/dist/components/Illustration/assets/warning-light.webp.cjs.map +1 -0
- package/dist/components/Illustration/assets/warning-light.webp.js +7 -0
- package/dist/components/Illustration/assets/warning-light.webp.js.map +1 -0
- package/dist/components/Illustration/illustrations.cjs +2 -0
- package/dist/components/Illustration/illustrations.cjs.map +1 -0
- package/dist/components/Illustration/illustrations.d.cts +81 -0
- package/dist/components/Illustration/illustrations.d.ts +81 -0
- package/dist/components/Illustration/illustrations.js +104 -0
- package/dist/components/Illustration/illustrations.js.map +1 -0
- package/dist/components/Illustration/index.d.cts +1 -0
- package/dist/components/Illustration/index.d.ts +1 -0
- package/dist/components/InputBase/InputBase.cjs.map +1 -1
- package/dist/components/InputBase/InputBase.d.cts +59 -0
- package/dist/components/InputBase/InputBase.d.ts +30 -0
- package/dist/components/InputBase/InputBase.js.map +1 -1
- package/dist/components/InputBase/index.d.cts +1 -0
- package/dist/components/InputBase/index.d.ts +1 -1
- package/dist/components/InputBase/useInputState.d.cts +19 -0
- package/dist/components/InteractionLayer/InteractionLayer.cjs.map +1 -1
- package/dist/components/InteractionLayer/InteractionLayer.d.cts +43 -0
- package/dist/components/InteractionLayer/InteractionLayer.d.ts +34 -0
- package/dist/components/InteractionLayer/InteractionLayer.js.map +1 -1
- package/dist/components/InteractionLayer/index.d.cts +1 -0
- package/dist/components/InteractionLayer/index.d.ts +1 -1
- package/dist/components/Logo/index.cjs.map +1 -1
- package/dist/components/Logo/index.d.cts +73 -0
- package/dist/components/Logo/index.d.ts +27 -1
- package/dist/components/Logo/index.js.map +1 -1
- package/dist/components/Menu/Menu.cjs.map +1 -1
- package/dist/components/Menu/Menu.d.cts +146 -0
- package/dist/components/Menu/Menu.d.ts +62 -0
- package/dist/components/Menu/Menu.js.map +1 -1
- package/dist/components/Menu/index.d.cts +2 -0
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/Messagebox/Messagebox.cjs.map +1 -1
- package/dist/components/Messagebox/Messagebox.d.cts +50 -0
- package/dist/components/Messagebox/Messagebox.d.ts +33 -3
- package/dist/components/Messagebox/Messagebox.js.map +1 -1
- package/dist/components/Messagebox/index.d.cts +2 -0
- package/dist/components/Messagebox/index.d.ts +2 -2
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.d.cts +137 -0
- package/dist/components/Modal/Modal.d.ts +95 -2
- package/dist/components/Modal/Modal.js +0 -1
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/ModalBase.cjs.map +1 -1
- package/dist/components/Modal/ModalBase.d.cts +71 -0
- package/dist/components/Modal/ModalBase.d.ts +39 -1
- package/dist/components/Modal/ModalBase.js.map +1 -1
- package/dist/components/Modal/index.d.cts +4 -0
- package/dist/components/Modal/index.d.ts +4 -4
- package/dist/components/Nav/Nav.cjs.map +1 -1
- package/dist/components/Nav/Nav.d.cts +69 -0
- package/dist/components/Nav/Nav.d.ts +46 -0
- package/dist/components/Nav/Nav.js.map +1 -1
- package/dist/components/Nav/index.d.cts +2 -0
- package/dist/components/Nav/index.d.ts +2 -2
- package/dist/components/Overlay/Overlay.cjs.map +1 -1
- package/dist/components/Overlay/Overlay.d.cts +36 -0
- package/dist/components/Overlay/Overlay.d.ts +21 -3
- package/dist/components/Overlay/Overlay.js.map +1 -1
- package/dist/components/Overlay/index.d.cts +2 -0
- package/dist/components/Overlay/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.cjs +1 -1
- package/dist/components/Pagination/Pagination.cjs.map +1 -1
- package/dist/components/Pagination/Pagination.d.cts +68 -0
- package/dist/components/Pagination/Pagination.d.ts +43 -1
- package/dist/components/Pagination/Pagination.js +55 -41
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Pagination/index.d.cts +2 -0
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Panel/Panel.cjs +1 -1
- package/dist/components/Panel/Panel.cjs.map +1 -1
- package/dist/components/Panel/Panel.d.cts +124 -0
- package/dist/components/Panel/Panel.d.ts +119 -8
- package/dist/components/Panel/Panel.js +83 -46
- package/dist/components/Panel/Panel.js.map +1 -1
- package/dist/components/Panel/index.d.cts +2 -0
- package/dist/components/Panel/index.d.ts +2 -2
- package/dist/components/Popover/Popover.cjs.map +1 -1
- package/dist/components/Popover/Popover.d.cts +96 -0
- package/dist/components/Popover/Popover.d.ts +42 -0
- package/dist/components/Popover/Popover.js.map +1 -1
- package/dist/components/Popover/index.d.cts +2 -0
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.cjs.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.cts +45 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +32 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/components/ProgressBar/index.d.cts +2 -0
- package/dist/components/ProgressBar/index.d.ts +2 -2
- package/dist/components/Radio/Radio.cjs.map +1 -1
- package/dist/components/Radio/Radio.d.cts +32 -0
- package/dist/components/Radio/Radio.d.ts +21 -0
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/index.d.cts +2 -0
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.cjs.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.cts +42 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +24 -0
- package/dist/components/ScrollArea/ScrollArea.js.map +1 -1
- package/dist/components/ScrollArea/index.d.cts +2 -0
- package/dist/components/ScrollArea/index.d.ts +2 -2
- package/dist/components/Segmented/Segmented.cjs.map +1 -1
- package/dist/components/Segmented/Segmented.d.cts +41 -0
- package/dist/components/Segmented/Segmented.d.ts +26 -0
- package/dist/components/Segmented/Segmented.js.map +1 -1
- package/dist/components/Segmented/index.d.cts +2 -0
- package/dist/components/Segmented/index.d.ts +2 -2
- package/dist/components/SelectBox/SelectBox.cjs +1 -1
- package/dist/components/SelectBox/SelectBox.cjs.map +1 -1
- package/dist/components/SelectBox/SelectBox.d.cts +95 -0
- package/dist/components/SelectBox/SelectBox.d.ts +55 -3
- package/dist/components/SelectBox/SelectBox.js +17 -12
- package/dist/components/SelectBox/SelectBox.js.map +1 -1
- package/dist/components/SelectBox/index.d.cts +2 -0
- package/dist/components/SelectBox/index.d.ts +2 -2
- package/dist/components/SelectButton/SelectButton.cjs +1 -1
- package/dist/components/SelectButton/SelectButton.cjs.map +1 -1
- package/dist/components/SelectButton/SelectButton.d.cts +54 -0
- package/dist/components/SelectButton/SelectButton.d.ts +37 -1
- package/dist/components/SelectButton/SelectButton.js +31 -31
- package/dist/components/SelectButton/SelectButton.js.map +1 -1
- package/dist/components/SelectButton/index.d.cts +2 -0
- package/dist/components/SelectButton/index.d.ts +2 -2
- package/dist/components/ShapeEditor/ShapeEditor.cjs +1 -1
- package/dist/components/ShapeEditor/ShapeEditor.cjs.map +1 -1
- package/dist/components/ShapeEditor/ShapeEditor.d.cts +40 -0
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +36 -3
- package/dist/components/ShapeEditor/ShapeEditor.js +1 -1
- package/dist/components/ShapeEditor/ShapeEditor.js.map +1 -1
- package/dist/components/ShapeEditor/ShapeViewer.cjs +1 -1
- package/dist/components/ShapeEditor/ShapeViewer.cjs.map +1 -1
- package/dist/components/ShapeEditor/ShapeViewer.d.cts +92 -0
- package/dist/components/ShapeEditor/ShapeViewer.d.ts +55 -5
- package/dist/components/ShapeEditor/ShapeViewer.js +47 -41
- package/dist/components/ShapeEditor/ShapeViewer.js.map +1 -1
- package/dist/components/ShapeEditor/_components/AssistantOverlay.d.cts +17 -0
- package/dist/components/ShapeEditor/_components/AssistantOverlay.d.ts +2 -2
- package/dist/components/ShapeEditor/_components/ContextMenu.d.cts +13 -0
- package/dist/components/ShapeEditor/_components/ContextMenu.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/CursorGuide.d.cts +8 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.cts +17 -0
- package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/Minimap.d.cts +46 -0
- package/dist/components/ShapeEditor/_components/Minimap.d.ts +6 -6
- package/dist/components/ShapeEditor/_components/MinimapShape.d.cts +6 -0
- package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/RegionOverlay.d.cts +21 -0
- package/dist/components/ShapeEditor/_components/RegionOverlay.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.cts +20 -0
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +3 -3
- package/dist/components/ShapeEditor/_components/SettingsPanel.cjs.map +1 -1
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.cts +28 -0
- package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +5 -5
- package/dist/components/ShapeEditor/_components/SettingsPanel.js.map +1 -1
- package/dist/components/ShapeEditor/_constants.cjs +1 -1
- package/dist/components/ShapeEditor/_constants.cjs.map +1 -1
- package/dist/components/ShapeEditor/_constants.d.cts +15 -0
- package/dist/components/ShapeEditor/_constants.d.ts +0 -21
- package/dist/components/ShapeEditor/_constants.js +1 -1
- package/dist/components/ShapeEditor/_constants.js.map +1 -1
- package/dist/components/ShapeEditor/_model/brush.d.cts +3 -0
- package/dist/components/ShapeEditor/_model/brush.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/clipboard.d.cts +22 -0
- package/dist/components/ShapeEditor/_model/clipboard.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/cursors.d.cts +23 -0
- package/dist/components/ShapeEditor/_model/cursors.d.ts +2 -2
- package/dist/components/ShapeEditor/_model/geometry.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/geometry.d.cts +182 -0
- package/dist/components/ShapeEditor/_model/geometry.d.ts +17 -1
- package/dist/components/ShapeEditor/_model/geometry.js.map +1 -1
- package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs +1 -1
- package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/imageDiagnosis.d.cts +38 -0
- package/dist/components/ShapeEditor/_model/imageDiagnosis.d.ts +4 -1
- package/dist/components/ShapeEditor/_model/imageDiagnosis.js +29 -20
- package/dist/components/ShapeEditor/_model/imageDiagnosis.js.map +1 -1
- package/dist/components/ShapeEditor/_model/imageLoad.d.cts +29 -0
- package/dist/components/ShapeEditor/_model/imageSignature.d.cts +18 -0
- package/dist/components/ShapeEditor/_model/imageTiles.d.cts +11 -0
- package/dist/components/ShapeEditor/_model/keymap.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/keymap.d.cts +17 -0
- package/dist/components/ShapeEditor/_model/keymap.d.ts +2 -0
- package/dist/components/ShapeEditor/_model/keymap.js.map +1 -1
- package/dist/components/ShapeEditor/_model/overlays.d.cts +108 -0
- package/dist/components/ShapeEditor/_model/overlays.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/pinIcon.d.cts +13 -0
- package/dist/components/ShapeEditor/_model/polygonFill.d.cts +2 -0
- package/dist/components/ShapeEditor/_model/polygonFill.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/props.d.cts +13 -0
- package/dist/components/ShapeEditor/_model/props.d.ts +8 -8
- package/dist/components/ShapeEditor/_model/scalarMask.d.cts +21 -0
- package/dist/components/ShapeEditor/_model/scalarMask.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/shapeHitTest.d.cts +14 -0
- package/dist/components/ShapeEditor/_model/shapeHitTest.d.ts +2 -2
- package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.cts +16 -0
- package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/strings.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/strings.d.cts +62 -0
- package/dist/components/ShapeEditor/_model/strings.d.ts +2 -1
- package/dist/components/ShapeEditor/_model/strings.js.map +1 -1
- package/dist/components/ShapeEditor/_model/tools.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/tools.d.cts +29 -0
- package/dist/components/ShapeEditor/_model/tools.d.ts +4 -2
- package/dist/components/ShapeEditor/_model/tools.js.map +1 -1
- package/dist/components/ShapeEditor/_model/types/assistant.d.cts +37 -0
- package/dist/components/ShapeEditor/_model/types/assistant.d.ts +3 -1
- package/dist/components/ShapeEditor/_model/types/handle.d.cts +124 -0
- package/dist/components/ShapeEditor/_model/types/handle.d.ts +30 -4
- package/dist/components/ShapeEditor/_model/types/props.d.cts +430 -0
- package/dist/components/ShapeEditor/_model/types/props.d.ts +83 -20
- package/dist/components/ShapeEditor/_model/viewSettings.cjs.map +1 -1
- package/dist/components/ShapeEditor/_model/viewSettings.d.cts +73 -0
- package/dist/components/ShapeEditor/_model/viewSettings.d.ts +13 -1
- package/dist/components/ShapeEditor/_model/viewSettings.js.map +1 -1
- package/dist/components/ShapeEditor/_model/viewerPatch.d.cts +60 -0
- package/dist/components/ShapeEditor/_model/viewerPatch.d.ts +1 -1
- package/dist/components/ShapeEditor/_model/viewport.d.cts +36 -0
- package/dist/components/ShapeEditor/_model/viewport.d.ts +1 -1
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs +1 -1
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs.map +1 -1
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.cts +121 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +5 -5
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.js +1 -1
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.js.map +1 -1
- package/dist/components/ShapeEditor/_renderers/imageLayer.d.cts +35 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.d.cts +36 -0
- package/dist/components/ShapeEditor/_renderers/overlayLayer.d.ts +2 -2
- package/dist/components/ShapeEditor/_renderers/previewLayer.cjs +1 -1
- package/dist/components/ShapeEditor/_renderers/previewLayer.cjs.map +1 -1
- package/dist/components/ShapeEditor/_renderers/previewLayer.d.cts +34 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.d.ts +5 -3
- package/dist/components/ShapeEditor/_renderers/previewLayer.js +3 -0
- package/dist/components/ShapeEditor/_renderers/previewLayer.js.map +1 -1
- package/dist/components/ShapeEditor/_renderers/shapeLayer.d.cts +49 -0
- package/dist/components/ShapeEditor/_renderers/shapeLayer.d.ts +3 -3
- package/dist/components/ShapeEditor/_renderers/shapePainter.d.cts +27 -0
- package/dist/components/ShapeEditor/_renderers/shapePainter.d.ts +1 -1
- package/dist/components/ShapeEditor/_renderers/transformDriver.d.cts +55 -0
- package/dist/components/ShapeEditor/_renderers/transformDriver.d.ts +3 -3
- package/dist/components/ShapeEditor/_renderers/transformSession.d.cts +74 -0
- package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +1 -1
- package/dist/components/ShapeEditor/_renderers/transformerLayer.d.cts +69 -0
- package/dist/components/ShapeEditor/_renderers/transformerLayer.d.ts +2 -2
- package/dist/components/ShapeEditor/_renderers/types.d.cts +129 -0
- package/dist/components/ShapeEditor/_renderers/types.d.ts +6 -6
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.cts +26 -0
- package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.ts +5 -5
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.cts +42 -0
- package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.ts +7 -7
- package/dist/components/ShapeEditor/_state/createInteractionController.d.cts +73 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +9 -9
- package/dist/components/ShapeEditor/_state/drawSessionState.d.cts +6 -0
- package/dist/components/ShapeEditor/_state/drawSessionState.d.ts +2 -2
- package/dist/components/ShapeEditor/_state/useAssistant.d.cts +48 -0
- package/dist/components/ShapeEditor/_state/useAssistant.d.ts +3 -3
- package/dist/components/ShapeEditor/_state/useDrawSession.d.cts +61 -0
- package/dist/components/ShapeEditor/_state/useDrawSession.d.ts +5 -5
- package/dist/components/ShapeEditor/_state/useEditorDocument.d.cts +23 -0
- package/dist/components/ShapeEditor/_state/useEditorDocument.d.ts +1 -1
- package/dist/components/ShapeEditor/_state/useEditorHandle.d.cts +34 -0
- package/dist/components/ShapeEditor/_state/useEditorHandle.d.ts +9 -9
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs +1 -1
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs.map +1 -1
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.cts +25 -0
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +1 -1
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.js +15 -15
- package/dist/components/ShapeEditor/_state/useEditorHotkeys.js.map +1 -1
- package/dist/components/ShapeEditor/_state/useEditorView.d.cts +15 -0
- package/dist/components/ShapeEditor/_state/useEditorView.d.ts +1 -1
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs +1 -1
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs.map +1 -1
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.cts +89 -0
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +6 -6
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.js +23 -20
- package/dist/components/ShapeEditor/_state/useEngineLifecycle.js.map +1 -1
- package/dist/components/ShapeEditor/_state/useLatestRef.d.cts +7 -0
- package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.cts +27 -0
- package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.ts +1 -1
- package/dist/components/ShapeEditor/_state/useMinimapSync.d.cts +26 -0
- package/dist/components/ShapeEditor/_state/useMinimapSync.d.ts +3 -3
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.cts +31 -0
- package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +2 -2
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.cts +32 -0
- package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.ts +4 -4
- package/dist/components/ShapeEditor/_state/useSelectionModel.d.cts +24 -0
- package/dist/components/ShapeEditor/_state/useSelectionModel.d.ts +4 -4
- package/dist/components/ShapeEditor/_state/useViewportControls.d.cts +23 -0
- package/dist/components/ShapeEditor/_state/useViewportControls.d.ts +3 -3
- package/dist/components/ShapeEditor/index.d.cts +13 -0
- package/dist/components/ShapeEditor/index.d.ts +13 -8
- package/dist/components/Shortcut/Shortcut.cjs.map +1 -1
- package/dist/components/Shortcut/Shortcut.d.cts +24 -0
- package/dist/components/Shortcut/Shortcut.d.ts +16 -0
- package/dist/components/Shortcut/Shortcut.js.map +1 -1
- package/dist/components/Shortcut/index.d.cts +2 -0
- package/dist/components/Shortcut/index.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.cts +26 -0
- package/dist/components/Skeleton/Skeleton.d.ts +19 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/Skeleton/index.d.cts +2 -0
- package/dist/components/Skeleton/index.d.ts +2 -2
- package/dist/components/Slider/Slider.cjs +1 -1
- package/dist/components/Slider/Slider.cjs.map +1 -1
- package/dist/components/Slider/Slider.d.cts +45 -0
- package/dist/components/Slider/Slider.d.ts +33 -1
- package/dist/components/Slider/Slider.js +18 -14
- package/dist/components/Slider/Slider.js.map +1 -1
- package/dist/components/Slider/index.d.cts +2 -0
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/Spinner/Spinner.cjs.map +1 -1
- package/dist/components/Spinner/Spinner.d.cts +32 -0
- package/dist/components/Spinner/Spinner.d.ts +18 -1
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/Spinner/index.d.cts +2 -0
- package/dist/components/Spinner/index.d.ts +2 -2
- package/dist/components/Switch/Switch.cjs +1 -1
- package/dist/components/Switch/Switch.cjs.map +1 -1
- package/dist/components/Switch/Switch.d.cts +29 -0
- package/dist/components/Switch/Switch.d.ts +16 -0
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Switch/index.d.cts +2 -0
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Tab/Tab.cjs.map +1 -1
- package/dist/components/Tab/Tab.d.cts +45 -0
- package/dist/components/Tab/Tab.d.ts +26 -0
- package/dist/components/Tab/Tab.js.map +1 -1
- package/dist/components/Tab/index.d.cts +2 -0
- package/dist/components/Tab/index.d.ts +2 -2
- package/dist/components/Tag/Tag.cjs.map +1 -1
- package/dist/components/Tag/Tag.d.cts +50 -0
- package/dist/components/Tag/Tag.d.ts +32 -1
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Tag/index.d.cts +2 -0
- package/dist/components/Tag/index.d.ts +2 -2
- package/dist/components/Tagbox/Tagbox.cjs +1 -1
- package/dist/components/Tagbox/Tagbox.cjs.map +1 -1
- package/dist/components/Tagbox/Tagbox.d.cts +67 -0
- package/dist/components/Tagbox/Tagbox.d.ts +46 -3
- package/dist/components/Tagbox/Tagbox.js +5 -3
- package/dist/components/Tagbox/Tagbox.js.map +1 -1
- package/dist/components/Tagbox/index.d.cts +2 -0
- package/dist/components/Tagbox/index.d.ts +2 -2
- package/dist/components/Textarea/Textarea.cjs +1 -1
- package/dist/components/Textarea/Textarea.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.d.cts +51 -0
- package/dist/components/Textarea/Textarea.d.ts +32 -3
- package/dist/components/Textarea/Textarea.js +20 -19
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/components/Textarea/index.d.cts +2 -0
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/Textbox/Textbox.cjs.map +1 -1
- package/dist/components/Textbox/Textbox.d.cts +49 -0
- package/dist/components/Textbox/Textbox.d.ts +30 -1
- package/dist/components/Textbox/Textbox.js.map +1 -1
- package/dist/components/Textbox/index.d.cts +2 -0
- package/dist/components/Textbox/index.d.ts +2 -2
- package/dist/components/Toast/Toast.cjs +1 -1
- package/dist/components/Toast/Toast.cjs.map +1 -1
- package/dist/components/Toast/Toast.d.cts +99 -0
- package/dist/components/Toast/Toast.d.ts +72 -4
- package/dist/components/Toast/Toast.js +3 -2
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/index.d.cts +2 -0
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.cjs.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.d.cts +41 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +21 -0
- package/dist/components/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/components/ToggleButton/index.d.cts +2 -0
- package/dist/components/ToggleButton/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.cts +40 -0
- package/dist/components/Tooltip/Tooltip.d.ts +27 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/index.d.cts +2 -0
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/TruncatedText/TruncatedText.cjs.map +1 -1
- package/dist/components/TruncatedText/TruncatedText.d.cts +44 -0
- package/dist/components/TruncatedText/TruncatedText.d.ts +22 -0
- package/dist/components/TruncatedText/TruncatedText.js.map +1 -1
- package/dist/components/TruncatedText/index.d.cts +2 -0
- package/dist/components/TruncatedText/index.d.ts +2 -2
- package/dist/components/Typography/Typography.cjs.map +1 -1
- package/dist/components/Typography/Typography.d.cts +33 -0
- package/dist/components/Typography/Typography.d.ts +21 -0
- package/dist/components/Typography/Typography.js.map +1 -1
- package/dist/components/Typography/index.d.cts +2 -0
- package/dist/components/Typography/index.d.ts +2 -2
- package/dist/components/UploadArea/UploadArea.cjs +1 -1
- package/dist/components/UploadArea/UploadArea.cjs.map +1 -1
- package/dist/components/UploadArea/UploadArea.d.cts +82 -0
- package/dist/components/UploadArea/UploadArea.d.ts +66 -1
- package/dist/components/UploadArea/UploadArea.js +55 -34
- package/dist/components/UploadArea/UploadArea.js.map +1 -1
- package/dist/components/UploadArea/index.d.cts +2 -0
- package/dist/components/UploadArea/index.d.ts +2 -2
- package/dist/illustration.cjs +1 -0
- package/dist/illustration.js +3 -0
- package/dist/index.d.cts +52 -0
- package/dist/index.d.ts +52 -52
- package/dist/llms-full.txt +5993 -0
- package/dist/llms.txt +118 -0
- package/dist/shape-editor.cjs +2 -1
- package/dist/shape-editor.cjs.map +1 -0
- package/dist/shape-editor.js +8 -3
- package/dist/shape-editor.js.map +1 -0
- package/dist/styles.css +2 -2
- package/dist/tailwind.css +434 -0
- package/dist/tokens/tokens.css +1 -1
- package/dist/utils/cn.d.cts +12 -0
- package/dist/utils/cn.d.ts +10 -0
- package/dist/utils/keyboard.d.cts +3 -0
- package/dist/utils/sheet.cjs +2 -0
- package/dist/utils/sheet.cjs.map +1 -0
- package/dist/utils/sheet.d.cts +17 -0
- package/dist/utils/sheet.d.ts +17 -0
- package/dist/utils/sheet.js +7 -0
- package/dist/utils/sheet.js.map +1 -0
- package/dist/utils/useControllableState.d.cts +17 -0
- package/dist/utils/useModalAutoFocus.d.cts +11 -0
- package/dist/utils/useResizableWidth.cjs +2 -0
- package/dist/utils/useResizableWidth.cjs.map +1 -0
- package/dist/utils/useResizableWidth.d.cts +30 -0
- package/dist/utils/useResizableWidth.d.ts +30 -0
- package/dist/utils/useResizableWidth.js +32 -0
- package/dist/utils/useResizableWidth.js.map +1 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +54 -17
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Point } from "../geometry";
|
|
1
|
+
import type { Point } from "../geometry.js";
|
|
2
|
+
/** 포인트 프롬프트의 점 하나(이미지 px 좌표). */
|
|
2
3
|
export interface AssistantPromptPoint {
|
|
3
4
|
x: number;
|
|
4
5
|
y: number;
|
|
@@ -20,6 +21,7 @@ export type AssistantPrompt = {
|
|
|
20
21
|
/** refine 대상(선택된 폴리곤 좌표). 없으면 신규. */
|
|
21
22
|
base?: Point[];
|
|
22
23
|
};
|
|
24
|
+
/** AI 어시스트 연결부(`assistant` prop). 추론은 호스트가, 프롬프트 수집·프리뷰·커밋은 에디터가 맡는다. */
|
|
23
25
|
export interface EditorAssistant {
|
|
24
26
|
/**
|
|
25
27
|
* 프롬프트를 받아 폴리곤(들)을 추론해 반환. 각 폴리곤은 이미지 좌표 점 배열.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { EditorShape, Point } from "../geometry.cjs";
|
|
2
|
+
import type { RegionMask } from "../overlays.cjs";
|
|
3
|
+
import type { BrushScalarMode } from "../tools.cjs";
|
|
4
|
+
/** 진행 중인 그리기 세션 종류. */
|
|
5
|
+
export type DrawSessionKind = "none" | "brush" | "polygon" | "path";
|
|
6
|
+
/** onDrawSessionChange로 전달되는 그리기 세션 제어 상태. */
|
|
7
|
+
export interface DrawSessionChange {
|
|
8
|
+
/** 세션 진행 중 여부 */
|
|
9
|
+
active: boolean;
|
|
10
|
+
/** 세션 종류 */
|
|
11
|
+
kind: DrawSessionKind;
|
|
12
|
+
/** 세션 내 undo 가능 여부(undoSession) */
|
|
13
|
+
canUndo: boolean;
|
|
14
|
+
/** 세션 내 redo 가능 여부(redoSession) */
|
|
15
|
+
canRedo: boolean;
|
|
16
|
+
/** 붓 세션 상세 — 서브모드, 기존 도형 편집 여부, 편집 대상 도형 id */
|
|
17
|
+
brush?: {
|
|
18
|
+
mode: BrushScalarMode;
|
|
19
|
+
editing: boolean;
|
|
20
|
+
editTargetIds: string[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 호스트가 에디터에 명령을 보내는 창구. 모든 변경은 에디터 히스토리에 쌓여 undo 가능.
|
|
25
|
+
* `handleRef` prop으로 받는다. 마운트 직후(이미지 로드 전) 목표로 줌하려면 `zoomBound` prop을 쓴다.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* const handleRef = useRef<ShapeEditorHandle>(null);
|
|
30
|
+
*
|
|
31
|
+
* <ShapeEditor handleRef={handleRef} document={doc} activeTool={tool} />
|
|
32
|
+
* <Button onClick={() => handleRef.current?.undo()}>실행 취소</Button>
|
|
33
|
+
* <Button onClick={() => handleRef.current?.zoomFit()}>화면 맞춤</Button>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export interface ShapeEditorHandle<TMeta = unknown> {
|
|
37
|
+
/**
|
|
38
|
+
* 드래그·드로잉 중 고빈도 오버레이 프리뷰 — regionMask prop(React 왕복)을 우회해
|
|
39
|
+
* 렌더러에 즉시 반영한다(같은 프레임 보장). null이면 prop 기반 오버레이로 복귀.
|
|
40
|
+
* 문서 상태의 진실은 여전히 regionMask prop — 커밋 후 prop 갱신이 이 값을 덮어쓴다.
|
|
41
|
+
*/
|
|
42
|
+
previewRegionMask: (regionMask: RegionMask | null) => void;
|
|
43
|
+
/** 문서 undo. 그리기 세션이 있으면 `undoSession`이 우선. */
|
|
44
|
+
undo: () => void;
|
|
45
|
+
/** 문서 redo. 그리기 세션이 있으면 `redoSession`이 우선. */
|
|
46
|
+
redo: () => void;
|
|
47
|
+
/** 문서·세션 통틀어 undo 가능 여부 */
|
|
48
|
+
canUndo: () => boolean;
|
|
49
|
+
/** 문서·세션 통틀어 redo 가능 여부 */
|
|
50
|
+
canRedo: () => boolean;
|
|
51
|
+
/** 그리기 세션(붓·폴리곤·패스) 내 undo — 세션 없으면 false. */
|
|
52
|
+
undoSession: () => boolean;
|
|
53
|
+
/** 그리기 세션 내 redo — 세션 없으면 false. */
|
|
54
|
+
redoSession: () => boolean;
|
|
55
|
+
/** 그리기 세션 내 undo 가능 여부 */
|
|
56
|
+
canUndoSession: () => boolean;
|
|
57
|
+
/** 그리기 세션 내 redo 가능 여부 */
|
|
58
|
+
canRedoSession: () => boolean;
|
|
59
|
+
/** 그리는 중인 세션(붓·폴리곤·패스)이 있는지 */
|
|
60
|
+
hasDraftSession: () => boolean;
|
|
61
|
+
/** Esc — 그리기 세션 취소. */
|
|
62
|
+
cancelDraftSession: () => void;
|
|
63
|
+
/** Enter — 그리기 세션 확정(붓·폴리곤). */
|
|
64
|
+
commitDraftSession: () => boolean;
|
|
65
|
+
/** 선택을 지정 id 목록으로 바꾼다 */
|
|
66
|
+
setSelection: (ids: string[]) => void;
|
|
67
|
+
/** 호스트發 생성(예: 레이블 어시스턴트 결과). locked면 적용 없이 onLockedInteraction. */
|
|
68
|
+
createShapes: (shapes: EditorShape<TMeta>[]) => void;
|
|
69
|
+
/** 호스트發 수정(예: 선택 라벨의 클래스/색 변경). locked면 적용 없이 onLockedInteraction. */
|
|
70
|
+
updateShapes: (shapes: EditorShape<TMeta>[]) => void;
|
|
71
|
+
/** locked면 적용 없이 onLockedInteraction. */
|
|
72
|
+
deleteShapes: (ids: string[]) => void;
|
|
73
|
+
/** 현재 문서 도형 스냅샷(decorationShapes 제외) */
|
|
74
|
+
getShapes: () => EditorShape<TMeta>[];
|
|
75
|
+
/** 전체 선택. */
|
|
76
|
+
selectAll: () => void;
|
|
77
|
+
/** 선택 해제. */
|
|
78
|
+
clearSelection: () => void;
|
|
79
|
+
/** 선택 도형 삭제. */
|
|
80
|
+
deleteSelection: () => void;
|
|
81
|
+
/** 선택 도형을 시스템 클립보드에 복사. 사용할 수 없으면 같은 탭 메모리로 대체한다. */
|
|
82
|
+
copySelection: () => void;
|
|
83
|
+
/** 시스템/메모리 클립보드 도형 붙여넣기. 좌표 지정 시 중심을 맞추고, 미지정 시 캐스케이드. */
|
|
84
|
+
paste: (at?: Point) => void;
|
|
85
|
+
/** 선택 도형 복제. */
|
|
86
|
+
duplicate: () => void;
|
|
87
|
+
/** 선택 도형 맨 앞으로. */
|
|
88
|
+
bringToFront: () => void;
|
|
89
|
+
/** 선택 도형 맨 뒤로. */
|
|
90
|
+
sendToBack: () => void;
|
|
91
|
+
/** 줌: 이미지 전체 맞춤. */
|
|
92
|
+
zoomFit: () => void;
|
|
93
|
+
/** 줌: 100%. */
|
|
94
|
+
zoom100: () => void;
|
|
95
|
+
/** 줌: 화면 중심 기준 확대(호스트 줌 버튼용). */
|
|
96
|
+
zoomIn: () => void;
|
|
97
|
+
/** 줌: 화면 중심 기준 축소. */
|
|
98
|
+
zoomOut: () => void;
|
|
99
|
+
/** 줌: 선택 영역 맞춤(애니메이션). */
|
|
100
|
+
zoomToSelection: () => void;
|
|
101
|
+
/** 줌: 지정 도형(레이블)으로 이동(애니메이션, 기존 Editor `handleZoomTo`). */
|
|
102
|
+
zoomToShapes: (ids: string[], duration?: number) => void;
|
|
103
|
+
/** 줌: bbox로 이동(애니메이션). */
|
|
104
|
+
zoomToBounds: (bounds: {
|
|
105
|
+
x: number;
|
|
106
|
+
y: number;
|
|
107
|
+
width: number;
|
|
108
|
+
height: number;
|
|
109
|
+
}, duration?: number) => void;
|
|
110
|
+
/** 붓 도구 전용 명령 묶음(도구 특화라 네임스페이스로 분리). */
|
|
111
|
+
brush: {
|
|
112
|
+
/** 서브모드 — 그리기/지우기. */
|
|
113
|
+
setScalarMode: (mode: BrushScalarMode) => void;
|
|
114
|
+
getScalarMode: () => BrushScalarMode;
|
|
115
|
+
/** 붓 스트로크가 누적 중인지. */
|
|
116
|
+
hasSession: () => boolean;
|
|
117
|
+
/** Enter — 마스크를 폴리곤(들)로 확정. */
|
|
118
|
+
commit: () => boolean;
|
|
119
|
+
/** Esc — 붓 세션 취소. */
|
|
120
|
+
cancel: () => void;
|
|
121
|
+
/** 선택 도형을 베이스 마스크로 붓 편집 시작. 붓 도구일 때만. */
|
|
122
|
+
beginEditFromSelection: () => boolean;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import type { EditorShape, Point } from "../geometry";
|
|
2
|
-
import type { RegionMask } from "../overlays";
|
|
3
|
-
import type { BrushScalarMode } from "../tools";
|
|
1
|
+
import type { EditorShape, Point } from "../geometry.js";
|
|
2
|
+
import type { RegionMask } from "../overlays.js";
|
|
3
|
+
import type { BrushScalarMode } from "../tools.js";
|
|
4
|
+
/** 진행 중인 그리기 세션 종류. */
|
|
4
5
|
export type DrawSessionKind = "none" | "brush" | "polygon" | "path";
|
|
6
|
+
/** onDrawSessionChange로 전달되는 그리기 세션 제어 상태. */
|
|
5
7
|
export interface DrawSessionChange {
|
|
8
|
+
/** 세션 진행 중 여부 */
|
|
6
9
|
active: boolean;
|
|
10
|
+
/** 세션 종류 */
|
|
7
11
|
kind: DrawSessionKind;
|
|
12
|
+
/** 세션 내 undo 가능 여부(undoSession) */
|
|
8
13
|
canUndo: boolean;
|
|
14
|
+
/** 세션 내 redo 가능 여부(redoSession) */
|
|
9
15
|
canRedo: boolean;
|
|
16
|
+
/** 붓 세션 상세 — 서브모드, 기존 도형 편집 여부, 편집 대상 도형 id */
|
|
10
17
|
brush?: {
|
|
11
18
|
mode: BrushScalarMode;
|
|
12
19
|
editing: boolean;
|
|
@@ -15,6 +22,16 @@ export interface DrawSessionChange {
|
|
|
15
22
|
}
|
|
16
23
|
/**
|
|
17
24
|
* 호스트가 에디터에 명령을 보내는 창구. 모든 변경은 에디터 히스토리에 쌓여 undo 가능.
|
|
25
|
+
* `handleRef` prop으로 받는다. 마운트 직후(이미지 로드 전) 목표로 줌하려면 `zoomBound` prop을 쓴다.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* const handleRef = useRef<ShapeEditorHandle>(null);
|
|
30
|
+
*
|
|
31
|
+
* <ShapeEditor handleRef={handleRef} document={doc} activeTool={tool} />
|
|
32
|
+
* <Button onClick={() => handleRef.current?.undo()}>실행 취소</Button>
|
|
33
|
+
* <Button onClick={() => handleRef.current?.zoomFit()}>화면 맞춤</Button>
|
|
34
|
+
* ```
|
|
18
35
|
*/
|
|
19
36
|
export interface ShapeEditorHandle<TMeta = unknown> {
|
|
20
37
|
/**
|
|
@@ -27,18 +44,25 @@ export interface ShapeEditorHandle<TMeta = unknown> {
|
|
|
27
44
|
undo: () => void;
|
|
28
45
|
/** 문서 redo. 그리기 세션이 있으면 `redoSession`이 우선. */
|
|
29
46
|
redo: () => void;
|
|
47
|
+
/** 문서·세션 통틀어 undo 가능 여부 */
|
|
30
48
|
canUndo: () => boolean;
|
|
49
|
+
/** 문서·세션 통틀어 redo 가능 여부 */
|
|
31
50
|
canRedo: () => boolean;
|
|
32
51
|
/** 그리기 세션(붓·폴리곤·패스) 내 undo — 세션 없으면 false. */
|
|
33
52
|
undoSession: () => boolean;
|
|
53
|
+
/** 그리기 세션 내 redo — 세션 없으면 false. */
|
|
34
54
|
redoSession: () => boolean;
|
|
55
|
+
/** 그리기 세션 내 undo 가능 여부 */
|
|
35
56
|
canUndoSession: () => boolean;
|
|
57
|
+
/** 그리기 세션 내 redo 가능 여부 */
|
|
36
58
|
canRedoSession: () => boolean;
|
|
59
|
+
/** 그리는 중인 세션(붓·폴리곤·패스)이 있는지 */
|
|
37
60
|
hasDraftSession: () => boolean;
|
|
38
61
|
/** Esc — 그리기 세션 취소. */
|
|
39
62
|
cancelDraftSession: () => void;
|
|
40
63
|
/** Enter — 그리기 세션 확정(붓·폴리곤). */
|
|
41
64
|
commitDraftSession: () => boolean;
|
|
65
|
+
/** 선택을 지정 id 목록으로 바꾼다 */
|
|
42
66
|
setSelection: (ids: string[]) => void;
|
|
43
67
|
/** 호스트發 생성(예: 레이블 어시스턴트 결과). locked면 적용 없이 onLockedInteraction. */
|
|
44
68
|
createShapes: (shapes: EditorShape<TMeta>[]) => void;
|
|
@@ -46,6 +70,7 @@ export interface ShapeEditorHandle<TMeta = unknown> {
|
|
|
46
70
|
updateShapes: (shapes: EditorShape<TMeta>[]) => void;
|
|
47
71
|
/** locked면 적용 없이 onLockedInteraction. */
|
|
48
72
|
deleteShapes: (ids: string[]) => void;
|
|
73
|
+
/** 현재 문서 도형 스냅샷(decorationShapes 제외) */
|
|
49
74
|
getShapes: () => EditorShape<TMeta>[];
|
|
50
75
|
/** 전체 선택. */
|
|
51
76
|
selectAll: () => void;
|
|
@@ -67,8 +92,9 @@ export interface ShapeEditorHandle<TMeta = unknown> {
|
|
|
67
92
|
zoomFit: () => void;
|
|
68
93
|
/** 줌: 100%. */
|
|
69
94
|
zoom100: () => void;
|
|
70
|
-
/** 줌: 화면 중심 기준
|
|
95
|
+
/** 줌: 화면 중심 기준 확대(호스트 줌 버튼용). */
|
|
71
96
|
zoomIn: () => void;
|
|
97
|
+
/** 줌: 화면 중심 기준 축소. */
|
|
72
98
|
zoomOut: () => void;
|
|
73
99
|
/** 줌: 선택 영역 맞춤(애니메이션). */
|
|
74
100
|
zoomToSelection: () => void;
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ShapeEditor의 공개 계약(props).
|
|
3
|
+
*
|
|
4
|
+
* 에디터가 **자기 도형 문서와 undo/redo 히스토리를 소유**한다(tldraw/Excalidraw 식).
|
|
5
|
+
* 전역 zustand 스토어가 아니라 컴포넌트 로컬 상태라 멀티 인스턴스 안전. 호스트는
|
|
6
|
+
* `initialShapes`로 시드하고, 변경은 이벤트로 받아 영속화하며, 호스트發 수정은
|
|
7
|
+
* 명령형 핸들(ShapeEditorHandle)로 요청한다.
|
|
8
|
+
*
|
|
9
|
+
* 클래스/라벨 개념은 없다 — 색은 style, 분류는 meta(불투명), 새 도형 스타일/메타는
|
|
10
|
+
* draftStyle/draftMeta로 호스트가 주입한다. id는 에디터가 클라이언트 생성한다.
|
|
11
|
+
*/
|
|
12
|
+
import type { ReactNode, Ref } from "react";
|
|
13
|
+
import type { EditorShape, Point, ShapeInteraction, ShapeStyle } from "../geometry.cjs";
|
|
14
|
+
import type { EditorImageDiagnosis } from "../imageDiagnosis.cjs";
|
|
15
|
+
import type { KeymapOverrides } from "../keymap.cjs";
|
|
16
|
+
import type { RegionMask } from "../overlays.cjs";
|
|
17
|
+
import type { EditorStringsOverride } from "../strings.cjs";
|
|
18
|
+
import type { Tool } from "../tools.cjs";
|
|
19
|
+
import type { ViewSettingItemKey, ViewSettings } from "../viewSettings.cjs";
|
|
20
|
+
import type { EditorAssistant } from "./assistant.cjs";
|
|
21
|
+
import type { DrawSessionChange, ShapeEditorHandle } from "./handle.cjs";
|
|
22
|
+
/** 이미지 좌표에 고정해 띄우는 HTML 마커(예: 코멘트 핀). 줌과 무관하게 화면 크기가 유지된다. */
|
|
23
|
+
export interface EditorOverlayMarker<TMeta = unknown> {
|
|
24
|
+
/** 마커 식별자(React key) */
|
|
25
|
+
id: string;
|
|
26
|
+
/** 앵커점(이미지 px 좌표) */
|
|
27
|
+
point: Point;
|
|
28
|
+
/** true면 클릭·키보드 상호작용 없음(button 역할 제거, pointer-events 없음) */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** 선택 상태 — 다른 마커 위로 올리고 aria-pressed를 켠다 */
|
|
31
|
+
selected?: boolean;
|
|
32
|
+
/** 호스트 전용 데이터. renderOverlayMarker·onOverlayMarkerClick에 그대로 돌려준다 */
|
|
33
|
+
meta?: TMeta;
|
|
34
|
+
/**
|
|
35
|
+
* 앵커점을 마커 콘텐츠의 어디에 맞출지. "center"(기본)=중앙, "topLeft"=좌상단 원점.
|
|
36
|
+
* 코멘트 핀처럼 특정 모서리(뾰족한 끝)로 위치를 가리켜야 하는 마커는 "topLeft"를 쓰고
|
|
37
|
+
* 콘텐츠에서 오프셋으로 원하는 모서리를 원점에 맞춘다. 확대/축소 시에도 그 점이 고정된다.
|
|
38
|
+
*/
|
|
39
|
+
anchor?: "center" | "topLeft";
|
|
40
|
+
}
|
|
41
|
+
/** 우클릭 컨텍스트 메뉴 항목(도메인 무관). */
|
|
42
|
+
export type ContextMenuItem = {
|
|
43
|
+
/** 기본 항목 식별자(예: "delete"). 호스트는 라벨 문자열 대신 이걸로 필터링한다. */
|
|
44
|
+
id?: string;
|
|
45
|
+
/** 표시 문구 */
|
|
46
|
+
label: string;
|
|
47
|
+
/** 항목 선택 시 실행 */
|
|
48
|
+
onClick: () => void;
|
|
49
|
+
/** 비활성 표시 */
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
/** 파괴적 동작 강조색 */
|
|
52
|
+
danger?: boolean;
|
|
53
|
+
/** 우측에 표시할 단축키 문구 */
|
|
54
|
+
shortcut?: string;
|
|
55
|
+
/** 라벨 왼쪽에 표시할 아이콘(예: AI 어시스트 항목의 마법봉). */
|
|
56
|
+
icon?: ReactNode;
|
|
57
|
+
} | {
|
|
58
|
+
separator: true;
|
|
59
|
+
};
|
|
60
|
+
/** 외부 도구에 전달되는 포인터 이벤트 요약(DOM 이벤트와 분리된 직렬화 형태). */
|
|
61
|
+
export interface EditorPointerEvent {
|
|
62
|
+
pointerId?: number;
|
|
63
|
+
button?: number;
|
|
64
|
+
shiftKey?: boolean;
|
|
65
|
+
altKey?: boolean;
|
|
66
|
+
ctrlKey?: boolean;
|
|
67
|
+
metaKey?: boolean;
|
|
68
|
+
/** 캔버스 기준 화면 px 좌표 */
|
|
69
|
+
global?: Point;
|
|
70
|
+
/** 포인터가 캔버스 안에서 끝났는지(포인터업) */
|
|
71
|
+
insideCanvas?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/** 캔버스 뷰포트 변환. 화면 좌표 = 이미지 좌표 × scale + (x, y). */
|
|
74
|
+
export interface EditorCanvasViewport {
|
|
75
|
+
/** 줌 배율(1 = 100%) */
|
|
76
|
+
scale: number;
|
|
77
|
+
/** 이미지 원점의 화면 x 오프셋(px) */
|
|
78
|
+
x: number;
|
|
79
|
+
/** 이미지 원점의 화면 y 오프셋(px) */
|
|
80
|
+
y: number;
|
|
81
|
+
}
|
|
82
|
+
/** 외부 도구 포인터 콜백에 전달되는 문맥. */
|
|
83
|
+
export interface EditorExternalToolContext {
|
|
84
|
+
/** 포인터 위치(이미지 px 좌표) */
|
|
85
|
+
point: Point;
|
|
86
|
+
/** 포인터 아래 도형 id(없으면 null/undefined) */
|
|
87
|
+
targetId?: string | null;
|
|
88
|
+
/** 원 포인터 이벤트 요약 */
|
|
89
|
+
event: EditorPointerEvent;
|
|
90
|
+
/** 에디터가 읽기전용(readOnly 또는 locked) 상태인지 */
|
|
91
|
+
readOnly?: boolean;
|
|
92
|
+
/** 현재 뷰포트 변환 */
|
|
93
|
+
viewport: EditorCanvasViewport;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 호스트가 주입하는 커스텀 도구(예: 코멘트 찍기). `activeTool`이 이 `id`와 같을 때
|
|
97
|
+
* 캔버스 포인터 입력이 여기 콜백으로 전달된다.
|
|
98
|
+
*/
|
|
99
|
+
export interface EditorExternalTool {
|
|
100
|
+
/** 도구 id — activeTool 값으로 쓴다(기본 TOOL 값과 겹치지 않게) */
|
|
101
|
+
id: string;
|
|
102
|
+
/** 도구 활성 시 캔버스 CSS cursor */
|
|
103
|
+
cursor?: string;
|
|
104
|
+
/** 캔버스 포인터다운 */
|
|
105
|
+
onPointerDown?: (ctx: EditorExternalToolContext) => void;
|
|
106
|
+
/** 캔버스 포인터무브 */
|
|
107
|
+
onPointerMove?: (ctx: EditorExternalToolContext) => void;
|
|
108
|
+
/** 캔버스 포인터업 */
|
|
109
|
+
onPointerUp?: (ctx: EditorExternalToolContext) => void;
|
|
110
|
+
/**
|
|
111
|
+
* Esc 처리. false를 반환하면 "취소할 것이 없었다"는 뜻으로 Esc 사슬이 계속
|
|
112
|
+
* 진행된다(선택 해제 → 툴 SELECT 복귀 등). void/true는 소비로 간주.
|
|
113
|
+
*/
|
|
114
|
+
onCancel?: () => boolean | void;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* 선택 도형의 동적 정보(에디터 계산). 표시 텍스트는 호스트가 formatSelectionInfo로 결정.
|
|
118
|
+
* 좌표/크기는 이미지 픽셀 단위(뷰포트 줌과 무관).
|
|
119
|
+
*/
|
|
120
|
+
export interface EditorSelectionInfo<TMeta = unknown> {
|
|
121
|
+
shape: EditorShape<TMeta>;
|
|
122
|
+
/** bbox 좌상단 x (이미지 px). */
|
|
123
|
+
x: number;
|
|
124
|
+
/** bbox 좌상단 y (이미지 px). */
|
|
125
|
+
y: number;
|
|
126
|
+
/** bbox 너비 (이미지 px). */
|
|
127
|
+
width: number;
|
|
128
|
+
/** bbox 높이 (이미지 px). */
|
|
129
|
+
height: number;
|
|
130
|
+
}
|
|
131
|
+
/** 편집 문서(시드 계약). id 변경=문서 전환, 같은 id의 URL 변경=화질 스왑. */
|
|
132
|
+
export interface ShapeEditorDocument<TMeta = unknown> {
|
|
133
|
+
/**
|
|
134
|
+
* 문서 identity — 전환/스왑 판정의 유일한 기준. URL은 identity가 아니다
|
|
135
|
+
* (다른 문서가 같은 URL을, 같은 문서가 다른 URL을 가질 수 있음).
|
|
136
|
+
*/
|
|
137
|
+
id: string;
|
|
138
|
+
/** 시드 이미지 URL. 빈 값 = 이미지 없는 문서(도형은 시드, 표시는 이미지 로드까지 보류). */
|
|
139
|
+
imageUrl: string;
|
|
140
|
+
/**
|
|
141
|
+
* 실제로 렌더할 URL(화질 스왑). 바꿔도 문서는 리셋되지 않는다.
|
|
142
|
+
* imageUrl과 픽셀 크기가 다르면 coordinateSize로 좌표계를 고정할 것.
|
|
143
|
+
*/
|
|
144
|
+
displayImageUrl?: string;
|
|
145
|
+
/**
|
|
146
|
+
* 도형 좌표계 크기(원본 픽셀). 지정하면 표시 이미지(썸네일 등)를 이 크기로 늘려
|
|
147
|
+
* 그린다 — 이미지 파일 크기와 좌표계가 다를 때(ShapeViewer coordinateSize와 동일
|
|
148
|
+
* 의미). displayImageUrl과 함께 쓰면 화질 변형 간 픽셀 크기가 달라도 좌표계가
|
|
149
|
+
* 고정된다. 미지정 시 로드된 이미지의 실제 픽셀 크기.
|
|
150
|
+
*
|
|
151
|
+
* imageSize: 좌표공간 안에서 이미지가 차지하는 크기(원점 기준). 이미지가
|
|
152
|
+
* 좌표공간의 일부만 덮는 경우에 지정 — 예: 여러 해상도가 원점을 공유하는
|
|
153
|
+
* 좌표계에서 좌표공간은 최대 해상도, 이미지는 선택 해상도. 미지정 시
|
|
154
|
+
* 좌표공간 전체로 늘려 그린다.
|
|
155
|
+
*/
|
|
156
|
+
coordinateSize?: {
|
|
157
|
+
width: number;
|
|
158
|
+
height: number;
|
|
159
|
+
imageSize?: {
|
|
160
|
+
width: number;
|
|
161
|
+
height: number;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
/** 초기 도형(시드). 이후 문서는 에디터가 소유. */
|
|
165
|
+
initialShapes?: EditorShape<TMeta>[];
|
|
166
|
+
/**
|
|
167
|
+
* 시드 시 1회 적용할 초기 선택(도형 id) — 이후 선택은 에디터 소유라 같은
|
|
168
|
+
* 문서에서 값·데이터가 바뀌어도 되돌리지 않는다. 없는 id는 걸러진다.
|
|
169
|
+
*/
|
|
170
|
+
initialSelectedIds?: string[];
|
|
171
|
+
}
|
|
172
|
+
/** 미니맵 패널이 붙는 뷰어 모서리. */
|
|
173
|
+
export type MinimapPosition = "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
174
|
+
/**
|
|
175
|
+
* `ShapeEditor` props. `TMeta`는 도형 meta, `TMarkerMeta`는 오버레이 마커 meta 타입.
|
|
176
|
+
* 필수는 `document`와 `activeTool`뿐이며 그리기에는 `draftStyle`이 필요하다.
|
|
177
|
+
*/
|
|
178
|
+
export interface ShapeEditorProps<TMeta = unknown, TMarkerMeta = unknown> {
|
|
179
|
+
/** 편집 문서(시드 계약). null = 문서 없음(시드 대기) — 센티널 값 대신 null로. */
|
|
180
|
+
document: ShapeEditorDocument<TMeta> | null;
|
|
181
|
+
/**
|
|
182
|
+
* 시스템 클립보드 공유 범위. 같은 값의 에디터끼리만 도형을 붙여넣을 수 있다.
|
|
183
|
+
* 프로젝트처럼 meta의 의미가 같은 범위의 안정적인 식별자를 전달한다.
|
|
184
|
+
* 미지정 시 현재 문서(identity) 안에서만 공유한다.
|
|
185
|
+
*/
|
|
186
|
+
clipboardScope?: string;
|
|
187
|
+
/**
|
|
188
|
+
* 이미지 로딩/에러 상태 오버레이 커스텀. 미지정 시 기본 스피너/에러 메시지.
|
|
189
|
+
* error일 때 diagnosis에 원인 분류·기술 근거가 실린다(진단 실패 시 null).
|
|
190
|
+
*/
|
|
191
|
+
renderImageState?: (status: "loading" | "error" | "missing", diagnosis?: EditorImageDiagnosis | null) => ReactNode;
|
|
192
|
+
/**
|
|
193
|
+
* true면 이미지를 반투명 검정으로 덮는다(레이블은 위에 밝게).
|
|
194
|
+
* 작업 완료·잠금처럼 이미지를 더 손대지 않는 상태를 보여 줄 때 켠다.
|
|
195
|
+
* @default false
|
|
196
|
+
*/
|
|
197
|
+
dimmed?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* 렌더 시점 도형 상호작용 오버라이드(도메인 무관). 문서를 바꾸지 않고(undo 안전)
|
|
200
|
+
* 표시/선택/편집 가능 여부를 동적으로 덮어쓴다 — 호스트의 가시성 토글(숨김),
|
|
201
|
+
* 임계값 필터(보이되 비활성) 등에 쓴다. null/undefined면 원본 유지.
|
|
202
|
+
* 새로 생성되는 도형에도 즉시 적용된다(id 목록이 아니라 판정 함수라서).
|
|
203
|
+
*/
|
|
204
|
+
overrideShapeInteraction?: (shape: EditorShape<TMeta>) => Partial<ShapeInteraction> | null | undefined;
|
|
205
|
+
/** 선택 도형 id. 제공하면 selection은 호스트가 소유하는 controlled 모드로 동작한다. */
|
|
206
|
+
selectedIds?: string[];
|
|
207
|
+
/**
|
|
208
|
+
* true면 SELECT 도구의 빈 공간 드래그 마퀴(범위 선택)를 끈다 — 클릭 단건 선택만.
|
|
209
|
+
* 빈 공간 클릭 시 선택 해제는 그대로 동작한다. 한 번에 하나만 고르는
|
|
210
|
+
* 뷰어형 화면에서 켠다.
|
|
211
|
+
*/
|
|
212
|
+
disableMarquee?: boolean;
|
|
213
|
+
/** 현재 도구(TOOL 값 또는 externalTools의 id). 호스트가 소유하고 onActiveToolChange로 동기화한다 */
|
|
214
|
+
activeTool: Tool;
|
|
215
|
+
/** 없으면 그리기 비활성. */
|
|
216
|
+
draftStyle?: ShapeStyle;
|
|
217
|
+
/** 새 도형의 meta(예: 현재 클래스 id) */
|
|
218
|
+
draftMeta?: TMeta;
|
|
219
|
+
/**
|
|
220
|
+
* 읽기전용 뷰어 모드. 문서를 바꾸는 모든 상호작용·undo를 막고 알림도 하지 않는다.
|
|
221
|
+
* 선택·팬·줌·복사는 허용하며 컨텍스트 메뉴는 복사/선택/확대만 남는다. 편집 시도 알림이 필요하면 `locked`.
|
|
222
|
+
*/
|
|
223
|
+
readOnly?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* 편집 잠금. true면 문서를 바꾸는 상호작용(그리기/이동/편집/어시스트)을 막고,
|
|
226
|
+
* 편집 시도(그리기 도구·도형 드래그·정점 편집 진입·방향키·삭제·복제·붙여넣기·
|
|
227
|
+
* 잘라내기·핸들의 createShapes/updateShapes/deleteShapes)에는 `onLockedInteraction`을
|
|
228
|
+
* 호출한다. 그 밖의 변경 경로(실행 취소, 겹침 순서, 핸들의 선택 기반 액션 등)는
|
|
229
|
+
* 알림 없이 막는다. 클릭 선택·마퀴·복사·팬·우클릭메뉴·외부도구(코멘트)는 허용.
|
|
230
|
+
* 작업 완료처럼 편집을 막되 시도는 알려야 하는 상태에서 켠다.
|
|
231
|
+
*/
|
|
232
|
+
locked?: boolean;
|
|
233
|
+
/** locked 상태에서 편집을 시도했을 때(호스트가 확인 모달 등을 띄운다). */
|
|
234
|
+
onLockedInteraction?: () => void;
|
|
235
|
+
/**
|
|
236
|
+
* 그리기 도구가 활성인데 `draftStyle`이 없어 그리기를 시작할 수 없을 때 호출.
|
|
237
|
+
* 도메인 무관 — 에디터는 "그릴 값이 없다"는 사실만 알리고, 그 의미(예: 호스트가
|
|
238
|
+
* 스타일을 만들 수단을 안내)는 호스트가 해석한다. 없으면 기존처럼 무시된다.
|
|
239
|
+
*/
|
|
240
|
+
onDrawAttemptWithoutDraft?: () => void;
|
|
241
|
+
/**
|
|
242
|
+
* Esc 처리 사슬(어시스트 취소 → 그리기 취소 → 선택 해제)이 전부 해당 없을 때 호출.
|
|
243
|
+
* 호스트가 "툴을 SELECT로 복귀 → 그래도 idle이면 에디터 닫기" 같은 후속 동작을
|
|
244
|
+
* 잇는 데 쓴다(기존 Editor의 Esc 사슬 꼬리).
|
|
245
|
+
*/
|
|
246
|
+
onIdleEscape?: () => void;
|
|
247
|
+
/**
|
|
248
|
+
* 문서 밖 장식 도형(예: 다른 해상도 가이드 사각형). 도형 레이어에 렌더만 되고
|
|
249
|
+
* 선택·undo 히스토리·히트테스트·getShapes()에서 완전히 제외된다 — 스타일 변경
|
|
250
|
+
* (hover 강조 등)은 prop 교체로 반영되며 히스토리에 쌓이지 않는다.
|
|
251
|
+
* z순서는 style.zIndex로 제어한다(음수면 문서 도형 아래).
|
|
252
|
+
*/
|
|
253
|
+
decorationShapes?: EditorShape<TMeta>[];
|
|
254
|
+
/** 이미지 위 가림 효과. 제품 의미는 호스트가 해석하고 에디터는 순수 영역만 렌더링한다. */
|
|
255
|
+
regionMask?: RegionMask;
|
|
256
|
+
/** 이미지 좌표에 띄울 HTML 마커 목록 */
|
|
257
|
+
overlayMarkers?: EditorOverlayMarker<TMarkerMeta>[];
|
|
258
|
+
/** 마커 내용 렌더(예: `<CommentPin />`). 없으면 마커를 그리지 않는다 */
|
|
259
|
+
renderOverlayMarker?: (marker: EditorOverlayMarker<TMarkerMeta>) => ReactNode;
|
|
260
|
+
/** 마커 클릭·Enter·Space(disabled 제외) */
|
|
261
|
+
onOverlayMarkerClick?: (marker: EditorOverlayMarker<TMarkerMeta>) => void;
|
|
262
|
+
/** 이미지 좌표계에 맞춰 변환되는 커스텀 오버레이 레이어 렌더(이미지 크기·뷰포트 제공) */
|
|
263
|
+
renderImageOverlay?: (props: {
|
|
264
|
+
image: {
|
|
265
|
+
w: number;
|
|
266
|
+
h: number;
|
|
267
|
+
};
|
|
268
|
+
viewport: EditorCanvasViewport;
|
|
269
|
+
}) => ReactNode;
|
|
270
|
+
/** 호스트 정의 커스텀 도구 목록 */
|
|
271
|
+
externalTools?: EditorExternalTool[];
|
|
272
|
+
/**
|
|
273
|
+
* AI 어시스트(SAM 식). 제공하면 ASSISTANT_POLYGON/ASSISTANT_RECT/ASSISTANT_POINT 도구가 동작한다.
|
|
274
|
+
* 에디터가 프롬프트를 모아 infer로 넘기고, 결과 폴리곤을 프리뷰→Enter로 커밋한다
|
|
275
|
+
* (draftStyle/draftMeta 적용). Esc로 취소.
|
|
276
|
+
*/
|
|
277
|
+
assistant?: EditorAssistant;
|
|
278
|
+
/**
|
|
279
|
+
* 선택 도형 위에 표시할 라벨(예: 클래스명). 반환하면 색 점 + 텍스트 배지가 뜬다.
|
|
280
|
+
* 도메인 무관 — meta 해석은 호스트.
|
|
281
|
+
*/
|
|
282
|
+
getSelectionLabel?: (shape: EditorShape<TMeta>) => string | undefined;
|
|
283
|
+
/**
|
|
284
|
+
* 선택 라벨 배지에서 도형 색을 나타내는 색 점을 숨긴다. 기본 false(표시).
|
|
285
|
+
* 클래스 색이 도메인상 의미가 없는 호스트에서 사용.
|
|
286
|
+
* @default false
|
|
287
|
+
*/
|
|
288
|
+
hideSelectionLabelDot?: boolean;
|
|
289
|
+
/**
|
|
290
|
+
* 선택 도형 아래 표시할 정보 텍스트. 에디터가 계산한 픽셀 데이터(info)를 받아
|
|
291
|
+
* 프로덕트별 템플릿으로 포맷한다. 미지정 시 기본값 `W x H px`. 빈 문자열이면 숨김.
|
|
292
|
+
* 점 도형은 표시하지 않는다.
|
|
293
|
+
*/
|
|
294
|
+
formatSelectionInfo?: (info: EditorSelectionInfo<TMeta>) => string;
|
|
295
|
+
/**
|
|
296
|
+
* 보기 설정 초깃값(밝기/대비/픽셀화/선 두께/가이드·ROI 표시/줌 유지/휠 줌).
|
|
297
|
+
* 마운트 시 seed로만 쓰이고 이후엔 에디터 내부 설정 팝오버가 소유한다(uncontrolled).
|
|
298
|
+
* 지정하지 않은 키는 DEFAULT_VIEW_SETTINGS를 따른다.
|
|
299
|
+
* 숫자 값은 VIEW_SETTING_RANGES로 클램프된다(예: brightness 2 → 1.5).
|
|
300
|
+
*/
|
|
301
|
+
defaultViewSettings?: Partial<ViewSettings>;
|
|
302
|
+
/**
|
|
303
|
+
* 보기 설정 외부 동기화(선택). 여기 지정한 키의 값이 바뀌면 에디터 내부 설정에
|
|
304
|
+
* 반영된다(호스트 설정 UI → 에디터 방향). 에디터 내부 변경은 onViewSettingsChange로
|
|
305
|
+
* 나간다. 미지정 키는 계속 에디터 내부 소유.
|
|
306
|
+
* 여기 값도 VIEW_SETTING_RANGES로 클램프되므로, 범위 밖 저장값을 그대로 넘겨도
|
|
307
|
+
* 에디터는 범위 안 값으로 동작한다(호스트 저장값은 다음 설정 변경 시 교정된다).
|
|
308
|
+
*/
|
|
309
|
+
viewSettings?: Partial<ViewSettings>;
|
|
310
|
+
/**
|
|
311
|
+
* 미니맵 패널(축소맵+줌바+설정 버튼) 표시 여부(기본 true).
|
|
312
|
+
* 읽기전용 프리뷰 등 크롬이 부담스러운 콜사이트에서 끈다.
|
|
313
|
+
* @default true
|
|
314
|
+
*/
|
|
315
|
+
showMinimap?: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* 미니맵 패널이 붙는 모서리(기본 "bottom-left"). 위쪽 모서리에서는 줌 바가
|
|
318
|
+
* 위에 고정되고 축소맵이 아래로 펼쳐진다.
|
|
319
|
+
* @default "bottom-left"
|
|
320
|
+
*/
|
|
321
|
+
minimapPosition?: MinimapPosition;
|
|
322
|
+
/**
|
|
323
|
+
* 미니맵 패널의 보기설정(기어) 버튼 표시 여부(기본 true).
|
|
324
|
+
* @default true
|
|
325
|
+
*/
|
|
326
|
+
showViewSettings?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* 우클릭 컨텍스트 메뉴 항목 커스터마이즈. 에디터 기본 항목(defaults: 복제/삭제/
|
|
329
|
+
* z-순서/전체선택 등, readOnly에서는 복사/선택/확대)을 받아 가공(추가·제거·재배열)해
|
|
330
|
+
* 반환한다. 도메인 액션(예: 클래스 변경)을 끼워 넣는 확장 지점. 미지정 시 기본 항목 그대로.
|
|
331
|
+
*/
|
|
332
|
+
getContextMenuItems?: (defaults: ContextMenuItem[], ctx: {
|
|
333
|
+
selectedIds: string[];
|
|
334
|
+
readOnly: boolean;
|
|
335
|
+
}) => ContextMenuItem[];
|
|
336
|
+
/**
|
|
337
|
+
* UI 문자열 부분 재정의(컨텍스트 메뉴/보기설정/미니맵/이미지 로딩·에러).
|
|
338
|
+
* 기본값은 한국어(DEFAULT_EDITOR_STRINGS). 호스트가 번역 값을 만들어 주입한다.
|
|
339
|
+
*/
|
|
340
|
+
strings?: EditorStringsOverride;
|
|
341
|
+
/**
|
|
342
|
+
* 보기 설정 팝오버의 항목 구성(표시 여부·순서). 쓰는 화면에 필요 없는 항목
|
|
343
|
+
* (예: 단순화 강도·픽셀화)을 빼거나 순서를 바꿀 때 준다.
|
|
344
|
+
* 미지정 시 전 항목(기존 순서).
|
|
345
|
+
*/
|
|
346
|
+
viewSettingItems?: ViewSettingItemKey[];
|
|
347
|
+
/**
|
|
348
|
+
* 합치기(우클릭 메뉴) 허용 판정. 선택된 닫힌 도형 2개 이상일 때 호출되며,
|
|
349
|
+
* false면 항목이 비활성화된다. 도메인 제약(예: 같은 클래스끼리만) 주입용.
|
|
350
|
+
* 미지정 시 항상 허용. 결과 도형의 style/meta는 첫 도형을 따른다.
|
|
351
|
+
*/
|
|
352
|
+
canMergeSelection?: (shapes: EditorShape<TMeta>[]) => boolean;
|
|
353
|
+
/**
|
|
354
|
+
* 보기 설정이 에디터 내부(설정 팝오버/단축키)에서 바뀔 때 전체 스냅샷으로 호출.
|
|
355
|
+
* 호스트가 영속화하거나 외부 설정 UI와 동기화하는 데 쓴다.
|
|
356
|
+
*/
|
|
357
|
+
onViewSettingsChange?: (settings: ViewSettings) => void;
|
|
358
|
+
/**
|
|
359
|
+
* 붓 도구 반경(이미지 px, 기본 20).
|
|
360
|
+
* @default 20
|
|
361
|
+
*/
|
|
362
|
+
brushSize?: number;
|
|
363
|
+
/**
|
|
364
|
+
* 단축키 재정의. 액션→조합키("mod+shift+z" 등, 배열 가능). 미지정 액션은 기본값,
|
|
365
|
+
* null이면 비활성. 툴 전환 액션은 onActiveToolChange로 발생한다.
|
|
366
|
+
* (방향키 넛지·Space 팬은 고정.)
|
|
367
|
+
*/
|
|
368
|
+
keymap?: KeymapOverrides;
|
|
369
|
+
/**
|
|
370
|
+
* 특정 레이블/영역으로 애니메이션 줌(기존 Editor `zoomBound`).
|
|
371
|
+
* handleRef.zoomToBounds(즉시 명령)와 달리 **이미지 로드(ready) 이후**에 1회 실행을
|
|
372
|
+
* 보장하는 선언적 원샷 — 딥링크(코멘트/상세 진입)처럼 마운트 시점에 목표가 정해지는
|
|
373
|
+
* 경우에 쓴다. 상호작용 중 즉시 줌은 handleRef의 zoomToBounds/zoomToShapes를 쓸 것.
|
|
374
|
+
*/
|
|
375
|
+
zoomBound?: {
|
|
376
|
+
x: number;
|
|
377
|
+
y: number;
|
|
378
|
+
width: number;
|
|
379
|
+
height: number;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* zoomBound·zoomToShapes 애니메이션 길이(ms, 기본 300).
|
|
383
|
+
* @default 300
|
|
384
|
+
*/
|
|
385
|
+
zoomAnimationDuration?: number;
|
|
386
|
+
/** 에디터 내부에서 활성 도구가 바뀔 때(예: 그리기 완료 후 자동 복귀) 발생. */
|
|
387
|
+
onActiveToolChange?: (tool: Tool) => void;
|
|
388
|
+
/** 선택 도형 id 목록이 바뀔 때. controlled 모드면 이 값으로 selectedIds를 갱신한다 */
|
|
389
|
+
onSelectionChange?: (ids: string[]) => void;
|
|
390
|
+
/**
|
|
391
|
+
* 폴리곤/라인 정점 편집모드 진입/해제 통지(더블클릭 진입, 툴·선택 변경 시 해제).
|
|
392
|
+
* 호스트가 편집모드용 안내 툴바 등을 띄우는 데 쓴다(도메인 무관).
|
|
393
|
+
*/
|
|
394
|
+
onEditingChange?: (editingId: string | null) => void;
|
|
395
|
+
/**
|
|
396
|
+
* 도형이 에디터 문서에 커밋된 뒤 발생하는 후행 이벤트.
|
|
397
|
+
* undo/redo 시에도 현재 문서 기준의 역연산 이벤트로 발생한다.
|
|
398
|
+
*/
|
|
399
|
+
onShapesCreated?: (shapes: EditorShape<TMeta>[]) => void;
|
|
400
|
+
/**
|
|
401
|
+
* 도형 변경이 에디터 문서에 커밋된 뒤 발생하는 후행 이벤트.
|
|
402
|
+
* undo/redo 시에도 현재 문서 기준의 역연산 이벤트로 발생한다.
|
|
403
|
+
*/
|
|
404
|
+
onShapesUpdated?: (shapes: EditorShape<TMeta>[]) => void;
|
|
405
|
+
/**
|
|
406
|
+
* 도형 삭제가 에디터 문서에 커밋된 뒤 발생하는 후행 이벤트.
|
|
407
|
+
* undo/redo 시에도 현재 문서 기준의 역연산 이벤트로 발생한다.
|
|
408
|
+
*/
|
|
409
|
+
onShapesDeleted?: (ids: string[]) => void;
|
|
410
|
+
/** 팬·줌으로 뷰포트가 바뀔 때 */
|
|
411
|
+
onViewportChange?: (viewport: EditorCanvasViewport) => void;
|
|
412
|
+
/** 이동·리사이즈·정점 편집 중인 도형 좌표. 문서 커밋 전 시각 동기화용이다. */
|
|
413
|
+
onShapesTransformPreview?: (updates: {
|
|
414
|
+
id: string;
|
|
415
|
+
points: Point[];
|
|
416
|
+
}[]) => void;
|
|
417
|
+
/**
|
|
418
|
+
* 그리는 중인 임시 도형. ROI 등 호스트 전용 실시간 오버레이 동기화에 사용한다.
|
|
419
|
+
* 자유선 PATH는 커밋 결과와 동일하게 POLYGON 타입으로 전달된다.
|
|
420
|
+
*/
|
|
421
|
+
onDraftShapeChange?: (shape: Pick<EditorShape<TMeta>, "type" | "points" | "meta"> | null) => void;
|
|
422
|
+
/**
|
|
423
|
+
* 그리기 세션(붓·폴리곤·패스)의 제어 상태가 바뀔 때 발생한다.
|
|
424
|
+
* 정점·커서 좌표 변화는 포함하지 않으므로, 임시 도형 좌표가 필요한 호스트는
|
|
425
|
+
* onDraftShapeChange를 사용한다.
|
|
426
|
+
*/
|
|
427
|
+
onDrawSessionChange?: (session: DrawSessionChange) => void;
|
|
428
|
+
/** 호스트發 수정/undo·redo/선택 제어용 명령형 핸들. */
|
|
429
|
+
handleRef?: Ref<ShapeEditorHandle<TMeta>>;
|
|
430
|
+
}
|