labellife-design-tool 2.3.9 → 2.4.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/dist/esm/index.js CHANGED
@@ -10555,15 +10555,6 @@ var CropEditor = observer(function (_ref) {
10555
10555
  y: node.y()
10556
10556
  });
10557
10557
  };
10558
- var handleRectDragEnd = function handleRectDragEnd(e) {
10559
- var node = e.target;
10560
- element.setCropRectAndClamp({
10561
- x: node.x(),
10562
- y: node.y(),
10563
- width: rect.width,
10564
- height: rect.height
10565
- });
10566
- };
10567
10558
 
10568
10559
  // Shared by both the live (onTransform) and final (onTransformEnd) handlers: reads the
10569
10560
  // Konva node's current scale, bakes it into width/height, resets the node's scale back to
@@ -10649,8 +10640,7 @@ var CropEditor = observer(function (_ref) {
10649
10640
  height: rect.height,
10650
10641
  stroke: "#ffffff",
10651
10642
  strokeWidth: 1.5,
10652
- draggable: true,
10653
- onDragEnd: handleRectDragEnd,
10643
+ listening: false,
10654
10644
  onTransform: handleRectTransform,
10655
10645
  onTransformEnd: handleRectTransformEnd
10656
10646
  }), /*#__PURE__*/jsx(Transformer, {