@pb33f/cowboy-components 0.13.0 → 0.14.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/dist/{_baseUniq-D4w9OEfi.cjs → _baseUniq-BCBHARBa.cjs} +1 -1
- package/dist/{_baseUniq-CwhnPBuZ.js → _baseUniq-DxKTOiyd.js} +74 -74
- package/dist/arc-BuSUjh0s.js +84 -0
- package/dist/arc-CH-0H1TF.cjs +1 -0
- package/dist/{architecture-YZFGNWBL-BSnkfFiL.cjs → architecture-YZFGNWBL-BPn_727R.cjs} +1 -1
- package/dist/{architecture-YZFGNWBL-Cv-BGlq1.js → architecture-YZFGNWBL-BTpBH05L.js} +1 -1
- package/dist/{architectureDiagram-Q4EWVU46-Bi5_oLbN.js → architectureDiagram-Q4EWVU46-CYewkKfJ.js} +4 -4
- package/dist/{architectureDiagram-Q4EWVU46-7qN01149.cjs → architectureDiagram-Q4EWVU46-DiD3e6PQ.cjs} +1 -1
- package/dist/blockDiagram-DXYQGD6D-B1FzGfTA.cjs +132 -0
- package/dist/{blockDiagram-DXYQGD6D-DPZDIH8c.js → blockDiagram-DXYQGD6D-C1Xzgnrv.js} +18 -17
- package/dist/{c4Diagram-AHTNJAMY-CzTGAiLN.js → c4Diagram-AHTNJAMY-L6Az2dvx.js} +2 -2
- package/dist/{c4Diagram-AHTNJAMY-vYFfYNT2.cjs → c4Diagram-AHTNJAMY-c5bsYT5q.cjs} +1 -1
- package/dist/change-list-item-4xBSo3-U.cjs +4586 -0
- package/dist/change-list-item-Bu_mPv-k.js +19108 -0
- package/dist/{channel-xkWi7eyU.cjs → channel-BR_Krb9l.cjs} +1 -1
- package/dist/channel-Bo_TnECw.js +5 -0
- package/dist/{chunk-4BX2VUAB-D5fkGnKT.cjs → chunk-4BX2VUAB-B1uaSl0e.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-Crsil6rQ.js → chunk-4BX2VUAB-ClX8oE7L.js} +1 -1
- package/dist/{chunk-4TB4RGXK-BK_Zwn1u.cjs → chunk-4TB4RGXK-D0JpJZOs.cjs} +1 -1
- package/dist/{chunk-4TB4RGXK-CqgUAjqs.js → chunk-4TB4RGXK-DzEEAztK.js} +5 -5
- package/dist/{chunk-55IACEB6-CVOd63y7.cjs → chunk-55IACEB6-595ZDi6s.cjs} +1 -1
- package/dist/{chunk-55IACEB6-BHM-gGnN.js → chunk-55IACEB6-DL_DHCyZ.js} +1 -1
- package/dist/{chunk-EDXVE4YY-XhKW7gue.js → chunk-EDXVE4YY-BII9TpbV.js} +1 -1
- package/dist/{chunk-EDXVE4YY-Cg8LIvnn.cjs → chunk-EDXVE4YY-CQbtNtXr.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-ClqO-tFT.cjs → chunk-FMBD7UC4-BO92YnlB.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-DZgUWYcc.js → chunk-FMBD7UC4-cN7XywSK.js} +1 -1
- package/dist/{chunk-OYMX7WX6-DPeZUR-5.cjs → chunk-OYMX7WX6-BxqhsynN.cjs} +1 -1
- package/dist/{chunk-OYMX7WX6-DDhPRCvb.js → chunk-OYMX7WX6-DTXPUCgU.js} +35 -35
- package/dist/{chunk-QZHKN3VN-CEfUDcqe.js → chunk-QZHKN3VN-Biauj3yN.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DfLK5brs.cjs → chunk-QZHKN3VN-C-mnteH7.cjs} +1 -1
- package/dist/{chunk-YZCP3GAM-CUdZyEqp.cjs → chunk-YZCP3GAM-WiD5REgL.cjs} +1 -1
- package/dist/{chunk-YZCP3GAM-BseNjeX_.js → chunk-YZCP3GAM-eo-UEr6G.js} +1 -1
- package/dist/{classDiagram-v2-HSJHXN6E-DY4pBvUq.js → classDiagram-6PBFFD2Q-8kzuzUL4.js} +2 -2
- package/dist/{classDiagram-6PBFFD2Q-DANanUVD.cjs → classDiagram-6PBFFD2Q-ay2Efc0y.cjs} +1 -1
- package/dist/{classDiagram-6PBFFD2Q-DY4pBvUq.js → classDiagram-v2-HSJHXN6E-8kzuzUL4.js} +2 -2
- package/dist/{classDiagram-v2-HSJHXN6E-DANanUVD.cjs → classDiagram-v2-HSJHXN6E-ay2Efc0y.cjs} +1 -1
- package/dist/{clone-Dd6Qonyi.js → clone-CC2YvoOD.js} +1 -1
- package/dist/clone-DAIpdsWe.cjs +1 -0
- package/dist/components/diff-viewer/diff-viewer.d.ts +3 -0
- package/dist/components/diff-viewer/diff-viewer.js +34 -37
- package/dist/components/diff-viewer/line-renderer.d.ts +15 -0
- package/dist/components/diff-viewer/line-renderer.js +49 -0
- package/dist/components/footer/footer.d.ts +3 -0
- package/dist/components/footer/footer.js +10 -4
- package/dist/components/logo-wall/logos/apache.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/apache.svg.js +100 -0
- package/dist/components/logo-wall/logos/apideck.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/apideck.svg.js +14 -0
- package/dist/components/logo-wall/logos/apigee.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/apigee.svg.js +16 -0
- package/dist/components/logo-wall/logos/bump.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/bump.svg.js +14 -0
- package/dist/components/logo-wall/logos/bytebase.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/bytebase.svg.js +11 -0
- package/dist/components/logo-wall/logos/chainlink.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/chainlink.svg.js +18 -0
- package/dist/components/logo-wall/logos/cisco.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/cisco.svg.js +14 -0
- package/dist/components/logo-wall/logos/elastic.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/elastic.svg.js +14 -0
- package/dist/components/logo-wall/logos/google.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/google.svg.js +12 -0
- package/dist/components/logo-wall/logos/grafana.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/grafana.svg.js +14 -0
- package/dist/components/logo-wall/logos/hashicorp.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/hashicorp.svg.js +18 -0
- package/dist/components/logo-wall/logos/hasura.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/hasura.svg.js +14 -0
- package/dist/components/logo-wall/logos/jpmorgan.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/jpmorgan.svg.js +22 -0
- package/dist/components/logo-wall/logos/kong.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/kong.svg.js +13 -0
- package/dist/components/logo-wall/logos/mongodb.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/mongodb.svg.js +17 -0
- package/dist/components/logo-wall/logos/nhost.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/nhost.svg.js +9 -0
- package/dist/components/logo-wall/logos/okta.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/okta.svg.js +8 -0
- package/dist/components/logo-wall/logos/opentelemetry.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/opentelemetry.svg.js +8 -0
- package/dist/components/logo-wall/logos/prometheus.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/prometheus.svg.js +8 -0
- package/dist/components/logo-wall/logos/pulumi.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/pulumi.svg.js +10 -0
- package/dist/components/logo-wall/logos/redhat.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/redhat.svg.js +8 -0
- package/dist/components/logo-wall/logos/scalar.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/scalar.svg.js +19 -0
- package/dist/components/logo-wall/logos/splunk.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/splunk.svg.js +8 -0
- package/dist/components/logo-wall/logos/unkey.svg.d.ts +2 -0
- package/dist/components/logo-wall/logos/unkey.svg.js +15 -0
- package/dist/components/logo-wall/logowall.d.ts +2 -24
- package/dist/components/logo-wall/logowall.js +58 -373
- package/dist/components/model-tree/tree.js +1 -2
- package/dist/components/premium-gate/premium-gate.css.js +18 -1
- package/dist/components/premium-gate/premium-gate.js +2 -2
- package/dist/components/problem-list/problem-item.js +3 -2
- package/dist/components/problem-list/problem-list.d.ts +2 -0
- package/dist/components/problem-list/problem-list.js +26 -7
- package/dist/components/problems-overview/problem-overview-group.js +2 -1
- package/dist/components/visualizer/edge.d.ts +6 -2
- package/dist/components/visualizer/edge.js +26 -4
- package/dist/components/visualizer/equalizer.css.js +11 -2
- package/dist/components/visualizer/explorer.d.ts +3 -1
- package/dist/components/visualizer/explorer.js +51 -59
- package/dist/components/visualizer/nodes/change-view-node.d.ts +2 -2
- package/dist/components/visualizer/nodes/change-view-node.js +10 -6
- package/dist/components/visualizer/nodes/graph-node.d.ts +12 -8
- package/dist/components/visualizer/nodes/graph-node.js +47 -25
- package/dist/components/visualizer/nodes/schema.d.ts +7 -0
- package/dist/components/visualizer/nodes/schema.js +81 -59
- package/dist/components/visualizer/shared.css.js +48 -10
- package/dist/components/visualizer/viewport-position.d.ts +28 -0
- package/dist/components/visualizer/viewport-position.js +38 -0
- package/dist/components/workspaces/workspace-view.js +10 -7
- package/dist/components/yaml-viewer/yaml-viewer.css.d.ts +2 -0
- package/dist/components/yaml-viewer/yaml-viewer.css.js +45 -0
- package/dist/components/yaml-viewer/yaml-viewer.d.ts +22 -0
- package/dist/components/yaml-viewer/yaml-viewer.js +86 -0
- package/dist/controllers/problem-controller.d.ts +1 -0
- package/dist/controllers/problem-controller.js +40 -24
- package/dist/{cose-bilkent-S5V4N54A-CPd0mzpZ.js → cose-bilkent-S5V4N54A-BvU_SKfP.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-BEI30FIt.cjs → cose-bilkent-S5V4N54A-CjLPT2aq.cjs} +1 -1
- package/dist/{cowboy-components-C1bHeXpH.js → cowboy-components-B5MDHQs5.js} +8691 -8836
- package/dist/{cowboy-components-BDlH5KPd.cjs → cowboy-components-DMQv-nwp.cjs} +561 -489
- package/dist/{dagre-KV5264BT-lXj1bQdQ.cjs → dagre-KV5264BT-BJ3g2OfF.cjs} +1 -1
- package/dist/{dagre-KV5264BT-DKYFh03U.js → dagre-KV5264BT-CZZ7IWMJ.js} +29 -29
- package/dist/{diagram-5BDNPKRD-B5z67jan.js → diagram-5BDNPKRD-BtgWDNH6.js} +4 -4
- package/dist/{diagram-5BDNPKRD-BxdT4j_p.cjs → diagram-5BDNPKRD-C8f_rKrj.cjs} +1 -1
- package/dist/{diagram-G4DWMVQ6-CYhKfvVo.cjs → diagram-G4DWMVQ6-CdbbbjZ1.cjs} +1 -1
- package/dist/{diagram-G4DWMVQ6-CW505eM5.js → diagram-G4DWMVQ6-Cvo7MOEn.js} +4 -4
- package/dist/{diagram-MMDJMWI5-CguvhYVm.js → diagram-MMDJMWI5-BBZMNBAZ.js} +3 -3
- package/dist/{diagram-MMDJMWI5-CnbCy2d4.cjs → diagram-MMDJMWI5-CmuOqtUd.cjs} +1 -1
- package/dist/{diagram-TYMM5635-CTqk1SDy.cjs → diagram-TYMM5635-BDWJ5rTp.cjs} +1 -1
- package/dist/{diagram-TYMM5635-DNaputK9.js → diagram-TYMM5635-BJ6YAfrg.js} +3 -3
- package/dist/{erDiagram-SMLLAGMA-CbVmsYT2.js → erDiagram-SMLLAGMA-CYctRkDG.js} +4 -4
- package/dist/{erDiagram-SMLLAGMA-C8J_QyFx.cjs → erDiagram-SMLLAGMA-oQiAbd77.cjs} +1 -1
- package/dist/events/doctor.d.ts +2 -1
- package/dist/factories/explorer-component-factory.d.ts +2 -1
- package/dist/factories/explorer-component-factory.js +1 -0
- package/dist/{flowDiagram-DWJPFMVM-CilWme2B.cjs → flowDiagram-DWJPFMVM-Cl2ZAgx-.cjs} +1 -1
- package/dist/{flowDiagram-DWJPFMVM-CzhP7Mva.js → flowDiagram-DWJPFMVM-XzVvDcKE.js} +6 -6
- package/dist/{ganttDiagram-T4ZO3ILL-D1VjNn5T.js → ganttDiagram-T4ZO3ILL-Bw3whz8Z.js} +3 -3
- package/dist/{ganttDiagram-T4ZO3ILL-CJPTfw3M.cjs → ganttDiagram-T4ZO3ILL-D6p69Xut.cjs} +1 -1
- package/dist/{gitGraph-7Q5UKJZL-KIImqmsm.js → gitGraph-7Q5UKJZL-CV8uXlc6.js} +1 -1
- package/dist/{gitGraph-7Q5UKJZL-Dt7RPGLj.cjs → gitGraph-7Q5UKJZL-Dc00T47S.cjs} +1 -1
- package/dist/{gitGraphDiagram-UUTBAWPF-RgZxgljz.cjs → gitGraphDiagram-UUTBAWPF-DO7-Vg9n.cjs} +1 -1
- package/dist/{gitGraphDiagram-UUTBAWPF-oNmbFzsW.js → gitGraphDiagram-UUTBAWPF-DyF52xzw.js} +4 -4
- package/dist/{graph-CFIa3BqY.js → graph-BNtv6wPN.js} +43 -43
- package/dist/{graph-D7t_ZgqQ.cjs → graph-nnOjqfSF.cjs} +1 -1
- package/dist/info-OMHHGYJF-BEJOj8rC.js +5 -0
- package/dist/{info-OMHHGYJF-DNwPREtC.cjs → info-OMHHGYJF-DenwEztT.cjs} +1 -1
- package/dist/{infoDiagram-42DDH7IO-xpnPsX13.cjs → infoDiagram-42DDH7IO-CDwaPJgE.cjs} +1 -1
- package/dist/{infoDiagram-42DDH7IO-D6tfy_kQ.js → infoDiagram-42DDH7IO-D5ZWT_PY.js} +2 -2
- package/dist/{ishikawaDiagram-UXIWVN3A-1C3ML4wN.js → ishikawaDiagram-UXIWVN3A-DO1TQj8y.js} +1 -1
- package/dist/{ishikawaDiagram-UXIWVN3A-cN7Egzi1.cjs → ishikawaDiagram-UXIWVN3A-DgxKja6G.cjs} +1 -1
- package/dist/{journeyDiagram-VCZTEJTY-BBnQnZeo.js → journeyDiagram-VCZTEJTY-BOrvmHFC.js} +4 -4
- package/dist/{journeyDiagram-VCZTEJTY-CuHlve7g.cjs → journeyDiagram-VCZTEJTY-CJCEu2Bp.cjs} +1 -1
- package/dist/{kanban-definition-6JOO6SKY-w_-A-pcU.cjs → kanban-definition-6JOO6SKY-DEuqG8My.cjs} +1 -1
- package/dist/{kanban-definition-6JOO6SKY-CIUOm1v3.js → kanban-definition-6JOO6SKY-DbcLaE1y.js} +22 -22
- package/dist/{layout-DkbTnSOk.cjs → layout-C5IxZs51.cjs} +1 -1
- package/dist/{layout-B94Gbndw.js → layout-US8yryxu.js} +89 -89
- package/dist/linear-Bmlq6WJ8.cjs +1 -0
- package/dist/{linear-ofqYQwLM.js → linear-D6nUCk2i.js} +26 -26
- package/dist/{mermaid-parser.core-D5yJiPW9.cjs → mermaid-parser.core-COvBhcPG.cjs} +2 -2
- package/dist/{mermaid-parser.core-SWTLxzuR.js → mermaid-parser.core-DvOBQD0s.js} +13 -13
- package/dist/{min-CCJ14kSC.cjs → min-BeG6JEx2.cjs} +1 -1
- package/dist/{min-BVt52F4Z.js → min-gCZaz5eW.js} +8 -8
- package/dist/{mindmap-definition-QFDTVHPH-BBABzpZ_.js → mindmap-definition-QFDTVHPH-Bf7uOPBO.js} +11 -11
- package/dist/{mindmap-definition-QFDTVHPH-DkHlEc6j.cjs → mindmap-definition-QFDTVHPH-Bh_mtad8.cjs} +1 -1
- package/dist/{packet-4T2RLAQJ-C_GHj8I6.js → packet-4T2RLAQJ-CnjxgpUP.js} +1 -1
- package/dist/{packet-4T2RLAQJ-D-3BTAOL.cjs → packet-4T2RLAQJ-EX3JjNtR.cjs} +1 -1
- package/dist/pie-ZZUOXDRM-B0-esN8S.js +5 -0
- package/dist/{pie-ZZUOXDRM-CCr4-X6f.cjs → pie-ZZUOXDRM-S9g0lXgu.cjs} +1 -1
- package/dist/pieDiagram-DEJITSTG-An0q-g5y.cjs +30 -0
- package/dist/{pieDiagram-DEJITSTG-oeQHkFGB.js → pieDiagram-DEJITSTG-DIkSdQCd.js} +43 -42
- package/dist/{quadrantDiagram-34T5L4WZ-CHmpNV-R.cjs → quadrantDiagram-34T5L4WZ-B5f35ihC.cjs} +1 -1
- package/dist/{quadrantDiagram-34T5L4WZ-OYjSZG43.js → quadrantDiagram-34T5L4WZ-CBlxIaIn.js} +2 -2
- package/dist/radar-PYXPWWZC-1Ezs-b76.js +5 -0
- package/dist/{radar-PYXPWWZC-C1rOl50T.cjs → radar-PYXPWWZC-C0zC2ZSo.cjs} +1 -1
- package/dist/{requirementDiagram-MS252O5E-CD_xeIto.cjs → requirementDiagram-MS252O5E-C2bJ8iZf.cjs} +1 -1
- package/dist/{requirementDiagram-MS252O5E-CwRW6-r7.js → requirementDiagram-MS252O5E-CLQv0oWl.js} +3 -3
- package/dist/{sankeyDiagram-XADWPNL6-RMkMjKAW.cjs → sankeyDiagram-XADWPNL6--gS8yJdi.cjs} +1 -1
- package/dist/{sankeyDiagram-XADWPNL6-CQfVCItY.js → sankeyDiagram-XADWPNL6-BPSHvjZ8.js} +1 -1
- package/dist/{sequenceDiagram-FGHM5R23-Bg1onFX3.cjs → sequenceDiagram-FGHM5R23-C8D7r5pW.cjs} +1 -1
- package/dist/{sequenceDiagram-FGHM5R23-CHy2erSS.js → sequenceDiagram-FGHM5R23-Pz7V2MNd.js} +3 -3
- package/dist/services/workspace-service.js +3 -3
- package/dist/stateDiagram-FHFEXIEX-BAF5DJ1S.cjs +1 -0
- package/dist/{stateDiagram-FHFEXIEX-CMl5lVVr.js → stateDiagram-FHFEXIEX-D5m6EHM0.js} +44 -43
- package/dist/{stateDiagram-v2-QKLJ7IA2-Ddx6MvoK.js → stateDiagram-v2-QKLJ7IA2-Bewn3XVh.js} +2 -2
- package/dist/{stateDiagram-v2-QKLJ7IA2-k0ixVO2x.cjs → stateDiagram-v2-QKLJ7IA2-D8ygFuIi.cjs} +1 -1
- package/dist/{timeline-definition-GMOUNBTQ-tsduD7s8.cjs → timeline-definition-GMOUNBTQ-DGnNWVK8.cjs} +1 -1
- package/dist/{timeline-definition-GMOUNBTQ-wGoPQPZW.js → timeline-definition-GMOUNBTQ-D_q_Aq0R.js} +23 -23
- package/dist/{treeView-SZITEDCU-DLnrlNgm.js → treeView-SZITEDCU-CJ-dtg22.js} +1 -1
- package/dist/{treeView-SZITEDCU-0cNlhBgJ.cjs → treeView-SZITEDCU-D_h6_ShC.cjs} +1 -1
- package/dist/{treemap-W4RFUUIX-BhmjFGQ3.js → treemap-W4RFUUIX-B9GQw9aZ.js} +1 -1
- package/dist/{treemap-W4RFUUIX-CKAFw4rq.cjs → treemap-W4RFUUIX-BtKxSF22.cjs} +1 -1
- package/dist/{vennDiagram-DHZGUBPP-D0_k6R1t.js → vennDiagram-DHZGUBPP-JEim8wmH.js} +59 -59
- package/dist/{vennDiagram-DHZGUBPP-cIbatSRt.cjs → vennDiagram-DHZGUBPP-amyk4YMx.cjs} +1 -1
- package/dist/{wardley-RL74JXVD-E_57jQp4.cjs → wardley-RL74JXVD-Cni1Bfk_.cjs} +1 -1
- package/dist/{wardley-RL74JXVD-ClNl5KuH.js → wardley-RL74JXVD-sMbm0y_r.js} +1 -1
- package/dist/{wardleyDiagram-NUSXRM2D-DrU9h_lF.cjs → wardleyDiagram-NUSXRM2D-BxrRpNG2.cjs} +1 -1
- package/dist/{wardleyDiagram-NUSXRM2D-CdC2HbGc.js → wardleyDiagram-NUSXRM2D-C2MLJ-IT.js} +3 -3
- package/dist/workers/elk-fake-worker.generated.d.ts +3 -0
- package/dist/workers/elk-fake-worker.generated.js +50224 -0
- package/dist/workers/elk-layout-blob.generated.js +16 -18
- package/dist/workers/elk-layout.worker.js +5 -2
- package/dist/{xychartDiagram-5P7HB3ND-y-_Hnheq.js → xychartDiagram-5P7HB3ND-CSCEAZnj.js} +8 -7
- package/dist/{xychartDiagram-5P7HB3ND-BsPkSpoT.cjs → xychartDiagram-5P7HB3ND-CpDJRyka.cjs} +4 -4
- package/package.json +11 -2
- package/dist/arc-C1ekKGkb.js +0 -83
- package/dist/arc-R701-DfQ.cjs +0 -1
- package/dist/blockDiagram-DXYQGD6D-C72mCfQb.cjs +0 -132
- package/dist/change-list-item-BEl0JMXU.js +0 -18744
- package/dist/change-list-item-BQAfTtYI.cjs +0 -4535
- package/dist/channel-Bcdtr5hc.js +0 -5
- package/dist/clone-xz9tAnT8.cjs +0 -1
- package/dist/info-OMHHGYJF-CoCJYW0-.js +0 -5
- package/dist/linear-C0WOPIXr.cjs +0 -1
- package/dist/pie-ZZUOXDRM-BZwBUxgW.js +0 -5
- package/dist/pieDiagram-DEJITSTG-DpV5UNcT.cjs +0 -30
- package/dist/radar-PYXPWWZC-CeYN6kDE.js +0 -5
- package/dist/stateDiagram-FHFEXIEX-CYMON_a_.cjs +0 -1
package/dist/channel-Bcdtr5hc.js
DELETED
package/dist/clone-xz9tAnT8.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./graph-D7t_ZgqQ.cjs");var r=4;function c(e){return n.baseClone(e,r)}exports.clone=c;
|
package/dist/linear-C0WOPIXr.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const m=require("./cowboy-components-BDlH5KPd.cjs"),x=require("./init-CHZsXQcr.cjs"),g=require("./defaultLocale-C4wbwF1n.cjs");function p(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function D(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function d(n){let r,t,e;n.length!==2?(r=p,t=(a,f)=>p(n(a),f),e=(a,f)=>n(a)-f):(r=n===p||n===D?n:F,t=n,e=n);function u(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<0?i=l+1:s=l}while(i<s)}return i}function c(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<=0?i=l+1:s=l}while(i<s)}return i}function o(a,f,i=0,s=a.length){const l=u(a,f,i,s-1);return l>i&&e(a[l-1],f)>-e(a[l],f)?l-1:l}return{left:u,center:o,right:c}}function F(){return 0}function $(n){return n===null?NaN:+n}const z=d(p),B=z.right;d($).center;const I=Math.sqrt(50),P=Math.sqrt(10),V=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),c=e/Math.pow(10,u),o=c>=I?10:c>=P?5:c>=V?2:1;let a,f,i;return u<0?(i=Math.pow(10,-u)/o,a=Math.round(n*i),f=Math.round(r*i),a/i<n&&++a,f/i>r&&--f,i=-i):(i=Math.pow(10,u)*o,a=Math.round(n/i),f=Math.round(r/i),a*i<n&&++a,f*i>r&&--f),f<a&&.5<=t&&t<2?v(n,r,t*2):[a,f,i]}function C(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,c,o]=e?v(r,n,t):v(n,r,t);if(!(c>=u))return[];const a=c-u+1,f=new Array(a);if(e)if(o<0)for(let i=0;i<a;++i)f[i]=(c-i)/-o;else for(let i=0;i<a;++i)f[i]=(c-i)*o;else if(o<0)for(let i=0;i<a;++i)f[i]=(u+i)/-o;else for(let i=0;i<a;++i)f[i]=(u+i)*o;return f}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function A(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function L(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(c){for(u=0;u<t;++u)e[u]=n[u]*(1-c)+r[u]*c;return e}}function O(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function T(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),c=new Array(t),o;for(o=0;o<e;++o)u[o]=w(n[o],r[o]);for(;o<t;++o)c[o]=r[o];return function(a){for(o=0;o<e;++o)c[o]=u[o](a);return c}}function E(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function G(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=w(n[u],r[u]):e[u]=r[u];return function(c){for(u in t)e[u]=t[u](c);return e}}function w(n,r){var t=typeof r,e;return r==null||t==="boolean"?m.constant$1(r):(t==="number"?m.interpolateNumber:t==="string"?(e=m.color(r))?(r=e,m.interpolateRgb):m.interpolateString:r instanceof m.color?m.interpolateRgb:r instanceof Date?E:O(r)?L:Array.isArray(r)?T:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?G:m.interpolateNumber)(n,r)}function H(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function J(n){return Math.max(0,-g.exponent(Math.abs(n)))}function K(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g.exponent(r)/3)))*3-g.exponent(Math.abs(n)))}function Q(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g.exponent(r)-g.exponent(n))+1}function U(n){return function(){return n}}function W(n){return+n}var k=[0,1];function M(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:U(isNaN(r)?NaN:.5)}function X(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Y(n,r,t){var e=n[0],u=n[1],c=r[0],o=r[1];return u<e?(e=N(u,e),c=t(o,c)):(e=N(e,u),c=t(c,o)),function(a){return c(e(a))}}function Z(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),c=new Array(e),o=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++o<e;)u[o]=N(n[o],n[o+1]),c[o]=t(r[o],r[o+1]);return function(a){var f=B(n,a,1,e)-1;return c[f](u[f](a))}}function R(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _(){var n=k,r=k,t=w,e,u,c,o=M,a,f,i;function s(){var h=Math.min(n.length,r.length);return o!==M&&(o=X(n[0],n[h-1])),a=h>2?Z:Y,f=i=null,l}function l(h){return h==null||isNaN(h=+h)?c:(f||(f=a(n.map(e),r,t)))(e(o(h)))}return l.invert=function(h){return o(u((i||(i=a(r,n.map(e),m.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,W),s()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),s()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),t=H,s()},l.clamp=function(h){return arguments.length?(o=h?!0:M,s()):o!==M},l.interpolate=function(h){return arguments.length?(t=h,s()):t},l.unknown=function(h){return arguments.length?(c=h,l):c},function(h,j){return e=h,u=j,s()}}function q(){return _()(M,M)}function b(n,r,t,e){var u=A(n,r,t),c;switch(e=g.formatSpecifier(e??",f"),e.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(c=K(u,o))&&(e.precision=c),g.formatPrefix(e,o)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(c=Q(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=c-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(c=J(u))&&(e.precision=c-(e.type==="%")*2);break}}return g.format(e)}function nn(n){var r=n.domain;return n.ticks=function(t){var e=r();return C(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return b(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,c=e.length-1,o=e[u],a=e[c],f,i,s=10;for(a<o&&(i=o,o=a,a=i,i=u,u=c,c=i);s-- >0;){if(i=y(o,a,t),i===f)return e[u]=o,e[c]=a,r(e);if(i>0)o=Math.floor(o/i)*i,a=Math.ceil(a/i)*i;else if(i<0)o=Math.ceil(o*i)/i,a=Math.floor(a*i)/i;else break;f=i}return n},n}function S(){var n=q();return n.copy=function(){return R(n,S())},x.initRange.apply(n,arguments),nn(n)}exports.bisector=d;exports.continuous=q;exports.copy=R;exports.linear=S;exports.tickStep=A;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./cowboy-components-BDlH5KPd.cjs"),Z=require("./chunk-4BX2VUAB-D5fkGnKT.cjs"),H=require("./mermaid-parser.core-D5yJiPW9.cjs"),G=require("./arc-R701-DfQ.cjs"),J=require("./ordinal-CagbB1m8.cjs");function K(e,a){return a<e?-1:a>e?1:a>=e?0:NaN}function Q(e){return e}function Y(){var e=Q,a=K,f=null,y=t.constant(0),l=t.constant(t.tau),d=t.constant(0);function s(n){var i,c=(n=t.array(n)).length,p,h,v=0,u=new Array(c),o=new Array(c),x=+y.apply(this,arguments),S=Math.min(t.tau,Math.max(-t.tau,l.apply(this,arguments)-x)),m,D=Math.min(Math.abs(S)/c,d.apply(this,arguments)),C=D*(S<0?-1:1),g;for(i=0;i<c;++i)(g=o[u[i]=i]=+e(n[i],i,n))>0&&(v+=g);for(a!=null?u.sort(function(A,w){return a(o[A],o[w])}):f!=null&&u.sort(function(A,w){return f(n[A],n[w])}),i=0,h=v?(S-c*C)/v:0;i<c;++i,x=m)p=u[i],g=o[p],m=x+(g>0?g*h:0)+C,o[p]={data:n[p],index:i,value:g,startAngle:x,endAngle:m,padAngle:D};return o}return s.value=function(n){return arguments.length?(e=typeof n=="function"?n:t.constant(+n),s):e},s.sortValues=function(n){return arguments.length?(a=n,f=null,s):a},s.sort=function(n){return arguments.length?(f=n,a=null,s):f},s.startAngle=function(n){return arguments.length?(y=typeof n=="function"?n:t.constant(+n),s):y},s.endAngle=function(n){return arguments.length?(l=typeof n=="function"?n:t.constant(+n),s):l},s.padAngle=function(n){return arguments.length?(d=typeof n=="function"?n:t.constant(+n),s):d},s}var ee=t.defaultConfig_default.pie,M={sections:new Map,showData:!1},T=M.sections,E=M.showData,te=structuredClone(ee),ne=t.__name(()=>structuredClone(te),"getConfig"),ae=t.__name(()=>{T=new Map,E=M.showData,t.clear()},"clear"),re=t.__name(({label:e,value:a})=>{if(a<0)throw new Error(`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);T.has(e)||(T.set(e,a),t.log.debug(`added new section: ${e}, with value: ${a}`))},"addSection"),ie=t.__name(()=>T,"getSections"),oe=t.__name(e=>{E=e},"setShowData"),le=t.__name(()=>E,"getShowData"),L={getConfig:ne,clear:ae,setDiagramTitle:t.setDiagramTitle,getDiagramTitle:t.getDiagramTitle,setAccTitle:t.setAccTitle,getAccTitle:t.getAccTitle,setAccDescription:t.setAccDescription,getAccDescription:t.getAccDescription,addSection:re,getSections:ie,setShowData:oe,getShowData:le},se=t.__name((e,a)=>{Z.populateCommonDb(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)},"populateDb"),ce={parse:t.__name(async e=>{const a=await H.parse("pie",e);t.log.debug(a),se(a,L)},"parse")},ue=t.__name(e=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${e.pieStrokeColor};
|
|
4
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
-
opacity : ${e.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieOuterCircle{
|
|
8
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
-
fill: none;
|
|
11
|
-
}
|
|
12
|
-
.pieTitleText {
|
|
13
|
-
text-anchor: middle;
|
|
14
|
-
font-size: ${e.pieTitleTextSize};
|
|
15
|
-
fill: ${e.pieTitleTextColor};
|
|
16
|
-
font-family: ${e.fontFamily};
|
|
17
|
-
}
|
|
18
|
-
.slice {
|
|
19
|
-
font-family: ${e.fontFamily};
|
|
20
|
-
fill: ${e.pieSectionTextColor};
|
|
21
|
-
font-size:${e.pieSectionTextSize};
|
|
22
|
-
// fill: white;
|
|
23
|
-
}
|
|
24
|
-
.legend text {
|
|
25
|
-
fill: ${e.pieLegendTextColor};
|
|
26
|
-
font-family: ${e.fontFamily};
|
|
27
|
-
font-size: ${e.pieLegendTextSize};
|
|
28
|
-
}
|
|
29
|
-
`,"getStyles"),ge=ue,de=t.__name(e=>{const a=[...e.values()].reduce((l,d)=>l+d,0),f=[...e.entries()].map(([l,d])=>({label:l,value:d})).filter(l=>l.value/a*100>=1);return Y().value(l=>l.value).sort(null)(f)},"createPieArcs"),pe=t.__name((e,a,f,y)=>{t.log.debug(`rendering pie chart
|
|
30
|
-
`+e);const l=y.db,d=t.getConfig2(),s=t.cleanAndMerge(l.getConfig(),d.pie),n=40,i=18,c=4,p=450,h=p,v=t.selectSvgElement(a),u=v.append("g");u.attr("transform","translate("+h/2+","+p/2+")");const{themeVariables:o}=d;let[x]=t.parseFontSize(o.pieOuterStrokeWidth);x??=2;const S=s.textPosition,m=Math.min(h,p)/2-n,D=G.d3arc().innerRadius(0).outerRadius(m),C=G.d3arc().innerRadius(m*S).outerRadius(m*S);u.append("circle").attr("cx",0).attr("cy",0).attr("r",m+x/2).attr("class","pieOuterCircle");const g=l.getSections(),A=de(g),w=[o.pie1,o.pie2,o.pie3,o.pie4,o.pie5,o.pie6,o.pie7,o.pie8,o.pie9,o.pie10,o.pie11,o.pie12];let _=0;g.forEach(r=>{_+=r});const R=A.filter(r=>(r.data.value/_*100).toFixed(0)!=="0"),$=J.ordinal(w).domain([...g.keys()]);u.selectAll("mySlices").data(R).enter().append("path").attr("d",D).attr("fill",r=>$(r.data.label)).attr("class","pieCircle"),u.selectAll("mySlices").data(R).enter().append("text").text(r=>(r.data.value/_*100).toFixed(0)+"%").attr("transform",r=>"translate("+C.centroid(r)+")").style("text-anchor","middle").attr("class","slice");const N=u.append("text").text(l.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),W=[...g.entries()].map(([r,k])=>({label:r,value:k})),b=u.selectAll(".legend").data(W).enter().append("g").attr("class","legend").attr("transform",(r,k)=>{const P=i+c,U=P*W.length/2,j=12*i,X=k*P-U;return"translate("+j+","+X+")"});b.append("rect").attr("width",i).attr("height",i).style("fill",r=>$(r.label)).style("stroke",r=>$(r.label)),b.append("text").attr("x",i+c).attr("y",i-c).text(r=>l.getShowData()?`${r.label} [${r.value}]`:r.label);const O=Math.max(...b.selectAll("text").nodes().map(r=>r?.getBoundingClientRect().width??0)),I=h+n+i+c+O,z=N.node()?.getBoundingClientRect().width??0,q=h/2-z/2,V=h/2+z/2,B=Math.min(0,q),F=Math.max(I,V)-B;v.attr("viewBox",`${B} 0 ${F} ${p}`),t.configureSvgSize(v,p,F,s.useMaxWidth)},"draw"),fe={draw:pe},he={parser:ce,db:L,renderer:fe,styles:ge};exports.diagram=he;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./chunk-OYMX7WX6-DPeZUR-5.cjs"),t=require("./cowboy-components-BDlH5KPd.cjs"),T=require("./graph-D7t_ZgqQ.cjs"),H=require("./layout-DkbTnSOk.cjs");var z=t.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),L=t.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),W=t.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),A=t.__name((e,n)=>{const d=t.__name(function(s,m,u){const B=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(m);u||B.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),o=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=o.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,r=!0;n.descriptions.forEach(function(s){i||(d(h,s,r),r=!1),i=!1});const y=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,o.width);return y.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),G=t.__name((e,n,d)=>{const g=t.getConfig2().state.padding,o=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,r=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=r.node().getBBox().width+o;let c=Math.max(p,h);c===h&&(c=c+o);let s;const m=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-m.x)<g&&p>h&&(s=i-(p-h)/2);const u=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",u).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",m.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),r.attr("x",s+g),p<=h&&r.attr("x",i+(c-o)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",m.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),P=t.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),R=t.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let o=d;d=g,g=o}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),U=t.__name((e,n,d,g)=>{let o=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let r=1.25*t.getConfig2().state.noteMargin;for(const y of i){const p=y.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),r===0){const s=c.node().getBBox();r+=s.height}o+=r,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+o+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:o}},"_drawLongText"),D=t.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:o,textHeight:l}=U(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",o+t.getConfig2().state.noteMargin*2),d},"drawNote"),k=t.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},o=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&z(o),n.type==="end"&&P(o),(n.type==="fork"||n.type==="join")&&R(o,n),n.type==="note"&&D(n.note.text,o),n.type==="divider"&&L(o),n.type==="default"&&n.descriptions.length===0&&W(o,n),n.type==="default"&&n.descriptions.length>0&&A(o,n);const l=o.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),N=0,F=t.__name(function(e,n,d){const g=t.__name(function(r){switch(r){case _.StateDB.relationType.AGGREGATION:return"aggregation";case _.StateDB.relationType.EXTENSION:return"extension";case _.StateDB.relationType.COMPOSITION:return"composition";case _.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(r=>!Number.isNaN(r.y));const o=n.points,l=t.line().x(function(r){return r.x}).y(function(r){return r.y}).curve(t.curveBasis),h=e.append("path").attr("d",l(o)).attr("id","edge"+N).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(_.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:p}=t.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const m=[];let u=0,B=0;for(let x=0;x<=c.length;x++){const f=r.append("text").attr("text-anchor","middle").text(c[x]).attr("x",y).attr("y",p+s),C=f.node().getBBox();u=Math.max(u,C.width),B=Math.min(B,C.x),t.log.info(C.x,y,p+s),s===0&&(s=f.node().getBBox().height,t.log.info("Title height",s,p)),m.push(f)}let S=s*c.length;if(c.length>1){const x=(c.length-1)*s*.5;m.forEach((f,C)=>f.attr("y",p+C*s-x)),S=s*c.length}const a=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-u/2-t.getConfig2().state.padding/2).attr("y",p-S/2-t.getConfig2().state.padding/2-3.5).attr("width",u+t.getConfig2().state.padding).attr("height",S+t.getConfig2().state.padding),t.log.info(a)}N++},"drawEdge"),w,E={},O=t.__name(function(){},"setConf"),X=t.__name(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),q=t.__name(function(e,n,d,g){w=t.getConfig2().state;const o=t.getConfig2().securityLevel;let l;o==="sandbox"&&(l=t.select("#i"+n));const h=o==="sandbox"?t.select(l.nodes()[0].contentDocument.body):t.select("body"),i=o==="sandbox"?l.nodes()[0].contentDocument:document;t.log.debug("Rendering diagram "+e);const r=h.select(`[id='${n}']`);X(r);const y=g.db.getRootDoc(),p=r.append("g").attr("id",n+"-root");M(y,p,void 0,!1,h,i,g);const c=w.padding,s=r.node().getBBox(),m=s.width+c*2,u=s.height+c*2,B=m*1.75;t.configureSvgSize(r,u,B,w.useMaxWidth),r.attr("viewBox",`${s.x-w.padding} ${s.y-w.padding} `+m+" "+u)},"draw"),J=t.__name(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),M=t.__name((e,n,d,g,o,l,h)=>{const i=new T.Graph({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const x=p[a];d&&(x.parentId=d);let f;if(x.doc){let C=n.append("g").attr("id",x.id).attr("class","stateGroup");f=M(x.doc,C,x.id,!g,o,l,h);{C=G(C,x,g);let b=C.node().getBBox();f.width=b.width,f.height=b.height+w.padding/2,E[x.id]={y:w.compositTitleSize}}}else f=k(n,x,i);if(x.note){const C={descriptions:[],id:x.id+"-note",note:x.note,type:"note"},b=k(n,C,i);x.note.position==="left of"?(i.setNode(f.id+"-note",b),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",b)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}t.log.debug("Count=",i.nodeCount(),i);let m=0;c.forEach(function(a){m++,t.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:J(a.title),height:w.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+m)}),H.layout(i),t.log.debug("Graph after layout",i.nodes());const u=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(t.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),o.select("#"+u.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(E[a]?E[a].y:0)-i.node(a).height/2)+" )"),o.select("#"+u.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+u.id+" #"+a+" .divider").forEach(f=>{const C=f.parentElement;let b=0,v=0;C&&(C.parentElement&&(b=C.parentElement.getBBox().width),v=parseInt(C.getAttribute("data-x-shift"),10),Number.isNaN(v)&&(v=0)),f.setAttribute("x1",0-v+8),f.setAttribute("x2",b-v-8)})):t.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let B=u.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(t.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),F(n,i.edge(a),i.edge(a).relation))}),B=u.getBBox();const S={id:d||"root",label:d||"root",width:0,height:0};return S.width=B.width+2*w.padding,S.height=B.height+2*w.padding,t.log.debug("Doc rendered",S,i),S},"renderDoc"),Y={setConf:O,draw:q},$={parser:_.stateDiagram_default,get db(){return new _.StateDB(1)},renderer:Y,styles:_.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=$;
|