@linkurious/ogma-linkurious-parser 4.3.3 → 4.3.5
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/src/index.cjs +4 -0
- package/dist/src/index.cjs.map +1 -0
- package/dist/{index.d.ts → src/index.d.ts} +1 -1
- package/dist/{index.mjs → src/index.mjs} +325 -305
- package/dist/src/index.mjs.map +1 -0
- package/dist/{ogma → src/ogma}/features/styles.d.ts +17 -3
- package/dist/{tools → src/tools}/colorPalette.d.ts +0 -1
- package/package.json +21 -38
- package/dist/index.cjs +0 -4
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
- /package/dist/{captions → src/captions}/captions.d.ts +0 -0
- /package/dist/{filters → src/filters}/filters.d.ts +0 -0
- /package/dist/{ogma → src/ogma}/features/OgmaStore.d.ts +0 -0
- /package/dist/{ogma → src/ogma}/features/captions.d.ts +0 -0
- /package/dist/{ogma → src/ogma}/features/nodeGrouping.d.ts +0 -0
- /package/dist/{ogma → src/ogma}/features/reactive.d.ts +0 -0
- /package/dist/{ogma → src/ogma}/features/selectors.d.ts +0 -0
- /package/dist/{ogma → src/ogma}/features/transformations.d.ts +0 -0
- /package/dist/{ogma → src/ogma}/index.d.ts +0 -0
- /package/dist/{styles → src/styles}/edgeAttributes.d.ts +0 -0
- /package/dist/{styles → src/styles}/itemAttributes.d.ts +0 -0
- /package/dist/{styles → src/styles}/nodeAttributes.d.ts +0 -0
- /package/dist/{styles → src/styles}/styleRule.d.ts +0 -0
- /package/dist/{styles → src/styles}/styleRules.d.ts +0 -0
- /package/dist/{tools → src/tools}/ogmaTool.d.ts +0 -0
- /package/dist/{tools → src/tools}/tools.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CurrencyFormat as M, PropertyTypeName as br, AutoRangeScale as Ut, OgmaEdgeShape as yr, SelectorType as S, ForceLayoutMode as vr, EntityType as
|
|
1
|
+
import { CurrencyFormat as M, PropertyTypeName as br, AutoRangeScale as Ut, OgmaEdgeShape as yr, SelectorType as S, ForceLayoutMode as vr, EntityType as P, NodeGroupingType as q } from "@linkurious/rest-client";
|
|
2
2
|
import _r from "@linkurious/ogma";
|
|
3
3
|
import { BehaviorSubject as mr } from "rxjs";
|
|
4
4
|
var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
|
-
function
|
|
5
|
+
function Ie(r) {
|
|
6
6
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
7
7
|
}
|
|
8
8
|
function Cr() {
|
|
@@ -32,16 +32,16 @@ function Or(r) {
|
|
|
32
32
|
var e = this.__data__, t = wr(e, r);
|
|
33
33
|
return t < 0 ? void 0 : e[t][1];
|
|
34
34
|
}
|
|
35
|
-
var Lr = Or,
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
var Lr = Or, Pr = de;
|
|
36
|
+
function Ir(r) {
|
|
37
|
+
return Pr(this.__data__, r) > -1;
|
|
38
38
|
}
|
|
39
|
-
var Rr =
|
|
40
|
-
function
|
|
39
|
+
var Rr = Ir, Mr = de;
|
|
40
|
+
function Br(r, e) {
|
|
41
41
|
var t = this.__data__, i = Mr(t, r);
|
|
42
42
|
return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var Gr = Br, zr = Sr, jr = Dr, Ur = Lr, Vr = Rr, kr = Gr;
|
|
45
45
|
function U(r) {
|
|
46
46
|
var e = -1, t = r == null ? 0 : r.length;
|
|
47
47
|
for (this.clear(); ++e < t; ) {
|
|
@@ -110,7 +110,7 @@ function Di(r) {
|
|
|
110
110
|
return !!Qe && Qe in r;
|
|
111
111
|
}
|
|
112
112
|
var wi = Di, Oi = Function.prototype, Li = Oi.toString;
|
|
113
|
-
function
|
|
113
|
+
function Pi(r) {
|
|
114
114
|
if (r != null) {
|
|
115
115
|
try {
|
|
116
116
|
return Li.call(r);
|
|
@@ -123,14 +123,14 @@ function Ii(r) {
|
|
|
123
123
|
}
|
|
124
124
|
return "";
|
|
125
125
|
}
|
|
126
|
-
var Kt =
|
|
127
|
-
"^" + Vi.call(ki).replace(
|
|
126
|
+
var Kt = Pi, Ii = Ht, Ri = wi, Mi = ge, Bi = Kt, Gi = /[\\^$.*+?()[\]{}|]/g, zi = /^\[object .+?Constructor\]$/, ji = Function.prototype, Ui = Object.prototype, Vi = ji.toString, ki = Ui.hasOwnProperty, Hi = RegExp(
|
|
127
|
+
"^" + Vi.call(ki).replace(Gi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
128
128
|
);
|
|
129
129
|
function Ki(r) {
|
|
130
130
|
if (!Mi(r) || Ri(r))
|
|
131
131
|
return !1;
|
|
132
|
-
var e =
|
|
133
|
-
return e.test(
|
|
132
|
+
var e = Ii(r) ? Hi : zi;
|
|
133
|
+
return e.test(Bi(r));
|
|
134
134
|
}
|
|
135
135
|
var qi = Ki;
|
|
136
136
|
function Yi(r, e) {
|
|
@@ -191,21 +191,21 @@ function On() {
|
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
var Ln = On;
|
|
194
|
-
function
|
|
194
|
+
function Pn(r) {
|
|
195
195
|
var e = typeof r;
|
|
196
196
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
|
|
197
197
|
}
|
|
198
|
-
var
|
|
198
|
+
var In = Pn, Rn = In;
|
|
199
199
|
function Mn(r, e) {
|
|
200
200
|
var t = r.__data__;
|
|
201
201
|
return Rn(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
202
202
|
}
|
|
203
|
-
var fe = Mn,
|
|
204
|
-
function
|
|
205
|
-
var e =
|
|
203
|
+
var fe = Mn, Bn = fe;
|
|
204
|
+
function Gn(r) {
|
|
205
|
+
var e = Bn(this, r).delete(r);
|
|
206
206
|
return this.size -= e ? 1 : 0, e;
|
|
207
207
|
}
|
|
208
|
-
var zn =
|
|
208
|
+
var zn = Gn, jn = fe;
|
|
209
209
|
function Un(r) {
|
|
210
210
|
return jn(this, r).get(r);
|
|
211
211
|
}
|
|
@@ -231,7 +231,7 @@ k.prototype.delete = Zn;
|
|
|
231
231
|
k.prototype.get = Xn;
|
|
232
232
|
k.prototype.has = Qn;
|
|
233
233
|
k.prototype.set = es;
|
|
234
|
-
var
|
|
234
|
+
var Be = k, ts = ce, rs = Me, is = Be, ns = 200;
|
|
235
235
|
function ss(r, e) {
|
|
236
236
|
var t = this.__data__;
|
|
237
237
|
if (t instanceof ts) {
|
|
@@ -260,7 +260,7 @@ var ps = fs;
|
|
|
260
260
|
function bs(r) {
|
|
261
261
|
return this.__data__.has(r);
|
|
262
262
|
}
|
|
263
|
-
var ys = bs, vs =
|
|
263
|
+
var ys = bs, vs = Be, _s = ps, ms = ys;
|
|
264
264
|
function ne(r) {
|
|
265
265
|
var e = -1, t = r == null ? 0 : r.length;
|
|
266
266
|
for (this.__data__ = new vs(); ++e < t; )
|
|
@@ -313,21 +313,21 @@ function ws(r, e, t, i, n, s) {
|
|
|
313
313
|
}
|
|
314
314
|
return s.delete(r), s.delete(e), h;
|
|
315
315
|
}
|
|
316
|
-
var Yt = ws, Os = D, Ls = Os.Uint8Array,
|
|
317
|
-
function
|
|
316
|
+
var Yt = ws, Os = D, Ls = Os.Uint8Array, Ps = Ls;
|
|
317
|
+
function Is(r) {
|
|
318
318
|
var e = -1, t = Array(r.size);
|
|
319
319
|
return r.forEach(function(i, n) {
|
|
320
320
|
t[++e] = [n, i];
|
|
321
321
|
}), t;
|
|
322
322
|
}
|
|
323
|
-
var Rs =
|
|
323
|
+
var Rs = Is;
|
|
324
324
|
function Ms(r) {
|
|
325
325
|
var e = -1, t = Array(r.size);
|
|
326
326
|
return r.forEach(function(i) {
|
|
327
327
|
t[++e] = i;
|
|
328
328
|
}), t;
|
|
329
329
|
}
|
|
330
|
-
var
|
|
330
|
+
var Bs = Ms, rt = Z, it = Ps, Gs = Re, zs = Yt, js = Rs, Us = Bs, Vs = 1, ks = 2, Hs = "[object Boolean]", Ks = "[object Date]", qs = "[object Error]", Ys = "[object Map]", Ws = "[object Number]", Js = "[object RegExp]", Zs = "[object Set]", Xs = "[object String]", Qs = "[object Symbol]", ea = "[object ArrayBuffer]", ta = "[object DataView]", nt = rt ? rt.prototype : void 0, me = nt ? nt.valueOf : void 0;
|
|
331
331
|
function ra(r, e, t, i, n, s, a) {
|
|
332
332
|
switch (t) {
|
|
333
333
|
case ta:
|
|
@@ -339,7 +339,7 @@ function ra(r, e, t, i, n, s, a) {
|
|
|
339
339
|
case Hs:
|
|
340
340
|
case Ks:
|
|
341
341
|
case Ws:
|
|
342
|
-
return
|
|
342
|
+
return Gs(+r, +e);
|
|
343
343
|
case qs:
|
|
344
344
|
return r.name == e.name && r.message == e.message;
|
|
345
345
|
case Js:
|
|
@@ -408,7 +408,7 @@ var $a = Fa, at = $a, Ta = Q, Jt = Object.prototype, Na = Jt.hasOwnProperty, Da
|
|
|
408
408
|
return arguments;
|
|
409
409
|
}()) ? at : function(r) {
|
|
410
410
|
return Ta(r) && Na.call(r, "callee") && !Da.call(r, "callee");
|
|
411
|
-
},
|
|
411
|
+
}, Ge = wa, se = { exports: {} };
|
|
412
412
|
function Oa() {
|
|
413
413
|
return !1;
|
|
414
414
|
}
|
|
@@ -418,20 +418,20 @@ se.exports;
|
|
|
418
418
|
var t = D, i = La, n = e && !e.nodeType && e, s = n && !0 && r && !r.nodeType && r, a = s && s.exports === n, o = a ? t.Buffer : void 0, l = o ? o.isBuffer : void 0, d = l || i;
|
|
419
419
|
r.exports = d;
|
|
420
420
|
})(se, se.exports);
|
|
421
|
-
var Zt = se.exports,
|
|
421
|
+
var Zt = se.exports, Pa = 9007199254740991, Ia = /^(?:0|[1-9]\d*)$/;
|
|
422
422
|
function Ra(r, e) {
|
|
423
423
|
var t = typeof r;
|
|
424
|
-
return e = e ??
|
|
424
|
+
return e = e ?? Pa, !!e && (t == "number" || t != "symbol" && Ia.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
425
425
|
}
|
|
426
426
|
var ze = Ra, Ma = 9007199254740991;
|
|
427
|
-
function
|
|
427
|
+
function Ba(r) {
|
|
428
428
|
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ma;
|
|
429
429
|
}
|
|
430
|
-
var je =
|
|
430
|
+
var je = Ba, Ga = X, za = je, ja = Q, Ua = "[object Arguments]", Va = "[object Array]", ka = "[object Boolean]", Ha = "[object Date]", Ka = "[object Error]", qa = "[object Function]", Ya = "[object Map]", Wa = "[object Number]", Ja = "[object Object]", Za = "[object RegExp]", Xa = "[object Set]", Qa = "[object String]", eo = "[object WeakMap]", to = "[object ArrayBuffer]", ro = "[object DataView]", io = "[object Float32Array]", no = "[object Float64Array]", so = "[object Int8Array]", ao = "[object Int16Array]", oo = "[object Int32Array]", uo = "[object Uint8Array]", lo = "[object Uint8ClampedArray]", co = "[object Uint16Array]", go = "[object Uint32Array]", b = {};
|
|
431
431
|
b[io] = b[no] = b[so] = b[ao] = b[oo] = b[uo] = b[lo] = b[co] = b[go] = !0;
|
|
432
432
|
b[Ua] = b[Va] = b[to] = b[ka] = b[ro] = b[Ha] = b[Ka] = b[qa] = b[Ya] = b[Wa] = b[Ja] = b[Za] = b[Xa] = b[Qa] = b[eo] = !1;
|
|
433
433
|
function ho(r) {
|
|
434
|
-
return ja(r) && za(r.length) && !!b[
|
|
434
|
+
return ja(r) && za(r.length) && !!b[Ga(r)];
|
|
435
435
|
}
|
|
436
436
|
var fo = ho;
|
|
437
437
|
function po(r) {
|
|
@@ -451,7 +451,7 @@ ae.exports;
|
|
|
451
451
|
}();
|
|
452
452
|
r.exports = o;
|
|
453
453
|
})(ae, ae.exports);
|
|
454
|
-
var bo = ae.exports, yo = fo, vo = Xt, ot = bo, ut = ot && ot.isTypedArray, _o = ut ? vo(ut) : yo, Qt = _o, mo = Ca, Co =
|
|
454
|
+
var bo = ae.exports, yo = fo, vo = Xt, ot = bo, ut = ot && ot.isTypedArray, _o = ut ? vo(ut) : yo, Qt = _o, mo = Ca, Co = Ge, So = F, Ao = Zt, xo = ze, Eo = Qt, Fo = Object.prototype, $o = Fo.hasOwnProperty;
|
|
455
455
|
function To(r, e) {
|
|
456
456
|
var t = So(r), i = !t && Co(r), n = !t && !i && Ao(r), s = !t && !i && !n && Eo(r), a = t || i || n || s, o = a ? mo(r.length, String) : [], l = o.length;
|
|
457
457
|
for (var d in r)
|
|
@@ -473,10 +473,10 @@ function Lo(r, e) {
|
|
|
473
473
|
return r(e(t));
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
var
|
|
476
|
+
var Po = Lo, Io = Po, Ro = Io(Object.keys, Object), Mo = Ro, Bo = Oo, Go = Mo, zo = Object.prototype, jo = zo.hasOwnProperty;
|
|
477
477
|
function Uo(r) {
|
|
478
|
-
if (!
|
|
479
|
-
return
|
|
478
|
+
if (!Bo(r))
|
|
479
|
+
return Go(r);
|
|
480
480
|
var e = [];
|
|
481
481
|
for (var t in Object(r))
|
|
482
482
|
jo.call(r, t) && t != "constructor" && e.push(t);
|
|
@@ -544,7 +544,7 @@ var au = su, ou = R, uu = D, lu = ou(uu, "DataView"), du = lu, cu = R, gu = D, h
|
|
|
544
544
|
}
|
|
545
545
|
return e;
|
|
546
546
|
});
|
|
547
|
-
var Nu = L, Ce = qt, Du = Yt, wu = ia, Ou = au, pt = Nu, bt = F, yt = Zt, Lu = Qt,
|
|
547
|
+
var Nu = L, Ce = qt, Du = Yt, wu = ia, Ou = au, pt = Nu, bt = F, yt = Zt, Lu = Qt, Pu = 1, vt = "[object Arguments]", _t = "[object Array]", re = "[object Object]", Iu = Object.prototype, mt = Iu.hasOwnProperty;
|
|
548
548
|
function Ru(r, e, t, i, n, s) {
|
|
549
549
|
var a = bt(r), o = bt(e), l = a ? _t : pt(r), d = o ? _t : pt(e);
|
|
550
550
|
l = l == vt ? re : l, d = d == vt ? re : d;
|
|
@@ -556,7 +556,7 @@ function Ru(r, e, t, i, n, s) {
|
|
|
556
556
|
}
|
|
557
557
|
if (h && !c)
|
|
558
558
|
return s || (s = new Ce()), a || Lu(r) ? Du(r, e, t, i, n, s) : wu(r, e, l, t, i, n, s);
|
|
559
|
-
if (!(t &
|
|
559
|
+
if (!(t & Pu)) {
|
|
560
560
|
var y = c && mt.call(r, "__wrapped__"), m = g && mt.call(e, "__wrapped__");
|
|
561
561
|
if (y || m) {
|
|
562
562
|
var p = y ? r.value() : r, x = m ? e.value() : e;
|
|
@@ -565,17 +565,17 @@ function Ru(r, e, t, i, n, s) {
|
|
|
565
565
|
}
|
|
566
566
|
return h ? (s || (s = new Ce()), Ou(r, e, t, i, n, s)) : !1;
|
|
567
567
|
}
|
|
568
|
-
var Mu = Ru,
|
|
568
|
+
var Mu = Ru, Bu = Mu, Ct = Q;
|
|
569
569
|
function tr(r, e, t, i, n) {
|
|
570
|
-
return r === e ? !0 : r == null || e == null || !Ct(r) && !Ct(e) ? r !== r && e !== e :
|
|
570
|
+
return r === e ? !0 : r == null || e == null || !Ct(r) && !Ct(e) ? r !== r && e !== e : Bu(r, e, t, i, tr, n);
|
|
571
571
|
}
|
|
572
|
-
var Ve = tr,
|
|
572
|
+
var Ve = tr, Gu = Ve;
|
|
573
573
|
function zu(r, e) {
|
|
574
|
-
return
|
|
574
|
+
return Gu(r, e);
|
|
575
575
|
}
|
|
576
576
|
var ju = zu;
|
|
577
|
-
const Uu = /* @__PURE__ */
|
|
578
|
-
var St = Z, Vu =
|
|
577
|
+
const Uu = /* @__PURE__ */ Ie(ju);
|
|
578
|
+
var St = Z, Vu = Ge, ku = F, At = St ? St.isConcatSpreadable : void 0;
|
|
579
579
|
function Hu(r) {
|
|
580
580
|
return ku(r) || Vu(r) || !!(At && r && r[At]);
|
|
581
581
|
}
|
|
@@ -605,7 +605,7 @@ function sl(r, e) {
|
|
|
605
605
|
var t = typeof r;
|
|
606
606
|
return t == "number" || t == "symbol" || t == "boolean" || r == null || rl(r) ? !0 : nl.test(r) || !il.test(r) || e != null && r in Object(e);
|
|
607
607
|
}
|
|
608
|
-
var ke = sl, nr =
|
|
608
|
+
var ke = sl, nr = Be, al = "Expected a function";
|
|
609
609
|
function He(r, e) {
|
|
610
610
|
if (typeof r != "function" || e != null && typeof e != "function")
|
|
611
611
|
throw new TypeError(al);
|
|
@@ -664,8 +664,8 @@ function Ll(r, e) {
|
|
|
664
664
|
r = r[Ol(e[t++])];
|
|
665
665
|
return t && t == i ? r : void 0;
|
|
666
666
|
}
|
|
667
|
-
var Ke = Ll,
|
|
668
|
-
function
|
|
667
|
+
var Ke = Ll, Pl = qt, Il = Ve, Rl = 1, Ml = 2;
|
|
668
|
+
function Bl(r, e, t, i) {
|
|
669
669
|
var n = t.length, s = n, a = !i;
|
|
670
670
|
if (r == null)
|
|
671
671
|
return !s;
|
|
@@ -681,16 +681,16 @@ function Gl(r, e, t, i) {
|
|
|
681
681
|
if (d === void 0 && !(l in r))
|
|
682
682
|
return !1;
|
|
683
683
|
} else {
|
|
684
|
-
var g = new
|
|
684
|
+
var g = new Pl();
|
|
685
685
|
if (i)
|
|
686
686
|
var h = i(d, c, l, r, e, g);
|
|
687
|
-
if (!(h === void 0 ?
|
|
687
|
+
if (!(h === void 0 ? Il(c, d, Rl | Ml, i, g) : h))
|
|
688
688
|
return !1;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
return !0;
|
|
692
692
|
}
|
|
693
|
-
var
|
|
693
|
+
var Gl = Bl, zl = ge;
|
|
694
694
|
function jl(r) {
|
|
695
695
|
return r === r && !zl(r);
|
|
696
696
|
}
|
|
@@ -708,7 +708,7 @@ function Kl(r, e) {
|
|
|
708
708
|
return t == null ? !1 : t[r] === e && (e !== void 0 || r in Object(t));
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
var ur = Kl, ql =
|
|
711
|
+
var ur = Kl, ql = Gl, Yl = Hl, Wl = ur;
|
|
712
712
|
function Jl(r) {
|
|
713
713
|
var e = Yl(r);
|
|
714
714
|
return e.length == 1 && e[0][2] ? Wl(e[0][0], e[0][1]) : function(t) {
|
|
@@ -724,7 +724,7 @@ var ed = Ql;
|
|
|
724
724
|
function td(r, e) {
|
|
725
725
|
return r != null && e in Object(r);
|
|
726
726
|
}
|
|
727
|
-
var rd = td, id = ar, nd =
|
|
727
|
+
var rd = td, id = ar, nd = Ge, sd = F, ad = ze, od = je, ud = ye;
|
|
728
728
|
function ld(r, e, t) {
|
|
729
729
|
e = id(e, r);
|
|
730
730
|
for (var i = -1, n = e.length, s = !1; ++i < n; ) {
|
|
@@ -762,13 +762,13 @@ function Dd(r) {
|
|
|
762
762
|
return Nd(e, r);
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
var wd = Dd, Od = Td, Ld = wd,
|
|
765
|
+
var wd = Dd, Od = Td, Ld = wd, Pd = ke, Id = ye;
|
|
766
766
|
function Rd(r) {
|
|
767
|
-
return
|
|
767
|
+
return Pd(r) ? Od(Id(r)) : Ld(r);
|
|
768
768
|
}
|
|
769
|
-
var Md = Rd,
|
|
769
|
+
var Md = Rd, Bd = Zl, Gd = Ed, zd = ve, jd = F, Ud = Md;
|
|
770
770
|
function Vd(r) {
|
|
771
|
-
return typeof r == "function" ? r : r == null ? zd : typeof r == "object" ? jd(r) ?
|
|
771
|
+
return typeof r == "function" ? r : r == null ? zd : typeof r == "object" ? jd(r) ? Gd(r[0], r[1]) : Bd(r) : Ud(r);
|
|
772
772
|
}
|
|
773
773
|
var kd = Vd;
|
|
774
774
|
function Hd(r) {
|
|
@@ -885,20 +885,20 @@ function Lc(r) {
|
|
|
885
885
|
return r;
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
|
-
var
|
|
888
|
+
var Pc = Lc, Ic = R, Rc = function() {
|
|
889
889
|
try {
|
|
890
|
-
var r =
|
|
890
|
+
var r = Ic(Object, "defineProperty");
|
|
891
891
|
return r({}, "", {}), r;
|
|
892
892
|
} catch {
|
|
893
893
|
}
|
|
894
|
-
}(), Mc = Rc,
|
|
894
|
+
}(), Mc = Rc, Bc = Pc, Nt = Mc, Gc = ve, zc = Nt ? function(r, e) {
|
|
895
895
|
return Nt(r, "toString", {
|
|
896
896
|
configurable: !0,
|
|
897
897
|
enumerable: !1,
|
|
898
|
-
value:
|
|
898
|
+
value: Bc(e),
|
|
899
899
|
writable: !0
|
|
900
900
|
});
|
|
901
|
-
} :
|
|
901
|
+
} : Gc, jc = zc, Uc = 800, Vc = 16, kc = Date.now;
|
|
902
902
|
function Hc(r) {
|
|
903
903
|
var e = 0, t = 0;
|
|
904
904
|
return function() {
|
|
@@ -928,7 +928,7 @@ var og = ag, ug = Wu, lg = $c, dg = tg, Dt = og, cg = dg(function(r, e) {
|
|
|
928
928
|
var t = e.length;
|
|
929
929
|
return t > 1 && Dt(r, e[0], e[1]) ? e = [] : t > 2 && Dt(e[0], e[1], e[2]) && (e = [e[0]]), lg(r, ug(e, 1), []);
|
|
930
930
|
}), gg = cg;
|
|
931
|
-
const
|
|
931
|
+
const B = /* @__PURE__ */ Ie(gg), hg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, fg = [
|
|
932
932
|
"label",
|
|
933
933
|
"Label",
|
|
934
934
|
"name",
|
|
@@ -1411,7 +1411,7 @@ var pg = dr.exports, De = {
|
|
|
1411
1411
|
n._blocksize = 16, n._digestsize = 20, lr.exports = n;
|
|
1412
1412
|
})();
|
|
1413
1413
|
var bg = lr.exports;
|
|
1414
|
-
const oe = /* @__PURE__ */
|
|
1414
|
+
const oe = /* @__PURE__ */ Ie(bg), E = "#7f7f7f", Ot = [
|
|
1415
1415
|
"#9467bd",
|
|
1416
1416
|
"#e377c2",
|
|
1417
1417
|
"#1f77b4",
|
|
@@ -1906,7 +1906,7 @@ class C {
|
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
var w = /* @__PURE__ */ ((r) => (r.COLOR = "color", r.ICON = "icon", r.SIZE = "size", r.IMAGE = "image", r.SHAPE = "shape", r.WIDTH = "width", r))(w || {});
|
|
1909
|
-
const
|
|
1909
|
+
const G = ["specificity", "itemType", "index"];
|
|
1910
1910
|
class f {
|
|
1911
1911
|
constructor(e) {
|
|
1912
1912
|
this._rules = e;
|
|
@@ -1917,7 +1917,7 @@ class f {
|
|
|
1917
1917
|
* @return {Array<StyleRule>}
|
|
1918
1918
|
*/
|
|
1919
1919
|
get color() {
|
|
1920
|
-
return
|
|
1920
|
+
return B(f.getBy("color", this._rules), G);
|
|
1921
1921
|
}
|
|
1922
1922
|
/**
|
|
1923
1923
|
* Return an array of StyleRule with only 'icon' rules and sorted by specificity, itemType and index
|
|
@@ -1925,12 +1925,12 @@ class f {
|
|
|
1925
1925
|
* @return {Array<StyleRule>}
|
|
1926
1926
|
*/
|
|
1927
1927
|
get icon() {
|
|
1928
|
-
return
|
|
1928
|
+
return B(
|
|
1929
1929
|
[
|
|
1930
1930
|
...f.getBy("icon", this._rules) || [],
|
|
1931
1931
|
...f.getBy("image", this._rules) || []
|
|
1932
1932
|
],
|
|
1933
|
-
|
|
1933
|
+
G
|
|
1934
1934
|
);
|
|
1935
1935
|
}
|
|
1936
1936
|
/**
|
|
@@ -1939,7 +1939,7 @@ class f {
|
|
|
1939
1939
|
* @return {Array<StyleRule>}
|
|
1940
1940
|
*/
|
|
1941
1941
|
get image() {
|
|
1942
|
-
return
|
|
1942
|
+
return B(f.getBy("image", this._rules), G);
|
|
1943
1943
|
}
|
|
1944
1944
|
/**
|
|
1945
1945
|
* Return an array of StyleRule with only 'shape' rules and sorted by specificity, itemType and index
|
|
@@ -1947,7 +1947,7 @@ class f {
|
|
|
1947
1947
|
* @return {Array<StyleRule>}
|
|
1948
1948
|
*/
|
|
1949
1949
|
get shape() {
|
|
1950
|
-
return
|
|
1950
|
+
return B(f.getBy("shape", this._rules), G);
|
|
1951
1951
|
}
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Return an array of StyleRule with only 'size' rules and sorted by specificity, itemType and index
|
|
@@ -1955,7 +1955,7 @@ class f {
|
|
|
1955
1955
|
* @return {Array<StyleRule>}
|
|
1956
1956
|
*/
|
|
1957
1957
|
get size() {
|
|
1958
|
-
return
|
|
1958
|
+
return B(f.getBy("size", this._rules), G);
|
|
1959
1959
|
}
|
|
1960
1960
|
/**
|
|
1961
1961
|
* Return an array of StyleRule with only 'width' rules and sorted by specificity, itemType and index
|
|
@@ -1963,7 +1963,7 @@ class f {
|
|
|
1963
1963
|
* @return {Array<StyleRule>}
|
|
1964
1964
|
*/
|
|
1965
1965
|
get width() {
|
|
1966
|
-
return
|
|
1966
|
+
return B(f.getBy("width", this._rules), G);
|
|
1967
1967
|
}
|
|
1968
1968
|
/**
|
|
1969
1969
|
* Return an object containing for each node style a sorted array of StyleRule
|
|
@@ -2135,147 +2135,7 @@ class f {
|
|
|
2135
2135
|
return i.node = i.node.map((s) => (t.includes(s.index) ? (s.index = n, n++) : t.push(s.index), s)), i.edge = i.edge.map((s) => (t.includes(s.index) ? (s.index = n, n++) : t.push(s.index), s)), i;
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
2138
|
-
const
|
|
2139
|
-
lightsalmon: { hex: "#FFA07A", rgb: "rbg(255,160,122)" },
|
|
2140
|
-
salmon: { hex: "#FA8072", rgb: "rgb(250,128,114)" },
|
|
2141
|
-
darksalmon: { hex: "#E9967A", rgb: "rgb(233,150,122)" },
|
|
2142
|
-
lightcoral: { hex: "#F08080", rgb: "rgb(240,128,128)" },
|
|
2143
|
-
indianred: { hex: "#CD5C5C", rgb: "rgb(205,92,92)" },
|
|
2144
|
-
crimson: { hex: "#DC143C", rgb: "rgb(220,20,60)" },
|
|
2145
|
-
firebrick: { hex: "#B22222", rgb: "rgb(178,34,34)" },
|
|
2146
|
-
red: { hex: "#FF0000", rgb: "rgb(255,0,0)" },
|
|
2147
|
-
darkred: { hex: "#8B0000", rgb: "rgb(139,0,0)" },
|
|
2148
|
-
coral: { hex: "#FF7F50", rgb: "rgb(255,127,80)" },
|
|
2149
|
-
tomato: { hex: "#FF6347", rgb: "rgb(255,99,71)" },
|
|
2150
|
-
orangered: { hex: "#FF4500", rgb: "rgb(255,69,0)" },
|
|
2151
|
-
gold: { hex: "#FFD700", rgb: "rgb(255,215,0)" },
|
|
2152
|
-
orange: { hex: "#FFA500", rgb: "rgb(255,165,0)" },
|
|
2153
|
-
darkorange: { hex: "#FF8C00", rgb: "rgb(255,140,0)" },
|
|
2154
|
-
lightyellow: { hex: "#FFFFE0", rgb: "rgb(255,255,224)" },
|
|
2155
|
-
lemonchiffon: { hex: "#FFFACD", rgb: "rgb(255,250,205)" },
|
|
2156
|
-
lightgoldenrodyellow: { hex: "#FAFAD2", rgb: "rgb(250,250,210)" },
|
|
2157
|
-
papayawhip: { hex: "#FFEFD5", rgb: "rgb(255,239,213)" },
|
|
2158
|
-
moccasin: { hex: "#FFE4B5", rgb: "rgb(255,228,181)" },
|
|
2159
|
-
peachpuff: { hex: "#FFDAB9", rgb: "rgb(255,218,185)" },
|
|
2160
|
-
palegoldenrod: { hex: "#EEE8AA", rgb: "rgb(238,232,170)" },
|
|
2161
|
-
khaki: { hex: "#F0E68C", rgb: "rgb(240,230,140)" },
|
|
2162
|
-
darkkhaki: { hex: "#BDB76B", rgb: "rgb(189,183,107)" },
|
|
2163
|
-
yellow: { hex: "#FFFF00", rgb: "rgb(255,255,0)" },
|
|
2164
|
-
lawngreen: { hex: "#7CFC00", rgb: "rgb(124,252,0)" },
|
|
2165
|
-
chartreuse: { hex: "#7FFF00", rgb: "rgb(127,255,0)" },
|
|
2166
|
-
limegreen: { hex: "#32CD32", rgb: "rgb(50,205,50)" },
|
|
2167
|
-
lime: { hex: "#00FF00", rgb: "rgb(0.255.0)" },
|
|
2168
|
-
forestgreen: { hex: "#228B22", rgb: "rgb(34,139,34)" },
|
|
2169
|
-
green: { hex: "#008000", rgb: "rgb(0,128,0)" },
|
|
2170
|
-
darkgreen: { hex: "#006400", rgb: "rgb(0,100,0)" },
|
|
2171
|
-
greenyellow: { hex: "#ADFF2F", rgb: "rgb(173,255,47)" },
|
|
2172
|
-
yellowgreen: { hex: "#9ACD32", rgb: "rgb(154,205,50)" },
|
|
2173
|
-
springgreen: { hex: "#00FF7F", rgb: "rgb(0,255,127)" },
|
|
2174
|
-
mediumspringgreen: { hex: "#00FA9A", rgb: "rgb(0,250,154)" },
|
|
2175
|
-
lightgreen: { hex: "#90EE90", rgb: "rgb(144,238,144)" },
|
|
2176
|
-
palegreen: { hex: "#98FB98", rgb: "rgb(152,251,152)" },
|
|
2177
|
-
darkseagreen: { hex: "#8FBC8F", rgb: "rgb(143,188,143)" },
|
|
2178
|
-
mediumseagreen: { hex: "#3CB371", rgb: "rgb(60,179,113)" },
|
|
2179
|
-
seagreen: { hex: "#2E8B57", rgb: "rgb(46,139,87)" },
|
|
2180
|
-
olive: { hex: "#808000", rgb: "rgb(128,128,0)" },
|
|
2181
|
-
darkolivegreen: { hex: "#556B2F", rgb: "rgb(85,107,47)" },
|
|
2182
|
-
olivedrab: { hex: "#6B8E23", rgb: "rgb(107,142,35)" },
|
|
2183
|
-
lightcyan: { hex: "#E0FFFF", rgb: "rgb(224,255,255)" },
|
|
2184
|
-
cyan: { hex: "#00FFFF", rgb: "rgb(0,255,255)" },
|
|
2185
|
-
aqua: { hex: "#00FFFF", rgb: "rgb(0,255,255)" },
|
|
2186
|
-
aquamarine: { hex: "#7FFFD4", rgb: "rgb(127,255,212)" },
|
|
2187
|
-
mediumaquamarine: { hex: "#66CDAA", rgb: "rgb(102,205,170)" },
|
|
2188
|
-
paleturquoise: { hex: "#AFEEEE", rgb: "rgb(175,238,238)" },
|
|
2189
|
-
turquoise: { hex: "#40E0D0", rgb: "rgb(64,224,208)" },
|
|
2190
|
-
mediumturquoise: { hex: "#48D1CC", rgb: "rgb(72,209,204)" },
|
|
2191
|
-
darkturquoise: { hex: "#00CED1", rgb: "rgb(0,206,209)" },
|
|
2192
|
-
lightseagreen: { hex: "#20B2AA", rgb: "rgb(32,178,170)" },
|
|
2193
|
-
cadetblue: { hex: "#5F9EA0", rgb: "rgb(95,158,160)" },
|
|
2194
|
-
darkcyan: { hex: "#008B8B", rgb: "rgb(0,139,139)" },
|
|
2195
|
-
teal: { hex: "#008080", rgb: "rgb(0,128,128)" },
|
|
2196
|
-
powderblue: { hex: "#B0E0E6", rgb: "rgb(176,224,230)" },
|
|
2197
|
-
lightblue: { hex: "#ADD8E6", rgb: "rgb(173,216,230)" },
|
|
2198
|
-
lightskyblue: { hex: "#87CEFA", rgb: "rgb(135,206,250)" },
|
|
2199
|
-
skyblue: { hex: "#87CEEB", rgb: "rgb(135,206,235)" },
|
|
2200
|
-
deepskyblue: { hex: "#00BFFF", rgb: "rgb(0,191,255)" },
|
|
2201
|
-
lightsteelblue: { hex: "#B0C4DE", rgb: "rgb(176,196,222)" },
|
|
2202
|
-
dodgerblue: { hex: "#1E90FF", rgb: "rgb(30,144,255)" },
|
|
2203
|
-
cornflowerblue: { hex: "#6495ED", rgb: "rgb(100,149,237)" },
|
|
2204
|
-
steelblue: { hex: "#4682B4", rgb: "rgb(70,130,180)" },
|
|
2205
|
-
royalblue: { hex: "#4169E1", rgb: "rgb(65,105,225)" },
|
|
2206
|
-
blue: { hex: "#0000FF", rgb: "rgb(0,0,255)" },
|
|
2207
|
-
mediumblue: { hex: "#0000CD", rgb: "rgb(0,0,205)" },
|
|
2208
|
-
darkblue: { hex: "#00008B", rgb: "rgb(0,0,139)" },
|
|
2209
|
-
navy: { hex: "#000080", rgb: "rgb(0,0,128)" },
|
|
2210
|
-
midnightblue: { hex: "#191970", rgb: "rgb(25,25,112)" },
|
|
2211
|
-
mediumslateblue: { hex: "#7B68EE", rgb: "rgb(123,104,238)" },
|
|
2212
|
-
slateblue: { hex: "#6A5ACD", rgb: "rgb(106,90,205)" },
|
|
2213
|
-
darkslateblue: { hex: "#483D8B", rgb: "rgb(72,61,139)" },
|
|
2214
|
-
lavender: { hex: "#E6E6FA", rgb: "rgb(230,230,250)" },
|
|
2215
|
-
thistle: { hex: "#D8BFD8", rgb: "rgb(216,191,216)" },
|
|
2216
|
-
plum: { hex: "#DDA0DD", rgb: "rgb(221,160,221)" },
|
|
2217
|
-
violet: { hex: "#EE82EE", rgb: "rgb(238,130,238)" },
|
|
2218
|
-
orchid: { hex: "#DA70D6", rgb: "rgb(218,112,214)" },
|
|
2219
|
-
fuchsia: { hex: "#FF00FF", rgb: "rgb(255,0,255)" },
|
|
2220
|
-
magenta: { hex: "#FF00FF", rgb: "rgb(255,0,255)" },
|
|
2221
|
-
mediumorchid: { hex: "#BA55D3", rgb: "rgb(186,85,211)" },
|
|
2222
|
-
mediumpurple: { hex: "#9370DB", rgb: "rgb(147,112,219)" },
|
|
2223
|
-
blueviolet: { hex: "#8A2BE2", rgb: "rgb(138,43,226)" },
|
|
2224
|
-
darkviolet: { hex: "#9400D3", rgb: "rgb(148,0,211)" },
|
|
2225
|
-
darkorchid: { hex: "#9932CC", rgb: "rgb(153,50,204)" },
|
|
2226
|
-
darkmagenta: { hex: "#8B008B", rgb: "rgb(139,0,139)" },
|
|
2227
|
-
purple: { hex: "#800080", rgb: "rgb(128,0,128)" },
|
|
2228
|
-
indigo: { hex: "#4B0082", rgb: "rgb(75,0,130)" },
|
|
2229
|
-
pink: { hex: "#FFC0CB", rgb: "rgb(255,192,203)" },
|
|
2230
|
-
lightpink: { hex: "#FFB6C1", rgb: "rgb(255,182,193)" },
|
|
2231
|
-
hotpink: { hex: "#FF69B4", rgb: "rgb(255,105,180)" },
|
|
2232
|
-
deeppink: { hex: "#FF1493", rgb: "rgb(255,20,147)" },
|
|
2233
|
-
palevioletred: { hex: "#DB7093", rgb: "rgb(219,112,147)" },
|
|
2234
|
-
mediumvioletred: { hex: "#C71585", rgb: "rgb(199,21,133)" },
|
|
2235
|
-
white: { hex: "#FFFFFF", rgb: "rgb(255,255,255)" },
|
|
2236
|
-
snow: { hex: "#FFFAFA", rgb: "rgb(255,250,250)" },
|
|
2237
|
-
honeydew: { hex: "#F0FFF0", rgb: "rgb(240,255,240)" },
|
|
2238
|
-
mintcream: { hex: "#F5FFFA", rgb: "rgb(245,255,250)" },
|
|
2239
|
-
azure: { hex: "#F0FFFF", rgb: "rgb(240,255,255)" },
|
|
2240
|
-
aliceblue: { hex: "#F0F8FF", rgb: "rgb(240,248,255)" },
|
|
2241
|
-
ghostwhite: { hex: "#F8F8FF", rgb: "rgb(248,248,255)" },
|
|
2242
|
-
whitesmoke: { hex: "#F5F5F5", rgb: "rgb(245,245,245)" },
|
|
2243
|
-
seashell: { hex: "#FFF5EE", rgb: "rgb(255,245,238)" },
|
|
2244
|
-
beige: { hex: "#F5F5DC", rgb: "rgb(245,245,220)" },
|
|
2245
|
-
oldlace: { hex: "#FDF5E6", rgb: "rgb(253,245,230)" },
|
|
2246
|
-
floralwhite: { hex: "#FFFAF0", rgb: "rgb(255,250,240)" },
|
|
2247
|
-
ivory: { hex: "#FFFFF0", rgb: "rgb(255,255,240)" },
|
|
2248
|
-
antiquewhite: { hex: "#FAEBD7", rgb: "rgb(250,235,215)" },
|
|
2249
|
-
linen: { hex: "#FAF0E6", rgb: "rgb(250,240,230)" },
|
|
2250
|
-
lavenderblush: { hex: "#FFF0F5", rgb: "rgb(255,240,245)" },
|
|
2251
|
-
mistyrose: { hex: "#FFE4E1", rgb: "rgb(255,228,225)" },
|
|
2252
|
-
gainsboro: { hex: "#DCDCDC", rgb: "rgb(220,220,220)" },
|
|
2253
|
-
lightgray: { hex: "#D3D3D3", rgb: "rgb(211,211,211)" },
|
|
2254
|
-
silver: { hex: "#C0C0C0", rgb: "rgb(192,192,192)" },
|
|
2255
|
-
darkgray: { hex: "#A9A9A9", rgb: "rgb(169,169,169)" },
|
|
2256
|
-
gray: { hex: "#808080", rgb: "rgb(128,128,128)" },
|
|
2257
|
-
dimgray: { hex: "#696969", rgb: "rgb(105,105,105)" },
|
|
2258
|
-
lightslategray: { hex: "#778899", rgb: "rgb(119,136,153)" },
|
|
2259
|
-
slategray: { hex: "#708090", rgb: "rgb(112,128,144)" },
|
|
2260
|
-
darkslategray: { hex: "#2F4F4F", rgb: "rgb(47,79,79)" },
|
|
2261
|
-
black: { hex: "#000000", rgb: "rgb(0,0,0)" },
|
|
2262
|
-
cornsilk: { hex: "#FFF8DC", rgb: "rgb(255,248,220)" },
|
|
2263
|
-
blanchedalmond: { hex: "#FFEBCD", rgb: "rgb(255,235,205)" },
|
|
2264
|
-
bisque: { hex: "#FFE4C4", rgb: "rgb(255,228,196)" },
|
|
2265
|
-
navajowhite: { hex: "#FFDEAD", rgb: "rgb(255,222,173)" },
|
|
2266
|
-
wheat: { hex: "#F5DEB3", rgb: "rgb(245,222,179)" },
|
|
2267
|
-
burlywood: { hex: "#DEB887", rgb: "rgb(222,184,135)" },
|
|
2268
|
-
tan: { hex: "#D2B48C", rgb: "rgb(210,180,140)" },
|
|
2269
|
-
rosybrown: { hex: "#BC8F8F", rgb: "rgb(188,143,143)" },
|
|
2270
|
-
sandybrown: { hex: "#F4A460", rgb: "rgb(244,164,96)" },
|
|
2271
|
-
goldenrod: { hex: "#DAA520", rgb: "rgb(218,165,32)" },
|
|
2272
|
-
peru: { hex: "#CD853F", rgb: "rgb(205,133,63)" },
|
|
2273
|
-
chocolate: { hex: "#D2691E", rgb: "rgb(210,105,30)" },
|
|
2274
|
-
saddlebrown: { hex: "#8B4513", rgb: "rgb(139,69,19)" },
|
|
2275
|
-
sienna: { hex: "#A0522D", rgb: "rgb(160,82,45)" },
|
|
2276
|
-
brown: { hex: "#A52A2A", rgb: "rgb(165,42,42)" },
|
|
2277
|
-
maroon: { hex: "#800000", rgb: "rgb(128,0,0)" }
|
|
2278
|
-
}, ue = "#3F3D5F", cr = "'roboto', sans-serif", le = "#FFF", Lt = 0.2, It = {
|
|
2138
|
+
const cr = "'roboto', sans-serif", ue = "#FFF", Lt = 0.2, le = "#3F3D5F", Pt = {
|
|
2279
2139
|
text: {
|
|
2280
2140
|
style: "bold",
|
|
2281
2141
|
backgroundColor: "#fff",
|
|
@@ -2283,7 +2143,7 @@ const Ae = {
|
|
|
2283
2143
|
},
|
|
2284
2144
|
outerStroke: { width: 2 },
|
|
2285
2145
|
outline: !1
|
|
2286
|
-
},
|
|
2146
|
+
}, It = {
|
|
2287
2147
|
text: {
|
|
2288
2148
|
style: "bold",
|
|
2289
2149
|
backgroundColor: "#fff",
|
|
@@ -2316,7 +2176,7 @@ class mg {
|
|
|
2316
2176
|
* Set nodes default styles based on the configuration
|
|
2317
2177
|
*/
|
|
2318
2178
|
setNodesDefaultStyles() {
|
|
2319
|
-
this._ogma.styles.setHoveredNodeAttributes(
|
|
2179
|
+
this._ogma.styles.setHoveredNodeAttributes(Pt), this._ogma.styles.setSelectedNodeAttributes(Pt), this._nodeDefaultStylesRules = this._ogma.styles.addRule({
|
|
2320
2180
|
nodeAttributes: {
|
|
2321
2181
|
text: {
|
|
2322
2182
|
padding: 5,
|
|
@@ -2348,7 +2208,7 @@ class mg {
|
|
|
2348
2208
|
*/
|
|
2349
2209
|
setEdgesDefaultStyles() {
|
|
2350
2210
|
var e;
|
|
2351
|
-
this._ogma.styles.setHoveredEdgeAttributes(
|
|
2211
|
+
this._ogma.styles.setHoveredEdgeAttributes(It), this._ogma.styles.setSelectedEdgeAttributes(It), this._edgeDefaultStylesRules = this._ogma.styles.addRule({
|
|
2352
2212
|
edgeAttributes: {
|
|
2353
2213
|
text: {
|
|
2354
2214
|
minVisibleSize: this._defaultConfiguration.edge.text !== void 0 && this._defaultConfiguration.edge.text.minVisibleSize ? this._defaultConfiguration.edge.text.minVisibleSize : 3,
|
|
@@ -2512,39 +2372,26 @@ class mg {
|
|
|
2512
2372
|
});
|
|
2513
2373
|
}
|
|
2514
2374
|
/**
|
|
2515
|
-
* Set the
|
|
2375
|
+
* Set the badge style
|
|
2516
2376
|
*/
|
|
2517
|
-
|
|
2518
|
-
this.
|
|
2519
|
-
|
|
2377
|
+
async initBadges(e) {
|
|
2378
|
+
this._badgesStyle = e, this.refreshCounterBadgeClass(), await this.refreshPinBadgeStyleRule();
|
|
2379
|
+
}
|
|
2380
|
+
/**
|
|
2381
|
+
* Refresh the hidden neighbors counter badge class (used in expand)
|
|
2382
|
+
*/
|
|
2383
|
+
refreshCounterBadgeClass() {
|
|
2384
|
+
const e = "degreeIndicator", t = {
|
|
2520
2385
|
nodeAttributes: {
|
|
2521
2386
|
badges: {
|
|
2522
|
-
bottomLeft: (
|
|
2523
|
-
if (e !== void 0) {
|
|
2524
|
-
const t = u.getHiddenNeighbors(e.toList()), i = u.formatNumber(t);
|
|
2525
|
-
if (t > 0) {
|
|
2526
|
-
const n = e.getData(["statistics", "supernode"]);
|
|
2527
|
-
let s = null;
|
|
2528
|
-
return +i != 0 && (s = n ? i + "+" : i), {
|
|
2529
|
-
color: ue,
|
|
2530
|
-
minVisibleSize: 20,
|
|
2531
|
-
stroke: {
|
|
2532
|
-
width: 2,
|
|
2533
|
-
color: "#FFFFFF"
|
|
2534
|
-
},
|
|
2535
|
-
text: {
|
|
2536
|
-
font: this._defaultConfiguration.node.text !== void 0 && this._defaultConfiguration.node.text.font !== void 0 ? this._defaultConfiguration.node.text.font : cr,
|
|
2537
|
-
scale: 0.4,
|
|
2538
|
-
color: le,
|
|
2539
|
-
content: s
|
|
2540
|
-
}
|
|
2541
|
-
};
|
|
2542
|
-
}
|
|
2543
|
-
}
|
|
2544
|
-
}
|
|
2387
|
+
bottomLeft: (n) => this._getCounterBadge(n)
|
|
2545
2388
|
}
|
|
2546
2389
|
}
|
|
2547
|
-
}
|
|
2390
|
+
}, i = this._ogma.styles.getClass(e);
|
|
2391
|
+
u.isDefined(i) ? i.update(t) : (this._ogma.styles.createClass({
|
|
2392
|
+
name: e,
|
|
2393
|
+
...t
|
|
2394
|
+
}), this._ogma.events.on("addNodes", (n) => n.nodes.addClass(e)), this._ogma.getNodes().addClass(e));
|
|
2548
2395
|
}
|
|
2549
2396
|
/**
|
|
2550
2397
|
* Used in other repos to refresh the pin badge style rule
|
|
@@ -2558,21 +2405,7 @@ class mg {
|
|
|
2558
2405
|
nodeSelector: (e) => !e.getAttribute("layoutable"),
|
|
2559
2406
|
nodeAttributes: {
|
|
2560
2407
|
badges: {
|
|
2561
|
-
topRight: (e) => (
|
|
2562
|
-
color: ue,
|
|
2563
|
-
minVisibleSize: 20,
|
|
2564
|
-
scale: this._findPinBadgeScale(e),
|
|
2565
|
-
stroke: {
|
|
2566
|
-
width: 2,
|
|
2567
|
-
color: "#FFFFFF"
|
|
2568
|
-
},
|
|
2569
|
-
text: {
|
|
2570
|
-
font: "FontAwesome",
|
|
2571
|
-
scale: 0.4,
|
|
2572
|
-
color: le,
|
|
2573
|
-
content: ""
|
|
2574
|
-
}
|
|
2575
|
-
})
|
|
2408
|
+
topRight: (e) => this._getPinBadge(e)
|
|
2576
2409
|
}
|
|
2577
2410
|
},
|
|
2578
2411
|
nodeDependencies: {
|
|
@@ -2785,6 +2618,55 @@ class mg {
|
|
|
2785
2618
|
_getNodeRadius(e) {
|
|
2786
2619
|
return !e.isVirtual() || j.isGroupCollapsed(e) ? e.getAttribute("radius") : this._ogma.transformations.getXYR(e.toList())[0].radius;
|
|
2787
2620
|
}
|
|
2621
|
+
/**
|
|
2622
|
+
* Helper to get the counter badge attribute
|
|
2623
|
+
*/
|
|
2624
|
+
_getCounterBadge(e) {
|
|
2625
|
+
var t, i, n, s;
|
|
2626
|
+
if (((i = (t = this._badgesStyle) == null ? void 0 : t.counter) == null ? void 0 : i.display) !== !1 && u.isDefined(e)) {
|
|
2627
|
+
const a = u.getHiddenNeighbors(e.toList()), o = u.formatNumber(a);
|
|
2628
|
+
if (a > 0) {
|
|
2629
|
+
const l = e.getData(["statistics", "supernode"]);
|
|
2630
|
+
let d = null;
|
|
2631
|
+
return +o != 0 && (d = l ? o + "+" : o), {
|
|
2632
|
+
color: ((s = (n = this._badgesStyle) == null ? void 0 : n.counter) == null ? void 0 : s.color) || le,
|
|
2633
|
+
minVisibleSize: 20,
|
|
2634
|
+
stroke: {
|
|
2635
|
+
width: 2,
|
|
2636
|
+
color: "#FFFFFF"
|
|
2637
|
+
},
|
|
2638
|
+
text: {
|
|
2639
|
+
font: this._defaultConfiguration.node.text !== void 0 && this._defaultConfiguration.node.text.font !== void 0 ? this._defaultConfiguration.node.text.font : cr,
|
|
2640
|
+
scale: 0.4,
|
|
2641
|
+
color: ue,
|
|
2642
|
+
content: d
|
|
2643
|
+
}
|
|
2644
|
+
};
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
/**
|
|
2649
|
+
* Helper to get the pin badge attribute
|
|
2650
|
+
*/
|
|
2651
|
+
_getPinBadge(e) {
|
|
2652
|
+
var t, i, n, s;
|
|
2653
|
+
if (((i = (t = this._badgesStyle) == null ? void 0 : t.pin) == null ? void 0 : i.display) !== !1)
|
|
2654
|
+
return {
|
|
2655
|
+
color: ((s = (n = this._badgesStyle) == null ? void 0 : n.pin) == null ? void 0 : s.color) || le,
|
|
2656
|
+
minVisibleSize: 20,
|
|
2657
|
+
scale: this._findPinBadgeScale(e),
|
|
2658
|
+
stroke: {
|
|
2659
|
+
width: 2,
|
|
2660
|
+
color: "#FFFFFF"
|
|
2661
|
+
},
|
|
2662
|
+
text: {
|
|
2663
|
+
font: "FontAwesome",
|
|
2664
|
+
scale: 0.4,
|
|
2665
|
+
color: ue,
|
|
2666
|
+
content: ""
|
|
2667
|
+
}
|
|
2668
|
+
};
|
|
2669
|
+
}
|
|
2788
2670
|
}
|
|
2789
2671
|
class Cg {
|
|
2790
2672
|
constructor(e, t, i) {
|
|
@@ -2860,11 +2742,11 @@ class Cg {
|
|
|
2860
2742
|
return this.edgesCaptionsRule.refresh();
|
|
2861
2743
|
}
|
|
2862
2744
|
}
|
|
2863
|
-
function
|
|
2745
|
+
function I(r) {
|
|
2864
2746
|
return typeof r == "function";
|
|
2865
2747
|
}
|
|
2866
2748
|
function Sg(r) {
|
|
2867
|
-
return
|
|
2749
|
+
return I(r == null ? void 0 : r.lift);
|
|
2868
2750
|
}
|
|
2869
2751
|
function gr(r) {
|
|
2870
2752
|
return function(e) {
|
|
@@ -2933,7 +2815,7 @@ function Ag(r) {
|
|
|
2933
2815
|
}, t = r(e);
|
|
2934
2816
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
2935
2817
|
}
|
|
2936
|
-
var
|
|
2818
|
+
var Ae = Ag(function(r) {
|
|
2937
2819
|
return function(t) {
|
|
2938
2820
|
r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
2939
2821
|
` + t.map(function(i, n) {
|
|
@@ -2942,7 +2824,7 @@ var xe = Ag(function(r) {
|
|
|
2942
2824
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
2943
2825
|
};
|
|
2944
2826
|
});
|
|
2945
|
-
function
|
|
2827
|
+
function Bt(r, e) {
|
|
2946
2828
|
if (r) {
|
|
2947
2829
|
var t = r.indexOf(e);
|
|
2948
2830
|
0 <= t && r.splice(t, 1);
|
|
@@ -2976,11 +2858,11 @@ var Ye = function() {
|
|
|
2976
2858
|
else
|
|
2977
2859
|
a.remove(this);
|
|
2978
2860
|
var c = this.initialTeardown;
|
|
2979
|
-
if (
|
|
2861
|
+
if (I(c))
|
|
2980
2862
|
try {
|
|
2981
2863
|
c();
|
|
2982
2864
|
} catch (p) {
|
|
2983
|
-
s = p instanceof
|
|
2865
|
+
s = p instanceof Ae ? p.errors : [p];
|
|
2984
2866
|
}
|
|
2985
2867
|
var g = this._finalizers;
|
|
2986
2868
|
if (g) {
|
|
@@ -2989,9 +2871,9 @@ var Ye = function() {
|
|
|
2989
2871
|
for (var h = Mt(g), y = h.next(); !y.done; y = h.next()) {
|
|
2990
2872
|
var m = y.value;
|
|
2991
2873
|
try {
|
|
2992
|
-
|
|
2874
|
+
Gt(m);
|
|
2993
2875
|
} catch (p) {
|
|
2994
|
-
s = s ?? [], p instanceof
|
|
2876
|
+
s = s ?? [], p instanceof Ae ? s = Le(Le([], Oe(s)), Oe(p.errors)) : s.push(p);
|
|
2995
2877
|
}
|
|
2996
2878
|
}
|
|
2997
2879
|
} catch (p) {
|
|
@@ -3005,13 +2887,13 @@ var Ye = function() {
|
|
|
3005
2887
|
}
|
|
3006
2888
|
}
|
|
3007
2889
|
if (s)
|
|
3008
|
-
throw new
|
|
2890
|
+
throw new Ae(s);
|
|
3009
2891
|
}
|
|
3010
2892
|
}, r.prototype.add = function(e) {
|
|
3011
2893
|
var t;
|
|
3012
2894
|
if (e && e !== this)
|
|
3013
2895
|
if (this.closed)
|
|
3014
|
-
|
|
2896
|
+
Gt(e);
|
|
3015
2897
|
else {
|
|
3016
2898
|
if (e instanceof r) {
|
|
3017
2899
|
if (e.closed || e._hasParent(this))
|
|
@@ -3028,10 +2910,10 @@ var Ye = function() {
|
|
|
3028
2910
|
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
|
3029
2911
|
}, r.prototype._removeParent = function(e) {
|
|
3030
2912
|
var t = this._parentage;
|
|
3031
|
-
t === e ? this._parentage = null : Array.isArray(t) &&
|
|
2913
|
+
t === e ? this._parentage = null : Array.isArray(t) && Bt(t, e);
|
|
3032
2914
|
}, r.prototype.remove = function(e) {
|
|
3033
2915
|
var t = this._finalizers;
|
|
3034
|
-
t &&
|
|
2916
|
+
t && Bt(t, e), e instanceof r && e._removeParent(this);
|
|
3035
2917
|
}, r.EMPTY = function() {
|
|
3036
2918
|
var e = new r();
|
|
3037
2919
|
return e.closed = !0, e;
|
|
@@ -3039,10 +2921,10 @@ var Ye = function() {
|
|
|
3039
2921
|
}();
|
|
3040
2922
|
Ye.EMPTY;
|
|
3041
2923
|
function xg(r) {
|
|
3042
|
-
return r instanceof Ye || r && "closed" in r &&
|
|
2924
|
+
return r instanceof Ye || r && "closed" in r && I(r.remove) && I(r.add) && I(r.unsubscribe);
|
|
3043
2925
|
}
|
|
3044
|
-
function
|
|
3045
|
-
|
|
2926
|
+
function Gt(r) {
|
|
2927
|
+
I(r) ? r() : r.unsubscribe();
|
|
3046
2928
|
}
|
|
3047
2929
|
var Eg = {
|
|
3048
2930
|
setTimeout: function(r, e) {
|
|
@@ -3128,7 +3010,7 @@ var hr = function(r) {
|
|
|
3128
3010
|
qe(e, r);
|
|
3129
3011
|
function e(t, i, n) {
|
|
3130
3012
|
var s = r.call(this) || this, a;
|
|
3131
|
-
return
|
|
3013
|
+
return I(t) || !t ? a = {
|
|
3132
3014
|
next: t ?? void 0,
|
|
3133
3015
|
error: i ?? void 0,
|
|
3134
3016
|
complete: n ?? void 0
|
|
@@ -3198,8 +3080,8 @@ function Lg(r, e) {
|
|
|
3198
3080
|
}));
|
|
3199
3081
|
});
|
|
3200
3082
|
}
|
|
3201
|
-
function
|
|
3202
|
-
return e === void 0 && (e = wg), r = r ??
|
|
3083
|
+
function Pg(r, e) {
|
|
3084
|
+
return e === void 0 && (e = wg), r = r ?? Ig, gr(function(t, i) {
|
|
3203
3085
|
var n, s = !0;
|
|
3204
3086
|
t.subscribe(fr(i, function(a) {
|
|
3205
3087
|
var o = e(a);
|
|
@@ -3207,7 +3089,7 @@ function Ig(r, e) {
|
|
|
3207
3089
|
}));
|
|
3208
3090
|
});
|
|
3209
3091
|
}
|
|
3210
|
-
function
|
|
3092
|
+
function Ig(r, e) {
|
|
3211
3093
|
return r === e;
|
|
3212
3094
|
}
|
|
3213
3095
|
class Rg extends mr {
|
|
@@ -3226,7 +3108,7 @@ class Rg extends mr {
|
|
|
3226
3108
|
selectStore(e) {
|
|
3227
3109
|
return this.pipe(
|
|
3228
3110
|
Lg(e),
|
|
3229
|
-
|
|
3111
|
+
Pg((t, i) => u.isEqual(t, i))
|
|
3230
3112
|
);
|
|
3231
3113
|
}
|
|
3232
3114
|
/**
|
|
@@ -3349,7 +3231,7 @@ class Mg {
|
|
|
3349
3231
|
};
|
|
3350
3232
|
}
|
|
3351
3233
|
}
|
|
3352
|
-
const
|
|
3234
|
+
const Bg = 750;
|
|
3353
3235
|
class Kg extends _r {
|
|
3354
3236
|
constructor(e, t) {
|
|
3355
3237
|
super(e), this._configuration = e, Object.setPrototypeOf(this, new.target.prototype), this.initOgmaLinkuriousParser(!0, t);
|
|
@@ -3377,7 +3259,7 @@ class Kg extends _r {
|
|
|
3377
3259
|
enabled: !1
|
|
3378
3260
|
}
|
|
3379
3261
|
}
|
|
3380
|
-
}), this._reactive === void 0 ? (this._reactive = new Mg(this), this.store = this._reactive.store) : this._reactive.listenToSelectionEvents(), this.initSelection(), this.setConfigOgma(this._configuration, e, t), this.LKTransformation = new jg(this), this.LkNodeGroupingTransformation = new J(this), this.LKStyles.setNodesDefaultHalo(), this.LKStyles.setEdgesDefaultHalo(), this.LKStyles.
|
|
3262
|
+
}), this._reactive === void 0 ? (this._reactive = new Mg(this), this.store = this._reactive.store) : this._reactive.listenToSelectionEvents(), this.initSelection(), this.setConfigOgma(this._configuration, e, t), this.LKTransformation = new jg(this), this.LkNodeGroupingTransformation = new J(this), this.LKStyles.setNodesDefaultHalo(), this.LKStyles.setEdgesDefaultHalo(), this.LKStyles.refreshCounterBadgeClass(), this.LKStyles.setFilterClass();
|
|
3381
3263
|
}
|
|
3382
3264
|
/**
|
|
3383
3265
|
* Initialize selection behavior
|
|
@@ -3442,16 +3324,16 @@ class Kg extends _r {
|
|
|
3442
3324
|
async init(e) {
|
|
3443
3325
|
this.clearGraph();
|
|
3444
3326
|
let t, i = [];
|
|
3445
|
-
const n = e.nodes.map((a) => (a.attributes.selected && (t =
|
|
3327
|
+
const n = e.nodes.map((a) => (a.attributes.selected && (t = P.NODE, i.push(a.id)), delete a.attributes.selected, a)), s = e.edges.map((a) => (a.attributes !== void 0 && (a.attributes.selected && ((t === void 0 || t === P.NODE) && (t = P.EDGE, i = []), i.push(a.id)), delete a.attributes.selected), a));
|
|
3446
3328
|
await this.addGraphAfterValidation({
|
|
3447
3329
|
nodes: n,
|
|
3448
3330
|
edges: s
|
|
3449
|
-
}), t ===
|
|
3331
|
+
}), t === P.NODE ? this.getNodes(i).setSelected(!0) : t === P.EDGE && this.getEdges(i).setSelected(!0);
|
|
3450
3332
|
}
|
|
3451
3333
|
async initVisualization(e) {
|
|
3452
3334
|
await this.init(e);
|
|
3453
3335
|
const t = f.sanitizeStylesIndex(e.design.styles);
|
|
3454
|
-
this.LKStyles.initNodeColors(t.node), this.LKStyles.initNodesIcons(t.node), this.LKStyles.initNodesSizes(t.node), this.LKStyles.initNodesShapes(t.node), this.LKStyles.initEdgesWidth(t.edge), this.LKStyles.initEdgesShape(t.edge), this.LKStyles.initEdgesColor(t.edge), await this.LKCaptions.initVizCaptions({
|
|
3336
|
+
this.LKStyles.initNodeColors(t.node), this.LKStyles.initNodesIcons(t.node), this.LKStyles.initNodesSizes(t.node), this.LKStyles.initNodesShapes(t.node), this.LKStyles.initEdgesWidth(t.edge), this.LKStyles.initEdgesShape(t.edge), this.LKStyles.initEdgesColor(t.edge), await this.LKStyles.initBadges(t.badges), await this.LKCaptions.initVizCaptions({
|
|
3455
3337
|
node: e.nodeFields.captions || {},
|
|
3456
3338
|
edge: e.edgeFields.captions || {}
|
|
3457
3339
|
}), this.LKTransformation.groupedEdges = e.edgeGrouping, await this.LKTransformation.initTransformation(), this.LKTransformation.initEdgeGroupingStyle();
|
|
@@ -3539,12 +3421,152 @@ class Kg extends _r {
|
|
|
3539
3421
|
this.getSelectedNodes().setSelected(!1), this.getSelectedEdges().setSelected(!1);
|
|
3540
3422
|
}
|
|
3541
3423
|
}
|
|
3542
|
-
const
|
|
3424
|
+
const xe = {
|
|
3425
|
+
lightsalmon: { hex: "#FFA07A", rgb: "rbg(255,160,122)" },
|
|
3426
|
+
salmon: { hex: "#FA8072", rgb: "rgb(250,128,114)" },
|
|
3427
|
+
darksalmon: { hex: "#E9967A", rgb: "rgb(233,150,122)" },
|
|
3428
|
+
lightcoral: { hex: "#F08080", rgb: "rgb(240,128,128)" },
|
|
3429
|
+
indianred: { hex: "#CD5C5C", rgb: "rgb(205,92,92)" },
|
|
3430
|
+
crimson: { hex: "#DC143C", rgb: "rgb(220,20,60)" },
|
|
3431
|
+
firebrick: { hex: "#B22222", rgb: "rgb(178,34,34)" },
|
|
3432
|
+
red: { hex: "#FF0000", rgb: "rgb(255,0,0)" },
|
|
3433
|
+
darkred: { hex: "#8B0000", rgb: "rgb(139,0,0)" },
|
|
3434
|
+
coral: { hex: "#FF7F50", rgb: "rgb(255,127,80)" },
|
|
3435
|
+
tomato: { hex: "#FF6347", rgb: "rgb(255,99,71)" },
|
|
3436
|
+
orangered: { hex: "#FF4500", rgb: "rgb(255,69,0)" },
|
|
3437
|
+
gold: { hex: "#FFD700", rgb: "rgb(255,215,0)" },
|
|
3438
|
+
orange: { hex: "#FFA500", rgb: "rgb(255,165,0)" },
|
|
3439
|
+
darkorange: { hex: "#FF8C00", rgb: "rgb(255,140,0)" },
|
|
3440
|
+
lightyellow: { hex: "#FFFFE0", rgb: "rgb(255,255,224)" },
|
|
3441
|
+
lemonchiffon: { hex: "#FFFACD", rgb: "rgb(255,250,205)" },
|
|
3442
|
+
lightgoldenrodyellow: { hex: "#FAFAD2", rgb: "rgb(250,250,210)" },
|
|
3443
|
+
papayawhip: { hex: "#FFEFD5", rgb: "rgb(255,239,213)" },
|
|
3444
|
+
moccasin: { hex: "#FFE4B5", rgb: "rgb(255,228,181)" },
|
|
3445
|
+
peachpuff: { hex: "#FFDAB9", rgb: "rgb(255,218,185)" },
|
|
3446
|
+
palegoldenrod: { hex: "#EEE8AA", rgb: "rgb(238,232,170)" },
|
|
3447
|
+
khaki: { hex: "#F0E68C", rgb: "rgb(240,230,140)" },
|
|
3448
|
+
darkkhaki: { hex: "#BDB76B", rgb: "rgb(189,183,107)" },
|
|
3449
|
+
yellow: { hex: "#FFFF00", rgb: "rgb(255,255,0)" },
|
|
3450
|
+
lawngreen: { hex: "#7CFC00", rgb: "rgb(124,252,0)" },
|
|
3451
|
+
chartreuse: { hex: "#7FFF00", rgb: "rgb(127,255,0)" },
|
|
3452
|
+
limegreen: { hex: "#32CD32", rgb: "rgb(50,205,50)" },
|
|
3453
|
+
lime: { hex: "#00FF00", rgb: "rgb(0.255.0)" },
|
|
3454
|
+
forestgreen: { hex: "#228B22", rgb: "rgb(34,139,34)" },
|
|
3455
|
+
green: { hex: "#008000", rgb: "rgb(0,128,0)" },
|
|
3456
|
+
darkgreen: { hex: "#006400", rgb: "rgb(0,100,0)" },
|
|
3457
|
+
greenyellow: { hex: "#ADFF2F", rgb: "rgb(173,255,47)" },
|
|
3458
|
+
yellowgreen: { hex: "#9ACD32", rgb: "rgb(154,205,50)" },
|
|
3459
|
+
springgreen: { hex: "#00FF7F", rgb: "rgb(0,255,127)" },
|
|
3460
|
+
mediumspringgreen: { hex: "#00FA9A", rgb: "rgb(0,250,154)" },
|
|
3461
|
+
lightgreen: { hex: "#90EE90", rgb: "rgb(144,238,144)" },
|
|
3462
|
+
palegreen: { hex: "#98FB98", rgb: "rgb(152,251,152)" },
|
|
3463
|
+
darkseagreen: { hex: "#8FBC8F", rgb: "rgb(143,188,143)" },
|
|
3464
|
+
mediumseagreen: { hex: "#3CB371", rgb: "rgb(60,179,113)" },
|
|
3465
|
+
seagreen: { hex: "#2E8B57", rgb: "rgb(46,139,87)" },
|
|
3466
|
+
olive: { hex: "#808000", rgb: "rgb(128,128,0)" },
|
|
3467
|
+
darkolivegreen: { hex: "#556B2F", rgb: "rgb(85,107,47)" },
|
|
3468
|
+
olivedrab: { hex: "#6B8E23", rgb: "rgb(107,142,35)" },
|
|
3469
|
+
lightcyan: { hex: "#E0FFFF", rgb: "rgb(224,255,255)" },
|
|
3470
|
+
cyan: { hex: "#00FFFF", rgb: "rgb(0,255,255)" },
|
|
3471
|
+
aqua: { hex: "#00FFFF", rgb: "rgb(0,255,255)" },
|
|
3472
|
+
aquamarine: { hex: "#7FFFD4", rgb: "rgb(127,255,212)" },
|
|
3473
|
+
mediumaquamarine: { hex: "#66CDAA", rgb: "rgb(102,205,170)" },
|
|
3474
|
+
paleturquoise: { hex: "#AFEEEE", rgb: "rgb(175,238,238)" },
|
|
3475
|
+
turquoise: { hex: "#40E0D0", rgb: "rgb(64,224,208)" },
|
|
3476
|
+
mediumturquoise: { hex: "#48D1CC", rgb: "rgb(72,209,204)" },
|
|
3477
|
+
darkturquoise: { hex: "#00CED1", rgb: "rgb(0,206,209)" },
|
|
3478
|
+
lightseagreen: { hex: "#20B2AA", rgb: "rgb(32,178,170)" },
|
|
3479
|
+
cadetblue: { hex: "#5F9EA0", rgb: "rgb(95,158,160)" },
|
|
3480
|
+
darkcyan: { hex: "#008B8B", rgb: "rgb(0,139,139)" },
|
|
3481
|
+
teal: { hex: "#008080", rgb: "rgb(0,128,128)" },
|
|
3482
|
+
powderblue: { hex: "#B0E0E6", rgb: "rgb(176,224,230)" },
|
|
3483
|
+
lightblue: { hex: "#ADD8E6", rgb: "rgb(173,216,230)" },
|
|
3484
|
+
lightskyblue: { hex: "#87CEFA", rgb: "rgb(135,206,250)" },
|
|
3485
|
+
skyblue: { hex: "#87CEEB", rgb: "rgb(135,206,235)" },
|
|
3486
|
+
deepskyblue: { hex: "#00BFFF", rgb: "rgb(0,191,255)" },
|
|
3487
|
+
lightsteelblue: { hex: "#B0C4DE", rgb: "rgb(176,196,222)" },
|
|
3488
|
+
dodgerblue: { hex: "#1E90FF", rgb: "rgb(30,144,255)" },
|
|
3489
|
+
cornflowerblue: { hex: "#6495ED", rgb: "rgb(100,149,237)" },
|
|
3490
|
+
steelblue: { hex: "#4682B4", rgb: "rgb(70,130,180)" },
|
|
3491
|
+
royalblue: { hex: "#4169E1", rgb: "rgb(65,105,225)" },
|
|
3492
|
+
blue: { hex: "#0000FF", rgb: "rgb(0,0,255)" },
|
|
3493
|
+
mediumblue: { hex: "#0000CD", rgb: "rgb(0,0,205)" },
|
|
3494
|
+
darkblue: { hex: "#00008B", rgb: "rgb(0,0,139)" },
|
|
3495
|
+
navy: { hex: "#000080", rgb: "rgb(0,0,128)" },
|
|
3496
|
+
midnightblue: { hex: "#191970", rgb: "rgb(25,25,112)" },
|
|
3497
|
+
mediumslateblue: { hex: "#7B68EE", rgb: "rgb(123,104,238)" },
|
|
3498
|
+
slateblue: { hex: "#6A5ACD", rgb: "rgb(106,90,205)" },
|
|
3499
|
+
darkslateblue: { hex: "#483D8B", rgb: "rgb(72,61,139)" },
|
|
3500
|
+
lavender: { hex: "#E6E6FA", rgb: "rgb(230,230,250)" },
|
|
3501
|
+
thistle: { hex: "#D8BFD8", rgb: "rgb(216,191,216)" },
|
|
3502
|
+
plum: { hex: "#DDA0DD", rgb: "rgb(221,160,221)" },
|
|
3503
|
+
violet: { hex: "#EE82EE", rgb: "rgb(238,130,238)" },
|
|
3504
|
+
orchid: { hex: "#DA70D6", rgb: "rgb(218,112,214)" },
|
|
3505
|
+
fuchsia: { hex: "#FF00FF", rgb: "rgb(255,0,255)" },
|
|
3506
|
+
magenta: { hex: "#FF00FF", rgb: "rgb(255,0,255)" },
|
|
3507
|
+
mediumorchid: { hex: "#BA55D3", rgb: "rgb(186,85,211)" },
|
|
3508
|
+
mediumpurple: { hex: "#9370DB", rgb: "rgb(147,112,219)" },
|
|
3509
|
+
blueviolet: { hex: "#8A2BE2", rgb: "rgb(138,43,226)" },
|
|
3510
|
+
darkviolet: { hex: "#9400D3", rgb: "rgb(148,0,211)" },
|
|
3511
|
+
darkorchid: { hex: "#9932CC", rgb: "rgb(153,50,204)" },
|
|
3512
|
+
darkmagenta: { hex: "#8B008B", rgb: "rgb(139,0,139)" },
|
|
3513
|
+
purple: { hex: "#800080", rgb: "rgb(128,0,128)" },
|
|
3514
|
+
indigo: { hex: "#4B0082", rgb: "rgb(75,0,130)" },
|
|
3515
|
+
pink: { hex: "#FFC0CB", rgb: "rgb(255,192,203)" },
|
|
3516
|
+
lightpink: { hex: "#FFB6C1", rgb: "rgb(255,182,193)" },
|
|
3517
|
+
hotpink: { hex: "#FF69B4", rgb: "rgb(255,105,180)" },
|
|
3518
|
+
deeppink: { hex: "#FF1493", rgb: "rgb(255,20,147)" },
|
|
3519
|
+
palevioletred: { hex: "#DB7093", rgb: "rgb(219,112,147)" },
|
|
3520
|
+
mediumvioletred: { hex: "#C71585", rgb: "rgb(199,21,133)" },
|
|
3521
|
+
white: { hex: "#FFFFFF", rgb: "rgb(255,255,255)" },
|
|
3522
|
+
snow: { hex: "#FFFAFA", rgb: "rgb(255,250,250)" },
|
|
3523
|
+
honeydew: { hex: "#F0FFF0", rgb: "rgb(240,255,240)" },
|
|
3524
|
+
mintcream: { hex: "#F5FFFA", rgb: "rgb(245,255,250)" },
|
|
3525
|
+
azure: { hex: "#F0FFFF", rgb: "rgb(240,255,255)" },
|
|
3526
|
+
aliceblue: { hex: "#F0F8FF", rgb: "rgb(240,248,255)" },
|
|
3527
|
+
ghostwhite: { hex: "#F8F8FF", rgb: "rgb(248,248,255)" },
|
|
3528
|
+
whitesmoke: { hex: "#F5F5F5", rgb: "rgb(245,245,245)" },
|
|
3529
|
+
seashell: { hex: "#FFF5EE", rgb: "rgb(255,245,238)" },
|
|
3530
|
+
beige: { hex: "#F5F5DC", rgb: "rgb(245,245,220)" },
|
|
3531
|
+
oldlace: { hex: "#FDF5E6", rgb: "rgb(253,245,230)" },
|
|
3532
|
+
floralwhite: { hex: "#FFFAF0", rgb: "rgb(255,250,240)" },
|
|
3533
|
+
ivory: { hex: "#FFFFF0", rgb: "rgb(255,255,240)" },
|
|
3534
|
+
antiquewhite: { hex: "#FAEBD7", rgb: "rgb(250,235,215)" },
|
|
3535
|
+
linen: { hex: "#FAF0E6", rgb: "rgb(250,240,230)" },
|
|
3536
|
+
lavenderblush: { hex: "#FFF0F5", rgb: "rgb(255,240,245)" },
|
|
3537
|
+
mistyrose: { hex: "#FFE4E1", rgb: "rgb(255,228,225)" },
|
|
3538
|
+
gainsboro: { hex: "#DCDCDC", rgb: "rgb(220,220,220)" },
|
|
3539
|
+
lightgray: { hex: "#D3D3D3", rgb: "rgb(211,211,211)" },
|
|
3540
|
+
silver: { hex: "#C0C0C0", rgb: "rgb(192,192,192)" },
|
|
3541
|
+
darkgray: { hex: "#A9A9A9", rgb: "rgb(169,169,169)" },
|
|
3542
|
+
gray: { hex: "#808080", rgb: "rgb(128,128,128)" },
|
|
3543
|
+
dimgray: { hex: "#696969", rgb: "rgb(105,105,105)" },
|
|
3544
|
+
lightslategray: { hex: "#778899", rgb: "rgb(119,136,153)" },
|
|
3545
|
+
slategray: { hex: "#708090", rgb: "rgb(112,128,144)" },
|
|
3546
|
+
darkslategray: { hex: "#2F4F4F", rgb: "rgb(47,79,79)" },
|
|
3547
|
+
black: { hex: "#000000", rgb: "rgb(0,0,0)" },
|
|
3548
|
+
cornsilk: { hex: "#FFF8DC", rgb: "rgb(255,248,220)" },
|
|
3549
|
+
blanchedalmond: { hex: "#FFEBCD", rgb: "rgb(255,235,205)" },
|
|
3550
|
+
bisque: { hex: "#FFE4C4", rgb: "rgb(255,228,196)" },
|
|
3551
|
+
navajowhite: { hex: "#FFDEAD", rgb: "rgb(255,222,173)" },
|
|
3552
|
+
wheat: { hex: "#F5DEB3", rgb: "rgb(245,222,179)" },
|
|
3553
|
+
burlywood: { hex: "#DEB887", rgb: "rgb(222,184,135)" },
|
|
3554
|
+
tan: { hex: "#D2B48C", rgb: "rgb(210,180,140)" },
|
|
3555
|
+
rosybrown: { hex: "#BC8F8F", rgb: "rgb(188,143,143)" },
|
|
3556
|
+
sandybrown: { hex: "#F4A460", rgb: "rgb(244,164,96)" },
|
|
3557
|
+
goldenrod: { hex: "#DAA520", rgb: "rgb(218,165,32)" },
|
|
3558
|
+
peru: { hex: "#CD853F", rgb: "rgb(205,133,63)" },
|
|
3559
|
+
chocolate: { hex: "#D2691E", rgb: "rgb(210,105,30)" },
|
|
3560
|
+
saddlebrown: { hex: "#8B4513", rgb: "rgb(139,69,19)" },
|
|
3561
|
+
sienna: { hex: "#A0522D", rgb: "rgb(160,82,45)" },
|
|
3562
|
+
brown: { hex: "#A52A2A", rgb: "rgb(165,42,42)" },
|
|
3563
|
+
maroon: { hex: "#800000", rgb: "rgb(128,0,0)" }
|
|
3564
|
+
}, Gg = {
|
|
3543
3565
|
steps: 250,
|
|
3544
3566
|
alignSiblings: !0,
|
|
3545
3567
|
charge: 20,
|
|
3546
3568
|
theta: 0.34,
|
|
3547
|
-
duration:
|
|
3569
|
+
duration: Bg,
|
|
3548
3570
|
gravity: 0.0475,
|
|
3549
3571
|
gpu: !0
|
|
3550
3572
|
};
|
|
@@ -3589,8 +3611,8 @@ class j {
|
|
|
3589
3611
|
e.length < 5 && (e += e.slice(1)), e = e.replace("#", "");
|
|
3590
3612
|
const d = parseInt(e[0].toString() + e[1].toString(), 16), c = parseInt(e[2].toString() + e[3].toString(), 16), g = parseInt(e[4].toString() + e[5].toString(), 16);
|
|
3591
3613
|
s = `rgb(${d}, ${c}, ${g})`;
|
|
3592
|
-
} else if (i.test(e) || n.test(e) ||
|
|
3593
|
-
s = u.isDefined(
|
|
3614
|
+
} else if (i.test(e) || n.test(e) || xe[e.toLowerCase()] !== void 0)
|
|
3615
|
+
s = u.isDefined(xe[e.toLowerCase()]) ? xe[e.toLowerCase()].rgb : e;
|
|
3594
3616
|
else
|
|
3595
3617
|
return !0;
|
|
3596
3618
|
const [a, o, l] = /rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(,(?:0|1|0?\.\d+))?\)/.exec(s.replace(/\s/g, "")).slice(1, 4);
|
|
@@ -3638,7 +3660,7 @@ class j {
|
|
|
3638
3660
|
e.setData("collapsed", t);
|
|
3639
3661
|
}
|
|
3640
3662
|
}
|
|
3641
|
-
const
|
|
3663
|
+
const Pe = "LKE_NODE_GROUPING_EDGE";
|
|
3642
3664
|
class J {
|
|
3643
3665
|
constructor(e) {
|
|
3644
3666
|
this._collapsedDefaultValue = !1, this._nodeGroupingAttributes = [], this._ogma = e;
|
|
@@ -3682,12 +3704,12 @@ class J {
|
|
|
3682
3704
|
if (t.size !== 1)
|
|
3683
3705
|
return {
|
|
3684
3706
|
layout: "force",
|
|
3685
|
-
params: { ...
|
|
3707
|
+
params: { ...Gg }
|
|
3686
3708
|
};
|
|
3687
3709
|
},
|
|
3688
3710
|
edgeGenerator: () => ({
|
|
3689
3711
|
data: {
|
|
3690
|
-
type:
|
|
3712
|
+
type: Pe
|
|
3691
3713
|
}
|
|
3692
3714
|
}),
|
|
3693
3715
|
showContents: (e) => !j.isGroupCollapsed(e),
|
|
@@ -3739,7 +3761,7 @@ class J {
|
|
|
3739
3761
|
var i;
|
|
3740
3762
|
const t = (i = e.getSubNodes().filter((n) => !n.hasClass("filtered"))) == null ? void 0 : i.size;
|
|
3741
3763
|
return {
|
|
3742
|
-
color:
|
|
3764
|
+
color: le,
|
|
3743
3765
|
minVisibleSize: 20,
|
|
3744
3766
|
stroke: {
|
|
3745
3767
|
width: 2,
|
|
@@ -3748,13 +3770,13 @@ class J {
|
|
|
3748
3770
|
text: {
|
|
3749
3771
|
font: u.isDefined(this._ogma.LKStyles.nodeFont) ? this._ogma.LKStyles.nodeFont : cr,
|
|
3750
3772
|
scale: 0.4,
|
|
3751
|
-
color:
|
|
3773
|
+
color: ue,
|
|
3752
3774
|
content: `x${t}`
|
|
3753
3775
|
}
|
|
3754
3776
|
};
|
|
3755
3777
|
},
|
|
3756
3778
|
topLeft: () => ({
|
|
3757
|
-
color:
|
|
3779
|
+
color: le,
|
|
3758
3780
|
minVisibleSize: 20,
|
|
3759
3781
|
stroke: {
|
|
3760
3782
|
width: 2,
|
|
@@ -3763,7 +3785,7 @@ class J {
|
|
|
3763
3785
|
text: {
|
|
3764
3786
|
font: "FontAwesome",
|
|
3765
3787
|
scale: 0.4,
|
|
3766
|
-
color:
|
|
3788
|
+
color: ue,
|
|
3767
3789
|
content: ""
|
|
3768
3790
|
}
|
|
3769
3791
|
})
|
|
@@ -3867,10 +3889,7 @@ class J {
|
|
|
3867
3889
|
*/
|
|
3868
3890
|
async _unpinNodes(e) {
|
|
3869
3891
|
await Promise.all(
|
|
3870
|
-
e.map((t) =>
|
|
3871
|
-
if (t !== null)
|
|
3872
|
-
return t.setAttribute("layoutable", !0);
|
|
3873
|
-
})
|
|
3892
|
+
e.map((t) => t !== null ? t.setAttribute("layoutable", !0) : Promise.resolve())
|
|
3874
3893
|
);
|
|
3875
3894
|
}
|
|
3876
3895
|
/**
|
|
@@ -3988,7 +4007,7 @@ class jg {
|
|
|
3988
4007
|
...this.edgeGroupStyle,
|
|
3989
4008
|
text: {
|
|
3990
4009
|
content: (e) => {
|
|
3991
|
-
if (e !== void 0 && e.getSubEdges() !== null && e.getData("type") !==
|
|
4010
|
+
if (e !== void 0 && e.getSubEdges() !== null && e.getData("type") !== Pe) {
|
|
3992
4011
|
const t = e.getSubEdges().filter((i) => !i.hasClass("filtered")).size;
|
|
3993
4012
|
return `${e.getData(["properties", "originalType"])} (${t})`;
|
|
3994
4013
|
}
|
|
@@ -3996,7 +4015,7 @@ class jg {
|
|
|
3996
4015
|
style: "bold"
|
|
3997
4016
|
}
|
|
3998
4017
|
},
|
|
3999
|
-
edgeSelector: (e) => e.isVirtual() && e.getSubEdges() && e.getSubEdges().filter((t) => !t.hasClass("filtered")).size > 0 && e.getData("type") !==
|
|
4018
|
+
edgeSelector: (e) => e.isVirtual() && e.getSubEdges() && e.getSubEdges().filter((t) => !t.hasClass("filtered")).size > 0 && e.getData("type") !== Pe,
|
|
4000
4019
|
edgeDependencies: { self: { data: !0 } }
|
|
4001
4020
|
});
|
|
4002
4021
|
}
|
|
@@ -4101,7 +4120,7 @@ const qg = (r) => r.selection.size, Yg = (r) => {
|
|
|
4101
4120
|
}
|
|
4102
4121
|
}, Wg = (r) => {
|
|
4103
4122
|
if (!(!u.isDefined(r.selection) || r.selection.size === 0))
|
|
4104
|
-
return r.selection.isNode ?
|
|
4123
|
+
return r.selection.isNode ? P.NODE : P.EDGE;
|
|
4105
4124
|
}, We = (r) => u.isDefined(r.selection) && r.selection.size === 1 ? r.selection.get(0) : void 0, Jg = (r) => {
|
|
4106
4125
|
const e = We(r);
|
|
4107
4126
|
if (e !== void 0)
|
|
@@ -4122,17 +4141,18 @@ const qg = (r) => r.selection.size, Yg = (r) => {
|
|
|
4122
4141
|
return [];
|
|
4123
4142
|
}, Xg = (r) => Ug(r).length > 0;
|
|
4124
4143
|
export {
|
|
4125
|
-
|
|
4144
|
+
Bg as ANIMATION_DURATION,
|
|
4145
|
+
le as BADGE_COLOR,
|
|
4126
4146
|
E as BASE_GREY,
|
|
4127
4147
|
N as Captions,
|
|
4128
4148
|
Cg as CaptionsViz,
|
|
4129
4149
|
W as EdgeAttributes,
|
|
4130
4150
|
Lt as FILTER_OPACITY,
|
|
4131
|
-
|
|
4151
|
+
Gg as FORCE_LAYOUT_CONFIG,
|
|
4132
4152
|
jt as Filters,
|
|
4133
|
-
|
|
4153
|
+
xe as HTML_COLORS,
|
|
4134
4154
|
A as ItemAttributes,
|
|
4135
|
-
|
|
4155
|
+
Pe as LKE_NODE_GROUPING_EDGE,
|
|
4136
4156
|
Kg as LKOgma,
|
|
4137
4157
|
z as NodeAttributes,
|
|
4138
4158
|
Rg as OgmaStore,
|