jekyll-ham 1.0.4 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/_layouts/default.html +6 -0
- data/_layouts/page.html +1 -1
- data/assets/mermaid/Diagram.d.ts +33 -0
- data/assets/mermaid/Tableau10-31042135.js +10 -0
- data/assets/mermaid/Tableau10-558cc280.js +9 -0
- data/assets/mermaid/__mocks__/mermaidAPI.d.ts +13 -0
- data/assets/mermaid/accessibility.d.ts +27 -0
- data/assets/mermaid/accessibility.spec.d.ts +1 -0
- data/assets/mermaid/arc-c0f908ab.js +148 -0
- data/assets/mermaid/arc-d1f6357e.js +86 -0
- data/assets/mermaid/array-2ff2c7a6.js +6 -0
- data/assets/mermaid/array-b7dcf730.js +6 -0
- data/assets/mermaid/assignWithDepth.d.ts +30 -0
- data/assets/mermaid/blockDiagram-5dc23a45.js +1230 -0
- data/assets/mermaid/blockDiagram-9f4a6865.js +1822 -0
- data/assets/mermaid/blockDiagram-efe38566.js +1818 -0
- data/assets/mermaid/c4Diagram-1e775db3.js +1579 -0
- data/assets/mermaid/c4Diagram-ae766693.js +2473 -0
- data/assets/mermaid/c4Diagram-af207393.js +2463 -0
- data/assets/mermaid/channel-ebbc4130.js +5 -0
- data/assets/mermaid/channel-f9001828.js +8 -0
- data/assets/mermaid/classDiagram-72b9c71d.js +356 -0
- data/assets/mermaid/classDiagram-f52caa06.js +220 -0
- data/assets/mermaid/classDiagram-fb54d2a0.js +363 -0
- data/assets/mermaid/classDiagram-v2-640c694e.js +206 -0
- data/assets/mermaid/classDiagram-v2-a2b738ad.js +298 -0
- data/assets/mermaid/classDiagram-v2-fedb80f6.js +290 -0
- data/assets/mermaid/clone-9ea6bfeb.js +8 -0
- data/assets/mermaid/clone-afc2f047.js +8 -0
- data/assets/mermaid/config.d.ts +98 -0
- data/assets/mermaid/config.spec.d.ts +1 -0
- data/assets/mermaid/config.type.d.ts +1534 -0
- data/assets/mermaid/createText-03b82060.js +2966 -0
- data/assets/mermaid/createText-b70fe78a.js +4929 -0
- data/assets/mermaid/createText-ca0c5216.js +251 -0
- data/assets/mermaid/dagre-wrapper/blockArrowHelper.d.ts +8 -0
- data/assets/mermaid/dagre-wrapper/clusters.d.ts +4 -0
- data/assets/mermaid/dagre-wrapper/createLabel.d.ts +9 -0
- data/assets/mermaid/dagre-wrapper/edgeMarker.d.ts +12 -0
- data/assets/mermaid/dagre-wrapper/edgeMarker.spec.d.ts +1 -0
- data/assets/mermaid/dagre-wrapper/edges.d.ts +14 -0
- data/assets/mermaid/dagre-wrapper/index.d.ts +1 -0
- data/assets/mermaid/dagre-wrapper/intersect/index.d.ts +13 -0
- data/assets/mermaid/dagre-wrapper/intersect/intersect-circle.d.ts +10 -0
- data/assets/mermaid/dagre-wrapper/intersect/intersect-ellipse.d.ts +11 -0
- data/assets/mermaid/dagre-wrapper/intersect/intersect-line.d.ts +13 -0
- data/assets/mermaid/dagre-wrapper/intersect/intersect-node.d.ts +6 -0
- data/assets/mermaid/dagre-wrapper/intersect/intersect-polygon.d.ts +10 -0
- data/assets/mermaid/dagre-wrapper/intersect/intersect-rect.d.ts +5 -0
- data/assets/mermaid/dagre-wrapper/markers.d.ts +2 -0
- data/assets/mermaid/dagre-wrapper/mermaid-graphlib.d.ts +8 -0
- data/assets/mermaid/dagre-wrapper/nodes.d.ts +4 -0
- data/assets/mermaid/dagre-wrapper/shapes/note.d.ts +2 -0
- data/assets/mermaid/dagre-wrapper/shapes/util.d.ts +14 -0
- data/assets/mermaid/defaultConfig.d.ts +12 -0
- data/assets/mermaid/diagram-api/comments.d.ts +6 -0
- data/assets/mermaid/diagram-api/comments.spec.d.ts +1 -0
- data/assets/mermaid/diagram-api/detectType.d.ts +42 -0
- data/assets/mermaid/diagram-api/diagram-orchestration.d.ts +1 -0
- data/assets/mermaid/diagram-api/diagram-orchestration.spec.d.ts +1 -0
- data/assets/mermaid/diagram-api/diagramAPI.d.ts +31 -0
- data/assets/mermaid/diagram-api/diagramAPI.spec.d.ts +1 -0
- data/assets/mermaid/diagram-api/frontmatter.d.ts +18 -0
- data/assets/mermaid/diagram-api/frontmatter.spec.d.ts +1 -0
- data/assets/mermaid/diagram-api/loadDiagram.d.ts +1 -0
- data/assets/mermaid/diagram-api/regexes.d.ts +3 -0
- data/assets/mermaid/diagram-api/types.d.ts +84 -0
- data/assets/mermaid/diagram.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/block/blockDB.d.ts +54 -0
- data/assets/mermaid/diagrams/block/blockDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/block/blockDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/block/blockRenderer.d.ts +15 -0
- data/assets/mermaid/diagrams/block/blockTypes.d.ts +36 -0
- data/assets/mermaid/diagrams/block/blockUtils.d.ts +1 -0
- data/assets/mermaid/diagrams/block/layout.d.ts +13 -0
- data/assets/mermaid/diagrams/block/layout.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/block/parser/block.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/block/renderHelpers.d.ts +10 -0
- data/assets/mermaid/diagrams/block/styles.d.ts +18 -0
- data/assets/mermaid/diagrams/c4/c4Db.d.ts +127 -0
- data/assets/mermaid/diagrams/c4/c4Detector.d.ts +3 -0
- data/assets/mermaid/diagrams/c4/c4Diagram.d.ts +2 -0
- data/assets/mermaid/diagrams/c4/c4Renderer.d.ts +12 -0
- data/assets/mermaid/diagrams/c4/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/c4/svgDraw.d.ts +36 -0
- data/assets/mermaid/diagrams/class/classDb.d.ts +144 -0
- data/assets/mermaid/diagrams/class/classDetector-V2.d.ts +3 -0
- data/assets/mermaid/diagrams/class/classDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/class/classDiagram-v2.d.ts +2 -0
- data/assets/mermaid/diagrams/class/classDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/class/classDiagram.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/class/classRenderer-v2.d.ts +57 -0
- data/assets/mermaid/diagrams/class/classRenderer.d.ts +5 -0
- data/assets/mermaid/diagrams/class/classTypes.d.ts +78 -0
- data/assets/mermaid/diagrams/class/classTypes.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/class/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/class/svgDraw.d.ts +25 -0
- data/assets/mermaid/diagrams/common/common.d.ts +110 -0
- data/assets/mermaid/diagrams/common/common.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/common/commonDb.d.ts +7 -0
- data/assets/mermaid/diagrams/common/commonTypes.d.ts +51 -0
- data/assets/mermaid/diagrams/common/svgDrawCommon.d.ts +15 -0
- data/assets/mermaid/diagrams/er/erDb.d.ts +49 -0
- data/assets/mermaid/diagrams/er/erDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/er/erDiagram.d.ts +34 -0
- data/assets/mermaid/diagrams/er/erMarkers.d.ts +24 -0
- data/assets/mermaid/diagrams/er/erRenderer.d.ts +19 -0
- data/assets/mermaid/diagrams/er/erRenderer.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/er/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/error/errorDiagram.d.ts +3 -0
- data/assets/mermaid/diagrams/error/errorRenderer.d.ts +12 -0
- data/assets/mermaid/diagrams/flowchart/elk/detector.d.ts +3 -0
- data/assets/mermaid/diagrams/flowchart/elk/detector.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/flowchart/elk/flowRenderer-elk.d.ts +10 -0
- data/assets/mermaid/diagrams/flowchart/elk/flowchart-elk-definition.d.ts +10 -0
- data/assets/mermaid/diagrams/flowchart/elk/render-utils.d.ts +5 -0
- data/assets/mermaid/diagrams/flowchart/elk/render-utils.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/flowchart/elk/styles.d.ts +19 -0
- data/assets/mermaid/diagrams/flowchart/flowChartShapes.d.ts +9 -0
- data/assets/mermaid/diagrams/flowchart/flowDb.d.ts +87 -0
- data/assets/mermaid/diagrams/flowchart/flowDetector-v2.d.ts +3 -0
- data/assets/mermaid/diagrams/flowchart/flowDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/flowchart/flowDiagram-v2.d.ts +57 -0
- data/assets/mermaid/diagrams/flowchart/flowDiagram.d.ts +57 -0
- data/assets/mermaid/diagrams/flowchart/flowRenderer-v2.d.ts +13 -0
- data/assets/mermaid/diagrams/flowchart/flowRenderer.d.ts +13 -0
- data/assets/mermaid/diagrams/flowchart/styles.d.ts +18 -0
- data/assets/mermaid/diagrams/gantt/ganttDb.d.ts +106 -0
- data/assets/mermaid/diagrams/gantt/ganttDb.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/gantt/ganttDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/gantt/ganttDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/gantt/ganttRenderer.d.ts +7 -0
- data/assets/mermaid/diagrams/gantt/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/git/gitGraphAst.d.ts +61 -0
- data/assets/mermaid/diagrams/git/gitGraphDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/git/gitGraphDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/git/gitGraphRenderer.d.ts +5 -0
- data/assets/mermaid/diagrams/git/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/info/info.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/info/infoDb.d.ts +5 -0
- data/assets/mermaid/diagrams/info/infoDetector.d.ts +2 -0
- data/assets/mermaid/diagrams/info/infoDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/info/infoRenderer.d.ts +4 -0
- data/assets/mermaid/diagrams/info/infoTypes.d.ts +9 -0
- data/assets/mermaid/diagrams/mindmap/detector.d.ts +3 -0
- data/assets/mermaid/diagrams/mindmap/mindmap-definition.d.ts +2 -0
- data/assets/mermaid/diagrams/mindmap/mindmap.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/mindmap/mindmapDb.d.ts +30 -0
- data/assets/mermaid/diagrams/mindmap/mindmapRenderer.d.ts +21 -0
- data/assets/mermaid/diagrams/mindmap/mindmapTypes.d.ts +20 -0
- data/assets/mermaid/diagrams/mindmap/styles.d.ts +3 -0
- data/assets/mermaid/diagrams/mindmap/svgDraw.d.ts +13 -0
- data/assets/mermaid/diagrams/pie/pie.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/pie/pieDb.d.ts +6 -0
- data/assets/mermaid/diagrams/pie/pieDetector.d.ts +2 -0
- data/assets/mermaid/diagrams/pie/pieDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/pie/pieRenderer.d.ts +13 -0
- data/assets/mermaid/diagrams/pie/pieStyles.d.ts +3 -0
- data/assets/mermaid/diagrams/pie/pieTypes.d.ts +53 -0
- data/assets/mermaid/diagrams/quadrant-chart/parser/quadrant.jison.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/quadrant-chart/quadrantBuilder.d.ts +118 -0
- data/assets/mermaid/diagrams/quadrant-chart/quadrantDb.d.ts +38 -0
- data/assets/mermaid/diagrams/quadrant-chart/quadrantDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/quadrant-chart/quadrantDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/quadrant-chart/quadrantRenderer.d.ts +6 -0
- data/assets/mermaid/diagrams/requirement/requirementDb.d.ts +70 -0
- data/assets/mermaid/diagrams/requirement/requirementDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/requirement/requirementDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/requirement/requirementMarkers.d.ts +10 -0
- data/assets/mermaid/diagrams/requirement/requirementRenderer.d.ts +7 -0
- data/assets/mermaid/diagrams/requirement/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/sankey/parser/sankey.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/sankey/sankeyDB.d.ts +36 -0
- data/assets/mermaid/diagrams/sankey/sankeyDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/sankey/sankeyDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/sankey/sankeyRenderer.d.ts +14 -0
- data/assets/mermaid/diagrams/sankey/sankeyUtils.d.ts +1 -0
- data/assets/mermaid/diagrams/sequence/sequenceDb.d.ts +153 -0
- data/assets/mermaid/diagrams/sequence/sequenceDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/sequence/sequenceDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/sequence/sequenceRenderer.d.ts +202 -0
- data/assets/mermaid/diagrams/sequence/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/sequence/svgDraw.d.ts +73 -0
- data/assets/mermaid/diagrams/state/id-cache.d.ts +11 -0
- data/assets/mermaid/diagrams/state/shapes.d.ts +14 -0
- data/assets/mermaid/diagrams/state/stateCommon.d.ts +22 -0
- data/assets/mermaid/diagrams/state/stateDb.d.ts +91 -0
- data/assets/mermaid/diagrams/state/stateDetector-V2.d.ts +3 -0
- data/assets/mermaid/diagrams/state/stateDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/state/stateDiagram-v2.d.ts +2 -0
- data/assets/mermaid/diagrams/state/stateDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/state/stateRenderer-v2.d.ts +20 -0
- data/assets/mermaid/diagrams/state/stateRenderer.d.ts +7 -0
- data/assets/mermaid/diagrams/state/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/timeline/detector.d.ts +3 -0
- data/assets/mermaid/diagrams/timeline/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/timeline/svgDraw.d.ts +46 -0
- data/assets/mermaid/diagrams/timeline/timeline-definition.d.ts +10 -0
- data/assets/mermaid/diagrams/timeline/timelineDb.d.ts +20 -0
- data/assets/mermaid/diagrams/timeline/timelineRenderer.d.ts +19 -0
- data/assets/mermaid/diagrams/user-journey/journeyDb.d.ts +30 -0
- data/assets/mermaid/diagrams/user-journey/journeyDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/user-journey/journeyDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/user-journey/journeyRenderer.d.ts +30 -0
- data/assets/mermaid/diagrams/user-journey/styles.d.ts +2 -0
- data/assets/mermaid/diagrams/user-journey/svgDraw.d.ts +20 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/bandAxis.d.ts +12 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/baseAxis.d.ts +38 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/index.d.ts +12 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/linearAxis.d.ts +11 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/components/chartTitle.d.ts +16 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/barPlot.d.ts +12 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/index.d.ts +20 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/linePlot.d.ts +11 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/index.d.ts +5 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/interfaces.d.ts +132 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/orchestrator.d.ts +12 -0
- data/assets/mermaid/diagrams/xychart/chartBuilder/textDimensionCalculator.d.ts +10 -0
- data/assets/mermaid/diagrams/xychart/parser/xychart.jison.spec.d.ts +1 -0
- data/assets/mermaid/diagrams/xychart/xychartDb.d.ts +40 -0
- data/assets/mermaid/diagrams/xychart/xychartDetector.d.ts +3 -0
- data/assets/mermaid/diagrams/xychart/xychartDiagram.d.ts +2 -0
- data/assets/mermaid/diagrams/xychart/xychartRenderer.d.ts +6 -0
- data/assets/mermaid/docs/vite.config.d.ts +2 -0
- data/assets/mermaid/edges-066a5561.js +1840 -0
- data/assets/mermaid/edges-16357fde.js +1083 -0
- data/assets/mermaid/edges-ce5cfb7c.js +1840 -0
- data/assets/mermaid/erDiagram-09d1c15f.js +1176 -0
- data/assets/mermaid/erDiagram-543717f2.js +1321 -0
- data/assets/mermaid/erDiagram-c7ff1bec.js +931 -0
- data/assets/mermaid/errors.d.ts +3 -0
- data/assets/mermaid/flowDb-9a89ea33.js +1126 -0
- data/assets/mermaid/flowDb-ba9bd7fa.js +1713 -0
- data/assets/mermaid/flowDb-c1833063.js +1714 -0
- data/assets/mermaid/flowDiagram-aadb13b0.js +797 -0
- data/assets/mermaid/flowDiagram-b222e15a.js +614 -0
- data/assets/mermaid/flowDiagram-b5e7ba30.js +1278 -0
- data/assets/mermaid/flowDiagram-v2-13329dc7.js +40 -0
- data/assets/mermaid/flowDiagram-v2-54711e03.js +32 -0
- data/assets/mermaid/flowDiagram-v2-f2119625.js +25 -0
- data/assets/mermaid/flowchart-elk-definition-2d49707c.js +93397 -0
- data/assets/mermaid/flowchart-elk-definition-ae0efee6.js +814 -0
- data/assets/mermaid/flowchart-elk-definition-cf813a97.js +48407 -0
- data/assets/mermaid/ganttDiagram-12cf43db.js +3445 -0
- data/assets/mermaid/ganttDiagram-3c2fde2b.js +2501 -0
- data/assets/mermaid/ganttDiagram-b62c793e.js +2061 -0
- data/assets/mermaid/gitGraphDiagram-942e62fe.js +1800 -0
- data/assets/mermaid/gitGraphDiagram-b9392a12.js +1790 -0
- data/assets/mermaid/gitGraphDiagram-c3a0619c.js +1264 -0
- data/assets/mermaid/graph-0ee63739.js +881 -0
- data/assets/mermaid/graph-fe24fab6.js +1285 -0
- data/assets/mermaid/index-01f381cb.js +622 -0
- data/assets/mermaid/index-bb6d8841.js +373 -0
- data/assets/mermaid/index-fc479858.js +663 -0
- data/assets/mermaid/infoDiagram-2f5c50c0.js +319 -0
- data/assets/mermaid/infoDiagram-94cd232f.js +520 -0
- data/assets/mermaid/infoDiagram-d0d5c9bd.js +510 -0
- data/assets/mermaid/init-cc95ec8e.js +16 -0
- data/assets/mermaid/init-f9637058.js +16 -0
- data/assets/mermaid/interactionDb.d.ts +2 -0
- data/assets/mermaid/journeyDiagram-14fe341a.js +804 -0
- data/assets/mermaid/journeyDiagram-6625b456.js +1191 -0
- data/assets/mermaid/journeyDiagram-b56e6921.js +1183 -0
- data/assets/mermaid/katex-d90b6d29.js +11624 -0
- data/assets/mermaid/katex-ffb0e8f1.js +14432 -0
- data/assets/mermaid/layout-163b9689.js +2314 -0
- data/assets/mermaid/layout-fd473db2.js +1536 -0
- data/assets/mermaid/line-24d93f1b.js +34 -0
- data/assets/mermaid/line-87f517ef.js +50 -0
- data/assets/mermaid/linear-0ad15847.js +595 -0
- data/assets/mermaid/linear-9bcf74c4.js +447 -0
- data/assets/mermaid/logger.d.ts +9 -0
- data/assets/mermaid/mermaid-6dc72991.js +6461 -0
- data/assets/mermaid/mermaid-9f2aa176.js +8112 -0
- data/assets/mermaid/mermaid-dcacb631.js +12793 -0
- data/assets/mermaid/mermaid.core.mjs +14 -0
- data/assets/mermaid/mermaid.d.ts +146 -0
- data/assets/mermaid/mermaid.esm.min.mjs +4 -0
- data/assets/mermaid/mermaid.esm.mjs +4 -0
- data/assets/mermaid/mermaid.js +195755 -0
- data/assets/mermaid/mermaid.min.js +2029 -0
- data/assets/mermaid/mermaid.spec.d.ts +1 -0
- data/assets/mermaid/mermaidAPI.d.ts +170 -0
- data/assets/mermaid/mermaidAPI.spec.d.ts +1 -0
- data/assets/mermaid/mindmap-definition-307c710a.js +1177 -0
- data/assets/mermaid/mindmap-definition-696ddea4.js +32342 -0
- data/assets/mermaid/mindmap-definition-9399c7e6.js +18760 -0
- data/assets/mermaid/ordinal-475e0c0c.js +82 -0
- data/assets/mermaid/ordinal-5695958c.js +65 -0
- data/assets/mermaid/path-39bad7e2.js +118 -0
- data/assets/mermaid/path-428ebac9.js +91 -0
- data/assets/mermaid/pieDiagram-828dae43.js +502 -0
- data/assets/mermaid/pieDiagram-bb1d19e5.js +722 -0
- data/assets/mermaid/pieDiagram-e854eaf0.js +772 -0
- data/assets/mermaid/preprocess.d.ts +10 -0
- data/assets/mermaid/quadrantDiagram-25a9848b.js +1199 -0
- data/assets/mermaid/quadrantDiagram-5fa00455.js +904 -0
- data/assets/mermaid/quadrantDiagram-c759a472.js +1207 -0
- data/assets/mermaid/rendering-util/createText.d.ts +11 -0
- data/assets/mermaid/rendering-util/handle-markdown-text.d.ts +6 -0
- data/assets/mermaid/rendering-util/handle-markdown-text.spec.d.ts +1 -0
- data/assets/mermaid/rendering-util/selectSvgElement.d.ts +8 -0
- data/assets/mermaid/rendering-util/splitText.d.ts +24 -0
- data/assets/mermaid/rendering-util/splitText.spec.d.ts +1 -0
- data/assets/mermaid/rendering-util/uid.d.ts +8 -0
- data/assets/mermaid/requirementDiagram-03163dc4.js +769 -0
- data/assets/mermaid/requirementDiagram-87253d64.js +1098 -0
- data/assets/mermaid/requirementDiagram-a721e157.js +1091 -0
- data/assets/mermaid/sankeyDiagram-33525efb.js +1198 -0
- data/assets/mermaid/sankeyDiagram-52ec8976.js +818 -0
- data/assets/mermaid/sankeyDiagram-707fac0f.js +660 -0
- data/assets/mermaid/sequenceDiagram-6894f283.js +3346 -0
- data/assets/mermaid/sequenceDiagram-9813c129.js +3336 -0
- data/assets/mermaid/sequenceDiagram-b517d154.js +2234 -0
- data/assets/mermaid/setupGraphViewbox.d.ts +3 -0
- data/assets/mermaid/stateDiagram-5dee940d.js +474 -0
- data/assets/mermaid/stateDiagram-5ec31577.js +467 -0
- data/assets/mermaid/stateDiagram-fca82b5b.js +275 -0
- data/assets/mermaid/stateDiagram-v2-1992cada.js +333 -0
- data/assets/mermaid/stateDiagram-v2-992e82a1.js +325 -0
- data/assets/mermaid/stateDiagram-v2-ed04200a.js +190 -0
- data/assets/mermaid/styles-0784dbeb.js +1363 -0
- data/assets/mermaid/styles-11e81fdd.js +1089 -0
- data/assets/mermaid/styles-36a1a2e8.js +1483 -0
- data/assets/mermaid/styles-483fbfea.js +509 -0
- data/assets/mermaid/styles-727cdd61.js +571 -0
- data/assets/mermaid/styles-b83b31c9.js +1484 -0
- data/assets/mermaid/styles-cacbff60.js +960 -0
- data/assets/mermaid/styles-e75131e4.js +433 -0
- data/assets/mermaid/styles-f80da881.js +1363 -0
- data/assets/mermaid/styles.d.ts +12 -0
- data/assets/mermaid/styles.spec.d.ts +1 -0
- data/assets/mermaid/svgDrawCommon-5e1cfd1d.js +101 -0
- data/assets/mermaid/svgDrawCommon-d6ab583c.js +100 -0
- data/assets/mermaid/svgDrawCommon-ecc5f780.js +64 -0
- data/assets/mermaid/tests/MockedD3.d.ts +45 -0
- data/assets/mermaid/tests/setup.d.ts +1 -0
- data/assets/mermaid/tests/util.d.ts +3 -0
- data/assets/mermaid/themes/erDiagram-oldHardcodedValues.d.ts +7 -0
- data/assets/mermaid/themes/index.d.ts +24 -0
- data/assets/mermaid/themes/theme-base.d.ts +189 -0
- data/assets/mermaid/themes/theme-dark.d.ts +177 -0
- data/assets/mermaid/themes/theme-default.d.ts +188 -0
- data/assets/mermaid/themes/theme-forest.d.ts +185 -0
- data/assets/mermaid/themes/theme-helpers.d.ts +1 -0
- data/assets/mermaid/themes/theme-neutral.d.ts +182 -0
- data/assets/mermaid/timeline-definition-23ce0e2e.js +1211 -0
- data/assets/mermaid/timeline-definition-4ee9bff4.js +795 -0
- data/assets/mermaid/timeline-definition-bf702344.js +1219 -0
- data/assets/mermaid/types.d.ts +31 -0
- data/assets/mermaid/utils/imperativeState.d.ts +32 -0
- data/assets/mermaid/utils/imperativeState.spec.d.ts +1 -0
- data/assets/mermaid/utils/lineWithOffset.d.ts +5 -0
- data/assets/mermaid/utils/sanitizeDirective.d.ts +7 -0
- data/assets/mermaid/utils/subGraphTitleMargins.d.ts +8 -0
- data/assets/mermaid/utils/subGraphTitleMargins.spec.d.ts +1 -0
- data/assets/mermaid/utils.d.ts +286 -0
- data/assets/mermaid/utils.spec.d.ts +1 -0
- data/assets/mermaid/xychartDiagram-de2e5521.js +1800 -0
- data/assets/mermaid/xychartDiagram-e5e6b652.js +1284 -0
- data/assets/mermaid/xychartDiagram-f11f50a6.js +1745 -0
- data/assets/tables.css +23 -0
- data/assets/toURI.js +142 -0
- metadata +363 -2
@@ -0,0 +1,502 @@
|
|
1
|
+
import { V as H, W as at, C as lt, D as ct, s as ot, g as ht, b as ut, a as yt, E as ft, d as pt, c as et, l as it, X as gt, U as dt, Y as mt, k as _t } from "./mermaid-9f2aa176.js";
|
2
|
+
import { d as tt } from "./arc-d1f6357e.js";
|
3
|
+
import { o as xt } from "./ordinal-5695958c.js";
|
4
|
+
import { a as kt } from "./array-2ff2c7a6.js";
|
5
|
+
import { c as F } from "./path-428ebac9.js";
|
6
|
+
import "./init-f9637058.js";
|
7
|
+
function vt(e, u) {
|
8
|
+
return u < e ? -1 : u > e ? 1 : u >= e ? 0 : NaN;
|
9
|
+
}
|
10
|
+
function bt(e) {
|
11
|
+
return e;
|
12
|
+
}
|
13
|
+
function St() {
|
14
|
+
var e = bt, u = vt, E = null, p = F(0), g = F(H), A = F(0);
|
15
|
+
function y(a) {
|
16
|
+
var l, d = (a = kt(a)).length, m, I, $ = 0, _ = new Array(d), v = new Array(d), o = +p.apply(this, arguments), T = Math.min(H, Math.max(-H, g.apply(this, arguments) - o)), O, w = Math.min(Math.abs(T) / d, A.apply(this, arguments)), b = w * (T < 0 ? -1 : 1), t;
|
17
|
+
for (l = 0; l < d; ++l)
|
18
|
+
(t = v[_[l] = l] = +e(a[l], l, a)) > 0 && ($ += t);
|
19
|
+
for (u != null ? _.sort(function(i, n) {
|
20
|
+
return u(v[i], v[n]);
|
21
|
+
}) : E != null && _.sort(function(i, n) {
|
22
|
+
return E(a[i], a[n]);
|
23
|
+
}), l = 0, I = $ ? (T - d * b) / $ : 0; l < d; ++l, o = O)
|
24
|
+
m = _[l], t = v[m], O = o + (t > 0 ? t * I : 0) + b, v[m] = {
|
25
|
+
data: a[m],
|
26
|
+
index: l,
|
27
|
+
value: t,
|
28
|
+
startAngle: o,
|
29
|
+
endAngle: O,
|
30
|
+
padAngle: w
|
31
|
+
};
|
32
|
+
return v;
|
33
|
+
}
|
34
|
+
return y.value = function(a) {
|
35
|
+
return arguments.length ? (e = typeof a == "function" ? a : F(+a), y) : e;
|
36
|
+
}, y.sortValues = function(a) {
|
37
|
+
return arguments.length ? (u = a, E = null, y) : u;
|
38
|
+
}, y.sort = function(a) {
|
39
|
+
return arguments.length ? (E = a, u = null, y) : E;
|
40
|
+
}, y.startAngle = function(a) {
|
41
|
+
return arguments.length ? (p = typeof a == "function" ? a : F(+a), y) : p;
|
42
|
+
}, y.endAngle = function(a) {
|
43
|
+
return arguments.length ? (g = typeof a == "function" ? a : F(+a), y) : g;
|
44
|
+
}, y.padAngle = function(a) {
|
45
|
+
return arguments.length ? (A = typeof a == "function" ? a : F(+a), y) : A;
|
46
|
+
}, y;
|
47
|
+
}
|
48
|
+
var J = function() {
|
49
|
+
var e = function(b, t, i, n) {
|
50
|
+
for (i = i || {}, n = b.length; n--; i[b[n]] = t)
|
51
|
+
;
|
52
|
+
return i;
|
53
|
+
}, u = [1, 3], E = [1, 4], p = [1, 5], g = [1, 6], A = [1, 10, 12, 14, 16, 18, 19, 20, 21, 22], y = [2, 4], a = [1, 5, 10, 12, 14, 16, 18, 19, 20, 21, 22], l = [20, 21, 22], d = [2, 7], m = [1, 12], I = [1, 13], $ = [1, 14], _ = [1, 15], v = [1, 16], o = [1, 17], T = {
|
54
|
+
trace: function() {
|
55
|
+
},
|
56
|
+
yy: {},
|
57
|
+
symbols_: { error: 2, start: 3, eol: 4, PIE: 5, document: 6, showData: 7, line: 8, statement: 9, txt: 10, value: 11, title: 12, title_value: 13, acc_title: 14, acc_title_value: 15, acc_descr: 16, acc_descr_value: 17, acc_descr_multiline_value: 18, section: 19, NEWLINE: 20, ";": 21, EOF: 22, $accept: 0, $end: 1 },
|
58
|
+
terminals_: { 2: "error", 5: "PIE", 7: "showData", 10: "txt", 11: "value", 12: "title", 13: "title_value", 14: "acc_title", 15: "acc_title_value", 16: "acc_descr", 17: "acc_descr_value", 18: "acc_descr_multiline_value", 19: "section", 20: "NEWLINE", 21: ";", 22: "EOF" },
|
59
|
+
productions_: [0, [3, 2], [3, 2], [3, 3], [6, 0], [6, 2], [8, 2], [9, 0], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [4, 1], [4, 1], [4, 1]],
|
60
|
+
performAction: function(t, i, n, r, c, s, V) {
|
61
|
+
var x = s.length - 1;
|
62
|
+
switch (c) {
|
63
|
+
case 3:
|
64
|
+
r.setShowData(!0);
|
65
|
+
break;
|
66
|
+
case 6:
|
67
|
+
this.$ = s[x - 1];
|
68
|
+
break;
|
69
|
+
case 8:
|
70
|
+
r.addSection(s[x - 1], r.cleanupValue(s[x]));
|
71
|
+
break;
|
72
|
+
case 9:
|
73
|
+
this.$ = s[x].trim(), r.setDiagramTitle(this.$);
|
74
|
+
break;
|
75
|
+
case 10:
|
76
|
+
this.$ = s[x].trim(), r.setAccTitle(this.$);
|
77
|
+
break;
|
78
|
+
case 11:
|
79
|
+
case 12:
|
80
|
+
this.$ = s[x].trim(), r.setAccDescription(this.$);
|
81
|
+
break;
|
82
|
+
case 13:
|
83
|
+
r.addSection(s[x].substr(8)), this.$ = s[x].substr(8);
|
84
|
+
break;
|
85
|
+
}
|
86
|
+
},
|
87
|
+
table: [{ 3: 1, 4: 2, 5: u, 20: E, 21: p, 22: g }, { 1: [3] }, { 3: 7, 4: 2, 5: u, 20: E, 21: p, 22: g }, e(A, y, { 6: 8, 7: [1, 9] }), e(a, [2, 14]), e(a, [2, 15]), e(a, [2, 16]), { 1: [2, 1] }, e(l, d, { 8: 10, 9: 11, 1: [2, 2], 10: m, 12: I, 14: $, 16: _, 18: v, 19: o }), e(A, y, { 6: 18 }), e(A, [2, 5]), { 4: 19, 20: E, 21: p, 22: g }, { 11: [1, 20] }, { 13: [1, 21] }, { 15: [1, 22] }, { 17: [1, 23] }, e(l, [2, 12]), e(l, [2, 13]), e(l, d, { 8: 10, 9: 11, 1: [2, 3], 10: m, 12: I, 14: $, 16: _, 18: v, 19: o }), e(A, [2, 6]), e(l, [2, 8]), e(l, [2, 9]), e(l, [2, 10]), e(l, [2, 11])],
|
88
|
+
defaultActions: { 7: [2, 1] },
|
89
|
+
parseError: function(t, i) {
|
90
|
+
if (i.recoverable)
|
91
|
+
this.trace(t);
|
92
|
+
else {
|
93
|
+
var n = new Error(t);
|
94
|
+
throw n.hash = i, n;
|
95
|
+
}
|
96
|
+
},
|
97
|
+
parse: function(t) {
|
98
|
+
var i = this, n = [0], r = [], c = [null], s = [], V = this.table, x = "", f = 0, P = 0, R = 2, M = 1, Y = s.slice.call(arguments, 1), h = Object.create(this.lexer), N = { yy: {} };
|
99
|
+
for (var B in this.yy)
|
100
|
+
Object.prototype.hasOwnProperty.call(this.yy, B) && (N.yy[B] = this.yy[B]);
|
101
|
+
h.setInput(t, N.yy), N.yy.lexer = h, N.yy.parser = this, typeof h.yylloc > "u" && (h.yylloc = {});
|
102
|
+
var X = h.yylloc;
|
103
|
+
s.push(X);
|
104
|
+
var st = h.options && h.options.ranges;
|
105
|
+
typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
106
|
+
function rt() {
|
107
|
+
var C;
|
108
|
+
return C = r.pop() || h.lex() || M, typeof C != "number" && (C instanceof Array && (r = C, C = r.pop()), C = i.symbols_[C] || C), C;
|
109
|
+
}
|
110
|
+
for (var k, L, S, Z, z = {}, W, D, Q, j; ; ) {
|
111
|
+
if (L = n[n.length - 1], this.defaultActions[L] ? S = this.defaultActions[L] : ((k === null || typeof k > "u") && (k = rt()), S = V[L] && V[L][k]), typeof S > "u" || !S.length || !S[0]) {
|
112
|
+
var q = "";
|
113
|
+
j = [];
|
114
|
+
for (W in V[L])
|
115
|
+
this.terminals_[W] && W > R && j.push("'" + this.terminals_[W] + "'");
|
116
|
+
h.showPosition ? q = "Parse error on line " + (f + 1) + `:
|
117
|
+
` + h.showPosition() + `
|
118
|
+
Expecting ` + j.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : q = "Parse error on line " + (f + 1) + ": Unexpected " + (k == M ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(q, {
|
119
|
+
text: h.match,
|
120
|
+
token: this.terminals_[k] || k,
|
121
|
+
line: h.yylineno,
|
122
|
+
loc: X,
|
123
|
+
expected: j
|
124
|
+
});
|
125
|
+
}
|
126
|
+
if (S[0] instanceof Array && S.length > 1)
|
127
|
+
throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + k);
|
128
|
+
switch (S[0]) {
|
129
|
+
case 1:
|
130
|
+
n.push(k), c.push(h.yytext), s.push(h.yylloc), n.push(S[1]), k = null, P = h.yyleng, x = h.yytext, f = h.yylineno, X = h.yylloc;
|
131
|
+
break;
|
132
|
+
case 2:
|
133
|
+
if (D = this.productions_[S[1]][1], z.$ = c[c.length - D], z._$ = {
|
134
|
+
first_line: s[s.length - (D || 1)].first_line,
|
135
|
+
last_line: s[s.length - 1].last_line,
|
136
|
+
first_column: s[s.length - (D || 1)].first_column,
|
137
|
+
last_column: s[s.length - 1].last_column
|
138
|
+
}, st && (z._$.range = [
|
139
|
+
s[s.length - (D || 1)].range[0],
|
140
|
+
s[s.length - 1].range[1]
|
141
|
+
]), Z = this.performAction.apply(z, [
|
142
|
+
x,
|
143
|
+
P,
|
144
|
+
f,
|
145
|
+
N.yy,
|
146
|
+
S[1],
|
147
|
+
c,
|
148
|
+
s
|
149
|
+
].concat(Y)), typeof Z < "u")
|
150
|
+
return Z;
|
151
|
+
D && (n = n.slice(0, -1 * D * 2), c = c.slice(0, -1 * D), s = s.slice(0, -1 * D)), n.push(this.productions_[S[1]][0]), c.push(z.$), s.push(z._$), Q = V[n[n.length - 2]][n[n.length - 1]], n.push(Q);
|
152
|
+
break;
|
153
|
+
case 3:
|
154
|
+
return !0;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
return !0;
|
158
|
+
}
|
159
|
+
}, O = function() {
|
160
|
+
var b = {
|
161
|
+
EOF: 1,
|
162
|
+
parseError: function(i, n) {
|
163
|
+
if (this.yy.parser)
|
164
|
+
this.yy.parser.parseError(i, n);
|
165
|
+
else
|
166
|
+
throw new Error(i);
|
167
|
+
},
|
168
|
+
// resets the lexer, sets new input
|
169
|
+
setInput: function(t, i) {
|
170
|
+
return this.yy = i || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
171
|
+
first_line: 1,
|
172
|
+
first_column: 0,
|
173
|
+
last_line: 1,
|
174
|
+
last_column: 0
|
175
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
176
|
+
},
|
177
|
+
// consumes and returns one char from the input
|
178
|
+
input: function() {
|
179
|
+
var t = this._input[0];
|
180
|
+
this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
|
181
|
+
var i = t.match(/(?:\r\n?|\n).*/g);
|
182
|
+
return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
|
183
|
+
},
|
184
|
+
// unshifts one char (or a string) into the input
|
185
|
+
unput: function(t) {
|
186
|
+
var i = t.length, n = t.split(/(?:\r\n?|\n)/g);
|
187
|
+
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
188
|
+
var r = this.match.split(/(?:\r\n?|\n)/g);
|
189
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
190
|
+
var c = this.yylloc.range;
|
191
|
+
return this.yylloc = {
|
192
|
+
first_line: this.yylloc.first_line,
|
193
|
+
last_line: this.yylineno + 1,
|
194
|
+
first_column: this.yylloc.first_column,
|
195
|
+
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - i
|
196
|
+
}, this.options.ranges && (this.yylloc.range = [c[0], c[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
197
|
+
},
|
198
|
+
// When called from action, caches matched text and appends it on next action
|
199
|
+
more: function() {
|
200
|
+
return this._more = !0, this;
|
201
|
+
},
|
202
|
+
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
203
|
+
reject: function() {
|
204
|
+
if (this.options.backtrack_lexer)
|
205
|
+
this._backtrack = !0;
|
206
|
+
else
|
207
|
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
208
|
+
` + this.showPosition(), {
|
209
|
+
text: "",
|
210
|
+
token: null,
|
211
|
+
line: this.yylineno
|
212
|
+
});
|
213
|
+
return this;
|
214
|
+
},
|
215
|
+
// retain first n characters of the match
|
216
|
+
less: function(t) {
|
217
|
+
this.unput(this.match.slice(t));
|
218
|
+
},
|
219
|
+
// displays already matched input, i.e. for error messages
|
220
|
+
pastInput: function() {
|
221
|
+
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
222
|
+
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
223
|
+
},
|
224
|
+
// displays upcoming input, i.e. for error messages
|
225
|
+
upcomingInput: function() {
|
226
|
+
var t = this.match;
|
227
|
+
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
228
|
+
},
|
229
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
230
|
+
showPosition: function() {
|
231
|
+
var t = this.pastInput(), i = new Array(t.length + 1).join("-");
|
232
|
+
return t + this.upcomingInput() + `
|
233
|
+
` + i + "^";
|
234
|
+
},
|
235
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
236
|
+
test_match: function(t, i) {
|
237
|
+
var n, r, c;
|
238
|
+
if (this.options.backtrack_lexer && (c = {
|
239
|
+
yylineno: this.yylineno,
|
240
|
+
yylloc: {
|
241
|
+
first_line: this.yylloc.first_line,
|
242
|
+
last_line: this.last_line,
|
243
|
+
first_column: this.yylloc.first_column,
|
244
|
+
last_column: this.yylloc.last_column
|
245
|
+
},
|
246
|
+
yytext: this.yytext,
|
247
|
+
match: this.match,
|
248
|
+
matches: this.matches,
|
249
|
+
matched: this.matched,
|
250
|
+
yyleng: this.yyleng,
|
251
|
+
offset: this.offset,
|
252
|
+
_more: this._more,
|
253
|
+
_input: this._input,
|
254
|
+
yy: this.yy,
|
255
|
+
conditionStack: this.conditionStack.slice(0),
|
256
|
+
done: this.done
|
257
|
+
}, this.options.ranges && (c.yylloc.range = this.yylloc.range.slice(0))), r = t[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
258
|
+
first_line: this.yylloc.last_line,
|
259
|
+
last_line: this.yylineno + 1,
|
260
|
+
first_column: this.yylloc.last_column,
|
261
|
+
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
262
|
+
}, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], n = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
|
263
|
+
return n;
|
264
|
+
if (this._backtrack) {
|
265
|
+
for (var s in c)
|
266
|
+
this[s] = c[s];
|
267
|
+
return !1;
|
268
|
+
}
|
269
|
+
return !1;
|
270
|
+
},
|
271
|
+
// return next match in input
|
272
|
+
next: function() {
|
273
|
+
if (this.done)
|
274
|
+
return this.EOF;
|
275
|
+
this._input || (this.done = !0);
|
276
|
+
var t, i, n, r;
|
277
|
+
this._more || (this.yytext = "", this.match = "");
|
278
|
+
for (var c = this._currentRules(), s = 0; s < c.length; s++)
|
279
|
+
if (n = this._input.match(this.rules[c[s]]), n && (!i || n[0].length > i[0].length)) {
|
280
|
+
if (i = n, r = s, this.options.backtrack_lexer) {
|
281
|
+
if (t = this.test_match(n, c[s]), t !== !1)
|
282
|
+
return t;
|
283
|
+
if (this._backtrack) {
|
284
|
+
i = !1;
|
285
|
+
continue;
|
286
|
+
} else
|
287
|
+
return !1;
|
288
|
+
} else if (!this.options.flex)
|
289
|
+
break;
|
290
|
+
}
|
291
|
+
return i ? (t = this.test_match(i, c[r]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
292
|
+
` + this.showPosition(), {
|
293
|
+
text: "",
|
294
|
+
token: null,
|
295
|
+
line: this.yylineno
|
296
|
+
});
|
297
|
+
},
|
298
|
+
// return next match that has a token
|
299
|
+
lex: function() {
|
300
|
+
var i = this.next();
|
301
|
+
return i || this.lex();
|
302
|
+
},
|
303
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
304
|
+
begin: function(i) {
|
305
|
+
this.conditionStack.push(i);
|
306
|
+
},
|
307
|
+
// pop the previously active lexer condition state off the condition stack
|
308
|
+
popState: function() {
|
309
|
+
var i = this.conditionStack.length - 1;
|
310
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
311
|
+
},
|
312
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
313
|
+
_currentRules: function() {
|
314
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
315
|
+
},
|
316
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
317
|
+
topState: function(i) {
|
318
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
319
|
+
},
|
320
|
+
// alias for begin(condition)
|
321
|
+
pushState: function(i) {
|
322
|
+
this.begin(i);
|
323
|
+
},
|
324
|
+
// return the number of states currently on the stack
|
325
|
+
stateStackSize: function() {
|
326
|
+
return this.conditionStack.length;
|
327
|
+
},
|
328
|
+
options: { "case-insensitive": !0 },
|
329
|
+
performAction: function(i, n, r, c) {
|
330
|
+
switch (r) {
|
331
|
+
case 0:
|
332
|
+
break;
|
333
|
+
case 1:
|
334
|
+
break;
|
335
|
+
case 2:
|
336
|
+
return 20;
|
337
|
+
case 3:
|
338
|
+
break;
|
339
|
+
case 4:
|
340
|
+
break;
|
341
|
+
case 5:
|
342
|
+
return this.begin("title"), 12;
|
343
|
+
case 6:
|
344
|
+
return this.popState(), "title_value";
|
345
|
+
case 7:
|
346
|
+
return this.begin("acc_title"), 14;
|
347
|
+
case 8:
|
348
|
+
return this.popState(), "acc_title_value";
|
349
|
+
case 9:
|
350
|
+
return this.begin("acc_descr"), 16;
|
351
|
+
case 10:
|
352
|
+
return this.popState(), "acc_descr_value";
|
353
|
+
case 11:
|
354
|
+
this.begin("acc_descr_multiline");
|
355
|
+
break;
|
356
|
+
case 12:
|
357
|
+
this.popState();
|
358
|
+
break;
|
359
|
+
case 13:
|
360
|
+
return "acc_descr_multiline_value";
|
361
|
+
case 14:
|
362
|
+
this.begin("string");
|
363
|
+
break;
|
364
|
+
case 15:
|
365
|
+
this.popState();
|
366
|
+
break;
|
367
|
+
case 16:
|
368
|
+
return "txt";
|
369
|
+
case 17:
|
370
|
+
return 5;
|
371
|
+
case 18:
|
372
|
+
return 7;
|
373
|
+
case 19:
|
374
|
+
return "value";
|
375
|
+
case 20:
|
376
|
+
return 22;
|
377
|
+
}
|
378
|
+
},
|
379
|
+
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:[\s]+)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:pie\b)/i, /^(?:showData\b)/i, /^(?::[\s]*[\d]+(?:\.[\d]+)?)/i, /^(?:$)/i],
|
380
|
+
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [6], inclusive: !1 }, string: { rules: [15, 16], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 7, 9, 11, 14, 17, 18, 19, 20], inclusive: !0 } }
|
381
|
+
};
|
382
|
+
return b;
|
383
|
+
}();
|
384
|
+
T.lexer = O;
|
385
|
+
function w() {
|
386
|
+
this.yy = {};
|
387
|
+
}
|
388
|
+
return w.prototype = T, T.Parser = w, new w();
|
389
|
+
}();
|
390
|
+
J.parser = J;
|
391
|
+
const Et = J, nt = at.pie, G = {
|
392
|
+
sections: {},
|
393
|
+
showData: !1,
|
394
|
+
config: nt
|
395
|
+
};
|
396
|
+
let U = G.sections, K = G.showData;
|
397
|
+
const At = structuredClone(nt), wt = () => structuredClone(At), $t = () => {
|
398
|
+
U = structuredClone(G.sections), K = G.showData, ft();
|
399
|
+
}, Tt = (e, u) => {
|
400
|
+
e = pt(e, et()), U[e] === void 0 && (U[e] = u, it.debug(`added new section: ${e}, with value: ${u}`));
|
401
|
+
}, It = () => U, Dt = (e) => (e.substring(0, 1) === ":" && (e = e.substring(1).trim()), Number(e.trim())), Ct = (e) => {
|
402
|
+
K = e;
|
403
|
+
}, Ot = () => K, Vt = {
|
404
|
+
getConfig: wt,
|
405
|
+
clear: $t,
|
406
|
+
setDiagramTitle: lt,
|
407
|
+
getDiagramTitle: ct,
|
408
|
+
setAccTitle: ot,
|
409
|
+
getAccTitle: ht,
|
410
|
+
setAccDescription: ut,
|
411
|
+
getAccDescription: yt,
|
412
|
+
addSection: Tt,
|
413
|
+
getSections: It,
|
414
|
+
cleanupValue: Dt,
|
415
|
+
setShowData: Ct,
|
416
|
+
getShowData: Ot
|
417
|
+
}, Pt = (e) => `
|
418
|
+
.pieCircle{
|
419
|
+
stroke: ${e.pieStrokeColor};
|
420
|
+
stroke-width : ${e.pieStrokeWidth};
|
421
|
+
opacity : ${e.pieOpacity};
|
422
|
+
}
|
423
|
+
.pieOuterCircle{
|
424
|
+
stroke: ${e.pieOuterStrokeColor};
|
425
|
+
stroke-width: ${e.pieOuterStrokeWidth};
|
426
|
+
fill: none;
|
427
|
+
}
|
428
|
+
.pieTitleText {
|
429
|
+
text-anchor: middle;
|
430
|
+
font-size: ${e.pieTitleTextSize};
|
431
|
+
fill: ${e.pieTitleTextColor};
|
432
|
+
font-family: ${e.fontFamily};
|
433
|
+
}
|
434
|
+
.slice {
|
435
|
+
font-family: ${e.fontFamily};
|
436
|
+
fill: ${e.pieSectionTextColor};
|
437
|
+
font-size:${e.pieSectionTextSize};
|
438
|
+
// fill: white;
|
439
|
+
}
|
440
|
+
.legend text {
|
441
|
+
fill: ${e.pieLegendTextColor};
|
442
|
+
font-family: ${e.fontFamily};
|
443
|
+
font-size: ${e.pieLegendTextSize};
|
444
|
+
}
|
445
|
+
`, Nt = Pt, Lt = (e) => {
|
446
|
+
const u = Object.entries(e).map((p) => ({
|
447
|
+
label: p[0],
|
448
|
+
value: p[1]
|
449
|
+
})).sort((p, g) => g.value - p.value);
|
450
|
+
return St().value(
|
451
|
+
(p) => p.value
|
452
|
+
)(u);
|
453
|
+
}, Ft = (e, u, E, p) => {
|
454
|
+
it.debug(`rendering pie chart
|
455
|
+
` + e);
|
456
|
+
const g = p.db, A = et(), y = gt(g.getConfig(), A.pie), a = 40, l = 18, d = 4, m = 450, I = m, $ = dt(u), _ = $.append("g"), v = g.getSections();
|
457
|
+
_.attr("transform", "translate(" + I / 2 + "," + m / 2 + ")");
|
458
|
+
const { themeVariables: o } = A;
|
459
|
+
let [T] = mt(o.pieOuterStrokeWidth);
|
460
|
+
T ?? (T = 2);
|
461
|
+
const O = y.textPosition, w = Math.min(I, m) / 2 - a, b = tt().innerRadius(0).outerRadius(w), t = tt().innerRadius(w * O).outerRadius(w * O);
|
462
|
+
_.append("circle").attr("cx", 0).attr("cy", 0).attr("r", w + T / 2).attr("class", "pieOuterCircle");
|
463
|
+
const i = Lt(v), n = [
|
464
|
+
o.pie1,
|
465
|
+
o.pie2,
|
466
|
+
o.pie3,
|
467
|
+
o.pie4,
|
468
|
+
o.pie5,
|
469
|
+
o.pie6,
|
470
|
+
o.pie7,
|
471
|
+
o.pie8,
|
472
|
+
o.pie9,
|
473
|
+
o.pie10,
|
474
|
+
o.pie11,
|
475
|
+
o.pie12
|
476
|
+
], r = xt(n);
|
477
|
+
_.selectAll("mySlices").data(i).enter().append("path").attr("d", b).attr("fill", (f) => r(f.data.label)).attr("class", "pieCircle");
|
478
|
+
let c = 0;
|
479
|
+
Object.keys(v).forEach((f) => {
|
480
|
+
c += v[f];
|
481
|
+
}), _.selectAll("mySlices").data(i).enter().append("text").text((f) => (f.data.value / c * 100).toFixed(0) + "%").attr("transform", (f) => "translate(" + t.centroid(f) + ")").style("text-anchor", "middle").attr("class", "slice"), _.append("text").text(g.getDiagramTitle()).attr("x", 0).attr("y", -(m - 50) / 2).attr("class", "pieTitleText");
|
482
|
+
const s = _.selectAll(".legend").data(r.domain()).enter().append("g").attr("class", "legend").attr("transform", (f, P) => {
|
483
|
+
const R = l + d, M = R * r.domain().length / 2, Y = 12 * l, h = P * R - M;
|
484
|
+
return "translate(" + Y + "," + h + ")";
|
485
|
+
});
|
486
|
+
s.append("rect").attr("width", l).attr("height", l).style("fill", r).style("stroke", r), s.data(i).append("text").attr("x", l + d).attr("y", l - d).text((f) => {
|
487
|
+
const { label: P, value: R } = f.data;
|
488
|
+
return g.getShowData() ? `${P} [${R}]` : P;
|
489
|
+
});
|
490
|
+
const V = Math.max(
|
491
|
+
...s.selectAll("text").nodes().map((f) => (f == null ? void 0 : f.getBoundingClientRect().width) ?? 0)
|
492
|
+
), x = I + a + l + d + V;
|
493
|
+
$.attr("viewBox", `0 0 ${x} ${m}`), _t($, m, x, y.useMaxWidth);
|
494
|
+
}, Rt = { draw: Ft }, Yt = {
|
495
|
+
parser: Et,
|
496
|
+
db: Vt,
|
497
|
+
renderer: Rt,
|
498
|
+
styles: Nt
|
499
|
+
};
|
500
|
+
export {
|
501
|
+
Yt as diagram
|
502
|
+
};
|