@sme.up/ketchup2 2.1.0 → 2.3.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 (417) hide show
  1. package/dist/{arc-Klgb378K.js → arc-D80gVCcI.js} +2 -2
  2. package/dist/{arc-CqG9Hxdf.cjs → arc-MUYNnJxV.cjs} +1 -1
  3. package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +3 -0
  4. package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +1 -0
  5. package/dist/architectureDiagram-3BPJPVTR-BrmPrClJ.cjs +36 -0
  6. package/dist/{architectureDiagram-Q4EWVU46-u2vgZv3N.js → architectureDiagram-3BPJPVTR-EFK4DMha.js} +167 -166
  7. package/dist/assets/buttonListAssets.d.ts +8 -0
  8. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  9. package/dist/basic-components/button/button-types.d.ts +4 -0
  10. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  11. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  12. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  13. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  14. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  15. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  16. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  17. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  18. package/dist/basic-components/cell/cell-utils.d.ts +13 -5
  19. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  20. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  21. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  22. package/dist/basic-components/image/image.d.ts.map +1 -1
  23. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  24. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  25. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  26. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  27. package/dist/basic-components/text/text.d.ts.map +1 -1
  28. package/dist/basic-components/text-editor/text-editor-utils.d.ts +11 -0
  29. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  30. package/dist/basic-components/text-editor/text-editor.d.ts.map +1 -1
  31. package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
  32. package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
  33. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  34. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  35. package/dist/{blockDiagram-DXYQGD6D-BpB6_kTP.js → blockDiagram-GPEHLZMM-C3UgY0Z5.js} +999 -877
  36. package/dist/blockDiagram-GPEHLZMM-CuzoKhJT.cjs +132 -0
  37. package/dist/{c4Diagram-AHTNJAMY-CX5IjREU.cjs → c4Diagram-AAUBKEIU-DU8uXbgK.cjs} +6 -6
  38. package/dist/{c4Diagram-AHTNJAMY-B5Z8nO1s.js → c4Diagram-AAUBKEIU-klnmEOUo.js} +279 -279
  39. package/dist/channel-BbRDdbmM.js +5 -0
  40. package/dist/channel-intTktDQ.cjs +1 -0
  41. package/dist/chunk-2J33WTMH-EmvF7iYC.js +25 -0
  42. package/dist/chunk-2J33WTMH-PlcpVW8G.cjs +1 -0
  43. package/dist/{chunk-5FUZZQ4R-2kdZJWq2.js → chunk-3OPIFGDE-C7wE5oN7.js} +957 -929
  44. package/dist/chunk-3OPIFGDE-CT5oNC5X.cjs +62 -0
  45. package/dist/{chunk-4BX2VUAB-BW54-JWg.js → chunk-4BX2VUAB-BO1KRGb1.js} +1 -1
  46. package/dist/{chunk-4BX2VUAB-Qba52sxc.cjs → chunk-4BX2VUAB-CtDGlaPx.cjs} +1 -1
  47. package/dist/{chunk-7N4EOEYR-C-GuhRgW.js → chunk-4EGX6M5U-BMVrizoY.js} +12 -12
  48. package/dist/{chunk-7N4EOEYR-jNBQwvHx.cjs → chunk-4EGX6M5U-VENLmgBt.cjs} +1 -1
  49. package/dist/{chunk-55IACEB6-DPatBzu7.cjs → chunk-55IACEB6-VJP3Osm7.cjs} +1 -1
  50. package/dist/{chunk-55IACEB6-Bu3k0Yz5.js → chunk-55IACEB6-b_Ivgrk-.js} +1 -1
  51. package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +1 -0
  52. package/dist/chunk-5DO6E6H7-QuTLwcim.js +23 -0
  53. package/dist/chunk-5ZQYHXKU-BMnKD7Zq.cjs +2 -0
  54. package/dist/{chunk-5PVQY5BW-C5U7sJAA.js → chunk-5ZQYHXKU-C4uam08j.js} +527 -461
  55. package/dist/chunk-727SXJPM-DTmqhRKX.cjs +206 -0
  56. package/dist/{chunk-4TB4RGXK-CKyHmNcP.js → chunk-727SXJPM-Dof0vDVV.js} +650 -554
  57. package/dist/{chunk-OYMX7WX6-BCT45RPu.cjs → chunk-AQP2D5EJ-DdWeFQ4O.cjs} +5 -5
  58. package/dist/{chunk-OYMX7WX6-BQADsxYi.js → chunk-AQP2D5EJ-N9ii4fwJ.js} +349 -339
  59. package/dist/{chunk-LIHQZDEY-59I4-LWb.js → chunk-BR22UD5L-CS6hURQQ.js} +15 -15
  60. package/dist/{chunk-LIHQZDEY-CrogR3nT.cjs → chunk-BR22UD5L-wI1vkyAT.cjs} +1 -1
  61. package/dist/{chunk-BSJP7CBP-oNTXVRA7.js → chunk-BSJP7CBP-Bx5APwBA.js} +1 -1
  62. package/dist/{chunk-BSJP7CBP-CFzYPvgr.cjs → chunk-BSJP7CBP-CaeBFqNU.cjs} +1 -1
  63. package/dist/{chunk-ICPOFSXX-Sn6LWD0k.js → chunk-CSCIHK7Q-9WKhcDqw.js} +558 -460
  64. package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +123 -0
  65. package/dist/chunk-FHYWG6QK-CfRqYwCI.js +23 -0
  66. package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +1 -0
  67. package/dist/{chunk-FMBD7UC4-RRSc9jqt.js → chunk-FMBD7UC4-BbggSGOg.js} +1 -1
  68. package/dist/{chunk-FMBD7UC4-CS9_r76V.cjs → chunk-FMBD7UC4-CiO_59ls.cjs} +1 -1
  69. package/dist/{chunk-ENJZ2VHE-BluGQPyl.js → chunk-KSCS5N6A-BY1s4eGg.js} +205 -205
  70. package/dist/chunk-KSCS5N6A-DO8jEi0y.cjs +10 -0
  71. package/dist/{chunk-ZZ45TVLE-AQQsnXy4.cjs → chunk-L5ZTLDWV-BE9udiOh.cjs} +1 -1
  72. package/dist/{chunk-ZZ45TVLE-CIYrdg-O.js → chunk-L5ZTLDWV-D3UwMopa.js} +8 -8
  73. package/dist/{chunk-336JU56O-CuXRn1VH.cjs → chunk-LZXEDZCA-Dpz_wx3M.cjs} +1 -1
  74. package/dist/{chunk-336JU56O-xKPgkG3O.js → chunk-LZXEDZCA-KzBFuWPU.js} +18 -18
  75. package/dist/chunk-MPE355IW-4bpROspE.js +23 -0
  76. package/dist/chunk-MPE355IW-CxPw_dPP.cjs +1 -0
  77. package/dist/chunk-MZUSXYTE-DA5mUG5B.js +30 -0
  78. package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +1 -0
  79. package/dist/chunk-N66VUXT2-DSbygtq1.cjs +1 -0
  80. package/dist/chunk-N66VUXT2-pDZ1b-B3.js +54 -0
  81. package/dist/{chunk-YZCP3GAM-9K9WNdyN.js → chunk-ND2GUHAM-CHTke4K8.js} +17 -17
  82. package/dist/{chunk-YZCP3GAM-BmaAafMm.cjs → chunk-ND2GUHAM-DdBSZTft.cjs} +1 -1
  83. package/dist/chunk-NNHCCRGN-D_orSz6n.js +20630 -0
  84. package/dist/chunk-NNHCCRGN-aKMHXBzL.cjs +159 -0
  85. package/dist/{chunk-X2U36JSP-CY7mJR8m.js → chunk-NZK2D7GU-BVOINLmx.js} +13 -13
  86. package/dist/{chunk-X2U36JSP-D1RYKjVc.cjs → chunk-NZK2D7GU-_twqedIe.cjs} +1 -1
  87. package/dist/{chunk-U2HBQHQK-D0AoQWxK.cjs → chunk-O5CBEL6O-CDvi2oZo.cjs} +6 -6
  88. package/dist/{chunk-U2HBQHQK-BZ3YFMXB.js → chunk-O5CBEL6O-VsMF4aZB.js} +108 -108
  89. package/dist/chunk-PUPMXCY4-CKjhJQnN.js +23 -0
  90. package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +1 -0
  91. package/dist/{chunk-QZHKN3VN-CSMKL2rB.cjs → chunk-QZHKN3VN-CHjRGMI2.cjs} +1 -1
  92. package/dist/{chunk-QZHKN3VN-Bx8I6l3c.js → chunk-QZHKN3VN-DCddt14Q.js} +1 -1
  93. package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +1 -0
  94. package/dist/chunk-UIBZB4QT-BvFllM0Q.js +23 -0
  95. package/dist/chunk-WCWK7LTN-D_C1as0Y.js +31 -0
  96. package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +1 -0
  97. package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +1 -0
  98. package/dist/chunk-WU5MYG2G-mQn7Wt-i.js +9 -0
  99. package/dist/{chunk-XPW4576I-BcWkx-AL.js → chunk-XPW4576I-BCowsgDU.js} +1 -1
  100. package/dist/{chunk-XPW4576I-D8Pp6a3j.cjs → chunk-XPW4576I-D_mwgMVU.cjs} +1 -1
  101. package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +1 -0
  102. package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +29 -0
  103. package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +29 -0
  104. package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +1 -0
  105. package/dist/components/dash-list/assets/dash-list.data.d.ts +1 -0
  106. package/dist/components/dash-list/assets/dash-list.data.d.ts.map +1 -1
  107. package/dist/components/dash-list/dash-list-types.d.ts +1 -0
  108. package/dist/components/dash-list/dash-list-types.d.ts.map +1 -1
  109. package/dist/components/dash-list/dash-list.d.ts.map +1 -1
  110. package/dist/components/dash-list/dash-list.utils.d.ts +0 -3
  111. package/dist/components/dash-list/dash-list.utils.d.ts.map +1 -1
  112. package/dist/components/drawer/drawer-types.d.ts +4 -0
  113. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  114. package/dist/components/field/field.d.ts.map +1 -1
  115. package/dist/components/htm/htm-types.d.ts +4 -0
  116. package/dist/components/htm/htm-types.d.ts.map +1 -1
  117. package/dist/components/htm/htm.d.ts.map +1 -1
  118. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  119. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  120. package/dist/components/pdf/pdf-types.d.ts +8 -0
  121. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  122. package/dist/components/pdf/pdf-utils.d.ts +1 -1
  123. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  124. package/dist/components/pdf/pdf.d.ts.map +1 -1
  125. package/dist/components/planner/planner-assets.d.ts +2 -2
  126. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  127. package/dist/components/planner/planner-types.d.ts +1 -1
  128. package/dist/components/planner/planner-types.d.ts.map +1 -1
  129. package/dist/components/planner/planner-utils.d.ts +7 -5
  130. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  131. package/dist/components/planner/planner.d.ts.map +1 -1
  132. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  133. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  134. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  135. package/dist/components/timeline/timeline-types.d.ts +6 -2
  136. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  137. package/dist/components/timeline/timeline.d.ts.map +1 -1
  138. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  139. package/dist/components/tooltip/tooltip-assets.d.ts +1 -0
  140. package/dist/components/tooltip/tooltip-assets.d.ts.map +1 -1
  141. package/dist/components/tooltip/tooltip-types.d.ts +4 -16
  142. package/dist/components/tooltip/tooltip-types.d.ts.map +1 -1
  143. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  144. package/dist/{cose-bilkent-S5V4N54A-B30Rh9DR.js → cose-bilkent-S5V4N54A-Bfb7U01p.js} +26 -27
  145. package/dist/cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs +1 -0
  146. package/dist/dagre-BM42HDAG-BhbA1R8l.cjs +4 -0
  147. package/dist/dagre-BM42HDAG-D87Rv2R4.js +297 -0
  148. package/dist/dagre-CC68z3y6.cjs +1 -0
  149. package/dist/dagre-Cg4CV48I.js +1936 -0
  150. package/dist/diagram-2AECGRRQ-C6vI3yau.cjs +43 -0
  151. package/dist/{diagram-MMDJMWI5-DUUVPi55.js → diagram-2AECGRRQ-OSYCK0tv.js} +36 -36
  152. package/dist/diagram-5GNKFQAL-BS9rRMAe.cjs +10 -0
  153. package/dist/diagram-5GNKFQAL-DnquluB9.js +101 -0
  154. package/dist/diagram-KO2AKTUF-CFi6eQYd.js +431 -0
  155. package/dist/diagram-KO2AKTUF-CjA_KTJj.cjs +3 -0
  156. package/dist/{diagram-TYMM5635-Cpj8wfoJ.js → diagram-LMA3HP47-Cwm5bzeM.js} +38 -38
  157. package/dist/diagram-LMA3HP47-DBwSTp2j.cjs +24 -0
  158. package/dist/diagram-OG6HWLK6-BdLnbUYy.cjs +24 -0
  159. package/dist/{diagram-G4DWMVQ6-BkQnbCLv.js → diagram-OG6HWLK6-DvGk1j55.js} +93 -93
  160. package/dist/{dist-DL30VIBI.js → dist-9MKIBfY4.js} +1 -1
  161. package/dist/dist-DC1YYeHc.cjs +1 -0
  162. package/dist/{erDiagram-SMLLAGMA-D_ByPk0C.js → erDiagram-TEJ5UH35-B17mqgD_.js} +164 -164
  163. package/dist/erDiagram-TEJ5UH35-NlRiP_bX.cjs +85 -0
  164. package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +3 -0
  165. package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +1 -0
  166. package/dist/{flowDiagram-DWJPFMVM-BWrkDnqc.js → flowDiagram-I6XJVG4X-C2G6Tgw_.js} +444 -444
  167. package/dist/{flowDiagram-DWJPFMVM-BbK42NaF.cjs → flowDiagram-I6XJVG4X-ChI_6giU.cjs} +9 -9
  168. package/dist/functional-components/action/action-types.d.ts +26 -1
  169. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  170. package/dist/functional-components/action/action-utils.d.ts +13 -1
  171. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  172. package/dist/functional-components/action/action.d.ts.map +1 -1
  173. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  174. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  175. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  176. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  177. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts +106 -0
  178. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts.map +1 -0
  179. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts +2 -0
  180. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts.map +1 -0
  181. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts +38 -0
  182. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts.map +1 -0
  183. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +60 -0
  184. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  185. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  186. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  187. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  188. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  189. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  190. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  191. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts +79 -0
  192. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  193. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  194. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  195. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  196. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  197. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  198. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +28 -0
  199. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  200. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +143 -0
  201. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  202. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  203. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  204. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  205. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  206. package/dist/ganttDiagram-6RSMTGT7-B0DHqd7u.cjs +292 -0
  207. package/dist/{ganttDiagram-T4ZO3ILL-LuaYkUvj.js → ganttDiagram-6RSMTGT7-Bb6bqcaS.js} +278 -276
  208. package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +1 -0
  209. package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +3 -0
  210. package/dist/gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs +106 -0
  211. package/dist/{gitGraphDiagram-UUTBAWPF-DKkENwcV.js → gitGraphDiagram-PVQCEYII-DiJUr7lO.js} +255 -255
  212. package/dist/graphlib-B1zohIOM.js +1266 -0
  213. package/dist/graphlib-B5AXIZA4.cjs +1 -0
  214. package/dist/hooks/useFloating.d.ts.map +1 -1
  215. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  216. package/dist/hooks/useGanttMath.d.ts +1 -1
  217. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  218. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  219. package/dist/info-J43DQDTF-CLRXRK49.js +3 -0
  220. package/dist/info-J43DQDTF-CmpcAuH-.cjs +1 -0
  221. package/dist/infoDiagram-5YYISTIA-C8P9DHlE.js +19 -0
  222. package/dist/infoDiagram-5YYISTIA-fhwEAAjF.cjs +2 -0
  223. package/dist/{ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs → ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs} +6 -6
  224. package/dist/{ishikawaDiagram-UXIWVN3A-DqbVPChK.js → ishikawaDiagram-YF4QCWOH-rqNbTKZp.js} +134 -134
  225. package/dist/{journeyDiagram-VCZTEJTY-XRc0J8gM.cjs → journeyDiagram-JHISSGLW-BhHdd4y3.cjs} +6 -6
  226. package/dist/{journeyDiagram-VCZTEJTY-DudduR0c.js → journeyDiagram-JHISSGLW-peUJlm3L.js} +180 -180
  227. package/dist/{kanban-definition-6JOO6SKY-DzEqE64J.js → kanban-definition-UN3LZRKU-DLxDqiQn.js} +151 -151
  228. package/dist/{kanban-definition-6JOO6SKY-Br87atRc.cjs → kanban-definition-UN3LZRKU-TUg1x5yJ.cjs} +8 -8
  229. package/dist/{katex-SAH56fvc.cjs → katex-HkVgAsLB.cjs} +1 -1
  230. package/dist/ketchup2.cjs.js +110 -106
  231. package/dist/ketchup2.css +1 -1
  232. package/dist/ketchup2.es.js +68073 -69871
  233. package/dist/{line-JyRBGWft.js → line-BhAnxCE8.js} +3 -3
  234. package/dist/line-CpcTW4h-.cjs +1 -0
  235. package/dist/{linear-CxHa1DsM.cjs → linear-D0eFmsG1.cjs} +1 -1
  236. package/dist/{linear-BsPvNLJv.js → linear-lSeWuvgy.js} +3 -3
  237. package/dist/{mermaid-parser.core-CERDf-UG.js → mermaid-parser.core-Dz33ts1l.js} +24 -19
  238. package/dist/mermaid-parser.core-HQxPJrkY.cjs +3 -0
  239. package/dist/{mindmap-definition-QFDTVHPH-BCq8zmLt.cjs → mindmap-definition-RKZ34NQL-D9BOsg5W.cjs} +29 -29
  240. package/dist/{mindmap-definition-QFDTVHPH-NGjPQ5SM.js → mindmap-definition-RKZ34NQL-DHkmUkxh.js} +148 -148
  241. package/dist/{ordinal-Civr0hZL.cjs → ordinal-BnUYNBtU.cjs} +1 -1
  242. package/dist/{ordinal-C-VoL0XF.js → ordinal-MD9_ORcM.js} +1 -1
  243. package/dist/packet-YPE3B663-BwjweAZY.cjs +1 -0
  244. package/dist/packet-YPE3B663-D1Hr9AQm.js +3 -0
  245. package/dist/pie-LRSECV5Y-CpDfN1P0.js +3 -0
  246. package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +1 -0
  247. package/dist/{pieDiagram-DEJITSTG-DTeyzHmB.js → pieDiagram-4H26LBE5-ByA7ytZx.js} +40 -40
  248. package/dist/pieDiagram-4H26LBE5-CrLJh4L9.cjs +30 -0
  249. package/dist/{quadrantDiagram-34T5L4WZ-CCcJIf91.js → quadrantDiagram-W4KKPZXB-CHHpmu1l.js} +547 -520
  250. package/dist/quadrantDiagram-W4KKPZXB-CalC_db_.cjs +7 -0
  251. package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +1 -0
  252. package/dist/radar-GUYGQ44K-ByzrmbOz.js +3 -0
  253. package/dist/{requirementDiagram-MS252O5E-BdOanuYe.js → requirementDiagram-4Y6WPE33-BVcDFSx8.js} +165 -165
  254. package/dist/requirementDiagram-4Y6WPE33-SsePLT8d.cjs +84 -0
  255. package/dist/sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs +40 -0
  256. package/dist/{sankeyDiagram-XADWPNL6-3wviN_U4.js → sankeyDiagram-5OEKKPKP-C-ODz9lV.js} +202 -153
  257. package/dist/{sequenceDiagram-FGHM5R23-DC8SjhFN.js → sequenceDiagram-3UESZ5HK-Cnc0aDO4.js} +786 -779
  258. package/dist/sequenceDiagram-3UESZ5HK-DEVLteqD.cjs +162 -0
  259. package/dist/src-BgvDIw01.cjs +1 -0
  260. package/dist/{src-BQiFKP24.js → src-v9RrE_4h.js} +578 -563
  261. package/dist/stateDiagram-AJRCARHV-CuHe6Iji.js +217 -0
  262. package/dist/stateDiagram-AJRCARHV-D_yPvIRw.cjs +1 -0
  263. package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +1 -0
  264. package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +27 -0
  265. package/dist/{timeline-definition-GMOUNBTQ-CBnYBWN0.js → timeline-definition-PNZ67QCA-Bj1BItRB.js} +324 -324
  266. package/dist/{timeline-definition-GMOUNBTQ-DWpngnE4.cjs → timeline-definition-PNZ67QCA-Cynbc96w.cjs} +48 -48
  267. package/dist/treeView-BLDUP644-CxLhpd93.js +3 -0
  268. package/dist/treeView-BLDUP644-DMwVx0AR.cjs +1 -0
  269. package/dist/treemap-LRROVOQU-BqmiLdFI.js +3 -0
  270. package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +1 -0
  271. package/dist/types/data-structures.d.ts +9 -1
  272. package/dist/types/data-structures.d.ts.map +1 -1
  273. package/dist/utils/data-structures.d.ts +2 -0
  274. package/dist/utils/data-structures.d.ts.map +1 -1
  275. package/dist/utils/style.d.ts +13 -2
  276. package/dist/utils/style.d.ts.map +1 -1
  277. package/dist/v4-BpDBEhLK.js +30 -0
  278. package/dist/v4-CA8ev9YY.cjs +1 -0
  279. package/dist/{vennDiagram-DHZGUBPP-M-kkEkXj.js → vennDiagram-CIIHVFJN-CdmcxixA.js} +192 -192
  280. package/dist/vennDiagram-CIIHVFJN-Dm4D6omA.cjs +34 -0
  281. package/dist/wardley-L42UT6IY-C7UjBmVh.js +3 -0
  282. package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +1 -0
  283. package/dist/{wardleyDiagram-NUSXRM2D-thoOuA_D.cjs → wardleyDiagram-YWT4CUSO-C-DdutxP.cjs} +61 -3
  284. package/dist/{wardleyDiagram-NUSXRM2D-CUX1SYhw.js → wardleyDiagram-YWT4CUSO-D1o116Wi.js} +272 -206
  285. package/dist/{xychartDiagram-5P7HB3ND-1cXRZ1bi.js → xychartDiagram-2RQKCTM6-Byw7djcg.js} +213 -213
  286. package/dist/{xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs → xychartDiagram-2RQKCTM6-D0D4PIQS.cjs} +6 -6
  287. package/package.json +1 -1
  288. package/dist/architecture-YZFGNWBL-BRqToLcm.js +0 -3
  289. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +0 -1
  290. package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +0 -36
  291. package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +0 -132
  292. package/dist/channel-BY9Lkyz7.cjs +0 -1
  293. package/dist/channel-BqNr2cYO.js +0 -5
  294. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +0 -23
  295. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +0 -1
  296. package/dist/chunk-426QAEUC-Df31vuwu.cjs +0 -1
  297. package/dist/chunk-426QAEUC-JjFVHKYG.js +0 -9
  298. package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +0 -206
  299. package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +0 -62
  300. package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +0 -2
  301. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +0 -1
  302. package/dist/chunk-67CJDMHE-YMBkJcAO.js +0 -23
  303. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +0 -30
  304. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +0 -1
  305. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +0 -1
  306. package/dist/chunk-CIAEETIT-XlxsAz-4.js +0 -23
  307. package/dist/chunk-D-IZpNpi.cjs +0 -1
  308. package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +0 -1
  309. package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +0 -25
  310. package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +0 -10
  311. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +0 -1
  312. package/dist/chunk-FOC6F5B3-E9n6-juB.js +0 -23
  313. package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +0 -122
  314. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +0 -94
  315. package/dist/chunk-K5T4RW27-DY7TOEqa.js +0 -16070
  316. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +0 -23
  317. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +0 -1
  318. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +0 -1
  319. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +0 -31
  320. package/dist/chunk-WQLz0Won.js +0 -20
  321. package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +0 -1
  322. package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +0 -29
  323. package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +0 -29
  324. package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +0 -1
  325. package/dist/clone-Dn__H8fX.js +0 -8
  326. package/dist/clone-lShkT11Q.cjs +0 -1
  327. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +0 -1
  328. package/dist/dagre-BjnWDdkw.cjs +0 -1
  329. package/dist/dagre-DVLnxd7n.js +0 -1606
  330. package/dist/dagre-KV5264BT-BjqayRYC.js +0 -293
  331. package/dist/dagre-KV5264BT-BvInGAUC.cjs +0 -4
  332. package/dist/diagram-5BDNPKRD-Bk7depC0.js +0 -101
  333. package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +0 -10
  334. package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +0 -24
  335. package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +0 -43
  336. package/dist/diagram-TYMM5635-5auoAFCi.cjs +0 -24
  337. package/dist/dist-BgvMZbfo.cjs +0 -1
  338. package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +0 -85
  339. package/dist/flatten-BE1bWL-7.js +0 -40
  340. package/dist/flatten-DxvYSoR8.cjs +0 -1
  341. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  342. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  343. package/dist/functional-components/gantt/gantt-assets.d.ts +0 -55
  344. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  345. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  346. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  347. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  348. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  349. package/dist/functional-components/gantt/types/gantt-types.d.ts +0 -47
  350. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  351. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  352. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  353. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  354. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  355. package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +0 -292
  356. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +0 -1
  357. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +0 -3
  358. package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +0 -106
  359. package/dist/graphlib-Cpifseqb.js +0 -373
  360. package/dist/graphlib-HdfvGLpV.cjs +0 -1
  361. package/dist/hooks/usePlannerSync.d.ts +0 -11
  362. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  363. package/dist/identity-KQSjemTb.cjs +0 -1
  364. package/dist/identity-g0dsMjx7.js +0 -393
  365. package/dist/info-OMHHGYJF-Bk0VWVNW.js +0 -3
  366. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +0 -1
  367. package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +0 -2
  368. package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +0 -19
  369. package/dist/isEmpty-CA3kJuev.cjs +0 -1
  370. package/dist/isEmpty-RwX-oIQS.js +0 -35
  371. package/dist/line-BbHmiwbs.cjs +0 -1
  372. package/dist/mermaid-parser.core-DHpvGOZR.cjs +0 -3
  373. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +0 -3
  374. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +0 -1
  375. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +0 -3
  376. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +0 -1
  377. package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +0 -30
  378. package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +0 -7
  379. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +0 -1
  380. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +0 -3
  381. package/dist/reduce-B7WW9rkU.cjs +0 -1
  382. package/dist/reduce-DNnkcf3M.js +0 -532
  383. package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +0 -84
  384. package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +0 -10
  385. package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +0 -157
  386. package/dist/src-DFxq-N5I.cjs +0 -1
  387. package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +0 -217
  388. package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +0 -1
  389. package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +0 -27
  390. package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +0 -1
  391. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +0 -1
  392. package/dist/treeView-SZITEDCU-Df3xzFtO.js +0 -3
  393. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +0 -1
  394. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +0 -3
  395. package/dist/utils/wbs-utils.d.ts +0 -143
  396. package/dist/utils/wbs-utils.d.ts.map +0 -1
  397. package/dist/v4-6yr83DbP.cjs +0 -1
  398. package/dist/v4-BR71w5_q.js +0 -33
  399. package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +0 -34
  400. package/dist/wardley-RL74JXVD-BtHQbnUy.js +0 -3
  401. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +0 -1
  402. /package/dist/{array-D8NZ46Ht.js → array-CBdkHBGa.js} +0 -0
  403. /package/dist/{array-Dxz0O8Q3.cjs → array-Cx1JwiGD.cjs} +0 -0
  404. /package/dist/{cytoscape.esm-CrBwLFXE.cjs → cytoscape.esm-BzblyxzZ.cjs} +0 -0
  405. /package/dist/{cytoscape.esm-CPjF_mSK.js → cytoscape.esm-VShrX2U1.js} +0 -0
  406. /package/dist/{defaultLocale-DtzyZW63.cjs → defaultLocale-Bj_Ndo9V.cjs} +0 -0
  407. /package/dist/{defaultLocale-Dcyuaxxg.js → defaultLocale-dGy1YRID.js} +0 -0
  408. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  409. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  410. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
  411. /package/dist/{init-BO60vQHJ.js → init-B7h4SEX5.js} +0 -0
  412. /package/dist/{init-B2MubQrj.cjs → init-CEL65JUo.cjs} +0 -0
  413. /package/dist/{katex-Du5WiYIy.js → katex-DWDh1q_h.js} +0 -0
  414. /package/dist/{path-CvfwEr8y.js → path-CAXMhBzK.js} +0 -0
  415. /package/dist/{path-Civic7PQ.cjs → path-CRahBUHI.cjs} +0 -0
  416. /package/dist/{rough.esm-BLKo1fIQ.cjs → rough.esm-BEA_SCZB.cjs} +0 -0
  417. /package/dist/{rough.esm-1mqTSjCt.js → rough.esm-TWNWL4Us.js} +0 -0
