@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.
@@ -639,7 +639,7 @@
639
639
  resizable: true,
640
640
  scalable: false,
641
641
  rotatable: false,
642
- snappable: isAbsolute || isFixed,
642
+ snappable: true,
643
643
  snapGap: isAbsolute || isFixed,
644
644
  snapThreshold: 5,
645
645
  snapDigit: 0,
@@ -1543,6 +1543,7 @@
1543
1543
  this.selectedDomList.push(el);
1544
1544
  }
1545
1545
  this.multiSelect(this.selectedDomList);
1546
+ this.emit("multiSelect", this.selectedDomList);
1546
1547
  });
1547
1548
  this.dr.on("update", (data) => {
1548
1549
  setTimeout(() => this.emit("update", data));
@@ -1617,9 +1618,8 @@
1617
1618
  }
1618
1619
  async multiSelect(idOrElList) {
1619
1620
  this.clearSelectStatus("select");
1620
- const elList = await Promise.all(idOrElList.map(async (idOrEl) => await this.getTargetElement(idOrEl)));
1621
- this.multiDr.multiSelect(elList);
1622
- this.emit("multiSelect", elList);
1621
+ this.selectedDomList = await Promise.all(idOrElList.map(async (idOrEl) => await this.getTargetElement(idOrEl)));
1622
+ this.multiDr.multiSelect(this.selectedDomList);
1623
1623
  }
1624
1624
  update(data) {
1625
1625
  const { config } = data;