@aiderdesk/aiderdesk 0.61.0-dev → 0.61.0

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 (175) hide show
  1. package/out/renderer/assets/__vite-browser-external-2447137e-DYxpcVy9.js +4 -0
  2. package/out/renderer/assets/{_baseUniq-Z8t1Ab1g.js → _baseUniq-BPF2Herp.js} +21 -197
  3. package/out/renderer/assets/{arc-CwESpVYE.js → arc-DfPLteHF.js} +1 -1
  4. package/out/renderer/assets/{architectureDiagram-2XIMDMQ5-C490EQr5.js → architectureDiagram-Q4EWVU46-Bw0u-sSH.js} +34 -20
  5. package/out/renderer/assets/{blockDiagram-WCTKOSBZ-DbHssxrQ.js → blockDiagram-DXYQGD6D-CkfB9if8.js} +21 -8
  6. package/out/renderer/assets/{c4Diagram-IC4MRINW-BxE3GUKu.js → c4Diagram-AHTNJAMY-DweK9Liz.js} +31 -35
  7. package/out/renderer/assets/{channel-C9hJq_Xr.js → channel-C5wwrRof.js} +1 -1
  8. package/out/renderer/assets/{chunk-4BX2VUAB-ChcKNpL6.js → chunk-4BX2VUAB-0KM14cFd.js} +1 -1
  9. package/out/renderer/assets/{chunk-WL4C6EOR-vhby2fZi.js → chunk-4TB4RGXK-CmVtCVL4.js} +121 -82
  10. package/out/renderer/assets/{chunk-55IACEB6-oLT9lXTt.js → chunk-55IACEB6-BzVYZvBM.js} +1 -1
  11. package/out/renderer/assets/{chunk-KX2RTZJC-D32tV7H-.js → chunk-EDXVE4YY-BryQl5Kv.js} +1 -1
  12. package/out/renderer/assets/{chunk-FMBD7UC4-B5k8rETe.js → chunk-FMBD7UC4-CRiLea_e.js} +1 -1
  13. package/out/renderer/assets/{chunk-NQ4KR5QH-Bmqo2FpL.js → chunk-OYMX7WX6-Cpi4N3NO.js} +32 -15
  14. package/out/renderer/assets/{chunk-QZHKN3VN-8BpGifjS.js → chunk-QZHKN3VN-BT8kABWC.js} +1 -1
  15. package/out/renderer/assets/{chunk-JSJVCQXG-DtjSx6Cj.js → chunk-YZCP3GAM-OLZV_Sef.js} +1 -1
  16. package/out/renderer/assets/{classDiagram-VBA2DB6C-BxRSSb9e.js → classDiagram-6PBFFD2Q-VdE6G90i.js} +6 -6
  17. package/out/renderer/assets/{classDiagram-v2-RAHNMMFH-BxRSSb9e.js → classDiagram-v2-HSJHXN6E-VdE6G90i.js} +6 -6
  18. package/out/renderer/assets/{clone-D9a-uIZa.js → clone-DwQZ86nS.js} +1 -1
  19. package/out/renderer/assets/{cose-bilkent-S5V4N54A-CUqqQ-6R.js → cose-bilkent-S5V4N54A-BEcAKM9H.js} +1 -1
  20. package/out/renderer/assets/{dagre-KLK3FWXG-ORIwMMhq.js → dagre-KV5264BT-BcFQYL1M.js} +6 -6
  21. package/out/renderer/assets/diagram-5BDNPKRD-GrUNdC1u.js +171 -0
  22. package/out/renderer/assets/{diagram-E7M64L7V-bS9HcoDQ.js → diagram-G4DWMVQ6-CG4S-ov5.js} +15 -13
  23. package/out/renderer/assets/{diagram-IFDJBPK2-BRlTIR0J.js → diagram-MMDJMWI5-9ogY3MRC.js} +5 -6
  24. package/out/renderer/assets/{diagram-P4PSJMXO-jsjGwH-p.js → diagram-TYMM5635-Ck7mI1bS.js} +5 -6
  25. package/out/renderer/assets/{erDiagram-INFDFZHY-DGlgjHOQ.js → erDiagram-SMLLAGMA-Dvf_c-7M.js} +81 -35
  26. package/out/renderer/assets/{flowDiagram-PKNHOUZH-CzLC87bM.js → flowDiagram-DWJPFMVM-CPDjOXYp.js} +27 -45
  27. package/out/renderer/assets/{ganttDiagram-A5KZAMGK-BbDv36wT.js → ganttDiagram-T4ZO3ILL-B4dJrK-3.js} +17 -8
  28. package/out/renderer/assets/{gitGraphDiagram-K3NZZRJ6-CBQnBjEi.js → gitGraphDiagram-UUTBAWPF-De2eCfMN.js} +244 -67
  29. package/out/renderer/assets/{graph-Dl5N6maZ.js → graph-BFn23kR_.js} +175 -3
  30. package/out/renderer/assets/{index-MDHavDF9.js → index-BL-57WPa.js} +15877 -20787
  31. package/out/renderer/assets/{index-CDCy_DhA.css → index-BkntVzTm.css} +114 -301
  32. package/out/renderer/assets/{infoDiagram-LFFYTUFH-GtEDBEmz.js → infoDiagram-42DDH7IO-BIt9B6mQ.js} +5 -6
  33. package/out/renderer/assets/{ishikawaDiagram-PHBUUO56-Uj90gr3I.js → ishikawaDiagram-UXIWVN3A-CXZs0KGV.js} +3 -3
  34. package/out/renderer/assets/{journeyDiagram-4ABVD52K-DekFuOwS.js → journeyDiagram-VCZTEJTY-B-EXuj5b.js} +14 -13
  35. package/out/renderer/assets/{kanban-definition-K7BYSVSG-Hfz2L6NS.js → kanban-definition-6JOO6SKY-ByvN0qaD.js} +5 -2
  36. package/out/renderer/assets/{layout-B9K2VT39.js → layout-BpybWUv6.js} +117 -4
  37. package/out/renderer/assets/min-DB8ixvoT.js +41 -0
  38. package/out/renderer/assets/{mindmap-definition-YRQLILUH-DDcS7_GH.js → mindmap-definition-QFDTVHPH-Do-I-At8.js} +69 -13
  39. package/out/renderer/assets/{pieDiagram-SKSYHLDU-DwjEcJ0Q.js → pieDiagram-DEJITSTG-Cnpf6Gt6.js} +20 -13
  40. package/out/renderer/assets/{quadrantDiagram-337W2JSQ-CpGqN7vo.js → quadrantDiagram-34T5L4WZ-VcOb1qLd.js} +1 -1
  41. package/out/renderer/assets/{requirementDiagram-Z7DCOOCP-qDRUf1ip.js → requirementDiagram-MS252O5E-VJs9Hpaw.js} +42 -11
  42. package/out/renderer/assets/{sankeyDiagram-WA2Y5GQK-DRKS8C1H.js → sankeyDiagram-XADWPNL6-BoXxgLvi.js} +1 -1
  43. package/out/renderer/assets/{sequenceDiagram-2WXFIKYE-DhVN2ug2.js → sequenceDiagram-FGHM5R23-b69hQjSp.js} +446 -220
  44. package/out/renderer/assets/{stateDiagram-RAJIS63D-BpP4eSqu.js → stateDiagram-FHFEXIEX-BK7E-REm.js} +10 -9
  45. package/out/renderer/assets/{stateDiagram-v2-FVOUBMTO-B_qQJqra.js → stateDiagram-v2-QKLJ7IA2-Cd2wfCQu.js} +4 -4
  46. package/out/renderer/assets/{timeline-definition-YZTLITO2-UoWXE_76.js → timeline-definition-GMOUNBTQ-Bl-MTfK5.js} +445 -71
  47. package/out/renderer/assets/{vennDiagram-LZ73GAT5-Dp1FZ609.js → vennDiagram-DHZGUBPP-DNmr1k2L.js} +1 -1
  48. package/out/renderer/assets/{treemap-KZPCXAKY-W2a2L6ff.js → wardley-RL74JXVD-DTbxPMj9.js} +1474 -977
  49. package/out/renderer/assets/wardleyDiagram-NUSXRM2D-BWw08wtD.js +901 -0
  50. package/out/renderer/assets/{xychartDiagram-JWTSCODW-CTzYHTbD.js → xychartDiagram-5P7HB3ND-EEYPnLDT.js} +20 -4
  51. package/out/renderer/index.html +3 -3
  52. package/out/renderer/progress.html +212 -62
  53. package/out/resources/mcp-server/aider-desk-mcp-server.js +642 -402
  54. package/out/runner.js +976 -386
  55. package/package.json +2 -3
  56. package/out/renderer/assets/_basePickBy-BWoXHZ8Z.js +0 -161
  57. package/out/renderer/assets/apl-fqmucPXA.js +0 -140
  58. package/out/renderer/assets/asciiarmor-DucZyvP0.js +0 -56
  59. package/out/renderer/assets/asn1-BnOEsgAm.js +0 -144
  60. package/out/renderer/assets/asterisk-QAlztEwS.js +0 -345
  61. package/out/renderer/assets/brainfuck-DZVCuF_t.js +0 -53
  62. package/out/renderer/assets/clike-xqXYL6ge.js +0 -805
  63. package/out/renderer/assets/clojure-BhXMqnxz.js +0 -849
  64. package/out/renderer/assets/cmake-BGaNd9E7.js +0 -71
  65. package/out/renderer/assets/cobol-4yqQntpt.js +0 -120
  66. package/out/renderer/assets/coffeescript-D2dXvhEc.js +0 -308
  67. package/out/renderer/assets/commonlisp-CF_VNHQR.js +0 -130
  68. package/out/renderer/assets/crystal-DyuLTqLs.js +0 -398
  69. package/out/renderer/assets/css-c-jst79C.js +0 -1783
  70. package/out/renderer/assets/cypher-Dlu_3r4V.js +0 -121
  71. package/out/renderer/assets/d-UURgV0Ux.js +0 -179
  72. package/out/renderer/assets/diff-B_Bi2Crb.js +0 -25
  73. package/out/renderer/assets/dockerfile-Bvk733Ga.js +0 -201
  74. package/out/renderer/assets/dtd-Dy74G54E.js +0 -114
  75. package/out/renderer/assets/dylan-TSb-Nfix.js +0 -314
  76. package/out/renderer/assets/ebnf-4fKAGW3a.js +0 -140
  77. package/out/renderer/assets/ecl-B59qGGVg.js +0 -178
  78. package/out/renderer/assets/eiffel-Dze7nlu3.js +0 -134
  79. package/out/renderer/assets/elm-DG7jkhNZ.js +0 -176
  80. package/out/renderer/assets/erlang-BO6gOnGA.js +0 -674
  81. package/out/renderer/assets/factor-CMxFHDqz.js +0 -65
  82. package/out/renderer/assets/fcl-CDDUNjTj.js +0 -141
  83. package/out/renderer/assets/forth-B9D2JCeE.js +0 -116
  84. package/out/renderer/assets/fortran-CAG2BFbe.js +0 -467
  85. package/out/renderer/assets/gas-d3KEcW3x.js +0 -294
  86. package/out/renderer/assets/gherkin-DhZlEZiy.js +0 -115
  87. package/out/renderer/assets/groovy-CpwJiBl7.js +0 -223
  88. package/out/renderer/assets/haskell-ySd-OUo8.js +0 -459
  89. package/out/renderer/assets/haxe-7MlzfeYV.js +0 -514
  90. package/out/renderer/assets/http-BqypyemW.js +0 -79
  91. package/out/renderer/assets/idl-4HIGJlDI.js +0 -985
  92. package/out/renderer/assets/index-6qedlt0q.js +0 -689
  93. package/out/renderer/assets/index-86jDpUJn.js +0 -385
  94. package/out/renderer/assets/index-BRjO8ber.js +0 -332
  95. package/out/renderer/assets/index-BVgw7j0d.js +0 -312
  96. package/out/renderer/assets/index-BhkyI1q3.js +0 -642
  97. package/out/renderer/assets/index-BqrmLPkg.js +0 -82
  98. package/out/renderer/assets/index-BuPbw4xM.js +0 -178
  99. package/out/renderer/assets/index-CTO-LPBg.js +0 -311
  100. package/out/renderer/assets/index-CTO4SzlI.js +0 -97
  101. package/out/renderer/assets/index-CZ9IQK_0.js +0 -2488
  102. package/out/renderer/assets/index-CZxsVxBZ.js +0 -1765
  103. package/out/renderer/assets/index-DIXV-3Xn.js +0 -406
  104. package/out/renderer/assets/index-DNzOtZX5.js +0 -61
  105. package/out/renderer/assets/index-DZtJe7oC.js +0 -1019
  106. package/out/renderer/assets/index-DaWjZz_g.js +0 -291
  107. package/out/renderer/assets/index-De056HHR.js +0 -151
  108. package/out/renderer/assets/index-Dk3wSDSN.js +0 -117
  109. package/out/renderer/assets/index-Dy4VRsnA.js +0 -1041
  110. package/out/renderer/assets/index-FnnayPBc.js +0 -82
  111. package/out/renderer/assets/index-MZb_zy6R.js +0 -704
  112. package/out/renderer/assets/index-chzQl8rJ.js +0 -157
  113. package/out/renderer/assets/index-s-Owx3Pm.js +0 -327
  114. package/out/renderer/assets/javascript-C_OHM9hj.js +0 -994
  115. package/out/renderer/assets/julia-Bs6JJhYG.js +0 -407
  116. package/out/renderer/assets/livescript-DmzgM3Yt.js +0 -296
  117. package/out/renderer/assets/lua-8cJgIlqe.js +0 -256
  118. package/out/renderer/assets/mathematica-DNLOL9PQ.js +0 -110
  119. package/out/renderer/assets/mbox-Ga7d4MMN.js +0 -117
  120. package/out/renderer/assets/mirc-Dma3B8rS.js +0 -107
  121. package/out/renderer/assets/mllike-DHn7xckP.js +0 -334
  122. package/out/renderer/assets/modelica-0d55jYY0.js +0 -147
  123. package/out/renderer/assets/mscgen-DdqZYINH.js +0 -135
  124. package/out/renderer/assets/mumps-Btr8VblO.js +0 -93
  125. package/out/renderer/assets/nginx-DTDtBDVN.js +0 -141
  126. package/out/renderer/assets/nsis-3zG7tgur.js +0 -62
  127. package/out/renderer/assets/ntriples-CvgOYMpL.js +0 -153
  128. package/out/renderer/assets/octave-DYBj3-tl.js +0 -200
  129. package/out/renderer/assets/oz-R_e8WMIi.js +0 -231
  130. package/out/renderer/assets/pascal-GD8iposT.js +0 -105
  131. package/out/renderer/assets/perl-DL9mHpoi.js +0 -1105
  132. package/out/renderer/assets/pig-C_4T4YIV.js +0 -101
  133. package/out/renderer/assets/powershell-B0suO7Vd.js +0 -328
  134. package/out/renderer/assets/properties-BR-vP1aU.js +0 -58
  135. package/out/renderer/assets/protobuf-BxgpyhoW.js +0 -77
  136. package/out/renderer/assets/pug-CTXt1f8z.js +0 -405
  137. package/out/renderer/assets/puppet-Bdao66PW.js +0 -137
  138. package/out/renderer/assets/python-CvWbmiX4.js +0 -427
  139. package/out/renderer/assets/q-CrbCVq4a.js +0 -131
  140. package/out/renderer/assets/r-V7nswm59.js +0 -170
  141. package/out/renderer/assets/rpm-C-DLY-If.js +0 -109
  142. package/out/renderer/assets/ruby-JDKLJNK0.js +0 -330
  143. package/out/renderer/assets/sas-D2UG-yhZ.js +0 -207
  144. package/out/renderer/assets/scheme-BKzrkGJD.js +0 -222
  145. package/out/renderer/assets/shell-BlsXDxCn.js +0 -222
  146. package/out/renderer/assets/sieve-CjwBwOY5.js +0 -135
  147. package/out/renderer/assets/simple-mode-DMneyfDu.js +0 -130
  148. package/out/renderer/assets/smalltalk-BOIGQuhN.js +0 -121
  149. package/out/renderer/assets/solr-CwD7U71z.js +0 -69
  150. package/out/renderer/assets/sparql-DYskk2vE.js +0 -249
  151. package/out/renderer/assets/spreadsheet-Bgtt3oLP.js +0 -87
  152. package/out/renderer/assets/sql-BSrOzCRI.js +0 -354
  153. package/out/renderer/assets/stex-B6LNC55o.js +0 -231
  154. package/out/renderer/assets/stylus-BkS-boTH.js +0 -565
  155. package/out/renderer/assets/swift-FRZi1uvB.js +0 -291
  156. package/out/renderer/assets/tcl-CUcaCdmq.js +0 -114
  157. package/out/renderer/assets/textile-BnFpjsrl.js +0 -414
  158. package/out/renderer/assets/tiddlywiki-CjprD-Qp.js +0 -218
  159. package/out/renderer/assets/tiki-DK9DOeWn.js +0 -268
  160. package/out/renderer/assets/toml-BOuWGMcf.js +0 -76
  161. package/out/renderer/assets/troff-E1bJ0PPL.js +0 -61
  162. package/out/renderer/assets/ttcn-cfg-Dc39-fIP.js +0 -133
  163. package/out/renderer/assets/ttcn-tKd4HLu4.js +0 -192
  164. package/out/renderer/assets/turtle-Dq7-1WAf.js +0 -124
  165. package/out/renderer/assets/vb-Dp90gtsv.js +0 -196
  166. package/out/renderer/assets/vbscript-CI6_mxxU.js +0 -479
  167. package/out/renderer/assets/velocity-BwIZK1TH.js +0 -149
  168. package/out/renderer/assets/verilog-DDCYnHN8.js +0 -430
  169. package/out/renderer/assets/vhdl-DCkMIyT9.js +0 -158
  170. package/out/renderer/assets/webidl-BTLTThCm.js +0 -204
  171. package/out/renderer/assets/xquery-BrBUuxMR.js +0 -525
  172. package/out/renderer/assets/yacas-b5lAVEIl.js +0 -130
  173. package/out/renderer/assets/z80-BZV19vqv.js +0 -93
  174. package/scripts/download-uv.mjs +0 -147
  175. /package/patches/{ai+5.0.161.patch → ai+5.0.167.patch} +0 -0
