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