@solostylist/image-editor 1.0.0 → 1.0.2
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/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/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-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/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-flip.js +1 -1
- 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 +1 -1
- package/lib/components/assembly-point/index.d.ts +9 -0
- package/lib/components/assembly-point/index.d.ts.map +1 -0
- package/lib/components/assembly-point/index.js +1 -1
- 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 +1 -1
- 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 +1 -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/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 +1 -1
- 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/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/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 +1 -1
- 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/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/icon-wrapper/index.d.ts +16 -0
- package/lib/components/common/icon-wrapper/index.d.ts.map +1 -0
- 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/slider/index.d.ts +12 -0
- package/lib/components/common/slider/index.d.ts.map +1 -0
- package/lib/components/feedback-popup/index.d.ts +8 -0
- package/lib/components/feedback-popup/index.d.ts.map +1 -0
- 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/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/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/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/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/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/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/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/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/index.d.ts +3 -0
- package/lib/components/layers/design-layer/index.d.ts.map +1 -0
- 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/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 +1 -1
- 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/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 +1 -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 +1 -1
- 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 +1 -1
- 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/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 +1 -1
- 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 +1 -1
- 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/tabs.constants.js +1 -1
- 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 +1 -1
- 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-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 +1 -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 +1 -1
- 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 +1 -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.d.ts +8 -0
- package/lib/components/tools/brightness/brightness.d.ts.map +1 -0
- package/lib/components/tools/brightness/brightness.js +1 -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.d.ts +8 -0
- package/lib/components/tools/contrast/contrast.d.ts.map +1 -0
- package/lib/components/tools/contrast/contrast.js +1 -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.constants.js +1 -1
- 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 +1 -1
- 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-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 +1 -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 +10 -0
- package/lib/components/tools/filters/filter-item.d.ts.map +1 -0
- 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 +3 -0
- package/lib/components/tools/filters/filters.d.ts.map +1 -0
- 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 +1 -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 +1 -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/hsvoptions.d.ts +6 -0
- package/lib/components/tools/hsv/hsvoptions.d.ts.map +1 -0
- 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-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 +1 -1
- 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 +1 -1
- 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/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-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 +1 -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-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 +1 -1
- 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-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 +1 -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.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 +1 -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-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 +1 -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/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-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 +1 -1
- 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-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/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 +1 -1
- 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 +1 -1
- 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/tools.constants.d.ts +9 -0
- package/lib/components/tools/tools.constants.d.ts.map +1 -0
- package/lib/components/tools/tools.constants.js +1 -1
- 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.d.ts +8 -0
- package/lib/components/tools/warmth/warmth.d.ts.map +1 -0
- 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.d.ts +3 -0
- package/lib/components/tools/watermark/watermark.d.ts.map +1 -0
- package/lib/components/tools/watermark/watermark.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/confirmation-modal.d.ts +8 -0
- package/lib/components/topbar/confirmation-modal.d.ts.map +1 -0
- 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/index.d.ts +7 -0
- package/lib/components/topbar/index.d.ts.map +1 -0
- package/lib/components/topbar/index.js +1 -1
- 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/reset-button.d.ts +3 -0
- package/lib/components/topbar/reset-button.d.ts.map +1 -0
- 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 +1 -1
- 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/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.d.ts +10 -0
- package/lib/context/app-provider.d.ts.map +1 -0
- package/lib/context/app-provider.js +1 -1
- package/lib/context/app-reducer.d.ts +5 -0
- package/lib/context/app-reducer.d.ts.map +1 -0
- 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 +3 -0
- package/lib/context/default-translations.d.ts.map +1 -0
- package/lib/context/default-translations.js +1 -1
- 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 +1 -1
- 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 +1 -0
- package/lib/demo/index.d.ts +2 -0
- package/lib/demo/index.d.ts.map +1 -0
- package/lib/demo/index.js +1 -0
- package/lib/hooks/index.d.ts +13 -0
- package/lib/hooks/index.d.ts.map +1 -0
- 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/index.d.ts +74 -0
- package/lib/hooks/use-annotation/index.d.ts.map +1 -0
- package/lib/hooks/use-annotation/index.js +1 -1
- 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-annotation-events.js +1 -1
- 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-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-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-store.d.ts +5 -0
- package/lib/hooks/use-store.d.ts.map +1 -0
- package/lib/hooks/use-store.js +1 -1
- 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 +1 -1
- 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 -345
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +1 -1
- package/lib/types/actions.d.ts +204 -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/annotations.js +1 -1
- package/lib/types/common.d.ts +31 -0
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/config.d.ts +144 -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/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/constants.js +1 -1
- package/lib/utils/crop-image.d.ts +10 -0
- package/lib/utils/crop-image.d.ts.map +1 -0
- 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/deep-merge.js +1 -1
- 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-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/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 +1 -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-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 +1 -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-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/is-same-image.js +1 -1
- package/lib/utils/load-image.d.ts +3 -0
- package/lib/utils/load-image.d.ts.map +1 -0
- 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/map-position-string-to-point.js +1 -1
- 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/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 +1 -0
- 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 +3 -0
- package/lib/utils/translator.d.ts.map +1 -0
- package/lib/utils/translator.js +1 -1
- package/package.json +63 -61
- package/lib/components/tools/crop/crop-preset-item.js +0 -1
- package/lib/components/tools/crop/crop-presets-option.js +0 -1
- package/lib/components/tools-bar/tools-bar-item-options-wrapper.js +0 -1
- package/lib/utils/cloudimage-query-to-design-state.js +0 -1
- package/lib/utils/get-image-sealing-params.js +0 -1
- package/lib/utils/operations-to-cloudimage-url.js +0 -1
- package/lib/utils/rgba-to-hexa.js +0 -1
- package/lib/utils/sha1.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/annotation-options/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAY/C,UAAU,cAAc;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;CAC3B;AAED,UAAU,sBAAsB;IAC9B,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,4BAA4B,CAAC,EAAE,cAAc,EAAE,CAAC;IAChD,2BAA2B,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/C,6BAA6B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IACzE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,QAAA,MAAM,iBAAiB,GAAI,kLAUxB,sBAAsB,4CAgJxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import _extends from"@babel/runtime/helpers/extends";import _defineProperty from"@babel/runtime/helpers/defineProperty";import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["children","morePoppableOptionsPrepended","moreOptionsPopupComponentsObj","morePoppableOptionsAppended","annotation","updateAnnotation","hideFillOption","hidePositionField"];function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{BorderColorOutlined,FlareOutlined,GpsFixedOutlined,OpacityOutlined}from"@mui/icons-material";import Box from"@mui/material/Box";import Menu from"@mui/material/Menu";import Typography from"@mui/material/Typography";import{useStore}from"hooks";import{useCallback,useMemo,useState}from"react";import{SFlexBox}from"@solostylist/ui-kit/core";import ColorInput from"../color-input";import SIconButtonWrapper from"../icon-wrapper";import{POPPABLE_OPTIONS}from"./annotation-options.constants";import OpacityField from"./opacity-field";import PositionFields from"./position-fields";import ShadowFields from"./shadow-fields";import StrokeFields from"./stroke-fields";var AnnotationOptions=function(a){var b=a.children,c=void 0===b?void 0:b,d=a.morePoppableOptionsPrepended,e=void 0===d?[]:d,f=a.moreOptionsPopupComponentsObj,g=void 0===f?{}:f,h=a.morePoppableOptionsAppended,i=void 0===h?[]:h,j=a.annotation,k=a.updateAnnotation,l=a.hideFillOption,m=a.hidePositionField,n=void 0!==m&&m,o=_objectWithoutProperties(a,_excluded),p=useState(null),q=_slicedToArray(p,2),r=q[0],s=q[1],u=useState(null),v=_slicedToArray(u,2),w=v[0],x=v[1],y=useStore(),z=y.
|
|
1
|
+
import _extends from"@babel/runtime/helpers/extends";import _defineProperty from"@babel/runtime/helpers/defineProperty";import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["children","morePoppableOptionsPrepended","moreOptionsPopupComponentsObj","morePoppableOptionsAppended","annotation","updateAnnotation","hideFillOption","hidePositionField"];function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{BorderColorOutlined,FlareOutlined,GpsFixedOutlined,OpacityOutlined}from"@mui/icons-material";import Box from"@mui/material/Box";import Menu from"@mui/material/Menu";import Typography from"@mui/material/Typography";import{useStore}from"hooks";import{useCallback,useMemo,useState}from"react";import{SFlexBox}from"@solostylist/ui-kit/core";import ColorInput from"../color-input";import SIconButtonWrapper from"../icon-wrapper";import{POPPABLE_OPTIONS}from"./annotation-options.constants";import OpacityField from"./opacity-field";import PositionFields from"./position-fields";import ShadowFields from"./shadow-fields";import StrokeFields from"./stroke-fields";var AnnotationOptions=function(a){var b=a.children,c=void 0===b?void 0:b,d=a.morePoppableOptionsPrepended,e=void 0===d?[]:d,f=a.moreOptionsPopupComponentsObj,g=void 0===f?{}:f,h=a.morePoppableOptionsAppended,i=void 0===h?[]:h,j=a.annotation,k=a.updateAnnotation,l=a.hideFillOption,m=a.hidePositionField,n=void 0!==m&&m,o=_objectWithoutProperties(a,_excluded),p=useState(null),q=_slicedToArray(p,2),r=q[0],s=q[1],u=useState(null),v=_slicedToArray(u,2),w=v[0],x=v[1],y=useStore(),z=y.t,t=useMemo(function(){return[].concat(_toConsumableArray(e||[]),[{titleKey:"opacity",name:POPPABLE_OPTIONS.OPACITY,Icon:OpacityOutlined},{titleKey:"stroke",name:POPPABLE_OPTIONS.STROKE,Icon:BorderColorOutlined},{titleKey:"shadow",name:POPPABLE_OPTIONS.SHADOW,Icon:FlareOutlined},n?void 0:{titleKey:"position",name:POPPABLE_OPTIONS.POSITION,Icon:GpsFixedOutlined}])},[e,n]),A=useMemo(function(){return _objectSpread(_objectSpread({},g),{},_defineProperty(_defineProperty(_defineProperty(_defineProperty({},POPPABLE_OPTIONS.OPACITY,OpacityField),POPPABLE_OPTIONS.STROKE,StrokeFields),POPPABLE_OPTIONS.SHADOW,ShadowFields),POPPABLE_OPTIONS.POSITION,PositionFields),i||[])},[g,i]),B=useCallback(function(a,b){var c=null===a||void 0===a?void 0:a.currentTarget;s(c||null),x(b||null)},[]),C=useCallback(function(a){k({fill:a})},[k]),D=r&&w&&A[w];return React.createElement(SFlexBox,{alignItems:"center",justifyContent:"center",gap:1},!(void 0!==l&&l)&&React.createElement(ColorInput,{color:j.fill,onChange:C,colorFor:"fill"}),c,t.map(function(a){return a&&React.createElement(SIconButtonWrapper,{key:a.name,title:z(a.titleKey),onClick:function(b){return B(b,a.name)},active:w===a.name},React.createElement(a.Icon,null))}),D&&React.createElement(Menu,{anchorEl:r,open:!!r,onClose:B,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},slotProps:{paper:{sx:{px:2,py:1}}}},w===POPPABLE_OPTIONS.POSITION?function(){return React.createElement(React.Fragment,null,React.createElement(Typography,{variant:"subtitle2",mb:1},z("position")),React.createElement(Box,{sx:{display:"grid",gridTemplateColumns:"repeat(4, auto)"}},React.createElement(D,_extends({annotation:j,updateAnnotation:k,t:z},o))))}():React.createElement(D,_extends({annotation:j,updateAnnotation:k,t:z},o))))};export default AnnotationOptions;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import { AnnotationsCommon } from 'types';
|
|
3
|
+
interface OpacityFieldProps {
|
|
4
|
+
annotation: AnnotationsCommon;
|
|
5
|
+
updateAnnotation: (updates: Partial<AnnotationsCommon>) => void;
|
|
6
|
+
t: (key: string) => string;
|
|
7
|
+
}
|
|
8
|
+
declare const OpacityField: ({ annotation, updateAnnotation, t, }: OpacityFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default OpacityField;
|
|
10
|
+
//# sourceMappingURL=opacity-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opacity-field.d.ts","sourceRoot":"","sources":["../../../../src/components/common/annotation-options/opacity-field.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAO1C,UAAU,iBAAiB;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAChE,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,YAAY,GAAI,sCAInB,iBAAiB,4CAsBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import restrictNumber from"utils/restrict-number";import Slider from"../slider";var MIN_PERCENTANGE=0,MAX_PERCENTANGE=1,OpacityField=function(a){var b=a.annotation,c=a.updateAnnotation,d=a.t,e=b.opacity,f=Math.round(100*e);return React.createElement(Slider,{label:d("transparency"),onChange:function(a){c({opacity:restrictNumber(a/100,MIN_PERCENTANGE,MAX_PERCENTANGE)})},value:f,annotation:"%"})};export default OpacityField;
|
|
1
|
+
import restrictNumber from"utils/restrict-number";import Slider from"../slider";var MIN_PERCENTANGE=0,MAX_PERCENTANGE=1,OpacityField=function(a){var b=a.annotation,c=a.updateAnnotation,d=a.t,e=b.opacity,f=Math.round(100*(null!==e&&void 0!==e?e:0));return React.createElement(Slider,{label:d("transparency"),onChange:function(a){c({opacity:restrictNumber(a/100,MIN_PERCENTANGE,MAX_PERCENTANGE)})},value:f,annotation:"%"})};export default OpacityField;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Annotation } from 'types';
|
|
2
|
+
interface PositionFieldsProps {
|
|
3
|
+
annotation: Annotation;
|
|
4
|
+
updateAnnotation: (updates: Partial<Annotation>) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const PositionFields: ({ annotation, updateAnnotation, }: PositionFieldsProps) => import("react/jsx-runtime").JSX.Element[];
|
|
7
|
+
export default PositionFields;
|
|
8
|
+
//# sourceMappingURL=position-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"position-fields.d.ts","sourceRoot":"","sources":["../../../../src/components/common/annotation-options/position-fields.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,UAAU,mBAAmB;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;CAC1D;AAED,QAAA,MAAM,cAAc,GAAI,mCAGrB,mBAAmB,8CAkCrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnnotationsCommon } from 'types';
|
|
2
|
+
interface ShadowFieldsProps {
|
|
3
|
+
annotation: AnnotationsCommon;
|
|
4
|
+
updateAnnotation: (updates: Partial<AnnotationsCommon>) => void;
|
|
5
|
+
t: (key: string) => string;
|
|
6
|
+
}
|
|
7
|
+
declare const ShadowFields: ({ annotation, updateAnnotation, t, }: ShadowFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ShadowFields;
|
|
9
|
+
//# sourceMappingURL=shadow-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow-fields.d.ts","sourceRoot":"","sources":["../../../../src/components/common/annotation-options/shadow-fields.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,UAAU,iBAAiB;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAChE,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,YAAY,GAAI,sCAInB,iBAAiB,4CAiEnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import ColorInput from"components/common/color-input";import restrictNumber from"utils/restrict-number";import Slider from"../slider";var ShadowFields=function(a){var b=a.annotation,c=a.updateAnnotation,d=a.t,e=b.shadowOffsetX,f=b.shadowOffsetY,g=b.shadowBlur,h=b.shadowColor,i=b.shadowOpacity,j=function(a,b){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,e=3<arguments.length&&arguments[3]!==void 0?arguments[3]:100;c(_defineProperty({},a,restrictNumber(b,d,e)))};return React.createElement(React.Fragment,null,React.createElement(Slider,{label:d("horizontal"),annotation:"px",min:-100,max:100,onChange:function(a){return j("shadowOffsetX",a,-100,100)},value:e||0}),React.createElement(Slider,{label:d("vertical"),annotation:"px",min:-100,max:100,onChange:function(a){return j("shadowOffsetY",a,-100,100)},value:f||0}),React.createElement(Slider,{label:d("blur"),annotation:"%",onChange:function(a){return j("shadowBlur",a)},value:g}),React.createElement(Slider,{label:d("opacity"),annotation:"%",onChange:function(a){return j("shadowOpacity",a/100,0,1)},value:Math.round(100*i)}),React.createElement(ColorInput,{color:h,onChange:function(a){c({shadowColor:a})},colorFor:"shadow"}))};export default ShadowFields;
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import ColorInput from"components/common/color-input";import restrictNumber from"utils/restrict-number";import Slider from"../slider";var ShadowFields=function(a){var b=a.annotation,c=a.updateAnnotation,d=a.t,e=b.shadowOffsetX,f=b.shadowOffsetY,g=b.shadowBlur,h=b.shadowColor,i=b.shadowOpacity,j=function(a,b){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:0,e=3<arguments.length&&arguments[3]!==void 0?arguments[3]:100;c(_defineProperty({},a,restrictNumber(b,d,e)))};return React.createElement(React.Fragment,null,React.createElement(Slider,{label:d("horizontal"),annotation:"px",min:-100,max:100,onChange:function(a){return j("shadowOffsetX",a,-100,100)},value:e||0}),React.createElement(Slider,{label:d("vertical"),annotation:"px",min:-100,max:100,onChange:function(a){return j("shadowOffsetY",a,-100,100)},value:f||0}),React.createElement(Slider,{label:d("blur"),annotation:"%",onChange:function(a){return j("shadowBlur",a)},value:g}),React.createElement(Slider,{label:d("opacity"),annotation:"%",onChange:function(a){return j("shadowOpacity",a/100,0,1)},value:Math.round(100*(null!==i&&void 0!==i?i:0))}),React.createElement(ColorInput,{color:h,onChange:function(a){c({shadowColor:a})},colorFor:"shadow"}))};export default ShadowFields;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnnotationsCommon } from 'types';
|
|
2
|
+
interface StrokeFieldsProps {
|
|
3
|
+
annotation: AnnotationsCommon;
|
|
4
|
+
updateAnnotation: (updates: Partial<AnnotationsCommon>) => void;
|
|
5
|
+
t: (key: string) => string;
|
|
6
|
+
}
|
|
7
|
+
declare const StrokeFields: ({ annotation, updateAnnotation, t, }: StrokeFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default StrokeFields;
|
|
9
|
+
//# sourceMappingURL=stroke-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stroke-fields.d.ts","sourceRoot":"","sources":["../../../../src/components/common/annotation-options/stroke-fields.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAO1C,UAAU,iBAAiB;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAChE,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,YAAY,GAAI,sCAInB,iBAAiB,4CAgCnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface MenuItemType {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
icon?: string | React.ComponentType;
|
|
7
|
+
}
|
|
8
|
+
interface ButtonWithMenuProps {
|
|
9
|
+
menuItems: (MenuItemType | null | undefined)[];
|
|
10
|
+
label?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
buttonRef?: React.Ref<HTMLDivElement>;
|
|
13
|
+
}
|
|
14
|
+
declare const ButtonWithMenu: ({ label, menuItems, disabled, buttonRef, }: ButtonWithMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default ButtonWithMenu;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/button-with-menu/index.tsx"],"names":[],"mappings":"AAYA,UAAU,YAAY;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;CACrC;AAED,UAAU,mBAAmB;IAC3B,SAAS,EAAE,CAAC,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACvC;AAED,QAAA,MAAM,cAAc,GAAI,4CAKrB,mBAAmB,4CA4FrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ColorInputProps {
|
|
2
|
+
onChange: (color: string) => void;
|
|
3
|
+
colorFor: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const ColorInput: ({ onChange, color, colorFor }: ColorInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ColorInput;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/color-input/index.tsx"],"names":[],"mappings":"AASA,UAAU,eAAe;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,QAAA,MAAM,UAAU,GAAI,+BAA+B,eAAe,4CA0FjE,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{useEffect,useRef,useState}from"react";import Box from"@mui/material/Box";import{useStore}from"hooks";import{SET_LATEST_COLOR}from"actions";import ColorPickerModal from"../color-picker-modal";var ColorInput=function(a){var b=a.onChange,c=a.color,d=a.colorFor,e=useStore(),f=e.selectionsIds,g=void 0===f?[]:f,h=e.config.annotationsCommon,i=void 0===h?{}:h,j=e.dispatch,k=e.latestColors,l=void 0===k?{}:k,m=l[d],n=useState(),o=_slicedToArray(n,2),p=o[0],q=o[1],r=useState(function(){return m
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{useEffect,useRef,useState}from"react";import Box from"@mui/material/Box";import{useStore}from"hooks";import{SET_LATEST_COLOR}from"actions";import ColorPickerModal from"../color-picker-modal";var ColorInput=function(a){var b=a.onChange,c=a.color,d=a.colorFor,e=useStore(),f=e.selectionsIds,g=void 0===f?[]:f,h=e.config.annotationsCommon,i=void 0===h?{}:h,j=e.dispatch,k=e.latestColors,l=void 0===k?{}:k,m=l[d],n=useState(),o=_slicedToArray(n,2),p=o[0],q=o[1],r=useState(function(){var a;return null!==(a=null!==m&&void 0!==m?m:c)&&void 0!==a?a:i.fill}),s=_slicedToArray(r,2),t=s[0],u=s[1],v=useRef(t),w=useState(c),x=_slicedToArray(w,2),y=x[0],z=x[1],A=useState(g.length),B=_slicedToArray(A,2),C=B[0],D=B[1],E=useState(0),F=_slicedToArray(E,2),G=F[0],H=F[1],I=useRef(0),J=0===g.length&&m||c;(c!==y||g.length!==C)&&(z(c),D(g.length),u(J),H(function(a){return a+1})),useEffect(function(){G>I.current&&J&&(I.current=G,b(J))},[G,J,b]);var K=function(a){q(p?void 0:a.currentTarget)};return React.createElement(React.Fragment,null,React.createElement(Box,{onClick:K,sx:{borderRadius:1,width:32,height:32,border:1,borderColor:"divider",cursor:"pointer",background:t}}),React.createElement(ColorPickerModal,{onChange:function(a){u(a),b(a),m!==a&&j({type:SET_LATEST_COLOR,payload:{latestColors:_defineProperty({},d,a)}})},defaultColor:t,open:!!p,onClose:function(a){var c,d,e=null!==(c=null!==(d=v.current)&&void 0!==d?d:t)&&void 0!==c?c:"";b(e),K(a)},onApply:K}))};export default ColorInput;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface ColorPickerModalProps {
|
|
2
|
+
defaultColor?: string;
|
|
3
|
+
onChange?: (color: string) => void;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onClose?: (...args: any[]) => void;
|
|
6
|
+
onApply?: (...args: any[]) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const ColorPickerModal: ({ defaultColor, onChange, open, onClose, onApply, }: ColorPickerModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export default ColorPickerModal;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/color-picker-modal/index.tsx"],"names":[],"mappings":"AASA,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CACpC;AAED,QAAA,MAAM,gBAAgB,GAAI,qDAMvB,qBAAqB,mDAkEvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/hidden-upload-input/index.tsx"],"names":[],"mappings":";AAkBA,wBAA6C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface SIconButtonWrapperProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
active?: boolean;
|
|
4
|
+
border?: boolean;
|
|
5
|
+
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* SIconButtonWrapper - A wrapper component using SIconButton from SoloStylist UI Kit
|
|
12
|
+
* Replaces StyledIconWrapper to sync styles with the design system
|
|
13
|
+
*/
|
|
14
|
+
declare const SIconButtonWrapper: ({ children, active, border, onClick, title, className, ...rest }: SIconButtonWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default SIconButtonWrapper;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/icon-wrapper/index.tsx"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;GAGG;AACH,QAAA,MAAM,kBAAkB,GAAI,kEAQzB,uBAAuB,4CAgCzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
import { Theme, SxProps } from '@mui/material';
|
|
3
|
+
interface ImagePreviewTileProps {
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
onClick: (e: React.MouseEvent<HTMLElement>) => void;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
size?: number | string;
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
declare const ImagePreviewTile: ({ src, alt, onClick, selected, size, sx, ...rest }: ImagePreviewTileProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default ImagePreviewTile;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/image-preview-tile/index.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAI5B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE/C,UAAU,qBAAqB;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,QAAA,MAAM,gBAAgB,GAAI,oDAQvB,qBAAqB,4CA4CvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
import MuiSlider from '@mui/material/Slider';
|
|
3
|
+
interface SliderProps extends Omit<React.ComponentProps<typeof MuiSlider>, 'value' | 'onChange'> {
|
|
4
|
+
onChange: (value: number) => void;
|
|
5
|
+
width?: string;
|
|
6
|
+
value?: number;
|
|
7
|
+
label: string;
|
|
8
|
+
annotation?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Slider: ({ annotation, label, value, onChange, width, ...props }: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Slider;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/common/slider/index.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAI7C,UAAU,WAAY,SAAQ,IAAI,CAChC,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,EACtC,OAAO,GAAG,UAAU,CACrB;IACC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,MAAM,GAAI,yDAOb,WAAW,4CAqBb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -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,sDAyRhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface NodesCommonProps {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
rotation?: number;
|
|
5
|
+
scaleX?: number;
|
|
6
|
+
scaleY?: number;
|
|
7
|
+
stroke?: string;
|
|
8
|
+
strokeWidth?: number;
|
|
9
|
+
shadowOffsetX?: number;
|
|
10
|
+
shadowOffsetY?: number;
|
|
11
|
+
shadowBlur?: number;
|
|
12
|
+
shadowColor?: string;
|
|
13
|
+
shadowOpacity?: number;
|
|
14
|
+
opacity?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const nodesCommonDefaults: {
|
|
17
|
+
rotation: number;
|
|
18
|
+
scaleX: number;
|
|
19
|
+
scaleY: number;
|
|
20
|
+
stroke: undefined;
|
|
21
|
+
strokeWidth: undefined;
|
|
22
|
+
shadowOffsetX: undefined;
|
|
23
|
+
shadowOffsetY: undefined;
|
|
24
|
+
shadowBlur: undefined;
|
|
25
|
+
shadowColor: undefined;
|
|
26
|
+
shadowOpacity: undefined;
|
|
27
|
+
opacity: number;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: {
|
|
30
|
+
defaults: {
|
|
31
|
+
rotation: number;
|
|
32
|
+
scaleX: number;
|
|
33
|
+
scaleY: number;
|
|
34
|
+
stroke: undefined;
|
|
35
|
+
strokeWidth: undefined;
|
|
36
|
+
shadowOffsetX: undefined;
|
|
37
|
+
shadowOffsetY: undefined;
|
|
38
|
+
shadowBlur: undefined;
|
|
39
|
+
shadowColor: undefined;
|
|
40
|
+
shadowOpacity: undefined;
|
|
41
|
+
opacity: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=nodes-common-prop-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes-common-prop-types.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/design-layer/nodes-common-prop-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;CAY/B,CAAC;;;;;;;;;;;;;;;;AAEF,wBAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-group.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/design-layer/preview-group.tsx"],"names":[],"mappings":";AAWA,wBAAwE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop-transformer.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/transformers-layer/crop-transformer.tsx"],"names":[],"mappings":"AA2BA,QAAA,MAAM,eAAe,sDA2SpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import _extends from"@babel/runtime/helpers/extends";import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{useEffect,useRef
|
|
1
|
+
import _extends from"@babel/runtime/helpers/extends";import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import Konva from"konva";import{useEffect,useMemo,useRef}from"react";import{Ellipse,Image,Rect,Transformer}from"react-konva";import{SET_CROP,SET_FEEDBACK}from"actions";import{useStore}from"hooks";import{CUSTOM_CROP,ELLIPSE_CROP,FEEDBACK_STATUSES,ORIGINAL_CROP,TOOLS_IDS}from"utils/constants";import TextNode from"../design-layer/annotation-nodes/text-node";import{boundDragging,boundResizing}from"./transformers-layer.utils";var noEffectTextDimensions={width:200,height:100},CropTransformer=function(){var a=useStore(),b=a.dispatch,c=a.theme,d=a.designLayer,e=a.originalImage,f=a.shownImageDimensions,g=a.adjustments,h=g.crop,i=void 0===h?{}:h,j=g.isFlippedX,k=g.isFlippedY,l=a.resize,m=void 0===l?{}:l,n=a.config,o=a.t,p=useRef(null),q=useRef(null),r=useRef(null),s=useRef(null),t=useRef(null),u=n[TOOLS_IDS.CROP],v=useMemo(function(){var a;return _objectSpread(_objectSpread({},u),{},{lockCropAreaAt:null!==(a=i.lockCropAreaAt)&&void 0!==a?a:null===u||void 0===u?void 0:u.lockCropAreaAt})},[i.lockCropAreaAt,u]),w=v.lockCropAreaAt,z=i.ratio||v.ratio,A=z===CUSTOM_CROP,B=z===ELLIPSE_CROP,C=function a(){return z===ORIGINAL_CROP?e?e.width/e.height:1:"number"==typeof z?z:void 0},D=function d(a,c){var e,f,g,h,j=a.width,k=a.height,l=a.x,n=a.y,p={x:l,y:n,width:j,height:k},q=(null!==(e=i.width)&&void 0!==e?e:0)>=(null!==(f=m.width)&&void 0!==f?f:0)&&(null!==(g=i.height)&&void 0!==g?g:0)>=(null!==(h=m.height)&&void 0!==h?h:0);m.width&&m.height&&(j<m.width||k<m.height)&&q&&b({type:SET_FEEDBACK,payload:{feedback:{message:o("cropSizeLowerThanResizedWarning"),status:FEEDBACK_STATUSES.WARNING}}}),b({type:SET_CROP,payload:_objectSpread(_objectSpread(_objectSpread({},i),p),{},{dismissHistory:c})})},E=function c(a,b){var d,e,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{noScale:!0},g=B?q:p;r.current&&g.current&&r.current.nodes([g.current]);var h=t.current,j={rotation:0,width:a,height:b,x:null!==(d=i.x)&&void 0!==d?d:0,y:null!==(e=i.y)&&void 0!==e?e:0};D(boundResizing(j,j,_objectSpread(_objectSpread({},h),{},{abstractX:0,abstractY:0}),A||B?void 0:C(),_objectSpread(_objectSpread({},v),f)),!0)};if(useEffect(function(){var a=B?q:p;return d&&r.current&&a.current&&(s.current&&s.current.cache(),r.current.nodes([a.current])),function(){s.current&&s.current.clearCache()}},[d,e,f,B]),useEffect(function(){if(f&&(t.current=f,"undefined"!=typeof f.x&&f.width)){var a,b;E(null!==(a=i.width)&&void 0!==a?a:f.width,null!==(b=i.height)&&void 0!==b?b:f.height)}},[z,f,v]),!d)return null;var F,G=(w||i.noEffect)&&[]||(A||B?void 0:["top-left","bottom-left","top-right","bottom-right"]),H=function b(a){var c=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1];a.target&&D({width:a.target.width()*a.target.scaleX(),height:a.target.height()*a.target.scaleY(),x:a.target.x(),y:a.target.y()},c)};if(!i.width&&!i.height){var I=1>f.scaledBy?f.scaledBy:1,J=_objectSpread(_objectSpread({},f),{},{width:f.width/I,height:f.height/I});F=boundResizing(J,_objectSpread(_objectSpread({},J),{},{x:0,y:0}),_objectSpread(_objectSpread({},J),{},{abstractX:0,abstractY:0}),A||B?void 0:C(),v)}else F=i;var K=F,L=K.x,M=void 0===L?0:L,x=K.y,N=void 0===x?0:x,y=K.width,O=K.height,P={x:M,y:N,fill:"#FFFFFF",scaleX:1,scaleY:1,globalCompositeOperation:"destination-out",onDragEnd:w?void 0:H,onDragMove:w?void 0:function b(a){var c=a.target;c.setAttrs(boundDragging(c.attrs,t.current))},onTransformEnd:w?void 0:H,draggable:!w};return React.createElement(React.Fragment,null,React.createElement(Image,{image:e,x:j?f.width:0,y:k?f.height:0,width:f.width,height:f.height,filters:[Konva.Filters.Blur,Konva.Filters.Brighten],blurRadius:10,brightness:-.3,scaleX:j?-1:1,scaleY:k?-1:1,ref:s}),B?React.createElement(Ellipse,_extends({},P,{ref:q,radiusX:(null!==y&&void 0!==y?y:0)/2,radiusY:(null!==O&&void 0!==O?O:0)/2,offset:{x:-(null!==y&&void 0!==y?y:0)/2,y:-(null!==O&&void 0!==O?O:0)/2}})):React.createElement(Rect,_extends({},P,{ref:p,width:i.noEffect?0:y,height:i.noEffect?0:O})),i.noEffect&&React.createElement(TextNode,{name:"Text",id:"no-preview-text-node",text:o("cropItemNoEffect"),x:f.width/2-noEffectTextDimensions.width/2,y:f.height/2-noEffectTextDimensions.height/2,fontSize:20,fill:"#ffffff",stroke:"#ff0000",strokeWidth:.2,shadowColor:"#ff0000",shadowBlur:10,annotationEvents:{},align:"center",width:noEffectTextDimensions.width,height:noEffectTextDimensions.height}),React.createElement(Transformer,{centeredScaling:!1,flipEnabled:!1,rotateEnabled:!1,anchorSize:14,anchorCornerRadius:7,enabledAnchors:G,ignoreStroke:!1,anchorStroke:c.palette.primary.main,anchorFill:c.palette.common.white,anchorStrokeWidth:2,borderStroke:c.palette.primary.main,borderStrokeWidth:2,borderDash:[4],keepRatio:!A||!B,ref:r,boundBoxFunc:function c(a,b){return boundResizing(a,b,t.current,A||B?void 0:C(),v)}}))};export default CropTransformer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/transformers-layer/index.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,iBAAiB,+CAatB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes-transformer.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/transformers-layer/nodes-transformer.tsx"],"names":[],"mappings":"AAcA,QAAA,MAAM,gBAAgB,+CAmErB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|