@8btc/whiteboard 0.0.20-alpha.12 → 0.0.20-alpha.13
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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17930,7 +17930,7 @@ class CC extends Qn {
|
|
|
17930
17930
|
P(this, mn, () => {
|
|
17931
17931
|
this.htmlElement.style.display = this.config.visible === !1 ? "none" : "block";
|
|
17932
17932
|
const t = this.element.getClientRect();
|
|
17933
|
-
this.htmlElement.style.left = `${t.x}px`, this.htmlElement.style.top = `${t.y}px`, this.config.lockX ? this.htmlEditorElement.style.width = `${t.width / this.config.htmlScale / this.core.getState().viewport.scale}px` : this.htmlEditorElement.style.width = "auto", this.htmlEditorElement.style.transform = `scale(${this.config.htmlScale})`;
|
|
17933
|
+
this.htmlElement.style.left = `${t.x}px`, this.htmlElement.style.top = `${t.y}px`, this.config.lockX ? this.htmlEditorElement.style.width = `${t.width / this.config.htmlScale * this.config.scaleWhenCreate / this.core.getState().viewport.scale}px` : this.htmlEditorElement.style.width = "auto", this.htmlEditorElement.style.transform = `scale(${this.config.htmlScale})`;
|
|
17934
17934
|
});
|
|
17935
17935
|
P(this, Es, () => {
|
|
17936
17936
|
this.resizeObserver = new ResizeObserver((t) => {
|
|
@@ -18597,7 +18597,7 @@ class MC extends yy {
|
|
|
18597
18597
|
if (s.length === 0)
|
|
18598
18598
|
b(this, bt).clearNodes();
|
|
18599
18599
|
else {
|
|
18600
|
-
const l = this.getStage().find(`.${ie.selectable}`).filter((a) => s.includes(a.id()));
|
|
18600
|
+
const l = this.getStage().find(`.${ie.selectable}`).filter((a) => s.includes(a.id())).filter((a) => a.listening()).filter((a) => a.isVisible());
|
|
18601
18601
|
b(this, bt).setNodes(l);
|
|
18602
18602
|
}
|
|
18603
18603
|
this._updateState({ selectedNodeIds: s }, !1), this._emit("nodes:selected", s);
|