@wordpress/media-editor 0.11.0 → 0.11.2-next.v.202606191442.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.
Files changed (179) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/components/media-editor/index.cjs +41 -51
  3. package/build/components/media-editor/index.cjs.map +3 -3
  4. package/build/components/media-editor/use-crop-options.cjs.map +1 -1
  5. package/build/components/media-editor-canvas/index.cjs +63 -15
  6. package/build/components/media-editor-canvas/index.cjs.map +3 -3
  7. package/build/components/media-editor-crop-panel/index.cjs +15 -45
  8. package/build/components/media-editor-crop-panel/index.cjs.map +3 -3
  9. package/build/components/media-editor-fine-rotation/index.cjs.map +2 -2
  10. package/build/components/media-editor-image-controls/index.cjs +230 -0
  11. package/build/components/media-editor-image-controls/index.cjs.map +7 -0
  12. package/build/components/media-editor-keyboard-shortcuts-modal/index.cjs +4 -4
  13. package/build/components/media-editor-keyboard-shortcuts-modal/index.cjs.map +2 -2
  14. package/build/components/media-editor-modal/build-modifiers.cjs.map +1 -1
  15. package/build/components/media-form/index.cjs +12 -23
  16. package/build/components/media-form/index.cjs.map +3 -3
  17. package/build/components/rotation-ruler/index.cjs +1 -1
  18. package/build/components/rotation-ruler/index.cjs.map +1 -1
  19. package/build/components/rotation-ruler/use-ruler-drag.cjs.map +1 -1
  20. package/build/image-editor/core/camera.cjs +13 -0
  21. package/build/image-editor/core/camera.cjs.map +2 -2
  22. package/build/image-editor/core/constants.cjs +15 -3
  23. package/build/image-editor/core/constants.cjs.map +2 -2
  24. package/build/image-editor/core/containment.cjs.map +1 -1
  25. package/build/image-editor/core/crop-rect.cjs.map +1 -1
  26. package/build/image-editor/core/export/canvas-renderer.cjs.map +1 -1
  27. package/build/image-editor/core/interaction-controller.cjs +9 -7
  28. package/build/image-editor/core/interaction-controller.cjs.map +2 -2
  29. package/build/image-editor/core/math/sanitize.cjs.map +1 -1
  30. package/build/image-editor/core/setter-helpers.cjs.map +1 -1
  31. package/build/image-editor/core/source-region.cjs +111 -2
  32. package/build/image-editor/core/source-region.cjs.map +2 -2
  33. package/build/image-editor/core/state.cjs.map +1 -1
  34. package/build/image-editor/core/stencil-math.cjs +14 -6
  35. package/build/image-editor/core/stencil-math.cjs.map +2 -2
  36. package/build/image-editor/core/transform-style.cjs.map +1 -1
  37. package/build/image-editor/core/types.cjs.map +1 -1
  38. package/build/image-editor/react/components/cropper.cjs +231 -49
  39. package/build/image-editor/react/components/cropper.cjs.map +2 -2
  40. package/build/image-editor/react/components/overlays/dimensions-overlay.cjs.map +1 -1
  41. package/build/image-editor/react/components/overlays/dimming-overlay.cjs +1 -0
  42. package/build/image-editor/react/components/overlays/dimming-overlay.cjs.map +2 -2
  43. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs +65 -19
  44. package/build/image-editor/react/components/stencils/rectangle-stencil.cjs.map +2 -2
  45. package/build/image-editor/react/hooks/build-cropper-setters.cjs.map +1 -1
  46. package/build/image-editor/react/hooks/use-cropper-reducer.cjs +1 -1
  47. package/build/image-editor/react/hooks/use-cropper-reducer.cjs.map +2 -2
  48. package/build/image-editor/react/hooks/use-interaction.cjs.map +1 -1
  49. package/build/image-editor/react/hooks/use-viewport-state.cjs.map +1 -1
  50. package/build/index.cjs.map +1 -1
  51. package/build/state/types.cjs.map +1 -1
  52. package/build/state/use-media-editor-state.cjs +1 -1
  53. package/build/state/use-media-editor-state.cjs.map +2 -2
  54. package/build-module/components/media-editor/index.mjs +41 -51
  55. package/build-module/components/media-editor/index.mjs.map +2 -2
  56. package/build-module/components/media-editor/use-crop-options.mjs.map +1 -1
  57. package/build-module/components/media-editor-canvas/index.mjs +55 -17
  58. package/build-module/components/media-editor-canvas/index.mjs.map +2 -2
  59. package/build-module/components/media-editor-crop-panel/index.mjs +8 -51
  60. package/build-module/components/media-editor-crop-panel/index.mjs.map +2 -2
  61. package/build-module/components/media-editor-fine-rotation/index.mjs.map +2 -2
  62. package/build-module/components/media-editor-image-controls/index.mjs +221 -0
  63. package/build-module/components/media-editor-image-controls/index.mjs.map +7 -0
  64. package/build-module/components/media-editor-keyboard-shortcuts-modal/index.mjs +4 -4
  65. package/build-module/components/media-editor-keyboard-shortcuts-modal/index.mjs.map +2 -2
  66. package/build-module/components/media-editor-modal/build-modifiers.mjs.map +1 -1
  67. package/build-module/components/media-form/index.mjs +12 -13
  68. package/build-module/components/media-form/index.mjs.map +2 -2
  69. package/build-module/components/rotation-ruler/index.mjs +1 -1
  70. package/build-module/components/rotation-ruler/index.mjs.map +1 -1
  71. package/build-module/components/rotation-ruler/use-ruler-drag.mjs.map +1 -1
  72. package/build-module/image-editor/core/camera.mjs +12 -0
  73. package/build-module/image-editor/core/camera.mjs.map +2 -2
  74. package/build-module/image-editor/core/constants.mjs +10 -2
  75. package/build-module/image-editor/core/constants.mjs.map +2 -2
  76. package/build-module/image-editor/core/containment.mjs.map +1 -1
  77. package/build-module/image-editor/core/crop-rect.mjs.map +1 -1
  78. package/build-module/image-editor/core/export/canvas-renderer.mjs.map +1 -1
  79. package/build-module/image-editor/core/interaction-controller.mjs +9 -7
  80. package/build-module/image-editor/core/interaction-controller.mjs.map +2 -2
  81. package/build-module/image-editor/core/math/sanitize.mjs.map +1 -1
  82. package/build-module/image-editor/core/setter-helpers.mjs.map +1 -1
  83. package/build-module/image-editor/core/source-region.mjs +108 -1
  84. package/build-module/image-editor/core/source-region.mjs.map +2 -2
  85. package/build-module/image-editor/core/state.mjs.map +1 -1
  86. package/build-module/image-editor/core/stencil-math.mjs +12 -5
  87. package/build-module/image-editor/core/stencil-math.mjs.map +2 -2
  88. package/build-module/image-editor/core/transform-style.mjs.map +1 -1
  89. package/build-module/image-editor/react/components/cropper.mjs +242 -52
  90. package/build-module/image-editor/react/components/cropper.mjs.map +2 -2
  91. package/build-module/image-editor/react/components/overlays/dimensions-overlay.mjs.map +1 -1
  92. package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs +1 -0
  93. package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs.map +2 -2
  94. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs +65 -19
  95. package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs.map +2 -2
  96. package/build-module/image-editor/react/hooks/build-cropper-setters.mjs.map +1 -1
  97. package/build-module/image-editor/react/hooks/use-cropper-reducer.mjs +1 -1
  98. package/build-module/image-editor/react/hooks/use-cropper-reducer.mjs.map +2 -2
  99. package/build-module/image-editor/react/hooks/use-interaction.mjs.map +1 -1
  100. package/build-module/image-editor/react/hooks/use-viewport-state.mjs.map +1 -1
  101. package/build-module/index.mjs.map +1 -1
  102. package/build-module/state/types.mjs.map +1 -1
  103. package/build-module/state/use-media-editor-state.mjs +1 -1
  104. package/build-module/state/use-media-editor-state.mjs.map +2 -2
  105. package/build-style/style-rtl.css +179 -47
  106. package/build-style/style.css +179 -46
  107. package/build-types/components/media-editor/index.d.ts +6 -7
  108. package/build-types/components/media-editor/index.d.ts.map +1 -1
  109. package/build-types/components/media-editor-canvas/index.d.ts.map +1 -1
  110. package/build-types/components/media-editor-crop-panel/index.d.ts +11 -6
  111. package/build-types/components/media-editor-crop-panel/index.d.ts.map +1 -1
  112. package/build-types/components/media-editor-fine-rotation/index.d.ts +4 -3
  113. package/build-types/components/media-editor-fine-rotation/index.d.ts.map +1 -1
  114. package/build-types/components/media-editor-image-controls/index.d.ts +46 -0
  115. package/build-types/components/media-editor-image-controls/index.d.ts.map +1 -0
  116. package/build-types/components/media-form/index.d.ts.map +1 -1
  117. package/build-types/image-editor/core/camera.d.ts +25 -1
  118. package/build-types/image-editor/core/camera.d.ts.map +1 -1
  119. package/build-types/image-editor/core/constants.d.ts +30 -1
  120. package/build-types/image-editor/core/constants.d.ts.map +1 -1
  121. package/build-types/image-editor/core/interaction-controller.d.ts.map +1 -1
  122. package/build-types/image-editor/core/source-region.d.ts +23 -1
  123. package/build-types/image-editor/core/source-region.d.ts.map +1 -1
  124. package/build-types/image-editor/core/stencil-math.d.ts +22 -4
  125. package/build-types/image-editor/core/stencil-math.d.ts.map +1 -1
  126. package/build-types/image-editor/core/types.d.ts +14 -0
  127. package/build-types/image-editor/core/types.d.ts.map +1 -1
  128. package/build-types/image-editor/react/components/cropper.d.ts.map +1 -1
  129. package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts.map +1 -1
  130. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts +17 -14
  131. package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts.map +1 -1
  132. package/package.json +30 -20
  133. package/src/components/media-editor/index.tsx +69 -77
  134. package/src/components/media-editor/style.scss +136 -4
  135. package/src/components/media-editor-canvas/index.tsx +82 -13
  136. package/src/components/media-editor-canvas/style.scss +41 -0
  137. package/src/components/media-editor-crop-panel/index.tsx +16 -62
  138. package/src/components/media-editor-crop-panel/test/index.tsx +25 -41
  139. package/src/components/media-editor-fine-rotation/index.tsx +4 -3
  140. package/src/components/media-editor-image-controls/index.tsx +262 -0
  141. package/src/components/media-editor-image-controls/style.scss +48 -0
  142. package/src/components/media-editor-image-controls/test/index.tsx +150 -0
  143. package/src/components/media-editor-modal/style.scss +32 -42
  144. package/src/components/media-form/index.tsx +17 -21
  145. package/src/components/media-form/style.scss +6 -0
  146. package/src/components/rotation-ruler/style.scss +10 -3
  147. package/src/image-editor/core/camera.ts +60 -1
  148. package/src/image-editor/core/constants.ts +34 -1
  149. package/src/image-editor/core/interaction-controller.ts +25 -11
  150. package/src/image-editor/core/source-region.ts +202 -1
  151. package/src/image-editor/core/stencil-math.ts +42 -10
  152. package/src/image-editor/core/test/camera.ts +272 -1
  153. package/src/image-editor/core/test/interaction-controller.ts +100 -0
  154. package/src/image-editor/core/test/stencil-math.ts +153 -0
  155. package/src/image-editor/core/types.ts +17 -0
  156. package/src/image-editor/react/components/cropper.scss +28 -17
  157. package/src/image-editor/react/components/cropper.tsx +362 -62
  158. package/src/image-editor/react/components/overlays/dimming-overlay.tsx +1 -0
  159. package/src/image-editor/react/components/stencils/rectangle-stencil.tsx +101 -32
  160. package/src/image-editor/react/components/stencils/test/rectangle-stencil.tsx +169 -17
  161. package/src/image-editor/react/components/test/cropper.tsx +689 -6
  162. package/src/style.scss +2 -1
  163. package/tsconfig.tsbuildinfo +1 -1
  164. package/build/components/media-editor-transform-controls/index.cjs +0 -84
  165. package/build/components/media-editor-transform-controls/index.cjs.map +0 -7
  166. package/build/components/media-form/sidebar-datetime-view.cjs +0 -53
  167. package/build/components/media-form/sidebar-datetime-view.cjs.map +0 -7
  168. package/build-module/components/media-editor-transform-controls/index.mjs +0 -68
  169. package/build-module/components/media-editor-transform-controls/index.mjs.map +0 -7
  170. package/build-module/components/media-form/sidebar-datetime-view.mjs +0 -32
  171. package/build-module/components/media-form/sidebar-datetime-view.mjs.map +0 -7
  172. package/build-types/components/media-editor-transform-controls/index.d.ts +0 -8
  173. package/build-types/components/media-editor-transform-controls/index.d.ts.map +0 -1
  174. package/build-types/components/media-form/sidebar-datetime-view.d.ts +0 -10
  175. package/build-types/components/media-form/sidebar-datetime-view.d.ts.map +0 -1
  176. package/src/components/media-editor-transform-controls/index.tsx +0 -70
  177. package/src/components/media-editor-transform-controls/style.scss +0 -8
  178. package/src/components/media-form/sidebar-datetime-view.tsx +0 -47
  179. package/src/components/media-form/test/sidebar-datetime-view.test.tsx +0 -96
