@sme.up/ketchup2 2.7.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/dist/abnfDiagram-VCTEODGH-DwAVRNNu.js +89 -0
  2. package/dist/{arc-CVbkjF8U.js → arc-DXfwi1YX.js} +8 -6
  3. package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
  4. package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +636 -540
  5. package/dist/assets/svg/functions.svg +1 -0
  6. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  7. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  8. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  9. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  10. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  11. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  12. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  13. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  14. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  15. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  16. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  17. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  18. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  19. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  20. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  21. package/dist/basic-components/file-upload/file-upload-hook.d.ts.map +1 -1
  22. package/dist/basic-components/list/list.d.ts.map +1 -1
  23. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  24. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  27. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  28. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  29. package/dist/basic-components/select/select.d.ts.map +1 -1
  30. package/dist/blockDiagram-I7D4REHJ-Cu18ws5-.js +1922 -0
  31. package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +899 -850
  32. package/dist/{channel-C-LAmObA.js → channel-CuEby436.js} +1 -1
  33. package/dist/chunk-2E4U76K2-ComA5SPA.js +348 -0
  34. package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  35. package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-CZgIgrp_.js} +1667 -1145
  36. package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  37. package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-Drsj7a97.js} +106 -136
  38. package/dist/chunk-CLGD4ZFX-CLGio9rD.js +14 -0
  39. package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-waeanndy.js} +1005 -768
  40. package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-jIrOJO87.js} +18 -17
  41. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-LRqOLsSw.js} +5518 -4708
  42. package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-D80II4AD.js} +486 -520
  43. package/dist/chunk-GVQU2GXP-DP3t_9Rl.js +37 -0
  44. package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-8ItzAAcf.js} +336 -318
  45. package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  46. package/dist/chunk-L3NEJ4N5-qPot4t6M.js +245 -0
  47. package/dist/chunk-LNGE3PJU-CtYcu9x8.js +1521 -0
  48. package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-CQhPF3Mc.js} +310 -198
  49. package/dist/chunk-P2QGCYS3-BUeNZ170.js +67 -0
  50. package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +26 -0
  51. package/dist/chunk-PWAF6VOD-D37VoZ8H.js +275 -0
  52. package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-Cri27Jke.js} +581 -543
  53. package/dist/chunk-SVP7TREG-CyJlOPau.js +490 -0
  54. package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-Cw2iT_VD.js} +191 -185
  55. package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-BdsLNXjt.js} +35 -25
  56. package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +9 -0
  57. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  58. package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
  59. package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -0
  60. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  61. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  62. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  63. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  64. package/dist/components/app-bar/app-bar.d.ts.map +1 -1
  65. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  66. package/dist/components/chat/chat.d.ts.map +1 -1
  67. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  68. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  69. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  70. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  71. package/dist/components/data-table/data-table-types.d.ts +52 -1
  72. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  73. package/dist/components/data-table/data-table.d.ts.map +1 -1
  74. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  75. package/dist/components/data-table/header/header-types.d.ts +7 -1
  76. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  77. package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
  78. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  79. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  80. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  81. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  82. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  83. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  84. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  85. package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
  86. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
  87. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
  88. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
  89. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  90. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  91. package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
  92. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
  93. package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-Qs_Z6zBZ.js} +87 -83
  94. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
  95. package/dist/cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js +355 -0
  96. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-C5TvPYYm.js} +2749 -2701
  97. package/dist/{dagre-3-RnF0EK.js → dagre-D5csT9sx.js} +144 -146
  98. package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +425 -0
  99. package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
  100. package/dist/diagram-S7CK7UJ4-BuDHTdHA.js +301 -0
  101. package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-uvzJGj43.js} +82 -81
  102. package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CrQQCs-B.js} +66 -65
  103. package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-BNmG1sig.js} +92 -89
  104. package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-B6BrLhP0.js} +21 -20
  105. package/dist/{dist-Btd8EZyy.js → dist-CsrMlyO_.js} +2 -3
  106. package/dist/ebnfDiagram-PWID7BFC-DMx8xAFO.js +100 -0
  107. package/dist/erDiagram-RLTQ6QDP-bkJ9nzVK.js +1966 -0
  108. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
  109. package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +17 -0
  110. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  111. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  112. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  113. package/dist/functional-components/row/row-types.d.ts +5 -0
  114. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  115. package/dist/functional-components/row/row.d.ts.map +1 -1
  116. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  117. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  118. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  119. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  120. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  121. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  122. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  123. package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +703 -710
  124. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
  125. package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +156 -151
  126. package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
  127. package/dist/index.d.ts +4 -1
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
  130. package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +20 -0
  131. package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
  132. package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +142 -141
  133. package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +192 -191
  134. package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +149 -146
  135. package/dist/{katex-D-2KeLwt.js → katex-CT2p8LXT.js} +1627 -1650
  136. package/dist/ketchup2.css +1 -1
  137. package/dist/ketchup2.es.js +34744 -32755
  138. package/dist/{line-DIhSUgmA.js → line-DTqYMLoX.js} +2 -2
  139. package/dist/{linear-DUAteVwl.js → linear-CXc5xaa6.js} +8 -9
  140. package/dist/locale/en/translation.json.d.ts +16 -0
  141. package/dist/locale/it/translation.json.d.ts +16 -0
  142. package/dist/mermaid-parser.core-BwVmI_Rq.js +638 -0
  143. package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +170 -170
  144. package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
  145. package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
  146. package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
  147. package/dist/pegDiagram-XKGWAZYB-DsfILwZN.js +94 -0
  148. package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
  149. package/dist/pieDiagram-E7YTZNPT-DcSLcLdd.js +203 -0
  150. package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +300 -300
  151. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
  152. package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
  153. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
  154. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
  155. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
  156. package/dist/railroadDiagram-O6MQD6OU-jOZRtNDi.js +76 -0
  157. package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +176 -173
  158. package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
  159. package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +123 -120
  160. package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +714 -722
  161. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  162. package/dist/{src-DjDATEq3.js → src-DQoflmwT.js} +499 -509
  163. package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +220 -0
  164. package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
  165. package/dist/swimlanes-42K2YHIH-CJcMmxXf.js +4979 -0
  166. package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
  167. package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +220 -219
  168. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
  169. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +3 -0
  170. package/dist/types/translation.d.ts +17 -1
  171. package/dist/types/translation.d.ts.map +1 -1
  172. package/dist/utils/data-structures.d.ts +2 -1
  173. package/dist/utils/data-structures.d.ts.map +1 -1
  174. package/dist/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
  175. package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +332 -310
  176. package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
  177. package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +156 -155
  178. package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +740 -574
  179. package/package.json +41 -38
  180. package/dist/arc-w3BipdfE.cjs +0 -1
  181. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  182. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  183. package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
  184. package/dist/array-DZSRzHA_.cjs +0 -1
  185. package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
  186. package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
  187. package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
  188. package/dist/channel-DJpMBAs-.cjs +0 -1
  189. package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
  190. package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
  191. package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
  192. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
  193. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
  194. package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
  195. package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
  196. package/dist/chunk-727SXJPM-Dj8nsm0O.cjs +0 -206
  197. package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
  198. package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
  199. package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
  200. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
  201. package/dist/chunk-FMBD7UC4-BIKI8zae.cjs +0 -15
  202. package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
  203. package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
  204. package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
  205. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
  206. package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
  207. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  208. package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
  209. package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
  210. package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
  211. package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
  212. package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
  213. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
  214. package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
  215. package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
  216. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
  217. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
  218. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
  219. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
  220. package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
  221. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  222. package/dist/dagre-B2BBwKNb.cjs +0 -1
  223. package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
  224. package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
  225. package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
  226. package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
  227. package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
  228. package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
  229. package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
  230. package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
  231. package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
  232. package/dist/dist-D8RD2QWc.cjs +0 -1
  233. package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
  234. package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
  235. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  236. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  237. package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
  238. package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
  239. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  240. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  241. package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
  242. package/dist/graphlib-CkkG5MuS.cjs +0 -1
  243. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  244. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  245. package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
  246. package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
  247. package/dist/init-07zIhv_j.cjs +0 -1
  248. package/dist/ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs +0 -70
  249. package/dist/journeyDiagram-JHISSGLW-DfnmJPLn.cjs +0 -139
  250. package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
  251. package/dist/katex-CkiTumqg.cjs +0 -257
  252. package/dist/ketchup2.cjs.js +0 -485
  253. package/dist/line-CzwncDY3.cjs +0 -1
  254. package/dist/linear-1lpO_WlJ.cjs +0 -1
  255. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  256. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  257. package/dist/mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs +0 -96
  258. package/dist/ordinal-CUPR-p0T.cjs +0 -1
  259. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  260. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  261. package/dist/path-Kklx0M1v.cjs +0 -1
  262. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  263. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  264. package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
  265. package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
  266. package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
  267. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  268. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  269. package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
  270. package/dist/rough.esm-r0QOSzHM.cjs +0 -1
  271. package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
  272. package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
  273. package/dist/src-DEmZ9bFr.cjs +0 -1
  274. package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
  275. package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
  276. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
  277. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
  278. package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
  279. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  280. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  281. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  282. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  283. package/dist/v4-Dyp-SQ1c.cjs +0 -1
  284. package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
  285. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  286. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  287. package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
  288. 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-DQoflmwT.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-waeanndy.js";
