ranui 0.2.0-alpha.7 → 0.2.1-alpha.3
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.
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
- package/dist/arc-D25LhgTs.cjs +1 -0
- package/dist/arc-DRPGof21.js +82 -0
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
- package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
- package/dist/array-By5736M5.js +7 -0
- package/dist/array-C3cbN3GY.cjs +1 -0
- package/dist/arrow-down-Bi5kqUrX.js +12 -0
- package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +4 -4
- package/dist/builder.js +39 -30
- package/dist/builtin-BkM0LLof.js +416 -0
- package/dist/button-D0zcnKnG.js +117 -0
- package/dist/button.js +1 -1
- package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
- package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
- package/dist/{card-BVvXX6KM.js → card-CygMndQS.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/channel-C9WSNwcS.cjs +1 -0
- package/dist/channel-k5-UxdcV.js +5 -0
- package/dist/{checkbox-BtoX9X2Z.js → checkbox-D5om9aJO.js} +10 -10
- package/dist/checkbox.js +1 -1
- package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
- package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
- package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
- package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
- package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
- package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
- package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
- package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
- package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
- package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
- package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
- package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
- package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
- package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
- package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
- package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
- package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
- package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
- package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
- package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
- package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
- package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
- package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
- package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
- package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
- package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
- package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
- package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
- package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
- package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
- package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
- package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
- package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
- package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
- package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
- package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
- package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
- package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
- package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
- package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
- package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
- package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
- package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
- package/dist/{colorpicker-Dukms7ET.js → colorpicker-qWnaTlYX.js} +9 -10
- package/dist/colorpicker.js +1 -1
- package/dist/components/colorpicker/index.d.ts +3 -3
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/builtin.d.ts +9 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +8 -0
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/components/route/index.d.ts +10 -4
- package/dist/components/router/index.d.ts +3 -0
- package/dist/content-Rry-U6ir.js +39 -0
- package/dist/content.js +5 -0
- package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
- package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
- package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
- package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
- package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
- package/dist/dagre-D1-W1tt6.cjs +1 -0
- package/dist/dagre-D8GLTwuf.js +1578 -0
- package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
- package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
- package/dist/defaultLocale-0M_kMcEH.js +184 -0
- package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
- package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
- package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
- package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
- package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
- package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
- package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
- package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
- package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
- package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
- package/dist/dist-C0Fwsvsq.js +70 -0
- package/dist/dist-C20XxSsP.cjs +1 -0
- package/dist/{dropdown-BYS1Trdu.js → dropdown-DzdAR1nI.js} +4 -4
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
- package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
- package/dist/factory-BkvRcCOx.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-BsB5JhS4.js → form-CUJpeQ7Q.js} +5 -5
- package/dist/form.js +1 -1
- package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
- package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
- package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
- package/dist/glass-Bj1Zf8Hy.js +115 -0
- package/dist/glass.js +5 -0
- package/dist/graphlib-CCKThIKP.js +1104 -0
- package/dist/graphlib-Du-578Js.cjs +1 -0
- package/dist/{icon-pfolda2m.js → icon-CtlZJISZ.js} +110 -21
- package/dist/icon.js +4 -3
- package/dist/icons.js +5 -0
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -0
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +14 -14
- package/dist/iife/mermaid.iife.js +3535 -0
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +8 -8
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +2 -2
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/{image-BXpKQ9sU.js → image-ILZNlaGc.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +257 -23
- package/dist/index.d.ts +11 -1
- package/dist/index.iife.js +3842 -74
- package/dist/index.js +86 -78
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
- package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
- package/dist/init-1VpIn1S3.js +16 -0
- package/dist/init-CbDwVtpO.cjs +1 -0
- package/dist/{input-BMMM60e6.js → input-CDH6zY9I.js} +6 -6
- package/dist/input.js +1 -1
- package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
- package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
- package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
- package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
- package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
- package/dist/katex-Cq3Y8cmK.cjs +257 -0
- package/dist/katex-Pg2EqTH0.js +23485 -0
- package/dist/line-BIPmUVxO.js +33 -0
- package/dist/line-CAB5QHC6.cjs +1 -0
- package/dist/linear-B2AM4ZBe.js +259 -0
- package/dist/linear-CSAfNEpl.cjs +1 -0
- package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
- package/dist/link.js +1 -1
- package/dist/{loading-BScjyeVm.js → loading-DJWGih1g.js} +4 -4
- package/dist/loading.js +1 -1
- package/dist/map-BC2bk_rV.cjs +1 -0
- package/dist/map-DMSWkcq6.js +208 -0
- package/dist/{math-IjzOAwnA.js → math-DRmkEDSQ.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-CMhm7npE.js +261 -0
- package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
- package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
- package/dist/mermaid.core-B2d5lQW2.js +1085 -0
- package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
- package/dist/mermaid.js +5 -0
- package/dist/{message-CLpuP8HY.js → message-BpYJBvYn.js} +36 -51
- package/dist/message.js +1 -1
- package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
- package/dist/{modal-DOTpABRe.js → modal-BeQlDYDP.js} +40 -24
- package/dist/modal.js +1 -1
- package/dist/ordinal-BMN81JG2.js +64 -0
- package/dist/ordinal-BplLHIij.cjs +1 -0
- package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
- package/dist/path-Bja5PoYn.js +82 -0
- package/dist/path-DmfWsuKi.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
- package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
- package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
- package/dist/{player-5olrw-qB.js → player-CQ4e3Yeo.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-DRUQjdPs.js → popover-eZMnL1F3.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-BIEXYYd2.js → progress-DyHgW4Ep.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
- package/dist/{radar-DAF95_Mj.js → radar-D21Rccap.js} +5 -5
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
- package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
- package/dist/ranui.css +1 -1
- package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
- package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
- package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
- package/dist/rough.esm-BWe9E0Nz.js +1387 -0
- package/dist/rough.esm-BfSi6CZE.cjs +1 -0
- package/dist/route-pR5P4ann.js +116 -0
- package/dist/route.js +1 -1
- package/dist/{router-B9rCrWXm.js → router-CewzSH7O.js} +23 -18
- package/dist/router.js +1 -1
- package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
- package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
- package/dist/{scratch-QlPyy1f4.js → scratch-BFVsgl-7.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-D0qMm9KM.js → section-DSPCsIxv.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-aAaWoveE.js → select-B58nMfB1.js} +16 -23
- package/dist/select.js +1 -1
- package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
- package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
- package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
- package/dist/{skeleton-CFqQmKyt.js → skeleton-DoHYMsTn.js} +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/src-C9EhKhbk.cjs +1 -0
- package/dist/src-DtRLxcYO.js +2104 -0
- package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
- package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
- package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
- package/dist/{tab-CiF2YPck.js → tab-BRPdZ9Ws.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-B-m3xwqu.js → tabpane-Owf72hw_.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/test/unit/icon.builtin.test.d.ts +1 -0
- package/dist/test/unit/utils.colorpicker.reconnect.test.d.ts +1 -0
- package/dist/test/unit/utils.route.lazy.test.d.ts +1 -0
- package/dist/test/unit/utils.router.match.test.d.ts +1 -0
- package/dist/test/unit/utils.signal.owner.test.d.ts +1 -0
- package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
- package/dist/theme-switch.js +1 -1
- package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
- package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
- package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
- package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
- package/dist/utils/builder/core.d.ts +153 -16
- package/dist/utils/builder/factory.d.ts +1 -1
- package/dist/utils/builder/index.d.ts +3 -3
- package/dist/utils/builder/signal.d.ts +93 -64
- package/dist/utils/router/index.d.ts +13 -3
- package/dist/utils/router.js +95 -54
- package/dist/utils/theme.d.ts +1 -1
- package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
- package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
- package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
- package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
- package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
- package/dist/warning-circle-fill-Cz0qu7AH.js +23 -0
- package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +383 -0
- package/docs/COMPONENTS.md +21 -3
- package/package.json +31 -3
- package/dist/button-Be_uHDZG.js +0 -117
- package/dist/factory-BdsO0dEW.js +0 -165
- package/dist/route-MQZpn2BP.js +0 -88
- package/dist/signal-CSSZxlK5.js +0 -57
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
import { n as Ct } from "./mermaid-parser.core-uIDZYuBu.js";
|
|
2
|
+
import { n as y } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
3
|
+
import { m as J } from "./src-DtRLxcYO.js";
|
|
4
|
+
import { D as Mt, H as Nt, K as zt, U as Lt, a as Tt, b as At, c as Et, v as Xt, w as Yt, x as j, y as It } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
5
|
+
import { i as Z } from "./chunk-ICXQ74PX-DR8rL-xF.js";
|
|
6
|
+
import { t as Bt } from "./chunk-VAUOI2AC-izt0o4id.js";
|
|
7
|
+
import { t as Ft } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
|
|
8
|
+
var D = /* @__PURE__ */ y((e, a) => {
|
|
9
|
+
const r = e <= 1 ? e * 100 : e;
|
|
10
|
+
if (r < 0 || r > 100) throw new Error(`${a} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);
|
|
11
|
+
return r;
|
|
12
|
+
}, "toPercent"), T = /* @__PURE__ */ y((e, a, r) => ({
|
|
13
|
+
x: D(a, `${r} evolution`),
|
|
14
|
+
y: D(e, `${r} visibility`)
|
|
15
|
+
}), "toCoordinates"), K = /* @__PURE__ */ y((e) => {
|
|
16
|
+
if (e) {
|
|
17
|
+
if (e === "+<>") return "bidirectional";
|
|
18
|
+
if (e === "+<") return "backward";
|
|
19
|
+
if (e === "+>") return "forward";
|
|
20
|
+
}
|
|
21
|
+
}, "getFlowFromPort"), Ot = /* @__PURE__ */ y((e) => {
|
|
22
|
+
if (!e?.startsWith("+")) return {};
|
|
23
|
+
const a = /^\+'([^']*)'/.exec(e)?.[1];
|
|
24
|
+
return e.includes("<>") ? {
|
|
25
|
+
flow: "bidirectional",
|
|
26
|
+
label: a
|
|
27
|
+
} : e.includes("<") ? {
|
|
28
|
+
flow: "backward",
|
|
29
|
+
label: a
|
|
30
|
+
} : e.includes(">") ? {
|
|
31
|
+
flow: "forward",
|
|
32
|
+
label: a
|
|
33
|
+
} : { label: a };
|
|
34
|
+
}, "extractFlowFromArrow"), Rt = /* @__PURE__ */ y((e, a) => {
|
|
35
|
+
if (Ft(e, a), e.size && a.setSize(e.size.width, e.size.height), e.evolution) {
|
|
36
|
+
const r = e.evolution.stages.map((n) => n.secondName ? `${n.name.trim()} / ${n.secondName.trim()}` : n.name.trim()), f = e.evolution.stages.filter((n) => n.boundary !== void 0).map((n) => n.boundary);
|
|
37
|
+
a.updateAxes({
|
|
38
|
+
stages: r,
|
|
39
|
+
stageBoundaries: f
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
if (e.anchors.forEach((r) => {
|
|
43
|
+
const f = T(r.visibility, r.evolution, `Anchor "${r.name}"`);
|
|
44
|
+
a.addNode(r.name, r.name, f.x, f.y, "anchor");
|
|
45
|
+
}), e.components.forEach((r) => {
|
|
46
|
+
const f = T(r.visibility, r.evolution, `Component "${r.name}"`), n = r.label ? (r.label.negX ? -1 : 1) * r.label.offsetX : void 0, l = r.label ? (r.label.negY ? -1 : 1) * r.label.offsetY : void 0, u = r.decorator?.strategy;
|
|
47
|
+
a.addNode(r.name, r.name, f.x, f.y, "component", n, l, r.inertia, u);
|
|
48
|
+
}), e.notes.forEach((r) => {
|
|
49
|
+
const f = T(r.visibility, r.evolution, `Note "${r.text}"`);
|
|
50
|
+
a.addNote(r.text, f.x, f.y);
|
|
51
|
+
}), e.pipelines.forEach((r) => {
|
|
52
|
+
const f = a.getNode(r.parent);
|
|
53
|
+
if (!f || typeof f.y != "number") throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);
|
|
54
|
+
const n = f.y;
|
|
55
|
+
a.startPipeline(r.parent), r.components.forEach((l) => {
|
|
56
|
+
const u = `${r.parent}_${l.name}`, S = l.label ? (l.label.negX ? -1 : 1) * l.label.offsetX : void 0, g = l.label ? (l.label.negY ? -1 : 1) * l.label.offsetY : void 0, F = D(l.evolution, `Pipeline component "${l.name}" evolution`);
|
|
57
|
+
a.addNode(u, l.name, F, n, "pipeline-component", S, g), a.addPipelineComponent(r.parent, u);
|
|
58
|
+
});
|
|
59
|
+
}), e.links.forEach((r) => {
|
|
60
|
+
const f = !!r.arrow && (r.arrow.includes("-.->") || r.arrow.includes(".-."));
|
|
61
|
+
let n = K(r.fromPort) ?? K(r.toPort);
|
|
62
|
+
const { flow: l, label: u } = Ot(r.arrow);
|
|
63
|
+
!n && l && (n = l);
|
|
64
|
+
const S = r.linkLabel, g = u ?? S;
|
|
65
|
+
a.addLink(a.resolveNodeId(r.from), a.resolveNodeId(r.to), f, g, n);
|
|
66
|
+
}), e.evolves.forEach((r) => {
|
|
67
|
+
const f = a.getNode(r.component);
|
|
68
|
+
if (f?.y !== void 0) {
|
|
69
|
+
const n = D(r.target, `Evolve target for "${r.component}"`);
|
|
70
|
+
a.addTrend(r.component, n, f.y);
|
|
71
|
+
}
|
|
72
|
+
}), e.annotations.length > 0) {
|
|
73
|
+
const r = e.annotations[0], f = T(r.x, r.y, "Annotations box");
|
|
74
|
+
a.setAnnotationsBox(f.x, f.y);
|
|
75
|
+
}
|
|
76
|
+
e.annotation.forEach((r) => {
|
|
77
|
+
const f = T(r.x, r.y, `Annotation ${r.number}`);
|
|
78
|
+
a.addAnnotation(r.number, [{
|
|
79
|
+
x: f.x,
|
|
80
|
+
y: f.y
|
|
81
|
+
}], r.text);
|
|
82
|
+
}), e.accelerators.forEach((r) => {
|
|
83
|
+
const f = T(r.x, r.y, `Accelerator "${r.name}"`);
|
|
84
|
+
a.addAccelerator(r.name, f.x, f.y);
|
|
85
|
+
}), e.deaccelerators.forEach((r) => {
|
|
86
|
+
const f = T(r.x, r.y, `Deaccelerator "${r.name}"`);
|
|
87
|
+
a.addDeaccelerator(r.name, f.x, f.y);
|
|
88
|
+
});
|
|
89
|
+
}, "populateDb"), Q = {
|
|
90
|
+
parser: { yy: void 0 },
|
|
91
|
+
parse: /* @__PURE__ */ y(async (e) => {
|
|
92
|
+
const a = await Ct("wardley", e);
|
|
93
|
+
J.debug(a);
|
|
94
|
+
const r = Q.parser?.yy;
|
|
95
|
+
if (!r || typeof r.addNode != "function") throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
|
|
96
|
+
Rt(a, r);
|
|
97
|
+
}, "parse")
|
|
98
|
+
}, Wt = class {
|
|
99
|
+
constructor() {
|
|
100
|
+
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 = {};
|
|
101
|
+
}
|
|
102
|
+
static {
|
|
103
|
+
y(this, "WardleyBuilder");
|
|
104
|
+
}
|
|
105
|
+
addNode(e) {
|
|
106
|
+
const a = this.nodes.get(e.id) ?? {
|
|
107
|
+
id: e.id,
|
|
108
|
+
label: e.label
|
|
109
|
+
}, r = {
|
|
110
|
+
...a,
|
|
111
|
+
...e,
|
|
112
|
+
className: e.className ?? a.className,
|
|
113
|
+
labelOffsetX: e.labelOffsetX ?? a.labelOffsetX,
|
|
114
|
+
labelOffsetY: e.labelOffsetY ?? a.labelOffsetY
|
|
115
|
+
};
|
|
116
|
+
this.nodes.set(e.id, r);
|
|
117
|
+
}
|
|
118
|
+
addLink(e) {
|
|
119
|
+
this.links.push(e);
|
|
120
|
+
}
|
|
121
|
+
addTrend(e) {
|
|
122
|
+
this.trends.set(e.nodeId, e);
|
|
123
|
+
}
|
|
124
|
+
startPipeline(e) {
|
|
125
|
+
this.pipelines.set(e, {
|
|
126
|
+
nodeId: e,
|
|
127
|
+
componentIds: []
|
|
128
|
+
});
|
|
129
|
+
const a = this.nodes.get(e);
|
|
130
|
+
a && (a.isPipelineParent = !0);
|
|
131
|
+
}
|
|
132
|
+
addPipelineComponent(e, a) {
|
|
133
|
+
const r = this.pipelines.get(e);
|
|
134
|
+
r && r.componentIds.push(a);
|
|
135
|
+
const f = this.nodes.get(a);
|
|
136
|
+
f && (f.inPipeline = !0);
|
|
137
|
+
}
|
|
138
|
+
addAnnotation(e) {
|
|
139
|
+
this.annotations.push(e);
|
|
140
|
+
}
|
|
141
|
+
addNote(e) {
|
|
142
|
+
this.notes.push(e);
|
|
143
|
+
}
|
|
144
|
+
addAccelerator(e) {
|
|
145
|
+
this.accelerators.push(e);
|
|
146
|
+
}
|
|
147
|
+
addDeaccelerator(e) {
|
|
148
|
+
this.deaccelerators.push(e);
|
|
149
|
+
}
|
|
150
|
+
setAnnotationsBox(e, a) {
|
|
151
|
+
this.annotationsBox = {
|
|
152
|
+
x: e,
|
|
153
|
+
y: a
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
setAxes(e) {
|
|
157
|
+
this.axes = {
|
|
158
|
+
...this.axes,
|
|
159
|
+
...e
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
setSize(e, a) {
|
|
163
|
+
this.size = {
|
|
164
|
+
width: e,
|
|
165
|
+
height: a
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
getNode(e) {
|
|
169
|
+
return this.nodes.get(e);
|
|
170
|
+
}
|
|
171
|
+
resolveNodeId(e) {
|
|
172
|
+
if (this.nodes.has(e)) return e;
|
|
173
|
+
for (const [a, r] of this.nodes) if (r.label === e) return a;
|
|
174
|
+
return e;
|
|
175
|
+
}
|
|
176
|
+
build() {
|
|
177
|
+
const e = [];
|
|
178
|
+
for (const a of this.nodes.values()) {
|
|
179
|
+
if (typeof a.x != "number" || typeof a.y != "number") throw new Error(`Node "${a.label}" is missing coordinates`);
|
|
180
|
+
e.push(a);
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
nodes: e,
|
|
184
|
+
links: [...this.links],
|
|
185
|
+
trends: [...this.trends.values()],
|
|
186
|
+
pipelines: [...this.pipelines.values()],
|
|
187
|
+
annotations: [...this.annotations],
|
|
188
|
+
notes: [...this.notes],
|
|
189
|
+
accelerators: [...this.accelerators],
|
|
190
|
+
deaccelerators: [...this.deaccelerators],
|
|
191
|
+
annotationsBox: this.annotationsBox,
|
|
192
|
+
axes: { ...this.axes },
|
|
193
|
+
size: this.size
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
clear() {
|
|
197
|
+
this.nodes.clear(), this.links = [], this.trends.clear(), this.pipelines.clear(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.annotationsBox = void 0, this.axes = {}, this.size = void 0;
|
|
198
|
+
}
|
|
199
|
+
}, k = new Wt();
|
|
200
|
+
function tt() {
|
|
201
|
+
return j()["wardley-beta"];
|
|
202
|
+
}
|
|
203
|
+
y(tt, "getConfig");
|
|
204
|
+
function et(e, a, r, f, n, l, u, S, g) {
|
|
205
|
+
k.addNode({
|
|
206
|
+
id: e,
|
|
207
|
+
label: a,
|
|
208
|
+
x: r,
|
|
209
|
+
y: f,
|
|
210
|
+
className: n,
|
|
211
|
+
labelOffsetX: l,
|
|
212
|
+
labelOffsetY: u,
|
|
213
|
+
inertia: S,
|
|
214
|
+
sourceStrategy: g
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
y(et, "addNode");
|
|
218
|
+
function at(e, a, r = !1, f, n) {
|
|
219
|
+
k.addLink({
|
|
220
|
+
source: e,
|
|
221
|
+
target: a,
|
|
222
|
+
dashed: r,
|
|
223
|
+
label: f,
|
|
224
|
+
flow: n
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
y(at, "addLink");
|
|
228
|
+
function rt(e, a, r) {
|
|
229
|
+
k.addTrend({
|
|
230
|
+
nodeId: e,
|
|
231
|
+
targetX: a,
|
|
232
|
+
targetY: r
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
y(rt, "addTrend");
|
|
236
|
+
function ot(e, a, r) {
|
|
237
|
+
k.addAnnotation({
|
|
238
|
+
number: e,
|
|
239
|
+
coordinates: a,
|
|
240
|
+
text: r
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
y(ot, "addAnnotation");
|
|
244
|
+
function nt(e, a, r) {
|
|
245
|
+
k.addNote({
|
|
246
|
+
text: e,
|
|
247
|
+
x: a,
|
|
248
|
+
y: r
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
y(nt, "addNote");
|
|
252
|
+
function st(e, a, r) {
|
|
253
|
+
k.addAccelerator({
|
|
254
|
+
name: e,
|
|
255
|
+
x: a,
|
|
256
|
+
y: r
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
y(st, "addAccelerator");
|
|
260
|
+
function it(e, a, r) {
|
|
261
|
+
k.addDeaccelerator({
|
|
262
|
+
name: e,
|
|
263
|
+
x: a,
|
|
264
|
+
y: r
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
y(it, "addDeaccelerator");
|
|
268
|
+
function lt(e, a) {
|
|
269
|
+
k.setAnnotationsBox(e, a);
|
|
270
|
+
}
|
|
271
|
+
y(lt, "setAnnotationsBox");
|
|
272
|
+
function dt(e, a) {
|
|
273
|
+
k.setSize(e, a);
|
|
274
|
+
}
|
|
275
|
+
y(dt, "setSize");
|
|
276
|
+
function ct(e) {
|
|
277
|
+
k.startPipeline(e);
|
|
278
|
+
}
|
|
279
|
+
y(ct, "startPipeline");
|
|
280
|
+
function pt(e, a) {
|
|
281
|
+
k.addPipelineComponent(e, a);
|
|
282
|
+
}
|
|
283
|
+
y(pt, "addPipelineComponent");
|
|
284
|
+
function xt(e) {
|
|
285
|
+
k.setAxes(e);
|
|
286
|
+
}
|
|
287
|
+
y(xt, "updateAxes");
|
|
288
|
+
function ft(e) {
|
|
289
|
+
return k.getNode(e);
|
|
290
|
+
}
|
|
291
|
+
y(ft, "getNode");
|
|
292
|
+
function ht(e) {
|
|
293
|
+
return k.resolveNodeId(e);
|
|
294
|
+
}
|
|
295
|
+
y(ht, "resolveNodeId");
|
|
296
|
+
function gt() {
|
|
297
|
+
return k.build();
|
|
298
|
+
}
|
|
299
|
+
y(gt, "getWardleyData");
|
|
300
|
+
function yt() {
|
|
301
|
+
k.clear(), Tt();
|
|
302
|
+
}
|
|
303
|
+
y(yt, "clear");
|
|
304
|
+
var Dt = {
|
|
305
|
+
getConfig: tt,
|
|
306
|
+
addNode: et,
|
|
307
|
+
addLink: at,
|
|
308
|
+
addTrend: rt,
|
|
309
|
+
addAnnotation: ot,
|
|
310
|
+
addNote: nt,
|
|
311
|
+
addAccelerator: st,
|
|
312
|
+
addDeaccelerator: it,
|
|
313
|
+
setAnnotationsBox: lt,
|
|
314
|
+
setSize: dt,
|
|
315
|
+
startPipeline: ct,
|
|
316
|
+
addPipelineComponent: pt,
|
|
317
|
+
updateAxes: xt,
|
|
318
|
+
getNode: ft,
|
|
319
|
+
resolveNodeId: ht,
|
|
320
|
+
getWardleyData: gt,
|
|
321
|
+
clear: yt,
|
|
322
|
+
setAccTitle: Lt,
|
|
323
|
+
getAccTitle: It,
|
|
324
|
+
setDiagramTitle: zt,
|
|
325
|
+
getDiagramTitle: Yt,
|
|
326
|
+
getAccDescription: Xt,
|
|
327
|
+
setAccDescription: Nt
|
|
328
|
+
}, Gt = [
|
|
329
|
+
"Genesis",
|
|
330
|
+
"Custom Built",
|
|
331
|
+
"Product",
|
|
332
|
+
"Commodity"
|
|
333
|
+
], Ht = /* @__PURE__ */ y(() => {
|
|
334
|
+
const { themeVariables: e } = j();
|
|
335
|
+
return {
|
|
336
|
+
backgroundColor: e.wardley?.backgroundColor ?? e.background ?? "#fff",
|
|
337
|
+
axisColor: e.wardley?.axisColor ?? "#000",
|
|
338
|
+
axisTextColor: e.wardley?.axisTextColor ?? e.primaryTextColor ?? "#222",
|
|
339
|
+
gridColor: e.wardley?.gridColor ?? "rgba(100, 100, 100, 0.2)",
|
|
340
|
+
componentFill: e.wardley?.componentFill ?? "#fff",
|
|
341
|
+
componentStroke: e.wardley?.componentStroke ?? "#000",
|
|
342
|
+
componentLabelColor: e.wardley?.componentLabelColor ?? e.primaryTextColor ?? "#222",
|
|
343
|
+
linkStroke: e.wardley?.linkStroke ?? "#000",
|
|
344
|
+
evolutionStroke: e.wardley?.evolutionStroke ?? "#dc3545",
|
|
345
|
+
annotationStroke: e.wardley?.annotationStroke ?? "#000",
|
|
346
|
+
annotationTextColor: e.wardley?.annotationTextColor ?? e.primaryTextColor ?? "#222",
|
|
347
|
+
annotationFill: e.wardley?.annotationFill ?? e.background ?? "#fff"
|
|
348
|
+
};
|
|
349
|
+
}, "getTheme"), qt = /* @__PURE__ */ y(() => {
|
|
350
|
+
const e = j()["wardley-beta"];
|
|
351
|
+
return {
|
|
352
|
+
width: e?.width ?? 900,
|
|
353
|
+
height: e?.height ?? 600,
|
|
354
|
+
padding: e?.padding ?? 48,
|
|
355
|
+
nodeRadius: e?.nodeRadius ?? 6,
|
|
356
|
+
nodeLabelOffset: e?.nodeLabelOffset ?? 8,
|
|
357
|
+
axisFontSize: e?.axisFontSize ?? 12,
|
|
358
|
+
labelFontSize: e?.labelFontSize ?? 10,
|
|
359
|
+
showGrid: e?.showGrid ?? !1,
|
|
360
|
+
useMaxWidth: e?.useMaxWidth ?? !0
|
|
361
|
+
};
|
|
362
|
+
}, "getConfigValues"), Qt = {
|
|
363
|
+
parser: Q,
|
|
364
|
+
db: Dt,
|
|
365
|
+
renderer: { draw: /* @__PURE__ */ y((e, a, r, f) => {
|
|
366
|
+
J.debug(`Rendering Wardley map
|
|
367
|
+
` + e);
|
|
368
|
+
const n = qt(), l = Ht(), u = n.nodeRadius * 1.6, S = f.db, g = S.getWardleyData(), F = S.getDiagramTitle(), C = g.size?.width ?? n.width, b = g.size?.height ?? n.height, X = Bt(a);
|
|
369
|
+
X.selectAll("*").remove(), Et(X, b, C, n.useMaxWidth), X.attr("viewBox", `0 0 ${C} ${b}`);
|
|
370
|
+
const P = X.append("g").attr("class", "wardley-map"), G = X.append("defs");
|
|
371
|
+
G.append("marker").attr("id", `arrow-${a}`).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", l.evolutionStroke).attr("stroke", "none"), G.append("marker").attr("id", `link-arrow-end-${a}`).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", l.linkStroke).attr("stroke", "none"), G.append("marker").attr("id", `link-arrow-start-${a}`).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", l.linkStroke).attr("stroke", "none"), P.append("rect").attr("class", "wardley-background").attr("width", C).attr("height", b).attr("fill", l.backgroundColor);
|
|
372
|
+
const Y = C - n.padding * 2, I = b - n.padding * 2;
|
|
373
|
+
F && P.append("text").attr("class", "wardley-title").attr("x", C / 2).attr("y", n.padding / 2).attr("fill", l.axisTextColor).attr("font-size", n.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(F);
|
|
374
|
+
const N = /* @__PURE__ */ y((t) => n.padding + t / 100 * Y, "projectX"), z = /* @__PURE__ */ y((t) => b - n.padding - t / 100 * I, "projectY"), O = P.append("g").attr("class", "wardley-axes");
|
|
375
|
+
O.append("line").attr("x1", n.padding).attr("x2", C - n.padding).attr("y1", b - n.padding).attr("y2", b - n.padding).attr("stroke", l.axisColor).attr("stroke-width", 1), O.append("line").attr("x1", n.padding).attr("x2", n.padding).attr("y1", n.padding).attr("y2", b - n.padding).attr("stroke", l.axisColor).attr("stroke-width", 1);
|
|
376
|
+
const ut = g.axes.xLabel ?? "Evolution", wt = g.axes.yLabel ?? "Visibility";
|
|
377
|
+
O.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", n.padding + Y / 2).attr("y", b - n.padding / 4).attr("fill", l.axisTextColor).attr("font-size", n.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").text(ut), O.append("text").attr("class", "wardley-axis-label wardley-axis-label-y").attr("x", n.padding / 3).attr("y", n.padding + I / 2).attr("fill", l.axisTextColor).attr("font-size", n.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr("transform", `rotate(-90 ${n.padding / 3} ${n.padding + I / 2})`).text(wt);
|
|
378
|
+
const B = g.axes.stages && g.axes.stages.length > 0 ? g.axes.stages : Gt;
|
|
379
|
+
if (B.length > 0) {
|
|
380
|
+
const t = P.append("g").attr("class", "wardley-stages"), i = g.axes.stageBoundaries, o = [];
|
|
381
|
+
if (i && i.length === B.length) {
|
|
382
|
+
let s = 0;
|
|
383
|
+
i.forEach((d) => {
|
|
384
|
+
o.push({
|
|
385
|
+
start: s,
|
|
386
|
+
end: d
|
|
387
|
+
}), s = d;
|
|
388
|
+
});
|
|
389
|
+
} else {
|
|
390
|
+
const s = 1 / B.length;
|
|
391
|
+
B.forEach((d, c) => {
|
|
392
|
+
o.push({
|
|
393
|
+
start: c * s,
|
|
394
|
+
end: (c + 1) * s
|
|
395
|
+
});
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
B.forEach((s, d) => {
|
|
399
|
+
const c = o[d], h = n.padding + c.start * Y, x = (h + (n.padding + c.end * Y)) / 2;
|
|
400
|
+
d > 0 && t.append("line").attr("x1", h).attr("x2", h).attr("y1", n.padding).attr("y2", b - n.padding).attr("stroke", "#000").attr("stroke-width", 1).attr("stroke-dasharray", "5 5").attr("opacity", 0.8), t.append("text").attr("class", "wardley-stage-label").attr("x", x).attr("y", b - n.padding / 1.5).attr("fill", l.axisTextColor).attr("font-size", n.axisFontSize - 2).attr("text-anchor", "middle").text(s);
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
if (n.showGrid) {
|
|
404
|
+
const t = P.append("g").attr("class", "wardley-grid");
|
|
405
|
+
for (let i = 1; i < 4; i++) {
|
|
406
|
+
const o = i / 4, s = n.padding + Y * o;
|
|
407
|
+
t.append("line").attr("x1", s).attr("x2", s).attr("y1", n.padding).attr("y2", b - n.padding).attr("stroke", l.gridColor).attr("stroke-dasharray", "2 6"), t.append("line").attr("x1", n.padding).attr("x2", C - n.padding).attr("y1", b - n.padding - I * o).attr("y2", b - n.padding - I * o).attr("stroke", l.gridColor).attr("stroke-dasharray", "2 6");
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
const p = /* @__PURE__ */ new Map();
|
|
411
|
+
if (g.nodes.forEach((t) => {
|
|
412
|
+
p.set(t.id, {
|
|
413
|
+
x: N(t.x),
|
|
414
|
+
y: z(t.y),
|
|
415
|
+
node: t
|
|
416
|
+
});
|
|
417
|
+
}), g.pipelines.length > 0) {
|
|
418
|
+
const t = P.append("g").attr("class", "wardley-pipelines"), i = P.append("g").attr("class", "wardley-pipeline-links");
|
|
419
|
+
g.pipelines.forEach((o) => {
|
|
420
|
+
if (o.componentIds.length === 0) return;
|
|
421
|
+
const s = o.componentIds.map((x) => ({
|
|
422
|
+
id: x,
|
|
423
|
+
pos: p.get(x),
|
|
424
|
+
node: g.nodes.find((w) => w.id === x)
|
|
425
|
+
})).filter((x) => x.pos && x.node).sort((x, w) => x.node.x - w.node.x);
|
|
426
|
+
for (let x = 0; x < s.length - 1; x++) {
|
|
427
|
+
const w = s[x], m = s[x + 1];
|
|
428
|
+
i.append("line").attr("class", "wardley-pipeline-evolution-link").attr("x1", w.pos.x).attr("y1", w.pos.y).attr("x2", m.pos.x).attr("y2", m.pos.y).attr("stroke", l.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4");
|
|
429
|
+
}
|
|
430
|
+
let d = 1 / 0, c = -1 / 0, h = 0;
|
|
431
|
+
if (o.componentIds.forEach((x) => {
|
|
432
|
+
const w = p.get(x);
|
|
433
|
+
w && (d = Math.min(d, w.x), c = Math.max(c, w.x), h = w.y);
|
|
434
|
+
}), d !== 1 / 0 && c !== -1 / 0) {
|
|
435
|
+
const w = n.nodeRadius * 4, m = h - w / 2, v = p.get(o.nodeId);
|
|
436
|
+
v && (v.x = (d + c) / 2, v.y = m - u / 6), t.append("rect").attr("class", "wardley-pipeline-box").attr("x", d - 15).attr("y", m).attr("width", c - d + 30).attr("height", w).attr("fill", "none").attr("stroke", l.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
const V = P.append("g").attr("class", "wardley-links"), _ = /* @__PURE__ */ new Map();
|
|
441
|
+
g.pipelines.forEach((t) => {
|
|
442
|
+
_.set(t.nodeId, new Set(t.componentIds));
|
|
443
|
+
});
|
|
444
|
+
const U = g.links.filter((t) => !(!p.has(t.source) || !p.has(t.target) || _.get(t.target)?.has(t.source)));
|
|
445
|
+
V.selectAll("line").data(U).enter().append("line").attr("class", (t) => `wardley-link${t.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (t) => {
|
|
446
|
+
const i = p.get(t.source), o = p.get(t.target), s = g.nodes.find((x) => x.id === t.source).isPipelineParent ? u / Math.sqrt(2) : n.nodeRadius, d = o.x - i.x, c = o.y - i.y, h = Math.sqrt(d * d + c * c);
|
|
447
|
+
return i.x + d / h * s;
|
|
448
|
+
}).attr("y1", (t) => {
|
|
449
|
+
const i = p.get(t.source), o = p.get(t.target), s = g.nodes.find((x) => x.id === t.source).isPipelineParent ? u / Math.sqrt(2) : n.nodeRadius, d = o.x - i.x, c = o.y - i.y, h = Math.sqrt(d * d + c * c);
|
|
450
|
+
return i.y + c / h * s;
|
|
451
|
+
}).attr("x2", (t) => {
|
|
452
|
+
const i = p.get(t.source), o = p.get(t.target), s = g.nodes.find((x) => x.id === t.target).isPipelineParent ? u / Math.sqrt(2) : n.nodeRadius, d = i.x - o.x, c = i.y - o.y, h = Math.sqrt(d * d + c * c);
|
|
453
|
+
return o.x + d / h * s;
|
|
454
|
+
}).attr("y2", (t) => {
|
|
455
|
+
const i = p.get(t.source), o = p.get(t.target), s = g.nodes.find((x) => x.id === t.target).isPipelineParent ? u / Math.sqrt(2) : n.nodeRadius, d = i.x - o.x, c = i.y - o.y, h = Math.sqrt(d * d + c * c);
|
|
456
|
+
return o.y + c / h * s;
|
|
457
|
+
}).attr("stroke", l.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", (t) => t.dashed ? "6 6" : null).attr("marker-end", (t) => t.flow === "forward" || t.flow === "bidirectional" ? `url(#link-arrow-end-${a})` : null).attr("marker-start", (t) => t.flow === "backward" || t.flow === "bidirectional" ? `url(#link-arrow-start-${a})` : null), V.selectAll("text").data(U.filter((t) => t.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (t) => {
|
|
458
|
+
const i = p.get(t.source), o = p.get(t.target), s = (i.x + o.x) / 2, d = o.y - i.y, c = o.x - i.x;
|
|
459
|
+
return s + d / Math.sqrt(c * c + d * d) * 8;
|
|
460
|
+
}).attr("y", (t) => {
|
|
461
|
+
const i = p.get(t.source), o = p.get(t.target), s = (i.y + o.y) / 2, d = o.x - i.x, c = o.y - i.y, h = Math.sqrt(d * d + c * c);
|
|
462
|
+
return s + -d / h * 8;
|
|
463
|
+
}).attr("fill", l.axisTextColor).attr("font-size", n.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (t) => {
|
|
464
|
+
const i = p.get(t.source), o = p.get(t.target), s = (i.x + o.x) / 2, d = (i.y + o.y) / 2, c = o.x - i.x, h = o.y - i.y, x = Math.sqrt(c * c + h * h), w = 8, m = h / x, v = -c / x, A = s + m * w, R = d + v * w;
|
|
465
|
+
let E = Math.atan2(h, c) * 180 / Math.PI;
|
|
466
|
+
return (E > 90 || E < -90) && (E += 180), `rotate(${E} ${A} ${R})`;
|
|
467
|
+
}).text((t) => t.label);
|
|
468
|
+
const mt = P.append("g").attr("class", "wardley-trends"), kt = g.trends.map((t) => {
|
|
469
|
+
const i = p.get(t.nodeId);
|
|
470
|
+
if (!i) return null;
|
|
471
|
+
const o = N(t.targetX), s = z(t.targetY), d = o - i.x, c = s - i.y, h = Math.sqrt(d * d + c * c), x = n.nodeRadius + 2;
|
|
472
|
+
return {
|
|
473
|
+
origin: i,
|
|
474
|
+
targetX: o,
|
|
475
|
+
targetY: s,
|
|
476
|
+
adjustedX2: h > x ? o - d / h * x : o,
|
|
477
|
+
adjustedY2: h > x ? s - c / h * x : s
|
|
478
|
+
};
|
|
479
|
+
}).filter((t) => t !== null);
|
|
480
|
+
mt.selectAll("line").data(kt).enter().append("line").attr("class", "wardley-trend").attr("x1", (t) => t.origin.x).attr("y1", (t) => t.origin.y).attr("x2", (t) => t.adjustedX2).attr("y2", (t) => t.adjustedY2).attr("stroke", l.evolutionStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4").attr("marker-end", `url(#arrow-${a})`);
|
|
481
|
+
const M = P.append("g").attr("class", "wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class", (t) => ["wardley-node", t.className ? `wardley-node--${t.className}` : ""].filter(Boolean).join(" "));
|
|
482
|
+
M.filter((t) => t.sourceStrategy === "outsource").append("circle").attr("class", "wardley-outsource-overlay").attr("cx", (t) => p.get(t.id).x).attr("cy", (t) => p.get(t.id).y).attr("r", n.nodeRadius * 2).attr("fill", "#666").attr("stroke", l.componentStroke).attr("stroke-width", 1), M.filter((t) => t.sourceStrategy === "buy").append("circle").attr("class", "wardley-buy-overlay").attr("cx", (t) => p.get(t.id).x).attr("cy", (t) => p.get(t.id).y).attr("r", n.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", l.componentStroke).attr("stroke-width", 1), M.filter((t) => t.sourceStrategy === "build").append("circle").attr("class", "wardley-build-overlay").attr("cx", (t) => p.get(t.id).x).attr("cy", (t) => p.get(t.id).y).attr("r", n.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1);
|
|
483
|
+
const L = M.filter((t) => t.sourceStrategy === "market");
|
|
484
|
+
L.append("circle").attr("class", "wardley-market-overlay").attr("cx", (t) => p.get(t.id).x).attr("cy", (t) => p.get(t.id).y).attr("r", n.nodeRadius * 2).attr("fill", "white").attr("stroke", l.componentStroke).attr("stroke-width", 1), M.filter((t) => !t.isPipelineParent && t.sourceStrategy !== "market" && t.className !== "anchor").append("circle").attr("cx", (t) => p.get(t.id).x).attr("cy", (t) => p.get(t.id).y).attr("r", n.nodeRadius).attr("fill", l.componentFill).attr("stroke", l.componentStroke).attr("stroke-width", 1);
|
|
485
|
+
const H = n.nodeRadius * 0.7, $ = n.nodeRadius * 1.2;
|
|
486
|
+
if (L.append("line").attr("class", "wardley-market-line").attr("x1", (t) => p.get(t.id).x).attr("y1", (t) => p.get(t.id).y - $).attr("x2", (t) => p.get(t.id).x - $ * Math.cos(Math.PI / 6)).attr("y2", (t) => p.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("stroke", l.componentStroke).attr("stroke-width", 1), L.append("line").attr("class", "wardley-market-line").attr("x1", (t) => p.get(t.id).x - $ * Math.cos(Math.PI / 6)).attr("y1", (t) => p.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("x2", (t) => p.get(t.id).x + $ * Math.cos(Math.PI / 6)).attr("y2", (t) => p.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("stroke", l.componentStroke).attr("stroke-width", 1), L.append("line").attr("class", "wardley-market-line").attr("x1", (t) => p.get(t.id).x + $ * Math.cos(Math.PI / 6)).attr("y1", (t) => p.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("x2", (t) => p.get(t.id).x).attr("y2", (t) => p.get(t.id).y - $).attr("stroke", l.componentStroke).attr("stroke-width", 1), L.append("circle").attr("class", "wardley-market-dot").attr("cx", (t) => p.get(t.id).x).attr("cy", (t) => p.get(t.id).y - $).attr("r", H).attr("fill", "white").attr("stroke", l.componentStroke).attr("stroke-width", 2), L.append("circle").attr("class", "wardley-market-dot").attr("cx", (t) => p.get(t.id).x - $ * Math.cos(Math.PI / 6)).attr("cy", (t) => p.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("r", H).attr("fill", "white").attr("stroke", l.componentStroke).attr("stroke-width", 2), L.append("circle").attr("class", "wardley-market-dot").attr("cx", (t) => p.get(t.id).x + $ * Math.cos(Math.PI / 6)).attr("cy", (t) => p.get(t.id).y + $ * Math.sin(Math.PI / 6)).attr("r", H).attr("fill", "white").attr("stroke", l.componentStroke).attr("stroke-width", 2), M.filter((t) => t.isPipelineParent === !0).append("rect").attr("x", (t) => p.get(t.id).x - u / 2).attr("y", (t) => p.get(t.id).y - u / 2).attr("width", u).attr("height", u).attr("fill", l.componentFill).attr("stroke", l.componentStroke).attr("stroke-width", 1), M.filter((t) => t.inertia === !0).append("line").attr("class", "wardley-inertia").attr("x1", (t) => {
|
|
487
|
+
const i = p.get(t.id);
|
|
488
|
+
let o = t.isPipelineParent ? u / 2 + 15 : n.nodeRadius + 15;
|
|
489
|
+
return t.sourceStrategy && (o += n.nodeRadius + 10), i.x + o;
|
|
490
|
+
}).attr("y1", (t) => {
|
|
491
|
+
const i = p.get(t.id), o = t.isPipelineParent ? u : n.nodeRadius * 2;
|
|
492
|
+
return i.y - o / 2;
|
|
493
|
+
}).attr("x2", (t) => {
|
|
494
|
+
const i = p.get(t.id);
|
|
495
|
+
let o = t.isPipelineParent ? u / 2 + 15 : n.nodeRadius + 15;
|
|
496
|
+
return t.sourceStrategy && (o += n.nodeRadius + 10), i.x + o;
|
|
497
|
+
}).attr("y2", (t) => {
|
|
498
|
+
const i = p.get(t.id), o = t.isPipelineParent ? u : n.nodeRadius * 2;
|
|
499
|
+
return i.y + o / 2;
|
|
500
|
+
}).attr("stroke", l.componentStroke).attr("stroke-width", 6), M.append("text").attr("x", (t) => {
|
|
501
|
+
const i = p.get(t.id);
|
|
502
|
+
if (t.className === "anchor") return t.labelOffsetX !== void 0 ? i.x + t.labelOffsetX : i.x;
|
|
503
|
+
let o = n.nodeLabelOffset;
|
|
504
|
+
t.sourceStrategy && t.labelOffsetX === void 0 && (o += 10);
|
|
505
|
+
const s = t.labelOffsetX ?? o;
|
|
506
|
+
return i.x + s;
|
|
507
|
+
}).attr("y", (t) => {
|
|
508
|
+
const i = p.get(t.id);
|
|
509
|
+
if (t.className === "anchor") return t.labelOffsetY !== void 0 ? i.y + t.labelOffsetY : i.y - 3;
|
|
510
|
+
let o = -n.nodeLabelOffset;
|
|
511
|
+
t.sourceStrategy && t.labelOffsetY === void 0 && (o -= 10);
|
|
512
|
+
const s = t.labelOffsetY ?? o;
|
|
513
|
+
return i.y + s;
|
|
514
|
+
}).attr("class", "wardley-node-label").attr("fill", (t) => t.className === "evolved" ? l.evolutionStroke : t.className === "anchor" ? "#000" : l.componentLabelColor).attr("font-size", n.labelFontSize).attr("font-weight", (t) => t.className === "anchor" ? "bold" : "normal").attr("text-anchor", (t) => t.className === "anchor" ? "middle" : "start").attr("dominant-baseline", (t) => t.className === "anchor" ? "middle" : "auto").text((t) => t.label), g.annotations.length > 0) {
|
|
515
|
+
const t = P.append("g").attr("class", "wardley-annotations");
|
|
516
|
+
if (g.annotations.forEach((i) => {
|
|
517
|
+
const o = i.coordinates.map((s) => ({
|
|
518
|
+
x: N(s.x),
|
|
519
|
+
y: z(s.y)
|
|
520
|
+
}));
|
|
521
|
+
if (o.length > 1) for (let s = 0; s < o.length - 1; s++) t.append("line").attr("class", "wardley-annotation-line").attr("x1", o[s].x).attr("y1", o[s].y).attr("x2", o[s + 1].x).attr("y2", o[s + 1].y).attr("stroke", l.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4");
|
|
522
|
+
o.forEach((s) => {
|
|
523
|
+
const d = t.append("g").attr("class", "wardley-annotation");
|
|
524
|
+
d.append("circle").attr("cx", s.x).attr("cy", s.y).attr("r", 10).attr("fill", "white").attr("stroke", l.axisColor).attr("stroke-width", 1.5), d.append("text").attr("x", s.x).attr("y", s.y).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", 10).attr("fill", l.axisTextColor).attr("font-weight", "bold").text(i.number);
|
|
525
|
+
});
|
|
526
|
+
}), g.annotationsBox) {
|
|
527
|
+
let i = N(g.annotationsBox.x), o = z(g.annotationsBox.y);
|
|
528
|
+
const s = 10, d = 16, c = 11, h = t.append("g").attr("class", "wardley-annotations-box"), x = [...g.annotations].filter((m) => m.text).sort((m, v) => m.number - v.number), w = [];
|
|
529
|
+
if (x.forEach((m, v) => {
|
|
530
|
+
const A = h.append("text").attr("x", i + s).attr("y", o + s + (v + 1) * d).attr("font-size", c).attr("fill", l.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${m.number}. ${m.text}`);
|
|
531
|
+
w.push(A);
|
|
532
|
+
}), w.length > 0) {
|
|
533
|
+
let m = 0, v = 0;
|
|
534
|
+
w.forEach((q) => {
|
|
535
|
+
const W = q.node(), vt = W.getComputedTextLength();
|
|
536
|
+
m = Math.max(m, vt);
|
|
537
|
+
const St = W.getBBox();
|
|
538
|
+
v = Math.max(v, St.height);
|
|
539
|
+
});
|
|
540
|
+
const A = m + s * 2 + 105, R = x.length * d + s * 2 + v / 2, E = n.padding, bt = C - n.padding - A, $t = n.padding, Pt = b - n.padding - R;
|
|
541
|
+
i = Math.max(E, Math.min(i, bt)), o = Math.max($t, Math.min(o, Pt)), w.forEach((q, W) => {
|
|
542
|
+
q.attr("x", i + s).attr("y", o + s + (W + 1) * d);
|
|
543
|
+
}), h.insert("rect", "text").attr("x", i).attr("y", o).attr("width", A).attr("height", R).attr("fill", "white").attr("stroke", l.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
if (g.notes.length > 0) {
|
|
548
|
+
const t = P.append("g").attr("class", "wardley-notes");
|
|
549
|
+
g.notes.forEach((i) => {
|
|
550
|
+
const o = N(i.x), s = z(i.y);
|
|
551
|
+
t.append("text").attr("x", o).attr("y", s).attr("text-anchor", "start").attr("font-size", 11).attr("fill", l.axisTextColor).attr("font-weight", "bold").text(i.text);
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
if (g.accelerators.length > 0) {
|
|
555
|
+
const t = P.append("g").attr("class", "wardley-accelerators");
|
|
556
|
+
g.accelerators.forEach((i) => {
|
|
557
|
+
const o = N(i.x), s = z(i.y), d = 60, c = 30, h = 20, x = `
|
|
558
|
+
M ${o} ${s - c / 2}
|
|
559
|
+
L ${o + d - h} ${s - c / 2}
|
|
560
|
+
L ${o + d - h} ${s - c / 2 - 8}
|
|
561
|
+
L ${o + d} ${s}
|
|
562
|
+
L ${o + d - h} ${s + c / 2 + 8}
|
|
563
|
+
L ${o + d - h} ${s + c / 2}
|
|
564
|
+
L ${o} ${s + c / 2}
|
|
565
|
+
Z
|
|
566
|
+
`;
|
|
567
|
+
t.append("path").attr("d", x).attr("fill", "white").attr("stroke", l.componentStroke).attr("stroke-width", 1), t.append("text").attr("x", o + d / 2).attr("y", s + c / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", l.axisTextColor).attr("font-weight", "bold").text(i.name);
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
if (g.deaccelerators.length > 0) {
|
|
571
|
+
const t = P.append("g").attr("class", "wardley-deaccelerators");
|
|
572
|
+
g.deaccelerators.forEach((i) => {
|
|
573
|
+
const o = N(i.x), s = z(i.y), d = 60, c = 30, h = 20, x = `
|
|
574
|
+
M ${o + d} ${s - c / 2}
|
|
575
|
+
L ${o + h} ${s - c / 2}
|
|
576
|
+
L ${o + h} ${s - c / 2 - 8}
|
|
577
|
+
L ${o} ${s}
|
|
578
|
+
L ${o + h} ${s + c / 2 + 8}
|
|
579
|
+
L ${o + h} ${s + c / 2}
|
|
580
|
+
L ${o + d} ${s + c / 2}
|
|
581
|
+
Z
|
|
582
|
+
`;
|
|
583
|
+
t.append("path").attr("d", x).attr("fill", "white").attr("stroke", l.componentStroke).attr("stroke-width", 1), t.append("text").attr("x", o + d / 2).attr("y", s + c / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", l.axisTextColor).attr("font-weight", "bold").text(i.name);
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
}, "draw") },
|
|
587
|
+
styles: /* @__PURE__ */ y(({ wardley: e } = {}) => {
|
|
588
|
+
const a = Z(Z(Mt(), At().themeVariables).wardley, e);
|
|
589
|
+
return `
|
|
590
|
+
.wardley-background {
|
|
591
|
+
fill: ${a.backgroundColor};
|
|
592
|
+
}
|
|
593
|
+
.wardley-axes line, .wardley-axes path {
|
|
594
|
+
stroke: ${a.axisColor};
|
|
595
|
+
}
|
|
596
|
+
.wardley-axis-label {
|
|
597
|
+
fill: ${a.axisTextColor};
|
|
598
|
+
}
|
|
599
|
+
.wardley-stage-label {
|
|
600
|
+
fill: ${a.axisTextColor};
|
|
601
|
+
}
|
|
602
|
+
.wardley-grid line {
|
|
603
|
+
stroke: ${a.gridColor};
|
|
604
|
+
}
|
|
605
|
+
.wardley-node circle {
|
|
606
|
+
fill: ${a.componentFill};
|
|
607
|
+
stroke: ${a.componentStroke};
|
|
608
|
+
}
|
|
609
|
+
.wardley-node-label {
|
|
610
|
+
fill: ${a.componentLabelColor};
|
|
611
|
+
}
|
|
612
|
+
.wardley-link {
|
|
613
|
+
stroke: ${a.linkStroke};
|
|
614
|
+
}
|
|
615
|
+
.wardley-link--dashed {
|
|
616
|
+
stroke-dasharray: 4 4;
|
|
617
|
+
}
|
|
618
|
+
.wardley-link-label {
|
|
619
|
+
fill: ${a.axisTextColor};
|
|
620
|
+
}
|
|
621
|
+
.wardley-trend line {
|
|
622
|
+
stroke: ${a.evolutionStroke};
|
|
623
|
+
}
|
|
624
|
+
.wardley-annotation-line {
|
|
625
|
+
stroke: ${a.annotationStroke};
|
|
626
|
+
}
|
|
627
|
+
.wardley-annotation circle {
|
|
628
|
+
fill: ${a.annotationFill};
|
|
629
|
+
stroke: ${a.annotationStroke};
|
|
630
|
+
}
|
|
631
|
+
.wardley-annotation text {
|
|
632
|
+
fill: ${a.annotationTextColor};
|
|
633
|
+
}
|
|
634
|
+
.wardley-annotations-box rect {
|
|
635
|
+
fill: ${a.annotationFill};
|
|
636
|
+
stroke: ${a.annotationStroke};
|
|
637
|
+
}
|
|
638
|
+
.wardley-annotations-box text {
|
|
639
|
+
fill: ${a.annotationTextColor};
|
|
640
|
+
}
|
|
641
|
+
.wardley-pipeline-box {
|
|
642
|
+
stroke: ${a.componentStroke};
|
|
643
|
+
}
|
|
644
|
+
.wardley-notes text {
|
|
645
|
+
fill: ${a.axisTextColor};
|
|
646
|
+
}
|
|
647
|
+
`;
|
|
648
|
+
}, "styles")
|
|
649
|
+
};
|
|
650
|
+
export {
|
|
651
|
+
Qt as diagram
|
|
652
|
+
};
|