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,1199 @@
1
+ import { Z as getThemeVariables, W as defaultConfig, l as log, s as setAccTitle, g as getAccTitle, C as setDiagramTitle, D as getDiagramTitle, a as getAccDescription, b as setAccDescription, c as getConfig, E as clear$1, d as sanitizeText, j as d3select, k as configureSvgSize } from "./mermaid-dcacb631.js";
2
+ import { l as linear } from "./linear-0ad15847.js";
3
+ import "./init-cc95ec8e.js";
4
+ var parser = function() {
5
+ var o = function(k, v, o2, l) {
6
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
7
+ ;
8
+ return o2;
9
+ }, $V0 = [1, 3], $V1 = [1, 4], $V2 = [1, 5], $V3 = [1, 6], $V4 = [1, 7], $V5 = [1, 5, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], $V6 = [1, 5, 6, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], $V7 = [32, 33, 34], $V8 = [2, 7], $V9 = [1, 13], $Va = [1, 17], $Vb = [1, 18], $Vc = [1, 19], $Vd = [1, 20], $Ve = [1, 21], $Vf = [1, 22], $Vg = [1, 23], $Vh = [1, 24], $Vi = [1, 25], $Vj = [1, 26], $Vk = [1, 27], $Vl = [1, 30], $Vm = [1, 31], $Vn = [1, 32], $Vo = [1, 33], $Vp = [1, 34], $Vq = [1, 35], $Vr = [1, 36], $Vs = [1, 37], $Vt = [1, 38], $Vu = [1, 39], $Vv = [1, 40], $Vw = [1, 41], $Vx = [1, 42], $Vy = [1, 57], $Vz = [1, 58], $VA = [5, 22, 26, 32, 33, 34, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51];
10
+ var parser2 = {
11
+ trace: function trace() {
12
+ },
13
+ yy: {},
14
+ symbols_: { "error": 2, "start": 3, "eol": 4, "SPACE": 5, "QUADRANT": 6, "document": 7, "line": 8, "statement": 9, "axisDetails": 10, "quadrantDetails": 11, "points": 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, "text": 21, "point_start": 22, "point_x": 23, "point_y": 24, "X-AXIS": 25, "AXIS-TEXT-DELIMITER": 26, "Y-AXIS": 27, "QUADRANT_1": 28, "QUADRANT_2": 29, "QUADRANT_3": 30, "QUADRANT_4": 31, "NEWLINE": 32, "SEMI": 33, "EOF": 34, "alphaNumToken": 35, "textNoTagsToken": 36, "STR": 37, "MD_STR": 38, "alphaNum": 39, "PUNCTUATION": 40, "AMP": 41, "NUM": 42, "ALPHA": 43, "COMMA": 44, "PLUS": 45, "EQUALS": 46, "MULT": 47, "DOT": 48, "BRKT": 49, "UNDERSCORE": 50, "MINUS": 51, "$accept": 0, "$end": 1 },
15
+ terminals_: { 2: "error", 5: "SPACE", 6: "QUADRANT", 13: "title", 14: "title_value", 15: "acc_title", 16: "acc_title_value", 17: "acc_descr", 18: "acc_descr_value", 19: "acc_descr_multiline_value", 20: "section", 22: "point_start", 23: "point_x", 24: "point_y", 25: "X-AXIS", 26: "AXIS-TEXT-DELIMITER", 27: "Y-AXIS", 28: "QUADRANT_1", 29: "QUADRANT_2", 30: "QUADRANT_3", 31: "QUADRANT_4", 32: "NEWLINE", 33: "SEMI", 34: "EOF", 37: "STR", 38: "MD_STR", 40: "PUNCTUATION", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "COMMA", 45: "PLUS", 46: "EQUALS", 47: "MULT", 48: "DOT", 49: "BRKT", 50: "UNDERSCORE", 51: "MINUS" },
16
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [9, 0], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [12, 4], [10, 4], [10, 3], [10, 2], [10, 4], [10, 3], [10, 2], [11, 2], [11, 2], [11, 2], [11, 2], [4, 1], [4, 1], [4, 1], [21, 1], [21, 2], [21, 1], [21, 1], [39, 1], [39, 2], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [36, 1], [36, 1], [36, 1]],
17
+ performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
18
+ var $0 = $$.length - 1;
19
+ switch (yystate) {
20
+ case 12:
21
+ this.$ = $$[$0].trim();
22
+ yy.setDiagramTitle(this.$);
23
+ break;
24
+ case 13:
25
+ this.$ = $$[$0].trim();
26
+ yy.setAccTitle(this.$);
27
+ break;
28
+ case 14:
29
+ case 15:
30
+ this.$ = $$[$0].trim();
31
+ yy.setAccDescription(this.$);
32
+ break;
33
+ case 16:
34
+ yy.addSection($$[$0].substr(8));
35
+ this.$ = $$[$0].substr(8);
36
+ break;
37
+ case 17:
38
+ yy.addPoint($$[$0 - 3], $$[$0 - 1], $$[$0]);
39
+ break;
40
+ case 18:
41
+ yy.setXAxisLeftText($$[$0 - 2]);
42
+ yy.setXAxisRightText($$[$0]);
43
+ break;
44
+ case 19:
45
+ $$[$0 - 1].text += " ⟶ ";
46
+ yy.setXAxisLeftText($$[$0 - 1]);
47
+ break;
48
+ case 20:
49
+ yy.setXAxisLeftText($$[$0]);
50
+ break;
51
+ case 21:
52
+ yy.setYAxisBottomText($$[$0 - 2]);
53
+ yy.setYAxisTopText($$[$0]);
54
+ break;
55
+ case 22:
56
+ $$[$0 - 1].text += " ⟶ ";
57
+ yy.setYAxisBottomText($$[$0 - 1]);
58
+ break;
59
+ case 23:
60
+ yy.setYAxisBottomText($$[$0]);
61
+ break;
62
+ case 24:
63
+ yy.setQuadrant1Text($$[$0]);
64
+ break;
65
+ case 25:
66
+ yy.setQuadrant2Text($$[$0]);
67
+ break;
68
+ case 26:
69
+ yy.setQuadrant3Text($$[$0]);
70
+ break;
71
+ case 27:
72
+ yy.setQuadrant4Text($$[$0]);
73
+ break;
74
+ case 31:
75
+ this.$ = { text: $$[$0], type: "text" };
76
+ break;
77
+ case 32:
78
+ this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
79
+ break;
80
+ case 33:
81
+ this.$ = { text: $$[$0], type: "text" };
82
+ break;
83
+ case 34:
84
+ this.$ = { text: $$[$0], type: "markdown" };
85
+ break;
86
+ case 35:
87
+ this.$ = $$[$0];
88
+ break;
89
+ case 36:
90
+ this.$ = $$[$0 - 1] + "" + $$[$0];
91
+ break;
92
+ }
93
+ },
94
+ table: [{ 3: 1, 4: 2, 5: $V0, 6: $V1, 32: $V2, 33: $V3, 34: $V4 }, { 1: [3] }, { 3: 8, 4: 2, 5: $V0, 6: $V1, 32: $V2, 33: $V3, 34: $V4 }, { 3: 9, 4: 2, 5: $V0, 6: $V1, 32: $V2, 33: $V3, 34: $V4 }, o($V5, [2, 4], { 7: 10 }), o($V6, [2, 28]), o($V6, [2, 29]), o($V6, [2, 30]), { 1: [2, 1] }, { 1: [2, 2] }, o($V7, $V8, { 8: 11, 9: 12, 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 1: [2, 3], 5: $V9, 13: $Va, 15: $Vb, 17: $Vc, 19: $Vd, 20: $Ve, 25: $Vf, 27: $Vg, 28: $Vh, 29: $Vi, 30: $Vj, 31: $Vk, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), o($V5, [2, 5]), { 4: 43, 32: $V2, 33: $V3, 34: $V4 }, o($V7, $V8, { 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 9: 44, 5: $V9, 13: $Va, 15: $Vb, 17: $Vc, 19: $Vd, 20: $Ve, 25: $Vf, 27: $Vg, 28: $Vh, 29: $Vi, 30: $Vj, 31: $Vk, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), o($V7, [2, 9]), o($V7, [2, 10]), o($V7, [2, 11]), { 14: [1, 45] }, { 16: [1, 46] }, { 18: [1, 47] }, o($V7, [2, 15]), o($V7, [2, 16]), { 21: 48, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 49, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 50, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 51, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 52, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 53, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 5: $Vy, 22: [1, 54], 35: 56, 36: 55, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }, o($VA, [2, 31]), o($VA, [2, 33]), o($VA, [2, 34]), o($VA, [2, 37]), o($VA, [2, 38]), o($VA, [2, 39]), o($VA, [2, 40]), o($VA, [2, 41]), o($VA, [2, 42]), o($VA, [2, 43]), o($VA, [2, 44]), o($VA, [2, 45]), o($VA, [2, 46]), o($VA, [2, 47]), o($V5, [2, 6]), o($V7, [2, 8]), o($V7, [2, 12]), o($V7, [2, 13]), o($V7, [2, 14]), o($V7, [2, 20], { 36: 55, 35: 56, 5: $Vy, 26: [1, 59], 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 23], { 36: 55, 35: 56, 5: $Vy, 26: [1, 60], 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 24], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 25], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 26], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 27], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), { 23: [1, 61] }, o($VA, [2, 32]), o($VA, [2, 48]), o($VA, [2, 49]), o($VA, [2, 50]), o($V7, [2, 19], { 35: 29, 21: 62, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), o($V7, [2, 22], { 35: 29, 21: 63, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), { 24: [1, 64] }, o($V7, [2, 18], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 21], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 17])],
95
+ defaultActions: { 8: [2, 1], 9: [2, 2] },
96
+ parseError: function parseError(str, hash) {
97
+ if (hash.recoverable) {
98
+ this.trace(str);
99
+ } else {
100
+ var error = new Error(str);
101
+ error.hash = hash;
102
+ throw error;
103
+ }
104
+ },
105
+ parse: function parse(input) {
106
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
107
+ var args = lstack.slice.call(arguments, 1);
108
+ var lexer2 = Object.create(this.lexer);
109
+ var sharedState = { yy: {} };
110
+ for (var k in this.yy) {
111
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
112
+ sharedState.yy[k] = this.yy[k];
113
+ }
114
+ }
115
+ lexer2.setInput(input, sharedState.yy);
116
+ sharedState.yy.lexer = lexer2;
117
+ sharedState.yy.parser = this;
118
+ if (typeof lexer2.yylloc == "undefined") {
119
+ lexer2.yylloc = {};
120
+ }
121
+ var yyloc = lexer2.yylloc;
122
+ lstack.push(yyloc);
123
+ var ranges = lexer2.options && lexer2.options.ranges;
124
+ if (typeof sharedState.yy.parseError === "function") {
125
+ this.parseError = sharedState.yy.parseError;
126
+ } else {
127
+ this.parseError = Object.getPrototypeOf(this).parseError;
128
+ }
129
+ function lex() {
130
+ var token;
131
+ token = tstack.pop() || lexer2.lex() || EOF;
132
+ if (typeof token !== "number") {
133
+ if (token instanceof Array) {
134
+ tstack = token;
135
+ token = tstack.pop();
136
+ }
137
+ token = self.symbols_[token] || token;
138
+ }
139
+ return token;
140
+ }
141
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
142
+ while (true) {
143
+ state = stack[stack.length - 1];
144
+ if (this.defaultActions[state]) {
145
+ action = this.defaultActions[state];
146
+ } else {
147
+ if (symbol === null || typeof symbol == "undefined") {
148
+ symbol = lex();
149
+ }
150
+ action = table[state] && table[state][symbol];
151
+ }
152
+ if (typeof action === "undefined" || !action.length || !action[0]) {
153
+ var errStr = "";
154
+ expected = [];
155
+ for (p in table[state]) {
156
+ if (this.terminals_[p] && p > TERROR) {
157
+ expected.push("'" + this.terminals_[p] + "'");
158
+ }
159
+ }
160
+ if (lexer2.showPosition) {
161
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
162
+ } else {
163
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
164
+ }
165
+ this.parseError(errStr, {
166
+ text: lexer2.match,
167
+ token: this.terminals_[symbol] || symbol,
168
+ line: lexer2.yylineno,
169
+ loc: yyloc,
170
+ expected
171
+ });
172
+ }
173
+ if (action[0] instanceof Array && action.length > 1) {
174
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
175
+ }
176
+ switch (action[0]) {
177
+ case 1:
178
+ stack.push(symbol);
179
+ vstack.push(lexer2.yytext);
180
+ lstack.push(lexer2.yylloc);
181
+ stack.push(action[1]);
182
+ symbol = null;
183
+ {
184
+ yyleng = lexer2.yyleng;
185
+ yytext = lexer2.yytext;
186
+ yylineno = lexer2.yylineno;
187
+ yyloc = lexer2.yylloc;
188
+ }
189
+ break;
190
+ case 2:
191
+ len = this.productions_[action[1]][1];
192
+ yyval.$ = vstack[vstack.length - len];
193
+ yyval._$ = {
194
+ first_line: lstack[lstack.length - (len || 1)].first_line,
195
+ last_line: lstack[lstack.length - 1].last_line,
196
+ first_column: lstack[lstack.length - (len || 1)].first_column,
197
+ last_column: lstack[lstack.length - 1].last_column
198
+ };
199
+ if (ranges) {
200
+ yyval._$.range = [
201
+ lstack[lstack.length - (len || 1)].range[0],
202
+ lstack[lstack.length - 1].range[1]
203
+ ];
204
+ }
205
+ r = this.performAction.apply(yyval, [
206
+ yytext,
207
+ yyleng,
208
+ yylineno,
209
+ sharedState.yy,
210
+ action[1],
211
+ vstack,
212
+ lstack
213
+ ].concat(args));
214
+ if (typeof r !== "undefined") {
215
+ return r;
216
+ }
217
+ if (len) {
218
+ stack = stack.slice(0, -1 * len * 2);
219
+ vstack = vstack.slice(0, -1 * len);
220
+ lstack = lstack.slice(0, -1 * len);
221
+ }
222
+ stack.push(this.productions_[action[1]][0]);
223
+ vstack.push(yyval.$);
224
+ lstack.push(yyval._$);
225
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
226
+ stack.push(newState);
227
+ break;
228
+ case 3:
229
+ return true;
230
+ }
231
+ }
232
+ return true;
233
+ }
234
+ };
235
+ var lexer = function() {
236
+ var lexer2 = {
237
+ EOF: 1,
238
+ parseError: function parseError(str, hash) {
239
+ if (this.yy.parser) {
240
+ this.yy.parser.parseError(str, hash);
241
+ } else {
242
+ throw new Error(str);
243
+ }
244
+ },
245
+ // resets the lexer, sets new input
246
+ setInput: function(input, yy) {
247
+ this.yy = yy || this.yy || {};
248
+ this._input = input;
249
+ this._more = this._backtrack = this.done = false;
250
+ this.yylineno = this.yyleng = 0;
251
+ this.yytext = this.matched = this.match = "";
252
+ this.conditionStack = ["INITIAL"];
253
+ this.yylloc = {
254
+ first_line: 1,
255
+ first_column: 0,
256
+ last_line: 1,
257
+ last_column: 0
258
+ };
259
+ if (this.options.ranges) {
260
+ this.yylloc.range = [0, 0];
261
+ }
262
+ this.offset = 0;
263
+ return this;
264
+ },
265
+ // consumes and returns one char from the input
266
+ input: function() {
267
+ var ch = this._input[0];
268
+ this.yytext += ch;
269
+ this.yyleng++;
270
+ this.offset++;
271
+ this.match += ch;
272
+ this.matched += ch;
273
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
274
+ if (lines) {
275
+ this.yylineno++;
276
+ this.yylloc.last_line++;
277
+ } else {
278
+ this.yylloc.last_column++;
279
+ }
280
+ if (this.options.ranges) {
281
+ this.yylloc.range[1]++;
282
+ }
283
+ this._input = this._input.slice(1);
284
+ return ch;
285
+ },
286
+ // unshifts one char (or a string) into the input
287
+ unput: function(ch) {
288
+ var len = ch.length;
289
+ var lines = ch.split(/(?:\r\n?|\n)/g);
290
+ this._input = ch + this._input;
291
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
292
+ this.offset -= len;
293
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
294
+ this.match = this.match.substr(0, this.match.length - 1);
295
+ this.matched = this.matched.substr(0, this.matched.length - 1);
296
+ if (lines.length - 1) {
297
+ this.yylineno -= lines.length - 1;
298
+ }
299
+ var r = this.yylloc.range;
300
+ this.yylloc = {
301
+ first_line: this.yylloc.first_line,
302
+ last_line: this.yylineno + 1,
303
+ first_column: this.yylloc.first_column,
304
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
305
+ };
306
+ if (this.options.ranges) {
307
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
308
+ }
309
+ this.yyleng = this.yytext.length;
310
+ return this;
311
+ },
312
+ // When called from action, caches matched text and appends it on next action
313
+ more: function() {
314
+ this._more = true;
315
+ return this;
316
+ },
317
+ // 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.
318
+ reject: function() {
319
+ if (this.options.backtrack_lexer) {
320
+ this._backtrack = true;
321
+ } else {
322
+ 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).\n" + this.showPosition(), {
323
+ text: "",
324
+ token: null,
325
+ line: this.yylineno
326
+ });
327
+ }
328
+ return this;
329
+ },
330
+ // retain first n characters of the match
331
+ less: function(n) {
332
+ this.unput(this.match.slice(n));
333
+ },
334
+ // displays already matched input, i.e. for error messages
335
+ pastInput: function() {
336
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
337
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
338
+ },
339
+ // displays upcoming input, i.e. for error messages
340
+ upcomingInput: function() {
341
+ var next = this.match;
342
+ if (next.length < 20) {
343
+ next += this._input.substr(0, 20 - next.length);
344
+ }
345
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
346
+ },
347
+ // displays the character position where the lexing error occurred, i.e. for error messages
348
+ showPosition: function() {
349
+ var pre = this.pastInput();
350
+ var c = new Array(pre.length + 1).join("-");
351
+ return pre + this.upcomingInput() + "\n" + c + "^";
352
+ },
353
+ // test the lexed token: return FALSE when not a match, otherwise return token
354
+ test_match: function(match, indexed_rule) {
355
+ var token, lines, backup;
356
+ if (this.options.backtrack_lexer) {
357
+ backup = {
358
+ yylineno: this.yylineno,
359
+ yylloc: {
360
+ first_line: this.yylloc.first_line,
361
+ last_line: this.last_line,
362
+ first_column: this.yylloc.first_column,
363
+ last_column: this.yylloc.last_column
364
+ },
365
+ yytext: this.yytext,
366
+ match: this.match,
367
+ matches: this.matches,
368
+ matched: this.matched,
369
+ yyleng: this.yyleng,
370
+ offset: this.offset,
371
+ _more: this._more,
372
+ _input: this._input,
373
+ yy: this.yy,
374
+ conditionStack: this.conditionStack.slice(0),
375
+ done: this.done
376
+ };
377
+ if (this.options.ranges) {
378
+ backup.yylloc.range = this.yylloc.range.slice(0);
379
+ }
380
+ }
381
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
382
+ if (lines) {
383
+ this.yylineno += lines.length;
384
+ }
385
+ this.yylloc = {
386
+ first_line: this.yylloc.last_line,
387
+ last_line: this.yylineno + 1,
388
+ first_column: this.yylloc.last_column,
389
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
390
+ };
391
+ this.yytext += match[0];
392
+ this.match += match[0];
393
+ this.matches = match;
394
+ this.yyleng = this.yytext.length;
395
+ if (this.options.ranges) {
396
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
397
+ }
398
+ this._more = false;
399
+ this._backtrack = false;
400
+ this._input = this._input.slice(match[0].length);
401
+ this.matched += match[0];
402
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
403
+ if (this.done && this._input) {
404
+ this.done = false;
405
+ }
406
+ if (token) {
407
+ return token;
408
+ } else if (this._backtrack) {
409
+ for (var k in backup) {
410
+ this[k] = backup[k];
411
+ }
412
+ return false;
413
+ }
414
+ return false;
415
+ },
416
+ // return next match in input
417
+ next: function() {
418
+ if (this.done) {
419
+ return this.EOF;
420
+ }
421
+ if (!this._input) {
422
+ this.done = true;
423
+ }
424
+ var token, match, tempMatch, index;
425
+ if (!this._more) {
426
+ this.yytext = "";
427
+ this.match = "";
428
+ }
429
+ var rules = this._currentRules();
430
+ for (var i = 0; i < rules.length; i++) {
431
+ tempMatch = this._input.match(this.rules[rules[i]]);
432
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
433
+ match = tempMatch;
434
+ index = i;
435
+ if (this.options.backtrack_lexer) {
436
+ token = this.test_match(tempMatch, rules[i]);
437
+ if (token !== false) {
438
+ return token;
439
+ } else if (this._backtrack) {
440
+ match = false;
441
+ continue;
442
+ } else {
443
+ return false;
444
+ }
445
+ } else if (!this.options.flex) {
446
+ break;
447
+ }
448
+ }
449
+ }
450
+ if (match) {
451
+ token = this.test_match(match, rules[index]);
452
+ if (token !== false) {
453
+ return token;
454
+ }
455
+ return false;
456
+ }
457
+ if (this._input === "") {
458
+ return this.EOF;
459
+ } else {
460
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
461
+ text: "",
462
+ token: null,
463
+ line: this.yylineno
464
+ });
465
+ }
466
+ },
467
+ // return next match that has a token
468
+ lex: function lex() {
469
+ var r = this.next();
470
+ if (r) {
471
+ return r;
472
+ } else {
473
+ return this.lex();
474
+ }
475
+ },
476
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
477
+ begin: function begin(condition) {
478
+ this.conditionStack.push(condition);
479
+ },
480
+ // pop the previously active lexer condition state off the condition stack
481
+ popState: function popState() {
482
+ var n = this.conditionStack.length - 1;
483
+ if (n > 0) {
484
+ return this.conditionStack.pop();
485
+ } else {
486
+ return this.conditionStack[0];
487
+ }
488
+ },
489
+ // produce the lexer rule set which is active for the currently active lexer condition state
490
+ _currentRules: function _currentRules() {
491
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
492
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
493
+ } else {
494
+ return this.conditions["INITIAL"].rules;
495
+ }
496
+ },
497
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
498
+ topState: function topState(n) {
499
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
500
+ if (n >= 0) {
501
+ return this.conditionStack[n];
502
+ } else {
503
+ return "INITIAL";
504
+ }
505
+ },
506
+ // alias for begin(condition)
507
+ pushState: function pushState(condition) {
508
+ this.begin(condition);
509
+ },
510
+ // return the number of states currently on the stack
511
+ stateStackSize: function stateStackSize() {
512
+ return this.conditionStack.length;
513
+ },
514
+ options: { "case-insensitive": true },
515
+ performAction: function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
516
+ switch ($avoiding_name_collisions) {
517
+ case 0:
518
+ break;
519
+ case 1:
520
+ break;
521
+ case 2:
522
+ return 32;
523
+ case 3:
524
+ break;
525
+ case 4:
526
+ this.begin("title");
527
+ return 13;
528
+ case 5:
529
+ this.popState();
530
+ return "title_value";
531
+ case 6:
532
+ this.begin("acc_title");
533
+ return 15;
534
+ case 7:
535
+ this.popState();
536
+ return "acc_title_value";
537
+ case 8:
538
+ this.begin("acc_descr");
539
+ return 17;
540
+ case 9:
541
+ this.popState();
542
+ return "acc_descr_value";
543
+ case 10:
544
+ this.begin("acc_descr_multiline");
545
+ break;
546
+ case 11:
547
+ this.popState();
548
+ break;
549
+ case 12:
550
+ return "acc_descr_multiline_value";
551
+ case 13:
552
+ return 25;
553
+ case 14:
554
+ return 27;
555
+ case 15:
556
+ return 26;
557
+ case 16:
558
+ return 28;
559
+ case 17:
560
+ return 29;
561
+ case 18:
562
+ return 30;
563
+ case 19:
564
+ return 31;
565
+ case 20:
566
+ this.begin("md_string");
567
+ break;
568
+ case 21:
569
+ return "MD_STR";
570
+ case 22:
571
+ this.popState();
572
+ break;
573
+ case 23:
574
+ this.begin("string");
575
+ break;
576
+ case 24:
577
+ this.popState();
578
+ break;
579
+ case 25:
580
+ return "STR";
581
+ case 26:
582
+ this.begin("point_start");
583
+ return 22;
584
+ case 27:
585
+ this.begin("point_x");
586
+ return 23;
587
+ case 28:
588
+ this.popState();
589
+ break;
590
+ case 29:
591
+ this.popState();
592
+ this.begin("point_y");
593
+ break;
594
+ case 30:
595
+ this.popState();
596
+ return 24;
597
+ case 31:
598
+ return 6;
599
+ case 32:
600
+ return 43;
601
+ case 33:
602
+ return "COLON";
603
+ case 34:
604
+ return 45;
605
+ case 35:
606
+ return 44;
607
+ case 36:
608
+ return 46;
609
+ case 37:
610
+ return 46;
611
+ case 38:
612
+ return 47;
613
+ case 39:
614
+ return 49;
615
+ case 40:
616
+ return 50;
617
+ case 41:
618
+ return 48;
619
+ case 42:
620
+ return 41;
621
+ case 43:
622
+ return 51;
623
+ case 44:
624
+ return 42;
625
+ case 45:
626
+ return 5;
627
+ case 46:
628
+ return 33;
629
+ case 47:
630
+ return 40;
631
+ case 48:
632
+ return 34;
633
+ }
634
+ },
635
+ rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/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, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\s*:\s*\[\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?:\s*\] *)/i, /^(?:\s*,\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
636
+ conditions: { "point_y": { "rules": [30], "inclusive": false }, "point_x": { "rules": [29], "inclusive": false }, "point_start": { "rules": [27, 28], "inclusive": false }, "acc_descr_multiline": { "rules": [11, 12], "inclusive": false }, "acc_descr": { "rules": [9], "inclusive": false }, "acc_title": { "rules": [7], "inclusive": false }, "title": { "rules": [5], "inclusive": false }, "md_string": { "rules": [21, 22], "inclusive": false }, "string": { "rules": [24, 25], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 23, 26, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], "inclusive": true } }
637
+ };
638
+ return lexer2;
639
+ }();
640
+ parser2.lexer = lexer;
641
+ function Parser() {
642
+ this.yy = {};
643
+ }
644
+ Parser.prototype = parser2;
645
+ parser2.Parser = Parser;
646
+ return new Parser();
647
+ }();
648
+ parser.parser = parser;
649
+ const parser$1 = parser;
650
+ const defaultThemeVariables = getThemeVariables();
651
+ class QuadrantBuilder {
652
+ constructor() {
653
+ this.config = this.getDefaultConfig();
654
+ this.themeConfig = this.getDefaultThemeConfig();
655
+ this.data = this.getDefaultData();
656
+ }
657
+ getDefaultData() {
658
+ return {
659
+ titleText: "",
660
+ quadrant1Text: "",
661
+ quadrant2Text: "",
662
+ quadrant3Text: "",
663
+ quadrant4Text: "",
664
+ xAxisLeftText: "",
665
+ xAxisRightText: "",
666
+ yAxisBottomText: "",
667
+ yAxisTopText: "",
668
+ points: []
669
+ };
670
+ }
671
+ getDefaultConfig() {
672
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
673
+ return {
674
+ showXAxis: true,
675
+ showYAxis: true,
676
+ showTitle: true,
677
+ chartHeight: ((_a = defaultConfig.quadrantChart) == null ? void 0 : _a.chartWidth) || 500,
678
+ chartWidth: ((_b = defaultConfig.quadrantChart) == null ? void 0 : _b.chartHeight) || 500,
679
+ titlePadding: ((_c = defaultConfig.quadrantChart) == null ? void 0 : _c.titlePadding) || 10,
680
+ titleFontSize: ((_d = defaultConfig.quadrantChart) == null ? void 0 : _d.titleFontSize) || 20,
681
+ quadrantPadding: ((_e = defaultConfig.quadrantChart) == null ? void 0 : _e.quadrantPadding) || 5,
682
+ xAxisLabelPadding: ((_f = defaultConfig.quadrantChart) == null ? void 0 : _f.xAxisLabelPadding) || 5,
683
+ yAxisLabelPadding: ((_g = defaultConfig.quadrantChart) == null ? void 0 : _g.yAxisLabelPadding) || 5,
684
+ xAxisLabelFontSize: ((_h = defaultConfig.quadrantChart) == null ? void 0 : _h.xAxisLabelFontSize) || 16,
685
+ yAxisLabelFontSize: ((_i = defaultConfig.quadrantChart) == null ? void 0 : _i.yAxisLabelFontSize) || 16,
686
+ quadrantLabelFontSize: ((_j = defaultConfig.quadrantChart) == null ? void 0 : _j.quadrantLabelFontSize) || 16,
687
+ quadrantTextTopPadding: ((_k = defaultConfig.quadrantChart) == null ? void 0 : _k.quadrantTextTopPadding) || 5,
688
+ pointTextPadding: ((_l = defaultConfig.quadrantChart) == null ? void 0 : _l.pointTextPadding) || 5,
689
+ pointLabelFontSize: ((_m = defaultConfig.quadrantChart) == null ? void 0 : _m.pointLabelFontSize) || 12,
690
+ pointRadius: ((_n = defaultConfig.quadrantChart) == null ? void 0 : _n.pointRadius) || 5,
691
+ xAxisPosition: ((_o = defaultConfig.quadrantChart) == null ? void 0 : _o.xAxisPosition) || "top",
692
+ yAxisPosition: ((_p = defaultConfig.quadrantChart) == null ? void 0 : _p.yAxisPosition) || "left",
693
+ quadrantInternalBorderStrokeWidth: ((_q = defaultConfig.quadrantChart) == null ? void 0 : _q.quadrantInternalBorderStrokeWidth) || 1,
694
+ quadrantExternalBorderStrokeWidth: ((_r = defaultConfig.quadrantChart) == null ? void 0 : _r.quadrantExternalBorderStrokeWidth) || 2
695
+ };
696
+ }
697
+ getDefaultThemeConfig() {
698
+ return {
699
+ quadrant1Fill: defaultThemeVariables.quadrant1Fill,
700
+ quadrant2Fill: defaultThemeVariables.quadrant2Fill,
701
+ quadrant3Fill: defaultThemeVariables.quadrant3Fill,
702
+ quadrant4Fill: defaultThemeVariables.quadrant4Fill,
703
+ quadrant1TextFill: defaultThemeVariables.quadrant1TextFill,
704
+ quadrant2TextFill: defaultThemeVariables.quadrant2TextFill,
705
+ quadrant3TextFill: defaultThemeVariables.quadrant3TextFill,
706
+ quadrant4TextFill: defaultThemeVariables.quadrant4TextFill,
707
+ quadrantPointFill: defaultThemeVariables.quadrantPointFill,
708
+ quadrantPointTextFill: defaultThemeVariables.quadrantPointTextFill,
709
+ quadrantXAxisTextFill: defaultThemeVariables.quadrantXAxisTextFill,
710
+ quadrantYAxisTextFill: defaultThemeVariables.quadrantYAxisTextFill,
711
+ quadrantTitleFill: defaultThemeVariables.quadrantTitleFill,
712
+ quadrantInternalBorderStrokeFill: defaultThemeVariables.quadrantInternalBorderStrokeFill,
713
+ quadrantExternalBorderStrokeFill: defaultThemeVariables.quadrantExternalBorderStrokeFill
714
+ };
715
+ }
716
+ clear() {
717
+ this.config = this.getDefaultConfig();
718
+ this.themeConfig = this.getDefaultThemeConfig();
719
+ this.data = this.getDefaultData();
720
+ log.info("clear called");
721
+ }
722
+ setData(data) {
723
+ this.data = { ...this.data, ...data };
724
+ }
725
+ addPoints(points) {
726
+ this.data.points = [...points, ...this.data.points];
727
+ }
728
+ setConfig(config2) {
729
+ log.trace("setConfig called with: ", config2);
730
+ this.config = { ...this.config, ...config2 };
731
+ }
732
+ setThemeConfig(themeConfig) {
733
+ log.trace("setThemeConfig called with: ", themeConfig);
734
+ this.themeConfig = { ...this.themeConfig, ...themeConfig };
735
+ }
736
+ calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle) {
737
+ const xAxisSpaceCalculation = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize;
738
+ const xAxisSpace = {
739
+ top: xAxisPosition === "top" && showXAxis ? xAxisSpaceCalculation : 0,
740
+ bottom: xAxisPosition === "bottom" && showXAxis ? xAxisSpaceCalculation : 0
741
+ };
742
+ const yAxisSpaceCalculation = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize;
743
+ const yAxisSpace = {
744
+ left: this.config.yAxisPosition === "left" && showYAxis ? yAxisSpaceCalculation : 0,
745
+ right: this.config.yAxisPosition === "right" && showYAxis ? yAxisSpaceCalculation : 0
746
+ };
747
+ const titleSpaceCalculation = this.config.titleFontSize + this.config.titlePadding * 2;
748
+ const titleSpace = {
749
+ top: showTitle ? titleSpaceCalculation : 0
750
+ };
751
+ const quadrantLeft = this.config.quadrantPadding + yAxisSpace.left;
752
+ const quadrantTop = this.config.quadrantPadding + xAxisSpace.top + titleSpace.top;
753
+ const quadrantWidth = this.config.chartWidth - this.config.quadrantPadding * 2 - yAxisSpace.left - yAxisSpace.right;
754
+ const quadrantHeight = this.config.chartHeight - this.config.quadrantPadding * 2 - xAxisSpace.top - xAxisSpace.bottom - titleSpace.top;
755
+ const quadrantHalfWidth = quadrantWidth / 2;
756
+ const quadrantHalfHeight = quadrantHeight / 2;
757
+ const quadrantSpace = {
758
+ quadrantLeft,
759
+ quadrantTop,
760
+ quadrantWidth,
761
+ quadrantHalfWidth,
762
+ quadrantHeight,
763
+ quadrantHalfHeight
764
+ };
765
+ return {
766
+ xAxisSpace,
767
+ yAxisSpace,
768
+ titleSpace,
769
+ quadrantSpace
770
+ };
771
+ }
772
+ getAxisLabels(xAxisPosition, showXAxis, showYAxis, spaceData) {
773
+ const { quadrantSpace, titleSpace } = spaceData;
774
+ const {
775
+ quadrantHalfHeight,
776
+ quadrantHeight,
777
+ quadrantLeft,
778
+ quadrantHalfWidth,
779
+ quadrantTop,
780
+ quadrantWidth
781
+ } = quadrantSpace;
782
+ const drawXAxisLabelsInMiddle = Boolean(this.data.xAxisRightText);
783
+ const drawYAxisLabelsInMiddle = Boolean(this.data.yAxisTopText);
784
+ const axisLabels = [];
785
+ if (this.data.xAxisLeftText && showXAxis) {
786
+ axisLabels.push({
787
+ text: this.data.xAxisLeftText,
788
+ fill: this.themeConfig.quadrantXAxisTextFill,
789
+ x: quadrantLeft + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),
790
+ y: xAxisPosition === "top" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,
791
+ fontSize: this.config.xAxisLabelFontSize,
792
+ verticalPos: drawXAxisLabelsInMiddle ? "center" : "left",
793
+ horizontalPos: "top",
794
+ rotation: 0
795
+ });
796
+ }
797
+ if (this.data.xAxisRightText && showXAxis) {
798
+ axisLabels.push({
799
+ text: this.data.xAxisRightText,
800
+ fill: this.themeConfig.quadrantXAxisTextFill,
801
+ x: quadrantLeft + quadrantHalfWidth + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),
802
+ y: xAxisPosition === "top" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,
803
+ fontSize: this.config.xAxisLabelFontSize,
804
+ verticalPos: drawXAxisLabelsInMiddle ? "center" : "left",
805
+ horizontalPos: "top",
806
+ rotation: 0
807
+ });
808
+ }
809
+ if (this.data.yAxisBottomText && showYAxis) {
810
+ axisLabels.push({
811
+ text: this.data.yAxisBottomText,
812
+ fill: this.themeConfig.quadrantYAxisTextFill,
813
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,
814
+ y: quadrantTop + quadrantHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),
815
+ fontSize: this.config.yAxisLabelFontSize,
816
+ verticalPos: drawYAxisLabelsInMiddle ? "center" : "left",
817
+ horizontalPos: "top",
818
+ rotation: -90
819
+ });
820
+ }
821
+ if (this.data.yAxisTopText && showYAxis) {
822
+ axisLabels.push({
823
+ text: this.data.yAxisTopText,
824
+ fill: this.themeConfig.quadrantYAxisTextFill,
825
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,
826
+ y: quadrantTop + quadrantHalfHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),
827
+ fontSize: this.config.yAxisLabelFontSize,
828
+ verticalPos: drawYAxisLabelsInMiddle ? "center" : "left",
829
+ horizontalPos: "top",
830
+ rotation: -90
831
+ });
832
+ }
833
+ return axisLabels;
834
+ }
835
+ getQuadrants(spaceData) {
836
+ const { quadrantSpace } = spaceData;
837
+ const { quadrantHalfHeight, quadrantLeft, quadrantHalfWidth, quadrantTop } = quadrantSpace;
838
+ const quadrants = [
839
+ {
840
+ text: {
841
+ text: this.data.quadrant1Text,
842
+ fill: this.themeConfig.quadrant1TextFill,
843
+ x: 0,
844
+ y: 0,
845
+ fontSize: this.config.quadrantLabelFontSize,
846
+ verticalPos: "center",
847
+ horizontalPos: "middle",
848
+ rotation: 0
849
+ },
850
+ x: quadrantLeft + quadrantHalfWidth,
851
+ y: quadrantTop,
852
+ width: quadrantHalfWidth,
853
+ height: quadrantHalfHeight,
854
+ fill: this.themeConfig.quadrant1Fill
855
+ },
856
+ {
857
+ text: {
858
+ text: this.data.quadrant2Text,
859
+ fill: this.themeConfig.quadrant2TextFill,
860
+ x: 0,
861
+ y: 0,
862
+ fontSize: this.config.quadrantLabelFontSize,
863
+ verticalPos: "center",
864
+ horizontalPos: "middle",
865
+ rotation: 0
866
+ },
867
+ x: quadrantLeft,
868
+ y: quadrantTop,
869
+ width: quadrantHalfWidth,
870
+ height: quadrantHalfHeight,
871
+ fill: this.themeConfig.quadrant2Fill
872
+ },
873
+ {
874
+ text: {
875
+ text: this.data.quadrant3Text,
876
+ fill: this.themeConfig.quadrant3TextFill,
877
+ x: 0,
878
+ y: 0,
879
+ fontSize: this.config.quadrantLabelFontSize,
880
+ verticalPos: "center",
881
+ horizontalPos: "middle",
882
+ rotation: 0
883
+ },
884
+ x: quadrantLeft,
885
+ y: quadrantTop + quadrantHalfHeight,
886
+ width: quadrantHalfWidth,
887
+ height: quadrantHalfHeight,
888
+ fill: this.themeConfig.quadrant3Fill
889
+ },
890
+ {
891
+ text: {
892
+ text: this.data.quadrant4Text,
893
+ fill: this.themeConfig.quadrant4TextFill,
894
+ x: 0,
895
+ y: 0,
896
+ fontSize: this.config.quadrantLabelFontSize,
897
+ verticalPos: "center",
898
+ horizontalPos: "middle",
899
+ rotation: 0
900
+ },
901
+ x: quadrantLeft + quadrantHalfWidth,
902
+ y: quadrantTop + quadrantHalfHeight,
903
+ width: quadrantHalfWidth,
904
+ height: quadrantHalfHeight,
905
+ fill: this.themeConfig.quadrant4Fill
906
+ }
907
+ ];
908
+ for (const quadrant of quadrants) {
909
+ quadrant.text.x = quadrant.x + quadrant.width / 2;
910
+ if (this.data.points.length === 0) {
911
+ quadrant.text.y = quadrant.y + quadrant.height / 2;
912
+ quadrant.text.horizontalPos = "middle";
913
+ } else {
914
+ quadrant.text.y = quadrant.y + this.config.quadrantTextTopPadding;
915
+ quadrant.text.horizontalPos = "top";
916
+ }
917
+ }
918
+ return quadrants;
919
+ }
920
+ getQuadrantPoints(spaceData) {
921
+ const { quadrantSpace } = spaceData;
922
+ const { quadrantHeight, quadrantLeft, quadrantTop, quadrantWidth } = quadrantSpace;
923
+ const xAxis = linear().domain([0, 1]).range([quadrantLeft, quadrantWidth + quadrantLeft]);
924
+ const yAxis = linear().domain([0, 1]).range([quadrantHeight + quadrantTop, quadrantTop]);
925
+ const points = this.data.points.map((point) => {
926
+ const props = {
927
+ x: xAxis(point.x),
928
+ y: yAxis(point.y),
929
+ fill: this.themeConfig.quadrantPointFill,
930
+ radius: this.config.pointRadius,
931
+ text: {
932
+ text: point.text,
933
+ fill: this.themeConfig.quadrantPointTextFill,
934
+ x: xAxis(point.x),
935
+ y: yAxis(point.y) + this.config.pointTextPadding,
936
+ verticalPos: "center",
937
+ horizontalPos: "top",
938
+ fontSize: this.config.pointLabelFontSize,
939
+ rotation: 0
940
+ }
941
+ };
942
+ return props;
943
+ });
944
+ return points;
945
+ }
946
+ getBorders(spaceData) {
947
+ const halfExternalBorderWidth = this.config.quadrantExternalBorderStrokeWidth / 2;
948
+ const { quadrantSpace } = spaceData;
949
+ const {
950
+ quadrantHalfHeight,
951
+ quadrantHeight,
952
+ quadrantLeft,
953
+ quadrantHalfWidth,
954
+ quadrantTop,
955
+ quadrantWidth
956
+ } = quadrantSpace;
957
+ const borderLines = [
958
+ // top border
959
+ {
960
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
961
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
962
+ x1: quadrantLeft - halfExternalBorderWidth,
963
+ y1: quadrantTop,
964
+ x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,
965
+ y2: quadrantTop
966
+ },
967
+ // right border
968
+ {
969
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
970
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
971
+ x1: quadrantLeft + quadrantWidth,
972
+ y1: quadrantTop + halfExternalBorderWidth,
973
+ x2: quadrantLeft + quadrantWidth,
974
+ y2: quadrantTop + quadrantHeight - halfExternalBorderWidth
975
+ },
976
+ // bottom border
977
+ {
978
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
979
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
980
+ x1: quadrantLeft - halfExternalBorderWidth,
981
+ y1: quadrantTop + quadrantHeight,
982
+ x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,
983
+ y2: quadrantTop + quadrantHeight
984
+ },
985
+ // left border
986
+ {
987
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
988
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
989
+ x1: quadrantLeft,
990
+ y1: quadrantTop + halfExternalBorderWidth,
991
+ x2: quadrantLeft,
992
+ y2: quadrantTop + quadrantHeight - halfExternalBorderWidth
993
+ },
994
+ // vertical inner border
995
+ {
996
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
997
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
998
+ x1: quadrantLeft + quadrantHalfWidth,
999
+ y1: quadrantTop + halfExternalBorderWidth,
1000
+ x2: quadrantLeft + quadrantHalfWidth,
1001
+ y2: quadrantTop + quadrantHeight - halfExternalBorderWidth
1002
+ },
1003
+ // horizontal inner border
1004
+ {
1005
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1006
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1007
+ x1: quadrantLeft + halfExternalBorderWidth,
1008
+ y1: quadrantTop + quadrantHalfHeight,
1009
+ x2: quadrantLeft + quadrantWidth - halfExternalBorderWidth,
1010
+ y2: quadrantTop + quadrantHalfHeight
1011
+ }
1012
+ ];
1013
+ return borderLines;
1014
+ }
1015
+ getTitle(showTitle) {
1016
+ if (showTitle) {
1017
+ return {
1018
+ text: this.data.titleText,
1019
+ fill: this.themeConfig.quadrantTitleFill,
1020
+ fontSize: this.config.titleFontSize,
1021
+ horizontalPos: "top",
1022
+ verticalPos: "center",
1023
+ rotation: 0,
1024
+ y: this.config.titlePadding,
1025
+ x: this.config.chartWidth / 2
1026
+ };
1027
+ }
1028
+ return;
1029
+ }
1030
+ build() {
1031
+ const showXAxis = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText);
1032
+ const showYAxis = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText);
1033
+ const showTitle = this.config.showTitle && !!this.data.titleText;
1034
+ const xAxisPosition = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition;
1035
+ const calculatedSpace = this.calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle);
1036
+ return {
1037
+ points: this.getQuadrantPoints(calculatedSpace),
1038
+ quadrants: this.getQuadrants(calculatedSpace),
1039
+ axisLabels: this.getAxisLabels(xAxisPosition, showXAxis, showYAxis, calculatedSpace),
1040
+ borderLines: this.getBorders(calculatedSpace),
1041
+ title: this.getTitle(showTitle)
1042
+ };
1043
+ }
1044
+ }
1045
+ const config = getConfig();
1046
+ function textSanitizer(text) {
1047
+ return sanitizeText(text.trim(), config);
1048
+ }
1049
+ const quadrantBuilder = new QuadrantBuilder();
1050
+ function setQuadrant1Text(textObj) {
1051
+ quadrantBuilder.setData({ quadrant1Text: textSanitizer(textObj.text) });
1052
+ }
1053
+ function setQuadrant2Text(textObj) {
1054
+ quadrantBuilder.setData({ quadrant2Text: textSanitizer(textObj.text) });
1055
+ }
1056
+ function setQuadrant3Text(textObj) {
1057
+ quadrantBuilder.setData({ quadrant3Text: textSanitizer(textObj.text) });
1058
+ }
1059
+ function setQuadrant4Text(textObj) {
1060
+ quadrantBuilder.setData({ quadrant4Text: textSanitizer(textObj.text) });
1061
+ }
1062
+ function setXAxisLeftText(textObj) {
1063
+ quadrantBuilder.setData({ xAxisLeftText: textSanitizer(textObj.text) });
1064
+ }
1065
+ function setXAxisRightText(textObj) {
1066
+ quadrantBuilder.setData({ xAxisRightText: textSanitizer(textObj.text) });
1067
+ }
1068
+ function setYAxisTopText(textObj) {
1069
+ quadrantBuilder.setData({ yAxisTopText: textSanitizer(textObj.text) });
1070
+ }
1071
+ function setYAxisBottomText(textObj) {
1072
+ quadrantBuilder.setData({ yAxisBottomText: textSanitizer(textObj.text) });
1073
+ }
1074
+ function addPoint(textObj, x, y) {
1075
+ quadrantBuilder.addPoints([{ x, y, text: textSanitizer(textObj.text) }]);
1076
+ }
1077
+ function setWidth(width) {
1078
+ quadrantBuilder.setConfig({ chartWidth: width });
1079
+ }
1080
+ function setHeight(height) {
1081
+ quadrantBuilder.setConfig({ chartHeight: height });
1082
+ }
1083
+ function getQuadrantData() {
1084
+ const config2 = getConfig();
1085
+ const { themeVariables, quadrantChart: quadrantChartConfig } = config2;
1086
+ if (quadrantChartConfig) {
1087
+ quadrantBuilder.setConfig(quadrantChartConfig);
1088
+ }
1089
+ quadrantBuilder.setThemeConfig({
1090
+ quadrant1Fill: themeVariables.quadrant1Fill,
1091
+ quadrant2Fill: themeVariables.quadrant2Fill,
1092
+ quadrant3Fill: themeVariables.quadrant3Fill,
1093
+ quadrant4Fill: themeVariables.quadrant4Fill,
1094
+ quadrant1TextFill: themeVariables.quadrant1TextFill,
1095
+ quadrant2TextFill: themeVariables.quadrant2TextFill,
1096
+ quadrant3TextFill: themeVariables.quadrant3TextFill,
1097
+ quadrant4TextFill: themeVariables.quadrant4TextFill,
1098
+ quadrantPointFill: themeVariables.quadrantPointFill,
1099
+ quadrantPointTextFill: themeVariables.quadrantPointTextFill,
1100
+ quadrantXAxisTextFill: themeVariables.quadrantXAxisTextFill,
1101
+ quadrantYAxisTextFill: themeVariables.quadrantYAxisTextFill,
1102
+ quadrantExternalBorderStrokeFill: themeVariables.quadrantExternalBorderStrokeFill,
1103
+ quadrantInternalBorderStrokeFill: themeVariables.quadrantInternalBorderStrokeFill,
1104
+ quadrantTitleFill: themeVariables.quadrantTitleFill
1105
+ });
1106
+ quadrantBuilder.setData({ titleText: getDiagramTitle() });
1107
+ return quadrantBuilder.build();
1108
+ }
1109
+ const clear = function() {
1110
+ quadrantBuilder.clear();
1111
+ clear$1();
1112
+ };
1113
+ const db = {
1114
+ setWidth,
1115
+ setHeight,
1116
+ setQuadrant1Text,
1117
+ setQuadrant2Text,
1118
+ setQuadrant3Text,
1119
+ setQuadrant4Text,
1120
+ setXAxisLeftText,
1121
+ setXAxisRightText,
1122
+ setYAxisTopText,
1123
+ setYAxisBottomText,
1124
+ addPoint,
1125
+ getQuadrantData,
1126
+ clear,
1127
+ setAccTitle,
1128
+ getAccTitle,
1129
+ setDiagramTitle,
1130
+ getDiagramTitle,
1131
+ getAccDescription,
1132
+ setAccDescription
1133
+ };
1134
+ const draw = (txt, id, _version, diagObj) => {
1135
+ var _a, _b, _c;
1136
+ function getDominantBaseLine(horizontalPos) {
1137
+ return horizontalPos === "top" ? "hanging" : "middle";
1138
+ }
1139
+ function getTextAnchor(verticalPos) {
1140
+ return verticalPos === "left" ? "start" : "middle";
1141
+ }
1142
+ function getTransformation(data) {
1143
+ return `translate(${data.x}, ${data.y}) rotate(${data.rotation || 0})`;
1144
+ }
1145
+ const conf = getConfig();
1146
+ log.debug("Rendering quadrant chart\n" + txt);
1147
+ const securityLevel = conf.securityLevel;
1148
+ let sandboxElement;
1149
+ if (securityLevel === "sandbox") {
1150
+ sandboxElement = d3select("#i" + id);
1151
+ }
1152
+ const root = securityLevel === "sandbox" ? d3select(sandboxElement.nodes()[0].contentDocument.body) : d3select("body");
1153
+ const svg = root.select(`[id="${id}"]`);
1154
+ const group = svg.append("g").attr("class", "main");
1155
+ const width = ((_a = conf.quadrantChart) == null ? void 0 : _a.chartWidth) || 500;
1156
+ const height = ((_b = conf.quadrantChart) == null ? void 0 : _b.chartHeight) || 500;
1157
+ configureSvgSize(svg, height, width, ((_c = conf.quadrantChart) == null ? void 0 : _c.useMaxWidth) || true);
1158
+ svg.attr("viewBox", "0 0 " + width + " " + height);
1159
+ diagObj.db.setHeight(height);
1160
+ diagObj.db.setWidth(width);
1161
+ const quadrantData = diagObj.db.getQuadrantData();
1162
+ const quadrantsGroup = group.append("g").attr("class", "quadrants");
1163
+ const borderGroup = group.append("g").attr("class", "border");
1164
+ const dataPointGroup = group.append("g").attr("class", "data-points");
1165
+ const labelGroup = group.append("g").attr("class", "labels");
1166
+ const titleGroup = group.append("g").attr("class", "title");
1167
+ if (quadrantData.title) {
1168
+ titleGroup.append("text").attr("x", 0).attr("y", 0).attr("fill", quadrantData.title.fill).attr("font-size", quadrantData.title.fontSize).attr("dominant-baseline", getDominantBaseLine(quadrantData.title.horizontalPos)).attr("text-anchor", getTextAnchor(quadrantData.title.verticalPos)).attr("transform", getTransformation(quadrantData.title)).text(quadrantData.title.text);
1169
+ }
1170
+ if (quadrantData.borderLines) {
1171
+ borderGroup.selectAll("line").data(quadrantData.borderLines).enter().append("line").attr("x1", (data) => data.x1).attr("y1", (data) => data.y1).attr("x2", (data) => data.x2).attr("y2", (data) => data.y2).style("stroke", (data) => data.strokeFill).style("stroke-width", (data) => data.strokeWidth);
1172
+ }
1173
+ const quadrants = quadrantsGroup.selectAll("g.quadrant").data(quadrantData.quadrants).enter().append("g").attr("class", "quadrant");
1174
+ quadrants.append("rect").attr("x", (data) => data.x).attr("y", (data) => data.y).attr("width", (data) => data.width).attr("height", (data) => data.height).attr("fill", (data) => data.fill);
1175
+ quadrants.append("text").attr("x", 0).attr("y", 0).attr("fill", (data) => data.text.fill).attr("font-size", (data) => data.text.fontSize).attr(
1176
+ "dominant-baseline",
1177
+ (data) => getDominantBaseLine(data.text.horizontalPos)
1178
+ ).attr("text-anchor", (data) => getTextAnchor(data.text.verticalPos)).attr("transform", (data) => getTransformation(data.text)).text((data) => data.text.text);
1179
+ const labels = labelGroup.selectAll("g.label").data(quadrantData.axisLabels).enter().append("g").attr("class", "label");
1180
+ labels.append("text").attr("x", 0).attr("y", 0).text((data) => data.text).attr("fill", (data) => data.fill).attr("font-size", (data) => data.fontSize).attr("dominant-baseline", (data) => getDominantBaseLine(data.horizontalPos)).attr("text-anchor", (data) => getTextAnchor(data.verticalPos)).attr("transform", (data) => getTransformation(data));
1181
+ const dataPoints = dataPointGroup.selectAll("g.data-point").data(quadrantData.points).enter().append("g").attr("class", "data-point");
1182
+ dataPoints.append("circle").attr("cx", (data) => data.x).attr("cy", (data) => data.y).attr("r", (data) => data.radius).attr("fill", (data) => data.fill);
1183
+ dataPoints.append("text").attr("x", 0).attr("y", 0).text((data) => data.text.text).attr("fill", (data) => data.text.fill).attr("font-size", (data) => data.text.fontSize).attr(
1184
+ "dominant-baseline",
1185
+ (data) => getDominantBaseLine(data.text.horizontalPos)
1186
+ ).attr("text-anchor", (data) => getTextAnchor(data.text.verticalPos)).attr("transform", (data) => getTransformation(data.text));
1187
+ };
1188
+ const renderer = {
1189
+ draw
1190
+ };
1191
+ const diagram = {
1192
+ parser: parser$1,
1193
+ db,
1194
+ renderer,
1195
+ styles: () => ""
1196
+ };
1197
+ export {
1198
+ diagram
1199
+ };