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.
Files changed (366) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -2
  3. data/_layouts/default.html +6 -0
  4. data/_layouts/page.html +1 -1
  5. data/assets/mermaid/Diagram.d.ts +33 -0
  6. data/assets/mermaid/Tableau10-31042135.js +10 -0
  7. data/assets/mermaid/Tableau10-558cc280.js +9 -0
  8. data/assets/mermaid/__mocks__/mermaidAPI.d.ts +13 -0
  9. data/assets/mermaid/accessibility.d.ts +27 -0
  10. data/assets/mermaid/accessibility.spec.d.ts +1 -0
  11. data/assets/mermaid/arc-c0f908ab.js +148 -0
  12. data/assets/mermaid/arc-d1f6357e.js +86 -0
  13. data/assets/mermaid/array-2ff2c7a6.js +6 -0
  14. data/assets/mermaid/array-b7dcf730.js +6 -0
  15. data/assets/mermaid/assignWithDepth.d.ts +30 -0
  16. data/assets/mermaid/blockDiagram-5dc23a45.js +1230 -0
  17. data/assets/mermaid/blockDiagram-9f4a6865.js +1822 -0
  18. data/assets/mermaid/blockDiagram-efe38566.js +1818 -0
  19. data/assets/mermaid/c4Diagram-1e775db3.js +1579 -0
  20. data/assets/mermaid/c4Diagram-ae766693.js +2473 -0
  21. data/assets/mermaid/c4Diagram-af207393.js +2463 -0
  22. data/assets/mermaid/channel-ebbc4130.js +5 -0
  23. data/assets/mermaid/channel-f9001828.js +8 -0
  24. data/assets/mermaid/classDiagram-72b9c71d.js +356 -0
  25. data/assets/mermaid/classDiagram-f52caa06.js +220 -0
  26. data/assets/mermaid/classDiagram-fb54d2a0.js +363 -0
  27. data/assets/mermaid/classDiagram-v2-640c694e.js +206 -0
  28. data/assets/mermaid/classDiagram-v2-a2b738ad.js +298 -0
  29. data/assets/mermaid/classDiagram-v2-fedb80f6.js +290 -0
  30. data/assets/mermaid/clone-9ea6bfeb.js +8 -0
  31. data/assets/mermaid/clone-afc2f047.js +8 -0
  32. data/assets/mermaid/config.d.ts +98 -0
  33. data/assets/mermaid/config.spec.d.ts +1 -0
  34. data/assets/mermaid/config.type.d.ts +1534 -0
  35. data/assets/mermaid/createText-03b82060.js +2966 -0
  36. data/assets/mermaid/createText-b70fe78a.js +4929 -0
  37. data/assets/mermaid/createText-ca0c5216.js +251 -0
  38. data/assets/mermaid/dagre-wrapper/blockArrowHelper.d.ts +8 -0
  39. data/assets/mermaid/dagre-wrapper/clusters.d.ts +4 -0
  40. data/assets/mermaid/dagre-wrapper/createLabel.d.ts +9 -0
  41. data/assets/mermaid/dagre-wrapper/edgeMarker.d.ts +12 -0
  42. data/assets/mermaid/dagre-wrapper/edgeMarker.spec.d.ts +1 -0
  43. data/assets/mermaid/dagre-wrapper/edges.d.ts +14 -0
  44. data/assets/mermaid/dagre-wrapper/index.d.ts +1 -0
  45. data/assets/mermaid/dagre-wrapper/intersect/index.d.ts +13 -0
  46. data/assets/mermaid/dagre-wrapper/intersect/intersect-circle.d.ts +10 -0
  47. data/assets/mermaid/dagre-wrapper/intersect/intersect-ellipse.d.ts +11 -0
  48. data/assets/mermaid/dagre-wrapper/intersect/intersect-line.d.ts +13 -0
  49. data/assets/mermaid/dagre-wrapper/intersect/intersect-node.d.ts +6 -0
  50. data/assets/mermaid/dagre-wrapper/intersect/intersect-polygon.d.ts +10 -0
  51. data/assets/mermaid/dagre-wrapper/intersect/intersect-rect.d.ts +5 -0
  52. data/assets/mermaid/dagre-wrapper/markers.d.ts +2 -0
  53. data/assets/mermaid/dagre-wrapper/mermaid-graphlib.d.ts +8 -0
  54. data/assets/mermaid/dagre-wrapper/nodes.d.ts +4 -0
  55. data/assets/mermaid/dagre-wrapper/shapes/note.d.ts +2 -0
  56. data/assets/mermaid/dagre-wrapper/shapes/util.d.ts +14 -0
  57. data/assets/mermaid/defaultConfig.d.ts +12 -0
  58. data/assets/mermaid/diagram-api/comments.d.ts +6 -0
  59. data/assets/mermaid/diagram-api/comments.spec.d.ts +1 -0
  60. data/assets/mermaid/diagram-api/detectType.d.ts +42 -0
  61. data/assets/mermaid/diagram-api/diagram-orchestration.d.ts +1 -0
  62. data/assets/mermaid/diagram-api/diagram-orchestration.spec.d.ts +1 -0
  63. data/assets/mermaid/diagram-api/diagramAPI.d.ts +31 -0
  64. data/assets/mermaid/diagram-api/diagramAPI.spec.d.ts +1 -0
  65. data/assets/mermaid/diagram-api/frontmatter.d.ts +18 -0
  66. data/assets/mermaid/diagram-api/frontmatter.spec.d.ts +1 -0
  67. data/assets/mermaid/diagram-api/loadDiagram.d.ts +1 -0
  68. data/assets/mermaid/diagram-api/regexes.d.ts +3 -0
  69. data/assets/mermaid/diagram-api/types.d.ts +84 -0
  70. data/assets/mermaid/diagram.spec.d.ts +1 -0
  71. data/assets/mermaid/diagrams/block/blockDB.d.ts +54 -0
  72. data/assets/mermaid/diagrams/block/blockDetector.d.ts +3 -0
  73. data/assets/mermaid/diagrams/block/blockDiagram.d.ts +2 -0
  74. data/assets/mermaid/diagrams/block/blockRenderer.d.ts +15 -0
  75. data/assets/mermaid/diagrams/block/blockTypes.d.ts +36 -0
  76. data/assets/mermaid/diagrams/block/blockUtils.d.ts +1 -0
  77. data/assets/mermaid/diagrams/block/layout.d.ts +13 -0
  78. data/assets/mermaid/diagrams/block/layout.spec.d.ts +1 -0
  79. data/assets/mermaid/diagrams/block/parser/block.spec.d.ts +1 -0
  80. data/assets/mermaid/diagrams/block/renderHelpers.d.ts +10 -0
  81. data/assets/mermaid/diagrams/block/styles.d.ts +18 -0
  82. data/assets/mermaid/diagrams/c4/c4Db.d.ts +127 -0
  83. data/assets/mermaid/diagrams/c4/c4Detector.d.ts +3 -0
  84. data/assets/mermaid/diagrams/c4/c4Diagram.d.ts +2 -0
  85. data/assets/mermaid/diagrams/c4/c4Renderer.d.ts +12 -0
  86. data/assets/mermaid/diagrams/c4/styles.d.ts +2 -0
  87. data/assets/mermaid/diagrams/c4/svgDraw.d.ts +36 -0
  88. data/assets/mermaid/diagrams/class/classDb.d.ts +144 -0
  89. data/assets/mermaid/diagrams/class/classDetector-V2.d.ts +3 -0
  90. data/assets/mermaid/diagrams/class/classDetector.d.ts +3 -0
  91. data/assets/mermaid/diagrams/class/classDiagram-v2.d.ts +2 -0
  92. data/assets/mermaid/diagrams/class/classDiagram.d.ts +2 -0
  93. data/assets/mermaid/diagrams/class/classDiagram.spec.d.ts +1 -0
  94. data/assets/mermaid/diagrams/class/classRenderer-v2.d.ts +57 -0
  95. data/assets/mermaid/diagrams/class/classRenderer.d.ts +5 -0
  96. data/assets/mermaid/diagrams/class/classTypes.d.ts +78 -0
  97. data/assets/mermaid/diagrams/class/classTypes.spec.d.ts +1 -0
  98. data/assets/mermaid/diagrams/class/styles.d.ts +2 -0
  99. data/assets/mermaid/diagrams/class/svgDraw.d.ts +25 -0
  100. data/assets/mermaid/diagrams/common/common.d.ts +110 -0
  101. data/assets/mermaid/diagrams/common/common.spec.d.ts +1 -0
  102. data/assets/mermaid/diagrams/common/commonDb.d.ts +7 -0
  103. data/assets/mermaid/diagrams/common/commonTypes.d.ts +51 -0
  104. data/assets/mermaid/diagrams/common/svgDrawCommon.d.ts +15 -0
  105. data/assets/mermaid/diagrams/er/erDb.d.ts +49 -0
  106. data/assets/mermaid/diagrams/er/erDetector.d.ts +3 -0
  107. data/assets/mermaid/diagrams/er/erDiagram.d.ts +34 -0
  108. data/assets/mermaid/diagrams/er/erMarkers.d.ts +24 -0
  109. data/assets/mermaid/diagrams/er/erRenderer.d.ts +19 -0
  110. data/assets/mermaid/diagrams/er/erRenderer.spec.d.ts +1 -0
  111. data/assets/mermaid/diagrams/er/styles.d.ts +2 -0
  112. data/assets/mermaid/diagrams/error/errorDiagram.d.ts +3 -0
  113. data/assets/mermaid/diagrams/error/errorRenderer.d.ts +12 -0
  114. data/assets/mermaid/diagrams/flowchart/elk/detector.d.ts +3 -0
  115. data/assets/mermaid/diagrams/flowchart/elk/detector.spec.d.ts +1 -0
  116. data/assets/mermaid/diagrams/flowchart/elk/flowRenderer-elk.d.ts +10 -0
  117. data/assets/mermaid/diagrams/flowchart/elk/flowchart-elk-definition.d.ts +10 -0
  118. data/assets/mermaid/diagrams/flowchart/elk/render-utils.d.ts +5 -0
  119. data/assets/mermaid/diagrams/flowchart/elk/render-utils.spec.d.ts +1 -0
  120. data/assets/mermaid/diagrams/flowchart/elk/styles.d.ts +19 -0
  121. data/assets/mermaid/diagrams/flowchart/flowChartShapes.d.ts +9 -0
  122. data/assets/mermaid/diagrams/flowchart/flowDb.d.ts +87 -0
  123. data/assets/mermaid/diagrams/flowchart/flowDetector-v2.d.ts +3 -0
  124. data/assets/mermaid/diagrams/flowchart/flowDetector.d.ts +3 -0
  125. data/assets/mermaid/diagrams/flowchart/flowDiagram-v2.d.ts +57 -0
  126. data/assets/mermaid/diagrams/flowchart/flowDiagram.d.ts +57 -0
  127. data/assets/mermaid/diagrams/flowchart/flowRenderer-v2.d.ts +13 -0
  128. data/assets/mermaid/diagrams/flowchart/flowRenderer.d.ts +13 -0
  129. data/assets/mermaid/diagrams/flowchart/styles.d.ts +18 -0
  130. data/assets/mermaid/diagrams/gantt/ganttDb.d.ts +106 -0
  131. data/assets/mermaid/diagrams/gantt/ganttDb.spec.d.ts +1 -0
  132. data/assets/mermaid/diagrams/gantt/ganttDetector.d.ts +3 -0
  133. data/assets/mermaid/diagrams/gantt/ganttDiagram.d.ts +2 -0
  134. data/assets/mermaid/diagrams/gantt/ganttRenderer.d.ts +7 -0
  135. data/assets/mermaid/diagrams/gantt/styles.d.ts +2 -0
  136. data/assets/mermaid/diagrams/git/gitGraphAst.d.ts +61 -0
  137. data/assets/mermaid/diagrams/git/gitGraphDetector.d.ts +3 -0
  138. data/assets/mermaid/diagrams/git/gitGraphDiagram.d.ts +2 -0
  139. data/assets/mermaid/diagrams/git/gitGraphRenderer.d.ts +5 -0
  140. data/assets/mermaid/diagrams/git/styles.d.ts +2 -0
  141. data/assets/mermaid/diagrams/info/info.spec.d.ts +1 -0
  142. data/assets/mermaid/diagrams/info/infoDb.d.ts +5 -0
  143. data/assets/mermaid/diagrams/info/infoDetector.d.ts +2 -0
  144. data/assets/mermaid/diagrams/info/infoDiagram.d.ts +2 -0
  145. data/assets/mermaid/diagrams/info/infoRenderer.d.ts +4 -0
  146. data/assets/mermaid/diagrams/info/infoTypes.d.ts +9 -0
  147. data/assets/mermaid/diagrams/mindmap/detector.d.ts +3 -0
  148. data/assets/mermaid/diagrams/mindmap/mindmap-definition.d.ts +2 -0
  149. data/assets/mermaid/diagrams/mindmap/mindmap.spec.d.ts +1 -0
  150. data/assets/mermaid/diagrams/mindmap/mindmapDb.d.ts +30 -0
  151. data/assets/mermaid/diagrams/mindmap/mindmapRenderer.d.ts +21 -0
  152. data/assets/mermaid/diagrams/mindmap/mindmapTypes.d.ts +20 -0
  153. data/assets/mermaid/diagrams/mindmap/styles.d.ts +3 -0
  154. data/assets/mermaid/diagrams/mindmap/svgDraw.d.ts +13 -0
  155. data/assets/mermaid/diagrams/pie/pie.spec.d.ts +1 -0
  156. data/assets/mermaid/diagrams/pie/pieDb.d.ts +6 -0
  157. data/assets/mermaid/diagrams/pie/pieDetector.d.ts +2 -0
  158. data/assets/mermaid/diagrams/pie/pieDiagram.d.ts +2 -0
  159. data/assets/mermaid/diagrams/pie/pieRenderer.d.ts +13 -0
  160. data/assets/mermaid/diagrams/pie/pieStyles.d.ts +3 -0
  161. data/assets/mermaid/diagrams/pie/pieTypes.d.ts +53 -0
  162. data/assets/mermaid/diagrams/quadrant-chart/parser/quadrant.jison.spec.d.ts +1 -0
  163. data/assets/mermaid/diagrams/quadrant-chart/quadrantBuilder.d.ts +118 -0
  164. data/assets/mermaid/diagrams/quadrant-chart/quadrantDb.d.ts +38 -0
  165. data/assets/mermaid/diagrams/quadrant-chart/quadrantDetector.d.ts +3 -0
  166. data/assets/mermaid/diagrams/quadrant-chart/quadrantDiagram.d.ts +2 -0
  167. data/assets/mermaid/diagrams/quadrant-chart/quadrantRenderer.d.ts +6 -0
  168. data/assets/mermaid/diagrams/requirement/requirementDb.d.ts +70 -0
  169. data/assets/mermaid/diagrams/requirement/requirementDetector.d.ts +3 -0
  170. data/assets/mermaid/diagrams/requirement/requirementDiagram.d.ts +2 -0
  171. data/assets/mermaid/diagrams/requirement/requirementMarkers.d.ts +10 -0
  172. data/assets/mermaid/diagrams/requirement/requirementRenderer.d.ts +7 -0
  173. data/assets/mermaid/diagrams/requirement/styles.d.ts +2 -0
  174. data/assets/mermaid/diagrams/sankey/parser/sankey.spec.d.ts +1 -0
  175. data/assets/mermaid/diagrams/sankey/sankeyDB.d.ts +36 -0
  176. data/assets/mermaid/diagrams/sankey/sankeyDetector.d.ts +3 -0
  177. data/assets/mermaid/diagrams/sankey/sankeyDiagram.d.ts +2 -0
  178. data/assets/mermaid/diagrams/sankey/sankeyRenderer.d.ts +14 -0
  179. data/assets/mermaid/diagrams/sankey/sankeyUtils.d.ts +1 -0
  180. data/assets/mermaid/diagrams/sequence/sequenceDb.d.ts +153 -0
  181. data/assets/mermaid/diagrams/sequence/sequenceDetector.d.ts +3 -0
  182. data/assets/mermaid/diagrams/sequence/sequenceDiagram.d.ts +2 -0
  183. data/assets/mermaid/diagrams/sequence/sequenceRenderer.d.ts +202 -0
  184. data/assets/mermaid/diagrams/sequence/styles.d.ts +2 -0
  185. data/assets/mermaid/diagrams/sequence/svgDraw.d.ts +73 -0
  186. data/assets/mermaid/diagrams/state/id-cache.d.ts +11 -0
  187. data/assets/mermaid/diagrams/state/shapes.d.ts +14 -0
  188. data/assets/mermaid/diagrams/state/stateCommon.d.ts +22 -0
  189. data/assets/mermaid/diagrams/state/stateDb.d.ts +91 -0
  190. data/assets/mermaid/diagrams/state/stateDetector-V2.d.ts +3 -0
  191. data/assets/mermaid/diagrams/state/stateDetector.d.ts +3 -0
  192. data/assets/mermaid/diagrams/state/stateDiagram-v2.d.ts +2 -0
  193. data/assets/mermaid/diagrams/state/stateDiagram.d.ts +2 -0
  194. data/assets/mermaid/diagrams/state/stateRenderer-v2.d.ts +20 -0
  195. data/assets/mermaid/diagrams/state/stateRenderer.d.ts +7 -0
  196. data/assets/mermaid/diagrams/state/styles.d.ts +2 -0
  197. data/assets/mermaid/diagrams/timeline/detector.d.ts +3 -0
  198. data/assets/mermaid/diagrams/timeline/styles.d.ts +2 -0
  199. data/assets/mermaid/diagrams/timeline/svgDraw.d.ts +46 -0
  200. data/assets/mermaid/diagrams/timeline/timeline-definition.d.ts +10 -0
  201. data/assets/mermaid/diagrams/timeline/timelineDb.d.ts +20 -0
  202. data/assets/mermaid/diagrams/timeline/timelineRenderer.d.ts +19 -0
  203. data/assets/mermaid/diagrams/user-journey/journeyDb.d.ts +30 -0
  204. data/assets/mermaid/diagrams/user-journey/journeyDetector.d.ts +3 -0
  205. data/assets/mermaid/diagrams/user-journey/journeyDiagram.d.ts +2 -0
  206. data/assets/mermaid/diagrams/user-journey/journeyRenderer.d.ts +30 -0
  207. data/assets/mermaid/diagrams/user-journey/styles.d.ts +2 -0
  208. data/assets/mermaid/diagrams/user-journey/svgDraw.d.ts +20 -0
  209. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/bandAxis.d.ts +12 -0
  210. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/baseAxis.d.ts +38 -0
  211. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/index.d.ts +12 -0
  212. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/linearAxis.d.ts +11 -0
  213. data/assets/mermaid/diagrams/xychart/chartBuilder/components/chartTitle.d.ts +16 -0
  214. data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/barPlot.d.ts +12 -0
  215. data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/index.d.ts +20 -0
  216. data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/linePlot.d.ts +11 -0
  217. data/assets/mermaid/diagrams/xychart/chartBuilder/index.d.ts +5 -0
  218. data/assets/mermaid/diagrams/xychart/chartBuilder/interfaces.d.ts +132 -0
  219. data/assets/mermaid/diagrams/xychart/chartBuilder/orchestrator.d.ts +12 -0
  220. data/assets/mermaid/diagrams/xychart/chartBuilder/textDimensionCalculator.d.ts +10 -0
  221. data/assets/mermaid/diagrams/xychart/parser/xychart.jison.spec.d.ts +1 -0
  222. data/assets/mermaid/diagrams/xychart/xychartDb.d.ts +40 -0
  223. data/assets/mermaid/diagrams/xychart/xychartDetector.d.ts +3 -0
  224. data/assets/mermaid/diagrams/xychart/xychartDiagram.d.ts +2 -0
  225. data/assets/mermaid/diagrams/xychart/xychartRenderer.d.ts +6 -0
  226. data/assets/mermaid/docs/vite.config.d.ts +2 -0
  227. data/assets/mermaid/edges-066a5561.js +1840 -0
  228. data/assets/mermaid/edges-16357fde.js +1083 -0
  229. data/assets/mermaid/edges-ce5cfb7c.js +1840 -0
  230. data/assets/mermaid/erDiagram-09d1c15f.js +1176 -0
  231. data/assets/mermaid/erDiagram-543717f2.js +1321 -0
  232. data/assets/mermaid/erDiagram-c7ff1bec.js +931 -0
  233. data/assets/mermaid/errors.d.ts +3 -0
  234. data/assets/mermaid/flowDb-9a89ea33.js +1126 -0
  235. data/assets/mermaid/flowDb-ba9bd7fa.js +1713 -0
  236. data/assets/mermaid/flowDb-c1833063.js +1714 -0
  237. data/assets/mermaid/flowDiagram-aadb13b0.js +797 -0
  238. data/assets/mermaid/flowDiagram-b222e15a.js +614 -0
  239. data/assets/mermaid/flowDiagram-b5e7ba30.js +1278 -0
  240. data/assets/mermaid/flowDiagram-v2-13329dc7.js +40 -0
  241. data/assets/mermaid/flowDiagram-v2-54711e03.js +32 -0
  242. data/assets/mermaid/flowDiagram-v2-f2119625.js +25 -0
  243. data/assets/mermaid/flowchart-elk-definition-2d49707c.js +93397 -0
  244. data/assets/mermaid/flowchart-elk-definition-ae0efee6.js +814 -0
  245. data/assets/mermaid/flowchart-elk-definition-cf813a97.js +48407 -0
  246. data/assets/mermaid/ganttDiagram-12cf43db.js +3445 -0
  247. data/assets/mermaid/ganttDiagram-3c2fde2b.js +2501 -0
  248. data/assets/mermaid/ganttDiagram-b62c793e.js +2061 -0
  249. data/assets/mermaid/gitGraphDiagram-942e62fe.js +1800 -0
  250. data/assets/mermaid/gitGraphDiagram-b9392a12.js +1790 -0
  251. data/assets/mermaid/gitGraphDiagram-c3a0619c.js +1264 -0
  252. data/assets/mermaid/graph-0ee63739.js +881 -0
  253. data/assets/mermaid/graph-fe24fab6.js +1285 -0
  254. data/assets/mermaid/index-01f381cb.js +622 -0
  255. data/assets/mermaid/index-bb6d8841.js +373 -0
  256. data/assets/mermaid/index-fc479858.js +663 -0
  257. data/assets/mermaid/infoDiagram-2f5c50c0.js +319 -0
  258. data/assets/mermaid/infoDiagram-94cd232f.js +520 -0
  259. data/assets/mermaid/infoDiagram-d0d5c9bd.js +510 -0
  260. data/assets/mermaid/init-cc95ec8e.js +16 -0
  261. data/assets/mermaid/init-f9637058.js +16 -0
  262. data/assets/mermaid/interactionDb.d.ts +2 -0
  263. data/assets/mermaid/journeyDiagram-14fe341a.js +804 -0
  264. data/assets/mermaid/journeyDiagram-6625b456.js +1191 -0
  265. data/assets/mermaid/journeyDiagram-b56e6921.js +1183 -0
  266. data/assets/mermaid/katex-d90b6d29.js +11624 -0
  267. data/assets/mermaid/katex-ffb0e8f1.js +14432 -0
  268. data/assets/mermaid/layout-163b9689.js +2314 -0
  269. data/assets/mermaid/layout-fd473db2.js +1536 -0
  270. data/assets/mermaid/line-24d93f1b.js +34 -0
  271. data/assets/mermaid/line-87f517ef.js +50 -0
  272. data/assets/mermaid/linear-0ad15847.js +595 -0
  273. data/assets/mermaid/linear-9bcf74c4.js +447 -0
  274. data/assets/mermaid/logger.d.ts +9 -0
  275. data/assets/mermaid/mermaid-6dc72991.js +6461 -0
  276. data/assets/mermaid/mermaid-9f2aa176.js +8112 -0
  277. data/assets/mermaid/mermaid-dcacb631.js +12793 -0
  278. data/assets/mermaid/mermaid.core.mjs +14 -0
  279. data/assets/mermaid/mermaid.d.ts +146 -0
  280. data/assets/mermaid/mermaid.esm.min.mjs +4 -0
  281. data/assets/mermaid/mermaid.esm.mjs +4 -0
  282. data/assets/mermaid/mermaid.js +195755 -0
  283. data/assets/mermaid/mermaid.min.js +2029 -0
  284. data/assets/mermaid/mermaid.spec.d.ts +1 -0
  285. data/assets/mermaid/mermaidAPI.d.ts +170 -0
  286. data/assets/mermaid/mermaidAPI.spec.d.ts +1 -0
  287. data/assets/mermaid/mindmap-definition-307c710a.js +1177 -0
  288. data/assets/mermaid/mindmap-definition-696ddea4.js +32342 -0
  289. data/assets/mermaid/mindmap-definition-9399c7e6.js +18760 -0
  290. data/assets/mermaid/ordinal-475e0c0c.js +82 -0
  291. data/assets/mermaid/ordinal-5695958c.js +65 -0
  292. data/assets/mermaid/path-39bad7e2.js +118 -0
  293. data/assets/mermaid/path-428ebac9.js +91 -0
  294. data/assets/mermaid/pieDiagram-828dae43.js +502 -0
  295. data/assets/mermaid/pieDiagram-bb1d19e5.js +722 -0
  296. data/assets/mermaid/pieDiagram-e854eaf0.js +772 -0
  297. data/assets/mermaid/preprocess.d.ts +10 -0
  298. data/assets/mermaid/quadrantDiagram-25a9848b.js +1199 -0
  299. data/assets/mermaid/quadrantDiagram-5fa00455.js +904 -0
  300. data/assets/mermaid/quadrantDiagram-c759a472.js +1207 -0
  301. data/assets/mermaid/rendering-util/createText.d.ts +11 -0
  302. data/assets/mermaid/rendering-util/handle-markdown-text.d.ts +6 -0
  303. data/assets/mermaid/rendering-util/handle-markdown-text.spec.d.ts +1 -0
  304. data/assets/mermaid/rendering-util/selectSvgElement.d.ts +8 -0
  305. data/assets/mermaid/rendering-util/splitText.d.ts +24 -0
  306. data/assets/mermaid/rendering-util/splitText.spec.d.ts +1 -0
  307. data/assets/mermaid/rendering-util/uid.d.ts +8 -0
  308. data/assets/mermaid/requirementDiagram-03163dc4.js +769 -0
  309. data/assets/mermaid/requirementDiagram-87253d64.js +1098 -0
  310. data/assets/mermaid/requirementDiagram-a721e157.js +1091 -0
  311. data/assets/mermaid/sankeyDiagram-33525efb.js +1198 -0
  312. data/assets/mermaid/sankeyDiagram-52ec8976.js +818 -0
  313. data/assets/mermaid/sankeyDiagram-707fac0f.js +660 -0
  314. data/assets/mermaid/sequenceDiagram-6894f283.js +3346 -0
  315. data/assets/mermaid/sequenceDiagram-9813c129.js +3336 -0
  316. data/assets/mermaid/sequenceDiagram-b517d154.js +2234 -0
  317. data/assets/mermaid/setupGraphViewbox.d.ts +3 -0
  318. data/assets/mermaid/stateDiagram-5dee940d.js +474 -0
  319. data/assets/mermaid/stateDiagram-5ec31577.js +467 -0
  320. data/assets/mermaid/stateDiagram-fca82b5b.js +275 -0
  321. data/assets/mermaid/stateDiagram-v2-1992cada.js +333 -0
  322. data/assets/mermaid/stateDiagram-v2-992e82a1.js +325 -0
  323. data/assets/mermaid/stateDiagram-v2-ed04200a.js +190 -0
  324. data/assets/mermaid/styles-0784dbeb.js +1363 -0
  325. data/assets/mermaid/styles-11e81fdd.js +1089 -0
  326. data/assets/mermaid/styles-36a1a2e8.js +1483 -0
  327. data/assets/mermaid/styles-483fbfea.js +509 -0
  328. data/assets/mermaid/styles-727cdd61.js +571 -0
  329. data/assets/mermaid/styles-b83b31c9.js +1484 -0
  330. data/assets/mermaid/styles-cacbff60.js +960 -0
  331. data/assets/mermaid/styles-e75131e4.js +433 -0
  332. data/assets/mermaid/styles-f80da881.js +1363 -0
  333. data/assets/mermaid/styles.d.ts +12 -0
  334. data/assets/mermaid/styles.spec.d.ts +1 -0
  335. data/assets/mermaid/svgDrawCommon-5e1cfd1d.js +101 -0
  336. data/assets/mermaid/svgDrawCommon-d6ab583c.js +100 -0
  337. data/assets/mermaid/svgDrawCommon-ecc5f780.js +64 -0
  338. data/assets/mermaid/tests/MockedD3.d.ts +45 -0
  339. data/assets/mermaid/tests/setup.d.ts +1 -0
  340. data/assets/mermaid/tests/util.d.ts +3 -0
  341. data/assets/mermaid/themes/erDiagram-oldHardcodedValues.d.ts +7 -0
  342. data/assets/mermaid/themes/index.d.ts +24 -0
  343. data/assets/mermaid/themes/theme-base.d.ts +189 -0
  344. data/assets/mermaid/themes/theme-dark.d.ts +177 -0
  345. data/assets/mermaid/themes/theme-default.d.ts +188 -0
  346. data/assets/mermaid/themes/theme-forest.d.ts +185 -0
  347. data/assets/mermaid/themes/theme-helpers.d.ts +1 -0
  348. data/assets/mermaid/themes/theme-neutral.d.ts +182 -0
  349. data/assets/mermaid/timeline-definition-23ce0e2e.js +1211 -0
  350. data/assets/mermaid/timeline-definition-4ee9bff4.js +795 -0
  351. data/assets/mermaid/timeline-definition-bf702344.js +1219 -0
  352. data/assets/mermaid/types.d.ts +31 -0
  353. data/assets/mermaid/utils/imperativeState.d.ts +32 -0
  354. data/assets/mermaid/utils/imperativeState.spec.d.ts +1 -0
  355. data/assets/mermaid/utils/lineWithOffset.d.ts +5 -0
  356. data/assets/mermaid/utils/sanitizeDirective.d.ts +7 -0
  357. data/assets/mermaid/utils/subGraphTitleMargins.d.ts +8 -0
  358. data/assets/mermaid/utils/subGraphTitleMargins.spec.d.ts +1 -0
  359. data/assets/mermaid/utils.d.ts +286 -0
  360. data/assets/mermaid/utils.spec.d.ts +1 -0
  361. data/assets/mermaid/xychartDiagram-de2e5521.js +1800 -0
  362. data/assets/mermaid/xychartDiagram-e5e6b652.js +1284 -0
  363. data/assets/mermaid/xychartDiagram-f11f50a6.js +1745 -0
  364. data/assets/tables.css +23 -0
  365. data/assets/toURI.js +142 -0
  366. metadata +363 -2
