@tmagic/stage 1.3.0-beta.2 → 1.3.0-beta.3

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.
@@ -952,7 +952,7 @@ class StageDragResize extends MoveableOptionsManager {
952
952
  this.mode = getMode(el);
953
953
  this.dragResizeHelper.updateShadowEl(el);
954
954
  this.dragResizeHelper.setMode(this.mode);
955
- const elementGuidelines = Array.prototype.slice.call(this.target?.parentElement?.children) || [];
955
+ const elementGuidelines = Array.from(this.target?.parentElement?.children || []);
956
956
  this.setElementGuidelines([this.target], elementGuidelines);
957
957
  return this.getOptions(false, {
958
958
  target: this.dragResizeHelper.getShadowEl()
@@ -1221,7 +1221,7 @@ class StageMultiDragResize extends MoveableOptionsManager {
1221
1221
  this.mode = getMode(els[0]);
1222
1222
  this.targetList = els;
1223
1223
  this.dragResizeHelper.updateGroup(els);
1224
- const elementGuidelines = Array.prototype.slice.call(this.targetList[0].parentElement?.children) || [];
1224
+ const elementGuidelines = Array.from(this.targetList[0].parentElement?.children || []);
1225
1225
  this.setElementGuidelines(this.targetList, elementGuidelines);
1226
1226
  this.moveableForMulti?.destroy();
1227
1227
  this.dragResizeHelper.clear();