@tmagic/stage 1.2.0-beta.2 → 1.2.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.
@@ -633,7 +633,7 @@ class StageDragResize extends EventEmitter {
633
633
  resizable: true,
634
634
  scalable: false,
635
635
  rotatable: false,
636
- snappable: isAbsolute || isFixed,
636
+ snappable: true,
637
637
  snapGap: isAbsolute || isFixed,
638
638
  snapThreshold: 5,
639
639
  snapDigit: 0,
@@ -1537,6 +1537,7 @@ class StageCore extends EventEmitter {
1537
1537
  this.selectedDomList.push(el);
1538
1538
  }
1539
1539
  this.multiSelect(this.selectedDomList);
1540
+ this.emit("multiSelect", this.selectedDomList);
1540
1541
  });
1541
1542
  this.dr.on("update", (data) => {
1542
1543
  setTimeout(() => this.emit("update", data));
@@ -1611,9 +1612,8 @@ class StageCore extends EventEmitter {
1611
1612
  }
1612
1613
  async multiSelect(idOrElList) {
1613
1614
  this.clearSelectStatus("select");
1614
- const elList = await Promise.all(idOrElList.map(async (idOrEl) => await this.getTargetElement(idOrEl)));
1615
- this.multiDr.multiSelect(elList);
1616
- this.emit("multiSelect", elList);
1615
+ this.selectedDomList = await Promise.all(idOrElList.map(async (idOrEl) => await this.getTargetElement(idOrEl)));
1616
+ this.multiDr.multiSelect(this.selectedDomList);
1617
1617
  }
1618
1618
  update(data) {
1619
1619
  const { config } = data;