@antdv-next/x 1.2.0 → 1.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.
Files changed (130) hide show
  1. package/dist/actions/ActionsFeedback.js +1 -1
  2. package/dist/actions/ActionsItem.js +1 -1
  3. package/dist/attachments/index.js +1 -2
  4. package/dist/bubble/hooks/useCompatibleScroll.js +1 -1
  5. package/dist/code-highlighter/CodeHighlighter.js +2 -1
  6. package/dist/code-highlighter/shiki.js +1 -1
  7. package/dist/code-highlighter/style/index.d.ts +76 -4
  8. package/dist/code-highlighter/style/index.js +54 -29
  9. package/dist/folder/Folder.js +2 -1
  10. package/dist/index.umd.js +82 -49
  11. package/dist/mermaid/Mermaid.js +1 -1
  12. package/dist/package.js +1 -1
  13. package/dist/sender/components/SlotTextArea.js +3 -2
  14. package/dist/sender/components/SpeechButton/RecordingIcon.js +1 -1
  15. package/dist/theme/themes/seed.js +3 -0
  16. package/dist/thought-chain/ThoughtChain.js +2 -2
  17. package/es/Serializer-Sc9uEpQk.js +262 -0
  18. package/es/{_basePickBy-DFHEGO2M.js → _basePickBy-BL4DHvHb.js} +2 -2
  19. package/es/{_baseUniq-BlS7rXTs.js → _baseUniq-CyFYmJd-.js} +3 -3
  20. package/es/antdv-next-x.esm.js +2708 -2688
  21. package/es/{arc-BuXEd18J.js → arc-NI3ROx5X.js} +2 -2
  22. package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
  23. package/es/{architectureDiagram-2XIMDMQ5-CmfsCwJk.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +52 -52
  24. package/es/{blockDiagram-WCTKOSBZ-lJAan65A.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +20 -18
  25. package/es/{c4Diagram-IC4MRINW-B1c2x_1Q.js → c4Diagram-IC4MRINW-B7y07WFn.js} +6 -6
  26. package/es/{channel-DFgF_2F7.js → channel-CxLj88Pg.js} +1 -1
  27. package/es/{chunk-4BX2VUAB-J2N81Fpp.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
  28. package/es/{chunk-55IACEB6-DGtfGRgi.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
  29. package/es/{chunk-7R4GIKGN-QT6IorJ_.js → chunk-7R4GIKGN-mKY502R8.js} +8 -6
  30. package/es/{chunk-FMBD7UC4-DCcRjunY.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
  31. package/es/{chunk-GEFDOKGD-BWpC-zoH.js → chunk-GEFDOKGD-oBEpn5hN.js} +7 -7
  32. package/es/{chunk-GLR3WWYH-DiXcKb5Y.js → chunk-GLR3WWYH-B2D9kjtF.js} +9 -9
  33. package/es/{chunk-HHEYEP7N-Cxc7E4dX.js → chunk-HHEYEP7N-DcZkCke2.js} +2 -2
  34. package/es/{chunk-JSJVCQXG-D8_heHOp.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
  35. package/es/{chunk-KX2RTZJC-D5cc4rj6.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
  36. package/es/{chunk-KYZI473N-BHJ3T5Zv.js → chunk-KYZI473N-33-uii7Y.js} +7 -7
  37. package/es/{chunk-MX3YWQON-BxE-Aq9c.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
  38. package/es/{chunk-NQ4KR5QH-EYQBXkqP.js → chunk-NQ4KR5QH-CprADZhD.js} +7 -7
  39. package/es/{chunk-O4XLMI2P-qjOoGpnx.js → chunk-O4XLMI2P-DBAvycZ-.js} +10 -10
  40. package/es/{chunk-PQ6SQG4A-D3jtNCWN.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
  41. package/es/{chunk-PU5JKC2W-DdP8BS-S.js → chunk-PU5JKC2W-DIl8TkGX.js} +5 -5
  42. package/es/{chunk-QZHKN3VN-CW3cFN-h.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
  43. package/es/{chunk-WL4C6EOR-BDbxJyGk.js → chunk-WL4C6EOR-Bhp_3T_o.js} +12 -10
  44. package/es/{chunk-XPW4576I-B0KVSHwE.js → chunk-XPW4576I-255j2Rgd.js} +2 -2
  45. package/es/{chunk-XZSTWKYB-CucN1XvM.js → chunk-XZSTWKYB-kjAdbx6i.js} +1589 -1541
  46. package/es/{chunk-YBOYWFTD-CvaddD9G.js → chunk-YBOYWFTD-C2IdGsg8.js} +3 -3
  47. package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
  48. package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
  49. package/es/{clone-r3YukIBB.js → clone-DIGEZsKS.js} +1 -1
  50. package/es/{cose-bilkent-S5V4N54A-B5OQuIhl.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +20 -20
  51. package/es/css-CRY9BUqw.js +2 -0
  52. package/es/{cytoscape.esm-i2CZcWd-.js → cytoscape.esm-DBPri10E.js} +121 -124
  53. package/es/{dagre-5aGJFKmT.js → dagre-BHOjJWBG.js} +6 -6
  54. package/es/{dagre-KLK3FWXG-BI5QQMXo.js → dagre-KLK3FWXG-CnJPDj7X.js} +18 -15
  55. package/es/{diagram-E7M64L7V-Dz62Vz_a.js → diagram-E7M64L7V-CBOCgbMd.js} +63 -63
  56. package/es/{diagram-IFDJBPK2-9fjvFkSc.js → diagram-IFDJBPK2-BtubJp0H.js} +20 -20
  57. package/es/{diagram-P4PSJMXO-BlX6jFjZ.js → diagram-P4PSJMXO-CI30BBYG.js} +17 -17
  58. package/es/{dist-BX_roQzC.js → dist-BpM0Gz7z.js} +1 -1
  59. package/es/{erDiagram-INFDFZHY-BcRXu8Cp.js → erDiagram-INFDFZHY-C8hYuPxm.js} +14 -14
  60. package/es/{flowDiagram-PKNHOUZH-UeyfgU8z.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +18 -18
  61. package/es/{ganttDiagram-A5KZAMGK-txCzqgQ5.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +25 -26
  62. package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
  63. package/es/{gitGraphDiagram-K3NZZRJ6-DghWYaFU.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +20 -20
  64. package/es/{graphlib-dRkI1OCL.js → graphlib-DqWOhV4K.js} +4 -4
  65. package/es/{html-CWvNBSxv.js → html-C4rrmxbP.js} +2 -2
  66. package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
  67. package/es/{infoDiagram-LFFYTUFH-CA-vlAvP.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +9 -9
  68. package/es/{isArrayLikeObject-jl2bjkAJ.js → isArrayLikeObject-Dqk_yOP-.js} +5 -4
  69. package/es/{isEmpty-CmA-HYrg.js → isEmpty-BJdINx-6.js} +1 -1
  70. package/es/{ishikawaDiagram-PHBUUO56-DjdpS9Lb.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +6 -6
  71. package/es/javascript--0qAxhnA.js +2 -0
  72. package/es/{journeyDiagram-4ABVD52K-CIJfC1fp.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +9 -9
  73. package/es/{kanban-definition-K7BYSVSG-CC2vwGck.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +11 -11
  74. package/es/{katex-DCMiIo1z.js → katex-olkKUfKs.js} +16 -16
  75. package/es/{line-Cu9NTacD.js → line-Cm2n2y9Z.js} +3 -3
  76. package/es/{linear-C0rAYYmp.js → linear-D-yDc6KG.js} +3 -3
  77. package/es/mermaid-parser.core-DFgQn74w.js +259 -0
  78. package/es/{mermaid.core-Bvy_Q6Hu.js → mermaid.core-BzgA0NbC.js} +45 -45
  79. package/es/{mindmap-definition-YRQLILUH-BzTYDYmK.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +14 -14
  80. package/es/{ordinal-F3U6aXtP.js → ordinal-95c16pGC.js} +1 -1
  81. package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
  82. package/es/{path-Dm3C8WEs.js → path-CqWAdh69.js} +4 -7
  83. package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
  84. package/es/{pieDiagram-SKSYHLDU-COvqE_C6.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +48 -48
  85. package/es/{quadrantDiagram-337W2JSQ-Dgv8ccjt.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +4 -4
  86. package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
  87. package/es/{requirementDiagram-Z7DCOOCP-B2NyhxO-.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +13 -13
  88. package/es/{chunk-WQLz0Won.js → rolldown-runtime-Dv1pqm0U.js} +8 -1
  89. package/es/{rough.esm-BhGP2Udb.js → rough.esm-D1ibUQD-.js} +1 -1
  90. package/es/{sankeyDiagram-WA2Y5GQK-BfnH_gpl.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +4 -4
  91. package/es/{sequenceDiagram-2WXFIKYE-DXssVQOF.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +98 -98
  92. package/es/{shiki-runtime-D0MO6er5.js → shiki-runtime-BlKUZiZP.js} +944 -952
  93. package/es/{src-CUQ6oOYk.js → src-3T61hYex.js} +26 -26
  94. package/es/{stateDiagram-RAJIS63D-DvDLfupV.js → stateDiagram-RAJIS63D-153LjStx.js} +16 -16
  95. package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
  96. package/es/{timeline-definition-YZTLITO2-ErcRjbZf.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +4 -4
  97. package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
  98. package/es/{vennDiagram-LZ73GAT5-CDTZUtc8.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +8 -8
  99. package/es/{xychartDiagram-JWTSCODW-Y21jBOTg.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +10 -10
  100. package/package.json +1 -1
  101. package/es/Serializer-D1JYN1kI.js +0 -262
  102. package/es/architecture-PBZL5I3N-D7tS55xM.js +0 -3
  103. package/es/chunk-7E7YKBS2-CL2d4WAf.js +0 -23
  104. package/es/chunk-C72U2L5F-OHTVpS-m.js +0 -23
  105. package/es/chunk-EGIJ26TM-DyMPGYrB.js +0 -23
  106. package/es/chunk-L3YUKLVL-7oGaUOdc.js +0 -23
  107. package/es/chunk-OZEHJAEY-D82nx27s.js +0 -64
  108. package/es/chunk-R5LLSJPH-CreI2kO9.js +0 -35
  109. package/es/chunk-XIRO2GV7-S5KkbVnN.js +0 -30
  110. package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +0 -29
  111. package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +0 -29
  112. package/es/css-Bi5OTYo2.js +0 -2
  113. package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +0 -3
  114. package/es/info-3K5VOQVL-COqdvM99.js +0 -3
  115. package/es/javascript-CjdDmufJ.js +0 -2
  116. package/es/mermaid-parser.core-7Wn2L29P.js +0 -59
  117. package/es/packet-RMMSAZCW-2PTjWKLd.js +0 -3
  118. package/es/pie-UPGHQEXC-Du8-k-EA.js +0 -3
  119. package/es/radar-KQ55EAFF-jJOhyjxC.js +0 -3
  120. package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +0 -27
  121. package/es/treemap-KZPCXAKY-CvZAIYVa.js +0 -3
  122. /package/es/{array-CWNufkl9.js → array-CApNbSU9.js} +0 -0
  123. /package/es/{css-v5r4VtJ6.js → css-DVAQAvTD.js} +0 -0
  124. /package/es/{defaultLocale-bckJcYh1.js → defaultLocale-aSMWOJHq.js} +0 -0
  125. /package/es/{init-B75p2clj.js → init-Co4dhKfe.js} +0 -0
  126. /package/es/{javascript-o_jd8Ivw.js → javascript-Bk0bJ4nQ.js} +0 -0
  127. /package/es/{json-DqMXJlo0.js → json-CAwkMa5O.js} +0 -0
  128. /package/es/{math-CoDOuve-.js → math-BZ_bUCIA.js} +0 -0
  129. /package/es/{python-CQPNJfOt.js → python-D0AaDoWC.js} +0 -0
  130. /package/es/{typescript-Ck7Pr_E3.js → typescript-DWy2KXvB.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { h as e } from "./src-CUQ6oOYk.js";
2
- import { f as t } from "./chunk-GEFDOKGD-BWpC-zoH.js";
3
- import { b as n, d as r } from "./chunk-7R4GIKGN-QT6IorJ_.js";
1
+ import { h as e } from "./src-3T61hYex.js";
2
+ import { f as t } from "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import { b as n, d as r } from "./chunk-7R4GIKGN-mKY502R8.js";
4
4
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YBOYWFTD.mjs
5
5
  var i = /* @__PURE__ */ e(({ flowchart: e }) => {
6
6
  let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
@@ -0,0 +1,29 @@
1
+ import { h as e } from "./src-3T61hYex.js";
2
+ import "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import "./chunk-7R4GIKGN-mKY502R8.js";
4
+ import "./chunk-PU5JKC2W-DIl8TkGX.js";
5
+ import "./chunk-FMBD7UC4-B88neS61.js";
6
+ import "./chunk-MX3YWQON-D4cz36rq.js";
7
+ import "./chunk-YBOYWFTD-C2IdGsg8.js";
8
+ import "./chunk-JSJVCQXG-BbVOaXjl.js";
9
+ import "./chunk-55IACEB6-BpkEkHy8.js";
10
+ import "./chunk-KX2RTZJC-Dw3D7Wrw.js";
11
+ import "./chunk-PQ6SQG4A-BITIwHAS.js";
12
+ import "./chunk-KYZI473N-33-uii7Y.js";
13
+ import "./chunk-O4XLMI2P-DBAvycZ-.js";
14
+ import "./chunk-GLR3WWYH-B2D9kjtF.js";
15
+ import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-Bhp_3T_o.js";
16
+ //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-VBA2DB6C.mjs
17
+ var a = {
18
+ parser: n,
19
+ get db() {
20
+ return new i();
21
+ },
22
+ renderer: r,
23
+ styles: t,
24
+ init: /* @__PURE__ */ e((e) => {
25
+ e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
+ }, "init")
27
+ };
28
+ //#endregion
29
+ export { a as diagram };
@@ -0,0 +1,29 @@
1
+ import { h as e } from "./src-3T61hYex.js";
2
+ import "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import "./chunk-7R4GIKGN-mKY502R8.js";
4
+ import "./chunk-PU5JKC2W-DIl8TkGX.js";
5
+ import "./chunk-FMBD7UC4-B88neS61.js";
6
+ import "./chunk-MX3YWQON-D4cz36rq.js";
7
+ import "./chunk-YBOYWFTD-C2IdGsg8.js";
8
+ import "./chunk-JSJVCQXG-BbVOaXjl.js";
9
+ import "./chunk-55IACEB6-BpkEkHy8.js";
10
+ import "./chunk-KX2RTZJC-Dw3D7Wrw.js";
11
+ import "./chunk-PQ6SQG4A-BITIwHAS.js";
12
+ import "./chunk-KYZI473N-33-uii7Y.js";
13
+ import "./chunk-O4XLMI2P-DBAvycZ-.js";
14
+ import "./chunk-GLR3WWYH-B2D9kjtF.js";
15
+ import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-Bhp_3T_o.js";
16
+ //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-RAHNMMFH.mjs
17
+ var a = {
18
+ parser: n,
19
+ get db() {
20
+ return new i();
21
+ },
22
+ renderer: r,
23
+ styles: t,
24
+ init: /* @__PURE__ */ e((e) => {
25
+ e.class ||= {}, e.class.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
26
+ }, "init")
27
+ };
28
+ //#endregion
29
+ export { a as diagram };
@@ -1,4 +1,4 @@
1
- import { y as e } from "./_baseUniq-BlS7rXTs.js";
1
+ import { y as e } from "./_baseUniq-CyFYmJd-.js";
2
2
  //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/clone.js
3
3
  var t = 4;
4
4
  function n(n) {
@@ -1,6 +1,6 @@
1
- import { o as e, t } from "./chunk-WQLz0Won.js";
2
- import { g as n, h as r, p as i } from "./src-CUQ6oOYk.js";
3
- import { t as a } from "./cytoscape.esm-i2CZcWd-.js";
1
+ import { o as e, t } from "./rolldown-runtime-Dv1pqm0U.js";
2
+ import { g as n, h as r, p as i } from "./src-3T61hYex.js";
3
+ import { t as a } from "./cytoscape.esm-DBPri10E.js";
4
4
  //#region ../../node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js
5
5
  var o = /* @__PURE__ */ t(((e, t) => {
6
6
  (function(n, r) {
@@ -146,7 +146,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
146
146
  }, l.prototype.getEdgesBetween = function(e) {
147
147
  var t = [], n = this;
148
148
  return n.edges.forEach(function(r) {
149
- if (!(r.source == n || r.target == n)) throw "Incorrect edge source and/or target";
149
+ if (r.source != n && r.target != n) throw "Incorrect edge source and/or target";
150
150
  (r.target == e || r.source == e) && t.push(r);
151
151
  }), t;
152
152
  }, l.prototype.getNeighborsList = function() {
@@ -263,14 +263,14 @@ var o = /* @__PURE__ */ t(((e, t) => {
263
263
  } else {
264
264
  var i = e;
265
265
  if (!(this.getNodes().indexOf(t) > -1 && this.getNodes().indexOf(n) > -1)) throw "Source or target not in graph!";
266
- if (!(t.owner == n.owner && t.owner == this)) throw "Both owners must be this graph!";
266
+ if (t.owner != n.owner || t.owner != this) throw "Both owners must be this graph!";
267
267
  return t.owner == n.owner ? (i.source = t, i.target = n, i.isInterGraph = !1, this.getEdges().push(i), t.edges.push(i), n != t && n.edges.push(i), i) : null;
268
268
  }
269
269
  }, f.prototype.remove = function(e) {
270
270
  var t = e;
271
271
  if (e instanceof s) {
272
272
  if (t == null) throw "Node is null!";
273
- if (!(t.owner != null && t.owner == this)) throw "Owner graph is invalid!";
273
+ if (t.owner == null || t.owner != this) throw "Owner graph is invalid!";
274
274
  if (this.graphManager == null) throw "Owner graph manager is invalid!";
275
275
  for (var n = t.edges.slice(), r, i = n.length, a = 0; a < i; a++) r = n[a], r.isInterGraph ? this.graphManager.remove(r) : r.source.owner.remove(r);
276
276
  var o = this.nodes.indexOf(t);
@@ -279,8 +279,8 @@ var o = /* @__PURE__ */ t(((e, t) => {
279
279
  } else if (e instanceof c) {
280
280
  var r = e;
281
281
  if (r == null) throw "Edge is null!";
282
- if (!(r.source != null && r.target != null)) throw "Source and/or target is null!";
283
- if (!(r.source.owner != null && r.target.owner != null && r.source.owner == this && r.target.owner == this)) throw "Source and/or target owner is invalid!";
282
+ if (r.source == null || r.target == null) throw "Source and/or target is null!";
283
+ if (r.source.owner == null || r.target.owner == null || r.source.owner != this || r.target.owner != this) throw "Source and/or target owner is invalid!";
284
284
  var l = r.source.edges.indexOf(r), u = r.target.edges.indexOf(r);
285
285
  if (!(l > -1 && u > -1)) throw "Source and/or target doesn't know this edge!";
286
286
  r.source.edges.splice(l, 1), r.target != r.source && r.target.edges.splice(u, 1);
@@ -360,12 +360,12 @@ var o = /* @__PURE__ */ t(((e, t) => {
360
360
  } else {
361
361
  i = n, r = t, n = e;
362
362
  var a = r.getOwner(), o = i.getOwner();
363
- if (!(a != null && a.getGraphManager() == this)) throw "Source not in this graph mgr!";
364
- if (!(o != null && o.getGraphManager() == this)) throw "Target not in this graph mgr!";
363
+ if (a == null || a.getGraphManager() != this) throw "Source not in this graph mgr!";
364
+ if (o == null || o.getGraphManager() != this) throw "Target not in this graph mgr!";
365
365
  if (a == o) return n.isInterGraph = !1, a.add(n, r, i);
366
366
  if (n.isInterGraph = !0, n.source = r, n.target = i, this.edges.indexOf(n) > -1) throw "Edge already in inter-graph edge list!";
367
- if (this.edges.push(n), !(n.source != null && n.target != null)) throw "Edge source and/or target is null!";
368
- if (!(n.source.edges.indexOf(n) == -1 && n.target.edges.indexOf(n) == -1)) throw "Edge already in source and/or target incidency list!";
367
+ if (this.edges.push(n), n.source == null || n.target == null) throw "Edge source and/or target is null!";
368
+ if (n.source.edges.indexOf(n) != -1 || n.target.edges.indexOf(n) != -1) throw "Edge already in source and/or target incidency list!";
369
369
  return n.source.edges.push(n), n.target.edges.push(n), n;
370
370
  }
371
371
  }, a.prototype.remove = function(e) {
@@ -387,10 +387,10 @@ var o = /* @__PURE__ */ t(((e, t) => {
387
387
  } else if (e instanceof i) {
388
388
  if (a = e, a == null) throw "Edge is null!";
389
389
  if (!a.isInterGraph) throw "Not an inter-graph edge!";
390
- if (!(a.source != null && a.target != null)) throw "Source and/or target is null!";
391
- if (!(a.source.edges.indexOf(a) != -1 && a.target.edges.indexOf(a) != -1)) throw "Source and/or target doesn't know this edge!";
390
+ if (a.source == null || a.target == null) throw "Source and/or target is null!";
391
+ if (a.source.edges.indexOf(a) == -1 || a.target.edges.indexOf(a) == -1) throw "Source and/or target doesn't know this edge!";
392
392
  var u = a.source.edges.indexOf(a);
393
- if (a.source.edges.splice(u, 1), u = a.target.edges.indexOf(a), a.target.edges.splice(u, 1), !(a.source.owner != null && a.source.owner.getGraphManager() != null)) throw "Edge owner graph or owner graph manager is null!";
393
+ if (a.source.edges.splice(u, 1), u = a.target.edges.indexOf(a), a.target.edges.splice(u, 1), a.source.owner == null || a.source.owner.getGraphManager() == null) throw "Edge owner graph or owner graph manager is null!";
394
394
  if (a.source.owner.getGraphManager().edges.indexOf(a) == -1) throw "Not in owner graph manager's edge list!";
395
395
  var u = a.source.owner.getGraphManager().edges.indexOf(a);
396
396
  a.source.owner.getGraphManager().edges.splice(u, 1);
@@ -432,7 +432,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
432
432
  }, a.prototype.getLayout = function() {
433
433
  return this.layout;
434
434
  }, a.prototype.isOneAncestorOfOther = function(e, t) {
435
- if (!(e != null && t != null)) throw "assert failed";
435
+ if (e == null || t == null) throw "assert failed";
436
436
  if (e == t) return !0;
437
437
  var n = e.getOwner(), r;
438
438
  do {
@@ -828,7 +828,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
828
828
  return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
829
829
  }, f.prototype.runLayout = function() {
830
830
  this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
831
- var e = this.checkLayoutSuccess() ? !1 : this.layout();
831
+ var e = !this.checkLayoutSuccess() && this.layout();
832
832
  return i.ANIMATE === "during" ? !1 : (e && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, e);
833
833
  }, f.prototype.doPostLayout = function() {
834
834
  this.incremental || this.transform(), this.update();
@@ -1041,7 +1041,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
1041
1041
  }, l.prototype.calcSpringForces = function() {
1042
1042
  for (var e = this.getAllEdges(), t, n = 0; n < e.length; n++) t = e[n], this.calcSpringForce(t, t.idealLength);
1043
1043
  }, l.prototype.calcRepulsionForces = function() {
1044
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n, r, i, o, s = this.getAllNodes(), c;
1044
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n, r, i, o, s = this.getAllNodes(), c;
1045
1045
  if (this.useFRGridVariant) for (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && e && this.updateGrid(), c = /* @__PURE__ */ new Set(), n = 0; n < s.length; n++) i = s[n], this.calculateRepulsionForceOfANode(i, c, e, t), c.add(i);
1046
1046
  else for (n = 0; n < s.length; n++) for (i = s[n], r = n + 1; r < s.length; r++) o = s[r], i.getOwner() == o.getOwner() && this.calcRepulsionForce(i, o);
1047
1047
  }, l.prototype.calcGravitationalForces = function() {
@@ -1093,7 +1093,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
1093
1093
  var o = /* @__PURE__ */ new Set();
1094
1094
  e.surrounding = [];
1095
1095
  for (var s, c = this.grid, l = e.startX - 1; l < e.finishX + 2; l++) for (var u = e.startY - 1; u < e.finishY + 2; u++) if (!(l < 0 || u < 0 || l >= c.length || u >= c[0].length)) {
1096
- for (var d = 0; d < c[l][u].length; d++) if (s = c[l][u][d], !(e.getOwner() != s.getOwner() || e == s) && !t.has(s) && !o.has(s)) {
1096
+ for (var d = 0; d < c[l][u].length; d++) if (s = c[l][u][d], e.getOwner() == s.getOwner() && e != s && !t.has(s) && !o.has(s)) {
1097
1097
  var f = Math.abs(e.getCenterX() - s.getCenterX()) - (e.getWidth() / 2 + s.getWidth() / 2), p = Math.abs(e.getCenterY() - s.getCenterY()) - (e.getHeight() / 2 + s.getHeight() / 2);
1098
1098
  f <= this.repulsionRange && p <= this.repulsionRange && o.add(s);
1099
1099
  }
@@ -1770,7 +1770,7 @@ var o = /* @__PURE__ */ t(((e, t) => {
1770
1770
  horizontalPadding: c.TILING_PADDING_HORIZONTAL
1771
1771
  };
1772
1772
  e.sort(function(e, t) {
1773
- return e.rect.width * e.rect.height > t.rect.width * t.rect.height ? -1 : e.rect.width * e.rect.height < t.rect.width * t.rect.height ? 1 : 0;
1773
+ return e.rect.width * e.rect.height > t.rect.width * t.rect.height ? -1 : +(e.rect.width * e.rect.height < t.rect.width * t.rect.height);
1774
1774
  });
1775
1775
  for (var r = 0; r < e.length; r++) {
1776
1776
  var i = e[r];
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./css-DVAQAvTD.js";
2
+ export { e as default };