ranui 0.2.1-alpha.1 → 0.2.1-alpha.4
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/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/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +2 -2
- package/dist/builder.js +39 -34
- package/dist/{builtin-D9djWkCE.js → builtin-1lUEp_ro.js} +83 -76
- package/dist/button-Cj-XSCsd.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-CqJa4Q_v.js → card-BHN9Xp4S.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-CThC9-vy.js → checkbox-O_J_n1_W.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-XNxDRcQ-.js → colorpicker-mebH0XLm.js} +8 -8
- package/dist/colorpicker.js +1 -1
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/content-YOKzMoc7.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-CCvsambb.js → dropdown-CzGAVWYC.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-ZNhcQ4tf.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-Ceq3uJzz.js → form-B8afuJlF.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-BniIptBE.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-C_ENrJ3F.js → icon-GZrfSeon.js} +77 -25
- package/dist/icon.js +1 -1
- package/dist/icons.js +1 -1
- 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/iife/theme-switch.iife.js +1 -1
- package/dist/{image-B7MBI5n_.js → image-CqoQfJoV.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +38 -37
- package/dist/index.d.ts +8 -0
- package/dist/index.iife.js +3623 -88
- package/dist/index.js +88 -84
- 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-RNqdEHPf.js → input-BlwAXu7I.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-B9MFI03l.js → loading-M6gWxLbm.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-CudIwEXZ.js → math-8E-45Y8e.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-C1oQyPE3.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-DW7qWpEm.js → message-CNdmbeLf.js} +6 -6
- 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-CrvGKL2B.js → modal-gRagDkTb.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-BKQaaT7o.js → player-CAQ5Og2P.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-CvYIVgUS.js → popover-BZKSLe3D.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-C6jctsFH.js → progress-vk40tuhm.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-BUb4EzmG.js → radar-Bg0cexzU.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-Djrf9UR_.js → route-CGwS0cd_.js} +10 -10
- package/dist/route.js +1 -1
- package/dist/{router-BU2KhtxV.js → router-BK6DEkcN.js} +5 -5
- 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-CO4I2dIa.js → scratch-ClF1awGi.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-CsUkp8bv.js → section-BL0V7Kjf.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-Dn26ajJZ.js → select-BIFVbQIj.js} +13 -13
- 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-BuMLhvzQ.js → skeleton-D7JIbROq.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-40fDkuox.js → tab-DFVtDJb2.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-F4Pd7JtC.js → tabpane-C3qZGN-D.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/test/ssr/stream.test.d.ts +1 -0
- package/dist/{theme-switch-B09egc6h.js → theme-switch-BXNH5uPD.js} +45 -45
- 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 +135 -3
- package/dist/utils/builder/index.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/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +170 -2
- package/package.json +7 -1
- package/dist/button-BfYw0fes.js +0 -117
- package/dist/factory-DCrO37si.js +0 -334
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as T,
|
|
1
|
+
import { a as T, n as O, o as F, r as D, s as B, t as L } from "./utils-D1iZnChu.js";
|
|
2
2
|
import { t as M } from "./events-C59wGdni.js";
|
|
3
|
-
import { _ as d, i as l, n as b, p as g } from "./factory-
|
|
3
|
+
import { _ as d, i as l, n as b, p as g } from "./factory-ZNhcQ4tf.js";
|
|
4
4
|
import { a as z, n as P } from "./ssr-DSGwPtEd.js";
|
|
5
|
-
var
|
|
5
|
+
var H = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{position:var(--ran-modal-host-position, static)}.ran-modal-root{position:var(--ran-modal-root-position, fixed);inset:var(--ran-modal-root-inset, 0);z-index:var(--ran-modal-root-z-index, var(--ran-z-modal, 1000));display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.ran-modal-root[open]{opacity:1;visibility:visible}.ran-modal-mask{position:var(--ran-modal-mask-position, absolute);inset:var(--ran-modal-mask-inset, 0);background:var(--ran-modal-mask-background, rgba(0, 0, 0, .45))}.ran-modal-dialog{position:var(--ran-modal-dialog-position, relative);width:var(--ran-modal-dialog-width, min(560px, calc(100vw - 32px) ));margin:var(--ran-modal-dialog-margin, 0 auto);background:var(--ran-modal-dialog-background, var(--ran-color-bg-elevated, #fff));border-image-source:var(--ran-modal-dialog-border-image-source, none);border-image-slice:var(--ran-modal-dialog-border-image-slice, 8);border-image-width:var(--ran-modal-dialog-border-image-width, 4px);border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-modal-dialog-border-radius, var(--ran-radius-md, 12px));box-shadow:var(--ran-modal-dialog-box-shadow, var(--ran-shadow-modal, var(--ran-shadow-elevated, 0 10px 32px rgba(0, 0, 0, .2))));outline:var(--ran-modal-dialog-outline, none);max-height:var(--ran-modal-dialog-max-height, 80vh );overflow:var(--ran-modal-dialog-overflow, hidden);transform:translateY(var(--ran-modal-dialog-offset-y, clamp(-56px, -6vh, -24px))) scale(.9);transition:transform .3s cubic-bezier(.075,.82,.165,1)}.ran-modal-root[open] .ran-modal-dialog{transform:translateY(var(--ran-modal-dialog-offset-y, clamp(-56px, -6vh, -24px))) scale(1)}.ran-modal-header{display:var(--ran-modal-header-display, flex);align-items:var(--ran-modal-header-align-items, center);justify-content:var(--ran-modal-header-justify-content, space-between);padding:var(--ran-modal-header-padding, 16px 18px);border-bottom:var(--ran-modal-header-border-bottom, 1px solid var(--ran-color-border-secondary, #f0f0f0))}.ran-modal-root.hide-header .ran-modal-header{position:absolute;top:0;right:0;z-index:1;padding:var(--ran-modal-hide-header-padding, 10px);border-bottom:none;background:transparent}.ran-modal-root.hide-header .ran-modal-title{display:none}.ran-modal-title{margin:var(--ran-modal-title-margin, 0);font-size:var(--ran-modal-title-font-size, 16px);line-height:var(--ran-modal-title-line-height, 1.5);color:var(--ran-modal-title-color, var(--ran-color-text, #111827))}.ran-modal-close{border:var(--ran-modal-close-border, none);background:var(--ran-modal-close-background, transparent);color:var(--ran-modal-close-color, var(--ran-color-text-secondary, #667085));font-size:var(--ran-modal-close-font-size, 18px);cursor:var(--ran-modal-close-cursor, pointer);padding:var(--ran-modal-close-padding, 0 4px)}.ran-modal-body{padding:var(--ran-modal-body-padding, 18px);max-height:var(--ran-modal-body-max-height, 68vh );overflow:var(--ran-modal-body-overflow, auto);color:var(--ran-modal-body-color, var(--ran-color-text-secondary, #344054))}.ran-modal-footer{display:none;align-items:var(--ran-modal-footer-align-items, center);justify-content:var(--ran-modal-footer-justify-content, flex-end);gap:var(--ran-modal-footer-gap, 10px);padding:var(--ran-modal-footer-padding, 12px 18px 18px);border-top:var(--ran-modal-footer-border-top, 1px solid var(--ran-color-border-secondary, #f0f0f0))}.ran-modal-root.has-footer .ran-modal-footer{display:flex}.ran-modal-footer::slotted(.ran-modal-actions){display:inline-flex;align-items:center;justify-content:flex-end;gap:10px}.ran-modal-footer::slotted(.ran-modal-action){border:1px solid var(--ran-color-border, #d0d5dd);background:var(--ran-color-bg-elevated, #fff);border-radius:var(--ran-radius-sm, 6px);height:34px;line-height:32px;padding:0 14px;cursor:pointer;font-size:14px;color:var(--ran-color-text-secondary, #344054)}.ran-modal-footer::slotted(.ran-modal-action-confirm){border-color:var(--ran-color-primary, #155eef);background:var(--ran-color-primary, #155eef);color:#fff}.ran-modal-footer::slotted(.ran-modal-action:disabled){opacity:.6;cursor:not-allowed}", v = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', I = class o extends P {
|
|
6
6
|
static _openStack = [];
|
|
7
7
|
static _bodyScrollLockCount = 0;
|
|
8
8
|
static _bodyOverflow = "";
|
|
@@ -33,16 +33,17 @@ var R = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
33
33
|
"lockScroll",
|
|
34
34
|
"autoFocus",
|
|
35
35
|
"closable",
|
|
36
|
+
"hide-header",
|
|
36
37
|
"sheet"
|
|
37
38
|
];
|
|
38
39
|
}
|
|
39
40
|
constructor() {
|
|
40
|
-
super(), this._labelId = `ran-modal-title-${Math.random().toString(36).slice(2, 9)}`, this._previousActiveElement = null, this._isDialogOpen = !1, this._scrollLocked = !1, this._afterOpenTimer = null, this._afterCloseTimer = null, this._shadowDom =
|
|
41
|
+
super(), this._labelId = `ran-modal-title-${Math.random().toString(36).slice(2, 9)}`, this._previousActiveElement = null, this._isDialogOpen = !1, this._scrollLocked = !1, this._afterOpenTimer = null, this._afterCloseTimer = null, this._shadowDom = O(this, H);
|
|
41
42
|
const t = L(this._shadowDom, ".ran-modal-root", () => l().class("ran-modal-root").part("root").children(l().class("ran-modal-mask").part("mask"), l().class("ran-modal-dialog").part("dialog").role("dialog").attr("aria-modal", "true").tabIndex(-1).labelledBy(this._labelId).children(d("header").class("ran-modal-header").part("header").children(d("h3").class("ran-modal-title").part("title").id(this._labelId), d("button").class("ran-modal-close").part("close").attr("type", "button").label("Close dialog").text("x")), l().class("ran-modal-body").part("body").children(g()), d("footer").class("ran-modal-footer").part("footer").children(g().attr("name", "footer")))).build());
|
|
42
|
-
this._root = t, this._mask = this._root.querySelector(".ran-modal-mask"), this._dialog = this._root.querySelector(".ran-modal-dialog"), this._title = this._root.querySelector(".ran-modal-title"), this._closeBtn = this._root.querySelector(".ran-modal-close"), this._slot = this._root.querySelector("slot"), this._footer = this._root.querySelector(".ran-modal-footer"), this._footerSlot = this._root.querySelector('slot[name="footer"]'), this.syncTitle(), this.syncClosable(), this.syncFooter();
|
|
43
|
+
this._root = t, this._mask = this._root.querySelector(".ran-modal-mask"), this._dialog = this._root.querySelector(".ran-modal-dialog"), this._title = this._root.querySelector(".ran-modal-title"), this._closeBtn = this._root.querySelector(".ran-modal-close"), this._slot = this._root.querySelector("slot"), this._footer = this._root.querySelector(".ran-modal-footer"), this._footerSlot = this._root.querySelector('slot[name="footer"]'), this.syncTitle(), this.syncClosable(), this.syncFooter(), this.syncHeader();
|
|
43
44
|
}
|
|
44
45
|
get open() {
|
|
45
|
-
return this.hasAttribute("open") && !
|
|
46
|
+
return this.hasAttribute("open") && !B.includes(this.getAttribute("open"));
|
|
46
47
|
}
|
|
47
48
|
set open(t) {
|
|
48
49
|
!t || t === "false" ? this.removeAttribute("open") : this.setAttribute("open", "");
|
|
@@ -61,10 +62,10 @@ var R = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
61
62
|
!t || t === "false" || t === "0" ? this.setAttribute("maskClosable", "false") : this.setAttribute("maskClosable", "true");
|
|
62
63
|
}
|
|
63
64
|
get sheet() {
|
|
64
|
-
return
|
|
65
|
+
return D(this, "sheet");
|
|
65
66
|
}
|
|
66
67
|
set sheet(t) {
|
|
67
|
-
|
|
68
|
+
T(this, "sheet", t);
|
|
68
69
|
}
|
|
69
70
|
get closeOnEsc() {
|
|
70
71
|
const t = this.getAttribute("closeOnEsc");
|
|
@@ -94,16 +95,27 @@ var R = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
94
95
|
set closable(t) {
|
|
95
96
|
!t || t === "false" || t === "0" ? this.setAttribute("closable", "false") : this.setAttribute("closable", "true");
|
|
96
97
|
}
|
|
98
|
+
get hideHeader() {
|
|
99
|
+
const t = this.getAttribute("hide-header");
|
|
100
|
+
return t !== null && t !== "false" && t !== "0";
|
|
101
|
+
}
|
|
102
|
+
set hideHeader(t) {
|
|
103
|
+
!t || t === "false" || t === "0" ? this.removeAttribute("hide-header") : this.setAttribute("hide-header", "");
|
|
104
|
+
}
|
|
97
105
|
handlerExternalCss = () => {
|
|
98
|
-
|
|
106
|
+
F(this, this._shadowDom, "sheet", null, this.sheet);
|
|
99
107
|
};
|
|
100
108
|
syncTitle = () => {
|
|
101
|
-
this._title.textContent = this.title || "Modal";
|
|
109
|
+
this._title.textContent = this.title || "Modal", this.hideHeader && this._dialog.setAttribute("aria-label", this.title || "Modal");
|
|
102
110
|
};
|
|
103
111
|
syncClosable = () => {
|
|
104
112
|
const t = this.closable;
|
|
105
113
|
this._closeBtn.hidden = !t, this._closeBtn.setAttribute("aria-hidden", t ? "false" : "true"), this._closeBtn.tabIndex = t ? 0 : -1;
|
|
106
114
|
};
|
|
115
|
+
syncHeader = () => {
|
|
116
|
+
const t = this.hideHeader;
|
|
117
|
+
this._root.classList.toggle("hide-header", t), t ? (this._dialog.setAttribute("aria-label", this.title || "Modal"), this._dialog.removeAttribute("aria-labelledby")) : (this._dialog.setAttribute("aria-labelledby", this._labelId), this._dialog.removeAttribute("aria-label"));
|
|
118
|
+
};
|
|
107
119
|
syncFooter = () => {
|
|
108
120
|
const t = (this._footerSlot?.assignedNodes({ flatten: !0 }) || []).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : e.nodeType === Node.TEXT_NODE ? (e.textContent || "").trim().length > 0 : !1);
|
|
109
121
|
this._root.classList.toggle("has-footer", t);
|
|
@@ -242,7 +254,7 @@ var R = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
242
254
|
e.includes(this) || e.includes(this._dialog) || (this.getFocusableElements()[0] || this._dialog).focus();
|
|
243
255
|
};
|
|
244
256
|
connectedCallback() {
|
|
245
|
-
this.handlerExternalCss(), this._events.on(this._mask, "click", this.onMaskClick).on(this._closeBtn, "click", this.onCloseButtonClick).on(document, "keydown", this.onKeydown).on(document, "focusin", this.onDocumentFocusIn).on(this._footerSlot, "slotchange", this.syncFooter), this.syncTitle(), this.syncClosable(), this.syncFooter(), this.open ? this.openDialog() : this.closeDialog();
|
|
257
|
+
this.handlerExternalCss(), this._events.on(this._mask, "click", this.onMaskClick).on(this._closeBtn, "click", this.onCloseButtonClick).on(document, "keydown", this.onKeydown).on(document, "focusin", this.onDocumentFocusIn).on(this._footerSlot, "slotchange", this.syncFooter), this.syncTitle(), this.syncClosable(), this.syncFooter(), this.syncHeader(), this.open ? this.openDialog() : this.closeDialog();
|
|
246
258
|
}
|
|
247
259
|
disconnectedCallback() {
|
|
248
260
|
this._root.hasAttribute("open") && this.closeDialog(), this._events.abort(), this.clearAfterTimers();
|
|
@@ -257,6 +269,10 @@ var R = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
257
269
|
this.syncClosable();
|
|
258
270
|
return;
|
|
259
271
|
}
|
|
272
|
+
if (t === "hide-header") {
|
|
273
|
+
this.syncHeader();
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
260
276
|
if (t === "open") {
|
|
261
277
|
this.open ? this.openDialog() : this.closeDialog();
|
|
262
278
|
return;
|
|
@@ -270,34 +286,34 @@ var R = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
270
286
|
action: "dismiss",
|
|
271
287
|
trigger: "program"
|
|
272
288
|
});
|
|
273
|
-
const { title: e = "Confirm", content: r = "", okText: i = "OK", cancelText: n = "Cancel", showCancel: s = !1, maskClosable: y = !1, closeOnEsc:
|
|
289
|
+
const { title: e = "Confirm", content: r = "", okText: i = "OK", cancelText: n = "Cancel", showCancel: s = !1, maskClosable: y = !1, closeOnEsc: _ = !0, lockScroll: k = !0, autoFocus: C = !0, closable: x = !0, onConfirm: w, onCancel: A } = o.normalizeProgrammaticOptions(t);
|
|
274
290
|
return new Promise((S) => {
|
|
275
291
|
const a = d("r-modal").build();
|
|
276
|
-
a.title = e, a.maskClosable = y, a.closeOnEsc =
|
|
277
|
-
const
|
|
278
|
-
typeof r == "string" ?
|
|
279
|
-
let
|
|
292
|
+
a.title = e, a.maskClosable = y, a.closeOnEsc = _, a.lockScroll = k, a.autoFocus = C, a.closable = x;
|
|
293
|
+
const u = l().build();
|
|
294
|
+
typeof r == "string" ? u.textContent = r : r instanceof Node && u.appendChild(r), a.appendChild(u);
|
|
295
|
+
let m = "dismiss";
|
|
280
296
|
const f = l().attr("slot", "footer").class("ran-modal-actions");
|
|
281
297
|
if (s) {
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
await A?.() !== !1 && (
|
|
285
|
-
}), f.children(
|
|
298
|
+
const h = b().attr("type", "button").class("ran-modal-action ran-modal-action-cancel").text(n).build();
|
|
299
|
+
h.addEventListener("click", async () => {
|
|
300
|
+
await A?.() !== !1 && (m = "cancel", a.close("program"));
|
|
301
|
+
}), f.children(h);
|
|
286
302
|
}
|
|
287
303
|
const c = b().attr("type", "button").class("ran-modal-action ran-modal-action-confirm").text(i).build();
|
|
288
304
|
c.addEventListener("click", async () => {
|
|
289
305
|
c.disabled = !0;
|
|
290
306
|
try {
|
|
291
307
|
if (await w?.() === !1) return;
|
|
292
|
-
|
|
308
|
+
m = "confirm", a.close("program");
|
|
293
309
|
} finally {
|
|
294
310
|
c.disabled = !1;
|
|
295
311
|
}
|
|
296
312
|
}), f.children(c), a.appendChild(f.build());
|
|
297
|
-
const p = (
|
|
298
|
-
const E =
|
|
313
|
+
const p = (h) => {
|
|
314
|
+
const E = h.detail?.trigger || "program";
|
|
299
315
|
a.removeEventListener("afterclose", p), a.parentElement && a.parentElement.removeChild(a), S({
|
|
300
|
-
action:
|
|
316
|
+
action: m,
|
|
301
317
|
trigger: E
|
|
302
318
|
});
|
|
303
319
|
};
|
package/dist/modal.js
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { t as a } from "./init-1VpIn1S3.js";
|
|
2
|
+
var o = class extends Map {
|
|
3
|
+
constructor(e, r = g) {
|
|
4
|
+
if (super(), Object.defineProperties(this, {
|
|
5
|
+
_intern: { value: /* @__PURE__ */ new Map() },
|
|
6
|
+
_key: { value: r }
|
|
7
|
+
}), e != null) for (const [t, n] of e) this.set(t, n);
|
|
8
|
+
}
|
|
9
|
+
get(e) {
|
|
10
|
+
return super.get(c(this, e));
|
|
11
|
+
}
|
|
12
|
+
has(e) {
|
|
13
|
+
return super.has(c(this, e));
|
|
14
|
+
}
|
|
15
|
+
set(e, r) {
|
|
16
|
+
return super.set(l(this, e), r);
|
|
17
|
+
}
|
|
18
|
+
delete(e) {
|
|
19
|
+
return super.delete(p(this, e));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
function c({ _intern: e, _key: r }, t) {
|
|
23
|
+
const n = r(t);
|
|
24
|
+
return e.has(n) ? e.get(n) : t;
|
|
25
|
+
}
|
|
26
|
+
function l({ _intern: e, _key: r }, t) {
|
|
27
|
+
const n = r(t);
|
|
28
|
+
return e.has(n) ? e.get(n) : (e.set(n, t), t);
|
|
29
|
+
}
|
|
30
|
+
function p({ _intern: e, _key: r }, t) {
|
|
31
|
+
const n = r(t);
|
|
32
|
+
return e.has(n) && (t = e.get(n), e.delete(n)), t;
|
|
33
|
+
}
|
|
34
|
+
function g(e) {
|
|
35
|
+
return e !== null && typeof e == "object" ? e.valueOf() : e;
|
|
36
|
+
}
|
|
37
|
+
var f = /* @__PURE__ */ Symbol("implicit");
|
|
38
|
+
function h() {
|
|
39
|
+
var e = new o(), r = [], t = [], n = f;
|
|
40
|
+
function s(u) {
|
|
41
|
+
let i = e.get(u);
|
|
42
|
+
if (i === void 0) {
|
|
43
|
+
if (n !== f) return n;
|
|
44
|
+
e.set(u, i = r.push(u) - 1);
|
|
45
|
+
}
|
|
46
|
+
return t[i % t.length];
|
|
47
|
+
}
|
|
48
|
+
return s.domain = function(u) {
|
|
49
|
+
if (!arguments.length) return r.slice();
|
|
50
|
+
r = [], e = new o();
|
|
51
|
+
for (const i of u)
|
|
52
|
+
e.has(i) || e.set(i, r.push(i) - 1);
|
|
53
|
+
return s;
|
|
54
|
+
}, s.range = function(u) {
|
|
55
|
+
return arguments.length ? (t = Array.from(u), s) : t.slice();
|
|
56
|
+
}, s.unknown = function(u) {
|
|
57
|
+
return arguments.length ? (n = u, s) : n;
|
|
58
|
+
}, s.copy = function() {
|
|
59
|
+
return h(r, t).unknown(n);
|
|
60
|
+
}, a.apply(s, arguments), s;
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
h as t
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const l=require("./init-CbDwVtpO.cjs");var o=class extends Map{constructor(e,r=p){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,t]of e)this.set(n,t)}get(e){return super.get(c(this,e))}has(e){return super.has(c(this,e))}set(e,r){return super.set(g(this,e),r)}delete(e){return super.delete(h(this,e))}};function c({_intern:e,_key:r},n){const t=r(n);return e.has(t)?e.get(t):n}function g({_intern:e,_key:r},n){const t=r(n);return e.has(t)?e.get(t):(e.set(t,n),n)}function h({_intern:e,_key:r},n){const t=r(n);return e.has(t)&&(n=e.get(t),e.delete(t)),n}function p(e){return e!==null&&typeof e=="object"?e.valueOf():e}var f=Symbol("implicit");function a(){var e=new o,r=[],n=[],t=f;function u(i){let s=e.get(i);if(s===void 0){if(t!==f)return t;e.set(i,s=r.push(i)-1)}return n[s%n.length]}return u.domain=function(i){if(!arguments.length)return r.slice();r=[],e=new o;for(const s of i)e.has(s)||e.set(s,r.push(s)-1);return u},u.range=function(i){return arguments.length?(n=Array.from(i),u):n.slice()},u.unknown=function(i){return arguments.length?(t=i,u):t},u.copy=function(){return a(r,n).unknown(t)},l.initRange.apply(u,arguments),u}Object.defineProperty(exports,"ordinal",{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./chunk-KEIR6QF5-C4fcHpY0.cjs");const e=require("./mermaid-parser.core-DYumW1vq.cjs");exports.createPacketServices=e.createPacketServices;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
var M = Math.PI, c = 2 * M, p = 1e-6, m = c - p;
|
|
2
|
+
function E(t) {
|
|
3
|
+
this._ += t[0];
|
|
4
|
+
for (let i = 1, h = t.length; i < h; ++i) this._ += arguments[i] + t[i];
|
|
5
|
+
}
|
|
6
|
+
function A(t) {
|
|
7
|
+
let i = Math.floor(t);
|
|
8
|
+
if (!(i >= 0)) throw new Error(`invalid digits: ${t}`);
|
|
9
|
+
if (i > 15) return E;
|
|
10
|
+
const h = 10 ** i;
|
|
11
|
+
return function(s) {
|
|
12
|
+
this._ += s[0];
|
|
13
|
+
for (let n = 1, e = s.length; n < e; ++n) this._ += Math.round(arguments[n] * h) / h + s[n];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
var x = class {
|
|
17
|
+
constructor(t) {
|
|
18
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = t == null ? E : A(t);
|
|
19
|
+
}
|
|
20
|
+
moveTo(t, i) {
|
|
21
|
+
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +i}`;
|
|
22
|
+
}
|
|
23
|
+
closePath() {
|
|
24
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
25
|
+
}
|
|
26
|
+
lineTo(t, i) {
|
|
27
|
+
this._append`L${this._x1 = +t},${this._y1 = +i}`;
|
|
28
|
+
}
|
|
29
|
+
quadraticCurveTo(t, i, h, s) {
|
|
30
|
+
this._append`Q${+t},${+i},${this._x1 = +h},${this._y1 = +s}`;
|
|
31
|
+
}
|
|
32
|
+
bezierCurveTo(t, i, h, s, n, e) {
|
|
33
|
+
this._append`C${+t},${+i},${+h},${+s},${this._x1 = +n},${this._y1 = +e}`;
|
|
34
|
+
}
|
|
35
|
+
arcTo(t, i, h, s, n) {
|
|
36
|
+
if (t = +t, i = +i, h = +h, s = +s, n = +n, n < 0) throw new Error(`negative radius: ${n}`);
|
|
37
|
+
let e = this._x1, r = this._y1, l = h - t, $ = s - i, a = e - t, o = r - i, _ = a * a + o * o;
|
|
38
|
+
if (this._x1 === null) this._append`M${this._x1 = t},${this._y1 = i}`;
|
|
39
|
+
else if (_ > p) if (!(Math.abs(o * l - $ * a) > p) || !n) this._append`L${this._x1 = t},${this._y1 = i}`;
|
|
40
|
+
else {
|
|
41
|
+
let u = h - e, d = s - r, v = l * l + $ * $, T = u * u + d * d, y = Math.sqrt(v), g = Math.sqrt(_), w = n * Math.tan((M - Math.acos((v + _ - T) / (2 * y * g))) / 2), f = w / g, b = w / y;
|
|
42
|
+
Math.abs(f - 1) > p && this._append`L${t + f * a},${i + f * o}`, this._append`A${n},${n},0,0,${+(o * u > a * d)},${this._x1 = t + b * l},${this._y1 = i + b * $}`;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
arc(t, i, h, s, n, e) {
|
|
46
|
+
if (t = +t, i = +i, h = +h, e = !!e, h < 0) throw new Error(`negative radius: ${h}`);
|
|
47
|
+
let r = h * Math.cos(s), l = h * Math.sin(s), $ = t + r, a = i + l, o = 1 ^ e, _ = e ? s - n : n - s;
|
|
48
|
+
this._x1 === null ? this._append`M${$},${a}` : (Math.abs(this._x1 - $) > p || Math.abs(this._y1 - a) > p) && this._append`L${$},${a}`, h && (_ < 0 && (_ = _ % c + c), _ > m ? this._append`A${h},${h},0,1,${o},${t - r},${i - l}A${h},${h},0,1,${o},${this._x1 = $},${this._y1 = a}` : _ > p && this._append`A${h},${h},0,${+(_ >= M)},${o},${this._x1 = t + h * Math.cos(n)},${this._y1 = i + h * Math.sin(n)}`);
|
|
49
|
+
}
|
|
50
|
+
rect(t, i, h, s) {
|
|
51
|
+
this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +i}h${h = +h}v${+s}h${-h}Z`;
|
|
52
|
+
}
|
|
53
|
+
toString() {
|
|
54
|
+
return this._;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
function L() {
|
|
58
|
+
return new x();
|
|
59
|
+
}
|
|
60
|
+
L.prototype = x.prototype;
|
|
61
|
+
function P(t) {
|
|
62
|
+
return function() {
|
|
63
|
+
return t;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function q(t) {
|
|
67
|
+
let i = 3;
|
|
68
|
+
return t.digits = function(h) {
|
|
69
|
+
if (!arguments.length) return i;
|
|
70
|
+
if (h == null) i = null;
|
|
71
|
+
else {
|
|
72
|
+
const s = Math.floor(h);
|
|
73
|
+
if (!(s >= 0)) throw new RangeError(`invalid digits: ${h}`);
|
|
74
|
+
i = s;
|
|
75
|
+
}
|
|
76
|
+
return t;
|
|
77
|
+
}, () => new x(i);
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
P as n,
|
|
81
|
+
q as t
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=Math.PI,M=2*c,l=1e-6,E=M-l;function P(t){this._+=t[0];for(let i=1,e=t.length;i<e;++i)this._+=arguments[i]+t[i]}function T(t){let i=Math.floor(t);if(!(i>=0))throw new Error(`invalid digits: ${t}`);if(i>15)return P;const e=10**i;return function(n){this._+=n[0];for(let h=1,s=n.length;h<s;++h)this._+=Math.round(arguments[h]*e)/e+n[h]}}var y=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?P:T(t)}moveTo(t,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,i){this._append`L${this._x1=+t},${this._y1=+i}`}quadraticCurveTo(t,i,e,n){this._append`Q${+t},${+i},${this._x1=+e},${this._y1=+n}`}bezierCurveTo(t,i,e,n,h,s){this._append`C${+t},${+i},${+e},${+n},${this._x1=+h},${this._y1=+s}`}arcTo(t,i,e,n,h){if(t=+t,i=+i,e=+e,n=+n,h=+h,h<0)throw new Error(`negative radius: ${h}`);let s=this._x1,u=this._y1,r=e-t,$=n-i,a=s-t,o=u-i,_=a*a+o*o;if(this._x1===null)this._append`M${this._x1=t},${this._y1=i}`;else if(_>l)if(!(Math.abs(o*r-$*a)>l)||!h)this._append`L${this._x1=t},${this._y1=i}`;else{let p=e-s,f=n-u,v=r*r+$*$,m=p*p+f*f,x=Math.sqrt(v),g=Math.sqrt(_),b=h*Math.tan((c-Math.acos((v+_-m)/(2*x*g)))/2),d=b/g,w=b/x;Math.abs(d-1)>l&&this._append`L${t+d*a},${i+d*o}`,this._append`A${h},${h},0,0,${+(o*p>a*f)},${this._x1=t+w*r},${this._y1=i+w*$}`}}arc(t,i,e,n,h,s){if(t=+t,i=+i,e=+e,s=!!s,e<0)throw new Error(`negative radius: ${e}`);let u=e*Math.cos(n),r=e*Math.sin(n),$=t+u,a=i+r,o=1^s,_=s?n-h:h-n;this._x1===null?this._append`M${$},${a}`:(Math.abs(this._x1-$)>l||Math.abs(this._y1-a)>l)&&this._append`L${$},${a}`,e&&(_<0&&(_=_%M+M),_>E?this._append`A${e},${e},0,1,${o},${t-u},${i-r}A${e},${e},0,1,${o},${this._x1=$},${this._y1=a}`:_>l&&this._append`A${e},${e},0,${+(_>=c)},${o},${this._x1=t+e*Math.cos(h)},${this._y1=i+e*Math.sin(h)}`)}rect(t,i,e,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}h${e=+e}v${+n}h${-e}Z`}toString(){return this._}};function A(){return new y}A.prototype=y.prototype;function L(t){return function(){return t}}function q(t){let i=3;return t.digits=function(e){if(!arguments.length)return i;if(e==null)i=null;else{const n=Math.floor(e);if(!(n>=0))throw new RangeError(`invalid digits: ${e}`);i=n}return t},()=>new y(i)}Object.defineProperty(exports,"constant_default",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"withPath",{enumerable:!0,get:function(){return q}});
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { t as m, u as l } from "./mermaid-parser.core-uIDZYuBu.js";
|
|
2
|
+
import { n as t } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
3
|
+
import { m as n } from "./src-DtRLxcYO.js";
|
|
4
|
+
import "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
5
|
+
import "./chunk-VAUOI2AC-izt0o4id.js";
|
|
6
|
+
import { n as p, r as u, t as a } from "./chunk-MOJQB5TN-BC46HDyu.js";
|
|
7
|
+
import { t as c } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
|
|
8
|
+
var f = l().RailroadPeg.parser.LangiumParser, i = /* @__PURE__ */ t((e) => {
|
|
9
|
+
const r = e.alternatives.map(d);
|
|
10
|
+
return r.length === 1 ? r[0] : {
|
|
11
|
+
type: "choice",
|
|
12
|
+
alternatives: r
|
|
13
|
+
};
|
|
14
|
+
}, "transformOrderedChoice"), d = /* @__PURE__ */ t((e) => {
|
|
15
|
+
const r = e.elements.map(P);
|
|
16
|
+
return r.length === 1 ? r[0] : {
|
|
17
|
+
type: "sequence",
|
|
18
|
+
elements: r
|
|
19
|
+
};
|
|
20
|
+
}, "transformSequence"), P = /* @__PURE__ */ t((e) => {
|
|
21
|
+
const r = g(e.suffix);
|
|
22
|
+
return e.operator ? {
|
|
23
|
+
type: "special",
|
|
24
|
+
text: e.operator === "&" ? `&${s(r)}` : `!${s(r)}`
|
|
25
|
+
} : r;
|
|
26
|
+
}, "transformPrefix"), s = /* @__PURE__ */ t((e) => {
|
|
27
|
+
switch (e.type) {
|
|
28
|
+
case "terminal":
|
|
29
|
+
return `"${e.value}"`;
|
|
30
|
+
case "nonterminal":
|
|
31
|
+
return e.name;
|
|
32
|
+
case "special":
|
|
33
|
+
return e.text;
|
|
34
|
+
default:
|
|
35
|
+
return "(...)";
|
|
36
|
+
}
|
|
37
|
+
}, "nodeToLabel"), g = /* @__PURE__ */ t((e) => {
|
|
38
|
+
const r = y(e.primary);
|
|
39
|
+
if (!e.operator) return r;
|
|
40
|
+
switch (e.operator) {
|
|
41
|
+
case "?":
|
|
42
|
+
return {
|
|
43
|
+
type: "optional",
|
|
44
|
+
element: r
|
|
45
|
+
};
|
|
46
|
+
case "*":
|
|
47
|
+
return {
|
|
48
|
+
type: "repetition",
|
|
49
|
+
element: r,
|
|
50
|
+
min: 0,
|
|
51
|
+
max: 1 / 0
|
|
52
|
+
};
|
|
53
|
+
case "+":
|
|
54
|
+
return {
|
|
55
|
+
type: "repetition",
|
|
56
|
+
element: r,
|
|
57
|
+
min: 1,
|
|
58
|
+
max: 1 / 0
|
|
59
|
+
};
|
|
60
|
+
default:
|
|
61
|
+
throw new Error(`Unsupported PEG suffix operator: ${e.operator}`);
|
|
62
|
+
}
|
|
63
|
+
}, "transformSuffix"), y = /* @__PURE__ */ t((e) => {
|
|
64
|
+
switch (e.$type) {
|
|
65
|
+
case "PegLiteral":
|
|
66
|
+
return {
|
|
67
|
+
type: "terminal",
|
|
68
|
+
value: e.value
|
|
69
|
+
};
|
|
70
|
+
case "PegIdentifier":
|
|
71
|
+
return {
|
|
72
|
+
type: "nonterminal",
|
|
73
|
+
name: e.name
|
|
74
|
+
};
|
|
75
|
+
case "PegGroup":
|
|
76
|
+
return i(e.element);
|
|
77
|
+
case "PegAny":
|
|
78
|
+
return {
|
|
79
|
+
type: "special",
|
|
80
|
+
text: e.dot
|
|
81
|
+
};
|
|
82
|
+
default:
|
|
83
|
+
throw new Error(`Unsupported PEG primary node: ${e.$type}`);
|
|
84
|
+
}
|
|
85
|
+
}, "transformPrimary"), v = /* @__PURE__ */ t((e) => ({
|
|
86
|
+
name: e.name,
|
|
87
|
+
definition: i(e.definition)
|
|
88
|
+
}), "transformRule"), h = /* @__PURE__ */ t((e) => {
|
|
89
|
+
c(e, a), e.title && a.setTitle(e.title), e.rules.map((r) => a.addRule(v(r)));
|
|
90
|
+
}, "populateDb"), L = {
|
|
91
|
+
parser: {
|
|
92
|
+
parse: /* @__PURE__ */ t((e) => {
|
|
93
|
+
a.clear(), n.debug("[PEG Parser] Starting Langium parse");
|
|
94
|
+
const r = f.parse(e);
|
|
95
|
+
if (r.lexerErrors.length > 0 || r.parserErrors.length > 0) throw new m(r);
|
|
96
|
+
const o = r.value;
|
|
97
|
+
n.debug("[PEG Parser] Parsed rules:", o.rules.length), h(o), n.debug("[PEG Parser] Parse complete");
|
|
98
|
+
}, "parse"),
|
|
99
|
+
parser: { yy: a }
|
|
100
|
+
},
|
|
101
|
+
db: a,
|
|
102
|
+
renderer: u,
|
|
103
|
+
styles: p
|
|
104
|
+
};
|
|
105
|
+
export {
|
|
106
|
+
L as diagram
|
|
107
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=require("./mermaid-parser.core-DYumW1vq.cjs"),t=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),a=require("./src-C9EhKhbk.cjs");require("./chunk-WYO6CB5R-u4mJNOcO.cjs");require("./chunk-VAUOI2AC-DfQf5L2_.cjs");const n=require("./chunk-MOJQB5TN-oOeq982_.cjs"),l=require("./chunk-JWPE2WC7-D8EnWK1B.cjs");var m=i.createRailroadPegServices().RailroadPeg.parser.LangiumParser,u=t.__name(e=>{const r=e.alternatives.map(c);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),c=t.__name(e=>{const r=e.elements.map(p);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),p=t.__name(e=>{const r=d(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t.__name(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),d=t.__name(e=>{const r=f(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),f=t.__name(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return u(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),_=t.__name(e=>({name:e.name,definition:u(e.definition)}),"transformRule"),g=t.__name(e=>{l.populateCommonDb(e,n.db),e.title&&n.db.setTitle(e.title),e.rules.map(r=>n.db.addRule(_(r)))},"populateDb"),P={parser:{parse:t.__name(e=>{n.db.clear(),a.log.debug("[PEG Parser] Starting Langium parse");const r=m.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new i.MermaidParseError(r);const o=r.value;a.log.debug("[PEG Parser] Parsed rules:",o.rules.length),g(o),a.log.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:n.db}},db:n.db,renderer:n.renderer,styles:n.getStyles};exports.diagram=P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./chunk-KEIR6QF5-C4fcHpY0.cjs");const e=require("./mermaid-parser.core-DYumW1vq.cjs");exports.createPieServices=e.createPieServices;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const ie=require("./mermaid-parser.core-DYumW1vq.cjs"),d=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),B=require("./src-C9EhKhbk.cjs"),g=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),le=require("./ordinal-BplLHIij.cjs"),C=require("./path-DmfWsuKi.cjs"),G=require("./dist-C20XxSsP.cjs"),Z=require("./arc-D25LhgTs.cjs"),oe=require("./array-C3cbN3GY.cjs"),j=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),se=require("./chunk-VAUOI2AC-DfQf5L2_.cjs"),ce=require("./chunk-JWPE2WC7-D8EnWK1B.cjs");function ue(e,n){return n<e?-1:n>e?1:n>=e?0:NaN}function de(e){return e}function ge(){var e=de,n=ue,v=null,s=C.constant_default(0),c=C.constant_default(G.tau),D=C.constant_default(0);function a(t){var l,f=(t=oe.array_default(t)).length,A,$,x=0,h=new Array(f),i=new Array(f),w=+s.apply(this,arguments),k=Math.min(G.tau,Math.max(-G.tau,c.apply(this,arguments)-w)),T,M=Math.min(Math.abs(k)/f,D.apply(this,arguments)),p=M*(k<0?-1:1),y;for(l=0;l<f;++l)(y=i[h[l]=l]=+e(t[l],l,t))>0&&(x+=y);for(n!=null?h.sort(function(b,m){return n(i[b],i[m])}):v!=null&&h.sort(function(b,m){return v(t[b],t[m])}),l=0,$=x?(k-f*p)/x:0;l<f;++l,w=T)A=h[l],y=i[A],T=w+(y>0?y*$:0)+p,i[A]={data:t[A],index:l,value:y,startAngle:w,endAngle:T,padAngle:M};return i}return a.value=function(t){return arguments.length?(e=typeof t=="function"?t:C.constant_default(+t),a):e},a.sortValues=function(t){return arguments.length?(n=t,v=null,a):n},a.sort=function(t){return arguments.length?(v=t,n=null,a):v},a.startAngle=function(t){return arguments.length?(s=typeof t=="function"?t:C.constant_default(+t),a):s},a.endAngle=function(t){return arguments.length?(c=typeof t=="function"?t:C.constant_default(+t),a):c},a.padAngle=function(t){return arguments.length?(D=typeof t=="function"?t:C.constant_default(+t),a):D},a}var Q=g.defaultConfig_default.pie,V={sections:new Map,showData:!1,config:Q},P=V.sections,I=V.showData,fe=structuredClone(Q),K={getConfig:d.__name(()=>structuredClone(fe),"getConfig"),clear:d.__name(()=>{P=new Map,I=V.showData,g.clear()},"clear"),setDiagramTitle:g.setDiagramTitle,getDiagramTitle:g.getDiagramTitle,setAccTitle:g.setAccTitle,getAccTitle:g.getAccTitle,setAccDescription:g.setAccDescription,getAccDescription:g.getAccDescription,addSection:d.__name(({label:e,value:n})=>{if(n<0)throw new Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);P.has(e)||(P.set(e,n),B.log.debug(`added new section: ${e}, with value: ${n}`))},"addSection"),getSections:d.__name(()=>P,"getSections"),setShowData:d.__name(e=>{I=e},"setShowData"),getShowData:d.__name(()=>I,"getShowData")},he=d.__name((e,n)=>{ce.populateCommonDb(e,n),n.setShowData(e.showData),e.sections.map(n.addSection)},"populateDb"),pe={parse:d.__name(async e=>{const n=await ie.parse("pie",e);B.log.debug(n),he(n,K)},"parse")},me=d.__name(e=>`
|
|
2
|
+
.pieCircle{
|
|
3
|
+
stroke: ${e.pieStrokeColor};
|
|
4
|
+
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
+
opacity : ${e.pieOpacity};
|
|
6
|
+
}
|
|
7
|
+
.pieCircle.highlighted{
|
|
8
|
+
scale: 1.05;
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
.pieCircle.highlightedOnHover:hover{
|
|
12
|
+
transition-duration: 250ms;
|
|
13
|
+
scale: 1.05;
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
.pieOuterCircle{
|
|
17
|
+
stroke: ${e.pieOuterStrokeColor};
|
|
18
|
+
stroke-width: ${e.pieOuterStrokeWidth};
|
|
19
|
+
fill: none;
|
|
20
|
+
}
|
|
21
|
+
.pieTitleText {
|
|
22
|
+
text-anchor: middle;
|
|
23
|
+
font-size: ${e.pieTitleTextSize};
|
|
24
|
+
fill: ${e.pieTitleTextColor};
|
|
25
|
+
font-family: ${e.fontFamily};
|
|
26
|
+
}
|
|
27
|
+
.slice {
|
|
28
|
+
font-family: ${e.fontFamily};
|
|
29
|
+
fill: ${e.pieSectionTextColor};
|
|
30
|
+
font-size:${e.pieSectionTextSize};
|
|
31
|
+
// fill: white;
|
|
32
|
+
}
|
|
33
|
+
.legend text {
|
|
34
|
+
fill: ${e.pieLegendTextColor};
|
|
35
|
+
font-family: ${e.fontFamily};
|
|
36
|
+
font-size: ${e.pieLegendTextSize};
|
|
37
|
+
}
|
|
38
|
+
`,"getStyles"),_e=d.__name(e=>{const n=[...e.values()].reduce((s,c)=>s+c,0),v=[...e.entries()].map(([s,c])=>({label:s,value:c})).filter(s=>s.value/n*100>=1);return ge().value(s=>s.value).sort(null)(v)},"createPieArcs"),ve={parser:pe,db:K,renderer:{draw:d.__name((e,n,v,s)=>{B.log.debug(`rendering pie chart
|
|
39
|
+
`+e);const c=s.db,D=g.getConfig2(),a=j.cleanAndMerge(c.getConfig(),D.pie),t=40,l=18,f=4,A=450,$=A,x=se.selectSvgElement(n),h=x.append("g");h.attr("transform","translate(225,225)");const{themeVariables:i}=D;let[w]=j.parseFontSize(i.pieOuterStrokeWidth);w??=2;const k=a.legendPosition,T=a.textPosition,M=a.donutHole>0&&a.donutHole<=.9?a.donutHole:0,p=Math.min($,A)/2-t,y=Z.arc_default().innerRadius(M*p).outerRadius(p),b=Z.arc_default().innerRadius(p*T).outerRadius(p*T),m=h.append("g");m.append("circle").attr("cx",0).attr("cy",0).attr("r",p+w/2).attr("class","pieOuterCircle");const W=c.getSections(),ee=_e(W),te=[i.pie1,i.pie2,i.pie3,i.pie4,i.pie5,i.pie6,i.pie7,i.pie8,i.pie9,i.pie10,i.pie11,i.pie12];let z=0;W.forEach(r=>{z+=r});const Y=ee.filter(r=>(r.data.value/z*100).toFixed(0)!=="0"),L=le.ordinal(te).domain([...W.keys()]);m.selectAll("mySlices").data(Y).enter().append("path").attr("d",y).attr("fill",r=>L(r.data.label)).attr("class",r=>{let o="pieCircle";return a.highlightSlice==="hover"?o+=" highlightedOnHover":a.highlightSlice===r.data.label&&(o+=" highlighted"),o}),m.selectAll("mySlices").data(Y).enter().append("text").text(r=>(r.data.value/z*100).toFixed(0)+"%").attr("transform",r=>"translate("+b.centroid(r)+")").style("text-anchor","middle").attr("class","slice");const re=h.append("text").text(c.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),E=[...W.entries()].map(([r,o])=>({label:r,value:o})),S=h.selectAll(".legend").data(E).enter().append("g").attr("class","legend");S.append("rect").attr("width",l).attr("height",l).style("fill",r=>L(r.label)).style("stroke",r=>L(r.label)),S.append("text").attr("x",22).attr("y",l-f).text(r=>c.getShowData()?`${r.label} [${r.value}]`:r.label);const q=Math.max(...S.selectAll("text").nodes().map(r=>r?.getBoundingClientRect().width??0));let O=A,R=490;const u=22,F=E.length*u;switch(k){case"center":S.attr("transform",(r,o)=>{const _=u*E.length/2,H=-q/2-22,N=o*u-_;return"translate("+H+","+N+")"});break;case"top":O+=F,S.attr("transform",(r,o)=>{const _=p;return`translate(${-q/2-22}, ${o*u-_})`}),m.attr("transform",()=>`translate(0, ${F+u})`);break;case"bottom":O+=F,S.attr("transform",(r,o)=>{const _=-185-u,H=-q/2-22,N=o*u-_;return"translate("+H+","+N+")"});break;case"left":R+=22+q,S.attr("transform",(r,o)=>{const _=u*E.length/2;return"translate(-207,"+(o*u-_)+")"}),m.attr("transform",()=>`translate(${q+l+f}, 0)`);break;default:R+=22+q,S.attr("transform",(r,o)=>{const _=u*E.length/2;return"translate(216,"+(o*u-_)+")"});break}const U=re.node()?.getBoundingClientRect().width??0,ne=$/2-U/2,ae=$/2+U/2,X=Math.min(0,ne),J=Math.max(R,ae)-X;x.attr("viewBox",`${X} 0 ${J} ${O}`),g.configureSvgSize(x,O,J,a.useMaxWidth)},"draw")},styles:me};exports.diagram=ve;
|