@@ -0,0 +1,298 @@
1
+ import { p as parser, d as db, s as styles } from "./styles-b83b31c9.js";
2
+ import { select, curveLinear } from "d3";
3
+ import * as graphlib from "dagre-d3-es/src/graphlib/index.js";
4
+ import { l as log, c as getConfig, u as utils, o as setupGraphViewbox, k as getStylesFromArray, n as interpolateToCurve, e as common } from "./mermaid-6dc72991.js";
5
+ import { r as render } from "./index-01f381cb.js";
6
+ import "ts-dedent";
7
+ import "dayjs";
8
+ import "@braintree/sanitize-url";
9
+ import "dompurify";
10
+ import "khroma";
11
+ import "lodash-es/memoize.js";
12
+ import "lodash-es/merge.js";
13
+ import "stylis";
14
+ import "lodash-es/isEmpty.js";
15
+ import "dagre-d3-es/src/dagre/index.js";
16
+ import "dagre-d3-es/src/graphlib/json.js";
17
+ import "./edges-066a5561.js";
18
+ import "./createText-ca0c5216.js";
19
+ import "mdast-util-from-markdown";
20
+ const sanitizeText = (txt) => common.sanitizeText(txt, getConfig());
21
+ let conf = {
22
+ dividerMargin: 10,
23
+ padding: 5,
24
+ textHeight: 10,
25
+ curve: void 0
26
+ };
27
+ const addNamespaces = function(namespaces, g, _id, diagObj) {
28
+ const keys = Object.keys(namespaces);
29
+ log.info("keys:", keys);
30
+ log.info(namespaces);
31
+ keys.forEach(function(id) {
32
+ var _a, _b;
33
+ const vertex = namespaces[id];
34
+ const shape = "rect";
35
+ const node = {
36
+ shape,
37
+ id: vertex.id,
38
+ domId: vertex.domId,
39
+ labelText: sanitizeText(vertex.id),
40
+ labelStyle: "",
41
+ style: "fill: none; stroke: black",
42
+ // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
43
+ padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)
44
+ };
45
+ g.setNode(vertex.id, node);
46
+ addClasses(vertex.classes, g, _id, diagObj, vertex.id);
47
+ log.info("setNode", node);
48
+ });
49
+ };
50
+ const addClasses = function(classes, g, _id, diagObj, parent) {
51
+ const keys = Object.keys(classes);
52
+ log.info("keys:", keys);
53
+ log.info(classes);
54
+ keys.filter((id) => classes[id].parent == parent).forEach(function(id) {
55
+ var _a, _b;
56
+ const vertex = classes[id];
57
+ const cssClassStr = vertex.cssClasses.join(" ");
58
+ const styles2 = getStylesFromArray(vertex.styles);
59
+ const vertexText = vertex.label ?? vertex.id;
60
+ const radius = 0;
61
+ const shape = "class_box";
62
+ const node = {
63
+ labelStyle: styles2.labelStyle,
64
+ shape,
65
+ labelText: sanitizeText(vertexText),
66
+ classData: vertex,
67
+ rx: radius,
68
+ ry: radius,
69
+ class: cssClassStr,
70
+ style: styles2.style,
71
+ id: vertex.id,
72
+ domId: vertex.domId,
73
+ tooltip: diagObj.db.getTooltip(vertex.id, parent) || "",
74
+ haveCallback: vertex.haveCallback,
75
+ link: vertex.link,
76
+ width: vertex.type === "group" ? 500 : void 0,
77
+ type: vertex.type,
78
+ // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
79
+ padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)
80
+ };
81
+ g.setNode(vertex.id, node);
82
+ if (parent) {
83
+ g.setParent(vertex.id, parent);
84
+ }
85
+ log.info("setNode", node);
86
+ });
87
+ };
88
+ const addNotes = function(notes, g, startEdgeId, classes) {
89
+ log.info(notes);
90
+ notes.forEach(function(note, i) {
91
+ var _a, _b;
92
+ const vertex = note;
93
+ const cssNoteStr = "";
94
+ const styles2 = { labelStyle: "", style: "" };
95
+ const vertexText = vertex.text;
96
+ const radius = 0;
97
+ const shape = "note";
98
+ const node = {
99
+ labelStyle: styles2.labelStyle,
100
+ shape,
101
+ labelText: sanitizeText(vertexText),
102
+ noteData: vertex,
103
+ rx: radius,
104
+ ry: radius,
105
+ class: cssNoteStr,
106
+ style: styles2.style,
107
+ id: vertex.id,
108
+ domId: vertex.id,
109
+ tooltip: "",
110
+ type: "note",
111
+ // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
112
+ padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)
113
+ };
114
+ g.setNode(vertex.id, node);
115
+ log.info("setNode", node);
116
+ if (!vertex.class || !(vertex.class in classes)) {
117
+ return;
118
+ }
119
+ const edgeId = startEdgeId + i;
120
+ const edgeData = {
121
+ id: `edgeNote${edgeId}`,
122
+ //Set relationship style and line type
123
+ classes: "relation",
124
+ pattern: "dotted",
125
+ // Set link type for rendering
126
+ arrowhead: "none",
127
+ //Set edge extra labels
128
+ startLabelRight: "",
129
+ endLabelLeft: "",
130
+ //Set relation arrow types
131
+ arrowTypeStart: "none",
132
+ arrowTypeEnd: "none",
133
+ style: "fill:none",
134
+ labelStyle: "",
135
+ curve: interpolateToCurve(conf.curve, curveLinear)
136
+ };
137
+ g.setEdge(vertex.id, vertex.class, edgeData, edgeId);
138
+ });
139
+ };
140
+ const addRelations = function(relations, g) {
141
+ const conf2 = getConfig().flowchart;
142
+ let cnt = 0;
143
+ relations.forEach(function(edge) {
144
+ var _a;
145
+ cnt++;
146
+ const edgeData = {
147
+ //Set relationship style and line type
148
+ classes: "relation",
149
+ pattern: edge.relation.lineType == 1 ? "dashed" : "solid",
150
+ id: `id_${edge.id1}_${edge.id2}_${cnt}`,
151
+ // Set link type for rendering
152
+ arrowhead: edge.type === "arrow_open" ? "none" : "normal",
153
+ //Set edge extra labels
154
+ startLabelRight: edge.relationTitle1 === "none" ? "" : edge.relationTitle1,
155
+ endLabelLeft: edge.relationTitle2 === "none" ? "" : edge.relationTitle2,
156
+ //Set relation arrow types
157
+ arrowTypeStart: getArrowMarker(edge.relation.type1),
158
+ arrowTypeEnd: getArrowMarker(edge.relation.type2),
159
+ style: "fill:none",
160
+ labelStyle: "",
161
+ curve: interpolateToCurve(conf2 == null ? void 0 : conf2.curve, curveLinear)
162
+ };
163
+ log.info(edgeData, edge);
164
+ if (edge.style !== void 0) {
165
+ const styles2 = getStylesFromArray(edge.style);
166
+ edgeData.style = styles2.style;
167
+ edgeData.labelStyle = styles2.labelStyle;
168
+ }
169
+ edge.text = edge.title;
170
+ if (edge.text === void 0) {
171
+ if (edge.style !== void 0) {
172
+ edgeData.arrowheadStyle = "fill: #333";
173
+ }
174
+ } else {
175
+ edgeData.arrowheadStyle = "fill: #333";
176
+ edgeData.labelpos = "c";
177
+ if (((_a = getConfig().flowchart) == null ? void 0 : _a.htmlLabels) ?? getConfig().htmlLabels) {
178
+ edgeData.labelType = "html";
179
+ edgeData.label = '<span class="edgeLabel">' + edge.text + "</span>";
180
+ } else {
181
+ edgeData.labelType = "text";
182
+ edgeData.label = edge.text.replace(common.lineBreakRegex, "\n");
183
+ if (edge.style === void 0) {
184
+ edgeData.style = edgeData.style || "stroke: #333; stroke-width: 1.5px;fill:none";
185
+ }
186
+ edgeData.labelStyle = edgeData.labelStyle.replace("color:", "fill:");
187
+ }
188
+ }
189
+ g.setEdge(edge.id1, edge.id2, edgeData, cnt);
190
+ });
191
+ };
192
+ const setConf = function(cnf) {
193
+ conf = {
194
+ ...conf,
195
+ ...cnf
196
+ };
197
+ };
198
+ const draw = async function(text, id, _version, diagObj) {
199
+ log.info("Drawing class - ", id);
200
+ const conf2 = getConfig().flowchart ?? getConfig().class;
201
+ const securityLevel = getConfig().securityLevel;
202
+ log.info("config:", conf2);
203
+ const nodeSpacing = (conf2 == null ? void 0 : conf2.nodeSpacing) ?? 50;
204
+ const rankSpacing = (conf2 == null ? void 0 : conf2.rankSpacing) ?? 50;
205
+ const g = new graphlib.Graph({
206
+ multigraph: true,
207
+ compound: true
208
+ }).setGraph({
209
+ rankdir: diagObj.db.getDirection(),
210
+ nodesep: nodeSpacing,
211
+ ranksep: rankSpacing,
212
+ marginx: 8,
213
+ marginy: 8
214
+ }).setDefaultEdgeLabel(function() {
215
+ return {};
216
+ });
217
+ const namespaces = diagObj.db.getNamespaces();
218
+ const classes = diagObj.db.getClasses();
219
+ const relations = diagObj.db.getRelations();
220
+ const notes = diagObj.db.getNotes();
221
+ log.info(relations);
222
+ addNamespaces(namespaces, g, id, diagObj);
223
+ addClasses(classes, g, id, diagObj);
224
+ addRelations(relations, g);
225
+ addNotes(notes, g, relations.length + 1, classes);
226
+ let sandboxElement;
227
+ if (securityLevel === "sandbox") {
228
+ sandboxElement = select("#i" + id);
229
+ }
230
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
231
+ const svg = root.select(`[id="${id}"]`);
232
+ const element = root.select("#" + id + " g");
233
+ await render(
234
+ element,
235
+ g,
236
+ ["aggregation", "extension", "composition", "dependency", "lollipop"],
237
+ "classDiagram",
238
+ id
239
+ );
240
+ utils.insertTitle(svg, "classTitleText", (conf2 == null ? void 0 : conf2.titleTopMargin) ?? 5, diagObj.db.getDiagramTitle());
241
+ setupGraphViewbox(g, svg, conf2 == null ? void 0 : conf2.diagramPadding, conf2 == null ? void 0 : conf2.useMaxWidth);
242
+ if (!(conf2 == null ? void 0 : conf2.htmlLabels)) {
243
+ const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
244
+ const labels = doc.querySelectorAll('[id="' + id + '"] .edgeLabel .label');
245
+ for (const label of labels) {
246
+ const dim = label.getBBox();
247
+ const rect = doc.createElementNS("http://www.w3.org/2000/svg", "rect");
248
+ rect.setAttribute("rx", 0);
249
+ rect.setAttribute("ry", 0);
250
+ rect.setAttribute("width", dim.width);
251
+ rect.setAttribute("height", dim.height);
252
+ label.insertBefore(rect, label.firstChild);
253
+ }
254
+ }
255
+ };
256
+ function getArrowMarker(type) {
257
+ let marker;
258
+ switch (type) {
259
+ case 0:
260
+ marker = "aggregation";
261
+ break;
262
+ case 1:
263
+ marker = "extension";
264
+ break;
265
+ case 2:
266
+ marker = "composition";
267
+ break;
268
+ case 3:
269
+ marker = "dependency";
270
+ break;
271
+ case 4:
272
+ marker = "lollipop";
273
+ break;
274
+ default:
275
+ marker = "none";
276
+ }
277
+ return marker;
278
+ }
279
+ const renderer = {
280
+ setConf,
281
+ draw
282
+ };
283
+ const diagram = {
284
+ parser,
285
+ db,
286
+ renderer,
287
+ styles,
288
+ init: (cnf) => {
289
+ if (!cnf.class) {
290
+ cnf.class = {};
291
+ }
292
+ cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
293
+ db.clear();
294
+ }
295
+ };
296
+ export {
297
+ diagram
298
+ };
@@ -0,0 +1,290 @@
1
+ import { p as parser, d as db, s as styles } from "./styles-36a1a2e8.js";
2
+ import { l as log, c as getConfig, j as d3select, A as utils, t as setupGraphViewbox, o as getStylesFromArray, q as interpolateToCurve, n as curveLinear, f as common } from "./mermaid-dcacb631.js";
3
+ import { G as Graph } from "./graph-fe24fab6.js";
4
+ import { r as render } from "./index-fc479858.js";
5
+ import "./layout-163b9689.js";
6
+ import "./clone-9ea6bfeb.js";
7
+ import "./edges-ce5cfb7c.js";
8
+ import "./createText-b70fe78a.js";
9
+ import "./line-87f517ef.js";
10
+ import "./array-b7dcf730.js";
11
+ import "./path-39bad7e2.js";
12
+ const sanitizeText = (txt) => common.sanitizeText(txt, getConfig());
13
+ let conf = {
14
+ dividerMargin: 10,
15
+ padding: 5,
16
+ textHeight: 10,
17
+ curve: void 0
18
+ };
19
+ const addNamespaces = function(namespaces, g, _id, diagObj) {
20
+ const keys = Object.keys(namespaces);
21
+ log.info("keys:", keys);
22
+ log.info(namespaces);
23
+ keys.forEach(function(id) {
24
+ var _a, _b;
25
+ const vertex = namespaces[id];
26
+ const shape = "rect";
27
+ const node = {
28
+ shape,
29
+ id: vertex.id,
30
+ domId: vertex.domId,
31
+ labelText: sanitizeText(vertex.id),
32
+ labelStyle: "",
33
+ style: "fill: none; stroke: black",
34
+ // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
35
+ padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)
36
+ };
37
+ g.setNode(vertex.id, node);
38
+ addClasses(vertex.classes, g, _id, diagObj, vertex.id);
39
+ log.info("setNode", node);
40
+ });
41
+ };
42
+ const addClasses = function(classes, g, _id, diagObj, parent) {
43
+ const keys = Object.keys(classes);
44
+ log.info("keys:", keys);
45
+ log.info(classes);
46
+ keys.filter((id) => classes[id].parent == parent).forEach(function(id) {
47
+ var _a, _b;
48
+ const vertex = classes[id];
49
+ const cssClassStr = vertex.cssClasses.join(" ");
50
+ const styles2 = getStylesFromArray(vertex.styles);
51
+ const vertexText = vertex.label ?? vertex.id;
52
+ const radius = 0;
53
+ const shape = "class_box";
54
+ const node = {
55
+ labelStyle: styles2.labelStyle,
56
+ shape,
57
+ labelText: sanitizeText(vertexText),
58
+ classData: vertex,
59
+ rx: radius,
60
+ ry: radius,
61
+ class: cssClassStr,
62
+ style: styles2.style,
63
+ id: vertex.id,
64
+ domId: vertex.domId,
65
+ tooltip: diagObj.db.getTooltip(vertex.id, parent) || "",
66
+ haveCallback: vertex.haveCallback,
67
+ link: vertex.link,
68
+ width: vertex.type === "group" ? 500 : void 0,
69
+ type: vertex.type,
70
+ // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
71
+ padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)
72
+ };
73
+ g.setNode(vertex.id, node);
74
+ if (parent) {
75
+ g.setParent(vertex.id, parent);
76
+ }
77
+ log.info("setNode", node);
78
+ });
79
+ };
80
+ const addNotes = function(notes, g, startEdgeId, classes) {
81
+ log.info(notes);
82
+ notes.forEach(function(note, i) {
83
+ var _a, _b;
84
+ const vertex = note;
85
+ const cssNoteStr = "";
86
+ const styles2 = { labelStyle: "", style: "" };
87
+ const vertexText = vertex.text;
88
+ const radius = 0;
89
+ const shape = "note";
90
+ const node = {
91
+ labelStyle: styles2.labelStyle,
92
+ shape,
93
+ labelText: sanitizeText(vertexText),
94
+ noteData: vertex,
95
+ rx: radius,
96
+ ry: radius,
97
+ class: cssNoteStr,
98
+ style: styles2.style,
99
+ id: vertex.id,
100
+ domId: vertex.id,
101
+ tooltip: "",
102
+ type: "note",
103
+ // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
104
+ padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)
105
+ };
106
+ g.setNode(vertex.id, node);
107
+ log.info("setNode", node);
108
+ if (!vertex.class || !(vertex.class in classes)) {
109
+ return;
110
+ }
111
+ const edgeId = startEdgeId + i;
112
+ const edgeData = {
113
+ id: `edgeNote${edgeId}`,
114
+ //Set relationship style and line type
115
+ classes: "relation",
116
+ pattern: "dotted",
117
+ // Set link type for rendering
118
+ arrowhead: "none",
119
+ //Set edge extra labels
120
+ startLabelRight: "",
121
+ endLabelLeft: "",
122
+ //Set relation arrow types
123
+ arrowTypeStart: "none",
124
+ arrowTypeEnd: "none",
125
+ style: "fill:none",
126
+ labelStyle: "",
127
+ curve: interpolateToCurve(conf.curve, curveLinear)
128
+ };
129
+ g.setEdge(vertex.id, vertex.class, edgeData, edgeId);
130
+ });
131
+ };
132
+ const addRelations = function(relations, g) {
133
+ const conf2 = getConfig().flowchart;
134
+ let cnt = 0;
135
+ relations.forEach(function(edge) {
136
+ var _a;
137
+ cnt++;
138
+ const edgeData = {
139
+ //Set relationship style and line type
140
+ classes: "relation",
141
+ pattern: edge.relation.lineType == 1 ? "dashed" : "solid",
142
+ id: `id_${edge.id1}_${edge.id2}_${cnt}`,
143
+ // Set link type for rendering
144
+ arrowhead: edge.type === "arrow_open" ? "none" : "normal",
145
+ //Set edge extra labels
146
+ startLabelRight: edge.relationTitle1 === "none" ? "" : edge.relationTitle1,
147
+ endLabelLeft: edge.relationTitle2 === "none" ? "" : edge.relationTitle2,
148
+ //Set relation arrow types
149
+ arrowTypeStart: getArrowMarker(edge.relation.type1),
150
+ arrowTypeEnd: getArrowMarker(edge.relation.type2),
151
+ style: "fill:none",
152
+ labelStyle: "",
153
+ curve: interpolateToCurve(conf2 == null ? void 0 : conf2.curve, curveLinear)
154
+ };
155
+ log.info(edgeData, edge);
156
+ if (edge.style !== void 0) {
157
+ const styles2 = getStylesFromArray(edge.style);
158
+ edgeData.style = styles2.style;
159
+ edgeData.labelStyle = styles2.labelStyle;
160
+ }
161
+ edge.text = edge.title;
162
+ if (edge.text === void 0) {
163
+ if (edge.style !== void 0) {
164
+ edgeData.arrowheadStyle = "fill: #333";
165
+ }
166
+ } else {
167
+ edgeData.arrowheadStyle = "fill: #333";
168
+ edgeData.labelpos = "c";
169
+ if (((_a = getConfig().flowchart) == null ? void 0 : _a.htmlLabels) ?? getConfig().htmlLabels) {
170
+ edgeData.labelType = "html";
171
+ edgeData.label = '<span class="edgeLabel">' + edge.text + "</span>";
172
+ } else {
173
+ edgeData.labelType = "text";
174
+ edgeData.label = edge.text.replace(common.lineBreakRegex, "\n");
175
+ if (edge.style === void 0) {
176
+ edgeData.style = edgeData.style || "stroke: #333; stroke-width: 1.5px;fill:none";
177
+ }
178
+ edgeData.labelStyle = edgeData.labelStyle.replace("color:", "fill:");
179
+ }
180
+ }
181
+ g.setEdge(edge.id1, edge.id2, edgeData, cnt);
182
+ });
183
+ };
184
+ const setConf = function(cnf) {
185
+ conf = {
186
+ ...conf,
187
+ ...cnf
188
+ };
189
+ };
190
+ const draw = async function(text, id, _version, diagObj) {
191
+ log.info("Drawing class - ", id);
192
+ const conf2 = getConfig().flowchart ?? getConfig().class;
193
+ const securityLevel = getConfig().securityLevel;
194
+ log.info("config:", conf2);
195
+ const nodeSpacing = (conf2 == null ? void 0 : conf2.nodeSpacing) ?? 50;
196
+ const rankSpacing = (conf2 == null ? void 0 : conf2.rankSpacing) ?? 50;
197
+ const g = new Graph({
198
+ multigraph: true,
199
+ compound: true
200
+ }).setGraph({
201
+ rankdir: diagObj.db.getDirection(),
202
+ nodesep: nodeSpacing,
203
+ ranksep: rankSpacing,
204
+ marginx: 8,
205
+ marginy: 8
206
+ }).setDefaultEdgeLabel(function() {
207
+ return {};
208
+ });
209
+ const namespaces = diagObj.db.getNamespaces();
210
+ const classes = diagObj.db.getClasses();
211
+ const relations = diagObj.db.getRelations();
212
+ const notes = diagObj.db.getNotes();
213
+ log.info(relations);
214
+ addNamespaces(namespaces, g, id, diagObj);
215
+ addClasses(classes, g, id, diagObj);
216
+ addRelations(relations, g);
217
+ addNotes(notes, g, relations.length + 1, classes);
218
+ let sandboxElement;
219
+ if (securityLevel === "sandbox") {
220
+ sandboxElement = d3select("#i" + id);
221
+ }
222
+ const root = securityLevel === "sandbox" ? d3select(sandboxElement.nodes()[0].contentDocument.body) : d3select("body");
223
+ const svg = root.select(`[id="${id}"]`);
224
+ const element = root.select("#" + id + " g");
225
+ await render(
226
+ element,
227
+ g,
228
+ ["aggregation", "extension", "composition", "dependency", "lollipop"],
229
+ "classDiagram",
230
+ id
231
+ );
232
+ utils.insertTitle(svg, "classTitleText", (conf2 == null ? void 0 : conf2.titleTopMargin) ?? 5, diagObj.db.getDiagramTitle());
233
+ setupGraphViewbox(g, svg, conf2 == null ? void 0 : conf2.diagramPadding, conf2 == null ? void 0 : conf2.useMaxWidth);
234
+ if (!(conf2 == null ? void 0 : conf2.htmlLabels)) {
235
+ const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
236
+ const labels = doc.querySelectorAll('[id="' + id + '"] .edgeLabel .label');
237
+ for (const label of labels) {
238
+ const dim = label.getBBox();
239
+ const rect = doc.createElementNS("http://www.w3.org/2000/svg", "rect");
240
+ rect.setAttribute("rx", 0);
241
+ rect.setAttribute("ry", 0);
242
+ rect.setAttribute("width", dim.width);
243
+ rect.setAttribute("height", dim.height);
244
+ label.insertBefore(rect, label.firstChild);
245
+ }
246
+ }
247
+ };
248
+ function getArrowMarker(type) {
249
+ let marker;
250
+ switch (type) {
251
+ case 0:
252
+ marker = "aggregation";
253
+ break;
254
+ case 1:
255
+ marker = "extension";
256
+ break;
257
+ case 2:
258
+ marker = "composition";
259
+ break;
260
+ case 3:
261
+ marker = "dependency";
262
+ break;
263
+ case 4:
264
+ marker = "lollipop";
265
+ break;
266
+ default:
267
+ marker = "none";
268
+ }
269
+ return marker;
270
+ }
271
+ const renderer = {
272
+ setConf,
273
+ draw
274
+ };
275
+ const diagram = {
276
+ parser,
277
+ db,
278
+ renderer,
279
+ styles,
280
+ init: (cnf) => {
281
+ if (!cnf.class) {
282
+ cnf.class = {};
283
+ }
284
+ cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
285
+ db.clear();
286
+ }
287
+ };
288
+ export {
289
+ diagram
290
+ };
@@ -0,0 +1,8 @@
1
+ import { c as baseClone } from "./graph-fe24fab6.js";
2
+ var CLONE_SYMBOLS_FLAG = 4;
3
+ function clone(value) {
4
+ return baseClone(value, CLONE_SYMBOLS_FLAG);
5
+ }
6
+ export {
7
+ clone as c
8
+ };
@@ -0,0 +1,8 @@
1
+ import { c as r } from "./graph-0ee63739.js";
2
+ var e = 4;
3
+ function a(o) {
4
+ return r(o, e);
5
+ }
6
+ export {
7
+ a as c
8
+ };
@@ -0,0 +1,98 @@
1
+ import type { MermaidConfig } from './config.type.js';
2
+ export declare const defaultConfig: MermaidConfig;
3
+ export declare const updateCurrentConfig: (siteCfg: MermaidConfig, _directives: MermaidConfig[]) => MermaidConfig;
4
+ /**
5
+ * ## setSiteConfig
6
+ *
7
+ * | Function | Description | Type | Values |
8
+ * | ------------- | ------------------------------------- | ----------- | --------------------------------------- |
9
+ * | setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array |
10
+ *
11
+ * **Notes:** Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls
12
+ * to reset() will reset the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig)
13
+ * will reset siteConfig and currentConfig to the defaultConfig Note: currentConfig is set in this
14
+ * function _Default value: At default, will mirror Global Config_
15
+ *
16
+ * @param conf - The base currentConfig to use as siteConfig
17
+ * @returns The new siteConfig
18
+ */
19
+ export declare const setSiteConfig: (conf: MermaidConfig) => MermaidConfig;
20
+ export declare const saveConfigFromInitialize: (conf: MermaidConfig) => void;
21
+ export declare const updateSiteConfig: (conf: MermaidConfig) => MermaidConfig;
22
+ /**
23
+ * ## getSiteConfig
24
+ *
25
+ * | Function | Description | Type | Values |
26
+ * | ------------- | ------------------------------------------------- | ----------- | -------------------------------- |
27
+ * | setSiteConfig | Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig |
28
+ *
29
+ * **Notes**: Returns **any** values in siteConfig.
30
+ *
31
+ * @returns The siteConfig
32
+ */
33
+ export declare const getSiteConfig: () => MermaidConfig;
34
+ /**
35
+ * ## setConfig
36
+ *
37
+ * | Function | Description | Type | Values |
38
+ * | ------------- | ------------------------------------- | ----------- | --------------------------------------- |
39
+ * | setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array |
40
+ *
41
+ * **Notes**: Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure
42
+ * keys. Any values found in conf with key found in siteConfig.secure will be replaced with the
43
+ * corresponding siteConfig value.
44
+ *
45
+ * @param conf - The potential currentConfig
46
+ * @returns The currentConfig merged with the sanitized conf
47
+ */
48
+ export declare const setConfig: (conf: MermaidConfig) => MermaidConfig;
49
+ /**
50
+ * ## getConfig
51
+ *
52
+ * | Function | Description | Type | Return Values |
53
+ * | --------- | ------------------------- | ----------- | ------------------------------ |
54
+ * | getConfig | Obtains the currentConfig | Get Request | Any Values from current Config |
55
+ *
56
+ * **Notes**: Returns **any** the currentConfig
57
+ *
58
+ * @returns The currentConfig
59
+ */
60
+ export declare const getConfig: () => MermaidConfig;
61
+ /**
62
+ * ## sanitize
63
+ *
64
+ * | Function | Description | Type | Values |
65
+ * | -------- | -------------------------------------- | ----------- | ------ |
66
+ * | sanitize | Sets the siteConfig to desired values. | Put Request | None |
67
+ *
68
+ * Ensures options parameter does not attempt to override siteConfig secure keys **Notes**: modifies
69
+ * options in-place
70
+ *
71
+ * @param options - The potential setConfig parameter
72
+ */
73
+ export declare const sanitize: (options: any) => void;
74
+ /**
75
+ * Pushes in a directive to the configuration
76
+ *
77
+ * @param directive - The directive to push in
78
+ */
79
+ export declare const addDirective: (directive: MermaidConfig) => void;
80
+ /**
81
+ * ## reset
82
+ *
83
+ * | Function | Description | Type | Required | Values |
84
+ * | -------- | ---------------------------- | ----------- | -------- | ------ |
85
+ * | reset | Resets currentConfig to conf | Put Request | Required | None |
86
+ *
87
+ * ## conf
88
+ *
89
+ * | Parameter | Description | Type | Required | Values |
90
+ * | --------- | -------------------------------------------------------------- | ---------- | -------- | -------------------------------------------- |
91
+ * | conf | base set of values, which currentConfig could be **reset** to. | Dictionary | Required | Any Values, with respect to the secure Array |
92
+ *
93
+ * **Notes**: (default: current siteConfig ) (optional, default `getSiteConfig()`)
94
+ *
95
+ * @param config - base set of values, which currentConfig could be **reset** to.
96
+ * Defaults to the current siteConfig (e.g returned by {@link getSiteConfig}).
97
+ */
98
+ export declare const reset: (config?: MermaidConfig) => void;