@@ -1,5 +1,5 @@
1
- import { _ as __name, l as log, c as getConfig2, I as selectSvgElement, ak as insertCluster, al as insertNode, am as positionNode, Y as setupGraphViewbox, F as defaultConfig_default, i as sanitizeText, t as load, J as JSON_SCHEMA, $ as isDark, a0 as lighten, a1 as darken } from "./index-MDHavDF9.js";
2
- import { g as getIconStyles } from "./chunk-FMBD7UC4-B5k8rETe.js";
1
+ import { _ as __name, l as log, c as getConfig2, I as selectSvgElement, ak as insertCluster, al as insertNode, am as positionNode, a1 as setupGraphViewbox, G as defaultConfig_default, i as sanitizeText, t as load, J as JSON_SCHEMA, Y as isDark, $ as lighten, a0 as darken } from "./index-BL-57WPa.js";
2
+ import { g as getIconStyles } from "./chunk-FMBD7UC4-CRiLea_e.js";
3
3
  var parser = (function() {
4
4
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
5
5
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -881,6 +881,9 @@ var draw = /* @__PURE__ */ __name(async (text, id, _version, diagObj) => {
881
881
  const conf = getConfig2();
882
882
  conf.htmlLabels = false;
883
883
  const svg = selectSvgElement(id);
884
+ for (const node of data4Layout.nodes) {
885
+ node.domId = `${id}-${node.id}`;
886
+ }
884
887
  const sectionsElem = svg.append("g");
885
888
  sectionsElem.attr("class", "sections");
886
889
  const nodesElem = svg.append("g");
@@ -1,7 +1,23 @@
1
- import { G as Graph } from "./graph-Dl5N6maZ.js";
2
- import { b as baseClone, n as castFunction, o as baseForOwn, e as baseIteratee, j as arrayMap, m as baseGet, p as hasIn, c as baseFlatten, q as toString, d as forEach, i as isUndefined, f as filter, v as values, r as reduce } from "./_baseUniq-Z8t1Ab1g.js";
3
- import { f as flatten, b as baseExtremum, a as baseLt, c as baseMap, d as basePickBy, t as toFinite, m as map, e as min, h as has, g as find, l as last, i as defaults } from "./_basePickBy-BWoXHZ8Z.js";
4
- import { c7 as setToString, c8 as overRest, c9 as baseFor, by as keysIn, ca as baseAssignValue, bD as identity, bC as isSymbol, bB as isArray, cb as baseUnary, bx as isIterateeCall, aV as baseRest, bG as assignValue, aX as constant, cc as merge } from "./index-MDHavDF9.js";
1
+ import { b as baseClone, G as Graph, i as isUndefined, v as values } from "./graph-BFn23kR_.js";
2
+ import { c as baseIteratee, i as baseFindIndex, j as castFunction, k as baseForOwn, l as hasPath, m as castPath, t as toKey, n as baseGet, d as arrayMap, o as hasIn, b as baseFlatten, p as toString, h as forEach, g as filter, r as reduce } from "./_baseUniq-BPF2Herp.js";
3
+ import { f as flatten, b as baseExtremum, a as baseLt, c as baseMap, m as map, d as min } from "./min-DB8ixvoT.js";
4
+ import { bV as toNumber, bW as setToString, bX as overRest, bC as baseRest, bY as isIterateeCall, bh as keysIn, bZ as eq, aK as isArrayLike, bg as keys, bP as baseFor, b_ as baseAssignValue, aN as identity, bu as isObject, bO as isIndex, bB as assignValue, aM as isSymbol, aL as isArray, bs as baseUnary, bE as constant, b$ as merge } from "./index-BL-57WPa.js";
5
+ var INFINITY = 1 / 0, MAX_INTEGER = 17976931348623157e292;
6
+ function toFinite(value) {
7
+ if (!value) {
8
+ return value === 0 ? value : 0;
9
+ }
10
+ value = toNumber(value);
11
+ if (value === INFINITY || value === -INFINITY) {
12
+ var sign = value < 0 ? -1 : 1;
13
+ return sign * MAX_INTEGER;
14
+ }
15
+ return value === value ? value : 0;
16
+ }
17
+ function toInteger(value) {
18
+ var result = toFinite(value), remainder = result % 1;
19
+ return result === result ? remainder ? result - remainder : result : 0;
20
+ }
5
21
  function flatRest(func) {
6
22
  return setToString(overRest(func, void 0, flatten), func + "");
7
23
  }
@@ -9,6 +25,62 @@ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
9
25
  function cloneDeep(value) {
10
26
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
11
27
  }
28
+ var objectProto$1 = Object.prototype;
29
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
30
+ var defaults = baseRest(function(object, sources) {
31
+ object = Object(object);
32
+ var index = -1;
33
+ var length = sources.length;
34
+ var guard = length > 2 ? sources[2] : void 0;
35
+ if (guard && isIterateeCall(sources[0], sources[1], guard)) {
36
+ length = 1;
37
+ }
38
+ while (++index < length) {
39
+ var source = sources[index];
40
+ var props = keysIn(source);
41
+ var propsIndex = -1;
42
+ var propsLength = props.length;
43
+ while (++propsIndex < propsLength) {
44
+ var key = props[propsIndex];
45
+ var value = object[key];
46
+ if (value === void 0 || eq(value, objectProto$1[key]) && !hasOwnProperty$1.call(object, key)) {
47
+ object[key] = source[key];
48
+ }
49
+ }
50
+ }
51
+ return object;
52
+ });
53
+ function last(array) {
54
+ var length = array == null ? 0 : array.length;
55
+ return length ? array[length - 1] : void 0;
56
+ }
57
+ function createFind(findIndexFunc) {
58
+ return function(collection, predicate, fromIndex) {
59
+ var iterable = Object(collection);
60
+ if (!isArrayLike(collection)) {
61
+ var iteratee = baseIteratee(predicate);
62
+ collection = keys(collection);
63
+ predicate = function(key) {
64
+ return iteratee(iterable[key], key, iterable);
65
+ };
66
+ }
67
+ var index = findIndexFunc(collection, predicate, fromIndex);
68
+ return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0;
69
+ };
70
+ }
71
+ var nativeMax$1 = Math.max;
72
+ function findIndex(array, predicate, fromIndex) {
73
+ var length = array == null ? 0 : array.length;
74
+ if (!length) {
75
+ return -1;
76
+ }
77
+ var index = fromIndex == null ? 0 : toInteger(fromIndex);
78
+ if (index < 0) {
79
+ index = nativeMax$1(length + index, 0);
80
+ }
81
+ return baseFindIndex(array, baseIteratee(predicate), index);
82
+ }
83
+ var find = createFind(findIndex);
12
84
  function forIn(object, iteratee) {
13
85
  return object == null ? object : baseFor(object, castFunction(iteratee), keysIn);
14
86
  }
@@ -18,6 +90,14 @@ function forOwn(object, iteratee) {
18
90
  function baseGt(value, other) {
19
91
  return value > other;
20
92
  }
93
+ var objectProto = Object.prototype;
94
+ var hasOwnProperty = objectProto.hasOwnProperty;
95
+ function baseHas(object, key) {
96
+ return object != null && hasOwnProperty.call(object, key);
97
+ }
98
+ function has(object, path) {
99
+ return object != null && hasPath(object, path, baseHas);
100
+ }
21
101
  function mapValues(object, iteratee) {
22
102
  var result = {};
23
103
  iteratee = baseIteratee(iteratee);
@@ -32,6 +112,39 @@ function max(array) {
32
112
  function minBy(array, iteratee) {
33
113
  return array && array.length ? baseExtremum(array, baseIteratee(iteratee), baseLt) : void 0;
34
114
  }
115
+ function baseSet(object, path, value, customizer) {
116
+ if (!isObject(object)) {
117
+ return object;
118
+ }
119
+ path = castPath(path, object);
120
+ var index = -1, length = path.length, lastIndex = length - 1, nested = object;
121
+ while (nested != null && ++index < length) {
122
+ var key = toKey(path[index]), newValue = value;
123
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
124
+ return object;
125
+ }
126
+ if (index != lastIndex) {
127
+ var objValue = nested[key];
128
+ newValue = void 0;
129
+ if (newValue === void 0) {
130
+ newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
131
+ }
132
+ }
133
+ assignValue(nested, key, newValue);
134
+ nested = nested[key];
135
+ }
136
+ return object;
137
+ }
138
+ function basePickBy(object, paths, predicate) {
139
+ var index = -1, length = paths.length, result = {};
140
+ while (++index < length) {
141
+ var path = paths[index], value = baseGet(object, path);
142
+ if (predicate(value, path)) {
143
+ baseSet(result, castPath(path, object), value);
144
+ }
145
+ }
146
+ return result;
147
+ }
35
148
  function baseSortBy(array, comparer) {
36
149
  var length = array.length;
37
150
  array.sort(comparer);
@@ -0,0 +1,41 @@
1
+ import { b as baseFlatten, a as baseEach, c as baseIteratee, d as arrayMap } from "./_baseUniq-BPF2Herp.js";
2
+ import { aK as isArrayLike, aL as isArray, aM as isSymbol, aN as identity } from "./index-BL-57WPa.js";
3
+ function flatten(array) {
4
+ var length = array == null ? 0 : array.length;
5
+ return length ? baseFlatten(array) : [];
6
+ }
7
+ function baseMap(collection, iteratee) {
8
+ var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
9
+ baseEach(collection, function(value, key, collection2) {
10
+ result[++index] = iteratee(value, key, collection2);
11
+ });
12
+ return result;
13
+ }
14
+ function map(collection, iteratee) {
15
+ var func = isArray(collection) ? arrayMap : baseMap;
16
+ return func(collection, baseIteratee(iteratee));
17
+ }
18
+ function baseLt(value, other) {
19
+ return value < other;
20
+ }
21
+ function baseExtremum(array, iteratee, comparator) {
22
+ var index = -1, length = array.length;
23
+ while (++index < length) {
24
+ var value = array[index], current = iteratee(value);
25
+ if (current != null && (computed === void 0 ? current === current && !isSymbol(current) : comparator(current, computed))) {
26
+ var computed = current, result = value;
27
+ }
28
+ }
29
+ return result;
30
+ }
31
+ function min(array) {
32
+ return array && array.length ? baseExtremum(array, identity, baseLt) : void 0;
33
+ }
34
+ export {
35
+ baseLt as a,
36
+ baseExtremum as b,
37
+ baseMap as c,
38
+ min as d,
39
+ flatten as f,
40
+ map as m
41
+ };
@@ -1,6 +1,6 @@
1
- import { g as getDiagramElement } from "./chunk-55IACEB6-oLT9lXTt.js";
2
- import { s as setupViewPortForSVG } from "./chunk-KX2RTZJC-D32tV7H-.js";
3
- import { _ as __name, l as log, o as getRegisteredLayoutAlgorithm, r as render, F as defaultConfig_default, c as getConfig2, i as sanitizeText, ai as getUserDefinedConfig, aj as v4, $ as isDark, a0 as lighten, a1 as darken } from "./index-MDHavDF9.js";
1
+ import { g as getDiagramElement } from "./chunk-55IACEB6-BzVYZvBM.js";
2
+ import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY-BryQl5Kv.js";
3
+ import { _ as __name, l as log, o as getRegisteredLayoutAlgorithm, r as render, D as getConfig, G as defaultConfig_default, c as getConfig2, i as sanitizeText, ai as getUserDefinedConfig, aj as v4, Y as isDark, $ as lighten, a0 as darken } from "./index-BL-57WPa.js";
4
4
  var parser = (function() {
5
5
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
6
6
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -807,6 +807,7 @@ var MindmapDB = class {
807
807
  * @param processedNodes - Array to collect processed nodes
808
808
  */
809
809
  flattenNodes(node, processedNodes) {
810
+ const conf = getConfig2();
810
811
  const cssClasses = ["mindmap-node"];
811
812
  if (node.isRoot === true) {
812
813
  cssClasses.push("section-root", "section--1");
@@ -818,6 +819,8 @@ var MindmapDB = class {
818
819
  }
819
820
  const classes = cssClasses.join(" ");
820
821
  const getShapeFromType = /* @__PURE__ */ __name((type) => {
822
+ const theme = conf.theme?.toLowerCase() ?? "";
823
+ const isReduxTheme = theme.includes("redux");
821
824
  switch (type) {
822
825
  case nodeType.CIRCLE:
823
826
  return "mindmapCircle";
@@ -832,7 +835,7 @@ var MindmapDB = class {
832
835
  case nodeType.HEXAGON:
833
836
  return "hexagon";
834
837
  case nodeType.DEFAULT:
835
- return "defaultMindmapNode";
838
+ return isReduxTheme ? "rounded" : "defaultMindmapNode";
836
839
  case nodeType.NO_BORDER:
837
840
  default:
838
841
  return "rect";
@@ -850,7 +853,7 @@ var MindmapDB = class {
850
853
  padding: node.padding,
851
854
  cssClasses: classes,
852
855
  cssStyles: [],
853
- look: "default",
856
+ look: conf.look,
854
857
  icon: node.icon,
855
858
  x: node.x,
856
859
  y: node.y,
@@ -876,6 +879,7 @@ var MindmapDB = class {
876
879
  if (!node.children) {
877
880
  return;
878
881
  }
882
+ const conf = getConfig2();
879
883
  for (const child of node.children) {
880
884
  let edgeClasses = "edge";
881
885
  if (child.section !== void 0) {
@@ -890,7 +894,7 @@ var MindmapDB = class {
890
894
  type: "normal",
891
895
  curve: "basis",
892
896
  thickness: "normal",
893
- look: "default",
897
+ look: conf.look,
894
898
  classes: edgeClasses,
895
899
  // Store mindmap-specific data
896
900
  depth: node.level,
@@ -992,9 +996,20 @@ var draw = /* @__PURE__ */ __name(async (text, id, _version, diagObj) => {
992
996
  } else if (node.shape === "rect") {
993
997
  node.width = 0;
994
998
  node.padding = 10;
999
+ } else if (node.shape === "hexagon") {
1000
+ node.width = 0;
1001
+ node.height = 0;
995
1002
  }
996
1003
  });
997
1004
  await render(data4Layout, svg);
1005
+ const { themeVariables } = getConfig();
1006
+ const { useGradient, gradientStart, gradientStop } = themeVariables;
1007
+ if (useGradient && gradientStart && gradientStop) {
1008
+ const svgId = svg.attr("id");
1009
+ const gradient = svg.append("defs").append("linearGradient").attr("id", `${svgId}-gradient`).attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
1010
+ gradient.append("stop").attr("offset", "0%").attr("stop-color", gradientStart).attr("stop-opacity", 1);
1011
+ gradient.append("stop").attr("offset", "100%").attr("stop-color", gradientStop).attr("stop-opacity", 1);
1012
+ }
998
1013
  setupViewPortForSVG(
999
1014
  svg,
1000
1015
  data4Layout.config.mindmap?.padding ?? defaultConfig_default.mindmap.padding,
@@ -1006,6 +1021,7 @@ var mindmapRenderer_default = {
1006
1021
  draw
1007
1022
  };
1008
1023
  var genSections = /* @__PURE__ */ __name((options) => {
1024
+ const { theme, look } = options;
1009
1025
  let sections = "";
1010
1026
  for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1011
1027
  options["lineColor" + i] = options["lineColor" + i] || options["cScaleInv" + i];
@@ -1016,13 +1032,16 @@ var genSections = /* @__PURE__ */ __name((options) => {
1016
1032
  }
1017
1033
  }
1018
1034
  for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1019
- const sw = "" + (17 - 3 * i);
1035
+ const sw = "" + (look === "neo" ? Math.max(10 - (i - 1) * 2, 2) : 17 - 3 * i);
1020
1036
  sections += `
1021
1037
  .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
1022
1038
  fill: ${options["cScale" + i]};
1023
1039
  }
1024
1040
  .section-${i - 1} text {
1025
1041
  fill: ${options["cScaleLabel" + i]};
1042
+ }
1043
+ .section-${i - 1} span {
1044
+ color: ${options["cScaleLabel" + i]};
1026
1045
  }
1027
1046
  .node-icon-${i - 1} {
1028
1047
  font-size: 40px;
@@ -1045,11 +1064,40 @@ var genSections = /* @__PURE__ */ __name((options) => {
1045
1064
  .disabled text {
1046
1065
  fill: #efefef;
1047
1066
  }
1067
+ [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
1068
+ fill: ${theme === "redux" || theme === "redux-dark" || theme === "neutral" ? options.mainBkg : options["cScale" + i]};
1069
+ stroke: ${theme === "redux" || theme === "redux-dark" ? options.nodeBorder : options["cScale" + i]};
1070
+ stroke-width: ${options.strokeWidth ?? 2}px;
1071
+ }
1072
+ [data-look="neo"].section-edge-${i - 1}{
1073
+ stroke: ${theme?.includes("redux") || theme === "neo-dark" ? options.nodeBorder : options["cScale" + i]};
1074
+ }
1075
+ [data-look="neo"].mindmap-node.section-${i - 1} text {
1076
+ fill: ${theme === "redux" || theme === "redux-dark" ? options.nodeBorder : options["cScaleLabel" + (theme === "neutral" ? 1 : i)]};
1077
+ }
1048
1078
  `;
1049
1079
  }
1050
1080
  return sections;
1051
1081
  }, "genSections");
1052
- var getStyles = /* @__PURE__ */ __name((options) => `
1082
+ var genGradient = /* @__PURE__ */ __name((THEME_COLOR_LIMIT, svgId, mainBkg) => {
1083
+ let sections = "";
1084
+ for (let i = 0; i < THEME_COLOR_LIMIT; i++) {
1085
+ sections += `
1086
+ [data-look="neo"].mindmap-node.section-${i - 1} rect, [data-look="neo"].mindmap-node.section-${i - 1} path, [data-look="neo"].mindmap-node.section-${i - 1} circle, [data-look="neo"].mindmap-node.section-${i - 1} polygon {
1087
+ stroke: url(${svgId}-gradient);
1088
+ fill: ${mainBkg};
1089
+ }
1090
+ .section-${i - 1} line {
1091
+ stroke-width: 0;
1092
+ }`;
1093
+ }
1094
+ return sections;
1095
+ }, "genGradient");
1096
+ var getStyles = /* @__PURE__ */ __name((options) => {
1097
+ const { theme } = options;
1098
+ const svgId = options.svgId;
1099
+ const scopedDropShadow = options.dropShadow ? options.dropShadow.replace("url(#drop-shadow)", `url(${svgId}-drop-shadow)`) : "none";
1100
+ return `
1053
1101
  .edge {
1054
1102
  stroke-width: 3;
1055
1103
  }
@@ -1061,10 +1109,7 @@ var getStyles = /* @__PURE__ */ __name((options) => `
1061
1109
  fill: ${options.gitBranchLabel0};
1062
1110
  }
1063
1111
  .section-root span {
1064
- color: ${options.gitBranchLabel0};
1065
- }
1066
- .section-2 span {
1067
- color: ${options.gitBranchLabel0};
1112
+ color: ${theme?.includes("redux") ? options.nodeBorder : options.gitBranchLabel0};
1068
1113
  }
1069
1114
  .icon-container {
1070
1115
  height:100%;
@@ -1082,7 +1127,18 @@ var getStyles = /* @__PURE__ */ __name((options) => `
1082
1127
  dominant-baseline: middle;
1083
1128
  text-align: center;
1084
1129
  }
1085
- `, "getStyles");
1130
+ [data-look="neo"].mindmap-node {
1131
+ filter: ${scopedDropShadow};
1132
+ }
1133
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
1134
+ fill: ${theme?.includes("redux") ? options.mainBkg : options.git0};
1135
+ }
1136
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
1137
+ fill: ${theme?.includes("redux") ? options.nodeBorder : options["cScaleLabel" + (theme === "neutral" ? 1 : 0)]};
1138
+ }
1139
+ ${options.useGradient && svgId && options.mainBkg ? genGradient(options.THEME_COLOR_LIMIT, svgId, options.mainBkg) : ""}
1140
+ `;
1141
+ }, "getStyles");
1086
1142
  var styles_default = getStyles;
1087
1143
  var diagram = {
1088
1144
  get db() {
@@ -1,10 +1,9 @@
1
- import { ae as constant, a6 as tau, bq as array, g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, q as getDiagramTitle, p as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, E as cleanAndMerge, I as selectSvgElement, R as parseFontSize, br as ordinal, e as configureSvgSize, z as clear, F as defaultConfig_default } from "./index-MDHavDF9.js";
2
- import { p as populateCommonDb } from "./chunk-4BX2VUAB-ChcKNpL6.js";
3
- import { p as parse } from "./treemap-KZPCXAKY-W2a2L6ff.js";
4
- import { d as d3arc } from "./arc-CwESpVYE.js";
5
- import "./_baseUniq-Z8t1Ab1g.js";
6
- import "./_basePickBy-BWoXHZ8Z.js";
7
- import "./clone-D9a-uIZa.js";
1
+ import { ae as constant, a6 as tau, aI as array, g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, q as getDiagramTitle, p as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, F as cleanAndMerge, I as selectSvgElement, R as parseFontSize, aJ as ordinal, e as configureSvgSize, z as clear, G as defaultConfig_default } from "./index-BL-57WPa.js";
2
+ import { p as populateCommonDb } from "./chunk-4BX2VUAB-0KM14cFd.js";
3
+ import { p as parse } from "./wardley-RL74JXVD-DTbxPMj9.js";
4
+ import { d as d3arc } from "./arc-DfPLteHF.js";
5
+ import "./min-DB8ixvoT.js";
6
+ import "./_baseUniq-BPF2Herp.js";
8
7
  function descending(a, b) {
9
8
  return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
10
9
  }
@@ -146,8 +145,8 @@ var getStyles = /* @__PURE__ */ __name((options) => `
146
145
  var pieStyles_default = getStyles;
147
146
  var createPieArcs = /* @__PURE__ */ __name((sections2) => {
148
147
  const sum = [...sections2.values()].reduce((acc, val) => acc + val, 0);
149
- const pieData = [...sections2.entries()].map(([label, value]) => ({ label, value })).filter((d) => d.value / sum * 100 >= 1).sort((a, b) => b.value - a.value);
150
- const pie = d3pie().value((d) => d.value);
148
+ const pieData = [...sections2.entries()].map(([label, value]) => ({ label, value })).filter((d) => d.value / sum * 100 >= 1);
149
+ const pie = d3pie().value((d) => d.value).sort(null);
151
150
  return pie(pieData);
152
151
  }, "createPieArcs");
153
152
  var draw = /* @__PURE__ */ __name((text, id, _version, diagObj) => {
@@ -192,7 +191,9 @@ var draw = /* @__PURE__ */ __name((text, id, _version, diagObj) => {
192
191
  sum += section;
193
192
  });
194
193
  const filteredArcs = arcs.filter((datum) => (datum.data.value / sum * 100).toFixed(0) !== "0");
195
- const color = ordinal(myGeneratedColors);
194
+ const color = ordinal(myGeneratedColors).domain([
195
+ ...sections2.keys()
196
+ ]);
196
197
  group.selectAll("mySlices").data(filteredArcs).enter().append("path").attr("d", arcGenerator).attr("fill", (datum) => {
197
198
  return color(datum.data.label);
198
199
  }).attr("class", "pieCircle");
@@ -201,7 +202,7 @@ var draw = /* @__PURE__ */ __name((text, id, _version, diagObj) => {
201
202
  }).attr("transform", (datum) => {
202
203
  return "translate(" + labelArcGenerator.centroid(datum) + ")";
203
204
  }).style("text-anchor", "middle").attr("class", "slice");
204
- group.append("text").text(db2.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
205
+ const titleText = group.append("text").text(db2.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText");
205
206
  const allSectionData = [...sections2.entries()].map(([label, value]) => ({
206
207
  label,
207
208
  value
@@ -223,8 +224,14 @@ var draw = /* @__PURE__ */ __name((text, id, _version, diagObj) => {
223
224
  const longestTextWidth = Math.max(
224
225
  ...legend.selectAll("text").nodes().map((node) => node?.getBoundingClientRect().width ?? 0)
225
226
  );
226
- const totalWidth = pieWidth + MARGIN + LEGEND_RECT_SIZE + LEGEND_SPACING + longestTextWidth;
227
- svg.attr("viewBox", `0 0 ${totalWidth} ${height}`);
227
+ const chartAndLegendWidth = pieWidth + MARGIN + LEGEND_RECT_SIZE + LEGEND_SPACING + longestTextWidth;
228
+ const titleWidth = titleText.node()?.getBoundingClientRect().width ?? 0;
229
+ const titleLeft = pieWidth / 2 - titleWidth / 2;
230
+ const titleRight = pieWidth / 2 + titleWidth / 2;
231
+ const viewBoxX = Math.min(0, titleLeft);
232
+ const viewBoxRight = Math.max(chartAndLegendWidth, titleRight);
233
+ const totalWidth = viewBoxRight - viewBoxX;
234
+ svg.attr("viewBox", `${viewBoxX} 0 ${totalWidth} ${height}`);
228
235
  configureSvgSize(svg, height, totalWidth, pieConfig.useMaxWidth);
229
236
  }, "draw");
230
237
  var renderer = { draw };
@@ -1,4 +1,4 @@
1
- import { s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as select, e as configureSvgSize, z as clear, F as defaultConfig_default, K as linear, i as sanitizeText, L as getThemeVariables3 } from "./index-MDHavDF9.js";
1
+ import { s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as select, e as configureSvgSize, z as clear, G as defaultConfig_default, K as linear, i as sanitizeText, L as getThemeVariables3 } from "./index-BL-57WPa.js";
2
2
  var parser = (function() {
3
3
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
4
4
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1,6 +1,6 @@
1
- import { g as getDiagramElement } from "./chunk-55IACEB6-oLT9lXTt.js";
2
- import { s as setupViewPortForSVG } from "./chunk-KX2RTZJC-D32tV7H-.js";
3
- import { _ as __name, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, p as setDiagramTitle, q as getDiagramTitle, c as getConfig2, l as log, z as clear, C as __export, o as getRegisteredLayoutAlgorithm, r as render, u as utils_default } from "./index-MDHavDF9.js";
1
+ import { g as getDiagramElement } from "./chunk-55IACEB6-BzVYZvBM.js";
2
+ import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY-BryQl5Kv.js";
3
+ import { _ as __name, D as getConfig, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, p as setDiagramTitle, q as getDiagramTitle, c as getConfig2, l as log, z as clear, C as __export, o as getRegisteredLayoutAlgorithm, r as render, u as utils_default } from "./index-BL-57WPa.js";
4
4
  var parser = (function() {
5
5
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
6
6
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1029,6 +1029,7 @@ var RequirementDB = class {
1029
1029
  node.cssClasses = requirement.classes.join(" ");
1030
1030
  node.shape = "requirementBox";
1031
1031
  node.look = config.look;
1032
+ node.colorIndex = nodes.length;
1032
1033
  nodes.push(node);
1033
1034
  }
1034
1035
  for (const element of this.elements.values()) {
@@ -1038,6 +1039,7 @@ var RequirementDB = class {
1038
1039
  node.id = element.name;
1039
1040
  node.cssStyles = element.cssStyles;
1040
1041
  node.cssClasses = element.classes.join(" ");
1042
+ node.colorIndex = nodes.length;
1041
1043
  nodes.push(node);
1042
1044
  }
1043
1045
  for (const relation of this.relations) {
@@ -1047,7 +1049,7 @@ var RequirementDB = class {
1047
1049
  id: `${relation.src}-${relation.dst}-${counter}`,
1048
1050
  start: this.requirements.get(relation.src)?.name ?? this.elements.get(relation.src)?.name,
1049
1051
  end: this.requirements.get(relation.dst)?.name ?? this.elements.get(relation.dst)?.name,
1050
- label: `«${relation.type}»`,
1052
+ label: `&lt;&lt;${relation.type}&gt;&gt;`,
1051
1053
  classes: "relationshipLine",
1052
1054
  style: ["fill:none", isContains ? "" : "stroke-dasharray: 10,7"],
1053
1055
  labelpos: "c",
@@ -1065,8 +1067,36 @@ var RequirementDB = class {
1065
1067
  return { nodes, edges, other: {}, config, direction: this.getDirection() };
1066
1068
  }
1067
1069
  };
1068
- var getStyles = /* @__PURE__ */ __name((options) => `
1070
+ var genColor = /* @__PURE__ */ __name((options) => {
1071
+ const config = getConfig();
1072
+ const { themeVariables, look } = config;
1073
+ const { bkgColorArray, borderColorArray } = themeVariables;
1074
+ if (!borderColorArray?.length) {
1075
+ return "";
1076
+ }
1077
+ let sections = "";
1078
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1079
+ sections += `
1080
+
1081
+ [data-look="${look}"][data-color-id="color-${i}"].node path {
1082
+ stroke: ${borderColorArray[i]};
1083
+ fill: ${bkgColorArray?.length ? bkgColorArray[i] : ""};
1084
+ }
1069
1085
 
1086
+ [data-look="${look}"][data-color-id="color-${i}"].node rect {
1087
+ stroke: ${borderColorArray[i]};
1088
+ fill: ${bkgColorArray?.length ? bkgColorArray[i] : ""};
1089
+ }
1090
+ `;
1091
+ }
1092
+ return sections;
1093
+ }, "genColor");
1094
+ var getStyles = /* @__PURE__ */ __name((options) => {
1095
+ const config = getConfig();
1096
+ const { look, themeVariables } = config;
1097
+ const { requirementEdgeLabelBackground } = themeVariables;
1098
+ return `
1099
+ ${genColor(options)}
1070
1100
  marker {
1071
1101
  fill: ${options.relationColor};
1072
1102
  stroke: ${options.relationColor};
@@ -1102,12 +1132,12 @@ var getStyles = /* @__PURE__ */ __name((options) => `
1102
1132
  }
1103
1133
  .relationshipLine {
1104
1134
  stroke: ${options.relationColor};
1105
- stroke-width: 1;
1135
+ stroke-width: ${look === "neo" ? options.strokeWidth : "1px"};
1106
1136
  }
1107
1137
  .relationshipLabel {
1108
1138
  fill: ${options.relationLabelColor};
1109
1139
  }
1110
- .edgeLabel {
1140
+ .edgeLabel {
1111
1141
  background-color: ${options.edgeLabelBackground};
1112
1142
  }
1113
1143
  .edgeLabel .label rect {
@@ -1129,10 +1159,11 @@ var getStyles = /* @__PURE__ */ __name((options) => `
1129
1159
  color: ${options.nodeTextColor || options.textColor};
1130
1160
  }
1131
1161
  .labelBkg {
1132
- background-color: ${options.edgeLabelBackground};
1162
+ background-color: ${requirementEdgeLabelBackground ?? options.edgeLabelBackground};
1133
1163
  }
1134
1164
 
1135
- `, "getStyles");
1165
+ `;
1166
+ }, "getStyles");
1136
1167
  var styles_default = getStyles;
1137
1168
  var requirementRenderer_exports = {};
1138
1169
  __export(requirementRenderer_exports, {
@@ -1141,14 +1172,14 @@ __export(requirementRenderer_exports, {
1141
1172
  var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
1142
1173
  log.info("REF0:");
1143
1174
  log.info("Drawing requirement diagram (unified)", id);
1144
- const { securityLevel, state: conf, layout } = getConfig2();
1175
+ const { securityLevel, state: conf, layout, look } = getConfig2();
1145
1176
  const data4Layout = diag.db.getData();
1146
1177
  const svg = getDiagramElement(id, securityLevel);
1147
1178
  data4Layout.type = diag.type;
1148
1179
  data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(layout);
1149
1180
  data4Layout.nodeSpacing = conf?.nodeSpacing ?? 50;
1150
1181
  data4Layout.rankSpacing = conf?.rankSpacing ?? 50;
1151
- data4Layout.markers = ["requirement_contains", "requirement_arrow"];
1182
+ data4Layout.markers = look === "neo" ? ["requirement_contains_neo", "requirement_arrow_neo"] : ["requirement_contains", "requirement_arrow"];
1152
1183
  data4Layout.diagramId = id;
1153
1184
  await render(data4Layout, svg);
1154
1185
  const padding = 8;
@@ -1,4 +1,4 @@
1
- import { p as setDiagramTitle, q as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, A as defaultConfig2, d as select, br as ordinal, Y as setupGraphViewbox, z as clear, k as common_default } from "./index-MDHavDF9.js";
1
+ import { p as setDiagramTitle, q as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, A as defaultConfig2, d as select, aJ as ordinal, a1 as setupGraphViewbox, z as clear, k as common_default } from "./index-BL-57WPa.js";
2
2
  function colors(specifier) {
3
3
  var n = specifier.length / 6 | 0, colors2 = new Array(n), i = 0;
4
4
  while (i < n) colors2[i] = "#" + specifier.slice(i * 6, ++i * 6);