3
+ import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { i as p } from "./chunk-75Z2AOVW-Drsj7a97.js";
5
+ import { t as m } from "./chunk-CLGD4ZFX-CLGio9rD.js";
6
+ import { n as h } from "./mermaid-parser.core-BwVmI_Rq.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,249 +394,249 @@ 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
- M ${n} ${r - 30 / 2}
552
- L ${n + 60 - 20} ${r - 30 / 2}
553
- L ${n + 60 - 20} ${r - 30 / 2 - 8}
552
+ M ${n} ${r - 15}
553
+ L ${n + 60 - 20} ${r - 15}
554
+ L ${n + 60 - 20} ${r - 15 - 8}
554
555
  L ${n + 60} ${r}
555
- L ${n + 60 - 20} ${r + 30 / 2 + 8}
556
- L ${n + 60 - 20} ${r + 30 / 2}
557
- L ${n} ${r + 30 / 2}
556
+ L ${n + 60 - 20} ${r + 15 + 8}
557
+ L ${n + 60 - 20} ${r + 15}
558
+ L ${n} ${r + 15}
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 + 30).attr("y", r + 15 + 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
- M ${n + 60} ${r - 30 / 2}
568
- L ${n + 20} ${r - 30 / 2}
569
- L ${n + 20} ${r - 30 / 2 - 8}
568
+ M ${n + 60} ${r - 15}
569
+ L ${n + 20} ${r - 15}
570
+ L ${n + 20} ${r - 15 - 8}
570
571
  L ${n} ${r}
571
- L ${n + 20} ${r + 30 / 2 + 8}
572
- L ${n + 20} ${r + 30 / 2}
573
- L ${n + 60} ${r + 30 / 2}
572
+ L ${n + 20} ${r + 15 + 8}
573
+ L ${n + 20} ${r + 15}
574
+ L ${n + 60} ${r + 15}
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 + 30).attr("y", r + 15 + 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 = t(), r = o(), i = p(n, r.themeVariables), a = p(i.wardley, e);
582
583
  return `
583
584
  .wardley-background {
584
- fill: ${t.backgroundColor};
585
+ fill: ${a.backgroundColor};
585
586
  }
586
587
  .wardley-axes line, .wardley-axes path {
587
- stroke: ${t.axisColor};
588
+ stroke: ${a.axisColor};
588
589
  }
589
590
  .wardley-axis-label {
590
- fill: ${t.axisTextColor};
591
+ fill: ${a.axisTextColor};
591
592
  }
592
593
  .wardley-stage-label {
593
- fill: ${t.axisTextColor};
594
+ fill: ${a.axisTextColor};
594
595
  }
595
596
  .wardley-grid line {
596
- stroke: ${t.gridColor};
597
+ stroke: ${a.gridColor};
597
598
  }
598
599
  .wardley-node circle {
599
- fill: ${t.componentFill};
600
- stroke: ${t.componentStroke};
600
+ fill: ${a.componentFill};
601
+ stroke: ${a.componentStroke};
601
602
  }
602
603
  .wardley-node-label {
603
- fill: ${t.componentLabelColor};
604
+ fill: ${a.componentLabelColor};
604
605
  }
605
606
  .wardley-link {
606
- stroke: ${t.linkStroke};
607
+ stroke: ${a.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: ${a.axisTextColor};
613
614
  }
614
615
  .wardley-trend line {
615
- stroke: ${t.evolutionStroke};
616
+ stroke: ${a.evolutionStroke};
616
617
  }
617
618
  .wardley-annotation-line {
618
- stroke: ${t.annotationStroke};
619
+ stroke: ${a.annotationStroke};
619
620
  }
620
621
  .wardley-annotation circle {
621
- fill: ${t.annotationFill};
622
- stroke: ${t.annotationStroke};
622
+ fill: ${a.annotationFill};
623
+ stroke: ${a.annotationStroke};
623
624
  }
624
625
  .wardley-annotation text {
625
- fill: ${t.annotationTextColor};
626
+ fill: ${a.annotationTextColor};
626
627
  }
627
628
  .wardley-annotations-box rect {
628
- fill: ${t.annotationFill};
629
- stroke: ${t.annotationStroke};
629
+ fill: ${a.annotationFill};
630
+ stroke: ${a.annotationStroke};
630
631
  }
631
632
  .wardley-annotations-box text {
632
- fill: ${t.annotationTextColor};
633
+ fill: ${a.annotationTextColor};
633
634
  }
634
635
  .wardley-pipeline-box {
635
- stroke: ${t.componentStroke};
636
+ stroke: ${a.componentStroke};
636
637
  }
637
638
  .wardley-notes text {
638
- fill: ${t.axisTextColor};
639
+ fill: ${a.axisTextColor};
639
640
  }
640
641
  `;
641
642
  }, "styles")