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 @@
|
|
|
1
|
+
require("./chunk-KEIR6QF5-C4fcHpY0.cjs");const e=require("./mermaid-parser.core-DYumW1vq.cjs");exports.createCynefinServices=e.createCynefinServices;
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { n as ut } from "./mermaid-parser.core-uIDZYuBu.js";
|
|
2
|
+
import { n as i } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
3
|
+
import { m as X } from "./src-DtRLxcYO.js";
|
|
4
|
+
import { D as at, H as ht, K as gt, U as $t, a as bt, b as q, c as wt, f as Ct, v as Dt, w as vt, y as kt } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
5
|
+
import { i as K } from "./chunk-ICXQ74PX-DR8rL-xF.js";
|
|
6
|
+
import { t as At } from "./chunk-VAUOI2AC-izt0o4id.js";
|
|
7
|
+
import { t as Tt } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
|
|
8
|
+
var rt = /* @__PURE__ */ i(() => ({
|
|
9
|
+
domains: /* @__PURE__ */ new Map(),
|
|
10
|
+
transitions: []
|
|
11
|
+
}), "createDefaultData"), _ = rt(), O = {
|
|
12
|
+
getDomains: /* @__PURE__ */ i(() => _.domains, "getDomains"),
|
|
13
|
+
getTransitions: /* @__PURE__ */ i(() => _.transitions, "getTransitions"),
|
|
14
|
+
setDomains: /* @__PURE__ */ i((t) => {
|
|
15
|
+
if (t)
|
|
16
|
+
for (const e of t) {
|
|
17
|
+
const n = e.domain, o = (e.items ?? []).map((c) => ({ label: c.label }));
|
|
18
|
+
_.domains.set(n, {
|
|
19
|
+
name: n,
|
|
20
|
+
items: o
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}, "setDomains"),
|
|
24
|
+
setTransitions: /* @__PURE__ */ i((t) => {
|
|
25
|
+
t && (_.transitions = t.filter((e) => e.from === e.to ? (X.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`), !1) : !0).map((e) => ({
|
|
26
|
+
from: e.from,
|
|
27
|
+
to: e.to,
|
|
28
|
+
label: e.label || void 0
|
|
29
|
+
})));
|
|
30
|
+
}, "setTransitions"),
|
|
31
|
+
getConfig: /* @__PURE__ */ i(() => K({
|
|
32
|
+
...Ct.cynefin,
|
|
33
|
+
...q().cynefin
|
|
34
|
+
}), "getConfig"),
|
|
35
|
+
clear: /* @__PURE__ */ i(() => {
|
|
36
|
+
bt(), _ = rt();
|
|
37
|
+
}, "clear"),
|
|
38
|
+
setAccTitle: $t,
|
|
39
|
+
getAccTitle: kt,
|
|
40
|
+
setDiagramTitle: gt,
|
|
41
|
+
getDiagramTitle: vt,
|
|
42
|
+
getAccDescription: Dt,
|
|
43
|
+
setAccDescription: ht
|
|
44
|
+
}, Bt = /* @__PURE__ */ i((t) => {
|
|
45
|
+
Tt(t, O), O.setDomains(t.domains), O.setTransitions(t.transitions);
|
|
46
|
+
}, "populate"), St = { parse: /* @__PURE__ */ i(async (t) => {
|
|
47
|
+
const e = await ut("cynefin", t);
|
|
48
|
+
X.debug(e), Bt(e);
|
|
49
|
+
}, "parse") };
|
|
50
|
+
function G(t) {
|
|
51
|
+
let e = t + 1831565813 | 0;
|
|
52
|
+
return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
53
|
+
}
|
|
54
|
+
i(G, "seededRandom");
|
|
55
|
+
function it(t) {
|
|
56
|
+
let e = 0;
|
|
57
|
+
for (let n = 0; n < t.length; n++) {
|
|
58
|
+
const o = t.charCodeAt(n);
|
|
59
|
+
e = (e << 5) - e + o, e |= 0;
|
|
60
|
+
}
|
|
61
|
+
return e;
|
|
62
|
+
}
|
|
63
|
+
i(it, "hashString");
|
|
64
|
+
function st(t, e) {
|
|
65
|
+
return typeof t == "number" && Number.isFinite(t) && t !== 0 ? t : it(e);
|
|
66
|
+
}
|
|
67
|
+
i(st, "resolveSeed");
|
|
68
|
+
function ct(t, e, n, o) {
|
|
69
|
+
const c = t / 2, m = o ?? t * 0.015, D = 7, P = e / D, d = [];
|
|
70
|
+
for (let a = 0; a <= D; a++) {
|
|
71
|
+
const p = G(n + a * 17) * m * 2 - m;
|
|
72
|
+
d.push({
|
|
73
|
+
x: c + p,
|
|
74
|
+
y: a * P
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
let v = `M${d[0].x},${d[0].y}`;
|
|
78
|
+
for (let a = 0; a < d.length - 1; a++) {
|
|
79
|
+
const p = d[a], s = d[a + 1], f = (p.y + s.y) / 2, b = a % 2 === 0 ? 1 : -1, u = m * 1.5 * b * G(n + a * 31 + 7), I = p.x + u, W = f, R = s.x - u;
|
|
80
|
+
v += ` C${I},${W} ${R},${f} ${s.x},${s.y}`;
|
|
81
|
+
}
|
|
82
|
+
return v;
|
|
83
|
+
}
|
|
84
|
+
i(ct, "generateFoldPath");
|
|
85
|
+
function lt(t, e, n, o) {
|
|
86
|
+
const c = e / 2, m = o ?? e * 0.015, D = 7, P = t / D, d = [];
|
|
87
|
+
for (let a = 0; a <= D; a++) {
|
|
88
|
+
const p = G(n + a * 23) * m * 2 - m;
|
|
89
|
+
d.push({
|
|
90
|
+
x: a * P,
|
|
91
|
+
y: c + p
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
let v = `M${d[0].x},${d[0].y}`;
|
|
95
|
+
for (let a = 0; a < d.length - 1; a++) {
|
|
96
|
+
const p = d[a], s = d[a + 1], f = (p.x + s.x) / 2, b = a % 2 === 0 ? 1 : -1, u = m * 1.5 * b * G(n + a * 37 + 11), I = f, W = p.y + u, R = f, F = s.y - u;
|
|
97
|
+
v += ` C${I},${W} ${R},${F} ${s.x},${s.y}`;
|
|
98
|
+
}
|
|
99
|
+
return v;
|
|
100
|
+
}
|
|
101
|
+
i(lt, "generateHorizontalBoundary");
|
|
102
|
+
function dt(t, e) {
|
|
103
|
+
const n = t / 2, o = e * 0.5, c = e, m = t * 0.03;
|
|
104
|
+
return [
|
|
105
|
+
`M${n},${o}`,
|
|
106
|
+
`C${n + m},${o + (c - o) * 0.2}`,
|
|
107
|
+
`${n - m * 1.5},${o + (c - o) * 0.55}`,
|
|
108
|
+
`${n + m * 0.5},${o + (c - o) * 0.75}`,
|
|
109
|
+
`C${n - m},${o + (c - o) * 0.85}`,
|
|
110
|
+
`${n + m * 0.3},${o + (c - o) * 0.95}`,
|
|
111
|
+
`${n},${c}`
|
|
112
|
+
].join(" ");
|
|
113
|
+
}
|
|
114
|
+
i(dt, "generateCliffPath");
|
|
115
|
+
function ft(t, e, n, o) {
|
|
116
|
+
return [
|
|
117
|
+
`M${t - n},${e}`,
|
|
118
|
+
`A${n},${o} 0 1,1 ${t + n},${e}`,
|
|
119
|
+
`A${n},${o} 0 1,1 ${t - n},${e}`,
|
|
120
|
+
"Z"
|
|
121
|
+
].join(" ");
|
|
122
|
+
}
|
|
123
|
+
i(ft, "generateConfusionPath");
|
|
124
|
+
var ot = {
|
|
125
|
+
complex: {
|
|
126
|
+
model: "Probe → Sense → Respond",
|
|
127
|
+
practice: "Emergent Practices"
|
|
128
|
+
},
|
|
129
|
+
complicated: {
|
|
130
|
+
model: "Sense → Analyse → Respond",
|
|
131
|
+
practice: "Good Practices"
|
|
132
|
+
},
|
|
133
|
+
clear: {
|
|
134
|
+
model: "Sense → Categorise → Respond",
|
|
135
|
+
practice: "Best Practices"
|
|
136
|
+
},
|
|
137
|
+
chaotic: {
|
|
138
|
+
model: "Act → Sense → Respond",
|
|
139
|
+
practice: "Novel Practices"
|
|
140
|
+
},
|
|
141
|
+
confusion: {
|
|
142
|
+
model: "",
|
|
143
|
+
practice: "Disorder"
|
|
144
|
+
}
|
|
145
|
+
}, Mt = /* @__PURE__ */ i((t, e) => {
|
|
146
|
+
const n = t / 2, o = e / 2;
|
|
147
|
+
return {
|
|
148
|
+
complex: {
|
|
149
|
+
cx: n / 2,
|
|
150
|
+
cy: o / 2,
|
|
151
|
+
x: 0,
|
|
152
|
+
y: 0,
|
|
153
|
+
w: n,
|
|
154
|
+
h: o
|
|
155
|
+
},
|
|
156
|
+
complicated: {
|
|
157
|
+
cx: n + n / 2,
|
|
158
|
+
cy: o / 2,
|
|
159
|
+
x: n,
|
|
160
|
+
y: 0,
|
|
161
|
+
w: n,
|
|
162
|
+
h: o
|
|
163
|
+
},
|
|
164
|
+
chaotic: {
|
|
165
|
+
cx: n / 2,
|
|
166
|
+
cy: o + o / 2,
|
|
167
|
+
x: 0,
|
|
168
|
+
y: o,
|
|
169
|
+
w: n,
|
|
170
|
+
h: o
|
|
171
|
+
},
|
|
172
|
+
clear: {
|
|
173
|
+
cx: n + n / 2,
|
|
174
|
+
cy: o + o / 2,
|
|
175
|
+
x: n,
|
|
176
|
+
y: o,
|
|
177
|
+
w: n,
|
|
178
|
+
h: o
|
|
179
|
+
},
|
|
180
|
+
confusion: {
|
|
181
|
+
cx: n,
|
|
182
|
+
cy: o,
|
|
183
|
+
x: n * 0.7,
|
|
184
|
+
y: o * 0.7,
|
|
185
|
+
w: n * 0.6,
|
|
186
|
+
h: o * 0.6
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}, "getDomainLayouts"), zt = /* @__PURE__ */ i(() => K(at(), q().themeVariables).cynefin, "getCynefinDomainColors"), V = 3, Lt = { draw: /* @__PURE__ */ i((t, e, n, o) => {
|
|
190
|
+
const c = o.db, m = c.getDomains(), D = c.getTransitions(), P = c.getDiagramTitle(), d = c.getAccTitle(), v = c.getAccDescription(), a = c.getConfig(), p = zt();
|
|
191
|
+
X.debug("Rendering Cynefin diagram");
|
|
192
|
+
const s = a.width, f = a.height, b = a.padding, u = a.showDomainDescriptions, I = a.boundaryAmplitude, W = s + b * 2, R = f + b * 2, F = {
|
|
193
|
+
complex: p.complexBg,
|
|
194
|
+
complicated: p.complicatedBg,
|
|
195
|
+
clear: p.clearBg,
|
|
196
|
+
chaotic: p.chaoticBg,
|
|
197
|
+
confusion: p.confusionBg
|
|
198
|
+
}, k = At(e);
|
|
199
|
+
wt(k, R, W, a.useMaxWidth ?? !0), k.attr("viewBox", `0 0 ${W} ${R}`), d && k.append("title").text(d), v && k.append("desc").text(v);
|
|
200
|
+
const A = k.append("g").attr("transform", `translate(${b}, ${b})`), H = Mt(s, f), Q = st(a.seed, e), mt = A.append("g").attr("class", "cynefin-backgrounds"), j = [
|
|
201
|
+
"complex",
|
|
202
|
+
"complicated",
|
|
203
|
+
"chaotic",
|
|
204
|
+
"clear"
|
|
205
|
+
];
|
|
206
|
+
for (const l of j) {
|
|
207
|
+
const r = H[l];
|
|
208
|
+
mt.append("rect").attr("class", "cynefinDomain").attr("x", r.x).attr("y", r.y).attr("width", r.w).attr("height", r.h).attr("fill", F[l]).attr("fill-opacity", 0.4).attr("stroke", "none");
|
|
209
|
+
}
|
|
210
|
+
const U = A.append("g").attr("class", "cynefin-boundaries");
|
|
211
|
+
U.append("path").attr("class", "cynefinBoundary").attr("d", ct(s, f, Q, I)).attr("fill", "none"), U.append("path").attr("class", "cynefinBoundary").attr("d", lt(s, f, Q + 100, I)).attr("fill", "none"), U.append("path").attr("class", "cynefinCliff").attr("d", dt(s, f)).attr("fill", "none");
|
|
212
|
+
const pt = s * 0.15, yt = f * 0.15;
|
|
213
|
+
A.append("path").attr("class", "cynefinConfusion").attr("d", ft(s / 2, f / 2, pt, yt)).attr("fill", F.confusion).attr("fill-opacity", 0.5);
|
|
214
|
+
const Z = A.append("g").attr("class", "cynefin-labels");
|
|
215
|
+
for (const l of j) {
|
|
216
|
+
const r = H[l];
|
|
217
|
+
Z.append("text").attr("class", "cynefinDomainLabel").attr("x", r.cx).attr("y", u ? r.cy - 30 : r.cy).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(l.charAt(0).toUpperCase() + l.slice(1));
|
|
218
|
+
}
|
|
219
|
+
if (Z.append("text").attr("class", "cynefinDomainLabel").attr("x", s / 2).attr("y", u ? f / 2 - 10 : f / 2).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text("Confusion"), u) {
|
|
220
|
+
const l = A.append("g").attr("class", "cynefin-subtitles");
|
|
221
|
+
for (const r of j) {
|
|
222
|
+
const x = H[r], y = ot[r];
|
|
223
|
+
l.append("text").attr("class", "cynefinSubtitle").attr("x", x.cx).attr("y", x.cy - 10).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(y.model), l.append("text").attr("class", "cynefinSubtitle").attr("x", x.cx).attr("y", x.cy + 5).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(y.practice);
|
|
224
|
+
}
|
|
225
|
+
l.append("text").attr("class", "cynefinSubtitle").attr("x", s / 2).attr("y", f / 2 + 8).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(ot.confusion.practice);
|
|
226
|
+
}
|
|
227
|
+
const J = A.append("g").attr("class", "cynefin-items"), E = 26, tt = 10;
|
|
228
|
+
for (const l of [
|
|
229
|
+
"complex",
|
|
230
|
+
"complicated",
|
|
231
|
+
"chaotic",
|
|
232
|
+
"clear",
|
|
233
|
+
"confusion"
|
|
234
|
+
]) {
|
|
235
|
+
const r = m.get(l);
|
|
236
|
+
if (!r || r.items.length === 0) continue;
|
|
237
|
+
const x = H[l], y = l === "confusion";
|
|
238
|
+
let M = r.items, z = 0;
|
|
239
|
+
y && r.items.length > V && (z = r.items.length - V, M = r.items.slice(0, V));
|
|
240
|
+
let T;
|
|
241
|
+
if (y) {
|
|
242
|
+
const g = u ? 22 : 14;
|
|
243
|
+
T = x.cy + g;
|
|
244
|
+
} else T = x.cy + (u ? 25 : 15);
|
|
245
|
+
if ([...M].forEach((g, B) => {
|
|
246
|
+
const w = T + B * 30, S = J.append("g"), L = S.append("text").attr("class", "cynefinItemText").attr("x", 0).attr("y", E / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").text(g.label);
|
|
247
|
+
let $ = g.label.length * 7;
|
|
248
|
+
const h = L.node();
|
|
249
|
+
if (h && typeof h.getBBox == "function") {
|
|
250
|
+
const Y = h.getBBox();
|
|
251
|
+
Y.width > 0 && ($ = Y.width);
|
|
252
|
+
}
|
|
253
|
+
const C = $ + tt * 2, N = x.cx - C / 2;
|
|
254
|
+
S.attr("transform", `translate(${N}, ${w})`), S.insert("rect", "text").attr("class", "cynefinItem").attr("x", 0).attr("y", 0).attr("width", C).attr("height", E).attr("rx", 4).attr("ry", 4).attr("fill", F[l]).attr("fill-opacity", 0.95), L.attr("x", C / 2).attr("y", E / 2);
|
|
255
|
+
}), z > 0) {
|
|
256
|
+
const g = T + M.length * 30, B = `+${z} more`, w = J.append("g"), S = w.append("text").attr("class", "cynefinItemText").attr("x", 0).attr("y", E / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").text(B);
|
|
257
|
+
let L = B.length * 7;
|
|
258
|
+
const $ = S.node();
|
|
259
|
+
if ($ && typeof $.getBBox == "function") {
|
|
260
|
+
const N = $.getBBox();
|
|
261
|
+
N.width > 0 && (L = N.width);
|
|
262
|
+
}
|
|
263
|
+
const h = L + tt * 2, C = x.cx - h / 2;
|
|
264
|
+
w.attr("transform", `translate(${C}, ${g})`), w.insert("rect", "text").attr("class", "cynefinItemOverflow").attr("x", 0).attr("y", 0).attr("width", h).attr("height", E).attr("rx", 4).attr("ry", 4).attr("fill", F[l]).attr("fill-opacity", 0.6), S.attr("x", h / 2).attr("y", E / 2);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
if (D.length > 0) {
|
|
268
|
+
const l = k.select("defs").empty() ? k.append("defs") : k.select("defs"), r = `cynefin-arrow-${e}`;
|
|
269
|
+
l.append("marker").attr("id", 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("class", "cynefinArrowHead");
|
|
270
|
+
const x = A.append("g").attr("class", "cynefin-arrows");
|
|
271
|
+
D.forEach((y) => {
|
|
272
|
+
const M = H[y.from], z = H[y.to];
|
|
273
|
+
if (!M || !z) return;
|
|
274
|
+
if (y.from === y.to) {
|
|
275
|
+
X.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
const T = M.cx, g = M.cy, B = z.cx, w = z.cy, S = (T + B) / 2, L = (g + w) / 2, $ = B - T, h = w - g, C = Math.sqrt($ * $ + h * h), N = C * 0.15, Y = -h / C, xt = $ / C, et = S + Y * N, nt = L + xt * N;
|
|
279
|
+
x.append("path").attr("class", "cynefinArrowLine").attr("d", `M${T},${g} Q${et},${nt} ${B},${w}`).attr("fill", "none").attr("marker-end", `url(#${r})`), y.label && x.append("text").attr("class", "cynefinArrowLabel").attr("x", et).attr("y", nt - 6).attr("text-anchor", "middle").attr("dominant-baseline", "auto").text(y.label);
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
P && A.append("text").attr("class", "cynefinTitle").attr("x", s / 2).attr("y", -b / 2).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(P);
|
|
283
|
+
}, "draw") }, Nt = /* @__PURE__ */ i(() => K(at(), q().themeVariables).cynefin, "getCynefinTheme"), _t = {
|
|
284
|
+
parser: St,
|
|
285
|
+
db: O,
|
|
286
|
+
renderer: Lt,
|
|
287
|
+
styles: /* @__PURE__ */ i(() => {
|
|
288
|
+
const t = Nt();
|
|
289
|
+
return `
|
|
290
|
+
.cynefinDomain {
|
|
291
|
+
stroke: none;
|
|
292
|
+
}
|
|
293
|
+
.cynefinDomainLabel {
|
|
294
|
+
font-size: ${t.domainFontSize}px;
|
|
295
|
+
font-weight: bold;
|
|
296
|
+
fill: ${t.labelColor};
|
|
297
|
+
}
|
|
298
|
+
.cynefinSubtitle {
|
|
299
|
+
font-size: ${t.itemFontSize - 1}px;
|
|
300
|
+
fill: ${t.textColor};
|
|
301
|
+
font-style: italic;
|
|
302
|
+
}
|
|
303
|
+
.cynefinItem {
|
|
304
|
+
fill-opacity: 0.95;
|
|
305
|
+
stroke: ${t.boundaryColor};
|
|
306
|
+
stroke-width: 1;
|
|
307
|
+
}
|
|
308
|
+
.cynefinItemText {
|
|
309
|
+
font-size: ${t.itemFontSize}px;
|
|
310
|
+
fill: ${t.textColor};
|
|
311
|
+
}
|
|
312
|
+
.cynefinItemOverflow {
|
|
313
|
+
fill-opacity: 0.6;
|
|
314
|
+
stroke: ${t.boundaryColor};
|
|
315
|
+
stroke-width: 1;
|
|
316
|
+
stroke-dasharray: 3 2;
|
|
317
|
+
}
|
|
318
|
+
.cynefinBoundary {
|
|
319
|
+
stroke: ${t.boundaryColor};
|
|
320
|
+
stroke-width: ${t.boundaryWidth};
|
|
321
|
+
stroke-dasharray: 6 3;
|
|
322
|
+
}
|
|
323
|
+
.cynefinCliff {
|
|
324
|
+
stroke: ${t.cliffColor};
|
|
325
|
+
stroke-width: ${t.cliffWidth};
|
|
326
|
+
}
|
|
327
|
+
.cynefinConfusion {
|
|
328
|
+
stroke: ${t.boundaryColor};
|
|
329
|
+
stroke-width: 1.5;
|
|
330
|
+
stroke-dasharray: 4 2;
|
|
331
|
+
}
|
|
332
|
+
.cynefinArrowLine {
|
|
333
|
+
stroke: ${t.arrowColor};
|
|
334
|
+
stroke-width: ${t.arrowWidth};
|
|
335
|
+
fill: none;
|
|
336
|
+
}
|
|
337
|
+
.cynefinArrowHead {
|
|
338
|
+
fill: ${t.arrowColor};
|
|
339
|
+
stroke: none;
|
|
340
|
+
}
|
|
341
|
+
.cynefinArrowLabel {
|
|
342
|
+
font-size: ${t.itemFontSize - 1}px;
|
|
343
|
+
fill: ${t.textColor};
|
|
344
|
+
}
|
|
345
|
+
.cynefinTitle {
|
|
346
|
+
font-size: ${t.domainFontSize + 2}px;
|
|
347
|
+
font-weight: bold;
|
|
348
|
+
fill: ${t.labelColor};
|
|
349
|
+
}
|
|
350
|
+
`;
|
|
351
|
+
}, "styles")
|
|
352
|
+
};
|
|
353
|
+
export {
|
|
354
|
+
_t as diagram
|
|
355
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const ut=require("./mermaid-parser.core-DYumW1vq.cjs"),i=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),G=require("./src-C9EhKhbk.cjs"),y=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),J=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),gt=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),ht=require("./chunk-JWPE2WC7-D8EnWK1B.cjs");var ot=i.__name(()=>({domains:new Map,transitions:[]}),"createDefaultData"),F=ot(),X={getDomains:i.__name(()=>F.domains,"getDomains"),getTransitions:i.__name(()=>F.transitions,"getTransitions"),setDomains:i.__name(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(s=>({label:s.label}));F.domains.set(n,{name:n,items:a})}},"setDomains"),setTransitions:i.__name(t=>{t&&(F.transitions=t.filter(e=>e.from===e.to?(G.log.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),getConfig:i.__name(()=>J.cleanAndMerge({...y.defaultConfig_default.cynefin,...y.getConfig().cynefin}),"getConfig"),clear:i.__name(()=>{y.clear(),F=ot()},"clear"),setAccTitle:y.setAccTitle,getAccTitle:y.getAccTitle,setDiagramTitle:y.setDiagramTitle,getDiagramTitle:y.getDiagramTitle,getAccDescription:y.getAccDescription,setAccDescription:y.setAccDescription},xt=i.__name(t=>{ht.populateCommonDb(t,X),X.setDomains(t.domains),X.setTransitions(t.transitions)},"populate"),$t={parse:i.__name(async t=>{const e=await ut.parse("cynefin",t);G.log.debug(e),xt(e)},"parse")};function H(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}i.__name(H,"seededRandom");function rt(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}i.__name(rt,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:rt(e)}i.__name(it,"resolveSeed");function ct(t,e,n,a){const s=t/2,m=a??t*.015,D=7,P=e/D,d=[];for(let o=0;o<=D;o++){const p=H(n+o*17)*m*2-m;d.push({x:s+p,y:o*P})}let A=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],c=d[o+1],f=(p.y+c.y)/2,_=o%2===0?1:-1,h=m*1.5*_*H(n+o*31+7),W=p.x+h,I=f,N=c.x-h;A+=` C${W},${I} ${N},${f} ${c.x},${c.y}`}return A}i.__name(ct,"generateFoldPath");function st(t,e,n,a){const s=e/2,m=a??e*.015,D=7,P=t/D,d=[];for(let o=0;o<=D;o++){const p=H(n+o*23)*m*2-m;d.push({x:o*P,y:s+p})}let A=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],c=d[o+1],f=(p.x+c.x)/2,_=o%2===0?1:-1,h=m*1.5*_*H(n+o*37+11),W=f,I=p.y+h,N=f,R=c.y-h;A+=` C${W},${I} ${N},${R} ${c.x},${c.y}`}return A}i.__name(st,"generateHorizontalBoundary");function lt(t,e){const n=t/2,a=e*.5,s=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(s-a)*.2}`,`${n-m*1.5},${a+(s-a)*.55}`,`${n+m*.5},${a+(s-a)*.75}`,`C${n-m},${a+(s-a)*.85}`,`${n+m*.3},${a+(s-a)*.95}`,`${n},${s}`].join(" ")}i.__name(lt,"generateCliffPath");function dt(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}i.__name(dt,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},bt=i.__name((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),_t=i.__name(()=>J.cleanAndMerge(y.getThemeVariables3(),y.getConfig().themeVariables).cynefin,"getCynefinDomainColors"),U=3,Ct={draw:i.__name((t,e,n,a)=>{const s=a.db,m=s.getDomains(),D=s.getTransitions(),P=s.getDiagramTitle(),d=s.getAccTitle(),A=s.getAccDescription(),o=s.getConfig(),p=_t();G.log.debug("Rendering Cynefin diagram");const c=o.width,f=o.height,_=o.padding,h=o.showDomainDescriptions,W=o.boundaryAmplitude,I=c+_*2,N=f+_*2,R={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=gt.selectSvgElement(e);y.configureSvgSize(k,N,I,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${I} ${N}`),d&&k.append("title").text(d),A&&k.append("desc").text(A);const T=k.append("g").attr("transform",`translate(${_}, ${_})`),Y=bt(c,f),Q=it(o.seed,e),ft=T.append("g").attr("class","cynefin-backgrounds"),V=["complex","complicated","chaotic","clear"];for(const l of V){const r=Y[l];ft.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",R[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(c,f,Q,W)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",st(c,f,Q+100,W)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",lt(c,f)).attr("fill","none");const mt=c*.15,pt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",dt(c/2,f/2,mt,pt)).attr("fill",R.confusion).attr("fill-opacity",.5);const Z=T.append("g").attr("class","cynefin-labels");for(const l of V){const r=Y[l];Z.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(Z.append("text").attr("class","cynefinDomainLabel").attr("x",c/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of V){const g=Y[r],u=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.model),l.append("text").attr("class","cynefinSubtitle").attr("x",g.cx).attr("y",g.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(u.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",c/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),E=26,tt=10;for(const l of["complex","complicated","chaotic","clear","confusion"]){const r=m.get(l);if(!r||r.items.length===0)continue;const g=Y[l],u=l==="confusion";let M=r.items,q=0;u&&r.items.length>U&&(q=r.items.length-U,M=r.items.slice(0,U));let v;if(u){const $=h?22:14;v=g.cy+$}else v=g.cy+(h?25:15);if([...M].forEach(($,B)=>{const C=v+B*30,S=K.append("g"),z=S.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",E/2).attr("text-anchor","middle").attr("dominant-baseline","central").text($.label);let b=$.label.length*7;const x=z.node();if(x&&typeof x.getBBox=="function"){const O=x.getBBox();O.width>0&&(b=O.width)}const w=b+tt*2,L=g.cx-w/2;S.attr("transform",`translate(${L}, ${C})`),S.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",w).attr("height",E).attr("rx",4).attr("ry",4).attr("fill",R[l]).attr("fill-opacity",.95),z.attr("x",w/2).attr("y",E/2)}),q>0){const $=v+M.length*30,B=`+${q} more`,C=K.append("g"),S=C.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",E/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(B);let z=B.length*7;const b=S.node();if(b&&typeof b.getBBox=="function"){const L=b.getBBox();L.width>0&&(z=L.width)}const x=z+tt*2,w=g.cx-x/2;C.attr("transform",`translate(${w}, ${$})`),C.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",E).attr("rx",4).attr("ry",4).attr("fill",R[l]).attr("fill-opacity",.6),S.attr("x",x/2).attr("y",E/2)}}if(D.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",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("class","cynefinArrowHead");const g=T.append("g").attr("class","cynefin-arrows");D.forEach(u=>{const M=Y[u.from],q=Y[u.to];if(!M||!q)return;if(u.from===u.to){G.log.warn(`Cynefin renderer: skipping self-loop on domain "${u.from}"`);return}const v=M.cx,$=M.cy,B=q.cx,C=q.cy,S=(v+B)/2,z=($+C)/2,b=B-v,x=C-$,w=Math.sqrt(b*b+x*x),L=w*.15,O=-x/w,yt=b/w,et=S+O*L,nt=z+yt*L;g.append("path").attr("class","cynefinArrowLine").attr("d",`M${v},${$} Q${et},${nt} ${B},${C}`).attr("fill","none").attr("marker-end",`url(#${r})`),u.label&&g.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(u.label)})}P&&T.append("text").attr("class","cynefinTitle").attr("x",c/2).attr("y",-_/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(P)},"draw")},wt=i.__name(()=>J.cleanAndMerge(y.getThemeVariables3(),y.getConfig().themeVariables).cynefin,"getCynefinTheme"),Dt={parser:$t,db:X,renderer:Ct,styles:i.__name(()=>{const t=wt();return`
|
|
2
|
+
.cynefinDomain {
|
|
3
|
+
stroke: none;
|
|
4
|
+
}
|
|
5
|
+
.cynefinDomainLabel {
|
|
6
|
+
font-size: ${t.domainFontSize}px;
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
fill: ${t.labelColor};
|
|
9
|
+
}
|
|
10
|
+
.cynefinSubtitle {
|
|
11
|
+
font-size: ${t.itemFontSize-1}px;
|
|
12
|
+
fill: ${t.textColor};
|
|
13
|
+
font-style: italic;
|
|
14
|
+
}
|
|
15
|
+
.cynefinItem {
|
|
16
|
+
fill-opacity: 0.95;
|
|
17
|
+
stroke: ${t.boundaryColor};
|
|
18
|
+
stroke-width: 1;
|
|
19
|
+
}
|
|
20
|
+
.cynefinItemText {
|
|
21
|
+
font-size: ${t.itemFontSize}px;
|
|
22
|
+
fill: ${t.textColor};
|
|
23
|
+
}
|
|
24
|
+
.cynefinItemOverflow {
|
|
25
|
+
fill-opacity: 0.6;
|
|
26
|
+
stroke: ${t.boundaryColor};
|
|
27
|
+
stroke-width: 1;
|
|
28
|
+
stroke-dasharray: 3 2;
|
|
29
|
+
}
|
|
30
|
+
.cynefinBoundary {
|
|
31
|
+
stroke: ${t.boundaryColor};
|
|
32
|
+
stroke-width: ${t.boundaryWidth};
|
|
33
|
+
stroke-dasharray: 6 3;
|
|
34
|
+
}
|
|
35
|
+
.cynefinCliff {
|
|
36
|
+
stroke: ${t.cliffColor};
|
|
37
|
+
stroke-width: ${t.cliffWidth};
|
|
38
|
+
}
|
|
39
|
+
.cynefinConfusion {
|
|
40
|
+
stroke: ${t.boundaryColor};
|
|
41
|
+
stroke-width: 1.5;
|
|
42
|
+
stroke-dasharray: 4 2;
|
|
43
|
+
}
|
|
44
|
+
.cynefinArrowLine {
|
|
45
|
+
stroke: ${t.arrowColor};
|
|
46
|
+
stroke-width: ${t.arrowWidth};
|
|
47
|
+
fill: none;
|
|
48
|
+
}
|
|
49
|
+
.cynefinArrowHead {
|
|
50
|
+
fill: ${t.arrowColor};
|
|
51
|
+
stroke: none;
|
|
52
|
+
}
|
|
53
|
+
.cynefinArrowLabel {
|
|
54
|
+
font-size: ${t.itemFontSize-1}px;
|
|
55
|
+
fill: ${t.textColor};
|
|
56
|
+
}
|
|
57
|
+
.cynefinTitle {
|
|
58
|
+
font-size: ${t.domainFontSize+2}px;
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
fill: ${t.labelColor};
|
|
61
|
+
}
|
|
62
|
+
`},"styles")};exports.diagram=Dt;
|