@aiquants/markdown 12.2.3 → 13.0.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/README.md +383 -75
- package/dist/{abnfDiagram-VRR7QNED-DQ52KUbH.js → abnfDiagram-VRR7QNED-B3Q9attM.js} +9 -9
- package/dist/abnfDiagram-VRR7QNED-QW4YM2AY.cjs +1 -0
- package/dist/arc-BBLXr5EU.js +83 -0
- package/dist/arc-Cn8XXgbN.cjs +1 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-Cc9gQRX2.js → architectureDiagram-ZJ3FMSHR-BaSp0hC2.js} +2 -2
- package/dist/architectureDiagram-ZJ3FMSHR-BfmjNYww.cjs +36 -0
- package/dist/{blockDiagram-677ZJIJ3-DIpIE77y.js → blockDiagram-677ZJIJ3-DFcPQ19k.js} +3 -3
- package/dist/{blockDiagram-677ZJIJ3-BCgCtZXM.cjs → blockDiagram-677ZJIJ3-u7d3VCxA.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-jgR25uUP.js → c4Diagram-LMCZKHZV-DW0yo5tR.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-q0iHoZqg.cjs → c4Diagram-LMCZKHZV-nScsMUE3.cjs} +1 -1
- package/dist/{channel-Bw3o-12p.js → channel-B2FBCr9X.js} +1 -1
- package/dist/channel-DlkTPSf_.cjs +1 -0
- package/dist/{chunk-2Q5K7J3B-0amJDSXB.js → chunk-2Q5K7J3B-BkE4Fsuz.js} +1 -1
- package/dist/chunk-2Q5K7J3B-evSha-HP.cjs +1 -0
- package/dist/{chunk-32BRIVSS-BMqTi8UH.js → chunk-32BRIVSS-CqpDiZD2.js} +1 -1
- package/dist/chunk-32BRIVSS-rIw6tBRO.cjs +1 -0
- package/dist/{chunk-5VM5RSS4-C0OtlojA.cjs → chunk-5VM5RSS4-CYVpj2mc.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-EGE3VaH8.js → chunk-5VM5RSS4-DAgNhPcU.js} +1 -1
- package/dist/{chunk-EX3LRPZG-4qSuVZkz.cjs → chunk-EX3LRPZG-Ct2cyGh-.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-wasnZ2h7.js → chunk-EX3LRPZG-QFjD28UF.js} +37 -37
- package/dist/{chunk-JWPE2WC7-O891tu2Q.js → chunk-JWPE2WC7-Bj2m1SXZ.js} +1 -1
- package/dist/chunk-JWPE2WC7-Dgw1ILoe.cjs +1 -0
- package/dist/{chunk-MOJQB5TN-BzuZr6pz.js → chunk-MOJQB5TN-B1fdnpCz.js} +121 -121
- package/dist/{chunk-MOJQB5TN-BSfpWEVd.cjs → chunk-MOJQB5TN-yjlPYCh4.cjs} +3 -3
- package/dist/{chunk-PUDLZKDR-DNbm7Xzd.cjs → chunk-PUDLZKDR-BlQ3qKcC.cjs} +4 -4
- package/dist/{chunk-PUDLZKDR-BRL3efwE.js → chunk-PUDLZKDR-CIcw3cpm.js} +16 -16
- package/dist/chunk-RYQCIY6F-B-V6UOJy.cjs +1 -0
- package/dist/{chunk-RYQCIY6F-DwmsCCiA.js → chunk-RYQCIY6F-DyVk8fNp.js} +1 -1
- package/dist/{chunk-V7JOEXUC-BowEdIo-.cjs → chunk-V7JOEXUC-B1EgagKh.cjs} +3 -3
- package/dist/{chunk-V7JOEXUC-D0oynREN.js → chunk-V7JOEXUC-C776k7_V.js} +5 -5
- package/dist/{chunk-VR4S4FIN-Dg_3SNs1.js → chunk-VR4S4FIN-CyqARa17.js} +3 -3
- package/dist/chunk-VR4S4FIN-Sx71KwIQ.cjs +1 -0
- package/dist/{chunk-XXDRQBXY-Byo5u3b_.js → chunk-XXDRQBXY-B-99Fbs_.js} +3 -3
- package/dist/chunk-XXDRQBXY-BgeRIUG1.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-BLAiuPPL.cjs +1 -0
- package/dist/{classDiagram-v2-EOCWNBFH-CVu4_B8x.js → classDiagram-OUVF2IWQ-DJ0hW16Q.js} +2 -2
- package/dist/classDiagram-v2-EOCWNBFH-BLAiuPPL.cjs +1 -0
- package/dist/{classDiagram-OUVF2IWQ-CVu4_B8x.js → classDiagram-v2-EOCWNBFH-DJ0hW16Q.js} +2 -2
- package/dist/{code-blocks-BWr5Xg1I.js → code-blocks-C6J8rVTc.js} +23 -22
- package/dist/{code-blocks-BdKjppKq.cjs → code-blocks-CTESwslp.cjs} +3 -3
- package/dist/code-blocks.cjs +1 -1
- package/dist/code-blocks.d.ts +1 -0
- package/dist/code-blocks.js +15 -14
- package/dist/components/CopyButton.d.ts +8 -0
- package/dist/components/HostedScrollArea.d.ts +2 -1
- package/dist/components/MarkdownRenderer.d.ts +37 -3
- package/dist/components/MarkdownViewer.d.ts +15 -4
- package/dist/components/MermaidDiagram.d.ts +1 -0
- package/dist/components/ReadingPlaceKeeper.d.ts +32 -0
- package/dist/components/SelectionKeeper.d.ts +38 -0
- package/dist/components/SpreadsheetBlock.d.ts +4 -2
- package/dist/components/blockKeys.d.ts +9 -2
- package/dist/components/blockOffsets.d.ts +3 -0
- package/dist/components/clipboard.d.ts +1 -0
- package/dist/components/codeBlockLabels.d.ts +9 -0
- package/dist/components/cssLength.d.ts +1 -0
- package/dist/components/displayMathLabels.d.ts +11 -0
- package/dist/components/embeds/ClientFrame.d.ts +1 -0
- package/dist/components/embeds/ProviderEmbed.d.ts +2 -1
- package/dist/components/embeds/embedLabels.d.ts +1 -1
- package/dist/components/embeds/linkCardFetch.d.ts +2 -0
- package/dist/components/embeds.d.ts +5 -0
- package/dist/components/headingLevels.d.ts +6 -0
- package/dist/components/htmlNodes.d.ts +2 -0
- package/dist/components/htmlSanitizer.d.ts +15 -2
- package/dist/components/labels.d.ts +3 -2
- package/dist/components/links.d.ts +1 -0
- package/dist/components/mathRendering.d.ts +3 -1
- package/dist/components/mdastNodes/CodeNode.d.ts +5 -1
- package/dist/components/mdastNodes/MathNode.d.ts +6 -5
- package/dist/components/mermaidLabels.d.ts +5 -0
- package/dist/components/mermaidSetup.d.ts +10 -0
- package/dist/components/missingImageLabels.d.ts +2 -0
- package/dist/components/ownPixels.d.ts +4 -0
- package/dist/components/rawHtml.d.ts +7 -3
- package/dist/components/spreadsheetModel.d.ts +1 -0
- package/dist/components/toolbarOverlap.d.ts +4 -1
- package/dist/components/viewerLabels.d.ts +22 -3
- package/dist/components/viewerToolbarStyles.d.ts +2 -0
- package/dist/contentColors.d.ts +21 -0
- package/dist/conversion.d.ts +7 -0
- package/dist/converter/NOTICES.md +6 -6
- package/dist/converter/createMarkdownConverter.d.ts +1 -0
- package/dist/converter/protocol.d.ts +4 -0
- package/dist/converter.cjs +1 -1
- package/dist/converter.js +89 -71
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-BmM-AQ-j.js → cose-bilkent-JH36ORCC-CR6Hdvto.js} +1 -1
- package/dist/cose-bilkent-JH36ORCC-reAbGeDU.cjs +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-2qz-sUtp.cjs +62 -0
- package/dist/{cynefinDiagram-TSTJHNR4-iS4n-7T_.js → cynefinDiagram-TSTJHNR4-D1eY-FSf.js} +56 -56
- package/dist/dagre-VKFMJZFB-Byr9WPjb.cjs +4 -0
- package/dist/{dagre-VKFMJZFB-C1Y6S6Dm.js → dagre-VKFMJZFB-CXSczF8v.js} +25 -25
- package/dist/{diagram-FQU43EPY-CRXs7mU1.cjs → diagram-FQU43EPY-2YWng437.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-CFG9AlAq.js → diagram-FQU43EPY-BZo0xcaj.js} +35 -35
- package/dist/diagram-G47NLZAW-CQS7BN4F.cjs +24 -0
- package/dist/{diagram-G47NLZAW-Bqr76Qn5.js → diagram-G47NLZAW-CvJW9ny8.js} +60 -60
- package/dist/{diagram-NH7WQ7WH-BDWfQ8xs.js → diagram-NH7WQ7WH-C6VIkj-R.js} +17 -17
- package/dist/diagram-NH7WQ7WH-DXUwOBe7.cjs +24 -0
- package/dist/{diagram-OA4YK3LP-DuW90Uhk.js → diagram-OA4YK3LP-Co6nMbJc.js} +28 -28
- package/dist/{diagram-OA4YK3LP-uBVV8yBB.cjs → diagram-OA4YK3LP-DBUm2qxb.cjs} +3 -3
- package/dist/{diagram-WEI45ONY-Cd3qe8Wi.js → diagram-WEI45ONY-BaMbc5o2.js} +59 -59
- package/dist/diagram-WEI45ONY-ChpK2gP3.cjs +41 -0
- package/dist/ebnfDiagram-CCIWWBDH-DMIRHp8N.cjs +1 -0
- package/dist/{ebnfDiagram-CCIWWBDH-CMmTdVTT.js → ebnfDiagram-CCIWWBDH-i7CR-FU0.js} +3 -3
- package/dist/embeds/frames.d.ts +4 -0
- package/dist/embeds/linkCards.d.ts +3 -1
- package/dist/embeds/providers.d.ts +1 -0
- package/dist/embeds/testing.cjs +1 -1
- package/dist/embeds/testing.js +1 -1
- package/dist/embeds-B4g6w7Tf.cjs +1 -0
- package/dist/embeds-Dra-dGKD.js +64 -0
- package/dist/embeds.cjs +1 -1
- package/dist/embeds.d.ts +2 -2
- package/dist/embeds.js +31 -70
- package/dist/{erDiagram-Q63AITRT-tOZoI25O.js → erDiagram-Q63AITRT-DC-HhdaO.js} +68 -68
- package/dist/{erDiagram-Q63AITRT-ONnVKrzr.cjs → erDiagram-Q63AITRT-DjRvJyWK.cjs} +1 -1
- package/dist/errors-BWZJx2MD.cjs +1 -0
- package/dist/errors-CapTNE7l.js +62 -0
- package/dist/errors.d.ts +2 -2
- package/dist/extractHeadings-BAhmauKo.js +5296 -0
- package/dist/extractHeadings-qiJXegCx.cjs +11 -0
- package/dist/flowDiagram-23GEKE2U-CiNzp6BS.js +7 -0
- package/dist/flowDiagram-23GEKE2U-DzZNPkRJ.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-C23vm5cK.js → ganttDiagram-NO4QXBWP-BwbtaPxc.js} +69 -69
- package/dist/ganttDiagram-NO4QXBWP-CJv5UQ4O.cjs +292 -0
- package/dist/gen/markdown/v1/linkcard_connect.d.ts +19 -0
- package/dist/gen/markdown/v1/linkcard_pb.d.ts +87 -0
- package/dist/gen/markdown/v1/markdown_pb.d.ts +4 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-BXWses91.js → gitGraphDiagram-IHSO6WYX--yebcp4V.js} +21 -21
- package/dist/gitGraphDiagram-IHSO6WYX-dSwtW7X6.cjs +106 -0
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +5 -3
- package/dist/index.client.js +56 -48
- package/dist/index.js +56 -48
- package/dist/index.server.cjs +1 -1
- package/dist/index.server.d.ts +2 -1
- package/dist/index.server.js +126 -873
- package/dist/{infoDiagram-FWYZ7A6U-C4NsbHAN.js → infoDiagram-FWYZ7A6U-B4AiTiqD.js} +9 -9
- package/dist/infoDiagram-FWYZ7A6U-BOj0VF20.cjs +2 -0
- package/dist/{ishikawaDiagram-FXEZZL3T-B2bMsFnl.js → ishikawaDiagram-FXEZZL3T-BsYs_qnQ.js} +59 -59
- package/dist/{ishikawaDiagram-FXEZZL3T-Cjqwv-T2.cjs → ishikawaDiagram-FXEZZL3T-CisV4kPO.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DfRiiYRf.cjs → journeyDiagram-5HDEW3XC-BAvgWwpr.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DO1Xx-OE.js → journeyDiagram-5HDEW3XC-DbDo-dqu.js} +32 -32
- package/dist/{kanban-definition-HUTT4EX6-RfpoaM17.js → kanban-definition-HUTT4EX6-BlPZISwH.js} +97 -97
- package/dist/{kanban-definition-HUTT4EX6-Cu_E-BJj.cjs → kanban-definition-HUTT4EX6-RjzOWas9.cjs} +2 -2
- package/dist/{linear-BbWOUIQi.js → linear-BXWX8YXI.js} +31 -31
- package/dist/linear-CKPQExK8.cjs +1 -0
- package/dist/linkCardServer/linkCardCore.d.ts +10 -0
- package/dist/linkCardServer/linkCardHandler.server.d.ts +1 -6
- package/dist/linkCardServer/pageFetchPort.d.ts +19 -0
- package/dist/linkCardServer/{pageMetadata.server.d.ts → pageMetadata.d.ts} +11 -3
- package/dist/linkCards-BikpIncf.cjs +1 -0
- package/dist/linkCards-DfSLqLPF.js +50 -0
- package/dist/linkCards.cjs +1 -0
- package/dist/linkCards.d.ts +2 -0
- package/dist/linkCards.js +5 -0
- package/dist/markdownServiceClient-C47z3Ynu.cjs +1 -0
- package/dist/markdownServiceClient-uDeklhtG.js +480 -0
- package/dist/markdownServiceClient.d.ts +20 -0
- package/dist/mermaid.core-C4EClWgB.js +15595 -0
- package/dist/mermaid.core-CRP55Hm1.cjs +305 -0
- package/dist/mermaidFrame/NOTICES.md +1345 -0
- package/dist/mermaidFrame/cssCleaner.d.ts +13 -0
- package/dist/mermaidFrame/drawer.d.ts +34 -0
- package/dist/mermaidFrame/frame.d.ts +1 -0
- package/dist/mermaidFrame/frame.js +3307 -0
- package/dist/mermaidFrame/katexInert.d.ts +4 -0
- package/dist/mermaidFrame/protocol.d.ts +38 -0
- package/dist/mermaidFrame/serve.d.ts +14 -0
- package/dist/mermaidFrame/svgCleaner.d.ts +4 -0
- package/dist/{mindmap-definition-LN4V7U3C-B5LpvJ9m.js → mindmap-definition-LN4V7U3C-BEWpoMMG.js} +79 -79
- package/dist/{mindmap-definition-LN4V7U3C-CB606E3L.cjs → mindmap-definition-LN4V7U3C-DnbSfqWP.cjs} +3 -3
- package/dist/pageFetchPort-2H18xcdi.cjs +1 -0
- package/dist/pageFetchPort-DVpXsKCz.js +624 -0
- package/dist/{pegDiagram-2B236MQR-DaosueJV.js → pegDiagram-2B236MQR-BF7gLiB-.js} +3 -3
- package/dist/pegDiagram-2B236MQR-BJysMObA.cjs +1 -0
- package/dist/{pieDiagram-ENE6RG2P-wfsOfWyT.js → pieDiagram-ENE6RG2P-D_YzC3qc.js} +50 -50
- package/dist/{pieDiagram-ENE6RG2P-BUY2Dvjo.cjs → pieDiagram-ENE6RG2P-UMpeIUyV.cjs} +2 -2
- package/dist/{providers-BwQK7hZa.js → providers-CSvkTZsr.js} +17 -2
- package/dist/{providers-DO2t7ks4.cjs → providers-Cx0FuVQU.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-BSvHqsTp.cjs → quadrantDiagram-ABIIQ3AL-DANY0ipQ.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-Bgc3vspL.js → quadrantDiagram-ABIIQ3AL-DDm-r_6D.js} +59 -59
- package/dist/railroadDiagram-RFXS5EU6-CDUd4th1.cjs +1 -0
- package/dist/{railroadDiagram-RFXS5EU6-Du2CFU9M.js → railroadDiagram-RFXS5EU6-hJ6uB90G.js} +3 -3
- package/dist/remarkProcessor.server.d.ts +2 -0
- package/dist/{requirementDiagram-TGXJPOKE-CnafqSUP.js → requirementDiagram-TGXJPOKE-BJef5Jb0.js} +15 -15
- package/dist/{requirementDiagram-TGXJPOKE-WM3sItRw.cjs → requirementDiagram-TGXJPOKE-DaoCo7go.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-D4Qv4d98.js → sankeyDiagram-HTMAVEWB-BZQs0bE-.js} +41 -41
- package/dist/{sankeyDiagram-HTMAVEWB-DaZN3ZDb.cjs → sankeyDiagram-HTMAVEWB-DXiv0YOu.cjs} +3 -3
- package/dist/{sequenceDiagram-DBY2YBRQ-C6fa7Axs.cjs → sequenceDiagram-DBY2YBRQ-CJGpsnsv.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CmP6XGGE.js → sequenceDiagram-DBY2YBRQ-D05U2w26.js} +46 -46
- package/dist/serviceClient.cjs +1 -0
- package/dist/serviceClient.d.ts +3 -0
- package/dist/serviceClient.js +9 -0
- package/dist/{sizeCapture-X5ZJPWSS-mWZkTwA5.js → sizeCapture-X5ZJPWSS-DTr0Vm61.js} +1 -1
- package/dist/sizeCapture-X5ZJPWSS-DjuH1zNP.cjs +1 -0
- package/dist/{stateDiagram-2N3HPSRC-ClDZKhLD.js → stateDiagram-2N3HPSRC-B8nvJKpB.js} +13 -13
- package/dist/stateDiagram-2N3HPSRC-BrB47FD-.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CC8gOGDK.cjs +1 -0
- package/dist/{stateDiagram-v2-6OUMAXLB-K7slPgH_.js → stateDiagram-v2-6OUMAXLB-CV-JqAeP.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-Cpowlk7O.js → swimlanes-5IMT3BWC-BPtufzUd.js} +3 -3
- package/dist/swimlanes-5IMT3BWC-WAbDPRgt.cjs +1 -0
- package/dist/{swimlanesDiagram-G3AALYLV-36K4ynZn.js → swimlanesDiagram-G3AALYLV-BQKEmJFX.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-BZ0eguZa.cjs → swimlanesDiagram-G3AALYLV-BTwwtLZL.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-C2xHtlkw.js → timeline-definition-FHXFAJF6-DJ6GV7Fz.js} +53 -53
- package/dist/{timeline-definition-FHXFAJF6-BJN69nkZ.cjs → timeline-definition-FHXFAJF6-qdkrah7t.cjs} +1 -1
- package/dist/utils/promiseTry.d.ts +1 -0
- package/dist/vennDiagram-L72KCM5P-B5onSWPA.cjs +34 -0
- package/dist/{vennDiagram-L72KCM5P-DbqRaWm5.js → vennDiagram-L72KCM5P-DWnnndTj.js} +176 -176
- package/dist/viewer-settings.cjs +1 -1
- package/dist/viewer-settings.d.ts +8 -0
- package/dist/viewer-settings.js +11 -5
- package/dist/{wardleyDiagram-EHGQE667-CF5I0pM9.js → wardleyDiagram-EHGQE667-DFmDgQSb.js} +34 -34
- package/dist/{wardleyDiagram-EHGQE667-CyU76ilz.cjs → wardleyDiagram-EHGQE667-DdeBbvVM.cjs} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-DaKE_uIg.cjs → xychartDiagram-FW5EYKEG-CiJQMClv.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-spkx-w6w.js → xychartDiagram-FW5EYKEG-L2Kj4cZA.js} +56 -56
- package/package.json +32 -17
- package/dist/abnfDiagram-VRR7QNED-1fn6qV_P.cjs +0 -1
- package/dist/arc-D8xGHwLe.cjs +0 -1
- package/dist/arc-D9kg3f8-.js +0 -83
- package/dist/architectureDiagram-ZJ3FMSHR-C4QxQA-o.cjs +0 -36
- package/dist/channel-DuWQwUVP.cjs +0 -1
- package/dist/chunk-2Q5K7J3B-gCP3NILS.cjs +0 -1
- package/dist/chunk-32BRIVSS-PidRQo43.cjs +0 -1
- package/dist/chunk-JWPE2WC7-CHK_g5p5.cjs +0 -1
- package/dist/chunk-RYQCIY6F-B_33Thwg.cjs +0 -1
- package/dist/chunk-VR4S4FIN-Ca3mlCgX.cjs +0 -1
- package/dist/chunk-XXDRQBXY-CeZMmeIi.cjs +0 -1
- package/dist/classDiagram-OUVF2IWQ-DPzttpgE.cjs +0 -1
- package/dist/classDiagram-v2-EOCWNBFH-DPzttpgE.cjs +0 -1
- package/dist/cose-bilkent-JH36ORCC-C3UAMvQQ.cjs +0 -1
- package/dist/cynefinDiagram-TSTJHNR4-DStGofoE.cjs +0 -62
- package/dist/dagre-VKFMJZFB-BXsQ5-Ek.cjs +0 -4
- package/dist/diagram-G47NLZAW-BaX-jrfs.cjs +0 -24
- package/dist/diagram-NH7WQ7WH-Cczq2y99.cjs +0 -24
- package/dist/diagram-WEI45ONY-C_L-4kui.cjs +0 -41
- package/dist/ebnfDiagram-CCIWWBDH-Cg7DTSlM.cjs +0 -1
- package/dist/errors-BW5JXRoX.cjs +0 -1
- package/dist/errors-Blk_XJ9C.js +0 -55
- package/dist/extractHeadings-3qWVTkb9.js +0 -20290
- package/dist/extractHeadings-DpvwXCio.cjs +0 -315
- package/dist/flowDiagram-23GEKE2U-DfDAl_qd.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-p6ccACf3.js +0 -7
- package/dist/ganttDiagram-NO4QXBWP-CHP_muri.cjs +0 -292
- package/dist/gitGraphDiagram-IHSO6WYX-DOH3WBNZ.cjs +0 -106
- package/dist/infoDiagram-FWYZ7A6U-Bj2fnr5Y.cjs +0 -2
- package/dist/linear-Cz3x9Lkl.cjs +0 -1
- package/dist/linkCardServer/addressGuard.server.d.ts +0 -25
- package/dist/linkCardServer/pageFetch.server.d.ts +0 -37
- package/dist/linkCards-1JxY8wdm.js +0 -48
- package/dist/linkCards-Bjd_vW39.cjs +0 -1
- package/dist/pegDiagram-2B236MQR-BCqBc3Re.cjs +0 -1
- package/dist/railroadDiagram-RFXS5EU6-DdF2c_n3.cjs +0 -1
- package/dist/sizeCapture-X5ZJPWSS-B6sRQba9.cjs +0 -1
- package/dist/stateDiagram-2N3HPSRC-B__29zPZ.cjs +0 -1
- package/dist/stateDiagram-v2-6OUMAXLB-BA-_ovVY.cjs +0 -1
- package/dist/swimlanes-5IMT3BWC-BhxZhB7M.cjs +0 -1
- package/dist/vennDiagram-L72KCM5P-3R1vuMWd.cjs +0 -34
- /package/dist/linkCardServer/{htmlEncoding.server.d.ts → htmlEncoding.d.ts} +0 -0
- /package/dist/linkCardServer/{metadataCache.server.d.ts → metadataCache.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as re } from "./chunk-JWPE2WC7-
|
|
2
|
-
import {
|
|
1
|
+
import { p as re } from "./chunk-JWPE2WC7-Bj2m1SXZ.js";
|
|
2
|
+
import { t as oe, q as se, s as de, g as le, a as ce, b as me, _ as o, l as g, c as D, d as ue, E as xe, z as fe, F as ge, D as M, G as he, i as y, w as P, am as pe } from "./mermaid.core-C4EClWgB.js";
|
|
3
3
|
import { p as be, i as ve } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
4
|
-
var T = "position frame",
|
|
4
|
+
var T = "position frame", $ = "frame positioned", S = "position relation", N = "relation positioned", we = /* @__PURE__ */ o(function(e) {
|
|
5
5
|
g.debug("options str", e);
|
|
6
6
|
}, "setOptions"), ye = /* @__PURE__ */ o(function() {
|
|
7
7
|
return {};
|
|
@@ -12,12 +12,12 @@ function C() {
|
|
|
12
12
|
B = {};
|
|
13
13
|
}
|
|
14
14
|
o(C, "reset");
|
|
15
|
-
var Se = he.eventmodeling,
|
|
15
|
+
var Se = he.eventmodeling, Fe = /* @__PURE__ */ o(() => ge({
|
|
16
16
|
...Se,
|
|
17
17
|
...M().eventmodeling
|
|
18
18
|
}), "getConfig"), B = {};
|
|
19
19
|
function O() {
|
|
20
|
-
let e =
|
|
20
|
+
let e = ke;
|
|
21
21
|
const { ast: n } = B, t = E();
|
|
22
22
|
if (!n)
|
|
23
23
|
throw new Error("No data for EventModel");
|
|
@@ -30,7 +30,7 @@ function O() {
|
|
|
30
30
|
textProps: r
|
|
31
31
|
});
|
|
32
32
|
let d;
|
|
33
|
-
|
|
33
|
+
K(i) ? (g.debug("source frame", i.sourceFrames), d = n.frames.filter((l) => i.sourceFrames.some((c) => c.$refText === l.name)), d.forEach((l) => {
|
|
34
34
|
e = v(e, {
|
|
35
35
|
$kind: S,
|
|
36
36
|
index: a,
|
|
@@ -79,7 +79,7 @@ function E() {
|
|
|
79
79
|
return s;
|
|
80
80
|
}
|
|
81
81
|
o(E, "getDiagramProps");
|
|
82
|
-
var
|
|
82
|
+
var ke = {
|
|
83
83
|
boxes: [],
|
|
84
84
|
swimlanes: {},
|
|
85
85
|
relations: [],
|
|
@@ -224,7 +224,7 @@ function V(e, n) {
|
|
|
224
224
|
height: t.textProps.height + 2 * s.boxTextPadding
|
|
225
225
|
};
|
|
226
226
|
return [{
|
|
227
|
-
$kind:
|
|
227
|
+
$kind: $,
|
|
228
228
|
frame: t.frame,
|
|
229
229
|
index: t.index,
|
|
230
230
|
visual: i,
|
|
@@ -299,20 +299,20 @@ function Y(e, n) {
|
|
|
299
299
|
return h;
|
|
300
300
|
}
|
|
301
301
|
o(Y, "evolveFramePositioned");
|
|
302
|
-
function
|
|
302
|
+
function z(e, n) {
|
|
303
303
|
return e === 0 && n.sourceFrames.length === 0;
|
|
304
304
|
}
|
|
305
|
-
o(
|
|
306
|
-
function
|
|
305
|
+
o(z, "isFirstFrame");
|
|
306
|
+
function K(e) {
|
|
307
307
|
return e.sourceFrames !== void 0 && e.sourceFrames !== null && e.sourceFrames.length > 0;
|
|
308
308
|
}
|
|
309
|
-
o(
|
|
310
|
-
function
|
|
309
|
+
o(K, "hasSourceFrame");
|
|
310
|
+
function F(e, n) {
|
|
311
311
|
if (n != null)
|
|
312
312
|
return e.find((t) => t.frame.name === n.name);
|
|
313
313
|
}
|
|
314
|
-
o(
|
|
315
|
-
function
|
|
314
|
+
o(F, "findBoxByFrame");
|
|
315
|
+
function q(e, n, t) {
|
|
316
316
|
if (!(t < 0))
|
|
317
317
|
for (let i = t; i >= 0; i--) {
|
|
318
318
|
const a = e[i];
|
|
@@ -320,16 +320,16 @@ function J(e, n, t) {
|
|
|
320
320
|
return a;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
o(
|
|
324
|
-
function
|
|
323
|
+
o(q, "findBoxByLineIndex");
|
|
324
|
+
function J(e, n) {
|
|
325
325
|
const t = n;
|
|
326
|
-
if (ve(t.frame) ||
|
|
326
|
+
if (ve(t.frame) || z(t.index, t.frame))
|
|
327
327
|
return [];
|
|
328
|
-
const i =
|
|
328
|
+
const i = F(e.boxes, t.frame);
|
|
329
329
|
if (i === void 0)
|
|
330
330
|
throw new Error(`Target box not found for frame ${t.frame.name}`);
|
|
331
331
|
let a;
|
|
332
|
-
return t.sourceFrame ? a =
|
|
332
|
+
return t.sourceFrame ? a = F(e.boxes, t.sourceFrame) : a = q(e.boxes, i.swimlane.index, t.index - 1), a === void 0 ? [] : [{
|
|
333
333
|
$kind: N,
|
|
334
334
|
frame: t.frame,
|
|
335
335
|
index: t.index,
|
|
@@ -337,8 +337,8 @@ function Q(e, n) {
|
|
|
337
337
|
targetBox: i
|
|
338
338
|
}];
|
|
339
339
|
}
|
|
340
|
-
o(
|
|
341
|
-
function
|
|
340
|
+
o(J, "decidePositionRelation");
|
|
341
|
+
function Q(e, n) {
|
|
342
342
|
const t = n, i = {
|
|
343
343
|
visual: {
|
|
344
344
|
fill: "none",
|
|
@@ -360,13 +360,13 @@ function q(e, n) {
|
|
|
360
360
|
relations: [...e.relations, i]
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
o(
|
|
363
|
+
o(Q, "evolveRelationPositioned");
|
|
364
364
|
var Me = {
|
|
365
365
|
[T]: V,
|
|
366
|
-
[S]:
|
|
366
|
+
[S]: J
|
|
367
367
|
}, Be = {
|
|
368
|
-
[
|
|
369
|
-
[N]:
|
|
368
|
+
[$]: Y,
|
|
369
|
+
[N]: Q
|
|
370
370
|
};
|
|
371
371
|
function Z(e, n) {
|
|
372
372
|
const t = Me[n.$kind];
|
|
@@ -389,8 +389,8 @@ function v(e, n) {
|
|
|
389
389
|
return ee(e, t);
|
|
390
390
|
}
|
|
391
391
|
o(v, "dispatch");
|
|
392
|
-
var
|
|
393
|
-
getConfig:
|
|
392
|
+
var k = {
|
|
393
|
+
getConfig: Fe,
|
|
394
394
|
setOptions: we,
|
|
395
395
|
getOptions: ye,
|
|
396
396
|
clear: Pe,
|
|
@@ -406,9 +406,9 @@ var F = {
|
|
|
406
406
|
}, Ee = {
|
|
407
407
|
parse: /* @__PURE__ */ o(async (e) => {
|
|
408
408
|
const n = await be("eventmodeling", e);
|
|
409
|
-
g.debug(n),
|
|
409
|
+
g.debug(n), k.setAst(n), re(n, k);
|
|
410
410
|
}, "parse")
|
|
411
|
-
}, Ae =
|
|
411
|
+
}, Ae = D(), Re = Ae?.eventmodeling;
|
|
412
412
|
function te(e, n) {
|
|
413
413
|
return (t) => {
|
|
414
414
|
const i = t.swimlane.y + n.swimlanePadding, a = e.append("g").attr("class", "em-box");
|
|
@@ -440,19 +440,19 @@ function ae(e, n, t, i) {
|
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
442
|
o(ae, "renderD3Swimlane");
|
|
443
|
-
var
|
|
443
|
+
var De = /* @__PURE__ */ o(function(e, n, t, i) {
|
|
444
444
|
if (g.debug("in eventmodeling renderer", e + `
|
|
445
445
|
`, "id:", n, t), !Re)
|
|
446
446
|
throw new Error("EventModeling config not found");
|
|
447
|
-
const a = i.db, { themeVariables: r, eventmodeling: d } =
|
|
447
|
+
const a = i.db, { themeVariables: r, eventmodeling: d } = D(), l = ue(`[id="${n}"]`), c = a.getDiagramProps(), m = a.getState(), x = `em-arrowhead-${n}`, u = r.emArrowhead ?? "#000000";
|
|
448
448
|
m.sortedSwimlanesArray.forEach(
|
|
449
449
|
ae(l, m.maxR, c, r)
|
|
450
450
|
), m.boxes.forEach(te(l, c)), m.relations.forEach(ie(l, c, x, r)), l.append("defs").append("marker").attr("id", x).attr("markerWidth", "10").attr("markerHeight", "7").attr("refX", "10").attr("refY", "3.5").attr("orient", "auto").append("polygon").attr("points", "0 0, 10 3.5, 0 7").attr("fill", u), xe(void 0, l, d?.padding ?? 30, d?.useMaxWidth);
|
|
451
451
|
}, "draw"), Te = {
|
|
452
|
-
draw:
|
|
453
|
-
},
|
|
452
|
+
draw: De
|
|
453
|
+
}, $e = /* @__PURE__ */ o((e) => "", "getStyles"), Ne = $e, We = {
|
|
454
454
|
parser: Ee,
|
|
455
|
-
db:
|
|
455
|
+
db: k,
|
|
456
456
|
renderer: Te,
|
|
457
457
|
styles: Ne
|
|
458
458
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./chunk-JWPE2WC7-Dgw1ILoe.cjs"),h=require("./mermaid.core-CRP55Hm1.cjs"),ue=require("./chunk-VR4S4FIN-Sx71KwIQ.cjs"),pe=require("./cynefin-VYW2F7L2-MpAliYy9.cjs"),H=require("./defaultLocale-C4wbwF1n.cjs"),Z=require("./ordinal-CagbB1m8.cjs");function fe(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function ge(){return this.eachAfter(fe)}function me(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function ye(t,a){for(var l=this,n=[l],r,i,d=-1;l=n.pop();)if(t.call(a,l,++d,this),r=l.children)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function Se(t,a){for(var l=this,n=[l],r=[],i,d,u,y=-1;l=n.pop();)if(r.push(l),i=l.children)for(d=0,u=i.length;d<u;++d)n.push(i[d]);for(;l=r.pop();)t.call(a,l,++y,this);return this}function ve(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function xe(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,r=n&&n.length;--r>=0;)l+=n[r].value;a.value=l})}function be(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function we(t){for(var a=this,l=Ce(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var r=n.length;t!==l;)n.splice(r,0,t),t=t.parent;return n}function Ce(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),r=null;for(t=l.pop(),a=n.pop();t===a;)r=t,t=l.pop(),a=n.pop();return r}function _e(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Te(){return Array.from(this)}function Le(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function $e(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ae(){var t=this,a,l=[t],n,r,i;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);while(l.length)}function K(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ne)):a===void 0&&(a=Me);for(var l=new j(t),n,r=[l],i,d,u,y;n=r.pop();)if((d=a(n.data))&&(y=(d=Array.from(d)).length))for(n.children=d,u=y-1;u>=0;--u)r.push(i=d[u]=new j(d[u])),i.parent=n,i.depth=n.depth+1;return l.eachBefore(Ve)}function Fe(){return K(this).eachBefore(ke)}function Me(t){return t.children}function Ne(t){return Array.isArray(t)?t[1]:null}function ke(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ve(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function j(t){this.data=t,this.depth=this.height=0,this.parent=null}j.prototype=K.prototype={constructor:j,count:ge,each:me,eachAfter:Se,eachBefore:ye,find:ve,sum:xe,sort:be,path:we,ancestors:_e,descendants:Te,leaves:Le,links:$e,copy:Fe,[Symbol.iterator]:Ae};function ze(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function O(t){return function(){return t}}function Pe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function De(t,a,l,n,r){for(var i=t.children,d,u=-1,y=i.length,c=t.value&&(n-a)/t.value;++u<y;)d=i[u],d.y0=l,d.y1=r,d.x0=a,d.x1=a+=d.value*c}function Be(t,a,l,n,r){for(var i=t.children,d,u=-1,y=i.length,c=t.value&&(r-l)/t.value;++u<y;)d=i[u],d.x0=a,d.x1=n,d.y0=l,d.y1=l+=d.value*c}var We=(1+Math.sqrt(5))/2;function Ee(t,a,l,n,r,i){for(var d=[],u=a.children,y,c,p=0,w=0,s=u.length,b,v,x=a.value,f,S,F,L,z,E,M;p<s;){b=r-l,v=i-n;do f=u[w++].value;while(!f&&w<s);for(S=F=f,E=Math.max(v/b,b/v)/(x*t),M=f*f*E,z=Math.max(F/M,M/S);w<s;++w){if(f+=c=u[w].value,c<S&&(S=c),c>F&&(F=c),M=f*f*E,L=Math.max(F/M,M/S),L>z){f-=c;break}z=L}d.push(y={value:f,dice:b<v,children:u.slice(p,w)}),y.dice?De(y,l,n,r,x?n+=v*f/x:i):Be(y,l,n,x?l+=b*f/x:r,i),x-=f,p=w}return d}const Re=(function t(a){function l(n,r,i,d,u){Ee(a,n,r,i,d,u)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(We);function Ie(){var t=Re,a=!1,l=1,n=1,r=[0],i=q,d=q,u=q,y=q,c=q;function p(s){return s.x0=s.y0=0,s.x1=l,s.y1=n,s.eachBefore(w),r=[0],a&&s.eachBefore(Pe),s}function w(s){var b=r[s.depth],v=s.x0+b,x=s.y0+b,f=s.x1-b,S=s.y1-b;f<v&&(v=f=(v+f)/2),S<x&&(x=S=(x+S)/2),s.x0=v,s.y0=x,s.x1=f,s.y1=S,s.children&&(b=r[s.depth+1]=i(s)/2,v+=c(s)-b,x+=d(s)-b,f-=u(s)-b,S-=y(s)-b,f<v&&(v=f=(v+f)/2),S<x&&(x=S=(x+S)/2),t(s,v,x,f,S))}return p.round=function(s){return arguments.length?(a=!!s,p):a},p.size=function(s){return arguments.length?(l=+s[0],n=+s[1],p):[l,n]},p.tile=function(s){return arguments.length?(t=ze(s),p):t},p.padding=function(s){return arguments.length?p.paddingInner(s).paddingOuter(s):p.paddingInner()},p.paddingInner=function(s){return arguments.length?(i=typeof s=="function"?s:O(+s),p):i},p.paddingOuter=function(s){return arguments.length?p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):p.paddingTop()},p.paddingTop=function(s){return arguments.length?(d=typeof s=="function"?s:O(+s),p):d},p.paddingRight=function(s){return arguments.length?(u=typeof s=="function"?s:O(+s),p):u},p.paddingBottom=function(s){return arguments.length?(y=typeof s=="function"?s:O(+s),p):y},p.paddingLeft=function(s){return arguments.length?(c=typeof s=="function"?s:O(+s),p):c},p}var W,ne=(W=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=h.setAccTitle,this.getAccTitle=h.getAccTitle,this.setDiagramTitle=h.setDiagramTitle,this.getDiagramTitle=h.getDiagramTitle,this.getAccDescription=h.getAccDescription,this.setAccDescription=h.setAccDescription}getNodes(){return this.nodes}getConfig(){const a=h.defaultConfig_default,l=h.getConfig();return h.cleanAndMerge({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(i=>{h.isLabelStyle(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){h.clear(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},h.__name(W,"TreeMapDB"),W);function le(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const r={name:n.name,children:n.type==="Leaf"?void 0:[]};for(r.classSelector=n?.classSelector,n?.cssCompiledStyles&&(r.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(r.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(r);else{const i=l[l.length-1].node;i.children?i.children.push(r):i.children=[r]}n.type!=="Leaf"&&l.push({node:r,level:n.level})}),a}h.__name(le,"buildHierarchy");var He=h.__name((t,a)=>{he.populateCommonDb(t,a);const l=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const d=i.item;if(!d)continue;const u=i.indent?parseInt(i.indent):0,y=qe(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],p=c.length>0?c:void 0,w={level:u,name:y,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:p};l.push(w)}const n=le(l),r=h.__name((i,d)=>{for(const u of i)a.addNode(u,d),u.children&&u.children.length>0&&r(u.children,d+1)},"addNodesRecursively");r(n,0)},"populate"),qe=h.__name(t=>t.name?String(t.name):"","getItemName"),re={parser:{yy:void 0},parse:h.__name(async t=>{try{const a=pe.parse,l=await a("treemap",t);h.log.debug("Treemap AST:",l);const n=re.parser?.yy;if(!(n instanceof ne))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");He(l,n)}catch(a){throw h.log.error("Error parsing treemap:",a),a}},"parse")},Oe=10,B=10,G=25,Ge=h.__name((t,a,l,n)=>{const r=n.db,i=r.getConfig(),d=i.padding??Oe,u=r.getDiagramTitle(),y=r.getRoot(),{themeVariables:c}=h.getConfig();if(!y)return;const p=u?30:0,w=h.selectSvgElement(a),s=i.nodeWidth?i.nodeWidth*B:960,b=i.nodeHeight?i.nodeHeight*B:500,v=s,x=b+p;w.attr("viewBox",`0 0 ${v} ${x}`),h.configureSvgSize(w,x,v,i.useMaxWidth);let f;try{const e=i.valueFormat||",";if(e==="$0,0")f=h.__name(o=>"$"+H.format(",")(o),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const o=/\.\d+/.exec(e),g=o?o[0]:"";f=h.__name(C=>"$"+H.format(","+g)(C),"valueFormat")}else if(e.startsWith("$")){const o=e.substring(1);f=h.__name(g=>"$"+H.format(o||"")(g),"valueFormat")}else f=H.format(e)}catch(e){h.log.error("Error creating format function:",e),f=H.format(",")}const S=Z.ordinal().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),F=Z.ordinal().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),L=Z.ordinal().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);u&&w.append("text").attr("x",v/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const z=w.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),E=K(y).sum(e=>e.value??0).sort((e,o)=>(o.value??0)-(e.value??0)),Q=Ie().size([s,b]).paddingTop(e=>e.children&&e.children.length>0?G+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(E),se=Q.descendants().filter(e=>e.children&&e.children.length>0),R=z.selectAll(".treemapSection").data(se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",G).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),R.append("clipPath").attr("id",(e,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",G),R.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,o)=>`treemapSection section${o}`).attr("fill",e=>S(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>F(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const o=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),R.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",G/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,o)=>`url(#clip-section-${a}-${o})`).attr("style",e=>{if(e.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const o=h.select(this),g=e.data.name;o.text(g);const C=e.x1-e.x0,T=6;let _;i.showValues!==!1&&e.value?_=C-10-30-10-T:_=C-T-6;const m=Math.max(15,_),N=o.node();if(N.getComputedTextLength()>m){let V=g;for(;V.length>0;){if(V=g.substring(0,V.length-1),V.length===0){o.text("..."),N.getComputedTextLength()>m&&o.text("");break}if(o.text(V+"..."),N.getComputedTextLength()<=m)break}}}),i.showValues!==!1&&R.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",G/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?f(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")});const ee=Q.leaves(),$=ee.length>20,ie=$?16:38,X=$?14:28,P=$?4:8,I=$?4:6,J=$?2:4,te=$?8:10,U=$?1:2,Y=z.selectAll(".treemapLeafGroup").data(ee).enter().append("g").attr("class",(e,o)=>`treemapNode treemapLeafGroup leaf${o}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?S(e.parent.data.name):S(e.data.name)).attr("style",e=>h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?S(e.parent.data.name):S(e.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(e,o)=>`clip-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const o=`text-anchor: middle; dominant-baseline: middle; font-size: ${ie}px;fill:`+L(e.data.name)+";",g=h.styles2String({cssCompiledStyles:e.data.cssCompiledStyles});return o+g.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,o)=>`url(#clip-${a}-${o})`).text(e=>e.data.name).each(function(e){const o=h.select(this),g=e.x1-e.x0,C=e.y1-e.y0,T=o.node(),_=g-2*J,D=C-2*J;if(_<te||D<te){o.style("display","none");return}let m=parseInt(o.style("font-size"),10);const N=.6;for(;T.getComputedTextLength()>_&&m>P;)m--,o.style("font-size",`${m}px`);let A=Math.max(I,Math.min(X,Math.round(m*N))),k=m+U+A;for(;k>D&&m>P&&(m--,A=Math.max(I,Math.min(X,Math.round(m*N))),!(A<I&&m===P));)o.style("font-size",`${m}px`),k=m+U+A;o.style("font-size",`${m}px`),$?(m<P||D<P)&&o.style("display","none"):(T.getComputedTextLength()>_||m<P||D<m)&&o.style("display","none")}),i.showValues!==!1&&Y.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const g=`text-anchor: middle; dominant-baseline: hanging; font-size: ${X}px;fill:`+L(o.data.name)+";",C=h.styles2String({cssCompiledStyles:o.data.cssCompiledStyles});return g+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,g)=>`url(#clip-${a}-${g})`).text(o=>o.value?f(o.value):"").each(function(o){const g=h.select(this),C=this.parentNode;if(!C){g.style("display","none");return}const T=h.select(C).select(".treemapLabel");if(T.empty()||T.style("display")==="none"){g.style("display","none");return}const _=parseFloat(T.style("font-size")),m=Math.max(I,Math.min(X,Math.round(_*.6)));g.style("font-size",`${m}px`);const A=(o.y1-o.y0)/2+_/2+U;g.attr("y",A);const k=o.x1-o.x0,ae=o.y1-o.y0-4,de=k-2*J;g.node().getComputedTextLength()>de||A+m>ae||m<I?g.style("display","none"):g.style("display",null)});const oe=i.diagramPadding??8;ue.setupViewPortForSVG(w,oe,"flowchart",i?.useMaxWidth||!1)},"draw"),Xe=h.__name(function(t,a){return a.db.getClasses()},"getClasses"),Ye={draw:Ge,getClasses:Xe},je={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Je=h.__name(({treemap:t}={})=>{const a=h.getThemeVariables3(),l=h.getConfig(),n=h.cleanAndMerge(a,l.themeVariables),r=h.cleanAndMerge(je,t),i=r.titleColor??n.titleColor,d=r.labelColor??n.textColor,u=r.valueColor??n.textColor;return`
|
|
2
|
+
.treemapNode.section {
|
|
3
|
+
stroke: ${r.sectionStrokeColor};
|
|
4
|
+
stroke-width: ${r.sectionStrokeWidth};
|
|
5
|
+
fill: ${r.sectionFillColor};
|
|
6
|
+
}
|
|
7
|
+
.treemapNode.leaf {
|
|
8
|
+
stroke: ${r.leafStrokeColor};
|
|
9
|
+
stroke-width: ${r.leafStrokeWidth};
|
|
10
|
+
fill: ${r.leafFillColor};
|
|
11
|
+
}
|
|
12
|
+
.treemapLabel {
|
|
13
|
+
fill: ${d};
|
|
14
|
+
font-size: ${r.labelFontSize};
|
|
15
|
+
}
|
|
16
|
+
.treemapValue {
|
|
17
|
+
fill: ${u};
|
|
18
|
+
font-size: ${r.valueFontSize};
|
|
19
|
+
}
|
|
20
|
+
.treemapTitle {
|
|
21
|
+
fill: ${i};
|
|
22
|
+
font-size: ${r.titleFontSize};
|
|
23
|
+
}
|
|
24
|
+
`},"getStyles"),Ue=Je,Ze={parser:re,get db(){return new ne},renderer:Ye,styles:Ue};exports.diagram=Ze;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as ge } from "./chunk-JWPE2WC7-
|
|
2
|
-
import { _ as w,
|
|
3
|
-
import { s as Ne } from "./chunk-VR4S4FIN-
|
|
1
|
+
import { p as ge } from "./chunk-JWPE2WC7-Bj2m1SXZ.js";
|
|
2
|
+
import { _ as w, K as ye, D as ae, F as ee, I as Se, e as ve, l as te, bf as B, d as K, b as xe, a as be, q as we, t as Ce, g as Te, s as Le, G as $e, bg as Ae, z as Fe } from "./mermaid.core-C4EClWgB.js";
|
|
3
|
+
import { s as Ne } from "./chunk-VR4S4FIN-CyqARa17.js";
|
|
4
4
|
import { p as Me } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
5
5
|
import { b as O } from "./defaultLocale-BgPVtth8.js";
|
|
6
6
|
import { o as Q } from "./ordinal-B6-f3MAq.js";
|
|
@@ -13,13 +13,13 @@ function _e(t) {
|
|
|
13
13
|
function ke() {
|
|
14
14
|
return this.eachAfter(_e);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function ze(t, a) {
|
|
17
17
|
let l = -1;
|
|
18
18
|
for (const n of this)
|
|
19
19
|
t.call(a, n, ++l, this);
|
|
20
20
|
return this;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ve(t, a) {
|
|
23
23
|
for (var l = this, n = [l], s, i, h = -1; l = n.pop(); )
|
|
24
24
|
if (t.call(a, l, ++h, this), s = l.children)
|
|
25
25
|
for (i = s.length - 1; i >= 0; --i)
|
|
@@ -47,12 +47,12 @@ function Be(t) {
|
|
|
47
47
|
a.value = l;
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ee(t) {
|
|
51
51
|
return this.eachBefore(function(a) {
|
|
52
52
|
a.children && a.children.sort(t);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Re(t) {
|
|
56
56
|
for (var a = this, l = We(a, t), n = [a]; a !== l; )
|
|
57
57
|
a = a.parent, n.push(a);
|
|
58
58
|
for (var s = n.length; t !== l; )
|
|
@@ -66,12 +66,12 @@ function We(t, a) {
|
|
|
66
66
|
s = t, t = l.pop(), a = n.pop();
|
|
67
67
|
return s;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ie() {
|
|
70
70
|
for (var t = this, a = [t]; t = t.parent; )
|
|
71
71
|
a.push(t);
|
|
72
72
|
return a;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function He() {
|
|
75
75
|
return Array.from(this);
|
|
76
76
|
}
|
|
77
77
|
function Oe() {
|
|
@@ -97,14 +97,14 @@ function* qe() {
|
|
|
97
97
|
}
|
|
98
98
|
function ne(t, a) {
|
|
99
99
|
t instanceof Map ? (t = [void 0, t], a === void 0 && (a = je)) : a === void 0 && (a = Ye);
|
|
100
|
-
for (var l = new
|
|
100
|
+
for (var l = new U(t), n, s = [l], i, h, d, g; n = s.pop(); )
|
|
101
101
|
if ((h = a(n.data)) && (g = (h = Array.from(h)).length))
|
|
102
102
|
for (n.children = h, d = g - 1; d >= 0; --d)
|
|
103
|
-
s.push(i = h[d] = new
|
|
104
|
-
return l.eachBefore(
|
|
103
|
+
s.push(i = h[d] = new U(h[d])), i.parent = n, i.depth = n.depth + 1;
|
|
104
|
+
return l.eachBefore(Ue);
|
|
105
105
|
}
|
|
106
106
|
function Xe() {
|
|
107
|
-
return ne(this).eachBefore(
|
|
107
|
+
return ne(this).eachBefore(Ke);
|
|
108
108
|
}
|
|
109
109
|
function Ye(t) {
|
|
110
110
|
return t.children;
|
|
@@ -112,36 +112,36 @@ function Ye(t) {
|
|
|
112
112
|
function je(t) {
|
|
113
113
|
return Array.isArray(t) ? t[1] : null;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Ke(t) {
|
|
116
116
|
t.data.value !== void 0 && (t.value = t.data.value), t.data = t.data.data;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Ue(t) {
|
|
119
119
|
var a = 0;
|
|
120
120
|
do
|
|
121
121
|
t.height = a;
|
|
122
122
|
while ((t = t.parent) && t.height < ++a);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function U(t) {
|
|
125
125
|
this.data = t, this.depth = this.height = 0, this.parent = null;
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
constructor:
|
|
127
|
+
U.prototype = ne.prototype = {
|
|
128
|
+
constructor: U,
|
|
129
129
|
count: ke,
|
|
130
|
-
each:
|
|
130
|
+
each: ze,
|
|
131
131
|
eachAfter: De,
|
|
132
|
-
eachBefore:
|
|
132
|
+
eachBefore: Ve,
|
|
133
133
|
find: Pe,
|
|
134
134
|
sum: Be,
|
|
135
|
-
sort:
|
|
136
|
-
path:
|
|
137
|
-
ancestors:
|
|
138
|
-
descendants:
|
|
135
|
+
sort: Ee,
|
|
136
|
+
path: Re,
|
|
137
|
+
ancestors: Ie,
|
|
138
|
+
descendants: He,
|
|
139
139
|
leaves: Oe,
|
|
140
140
|
links: Ge,
|
|
141
141
|
copy: Xe,
|
|
142
142
|
[Symbol.iterator]: qe
|
|
143
143
|
};
|
|
144
|
-
function
|
|
144
|
+
function Ze(t) {
|
|
145
145
|
if (typeof t != "function") throw new Error();
|
|
146
146
|
return t;
|
|
147
147
|
}
|
|
@@ -153,7 +153,7 @@ function q(t) {
|
|
|
153
153
|
return t;
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Je(t) {
|
|
157
157
|
t.x0 = Math.round(t.x0), t.y0 = Math.round(t.y0), t.x1 = Math.round(t.x1), t.y1 = Math.round(t.y1);
|
|
158
158
|
}
|
|
159
159
|
function Qe(t, a, l, n, s) {
|
|
@@ -166,17 +166,17 @@ function et(t, a, l, n, s) {
|
|
|
166
166
|
}
|
|
167
167
|
var tt = (1 + Math.sqrt(5)) / 2;
|
|
168
168
|
function at(t, a, l, n, s, i) {
|
|
169
|
-
for (var h = [], d = a.children, g, c, u = 0, b = 0, r = d.length, x, S, v = a.value, p, y, N, $,
|
|
169
|
+
for (var h = [], d = a.children, g, c, u = 0, b = 0, r = d.length, x, S, v = a.value, p, y, N, $, V, W, M; u < r; ) {
|
|
170
170
|
x = s - l, S = i - n;
|
|
171
171
|
do
|
|
172
172
|
p = d[b++].value;
|
|
173
173
|
while (!p && b < r);
|
|
174
|
-
for (y = N = p, W = Math.max(S / x, x / S) / (v * t), M = p * p * W,
|
|
175
|
-
if (p += c = d[b].value, c < y && (y = c), c > N && (N = c), M = p * p * W, $ = Math.max(N / M, M / y), $ >
|
|
174
|
+
for (y = N = p, W = Math.max(S / x, x / S) / (v * t), M = p * p * W, V = Math.max(N / M, M / y); b < r; ++b) {
|
|
175
|
+
if (p += c = d[b].value, c < y && (y = c), c > N && (N = c), M = p * p * W, $ = Math.max(N / M, M / y), $ > V) {
|
|
176
176
|
p -= c;
|
|
177
177
|
break;
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
V = $;
|
|
180
180
|
}
|
|
181
181
|
h.push(g = { value: p, dice: x < S, children: d.slice(u, b) }), g.dice ? Qe(g, l, n, s, v ? n += S * p / v : i) : et(g, l, n, v ? l += x * p / v : s, i), v -= p, u = b;
|
|
182
182
|
}
|
|
@@ -193,7 +193,7 @@ const nt = (function t(a) {
|
|
|
193
193
|
function lt() {
|
|
194
194
|
var t = nt, a = !1, l = 1, n = 1, s = [0], i = G, h = G, d = G, g = G, c = G;
|
|
195
195
|
function u(r) {
|
|
196
|
-
return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), s = [0], a && r.eachBefore(
|
|
196
|
+
return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), s = [0], a && r.eachBefore(Je), r;
|
|
197
197
|
}
|
|
198
198
|
function b(r) {
|
|
199
199
|
var x = s[r.depth], S = r.x0 + x, v = r.y0 + x, p = r.x1 - x, y = r.y1 - x;
|
|
@@ -204,7 +204,7 @@ function lt() {
|
|
|
204
204
|
}, u.size = function(r) {
|
|
205
205
|
return arguments.length ? (l = +r[0], n = +r[1], u) : [l, n];
|
|
206
206
|
}, u.tile = function(r) {
|
|
207
|
-
return arguments.length ? (t =
|
|
207
|
+
return arguments.length ? (t = Ze(r), u) : t;
|
|
208
208
|
}, u.padding = function(r) {
|
|
209
209
|
return arguments.length ? u.paddingInner(r).paddingOuter(r) : u.paddingInner();
|
|
210
210
|
}, u.paddingInner = function(r) {
|
|
@@ -221,7 +221,7 @@ function lt() {
|
|
|
221
221
|
return arguments.length ? (c = typeof r == "function" ? r : q(+r), u) : c;
|
|
222
222
|
}, u;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var R, oe = (R = class {
|
|
225
225
|
constructor() {
|
|
226
226
|
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = xe, this.getAccTitle = be, this.setDiagramTitle = we, this.getDiagramTitle = Ce, this.getAccDescription = Te, this.setAccDescription = Le;
|
|
227
227
|
}
|
|
@@ -256,7 +256,7 @@ var E, oe = (E = class {
|
|
|
256
256
|
clear() {
|
|
257
257
|
Fe(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
|
|
258
258
|
}
|
|
259
|
-
}, w(
|
|
259
|
+
}, w(R, "TreeMapDB"), R);
|
|
260
260
|
function ce(t) {
|
|
261
261
|
if (!t.length)
|
|
262
262
|
return [];
|
|
@@ -319,11 +319,11 @@ var st = /* @__PURE__ */ w((t, a) => {
|
|
|
319
319
|
throw te.error("Error parsing treemap:", a), a;
|
|
320
320
|
}
|
|
321
321
|
}, "parse")
|
|
322
|
-
}, it = 10,
|
|
322
|
+
}, it = 10, E = 10, X = 25, ot = /* @__PURE__ */ w((t, a, l, n) => {
|
|
323
323
|
const s = n.db, i = s.getConfig(), h = i.padding ?? it, d = s.getDiagramTitle(), g = s.getRoot(), { themeVariables: c } = ae();
|
|
324
324
|
if (!g)
|
|
325
325
|
return;
|
|
326
|
-
const u = d ? 30 : 0, b = Se(a), r = i.nodeWidth ? i.nodeWidth *
|
|
326
|
+
const u = d ? 30 : 0, b = Se(a), r = i.nodeWidth ? i.nodeWidth * E : 960, x = i.nodeHeight ? i.nodeHeight * E : 500, S = r, v = x + u;
|
|
327
327
|
b.attr("viewBox", `0 0 ${S} ${v}`), ve(b, v, S, i.useMaxWidth);
|
|
328
328
|
let p;
|
|
329
329
|
try {
|
|
@@ -384,15 +384,15 @@ var st = /* @__PURE__ */ w((t, a) => {
|
|
|
384
384
|
c.cScaleLabel11
|
|
385
385
|
]);
|
|
386
386
|
d && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d);
|
|
387
|
-
const
|
|
388
|
-
(e) => e.children && e.children.length > 0 ? X +
|
|
389
|
-
).paddingInner(h).paddingLeft((e) => e.children && e.children.length > 0 ?
|
|
390
|
-
|
|
387
|
+
const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), W = ne(g).sum((e) => e.value ?? 0).sort((e, o) => (o.value ?? 0) - (e.value ?? 0)), le = lt().size([r, x]).paddingTop(
|
|
388
|
+
(e) => e.children && e.children.length > 0 ? X + E : 0
|
|
389
|
+
).paddingInner(h).paddingLeft((e) => e.children && e.children.length > 0 ? E : 0).paddingRight((e) => e.children && e.children.length > 0 ? E : 0).paddingBottom((e) => e.children && e.children.length > 0 ? E : 0).round(!0)(W), de = le.descendants().filter((e) => e.children && e.children.length > 0), I = V.selectAll(".treemapSection").data(de).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
390
|
+
I.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", X).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), I.append("clipPath").attr("id", (e, o) => `clip-section-${a}-${o}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", X), I.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, o) => `treemapSection section${o}`).attr("fill", (e) => y(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => N(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
|
|
391
391
|
if (e.depth === 0)
|
|
392
392
|
return "display: none;";
|
|
393
393
|
const o = B({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
394
394
|
return o.nodeStyles + ";" + o.borderStyles.join(";");
|
|
395
|
-
}),
|
|
395
|
+
}), I.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", X / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("clip-path", (e, o) => `url(#clip-section-${a}-${o})`).attr("style", (e) => {
|
|
396
396
|
if (e.depth === 0)
|
|
397
397
|
return "display: none;";
|
|
398
398
|
const o = "dominant-baseline: middle; font-size: 12px; fill:" + $(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = B({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
@@ -400,35 +400,35 @@ var st = /* @__PURE__ */ w((t, a) => {
|
|
|
400
400
|
}).each(function(e) {
|
|
401
401
|
if (e.depth === 0)
|
|
402
402
|
return;
|
|
403
|
-
const o =
|
|
403
|
+
const o = K(this), f = e.data.name;
|
|
404
404
|
o.text(f);
|
|
405
405
|
const C = e.x1 - e.x0, L = 6;
|
|
406
406
|
let T;
|
|
407
407
|
i.showValues !== !1 && e.value ? T = C - 10 - 30 - 10 - L : T = C - L - 6;
|
|
408
408
|
const m = Math.max(15, T), _ = o.node();
|
|
409
409
|
if (_.getComputedTextLength() > m) {
|
|
410
|
-
let
|
|
411
|
-
for (;
|
|
412
|
-
if (
|
|
410
|
+
let z = f;
|
|
411
|
+
for (; z.length > 0; ) {
|
|
412
|
+
if (z = f.substring(0, z.length - 1), z.length === 0) {
|
|
413
413
|
o.text("..."), _.getComputedTextLength() > m && o.text("");
|
|
414
414
|
break;
|
|
415
415
|
}
|
|
416
|
-
if (o.text(
|
|
416
|
+
if (o.text(z + "..."), _.getComputedTextLength() <= m)
|
|
417
417
|
break;
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
-
}), i.showValues !== !1 &&
|
|
420
|
+
}), i.showValues !== !1 && I.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", X / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? p(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
|
|
421
421
|
if (e.depth === 0)
|
|
422
422
|
return "display: none;";
|
|
423
423
|
const o = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + $(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = B({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
424
424
|
return o + f.labelStyles.replace("color:", "fill:");
|
|
425
425
|
});
|
|
426
|
-
const se = le.leaves(), A = se.length > 20, ue = A ? 16 : 38, Y = A ? 14 : 28, D = A ? 4 : 8,
|
|
426
|
+
const se = le.leaves(), A = se.length > 20, ue = A ? 16 : 38, Y = A ? 14 : 28, D = A ? 4 : 8, H = A ? 4 : 6, Z = A ? 2 : 4, re = A ? 8 : 10, J = A ? 1 : 2, j = V.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class", (e, o) => `treemapNode treemapLeafGroup leaf${o}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
427
427
|
j.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? y(e.parent.data.name) : y(e.data.name)).attr("style", (e) => B({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? y(e.parent.data.name) : y(e.data.name)).attr("stroke-width", 3), j.append("clipPath").attr("id", (e, o) => `clip-${a}-${o}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), j.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
|
|
428
428
|
const o = `text-anchor: middle; dominant-baseline: middle; font-size: ${ue}px;fill:` + $(e.data.name) + ";", f = B({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
429
429
|
return o + f.labelStyles.replace("color:", "fill:");
|
|
430
430
|
}).attr("clip-path", (e, o) => `url(#clip-${a}-${o})`).text((e) => e.data.name).each(function(e) {
|
|
431
|
-
const o =
|
|
431
|
+
const o = K(this), f = e.x1 - e.x0, C = e.y1 - e.y0, L = o.node(), T = f - 2 * Z, P = C - 2 * Z;
|
|
432
432
|
if (T < re || P < re) {
|
|
433
433
|
o.style("display", "none");
|
|
434
434
|
return;
|
|
@@ -438,14 +438,14 @@ var st = /* @__PURE__ */ w((t, a) => {
|
|
|
438
438
|
for (; L.getComputedTextLength() > T && m > D; )
|
|
439
439
|
m--, o.style("font-size", `${m}px`);
|
|
440
440
|
let F = Math.max(
|
|
441
|
-
|
|
441
|
+
H,
|
|
442
442
|
Math.min(Y, Math.round(m * _))
|
|
443
|
-
), k = m +
|
|
443
|
+
), k = m + J + F;
|
|
444
444
|
for (; k > P && m > D && (m--, F = Math.max(
|
|
445
|
-
|
|
445
|
+
H,
|
|
446
446
|
Math.min(Y, Math.round(m * _))
|
|
447
|
-
), !(F <
|
|
448
|
-
o.style("font-size", `${m}px`), k = m +
|
|
447
|
+
), !(F < H && m === D)); )
|
|
448
|
+
o.style("font-size", `${m}px`), k = m + J + F;
|
|
449
449
|
o.style("font-size", `${m}px`), A ? (m < D || P < D) && o.style("display", "none") : (L.getComputedTextLength() > T || m < D || P < m) && o.style("display", "none");
|
|
450
450
|
}), i.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (o) => (o.x1 - o.x0) / 2).attr("y", function(o) {
|
|
451
451
|
return (o.y1 - o.y0) / 2;
|
|
@@ -453,25 +453,25 @@ var st = /* @__PURE__ */ w((t, a) => {
|
|
|
453
453
|
const f = `text-anchor: middle; dominant-baseline: hanging; font-size: ${Y}px;fill:` + $(o.data.name) + ";", C = B({ cssCompiledStyles: o.data.cssCompiledStyles });
|
|
454
454
|
return f + C.labelStyles.replace("color:", "fill:");
|
|
455
455
|
}).attr("clip-path", (o, f) => `url(#clip-${a}-${f})`).text((o) => o.value ? p(o.value) : "").each(function(o) {
|
|
456
|
-
const f =
|
|
456
|
+
const f = K(this), C = this.parentNode;
|
|
457
457
|
if (!C) {
|
|
458
458
|
f.style("display", "none");
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
461
|
-
const L =
|
|
461
|
+
const L = K(C).select(".treemapLabel");
|
|
462
462
|
if (L.empty() || L.style("display") === "none") {
|
|
463
463
|
f.style("display", "none");
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
466
466
|
const T = parseFloat(L.style("font-size")), m = Math.max(
|
|
467
|
-
|
|
467
|
+
H,
|
|
468
468
|
Math.min(Y, Math.round(T * 0.6))
|
|
469
469
|
);
|
|
470
470
|
f.style("font-size", `${m}px`);
|
|
471
|
-
const F = (o.y1 - o.y0) / 2 + T / 2 +
|
|
471
|
+
const F = (o.y1 - o.y0) / 2 + T / 2 + J;
|
|
472
472
|
f.attr("y", F);
|
|
473
|
-
const k = o.x1 - o.x0, ie = o.y1 - o.y0 - 4, me = k - 2 *
|
|
474
|
-
f.node().getComputedTextLength() > me || F + m > ie || m <
|
|
473
|
+
const k = o.x1 - o.x0, ie = o.y1 - o.y0 - 4, me = k - 2 * Z;
|
|
474
|
+
f.node().getComputedTextLength() > me || F + m > ie || m < H ? f.style("display", "none") : f.style("display", null);
|
|
475
475
|
});
|
|
476
476
|
const pe = i.diagramPadding ?? 8;
|
|
477
477
|
Ne(b, pe, "flowchart", i?.useMaxWidth || !1);
|