docmedown 0.1.7 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -21
- package/README.md +86 -37
- package/dist/architecture-7GRP2DOG-B8Xs9IfY.mjs +2 -0
- package/dist/architecture-7GRP2DOG-Vdsw7WC7.js +1 -0
- package/dist/cli.js +672 -1294
- package/dist/cynefin-OW5HDTMX-DU6kwwck.js +1 -0
- package/dist/cynefin-OW5HDTMX-F0P2M_lQ.mjs +2 -0
- package/dist/docmedown-compiler.js +228 -0
- package/dist/docmedown-mermaid.js +3588 -0
- package/dist/docmedown.cjs +7264 -80
- package/dist/docmedown.iife.js +7624 -424
- package/dist/docmedown.mjs +15531 -15009
- package/dist/docmedown.web.js +7628 -0
- package/dist/eventmodeling-NTZA5JFV-D58ICByZ.js +1 -0
- package/dist/eventmodeling-NTZA5JFV-SxxTo5cJ.mjs +2 -0
- package/dist/gitGraph-4MIJSDKK-C_R2a4aQ.mjs +2 -0
- package/dist/gitGraph-4MIJSDKK-CdMj8HJ8.js +1 -0
- package/dist/info-A6RAGUB7-CG4UBCfn.js +1 -0
- package/dist/info-A6RAGUB7-DmjQlHTj.mjs +2 -0
- package/dist/mermaid-BvOI3ZSW.js +3334 -0
- package/dist/mermaid-Cx9uSfoz.mjs +116948 -0
- package/dist/packet-AYTQ26CC-CMuoEJn0.js +1 -0
- package/dist/packet-AYTQ26CC-tdMo_iPL.mjs +2 -0
- package/dist/pie-WAS4IAKB-C1hjX8y0.js +1 -0
- package/dist/pie-WAS4IAKB-DG2Bio1G.mjs +2 -0
- package/dist/prism-CeBRmKvl.js +2 -0
- package/dist/prism-CummdiZX.mjs +1588 -0
- package/dist/radar-RG4KPBEZ-DHxYOB0f.mjs +2 -0
- package/dist/radar-RG4KPBEZ-Dvyo3gdA.js +1 -0
- package/dist/railroad-74A4TZTK-1sb9Z_QQ.js +1 -0
- package/dist/railroad-74A4TZTK-CwztrSkE.mjs +2 -0
- package/dist/railroad-abnf-HS5TGJTU-4264fZjH.js +1 -0
- package/dist/railroad-abnf-HS5TGJTU-BKCsR9iC.mjs +2 -0
- package/dist/railroad-ebnf-LZEXJU2U-BXErl5kO.js +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-DzDOfuxK.mjs +2 -0
- package/dist/railroad-peg-WCYAUIDC-B6gNHamV.mjs +2 -0
- package/dist/railroad-peg-WCYAUIDC-D7pSwRGa.js +1 -0
- package/dist/rolldown-runtime-B0aSnxlc.mjs +20 -0
- package/dist/rolldown-runtime-DF3sbh8G.js +1 -0
- package/dist/svelte-compiler-loader-Deqbdbvf.js +1 -0
- package/dist/svelte-compiler-loader-DtYQgEKV.mjs +50 -0
- package/dist/svelte-runtime-Brc440dp.js +5 -0
- package/dist/svelte-runtime-CgCk_bw1.mjs +40 -0
- package/dist/treeView-Q6P3EWNA-DArM8kFH.mjs +2 -0
- package/dist/treeView-Q6P3EWNA-JstiGzov.js +1 -0
- package/dist/treemap-WGGIJYW6-CMIcmEVN.mjs +2 -0
- package/dist/treemap-WGGIJYW6-Dq6fFckz.js +1 -0
- package/dist/ts-compiler-BMDmcNn5.mjs +93 -0
- package/dist/ts-compiler-U7pTMJjY.js +3 -0
- package/dist/types/runtime/bridges/dynamic-component.d.ts +43 -0
- package/dist/types/runtime/bridges/element-bridge.d.ts +24 -0
- package/dist/types/runtime/bridges/index.d.ts +3 -0
- package/dist/types/runtime/bridges/react-bridge.d.ts +35 -0
- package/dist/types/runtime/compiler-cache.d.ts +18 -0
- package/dist/types/runtime/config-schema.d.ts +2 -0
- package/dist/types/runtime/favicons.d.ts +28 -0
- package/dist/types/runtime/loader/local-loader.d.ts +13 -0
- package/dist/types/runtime/markdown/component-body.d.ts +7 -0
- package/dist/types/runtime/markdown/escape.d.ts +1 -0
- package/dist/types/runtime/markdown/highlighter.d.ts +32 -6
- package/dist/types/runtime/markdown/katex.d.ts +5 -0
- package/dist/types/runtime/markdown/mermaid-engine.d.ts +1 -0
- package/dist/types/runtime/markdown/mermaid-loader.d.ts +19 -0
- package/dist/types/runtime/markdown/mermaid.d.ts +6 -0
- package/dist/types/runtime/markdown/tables.d.ts +68 -0
- package/dist/types/runtime/media.d.ts +30 -0
- package/dist/types/runtime/motion.d.ts +134 -0
- package/dist/types/runtime/offline-export.d.ts +9 -2
- package/dist/types/runtime/router.d.ts +40 -2
- package/dist/types/runtime/splash.d.ts +90 -0
- package/dist/types/runtime/svelte-compiler-engine.d.ts +1 -0
- package/dist/types/runtime/svelte-compiler-loader.d.ts +14 -0
- package/dist/types/runtime/svelte-runtime.d.ts +29 -0
- package/dist/types/runtime/svelte-tag.d.ts +7 -0
- package/dist/types/runtime/ts-compiler.d.ts +24 -0
- package/dist/types/runtime/types.d.ts +1 -0
- package/dist/types/ui/doc-context.svelte.d.ts +198 -0
- package/dist/types/ui/index.d.ts +33 -0
- package/dist/types/ui/registry.d.ts +52 -0
- package/dist/types/ui/theme.svelte.d.ts +32 -0
- package/dist/wardley-WFR3VGLG-BK9BA6h6.mjs +2 -0
- package/dist/wardley-WFR3VGLG-Cbs7W-dU.js +1 -0
- package/package.json +61 -48
- package/schemas/docs.schema.json +186 -181
- package/templates/.dmd/CounterWidget.svelte +29 -0
- package/templates/README.md +2 -2
- package/templates/favicon.svg +12 -0
- package/templates/favicons/favicon-book.svg +11 -0
- package/templates/favicons/favicon-markdown.svg +11 -0
- package/templates/favicons/favicon-minimal.svg +15 -0
- package/templates/favicons/favicon-terminal.svg +14 -0
- package/templates/favicons/favicon.svg +12 -0
- package/templates/guides/custom-components.md +82 -22
- package/templates/index.html +6 -3
- package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +0 -89
- package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +0 -1
- package/dist/arc-DgPKXEdT.mjs +0 -82
- package/dist/arc-n7TW7Bis.js +0 -1
- package/dist/architecture-7GRP2DOG-B7myQ46f.js +0 -1
- package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +0 -3
- package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +0 -36
- package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +0 -4154
- package/dist/array-CApNbSU9.mjs +0 -6
- package/dist/array-DZSRzHA_.js +0 -1
- package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +0 -129
- package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +0 -1922
- package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +0 -38
- package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +0 -3010
- package/dist/channel-LgHproiI.mjs +0 -5
- package/dist/channel-yqu0m4cl.js +0 -1
- package/dist/chunk-2E4U76K2-BOyeRQsI.js +0 -1
- package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +0 -348
- package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +0 -15
- package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +0 -1
- package/dist/chunk-4HAMMTFA-GFyfmcSO.js +0 -62
- package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +0 -4188
- package/dist/chunk-5VM5RSS4-GINalzIv.js +0 -15
- package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +0 -5
- package/dist/chunk-75Z2AOVW-DYouz5MZ.js +0 -2
- package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +0 -1330
- package/dist/chunk-CLGD4ZFX-C5J-e2io.js +0 -1
- package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +0 -14
- package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +0 -3836
- package/dist/chunk-DU6HZSFF-CWc5ewtb.js +0 -127
- package/dist/chunk-F27PBJKO-8jvY_jJK.js +0 -1
- package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +0 -61
- package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +0 -21456
- package/dist/chunk-FOHPRMQF-tmTlwTeH.js +0 -161
- package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +0 -1863
- package/dist/chunk-GMAD6QVW-DEQiTa0c.js +0 -72
- package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +0 -37
- package/dist/chunk-GVQU2GXP-CdJIWN41.js +0 -1
- package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +0 -2042
- package/dist/chunk-IMKFNOWR-CPJsszGN.js +0 -231
- package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +0 -8
- package/dist/chunk-JWPE2WC7-p1fYVdYc.js +0 -1
- package/dist/chunk-L3NEJ4N5-TzDiVs78.js +0 -1
- package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +0 -245
- package/dist/chunk-LNGE3PJU-BQX75wkM.js +0 -34
- package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +0 -1521
- package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +0 -672
- package/dist/chunk-OSK3NFVY-CHzvVe8m.js +0 -10
- package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +0 -67
- package/dist/chunk-P2QGCYS3-DKZzpRQW.js +0 -1
- package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +0 -26
- package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +0 -1
- package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +0 -275
- package/dist/chunk-PWAF6VOD-DxZLuCEw.js +0 -1
- package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +0 -4183
- package/dist/chunk-SHT3W25Y-BQjHSn5K.js +0 -168
- package/dist/chunk-SVP7TREG-BFMd615E.js +0 -88
- package/dist/chunk-SVP7TREG-CynckzeF.mjs +0 -490
- package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +0 -3357
- package/dist/chunk-TICWLB2K-agcyBfUp.js +0 -206
- package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +0 -59
- package/dist/chunk-TLUHSLCS-Drx_a7am.js +0 -1
- package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +0 -1
- package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +0 -9
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +0 -1
- package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +0 -12
- package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +0 -1
- package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +0 -1
- package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +0 -30
- package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +0 -1
- package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +0 -2253
- package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +0 -3
- package/dist/cynefin-OW5HDTMX-lNKysi7S.js +0 -1
- package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +0 -62
- package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +0 -355
- package/dist/cytoscape.esm-C5TvPYYm.mjs +0 -18148
- package/dist/cytoscape.esm-CBmWJr5M.js +0 -321
- package/dist/dagre-CZ6P9L_h.js +0 -1
- package/dist/dagre-GXQ25YYZ-CQszk-7P.js +0 -4
- package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +0 -425
- package/dist/dagre-J_1oH0eY.mjs +0 -1934
- package/dist/defaultLocale-N-0uLSyg.mjs +0 -198
- package/dist/defaultLocale-ybN1Vtvg.js +0 -1
- package/dist/diagram-S7CK7UJ4-CTMvxX__.js +0 -30
- package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +0 -301
- package/dist/diagram-UQ7AKVKN-1viEkqlG.js +0 -41
- package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +0 -214
- package/dist/diagram-VSXAHHWV-DgVT19mq.js +0 -3
- package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +0 -432
- package/dist/diagram-VX7I27RA-CNw0pOX_.js +0 -24
- package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +0 -527
- package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +0 -134
- package/dist/diagram-Z3DM3KII-CPkBr3FT.js +0 -24
- package/dist/dist-CXWJafG_.js +0 -1
- package/dist/dist-DNdLIC8h.mjs +0 -59
- package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +0 -1
- package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +0 -100
- package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +0 -99
- package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +0 -1966
- package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +0 -1
- package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +0 -3
- package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +0 -1
- package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +0 -17
- package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +0 -3072
- package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +0 -292
- package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +0 -1
- package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +0 -3
- package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +0 -106
- package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +0 -733
- package/dist/graphlib-BaETKKSa.js +0 -1
- package/dist/graphlib-XW-Jr8pF.mjs +0 -1267
- package/dist/info-A6RAGUB7-ClYskpn6.mjs +0 -3
- package/dist/info-A6RAGUB7-DDvvt-fW.js +0 -1
- package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +0 -20
- package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +0 -2
- package/dist/init-BJdqMO10.js +0 -1
- package/dist/init-CsQUQz36.mjs +0 -13
- package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +0 -70
- package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +0 -719
- package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +0 -139
- package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +0 -884
- package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +0 -976
- package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +0 -89
- package/dist/line-BEwhHSLl.js +0 -1
- package/dist/line-CiXRog8O.mjs +0 -34
- package/dist/linear-75tfjrny.js +0 -1
- package/dist/linear-Ncx_RuON.mjs +0 -288
- package/dist/mermaid-parser.core-BBApyu_y.js +0 -6
- package/dist/mermaid-parser.core-BRHibdUE.mjs +0 -638
- package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +0 -1006
- package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +0 -96
- package/dist/ordinal-B1BNQwUR.mjs +0 -65
- package/dist/ordinal-B9aFWmF9.js +0 -1
- package/dist/packet-AYTQ26CC-CorIy9Ul.js +0 -1
- package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +0 -3
- package/dist/path-CnWkkRiY.mjs +0 -84
- package/dist/path-DIS6ck99.js +0 -1
- package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +0 -1
- package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +0 -94
- package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +0 -3
- package/dist/pie-WAS4IAKB-D84xrSoY.js +0 -1
- package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +0 -39
- package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +0 -203
- package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +0 -7
- package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +0 -2001
- package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +0 -3
- package/dist/radar-RG4KPBEZ-R2sQOLL9.js +0 -1
- package/dist/railroad-74A4TZTK-BOZIf6ts.js +0 -1
- package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +0 -3
- package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +0 -3
- package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +0 -3
- package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +0 -3
- package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +0 -1
- package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +0 -76
- package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +0 -1
- package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +0 -84
- package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +0 -2224
- package/dist/rough.esm-ChRLLRha.js +0 -1
- package/dist/rough.esm-DXYGHN3m.mjs +0 -1361
- package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +0 -972
- package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +0 -40
- package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +0 -162
- package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +0 -4156
- package/dist/sizeCapture-INFHLROL-BihkCH-7.js +0 -1
- package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +0 -46
- package/dist/src-B4mN2BMl.js +0 -1
- package/dist/src-D_hsMyeP.mjs +0 -2154
- package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +0 -220
- package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +0 -1
- package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +0 -30
- package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +0 -1
- package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +0 -4979
- package/dist/swimlanes-42K2YHIH-DlggBCTy.js +0 -1
- package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +0 -8
- package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +0 -31
- package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +0 -120
- package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +0 -1069
- package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +0 -3
- package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +0 -1
- package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +0 -3
- package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +0 -1
- package/dist/types/runtime/app.d.ts +0 -9
- package/dist/types/runtime/components/AppearanceMenu.d.ts +0 -2
- package/dist/types/runtime/components/Builtins.d.ts +0 -44
- package/dist/types/runtime/components/Content.d.ts +0 -2
- package/dist/types/runtime/components/DmdRegistry.d.ts +0 -19
- package/dist/types/runtime/components/Layout.d.ts +0 -2
- package/dist/types/runtime/components/MermaidDiagram.d.ts +0 -16
- package/dist/types/runtime/components/Navbar.d.ts +0 -2
- package/dist/types/runtime/components/OfflineDownloadButton.d.ts +0 -2
- package/dist/types/runtime/components/OfflineNotice.d.ts +0 -6
- package/dist/types/runtime/components/Sidebar.d.ts +0 -2
- package/dist/types/runtime/components/TableOfContents.d.ts +0 -8
- package/dist/types/runtime/index.d.ts +0 -8
- package/dist/types/runtime/markdown/renderer.d.ts +0 -7
- package/dist/types/runtime/provider/DocProvider.d.ts +0 -40
- package/dist/types/runtime/provider/ThemeProvider.d.ts +0 -25
- package/dist/types/runtime/search/SearchModal.d.ts +0 -11
- package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +0 -34
- package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +0 -1880
- package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +0 -3
- package/dist/wardley-WFR3VGLG-DWDqJSgm.js +0 -1
- package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +0 -78
- package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +0 -645
- package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +0 -7
- package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +0 -2210
- package/templates/.dmd/components.js +0 -25
|
@@ -1,47 +1,65 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Custom
|
|
3
|
-
description: Learn how to use .dmd
|
|
2
|
+
title: Custom Components
|
|
3
|
+
description: Learn how to use .dmd custom elements and interactive widgets inside your Markdown.
|
|
4
4
|
order: 1
|
|
5
|
-
tags: [components,
|
|
5
|
+
tags: [components, custom-elements, dmd]
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# Custom
|
|
8
|
+
# Custom Components (.dmd)
|
|
9
9
|
|
|
10
|
-
DocMeDown supports embedding custom
|
|
10
|
+
DocMeDown supports embedding **custom elements and multi-framework components** directly into your documentation. You can author components using **native Svelte 5**, **React with TypeScript (TSX)**, or standard **Web Elements (Lit)** inside `.dmd/`.
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
## 1. Defining
|
|
14
|
+
## 1. Defining Components in `.dmd/`
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Any component placed in the `.dmd/` folder is automatically discovered, compiled, and registered for use in your Markdown.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
const { createElement, useState } = window.React;
|
|
18
|
+
### Svelte 5 Component (`.dmd/CounterWidget.svelte`)
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
Your scaffolded project includes a starter Svelte 5 component:
|
|
21
|
+
|
|
22
|
+
```svelte title=".dmd/CounterWidget.svelte"
|
|
23
|
+
<svelte:options customElement={{ tag: "dmd-counter-widget" }} />
|
|
24
|
+
<script lang="ts">
|
|
25
|
+
let { title = "Interactive Counter" }: { title?: string } = $props();
|
|
26
|
+
let count = $state(0);
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<div class="dmd-counter-panel">
|
|
30
|
+
<button type="button" class="dmd-counter-btn" onclick={() => count++}>
|
|
31
|
+
{title}: {count}
|
|
32
|
+
</button>
|
|
33
|
+
</div>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### React TSX Component (`.dmd/ReactMetricCard.tsx`)
|
|
37
|
+
|
|
38
|
+
You can also drop standard React TSX components into `.dmd/`:
|
|
39
|
+
|
|
40
|
+
```tsx title=".dmd/ReactMetricCard.tsx"
|
|
41
|
+
import React, { useState } from "react";
|
|
42
|
+
|
|
43
|
+
export default function ReactMetricCard({ label = "Query Rate", initial = 100 }) {
|
|
44
|
+
const [val, setVal] = useState(initial);
|
|
45
|
+
return (
|
|
46
|
+
<button onClick={() => setVal(val + 10)}>
|
|
47
|
+
{label}: {val}
|
|
48
|
+
</button>
|
|
27
49
|
);
|
|
28
50
|
}
|
|
29
|
-
|
|
30
|
-
export default {
|
|
31
|
-
InteractiveButton,
|
|
32
|
-
};
|
|
33
51
|
```
|
|
34
52
|
|
|
35
|
-
|
|
53
|
+
The runtime registers each component as `dmd-<name>` and upgrades PascalCase tags in your Markdown automatically.
|
|
36
54
|
|
|
37
55
|
---
|
|
38
56
|
|
|
39
57
|
## 2. Using Custom and Built-in Components
|
|
40
58
|
|
|
41
|
-
|
|
59
|
+
Use your custom component directly inside any Markdown file:
|
|
42
60
|
|
|
43
61
|
```html
|
|
44
|
-
<
|
|
62
|
+
<CounterWidget title="Clicks" />
|
|
45
63
|
```
|
|
46
64
|
|
|
47
65
|
### Tabbed Code Snippets
|
|
@@ -62,6 +80,21 @@ DocMeDown comes with built-in interactive components ready to use:
|
|
|
62
80
|
|
|
63
81
|
### Feature Card Grid
|
|
64
82
|
|
|
83
|
+
Cards can be fully prop-driven (self-closing) or container-style with arbitrary
|
|
84
|
+
Markdown/HTML bodies. `title` is optional; `color` accepts a named variant
|
|
85
|
+
(`blue`, `green`, `violet`, `amber`, `red`, `neutral`) or any CSS color, and
|
|
86
|
+
`shadow={false}` opts out of the default drop shadow. Grids containing more
|
|
87
|
+
cards than columns automatically become a carousel with prev/next controls,
|
|
88
|
+
position dots, and wrap-around cycling: one position per card, so the last card
|
|
89
|
+
leads its own window and wraps back to the first.
|
|
90
|
+
|
|
91
|
+
Container-style cards can also name themselves. When `title`, `description`, and
|
|
92
|
+
`footer` are left out, the first heading above `###` (an `#` or `##`) becomes the
|
|
93
|
+
card title, the deeper heading right after it becomes the subtitle, and a
|
|
94
|
+
trailing blockquote — or an `######` heading — becomes the footer. Everything
|
|
95
|
+
else, including `###` and deeper headings, stays in the body; an explicit prop
|
|
96
|
+
always wins for its own slot.
|
|
97
|
+
|
|
65
98
|
```html
|
|
66
99
|
<CardGrid cols={2}>
|
|
67
100
|
<Card
|
|
@@ -78,3 +111,30 @@ DocMeDown comes with built-in interactive components ready to use:
|
|
|
78
111
|
/>
|
|
79
112
|
</CardGrid>
|
|
80
113
|
```
|
|
114
|
+
|
|
115
|
+
Container-style card with a Markdown body:
|
|
116
|
+
|
|
117
|
+
```html
|
|
118
|
+
<Card color="blue" title="Quick start">
|
|
119
|
+
Install with **npm**, then write Markdown:
|
|
120
|
+
|
|
121
|
+
- zero config
|
|
122
|
+
- hot reload
|
|
123
|
+
|
|
124
|
+
<Badge type="success">STABLE</Badge>
|
|
125
|
+
</Card>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
A heading-led body is adopted as card chrome, so no props are needed at all:
|
|
129
|
+
|
|
130
|
+
```html
|
|
131
|
+
<Card color="blue">
|
|
132
|
+
## Quick start
|
|
133
|
+
### Install with **npm**, then write Markdown
|
|
134
|
+
|
|
135
|
+
- zero config
|
|
136
|
+
- hot reload
|
|
137
|
+
|
|
138
|
+
> Ships as a single `docmedown.web.js` file.
|
|
139
|
+
</Card>
|
|
140
|
+
```
|
package/templates/index.html
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
2
|
+
<html lang="en" data-dmd-motion="full">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<link rel="icon" href="data
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJkbWQtZmF2LWJnIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjNGY0NmU1Ii8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjN2MzYWVkIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iNyIgZmlsbD0idXJsKCNkbWQtZmF2LWJnKSIvPjxwYXRoIGQ9Ik05IDVoOC41bDYuNSA2LjVWMjVhMiAyIDAgMCAxLTIgMkg5YTIgMiAwIDAgMS0yLTJWN2EyIDIgMCAwIDEgMi0yWiIgZmlsbD0iI2ZmZmZmZiIgZmlsbC1vcGFjaXR5PSIwLjE2IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMS44IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTE3LjUgNXY1YTEuNSAxLjUgMCAwIDAgMS41IDEuNWg1IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMS44IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMTYgMTIuNXY5LjVtLTMuNS0zLjUgMy41IDMuNSAzLjUtMy41IiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMi4yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=" />
|
|
7
7
|
<title>DocMeDown Documentation</title>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="dmd-app"></div>
|
|
11
11
|
|
|
12
|
+
<!-- Generated shells (prerendered pages, offline copies) inject the branded
|
|
13
|
+
splash inline; this scaffold is replaced by the prerender on build. -->
|
|
14
|
+
|
|
12
15
|
<!-- Pre-compiled docs data (enables 100% offline file:/// double-click viewing without web server) -->
|
|
13
16
|
<script src="./_docs.js"></script>
|
|
14
17
|
<!-- DocMeDown Runtime Script -->
|
|
15
|
-
<script src="./docmedown.
|
|
18
|
+
<script src="./docmedown.web.js" data-docmedown-runtime></script>
|
|
16
19
|
</body>
|
|
17
20
|
</html>
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { m as e } from "./src-D_hsMyeP.mjs";
|
|
2
|
-
import { n as t } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
|
|
3
|
-
import "./chunk-DU6HZSFF-BEQZSmUu.mjs";
|
|
4
|
-
import "./chunk-CLGD4ZFX-DBkwyMMv.mjs";
|
|
5
|
-
import { m as n, t as r } from "./mermaid-parser.core-BRHibdUE.mjs";
|
|
6
|
-
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-CynckzeF.mjs";
|
|
7
|
-
import { t as s } from "./chunk-JWPE2WC7-DIKiF5cm.mjs";
|
|
8
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VCTEODGH.mjs
|
|
9
|
-
var c = n().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
|
|
10
|
-
let t = e.alternatives.map(u);
|
|
11
|
-
return t.length === 1 ? t[0] : {
|
|
12
|
-
type: "choice",
|
|
13
|
-
alternatives: t
|
|
14
|
-
};
|
|
15
|
-
}, "transformAlternation"), u = /* @__PURE__ */ t((e) => {
|
|
16
|
-
let t = e.elements.map(f);
|
|
17
|
-
return t.length === 1 ? t[0] : {
|
|
18
|
-
type: "sequence",
|
|
19
|
-
elements: t
|
|
20
|
-
};
|
|
21
|
-
}, "transformConcatenation"), d = /* @__PURE__ */ t((e) => {
|
|
22
|
-
if (e.includes("*")) {
|
|
23
|
-
let [t, n] = e.split("*");
|
|
24
|
-
return {
|
|
25
|
-
min: t ? parseInt(t, 10) : 0,
|
|
26
|
-
max: n ? parseInt(n, 10) : Infinity
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
let t = parseInt(e, 10);
|
|
30
|
-
return {
|
|
31
|
-
min: t,
|
|
32
|
-
max: t
|
|
33
|
-
};
|
|
34
|
-
}, "parseRepeat"), f = /* @__PURE__ */ t((e) => {
|
|
35
|
-
let t = p(e.primary);
|
|
36
|
-
if (!e.repeat) return t;
|
|
37
|
-
let { min: n, max: r } = d(e.repeat);
|
|
38
|
-
return n === 0 && r === 1 ? {
|
|
39
|
-
type: "optional",
|
|
40
|
-
element: t
|
|
41
|
-
} : {
|
|
42
|
-
type: "repetition",
|
|
43
|
-
element: t,
|
|
44
|
-
min: n,
|
|
45
|
-
max: r
|
|
46
|
-
};
|
|
47
|
-
}, "transformElement"), p = /* @__PURE__ */ t((e) => {
|
|
48
|
-
switch (e.$type) {
|
|
49
|
-
case "AbnfStringLiteral": return {
|
|
50
|
-
type: "terminal",
|
|
51
|
-
value: e.value
|
|
52
|
-
};
|
|
53
|
-
case "AbnfNumVal": return {
|
|
54
|
-
type: "terminal",
|
|
55
|
-
value: e.value
|
|
56
|
-
};
|
|
57
|
-
case "AbnfRuleName": return {
|
|
58
|
-
type: "nonterminal",
|
|
59
|
-
name: e.name
|
|
60
|
-
};
|
|
61
|
-
case "AbnfGroup": return l(e.element);
|
|
62
|
-
case "AbnfOptionalGroup": return {
|
|
63
|
-
type: "optional",
|
|
64
|
-
element: l(e.element)
|
|
65
|
-
};
|
|
66
|
-
default: throw Error(`Unsupported ABNF primary node: ${e.$type}`);
|
|
67
|
-
}
|
|
68
|
-
}, "transformPrimary"), m = /* @__PURE__ */ t((e) => ({
|
|
69
|
-
name: e.name,
|
|
70
|
-
definition: l(e.definition)
|
|
71
|
-
}), "transformRule"), h = /* @__PURE__ */ t((e) => {
|
|
72
|
-
s(e, o), e.title && o.setTitle(e.title), e.rules.map((e) => o.addRule(m(e)));
|
|
73
|
-
}, "populateDb"), g = {
|
|
74
|
-
parser: {
|
|
75
|
-
parse: /* @__PURE__ */ t((t) => {
|
|
76
|
-
o.clear(), e.debug("[ABNF Parser] Starting Langium parse");
|
|
77
|
-
let n = c.parse(t);
|
|
78
|
-
if (n.lexerErrors.length > 0 || n.parserErrors.length > 0) throw new r(n);
|
|
79
|
-
let i = n.value;
|
|
80
|
-
e.debug("[ABNF Parser] Parsed rules:", i.rules.length), h(i), e.debug("[ABNF Parser] Parse complete");
|
|
81
|
-
}, "parse"),
|
|
82
|
-
parser: { yy: o }
|
|
83
|
-
},
|
|
84
|
-
db: o,
|
|
85
|
-
renderer: a,
|
|
86
|
-
styles: i
|
|
87
|
-
};
|
|
88
|
-
//#endregion
|
|
89
|
-
export { g as diagram };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./src-B4mN2BMl.js"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.js");require("./chunk-DU6HZSFF-CWc5ewtb.js"),require("./chunk-CLGD4ZFX-C5J-e2io.js");const n=require("./mermaid-parser.core-BBApyu_y.js"),r=require("./chunk-SVP7TREG-BFMd615E.js"),i=require("./chunk-JWPE2WC7-p1fYVdYc.js");var a=n.m().RailroadAbnf.parser.LangiumParser,o=t.n(e=>{let t=e.alternatives.map(s);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),s=t.n(e=>{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),c=t.n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),l=t.n(e=>{let t=u(e.primary);if(!e.repeat)return t;let{min:n,max:r}=c(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),u=t.n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return o(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:o(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),d=t.n(e=>({name:e.name,definition:o(e.definition)}),`transformRule`),f=t.n(e=>{i.t(e,r.t),e.title&&r.t.setTitle(e.title),e.rules.map(e=>r.t.addRule(d(e)))},`populateDb`),p={parser:{parse:t.n(t=>{r.t.clear(),e.m.debug(`[ABNF Parser] Starting Langium parse`);let i=a.parse(t);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new n.t(i);let o=i.value;e.m.debug(`[ABNF Parser] Parsed rules:`,o.rules.length),f(o),e.m.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:r.t}},db:r.t,renderer:r.r,styles:r.n};exports.diagram=p;
|
package/dist/arc-DgPKXEdT.mjs
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./path-CnWkkRiY.mjs";
|
|
2
|
-
import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, u as p } from "./dist-DNdLIC8h.mjs";
|
|
3
|
-
//#region node_modules/d3-shape/src/arc.js
|
|
4
|
-
function m(e) {
|
|
5
|
-
return e.innerRadius;
|
|
6
|
-
}
|
|
7
|
-
function h(e) {
|
|
8
|
-
return e.outerRadius;
|
|
9
|
-
}
|
|
10
|
-
function g(e) {
|
|
11
|
-
return e.startAngle;
|
|
12
|
-
}
|
|
13
|
-
function _(e) {
|
|
14
|
-
return e.endAngle;
|
|
15
|
-
}
|
|
16
|
-
function v(e) {
|
|
17
|
-
return e && e.padAngle;
|
|
18
|
-
}
|
|
19
|
-
function y(e, t, n, r, i, a, o, s) {
|
|
20
|
-
var c = n - e, l = r - t, u = o - i, d = s - a, f = d * c - u * l;
|
|
21
|
-
if (!(f * f < 1e-12)) return f = (u * (t - a) - d * (e - i)) / f, [e + f * c, t + f * l];
|
|
22
|
-
}
|
|
23
|
-
function b(e, t, n, r, i, a, o) {
|
|
24
|
-
var c = e - n, l = t - r, u = (o ? a : -a) / d(c * c + l * l), f = u * l, p = -u * c, m = e + f, h = t + p, g = n + f, _ = r + p, v = (m + g) / 2, y = (h + _) / 2, b = g - m, x = _ - h, S = b * b + x * x, C = i - a, w = m * _ - g * h, T = (x < 0 ? -1 : 1) * d(s(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, k = (-w * b + x * T) / S, A = E - v, j = D - y, M = O - v, N = k - y;
|
|
25
|
-
return A * A + j * j > M * M + N * N && (E = O, D = k), {
|
|
26
|
-
cx: E,
|
|
27
|
-
cy: D,
|
|
28
|
-
x01: -f,
|
|
29
|
-
y01: -p,
|
|
30
|
-
x11: E * (i / C - 1),
|
|
31
|
-
y11: D * (i / C - 1)
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function x() {
|
|
35
|
-
var s = m, x = h, S = e(0), C = null, w = g, T = _, E = v, D = null, O = t(k);
|
|
36
|
-
function k() {
|
|
37
|
-
var e, t, m = +s.apply(this, arguments), h = +x.apply(this, arguments), g = w.apply(this, arguments) - r, _ = T.apply(this, arguments) - r, v = l(_ - g), k = _ > g;
|
|
38
|
-
if (D ||= e = O(), h < m && (t = h, h = m, m = t), !(h > 1e-12)) D.moveTo(0, 0);
|
|
39
|
-
else if (v > c - 1e-12) D.moveTo(h * u(g), h * a(g)), D.arc(0, 0, h, g, _, !k), m > 1e-12 && (D.moveTo(m * u(_), m * a(_)), D.arc(0, 0, m, _, g, k));
|
|
40
|
-
else {
|
|
41
|
-
var A = g, j = _, M = g, N = _, P = v, F = v, I = E.apply(this, arguments) / 2, L = I > 1e-12 && (C ? +C.apply(this, arguments) : d(m * m + h * h)), R = p(l(h - m) / 2, +S.apply(this, arguments)), z = R, B = R, V, H;
|
|
42
|
-
if (L > 1e-12) {
|
|
43
|
-
var U = o(L / m * a(I)), W = o(L / h * a(I));
|
|
44
|
-
(P -= U * 2) > 1e-12 ? (U *= k ? 1 : -1, M += U, N -= U) : (P = 0, M = N = (g + _) / 2), (F -= W * 2) > 1e-12 ? (W *= k ? 1 : -1, A += W, j -= W) : (F = 0, A = j = (g + _) / 2);
|
|
45
|
-
}
|
|
46
|
-
var G = h * u(A), K = h * a(A), q = m * u(N), J = m * a(N);
|
|
47
|
-
if (R > 1e-12) {
|
|
48
|
-
var Y = h * u(j), X = h * a(j), Z = m * u(M), Q = m * a(M), $;
|
|
49
|
-
if (v < i) {
|
|
50
|
-
if ($ = y(G, K, Z, Q, Y, X, q, J)) {
|
|
51
|
-
var ee = G - $[0], te = K - $[1], ne = Y - $[0], re = X - $[1], ie = 1 / a(f((ee * ne + te * re) / (d(ee * ee + te * te) * d(ne * ne + re * re))) / 2), ae = d($[0] * $[0] + $[1] * $[1]);
|
|
52
|
-
z = p(R, (m - ae) / (ie - 1)), B = p(R, (h - ae) / (ie + 1));
|
|
53
|
-
} else z = B = 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
F > 1e-12 ? B > 1e-12 ? (V = b(Z, Q, G, K, h, B, k), H = b(Y, X, q, J, h, B, k), D.moveTo(V.cx + V.x01, V.cy + V.y01), B < R ? D.arc(V.cx, V.cy, B, n(V.y01, V.x01), n(H.y01, H.x01), !k) : (D.arc(V.cx, V.cy, B, n(V.y01, V.x01), n(V.y11, V.x11), !k), D.arc(0, 0, h, n(V.cy + V.y11, V.cx + V.x11), n(H.cy + H.y11, H.cx + H.x11), !k), D.arc(H.cx, H.cy, B, n(H.y11, H.x11), n(H.y01, H.x01), !k))) : (D.moveTo(G, K), D.arc(0, 0, h, A, j, !k)) : D.moveTo(G, K), !(m > 1e-12) || !(P > 1e-12) ? D.lineTo(q, J) : z > 1e-12 ? (V = b(q, J, Y, X, m, -z, k), H = b(G, K, Z, Q, m, -z, k), D.lineTo(V.cx + V.x01, V.cy + V.y01), z < R ? D.arc(V.cx, V.cy, z, n(V.y01, V.x01), n(H.y01, H.x01), !k) : (D.arc(V.cx, V.cy, z, n(V.y01, V.x01), n(V.y11, V.x11), !k), D.arc(0, 0, m, n(V.cy + V.y11, V.cx + V.x11), n(H.cy + H.y11, H.cx + H.x11), k), D.arc(H.cx, H.cy, z, n(H.y11, H.x11), n(H.y01, H.x01), !k))) : D.arc(0, 0, m, N, M, k);
|
|
57
|
-
}
|
|
58
|
-
if (D.closePath(), e) return D = null, e + "" || null;
|
|
59
|
-
}
|
|
60
|
-
return k.centroid = function() {
|
|
61
|
-
var e = (+s.apply(this, arguments) + +x.apply(this, arguments)) / 2, t = (+w.apply(this, arguments) + +T.apply(this, arguments)) / 2 - i / 2;
|
|
62
|
-
return [u(t) * e, a(t) * e];
|
|
63
|
-
}, k.innerRadius = function(t) {
|
|
64
|
-
return arguments.length ? (s = typeof t == "function" ? t : e(+t), k) : s;
|
|
65
|
-
}, k.outerRadius = function(t) {
|
|
66
|
-
return arguments.length ? (x = typeof t == "function" ? t : e(+t), k) : x;
|
|
67
|
-
}, k.cornerRadius = function(t) {
|
|
68
|
-
return arguments.length ? (S = typeof t == "function" ? t : e(+t), k) : S;
|
|
69
|
-
}, k.padRadius = function(t) {
|
|
70
|
-
return arguments.length ? (C = t == null ? null : typeof t == "function" ? t : e(+t), k) : C;
|
|
71
|
-
}, k.startAngle = function(t) {
|
|
72
|
-
return arguments.length ? (w = typeof t == "function" ? t : e(+t), k) : w;
|
|
73
|
-
}, k.endAngle = function(t) {
|
|
74
|
-
return arguments.length ? (T = typeof t == "function" ? t : e(+t), k) : T;
|
|
75
|
-
}, k.padAngle = function(t) {
|
|
76
|
-
return arguments.length ? (E = typeof t == "function" ? t : e(+t), k) : E;
|
|
77
|
-
}, k.context = function(e) {
|
|
78
|
-
return arguments.length ? (D = e ?? null, k) : D;
|
|
79
|
-
}, k;
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
export { x as t };
|
package/dist/arc-n7TW7Bis.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./path-DIS6ck99.js"),t=require("./dist-CXWJafG_.js");function n(e){return e.innerRadius}function r(e){return e.outerRadius}function i(e){return e.startAngle}function a(e){return e.endAngle}function o(e){return e&&e.padAngle}function s(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function c(e,n,r,i,a,o,s){var c=e-r,l=n-i,u=(s?o:-o)/t.p(c*c+l*l),d=u*l,f=-u*c,p=e+d,m=n+f,h=r+d,g=i+f,_=(p+h)/2,v=(m+g)/2,y=h-p,b=g-m,x=y*y+b*b,S=a-o,C=p*g-h*m,w=(b<0?-1:1)*t.p(t.l(0,S*S*x-C*C)),T=(C*b-y*w)/x,E=(-C*y-b*w)/x,D=(C*b+y*w)/x,O=(-C*y+b*w)/x,k=T-_,A=E-v,j=D-_,M=O-v;return k*k+A*A>j*j+M*M&&(T=D,E=O),{cx:T,cy:E,x01:-d,y01:-f,x11:T*(a/S-1),y11:E*(a/S-1)}}function l(){var l=n,u=r,d=e.n(0),f=null,p=i,m=a,h=o,g=null,_=e.t(v);function v(){var e,n,r=+l.apply(this,arguments),i=+u.apply(this,arguments),a=p.apply(this,arguments)-t.c,o=m.apply(this,arguments)-t.c,v=t.n(o-a),y=o>a;if(g||=e=_(),i<r&&(n=i,i=r,r=n),!(i>1e-12))g.moveTo(0,0);else if(v>t.m-1e-12)g.moveTo(i*t.o(a),i*t.f(a)),g.arc(0,0,i,a,o,!y),r>1e-12&&(g.moveTo(r*t.o(o),r*t.f(o)),g.arc(0,0,r,o,a,y));else{var b=a,x=o,S=a,C=o,w=v,T=v,E=h.apply(this,arguments)/2,D=E>1e-12&&(f?+f.apply(this,arguments):t.p(r*r+i*i)),O=t.u(t.n(i-r)/2,+d.apply(this,arguments)),k=O,A=O,j,M;if(D>1e-12){var N=t.i(D/r*t.f(E)),P=t.i(D/i*t.f(E));(w-=N*2)>1e-12?(N*=y?1:-1,S+=N,C-=N):(w=0,S=C=(a+o)/2),(T-=P*2)>1e-12?(P*=y?1:-1,b+=P,x-=P):(T=0,b=x=(a+o)/2)}var F=i*t.o(b),I=i*t.f(b),L=r*t.o(C),R=r*t.f(C);if(O>1e-12){var z=i*t.o(x),B=i*t.f(x),V=r*t.o(S),H=r*t.f(S),U;if(v<t.d){if(U=s(F,I,V,H,z,B,L,R)){var W=F-U[0],G=I-U[1],K=z-U[0],q=B-U[1],J=1/t.f(t.r((W*K+G*q)/(t.p(W*W+G*G)*t.p(K*K+q*q)))/2),Y=t.p(U[0]*U[0]+U[1]*U[1]);k=t.u(O,(r-Y)/(J-1)),A=t.u(O,(i-Y)/(J+1))}else k=A=0}}T>1e-12?A>1e-12?(j=c(V,H,F,I,i,A,y),M=c(z,B,L,R,i,A,y),g.moveTo(j.cx+j.x01,j.cy+j.y01),A<O?g.arc(j.cx,j.cy,A,t.a(j.y01,j.x01),t.a(M.y01,M.x01),!y):(g.arc(j.cx,j.cy,A,t.a(j.y01,j.x01),t.a(j.y11,j.x11),!y),g.arc(0,0,i,t.a(j.cy+j.y11,j.cx+j.x11),t.a(M.cy+M.y11,M.cx+M.x11),!y),g.arc(M.cx,M.cy,A,t.a(M.y11,M.x11),t.a(M.y01,M.x01),!y))):(g.moveTo(F,I),g.arc(0,0,i,b,x,!y)):g.moveTo(F,I),!(r>1e-12)||!(w>1e-12)?g.lineTo(L,R):k>1e-12?(j=c(L,R,z,B,r,-k,y),M=c(F,I,V,H,r,-k,y),g.lineTo(j.cx+j.x01,j.cy+j.y01),k<O?g.arc(j.cx,j.cy,k,t.a(j.y01,j.x01),t.a(M.y01,M.x01),!y):(g.arc(j.cx,j.cy,k,t.a(j.y01,j.x01),t.a(j.y11,j.x11),!y),g.arc(0,0,r,t.a(j.cy+j.y11,j.cx+j.x11),t.a(M.cy+M.y11,M.cx+M.x11),y),g.arc(M.cx,M.cy,k,t.a(M.y11,M.x11),t.a(M.y01,M.x01),!y))):g.arc(0,0,r,C,S,y)}if(g.closePath(),e)return g=null,e+``||null}return v.centroid=function(){var e=(+l.apply(this,arguments)+ +u.apply(this,arguments))/2,n=(+p.apply(this,arguments)+ +m.apply(this,arguments))/2-t.d/2;return[t.o(n)*e,t.f(n)*e]},v.innerRadius=function(t){return arguments.length?(l=typeof t==`function`?t:e.n(+t),v):l},v.outerRadius=function(t){return arguments.length?(u=typeof t==`function`?t:e.n(+t),v):u},v.cornerRadius=function(t){return arguments.length?(d=typeof t==`function`?t:e.n(+t),v):d},v.padRadius=function(t){return arguments.length?(f=t==null?null:typeof t==`function`?t:e.n(+t),v):f},v.startAngle=function(t){return arguments.length?(p=typeof t==`function`?t:e.n(+t),v):p},v.endAngle=function(t){return arguments.length?(m=typeof t==`function`?t:e.n(+t),v):m},v.padAngle=function(t){return arguments.length?(h=typeof t==`function`?t:e.n(+t),v):h},v.context=function(e){return arguments.length?(g=e??null,v):g},v}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("./chunk-FOHPRMQF-tmTlwTeH.js");const e=require("./mermaid-parser.core-BBApyu_y.js");exports.createArchitectureServices=e.M;
|