@solostylist/image-editor 1.0.11 → 1.0.13
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-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 +45 -37
- 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 +10 -5
- 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 +58 -52
- 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 +28 -21
- 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 +8 -3
- 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 +14 -12
- 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 +29 -22
- 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 +8 -5
- 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 +32 -31
- 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 +63 -61
- 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 +5 -3
- 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 +5 -3
- 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 +21 -16
- 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 +12 -8
- 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 +3 -2
- 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 +48 -42
- 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 +22 -19
- 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 +10 -0
- package/lib/components/tools/filters/filter-item.d.ts.map +1 -0
- package/lib/components/tools/filters/filter-item.js +32 -27
- 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/filters.js +18 -16
- 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 +19 -17
- 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 +27 -25
- 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 +2 -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-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 +36 -32
- 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 +50 -44
- 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 +25 -20
- 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 +46 -41
- 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 +34 -29
- 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 +27 -21
- 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 +21 -18
- 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 +9 -6
- 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 +50 -42
- 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 +24 -17
- 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 +16 -12
- 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 +29 -24
- 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 +5 -3
- 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 +11 -8
- 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 +61 -52
- 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 +5 -3
- 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 +5 -3
- 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-translations.d.ts +3 -0
- package/lib/context/default-translations.d.ts.map +1 -0
- 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/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 +89 -77
- package/lib/demo/index.d.ts +2 -0
- package/lib/demo/index.d.ts.map +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/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-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-transformed-img-data.d.ts +20 -0
- package/lib/hooks/use-transformed-img-data.d.ts.map +1 -0
- 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 +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/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/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/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/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-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/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/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/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/package.json +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { TextAnnotation, ImageAnnotation, RectAnnotation, PolygonAnnotation, PenAnnotation, LineAnnotation, ArrowAnnotation, EllipseAnnotation, AnnotationsCommon } from './annotations';
|
|
3
|
+
import { CropPresetItem, SavedImageData } from './common';
|
|
4
|
+
import { ImageDesignState } from './state';
|
|
5
|
+
/**
|
|
6
|
+
* Rotate tool configuration
|
|
7
|
+
*/
|
|
8
|
+
export interface RotateToolConfig {
|
|
9
|
+
angle?: number;
|
|
10
|
+
componentType?: 'slider' | 'buttons';
|
|
11
|
+
}
|
|
12
|
+
export declare const TABS: {
|
|
13
|
+
readonly FINETUNE: "Finetune";
|
|
14
|
+
readonly FILTERS: "Filters";
|
|
15
|
+
readonly ADJUST: "Adjust";
|
|
16
|
+
readonly WATERMARK: "Watermark";
|
|
17
|
+
readonly ANNOTATE: "Annotate";
|
|
18
|
+
readonly RESIZE: "Resize";
|
|
19
|
+
};
|
|
20
|
+
export declare const TOOLS: {
|
|
21
|
+
readonly CROP: "Crop";
|
|
22
|
+
readonly ROTATE: "Rotate";
|
|
23
|
+
readonly FLIP_X: "Flip_X";
|
|
24
|
+
readonly FLIP_Y: "Flip_Y";
|
|
25
|
+
readonly BRIGHTNESS: "Brightness";
|
|
26
|
+
readonly CONTRAST: "Contrast";
|
|
27
|
+
readonly HSV: "HueSaturationValue";
|
|
28
|
+
readonly WARMTH: "Warmth";
|
|
29
|
+
readonly BLUR: "Blur";
|
|
30
|
+
readonly THRESHOLD: "Threshold";
|
|
31
|
+
readonly POSTERIZE: "Posterize";
|
|
32
|
+
readonly PIXELATE: "Pixelate";
|
|
33
|
+
readonly NOISE: "Noise";
|
|
34
|
+
readonly FILTERS: "Filters";
|
|
35
|
+
readonly RECT: "Rect";
|
|
36
|
+
readonly ELLIPSE: "Ellipse";
|
|
37
|
+
readonly POLYGON: "Polygon";
|
|
38
|
+
readonly TEXT: "Text";
|
|
39
|
+
readonly LINE: "Line";
|
|
40
|
+
readonly IMAGE: "Image";
|
|
41
|
+
readonly ARROW: "Arrow";
|
|
42
|
+
readonly WATERMARK: "Watermark";
|
|
43
|
+
readonly PEN: "Pen";
|
|
44
|
+
readonly RESIZE: "Resize";
|
|
45
|
+
};
|
|
46
|
+
export type AvailableTabs = (typeof TABS)[keyof typeof TABS];
|
|
47
|
+
export type AvailableTools = (typeof TOOLS)[keyof typeof TOOLS];
|
|
48
|
+
export type CropRatio = 'Crop' | 'custom' | 'ellipse' | number;
|
|
49
|
+
export type CropAreaPosition = 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center-center' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
50
|
+
export interface CropToolConfig {
|
|
51
|
+
minWidth?: number;
|
|
52
|
+
minHeight?: number;
|
|
53
|
+
maxWidth?: number;
|
|
54
|
+
maxHeight?: number;
|
|
55
|
+
ratio?: CropRatio;
|
|
56
|
+
noPresets?: boolean;
|
|
57
|
+
ratioTitleKey?: string;
|
|
58
|
+
presetsItems?: CropPresetItem[];
|
|
59
|
+
autoResize?: boolean;
|
|
60
|
+
noScale?: boolean;
|
|
61
|
+
lockCropAreaAt?: CropAreaPosition;
|
|
62
|
+
}
|
|
63
|
+
export type OnSaveFunction = (savedImageData: SavedImageData, imageDesignState: ImageDesignState) => void | Promise<void>;
|
|
64
|
+
export type GetCurrentImgDataFunction = (imageFileInfo: {
|
|
65
|
+
name?: string;
|
|
66
|
+
extension?: string;
|
|
67
|
+
quality?: number;
|
|
68
|
+
size?: {
|
|
69
|
+
width?: number;
|
|
70
|
+
height?: number;
|
|
71
|
+
};
|
|
72
|
+
}, pixelRatio?: boolean | number, keepLoadingSpinnerShown?: boolean) => {
|
|
73
|
+
imageData: SavedImageData;
|
|
74
|
+
designState: ImageDesignState;
|
|
75
|
+
hideLoadingSpinner: () => void;
|
|
76
|
+
};
|
|
77
|
+
export interface ImageEditorConfig {
|
|
78
|
+
source: string | HTMLImageElement;
|
|
79
|
+
annotationsCommon?: AnnotationsCommon;
|
|
80
|
+
Text?: Partial<TextAnnotation> & {
|
|
81
|
+
fonts?: (string | {
|
|
82
|
+
label: string;
|
|
83
|
+
value: string;
|
|
84
|
+
})[];
|
|
85
|
+
onFontChange?: (newFontFamily: string, reRenderCanvasFn: () => void) => void;
|
|
86
|
+
};
|
|
87
|
+
Image?: Partial<ImageAnnotation>;
|
|
88
|
+
Ellipse?: Partial<EllipseAnnotation>;
|
|
89
|
+
Rect?: Partial<RectAnnotation>;
|
|
90
|
+
Polygon?: Partial<PolygonAnnotation>;
|
|
91
|
+
Pen?: Partial<PenAnnotation>;
|
|
92
|
+
Line?: Partial<LineAnnotation>;
|
|
93
|
+
Arrow?: Partial<ArrowAnnotation>;
|
|
94
|
+
Rotate?: RotateToolConfig;
|
|
95
|
+
Watermark?: {
|
|
96
|
+
gallery?: string[] | {
|
|
97
|
+
url: string;
|
|
98
|
+
previewUrl: string;
|
|
99
|
+
}[];
|
|
100
|
+
onUploadWatermarkImgClick?: (loadAndSetWatermarkImg: (imgUrl: string, revokeObjectUrl?: boolean) => void) => Promise<{
|
|
101
|
+
url: string;
|
|
102
|
+
revokeObjectUrl?: boolean;
|
|
103
|
+
}> | void;
|
|
104
|
+
textScalingRatio?: number;
|
|
105
|
+
imageScalingRatio?: number;
|
|
106
|
+
hideTextWatermark?: boolean;
|
|
107
|
+
};
|
|
108
|
+
Crop?: CropToolConfig;
|
|
109
|
+
tabsIds?: AvailableTabs[];
|
|
110
|
+
defaultTabId?: AvailableTabs;
|
|
111
|
+
defaultToolId?: AvailableTools;
|
|
112
|
+
onClose?: (closingReason: string, haveNotSavedChanges: boolean) => void;
|
|
113
|
+
onBeforeSave?: (savedImageData: SavedImageData) => void | boolean;
|
|
114
|
+
onSave?: OnSaveFunction;
|
|
115
|
+
onModify?: (currentImageDesignState: ImageDesignState) => void;
|
|
116
|
+
closeAfterSave?: boolean;
|
|
117
|
+
defaultSavedImageName?: string;
|
|
118
|
+
defaultSavedImageType?: 'png' | 'jpeg' | 'jpg' | 'webp';
|
|
119
|
+
defaultSavedImageQuality?: number;
|
|
120
|
+
forceToPngInEllipticalCrop?: boolean;
|
|
121
|
+
translations?: Record<string, any>;
|
|
122
|
+
language?: 'en' | 'fr' | 'de' | 'it' | 'pt' | 'es' | 'nl' | 'pl' | 'ro';
|
|
123
|
+
avoidChangesNotSavedAlertOnLeave?: boolean;
|
|
124
|
+
loadableDesignState?: ImageDesignState;
|
|
125
|
+
getCurrentImgDataFnRef?: RefObject<GetCurrentImgDataFunction> | {
|
|
126
|
+
current?: GetCurrentImgDataFunction;
|
|
127
|
+
};
|
|
128
|
+
updateStateFnRef?: RefObject<(newStatePart: Partial<ImageDesignState> | ((currentState: ImageDesignState) => Partial<ImageDesignState>)) => void> | {
|
|
129
|
+
current?: (newStatePart: Partial<ImageDesignState> | ((currentState: ImageDesignState) => Partial<ImageDesignState>)) => void;
|
|
130
|
+
};
|
|
131
|
+
savingPixelRatio?: number;
|
|
132
|
+
previewPixelRatio?: number;
|
|
133
|
+
observePluginContainerSize?: boolean;
|
|
134
|
+
showCanvasOnly?: boolean;
|
|
135
|
+
useZoomPresetsMenu?: boolean;
|
|
136
|
+
disableZooming?: boolean;
|
|
137
|
+
noCrossOrigin?: boolean;
|
|
138
|
+
disableSaveIfNoChanges?: boolean;
|
|
139
|
+
removeSaveButton?: boolean;
|
|
140
|
+
resetOnImageSourceChange?: boolean;
|
|
141
|
+
backgroundColor?: string;
|
|
142
|
+
backgroundImage?: HTMLImageElement;
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACtC;AAGD,eAAO,MAAM,IAAI;;;;;;;CAOP,CAAC;AAEX,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;CAyBR,CA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,EAAE,gBAAgB,CAAC;IACvC,sBAAsB,CAAC,EACnB,SAAS,CAAC,yBAAyB,CAAC,GACpC;QAAE,OAAO,CAAC,EAAE,yBAAyB,CAAA;KAAE,CAAC;IAC5C,gBAAgB,CAAC,EACb,SAAS,CACP,CACE,YAAY,EACR,OAAO,CAAC,gBAAgB,CAAC,GACzB,CAAC,CAAC,YAAY,EAAE,gBAAgB,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC,KAChE,IAAI,CACV,GACD;QACE,OAAO,CAAC,EAAE,CACR,YAAY,EACR,OAAO,CAAC,gBAAgB,CAAC,GACzB,CAAC,CAAC,YAAY,EAAE,gBAAgB,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC,KAChE,IAAI,CAAC;KACX,CAAC;IAGN,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Filter } from 'konva/lib/Node';
|
|
2
|
+
import type Konva from 'konva';
|
|
3
|
+
import { AnnotationsMap } from './annotations';
|
|
4
|
+
import { Dimensions, ScaledDimensions } from './common';
|
|
5
|
+
import { CropAreaPosition, CropRatio } from './config';
|
|
6
|
+
export interface CropConfig {
|
|
7
|
+
ratio?: CropRatio;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
ratioTitleKey?: string;
|
|
13
|
+
lockCropAreaAt?: CropAreaPosition;
|
|
14
|
+
noEffect?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface Adjustments {
|
|
17
|
+
crop: CropConfig;
|
|
18
|
+
isFlippedX?: boolean;
|
|
19
|
+
isFlippedY?: boolean;
|
|
20
|
+
rotation?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface ResizeConfig {
|
|
23
|
+
width?: number;
|
|
24
|
+
height?: number;
|
|
25
|
+
manualChangeDisabled?: boolean;
|
|
26
|
+
ratioUnlocked?: boolean;
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}
|
|
29
|
+
export interface FinetunesProps {
|
|
30
|
+
brightness?: number;
|
|
31
|
+
contrast?: number;
|
|
32
|
+
hue?: number;
|
|
33
|
+
saturation?: number;
|
|
34
|
+
value?: number;
|
|
35
|
+
blurRadius?: number;
|
|
36
|
+
warmth?: number;
|
|
37
|
+
threshold?: number;
|
|
38
|
+
posterize?: number;
|
|
39
|
+
pixelate?: number;
|
|
40
|
+
noise?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface NamedFilter {
|
|
43
|
+
filterName?: string;
|
|
44
|
+
finetuneName?: string;
|
|
45
|
+
name?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ZoomConfig {
|
|
48
|
+
x: number | null;
|
|
49
|
+
y: number | null;
|
|
50
|
+
factor: number;
|
|
51
|
+
}
|
|
52
|
+
export interface ImageDesignState {
|
|
53
|
+
imgSrc?: string;
|
|
54
|
+
finetunes?: string[];
|
|
55
|
+
finetunesProps?: FinetunesProps;
|
|
56
|
+
filter?: string;
|
|
57
|
+
adjustments?: Adjustments;
|
|
58
|
+
annotations?: AnnotationsMap;
|
|
59
|
+
resize?: ResizeConfig;
|
|
60
|
+
shownImageDimensions?: ScaledDimensions;
|
|
61
|
+
}
|
|
62
|
+
export interface AppState {
|
|
63
|
+
isDesignState: boolean;
|
|
64
|
+
imgSrc?: string;
|
|
65
|
+
originalImage: HTMLImageElement;
|
|
66
|
+
finetunes: Filter[];
|
|
67
|
+
finetunesProps: FinetunesProps;
|
|
68
|
+
filter: Filter | null;
|
|
69
|
+
adjustments: Adjustments;
|
|
70
|
+
annotations: AnnotationsMap;
|
|
71
|
+
resize: ResizeConfig;
|
|
72
|
+
canvasWidth: number;
|
|
73
|
+
canvasHeight: number;
|
|
74
|
+
canvasScale: number;
|
|
75
|
+
initialCanvasWidth?: number;
|
|
76
|
+
initialCanvasHeight?: number;
|
|
77
|
+
zoom: ZoomConfig;
|
|
78
|
+
tabId: string;
|
|
79
|
+
toolId: string | null;
|
|
80
|
+
selectionsIds: string[];
|
|
81
|
+
pointerCssIcon?: string;
|
|
82
|
+
showTabsMenu?: boolean;
|
|
83
|
+
isShowOriginalImage?: boolean;
|
|
84
|
+
isLoadingGlobally?: boolean;
|
|
85
|
+
isSaving?: boolean;
|
|
86
|
+
textIdOfEditableContent?: string;
|
|
87
|
+
haveNotSavedChanges: boolean;
|
|
88
|
+
hasUndo?: boolean;
|
|
89
|
+
hasRedo?: boolean;
|
|
90
|
+
pastDesignStates: ImageDesignState[];
|
|
91
|
+
futureDesignStates: ImageDesignState[];
|
|
92
|
+
shownImageDimensions: ScaledDimensions;
|
|
93
|
+
originalImageDimensions: Dimensions;
|
|
94
|
+
previewGroup: Konva.Group | null;
|
|
95
|
+
designLayer: Konva.Layer;
|
|
96
|
+
latestColors?: Record<string, string>;
|
|
97
|
+
feedback: {
|
|
98
|
+
message?: string;
|
|
99
|
+
duration?: number;
|
|
100
|
+
status?: string;
|
|
101
|
+
};
|
|
102
|
+
isResetted?: boolean;
|
|
103
|
+
watermarkImgSrc?: string;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/types/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGvD,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7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,EAAE,OAAO,CAAC;IAGrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAI1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assign-finetune-names-to-konva.d.ts","sourceRoot":"","sources":["../../src/utils/assign-finetune-names-to-konva.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,0BAA0B,QAAO,IAItC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ZoomConfig } from 'types/state';
|
|
2
|
+
interface ZoomData {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
factor: number;
|
|
6
|
+
}
|
|
7
|
+
declare const calculateZoomData: (newZoom: ZoomConfig, oldZoom: ZoomConfig, canvasWidth: number, canvasHeight: number) => ZoomData;
|
|
8
|
+
export default calculateZoomData;
|
|
9
|
+
//# sourceMappingURL=calculate-zoom-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculate-zoom-data.d.ts","sourceRoot":"","sources":["../../src/utils/calculate-zoom-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,UAAU,QAAQ;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,iBAAiB,GACrB,SAAS,UAAU,EACnB,SAAS,UAAU,EACnB,aAAa,MAAM,EACnB,cAAc,MAAM,KACnB,QA2CF,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare-ratios.d.ts","sourceRoot":"","sources":["../../src/utils/compare-ratios.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa,GAAI,QAAQ,MAAM,EAAE,QAAQ,MAAM,KAAG,OACH,CAAC;AAEtD,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const ROOT_CONTAINER_CLASS_NAME: string;
|
|
2
|
+
export declare const DESIGN_LAYER_ID: string;
|
|
3
|
+
export declare const TRANSFORMERS_LAYER_ID: string;
|
|
4
|
+
export declare const IMAGE_NODE_ID: string;
|
|
5
|
+
export declare const NODES_TRANSFORMER_ID: string;
|
|
6
|
+
export declare const WATERMARK_ANNOTATION_ID: string;
|
|
7
|
+
export declare const DEFAULT_SAVE_QUALITY: number;
|
|
8
|
+
export declare const TABS_IDS: {
|
|
9
|
+
readonly FINETUNE: "Finetune";
|
|
10
|
+
readonly FILTERS: "Filters";
|
|
11
|
+
readonly ADJUST: "Adjust";
|
|
12
|
+
readonly WATERMARK: "Watermark";
|
|
13
|
+
readonly ANNOTATE: "Annotate";
|
|
14
|
+
readonly RESIZE: "Resize";
|
|
15
|
+
};
|
|
16
|
+
export declare const TOOLS_IDS: {
|
|
17
|
+
readonly CROP: "Crop";
|
|
18
|
+
readonly ROTATE: "Rotate";
|
|
19
|
+
readonly FLIP_X: "Flip_X";
|
|
20
|
+
readonly FLIP_Y: "Flip_Y";
|
|
21
|
+
readonly BRIGHTNESS: "Brightness";
|
|
22
|
+
readonly CONTRAST: "Contrast";
|
|
23
|
+
readonly HSV: "HueSaturationValue";
|
|
24
|
+
readonly WARMTH: "Warmth";
|
|
25
|
+
readonly BLUR: "Blur";
|
|
26
|
+
readonly THRESHOLD: "Threshold";
|
|
27
|
+
readonly POSTERIZE: "Posterize";
|
|
28
|
+
readonly PIXELATE: "Pixelate";
|
|
29
|
+
readonly NOISE: "Noise";
|
|
30
|
+
readonly FILTERS: "Filters";
|
|
31
|
+
readonly RECT: "Rect";
|
|
32
|
+
readonly ELLIPSE: "Ellipse";
|
|
33
|
+
readonly POLYGON: "Polygon";
|
|
34
|
+
readonly TEXT: "Text";
|
|
35
|
+
readonly LINE: "Line";
|
|
36
|
+
readonly IMAGE: "Image";
|
|
37
|
+
readonly ARROW: "Arrow";
|
|
38
|
+
readonly WATERMARK: "Watermark";
|
|
39
|
+
readonly PEN: "Pen";
|
|
40
|
+
readonly RESIZE: "Resize";
|
|
41
|
+
};
|
|
42
|
+
export declare const FLIP_DIRECTIONS: {
|
|
43
|
+
readonly X: "X";
|
|
44
|
+
readonly Y: "Y";
|
|
45
|
+
};
|
|
46
|
+
export declare const DEFAULT_ZOOM_FACTOR: number;
|
|
47
|
+
export declare const SUPPORTED_IMAGE_TYPES: readonly string[];
|
|
48
|
+
export declare const POSSIBLE_IMAGE_TYPES: readonly string[];
|
|
49
|
+
export declare const DEFAULT_IMAGE_TYPE: string;
|
|
50
|
+
export declare const POINTER_ICONS: {
|
|
51
|
+
readonly DEFAULT: "default";
|
|
52
|
+
readonly DRAW: "crosshair";
|
|
53
|
+
readonly SELECT: "pointer";
|
|
54
|
+
readonly MOVE: "move";
|
|
55
|
+
readonly DRAG: "GRAB";
|
|
56
|
+
};
|
|
57
|
+
export declare const DEFAULT_ENABLED_ANCHORS: readonly string[];
|
|
58
|
+
export declare const ORIGINAL_CROP: string;
|
|
59
|
+
export declare const CUSTOM_CROP: string;
|
|
60
|
+
export declare const ELLIPSE_CROP: string;
|
|
61
|
+
export declare const POSITIONS: {
|
|
62
|
+
readonly TOP_LEFT: "top-left";
|
|
63
|
+
readonly TOP_CENTER: "top-center";
|
|
64
|
+
readonly TOP_RIGHT: "top-right";
|
|
65
|
+
readonly MIDDLE_LEFT: "middle-left";
|
|
66
|
+
readonly MIDDLE_CENTER: "middle-center";
|
|
67
|
+
readonly MIDDLE_RIGHT: "middle-right";
|
|
68
|
+
readonly BOTTOM_LEFT: "bottom-left";
|
|
69
|
+
readonly BOTTOM_CENTER: "bottom-center";
|
|
70
|
+
readonly BOTTOM_RIGHT: "bottom-right";
|
|
71
|
+
};
|
|
72
|
+
export declare const MIN_CROP: {
|
|
73
|
+
readonly WIDTH: 14;
|
|
74
|
+
readonly HEIGHT: 14;
|
|
75
|
+
};
|
|
76
|
+
export declare const CLOSING_REASONS: {
|
|
77
|
+
readonly AFTER_SAVE: "after-saving";
|
|
78
|
+
readonly CLOSE_BUTTON: "close-button-clicked";
|
|
79
|
+
readonly BACK_BUTTON: "back-button-clicked";
|
|
80
|
+
};
|
|
81
|
+
export declare const FEEDBACK_STATUSES: {
|
|
82
|
+
readonly WARNING: "warning";
|
|
83
|
+
readonly ERROR: "error";
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,EAAE,MAAmB,CAAC;AAC5D,eAAO,MAAM,eAAe,EAAE,MAA2B,CAAC;AAC1D,eAAO,MAAM,qBAAqB,EAAE,MAAiC,CAAC;AACtE,eAAO,MAAM,aAAa,EAAE,MAA6B,CAAC;AAC1D,eAAO,MAAM,oBAAoB,EAAE,MAAgC,CAAC;AAEpE,eAAO,MAAM,uBAAuB,EAAE,MAAoB,CAAC;AAE3D,eAAO,MAAM,oBAAoB,EAAE,MAAa,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;CAOX,CAAC;AAEX,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CAyBZ,CAAC;AAEX,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX,eAAO,MAAM,mBAAmB,EAAE,MAAU,CAAC;AAE7C,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAKzC,CAAC;AACX,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAMxC,CAAC;AAEX,eAAO,MAAM,kBAAkB,EAAE,MAAiC,CAAC;AAEnE,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAS3C,CAAC;AAEX,eAAO,MAAM,aAAa,EAAE,MAAe,CAAC;AAC5C,eAAO,MAAM,WAAW,EAAE,MAAiB,CAAC;AAC5C,eAAO,MAAM,YAAY,EAAE,MAAkB,CAAC;AAE9C,eAAO,MAAM,SAAS;;;;;;;;;;CAUZ,CAAC;AAEX,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface CropBox {
|
|
2
|
+
ratio?: string | number;
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
declare const cropImage: (context: CanvasRenderingContext2D, cropBox: CropBox, noEllipticalCrop?: boolean) => void;
|
|
9
|
+
export default cropImage;
|
|
10
|
+
//# sourceMappingURL=crop-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop-image.d.ts","sourceRoot":"","sources":["../../src/utils/crop-image.ts"],"names":[],"mappings":"AAEA,UAAU,OAAO;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,SAAS,GACb,SAAS,wBAAwB,EACjC,SAAS,OAAO,EAChB,mBAAkB,OAAe,KAChC,IAcF,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../src/utils/debounce.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,QAAQ,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACjD,MAAM,CAAC,EACP,UAAS,MAAY,KACpB,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAa3B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deep-merge.d.ts","sourceRoot":"","sources":["../../src/utils/deep-merge.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,EACjC,QAAQ,CAAC,EACT,SAAQ,GAAQ,EAChB,gBAAe,OAAe,KAC7B,CA+BF,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AppState, ImageDesignState } from 'types/state';
|
|
2
|
+
/**
|
|
3
|
+
* Extracts the needed properties/state that are used in canvas's design from the global state.
|
|
4
|
+
*
|
|
5
|
+
* @param state The global state.
|
|
6
|
+
* @param useStateAsConfig Value assigned to any undefined/null property in returned object.
|
|
7
|
+
* @returns The extracted design state.
|
|
8
|
+
*/
|
|
9
|
+
declare const extractCurrentDesignState: (state: AppState, useStateAsConfig?: boolean) => ImageDesignState;
|
|
10
|
+
export default extractCurrentDesignState;
|
|
11
|
+
//# sourceMappingURL=extract-current-design-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-current-design-state.d.ts","sourceRoot":"","sources":["../../src/utils/extract-current-design-state.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG9D;;;;;;GAMG;AACH,QAAA,MAAM,yBAAyB,GAC7B,OAAO,QAAQ,EACf,mBAAmB,OAAO,KACzB,gBAgBF,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-name-from-url.d.ts","sourceRoot":"","sources":["../../src/utils/extract-name-from-url.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,kBAAkB,GAAI,KAAK,MAAM,KAAG,MAGzC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-str-to-class.d.ts","sourceRoot":"","sources":["../../src/utils/filter-str-to-class.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAKxC,QAAA,MAAM,gBAAgB,GACpB,cAAc,MAAM,GAAG,IAAI,GAAG,SAAS,KACtC,MAAM,GAAG,IASX,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finetunes-strs-to-classes.d.ts","sourceRoot":"","sources":["../../src/utils/finetunes-strs-to-classes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAIxC,QAAA,MAAM,sBAAsB,GAC1B,kBAAkB,MAAM,EAAE,GAAG,SAAS,KACrC,MAAM,EAYR,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
import type { Vector2d } from 'konva/lib/types';
|
|
3
|
+
interface RotatedPoint extends Vector2d {
|
|
4
|
+
rotation: number;
|
|
5
|
+
}
|
|
6
|
+
declare const getCenterRotatedPoint: (width: number, height: number, newRotationAngleDegree: number) => RotatedPoint;
|
|
7
|
+
export default getCenterRotatedPoint;
|
|
8
|
+
//# sourceMappingURL=get-center-rotated-point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-center-rotated-point.d.ts","sourceRoot":"","sources":["../../src/utils/get-center-rotated-point.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,UAAU,YAAa,SAAQ,QAAQ;IACrC,QAAQ,EAAE,MAAM,CAAC;CAClB;AASD,QAAA,MAAM,qBAAqB,GACzB,OAAO,MAAM,EACb,QAAQ,MAAM,EACd,wBAAwB,MAAM,KAC7B,YAmBF,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-default-save-quality.d.ts","sourceRoot":"","sources":["../../src/utils/get-default-save-quality.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,qBAAqB,GAAI,wBAAwB,MAAM,KAAG,MAGpC,CAAC;AAE7B,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-dimensions-minimal-ratio.d.ts","sourceRoot":"","sources":["../../src/utils/get-dimensions-minimal-ratio.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,yBAAyB,GAC7B,YAAY,MAAM,EAClB,aAAa,MAAM,EACnB,aAAa,MAAM,EACnB,cAAc,MAAM,KACnB,MAKF,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ElementCoords {
|
|
2
|
+
top: number;
|
|
3
|
+
left: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
declare const getElemDocumentCoords: (elem: Element | null | undefined) => ElementCoords | null;
|
|
8
|
+
export default getElemDocumentCoords;
|
|
9
|
+
//# sourceMappingURL=get-elem-document-coords.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-elem-document-coords.d.ts","sourceRoot":"","sources":["../../src/utils/get-elem-document-coords.ts"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,qBAAqB,GACzB,MAAM,OAAO,GAAG,IAAI,GAAG,SAAS,KAC/B,aAAa,GAAG,IAsBlB,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface FileFullName {
|
|
2
|
+
fullName: string;
|
|
3
|
+
name: string;
|
|
4
|
+
extension: string;
|
|
5
|
+
}
|
|
6
|
+
declare const getFileFullName: (fileNameProp?: string, appendedExtension?: string) => FileFullName;
|
|
7
|
+
export default getFileFullName;
|
|
8
|
+
//# sourceMappingURL=get-file-full-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-file-full-name.d.ts","sourceRoot":"","sources":["../../src/utils/get-file-full-name.ts"],"names":[],"mappings":"AAMA,UAAU,YAAY;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,eAAe,GACnB,eAAe,MAAM,EACrB,oBAAoB,MAAM,KACzB,YA6BF,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import type Konva from 'konva';
|
|
3
|
+
interface RelativeToObject {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
interface PointerOffset {
|
|
8
|
+
offsetX: number;
|
|
9
|
+
offsetY: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Gets the touch/mouse position relative to the passed object to be considered as offset X/Y.
|
|
13
|
+
*
|
|
14
|
+
* @param previewGroup - The preview group that is a direct child of the design layer
|
|
15
|
+
* @param relativeToObject - The object to be considered as parent element
|
|
16
|
+
* contains left, top, width & height relative to the document.
|
|
17
|
+
* @returns both X & Y offset values.
|
|
18
|
+
*/
|
|
19
|
+
declare const getPointerOffsetPositionBoundedToObject: (previewGroup?: Konva.Group | null, relativeToObject?: RelativeToObject) => PointerOffset;
|
|
20
|
+
export default getPointerOffsetPositionBoundedToObject;
|
|
21
|
+
//# sourceMappingURL=get-pointer-offset-position-bounded-to-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-pointer-offset-position-bounded-to-object.d.ts","sourceRoot":"","sources":["../../src/utils/get-pointer-offset-position-bounded-to-object.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,uCAAuC,GAC3C,eAAc,KAAK,CAAC,KAAK,GAAG,IAAW,EACvC,mBAAkB,gBAA0C,KAC3D,aAwBF,CAAC;AAEF,eAAe,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Internal Dependencies */
|
|
2
|
+
import type { Dimensions } from 'types/common';
|
|
3
|
+
interface CropDimensions {
|
|
4
|
+
x?: number;
|
|
5
|
+
y?: number;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
}
|
|
9
|
+
declare const getProperDimensions: (resizeDimensions: Partial<Dimensions>, cropDimensions: CropDimensions, shownImageDimensions: Dimensions, originalDimensions: Dimensions, rotationAngle?: number) => Dimensions;
|
|
10
|
+
export default getProperDimensions;
|
|
11
|
+
//# sourceMappingURL=get-proper-dimensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-proper-dimensions.d.ts","sourceRoot":"","sources":["../../src/utils/get-proper-dimensions.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,UAAU,cAAc;IACtB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,mBAAmB,GACvB,kBAAkB,OAAO,CAAC,UAAU,CAAC,EACrC,gBAAgB,cAAc,EAC9B,sBAAsB,UAAU,EAChC,oBAAoB,UAAU,EAC9B,gBAAe,MAAU,KACxB,UAkCF,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-proper-image-to-canvas-spacing.d.ts","sourceRoot":"","sources":["../../src/utils/get-proper-image-to-canvas-spacing.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,6BAA6B,QAAO,MAGhB,CAAC;AAE3B,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-scroll-offset.d.ts","sourceRoot":"","sources":["../../src/utils/get-scroll-offset.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,eAAe,QAAO,YAa3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface SizeAfterRotation {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
offsetTop: number;
|
|
5
|
+
offsetLeft: number;
|
|
6
|
+
}
|
|
7
|
+
declare const getSizeAfterRotation: (width: number, height: number, rotationAngleInDegree?: number) => SizeAfterRotation;
|
|
8
|
+
export default getSizeAfterRotation;
|
|
9
|
+
//# sourceMappingURL=get-size-after-rotation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-size-after-rotation.d.ts","sourceRoot":"","sources":["../../src/utils/get-size-after-rotation.ts"],"names":[],"mappings":"AAAA,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,oBAAoB,GACxB,OAAO,MAAM,EACb,QAAQ,MAAM,EACd,wBAAuB,MAAU,KAChC,iBAiCF,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-zoom-fit-factor.d.ts","sourceRoot":"","sources":["../../src/utils/get-zoom-fit-factor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,QAAA,MAAM,gBAAgB,GACpB,eAAe,UAAU,EACzB,gBAAgB,UAAU,KACzB,MAIuB,CAAC;AAE3B,eAAe,gBAAgB,CAAC"}
|