@visuallyjs/browser-ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/css/visuallyjs-theme.css +148 -0
  2. package/css/visuallyjs.css +1879 -0
  3. package/js/visuallyjs.browser-ui.cjs.js +143 -0
  4. package/js/visuallyjs.browser-ui.esm.js +143 -0
  5. package/package.json +16 -0
  6. package/types/browser-ui/base-dom-ui-layout-adapter.d.ts +14 -0
  7. package/types/browser-ui/browser-ui.d.ts +95 -0
  8. package/types/browser-ui/browser-util.d.ts +233 -0
  9. package/types/browser-ui/browser-visuallyjs-instance.d.ts +881 -0
  10. package/types/browser-ui/canvas-layout-adapter.d.ts +15 -0
  11. package/types/browser-ui/collicat.d.ts +245 -0
  12. package/types/browser-ui/components/controls/controls-component.d.ts +137 -0
  13. package/types/browser-ui/components/controls/copy-paste-controls-component.d.ts +9 -0
  14. package/types/browser-ui/components/controls/css-classes.d.ts +79 -0
  15. package/types/browser-ui/components/controls/index.d.ts +4 -0
  16. package/types/browser-ui/components/controls/svg-export-component.d.ts +60 -0
  17. package/types/browser-ui/components/edge-type-picker/edge-type-picker.d.ts +37 -0
  18. package/types/browser-ui/components/edge-type-picker/index.d.ts +1 -0
  19. package/types/browser-ui/components/index.d.ts +4 -0
  20. package/types/browser-ui/components/inspector/color-picker-tag.d.ts +32 -0
  21. package/types/browser-ui/components/inspector/definitions.d.ts +114 -0
  22. package/types/browser-ui/components/inspector/edge-type-tag.d.ts +15 -0
  23. package/types/browser-ui/components/inspector/index.d.ts +6 -0
  24. package/types/browser-ui/components/inspector/inspector.d.ts +138 -0
  25. package/types/browser-ui/components/inspector/shape-type-inspector.d.ts +43 -0
  26. package/types/browser-ui/components/inspector/vanilla-inspector.d.ts +39 -0
  27. package/types/browser-ui/components/palette/index.d.ts +2 -0
  28. package/types/browser-ui/components/palette/palette-content-generator.d.ts +14 -0
  29. package/types/browser-ui/components/palette/palette-options.d.ts +159 -0
  30. package/types/browser-ui/components/palette/palette.d.ts +126 -0
  31. package/types/browser-ui/connector-editor.d.ts +65 -0
  32. package/types/browser-ui/connector-editors/anchors.d.ts +31 -0
  33. package/types/browser-ui/connector-editors/css-constants.d.ts +33 -0
  34. package/types/browser-ui/connector-editors/definitions.d.ts +74 -0
  35. package/types/browser-ui/connector-editors/editor-base.d.ts +177 -0
  36. package/types/browser-ui/connector-editors/index.d.ts +52 -0
  37. package/types/browser-ui/connector-editors/util.d.ts +33 -0
  38. package/types/browser-ui/connector-editors-bezier/bezier-editor.d.ts +82 -0
  39. package/types/browser-ui/connector-editors-bezier/css-constants.d.ts +42 -0
  40. package/types/browser-ui/connector-editors-bezier/index.d.ts +9 -0
  41. package/types/browser-ui/connector-editors-orthogonal/css-constants.d.ts +28 -0
  42. package/types/browser-ui/connector-editors-orthogonal/index.d.ts +9 -0
  43. package/types/browser-ui/connector-editors-orthogonal/orthogonal-editor.d.ts +86 -0
  44. package/types/browser-ui/connector-editors-straight/auto-split-mode.d.ts +24 -0
  45. package/types/browser-ui/connector-editors-straight/click-split-mode.d.ts +20 -0
  46. package/types/browser-ui/connector-editors-straight/css-constants.d.ts +30 -0
  47. package/types/browser-ui/connector-editors-straight/definitions.d.ts +69 -0
  48. package/types/browser-ui/connector-editors-straight/index.d.ts +11 -0
  49. package/types/browser-ui/connector-editors-straight/straight-editor.d.ts +42 -0
  50. package/types/browser-ui/constants.d.ts +79 -0
  51. package/types/browser-ui/copy-paste/clipboard.d.ts +34 -0
  52. package/types/browser-ui/copy-paste/index.d.ts +2 -0
  53. package/types/browser-ui/copy-paste/transformer.d.ts +14 -0
  54. package/types/browser-ui/css-constants.d.ts +436 -0
  55. package/types/browser-ui/d.d.ts +2 -0
  56. package/types/browser-ui/definitions.d.ts +442 -0
  57. package/types/browser-ui/dialogs/binder.d.ts +49 -0
  58. package/types/browser-ui/dialogs/constants.d.ts +51 -0
  59. package/types/browser-ui/dialogs/dialogs.d.ts +30 -0
  60. package/types/browser-ui/dialogs/index.d.ts +3 -0
  61. package/types/browser-ui/drag-manager-2.d.ts +54 -0
  62. package/types/browser-ui/edge-handler-base.d.ts +168 -0
  63. package/types/browser-ui/edge-input-handler.d.ts +116 -0
  64. package/types/browser-ui/edge-mappings/flowchart-basic.d.ts +22 -0
  65. package/types/browser-ui/edge-mappings/index.d.ts +1 -0
  66. package/types/browser-ui/edge-relocate-handler.d.ts +51 -0
  67. package/types/browser-ui/element-drag-handler-2.d.ts +254 -0
  68. package/types/browser-ui/element-dragger.d.ts +45 -0
  69. package/types/browser-ui/element-facade.d.ts +11 -0
  70. package/types/browser-ui/event-manager.d.ts +50 -0
  71. package/types/browser-ui/fixed-layer.d.ts +107 -0
  72. package/types/browser-ui/group-layout-adapter.d.ts +19 -0
  73. package/types/browser-ui/html-element-overlay.d.ts +32 -0
  74. package/types/browser-ui/icons/definitions.d.ts +59 -0
  75. package/types/browser-ui/icons/icon-renderer.d.ts +43 -0
  76. package/types/browser-ui/icons/index.d.ts +2 -0
  77. package/types/browser-ui/index.d.ts +48 -0
  78. package/types/browser-ui/pan-zoom-options.d.ts +262 -0
  79. package/types/browser-ui/pan-zoom.d.ts +674 -0
  80. package/types/browser-ui/paper-renderer/definitions.d.ts +83 -0
  81. package/types/browser-ui/paper-renderer/index.d.ts +2 -0
  82. package/types/browser-ui/paper-renderer/paper.d.ts +50 -0
  83. package/types/browser-ui/pinch-listener.d.ts +33 -0
  84. package/types/browser-ui/plugins/background/available-backgrounds.d.ts +12 -0
  85. package/types/browser-ui/plugins/background/background-options.d.ts +62 -0
  86. package/types/browser-ui/plugins/background/background-plugin.d.ts +62 -0
  87. package/types/browser-ui/plugins/background/generated-grid-background.d.ts +230 -0
  88. package/types/browser-ui/plugins/background/index.d.ts +6 -0
  89. package/types/browser-ui/plugins/background/simple-background.d.ts +33 -0
  90. package/types/browser-ui/plugins/background/tiled-background.d.ts +118 -0
  91. package/types/browser-ui/plugins/browser-ui-plugin.d.ts +90 -0
  92. package/types/browser-ui/plugins/edge-routing/index.d.ts +66 -0
  93. package/types/browser-ui/plugins/index.d.ts +5 -0
  94. package/types/browser-ui/plugins/selected-edge-highlight/index.d.ts +1 -0
  95. package/types/browser-ui/plugins/selected-edge-highlight/selected-edge-highlight-plugin.d.ts +36 -0
  96. package/types/browser-ui/plugins/ui-states/index.d.ts +2 -0
  97. package/types/browser-ui/plugins/ui-states/ui-state.d.ts +14 -0
  98. package/types/browser-ui/plugins/ui-states/ui-states-plugin.d.ts +69 -0
  99. package/types/browser-ui/positioning-and-sizing-utils.d.ts +103 -0
  100. package/types/browser-ui/shape-library/index.d.ts +4 -0
  101. package/types/browser-ui/shape-library/shape-library-definitions.d.ts +243 -0
  102. package/types/browser-ui/shape-library/shape-library.d.ts +266 -0
  103. package/types/browser-ui/shape-library/shapes-basic.d.ts +7 -0
  104. package/types/browser-ui/shape-library/shapes-flowchart.d.ts +7 -0
  105. package/types/browser-ui/storage.d.ts +8 -0
  106. package/types/browser-ui/surface-renderer/anim/anim.d.ts +64 -0
  107. package/types/browser-ui/surface-renderer/anim/constants.d.ts +74 -0
  108. package/types/browser-ui/surface-renderer/anim/definitions.d.ts +134 -0
  109. package/types/browser-ui/surface-renderer/anim/index.d.ts +4 -0
  110. package/types/browser-ui/surface-renderer/anim/path-transport.d.ts +23 -0
  111. package/types/browser-ui/surface-renderer/css-classes.d.ts +64 -0
  112. package/types/browser-ui/surface-renderer/decorators.d.ts +162 -0
  113. package/types/browser-ui/surface-renderer/definitions.d.ts +83 -0
  114. package/types/browser-ui/surface-renderer/diagrams/constants.d.ts +28 -0
  115. package/types/browser-ui/surface-renderer/diagrams/definitions.d.ts +528 -0
  116. package/types/browser-ui/surface-renderer/diagrams/diagram-cell.d.ts +123 -0
  117. package/types/browser-ui/surface-renderer/diagrams/diagram-link.d.ts +116 -0
  118. package/types/browser-ui/surface-renderer/diagrams/diagram-palette.d.ts +11 -0
  119. package/types/browser-ui/surface-renderer/diagrams/diagram-tools.d.ts +112 -0
  120. package/types/browser-ui/surface-renderer/diagrams/diagram.d.ts +221 -0
  121. package/types/browser-ui/surface-renderer/diagrams/index.d.ts +25 -0
  122. package/types/browser-ui/surface-renderer/diagrams/mediator.d.ts +59 -0
  123. package/types/browser-ui/surface-renderer/diagrams/util.d.ts +15 -0
  124. package/types/browser-ui/surface-renderer/elastic-group-manager.d.ts +102 -0
  125. package/types/browser-ui/surface-renderer/index.d.ts +34 -0
  126. package/types/browser-ui/surface-renderer/params.d.ts +175 -0
  127. package/types/browser-ui/surface-renderer/plugins/controls/controls-plugin.d.ts +26 -0
  128. package/types/browser-ui/surface-renderer/plugins/controls/index.d.ts +1 -0
  129. package/types/browser-ui/surface-renderer/plugins/drag-groups/drag-groups-plugin.d.ts +78 -0
  130. package/types/browser-ui/surface-renderer/plugins/drag-groups/index.d.ts +1 -0
  131. package/types/browser-ui/surface-renderer/plugins/export-controls/export-controls-plugin.d.ts +25 -0
  132. package/types/browser-ui/surface-renderer/plugins/export-controls/index.d.ts +1 -0
  133. package/types/browser-ui/surface-renderer/plugins/index.d.ts +10 -0
  134. package/types/browser-ui/surface-renderer/plugins/lasso/index.d.ts +2 -0
  135. package/types/browser-ui/surface-renderer/plugins/lasso/lasso-plugin.d.ts +78 -0
  136. package/types/browser-ui/surface-renderer/plugins/lasso/lasso.d.ts +74 -0
  137. package/types/browser-ui/surface-renderer/plugins/miniview/index.d.ts +1 -0
  138. package/types/browser-ui/surface-renderer/plugins/miniview/miniview-plugin.d.ts +235 -0
  139. package/types/browser-ui/surface-renderer/plugins/palette/index.d.ts +1 -0
  140. package/types/browser-ui/surface-renderer/plugins/palette/palette-plugin.d.ts +17 -0
  141. package/types/browser-ui/surface-renderer/plugins/pan-buttons/index.d.ts +1 -0
  142. package/types/browser-ui/surface-renderer/plugins/pan-buttons/pan-buttons-plugin.d.ts +55 -0
  143. package/types/browser-ui/surface-renderer/plugins/resizing-tools/border-drag-handlers.d.ts +3 -0
  144. package/types/browser-ui/surface-renderer/plugins/resizing-tools/definitions.d.ts +411 -0
  145. package/types/browser-ui/surface-renderer/plugins/resizing-tools/drag-handlers.d.ts +3 -0
  146. package/types/browser-ui/surface-renderer/plugins/resizing-tools/handle-gen.d.ts +15 -0
  147. package/types/browser-ui/surface-renderer/plugins/resizing-tools/index.d.ts +4 -0
  148. package/types/browser-ui/surface-renderer/plugins/resizing-tools/resizing-tools-plugin.d.ts +185 -0
  149. package/types/browser-ui/surface-renderer/plugins/resizing-tools/util.d.ts +16 -0
  150. package/types/browser-ui/surface-renderer/plugins/snaplines/index.d.ts +1 -0
  151. package/types/browser-ui/surface-renderer/plugins/snaplines/snaplines-plugin.d.ts +128 -0
  152. package/types/browser-ui/surface-renderer/plugins/vertex-drawing/definitions.d.ts +90 -0
  153. package/types/browser-ui/surface-renderer/plugins/vertex-drawing/index.d.ts +2 -0
  154. package/types/browser-ui/surface-renderer/plugins/vertex-drawing/vertex-drawing-plugin.d.ts +64 -0
  155. package/types/browser-ui/surface-renderer/shape-palette-options.d.ts +127 -0
  156. package/types/browser-ui/surface-renderer/shape-palette.d.ts +55 -0
  157. package/types/browser-ui/surface-renderer/surface-decorator.d.ts +35 -0
  158. package/types/browser-ui/surface-renderer/surface-events.d.ts +9 -0
  159. package/types/browser-ui/surface-renderer/surface-render-options.d.ts +125 -0
  160. package/types/browser-ui/surface-renderer/surface.d.ts +665 -0
  161. package/types/browser-ui/svg-component.d.ts +6 -0
  162. package/types/browser-ui/svg-element-connector.d.ts +16 -0
  163. package/types/browser-ui/svg-element-overlay.d.ts +55 -0
  164. package/types/browser-ui/svg-export/definitions.d.ts +153 -0
  165. package/types/browser-ui/svg-export/image-export-ui.d.ts +20 -0
  166. package/types/browser-ui/svg-export/image-exporter.d.ts +15 -0
  167. package/types/browser-ui/svg-export/index.d.ts +6 -0
  168. package/types/browser-ui/svg-export/svg-export-ui.d.ts +11 -0
  169. package/types/browser-ui/svg-export/svg-exporter.d.ts +8 -0
  170. package/types/browser-ui/svg-export/util.d.ts +23 -0
  171. package/types/browser-ui/svg-util.d.ts +27 -0
  172. package/types/browser-ui/templating/browser-ui-recado.d.ts +48 -0
  173. package/types/browser-ui/templating/custom-tag-definition.d.ts +32 -0
  174. package/types/browser-ui/templating/index.d.ts +11 -0
  175. package/types/browser-ui/templating/recado-template-renderer.d.ts +69 -0
  176. package/types/browser-ui/ui-path.d.ts +57 -0
  177. package/types/browser-ui/util.d.ts +4 -0
  178. package/types/browser-ui/wheel-listener.d.ts +2 -0
  179. package/types/charts/area/area-chart.d.ts +85 -0
  180. package/types/charts/area/index.d.ts +1 -0
  181. package/types/charts/bar-and-column/bar-chart.d.ts +34 -0
  182. package/types/charts/bar-and-column/bar-plot.d.ts +90 -0
  183. package/types/charts/bar-and-column/column-chart.d.ts +35 -0
  184. package/types/charts/bar-and-column/index.d.ts +3 -0
  185. package/types/charts/base-chart.d.ts +395 -0
  186. package/types/charts/base-xy-chart.d.ts +224 -0
  187. package/types/charts/bubble/bubble-chart.d.ts +30 -0
  188. package/types/charts/bubble/definitions.d.ts +32 -0
  189. package/types/charts/bubble/index.d.ts +2 -0
  190. package/types/charts/category-value-chart.d.ts +146 -0
  191. package/types/charts/chart-exporter.d.ts +38 -0
  192. package/types/charts/chart-zoom-controls.d.ts +23 -0
  193. package/types/charts/constants.d.ts +16 -0
  194. package/types/charts/css-classes.d.ts +312 -0
  195. package/types/charts/datasource.d.ts +61 -0
  196. package/types/charts/definitions.d.ts +261 -0
  197. package/types/charts/domain_scale_utilities.d.ts +72 -0
  198. package/types/charts/dual-value-chart.d.ts +60 -0
  199. package/types/charts/gauge/definitions.d.ts +108 -0
  200. package/types/charts/gauge/gauge-chart.d.ts +91 -0
  201. package/types/charts/gauge/index.d.ts +2 -0
  202. package/types/charts/index.d.ts +25 -0
  203. package/types/charts/legend.d.ts +120 -0
  204. package/types/charts/line/index.d.ts +1 -0
  205. package/types/charts/line/line-chart.d.ts +79 -0
  206. package/types/charts/markers.d.ts +13 -0
  207. package/types/charts/pie/index.d.ts +1 -0
  208. package/types/charts/pie/pie-chart.d.ts +146 -0
  209. package/types/charts/plot.d.ts +75 -0
  210. package/types/charts/sankey/index.d.ts +1 -0
  211. package/types/charts/sankey/preprocessor.d.ts +37 -0
  212. package/types/charts/sankey/sankey.d.ts +208 -0
  213. package/types/charts/scatter/definitions.d.ts +6 -0
  214. package/types/charts/scatter/index.d.ts +2 -0
  215. package/types/charts/scatter/scatter-chart.d.ts +16 -0
  216. package/types/charts/series/array-based-series.d.ts +95 -0
  217. package/types/charts/series/collation-series.d.ts +24 -0
  218. package/types/charts/series/definitions.d.ts +52 -0
  219. package/types/charts/series/dual-value-chart-series.d.ts +26 -0
  220. package/types/charts/series/index.d.ts +7 -0
  221. package/types/charts/series/record-based-series.d.ts +58 -0
  222. package/types/charts/series/series.d.ts +66 -0
  223. package/types/charts/series/summing-collation-series.d.ts +31 -0
  224. package/types/charts/series/summing-series.d.ts +19 -0
  225. package/types/charts/series-based-chart.d.ts +59 -0
  226. package/types/charts/tooltip.d.ts +167 -0
  227. package/types/charts/util.d.ts +149 -0
  228. package/types/core/astar/astar-path-finder.d.ts +37 -0
  229. package/types/core/astar/astar-util.d.ts +100 -0
  230. package/types/core/astar/candidate-finder.d.ts +16 -0
  231. package/types/core/astar/candidate-sorter.d.ts +10 -0
  232. package/types/core/astar/definitions.d.ts +185 -0
  233. package/types/core/astar/index.d.ts +3 -0
  234. package/types/core/astar/path-to-segments.d.ts +45 -0
  235. package/types/core/autosaver.d.ts +67 -0
  236. package/types/core/color-generator.d.ts +66 -0
  237. package/types/core/constants.d.ts +181 -0
  238. package/types/core/csv-loader.d.ts +84 -0
  239. package/types/core/datamodel/data-model.d.ts +23 -0
  240. package/types/core/datamodel/vertex-definition.d.ts +40 -0
  241. package/types/core/datasource.d.ts +87 -0
  242. package/types/core/event-constants.d.ts +308 -0
  243. package/types/core/event-generator.d.ts +102 -0
  244. package/types/core/filterable-dataset.d.ts +38 -0
  245. package/types/core/geom.d.ts +278 -0
  246. package/types/core/index.d.ts +39 -0
  247. package/types/core/io.d.ts +106 -0
  248. package/types/core/layout/absolute-layout.d.ts +91 -0
  249. package/types/core/layout/abstract-layout-adapter.d.ts +17 -0
  250. package/types/core/layout/abstract-layout.d.ts +192 -0
  251. package/types/core/layout/circular/circular-layout.d.ts +31 -0
  252. package/types/core/layout/circular/index.d.ts +1 -0
  253. package/types/core/layout/empty-layout.d.ts +17 -0
  254. package/types/core/layout/force-directed/force-directed-layout.d.ts +148 -0
  255. package/types/core/layout/force-directed/index.d.ts +1 -0
  256. package/types/core/layout/grid/definitions.d.ts +81 -0
  257. package/types/core/layout/grid/grid-layout.d.ts +60 -0
  258. package/types/core/layout/grid/index.d.ts +2 -0
  259. package/types/core/layout/hierarchical/abstract-hierarchical-layout.d.ts +90 -0
  260. package/types/core/layout/hierarchical/balloon-layout.d.ts +62 -0
  261. package/types/core/layout/hierarchical/definitions.d.ts +45 -0
  262. package/types/core/layout/hierarchical/hierarchical-layout.d.ts +102 -0
  263. package/types/core/layout/hierarchical/index.d.ts +5 -0
  264. package/types/core/layout/hierarchical/parent-relative-placement.d.ts +96 -0
  265. package/types/core/layout/hierarchy/assign-layers-stage.d.ts +26 -0
  266. package/types/core/layout/hierarchy/crossing-stage.d.ts +78 -0
  267. package/types/core/layout/hierarchy/definitions.d.ts +261 -0
  268. package/types/core/layout/hierarchy/edge-routing.d.ts +25 -0
  269. package/types/core/layout/hierarchy/hierarchy-layout-stage.d.ts +9 -0
  270. package/types/core/layout/hierarchy/hierarchy-layout.d.ts +87 -0
  271. package/types/core/layout/hierarchy/index.d.ts +11 -0
  272. package/types/core/layout/hierarchy/model.d.ts +167 -0
  273. package/types/core/layout/hierarchy/parent-relative-placement.d.ts +69 -0
  274. package/types/core/layout/hierarchy/placement-stage.d.ts +82 -0
  275. package/types/core/layout/hierarchy/util.d.ts +13 -0
  276. package/types/core/layout/hierarchy/vertex-set.d.ts +45 -0
  277. package/types/core/layout/index.d.ts +10 -0
  278. package/types/core/layout/layouts.d.ts +10 -0
  279. package/types/core/magnetizer.d.ts +232 -0
  280. package/types/core/model/anchor.d.ts +38 -0
  281. package/types/core/model/cluster.d.ts +19 -0
  282. package/types/core/model/defs.d.ts +8 -0
  283. package/types/core/model/djikstra.d.ts +26 -0
  284. package/types/core/model/floyd-warshall.d.ts +15 -0
  285. package/types/core/model/graph.d.ts +1166 -0
  286. package/types/core/model/path.d.ts +227 -0
  287. package/types/core/params.d.ts +476 -0
  288. package/types/core/renderer.d.ts +74 -0
  289. package/types/core/router/common.d.ts +104 -0
  290. package/types/core/router/direct-router.d.ts +12 -0
  291. package/types/core/router/index.d.ts +3 -0
  292. package/types/core/router/orthogonal-router.d.ts +46 -0
  293. package/types/core/rtree/definitions.d.ts +24 -0
  294. package/types/core/rtree/hilbert.d.ts +9 -0
  295. package/types/core/rtree/index.d.ts +4 -0
  296. package/types/core/rtree/rtree.d.ts +102 -0
  297. package/types/core/rtree/util.d.ts +55 -0
  298. package/types/core/search/index.d.ts +1 -0
  299. package/types/core/search/visuallyjs-search.d.ts +167 -0
  300. package/types/core/selection.d.ts +394 -0
  301. package/types/core/templates/abstract-entry.d.ts +19 -0
  302. package/types/core/templates/comment-entry.d.ts +11 -0
  303. package/types/core/templates/core.d.ts +162 -0
  304. package/types/core/templates/custom-tag.d.ts +74 -0
  305. package/types/core/templates/defs.d.ts +123 -0
  306. package/types/core/templates/each-entry.d.ts +23 -0
  307. package/types/core/templates/element-entry.d.ts +18 -0
  308. package/types/core/templates/elements.d.ts +14 -0
  309. package/types/core/templates/executions.d.ts +100 -0
  310. package/types/core/templates/expressions.d.ts +47 -0
  311. package/types/core/templates/fake-dom.d.ts +42 -0
  312. package/types/core/templates/headless.d.ts +15 -0
  313. package/types/core/templates/if-entry.d.ts +25 -0
  314. package/types/core/templates/index.d.ts +14 -0
  315. package/types/core/templates/parser.d.ts +84 -0
  316. package/types/core/templates/text-entry.d.ts +17 -0
  317. package/types/core/templates/tmpl-entry.d.ts +13 -0
  318. package/types/core/toolkit.d.ts +1314 -0
  319. package/types/core/undo-redo/compound-action.d.ts +19 -0
  320. package/types/core/undo-redo/edge-action.d.ts +62 -0
  321. package/types/core/undo-redo/group-action.d.ts +60 -0
  322. package/types/core/undo-redo/move-action.d.ts +18 -0
  323. package/types/core/undo-redo/node-group-action.d.ts +62 -0
  324. package/types/core/undo-redo/port-action.d.ts +29 -0
  325. package/types/core/undo-redo/renderer-vertex-removed-action.d.ts +17 -0
  326. package/types/core/undo-redo/set-type-action.d.ts +14 -0
  327. package/types/core/undo-redo/undo-redo.d.ts +203 -0
  328. package/types/core/undo-redo/update-action.d.ts +20 -0
  329. package/types/core/undo-redo/vertex-update-action.d.ts +12 -0
  330. package/types/core/util.d.ts +661 -0
  331. package/types/index.d.ts +16 -0
  332. package/types/l.d.ts +2 -0
  333. package/types/test-support/index.d.ts +1 -0
  334. package/types/test-support/test-support.d.ts +833 -0
  335. package/types/ui/common/abstract-segment.d.ts +88 -0
  336. package/types/ui/common/anchor.d.ts +280 -0
  337. package/types/ui/common/connector.d.ts +106 -0
  338. package/types/ui/common/index.d.ts +5 -0
  339. package/types/ui/common/overlay.d.ts +117 -0
  340. package/types/ui/common/paint-style.d.ts +33 -0
  341. package/types/ui/connector-bezier/abstract-bezier-connector.d.ts +68 -0
  342. package/types/ui/connector-bezier/bezier-connector.d.ts +34 -0
  343. package/types/ui/connector-bezier/bezier-segment.d.ts +31 -0
  344. package/types/ui/connector-bezier/bezier.d.ts +129 -0
  345. package/types/ui/connector-bezier/index.d.ts +6 -0
  346. package/types/ui/connector-bezier/operations.d.ts +18 -0
  347. package/types/ui/connector-bezier/quadratic-bezier-connector.d.ts +35 -0
  348. package/types/ui/connector-orthogonal/default-orthogonal-path-compute.d.ts +11 -0
  349. package/types/ui/connector-orthogonal/definitions.d.ts +120 -0
  350. package/types/ui/connector-orthogonal/index.d.ts +7 -0
  351. package/types/ui/connector-orthogonal/modern-source-target-relocator.d.ts +37 -0
  352. package/types/ui/connector-orthogonal/operations.d.ts +49 -0
  353. package/types/ui/connector-orthogonal/stub-calculators.d.ts +12 -0
  354. package/types/ui/connector-orthogonal/utils.d.ts +134 -0
  355. package/types/ui/connector-orthogonal/vertex-avoidance.d.ts +29 -0
  356. package/types/ui/connector-straight/index.d.ts +2 -0
  357. package/types/ui/connector-straight/operations.d.ts +55 -0
  358. package/types/ui/connector-straight/straight-connector.d.ts +121 -0
  359. package/types/ui/copy-paste/clipboard.d.ts +45 -0
  360. package/types/ui/copy-paste/copy-data.d.ts +93 -0
  361. package/types/ui/copy-paste/index.d.ts +2 -0
  362. package/types/ui/core/callbacks.d.ts +48 -0
  363. package/types/ui/core/component/component.d.ts +115 -0
  364. package/types/ui/core/connector/abstract-connector.d.ts +66 -0
  365. package/types/ui/core/connector/arc-segment.d.ts +39 -0
  366. package/types/ui/core/connector/connection-impl.d.ts +81 -0
  367. package/types/ui/core/connector/connections.d.ts +113 -0
  368. package/types/ui/core/connector/connectors.d.ts +205 -0
  369. package/types/ui/core/connector/operations.d.ts +0 -0
  370. package/types/ui/core/connector/segments.d.ts +24 -0
  371. package/types/ui/core/connector/straight-segment.d.ts +32 -0
  372. package/types/ui/core/constants.d.ts +181 -0
  373. package/types/ui/core/context.d.ts +26 -0
  374. package/types/ui/core/core-events.d.ts +7 -0
  375. package/types/ui/core/core.d.ts +1734 -0
  376. package/types/ui/core/css-constants.d.ts +149 -0
  377. package/types/ui/core/defaults.d.ts +242 -0
  378. package/types/ui/core/definitions.d.ts +540 -0
  379. package/types/ui/core/event-constants.d.ts +510 -0
  380. package/types/ui/core/factory/anchor-record-factory.d.ts +17 -0
  381. package/types/ui/core/factory/continuous-anchors.d.ts +27 -0
  382. package/types/ui/core/factory/overlay-factory.d.ts +8 -0
  383. package/types/ui/core/grid-profile.d.ts +28 -0
  384. package/types/ui/core/group-collapse-expand.d.ts +23 -0
  385. package/types/ui/core/group-sizer.d.ts +9 -0
  386. package/types/ui/core/index.d.ts +45 -0
  387. package/types/ui/core/magnetize-profile.d.ts +82 -0
  388. package/types/ui/core/overlay/arrow-overlay.d.ts +34 -0
  389. package/types/ui/core/overlay/custom-overlay.d.ts +38 -0
  390. package/types/ui/core/overlay/diamond-overlay.d.ts +14 -0
  391. package/types/ui/core/overlay/dot-overlay.d.ts +54 -0
  392. package/types/ui/core/overlay/ellipse-overlay.d.ts +60 -0
  393. package/types/ui/core/overlay/label-overlay.d.ts +37 -0
  394. package/types/ui/core/overlay/overlay.d.ts +131 -0
  395. package/types/ui/core/overlay/plain-arrow-overlay.d.ts +15 -0
  396. package/types/ui/core/overlay/rectangle-overlay.d.ts +66 -0
  397. package/types/ui/core/params.d.ts +223 -0
  398. package/types/ui/core/router/astar-path-finder.d.ts +29 -0
  399. package/types/ui/core/router/base-router.d.ts +100 -0
  400. package/types/ui/core/router/default-router.d.ts +38 -0
  401. package/types/ui/core/router/index.d.ts +5 -0
  402. package/types/ui/core/router/router-utils.d.ts +118 -0
  403. package/types/ui/core/router/router.d.ts +30 -0
  404. package/types/ui/core/type-descriptors.d.ts +83 -0
  405. package/types/ui/core/ui-model.d.ts +65 -0
  406. package/types/ui/core/view/common-options.d.ts +15 -0
  407. package/types/ui/core/view/edge-options.d.ts +126 -0
  408. package/types/ui/core/view/events.d.ts +159 -0
  409. package/types/ui/core/view/group-options.d.ts +75 -0
  410. package/types/ui/core/view/index.d.ts +35 -0
  411. package/types/ui/core/view/node-options.d.ts +20 -0
  412. package/types/ui/core/view/node-or-port-options.d.ts +28 -0
  413. package/types/ui/core/view/port-options.d.ts +51 -0
  414. package/types/ui/core/view/vertex-options.d.ts +28 -0
  415. package/types/ui/core/viewport.d.ts +297 -0
  416. package/types/ui/index.d.ts +9 -0
  417. package/types/ui/plugins/definitions.d.ts +118 -0
  418. package/types/ui/plugins/index.d.ts +2 -0
  419. package/types/ui/plugins/plugins.d.ts +7 -0
  420. package/types/ui/property-mappings/definitions.d.ts +28 -0
  421. package/types/ui/property-mappings/index.d.ts +2 -0
  422. package/types/ui/property-mappings/property-mapper.d.ts +16 -0
  423. package/types/ui/util/index.d.ts +3 -0
  424. package/types/ui/util/property-tracker.d.ts +8 -0
  425. package/types/ui/util/svg-constants.d.ts +111 -0
  426. package/types/ui/util/util.d.ts +69 -0
  427. package/types/version.d.ts +1 -0
