@wordpress/media-editor 0.22.0 → 0.24.0
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/CHANGELOG.md +34 -0
- package/build/components/media-editor/index.cjs +229 -126
- package/build/components/media-editor/index.cjs.map +1 -1
- package/build/components/media-editor/use-crop-options.cjs +4 -5
- package/build/components/media-editor/use-crop-options.cjs.map +1 -1
- package/build/components/media-editor/use-save-media-editor.cjs +41 -11
- package/build/components/media-editor/use-save-media-editor.cjs.map +1 -1
- package/build/components/media-editor-canvas/index.cjs +15 -18
- package/build/components/media-editor-canvas/index.cjs.map +1 -1
- package/build/components/media-editor-crop-panel/index.cjs +26 -8
- package/build/components/media-editor-crop-panel/index.cjs.map +1 -1
- package/build/components/media-editor-fine-rotation/index.cjs +13 -12
- package/build/components/media-editor-fine-rotation/index.cjs.map +1 -1
- package/build/components/media-editor-image-controls/index.cjs +4 -6
- package/build/components/media-editor-image-controls/index.cjs.map +1 -1
- package/build/components/media-editor-keyboard-shortcuts-modal/index.cjs +33 -33
- package/build/components/media-editor-keyboard-shortcuts-modal/index.cjs.map +1 -1
- package/build/components/media-editor-modal/index.cjs +10 -7
- package/build/components/media-editor-modal/index.cjs.map +1 -1
- package/build/components/media-editor-panel/error-boundary.cjs +68 -0
- package/build/components/media-editor-panel/error-boundary.cjs.map +1 -0
- package/build/components/media-editor-panel/index.cjs +158 -0
- package/build/components/media-editor-panel/index.cjs.map +1 -0
- package/build/components/media-form/index.cjs +7 -1
- package/build/components/media-form/index.cjs.map +1 -1
- package/build/components/media-preview/index.cjs +143 -37
- package/build/components/media-preview/index.cjs.map +1 -1
- package/build/components/rotation-ruler/index.cjs +9 -7
- package/build/components/rotation-ruler/index.cjs.map +1 -1
- package/build/components/rotation-ruler/use-ruler-drag.cjs.map +1 -1
- package/build/hooks/use-crop-gesture-handlers.cjs.map +1 -1
- package/build/index.cjs +10 -8
- package/build/private-apis.cjs.map +1 -1
- package/build/state/aspect-ratio-presets.cjs +12 -6
- package/build/state/aspect-ratio-presets.cjs.map +1 -1
- package/build/state/composite-reducer.cjs +41 -74
- package/build/state/composite-reducer.cjs.map +1 -1
- package/build/state/index.cjs +0 -39
- package/build/state/types.cjs +1 -2
- package/build/state/types.cjs.map +1 -1
- package/build/state/use-media-editor-state.cjs +70 -106
- package/build/state/use-media-editor-state.cjs.map +1 -1
- package/build/store/index.cjs +11 -9
- package/build/store/index.cjs.map +1 -1
- package/build/utils/get-media-type.cjs +8 -0
- package/build/utils/get-media-type.cjs.map +1 -1
- package/build/utils/index.cjs +6 -0
- package/build-module/components/media-editor/index.mjs +217 -117
- package/build-module/components/media-editor/index.mjs.map +1 -1
- package/build-module/components/media-editor/use-crop-options.mjs +4 -5
- package/build-module/components/media-editor/use-crop-options.mjs.map +1 -1
- package/build-module/components/media-editor/use-save-media-editor.mjs +32 -4
- package/build-module/components/media-editor/use-save-media-editor.mjs.map +1 -1
- package/build-module/components/media-editor-canvas/index.mjs +8 -13
- package/build-module/components/media-editor-canvas/index.mjs.map +1 -1
- package/build-module/components/media-editor-crop-panel/index.mjs +17 -1
- package/build-module/components/media-editor-crop-panel/index.mjs.map +1 -1
- package/build-module/components/media-editor-fine-rotation/index.mjs +4 -5
- package/build-module/components/media-editor-fine-rotation/index.mjs.map +1 -1
- package/build-module/components/media-editor-image-controls/index.mjs +5 -7
- package/build-module/components/media-editor-image-controls/index.mjs.map +1 -1
- package/build-module/components/media-editor-keyboard-shortcuts-modal/index.mjs +33 -33
- package/build-module/components/media-editor-keyboard-shortcuts-modal/index.mjs.map +1 -1
- package/build-module/components/media-editor-modal/index.mjs +1 -0
- package/build-module/components/media-editor-modal/index.mjs.map +1 -1
- package/build-module/components/media-editor-panel/error-boundary.mjs +63 -0
- package/build-module/components/media-editor-panel/error-boundary.mjs.map +1 -0
- package/build-module/components/media-editor-panel/index.mjs +123 -0
- package/build-module/components/media-editor-panel/index.mjs.map +1 -0
- package/build-module/components/media-form/index.mjs +7 -1
- package/build-module/components/media-form/index.mjs.map +1 -1
- package/build-module/components/media-preview/index.mjs +123 -41
- package/build-module/components/media-preview/index.mjs.map +1 -1
- package/build-module/state/aspect-ratio-presets.mjs +12 -7
- package/build-module/state/aspect-ratio-presets.mjs.map +1 -1
- package/build-module/state/composite-reducer.mjs +32 -67
- package/build-module/state/composite-reducer.mjs.map +1 -1
- package/build-module/state/index.mjs +2 -5
- package/build-module/state/types.mjs +1 -2
- package/build-module/state/types.mjs.map +1 -1
- package/build-module/state/use-media-editor-state.mjs +70 -105
- package/build-module/state/use-media-editor-state.mjs.map +1 -1
- package/build-module/utils/get-media-type.mjs +8 -1
- package/build-module/utils/get-media-type.mjs.map +1 -1
- package/build-module/utils/index.mjs +1 -1
- package/build-style/style-rtl.css +122 -87
- package/build-style/style.css +121 -87
- package/build-types/components/media-editor/index.d.ts +25 -3
- package/build-types/components/media-editor/index.d.ts.map +1 -1
- package/build-types/components/media-editor/use-crop-options.d.ts +2 -3
- package/build-types/components/media-editor/use-crop-options.d.ts.map +1 -1
- package/build-types/components/media-editor/use-save-media-editor.d.ts.map +1 -1
- package/build-types/components/media-editor-canvas/index.d.ts +3 -3
- package/build-types/components/media-editor-canvas/index.d.ts.map +1 -1
- package/build-types/components/media-editor-crop-panel/index.d.ts +1 -1
- package/build-types/components/media-editor-crop-panel/index.d.ts.map +1 -1
- package/build-types/components/media-editor-fine-rotation/index.d.ts.map +1 -1
- package/build-types/components/media-editor-image-controls/index.d.ts +1 -1
- package/build-types/components/media-editor-image-controls/index.d.ts.map +1 -1
- package/build-types/components/media-editor-keyboard-shortcuts-modal/index.d.ts.map +1 -1
- package/build-types/components/media-editor-modal/index.d.ts +1 -1
- package/build-types/components/media-editor-modal/index.d.ts.map +1 -1
- package/build-types/components/media-editor-panel/error-boundary.d.ts +23 -0
- package/build-types/components/media-editor-panel/error-boundary.d.ts.map +1 -0
- package/build-types/components/media-editor-panel/index.d.ts +46 -0
- package/build-types/components/media-editor-panel/index.d.ts.map +1 -0
- package/build-types/components/media-form/index.d.ts.map +1 -1
- package/build-types/components/media-preview/index.d.ts.map +1 -1
- package/build-types/state/aspect-ratio-presets.d.ts +20 -3
- package/build-types/state/aspect-ratio-presets.d.ts.map +1 -1
- package/build-types/state/composite-reducer.d.ts +17 -19
- package/build-types/state/composite-reducer.d.ts.map +1 -1
- package/build-types/state/index.d.ts +2 -5
- package/build-types/state/index.d.ts.map +1 -1
- package/build-types/state/types.d.ts +20 -64
- package/build-types/state/types.d.ts.map +1 -1
- package/build-types/state/use-media-editor-state.d.ts +40 -54
- package/build-types/state/use-media-editor-state.d.ts.map +1 -1
- package/build-types/utils/get-media-type.d.ts +3 -1
- package/build-types/utils/get-media-type.d.ts.map +1 -1
- package/build-types/utils/index.d.ts +1 -1
- package/build-types/utils/index.d.ts.map +1 -1
- package/package.json +27 -24
- package/src/components/media-editor/index.tsx +372 -142
- package/src/components/media-editor/style.scss +21 -1
- package/src/components/media-editor/use-crop-options.ts +7 -11
- package/src/components/media-editor/use-save-media-editor.ts +48 -6
- package/src/components/media-editor-canvas/index.tsx +15 -26
- package/src/components/media-editor-canvas/style.scss +6 -6
- package/src/components/media-editor-crop-panel/index.tsx +38 -2
- package/src/components/media-editor-crop-panel/style.scss +21 -0
- package/src/components/media-editor-fine-rotation/index.tsx +6 -6
- package/src/components/media-editor-image-controls/index.tsx +11 -9
- package/src/components/media-editor-keyboard-shortcuts-modal/index.tsx +56 -63
- package/src/components/media-editor-keyboard-shortcuts-modal/style.scss +1 -1
- package/src/components/media-editor-modal/index.tsx +4 -1
- package/src/components/media-editor-panel/error-boundary.tsx +88 -0
- package/src/components/media-editor-panel/index.tsx +211 -0
- package/src/components/media-form/index.tsx +7 -1
- package/src/components/media-preview/index.tsx +195 -37
- package/src/components/media-preview/style.scss +11 -32
- package/src/components/rotation-ruler/style.scss +3 -3
- package/src/state/README.md +34 -0
- package/src/state/aspect-ratio-presets.ts +22 -3
- package/src/state/composite-reducer.ts +42 -80
- package/src/state/index.ts +2 -18
- package/src/state/types.ts +18 -68
- package/src/state/use-media-editor-state.ts +162 -242
- package/src/style.scss +2 -1
- package/src/utils/get-media-type.ts +9 -1
- package/src/utils/index.ts +1 -1
- package/build/components/media-editor-modal/build-modifiers.cjs +0 -110
- package/build/components/media-editor-modal/build-modifiers.cjs.map +0 -1
- package/build/image-editor/core/camera.cjs +0 -277
- package/build/image-editor/core/camera.cjs.map +0 -1
- package/build/image-editor/core/constants.cjs +0 -133
- package/build/image-editor/core/constants.cjs.map +0 -1
- package/build/image-editor/core/containment.cjs +0 -289
- package/build/image-editor/core/containment.cjs.map +0 -1
- package/build/image-editor/core/crop-rect.cjs +0 -37
- package/build/image-editor/core/crop-rect.cjs.map +0 -1
- package/build/image-editor/core/export/canvas-renderer.cjs +0 -181
- package/build/image-editor/core/export/canvas-renderer.cjs.map +0 -1
- package/build/image-editor/core/index.cjs +0 -89
- package/build/image-editor/core/interaction-controller.cjs +0 -591
- package/build/image-editor/core/interaction-controller.cjs.map +0 -1
- package/build/image-editor/core/math/rotation.cjs +0 -32
- package/build/image-editor/core/math/rotation.cjs.map +0 -1
- package/build/image-editor/core/math/sanitize.cjs +0 -136
- package/build/image-editor/core/math/sanitize.cjs.map +0 -1
- package/build/image-editor/core/setter-helpers.cjs +0 -61
- package/build/image-editor/core/setter-helpers.cjs.map +0 -1
- package/build/image-editor/core/source-region.cjs +0 -236
- package/build/image-editor/core/source-region.cjs.map +0 -1
- package/build/image-editor/core/state.cjs +0 -296
- package/build/image-editor/core/state.cjs.map +0 -1
- package/build/image-editor/core/stencil-math.cjs +0 -203
- package/build/image-editor/core/stencil-math.cjs.map +0 -1
- package/build/image-editor/core/transform-style.cjs +0 -43
- package/build/image-editor/core/transform-style.cjs.map +0 -1
- package/build/image-editor/core/transforms/pipeline.cjs +0 -41
- package/build/image-editor/core/transforms/pipeline.cjs.map +0 -1
- package/build/image-editor/core/types.cjs +0 -5
- package/build/image-editor/core/viewport-state.cjs +0 -36
- package/build/image-editor/core/viewport-state.cjs.map +0 -1
- package/build/image-editor/index.cjs +0 -68
- package/build/image-editor/react/components/cropper-provider.cjs +0 -49
- package/build/image-editor/react/components/cropper-provider.cjs.map +0 -1
- package/build/image-editor/react/components/cropper.cjs +0 -595
- package/build/image-editor/react/components/cropper.cjs.map +0 -1
- package/build/image-editor/react/components/index.cjs +0 -25
- package/build/image-editor/react/components/overlays/dimensions-overlay.cjs +0 -147
- package/build/image-editor/react/components/overlays/dimensions-overlay.cjs.map +0 -1
- package/build/image-editor/react/components/overlays/dimming-overlay.cjs +0 -31
- package/build/image-editor/react/components/overlays/dimming-overlay.cjs.map +0 -1
- package/build/image-editor/react/components/overlays/grid-overlay.cjs +0 -61
- package/build/image-editor/react/components/overlays/grid-overlay.cjs.map +0 -1
- package/build/image-editor/react/components/stencils/rectangle-stencil.cjs +0 -367
- package/build/image-editor/react/components/stencils/rectangle-stencil.cjs.map +0 -1
- package/build/image-editor/react/components/viewport-provider.cjs +0 -26
- package/build/image-editor/react/components/viewport-provider.cjs.map +0 -1
- package/build/image-editor/react/hooks/build-cropper-setters.cjs +0 -80
- package/build/image-editor/react/hooks/build-cropper-setters.cjs.map +0 -1
- package/build/image-editor/react/hooks/index.cjs +0 -19
- package/build/image-editor/react/hooks/use-aria-announcer.cjs +0 -104
- package/build/image-editor/react/hooks/use-aria-announcer.cjs.map +0 -1
- package/build/image-editor/react/hooks/use-cropper-controller.cjs +0 -80
- package/build/image-editor/react/hooks/use-cropper-controller.cjs.map +0 -1
- package/build/image-editor/react/hooks/use-interaction.cjs +0 -187
- package/build/image-editor/react/hooks/use-interaction.cjs.map +0 -1
- package/build/image-editor/react/hooks/use-transform-style.cjs +0 -24
- package/build/image-editor/react/hooks/use-transform-style.cjs.map +0 -1
- package/build/image-editor/react/hooks/use-viewport-state.cjs +0 -40
- package/build/image-editor/react/hooks/use-viewport-state.cjs.map +0 -1
- package/build/image-editor/react/visually-hidden-style.cjs +0 -24
- package/build/image-editor/react/visually-hidden-style.cjs.map +0 -1
- package/build-module/components/media-editor-modal/build-modifiers.mjs +0 -105
- package/build-module/components/media-editor-modal/build-modifiers.mjs.map +0 -1
- package/build-module/image-editor/core/camera.mjs +0 -265
- package/build-module/image-editor/core/camera.mjs.map +0 -1
- package/build-module/image-editor/core/constants.mjs +0 -115
- package/build-module/image-editor/core/constants.mjs.map +0 -1
- package/build-module/image-editor/core/containment.mjs +0 -281
- package/build-module/image-editor/core/containment.mjs.map +0 -1
- package/build-module/image-editor/core/crop-rect.mjs +0 -32
- package/build-module/image-editor/core/crop-rect.mjs.map +0 -1
- package/build-module/image-editor/core/export/canvas-renderer.mjs +0 -170
- package/build-module/image-editor/core/export/canvas-renderer.mjs.map +0 -1
- package/build-module/image-editor/core/index.mjs +0 -7
- package/build-module/image-editor/core/interaction-controller.mjs +0 -586
- package/build-module/image-editor/core/interaction-controller.mjs.map +0 -1
- package/build-module/image-editor/core/math/rotation.mjs +0 -26
- package/build-module/image-editor/core/math/rotation.mjs.map +0 -1
- package/build-module/image-editor/core/math/sanitize.mjs +0 -127
- package/build-module/image-editor/core/math/sanitize.mjs.map +0 -1
- package/build-module/image-editor/core/setter-helpers.mjs +0 -56
- package/build-module/image-editor/core/setter-helpers.mjs.map +0 -1
- package/build-module/image-editor/core/source-region.mjs +0 -228
- package/build-module/image-editor/core/source-region.mjs.map +0 -1
- package/build-module/image-editor/core/state.mjs +0 -288
- package/build-module/image-editor/core/state.mjs.map +0 -1
- package/build-module/image-editor/core/stencil-math.mjs +0 -194
- package/build-module/image-editor/core/stencil-math.mjs.map +0 -1
- package/build-module/image-editor/core/transform-style.mjs +0 -38
- package/build-module/image-editor/core/transform-style.mjs.map +0 -1
- package/build-module/image-editor/core/transforms/pipeline.mjs +0 -35
- package/build-module/image-editor/core/transforms/pipeline.mjs.map +0 -1
- package/build-module/image-editor/core/types.mjs +0 -0
- package/build-module/image-editor/core/viewport-state.mjs +0 -30
- package/build-module/image-editor/core/viewport-state.mjs.map +0 -1
- package/build-module/image-editor/index.mjs +0 -4
- package/build-module/image-editor/react/components/cropper-provider.mjs +0 -43
- package/build-module/image-editor/react/components/cropper-provider.mjs.map +0 -1
- package/build-module/image-editor/react/components/cropper.mjs +0 -568
- package/build-module/image-editor/react/components/cropper.mjs.map +0 -1
- package/build-module/image-editor/react/components/index.mjs +0 -3
- package/build-module/image-editor/react/components/overlays/dimensions-overlay.mjs +0 -142
- package/build-module/image-editor/react/components/overlays/dimensions-overlay.mjs.map +0 -1
- package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs +0 -26
- package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs.map +0 -1
- package/build-module/image-editor/react/components/overlays/grid-overlay.mjs +0 -56
- package/build-module/image-editor/react/components/overlays/grid-overlay.mjs.map +0 -1
- package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs +0 -362
- package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs.map +0 -1
- package/build-module/image-editor/react/components/viewport-provider.mjs +0 -20
- package/build-module/image-editor/react/components/viewport-provider.mjs.map +0 -1
- package/build-module/image-editor/react/hooks/build-cropper-setters.mjs +0 -75
- package/build-module/image-editor/react/hooks/build-cropper-setters.mjs.map +0 -1
- package/build-module/image-editor/react/hooks/index.mjs +0 -3
- package/build-module/image-editor/react/hooks/use-aria-announcer.mjs +0 -99
- package/build-module/image-editor/react/hooks/use-aria-announcer.mjs.map +0 -1
- package/build-module/image-editor/react/hooks/use-cropper-controller.mjs +0 -75
- package/build-module/image-editor/react/hooks/use-cropper-controller.mjs.map +0 -1
- package/build-module/image-editor/react/hooks/use-interaction.mjs +0 -182
- package/build-module/image-editor/react/hooks/use-interaction.mjs.map +0 -1
- package/build-module/image-editor/react/hooks/use-transform-style.mjs +0 -19
- package/build-module/image-editor/react/hooks/use-transform-style.mjs.map +0 -1
- package/build-module/image-editor/react/hooks/use-viewport-state.mjs +0 -35
- package/build-module/image-editor/react/hooks/use-viewport-state.mjs.map +0 -1
- package/build-module/image-editor/react/visually-hidden-style.mjs +0 -19
- package/build-module/image-editor/react/visually-hidden-style.mjs.map +0 -1
- package/build-types/components/media-editor-modal/build-modifiers.d.ts +0 -81
- package/build-types/components/media-editor-modal/build-modifiers.d.ts.map +0 -1
- package/build-types/image-editor/core/camera.d.ts +0 -128
- package/build-types/image-editor/core/camera.d.ts.map +0 -1
- package/build-types/image-editor/core/constants.d.ts +0 -98
- package/build-types/image-editor/core/constants.d.ts.map +0 -1
- package/build-types/image-editor/core/containment.d.ts +0 -72
- package/build-types/image-editor/core/containment.d.ts.map +0 -1
- package/build-types/image-editor/core/crop-rect.d.ts +0 -16
- package/build-types/image-editor/core/crop-rect.d.ts.map +0 -1
- package/build-types/image-editor/core/export/canvas-renderer.d.ts +0 -103
- package/build-types/image-editor/core/export/canvas-renderer.d.ts.map +0 -1
- package/build-types/image-editor/core/index.d.ts +0 -10
- package/build-types/image-editor/core/index.d.ts.map +0 -1
- package/build-types/image-editor/core/interaction-controller.d.ts +0 -191
- package/build-types/image-editor/core/interaction-controller.d.ts.map +0 -1
- package/build-types/image-editor/core/math/rotation.d.ts +0 -18
- package/build-types/image-editor/core/math/rotation.d.ts.map +0 -1
- package/build-types/image-editor/core/math/sanitize.d.ts +0 -67
- package/build-types/image-editor/core/math/sanitize.d.ts.map +0 -1
- package/build-types/image-editor/core/setter-helpers.d.ts +0 -21
- package/build-types/image-editor/core/setter-helpers.d.ts.map +0 -1
- package/build-types/image-editor/core/source-region.d.ts +0 -94
- package/build-types/image-editor/core/source-region.d.ts.map +0 -1
- package/build-types/image-editor/core/state.d.ts +0 -51
- package/build-types/image-editor/core/state.d.ts.map +0 -1
- package/build-types/image-editor/core/stencil-math.d.ts +0 -102
- package/build-types/image-editor/core/stencil-math.d.ts.map +0 -1
- package/build-types/image-editor/core/transform-style.d.ts +0 -20
- package/build-types/image-editor/core/transform-style.d.ts.map +0 -1
- package/build-types/image-editor/core/transforms/pipeline.d.ts +0 -24
- package/build-types/image-editor/core/transforms/pipeline.d.ts.map +0 -1
- package/build-types/image-editor/core/types.d.ts +0 -269
- package/build-types/image-editor/core/types.d.ts.map +0 -1
- package/build-types/image-editor/core/viewport-state.d.ts +0 -4
- package/build-types/image-editor/core/viewport-state.d.ts.map +0 -1
- package/build-types/image-editor/index.d.ts +0 -17
- package/build-types/image-editor/index.d.ts.map +0 -1
- package/build-types/image-editor/react/components/cropper-provider.d.ts +0 -38
- package/build-types/image-editor/react/components/cropper-provider.d.ts.map +0 -1
- package/build-types/image-editor/react/components/cropper.d.ts +0 -54
- package/build-types/image-editor/react/components/cropper.d.ts.map +0 -1
- package/build-types/image-editor/react/components/index.d.ts +0 -4
- package/build-types/image-editor/react/components/index.d.ts.map +0 -1
- package/build-types/image-editor/react/components/overlays/dimensions-overlay.d.ts +0 -33
- package/build-types/image-editor/react/components/overlays/dimensions-overlay.d.ts.map +0 -1
- package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts +0 -17
- package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts.map +0 -1
- package/build-types/image-editor/react/components/overlays/grid-overlay.d.ts +0 -27
- package/build-types/image-editor/react/components/overlays/grid-overlay.d.ts.map +0 -1
- package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts +0 -33
- package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts.map +0 -1
- package/build-types/image-editor/react/components/viewport-provider.d.ts +0 -6
- package/build-types/image-editor/react/components/viewport-provider.d.ts.map +0 -1
- package/build-types/image-editor/react/hooks/build-cropper-setters.d.ts +0 -44
- package/build-types/image-editor/react/hooks/build-cropper-setters.d.ts.map +0 -1
- package/build-types/image-editor/react/hooks/index.d.ts +0 -5
- package/build-types/image-editor/react/hooks/index.d.ts.map +0 -1
- package/build-types/image-editor/react/hooks/use-aria-announcer.d.ts +0 -14
- package/build-types/image-editor/react/hooks/use-aria-announcer.d.ts.map +0 -1
- package/build-types/image-editor/react/hooks/use-cropper-controller.d.ts +0 -55
- package/build-types/image-editor/react/hooks/use-cropper-controller.d.ts.map +0 -1
- package/build-types/image-editor/react/hooks/use-interaction.d.ts +0 -65
- package/build-types/image-editor/react/hooks/use-interaction.d.ts.map +0 -1
- package/build-types/image-editor/react/hooks/use-transform-style.d.ts +0 -13
- package/build-types/image-editor/react/hooks/use-transform-style.d.ts.map +0 -1
- package/build-types/image-editor/react/hooks/use-viewport-state.d.ts +0 -16
- package/build-types/image-editor/react/hooks/use-viewport-state.d.ts.map +0 -1
- package/build-types/image-editor/react/visually-hidden-style.d.ts +0 -6
- package/build-types/image-editor/react/visually-hidden-style.d.ts.map +0 -1
- package/src/components/media-editor-modal/build-modifiers.ts +0 -167
- package/src/image-editor/README.md +0 -61
- package/src/image-editor/core/camera.ts +0 -429
- package/src/image-editor/core/constants.ts +0 -137
- package/src/image-editor/core/containment.ts +0 -469
- package/src/image-editor/core/crop-rect.ts +0 -42
- package/src/image-editor/core/export/canvas-renderer.ts +0 -250
- package/src/image-editor/core/index.ts +0 -43
- package/src/image-editor/core/interaction-controller.ts +0 -976
- package/src/image-editor/core/math/rotation.ts +0 -26
- package/src/image-editor/core/math/sanitize.ts +0 -155
- package/src/image-editor/core/setter-helpers.ts +0 -63
- package/src/image-editor/core/source-region.ts +0 -367
- package/src/image-editor/core/state.ts +0 -484
- package/src/image-editor/core/stencil-math.ts +0 -379
- package/src/image-editor/core/transform-style.ts +0 -56
- package/src/image-editor/core/transforms/pipeline.ts +0 -40
- package/src/image-editor/core/types.ts +0 -230
- package/src/image-editor/core/viewport-state.ts +0 -30
- package/src/image-editor/docs/architecture.md +0 -63
- package/src/image-editor/docs/recipes.md +0 -184
- package/src/image-editor/index.ts +0 -43
- package/src/image-editor/react/components/cropper-provider.tsx +0 -70
- package/src/image-editor/react/components/cropper.scss +0 -259
- package/src/image-editor/react/components/cropper.tsx +0 -1108
- package/src/image-editor/react/components/index.ts +0 -3
- package/src/image-editor/react/components/overlays/dimensions-overlay.tsx +0 -262
- package/src/image-editor/react/components/overlays/dimming-overlay.tsx +0 -55
- package/src/image-editor/react/components/overlays/grid-overlay.tsx +0 -77
- package/src/image-editor/react/components/stencils/rectangle-stencil.tsx +0 -623
- package/src/image-editor/react/components/viewport-provider.tsx +0 -32
- package/src/image-editor/react/hooks/build-cropper-setters.ts +0 -102
- package/src/image-editor/react/hooks/index.ts +0 -4
- package/src/image-editor/react/hooks/use-aria-announcer.ts +0 -193
- package/src/image-editor/react/hooks/use-cropper-controller.ts +0 -197
- package/src/image-editor/react/hooks/use-interaction.ts +0 -294
- package/src/image-editor/react/hooks/use-transform-style.ts +0 -23
- package/src/image-editor/react/hooks/use-viewport-state.ts +0 -41
- package/src/image-editor/react/visually-hidden-style.ts +0 -15
- package/src/image-editor/style.scss +0 -1
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Colors
|
|
3
|
-
*/
|
|
4
1
|
/**
|
|
5
2
|
* SCSS Variables.
|
|
6
3
|
*
|
|
@@ -8,6 +5,9 @@
|
|
|
8
5
|
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
9
6
|
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
10
7
|
*/
|
|
8
|
+
/**
|
|
9
|
+
* Colors
|
|
10
|
+
*/
|
|
11
11
|
/**
|
|
12
12
|
* Fonts & basic variables.
|
|
13
13
|
*/
|
|
@@ -109,122 +109,119 @@
|
|
|
109
109
|
border: 0;
|
|
110
110
|
border-radius: 2px;
|
|
111
111
|
}
|
|
112
|
-
.media-editor-preview__file-info {
|
|
113
|
-
text-align: center;
|
|
114
|
-
background: #f0f0f0;
|
|
115
|
-
padding: 24px;
|
|
116
|
-
border-radius: 2px;
|
|
117
|
-
}
|
|
118
112
|
.media-editor-preview__file-name {
|
|
119
|
-
|
|
120
|
-
margin-bottom: 8px;
|
|
121
|
-
}
|
|
122
|
-
.media-editor-preview__mime-type {
|
|
123
|
-
color: #757575;
|
|
124
|
-
font-size: 0.9em;
|
|
125
|
-
margin-bottom: 16px;
|
|
126
|
-
}
|
|
127
|
-
.media-editor-preview__download-link {
|
|
128
|
-
display: inline-block;
|
|
129
|
-
margin-top: 8px;
|
|
130
|
-
}
|
|
131
|
-
.media-editor-preview--error, .media-editor-preview--empty {
|
|
132
|
-
color: #757575;
|
|
133
|
-
text-align: center;
|
|
113
|
+
overflow-wrap: anywhere;
|
|
134
114
|
}
|
|
135
|
-
.media-editor-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
115
|
+
.media-editor-preview__actions {
|
|
116
|
+
flex-direction: row;
|
|
117
|
+
flex-wrap: wrap;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
gap: var(--wpds-dimension-gap-sm, 8px);
|
|
140
120
|
}
|
|
141
|
-
|
|
121
|
+
|
|
122
|
+
/* stylelint-disable plugin-wpds/no-token-fallback-values -- This SCSS also works when the design tokens are not loaded. */
|
|
123
|
+
/* stylelint-enable plugin-wpds/no-token-fallback-values */
|
|
124
|
+
.wp-image-editor {
|
|
142
125
|
position: relative;
|
|
143
126
|
overflow: hidden;
|
|
144
127
|
width: 100%;
|
|
145
128
|
height: 100%;
|
|
146
129
|
touch-action: none;
|
|
147
130
|
-webkit-user-select: none;
|
|
148
|
-
|
|
131
|
+
user-select: none;
|
|
149
132
|
cursor: grab;
|
|
150
133
|
}
|
|
151
|
-
|
|
134
|
+
|
|
135
|
+
.wp-image-editor__canvas {
|
|
152
136
|
position: absolute;
|
|
153
|
-
inset: 24px;
|
|
137
|
+
inset: max(22px, var(--wp-image-editor-canvas-inset, var(--wpds-dimension-padding-2xl, 24px)));
|
|
154
138
|
min-height: 100px;
|
|
155
139
|
min-width: 100px;
|
|
156
140
|
}
|
|
157
|
-
|
|
141
|
+
|
|
142
|
+
.wp-image-editor__canvas:focus {
|
|
158
143
|
outline: none;
|
|
159
144
|
}
|
|
160
|
-
|
|
145
|
+
|
|
146
|
+
.wp-image-editor__stage {
|
|
161
147
|
position: absolute;
|
|
162
148
|
inset: 0;
|
|
163
149
|
}
|
|
164
|
-
|
|
150
|
+
|
|
151
|
+
.wp-image-editor--dragging {
|
|
165
152
|
cursor: grabbing;
|
|
166
153
|
}
|
|
167
|
-
|
|
154
|
+
|
|
155
|
+
.wp-image-editor__image {
|
|
168
156
|
position: absolute;
|
|
169
157
|
top: 0;
|
|
170
158
|
left: 0;
|
|
171
159
|
will-change: transform;
|
|
172
160
|
transform-origin: center center;
|
|
173
161
|
}
|
|
174
|
-
|
|
162
|
+
|
|
163
|
+
.wp-image-editor__stencil {
|
|
175
164
|
position: absolute;
|
|
176
165
|
pointer-events: none;
|
|
177
166
|
}
|
|
178
|
-
|
|
167
|
+
|
|
168
|
+
.wp-image-editor__dimming {
|
|
179
169
|
position: absolute;
|
|
180
170
|
pointer-events: none;
|
|
181
|
-
/* Large shadow spread washes everything outside the crop area
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
where they're panning. */
|
|
185
|
-
box-shadow: 0 0 0 9999px rgba(224, 224, 224, 0.6);
|
|
171
|
+
/* Large shadow spread washes everything outside the crop area.
|
|
172
|
+
It is lighter during drag so the image stays visible. */
|
|
173
|
+
box-shadow: 0 0 0 9999px var(--wp-image-editor-dimming-color, color-mix(in srgb, color-mix(in srgb, var(--wpds-color-background-surface-neutral-weak, #f4f4f4) 90.65%, var(--wpds-color-foreground-content-neutral, #1e1e1e)) 60%, transparent));
|
|
186
174
|
transition: box-shadow 0.15s ease;
|
|
187
175
|
}
|
|
188
|
-
|
|
189
|
-
|
|
176
|
+
|
|
177
|
+
.wp-image-editor--dragging .wp-image-editor__dimming {
|
|
178
|
+
box-shadow: 0 0 0 9999px color-mix(in srgb, var(--wp-image-editor-dimming-color, color-mix(in srgb, color-mix(in srgb, var(--wpds-color-background-surface-neutral-weak, #f4f4f4) 90.65%, var(--wpds-color-foreground-content-neutral, #1e1e1e)) 60%, transparent)) 66.667%, transparent);
|
|
190
179
|
}
|
|
191
|
-
|
|
180
|
+
|
|
181
|
+
.wp-image-editor__grid {
|
|
192
182
|
position: absolute;
|
|
193
183
|
pointer-events: none;
|
|
194
184
|
overflow: hidden;
|
|
195
185
|
transition: opacity 0.15s ease;
|
|
196
186
|
}
|
|
197
|
-
|
|
187
|
+
|
|
188
|
+
.wp-image-editor__canvas--grid-interactive .wp-image-editor__grid {
|
|
198
189
|
opacity: 0;
|
|
199
190
|
transition-delay: 0.1s;
|
|
200
191
|
}
|
|
201
|
-
|
|
192
|
+
|
|
193
|
+
.wp-image-editor__canvas--show-grid .wp-image-editor__grid {
|
|
202
194
|
opacity: 1;
|
|
203
195
|
transition-delay: 0s;
|
|
204
196
|
}
|
|
205
|
-
|
|
197
|
+
|
|
198
|
+
.wp-image-editor__canvas--settling .wp-image-editor__grid {
|
|
206
199
|
opacity: 0;
|
|
207
200
|
transition: none;
|
|
208
201
|
}
|
|
209
|
-
|
|
202
|
+
|
|
203
|
+
.wp-image-editor__grid-line {
|
|
210
204
|
position: absolute;
|
|
211
|
-
background: rgba(255, 255, 255, 0.4);
|
|
205
|
+
background: var(--wp-image-editor-grid-color, rgba(255, 255, 255, 0.4));
|
|
212
206
|
}
|
|
213
|
-
|
|
207
|
+
|
|
208
|
+
.wp-image-editor__grid-line--horizontal {
|
|
214
209
|
left: 0;
|
|
215
210
|
width: 100%;
|
|
216
211
|
height: 1px;
|
|
217
212
|
}
|
|
218
|
-
|
|
213
|
+
|
|
214
|
+
.wp-image-editor__grid-line--vertical {
|
|
219
215
|
top: 0;
|
|
220
216
|
height: 100%;
|
|
221
217
|
width: 1px;
|
|
222
218
|
}
|
|
223
|
-
|
|
219
|
+
|
|
220
|
+
.wp-image-editor__dimensions-tooltip {
|
|
224
221
|
position: absolute;
|
|
225
222
|
padding: 2px 6px;
|
|
226
|
-
background: #fff;
|
|
227
|
-
color: #1e1e1e;
|
|
223
|
+
background: var(--wp-image-editor-surface-color, var(--wpds-color-background-surface-neutral-strong, #fff));
|
|
224
|
+
color: var(--wp-image-editor-foreground-color, var(--wpds-color-foreground-content-neutral, #1e1e1e));
|
|
228
225
|
font-size: 11px;
|
|
229
226
|
line-height: 1.4;
|
|
230
227
|
font-variant-numeric: tabular-nums;
|
|
@@ -233,18 +230,21 @@
|
|
|
233
230
|
white-space: nowrap;
|
|
234
231
|
z-index: 2;
|
|
235
232
|
}
|
|
236
|
-
|
|
233
|
+
|
|
234
|
+
.wp-image-editor__stencil-rect {
|
|
237
235
|
position: absolute;
|
|
238
|
-
border: 1px solid #1e1e1e;
|
|
236
|
+
border: 1px solid var(--wp-image-editor-foreground-color, var(--wpds-color-foreground-content-neutral, #1e1e1e));
|
|
239
237
|
box-sizing: border-box;
|
|
240
238
|
pointer-events: none;
|
|
241
239
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
242
240
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
|
|
242
|
+
.wp-image-editor__canvas--focus-visible:focus .wp-image-editor__stencil-rect {
|
|
243
|
+
border-color: var(--wp-image-editor-accent-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
244
|
+
box-shadow: 0 0 0 1px var(--wp-image-editor-accent-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
246
245
|
}
|
|
247
|
-
|
|
246
|
+
|
|
247
|
+
.wp-image-editor__handle {
|
|
248
248
|
appearance: none;
|
|
249
249
|
margin: 0;
|
|
250
250
|
padding: 0;
|
|
@@ -253,22 +253,25 @@
|
|
|
253
253
|
position: absolute;
|
|
254
254
|
width: 12px;
|
|
255
255
|
height: 12px;
|
|
256
|
-
background: #fff;
|
|
257
|
-
border: 1px solid var(--wp-admin-theme-color, #3858e9);
|
|
256
|
+
background: var(--wp-image-editor-surface-color, var(--wpds-color-background-surface-neutral-strong, #fff));
|
|
257
|
+
border: 1px solid var(--wp-image-editor-accent-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
258
258
|
border-radius: 50%;
|
|
259
259
|
box-sizing: border-box;
|
|
260
260
|
pointer-events: auto;
|
|
261
261
|
transition: background-color 0.15s ease, box-shadow 0.15s ease;
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
|
|
264
|
+
.wp-image-editor__handle:focus {
|
|
264
265
|
outline: none;
|
|
265
266
|
}
|
|
266
|
-
|
|
267
|
-
|
|
267
|
+
|
|
268
|
+
.wp-image-editor__canvas--focus-visible .wp-image-editor__handle:focus {
|
|
269
|
+
background: var(--wp-image-editor-accent-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
268
270
|
border-color: transparent;
|
|
269
|
-
box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-image-editor-
|
|
271
|
+
box-shadow: 0 0 0 2px var(--wp-image-editor-surface-color, var(--wpds-color-background-surface-neutral-strong, #fff)), 0 0 0 4px var(--wp-image-editor-accent-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)));
|
|
270
272
|
}
|
|
271
|
-
|
|
273
|
+
|
|
274
|
+
.wp-image-editor__handle::before {
|
|
272
275
|
content: "";
|
|
273
276
|
position: absolute;
|
|
274
277
|
top: 50%;
|
|
@@ -277,49 +280,58 @@
|
|
|
277
280
|
height: 44px;
|
|
278
281
|
transform: translate(-50%, -50%);
|
|
279
282
|
}
|
|
280
|
-
|
|
283
|
+
|
|
284
|
+
.wp-image-editor__handle {
|
|
281
285
|
/* Offset by half the handle width (12px / 2 = 6px) to center on crop edge */
|
|
282
286
|
}
|
|
283
|
-
|
|
287
|
+
|
|
288
|
+
.wp-image-editor__handle--n {
|
|
284
289
|
top: -6px;
|
|
285
290
|
left: 50%;
|
|
286
291
|
margin-left: -6px;
|
|
287
292
|
cursor: ns-resize;
|
|
288
293
|
}
|
|
289
|
-
|
|
294
|
+
|
|
295
|
+
.wp-image-editor__handle--s {
|
|
290
296
|
bottom: -6px;
|
|
291
297
|
left: 50%;
|
|
292
298
|
margin-left: -6px;
|
|
293
299
|
cursor: ns-resize;
|
|
294
300
|
}
|
|
295
|
-
|
|
301
|
+
|
|
302
|
+
.wp-image-editor__handle--e {
|
|
296
303
|
top: 50%;
|
|
297
304
|
right: -6px;
|
|
298
305
|
margin-top: -6px;
|
|
299
306
|
cursor: ew-resize;
|
|
300
307
|
}
|
|
301
|
-
|
|
308
|
+
|
|
309
|
+
.wp-image-editor__handle--w {
|
|
302
310
|
top: 50%;
|
|
303
311
|
left: -6px;
|
|
304
312
|
margin-top: -6px;
|
|
305
313
|
cursor: ew-resize;
|
|
306
314
|
}
|
|
307
|
-
|
|
315
|
+
|
|
316
|
+
.wp-image-editor__handle--nw {
|
|
308
317
|
top: -6px;
|
|
309
318
|
left: -6px;
|
|
310
319
|
cursor: nwse-resize;
|
|
311
320
|
}
|
|
312
|
-
|
|
321
|
+
|
|
322
|
+
.wp-image-editor__handle--ne {
|
|
313
323
|
top: -6px;
|
|
314
324
|
right: -6px;
|
|
315
325
|
cursor: nesw-resize;
|
|
316
326
|
}
|
|
317
|
-
|
|
327
|
+
|
|
328
|
+
.wp-image-editor__handle--sw {
|
|
318
329
|
bottom: -6px;
|
|
319
330
|
left: -6px;
|
|
320
331
|
cursor: nesw-resize;
|
|
321
332
|
}
|
|
322
|
-
|
|
333
|
+
|
|
334
|
+
.wp-image-editor__handle--se {
|
|
323
335
|
bottom: -6px;
|
|
324
336
|
right: -6px;
|
|
325
337
|
cursor: nwse-resize;
|
|
@@ -451,6 +463,9 @@
|
|
|
451
463
|
.media-editor .media-editor__canvas-area .media-editor-preview {
|
|
452
464
|
height: 100%;
|
|
453
465
|
}
|
|
466
|
+
.media-editor .media-editor__canvas-area:has(.media-editor-preview.is-placeholder) {
|
|
467
|
+
background: none;
|
|
468
|
+
}
|
|
454
469
|
.media-editor .media-editor__canvas-area img,
|
|
455
470
|
.media-editor .media-editor__canvas-area video {
|
|
456
471
|
max-width: 100%;
|
|
@@ -483,6 +498,11 @@
|
|
|
483
498
|
width: var(--wpds-dimension-surface-width-sm, 320px);
|
|
484
499
|
}
|
|
485
500
|
}
|
|
501
|
+
@media (min-width: 600px) {
|
|
502
|
+
.media-editor .media-editor__body:has(.media-editor-preview.is-placeholder) .media-editor__sidebar {
|
|
503
|
+
border-inline-start: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
486
506
|
.media-editor .media-editor__tabs {
|
|
487
507
|
display: flex;
|
|
488
508
|
flex: 1;
|
|
@@ -512,7 +532,7 @@
|
|
|
512
532
|
@media (min-width: 600px) {
|
|
513
533
|
.media-editor .media-editor__body.has-panel-open .media-editor__content {
|
|
514
534
|
display: flex;
|
|
515
|
-
margin: 0
|
|
535
|
+
margin-left: 0;
|
|
516
536
|
}
|
|
517
537
|
}
|
|
518
538
|
|
|
@@ -595,13 +615,13 @@
|
|
|
595
615
|
width: 100%;
|
|
596
616
|
height: 100%;
|
|
597
617
|
}
|
|
598
|
-
.media-editor-
|
|
618
|
+
.media-editor-canvas__image-editor {
|
|
599
619
|
width: 100%;
|
|
600
620
|
height: 100%;
|
|
601
621
|
opacity: 0;
|
|
602
622
|
pointer-events: none;
|
|
603
623
|
}
|
|
604
|
-
.media-editor-
|
|
624
|
+
.media-editor-canvas__image-editor.is-loaded {
|
|
605
625
|
opacity: 1;
|
|
606
626
|
pointer-events: auto;
|
|
607
627
|
}
|
|
@@ -614,7 +634,7 @@
|
|
|
614
634
|
}
|
|
615
635
|
}
|
|
616
636
|
@media not (prefers-reduced-motion) {
|
|
617
|
-
.media-editor-
|
|
637
|
+
.media-editor-canvas__image-editor.is-loaded {
|
|
618
638
|
animation: __wp-base-styles-fade-in 0.2s linear 0s;
|
|
619
639
|
animation-fill-mode: forwards;
|
|
620
640
|
}
|
|
@@ -667,6 +687,22 @@
|
|
|
667
687
|
padding-inline: 2px 0;
|
|
668
688
|
}
|
|
669
689
|
|
|
690
|
+
.media-editor-crop-panel__aspect-ratio-option {
|
|
691
|
+
display: flex;
|
|
692
|
+
align-items: center;
|
|
693
|
+
gap: 8px;
|
|
694
|
+
min-width: 0;
|
|
695
|
+
}
|
|
696
|
+
.media-editor-crop-panel__aspect-ratio-option svg {
|
|
697
|
+
flex-shrink: 0;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.media-editor-crop-panel__aspect-ratio-label {
|
|
701
|
+
overflow: hidden;
|
|
702
|
+
text-overflow: ellipsis;
|
|
703
|
+
white-space: nowrap;
|
|
704
|
+
}
|
|
705
|
+
|
|
670
706
|
.media-editor-keyboard-shortcuts-modal {
|
|
671
707
|
min-width: 280px;
|
|
672
708
|
}
|
|
@@ -707,7 +743,7 @@
|
|
|
707
743
|
margin: 0 0.2rem 0 0.2rem;
|
|
708
744
|
}
|
|
709
745
|
.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key:last-child {
|
|
710
|
-
margin: 0
|
|
746
|
+
margin-inline-end: 0;
|
|
711
747
|
}
|
|
712
748
|
|
|
713
749
|
.rotation-ruler {
|
|
@@ -716,8 +752,7 @@
|
|
|
716
752
|
height: 32px;
|
|
717
753
|
padding: 0 8px;
|
|
718
754
|
box-sizing: border-box;
|
|
719
|
-
|
|
720
|
-
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
755
|
+
font-family: var(--wpds-typography-font-family-body, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
|
|
721
756
|
-webkit-user-select: none;
|
|
722
757
|
user-select: none;
|
|
723
758
|
touch-action: none;
|
|
@@ -775,6 +810,7 @@
|
|
|
775
810
|
|
|
776
811
|
.rotation-ruler__ticks {
|
|
777
812
|
position: absolute;
|
|
813
|
+
color: CanvasText;
|
|
778
814
|
left: 50%;
|
|
779
815
|
top: 0;
|
|
780
816
|
display: block;
|
|
@@ -811,7 +847,6 @@
|
|
|
811
847
|
font-size: 12px;
|
|
812
848
|
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
813
849
|
line-height: 14px;
|
|
814
|
-
color: #1e1e1e;
|
|
815
850
|
pointer-events: none;
|
|
816
851
|
}
|
|
817
852
|
.rotation-ruler__active-label::before {
|