@solostylist/image-editor 1.0.12 → 1.0.14
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/lib/actions/add-filter.d.ts +10 -0
- package/lib/actions/add-filter.d.ts.map +1 -0
- package/lib/actions/add-filter.js +2 -1
- package/lib/actions/change-pointer-icon.d.ts +6 -0
- package/lib/actions/change-pointer-icon.d.ts.map +1 -0
- package/lib/actions/change-rotation.d.ts +6 -0
- package/lib/actions/change-rotation.d.ts.map +1 -0
- package/lib/actions/clear-annotations-selections.d.ts +5 -0
- package/lib/actions/clear-annotations-selections.d.ts.map +1 -0
- package/lib/actions/duplicate-annotations.d.ts +9 -0
- package/lib/actions/duplicate-annotations.d.ts.map +1 -0
- package/lib/actions/enable-text-content-edit.d.ts +8 -0
- package/lib/actions/enable-text-content-edit.d.ts.map +1 -0
- package/lib/actions/enable-text-content-edit.js +2 -1
- package/lib/actions/hide-loader.d.ts +5 -0
- package/lib/actions/hide-loader.d.ts.map +1 -0
- package/lib/actions/index.d.ts +40 -0
- package/lib/actions/index.d.ts.map +1 -0
- package/lib/actions/redo.d.ts +5 -0
- package/lib/actions/redo.d.ts.map +1 -0
- package/lib/actions/remove-annotations.d.ts +9 -0
- package/lib/actions/remove-annotations.d.ts.map +1 -0
- package/lib/actions/reset.d.ts +8 -0
- package/lib/actions/reset.d.ts.map +1 -0
- package/lib/actions/select-annotation.d.ts +6 -0
- package/lib/actions/select-annotation.d.ts.map +1 -0
- package/lib/actions/select-tab.d.ts +6 -0
- package/lib/actions/select-tab.d.ts.map +1 -0
- package/lib/actions/select-tool.d.ts +9 -0
- package/lib/actions/select-tool.d.ts.map +1 -0
- package/lib/actions/set-annotation.d.ts +10 -0
- package/lib/actions/set-annotation.d.ts.map +1 -0
- package/lib/actions/set-canvas-size.d.ts +6 -0
- package/lib/actions/set-canvas-size.d.ts.map +1 -0
- package/lib/actions/set-crop.d.ts +9 -0
- package/lib/actions/set-crop.d.ts.map +1 -0
- package/lib/actions/set-crop.js +6 -1
- package/lib/actions/set-feedback.d.ts +6 -0
- package/lib/actions/set-feedback.d.ts.map +1 -0
- package/lib/actions/set-finetune.d.ts +11 -0
- package/lib/actions/set-finetune.d.ts.map +1 -0
- package/lib/actions/set-latest-color.d.ts +6 -0
- package/lib/actions/set-latest-color.d.ts.map +1 -0
- package/lib/actions/set-original-image.d.ts +6 -0
- package/lib/actions/set-original-image.d.ts.map +1 -0
- package/lib/actions/set-resize.d.ts +9 -0
- package/lib/actions/set-resize.d.ts.map +1 -0
- package/lib/actions/set-saved.d.ts +5 -0
- package/lib/actions/set-saved.d.ts.map +1 -0
- package/lib/actions/set-saving.d.ts +6 -0
- package/lib/actions/set-saving.d.ts.map +1 -0
- package/lib/actions/set-show-tabs-menu.d.ts +8 -0
- package/lib/actions/set-show-tabs-menu.d.ts.map +1 -0
- package/lib/actions/set-shown-image-dimensions.d.ts +13 -0
- package/lib/actions/set-shown-image-dimensions.d.ts.map +1 -0
- package/lib/actions/set-shown-image-dimensions.js +3 -2
- package/lib/actions/show-loader.d.ts +5 -0
- package/lib/actions/show-loader.d.ts.map +1 -0
- package/lib/actions/toggle-flip.d.ts +9 -0
- package/lib/actions/toggle-flip.d.ts.map +1 -0
- package/lib/actions/toggle-original-image-display.d.ts +8 -0
- package/lib/actions/toggle-original-image-display.d.ts.map +1 -0
- package/lib/actions/undo.d.ts +5 -0
- package/lib/actions/undo.d.ts.map +1 -0
- package/lib/actions/update-state.d.ts +7 -0
- package/lib/actions/update-state.d.ts.map +1 -0
- package/lib/actions/zoom-canvas.d.ts +10 -0
- package/lib/actions/zoom-canvas.d.ts.map +1 -0
- package/lib/components/app/index.d.ts +3 -0
- package/lib/components/app/index.d.ts.map +1 -0
- package/lib/components/app/index.js +147 -69
- package/lib/components/assembly-point/index.d.ts +8 -0
- package/lib/components/assembly-point/index.d.ts.map +1 -0
- package/lib/components/assembly-point/index.js +11 -10
- package/lib/components/common/annotation-options/annotation-options.constants.d.ts +9 -0
- package/lib/components/common/annotation-options/annotation-options.constants.d.ts.map +1 -0
- package/lib/components/common/annotation-options/index.d.ts +21 -0
- package/lib/components/common/annotation-options/index.d.ts.map +1 -0
- package/lib/components/common/annotation-options/index.js +61 -55
- package/lib/components/common/annotation-options/opacity-field.d.ts +10 -0
- package/lib/components/common/annotation-options/opacity-field.d.ts.map +1 -0
- package/lib/components/common/annotation-options/opacity-field.js +2 -1
- package/lib/components/common/annotation-options/position-fields.d.ts +8 -0
- package/lib/components/common/annotation-options/position-fields.d.ts.map +1 -0
- package/lib/components/common/annotation-options/position-fields.js +15 -13
- package/lib/components/common/annotation-options/shadow-fields.d.ts +9 -0
- package/lib/components/common/annotation-options/shadow-fields.d.ts.map +1 -0
- package/lib/components/common/annotation-options/shadow-fields.js +40 -37
- package/lib/components/common/annotation-options/stroke-fields.d.ts +9 -0
- package/lib/components/common/annotation-options/stroke-fields.d.ts.map +1 -0
- package/lib/components/common/annotation-options/stroke-fields.js +13 -10
- package/lib/components/common/button-with-menu/index.d.ts +16 -0
- package/lib/components/common/button-with-menu/index.d.ts.map +1 -0
- package/lib/components/common/button-with-menu/index.js +37 -27
- package/lib/components/common/color-input/index.d.ts +8 -0
- package/lib/components/common/color-input/index.d.ts.map +1 -0
- package/lib/components/common/color-input/index.js +21 -18
- package/lib/components/common/color-picker-modal/index.d.ts +10 -0
- package/lib/components/common/color-picker-modal/index.d.ts.map +1 -0
- package/lib/components/common/color-picker-modal/index.js +29 -22
- package/lib/components/common/hidden-upload-input/index.d.ts +3 -0
- package/lib/components/common/hidden-upload-input/index.d.ts.map +1 -0
- package/lib/components/common/hidden-upload-input/index.js +5 -2
- package/lib/components/common/icon-wrapper/index.d.ts +16 -0
- package/lib/components/common/icon-wrapper/index.d.ts.map +1 -0
- package/lib/components/common/icon-wrapper/index.js +9 -4
- package/lib/components/common/image-preview-tile/index.d.ts +14 -0
- package/lib/components/common/image-preview-tile/index.d.ts.map +1 -0
- package/lib/components/common/image-preview-tile/index.js +15 -13
- package/lib/components/common/slider/index.d.ts +12 -0
- package/lib/components/common/slider/index.d.ts.map +1 -0
- package/lib/components/common/slider/index.js +30 -23
- package/lib/components/feedback-popup/index.d.ts +8 -0
- package/lib/components/feedback-popup/index.d.ts.map +1 -0
- package/lib/components/feedback-popup/index.js +9 -6
- package/lib/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.d.ts +11 -0
- package/lib/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/arrow-node.d.ts +15 -0
- package/lib/components/layers/design-layer/annotation-nodes/arrow-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/arrow-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.d.ts +14 -0
- package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/image-node.d.ts +14 -0
- package/lib/components/layers/design-layer/annotation-nodes/image-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/image-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/index.d.ts +3 -0
- package/lib/components/layers/design-layer/annotation-nodes/index.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/index.js +3 -3
- package/lib/components/layers/design-layer/annotation-nodes/line-node.d.ts +12 -0
- package/lib/components/layers/design-layer/annotation-nodes/line-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/line-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.d.ts +11 -0
- package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.js +6 -4
- package/lib/components/layers/design-layer/annotation-nodes/polygon-node.d.ts +15 -0
- package/lib/components/layers/design-layer/annotation-nodes/polygon-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/polygon-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/rect-node.d.ts +16 -0
- package/lib/components/layers/design-layer/annotation-nodes/rect-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/rect-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/text-node.d.ts +21 -0
- package/lib/components/layers/design-layer/annotation-nodes/text-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/text-node.js +6 -3
- package/lib/components/layers/design-layer/index.d.ts +3 -0
- package/lib/components/layers/design-layer/index.d.ts.map +1 -0
- package/lib/components/layers/design-layer/index.js +43 -39
- package/lib/components/layers/design-layer/nodes-common-prop-types.d.ts +45 -0
- package/lib/components/layers/design-layer/nodes-common-prop-types.d.ts.map +1 -0
- package/lib/components/layers/design-layer/preview-group.d.ts +3 -0
- package/lib/components/layers/design-layer/preview-group.d.ts.map +1 -0
- package/lib/components/layers/design-layer/preview-group.js +5 -2
- package/lib/components/layers/index.d.ts +3 -0
- package/lib/components/layers/index.d.ts.map +1 -0
- package/lib/components/layers/transformers-layer/crop-transformer.d.ts +3 -0
- package/lib/components/layers/transformers-layer/crop-transformer.d.ts.map +1 -0
- package/lib/components/layers/transformers-layer/crop-transformer.js +65 -62
- package/lib/components/layers/transformers-layer/index.d.ts +3 -0
- package/lib/components/layers/transformers-layer/index.d.ts.map +1 -0
- package/lib/components/layers/transformers-layer/index.js +7 -4
- package/lib/components/layers/transformers-layer/nodes-transformer.d.ts +3 -0
- package/lib/components/layers/transformers-layer/nodes-transformer.d.ts.map +1 -0
- package/lib/components/layers/transformers-layer/nodes-transformer.js +2 -1
- package/lib/components/layers/transformers-layer/transformers-layer.utils.d.ts +42 -0
- package/lib/components/layers/transformers-layer/transformers-layer.utils.d.ts.map +1 -0
- package/lib/components/main-canvas/canvas-node.d.ts +6 -0
- package/lib/components/main-canvas/canvas-node.d.ts.map +1 -0
- package/lib/components/main-canvas/canvas-node.js +13 -9
- package/lib/components/main-canvas/index.d.ts +3 -0
- package/lib/components/main-canvas/index.d.ts.map +1 -0
- package/lib/components/main-canvas/index.js +136 -29
- package/lib/components/main-canvas/touch-zooming-events.d.ts +11 -0
- package/lib/components/main-canvas/touch-zooming-events.d.ts.map +1 -0
- package/lib/components/main-canvas/touch-zooming-events.js +3 -2
- package/lib/components/node-controls/index.d.ts +3 -0
- package/lib/components/node-controls/index.d.ts.map +1 -0
- package/lib/components/node-controls/index.js +16 -11
- package/lib/components/tabs/index.d.ts +6 -0
- package/lib/components/tabs/index.d.ts.map +1 -0
- package/lib/components/tabs/index.js +165 -22
- package/lib/components/tabs/tabs.constants.d.ts +9 -0
- package/lib/components/tabs/tabs.constants.d.ts.map +1 -0
- package/lib/components/tabs-drawer/index.d.ts +6 -0
- package/lib/components/tabs-drawer/index.d.ts.map +1 -0
- package/lib/components/tabs-drawer/index.js +75 -46
- package/lib/components/tools/arrow/arrow-button.d.ts +8 -0
- package/lib/components/tools/arrow/arrow-button.d.ts.map +1 -0
- package/lib/components/tools/arrow/arrow-button.js +2 -1
- package/lib/components/tools/arrow/arrow-options.d.ts +4 -0
- package/lib/components/tools/arrow/arrow-options.d.ts.map +1 -0
- package/lib/components/tools/arrow/arrow-options.js +2 -1
- package/lib/components/tools/arrow/index.d.ts +3 -0
- package/lib/components/tools/arrow/index.d.ts.map +1 -0
- package/lib/components/tools/blur/blur-options.d.ts +6 -0
- package/lib/components/tools/blur/blur-options.d.ts.map +1 -0
- package/lib/components/tools/blur/blur-options.js +11 -9
- package/lib/components/tools/blur/blur.d.ts +8 -0
- package/lib/components/tools/blur/blur.d.ts.map +1 -0
- package/lib/components/tools/blur/blur.js +2 -1
- package/lib/components/tools/blur/index.d.ts +3 -0
- package/lib/components/tools/blur/index.d.ts.map +1 -0
- package/lib/components/tools/brightness/brightness-options.d.ts +6 -0
- package/lib/components/tools/brightness/brightness-options.d.ts.map +1 -0
- package/lib/components/tools/brightness/brightness-options.js +12 -10
- package/lib/components/tools/brightness/brightness.d.ts +8 -0
- package/lib/components/tools/brightness/brightness.d.ts.map +1 -0
- package/lib/components/tools/brightness/brightness.js +2 -1
- package/lib/components/tools/brightness/index.d.ts +3 -0
- package/lib/components/tools/brightness/index.d.ts.map +1 -0
- package/lib/components/tools/contrast/contrast-options.d.ts +6 -0
- package/lib/components/tools/contrast/contrast-options.d.ts.map +1 -0
- package/lib/components/tools/contrast/contrast-options.js +11 -9
- package/lib/components/tools/contrast/contrast.d.ts +8 -0
- package/lib/components/tools/contrast/contrast.d.ts.map +1 -0
- package/lib/components/tools/contrast/contrast.js +2 -1
- package/lib/components/tools/contrast/index.d.ts +3 -0
- package/lib/components/tools/contrast/index.d.ts.map +1 -0
- package/lib/components/tools/crop/crop.constants.d.ts +15 -0
- package/lib/components/tools/crop/crop.constants.d.ts.map +1 -0
- package/lib/components/tools/crop/crop.d.ts +7 -0
- package/lib/components/tools/crop/crop.d.ts.map +1 -0
- package/lib/components/tools/crop/crop.js +25 -22
- package/lib/components/tools/crop/index.d.ts +2 -0
- package/lib/components/tools/crop/index.d.ts.map +1 -0
- package/lib/components/tools/ellipse/ellipse-button.d.ts +8 -0
- package/lib/components/tools/ellipse/ellipse-button.d.ts.map +1 -0
- package/lib/components/tools/ellipse/ellipse-button.js +2 -1
- package/lib/components/tools/ellipse/ellipse-options.d.ts +4 -0
- package/lib/components/tools/ellipse/ellipse-options.d.ts.map +1 -0
- package/lib/components/tools/ellipse/ellipse-options.js +2 -1
- package/lib/components/tools/ellipse/index.d.ts +3 -0
- package/lib/components/tools/ellipse/index.d.ts.map +1 -0
- package/lib/components/tools/filters/filter-item.d.ts +11 -0
- package/lib/components/tools/filters/filter-item.d.ts.map +1 -0
- package/lib/components/tools/filters/filter-item.js +36 -28
- package/lib/components/tools/filters/filters.constants.d.ts +8 -0
- package/lib/components/tools/filters/filters.constants.d.ts.map +1 -0
- package/lib/components/tools/filters/filters.d.ts +6 -0
- package/lib/components/tools/filters/filters.d.ts.map +1 -0
- package/lib/components/tools/filters/filters.js +26 -18
- package/lib/components/tools/filters/index.d.ts +2 -0
- package/lib/components/tools/filters/index.d.ts.map +1 -0
- package/lib/components/tools/flip/flip-x.d.ts +8 -0
- package/lib/components/tools/flip/flip-x.d.ts.map +1 -0
- package/lib/components/tools/flip/flip-x.js +2 -1
- package/lib/components/tools/flip/flip-y.d.ts +8 -0
- package/lib/components/tools/flip/flip-y.d.ts.map +1 -0
- package/lib/components/tools/flip/flip-y.js +2 -1
- package/lib/components/tools/flip/index.d.ts +3 -0
- package/lib/components/tools/flip/index.d.ts.map +1 -0
- package/lib/components/tools/hsv/hsv.d.ts +8 -0
- package/lib/components/tools/hsv/hsv.d.ts.map +1 -0
- package/lib/components/tools/hsv/hsv.js +2 -1
- package/lib/components/tools/hsv/hsvoptions.d.ts +6 -0
- package/lib/components/tools/hsv/hsvoptions.d.ts.map +1 -0
- package/lib/components/tools/hsv/hsvoptions.js +32 -30
- package/lib/components/tools/hsv/index.d.ts +3 -0
- package/lib/components/tools/hsv/index.d.ts.map +1 -0
- package/lib/components/tools/image/image-button.d.ts +8 -0
- package/lib/components/tools/image/image-button.d.ts.map +1 -0
- package/lib/components/tools/image/image-button.js +2 -1
- package/lib/components/tools/image/image-controls.d.ts +13 -0
- package/lib/components/tools/image/image-controls.d.ts.map +1 -0
- package/lib/components/tools/image/image-controls.js +5 -3
- package/lib/components/tools/image/image-options.d.ts +3 -0
- package/lib/components/tools/image/image-options.d.ts.map +1 -0
- package/lib/components/tools/image/image-options.js +24 -21
- package/lib/components/tools/image/images-gallery.d.ts +14 -0
- package/lib/components/tools/image/images-gallery.d.ts.map +1 -0
- package/lib/components/tools/image/images-gallery.js +28 -26
- package/lib/components/tools/image/index.d.ts +3 -0
- package/lib/components/tools/image/index.d.ts.map +1 -0
- package/lib/components/tools/line/index.d.ts +3 -0
- package/lib/components/tools/line/index.d.ts.map +1 -0
- package/lib/components/tools/line/line-button.d.ts +8 -0
- package/lib/components/tools/line/line-button.d.ts.map +1 -0
- package/lib/components/tools/line/line-button.js +2 -1
- package/lib/components/tools/line/line-options.d.ts +4 -0
- package/lib/components/tools/line/line-options.d.ts.map +1 -0
- package/lib/components/tools/line/line-options.js +2 -1
- package/lib/components/tools/pen/index.d.ts +3 -0
- package/lib/components/tools/pen/index.d.ts.map +1 -0
- package/lib/components/tools/pen/pen-button.d.ts +8 -0
- package/lib/components/tools/pen/pen-button.d.ts.map +1 -0
- package/lib/components/tools/pen/pen-button.js +2 -1
- package/lib/components/tools/pen/pen-options.d.ts +3 -0
- package/lib/components/tools/pen/pen-options.d.ts.map +1 -0
- package/lib/components/tools/pen/pen-options.js +6 -4
- package/lib/components/tools/polygon/index.d.ts +3 -0
- package/lib/components/tools/polygon/index.d.ts.map +1 -0
- package/lib/components/tools/polygon/polygon-button.d.ts +8 -0
- package/lib/components/tools/polygon/polygon-button.d.ts.map +1 -0
- package/lib/components/tools/polygon/polygon-button.js +2 -1
- package/lib/components/tools/polygon/polygon-options.d.ts +4 -0
- package/lib/components/tools/polygon/polygon-options.d.ts.map +1 -0
- package/lib/components/tools/polygon/polygon-options.js +2 -1
- package/lib/components/tools/polygon/polygon-sides-field.d.ts +9 -0
- package/lib/components/tools/polygon/polygon-sides-field.d.ts.map +1 -0
- package/lib/components/tools/polygon/polygon-sides-field.js +2 -1
- package/lib/components/tools/polygon/polygon.constants.d.ts +12 -0
- package/lib/components/tools/polygon/polygon.constants.d.ts.map +1 -0
- package/lib/components/tools/rect/index.d.ts +3 -0
- package/lib/components/tools/rect/index.d.ts.map +1 -0
- package/lib/components/tools/rect/rect-button.d.ts +8 -0
- package/lib/components/tools/rect/rect-button.d.ts.map +1 -0
- package/lib/components/tools/rect/rect-button.js +2 -1
- package/lib/components/tools/rect/rect-corner-field.d.ts +9 -0
- package/lib/components/tools/rect/rect-corner-field.d.ts.map +1 -0
- package/lib/components/tools/rect/rect-corner-field.js +2 -1
- package/lib/components/tools/rect/rect-options.d.ts +4 -0
- package/lib/components/tools/rect/rect-options.d.ts.map +1 -0
- package/lib/components/tools/rect/rect-options.js +2 -1
- package/lib/components/tools/rect/rect.constants.d.ts +12 -0
- package/lib/components/tools/rect/rect.constants.d.ts.map +1 -0
- package/lib/components/tools/resize/index.d.ts +2 -0
- package/lib/components/tools/resize/index.d.ts.map +1 -0
- package/lib/components/tools/resize/resize.d.ts +13 -0
- package/lib/components/tools/resize/resize.d.ts.map +1 -0
- package/lib/components/tools/resize/resize.js +41 -34
- package/lib/components/tools/rotate/index.d.ts +3 -0
- package/lib/components/tools/rotate/index.d.ts.map +1 -0
- package/lib/components/tools/rotate/rotate-button.d.ts +8 -0
- package/lib/components/tools/rotate/rotate-button.d.ts.map +1 -0
- package/lib/components/tools/rotate/rotate-button.js +2 -1
- package/lib/components/tools/rotate/rotate-options.d.ts +3 -0
- package/lib/components/tools/rotate/rotate-options.d.ts.map +1 -0
- package/lib/components/tools/rotate/rotate-options.js +51 -45
- package/lib/components/tools/text/index.d.ts +3 -0
- package/lib/components/tools/text/index.d.ts.map +1 -0
- package/lib/components/tools/text/text-button.d.ts +8 -0
- package/lib/components/tools/text/text-button.d.ts.map +1 -0
- package/lib/components/tools/text/text-button.js +2 -1
- package/lib/components/tools/text/text-options/handle-text-change-area.d.ts +4 -0
- package/lib/components/tools/text/text-options/handle-text-change-area.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/index.d.ts +4 -0
- package/lib/components/tools/text/text-options/index.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/index.js +2 -1
- package/lib/components/tools/text/text-options/text-alignment-fields.d.ts +9 -0
- package/lib/components/tools/text/text-options/text-alignment-fields.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/text-alignment-fields.js +26 -21
- package/lib/components/tools/text/text-options/text-controls.d.ts +12 -0
- package/lib/components/tools/text/text-options/text-controls.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/text-controls.js +51 -44
- package/lib/components/tools/text/text-options/text-options.constants.d.ts +14 -0
- package/lib/components/tools/text/text-options/text-options.constants.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/text-spacings-fields.d.ts +10 -0
- package/lib/components/tools/text/text-options/text-spacings-fields.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/text-spacings-fields.js +20 -17
- package/lib/components/tools/tools.constants.d.ts +9 -0
- package/lib/components/tools/tools.constants.d.ts.map +1 -0
- package/lib/components/tools/warmth/index.d.ts +3 -0
- package/lib/components/tools/warmth/index.d.ts.map +1 -0
- package/lib/components/tools/warmth/warmth-options.d.ts +7 -0
- package/lib/components/tools/warmth/warmth-options.d.ts.map +1 -0
- package/lib/components/tools/warmth/warmth-options.js +11 -9
- package/lib/components/tools/warmth/warmth.d.ts +8 -0
- package/lib/components/tools/warmth/warmth.d.ts.map +1 -0
- package/lib/components/tools/warmth/warmth.js +2 -1
- package/lib/components/tools/watermark/index.d.ts +2 -0
- package/lib/components/tools/watermark/index.d.ts.map +1 -0
- package/lib/components/tools/watermark/watermark-padding.d.ts +8 -0
- package/lib/components/tools/watermark/watermark-padding.d.ts.map +1 -0
- package/lib/components/tools/watermark/watermark-padding.js +36 -30
- package/lib/components/tools/watermark/watermark.d.ts +3 -0
- package/lib/components/tools/watermark/watermark.d.ts.map +1 -0
- package/lib/components/tools/watermark/watermark.js +35 -28
- package/lib/components/tools/watermark/watermarks-gallery.d.ts +7 -0
- package/lib/components/tools/watermark/watermarks-gallery.d.ts.map +1 -0
- package/lib/components/tools/watermark/watermarks-gallery.js +22 -18
- package/lib/components/tools-bar/index.d.ts +3 -0
- package/lib/components/tools-bar/index.d.ts.map +1 -0
- package/lib/components/tools-bar/index.js +57 -29
- package/lib/components/tools-bar/tools-bar-item-button.d.ts +23 -0
- package/lib/components/tools-bar/tools-bar-item-button.d.ts.map +1 -0
- package/lib/components/tools-bar/tools-bar-item-button.js +17 -9
- package/lib/components/topbar/canvas-zooming.d.ts +3 -0
- package/lib/components/topbar/canvas-zooming.d.ts.map +1 -0
- package/lib/components/topbar/canvas-zooming.js +54 -46
- package/lib/components/topbar/confirmation-modal.d.ts +8 -0
- package/lib/components/topbar/confirmation-modal.d.ts.map +1 -0
- package/lib/components/topbar/confirmation-modal.js +26 -19
- package/lib/components/topbar/image-dimensions-and-display-toggle.d.ts +3 -0
- package/lib/components/topbar/image-dimensions-and-display-toggle.d.ts.map +1 -0
- package/lib/components/topbar/image-dimensions-and-display-toggle.js +20 -14
- package/lib/components/topbar/index.d.ts +7 -0
- package/lib/components/topbar/index.d.ts.map +1 -0
- package/lib/components/topbar/index.js +49 -35
- package/lib/components/topbar/redo-button.d.ts +3 -0
- package/lib/components/topbar/redo-button.d.ts.map +1 -0
- package/lib/components/topbar/redo-button.js +6 -4
- package/lib/components/topbar/reset-button.d.ts +3 -0
- package/lib/components/topbar/reset-button.d.ts.map +1 -0
- package/lib/components/topbar/reset-button.js +12 -9
- package/lib/components/topbar/save-button.d.ts +3 -0
- package/lib/components/topbar/save-button.d.ts.map +1 -0
- package/lib/components/topbar/save-button.js +69 -57
- package/lib/components/topbar/topbar-action-buttons.d.ts +3 -0
- package/lib/components/topbar/topbar-action-buttons.d.ts.map +1 -0
- package/lib/components/topbar/topbar-action-buttons.js +27 -0
- package/lib/components/topbar/topbar.constants.d.ts +8 -0
- package/lib/components/topbar/topbar.constants.d.ts.map +1 -0
- package/lib/components/topbar/undo-button.d.ts +3 -0
- package/lib/components/topbar/undo-button.d.ts.map +1 -0
- package/lib/components/topbar/undo-button.js +6 -4
- package/lib/context/app-context.d.ts +14 -0
- package/lib/context/app-context.d.ts.map +1 -0
- package/lib/context/app-provider-overriden-value.d.ts +11 -0
- package/lib/context/app-provider-overriden-value.d.ts.map +1 -0
- package/lib/context/app-provider-overriden-value.js +5 -3
- package/lib/context/app-provider.d.ts +10 -0
- package/lib/context/app-provider.d.ts.map +1 -0
- package/lib/context/app-provider.js +13 -9
- package/lib/context/app-reducer.d.ts +5 -0
- package/lib/context/app-reducer.d.ts.map +1 -0
- package/lib/context/app-reducer.js +2 -1
- package/lib/context/default-config.d.ts +4 -0
- package/lib/context/default-config.d.ts.map +1 -0
- package/lib/context/default-config.js +1 -1
- package/lib/context/default-translations.d.ts +4 -0
- package/lib/context/default-translations.d.ts.map +1 -0
- package/lib/context/default-translations.js +465 -113
- package/lib/context/get-initial-app-state.d.ts +5 -0
- package/lib/context/get-initial-app-state.d.ts.map +1 -0
- package/lib/context/get-initial-app-state.js +4 -4
- package/lib/context/index.d.ts +5 -0
- package/lib/context/index.d.ts.map +1 -0
- package/lib/custom/filters/aden.d.ts +14 -0
- package/lib/custom/filters/aden.d.ts.map +1 -0
- package/lib/custom/filters/amaro.d.ts +14 -0
- package/lib/custom/filters/amaro.d.ts.map +1 -0
- package/lib/custom/filters/ashby.d.ts +14 -0
- package/lib/custom/filters/ashby.d.ts.map +1 -0
- package/lib/custom/filters/base-filters.d.ts +14 -0
- package/lib/custom/filters/base-filters.d.ts.map +1 -0
- package/lib/custom/filters/black-and-white.d.ts +14 -0
- package/lib/custom/filters/black-and-white.d.ts.map +1 -0
- package/lib/custom/filters/brannan.d.ts +14 -0
- package/lib/custom/filters/brannan.d.ts.map +1 -0
- package/lib/custom/filters/brooklyn.d.ts +14 -0
- package/lib/custom/filters/brooklyn.d.ts.map +1 -0
- package/lib/custom/filters/charmes.d.ts +14 -0
- package/lib/custom/filters/charmes.d.ts.map +1 -0
- package/lib/custom/filters/clarendon.d.ts +14 -0
- package/lib/custom/filters/clarendon.d.ts.map +1 -0
- package/lib/custom/filters/crema.d.ts +14 -0
- package/lib/custom/filters/crema.d.ts.map +1 -0
- package/lib/custom/filters/dogpatch.d.ts +14 -0
- package/lib/custom/filters/dogpatch.d.ts.map +1 -0
- package/lib/custom/filters/earlybird.d.ts +14 -0
- package/lib/custom/filters/earlybird.d.ts.map +1 -0
- package/lib/custom/filters/gingham.d.ts +14 -0
- package/lib/custom/filters/gingham.d.ts.map +1 -0
- package/lib/custom/filters/ginza.d.ts +14 -0
- package/lib/custom/filters/ginza.d.ts.map +1 -0
- package/lib/custom/filters/hefe.d.ts +14 -0
- package/lib/custom/filters/hefe.d.ts.map +1 -0
- package/lib/custom/filters/helena.d.ts +14 -0
- package/lib/custom/filters/helena.d.ts.map +1 -0
- package/lib/custom/filters/hudson.d.ts +14 -0
- package/lib/custom/filters/hudson.d.ts.map +1 -0
- package/lib/custom/filters/index.d.ts +41 -0
- package/lib/custom/filters/index.d.ts.map +1 -0
- package/lib/custom/filters/juno.d.ts +14 -0
- package/lib/custom/filters/juno.d.ts.map +1 -0
- package/lib/custom/filters/kelvin.d.ts +14 -0
- package/lib/custom/filters/kelvin.d.ts.map +1 -0
- package/lib/custom/filters/lark.d.ts +14 -0
- package/lib/custom/filters/lark.d.ts.map +1 -0
- package/lib/custom/filters/lo-fi.d.ts +14 -0
- package/lib/custom/filters/lo-fi.d.ts.map +1 -0
- package/lib/custom/filters/ludwig.d.ts +14 -0
- package/lib/custom/filters/ludwig.d.ts.map +1 -0
- package/lib/custom/filters/maven.d.ts +14 -0
- package/lib/custom/filters/maven.d.ts.map +1 -0
- package/lib/custom/filters/mayfair.d.ts +14 -0
- package/lib/custom/filters/mayfair.d.ts.map +1 -0
- package/lib/custom/filters/moon.d.ts +14 -0
- package/lib/custom/filters/moon.d.ts.map +1 -0
- package/lib/custom/filters/nashville.d.ts +14 -0
- package/lib/custom/filters/nashville.d.ts.map +1 -0
- package/lib/custom/filters/ninteen-seventy-seven.d.ts +14 -0
- package/lib/custom/filters/ninteen-seventy-seven.d.ts.map +1 -0
- package/lib/custom/filters/perpetua.d.ts +14 -0
- package/lib/custom/filters/perpetua.d.ts.map +1 -0
- package/lib/custom/filters/reyes.d.ts +14 -0
- package/lib/custom/filters/reyes.d.ts.map +1 -0
- package/lib/custom/filters/rise.d.ts +14 -0
- package/lib/custom/filters/rise.d.ts.map +1 -0
- package/lib/custom/filters/sierra.d.ts +14 -0
- package/lib/custom/filters/sierra.d.ts.map +1 -0
- package/lib/custom/filters/skyline.d.ts +14 -0
- package/lib/custom/filters/skyline.d.ts.map +1 -0
- package/lib/custom/filters/slumber.d.ts +14 -0
- package/lib/custom/filters/slumber.d.ts.map +1 -0
- package/lib/custom/filters/stinson.d.ts +14 -0
- package/lib/custom/filters/stinson.d.ts.map +1 -0
- package/lib/custom/filters/sutro.d.ts +14 -0
- package/lib/custom/filters/sutro.d.ts.map +1 -0
- package/lib/custom/filters/toaster.d.ts +14 -0
- package/lib/custom/filters/toaster.d.ts.map +1 -0
- package/lib/custom/filters/valencia.d.ts +14 -0
- package/lib/custom/filters/valencia.d.ts.map +1 -0
- package/lib/custom/filters/vesper.d.ts +14 -0
- package/lib/custom/filters/vesper.d.ts.map +1 -0
- package/lib/custom/filters/walden.d.ts +14 -0
- package/lib/custom/filters/walden.d.ts.map +1 -0
- package/lib/custom/filters/willow.d.ts +14 -0
- package/lib/custom/filters/willow.d.ts.map +1 -0
- package/lib/custom/filters/xpro2.d.ts +14 -0
- package/lib/custom/filters/xpro2.d.ts.map +1 -0
- package/lib/custom/finetunes/custom-threshold.d.ts +15 -0
- package/lib/custom/finetunes/custom-threshold.d.ts.map +1 -0
- package/lib/custom/finetunes/index.d.ts +3 -0
- package/lib/custom/finetunes/index.d.ts.map +1 -0
- package/lib/custom/finetunes/warmth.d.ts +17 -0
- package/lib/custom/finetunes/warmth.d.ts.map +1 -0
- package/lib/demo/app.d.ts +6 -0
- package/lib/demo/app.d.ts.map +1 -0
- package/lib/demo/app.js +142 -86
- package/lib/demo/index.d.ts +2 -0
- package/lib/demo/index.d.ts.map +1 -0
- package/lib/hooks/index.d.ts +14 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +2 -1
- package/lib/hooks/use-annotation/get-bounding-rect-un-scaled.d.ts +19 -0
- package/lib/hooks/use-annotation/get-bounding-rect-un-scaled.d.ts.map +1 -0
- package/lib/hooks/use-annotation/get-new-annotation-preview.d.ts +25 -0
- package/lib/hooks/use-annotation/get-new-annotation-preview.d.ts.map +1 -0
- package/lib/hooks/use-annotation/get-new-annotation-preview.js +2 -2
- package/lib/hooks/use-annotation/index.d.ts +74 -0
- package/lib/hooks/use-annotation/index.d.ts.map +1 -0
- package/lib/hooks/use-annotation/index.js +15 -2
- package/lib/hooks/use-annotation/preview-then-call-annotation-adding.d.ts +3 -0
- package/lib/hooks/use-annotation/preview-then-call-annotation-adding.d.ts.map +1 -0
- package/lib/hooks/use-annotation-events.d.ts +11 -0
- package/lib/hooks/use-annotation-events.d.ts.map +1 -0
- package/lib/hooks/use-app-reducer.d.ts +13 -0
- package/lib/hooks/use-app-reducer.d.ts.map +1 -0
- package/lib/hooks/use-app-reducer.js +2 -1
- package/lib/hooks/use-debounced-callback.d.ts +5 -0
- package/lib/hooks/use-debounced-callback.d.ts.map +1 -0
- package/lib/hooks/use-drag.d.ts +8 -0
- package/lib/hooks/use-drag.d.ts.map +1 -0
- package/lib/hooks/use-filter.d.ts +4 -0
- package/lib/hooks/use-filter.d.ts.map +1 -0
- package/lib/hooks/use-finetune.d.ts +5 -0
- package/lib/hooks/use-finetune.d.ts.map +1 -0
- package/lib/hooks/use-image-editor-actions.d.ts +16 -0
- package/lib/hooks/use-image-editor-actions.d.ts.map +1 -0
- package/lib/hooks/use-image-editor-actions.js +147 -0
- package/lib/hooks/use-phone-screen.d.ts +3 -0
- package/lib/hooks/use-phone-screen.d.ts.map +1 -0
- package/lib/hooks/use-popover.d.ts +11 -0
- package/lib/hooks/use-popover.d.ts.map +1 -0
- package/lib/hooks/use-resize-observer.d.ts +12 -0
- package/lib/hooks/use-resize-observer.d.ts.map +1 -0
- package/lib/hooks/use-resize-observer.js +2 -3
- package/lib/hooks/use-store.d.ts +5 -0
- package/lib/hooks/use-store.d.ts.map +1 -0
- package/lib/hooks/use-transformed-img-data.d.ts +20 -0
- package/lib/hooks/use-transformed-img-data.d.ts.map +1 -0
- package/lib/hooks/use-transformed-img-data.js +13 -9
- package/lib/hooks/use-update-effect.d.ts +5 -0
- package/lib/hooks/use-update-effect.d.ts.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/types/actions.d.ts +197 -0
- package/lib/types/actions.d.ts.map +1 -0
- package/lib/types/annotations.d.ts +181 -0
- package/lib/types/annotations.d.ts.map +1 -0
- package/lib/types/common.d.ts +31 -0
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/config.d.ts +193 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/index.d.ts +6 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/state.d.ts +105 -0
- package/lib/types/state.d.ts.map +1 -0
- package/lib/utils/assign-finetune-names-to-konva.d.ts +3 -0
- package/lib/utils/assign-finetune-names-to-konva.d.ts.map +1 -0
- package/lib/utils/calculate-zoom-data.d.ts +9 -0
- package/lib/utils/calculate-zoom-data.d.ts.map +1 -0
- package/lib/utils/calculate-zoom-data.js +5 -4
- package/lib/utils/compare-ratios.d.ts +3 -0
- package/lib/utils/compare-ratios.d.ts.map +1 -0
- package/lib/utils/constants.d.ts +85 -0
- package/lib/utils/constants.d.ts.map +1 -0
- package/lib/utils/crop-image.d.ts +12 -0
- package/lib/utils/crop-image.d.ts.map +1 -0
- package/lib/utils/crop-image.js +10 -4
- package/lib/utils/debounce.d.ts +3 -0
- package/lib/utils/debounce.d.ts.map +1 -0
- package/lib/utils/deep-merge.d.ts +3 -0
- package/lib/utils/deep-merge.d.ts.map +1 -0
- package/lib/utils/extract-current-design-state.d.ts +11 -0
- package/lib/utils/extract-current-design-state.d.ts.map +1 -0
- package/lib/utils/extract-current-design-state.js +3 -2
- package/lib/utils/extract-name-from-url.d.ts +3 -0
- package/lib/utils/extract-name-from-url.d.ts.map +1 -0
- package/lib/utils/filter-str-to-class.d.ts +4 -0
- package/lib/utils/filter-str-to-class.d.ts.map +1 -0
- package/lib/utils/filter-str-to-class.js +2 -1
- package/lib/utils/finetunes-strs-to-classes.d.ts +4 -0
- package/lib/utils/finetunes-strs-to-classes.d.ts.map +1 -0
- package/lib/utils/finetunes-strs-to-classes.js +2 -1
- package/lib/utils/get-center-rotated-point.d.ts +8 -0
- package/lib/utils/get-center-rotated-point.d.ts.map +1 -0
- package/lib/utils/get-default-save-quality.d.ts +3 -0
- package/lib/utils/get-default-save-quality.d.ts.map +1 -0
- package/lib/utils/get-dimensions-minimal-ratio.d.ts +3 -0
- package/lib/utils/get-dimensions-minimal-ratio.d.ts.map +1 -0
- package/lib/utils/get-elem-document-coords.d.ts +9 -0
- package/lib/utils/get-elem-document-coords.d.ts.map +1 -0
- package/lib/utils/get-file-full-name.d.ts +8 -0
- package/lib/utils/get-file-full-name.d.ts.map +1 -0
- package/lib/utils/get-file-full-name.js +3 -3
- package/lib/utils/get-pointer-offset-position-bounded-to-object.d.ts +21 -0
- package/lib/utils/get-pointer-offset-position-bounded-to-object.d.ts.map +1 -0
- package/lib/utils/get-pointer-offset-position-bounded-to-object.js +2 -1
- package/lib/utils/get-proper-dimensions.d.ts +11 -0
- package/lib/utils/get-proper-dimensions.d.ts.map +1 -0
- package/lib/utils/get-proper-dimensions.js +3 -2
- package/lib/utils/get-proper-image-to-canvas-spacing.d.ts +3 -0
- package/lib/utils/get-proper-image-to-canvas-spacing.d.ts.map +1 -0
- package/lib/utils/get-scroll-offset.d.ts +7 -0
- package/lib/utils/get-scroll-offset.d.ts.map +1 -0
- package/lib/utils/get-size-after-rotation.d.ts +9 -0
- package/lib/utils/get-size-after-rotation.d.ts.map +1 -0
- package/lib/utils/get-zoom-fit-factor.d.ts +4 -0
- package/lib/utils/get-zoom-fit-factor.d.ts.map +1 -0
- package/lib/utils/image-to-base64.d.ts +3 -0
- package/lib/utils/image-to-base64.d.ts.map +1 -0
- package/lib/utils/is-default-zero-values-only.d.ts +3 -0
- package/lib/utils/is-default-zero-values-only.d.ts.map +1 -0
- package/lib/utils/is-same-image.d.ts +3 -0
- package/lib/utils/is-same-image.d.ts.map +1 -0
- package/lib/utils/load-image.d.ts +3 -0
- package/lib/utils/load-image.d.ts.map +1 -0
- package/lib/utils/load-image.js +1 -3
- package/lib/utils/map-crop-box.d.ts +16 -0
- package/lib/utils/map-crop-box.d.ts.map +1 -0
- package/lib/utils/map-number.d.ts +3 -0
- package/lib/utils/map-number.d.ts.map +1 -0
- package/lib/utils/map-position-string-to-point.d.ts +8 -0
- package/lib/utils/map-position-string-to-point.d.ts.map +1 -0
- package/lib/utils/random-id.d.ts +3 -0
- package/lib/utils/random-id.d.ts.map +1 -0
- package/lib/utils/restrict-number.d.ts +3 -0
- package/lib/utils/restrict-number.d.ts.map +1 -0
- package/lib/utils/restrict-number.js +2 -2
- package/lib/utils/serialize-design-state.d.ts +27 -0
- package/lib/utils/serialize-design-state.d.ts.map +1 -0
- package/lib/utils/serialize-design-state.js +5 -3
- package/lib/utils/to-precised-float.d.ts +3 -0
- package/lib/utils/to-precised-float.d.ts.map +1 -0
- package/lib/utils/translator.d.ts +6 -0
- package/lib/utils/translator.d.ts.map +1 -0
- package/lib/utils/translator.js +11 -2
- package/package.json +10 -3
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["annotation", "label", "value", "onChange", "width"];
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
6
|
import MuiSlider from '@mui/material/Slider';
|
|
5
7
|
import { Box, Typography } from '@mui/material';
|
|
6
|
-
import { SFlexBox } from '@solostylist/ui-kit
|
|
8
|
+
import { SFlexBox } from '@solostylist/ui-kit';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
10
|
var Slider = function Slider(_ref) {
|
|
8
11
|
var annotation = _ref.annotation,
|
|
9
12
|
label = _ref.label,
|
|
@@ -11,28 +14,32 @@ var Slider = function Slider(_ref) {
|
|
|
11
14
|
_onChange = _ref.onChange,
|
|
12
15
|
width = _ref.width,
|
|
13
16
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
-
return
|
|
17
|
+
return _jsxs(Box, {
|
|
15
18
|
display: "flex",
|
|
16
19
|
flexDirection: "column",
|
|
17
|
-
alignItems: "flex-start"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
alignItems: "flex-start",
|
|
21
|
+
children: [_jsx(Typography, {
|
|
22
|
+
variant: "subtitle2",
|
|
23
|
+
children: label
|
|
24
|
+
}), _jsxs(SFlexBox, {
|
|
25
|
+
width: "100%",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
gap: 2,
|
|
28
|
+
children: [_jsx(MuiSlider, _objectSpread({
|
|
29
|
+
size: "small",
|
|
30
|
+
onChange: function onChange(_e, val) {
|
|
31
|
+
return _onChange ? _onChange(val) : undefined;
|
|
32
|
+
},
|
|
33
|
+
sx: {
|
|
34
|
+
width: width !== null && width !== void 0 ? width : '200px',
|
|
35
|
+
maxWidth: width !== null && width !== void 0 ? width : '200px'
|
|
36
|
+
},
|
|
37
|
+
value: value
|
|
38
|
+
}, props)), _jsx(Typography, {
|
|
39
|
+
variant: "body2",
|
|
40
|
+
children: "".concat(value).concat(annotation !== null && annotation !== void 0 ? annotation : '')
|
|
41
|
+
})]
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
37
44
|
};
|
|
38
45
|
export default Slider;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
import { SnackbarOrigin } from '@mui/material/Snackbar';
|
|
3
|
+
interface FeedbackPopupProps {
|
|
4
|
+
anchorOrigin?: SnackbarOrigin;
|
|
5
|
+
}
|
|
6
|
+
declare const FeedbackPopup: ({ anchorOrigin, }: FeedbackPopupProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default FeedbackPopup;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/feedback-popup/index.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAkBlE,UAAU,kBAAkB;IAC1B,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B;AAED,QAAA,MAAM,aAAa,GAAI,mBAEpB,kBAAkB,mDA+BpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -4,13 +4,14 @@ import Alert from '@mui/material/Alert';
|
|
|
4
4
|
import { SET_FEEDBACK } from "../../actions";
|
|
5
5
|
import { useStore } from "../../hooks";
|
|
6
6
|
import { FEEDBACK_STATUSES } from "../../utils/constants";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
var defaultAnchorOrigin = {
|
|
8
9
|
horizontal: 'center',
|
|
9
10
|
vertical: 'bottom'
|
|
10
11
|
};
|
|
11
12
|
var ERROR_TO_SEVERITY = _defineProperty(_defineProperty({}, FEEDBACK_STATUSES.ERROR, 'error'), FEEDBACK_STATUSES.WARNING, 'warning');
|
|
12
13
|
var FeedbackPopup = function FeedbackPopup(_ref) {
|
|
13
|
-
var _feedback$duration;
|
|
14
|
+
var _feedback$duration, _feedback$status;
|
|
14
15
|
var _ref$anchorOrigin = _ref.anchorOrigin,
|
|
15
16
|
anchorOrigin = _ref$anchorOrigin === void 0 ? defaultAnchorOrigin : _ref$anchorOrigin;
|
|
16
17
|
var _useStore = useStore(),
|
|
@@ -28,14 +29,16 @@ var FeedbackPopup = function FeedbackPopup(_ref) {
|
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
};
|
|
31
|
-
return
|
|
32
|
+
return _jsx(Snackbar, {
|
|
32
33
|
anchorOrigin: anchorOrigin,
|
|
33
34
|
autoHideDuration: (_feedback$duration = feedback.duration) !== null && _feedback$duration !== void 0 ? _feedback$duration : 5000,
|
|
34
35
|
open: Boolean(feedback.message),
|
|
35
|
-
onClose: onClose
|
|
36
|
-
}, React.createElement(Alert, {
|
|
37
36
|
onClose: onClose,
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
children: _jsx(Alert, {
|
|
38
|
+
onClose: onClose,
|
|
39
|
+
severity: ERROR_TO_SEVERITY[(_feedback$status = feedback.status) !== null && _feedback$status !== void 0 ? _feedback$status : FEEDBACK_STATUSES.ERROR],
|
|
40
|
+
children: feedback.message
|
|
41
|
+
})
|
|
42
|
+
});
|
|
40
43
|
};
|
|
41
44
|
export default FeedbackPopup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import RectNode from './rect-node';
|
|
2
|
+
import EllipseNode from './ellipse-node';
|
|
3
|
+
import PolygonNode from './polygon-node';
|
|
4
|
+
import TextNode from './text-node';
|
|
5
|
+
import ImageNode from './image-node';
|
|
6
|
+
import LineNode from './line-node';
|
|
7
|
+
import ArrowNode from './arrow-node';
|
|
8
|
+
type AnnotationNodeComponent = typeof RectNode | typeof EllipseNode | typeof PolygonNode | typeof TextNode | typeof ImageNode | typeof LineNode | typeof ArrowNode;
|
|
9
|
+
export declare const ANNOTATION_NAMES_TO_COMPONENT: Record<string, AnnotationNodeComponent>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=annotation-nodes.constants.d.ts.map
|
package/lib/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotation-nodes.constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,KAAK,uBAAuB,GACxB,OAAO,QAAQ,GACf,OAAO,WAAW,GAClB,OAAO,WAAW,GAClB,OAAO,QAAQ,GACf,OAAO,SAAS,GAChB,OAAO,QAAQ,GACf,OAAO,SAAS,CAAC;AAErB,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAChD,MAAM,EACN,uBAAuB,CAUxB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import { AnnotationEventHandlers } from 'hooks/use-annotation-events';
|
|
3
|
+
import { NodesCommonProps } from '../nodes-common-prop-types';
|
|
4
|
+
interface ArrowNodeProps extends NodesCommonProps {
|
|
5
|
+
points: number[];
|
|
6
|
+
annotationEvents: AnnotationEventHandlers;
|
|
7
|
+
fill?: string;
|
|
8
|
+
pointerLength?: number;
|
|
9
|
+
pointerWidth?: number;
|
|
10
|
+
lineCap?: string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
declare const ArrowNode: ({ id, name, fill, pointerLength, pointerWidth, scaleX, scaleY, rotation, annotationEvents, points, lineCap, stroke, strokeWidth, shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor, shadowOpacity, opacity, ...otherProps }: ArrowNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default ArrowNode;
|
|
15
|
+
//# sourceMappingURL=arrow-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-node.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/arrow-node.tsx"],"names":[],"mappings":"AAGA,4BAA4B;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AAEpC,UAAU,cAAe,SAAQ,gBAAgB;IAC/C,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,GAAI,iOAqBhB,cAAc,4CA2BhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["id", "name", "fill", "pointerLength", "pointerWidth", "scaleX", "scaleY", "rotation", "annotationEvents", "points", "lineCap", "stroke", "strokeWidth", "shadowOffsetX", "shadowOffsetY", "shadowBlur", "shadowColor", "shadowOpacity", "opacity"];
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
6
|
import { Arrow } from 'react-konva';
|
|
5
7
|
import { nodesCommonDefaults } from "../nodes-common-prop-types";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
9
|
var ArrowNode = function ArrowNode(_ref) {
|
|
7
10
|
var id = _ref.id,
|
|
8
11
|
name = _ref.name,
|
|
@@ -36,7 +39,7 @@ var ArrowNode = function ArrowNode(_ref) {
|
|
|
36
39
|
_ref$opacity = _ref.opacity,
|
|
37
40
|
opacity = _ref$opacity === void 0 ? nodesCommonDefaults.opacity : _ref$opacity,
|
|
38
41
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
39
|
-
return
|
|
42
|
+
return _jsx(Arrow, _objectSpread(_objectSpread({
|
|
40
43
|
id: id,
|
|
41
44
|
name: name,
|
|
42
45
|
rotation: rotation,
|
|
@@ -57,6 +60,6 @@ var ArrowNode = function ArrowNode(_ref) {
|
|
|
57
60
|
pointerWidth: pointerWidth,
|
|
58
61
|
lineCap: lineCap,
|
|
59
62
|
opacity: opacity
|
|
60
|
-
}, annotationEvents, otherProps));
|
|
63
|
+
}, annotationEvents), otherProps));
|
|
61
64
|
};
|
|
62
65
|
export default ArrowNode;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import { AnnotationEventHandlers } from 'hooks/use-annotation-events';
|
|
3
|
+
import { NodesCommonProps } from '../nodes-common-prop-types';
|
|
4
|
+
interface EllipseNodeProps extends NodesCommonProps {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
annotationEvents: AnnotationEventHandlers;
|
|
8
|
+
radiusX?: number;
|
|
9
|
+
radiusY?: number;
|
|
10
|
+
fill?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const EllipseNode: ({ id, name, fill, x, y, radiusX, radiusY, scaleX, scaleY, rotation, annotationEvents, stroke, strokeWidth, shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor, shadowOpacity, opacity, ...otherProps }: EllipseNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default EllipseNode;
|
|
14
|
+
//# sourceMappingURL=ellipse-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipse-node.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/ellipse-node.tsx"],"names":[],"mappings":"AAGA,4BAA4B;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AAEpC,UAAU,gBAAiB,SAAQ,gBAAgB;IACjD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,WAAW,GAAI,2MAqBlB,gBAAgB,4CA2BlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["id", "name", "fill", "x", "y", "radiusX", "radiusY", "scaleX", "scaleY", "rotation", "annotationEvents", "stroke", "strokeWidth", "shadowOffsetX", "shadowOffsetY", "shadowBlur", "shadowColor", "shadowOpacity", "opacity"];
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
6
|
import { Ellipse } from 'react-konva';
|
|
5
7
|
import { nodesCommonDefaults } from "../nodes-common-prop-types";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
9
|
var EllipseNode = function EllipseNode(_ref) {
|
|
7
10
|
var id = _ref.id,
|
|
8
11
|
name = _ref.name,
|
|
@@ -38,7 +41,7 @@ var EllipseNode = function EllipseNode(_ref) {
|
|
|
38
41
|
_ref$opacity = _ref.opacity,
|
|
39
42
|
opacity = _ref$opacity === void 0 ? nodesCommonDefaults.opacity : _ref$opacity,
|
|
40
43
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
-
return
|
|
44
|
+
return _jsx(Ellipse, _objectSpread(_objectSpread({
|
|
42
45
|
id: id,
|
|
43
46
|
name: name,
|
|
44
47
|
rotation: rotation,
|
|
@@ -59,6 +62,6 @@ var EllipseNode = function EllipseNode(_ref) {
|
|
|
59
62
|
offsetX: -radiusX,
|
|
60
63
|
offsetY: -radiusY,
|
|
61
64
|
opacity: opacity
|
|
62
|
-
}, annotationEvents, otherProps));
|
|
65
|
+
}, annotationEvents), otherProps));
|
|
63
66
|
};
|
|
64
67
|
export default EllipseNode;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import { AnnotationEventHandlers } from 'hooks/use-annotation-events';
|
|
3
|
+
import { NodesCommonProps } from '../nodes-common-prop-types';
|
|
4
|
+
interface ImageNodeProps extends NodesCommonProps {
|
|
5
|
+
image: HTMLImageElement | SVGImageElement | ImageBitmap | string;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
annotationEvents: AnnotationEventHandlers;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const ImageNode: ({ id, name, image, x, y, width, height, scaleX, scaleY, rotation, annotationEvents, stroke, strokeWidth, shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor, shadowOpacity, opacity, ...otherProps }: ImageNodeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export default ImageNode;
|
|
14
|
+
//# sourceMappingURL=image-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-node.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/image-node.tsx"],"names":[],"mappings":"AAIA,4BAA4B;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AAEpC,UAAU,cAAe,SAAQ,gBAAgB;IAC/C,KAAK,EAAE,gBAAgB,GAAG,eAAe,GAAG,WAAW,GAAG,MAAM,CAAC;IACjE,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,SAAS,GAAI,yMAqBhB,cAAc,mDAwChB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["id", "name", "image", "x", "y", "width", "height", "scaleX", "scaleY", "rotation", "annotationEvents", "stroke", "strokeWidth", "shadowOffsetX", "shadowOffsetY", "shadowBlur", "shadowColor", "shadowOpacity", "opacity"];
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
7
|
import { useEffect, useState } from 'react';
|
|
6
8
|
import { Image } from 'react-konva';
|
|
7
9
|
import loadImage from "../../../../utils/load-image";
|
|
8
10
|
import { nodesCommonDefaults } from "../nodes-common-prop-types";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
12
|
var ImageNode = function ImageNode(_ref) {
|
|
10
13
|
var id = _ref.id,
|
|
11
14
|
name = _ref.name,
|
|
@@ -54,7 +57,7 @@ var ImageNode = function ImageNode(_ref) {
|
|
|
54
57
|
return null;
|
|
55
58
|
}
|
|
56
59
|
var finalImg = isImgElement ? image : imgElement;
|
|
57
|
-
return
|
|
60
|
+
return _jsx(Image, _objectSpread(_objectSpread(_objectSpread({
|
|
58
61
|
id: id,
|
|
59
62
|
name: name,
|
|
60
63
|
rotation: rotation,
|
|
@@ -73,6 +76,6 @@ var ImageNode = function ImageNode(_ref) {
|
|
|
73
76
|
width: width,
|
|
74
77
|
height: height,
|
|
75
78
|
opacity: opacity
|
|
76
|
-
}, otherProps, annotationEvents, otherProps));
|
|
79
|
+
}, otherProps), annotationEvents), otherProps));
|
|
77
80
|
};
|
|
78
81
|
export default ImageNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/index.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,eAAe,iDAgBpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { useAnnotationEvents, useStore } from "../../../../hooks";
|
|
3
3
|
import MemoizedAnnotation from "./memoized-annotation";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
5
|
var AnnotationNodes = function AnnotationNodes() {
|
|
5
6
|
var _useStore = useStore(),
|
|
6
7
|
_useStore$annotations = _useStore.annotations,
|
|
@@ -10,12 +11,11 @@ var AnnotationNodes = function AnnotationNodes() {
|
|
|
10
11
|
var annotationEvents = useAnnotationEvents();
|
|
11
12
|
return useMemo(function () {
|
|
12
13
|
return Object.values(annotations).map(function (annotation) {
|
|
13
|
-
return
|
|
14
|
-
key: annotation.id,
|
|
14
|
+
return _jsx(MemoizedAnnotation, {
|
|
15
15
|
annotation: annotation,
|
|
16
16
|
annotationEvents: annotationEvents,
|
|
17
17
|
selectionsIds: selectionsIds
|
|
18
|
-
});
|
|
18
|
+
}, annotation.id);
|
|
19
19
|
});
|
|
20
20
|
}, [annotations, annotationEvents, selectionsIds]);
|
|
21
21
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import { AnnotationEventHandlers } from 'hooks/use-annotation-events';
|
|
3
|
+
import { NodesCommonProps } from '../nodes-common-prop-types';
|
|
4
|
+
interface LineNodeProps extends NodesCommonProps {
|
|
5
|
+
points: number[];
|
|
6
|
+
annotationEvents?: AnnotationEventHandlers;
|
|
7
|
+
lineCap?: string;
|
|
8
|
+
tension?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const LineNode: ({ id, name, scaleX, scaleY, rotation, annotationEvents, points, lineCap, stroke, strokeWidth, shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor, shadowOpacity, tension, opacity, ...otherProps }: LineNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default LineNode;
|
|
12
|
+
//# sourceMappingURL=line-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-node.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/line-node.tsx"],"names":[],"mappings":"AAGA,4BAA4B;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AAEpC,UAAU,aAAc,SAAQ,gBAAgB;IAC9C,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,QAAQ,GAAI,uMAmBf,aAAa,4CA0Bf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["id", "name", "scaleX", "scaleY", "rotation", "annotationEvents", "points", "lineCap", "stroke", "strokeWidth", "shadowOffsetX", "shadowOffsetY", "shadowBlur", "shadowColor", "shadowOpacity", "tension", "opacity"];
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
6
|
import { Line } from 'react-konva';
|
|
5
7
|
import { nodesCommonDefaults } from "../nodes-common-prop-types";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
9
|
var LineNode = function LineNode(_ref) {
|
|
7
10
|
var id = _ref.id,
|
|
8
11
|
name = _ref.name,
|
|
@@ -35,7 +38,7 @@ var LineNode = function LineNode(_ref) {
|
|
|
35
38
|
_ref$opacity = _ref.opacity,
|
|
36
39
|
opacity = _ref$opacity === void 0 ? nodesCommonDefaults.opacity : _ref$opacity,
|
|
37
40
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
38
|
-
return
|
|
41
|
+
return _jsx(Line, _objectSpread(_objectSpread({
|
|
39
42
|
id: id,
|
|
40
43
|
name: name,
|
|
41
44
|
rotation: rotation,
|
|
@@ -55,6 +58,6 @@ var LineNode = function LineNode(_ref) {
|
|
|
55
58
|
x: 0,
|
|
56
59
|
y: 0,
|
|
57
60
|
opacity: opacity
|
|
58
|
-
}, annotationEvents, otherProps));
|
|
61
|
+
}, annotationEvents), otherProps));
|
|
59
62
|
};
|
|
60
63
|
export default LineNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import { AnnotationEventHandlers } from 'hooks/use-annotation-events';
|
|
3
|
+
import { Annotation } from 'types/annotations';
|
|
4
|
+
interface MemoizedAnnotationProps {
|
|
5
|
+
annotation: Annotation;
|
|
6
|
+
annotationEvents: AnnotationEventHandlers;
|
|
7
|
+
selectionsIds: string[];
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("react").MemoExoticComponent<({ annotation, annotationEvents, selectionsIds, }: MemoizedAnnotationProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=memoized-annotation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memoized-annotation.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/memoized-annotation.tsx"],"names":[],"mappings":"AAGA,4BAA4B;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,UAAU,uBAAuB;IAC/B,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;+GAME,uBAAuB;AAgB1B,wBAAwC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2
4
|
import { memo } from 'react';
|
|
3
5
|
import { ANNOTATION_NAMES_TO_COMPONENT } from "./annotation-nodes.constants";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
7
|
var MemoizedAnnotation = function MemoizedAnnotation(_ref) {
|
|
5
8
|
var annotation = _ref.annotation,
|
|
6
9
|
annotationEvents = _ref.annotationEvents,
|
|
7
10
|
selectionsIds = _ref.selectionsIds;
|
|
8
11
|
var AnnotationComponent = ANNOTATION_NAMES_TO_COMPONENT[annotation.name];
|
|
9
12
|
if (!AnnotationComponent) return null;
|
|
10
|
-
return
|
|
11
|
-
key: annotation.id,
|
|
13
|
+
return _jsx(AnnotationComponent, _objectSpread({
|
|
12
14
|
annotationEvents: annotationEvents,
|
|
13
15
|
draggable: selectionsIds.includes(annotation.id)
|
|
14
|
-
}, annotation));
|
|
16
|
+
}, annotation), annotation.id);
|
|
15
17
|
};
|
|
16
18
|
export default memo(MemoizedAnnotation);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import { AnnotationEventHandlers } from 'hooks/use-annotation-events';
|
|
3
|
+
import { NodesCommonProps } from '../nodes-common-prop-types';
|
|
4
|
+
interface PolygonNodeProps extends NodesCommonProps {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
annotationEvents: AnnotationEventHandlers;
|
|
8
|
+
radius: number;
|
|
9
|
+
fill?: string;
|
|
10
|
+
sides?: number;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
declare const PolygonNode: ({ id, name, fill, x, y, radius, scaleX, scaleY, rotation, sides, annotationEvents, stroke, strokeWidth, shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor, shadowOpacity, opacity, ...otherProps }: PolygonNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default PolygonNode;
|
|
15
|
+
//# sourceMappingURL=polygon-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polygon-node.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/polygon-node.tsx"],"names":[],"mappings":"AAGA,4BAA4B;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AAEpC,UAAU,gBAAiB,SAAQ,gBAAgB;IACjD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,QAAA,MAAM,WAAW,GAAI,wMAqBlB,gBAAgB,4CA2BlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["id", "name", "fill", "x", "y", "radius", "scaleX", "scaleY", "rotation", "sides", "annotationEvents", "stroke", "strokeWidth", "shadowOffsetX", "shadowOffsetY", "shadowBlur", "shadowColor", "shadowOpacity", "opacity"];
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
6
|
import { RegularPolygon } from 'react-konva';
|
|
5
7
|
import { nodesCommonDefaults } from "../nodes-common-prop-types";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
9
|
var PolygonNode = function PolygonNode(_ref) {
|
|
7
10
|
var id = _ref.id,
|
|
8
11
|
name = _ref.name,
|
|
@@ -37,7 +40,7 @@ var PolygonNode = function PolygonNode(_ref) {
|
|
|
37
40
|
_ref$opacity = _ref.opacity,
|
|
38
41
|
opacity = _ref$opacity === void 0 ? nodesCommonDefaults.opacity : _ref$opacity,
|
|
39
42
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
-
return
|
|
43
|
+
return _jsx(RegularPolygon, _objectSpread(_objectSpread({
|
|
41
44
|
id: id,
|
|
42
45
|
name: name,
|
|
43
46
|
rotation: rotation,
|
|
@@ -58,6 +61,6 @@ var PolygonNode = function PolygonNode(_ref) {
|
|
|
58
61
|
offsetY: -radius,
|
|
59
62
|
sides: sides,
|
|
60
63
|
opacity: opacity
|
|
61
|
-
}, annotationEvents, otherProps));
|
|
64
|
+
}, annotationEvents), otherProps));
|
|
62
65
|
};
|
|
63
66
|
export default PolygonNode;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import { AnnotationEventHandlers } from 'hooks/use-annotation-events';
|
|
3
|
+
import { NodesCommonProps } from '../nodes-common-prop-types';
|
|
4
|
+
interface RectNodeProps extends NodesCommonProps {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
annotationEvents: AnnotationEventHandlers;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
fill?: string;
|
|
11
|
+
cornerRadius?: number;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
declare const RectNode: ({ id, name, fill, x, y, width, height, scaleX, scaleY, rotation, annotationEvents, stroke, strokeWidth, shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor, shadowOpacity, opacity, cornerRadius, ...otherProps }: RectNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default RectNode;
|
|
16
|
+
//# sourceMappingURL=rect-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rect-node.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/rect-node.tsx"],"names":[],"mappings":"AAGA,4BAA4B;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AAEpC,UAAU,aAAc,SAAQ,gBAAgB;IAC9C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,QAAA,MAAM,QAAQ,GAAI,sNAsBf,aAAa,4CA0Bf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["id", "name", "fill", "x", "y", "width", "height", "scaleX", "scaleY", "rotation", "annotationEvents", "stroke", "strokeWidth", "shadowOffsetX", "shadowOffsetY", "shadowBlur", "shadowColor", "shadowOpacity", "opacity", "cornerRadius"];
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
6
|
import { Rect } from 'react-konva';
|
|
5
7
|
import { nodesCommonDefaults } from "../nodes-common-prop-types";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
9
|
var RectNode = function RectNode(_ref) {
|
|
7
10
|
var id = _ref.id,
|
|
8
11
|
name = _ref.name,
|
|
@@ -40,7 +43,7 @@ var RectNode = function RectNode(_ref) {
|
|
|
40
43
|
_ref$cornerRadius = _ref.cornerRadius,
|
|
41
44
|
cornerRadius = _ref$cornerRadius === void 0 ? 0 : _ref$cornerRadius,
|
|
42
45
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
43
|
-
return
|
|
46
|
+
return _jsx(Rect, _objectSpread(_objectSpread({
|
|
44
47
|
id: id,
|
|
45
48
|
name: name,
|
|
46
49
|
rotation: rotation,
|
|
@@ -60,6 +63,6 @@ var RectNode = function RectNode(_ref) {
|
|
|
60
63
|
height: height,
|
|
61
64
|
opacity: opacity,
|
|
62
65
|
cornerRadius: cornerRadius
|
|
63
|
-
}, annotationEvents, otherProps));
|
|
66
|
+
}, annotationEvents), otherProps));
|
|
64
67
|
};
|
|
65
68
|
export default RectNode;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import { AnnotationEventHandlers } from 'hooks/use-annotation-events';
|
|
3
|
+
import { NodesCommonProps } from '../nodes-common-prop-types';
|
|
4
|
+
interface TextNodeProps extends NodesCommonProps {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
annotationEvents: AnnotationEventHandlers;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
text?: string;
|
|
11
|
+
fontFamily?: string;
|
|
12
|
+
fontSize?: number;
|
|
13
|
+
fontStyle?: string;
|
|
14
|
+
fill?: string;
|
|
15
|
+
letterSpacing?: number;
|
|
16
|
+
lineHeight?: number;
|
|
17
|
+
align?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const TextNode: ({ id, name, text, fontFamily, fontSize, fontStyle, fill, x, y, width, height, scaleX, scaleY, rotation, annotationEvents, stroke, strokeWidth, shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor, shadowOpacity, opacity, letterSpacing, lineHeight, align, ...otherProps }: TextNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default TextNode;
|
|
21
|
+
//# sourceMappingURL=text-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-node.d.ts","sourceRoot":"","sources":["../../../../../src/components/layers/design-layer/annotation-nodes/text-node.tsx"],"names":[],"mappings":"AAGA,4BAA4B;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,4BAA4B,CAAC;AAEpC,UAAU,aAAc,SAAQ,gBAAgB;IAC9C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,QAAQ,GAAI,iRA4Bf,aAAa,4CAgCf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["id", "name", "text", "fontFamily", "fontSize", "fontStyle", "fill", "x", "y", "width", "height", "scaleX", "scaleY", "rotation", "annotationEvents", "stroke", "strokeWidth", "shadowOffsetX", "shadowOffsetY", "shadowBlur", "shadowColor", "shadowOpacity", "opacity", "letterSpacing", "lineHeight", "align"];
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
6
|
import { Text } from 'react-konva';
|
|
5
7
|
import { nodesCommonDefaults } from "../nodes-common-prop-types";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
9
|
var TextNode = function TextNode(_ref) {
|
|
7
10
|
var id = _ref.id,
|
|
8
11
|
name = _ref.name,
|
|
@@ -49,7 +52,7 @@ var TextNode = function TextNode(_ref) {
|
|
|
49
52
|
_ref$align = _ref.align,
|
|
50
53
|
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
51
54
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
52
|
-
return
|
|
55
|
+
return _jsx(Text, _objectSpread(_objectSpread({
|
|
53
56
|
id: id,
|
|
54
57
|
name: name,
|
|
55
58
|
rotation: rotation,
|
|
@@ -75,6 +78,6 @@ var TextNode = function TextNode(_ref) {
|
|
|
75
78
|
y: y,
|
|
76
79
|
width: width,
|
|
77
80
|
height: height
|
|
78
|
-
}, annotationEvents, otherProps));
|
|
81
|
+
}, annotationEvents), otherProps));
|
|
79
82
|
};
|
|
80
83
|
export default TextNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/design-layer/index.tsx"],"names":[],"mappings":"AAqBA,QAAA,MAAM,WAAW,sDA+RhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|