@netless/appliance-plugin 1.1.21 → 1.1.22-beta.0
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/cdn/cdn.js +1 -1
- package/cdn/{fullWorker-CCXx1D.js → fullWorker-DcOpdP.js} +1 -1
- package/cdn/{subWorker-BQlGot.js → subWorker-C7_sTp.js} +1 -1
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/fullWorker.js +1 -1
- package/dist/index-B9kYeuKl.js +1 -0
- package/dist/{index-BZCUBik5.mjs → index-CgNZ4Jek.mjs} +4 -2
- package/dist/{index-CPFLN16a.js → index-CrvwiTPc.js} +1 -1
- package/dist/{index-CPGlDbvm.mjs → index-DG58Ru9C.mjs} +245 -235
- package/dist/subWorker.js +1 -1
- package/package.json +1 -1
- package/dist/index-BdJLKyTl.js +0 -1
|
@@ -2,8 +2,8 @@ var Fn = Object.defineProperty;
|
|
|
2
2
|
var Vn = (r, i, e) => i in r ? Fn(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e;
|
|
3
3
|
var M = (r, i, e) => Vn(r, typeof i != "symbol" ? i + "" : i, e);
|
|
4
4
|
import { toJS as Xi, autorun as Es, isRoom as X, isPlayer as as, InvisiblePlugin as Oo, RoomPhase as Ro } from "white-web-sdk";
|
|
5
|
-
import { Group as
|
|
6
|
-
import { compress as
|
|
5
|
+
import { Group as He, Path as Ct, Sprite as Wo, Rect as Os, Polyline as wt, Ellipse as Qn, Label as Zn, Scene as Yo, Layer as Hn } from "spritejs";
|
|
6
|
+
import { compress as $n, decompress as Gn } from "lz-string";
|
|
7
7
|
import ut from "clipper-lib";
|
|
8
8
|
import cs from "lineclip";
|
|
9
9
|
import Ji from "eventemitter2";
|
|
@@ -14,7 +14,7 @@ import hs, { createPortal as Xn } from "react-dom";
|
|
|
14
14
|
import Xt from "react-draggable";
|
|
15
15
|
import { Resizable as Jn } from "re-resizable";
|
|
16
16
|
const TI = "/fullWorker.js", vI = "/subWorker.js";
|
|
17
|
-
var ae = /* @__PURE__ */ ((r) => (r.selector = "selector", r.clicker = "clicker", r.laserPointer = "laserPointer", r.pencil = "pencil", r.rectangle = "rectangle", r.ellipse = "ellipse", r.shape = "shape", r.eraser = "eraser", r.pencilEraser = "pencilEraser", r.text = "text", r.straight = "straight", r.arrow = "arrow", r.hand = "hand", r.laserPen = "laserPen", r))(ae || {}), ne = /* @__PURE__ */ ((r) => (r.Normal = "Normal", r.Stroke = "Stroke", r.Dotted = "Dotted", r.LongDotted = "LongDotted", r))(ne || {}), dt = /* @__PURE__ */ ((r) => (r.Triangle = "triangle", r.Rhombus = "rhombus", r.Pentagram = "pentagram", r.SpeechBalloon = "speechBalloon", r.Star = "star", r.Polygon = "polygon", r))(dt || {}), B = /* @__PURE__ */ ((r) => (r.None = "None", r.ShowFloatBar = "ShowFloatBar", r.ZIndexFloatBar = "ZIndexFloatBar", r.DeleteNode = "DeleteNode", r.CopyNode = "CopyNode", r.ZIndexActive = "ZIndexActive", r.ZIndexNode = "ZIndexNode", r.RotateNode = "RotateNode", r.SetColorNode = "SetColorNode", r.TranslateNode = "TranslateNode", r.ScaleNode = "ScaleNode", r.OriginalEvent = "OriginalEvent", r.CreateScene = "CreateScene", r.ActiveCursor = "ActiveCursor", r.MoveCursor = "MoveCursor", r.CommandEditor = "CommandEditor", r.SetEditorData = "SetEditorData", r.SetFontStyle = "SetFontStyle", r.SetPoint = "SetPoint", r.SetLock = "SetLock", r.SetShapeOpt = "SetShapeOpt", r.CameraChange = "CameraChange", r.ActiveMethod = "ActiveMethod", r.HidFloatBarBtn = "HidFloatBarBtn", r))(B || {}), re = /* @__PURE__ */ ((r) => (r.DisplayState = "DisplayState", r.MainEngine = "MainEngine", r.Cursor = "Cursor", r.BindMainView = "BindMainView", r))(re || {}), Kn = /* @__PURE__ */ ((r) => (r[r.MainView = 0] = "MainView", r[r.Plugin = 1] = "Plugin", r[r.Both = 2] = "Both", r))(Kn || {}), us = /* @__PURE__ */ ((r) => (r.longPencil = "longPencil", r))(us || {}), T = /* @__PURE__ */ ((r) => (r[r.Pencil = 1] = "Pencil", r[r.Eraser = 2] = "Eraser", r[r.PencilEraser = 3] = "PencilEraser", r[r.BitMapEraser = 4] = "BitMapEraser", r[r.Selector = 5] = "Selector", r[r.Clicker = 6] = "Clicker", r[r.Arrow = 7] = "Arrow", r[r.Hand = 8] = "Hand", r[r.LaserPen = 9] = "LaserPen", r[r.Text = 10] = "Text", r[r.Straight = 11] = "Straight", r[r.Rectangle = 12] = "Rectangle", r[r.Ellipse = 13] = "Ellipse", r[r.Star = 14] = "Star", r[r.Triangle = 15] = "Triangle", r[r.Rhombus = 16] = "Rhombus", r[r.Polygon = 17] = "Polygon", r[r.SpeechBalloon = 18] = "SpeechBalloon", r[r.Image = 19] = "Image", r))(T || {}), F = /* @__PURE__ */ ((r) => (r[r.Local = 1] = "Local", r[r.Service = 2] = "Service", r[r.Worker = 3] = "Worker", r))(F || {}), A = /* @__PURE__ */ ((r) => (r[r.Pending = 0] = "Pending", r[r.Start = 1] = "Start", r[r.Doing = 2] = "Doing", r[r.Done = 3] = "Done", r[r.Unwritable = 4] = "Unwritable", r))(A || {}), b = /* @__PURE__ */ ((r) => (r[r.None = 0] = "None", r[r.Init = 1] = "Init", r[r.UpdateCamera = 2] = "UpdateCamera", r[r.UpdateTools = 3] = "UpdateTools", r[r.CreateWork = 4] = "CreateWork", r[r.DrawWork = 5] = "DrawWork", r[r.FullWork = 6] = "FullWork", r[r.UpdateNode = 7] = "UpdateNode", r[r.RemoveNode = 8] = "RemoveNode", r[r.Clear = 9] = "Clear", r[r.Select = 10] = "Select", r[r.Destroy = 11] = "Destroy", r[r.Snapshot = 12] = "Snapshot", r[r.BoundingBox = 13] = "BoundingBox", r[r.Cursor = 14] = "Cursor", r[r.TextUpdate = 15] = "TextUpdate", r[r.GetTextActive = 16] = "GetTextActive", r[r.TasksQueue = 17] = "TasksQueue", r[r.CursorHover = 18] = "CursorHover", r[r.CursorBlur = 19] = "CursorBlur", r[r.Console = 20] = "Console", r[r.PriorityWorker = 21] = "PriorityWorker", r[r.PriorityMainThreadWorker = 22] = "PriorityMainThreadWorker", r[r.GetImageBitMap = 23] = "GetImageBitMap", r[r.AuthWriter = 24] = "AuthWriter", r[r.AuthReader = 25] = "AuthReader", r[r.AuthClear = 26] = "AuthClear", r[r.AuthPage = 27] = "AuthPage", r[r.GetVNodeInfo = 28] = "GetVNodeInfo", r[r.UpdateDpr = 29] = "UpdateDpr", r))(b || {}), Ne = /* @__PURE__ */ ((r) => (r[r.None = 0] = "None", r[r.Bg = 1] = "Bg", r[r.ServiceFloat = 2] = "ServiceFloat", r[r.Float = 3] = "Float", r[r.TopFloat = 4] = "TopFloat", r))(Ne || {}), yi = /* @__PURE__ */ ((r) => (r[r.Cursor = 1] = "Cursor", r[r.TextCreate = 2] = "TextCreate", r))(yi || {}), wi = /* @__PURE__ */ ((r) => (r[r.Top = 1] = "Top", r[r.Bottom = 2] = "Bottom", r))(wi || {}), he = /* @__PURE__ */ ((r) => (r[r.none = 1] = "none", r[r.all = 2] = "all", r[r.both = 3] = "both", r[r.proportional = 4] = "proportional", r))(he || {}), qn = /* @__PURE__ */ ((r) => (r[r.Pending = 0] = "Pending", r[r.Start = 1] = "Start", r[r.Doing = 2] = "Doing", r[r.Done = 3] = "Done", r[r.Unwritable = 4] = "Unwritable", r))(qn || {}),
|
|
17
|
+
var ae = /* @__PURE__ */ ((r) => (r.selector = "selector", r.clicker = "clicker", r.laserPointer = "laserPointer", r.pencil = "pencil", r.rectangle = "rectangle", r.ellipse = "ellipse", r.shape = "shape", r.eraser = "eraser", r.pencilEraser = "pencilEraser", r.text = "text", r.straight = "straight", r.arrow = "arrow", r.hand = "hand", r.laserPen = "laserPen", r))(ae || {}), ne = /* @__PURE__ */ ((r) => (r.Normal = "Normal", r.Stroke = "Stroke", r.Dotted = "Dotted", r.LongDotted = "LongDotted", r))(ne || {}), dt = /* @__PURE__ */ ((r) => (r.Triangle = "triangle", r.Rhombus = "rhombus", r.Pentagram = "pentagram", r.SpeechBalloon = "speechBalloon", r.Star = "star", r.Polygon = "polygon", r))(dt || {}), B = /* @__PURE__ */ ((r) => (r.None = "None", r.ShowFloatBar = "ShowFloatBar", r.ZIndexFloatBar = "ZIndexFloatBar", r.DeleteNode = "DeleteNode", r.CopyNode = "CopyNode", r.ZIndexActive = "ZIndexActive", r.ZIndexNode = "ZIndexNode", r.RotateNode = "RotateNode", r.SetColorNode = "SetColorNode", r.TranslateNode = "TranslateNode", r.ScaleNode = "ScaleNode", r.OriginalEvent = "OriginalEvent", r.CreateScene = "CreateScene", r.ActiveCursor = "ActiveCursor", r.MoveCursor = "MoveCursor", r.CommandEditor = "CommandEditor", r.SetEditorData = "SetEditorData", r.SetFontStyle = "SetFontStyle", r.SetPoint = "SetPoint", r.SetLock = "SetLock", r.SetShapeOpt = "SetShapeOpt", r.CameraChange = "CameraChange", r.ActiveMethod = "ActiveMethod", r.HidFloatBarBtn = "HidFloatBarBtn", r))(B || {}), re = /* @__PURE__ */ ((r) => (r.DisplayState = "DisplayState", r.MainEngine = "MainEngine", r.Cursor = "Cursor", r.BindMainView = "BindMainView", r))(re || {}), Kn = /* @__PURE__ */ ((r) => (r[r.MainView = 0] = "MainView", r[r.Plugin = 1] = "Plugin", r[r.Both = 2] = "Both", r))(Kn || {}), us = /* @__PURE__ */ ((r) => (r.longPencil = "longPencil", r))(us || {}), T = /* @__PURE__ */ ((r) => (r[r.Pencil = 1] = "Pencil", r[r.Eraser = 2] = "Eraser", r[r.PencilEraser = 3] = "PencilEraser", r[r.BitMapEraser = 4] = "BitMapEraser", r[r.Selector = 5] = "Selector", r[r.Clicker = 6] = "Clicker", r[r.Arrow = 7] = "Arrow", r[r.Hand = 8] = "Hand", r[r.LaserPen = 9] = "LaserPen", r[r.Text = 10] = "Text", r[r.Straight = 11] = "Straight", r[r.Rectangle = 12] = "Rectangle", r[r.Ellipse = 13] = "Ellipse", r[r.Star = 14] = "Star", r[r.Triangle = 15] = "Triangle", r[r.Rhombus = 16] = "Rhombus", r[r.Polygon = 17] = "Polygon", r[r.SpeechBalloon = 18] = "SpeechBalloon", r[r.Image = 19] = "Image", r))(T || {}), F = /* @__PURE__ */ ((r) => (r[r.Local = 1] = "Local", r[r.Service = 2] = "Service", r[r.Worker = 3] = "Worker", r))(F || {}), A = /* @__PURE__ */ ((r) => (r[r.Pending = 0] = "Pending", r[r.Start = 1] = "Start", r[r.Doing = 2] = "Doing", r[r.Done = 3] = "Done", r[r.Unwritable = 4] = "Unwritable", r))(A || {}), b = /* @__PURE__ */ ((r) => (r[r.None = 0] = "None", r[r.Init = 1] = "Init", r[r.UpdateCamera = 2] = "UpdateCamera", r[r.UpdateTools = 3] = "UpdateTools", r[r.CreateWork = 4] = "CreateWork", r[r.DrawWork = 5] = "DrawWork", r[r.FullWork = 6] = "FullWork", r[r.UpdateNode = 7] = "UpdateNode", r[r.RemoveNode = 8] = "RemoveNode", r[r.Clear = 9] = "Clear", r[r.Select = 10] = "Select", r[r.Destroy = 11] = "Destroy", r[r.Snapshot = 12] = "Snapshot", r[r.BoundingBox = 13] = "BoundingBox", r[r.Cursor = 14] = "Cursor", r[r.TextUpdate = 15] = "TextUpdate", r[r.GetTextActive = 16] = "GetTextActive", r[r.TasksQueue = 17] = "TasksQueue", r[r.CursorHover = 18] = "CursorHover", r[r.CursorBlur = 19] = "CursorBlur", r[r.Console = 20] = "Console", r[r.PriorityWorker = 21] = "PriorityWorker", r[r.PriorityMainThreadWorker = 22] = "PriorityMainThreadWorker", r[r.GetImageBitMap = 23] = "GetImageBitMap", r[r.AuthWriter = 24] = "AuthWriter", r[r.AuthReader = 25] = "AuthReader", r[r.AuthClear = 26] = "AuthClear", r[r.AuthPage = 27] = "AuthPage", r[r.GetVNodeInfo = 28] = "GetVNodeInfo", r[r.UpdateDpr = 29] = "UpdateDpr", r))(b || {}), Ne = /* @__PURE__ */ ((r) => (r[r.None = 0] = "None", r[r.Bg = 1] = "Bg", r[r.ServiceFloat = 2] = "ServiceFloat", r[r.Float = 3] = "Float", r[r.TopFloat = 4] = "TopFloat", r))(Ne || {}), yi = /* @__PURE__ */ ((r) => (r[r.Cursor = 1] = "Cursor", r[r.TextCreate = 2] = "TextCreate", r))(yi || {}), wi = /* @__PURE__ */ ((r) => (r[r.Top = 1] = "Top", r[r.Bottom = 2] = "Bottom", r))(wi || {}), he = /* @__PURE__ */ ((r) => (r[r.none = 1] = "none", r[r.all = 2] = "all", r[r.both = 3] = "both", r[r.proportional = 4] = "proportional", r))(he || {}), qn = /* @__PURE__ */ ((r) => (r[r.Pending = 0] = "Pending", r[r.Start = 1] = "Start", r[r.Doing = 2] = "Doing", r[r.Done = 3] = "Done", r[r.Unwritable = 4] = "Unwritable", r))(qn || {}), $t = /* @__PURE__ */ ((r) => (r[r.inside = 0] = "inside", r[r.outside = 1] = "outside", r[r.intersect = 2] = "intersect", r))($t || {}), Ze = /* @__PURE__ */ ((r) => (r.renderPage = "renderPage", r.addPage = "addPage", r.deletePage = "deletePage", r.addElement = "addElement", r.deleteElement = "deleteElement", r.clearPage = "clearPage", r.clearViewScenePath = "clearViewScenePath", r.clearView = "clearView", r))(Ze || {}), gt = /* @__PURE__ */ ((r) => (r.setAuth = "setAuth", r.setShow = "addShow", r.setHide = "setHide", r.setClear = "setClear", r))(gt || {}), Gt = /* @__PURE__ */ ((r) => (r.Image = "image", r.Iconify = "iconify", r))(Gt || {});
|
|
18
18
|
const _n = {
|
|
19
19
|
linear: (r) => r,
|
|
20
20
|
easeInQuad: (r) => r * r,
|
|
@@ -576,7 +576,7 @@ function Vr(r, i) {
|
|
|
576
576
|
var e = this.__data__, t = Fr(e, r);
|
|
577
577
|
return t < 0 ? (++this.size, e.push([r, i])) : e[t][1] = i, this;
|
|
578
578
|
}
|
|
579
|
-
var Qr = Vr, Zr = xr,
|
|
579
|
+
var Qr = Vr, Zr = xr, Hr = Er, $r = Wr, Gr = Br, Xr = Qr;
|
|
580
580
|
function Kt(r) {
|
|
581
581
|
var i = -1, e = r == null ? 0 : r.length;
|
|
582
582
|
for (this.clear(); ++i < e; ) {
|
|
@@ -585,8 +585,8 @@ function Kt(r) {
|
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
Kt.prototype.clear = Zr;
|
|
588
|
-
Kt.prototype.delete =
|
|
589
|
-
Kt.prototype.get =
|
|
588
|
+
Kt.prototype.delete = Hr;
|
|
589
|
+
Kt.prototype.get = $r;
|
|
590
590
|
Kt.prototype.has = Gr;
|
|
591
591
|
Kt.prototype.set = Xr;
|
|
592
592
|
var zi = Kt, Jr = zi;
|
|
@@ -662,11 +662,11 @@ function Qa() {
|
|
|
662
662
|
this.__data__ = Fs ? Fs(null) : {}, this.size = 0;
|
|
663
663
|
}
|
|
664
664
|
var Za = Qa;
|
|
665
|
-
function
|
|
665
|
+
function Ha(r) {
|
|
666
666
|
var i = this.has(r) && delete this.__data__[r];
|
|
667
667
|
return this.size -= i ? 1 : 0, i;
|
|
668
668
|
}
|
|
669
|
-
var
|
|
669
|
+
var $a = Ha, Ga = Pi, Xa = "__lodash_hash_undefined__", Ja = Object.prototype, Ka = Ja.hasOwnProperty;
|
|
670
670
|
function qa(r) {
|
|
671
671
|
var i = this.__data__;
|
|
672
672
|
if (Ga) {
|
|
@@ -685,7 +685,7 @@ function ac(r, i) {
|
|
|
685
685
|
var e = this.__data__;
|
|
686
686
|
return this.size += this.has(r) ? 0 : 1, e[r] = nc && i === void 0 ? rc : i, this;
|
|
687
687
|
}
|
|
688
|
-
var cc = ac, lc = Za, hc =
|
|
688
|
+
var cc = ac, lc = Za, hc = $a, uc = _a, dc = oc, pc = cc;
|
|
689
689
|
function qt(r) {
|
|
690
690
|
var i = -1, e = r == null ? 0 : r.length;
|
|
691
691
|
for (this.clear(); ++i < e; ) {
|
|
@@ -758,12 +758,12 @@ function Qc(r, i) {
|
|
|
758
758
|
}
|
|
759
759
|
return e.set(r, i), this.size = e.size, this;
|
|
760
760
|
}
|
|
761
|
-
var Zc = Qc,
|
|
761
|
+
var Zc = Qc, Hc = zi, $c = qr, Gc = ea, Xc = ia, Jc = oa, Kc = Zc;
|
|
762
762
|
function ei(r) {
|
|
763
|
-
var i = this.__data__ = new
|
|
763
|
+
var i = this.__data__ = new Hc(r);
|
|
764
764
|
this.size = i.size;
|
|
765
765
|
}
|
|
766
|
-
ei.prototype.clear =
|
|
766
|
+
ei.prototype.clear = $c;
|
|
767
767
|
ei.prototype.delete = Gc;
|
|
768
768
|
ei.prototype.get = Xc;
|
|
769
769
|
ei.prototype.has = Jc;
|
|
@@ -780,7 +780,7 @@ var _c = qc, el = Rt, tl = function() {
|
|
|
780
780
|
return r({}, "", {}), r;
|
|
781
781
|
} catch {
|
|
782
782
|
}
|
|
783
|
-
}(),
|
|
783
|
+
}(), Ho = tl, Qs = Ho;
|
|
784
784
|
function il(r, i, e) {
|
|
785
785
|
i == "__proto__" && Qs ? Qs(r, i, {
|
|
786
786
|
configurable: !0,
|
|
@@ -789,12 +789,12 @@ function il(r, i, e) {
|
|
|
789
789
|
writable: !0
|
|
790
790
|
}) : r[i] = e;
|
|
791
791
|
}
|
|
792
|
-
var
|
|
792
|
+
var $o = il, sl = $o, ol = ds, nl = Object.prototype, rl = nl.hasOwnProperty;
|
|
793
793
|
function al(r, i, e) {
|
|
794
794
|
var t = r[i];
|
|
795
795
|
(!(rl.call(r, i) && ol(t, e)) || e === void 0 && !(i in r)) && sl(r, i, e);
|
|
796
796
|
}
|
|
797
|
-
var Go = al, cl = Go, ll =
|
|
797
|
+
var Go = al, cl = Go, ll = $o;
|
|
798
798
|
function hl(r, i, e, t) {
|
|
799
799
|
var s = !e;
|
|
800
800
|
e || (e = {});
|
|
@@ -837,9 +837,9 @@ var bl = xl, Dl = 9007199254740991;
|
|
|
837
837
|
function Ll(r) {
|
|
838
838
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Dl;
|
|
839
839
|
}
|
|
840
|
-
var Ko = Ll, Al = Ot, jl = Ko, zl = Mt, Pl = "[object Arguments]", El = "[object Array]", Ol = "[object Boolean]", Rl = "[object Date]", Wl = "[object Error]", Yl = "[object Function]", Ul = "[object Map]", Bl = "[object Number]", Fl = "[object Object]", Vl = "[object RegExp]", Ql = "[object Set]", Zl = "[object String]",
|
|
840
|
+
var Ko = Ll, Al = Ot, jl = Ko, zl = Mt, Pl = "[object Arguments]", El = "[object Array]", Ol = "[object Boolean]", Rl = "[object Date]", Wl = "[object Error]", Yl = "[object Function]", Ul = "[object Map]", Bl = "[object Number]", Fl = "[object Object]", Vl = "[object RegExp]", Ql = "[object Set]", Zl = "[object String]", Hl = "[object WeakMap]", $l = "[object ArrayBuffer]", Gl = "[object DataView]", Xl = "[object Float32Array]", Jl = "[object Float64Array]", Kl = "[object Int8Array]", ql = "[object Int16Array]", _l = "[object Int32Array]", eh = "[object Uint8Array]", th = "[object Uint8ClampedArray]", ih = "[object Uint16Array]", sh = "[object Uint32Array]", xe = {};
|
|
841
841
|
xe[Xl] = xe[Jl] = xe[Kl] = xe[ql] = xe[_l] = xe[eh] = xe[th] = xe[ih] = xe[sh] = !0;
|
|
842
|
-
xe[Pl] = xe[El] = xe[
|
|
842
|
+
xe[Pl] = xe[El] = xe[$l] = xe[Ol] = xe[Gl] = xe[Rl] = xe[Wl] = xe[Yl] = xe[Ul] = xe[Bl] = xe[Fl] = xe[Vl] = xe[Ql] = xe[Zl] = xe[Hl] = !1;
|
|
843
843
|
function oh(r) {
|
|
844
844
|
return zl(r) && jl(r.length) && !!xe[Al(r)];
|
|
845
845
|
}
|
|
@@ -861,7 +861,7 @@ Ti.exports;
|
|
|
861
861
|
}();
|
|
862
862
|
r.exports = a;
|
|
863
863
|
})(Ti, Ti.exports);
|
|
864
|
-
var fs = Ti.exports, ah = nh, ch = Ri,
|
|
864
|
+
var fs = Ti.exports, ah = nh, ch = Ri, Hs = fs, $s = Hs && Hs.isTypedArray, lh = $s ? ch($s) : ah, qo = lh, hh = dl, uh = Jo, dh = ui, ph = gs, gh = bl, fh = qo, Mh = Object.prototype, yh = Mh.hasOwnProperty;
|
|
865
865
|
function mh(r, i) {
|
|
866
866
|
var e = dh(r), t = !e && uh(r), s = !e && !t && ph(r), o = !e && !t && !s && fh(r), n = e || t || s || o, a = n ? hh(r.length, String) : [], c = a.length;
|
|
867
867
|
for (var l in r)
|
|
@@ -912,10 +912,10 @@ function Fh(r) {
|
|
|
912
912
|
i.push(e);
|
|
913
913
|
return i;
|
|
914
914
|
}
|
|
915
|
-
var Vh = Fh, Qh = kt, Zh = Ms,
|
|
915
|
+
var Vh = Fh, Qh = kt, Zh = Ms, Hh = Vh, $h = Object.prototype, Gh = $h.hasOwnProperty;
|
|
916
916
|
function Xh(r) {
|
|
917
917
|
if (!Qh(r))
|
|
918
|
-
return
|
|
918
|
+
return Hh(r);
|
|
919
919
|
var i = Zh(r), e = [];
|
|
920
920
|
for (var t in r)
|
|
921
921
|
t == "constructor" && (i || !Gh.call(r, t)) || e.push(t);
|
|
@@ -995,7 +995,7 @@ var an = Wu, Yu = rn, Uu = nn, Bu = ws;
|
|
|
995
995
|
function Fu(r) {
|
|
996
996
|
return Yu(r, Bu, Uu);
|
|
997
997
|
}
|
|
998
|
-
var Vu = Fu, Qu = Rt, Zu = ht,
|
|
998
|
+
var Vu = Fu, Qu = Rt, Zu = ht, Hu = Qu(Zu, "DataView"), $u = Hu, Gu = Rt, Xu = ht, Ju = Gu(Xu, "Promise"), Ku = Ju, qu = Rt, _u = ht, ed = qu(_u, "Set"), cn = ed, td = Rt, id = ht, sd = td(id, "WeakMap"), od = sd, qi = $u, _i = ps, es = Ku, ts = cn, is = od, ln = Ot, ti = Vo, Xs = "[object Map]", nd = "[object Object]", Js = "[object Promise]", Ks = "[object Set]", qs = "[object WeakMap]", _s = "[object DataView]", rd = ti(qi), ad = ti(_i), cd = ti(es), ld = ti(ts), hd = ti(is), bt = ln;
|
|
999
999
|
(qi && bt(new qi(new ArrayBuffer(1))) != _s || _i && bt(new _i()) != Xs || es && bt(es.resolve()) != Js || ts && bt(new ts()) != Ks || is && bt(new is()) != qs) && (bt = function(r) {
|
|
1000
1000
|
var i = ln(r), e = i == nd ? r.constructor : void 0, t = e ? ti(e) : "";
|
|
1001
1001
|
if (t)
|
|
@@ -1042,7 +1042,7 @@ function xd(r, i) {
|
|
|
1042
1042
|
var e = i ? kd(r.buffer) : r.buffer;
|
|
1043
1043
|
return new r.constructor(e, r.byteOffset, r.length);
|
|
1044
1044
|
}
|
|
1045
|
-
var bd = xd, Dd = vs, Ld = Id, Ad = Nd, jd = Cd, zd = bd, Pd = "[object Boolean]", Ed = "[object Date]", Od = "[object Map]", Rd = "[object Number]", Wd = "[object RegExp]", Yd = "[object Set]", Ud = "[object String]", Bd = "[object Symbol]", Fd = "[object ArrayBuffer]", Vd = "[object DataView]", Qd = "[object Float32Array]", Zd = "[object Float64Array]",
|
|
1045
|
+
var bd = xd, Dd = vs, Ld = Id, Ad = Nd, jd = Cd, zd = bd, Pd = "[object Boolean]", Ed = "[object Date]", Od = "[object Map]", Rd = "[object Number]", Wd = "[object RegExp]", Yd = "[object Set]", Ud = "[object String]", Bd = "[object Symbol]", Fd = "[object ArrayBuffer]", Vd = "[object DataView]", Qd = "[object Float32Array]", Zd = "[object Float64Array]", Hd = "[object Int8Array]", $d = "[object Int16Array]", Gd = "[object Int32Array]", Xd = "[object Uint8Array]", Jd = "[object Uint8ClampedArray]", Kd = "[object Uint16Array]", qd = "[object Uint32Array]";
|
|
1046
1046
|
function _d(r, i, e) {
|
|
1047
1047
|
var t = r.constructor;
|
|
1048
1048
|
switch (i) {
|
|
@@ -1055,8 +1055,8 @@ function _d(r, i, e) {
|
|
|
1055
1055
|
return Ld(r, e);
|
|
1056
1056
|
case Qd:
|
|
1057
1057
|
case Zd:
|
|
1058
|
-
case $d:
|
|
1059
1058
|
case Hd:
|
|
1059
|
+
case $d:
|
|
1060
1060
|
case Gd:
|
|
1061
1061
|
case Xd:
|
|
1062
1062
|
case Jd:
|
|
@@ -1102,7 +1102,7 @@ function Tp(r) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
var vp = Tp, Np = vp, Sp = Ri, ao = fs, co = ao && ao.isSet, Cp = co ? Sp(co) : Np, un = Cp;
|
|
1104
1104
|
const kp = /* @__PURE__ */ Jt(un);
|
|
1105
|
-
var xp = Zo, bp = _c, Dp = Go, Lp = Bh, Ap = ou, jp = nu, zp = au, Pp = mu, Ep = Au, Op = an, Rp = Vu, Wp = Wi, Yp = gd, Up = ep, Bp = cp, Fp = ui, Vp = gs, Qp = yp, Zp = kt,
|
|
1105
|
+
var xp = Zo, bp = _c, Dp = Go, Lp = Bh, Ap = ou, jp = nu, zp = au, Pp = mu, Ep = Au, Op = an, Rp = Vu, Wp = Wi, Yp = gd, Up = ep, Bp = cp, Fp = ui, Vp = gs, Qp = yp, Zp = kt, Hp = un, $p = ms, Gp = ws, Xp = 1, Jp = 2, Kp = 4, dn = "[object Arguments]", qp = "[object Array]", _p = "[object Boolean]", eg = "[object Date]", tg = "[object Error]", pn = "[object Function]", ig = "[object GeneratorFunction]", sg = "[object Map]", og = "[object Number]", gn = "[object Object]", ng = "[object RegExp]", rg = "[object Set]", ag = "[object String]", cg = "[object Symbol]", lg = "[object WeakMap]", hg = "[object ArrayBuffer]", ug = "[object DataView]", dg = "[object Float32Array]", pg = "[object Float64Array]", gg = "[object Int8Array]", fg = "[object Int16Array]", Mg = "[object Int32Array]", yg = "[object Uint8Array]", mg = "[object Uint8ClampedArray]", wg = "[object Uint16Array]", Ig = "[object Uint32Array]", ke = {};
|
|
1106
1106
|
ke[dn] = ke[qp] = ke[hg] = ke[ug] = ke[_p] = ke[eg] = ke[dg] = ke[pg] = ke[gg] = ke[fg] = ke[Mg] = ke[sg] = ke[og] = ke[gn] = ke[ng] = ke[rg] = ke[ag] = ke[cg] = ke[yg] = ke[mg] = ke[wg] = ke[Ig] = !0;
|
|
1107
1107
|
ke[tg] = ke[pn] = ke[lg] = !1;
|
|
1108
1108
|
function mi(r, i, e, t, s, o) {
|
|
@@ -1132,12 +1132,12 @@ function mi(r, i, e, t, s, o) {
|
|
|
1132
1132
|
var f = o.get(r);
|
|
1133
1133
|
if (f)
|
|
1134
1134
|
return f;
|
|
1135
|
-
o.set(r, n),
|
|
1135
|
+
o.set(r, n), Hp(r) ? r.forEach(function(y) {
|
|
1136
1136
|
n.add(mi(y, i, e, y, r, o));
|
|
1137
1137
|
}) : Qp(r) && r.forEach(function(y, w) {
|
|
1138
1138
|
n.set(w, mi(y, i, e, w, r, o));
|
|
1139
1139
|
});
|
|
1140
|
-
var g = l ? c ? Rp : Op : c ? Gp :
|
|
1140
|
+
var g = l ? c ? Rp : Op : c ? Gp : $p, p = u ? void 0 : g(r);
|
|
1141
1141
|
return bp(p || r, function(y, w) {
|
|
1142
1142
|
p && (w = y, y = r[w]), Dp(n, w, mi(y, i, e, w, r, o));
|
|
1143
1143
|
}), n;
|
|
@@ -1147,7 +1147,7 @@ function Cg(r) {
|
|
|
1147
1147
|
return vg(r, Ng | Sg);
|
|
1148
1148
|
}
|
|
1149
1149
|
var kg = Cg;
|
|
1150
|
-
const Ye = /* @__PURE__ */ Jt(kg), fn = "1.1.
|
|
1150
|
+
const Ye = /* @__PURE__ */ Jt(kg), fn = "1.1.22-beta.0", xg = "@netless/appliance-plugin", lo = typeof OffscreenCanvas == "function" ? "worker" : "mainThread";
|
|
1151
1151
|
if (typeof window < "u") {
|
|
1152
1152
|
let r = window.__netlessUA || "";
|
|
1153
1153
|
r += ` ${xg}@${fn}`, window.__netlessUA = r;
|
|
@@ -1314,7 +1314,7 @@ const tt = class tt {
|
|
|
1314
1314
|
w: p.width,
|
|
1315
1315
|
h: p.height
|
|
1316
1316
|
};
|
|
1317
|
-
if (Wn(D, L) ===
|
|
1317
|
+
if (Wn(D, L) === $t.outside) {
|
|
1318
1318
|
et(m, N), p.removeChild(N), this.isDelete = !0;
|
|
1319
1319
|
return;
|
|
1320
1320
|
}
|
|
@@ -1340,7 +1340,7 @@ const tt = class tt {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
createVmRenderNode(i, e, t, s, o) {
|
|
1343
|
-
const { width: n, height: a } = t, c = `bitMap-${i}`, l = e.layer(c, t), u = new
|
|
1343
|
+
const { width: n, height: a } = t, c = `bitMap-${i}`, l = e.layer(c, t), u = new He({
|
|
1344
1344
|
anchor: [0.5, 0.5],
|
|
1345
1345
|
pos: [n * 0.5, a * 0.5],
|
|
1346
1346
|
size: [n, a],
|
|
@@ -1619,7 +1619,7 @@ function ii(r) {
|
|
|
1619
1619
|
return JSON.parse(Gn(r));
|
|
1620
1620
|
}
|
|
1621
1621
|
function Xe(r) {
|
|
1622
|
-
return
|
|
1622
|
+
return $n(JSON.stringify(r));
|
|
1623
1623
|
}
|
|
1624
1624
|
const Fe = Object.keys;
|
|
1625
1625
|
function Mn(r, i, e = 0.01) {
|
|
@@ -2001,7 +2001,7 @@ class yn extends Y {
|
|
|
2001
2001
|
}), N.push(P);
|
|
2002
2002
|
}
|
|
2003
2003
|
g && (t.scale = g), p && (t.rotate = p), y && (t.translate = y);
|
|
2004
|
-
const v = new
|
|
2004
|
+
const v = new He();
|
|
2005
2005
|
if (m) {
|
|
2006
2006
|
this.centerPos = Y.getCenterPos(m, a);
|
|
2007
2007
|
const x = h === ne.Stroke && !w;
|
|
@@ -2702,7 +2702,7 @@ const Vt = class Vt extends Y {
|
|
|
2702
2702
|
// 来源于white-sdk
|
|
2703
2703
|
M(Vt, "eraserSizes", Ns);
|
|
2704
2704
|
let Ni = Vt;
|
|
2705
|
-
const st = "++",
|
|
2705
|
+
const st = "++", H = "selector", Vi = "all";
|
|
2706
2706
|
var Pg = "__lodash_hash_undefined__";
|
|
2707
2707
|
function Eg(r) {
|
|
2708
2708
|
return this.__data__.set(r, Pg), this;
|
|
@@ -2730,7 +2730,7 @@ var Vg = Fg;
|
|
|
2730
2730
|
function Qg(r, i) {
|
|
2731
2731
|
return r.has(i);
|
|
2732
2732
|
}
|
|
2733
|
-
var Cs = Qg, Zg = Ss,
|
|
2733
|
+
var Cs = Qg, Zg = Ss, Hg = Vg, $g = Cs, Gg = 1, Xg = 2;
|
|
2734
2734
|
function Jg(r, i, e, t, s, o) {
|
|
2735
2735
|
var n = e & Gg, a = r.length, c = i.length;
|
|
2736
2736
|
if (a != c && !(n && c > a))
|
|
@@ -2750,8 +2750,8 @@ function Jg(r, i, e, t, s, o) {
|
|
|
2750
2750
|
break;
|
|
2751
2751
|
}
|
|
2752
2752
|
if (f) {
|
|
2753
|
-
if (
|
|
2754
|
-
if (
|
|
2753
|
+
if (!Hg(i, function(w, m) {
|
|
2754
|
+
if (!$g(f, m) && (g === w || s(g, w, e, t, o)))
|
|
2755
2755
|
return f.push(m);
|
|
2756
2756
|
})) {
|
|
2757
2757
|
d = !1;
|
|
@@ -2951,7 +2951,7 @@ const Ai = class Ai extends Y {
|
|
|
2951
2951
|
}
|
|
2952
2952
|
}
|
|
2953
2953
|
drawSelector(e) {
|
|
2954
|
-
const { drawRect: t, subNodeMap: s, selectorId: o, layer: n, isService: a } = e, c = new
|
|
2954
|
+
const { drawRect: t, subNodeMap: s, selectorId: o, layer: n, isService: a } = e, c = new He({
|
|
2955
2955
|
pos: [t.x, t.y],
|
|
2956
2956
|
anchor: [0, 0],
|
|
2957
2957
|
size: [t.w, t.h],
|
|
@@ -3034,7 +3034,7 @@ const Ai = class Ai extends Y {
|
|
|
3034
3034
|
return { type: b.None };
|
|
3035
3035
|
this.selectIds = n.selectIds;
|
|
3036
3036
|
const a = n.intersectRect;
|
|
3037
|
-
this.getSelecteorInfo(n.subNodeMap), this.draw(
|
|
3037
|
+
this.getSelecteorInfo(n.subNodeMap), this.draw(H, this.fullLayer, n), this.oldSelectRect = a;
|
|
3038
3038
|
const c = this.getChildrenPoints();
|
|
3039
3039
|
return {
|
|
3040
3040
|
type: b.Select,
|
|
@@ -3064,7 +3064,7 @@ const Ai = class Ai extends Y {
|
|
|
3064
3064
|
consumeAll() {
|
|
3065
3065
|
var t, s;
|
|
3066
3066
|
let e = this.oldSelectRect;
|
|
3067
|
-
if (!((t = this.selectIds) != null && t.length) && this.tmpPoints[0] && this.selectSingleTool(this.tmpPoints[0].XY,
|
|
3067
|
+
if (!((t = this.selectIds) != null && t.length) && this.tmpPoints[0] && this.selectSingleTool(this.tmpPoints[0].XY, H, !1), (s = this.selectIds) != null && s.length && (e = this.selectedByIds(this.selectIds)), e) {
|
|
3068
3068
|
const o = this.getChildrenPoints();
|
|
3069
3069
|
return {
|
|
3070
3070
|
type: b.Select,
|
|
@@ -3146,7 +3146,7 @@ const Ai = class Ai extends Y {
|
|
|
3146
3146
|
f.h * h[0] + 2 * Y.SafeBorderPadding
|
|
3147
3147
|
)
|
|
3148
3148
|
};
|
|
3149
|
-
const N = new
|
|
3149
|
+
const N = new He({
|
|
3150
3150
|
name: t,
|
|
3151
3151
|
id: t,
|
|
3152
3152
|
pos: g,
|
|
@@ -3215,7 +3215,7 @@ const Ai = class Ai extends Y {
|
|
|
3215
3215
|
clearSelectData() {
|
|
3216
3216
|
this.selectIds = void 0, this.oldSelectRect = void 0;
|
|
3217
3217
|
}
|
|
3218
|
-
selectSingleTool(e, t =
|
|
3218
|
+
selectSingleTool(e, t = H, s = !1) {
|
|
3219
3219
|
if (e.length === 2) {
|
|
3220
3220
|
const o = e[0], n = e[1];
|
|
3221
3221
|
let a;
|
|
@@ -3422,7 +3422,7 @@ const Ai = class Ai extends Y {
|
|
|
3422
3422
|
offset: x
|
|
3423
3423
|
});
|
|
3424
3424
|
}
|
|
3425
|
-
this.getSelecteorInfo(h), this.draw(
|
|
3425
|
+
this.getSelecteorInfo(h), this.draw(H, l, {
|
|
3426
3426
|
selectIds: s || [],
|
|
3427
3427
|
subNodeMap: h,
|
|
3428
3428
|
intersectRect: N
|
|
@@ -3478,7 +3478,7 @@ const Ai = class Ai extends Y {
|
|
|
3478
3478
|
return (s = this.selectIds) == null || s.forEach((o) => {
|
|
3479
3479
|
const n = this.vNodes.get(o);
|
|
3480
3480
|
n && (e = de(e, n.rect), t.set(o, n));
|
|
3481
|
-
}, this), this.getSelecteorInfo(t), this.draw(
|
|
3481
|
+
}, this), this.getSelecteorInfo(t), this.draw(H, this.fullLayer, {
|
|
3482
3482
|
intersectRect: e,
|
|
3483
3483
|
subNodeMap: t,
|
|
3484
3484
|
selectIds: this.selectIds || []
|
|
@@ -3636,7 +3636,7 @@ class Tn extends Y {
|
|
|
3636
3636
|
size: [m.w, m.h]
|
|
3637
3637
|
};
|
|
3638
3638
|
l && (x.scale = l), u && (x.rotate = u), h && (x.translate = h);
|
|
3639
|
-
const D = new
|
|
3639
|
+
const D = new He(x), L = {
|
|
3640
3640
|
points: S,
|
|
3641
3641
|
pos: [I[0] - v[0], I[1] - v[1]],
|
|
3642
3642
|
fillColor: n,
|
|
@@ -3819,7 +3819,7 @@ class vn extends Y {
|
|
|
3819
3819
|
w: Math.floor(p.width),
|
|
3820
3820
|
h: Math.floor(p.height)
|
|
3821
3821
|
};
|
|
3822
|
-
if (Wn(f, y) !==
|
|
3822
|
+
if (Wn(f, y) !== $t.outside) {
|
|
3823
3823
|
const m = de(f, this.oldRect);
|
|
3824
3824
|
return this.oldRect = f, {
|
|
3825
3825
|
rect: m,
|
|
@@ -3897,7 +3897,7 @@ class vn extends Y {
|
|
|
3897
3897
|
size: [m.w, m.h]
|
|
3898
3898
|
};
|
|
3899
3899
|
h && (I.scale = h), d && (I.rotate = d), f && (I.translate = f);
|
|
3900
|
-
const v = new
|
|
3900
|
+
const v = new He(I);
|
|
3901
3901
|
if (o) {
|
|
3902
3902
|
const L = new Ct({
|
|
3903
3903
|
d: "M-4,0H4M0,-4V4",
|
|
@@ -4133,7 +4133,7 @@ class Nn extends Y {
|
|
|
4133
4133
|
I.h * N[0] + 2 * Y.SafeBorderPadding
|
|
4134
4134
|
)
|
|
4135
4135
|
};
|
|
4136
|
-
const L = new
|
|
4136
|
+
const L = new He({
|
|
4137
4137
|
name: t,
|
|
4138
4138
|
id: t,
|
|
4139
4139
|
zIndex: d,
|
|
@@ -4347,7 +4347,7 @@ class Sn extends Y {
|
|
|
4347
4347
|
size: [S.w, S.h]
|
|
4348
4348
|
};
|
|
4349
4349
|
g && (D.scale = g), p && (D.rotate = p), y && (D.translate = y);
|
|
4350
|
-
const L = new
|
|
4350
|
+
const L = new He(D);
|
|
4351
4351
|
if (o) {
|
|
4352
4352
|
const E = new Ct({
|
|
4353
4353
|
d: "M-4,0H4M0,-4V4",
|
|
@@ -4561,7 +4561,7 @@ class Cn extends Y {
|
|
|
4561
4561
|
size: [m.w, m.h]
|
|
4562
4562
|
};
|
|
4563
4563
|
d && (v.scale = d), f && (v.rotate = f), g && (v.translate = g);
|
|
4564
|
-
const x = new
|
|
4564
|
+
const x = new He(v);
|
|
4565
4565
|
if (o) {
|
|
4566
4566
|
const z = new Ct({
|
|
4567
4567
|
d: "M-4,0H4M0,-4V4",
|
|
@@ -4832,7 +4832,7 @@ class kn extends Y {
|
|
|
4832
4832
|
size: [y.w, y.h]
|
|
4833
4833
|
};
|
|
4834
4834
|
h && (S.scale = h), d && (S.rotate = d), f && (S.translate = f);
|
|
4835
|
-
const I = new
|
|
4835
|
+
const I = new He(S), v = new wt({
|
|
4836
4836
|
...N,
|
|
4837
4837
|
pos: [0, 0]
|
|
4838
4838
|
});
|
|
@@ -5353,7 +5353,7 @@ class xn extends Y {
|
|
|
5353
5353
|
} = this.workOptions, g = s.worldPosition, p = s.worldScaling, { d: y, rect: w, isDot: m } = this.computDrawPoints(a, d), N = [
|
|
5354
5354
|
w.x + w.w / 2,
|
|
5355
5355
|
w.y + w.h / 2
|
|
5356
|
-
], S = new
|
|
5356
|
+
], S = new He({
|
|
5357
5357
|
pos: N,
|
|
5358
5358
|
anchor: [0.5, 0.5],
|
|
5359
5359
|
size: [w.w, w.h],
|
|
@@ -5542,7 +5542,7 @@ const vt = class vt extends Y {
|
|
|
5542
5542
|
anchor: [0, 0],
|
|
5543
5543
|
size: n,
|
|
5544
5544
|
zIndex: c
|
|
5545
|
-
}, d = new
|
|
5545
|
+
}, d = new He(h), f = {
|
|
5546
5546
|
x: a[0],
|
|
5547
5547
|
y: a[1],
|
|
5548
5548
|
w: n[0],
|
|
@@ -5646,17 +5646,17 @@ const vt = class vt extends Y {
|
|
|
5646
5646
|
if (O) {
|
|
5647
5647
|
const Q = Wy(O), ee = [0, 0], U = [0, d * 1.2];
|
|
5648
5648
|
m === "middle" && (ee[1] = E * d * 1.2 + 5);
|
|
5649
|
-
const
|
|
5649
|
+
const $ = [0, -d * 0.15];
|
|
5650
5650
|
ee[0] = 5;
|
|
5651
5651
|
const te = Math.sin(Math.PI / 180 * 20);
|
|
5652
5652
|
let le = 0;
|
|
5653
5653
|
const oe = [];
|
|
5654
5654
|
let q = 0;
|
|
5655
5655
|
for (; q < Q; ) {
|
|
5656
|
-
p === "left" && (
|
|
5657
|
-
const ge = O.slice(q, q + L),
|
|
5656
|
+
p === "left" && ($[0] = le), q === 0 && y === "italic" && ($[0] = $[0] - te / 2 * d);
|
|
5657
|
+
const ge = O.slice(q, q + L), $e = {
|
|
5658
5658
|
anchor: [0, 0],
|
|
5659
|
-
pos:
|
|
5659
|
+
pos: $,
|
|
5660
5660
|
text: ge,
|
|
5661
5661
|
fontFamily: w,
|
|
5662
5662
|
fontSize: D,
|
|
@@ -5667,13 +5667,13 @@ const vt = class vt extends Y {
|
|
|
5667
5667
|
textAlign: p,
|
|
5668
5668
|
fontStyle: y,
|
|
5669
5669
|
scale: [1 / x, 1 / x]
|
|
5670
|
-
}, Oe = new Zn(
|
|
5670
|
+
}, Oe = new Zn($e), ze = await Oe.textImageReady;
|
|
5671
5671
|
let _ = !0;
|
|
5672
5672
|
if (ze) {
|
|
5673
5673
|
const Re = ze.rect && ze.rect[2], Qe = ze.rect && ze.rect[3];
|
|
5674
5674
|
if (Re && Qe) {
|
|
5675
5675
|
const Z = Re / x, K = Qe / x;
|
|
5676
|
-
le = Z + le, y === "italic" && (g === "bold" ? le = le - te * d * 1.2 : le = le - te * d), ((
|
|
5676
|
+
le = Z + le, y === "italic" && (g === "bold" ? le = le - te * d * 1.2 : le = le - te * d), (($[0] + ee[0] + Z) * t.worldScaling[0] + n <= 0 || ($[0] + ee[0]) * t.worldScaling[0] + n >= c || ($[1] + ee[1] + K) * t.worldScaling[1] + a <= 0 || ($[1] + ee[1]) * t.worldScaling[1] + a >= l) && (Oe.disconnect(), _ = !1), _ && oe.push(Oe);
|
|
5677
5677
|
}
|
|
5678
5678
|
}
|
|
5679
5679
|
q += L;
|
|
@@ -5708,8 +5708,8 @@ const vt = class vt extends Y {
|
|
|
5708
5708
|
anchor: [0, 0],
|
|
5709
5709
|
size: U,
|
|
5710
5710
|
bgcolor: S
|
|
5711
|
-
},
|
|
5712
|
-
|
|
5711
|
+
}, $e = new He(ge);
|
|
5712
|
+
$e.append(...oe), o.push($e);
|
|
5713
5713
|
}
|
|
5714
5714
|
}
|
|
5715
5715
|
}
|
|
@@ -6646,7 +6646,7 @@ class Qf {
|
|
|
6646
6646
|
return o.setAttribute("id", this.viewId), o;
|
|
6647
6647
|
}
|
|
6648
6648
|
createLayer(i, e, t) {
|
|
6649
|
-
const { width: s, height: o } = t, n = `offscreen-${i}`, a = e.layer(n, t), c = new
|
|
6649
|
+
const { width: s, height: o } = t, n = `offscreen-${i}`, a = e.layer(n, t), c = new He({
|
|
6650
6650
|
anchor: [0.5, 0.5],
|
|
6651
6651
|
pos: [s * 0.5, o * 0.5],
|
|
6652
6652
|
size: [s, o],
|
|
@@ -6694,7 +6694,7 @@ class Qf {
|
|
|
6694
6694
|
let h = !1;
|
|
6695
6695
|
if (u.workId && n.add(u.workId), u.isClearAll && (u.rect = this.getSceneRect(), u.isClear = !0, delete u.isClearAll), u.drawCanvas) {
|
|
6696
6696
|
const d = this.getLayer(u.drawCanvas);
|
|
6697
|
-
if (!d || !(d.parent instanceof
|
|
6697
|
+
if (!d || !(d.parent instanceof Hn))
|
|
6698
6698
|
continue;
|
|
6699
6699
|
if (d.parent.render(), u.isDrawAll) {
|
|
6700
6700
|
const f = this.getSceneRect();
|
|
@@ -6833,11 +6833,11 @@ class Zf {
|
|
|
6833
6833
|
}
|
|
6834
6834
|
}
|
|
6835
6835
|
}
|
|
6836
|
-
function
|
|
6836
|
+
function Hf(r) {
|
|
6837
6837
|
return r;
|
|
6838
6838
|
}
|
|
6839
|
-
var An =
|
|
6840
|
-
function
|
|
6839
|
+
var An = Hf;
|
|
6840
|
+
function $f(r, i, e) {
|
|
6841
6841
|
switch (e.length) {
|
|
6842
6842
|
case 0:
|
|
6843
6843
|
return r.call(i);
|
|
@@ -6850,7 +6850,7 @@ function Hf(r, i, e) {
|
|
|
6850
6850
|
}
|
|
6851
6851
|
return r.apply(i, e);
|
|
6852
6852
|
}
|
|
6853
|
-
var Gf =
|
|
6853
|
+
var Gf = $f, Xf = Gf, No = Math.max;
|
|
6854
6854
|
function Jf(r, i, e) {
|
|
6855
6855
|
return i = No(i === void 0 ? r.length - 1 : i, 0), function() {
|
|
6856
6856
|
for (var t = arguments, s = -1, o = No(t.length - i, 0), n = Array(o); ++s < o; )
|
|
@@ -6867,7 +6867,7 @@ function qf(r) {
|
|
|
6867
6867
|
return r;
|
|
6868
6868
|
};
|
|
6869
6869
|
}
|
|
6870
|
-
var _f = qf, eM = _f, So =
|
|
6870
|
+
var _f = qf, eM = _f, So = Ho, tM = An, iM = So ? function(r, i) {
|
|
6871
6871
|
return So(r, "toString", {
|
|
6872
6872
|
configurable: !0,
|
|
6873
6873
|
enumerable: !1,
|
|
@@ -6953,20 +6953,20 @@ var FM = BM, Co = hi, VM = Jo, QM = ui, ko = Co ? Co.isConcatSpreadable : void 0
|
|
|
6953
6953
|
function ZM(r) {
|
|
6954
6954
|
return QM(r) || VM(r) || !!(ko && r && r[ko]);
|
|
6955
6955
|
}
|
|
6956
|
-
var
|
|
6956
|
+
var HM = ZM, $M = Ts, GM = HM;
|
|
6957
6957
|
function Pn(r, i, e, t, s) {
|
|
6958
6958
|
var o = -1, n = r.length;
|
|
6959
6959
|
for (e || (e = GM), s || (s = []); ++o < n; ) {
|
|
6960
6960
|
var a = r[o];
|
|
6961
|
-
i > 0 && e(a) ? i > 1 ? Pn(a, i - 1, e, t, s) :
|
|
6961
|
+
i > 0 && e(a) ? i > 1 ? Pn(a, i - 1, e, t, s) : $M(s, a) : t || (s[s.length] = a);
|
|
6962
6962
|
}
|
|
6963
6963
|
return s;
|
|
6964
6964
|
}
|
|
6965
6965
|
var XM = Pn;
|
|
6966
6966
|
function JM() {
|
|
6967
6967
|
}
|
|
6968
|
-
var KM = JM,
|
|
6969
|
-
return new
|
|
6968
|
+
var KM = JM, Hi = cn, qM = KM, _M = ks, ey = 1 / 0, ty = Hi && 1 / _M(new Hi([, -0]))[1] == ey ? function(r) {
|
|
6969
|
+
return new Hi(r);
|
|
6970
6970
|
} : qM, iy = ty, sy = Ss, oy = jn, ny = zn, ry = Cs, ay = iy, cy = ks, ly = 200;
|
|
6971
6971
|
function hy(r, i, e) {
|
|
6972
6972
|
var t = -1, s = oy, o = r.length, n = !0, a = [], c = a;
|
|
@@ -7061,7 +7061,7 @@ class Sy extends Zf {
|
|
|
7061
7061
|
viewId: this.viewId,
|
|
7062
7062
|
msgType: b.DrawWork,
|
|
7063
7063
|
dataType: F.Local
|
|
7064
|
-
}), this.drawWorkActiveId = void 0), !this.drawWorkActiveId && n !==
|
|
7064
|
+
}), this.drawWorkActiveId = void 0), !this.drawWorkActiveId && n !== H && (this.drawWorkActiveId = n);
|
|
7065
7065
|
const c = a.toolsType;
|
|
7066
7066
|
Ge(o) && (this.consumeCount = o);
|
|
7067
7067
|
const l = a.consume({
|
|
@@ -7823,7 +7823,7 @@ class ci extends Y {
|
|
|
7823
7823
|
return { type: b.None };
|
|
7824
7824
|
}
|
|
7825
7825
|
draw(e) {
|
|
7826
|
-
const { layer: t, workId: s, replaceId: o, imageBitmap: n } = e, { centerX: a, centerY: c, width: l, height: u, rotate: h, zIndex: d, eraserlines: f } = this.workOptions, g = new
|
|
7826
|
+
const { layer: t, workId: s, replaceId: o, imageBitmap: n } = e, { centerX: a, centerY: c, width: l, height: u, rotate: h, zIndex: d, eraserlines: f } = this.workOptions, g = new He({
|
|
7827
7827
|
anchor: [0.5, 0.5],
|
|
7828
7828
|
pos: [a, c],
|
|
7829
7829
|
name: s,
|
|
@@ -8141,7 +8141,7 @@ const ft = async (r, i, e = !1) => {
|
|
|
8141
8141
|
}, mt = (r) => {
|
|
8142
8142
|
const i = (r == null ? void 0 : r.webkitBackingStorePixelRatio) || (r == null ? void 0 : r.mozBackingStorePixelRatio) || (r == null ? void 0 : r.msBackingStorePixelRatio) || (r == null ? void 0 : r.oBackingStorePixelRatio) || (r == null ? void 0 : r.backingStorePixelRatio) || 1;
|
|
8143
8143
|
return Math.max(1, (window.devicePixelRatio || 1) / i);
|
|
8144
|
-
}, Wn = (r, i) => r.x + r.w < i.x || r.x > i.x + i.w || r.y + r.h < i.y || r.y > i.y + i.h ?
|
|
8144
|
+
}, Wn = (r, i) => r.x + r.w < i.x || r.x > i.x + i.w || r.y + r.h < i.y || r.y > i.y + i.h ? $t.outside : r.x >= i.x && r.y >= i.y && r.x + r.w <= i.x + i.w && r.y + r.h <= i.y + i.h ? $t.inside : $t.intersect;
|
|
8145
8145
|
function Wy(r) {
|
|
8146
8146
|
let i = 0;
|
|
8147
8147
|
for (let e = 0; e < r.length; e++) {
|
|
@@ -8175,7 +8175,7 @@ class Yy {
|
|
|
8175
8175
|
return i.split(st)[1];
|
|
8176
8176
|
}
|
|
8177
8177
|
isSelector(i) {
|
|
8178
|
-
return this.getLocalId(i) ===
|
|
8178
|
+
return this.getLocalId(i) === H;
|
|
8179
8179
|
}
|
|
8180
8180
|
}
|
|
8181
8181
|
const it = class it extends Yy {
|
|
@@ -8276,7 +8276,7 @@ const it = class it extends Yy {
|
|
|
8276
8276
|
hasSelector(e, t) {
|
|
8277
8277
|
const s = this.storage && this.storage[e] && this.storage[e][t];
|
|
8278
8278
|
return !!(s && Object.keys(s).find(
|
|
8279
|
-
(o) => this.isOwn(o) && this.getLocalId(o) ===
|
|
8279
|
+
(o) => this.isOwn(o) && this.getLocalId(o) === H
|
|
8280
8280
|
));
|
|
8281
8281
|
}
|
|
8282
8282
|
hasIncludeSelector(e, t, s) {
|
|
@@ -8285,7 +8285,7 @@ const it = class it extends Yy {
|
|
|
8285
8285
|
for (const n of Object.keys(this.storage[o]))
|
|
8286
8286
|
if (!(s && n !== s)) {
|
|
8287
8287
|
for (const a of Object.keys(this.storage[o][n]))
|
|
8288
|
-
if (this.getLocalId(a) ===
|
|
8288
|
+
if (this.getLocalId(a) === H) {
|
|
8289
8289
|
const c = this.storage[o][n][a], l = this.isLocalId(e) ? this.transformKey(e) : e;
|
|
8290
8290
|
if (c && c.selectIds && c.selectIds.length && c.selectIds.includes(l))
|
|
8291
8291
|
return !0;
|
|
@@ -8579,7 +8579,7 @@ const it = class it extends Yy {
|
|
|
8579
8579
|
return;
|
|
8580
8580
|
let w;
|
|
8581
8581
|
d != null && d.length && (w = d.map((I) => this.isLocalId(I + "") ? this.transformKey(I) : I));
|
|
8582
|
-
const m = this.transformKey(
|
|
8582
|
+
const m = this.transformKey(H), N = this.storage[p] && this.storage[p][g] && this.storage[p][g][m] || void 0, S = a || (N == null ? void 0 : N.opt);
|
|
8583
8583
|
w && this.checkOtherSelector(m, w, {
|
|
8584
8584
|
isSync: f,
|
|
8585
8585
|
viewId: p,
|
|
@@ -8600,7 +8600,7 @@ const it = class it extends Yy {
|
|
|
8600
8600
|
checkOtherSelector(e, t, s) {
|
|
8601
8601
|
const { viewId: o, scenePath: n } = s;
|
|
8602
8602
|
for (const a of Object.keys(this.storage[o][n]))
|
|
8603
|
-
if (a !== e && this.getLocalId(a) ===
|
|
8603
|
+
if (a !== e && this.getLocalId(a) === H) {
|
|
8604
8604
|
const c = this.storage[o][n][a];
|
|
8605
8605
|
if (c && c.selectIds) {
|
|
8606
8606
|
const l = c.selectIds.filter((u) => !t.includes(u));
|
|
@@ -8729,7 +8729,7 @@ const it = class it extends Yy {
|
|
|
8729
8729
|
this.removeStorageStateListener(), this.serviceStorage = {}, this.storage = {}, this.removeAuthStateListener(), this.authStorage = {};
|
|
8730
8730
|
}
|
|
8731
8731
|
dispatchPageAuth(e, t = !0) {
|
|
8732
|
-
var l, u, h, d, f, g, p, y, w, m, N, S, I, v, x, D, L, z, j, E, O, P, Q, ee, U,
|
|
8732
|
+
var l, u, h, d, f, g, p, y, w, m, N, S, I, v, x, D, L, z, j, E, O, P, Q, ee, U, $, te, le, oe, q, G, ge, $e, Oe, ze, _, Re, Qe;
|
|
8733
8733
|
const { operation: s, viewId: o, scenePath: n, pageId: a, pageData: c } = e;
|
|
8734
8734
|
switch (s) {
|
|
8735
8735
|
case Ze.addPage: {
|
|
@@ -8805,7 +8805,7 @@ const it = class it extends Yy {
|
|
|
8805
8805
|
case Ze.deleteElement: {
|
|
8806
8806
|
if (!o || !n || !a || !(c != null && c.elementId))
|
|
8807
8807
|
return;
|
|
8808
|
-
(q = (oe = (le = (te = (
|
|
8808
|
+
(q = (oe = (le = (te = ($ = (U = this.authStorage) == null ? void 0 : U.pageAuth) == null ? void 0 : $[o]) == null ? void 0 : te[n]) == null ? void 0 : le.pages) == null ? void 0 : oe[a]) != null && q[c.elementId] && (delete this.authStorage.pageAuth[o][n].pages[a][c.elementId], t && ((G = this.plugin) == null || G.updateAttributes(
|
|
8809
8809
|
[
|
|
8810
8810
|
this.authSpace,
|
|
8811
8811
|
"pageAuth",
|
|
@@ -8822,7 +8822,7 @@ const it = class it extends Yy {
|
|
|
8822
8822
|
case Ze.clearViewScenePath: {
|
|
8823
8823
|
if (!o || !n)
|
|
8824
8824
|
return;
|
|
8825
|
-
(Oe = (
|
|
8825
|
+
(Oe = ($e = (ge = this.authStorage) == null ? void 0 : ge.pageAuth) == null ? void 0 : $e[o]) != null && Oe[n] && (delete this.authStorage.pageAuth[o][n], t && ((ze = this.plugin) == null || ze.updateAttributes(
|
|
8826
8826
|
[this.authSpace, "pageAuth", o, n],
|
|
8827
8827
|
void 0
|
|
8828
8828
|
)));
|
|
@@ -8861,22 +8861,22 @@ const it = class it extends Yy {
|
|
|
8861
8861
|
P[o].render = !0;
|
|
8862
8862
|
else if (qe(Q)) {
|
|
8863
8863
|
P[o].render = {};
|
|
8864
|
-
for (const
|
|
8865
|
-
P[o].render[
|
|
8864
|
+
for (const $ of Q.keys())
|
|
8865
|
+
P[o].render[$] = !0;
|
|
8866
8866
|
}
|
|
8867
8867
|
if (ee === !0)
|
|
8868
8868
|
P[o].hide = !0;
|
|
8869
8869
|
else if (qe(ee)) {
|
|
8870
8870
|
P[o].hide = {};
|
|
8871
|
-
for (const
|
|
8872
|
-
P[o].hide[
|
|
8871
|
+
for (const $ of ee.keys())
|
|
8872
|
+
P[o].hide[$] = !0;
|
|
8873
8873
|
}
|
|
8874
8874
|
if (U === !0)
|
|
8875
8875
|
P[o].clear = !0;
|
|
8876
8876
|
else if (qe(U)) {
|
|
8877
8877
|
P[o].clear = {};
|
|
8878
|
-
for (const
|
|
8879
|
-
P[o].clear[
|
|
8878
|
+
for (const $ of U.keys())
|
|
8879
|
+
P[o].clear[$] = !0;
|
|
8880
8880
|
}
|
|
8881
8881
|
t && (O.length === 1 ? (u = this.plugin) == null || u.updateAttributes(
|
|
8882
8882
|
O,
|
|
@@ -9552,7 +9552,10 @@ class Fy {
|
|
|
9552
9552
|
se(l.consumPoint[0]) && se(l.consumPoint[1]) && (l.consumPoint = this.control.viewContainerManager.transformToOriginPoint(
|
|
9553
9553
|
l.consumPoint,
|
|
9554
9554
|
u
|
|
9555
|
-
)), this.control.renderControl.isFilterCursor(u) && c.unshift({
|
|
9555
|
+
)), this.control.renderControl.isFilterCursor(u) && c.unshift({
|
|
9556
|
+
...l,
|
|
9557
|
+
timestamp: this.control.worker.now
|
|
9558
|
+
});
|
|
9556
9559
|
}
|
|
9557
9560
|
this.willConsumeEventWorkers.set(s, c), this.runAnimation();
|
|
9558
9561
|
}
|
|
@@ -9585,7 +9588,7 @@ class Fy {
|
|
|
9585
9588
|
}
|
|
9586
9589
|
animationCursor() {
|
|
9587
9590
|
this.animationId = void 0;
|
|
9588
|
-
const i =
|
|
9591
|
+
const i = this.control.worker.now;
|
|
9589
9592
|
for (const [t, s] of this.animationDrawWorkers.entries()) {
|
|
9590
9593
|
const { uid: o, viewId: n } = this.getUidAndviewId(t), a = this.roomMember.getRoomMember(o);
|
|
9591
9594
|
if (!a) {
|
|
@@ -9709,7 +9712,7 @@ class Fy {
|
|
|
9709
9712
|
consumPoint: l,
|
|
9710
9713
|
workState: s,
|
|
9711
9714
|
viewId: o,
|
|
9712
|
-
timestamp:
|
|
9715
|
+
timestamp: this.control.worker.now
|
|
9713
9716
|
};
|
|
9714
9717
|
if (s === A.Start || s === A.Done) {
|
|
9715
9718
|
const h = this.willConsumeEventWorkers.get(t);
|
|
@@ -9858,7 +9861,7 @@ class Vy extends at {
|
|
|
9858
9861
|
n
|
|
9859
9862
|
)) == null ? void 0 : c[d];
|
|
9860
9863
|
if (f) {
|
|
9861
|
-
if (l ===
|
|
9864
|
+
if (l === H) {
|
|
9862
9865
|
const g = f && this.copySelector({
|
|
9863
9866
|
viewId: s,
|
|
9864
9867
|
store: f
|
|
@@ -10271,7 +10274,7 @@ class Zy extends at {
|
|
|
10271
10274
|
!p && this.serviceColloctor.isOwn(w) && (w = this.serviceColloctor.getLocalId(w));
|
|
10272
10275
|
const m = Ye(l[o][a][y]);
|
|
10273
10276
|
let N;
|
|
10274
|
-
if (m && w ===
|
|
10277
|
+
if (m && w === H) {
|
|
10275
10278
|
if (m.selectIds) {
|
|
10276
10279
|
h.push(...m.selectIds), h.sort((x, D) => {
|
|
10277
10280
|
var j, E, O, P;
|
|
@@ -10317,7 +10320,7 @@ class Zy extends at {
|
|
|
10317
10320
|
}
|
|
10318
10321
|
}
|
|
10319
10322
|
}
|
|
10320
|
-
class
|
|
10323
|
+
class Hy extends at {
|
|
10321
10324
|
constructor() {
|
|
10322
10325
|
super(...arguments);
|
|
10323
10326
|
M(this, "lastEmtData");
|
|
@@ -10345,7 +10348,7 @@ class $y extends at {
|
|
|
10345
10348
|
let I = m;
|
|
10346
10349
|
!N && this.serviceColloctor.isOwn(I) && (I = this.serviceColloctor.getLocalId(I));
|
|
10347
10350
|
const v = (y = (p = h == null ? void 0 : h[a]) == null ? void 0 : p[l]) == null ? void 0 : y[S];
|
|
10348
|
-
if (v && I ===
|
|
10351
|
+
if (v && I === H) {
|
|
10349
10352
|
if (v.selectIds) {
|
|
10350
10353
|
const x = this.control.viewContainerManager.transformToScenePoint(
|
|
10351
10354
|
[o.x, o.y],
|
|
@@ -10385,7 +10388,7 @@ class $y extends at {
|
|
|
10385
10388
|
n === A.Start ? this.mainEngine.unWritable() : n === A.Done && (this.mainEngine.abled(), this.lastEmtData = void 0), d.length && this.collectForLocalWorker(d, t);
|
|
10386
10389
|
}
|
|
10387
10390
|
}
|
|
10388
|
-
class
|
|
10391
|
+
class $y extends at {
|
|
10389
10392
|
constructor() {
|
|
10390
10393
|
super(...arguments);
|
|
10391
10394
|
M(this, "lastEmtData");
|
|
@@ -10480,14 +10483,14 @@ class Gy extends at {
|
|
|
10480
10483
|
let O = z;
|
|
10481
10484
|
!j && this.serviceColloctor.isOwn(O) && (O = this.serviceColloctor.getLocalId(O));
|
|
10482
10485
|
const P = (S = (N = p == null ? void 0 : p[n]) == null ? void 0 : N[f]) == null ? void 0 : S[E];
|
|
10483
|
-
if (P && O ===
|
|
10486
|
+
if (P && O === H && P.selectIds) {
|
|
10484
10487
|
const Q = P.updateNodeOpt || {};
|
|
10485
10488
|
if (Q.dir = l, Q.originPoint = a, Q.scenePoint = c, Q.workState = o, Q.scale = u, Q.translate = h, o === A.Start) {
|
|
10486
10489
|
this.cacheTextInfo.clear();
|
|
10487
10490
|
for (const U of P.selectIds) {
|
|
10488
|
-
const
|
|
10491
|
+
const $ = (I = this.serviceColloctor) == null ? void 0 : I.isLocalId(U), te = $ && ((v = this.serviceColloctor) == null ? void 0 : v.transformKey(U)) || U;
|
|
10489
10492
|
let le = te;
|
|
10490
|
-
|
|
10493
|
+
!$ && ((x = this.serviceColloctor) != null && x.isOwn(te)) && (le = this.serviceColloctor.getLocalId(te));
|
|
10491
10494
|
const oe = this.control.textEditorManager.get(le);
|
|
10492
10495
|
oe && o === A.Start && this.targetText.set(le, Ye(oe));
|
|
10493
10496
|
}
|
|
@@ -10495,18 +10498,18 @@ class Gy extends at {
|
|
|
10495
10498
|
if (this.targetText.size && o !== A.Start && u) {
|
|
10496
10499
|
const U = [];
|
|
10497
10500
|
for (const [te, le] of this.targetText.entries()) {
|
|
10498
|
-
const { opt: oe } = le, q = Math.floor(oe.fontSize * u[0]), G = this.cacheTextInfo.get(te), ge = !G && oe.fontSize !== q || G && G.fontSize !== q || !1,
|
|
10499
|
-
if (ge &&
|
|
10501
|
+
const { opt: oe } = le, q = Math.floor(oe.fontSize * u[0]), G = this.cacheTextInfo.get(te), ge = !G && oe.fontSize !== q || G && G.fontSize !== q || !1, $e = (D = this.control.textEditorManager.get(te)) == null ? void 0 : D.opt;
|
|
10502
|
+
if (ge && $e && oe.boxSize && oe.boxPoint) {
|
|
10500
10503
|
const Oe = this.setTextStyle(
|
|
10501
10504
|
te,
|
|
10502
|
-
{
|
|
10505
|
+
{ ...$e, fontSize: q },
|
|
10503
10506
|
n
|
|
10504
10507
|
);
|
|
10505
10508
|
U.push(Oe);
|
|
10506
10509
|
}
|
|
10507
10510
|
}
|
|
10508
|
-
const
|
|
10509
|
-
for (const te of
|
|
10511
|
+
const $ = await Promise.all(U);
|
|
10512
|
+
for (const te of $)
|
|
10510
10513
|
if (te) {
|
|
10511
10514
|
const { key: le, textInfo: oe } = te;
|
|
10512
10515
|
this.cacheTextInfo.set(le, {
|
|
@@ -10573,7 +10576,7 @@ class Xy extends at {
|
|
|
10573
10576
|
let L = v;
|
|
10574
10577
|
!x && this.serviceColloctor.isOwn(L) && (L = this.serviceColloctor.getLocalId(L));
|
|
10575
10578
|
const z = (y = (p = h == null ? void 0 : h[a]) == null ? void 0 : p[l]) == null ? void 0 : y[D];
|
|
10576
|
-
if (z && L ===
|
|
10579
|
+
if (z && L === H) {
|
|
10577
10580
|
if (((w = z.selectIds) == null ? void 0 : w.length) === 1) {
|
|
10578
10581
|
const j = z.selectIds[0];
|
|
10579
10582
|
if (n === A.Start) {
|
|
@@ -10681,15 +10684,15 @@ class Ky extends at {
|
|
|
10681
10684
|
y.push(Q);
|
|
10682
10685
|
continue;
|
|
10683
10686
|
}
|
|
10684
|
-
if (O && E ===
|
|
10687
|
+
if (O && E === H && ((S = O.selectIds) != null && S.length))
|
|
10685
10688
|
for (const Q of O.selectIds) {
|
|
10686
10689
|
const ee = (I = this.serviceColloctor) == null ? void 0 : I.isLocalId(Q);
|
|
10687
10690
|
let U = ee && ((v = this.serviceColloctor) == null ? void 0 : v.transformKey(Q)) || Q;
|
|
10688
|
-
const
|
|
10689
|
-
if (!ee && ((x = this.serviceColloctor) != null && x.isOwn(U)) && (U = this.serviceColloctor.getLocalId(U)),
|
|
10691
|
+
const $ = f[c][h][U] || void 0;
|
|
10692
|
+
if (!ee && ((x = this.serviceColloctor) != null && x.isOwn(U)) && (U = this.serviceColloctor.getLocalId(U)), $ && $.toolsType === T.Text && O.opt) {
|
|
10690
10693
|
const te = this.setTextStyle(
|
|
10691
10694
|
U,
|
|
10692
|
-
pe(
|
|
10695
|
+
pe($),
|
|
10693
10696
|
P,
|
|
10694
10697
|
c
|
|
10695
10698
|
);
|
|
@@ -10738,7 +10741,7 @@ class qy extends at {
|
|
|
10738
10741
|
let y = f;
|
|
10739
10742
|
!g && this.serviceColloctor.isOwn(y) && (y = this.serviceColloctor.getLocalId(y));
|
|
10740
10743
|
const w = (S = (N = l == null ? void 0 : l[n]) == null ? void 0 : N[c]) == null ? void 0 : S[p];
|
|
10741
|
-
if (w && y ===
|
|
10744
|
+
if (w && y === H && w.selectIds) {
|
|
10742
10745
|
const I = w.updateNodeOpt || {};
|
|
10743
10746
|
I.pointMap = s, I.workState = o;
|
|
10744
10747
|
const v = {
|
|
@@ -10844,7 +10847,7 @@ class em extends at {
|
|
|
10844
10847
|
...o,
|
|
10845
10848
|
willRefresh: !0
|
|
10846
10849
|
};
|
|
10847
|
-
if (N && m ===
|
|
10850
|
+
if (N && m === H) {
|
|
10848
10851
|
const I = {
|
|
10849
10852
|
workId: m,
|
|
10850
10853
|
msgType: b.UpdateNode,
|
|
@@ -10882,7 +10885,7 @@ class ce {
|
|
|
10882
10885
|
build(i) {
|
|
10883
10886
|
switch (i) {
|
|
10884
10887
|
case B.TranslateNode:
|
|
10885
|
-
return new
|
|
10888
|
+
return new Hy();
|
|
10886
10889
|
case B.ZIndexNode:
|
|
10887
10890
|
return new Zy();
|
|
10888
10891
|
case B.CopyNode:
|
|
@@ -10890,7 +10893,7 @@ class ce {
|
|
|
10890
10893
|
case B.SetColorNode:
|
|
10891
10894
|
return new Qy();
|
|
10892
10895
|
case B.DeleteNode:
|
|
10893
|
-
return new
|
|
10896
|
+
return new $y();
|
|
10894
10897
|
case B.ScaleNode:
|
|
10895
10898
|
return new Gy();
|
|
10896
10899
|
case B.RotateNode:
|
|
@@ -11052,7 +11055,7 @@ class im {
|
|
|
11052
11055
|
});
|
|
11053
11056
|
}
|
|
11054
11057
|
createLayer(i, e, t) {
|
|
11055
|
-
const { width: s, height: o } = t, n = `canvas-${i}`, a = e.layer(n, { ...t, offscreen: !1 }), c = new
|
|
11058
|
+
const { width: s, height: o } = t, n = `canvas-${i}`, a = e.layer(n, { ...t, offscreen: !1 }), c = new He({
|
|
11056
11059
|
anchor: [0.5, 0.5],
|
|
11057
11060
|
pos: [s * 0.5, o * 0.5],
|
|
11058
11061
|
size: [s, o],
|
|
@@ -11410,7 +11413,7 @@ class rm extends nm {
|
|
|
11410
11413
|
}
|
|
11411
11414
|
async useMainThread() {
|
|
11412
11415
|
console.info("no OffscreenCanvas");
|
|
11413
|
-
const { MainThreadManagerImpl: e } = await import("./index-
|
|
11416
|
+
const { MainThreadManagerImpl: e } = await import("./index-CgNZ4Jek.mjs");
|
|
11414
11417
|
this.mainThread = new e(this);
|
|
11415
11418
|
}
|
|
11416
11419
|
async on() {
|
|
@@ -11552,14 +11555,14 @@ class rm extends nm {
|
|
|
11552
11555
|
dataType: Q,
|
|
11553
11556
|
canLock: ee,
|
|
11554
11557
|
isLocked: U,
|
|
11555
|
-
shapeOpt:
|
|
11558
|
+
shapeOpt: $,
|
|
11556
11559
|
toolsTypes: te,
|
|
11557
11560
|
thickness: le,
|
|
11558
11561
|
strokeType: oe,
|
|
11559
11562
|
useStroke: q,
|
|
11560
11563
|
isgl: G,
|
|
11561
11564
|
imageSrc: ge,
|
|
11562
|
-
isSubWorker:
|
|
11565
|
+
isSubWorker: $e,
|
|
11563
11566
|
updateNodeOpt: Oe
|
|
11564
11567
|
} = c;
|
|
11565
11568
|
if (!P)
|
|
@@ -11568,7 +11571,7 @@ class rm extends nm {
|
|
|
11568
11571
|
switch (l) {
|
|
11569
11572
|
case b.Select: {
|
|
11570
11573
|
const _ = u != null && u.length ? { ...d, selectIds: u, canvasHeight: m, canvasWidth: N, points: x } : void 0;
|
|
11571
|
-
_ && (h != null && h.strokeColor) && (_.selectorColor = h.strokeColor), _ && D && (_.selectorColor = D), _ && f && (_.strokeColor = f), _ && (h != null && h.fillColor) && (_.fillColor = h.fillColor), _ && g && (_.fillColor = g), _ && _e(L) && (_.canRotate = L), _ && z && (_.scaleType = z), _ && v && (_.canTextEdit = v), _ && j && (_.textOpt = j), _ && _e(ee) && (_.canLock = ee), _ && _e(U) && (_.isLocked = U), _ &&
|
|
11574
|
+
_ && (h != null && h.strokeColor) && (_.selectorColor = h.strokeColor), _ && D && (_.selectorColor = D), _ && f && (_.strokeColor = f), _ && (h != null && h.fillColor) && (_.fillColor = h.fillColor), _ && g && (_.fillColor = g), _ && _e(L) && (_.canRotate = L), _ && z && (_.scaleType = z), _ && v && (_.canTextEdit = v), _ && j && (_.textOpt = j), _ && _e(ee) && (_.canLock = ee), _ && _e(U) && (_.isLocked = U), _ && $ && (_.shapeOpt = $), _ && te && (_.toolsTypes = te), _ && le && (_.thickness = le), _ && oe && (_.strokeType = oe), _ && _e(q) && (_.useStroke = q), P && this.viewContainerManager.showFloatBar(P, !!_, _), p && ((s = this.collector) == null || s.dispatch({
|
|
11572
11575
|
type: l,
|
|
11573
11576
|
selectIds: u,
|
|
11574
11577
|
opt: h,
|
|
@@ -11652,12 +11655,12 @@ class rm extends nm {
|
|
|
11652
11655
|
workId: O,
|
|
11653
11656
|
viewId: P,
|
|
11654
11657
|
imageSrc: ge,
|
|
11655
|
-
isSubWorker:
|
|
11658
|
+
isSubWorker: $e,
|
|
11656
11659
|
imageBitmap: _
|
|
11657
11660
|
}), !this.control.hasOffscreenCanvas())
|
|
11658
11661
|
(Qe = this.mainThread) == null || Qe.consume(Re);
|
|
11659
11662
|
else {
|
|
11660
|
-
const Z =
|
|
11663
|
+
const Z = $e ? this.subWorker : this.fullWorker;
|
|
11661
11664
|
_ ? Z.postMessage(Re, [_]) : Z.postMessage(Re);
|
|
11662
11665
|
}
|
|
11663
11666
|
});
|
|
@@ -11847,7 +11850,7 @@ class rm extends nm {
|
|
|
11847
11850
|
onLocalEventStart(e, t) {
|
|
11848
11851
|
var c, l, u;
|
|
11849
11852
|
this.viewContainerManager.focuedViewId !== t && this.viewContainerManager.setFocuedViewId(t), this.isCanDrawWork && this.control.room && !this.control.room.disableDeviceInputs && (this.control.room.disableDeviceInputs = !0);
|
|
11850
|
-
const s = (c = this.currentToolsData) == null ? void 0 : c.toolsType, o = s === T.Selector ?
|
|
11853
|
+
const s = (c = this.currentToolsData) == null ? void 0 : c.toolsType, o = s === T.Selector ? H : this.newWorkId, n = this.setZIndex(t);
|
|
11851
11854
|
this.setCurrentLocalWorkData({
|
|
11852
11855
|
workState: A.Start,
|
|
11853
11856
|
toolsOpt: n,
|
|
@@ -12046,7 +12049,7 @@ class rm extends nm {
|
|
|
12046
12049
|
const { newValue: s, oldValue: o, viewId: n, scenePath: a } = t, c = pe(s) || {}, l = e;
|
|
12047
12050
|
let u = c.type;
|
|
12048
12051
|
if (!s && o) {
|
|
12049
|
-
if (l && ((f = this.collector) == null ? void 0 : f.getLocalId(l)) ===
|
|
12052
|
+
if (l && ((f = this.collector) == null ? void 0 : f.getLocalId(l)) === H) {
|
|
12050
12053
|
this.collector.isOwn(l) ? this.blurSelector(n, a) : this.blurSelector(n, a, l);
|
|
12051
12054
|
return;
|
|
12052
12055
|
}
|
|
@@ -12516,7 +12519,7 @@ class rm extends nm {
|
|
|
12516
12519
|
return;
|
|
12517
12520
|
if (Object.keys(n).forEach((a) => {
|
|
12518
12521
|
var c;
|
|
12519
|
-
((c = this.collector) == null ? void 0 : c.getLocalId(a)) ===
|
|
12522
|
+
((c = this.collector) == null ? void 0 : c.getLocalId(a)) === H && delete n[a];
|
|
12520
12523
|
}), Object.keys(n).length && this.viewContainerManager.mainView && this.viewContainerManager.mainView.cameraOpt) {
|
|
12521
12524
|
const a = {
|
|
12522
12525
|
msgType: b.BoundingBox,
|
|
@@ -12544,7 +12547,7 @@ class rm extends nm {
|
|
|
12544
12547
|
return;
|
|
12545
12548
|
if (Object.keys(f).forEach((g) => {
|
|
12546
12549
|
var p;
|
|
12547
|
-
((p = this.collector) == null ? void 0 : p.getLocalId(g)) ===
|
|
12550
|
+
((p = this.collector) == null ? void 0 : p.getLocalId(g)) === H && delete f[g];
|
|
12548
12551
|
}), Object.keys(f).length) {
|
|
12549
12552
|
const g = this.viewContainerManager.mainView;
|
|
12550
12553
|
if (!g)
|
|
@@ -12721,7 +12724,7 @@ class rm extends nm {
|
|
|
12721
12724
|
}
|
|
12722
12725
|
setShapeSelectorByWorkId(e, t) {
|
|
12723
12726
|
this.taskBatchData.add({
|
|
12724
|
-
workId:
|
|
12727
|
+
workId: H,
|
|
12725
12728
|
selectIds: [e],
|
|
12726
12729
|
msgType: b.Select,
|
|
12727
12730
|
dataType: F.Local,
|
|
@@ -12731,7 +12734,7 @@ class rm extends nm {
|
|
|
12731
12734
|
}
|
|
12732
12735
|
blurSelector(e, t, s) {
|
|
12733
12736
|
this.taskBatchData.add({
|
|
12734
|
-
workId: s ||
|
|
12737
|
+
workId: s || H,
|
|
12735
12738
|
selectIds: [],
|
|
12736
12739
|
msgType: b.Select,
|
|
12737
12740
|
dataType: F.Service,
|
|
@@ -12851,8 +12854,8 @@ class am {
|
|
|
12851
12854
|
this.control = e, this.internalMsgEmitter = t, this.roomHotkeyCheckers = ((s = this.control.room) == null ? void 0 : s.viewsParams.hotKeys.nodes) || [];
|
|
12852
12855
|
}
|
|
12853
12856
|
get isUseSelf() {
|
|
12854
|
-
var i;
|
|
12855
|
-
return ((i = this.control) == null ? void 0 : i.disableDeviceInputs) || !1;
|
|
12857
|
+
var i, e;
|
|
12858
|
+
return ((e = (i = this.control) == null ? void 0 : i.room) == null ? void 0 : e.disableDeviceInputs) || !1;
|
|
12856
12859
|
}
|
|
12857
12860
|
get isSelector() {
|
|
12858
12861
|
var i;
|
|
@@ -12883,7 +12886,7 @@ class am {
|
|
|
12883
12886
|
this.isSelector && ((o = this.collector) != null && o.hasSelector(e, t)) && ce.emitMethod(
|
|
12884
12887
|
re.MainEngine,
|
|
12885
12888
|
B.DeleteNode,
|
|
12886
|
-
{ workIds: [
|
|
12889
|
+
{ workIds: [H], viewId: e }
|
|
12887
12890
|
);
|
|
12888
12891
|
break;
|
|
12889
12892
|
case "copy":
|
|
@@ -12919,10 +12922,7 @@ class am {
|
|
|
12919
12922
|
this.setMemberState({ currentApplianceName: ae.ellipse });
|
|
12920
12923
|
break;
|
|
12921
12924
|
case "changeToEraser":
|
|
12922
|
-
this.setMemberState({
|
|
12923
|
-
currentApplianceName: ae.eraser,
|
|
12924
|
-
isLine: !0
|
|
12925
|
-
});
|
|
12925
|
+
this.setMemberState({ currentApplianceName: ae.eraser });
|
|
12926
12926
|
break;
|
|
12927
12927
|
case "changeToHand":
|
|
12928
12928
|
this.setMemberState({ currentApplianceName: ae.hand });
|
|
@@ -12950,6 +12950,16 @@ class am {
|
|
|
12950
12950
|
case "changeToText":
|
|
12951
12951
|
this.setMemberState({ currentApplianceName: ae.text });
|
|
12952
12952
|
break;
|
|
12953
|
+
case "changeToPencilEraser":
|
|
12954
|
+
this.setMemberState({
|
|
12955
|
+
currentApplianceName: ae.pencilEraser
|
|
12956
|
+
});
|
|
12957
|
+
break;
|
|
12958
|
+
case "delete":
|
|
12959
|
+
case "copy":
|
|
12960
|
+
case "paste":
|
|
12961
|
+
this.onActiveHotkey(i);
|
|
12962
|
+
break;
|
|
12953
12963
|
}
|
|
12954
12964
|
}
|
|
12955
12965
|
checkHotkey(i) {
|
|
@@ -12976,7 +12986,7 @@ class am {
|
|
|
12976
12986
|
);
|
|
12977
12987
|
if (!t || !this.collector || !s)
|
|
12978
12988
|
return;
|
|
12979
|
-
const o = this.collector.transformKey(
|
|
12989
|
+
const o = this.collector.transformKey(H), n = this.collector.getStorageData(
|
|
12980
12990
|
i,
|
|
12981
12991
|
e
|
|
12982
12992
|
);
|
|
@@ -14127,7 +14137,7 @@ const zt = class zt {
|
|
|
14127
14137
|
var t, s;
|
|
14128
14138
|
if (this.collector && (this.undoTickerId !== i || this.scenePath !== e)) {
|
|
14129
14139
|
!this.undoTickerId && !this.tickStartStorerCache && !this.scenePath && this.emitter.emit("onCanUndoStepsUpdate", 1), this.undoTickerId && this.viewId && this.scenePath && this.undoTickerEndSync(this.undoTickerId, this.viewId, this.scenePath), this.isTicking = !0;
|
|
14130
|
-
const o = this.collector.transformKey(
|
|
14140
|
+
const o = this.collector.transformKey(H);
|
|
14131
14141
|
this.excludeIds.add(o), this.undoTickerId = i, this.scenePath = e;
|
|
14132
14142
|
const n = ((t = this.collector) == null ? void 0 : t.storage[this.viewId]) && ((s = this.collector) == null ? void 0 : s.storage[this.viewId][this.scenePath]) || {};
|
|
14133
14143
|
this.tickStartStorerCache = new Map(Object.entries(pe(n)));
|
|
@@ -14263,7 +14273,7 @@ const zt = class zt {
|
|
|
14263
14273
|
const o = e.filter(
|
|
14264
14274
|
(a) => {
|
|
14265
14275
|
var c, l;
|
|
14266
|
-
return ((c = this.collector) == null ? void 0 : c.getLocalId(a)) ===
|
|
14276
|
+
return ((c = this.collector) == null ? void 0 : c.getLocalId(a)) === H && !((l = this.collector) != null && l.isOwn(a));
|
|
14267
14277
|
}
|
|
14268
14278
|
).map((a) => {
|
|
14269
14279
|
var c;
|
|
@@ -14282,7 +14292,7 @@ const zt = class zt {
|
|
|
14282
14292
|
const o = e.filter(
|
|
14283
14293
|
(a) => {
|
|
14284
14294
|
var c, l;
|
|
14285
|
-
return ((c = this.collector) == null ? void 0 : c.getLocalId(a)) ===
|
|
14295
|
+
return ((c = this.collector) == null ? void 0 : c.getLocalId(a)) === H && !((l = this.collector) != null && l.isOwn(a));
|
|
14286
14296
|
}
|
|
14287
14297
|
).map((a) => {
|
|
14288
14298
|
var c;
|
|
@@ -14310,13 +14320,13 @@ const zt = class zt {
|
|
|
14310
14320
|
case 1:
|
|
14311
14321
|
if (t = e ? this.isDrawEffectiveScene(E, U) : this.isDeleteEffectiveScene(E, U, s), t)
|
|
14312
14322
|
if (e && !Array.isArray(P)) {
|
|
14313
|
-
if ((a = P.updateNodeOpt) != null && a.useAnimation && (P.updateNodeOpt.useAnimation = !1), ((c = this.collector) == null ? void 0 : c.getLocalId(Q)) ===
|
|
14314
|
-
const
|
|
14315
|
-
if (
|
|
14323
|
+
if ((a = P.updateNodeOpt) != null && a.useAnimation && (P.updateNodeOpt.useAnimation = !1), ((c = this.collector) == null ? void 0 : c.getLocalId(Q)) === H && ((l = this.collector) != null && l.isOwn(E.key))) {
|
|
14324
|
+
const $ = P.selectIds;
|
|
14325
|
+
if ($) {
|
|
14316
14326
|
const te = U.filter(
|
|
14317
14327
|
(oe) => {
|
|
14318
14328
|
var q, G;
|
|
14319
|
-
return ((q = this.collector) == null ? void 0 : q.getLocalId(oe)) ===
|
|
14329
|
+
return ((q = this.collector) == null ? void 0 : q.getLocalId(oe)) === H && !((G = this.collector) != null && G.isOwn(oe));
|
|
14320
14330
|
}
|
|
14321
14331
|
).map(
|
|
14322
14332
|
(oe) => {
|
|
@@ -14326,9 +14336,9 @@ const zt = class zt {
|
|
|
14326
14336
|
);
|
|
14327
14337
|
let le = !1;
|
|
14328
14338
|
for (const oe of te)
|
|
14329
|
-
for (let q = 0; q <
|
|
14330
|
-
(u = oe == null ? void 0 : oe.selectIds) != null && u.includes(
|
|
14331
|
-
le && (P.selectIds =
|
|
14339
|
+
for (let q = 0; q < $.length; q++)
|
|
14340
|
+
(u = oe == null ? void 0 : oe.selectIds) != null && u.includes($[q]) && (delete $[q], le = !0);
|
|
14341
|
+
le && (P.selectIds = $.filter((oe) => !!oe));
|
|
14332
14342
|
}
|
|
14333
14343
|
}
|
|
14334
14344
|
(h = this.collector) == null || h.updateValue(E.key, P, {
|
|
@@ -14354,13 +14364,13 @@ const zt = class zt {
|
|
|
14354
14364
|
storage: n
|
|
14355
14365
|
});
|
|
14356
14366
|
else if (!e && !Array.isArray(P)) {
|
|
14357
|
-
if ((g = P.updateNodeOpt) != null && g.useAnimation && (P.updateNodeOpt.useAnimation = !1), ((p = this.collector) == null ? void 0 : p.getLocalId(E.key)) ===
|
|
14358
|
-
const
|
|
14359
|
-
if (
|
|
14367
|
+
if ((g = P.updateNodeOpt) != null && g.useAnimation && (P.updateNodeOpt.useAnimation = !1), ((p = this.collector) == null ? void 0 : p.getLocalId(E.key)) === H && ((y = this.collector) != null && y.isOwn(E.key))) {
|
|
14368
|
+
const $ = P.selectIds;
|
|
14369
|
+
if ($) {
|
|
14360
14370
|
const te = U.filter(
|
|
14361
14371
|
(oe) => {
|
|
14362
14372
|
var q, G;
|
|
14363
|
-
return ((q = this.collector) == null ? void 0 : q.getLocalId(oe)) ===
|
|
14373
|
+
return ((q = this.collector) == null ? void 0 : q.getLocalId(oe)) === H && !((G = this.collector) != null && G.isOwn(oe));
|
|
14364
14374
|
}
|
|
14365
14375
|
).map(
|
|
14366
14376
|
(oe) => {
|
|
@@ -14370,9 +14380,9 @@ const zt = class zt {
|
|
|
14370
14380
|
);
|
|
14371
14381
|
let le = !1;
|
|
14372
14382
|
for (const oe of te)
|
|
14373
|
-
for (let q = 0; q <
|
|
14374
|
-
(w = oe == null ? void 0 : oe.selectIds) != null && w.includes(
|
|
14375
|
-
le && (P.selectIds =
|
|
14383
|
+
for (let q = 0; q < $.length; q++)
|
|
14384
|
+
(w = oe == null ? void 0 : oe.selectIds) != null && w.includes($[q]) && (delete $[q], le = !0);
|
|
14385
|
+
le && (P.selectIds = $.filter((oe) => !!oe));
|
|
14376
14386
|
}
|
|
14377
14387
|
}
|
|
14378
14388
|
(m = this.collector) == null || m.updateValue(E.key, E.data, {
|
|
@@ -14387,14 +14397,14 @@ const zt = class zt {
|
|
|
14387
14397
|
case 3:
|
|
14388
14398
|
if (t = e ? this.isNewEffectiveScene(E, U) : this.isOldEffectiveScene(E, U, s), t) {
|
|
14389
14399
|
if (e && Array.isArray(P) && P.length === 2) {
|
|
14390
|
-
const
|
|
14391
|
-
if ((N =
|
|
14392
|
-
const te =
|
|
14400
|
+
const $ = P[1];
|
|
14401
|
+
if ((N = $.updateNodeOpt) != null && N.useAnimation && ($.updateNodeOpt.useAnimation = !1), ((S = this.collector) == null ? void 0 : S.getLocalId(E.key)) === H && ((I = this.collector) != null && I.isOwn(E.key))) {
|
|
14402
|
+
const te = $.selectIds;
|
|
14393
14403
|
if (te) {
|
|
14394
14404
|
const le = U.filter(
|
|
14395
14405
|
(q) => {
|
|
14396
14406
|
var G, ge;
|
|
14397
|
-
return ((G = this.collector) == null ? void 0 : G.getLocalId(q)) ===
|
|
14407
|
+
return ((G = this.collector) == null ? void 0 : G.getLocalId(q)) === H && !((ge = this.collector) != null && ge.isOwn(q));
|
|
14398
14408
|
}
|
|
14399
14409
|
).map(
|
|
14400
14410
|
(q) => {
|
|
@@ -14406,24 +14416,24 @@ const zt = class zt {
|
|
|
14406
14416
|
for (const q of le)
|
|
14407
14417
|
for (let G = 0; G < te.length; G++)
|
|
14408
14418
|
q != null && q.selectIds && ((v = q.selectIds) != null && v.includes(te[G])) && (delete te[G], oe = !0);
|
|
14409
|
-
oe && (
|
|
14419
|
+
oe && ($.selectIds = te.filter((q) => !!q));
|
|
14410
14420
|
}
|
|
14411
14421
|
}
|
|
14412
|
-
(x = this.collector) == null || x.updateValue(Q,
|
|
14422
|
+
(x = this.collector) == null || x.updateValue(Q, $, {
|
|
14413
14423
|
viewId: this.viewId,
|
|
14414
14424
|
scenePath: s,
|
|
14415
14425
|
isSync: !0,
|
|
14416
14426
|
storage: n
|
|
14417
14427
|
});
|
|
14418
14428
|
} else if (!e && Array.isArray(P) && P.length === 2) {
|
|
14419
|
-
const
|
|
14420
|
-
if ((D =
|
|
14421
|
-
const te =
|
|
14429
|
+
const $ = P[0];
|
|
14430
|
+
if ((D = $.updateNodeOpt) != null && D.useAnimation && ($.updateNodeOpt.useAnimation = !1), ((L = this.collector) == null ? void 0 : L.getLocalId(E.key)) === H && ((z = this.collector) != null && z.isOwn(E.key))) {
|
|
14431
|
+
const te = $.selectIds;
|
|
14422
14432
|
if (te) {
|
|
14423
14433
|
const le = U.filter(
|
|
14424
14434
|
(q) => {
|
|
14425
14435
|
var G, ge;
|
|
14426
|
-
return ((G = this.collector) == null ? void 0 : G.getLocalId(q)) ===
|
|
14436
|
+
return ((G = this.collector) == null ? void 0 : G.getLocalId(q)) === H && !((ge = this.collector) != null && ge.isOwn(q));
|
|
14427
14437
|
}
|
|
14428
14438
|
).map(
|
|
14429
14439
|
(q) => {
|
|
@@ -14435,10 +14445,10 @@ const zt = class zt {
|
|
|
14435
14445
|
for (const q of le)
|
|
14436
14446
|
for (let G = 0; G < te.length; G++)
|
|
14437
14447
|
q != null && q.selectIds && q.selectIds.includes(te[G]) && (delete te[G], oe = !0);
|
|
14438
|
-
oe && (
|
|
14448
|
+
oe && ($.selectIds = te.filter((q) => !!q));
|
|
14439
14449
|
}
|
|
14440
14450
|
}
|
|
14441
|
-
(j = this.collector) == null || j.updateValue(E.key,
|
|
14451
|
+
(j = this.collector) == null || j.updateValue(E.key, $, {
|
|
14442
14452
|
viewId: this.viewId,
|
|
14443
14453
|
scenePath: s,
|
|
14444
14454
|
isSync: !0,
|
|
@@ -14622,20 +14632,20 @@ class ri {
|
|
|
14622
14632
|
canvasFloatRef: P,
|
|
14623
14633
|
canvasServiceFloatRef: Q,
|
|
14624
14634
|
canvasTopRef: ee
|
|
14625
|
-
} = j, U = Math.floor(S.w * E),
|
|
14635
|
+
} = j, U = Math.floor(S.w * E), $ = Math.floor(S.h * E), te = S.x * E, le = S.y * E;
|
|
14626
14636
|
if (v) {
|
|
14627
14637
|
switch (L) {
|
|
14628
14638
|
case Ne.TopFloat:
|
|
14629
|
-
(s = (t = ee.current) == null ? void 0 : t.getContext("2d")) == null || s.clearRect(te, le, U,
|
|
14639
|
+
(s = (t = ee.current) == null ? void 0 : t.getContext("2d")) == null || s.clearRect(te, le, U, $);
|
|
14630
14640
|
break;
|
|
14631
14641
|
case Ne.Float:
|
|
14632
|
-
(n = (o = P.current) == null ? void 0 : o.getContext("2d")) == null || n.clearRect(te, le, U,
|
|
14642
|
+
(n = (o = P.current) == null ? void 0 : o.getContext("2d")) == null || n.clearRect(te, le, U, $);
|
|
14633
14643
|
break;
|
|
14634
14644
|
case Ne.ServiceFloat:
|
|
14635
|
-
(c = (a = Q.current) == null ? void 0 : a.getContext("2d")) == null || c.clearRect(te, le, U,
|
|
14645
|
+
(c = (a = Q.current) == null ? void 0 : a.getContext("2d")) == null || c.clearRect(te, le, U, $);
|
|
14636
14646
|
break;
|
|
14637
14647
|
case Ne.Bg:
|
|
14638
|
-
(u = (l = O.current) == null ? void 0 : l.getContext("2d")) == null || u.clearRect(te, le, U,
|
|
14648
|
+
(u = (l = O.current) == null ? void 0 : l.getContext("2d")) == null || u.clearRect(te, le, U, $);
|
|
14639
14649
|
break;
|
|
14640
14650
|
}
|
|
14641
14651
|
continue;
|
|
@@ -14643,18 +14653,18 @@ class ri {
|
|
|
14643
14653
|
if (D && I)
|
|
14644
14654
|
switch (D) {
|
|
14645
14655
|
case Ne.TopFloat:
|
|
14646
|
-
(d = (h = ee.current) == null ? void 0 : h.getContext("2d")) == null || d.drawImage(I, 0, 0, U,
|
|
14656
|
+
(d = (h = ee.current) == null ? void 0 : h.getContext("2d")) == null || d.drawImage(I, 0, 0, U, $, te, le, U, $);
|
|
14647
14657
|
break;
|
|
14648
14658
|
case Ne.Float: {
|
|
14649
|
-
(g = (f = P.current) == null ? void 0 : f.getContext("2d")) == null || g.drawImage(I, 0, 0, U,
|
|
14659
|
+
(g = (f = P.current) == null ? void 0 : f.getContext("2d")) == null || g.drawImage(I, 0, 0, U, $, te, le, U, $);
|
|
14650
14660
|
break;
|
|
14651
14661
|
}
|
|
14652
14662
|
case Ne.ServiceFloat: {
|
|
14653
|
-
(y = (p = Q.current) == null ? void 0 : p.getContext("2d")) == null || y.drawImage(I, 0, 0, U,
|
|
14663
|
+
(y = (p = Q.current) == null ? void 0 : p.getContext("2d")) == null || y.drawImage(I, 0, 0, U, $, te, le, U, $);
|
|
14654
14664
|
break;
|
|
14655
14665
|
}
|
|
14656
14666
|
case Ne.Bg: {
|
|
14657
|
-
(m = (w = O.current) == null ? void 0 : w.getContext("2d")) == null || m.drawImage(I, 0, 0, U,
|
|
14667
|
+
(m = (w = O.current) == null ? void 0 : w.getContext("2d")) == null || m.drawImage(I, 0, 0, U, $, te, le, U, $);
|
|
14658
14668
|
break;
|
|
14659
14669
|
}
|
|
14660
14670
|
}
|
|
@@ -15213,7 +15223,7 @@ const bm = (r) => {
|
|
|
15213
15223
|
re.MainEngine,
|
|
15214
15224
|
B.DeleteNode,
|
|
15215
15225
|
{
|
|
15216
|
-
workIds: i || [
|
|
15226
|
+
workIds: i || [H],
|
|
15217
15227
|
viewId: e.viewId
|
|
15218
15228
|
}
|
|
15219
15229
|
);
|
|
@@ -15231,7 +15241,7 @@ const bm = (r) => {
|
|
|
15231
15241
|
t.stopPropagation(), ce.emitMethod(
|
|
15232
15242
|
re.MainEngine,
|
|
15233
15243
|
B.CopyNode,
|
|
15234
|
-
{ workIds: i || [
|
|
15244
|
+
{ workIds: i || [H], viewId: e }
|
|
15235
15245
|
);
|
|
15236
15246
|
}
|
|
15237
15247
|
},
|
|
@@ -15260,7 +15270,7 @@ const bm = (r) => {
|
|
|
15260
15270
|
re.MainEngine,
|
|
15261
15271
|
B.ZIndexNode,
|
|
15262
15272
|
{
|
|
15263
|
-
workIds: [
|
|
15273
|
+
workIds: [H],
|
|
15264
15274
|
layer: wi.Top,
|
|
15265
15275
|
viewId: o == null ? void 0 : o.viewId
|
|
15266
15276
|
}
|
|
@@ -15276,7 +15286,7 @@ const bm = (r) => {
|
|
|
15276
15286
|
re.MainEngine,
|
|
15277
15287
|
B.ZIndexNode,
|
|
15278
15288
|
{
|
|
15279
|
-
workIds: [
|
|
15289
|
+
workIds: [H],
|
|
15280
15290
|
layer: wi.Bottom,
|
|
15281
15291
|
viewId: o == null ? void 0 : o.viewId
|
|
15282
15292
|
}
|
|
@@ -15534,7 +15544,7 @@ const bm = (r) => {
|
|
|
15534
15544
|
re.MainEngine,
|
|
15535
15545
|
B.SetColorNode,
|
|
15536
15546
|
{
|
|
15537
|
-
workIds: [
|
|
15547
|
+
workIds: [H],
|
|
15538
15548
|
strokeColor: I,
|
|
15539
15549
|
workState: S,
|
|
15540
15550
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -15566,7 +15576,7 @@ const bm = (r) => {
|
|
|
15566
15576
|
re.MainEngine,
|
|
15567
15577
|
B.SetColorNode,
|
|
15568
15578
|
{
|
|
15569
|
-
workIds: [
|
|
15579
|
+
workIds: [H],
|
|
15570
15580
|
thickness: m,
|
|
15571
15581
|
workState: N,
|
|
15572
15582
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -15593,7 +15603,7 @@ const bm = (r) => {
|
|
|
15593
15603
|
re.MainEngine,
|
|
15594
15604
|
B.SetColorNode,
|
|
15595
15605
|
{
|
|
15596
|
-
workIds: [
|
|
15606
|
+
workIds: [H],
|
|
15597
15607
|
strokeType: m,
|
|
15598
15608
|
workState: A.Done,
|
|
15599
15609
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -15629,7 +15639,7 @@ const bm = (r) => {
|
|
|
15629
15639
|
re.MainEngine,
|
|
15630
15640
|
B.SetColorNode,
|
|
15631
15641
|
{
|
|
15632
|
-
workIds: [
|
|
15642
|
+
workIds: [H],
|
|
15633
15643
|
workState: A.Done,
|
|
15634
15644
|
strokeColor: v,
|
|
15635
15645
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -15702,7 +15712,7 @@ const bm = (r) => {
|
|
|
15702
15712
|
re.MainEngine,
|
|
15703
15713
|
B.SetColorNode,
|
|
15704
15714
|
{
|
|
15705
|
-
workIds: [
|
|
15715
|
+
workIds: [H],
|
|
15706
15716
|
fillColor: c && Ee(w, y),
|
|
15707
15717
|
workState: m,
|
|
15708
15718
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -15730,7 +15740,7 @@ const bm = (r) => {
|
|
|
15730
15740
|
re.MainEngine,
|
|
15731
15741
|
B.SetColorNode,
|
|
15732
15742
|
{
|
|
15733
|
-
workIds: [
|
|
15743
|
+
workIds: [H],
|
|
15734
15744
|
workState: A.Done,
|
|
15735
15745
|
fillColor: w,
|
|
15736
15746
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -15754,7 +15764,7 @@ const bm = (r) => {
|
|
|
15754
15764
|
re.MainEngine,
|
|
15755
15765
|
B.SetColorNode,
|
|
15756
15766
|
{
|
|
15757
|
-
workIds: [
|
|
15767
|
+
workIds: [H],
|
|
15758
15768
|
workState: A.Done,
|
|
15759
15769
|
fillColor: S,
|
|
15760
15770
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -15827,7 +15837,7 @@ const bm = (r) => {
|
|
|
15827
15837
|
re.MainEngine,
|
|
15828
15838
|
B.SetColorNode,
|
|
15829
15839
|
{
|
|
15830
|
-
workIds: s || [
|
|
15840
|
+
workIds: s || [H],
|
|
15831
15841
|
fontColor: u && I,
|
|
15832
15842
|
workState: S,
|
|
15833
15843
|
viewId: a == null ? void 0 : a.viewId
|
|
@@ -15867,7 +15877,7 @@ const bm = (r) => {
|
|
|
15867
15877
|
re.MainEngine,
|
|
15868
15878
|
B.SetColorNode,
|
|
15869
15879
|
{
|
|
15870
|
-
workIds: s || [
|
|
15880
|
+
workIds: s || [H],
|
|
15871
15881
|
workState: A.Done,
|
|
15872
15882
|
fontColor: v,
|
|
15873
15883
|
viewId: a == null ? void 0 : a.viewId
|
|
@@ -15942,7 +15952,7 @@ const bm = (r) => {
|
|
|
15942
15952
|
re.MainEngine,
|
|
15943
15953
|
B.SetColorNode,
|
|
15944
15954
|
{
|
|
15945
|
-
workIds: s || [
|
|
15955
|
+
workIds: s || [H],
|
|
15946
15956
|
fontBgColor: u && Ee(N, m),
|
|
15947
15957
|
workState: S,
|
|
15948
15958
|
viewId: a == null ? void 0 : a.viewId
|
|
@@ -15977,7 +15987,7 @@ const bm = (r) => {
|
|
|
15977
15987
|
re.MainEngine,
|
|
15978
15988
|
B.SetColorNode,
|
|
15979
15989
|
{
|
|
15980
|
-
workIds: s || [
|
|
15990
|
+
workIds: s || [H],
|
|
15981
15991
|
workState: A.Done,
|
|
15982
15992
|
fontBgColor: N,
|
|
15983
15993
|
viewId: a == null ? void 0 : a.viewId
|
|
@@ -16001,7 +16011,7 @@ const bm = (r) => {
|
|
|
16001
16011
|
re.MainEngine,
|
|
16002
16012
|
B.SetColorNode,
|
|
16003
16013
|
{
|
|
16004
|
-
workIds: s || [
|
|
16014
|
+
workIds: s || [H],
|
|
16005
16015
|
workState: A.Done,
|
|
16006
16016
|
fontBgColor: Ee(S, d),
|
|
16007
16017
|
viewId: a == null ? void 0 : a.viewId
|
|
@@ -16131,7 +16141,7 @@ const bm = (r) => {
|
|
|
16131
16141
|
/* @__PURE__ */ C.createElement(
|
|
16132
16142
|
Wm,
|
|
16133
16143
|
{
|
|
16134
|
-
workIds: s || [
|
|
16144
|
+
workIds: s || [H],
|
|
16135
16145
|
bold: l,
|
|
16136
16146
|
setBold: u,
|
|
16137
16147
|
viewId: a == null ? void 0 : a.viewId
|
|
@@ -16140,7 +16150,7 @@ const bm = (r) => {
|
|
|
16140
16150
|
/* @__PURE__ */ C.createElement(
|
|
16141
16151
|
Ym,
|
|
16142
16152
|
{
|
|
16143
|
-
workIds: s || [
|
|
16153
|
+
workIds: s || [H],
|
|
16144
16154
|
underline: f,
|
|
16145
16155
|
setUnderline: g,
|
|
16146
16156
|
viewId: a == null ? void 0 : a.viewId
|
|
@@ -16149,7 +16159,7 @@ const bm = (r) => {
|
|
|
16149
16159
|
/* @__PURE__ */ C.createElement(
|
|
16150
16160
|
Um,
|
|
16151
16161
|
{
|
|
16152
|
-
workIds: s || [
|
|
16162
|
+
workIds: s || [H],
|
|
16153
16163
|
lineThrough: p,
|
|
16154
16164
|
setLineThrough: y,
|
|
16155
16165
|
viewId: a == null ? void 0 : a.viewId
|
|
@@ -16158,7 +16168,7 @@ const bm = (r) => {
|
|
|
16158
16168
|
/* @__PURE__ */ C.createElement(
|
|
16159
16169
|
Bm,
|
|
16160
16170
|
{
|
|
16161
|
-
workIds: s || [
|
|
16171
|
+
workIds: s || [H],
|
|
16162
16172
|
italic: h,
|
|
16163
16173
|
setItalic: d,
|
|
16164
16174
|
viewId: a == null ? void 0 : a.viewId
|
|
@@ -16286,7 +16296,7 @@ const bm = (r) => {
|
|
|
16286
16296
|
re.MainEngine,
|
|
16287
16297
|
B.SetFontStyle,
|
|
16288
16298
|
{
|
|
16289
|
-
workIds: o || [
|
|
16299
|
+
workIds: o || [H],
|
|
16290
16300
|
fontSize: w,
|
|
16291
16301
|
viewId: a == null ? void 0 : a.viewId
|
|
16292
16302
|
}
|
|
@@ -16354,7 +16364,7 @@ const bm = (r) => {
|
|
|
16354
16364
|
)),
|
|
16355
16365
|
p
|
|
16356
16366
|
);
|
|
16357
|
-
},
|
|
16367
|
+
}, Hm = (r) => {
|
|
16358
16368
|
const { workIds: i, mananger: e, islocked: t } = r;
|
|
16359
16369
|
return /* @__PURE__ */ C.createElement(
|
|
16360
16370
|
"div",
|
|
@@ -16365,7 +16375,7 @@ const bm = (r) => {
|
|
|
16365
16375
|
re.MainEngine,
|
|
16366
16376
|
B.SetLock,
|
|
16367
16377
|
{
|
|
16368
|
-
workIds: i || [
|
|
16378
|
+
workIds: i || [H],
|
|
16369
16379
|
isLocked: !t,
|
|
16370
16380
|
viewId: e == null ? void 0 : e.viewId
|
|
16371
16381
|
}
|
|
@@ -16424,7 +16434,7 @@ const bm = (r) => {
|
|
|
16424
16434
|
}
|
|
16425
16435
|
}
|
|
16426
16436
|
)));
|
|
16427
|
-
},
|
|
16437
|
+
}, $m = (r) => {
|
|
16428
16438
|
const { icon: i, min: e, max: t, step: s, value: o, onInputHandler: n } = r;
|
|
16429
16439
|
return /* @__PURE__ */ C.createElement("div", { className: "button input-button" }, /* @__PURE__ */ C.createElement("img", { src: Ue(i) }), /* @__PURE__ */ C.createElement(
|
|
16430
16440
|
Gm,
|
|
@@ -16549,7 +16559,7 @@ const bm = (r) => {
|
|
|
16549
16559
|
re.MainEngine,
|
|
16550
16560
|
B.SetShapeOpt,
|
|
16551
16561
|
{
|
|
16552
|
-
workIds: [
|
|
16562
|
+
workIds: [H],
|
|
16553
16563
|
toolsType: T.Star,
|
|
16554
16564
|
viewId: s.viewId,
|
|
16555
16565
|
vertices: l
|
|
@@ -16560,7 +16570,7 @@ const bm = (r) => {
|
|
|
16560
16570
|
re.MainEngine,
|
|
16561
16571
|
B.SetShapeOpt,
|
|
16562
16572
|
{
|
|
16563
|
-
workIds: [
|
|
16573
|
+
workIds: [H],
|
|
16564
16574
|
toolsType: T.Star,
|
|
16565
16575
|
viewId: s.viewId,
|
|
16566
16576
|
innerVerticeStep: l
|
|
@@ -16571,7 +16581,7 @@ const bm = (r) => {
|
|
|
16571
16581
|
re.MainEngine,
|
|
16572
16582
|
B.SetShapeOpt,
|
|
16573
16583
|
{
|
|
16574
|
-
workIds: [
|
|
16584
|
+
workIds: [H],
|
|
16575
16585
|
toolsType: T.Star,
|
|
16576
16586
|
viewId: s.viewId,
|
|
16577
16587
|
innerRatio: l
|
|
@@ -16599,7 +16609,7 @@ const bm = (r) => {
|
|
|
16599
16609
|
onInputHandler: a
|
|
16600
16610
|
}
|
|
16601
16611
|
), /* @__PURE__ */ C.createElement(
|
|
16602
|
-
|
|
16612
|
+
$m,
|
|
16603
16613
|
{
|
|
16604
16614
|
value: i,
|
|
16605
16615
|
icon: "star-innerRatio",
|
|
@@ -16615,7 +16625,7 @@ const bm = (r) => {
|
|
|
16615
16625
|
re.MainEngine,
|
|
16616
16626
|
B.SetShapeOpt,
|
|
16617
16627
|
{
|
|
16618
|
-
workIds: [
|
|
16628
|
+
workIds: [H],
|
|
16619
16629
|
toolsType: T.Polygon,
|
|
16620
16630
|
viewId: i.viewId,
|
|
16621
16631
|
vertices: o
|
|
@@ -16639,7 +16649,7 @@ const bm = (r) => {
|
|
|
16639
16649
|
re.MainEngine,
|
|
16640
16650
|
B.SetShapeOpt,
|
|
16641
16651
|
{
|
|
16642
|
-
workIds: [
|
|
16652
|
+
workIds: [H],
|
|
16643
16653
|
toolsType: T.SpeechBalloon,
|
|
16644
16654
|
viewId: i.viewId,
|
|
16645
16655
|
placement: o
|
|
@@ -16654,7 +16664,7 @@ const bm = (r) => {
|
|
|
16654
16664
|
onChangeHandler: s
|
|
16655
16665
|
}
|
|
16656
16666
|
);
|
|
16657
|
-
},
|
|
16667
|
+
}, $i = (r) => {
|
|
16658
16668
|
const { icon: i, isActive: e, onPointerUpHandler: t } = r;
|
|
16659
16669
|
return /* @__PURE__ */ C.createElement(
|
|
16660
16670
|
"div",
|
|
@@ -16703,7 +16713,7 @@ const bm = (r) => {
|
|
|
16703
16713
|
onPointerUp: pi
|
|
16704
16714
|
},
|
|
16705
16715
|
/* @__PURE__ */ C.createElement("div", { className: "shapeOpt-sub-menu-tabs" }, i.includes(T.Polygon) && /* @__PURE__ */ C.createElement(
|
|
16706
|
-
|
|
16716
|
+
$i,
|
|
16707
16717
|
{
|
|
16708
16718
|
isActive: n === T.Polygon,
|
|
16709
16719
|
icon: n === T.Polygon ? "polygon-active" : "polygon",
|
|
@@ -16713,14 +16723,14 @@ const bm = (r) => {
|
|
|
16713
16723
|
)
|
|
16714
16724
|
}
|
|
16715
16725
|
) || null, i.includes(T.Star) && /* @__PURE__ */ C.createElement(
|
|
16716
|
-
|
|
16726
|
+
$i,
|
|
16717
16727
|
{
|
|
16718
16728
|
isActive: n === T.Star,
|
|
16719
16729
|
icon: n === T.Star ? "star-active" : "star",
|
|
16720
16730
|
onPointerUpHandler: c.bind(void 0, T.Star)
|
|
16721
16731
|
}
|
|
16722
16732
|
) || null, i.includes(T.SpeechBalloon) && /* @__PURE__ */ C.createElement(
|
|
16723
|
-
|
|
16733
|
+
$i,
|
|
16724
16734
|
{
|
|
16725
16735
|
isActive: n === T.SpeechBalloon,
|
|
16726
16736
|
icon: n === T.SpeechBalloon ? "speechBallon-active" : "speechBallon",
|
|
@@ -16906,7 +16916,7 @@ const bm = (r) => {
|
|
|
16906
16916
|
floatBarRef: f
|
|
16907
16917
|
}
|
|
16908
16918
|
), [t, l, f]), I = J(() => a != null && a.canLock && c ? /* @__PURE__ */ C.createElement(
|
|
16909
|
-
|
|
16919
|
+
Hm,
|
|
16910
16920
|
{
|
|
16911
16921
|
workIds: e,
|
|
16912
16922
|
mananger: c,
|
|
@@ -17160,7 +17170,7 @@ const bm = (r) => {
|
|
|
17160
17170
|
transformOrigin: "left top",
|
|
17161
17171
|
borderColor: Q === "editing" || Q === "hover" ? S : "transparent"
|
|
17162
17172
|
};
|
|
17163
|
-
}, [f, g, p, y, S, Q]),
|
|
17173
|
+
}, [f, g, p, y, S, Q]), $ = J(() => {
|
|
17164
17174
|
let Z = "";
|
|
17165
17175
|
const K = `<div style="background-color:${d.fontBgColor};"></div>`;
|
|
17166
17176
|
if (d.text) {
|
|
@@ -17367,7 +17377,7 @@ const bm = (r) => {
|
|
|
17367
17377
|
n();
|
|
17368
17378
|
}
|
|
17369
17379
|
}
|
|
17370
|
-
function
|
|
17380
|
+
function $e(Z) {
|
|
17371
17381
|
var ie;
|
|
17372
17382
|
const K = Z.querySelector("div");
|
|
17373
17383
|
if (K) {
|
|
@@ -17391,7 +17401,7 @@ const bm = (r) => {
|
|
|
17391
17401
|
const Z = z.current;
|
|
17392
17402
|
n(() => {
|
|
17393
17403
|
if (!E.current && Z) {
|
|
17394
|
-
if (
|
|
17404
|
+
if ($e(Z), le((f || 1) * O.current)) {
|
|
17395
17405
|
const K = window.getSelection();
|
|
17396
17406
|
if (!(K != null && K.rangeCount)) return !1;
|
|
17397
17407
|
const ie = document.createRange(), fe = z.current.lastChild;
|
|
@@ -17464,7 +17474,7 @@ const bm = (r) => {
|
|
|
17464
17474
|
onInput: Oe,
|
|
17465
17475
|
onCompositionStart: ze,
|
|
17466
17476
|
onCompositionEnd: _,
|
|
17467
|
-
dangerouslySetInnerHTML: { __html:
|
|
17477
|
+
dangerouslySetInnerHTML: { __html: $ }
|
|
17468
17478
|
}
|
|
17469
17479
|
)
|
|
17470
17480
|
));
|
|
@@ -17792,7 +17802,7 @@ const bm = (r) => {
|
|
|
17792
17802
|
re.MainEngine,
|
|
17793
17803
|
B.RotateNode,
|
|
17794
17804
|
{
|
|
17795
|
-
workIds: [
|
|
17805
|
+
workIds: [H],
|
|
17796
17806
|
angle: E,
|
|
17797
17807
|
workState: A.Done,
|
|
17798
17808
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -17830,7 +17840,7 @@ const bm = (r) => {
|
|
|
17830
17840
|
re.MainEngine,
|
|
17831
17841
|
B.RotateNode,
|
|
17832
17842
|
{
|
|
17833
|
-
workIds: [
|
|
17843
|
+
workIds: [H],
|
|
17834
17844
|
angle: 0,
|
|
17835
17845
|
workState: A.Start,
|
|
17836
17846
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -17860,7 +17870,7 @@ const bm = (r) => {
|
|
|
17860
17870
|
re.MainEngine,
|
|
17861
17871
|
B.RotateNode,
|
|
17862
17872
|
{
|
|
17863
|
-
workIds: [
|
|
17873
|
+
workIds: [H],
|
|
17864
17874
|
angle: E,
|
|
17865
17875
|
workState: A.Doing,
|
|
17866
17876
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -17929,7 +17939,7 @@ const bm = (r) => {
|
|
|
17929
17939
|
re.MainEngine,
|
|
17930
17940
|
B.TranslateNode,
|
|
17931
17941
|
{
|
|
17932
|
-
workIds: [
|
|
17942
|
+
workIds: [H],
|
|
17933
17943
|
position: D,
|
|
17934
17944
|
workState: A.Done,
|
|
17935
17945
|
viewId: o == null ? void 0 : o.viewId
|
|
@@ -17956,7 +17966,7 @@ const bm = (r) => {
|
|
|
17956
17966
|
re.MainEngine,
|
|
17957
17967
|
B.TranslateNode,
|
|
17958
17968
|
{
|
|
17959
|
-
workIds: [
|
|
17969
|
+
workIds: [H],
|
|
17960
17970
|
position: { x: t == null ? void 0 : t.x, y: t == null ? void 0 : t.y },
|
|
17961
17971
|
workState: A.Start,
|
|
17962
17972
|
viewId: o == null ? void 0 : o.viewId
|
|
@@ -17985,7 +17995,7 @@ const bm = (r) => {
|
|
|
17985
17995
|
re.MainEngine,
|
|
17986
17996
|
B.TranslateNode,
|
|
17987
17997
|
{
|
|
17988
|
-
workIds: [
|
|
17998
|
+
workIds: [H],
|
|
17989
17999
|
position: D,
|
|
17990
18000
|
workState: A.Doing,
|
|
17991
18001
|
viewId: o == null ? void 0 : o.viewId
|
|
@@ -18051,7 +18061,7 @@ const bm = (r) => {
|
|
|
18051
18061
|
re.MainEngine,
|
|
18052
18062
|
B.ScaleNode,
|
|
18053
18063
|
{
|
|
18054
|
-
workIds: [
|
|
18064
|
+
workIds: [H],
|
|
18055
18065
|
scale: j,
|
|
18056
18066
|
dir: c,
|
|
18057
18067
|
translate: E,
|
|
@@ -18095,7 +18105,7 @@ const bm = (r) => {
|
|
|
18095
18105
|
y: e.y,
|
|
18096
18106
|
w: e.w,
|
|
18097
18107
|
h: e.h
|
|
18098
|
-
},
|
|
18108
|
+
}, $ = [1, 1], te = [0, 0];
|
|
18099
18109
|
switch (j) {
|
|
18100
18110
|
case "top": {
|
|
18101
18111
|
const G = E.height + e.h;
|
|
@@ -18146,14 +18156,14 @@ const bm = (r) => {
|
|
|
18146
18156
|
break;
|
|
18147
18157
|
}
|
|
18148
18158
|
}
|
|
18149
|
-
|
|
18159
|
+
$[0] = U.w / e.w, $[1] = U.h / e.h;
|
|
18150
18160
|
const oe = I(U).map(
|
|
18151
18161
|
(G) => O.control.viewContainerManager.transformToScenePoint(
|
|
18152
18162
|
G,
|
|
18153
18163
|
O.viewId
|
|
18154
18164
|
)
|
|
18155
18165
|
), q = v(oe, j);
|
|
18156
|
-
return ee && (te[1] = q[1] - P[1]), Q && (te[0] = q[0] - P[0]), { scale:
|
|
18166
|
+
return ee && (te[1] = q[1] - P[1]), Q && (te[0] = q[0] - P[0]), { scale: $, translate: te };
|
|
18157
18167
|
}, D = (j, E) => {
|
|
18158
18168
|
if (m.current && (clearTimeout(m.current), m.current = 0), h != null && h.control.worker.isBusy) {
|
|
18159
18169
|
w(!0);
|
|
@@ -18166,8 +18176,8 @@ const bm = (r) => {
|
|
|
18166
18176
|
w: u.w,
|
|
18167
18177
|
h: u.h
|
|
18168
18178
|
}, P = I(O), Q = P.map(
|
|
18169
|
-
(
|
|
18170
|
-
|
|
18179
|
+
($) => h.control.viewContainerManager.transformToScenePoint(
|
|
18180
|
+
$,
|
|
18171
18181
|
h.viewId
|
|
18172
18182
|
)
|
|
18173
18183
|
), ee = v(P, E), U = v(Q, E);
|
|
@@ -18175,7 +18185,7 @@ const bm = (r) => {
|
|
|
18175
18185
|
re.MainEngine,
|
|
18176
18186
|
B.ScaleNode,
|
|
18177
18187
|
{
|
|
18178
|
-
workIds: [
|
|
18188
|
+
workIds: [H],
|
|
18179
18189
|
originPoint: ee,
|
|
18180
18190
|
scenePoint: U,
|
|
18181
18191
|
workState: A.Start,
|
|
@@ -18196,7 +18206,7 @@ const bm = (r) => {
|
|
|
18196
18206
|
re.MainEngine,
|
|
18197
18207
|
B.ScaleNode,
|
|
18198
18208
|
{
|
|
18199
|
-
workIds: [
|
|
18209
|
+
workIds: [H],
|
|
18200
18210
|
scale: Q,
|
|
18201
18211
|
dir: E,
|
|
18202
18212
|
translate: ee,
|
|
@@ -18283,7 +18293,7 @@ const bm = (r) => {
|
|
|
18283
18293
|
re.MainEngine,
|
|
18284
18294
|
B.SetPoint,
|
|
18285
18295
|
{
|
|
18286
|
-
workId:
|
|
18296
|
+
workId: H,
|
|
18287
18297
|
pointMap: t,
|
|
18288
18298
|
workState: A.Done,
|
|
18289
18299
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -18299,7 +18309,7 @@ const bm = (r) => {
|
|
|
18299
18309
|
re.MainEngine,
|
|
18300
18310
|
B.SetPoint,
|
|
18301
18311
|
{
|
|
18302
|
-
workId:
|
|
18312
|
+
workId: H,
|
|
18303
18313
|
pointMap: t,
|
|
18304
18314
|
workState: A.Start,
|
|
18305
18315
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -18323,7 +18333,7 @@ const bm = (r) => {
|
|
|
18323
18333
|
re.MainEngine,
|
|
18324
18334
|
B.SetPoint,
|
|
18325
18335
|
{
|
|
18326
|
-
workId:
|
|
18336
|
+
workId: H,
|
|
18327
18337
|
pointMap: t,
|
|
18328
18338
|
workState: A.Doing,
|
|
18329
18339
|
viewId: n == null ? void 0 : n.viewId
|
|
@@ -20215,7 +20225,7 @@ function Ww(r) {
|
|
|
20215
20225
|
return typeof r == "symbol" || Ow(r) && Ew(r) == Rw;
|
|
20216
20226
|
}
|
|
20217
20227
|
var Yw = Ww, Uw = Pw, Ao = kt, Bw = Yw, jo = NaN, Fw = /^[-+]0x[0-9a-f]+$/i, Vw = /^0b[01]+$/i, Qw = /^0o[0-7]+$/i, Zw = parseInt;
|
|
20218
|
-
function
|
|
20228
|
+
function Hw(r) {
|
|
20219
20229
|
if (typeof r == "number")
|
|
20220
20230
|
return r;
|
|
20221
20231
|
if (Bw(r))
|
|
@@ -20230,7 +20240,7 @@ function $w(r) {
|
|
|
20230
20240
|
var e = Vw.test(r);
|
|
20231
20241
|
return e || Qw.test(r) ? Zw(r.slice(2), e ? 2 : 8) : Fw.test(r) ? jo : +r;
|
|
20232
20242
|
}
|
|
20233
|
-
var
|
|
20243
|
+
var $w = Hw, Gw = kt, Gi = xw, zo = $w, Xw = "Expected a function", Jw = Math.max, Kw = Math.min;
|
|
20234
20244
|
function qw(r, i, e) {
|
|
20235
20245
|
var t, s, o, n, a, c, l = 0, u = !1, h = !1, d = !0;
|
|
20236
20246
|
if (typeof r != "function")
|
|
@@ -21128,13 +21138,13 @@ M(R, "kind", "appliance-single-plugin"), M(R, "cursorAdapter"), M(R, "currentMan
|
|
|
21128
21138
|
}
|
|
21129
21139
|
});
|
|
21130
21140
|
let Po = R;
|
|
21131
|
-
const
|
|
21141
|
+
const Ht = class Ht extends C.Component {
|
|
21132
21142
|
constructor() {
|
|
21133
21143
|
super(...arguments);
|
|
21134
21144
|
M(this, "mainViewRef", null);
|
|
21135
21145
|
}
|
|
21136
21146
|
componentDidMount() {
|
|
21137
|
-
|
|
21147
|
+
Ht.emiter || (Ht.emiter = rt.InternalMsgEmitter), Ht.emiter.emit(
|
|
21138
21148
|
re.BindMainView,
|
|
21139
21149
|
this.mainViewRef
|
|
21140
21150
|
);
|
|
@@ -21149,8 +21159,8 @@ const $t = class $t extends C.Component {
|
|
|
21149
21159
|
));
|
|
21150
21160
|
}
|
|
21151
21161
|
};
|
|
21152
|
-
M(
|
|
21153
|
-
let Eo =
|
|
21162
|
+
M(Ht, "emiter");
|
|
21163
|
+
let Eo = Ht;
|
|
21154
21164
|
class SI extends hm {
|
|
21155
21165
|
constructor(e) {
|
|
21156
21166
|
super();
|
|
@@ -21351,7 +21361,7 @@ export {
|
|
|
21351
21361
|
T as a,
|
|
21352
21362
|
F as b,
|
|
21353
21363
|
b as c,
|
|
21354
|
-
|
|
21364
|
+
H as d,
|
|
21355
21365
|
Xe as e,
|
|
21356
21366
|
ot as f,
|
|
21357
21367
|
xs as g,
|
|
@@ -21362,7 +21372,7 @@ export {
|
|
|
21362
21372
|
B as l,
|
|
21363
21373
|
Gt as m,
|
|
21364
21374
|
Wn as n,
|
|
21365
|
-
|
|
21375
|
+
$t as o,
|
|
21366
21376
|
de as p,
|
|
21367
21377
|
Nt as q,
|
|
21368
21378
|
et as r,
|