@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,8 @@
|
|
|
1
|
+
interface ContrastProps {
|
|
2
|
+
selectTool: () => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const Contrast: ({ selectTool, isSelected, t }: ContrastProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Contrast;
|
|
8
|
+
//# sourceMappingURL=contrast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contrast.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/contrast/contrast.tsx"],"names":[],"mappings":"AAOA,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,QAAQ,GAAI,+BAAuC,aAAa,4CAUrE,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ContrastOutlined as ContrastIcon } from '@mui/icons-material';
|
|
2
2
|
import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
|
|
3
3
|
import { TOOLS_IDS } from "../../../utils/constants";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
5
|
var Contrast = function Contrast(_ref) {
|
|
5
6
|
var selectTool = _ref.selectTool,
|
|
6
7
|
_ref$isSelected = _ref.isSelected,
|
|
7
8
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
8
9
|
t = _ref.t;
|
|
9
|
-
return
|
|
10
|
+
return _jsx(ToolsBarItemButton, {
|
|
10
11
|
id: TOOLS_IDS.CONTRAST,
|
|
11
12
|
label: t('contrastTool'),
|
|
12
13
|
Icon: ContrastIcon,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/contrast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface CropPreset {
|
|
2
|
+
titleKey: string;
|
|
3
|
+
descriptionKey?: string;
|
|
4
|
+
ratio?: number | string;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
icon?: React.ElementType;
|
|
8
|
+
disableManualResize?: boolean;
|
|
9
|
+
noEffect?: boolean;
|
|
10
|
+
hide?: (opts: {
|
|
11
|
+
lockCropAreaAt?: string;
|
|
12
|
+
}) => boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_CROP_PRESETS: CropPreset[];
|
|
15
|
+
//# sourceMappingURL=crop.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/crop/crop.constants.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC;CACvD;AAED,eAAO,MAAM,oBAAoB,EAAE,UAAU,EA6B5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/crop/crop.tsx"],"names":[],"mappings":"AAcA,UAAU,SAAS;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,IAAI,GAAI,4BAAoC,SAAS,mDA8G1D,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { DEFAULT_ZOOM_FACTOR, ORIGINAL_CROP, TOOLS_IDS } from "../../../utils/co
|
|
|
9
9
|
import getZoomFitFactor from "../../../utils/get-zoom-fit-factor";
|
|
10
10
|
import toPrecisedFloat from "../../../utils/to-precised-float";
|
|
11
11
|
import { DEFAULT_CROP_PRESETS } from "./crop.constants";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
13
|
var Crop = function Crop(_ref) {
|
|
13
14
|
var _ref$isSelected = _ref.isSelected,
|
|
14
15
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
@@ -96,27 +97,29 @@ var Crop = function Crop(_ref) {
|
|
|
96
97
|
if (cropConfig !== null && cropConfig !== void 0 && cropConfig.noPresets) {
|
|
97
98
|
return null;
|
|
98
99
|
}
|
|
99
|
-
return
|
|
100
|
+
return _jsx(Box, {
|
|
100
101
|
sx: {
|
|
101
102
|
display: 'inline-flex',
|
|
102
103
|
width: 200
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
104
|
+
},
|
|
105
|
+
children: _jsx(SSelect, {
|
|
106
|
+
value: String(currentRatio),
|
|
107
|
+
onChange: handleChange,
|
|
108
|
+
onFocus: handleSelectCropTool,
|
|
109
|
+
onClick: handleSelectCropTool,
|
|
110
|
+
options: options,
|
|
111
|
+
optionLabel: "label",
|
|
112
|
+
optionValue: "value",
|
|
113
|
+
placeholder: t('cropTool'),
|
|
114
|
+
startAdornment: _jsx(InputAdornment, {
|
|
115
|
+
position: "start",
|
|
116
|
+
children: _jsx(CropIcon, {
|
|
117
|
+
sx: {
|
|
118
|
+
color: 'var(--s-palette-text-primary)'
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
})
|
|
122
|
+
})
|
|
123
|
+
});
|
|
121
124
|
};
|
|
122
125
|
export default Crop;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/crop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface EllipseButtonProps {
|
|
2
|
+
selectTool: () => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const EllipseButton: ({ selectTool, isSelected, t, }: EllipseButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default EllipseButton;
|
|
8
|
+
//# sourceMappingURL=ellipse-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipse-button.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/ellipse/ellipse-button.tsx"],"names":[],"mappings":"AAOA,UAAU,kBAAkB;IAC1B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,aAAa,GAAI,gCAIpB,kBAAkB,4CAUpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { CircleOutlined as EllipseIcon } from '@mui/icons-material';
|
|
2
2
|
import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
|
|
3
3
|
import { TOOLS_IDS } from "../../../utils/constants";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
5
|
var EllipseButton = function EllipseButton(_ref) {
|
|
5
6
|
var selectTool = _ref.selectTool,
|
|
6
7
|
_ref$isSelected = _ref.isSelected,
|
|
7
8
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
8
9
|
t = _ref.t;
|
|
9
|
-
return
|
|
10
|
+
return _jsx(ToolsBarItemButton, {
|
|
10
11
|
id: TOOLS_IDS.ELLIPSE,
|
|
11
12
|
label: t('ellipseTool'),
|
|
12
13
|
Icon: EllipseIcon,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipse-options.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/ellipse/ellipse-options.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAQ5B,QAAA,MAAM,cAAc,+CAQnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -2,6 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import { useAnnotation } from "../../../hooks";
|
|
3
3
|
import { TOOLS_IDS } from "../../../utils/constants";
|
|
4
4
|
import AnnotationOptions from "../../common/annotation-options";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
6
|
var EllipseOptions = function EllipseOptions() {
|
|
6
7
|
var _useAnnotation = useAnnotation({
|
|
7
8
|
name: TOOLS_IDS.ELLIPSE
|
|
@@ -9,7 +10,7 @@ var EllipseOptions = function EllipseOptions() {
|
|
|
9
10
|
_useAnnotation2 = _slicedToArray(_useAnnotation, 2),
|
|
10
11
|
ellipse = _useAnnotation2[0],
|
|
11
12
|
saveEllipse = _useAnnotation2[1];
|
|
12
|
-
return
|
|
13
|
+
return _jsx(AnnotationOptions, {
|
|
13
14
|
annotation: ellipse,
|
|
14
15
|
updateAnnotation: saveEllipse
|
|
15
16
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/ellipse/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface FilterItemProps {
|
|
2
|
+
filterLabel: string;
|
|
3
|
+
filterFn?: ((...args: any[]) => void) | null;
|
|
4
|
+
applyFilter: (filterFn: any) => void;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
image: HTMLImageElement;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("react").MemoExoticComponent<({ filterLabel, filterFn, applyFilter, isActive, image, }: FilterItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=filter-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-item.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/filters/filter-item.tsx"],"names":[],"mappings":"AAWA,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IAC7C,WAAW,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,gBAAgB,CAAC;CACzB;uHAQE,eAAe;AA8ElB,wBAAgC"}
|
|
@@ -5,6 +5,7 @@ import { memo, useCallback, useEffect, useRef } from 'react';
|
|
|
5
5
|
import { Layer, Image, Stage } from 'react-konva';
|
|
6
6
|
import { Typography } from '@mui/material';
|
|
7
7
|
import { SFlexBox } from '@solostylist/ui-kit/core';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
9
|
var MAX_FILTER_PREVIEW_WIDTH = 80;
|
|
9
10
|
var MAX_FILTER_PREVIEW_HEIGHT = 60;
|
|
10
11
|
var FilterItem = function FilterItem(_ref) {
|
|
@@ -38,7 +39,7 @@ var FilterItem = function FilterItem(_ref) {
|
|
|
38
39
|
var isWiderThanStage = imgRatio > stageRatio;
|
|
39
40
|
var filterImgPreviewWidth = isWiderThanStage ? MAX_FILTER_PREVIEW_HEIGHT * imgRatio : MAX_FILTER_PREVIEW_WIDTH;
|
|
40
41
|
var filterImgPreviewHeight = isWiderThanStage ? MAX_FILTER_PREVIEW_HEIGHT : MAX_FILTER_PREVIEW_WIDTH / imgRatio;
|
|
41
|
-
return
|
|
42
|
+
return _jsxs(SFlexBox, {
|
|
42
43
|
onClick: handleFilterApplying,
|
|
43
44
|
"aria-selected": isActive,
|
|
44
45
|
sx: {
|
|
@@ -47,31 +48,35 @@ var FilterItem = function FilterItem(_ref) {
|
|
|
47
48
|
justifyContent: 'center',
|
|
48
49
|
gap: 0.5,
|
|
49
50
|
cursor: 'pointer'
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
51
|
+
},
|
|
52
|
+
children: [_jsx(Stage, {
|
|
53
|
+
width: MAX_FILTER_PREVIEW_WIDTH,
|
|
54
|
+
height: MAX_FILTER_PREVIEW_HEIGHT,
|
|
55
|
+
style: _objectSpread({
|
|
56
|
+
padding: 1
|
|
57
|
+
}, isActive && {
|
|
58
|
+
borderRadius: 2,
|
|
59
|
+
border: '1px solid',
|
|
60
|
+
borderColor: 'divider'
|
|
61
|
+
}),
|
|
62
|
+
children: _jsx(Layer, {
|
|
63
|
+
onTap: handleFilterApplying,
|
|
64
|
+
children: _jsx(Image, {
|
|
65
|
+
image: image,
|
|
66
|
+
filters: filterFn ? [filterFn] : [],
|
|
67
|
+
width: filterImgPreviewWidth,
|
|
68
|
+
height: filterImgPreviewHeight,
|
|
69
|
+
x: -(filterImgPreviewWidth - MAX_FILTER_PREVIEW_WIDTH) / 2,
|
|
70
|
+
y: -(filterImgPreviewHeight - MAX_FILTER_PREVIEW_HEIGHT) / 2,
|
|
71
|
+
ref: imageNodeRef
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
}), _jsx(Typography, {
|
|
75
|
+
whiteSpace: "nowrap",
|
|
76
|
+
textAlign: "center",
|
|
77
|
+
fontSize: "0.875rem",
|
|
78
|
+
children: filterLabel
|
|
79
|
+
})]
|
|
80
|
+
});
|
|
76
81
|
};
|
|
77
82
|
export default memo(FilterItem);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/filters/filters.constants.ts"],"names":[],"mappings":"AAMA,KAAK,QAAQ,GAAG,GAAG,CAAC;AAEpB,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAGD,eAAO,MAAM,iBAAiB,EAAE,UAAU,EAqLzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/filters/filters.tsx"],"names":[],"mappings":"AAuCA,QAAA,MAAM,OAAO,+CAkCZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { SCarousel } from '@solostylist/ui-kit/carousel';
|
|
|
4
4
|
import { useFilter, useStore } from "../../../hooks";
|
|
5
5
|
import FilterItem from "./filter-item";
|
|
6
6
|
import { AVAILABLE_FILTERS } from "./filters.constants";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
var responsiveSettings = [{
|
|
8
9
|
breakpoint: 1600,
|
|
9
10
|
settings: {
|
|
@@ -48,27 +49,28 @@ var Filters = function Filters() {
|
|
|
48
49
|
_useFilter2 = _slicedToArray(_useFilter, 2),
|
|
49
50
|
appliedFilter = _useFilter2[0],
|
|
50
51
|
applyFilter = _useFilter2[1];
|
|
51
|
-
return
|
|
52
|
+
return _jsx(Box, {
|
|
52
53
|
sx: {
|
|
53
54
|
width: '100%',
|
|
54
55
|
flex: '1 1 100%',
|
|
55
56
|
display: 'block',
|
|
56
57
|
minWidth: 0,
|
|
57
58
|
overflow: 'hidden'
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
},
|
|
60
|
+
children: _jsx(SCarousel, {
|
|
61
|
+
slidesToShow: 16,
|
|
62
|
+
slidesToScroll: 8,
|
|
63
|
+
responsive: responsiveSettings,
|
|
64
|
+
children: AVAILABLE_FILTERS.map(function (filter) {
|
|
65
|
+
return _jsx(FilterItem, {
|
|
66
|
+
filterLabel: filter.label,
|
|
67
|
+
filterFn: filter.filterFn,
|
|
68
|
+
applyFilter: applyFilter,
|
|
69
|
+
isActive: appliedFilter === filter.filterFn,
|
|
70
|
+
image: originalImage
|
|
71
|
+
}, filter.label);
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
});
|
|
73
75
|
};
|
|
74
76
|
export default Filters;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/filters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface FlipXProps {
|
|
2
|
+
selectTool: (toolId: string) => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const FlipX: ({ selectTool, isSelected, t }: FlipXProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default FlipX;
|
|
8
|
+
//# sourceMappingURL=flip-x.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flip-x.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/flip/flip-x.tsx"],"names":[],"mappings":"AAUA,UAAU,UAAU;IAClB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,KAAK,GAAI,+BAAuC,UAAU,4CAwC/D,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { TOGGLE_FLIP } from "../../../actions";
|
|
|
4
4
|
import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
|
|
5
5
|
import { useStore } from "../../../hooks";
|
|
6
6
|
import { FLIP_DIRECTIONS, TOOLS_IDS } from "../../../utils/constants";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
var FlipX = function FlipX(_ref) {
|
|
8
9
|
var selectTool = _ref.selectTool,
|
|
9
10
|
_ref$isSelected = _ref.isSelected,
|
|
@@ -34,7 +35,7 @@ var FlipX = function FlipX(_ref) {
|
|
|
34
35
|
if (flipXToolId) selectTool(flipXToolId);
|
|
35
36
|
toggleFlipX();
|
|
36
37
|
}, []);
|
|
37
|
-
return
|
|
38
|
+
return _jsx(ToolsBarItemButton, {
|
|
38
39
|
id: TOOLS_IDS.FLIP_X,
|
|
39
40
|
label: label,
|
|
40
41
|
Icon: FlipOutlined,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface FlipYProps {
|
|
2
|
+
selectTool: (toolId: string) => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const FlipY: ({ selectTool, isSelected, t }: FlipYProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default FlipY;
|
|
8
|
+
//# sourceMappingURL=flip-y.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flip-y.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/flip/flip-y.tsx"],"names":[],"mappings":"AAUA,UAAU,UAAU;IAClB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,KAAK,GAAI,+BAAuC,UAAU,4CA4C/D,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { TOGGLE_FLIP } from "../../../actions";
|
|
|
4
4
|
import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
|
|
5
5
|
import { useStore } from "../../../hooks";
|
|
6
6
|
import { FLIP_DIRECTIONS, TOOLS_IDS } from "../../../utils/constants";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
var FlipY = function FlipY(_ref) {
|
|
8
9
|
var selectTool = _ref.selectTool,
|
|
9
10
|
_ref$isSelected = _ref.isSelected,
|
|
@@ -36,7 +37,7 @@ var FlipY = function FlipY(_ref) {
|
|
|
36
37
|
if (flipYToolId) selectTool(flipYToolId);
|
|
37
38
|
toggleFlipY();
|
|
38
39
|
}, []);
|
|
39
|
-
return
|
|
40
|
+
return _jsx(ToolsBarItemButton, {
|
|
40
41
|
id: TOOLS_IDS.FLIP_Y,
|
|
41
42
|
label: label,
|
|
42
43
|
Icon: FlipOutlined,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/flip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface HSVProps {
|
|
2
|
+
selectTool: () => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const HSV: ({ selectTool, isSelected, t }: HSVProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default HSV;
|
|
8
|
+
//# sourceMappingURL=hsv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hsv.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/hsv/hsv.tsx"],"names":[],"mappings":"AAOA,UAAU,QAAQ;IAChB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,GAAG,GAAI,+BAAuC,QAAQ,4CAU3D,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { GradientOutlined as SaturationIcon } from '@mui/icons-material';
|
|
2
2
|
import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
|
|
3
3
|
import { TOOLS_IDS } from "../../../utils/constants";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
5
|
var HSV = function HSV(_ref) {
|
|
5
6
|
var selectTool = _ref.selectTool,
|
|
6
7
|
_ref$isSelected = _ref.isSelected,
|
|
7
8
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
8
9
|
t = _ref.t;
|
|
9
|
-
return
|
|
10
|
+
return _jsx(ToolsBarItemButton, {
|
|
10
11
|
id: TOOLS_IDS.HSV,
|
|
11
12
|
label: t('hsvTool'),
|
|
12
13
|
Icon: SaturationIcon,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hsvoptions.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/hsv/hsvoptions.tsx"],"names":[],"mappings":"AAoBA,UAAU,eAAe;IACvB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,UAAU,GAAI,OAAO,eAAe,4CA0CzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -4,6 +4,7 @@ import Konva from 'konva';
|
|
|
4
4
|
import { Box } from '@mui/material';
|
|
5
5
|
import Slider from "../../common/slider";
|
|
6
6
|
import { useFinetune } from "../../../hooks";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
var DEFAULT_VALUE = {
|
|
8
9
|
hue: 0,
|
|
9
10
|
saturation: 0,
|
|
@@ -24,37 +25,38 @@ var HSVOptions = function HSVOptions(_ref) {
|
|
|
24
25
|
var changeValue = function changeValue(name, value) {
|
|
25
26
|
setFinetuneProps(_defineProperty({}, name, value > MAX_VALUE[name] ? MAX_VALUE[name] : +value));
|
|
26
27
|
};
|
|
27
|
-
return
|
|
28
|
+
return _jsxs(Box, {
|
|
28
29
|
display: "flex",
|
|
29
30
|
justifyContent: "center",
|
|
30
|
-
gap: 2
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
31
|
+
gap: 2,
|
|
32
|
+
children: [_jsx(Slider, {
|
|
33
|
+
label: t('hue'),
|
|
34
|
+
min: 0,
|
|
35
|
+
step: 1,
|
|
36
|
+
max: 259,
|
|
37
|
+
value: (_finetuneProps$hue = finetuneProps.hue) !== null && _finetuneProps$hue !== void 0 ? _finetuneProps$hue : DEFAULT_VALUE.hue,
|
|
38
|
+
onChange: function onChange(val) {
|
|
39
|
+
return changeValue('hue', val);
|
|
40
|
+
}
|
|
41
|
+
}), _jsx(Slider, {
|
|
42
|
+
label: t('saturation'),
|
|
43
|
+
min: -2,
|
|
44
|
+
step: 0.5,
|
|
45
|
+
max: 10,
|
|
46
|
+
value: (_finetuneProps$satura = finetuneProps.saturation) !== null && _finetuneProps$satura !== void 0 ? _finetuneProps$satura : DEFAULT_VALUE.saturation,
|
|
47
|
+
onChange: function onChange(val) {
|
|
48
|
+
return changeValue('saturation', val);
|
|
49
|
+
}
|
|
50
|
+
}), _jsx(Slider, {
|
|
51
|
+
label: t('value'),
|
|
52
|
+
min: -2,
|
|
53
|
+
step: 0.1,
|
|
54
|
+
max: 2,
|
|
55
|
+
value: (_finetuneProps$value = finetuneProps.value) !== null && _finetuneProps$value !== void 0 ? _finetuneProps$value : DEFAULT_VALUE.value,
|
|
56
|
+
onChange: function onChange(val) {
|
|
57
|
+
return changeValue('value', val);
|
|
58
|
+
}
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
59
61
|
};
|
|
60
62
|
export default HSVOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/hsv/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ImageButtonProps {
|
|
2
|
+
selectTool: () => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const ImageButton: ({ selectTool, isSelected, t, }: ImageButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ImageButton;
|
|
8
|
+
//# sourceMappingURL=image-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-button.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/image/image-button.tsx"],"names":[],"mappings":"AAOA,UAAU,gBAAgB;IACxB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,WAAW,GAAI,gCAIlB,gBAAgB,4CAUlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ImageOutlined as ImageIcon } from '@mui/icons-material';
|
|
2
2
|
import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
|
|
3
3
|
import { TOOLS_IDS } from "../../../utils/constants";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
5
|
var ImageButton = function ImageButton(_ref) {
|
|
5
6
|
var selectTool = _ref.selectTool,
|
|
6
7
|
_ref$isSelected = _ref.isSelected,
|
|
7
8
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
8
9
|
t = _ref.t;
|
|
9
|
-
return
|
|
10
|
+
return _jsx(ToolsBarItemButton, {
|
|
10
11
|
id: TOOLS_IDS.IMAGE,
|
|
11
12
|
label: t('imageTool'),
|
|
12
13
|
Icon: ImageIcon,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
import { Annotation, ImageAnnotation } from 'types/annotations';
|
|
3
|
+
interface ImageControlsProps {
|
|
4
|
+
image: ImageAnnotation | Partial<ImageAnnotation> | (ImageAnnotation & {
|
|
5
|
+
shouldSave?: boolean;
|
|
6
|
+
neverSave?: boolean;
|
|
7
|
+
});
|
|
8
|
+
saveImage: (updates: Partial<Annotation>) => void;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const ImageControls: ({ image, saveImage, children }: ImageControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default ImageControls;
|
|
13
|
+
//# sourceMappingURL=image-controls.d.ts.map
|