@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
|
@@ -10,6 +10,7 @@ import getProperDimensions from "../../../utils/get-proper-dimensions";
|
|
|
10
10
|
import getSizeAfterRotation from "../../../utils/get-size-after-rotation";
|
|
11
11
|
import getZoomFitFactor from "../../../utils/get-zoom-fit-factor";
|
|
12
12
|
import restrictNumber from "../../../utils/restrict-number";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
14
|
var Resize = function Resize(_ref) {
|
|
14
15
|
var onChange = _ref.onChange,
|
|
15
16
|
_ref$currentSize = _ref.currentSize,
|
|
@@ -101,41 +102,44 @@ var Resize = function Resize(_ref) {
|
|
|
101
102
|
var isManualChangeDisabled = resize.manualChangeDisabled;
|
|
102
103
|
var isEmptyEditedWidth = typeof resize.width !== 'undefined' && !resize.width;
|
|
103
104
|
var isEmptyEditedHeight = typeof resize.height !== 'undefined' && !resize.height;
|
|
104
|
-
return
|
|
105
|
+
return _jsxs(SFlexBox, {
|
|
105
106
|
sx: {
|
|
106
107
|
gap: 1,
|
|
107
108
|
alignItems: 'flex-end'
|
|
108
|
-
}
|
|
109
|
-
}, React.createElement(STextField, {
|
|
110
|
-
name: "width",
|
|
111
|
-
value: isEmptyEditedWidth ? '' : dimensions.width,
|
|
112
|
-
onChange: isManualChangeDisabled ? undefined : changeResize,
|
|
113
|
-
inputMode: "numeric",
|
|
114
|
-
label: "".concat(t('width'), " (px)"),
|
|
115
|
-
disabled: isManualChangeDisabled
|
|
116
|
-
}), React.createElement(SIconButton, {
|
|
117
|
-
tooltipOptions: {
|
|
118
|
-
title: t('toggleRatioLockTitle')
|
|
119
|
-
},
|
|
120
|
-
onClick: isManualChangeDisabled ? undefined : toggleRatioLock,
|
|
121
|
-
disabled: isManualChangeDisabled
|
|
122
|
-
}, currentSize.ratioUnlocked || resize.ratioUnlocked ? React.createElement(LockOpenOutlined, {
|
|
123
|
-
color: "success"
|
|
124
|
-
}) : React.createElement(LockOutlined, {
|
|
125
|
-
color: "error"
|
|
126
|
-
})), React.createElement(STextField, {
|
|
127
|
-
name: "height",
|
|
128
|
-
value: isEmptyEditedHeight ? '' : dimensions.height,
|
|
129
|
-
onChange: isManualChangeDisabled ? undefined : changeResize,
|
|
130
|
-
inputMode: "numeric",
|
|
131
|
-
label: "".concat(t('height'), " (px)"),
|
|
132
|
-
disabled: isManualChangeDisabled
|
|
133
|
-
}), !hideResetButton && React.createElement(SIconButton, {
|
|
134
|
-
tooltipOptions: {
|
|
135
|
-
title: t('resetSize')
|
|
136
109
|
},
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
110
|
+
children: [_jsx(STextField, {
|
|
111
|
+
name: "width",
|
|
112
|
+
value: isEmptyEditedWidth ? '' : dimensions.width,
|
|
113
|
+
onChange: isManualChangeDisabled ? undefined : changeResize,
|
|
114
|
+
inputMode: "numeric",
|
|
115
|
+
label: "".concat(t('width'), " (px)"),
|
|
116
|
+
disabled: isManualChangeDisabled
|
|
117
|
+
}), _jsx(SIconButton, {
|
|
118
|
+
tooltipOptions: {
|
|
119
|
+
title: t('toggleRatioLockTitle')
|
|
120
|
+
},
|
|
121
|
+
onClick: isManualChangeDisabled ? undefined : toggleRatioLock,
|
|
122
|
+
disabled: isManualChangeDisabled,
|
|
123
|
+
children: currentSize.ratioUnlocked || resize.ratioUnlocked ? _jsx(LockOpenOutlined, {
|
|
124
|
+
color: "success"
|
|
125
|
+
}) : _jsx(LockOutlined, {
|
|
126
|
+
color: "error"
|
|
127
|
+
})
|
|
128
|
+
}), _jsx(STextField, {
|
|
129
|
+
name: "height",
|
|
130
|
+
value: isEmptyEditedHeight ? '' : dimensions.height,
|
|
131
|
+
onChange: isManualChangeDisabled ? undefined : changeResize,
|
|
132
|
+
inputMode: "numeric",
|
|
133
|
+
label: "".concat(t('height'), " (px)"),
|
|
134
|
+
disabled: isManualChangeDisabled
|
|
135
|
+
}), !hideResetButton && _jsx(SIconButton, {
|
|
136
|
+
tooltipOptions: {
|
|
137
|
+
title: t('resetSize')
|
|
138
|
+
},
|
|
139
|
+
onClick: isOriginalSize || isManualChangeDisabled ? undefined : resetResize,
|
|
140
|
+
disabled: isOriginalSize || isManualChangeDisabled,
|
|
141
|
+
children: _jsx(Refresh, {})
|
|
142
|
+
})]
|
|
143
|
+
});
|
|
140
144
|
};
|
|
141
145
|
export default Resize;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/rotate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface RotateButtonProps {
|
|
2
|
+
selectTool: () => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const RotateButton: ({ selectTool, isSelected, t, }: RotateButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default RotateButton;
|
|
8
|
+
//# sourceMappingURL=rotate-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotate-button.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/rotate/rotate-button.tsx"],"names":[],"mappings":"AAOA,UAAU,iBAAiB;IACzB,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,YAAY,GAAI,gCAInB,iBAAiB,4CAUnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { RotateLeftOutlined as RotateIcon } 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 RotateButton = function RotateButton(_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.ROTATE,
|
|
11
12
|
label: t('rotateTool'),
|
|
12
13
|
Icon: RotateIcon,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotate-options.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/rotate/rotate-options.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,aAAa,+CAsGlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -7,6 +7,7 @@ import getSizeAfterRotation from "../../../utils/get-size-after-rotation";
|
|
|
7
7
|
import { TOOLS_IDS } from "../../../utils/constants";
|
|
8
8
|
import ToolsBarItemButton from "../../tools-bar/tools-bar-item-button";
|
|
9
9
|
import { SFlexBox, SIconButton } from '@solostylist/ui-kit/core';
|
|
10
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
var RotateOptions = function RotateOptions() {
|
|
11
12
|
var _useStore = useStore(),
|
|
12
13
|
dispatch = _useStore.dispatch,
|
|
@@ -45,53 +46,58 @@ var RotateOptions = function RotateOptions() {
|
|
|
45
46
|
changeRotation(e, newAngle);
|
|
46
47
|
};
|
|
47
48
|
if (rotateConfig.componentType === 'buttons') {
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
return _jsxs(_Fragment, {
|
|
50
|
+
children: [_jsx(ToolsBarItemButton, {
|
|
51
|
+
id: TOOLS_IDS.IMAGE,
|
|
52
|
+
label: "-".concat(rotateConfig.angle, "\xB0"),
|
|
53
|
+
Icon: RotateLeftOutlined,
|
|
54
|
+
onClick: changeRotationButtonNegative
|
|
55
|
+
}), _jsx(ToolsBarItemButton, {
|
|
56
|
+
id: TOOLS_IDS.IMAGE,
|
|
57
|
+
label: "+".concat(rotateConfig === null || rotateConfig === void 0 ? void 0 : rotateConfig.angle, "\xB0"),
|
|
58
|
+
Icon: RotateRightOutlined,
|
|
59
|
+
onClick: changeRotationButtonPositive
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
59
62
|
}
|
|
60
|
-
return
|
|
63
|
+
return _jsxs(SFlexBox, {
|
|
61
64
|
alignItems: "center",
|
|
62
|
-
gap: 2
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}, React.createElement(Rotate90DegreesCwOutlined, null)), React.createElement(Slider, {
|
|
68
|
-
valueLabelDisplay: "auto",
|
|
69
|
-
marks: true,
|
|
70
|
-
min: -180,
|
|
71
|
-
max: 180,
|
|
72
|
-
step: isPhoneScreen ? rotateConfig.angle / 3 : 1,
|
|
73
|
-
value: rotation,
|
|
74
|
-
onChange: changeRotation,
|
|
75
|
-
sx: {
|
|
76
|
-
width: 200,
|
|
77
|
-
'& .MuiSlider-thumb': {
|
|
78
|
-
width: 12,
|
|
79
|
-
height: 12
|
|
65
|
+
gap: 2,
|
|
66
|
+
children: [_jsx(SIconButton, {
|
|
67
|
+
onClick: function onClick(e) {
|
|
68
|
+
return changeRotation(e, rotation - 90);
|
|
80
69
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
children: _jsx(Rotate90DegreesCwOutlined, {})
|
|
71
|
+
}), _jsx(Slider, {
|
|
72
|
+
valueLabelDisplay: "auto",
|
|
73
|
+
marks: true,
|
|
74
|
+
min: -180,
|
|
75
|
+
max: 180,
|
|
76
|
+
step: isPhoneScreen ? rotateConfig.angle / 3 : 1,
|
|
77
|
+
value: rotation,
|
|
78
|
+
onChange: changeRotation,
|
|
79
|
+
sx: {
|
|
80
|
+
width: 200,
|
|
81
|
+
'& .MuiSlider-thumb': {
|
|
82
|
+
width: 12,
|
|
83
|
+
height: 12
|
|
84
|
+
},
|
|
85
|
+
'& .MuiSlider-mark': {
|
|
86
|
+
width: 4,
|
|
87
|
+
height: 4,
|
|
88
|
+
borderRadius: '50%'
|
|
89
|
+
}
|
|
85
90
|
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
}), _jsx(SIconButton, {
|
|
92
|
+
onClick: function onClick(e) {
|
|
93
|
+
return changeRotation(e, rotation + 90);
|
|
94
|
+
},
|
|
95
|
+
children: _jsx(Rotate90DegreesCwOutlined, {
|
|
96
|
+
sx: {
|
|
97
|
+
transform: 'scaleX(-1)'
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
})]
|
|
101
|
+
});
|
|
96
102
|
};
|
|
97
103
|
export default RotateOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface TextButtonProps {
|
|
2
|
+
selectTool: () => void;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
t: (key: string) => string;
|
|
5
|
+
}
|
|
6
|
+
declare const TextButton: ({ selectTool, isSelected, t }: TextButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default TextButton;
|
|
8
|
+
//# sourceMappingURL=text-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-button.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/text/text-button.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 { TextFieldsOutlined as TextIcon } 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 TextButton = function TextButton(_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.TEXT,
|
|
11
12
|
label: t('textTool'),
|
|
12
13
|
Icon: TextIcon,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare function deactivateTextChange(): void;
|
|
2
|
+
declare const activateTextChange: (textNodeId: string, canvasStage: any, currentTransformer: any, finishingCallback: (textValue: string) => void, dismissingTextEditing: () => void) => void;
|
|
3
|
+
export { activateTextChange, deactivateTextChange };
|
|
4
|
+
//# sourceMappingURL=handle-text-change-area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle-text-change-area.d.ts","sourceRoot":"","sources":["../../../../../src/components/tools/text/text-options/handle-text-change-area.ts"],"names":[],"mappings":"AAMA,iBAAS,oBAAoB,IAAI,IAAI,CAwBpC;AAWD,QAAA,MAAM,kBAAkB,GACtB,YAAY,MAAM,EAClB,aAAa,GAAG,EAChB,oBAAoB,GAAG,EACvB,mBAAmB,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,EAC9C,uBAAuB,MAAM,IAAI,KAChC,IAyHF,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/tools/text/text-options/index.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAQ5B,QAAA,MAAM,WAAW,+CAMhB,CAAC;AAEF,eAAe,WAAW,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 TextControls from "./text-controls";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
6
|
var TextOptions = function TextOptions() {
|
|
6
7
|
var _useAnnotation = useAnnotation({
|
|
7
8
|
name: TOOLS_IDS.TEXT
|
|
@@ -9,7 +10,7 @@ var TextOptions = function TextOptions() {
|
|
|
9
10
|
_useAnnotation2 = _slicedToArray(_useAnnotation, 2),
|
|
10
11
|
text = _useAnnotation2[0],
|
|
11
12
|
saveText = _useAnnotation2[1];
|
|
12
|
-
return
|
|
13
|
+
return _jsx(TextControls, {
|
|
13
14
|
text: text,
|
|
14
15
|
saveText: saveText
|
|
15
16
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
import { TextAnnotation } from 'types/annotations';
|
|
3
|
+
interface TextAlignmentFieldsProps {
|
|
4
|
+
annotation: TextAnnotation;
|
|
5
|
+
updateAnnotation: (updates: Partial<TextAnnotation>) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const TextAlignmentFields: ({ annotation: text, updateAnnotation: updateText, }: TextAlignmentFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TextAlignmentFields;
|
|
9
|
+
//# sourceMappingURL=text-alignment-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-alignment-fields.d.ts","sourceRoot":"","sources":["../../../../../src/components/tools/text/text-options/text-alignment-fields.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAS5B,OAAO,EAAiB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIlE,UAAU,wBAAwB;IAChC,UAAU,EAAE,cAAc,CAAC;IAC3B,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC9D;AAED,QAAA,MAAM,mBAAmB,GAAI,qDAG1B,wBAAwB,4CA6B1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { FormatAlignCenterOutlined, FormatAlignLeftOutlined } from '@mui/icons-m
|
|
|
2
2
|
import { SFlexBox } from '@solostylist/ui-kit/core';
|
|
3
3
|
import SIconButtonWrapper from "../../../common/icon-wrapper";
|
|
4
4
|
import { TextAlignment } from "../../../../types/annotations";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
6
|
var rightAlignmentCssTransform = {
|
|
6
7
|
transform: 'scaleX(-1)'
|
|
7
8
|
};
|
|
@@ -14,25 +15,29 @@ var TextAlignmentFields = function TextAlignmentFields(_ref) {
|
|
|
14
15
|
align: newHorizonalAlignment
|
|
15
16
|
});
|
|
16
17
|
};
|
|
17
|
-
return
|
|
18
|
-
gap: 1
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
18
|
+
return _jsxs(SFlexBox, {
|
|
19
|
+
gap: 1,
|
|
20
|
+
children: [_jsx(SIconButtonWrapper, {
|
|
21
|
+
onClick: function onClick() {
|
|
22
|
+
return changeHorizontalAlignment(TextAlignment.LEFT);
|
|
23
|
+
},
|
|
24
|
+
active: align === TextAlignment.LEFT,
|
|
25
|
+
children: _jsx(FormatAlignLeftOutlined, {})
|
|
26
|
+
}), _jsx(SIconButtonWrapper, {
|
|
27
|
+
onClick: function onClick() {
|
|
28
|
+
return changeHorizontalAlignment(TextAlignment.CENTER);
|
|
29
|
+
},
|
|
30
|
+
active: align === TextAlignment.CENTER,
|
|
31
|
+
children: _jsx(FormatAlignCenterOutlined, {})
|
|
32
|
+
}), _jsx(SIconButtonWrapper, {
|
|
33
|
+
onClick: function onClick() {
|
|
34
|
+
return changeHorizontalAlignment(TextAlignment.RIGHT);
|
|
35
|
+
},
|
|
36
|
+
active: align === TextAlignment.RIGHT,
|
|
37
|
+
children: _jsx(FormatAlignLeftOutlined, {
|
|
38
|
+
style: rightAlignmentCssTransform
|
|
39
|
+
})
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
37
42
|
};
|
|
38
43
|
export default TextAlignmentFields;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TextAnnotation } from 'types/annotations';
|
|
2
|
+
interface TextControlsProps {
|
|
3
|
+
text: TextAnnotation & {
|
|
4
|
+
shouldSave?: boolean;
|
|
5
|
+
neverSave?: boolean;
|
|
6
|
+
};
|
|
7
|
+
saveText: (updater: Partial<TextAnnotation> | ((latest: any) => any)) => void;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const TextControls: ({ text, saveText, children }: TextControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default TextControls;
|
|
12
|
+
//# sourceMappingURL=text-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-controls.d.ts","sourceRoot":"","sources":["../../../../../src/components/tools/text/text-options/text-controls.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAc,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAe/D,UAAU,iBAAiB;IAGzB,IAAI,EAAE,cAAc,GAAG;QAAE,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACrE,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC,KAAK,IAAI,CAAC;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,YAAY,GAAI,8BAA8B,iBAAiB,4CA8IpE,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -12,6 +12,7 @@ import { useStore } from "../../../../hooks";
|
|
|
12
12
|
import { SFlexBox, SSelect, STextField } from '@solostylist/ui-kit/core';
|
|
13
13
|
import { textOptionsPopupComponents, TEXT_POPPABLE_OPTIONS } from "./text-options.constants";
|
|
14
14
|
import { activateTextChange, deactivateTextChange } from "./handle-text-change-area";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
16
|
var TextControls = function TextControls(_ref) {
|
|
16
17
|
var text = _ref.text,
|
|
17
18
|
saveText = _ref.saveText,
|
|
@@ -99,49 +100,53 @@ var TextControls = function TextControls(_ref) {
|
|
|
99
100
|
if (transformer && textIdOfEditableContent) deactivateTextChange();
|
|
100
101
|
};
|
|
101
102
|
}, [textIdOfEditableContent]);
|
|
102
|
-
return
|
|
103
|
+
return _jsx(AnnotationOptions, {
|
|
103
104
|
annotation: text,
|
|
104
105
|
updateAnnotation: saveText,
|
|
105
106
|
morePoppableOptionsPrepended: TEXT_POPPABLE_OPTIONS,
|
|
106
|
-
moreOptionsPopupComponentsObj: textOptionsPopupComponents
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
107
|
+
moreOptionsPopupComponentsObj: textOptionsPopupComponents,
|
|
108
|
+
children: _jsxs(SFlexBox, {
|
|
109
|
+
sx: {
|
|
110
|
+
gap: 1,
|
|
111
|
+
alignItems: 'center'
|
|
112
|
+
},
|
|
113
|
+
children: [Array.isArray(fonts) && fonts.length > 1 && _jsx(SSelect, {
|
|
114
|
+
onChange: function onChange(e) {
|
|
115
|
+
return changeFontFamily(e.target.value);
|
|
116
|
+
},
|
|
117
|
+
value: text.fontFamily,
|
|
118
|
+
placeholder: t('fontFamily'),
|
|
119
|
+
options: fonts,
|
|
120
|
+
optionLabel: _typeof(fonts[0]) === 'object' ? 'label' : undefined,
|
|
121
|
+
optionValue: _typeof(fonts[0]) === 'object' ? 'value' : undefined,
|
|
122
|
+
sx: {
|
|
123
|
+
width: 150,
|
|
124
|
+
textAlign: 'left'
|
|
125
|
+
}
|
|
126
|
+
}), _jsx(STextField, {
|
|
127
|
+
value: text.fontSize || '',
|
|
128
|
+
name: "fontSize",
|
|
129
|
+
onChange: changeTextProps,
|
|
130
|
+
inputMode: "numeric",
|
|
131
|
+
type: "number",
|
|
132
|
+
sx: {
|
|
133
|
+
width: 150
|
|
134
|
+
},
|
|
135
|
+
placeholder: t('size')
|
|
136
|
+
}), _jsx(SIconButtonWrapper, {
|
|
137
|
+
active: (text.fontStyle || '').includes('bold'),
|
|
138
|
+
onClick: function onClick() {
|
|
139
|
+
return changeFontStyle('bold');
|
|
140
|
+
},
|
|
141
|
+
children: _jsx(FormatBoldOutlined, {})
|
|
142
|
+
}), _jsx(SIconButtonWrapper, {
|
|
143
|
+
active: (text.fontStyle || '').includes('italic'),
|
|
144
|
+
onClick: function onClick() {
|
|
145
|
+
return changeFontStyle('italic');
|
|
146
|
+
},
|
|
147
|
+
children: _jsx(FormatItalicOutlined, {})
|
|
148
|
+
}), children]
|
|
149
|
+
})
|
|
150
|
+
});
|
|
146
151
|
};
|
|
147
152
|
export default TextControls;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
import { SvgIconComponent } from '@mui/icons-material';
|
|
3
|
+
import { ComponentType } from 'react';
|
|
4
|
+
export declare const TEXT_ALIGNMENT: string;
|
|
5
|
+
export declare const TEXT_SPACINGS: string;
|
|
6
|
+
interface TextPoppableOption {
|
|
7
|
+
titleKey: string;
|
|
8
|
+
name: string;
|
|
9
|
+
Icon: SvgIconComponent;
|
|
10
|
+
}
|
|
11
|
+
export declare const TEXT_POPPABLE_OPTIONS: TextPoppableOption[];
|
|
12
|
+
export declare const textOptionsPopupComponents: Record<string, ComponentType<any>>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=text-options.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-options.constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/tools/text/text-options/text-options.constants.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,EAGL,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAMtC,eAAO,MAAM,cAAc,EAAE,MAAyB,CAAC;AACvD,eAAO,MAAM,aAAa,EAAE,MAAwB,CAAC;AAErD,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,EAWrD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAGzE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
import { TextAnnotation } from 'types/annotations';
|
|
3
|
+
interface TextSpacingsFieldsProps {
|
|
4
|
+
annotation: TextAnnotation;
|
|
5
|
+
updateAnnotation: (updates: Partial<TextAnnotation>) => void;
|
|
6
|
+
t: (key: string) => string;
|
|
7
|
+
}
|
|
8
|
+
declare const TextSpacingsFields: ({ annotation: text, updateAnnotation: updateText, t, }: TextSpacingsFieldsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default TextSpacingsFields;
|
|
10
|
+
//# sourceMappingURL=text-spacings-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-spacings-fields.d.ts","sourceRoot":"","sources":["../../../../../src/components/tools/text/text-options/text-spacings-fields.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAI5B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOnD,UAAU,uBAAuB;IAC/B,UAAU,EAAE,cAAc,CAAC;IAC3B,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC7D,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,QAAA,MAAM,kBAAkB,GAAI,wDAIzB,uBAAuB,4CAyBzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import Slider from "../../../common/slider";
|
|
3
3
|
import restrictNumber from "../../../../utils/restrict-number";
|
|
4
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
5
|
var MIN_VALUE = 0;
|
|
5
6
|
var MAX_VALUE = 100;
|
|
6
7
|
var SLIDER_STEP = 1;
|
|
@@ -13,22 +14,24 @@ var TextSpacingsFields = function TextSpacingsFields(_ref) {
|
|
|
13
14
|
var updateValue = function updateValue(prop, val) {
|
|
14
15
|
updateText(_defineProperty({}, prop, restrictNumber(val, MIN_VALUE, MAX_VALUE)));
|
|
15
16
|
};
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
return _jsxs(_Fragment, {
|
|
18
|
+
children: [_jsx(Slider, {
|
|
19
|
+
annotation: "px",
|
|
20
|
+
label: t('letterSpacing'),
|
|
21
|
+
onChange: function onChange(val) {
|
|
22
|
+
return updateValue('letterSpacing', val);
|
|
23
|
+
},
|
|
24
|
+
value: letterSpacing,
|
|
25
|
+
step: SLIDER_STEP
|
|
26
|
+
}), _jsx(Slider, {
|
|
27
|
+
annotation: "px",
|
|
28
|
+
label: t('lineHeight'),
|
|
29
|
+
onChange: function onChange(val) {
|
|
30
|
+
return updateValue('lineHeight', val);
|
|
31
|
+
},
|
|
32
|
+
value: lineHeight,
|
|
33
|
+
step: SLIDER_STEP
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
33
36
|
};
|
|
34
37
|
export default TextSpacingsFields;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.constants.d.ts","sourceRoot":"","sources":["../../../src/components/tools/tools.constants.ts"],"names":[],"mappings":"AAsBA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,CAAC,EAAE,GAAG,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CA+FhD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CA2B/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tools/warmth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** External Dependencies */
|
|
2
|
+
interface WarmthOptionsProps {
|
|
3
|
+
t: (key: string) => string;
|
|
4
|
+
}
|
|
5
|
+
declare const WarmthOptions: ({ t }: WarmthOptionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default WarmthOptions;
|
|
7
|
+
//# sourceMappingURL=warmth-options.d.ts.map
|