@solostylist/image-editor 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/actions/add-filter.d.ts +10 -0
- package/lib/actions/add-filter.d.ts.map +1 -0
- package/lib/actions/add-filter.js +2 -1
- package/lib/actions/change-pointer-icon.d.ts +6 -0
- package/lib/actions/change-pointer-icon.d.ts.map +1 -0
- package/lib/actions/change-rotation.d.ts +6 -0
- package/lib/actions/change-rotation.d.ts.map +1 -0
- package/lib/actions/clear-annotations-selections.d.ts +5 -0
- package/lib/actions/clear-annotations-selections.d.ts.map +1 -0
- package/lib/actions/duplicate-annotations.d.ts +9 -0
- package/lib/actions/duplicate-annotations.d.ts.map +1 -0
- package/lib/actions/enable-text-content-edit.d.ts +8 -0
- package/lib/actions/enable-text-content-edit.d.ts.map +1 -0
- package/lib/actions/enable-text-content-edit.js +2 -1
- package/lib/actions/hide-loader.d.ts +5 -0
- package/lib/actions/hide-loader.d.ts.map +1 -0
- package/lib/actions/index.d.ts +40 -0
- package/lib/actions/index.d.ts.map +1 -0
- package/lib/actions/redo.d.ts +5 -0
- package/lib/actions/redo.d.ts.map +1 -0
- package/lib/actions/remove-annotations.d.ts +9 -0
- package/lib/actions/remove-annotations.d.ts.map +1 -0
- package/lib/actions/reset.d.ts +8 -0
- package/lib/actions/reset.d.ts.map +1 -0
- package/lib/actions/select-annotation.d.ts +6 -0
- package/lib/actions/select-annotation.d.ts.map +1 -0
- package/lib/actions/select-tab.d.ts +6 -0
- package/lib/actions/select-tab.d.ts.map +1 -0
- package/lib/actions/select-tool.d.ts +9 -0
- package/lib/actions/select-tool.d.ts.map +1 -0
- package/lib/actions/set-annotation.d.ts +10 -0
- package/lib/actions/set-annotation.d.ts.map +1 -0
- package/lib/actions/set-canvas-size.d.ts +6 -0
- package/lib/actions/set-canvas-size.d.ts.map +1 -0
- package/lib/actions/set-crop.d.ts +9 -0
- package/lib/actions/set-crop.d.ts.map +1 -0
- package/lib/actions/set-crop.js +6 -1
- package/lib/actions/set-feedback.d.ts +6 -0
- package/lib/actions/set-feedback.d.ts.map +1 -0
- package/lib/actions/set-finetune.d.ts +11 -0
- package/lib/actions/set-finetune.d.ts.map +1 -0
- package/lib/actions/set-latest-color.d.ts +6 -0
- package/lib/actions/set-latest-color.d.ts.map +1 -0
- package/lib/actions/set-original-image.d.ts +6 -0
- package/lib/actions/set-original-image.d.ts.map +1 -0
- package/lib/actions/set-resize.d.ts +9 -0
- package/lib/actions/set-resize.d.ts.map +1 -0
- package/lib/actions/set-saved.d.ts +5 -0
- package/lib/actions/set-saved.d.ts.map +1 -0
- package/lib/actions/set-saving.d.ts +6 -0
- package/lib/actions/set-saving.d.ts.map +1 -0
- package/lib/actions/set-show-tabs-menu.d.ts +8 -0
- package/lib/actions/set-show-tabs-menu.d.ts.map +1 -0
- package/lib/actions/set-shown-image-dimensions.d.ts +13 -0
- package/lib/actions/set-shown-image-dimensions.d.ts.map +1 -0
- package/lib/actions/set-shown-image-dimensions.js +3 -2
- package/lib/actions/show-loader.d.ts +5 -0
- package/lib/actions/show-loader.d.ts.map +1 -0
- package/lib/actions/toggle-flip.d.ts +9 -0
- package/lib/actions/toggle-flip.d.ts.map +1 -0
- package/lib/actions/toggle-original-image-display.d.ts +8 -0
- package/lib/actions/toggle-original-image-display.d.ts.map +1 -0
- package/lib/actions/undo.d.ts +5 -0
- package/lib/actions/undo.d.ts.map +1 -0
- package/lib/actions/update-state.d.ts +7 -0
- package/lib/actions/update-state.d.ts.map +1 -0
- package/lib/actions/zoom-canvas.d.ts +10 -0
- package/lib/actions/zoom-canvas.d.ts.map +1 -0
- package/lib/components/app/index.d.ts +3 -0
- package/lib/components/app/index.d.ts.map +1 -0
- package/lib/components/app/index.js +147 -69
- package/lib/components/assembly-point/index.d.ts +8 -0
- package/lib/components/assembly-point/index.d.ts.map +1 -0
- package/lib/components/assembly-point/index.js +11 -10
- package/lib/components/common/annotation-options/annotation-options.constants.d.ts +9 -0
- package/lib/components/common/annotation-options/annotation-options.constants.d.ts.map +1 -0
- package/lib/components/common/annotation-options/index.d.ts +21 -0
- package/lib/components/common/annotation-options/index.d.ts.map +1 -0
- package/lib/components/common/annotation-options/index.js +61 -55
- package/lib/components/common/annotation-options/opacity-field.d.ts +10 -0
- package/lib/components/common/annotation-options/opacity-field.d.ts.map +1 -0
- package/lib/components/common/annotation-options/opacity-field.js +2 -1
- package/lib/components/common/annotation-options/position-fields.d.ts +8 -0
- package/lib/components/common/annotation-options/position-fields.d.ts.map +1 -0
- package/lib/components/common/annotation-options/position-fields.js +15 -13
- package/lib/components/common/annotation-options/shadow-fields.d.ts +9 -0
- package/lib/components/common/annotation-options/shadow-fields.d.ts.map +1 -0
- package/lib/components/common/annotation-options/shadow-fields.js +40 -37
- package/lib/components/common/annotation-options/stroke-fields.d.ts +9 -0
- package/lib/components/common/annotation-options/stroke-fields.d.ts.map +1 -0
- package/lib/components/common/annotation-options/stroke-fields.js +13 -10
- package/lib/components/common/button-with-menu/index.d.ts +16 -0
- package/lib/components/common/button-with-menu/index.d.ts.map +1 -0
- package/lib/components/common/button-with-menu/index.js +37 -27
- package/lib/components/common/color-input/index.d.ts +8 -0
- package/lib/components/common/color-input/index.d.ts.map +1 -0
- package/lib/components/common/color-input/index.js +21 -18
- package/lib/components/common/color-picker-modal/index.d.ts +10 -0
- package/lib/components/common/color-picker-modal/index.d.ts.map +1 -0
- package/lib/components/common/color-picker-modal/index.js +29 -22
- package/lib/components/common/hidden-upload-input/index.d.ts +3 -0
- package/lib/components/common/hidden-upload-input/index.d.ts.map +1 -0
- package/lib/components/common/hidden-upload-input/index.js +5 -2
- package/lib/components/common/icon-wrapper/index.d.ts +16 -0
- package/lib/components/common/icon-wrapper/index.d.ts.map +1 -0
- package/lib/components/common/icon-wrapper/index.js +9 -4
- package/lib/components/common/image-preview-tile/index.d.ts +14 -0
- package/lib/components/common/image-preview-tile/index.d.ts.map +1 -0
- package/lib/components/common/image-preview-tile/index.js +15 -13
- package/lib/components/common/slider/index.d.ts +12 -0
- package/lib/components/common/slider/index.d.ts.map +1 -0
- package/lib/components/common/slider/index.js +30 -23
- package/lib/components/feedback-popup/index.d.ts +8 -0
- package/lib/components/feedback-popup/index.d.ts.map +1 -0
- package/lib/components/feedback-popup/index.js +9 -6
- package/lib/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.d.ts +11 -0
- package/lib/components/layers/design-layer/annotation-nodes/annotation-nodes.constants.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/arrow-node.d.ts +15 -0
- package/lib/components/layers/design-layer/annotation-nodes/arrow-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/arrow-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.d.ts +14 -0
- package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/ellipse-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/image-node.d.ts +14 -0
- package/lib/components/layers/design-layer/annotation-nodes/image-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/image-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/index.d.ts +3 -0
- package/lib/components/layers/design-layer/annotation-nodes/index.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/index.js +3 -3
- package/lib/components/layers/design-layer/annotation-nodes/line-node.d.ts +12 -0
- package/lib/components/layers/design-layer/annotation-nodes/line-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/line-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.d.ts +11 -0
- package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/memoized-annotation.js +6 -4
- package/lib/components/layers/design-layer/annotation-nodes/polygon-node.d.ts +15 -0
- package/lib/components/layers/design-layer/annotation-nodes/polygon-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/polygon-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/rect-node.d.ts +16 -0
- package/lib/components/layers/design-layer/annotation-nodes/rect-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/rect-node.js +6 -3
- package/lib/components/layers/design-layer/annotation-nodes/text-node.d.ts +21 -0
- package/lib/components/layers/design-layer/annotation-nodes/text-node.d.ts.map +1 -0
- package/lib/components/layers/design-layer/annotation-nodes/text-node.js +6 -3
- package/lib/components/layers/design-layer/index.d.ts +3 -0
- package/lib/components/layers/design-layer/index.d.ts.map +1 -0
- package/lib/components/layers/design-layer/index.js +43 -39
- package/lib/components/layers/design-layer/nodes-common-prop-types.d.ts +45 -0
- package/lib/components/layers/design-layer/nodes-common-prop-types.d.ts.map +1 -0
- package/lib/components/layers/design-layer/preview-group.d.ts +3 -0
- package/lib/components/layers/design-layer/preview-group.d.ts.map +1 -0
- package/lib/components/layers/design-layer/preview-group.js +5 -2
- package/lib/components/layers/index.d.ts +3 -0
- package/lib/components/layers/index.d.ts.map +1 -0
- package/lib/components/layers/transformers-layer/crop-transformer.d.ts +3 -0
- package/lib/components/layers/transformers-layer/crop-transformer.d.ts.map +1 -0
- package/lib/components/layers/transformers-layer/crop-transformer.js +65 -62
- package/lib/components/layers/transformers-layer/index.d.ts +3 -0
- package/lib/components/layers/transformers-layer/index.d.ts.map +1 -0
- package/lib/components/layers/transformers-layer/index.js +7 -4
- package/lib/components/layers/transformers-layer/nodes-transformer.d.ts +3 -0
- package/lib/components/layers/transformers-layer/nodes-transformer.d.ts.map +1 -0
- package/lib/components/layers/transformers-layer/nodes-transformer.js +2 -1
- package/lib/components/layers/transformers-layer/transformers-layer.utils.d.ts +42 -0
- package/lib/components/layers/transformers-layer/transformers-layer.utils.d.ts.map +1 -0
- package/lib/components/main-canvas/canvas-node.d.ts +6 -0
- package/lib/components/main-canvas/canvas-node.d.ts.map +1 -0
- package/lib/components/main-canvas/canvas-node.js +13 -9
- package/lib/components/main-canvas/index.d.ts +3 -0
- package/lib/components/main-canvas/index.d.ts.map +1 -0
- package/lib/components/main-canvas/index.js +136 -29
- package/lib/components/main-canvas/touch-zooming-events.d.ts +11 -0
- package/lib/components/main-canvas/touch-zooming-events.d.ts.map +1 -0
- package/lib/components/main-canvas/touch-zooming-events.js +3 -2
- package/lib/components/node-controls/index.d.ts +3 -0
- package/lib/components/node-controls/index.d.ts.map +1 -0
- package/lib/components/node-controls/index.js +16 -11
- package/lib/components/tabs/index.d.ts +6 -0
- package/lib/components/tabs/index.d.ts.map +1 -0
- package/lib/components/tabs/index.js +165 -22
- package/lib/components/tabs/tabs.constants.d.ts +9 -0
- package/lib/components/tabs/tabs.constants.d.ts.map +1 -0
- package/lib/components/tabs-drawer/index.d.ts +6 -0
- package/lib/components/tabs-drawer/index.d.ts.map +1 -0
- package/lib/components/tabs-drawer/index.js +75 -46
- package/lib/components/tools/arrow/arrow-button.d.ts +8 -0
- package/lib/components/tools/arrow/arrow-button.d.ts.map +1 -0
- package/lib/components/tools/arrow/arrow-button.js +2 -1
- package/lib/components/tools/arrow/arrow-options.d.ts +4 -0
- package/lib/components/tools/arrow/arrow-options.d.ts.map +1 -0
- package/lib/components/tools/arrow/arrow-options.js +2 -1
- package/lib/components/tools/arrow/index.d.ts +3 -0
- package/lib/components/tools/arrow/index.d.ts.map +1 -0
- package/lib/components/tools/blur/blur-options.d.ts +6 -0
- package/lib/components/tools/blur/blur-options.d.ts.map +1 -0
- package/lib/components/tools/blur/blur-options.js +11 -9
- package/lib/components/tools/blur/blur.d.ts +8 -0
- package/lib/components/tools/blur/blur.d.ts.map +1 -0
- package/lib/components/tools/blur/blur.js +2 -1
- package/lib/components/tools/blur/index.d.ts +3 -0
- package/lib/components/tools/blur/index.d.ts.map +1 -0
- package/lib/components/tools/brightness/brightness-options.d.ts +6 -0
- package/lib/components/tools/brightness/brightness-options.d.ts.map +1 -0
- package/lib/components/tools/brightness/brightness-options.js +12 -10
- package/lib/components/tools/brightness/brightness.d.ts +8 -0
- package/lib/components/tools/brightness/brightness.d.ts.map +1 -0
- package/lib/components/tools/brightness/brightness.js +2 -1
- package/lib/components/tools/brightness/index.d.ts +3 -0
- package/lib/components/tools/brightness/index.d.ts.map +1 -0
- package/lib/components/tools/contrast/contrast-options.d.ts +6 -0
- package/lib/components/tools/contrast/contrast-options.d.ts.map +1 -0
- package/lib/components/tools/contrast/contrast-options.js +11 -9
- package/lib/components/tools/contrast/contrast.d.ts +8 -0
- package/lib/components/tools/contrast/contrast.d.ts.map +1 -0
- package/lib/components/tools/contrast/contrast.js +2 -1
- package/lib/components/tools/contrast/index.d.ts +3 -0
- package/lib/components/tools/contrast/index.d.ts.map +1 -0
- package/lib/components/tools/crop/crop.constants.d.ts +15 -0
- package/lib/components/tools/crop/crop.constants.d.ts.map +1 -0
- package/lib/components/tools/crop/crop.d.ts +7 -0
- package/lib/components/tools/crop/crop.d.ts.map +1 -0
- package/lib/components/tools/crop/crop.js +25 -22
- package/lib/components/tools/crop/index.d.ts +2 -0
- package/lib/components/tools/crop/index.d.ts.map +1 -0
- package/lib/components/tools/ellipse/ellipse-button.d.ts +8 -0
- package/lib/components/tools/ellipse/ellipse-button.d.ts.map +1 -0
- package/lib/components/tools/ellipse/ellipse-button.js +2 -1
- package/lib/components/tools/ellipse/ellipse-options.d.ts +4 -0
- package/lib/components/tools/ellipse/ellipse-options.d.ts.map +1 -0
- package/lib/components/tools/ellipse/ellipse-options.js +2 -1
- package/lib/components/tools/ellipse/index.d.ts +3 -0
- package/lib/components/tools/ellipse/index.d.ts.map +1 -0
- package/lib/components/tools/filters/filter-item.d.ts +11 -0
- package/lib/components/tools/filters/filter-item.d.ts.map +1 -0
- package/lib/components/tools/filters/filter-item.js +36 -28
- package/lib/components/tools/filters/filters.constants.d.ts +8 -0
- package/lib/components/tools/filters/filters.constants.d.ts.map +1 -0
- package/lib/components/tools/filters/filters.d.ts +6 -0
- package/lib/components/tools/filters/filters.d.ts.map +1 -0
- package/lib/components/tools/filters/filters.js +26 -18
- package/lib/components/tools/filters/index.d.ts +2 -0
- package/lib/components/tools/filters/index.d.ts.map +1 -0
- package/lib/components/tools/flip/flip-x.d.ts +8 -0
- package/lib/components/tools/flip/flip-x.d.ts.map +1 -0
- package/lib/components/tools/flip/flip-x.js +2 -1
- package/lib/components/tools/flip/flip-y.d.ts +8 -0
- package/lib/components/tools/flip/flip-y.d.ts.map +1 -0
- package/lib/components/tools/flip/flip-y.js +2 -1
- package/lib/components/tools/flip/index.d.ts +3 -0
- package/lib/components/tools/flip/index.d.ts.map +1 -0
- package/lib/components/tools/hsv/hsv.d.ts +8 -0
- package/lib/components/tools/hsv/hsv.d.ts.map +1 -0
- package/lib/components/tools/hsv/hsv.js +2 -1
- package/lib/components/tools/hsv/hsvoptions.d.ts +6 -0
- package/lib/components/tools/hsv/hsvoptions.d.ts.map +1 -0
- package/lib/components/tools/hsv/hsvoptions.js +32 -30
- package/lib/components/tools/hsv/index.d.ts +3 -0
- package/lib/components/tools/hsv/index.d.ts.map +1 -0
- package/lib/components/tools/image/image-button.d.ts +8 -0
- package/lib/components/tools/image/image-button.d.ts.map +1 -0
- package/lib/components/tools/image/image-button.js +2 -1
- package/lib/components/tools/image/image-controls.d.ts +13 -0
- package/lib/components/tools/image/image-controls.d.ts.map +1 -0
- package/lib/components/tools/image/image-controls.js +5 -3
- package/lib/components/tools/image/image-options.d.ts +3 -0
- package/lib/components/tools/image/image-options.d.ts.map +1 -0
- package/lib/components/tools/image/image-options.js +24 -21
- package/lib/components/tools/image/images-gallery.d.ts +14 -0
- package/lib/components/tools/image/images-gallery.d.ts.map +1 -0
- package/lib/components/tools/image/images-gallery.js +28 -26
- package/lib/components/tools/image/index.d.ts +3 -0
- package/lib/components/tools/image/index.d.ts.map +1 -0
- package/lib/components/tools/line/index.d.ts +3 -0
- package/lib/components/tools/line/index.d.ts.map +1 -0
- package/lib/components/tools/line/line-button.d.ts +8 -0
- package/lib/components/tools/line/line-button.d.ts.map +1 -0
- package/lib/components/tools/line/line-button.js +2 -1
- package/lib/components/tools/line/line-options.d.ts +4 -0
- package/lib/components/tools/line/line-options.d.ts.map +1 -0
- package/lib/components/tools/line/line-options.js +2 -1
- package/lib/components/tools/pen/index.d.ts +3 -0
- package/lib/components/tools/pen/index.d.ts.map +1 -0
- package/lib/components/tools/pen/pen-button.d.ts +8 -0
- package/lib/components/tools/pen/pen-button.d.ts.map +1 -0
- package/lib/components/tools/pen/pen-button.js +2 -1
- package/lib/components/tools/pen/pen-options.d.ts +3 -0
- package/lib/components/tools/pen/pen-options.d.ts.map +1 -0
- package/lib/components/tools/pen/pen-options.js +6 -4
- package/lib/components/tools/polygon/index.d.ts +3 -0
- package/lib/components/tools/polygon/index.d.ts.map +1 -0
- package/lib/components/tools/polygon/polygon-button.d.ts +8 -0
- package/lib/components/tools/polygon/polygon-button.d.ts.map +1 -0
- package/lib/components/tools/polygon/polygon-button.js +2 -1
- package/lib/components/tools/polygon/polygon-options.d.ts +4 -0
- package/lib/components/tools/polygon/polygon-options.d.ts.map +1 -0
- package/lib/components/tools/polygon/polygon-options.js +2 -1
- package/lib/components/tools/polygon/polygon-sides-field.d.ts +9 -0
- package/lib/components/tools/polygon/polygon-sides-field.d.ts.map +1 -0
- package/lib/components/tools/polygon/polygon-sides-field.js +2 -1
- package/lib/components/tools/polygon/polygon.constants.d.ts +12 -0
- package/lib/components/tools/polygon/polygon.constants.d.ts.map +1 -0
- package/lib/components/tools/rect/index.d.ts +3 -0
- package/lib/components/tools/rect/index.d.ts.map +1 -0
- package/lib/components/tools/rect/rect-button.d.ts +8 -0
- package/lib/components/tools/rect/rect-button.d.ts.map +1 -0
- package/lib/components/tools/rect/rect-button.js +2 -1
- package/lib/components/tools/rect/rect-corner-field.d.ts +9 -0
- package/lib/components/tools/rect/rect-corner-field.d.ts.map +1 -0
- package/lib/components/tools/rect/rect-corner-field.js +2 -1
- package/lib/components/tools/rect/rect-options.d.ts +4 -0
- package/lib/components/tools/rect/rect-options.d.ts.map +1 -0
- package/lib/components/tools/rect/rect-options.js +2 -1
- package/lib/components/tools/rect/rect.constants.d.ts +12 -0
- package/lib/components/tools/rect/rect.constants.d.ts.map +1 -0
- package/lib/components/tools/resize/index.d.ts +2 -0
- package/lib/components/tools/resize/index.d.ts.map +1 -0
- package/lib/components/tools/resize/resize.d.ts +13 -0
- package/lib/components/tools/resize/resize.d.ts.map +1 -0
- package/lib/components/tools/resize/resize.js +41 -34
- package/lib/components/tools/rotate/index.d.ts +3 -0
- package/lib/components/tools/rotate/index.d.ts.map +1 -0
- package/lib/components/tools/rotate/rotate-button.d.ts +8 -0
- package/lib/components/tools/rotate/rotate-button.d.ts.map +1 -0
- package/lib/components/tools/rotate/rotate-button.js +2 -1
- package/lib/components/tools/rotate/rotate-options.d.ts +3 -0
- package/lib/components/tools/rotate/rotate-options.d.ts.map +1 -0
- package/lib/components/tools/rotate/rotate-options.js +51 -45
- package/lib/components/tools/text/index.d.ts +3 -0
- package/lib/components/tools/text/index.d.ts.map +1 -0
- package/lib/components/tools/text/text-button.d.ts +8 -0
- package/lib/components/tools/text/text-button.d.ts.map +1 -0
- package/lib/components/tools/text/text-button.js +2 -1
- package/lib/components/tools/text/text-options/handle-text-change-area.d.ts +4 -0
- package/lib/components/tools/text/text-options/handle-text-change-area.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/index.d.ts +4 -0
- package/lib/components/tools/text/text-options/index.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/index.js +2 -1
- package/lib/components/tools/text/text-options/text-alignment-fields.d.ts +9 -0
- package/lib/components/tools/text/text-options/text-alignment-fields.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/text-alignment-fields.js +26 -21
- package/lib/components/tools/text/text-options/text-controls.d.ts +12 -0
- package/lib/components/tools/text/text-options/text-controls.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/text-controls.js +51 -44
- package/lib/components/tools/text/text-options/text-options.constants.d.ts +14 -0
- package/lib/components/tools/text/text-options/text-options.constants.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/text-spacings-fields.d.ts +10 -0
- package/lib/components/tools/text/text-options/text-spacings-fields.d.ts.map +1 -0
- package/lib/components/tools/text/text-options/text-spacings-fields.js +20 -17
- package/lib/components/tools/tools.constants.d.ts +9 -0
- package/lib/components/tools/tools.constants.d.ts.map +1 -0
- package/lib/components/tools/warmth/index.d.ts +3 -0
- package/lib/components/tools/warmth/index.d.ts.map +1 -0
- package/lib/components/tools/warmth/warmth-options.d.ts +7 -0
- package/lib/components/tools/warmth/warmth-options.d.ts.map +1 -0
- package/lib/components/tools/warmth/warmth-options.js +11 -9
- package/lib/components/tools/warmth/warmth.d.ts +8 -0
- package/lib/components/tools/warmth/warmth.d.ts.map +1 -0
- package/lib/components/tools/warmth/warmth.js +2 -1
- package/lib/components/tools/watermark/index.d.ts +2 -0
- package/lib/components/tools/watermark/index.d.ts.map +1 -0
- package/lib/components/tools/watermark/watermark-padding.d.ts +8 -0
- package/lib/components/tools/watermark/watermark-padding.d.ts.map +1 -0
- package/lib/components/tools/watermark/watermark-padding.js +36 -30
- package/lib/components/tools/watermark/watermark.d.ts +3 -0
- package/lib/components/tools/watermark/watermark.d.ts.map +1 -0
- package/lib/components/tools/watermark/watermark.js +35 -28
- package/lib/components/tools/watermark/watermarks-gallery.d.ts +7 -0
- package/lib/components/tools/watermark/watermarks-gallery.d.ts.map +1 -0
- package/lib/components/tools/watermark/watermarks-gallery.js +22 -18
- package/lib/components/tools-bar/index.d.ts +3 -0
- package/lib/components/tools-bar/index.d.ts.map +1 -0
- package/lib/components/tools-bar/index.js +57 -29
- package/lib/components/tools-bar/tools-bar-item-button.d.ts +23 -0
- package/lib/components/tools-bar/tools-bar-item-button.d.ts.map +1 -0
- package/lib/components/tools-bar/tools-bar-item-button.js +17 -9
- package/lib/components/topbar/canvas-zooming.d.ts +3 -0
- package/lib/components/topbar/canvas-zooming.d.ts.map +1 -0
- package/lib/components/topbar/canvas-zooming.js +54 -46
- package/lib/components/topbar/confirmation-modal.d.ts +8 -0
- package/lib/components/topbar/confirmation-modal.d.ts.map +1 -0
- package/lib/components/topbar/confirmation-modal.js +26 -19
- package/lib/components/topbar/image-dimensions-and-display-toggle.d.ts +3 -0
- package/lib/components/topbar/image-dimensions-and-display-toggle.d.ts.map +1 -0
- package/lib/components/topbar/image-dimensions-and-display-toggle.js +20 -14
- package/lib/components/topbar/index.d.ts +7 -0
- package/lib/components/topbar/index.d.ts.map +1 -0
- package/lib/components/topbar/index.js +49 -35
- package/lib/components/topbar/redo-button.d.ts +3 -0
- package/lib/components/topbar/redo-button.d.ts.map +1 -0
- package/lib/components/topbar/redo-button.js +6 -4
- package/lib/components/topbar/reset-button.d.ts +3 -0
- package/lib/components/topbar/reset-button.d.ts.map +1 -0
- package/lib/components/topbar/reset-button.js +12 -9
- package/lib/components/topbar/save-button.d.ts +3 -0
- package/lib/components/topbar/save-button.d.ts.map +1 -0
- package/lib/components/topbar/save-button.js +69 -57
- package/lib/components/topbar/topbar-action-buttons.d.ts +3 -0
- package/lib/components/topbar/topbar-action-buttons.d.ts.map +1 -0
- package/lib/components/topbar/topbar-action-buttons.js +27 -0
- package/lib/components/topbar/topbar.constants.d.ts +8 -0
- package/lib/components/topbar/topbar.constants.d.ts.map +1 -0
- package/lib/components/topbar/undo-button.d.ts +3 -0
- package/lib/components/topbar/undo-button.d.ts.map +1 -0
- package/lib/components/topbar/undo-button.js +6 -4
- package/lib/context/app-context.d.ts +14 -0
- package/lib/context/app-context.d.ts.map +1 -0
- package/lib/context/app-provider-overriden-value.d.ts +11 -0
- package/lib/context/app-provider-overriden-value.d.ts.map +1 -0
- package/lib/context/app-provider-overriden-value.js +5 -3
- package/lib/context/app-provider.d.ts +10 -0
- package/lib/context/app-provider.d.ts.map +1 -0
- package/lib/context/app-provider.js +13 -9
- package/lib/context/app-reducer.d.ts +5 -0
- package/lib/context/app-reducer.d.ts.map +1 -0
- package/lib/context/app-reducer.js +2 -1
- package/lib/context/default-config.d.ts +4 -0
- package/lib/context/default-config.d.ts.map +1 -0
- package/lib/context/default-config.js +1 -1
- package/lib/context/default-translations.d.ts +4 -0
- package/lib/context/default-translations.d.ts.map +1 -0
- package/lib/context/default-translations.js +465 -113
- package/lib/context/get-initial-app-state.d.ts +5 -0
- package/lib/context/get-initial-app-state.d.ts.map +1 -0
- package/lib/context/get-initial-app-state.js +4 -4
- package/lib/context/index.d.ts +5 -0
- package/lib/context/index.d.ts.map +1 -0
- package/lib/custom/filters/aden.d.ts +14 -0
- package/lib/custom/filters/aden.d.ts.map +1 -0
- package/lib/custom/filters/amaro.d.ts +14 -0
- package/lib/custom/filters/amaro.d.ts.map +1 -0
- package/lib/custom/filters/ashby.d.ts +14 -0
- package/lib/custom/filters/ashby.d.ts.map +1 -0
- package/lib/custom/filters/base-filters.d.ts +14 -0
- package/lib/custom/filters/base-filters.d.ts.map +1 -0
- package/lib/custom/filters/black-and-white.d.ts +14 -0
- package/lib/custom/filters/black-and-white.d.ts.map +1 -0
- package/lib/custom/filters/brannan.d.ts +14 -0
- package/lib/custom/filters/brannan.d.ts.map +1 -0
- package/lib/custom/filters/brooklyn.d.ts +14 -0
- package/lib/custom/filters/brooklyn.d.ts.map +1 -0
- package/lib/custom/filters/charmes.d.ts +14 -0
- package/lib/custom/filters/charmes.d.ts.map +1 -0
- package/lib/custom/filters/clarendon.d.ts +14 -0
- package/lib/custom/filters/clarendon.d.ts.map +1 -0
- package/lib/custom/filters/crema.d.ts +14 -0
- package/lib/custom/filters/crema.d.ts.map +1 -0
- package/lib/custom/filters/dogpatch.d.ts +14 -0
- package/lib/custom/filters/dogpatch.d.ts.map +1 -0
- package/lib/custom/filters/earlybird.d.ts +14 -0
- package/lib/custom/filters/earlybird.d.ts.map +1 -0
- package/lib/custom/filters/gingham.d.ts +14 -0
- package/lib/custom/filters/gingham.d.ts.map +1 -0
- package/lib/custom/filters/ginza.d.ts +14 -0
- package/lib/custom/filters/ginza.d.ts.map +1 -0
- package/lib/custom/filters/hefe.d.ts +14 -0
- package/lib/custom/filters/hefe.d.ts.map +1 -0
- package/lib/custom/filters/helena.d.ts +14 -0
- package/lib/custom/filters/helena.d.ts.map +1 -0
- package/lib/custom/filters/hudson.d.ts +14 -0
- package/lib/custom/filters/hudson.d.ts.map +1 -0
- package/lib/custom/filters/index.d.ts +41 -0
- package/lib/custom/filters/index.d.ts.map +1 -0
- package/lib/custom/filters/juno.d.ts +14 -0
- package/lib/custom/filters/juno.d.ts.map +1 -0
- package/lib/custom/filters/kelvin.d.ts +14 -0
- package/lib/custom/filters/kelvin.d.ts.map +1 -0
- package/lib/custom/filters/lark.d.ts +14 -0
- package/lib/custom/filters/lark.d.ts.map +1 -0
- package/lib/custom/filters/lo-fi.d.ts +14 -0
- package/lib/custom/filters/lo-fi.d.ts.map +1 -0
- package/lib/custom/filters/ludwig.d.ts +14 -0
- package/lib/custom/filters/ludwig.d.ts.map +1 -0
- package/lib/custom/filters/maven.d.ts +14 -0
- package/lib/custom/filters/maven.d.ts.map +1 -0
- package/lib/custom/filters/mayfair.d.ts +14 -0
- package/lib/custom/filters/mayfair.d.ts.map +1 -0
- package/lib/custom/filters/moon.d.ts +14 -0
- package/lib/custom/filters/moon.d.ts.map +1 -0
- package/lib/custom/filters/nashville.d.ts +14 -0
- package/lib/custom/filters/nashville.d.ts.map +1 -0
- package/lib/custom/filters/ninteen-seventy-seven.d.ts +14 -0
- package/lib/custom/filters/ninteen-seventy-seven.d.ts.map +1 -0
- package/lib/custom/filters/perpetua.d.ts +14 -0
- package/lib/custom/filters/perpetua.d.ts.map +1 -0
- package/lib/custom/filters/reyes.d.ts +14 -0
- package/lib/custom/filters/reyes.d.ts.map +1 -0
- package/lib/custom/filters/rise.d.ts +14 -0
- package/lib/custom/filters/rise.d.ts.map +1 -0
- package/lib/custom/filters/sierra.d.ts +14 -0
- package/lib/custom/filters/sierra.d.ts.map +1 -0
- package/lib/custom/filters/skyline.d.ts +14 -0
- package/lib/custom/filters/skyline.d.ts.map +1 -0
- package/lib/custom/filters/slumber.d.ts +14 -0
- package/lib/custom/filters/slumber.d.ts.map +1 -0
- package/lib/custom/filters/stinson.d.ts +14 -0
- package/lib/custom/filters/stinson.d.ts.map +1 -0
- package/lib/custom/filters/sutro.d.ts +14 -0
- package/lib/custom/filters/sutro.d.ts.map +1 -0
- package/lib/custom/filters/toaster.d.ts +14 -0
- package/lib/custom/filters/toaster.d.ts.map +1 -0
- package/lib/custom/filters/valencia.d.ts +14 -0
- package/lib/custom/filters/valencia.d.ts.map +1 -0
- package/lib/custom/filters/vesper.d.ts +14 -0
- package/lib/custom/filters/vesper.d.ts.map +1 -0
- package/lib/custom/filters/walden.d.ts +14 -0
- package/lib/custom/filters/walden.d.ts.map +1 -0
- package/lib/custom/filters/willow.d.ts +14 -0
- package/lib/custom/filters/willow.d.ts.map +1 -0
- package/lib/custom/filters/xpro2.d.ts +14 -0
- package/lib/custom/filters/xpro2.d.ts.map +1 -0
- package/lib/custom/finetunes/custom-threshold.d.ts +15 -0
- package/lib/custom/finetunes/custom-threshold.d.ts.map +1 -0
- package/lib/custom/finetunes/index.d.ts +3 -0
- package/lib/custom/finetunes/index.d.ts.map +1 -0
- package/lib/custom/finetunes/warmth.d.ts +17 -0
- package/lib/custom/finetunes/warmth.d.ts.map +1 -0
- package/lib/demo/app.d.ts +6 -0
- package/lib/demo/app.d.ts.map +1 -0
- package/lib/demo/app.js +142 -86
- package/lib/demo/index.d.ts +2 -0
- package/lib/demo/index.d.ts.map +1 -0
- package/lib/hooks/index.d.ts +14 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +2 -1
- package/lib/hooks/use-annotation/get-bounding-rect-un-scaled.d.ts +19 -0
- package/lib/hooks/use-annotation/get-bounding-rect-un-scaled.d.ts.map +1 -0
- package/lib/hooks/use-annotation/get-new-annotation-preview.d.ts +25 -0
- package/lib/hooks/use-annotation/get-new-annotation-preview.d.ts.map +1 -0
- package/lib/hooks/use-annotation/get-new-annotation-preview.js +2 -2
- package/lib/hooks/use-annotation/index.d.ts +74 -0
- package/lib/hooks/use-annotation/index.d.ts.map +1 -0
- package/lib/hooks/use-annotation/index.js +15 -2
- package/lib/hooks/use-annotation/preview-then-call-annotation-adding.d.ts +3 -0
- package/lib/hooks/use-annotation/preview-then-call-annotation-adding.d.ts.map +1 -0
- package/lib/hooks/use-annotation-events.d.ts +11 -0
- package/lib/hooks/use-annotation-events.d.ts.map +1 -0
- package/lib/hooks/use-app-reducer.d.ts +13 -0
- package/lib/hooks/use-app-reducer.d.ts.map +1 -0
- package/lib/hooks/use-app-reducer.js +2 -1
- package/lib/hooks/use-debounced-callback.d.ts +5 -0
- package/lib/hooks/use-debounced-callback.d.ts.map +1 -0
- package/lib/hooks/use-drag.d.ts +8 -0
- package/lib/hooks/use-drag.d.ts.map +1 -0
- package/lib/hooks/use-filter.d.ts +4 -0
- package/lib/hooks/use-filter.d.ts.map +1 -0
- package/lib/hooks/use-finetune.d.ts +5 -0
- package/lib/hooks/use-finetune.d.ts.map +1 -0
- package/lib/hooks/use-image-editor-actions.d.ts +16 -0
- package/lib/hooks/use-image-editor-actions.d.ts.map +1 -0
- package/lib/hooks/use-image-editor-actions.js +147 -0
- package/lib/hooks/use-phone-screen.d.ts +3 -0
- package/lib/hooks/use-phone-screen.d.ts.map +1 -0
- package/lib/hooks/use-popover.d.ts +11 -0
- package/lib/hooks/use-popover.d.ts.map +1 -0
- package/lib/hooks/use-resize-observer.d.ts +12 -0
- package/lib/hooks/use-resize-observer.d.ts.map +1 -0
- package/lib/hooks/use-resize-observer.js +2 -3
- package/lib/hooks/use-store.d.ts +5 -0
- package/lib/hooks/use-store.d.ts.map +1 -0
- package/lib/hooks/use-transformed-img-data.d.ts +20 -0
- package/lib/hooks/use-transformed-img-data.d.ts.map +1 -0
- package/lib/hooks/use-transformed-img-data.js +13 -9
- package/lib/hooks/use-update-effect.d.ts +5 -0
- package/lib/hooks/use-update-effect.d.ts.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/types/actions.d.ts +197 -0
- package/lib/types/actions.d.ts.map +1 -0
- package/lib/types/annotations.d.ts +181 -0
- package/lib/types/annotations.d.ts.map +1 -0
- package/lib/types/common.d.ts +31 -0
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/config.d.ts +193 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/index.d.ts +6 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/state.d.ts +105 -0
- package/lib/types/state.d.ts.map +1 -0
- package/lib/utils/assign-finetune-names-to-konva.d.ts +3 -0
- package/lib/utils/assign-finetune-names-to-konva.d.ts.map +1 -0
- package/lib/utils/calculate-zoom-data.d.ts +9 -0
- package/lib/utils/calculate-zoom-data.d.ts.map +1 -0
- package/lib/utils/calculate-zoom-data.js +5 -4
- package/lib/utils/compare-ratios.d.ts +3 -0
- package/lib/utils/compare-ratios.d.ts.map +1 -0
- package/lib/utils/constants.d.ts +85 -0
- package/lib/utils/constants.d.ts.map +1 -0
- package/lib/utils/crop-image.d.ts +12 -0
- package/lib/utils/crop-image.d.ts.map +1 -0
- package/lib/utils/crop-image.js +10 -4
- package/lib/utils/debounce.d.ts +3 -0
- package/lib/utils/debounce.d.ts.map +1 -0
- package/lib/utils/deep-merge.d.ts +3 -0
- package/lib/utils/deep-merge.d.ts.map +1 -0
- package/lib/utils/extract-current-design-state.d.ts +11 -0
- package/lib/utils/extract-current-design-state.d.ts.map +1 -0
- package/lib/utils/extract-current-design-state.js +3 -2
- package/lib/utils/extract-name-from-url.d.ts +3 -0
- package/lib/utils/extract-name-from-url.d.ts.map +1 -0
- package/lib/utils/filter-str-to-class.d.ts +4 -0
- package/lib/utils/filter-str-to-class.d.ts.map +1 -0
- package/lib/utils/filter-str-to-class.js +2 -1
- package/lib/utils/finetunes-strs-to-classes.d.ts +4 -0
- package/lib/utils/finetunes-strs-to-classes.d.ts.map +1 -0
- package/lib/utils/finetunes-strs-to-classes.js +2 -1
- package/lib/utils/get-center-rotated-point.d.ts +8 -0
- package/lib/utils/get-center-rotated-point.d.ts.map +1 -0
- package/lib/utils/get-default-save-quality.d.ts +3 -0
- package/lib/utils/get-default-save-quality.d.ts.map +1 -0
- package/lib/utils/get-dimensions-minimal-ratio.d.ts +3 -0
- package/lib/utils/get-dimensions-minimal-ratio.d.ts.map +1 -0
- package/lib/utils/get-elem-document-coords.d.ts +9 -0
- package/lib/utils/get-elem-document-coords.d.ts.map +1 -0
- package/lib/utils/get-file-full-name.d.ts +8 -0
- package/lib/utils/get-file-full-name.d.ts.map +1 -0
- package/lib/utils/get-file-full-name.js +3 -3
- package/lib/utils/get-pointer-offset-position-bounded-to-object.d.ts +21 -0
- package/lib/utils/get-pointer-offset-position-bounded-to-object.d.ts.map +1 -0
- package/lib/utils/get-pointer-offset-position-bounded-to-object.js +2 -1
- package/lib/utils/get-proper-dimensions.d.ts +11 -0
- package/lib/utils/get-proper-dimensions.d.ts.map +1 -0
- package/lib/utils/get-proper-dimensions.js +3 -2
- package/lib/utils/get-proper-image-to-canvas-spacing.d.ts +3 -0
- package/lib/utils/get-proper-image-to-canvas-spacing.d.ts.map +1 -0
- package/lib/utils/get-scroll-offset.d.ts +7 -0
- package/lib/utils/get-scroll-offset.d.ts.map +1 -0
- package/lib/utils/get-size-after-rotation.d.ts +9 -0
- package/lib/utils/get-size-after-rotation.d.ts.map +1 -0
- package/lib/utils/get-zoom-fit-factor.d.ts +4 -0
- package/lib/utils/get-zoom-fit-factor.d.ts.map +1 -0
- package/lib/utils/image-to-base64.d.ts +3 -0
- package/lib/utils/image-to-base64.d.ts.map +1 -0
- package/lib/utils/is-default-zero-values-only.d.ts +3 -0
- package/lib/utils/is-default-zero-values-only.d.ts.map +1 -0
- package/lib/utils/is-same-image.d.ts +3 -0
- package/lib/utils/is-same-image.d.ts.map +1 -0
- package/lib/utils/load-image.d.ts +3 -0
- package/lib/utils/load-image.d.ts.map +1 -0
- package/lib/utils/load-image.js +1 -3
- package/lib/utils/map-crop-box.d.ts +16 -0
- package/lib/utils/map-crop-box.d.ts.map +1 -0
- package/lib/utils/map-number.d.ts +3 -0
- package/lib/utils/map-number.d.ts.map +1 -0
- package/lib/utils/map-position-string-to-point.d.ts +8 -0
- package/lib/utils/map-position-string-to-point.d.ts.map +1 -0
- package/lib/utils/random-id.d.ts +3 -0
- package/lib/utils/random-id.d.ts.map +1 -0
- package/lib/utils/restrict-number.d.ts +3 -0
- package/lib/utils/restrict-number.d.ts.map +1 -0
- package/lib/utils/restrict-number.js +2 -2
- package/lib/utils/serialize-design-state.d.ts +27 -0
- package/lib/utils/serialize-design-state.d.ts.map +1 -0
- package/lib/utils/serialize-design-state.js +5 -3
- package/lib/utils/to-precised-float.d.ts +3 -0
- package/lib/utils/to-precised-float.d.ts.map +1 -0
- package/lib/utils/translator.d.ts +6 -0
- package/lib/utils/translator.d.ts.map +1 -0
- package/lib/utils/translator.js +11 -2
- package/package.json +10 -3
|
@@ -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 | null;
|
|
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":"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"}
|
|
@@ -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"}
|
|
@@ -3,6 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { DEFAULT_ZOOM_FACTOR } from "./constants";
|
|
5
5
|
var calculateZoomData = function calculateZoomData(newZoom, oldZoom, canvasWidth, canvasHeight) {
|
|
6
|
+
var _newZoom$x, _oldZoom$x, _newZoom$y, _oldZoom$y, _newZoom$x2, _newZoom$y2;
|
|
6
7
|
if (newZoom.factor === DEFAULT_ZOOM_FACTOR) {
|
|
7
8
|
return {
|
|
8
9
|
x: 0,
|
|
@@ -12,12 +13,12 @@ var calculateZoomData = function calculateZoomData(newZoom, oldZoom, canvasWidth
|
|
|
12
13
|
}
|
|
13
14
|
var isZoomIn = newZoom.factor > oldZoom.factor;
|
|
14
15
|
var mousePointTo = {
|
|
15
|
-
x: ((newZoom.x
|
|
16
|
-
y: ((newZoom.y
|
|
16
|
+
x: (((_newZoom$x = newZoom.x) !== null && _newZoom$x !== void 0 ? _newZoom$x : 0) - ((_oldZoom$x = oldZoom.x) !== null && _oldZoom$x !== void 0 ? _oldZoom$x : 0)) / oldZoom.factor,
|
|
17
|
+
y: (((_newZoom$y = newZoom.y) !== null && _newZoom$y !== void 0 ? _newZoom$y : 0) - ((_oldZoom$y = oldZoom.y) !== null && _oldZoom$y !== void 0 ? _oldZoom$y : 0)) / oldZoom.factor
|
|
17
18
|
};
|
|
18
19
|
var newPos = {
|
|
19
|
-
x: (newZoom.x
|
|
20
|
-
y: (newZoom.y
|
|
20
|
+
x: ((_newZoom$x2 = newZoom.x) !== null && _newZoom$x2 !== void 0 ? _newZoom$x2 : 0) - mousePointTo.x * newZoom.factor,
|
|
21
|
+
y: ((_newZoom$y2 = newZoom.y) !== null && _newZoom$y2 !== void 0 ? _newZoom$y2 : 0) - mousePointTo.y * newZoom.factor
|
|
21
22
|
};
|
|
22
23
|
if (!isZoomIn || oldZoom.factor !== 1) {
|
|
23
24
|
newPos.x = Math.min(0, Math.max(newPos.x, canvasWidth * (1 - oldZoom.factor)));
|
|
@@ -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,12 @@
|
|
|
1
|
+
interface CropBox {
|
|
2
|
+
ratio?: string | number;
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const cropImageRect: (context: CanvasRenderingContext2D, cropBox: CropBox) => void;
|
|
9
|
+
export declare const cropImageEllipse: (context: CanvasRenderingContext2D, cropBox: CropBox) => void;
|
|
10
|
+
declare const cropImage: (context: CanvasRenderingContext2D, cropBox: CropBox, forceRect?: boolean) => void;
|
|
11
|
+
export default cropImage;
|
|
12
|
+
//# 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,eAAO,MAAM,aAAa,GACxB,SAAS,wBAAwB,EACjC,SAAS,OAAO,KACf,IAEF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,SAAS,wBAAwB,EACjC,SAAS,OAAO,KACf,IAUF,CAAC;AAEF,QAAA,MAAM,SAAS,GACb,SAAS,wBAAwB,EACjC,SAAS,OAAO,EAChB,YAAW,OAAe,KACzB,IAMF,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/lib/utils/crop-image.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { ELLIPSE_CROP } from "./constants";
|
|
2
|
+
export var cropImageRect = function cropImageRect(context, cropBox) {
|
|
3
|
+
context.rect(cropBox.x, cropBox.y, cropBox.width, cropBox.height);
|
|
4
|
+
};
|
|
5
|
+
export var cropImageEllipse = function cropImageEllipse(context, cropBox) {
|
|
6
|
+
context.ellipse(cropBox.x + cropBox.width / 2, cropBox.y + cropBox.height / 2, cropBox.width / 2, cropBox.height / 2, 0, 0, 2 * Math.PI);
|
|
7
|
+
};
|
|
2
8
|
var cropImage = function cropImage(context, cropBox) {
|
|
3
|
-
var
|
|
4
|
-
if (cropBox.ratio === ELLIPSE_CROP && !
|
|
5
|
-
context
|
|
9
|
+
var forceRect = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
10
|
+
if (cropBox.ratio === ELLIPSE_CROP && !forceRect) {
|
|
11
|
+
cropImageEllipse(context, cropBox);
|
|
6
12
|
} else {
|
|
7
|
-
context
|
|
13
|
+
cropImageRect(context, cropBox);
|
|
8
14
|
}
|
|
9
15
|
};
|
|
10
16
|
export default cropImage;
|
|
@@ -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"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import defaultConfig from "../context/default-config";
|
|
2
2
|
import getInitialAppState from "../context/get-initial-app-state";
|
|
3
3
|
var extractCurrentDesignState = function extractCurrentDesignState(state, useStateAsConfig) {
|
|
4
|
+
var _state$imgSrc, _state$filter;
|
|
4
5
|
var initialAppState = getInitialAppState(useStateAsConfig ? state : defaultConfig);
|
|
5
6
|
return {
|
|
6
|
-
imgSrc: state.imgSrc
|
|
7
|
+
imgSrc: (_state$imgSrc = state.imgSrc) !== null && _state$imgSrc !== void 0 ? _state$imgSrc : initialAppState.imgSrc,
|
|
7
8
|
finetunes: state.finetunes || initialAppState.finetunes,
|
|
8
9
|
finetunesProps: state.finetunesProps || initialAppState.finetunesProps,
|
|
9
|
-
filter: state.filter
|
|
10
|
+
filter: (_state$filter = state.filter) !== null && _state$filter !== void 0 ? _state$filter : initialAppState.filter,
|
|
10
11
|
adjustments: state.adjustments || initialAppState.adjustments,
|
|
11
12
|
annotations: state.annotations || initialAppState.annotations,
|
|
12
13
|
resize: state.resize || initialAppState.resize
|
|
@@ -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"}
|
|
@@ -2,7 +2,8 @@ import Konva from 'konva';
|
|
|
2
2
|
import * as CustomFilters from "../custom/filters";
|
|
3
3
|
var filterStrToClass = function filterStrToClass(filterString) {
|
|
4
4
|
if (filterString) {
|
|
5
|
-
|
|
5
|
+
var _filterString;
|
|
6
|
+
return (_filterString = CustomFilters[filterString]) !== null && _filterString !== void 0 ? _filterString : Konva.Filters[filterString];
|
|
6
7
|
}
|
|
7
8
|
return null;
|
|
8
9
|
};
|
|
@@ -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"}
|
|
@@ -3,7 +3,8 @@ import * as CustomFinetunes from "../custom/finetunes";
|
|
|
3
3
|
var finetunesStrsToClasses = function finetunesStrsToClasses(finetunesStrings) {
|
|
4
4
|
if (Array.isArray(finetunesStrings) && finetunesStrings.length > 0) {
|
|
5
5
|
return finetunesStrings.map(function (finetuneClassName) {
|
|
6
|
-
|
|
6
|
+
var _finetuneClassName;
|
|
7
|
+
return (_finetuneClassName = Konva.Filters[finetuneClassName]) !== null && _finetuneClassName !== void 0 ? _finetuneClassName : CustomFinetunes[finetuneClassName];
|
|
7
8
|
}).filter(function (filter) {
|
|
8
9
|
return filter !== undefined;
|
|
9
10
|
});
|
|
@@ -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,YA2BF,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { DEFAULT_IMAGE_TYPE, POSSIBLE_IMAGE_TYPES, SUPPORTED_IMAGE_TYPES } from "./constants";
|
|
2
2
|
var getFileFullName = function getFileFullName(fileNameProp, appendedExtension) {
|
|
3
|
-
var fileName = fileNameProp
|
|
3
|
+
var fileName = fileNameProp !== null && fileNameProp !== void 0 ? fileNameProp : '';
|
|
4
4
|
var finalExtension = appendedExtension;
|
|
5
5
|
var finalFileName = fileName;
|
|
6
6
|
if (!finalExtension && POSSIBLE_IMAGE_TYPES.some(function (extension) {
|
|
7
|
-
return fileName.
|
|
7
|
+
return fileName.endsWith(".".concat(extension));
|
|
8
8
|
})) {
|
|
9
9
|
var _fileName$slice;
|
|
10
10
|
var currentExtension = (_fileName$slice = fileName.slice(fileName.lastIndexOf('.') + 1)) === null || _fileName$slice === void 0 ? void 0 : _fileName$slice.toLowerCase();
|
|
11
11
|
finalExtension = currentExtension && SUPPORTED_IMAGE_TYPES.includes(currentExtension) ? currentExtension : DEFAULT_IMAGE_TYPE;
|
|
12
12
|
finalFileName = fileName.slice(0, fileName.lastIndexOf('.'));
|
|
13
13
|
}
|
|
14
|
-
finalExtension = finalExtension
|
|
14
|
+
finalExtension = finalExtension !== null && finalExtension !== void 0 ? finalExtension : DEFAULT_IMAGE_TYPE;
|
|
15
15
|
return {
|
|
16
16
|
fullName: "".concat(finalFileName, ".").concat(finalExtension),
|
|
17
17
|
name: finalFileName,
|
|
@@ -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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import restrictNumber from "./restrict-number";
|
|
2
2
|
var getPointerOffsetPositionBoundedToObject = function getPointerOffsetPositionBoundedToObject() {
|
|
3
|
+
var _designLayer$getRelat;
|
|
3
4
|
var previewGroup = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
4
5
|
var relativeToObject = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
5
6
|
width: 0,
|
|
@@ -14,7 +15,7 @@ var getPointerOffsetPositionBoundedToObject = function getPointerOffsetPositionB
|
|
|
14
15
|
var designLayer = previewGroup.parent;
|
|
15
16
|
var canvas = designLayer.getStage();
|
|
16
17
|
var canvasZoomFactor = canvas.attrs.zoomFactor;
|
|
17
|
-
var pos = designLayer.getRelativePointerPosition()
|
|
18
|
+
var pos = (_designLayer$getRelat = designLayer.getRelativePointerPosition()) !== null && _designLayer$getRelat !== void 0 ? _designLayer$getRelat : {
|
|
18
19
|
x: 0,
|
|
19
20
|
y: 0
|
|
20
21
|
};
|
|
@@ -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"}
|
|
@@ -11,9 +11,10 @@ var getProperDimensions = function getProperDimensions(resizeDimensions, cropDim
|
|
|
11
11
|
var mappedCropArea = mapCropBox(cropDimensions, shownImageDimensions, originalDimensions);
|
|
12
12
|
var croppedRotatedArea = getSizeAfterRotation(mappedCropArea.width, mappedCropArea.height, rotationAngle);
|
|
13
13
|
if (resizeDimensions.width || resizeDimensions.height) {
|
|
14
|
+
var _resizeDimensions$wid, _resizeDimensions$hei;
|
|
14
15
|
return {
|
|
15
|
-
width: resizeDimensions.width
|
|
16
|
-
height: resizeDimensions.height
|
|
16
|
+
width: (_resizeDimensions$wid = resizeDimensions.width) !== null && _resizeDimensions$wid !== void 0 ? _resizeDimensions$wid : croppedRotatedArea.width,
|
|
17
|
+
height: (_resizeDimensions$hei = resizeDimensions.height) !== null && _resizeDimensions$hei !== void 0 ? _resizeDimensions$hei : croppedRotatedArea.height
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
return croppedRotatedArea.width && croppedRotatedArea.height && croppedRotatedArea || _objectSpread(_objectSpread({}, originalDimensions), getSizeAfterRotation(originalDimensions.width, originalDimensions.height, rotationAngle));
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-to-base64.d.ts","sourceRoot":"","sources":["../../src/utils/image-to-base64.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,GAAI,OAAO,gBAAgB,KAAG,MAWhD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|