@@ -1,23 +1,24 @@
1
- import { B as e, C as t, L as n, V as r, W as i, _ as a, a as o, b as s, c, v as l } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
2
- import { g as u, h as d } from "./src-BQiFKP24.js";
3
- import { t as f } from "./chunk-426QAEUC-JjFVHKYG.js";
4
- import { t as p } from "./chunk-4BX2VUAB-BW54-JWg.js";
5
- import { t as m } from "./mermaid-parser.core-CERDf-UG.js";
6
- //#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.mjs
7
- var h = /* @__PURE__ */ d((e, t) => {
1
+ import { g as e, h as t } from "./src-v9RrE_4h.js";
2
+ import { D as n, H as r, K as i, U as a, a as o, b as s, c, v as l, w as u, x as d, y as f } from "./chunk-CSCIHK7Q-9WKhcDqw.js";
3
+ import { i as p } from "./chunk-5ZQYHXKU-C4uam08j.js";
4
+ import { t as m } from "./chunk-WU5MYG2G-mQn7Wt-i.js";
5
+ import { t as h } from "./chunk-4BX2VUAB-BO1KRGb1.js";
6
+ import { t as g } from "./mermaid-parser.core-Dz33ts1l.js";
7
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.mjs
8
+ var _ = /* @__PURE__ */ t((e, t) => {
8
9
  let n = e <= 1 ? e * 100 : e;
9
10
  if (n < 0 || n > 100) throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);
10
11
  return n;
11
- }, "toPercent"), g = /* @__PURE__ */ d((e, t, n) => ({
12
- x: h(t, `${n} evolution`),
13
- y: h(e, `${n} visibility`)
14
- }), "toCoordinates"), _ = /* @__PURE__ */ d((e) => {
12
+ }, "toPercent"), v = /* @__PURE__ */ t((e, t, n) => ({
13
+ x: _(t, `${n} evolution`),
14
+ y: _(e, `${n} visibility`)
15
+ }), "toCoordinates"), y = /* @__PURE__ */ t((e) => {
15
16
  if (e) {
16
17
  if (e === "+<>") return "bidirectional";
17
18
  if (e === "+<") return "backward";
18
19
  if (e === "+>") return "forward";
19
20
  }
20
- }, "getFlowFromPort"), v = /* @__PURE__ */ d((e) => {
21
+ }, "getFlowFromPort"), b = /* @__PURE__ */ t((e) => {
21
22
  if (!e?.startsWith("+")) return {};
22
23
  let t = /^\+'([^']*)'/.exec(e)?.[1];
23
24
  return e.includes("<>") ? {
@@ -30,8 +31,8 @@ var h = /* @__PURE__ */ d((e, t) => {
30
31
  flow: "forward",
31
32
  label: t
32
33
  } : { label: t };
33
- }, "extractFlowFromArrow"), y = /* @__PURE__ */ d((e, t) => {
34
- if (p(e, t), e.size && t.setSize(e.size.width, e.size.height), e.evolution) {
34
+ }, "extractFlowFromArrow"), x = /* @__PURE__ */ t((e, t) => {
35
+ if (h(e, t), e.size && t.setSize(e.size.width, e.size.height), e.evolution) {
35
36
  let n = e.evolution.stages.map((e) => e.secondName ? `${e.name.trim()} / ${e.secondName.trim()}` : e.name.trim()), r = e.evolution.stages.filter((e) => e.boundary !== void 0).map((e) => e.boundary);
36
37
  t.updateAxes({
37
38
  stages: n,
@@ -39,65 +40,65 @@ var h = /* @__PURE__ */ d((e, t) => {
39
40
  });
40
41
  }
41
42
  if (e.anchors.forEach((e) => {
42
- let n = g(e.visibility, e.evolution, `Anchor "${e.name}"`);
43
+ let n = v(e.visibility, e.evolution, `Anchor "${e.name}"`);
43
44
  t.addNode(e.name, e.name, n.x, n.y, "anchor");
44
45
  }), e.components.forEach((e) => {
45
- let n = g(e.visibility, e.evolution, `Component "${e.name}"`), r = e.label ? (e.label.negX ? -1 : 1) * e.label.offsetX : void 0, i = e.label ? (e.label.negY ? -1 : 1) * e.label.offsetY : void 0, a = e.decorator?.strategy;
46
+ let n = v(e.visibility, e.evolution, `Component "${e.name}"`), r = e.label ? (e.label.negX ? -1 : 1) * e.label.offsetX : void 0, i = e.label ? (e.label.negY ? -1 : 1) * e.label.offsetY : void 0, a = e.decorator?.strategy;
46
47
  t.addNode(e.name, e.name, n.x, n.y, "component", r, i, e.inertia, a);
47
48
  }), e.notes.forEach((e) => {
48
- let n = g(e.visibility, e.evolution, `Note "${e.text}"`);
49
+ let n = v(e.visibility, e.evolution, `Note "${e.text}"`);
49
50
  t.addNote(e.text, n.x, n.y);
50
51
  }), e.pipelines.forEach((e) => {
51
52
  let n = t.getNode(e.parent);
52
53
  if (!n || typeof n.y != "number") throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);
53
54
  let r = n.y;
54
55
  t.startPipeline(e.parent), e.components.forEach((n) => {
55
- let i = `${e.parent}_${n.name}`, a = n.label ? (n.label.negX ? -1 : 1) * n.label.offsetX : void 0, o = n.label ? (n.label.negY ? -1 : 1) * n.label.offsetY : void 0, s = h(n.evolution, `Pipeline component "${n.name}" evolution`);
56
+ let i = `${e.parent}_${n.name}`, a = n.label ? (n.label.negX ? -1 : 1) * n.label.offsetX : void 0, o = n.label ? (n.label.negY ? -1 : 1) * n.label.offsetY : void 0, s = _(n.evolution, `Pipeline component "${n.name}" evolution`);
56
57
  t.addNode(i, n.name, s, r, "pipeline-component", a, o), t.addPipelineComponent(e.parent, i);
57
58
  });
58
59
  }), e.links.forEach((e) => {
59
- let n = !!e.arrow && (e.arrow.includes("-.->") || e.arrow.includes(".-.")), r = _(e.fromPort) ?? _(e.toPort), { flow: i, label: a } = v(e.arrow);
60
+ let n = !!e.arrow && (e.arrow.includes("-.->") || e.arrow.includes(".-.")), r = y(e.fromPort) ?? y(e.toPort), { flow: i, label: a } = b(e.arrow);
60
61
  !r && i && (r = i);
61
62
  let o = e.linkLabel, s = a ?? o;
62
- t.addLink(e.from, e.to, n, s, r);
63
+ t.addLink(t.resolveNodeId(e.from), t.resolveNodeId(e.to), n, s, r);
63
64
  }), e.evolves.forEach((e) => {
64
65
  let n = t.getNode(e.component);
65
66
  if (n?.y !== void 0) {
66
- let r = h(e.target, `Evolve target for "${e.component}"`);
67
+ let r = _(e.target, `Evolve target for "${e.component}"`);
67
68
  t.addTrend(e.component, r, n.y);
68
69
  }
69
70
  }), e.annotations.length > 0) {
70
- let n = e.annotations[0], r = g(n.x, n.y, "Annotations box");
71
+ let n = e.annotations[0], r = v(n.x, n.y, "Annotations box");
71
72
  t.setAnnotationsBox(r.x, r.y);
72
73
  }
73
74
  e.annotation.forEach((e) => {
74
- let n = g(e.x, e.y, `Annotation ${e.number}`);
75
+ let n = v(e.x, e.y, `Annotation ${e.number}`);
75
76
  t.addAnnotation(e.number, [{
76
77
  x: n.x,
77
78
  y: n.y
78
79
  }], e.text);
79
80
  }), e.accelerators.forEach((e) => {
80
- let n = g(e.x, e.y, `Accelerator "${e.name}"`);
81
+ let n = v(e.x, e.y, `Accelerator "${e.name}"`);
81
82
  t.addAccelerator(e.name, n.x, n.y);
82
83
  }), e.deaccelerators.forEach((e) => {
83
- let n = g(e.x, e.y, `Deaccelerator "${e.name}"`);
84
+ let n = v(e.x, e.y, `Deaccelerator "${e.name}"`);
84
85
  t.addDeaccelerator(e.name, n.x, n.y);
85
86
  });
86
- }, "populateDb"), b = {
87
+ }, "populateDb"), S = {
87
88
  parser: { yy: void 0 },
88
- parse: /* @__PURE__ */ d(async (e) => {
89
- let t = await m("wardley", e);
90
- u.debug(t);
91
- let n = b.parser?.yy;
92
- if (!n || typeof n.addNode != "function") throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
93
- y(t, n);
89
+ parse: /* @__PURE__ */ t(async (t) => {
90
+ let n = await g("wardley", t);
91
+ e.debug(n);
92
+ let r = S.parser?.yy;
93
+ if (!r || typeof r.addNode != "function") throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
94
+ x(n, r);
94
95
  }, "parse")
95
- }, x = new class {
96
+ }, C = new class {
96
97
  constructor() {
97
98
  this.nodes = /* @__PURE__ */ new Map(), this.links = [], this.trends = /* @__PURE__ */ new Map(), this.pipelines = /* @__PURE__ */ new Map(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.axes = {};
98
99
  }
99
100
  static {
100
- d(this, "WardleyBuilder");
101
+ t(this, "WardleyBuilder");
101
102
  }
102
103
  addNode(e) {
103
104
  let t = this.nodes.get(e.id) ?? {
@@ -165,6 +166,11 @@ var h = /* @__PURE__ */ d((e, t) => {
165
166
  getNode(e) {
166
167
  return this.nodes.get(e);
167
168
  }
169
+ resolveNodeId(e) {
170
+ if (this.nodes.has(e)) return e;
171
+ for (let [t, n] of this.nodes) if (n.label === e) return t;
172
+ return e;
173
+ }
168
174
  build() {
169
175
  let e = [];
170
176
  for (let t of this.nodes.values()) {
@@ -189,19 +195,14 @@ var h = /* @__PURE__ */ d((e, t) => {
189
195
  this.nodes.clear(), this.links = [], this.trends.clear(), this.pipelines.clear(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.annotationsBox = void 0, this.axes = {}, this.size = void 0;
190
196
  }
191
197
  }();
192
- function S(e) {
193
- let t = s();
194
- return n(e.trim(), t);
195
- }
196
- d(S, "textSanitizer");
197
- function C() {
198
- return s()["wardley-beta"];
198
+ function w() {
199
+ return d()["wardley-beta"];
199
200
  }
200
- d(C, "getConfig");
201
- function w(e, t, n, r, i, a, o, s, c) {
202
- x.addNode({
201
+ t(w, "getConfig");
202
+ function T(e, t, n, r, i, a, o, s, c) {
203
+ C.addNode({
203
204
  id: e,
204
- label: S(t),
205
+ label: t,
205
206
  x: n,
206
207
  y: r,
207
208
  className: i,
@@ -211,9 +212,9 @@ function w(e, t, n, r, i, a, o, s, c) {
211
212
  sourceStrategy: c
212
213
  });
213
214
  }
214
- d(w, "addNode");
215
- function T(e, t, n = !1, r, i) {
216
- x.addLink({
215
+ t(T, "addNode");
216
+ function E(e, t, n = !1, r, i) {
217
+ C.addLink({
217
218
  source: e,
218
219
  target: t,
219
220
  dashed: n,
@@ -221,110 +222,114 @@ function T(e, t, n = !1, r, i) {
221
222
  flow: i
222
223
  });
223
224
  }
224
- d(T, "addLink");
225
- function E(e, t, n) {
226
- x.addTrend({
225
+ t(E, "addLink");
226
+ function D(e, t, n) {
227
+ C.addTrend({
227
228
  nodeId: e,
228
229
  targetX: t,
229
230
  targetY: n
230
231
  });
231
232
  }
232
- d(E, "addTrend");
233
- function D(e, t, n) {
234
- x.addAnnotation({
233
+ t(D, "addTrend");
234
+ function O(e, t, n) {
235
+ C.addAnnotation({
235
236
  number: e,
236
237
  coordinates: t,
237
- text: n ? S(n) : void 0
238
+ text: n
238
239
  });
239
240
  }
240
- d(D, "addAnnotation");
241
- function O(e, t, n) {
242
- x.addNote({
243
- text: S(e),
241
+ t(O, "addAnnotation");
242
+ function k(e, t, n) {
243
+ C.addNote({
244
+ text: e,
244
245
  x: t,
245
246
  y: n
246
247
  });
247
248
  }
248
- d(O, "addNote");
249
- function k(e, t, n) {
250
- x.addAccelerator({
251
- name: S(e),
249
+ t(k, "addNote");
250
+ function A(e, t, n) {
251
+ C.addAccelerator({
252
+ name: e,
252
253
  x: t,
253
254
  y: n
254
255
  });
255
256
  }
256
- d(k, "addAccelerator");
257
- function A(e, t, n) {
258
- x.addDeaccelerator({
259
- name: S(e),
257
+ t(A, "addAccelerator");
258
+ function j(e, t, n) {
259
+ C.addDeaccelerator({
260
+ name: e,
260
261
  x: t,
261
262
  y: n
262
263
  });
263
264
  }
264
- d(A, "addDeaccelerator");
265
- function j(e, t) {
266
- x.setAnnotationsBox(e, t);
267
- }
268
- d(j, "setAnnotationsBox");
265
+ t(j, "addDeaccelerator");
269
266
  function M(e, t) {
270
- x.setSize(e, t);
267
+ C.setAnnotationsBox(e, t);
271
268
  }
272
- d(M, "setSize");
273
- function N(e) {
274
- x.startPipeline(e);
269
+ t(M, "setAnnotationsBox");
270
+ function N(e, t) {
271
+ C.setSize(e, t);
275
272
  }
276
- d(N, "startPipeline");
277
- function P(e, t) {
278
- x.addPipelineComponent(e, t);
273
+ t(N, "setSize");
274
+ function P(e) {
275
+ C.startPipeline(e);
279
276
  }
280
- d(P, "addPipelineComponent");
281
- function F(e) {
282
- let t = {};
283
- e.xLabel && (t.xLabel = S(e.xLabel)), e.yLabel && (t.yLabel = S(e.yLabel)), e.stages && (t.stages = e.stages.map((e) => S(e))), e.stageBoundaries && (t.stageBoundaries = e.stageBoundaries), x.setAxes(t);
277
+ t(P, "startPipeline");
278
+ function F(e, t) {
279
+ C.addPipelineComponent(e, t);
284
280
  }
285
- d(F, "updateAxes");
281
+ t(F, "addPipelineComponent");
286
282
  function I(e) {
287
- return x.getNode(e);
283
+ C.setAxes(e);
284
+ }
285
+ t(I, "updateAxes");
286
+ function L(e) {
287
+ return C.getNode(e);
288
+ }
289
+ t(L, "getNode");
290
+ function R(e) {
291
+ return C.resolveNodeId(e);
288
292
  }
289
- d(I, "getNode");
290
- function L() {
291
- return x.build();
293
+ t(R, "resolveNodeId");
294
+ function z() {
295
+ return C.build();
292
296
  }
293
- d(L, "getWardleyData");
294
- function R() {
295
- x.clear(), o();
297
+ t(z, "getWardleyData");
298
+ function B() {
299
+ C.clear(), o();
296
300
  }
297
- d(R, "clear");
298
- var z = {
299
- getConfig: C,
300
- addNode: w,
301
- addLink: T,
302
- addTrend: E,
303
- addAnnotation: D,
304
- addNote: O,
305
- addAccelerator: k,
306
- addDeaccelerator: A,
307
- setAnnotationsBox: j,
308
- setSize: M,
309
- startPipeline: N,
310
- addPipelineComponent: P,
311
- updateAxes: F,
312
- getNode: I,
313
- getWardleyData: L,
314
- clear: R,
315
- setAccTitle: r,
316
- getAccTitle: l,
301
+ t(B, "clear");
302
+ var V = {
303
+ getConfig: w,
304
+ addNode: T,
305
+ addLink: E,
306
+ addTrend: D,
307
+ addAnnotation: O,
308
+ addNote: k,
309
+ addAccelerator: A,
310
+ addDeaccelerator: j,
311
+ setAnnotationsBox: M,
312
+ setSize: N,
313
+ startPipeline: P,
314
+ addPipelineComponent: F,
315
+ updateAxes: I,
316
+ getNode: L,
317
+ resolveNodeId: R,
318
+ getWardleyData: z,
319
+ clear: B,
320
+ setAccTitle: a,
321
+ getAccTitle: f,
317
322
  setDiagramTitle: i,
318
- getDiagramTitle: t,
319
- getAccDescription: a,
320
- setAccDescription: e
321
- }, B = [
323
+ getDiagramTitle: u,
324
+ getAccDescription: l,
325
+ setAccDescription: r
326
+ }, H = [
322
327
  "Genesis",
323
328
  "Custom Built",
324
329
  "Product",
325
330
  "Commodity"
326
- ], V = /* @__PURE__ */ d(() => {
327
- let { themeVariables: e } = s();
331
+ ], U = /* @__PURE__ */ t(() => {
332
+ let { themeVariables: e } = d();
328
333
  return {
329
334
  backgroundColor: e.wardley?.backgroundColor ?? e.background ?? "#fff",
330
335
  axisColor: e.wardley?.axisColor ?? "#000",
@@ -339,8 +344,8 @@ var z = {
339
344
  annotationTextColor: e.wardley?.annotationTextColor ?? e.primaryTextColor ?? "#222",
340
345
  annotationFill: e.wardley?.annotationFill ?? e.background ?? "#fff"
341
346
  };
342
- }, "getTheme"), H = /* @__PURE__ */ d(() => {
343
- let e = s()["wardley-beta"];
347
+ }, "getTheme"), W = /* @__PURE__ */ t(() => {
348
+ let e = d()["wardley-beta"];
344
349
  return {
345
350
  width: e?.width ?? 900,
346
351
  height: e?.height ?? 600,
@@ -352,24 +357,24 @@ var z = {
352
357
  showGrid: e?.showGrid ?? !1,
353
358
  useMaxWidth: e?.useMaxWidth ?? !0
354
359
  };
355
- }, "getConfigValues"), U = {
356
- parser: b,
357
- db: z,
358
- renderer: { draw: /* @__PURE__ */ d((e, t, n, r) => {
359
- u.debug("Rendering Wardley map\n" + e);
360
- let i = H(), a = V(), o = i.nodeRadius * 1.6, s = r.db, l = s.getWardleyData(), p = s.getDiagramTitle(), m = l.size?.width ?? i.width, h = l.size?.height ?? i.height, g = f(t);
361
- g.selectAll("*").remove(), c(g, h, m, i.useMaxWidth), g.attr("viewBox", `0 0 ${m} ${h}`);
360
+ }, "getConfigValues"), G = {
361
+ parser: S,
362
+ db: V,
363
+ renderer: { draw: /* @__PURE__ */ t((n, r, i, a) => {
364
+ e.debug("Rendering Wardley map\n" + n);
365
+ let o = W(), s = U(), l = o.nodeRadius * 1.6, u = a.db, d = u.getWardleyData(), f = u.getDiagramTitle(), p = d.size?.width ?? o.width, h = d.size?.height ?? o.height, g = m(r);
366
+ g.selectAll("*").remove(), c(g, h, p, o.useMaxWidth), g.attr("viewBox", `0 0 ${p} ${h}`);
362
367
  let _ = g.append("g").attr("class", "wardley-map"), v = g.append("defs");
363
- v.append("marker").attr("id", `arrow-${t}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", a.evolutionStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-end-${t}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", a.linkStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-start-${t}`).attr("viewBox", "0 0 10 10").attr("refX", 1).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z").attr("fill", a.linkStroke).attr("stroke", "none"), _.append("rect").attr("class", "wardley-background").attr("width", m).attr("height", h).attr("fill", a.backgroundColor);
364
- let y = m - i.padding * 2, b = h - i.padding * 2;
365
- p && _.append("text").attr("class", "wardley-title").attr("x", m / 2).attr("y", i.padding / 2).attr("fill", a.axisTextColor).attr("font-size", i.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(p);
366
- let x = /* @__PURE__ */ d((e) => i.padding + e / 100 * y, "projectX"), S = /* @__PURE__ */ d((e) => h - i.padding - e / 100 * b, "projectY"), C = _.append("g").attr("class", "wardley-axes");
367
- C.append("line").attr("x1", i.padding).attr("x2", m - i.padding).attr("y1", h - i.padding).attr("y2", h - i.padding).attr("stroke", a.axisColor).attr("stroke-width", 1), C.append("line").attr("x1", i.padding).attr("x2", i.padding).attr("y1", i.padding).attr("y2", h - i.padding).attr("stroke", a.axisColor).attr("stroke-width", 1);
368
- let w = l.axes.xLabel ?? "Evolution", T = l.axes.yLabel ?? "Visibility";
369
- C.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", i.padding + y / 2).attr("y", h - i.padding / 4).attr("fill", a.axisTextColor).attr("font-size", i.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").text(w), C.append("text").attr("class", "wardley-axis-label wardley-axis-label-y").attr("x", i.padding / 3).attr("y", i.padding + b / 2).attr("fill", a.axisTextColor).attr("font-size", i.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr("transform", `rotate(-90 ${i.padding / 3} ${i.padding + b / 2})`).text(T);
370
- let E = l.axes.stages && l.axes.stages.length > 0 ? l.axes.stages : B;
368
+ v.append("marker").attr("id", `arrow-${r}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", s.evolutionStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-end-${r}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", s.linkStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-start-${r}`).attr("viewBox", "0 0 10 10").attr("refX", 1).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z").attr("fill", s.linkStroke).attr("stroke", "none"), _.append("rect").attr("class", "wardley-background").attr("width", p).attr("height", h).attr("fill", s.backgroundColor);
369
+ let y = p - o.padding * 2, b = h - o.padding * 2;
370
+ f && _.append("text").attr("class", "wardley-title").attr("x", p / 2).attr("y", o.padding / 2).attr("fill", s.axisTextColor).attr("font-size", o.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(f);
371
+ let x = /* @__PURE__ */ t((e) => o.padding + e / 100 * y, "projectX"), S = /* @__PURE__ */ t((e) => h - o.padding - e / 100 * b, "projectY"), C = _.append("g").attr("class", "wardley-axes");
372
+ C.append("line").attr("x1", o.padding).attr("x2", p - o.padding).attr("y1", h - o.padding).attr("y2", h - o.padding).attr("stroke", s.axisColor).attr("stroke-width", 1), C.append("line").attr("x1", o.padding).attr("x2", o.padding).attr("y1", o.padding).attr("y2", h - o.padding).attr("stroke", s.axisColor).attr("stroke-width", 1);
373
+ let w = d.axes.xLabel ?? "Evolution", T = d.axes.yLabel ?? "Visibility";
374
+ C.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", o.padding + y / 2).attr("y", h - o.padding / 4).attr("fill", s.axisTextColor).attr("font-size", o.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").text(w), C.append("text").attr("class", "wardley-axis-label wardley-axis-label-y").attr("x", o.padding / 3).attr("y", o.padding + b / 2).attr("fill", s.axisTextColor).attr("font-size", o.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr("transform", `rotate(-90 ${o.padding / 3} ${o.padding + b / 2})`).text(T);
375
+ let E = d.axes.stages && d.axes.stages.length > 0 ? d.axes.stages : H;
371
376
  if (E.length > 0) {
372
- let e = _.append("g").attr("class", "wardley-stages"), t = l.axes.stageBoundaries, n = [];
377
+ let e = _.append("g").attr("class", "wardley-stages"), t = d.axes.stageBoundaries, n = [];
373
378
  if (t && t.length === E.length) {
374
379
  let e = 0;
375
380
  t.forEach((t) => {
@@ -388,160 +393,160 @@ var z = {
388
393
  });
389
394
  }
390
395
  E.forEach((t, r) => {
391
- let o = n[r], s = i.padding + o.start * y, c = (s + (i.padding + o.end * y)) / 2;
392
- r > 0 && e.append("line").attr("x1", s).attr("x2", s).attr("y1", i.padding).attr("y2", h - i.padding).attr("stroke", "#000").attr("stroke-width", 1).attr("stroke-dasharray", "5 5").attr("opacity", .8), e.append("text").attr("class", "wardley-stage-label").attr("x", c).attr("y", h - i.padding / 1.5).attr("fill", a.axisTextColor).attr("font-size", i.axisFontSize - 2).attr("text-anchor", "middle").text(t);
396
+ let i = n[r], a = o.padding + i.start * y, c = (a + (o.padding + i.end * y)) / 2;
397
+ r > 0 && e.append("line").attr("x1", a).attr("x2", a).attr("y1", o.padding).attr("y2", h - o.padding).attr("stroke", "#000").attr("stroke-width", 1).attr("stroke-dasharray", "5 5").attr("opacity", .8), e.append("text").attr("class", "wardley-stage-label").attr("x", c).attr("y", h - o.padding / 1.5).attr("fill", s.axisTextColor).attr("font-size", o.axisFontSize - 2).attr("text-anchor", "middle").text(t);
393
398
  });
394
399
  }
395
- if (i.showGrid) {
400
+ if (o.showGrid) {
396
401
  let e = _.append("g").attr("class", "wardley-grid");
397
402
  for (let t = 1; t < 4; t++) {
398
- let n = t / 4, r = i.padding + y * n;
399
- e.append("line").attr("x1", r).attr("x2", r).attr("y1", i.padding).attr("y2", h - i.padding).attr("stroke", a.gridColor).attr("stroke-dasharray", "2 6"), e.append("line").attr("x1", i.padding).attr("x2", m - i.padding).attr("y1", h - i.padding - b * n).attr("y2", h - i.padding - b * n).attr("stroke", a.gridColor).attr("stroke-dasharray", "2 6");
403
+ let n = t / 4, r = o.padding + y * n;
404
+ e.append("line").attr("x1", r).attr("x2", r).attr("y1", o.padding).attr("y2", h - o.padding).attr("stroke", s.gridColor).attr("stroke-dasharray", "2 6"), e.append("line").attr("x1", o.padding).attr("x2", p - o.padding).attr("y1", h - o.padding - b * n).attr("y2", h - o.padding - b * n).attr("stroke", s.gridColor).attr("stroke-dasharray", "2 6");
400
405
  }
401
406
  }
402
407
  let D = /* @__PURE__ */ new Map();
403
- if (l.nodes.forEach((e) => {
408
+ if (d.nodes.forEach((e) => {
404
409
  D.set(e.id, {
405
410
  x: x(e.x),
406
411
  y: S(e.y),
407
412
  node: e
408
413
  });
409
- }), l.pipelines.length > 0) {
414
+ }), d.pipelines.length > 0) {
410
415
  let e = _.append("g").attr("class", "wardley-pipelines"), t = _.append("g").attr("class", "wardley-pipeline-links");
411
- l.pipelines.forEach((n) => {
416
+ d.pipelines.forEach((n) => {
412
417
  if (n.componentIds.length === 0) return;
413
418
  let r = n.componentIds.map((e) => ({
414
419
  id: e,
415
420
  pos: D.get(e),
416
- node: l.nodes.find((t) => t.id === e)
421
+ node: d.nodes.find((t) => t.id === e)
417
422
  })).filter((e) => e.pos && e.node).sort((e, t) => e.node.x - t.node.x);
418
423
  for (let e = 0; e < r.length - 1; e++) {
419
424
  let n = r[e], i = r[e + 1];
420
- t.append("line").attr("class", "wardley-pipeline-evolution-link").attr("x1", n.pos.x).attr("y1", n.pos.y).attr("x2", i.pos.x).attr("y2", i.pos.y).attr("stroke", a.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4");
425
+ t.append("line").attr("class", "wardley-pipeline-evolution-link").attr("x1", n.pos.x).attr("y1", n.pos.y).attr("x2", i.pos.x).attr("y2", i.pos.y).attr("stroke", s.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4");
421
426
  }
422
- let s = Infinity, c = -Infinity, u = 0;
427
+ let i = Infinity, a = -Infinity, c = 0;
423
428
  if (n.componentIds.forEach((e) => {
424
429
  let t = D.get(e);
425
- t && (s = Math.min(s, t.x), c = Math.max(c, t.x), u = t.y);
426
- }), s !== Infinity && c !== -Infinity) {
427
- let t = i.nodeRadius * 4, r = u - t / 2, l = D.get(n.nodeId);
428
- l && (l.x = (s + c) / 2, l.y = r - o / 6), e.append("rect").attr("class", "wardley-pipeline-box").attr("x", s - 15).attr("y", r).attr("width", c - s + 30).attr("height", t).attr("fill", "none").attr("stroke", a.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
430
+ t && (i = Math.min(i, t.x), a = Math.max(a, t.x), c = t.y);
431
+ }), i !== Infinity && a !== -Infinity) {
432
+ let t = o.nodeRadius * 4, r = c - t / 2, u = D.get(n.nodeId);
433
+ u && (u.x = (i + a) / 2, u.y = r - l / 6), e.append("rect").attr("class", "wardley-pipeline-box").attr("x", i - 15).attr("y", r).attr("width", a - i + 30).attr("height", t).attr("fill", "none").attr("stroke", s.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
429
434
  }
430
435
  });
431
436
  }
432
437
  let O = _.append("g").attr("class", "wardley-links"), k = /* @__PURE__ */ new Map();
433
- l.pipelines.forEach((e) => {
438
+ d.pipelines.forEach((e) => {
434
439
  k.set(e.nodeId, new Set(e.componentIds));
435
440
  });
436
- let A = l.links.filter((e) => !(!D.has(e.source) || !D.has(e.target) || k.get(e.target)?.has(e.source)));
441
+ let A = d.links.filter((e) => !(!D.has(e.source) || !D.has(e.target) || k.get(e.target)?.has(e.source)));
437
442
  O.selectAll("line").data(A).enter().append("line").attr("class", (e) => `wardley-link${e.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (e) => {
438
- let t = D.get(e.source), n = D.get(e.target), r = l.nodes.find((t) => t.id === e.source).isPipelineParent ? o / Math.sqrt(2) : i.nodeRadius, a = n.x - t.x, s = n.y - t.y, c = Math.sqrt(a * a + s * s);
439
- return t.x + a / c * r;
443
+ let t = D.get(e.source), n = D.get(e.target), r = d.nodes.find((t) => t.id === e.source).isPipelineParent ? l / Math.sqrt(2) : o.nodeRadius, i = n.x - t.x, a = n.y - t.y, s = Math.sqrt(i * i + a * a);
444
+ return t.x + i / s * r;
440
445
  }).attr("y1", (e) => {
441
- let t = D.get(e.source), n = D.get(e.target), r = l.nodes.find((t) => t.id === e.source).isPipelineParent ? o / Math.sqrt(2) : i.nodeRadius, a = n.x - t.x, s = n.y - t.y, c = Math.sqrt(a * a + s * s);
442
- return t.y + s / c * r;
446
+ let t = D.get(e.source), n = D.get(e.target), r = d.nodes.find((t) => t.id === e.source).isPipelineParent ? l / Math.sqrt(2) : o.nodeRadius, i = n.x - t.x, a = n.y - t.y, s = Math.sqrt(i * i + a * a);
447
+ return t.y + a / s * r;
443
448
  }).attr("x2", (e) => {
444
- let t = D.get(e.source), n = D.get(e.target), r = l.nodes.find((t) => t.id === e.target).isPipelineParent ? o / Math.sqrt(2) : i.nodeRadius, a = t.x - n.x, s = t.y - n.y, c = Math.sqrt(a * a + s * s);
445
- return n.x + a / c * r;
449
+ let t = D.get(e.source), n = D.get(e.target), r = d.nodes.find((t) => t.id === e.target).isPipelineParent ? l / Math.sqrt(2) : o.nodeRadius, i = t.x - n.x, a = t.y - n.y, s = Math.sqrt(i * i + a * a);
450
+ return n.x + i / s * r;
446
451
  }).attr("y2", (e) => {
447
- let t = D.get(e.source), n = D.get(e.target), r = l.nodes.find((t) => t.id === e.target).isPipelineParent ? o / Math.sqrt(2) : i.nodeRadius, a = t.x - n.x, s = t.y - n.y, c = Math.sqrt(a * a + s * s);
448
- return n.y + s / c * r;
449
- }).attr("stroke", a.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", (e) => e.dashed ? "6 6" : null).attr("marker-end", (e) => e.flow === "forward" || e.flow === "bidirectional" ? `url(#link-arrow-end-${t})` : null).attr("marker-start", (e) => e.flow === "backward" || e.flow === "bidirectional" ? `url(#link-arrow-start-${t})` : null), O.selectAll("text").data(A.filter((e) => e.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (e) => {
452
+ let t = D.get(e.source), n = D.get(e.target), r = d.nodes.find((t) => t.id === e.target).isPipelineParent ? l / Math.sqrt(2) : o.nodeRadius, i = t.x - n.x, a = t.y - n.y, s = Math.sqrt(i * i + a * a);
453
+ return n.y + a / s * r;
454
+ }).attr("stroke", s.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", (e) => e.dashed ? "6 6" : null).attr("marker-end", (e) => e.flow === "forward" || e.flow === "bidirectional" ? `url(#link-arrow-end-${r})` : null).attr("marker-start", (e) => e.flow === "backward" || e.flow === "bidirectional" ? `url(#link-arrow-start-${r})` : null), O.selectAll("text").data(A.filter((e) => e.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (e) => {
450
455
  let t = D.get(e.source), n = D.get(e.target), r = (t.x + n.x) / 2, i = n.y - t.y, a = n.x - t.x;
451
456
  return r + i / Math.sqrt(a * a + i * i) * 8;
452
457
  }).attr("y", (e) => {
453
458
  let t = D.get(e.source), n = D.get(e.target), r = (t.y + n.y) / 2, i = n.x - t.x, a = n.y - t.y, o = Math.sqrt(i * i + a * a);
454
459
  return r + -i / o * 8;
455
- }).attr("fill", a.axisTextColor).attr("font-size", i.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (e) => {
460
+ }).attr("fill", s.axisTextColor).attr("font-size", o.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (e) => {
456
461
  let t = D.get(e.source), n = D.get(e.target), r = (t.x + n.x) / 2, i = (t.y + n.y) / 2, a = n.x - t.x, o = n.y - t.y, s = Math.sqrt(a * a + o * o), c = o / s, l = -a / s, u = r + c * 8, d = i + l * 8, f = Math.atan2(o, a) * 180 / Math.PI;
457
462
  return (f > 90 || f < -90) && (f += 180), `rotate(${f} ${u} ${d})`;
458
463
  }).text((e) => e.label);
459
- let j = _.append("g").attr("class", "wardley-trends"), M = l.trends.map((e) => {
464
+ let j = _.append("g").attr("class", "wardley-trends"), M = d.trends.map((e) => {
460
465
  let t = D.get(e.nodeId);
461
466
  if (!t) return null;
462
- let n = x(e.targetX), r = S(e.targetY), a = n - t.x, o = r - t.y, s = Math.sqrt(a * a + o * o), c = i.nodeRadius + 2;
467
+ let n = x(e.targetX), r = S(e.targetY), i = n - t.x, a = r - t.y, s = Math.sqrt(i * i + a * a), c = o.nodeRadius + 2;
463
468
  return {
464
469
  origin: t,
465
470
  targetX: n,
466
471
  targetY: r,
467
- adjustedX2: s > c ? n - a / s * c : n,
468
- adjustedY2: s > c ? r - o / s * c : r
472
+ adjustedX2: s > c ? n - i / s * c : n,
473
+ adjustedY2: s > c ? r - a / s * c : r
469
474
  };
470
475
  }).filter((e) => e !== null);
471
- j.selectAll("line").data(M).enter().append("line").attr("class", "wardley-trend").attr("x1", (e) => e.origin.x).attr("y1", (e) => e.origin.y).attr("x2", (e) => e.adjustedX2).attr("y2", (e) => e.adjustedY2).attr("stroke", a.evolutionStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4").attr("marker-end", `url(#arrow-${t})`);
472
- let N = _.append("g").attr("class", "wardley-nodes").selectAll("g").data(l.nodes).enter().append("g").attr("class", (e) => ["wardley-node", e.className ? `wardley-node--${e.className}` : ""].filter(Boolean).join(" "));
473
- N.filter((e) => e.sourceStrategy === "outsource").append("circle").attr("class", "wardley-outsource-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius * 2).attr("fill", "#666").attr("stroke", a.componentStroke).attr("stroke-width", 1), N.filter((e) => e.sourceStrategy === "buy").append("circle").attr("class", "wardley-buy-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", a.componentStroke).attr("stroke-width", 1), N.filter((e) => e.sourceStrategy === "build").append("circle").attr("class", "wardley-build-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1);
476
+ j.selectAll("line").data(M).enter().append("line").attr("class", "wardley-trend").attr("x1", (e) => e.origin.x).attr("y1", (e) => e.origin.y).attr("x2", (e) => e.adjustedX2).attr("y2", (e) => e.adjustedY2).attr("stroke", s.evolutionStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4").attr("marker-end", `url(#arrow-${r})`);
477
+ let N = _.append("g").attr("class", "wardley-nodes").selectAll("g").data(d.nodes).enter().append("g").attr("class", (e) => ["wardley-node", e.className ? `wardley-node--${e.className}` : ""].filter(Boolean).join(" "));
478
+ N.filter((e) => e.sourceStrategy === "outsource").append("circle").attr("class", "wardley-outsource-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", o.nodeRadius * 2).attr("fill", "#666").attr("stroke", s.componentStroke).attr("stroke-width", 1), N.filter((e) => e.sourceStrategy === "buy").append("circle").attr("class", "wardley-buy-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", o.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", s.componentStroke).attr("stroke-width", 1), N.filter((e) => e.sourceStrategy === "build").append("circle").attr("class", "wardley-build-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", o.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1);
474
479
  let P = N.filter((e) => e.sourceStrategy === "market");
475
- P.append("circle").attr("class", "wardley-market-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius * 2).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 1), N.filter((e) => !e.isPipelineParent && e.sourceStrategy !== "market" && e.className !== "anchor").append("circle").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius).attr("fill", a.componentFill).attr("stroke", a.componentStroke).attr("stroke-width", 1);
476
- let F = i.nodeRadius * .7, I = i.nodeRadius * 1.2;
477
- if (P.append("line").attr("class", "wardley-market-line").attr("x1", (e) => D.get(e.id).x).attr("y1", (e) => D.get(e.id).y - I).attr("x2", (e) => D.get(e.id).x - I * Math.cos(Math.PI / 6)).attr("y2", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("stroke", a.componentStroke).attr("stroke-width", 1), P.append("line").attr("class", "wardley-market-line").attr("x1", (e) => D.get(e.id).x - I * Math.cos(Math.PI / 6)).attr("y1", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("x2", (e) => D.get(e.id).x + I * Math.cos(Math.PI / 6)).attr("y2", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("stroke", a.componentStroke).attr("stroke-width", 1), P.append("line").attr("class", "wardley-market-line").attr("x1", (e) => D.get(e.id).x + I * Math.cos(Math.PI / 6)).attr("y1", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("x2", (e) => D.get(e.id).x).attr("y2", (e) => D.get(e.id).y - I).attr("stroke", a.componentStroke).attr("stroke-width", 1), P.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y - I).attr("r", F).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 2), P.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => D.get(e.id).x - I * Math.cos(Math.PI / 6)).attr("cy", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("r", F).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 2), P.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => D.get(e.id).x + I * Math.cos(Math.PI / 6)).attr("cy", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("r", F).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 2), N.filter((e) => e.isPipelineParent === !0).append("rect").attr("x", (e) => D.get(e.id).x - o / 2).attr("y", (e) => D.get(e.id).y - o / 2).attr("width", o).attr("height", o).attr("fill", a.componentFill).attr("stroke", a.componentStroke).attr("stroke-width", 1), N.filter((e) => e.inertia === !0).append("line").attr("class", "wardley-inertia").attr("x1", (e) => {
478
- let t = D.get(e.id), n = e.isPipelineParent ? o / 2 + 15 : i.nodeRadius + 15;
479
- return e.sourceStrategy && (n += i.nodeRadius + 10), t.x + n;
480
+ P.append("circle").attr("class", "wardley-market-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", o.nodeRadius * 2).attr("fill", "white").attr("stroke", s.componentStroke).attr("stroke-width", 1), N.filter((e) => !e.isPipelineParent && e.sourceStrategy !== "market" && e.className !== "anchor").append("circle").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", o.nodeRadius).attr("fill", s.componentFill).attr("stroke", s.componentStroke).attr("stroke-width", 1);
481
+ let F = o.nodeRadius * .7, I = o.nodeRadius * 1.2;
482
+ if (P.append("line").attr("class", "wardley-market-line").attr("x1", (e) => D.get(e.id).x).attr("y1", (e) => D.get(e.id).y - I).attr("x2", (e) => D.get(e.id).x - I * Math.cos(Math.PI / 6)).attr("y2", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("stroke", s.componentStroke).attr("stroke-width", 1), P.append("line").attr("class", "wardley-market-line").attr("x1", (e) => D.get(e.id).x - I * Math.cos(Math.PI / 6)).attr("y1", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("x2", (e) => D.get(e.id).x + I * Math.cos(Math.PI / 6)).attr("y2", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("stroke", s.componentStroke).attr("stroke-width", 1), P.append("line").attr("class", "wardley-market-line").attr("x1", (e) => D.get(e.id).x + I * Math.cos(Math.PI / 6)).attr("y1", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("x2", (e) => D.get(e.id).x).attr("y2", (e) => D.get(e.id).y - I).attr("stroke", s.componentStroke).attr("stroke-width", 1), P.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y - I).attr("r", F).attr("fill", "white").attr("stroke", s.componentStroke).attr("stroke-width", 2), P.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => D.get(e.id).x - I * Math.cos(Math.PI / 6)).attr("cy", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("r", F).attr("fill", "white").attr("stroke", s.componentStroke).attr("stroke-width", 2), P.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => D.get(e.id).x + I * Math.cos(Math.PI / 6)).attr("cy", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("r", F).attr("fill", "white").attr("stroke", s.componentStroke).attr("stroke-width", 2), N.filter((e) => e.isPipelineParent === !0).append("rect").attr("x", (e) => D.get(e.id).x - l / 2).attr("y", (e) => D.get(e.id).y - l / 2).attr("width", l).attr("height", l).attr("fill", s.componentFill).attr("stroke", s.componentStroke).attr("stroke-width", 1), N.filter((e) => e.inertia === !0).append("line").attr("class", "wardley-inertia").attr("x1", (e) => {
483
+ let t = D.get(e.id), n = e.isPipelineParent ? l / 2 + 15 : o.nodeRadius + 15;
484
+ return e.sourceStrategy && (n += o.nodeRadius + 10), t.x + n;
480
485
  }).attr("y1", (e) => {
481
- let t = D.get(e.id), n = e.isPipelineParent ? o : i.nodeRadius * 2;
486
+ let t = D.get(e.id), n = e.isPipelineParent ? l : o.nodeRadius * 2;
482
487
  return t.y - n / 2;
483
488
  }).attr("x2", (e) => {
484
- let t = D.get(e.id), n = e.isPipelineParent ? o / 2 + 15 : i.nodeRadius + 15;
485
- return e.sourceStrategy && (n += i.nodeRadius + 10), t.x + n;
489
+ let t = D.get(e.id), n = e.isPipelineParent ? l / 2 + 15 : o.nodeRadius + 15;
490
+ return e.sourceStrategy && (n += o.nodeRadius + 10), t.x + n;
486
491
  }).attr("y2", (e) => {
487
- let t = D.get(e.id), n = e.isPipelineParent ? o : i.nodeRadius * 2;
492
+ let t = D.get(e.id), n = e.isPipelineParent ? l : o.nodeRadius * 2;
488
493
  return t.y + n / 2;
489
- }).attr("stroke", a.componentStroke).attr("stroke-width", 6), N.append("text").attr("x", (e) => {
494
+ }).attr("stroke", s.componentStroke).attr("stroke-width", 6), N.append("text").attr("x", (e) => {
490
495
  let t = D.get(e.id);
491
496
  if (e.className === "anchor") return e.labelOffsetX === void 0 ? t.x : t.x + e.labelOffsetX;
492
- let n = i.nodeLabelOffset;
497
+ let n = o.nodeLabelOffset;
493
498
  e.sourceStrategy && e.labelOffsetX === void 0 && (n += 10);
494
499
  let r = e.labelOffsetX ?? n;
495
500
  return t.x + r;
496
501
  }).attr("y", (e) => {
497
502
  let t = D.get(e.id);
498
503
  if (e.className === "anchor") return e.labelOffsetY === void 0 ? t.y - 3 : t.y + e.labelOffsetY;
499
- let n = -i.nodeLabelOffset;
504
+ let n = -o.nodeLabelOffset;
500
505
  e.sourceStrategy && e.labelOffsetY === void 0 && (n -= 10);
501
506
  let r = e.labelOffsetY ?? n;
502
507
  return t.y + r;
503
- }).attr("class", "wardley-node-label").attr("fill", (e) => e.className === "evolved" ? a.evolutionStroke : e.className === "anchor" ? "#000" : a.componentLabelColor).attr("font-size", i.labelFontSize).attr("font-weight", (e) => e.className === "anchor" ? "bold" : "normal").attr("text-anchor", (e) => e.className === "anchor" ? "middle" : "start").attr("dominant-baseline", (e) => e.className === "anchor" ? "middle" : "auto").text((e) => e.label), l.annotations.length > 0) {
508
+ }).attr("class", "wardley-node-label").attr("fill", (e) => e.className === "evolved" ? s.evolutionStroke : e.className === "anchor" ? "#000" : s.componentLabelColor).attr("font-size", o.labelFontSize).attr("font-weight", (e) => e.className === "anchor" ? "bold" : "normal").attr("text-anchor", (e) => e.className === "anchor" ? "middle" : "start").attr("dominant-baseline", (e) => e.className === "anchor" ? "middle" : "auto").text((e) => e.label), d.annotations.length > 0) {
504
509
  let e = _.append("g").attr("class", "wardley-annotations");
505
- if (l.annotations.forEach((t) => {
510
+ if (d.annotations.forEach((t) => {
506
511
  let n = t.coordinates.map((e) => ({
507
512
  x: x(e.x),
508
513
  y: S(e.y)
509
514
  }));
510
- if (n.length > 1) for (let t = 0; t < n.length - 1; t++) e.append("line").attr("class", "wardley-annotation-line").attr("x1", n[t].x).attr("y1", n[t].y).attr("x2", n[t + 1].x).attr("y2", n[t + 1].y).attr("stroke", a.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4");
515
+ if (n.length > 1) for (let t = 0; t < n.length - 1; t++) e.append("line").attr("class", "wardley-annotation-line").attr("x1", n[t].x).attr("y1", n[t].y).attr("x2", n[t + 1].x).attr("y2", n[t + 1].y).attr("stroke", s.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4");
511
516
  n.forEach((n) => {
512
517
  let r = e.append("g").attr("class", "wardley-annotation");
513
- r.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("fill", "white").attr("stroke", a.axisColor).attr("stroke-width", 1.5), r.append("text").attr("x", n.x).attr("y", n.y).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", 10).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.number);
518
+ r.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("fill", "white").attr("stroke", s.axisColor).attr("stroke-width", 1.5), r.append("text").attr("x", n.x).attr("y", n.y).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", 10).attr("fill", s.axisTextColor).attr("font-weight", "bold").text(t.number);
514
519
  });
515
- }), l.annotationsBox) {
516
- let t = x(l.annotationsBox.x), n = S(l.annotationsBox.y), r = e.append("g").attr("class", "wardley-annotations-box"), o = [...l.annotations].filter((e) => e.text).sort((e, t) => e.number - t.number), s = [];
517
- if (o.forEach((e, i) => {
518
- let o = r.append("text").attr("x", t + 10).attr("y", n + 10 + (i + 1) * 16).attr("font-size", 11).attr("fill", a.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${e.number}. ${e.text}`);
519
- s.push(o);
520
- }), s.length > 0) {
520
+ }), d.annotationsBox) {
521
+ let t = x(d.annotationsBox.x), n = S(d.annotationsBox.y), r = e.append("g").attr("class", "wardley-annotations-box"), i = [...d.annotations].filter((e) => e.text).sort((e, t) => e.number - t.number), a = [];
522
+ if (i.forEach((e, i) => {
523
+ let o = r.append("text").attr("x", t + 10).attr("y", n + 10 + (i + 1) * 16).attr("font-size", 11).attr("fill", s.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${e.number}. ${e.text}`);
524
+ a.push(o);
525
+ }), a.length > 0) {
521
526
  let e = 0, c = 0;
522
- s.forEach((t) => {
527
+ a.forEach((t) => {
523
528
  let n = t.node(), r = n.getComputedTextLength();
524
529
  e = Math.max(e, r);
525
530
  let i = n.getBBox();
526
531
  c = Math.max(c, i.height);
527
532
  });
528
- let l = e + 20 + 105, u = o.length * 16 + 20 + c / 2, d = i.padding, f = m - i.padding - l, p = i.padding, g = h - i.padding - u;
529
- t = Math.max(d, Math.min(t, f)), n = Math.max(p, Math.min(n, g)), s.forEach((e, r) => {
533
+ let l = e + 20 + 105, u = i.length * 16 + 20 + c / 2, d = o.padding, f = p - o.padding - l, m = o.padding, g = h - o.padding - u;
534
+ t = Math.max(d, Math.min(t, f)), n = Math.max(m, Math.min(n, g)), a.forEach((e, r) => {
530
535
  e.attr("x", t + 10).attr("y", n + 10 + (r + 1) * 16);
531
- }), r.insert("rect", "text").attr("x", t).attr("y", n).attr("width", l).attr("height", u).attr("fill", "white").attr("stroke", a.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
536
+ }), r.insert("rect", "text").attr("x", t).attr("y", n).attr("width", l).attr("height", u).attr("fill", "white").attr("stroke", s.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
532
537
  }
533
538
  }
534
539
  }
535
- if (l.notes.length > 0) {
540
+ if (d.notes.length > 0) {
536
541
  let e = _.append("g").attr("class", "wardley-notes");
537
- l.notes.forEach((t) => {
542
+ d.notes.forEach((t) => {
538
543
  let n = x(t.x), r = S(t.y);
539
- e.append("text").attr("x", n).attr("y", r).attr("text-anchor", "start").attr("font-size", 11).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.text);
544
+ e.append("text").attr("x", n).attr("y", r).attr("text-anchor", "start").attr("font-size", 11).attr("fill", s.axisTextColor).attr("font-weight", "bold").text(t.text);
540
545
  });
541
546
  }
542
- if (l.accelerators.length > 0) {
547
+ if (d.accelerators.length > 0) {
543
548
  let e = _.append("g").attr("class", "wardley-accelerators");
544
- l.accelerators.forEach((t) => {
549
+ d.accelerators.forEach((t) => {
545
550
  let n = x(t.x), r = S(t.y), i = `
546
551
  M ${n} ${r - 30 / 2}
547
552
  L ${n + 60 - 20} ${r - 30 / 2}
@@ -552,12 +557,12 @@ var z = {
552
557
  L ${n} ${r + 30 / 2}
553
558
  Z
554
559
  `;
555
- e.append("path").attr("d", i).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 60 / 2).attr("y", r + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.name);
560
+ e.append("path").attr("d", i).attr("fill", "white").attr("stroke", s.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 60 / 2).attr("y", r + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", s.axisTextColor).attr("font-weight", "bold").text(t.name);
556
561
  });
557
562
  }
558
- if (l.deaccelerators.length > 0) {
563
+ if (d.deaccelerators.length > 0) {
559
564
  let e = _.append("g").attr("class", "wardley-deaccelerators");
560
- l.deaccelerators.forEach((t) => {
565
+ d.deaccelerators.forEach((t) => {
561
566
  let n = x(t.x), r = S(t.y), i = `
562
567
  M ${n + 60} ${r - 30 / 2}
563
568
  L ${n + 20} ${r - 30 / 2}
@@ -568,11 +573,72 @@ var z = {
568
573
  L ${n + 60} ${r + 30 / 2}
569
574
  Z
570
575
  `;
571
- e.append("path").attr("d", i).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 60 / 2).attr("y", r + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.name);
576
+ e.append("path").attr("d", i).attr("fill", "white").attr("stroke", s.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 60 / 2).attr("y", r + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", s.axisTextColor).attr("font-weight", "bold").text(t.name);
572
577
  });
573
578
  }
574
579
  }, "draw") },
575
- styles: /* @__PURE__ */ d(() => "", "styles")
580
+ styles: /* @__PURE__ */ t(({ wardley: e } = {}) => {
581
+ let t = p(p(n(), s().themeVariables).wardley, e);
582
+ return `
583
+ .wardley-background {
584
+ fill: ${t.backgroundColor};
585
+ }
586
+ .wardley-axes line, .wardley-axes path {
587
+ stroke: ${t.axisColor};
588
+ }
589
+ .wardley-axis-label {
590
+ fill: ${t.axisTextColor};
591
+ }
592
+ .wardley-stage-label {
593
+ fill: ${t.axisTextColor};
594
+ }
595
+ .wardley-grid line {
596
+ stroke: ${t.gridColor};
597
+ }
598
+ .wardley-node circle {
599
+ fill: ${t.componentFill};
600
+ stroke: ${t.componentStroke};
601
+ }
602
+ .wardley-node-label {
603
+ fill: ${t.componentLabelColor};
604
+ }
605
+ .wardley-link {
606
+ stroke: ${t.linkStroke};
607
+ }
608
+ .wardley-link--dashed {
609
+ stroke-dasharray: 4 4;
610
+ }
611
+ .wardley-link-label {
612
+ fill: ${t.axisTextColor};
613
+ }
614
+ .wardley-trend line {
615
+ stroke: ${t.evolutionStroke};
616
+ }
617
+ .wardley-annotation-line {
618
+ stroke: ${t.annotationStroke};
619
+ }
620
+ .wardley-annotation circle {
621
+ fill: ${t.annotationFill};
622
+ stroke: ${t.annotationStroke};
623
+ }
624
+ .wardley-annotation text {
625
+ fill: ${t.annotationTextColor};
626
+ }
627
+ .wardley-annotations-box rect {
628
+ fill: ${t.annotationFill};
629
+ stroke: ${t.annotationStroke};
630
+ }
631
+ .wardley-annotations-box text {
632
+ fill: ${t.annotationTextColor};
633
+ }
634
+ .wardley-pipeline-box {
635
+ stroke: ${t.componentStroke};
636
+ }
637
+ .wardley-notes text {
638
+ fill: ${t.axisTextColor};
639
+ }
640
+ `;
641
+ }, "styles")
576
642
  };
577
643
  //#endregion
578
- export { U as diagram };
644
+ export { G as diagram };