mermaid 10.1.0 → 10.2.0-rc.2
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 +38 -0
- package/dist/Diagram.d.ts +3 -3
- package/dist/__mocks__/mermaidAPI.d.ts +9 -9
- package/dist/_commonjsHelpers-10dfc225.js +8 -0
- package/dist/_commonjsHelpers-7a77ea84.js +8 -0
- package/dist/accessibility.d.ts +1 -1
- package/dist/{arc-c50f0902.js → arc-70fbcd47.js} +1 -2
- package/dist/arc-946b2f4b.js +84 -0
- package/dist/array-2ff2c7a6.js +0 -1
- package/dist/array-b7dcf730.js +0 -1
- package/dist/{c4Diagram-be8b5c2c.js → c4Diagram-b95ced5f.js} +1 -4
- package/dist/{c4Diagram-d4b415eb.js → c4Diagram-c876f6db.js} +8 -11
- package/dist/{c4Diagram-44c43e89.js → c4Diagram-f5d2cde2.js} +5 -7
- package/dist/{classDiagram-6d218cdd.js → classDiagram-0c982ffd.js} +5 -8
- package/dist/classDiagram-4a10da53.js +91 -0
- package/dist/{classDiagram-634fc78b.js → classDiagram-a1474e8b.js} +8 -10
- package/dist/{classDiagram-v2-556a8c31.js → classDiagram-v2-92b33047.js} +28 -31
- package/dist/{classDiagram-v2-6aaa1e9f.js → classDiagram-v2-a748dad2.js} +10 -13
- package/dist/{classDiagram-v2-72bddc41.js → classDiagram-v2-eb70fbc1.js} +14 -16
- package/dist/config.d.ts +1 -1
- package/dist/config.type.d.ts +1 -1
- package/dist/constant-2fe7eae5.js +0 -1
- package/dist/constant-b644328d.js +0 -1
- package/dist/createText-b59432cf.js +962 -0
- package/dist/{createText-1f5f8f92.js → createText-ba094351.js} +1 -3
- package/dist/{createText-b0d5c0ec.js → createText-ece947b1.js} +128 -279
- package/dist/dagre-wrapper/index.d.ts +1 -1
- package/dist/dagre-wrapper/intersect/index.d.ts +5 -5
- package/dist/dagre-wrapper/nodes.d.ts +1 -1
- package/dist/dagre-wrapper/shapes/note.d.ts +1 -1
- package/dist/dagre-wrapper/shapes/util.d.ts +2 -2
- package/dist/defaultConfig.d.ts +1 -1
- package/dist/diagram-api/detectType.d.ts +2 -2
- package/dist/diagram-api/diagramAPI.d.ts +4 -4
- package/dist/diagram-api/frontmatter.d.ts +1 -1
- package/dist/diagram-api/types.d.ts +3 -3
- package/dist/diagrams/c4/c4Db.d.ts +5 -5
- package/dist/diagrams/c4/c4Detector.d.ts +1 -1
- package/dist/diagrams/c4/c4Diagram.d.ts +1 -1
- package/dist/diagrams/c4/svgDraw.d.ts +1 -1
- package/dist/diagrams/class/classDb.d.ts +2 -2
- package/dist/diagrams/class/classDetector-V2.d.ts +1 -1
- package/dist/diagrams/class/classDetector.d.ts +1 -1
- package/dist/diagrams/class/classDiagram-v2.d.ts +1 -1
- package/dist/diagrams/class/classDiagram.d.ts +1 -1
- package/dist/diagrams/class/classDiagramGrammar.spec.d.ts +1 -0
- package/dist/diagrams/class/classParser.spec.d.ts +1 -0
- package/dist/diagrams/class/classRenderer-v2.d.ts +3 -3
- package/dist/diagrams/class/classTypes.d.ts +2 -2
- package/dist/diagrams/class/svgDraw.d.ts +2 -0
- package/dist/diagrams/common/common.d.ts +2 -2
- package/dist/diagrams/er/erDb.d.ts +7 -7
- package/dist/diagrams/er/erDetector.d.ts +1 -1
- package/dist/diagrams/er/erDiagram.d.ts +1 -1
- package/dist/diagrams/error/errorDiagram.d.ts +1 -1
- package/dist/diagrams/flowchart/elk/detector.d.ts +1 -1
- package/dist/diagrams/flowchart/elk/flowRenderer-elk.d.ts +1 -1
- package/dist/diagrams/flowchart/elk/flowchart-elk-definition.d.ts +2 -2
- package/dist/diagrams/flowchart/flowDb.d.ts +7 -7
- package/dist/diagrams/flowchart/flowDetector-v2.d.ts +1 -1
- package/dist/diagrams/flowchart/flowDetector.d.ts +1 -1
- package/dist/diagrams/flowchart/flowDiagram-v2.d.ts +4 -4
- package/dist/diagrams/flowchart/flowDiagram.d.ts +4 -4
- package/dist/diagrams/flowchart/flowRenderer-v2.d.ts +1 -1
- package/dist/diagrams/gantt/ganttDb.d.ts +8 -8
- package/dist/diagrams/gantt/ganttDetector.d.ts +1 -1
- package/dist/diagrams/gantt/ganttDiagram.d.ts +1 -1
- package/dist/diagrams/git/gitGraphAst.d.ts +7 -7
- package/dist/diagrams/git/gitGraphDetector.d.ts +1 -1
- package/dist/diagrams/git/gitGraphDiagram.d.ts +1 -1
- package/dist/diagrams/info/infoDb.d.ts +1 -1
- package/dist/diagrams/info/infoDetector.d.ts +1 -1
- package/dist/diagrams/info/infoDiagram.d.ts +1 -1
- package/dist/diagrams/mindmap/detector.d.ts +1 -1
- package/dist/diagrams/mindmap/mindmap-definition.d.ts +1 -1
- package/dist/diagrams/mindmap/mindmapDb.d.ts +1 -1
- package/dist/diagrams/pie/pieDb.d.ts +7 -7
- package/dist/diagrams/pie/pieDetector.d.ts +1 -1
- package/dist/diagrams/pie/pieDiagram.d.ts +1 -1
- package/dist/diagrams/requirement/requirementDb.d.ts +4 -4
- package/dist/diagrams/requirement/requirementDetector.d.ts +1 -1
- package/dist/diagrams/requirement/requirementDiagram.d.ts +1 -1
- package/dist/diagrams/sequence/sequenceDb.d.ts +7 -7
- package/dist/diagrams/sequence/sequenceDetector.d.ts +1 -1
- package/dist/diagrams/sequence/sequenceDiagram.d.ts +1 -1
- package/dist/diagrams/sequence/sequenceRenderer.d.ts +1 -1
- package/dist/diagrams/sequence/svgDraw.d.ts +1 -1
- package/dist/diagrams/state/stateDb.d.ts +7 -7
- package/dist/diagrams/state/stateDetector-V2.d.ts +1 -1
- package/dist/diagrams/state/stateDetector.d.ts +1 -1
- package/dist/diagrams/state/stateDiagram-v2.d.ts +1 -1
- package/dist/diagrams/state/stateDiagram.d.ts +1 -1
- package/dist/diagrams/state/stateRenderer-v2.d.ts +1 -1
- package/dist/diagrams/timeline/detector.d.ts +1 -1
- package/dist/diagrams/timeline/timeline-definition.d.ts +2 -2
- package/dist/diagrams/timeline/timelineDb.d.ts +1 -1
- package/dist/diagrams/timeline/timelineRenderer.d.ts +2 -2
- package/dist/diagrams/user-journey/journeyDb.d.ts +7 -7
- package/dist/diagrams/user-journey/journeyDetector.d.ts +1 -1
- package/dist/diagrams/user-journey/journeyDiagram.d.ts +1 -1
- package/dist/{edges-17d4be60.js → edges-3b94f4fd.js} +76 -47
- package/dist/{edges-de377bae.js → edges-3bb2400e.js} +287 -263
- package/dist/{edges-2e77835f.js → edges-a7093453.js} +75 -46
- package/dist/{erDiagram-215b0341.js → erDiagram-9456d8b5.js} +30 -33
- package/dist/{erDiagram-dfd3761e.js → erDiagram-d0da1881.js} +3 -6
- package/dist/{erDiagram-20cc9db4.js → erDiagram-ddb17351.js} +5 -7
- package/dist/{flowDb-39497bf7.js → flowDb-70916696.js} +129 -132
- package/dist/{flowDb-bb61b53c.js → flowDb-8b412562.js} +1 -4
- package/dist/{flowDb-52e24d17.js → flowDb-fd209938.js} +1 -4
- package/dist/{flowDiagram-3d69eb42.js → flowDiagram-311f5cbb.js} +10 -13
- package/dist/{flowDiagram-46a15f6f.js → flowDiagram-4df3d8bd.js} +12 -14
- package/dist/{flowDiagram-7d05970f.js → flowDiagram-c2d82f80.js} +44 -47
- package/dist/{flowDiagram-v2-8e52592d.js → flowDiagram-v2-75d8257b.js} +14 -16
- package/dist/flowDiagram-v2-943efd10.js +31 -0
- package/dist/flowDiagram-v2-f3e78a93.js +24 -0
- package/dist/{flowchart-elk-definition-859d9cf8.js → flowchart-elk-definition-2b215622.js} +174 -174
- package/dist/{flowchart-elk-definition-55d9b0bb.js → flowchart-elk-definition-5ff46b8e.js} +433 -433
- package/dist/{flowchart-elk-definition-a44a74cb.js → flowchart-elk-definition-d897f429.js} +176 -176
- package/dist/ganttDiagram-3879534c.js +2941 -0
- package/dist/{ganttDiagram-536170c3.js → ganttDiagram-75ea16ef.js} +411 -330
- package/dist/{ganttDiagram-04e74c0a.js → ganttDiagram-ccf90456.js} +8 -10
- package/dist/{gitGraphDiagram-fb502d5b.js → gitGraphDiagram-37200646.js} +3 -7
- package/dist/{gitGraphDiagram-0a645df6.js → gitGraphDiagram-4f36bb7b.js} +6 -9
- package/dist/{gitGraphDiagram-603d2a33.js → gitGraphDiagram-a4e07274.js} +73 -77
- package/dist/{index-6271e032.js → index-2af91da1.js} +53 -52
- package/dist/{index-c47ff54b.js → index-36dc82bb.js} +38 -37
- package/dist/{index-5219d011.js → index-b64db51d.js} +37 -36
- package/dist/{infoDiagram-388842fb.js → infoDiagram-1ed922be.js} +6 -7
- package/dist/{infoDiagram-24bbb26e.js → infoDiagram-52ef8f3a.js} +1 -2
- package/dist/{infoDiagram-69ec1a58.js → infoDiagram-54d6527e.js} +7 -3
- package/dist/init-cc95ec8e.js +0 -1
- package/dist/init-f9637058.js +0 -1
- package/dist/{is_dark-b77964f3.js → is_dark-6623f59e.js} +1 -2
- package/dist/is_dark-abf00017.js +8 -0
- package/dist/{journeyDiagram-55528350.js → journeyDiagram-773b05c6.js} +2 -5
- package/dist/{journeyDiagram-420adb66.js → journeyDiagram-e1054eca.js} +27 -30
- package/dist/{journeyDiagram-d38aa57d.js → journeyDiagram-e6382907.js} +6 -8
- package/dist/{layout-492ec81d.js → layout-55cb0439.js} +128 -130
- package/dist/{layout-3ff13c4c.js → layout-ecdf20b6.js} +1 -3
- package/dist/{line-fbe8f138.js → line-1f113163.js} +1 -2
- package/dist/{line-05ccbb85.js → line-c8edd8dc.js} +3 -4
- package/dist/logger.d.ts +1 -1
- package/dist/mermaid-72e0d5b8.js +8878 -0
- package/dist/{commonDb-573409be.js → mermaid-c7ace86b.js} +4207 -254
- package/dist/{commonDb-89160e91.js → mermaid-e58b1357.js} +6966 -1111
- package/dist/mermaid.core.mjs +6 -220
- package/dist/mermaid.d.ts +7 -7
- package/dist/mermaid.esm.min.mjs +2 -167
- package/dist/mermaid.esm.mjs +2 -254
- package/dist/mermaid.js +168204 -0
- package/dist/mermaid.min.js +1621 -0
- package/dist/mermaid.spec.d.ts +1 -1
- package/dist/mermaidAPI.d.ts +3 -3
- package/dist/{mindmap-definition-65b51176.js → mindmap-definition-6e9762f2.js} +5 -7
- package/dist/{mindmap-definition-57c198db.js → mindmap-definition-98d1965f.js} +8 -10
- package/dist/{mindmap-definition-b90592f0.js → mindmap-definition-f3cbfc46.js} +21 -23
- package/dist/{pieDiagram-db1a8a21.js → pieDiagram-5b2a9afe.js} +5 -7
- package/dist/{pieDiagram-ffb7c1e5.js → pieDiagram-afafb3ad.js} +36 -39
- package/dist/{pieDiagram-9555168c.js → pieDiagram-e3ffbc2b.js} +2 -5
- package/dist/{requirementDiagram-ff8da15b.js → requirementDiagram-7e083487.js} +5 -8
- package/dist/{requirementDiagram-b9649942.js → requirementDiagram-a6174ef2.js} +7 -9
- package/dist/{requirementDiagram-51a5ec78.js → requirementDiagram-e95169f7.js} +12 -15
- package/dist/{selectAll-7c7a6d44.js → selectAll-ab1383e1.js} +1 -2
- package/dist/{selectAll-4d781168.js → selectAll-dfc663f2.js} +1 -2
- package/dist/{sequenceDiagram-446df3e4.js → sequenceDiagram-16cea160.js} +5 -7
- package/dist/{sequenceDiagram-a52c6980.js → sequenceDiagram-25d36321.js} +2 -5
- package/dist/{sequenceDiagram-3b765acc.js → sequenceDiagram-81e990df.js} +90 -93
- package/dist/{stateDiagram-d14e810e.js → stateDiagram-13e4fffc.js} +67 -70
- package/dist/{stateDiagram-d53d2428.js → stateDiagram-6f151933.js} +7 -9
- package/dist/{stateDiagram-2fc945a0.js → stateDiagram-bca4b4de.js} +4 -7
- package/dist/{stateDiagram-v2-9765461d.js → stateDiagram-v2-2bc83218.js} +15 -20
- package/dist/stateDiagram-v2-6caac43d.js +194 -0
- package/dist/{stateDiagram-v2-660a5d6e.js → stateDiagram-v2-a8f19f03.js} +11 -17
- package/dist/{styles-b64b35cd.js → styles-2232dd58.js} +276 -279
- package/dist/{styles-16907e1b.js → styles-2f4b7797.js} +110 -113
- package/dist/{styles-55de9f38.js → styles-38f96656.js} +40 -44
- package/dist/{styles-26373982.js → styles-842c025f.js} +5 -7
- package/dist/{styles-47a825a5.js → styles-b60e9292.js} +5 -9
- package/dist/{styles-a8f89eec.js → styles-b6fad316.js} +5 -9
- package/dist/{styles-fd236c01.js → styles-cd5a3d33.js} +7 -9
- package/dist/{styles-3ce90e7a.js → styles-d0c219f4.js} +22 -24
- package/dist/{styles-123f2a17.js → styles-f61a4d56.js} +110 -113
- package/dist/styles.d.ts +1 -1
- package/dist/styles.spec.d.ts +1 -0
- package/dist/svgDraw-060b6641.js +186 -0
- package/dist/{svgDraw-dd61ddfa.js → svgDraw-4d13ab5c.js} +35 -22
- package/dist/{svgDraw-2526cba0.js → svgDraw-f7d59fb6.js} +34 -21
- package/dist/tests/MockedD3.d.ts +17 -17
- package/dist/themes/index.d.ts +5 -5
- package/dist/themes/theme-base.d.ts +2 -0
- package/dist/themes/theme-dark.d.ts +40 -31
- package/dist/themes/theme-default.d.ts +16 -16
- package/dist/themes/theme-forest.d.ts +27 -19
- package/dist/themes/theme-helpers.d.ts +1 -1
- package/dist/themes/theme-neutral.d.ts +20 -20
- package/dist/{timeline-definition-de69aca6.js → timeline-definition-38993d3e.js} +6 -5
- package/dist/{timeline-definition-472c301b.js → timeline-definition-65e215f6.js} +3 -5
- package/dist/{timeline-definition-f3a4334c.js → timeline-definition-fb5ca19e.js} +20 -22
- package/dist/utils.d.ts +1 -1
- package/package.json +30 -26
- package/dist/arc-c50f0902.js.map +0 -1
- package/dist/arc-f7872e1e.js +0 -85
- package/dist/arc-f7872e1e.js.map +0 -1
- package/dist/array-2ff2c7a6.js.map +0 -1
- package/dist/array-b7dcf730.js.map +0 -1
- package/dist/c4Diagram-44c43e89.js.map +0 -1
- package/dist/c4Diagram-be8b5c2c.js.map +0 -1
- package/dist/c4Diagram-d4b415eb.js.map +0 -1
- package/dist/classDiagram-634fc78b.js.map +0 -1
- package/dist/classDiagram-6d218cdd.js.map +0 -1
- package/dist/classDiagram-7b4b2ee6.js +0 -94
- package/dist/classDiagram-7b4b2ee6.js.map +0 -1
- package/dist/classDiagram-v2-556a8c31.js.map +0 -1
- package/dist/classDiagram-v2-6aaa1e9f.js.map +0 -1
- package/dist/classDiagram-v2-72bddc41.js.map +0 -1
- package/dist/commonDb-41f8b4c5.js +0 -5186
- package/dist/commonDb-41f8b4c5.js.map +0 -1
- package/dist/commonDb-573409be.js.map +0 -1
- package/dist/commonDb-89160e91.js.map +0 -1
- package/dist/constant-2fe7eae5.js.map +0 -1
- package/dist/constant-b644328d.js.map +0 -1
- package/dist/createText-1f5f8f92.js.map +0 -1
- package/dist/createText-23817c58.js +0 -1093
- package/dist/createText-23817c58.js.map +0 -1
- package/dist/createText-b0d5c0ec.js.map +0 -1
- package/dist/edges-17d4be60.js.map +0 -1
- package/dist/edges-2e77835f.js.map +0 -1
- package/dist/edges-de377bae.js.map +0 -1
- package/dist/erDiagram-20cc9db4.js.map +0 -1
- package/dist/erDiagram-215b0341.js.map +0 -1
- package/dist/erDiagram-dfd3761e.js.map +0 -1
- package/dist/flowDb-39497bf7.js.map +0 -1
- package/dist/flowDb-52e24d17.js.map +0 -1
- package/dist/flowDb-bb61b53c.js.map +0 -1
- package/dist/flowDiagram-3d69eb42.js.map +0 -1
- package/dist/flowDiagram-46a15f6f.js.map +0 -1
- package/dist/flowDiagram-7d05970f.js.map +0 -1
- package/dist/flowDiagram-v2-6bfe9e0e.js +0 -27
- package/dist/flowDiagram-v2-6bfe9e0e.js.map +0 -1
- package/dist/flowDiagram-v2-8e52592d.js.map +0 -1
- package/dist/flowDiagram-v2-e9772692.js +0 -34
- package/dist/flowDiagram-v2-e9772692.js.map +0 -1
- package/dist/flowchart-elk-definition-55d9b0bb.js.map +0 -1
- package/dist/flowchart-elk-definition-859d9cf8.js.map +0 -1
- package/dist/flowchart-elk-definition-a44a74cb.js.map +0 -1
- package/dist/ganttDiagram-04e74c0a.js.map +0 -1
- package/dist/ganttDiagram-536170c3.js.map +0 -1
- package/dist/ganttDiagram-6b6599ba.js +0 -2976
- package/dist/ganttDiagram-6b6599ba.js.map +0 -1
- package/dist/gitGraphDiagram-0a645df6.js.map +0 -1
- package/dist/gitGraphDiagram-603d2a33.js.map +0 -1
- package/dist/gitGraphDiagram-fb502d5b.js.map +0 -1
- package/dist/index-5219d011.js.map +0 -1
- package/dist/index-6271e032.js.map +0 -1
- package/dist/index-c47ff54b.js.map +0 -1
- package/dist/infoDiagram-24bbb26e.js.map +0 -1
- package/dist/infoDiagram-388842fb.js.map +0 -1
- package/dist/infoDiagram-69ec1a58.js.map +0 -1
- package/dist/init-cc95ec8e.js.map +0 -1
- package/dist/init-f9637058.js.map +0 -1
- package/dist/is_dark-a2294536.js +0 -9
- package/dist/is_dark-a2294536.js.map +0 -1
- package/dist/is_dark-b77964f3.js.map +0 -1
- package/dist/journeyDiagram-420adb66.js.map +0 -1
- package/dist/journeyDiagram-55528350.js.map +0 -1
- package/dist/journeyDiagram-d38aa57d.js.map +0 -1
- package/dist/layout-3ff13c4c.js.map +0 -1
- package/dist/layout-492ec81d.js.map +0 -1
- package/dist/line-05ccbb85.js.map +0 -1
- package/dist/line-fbe8f138.js.map +0 -1
- package/dist/mermaid.core.mjs.map +0 -1
- package/dist/mermaid.esm.min.mjs.map +0 -1
- package/dist/mermaid.esm.mjs.map +0 -1
- package/dist/mermaidAPI-3ae0f2f0.js +0 -820
- package/dist/mermaidAPI-3ae0f2f0.js.map +0 -1
- package/dist/mermaidAPI-67f627de.js +0 -867
- package/dist/mermaidAPI-67f627de.js.map +0 -1
- package/dist/mermaidAPI-c841a67f.js +0 -1281
- package/dist/mermaidAPI-c841a67f.js.map +0 -1
- package/dist/mindmap-definition-57c198db.js.map +0 -1
- package/dist/mindmap-definition-65b51176.js.map +0 -1
- package/dist/mindmap-definition-b90592f0.js.map +0 -1
- package/dist/pieDiagram-9555168c.js.map +0 -1
- package/dist/pieDiagram-db1a8a21.js.map +0 -1
- package/dist/pieDiagram-ffb7c1e5.js.map +0 -1
- package/dist/requirementDiagram-51a5ec78.js.map +0 -1
- package/dist/requirementDiagram-b9649942.js.map +0 -1
- package/dist/requirementDiagram-ff8da15b.js.map +0 -1
- package/dist/selectAll-4d781168.js.map +0 -1
- package/dist/selectAll-7c7a6d44.js.map +0 -1
- package/dist/sequenceDiagram-3b765acc.js.map +0 -1
- package/dist/sequenceDiagram-446df3e4.js.map +0 -1
- package/dist/sequenceDiagram-a52c6980.js.map +0 -1
- package/dist/stateDiagram-2fc945a0.js.map +0 -1
- package/dist/stateDiagram-d14e810e.js.map +0 -1
- package/dist/stateDiagram-d53d2428.js.map +0 -1
- package/dist/stateDiagram-v2-660a5d6e.js.map +0 -1
- package/dist/stateDiagram-v2-9765461d.js.map +0 -1
- package/dist/stateDiagram-v2-c3d22c51.js +0 -199
- package/dist/stateDiagram-v2-c3d22c51.js.map +0 -1
- package/dist/styles-123f2a17.js.map +0 -1
- package/dist/styles-16907e1b.js.map +0 -1
- package/dist/styles-26373982.js.map +0 -1
- package/dist/styles-3ce90e7a.js.map +0 -1
- package/dist/styles-47a825a5.js.map +0 -1
- package/dist/styles-55de9f38.js.map +0 -1
- package/dist/styles-a8f89eec.js.map +0 -1
- package/dist/styles-b64b35cd.js.map +0 -1
- package/dist/styles-fd236c01.js.map +0 -1
- package/dist/svgDraw-0a992cdb.js +0 -177
- package/dist/svgDraw-0a992cdb.js.map +0 -1
- package/dist/svgDraw-2526cba0.js.map +0 -1
- package/dist/svgDraw-dd61ddfa.js.map +0 -1
- package/dist/timeline-definition-472c301b.js.map +0 -1
- package/dist/timeline-definition-de69aca6.js.map +0 -1
- package/dist/timeline-definition-f3a4334c.js.map +0 -1
- package/dist/utils-1aebe9b6.js +0 -4193
- package/dist/utils-1aebe9b6.js.map +0 -1
- package/dist/utils-8ea37061.js +0 -2628
- package/dist/utils-8ea37061.js.map +0 -1
- package/dist/utils-d622194a.js +0 -2930
- package/dist/utils-d622194a.js.map +0 -1
package/README.md
CHANGED
|
@@ -226,6 +226,44 @@ pie
|
|
|
226
226
|
|
|
227
227
|
### Git graph [experimental - <a href="https://mermaid.live/edit#pako:eNqNkMFugzAMhl8F-VyVAR1tOW_aA-zKxSSGRCMJCk6lCvHuNZPKZdM0n-zf3_8r8QIqaIIGMqnB8kfEybQ--y4VnLP8-9RF9Mpkmm40hmlnDKmvkPiH_kfS7nFo_VN0FAf6XwocQGgxa_nGsm1bYEOOWmik1dRjGrmF1q-Cpkkj07u2HCI0PY4zHQATh8-7V9BwTPSE3iwOEd1OjQE1iWkBvk_bzQY7s0Sq4Hs7bHqKo8iGeZqbPN_WR7mpSd1RHpvPVhuMbG7XOq_L-oJlRfW5wteq0qorrpe-PBW9Pr8UJcK6rg-BLYPQ">live editor</a>]
|
|
228
228
|
|
|
229
|
+
### Bar chart (using gantt chart) [<a href="https://mermaid-js.github.io/mermaid/#/gantt">docs</a> - <a href="https://mermaid.live/edit#pako:eNptkU1vhCAQhv8KIenNugiI4rkf6bmXpvEyFVxJFDYyNt1u9r8X63Z7WQ9m5pknLzieaBeMpQ3dg0dsPUkPOhwteXZIXmJcbCT3xMAxkuh8Z8kIEclyMIB209fqKcwTICFvG4IvFy_oLrZ-g9F26ILfQgvNFN94VaRXQ1iWqpumZBcu1J8p1E1TXDx59eQNr5LyEqjJn6hv5QnGNlxevZJmdLLpy5xJSzut45biYCfb0iaVxvawjNjS1p-TCguG16PvaIPzYjO67e3BwX6GiTY9jPFKH43DMF_hGMDY1J4oHg-_f8hFTJFd8L3br3yZx4QHxENsdrt1nO8dDstH3oVpF50ZYMbhU6ud4qoGLqyqBJRCmO6j0HXPZdGbihUc6Pmc0QP49xD-b5X69ZQv2gjO81IwzWqhC1lKrjJ6pA3nVS7SMiVjrKirWlYp5fs3osgrWeo00lorLWvOzz8JVbXm">live editor</a>]
|
|
230
|
+
|
|
231
|
+
```
|
|
232
|
+
gantt
|
|
233
|
+
title Git Issues - days since last update
|
|
234
|
+
dateFormat X
|
|
235
|
+
axisFormat %s
|
|
236
|
+
|
|
237
|
+
section Issue19062
|
|
238
|
+
71 : 0, 71
|
|
239
|
+
section Issue19401
|
|
240
|
+
36 : 0, 36
|
|
241
|
+
section Issue193
|
|
242
|
+
34 : 0, 34
|
|
243
|
+
section Issue7441
|
|
244
|
+
9 : 0, 9
|
|
245
|
+
section Issue1300
|
|
246
|
+
5 : 0, 5
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
```mermaid
|
|
250
|
+
gantt
|
|
251
|
+
title Git Issues - days since last update
|
|
252
|
+
dateFormat X
|
|
253
|
+
axisFormat %s
|
|
254
|
+
|
|
255
|
+
section Issue19062
|
|
256
|
+
71 : 0, 71
|
|
257
|
+
section Issue19401
|
|
258
|
+
36 : 0, 36
|
|
259
|
+
section Issue193
|
|
260
|
+
34 : 0, 34
|
|
261
|
+
section Issue7441
|
|
262
|
+
9 : 0, 9
|
|
263
|
+
section Issue1300
|
|
264
|
+
5 : 0, 5
|
|
265
|
+
```
|
|
266
|
+
|
|
229
267
|
### User Journey diagram [<a href="https://mermaid-js.github.io/mermaid/#/user-journey">docs</a> - <a href="https://mermaid.live/edit#pako:eNplkMFuwjAQRH9l5TMiTVIC-FqqnjhxzWWJN4khsSN7XRSh_HsdKBVt97R6Mzsj-yoqq0hIAXCywRkaSwNxWHNHsB_hYt1ZmwYUfiueKtbWwIcFtjf5zgH2eCZgQgkrCXt64GgMg2fUzkvIn5Xd_V5COtMFvCH_62ht_5yk7MU8sn61HDTfxD8VYiF6cj1qFd94nWkpuKWYKWRcFdUYOi5FaaZoDYNCpnel2Toha-w8LQQGtofRVEKyC_Qw7TQ2DvsfV2dRUTy6Ch6H-UMb7TlGVtbUupl5cF3ELfPgZZLM8rLR3IbjsrJ94rVq0XH7uS2SIis2mOVUrHNc5bmqjul2U2evaa3WL2mGYpqmL2BGiho">live editor</a>]
|
|
230
268
|
|
|
231
269
|
```
|
package/dist/Diagram.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DetailedError } from './utils';
|
|
2
|
-
export
|
|
1
|
+
import { DetailedError } from './utils.js';
|
|
2
|
+
export type ParseErrorFunction = (err: string | DetailedError | unknown, hash?: any) => void;
|
|
3
3
|
/**
|
|
4
4
|
* An object representing a parsed mermaid diagram definition.
|
|
5
5
|
* @privateRemarks This is exported as part of the public mermaidAPI.
|
|
@@ -9,7 +9,7 @@ export declare class Diagram {
|
|
|
9
9
|
type: string;
|
|
10
10
|
parser: any;
|
|
11
11
|
renderer: any;
|
|
12
|
-
db: import("./diagram-api/types").DiagramDb;
|
|
12
|
+
db: import("./diagram-api/types.js").DiagramDb;
|
|
13
13
|
private detectError?;
|
|
14
14
|
constructor(text: string);
|
|
15
15
|
parse(): void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const mermaidAPI: {
|
|
2
|
-
render: import("@vitest/spy").Mock<any
|
|
3
|
-
parse: (text: string, parseOptions?: import("../mermaidAPI").ParseOptions | undefined) => Promise<boolean>;
|
|
4
|
-
parseDirective: import("@vitest/spy").Mock<any
|
|
5
|
-
initialize: import("@vitest/spy").Mock<any
|
|
6
|
-
getConfig: () => import("../config.type").MermaidConfig;
|
|
7
|
-
setConfig: (conf: import("../config.type").MermaidConfig) => import("../config.type").MermaidConfig;
|
|
8
|
-
getSiteConfig: () => import("../config.type").MermaidConfig;
|
|
9
|
-
updateSiteConfig: (conf: import("../config.type").MermaidConfig) => import("../config.type").MermaidConfig;
|
|
2
|
+
render: import("@vitest/spy").Mock<any, any>;
|
|
3
|
+
parse: (text: string, parseOptions?: import("../mermaidAPI.js").ParseOptions | undefined) => Promise<boolean>;
|
|
4
|
+
parseDirective: import("@vitest/spy").Mock<any, any>;
|
|
5
|
+
initialize: import("@vitest/spy").Mock<any, any>;
|
|
6
|
+
getConfig: () => import("../config.type.js").MermaidConfig;
|
|
7
|
+
setConfig: (conf: import("../config.type.js").MermaidConfig) => import("../config.type.js").MermaidConfig;
|
|
8
|
+
getSiteConfig: () => import("../config.type.js").MermaidConfig;
|
|
9
|
+
updateSiteConfig: (conf: import("../config.type.js").MermaidConfig) => import("../config.type.js").MermaidConfig;
|
|
10
10
|
reset: () => void;
|
|
11
11
|
globalReset: () => void;
|
|
12
|
-
defaultConfig: import("../config.type").MermaidConfig;
|
|
12
|
+
defaultConfig: import("../config.type.js").MermaidConfig;
|
|
13
13
|
};
|
|
14
14
|
export default mermaidAPI;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as c,
|
|
7
|
+
l as g
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
|
+
function getDefaultExportFromCjs(x) {
|
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
commonjsGlobal as c,
|
|
7
|
+
getDefaultExportFromCjs as g
|
|
8
|
+
};
|
package/dist/accessibility.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as constant, p as path } from "./constant-b644328d.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ax as halfPi, ay as epsilon, V as tau, az as cos, aA as sin, aB as sqrt, aC as min, aD as abs, aE as pi, aF as atan2, aG as asin, aH as acos, aI as max } from "./mermaid-e58b1357.js";
|
|
3
3
|
function arcInnerRadius(d) {
|
|
4
4
|
return d.innerRadius;
|
|
5
5
|
}
|
|
@@ -142,4 +142,3 @@ function d3arc() {
|
|
|
142
142
|
export {
|
|
143
143
|
d3arc as d
|
|
144
144
|
};
|
|
145
|
-
//# sourceMappingURL=arc-c50f0902.js.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { c as G, p as sn } from "./constant-2fe7eae5.js";
|
|
2
|
+
import { ax as en, ay as y, V as ln, az as V, aA as D, aB as K, aC as b, aD as an, aE as rn, aF as t, aG as un, aH as on, aI as tn } from "./mermaid-72e0d5b8.js";
|
|
3
|
+
function fn(l) {
|
|
4
|
+
return l.innerRadius;
|
|
5
|
+
}
|
|
6
|
+
function cn(l) {
|
|
7
|
+
return l.outerRadius;
|
|
8
|
+
}
|
|
9
|
+
function yn(l) {
|
|
10
|
+
return l.startAngle;
|
|
11
|
+
}
|
|
12
|
+
function gn(l) {
|
|
13
|
+
return l.endAngle;
|
|
14
|
+
}
|
|
15
|
+
function mn(l) {
|
|
16
|
+
return l && l.padAngle;
|
|
17
|
+
}
|
|
18
|
+
function pn(l, x, q, E, h, v, H, a) {
|
|
19
|
+
var s = q - l, n = E - x, m = H - h, i = a - v, r = i * s - m * n;
|
|
20
|
+
if (!(r * r < y))
|
|
21
|
+
return r = (m * (x - v) - i * (l - h)) / r, [l + r * s, x + r * n];
|
|
22
|
+
}
|
|
23
|
+
function U(l, x, q, E, h, v, H) {
|
|
24
|
+
var a = l - q, s = x - E, n = (H ? v : -v) / K(a * a + s * s), m = n * s, i = -n * a, r = l + m, f = x + i, c = q + m, w = E + i, o = (r + c) / 2, z = (f + w) / 2, p = c - r, g = w - f, A = p * p + g * g, B = h - v, P = r * w - c * f, C = (g < 0 ? -1 : 1) * K(tn(0, B * B * A - P * P)), F = (P * g - p * C) / A, d = (-P * p - g * C) / A, R = (P * g + p * C) / A, T = (-P * p + g * C) / A, e = F - o, u = d - z, O = R - o, S = T - z;
|
|
25
|
+
return e * e + u * u > O * O + S * S && (F = R, d = T), {
|
|
26
|
+
cx: F,
|
|
27
|
+
cy: d,
|
|
28
|
+
x01: -m,
|
|
29
|
+
y01: -i,
|
|
30
|
+
x11: F * (h / B - 1),
|
|
31
|
+
y11: d * (h / B - 1)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function hn() {
|
|
35
|
+
var l = fn, x = cn, q = G(0), E = null, h = yn, v = gn, H = mn, a = null;
|
|
36
|
+
function s() {
|
|
37
|
+
var n, m, i = +l.apply(this, arguments), r = +x.apply(this, arguments), f = h.apply(this, arguments) - en, c = v.apply(this, arguments) - en, w = an(c - f), o = c > f;
|
|
38
|
+
if (a || (a = n = sn()), r < i && (m = r, r = i, i = m), !(r > y))
|
|
39
|
+
a.moveTo(0, 0);
|
|
40
|
+
else if (w > ln - y)
|
|
41
|
+
a.moveTo(r * V(f), r * D(f)), a.arc(0, 0, r, f, c, !o), i > y && (a.moveTo(i * V(c), i * D(c)), a.arc(0, 0, i, c, f, o));
|
|
42
|
+
else {
|
|
43
|
+
var z = f, p = c, g = f, A = c, B = w, P = w, C = H.apply(this, arguments) / 2, F = C > y && (E ? +E.apply(this, arguments) : K(i * i + r * r)), d = b(an(r - i) / 2, +q.apply(this, arguments)), R = d, T = d, e, u;
|
|
44
|
+
if (F > y) {
|
|
45
|
+
var O = un(F / i * D(C)), S = un(F / r * D(C));
|
|
46
|
+
(B -= O * 2) > y ? (O *= o ? 1 : -1, g += O, A -= O) : (B = 0, g = A = (f + c) / 2), (P -= S * 2) > y ? (S *= o ? 1 : -1, z += S, p -= S) : (P = 0, z = p = (f + c) / 2);
|
|
47
|
+
}
|
|
48
|
+
var j = r * V(z), J = r * D(z), L = i * V(A), M = i * D(A);
|
|
49
|
+
if (d > y) {
|
|
50
|
+
var N = r * V(p), Q = r * D(p), W = i * V(g), X = i * D(g), I;
|
|
51
|
+
if (w < rn && (I = pn(j, J, W, X, N, Q, L, M))) {
|
|
52
|
+
var Y = j - I[0], Z = J - I[1], $ = N - I[0], k = Q - I[1], _ = 1 / D(on((Y * $ + Z * k) / (K(Y * Y + Z * Z) * K($ * $ + k * k))) / 2), nn = K(I[0] * I[0] + I[1] * I[1]);
|
|
53
|
+
R = b(d, (i - nn) / (_ - 1)), T = b(d, (r - nn) / (_ + 1));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
P > y ? T > y ? (e = U(W, X, j, J, r, T, o), u = U(N, Q, L, M, r, T, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), T < d ? a.arc(e.cx, e.cy, T, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, T, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, r, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), !o), a.arc(u.cx, u.cy, T, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : (a.moveTo(j, J), a.arc(0, 0, r, z, p, !o)) : a.moveTo(j, J), !(i > y) || !(B > y) ? a.lineTo(L, M) : R > y ? (e = U(L, M, N, Q, i, -R, o), u = U(j, J, W, X, i, -R, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), R < d ? a.arc(e.cx, e.cy, R, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, R, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, i, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), o), a.arc(u.cx, u.cy, R, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : a.arc(0, 0, i, A, g, o);
|
|
57
|
+
}
|
|
58
|
+
if (a.closePath(), n)
|
|
59
|
+
return a = null, n + "" || null;
|
|
60
|
+
}
|
|
61
|
+
return s.centroid = function() {
|
|
62
|
+
var n = (+l.apply(this, arguments) + +x.apply(this, arguments)) / 2, m = (+h.apply(this, arguments) + +v.apply(this, arguments)) / 2 - rn / 2;
|
|
63
|
+
return [V(m) * n, D(m) * n];
|
|
64
|
+
}, s.innerRadius = function(n) {
|
|
65
|
+
return arguments.length ? (l = typeof n == "function" ? n : G(+n), s) : l;
|
|
66
|
+
}, s.outerRadius = function(n) {
|
|
67
|
+
return arguments.length ? (x = typeof n == "function" ? n : G(+n), s) : x;
|
|
68
|
+
}, s.cornerRadius = function(n) {
|
|
69
|
+
return arguments.length ? (q = typeof n == "function" ? n : G(+n), s) : q;
|
|
70
|
+
}, s.padRadius = function(n) {
|
|
71
|
+
return arguments.length ? (E = n == null ? null : typeof n == "function" ? n : G(+n), s) : E;
|
|
72
|
+
}, s.startAngle = function(n) {
|
|
73
|
+
return arguments.length ? (h = typeof n == "function" ? n : G(+n), s) : h;
|
|
74
|
+
}, s.endAngle = function(n) {
|
|
75
|
+
return arguments.length ? (v = typeof n == "function" ? n : G(+n), s) : v;
|
|
76
|
+
}, s.padAngle = function(n) {
|
|
77
|
+
return arguments.length ? (H = typeof n == "function" ? n : G(+n), s) : H;
|
|
78
|
+
}, s.context = function(n) {
|
|
79
|
+
return arguments.length ? (a = n ?? null, s) : a;
|
|
80
|
+
}, s;
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
hn as d
|
|
84
|
+
};
|
package/dist/array-2ff2c7a6.js
CHANGED
package/dist/array-b7dcf730.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { m as mermaidAPI } from "./
|
|
2
|
-
import { q as setAccTitle, v as getAccTitle, w as getAccDescription, x as setAccDescription, g as getConfig, b as sanitizeText, f as common, d as assignWithDepth, h as select, l as log } from "./commonDb-89160e91.js";
|
|
3
|
-
import { s as sanitizeUrl_1, q as calculateTextWidth, v as configureSvgSize, w as wrapLabel, x as calculateTextHeight } from "./utils-1aebe9b6.js";
|
|
1
|
+
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, m as mermaidAPI, e as sanitizeUrl_1, f as common, h as assignWithDepth, i as calculateTextWidth, j as select, l as log, k as configureSvgSize, w as wrapLabel, n as calculateTextHeight } from "./mermaid-e58b1357.js";
|
|
4
2
|
var parser = function() {
|
|
5
3
|
var o = function(k, v, o2, l) {
|
|
6
4
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
|
|
@@ -2524,4 +2522,3 @@ const diagram = {
|
|
|
2524
2522
|
export {
|
|
2525
2523
|
diagram
|
|
2526
2524
|
};
|
|
2527
|
-
//# sourceMappingURL=c4Diagram-be8b5c2c.js.map
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { q as je, v as Ue, w as Fe, x as ze, g as Ut, b as ve, f as le, d as Xe, h as Qt, l as _e } from "./commonDb-41f8b4c5.js";
|
|
3
|
-
import { s as ke, q as Yt, v as We, w as Qe, x as xe } from "./utils-8ea37061.js";
|
|
1
|
+
import { s as Ve, g as je, a as Ue, b as Fe, c as Ut, d as ve, m as ze, e as ke, f as le, h as Xe, i as Yt, j as Qt, l as _e, k as We, w as Qe, n as xe } from "./mermaid-72e0d5b8.js";
|
|
4
2
|
var qt = function() {
|
|
5
3
|
var e = function(Ot, _, x, m) {
|
|
6
4
|
for (x = x || {}, m = Ot.length; m--; x[Ot[m]] = _)
|
|
@@ -660,7 +658,7 @@ const qe = function() {
|
|
|
660
658
|
}, Ge = function(e) {
|
|
661
659
|
Ae = ve(e, Ut());
|
|
662
660
|
}, Ke = function(e, t, i) {
|
|
663
|
-
|
|
661
|
+
ze.parseDirective(this, e, t, i);
|
|
664
662
|
}, Je = function(e, t, i, o, l, n, r, a, s) {
|
|
665
663
|
if (e == null || t === void 0 || t === null || i === void 0 || i === null || o === void 0 || o === null)
|
|
666
664
|
return;
|
|
@@ -1064,10 +1062,10 @@ const qe = function() {
|
|
|
1064
1062
|
getC4Type: qe,
|
|
1065
1063
|
getC4ShapeInRow: o0,
|
|
1066
1064
|
getC4BoundaryInRow: c0,
|
|
1067
|
-
setAccTitle:
|
|
1068
|
-
getAccTitle:
|
|
1069
|
-
getAccDescription:
|
|
1070
|
-
setAccDescription:
|
|
1065
|
+
setAccTitle: Ve,
|
|
1066
|
+
getAccTitle: je,
|
|
1067
|
+
getAccDescription: Ue,
|
|
1068
|
+
setAccDescription: Fe,
|
|
1071
1069
|
parseDirective: Ke,
|
|
1072
1070
|
getConfig: () => Ut().c4,
|
|
1073
1071
|
clear: _0,
|
|
@@ -1608,7 +1606,7 @@ const I0 = function(e, t, i, o) {
|
|
|
1608
1606
|
stroke: ${e.personBorder};
|
|
1609
1607
|
fill: ${e.personBkg};
|
|
1610
1608
|
}
|
|
1611
|
-
`, j0 = V0,
|
|
1609
|
+
`, j0 = V0, F0 = {
|
|
1612
1610
|
parser: He,
|
|
1613
1611
|
db: we,
|
|
1614
1612
|
renderer: Ee,
|
|
@@ -1618,6 +1616,5 @@ const I0 = function(e, t, i, o) {
|
|
|
1618
1616
|
}
|
|
1619
1617
|
};
|
|
1620
1618
|
export {
|
|
1621
|
-
|
|
1619
|
+
F0 as diagram
|
|
1622
1620
|
};
|
|
1623
|
-
//# sourceMappingURL=c4Diagram-d4b415eb.js.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { m as mermaidAPI } from "./
|
|
2
|
-
import { o as setAccTitle, p as getAccTitle, q as getAccDescription, v as setAccDescription, g as getConfig, b as sanitizeText, e as common, d as assignWithDepth, l as log } from "./commonDb-573409be.js";
|
|
1
|
+
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, m as mermaidAPI, e as common, f as assignWithDepth, h as calculateTextWidth, l as log, i as configureSvgSize, w as wrapLabel, j as calculateTextHeight } from "./mermaid-c7ace86b.js";
|
|
3
2
|
import { select } from "d3";
|
|
4
3
|
import { sanitizeUrl } from "@braintree/sanitize-url";
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
4
|
+
import "ts-dedent";
|
|
5
|
+
import "dayjs/esm/index.js";
|
|
7
6
|
import "dompurify";
|
|
8
|
-
import "lodash-es/isEmpty.js";
|
|
9
|
-
import "dayjs";
|
|
10
7
|
import "khroma";
|
|
11
8
|
import "lodash-es/memoize.js";
|
|
9
|
+
import "stylis";
|
|
10
|
+
import "lodash-es/isEmpty.js";
|
|
12
11
|
var parser = function() {
|
|
13
12
|
var o = function(k, v, o2, l) {
|
|
14
13
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
|
|
@@ -2532,4 +2531,3 @@ const diagram = {
|
|
|
2532
2531
|
export {
|
|
2533
2532
|
diagram
|
|
2534
2533
|
};
|
|
2535
|
-
//# sourceMappingURL=c4Diagram-44c43e89.js.map
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
2
|
-
import {
|
|
3
|
-
import { G as Graph, l as layout } from "./layout-
|
|
4
|
-
import { s as svgDraw } from "./svgDraw-
|
|
5
|
-
import
|
|
6
|
-
import "./mermaidAPI-c841a67f.js";
|
|
7
|
-
import "./line-fbe8f138.js";
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-f61a4d56.js";
|
|
2
|
+
import { c as getConfig, l as log, j as select, k as configureSvgSize } from "./mermaid-e58b1357.js";
|
|
3
|
+
import { G as Graph, l as layout } from "./layout-ecdf20b6.js";
|
|
4
|
+
import { s as svgDraw } from "./svgDraw-4d13ab5c.js";
|
|
5
|
+
import "./line-1f113163.js";
|
|
8
6
|
import "./array-b7dcf730.js";
|
|
9
7
|
import "./constant-b644328d.js";
|
|
10
8
|
let idCache = {};
|
|
@@ -137,4 +135,3 @@ const diagram = {
|
|
|
137
135
|
export {
|
|
138
136
|
diagram
|
|
139
137
|
};
|
|
140
|
-
//# sourceMappingURL=classDiagram-6d218cdd.js.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { p as W, d as M, s as H } from "./styles-2232dd58.js";
|
|
2
|
+
import { c as S, l as d, j as m, k as X } from "./mermaid-72e0d5b8.js";
|
|
3
|
+
import { G as Y, l as Z } from "./layout-55cb0439.js";
|
|
4
|
+
import { s as l } from "./svgDraw-060b6641.js";
|
|
5
|
+
import "./line-c8edd8dc.js";
|
|
6
|
+
import "./array-2ff2c7a6.js";
|
|
7
|
+
import "./constant-2fe7eae5.js";
|
|
8
|
+
let h = {};
|
|
9
|
+
const g = 20, p = function(r) {
|
|
10
|
+
const o = Object.entries(h).find((k) => k[1].label === r);
|
|
11
|
+
if (o)
|
|
12
|
+
return o[0];
|
|
13
|
+
}, D = function(r) {
|
|
14
|
+
r.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), r.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), r.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), r.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), r.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 18,7 L9,13 L14,7 L9,1 Z");
|
|
15
|
+
}, $ = function(r, o, k, a) {
|
|
16
|
+
const c = S().class;
|
|
17
|
+
h = {}, d.info("Rendering diagram " + r);
|
|
18
|
+
const L = S().securityLevel;
|
|
19
|
+
let y;
|
|
20
|
+
L === "sandbox" && (y = m("#i" + o));
|
|
21
|
+
const x = L === "sandbox" ? m(y.nodes()[0].contentDocument.body) : m("body"), n = x.select(`[id='${o}']`);
|
|
22
|
+
D(n);
|
|
23
|
+
const e = new Y({
|
|
24
|
+
multigraph: !0
|
|
25
|
+
});
|
|
26
|
+
e.setGraph({
|
|
27
|
+
isMultiGraph: !0
|
|
28
|
+
}), e.setDefaultEdgeLabel(function() {
|
|
29
|
+
return {};
|
|
30
|
+
});
|
|
31
|
+
const u = a.db.getClasses(), N = Object.keys(u);
|
|
32
|
+
for (const t of N) {
|
|
33
|
+
const s = u[t], i = l.drawClass(n, s, c, a);
|
|
34
|
+
h[i.id] = i, e.setNode(i.id, i), d.info("Org height: " + i.height);
|
|
35
|
+
}
|
|
36
|
+
a.db.getRelations().forEach(function(t) {
|
|
37
|
+
d.info(
|
|
38
|
+
"tjoho" + p(t.id1) + p(t.id2) + JSON.stringify(t)
|
|
39
|
+
), e.setEdge(
|
|
40
|
+
p(t.id1),
|
|
41
|
+
p(t.id2),
|
|
42
|
+
{
|
|
43
|
+
relation: t
|
|
44
|
+
},
|
|
45
|
+
t.title || "DEFAULT"
|
|
46
|
+
);
|
|
47
|
+
}), a.db.getNotes().forEach(function(t) {
|
|
48
|
+
d.debug(`Adding note: ${JSON.stringify(t)}`);
|
|
49
|
+
const s = l.drawNote(n, t, c, a);
|
|
50
|
+
h[s.id] = s, e.setNode(s.id, s), t.class && t.class in u && e.setEdge(
|
|
51
|
+
t.id,
|
|
52
|
+
p(t.class),
|
|
53
|
+
{
|
|
54
|
+
relation: {
|
|
55
|
+
id1: t.id,
|
|
56
|
+
id2: t.class,
|
|
57
|
+
relation: {
|
|
58
|
+
type1: "none",
|
|
59
|
+
type2: "none",
|
|
60
|
+
lineType: 10
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"DEFAULT"
|
|
65
|
+
);
|
|
66
|
+
}), Z(e), e.nodes().forEach(function(t) {
|
|
67
|
+
t !== void 0 && e.node(t) !== void 0 && (d.debug("Node " + t + ": " + JSON.stringify(e.node(t))), x.select("#" + (a.db.lookUpDomId(t) || t)).attr(
|
|
68
|
+
"transform",
|
|
69
|
+
"translate(" + (e.node(t).x - e.node(t).width / 2) + "," + (e.node(t).y - e.node(t).height / 2) + " )"
|
|
70
|
+
));
|
|
71
|
+
}), e.edges().forEach(function(t) {
|
|
72
|
+
t !== void 0 && e.edge(t) !== void 0 && (d.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t))), l.drawEdge(n, e.edge(t), e.edge(t).relation, c, a));
|
|
73
|
+
});
|
|
74
|
+
const f = n.node().getBBox(), E = f.width + g * 2, b = f.height + g * 2;
|
|
75
|
+
X(n, b, E, c.useMaxWidth);
|
|
76
|
+
const w = `${f.x - g} ${f.y - g} ${E} ${b}`;
|
|
77
|
+
d.debug(`viewBox ${w}`), n.attr("viewBox", w);
|
|
78
|
+
}, B = {
|
|
79
|
+
draw: $
|
|
80
|
+
}, V = {
|
|
81
|
+
parser: W,
|
|
82
|
+
db: M,
|
|
83
|
+
renderer: B,
|
|
84
|
+
styles: H,
|
|
85
|
+
init: (r) => {
|
|
86
|
+
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute, M.clear();
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
V as diagram
|
|
91
|
+
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-2f4b7797.js";
|
|
2
2
|
import { select } from "d3";
|
|
3
3
|
import { layout } from "dagre-d3-es/src/dagre/index.js";
|
|
4
4
|
import * as graphlib from "dagre-d3-es/src/graphlib/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import { s as svgDraw } from "./svgDraw-
|
|
7
|
-
import
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
5
|
+
import { c as getConfig, l as log, i as configureSvgSize } from "./mermaid-c7ace86b.js";
|
|
6
|
+
import { s as svgDraw } from "./svgDraw-f7d59fb6.js";
|
|
7
|
+
import "ts-dedent";
|
|
8
|
+
import "dayjs/esm/index.js";
|
|
9
|
+
import "@braintree/sanitize-url";
|
|
10
10
|
import "dompurify";
|
|
11
|
-
import "lodash-es/isEmpty.js";
|
|
12
|
-
import "dayjs";
|
|
13
11
|
import "khroma";
|
|
14
|
-
import "@braintree/sanitize-url";
|
|
15
12
|
import "lodash-es/memoize.js";
|
|
13
|
+
import "stylis";
|
|
14
|
+
import "lodash-es/isEmpty.js";
|
|
16
15
|
let idCache = {};
|
|
17
16
|
const padding = 20;
|
|
18
17
|
const getGraphId = function(label) {
|
|
@@ -143,4 +142,3 @@ const diagram = {
|
|
|
143
142
|
export {
|
|
144
143
|
diagram
|
|
145
144
|
};
|
|
146
|
-
//# sourceMappingURL=classDiagram-634fc78b.js.map
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { p as M, d as k, s as
|
|
2
|
-
import { l as p,
|
|
3
|
-
import { G as
|
|
4
|
-
import { r as
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./svgDraw-0a992cdb.js";
|
|
10
|
-
import "./line-05ccbb85.js";
|
|
1
|
+
import { p as M, d as k, s as R } from "./styles-2232dd58.js";
|
|
2
|
+
import { l as p, c as r, j as v, x as B, t as G, r as C, o as D, p as I, f as E } from "./mermaid-72e0d5b8.js";
|
|
3
|
+
import { G as _ } from "./layout-55cb0439.js";
|
|
4
|
+
import { r as z } from "./index-2af91da1.js";
|
|
5
|
+
import "./edges-3bb2400e.js";
|
|
6
|
+
import "./createText-b59432cf.js";
|
|
7
|
+
import "./svgDraw-060b6641.js";
|
|
8
|
+
import "./line-c8edd8dc.js";
|
|
11
9
|
import "./array-2ff2c7a6.js";
|
|
12
10
|
import "./constant-2fe7eae5.js";
|
|
13
|
-
const
|
|
11
|
+
const A = (o) => E.sanitizeText(o, r());
|
|
14
12
|
let S = {
|
|
15
13
|
dividerMargin: 10,
|
|
16
14
|
padding: 5,
|
|
@@ -24,10 +22,10 @@ const $ = function(o, l, b, a) {
|
|
|
24
22
|
const t = o[s];
|
|
25
23
|
let i = "";
|
|
26
24
|
t.cssClasses.length > 0 && (i = i + " " + t.cssClasses.join(" "));
|
|
27
|
-
const n = { labelStyle: "", style: "" },
|
|
25
|
+
const n = { labelStyle: "", style: "" }, u = t.label ?? t.id, c = 0, m = "class_box", d = {
|
|
28
26
|
labelStyle: n.labelStyle,
|
|
29
|
-
shape:
|
|
30
|
-
labelText:
|
|
27
|
+
shape: m,
|
|
28
|
+
labelText: A(u),
|
|
31
29
|
classData: t,
|
|
32
30
|
rx: c,
|
|
33
31
|
ry: c,
|
|
@@ -48,10 +46,10 @@ const $ = function(o, l, b, a) {
|
|
|
48
46
|
}, q = function(o, l, b, a) {
|
|
49
47
|
p.info(o), o.forEach(function(e, s) {
|
|
50
48
|
var x, h;
|
|
51
|
-
const t = e, i = "", n = { labelStyle: "", style: "" },
|
|
49
|
+
const t = e, i = "", n = { labelStyle: "", style: "" }, u = t.text, c = 0, m = "note", d = {
|
|
52
50
|
labelStyle: n.labelStyle,
|
|
53
|
-
shape:
|
|
54
|
-
labelText:
|
|
51
|
+
shape: m,
|
|
52
|
+
labelText: A(u),
|
|
55
53
|
noteData: t,
|
|
56
54
|
rx: c,
|
|
57
55
|
ry: c,
|
|
@@ -81,7 +79,7 @@ const $ = function(o, l, b, a) {
|
|
|
81
79
|
arrowTypeEnd: "none",
|
|
82
80
|
style: "fill:none",
|
|
83
81
|
labelStyle: "",
|
|
84
|
-
curve:
|
|
82
|
+
curve: C(S.curve, D)
|
|
85
83
|
};
|
|
86
84
|
l.setEdge(t.id, t.class, f, y);
|
|
87
85
|
});
|
|
@@ -106,13 +104,13 @@ const $ = function(o, l, b, a) {
|
|
|
106
104
|
arrowTypeEnd: L(e.relation.type2),
|
|
107
105
|
style: "fill:none",
|
|
108
106
|
labelStyle: "",
|
|
109
|
-
curve:
|
|
107
|
+
curve: C(b == null ? void 0 : b.curve, D)
|
|
110
108
|
};
|
|
111
109
|
if (p.info(s, e), e.style !== void 0) {
|
|
112
|
-
const i =
|
|
110
|
+
const i = I(e.style);
|
|
113
111
|
s.style = i.style, s.labelStyle = i.labelStyle;
|
|
114
112
|
}
|
|
115
|
-
e.text = e.title, e.text === void 0 ? e.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((t = r().flowchart) == null ? void 0 : t.htmlLabels) ?? r().htmlLabels ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + e.text + "</span>") : (s.labelType = "text", s.label = e.text.replace(
|
|
113
|
+
e.text = e.title, e.text === void 0 ? e.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((t = r().flowchart) == null ? void 0 : t.htmlLabels) ?? r().htmlLabels ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + e.text + "</span>") : (s.labelType = "text", s.label = e.text.replace(E.lineBreakRegex, `
|
|
116
114
|
`), e.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), l.setEdge(e.id1, e.id2, s, a);
|
|
117
115
|
});
|
|
118
116
|
}, H = function(o) {
|
|
@@ -120,11 +118,11 @@ const $ = function(o, l, b, a) {
|
|
|
120
118
|
...S,
|
|
121
119
|
...o
|
|
122
120
|
};
|
|
123
|
-
}, P = function(o, l, b, a) {
|
|
121
|
+
}, P = async function(o, l, b, a) {
|
|
124
122
|
p.info("Drawing class - ", l);
|
|
125
123
|
const e = r().flowchart ?? r().class, s = r().securityLevel;
|
|
126
124
|
p.info("config:", e);
|
|
127
|
-
const t = (e == null ? void 0 : e.nodeSpacing) ?? 50, i = (e == null ? void 0 : e.rankSpacing) ?? 50, n = new
|
|
125
|
+
const t = (e == null ? void 0 : e.nodeSpacing) ?? 50, i = (e == null ? void 0 : e.rankSpacing) ?? 50, n = new _({
|
|
128
126
|
multigraph: !0,
|
|
129
127
|
compound: !0
|
|
130
128
|
}).setGraph({
|
|
@@ -135,21 +133,21 @@ const $ = function(o, l, b, a) {
|
|
|
135
133
|
marginy: 8
|
|
136
134
|
}).setDefaultEdgeLabel(function() {
|
|
137
135
|
return {};
|
|
138
|
-
}),
|
|
139
|
-
p.info(c), $(
|
|
136
|
+
}), u = a.db.getClasses(), c = a.db.getRelations(), m = a.db.getNotes();
|
|
137
|
+
p.info(c), $(u, n, l, a), F(c, n), q(m, n, c.length + 1, u);
|
|
140
138
|
let d;
|
|
141
139
|
s === "sandbox" && (d = v("#i" + l));
|
|
142
140
|
const y = s === "sandbox" ? (
|
|
143
141
|
// @ts-ignore Ignore type error for now
|
|
144
142
|
v(d.nodes()[0].contentDocument.body)
|
|
145
143
|
) : v("body"), f = y.select(`[id="${l}"]`), x = y.select("#" + l + " g");
|
|
146
|
-
if (
|
|
144
|
+
if (await z(
|
|
147
145
|
x,
|
|
148
146
|
n,
|
|
149
147
|
["aggregation", "extension", "composition", "dependency", "lollipop"],
|
|
150
148
|
"classDiagram",
|
|
151
149
|
l
|
|
152
|
-
),
|
|
150
|
+
), B.insertTitle(f, "classTitleText", (e == null ? void 0 : e.titleTopMargin) ?? 5, a.db.getDiagramTitle()), G(n, f, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
|
|
153
151
|
const h = s === "sandbox" ? d.nodes()[0].contentDocument : document, N = h.querySelectorAll('[id="' + l + '"] .edgeLabel .label');
|
|
154
152
|
for (const w of N) {
|
|
155
153
|
const T = w.getBBox(), g = h.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
@@ -183,16 +181,15 @@ function L(o) {
|
|
|
183
181
|
const V = {
|
|
184
182
|
setConf: H,
|
|
185
183
|
draw: P
|
|
186
|
-
},
|
|
184
|
+
}, ee = {
|
|
187
185
|
parser: M,
|
|
188
186
|
db: k,
|
|
189
187
|
renderer: V,
|
|
190
|
-
styles:
|
|
188
|
+
styles: R,
|
|
191
189
|
init: (o) => {
|
|
192
190
|
o.class || (o.class = {}), o.class.arrowMarkerAbsolute = o.arrowMarkerAbsolute, k.clear();
|
|
193
191
|
}
|
|
194
192
|
};
|
|
195
193
|
export {
|
|
196
|
-
|
|
194
|
+
ee as diagram
|
|
197
195
|
};
|
|
198
|
-
//# sourceMappingURL=classDiagram-v2-556a8c31.js.map
|