@linkurious/ogma-linkurious-parser 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +102 -71
- package/dist/index.mjs.map +1 -1
- package/dist/ogma/features/nodeGrouping.d.ts +5 -1
- package/dist/ogma/features/reactive.d.ts +1 -1
- package/dist/ogma/features/selectors.d.ts +1 -1
- package/dist/ogma/features/transformations.d.ts +1 -1
- package/dist/ogma/index.d.ts +14 -1
- package/dist/styles/edgeAttributes.d.ts +1 -1
- package/dist/styles/itemAttributes.d.ts +1 -1
- package/dist/styles/nodeAttributes.d.ts +1 -1
- package/dist/tools/ogmaTool.d.ts +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CurrencyFormat as G, PropertyTypeName as yr, AutoRangeScale as Vt, OgmaEdgeShape as vr, SelectorType as
|
|
1
|
+
import { CurrencyFormat as G, PropertyTypeName as yr, AutoRangeScale as Vt, OgmaEdgeShape as vr, SelectorType as S, ForceLayoutMode as _r, EntityType as I, NodeGroupingType as Y } from "@linkurious/rest-client";
|
|
2
2
|
import mr from "@linkurious/ogma";
|
|
3
3
|
import { BehaviorSubject as Cr } from "rxjs";
|
|
4
4
|
var re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function Ie(r) {
|
|
6
6
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function Sr() {
|
|
9
9
|
this.__data__ = [], this.size = 0;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
11
|
+
var Ar = Sr;
|
|
12
12
|
function xr(r, e) {
|
|
13
13
|
return r === e || r !== r && e !== e;
|
|
14
14
|
}
|
|
@@ -41,7 +41,7 @@ function Gr(r, e) {
|
|
|
41
41
|
var t = this.__data__, i = Br(t, r);
|
|
42
42
|
return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
|
|
43
43
|
}
|
|
44
|
-
var zr = Gr, jr =
|
|
44
|
+
var zr = Gr, jr = Ar, Ur = wr, Vr = Pr, kr = Rr, Hr = zr;
|
|
45
45
|
function V(r) {
|
|
46
46
|
var e = -1, t = r == null ? 0 : r.length;
|
|
47
47
|
for (this.clear(); ++e < t; ) {
|
|
@@ -95,12 +95,12 @@ function mi(r) {
|
|
|
95
95
|
var e = typeof r;
|
|
96
96
|
return r != null && (e == "object" || e == "function");
|
|
97
97
|
}
|
|
98
|
-
var de = mi, Ci = ee,
|
|
98
|
+
var de = mi, Ci = ee, Si = de, Ai = "[object AsyncFunction]", xi = "[object Function]", Ei = "[object GeneratorFunction]", Fi = "[object Proxy]";
|
|
99
99
|
function $i(r) {
|
|
100
|
-
if (!
|
|
100
|
+
if (!Si(r))
|
|
101
101
|
return !1;
|
|
102
102
|
var e = Ci(r);
|
|
103
|
-
return e == xi || e == Ei || e ==
|
|
103
|
+
return e == xi || e == Ei || e == Ai || e == Fi;
|
|
104
104
|
}
|
|
105
105
|
var Kt = $i, Ti = w, Ni = Ti["__core-js_shared__"], Di = Ni, ve = Di, Qe = function() {
|
|
106
106
|
var r = /[^.]+$/.exec(ve && ve.keys && ve.keys.IE_PROTO || "");
|
|
@@ -164,12 +164,12 @@ function _n(r) {
|
|
|
164
164
|
var e = this.__data__;
|
|
165
165
|
return bn ? e[r] !== void 0 : vn.call(e, r);
|
|
166
166
|
}
|
|
167
|
-
var mn = _n, Cn = ge,
|
|
168
|
-
function
|
|
167
|
+
var mn = _n, Cn = ge, Sn = "__lodash_hash_undefined__";
|
|
168
|
+
function An(r, e) {
|
|
169
169
|
var t = this.__data__;
|
|
170
|
-
return this.size += this.has(r) ? 0 : 1, t[r] = Cn && e === void 0 ?
|
|
170
|
+
return this.size += this.has(r) ? 0 : 1, t[r] = Cn && e === void 0 ? Sn : e, this;
|
|
171
171
|
}
|
|
172
|
-
var xn =
|
|
172
|
+
var xn = An, En = on, Fn = ln, $n = pn, Tn = mn, Nn = xn;
|
|
173
173
|
function k(r) {
|
|
174
174
|
var e = -1, t = r == null ? 0 : r.length;
|
|
175
175
|
for (this.clear(); ++e < t; ) {
|
|
@@ -268,18 +268,18 @@ function se(r) {
|
|
|
268
268
|
}
|
|
269
269
|
se.prototype.add = se.prototype.push = ms;
|
|
270
270
|
se.prototype.has = Cs;
|
|
271
|
-
var
|
|
272
|
-
function
|
|
271
|
+
var Ss = se;
|
|
272
|
+
function As(r, e) {
|
|
273
273
|
for (var t = -1, i = r == null ? 0 : r.length; ++t < i; )
|
|
274
274
|
if (e(r[t], t, r))
|
|
275
275
|
return !0;
|
|
276
276
|
return !1;
|
|
277
277
|
}
|
|
278
|
-
var xs =
|
|
278
|
+
var xs = As;
|
|
279
279
|
function Es(r, e) {
|
|
280
280
|
return r.has(e);
|
|
281
281
|
}
|
|
282
|
-
var Fs = Es, $s =
|
|
282
|
+
var Fs = Es, $s = Ss, Ts = xs, Ns = Fs, Ds = 1, ws = 2;
|
|
283
283
|
function Os(r, e, t, i, n, s) {
|
|
284
284
|
var a = t & Ds, o = r.length, l = e.length;
|
|
285
285
|
if (o != l && !(a && l > o))
|
|
@@ -291,9 +291,9 @@ function Os(r, e, t, i, n, s) {
|
|
|
291
291
|
for (s.set(r, e), s.set(e, r); ++g < o; ) {
|
|
292
292
|
var m = r[g], f = e[g];
|
|
293
293
|
if (i)
|
|
294
|
-
var
|
|
295
|
-
if (
|
|
296
|
-
if (
|
|
294
|
+
var A = a ? i(f, m, g, e, r, s) : i(m, f, g, r, e, s);
|
|
295
|
+
if (A !== void 0) {
|
|
296
|
+
if (A)
|
|
297
297
|
continue;
|
|
298
298
|
h = !1;
|
|
299
299
|
break;
|
|
@@ -396,11 +396,11 @@ function Ca(r, e) {
|
|
|
396
396
|
i[t] = e(t);
|
|
397
397
|
return i;
|
|
398
398
|
}
|
|
399
|
-
var
|
|
400
|
-
function
|
|
399
|
+
var Sa = Ca;
|
|
400
|
+
function Aa(r) {
|
|
401
401
|
return r != null && typeof r == "object";
|
|
402
402
|
}
|
|
403
|
-
var te =
|
|
403
|
+
var te = Aa, xa = ee, Ea = te, Fa = "[object Arguments]";
|
|
404
404
|
function $a(r) {
|
|
405
405
|
return Ea(r) && xa(r) == Fa;
|
|
406
406
|
}
|
|
@@ -451,9 +451,9 @@ oe.exports;
|
|
|
451
451
|
}();
|
|
452
452
|
r.exports = o;
|
|
453
453
|
})(oe, oe.exports);
|
|
454
|
-
var yo = oe.exports, vo = po, _o = Qt, ot = yo, ut = ot && ot.isTypedArray, mo = ut ? _o(ut) : vo, er = mo, Co =
|
|
454
|
+
var yo = oe.exports, vo = po, _o = Qt, ot = yo, ut = ot && ot.isTypedArray, mo = ut ? _o(ut) : vo, er = mo, Co = Sa, So = Ge, Ao = T, xo = Xt, Eo = ze, Fo = er, $o = Object.prototype, To = $o.hasOwnProperty;
|
|
455
455
|
function No(r, e) {
|
|
456
|
-
var t =
|
|
456
|
+
var t = Ao(r), i = !t && So(r), n = !t && !i && xo(r), s = !t && !i && !n && Fo(r), a = t || i || n || s, o = a ? Co(r.length, String) : [], l = o.length;
|
|
457
457
|
for (var c in r)
|
|
458
458
|
(e || To.call(r, c)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
459
459
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -509,7 +509,7 @@ function au(r, e, t, i, n, s) {
|
|
|
509
509
|
return y == e && m == r;
|
|
510
510
|
var f = !0;
|
|
511
511
|
s.set(r, e), s.set(e, r);
|
|
512
|
-
for (var
|
|
512
|
+
for (var A = a; ++g < l; ) {
|
|
513
513
|
h = o[g];
|
|
514
514
|
var x = r[h], E = e[h];
|
|
515
515
|
if (i)
|
|
@@ -518,15 +518,15 @@ function au(r, e, t, i, n, s) {
|
|
|
518
518
|
f = !1;
|
|
519
519
|
break;
|
|
520
520
|
}
|
|
521
|
-
|
|
521
|
+
A || (A = h == "constructor");
|
|
522
522
|
}
|
|
523
|
-
if (f && !
|
|
523
|
+
if (f && !A) {
|
|
524
524
|
var v = r.constructor, L = e.constructor;
|
|
525
525
|
v != L && "constructor" in r && "constructor" in e && !(typeof v == "function" && v instanceof v && typeof L == "function" && L instanceof L) && (f = !1);
|
|
526
526
|
}
|
|
527
527
|
return s.delete(r), s.delete(e), f;
|
|
528
528
|
}
|
|
529
|
-
var ou = au, uu = R, lu = w, cu = uu(lu, "DataView"), du = cu, gu = R, hu = w, fu = gu(hu, "Promise"), pu = fu, bu = R, yu = w, vu = bu(yu, "Set"), _u = vu, mu = R, Cu = w,
|
|
529
|
+
var ou = au, uu = R, lu = w, cu = uu(lu, "DataView"), du = cu, gu = R, hu = w, fu = gu(hu, "Promise"), pu = fu, bu = R, yu = w, vu = bu(yu, "Set"), _u = vu, mu = R, Cu = w, Su = mu(Cu, "WeakMap"), Au = Su, Ee = du, Fe = Re, $e = pu, Te = _u, Ne = Au, tr = ee, q = qt, ct = "[object Map]", xu = "[object Object]", dt = "[object Promise]", gt = "[object Set]", ht = "[object WeakMap]", ft = "[object DataView]", Eu = q(Ee), Fu = q(Fe), $u = q($e), Tu = q(Te), Nu = q(Ne), P = tr;
|
|
530
530
|
(Ee && P(new Ee(new ArrayBuffer(1))) != ft || Fe && P(new Fe()) != ct || $e && P($e.resolve()) != dt || Te && P(new Te()) != gt || Ne && P(new Ne()) != ht) && (P = function(r) {
|
|
531
531
|
var e = tr(r), t = e == xu ? r.constructor : void 0, i = t ? q(t) : "";
|
|
532
532
|
if (i)
|
|
@@ -559,8 +559,8 @@ function Ru(r, e, t, i, n, s) {
|
|
|
559
559
|
if (!(t & Iu)) {
|
|
560
560
|
var y = d && mt.call(r, "__wrapped__"), m = g && mt.call(e, "__wrapped__");
|
|
561
561
|
if (y || m) {
|
|
562
|
-
var f = y ? r.value() : r,
|
|
563
|
-
return s || (s = new me()), n(f,
|
|
562
|
+
var f = y ? r.value() : r, A = m ? e.value() : e;
|
|
563
|
+
return s || (s = new me()), n(f, A, t, i, s);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
return h ? (s || (s = new me()), Lu(r, e, t, i, n, s)) : !1;
|
|
@@ -575,9 +575,9 @@ function ju(r, e) {
|
|
|
575
575
|
}
|
|
576
576
|
var Uu = ju;
|
|
577
577
|
const Vu = /* @__PURE__ */ Ie(Uu);
|
|
578
|
-
var
|
|
578
|
+
var St = Q, ku = Ge, Hu = T, At = St ? St.isConcatSpreadable : void 0;
|
|
579
579
|
function Ku(r) {
|
|
580
|
-
return Hu(r) || ku(r) || !!(
|
|
580
|
+
return Hu(r) || ku(r) || !!(At && r && r[At]);
|
|
581
581
|
}
|
|
582
582
|
var qu = Ku, Yu = Jt, Wu = qu;
|
|
583
583
|
function ir(r, e, t, i, n) {
|
|
@@ -642,9 +642,9 @@ function ar(r) {
|
|
|
642
642
|
var e = r + "";
|
|
643
643
|
return e == "0" && 1 / r == -Cl ? "-0" : e;
|
|
644
644
|
}
|
|
645
|
-
var
|
|
645
|
+
var Sl = ar, Al = Sl;
|
|
646
646
|
function xl(r) {
|
|
647
|
-
return r == null ? "" :
|
|
647
|
+
return r == null ? "" : Al(r);
|
|
648
648
|
}
|
|
649
649
|
var El = xl, Fl = T, $l = ke, Tl = yl, Nl = El;
|
|
650
650
|
function Dl(r, e) {
|
|
@@ -739,9 +739,9 @@ var hc = gc, fc = sc, pc = hc;
|
|
|
739
739
|
function bc(r, e) {
|
|
740
740
|
return r != null && pc(r, e, fc);
|
|
741
741
|
}
|
|
742
|
-
var yc = bc, vc = Ve, _c = ic, mc = yc, Cc = ke,
|
|
742
|
+
var yc = bc, vc = Ve, _c = ic, mc = yc, Cc = ke, Sc = ur, Ac = lr, xc = be, Ec = 1, Fc = 2;
|
|
743
743
|
function $c(r, e) {
|
|
744
|
-
return Cc(r) &&
|
|
744
|
+
return Cc(r) && Sc(e) ? Ac(xc(r), e) : function(t) {
|
|
745
745
|
var i = _c(t, r);
|
|
746
746
|
return i === void 0 && i === e ? mc(t, r) : vc(e, i, Ec | Fc);
|
|
747
747
|
};
|
|
@@ -835,7 +835,7 @@ function _d(r, e, t) {
|
|
|
835
835
|
}
|
|
836
836
|
return r.index - e.index;
|
|
837
837
|
}
|
|
838
|
-
var md = _d, Ce = nr, Cd = Ke,
|
|
838
|
+
var md = _d, Ce = nr, Cd = Ke, Sd = qc, Ad = hd, xd = pd, Ed = Qt, Fd = md, $d = ye, Td = T;
|
|
839
839
|
function Nd(r, e, t) {
|
|
840
840
|
e.length ? e = Ce(e, function(s) {
|
|
841
841
|
return Td(s) ? function(a) {
|
|
@@ -843,8 +843,8 @@ function Nd(r, e, t) {
|
|
|
843
843
|
} : s;
|
|
844
844
|
}) : e = [$d];
|
|
845
845
|
var i = -1;
|
|
846
|
-
e = Ce(e, Ed(
|
|
847
|
-
var n =
|
|
846
|
+
e = Ce(e, Ed(Sd));
|
|
847
|
+
var n = Ad(r, function(s, a, o) {
|
|
848
848
|
var l = Ce(e, function(c) {
|
|
849
849
|
return c(s);
|
|
850
850
|
});
|
|
@@ -1391,7 +1391,7 @@ var vg = dr.exports, De = {
|
|
|
1391
1391
|
var a = r.bytesToWords(s), o = s.length * 8, l = [], c = 1732584193, d = -271733879, g = -1732584194, h = 271733878, y = -1009589776;
|
|
1392
1392
|
a[o >> 5] |= 128 << 24 - o % 32, a[(o + 64 >>> 9 << 4) + 15] = o;
|
|
1393
1393
|
for (var m = 0; m < a.length; m += 16) {
|
|
1394
|
-
for (var f = c,
|
|
1394
|
+
for (var f = c, A = d, x = g, E = h, B = y, v = 0; v < 80; v++) {
|
|
1395
1395
|
if (v < 16)
|
|
1396
1396
|
l[v] = a[m + v];
|
|
1397
1397
|
else {
|
|
@@ -1401,7 +1401,7 @@ var vg = dr.exports, De = {
|
|
|
1401
1401
|
var br = (c << 5 | c >>> 27) + y + (l[v] >>> 0) + (v < 20 ? (d & g | ~d & h) + 1518500249 : v < 40 ? (d ^ g ^ h) + 1859775393 : v < 60 ? (d & g | d & h | g & h) - 1894007588 : (d ^ g ^ h) - 899497514);
|
|
1402
1402
|
y = h, h = g, g = d << 30 | d >>> 2, d = c, c = br;
|
|
1403
1403
|
}
|
|
1404
|
-
c += f, d +=
|
|
1404
|
+
c += f, d += A, g += x, h += E, y += B;
|
|
1405
1405
|
}
|
|
1406
1406
|
return [c, d, g, h, y];
|
|
1407
1407
|
}, n = function(s, a) {
|
|
@@ -1796,7 +1796,7 @@ class C {
|
|
|
1796
1796
|
return u.isDefined(t) ? (e === this.itemType || !u.isDefined(this.itemType)) && u.isEqual(["properties", ...t], this.input) && u.isEqual(i, this.value) || this.type === "any" && !u.isDefined(this.input) && typeof this.style.color == "object" && this.style.color.input[1] === t[0] : u.isDefined(this.itemType) ? e === this.itemType && !u.isDefined(this.input) : !u.isDefined(this.input);
|
|
1797
1797
|
}
|
|
1798
1798
|
static inputExists(e, t) {
|
|
1799
|
-
return e !==
|
|
1799
|
+
return e !== S.ANY;
|
|
1800
1800
|
}
|
|
1801
1801
|
/**
|
|
1802
1802
|
* Return true if a style can apply to a node
|
|
@@ -1805,22 +1805,22 @@ class C {
|
|
|
1805
1805
|
const t = "categories" in e ? e.categories : [e.type];
|
|
1806
1806
|
let i = !1;
|
|
1807
1807
|
switch (this.type) {
|
|
1808
|
-
case
|
|
1808
|
+
case S.ANY:
|
|
1809
1809
|
i = C.checkAny(e, this.style);
|
|
1810
1810
|
break;
|
|
1811
|
-
case
|
|
1811
|
+
case S.NO_VALUE:
|
|
1812
1812
|
C.inputExists(this.type, this.input) && (i = C.checkNoValue(e, this.input));
|
|
1813
1813
|
break;
|
|
1814
|
-
case
|
|
1814
|
+
case S.NAN:
|
|
1815
1815
|
C.inputExists(this.type, this.input) && (i = C.checkNan(e, this.input));
|
|
1816
1816
|
break;
|
|
1817
|
-
case
|
|
1817
|
+
case S.RANGE:
|
|
1818
1818
|
C.inputExists(this.type, this.input) && (i = C.checkRange(
|
|
1819
1819
|
u.getIn(e, this.input),
|
|
1820
1820
|
this.value
|
|
1821
1821
|
));
|
|
1822
1822
|
break;
|
|
1823
|
-
case
|
|
1823
|
+
case S.IS:
|
|
1824
1824
|
C.inputExists(this.type, this.input) && (i = C.checkIs(e, this.input, this.value));
|
|
1825
1825
|
break;
|
|
1826
1826
|
}
|
|
@@ -1902,7 +1902,7 @@ class C {
|
|
|
1902
1902
|
*/
|
|
1903
1903
|
getTypeColor(e) {
|
|
1904
1904
|
let t;
|
|
1905
|
-
return C.checkItemType([e], this.itemType) && this.type ===
|
|
1905
|
+
return C.checkItemType([e], this.itemType) && this.type === S.ANY && !u.isDefined(this.input) && (t = $.getTypeColor(this, e)), t;
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
var O = /* @__PURE__ */ ((r) => (r.COLOR = "color", r.ICON = "icon", r.SIZE = "size", r.IMAGE = "image", r.SHAPE = "shape", r.WIDTH = "width", r))(O || {});
|
|
@@ -2039,11 +2039,11 @@ class p {
|
|
|
2039
2039
|
static sanitizeValue(e, t) {
|
|
2040
2040
|
let i = "";
|
|
2041
2041
|
switch (e) {
|
|
2042
|
-
case
|
|
2042
|
+
case S.NO_VALUE:
|
|
2043
2043
|
return "is undefined";
|
|
2044
|
-
case
|
|
2044
|
+
case S.NAN:
|
|
2045
2045
|
return "is not an number";
|
|
2046
|
-
case
|
|
2046
|
+
case S.RANGE:
|
|
2047
2047
|
return Object.keys(t).forEach((n, s) => {
|
|
2048
2048
|
s > 0 && (i += " and "), i += `${n} ${t[n]}`;
|
|
2049
2049
|
}), i;
|
|
@@ -2156,12 +2156,12 @@ const gr = "'roboto', sans-serif", Z = "#FFF", Lt = 0.2, Pt = {
|
|
|
2156
2156
|
scalingMethod: "scaled",
|
|
2157
2157
|
strokeWidth: 0,
|
|
2158
2158
|
hideNonAdjacentEdges: !1
|
|
2159
|
-
},
|
|
2159
|
+
}, Sg = {
|
|
2160
2160
|
color: "#FFF",
|
|
2161
2161
|
scalingMethod: "scaled",
|
|
2162
2162
|
width: 4
|
|
2163
2163
|
}, Mt = "#000", Rt = "#7f7f7f";
|
|
2164
|
-
class
|
|
2164
|
+
class Ag {
|
|
2165
2165
|
constructor(e, t) {
|
|
2166
2166
|
this._nodeAttributes = new U({}), this._edgeAttributes = new J({}), this._ogma = e, this._defaultConfiguration = t, this._nodeAttributes.setBaseUrl(t.baseUrl);
|
|
2167
2167
|
}
|
|
@@ -2259,7 +2259,7 @@ class Sg {
|
|
|
2259
2259
|
edgeSelector: (e) => e && e.getSource() && e.getTarget() && !e.hasClass("filtered"),
|
|
2260
2260
|
edgeAttributes: {
|
|
2261
2261
|
halo: (e) => e && !e.hasClass("filtered") && (e.isSelected() || e.getSource().isSelected() || e.getTarget().isSelected()) ? {
|
|
2262
|
-
...
|
|
2262
|
+
...Sg,
|
|
2263
2263
|
scalingMethod: this._ogma.geo.enabled() ? "fixed" : "scaled"
|
|
2264
2264
|
} : null
|
|
2265
2265
|
},
|
|
@@ -2809,7 +2809,7 @@ function Fg(r) {
|
|
|
2809
2809
|
}, t = r(e);
|
|
2810
2810
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
2811
2811
|
}
|
|
2812
|
-
var
|
|
2812
|
+
var Se = Fg(function(r) {
|
|
2813
2813
|
return function(t) {
|
|
2814
2814
|
r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
2815
2815
|
` + t.map(function(i, n) {
|
|
@@ -2856,7 +2856,7 @@ var Ye = function() {
|
|
|
2856
2856
|
try {
|
|
2857
2857
|
d();
|
|
2858
2858
|
} catch (f) {
|
|
2859
|
-
s = f instanceof
|
|
2859
|
+
s = f instanceof Se ? f.errors : [f];
|
|
2860
2860
|
}
|
|
2861
2861
|
var g = this._finalizers;
|
|
2862
2862
|
if (g) {
|
|
@@ -2867,7 +2867,7 @@ var Ye = function() {
|
|
|
2867
2867
|
try {
|
|
2868
2868
|
zt(m);
|
|
2869
2869
|
} catch (f) {
|
|
2870
|
-
s = s ?? [], f instanceof
|
|
2870
|
+
s = s ?? [], f instanceof Se ? s = Le(Le([], Oe(s)), Oe(f.errors)) : s.push(f);
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
2873
2873
|
} catch (f) {
|
|
@@ -2881,7 +2881,7 @@ var Ye = function() {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
2883
|
if (s)
|
|
2884
|
-
throw new
|
|
2884
|
+
throw new Se(s);
|
|
2885
2885
|
}
|
|
2886
2886
|
}, r.prototype.add = function(e) {
|
|
2887
2887
|
var t;
|
|
@@ -2972,7 +2972,7 @@ var fr = function(r) {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
}, e;
|
|
2974
2974
|
}(Ye), wg = Function.prototype.bind;
|
|
2975
|
-
function
|
|
2975
|
+
function Ae(r, e) {
|
|
2976
2976
|
return wg.call(r, e);
|
|
2977
2977
|
}
|
|
2978
2978
|
var Og = function() {
|
|
@@ -3021,9 +3021,9 @@ var Og = function() {
|
|
|
3021
3021
|
s && Tg.useDeprecatedNextContext ? (o = Object.create(t), o.unsubscribe = function() {
|
|
3022
3022
|
return s.unsubscribe();
|
|
3023
3023
|
}, a = {
|
|
3024
|
-
next: t.next &&
|
|
3025
|
-
error: t.error &&
|
|
3026
|
-
complete: t.complete &&
|
|
3024
|
+
next: t.next && Ae(t.next, o),
|
|
3025
|
+
error: t.error && Ae(t.error, o),
|
|
3026
|
+
complete: t.complete && Ae(t.complete, o)
|
|
3027
3027
|
}) : a = t;
|
|
3028
3028
|
}
|
|
3029
3029
|
return s.destination = new Og(a), s;
|
|
@@ -3288,7 +3288,7 @@ class Zg extends mr {
|
|
|
3288
3288
|
}
|
|
3289
3289
|
setStyles(e, t) {
|
|
3290
3290
|
var i, n, s, a;
|
|
3291
|
-
this.LKStyles = new
|
|
3291
|
+
this.LKStyles = new Ag(this, {
|
|
3292
3292
|
node: ((n = (i = e == null ? void 0 : e.options) == null ? void 0 : i.styles) == null ? void 0 : n.node) || {},
|
|
3293
3293
|
edge: ((a = (s = e == null ? void 0 : e.options) == null ? void 0 : s.styles) == null ? void 0 : a.edge) || {},
|
|
3294
3294
|
baseUrl: t
|
|
@@ -3416,6 +3416,22 @@ class Zg extends mr {
|
|
|
3416
3416
|
renderer: this._configuration.renderer
|
|
3417
3417
|
}), this.setStyles(this._configuration, i), this.setCaptions(this._configuration);
|
|
3418
3418
|
}
|
|
3419
|
+
/**
|
|
3420
|
+
* An override of the Ogma method getSelectedNodes
|
|
3421
|
+
* originally it was returning only the visible selected nodes
|
|
3422
|
+
* but we need to return all selected nodes, including the one that are part of collapsed groups
|
|
3423
|
+
*/
|
|
3424
|
+
getSelectedNodes() {
|
|
3425
|
+
return this.getNodes("all").filter((e) => e.isSelected());
|
|
3426
|
+
}
|
|
3427
|
+
/**
|
|
3428
|
+
* An override of the Ogma method clearSelection
|
|
3429
|
+
* originally it was unselecting only the visible selected nodes
|
|
3430
|
+
* but we need also to unselect invisible nodes, including the one that are part of collapsed groups
|
|
3431
|
+
*/
|
|
3432
|
+
clearSelection() {
|
|
3433
|
+
this.getSelectedNodes().setSelected(!1), this.getSelectedEdges().setSelected(!1);
|
|
3434
|
+
}
|
|
3419
3435
|
}
|
|
3420
3436
|
const xe = {
|
|
3421
3437
|
lightsalmon: { hex: "#FFA07A", rgb: "rbg(255,160,122)" },
|
|
@@ -3803,7 +3819,7 @@ class X {
|
|
|
3803
3819
|
},
|
|
3804
3820
|
nodeSelector: (e) => e.isVirtual() && D.isGroupCollapsed(e) && !e.hasClass("filtered"),
|
|
3805
3821
|
nodeDependencies: { self: { attributes: ["styleRefreshIndex"] } }
|
|
3806
|
-
});
|
|
3822
|
+
}), this._setSubSelectedClass();
|
|
3807
3823
|
}
|
|
3808
3824
|
async refreshNodeGroupingStyle() {
|
|
3809
3825
|
var e, t;
|
|
@@ -3989,8 +4005,8 @@ class X {
|
|
|
3989
4005
|
const l = e.length;
|
|
3990
4006
|
if (l === 0) return [];
|
|
3991
4007
|
if (l === 1) return [{ x: i, y: n }];
|
|
3992
|
-
const c = e.map(a).reduce((
|
|
3993
|
-
return e.map((
|
|
4008
|
+
const c = e.map(a).reduce((A, x) => Math.max(A, x), 0) * (2 + o), g = (2 * Math.PI - 2 * Math.PI / l) / Math.max(1, l - 1), h = Math.cos(g) - Math.cos(0), y = Math.sin(g) - Math.sin(0), m = Math.sqrt(c * c / (h * h + y * y)), f = Math.max(m, 0);
|
|
4009
|
+
return e.map((A, x) => {
|
|
3994
4010
|
const E = s + x * g * (t ? 1 : -1), B = f * Math.cos(E), v = f * Math.sin(E);
|
|
3995
4011
|
return {
|
|
3996
4012
|
x: i + B,
|
|
@@ -4030,6 +4046,21 @@ class X {
|
|
|
4030
4046
|
const t = this._nodeGroupingAttributes.find((i) => i.id === e);
|
|
4031
4047
|
return u.isDefined(t) && u.isDefined(t.attributes.layoutable) ? t.attributes.layoutable : !0;
|
|
4032
4048
|
}
|
|
4049
|
+
/**
|
|
4050
|
+
* Set styles for the class "filtered"
|
|
4051
|
+
*/
|
|
4052
|
+
_setSubSelectedClass() {
|
|
4053
|
+
this._ogma.styles.createClass({
|
|
4054
|
+
name: "subSelection",
|
|
4055
|
+
nodeAttributes: {
|
|
4056
|
+
halo: {
|
|
4057
|
+
width: 4,
|
|
4058
|
+
color: "#e67a8f",
|
|
4059
|
+
strokeColor: "#ccc"
|
|
4060
|
+
}
|
|
4061
|
+
}
|
|
4062
|
+
});
|
|
4063
|
+
}
|
|
4033
4064
|
}
|
|
4034
4065
|
const Hg = {
|
|
4035
4066
|
color: "#000000",
|
|
@@ -4119,15 +4150,15 @@ const _ = class _ {
|
|
|
4119
4150
|
}
|
|
4120
4151
|
static filterToFilterFunction(e, t) {
|
|
4121
4152
|
switch (e.type) {
|
|
4122
|
-
case
|
|
4153
|
+
case S.ANY:
|
|
4123
4154
|
return _.createAnyFilterFunction(e, t);
|
|
4124
|
-
case
|
|
4155
|
+
case S.IS:
|
|
4125
4156
|
return _.createIsFilterFunction(e, t);
|
|
4126
|
-
case
|
|
4157
|
+
case S.NO_VALUE:
|
|
4127
4158
|
return _.createNoValueFilterFunction(e, t);
|
|
4128
|
-
case
|
|
4159
|
+
case S.RANGE:
|
|
4129
4160
|
return _.createRangeFilterFunction(e, t);
|
|
4130
|
-
case
|
|
4161
|
+
case S.NAN:
|
|
4131
4162
|
return _.createNaNFilterFunction(e, t);
|
|
4132
4163
|
}
|
|
4133
4164
|
}
|
|
@@ -4223,7 +4254,7 @@ export {
|
|
|
4223
4254
|
mg as StyleRuleType,
|
|
4224
4255
|
p as StyleRules,
|
|
4225
4256
|
O as StyleType,
|
|
4226
|
-
|
|
4257
|
+
Ag as StylesViz,
|
|
4227
4258
|
u as Tools,
|
|
4228
4259
|
Kg as TransformationsViz,
|
|
4229
4260
|
eh as getSelectionEntity,
|