@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,6 @@
|
|
|
1
|
+
interface CanvasNodeProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import("react").MemoExoticComponent<({ children }: CanvasNodeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=canvas-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canvas-node.d.ts","sourceRoot":"","sources":["../../../src/components/main-canvas/canvas-node.tsx"],"names":[],"mappings":"AAuBA,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;2EAEiC,eAAe;AA2NjD,wBAAgC"}
|
|
@@ -9,6 +9,7 @@ import { CHANGE_POINTER_ICON, CLEAR_ANNOTATIONS_SELECTIONS, ZOOM_CANVAS } from "
|
|
|
9
9
|
import { useStore } from "../../hooks";
|
|
10
10
|
import { DEFAULT_ZOOM_FACTOR, POINTER_ICONS, TABS_IDS, TOOLS_IDS } from "../../utils/constants";
|
|
11
11
|
import { endTouchesZooming, zoomOnTouchesMove } from "./touch-zooming-events";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
13
|
var ZOOM_DELTA_TO_SCALE_CONVERT_FACTOR = 0.006;
|
|
13
14
|
var CanvasNode = function CanvasNode(_ref) {
|
|
14
15
|
var children = _ref.children;
|
|
@@ -147,7 +148,7 @@ var CanvasNode = function CanvasNode(_ref) {
|
|
|
147
148
|
};
|
|
148
149
|
}, [tabId, zoom.factor, defaultZoomFactor]);
|
|
149
150
|
var zoomedResponsiveCanvasScale = canvasScale * (isZoomEnabled && zoom.factor || defaultZoomFactor);
|
|
150
|
-
return
|
|
151
|
+
return _jsx(Stage, {
|
|
151
152
|
tabIndex: -1,
|
|
152
153
|
ref: canvasRef,
|
|
153
154
|
width: canvasWidth,
|
|
@@ -171,7 +172,8 @@ var CanvasNode = function CanvasNode(_ref) {
|
|
|
171
172
|
style: _objectSpread(_objectSpread({}, cursorStyle), {}, {
|
|
172
173
|
outline: 'none',
|
|
173
174
|
backgroundColor: 'var(--s-palette-background-paper)'
|
|
174
|
-
})
|
|
175
|
-
|
|
175
|
+
}),
|
|
176
|
+
children: children
|
|
177
|
+
});
|
|
176
178
|
};
|
|
177
179
|
export default memo(CanvasNode);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/main-canvas/index.tsx"],"names":[],"mappings":"AAYA,QAAA,MAAM,UAAU,+CA0Df,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -7,6 +7,7 @@ import NodeControls from "../node-controls";
|
|
|
7
7
|
import { AppProviderOverridenValue } from "../../context";
|
|
8
8
|
import { useResizeObserver, useStore } from "../../hooks";
|
|
9
9
|
import CanvasNode from "./canvas-node";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
var MainCanvas = function MainCanvas() {
|
|
11
12
|
var _providedAppContext$o;
|
|
12
13
|
var _useResizeObserver = useResizeObserver(),
|
|
@@ -28,24 +29,28 @@ var MainCanvas = function MainCanvas() {
|
|
|
28
29
|
useEffect(function () {
|
|
29
30
|
observeResize(canvasContainerRef.current, setNewCanvasSize);
|
|
30
31
|
}, []);
|
|
31
|
-
return
|
|
32
|
+
return _jsxs(Box, {
|
|
32
33
|
height: "calc(100vh - 60px - 120px)",
|
|
33
34
|
position: "relative",
|
|
34
35
|
flexGrow: 1,
|
|
35
|
-
ref: canvasContainerRef
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
36
|
+
ref: canvasContainerRef,
|
|
37
|
+
children: [!providedAppContext.textIdOfEditableContent && _jsx(NodeControls, {}), providedAppContext.isShowOriginalImage && _jsx("img", {
|
|
38
|
+
style: {
|
|
39
|
+
maxWidth: '98%',
|
|
40
|
+
maxHeight: '98%',
|
|
41
|
+
position: 'absolute',
|
|
42
|
+
top: '50%',
|
|
43
|
+
left: '50%',
|
|
44
|
+
transform: 'translate(-50%, -50%)',
|
|
45
|
+
zIndex: 2
|
|
46
|
+
},
|
|
47
|
+
src: (_providedAppContext$o = providedAppContext.originalImage) === null || _providedAppContext$o === void 0 ? void 0 : _providedAppContext$o.src
|
|
48
|
+
}), _jsx(CanvasNode, {
|
|
49
|
+
children: _jsxs(AppProviderOverridenValue, {
|
|
50
|
+
overridingValue: providedAppContext,
|
|
51
|
+
children: [_jsx(DesignLayer, {}), _jsx(TransformersLayer, {})]
|
|
52
|
+
})
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
50
55
|
};
|
|
51
56
|
export default MainCanvas;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface ZoomData {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
factor: number;
|
|
5
|
+
preparedDimensions: boolean;
|
|
6
|
+
}
|
|
7
|
+
type SaveZoomFn = (zoomData: ZoomData) => void;
|
|
8
|
+
export declare const zoomOnTouchesMove: (e: any, saveZoomFn: SaveZoomFn) => void;
|
|
9
|
+
export declare const endTouchesZooming: (cb?: () => void) => void;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=touch-zooming-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"touch-zooming-events.d.ts","sourceRoot":"","sources":["../../../src/components/main-canvas/touch-zooming-events.ts"],"names":[],"mappings":"AAOA,UAAU,QAAQ;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAED,KAAK,UAAU,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;AAe/C,eAAO,MAAM,iBAAiB,GAAI,GAAG,GAAG,EAAE,YAAY,UAAU,KAAG,IAiElE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,IAAI,KAAG,IAMnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/node-controls/index.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,YAAY,sDAoFjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { DUPLICATE_ANNOTATIONS, REMOVE_ANNOTATIONS } from "../../actions";
|
|
|
6
6
|
import { useStore } from "../../hooks";
|
|
7
7
|
import { NODES_TRANSFORMER_ID, WATERMARK_ANNOTATION_ID } from "../../utils/constants";
|
|
8
8
|
import debounce from "../../utils/debounce";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
var NodeControls = function NodeControls() {
|
|
10
11
|
var _useStore = useStore(),
|
|
11
12
|
_useStore$selectionsI = _useStore.selectionsIds,
|
|
@@ -55,7 +56,7 @@ var NodeControls = function NodeControls() {
|
|
|
55
56
|
}
|
|
56
57
|
});
|
|
57
58
|
};
|
|
58
|
-
return
|
|
59
|
+
return _jsxs(SFlexBox, {
|
|
59
60
|
sx: {
|
|
60
61
|
position: 'absolute',
|
|
61
62
|
zIndex: 1,
|
|
@@ -68,12 +69,15 @@ var NodeControls = function NodeControls() {
|
|
|
68
69
|
transform: 'translateX(-50%)',
|
|
69
70
|
gap: 1,
|
|
70
71
|
p: 1
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
},
|
|
73
|
+
children: [selectionsIds[0] !== WATERMARK_ANNOTATION_ID && _jsx(SIconButton, {
|
|
74
|
+
onClick: duplicateSelectedNodes,
|
|
75
|
+
children: _jsx(ContentCopy, {})
|
|
76
|
+
}), _jsx(SIconButton, {
|
|
77
|
+
onClick: removeSelectedNodes,
|
|
78
|
+
color: "error",
|
|
79
|
+
children: _jsx(DeleteOutlined, {})
|
|
80
|
+
})]
|
|
81
|
+
});
|
|
78
82
|
};
|
|
79
83
|
export default NodeControls;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/index.tsx"],"names":[],"mappings":"AASA,UAAU,SAAS;IACjB,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,QAAA,MAAM,IAAI,GAAI,oBAAoB,SAAS,mDAkE1C,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { useCallback, useMemo } from 'react';
|
|
|
3
3
|
import { SELECT_TAB } from "../../actions";
|
|
4
4
|
import { useStore } from "../../hooks";
|
|
5
5
|
import { AVAILABLE_TABS } from "./tabs.constants";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
var Tabs = function Tabs(_ref) {
|
|
7
8
|
var toggleMainMenu = _ref.toggleMainMenu;
|
|
8
9
|
var _useStore = useStore(),
|
|
@@ -41,7 +42,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
41
42
|
}).map(function (tab) {
|
|
42
43
|
return {
|
|
43
44
|
label: t(tab.labelKey),
|
|
44
|
-
icon:
|
|
45
|
+
icon: _jsx(tab.icon, {}),
|
|
45
46
|
value: tab.id,
|
|
46
47
|
iconPosition: 'top'
|
|
47
48
|
};
|
|
@@ -50,7 +51,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
50
51
|
if (chosenTabsConfig.length <= 1) {
|
|
51
52
|
return null;
|
|
52
53
|
}
|
|
53
|
-
return
|
|
54
|
+
return _jsx(STabs, {
|
|
54
55
|
sx: {
|
|
55
56
|
minWidth: 120,
|
|
56
57
|
width: 120
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
import { SvgIconComponent } from '@mui/icons-material';
|
|
3
|
+
export interface TabConfig {
|
|
4
|
+
id: string;
|
|
5
|
+
labelKey: string;
|
|
6
|
+
icon: SvgIconComponent;
|
|
7
|
+
}
|
|
8
|
+
export declare const AVAILABLE_TABS: TabConfig[];
|
|
9
|
+
//# sourceMappingURL=tabs.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.constants.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.constants.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,EAML,gBAAgB,EAEjB,MAAM,qBAAqB,CAAC;AAK7B,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,eAAO,MAAM,cAAc,EAAE,SAAS,EA+BrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tabs-drawer/index.tsx"],"names":[],"mappings":"AAYA,UAAU,eAAe;IACvB,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,QAAA,MAAM,UAAU,GAAI,oBAA+B,eAAe,4CA8GjE,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -6,6 +6,7 @@ import Typography from '@mui/material/Typography';
|
|
|
6
6
|
import { useStore } from "../../hooks";
|
|
7
7
|
import { SELECT_TAB } from "../../actions";
|
|
8
8
|
import { AVAILABLE_TABS } from "../tabs/tabs.constants";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
var TabsDrawer = function TabsDrawer(_ref) {
|
|
10
11
|
var _ref$toggleMainMenu = _ref.toggleMainMenu,
|
|
11
12
|
toggleMainMenu = _ref$toggleMainMenu === void 0 ? function () {} : _ref$toggleMainMenu;
|
|
@@ -45,7 +46,7 @@ var TabsDrawer = function TabsDrawer(_ref) {
|
|
|
45
46
|
});
|
|
46
47
|
toggleMainMenu(false);
|
|
47
48
|
}, [dispatch, toggleMainMenu]);
|
|
48
|
-
return
|
|
49
|
+
return _jsxs(SwipeableDrawer, {
|
|
49
50
|
anchor: "bottom",
|
|
50
51
|
open: showTabsMenu,
|
|
51
52
|
onClose: function onClose() {
|
|
@@ -62,48 +63,53 @@ var TabsDrawer = function TabsDrawer(_ref) {
|
|
|
62
63
|
maxHeight: '50vh',
|
|
63
64
|
pb: 2
|
|
64
65
|
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
sx: {
|
|
68
|
-
display: 'flex',
|
|
69
|
-
justifyContent: 'center',
|
|
70
|
-
py: 2
|
|
71
|
-
}
|
|
72
|
-
}, React.createElement(Box, {
|
|
73
|
-
sx: {
|
|
74
|
-
width: 36,
|
|
75
|
-
height: 4,
|
|
76
|
-
borderRadius: 2,
|
|
77
|
-
bgcolor: 'action.disabled'
|
|
78
|
-
}
|
|
79
|
-
})), React.createElement(Box, {
|
|
80
|
-
sx: {
|
|
81
|
-
display: 'grid',
|
|
82
|
-
gridTemplateColumns: 'repeat(3, 1fr)',
|
|
83
|
-
gap: 1,
|
|
84
|
-
px: 2,
|
|
85
|
-
pb: 1
|
|
86
|
-
}
|
|
87
|
-
}, chosenTabs.map(function (tab) {
|
|
88
|
-
var isActive = currentTabId === tab.id;
|
|
89
|
-
var Icon = tab.icon;
|
|
90
|
-
return React.createElement(ButtonBase, {
|
|
91
|
-
key: tab.id,
|
|
92
|
-
onClick: function onClick() {
|
|
93
|
-
return selectTab(tab.id);
|
|
94
|
-
},
|
|
66
|
+
},
|
|
67
|
+
children: [_jsx(Box, {
|
|
95
68
|
sx: {
|
|
96
69
|
display: 'flex',
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
70
|
+
justifyContent: 'center',
|
|
71
|
+
py: 2
|
|
72
|
+
},
|
|
73
|
+
children: _jsx(Box, {
|
|
74
|
+
sx: {
|
|
75
|
+
width: 36,
|
|
76
|
+
height: 4,
|
|
77
|
+
borderRadius: 2,
|
|
78
|
+
bgcolor: 'action.disabled'
|
|
79
|
+
}
|
|
80
|
+
})
|
|
81
|
+
}), _jsx(Box, {
|
|
82
|
+
sx: {
|
|
83
|
+
display: 'grid',
|
|
84
|
+
gridTemplateColumns: 'repeat(3, 1fr)',
|
|
85
|
+
gap: 1,
|
|
86
|
+
px: 2,
|
|
87
|
+
pb: 1
|
|
88
|
+
},
|
|
89
|
+
children: chosenTabs.map(function (tab) {
|
|
90
|
+
var isActive = currentTabId === tab.id;
|
|
91
|
+
var Icon = tab.icon;
|
|
92
|
+
return _jsxs(ButtonBase, {
|
|
93
|
+
onClick: function onClick() {
|
|
94
|
+
return selectTab(tab.id);
|
|
95
|
+
},
|
|
96
|
+
sx: {
|
|
97
|
+
display: 'flex',
|
|
98
|
+
flexDirection: 'column',
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
gap: 0.5,
|
|
101
|
+
py: 2,
|
|
102
|
+
borderRadius: 2,
|
|
103
|
+
bgcolor: isActive ? 'primary.main' : 'action.hover',
|
|
104
|
+
color: isActive ? 'primary.contrastText' : 'text.primary',
|
|
105
|
+
transition: 'all 0.15s ease'
|
|
106
|
+
},
|
|
107
|
+
children: [_jsx(Icon, {}), _jsx(Typography, {
|
|
108
|
+
children: t(tab.labelKey)
|
|
109
|
+
})]
|
|
110
|
+
}, tab.id);
|
|
111
|
+
})
|
|
112
|
+
})]
|
|
113
|
+
});
|
|
108
114
|
};
|
|
109
115
|
export default TabsDrawer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ArrowButtonProps {
|
|
2
|
+
selectTool: () => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const ArrowButton: ({ selectTool, isSelected, t, }: ArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ArrowButton;
|
|
8
|
+
//# sourceMappingURL=arrow-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-button.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/arrow/arrow-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 { CallMadeOutlined as ArrowIcon } 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 ArrowButton = function ArrowButton(_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.ARROW,
|
|
11
12
|
label: t('arrowTool'),
|
|
12
13
|
Icon: ArrowIcon,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-options.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/arrow/arrow-options.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAQ5B,QAAA,MAAM,YAAY,+CAajB,CAAC;AAEF,eAAe,YAAY,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 ArrowOptions = function ArrowOptions() {
|
|
6
7
|
var _useAnnotation = useAnnotation({
|
|
7
8
|
name: TOOLS_IDS.ARROW
|
|
@@ -9,7 +10,7 @@ var ArrowOptions = function ArrowOptions() {
|
|
|
9
10
|
_useAnnotation2 = _slicedToArray(_useAnnotation, 2),
|
|
10
11
|
arrow = _useAnnotation2[0],
|
|
11
12
|
saveArrow = _useAnnotation2[1];
|
|
12
|
-
return
|
|
13
|
+
return _jsx(AnnotationOptions, {
|
|
13
14
|
annotation: arrow,
|
|
14
15
|
updateAnnotation: saveArrow,
|
|
15
16
|
hidePositionField: true,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/arrow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blur-options.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/blur/blur-options.tsx"],"names":[],"mappings":"AAeA,UAAU,gBAAgB;IACxB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAuB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { Box } from '@mui/material';
|
|
|
4
4
|
import Slider from "../../common/slider";
|
|
5
5
|
import { useFinetune } from "../../../hooks";
|
|
6
6
|
import restrictNumber from "../../../utils/restrict-number";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
var MIN_VALUE = 0;
|
|
8
9
|
var DEFAULT_VALUE = {
|
|
9
10
|
blurRadius: MIN_VALUE
|
|
@@ -21,15 +22,16 @@ var BlurOptions = function BlurOptions(_ref) {
|
|
|
21
22
|
blurRadius: restrictNumber(value, MIN_VALUE, MAX_VALUE)
|
|
22
23
|
});
|
|
23
24
|
};
|
|
24
|
-
return
|
|
25
|
+
return _jsx(Box, {
|
|
25
26
|
display: "flex",
|
|
26
|
-
justifyContent: "center"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
children: _jsx(Slider, {
|
|
29
|
+
label: t('blur'),
|
|
30
|
+
min: MIN_VALUE,
|
|
31
|
+
max: MAX_VALUE,
|
|
32
|
+
value: (_finetuneProps$blurRa = finetuneProps.blurRadius) !== null && _finetuneProps$blurRa !== void 0 ? _finetuneProps$blurRa : DEFAULT_VALUE.blurRadius,
|
|
33
|
+
onChange: changeValue
|
|
34
|
+
})
|
|
35
|
+
});
|
|
34
36
|
};
|
|
35
37
|
export default BlurOptions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface BlurProps {
|
|
2
|
+
selectTool: () => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const Blur: ({ selectTool, isSelected, t }: BlurProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Blur;
|
|
8
|
+
//# sourceMappingURL=blur.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/blur/blur.tsx"],"names":[],"mappings":"AAOA,UAAU,SAAS;IACjB,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,IAAI,GAAI,+BAAuC,SAAS,4CAU7D,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { BlurOnOutlined as BlurIcon } 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 Blur = function Blur(_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.BLUR,
|
|
11
12
|
label: t('blurTool'),
|
|
12
13
|
Icon: BlurIcon,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/blur/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brightness-options.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/brightness/brightness-options.tsx"],"names":[],"mappings":"AAeA,UAAU,sBAAsB;IAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,4CAwBvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -4,6 +4,7 @@ import Slider from "../../common/slider";
|
|
|
4
4
|
import { useFinetune } from "../../../hooks";
|
|
5
5
|
import restrictNumber from "../../../utils/restrict-number";
|
|
6
6
|
import { Box } from '@mui/material';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
var MIN_VALUE = -1;
|
|
8
9
|
var DEFAULT_VALUE = {
|
|
9
10
|
brightness: 0
|
|
@@ -21,16 +22,17 @@ var BrightnessOptions = function BrightnessOptions(_ref) {
|
|
|
21
22
|
brightness: restrictNumber(value, MIN_VALUE, MAX_VALUE)
|
|
22
23
|
});
|
|
23
24
|
};
|
|
24
|
-
return
|
|
25
|
+
return _jsx(Box, {
|
|
25
26
|
display: "flex",
|
|
26
|
-
justifyContent: "center"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
children: _jsx(Slider, {
|
|
29
|
+
label: t('brightness'),
|
|
30
|
+
min: MIN_VALUE,
|
|
31
|
+
step: 0.05,
|
|
32
|
+
max: MAX_VALUE,
|
|
33
|
+
value: (_finetuneProps$bright = finetuneProps.brightness) !== null && _finetuneProps$bright !== void 0 ? _finetuneProps$bright : DEFAULT_VALUE.brightness,
|
|
34
|
+
onChange: changeValue
|
|
35
|
+
})
|
|
36
|
+
});
|
|
35
37
|
};
|
|
36
38
|
export default BrightnessOptions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface BrightnessProps {
|
|
2
|
+
selectTool: () => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const Brightness: ({ selectTool, isSelected, t }: BrightnessProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Brightness;
|
|
8
|
+
//# sourceMappingURL=brightness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brightness.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/brightness/brightness.tsx"],"names":[],"mappings":"AAOA,UAAU,eAAe;IACvB,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,UAAU,GAAI,+BAAuC,eAAe,4CAUzE,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { BrightnessHighOutlined as BrightnessIcon } 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 Brightness = function Brightness(_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.BRIGHTNESS,
|
|
11
12
|
label: t('brightnessTool'),
|
|
12
13
|
Icon: BrightnessIcon,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/brightness/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contrast-options.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/contrast/contrast-options.tsx"],"names":[],"mappings":"AAeA,UAAU,oBAAoB;IAC5B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,eAAe,GAAI,OAAO,oBAAoB,4CAuBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -4,6 +4,7 @@ import Slider from "../../common/slider";
|
|
|
4
4
|
import { useFinetune } from "../../../hooks";
|
|
5
5
|
import restrictNumber from "../../../utils/restrict-number";
|
|
6
6
|
import { Box } from '@mui/material';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
var MIN_VALUE = -100;
|
|
8
9
|
var DEFAULT_VALUE = {
|
|
9
10
|
contrast: 0
|
|
@@ -21,15 +22,16 @@ var ContrastOptions = function ContrastOptions(_ref) {
|
|
|
21
22
|
contrast: restrictNumber(value, MIN_VALUE, MAX_VALUE)
|
|
22
23
|
});
|
|
23
24
|
};
|
|
24
|
-
return
|
|
25
|
+
return _jsx(Box, {
|
|
25
26
|
display: "flex",
|
|
26
|
-
justifyContent: "center"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
children: _jsx(Slider, {
|
|
29
|
+
label: t('contrastTool'),
|
|
30
|
+
min: MIN_VALUE,
|
|
31
|
+
max: MAX_VALUE,
|
|
32
|
+
value: (_finetuneProps$contra = finetuneProps.contrast) !== null && _finetuneProps$contra !== void 0 ? _finetuneProps$contra : DEFAULT_VALUE.contrast,
|
|
33
|
+
onChange: changeValue
|
|
34
|
+
})
|
|
35
|
+
});
|
|
34
36
|
};
|
|
35
37
|
export default ContrastOptions;
|