@sequent-org/moodboard 1.4.48 → 1.4.51
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/package.json +1 -1
- package/src/core/commands/ApplyCropCommand.js +90 -0
- package/src/core/commands/UpdateFramePropertiesCommand.js +9 -2
- package/src/core/events/Events.js +2 -0
- package/src/core/flows/ClipboardFlow.js +13 -0
- package/src/core/flows/ObjectLifecycleFlow.js +25 -6
- package/src/moodboard/bootstrap/MoodBoardUiFactory.js +1 -1
- package/src/objects/FrameObject.js +90 -8
- package/src/objects/ImageObject.js +25 -4
- package/src/services/CropController.js +242 -0
- package/src/services/FrameService.js +32 -0
- package/src/tools/manager/ToolManagerLifecycle.js +4 -0
- package/src/tools/object-tools/DrawingTool.js +1 -0
- package/src/tools/object-tools/selection/TransformInteractionController.js +50 -0
- package/src/ui/CropOverlay.js +654 -0
- package/src/ui/FramePropertiesPanel.js +1061 -407
- package/src/ui/HtmlHandlesLayer.js +2 -0
- package/src/ui/ImagePropertiesPanel.js +1509 -4
- package/src/ui/comments/CommentThreadPopover.js +68 -0
- package/src/ui/connectors/ConnectionAnchorsLayer.js +12 -1
- package/src/ui/handles/HandlesDomRenderer.js +9 -2
- package/src/ui/handles/HandlesEventBridge.js +1 -0
- package/src/ui/styles/panels.css +750 -28
- package/src/ui/styles/workspace.css +21 -1
- package/src/utils/applyCrop.js +92 -0
- package/src/utils/applyRoundedMask.js +39 -0
|
@@ -27,6 +27,7 @@ export class HtmlHandlesLayer {
|
|
|
27
27
|
this.handles = {};
|
|
28
28
|
this._drag = null;
|
|
29
29
|
this._handlesSuppressed = false; // скрывать ручки во время перетаскивания/трансформаций
|
|
30
|
+
this._cropMode = false; // полное подавление во время crop (ни рамка, ни ручки)
|
|
30
31
|
this._groupRotationPreview = null;
|
|
31
32
|
|
|
32
33
|
// Ссылки на обработчики, чтобы корректно отписаться при destroy()
|
|
@@ -96,6 +97,7 @@ export class HtmlHandlesLayer {
|
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
update() {
|
|
100
|
+
if (this._cropMode) return;
|
|
99
101
|
// Дополнительная защита: если слой или core уже уничтожены,
|
|
100
102
|
// выходим, чтобы не получить ошибок при resize/смене DPR
|
|
101
103
|
if (!this.core || !this.core.pixi || !this.core.pixi.app || !this.layer) return;
|