react-design-editor 0.0.46 → 0.0.47

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.
@@ -195599,6 +195599,8 @@ var Svg = fabric["fabric"].util.createClass(fabric["fabric"].Group, {
195599
195599
  }
195600
195600
  });
195601
195601
  } else {
195602
+ var _this$_objects;
195603
+
195602
195604
  createdObj.set({
195603
195605
  originX: 'center',
195604
195606
  originY: 'center'
@@ -195614,10 +195616,13 @@ var Svg = fabric["fabric"].util.createClass(fabric["fabric"].Group, {
195614
195616
  createdObj.set({
195615
195617
  stroke: options.stroke
195616
195618
  });
195617
- } // if (this._objects?.length) {
195618
- // (this as FabricGroup)._objects.forEach(obj => this.remove(obj));
195619
- // }
195619
+ }
195620
195620
 
195621
+ if ((_this$_objects = this._objects) !== null && _this$_objects !== void 0 && _this$_objects.length) {
195622
+ this._objects.forEach(function (obj) {
195623
+ return _this.remove(obj);
195624
+ });
195625
+ }
195621
195626
 
195622
195627
  this.add(createdObj);
195623
195628
  }