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

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.
@@ -949,7 +949,7 @@
949
949
  this.mode = getMode(el);
950
950
  this.dragResizeHelper.updateShadowEl(el);
951
951
  this.dragResizeHelper.setMode(this.mode);
952
- const elementGuidelines = Array.prototype.slice.call(this.target?.parentElement?.children) || [];
952
+ const elementGuidelines = Array.from(this.target?.parentElement?.children || []);
953
953
  this.setElementGuidelines([this.target], elementGuidelines);
954
954
  return this.getOptions(false, {
955
955
  target: this.dragResizeHelper.getShadowEl()
@@ -1218,7 +1218,7 @@
1218
1218
  this.mode = getMode(els[0]);
1219
1219
  this.targetList = els;
1220
1220
  this.dragResizeHelper.updateGroup(els);
1221
- const elementGuidelines = Array.prototype.slice.call(this.targetList[0].parentElement?.children) || [];
1221
+ const elementGuidelines = Array.from(this.targetList[0].parentElement?.children || []);
1222
1222
  this.setElementGuidelines(this.targetList, elementGuidelines);
1223
1223
  this.moveableForMulti?.destroy();
1224
1224
  this.dragResizeHelper.clear();