@sme.up/ketchup2 2.7.0 → 2.8.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 (344) hide show
  1. package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
  2. package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
  3. package/dist/{arc-CVbkjF8U.js → arc-7ZXqzxve.js} +1 -1
  4. package/dist/{arc-w3BipdfE.cjs → arc-DBilzVYt.cjs} +1 -1
  5. package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
  6. package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
  7. package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
  8. package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -251
  9. package/dist/assets/svg/functions.svg +1 -0
  10. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  11. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  12. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  14. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  15. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  16. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  17. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  18. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  19. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  20. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  21. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  22. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  23. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  24. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  27. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  28. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  29. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  30. package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
  31. package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
  32. package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
  33. package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
  34. package/dist/channel-BvUly9jN.cjs +1 -0
  35. package/dist/{channel-C-LAmObA.js → channel-D6agWknC.js} +1 -1
  36. package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
  37. package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
  38. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  39. package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  40. package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
  41. package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
  42. package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  43. package/dist/{chunk-FMBD7UC4-BIKI8zae.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
  44. package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
  45. package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
  46. package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
  47. package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
  48. package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-CNSdkWoH.js} +997 -764
  49. package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
  50. package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
  51. package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
  52. package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
  53. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
  54. package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
  55. package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
  56. package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
  57. package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
  58. package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
  59. package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
  60. package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  61. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  62. package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
  63. package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
  64. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  65. package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
  66. package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
  67. package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
  68. package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
  69. package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
  70. package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
  71. package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
  72. package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
  73. package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
  74. package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-DJgD-hyF.js} +566 -522
  75. package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
  76. package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
  77. package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
  78. package/dist/{chunk-727SXJPM-Dj8nsm0O.cjs → chunk-TICWLB2K-1u0p_luB.cjs} +7 -7
  79. package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-DqSHwYf9.js} +183 -177
  80. package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
  81. package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
  82. package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
  83. package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
  84. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  85. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  86. package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
  87. package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
  88. package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
  89. package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
  90. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  91. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  92. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  93. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  94. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  95. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  96. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  97. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  98. package/dist/components/data-table/data-table-types.d.ts +52 -1
  99. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table.d.ts.map +1 -1
  101. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  102. package/dist/components/data-table/header/header-types.d.ts +7 -1
  103. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  104. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  105. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  106. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  107. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  108. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  109. package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
  110. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
  111. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
  112. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
  113. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  114. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  115. package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
  116. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
  117. package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +25 -24
  118. package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
  119. package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
  120. package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
  121. package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
  122. package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
  123. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
  124. package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
  125. package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
  126. package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
  127. package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
  128. package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
  129. package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
  130. package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
  131. package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
  132. package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
  133. package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
  134. package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
  135. package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
  136. package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
  137. package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
  138. package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
  139. package/dist/{dist-Btd8EZyy.js → dist-C7OpkiTz.js} +2 -3
  140. package/dist/dist-DrOEvFlx.cjs +1 -0
  141. package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
  142. package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
  143. package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
  144. package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
  145. package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
  146. package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
  147. package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
  148. package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
  149. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  150. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  151. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  152. package/dist/functional-components/row/row-types.d.ts +5 -0
  153. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  154. package/dist/functional-components/row/row.d.ts.map +1 -1
  155. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  156. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  157. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  158. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  159. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  160. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  161. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  162. package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
  163. package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +675 -671
  164. package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
  165. package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
  166. package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
  167. package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
  168. package/dist/index.d.ts +4 -1
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
  171. package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
  172. package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
  173. package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
  174. package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
  175. package/dist/{ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
  176. package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
  177. package/dist/{journeyDiagram-JHISSGLW-DfnmJPLn.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
  178. package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
  179. package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
  180. package/dist/katex-DUe6VLjC.cjs +257 -0
  181. package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
  182. package/dist/ketchup2.cjs.js +156 -154
  183. package/dist/ketchup2.css +1 -1
  184. package/dist/ketchup2.es.js +31759 -29656
  185. package/dist/{line-DIhSUgmA.js → line-BEo8vh4N.js} +1 -1
  186. package/dist/{line-CzwncDY3.cjs → line-wiGgVVGi.cjs} +1 -1
  187. package/dist/{linear-DUAteVwl.js → linear-BNesvT28.js} +1 -1
  188. package/dist/{linear-1lpO_WlJ.cjs → linear-YA14Lx5Z.cjs} +1 -1
  189. package/dist/locale/en/translation.json.d.ts +16 -0
  190. package/dist/locale/it/translation.json.d.ts +16 -0
  191. package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
  192. package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
  193. package/dist/{mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
  194. package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
  195. package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
  196. package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
  197. package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
  198. package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
  199. package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
  200. package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
  201. package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
  202. package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
  203. package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
  204. package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
  205. package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
  206. package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
  207. package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
  208. package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
  209. package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
  210. package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
  211. package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
  212. package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
  213. package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
  214. package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
  215. package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
  216. package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
  217. package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
  218. package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
  219. package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
  220. package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
  221. package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
  222. package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
  223. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  224. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
  225. package/dist/src-B16ML7oM.cjs +1 -0
  226. package/dist/{src-DjDATEq3.js → src-D-6ZfKf9.js} +500 -507
  227. package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
  228. package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
  229. package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
  230. package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
  231. package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
  232. package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
  233. package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
  234. package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
  235. package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
  236. package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
  237. package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
  238. package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
  239. package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
  240. package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
  241. package/dist/types/translation.d.ts +17 -1
  242. package/dist/types/translation.d.ts.map +1 -1
  243. package/dist/utils/data-structures.d.ts +2 -1
  244. package/dist/utils/data-structures.d.ts.map +1 -1
  245. package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
  246. package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
  247. package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
  248. package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
  249. package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
  250. package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
  251. package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
  252. package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
  253. package/package.json +5 -2
  254. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  255. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  256. package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
  257. package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
  258. package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
  259. package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
  260. package/dist/channel-DJpMBAs-.cjs +0 -1
  261. package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
  262. package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
  263. package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
  264. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
  265. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
  266. package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
  267. package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
  268. package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
  269. package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
  270. package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
  271. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
  272. package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
  273. package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
  274. package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
  275. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
  276. package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
  277. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  278. package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
  279. package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
  280. package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
  281. package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
  282. package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
  283. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
  284. package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
  285. package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
  286. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
  287. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
  288. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
  289. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
  290. package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
  291. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  292. package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
  293. package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
  294. package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
  295. package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
  296. package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
  297. package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
  298. package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
  299. package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
  300. package/dist/dist-D8RD2QWc.cjs +0 -1
  301. package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
  302. package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
  303. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  304. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  305. package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
  306. package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
  307. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  308. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  309. package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
  310. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  311. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  312. package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
  313. package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
  314. package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
  315. package/dist/katex-CkiTumqg.cjs +0 -257
  316. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  317. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  318. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  319. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  320. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  321. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  322. package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
  323. package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
  324. package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
  325. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  326. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  327. package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
  328. package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
  329. package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
  330. package/dist/src-DEmZ9bFr.cjs +0 -1
  331. package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
  332. package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
  333. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
  334. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
  335. package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
  336. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  337. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  338. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  339. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  340. package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
  341. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  342. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  343. package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
  344. package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
@@ -1,24 +1,25 @@
1
- import { g as e, h as t } from "./src-DjDATEq3.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-BEk3YcEH.js";
3
- import { i as p } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
4
- import { t as m } from "./chunk-WU5MYG2G-DuCEb9G-.js";
5
- import { t as h } from "./mermaid-parser.core-D6xVjl2t.js";
6
- import { t as g } from "./chunk-4BX2VUAB-zglw1T4d.js";
7
- //#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.mjs
8
- var _ = /* @__PURE__ */ t((e, t) => {
1
+ import { m as e } from "./src-D-6ZfKf9.js";
2
+ import { D as t, H as n, K as r, U as i, a, b as o, c as s, v as c, w as l, x as u, y as d } from "./chunk-DU6HZSFF-CNSdkWoH.js";
3
+ import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { i as p } from "./chunk-75Z2AOVW-BwUD389x.js";
5
+ import { t as m } from "./chunk-CLGD4ZFX-DKRy6g5T.js";
6
+ import { n as h } from "./mermaid-parser.core-oFB-qEU8.js";
7
+ import { t as g } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
8
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-VM6X3IG4.mjs
9
+ var _ = /* @__PURE__ */ f((e, t) => {
9
10
  let n = e <= 1 ? e * 100 : e;
10
11
  if (n < 0 || n > 100) throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);
11
12
  return n;
12
- }, "toPercent"), v = /* @__PURE__ */ t((e, t, n) => ({
13
+ }, "toPercent"), v = /* @__PURE__ */ f((e, t, n) => ({
13
14
  x: _(t, `${n} evolution`),
14
15
  y: _(e, `${n} visibility`)
15
- }), "toCoordinates"), y = /* @__PURE__ */ t((e) => {
16
+ }), "toCoordinates"), y = /* @__PURE__ */ f((e) => {
16
17
  if (e) {
17
18
  if (e === "+<>") return "bidirectional";
18
19
  if (e === "+<") return "backward";
19
20
  if (e === "+>") return "forward";
20
21
  }
21
- }, "getFlowFromPort"), b = /* @__PURE__ */ t((e) => {
22
+ }, "getFlowFromPort"), b = /* @__PURE__ */ f((e) => {
22
23
  if (!e?.startsWith("+")) return {};
23
24
  let t = /^\+'([^']*)'/.exec(e)?.[1];
24
25
  return e.includes("<>") ? {
@@ -31,7 +32,7 @@ var _ = /* @__PURE__ */ t((e, t) => {
31
32
  flow: "forward",
32
33
  label: t
33
34
  } : { label: t };
34
- }, "extractFlowFromArrow"), x = /* @__PURE__ */ t((e, t) => {
35
+ }, "extractFlowFromArrow"), x = /* @__PURE__ */ f((e, t) => {
35
36
  if (g(e, t), e.size && t.setSize(e.size.width, e.size.height), e.evolution) {
36
37
  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);
37
38
  t.updateAxes({
@@ -86,7 +87,7 @@ var _ = /* @__PURE__ */ t((e, t) => {
86
87
  });
87
88
  }, "populateDb"), S = {
88
89
  parser: { yy: void 0 },
89
- parse: /* @__PURE__ */ t(async (t) => {
90
+ parse: /* @__PURE__ */ f(async (t) => {
90
91
  let n = await h("wardley", t);
91
92
  e.debug(n);
92
93
  let r = S.parser?.yy;
@@ -98,7 +99,7 @@ var _ = /* @__PURE__ */ t((e, t) => {
98
99
  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 = {};
99
100
  }
100
101
  static {
101
- t(this, "WardleyBuilder");
102
+ f(this, "WardleyBuilder");
102
103
  }
103
104
  addNode(e) {
104
105
  let t = this.nodes.get(e.id) ?? {
@@ -196,9 +197,9 @@ var _ = /* @__PURE__ */ t((e, t) => {
196
197
  }
197
198
  }();
198
199
  function w() {
199
- return d()["wardley-beta"];
200
+ return u()["wardley-beta"];
200
201
  }
201
- t(w, "getConfig");
202
+ f(w, "getConfig");
202
203
  function T(e, t, n, r, i, a, o, s, c) {
203
204
  C.addNode({
204
205
  id: e,
@@ -212,7 +213,7 @@ function T(e, t, n, r, i, a, o, s, c) {
212
213
  sourceStrategy: c
213
214
  });
214
215
  }
215
- t(T, "addNode");
216
+ f(T, "addNode");
216
217
  function E(e, t, n = !1, r, i) {
217
218
  C.addLink({
218
219
  source: e,
@@ -222,7 +223,7 @@ function E(e, t, n = !1, r, i) {
222
223
  flow: i
223
224
  });
224
225
  }
225
- t(E, "addLink");
226
+ f(E, "addLink");
226
227
  function D(e, t, n) {
227
228
  C.addTrend({
228
229
  nodeId: e,
@@ -230,7 +231,7 @@ function D(e, t, n) {
230
231
  targetY: n
231
232
  });
232
233
  }
233
- t(D, "addTrend");
234
+ f(D, "addTrend");
234
235
  function O(e, t, n) {
235
236
  C.addAnnotation({
236
237
  number: e,
@@ -238,7 +239,7 @@ function O(e, t, n) {
238
239
  text: n
239
240
  });
240
241
  }
241
- t(O, "addAnnotation");
242
+ f(O, "addAnnotation");
242
243
  function k(e, t, n) {
243
244
  C.addNote({
244
245
  text: e,
@@ -246,7 +247,7 @@ function k(e, t, n) {
246
247
  y: n
247
248
  });
248
249
  }
249
- t(k, "addNote");
250
+ f(k, "addNote");
250
251
  function A(e, t, n) {
251
252
  C.addAccelerator({
252
253
  name: e,
@@ -254,7 +255,7 @@ function A(e, t, n) {
254
255
  y: n
255
256
  });
256
257
  }
257
- t(A, "addAccelerator");
258
+ f(A, "addAccelerator");
258
259
  function j(e, t, n) {
259
260
  C.addDeaccelerator({
260
261
  name: e,
@@ -262,43 +263,43 @@ function j(e, t, n) {
262
263
  y: n
263
264
  });
264
265
  }
265
- t(j, "addDeaccelerator");
266
+ f(j, "addDeaccelerator");
266
267
  function M(e, t) {
267
268
  C.setAnnotationsBox(e, t);
268
269
  }
269
- t(M, "setAnnotationsBox");
270
+ f(M, "setAnnotationsBox");
270
271
  function N(e, t) {
271
272
  C.setSize(e, t);
272
273
  }
273
- t(N, "setSize");
274
+ f(N, "setSize");
274
275
  function P(e) {
275
276
  C.startPipeline(e);
276
277
  }
277
- t(P, "startPipeline");
278
+ f(P, "startPipeline");
278
279
  function F(e, t) {
279
280
  C.addPipelineComponent(e, t);
280
281
  }
281
- t(F, "addPipelineComponent");
282
+ f(F, "addPipelineComponent");
282
283
  function I(e) {
283
284
  C.setAxes(e);
284
285
  }
285
- t(I, "updateAxes");
286
+ f(I, "updateAxes");
286
287
  function L(e) {
287
288
  return C.getNode(e);
288
289
  }
289
- t(L, "getNode");
290
+ f(L, "getNode");
290
291
  function R(e) {
291
292
  return C.resolveNodeId(e);
292
293
  }
293
- t(R, "resolveNodeId");
294
+ f(R, "resolveNodeId");
294
295
  function z() {
295
296
  return C.build();
296
297
  }
297
- t(z, "getWardleyData");
298
+ f(z, "getWardleyData");
298
299
  function B() {
299
- C.clear(), o();
300
+ C.clear(), a();
300
301
  }
301
- t(B, "clear");
302
+ f(B, "clear");
302
303
  var V = {
303
304
  getConfig: w,
304
305
  addNode: T,
@@ -317,19 +318,19 @@ var V = {
317
318
  resolveNodeId: R,
318
319
  getWardleyData: z,
319
320
  clear: B,
320
- setAccTitle: a,
321
- getAccTitle: f,
322
- setDiagramTitle: i,
323
- getDiagramTitle: u,
324
- getAccDescription: l,
325
- setAccDescription: r
321
+ setAccTitle: i,
322
+ getAccTitle: d,
323
+ setDiagramTitle: r,
324
+ getDiagramTitle: l,
325
+ getAccDescription: c,
326
+ setAccDescription: n
326
327
  }, H = [
327
328
  "Genesis",
328
329
  "Custom Built",
329
330
  "Product",
330
331
  "Commodity"
331
- ], U = /* @__PURE__ */ t(() => {
332
- let { themeVariables: e } = d();
332
+ ], U = /* @__PURE__ */ f(() => {
333
+ let { themeVariables: e } = u();
333
334
  return {
334
335
  backgroundColor: e.wardley?.backgroundColor ?? e.background ?? "#fff",
335
336
  axisColor: e.wardley?.axisColor ?? "#000",
@@ -344,8 +345,8 @@ var V = {
344
345
  annotationTextColor: e.wardley?.annotationTextColor ?? e.primaryTextColor ?? "#222",
345
346
  annotationFill: e.wardley?.annotationFill ?? e.background ?? "#fff"
346
347
  };
347
- }, "getTheme"), W = /* @__PURE__ */ t(() => {
348
- let e = d()["wardley-beta"];
348
+ }, "getTheme"), W = /* @__PURE__ */ f(() => {
349
+ let e = u()["wardley-beta"];
349
350
  return {
350
351
  width: e?.width ?? 900,
351
352
  height: e?.height ?? 600,
@@ -360,21 +361,21 @@ var V = {
360
361
  }, "getConfigValues"), G = {
361
362
  parser: S,
362
363
  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}`);
364
+ renderer: { draw: /* @__PURE__ */ f((t, n, r, i) => {
365
+ e.debug("Rendering Wardley map\n" + t);
366
+ let a = W(), o = U(), c = a.nodeRadius * 1.6, l = i.db, u = l.getWardleyData(), d = l.getDiagramTitle(), p = u.size?.width ?? a.width, h = u.size?.height ?? a.height, g = m(n);
367
+ g.selectAll("*").remove(), s(g, h, p, a.useMaxWidth), g.attr("viewBox", `0 0 ${p} ${h}`);
367
368
  let _ = g.append("g").attr("class", "wardley-map"), v = g.append("defs");
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;
369
+ v.append("marker").attr("id", `arrow-${n}`).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", o.evolutionStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-end-${n}`).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", o.linkStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-start-${n}`).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", o.linkStroke).attr("stroke", "none"), _.append("rect").attr("class", "wardley-background").attr("width", p).attr("height", h).attr("fill", o.backgroundColor);
370
+ let y = p - a.padding * 2, b = h - a.padding * 2;
371
+ d && _.append("text").attr("class", "wardley-title").attr("x", p / 2).attr("y", a.padding / 2).attr("fill", o.axisTextColor).attr("font-size", a.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
372
+ let x = /* @__PURE__ */ f((e) => a.padding + e / 100 * y, "projectX"), S = /* @__PURE__ */ f((e) => h - a.padding - e / 100 * b, "projectY"), C = _.append("g").attr("class", "wardley-axes");
373
+ C.append("line").attr("x1", a.padding).attr("x2", p - a.padding).attr("y1", h - a.padding).attr("y2", h - a.padding).attr("stroke", o.axisColor).attr("stroke-width", 1), C.append("line").attr("x1", a.padding).attr("x2", a.padding).attr("y1", a.padding).attr("y2", h - a.padding).attr("stroke", o.axisColor).attr("stroke-width", 1);
374
+ let w = u.axes.xLabel ?? "Evolution", T = u.axes.yLabel ?? "Visibility";
375
+ C.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", a.padding + y / 2).attr("y", h - a.padding / 4).attr("fill", o.axisTextColor).attr("font-size", a.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", a.padding / 3).attr("y", a.padding + b / 2).attr("fill", o.axisTextColor).attr("font-size", a.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr("transform", `rotate(-90 ${a.padding / 3} ${a.padding + b / 2})`).text(T);
376
+ let E = u.axes.stages && u.axes.stages.length > 0 ? u.axes.stages : H;
376
377
  if (E.length > 0) {
377
- let e = _.append("g").attr("class", "wardley-stages"), t = d.axes.stageBoundaries, n = [];
378
+ let e = _.append("g").attr("class", "wardley-stages"), t = u.axes.stageBoundaries, n = [];
378
379
  if (t && t.length === E.length) {
379
380
  let e = 0;
380
381
  t.forEach((t) => {
@@ -393,160 +394,160 @@ var V = {
393
394
  });
394
395
  }
395
396
  E.forEach((t, r) => {
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);
397
+ let i = n[r], s = a.padding + i.start * y, c = (s + (a.padding + i.end * y)) / 2;
398
+ r > 0 && e.append("line").attr("x1", s).attr("x2", s).attr("y1", a.padding).attr("y2", h - a.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 - a.padding / 1.5).attr("fill", o.axisTextColor).attr("font-size", a.axisFontSize - 2).attr("text-anchor", "middle").text(t);
398
399
  });
399
400
  }
400
- if (o.showGrid) {
401
+ if (a.showGrid) {
401
402
  let e = _.append("g").attr("class", "wardley-grid");
402
403
  for (let t = 1; t < 4; t++) {
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");
404
+ let n = t / 4, r = a.padding + y * n;
405
+ e.append("line").attr("x1", r).attr("x2", r).attr("y1", a.padding).attr("y2", h - a.padding).attr("stroke", o.gridColor).attr("stroke-dasharray", "2 6"), e.append("line").attr("x1", a.padding).attr("x2", p - a.padding).attr("y1", h - a.padding - b * n).attr("y2", h - a.padding - b * n).attr("stroke", o.gridColor).attr("stroke-dasharray", "2 6");
405
406
  }
406
407
  }
407
408
  let D = /* @__PURE__ */ new Map();
408
- if (d.nodes.forEach((e) => {
409
+ if (u.nodes.forEach((e) => {
409
410
  D.set(e.id, {
410
411
  x: x(e.x),
411
412
  y: S(e.y),
412
413
  node: e
413
414
  });
414
- }), d.pipelines.length > 0) {
415
+ }), u.pipelines.length > 0) {
415
416
  let e = _.append("g").attr("class", "wardley-pipelines"), t = _.append("g").attr("class", "wardley-pipeline-links");
416
- d.pipelines.forEach((n) => {
417
+ u.pipelines.forEach((n) => {
417
418
  if (n.componentIds.length === 0) return;
418
419
  let r = n.componentIds.map((e) => ({
419
420
  id: e,
420
421
  pos: D.get(e),
421
- node: d.nodes.find((t) => t.id === e)
422
+ node: u.nodes.find((t) => t.id === e)
422
423
  })).filter((e) => e.pos && e.node).sort((e, t) => e.node.x - t.node.x);
423
424
  for (let e = 0; e < r.length - 1; e++) {
424
425
  let n = r[e], i = r[e + 1];
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");
426
+ 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", o.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4");
426
427
  }
427
- let i = Infinity, a = -Infinity, c = 0;
428
+ let i = Infinity, s = -Infinity, l = 0;
428
429
  if (n.componentIds.forEach((e) => {
429
430
  let t = D.get(e);
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);
431
+ t && (i = Math.min(i, t.x), s = Math.max(s, t.x), l = t.y);
432
+ }), i !== Infinity && s !== -Infinity) {
433
+ let t = a.nodeRadius * 4, r = l - t / 2, u = D.get(n.nodeId);
434
+ u && (u.x = (i + s) / 2, u.y = r - c / 6), e.append("rect").attr("class", "wardley-pipeline-box").attr("x", i - 15).attr("y", r).attr("width", s - i + 30).attr("height", t).attr("fill", "none").attr("stroke", o.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
434
435
  }
435
436
  });
436
437
  }
437
438
  let O = _.append("g").attr("class", "wardley-links"), k = /* @__PURE__ */ new Map();
438
- d.pipelines.forEach((e) => {
439
+ u.pipelines.forEach((e) => {
439
440
  k.set(e.nodeId, new Set(e.componentIds));
440
441
  });
441
- let A = d.links.filter((e) => !(!D.has(e.source) || !D.has(e.target) || k.get(e.target)?.has(e.source)));
442
+ let A = u.links.filter((e) => !(!D.has(e.source) || !D.has(e.target) || k.get(e.target)?.has(e.source)));
442
443
  O.selectAll("line").data(A).enter().append("line").attr("class", (e) => `wardley-link${e.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (e) => {
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
+ let t = D.get(e.source), n = D.get(e.target), r = u.nodes.find((t) => t.id === e.source).isPipelineParent ? c / Math.sqrt(2) : a.nodeRadius, i = n.x - t.x, o = n.y - t.y, s = Math.sqrt(i * i + o * o);
444
445
  return t.x + i / s * r;
445
446
  }).attr("y1", (e) => {
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;
447
+ let t = D.get(e.source), n = D.get(e.target), r = u.nodes.find((t) => t.id === e.source).isPipelineParent ? c / Math.sqrt(2) : a.nodeRadius, i = n.x - t.x, o = n.y - t.y, s = Math.sqrt(i * i + o * o);
448
+ return t.y + o / s * r;
448
449
  }).attr("x2", (e) => {
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
+ let t = D.get(e.source), n = D.get(e.target), r = u.nodes.find((t) => t.id === e.target).isPipelineParent ? c / Math.sqrt(2) : a.nodeRadius, i = t.x - n.x, o = t.y - n.y, s = Math.sqrt(i * i + o * o);
450
451
  return n.x + i / s * r;
451
452
  }).attr("y2", (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) => {
453
+ let t = D.get(e.source), n = D.get(e.target), r = u.nodes.find((t) => t.id === e.target).isPipelineParent ? c / Math.sqrt(2) : a.nodeRadius, i = t.x - n.x, o = t.y - n.y, s = Math.sqrt(i * i + o * o);
454
+ return n.y + o / s * r;
455
+ }).attr("stroke", o.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-${n})` : null).attr("marker-start", (e) => e.flow === "backward" || e.flow === "bidirectional" ? `url(#link-arrow-start-${n})` : null), O.selectAll("text").data(A.filter((e) => e.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (e) => {
455
456
  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;
456
457
  return r + i / Math.sqrt(a * a + i * i) * 8;
457
458
  }).attr("y", (e) => {
458
459
  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);
459
460
  return r + -i / o * 8;
460
- }).attr("fill", s.axisTextColor).attr("font-size", o.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (e) => {
461
+ }).attr("fill", o.axisTextColor).attr("font-size", a.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (e) => {
461
462
  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;
462
463
  return (f > 90 || f < -90) && (f += 180), `rotate(${f} ${u} ${d})`;
463
464
  }).text((e) => e.label);
464
- let j = _.append("g").attr("class", "wardley-trends"), M = d.trends.map((e) => {
465
+ let j = _.append("g").attr("class", "wardley-trends"), M = u.trends.map((e) => {
465
466
  let t = D.get(e.nodeId);
466
467
  if (!t) return null;
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;
468
+ let n = x(e.targetX), r = S(e.targetY), i = n - t.x, o = r - t.y, s = Math.sqrt(i * i + o * o), c = a.nodeRadius + 2;
468
469
  return {
469
470
  origin: t,
470
471
  targetX: n,
471
472
  targetY: r,
472
473
  adjustedX2: s > c ? n - i / s * c : n,
473
- adjustedY2: s > c ? r - a / s * c : r
474
+ adjustedY2: s > c ? r - o / s * c : r
474
475
  };
475
476
  }).filter((e) => e !== null);
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);
477
+ 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", o.evolutionStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4").attr("marker-end", `url(#arrow-${n})`);
478
+ let N = _.append("g").attr("class", "wardley-nodes").selectAll("g").data(u.nodes).enter().append("g").attr("class", (e) => ["wardley-node", e.className ? `wardley-node--${e.className}` : ""].filter(Boolean).join(" "));
479
+ 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", a.nodeRadius * 2).attr("fill", "#666").attr("stroke", o.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", a.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", o.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", a.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1);
479
480
  let P = N.filter((e) => e.sourceStrategy === "market");
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;
481
+ 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", a.nodeRadius * 2).attr("fill", "white").attr("stroke", o.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", a.nodeRadius).attr("fill", o.componentFill).attr("stroke", o.componentStroke).attr("stroke-width", 1);
482
+ let F = a.nodeRadius * .7, I = a.nodeRadius * 1.2;
483
+ 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", o.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", o.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", o.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", o.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", o.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", o.componentStroke).attr("stroke-width", 2), N.filter((e) => e.isPipelineParent === !0).append("rect").attr("x", (e) => D.get(e.id).x - c / 2).attr("y", (e) => D.get(e.id).y - c / 2).attr("width", c).attr("height", c).attr("fill", o.componentFill).attr("stroke", o.componentStroke).attr("stroke-width", 1), N.filter((e) => e.inertia === !0).append("line").attr("class", "wardley-inertia").attr("x1", (e) => {
484
+ let t = D.get(e.id), n = e.isPipelineParent ? c / 2 + 15 : a.nodeRadius + 15;
485
+ return e.sourceStrategy && (n += a.nodeRadius + 10), t.x + n;
485
486
  }).attr("y1", (e) => {
486
- let t = D.get(e.id), n = e.isPipelineParent ? l : o.nodeRadius * 2;
487
+ let t = D.get(e.id), n = e.isPipelineParent ? c : a.nodeRadius * 2;
487
488
  return t.y - n / 2;
488
489
  }).attr("x2", (e) => {
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;
490
+ let t = D.get(e.id), n = e.isPipelineParent ? c / 2 + 15 : a.nodeRadius + 15;
491
+ return e.sourceStrategy && (n += a.nodeRadius + 10), t.x + n;
491
492
  }).attr("y2", (e) => {
492
- let t = D.get(e.id), n = e.isPipelineParent ? l : o.nodeRadius * 2;
493
+ let t = D.get(e.id), n = e.isPipelineParent ? c : a.nodeRadius * 2;
493
494
  return t.y + n / 2;
494
- }).attr("stroke", s.componentStroke).attr("stroke-width", 6), N.append("text").attr("x", (e) => {
495
+ }).attr("stroke", o.componentStroke).attr("stroke-width", 6), N.append("text").attr("x", (e) => {
495
496
  let t = D.get(e.id);
496
497
  if (e.className === "anchor") return e.labelOffsetX === void 0 ? t.x : t.x + e.labelOffsetX;
497
- let n = o.nodeLabelOffset;
498
+ let n = a.nodeLabelOffset;
498
499
  e.sourceStrategy && e.labelOffsetX === void 0 && (n += 10);
499
500
  let r = e.labelOffsetX ?? n;
500
501
  return t.x + r;
501
502
  }).attr("y", (e) => {
502
503
  let t = D.get(e.id);
503
504
  if (e.className === "anchor") return e.labelOffsetY === void 0 ? t.y - 3 : t.y + e.labelOffsetY;
504
- let n = -o.nodeLabelOffset;
505
+ let n = -a.nodeLabelOffset;
505
506
  e.sourceStrategy && e.labelOffsetY === void 0 && (n -= 10);
506
507
  let r = e.labelOffsetY ?? n;
507
508
  return t.y + r;
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) {
509
+ }).attr("class", "wardley-node-label").attr("fill", (e) => e.className === "evolved" ? o.evolutionStroke : e.className === "anchor" ? "#000" : o.componentLabelColor).attr("font-size", a.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), u.annotations.length > 0) {
509
510
  let e = _.append("g").attr("class", "wardley-annotations");
510
- if (d.annotations.forEach((t) => {
511
+ if (u.annotations.forEach((t) => {
511
512
  let n = t.coordinates.map((e) => ({
512
513
  x: x(e.x),
513
514
  y: S(e.y)
514
515
  }));
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");
516
+ 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", o.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4");
516
517
  n.forEach((n) => {
517
518
  let r = e.append("g").attr("class", "wardley-annotation");
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);
519
+ r.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("fill", "white").attr("stroke", o.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", o.axisTextColor).attr("font-weight", "bold").text(t.number);
519
520
  });
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 = [];
521
+ }), u.annotationsBox) {
522
+ let t = x(u.annotationsBox.x), n = S(u.annotationsBox.y), r = e.append("g").attr("class", "wardley-annotations-box"), i = [...u.annotations].filter((e) => e.text).sort((e, t) => e.number - t.number), s = [];
522
523
  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) {
524
+ let a = r.append("text").attr("x", t + 10).attr("y", n + 10 + (i + 1) * 16).attr("font-size", 11).attr("fill", o.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${e.number}. ${e.text}`);
525
+ s.push(a);
526
+ }), s.length > 0) {
526
527
  let e = 0, c = 0;
527
- a.forEach((t) => {
528
+ s.forEach((t) => {
528
529
  let n = t.node(), r = n.getComputedTextLength();
529
530
  e = Math.max(e, r);
530
531
  let i = n.getBBox();
531
532
  c = Math.max(c, i.height);
532
533
  });
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) => {
534
+ let l = e + 20 + 105, u = i.length * 16 + 20 + c / 2, d = a.padding, f = p - a.padding - l, m = a.padding, g = h - a.padding - u;
535
+ t = Math.max(d, Math.min(t, f)), n = Math.max(m, Math.min(n, g)), s.forEach((e, r) => {
535
536
  e.attr("x", t + 10).attr("y", n + 10 + (r + 1) * 16);
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);
537
+ }), r.insert("rect", "text").attr("x", t).attr("y", n).attr("width", l).attr("height", u).attr("fill", "white").attr("stroke", o.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
537
538
  }
538
539
  }
539
540
  }
540
- if (d.notes.length > 0) {
541
+ if (u.notes.length > 0) {
541
542
  let e = _.append("g").attr("class", "wardley-notes");
542
- d.notes.forEach((t) => {
543
+ u.notes.forEach((t) => {
543
544
  let n = x(t.x), r = S(t.y);
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);
545
+ e.append("text").attr("x", n).attr("y", r).attr("text-anchor", "start").attr("font-size", 11).attr("fill", o.axisTextColor).attr("font-weight", "bold").text(t.text);
545
546
  });
546
547
  }
547
- if (d.accelerators.length > 0) {
548
+ if (u.accelerators.length > 0) {
548
549
  let e = _.append("g").attr("class", "wardley-accelerators");
549
- d.accelerators.forEach((t) => {
550
+ u.accelerators.forEach((t) => {
550
551
  let n = x(t.x), r = S(t.y), i = `
551
552
  M ${n} ${r - 30 / 2}
552
553
  L ${n + 60 - 20} ${r - 30 / 2}
@@ -557,12 +558,12 @@ var V = {
557
558
  L ${n} ${r + 30 / 2}
558
559
  Z
559
560
  `;
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);
561
+ e.append("path").attr("d", i).attr("fill", "white").attr("stroke", o.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", o.axisTextColor).attr("font-weight", "bold").text(t.name);
561
562
  });
562
563
  }
563
- if (d.deaccelerators.length > 0) {
564
+ if (u.deaccelerators.length > 0) {
564
565
  let e = _.append("g").attr("class", "wardley-deaccelerators");
565
- d.deaccelerators.forEach((t) => {
566
+ u.deaccelerators.forEach((t) => {
566
567
  let n = x(t.x), r = S(t.y), i = `
567
568
  M ${n + 60} ${r - 30 / 2}
568
569
  L ${n + 20} ${r - 30 / 2}
@@ -573,69 +574,69 @@ var V = {
573
574
  L ${n + 60} ${r + 30 / 2}
574
575
  Z
575
576
  `;
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);
577
+ e.append("path").attr("d", i).attr("fill", "white").attr("stroke", o.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", o.axisTextColor).attr("font-weight", "bold").text(t.name);
577
578
  });
578
579
  }
579
580
  }, "draw") },
580
- styles: /* @__PURE__ */ t(({ wardley: e } = {}) => {
581
- let t = p(p(n(), s().themeVariables).wardley, e);
581
+ styles: /* @__PURE__ */ f(({ wardley: e } = {}) => {
582
+ let n = p(p(t(), o().themeVariables).wardley, e);
582
583
  return `
583
584
  .wardley-background {
584
- fill: ${t.backgroundColor};
585
+ fill: ${n.backgroundColor};
585
586
  }
586
587
  .wardley-axes line, .wardley-axes path {
587
- stroke: ${t.axisColor};
588
+ stroke: ${n.axisColor};
588
589
  }
589
590
  .wardley-axis-label {
590
- fill: ${t.axisTextColor};
591
+ fill: ${n.axisTextColor};
591
592
  }
592
593
  .wardley-stage-label {
593
- fill: ${t.axisTextColor};
594
+ fill: ${n.axisTextColor};
594
595
  }
595
596
  .wardley-grid line {
596
- stroke: ${t.gridColor};
597
+ stroke: ${n.gridColor};
597
598
  }
598
599
  .wardley-node circle {
599
- fill: ${t.componentFill};
600
- stroke: ${t.componentStroke};
600
+ fill: ${n.componentFill};
601
+ stroke: ${n.componentStroke};
601
602
  }
602
603
  .wardley-node-label {
603
- fill: ${t.componentLabelColor};
604
+ fill: ${n.componentLabelColor};
604
605
  }
605
606
  .wardley-link {
606
- stroke: ${t.linkStroke};
607
+ stroke: ${n.linkStroke};
607
608
  }
608
609
  .wardley-link--dashed {
609
610
  stroke-dasharray: 4 4;
610
611
  }
611
612
  .wardley-link-label {
612
- fill: ${t.axisTextColor};
613
+ fill: ${n.axisTextColor};
613
614
  }
614
615
  .wardley-trend line {
615
- stroke: ${t.evolutionStroke};
616
+ stroke: ${n.evolutionStroke};
616
617
  }
617
618
  .wardley-annotation-line {
618
- stroke: ${t.annotationStroke};
619
+ stroke: ${n.annotationStroke};
619
620
  }
620
621
  .wardley-annotation circle {
621
- fill: ${t.annotationFill};
622
- stroke: ${t.annotationStroke};
622
+ fill: ${n.annotationFill};
623
+ stroke: ${n.annotationStroke};
623
624
  }
624
625
  .wardley-annotation text {
625
- fill: ${t.annotationTextColor};
626
+ fill: ${n.annotationTextColor};
626
627
  }
627
628
  .wardley-annotations-box rect {
628
- fill: ${t.annotationFill};
629
- stroke: ${t.annotationStroke};
629
+ fill: ${n.annotationFill};
630
+ stroke: ${n.annotationStroke};
630
631
  }
631
632
  .wardley-annotations-box text {
632
- fill: ${t.annotationTextColor};
633
+ fill: ${n.annotationTextColor};
633
634
  }
634
635
  .wardley-pipeline-box {
635
- stroke: ${t.componentStroke};
636
+ stroke: ${n.componentStroke};
636
637
  }
637
638
  .wardley-notes text {
638
- fill: ${t.axisTextColor};
639
+ fill: ${n.axisTextColor};
639
640
  }
640
641
  `;
641
642
  }, "styles")