@netless/appliance-plugin 1.1.36 → 1.1.37
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-JXQULSul.js → fullWorker-BnxU9bnt.js} +1 -1
- package/dist/assets/{subWorker-DhFJemMO.js → subWorker-BsTroxB8.js} +1 -1
- package/dist/bridge-C7tN2qjT.js +1 -0
- package/dist/bridge-DmxbEjIC.mjs +67 -0
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/component/svg/manager.d.ts +1 -1
- package/dist/component/svg/markmap-runtime.d.ts +39 -0
- package/dist/component/svg/mermaid.d.ts +12 -3
- package/dist/component/svg/snapshot.d.ts +1 -1
- package/dist/component/svg/svgElemt.d.ts +2 -2
- package/dist/core/mainEngine.d.ts +1 -0
- package/dist/fullWorker.js +1 -1
- package/dist/index-09gdXQ2w.js +1 -0
- package/dist/{index-BfMoaIvs.mjs → index-BCNBmzwR.mjs} +444 -411
- package/dist/{index-Cr7tTnaV.js → index-BW3Xkxk-.js} +1 -1
- package/dist/index-Bl1tLXFo.js +1 -0
- package/dist/{index-BDK2SG9v.mjs → index-CNcfXUx4.mjs} +1 -1
- package/dist/index-D-4DoHbs.mjs +769 -0
- package/dist/index-DKbaEDea.js +1 -0
- package/dist/{index-6Wdw5Peg.js → index-DqCdgRfA.js} +1 -1
- package/dist/{index-rbiUTgEA.mjs → index-TIV0naEi.mjs} +819 -804
- package/dist/index-nxeYRf5P.mjs +771 -0
- package/dist/{index-C74ZK6xj.js → index-r9ho55PA.js} +1 -1
- package/dist/{index-BQ5RFl7S.mjs → index-rYcPxCxx.mjs} +1 -1
- package/dist/markmap-runtime-Cg3OxuZ2.mjs +25 -0
- package/dist/markmap-runtime-CsBCTpRs.js +1 -0
- package/dist/markmap.d.ts +1 -0
- package/dist/markmap.js +3 -0
- package/dist/markmap.mjs +535 -0
- package/dist/plugin/types.d.ts +1 -1
- package/dist/subWorker.js +1 -1
- package/package.json +23 -4
- package/dist/bridge-CfmWHJhk.js +0 -1
- package/dist/bridge-Cz4mGULo.mjs +0 -67
- package/dist/index-B3JYNjTS.mjs +0 -1262
- package/dist/index-B6Z-HNvr.js +0 -3
- package/dist/index-BteU9Eqf.js +0 -3
- package/dist/index-C0RLN5ik.mjs +0 -1263
- package/dist/index-CPeyvSwP.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
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-DmxbEjIC.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
|
|
10
|
+
import { debounce as an, cloneDeep as ae, isEqual as de, isSet as Ze, isNumber as J, 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";
|
|
@@ -510,22 +510,22 @@ 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, $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,
|
|
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, Kt = Bi ? Bi.toStringTag : void 0;
|
|
514
514
|
function qo(o) {
|
|
515
|
-
var n = Zo.call(o,
|
|
515
|
+
var n = Zo.call(o, Kt), e = o[Kt];
|
|
516
516
|
try {
|
|
517
|
-
o[
|
|
517
|
+
o[Kt] = void 0;
|
|
518
518
|
var t = !0;
|
|
519
519
|
} catch {
|
|
520
520
|
}
|
|
521
521
|
var i = Ho.call(o);
|
|
522
|
-
return t && (n ? o[
|
|
522
|
+
return t && (n ? o[Kt] = e : delete o[Kt]), i;
|
|
523
523
|
}
|
|
524
|
-
var
|
|
524
|
+
var Ko = qo, Jo = Object.prototype, Xo = Jo.toString;
|
|
525
525
|
function _o(o) {
|
|
526
526
|
return Xo.call(o);
|
|
527
527
|
}
|
|
528
|
-
var es = _o, Wi = cn, ts =
|
|
528
|
+
var es = _o, Wi = cn, ts = Ko, ns = es, is = "[object Null]", rs = "[object Undefined]", Vi = Wi ? Wi.toStringTag : void 0;
|
|
529
529
|
function os(o) {
|
|
530
530
|
return o == null ? o === void 0 ? rs : is : Vi && Vi in Object(o) ? ts(o) : ns(o);
|
|
531
531
|
}
|
|
@@ -612,14 +612,14 @@ function Zs(o) {
|
|
|
612
612
|
var n = Ws(o);
|
|
613
613
|
return n == Fs || n == Gs || n == $s || n == Qs;
|
|
614
614
|
}
|
|
615
|
-
var Yr = Zs, Hs = rt, qs = Hs["__core-js_shared__"],
|
|
615
|
+
var Yr = Zs, Hs = rt, qs = Hs["__core-js_shared__"], Ks = qs, Un = Ks, $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
|
-
function
|
|
619
|
+
function Js(o) {
|
|
620
620
|
return !!$i && $i in o;
|
|
621
621
|
}
|
|
622
|
-
var Xs =
|
|
622
|
+
var Xs = Js, _s = Function.prototype, ea = _s.toString;
|
|
623
623
|
function ta(o) {
|
|
624
624
|
if (o != null) {
|
|
625
625
|
try {
|
|
@@ -692,11 +692,11 @@ $t.prototype.delete = Ga;
|
|
|
692
692
|
$t.prototype.get = Qa;
|
|
693
693
|
$t.prototype.has = Za;
|
|
694
694
|
$t.prototype.set = Ha;
|
|
695
|
-
var qa = $t, Gi = qa,
|
|
695
|
+
var qa = $t, Gi = qa, Ka = Nn, Ja = yi;
|
|
696
696
|
function Xa() {
|
|
697
697
|
this.size = 0, this.__data__ = {
|
|
698
698
|
hash: new Gi(),
|
|
699
|
-
map: new (
|
|
699
|
+
map: new (Ja || Ka)(),
|
|
700
700
|
string: new Gi()
|
|
701
701
|
};
|
|
702
702
|
}
|
|
@@ -804,9 +804,9 @@ function Zc(o, n) {
|
|
|
804
804
|
t[e] = n(e);
|
|
805
805
|
return t;
|
|
806
806
|
}
|
|
807
|
-
var Hc = Zc, qc = ln,
|
|
807
|
+
var Hc = Zc, qc = ln, Kc = zt, Jc = "[object Arguments]";
|
|
808
808
|
function Xc(o) {
|
|
809
|
-
return
|
|
809
|
+
return Kc(o) && qc(o) == Jc;
|
|
810
810
|
}
|
|
811
811
|
var _c = Xc, Zi = _c, el = zt, Gr = Object.prototype, tl = Gr.hasOwnProperty, nl = Gr.propertyIsEnumerable, il = Zi(/* @__PURE__ */ function() {
|
|
812
812
|
return arguments;
|
|
@@ -855,15 +855,15 @@ wn.exports;
|
|
|
855
855
|
}();
|
|
856
856
|
o.exports = a;
|
|
857
857
|
})(wn, 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,
|
|
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, Kl = Zr, Jl = ul, Xl = Ql, _l = Object.prototype, eu = _l.hasOwnProperty;
|
|
859
859
|
function tu(o, n) {
|
|
860
|
-
var e = ql(o), t = !e && Hl(o), i = !e && !t &&
|
|
860
|
+
var e = ql(o), t = !e && Hl(o), i = !e && !t && Kl(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)
|
|
862
862
|
(n || eu.call(o, l)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
863
863
|
(l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
864
864
|
i && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
865
865
|
r && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
|
|
866
|
-
|
|
866
|
+
Jl(l, c))) && a.push(l);
|
|
867
867
|
return a;
|
|
868
868
|
}
|
|
869
869
|
var qr = tu, nu = Object.prototype;
|
|
@@ -877,7 +877,7 @@ function ru(o, n) {
|
|
|
877
877
|
return o(n(e));
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
|
-
var
|
|
880
|
+
var Kr = ru, ou = Kr, su = ou(Object.keys, Object), au = su, cu = Ii, lu = au, uu = Object.prototype, hu = uu.hasOwnProperty;
|
|
881
881
|
function du(o) {
|
|
882
882
|
if (!cu(o))
|
|
883
883
|
return lu(o);
|
|
@@ -950,15 +950,15 @@ function Gu(o, n) {
|
|
|
950
950
|
}
|
|
951
951
|
return r;
|
|
952
952
|
}
|
|
953
|
-
var
|
|
953
|
+
var Jr = Gu;
|
|
954
954
|
function Qu() {
|
|
955
955
|
return [];
|
|
956
956
|
}
|
|
957
|
-
var Xr = Qu, Zu =
|
|
958
|
-
return o == null ? [] : (o = Object(o), Zu(
|
|
959
|
-
return
|
|
957
|
+
var Xr = Qu, Zu = Jr, Hu = Xr, qu = Object.prototype, Ku = qu.propertyIsEnumerable, Ki = Object.getOwnPropertySymbols, Ju = Ki ? function(o) {
|
|
958
|
+
return o == null ? [] : (o = Object(o), Zu(Ki(o), function(n) {
|
|
959
|
+
return Ku.call(o, n);
|
|
960
960
|
}));
|
|
961
|
-
} : Hu, vi =
|
|
961
|
+
} : Hu, vi = Ju, Xu = bn, _u = vi;
|
|
962
962
|
function eh(o, n) {
|
|
963
963
|
return Xu(o, _u(o), n);
|
|
964
964
|
}
|
|
@@ -968,7 +968,7 @@ function nh(o, n) {
|
|
|
968
968
|
o[i + e] = n[e];
|
|
969
969
|
return o;
|
|
970
970
|
}
|
|
971
|
-
var Ci = nh, ih =
|
|
971
|
+
var Ci = nh, ih = Kr, rh = ih(Object.getPrototypeOf, Object), _r = rh, oh = Ci, sh = _r, ah = vi, ch = Xr, lh = Object.getOwnPropertySymbols, uh = lh ? function(o) {
|
|
972
972
|
for (var n = []; o; )
|
|
973
973
|
oh(n, ah(o)), o = sh(o);
|
|
974
974
|
return n;
|
|
@@ -989,15 +989,15 @@ 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,
|
|
993
|
-
(qn && kt(new qn(new ArrayBuffer(1))) != tr ||
|
|
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, Kn = yi, Jn = Ph, Xn = no, _n = Vh, io = ln, Qt = Br, Ji = "[object Map]", $h = "[object Object]", Xi = "[object Promise]", _i = "[object Set]", er = "[object WeakMap]", tr = "[object DataView]", Fh = Qt(qn), Gh = Qt(Kn), Qh = Qt(Jn), Zh = Qt(Xn), Hh = Qt(_n), kt = io;
|
|
993
|
+
(qn && kt(new qn(new ArrayBuffer(1))) != tr || Kn && kt(new Kn()) != Ji || Jn && kt(Jn.resolve()) != Xi || Xn && kt(new Xn()) != _i || _n && kt(new _n()) != er) && (kt = function(o) {
|
|
994
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
997
|
case Fh:
|
|
998
998
|
return tr;
|
|
999
999
|
case Gh:
|
|
1000
|
-
return
|
|
1000
|
+
return Ji;
|
|
1001
1001
|
case Qh:
|
|
1002
1002
|
return Xi;
|
|
1003
1003
|
case Zh:
|
|
@@ -1007,12 +1007,12 @@ var xh = kh, bh = Et, jh = rt, Dh = bh(jh, "DataView"), Ah = Dh, zh = Et, Eh = r
|
|
|
1007
1007
|
}
|
|
1008
1008
|
return n;
|
|
1009
1009
|
});
|
|
1010
|
-
var Ni = kt, qh = Object.prototype,
|
|
1011
|
-
function
|
|
1010
|
+
var Ni = kt, qh = Object.prototype, Kh = qh.hasOwnProperty;
|
|
1011
|
+
function Jh(o) {
|
|
1012
1012
|
var n = o.length, e = new o.constructor(n);
|
|
1013
|
-
return n && typeof o[0] == "string" &&
|
|
1013
|
+
return n && typeof o[0] == "string" && Kh.call(o, "index") && (e.index = o.index, e.input = o.input), e;
|
|
1014
1014
|
}
|
|
1015
|
-
var Xh =
|
|
1015
|
+
var Xh = Jh, _h = rt, ed = _h.Uint8Array, ro = ed, nr = ro;
|
|
1016
1016
|
function td(o) {
|
|
1017
1017
|
var n = new o.constructor(o.byteLength);
|
|
1018
1018
|
return new nr(n).set(new nr(o)), n;
|
|
@@ -1087,17 +1087,17 @@ function Gd(o) {
|
|
|
1087
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
|
-
function
|
|
1090
|
+
function Kd(o) {
|
|
1091
1091
|
return Hd(o) && Zd(o) == qd;
|
|
1092
1092
|
}
|
|
1093
|
-
var
|
|
1093
|
+
var Jd = Kd, Xd = Jd, _d = Dn, ar = mi, cr = ar && ar.isMap, eg = cr ? _d(cr) : Xd, tg = eg, ng = Ni, ig = zt, rg = "[object Set]";
|
|
1094
1094
|
function og(o) {
|
|
1095
1095
|
return ig(o) && ng(o) == rg;
|
|
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
|
-
const
|
|
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]",
|
|
1100
|
-
be[so] = be[Pg] = be[Zg] = be[Hg] = be[Og] = be[Rg] = be[qg] = be[
|
|
1098
|
+
const Rw = /* @__PURE__ */ pi(oo);
|
|
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]", Kg = "[object Float64Array]", Jg = "[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[Kg] = be[Jg] = 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.
|
|
1144
|
+
const An = /* @__PURE__ */ pi(uf), lo = "1.1.37", 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,10 +1301,10 @@ 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]", $f = "[object Map]", Ff = "[object Number]", Gf = "[object RegExp]", Qf = "[object Set]", Zf = "[object String]", Hf = "[object Symbol]", qf = "[object ArrayBuffer]",
|
|
1305
|
-
function
|
|
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]", Kf = "[object DataView]", fr = dr ? dr.prototype : void 0, Yn = fr ? fr.valueOf : void 0;
|
|
1305
|
+
function Jf(o, n, e, t, i, r, s) {
|
|
1306
1306
|
switch (e) {
|
|
1307
|
-
case
|
|
1307
|
+
case Kf:
|
|
1308
1308
|
if (o.byteLength != n.byteLength || o.byteOffset != n.byteOffset)
|
|
1309
1309
|
return !1;
|
|
1310
1310
|
o = o.buffer, n = n.buffer;
|
|
@@ -1337,14 +1337,14 @@ function Kf(o, n, e, t, i, r, s) {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
return !1;
|
|
1339
1339
|
}
|
|
1340
|
-
var
|
|
1340
|
+
var Uw = Jf;
|
|
1341
1341
|
function un(o, n, e) {
|
|
1342
1342
|
return "#" + ((o << 16) + (n << 8) + e).toString(16).padStart(6, "0");
|
|
1343
1343
|
}
|
|
1344
1344
|
function Ue(o, n = 1) {
|
|
1345
1345
|
return "rgba(" + parseInt("0x" + o.slice(1, 3)) + "," + parseInt("0x" + o.slice(3, 5)) + "," + parseInt("0x" + o.slice(5, 7)) + "," + n + ")";
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Jt(o, n, e, t = 1) {
|
|
1348
1348
|
return `rgba(${o},${n},${e},${t})`;
|
|
1349
1349
|
}
|
|
1350
1350
|
function zn(o) {
|
|
@@ -1998,9 +1998,9 @@ function Hp(o, n, e, t) {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
return c;
|
|
2000
2000
|
}
|
|
2001
|
-
var qp = Hp, mr = cn,
|
|
2001
|
+
var qp = Hp, mr = cn, Kp = Qr, Jp = jn, Ir = mr ? mr.isConcatSpreadable : void 0;
|
|
2002
2002
|
function Xp(o) {
|
|
2003
|
-
return
|
|
2003
|
+
return Jp(o) || Kp(o) || !!(Ir && o && o[Ir]);
|
|
2004
2004
|
}
|
|
2005
2005
|
var _p = Xp, eM = Ci, tM = _p;
|
|
2006
2006
|
function fo(o, n, e, t, i) {
|
|
@@ -2054,11 +2054,11 @@ var SM = TM, vM = wi, CM = zt;
|
|
|
2054
2054
|
function NM(o) {
|
|
2055
2055
|
return CM(o) && vM(o);
|
|
2056
2056
|
}
|
|
2057
|
-
var kM = NM, xM =
|
|
2057
|
+
var kM = NM, xM = Jr, bM = Cp, jM = SM, DM = kM;
|
|
2058
2058
|
bM(function(o) {
|
|
2059
2059
|
return jM(xM(o, DM));
|
|
2060
2060
|
});
|
|
2061
|
-
function
|
|
2061
|
+
function Yw(o, n) {
|
|
2062
2062
|
if (o && n) {
|
|
2063
2063
|
const e = Math.min(o.x, n.x), t = Math.min(o.y, n.y), i = Math.max(o.x + o.w, n.x + n.w), r = Math.max(o.y + o.h, n.y + n.h), s = i - e, a = r - t;
|
|
2064
2064
|
return { x: e, y: t, w: s, h: a };
|
|
@@ -2086,10 +2086,10 @@ function po(o, n = 0) {
|
|
|
2086
2086
|
t = Math.min(t, c - n), i = Math.min(i, l - n), r = Math.max(r, c + n), s = Math.max(s, l + n);
|
|
2087
2087
|
}), e.x = t, e.y = i, e.w = r - t, e.h = s - i, e;
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2089
|
+
function Bw(o, n) {
|
|
2090
2090
|
return !(o.x + o.w < n.x || o.x > n.x + n.w || o.y + o.h < n.y || o.y > n.y + n.h);
|
|
2091
2091
|
}
|
|
2092
|
-
function
|
|
2092
|
+
function Ww(o, n = 10) {
|
|
2093
2093
|
return {
|
|
2094
2094
|
x: Math.floor(o.x - n),
|
|
2095
2095
|
y: Math.floor(o.y - n),
|
|
@@ -2097,7 +2097,7 @@ function Ow(o, n = 10) {
|
|
|
2097
2097
|
h: Math.ceil(o.h + n * 2)
|
|
2098
2098
|
};
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function Vw(o, n) {
|
|
2101
2101
|
return {
|
|
2102
2102
|
x: o.x + n[0],
|
|
2103
2103
|
y: o.y + n[1],
|
|
@@ -2109,36 +2109,36 @@ function AM(o, n) {
|
|
|
2109
2109
|
const e = new W(o.x, o.y), t = new W(o.x + o.w, o.y), i = new W(o.x + o.w, o.y + o.h), r = new W(o.x, o.y + o.h), s = new W(o.x + o.w / 2, o.y + o.h / 2), a = Math.PI * n / 180, c = W.RotWith(e, s, a), l = W.RotWith(t, s, a), u = W.RotWith(i, s, a), h = W.RotWith(r, s, a);
|
|
2110
2110
|
return [c, l, u, h];
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function $w(o, n) {
|
|
2113
2113
|
const e = AM(o, n);
|
|
2114
2114
|
return po(e);
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2116
|
+
function Fw(o, n, e) {
|
|
2117
2117
|
const t = new W(o.x, o.y), i = new W(o.x + o.w, o.y), r = new W(o.x + o.w, o.y + o.h), s = new W(o.x, o.y + o.h), a = new W(e[0], e[1]), c = new W(n[0], n[1]), l = W.ScaleWOrigin(t, c, a), u = W.ScaleWOrigin(i, c, a), h = W.ScaleWOrigin(r, c, a), g = W.ScaleWOrigin(s, c, a);
|
|
2118
2118
|
return po([l, u, h, g]);
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function Gw(o, n, e) {
|
|
2121
2121
|
const t = new W(n[0], n[1]);
|
|
2122
2122
|
for (let i = 0; i < o.length; i += 3) {
|
|
2123
2123
|
const r = new W(o[i], o[i + 1]), s = Math.PI * e / 180, a = W.RotWith(r, t, s);
|
|
2124
2124
|
o[i] = a.x, o[i + 1] = a.y;
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
|
-
function
|
|
2127
|
+
function Qw(o, n, e) {
|
|
2128
2128
|
const t = new W(n[0], n[1]);
|
|
2129
2129
|
for (let i = 0; i < o.length; i += 2) {
|
|
2130
2130
|
const r = new W(o[i], o[i + 1]), s = Math.PI * e / 180, a = W.RotWith(r, t, s);
|
|
2131
2131
|
o[i] = a.x, o[i + 1] = a.y;
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function Zw(o, n, e, t = [0, 0]) {
|
|
2135
2135
|
const i = new W(n[0], n[1]);
|
|
2136
2136
|
for (let r = 0; r < o.length; r += 3) {
|
|
2137
2137
|
const s = new W(o[r], o[r + 1]), a = new W(e[0], e[1]), c = W.ScaleWOrigin(s, a, i);
|
|
2138
2138
|
o[r] = c.x + t[0], o[r + 1] = c.y + t[1];
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2141
|
+
function Hw(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,32 +2148,32 @@ function $w(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 qw(o, n) {
|
|
2152
2152
|
const e = o <= n ? 1 : o / n, t = n <= o ? 1 : n / o;
|
|
2153
2153
|
return [e, t];
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2155
|
+
function Kw(o) {
|
|
2156
2156
|
for (const n of o)
|
|
2157
2157
|
if (isNaN(n) || n === 1 / 0 || n === -1 / 0)
|
|
2158
2158
|
return !1;
|
|
2159
2159
|
return !0;
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function Jw(o) {
|
|
2162
2162
|
return o !== Math.floor(o);
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function Xw(o) {
|
|
2165
2165
|
const n = o.toString();
|
|
2166
2166
|
return n.indexOf(".") !== -1 ? n.split(".")[1].length : 0;
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function _w(o, n) {
|
|
2169
2169
|
for (; n !== 0; )
|
|
2170
2170
|
[o, n] = [n, o % n];
|
|
2171
2171
|
return o;
|
|
2172
2172
|
}
|
|
2173
|
-
function
|
|
2173
|
+
function eT(o) {
|
|
2174
2174
|
return `${vn(o.x)},${vn(o.y)} `;
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function tT(o, n) {
|
|
2177
2177
|
return `${vn((o.x + n.x) / 2)},${vn((o.y + n.y) / 2)} `;
|
|
2178
2178
|
}
|
|
2179
2179
|
function vn(o) {
|
|
@@ -2208,8 +2208,8 @@ const at = async (o, n, e = !1) => {
|
|
|
2208
2208
|
}).catch(function() {
|
|
2209
2209
|
o();
|
|
2210
2210
|
});
|
|
2211
|
-
}, Bt = (o) => Math.max(1, (window.devicePixelRatio || 1) / 1),
|
|
2212
|
-
function
|
|
2211
|
+
}, Bt = (o) => Math.max(1, (window.devicePixelRatio || 1) / 1), nT = (o, n) => o.x + o.w < n.x || o.x > n.x + n.w || o.y + o.h < n.y || o.y > n.y + n.h ? nn.outside : o.x >= n.x && o.y >= n.y && o.x + o.w <= n.x + n.w && o.y + o.h <= n.y + n.h ? nn.inside : nn.intersect;
|
|
2212
|
+
function iT(o) {
|
|
2213
2213
|
let n = 0;
|
|
2214
2214
|
for (let e = 0; e < o.length; e++) {
|
|
2215
2215
|
const t = o.charCodeAt(e);
|
|
@@ -3325,7 +3325,7 @@ const Fe = class Fe extends LM {
|
|
|
3325
3325
|
m(Fe, "namespace", "PluginState"), m(Fe, "authSpace", "PluginAuth"), m(Fe, "globalUndoRedoStackSpace", "GlobalUndoRedoStack"), // static syncInterval: number = 500;
|
|
3326
3326
|
m(Fe, "componentsLimits", [500, 1e3]);
|
|
3327
3327
|
let lt = Fe;
|
|
3328
|
-
var
|
|
3328
|
+
var Ke = /* @__PURE__ */ ((o) => (o[o.Draw = 1] = "Draw", o[o.Delete = 2] = "Delete", o[o.Update = 3] = "Update", o))(Ke || {});
|
|
3329
3329
|
class PM {
|
|
3330
3330
|
constructor() {
|
|
3331
3331
|
m(this, "roomMembers", []);
|
|
@@ -3386,7 +3386,7 @@ class OM {
|
|
|
3386
3386
|
m(this, "cursorInfoMap", /* @__PURE__ */ new Map());
|
|
3387
3387
|
m(this, "doneRenderCursorInfoMap", /* @__PURE__ */ new Map());
|
|
3388
3388
|
const { control: e, internalMsgEmitter: t, publicMsgEmitter: i } = n;
|
|
3389
|
-
this.internalMsgEmitter = t, this.publicMsgEmitter = i, this.expirationTime =
|
|
3389
|
+
this.internalMsgEmitter = t, this.publicMsgEmitter = i, this.expirationTime = J(
|
|
3390
3390
|
e.pluginOptions.extras.cursor.expirationTime
|
|
3391
3391
|
) ? e.pluginOptions.extras.cursor.expirationTime : this.expirationTime, this.control = e, this.roomMember = e.roomMember, this.maxLastSyncTime = this.control.pluginOptions.extras.syncOpt.interval, this.isEnableCursor = this.control.pluginOptions.extras.cursor.enable;
|
|
3392
3392
|
}
|
|
@@ -3406,7 +3406,7 @@ class OM {
|
|
|
3406
3406
|
const c = this.willConsumeEventWorkers.get(i) || [];
|
|
3407
3407
|
for (const l of r) {
|
|
3408
3408
|
const { viewId: u } = l;
|
|
3409
|
-
|
|
3409
|
+
J(l.consumPoint[0]) && J(l.consumPoint[1]) && (l.consumPoint = this.control.viewContainerManager.transformToOriginPoint(
|
|
3410
3410
|
l.consumPoint,
|
|
3411
3411
|
u
|
|
3412
3412
|
)), this.control.renderControl.isFilterCursor(u) && c.unshift({
|
|
@@ -3453,7 +3453,7 @@ class OM {
|
|
|
3453
3453
|
continue;
|
|
3454
3454
|
}
|
|
3455
3455
|
const { consumPoint: c, timestamp: l, workState: u } = i, h = this.cursorInfoMap.get(s) || /* @__PURE__ */ new Map();
|
|
3456
|
-
c &&
|
|
3456
|
+
c && J(c[0]) && J(c[1]) && l + this.expirationTime > n ? h.set(a.memberId, {
|
|
3457
3457
|
x: c[0],
|
|
3458
3458
|
y: c[1],
|
|
3459
3459
|
roomMember: a,
|
|
@@ -3471,7 +3471,7 @@ class OM {
|
|
|
3471
3471
|
this.cursorInfoMap.delete(t);
|
|
3472
3472
|
for (const [t, i] of this.willConsumeEventWorkers.entries()) {
|
|
3473
3473
|
const r = this.roomMember.getRoomMember(t);
|
|
3474
|
-
if (
|
|
3474
|
+
if (J(r == null ? void 0 : r.memberId) && !e.has(r.memberId)) {
|
|
3475
3475
|
const s = i.pop();
|
|
3476
3476
|
s ? this.animationEventWorkers.set(t, s) : this.willConsumeEventWorkers.delete(t);
|
|
3477
3477
|
}
|
|
@@ -3483,7 +3483,7 @@ class OM {
|
|
|
3483
3483
|
continue;
|
|
3484
3484
|
}
|
|
3485
3485
|
const { viewId: s, consumPoint: a, timestamp: c } = i, l = this.cursorInfoMap.get(s) || /* @__PURE__ */ new Map();
|
|
3486
|
-
a &&
|
|
3486
|
+
a && J(a[0]) && J(a[1]) && c + this.expirationTime > n ? l.set(r.memberId, {
|
|
3487
3487
|
x: a[0],
|
|
3488
3488
|
y: a[1],
|
|
3489
3489
|
roomMember: r,
|
|
@@ -3521,7 +3521,7 @@ class OM {
|
|
|
3521
3521
|
}
|
|
3522
3522
|
sendEvent(n, e) {
|
|
3523
3523
|
if (this.displayer && F(this.displayer)) {
|
|
3524
|
-
const t =
|
|
3524
|
+
const t = J(n[0]) && J(n[1]) && this.control.viewContainerManager.transformToScenePoint(
|
|
3525
3525
|
n,
|
|
3526
3526
|
e
|
|
3527
3527
|
) || [void 0, void 0];
|
|
@@ -3552,7 +3552,7 @@ class OM {
|
|
|
3552
3552
|
void 0,
|
|
3553
3553
|
void 0
|
|
3554
3554
|
];
|
|
3555
|
-
if (
|
|
3555
|
+
if (J(e[0]) && J(e[1])) {
|
|
3556
3556
|
const [h, g] = this.control.viewContainerManager.transformToOriginPoint(
|
|
3557
3557
|
e,
|
|
3558
3558
|
r
|
|
@@ -4793,7 +4793,7 @@ function qM(o) {
|
|
|
4793
4793
|
} = o;
|
|
4794
4794
|
return !n && e && t && i > 0 && r;
|
|
4795
4795
|
}
|
|
4796
|
-
class
|
|
4796
|
+
class KM extends tt {
|
|
4797
4797
|
constructor() {
|
|
4798
4798
|
super(...arguments);
|
|
4799
4799
|
m(this, "lastEmtData");
|
|
@@ -4903,7 +4903,7 @@ class JM extends tt {
|
|
|
4903
4903
|
);
|
|
4904
4904
|
}
|
|
4905
4905
|
}
|
|
4906
|
-
class
|
|
4906
|
+
class JM extends tt {
|
|
4907
4907
|
constructor() {
|
|
4908
4908
|
super(...arguments);
|
|
4909
4909
|
m(this, "lastEmtData");
|
|
@@ -5123,9 +5123,9 @@ class te {
|
|
|
5123
5123
|
case R.RotateNode:
|
|
5124
5124
|
return new FM();
|
|
5125
5125
|
case R.SetFontStyle:
|
|
5126
|
-
return new JM();
|
|
5127
|
-
case R.SetPoint:
|
|
5128
5126
|
return new KM();
|
|
5127
|
+
case R.SetPoint:
|
|
5128
|
+
return new JM();
|
|
5129
5129
|
case R.SetLock:
|
|
5130
5130
|
return new XM();
|
|
5131
5131
|
case R.SetShapeOpt:
|
|
@@ -5937,11 +5937,29 @@ function Cr(o, n) {
|
|
|
5937
5937
|
);
|
|
5938
5938
|
return (e == null ? void 0 : e.mapper(o, n)) || null;
|
|
5939
5939
|
}
|
|
5940
|
-
const By =
|
|
5940
|
+
const By = "__netless_appliance_plugin_markmap_runtime__";
|
|
5941
|
+
function Wy() {
|
|
5942
|
+
return globalThis;
|
|
5943
|
+
}
|
|
5944
|
+
function Vy() {
|
|
5945
|
+
return Wy()[By];
|
|
5946
|
+
}
|
|
5947
|
+
function $y() {
|
|
5948
|
+
return new Error(
|
|
5949
|
+
'Markmap runtime is not registered. Install "markmap-lib", "markmap-view", and "mermaid", then import "@netless/appliance-plugin/markmap" before using insertMarkmap/updateMarkmap.'
|
|
5950
|
+
);
|
|
5951
|
+
}
|
|
5952
|
+
function Fy() {
|
|
5953
|
+
const o = Vy();
|
|
5954
|
+
if (!o)
|
|
5955
|
+
throw $y();
|
|
5956
|
+
return o;
|
|
5957
|
+
}
|
|
5958
|
+
const Gy = /* @__PURE__ */ new Set([
|
|
5941
5959
|
S.Eraser,
|
|
5942
5960
|
S.PencilEraser,
|
|
5943
5961
|
S.BitMapEraser
|
|
5944
|
-
]),
|
|
5962
|
+
]), Qy = /* @__PURE__ */ new Set([
|
|
5945
5963
|
S.Pencil,
|
|
5946
5964
|
S.Arrow,
|
|
5947
5965
|
S.Straight,
|
|
@@ -5950,8 +5968,8 @@ const By = /* @__PURE__ */ new Set([
|
|
|
5950
5968
|
S.Star,
|
|
5951
5969
|
S.Polygon,
|
|
5952
5970
|
S.SpeechBalloon
|
|
5953
|
-
]), Wn = (o) => typeof o == "number" &&
|
|
5954
|
-
class
|
|
5971
|
+
]), Wn = (o) => typeof o == "number" && Gy.has(o), Zy = (o) => o === B.FullWork || o === B.UpdateNode || o === B.RemoveNode || o === B.DrawWork;
|
|
5972
|
+
class Hy {
|
|
5955
5973
|
get now() {
|
|
5956
5974
|
var n;
|
|
5957
5975
|
return ((n = this.control.room) == null ? void 0 : n.calibrationTimestamp) || Date.now();
|
|
@@ -5979,7 +5997,7 @@ class $y {
|
|
|
5979
5997
|
return this.currentLocalWorkData.workState;
|
|
5980
5998
|
}
|
|
5981
5999
|
}
|
|
5982
|
-
class
|
|
6000
|
+
class qy extends Hy {
|
|
5983
6001
|
constructor(e) {
|
|
5984
6002
|
super();
|
|
5985
6003
|
/** 异步同步时间间隔 */
|
|
@@ -6047,6 +6065,16 @@ class Fy extends $y {
|
|
|
6047
6065
|
get Logger() {
|
|
6048
6066
|
return this.control.logger;
|
|
6049
6067
|
}
|
|
6068
|
+
assertMarkmapRuntimeRegistered(e, t) {
|
|
6069
|
+
try {
|
|
6070
|
+
Fy();
|
|
6071
|
+
} catch (i) {
|
|
6072
|
+
const r = i instanceof Error ? i.message : String(i);
|
|
6073
|
+
throw this.Logger.error(
|
|
6074
|
+
`[Appliance]: [markmap] ${e} failed: ${r}; viewId=${t}`
|
|
6075
|
+
), i;
|
|
6076
|
+
}
|
|
6077
|
+
}
|
|
6050
6078
|
destroy() {
|
|
6051
6079
|
var e, t, i, r, s;
|
|
6052
6080
|
(e = this.methodBuilder) == null || e.destroy(), this.unWritable(), this.taskBatchData.clear(), this.tasksqueue.clear(), this.tmpImageConfigMap.clear(), this.localPointsBatchData.clear(), this.isActive = !1, this.clearAllResolveMap.clear(), this.snapshotMap.clear(), this.boundingRectMap.clear(), (t = this.mainThread) == null || t.destroy(), this.mainThread = void 0, (i = this.backgroundThreadManager) == null || i.destroy(), this.backgroundThreadManager = void 0, (r = this.fullWorker) == null || r.terminate(), this.fullWorker = void 0, (s = this.subWorker) == null || s.terminate(), this.subWorker = void 0;
|
|
@@ -6124,14 +6152,14 @@ class Fy extends $y {
|
|
|
6124
6152
|
}
|
|
6125
6153
|
async useBackgroundThread() {
|
|
6126
6154
|
this.Logger.info("[Appliance]: use background thread");
|
|
6127
|
-
const { BackgroundThreadManagerImpl: e } = await import("./index-
|
|
6155
|
+
const { BackgroundThreadManagerImpl: e } = await import("./index-D-4DoHbs.mjs");
|
|
6128
6156
|
this.backgroundThreadManager = new e(this);
|
|
6129
6157
|
}
|
|
6130
6158
|
async useMainThread() {
|
|
6131
6159
|
this.Logger.info("[Appliance]: no OffscreenCanvas"), this.control.hasExtendFontFaces && await document.fonts.ready.then(() => {
|
|
6132
6160
|
this.Logger.info("[Appliance]: set font faces in main thread success");
|
|
6133
6161
|
});
|
|
6134
|
-
const { MainThreadManagerImpl: e } = await import("./index-
|
|
6162
|
+
const { MainThreadManagerImpl: e } = await import("./index-rYcPxCxx.mjs");
|
|
6135
6163
|
this.mainThread = new e(this);
|
|
6136
6164
|
}
|
|
6137
6165
|
async on() {
|
|
@@ -6180,7 +6208,7 @@ class Fy extends $y {
|
|
|
6180
6208
|
const { render: t, sp: i, subWorkerDrawCount: r, consumeCount: s } = e.data;
|
|
6181
6209
|
s && (this.consumeCount = s), i != null && i.length && this.collectorSyncData(i);
|
|
6182
6210
|
const a = (t == null ? void 0 : t.length) && t || [];
|
|
6183
|
-
if (
|
|
6211
|
+
if (J(r)) {
|
|
6184
6212
|
if (this.subWorkerDrawCount = r, this.fullWorkerDrawCount < 1 / 0) {
|
|
6185
6213
|
const c = Math.max(
|
|
6186
6214
|
this.maxDrawCount,
|
|
@@ -6316,7 +6344,7 @@ class Fy extends $y {
|
|
|
6316
6344
|
}
|
|
6317
6345
|
clearReRenders(e = 1 / 0) {
|
|
6318
6346
|
for (const t of this.reRenders.keys())
|
|
6319
|
-
if (
|
|
6347
|
+
if (J(Number(t)) && Number(t) <= e) {
|
|
6320
6348
|
const i = this.reRenders.get(Number(t));
|
|
6321
6349
|
i == null || i.forEach((r) => {
|
|
6322
6350
|
var s;
|
|
@@ -6429,17 +6457,17 @@ class Fy extends $y {
|
|
|
6429
6457
|
emitEventType: ee,
|
|
6430
6458
|
workState: Ye
|
|
6431
6459
|
});
|
|
6432
|
-
} catch (
|
|
6460
|
+
} catch (K) {
|
|
6433
6461
|
(s = (r = this.Logger) == null ? void 0 : r.error) == null || s.call(
|
|
6434
6462
|
r,
|
|
6435
|
-
`[Appliance]: [selector] onSelectorTransform failed: ${
|
|
6463
|
+
`[Appliance]: [selector] onSelectorTransform failed: ${K == null ? void 0 : K.message}`
|
|
6436
6464
|
);
|
|
6437
6465
|
}
|
|
6438
6466
|
break;
|
|
6439
6467
|
}
|
|
6440
6468
|
case B.Select: {
|
|
6441
|
-
const
|
|
6442
|
-
if (
|
|
6469
|
+
const K = N != null && N.length ? { ...k, selectIds: N, canvasHeight: P, canvasWidth: O, points: Z } : void 0;
|
|
6470
|
+
if (K && (C != null && C.strokeColor) && (K.selectorColor = C.strokeColor), K && G && (K.selectorColor = G), K && L && (K.strokeColor = L), K && (C != null && C.fillColor) && (K.fillColor = C.fillColor), K && A && (K.fillColor = A), K && $e($) && (K.canRotate = $), K && X && (K.scaleType = X), K && Y && (K.canTextEdit = Y), K && Se && (K.textOpt = Se), K && $e(mt) && (K.canLock = mt), K && $e(It) && (K.isLocked = It), K && wt && (K.shapeOpt = wt), K && Tt && (K.toolsTypes = Tt), K && Le && (K.thickness = Le), K && Ve && (K.strokeType = Ve), K && $e(dt) && (K.useStroke = dt), ue && this.viewContainerManager.showFloatBar(ue, !!K, K), x && ((a = this.collector) == null || a.dispatch({
|
|
6443
6471
|
type: v,
|
|
6444
6472
|
selectIds: N,
|
|
6445
6473
|
opt: C,
|
|
@@ -6457,7 +6485,7 @@ class Fy extends $y {
|
|
|
6457
6485
|
scenePath: me,
|
|
6458
6486
|
selectIds: N,
|
|
6459
6487
|
selectRect: k,
|
|
6460
|
-
selectorInfo:
|
|
6488
|
+
selectorInfo: K
|
|
6461
6489
|
});
|
|
6462
6490
|
} catch (ye) {
|
|
6463
6491
|
(u = (l = this.Logger) == null ? void 0 : l.error) == null || u.call(
|
|
@@ -6469,9 +6497,9 @@ class Fy extends $y {
|
|
|
6469
6497
|
}
|
|
6470
6498
|
case B.Snapshot:
|
|
6471
6499
|
if ((b || xe) && me) {
|
|
6472
|
-
const
|
|
6473
|
-
if (
|
|
6474
|
-
const { resolve: ye, value: Ae } =
|
|
6500
|
+
const K = this.snapshotMap.get(me);
|
|
6501
|
+
if (K) {
|
|
6502
|
+
const { resolve: ye, value: Ae } = K;
|
|
6475
6503
|
if (Ae && ye) {
|
|
6476
6504
|
const qe = Oe || 0;
|
|
6477
6505
|
Ae[qe] = b || xe, Ae.every((gn) => gn !== void 0) && ye(Ae);
|
|
@@ -6481,8 +6509,8 @@ class Fy extends $y {
|
|
|
6481
6509
|
break;
|
|
6482
6510
|
case B.BoundingBox:
|
|
6483
6511
|
if (U && me) {
|
|
6484
|
-
const
|
|
6485
|
-
|
|
6512
|
+
const K = this.boundingRectMap.get(me);
|
|
6513
|
+
K && K(U);
|
|
6486
6514
|
}
|
|
6487
6515
|
break;
|
|
6488
6516
|
case B.Cursor:
|
|
@@ -6491,8 +6519,8 @@ class Fy extends $y {
|
|
|
6491
6519
|
case B.Clear:
|
|
6492
6520
|
if (ue) {
|
|
6493
6521
|
this.viewContainerManager.showFloatBar(ue, !1);
|
|
6494
|
-
const
|
|
6495
|
-
|
|
6522
|
+
const K = (h = this.clearAllResolveMap.get(ue)) == null ? void 0 : h.resolve;
|
|
6523
|
+
K && K(ue);
|
|
6496
6524
|
try {
|
|
6497
6525
|
(g = this.control.selectorApi) == null || g.onSelectorCleared({
|
|
6498
6526
|
viewId: ue,
|
|
@@ -6541,13 +6569,13 @@ class Fy extends $y {
|
|
|
6541
6569
|
H
|
|
6542
6570
|
)
|
|
6543
6571
|
}));
|
|
6544
|
-
const
|
|
6572
|
+
const K = this.viewContainerManager.transformToOriginPoint(
|
|
6545
6573
|
(C == null ? void 0 : C.boxPoint) || [0, 0],
|
|
6546
6574
|
ue
|
|
6547
6575
|
), ye = (C == null ? void 0 : C.boxSize) || [0, 0], Ae = (I = this.viewContainerManager.getView(ue)) == null ? void 0 : I.cameraOpt;
|
|
6548
6576
|
C ? this.control.textEditorManager.updateTextForWorker({
|
|
6549
|
-
x:
|
|
6550
|
-
y:
|
|
6577
|
+
x: K[0],
|
|
6578
|
+
y: K[1],
|
|
6551
6579
|
w: ye[0],
|
|
6552
6580
|
h: ye[1],
|
|
6553
6581
|
scale: (Ae == null ? void 0 : Ae.scale) || 1,
|
|
@@ -6595,7 +6623,7 @@ class Fy extends $y {
|
|
|
6595
6623
|
Ht && ue && Ie && ey({
|
|
6596
6624
|
src: Ht,
|
|
6597
6625
|
isgl: Zt
|
|
6598
|
-
}).then((
|
|
6626
|
+
}).then((K) => {
|
|
6599
6627
|
var Ae;
|
|
6600
6628
|
const ye = /* @__PURE__ */ new Set();
|
|
6601
6629
|
if (ye.add({
|
|
@@ -6605,18 +6633,18 @@ class Fy extends $y {
|
|
|
6605
6633
|
viewId: ue,
|
|
6606
6634
|
imageSrc: Ht,
|
|
6607
6635
|
isSubWorker: dn,
|
|
6608
|
-
imageBitmap:
|
|
6636
|
+
imageBitmap: K
|
|
6609
6637
|
}), !this.control.hasOffscreenCanvas)
|
|
6610
6638
|
(Ae = this.mainThread) == null || Ae.consume(ye);
|
|
6611
6639
|
else {
|
|
6612
6640
|
const qe = dn && this.subWorker ? this.subWorker : this.fullWorker;
|
|
6613
|
-
|
|
6641
|
+
K ? qe.postMessage(ye, [K]) : qe.postMessage(ye);
|
|
6614
6642
|
}
|
|
6615
6643
|
});
|
|
6616
6644
|
break;
|
|
6617
6645
|
case B.GetVNodeInfo:
|
|
6618
6646
|
if (Ie) {
|
|
6619
|
-
const
|
|
6647
|
+
const K = Ie.toString(), ye = (f = this.getVNodeInfoResolveMap.get(K)) == null ? void 0 : f.resolve, Ae = { ...w, uuid: K };
|
|
6620
6648
|
ye && ye(Ae);
|
|
6621
6649
|
}
|
|
6622
6650
|
break;
|
|
@@ -6675,7 +6703,7 @@ class Fy extends $y {
|
|
|
6675
6703
|
C,
|
|
6676
6704
|
D,
|
|
6677
6705
|
P
|
|
6678
|
-
), A && Number(A) &&
|
|
6706
|
+
), A && Number(A) && Zy(u) && (D != null && D.length) && this.internalMsgEmitter.emit(
|
|
6679
6707
|
"reopenStorageAck",
|
|
6680
6708
|
Number(A),
|
|
6681
6709
|
C,
|
|
@@ -7087,7 +7115,7 @@ class Fy extends $y {
|
|
|
7087
7115
|
Object.keys(e).forEach((p) => {
|
|
7088
7116
|
var I, y, f;
|
|
7089
7117
|
const d = (y = (I = e[p]) == null ? void 0 : I.opt) == null ? void 0 : y.zIndex, M = (f = e[p]) == null ? void 0 : f.toolsType;
|
|
7090
|
-
|
|
7118
|
+
J(d) && (M && M === S.BackgroundSVG ? c.push([p, d]) : s.push([p, d]));
|
|
7091
7119
|
});
|
|
7092
7120
|
const l = s.length && ((h = this.zIndexNodeMethod) == null ? void 0 : h.correct(s)) || [], u = c.length && ((g = this.zIndexNodeMethod) == null ? void 0 : g.correct(c)) || [];
|
|
7093
7121
|
this.zIndexNodeMethod && l.length && (this.zIndexNodeMethod.setMinZIndex(l[0][1] || 0, t), this.zIndexNodeMethod.setMaxZIndex(
|
|
@@ -7104,7 +7132,7 @@ class Fy extends $y {
|
|
|
7104
7132
|
if (!e[p])
|
|
7105
7133
|
continue;
|
|
7106
7134
|
const M = e[p];
|
|
7107
|
-
M.opt &&
|
|
7135
|
+
M.opt && J(M.opt.zIndex) && M.opt.zIndex !== d && (M.opt.zIndex = d, r.set(p, M));
|
|
7108
7136
|
}
|
|
7109
7137
|
r.size && r.forEach((p, d) => {
|
|
7110
7138
|
var M;
|
|
@@ -7118,7 +7146,7 @@ class Fy extends $y {
|
|
|
7118
7146
|
if (!e[p])
|
|
7119
7147
|
continue;
|
|
7120
7148
|
const M = e[p];
|
|
7121
|
-
M.opt &&
|
|
7149
|
+
M.opt && J(M.opt.zIndex) && M.opt.zIndex !== d && (M.opt.zIndex = d, a.set(p, M));
|
|
7122
7150
|
}
|
|
7123
7151
|
return a.size && a.forEach((p, d) => {
|
|
7124
7152
|
var M;
|
|
@@ -7305,11 +7333,11 @@ class Fy extends $y {
|
|
|
7305
7333
|
this.runAnimation();
|
|
7306
7334
|
const g = t.newValue && ((N = t.newValue) == null ? void 0 : N.toolsType), p = t.newValue && ((C = t.newValue.opt) == null ? void 0 : C.zIndex);
|
|
7307
7335
|
if (g && g === S.BackgroundSVG) {
|
|
7308
|
-
if (this.zIndexNodeMethod &&
|
|
7336
|
+
if (this.zIndexNodeMethod && J(p)) {
|
|
7309
7337
|
const k = this.zIndexNodeMethod.getMinZIndexForBackgroundSVG(s);
|
|
7310
7338
|
this.zIndexNodeMethod.getMaxZIndexForBackgroundSVG(s) < p && this.zIndexNodeMethod.setMaxZIndexForBackgroundSVG(p, s), k > p && this.zIndexNodeMethod.setMinZIndexForBackgroundSVG(p, s);
|
|
7311
7339
|
}
|
|
7312
|
-
} else if (this.zIndexNodeMethod &&
|
|
7340
|
+
} else if (this.zIndexNodeMethod && J(p)) {
|
|
7313
7341
|
const k = this.zIndexNodeMethod.getMinZIndex(s);
|
|
7314
7342
|
this.zIndexNodeMethod.getMaxZIndex(s) < p && this.zIndexNodeMethod.setMaxZIndex(p, s), k > p && this.zIndexNodeMethod.setMinZIndex(p, s);
|
|
7315
7343
|
}
|
|
@@ -7388,7 +7416,7 @@ class Fy extends $y {
|
|
|
7388
7416
|
}
|
|
7389
7417
|
this.delayWorkStateToDoneResolve && a === j.Done && (this.delayWorkStateToDoneResolve(!0), this.setLockSentEventCursor(!0));
|
|
7390
7418
|
const p = e && this.viewContainerManager.getCurScenePath(e);
|
|
7391
|
-
a === j.Done && h && p &&
|
|
7419
|
+
a === j.Done && h && p && Qy.has(
|
|
7392
7420
|
(t = this.currentToolsData) == null ? void 0 : t.toolsType
|
|
7393
7421
|
) && this.internalMsgEmitter.emit(
|
|
7394
7422
|
"finalizeRequested",
|
|
@@ -7774,7 +7802,7 @@ class Fy extends $y {
|
|
|
7774
7802
|
if (!this.currentLocalWorkData || this.currentLocalWorkData.workState === j.Unwritable || this.isBusy)
|
|
7775
7803
|
return;
|
|
7776
7804
|
const i = (c = this.currentToolsData) == null ? void 0 : c.toolsType;
|
|
7777
|
-
if (!this.useTasksqueue && this.workState === j.Pending && i === S.Selector && (
|
|
7805
|
+
if (!this.useTasksqueue && this.workState === j.Pending && i === S.Selector && (J(e[0]) && J(e[1]) ? this.hoverCursor(e, t) : e[0] === void 0 && e[1] === void 0 && this.blurCursor(t)), !this.currentToolsData || !this.isCanSentCursor || !this.control.pluginOptions.extras.cursor.enable)
|
|
7778
7806
|
return;
|
|
7779
7807
|
const r = (l = this.collector) == null ? void 0 : l.uid, s = this.viewContainerManager.getCurScenePath(t);
|
|
7780
7808
|
switch ((u = this.currentToolsData) == null ? void 0 : u.toolsType) {
|
|
@@ -7969,7 +7997,7 @@ class Fy extends $y {
|
|
|
7969
7997
|
}
|
|
7970
7998
|
async insertBackgroundMarkMap(e, t) {
|
|
7971
7999
|
var s;
|
|
7972
|
-
if (!this.control.isUseBackgroundThread)
|
|
8000
|
+
if (this.assertMarkmapRuntimeRegistered("insertBackgroundMarkMap", e), !this.control.isUseBackgroundThread)
|
|
7973
8001
|
throw new Error("useBackgroundThread of pluginOptions should be true");
|
|
7974
8002
|
const i = this.viewContainerManager.getView(e);
|
|
7975
8003
|
if (!i)
|
|
@@ -8044,6 +8072,10 @@ class Fy extends $y {
|
|
|
8044
8072
|
}
|
|
8045
8073
|
async updateBackgroundMarkMap(e, t, i) {
|
|
8046
8074
|
var l;
|
|
8075
|
+
this.assertMarkmapRuntimeRegistered(
|
|
8076
|
+
"updateBackgroundMarkMap",
|
|
8077
|
+
e
|
|
8078
|
+
);
|
|
8047
8079
|
const r = this.viewContainerManager.getView(e);
|
|
8048
8080
|
if (!r)
|
|
8049
8081
|
throw new Error("updateBackgroundMarkMap viewId is not exist");
|
|
@@ -8268,7 +8300,7 @@ class Fy extends $y {
|
|
|
8268
8300
|
});
|
|
8269
8301
|
}
|
|
8270
8302
|
}
|
|
8271
|
-
class
|
|
8303
|
+
class Ky {
|
|
8272
8304
|
constructor(n) {
|
|
8273
8305
|
m(this, "internalMsgEmitter");
|
|
8274
8306
|
m(this, "control");
|
|
@@ -8455,7 +8487,7 @@ class Gy {
|
|
|
8455
8487
|
(e = this.control.room) == null || e.setMemberState(n);
|
|
8456
8488
|
}
|
|
8457
8489
|
}
|
|
8458
|
-
class
|
|
8490
|
+
class Jy {
|
|
8459
8491
|
constructor(n) {
|
|
8460
8492
|
m(this, "control");
|
|
8461
8493
|
m(this, "roomMemberManager");
|
|
@@ -8896,7 +8928,7 @@ class Qy {
|
|
|
8896
8928
|
}));
|
|
8897
8929
|
}
|
|
8898
8930
|
}
|
|
8899
|
-
class
|
|
8931
|
+
class Xy {
|
|
8900
8932
|
constructor(n) {
|
|
8901
8933
|
m(this, "internalMsgEmitter");
|
|
8902
8934
|
m(this, "control");
|
|
@@ -9023,11 +9055,11 @@ class Zy {
|
|
|
9023
9055
|
}
|
|
9024
9056
|
}
|
|
9025
9057
|
const Vn = 200;
|
|
9026
|
-
function
|
|
9058
|
+
function _y(o) {
|
|
9027
9059
|
return o instanceof TouchEvent || o instanceof window.TouchEvent || (o == null ? void 0 : o.touches) && (o == null ? void 0 : o.touches.length) || (o == null ? void 0 : o.changedTouches) && (o == null ? void 0 : o.changedTouches.length);
|
|
9028
9060
|
}
|
|
9029
|
-
function
|
|
9030
|
-
return
|
|
9061
|
+
function em(o) {
|
|
9062
|
+
return _y(o) && (o.touches && o.touches.length === 1 || o.changedTouches && o.changedTouches.length === 1);
|
|
9031
9063
|
}
|
|
9032
9064
|
function vo(o) {
|
|
9033
9065
|
return o.touches && o.touches.length ? {
|
|
@@ -9093,7 +9125,7 @@ class Li {
|
|
|
9093
9125
|
}
|
|
9094
9126
|
}
|
|
9095
9127
|
}
|
|
9096
|
-
const
|
|
9128
|
+
const tm = /* @__PURE__ */ new Set([
|
|
9097
9129
|
S.Image,
|
|
9098
9130
|
S.BackgroundSVG
|
|
9099
9131
|
]), Nr = {
|
|
@@ -9101,7 +9133,7 @@ const Jy = /* @__PURE__ */ new Set([
|
|
|
9101
9133
|
"shape.innerVerticeStep": /* @__PURE__ */ new Set([S.Star]),
|
|
9102
9134
|
"shape.innerRatio": /* @__PURE__ */ new Set([S.Star]),
|
|
9103
9135
|
"shape.placement": /* @__PURE__ */ new Set([S.SpeechBalloon])
|
|
9104
|
-
},
|
|
9136
|
+
}, nm = /* @__PURE__ */ new Set([
|
|
9105
9137
|
"fontColor",
|
|
9106
9138
|
"fontBgColor",
|
|
9107
9139
|
"fontSize",
|
|
@@ -9109,11 +9141,11 @@ const Jy = /* @__PURE__ */ new Set([
|
|
|
9109
9141
|
"italic",
|
|
9110
9142
|
"underline",
|
|
9111
9143
|
"lineThrough"
|
|
9112
|
-
]),
|
|
9144
|
+
]), im = /* @__PURE__ */ new Set([
|
|
9113
9145
|
"strokeColor",
|
|
9114
9146
|
"thickness",
|
|
9115
9147
|
"strokeType"
|
|
9116
|
-
]),
|
|
9148
|
+
]), rm = /* @__PURE__ */ new Set(["fillColor"]), om = /* @__PURE__ */ new Set(["zIndexLayer"]), sm = /* @__PURE__ */ new Set([
|
|
9117
9149
|
S.Pencil,
|
|
9118
9150
|
S.LaserPen,
|
|
9119
9151
|
S.Arrow,
|
|
@@ -9126,7 +9158,7 @@ const Jy = /* @__PURE__ */ new Set([
|
|
|
9126
9158
|
S.Polygon,
|
|
9127
9159
|
S.Star,
|
|
9128
9160
|
S.SpeechBalloon
|
|
9129
|
-
]),
|
|
9161
|
+
]), am = /* @__PURE__ */ new Set([S.Pencil]), cm = /* @__PURE__ */ new Set([
|
|
9130
9162
|
S.LaserPen,
|
|
9131
9163
|
S.Arrow,
|
|
9132
9164
|
S.Straight,
|
|
@@ -9140,11 +9172,11 @@ function Co(o) {
|
|
|
9140
9172
|
return o === he.Normal || o === he.Stroke || o === he.Dotted || o === he.LongDotted;
|
|
9141
9173
|
}
|
|
9142
9174
|
function Rt(o, n) {
|
|
9143
|
-
return o ?
|
|
9175
|
+
return o ? om.has(n) ? !0 : n === "isLocked" ? tm.has(o) : nm.has(n) ? o === S.Text : n in Nr ? Nr[n].has(
|
|
9144
9176
|
o
|
|
9145
|
-
) :
|
|
9177
|
+
) : rm.has(n) ? kr.has(o) : im.has(n) ? sm.has(o) || kr.has(o) : !1 : !1;
|
|
9146
9178
|
}
|
|
9147
|
-
function
|
|
9179
|
+
function lm(o) {
|
|
9148
9180
|
return [
|
|
9149
9181
|
"strokeColor",
|
|
9150
9182
|
"fillColor",
|
|
@@ -9171,9 +9203,9 @@ function en(o) {
|
|
|
9171
9203
|
return o.strokeColor !== void 0 && n.push("strokeColor"), o.fillColor !== void 0 && n.push("fillColor"), o.thickness !== void 0 && n.push("thickness"), o.strokeType !== void 0 && n.push("strokeType"), o.fontColor !== void 0 && n.push("fontColor"), o.fontBgColor !== void 0 && n.push("fontBgColor"), o.fontSize !== void 0 && n.push("fontSize"), o.bold !== void 0 && n.push("bold"), o.italic !== void 0 && n.push("italic"), o.underline !== void 0 && n.push("underline"), o.lineThrough !== void 0 && n.push("lineThrough"), o.isLocked !== void 0 && n.push("isLocked"), o.zIndexLayer !== void 0 && n.push("zIndexLayer"), ((e = o.shape) == null ? void 0 : e.vertices) !== void 0 && n.push("shape.vertices"), ((t = o.shape) == null ? void 0 : t.innerVerticeStep) !== void 0 && n.push("shape.innerVerticeStep"), ((i = o.shape) == null ? void 0 : i.innerRatio) !== void 0 && n.push("shape.innerRatio"), ((r = o.shape) == null ? void 0 : r.placement) !== void 0 && n.push("shape.placement"), n;
|
|
9172
9204
|
}
|
|
9173
9205
|
function xr(o, n) {
|
|
9174
|
-
return !o || n === void 0 || !Rt(o, "strokeType") ? !1 :
|
|
9206
|
+
return !o || n === void 0 || !Rt(o, "strokeType") ? !1 : am.has(o) ? Co(n) : cm.has(o) ? n === he.Normal || n === he.Dotted || n === he.LongDotted : !1;
|
|
9175
9207
|
}
|
|
9176
|
-
const oe = "[Appliance]: [selector]",
|
|
9208
|
+
const oe = "[Appliance]: [selector]", um = ["bold", "normal"], hm = ["italic", "normal"], dm = [
|
|
9177
9209
|
"top",
|
|
9178
9210
|
"left",
|
|
9179
9211
|
"right",
|
|
@@ -9187,7 +9219,7 @@ const oe = "[Appliance]: [selector]", om = ["bold", "normal"], sm = ["italic", "
|
|
|
9187
9219
|
"rightTop",
|
|
9188
9220
|
"rightBottom"
|
|
9189
9221
|
];
|
|
9190
|
-
class
|
|
9222
|
+
class gm {
|
|
9191
9223
|
constructor(n) {
|
|
9192
9224
|
m(this, "control");
|
|
9193
9225
|
m(this, "logger");
|
|
@@ -9355,7 +9387,7 @@ class cm {
|
|
|
9355
9387
|
if (!e) return;
|
|
9356
9388
|
const t = this.control.viewContainerManager, i = t == null ? void 0 : t.getView(e);
|
|
9357
9389
|
if (!i) return;
|
|
9358
|
-
const r = (g = (h = (u = i.displayer) == null ? void 0 : u.vDom) == null ? void 0 : h.state) == null ? void 0 : g.floatBarData, s = (r == null ? void 0 : r.selectIds) ?? [], a = r &&
|
|
9390
|
+
const r = (g = (h = (u = i.displayer) == null ? void 0 : u.vDom) == null ? void 0 : h.state) == null ? void 0 : g.floatBarData, s = (r == null ? void 0 : r.selectIds) ?? [], a = r && J(r.x) && J(r.y) && J(r.w) && J(r.h) ? {
|
|
9359
9391
|
x: r.x,
|
|
9360
9392
|
y: r.y,
|
|
9361
9393
|
w: r.w,
|
|
@@ -9845,7 +9877,7 @@ class cm {
|
|
|
9845
9877
|
*/
|
|
9846
9878
|
onSelectorSync(n) {
|
|
9847
9879
|
var M, I, y, f;
|
|
9848
|
-
const { viewId: e, scenePath: t, selectIds: i, selectRect: r, selectorInfo: s } = n, a = i && i.slice().sort() || [], c = this.lastSelectedIdsByView.get(e) || [], l = !this.isArrayEqual(a, c), u = r &&
|
|
9880
|
+
const { viewId: e, scenePath: t, selectIds: i, selectRect: r, selectorInfo: s } = n, a = i && i.slice().sort() || [], c = this.lastSelectedIdsByView.get(e) || [], l = !this.isArrayEqual(a, c), u = r && J(r.x) && J(r.y) && J(r.w) && J(r.h) ? { x: r.x, y: r.y, w: r.w, h: r.h } : void 0, g = !!this.pendingCameraChangeByView.get(e) && !l && !!(i != null && i.length);
|
|
9849
9881
|
if (l) {
|
|
9850
9882
|
const w = this.getSelectedElements(e), v = {
|
|
9851
9883
|
viewId: e,
|
|
@@ -10073,7 +10105,7 @@ class cm {
|
|
|
10073
10105
|
const M = r, I = (M.selectIds || []).slice().sort(), y = a.selectedIds, f = !this.isArrayEqual(I, y);
|
|
10074
10106
|
!y.length && I.length ? c = "select" : f && !I.length ? c = "clear" : c = f ? "select" : "update", l = M.selectIds || [];
|
|
10075
10107
|
const w = M.selectRect || M.rect || ((d = M.updateNodeOpt) == null ? void 0 : d.rect);
|
|
10076
|
-
w &&
|
|
10108
|
+
w && J(w.x) && J(w.y) && J(w.w) && J(w.h) && (u = { x: w.x, y: w.y, w: w.w, h: w.h });
|
|
10077
10109
|
} else {
|
|
10078
10110
|
if (!a.selectedIds.length) return;
|
|
10079
10111
|
c = "clear", l = [], u = void 0;
|
|
@@ -10281,8 +10313,8 @@ class cm {
|
|
|
10281
10313
|
`${oe} updateElement warn invalid-format toolsType=${e} field=shape.${d} value=${JSON.stringify(t.shape[d])}`
|
|
10282
10314
|
), delete t.shape[d], Object.keys(t.shape).length || delete t.shape);
|
|
10283
10315
|
};
|
|
10284
|
-
"strokeColor" in t && typeof t.strokeColor != "string" && a("strokeColor"), "fillColor" in t && typeof t.fillColor != "string" && a("fillColor"), "fontColor" in t && typeof t.fontColor != "string" && a("fontColor"), "fontBgColor" in t && typeof t.fontBgColor != "string" && a("fontBgColor"), "thickness" in t && !Number.isFinite(t.thickness) && a("thickness"), "fontSize" in t && !Number.isFinite(t.fontSize) && a("fontSize"), "strokeType" in t && !Object.values(he).includes(t.strokeType) && a("strokeType"), "strokeType" in t && t.strokeType !== void 0 && !xr(e, t.strokeType) && r("strokeType"), "bold" in t && !
|
|
10285
|
-
const l = new Set(
|
|
10316
|
+
"strokeColor" in t && typeof t.strokeColor != "string" && a("strokeColor"), "fillColor" in t && typeof t.fillColor != "string" && a("fillColor"), "fontColor" in t && typeof t.fontColor != "string" && a("fontColor"), "fontBgColor" in t && typeof t.fontBgColor != "string" && a("fontBgColor"), "thickness" in t && !Number.isFinite(t.thickness) && a("thickness"), "fontSize" in t && !Number.isFinite(t.fontSize) && a("fontSize"), "strokeType" in t && !Object.values(he).includes(t.strokeType) && a("strokeType"), "strokeType" in t && t.strokeType !== void 0 && !xr(e, t.strokeType) && r("strokeType"), "bold" in t && !um.includes(t.bold) && a("bold"), "italic" in t && !hm.includes(t.italic) && a("italic"), "underline" in t && typeof t.underline != "boolean" && a("underline"), "lineThrough" in t && typeof t.lineThrough != "boolean" && a("lineThrough"), "isLocked" in t && typeof t.isLocked != "boolean" && a("isLocked"), "zIndexLayer" in t && ![pt.Top, pt.Bottom].includes(t.zIndexLayer) && a("zIndexLayer"), t.shape && ("vertices" in t.shape && !Number.isFinite(t.shape.vertices) && c("vertices"), "innerVerticeStep" in t.shape && !Number.isFinite(t.shape.innerVerticeStep) && c("innerVerticeStep"), "innerRatio" in t.shape && !Number.isFinite(t.shape.innerRatio) && c("innerRatio"), "placement" in t.shape && !dm.includes(t.shape.placement) && c("placement"));
|
|
10317
|
+
const l = new Set(lm(e));
|
|
10286
10318
|
return [
|
|
10287
10319
|
"strokeColor",
|
|
10288
10320
|
"fillColor",
|
|
@@ -10437,7 +10469,7 @@ class cm {
|
|
|
10437
10469
|
}
|
|
10438
10470
|
}
|
|
10439
10471
|
const At = "__undo_scope_clear_all__";
|
|
10440
|
-
function
|
|
10472
|
+
function fm(o) {
|
|
10441
10473
|
const { viewId: n, scenePath: e, expectedAcks: t, fallbackTimer: i } = o;
|
|
10442
10474
|
return {
|
|
10443
10475
|
viewId: n,
|
|
@@ -10458,16 +10490,16 @@ function lm(o) {
|
|
|
10458
10490
|
fallbackTimer: i
|
|
10459
10491
|
};
|
|
10460
10492
|
}
|
|
10461
|
-
function
|
|
10493
|
+
function pm(o, n) {
|
|
10462
10494
|
n && (o.meta = { ...o.meta, ...n });
|
|
10463
10495
|
}
|
|
10464
|
-
function
|
|
10496
|
+
function Mm(o) {
|
|
10465
10497
|
return (!o.expectedRender || o.gotRender) && (!o.expectedStorage || o.gotStorage);
|
|
10466
10498
|
}
|
|
10467
|
-
function
|
|
10499
|
+
function ym(o) {
|
|
10468
10500
|
return !o.ackTimer && (o.gotRender || o.gotStorage);
|
|
10469
10501
|
}
|
|
10470
|
-
function
|
|
10502
|
+
function mm(o, n) {
|
|
10471
10503
|
return o.size > 0 ? o.has(At) ? n === At : !!n && o.has(n) : !n || o.has(n);
|
|
10472
10504
|
}
|
|
10473
10505
|
function $n(o, n) {
|
|
@@ -10503,7 +10535,7 @@ function Fn(o, n, e, t) {
|
|
|
10503
10535
|
function br(o, n, e) {
|
|
10504
10536
|
return e != null && e.has(At) ? !n.has(o) : e != null && e.size ? e.has(o) : !n.has(o);
|
|
10505
10537
|
}
|
|
10506
|
-
const
|
|
10538
|
+
const Je = class Je {
|
|
10507
10539
|
constructor(n) {
|
|
10508
10540
|
m(this, "version", lo);
|
|
10509
10541
|
m(this, "plugin");
|
|
@@ -10583,18 +10615,18 @@ const Ke = class Ke {
|
|
|
10583
10615
|
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
10616
|
const s = {
|
|
10585
10617
|
control: this,
|
|
10586
|
-
internalMsgEmitter:
|
|
10587
|
-
publicMsgEmitter:
|
|
10618
|
+
internalMsgEmitter: Je.InternalMsgEmitter,
|
|
10619
|
+
publicMsgEmitter: Je.PublicMsgEmitter
|
|
10588
10620
|
};
|
|
10589
|
-
this.cursor = new OM(s), this.textEditorManager = new Xf(s), this.worker = new
|
|
10621
|
+
this.cursor = new OM(s), this.textEditorManager = new Xf(s), this.worker = new qy(s), this.hotkeyManager = new Ky(s), this.renderControl = new Jy(s), this.pluginManager = new zo(s), this.isUseSimple || (this.miniMapManager = new Xy(s)), this.logger = new Li(r);
|
|
10590
10622
|
}
|
|
10591
10623
|
/** WB-429: selector API 事件派发用,指向 BaseApplianceManager.PublicMsgEmitter */
|
|
10592
10624
|
get publicMsgEmitter() {
|
|
10593
|
-
return
|
|
10625
|
+
return Je.PublicMsgEmitter;
|
|
10594
10626
|
}
|
|
10595
10627
|
/** WB-429: selector API 监听内部 method emit 用 */
|
|
10596
10628
|
get internalMsgEmitter() {
|
|
10597
|
-
return
|
|
10629
|
+
return Je.InternalMsgEmitter;
|
|
10598
10630
|
}
|
|
10599
10631
|
hasPolyfillMethod(n) {
|
|
10600
10632
|
return this._isPolyfill[n];
|
|
@@ -10668,7 +10700,7 @@ const Ke = class Ke {
|
|
|
10668
10700
|
this,
|
|
10669
10701
|
n,
|
|
10670
10702
|
this.pluginOptions.extras.syncOpt.interval
|
|
10671
|
-
), this.activePlugin(), this.selectorApi && this.selectorApi.destroy(), this.selectorApi = new
|
|
10703
|
+
), this.activePlugin(), this.selectorApi && this.selectorApi.destroy(), this.selectorApi = new gm(this);
|
|
10672
10704
|
}
|
|
10673
10705
|
/** 销毁 */
|
|
10674
10706
|
destroy() {
|
|
@@ -10681,24 +10713,24 @@ const Ke = class Ke {
|
|
|
10681
10713
|
const n = this.worker.now, e = this.worker.getLocalWorkViewId() || this.viewContainerManager.focuedViewId;
|
|
10682
10714
|
if (e) {
|
|
10683
10715
|
const r = this.viewContainerManager.getCurScenePath(e), s = (r && ((i = (t = this.collector) == null ? void 0 : t.storage[e]) != null && i[r]) ? Object.keys(this.collector.storage[e][r]) : []) || [];
|
|
10684
|
-
|
|
10716
|
+
Je.InternalMsgEmitter.emit(
|
|
10685
10717
|
"addUndoTicker",
|
|
10686
10718
|
n,
|
|
10687
10719
|
e,
|
|
10688
10720
|
{ render: !0, storage: !0 }
|
|
10689
|
-
), s.length &&
|
|
10721
|
+
), s.length && Je.InternalMsgEmitter.emit(
|
|
10690
10722
|
"finalizeRequested",
|
|
10691
10723
|
n,
|
|
10692
10724
|
e,
|
|
10693
10725
|
[At],
|
|
10694
10726
|
r
|
|
10695
10727
|
), this.worker.clearViewScenePath(e, !1, !0).then(() => {
|
|
10696
|
-
|
|
10728
|
+
Je.InternalMsgEmitter.emit(
|
|
10697
10729
|
"ackRenderUndoTicker",
|
|
10698
10730
|
n,
|
|
10699
10731
|
e,
|
|
10700
10732
|
r
|
|
10701
|
-
),
|
|
10733
|
+
), Je.InternalMsgEmitter.emit(
|
|
10702
10734
|
"ackStorageUndoTicker",
|
|
10703
10735
|
n,
|
|
10704
10736
|
e,
|
|
@@ -10778,7 +10810,7 @@ const Ke = class Ke {
|
|
|
10778
10810
|
toolsOpt: {}
|
|
10779
10811
|
};
|
|
10780
10812
|
const t = {
|
|
10781
|
-
strokeColor:
|
|
10813
|
+
strokeColor: Jt(
|
|
10782
10814
|
e.strokeColor[0],
|
|
10783
10815
|
e.strokeColor[1],
|
|
10784
10816
|
e.strokeColor[2],
|
|
@@ -10789,12 +10821,12 @@ const Ke = class Ke {
|
|
|
10789
10821
|
};
|
|
10790
10822
|
switch (n) {
|
|
10791
10823
|
case S.Text:
|
|
10792
|
-
t.fontFamily = window.getComputedStyle(document.documentElement).getPropertyValue("font-family"), t.fontSize = (e == null ? void 0 : e.textSizeOverride) || (e == null ? void 0 : e.textSize) || Number(window.getComputedStyle(document.body).fontSize), t.textAlign = (e == null ? void 0 : e.textAlign) || "left", t.verticalAlign = (e == null ? void 0 : e.verticalAlign) || "middle", t.fontColor = (e == null ? void 0 : e.textColor) &&
|
|
10824
|
+
t.fontFamily = window.getComputedStyle(document.documentElement).getPropertyValue("font-family"), t.fontSize = (e == null ? void 0 : e.textSizeOverride) || (e == null ? void 0 : e.textSize) || Number(window.getComputedStyle(document.body).fontSize), t.textAlign = (e == null ? void 0 : e.textAlign) || "left", t.verticalAlign = (e == null ? void 0 : e.verticalAlign) || "middle", t.fontColor = (e == null ? void 0 : e.textColor) && Jt(
|
|
10793
10825
|
e.textColor[0],
|
|
10794
10826
|
e.textColor[1],
|
|
10795
10827
|
e.textColor[2],
|
|
10796
10828
|
e.textOpacity || 1
|
|
10797
|
-
) || t.strokeColor || "rgba(0,0,0,1)", t.fontBgColor = Array.isArray(e == null ? void 0 : e.textBgColor) &&
|
|
10829
|
+
) || t.strokeColor || "rgba(0,0,0,1)", t.fontBgColor = Array.isArray(e == null ? void 0 : e.textBgColor) && Jt(
|
|
10798
10830
|
e.textBgColor[0],
|
|
10799
10831
|
e.textBgColor[1],
|
|
10800
10832
|
e.textBgColor[2],
|
|
@@ -10834,7 +10866,7 @@ const Ke = class Ke {
|
|
|
10834
10866
|
case S.SpeechBalloon: {
|
|
10835
10867
|
e != null && e.strokeType && (e == null ? void 0 : e.strokeType) === he.Stroke ? t.strokeType = he.Normal : t.strokeType = (e == null ? void 0 : e.strokeType) || he.Normal;
|
|
10836
10868
|
const i = t.strokeType;
|
|
10837
|
-
t.lineCap = this.getLineCap(i), t.lineDash = this.getLineDash(i), n === S.Star && (e.shapeType === He.Pentagram ? (t.vertices = 10, t.innerVerticeStep = 2, t.innerRatio = 0.4) : e != null && e.vertices && (e != null && e.innerVerticeStep) && (e != null && e.innerRatio) && (t.vertices = e.vertices, t.innerVerticeStep = e.innerVerticeStep, t.innerRatio = e.innerRatio)), n === S.Polygon && (e.shapeType === He.Triangle ? t.vertices = 3 : e.shapeType === He.Rhombus ? t.vertices = 4 : e.vertices && (t.vertices = e.vertices)), t.fillColor = (e == null ? void 0 : e.fillColor) &&
|
|
10869
|
+
t.lineCap = this.getLineCap(i), t.lineDash = this.getLineDash(i), n === S.Star && (e.shapeType === He.Pentagram ? (t.vertices = 10, t.innerVerticeStep = 2, t.innerRatio = 0.4) : e != null && e.vertices && (e != null && e.innerVerticeStep) && (e != null && e.innerRatio) && (t.vertices = e.vertices, t.innerVerticeStep = e.innerVerticeStep, t.innerRatio = e.innerRatio)), n === S.Polygon && (e.shapeType === He.Triangle ? t.vertices = 3 : e.shapeType === He.Rhombus ? t.vertices = 4 : e.vertices && (t.vertices = e.vertices)), t.fillColor = (e == null ? void 0 : e.fillColor) && Jt(
|
|
10838
10870
|
e.fillColor[0],
|
|
10839
10871
|
e.fillColor[1],
|
|
10840
10872
|
e.fillColor[2],
|
|
@@ -11063,7 +11095,7 @@ const Ke = class Ke {
|
|
|
11063
11095
|
insertIconify(n, e) {
|
|
11064
11096
|
var i;
|
|
11065
11097
|
if (this.viewContainerManager.getView(n) && this.room) {
|
|
11066
|
-
const r = this.room.state.memberState, s =
|
|
11098
|
+
const r = this.room.state.memberState, s = Jt(
|
|
11067
11099
|
r.strokeColor[0],
|
|
11068
11100
|
r.strokeColor[1],
|
|
11069
11101
|
r.strokeColor[2],
|
|
@@ -11120,8 +11152,8 @@ const Ke = class Ke {
|
|
|
11120
11152
|
this.viewContainerManager.getView(n) && await this.onSceneChange(e, n);
|
|
11121
11153
|
}
|
|
11122
11154
|
};
|
|
11123
|
-
m(
|
|
11124
|
-
let we =
|
|
11155
|
+
m(Je, "InternalMsgEmitter", new Hn()), m(Je, "PublicMsgEmitter", new Hn());
|
|
11156
|
+
let we = Je;
|
|
11125
11157
|
var ii = /* @__PURE__ */ ((o) => (o.Undo = "undo", o.Redo = "redo", o))(ii || {});
|
|
11126
11158
|
const ge = class ge {
|
|
11127
11159
|
createProxy(n, e, t) {
|
|
@@ -11387,7 +11419,7 @@ const ct = class ct {
|
|
|
11387
11419
|
if (!this.timingFix)
|
|
11388
11420
|
return;
|
|
11389
11421
|
const r = this.pendingState.get(n);
|
|
11390
|
-
!r || r.scenePath !== e || (t && (r.scopeMode === "dynamic" || r.finalizeRequested) && r.ackedStorageKeys.add(t),
|
|
11422
|
+
!r || r.scenePath !== e || (t && (r.scopeMode === "dynamic" || r.finalizeRequested) && r.ackedStorageKeys.add(t), mm(r.scopeKeys, t) && r.finalizeRequested && (r.scopeKeys.size ? r.gotStorage = [...r.scopeKeys].every(
|
|
11391
11423
|
(a) => r.ackedStorageKeys.has(a)
|
|
11392
11424
|
) : r.gotStorage = !0), this.mergeMeta(r, i), !r.finalizeRequested) || (this.armAckTimeout(n, r), this.tryEnd(n));
|
|
11393
11425
|
}
|
|
@@ -11437,16 +11469,16 @@ const ct = class ct {
|
|
|
11437
11469
|
) : i.expectedStorage && !i.scopeKeys.size && i.scopeMode === "static" ? i.gotStorage = !0 : i.expectedStorage && !i.scopeKeys.size && i.scopeMode === "dynamic" && (i.gotStorage = !1), this.armAckTimeout(n, i), this.tryEnd(n);
|
|
11438
11470
|
}
|
|
11439
11471
|
mergeMeta(n, e) {
|
|
11440
|
-
|
|
11472
|
+
pm(n, e);
|
|
11441
11473
|
}
|
|
11442
11474
|
armAckTimeout(n, e) {
|
|
11443
|
-
e.finalizeRequested &&
|
|
11475
|
+
e.finalizeRequested && ym(e) && (e.ackTimer = setTimeout(() => {
|
|
11444
11476
|
this.forceFlushPending(n);
|
|
11445
11477
|
}, this.ackTimeout));
|
|
11446
11478
|
}
|
|
11447
11479
|
tryEnd(n) {
|
|
11448
11480
|
const e = this.pendingState.get(n);
|
|
11449
|
-
if (!e || !
|
|
11481
|
+
if (!e || !Mm(e))
|
|
11450
11482
|
return;
|
|
11451
11483
|
const t = e.meta;
|
|
11452
11484
|
this.undoTickerEndSync(n, e.viewId, e.scenePath, !0), t.copyAck && t.emitEventType && t.requestId && this.emitter.emit("undoAckApplied", {
|
|
@@ -11553,7 +11585,7 @@ const ct = class ct {
|
|
|
11553
11585
|
const h = setTimeout(() => {
|
|
11554
11586
|
this.forceFlushPending(n);
|
|
11555
11587
|
}, this.doingFallbackTimeout);
|
|
11556
|
-
this.pendingState.set(n,
|
|
11588
|
+
this.pendingState.set(n, fm({
|
|
11557
11589
|
viewId: this.viewId,
|
|
11558
11590
|
scenePath: e,
|
|
11559
11591
|
expectedAcks: t,
|
|
@@ -11781,7 +11813,7 @@ const ct = class ct {
|
|
|
11781
11813
|
}
|
|
11782
11814
|
}
|
|
11783
11815
|
especialDiff(n, e, t, i) {
|
|
11784
|
-
if (e ===
|
|
11816
|
+
if (e === Ke.Update)
|
|
11785
11817
|
switch (t == null ? void 0 : t.toolsType) {
|
|
11786
11818
|
case S.Text: {
|
|
11787
11819
|
if (i != null && i.opt && (t != null && t.opt)) {
|
|
@@ -11799,7 +11831,7 @@ const ct = class ct {
|
|
|
11799
11831
|
break;
|
|
11800
11832
|
}
|
|
11801
11833
|
}
|
|
11802
|
-
else if (e ===
|
|
11834
|
+
else if (e === Ke.Draw || e === Ke.Delete)
|
|
11803
11835
|
switch (t == null ? void 0 : t.toolsType) {
|
|
11804
11836
|
case S.Text: {
|
|
11805
11837
|
if (t != null && t.opt) {
|
|
@@ -11842,17 +11874,17 @@ const ct = class ct {
|
|
|
11842
11874
|
const u = this.normalizeUndoSnapshotValue(l, n.get(l)), h = this.normalizeUndoSnapshotValue(l, e.get(l));
|
|
11843
11875
|
if (!(!u && !h)) {
|
|
11844
11876
|
if (u && h) {
|
|
11845
|
-
if (de(h, u) || this.especialDiff(t,
|
|
11877
|
+
if (de(h, u) || this.especialDiff(t, Ke.Update, h, u))
|
|
11846
11878
|
continue;
|
|
11847
11879
|
s.add({
|
|
11848
|
-
dataType:
|
|
11880
|
+
dataType: Ke.Update,
|
|
11849
11881
|
key: l,
|
|
11850
11882
|
data: [u, h]
|
|
11851
11883
|
});
|
|
11852
11884
|
continue;
|
|
11853
11885
|
}
|
|
11854
|
-
this.especialDiff(t,
|
|
11855
|
-
dataType:
|
|
11886
|
+
this.especialDiff(t, Ke.Delete, u) || u && s.add({
|
|
11887
|
+
dataType: Ke.Delete,
|
|
11856
11888
|
key: l,
|
|
11857
11889
|
data: u
|
|
11858
11890
|
});
|
|
@@ -11863,10 +11895,10 @@ const ct = class ct {
|
|
|
11863
11895
|
continue;
|
|
11864
11896
|
const u = this.normalizeUndoSnapshotValue(l, e.get(l));
|
|
11865
11897
|
if (u && !n.has(l)) {
|
|
11866
|
-
if (this.especialDiff(t,
|
|
11898
|
+
if (this.especialDiff(t, Ke.Draw, u))
|
|
11867
11899
|
continue;
|
|
11868
11900
|
s.add({
|
|
11869
|
-
dataType:
|
|
11901
|
+
dataType: Ke.Draw,
|
|
11870
11902
|
key: l,
|
|
11871
11903
|
data: u
|
|
11872
11904
|
});
|
|
@@ -11901,7 +11933,7 @@ const ct = class ct {
|
|
|
11901
11933
|
for (const x of r.values()) {
|
|
11902
11934
|
const { dataType: D, data: b, key: P } = x, O = this.collector.getStorageData(this.viewId, i), U = O && Object.keys(O) || [];
|
|
11903
11935
|
switch (D) {
|
|
11904
|
-
case
|
|
11936
|
+
case Ke.Draw:
|
|
11905
11937
|
if (t = e ? this.isDrawEffectiveScene(x, U) : this.isDeleteEffectiveScene(x, U), t)
|
|
11906
11938
|
if (e && !Array.isArray(b)) {
|
|
11907
11939
|
if ((l = b.updateNodeOpt) != null && l.useAnimation && (b.updateNodeOpt.useAnimation = !1), ((u = this.collector) == null ? void 0 : u.getLocalId(P)) === Q && ((h = this.collector) != null && h.isOwn(x.key))) {
|
|
@@ -11928,7 +11960,7 @@ const ct = class ct {
|
|
|
11928
11960
|
a[x.key] = b, c = !0;
|
|
11929
11961
|
} else !e && !Array.isArray(x.data) && (delete a[x.key], c = !0);
|
|
11930
11962
|
break;
|
|
11931
|
-
case
|
|
11963
|
+
case Ke.Delete:
|
|
11932
11964
|
if (t = e ? this.isDeleteEffectiveScene(x, U) : this.isDrawEffectiveScene(x, U), t) {
|
|
11933
11965
|
if (e && !Array.isArray(b))
|
|
11934
11966
|
delete a[P], c = !0;
|
|
@@ -11958,7 +11990,7 @@ const ct = class ct {
|
|
|
11958
11990
|
}
|
|
11959
11991
|
}
|
|
11960
11992
|
break;
|
|
11961
|
-
case
|
|
11993
|
+
case Ke.Update:
|
|
11962
11994
|
if (t = e ? this.isNewEffectiveScene(x, U) : this.isOldEffectiveScene(x, U), t) {
|
|
11963
11995
|
if (e && Array.isArray(b) && b.length === 2) {
|
|
11964
11996
|
const V = b[1];
|
|
@@ -12661,7 +12693,7 @@ class No {
|
|
|
12661
12693
|
}
|
|
12662
12694
|
getPoint(n) {
|
|
12663
12695
|
const e = vo(n);
|
|
12664
|
-
if (e &&
|
|
12696
|
+
if (e && J(e.x) && J(e.y))
|
|
12665
12697
|
return [
|
|
12666
12698
|
e.x - this.containerOffset.x,
|
|
12667
12699
|
e.y - this.containerOffset.y
|
|
@@ -12730,7 +12762,7 @@ class No {
|
|
|
12730
12762
|
}), !0) : !1;
|
|
12731
12763
|
}
|
|
12732
12764
|
}
|
|
12733
|
-
class
|
|
12765
|
+
class Im extends No {
|
|
12734
12766
|
constructor(e, t, i) {
|
|
12735
12767
|
super(t, i, e);
|
|
12736
12768
|
m(this, "_viewId");
|
|
@@ -12757,25 +12789,25 @@ class ko extends No {
|
|
|
12757
12789
|
super.destroy(), this.control.cursor.destroy();
|
|
12758
12790
|
}
|
|
12759
12791
|
}
|
|
12760
|
-
const
|
|
12761
|
-
Container:
|
|
12762
|
-
BackgroundBox:
|
|
12763
|
-
BackgroundSvgBox:
|
|
12764
|
-
BackgroundSnapshotContent:
|
|
12765
|
-
BackgroundSnapshotBox:
|
|
12766
|
-
CanvasBox:
|
|
12767
|
-
FloatCanvas:
|
|
12768
|
-
TopFloatCanvas:
|
|
12769
|
-
CanvasBoxSub:
|
|
12770
|
-
SnapshotBox:
|
|
12771
|
-
FloatBar:
|
|
12772
|
-
RotateBtn:
|
|
12773
|
-
ResizeBtn:
|
|
12774
|
-
CursorBox:
|
|
12775
|
-
TextEditorContainer:
|
|
12776
|
-
ResizeTowBox:
|
|
12777
|
-
FloatBarBtn:
|
|
12778
|
-
},
|
|
12792
|
+
const wm = "index-module__Container__nLsM3", Tm = "index-module__BackgroundBox__zfthZ", Sm = "index-module__BackgroundSvgBox__Fv1ay", vm = "index-module__BackgroundSnapshotContent__NFLAl", Cm = "index-module__BackgroundSnapshotBox__NEM-C", Nm = "index-module__CanvasBox__j2Xe-", km = "index-module__FloatCanvas__d1YR7", xm = "index-module__TopFloatCanvas__7IaCw", bm = "index-module__CanvasBoxSub__hcMeK", jm = "index-module__SnapshotBox__--eeE", Dm = "index-module__FloatBar__cm-EL", Am = "index-module__RotateBtn__HSSkf", zm = "index-module__ResizeBtn__yjvda", Em = "index-module__CursorBox__2UHvI", Lm = "index-module__TextEditorContainer__Qm8KC", Pm = "index-module__ResizeTowBox__HOllX", Om = "index-module__FloatBarBtn__FJrOG", Ee = {
|
|
12793
|
+
Container: wm,
|
|
12794
|
+
BackgroundBox: Tm,
|
|
12795
|
+
BackgroundSvgBox: Sm,
|
|
12796
|
+
BackgroundSnapshotContent: vm,
|
|
12797
|
+
BackgroundSnapshotBox: Cm,
|
|
12798
|
+
CanvasBox: Nm,
|
|
12799
|
+
FloatCanvas: km,
|
|
12800
|
+
TopFloatCanvas: xm,
|
|
12801
|
+
CanvasBoxSub: bm,
|
|
12802
|
+
SnapshotBox: jm,
|
|
12803
|
+
FloatBar: Dm,
|
|
12804
|
+
RotateBtn: Am,
|
|
12805
|
+
ResizeBtn: zm,
|
|
12806
|
+
CursorBox: Em,
|
|
12807
|
+
TextEditorContainer: Lm,
|
|
12808
|
+
ResizeTowBox: Pm,
|
|
12809
|
+
FloatBarBtn: Om
|
|
12810
|
+
}, Rm = {
|
|
12779
12811
|
delete: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDZ2NmEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY2aDBtMS0yYTIgMiAwIDAgMSAyLTJoMmEyIDIgMCAwIDEgMiAyaDBNMyA0aDEwIiBzdHJva2U9IiM0NDRFNjAiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==",
|
|
12780
12812
|
duplicate: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgc3Ryb2tlPSIjNDQ0RTYwIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0xMSAySDZhMSAxIDAgMCAwLTEgMXY4YTEgMSAwIDAgMCAxIDFoNmExIDEgMCAwIDAgMS0xVjRoMGwtMi0yeiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PHBhdGggZD0iTTExIDJ2MWExIDEgMCAwIDAgMSAxaDFsLTItMnoiLz48cGF0aCBkPSJNOSAxNEg0YTEgMSAwIDAgMS0xLTFWNWgwIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L2c+PC9zdmc+",
|
|
12781
12813
|
"layer-pressed": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE2IDEwLTYgNCA2IDQgNi00em0tNiA4IDYgNCA2LTQiIHN0cm9rZT0iIzMzODFGRiIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+",
|
|
@@ -12813,9 +12845,9 @@ const pm = "index-module__Container__nLsM3", Mm = "index-module__BackgroundBox__
|
|
|
12813
12845
|
"speechBallon-placement":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LjIyNjY2NiA0NS4yMjY2NjcgODUuMzMzMzM0LTg1LjMzMzMzNC00NS4yMjY2NjctNDUuMjI2NjY2eiIgIGZpbGw9IiM0NDRFNjAiPjwvcGF0aD48L3N2Zz4="
|
|
12814
12846
|
};
|
|
12815
12847
|
function We(o) {
|
|
12816
|
-
return
|
|
12848
|
+
return Rm[o];
|
|
12817
12849
|
}
|
|
12818
|
-
const
|
|
12850
|
+
const Um = (o) => {
|
|
12819
12851
|
const { workIds: n, mananger: e } = o;
|
|
12820
12852
|
return /* @__PURE__ */ T.createElement(
|
|
12821
12853
|
"div",
|
|
@@ -12835,7 +12867,7 @@ const Em = (o) => {
|
|
|
12835
12867
|
},
|
|
12836
12868
|
/* @__PURE__ */ T.createElement("img", { alt: "icon", src: We("delete") })
|
|
12837
12869
|
);
|
|
12838
|
-
},
|
|
12870
|
+
}, Ym = (o) => {
|
|
12839
12871
|
const { workIds: n, viewId: e } = o;
|
|
12840
12872
|
return /* @__PURE__ */ T.createElement(
|
|
12841
12873
|
"div",
|
|
@@ -12854,9 +12886,9 @@ const Em = (o) => {
|
|
|
12854
12886
|
}, jr = (o) => {
|
|
12855
12887
|
const { icon: n, onPointerUpHandler: e } = o;
|
|
12856
12888
|
return /* @__PURE__ */ T.createElement("div", { className: "button normal-button", onPointerUp: e }, /* @__PURE__ */ T.createElement("img", { src: We(n) }));
|
|
12857
|
-
},
|
|
12889
|
+
}, Bm = (o) => {
|
|
12858
12890
|
const { open: n, setOpen: e, floatBarRef: t } = o, { floatBarData: i, mananger: r } = ze(De), [s, a] = ce([]), c = q(() => {
|
|
12859
|
-
if (t != null && t.current &&
|
|
12891
|
+
if (t != null && t.current && J(i == null ? void 0 : i.y) && (r != null && r.height)) {
|
|
12860
12892
|
if (t.current.offsetTop && t.current.offsetTop + i.y > 180) {
|
|
12861
12893
|
const h = {};
|
|
12862
12894
|
return h.top = "inherit", h.bottom = 50, h;
|
|
@@ -12913,7 +12945,7 @@ const Em = (o) => {
|
|
|
12913
12945
|
);
|
|
12914
12946
|
}, hn = (o) => {
|
|
12915
12947
|
o.stopPropagation(), o.nativeEvent.stopImmediatePropagation();
|
|
12916
|
-
},
|
|
12948
|
+
}, Wm = () => /* @__PURE__ */ T.createElement(
|
|
12917
12949
|
"svg",
|
|
12918
12950
|
{
|
|
12919
12951
|
style: { marginLeft: "2px" },
|
|
@@ -13014,7 +13046,7 @@ const Em = (o) => {
|
|
|
13014
13046
|
)
|
|
13015
13047
|
))
|
|
13016
13048
|
);
|
|
13017
|
-
},
|
|
13049
|
+
}, Vm = (o) => {
|
|
13018
13050
|
const { min: n, max: e, activeNumber: t, setActiveNumber: i, color: r } = o, [s, a] = ce({ x: 108, y: 0 }), c = Ce(0);
|
|
13019
13051
|
if (fe(() => {
|
|
13020
13052
|
const p = Math.ceil((t - n) / (e - n) * 100) + 8;
|
|
@@ -13078,7 +13110,7 @@ const Em = (o) => {
|
|
|
13078
13110
|
)
|
|
13079
13111
|
))
|
|
13080
13112
|
);
|
|
13081
|
-
},
|
|
13113
|
+
}, $m = (o) => {
|
|
13082
13114
|
const { useStroke: n, color: e, activeStrokeType: t, setStrokeType: i } = o;
|
|
13083
13115
|
return /* @__PURE__ */ T.createElement("div", { className: "stroke-type-box" }, !!n && /* @__PURE__ */ T.createElement(
|
|
13084
13116
|
"div",
|
|
@@ -13117,7 +13149,7 @@ const Em = (o) => {
|
|
|
13117
13149
|
}
|
|
13118
13150
|
}
|
|
13119
13151
|
));
|
|
13120
|
-
},
|
|
13152
|
+
}, Fm = (o) => {
|
|
13121
13153
|
const { open: n, setOpen: e, floatBarRef: t } = o, { floatBarData: i, floatBarColors: r, mananger: s, setFloatBarData: a } = ze(De), [c, l] = ce(), [u, h] = ce(1);
|
|
13122
13154
|
fe(() => {
|
|
13123
13155
|
if (i != null && i.strokeColor) {
|
|
@@ -13126,7 +13158,7 @@ const Em = (o) => {
|
|
|
13126
13158
|
}
|
|
13127
13159
|
}, [i]);
|
|
13128
13160
|
const g = q(() => {
|
|
13129
|
-
if (t != null && t.current && i &&
|
|
13161
|
+
if (t != null && t.current && i && J(i == null ? void 0 : i.y) && (s != null && s.height)) {
|
|
13130
13162
|
if (t.current.offsetTop && t.current.offsetTop + i.y > 180) {
|
|
13131
13163
|
const f = {};
|
|
13132
13164
|
return f.top = "inherit", f.bottom = 50, f;
|
|
@@ -13163,7 +13195,7 @@ const Em = (o) => {
|
|
|
13163
13195
|
s == null ? void 0 : s.viewId,
|
|
13164
13196
|
a
|
|
13165
13197
|
]), d = q(() => c && i && i.thickness ? /* @__PURE__ */ T.createElement(
|
|
13166
|
-
|
|
13198
|
+
Vm,
|
|
13167
13199
|
{
|
|
13168
13200
|
key: "strokeThickness",
|
|
13169
13201
|
min: Math.min(
|
|
@@ -13197,7 +13229,7 @@ const Em = (o) => {
|
|
|
13197
13229
|
s == null ? void 0 : s.viewId,
|
|
13198
13230
|
a
|
|
13199
13231
|
]), M = q(() => c && i && (i != null && i.strokeType) ? /* @__PURE__ */ T.createElement(
|
|
13200
|
-
|
|
13232
|
+
$m,
|
|
13201
13233
|
{
|
|
13202
13234
|
key: "strokeType",
|
|
13203
13235
|
useStroke: i == null ? void 0 : i.useStroke,
|
|
@@ -13285,7 +13317,7 @@ const Em = (o) => {
|
|
|
13285
13317
|
y,
|
|
13286
13318
|
I
|
|
13287
13319
|
);
|
|
13288
|
-
},
|
|
13320
|
+
}, Gm = (o) => {
|
|
13289
13321
|
const { open: n, setOpen: e, floatBarRef: t } = o, { floatBarData: i, floatBarColors: r, mananger: s, setFloatBarData: a } = ze(De), [c, l] = ce(), [u, h] = ce(1);
|
|
13290
13322
|
fe(() => {
|
|
13291
13323
|
if (i != null && i.fillColor) {
|
|
@@ -13294,7 +13326,7 @@ const Em = (o) => {
|
|
|
13294
13326
|
}
|
|
13295
13327
|
}, [i]);
|
|
13296
13328
|
const g = q(() => {
|
|
13297
|
-
if (t != null && t.current &&
|
|
13329
|
+
if (t != null && t.current && J(i == null ? void 0 : i.y) && (s != null && s.height)) {
|
|
13298
13330
|
if (t.current.offsetTop && t.current.offsetTop + i.y > 200) {
|
|
13299
13331
|
const I = {};
|
|
13300
13332
|
return I.top = "inherit", I.bottom = 50, I;
|
|
@@ -13404,7 +13436,7 @@ const Em = (o) => {
|
|
|
13404
13436
|
M,
|
|
13405
13437
|
d
|
|
13406
13438
|
);
|
|
13407
|
-
},
|
|
13439
|
+
}, Qm = (o) => {
|
|
13408
13440
|
const {
|
|
13409
13441
|
open: n,
|
|
13410
13442
|
setOpen: e,
|
|
@@ -13419,7 +13451,7 @@ const Em = (o) => {
|
|
|
13419
13451
|
}
|
|
13420
13452
|
}, [t == null ? void 0 : t.fontColor]);
|
|
13421
13453
|
const d = q(() => {
|
|
13422
|
-
if (r != null && r.current && l &&
|
|
13454
|
+
if (r != null && r.current && l && J(l == null ? void 0 : l.y) && (a != null && a.height)) {
|
|
13423
13455
|
if (r.current.offsetTop && r.current.offsetTop + l.y > 180) {
|
|
13424
13456
|
const f = {};
|
|
13425
13457
|
return f.top = "inherit", f.bottom = 50, f;
|
|
@@ -13519,7 +13551,7 @@ const Em = (o) => {
|
|
|
13519
13551
|
y,
|
|
13520
13552
|
I
|
|
13521
13553
|
);
|
|
13522
|
-
},
|
|
13554
|
+
}, Zm = (o) => {
|
|
13523
13555
|
const {
|
|
13524
13556
|
open: n,
|
|
13525
13557
|
setOpen: e,
|
|
@@ -13534,7 +13566,7 @@ const Em = (o) => {
|
|
|
13534
13566
|
}
|
|
13535
13567
|
}, [t == null ? void 0 : t.fontBgColor]);
|
|
13536
13568
|
const d = q(() => {
|
|
13537
|
-
if (r != null && r.current && l &&
|
|
13569
|
+
if (r != null && r.current && l && J(l == null ? void 0 : l.y) && (a != null && a.height)) {
|
|
13538
13570
|
if (r.current.offsetTop && r.current.offsetTop + l.y > 180) {
|
|
13539
13571
|
const f = {};
|
|
13540
13572
|
return f.top = "inherit", f.bottom = 50, f;
|
|
@@ -13649,11 +13681,11 @@ const Em = (o) => {
|
|
|
13649
13681
|
f.stopPropagation(), f.nativeEvent.stopImmediatePropagation(), e(!n);
|
|
13650
13682
|
}
|
|
13651
13683
|
},
|
|
13652
|
-
/* @__PURE__ */ T.createElement(
|
|
13684
|
+
/* @__PURE__ */ T.createElement(Wm, null),
|
|
13653
13685
|
y,
|
|
13654
13686
|
I
|
|
13655
13687
|
);
|
|
13656
|
-
},
|
|
13688
|
+
}, Hm = (o) => {
|
|
13657
13689
|
const { bold: n, setBold: e, workIds: t, viewId: i } = o, r = (s) => {
|
|
13658
13690
|
const a = n === "bold" ? "normal" : "bold";
|
|
13659
13691
|
s == null || s.stopPropagation(), e(a), te.emitMethod(
|
|
@@ -13663,7 +13695,7 @@ const Em = (o) => {
|
|
|
13663
13695
|
);
|
|
13664
13696
|
};
|
|
13665
13697
|
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
|
-
},
|
|
13698
|
+
}, qm = (o) => {
|
|
13667
13699
|
const { underline: n, setUnderline: e, workIds: t, viewId: i } = o, r = (s) => {
|
|
13668
13700
|
const a = !n;
|
|
13669
13701
|
s == null || s.stopPropagation(), e(a), te.emitMethod(
|
|
@@ -13679,7 +13711,7 @@ const Em = (o) => {
|
|
|
13679
13711
|
src: We(n ? "underline-active" : "underline")
|
|
13680
13712
|
}
|
|
13681
13713
|
));
|
|
13682
|
-
},
|
|
13714
|
+
}, Km = (o) => {
|
|
13683
13715
|
const { lineThrough: n, setLineThrough: e, workIds: t, viewId: i } = o, r = (s) => {
|
|
13684
13716
|
const a = !n;
|
|
13685
13717
|
s == null || s.stopPropagation(), e(a), te.emitMethod(
|
|
@@ -13695,7 +13727,7 @@ const Em = (o) => {
|
|
|
13695
13727
|
src: We(n ? "line-through-active" : "line-through")
|
|
13696
13728
|
}
|
|
13697
13729
|
));
|
|
13698
|
-
},
|
|
13730
|
+
}, Jm = (o) => {
|
|
13699
13731
|
const { italic: n, setItalic: e, workIds: t, viewId: i } = o, r = (s) => {
|
|
13700
13732
|
const a = n === "italic" ? "normal" : "italic";
|
|
13701
13733
|
s == null || s.stopPropagation(), e(a), te.emitMethod(
|
|
@@ -13711,7 +13743,7 @@ const Em = (o) => {
|
|
|
13711
13743
|
src: We(n === "italic" ? "italic-active" : "italic")
|
|
13712
13744
|
}
|
|
13713
13745
|
));
|
|
13714
|
-
},
|
|
13746
|
+
}, Xm = (o) => {
|
|
13715
13747
|
const {
|
|
13716
13748
|
open: n,
|
|
13717
13749
|
setOpen: e,
|
|
@@ -13724,7 +13756,7 @@ const Em = (o) => {
|
|
|
13724
13756
|
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
13757
|
}, [t]);
|
|
13726
13758
|
const y = q(() => {
|
|
13727
|
-
if (r && (s != null && s.current) &&
|
|
13759
|
+
if (r && (s != null && s.current) && J(c == null ? void 0 : c.y) && (a != null && a.height)) {
|
|
13728
13760
|
if (s.current.offsetTop && s.current.offsetTop + c.y > 180) {
|
|
13729
13761
|
const w = {};
|
|
13730
13762
|
return w.top = "inherit", w.bottom = 50, w;
|
|
@@ -13743,7 +13775,7 @@ const Em = (o) => {
|
|
|
13743
13775
|
}
|
|
13744
13776
|
},
|
|
13745
13777
|
/* @__PURE__ */ T.createElement(
|
|
13746
|
-
|
|
13778
|
+
Hm,
|
|
13747
13779
|
{
|
|
13748
13780
|
workIds: i || [Q],
|
|
13749
13781
|
bold: l,
|
|
@@ -13752,7 +13784,7 @@ const Em = (o) => {
|
|
|
13752
13784
|
}
|
|
13753
13785
|
),
|
|
13754
13786
|
/* @__PURE__ */ T.createElement(
|
|
13755
|
-
|
|
13787
|
+
qm,
|
|
13756
13788
|
{
|
|
13757
13789
|
workIds: i || [Q],
|
|
13758
13790
|
underline: p,
|
|
@@ -13761,7 +13793,7 @@ const Em = (o) => {
|
|
|
13761
13793
|
}
|
|
13762
13794
|
),
|
|
13763
13795
|
/* @__PURE__ */ T.createElement(
|
|
13764
|
-
|
|
13796
|
+
Km,
|
|
13765
13797
|
{
|
|
13766
13798
|
workIds: i || [Q],
|
|
13767
13799
|
lineThrough: M,
|
|
@@ -13770,7 +13802,7 @@ const Em = (o) => {
|
|
|
13770
13802
|
}
|
|
13771
13803
|
),
|
|
13772
13804
|
/* @__PURE__ */ T.createElement(
|
|
13773
|
-
|
|
13805
|
+
Jm,
|
|
13774
13806
|
{
|
|
13775
13807
|
workIds: i || [Q],
|
|
13776
13808
|
italic: h,
|
|
@@ -13829,7 +13861,7 @@ const Em = (o) => {
|
|
|
13829
13861
|
"right",
|
|
13830
13862
|
"rightTop",
|
|
13831
13863
|
"rightBottom"
|
|
13832
|
-
],
|
|
13864
|
+
], _m = /* @__PURE__ */ new Map([
|
|
13833
13865
|
[
|
|
13834
13866
|
"selector",
|
|
13835
13867
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKeSURBVHgB3VTLi1JhFD86zlQ4ysxSXAy1GWYZzMxmYAhHagRB/QN8FLqPFq4FIQhXkS6kTQ4t2ilIKEWgSS0SmVpIm0BdaBJSaOP78XU+PXey6+saburAD+73uL/feX0H4H81GQdj7D7ilrCGFRonk3c6nXvhcJiFQiGWy+Xy/X7/WbPZ1K1KkBOsl0qlO36/n+3t7Q1hs9kYF+WC3W73MTpxc1lBmej7KuJaoVDInZ6eqsWXDw4OwGKxwPHx8Se1Wn1Wr9cjW1tbOTxi9D9bJCJHXEFslsvlR263+246nYZZptPpQK/Xg8lkSvZ6vbNGo5EgQRCLiSPhIqpoNHobo3keCARgkalUKjg5ORlGuL+/n8T6PVAqlefjYmKRdYQSsZ3P5z8aDAYVLGFarRbi8fhbhUKhx2VPEJG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OTEwMTI0NCwxOS41MDgwNTU3IEwyMiwxOS41IEwyNywxOS41IFogTTE4LDE5LjUgQzE4LjI3NjE0MjQsMTkuNSAxOC41LDE5LjcyMzg1NzYgMTguNSwyMCBDMTguNSwyMC4yNDU0NTk5IDE4LjMyMzEyNDgsMjAuNDQ5NjA4NCAxOC4wODk4NzU2LDIwLjQ5MTk0NDMgTDE4LDIwLjUgTDEzLDIwLjUgQzEyLjcyMzg1NzYsMjAuNSAxMi41LDIwLjI3NjE0MjQgMTIuNSwyMCBDMTIuNSwxOS43NTQ1NDAxIDEyLjY3Njg3NTIsMTkuNTUwMzkxNiAxMi45MTAxMjQ0LDE5LjUwODA1NTcgTDEzLDE5LjUgTDE4LDE5LjUgWiBNMjAsMTIuNSBDMjAuMjQ1NDU5OSwxMi41IDIwLjQ0OTYwODQsMTIuNjc2ODc1MiAyMC40OTE5NDQzLDEyLjkxMDEyNDQgTDIwLjUsMTMgTDIwLjUsMTggQzIwLjUsMTguMjc2MTQyNCAyMC4yNzYxNDI0LDE4LjUgMjAsMTguNSBDMTkuNzU0NTQwMSwxOC41IDE5LjU1MDM5MTYsMTguMzIzMTI0OCAxOS41MDgwNTU3LDE4LjA4OTg3NTYgTDE5LjUsMTggTDE5LjUsMTMgQzE5LjUsMTIuNzIzODU3NiAxOS43MjM4NTc2LDEyLjUgMjAsMTIuNSBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjMjEyMzI0IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"
|
|
13852
13884
|
]
|
|
13853
|
-
]),
|
|
13885
|
+
]), eI = (o) => {
|
|
13854
13886
|
const { style: n, onClickHandler: e } = o;
|
|
13855
13887
|
return /* @__PURE__ */ T.createElement(
|
|
13856
13888
|
"div",
|
|
@@ -13873,7 +13905,7 @@ const Em = (o) => {
|
|
|
13873
13905
|
t
|
|
13874
13906
|
))
|
|
13875
13907
|
);
|
|
13876
|
-
},
|
|
13908
|
+
}, tI = (o) => {
|
|
13877
13909
|
const n = Ce(null), {
|
|
13878
13910
|
open: e,
|
|
13879
13911
|
setOpen: t,
|
|
@@ -13885,7 +13917,7 @@ const Em = (o) => {
|
|
|
13885
13917
|
i != null && i.fontSize && (u(i.fontSize), n.current && (n.current.value = i.fontSize.toString()));
|
|
13886
13918
|
}, [i == null ? void 0 : i.fontSize]);
|
|
13887
13919
|
const g = q(() => {
|
|
13888
|
-
if (s != null && s.current &&
|
|
13920
|
+
if (s != null && s.current && J(c == null ? void 0 : c.y) && (a != null && a.height)) {
|
|
13889
13921
|
if (s.current.offsetTop && s.current.offsetTop + c.y > 180) {
|
|
13890
13922
|
const y = {};
|
|
13891
13923
|
return y.top = "inherit", y.bottom = 35, y;
|
|
@@ -13909,7 +13941,7 @@ const Em = (o) => {
|
|
|
13909
13941
|
const d = (y) => {
|
|
13910
13942
|
var f;
|
|
13911
13943
|
(f = n.current) == null || f.blur(), t(!1), I(y);
|
|
13912
|
-
}, M = q(() => e ? /* @__PURE__ */ T.createElement(
|
|
13944
|
+
}, M = q(() => e ? /* @__PURE__ */ T.createElement(eI, { onClickHandler: d, style: g }) : null, [e, d, g]), I = (y) => {
|
|
13913
13945
|
y > ot[h] && (y = ot[h]), y < ot[0] && (y = ot[0]), p(y);
|
|
13914
13946
|
};
|
|
13915
13947
|
return /* @__PURE__ */ T.createElement(
|
|
@@ -13968,7 +14000,7 @@ const Em = (o) => {
|
|
|
13968
14000
|
)),
|
|
13969
14001
|
M
|
|
13970
14002
|
);
|
|
13971
|
-
},
|
|
14003
|
+
}, nI = (o) => {
|
|
13972
14004
|
const { workIds: n, mananger: e, islocked: t } = o;
|
|
13973
14005
|
return /* @__PURE__ */ T.createElement(
|
|
13974
14006
|
"div",
|
|
@@ -14038,10 +14070,10 @@ const Em = (o) => {
|
|
|
14038
14070
|
}
|
|
14039
14071
|
}
|
|
14040
14072
|
)));
|
|
14041
|
-
},
|
|
14073
|
+
}, iI = (o) => {
|
|
14042
14074
|
const { icon: n, min: e, max: t, step: i, value: r, onInputHandler: s } = o;
|
|
14043
14075
|
return /* @__PURE__ */ T.createElement("div", { className: "button input-button" }, /* @__PURE__ */ T.createElement("img", { src: We(n) }), /* @__PURE__ */ T.createElement(
|
|
14044
|
-
|
|
14076
|
+
rI,
|
|
14045
14077
|
{
|
|
14046
14078
|
min: e,
|
|
14047
14079
|
max: t,
|
|
@@ -14050,7 +14082,7 @@ const Em = (o) => {
|
|
|
14050
14082
|
onInputHandler: s
|
|
14051
14083
|
}
|
|
14052
14084
|
));
|
|
14053
|
-
},
|
|
14085
|
+
}, rI = (o) => {
|
|
14054
14086
|
const { value: n, min: e, max: t, onInputHandler: i } = o, [r, s] = ce({ x: 0, y: 0 });
|
|
14055
14087
|
fe(() => {
|
|
14056
14088
|
s({ x: n * 100, y: 0 });
|
|
@@ -14093,7 +14125,7 @@ const Em = (o) => {
|
|
|
14093
14125
|
/* @__PURE__ */ T.createElement("div", { className: "circle", onPointerUp: hn })
|
|
14094
14126
|
))
|
|
14095
14127
|
);
|
|
14096
|
-
},
|
|
14128
|
+
}, oI = (o) => {
|
|
14097
14129
|
const { icon: n, value: e, onChangeHandler: t, style: i } = o, [r, s] = ce(0), [a, c] = ce(), l = Ce(null), u = Dt(
|
|
14098
14130
|
(p) => {
|
|
14099
14131
|
p >= Ot.length && (p = 0), p < 0 && (p = Ot.length - 1), s(p), t(Ot[p]), c(!1), l.current && (l.current.value = Ot[p]);
|
|
@@ -14109,7 +14141,7 @@ const Em = (o) => {
|
|
|
14109
14141
|
e && (s(Ot.indexOf(e)), l.current && (l.current.value = e));
|
|
14110
14142
|
}, [e]);
|
|
14111
14143
|
const g = q(() => a ? /* @__PURE__ */ T.createElement(
|
|
14112
|
-
|
|
14144
|
+
sI,
|
|
14113
14145
|
{
|
|
14114
14146
|
options: Ot,
|
|
14115
14147
|
onClickHandler: u,
|
|
@@ -14144,7 +14176,7 @@ const Em = (o) => {
|
|
|
14144
14176
|
}
|
|
14145
14177
|
}
|
|
14146
14178
|
)), g);
|
|
14147
|
-
},
|
|
14179
|
+
}, sI = (o) => {
|
|
14148
14180
|
const { options: n, style: e, onClickHandler: t } = o;
|
|
14149
14181
|
return /* @__PURE__ */ T.createElement("div", { className: "select-option-menu", style: e }, n.map((i, r) => /* @__PURE__ */ T.createElement(
|
|
14150
14182
|
"div",
|
|
@@ -14157,7 +14189,7 @@ const Em = (o) => {
|
|
|
14157
14189
|
},
|
|
14158
14190
|
i
|
|
14159
14191
|
)));
|
|
14160
|
-
},
|
|
14192
|
+
}, aI = (o) => {
|
|
14161
14193
|
const { innerRatio: n, innerVerticeStep: e, vertices: t, mananger: i, setShapeOpt: r } = o, s = (l) => {
|
|
14162
14194
|
r({ vertices: l }), te.emitMethod(
|
|
14163
14195
|
ne.MainEngine,
|
|
@@ -14213,7 +14245,7 @@ const Em = (o) => {
|
|
|
14213
14245
|
onInputHandler: a
|
|
14214
14246
|
}
|
|
14215
14247
|
), /* @__PURE__ */ T.createElement(
|
|
14216
|
-
|
|
14248
|
+
iI,
|
|
14217
14249
|
{
|
|
14218
14250
|
value: n,
|
|
14219
14251
|
icon: "star-innerRatio",
|
|
@@ -14223,7 +14255,7 @@ const Em = (o) => {
|
|
|
14223
14255
|
onInputHandler: c
|
|
14224
14256
|
}
|
|
14225
14257
|
));
|
|
14226
|
-
},
|
|
14258
|
+
}, cI = (o) => {
|
|
14227
14259
|
const { mananger: n, vertices: e, setShapeOpt: t } = o, i = (r) => {
|
|
14228
14260
|
t({ vertices: r }), te.emitMethod(
|
|
14229
14261
|
ne.MainEngine,
|
|
@@ -14247,7 +14279,7 @@ const Em = (o) => {
|
|
|
14247
14279
|
onInputHandler: i
|
|
14248
14280
|
}
|
|
14249
14281
|
);
|
|
14250
|
-
},
|
|
14282
|
+
}, lI = (o) => {
|
|
14251
14283
|
const { mananger: n, placement: e, setShapeOpt: t } = o, i = (r) => {
|
|
14252
14284
|
t({ placement: r }), te.emitMethod(
|
|
14253
14285
|
ne.MainEngine,
|
|
@@ -14261,7 +14293,7 @@ const Em = (o) => {
|
|
|
14261
14293
|
);
|
|
14262
14294
|
};
|
|
14263
14295
|
return /* @__PURE__ */ T.createElement(
|
|
14264
|
-
|
|
14296
|
+
oI,
|
|
14265
14297
|
{
|
|
14266
14298
|
value: e,
|
|
14267
14299
|
icon: "speechBallon-placement",
|
|
@@ -14278,7 +14310,7 @@ const Em = (o) => {
|
|
|
14278
14310
|
},
|
|
14279
14311
|
/* @__PURE__ */ T.createElement("img", { src: We(n) })
|
|
14280
14312
|
);
|
|
14281
|
-
},
|
|
14313
|
+
}, uI = (o) => {
|
|
14282
14314
|
const { toolsTypes: n, style: e, mananger: t, shapeOpt: i, setShapeOpt: r } = o, [s, a] = ce();
|
|
14283
14315
|
fe(() => {
|
|
14284
14316
|
n.includes(S.Polygon) ? a(S.Polygon) : n.includes(S.Star) ? a(S.Star) : a(S.SpeechBalloon);
|
|
@@ -14286,14 +14318,14 @@ const Em = (o) => {
|
|
|
14286
14318
|
const c = (g) => {
|
|
14287
14319
|
a(g);
|
|
14288
14320
|
}, l = q(() => s === S.Polygon && t && i.vertices ? /* @__PURE__ */ T.createElement(
|
|
14289
|
-
|
|
14321
|
+
cI,
|
|
14290
14322
|
{
|
|
14291
14323
|
vertices: i.vertices,
|
|
14292
14324
|
mananger: t,
|
|
14293
14325
|
setShapeOpt: r
|
|
14294
14326
|
}
|
|
14295
14327
|
) : null, [t, s, i, r]), u = q(() => s === S.Star && t && i.vertices && i.innerVerticeStep && i.innerRatio ? /* @__PURE__ */ T.createElement(
|
|
14296
|
-
|
|
14328
|
+
aI,
|
|
14297
14329
|
{
|
|
14298
14330
|
mananger: t,
|
|
14299
14331
|
vertices: i.vertices,
|
|
@@ -14302,7 +14334,7 @@ const Em = (o) => {
|
|
|
14302
14334
|
setShapeOpt: r
|
|
14303
14335
|
}
|
|
14304
14336
|
) : null, [t, s, i, r]), h = q(() => s === S.SpeechBalloon && t && i.placement ? /* @__PURE__ */ T.createElement(
|
|
14305
|
-
|
|
14337
|
+
lI,
|
|
14306
14338
|
{
|
|
14307
14339
|
mananger: t,
|
|
14308
14340
|
placement: i.placement,
|
|
@@ -14346,7 +14378,7 @@ const Em = (o) => {
|
|
|
14346
14378
|
) || null),
|
|
14347
14379
|
/* @__PURE__ */ T.createElement("div", { className: "shapeOpt-sub-menu-content" }, l, u, h)
|
|
14348
14380
|
);
|
|
14349
|
-
},
|
|
14381
|
+
}, hI = (o) => {
|
|
14350
14382
|
const {
|
|
14351
14383
|
open: n,
|
|
14352
14384
|
setOpen: e,
|
|
@@ -14354,7 +14386,7 @@ const Em = (o) => {
|
|
|
14354
14386
|
toolsTypes: i,
|
|
14355
14387
|
shapeOpt: r
|
|
14356
14388
|
} = o, { floatBarData: s, mananger: a, setFloatBarData: c } = ze(De), l = Ce(null), u = q(() => {
|
|
14357
|
-
if (t != null && t.current &&
|
|
14389
|
+
if (t != null && t.current && J(s == null ? void 0 : s.x) && J(s == null ? void 0 : s.y) && (a != null && a.height)) {
|
|
14358
14390
|
if (t.current.offsetTop && t.current.offsetTop + s.y > 200) {
|
|
14359
14391
|
const d = {};
|
|
14360
14392
|
return d.top = "inherit", d.bottom = 50, d;
|
|
@@ -14369,7 +14401,7 @@ const Em = (o) => {
|
|
|
14369
14401
|
},
|
|
14370
14402
|
[c, r]
|
|
14371
14403
|
), g = q(() => n && i && a && r ? /* @__PURE__ */ T.createElement(
|
|
14372
|
-
|
|
14404
|
+
uI,
|
|
14373
14405
|
{
|
|
14374
14406
|
shapeOpt: r,
|
|
14375
14407
|
style: u,
|
|
@@ -14427,7 +14459,7 @@ const Em = (o) => {
|
|
|
14427
14459
|
n == null ? void 0 : n.boxSize
|
|
14428
14460
|
]);
|
|
14429
14461
|
const d = q(() => a != null && a.fillColor ? /* @__PURE__ */ T.createElement(
|
|
14430
|
-
|
|
14462
|
+
Gm,
|
|
14431
14463
|
{
|
|
14432
14464
|
floatBarRef: p,
|
|
14433
14465
|
open: l === 3,
|
|
@@ -14439,7 +14471,7 @@ const Em = (o) => {
|
|
|
14439
14471
|
}
|
|
14440
14472
|
}
|
|
14441
14473
|
) : null, [a == null ? void 0 : a.fillColor, l, p]), M = q(() => a != null && a.strokeColor ? /* @__PURE__ */ T.createElement(
|
|
14442
|
-
|
|
14474
|
+
Fm,
|
|
14443
14475
|
{
|
|
14444
14476
|
floatBarRef: p,
|
|
14445
14477
|
open: l === 2,
|
|
@@ -14451,7 +14483,7 @@ const Em = (o) => {
|
|
|
14451
14483
|
}
|
|
14452
14484
|
}
|
|
14453
14485
|
) : null, [a == null ? void 0 : a.strokeColor, l, p]), I = q(() => n != null && n.fontColor && (c != null && c.viewId) ? /* @__PURE__ */ T.createElement(
|
|
14454
|
-
|
|
14486
|
+
Qm,
|
|
14455
14487
|
{
|
|
14456
14488
|
floatBarRef: p,
|
|
14457
14489
|
open: l === 4,
|
|
@@ -14465,7 +14497,7 @@ const Em = (o) => {
|
|
|
14465
14497
|
workIds: e
|
|
14466
14498
|
}
|
|
14467
14499
|
) : null, [n, l, e, c, p]), y = q(() => n != null && n.fontBgColor && (c != null && c.viewId) ? /* @__PURE__ */ T.createElement(
|
|
14468
|
-
|
|
14500
|
+
Zm,
|
|
14469
14501
|
{
|
|
14470
14502
|
floatBarRef: p,
|
|
14471
14503
|
open: l === 5,
|
|
@@ -14479,7 +14511,7 @@ const Em = (o) => {
|
|
|
14479
14511
|
workIds: e
|
|
14480
14512
|
}
|
|
14481
14513
|
) : null, [n, l, e, c, p]), f = q(() => n && (c != null && c.viewId) ? /* @__PURE__ */ T.createElement(
|
|
14482
|
-
|
|
14514
|
+
Xm,
|
|
14483
14515
|
{
|
|
14484
14516
|
floatBarRef: p,
|
|
14485
14517
|
open: l === 6,
|
|
@@ -14494,7 +14526,7 @@ const Em = (o) => {
|
|
|
14494
14526
|
style: h
|
|
14495
14527
|
}
|
|
14496
14528
|
) : null, [n, l, e, c, h, p]), w = q(() => n && (c != null && c.viewId) ? /* @__PURE__ */ T.createElement(
|
|
14497
|
-
|
|
14529
|
+
tI,
|
|
14498
14530
|
{
|
|
14499
14531
|
open: l === 7,
|
|
14500
14532
|
setOpen: (k) => {
|
|
@@ -14508,7 +14540,7 @@ const Em = (o) => {
|
|
|
14508
14540
|
floatBarRef: p
|
|
14509
14541
|
}
|
|
14510
14542
|
) : null, [n, l, e, c, p]), v = q(() => t ? null : /* @__PURE__ */ T.createElement(
|
|
14511
|
-
|
|
14543
|
+
Bm,
|
|
14512
14544
|
{
|
|
14513
14545
|
open: l === 1,
|
|
14514
14546
|
setOpen: (k) => {
|
|
@@ -14520,14 +14552,14 @@ const Em = (o) => {
|
|
|
14520
14552
|
floatBarRef: p
|
|
14521
14553
|
}
|
|
14522
14554
|
), [t, l, p]), N = q(() => a != null && a.canLock && c ? /* @__PURE__ */ T.createElement(
|
|
14523
|
-
|
|
14555
|
+
nI,
|
|
14524
14556
|
{
|
|
14525
14557
|
workIds: e,
|
|
14526
14558
|
mananger: c,
|
|
14527
14559
|
islocked: a.isLocked
|
|
14528
14560
|
}
|
|
14529
14561
|
) : null, [a, c, e]), C = q(() => c && (c != null && c.viewId) && h && (a != null && a.shapeOpt) && (a != null && a.toolsTypes) ? /* @__PURE__ */ T.createElement(
|
|
14530
|
-
|
|
14562
|
+
hI,
|
|
14531
14563
|
{
|
|
14532
14564
|
open: l === 8,
|
|
14533
14565
|
setOpen: (k) => {
|
|
@@ -14542,9 +14574,9 @@ const Em = (o) => {
|
|
|
14542
14574
|
shapeOpt: a.shapeOpt
|
|
14543
14575
|
}
|
|
14544
14576
|
) : null, [a, c, l, h, e, p]);
|
|
14545
|
-
return /* @__PURE__ */ T.createElement("div", { className: "appliance-plugin-floatbtns", style: h, ref: p }, c && !r && /* @__PURE__ */ T.createElement(
|
|
14577
|
+
return /* @__PURE__ */ T.createElement("div", { className: "appliance-plugin-floatbtns", style: h, ref: p }, c && !r && /* @__PURE__ */ T.createElement(Um, { workIds: e, mananger: c }), v, N, !!(c != null && c.viewId) && !s && /* @__PURE__ */ T.createElement(Ym, { workIds: e, viewId: c.viewId }), C, f, w, I, y, M, d);
|
|
14546
14578
|
}
|
|
14547
|
-
),
|
|
14579
|
+
), dI = (o) => {
|
|
14548
14580
|
const { data: n, workId: e, updateOptInfo: t } = o, { opt: i, scale: r, translate: s, x: a, y: c } = n, l = Ce(null), { floatBarData: u } = ze(De), h = q(() => {
|
|
14549
14581
|
const {
|
|
14550
14582
|
fontSize: d,
|
|
@@ -14617,7 +14649,7 @@ const Em = (o) => {
|
|
|
14617
14649
|
},
|
|
14618
14650
|
/* @__PURE__ */ T.createElement("div", { className: "editor", ref: l, style: h }, g)
|
|
14619
14651
|
);
|
|
14620
|
-
},
|
|
14652
|
+
}, gI = (o) => {
|
|
14621
14653
|
const { mananger: n } = ze(De), e = q(() => {
|
|
14622
14654
|
var i;
|
|
14623
14655
|
const t = (r) => {
|
|
@@ -14639,7 +14671,7 @@ const Em = (o) => {
|
|
|
14639
14671
|
return o.editors.forEach((s, a) => {
|
|
14640
14672
|
if (o.selectIds && o.selectIds.includes(a)) {
|
|
14641
14673
|
const c = /* @__PURE__ */ T.createElement(
|
|
14642
|
-
|
|
14674
|
+
dI,
|
|
14643
14675
|
{
|
|
14644
14676
|
key: a,
|
|
14645
14677
|
workId: a,
|
|
@@ -14654,7 +14686,7 @@ const Em = (o) => {
|
|
|
14654
14686
|
return null;
|
|
14655
14687
|
}, [o.editors, o.selectIds, n]);
|
|
14656
14688
|
return /* @__PURE__ */ T.createElement(T.Fragment, null, e);
|
|
14657
|
-
},
|
|
14689
|
+
}, fI = (o) => {
|
|
14658
14690
|
const { position: n, textOpt: e, workIds: t, noLayer: i, noCopy: r, noDelete: s, style: a } = o, c = Ce(null);
|
|
14659
14691
|
return /* @__PURE__ */ T.createElement("div", { className: Ee.FloatBarBtn, ref: c, style: a }, /* @__PURE__ */ T.createElement(
|
|
14660
14692
|
bo,
|
|
@@ -14667,7 +14699,7 @@ const Em = (o) => {
|
|
|
14667
14699
|
noDelete: s
|
|
14668
14700
|
}
|
|
14669
14701
|
));
|
|
14670
|
-
},
|
|
14702
|
+
}, pI = (o) => {
|
|
14671
14703
|
const {
|
|
14672
14704
|
data: n,
|
|
14673
14705
|
workId: e,
|
|
@@ -14719,7 +14751,7 @@ const Em = (o) => {
|
|
|
14719
14751
|
function X(H) {
|
|
14720
14752
|
if (!x.current)
|
|
14721
14753
|
return;
|
|
14722
|
-
const re = H &&
|
|
14754
|
+
const re = H && em(H.nativeEvent) ? vo(H.nativeEvent) : void 0, pe = () => {
|
|
14723
14755
|
O.current && (cancelAnimationFrame(O.current), O.current = void 0), U.current && (window.clearTimeout(U.current), U.current = void 0);
|
|
14724
14756
|
}, ke = (ve) => {
|
|
14725
14757
|
const Oe = x.current, xe = window == null ? void 0 : window.getSelection();
|
|
@@ -14799,7 +14831,7 @@ const Em = (o) => {
|
|
|
14799
14831
|
}, [g.fontBgColor, g.text]), Ie = q(() => {
|
|
14800
14832
|
var H, ee;
|
|
14801
14833
|
if ($ === "hover") {
|
|
14802
|
-
if (p && t &&
|
|
14834
|
+
if (p && t && J(M) && J(I) && g.boxSize && J((H = g.boxSize) == null ? void 0 : H[0]) && J((ee = g.boxSize) == null ? void 0 : ee[1])) {
|
|
14803
14835
|
const re = { x: M, y: I }, pe = {
|
|
14804
14836
|
left: M,
|
|
14805
14837
|
top: I,
|
|
@@ -14807,7 +14839,7 @@ const Em = (o) => {
|
|
|
14807
14839
|
height: g.boxSize[1] * p
|
|
14808
14840
|
};
|
|
14809
14841
|
return /* @__PURE__ */ T.createElement(
|
|
14810
|
-
|
|
14842
|
+
fI,
|
|
14811
14843
|
{
|
|
14812
14844
|
position: re,
|
|
14813
14845
|
style: pe,
|
|
@@ -14883,9 +14915,9 @@ const Em = (o) => {
|
|
|
14883
14915
|
const Ye = Oe.length, Be = Xt(xe, 0);
|
|
14884
14916
|
if (!Be)
|
|
14885
14917
|
return !1;
|
|
14886
|
-
let Me = 0, me = 0,
|
|
14887
|
-
for (; me <
|
|
14888
|
-
const ye = Math.floor((me +
|
|
14918
|
+
let Me = 0, me = 0, K = Ye;
|
|
14919
|
+
for (; me < K; ) {
|
|
14920
|
+
const ye = Math.floor((me + K) / 2), Ae = Xt(xe, ye);
|
|
14889
14921
|
if (!Ae)
|
|
14890
14922
|
break;
|
|
14891
14923
|
const qe = document.createRange();
|
|
@@ -14907,7 +14939,7 @@ const Em = (o) => {
|
|
|
14907
14939
|
break;
|
|
14908
14940
|
}
|
|
14909
14941
|
}
|
|
14910
|
-
|
|
14942
|
+
K = ye;
|
|
14911
14943
|
} else {
|
|
14912
14944
|
const St = ye + 1;
|
|
14913
14945
|
if (St < Ye) {
|
|
@@ -14985,8 +15017,8 @@ const Em = (o) => {
|
|
|
14985
15017
|
if (ke.length > 1)
|
|
14986
15018
|
for (let Me = 1; Me < ke.length; Me++) {
|
|
14987
15019
|
let me = ke[Me];
|
|
14988
|
-
const
|
|
14989
|
-
Me === ke.length - 1 && (Be = me.length, me = me.concat(ee)),
|
|
15020
|
+
const K = document.createElement("div");
|
|
15021
|
+
Me === ke.length - 1 && (Be = me.length, me = me.concat(ee)), K.innerText = me, re.appendChild(K), Me === ke.length - 1 && (Ye = K.childNodes[0]);
|
|
14990
15022
|
}
|
|
14991
15023
|
if (xe.length) {
|
|
14992
15024
|
xe.reverse();
|
|
@@ -15111,7 +15143,7 @@ const Em = (o) => {
|
|
|
15111
15143
|
}
|
|
15112
15144
|
)
|
|
15113
15145
|
));
|
|
15114
|
-
},
|
|
15146
|
+
}, MI = (o) => {
|
|
15115
15147
|
const n = Ce(null), { mananger: e } = ze(De), t = Ce(), i = Dt(
|
|
15116
15148
|
(s) => {
|
|
15117
15149
|
var h, g;
|
|
@@ -15192,7 +15224,7 @@ const Em = (o) => {
|
|
|
15192
15224
|
return o.editors.forEach((g, p) => {
|
|
15193
15225
|
h.push(
|
|
15194
15226
|
/* @__PURE__ */ T.createElement(
|
|
15195
|
-
|
|
15227
|
+
pI,
|
|
15196
15228
|
{
|
|
15197
15229
|
key: p,
|
|
15198
15230
|
workId: p,
|
|
@@ -15220,7 +15252,7 @@ const Em = (o) => {
|
|
|
15220
15252
|
}, Xe = (o, n, e) => ({
|
|
15221
15253
|
...o,
|
|
15222
15254
|
...e == null ? void 0 : e[n]
|
|
15223
|
-
}),
|
|
15255
|
+
}), yI = () => {
|
|
15224
15256
|
const { floatBarData: o, overwriteSelectorStyles: n } = ze(De), e = {
|
|
15225
15257
|
borderColor: o == null ? void 0 : o.selectorColor,
|
|
15226
15258
|
...n.highlightBox
|
|
@@ -15309,11 +15341,11 @@ const Em = (o) => {
|
|
|
15309
15341
|
)
|
|
15310
15342
|
}
|
|
15311
15343
|
));
|
|
15312
|
-
},
|
|
15344
|
+
}, mI = () => {
|
|
15313
15345
|
const { floatBarData: o, mananger: n, overwriteSelectorStyles: e } = ze(De), [t, i] = ce(), [r, s] = ce();
|
|
15314
15346
|
fe(() => {
|
|
15315
15347
|
const l = [];
|
|
15316
|
-
if (n &&
|
|
15348
|
+
if (n && J(o == null ? void 0 : o.x) && J(o == null ? void 0 : o.y) && (o != null && o.points)) {
|
|
15317
15349
|
const u = n.viewId;
|
|
15318
15350
|
if (n.control.viewContainerManager.getView(u))
|
|
15319
15351
|
for (const g of o.points) {
|
|
@@ -15369,7 +15401,7 @@ const Em = (o) => {
|
|
|
15369
15401
|
a,
|
|
15370
15402
|
c
|
|
15371
15403
|
);
|
|
15372
|
-
},
|
|
15404
|
+
}, II = () => {
|
|
15373
15405
|
const { floatBarData: o, overwriteSelectorStyles: n } = ze(De), e = {
|
|
15374
15406
|
borderColor: o == null ? void 0 : o.selectorColor,
|
|
15375
15407
|
...n.highlightBox
|
|
@@ -15418,7 +15450,7 @@ const Em = (o) => {
|
|
|
15418
15450
|
)
|
|
15419
15451
|
}
|
|
15420
15452
|
));
|
|
15421
|
-
},
|
|
15453
|
+
}, wI = () => {
|
|
15422
15454
|
const { floatBarData: o, overwriteSelectorStyles: n } = ze(De);
|
|
15423
15455
|
return /* @__PURE__ */ T.createElement(
|
|
15424
15456
|
"div",
|
|
@@ -15439,7 +15471,7 @@ const Em = (o) => {
|
|
|
15439
15471
|
}
|
|
15440
15472
|
)
|
|
15441
15473
|
);
|
|
15442
|
-
},
|
|
15474
|
+
}, TI = (o) => {
|
|
15443
15475
|
const { className: n } = o, { floatBarData: e, angle: t, setAngle: i, setOperationType: r, mananger: s } = ze(De), [a, c] = ce(
|
|
15444
15476
|
j.Pending
|
|
15445
15477
|
), [l, u] = ce(), [h, g] = ce(!1), [p, d] = ce(new Te()), [M, I] = ce(new Te()), [y, f] = ce(!1), w = Ce(0), v = Ce(null), N = (D, b) => {
|
|
@@ -15606,7 +15638,7 @@ const Em = (o) => {
|
|
|
15606
15638
|
)
|
|
15607
15639
|
);
|
|
15608
15640
|
};
|
|
15609
|
-
function
|
|
15641
|
+
function SI(o) {
|
|
15610
15642
|
const n = o == null ? void 0 : o.viewId;
|
|
15611
15643
|
if (!n)
|
|
15612
15644
|
return;
|
|
@@ -15618,17 +15650,17 @@ function yI(o) {
|
|
|
15618
15650
|
t
|
|
15619
15651
|
), o.control.worker.abled());
|
|
15620
15652
|
}
|
|
15621
|
-
function
|
|
15653
|
+
function vI(o, n) {
|
|
15622
15654
|
const e = o.control.worker.now;
|
|
15623
15655
|
return o.control.textEditorManager.active(n, e), e;
|
|
15624
15656
|
}
|
|
15625
|
-
const
|
|
15626
|
-
function
|
|
15657
|
+
const CI = "data-text-work-id";
|
|
15658
|
+
function NI(o) {
|
|
15627
15659
|
var n, e;
|
|
15628
15660
|
if (o instanceof HTMLElement)
|
|
15629
|
-
return ((e = (n = o.closest(`[${
|
|
15661
|
+
return ((e = (n = o.closest(`[${CI}]`)) == null ? void 0 : n.dataset) == null ? void 0 : e.textWorkId) || void 0;
|
|
15630
15662
|
}
|
|
15631
|
-
const
|
|
15663
|
+
const kI = T.memo(
|
|
15632
15664
|
(o) => {
|
|
15633
15665
|
const { editors: n, canSelectorSwitch: e } = o, { floatBarData: t, setOperationType: i, mananger: r, isNoPointerEvents: s } = ze(De), [a, c] = ce(), [l, u] = ce(!1), h = Ce(0), g = Ce(), p = Ce(j.Pending), d = q(() => !!((t == null ? void 0 : t.scaleType) === Ge.none && (t != null && t.canLock)), [t]), M = q(() => t && t.w && t.h ? {
|
|
15634
15666
|
position: "absolute",
|
|
@@ -15668,15 +15700,15 @@ const TI = T.memo(
|
|
|
15668
15700
|
}
|
|
15669
15701
|
u(!1);
|
|
15670
15702
|
}, [t, r == null ? void 0 : r.control.worker.isBusy]), fe(() => {
|
|
15671
|
-
(p.current === j.Pending || p.current === j.Done) &&
|
|
15703
|
+
(p.current === j.Pending || p.current === j.Done) && J(t == null ? void 0 : t.x) && J(t == null ? void 0 : t.y) && c({ x: t == null ? void 0 : t.x, y: t == null ? void 0 : t.y });
|
|
15672
15704
|
}, [t == null ? void 0 : t.x, t == null ? void 0 : t.y]);
|
|
15673
15705
|
const f = (N) => {
|
|
15674
|
-
const C = N && "target" in N ? N.target : null, k = e ?
|
|
15706
|
+
const C = N && "target" in N ? N.target : null, k = e ? NI(C) : void 0;
|
|
15675
15707
|
if (r != null && r.control.worker.isBusy) {
|
|
15676
15708
|
u(!0);
|
|
15677
15709
|
return;
|
|
15678
15710
|
}
|
|
15679
|
-
h.current && (clearTimeout(h.current), h.current = 0), g.current = k,
|
|
15711
|
+
h.current && (clearTimeout(h.current), h.current = 0), g.current = k, J(t == null ? void 0 : t.x) && J(t == null ? void 0 : t.y) && (i(R.TranslateNode), p.current = j.Start, te.emitMethod(
|
|
15680
15712
|
ne.MainEngine,
|
|
15681
15713
|
R.TranslateNode,
|
|
15682
15714
|
{
|
|
@@ -15691,7 +15723,7 @@ const TI = T.memo(
|
|
|
15691
15723
|
r != null && r.control.worker.isBusy && u(!0);
|
|
15692
15724
|
const k = p.current, L = g.current;
|
|
15693
15725
|
if (!!L && k === j.Start && r && e) {
|
|
15694
|
-
|
|
15726
|
+
SI(r), vI(r, L), g.current = void 0, p.current = j.Pending, i(R.None);
|
|
15695
15727
|
const b = (x = r.control.viewContainerManager.getView(
|
|
15696
15728
|
r.viewId
|
|
15697
15729
|
)) == null ? void 0 : x.focusScenePath;
|
|
@@ -15736,7 +15768,7 @@ const TI = T.memo(
|
|
|
15736
15768
|
onStop: w
|
|
15737
15769
|
},
|
|
15738
15770
|
/* @__PURE__ */ T.createElement("div", { style: M }, /* @__PURE__ */ T.createElement(
|
|
15739
|
-
|
|
15771
|
+
xI,
|
|
15740
15772
|
{
|
|
15741
15773
|
editors: n,
|
|
15742
15774
|
selectIds: (t == null ? void 0 : t.selectIds) || []
|
|
@@ -15745,11 +15777,11 @@ const TI = T.memo(
|
|
|
15745
15777
|
);
|
|
15746
15778
|
},
|
|
15747
15779
|
(o, n) => !!de(o, n)
|
|
15748
|
-
),
|
|
15780
|
+
), xI = T.memo(
|
|
15749
15781
|
(o) => {
|
|
15750
15782
|
const { editors: n, selectIds: e } = o;
|
|
15751
15783
|
return n ? /* @__PURE__ */ T.createElement(
|
|
15752
|
-
|
|
15784
|
+
gI,
|
|
15753
15785
|
{
|
|
15754
15786
|
editors: n,
|
|
15755
15787
|
selectIds: e || []
|
|
@@ -15757,7 +15789,7 @@ const TI = T.memo(
|
|
|
15757
15789
|
) : null;
|
|
15758
15790
|
},
|
|
15759
15791
|
(o, n) => !(!de(o.editors, n.editors) || !de(o.selectIds, n.selectIds))
|
|
15760
|
-
),
|
|
15792
|
+
), bI = (o) => {
|
|
15761
15793
|
const { className: n } = o, [e, t] = ce({ x: 0, y: 0, h: 0, w: 0 }), [i, r] = ce(), [s, a] = ce(), [c, l] = ce(), { floatBarData: u, mananger: h, isNoPointerEvents: g, setOperationType: p } = ze(De), [d, M] = ce(), [I, y] = ce(!1), f = Ce(0);
|
|
15762
15794
|
fe(() => {
|
|
15763
15795
|
if (u && h) {
|
|
@@ -15999,7 +16031,7 @@ const TI = T.memo(
|
|
|
15999
16031
|
fe(() => (te.activeListener(I), () => {
|
|
16000
16032
|
te.unmountActiveListener(I);
|
|
16001
16033
|
}), []), fe(() => {
|
|
16002
|
-
|
|
16034
|
+
J(e.x) && J(e.y) && (u === j.Pending || u === j.Done) && l({ x: e.x, y: e.y });
|
|
16003
16035
|
}, [e, u]), fe(() => {
|
|
16004
16036
|
if (a && (a != null && a.isLocked) || s != null && s.control.worker.isBusy) {
|
|
16005
16037
|
p(!0);
|
|
@@ -16032,7 +16064,7 @@ const TI = T.memo(
|
|
|
16032
16064
|
p(!0);
|
|
16033
16065
|
return;
|
|
16034
16066
|
}
|
|
16035
|
-
|
|
16067
|
+
J(e.x) && J(e.y) && (r(R.SetPoint), h(j.Start), te.emitMethod(
|
|
16036
16068
|
ne.MainEngine,
|
|
16037
16069
|
R.SetPoint,
|
|
16038
16070
|
{
|
|
@@ -16089,7 +16121,7 @@ const TI = T.memo(
|
|
|
16089
16121
|
}
|
|
16090
16122
|
)
|
|
16091
16123
|
);
|
|
16092
|
-
},
|
|
16124
|
+
}, jI = (o) => {
|
|
16093
16125
|
const { className: n } = o, { floatBarData: e, mananger: t } = ze(De), [i, r] = ce(), [s, a] = ce(), [c, l] = ce(
|
|
16094
16126
|
/* @__PURE__ */ new Map()
|
|
16095
16127
|
);
|
|
@@ -16127,9 +16159,9 @@ const TI = T.memo(
|
|
|
16127
16159
|
}
|
|
16128
16160
|
) : null, [s, e == null ? void 0 : e.selectIds, c]);
|
|
16129
16161
|
return /* @__PURE__ */ T.createElement("div", { className: `${n}` }, u, h);
|
|
16130
|
-
},
|
|
16162
|
+
}, DI = T.forwardRef(
|
|
16131
16163
|
(o, n) => {
|
|
16132
|
-
const { floatBarData: e, operationType: t } = ze(De), i = q(() => (e == null ? void 0 : e.scaleType) !== Ge.all || t === R.RotateNode ? null : /* @__PURE__ */ T.createElement(
|
|
16164
|
+
const { floatBarData: e, operationType: t } = ze(De), i = q(() => (e == null ? void 0 : e.scaleType) !== Ge.all || t === R.RotateNode ? null : /* @__PURE__ */ T.createElement(yI, null), [e, t]), r = q(() => (e == null ? void 0 : e.scaleType) !== Ge.both || t === R.RotateNode ? null : /* @__PURE__ */ T.createElement(mI, null), [e, t]), s = q(() => (e == null ? void 0 : e.scaleType) !== Ge.proportional || t === R.RotateNode ? null : /* @__PURE__ */ T.createElement(II, null), [e, t]), a = q(() => (e == null ? void 0 : e.scaleType) === Ge.none && (e != null && e.canLock) ? /* @__PURE__ */ T.createElement(wI, null) : null, [e]);
|
|
16133
16165
|
return /* @__PURE__ */ T.createElement(
|
|
16134
16166
|
"div",
|
|
16135
16167
|
{
|
|
@@ -16148,10 +16180,10 @@ const TI = T.memo(
|
|
|
16148
16180
|
o.children
|
|
16149
16181
|
);
|
|
16150
16182
|
}
|
|
16151
|
-
),
|
|
16183
|
+
), AI = T.memo(
|
|
16152
16184
|
(o) => {
|
|
16153
16185
|
const { isHide: n, operationType: e, floatBarData: t } = o;
|
|
16154
|
-
return n && e === R.None &&
|
|
16186
|
+
return n && e === R.None && J(t == null ? void 0 : t.x) && J(t == null ? void 0 : t.y) && J(t == null ? void 0 : t.w) && J(t == null ? void 0 : t.h) ? /* @__PURE__ */ T.createElement(
|
|
16155
16187
|
"div",
|
|
16156
16188
|
{
|
|
16157
16189
|
className: Ee.FloatBarBtn,
|
|
@@ -16173,7 +16205,7 @@ const TI = T.memo(
|
|
|
16173
16205
|
) : null;
|
|
16174
16206
|
},
|
|
16175
16207
|
(o, n) => !!de(o, n)
|
|
16176
|
-
),
|
|
16208
|
+
), zI = T.forwardRef(
|
|
16177
16209
|
(o, n) => {
|
|
16178
16210
|
const { floatBarData: e, operationType: t, mananger: i } = ze(De), { editors: r, isHide: s, canSelectorSwitch: a } = o, c = Ce(null);
|
|
16179
16211
|
fe(() => {
|
|
@@ -16193,13 +16225,13 @@ const TI = T.memo(
|
|
|
16193
16225
|
}, [i]);
|
|
16194
16226
|
const l = q(() => {
|
|
16195
16227
|
var g;
|
|
16196
|
-
return e != null && e.canRotate && ((g = e == null ? void 0 : e.selectIds) == null ? void 0 : g.length) === 1 && (t === R.None || t === R.RotateNode) ? /* @__PURE__ */ T.createElement(
|
|
16197
|
-
}, [e, t]), u = q(() => ((e == null ? void 0 : e.scaleType) === Ge.all || (e == null ? void 0 : e.scaleType) === Ge.proportional) && (t === R.None || t === R.ScaleNode) &&
|
|
16228
|
+
return e != null && e.canRotate && ((g = e == null ? void 0 : e.selectIds) == null ? void 0 : g.length) === 1 && (t === R.None || t === R.RotateNode) ? /* @__PURE__ */ T.createElement(TI, { className: Ee.RotateBtn }) : null;
|
|
16229
|
+
}, [e, t]), u = q(() => ((e == null ? void 0 : e.scaleType) === Ge.all || (e == null ? void 0 : e.scaleType) === Ge.proportional) && (t === R.None || t === R.ScaleNode) && J(e == null ? void 0 : e.x) && J(e == null ? void 0 : e.y) ? /* @__PURE__ */ T.createElement(bI, { className: Ee.ResizeBtn }) : null, [
|
|
16198
16230
|
e == null ? void 0 : e.scaleType,
|
|
16199
16231
|
t,
|
|
16200
16232
|
e == null ? void 0 : e.x,
|
|
16201
16233
|
e == null ? void 0 : e.y
|
|
16202
|
-
]), h = q(() => (e == null ? void 0 : e.scaleType) === Ge.both && (t === R.None || t === R.SetPoint) ? /* @__PURE__ */ T.createElement(
|
|
16234
|
+
]), h = q(() => (e == null ? void 0 : e.scaleType) === Ge.both && (t === R.None || t === R.SetPoint) ? /* @__PURE__ */ T.createElement(jI, { className: Ee.ResizeTowBox }) : null, [e == null ? void 0 : e.scaleType, t]);
|
|
16203
16235
|
return /* @__PURE__ */ T.createElement(
|
|
16204
16236
|
"div",
|
|
16205
16237
|
{
|
|
@@ -16207,13 +16239,13 @@ const TI = T.memo(
|
|
|
16207
16239
|
className: Ee.FloatBar,
|
|
16208
16240
|
onPointerOver: (g) => (hn(g), i == null || i.control.worker.blurCursor(i.viewId), !1)
|
|
16209
16241
|
},
|
|
16210
|
-
/* @__PURE__ */ T.createElement(
|
|
16211
|
-
/* @__PURE__ */ T.createElement(
|
|
16242
|
+
/* @__PURE__ */ T.createElement(DI, { ref: n }),
|
|
16243
|
+
/* @__PURE__ */ T.createElement(kI, { editors: r, canSelectorSwitch: a }),
|
|
16212
16244
|
l,
|
|
16213
16245
|
u,
|
|
16214
16246
|
h,
|
|
16215
16247
|
/* @__PURE__ */ T.createElement(
|
|
16216
|
-
|
|
16248
|
+
AI,
|
|
16217
16249
|
{
|
|
16218
16250
|
isHide: s,
|
|
16219
16251
|
operationType: t,
|
|
@@ -16222,11 +16254,11 @@ const TI = T.memo(
|
|
|
16222
16254
|
)
|
|
16223
16255
|
);
|
|
16224
16256
|
}
|
|
16225
|
-
),
|
|
16226
|
-
|
|
16257
|
+
), EI = T.memo(
|
|
16258
|
+
zI,
|
|
16227
16259
|
(o, n) => !!de(o, n)
|
|
16228
16260
|
);
|
|
16229
|
-
class
|
|
16261
|
+
class LI extends T.Component {
|
|
16230
16262
|
constructor(e) {
|
|
16231
16263
|
super(e);
|
|
16232
16264
|
m(this, "renderAvatar", (e) => {
|
|
@@ -16282,7 +16314,7 @@ class jI extends T.Component {
|
|
|
16282
16314
|
);
|
|
16283
16315
|
});
|
|
16284
16316
|
m(this, "renderCursor", (e) => {
|
|
16285
|
-
const t =
|
|
16317
|
+
const t = _m.get(e);
|
|
16286
16318
|
return t && this.props.isEnableCursor ? /* @__PURE__ */ T.createElement(
|
|
16287
16319
|
"img",
|
|
16288
16320
|
{
|
|
@@ -16437,7 +16469,7 @@ class jI extends T.Component {
|
|
|
16437
16469
|
}
|
|
16438
16470
|
}
|
|
16439
16471
|
}
|
|
16440
|
-
const
|
|
16472
|
+
const PI = (o) => {
|
|
16441
16473
|
var s;
|
|
16442
16474
|
const { className: n, info: e, isEnableCursor: t } = o, { roomMember: i, ...r } = e || {};
|
|
16443
16475
|
return /* @__PURE__ */ T.createElement(
|
|
@@ -16450,14 +16482,14 @@ const DI = (o) => {
|
|
|
16450
16482
|
} : { display: "none" }
|
|
16451
16483
|
},
|
|
16452
16484
|
i && /* @__PURE__ */ T.createElement(
|
|
16453
|
-
|
|
16485
|
+
LI,
|
|
16454
16486
|
{
|
|
16455
16487
|
roomMember: i,
|
|
16456
16488
|
isEnableCursor: t
|
|
16457
16489
|
}
|
|
16458
16490
|
)
|
|
16459
16491
|
);
|
|
16460
|
-
},
|
|
16492
|
+
}, OI = (o) => {
|
|
16461
16493
|
const { className: n, manager: e } = o, [t, i] = ce();
|
|
16462
16494
|
fe(() => (e.internalMsgEmitter.on(
|
|
16463
16495
|
[ne.Cursor, e.viewId],
|
|
@@ -16476,7 +16508,7 @@ const DI = (o) => {
|
|
|
16476
16508
|
const a = t.map((c) => {
|
|
16477
16509
|
var l;
|
|
16478
16510
|
return c.roomMember ? /* @__PURE__ */ T.createElement(
|
|
16479
|
-
|
|
16511
|
+
PI,
|
|
16480
16512
|
{
|
|
16481
16513
|
key: (l = c.roomMember) == null ? void 0 : l.memberId,
|
|
16482
16514
|
className: n,
|
|
@@ -16489,7 +16521,7 @@ const DI = (o) => {
|
|
|
16489
16521
|
}
|
|
16490
16522
|
return null;
|
|
16491
16523
|
}, [t]);
|
|
16492
|
-
},
|
|
16524
|
+
}, RI = (o) => {
|
|
16493
16525
|
const { viewId: n, miniMapCanvas: e, highlightColor: t, miniMapManager: i, contianer: r } = o, [s, a] = ce();
|
|
16494
16526
|
fe(() => (c(), i.listener.addListener(
|
|
16495
16527
|
[n, "viewCameraUpate"],
|
|
@@ -16582,7 +16614,7 @@ const DI = (o) => {
|
|
|
16582
16614
|
}
|
|
16583
16615
|
)
|
|
16584
16616
|
);
|
|
16585
|
-
},
|
|
16617
|
+
}, UI = (o) => {
|
|
16586
16618
|
const { miniMapManager: n, active: e, className: t } = o, i = q(() => {
|
|
16587
16619
|
const r = n.maps;
|
|
16588
16620
|
if (e) {
|
|
@@ -16593,7 +16625,7 @@ const DI = (o) => {
|
|
|
16593
16625
|
const u = n.highlightColor;
|
|
16594
16626
|
return Po(
|
|
16595
16627
|
/* @__PURE__ */ T.createElement(
|
|
16596
|
-
|
|
16628
|
+
RI,
|
|
16597
16629
|
{
|
|
16598
16630
|
viewId: e,
|
|
16599
16631
|
...l,
|
|
@@ -16789,7 +16821,7 @@ class Pi extends T.Component {
|
|
|
16789
16821
|
}
|
|
16790
16822
|
},
|
|
16791
16823
|
this.state.showFloatBar && /* @__PURE__ */ T.createElement(
|
|
16792
|
-
|
|
16824
|
+
EI,
|
|
16793
16825
|
{
|
|
16794
16826
|
ref: this.props.refs.floatBarRef,
|
|
16795
16827
|
editors: this.state.editors,
|
|
@@ -16798,7 +16830,7 @@ class Pi extends T.Component {
|
|
|
16798
16830
|
}
|
|
16799
16831
|
) || null,
|
|
16800
16832
|
((c = this.state.editors) == null ? void 0 : c.size) && /* @__PURE__ */ T.createElement(
|
|
16801
|
-
|
|
16833
|
+
MI,
|
|
16802
16834
|
{
|
|
16803
16835
|
className: Ee.TextEditorContainer,
|
|
16804
16836
|
showFloatBtns: this.showTextFloatBar && e && this.state.showFloatBarBtn || !1,
|
|
@@ -16814,13 +16846,13 @@ class Pi extends T.Component {
|
|
|
16814
16846
|
ref: this.props.refs.customFloatbarContainerRef
|
|
16815
16847
|
}
|
|
16816
16848
|
), /* @__PURE__ */ T.createElement(
|
|
16817
|
-
|
|
16849
|
+
OI,
|
|
16818
16850
|
{
|
|
16819
16851
|
className: Ee.CursorBox,
|
|
16820
16852
|
manager: this.props.mananger
|
|
16821
16853
|
}
|
|
16822
16854
|
), !this.props.mananger.control.isUseSimple && /* @__PURE__ */ T.createElement(
|
|
16823
|
-
|
|
16855
|
+
UI,
|
|
16824
16856
|
{
|
|
16825
16857
|
className: Ee.MiniMapBox,
|
|
16826
16858
|
active: this.state.activeMiniMapViewId,
|
|
@@ -16829,7 +16861,7 @@ class Pi extends T.Component {
|
|
|
16829
16861
|
));
|
|
16830
16862
|
}
|
|
16831
16863
|
}
|
|
16832
|
-
class
|
|
16864
|
+
class YI extends ko {
|
|
16833
16865
|
constructor(e, t) {
|
|
16834
16866
|
super(e, t);
|
|
16835
16867
|
m(this, "width", 1e3);
|
|
@@ -16903,7 +16935,7 @@ class LI extends ko {
|
|
|
16903
16935
|
), this.control.room && this.bindDisplayerEvent(this.eventTragetElement), this;
|
|
16904
16936
|
}
|
|
16905
16937
|
}
|
|
16906
|
-
class
|
|
16938
|
+
class BI extends Im {
|
|
16907
16939
|
constructor(e, t, i) {
|
|
16908
16940
|
super(e, t, i);
|
|
16909
16941
|
m(this, "dpr", Bt());
|
|
@@ -17020,7 +17052,7 @@ class ft extends sn {
|
|
|
17020
17052
|
const t = e.divElement;
|
|
17021
17053
|
if (!t || !e.focusScenePath || !(e.focusScenePath || e.scenePath))
|
|
17022
17054
|
return;
|
|
17023
|
-
const r = new
|
|
17055
|
+
const r = new YI(
|
|
17024
17056
|
this.control,
|
|
17025
17057
|
we.InternalMsgEmitter
|
|
17026
17058
|
), s = e.size.width || r.width, a = e.size.height || r.height;
|
|
@@ -17062,7 +17094,7 @@ class ft extends sn {
|
|
|
17062
17094
|
m(this, "updateMainViewCamera", () => {
|
|
17063
17095
|
if (this.mainView && this.mainView.viewData) {
|
|
17064
17096
|
const e = this.mainView.viewData.camera;
|
|
17065
|
-
if (!
|
|
17097
|
+
if (!J(e.scale) || e.scale === 1 / 0)
|
|
17066
17098
|
return;
|
|
17067
17099
|
const t = this.mainView.cameraOpt;
|
|
17068
17100
|
if (t) {
|
|
@@ -17113,7 +17145,7 @@ class ft extends sn {
|
|
|
17113
17145
|
}, 0);
|
|
17114
17146
|
});
|
|
17115
17147
|
}
|
|
17116
|
-
const a = new
|
|
17148
|
+
const a = new BI(
|
|
17117
17149
|
t,
|
|
17118
17150
|
this.control,
|
|
17119
17151
|
we.InternalMsgEmitter
|
|
@@ -18230,27 +18262,27 @@ m(z, "kind", "appliance-multi-plugin"), m(z, "currentManager"), m(z, "logger", {
|
|
|
18230
18262
|
}
|
|
18231
18263
|
});
|
|
18232
18264
|
let ai = z;
|
|
18233
|
-
var
|
|
18234
|
-
return
|
|
18235
|
-
},
|
|
18236
|
-
function
|
|
18237
|
-
for (var n = o.length; n-- &&
|
|
18265
|
+
var WI = rt, VI = function() {
|
|
18266
|
+
return WI.Date.now();
|
|
18267
|
+
}, $I = VI, FI = /\s/;
|
|
18268
|
+
function GI(o) {
|
|
18269
|
+
for (var n = o.length; n-- && FI.test(o.charAt(n)); )
|
|
18238
18270
|
;
|
|
18239
18271
|
return n;
|
|
18240
18272
|
}
|
|
18241
|
-
var
|
|
18242
|
-
function FI(o) {
|
|
18243
|
-
return o && o.slice(0, VI(o) + 1).replace($I, "");
|
|
18244
|
-
}
|
|
18245
|
-
var GI = FI, QI = ln, ZI = zt, HI = "[object Symbol]";
|
|
18273
|
+
var QI = GI, ZI = QI, HI = /^\s+/;
|
|
18246
18274
|
function qI(o) {
|
|
18247
|
-
return
|
|
18275
|
+
return o && o.slice(0, ZI(o) + 1).replace(HI, "");
|
|
18276
|
+
}
|
|
18277
|
+
var KI = qI, JI = ln, XI = zt, _I = "[object Symbol]";
|
|
18278
|
+
function ew(o) {
|
|
18279
|
+
return typeof o == "symbol" || XI(o) && JI(o) == _I;
|
|
18248
18280
|
}
|
|
18249
|
-
var
|
|
18250
|
-
function
|
|
18281
|
+
var tw = ew, nw = KI, Ar = yt, iw = tw, zr = NaN, rw = /^[-+]0x[0-9a-f]+$/i, ow = /^0b[01]+$/i, sw = /^0o[0-7]+$/i, aw = parseInt;
|
|
18282
|
+
function cw(o) {
|
|
18251
18283
|
if (typeof o == "number")
|
|
18252
18284
|
return o;
|
|
18253
|
-
if (
|
|
18285
|
+
if (iw(o))
|
|
18254
18286
|
return zr;
|
|
18255
18287
|
if (Ar(o)) {
|
|
18256
18288
|
var n = typeof o.valueOf == "function" ? o.valueOf() : o;
|
|
@@ -18258,16 +18290,16 @@ function iw(o) {
|
|
|
18258
18290
|
}
|
|
18259
18291
|
if (typeof o != "string")
|
|
18260
18292
|
return o === 0 ? o : +o;
|
|
18261
|
-
o =
|
|
18262
|
-
var e =
|
|
18263
|
-
return e ||
|
|
18293
|
+
o = nw(o);
|
|
18294
|
+
var e = ow.test(o);
|
|
18295
|
+
return e || sw.test(o) ? aw(o.slice(2), e ? 2 : 8) : rw.test(o) ? zr : +o;
|
|
18264
18296
|
}
|
|
18265
|
-
var
|
|
18266
|
-
function
|
|
18297
|
+
var lw = cw, uw = yt, Qn = $I, Er = lw, hw = "Expected a function", dw = Math.max, gw = Math.min;
|
|
18298
|
+
function fw(o, n, e) {
|
|
18267
18299
|
var t, i, r, s, a, c, l = 0, u = !1, h = !1, g = !0;
|
|
18268
18300
|
if (typeof o != "function")
|
|
18269
|
-
throw new TypeError(
|
|
18270
|
-
n = Er(n) || 0,
|
|
18301
|
+
throw new TypeError(hw);
|
|
18302
|
+
n = Er(n) || 0, uw(e) && (u = !!e.leading, h = "maxWait" in e, r = h ? dw(Er(e.maxWait) || 0, n) : r, g = "trailing" in e ? !!e.trailing : g);
|
|
18271
18303
|
function p(C) {
|
|
18272
18304
|
var k = t, L = i;
|
|
18273
18305
|
return t = i = void 0, l = C, s = o.apply(L, k), s;
|
|
@@ -18277,7 +18309,7 @@ function lw(o, n, e) {
|
|
|
18277
18309
|
}
|
|
18278
18310
|
function M(C) {
|
|
18279
18311
|
var k = C - c, L = C - l, A = n - k;
|
|
18280
|
-
return h ?
|
|
18312
|
+
return h ? gw(A, r - L) : A;
|
|
18281
18313
|
}
|
|
18282
18314
|
function I(C) {
|
|
18283
18315
|
var k = C - c, L = C - l;
|
|
@@ -18310,20 +18342,20 @@ function lw(o, n, e) {
|
|
|
18310
18342
|
}
|
|
18311
18343
|
return N.cancel = w, N.flush = v, N;
|
|
18312
18344
|
}
|
|
18313
|
-
var
|
|
18314
|
-
function
|
|
18345
|
+
var pw = fw, Mw = pw, yw = yt, mw = "Expected a function";
|
|
18346
|
+
function Iw(o, n, e) {
|
|
18315
18347
|
var t = !0, i = !0;
|
|
18316
18348
|
if (typeof o != "function")
|
|
18317
|
-
throw new TypeError(
|
|
18318
|
-
return
|
|
18349
|
+
throw new TypeError(mw);
|
|
18350
|
+
return yw(e) && (t = "leading" in e ? !!e.leading : t, i = "trailing" in e ? !!e.trailing : i), Mw(o, n, {
|
|
18319
18351
|
leading: t,
|
|
18320
18352
|
maxWait: n,
|
|
18321
18353
|
trailing: i
|
|
18322
18354
|
});
|
|
18323
18355
|
}
|
|
18324
|
-
var
|
|
18325
|
-
const
|
|
18326
|
-
class
|
|
18356
|
+
var ww = Iw;
|
|
18357
|
+
const Tw = /* @__PURE__ */ pi(ww);
|
|
18358
|
+
class Sw extends ko {
|
|
18327
18359
|
constructor(e, t) {
|
|
18328
18360
|
super(e, t);
|
|
18329
18361
|
m(this, "width", 1e3);
|
|
@@ -18395,7 +18427,7 @@ class bt extends sn {
|
|
|
18395
18427
|
bindMainView() {
|
|
18396
18428
|
if (!this.control.divMainView)
|
|
18397
18429
|
return;
|
|
18398
|
-
const e = new
|
|
18430
|
+
const e = new Sw(
|
|
18399
18431
|
this.control,
|
|
18400
18432
|
we.InternalMsgEmitter
|
|
18401
18433
|
), { width: t, height: i, dpr: r } = e, s = {
|
|
@@ -18482,7 +18514,7 @@ class _e extends we {
|
|
|
18482
18514
|
super(e);
|
|
18483
18515
|
m(this, "viewContainerManager");
|
|
18484
18516
|
m(this, "divMainView");
|
|
18485
|
-
m(this, "onCameraChange",
|
|
18517
|
+
m(this, "onCameraChange", Tw(
|
|
18486
18518
|
(e) => {
|
|
18487
18519
|
var i;
|
|
18488
18520
|
const t = this.viewContainerManager.mainView;
|
|
@@ -19362,7 +19394,7 @@ const Ut = class Ut extends T.Component {
|
|
|
19362
19394
|
};
|
|
19363
19395
|
m(Ut, "emiter");
|
|
19364
19396
|
let li = Ut;
|
|
19365
|
-
const
|
|
19397
|
+
const rT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19366
19398
|
__proto__: null,
|
|
19367
19399
|
ActiveContainerType: Lr,
|
|
19368
19400
|
ApplianceMultiPlugin: ai,
|
|
@@ -19393,66 +19425,67 @@ const _w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19393
19425
|
Task_Time_Interval: gi
|
|
19394
19426
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19395
19427
|
export {
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19428
|
+
st as $,
|
|
19429
|
+
Bw as A,
|
|
19430
|
+
Sh as B,
|
|
19431
|
+
Ec as C,
|
|
19400
19432
|
Ne as D,
|
|
19401
19433
|
R as E,
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
|
|
19405
|
-
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19434
|
+
Ni as F,
|
|
19435
|
+
Zr as G,
|
|
19436
|
+
Ql as H,
|
|
19437
|
+
Df as I,
|
|
19438
|
+
Uw as J,
|
|
19439
|
+
jn as K,
|
|
19440
|
+
Q as L,
|
|
19441
|
+
pn as M,
|
|
19442
|
+
Jt as N,
|
|
19443
|
+
et as O,
|
|
19412
19444
|
Te as P,
|
|
19413
|
-
|
|
19414
|
-
|
|
19445
|
+
qw as Q,
|
|
19446
|
+
xi as R,
|
|
19415
19447
|
df as S,
|
|
19416
19448
|
pr as T,
|
|
19417
|
-
|
|
19449
|
+
iT as U,
|
|
19418
19450
|
sn as V,
|
|
19419
|
-
|
|
19420
|
-
|
|
19421
|
-
|
|
19422
|
-
|
|
19451
|
+
Fw as W,
|
|
19452
|
+
Kw as X,
|
|
19453
|
+
Rw as Y,
|
|
19454
|
+
se as Z,
|
|
19423
19455
|
ln as _,
|
|
19424
19456
|
B as a,
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19457
|
+
Ww as a0,
|
|
19458
|
+
Jw as a1,
|
|
19459
|
+
Xw as a2,
|
|
19460
|
+
_w as a3,
|
|
19461
|
+
zM as a4,
|
|
19462
|
+
Ro as a5,
|
|
19463
|
+
at as a6,
|
|
19464
|
+
gi as a7,
|
|
19465
|
+
rT as a8,
|
|
19433
19466
|
_ as b,
|
|
19434
19467
|
S as c,
|
|
19435
19468
|
on as d,
|
|
19436
|
-
|
|
19437
|
-
|
|
19438
|
-
|
|
19439
|
-
|
|
19469
|
+
pi as e,
|
|
19470
|
+
tT as f,
|
|
19471
|
+
Fy as g,
|
|
19472
|
+
Yw as h,
|
|
19440
19473
|
zt as i,
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
|
|
19455
|
-
|
|
19456
|
-
|
|
19457
|
-
|
|
19474
|
+
nT as j,
|
|
19475
|
+
nn as k,
|
|
19476
|
+
An as l,
|
|
19477
|
+
W as m,
|
|
19478
|
+
Hw as n,
|
|
19479
|
+
Vw as o,
|
|
19480
|
+
eT as p,
|
|
19481
|
+
$w as q,
|
|
19482
|
+
Gw as r,
|
|
19483
|
+
Zw as s,
|
|
19484
|
+
Qw as t,
|
|
19485
|
+
rn as u,
|
|
19486
|
+
Ge as v,
|
|
19487
|
+
j as w,
|
|
19488
|
+
he as x,
|
|
19489
|
+
Yt as y,
|
|
19490
|
+
po as z
|
|
19458
19491
|
};
|