@@ -65,7 +65,8 @@
65
65
  .media-editor-preview--image img {
66
66
  max-width: 100%;
67
67
  max-height: 100%;
68
- object-fit: contain;
68
+ -o-object-fit: contain;
69
+ object-fit: contain;
69
70
  width: auto;
70
71
  height: auto;
71
72
  opacity: 0;
@@ -87,7 +88,8 @@
87
88
  .media-editor-preview--video video {
88
89
  max-width: 100%;
89
90
  max-height: 100%;
90
- object-fit: contain;
91
+ -o-object-fit: contain;
92
+ object-fit: contain;
91
93
  width: auto;
92
94
  height: auto;
93
95
  }
@@ -133,12 +135,15 @@
133
135
  height: 100%;
134
136
  touch-action: none;
135
137
  -webkit-user-select: none;
138
+ -moz-user-select: none;
136
139
  user-select: none;
137
140
  cursor: grab;
138
141
  }
139
142
  .wp-media-editor-image-editor__canvas {
140
143
  position: absolute;
141
- inset: 22px;
144
+ inset: 24px;
145
+ min-height: 100px;
146
+ min-width: 100px;
142
147
  }
143
148
  .wp-media-editor-image-editor__canvas:focus {
144
149
  outline: none;
@@ -164,14 +169,15 @@
164
169
  .wp-media-editor-image-editor__dimming {
165
170
  position: absolute;
166
171
  pointer-events: none;
167
- /* Large shadow spread dims everything outside the crop area.
168
- Darker at rest for clear crop framing, lighter during drag
169
- so the user can see where they're panning. */
170
- box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
172
+ /* Large shadow spread washes everything outside the crop area
173
+ toward the canvas grey ($gray-200). Slightly stronger at rest
174
+ for clear crop framing, lighter during drag so the user can see
175
+ where they're panning. */
176
+ box-shadow: 0 0 0 9999px rgba(224, 224, 224, 0.6);
171
177
  transition: box-shadow 0.15s ease;
172
178
  }
173
179
  .wp-media-editor-image-editor--dragging .wp-media-editor-image-editor__dimming {
174
- box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
180
+ box-shadow: 0 0 0 9999px rgba(224, 224, 224, 0.4);
175
181
  }
176
182
  .wp-media-editor-image-editor__grid {
177
183
  position: absolute;
@@ -220,7 +226,7 @@
220
226
  }
221
227
  .wp-media-editor-image-editor__stencil-rect {
222
228
  position: absolute;
223
- border: 1px solid rgba(255, 255, 255, 0.7);
229
+ border: 1px solid #1e1e1e;
224
230
  box-sizing: border-box;
225
231
  pointer-events: none;
226
232
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
@@ -230,7 +236,9 @@
230
236
  box-shadow: 0 0 0 1px var(--wp-image-editor-focus-color, var(--wp-admin-theme-color, #007cba));
231
237
  }
232
238
  .wp-media-editor-image-editor__handle {
233
- appearance: none;
239
+ -webkit-appearance: none;
240
+ -moz-appearance: none;
241
+ appearance: none;
234
242
  margin: 0;
235
243
  padding: 0;
236
244
  font: inherit;
@@ -238,8 +246,8 @@
238
246
  position: absolute;
239
247
  width: 12px;
240
248
  height: 12px;
241
- background: rgba(255, 255, 255, 0.6);
242
- border: 1px solid rgba(255, 255, 255, 0.9);
249
+ background: #fff;
250
+ border: 1px solid var(--wp-admin-theme-color, #007cba);
243
251
  border-radius: 50%;
244
252
  box-sizing: border-box;
245
253
  pointer-events: auto;
@@ -311,10 +319,10 @@
311
319
  }
312
320
 
313
321
  /**
314
- * Typography
322
+ * Breakpoints & Media Queries
315
323
  */
316
324
  /**
317
- * Breakpoints & Media Queries
325
+ * Typography
318
326
  */
319
327
  /**
320
328
  * Converts a hex value into the rgb equivalent.
@@ -378,26 +386,51 @@
378
386
  flex: 1;
379
387
  flex-direction: column;
380
388
  }
389
+ .media-editor-modal .media-editor .interface-interface-skeleton.interface-interface-skeleton {
390
+ top: auto;
391
+ }
381
392
  .media-editor .interface-interface-skeleton__editor {
382
393
  min-width: 0;
383
394
  flex: 1;
384
395
  }
385
- .media-editor .media-editor__canvas {
396
+ .media-editor .media-editor__content {
397
+ display: flex;
398
+ flex: 1;
399
+ flex-direction: column;
400
+ min-height: 0;
401
+ margin: 0 24px;
402
+ border-radius: 8px;
403
+ overflow: hidden;
404
+ }
405
+ .media-editor .media-editor__canvas-toolbar {
406
+ display: flex;
407
+ flex-shrink: 0;
408
+ justify-content: center;
409
+ background: #e0e0e0;
410
+ padding: 8px 16px;
411
+ }
412
+ .media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation {
413
+ flex: 0 1 360px;
414
+ min-width: 0;
415
+ }
416
+ .media-editor .media-editor__canvas-area {
386
417
  display: flex;
387
418
  align-items: center;
388
419
  justify-content: center;
389
- background: #f0f0f0;
420
+ background: #e0e0e0;
390
421
  overflow: auto;
391
- height: 100%;
422
+ flex: 1;
423
+ min-height: 0;
392
424
  }
393
- .media-editor .media-editor__canvas .media-editor-preview {
425
+ .media-editor .media-editor__canvas-area .media-editor-preview {
394
426
  height: 100%;
395
427
  }
396
- .media-editor .media-editor__canvas img,
397
- .media-editor .media-editor__canvas video {
428
+ .media-editor .media-editor__canvas-area img,
429
+ .media-editor .media-editor__canvas-area video {
398
430
  max-width: 100%;
399
431
  max-height: 100%;
400
- object-fit: contain;
432
+ -o-object-fit: contain;
433
+ object-fit: contain;
401
434
  }
402
435
  .media-editor .media-editor__sidebar {
403
436
  box-sizing: border-box;
@@ -407,21 +440,64 @@
407
440
  .media-editor .media-editor__sidebar *::after {
408
441
  box-sizing: inherit;
409
442
  }
443
+ @media (min-width: 600px) {
444
+ .media-editor .media-editor__sidebar {
445
+ padding-left: 1px;
446
+ }
447
+ }
448
+ .media-editor .media-editor__sidebar-panel {
449
+ padding-bottom: 24px;
450
+ }
451
+ .media-editor .interface-interface-skeleton__sidebar {
452
+ border-top: 0;
453
+ box-shadow: none;
454
+ outline: 1px solid transparent;
455
+ }
410
456
  .media-editor .media-editor__panel {
411
457
  padding: 16px;
412
458
  }
459
+ @media (min-width: 600px) {
460
+ .media-editor .media-editor__panel {
461
+ padding: 16px 24px 0 0;
462
+ }
463
+ }
413
464
  .media-editor .components-panel__header.media-editor__sidebar-header {
414
465
  padding-left: 0;
415
466
  padding-right: 8px;
467
+ margin-right: 24px;
468
+ margin-right: 0;
469
+ }
470
+ @media (min-width: 600px) {
471
+ .media-editor .components-panel__header.media-editor__sidebar-header {
472
+ margin-right: 24px;
473
+ }
416
474
  }
417
475
  .media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon {
418
476
  padding: 0;
419
477
  }
420
- @media (min-width: 782px) {
478
+ @media (min-width: 600px) {
421
479
  .media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon {
422
480
  display: flex;
423
481
  }
424
482
  }
483
+ @media (min-width: 600px) and (max-width: 781px) {
484
+ .media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill) {
485
+ position: relative !important;
486
+ }
487
+ .media-editor .interface-complementary-area__fill,
488
+ .media-editor .interface-complementary-area {
489
+ width: 280px !important;
490
+ }
491
+ }
492
+ @media (max-width: 599px) {
493
+ .media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill) {
494
+ width: 100%;
495
+ }
496
+ .media-editor .interface-complementary-area__fill,
497
+ .media-editor .interface-complementary-area {
498
+ width: 100% !important;
499
+ }
500
+ }
425
501
 
426
502
  .media-editor__snackbar {
427
503
  position: fixed;
@@ -438,6 +514,10 @@
438
514
  margin-inline: auto;
439
515
  }
440
516
 
517
+ .media-editor-form .dataforms-layouts-panel__field-control {
518
+ text-wrap: pretty;
519
+ }
520
+
441
521
  .media-editor-modal.components-modal__frame .components-modal__content {
442
522
  padding: 0;
443
523
  margin-bottom: 0;
@@ -457,38 +537,21 @@
457
537
  flex-shrink: 0;
458
538
  display: flex;
459
539
  gap: 16px;
460
- padding: 8px 24px;
461
- border-top: 1px solid #ddd;
540
+ padding: 16px 32px 24px;
462
541
  background: #fff;
542
+ z-index: 1000001;
463
543
  }
464
544
  .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide {
465
545
  flex-direction: row;
466
546
  align-items: center;
467
547
  }
468
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor-modal__footer-toolbar {
469
- flex: 1 1 0;
470
- min-width: 0;
471
- display: flex;
472
- align-items: center;
473
- justify-content: center;
474
- gap: 8px;
475
- }
476
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor-fine-rotation {
477
- flex: 1 1 280px;
478
- min-width: 0;
479
- max-width: 360px;
480
- }
481
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor-transform-controls {
482
- border-left: 1px solid #ddd;
483
- padding-left: 12px;
484
- }
485
548
  .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor__footer-actions {
486
549
  margin-left: auto;
487
550
  }
488
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-medium, .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow {
551
+ .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow {
489
552
  flex-direction: column;
490
553
  }
491
- .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow > .media-editor-transform-controls {
554
+ .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow > .media-editor-image-controls {
492
555
  align-self: center;
493
556
  }
494
557
 
@@ -498,11 +561,15 @@
498
561
  align-items: center;
499
562
  gap: 16px;
500
563
  }
501
- .media-editor-modal__footer-row .media-editor-transform-controls,
564
+ .media-editor-modal__footer-row .media-editor-image-controls,
502
565
  .media-editor-modal__footer-row .media-editor__footer-actions {
503
566
  margin-left: auto;
504
567
  }
505
568
 
569
+ .media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]) {
570
+ color: var(--wp-admin-theme-color);
571
+ }
572
+
506
573
  .media-editor-modal {
507
574
  display: flex;
508
575
  flex-direction: column;
@@ -531,13 +598,77 @@
531
598
  width: 100%;
532
599
  height: 100%;
533
600
  }
601
+ .media-editor-canvas__cropper {
602
+ width: 100%;
603
+ height: 100%;
604
+ opacity: 0;
605
+ pointer-events: none;
606
+ }
607
+ .media-editor-canvas__cropper.is-loaded {
608
+ opacity: 1;
609
+ pointer-events: auto;
610
+ }
611
+ @keyframes __wp-base-styles-fade-in {
612
+ from {
613
+ opacity: 0;
614
+ }
615
+ to {
616
+ opacity: 1;
617
+ }
618
+ }
619
+ @media not (prefers-reduced-motion) {
620
+ .media-editor-canvas__cropper.is-loaded {
621
+ animation: __wp-base-styles-fade-in 0.2s linear 0s;
622
+ animation-fill-mode: forwards;
623
+ }
624
+ }
625
+ .media-editor-canvas__spinner {
626
+ position: absolute;
627
+ top: 50%;
628
+ left: 50%;
629
+ transform: translate(-50%, -50%);
630
+ }
631
+ .media-editor-canvas__error {
632
+ display: flex;
633
+ align-items: center;
634
+ justify-content: center;
635
+ width: 100%;
636
+ height: 100%;
637
+ color: #757575;
638
+ text-align: center;
639
+ }
534
640
 
535
- .media-editor-transform-controls {
641
+ .media-editor-image-controls {
536
642
  display: flex;
537
643
  flex-wrap: nowrap;
538
644
  align-items: center;
539
645
  gap: 8px;
540
646
  }
647
+ .media-editor-image-controls.is-stacked {
648
+ flex-direction: column;
649
+ align-items: flex-start;
650
+ gap: 24px;
651
+ }
652
+ .media-editor-image-controls__transforms {
653
+ display: flex;
654
+ gap: 48px;
655
+ }
656
+ .media-editor-image-controls__group {
657
+ display: flex;
658
+ flex-direction: column;
659
+ gap: 4px;
660
+ }
661
+ .media-editor-image-controls__label {
662
+ font-size: 11px;
663
+ font-weight: 500;
664
+ line-height: 1.4;
665
+ text-transform: uppercase;
666
+ }
667
+ .media-editor-image-controls__buttons {
668
+ display: flex;
669
+ gap: 8px;
670
+ padding-inline: 2px 0;
671
+ }
541
672
 
542
673
  .media-editor-keyboard-shortcuts-modal {
543
674
  min-width: 280px;
@@ -591,6 +722,7 @@
591
722
  color: #1e1e1e;
592
723
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
593
724
  -webkit-user-select: none;
725
+ -moz-user-select: none;
594
726
  user-select: none;
595
727
  touch-action: none;
596
728
  cursor: ew-resize;
@@ -641,6 +773,7 @@
641
773
 
642
774
  .rotation-ruler__ticks {
643
775
  position: absolute;
776
+ /*rtl:ignore*/
644
777
  left: 50%;
645
778
  top: 0;
646
779
  display: block;
@@ -688,7 +821,7 @@
688
821
  width: 60px;
689
822
  height: 100%;
690
823
  transform: translateX(-50%);
691
- background: linear-gradient(to right, transparent 0, #fff 12px, #fff calc(100% - 12px), transparent 100%);
824
+ background: linear-gradient(to right, transparent 0, #e0e0e0 12px, #e0e0e0 calc(100% - 12px), transparent 100%);
692
825
  }
693
826
 
694
827
  .rotation-ruler__active-label-number {
@@ -10,15 +10,14 @@ export interface MediaEditorFrameProps {
10
10
  footerActions: ReactNode;
11
11
  /**
12
12
  * Footer layout selector. Frames apply this to the footer container
13
- * as a modifier class.
13
+ * as a modifier class. Tracks the sidebar-collapse breakpoint (`medium`).
14
14
  *
15
- * - `wide` — single row: History | Ruler | Transform | Cancel/Save.
16
- * - `medium` — two rows: ruler on top; History | Transform | Cancel/Save
17
- * beneath.
18
- * - `narrow` — three rows: ruler; transform (centered); History |
19
- * Cancel/Save.
15
+ * - `wide` — sidebar is a column; footer is a single row of History |
16
+ * Cancel/Save (transform controls live in the Crop panel).
17
+ * - `narrow` — sidebar collapsed; transform controls sit above a
18
+ * History | Cancel/Save row.
20
19
  */
21
- footerLayout: 'wide' | 'medium' | 'narrow';
20
+ footerLayout: 'wide' | 'narrow';
22
21
  onRequestClose: () => void;
23
22
  onKeyDown: (event: ReactKeyboardEvent<HTMLElement>) => void;
24
23
  shouldCloseOnClickOutside: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor/index.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAQlD,OAAO,KAAK,EAAE,aAAa,IAAI,kBAAkB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAUtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,OAAO,EAGN,KAAK,qBAAqB,EAC1B,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAiBrE,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,EAAE,SAAS,CAAC;IACzB,aAAa,EAAE,SAAS,CAAC;IACzB;;;;;;;;;OASG;IACH,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC3C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,EAAE,CAAE,KAAK,EAAE,kBAAkB,CAAE,WAAW,CAAE,KAAM,IAAI,CAAC;IAChE,yBAAyB,EAAE,OAAO,CAAC;IACnC,QAAQ,EAAE,O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EAAE,MAAM,IAAI,CAAC;CAC1B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,EAC1C,YAAY,EACZ,iBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,EAAE,sBAAsB,sCAoExB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-canvas/index.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,sBAAsB;IACtC,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,EAC1C,YAAY,EACZ,iBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,EAAE,sBAAsB,sCAkIxB"}
@@ -8,19 +8,24 @@ export interface MediaEditorCropPanelProps {
8
8
  aspectRatioValue: string;
9
9
  /** Setter for the aspect-ratio preset value. */
10
10
  onAspectRatioChange: (value: string) => void;
11
- /** Signal that a placement-oriented control is being adjusted. */
12
- onPlacementControlInteraction?: () => void;
13
11
  /** Aspect-ratio presets to display in the selector. */
14
12
  aspectRatioOptions: AspectRatioPreset[];
13
+ /**
14
+ * When `true`, render the rotate/flip/zoom image controls at the top of
15
+ * the panel. Used on wide viewports where the footer no longer carries
16
+ * them.
17
+ */
18
+ showTransformControls?: boolean;
15
19
  }
16
20
  /**
17
- * Sidebar panel for crop-shape controls. The tactile verbs (rotate, flip)
18
- * live in the bottom toolbar instead.
21
+ * Sidebar panel for crop controls. Renders the aspect-ratio selector, plus the
22
+ * rotate/flip and zoom controls on wide viewports (these move to the footer
23
+ * toolbar when the sidebar collapses).
19
24
  * @param props
20
25
  * @param props.aspectRatioValue
21
26
  * @param props.onAspectRatioChange
22
- * @param props.onPlacementControlInteraction
23
27
  * @param props.aspectRatioOptions
28
+ * @param props.showTransformControls
24
29
  */
25
- export default function MediaEditorCropPanel({ aspectRatioValue, onAspectRatioChange, onPlacementControlInteraction, aspectRatioOptions }: MediaEditorCropPanelProps): import("react").JSX.Element;
30
+ export default function MediaEditorCropPanel({ aspectRatioValue, onAspectRatioChange, aspectRatioOptions, showTransformControls }: MediaEditorCropPanelProps): import("react").JSX.Element;
26
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-crop-panel/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAa3E,MAAM,WAAW,yBAAyB;IACzC;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,mBAAmB,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IAC/C,kEAAkE;IAClE,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3C,uDAAuD;IACvD,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACxC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAE,EAC7C,gBAAgB,EAChB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,EAAE,yBAAyB,+BA6D3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-crop-panel/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,MAAM,WAAW,yBAAyB;IACzC;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,mBAAmB,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IAC/C,uDAAuD;IACvD,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAE,EAC7C,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,qBAA6B,EAC7B,EAAE,yBAAyB,+BA0B3B"}
@@ -3,9 +3,10 @@ export interface MediaEditorFineRotationProps {
3
3
  onPlacementControlInteraction?: () => void;
4
4
  }
5
5
  /**
6
- * Fine-rotation slider for the media-editor footer. Lives separately from
7
- * the snap-rotate / flip buttons so the footer can place the two halves on
8
- * different rows at intermediate viewport widths.
6
+ * Fine-rotation slider for the media editor. It renders under the canvas so it
7
+ * stays constrained to the canvas column at all viewport sizes. Lives
8
+ * separately from the snap-rotate / flip buttons so the two can be placed
9
+ * independently per viewport.
9
10
  *
10
11
  * @param props
11
12
  * @param props.onPlacementControlInteraction
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-fine-rotation/index.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,4BAA4B;IAC5C,kEAAkE;IAClE,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3C;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAE,EAChD,6BAA6B,EAC7B,EAAE,4BAA4B,+BA6C9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-fine-rotation/index.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,4BAA4B;IAC5C,kEAAkE;IAClE,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3C;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAE,EAChD,6BAA6B,EAC7B,EAAE,4BAA4B,+BA6C9B"}
@@ -0,0 +1,46 @@
1
+ import { type AspectRatioPreset } from '../../image-editor/core/constants';
2
+ /**
3
+ * Default zoom factor per +/- click. Zooming is geometric, so a fixed
4
+ * multiplier — rather than an additive step — makes each click feel like the
5
+ * same amount of zoom at any level (an additive `+0.1` is a 10% jump at 1× but
6
+ * a ~1% nudge at 10×). `1.2` is ~+20% per click. Overridable via the
7
+ * `zoomFactor` prop.
8
+ */
9
+ export declare const DEFAULT_ZOOM_FACTOR = 1.2;
10
+ export interface MediaEditorImageControlsProps {
11
+ /**
12
+ * When `true`, render rotate, flip and zoom as labelled groups — the Crop
13
+ * panel layout used on wide viewports. When `false` (default), render a
14
+ * single flat row of icon buttons — the footer layout used at narrower
15
+ * widths.
16
+ */
17
+ withLabels?: boolean;
18
+ /**
19
+ * When `true`, include an aspect-ratio dropdown in the flat toolbar.
20
+ * Omitted from the labelled panel layout because the Crop panel already
21
+ * renders the full aspect-ratio select control.
22
+ */
23
+ showAspectRatioControl?: boolean;
24
+ /** Optional caller-supplied aspect-ratio presets. */
25
+ aspectRatioPresets?: AspectRatioPreset[];
26
+ /**
27
+ * Multiplier applied to the zoom per +/- click — zoom in multiplies by it,
28
+ * zoom out divides by it. Must be greater than 1. Defaults to
29
+ * `DEFAULT_ZOOM_FACTOR` (1.2).
30
+ */
31
+ zoomFactor?: number;
32
+ }
33
+ /**
34
+ * Image editing controls placed independently per viewport: on wide viewports
35
+ * rotate/flip/zoom render inside the Crop panel (`withLabels`), and at narrower
36
+ * widths they fall back into the footer toolbar (flat row), where the
37
+ * aspect-ratio dropdown can also be shown.
38
+ *
39
+ * @param props
40
+ * @param props.withLabels
41
+ * @param props.showAspectRatioControl
42
+ * @param props.aspectRatioPresets
43
+ * @param props.zoomFactor
44
+ */
45
+ export default function MediaEditorImageControls({ withLabels, showAspectRatioControl, aspectRatioPresets, zoomFactor }: MediaEditorImageControlsProps): import("react").JSX.Element;
46
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-editor-image-controls/index.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAEN,KAAK,iBAAiB,EACtB,MAAM,mCAAmC,CAAC;AAI3C;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,MAAM,WAAW,6BAA6B;IAC7C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,qDAAqD;IACrD,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAE,EACjD,UAAkB,EAClB,sBAA8B,EAC9B,kBAAkB,EAClB,UAAgC,EAChC,EAAE,6BAA6B,+BAmL/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-form/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAS,MAAM,sBAAsB,CAAC;AAKxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAE,EAClC,IAAI,EAAE,aAAa,EACnB,MAAM,EACN,EAAE,cAAc,+BAiEhB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media-form/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAS,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAE,EAClC,IAAI,EAAE,aAAa,EACnB,MAAM,EACN,EAAE,cAAc,+BA+DhB"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Internal dependencies
3
3
  */
4
- import type { CropperState, NormalizedPoint, Size, Camera } from './types';
4
+ import type { CropperState, NormalizedPoint, NormalizedRect, Size, Camera } from './types';
5
5
  /**
6
6
  * Compute the axis-aligned bounding box of a rectangle after rotation.
7
7
  *
@@ -28,6 +28,30 @@ export declare function getImageFit(containerSize: Size, imageSize: Size, rotati
28
28
  elementSize: Size;
29
29
  visualSize: Size;
30
30
  };
31
+ /**
32
+ * Resolve the presentational view magnification that makes the crop fill the
33
+ * canvas.
34
+ *
35
+ * The crop overlay is laid out as `cropRect * visualSize` (the contain-fit
36
+ * footprint, with no zoom), so its on-screen size is capped by that footprint.
37
+ * When a crop's aspect differs from the image's, it can be much smaller than
38
+ * the canvas could show (e.g. a square crop in a tall image is bound by the
39
+ * footprint's narrow axis). Scaling `elementSize` and `visualSize` together by
40
+ * the returned factor uniformly magnifies the whole scene — image, crop
41
+ * overlay, and overlays — so the crop reaches `targetFill` of its constraining
42
+ * canvas axis, with the image bleeding past the canvas (clipped by the host).
43
+ *
44
+ * Purely presentational: it does not touch `zoom`/`pan`/`cropRect`/`rotation`,
45
+ * so the framed source region — and therefore the export — is unchanged.
46
+ *
47
+ * @param cropRect The crop rectangle, normalized to the footprint.
48
+ * @param canvasSize The canvas size in pixels.
49
+ * @param visualSize The contain-fit (rotated) image footprint in pixels.
50
+ * @param targetFill Fraction of the constraining canvas axis to fill (0–1].
51
+ * @param maxScale Upper bound on the magnification.
52
+ * @return A magnification factor in [1, maxScale]; 1 when none is needed.
53
+ */
54
+ export declare function getViewScale(cropRect: NormalizedRect, canvasSize: Size, visualSize: Size, targetFill: number, maxScale: number): number;
31
55
  /**
32
56
  * Compose a camera matrix from cropper state, container, and image dimensions.
33
57
  *
@@ -1 +1 @@
1
- {"version":3,"file":"camera.d.ts","sourceRoot":"","sources":["../../../src/image-editor/core/camera.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAc3E;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACd,IAAI,CAqBN;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAC1B,aAAa,EAAE,IAAI,EACnB,SAAS,EAAE,IAAI,EACf,QAAQ,EAAE,MAAM,GACd;IAAE,WAAW,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,IAAI,CAAA;CAAE,CAqCzC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAC3B,KAAK,EAAE,YAAY,EACnB,aAAa,EAAE,IAAI,EACnB,SAAS,EAAE,IAAI,GACb,MAAM,CAgFR;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC5B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,eAAe,GACpB;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAI1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC5B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7B,eAAe,CAKjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAA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AM,CAAA;CAAE,CAI1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC5B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7B,eAAe,CAKjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAsCD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAE,MAAM,EAAE,MAAM,GAAI,YAAY,CAO/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,IAAI,EACf,UAAU,EAAE,IAAI,GACd,MAAM,CA2CR"}
@@ -21,7 +21,36 @@ export declare const MAX_ZOOM = 10;
21
21
  * enough to allow tight crops (favicons, icons). Adjust here to tune the
22
22
  * floor globally.
23
23
  */
24
- export declare const MIN_CROP_PIXELS = 24;
24
+ export declare const MIN_CROP_PIXELS = 16;
25
+ /**
26
+ * Minimum on-screen crop rect dimension in CSS pixels. The source-pixel
27
+ * floor (`MIN_CROP_PIXELS`) keeps crops from going sub-pixel, but on a large
28
+ * image fit into a small canvas it can render only a few CSS pixels wide —
29
+ * too small to grab the resize handles. This floor keeps the crop operable
30
+ * regardless of display scale; it binds when zoomed out and yields to the
31
+ * source-pixel floor once the image is shown large enough. Sized to one
32
+ * handle touch target (`$handle-touch-target-size` in `cropper.scss`).
33
+ */
34
+ export declare const MIN_CROP_SCREEN_PX = 44;
35
+ /**
36
+ * Fraction of the constraining canvas axis the settled crop should occupy on
37
+ * screen. When a crop is shown smaller than this (e.g. a square crop in a tall
38
+ * image, capped by the contain-fit footprint's narrow axis), the view magnifies
39
+ * to fill the canvas. `1` = always fill the canvas; lower = rescue only the
40
+ * under-filled cases. See `getViewScale`.
41
+ */
42
+ export declare const SETTLE_TARGET_CANVAS_FILL = 0.8;
43
+ /**
44
+ * Upper bound on the presentational view magnification (`getViewScale`).
45
+ * Prevents a near-degenerate crop from magnifying the scene without limit.
46
+ */
47
+ export declare const MAX_VIEW_SCALE = 8;
48
+ /**
49
+ * CSS pixels per source pixel required before resize handles snap the selected
50
+ * source region to whole-pixel edges. Below 1:1, a source pixel is sub-pixel on
51
+ * screen, so snapping would feel notchy without a visible pixel boundary.
52
+ */
53
+ export declare const PIXEL_SNAP_DISPLAY_SCALE = 1;
25
54
  /**
26
55
  * Wheel zoom sensitivity. A deltaY of 100 changes zoom by 0.25.
27
56
  * This could be made configurable as a prop to the Cropper component.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/image-editor/core/constants.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,SAAS,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,QAAQ,KAAK,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,wBAAwB,SAAS,CAAC;AAE/C,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,8DAA8D;AAC9D,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAmBtC,eAAO,MAAM,aAAa,EAAE,YAU3B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,EAUpD,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/image-editor/core/constants.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAwB,YAAY,EAAE,MAAM,SAAS,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,QAAQ,KAAK,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,SAAS,CAAC;AAE/C,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,8DAA8D;AAC9D,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAmBtC,eAAO,MAAM,aAAa,EAAE,YAU3B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,EAUpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interaction-contro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AiB,CAAE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,GAAI,IAAI,CA4F1D;IAED;;;;;;;;;OASG;IACH,WAAW,CAAE,CAAC,EAAE,UAAU,GAAI,IAAI,CA0DjC;IAED;;;;;;;;;;;;;OAaG;IACH,gBAAgB,CACf,CAAC,EAAE,UAAU,EACb,aAAa,EAAE,OAAO,EACtB,GAAG,GAAE,QAAmB,GACtB,IAAI,CA6FN;IAOD,OAAO,CAAC,eAAe,CAkJrB;IAQF,OAAO,CAAC,YAAY;IAkFpB;;;;;;OAMG;IACH,aAAa,CAAE,CAAC,EAAE,aAAa,GAAI,IAAI,CAwHtC;IAED;;;;;OAKG;IACH,OAAO,IAAI,IAAI,CAWd;CACD"}
1
+ {"version":3,"file":"interaction-controller.d.ts","sourceRoot":"","sources":["../../../src/image-editor/core/interaction-controller.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AA6CnE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,uDAAuD;IACvD,UAAU,EAAE,OAAO,CAAC;IACpB,0DAA0D;IAC1D,SAAS,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC,0DAA0D;IAC1D,MAAM,EAAE,CAAE,GAAG,EAAE,eAAe,KAAM,IAAI,CAAC;IACzC;;;;OAIG;IACH,OAAO,EAAE,CAAE,IAAI,EAAE,MAAM,KAAM,IAAI,CAAC;IAClC,sDAAsD;IACtD,cAAc,EAAE,CAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,KAAM,IAAI,CAAC;IAC/D,iCAAiC;IACjC,YAAY,EAAE,CAAE,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,KAAM,IAAI,CAAC;IAC5C,qCAAqC;IACrC,UAAU,CAAC,EAAE,CAAE,SAAS,EAAE,YAAY,GAAG,UAAU,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