@@ -0,0 +1,60 @@
1
+ import { XYChart } from "./base-xy-chart";
2
+ import { DualValueChartOptions, ValueAxis, ValueAxisDefinition } from "./definitions";
3
+ import { ObjectData } from "../core";
4
+ import { BrowserElement, FontSpec } from "../browser-ui";
5
+ import { ChartSVGElement } from "./util";
6
+ import { DualValueChartSeries, DualValueSeriesOptions } from "./series";
7
+ import { DualValueAxisTooltip, TooltipOptions } from "./tooltip";
8
+ /**
9
+ * Base class for charts that have two value axes (such as scatter and bubble)
10
+ * @group Charts
11
+ * @category DualValueChart
12
+ */
13
+ export declare abstract class DualValueChart extends XYChart<DualValueSeriesOptions, DualValueAxisTooltip> {
14
+ options: DualValueChartOptions;
15
+ private $xAxisDimensions;
16
+ private $yAxisDimensions;
17
+ xAxis: ValueAxis;
18
+ yAxis: ValueAxis;
19
+ axisFont: FontSpec;
20
+ _xAxisSpec: ValueAxisDefinition;
21
+ _yAxisSpec: ValueAxisDefinition;
22
+ _minimumMarkerSize: number;
23
+ _maximumMarkerSize: number;
24
+ protected constructor(container: BrowserElement, options: DualValueChartOptions);
25
+ $createTooltip(root: ChartSVGElement, options: TooltipOptions): DualValueAxisTooltip;
26
+ /**
27
+ * Overridden to stop the default series init behaviour.
28
+ */
29
+ $init(): void;
30
+ protected $dualValueInit(options: DualValueChartOptions): void;
31
+ $doLoad(): void;
32
+ /**
33
+ * Adjusts axis dimensions to ensure markers/bubbles don't bleed over the edges.
34
+ */
35
+ private $adjustDimensionsForMarkers;
36
+ /** @internal */
37
+ private $setupValueAxes;
38
+ /** @internal */
39
+ protected $drawChart(svgRoot: ChartSVGElement, width: number, height: number, backgroundElement: ChartSVGElement): void;
40
+ $doReset(): void;
41
+ $plotPoints(svgRoot: ChartSVGElement): void;
42
+ abstract $getMarkerSize(s: DualValueChartSeries, point: ObjectData): number;
43
+ abstract $getDataPointCssClass(): string | null;
44
+ protected $getBaseMarkerSize(): number;
45
+ $getXAxisType(): "category" | "value";
46
+ $getYAxisType(): "category" | "value";
47
+ $mouseOutChartPoint(): void;
48
+ $mouseOverChartPoint(t: ChartSVGElement, seriesIndex: number): void;
49
+ $_generateYAxes(): {
50
+ yAxes: ValueAxis[];
51
+ yAxesAtStart: ValueAxis[];
52
+ yAxesAtEnd: Array<ValueAxis>;
53
+ };
54
+ $_generateXAxes(): {
55
+ xAxes: ValueAxis[];
56
+ xAxesAtEnd: ValueAxis[];
57
+ xAxesAtStart: Array<ValueAxis>;
58
+ };
59
+ $recalc(): void;
60
+ }
@@ -0,0 +1,108 @@
1
+ import { BaseChartOptions } from "../base-chart";
2
+ export interface GaugeChartZone {
3
+ /**
4
+ * Start point for zone.
5
+ */
6
+ from: number;
7
+ /**
8
+ * End point for zone.
9
+ */
10
+ to: number;
11
+ /**
12
+ * Color to fill the zone with. Provide this or gradient.
13
+ */
14
+ color?: string;
15
+ /**
16
+ * Gradient to fill the zone with. The `offset` for each stop defines a fraction of the travel along the path - eg `0` means the start of the path, `100` means the end.
17
+ */
18
+ gradient?: {
19
+ stops: Array<{
20
+ offset: number;
21
+ color: string;
22
+ }>;
23
+ };
24
+ }
25
+ /**
26
+ * Options for a Gauge chart.
27
+ * @group Charts
28
+ * @category Gauge Chart
29
+ */
30
+ export interface GaugeChartOptions extends BaseChartOptions {
31
+ /**
32
+ * The start angle of the gauge in degrees. 0 is the top.
33
+ * Typically -135 for a speedometer style.
34
+ */
35
+ startAngle?: number;
36
+ /**
37
+ * The end angle of the gauge in degrees.
38
+ * Typically 135 for a speedometer style.
39
+ */
40
+ endAngle?: number;
41
+ /**
42
+ * Inner radius ratio (0 to 1).
43
+ * A higher value (e.g. 0.8) creates a thin arc. 0 creates a semi-circle.
44
+ */
45
+ innerRadius?: number;
46
+ /**
47
+ * Outer radius ratio (0 to 1). Defaults to 1.
48
+ */
49
+ outerRadius?: number;
50
+ /**
51
+ * The minimum value on the scale. Defaults to 0.
52
+ */
53
+ min?: number;
54
+ /**
55
+ * The maximum value on the scale. Defaults to 100.
56
+ */
57
+ max?: number;
58
+ /**
59
+ * Optional segments to color the background arc
60
+ */
61
+ zones?: Array<GaugeChartZone>;
62
+ /**
63
+ * Whether to show a needle/pointer. Defaults to true. When false, the zones are painted up to the value.
64
+ */
65
+ showNeedle?: boolean;
66
+ /**
67
+ * Current value. If not provided, the gauge will use the computed `min` (which you may have provided, but if not, will be set to 0)
68
+ */
69
+ value?: number;
70
+ /**
71
+ * Configuration for tick marks.
72
+ */
73
+ ticks?: {
74
+ /**
75
+ * Explicit values at which to draw tick marks. If provided, `interval` is ignored.
76
+ */
77
+ values?: Array<number>;
78
+ /**
79
+ * Interval between ticks (e.g. 10).
80
+ */
81
+ interval?: number;
82
+ /**
83
+ * Color to draw the ticks in
84
+ */
85
+ color?: string;
86
+ /**
87
+ * Stroke width for the ticks. Defaults to 1.
88
+ */
89
+ width?: number;
90
+ };
91
+ /**
92
+ * Configuration for the scale labels.
93
+ */
94
+ labels?: {
95
+ /**
96
+ * Explicit values to label. If provided, `interval` is ignored.
97
+ */
98
+ values?: Array<number>;
99
+ /**
100
+ * Interval between labels (e.g. 20).
101
+ */
102
+ interval?: number;
103
+ /**
104
+ * Distance beyond the outer radius in pixels.
105
+ */
106
+ distance?: number;
107
+ };
108
+ }
@@ -0,0 +1,91 @@
1
+ import { BaseChart } from "../base-chart";
2
+ import { BrowserElement } from "../../browser-ui";
3
+ import { GaugeChartOptions } from "./definitions";
4
+ import { ChartSVGElement } from "../util";
5
+ import { ChartDimensions } from "../definitions";
6
+ /**
7
+ * Assigned to the container for a gauge chart
8
+ * @cssClass
9
+ * @context gauge-chart
10
+ * @group Charts
11
+ * @category CSS Classes
12
+ */
13
+ export declare const CLASS_GAUGE_CHART = "vjs-gauge-chart";
14
+ /**
15
+ * Assigned to the track element in a GaugeChart.
16
+ * @cssClass
17
+ * @context gauge-chart
18
+ * @group Charts
19
+ * @category CSS Classes
20
+ */
21
+ export declare const CLASS_GAUGE_CHART_TRACK = "vjs-gauge-track";
22
+ /**
23
+ * Assigned to each zone element in a GaugeChart.
24
+ * @cssClass
25
+ * @context gauge-chart
26
+ * @group Charts
27
+ * @category CSS Classes
28
+ */
29
+ export declare const CLASS_GAUGE_CHART_ZONE = "vjs-gauge-zone";
30
+ /**
31
+ * Assigned to each tick element in a GaugeChart.
32
+ * @cssClass
33
+ * @context gauge-chart
34
+ * @group Charts
35
+ * @category CSS Classes
36
+ */
37
+ export declare const CLASS_GAUGE_CHART_TICK = "vjs-gauge-tick";
38
+ /**
39
+ * Assigned to each label element in a GaugeChart.
40
+ * @cssClass
41
+ * @context gauge-chart
42
+ * @group Charts
43
+ * @category CSS Classes
44
+ */
45
+ export declare const CLASS_GAUGE_CHART_LABEL = "vjs-gauge-label";
46
+ /**
47
+ * Assigned to the needle element in a GaugeChart.
48
+ * @cssClass
49
+ * @context gauge-chart
50
+ * @group Charts
51
+ * @category CSS Classes
52
+ */
53
+ export declare const CLASS_GAUGE_CHART_NEEDLE = "vjs-gauge-needle";
54
+ /**
55
+ * Assigned to the needle pivot element in a GaugeChart.
56
+ * @cssClass
57
+ * @context gauge-chart
58
+ * @group Charts
59
+ * @category CSS Classes
60
+ */
61
+ export declare const CLASS_GAUGE_CHART_NEEDLE_PIVOT = "vjs-gauge-needle-pivot";
62
+ /**
63
+ * Gauge Chart component.
64
+ *
65
+ * A gauge chart (or speedometer chart) displays a single value within a defined range, typically as a needle pointing to a value on a circular arc. It can be configured with multiple zones (e.g., green for good, red for bad) to provide additional context.
66
+ *
67
+ * @group Charts
68
+ * @category Gauge Chart
69
+ */
70
+ export declare class GaugeChart extends BaseChart {
71
+ options: GaugeChartOptions;
72
+ _startAngle: number;
73
+ _endAngle: number;
74
+ _innerRadius: number;
75
+ _min: number;
76
+ _max: number;
77
+ _value: number;
78
+ constructor(container: BrowserElement, options: GaugeChartOptions);
79
+ /**
80
+ * Gets the gauge's current value.
81
+ */
82
+ getValue(): number;
83
+ /**
84
+ * Sets the gauge's current value and redraws the gauge.
85
+ * @param value
86
+ */
87
+ setValue(value: number): void;
88
+ hasData(): boolean;
89
+ $drawDecoration(svgRoot: ChartSVGElement, width: number, height: number): ChartDimensions;
90
+ protected $drawChart(svgRoot: ChartSVGElement, width: number, height: number, backgroundElement: ChartSVGElement): void;
91
+ }
@@ -0,0 +1,2 @@
1
+ export * from './definitions';
2
+ export * from './gauge-chart';
@@ -0,0 +1,25 @@
1
+ export * from './base-chart';
2
+ export * from './series-based-chart';
3
+ export * from "./base-xy-chart";
4
+ export * from './category-value-chart';
5
+ export * from './dual-value-chart';
6
+ export * from './series';
7
+ export * from './chart-exporter';
8
+ export * from './constants';
9
+ export * from './css-classes';
10
+ export * from './datasource';
11
+ export * from './definitions';
12
+ export * from './domain_scale_utilities';
13
+ export * from './legend';
14
+ export * from './markers';
15
+ export * from './plot';
16
+ export * from './tooltip';
17
+ export * from './util';
18
+ export * from './area';
19
+ export * from './bar-and-column';
20
+ export * from './bubble';
21
+ export * from './gauge';
22
+ export * from './line';
23
+ export * from './pie';
24
+ export * from './sankey';
25
+ export * from './scatter';
@@ -0,0 +1,120 @@
1
+ import { FontSpec } from "../browser-ui";
2
+ /**
3
+ * Constant identifying vertically stacked legend
4
+ * @group Charts
5
+ * @category Legend
6
+ */
7
+ export declare const LEGEND_ORIENTATION_VERTICAL = "vertical";
8
+ /**
9
+ * Constant identifying horizontally aligned legend
10
+ * @group Charts
11
+ * @category Legend
12
+ */
13
+ export declare const LEGEND_ORIENTATION_HORIZONTAL = "horizontal";
14
+ /**
15
+ * Constant identifying the default number of pixels to pad a legend, when the legend is not floating.
16
+ * @group Charts
17
+ * @category Legend
18
+ */
19
+ export declare const DEFAULT_LEGEND_PADDING = 10;
20
+ /**
21
+ * Constant identifying a left aligned legend
22
+ * @group Charts
23
+ * @category Legend
24
+ */
25
+ export declare const LEGEND_ALIGN_LEFT = "left";
26
+ /**
27
+ * Constant identifying a center aligned legend
28
+ * @group Charts
29
+ * @category Legend
30
+ */
31
+ export declare const LEGEND_ALIGN_CENTER = "center";
32
+ /**
33
+ * Constant identifying a right aligned legend
34
+ * @group Charts
35
+ * @category Legend
36
+ */
37
+ export declare const LEGEND_ALIGN_RIGHT = "right";
38
+ /**
39
+ * Constant identifying a top vertical aligned legend
40
+ * @group Charts
41
+ * @category Legend
42
+ */
43
+ export declare const LEGEND_VERTICAL_ALIGN_TOP = "top";
44
+ /**
45
+ * Constant identifying a middle vertical aligned legend
46
+ * @group Charts
47
+ * @category Legend
48
+ */
49
+ export declare const LEGEND_VERTICAL_ALIGN_MIDDLE = "middle";
50
+ /**
51
+ * Constant identifying a bottom vertical aligned legend
52
+ * @group Charts
53
+ * @category Legend
54
+ */
55
+ export declare const LEGEND_VERTICAL_ALIGN_BOTTOM = "bottom";
56
+ /**
57
+ * Options for a chart legend.
58
+ */
59
+ export interface LegendSpec {
60
+ /**
61
+ * Defaults to false. If true, the legend will not be shown.
62
+ */
63
+ hide?: boolean;
64
+ /**
65
+ * Defaults to true: when there is a single series in the chart, the legend is not drawn. Set this to false to override that behaviour.
66
+ */
67
+ hideForSingleSeries?: boolean;
68
+ /**
69
+ * Defaults to vertical. The orientation in which to align the items.
70
+ */
71
+ orientation?: typeof LEGEND_ORIENTATION_VERTICAL | typeof LEGEND_ORIENTATION_HORIZONTAL;
72
+ /**
73
+ * Defaults to false, meaning the legend is positioned inline with the chart. When this is set to true, the legend can be floated anywhere in the chart (for which you need to provide values for `x` and `y`).
74
+ */
75
+ floating?: boolean;
76
+ /**
77
+ * How to align the content of the legend. Defaults to center align.
78
+ */
79
+ align?: typeof LEGEND_ALIGN_RIGHT | typeof LEGEND_ALIGN_LEFT | typeof LEGEND_ALIGN_CENTER;
80
+ /**
81
+ * Where to position the legend vertically (when floating is false). Defaults to bottom; you can choose to place the legend at the top (underneath the title), or to the left/right of the chart area.
82
+ */
83
+ valign?: typeof LEGEND_VERTICAL_ALIGN_BOTTOM | typeof LEGEND_VERTICAL_ALIGN_MIDDLE | typeof LEGEND_VERTICAL_ALIGN_TOP;
84
+ /**
85
+ * When floating is true, the X position of the legend.
86
+ */
87
+ x?: number;
88
+ /**
89
+ * When floating is true, the Y position of the legend.
90
+ */
91
+ y?: number;
92
+ /**
93
+ * When not floating, padding to draw around the legend.
94
+ */
95
+ padding?: number;
96
+ /**
97
+ * Defaults to true - when user hovers over a series in the legend, the series is highlighted in the chart
98
+ */
99
+ hover?: boolean;
100
+ /**
101
+ * Optional font specification for the legend.
102
+ */
103
+ font?: FontSpec;
104
+ }
105
+ /**
106
+ * A legend for a chart. Users of the library do not create these directly.
107
+ * @internal
108
+ */
109
+ export declare class ChartLegend {
110
+ floating: boolean;
111
+ visible: boolean;
112
+ hover: boolean;
113
+ padding: number;
114
+ orientation: typeof LEGEND_ORIENTATION_HORIZONTAL | typeof LEGEND_ORIENTATION_VERTICAL;
115
+ align: typeof LEGEND_ALIGN_LEFT | typeof LEGEND_ALIGN_CENTER | typeof LEGEND_ALIGN_RIGHT;
116
+ valign: typeof LEGEND_VERTICAL_ALIGN_TOP | typeof LEGEND_VERTICAL_ALIGN_MIDDLE | typeof LEGEND_VERTICAL_ALIGN_BOTTOM;
117
+ font: FontSpec;
118
+ $hideForSingleSeries: boolean;
119
+ constructor(options: LegendSpec);
120
+ }
@@ -0,0 +1 @@
1
+ export * from './line-chart';
@@ -0,0 +1,79 @@
1
+ import { ChartDimensions } from "../definitions";
2
+ import { ChartSVGElement } from "../util";
3
+ import { CategoryVsAxisPlot, XYPlotOptions } from "../plot";
4
+ import { BrowserElement } from "../../browser-ui";
5
+ import { StackablePlotOptions } from "../bar-and-column";
6
+ import { DomainExtentMap } from "../domain_scale_utilities";
7
+ import { CategoryValueChart, CategoryValueChartOptions } from "../category-value-chart";
8
+ import { RealisedSeries } from "../series";
9
+ /**
10
+ * Options for a line chart
11
+ * @group Charts
12
+ * @category Line Chart
13
+ */
14
+ export interface LineChartOptions extends Omit<CategoryValueChartOptions, "plots"> {
15
+ /**
16
+ * Options for the line plot.
17
+ */
18
+ plotOptions?: LinePlotOptions;
19
+ }
20
+ /**
21
+ * Wrapper around an XYChart that sets a {@link LinePlot} and inverts the XYChart so that the X axis is the value axis. Set `inverted:true` on your LineChart options if you wish to use the Y axis as the value axis.
22
+ * @group Charts
23
+ * @category Line Chart
24
+ */
25
+ export declare class LineChart extends CategoryValueChart {
26
+ options: LineChartOptions;
27
+ constructor(container: BrowserElement, options: LineChartOptions);
28
+ }
29
+ /**
30
+ * Options for a line chart plot
31
+ * @group Charts
32
+ * @category Line Chart
33
+ */
34
+ export interface LinePlotOptions extends XYPlotOptions, StackablePlotOptions {
35
+ /**
36
+ * If true, draw the line as a series of bezier splines, which makes for a smooth line. Defaults to false.
37
+ */
38
+ spline?: boolean;
39
+ }
40
+ /**
41
+ * Plots a line
42
+ * @group Charts
43
+ * @category Line Chart
44
+ */
45
+ export declare class LinePlot extends CategoryVsAxisPlot {
46
+ chart: CategoryValueChart;
47
+ static type: string;
48
+ _stacked: boolean;
49
+ _spline: boolean;
50
+ constructor(chart: CategoryValueChart, options: LinePlotOptions);
51
+ /**
52
+ * Provide domain extents for this plot so XYChart can build scales by domain.
53
+ * For a line plot, the "value" dimension lives on:
54
+ * - domain "y" when inverted
55
+ * - domain "x" when not inverted
56
+ *
57
+ * If stacked=true (supported by StackablePlotOptions), also provide a stacked domain.
58
+ *
59
+ * @internal
60
+ */
61
+ getDomainExtents(): DomainExtentMap;
62
+ private $getValueLocation;
63
+ /**
64
+ * Draws out a path between the given data points as a bezier spline
65
+ * @param dataPoints
66
+ * @param startIndex
67
+ * @private
68
+ */
69
+ private _drawSpline;
70
+ /**
71
+ * Draws out a path between the given data points as a series of line segments.
72
+ * @param dataPoints
73
+ * @param startIndex
74
+ * @private
75
+ */
76
+ private _drawSegments;
77
+ $draw(svgRoot: ChartSVGElement, dim: ChartDimensions, minPlottableValue: number, maxPlottableValue: number): void;
78
+ _createMarker(series: RealisedSeries, cx: number, cy: number, size: number, fill: string, stroke: string, category: number, seriesIndex: number, parent: ChartSVGElement): ChartSVGElement;
79
+ }
@@ -0,0 +1,13 @@
1
+ import { HasMarkerSeries } from "./series";
2
+ import { ChartSVGElement } from "./util";
3
+ import { ObjectData } from "../core";
4
+ /**
5
+ * gets a marker for the given series.
6
+ * @internal
7
+ * @param s
8
+ * @param cx
9
+ * @param cy
10
+ * @param size
11
+ */
12
+ export declare function $getMarker(s: HasMarkerSeries, cx: number, cy: number, size: number, atts?: Record<string, any>, clazz?: string): ChartSVGElement;
13
+ export declare function $createMarker(markerTemplate: string, data?: ObjectData, atts?: Record<string, any>, clazz?: string): ChartSVGElement;
@@ -0,0 +1 @@
1
+ export * from './pie-chart';
@@ -0,0 +1,146 @@
1
+ import { SeriesBasedChart, SeriesBasedChartOptions } from "../series-based-chart";
2
+ import { ObjectData } from "../../core";
3
+ import { ChartSVGElement } from "../util";
4
+ import { BrowserElement, FontSpec } from "../../browser-ui";
5
+ import { ChartDimensions } from "../definitions";
6
+ import { RealisedSeries, RecordBasedSeriesOptions } from "../series";
7
+ import { CategoryValueTooltip, TooltipOptions } from "../tooltip";
8
+ import { DataLabelsOptions } from "../bar-and-column";
9
+ /**
10
+ * CSS class set on a pie chart.
11
+ * @group Charts
12
+ * @category CSS Classes
13
+ * @cssClass
14
+ * @context charts, pie-chart
15
+ */
16
+ export declare const CLASS_PIE_CHART = "vjs-pie-chart";
17
+ /**
18
+ * CSS class set on a slice in a pie chart.
19
+ * @group Charts
20
+ * @category CSS Classes
21
+ * @cssClass
22
+ * @context charts, pie-chart
23
+ */
24
+ export declare const CLASS_PIE_SLICE = "vjs-pie-slice";
25
+ /**
26
+ * CSS class set on a selected slice in a pie chart.
27
+ * @group Charts
28
+ * @category CSS Classes
29
+ * @cssClass
30
+ * @context charts, pie-chart
31
+ */
32
+ export declare const CLASS_PIE_SLICE_SELECTED = "vjs-pie-slice-selected";
33
+ /**
34
+ * Options for a pie chart.
35
+ * @group Charts
36
+ * @category Pie Chart
37
+ */
38
+ export interface PieChartOptions extends SeriesBasedChartOptions<RecordBasedSeriesOptions> {
39
+ /**
40
+ * When you want a hole in the middle of the pie, this number specifies the ratio of that hole to the diameter of the pie. Valid values are, strictly speaking, in the range 0 - 1, but a value of 0 would result in no hole, and a value >= 1 would result in no chart.
41
+ */
42
+ innerRadius?: number;
43
+ /**
44
+ * The index of the category (slice) to be selected. This will result in the slice being shifted out from the center of the pie.
45
+ */
46
+ selectedCategory?: number;
47
+ /**
48
+ * The number of pixels to offset the selected slice by. Defaults to 10.
49
+ */
50
+ selectedSliceOffset?: number;
51
+ /**
52
+ * Defaults to false. When true, mouse clicks on a slice of the pie will select/deselect that slice.
53
+ */
54
+ interactive?: boolean;
55
+ /**
56
+ * Optional list of colors to use for the slices of pie. You will need to know the order of the data points in order to match these - if you do not, you will want to use a `colorGenerator` instead.
57
+ */
58
+ colors?: Array<string>;
59
+ /**
60
+ * Optional single color to use for all slices of pie.
61
+ */
62
+ color?: string;
63
+ /**
64
+ * Defines what to show in the data labels.
65
+ * 'label' (default) shows the category name.
66
+ * 'value' shows the raw number.
67
+ * 'percentage' shows the slice's percentage of the total.
68
+ * 'label-value' shows label and value.
69
+ * 'label-percentage' shows label and percentage.
70
+ */
71
+ showLabels?: "label" | "value" | "percentage" | "label-value" | "label-percentage";
72
+ /**
73
+ * Where to place labels. Defaults to "outside".
74
+ */
75
+ labelPosition?: "inside" | "outside";
76
+ /**
77
+ * Optional font specification for the data labels.
78
+ */
79
+ labelFont?: FontSpec;
80
+ /**
81
+ * Options for data labels. If true, the value for the slice is shown. If a string, it is used as a format string.
82
+ */
83
+ dataLabels?: DataLabelsOptions;
84
+ }
85
+ /**
86
+ * Defines the data point type used in a PieChart. The object that is passed to a color generator is of this type.
87
+ */
88
+ export type PieChartDataPoint = {
89
+ /**
90
+ * The proportion of the pie this data point makes up. A value between 0 and 1.
91
+ */
92
+ p: number;
93
+ /**
94
+ * Label for the data point
95
+ */
96
+ label: string;
97
+ /**
98
+ * Arc, in radians, covered by the slice
99
+ */
100
+ arc: number;
101
+ /**
102
+ * Angle at which the slice starts
103
+ */
104
+ arcStart: number;
105
+ /**
106
+ * The underlying data object for this point
107
+ */
108
+ data: ObjectData;
109
+ /**
110
+ * The value this point represents.
111
+ */
112
+ value: number;
113
+ };
114
+ /**
115
+ * A pie chart.
116
+ * @group Charts
117
+ * @category Pie Chart
118
+ */
119
+ export declare class PieChart extends SeriesBasedChart<RecordBasedSeriesOptions> {
120
+ options: PieChartOptions;
121
+ $dataPoints: Array<PieChartDataPoint>;
122
+ $tooltip: CategoryValueTooltip;
123
+ /**
124
+ * The index of the selected category, if any.
125
+ */
126
+ _selectedCategory: number;
127
+ _selectedSlice: ChartSVGElement;
128
+ _selectedSliceOffset: number;
129
+ _interactive: boolean;
130
+ _innerRadius: number;
131
+ $realisedSeries: Array<RealisedSeries>;
132
+ _tooltipOptions: TooltipOptions;
133
+ constructor(container: BrowserElement, options: PieChartOptions);
134
+ private _getCategoryAndSeries;
135
+ $recalc(): void;
136
+ hasData(): boolean;
137
+ protected $doReset(): void;
138
+ $doLoad(): void;
139
+ $drawDecoration(svgRoot: ChartSVGElement, width: number, height: number): ChartDimensions;
140
+ protected $drawChart(svgRoot: ChartSVGElement, width: number, height: number, backgroundElement: ChartSVGElement): void;
141
+ private _clearSelectedSlice;
142
+ private _setSelectedSlice;
143
+ private _toggleSelectedCategory;
144
+ private _applySelectionTransform;
145
+ private _removeSelectionTransform;
146
+ }