@netless/appliance-plugin 1.1.36-beta.3 → 1.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/assets/{fullWorker-C5kniG7M.js → fullWorker-JXQULSul.js} +11 -11
- package/dist/assets/{subWorker-Cps_t9fu.js → subWorker-DhFJemMO.js} +11 -11
- package/dist/{bridge-DeN8jJgs.js → bridge-CfmWHJhk.js} +1 -1
- package/dist/bridge-Cz4mGULo.mjs +67 -0
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/fullWorker.js +58 -58
- package/dist/{index-CGUukLaV.js → index-6Wdw5Peg.js} +1 -1
- package/dist/{index-B3MjbDsW.mjs → index-B3JYNjTS.mjs} +1 -1
- package/dist/{index-ChEzLTlY.js → index-B6Z-HNvr.js} +1 -1
- package/dist/{index-v6moTe3J.mjs → index-BDK2SG9v.mjs} +1 -1
- package/dist/{index-CobMH-xU.mjs → index-BQ5RFl7S.mjs} +1 -1
- package/dist/{index-B7jKsOvs.mjs → index-BfMoaIvs.mjs} +250 -250
- package/dist/{index-C5LkBIDy.js → index-BteU9Eqf.js} +1 -1
- package/dist/{index-C-mmzWhD.mjs → index-C0RLN5ik.mjs} +1 -1
- package/dist/{index-CR9y5tMJ.js → index-C74ZK6xj.js} +1 -1
- package/dist/index-CPeyvSwP.js +1 -0
- package/dist/index-Cr7tTnaV.js +1 -0
- package/dist/{index-Dllr4Im3.mjs → index-rbiUTgEA.mjs} +249 -249
- package/dist/subWorker.js +58 -58
- package/package.json +2 -2
- package/dist/bridge-DvqpopG1.mjs +0 -67
- package/dist/index-D9xjZ07S.js +0 -1
- package/dist/index-DJpL2E5_.js +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var jo = Object.defineProperty;
|
|
2
2
|
var Do = (o, n, e) => n in o ? jo(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
|
|
3
3
|
var m = (o, n, e) => Do(o, typeof n != "symbol" ? n + "" : n, e);
|
|
4
|
-
import { g as Ao, P as zo } from "./bridge-
|
|
4
|
+
import { g as Ao, P as zo } from "./bridge-Cz4mGULo.mjs";
|
|
5
5
|
import "spritejs";
|
|
6
6
|
import { compress as Eo, decompress as Lo } from "lz-string";
|
|
7
7
|
import "clipper-lib";
|
|
8
8
|
import "lineclip";
|
|
9
9
|
import Zn from "xss";
|
|
10
|
-
import { debounce as an, cloneDeep as ae, isEqual as de, isSet as Ze, isNumber as K, isBoolean as
|
|
10
|
+
import { debounce as an, cloneDeep as ae, isEqual as de, isSet as Ze, isNumber as K, isBoolean as $e, throttle as ui, omit as Ui, clone as Yi } from "lodash";
|
|
11
11
|
import Hn from "eventemitter2";
|
|
12
12
|
import T, { useContext as ze, useState as ce, useMemo as q, useEffect as fe, useRef as Ce, useCallback as Dt } from "react";
|
|
13
13
|
import hi, { createPortal as Po } from "react-dom";
|
|
14
14
|
import Wt from "react-draggable";
|
|
15
15
|
import { Resizable as Oo } from "re-resizable";
|
|
16
16
|
var ie = /* @__PURE__ */ ((o) => (o.selector = "selector", o.clicker = "clicker", o.laserPointer = "laserPointer", o.pencil = "pencil", o.rectangle = "rectangle", o.ellipse = "ellipse", o.shape = "shape", o.eraser = "eraser", o.pencilEraser = "pencilEraser", o.text = "text", o.straight = "straight", o.arrow = "arrow", o.hand = "hand", o.laserPen = "laserPen", o))(ie || {}), he = /* @__PURE__ */ ((o) => (o.Normal = "Normal", o.Stroke = "Stroke", o.Dotted = "Dotted", o.LongDotted = "LongDotted", o))(he || {}), He = /* @__PURE__ */ ((o) => (o.Triangle = "triangle", o.Rhombus = "rhombus", o.Pentagram = "pentagram", o.SpeechBalloon = "speechBalloon", o.Star = "star", o.Polygon = "polygon", o))(He || {}), R = /* @__PURE__ */ ((o) => (o.None = "None", o.ShowFloatBar = "ShowFloatBar", o.ZIndexFloatBar = "ZIndexFloatBar", o.DeleteNode = "DeleteNode", o.CopyNode = "CopyNode", o.ZIndexNode = "ZIndexNode", o.ZIndexBackgroundSVG = "ZIndexBackgroundSVG", o.RotateNode = "RotateNode", o.SetColorNode = "SetColorNode", o.TranslateNode = "TranslateNode", o.ScaleNode = "ScaleNode", o.OriginalEvent = "OriginalEvent", o.CreateScene = "CreateScene", o.ActiveCursor = "ActiveCursor", o.MoveCursor = "MoveCursor", o.CommandEditor = "CommandEditor", o.SetEditorData = "SetEditorData", o.SetFontStyle = "SetFontStyle", o.SetPoint = "SetPoint", o.SetLock = "SetLock", o.SetShapeOpt = "SetShapeOpt", o.CameraChange = "CameraChange", o.ActiveMethod = "ActiveMethod", o.HidFloatBarBtn = "HidFloatBarBtn", o.SelectMethod = "SelectMethod", o))(R || {}), ne = /* @__PURE__ */ ((o) => (o.MainEngine = "MainEngine", o.Cursor = "Cursor", o.BindMainView = "BindMainView", o))(ne || {}), Lr = /* @__PURE__ */ ((o) => (o[o.MainView = 0] = "MainView", o[o.Plugin = 1] = "Plugin", o[o.Both = 2] = "Both", o))(Lr || {}), di = /* @__PURE__ */ ((o) => (o.longPencil = "longPencil", o))(di || {}), S = /* @__PURE__ */ ((o) => (o[o.Pencil = 1] = "Pencil", o[o.Eraser = 2] = "Eraser", o[o.PencilEraser = 3] = "PencilEraser", o[o.BitMapEraser = 4] = "BitMapEraser", o[o.Selector = 5] = "Selector", o[o.Clicker = 6] = "Clicker", o[o.Arrow = 7] = "Arrow", o[o.Hand = 8] = "Hand", o[o.LaserPen = 9] = "LaserPen", o[o.Text = 10] = "Text", o[o.Straight = 11] = "Straight", o[o.Rectangle = 12] = "Rectangle", o[o.Ellipse = 13] = "Ellipse", o[o.Star = 14] = "Star", o[o.Triangle = 15] = "Triangle", o[o.Rhombus = 16] = "Rhombus", o[o.Polygon = 17] = "Polygon", o[o.SpeechBalloon = 18] = "SpeechBalloon", o[o.Image = 19] = "Image", o[o.BackgroundSVG = 20] = "BackgroundSVG", o))(S || {}), _ = /* @__PURE__ */ ((o) => (o[o.Local = 1] = "Local", o[o.Service = 2] = "Service", o[o.Worker = 3] = "Worker", o))(_ || {}), j = /* @__PURE__ */ ((o) => (o[o.Pending = 0] = "Pending", o[o.Start = 1] = "Start", o[o.Doing = 2] = "Doing", o[o.Done = 3] = "Done", o[o.Unwritable = 4] = "Unwritable", o))(j || {}), B = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.Init = 1] = "Init", o[o.UpdateCamera = 2] = "UpdateCamera", o[o.UpdateTools = 3] = "UpdateTools", o[o.CreateWork = 4] = "CreateWork", o[o.DrawWork = 5] = "DrawWork", o[o.FullWork = 6] = "FullWork", o[o.UpdateNode = 7] = "UpdateNode", o[o.RemoveNode = 8] = "RemoveNode", o[o.Clear = 9] = "Clear", o[o.Select = 10] = "Select", o[o.Destroy = 11] = "Destroy", o[o.Snapshot = 12] = "Snapshot", o[o.BoundingBox = 13] = "BoundingBox", o[o.Cursor = 14] = "Cursor", o[o.TextUpdate = 15] = "TextUpdate", o[o.GetTextActive = 16] = "GetTextActive", o[o.TasksQueue = 17] = "TasksQueue", o[o.CursorHover = 18] = "CursorHover", o[o.CursorBlur = 19] = "CursorBlur", o[o.Console = 20] = "Console", o[o.GetImageBitMap = 23] = "GetImageBitMap", o[o.AuthWriter = 24] = "AuthWriter", o[o.AuthReader = 25] = "AuthReader", o[o.AuthClear = 26] = "AuthClear", o[o.AuthPage = 27] = "AuthPage", o[o.GetVNodeInfo = 28] = "GetVNodeInfo", o[o.UpdateDpr = 29] = "UpdateDpr", o[o.SetFontFace = 30] = "SetFontFace", o[o.ReportError = 31] = "ReportError", o[o.ReportLog = 32] = "ReportLog", o[o.BackgroundSVGUpdate = 33] = "BackgroundSVGUpdate", o[o.BackgroundSVGDelete = 34] = "BackgroundSVGDelete", o[o.SelectorTransform = 35] = "SelectorTransform", o))(B || {}), st = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.Bg = 1] = "Bg", o[o.ServiceFloat = 2] = "ServiceFloat", o[o.Float = 3] = "Float", o[o.TopFloat = 4] = "TopFloat", o))(st || {}), tn = /* @__PURE__ */ ((o) => (o[o.Cursor = 1] = "Cursor", o[o.TextCreate = 2] = "TextCreate", o))(tn || {}), pt = /* @__PURE__ */ ((o) => (o[o.Top = 1] = "Top", o[o.Bottom = 2] = "Bottom", o))(pt || {}), Ge = /* @__PURE__ */ ((o) => (o[o.none = 1] = "none", o[o.all = 2] = "all", o[o.both = 3] = "both", o[o.proportional = 4] = "proportional", o))(Ge || {}), nn = /* @__PURE__ */ ((o) => (o[o.inside = 0] = "inside", o[o.outside = 1] = "outside", o[o.intersect = 2] = "intersect", o))(nn || {}), Pe = /* @__PURE__ */ ((o) => (o.renderPage = "renderPage", o.addPage = "addPage", o.deletePage = "deletePage", o.addElement = "addElement", o.deleteElement = "deleteElement", o.clearPage = "clearPage", o.clearViewScenePath = "clearViewScenePath", o.clearView = "clearView", o.syncUndoStack = "syncUndoStack", o.syncRedoStack = "syncRedoStack", o))(Pe || {}), nt = /* @__PURE__ */ ((o) => (o.setAuth = "setAuth", o.setShow = "addShow", o.setHide = "setHide", o.setClear = "setClear", o))(nt || {}), rn = /* @__PURE__ */ ((o) => (o.Image = "image", o.Iconify = "iconify", o))(rn || {}), on = /* @__PURE__ */ ((o) => (o.url = "url", o.markmap = "markmap", o))(on || {});
|
|
17
|
-
const Ro = "cursorhover", gi = 20, se = "mainView", Uo = Ao(), { toJS: yn, autorun: Rn, isRoom:
|
|
17
|
+
const Ro = "cursorhover", gi = 20, se = "mainView", Uo = Ao(), { toJS: yn, autorun: Rn, isRoom: F, isPlayer: fi, InvisiblePlugin: Pr, RoomPhase: Or } = Uo, Yo = {
|
|
18
18
|
linear: (o) => o,
|
|
19
19
|
easeInQuad: (o) => o * o,
|
|
20
20
|
easeOutQuad: (o) => o * (2 - o),
|
|
@@ -510,7 +510,7 @@ var fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
510
510
|
function pi(o) {
|
|
511
511
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
512
512
|
}
|
|
513
|
-
var Wo = typeof fn == "object" && fn && fn.Object === Object && fn, Rr = Wo, Vo = Rr,
|
|
513
|
+
var Wo = typeof fn == "object" && fn && fn.Object === Object && fn, Rr = Wo, Vo = Rr, $o = typeof self == "object" && self && self.Object === Object && self, Fo = Vo || $o || Function("return this")(), rt = Fo, Go = rt, Qo = Go.Symbol, cn = Qo, Bi = cn, Ur = Object.prototype, Zo = Ur.hasOwnProperty, Ho = Ur.toString, Jt = Bi ? Bi.toStringTag : void 0;
|
|
514
514
|
function qo(o) {
|
|
515
515
|
var n = Zo.call(o, Jt), e = o[Jt];
|
|
516
516
|
try {
|
|
@@ -605,19 +605,19 @@ function Bs(o) {
|
|
|
605
605
|
var n = typeof o;
|
|
606
606
|
return o != null && (n == "object" || n == "function");
|
|
607
607
|
}
|
|
608
|
-
var yt = Bs, Ws = ln, Vs = yt,
|
|
608
|
+
var yt = Bs, Ws = ln, Vs = yt, $s = "[object AsyncFunction]", Fs = "[object Function]", Gs = "[object GeneratorFunction]", Qs = "[object Proxy]";
|
|
609
609
|
function Zs(o) {
|
|
610
610
|
if (!Vs(o))
|
|
611
611
|
return !1;
|
|
612
612
|
var n = Ws(o);
|
|
613
|
-
return n ==
|
|
613
|
+
return n == Fs || n == Gs || n == $s || n == Qs;
|
|
614
614
|
}
|
|
615
|
-
var Yr = Zs, Hs = rt, qs = Hs["__core-js_shared__"], Js = qs, Un = Js,
|
|
615
|
+
var Yr = Zs, Hs = rt, qs = Hs["__core-js_shared__"], Js = qs, Un = Js, $i = function() {
|
|
616
616
|
var o = /[^.]+$/.exec(Un && Un.keys && Un.keys.IE_PROTO || "");
|
|
617
617
|
return o ? "Symbol(src)_1." + o : "";
|
|
618
618
|
}();
|
|
619
619
|
function Ks(o) {
|
|
620
|
-
return
|
|
620
|
+
return !!$i && $i in o;
|
|
621
621
|
}
|
|
622
622
|
var Xs = Ks, _s = Function.prototype, ea = _s.toString;
|
|
623
623
|
function ta(o) {
|
|
@@ -651,9 +651,9 @@ function Ia(o, n) {
|
|
|
651
651
|
var e = ma(o, n);
|
|
652
652
|
return ya(e) ? e : void 0;
|
|
653
653
|
}
|
|
654
|
-
var Et = Ia, wa = Et, Ta = rt, Sa = wa(Ta, "Map"), yi = Sa, va = Et, Ca = va(Object, "create"), kn = Ca,
|
|
654
|
+
var Et = Ia, wa = Et, Ta = rt, Sa = wa(Ta, "Map"), yi = Sa, va = Et, Ca = va(Object, "create"), kn = Ca, Fi = kn;
|
|
655
655
|
function Na() {
|
|
656
|
-
this.__data__ =
|
|
656
|
+
this.__data__ = Fi ? Fi(null) : {}, this.size = 0;
|
|
657
657
|
}
|
|
658
658
|
var ka = Na;
|
|
659
659
|
function xa(o) {
|
|
@@ -679,20 +679,20 @@ function Va(o, n) {
|
|
|
679
679
|
var e = this.__data__;
|
|
680
680
|
return this.size += this.has(o) ? 0 : 1, e[o] = Ba && n === void 0 ? Wa : n, this;
|
|
681
681
|
}
|
|
682
|
-
var
|
|
683
|
-
function
|
|
682
|
+
var $a = Va, Fa = ka, Ga = ba, Qa = La, Za = Ya, Ha = $a;
|
|
683
|
+
function $t(o) {
|
|
684
684
|
var n = -1, e = o == null ? 0 : o.length;
|
|
685
685
|
for (this.clear(); ++n < e; ) {
|
|
686
686
|
var t = o[n];
|
|
687
687
|
this.set(t[0], t[1]);
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
var qa =
|
|
690
|
+
$t.prototype.clear = Fa;
|
|
691
|
+
$t.prototype.delete = Ga;
|
|
692
|
+
$t.prototype.get = Qa;
|
|
693
|
+
$t.prototype.has = Za;
|
|
694
|
+
$t.prototype.set = Ha;
|
|
695
|
+
var qa = $t, Gi = qa, Ja = Nn, Ka = yi;
|
|
696
696
|
function Xa() {
|
|
697
697
|
this.size = 0, this.__data__ = {
|
|
698
698
|
hash: new Gi(),
|
|
@@ -729,19 +729,19 @@ function fc(o, n) {
|
|
|
729
729
|
return e.set(o, n), this.size += e.size == t ? 0 : 1, this;
|
|
730
730
|
}
|
|
731
731
|
var pc = fc, Mc = _a, yc = sc, mc = lc, Ic = dc, wc = pc;
|
|
732
|
-
function
|
|
732
|
+
function Ft(o) {
|
|
733
733
|
var n = -1, e = o == null ? 0 : o.length;
|
|
734
734
|
for (this.clear(); ++n < e; ) {
|
|
735
735
|
var t = o[n];
|
|
736
736
|
this.set(t[0], t[1]);
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
var Wr =
|
|
739
|
+
Ft.prototype.clear = Mc;
|
|
740
|
+
Ft.prototype.delete = yc;
|
|
741
|
+
Ft.prototype.get = mc;
|
|
742
|
+
Ft.prototype.has = Ic;
|
|
743
|
+
Ft.prototype.set = wc;
|
|
744
|
+
var Wr = Ft, Tc = Nn, Sc = yi, vc = Wr, Cc = 200;
|
|
745
745
|
function Nc(o, n) {
|
|
746
746
|
var e = this.__data__;
|
|
747
747
|
if (e instanceof Tc) {
|
|
@@ -783,18 +783,18 @@ function Uc(o, n, e) {
|
|
|
783
783
|
writable: !0
|
|
784
784
|
}) : o[n] = e;
|
|
785
785
|
}
|
|
786
|
-
var
|
|
787
|
-
function
|
|
786
|
+
var $r = Uc, Yc = $r, Bc = Mi, Wc = Object.prototype, Vc = Wc.hasOwnProperty;
|
|
787
|
+
function $c(o, n, e) {
|
|
788
788
|
var t = o[n];
|
|
789
789
|
(!(Vc.call(o, n) && Bc(t, e)) || e === void 0 && !(n in o)) && Yc(o, n, e);
|
|
790
790
|
}
|
|
791
|
-
var
|
|
791
|
+
var Fr = $c, Fc = Fr, Gc = $r;
|
|
792
792
|
function Qc(o, n, e, t) {
|
|
793
793
|
var i = !e;
|
|
794
794
|
e || (e = {});
|
|
795
795
|
for (var r = -1, s = n.length; ++r < s; ) {
|
|
796
796
|
var a = n[r], c = t ? t(e[a], o[a], a, e, o) : void 0;
|
|
797
|
-
c === void 0 && (c = o[a]), i ? Gc(e, a, c) :
|
|
797
|
+
c === void 0 && (c = o[a]), i ? Gc(e, a, c) : Fc(e, a, c);
|
|
798
798
|
}
|
|
799
799
|
return e;
|
|
800
800
|
}
|
|
@@ -855,7 +855,7 @@ wn.exports;
|
|
|
855
855
|
}();
|
|
856
856
|
o.exports = a;
|
|
857
857
|
})(wn, wn.exports);
|
|
858
|
-
var mi = wn.exports,
|
|
858
|
+
var mi = wn.exports, $l = Wl, Fl = Dn, Hi = mi, qi = Hi && Hi.isTypedArray, Gl = qi ? Fl(qi) : $l, Ql = Gl, Zl = Hc, Hl = Qr, ql = jn, Jl = Zr, Kl = ul, Xl = Ql, _l = Object.prototype, eu = _l.hasOwnProperty;
|
|
859
859
|
function tu(o, n) {
|
|
860
860
|
var e = ql(o), t = !e && Hl(o), i = !e && !t && Jl(o), r = !e && !t && !i && Xl(o), s = e || t || i || r, a = s ? Zl(o.length, String) : [], c = a.length;
|
|
861
861
|
for (var l in o)
|
|
@@ -936,13 +936,13 @@ Tn.exports;
|
|
|
936
936
|
o.exports = c;
|
|
937
937
|
})(Tn, Tn.exports);
|
|
938
938
|
var Vu = Tn.exports;
|
|
939
|
-
function
|
|
939
|
+
function $u(o, n) {
|
|
940
940
|
var e = -1, t = o.length;
|
|
941
941
|
for (n || (n = Array(t)); ++e < t; )
|
|
942
942
|
n[e] = o[e];
|
|
943
943
|
return n;
|
|
944
944
|
}
|
|
945
|
-
var
|
|
945
|
+
var Fu = $u;
|
|
946
946
|
function Gu(o, n) {
|
|
947
947
|
for (var e = -1, t = o == null ? 0 : o.length, i = 0, r = []; ++e < t; ) {
|
|
948
948
|
var s = o[e];
|
|
@@ -989,12 +989,12 @@ var Sh = Th, vh = to, Ch = eo, Nh = Si;
|
|
|
989
989
|
function kh(o) {
|
|
990
990
|
return vh(o, Nh, Ch);
|
|
991
991
|
}
|
|
992
|
-
var xh = kh, bh = Et, jh = rt, Dh = bh(jh, "DataView"), Ah = Dh, zh = Et, Eh = rt, Lh = zh(Eh, "Promise"), Ph = Lh, Oh = Et, Rh = rt, Uh = Oh(Rh, "Set"), no = Uh, Yh = Et, Bh = rt, Wh = Yh(Bh, "WeakMap"), Vh = Wh, qn = Ah, Jn = yi, Kn = Ph, Xn = no, _n = Vh, io = ln, Qt = Br, Ki = "[object Map]",
|
|
992
|
+
var xh = kh, bh = Et, jh = rt, Dh = bh(jh, "DataView"), Ah = Dh, zh = Et, Eh = rt, Lh = zh(Eh, "Promise"), Ph = Lh, Oh = Et, Rh = rt, Uh = Oh(Rh, "Set"), no = Uh, Yh = Et, Bh = rt, Wh = Yh(Bh, "WeakMap"), Vh = Wh, qn = Ah, Jn = yi, Kn = Ph, Xn = no, _n = Vh, io = ln, Qt = Br, Ki = "[object Map]", $h = "[object Object]", Xi = "[object Promise]", _i = "[object Set]", er = "[object WeakMap]", tr = "[object DataView]", Fh = Qt(qn), Gh = Qt(Jn), Qh = Qt(Kn), Zh = Qt(Xn), Hh = Qt(_n), kt = io;
|
|
993
993
|
(qn && kt(new qn(new ArrayBuffer(1))) != tr || Jn && kt(new Jn()) != Ki || Kn && kt(Kn.resolve()) != Xi || Xn && kt(new Xn()) != _i || _n && kt(new _n()) != er) && (kt = function(o) {
|
|
994
|
-
var n = io(o), e = n ==
|
|
994
|
+
var n = io(o), e = n == $h ? o.constructor : void 0, t = e ? Qt(e) : "";
|
|
995
995
|
if (t)
|
|
996
996
|
switch (t) {
|
|
997
|
-
case
|
|
997
|
+
case Fh:
|
|
998
998
|
return tr;
|
|
999
999
|
case Gh:
|
|
1000
1000
|
return Ki;
|
|
@@ -1082,9 +1082,9 @@ var Ud = Rd, Yd = yt, sr = Object.create, Bd = /* @__PURE__ */ function() {
|
|
|
1082
1082
|
var e = new o();
|
|
1083
1083
|
return o.prototype = void 0, e;
|
|
1084
1084
|
};
|
|
1085
|
-
}(), Wd = Bd, Vd = Wd,
|
|
1085
|
+
}(), Wd = Bd, Vd = Wd, $d = _r, Fd = Ii;
|
|
1086
1086
|
function Gd(o) {
|
|
1087
|
-
return typeof o.constructor == "function" &&
|
|
1087
|
+
return typeof o.constructor == "function" && !Fd(o) ? Vd($d(o)) : {};
|
|
1088
1088
|
}
|
|
1089
1089
|
var Qd = Gd, Zd = Ni, Hd = zt, qd = "[object Map]";
|
|
1090
1090
|
function Jd(o) {
|
|
@@ -1096,8 +1096,8 @@ function og(o) {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
var sg = og, ag = sg, cg = Dn, lr = mi, ur = lr && lr.isSet, lg = ur ? cg(ur) : ag, oo = lg;
|
|
1098
1098
|
const zw = /* @__PURE__ */ pi(oo);
|
|
1099
|
-
var ug = Ec, hg = Pc, dg =
|
|
1100
|
-
be[so] = be[Pg] = be[Zg] = be[Hg] = be[Og] = be[Rg] = be[qg] = be[Jg] = be[Kg] = be[Xg] = be[_g] = be[Bg] = be[Wg] = be[co] = be[Vg] = be[
|
|
1099
|
+
var ug = Ec, hg = Pc, dg = Fr, gg = Cu, fg = Wu, pg = Vu, Mg = Fu, yg = th, mg = fh, Ig = Sh, wg = xh, Tg = Ni, Sg = Xh, vg = Ud, Cg = Qd, Ng = jn, kg = Zr, xg = tg, bg = yt, jg = oo, Dg = Ti, Ag = Si, zg = 1, Eg = 2, Lg = 4, so = "[object Arguments]", Pg = "[object Array]", Og = "[object Boolean]", Rg = "[object Date]", Ug = "[object Error]", ao = "[object Function]", Yg = "[object GeneratorFunction]", Bg = "[object Map]", Wg = "[object Number]", co = "[object Object]", Vg = "[object RegExp]", $g = "[object Set]", Fg = "[object String]", Gg = "[object Symbol]", Qg = "[object WeakMap]", Zg = "[object ArrayBuffer]", Hg = "[object DataView]", qg = "[object Float32Array]", Jg = "[object Float64Array]", Kg = "[object Int8Array]", Xg = "[object Int16Array]", _g = "[object Int32Array]", ef = "[object Uint8Array]", tf = "[object Uint8ClampedArray]", nf = "[object Uint16Array]", rf = "[object Uint32Array]", be = {};
|
|
1100
|
+
be[so] = be[Pg] = be[Zg] = be[Hg] = be[Og] = be[Rg] = be[qg] = be[Jg] = be[Kg] = be[Xg] = be[_g] = be[Bg] = be[Wg] = be[co] = be[Vg] = be[$g] = be[Fg] = be[Gg] = be[ef] = be[tf] = be[nf] = be[rf] = !0;
|
|
1101
1101
|
be[Ug] = be[ao] = be[Qg] = !1;
|
|
1102
1102
|
function mn(o, n, e, t, i, r) {
|
|
1103
1103
|
var s, a = n & zg, c = n & Eg, l = n & Lg;
|
|
@@ -1141,7 +1141,7 @@ function lf(o) {
|
|
|
1141
1141
|
return sf(o, af | cf);
|
|
1142
1142
|
}
|
|
1143
1143
|
var uf = lf;
|
|
1144
|
-
const An = /* @__PURE__ */ pi(uf), lo = "1.1.36
|
|
1144
|
+
const An = /* @__PURE__ */ pi(uf), lo = "1.1.36", hf = "@netless/appliance-plugin", hr = typeof OffscreenCanvas == "function" ? "worker" : "mainThread";
|
|
1145
1145
|
if (typeof window < "u") {
|
|
1146
1146
|
let o = window.__netlessUA || "";
|
|
1147
1147
|
o += ` ${hf}@${lo}`, window.__netlessUA = o;
|
|
@@ -1301,7 +1301,7 @@ function Ef(o) {
|
|
|
1301
1301
|
e[++n] = t;
|
|
1302
1302
|
}), e;
|
|
1303
1303
|
}
|
|
1304
|
-
var Di = Ef, dr = cn, gr = ro, Lf = Mi, Pf = Df, Of = zf, Rf = Di, Uf = 1, Yf = 2, Bf = "[object Boolean]", Wf = "[object Date]", Vf = "[object Error]",
|
|
1304
|
+
var Di = Ef, dr = cn, gr = ro, Lf = Mi, Pf = Df, Of = zf, Rf = Di, Uf = 1, Yf = 2, Bf = "[object Boolean]", Wf = "[object Date]", Vf = "[object Error]", $f = "[object Map]", Ff = "[object Number]", Gf = "[object RegExp]", Qf = "[object Set]", Zf = "[object String]", Hf = "[object Symbol]", qf = "[object ArrayBuffer]", Jf = "[object DataView]", fr = dr ? dr.prototype : void 0, Yn = fr ? fr.valueOf : void 0;
|
|
1305
1305
|
function Kf(o, n, e, t, i, r, s) {
|
|
1306
1306
|
switch (e) {
|
|
1307
1307
|
case Jf:
|
|
@@ -1312,14 +1312,14 @@ function Kf(o, n, e, t, i, r, s) {
|
|
|
1312
1312
|
return !(o.byteLength != n.byteLength || !r(new gr(o), new gr(n)));
|
|
1313
1313
|
case Bf:
|
|
1314
1314
|
case Wf:
|
|
1315
|
-
case
|
|
1315
|
+
case Ff:
|
|
1316
1316
|
return Lf(+o, +n);
|
|
1317
1317
|
case Vf:
|
|
1318
1318
|
return o.name == n.name && o.message == n.message;
|
|
1319
1319
|
case Gf:
|
|
1320
1320
|
case Zf:
|
|
1321
1321
|
return o == n + "";
|
|
1322
|
-
case
|
|
1322
|
+
case $f:
|
|
1323
1323
|
var a = Of;
|
|
1324
1324
|
case Qf:
|
|
1325
1325
|
var c = t & Uf;
|
|
@@ -1980,12 +1980,12 @@ function Yp(o, n) {
|
|
|
1980
1980
|
i[e] = n(o[e], e, o);
|
|
1981
1981
|
return i;
|
|
1982
1982
|
}
|
|
1983
|
-
var Bp = Yp, Wp = bi, Vp = ho,
|
|
1983
|
+
var Bp = Yp, Wp = bi, Vp = ho, $p = go, Fp = Bp, Gp = Dn, Qp = ji, Zp = 200;
|
|
1984
1984
|
function Hp(o, n, e, t) {
|
|
1985
1985
|
var i = -1, r = Vp, s = !0, a = o.length, c = [], l = n.length;
|
|
1986
1986
|
if (!a)
|
|
1987
1987
|
return c;
|
|
1988
|
-
e && (n =
|
|
1988
|
+
e && (n = Fp(n, Gp(e))), t ? (r = $p, s = !1) : n.length >= Zp && (r = Qp, s = !1, n = new Wp(n));
|
|
1989
1989
|
e:
|
|
1990
1990
|
for (; ++i < a; ) {
|
|
1991
1991
|
var u = o[i], h = e == null ? u : e(u);
|
|
@@ -2138,7 +2138,7 @@ function Vw(o, n, e, t = [0, 0]) {
|
|
|
2138
2138
|
o[r] = c.x + t[0], o[r + 1] = c.y + t[1];
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2141
|
+
function $w(o, n, e, t = [0, 0]) {
|
|
2142
2142
|
const i = new W(n[0], n[1]);
|
|
2143
2143
|
for (let r = 0; r < o.length; r += 2) {
|
|
2144
2144
|
const s = new W(o[r], o[r + 1]), a = new W(e[0], e[1]), c = W.ScaleWOrigin(s, a, i);
|
|
@@ -2148,7 +2148,7 @@ function Fw(o, n, e, t = [0, 0]) {
|
|
|
2148
2148
|
function zM(o, n) {
|
|
2149
2149
|
return o[0] >= n.x && o[0] <= n.x + n.w && o[1] >= n.y && o[1] <= n.y + n.h;
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function Fw(o, n) {
|
|
2152
2152
|
const e = o <= n ? 1 : o / n, t = n <= o ? 1 : n / o;
|
|
2153
2153
|
return [e, t];
|
|
2154
2154
|
}
|
|
@@ -2305,7 +2305,7 @@ class LM {
|
|
|
2305
2305
|
return this.getLocalId(n) === Q;
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
|
-
const
|
|
2308
|
+
const Fe = class Fe extends LM {
|
|
2309
2309
|
constructor(e, t, i) {
|
|
2310
2310
|
super(e, t);
|
|
2311
2311
|
m(this, "namespace");
|
|
@@ -2332,7 +2332,7 @@ const $e = class $e extends LM {
|
|
|
2332
2332
|
this.limitNums.set(`${e}/${t}`, d), r = d;
|
|
2333
2333
|
}
|
|
2334
2334
|
if (r > 0 && i >= r) {
|
|
2335
|
-
const d =
|
|
2335
|
+
const d = Fe.componentsLimits.indexOf(r), M = d >= 0 && d < Fe.componentsLimits.length - 1;
|
|
2336
2336
|
if ((u = (l = (c = this.control.room) == null ? void 0 : c.callbacks) == null ? void 0 : l.listeners) != null && u.map.onObjectsLimit && ((g = (h = this.control.room) == null ? void 0 : h.callbacks) == null || g.dispatch(
|
|
2337
2337
|
"onObjectsLimit",
|
|
2338
2338
|
(y) => y(r, M)
|
|
@@ -2353,7 +2353,7 @@ const $e = class $e extends LM {
|
|
|
2353
2353
|
console.warn(
|
|
2354
2354
|
`exceeds the limit of ${r} components, current: ${i}`
|
|
2355
2355
|
);
|
|
2356
|
-
const I = M ?
|
|
2356
|
+
const I = M ? Fe.componentsLimits[d + 1] : 0;
|
|
2357
2357
|
this.limitNums.set(`${e}/${t}`, I);
|
|
2358
2358
|
}
|
|
2359
2359
|
},
|
|
@@ -2367,7 +2367,7 @@ const $e = class $e extends LM {
|
|
|
2367
2367
|
for (const i of this.limitNums.keys())
|
|
2368
2368
|
`${e}/`.indexOf(i) === 0 && this.limitNums.delete(i);
|
|
2369
2369
|
});
|
|
2370
|
-
this.syncInterval = i, this.namespace =
|
|
2370
|
+
this.syncInterval = i, this.namespace = Fe.namespace, this.authSpace = Fe.authSpace, this.globalUndoRedoStackSpace = Fe.globalUndoRedoStackSpace, this.serviceStorage = this.getNamespaceData(), this.storage = ae(this.serviceStorage), this.authStorage = this.getAuthSpaceData(), this.globalUndoRedoStackStorage = {}, this.getLimitNums();
|
|
2371
2371
|
}
|
|
2372
2372
|
get Logger() {
|
|
2373
2373
|
return this.control.logger;
|
|
@@ -2377,7 +2377,7 @@ const $e = class $e extends LM {
|
|
|
2377
2377
|
return !!(this.storage[e] && this.storage[e][t] && this.storage[e][t][r]);
|
|
2378
2378
|
}
|
|
2379
2379
|
getLimitNum(e) {
|
|
2380
|
-
return e >=
|
|
2380
|
+
return e >= Fe.componentsLimits[0] ? Fe.componentsLimits[1] : Fe.componentsLimits[0];
|
|
2381
2381
|
}
|
|
2382
2382
|
getLimitNums() {
|
|
2383
2383
|
for (const [e, t] of Object.entries(this.storage))
|
|
@@ -3042,7 +3042,7 @@ const $e = class $e extends LM {
|
|
|
3042
3042
|
return s;
|
|
3043
3043
|
}
|
|
3044
3044
|
dispatchPageAuth(e, t = !0) {
|
|
3045
|
-
var l, u, h, g, p, d, M, I, y, f, w, v, N, C, k, L, A, x, D, b, P, O, U, V, Y, Z, G,
|
|
3045
|
+
var l, u, h, g, p, d, M, I, y, f, w, v, N, C, k, L, A, x, D, b, P, O, U, V, Y, Z, G, $, X, Se, le, Ie, ue, ht, mt, It, wt, Tt;
|
|
3046
3046
|
const { operation: i, viewId: r, scenePath: s, pageId: a, pageData: c } = e;
|
|
3047
3047
|
switch (i) {
|
|
3048
3048
|
case Pe.addPage: {
|
|
@@ -3118,7 +3118,7 @@ const $e = class $e extends LM {
|
|
|
3118
3118
|
case Pe.deleteElement: {
|
|
3119
3119
|
if (!r || !s || !a || !(c != null && c.elementId))
|
|
3120
3120
|
return;
|
|
3121
|
-
(Se = (X = (
|
|
3121
|
+
(Se = (X = ($ = (G = (Z = (Y = this.authStorage) == null ? void 0 : Y.pageAuth) == null ? void 0 : Z[r]) == null ? void 0 : G[s]) == null ? void 0 : $.pages) == null ? void 0 : X[a]) != null && Se[c.elementId] && (delete this.authStorage.pageAuth[r][s].pages[a][c.elementId], t && ((le = this.plugin) == null || le.updateAttributes(
|
|
3122
3122
|
[
|
|
3123
3123
|
this.authSpace,
|
|
3124
3124
|
"pageAuth",
|
|
@@ -3322,9 +3322,9 @@ const $e = class $e extends LM {
|
|
|
3322
3322
|
return s;
|
|
3323
3323
|
}
|
|
3324
3324
|
};
|
|
3325
|
-
m(
|
|
3326
|
-
m(
|
|
3327
|
-
let lt =
|
|
3325
|
+
m(Fe, "namespace", "PluginState"), m(Fe, "authSpace", "PluginAuth"), m(Fe, "globalUndoRedoStackSpace", "GlobalUndoRedoStack"), // static syncInterval: number = 500;
|
|
3326
|
+
m(Fe, "componentsLimits", [500, 1e3]);
|
|
3327
|
+
let lt = Fe;
|
|
3328
3328
|
var Je = /* @__PURE__ */ ((o) => (o[o.Draw = 1] = "Draw", o[o.Delete = 2] = "Delete", o[o.Update = 3] = "Update", o))(Je || {});
|
|
3329
3329
|
class PM {
|
|
3330
3330
|
constructor() {
|
|
@@ -3520,7 +3520,7 @@ class OM {
|
|
|
3520
3520
|
(this.willConsumeEventWorkers.size || this.cursorInfoMap.size) && this.runAnimation();
|
|
3521
3521
|
}
|
|
3522
3522
|
sendEvent(n, e) {
|
|
3523
|
-
if (this.displayer &&
|
|
3523
|
+
if (this.displayer && F(this.displayer)) {
|
|
3524
3524
|
const t = K(n[0]) && K(n[1]) && this.control.viewContainerManager.transformToScenePoint(
|
|
3525
3525
|
n,
|
|
3526
3526
|
e
|
|
@@ -3532,7 +3532,7 @@ class OM {
|
|
|
3532
3532
|
}
|
|
3533
3533
|
dispatchMagixEvent() {
|
|
3534
3534
|
var n;
|
|
3535
|
-
this.displayer &&
|
|
3535
|
+
this.displayer && F(this.displayer) && this.displayer.isWritable && this.displayer.dispatchMagixEvent(this.eventName, {
|
|
3536
3536
|
type: tn.Cursor,
|
|
3537
3537
|
op: ae(this.willSendEventWorkers),
|
|
3538
3538
|
uid: (n = this.control.collector) == null ? void 0 : n.uid
|
|
@@ -3580,7 +3580,7 @@ class OM {
|
|
|
3580
3580
|
}
|
|
3581
3581
|
unabled() {
|
|
3582
3582
|
var n;
|
|
3583
|
-
this.displayer &&
|
|
3583
|
+
this.displayer && F(this.displayer) && (this.willSendEventWorkers.length = 0, this.displayer.dispatchMagixEvent(this.eventName, {
|
|
3584
3584
|
type: tn.Cursor,
|
|
3585
3585
|
op: [
|
|
3586
3586
|
{
|
|
@@ -4259,12 +4259,12 @@ class BM extends tt {
|
|
|
4259
4259
|
for (const b of k.selectIds) {
|
|
4260
4260
|
const P = M(b, this.serviceColloctor), O = (y = (I = u == null ? void 0 : u[r]) == null ? void 0 : I[c]) == null ? void 0 : y[P];
|
|
4261
4261
|
O && O.toolsType === S.BackgroundSVG ? (p.push(b), p.sort((U, V) => {
|
|
4262
|
-
var G,
|
|
4263
|
-
const Y = ((
|
|
4262
|
+
var G, $, X, Se;
|
|
4263
|
+
const Y = (($ = (G = u[M(U, this.serviceColloctor)]) == null ? void 0 : G.opt) == null ? void 0 : $.zIndex) || 0, Z = ((Se = (X = u[M(U, this.serviceColloctor)]) == null ? void 0 : X.opt) == null ? void 0 : Se.zIndex) || 0;
|
|
4264
4264
|
return Y > Z ? 1 : U < V ? -1 : 0;
|
|
4265
4265
|
})) : (g.push(b), g.sort((U, V) => {
|
|
4266
|
-
var G,
|
|
4267
|
-
const Y = ((
|
|
4266
|
+
var G, $, X, Se;
|
|
4267
|
+
const Y = (($ = (G = u[M(U, this.serviceColloctor)]) == null ? void 0 : G.opt) == null ? void 0 : $.zIndex) || 0, Z = ((Se = (X = u[M(U, this.serviceColloctor)]) == null ? void 0 : X.opt) == null ? void 0 : Se.zIndex) || 0;
|
|
4268
4268
|
return Y > Z ? 1 : U < V ? -1 : 0;
|
|
4269
4269
|
}));
|
|
4270
4270
|
}
|
|
@@ -4283,17 +4283,17 @@ class BM extends tt {
|
|
|
4283
4283
|
needUndoTicker: this.control.viewContainerManager.getUndoTickerId(r)
|
|
4284
4284
|
};
|
|
4285
4285
|
g.length && (i === pt.Top ? (this.addMaxLayer(r), L = this.getMaxZIndex(r)) : (this.addMinLayer(r), L = this.getMinZIndex(r)), g.forEach((b) => {
|
|
4286
|
-
var V, Y, Z, G,
|
|
4286
|
+
var V, Y, Z, G, $;
|
|
4287
4287
|
const P = (V = this.serviceColloctor) == null ? void 0 : V.isLocalId(b);
|
|
4288
4288
|
let O = P && ((Y = this.serviceColloctor) == null ? void 0 : Y.transformKey(b)) || b;
|
|
4289
4289
|
const U = (G = (Z = u == null ? void 0 : u[r]) == null ? void 0 : Z[c]) == null ? void 0 : G[O];
|
|
4290
|
-
U && (!P && ((
|
|
4290
|
+
U && (!P && (($ = this.serviceColloctor) != null && $.isOwn(O)) && (O = this.serviceColloctor.getLocalId(O)), x.zIndex = L, U != null && U.opt && (U.opt.zIndex = L));
|
|
4291
4291
|
})), p.length && (i === pt.Top ? (this.addMaxLayerForBackgroundSVG(r), A = this.getMaxZIndexForBackgroundSVG(r)) : (this.addMinLayerForBackgroundSVG(r), A = this.getMinZIndexForBackgroundSVG(r)), p.forEach((b) => {
|
|
4292
|
-
var V, Y, Z, G,
|
|
4292
|
+
var V, Y, Z, G, $;
|
|
4293
4293
|
const P = (V = this.serviceColloctor) == null ? void 0 : V.isLocalId(b);
|
|
4294
4294
|
let O = P && ((Y = this.serviceColloctor) == null ? void 0 : Y.transformKey(b)) || b;
|
|
4295
4295
|
const U = (G = (Z = u == null ? void 0 : u[r]) == null ? void 0 : Z[c]) == null ? void 0 : G[O];
|
|
4296
|
-
U && (!P && ((
|
|
4296
|
+
U && (!P && (($ = this.serviceColloctor) != null && $.isOwn(O)) && (O = this.serviceColloctor.getLocalId(O)), x.zIndexForBackgroundSVG = A, U != null && U.opt && (U.opt.zIndex = A));
|
|
4297
4297
|
})), D.willSerializeData = !0, h.push([
|
|
4298
4298
|
D,
|
|
4299
4299
|
{
|
|
@@ -4464,7 +4464,7 @@ class VM extends tt {
|
|
|
4464
4464
|
]), this.collectForLocalWorker(u));
|
|
4465
4465
|
}
|
|
4466
4466
|
}
|
|
4467
|
-
class
|
|
4467
|
+
class $M extends tt {
|
|
4468
4468
|
constructor() {
|
|
4469
4469
|
super(...arguments);
|
|
4470
4470
|
m(this, "lastEmtData");
|
|
@@ -4520,16 +4520,16 @@ class FM extends tt {
|
|
|
4520
4520
|
this.cacheTextInfo.clear();
|
|
4521
4521
|
for (const Y of O.selectIds) {
|
|
4522
4522
|
const Z = (N = this.serviceColloctor) == null ? void 0 : N.isLocalId(Y), G = Z && ((C = this.serviceColloctor) == null ? void 0 : C.transformKey(Y)) || Y;
|
|
4523
|
-
let
|
|
4524
|
-
!Z && ((k = this.serviceColloctor) != null && k.isOwn(G)) && (
|
|
4525
|
-
const X = this.control.textEditorManager.get(
|
|
4526
|
-
X && r === j.Start && this.targetText.set(
|
|
4523
|
+
let $ = G;
|
|
4524
|
+
!Z && ((k = this.serviceColloctor) != null && k.isOwn(G)) && ($ = this.serviceColloctor.getLocalId(G));
|
|
4525
|
+
const X = this.control.textEditorManager.get($);
|
|
4526
|
+
X && r === j.Start && this.targetText.set($, An(X));
|
|
4527
4527
|
}
|
|
4528
4528
|
}
|
|
4529
4529
|
if (this.targetText.size && r !== j.Start && u) {
|
|
4530
4530
|
const Y = [];
|
|
4531
|
-
for (const [G,
|
|
4532
|
-
const { opt: X } =
|
|
4531
|
+
for (const [G, $] of this.targetText.entries()) {
|
|
4532
|
+
const { opt: X } = $, Se = Math.floor(X.fontSize * u[0]), le = this.cacheTextInfo.get(G), Ie = !le && X.fontSize !== Se || le && le.fontSize !== Se || !1, ue = (L = this.control.textEditorManager.get(G)) == null ? void 0 : L.opt;
|
|
4533
4533
|
if (Ie && ue && X.boxSize && X.boxPoint) {
|
|
4534
4534
|
const ht = this.setTextStyle(
|
|
4535
4535
|
G,
|
|
@@ -4542,8 +4542,8 @@ class FM extends tt {
|
|
|
4542
4542
|
const Z = await Promise.all(Y);
|
|
4543
4543
|
for (const G of Z)
|
|
4544
4544
|
if (G) {
|
|
4545
|
-
const { key:
|
|
4546
|
-
this.cacheTextInfo.set(
|
|
4545
|
+
const { key: $, textInfo: X } = G;
|
|
4546
|
+
this.cacheTextInfo.set($, {
|
|
4547
4547
|
fontSize: X.opt.fontSize,
|
|
4548
4548
|
boxSize: X.opt.boxSize,
|
|
4549
4549
|
boxPoint: X.opt.boxPoint
|
|
@@ -4593,7 +4593,7 @@ class FM extends tt {
|
|
|
4593
4593
|
}
|
|
4594
4594
|
}
|
|
4595
4595
|
}
|
|
4596
|
-
class
|
|
4596
|
+
class FM extends tt {
|
|
4597
4597
|
constructor() {
|
|
4598
4598
|
super(...arguments);
|
|
4599
4599
|
m(this, "lastEmtData");
|
|
@@ -4803,7 +4803,7 @@ class JM extends tt {
|
|
|
4803
4803
|
async setTextStyle(e, t, i, r, s, a) {
|
|
4804
4804
|
const { bold: c, underline: l, lineThrough: u, italic: h, fontSize: g } = i;
|
|
4805
4805
|
if (t.toolsType && GM(t.toolsType) === it.Text) {
|
|
4806
|
-
t.opt && (c && (t.opt.bold = c),
|
|
4806
|
+
t.opt && (c && (t.opt.bold = c), $e(l) && (t.opt.underline = l), $e(u) && (t.opt.lineThrough = u), h && (t.opt.italic = h), g && (t.opt.fontSize = g));
|
|
4807
4807
|
const d = await this.control.textEditorManager.updateTextControllerWithEffectAsync(
|
|
4808
4808
|
{
|
|
4809
4809
|
workId: e,
|
|
@@ -4853,7 +4853,7 @@ class JM extends tt {
|
|
|
4853
4853
|
const U = (N = (v = d == null ? void 0 : d[c]) == null ? void 0 : v[g]) == null ? void 0 : N[P];
|
|
4854
4854
|
if (U) {
|
|
4855
4855
|
const V = U.updateNodeOpt || {};
|
|
4856
|
-
if (i && (V.bold = i, M.bold = i === "bold"), r && (V.italic = r, M.italic = r === "italic"),
|
|
4856
|
+
if (i && (V.bold = i, M.bold = i === "bold"), r && (V.italic = r, M.italic = r === "italic"), $e(s) && (V.lineThrough = s, M.lineThrough = s), $e(a) && (V.underline = a, M.underline = a), l && (V.fontSize = l, M.textSize = l), U.toolsType === S.Text && U.opt) {
|
|
4857
4857
|
const Y = this.setTextStyle(
|
|
4858
4858
|
O,
|
|
4859
4859
|
ae(U),
|
|
@@ -4869,11 +4869,11 @@ class JM extends tt {
|
|
|
4869
4869
|
for (const Y of U.selectIds) {
|
|
4870
4870
|
const Z = (k = this.serviceColloctor) == null ? void 0 : k.isLocalId(Y);
|
|
4871
4871
|
let G = Z && ((L = this.serviceColloctor) == null ? void 0 : L.transformKey(Y)) || Y;
|
|
4872
|
-
const
|
|
4873
|
-
if (!Z && ((A = this.serviceColloctor) != null && A.isOwn(G)) && (G = this.serviceColloctor.getLocalId(G)),
|
|
4872
|
+
const $ = d[c][g][G] || void 0;
|
|
4873
|
+
if (!Z && ((A = this.serviceColloctor) != null && A.isOwn(G)) && (G = this.serviceColloctor.getLocalId(G)), $ && $.toolsType === S.Text && U.opt) {
|
|
4874
4874
|
const X = this.setTextStyle(
|
|
4875
4875
|
G,
|
|
4876
|
-
ae(
|
|
4876
|
+
ae($),
|
|
4877
4877
|
V,
|
|
4878
4878
|
c,
|
|
4879
4879
|
u,
|
|
@@ -5119,9 +5119,9 @@ class te {
|
|
|
5119
5119
|
case R.DeleteNode:
|
|
5120
5120
|
return new VM();
|
|
5121
5121
|
case R.ScaleNode:
|
|
5122
|
-
return new FM();
|
|
5123
|
-
case R.RotateNode:
|
|
5124
5122
|
return new $M();
|
|
5123
|
+
case R.RotateNode:
|
|
5124
|
+
return new FM();
|
|
5125
5125
|
case R.SetFontStyle:
|
|
5126
5126
|
return new JM();
|
|
5127
5127
|
case R.SetPoint:
|
|
@@ -5951,7 +5951,7 @@ const By = /* @__PURE__ */ new Set([
|
|
|
5951
5951
|
S.Polygon,
|
|
5952
5952
|
S.SpeechBalloon
|
|
5953
5953
|
]), Wn = (o) => typeof o == "number" && By.has(o), Vy = (o) => o === B.FullWork || o === B.UpdateNode || o === B.RemoveNode || o === B.DrawWork;
|
|
5954
|
-
class
|
|
5954
|
+
class $y {
|
|
5955
5955
|
get now() {
|
|
5956
5956
|
var n;
|
|
5957
5957
|
return ((n = this.control.room) == null ? void 0 : n.calibrationTimestamp) || Date.now();
|
|
@@ -5979,7 +5979,7 @@ class Fy {
|
|
|
5979
5979
|
return this.currentLocalWorkData.workState;
|
|
5980
5980
|
}
|
|
5981
5981
|
}
|
|
5982
|
-
class
|
|
5982
|
+
class Fy extends $y {
|
|
5983
5983
|
constructor(e) {
|
|
5984
5984
|
super();
|
|
5985
5985
|
/** 异步同步时间间隔 */
|
|
@@ -6037,7 +6037,7 @@ class $y extends Fy {
|
|
|
6037
6037
|
m(this, "indexDBUtils", ei.getInstance());
|
|
6038
6038
|
m(this, "markmapIdResolveMap", /* @__PURE__ */ new Map());
|
|
6039
6039
|
const { control: t, internalMsgEmitter: i, publicMsgEmitter: r } = e;
|
|
6040
|
-
this.control = t, this.maxLastSyncTime = this.control.pluginOptions.extras.syncOpt.interval, this.combineUnitTime = this.control.pluginOptions.extras.bezier.combineUnitTime || this.combineUnitTime, this.smoothSync =
|
|
6040
|
+
this.control = t, this.maxLastSyncTime = this.control.pluginOptions.extras.syncOpt.interval, this.combineUnitTime = this.control.pluginOptions.extras.bezier.combineUnitTime || this.combineUnitTime, this.smoothSync = $e(
|
|
6041
6041
|
this.control.pluginOptions.extras.syncOpt.smoothSync
|
|
6042
6042
|
) ? this.control.pluginOptions.extras.syncOpt.smoothSync : this.smoothSync, this.maxCombineEraserTime = this.control.pluginOptions.extras.pencilEraser.maxCombineTime || this.maxCombineEraserTime, this.fullWorkerUrl = this.control.pluginOptions.cdn.fullWorkerUrl || "", this.subWorkerUrl = this.control.pluginOptions.cdn.subWorkerUrl || "", this.internalMsgEmitter = i, this.publicMsgEmitter = r, this.currentLocalWorkData = { workState: j.Pending };
|
|
6043
6043
|
}
|
|
@@ -6124,14 +6124,14 @@ class $y extends Fy {
|
|
|
6124
6124
|
}
|
|
6125
6125
|
async useBackgroundThread() {
|
|
6126
6126
|
this.Logger.info("[Appliance]: use background thread");
|
|
6127
|
-
const { BackgroundThreadManagerImpl: e } = await import("./index-
|
|
6127
|
+
const { BackgroundThreadManagerImpl: e } = await import("./index-B3JYNjTS.mjs");
|
|
6128
6128
|
this.backgroundThreadManager = new e(this);
|
|
6129
6129
|
}
|
|
6130
6130
|
async useMainThread() {
|
|
6131
6131
|
this.Logger.info("[Appliance]: no OffscreenCanvas"), this.control.hasExtendFontFaces && await document.fonts.ready.then(() => {
|
|
6132
6132
|
this.Logger.info("[Appliance]: set font faces in main thread success");
|
|
6133
6133
|
});
|
|
6134
|
-
const { MainThreadManagerImpl: e } = await import("./index-
|
|
6134
|
+
const { MainThreadManagerImpl: e } = await import("./index-BQ5RFl7S.mjs");
|
|
6135
6135
|
this.mainThread = new e(this);
|
|
6136
6136
|
}
|
|
6137
6137
|
async on() {
|
|
@@ -6382,7 +6382,7 @@ class $y extends Fy {
|
|
|
6382
6382
|
canTextEdit: Y,
|
|
6383
6383
|
points: Z,
|
|
6384
6384
|
selectorColor: G,
|
|
6385
|
-
canRotate:
|
|
6385
|
+
canRotate: $,
|
|
6386
6386
|
scaleType: X,
|
|
6387
6387
|
textOpt: Se,
|
|
6388
6388
|
toolsType: le,
|
|
@@ -6439,7 +6439,7 @@ class $y extends Fy {
|
|
|
6439
6439
|
}
|
|
6440
6440
|
case B.Select: {
|
|
6441
6441
|
const J = N != null && N.length ? { ...k, selectIds: N, canvasHeight: P, canvasWidth: O, points: Z } : void 0;
|
|
6442
|
-
if (J && (C != null && C.strokeColor) && (J.selectorColor = C.strokeColor), J && G && (J.selectorColor = G), J && L && (J.strokeColor = L), J && (C != null && C.fillColor) && (J.fillColor = C.fillColor), J && A && (J.fillColor = A), J &&
|
|
6442
|
+
if (J && (C != null && C.strokeColor) && (J.selectorColor = C.strokeColor), J && G && (J.selectorColor = G), J && L && (J.strokeColor = L), J && (C != null && C.fillColor) && (J.fillColor = C.fillColor), J && A && (J.fillColor = A), J && $e($) && (J.canRotate = $), J && X && (J.scaleType = X), J && Y && (J.canTextEdit = Y), J && Se && (J.textOpt = Se), J && $e(mt) && (J.canLock = mt), J && $e(It) && (J.isLocked = It), J && wt && (J.shapeOpt = wt), J && Tt && (J.toolsTypes = Tt), J && Le && (J.thickness = Le), J && Ve && (J.strokeType = Ve), J && $e(dt) && (J.useStroke = dt), ue && this.viewContainerManager.showFloatBar(ue, !!J, J), x && ((a = this.collector) == null || a.dispatch({
|
|
6443
6443
|
type: v,
|
|
6444
6444
|
selectIds: N,
|
|
6445
6445
|
opt: C,
|
|
@@ -9552,8 +9552,8 @@ class cm {
|
|
|
9552
9552
|
var Z, G;
|
|
9553
9553
|
const V = setTimeout(() => {
|
|
9554
9554
|
var X, Se;
|
|
9555
|
-
const
|
|
9556
|
-
|
|
9555
|
+
const $ = this.updateResolveMap.get(t);
|
|
9556
|
+
$ && (this.updateResolveMap.delete(t), (Se = (X = this.logger) == null ? void 0 : X.warn) == null || Se.call(
|
|
9557
9557
|
X,
|
|
9558
9558
|
`${oe} updateSelectedElements timeout requestId=${t} viewId=${i}`
|
|
9559
9559
|
), U({
|
|
@@ -9561,10 +9561,10 @@ class cm {
|
|
|
9561
9561
|
viewId: i,
|
|
9562
9562
|
ok: !1,
|
|
9563
9563
|
reason: "worker-failed",
|
|
9564
|
-
selectedIds:
|
|
9565
|
-
skippedIds:
|
|
9566
|
-
warnings:
|
|
9567
|
-
geometryChanged:
|
|
9564
|
+
selectedIds: $.selectedIds,
|
|
9565
|
+
skippedIds: $.skippedIds.length ? $.skippedIds : void 0,
|
|
9566
|
+
warnings: $.warnings.length ? $.warnings : void 0,
|
|
9567
|
+
geometryChanged: $.geometryChanged
|
|
9568
9568
|
}));
|
|
9569
9569
|
}, 8e3);
|
|
9570
9570
|
this.updateResolveMap.set(t, {
|
|
@@ -9586,7 +9586,7 @@ class cm {
|
|
|
9586
9586
|
t,
|
|
9587
9587
|
I
|
|
9588
9588
|
);
|
|
9589
|
-
} catch (
|
|
9589
|
+
} catch ($) {
|
|
9590
9590
|
this.updateResolveMap.delete(t), clearTimeout(V), this.cancelUndoTicker(
|
|
9591
9591
|
this.resolveCancelableUndoTickerId(
|
|
9592
9592
|
Y.getUndoTickerId(),
|
|
@@ -9596,7 +9596,7 @@ class cm {
|
|
|
9596
9596
|
s == null ? void 0 : s.scenePath
|
|
9597
9597
|
), (G = (Z = this.logger) == null ? void 0 : Z.error) == null || G.call(
|
|
9598
9598
|
Z,
|
|
9599
|
-
`${oe} updateSelectedElements dispatch failed requestId=${t} viewId=${i} err=${
|
|
9599
|
+
`${oe} updateSelectedElements dispatch failed requestId=${t} viewId=${i} err=${$ == null ? void 0 : $.message}`
|
|
9600
9600
|
), U({
|
|
9601
9601
|
requestId: t,
|
|
9602
9602
|
viewId: i,
|
|
@@ -10370,7 +10370,7 @@ class cm {
|
|
|
10370
10370
|
toolsType: c,
|
|
10371
10371
|
style: h
|
|
10372
10372
|
};
|
|
10373
|
-
if (i && (
|
|
10373
|
+
if (i && ($e(i.canRotate) && (g.canRotate = i.canRotate), $e(i.canLock) && (g.canLock = i.canLock), i.scaleType && (g.scaleType = i.scaleType), $e(i.isLocked) && (g.isLocked = i.isLocked)), c === S.Text && l) {
|
|
10374
10374
|
const f = l, w = {
|
|
10375
10375
|
text: f.text,
|
|
10376
10376
|
fontSize: f.fontSize,
|
|
@@ -10470,11 +10470,11 @@ function dm(o) {
|
|
|
10470
10470
|
function gm(o, n) {
|
|
10471
10471
|
return o.size > 0 ? o.has(At) ? n === At : !!n && o.has(n) : !n || o.has(n);
|
|
10472
10472
|
}
|
|
10473
|
-
function
|
|
10473
|
+
function $n(o, n) {
|
|
10474
10474
|
const e = n.toString();
|
|
10475
10475
|
return o.isLocalId(e) ? o.transformKey(e) : e;
|
|
10476
10476
|
}
|
|
10477
|
-
function
|
|
10477
|
+
function Fn(o, n, e, t) {
|
|
10478
10478
|
var s, a;
|
|
10479
10479
|
const i = /* @__PURE__ */ new Set();
|
|
10480
10480
|
if (!o)
|
|
@@ -10487,15 +10487,15 @@ function $n(o, n, e, t) {
|
|
|
10487
10487
|
i.add(At);
|
|
10488
10488
|
continue;
|
|
10489
10489
|
}
|
|
10490
|
-
const l =
|
|
10490
|
+
const l = $n(o, c), u = r == null ? void 0 : r[l];
|
|
10491
10491
|
if (o.getLocalId(l) === Q) {
|
|
10492
10492
|
(s = u == null ? void 0 : u.selectIds) == null || s.forEach((h) => {
|
|
10493
|
-
i.add(
|
|
10493
|
+
i.add($n(o, h));
|
|
10494
10494
|
});
|
|
10495
10495
|
continue;
|
|
10496
10496
|
}
|
|
10497
10497
|
i.add(l), (a = u == null ? void 0 : u.selectIds) == null || a.forEach((h) => {
|
|
10498
|
-
i.add(
|
|
10498
|
+
i.add($n(o, h));
|
|
10499
10499
|
});
|
|
10500
10500
|
}
|
|
10501
10501
|
return i;
|
|
@@ -10578,7 +10578,7 @@ const Ke = class Ke {
|
|
|
10578
10578
|
});
|
|
10579
10579
|
var a, c;
|
|
10580
10580
|
const { displayer: e, plugin: t, options: i } = n;
|
|
10581
|
-
this.plugin = t, this.room =
|
|
10581
|
+
this.plugin = t, this.room = F(e) ? e : void 0, this.play = fi(e) ? e : void 0;
|
|
10582
10582
|
let r;
|
|
10583
10583
|
this.room && (r = (a = this.room) == null ? void 0 : a.logger, this._disableDeviceInputs = this.room.disableDeviceInputs, this._disableEraseImage = this.room.disableEraseImage, this._disableEraseText = !1), this.pluginOptions = i, ((c = i.extras) == null ? void 0 : c.useWorker) === "mainThread" ? this._disableUseWorker = !0 : this._disableUseWorker = hr !== "worker", this.roomMember = new PM();
|
|
10584
10584
|
const s = {
|
|
@@ -10586,7 +10586,7 @@ const Ke = class Ke {
|
|
|
10586
10586
|
internalMsgEmitter: Ke.InternalMsgEmitter,
|
|
10587
10587
|
publicMsgEmitter: Ke.PublicMsgEmitter
|
|
10588
10588
|
};
|
|
10589
|
-
this.cursor = new OM(s), this.textEditorManager = new Xf(s), this.worker = new
|
|
10589
|
+
this.cursor = new OM(s), this.textEditorManager = new Xf(s), this.worker = new Fy(s), this.hotkeyManager = new Gy(s), this.renderControl = new Qy(s), this.pluginManager = new zo(s), this.isUseSimple || (this.miniMapManager = new Zy(s)), this.logger = new Li(r);
|
|
10590
10590
|
}
|
|
10591
10591
|
/** WB-429: selector API 事件派发用,指向 BaseApplianceManager.PublicMsgEmitter */
|
|
10592
10592
|
get publicMsgEmitter() {
|
|
@@ -11395,7 +11395,7 @@ const ct = class ct {
|
|
|
11395
11395
|
const i = this.pendingState.get(n);
|
|
11396
11396
|
if (!i || i.scenePath !== e || !t.length)
|
|
11397
11397
|
return;
|
|
11398
|
-
|
|
11398
|
+
Fn(
|
|
11399
11399
|
this.collector,
|
|
11400
11400
|
this.viewId,
|
|
11401
11401
|
e,
|
|
@@ -11408,7 +11408,7 @@ const ct = class ct {
|
|
|
11408
11408
|
const i = this.pendingState.get(n);
|
|
11409
11409
|
if (!i || i.scenePath !== e || !t.length)
|
|
11410
11410
|
return;
|
|
11411
|
-
const r =
|
|
11411
|
+
const r = Fn(
|
|
11412
11412
|
this.collector,
|
|
11413
11413
|
this.viewId,
|
|
11414
11414
|
e,
|
|
@@ -11426,7 +11426,7 @@ const ct = class ct {
|
|
|
11426
11426
|
const i = this.pendingState.get(n);
|
|
11427
11427
|
if (!i || i.scenePath !== e)
|
|
11428
11428
|
return;
|
|
11429
|
-
const r =
|
|
11429
|
+
const r = Fn(
|
|
11430
11430
|
this.collector,
|
|
11431
11431
|
this.viewId,
|
|
11432
11432
|
e,
|
|
@@ -11909,19 +11909,19 @@ const ct = class ct {
|
|
|
11909
11909
|
if (V) {
|
|
11910
11910
|
const Y = U.filter(
|
|
11911
11911
|
(G) => {
|
|
11912
|
-
var
|
|
11913
|
-
return ((
|
|
11912
|
+
var $, X;
|
|
11913
|
+
return (($ = this.collector) == null ? void 0 : $.getLocalId(G)) === Q && !((X = this.collector) != null && X.isOwn(G));
|
|
11914
11914
|
}
|
|
11915
11915
|
).map(
|
|
11916
11916
|
(G) => {
|
|
11917
|
-
var
|
|
11918
|
-
return (
|
|
11917
|
+
var $;
|
|
11918
|
+
return ($ = this.collector) == null ? void 0 : $.storage[this.viewId][i][G];
|
|
11919
11919
|
}
|
|
11920
11920
|
);
|
|
11921
11921
|
let Z = !1;
|
|
11922
11922
|
for (const G of Y)
|
|
11923
|
-
for (let
|
|
11924
|
-
(g = G == null ? void 0 : G.selectIds) != null && g.includes(V[
|
|
11923
|
+
for (let $ = 0; $ < V.length; $++)
|
|
11924
|
+
(g = G == null ? void 0 : G.selectIds) != null && g.includes(V[$]) && (delete V[$], Z = !0);
|
|
11925
11925
|
Z && (b.selectIds = V.filter((G) => !!G));
|
|
11926
11926
|
}
|
|
11927
11927
|
}
|
|
@@ -11938,19 +11938,19 @@ const ct = class ct {
|
|
|
11938
11938
|
if (V) {
|
|
11939
11939
|
const Y = U.filter(
|
|
11940
11940
|
(G) => {
|
|
11941
|
-
var
|
|
11942
|
-
return ((
|
|
11941
|
+
var $, X;
|
|
11942
|
+
return (($ = this.collector) == null ? void 0 : $.getLocalId(G)) === Q && !((X = this.collector) != null && X.isOwn(G));
|
|
11943
11943
|
}
|
|
11944
11944
|
).map(
|
|
11945
11945
|
(G) => {
|
|
11946
|
-
var
|
|
11947
|
-
return (
|
|
11946
|
+
var $;
|
|
11947
|
+
return ($ = this.collector) == null ? void 0 : $.storage[this.viewId][i][G];
|
|
11948
11948
|
}
|
|
11949
11949
|
);
|
|
11950
11950
|
let Z = !1;
|
|
11951
11951
|
for (const G of Y)
|
|
11952
|
-
for (let
|
|
11953
|
-
(I = G == null ? void 0 : G.selectIds) != null && I.includes(V[
|
|
11952
|
+
for (let $ = 0; $ < V.length; $++)
|
|
11953
|
+
(I = G == null ? void 0 : G.selectIds) != null && I.includes(V[$]) && (delete V[$], Z = !0);
|
|
11954
11954
|
Z && (b.selectIds = V.filter((G) => !!G));
|
|
11955
11955
|
}
|
|
11956
11956
|
}
|
|
@@ -11966,21 +11966,21 @@ const ct = class ct {
|
|
|
11966
11966
|
const Y = V.selectIds;
|
|
11967
11967
|
if (Y) {
|
|
11968
11968
|
const Z = U.filter(
|
|
11969
|
-
(
|
|
11969
|
+
($) => {
|
|
11970
11970
|
var X, Se;
|
|
11971
|
-
return ((X = this.collector) == null ? void 0 : X.getLocalId(
|
|
11971
|
+
return ((X = this.collector) == null ? void 0 : X.getLocalId($)) === Q && !((Se = this.collector) != null && Se.isOwn($));
|
|
11972
11972
|
}
|
|
11973
11973
|
).map(
|
|
11974
|
-
(
|
|
11974
|
+
($) => {
|
|
11975
11975
|
var X;
|
|
11976
|
-
return (X = this.collector) == null ? void 0 : X.storage[this.viewId][i][
|
|
11976
|
+
return (X = this.collector) == null ? void 0 : X.storage[this.viewId][i][$];
|
|
11977
11977
|
}
|
|
11978
11978
|
);
|
|
11979
11979
|
let G = !1;
|
|
11980
|
-
for (const
|
|
11980
|
+
for (const $ of Z)
|
|
11981
11981
|
for (let X = 0; X < Y.length; X++)
|
|
11982
|
-
|
|
11983
|
-
G && (V.selectIds = Y.filter((
|
|
11982
|
+
$ != null && $.selectIds && ((v = $.selectIds) != null && v.includes(Y[X])) && (delete Y[X], G = !0);
|
|
11983
|
+
G && (V.selectIds = Y.filter(($) => !!$));
|
|
11984
11984
|
}
|
|
11985
11985
|
}
|
|
11986
11986
|
a[P] = V, c = !0;
|
|
@@ -11990,21 +11990,21 @@ const ct = class ct {
|
|
|
11990
11990
|
const Y = V.selectIds;
|
|
11991
11991
|
if (Y) {
|
|
11992
11992
|
const Z = U.filter(
|
|
11993
|
-
(
|
|
11993
|
+
($) => {
|
|
11994
11994
|
var X, Se;
|
|
11995
|
-
return ((X = this.collector) == null ? void 0 : X.getLocalId(
|
|
11995
|
+
return ((X = this.collector) == null ? void 0 : X.getLocalId($)) === Q && !((Se = this.collector) != null && Se.isOwn($));
|
|
11996
11996
|
}
|
|
11997
11997
|
).map(
|
|
11998
|
-
(
|
|
11998
|
+
($) => {
|
|
11999
11999
|
var X;
|
|
12000
|
-
return (X = this.collector) == null ? void 0 : X.storage[this.viewId][i][
|
|
12000
|
+
return (X = this.collector) == null ? void 0 : X.storage[this.viewId][i][$];
|
|
12001
12001
|
}
|
|
12002
12002
|
);
|
|
12003
12003
|
let G = !1;
|
|
12004
|
-
for (const
|
|
12004
|
+
for (const $ of Z)
|
|
12005
12005
|
for (let X = 0; X < Y.length; X++)
|
|
12006
|
-
|
|
12007
|
-
G && (V.selectIds = Y.filter((
|
|
12006
|
+
$ != null && $.selectIds && $.selectIds.includes(Y[X]) && (delete Y[X], G = !0);
|
|
12007
|
+
G && (V.selectIds = Y.filter(($) => !!$));
|
|
12008
12008
|
}
|
|
12009
12009
|
}
|
|
12010
12010
|
a[x.key] = V, c = !0;
|
|
@@ -12269,20 +12269,20 @@ class sn {
|
|
|
12269
12269
|
canvasFloatRef: O,
|
|
12270
12270
|
canvasServiceFloatRef: U,
|
|
12271
12271
|
canvasTopRef: V
|
|
12272
|
-
} = D, Y = Math.floor(v.w * b), Z = Math.floor(v.h * b), G = v.x * b,
|
|
12272
|
+
} = D, Y = Math.floor(v.w * b), Z = Math.floor(v.h * b), G = v.x * b, $ = v.y * b;
|
|
12273
12273
|
if (C) {
|
|
12274
12274
|
switch (A) {
|
|
12275
12275
|
case st.TopFloat:
|
|
12276
|
-
(i = (t = V == null ? void 0 : V.current) == null ? void 0 : t.getContext("2d")) == null || i.clearRect(G,
|
|
12276
|
+
(i = (t = V == null ? void 0 : V.current) == null ? void 0 : t.getContext("2d")) == null || i.clearRect(G, $, Y, Z);
|
|
12277
12277
|
break;
|
|
12278
12278
|
case st.Float:
|
|
12279
|
-
(s = (r = O.current) == null ? void 0 : r.getContext("2d")) == null || s.clearRect(G,
|
|
12279
|
+
(s = (r = O.current) == null ? void 0 : r.getContext("2d")) == null || s.clearRect(G, $, Y, Z);
|
|
12280
12280
|
break;
|
|
12281
12281
|
case st.ServiceFloat:
|
|
12282
|
-
(c = (a = U.current) == null ? void 0 : a.getContext("2d")) == null || c.clearRect(G,
|
|
12282
|
+
(c = (a = U.current) == null ? void 0 : a.getContext("2d")) == null || c.clearRect(G, $, Y, Z);
|
|
12283
12283
|
break;
|
|
12284
12284
|
case st.Bg:
|
|
12285
|
-
(u = (l = P.current) == null ? void 0 : l.getContext("2d")) == null || u.clearRect(G,
|
|
12285
|
+
(u = (l = P.current) == null ? void 0 : l.getContext("2d")) == null || u.clearRect(G, $, Y, Z);
|
|
12286
12286
|
break;
|
|
12287
12287
|
}
|
|
12288
12288
|
continue;
|
|
@@ -12290,18 +12290,18 @@ class sn {
|
|
|
12290
12290
|
if (L && N)
|
|
12291
12291
|
switch (L) {
|
|
12292
12292
|
case st.TopFloat:
|
|
12293
|
-
(g = (h = V == null ? void 0 : V.current) == null ? void 0 : h.getContext("2d")) == null || g.drawImage(N, 0, 0, Y, Z, G,
|
|
12293
|
+
(g = (h = V == null ? void 0 : V.current) == null ? void 0 : h.getContext("2d")) == null || g.drawImage(N, 0, 0, Y, Z, G, $, Y, Z);
|
|
12294
12294
|
break;
|
|
12295
12295
|
case st.Float: {
|
|
12296
|
-
(d = (p = O.current) == null ? void 0 : p.getContext("2d")) == null || d.drawImage(N, 0, 0, Y, Z, G,
|
|
12296
|
+
(d = (p = O.current) == null ? void 0 : p.getContext("2d")) == null || d.drawImage(N, 0, 0, Y, Z, G, $, Y, Z);
|
|
12297
12297
|
break;
|
|
12298
12298
|
}
|
|
12299
12299
|
case st.ServiceFloat: {
|
|
12300
|
-
(I = (M = U.current) == null ? void 0 : M.getContext("2d")) == null || I.drawImage(N, 0, 0, Y, Z, G,
|
|
12300
|
+
(I = (M = U.current) == null ? void 0 : M.getContext("2d")) == null || I.drawImage(N, 0, 0, Y, Z, G, $, Y, Z);
|
|
12301
12301
|
break;
|
|
12302
12302
|
}
|
|
12303
12303
|
case st.Bg: {
|
|
12304
|
-
(f = (y = P.current) == null ? void 0 : y.getContext("2d")) == null || f.drawImage(N, 0, 0, Y, Z, G,
|
|
12304
|
+
(f = (y = P.current) == null ? void 0 : y.getContext("2d")) == null || f.drawImage(N, 0, 0, Y, Z, G, $, Y, Z);
|
|
12305
12305
|
break;
|
|
12306
12306
|
}
|
|
12307
12307
|
}
|
|
@@ -13653,7 +13653,7 @@ const Em = (o) => {
|
|
|
13653
13653
|
y,
|
|
13654
13654
|
I
|
|
13655
13655
|
);
|
|
13656
|
-
},
|
|
13656
|
+
}, $m = (o) => {
|
|
13657
13657
|
const { bold: n, setBold: e, workIds: t, viewId: i } = o, r = (s) => {
|
|
13658
13658
|
const a = n === "bold" ? "normal" : "bold";
|
|
13659
13659
|
s == null || s.stopPropagation(), e(a), te.emitMethod(
|
|
@@ -13663,7 +13663,7 @@ const Em = (o) => {
|
|
|
13663
13663
|
);
|
|
13664
13664
|
};
|
|
13665
13665
|
return /* @__PURE__ */ T.createElement("div", { className: "font-style-button", onPointerUp: r }, /* @__PURE__ */ T.createElement("img", { alt: "icon", src: We(n === "bold" ? "bold-active" : "bold") }));
|
|
13666
|
-
},
|
|
13666
|
+
}, Fm = (o) => {
|
|
13667
13667
|
const { underline: n, setUnderline: e, workIds: t, viewId: i } = o, r = (s) => {
|
|
13668
13668
|
const a = !n;
|
|
13669
13669
|
s == null || s.stopPropagation(), e(a), te.emitMethod(
|
|
@@ -13721,7 +13721,7 @@ const Em = (o) => {
|
|
|
13721
13721
|
floatBarRef: s
|
|
13722
13722
|
} = o, { mananger: a, floatBarData: c } = ze(De), [l, u] = ce("normal"), [h, g] = ce("normal"), [p, d] = ce(!1), [M, I] = ce(!1);
|
|
13723
13723
|
fe(() => {
|
|
13724
|
-
t != null && t.bold && u(t.bold),
|
|
13724
|
+
t != null && t.bold && u(t.bold), $e(t == null ? void 0 : t.underline) && d(t.underline || !1), $e(t == null ? void 0 : t.lineThrough) && I(t.lineThrough || !1), t != null && t.italic && g(t.italic);
|
|
13725
13725
|
}, [t]);
|
|
13726
13726
|
const y = q(() => {
|
|
13727
13727
|
if (r && (s != null && s.current) && K(c == null ? void 0 : c.y) && (a != null && a.height)) {
|
|
@@ -13743,7 +13743,7 @@ const Em = (o) => {
|
|
|
13743
13743
|
}
|
|
13744
13744
|
},
|
|
13745
13745
|
/* @__PURE__ */ T.createElement(
|
|
13746
|
-
|
|
13746
|
+
$m,
|
|
13747
13747
|
{
|
|
13748
13748
|
workIds: i || [Q],
|
|
13749
13749
|
bold: l,
|
|
@@ -13752,7 +13752,7 @@ const Em = (o) => {
|
|
|
13752
13752
|
}
|
|
13753
13753
|
),
|
|
13754
13754
|
/* @__PURE__ */ T.createElement(
|
|
13755
|
-
|
|
13755
|
+
Fm,
|
|
13756
13756
|
{
|
|
13757
13757
|
workIds: i || [Q],
|
|
13758
13758
|
underline: p,
|
|
@@ -14715,7 +14715,7 @@ const Em = (o) => {
|
|
|
14715
14715
|
fontStyle: D.fontStyle,
|
|
14716
14716
|
fontWeight: D.fontWeight,
|
|
14717
14717
|
fontFamily: D.fontFamily
|
|
14718
|
-
}), G = q(() => typeof window > "u" ? !1 : navigator.maxTouchPoints > 0 || "ontouchstart" in window, []),
|
|
14718
|
+
}), G = q(() => typeof window > "u" ? !1 : navigator.maxTouchPoints > 0 || "ontouchstart" in window, []), $ = q(() => u === e ? "hover" : g.workState === j.Doing || g.workState === j.Start ? "editing" : l ? "active" : "none", [u, e, g.workState, l]);
|
|
14719
14719
|
function X(H) {
|
|
14720
14720
|
if (!x.current)
|
|
14721
14721
|
return;
|
|
@@ -14770,9 +14770,9 @@ const Em = (o) => {
|
|
|
14770
14770
|
zIndex: 2,
|
|
14771
14771
|
transform: H,
|
|
14772
14772
|
transformOrigin: "left top",
|
|
14773
|
-
borderColor:
|
|
14773
|
+
borderColor: $ === "editing" || $ === "hover" ? v : "transparent"
|
|
14774
14774
|
};
|
|
14775
|
-
}, [p, d, M, I, v,
|
|
14775
|
+
}, [p, d, M, I, v, $]), le = q(() => {
|
|
14776
14776
|
let H = "";
|
|
14777
14777
|
const ee = "<div></div>";
|
|
14778
14778
|
if (g.text) {
|
|
@@ -14798,7 +14798,7 @@ const Em = (o) => {
|
|
|
14798
14798
|
return H;
|
|
14799
14799
|
}, [g.fontBgColor, g.text]), Ie = q(() => {
|
|
14800
14800
|
var H, ee;
|
|
14801
|
-
if (
|
|
14801
|
+
if ($ === "hover") {
|
|
14802
14802
|
if (p && t && K(M) && K(I) && g.boxSize && K((H = g.boxSize) == null ? void 0 : H[0]) && K((ee = g.boxSize) == null ? void 0 : ee[1])) {
|
|
14803
14803
|
const re = { x: M, y: I }, pe = {
|
|
14804
14804
|
left: M,
|
|
@@ -14822,7 +14822,7 @@ const Em = (o) => {
|
|
|
14822
14822
|
return null;
|
|
14823
14823
|
}
|
|
14824
14824
|
return null;
|
|
14825
|
-
}, [g, t, e, M, I, p,
|
|
14825
|
+
}, [g, t, e, M, I, p, $]);
|
|
14826
14826
|
fe(() => {
|
|
14827
14827
|
V.current = u === e, u !== e && (O.current && (cancelAnimationFrame(O.current), O.current = void 0), U.current && (window.clearTimeout(U.current), U.current = void 0), Y.current = !1);
|
|
14828
14828
|
}, [u, e]), fe(() => {
|
|
@@ -14864,7 +14864,7 @@ const Em = (o) => {
|
|
|
14864
14864
|
a(e, ee);
|
|
14865
14865
|
}
|
|
14866
14866
|
}
|
|
14867
|
-
}, [D, e, a,
|
|
14867
|
+
}, [D, e, a, $, l, u]);
|
|
14868
14868
|
const ue = Dt(
|
|
14869
14869
|
(H) => {
|
|
14870
14870
|
const ee = h == null ? void 0 : h.parentElement, re = x.current;
|
|
@@ -15047,31 +15047,31 @@ const Em = (o) => {
|
|
|
15047
15047
|
Le(), s();
|
|
15048
15048
|
}
|
|
15049
15049
|
const Ht = Dt(() => {
|
|
15050
|
-
if (
|
|
15050
|
+
if ($ === "active" && x.current && x.current.parentElement) {
|
|
15051
15051
|
const H = x.current.parentElement;
|
|
15052
15052
|
H.style.borderColor = v;
|
|
15053
15053
|
}
|
|
15054
|
-
}, [
|
|
15055
|
-
if (
|
|
15054
|
+
}, [$, v]), dn = Dt(() => {
|
|
15055
|
+
if ($ === "active" && x.current && x.current.parentElement) {
|
|
15056
15056
|
const H = x.current.parentElement;
|
|
15057
15057
|
H.style.borderColor = "transparent";
|
|
15058
15058
|
}
|
|
15059
|
-
}, [
|
|
15059
|
+
}, [$]);
|
|
15060
15060
|
return /* @__PURE__ */ T.createElement(T.Fragment, null, Ie, /* @__PURE__ */ T.createElement(
|
|
15061
15061
|
"div",
|
|
15062
15062
|
{
|
|
15063
|
-
className: `editor-box ${
|
|
15063
|
+
className: `editor-box ${$}`,
|
|
15064
15064
|
style: Se,
|
|
15065
15065
|
onPointerUp: () => {
|
|
15066
15066
|
var H;
|
|
15067
|
-
if (
|
|
15067
|
+
if ($ === "editing") {
|
|
15068
15068
|
s(() => {
|
|
15069
15069
|
var ee;
|
|
15070
15070
|
(ee = document.activeElement) == null || ee.blur(), h == null || h.control.textEditorManager.checkEmptyTextBlur();
|
|
15071
15071
|
});
|
|
15072
15072
|
return;
|
|
15073
15073
|
}
|
|
15074
|
-
if (
|
|
15074
|
+
if ($ === "active" && h) {
|
|
15075
15075
|
if ((H = h.control.collector) != null && H.hasIncludeSelector(e)) {
|
|
15076
15076
|
s(() => {
|
|
15077
15077
|
var ee;
|
|
@@ -16655,7 +16655,7 @@ class Pi extends T.Component {
|
|
|
16655
16655
|
activeMiniMapViewId: (r = this.props.mananger.control.miniMapManager) == null ? void 0 : r.activeViewId
|
|
16656
16656
|
};
|
|
16657
16657
|
const t = this.props.mananger.control.pluginOptions.extras.textEditor;
|
|
16658
|
-
this.showTextFloatBar =
|
|
16658
|
+
this.showTextFloatBar = $e(t.showFloatBar) ? t.showFloatBar : Ne.textEditor.showFloatBar, this.canSelectorSwitch = $e(t == null ? void 0 : t.canSelectorSwitch) ? t.canSelectorSwitch : Ne.textEditor.canSelectorSwitch, this.rightBoundBreak = $e(t == null ? void 0 : t.rightBoundBreak) ? t.rightBoundBreak : Ne.textEditor.rightBoundBreak;
|
|
16659
16659
|
}
|
|
16660
16660
|
get editors() {
|
|
16661
16661
|
return An(
|
|
@@ -17483,7 +17483,7 @@ const z = class z extends Pr {
|
|
|
17483
17483
|
var t, i;
|
|
17484
17484
|
e != null && e.roomMembers && ((t = z.currentManager) == null || t.onRoomMembersChange(
|
|
17485
17485
|
e.roomMembers
|
|
17486
|
-
)), !(
|
|
17486
|
+
)), !(F(this.displayer) && !this.displayer.isWritable) && e.memberState && ((i = z.currentManager) == null || i.onMemberChange(
|
|
17487
17487
|
e.memberState
|
|
17488
17488
|
));
|
|
17489
17489
|
});
|
|
@@ -17495,7 +17495,7 @@ const z = class z extends Pr {
|
|
|
17495
17495
|
));
|
|
17496
17496
|
const i = e.displayer, r = i.callbacks.on, s = i.callbacks.off, a = i.callbacks.once, c = e.cleanCurrentScene, l = e.mainView.setMemberState;
|
|
17497
17497
|
let u;
|
|
17498
|
-
|
|
17498
|
+
F(i) && (u = i.setWritable), t != null && t.logger && (z.logger = new Li(t.logger));
|
|
17499
17499
|
let h = i.getInvisiblePlugin(
|
|
17500
17500
|
z.kind
|
|
17501
17501
|
);
|
|
@@ -17622,20 +17622,20 @@ const z = class z extends Pr {
|
|
|
17622
17622
|
_callbacksOn: function(y, f) {
|
|
17623
17623
|
z.logger.info(
|
|
17624
17624
|
`[ApplianceMultiPlugin] callbacks ${y}`
|
|
17625
|
-
), (y === "onCanUndoStepsUpdate" || y === "onCanRedoStepsUpdate") &&
|
|
17625
|
+
), (y === "onCanUndoStepsUpdate" || y === "onCanRedoStepsUpdate") && F(i) && i.isWritable ? gt.InternalMsgEmitter.on(y, f) : r.call(i.callbacks, y, f);
|
|
17626
17626
|
},
|
|
17627
17627
|
_callbacksOnce: function(y, f) {
|
|
17628
17628
|
z.logger.info(
|
|
17629
17629
|
`[ApplianceMultiPlugin] callbacks ${y}`
|
|
17630
|
-
), (y === "onCanUndoStepsUpdate" || y === "onCanRedoStepsUpdate") &&
|
|
17630
|
+
), (y === "onCanUndoStepsUpdate" || y === "onCanRedoStepsUpdate") && F(i) && i.isWritable ? gt.InternalMsgEmitter.on(y, f) : a.call(i.callbacks, y, f);
|
|
17631
17631
|
},
|
|
17632
17632
|
_callbacksOff: function(y, f) {
|
|
17633
17633
|
z.logger.info(
|
|
17634
17634
|
`[ApplianceMultiPlugin] callbacks ${y}`
|
|
17635
|
-
), (y === "onCanUndoStepsUpdate" || y === "onCanRedoStepsUpdate") &&
|
|
17635
|
+
), (y === "onCanUndoStepsUpdate" || y === "onCanRedoStepsUpdate") && F(i) && i.isWritable ? gt.InternalMsgEmitter.off(y, f) : s.call(i.callbacks, y, f);
|
|
17636
17636
|
},
|
|
17637
17637
|
canRedoSteps() {
|
|
17638
|
-
if (z.logger.info("[ApplianceMultiPlugin] canRedoSteps"), z.currentManager &&
|
|
17638
|
+
if (z.logger.info("[ApplianceMultiPlugin] canRedoSteps"), z.currentManager && F(i) && !i.disableSerialization) {
|
|
17639
17639
|
const y = z.currentManager.viewContainerManager.focuedView, f = y == null ? void 0 : y.focusScenePath;
|
|
17640
17640
|
if (y && f)
|
|
17641
17641
|
return y.displayer.commiter.redoStack.filter(
|
|
@@ -17645,7 +17645,7 @@ const z = class z extends Pr {
|
|
|
17645
17645
|
return 0;
|
|
17646
17646
|
},
|
|
17647
17647
|
canUndoSteps() {
|
|
17648
|
-
if (z.logger.info("[ApplianceMultiPlugin] canUndoSteps"), z.currentManager &&
|
|
17648
|
+
if (z.logger.info("[ApplianceMultiPlugin] canUndoSteps"), z.currentManager && F(i) && !i.disableSerialization) {
|
|
17649
17649
|
const y = z.currentManager.viewContainerManager.focuedView, f = y == null ? void 0 : y.focusScenePath;
|
|
17650
17650
|
if (y && f)
|
|
17651
17651
|
return y.displayer.commiter.undoStack.filter(
|
|
@@ -17655,20 +17655,20 @@ const z = class z extends Pr {
|
|
|
17655
17655
|
return 0;
|
|
17656
17656
|
},
|
|
17657
17657
|
undo: function() {
|
|
17658
|
-
return z.logger.info("[ApplianceMultiPlugin] undo"), z.currentManager &&
|
|
17658
|
+
return z.logger.info("[ApplianceMultiPlugin] undo"), z.currentManager && F(i) && !i.disableSerialization && i.isWritable ? z.currentManager.viewContainerManager.undo() : 0;
|
|
17659
17659
|
},
|
|
17660
17660
|
redo: function() {
|
|
17661
|
-
return z.logger.info("[ApplianceMultiPlugin] redo"), z.currentManager &&
|
|
17661
|
+
return z.logger.info("[ApplianceMultiPlugin] redo"), z.currentManager && F(i) && !i.disableSerialization && i.isWritable ? z.currentManager.viewContainerManager.redo() : 0;
|
|
17662
17662
|
},
|
|
17663
17663
|
cleanCurrentScene: function() {
|
|
17664
17664
|
z.logger.info(
|
|
17665
17665
|
"[ApplianceMultiPlugin] cleanCurrentScene"
|
|
17666
|
-
), z.currentManager &&
|
|
17666
|
+
), z.currentManager && F(i) && i.isWritable && (z.currentManager.logger.info(
|
|
17667
17667
|
"[Appliance]: cleanCurrentScene"
|
|
17668
17668
|
), z.currentManager.cleanCurrentScene(), c.call(e));
|
|
17669
17669
|
},
|
|
17670
17670
|
insertImage: function(y) {
|
|
17671
|
-
if (z.logger.info("[ApplianceMultiPlugin] insertImage"), z.currentManager &&
|
|
17671
|
+
if (z.logger.info("[ApplianceMultiPlugin] insertImage"), z.currentManager && F(i) && i.isWritable) {
|
|
17672
17672
|
const f = z.currentManager.viewContainerManager.focuedViewId || se;
|
|
17673
17673
|
z.currentManager.worker.insertImage(
|
|
17674
17674
|
f,
|
|
@@ -17677,7 +17677,7 @@ const z = class z extends Pr {
|
|
|
17677
17677
|
}
|
|
17678
17678
|
},
|
|
17679
17679
|
lockImage: function(y, f) {
|
|
17680
|
-
if (z.logger.info("[ApplianceMultiPlugin] lockImage"), z.currentManager &&
|
|
17680
|
+
if (z.logger.info("[ApplianceMultiPlugin] lockImage"), z.currentManager && F(i) && i.isWritable) {
|
|
17681
17681
|
const w = z.currentManager.viewContainerManager.focuedViewId || se;
|
|
17682
17682
|
z.currentManager.worker.lockImage(
|
|
17683
17683
|
w,
|
|
@@ -17689,7 +17689,7 @@ const z = class z extends Pr {
|
|
|
17689
17689
|
completeImageUpload: function(y, f) {
|
|
17690
17690
|
if (z.logger.info(
|
|
17691
17691
|
"[ApplianceMultiPlugin] completeImageUpload"
|
|
17692
|
-
), z.currentManager &&
|
|
17692
|
+
), z.currentManager && F(i) && i.isWritable) {
|
|
17693
17693
|
const w = z.currentManager.viewContainerManager.focuedViewId || se;
|
|
17694
17694
|
z.currentManager.worker.completeImageUpload(
|
|
17695
17695
|
w,
|
|
@@ -17701,12 +17701,12 @@ const z = class z extends Pr {
|
|
|
17701
17701
|
getImagesInformation: function(y) {
|
|
17702
17702
|
return z.logger.info(
|
|
17703
17703
|
"[ApplianceMultiPlugin] completeImageUpload"
|
|
17704
|
-
), z.currentManager &&
|
|
17704
|
+
), z.currentManager && F(i) && i.isWritable ? z.currentManager.worker.getImagesInformation(
|
|
17705
17705
|
y
|
|
17706
17706
|
) : [];
|
|
17707
17707
|
},
|
|
17708
17708
|
insertText: function(y, f, w) {
|
|
17709
|
-
if (z.logger.info("[ApplianceMultiPlugin] insertText"), z.currentManager &&
|
|
17709
|
+
if (z.logger.info("[ApplianceMultiPlugin] insertText"), z.currentManager && F(i) && i.isWritable) {
|
|
17710
17710
|
const v = z.currentManager.viewContainerManager.focuedViewId || se;
|
|
17711
17711
|
return z.currentManager.textEditorManager.insertText(
|
|
17712
17712
|
v,
|
|
@@ -17717,7 +17717,7 @@ const z = class z extends Pr {
|
|
|
17717
17717
|
}
|
|
17718
17718
|
},
|
|
17719
17719
|
updateText: function(y, f) {
|
|
17720
|
-
z.logger.info("[ApplianceMultiPlugin] updateText"), z.currentManager &&
|
|
17720
|
+
z.logger.info("[ApplianceMultiPlugin] updateText"), z.currentManager && F(i) && i.isWritable && z.currentManager.textEditorManager.updateText(
|
|
17721
17721
|
y,
|
|
17722
17722
|
f
|
|
17723
17723
|
);
|
|
@@ -17741,7 +17741,7 @@ const z = class z extends Pr {
|
|
|
17741
17741
|
`[Appliance]: setMemberState ${JSON.stringify(y)}`
|
|
17742
17742
|
);
|
|
17743
17743
|
const f = Object.keys(y);
|
|
17744
|
-
if (
|
|
17744
|
+
if (F(i) && i.isWritable) {
|
|
17745
17745
|
if (f.includes("currentApplianceName"))
|
|
17746
17746
|
if (y.currentApplianceName && y.currentApplianceName === ie.laserPen) {
|
|
17747
17747
|
if (z.currentManager.isUseSimple)
|
|
@@ -17768,7 +17768,7 @@ const z = class z extends Pr {
|
|
|
17768
17768
|
createMiniMap: async function(y, f) {
|
|
17769
17769
|
if (z.logger.info(
|
|
17770
17770
|
"[ApplianceMultiPlugin] createMiniMap"
|
|
17771
|
-
), z.currentManager &&
|
|
17771
|
+
), z.currentManager && F(i) && i.isWritable)
|
|
17772
17772
|
return z.currentManager.logger.info(
|
|
17773
17773
|
"[Appliance]: [ApplianceMultiPlugin] createMiniMap"
|
|
17774
17774
|
), z.currentManager.createMiniMap(y, f);
|
|
@@ -17776,7 +17776,7 @@ const z = class z extends Pr {
|
|
|
17776
17776
|
destroyMiniMap: async function(y) {
|
|
17777
17777
|
if (z.logger.info(
|
|
17778
17778
|
"[ApplianceMultiPlugin] destroyeMiniMap"
|
|
17779
|
-
), z.currentManager &&
|
|
17779
|
+
), z.currentManager && F(i) && i.isWritable)
|
|
17780
17780
|
return z.currentManager.logger.info(
|
|
17781
17781
|
"[Appliance]: [ApplianceMultiPlugin] destroyeMiniMap"
|
|
17782
17782
|
), z.currentManager.destroyMiniMap(y);
|
|
@@ -17784,7 +17784,7 @@ const z = class z extends Pr {
|
|
|
17784
17784
|
filterRenderByUid(y, f, w) {
|
|
17785
17785
|
if (z.logger.info(
|
|
17786
17786
|
"[ApplianceMultiPlugin] filterRenderByUid"
|
|
17787
|
-
), z.currentManager &&
|
|
17787
|
+
), z.currentManager && F(i) && i.isWritable)
|
|
17788
17788
|
return z.currentManager.filterRenderByUid(
|
|
17789
17789
|
y,
|
|
17790
17790
|
f,
|
|
@@ -17794,7 +17794,7 @@ const z = class z extends Pr {
|
|
|
17794
17794
|
cancelFilterRender(y, f) {
|
|
17795
17795
|
if (z.logger.info(
|
|
17796
17796
|
"[ApplianceMultiPlugin] filterRenderByUid"
|
|
17797
|
-
), z.currentManager &&
|
|
17797
|
+
), z.currentManager && F(i) && i.isWritable)
|
|
17798
17798
|
return z.currentManager.cancelFilterRender(
|
|
17799
17799
|
y,
|
|
17800
17800
|
f
|
|
@@ -17818,37 +17818,37 @@ const z = class z extends Pr {
|
|
|
17818
17818
|
), (f = z.currentManager) == null || f.usePlugin(y);
|
|
17819
17819
|
},
|
|
17820
17820
|
getDisableDeviceInputs() {
|
|
17821
|
-
if (z.currentManager &&
|
|
17821
|
+
if (z.currentManager && F(i))
|
|
17822
17822
|
return z.currentManager.disableDeviceInputs;
|
|
17823
17823
|
},
|
|
17824
17824
|
setDisableDeviceInputs(y) {
|
|
17825
17825
|
z.logger.info(
|
|
17826
17826
|
`[ApplianceMultiPlugin] setDisableDeviceInputs ${y}`
|
|
17827
|
-
), z.currentManager &&
|
|
17827
|
+
), z.currentManager && F(i) && (z.currentManager.disableDeviceInputs = y);
|
|
17828
17828
|
},
|
|
17829
17829
|
getDisableCameraTransform() {
|
|
17830
|
-
if (z.currentManager &&
|
|
17830
|
+
if (z.currentManager && F(i))
|
|
17831
17831
|
return z.currentManager.disableCameraTransform;
|
|
17832
17832
|
},
|
|
17833
17833
|
setDisableCameraTransform(y) {
|
|
17834
17834
|
z.logger.info(
|
|
17835
17835
|
`[ApplianceMultiPlugin] setDisableCameraTransform ${y}`
|
|
17836
|
-
), z.currentManager &&
|
|
17836
|
+
), z.currentManager && F(i) && (z.currentManager.disableCameraTransform = y);
|
|
17837
17837
|
},
|
|
17838
17838
|
getDisableEraseImage() {
|
|
17839
|
-
if (z.currentManager &&
|
|
17839
|
+
if (z.currentManager && F(i))
|
|
17840
17840
|
return z.currentManager.disableEraseImage;
|
|
17841
17841
|
},
|
|
17842
17842
|
setDisableEraseImage(y) {
|
|
17843
17843
|
z.logger.info(
|
|
17844
17844
|
`[ApplianceMultiPlugin] setDisableEraseImage ${y}`
|
|
17845
|
-
), z.currentManager &&
|
|
17845
|
+
), z.currentManager && F(i) && (z.currentManager.disableEraseImage = y);
|
|
17846
17846
|
},
|
|
17847
17847
|
setWritable: async function(y) {
|
|
17848
17848
|
var f;
|
|
17849
17849
|
z.logger.info(
|
|
17850
17850
|
`[ApplianceMultiPlugin] setWritable ${y}`
|
|
17851
|
-
),
|
|
17851
|
+
), F(i) && u && (await ((f = z.currentManager) == null ? void 0 : f.setWritable(y)), await u.call(i, y));
|
|
17852
17852
|
},
|
|
17853
17853
|
requestIdleCallback: (y, f) => {
|
|
17854
17854
|
const w = (f == null ? void 0 : f.timeout) || 0, v = performance.now();
|
|
@@ -17903,13 +17903,13 @@ const z = class z extends Pr {
|
|
|
17903
17903
|
f === "callbacks" && (y.callbacks.on = g._callbacksOn.bind(g), y.callbacks.off = g._callbacksOff.bind(g), y.callbacks.once = g._callbacksOnce.bind(g));
|
|
17904
17904
|
},
|
|
17905
17905
|
blurText: () => {
|
|
17906
|
-
z.logger.info("[ApplianceMultiPlugin] blurText"), z.currentManager &&
|
|
17906
|
+
z.logger.info("[ApplianceMultiPlugin] blurText"), z.currentManager && F(i) && i.isWritable && z.currentManager.textEditorManager.checkEmptyTextBlur();
|
|
17907
17907
|
},
|
|
17908
17908
|
hasElements: (y, f) => {
|
|
17909
17909
|
var w;
|
|
17910
17910
|
if (z.logger.info(
|
|
17911
17911
|
`[ApplianceMultiPlugin] hasElements ${y}`
|
|
17912
|
-
), z.currentManager &&
|
|
17912
|
+
), z.currentManager && F(i) && i.isWritable) {
|
|
17913
17913
|
let v = y;
|
|
17914
17914
|
if (!v) {
|
|
17915
17915
|
const N = z.currentManager.viewContainerManager.focuedView;
|
|
@@ -17934,7 +17934,7 @@ const z = class z extends Pr {
|
|
|
17934
17934
|
var w;
|
|
17935
17935
|
if (z.logger.info(
|
|
17936
17936
|
`[ApplianceMultiPlugin] getElements ${y}`
|
|
17937
|
-
), z.currentManager &&
|
|
17937
|
+
), z.currentManager && F(i) && i.isWritable) {
|
|
17938
17938
|
let v = y;
|
|
17939
17939
|
if (!v) {
|
|
17940
17940
|
const N = z.currentManager.viewContainerManager.focuedView;
|
|
@@ -17954,7 +17954,7 @@ const z = class z extends Pr {
|
|
|
17954
17954
|
stopDraw: (y) => {
|
|
17955
17955
|
if (z.logger.info(
|
|
17956
17956
|
`[ApplianceMultiPlugin] stopDraw ${y}`
|
|
17957
|
-
), z.currentManager &&
|
|
17957
|
+
), z.currentManager && F(i))
|
|
17958
17958
|
return z.currentManager.stopDraw(y);
|
|
17959
17959
|
},
|
|
17960
17960
|
setViewLocalScenePathChange: async (y, f) => {
|
|
@@ -18006,7 +18006,7 @@ const z = class z extends Pr {
|
|
|
18006
18006
|
},
|
|
18007
18007
|
blurSelector: (y) => {
|
|
18008
18008
|
var f;
|
|
18009
|
-
if (z.currentManager &&
|
|
18009
|
+
if (z.currentManager && F(i) && i.isWritable) {
|
|
18010
18010
|
const w = (f = z.currentManager) == null ? void 0 : f.selectorApi;
|
|
18011
18011
|
return w ? w.blurSelector(y) : Promise.resolve({
|
|
18012
18012
|
ok: !1,
|
|
@@ -18024,7 +18024,7 @@ const z = class z extends Pr {
|
|
|
18024
18024
|
},
|
|
18025
18025
|
updateSelectedElements: (y, f) => {
|
|
18026
18026
|
var w;
|
|
18027
|
-
if (z.currentManager &&
|
|
18027
|
+
if (z.currentManager && F(i) && i.isWritable) {
|
|
18028
18028
|
const v = (w = z.currentManager) == null ? void 0 : w.selectorApi;
|
|
18029
18029
|
return v ? v.updateSelectedElements(y, f) : Promise.resolve({
|
|
18030
18030
|
requestId: `update-${Date.now().toString(36)}`,
|
|
@@ -18042,7 +18042,7 @@ const z = class z extends Pr {
|
|
|
18042
18042
|
},
|
|
18043
18043
|
updateElement: (y, f, w, v, N = !0) => {
|
|
18044
18044
|
var C;
|
|
18045
|
-
if (z.currentManager &&
|
|
18045
|
+
if (z.currentManager && F(i) && i.isWritable) {
|
|
18046
18046
|
const k = (C = z.currentManager) == null ? void 0 : C.selectorApi;
|
|
18047
18047
|
return k ? k.updateElement(
|
|
18048
18048
|
y,
|
|
@@ -18056,7 +18056,7 @@ const z = class z extends Pr {
|
|
|
18056
18056
|
},
|
|
18057
18057
|
copySelectedElements: (y) => {
|
|
18058
18058
|
var f;
|
|
18059
|
-
if (z.currentManager &&
|
|
18059
|
+
if (z.currentManager && F(i) && i.isWritable) {
|
|
18060
18060
|
const w = (f = z.currentManager) == null ? void 0 : f.selectorApi;
|
|
18061
18061
|
return w ? w.copySelectedElements(y) : Promise.resolve({
|
|
18062
18062
|
ok: !1,
|
|
@@ -18074,7 +18074,7 @@ const z = class z extends Pr {
|
|
|
18074
18074
|
},
|
|
18075
18075
|
deleteSelectedElements: (y) => {
|
|
18076
18076
|
var f;
|
|
18077
|
-
if (z.currentManager &&
|
|
18077
|
+
if (z.currentManager && F(i) && i.isWritable) {
|
|
18078
18078
|
const w = (f = z.currentManager) == null ? void 0 : f.selectorApi;
|
|
18079
18079
|
return w ? w.deleteSelectedElements(y) : Promise.resolve({
|
|
18080
18080
|
ok: !1,
|
|
@@ -18104,7 +18104,7 @@ const z = class z extends Pr {
|
|
|
18104
18104
|
);
|
|
18105
18105
|
}
|
|
18106
18106
|
};
|
|
18107
|
-
g.injectMethodToObject(e, "undo"), g.injectMethodToObject(e, "redo"), g.injectMethodToObject(e, "cleanCurrentScene"), g.injectMethodToObject(e, "blurSelector"), g.injectMethodToObject(e, "updateElement"), g.injectMethodToObject(e, "insertImage"), g.injectMethodToObject(e, "completeImageUpload"), g.injectMethodToObject(e, "lockImage"), g.injectMethodToObject(e, "insertText"), g.injectMethodToObject(e, "updateText"), g.injectMethodToObject(i, "getImagesInformation"), g.injectMethodToObject(i, "callbacks"), g.injectMethodToObject(i, "screenshotToCanvasAsync"), g.injectMethodToObject(i, "getBoundingRectAsync"), g.injectMethodToObject(i, "scenePreviewAsync"), g.injectMethodToObject(i, "fillSceneSnapshotAsync"), g.injectMethodToObject(i, "blurSelector"), g.injectMethodToObject(i, "updateElement"), g.injectMethodToObject(e.mainView, "setMemberState"),
|
|
18107
|
+
g.injectMethodToObject(e, "undo"), g.injectMethodToObject(e, "redo"), g.injectMethodToObject(e, "cleanCurrentScene"), g.injectMethodToObject(e, "blurSelector"), g.injectMethodToObject(e, "updateElement"), g.injectMethodToObject(e, "insertImage"), g.injectMethodToObject(e, "completeImageUpload"), g.injectMethodToObject(e, "lockImage"), g.injectMethodToObject(e, "insertText"), g.injectMethodToObject(e, "updateText"), g.injectMethodToObject(i, "getImagesInformation"), g.injectMethodToObject(i, "callbacks"), g.injectMethodToObject(i, "screenshotToCanvasAsync"), g.injectMethodToObject(i, "getBoundingRectAsync"), g.injectMethodToObject(i, "scenePreviewAsync"), g.injectMethodToObject(i, "fillSceneSnapshotAsync"), g.injectMethodToObject(i, "blurSelector"), g.injectMethodToObject(i, "updateElement"), g.injectMethodToObject(e.mainView, "setMemberState"), F(i) && g.injectMethodToObject(i, "setWritable"), Object.defineProperty(e, "canUndoSteps", {
|
|
18108
18108
|
get() {
|
|
18109
18109
|
return g.canUndoSteps();
|
|
18110
18110
|
}
|
|
@@ -18195,7 +18195,7 @@ const z = class z extends Pr {
|
|
|
18195
18195
|
const t = e.state;
|
|
18196
18196
|
(i = z.currentManager) == null || i.onRoomMembersChange(
|
|
18197
18197
|
t.roomMembers
|
|
18198
|
-
),
|
|
18198
|
+
), F(e) && ((r = z.currentManager) == null || r.onMemberChange(
|
|
18199
18199
|
t.memberState
|
|
18200
18200
|
)), this.displayer.callbacks.on(
|
|
18201
18201
|
this.callbackName,
|
|
@@ -18238,11 +18238,11 @@ function BI(o) {
|
|
|
18238
18238
|
;
|
|
18239
18239
|
return n;
|
|
18240
18240
|
}
|
|
18241
|
-
var WI = BI, VI = WI,
|
|
18242
|
-
function
|
|
18243
|
-
return o && o.slice(0, VI(o) + 1).replace(
|
|
18241
|
+
var WI = BI, VI = WI, $I = /^\s+/;
|
|
18242
|
+
function FI(o) {
|
|
18243
|
+
return o && o.slice(0, VI(o) + 1).replace($I, "");
|
|
18244
18244
|
}
|
|
18245
|
-
var GI =
|
|
18245
|
+
var GI = FI, QI = ln, ZI = zt, HI = "[object Symbol]";
|
|
18246
18246
|
function qI(o) {
|
|
18247
18247
|
return typeof o == "symbol" || ZI(o) && QI(o) == HI;
|
|
18248
18248
|
}
|
|
@@ -18622,7 +18622,7 @@ const E = class E extends Pr {
|
|
|
18622
18622
|
se
|
|
18623
18623
|
)), e != null && e.roomMembers && ((t = E.currentManager) == null || t.onRoomMembersChange(
|
|
18624
18624
|
e.roomMembers
|
|
18625
|
-
)), !(
|
|
18625
|
+
)), !(F(this.displayer) && !this.displayer.isWritable) && e.memberState && ((i = E.currentManager) == null || i.onMemberChange(
|
|
18626
18626
|
e.memberState
|
|
18627
18627
|
));
|
|
18628
18628
|
});
|
|
@@ -18636,7 +18636,7 @@ const E = class E extends Pr {
|
|
|
18636
18636
|
e
|
|
18637
18637
|
), c = e.setMemberState.bind(e);
|
|
18638
18638
|
let l;
|
|
18639
|
-
|
|
18639
|
+
F(e) && (l = e.setWritable), t != null && t.logger && (E.logger = new Li(t.logger));
|
|
18640
18640
|
let u = e.getInvisiblePlugin(
|
|
18641
18641
|
E.kind
|
|
18642
18642
|
);
|
|
@@ -18754,22 +18754,22 @@ const E = class E extends Pr {
|
|
|
18754
18754
|
_callbacksOn: function(d, M) {
|
|
18755
18755
|
E.logger.info(
|
|
18756
18756
|
`[ApplianceSinglePlugin] callbacks ${d}`
|
|
18757
|
-
), (d === "onCanUndoStepsUpdate" || d === "onCanRedoStepsUpdate") &&
|
|
18757
|
+
), (d === "onCanUndoStepsUpdate" || d === "onCanRedoStepsUpdate") && F(e) && e.isWritable ? _e.InternalMsgEmitter.on(d, M) : i.call(e.callbacks, d, M);
|
|
18758
18758
|
},
|
|
18759
18759
|
_callbacksOnce: function(d, M) {
|
|
18760
18760
|
E.logger.info(
|
|
18761
18761
|
`[ApplianceSinglePlugin] callbacks ${d}`
|
|
18762
|
-
), (d === "onCanUndoStepsUpdate" || d === "onCanRedoStepsUpdate") &&
|
|
18762
|
+
), (d === "onCanUndoStepsUpdate" || d === "onCanRedoStepsUpdate") && F(e) && e.isWritable ? _e.InternalMsgEmitter.on(d, M) : s.call(e.callbacks, d, M);
|
|
18763
18763
|
},
|
|
18764
18764
|
_callbacksOff: function(d, M) {
|
|
18765
18765
|
E.logger.info(
|
|
18766
18766
|
`[ApplianceSinglePlugin] callbacks ${d}`
|
|
18767
|
-
), (d === "onCanUndoStepsUpdate" || d === "onCanRedoStepsUpdate") &&
|
|
18767
|
+
), (d === "onCanUndoStepsUpdate" || d === "onCanRedoStepsUpdate") && F(e) && e.isWritable ? _e.InternalMsgEmitter.off(d, M) : r.call(e.callbacks, d, M);
|
|
18768
18768
|
},
|
|
18769
18769
|
canRedoSteps() {
|
|
18770
18770
|
if (E.logger.info(
|
|
18771
18771
|
"[ApplianceSinglePlugin] canRedoSteps"
|
|
18772
|
-
), E.currentManager &&
|
|
18772
|
+
), E.currentManager && F(e) && !e.disableSerialization) {
|
|
18773
18773
|
const d = E.currentManager.viewContainerManager.focuedView, M = d == null ? void 0 : d.focusScenePath;
|
|
18774
18774
|
if (d && M)
|
|
18775
18775
|
return d.displayer.commiter.redoStack.filter(
|
|
@@ -18781,7 +18781,7 @@ const E = class E extends Pr {
|
|
|
18781
18781
|
canUndoSteps() {
|
|
18782
18782
|
if (E.logger.info(
|
|
18783
18783
|
"[ApplianceSinglePlugin] canUndoSteps"
|
|
18784
|
-
), E.currentManager &&
|
|
18784
|
+
), E.currentManager && F(e) && !e.disableSerialization) {
|
|
18785
18785
|
const d = E.currentManager.viewContainerManager.focuedView, M = d == null ? void 0 : d.focusScenePath;
|
|
18786
18786
|
if (d && M)
|
|
18787
18787
|
return d.displayer.commiter.undoStack.filter(
|
|
@@ -18791,26 +18791,26 @@ const E = class E extends Pr {
|
|
|
18791
18791
|
return 0;
|
|
18792
18792
|
},
|
|
18793
18793
|
undo: function() {
|
|
18794
|
-
return E.logger.info("[ApplianceSinglePlugin] undo"), E.currentManager &&
|
|
18794
|
+
return E.logger.info("[ApplianceSinglePlugin] undo"), E.currentManager && F(e) && !e.disableSerialization ? E.currentManager.viewContainerManager.undo() : 0;
|
|
18795
18795
|
},
|
|
18796
18796
|
redo: function() {
|
|
18797
|
-
return E.logger.info("[ApplianceSinglePlugin] redo"), E.currentManager &&
|
|
18797
|
+
return E.logger.info("[ApplianceSinglePlugin] redo"), E.currentManager && F(e) && !e.disableSerialization ? E.currentManager.viewContainerManager.redo() : 0;
|
|
18798
18798
|
},
|
|
18799
18799
|
cleanCurrentScene: function(d) {
|
|
18800
18800
|
E.logger.info(
|
|
18801
18801
|
"[ApplianceSinglePlugin] cleanCurrentScene"
|
|
18802
|
-
), E.currentManager &&
|
|
18802
|
+
), E.currentManager && F(e) && e.isWritable && (E.currentManager.cleanCurrentScene(), a.call(e, d));
|
|
18803
18803
|
},
|
|
18804
18804
|
insertImage: function(d) {
|
|
18805
18805
|
E.logger.info(
|
|
18806
18806
|
"[ApplianceSinglePlugin] insertImage"
|
|
18807
|
-
), E.currentManager &&
|
|
18807
|
+
), E.currentManager && F(e) && e.isWritable && E.currentManager.worker.insertImage(
|
|
18808
18808
|
se,
|
|
18809
18809
|
d
|
|
18810
18810
|
);
|
|
18811
18811
|
},
|
|
18812
18812
|
lockImage: function(d, M) {
|
|
18813
|
-
E.logger.info("[ApplianceSinglePlugin] lockImage"), E.currentManager &&
|
|
18813
|
+
E.logger.info("[ApplianceSinglePlugin] lockImage"), E.currentManager && F(e) && e.isWritable && E.currentManager.worker.lockImage(
|
|
18814
18814
|
se,
|
|
18815
18815
|
d,
|
|
18816
18816
|
M
|
|
@@ -18819,7 +18819,7 @@ const E = class E extends Pr {
|
|
|
18819
18819
|
completeImageUpload: function(d, M) {
|
|
18820
18820
|
E.logger.info(
|
|
18821
18821
|
"[ApplianceSinglePlugin] completeImageUpload"
|
|
18822
|
-
), E.currentManager &&
|
|
18822
|
+
), E.currentManager && F(e) && e.isWritable && E.currentManager.worker.completeImageUpload(
|
|
18823
18823
|
se,
|
|
18824
18824
|
d,
|
|
18825
18825
|
M
|
|
@@ -18828,12 +18828,12 @@ const E = class E extends Pr {
|
|
|
18828
18828
|
getImagesInformation: function(d) {
|
|
18829
18829
|
return E.logger.info(
|
|
18830
18830
|
"[ApplianceSinglePlugin] completeImageUpload"
|
|
18831
|
-
), E.currentManager &&
|
|
18831
|
+
), E.currentManager && F(e) && e.isWritable ? E.currentManager.worker.getImagesInformation(
|
|
18832
18832
|
d
|
|
18833
18833
|
) : [];
|
|
18834
18834
|
},
|
|
18835
18835
|
insertText: function(d, M, I) {
|
|
18836
|
-
if (E.logger.info("[ApplianceSinglePlugin] insertText"), E.currentManager &&
|
|
18836
|
+
if (E.logger.info("[ApplianceSinglePlugin] insertText"), E.currentManager && F(e) && e.isWritable)
|
|
18837
18837
|
return E.currentManager.textEditorManager.insertText(
|
|
18838
18838
|
se,
|
|
18839
18839
|
d,
|
|
@@ -18842,7 +18842,7 @@ const E = class E extends Pr {
|
|
|
18842
18842
|
);
|
|
18843
18843
|
},
|
|
18844
18844
|
updateText: function(d, M) {
|
|
18845
|
-
E.logger.info("[ApplianceMultiPlugin] updateText"), E.currentManager &&
|
|
18845
|
+
E.logger.info("[ApplianceMultiPlugin] updateText"), E.currentManager && F(e) && e.isWritable && E.currentManager.textEditorManager.updateText(
|
|
18846
18846
|
d,
|
|
18847
18847
|
M
|
|
18848
18848
|
);
|
|
@@ -18862,7 +18862,7 @@ const E = class E extends Pr {
|
|
|
18862
18862
|
`[ApplianceSinglePlugin] setMemberState ${JSON.stringify(d)}`
|
|
18863
18863
|
);
|
|
18864
18864
|
const M = Object.keys(d);
|
|
18865
|
-
if (
|
|
18865
|
+
if (F(e) && e.isWritable) {
|
|
18866
18866
|
if (M.includes("currentApplianceName"))
|
|
18867
18867
|
if (d.currentApplianceName && d.currentApplianceName === ie.laserPen) {
|
|
18868
18868
|
if ((I = E.currentManager) != null && I.isUseSimple)
|
|
@@ -18879,7 +18879,7 @@ const E = class E extends Pr {
|
|
|
18879
18879
|
createMiniMap: async function(d, M) {
|
|
18880
18880
|
if (E.logger.info(
|
|
18881
18881
|
"[ApplianceSinglePlugin] createMiniMap"
|
|
18882
|
-
), E.currentManager &&
|
|
18882
|
+
), E.currentManager && F(e) && e.isWritable)
|
|
18883
18883
|
return E.currentManager.createMiniMap(
|
|
18884
18884
|
d,
|
|
18885
18885
|
M
|
|
@@ -18888,13 +18888,13 @@ const E = class E extends Pr {
|
|
|
18888
18888
|
destroyMiniMap: async function(d) {
|
|
18889
18889
|
if (E.logger.info(
|
|
18890
18890
|
"[ApplianceMultiPlugin] destroyeMiniMap"
|
|
18891
|
-
), E.currentManager &&
|
|
18891
|
+
), E.currentManager && F(e) && e.isWritable)
|
|
18892
18892
|
return E.currentManager.destroyMiniMap(d);
|
|
18893
18893
|
},
|
|
18894
18894
|
filterRenderByUid(d, M, I) {
|
|
18895
18895
|
if (E.logger.info(
|
|
18896
18896
|
"[ApplianceSinglePlugin] filterRenderByUid"
|
|
18897
|
-
), E.currentManager &&
|
|
18897
|
+
), E.currentManager && F(e) && e.isWritable)
|
|
18898
18898
|
return E.currentManager.filterRenderByUid(
|
|
18899
18899
|
d,
|
|
18900
18900
|
M,
|
|
@@ -18904,7 +18904,7 @@ const E = class E extends Pr {
|
|
|
18904
18904
|
cancelFilterRender(d, M) {
|
|
18905
18905
|
if (E.logger.info(
|
|
18906
18906
|
"[ApplianceSinglePlugin] filterRenderByUid"
|
|
18907
|
-
), E.currentManager &&
|
|
18907
|
+
), E.currentManager && F(e) && e.isWritable)
|
|
18908
18908
|
return E.currentManager.cancelFilterRender(
|
|
18909
18909
|
d,
|
|
18910
18910
|
M
|
|
@@ -18928,37 +18928,37 @@ const E = class E extends Pr {
|
|
|
18928
18928
|
), (M = E.currentManager) == null || M.usePlugin(d);
|
|
18929
18929
|
},
|
|
18930
18930
|
getDisableDeviceInputs() {
|
|
18931
|
-
if (E.currentManager &&
|
|
18931
|
+
if (E.currentManager && F(e))
|
|
18932
18932
|
return E.currentManager.disableDeviceInputs;
|
|
18933
18933
|
},
|
|
18934
18934
|
setDisableDeviceInputs(d) {
|
|
18935
18935
|
E.logger.info(
|
|
18936
18936
|
`[ApplianceSinglePlugin] setDisableDeviceInputs ${d}`
|
|
18937
|
-
), E.currentManager &&
|
|
18937
|
+
), E.currentManager && F(e) && (E.currentManager.disableDeviceInputs = d);
|
|
18938
18938
|
},
|
|
18939
18939
|
getDisableCameraTransform() {
|
|
18940
|
-
if (E.currentManager &&
|
|
18940
|
+
if (E.currentManager && F(e))
|
|
18941
18941
|
return E.currentManager.disableCameraTransform;
|
|
18942
18942
|
},
|
|
18943
18943
|
setDisableCameraTransform(d) {
|
|
18944
18944
|
E.logger.info(
|
|
18945
18945
|
`[ApplianceSinglePlugin] setDisableCameraTransform ${d}`
|
|
18946
|
-
), E.currentManager &&
|
|
18946
|
+
), E.currentManager && F(e) && (E.currentManager.disableCameraTransform = d);
|
|
18947
18947
|
},
|
|
18948
18948
|
getDisableEraseImage() {
|
|
18949
|
-
if (E.currentManager &&
|
|
18949
|
+
if (E.currentManager && F(e))
|
|
18950
18950
|
return E.currentManager.disableEraseImage;
|
|
18951
18951
|
},
|
|
18952
18952
|
setDisableEraseImage(d) {
|
|
18953
18953
|
E.logger.info(
|
|
18954
18954
|
`[ApplianceSinglePlugin] setDisableEraseImage ${d}`
|
|
18955
|
-
), E.currentManager &&
|
|
18955
|
+
), E.currentManager && F(e) && (E.currentManager.disableEraseImage = d);
|
|
18956
18956
|
},
|
|
18957
18957
|
setWritable: async function(d) {
|
|
18958
18958
|
var M;
|
|
18959
18959
|
E.logger.info(
|
|
18960
18960
|
`[ApplianceSinglePlugin] setWritable ${d}`
|
|
18961
|
-
),
|
|
18961
|
+
), F(e) && l && (await ((M = E.currentManager) == null ? void 0 : M.setWritable(d)), await l.call(e, d));
|
|
18962
18962
|
},
|
|
18963
18963
|
requestIdleCallback: (d, M) => {
|
|
18964
18964
|
const I = (M == null ? void 0 : M.timeout) || 0, y = performance.now();
|
|
@@ -19011,13 +19011,13 @@ const E = class E extends Pr {
|
|
|
19011
19011
|
M === "callbacks" && (d.callbacks.on = h._callbacksOn.bind(h), d.callbacks.off = h._callbacksOff.bind(h), d.callbacks.once = h._callbacksOnce.bind(h));
|
|
19012
19012
|
},
|
|
19013
19013
|
blurText: () => {
|
|
19014
|
-
E.logger.info("[ApplianceSinglePlugin] blurText"), E.currentManager &&
|
|
19014
|
+
E.logger.info("[ApplianceSinglePlugin] blurText"), E.currentManager && F(e) && e.isWritable && E.currentManager.textEditorManager.checkEmptyTextBlur();
|
|
19015
19015
|
},
|
|
19016
19016
|
hasElements: (d, M) => {
|
|
19017
19017
|
var I;
|
|
19018
19018
|
if (E.logger.info(
|
|
19019
19019
|
`[ApplianceSinglePlugin] hasElements ${d}`
|
|
19020
|
-
), E.currentManager &&
|
|
19020
|
+
), E.currentManager && F(e) && e.isWritable) {
|
|
19021
19021
|
let y = d;
|
|
19022
19022
|
if (!y) {
|
|
19023
19023
|
const f = E.currentManager.viewContainerManager.focuedView;
|
|
@@ -19042,7 +19042,7 @@ const E = class E extends Pr {
|
|
|
19042
19042
|
var I;
|
|
19043
19043
|
if (E.logger.info(
|
|
19044
19044
|
`[ApplianceSinglePlugin] getElements ${d}`
|
|
19045
|
-
), E.currentManager &&
|
|
19045
|
+
), E.currentManager && F(e) && e.isWritable) {
|
|
19046
19046
|
let y = d;
|
|
19047
19047
|
if (!y) {
|
|
19048
19048
|
const f = E.currentManager.viewContainerManager.focuedView;
|
|
@@ -19062,7 +19062,7 @@ const E = class E extends Pr {
|
|
|
19062
19062
|
stopDraw: (d) => {
|
|
19063
19063
|
if (E.logger.info(
|
|
19064
19064
|
`[ApplianceSinglePlugin] stopDraw ${d}`
|
|
19065
|
-
), E.currentManager &&
|
|
19065
|
+
), E.currentManager && F(e))
|
|
19066
19066
|
return E.currentManager.stopDraw(d);
|
|
19067
19067
|
},
|
|
19068
19068
|
setViewLocalScenePathChange: async (d, M) => {
|
|
@@ -19114,7 +19114,7 @@ const E = class E extends Pr {
|
|
|
19114
19114
|
},
|
|
19115
19115
|
blurSelector: (d) => {
|
|
19116
19116
|
var M;
|
|
19117
|
-
if (E.currentManager &&
|
|
19117
|
+
if (E.currentManager && F(e) && e.isWritable) {
|
|
19118
19118
|
const I = (M = E.currentManager) == null ? void 0 : M.selectorApi;
|
|
19119
19119
|
return I ? I.blurSelector(d) : Promise.resolve({
|
|
19120
19120
|
ok: !1,
|
|
@@ -19132,7 +19132,7 @@ const E = class E extends Pr {
|
|
|
19132
19132
|
},
|
|
19133
19133
|
updateSelectedElements: (d) => {
|
|
19134
19134
|
var M;
|
|
19135
|
-
if (E.currentManager &&
|
|
19135
|
+
if (E.currentManager && F(e) && e.isWritable) {
|
|
19136
19136
|
const I = (M = E.currentManager) == null ? void 0 : M.selectorApi;
|
|
19137
19137
|
return I ? I.updateSelectedElements(se, d) : Promise.resolve({
|
|
19138
19138
|
requestId: `update-${Date.now().toString(36)}`,
|
|
@@ -19150,7 +19150,7 @@ const E = class E extends Pr {
|
|
|
19150
19150
|
},
|
|
19151
19151
|
updateElement: (d, M, I, y, f = !0) => {
|
|
19152
19152
|
var w;
|
|
19153
|
-
if (E.currentManager &&
|
|
19153
|
+
if (E.currentManager && F(e) && e.isWritable) {
|
|
19154
19154
|
const v = (w = E.currentManager) == null ? void 0 : w.selectorApi;
|
|
19155
19155
|
return v ? v.updateElement(
|
|
19156
19156
|
d,
|
|
@@ -19164,7 +19164,7 @@ const E = class E extends Pr {
|
|
|
19164
19164
|
},
|
|
19165
19165
|
copySelectedElements: (d) => {
|
|
19166
19166
|
var M;
|
|
19167
|
-
if (E.currentManager &&
|
|
19167
|
+
if (E.currentManager && F(e) && e.isWritable) {
|
|
19168
19168
|
const I = (M = E.currentManager) == null ? void 0 : M.selectorApi;
|
|
19169
19169
|
return I ? I.copySelectedElements(d) : Promise.resolve({
|
|
19170
19170
|
ok: !1,
|
|
@@ -19182,7 +19182,7 @@ const E = class E extends Pr {
|
|
|
19182
19182
|
},
|
|
19183
19183
|
deleteSelectedElements: (d) => {
|
|
19184
19184
|
var M;
|
|
19185
|
-
if (E.currentManager &&
|
|
19185
|
+
if (E.currentManager && F(e) && e.isWritable) {
|
|
19186
19186
|
const I = (M = E.currentManager) == null ? void 0 : M.selectorApi;
|
|
19187
19187
|
return I ? I.deleteSelectedElements(d) : Promise.resolve({
|
|
19188
19188
|
ok: !1,
|
|
@@ -19212,7 +19212,7 @@ const E = class E extends Pr {
|
|
|
19212
19212
|
);
|
|
19213
19213
|
}
|
|
19214
19214
|
};
|
|
19215
|
-
h.injectMethodToObject(e, "undo"), h.injectMethodToObject(e, "redo"), h.injectMethodToObject(e, "cleanCurrentScene"), h.injectMethodToObject(e, "blurSelector"), h.injectMethodToObject(e, "updateElement"), h.injectMethodToObject(e, "insertImage"), h.injectMethodToObject(e, "completeImageUpload"), h.injectMethodToObject(e, "lockImage"), h.injectMethodToObject(e, "getImagesInformation"), h.injectMethodToObject(e, "insertText"), h.injectMethodToObject(e, "updateText"), h.injectMethodToObject(e, "callbacks"), h.injectMethodToObject(e, "screenshotToCanvasAsync"), h.injectMethodToObject(e, "getBoundingRectAsync"), h.injectMethodToObject(e, "scenePreviewAsync"), h.injectMethodToObject(e, "fillSceneSnapshotAsync"), h.injectMethodToObject(e, "setMemberState"),
|
|
19215
|
+
h.injectMethodToObject(e, "undo"), h.injectMethodToObject(e, "redo"), h.injectMethodToObject(e, "cleanCurrentScene"), h.injectMethodToObject(e, "blurSelector"), h.injectMethodToObject(e, "updateElement"), h.injectMethodToObject(e, "insertImage"), h.injectMethodToObject(e, "completeImageUpload"), h.injectMethodToObject(e, "lockImage"), h.injectMethodToObject(e, "getImagesInformation"), h.injectMethodToObject(e, "insertText"), h.injectMethodToObject(e, "updateText"), h.injectMethodToObject(e, "callbacks"), h.injectMethodToObject(e, "screenshotToCanvasAsync"), h.injectMethodToObject(e, "getBoundingRectAsync"), h.injectMethodToObject(e, "scenePreviewAsync"), h.injectMethodToObject(e, "fillSceneSnapshotAsync"), h.injectMethodToObject(e, "setMemberState"), F(e) && h.injectMethodToObject(e, "setWritable"), Object.defineProperty(e, "canUndoSteps", {
|
|
19216
19216
|
get() {
|
|
19217
19217
|
return h.canUndoSteps();
|
|
19218
19218
|
}
|
|
@@ -19300,7 +19300,7 @@ const E = class E extends Pr {
|
|
|
19300
19300
|
const t = e.state;
|
|
19301
19301
|
(i = E.currentManager) == null || i.onRoomMembersChange(
|
|
19302
19302
|
t.roomMembers
|
|
19303
|
-
),
|
|
19303
|
+
), F(e) && t != null && t.memberState && ((r = E.currentManager) == null || r.onMemberChange(
|
|
19304
19304
|
t.memberState
|
|
19305
19305
|
)), this.displayer.callbacks.on(
|
|
19306
19306
|
this.callbackName,
|
|
@@ -19331,7 +19331,7 @@ m(E, "kind", "appliance-single-plugin"), m(E, "cursorAdapter"), m(E, "currentMan
|
|
|
19331
19331
|
}, s = new _e(r);
|
|
19332
19332
|
if (s.init(), E.logger.info(
|
|
19333
19333
|
"[ApplianceSinglePlugin] refresh ApplianceSingleManager object"
|
|
19334
|
-
), E.currentManager = s,
|
|
19334
|
+
), E.currentManager = s, F(e)) {
|
|
19335
19335
|
const a = s.hasOffscreenCanvas, c = s.isUseOffscreenTransfer, l = s.pluginOptions, u = s.isUseSimple;
|
|
19336
19336
|
e.logger.info(
|
|
19337
19337
|
`[Appliance]: [ApplianceSinglePlugin] use ${a ? "worker" : "mainThread"}, isUseSimple: ${u} ${c ? "offscreenTransfer" : ""}, options: ${JSON.stringify(l)}`
|
|
@@ -19408,7 +19408,7 @@ export {
|
|
|
19408
19408
|
pn as L,
|
|
19409
19409
|
Kt as M,
|
|
19410
19410
|
et as N,
|
|
19411
|
-
|
|
19411
|
+
Fw as O,
|
|
19412
19412
|
Te as P,
|
|
19413
19413
|
xi as Q,
|
|
19414
19414
|
Xw as R,
|
|
@@ -19441,7 +19441,7 @@ export {
|
|
|
19441
19441
|
nn as j,
|
|
19442
19442
|
An as k,
|
|
19443
19443
|
W as l,
|
|
19444
|
-
|
|
19444
|
+
$w as m,
|
|
19445
19445
|
Rw as n,
|
|
19446
19446
|
Uw as o,
|
|
19447
19447
|
qw as p,
|