@mathstack/viz 0.0.1-beta.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 (300) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +0 -0
  3. package/fesm2022/mathstack-viz.mjs +11049 -0
  4. package/fesm2022/mathstack-viz.mjs.map +1 -0
  5. package/index.d.ts +5 -0
  6. package/lib/axes/base/config/xy-axis-builder.d.ts +38 -0
  7. package/lib/axes/base/config/xy-axis-config.d.ts +18 -0
  8. package/lib/axes/base/config/xy-axis-options.d.ts +10 -0
  9. package/lib/axes/base/xy-axis-base.d.ts +49 -0
  10. package/lib/axes/baseline/axis-baseline-builder.d.ts +31 -0
  11. package/lib/axes/baseline/axis-baseline-options.d.ts +7 -0
  12. package/lib/axes/baseline/axis-baseline.d.ts +9 -0
  13. package/lib/axes/grid/grid-builder.d.ts +29 -0
  14. package/lib/axes/grid/grid-config.d.ts +8 -0
  15. package/lib/axes/grid/grid-options.d.ts +6 -0
  16. package/lib/axes/index.d.ts +13 -0
  17. package/lib/axes/label/axis-label-builder.d.ts +63 -0
  18. package/lib/axes/label/axis-label-options.d.ts +11 -0
  19. package/lib/axes/label/axis-label.d.ts +13 -0
  20. package/lib/axes/ordinal/ordinal-axis-config.d.ts +38 -0
  21. package/lib/axes/ordinal/ordinal-axis.d.ts +43 -0
  22. package/lib/axes/quantitative/quantitative-axis-config.d.ts +38 -0
  23. package/lib/axes/quantitative/quantitative-axis.d.ts +51 -0
  24. package/lib/axes/ticks/tick-wrap/tick-wrap-builder.d.ts +64 -0
  25. package/lib/axes/ticks/tick-wrap/tick-wrap-options.d.ts +8 -0
  26. package/lib/axes/ticks/tick-wrap/tick-wrap.d.ts +13 -0
  27. package/lib/axes/ticks/ticks-builder.d.ts +172 -0
  28. package/lib/axes/ticks/ticks-options.d.ts +22 -0
  29. package/lib/axes/ticks/ticks.d.ts +24 -0
  30. package/lib/axes/x/x-axis-config.d.ts +42 -0
  31. package/lib/axes/x/x-axis.d.ts +47 -0
  32. package/lib/axes/x-ordinal/x-ordinal-axis-builder.d.ts +29 -0
  33. package/lib/axes/x-ordinal/x-ordinal-axis-config.d.ts +25 -0
  34. package/lib/axes/x-ordinal/x-ordinal-axis.component.d.ts +88 -0
  35. package/lib/axes/x-quantitative/x-quantitative-axis-builder.d.ts +29 -0
  36. package/lib/axes/x-quantitative/x-quantitative-axis-config.d.ts +25 -0
  37. package/lib/axes/x-quantitative/x-quantitative-axis.component.d.ts +53 -0
  38. package/lib/axes/xy-axis.module.d.ts +10 -0
  39. package/lib/axes/y/y-axis-config.d.ts +42 -0
  40. package/lib/axes/y/y-axis.d.ts +53 -0
  41. package/lib/axes/y-ordinal/y-ordinal-axis-builder.d.ts +29 -0
  42. package/lib/axes/y-ordinal/y-ordinal-axis-config.d.ts +25 -0
  43. package/lib/axes/y-ordinal/y-ordinal-axis.component.d.ts +89 -0
  44. package/lib/axes/y-quantitative-axis/y-quantitative-axis-builder.d.ts +29 -0
  45. package/lib/axes/y-quantitative-axis/y-quantitative-axis-config.d.ts +25 -0
  46. package/lib/axes/y-quantitative-axis/y-quantitative-axis.component.d.ts +54 -0
  47. package/lib/bars/bars.component.d.ts +91 -0
  48. package/lib/bars/bars.module.d.ts +8 -0
  49. package/lib/bars/config/backgrounds/bars-backgrounds-builder.d.ts +27 -0
  50. package/lib/bars/config/backgrounds/bars-backgrounds-options.d.ts +4 -0
  51. package/lib/bars/config/backgrounds/bars-backgrounds.d.ts +6 -0
  52. package/lib/bars/config/bars-builder.d.ts +132 -0
  53. package/lib/bars/config/bars-config.d.ts +27 -0
  54. package/lib/bars/config/bars-dimensions.d.ts +11 -0
  55. package/lib/bars/config/bars-options.d.ts +16 -0
  56. package/lib/bars/config/labels/bars-labels-builder.d.ts +48 -0
  57. package/lib/bars/config/labels/bars-labels-options.d.ts +9 -0
  58. package/lib/bars/config/labels/bars-labels.d.ts +11 -0
  59. package/lib/bars/events/actions/bars-click-actions.d.ts +8 -0
  60. package/lib/bars/events/actions/bars-hover-actions.d.ts +12 -0
  61. package/lib/bars/events/actions/bars-hover-move-actions.d.ts +8 -0
  62. package/lib/bars/events/bars-events.directive.d.ts +38 -0
  63. package/lib/bars/events/bars-interaction-output.d.ts +16 -0
  64. package/lib/bars/events/bars-tooltip-positioner.d.ts +13 -0
  65. package/lib/bars/index.d.ts +12 -0
  66. package/lib/charts/chart/chart.component.d.ts +73 -0
  67. package/lib/charts/chart/chart.d.ts +4 -0
  68. package/lib/charts/chart/chart.token.d.ts +3 -0
  69. package/lib/charts/chart/config/chart-builder.d.ts +94 -0
  70. package/lib/charts/chart/config/chart-config.d.ts +16 -0
  71. package/lib/charts/chart/config/chart-options.d.ts +10 -0
  72. package/lib/charts/chart.module.d.ts +9 -0
  73. package/lib/charts/index.d.ts +8 -0
  74. package/lib/charts/map-chart/map-chart.component.d.ts +40 -0
  75. package/lib/charts/xy-chart/xy-chart.component.d.ts +40 -0
  76. package/lib/core/common-behaviors/constructor.d.ts +2 -0
  77. package/lib/core/index.d.ts +5 -0
  78. package/lib/core/types/layout.d.ts +24 -0
  79. package/lib/core/types/scale.d.ts +5 -0
  80. package/lib/core/types/values.d.ts +7 -0
  81. package/lib/core/utilities/colors.d.ts +13 -0
  82. package/lib/core/utilities/fill-utilities.d.ts +7 -0
  83. package/lib/core/utilities/type-guards.d.ts +6 -0
  84. package/lib/core/utilities/value-format.d.ts +11 -0
  85. package/lib/core/utilities/values.d.ts +16 -0
  86. package/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-builder.d.ts +39 -0
  87. package/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position-options.d.ts +18 -0
  88. package/lib/data-dimensions/continuous-quantitative/date-chart-position/date-chart-position.d.ts +38 -0
  89. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/concrete-domain-padding.d.ts +5 -0
  90. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/domain-padding.d.ts +20 -0
  91. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over-options.d.ts +3 -0
  92. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/percent-over/percent-over.d.ts +9 -0
  93. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel-options.d.ts +3 -0
  94. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/pixel/pixel.d.ts +10 -0
  95. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval-options.d.ts +3 -0
  96. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-interval/round-to-interval.d.ts +8 -0
  97. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig-options.d.ts +3 -0
  98. package/lib/data-dimensions/continuous-quantitative/number-chart-position/domain-padding/round-to-sig-fig/round-to-sig-fig.d.ts +8 -0
  99. package/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-builder.d.ts +71 -0
  100. package/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position-options.d.ts +5 -0
  101. package/lib/data-dimensions/continuous-quantitative/number-chart-position/number-chart-position.d.ts +30 -0
  102. package/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension-options.d.ts +8 -0
  103. package/lib/data-dimensions/continuous-quantitative/number-dimension/number-dimension.d.ts +28 -0
  104. package/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-builder.d.ts +69 -0
  105. package/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value-options.d.ts +6 -0
  106. package/lib/data-dimensions/continuous-quantitative/number-visual-value/number-visual-value.d.ts +29 -0
  107. package/lib/data-dimensions/dimension-builder.d.ts +21 -0
  108. package/lib/data-dimensions/dimension-options.d.ts +11 -0
  109. package/lib/data-dimensions/dimension.d.ts +16 -0
  110. package/lib/data-dimensions/index.d.ts +9 -0
  111. package/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-builder.d.ts +53 -0
  112. package/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position-options.d.ts +8 -0
  113. package/lib/data-dimensions/ordinal/ordinal-chart-position/ordinal-chart-position.d.ts +44 -0
  114. package/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder.d.ts +45 -0
  115. package/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-options.d.ts +7 -0
  116. package/lib/data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value.d.ts +38 -0
  117. package/lib/data-export/data-export-config.d.ts +50 -0
  118. package/lib/data-export/data-export.d.ts +7 -0
  119. package/lib/data-export/index.d.ts +2 -0
  120. package/lib/dots/config/dots-builder.d.ts +110 -0
  121. package/lib/dots/config/dots-config.d.ts +26 -0
  122. package/lib/dots/config/dots-options.d.ts +17 -0
  123. package/lib/dots/dots.component.d.ts +55 -0
  124. package/lib/dots/dots.module.d.ts +8 -0
  125. package/lib/dots/events/actions/dots-hover-actions.d.ts +6 -0
  126. package/lib/dots/events/actions/dots-hover-move-actions.d.ts +10 -0
  127. package/lib/dots/events/dots-events.directive.d.ts +37 -0
  128. package/lib/dots/events/dots-interaction-output.d.ts +14 -0
  129. package/lib/dots/events/dots-tooltip-positioner.d.ts +13 -0
  130. package/lib/dots/index.d.ts +9 -0
  131. package/lib/events/events.directive.d.ts +43 -0
  132. package/lib/events/events.types.d.ts +34 -0
  133. package/lib/events/index.d.ts +4 -0
  134. package/lib/events/interaction-output.d.ts +33 -0
  135. package/lib/events/tooltip-positioner.d.ts +6 -0
  136. package/lib/fill-definitions/fill-definitions.d.ts +4 -0
  137. package/lib/fill-definitions/index.d.ts +1 -0
  138. package/lib/geographies/config/geographies-builder.d.ts +80 -0
  139. package/lib/geographies/config/geographies-config.d.ts +19 -0
  140. package/lib/geographies/config/geographies-options.d.ts +13 -0
  141. package/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-builder.d.ts +63 -0
  142. package/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer-options.d.ts +16 -0
  143. package/lib/geographies/config/layers/attribute-data-layer/attribute-data-layer.d.ts +30 -0
  144. package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-builder.d.ts +40 -0
  145. package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension-options.d.ts +8 -0
  146. package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data/attribute-data-dimension.d.ts +18 -0
  147. package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-enums.d.ts +10 -0
  148. package/lib/geographies/config/layers/attribute-data-layer/dimensions/attribute-data-bin-types.d.ts +8 -0
  149. package/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-builder.d.ts +10 -0
  150. package/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins-options.d.ts +4 -0
  151. package/lib/geographies/config/layers/attribute-data-layer/dimensions/calculated-bins/calculated-bins.d.ts +8 -0
  152. package/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-builder.d.ts +14 -0
  153. package/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-options.d.ts +4 -0
  154. package/lib/geographies/config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins.d.ts +20 -0
  155. package/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-builder.d.ts +29 -0
  156. package/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-options.d.ts +5 -0
  157. package/lib/geographies/config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins.d.ts +23 -0
  158. package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-builder.d.ts +16 -0
  159. package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-options.d.ts +4 -0
  160. package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins.d.ts +18 -0
  161. package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-builder.d.ts +21 -0
  162. package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-options.d.ts +5 -0
  163. package/lib/geographies/config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins.d.ts +24 -0
  164. package/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-builder.d.ts +26 -0
  165. package/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins-options.d.ts +5 -0
  166. package/lib/geographies/config/layers/attribute-data-layer/dimensions/no-bins/no-bins.d.ts +12 -0
  167. package/lib/geographies/config/layers/geographies-layer/geographies-layer-builder.d.ts +52 -0
  168. package/lib/geographies/config/layers/geographies-layer/geographies-layer-options.d.ts +16 -0
  169. package/lib/geographies/config/layers/geographies-layer/geographies-layer.d.ts +29 -0
  170. package/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-builder.d.ts +25 -0
  171. package/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer-options.d.ts +11 -0
  172. package/lib/geographies/config/layers/geojson-properties-layer/geojson-properties-layer.d.ts +16 -0
  173. package/lib/geographies/config/layers/labels/geographies-labels-builder.d.ts +97 -0
  174. package/lib/geographies/config/layers/labels/geographies-labels-options.d.ts +33 -0
  175. package/lib/geographies/config/layers/labels/geographies-labels.d.ts +20 -0
  176. package/lib/geographies/events/actions/geographies-click-actions.d.ts +7 -0
  177. package/lib/geographies/events/actions/geographies-hover-actions.d.ts +7 -0
  178. package/lib/geographies/events/actions/geographies-hover-move-actions.d.ts +7 -0
  179. package/lib/geographies/events/geographies-events.directive.d.ts +38 -0
  180. package/lib/geographies/events/geographies-interaction-output.d.ts +16 -0
  181. package/lib/geographies/events/geographies-tooltip-positioner.d.ts +13 -0
  182. package/lib/geographies/geographies-feature.d.ts +5 -0
  183. package/lib/geographies/geographies.component.d.ts +36 -0
  184. package/lib/geographies/geographies.module.d.ts +8 -0
  185. package/lib/geographies/index.d.ts +32 -0
  186. package/lib/grouped-bars/config/grouped-bars-builder.d.ts +29 -0
  187. package/lib/grouped-bars/config/grouped-bars-config.d.ts +10 -0
  188. package/lib/grouped-bars/config/grouped-bars-options.d.ts +5 -0
  189. package/lib/grouped-bars/events/grouped-bars-events.directive.d.ts +35 -0
  190. package/lib/grouped-bars/grouped-bars.component.d.ts +19 -0
  191. package/lib/grouped-bars/grouped-bars.module.d.ts +8 -0
  192. package/lib/grouped-bars/index.d.ts +7 -0
  193. package/lib/image-download/image-download-config.d.ts +31 -0
  194. package/lib/image-download/image-download-enums.d.ts +6 -0
  195. package/lib/image-download/image-download-options.d.ts +14 -0
  196. package/lib/image-download/image-download.service.d.ts +16 -0
  197. package/lib/image-download/index.d.ts +4 -0
  198. package/lib/lines/config/area-fills/area-fills-builder.d.ts +45 -0
  199. package/lib/lines/config/area-fills/area-fills-options.d.ts +7 -0
  200. package/lib/lines/config/area-fills/area-fills.d.ts +9 -0
  201. package/lib/lines/config/lines-builder.d.ts +101 -0
  202. package/lib/lines/config/lines-config.d.ts +37 -0
  203. package/lib/lines/config/lines-options.d.ts +18 -0
  204. package/lib/lines/config/stroke/lines-stroke-builder.d.ts +59 -0
  205. package/lib/lines/config/stroke/lines-stroke-options.d.ts +5 -0
  206. package/lib/lines/config/stroke/lines-stroke.d.ts +7 -0
  207. package/lib/lines/events/actions/lines-click-actions.d.ts +6 -0
  208. package/lib/lines/events/actions/lines-hover-move-actions.d.ts +41 -0
  209. package/lib/lines/events/actions/lines-marker-click-actions.d.ts +6 -0
  210. package/lib/lines/events/lines-events.directive.d.ts +49 -0
  211. package/lib/lines/events/lines-interaction-output.d.ts +16 -0
  212. package/lib/lines/events/lines-tooltip-positioner.d.ts +13 -0
  213. package/lib/lines/index.d.ts +11 -0
  214. package/lib/lines/lines.component.d.ts +53 -0
  215. package/lib/lines/lines.module.d.ts +8 -0
  216. package/lib/map-legend/continuous-legend/continuous-legend.component.d.ts +18 -0
  217. package/lib/map-legend/discontinuous-legend/discontinuous-legend.component.d.ts +12 -0
  218. package/lib/map-legend/index.d.ts +2 -0
  219. package/lib/map-legend/map-legend-base.d.ts +33 -0
  220. package/lib/map-legend/map-legend.component.d.ts +27 -0
  221. package/lib/map-legend/map-legend.module.d.ts +7 -0
  222. package/lib/marks/aux-marks/aux-marks.d.ts +10 -0
  223. package/lib/marks/aux-marks/config/aux-marks-builder.d.ts +11 -0
  224. package/lib/marks/aux-marks/config/aux-marks-config.d.ts +4 -0
  225. package/lib/marks/config/marks-config.d.ts +9 -0
  226. package/lib/marks/config/marks-options.d.ts +8 -0
  227. package/lib/marks/index.d.ts +15 -0
  228. package/lib/marks/map-marks/map-aux-marks/map-aux-marks.d.ts +17 -0
  229. package/lib/marks/map-marks/map-primary-marks/map-primary-marks.d.ts +20 -0
  230. package/lib/marks/marks.d.ts +31 -0
  231. package/lib/marks/primary-marks/config/primary-marks-builder.d.ts +32 -0
  232. package/lib/marks/primary-marks/config/primary-marks-config.d.ts +5 -0
  233. package/lib/marks/primary-marks/primary-marks.d.ts +23 -0
  234. package/lib/marks/xy-marks/xy-aux-marks/xy-aux-marks.d.ts +16 -0
  235. package/lib/marks/xy-marks/xy-marks-config.d.ts +4 -0
  236. package/lib/marks/xy-marks/xy-marks.d.ts +6 -0
  237. package/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks-config.d.ts +4 -0
  238. package/lib/marks/xy-marks/xy-primary-marks/xy-primary-marks.d.ts +20 -0
  239. package/lib/point-markers/index.d.ts +2 -0
  240. package/lib/point-markers/point-markers-builder.d.ts +47 -0
  241. package/lib/point-markers/point-markers-options.d.ts +6 -0
  242. package/lib/point-markers/point-markers.d.ts +8 -0
  243. package/lib/quantitative-rules/config/labels/quantitative-rules-labels-builder.d.ts +60 -0
  244. package/lib/quantitative-rules/config/labels/quantitative-rules-labels-options.d.ts +9 -0
  245. package/lib/quantitative-rules/config/labels/quantitative-rules-labels.d.ts +11 -0
  246. package/lib/quantitative-rules/config/quantitative-rules-builder.d.ts +52 -0
  247. package/lib/quantitative-rules/config/quantitative-rules-config.d.ts +12 -0
  248. package/lib/quantitative-rules/config/quantitative-rules-dimensions.d.ts +8 -0
  249. package/lib/quantitative-rules/config/quantitative-rules-options.d.ts +10 -0
  250. package/lib/quantitative-rules/index.d.ts +6 -0
  251. package/lib/quantitative-rules/quantitative-rules.component.d.ts +27 -0
  252. package/lib/quantitative-rules/quantitative-rules.module.d.ts +7 -0
  253. package/lib/stacked-area/config/stacked-area-builder.d.ts +85 -0
  254. package/lib/stacked-area/config/stacked-area-config.d.ts +36 -0
  255. package/lib/stacked-area/config/stacked-area-options.d.ts +21 -0
  256. package/lib/stacked-area/events/actions/stacked-area-hover-move-actions.d.ts +7 -0
  257. package/lib/stacked-area/events/stacked-area-events.directive.d.ts +38 -0
  258. package/lib/stacked-area/events/stacked-area-interaction-output.d.ts +28 -0
  259. package/lib/stacked-area/events/stacked-area-tooltip-positioner.d.ts +16 -0
  260. package/lib/stacked-area/index.d.ts +7 -0
  261. package/lib/stacked-area/stacked-area.component.d.ts +51 -0
  262. package/lib/stacked-area/stacked-area.module.d.ts +8 -0
  263. package/lib/stacked-bars/config/stacked-bars-builder.d.ts +26 -0
  264. package/lib/stacked-bars/config/stacked-bars-config.d.ts +16 -0
  265. package/lib/stacked-bars/config/stacked-bars-options.d.ts +7 -0
  266. package/lib/stacked-bars/events/actions/stacked-bars-click-actions.d.ts +8 -0
  267. package/lib/stacked-bars/events/actions/stacked-bars-hover-actions.d.ts +8 -0
  268. package/lib/stacked-bars/events/actions/stacked-bars-hover-move-actions.d.ts +8 -0
  269. package/lib/stacked-bars/events/stacked-bars-events.directive.d.ts +39 -0
  270. package/lib/stacked-bars/index.d.ts +10 -0
  271. package/lib/stacked-bars/stacked-bars.component.d.ts +26 -0
  272. package/lib/stacked-bars/stacked-bars.module.d.ts +8 -0
  273. package/lib/stroke/base/stroke-base-options.d.ts +7 -0
  274. package/lib/stroke/base/stroke-base.d.ts +8 -0
  275. package/lib/stroke/index.d.ts +2 -0
  276. package/lib/stroke/stroke-builder.d.ts +56 -0
  277. package/lib/stroke/stroke-options.d.ts +4 -0
  278. package/lib/stroke/stroke.d.ts +6 -0
  279. package/lib/svg-text-wrap/index.d.ts +2 -0
  280. package/lib/svg-text-wrap/svg-text-wrap-builder.d.ts +58 -0
  281. package/lib/svg-text-wrap/svg-text-wrap-options.d.ts +8 -0
  282. package/lib/svg-text-wrap/svg-text-wrap.d.ts +13 -0
  283. package/lib/tooltips/config/tooltip.d.ts +5 -0
  284. package/lib/tooltips/html-tooltip/config/html-tooltip-builder.d.ts +57 -0
  285. package/lib/tooltips/html-tooltip/config/html-tooltip-config.d.ts +15 -0
  286. package/lib/tooltips/html-tooltip/config/html-tooltip-options.d.ts +11 -0
  287. package/lib/tooltips/html-tooltip/config/position/tooltip-position-builder.d.ts +34 -0
  288. package/lib/tooltips/html-tooltip/config/position/tooltip-position.d.ts +23 -0
  289. package/lib/tooltips/html-tooltip/config/size/tooltip-size-builder.d.ts +16 -0
  290. package/lib/tooltips/html-tooltip/config/size/tooltip-size-options.d.ts +8 -0
  291. package/lib/tooltips/html-tooltip/config/size/tooltip-size.d.ts +10 -0
  292. package/lib/tooltips/html-tooltip/html-tooltip.directive.d.ts +43 -0
  293. package/lib/tooltips/html-tooltip/html-tooltip.module.d.ts +10 -0
  294. package/lib/tooltips/html-tooltip/tooltip-triangle/tooltip-triangle.component.d.ts +7 -0
  295. package/lib/tooltips/index.d.ts +11 -0
  296. package/lib/xy-background/index.d.ts +2 -0
  297. package/lib/xy-background/xy-background.component.d.ts +9 -0
  298. package/lib/xy-background/xy-background.module.d.ts +7 -0
  299. package/package.json +40 -0
  300. package/public-api.d.ts +23 -0
@@ -0,0 +1,52 @@
1
+ import { Geometry } from 'geojson';
2
+ import { StrokeBuilder } from '../../../../stroke/stroke-builder';
3
+ import { GeographiesFeature } from '../../../geographies-feature';
4
+ import { GeographiesLabelsBuilder } from '../labels/geographies-labels-builder';
5
+ export declare abstract class GeographiesLayerBuilder<TProperties, TGeometry extends Geometry> {
6
+ protected _class: (d: TProperties) => string;
7
+ protected _enableEventActions: boolean;
8
+ protected _geographies: Array<GeographiesFeature<TProperties, TGeometry>>;
9
+ protected labelsBuilder: GeographiesLabelsBuilder<TProperties, TGeometry>;
10
+ protected _mixBlendMode: string;
11
+ protected strokeBuilder: StrokeBuilder;
12
+ constructor();
13
+ /**
14
+ * OPTIONAL. Provides a class on the SVG element that correspends to a single datum. If a datum creates multiple SVG elements -- for example, a rect and a label, the class will be applied on the parent SVGGElement.
15
+ *
16
+ * IF the chart does not have SVG elements that correspond to a single datum, this class will be placed on the SVG element that represents a collection of data, for example, a area in a stacked area chart, or a line in a line chart. In this case the datum passed to the callback function will be the first datum in the collection.
17
+ *
18
+ * Note that if the resultant string has spaces in the name, multiple classes will be applied. For example, if the class is 'North Carolina', the element will have the classes 'North' and 'Carolina'.
19
+ */
20
+ class(value: null): this;
21
+ class(value: string): this;
22
+ class(value: (d: TProperties) => string): this;
23
+ /**
24
+ * OPTIONAL. Determines whether the layer can use viz event actions.
25
+ *
26
+ * If true, the event listener that corresponds to the provided directive will be placed on that layer's paths.
27
+ *
28
+ * @default true for Attribute Data layer
29
+ * @default false for Geojson Properties layers
30
+ */
31
+ enableEventActions(value: boolean): this;
32
+ /**
33
+ * REQUIRED. GeoJSON features that define the geographies to be drawn.
34
+ */
35
+ geographies(value: Array<GeographiesFeature<TProperties, TGeometry>>): this;
36
+ /**
37
+ * OPTIONAL. Creates a configuration object for labels that will be drawn on the geographies.
38
+ */
39
+ labels(labels: null): this;
40
+ labels(labels: (labels: GeographiesLabelsBuilder<TProperties, TGeometry>) => void): this;
41
+ /**
42
+ * Sets the mix-blend-mode of the marks.
43
+ *
44
+ * @default 'normal'
45
+ */
46
+ mixBlendMode(mixBlendMode: string): this;
47
+ /**
48
+ * OPTIONAL. Sets the appearance of the stroke for the geographies in the layer.
49
+ */
50
+ stroke(setProperties?: (stroke: StrokeBuilder) => void): this;
51
+ protected initStrokeBuilder(): void;
52
+ }
@@ -0,0 +1,16 @@
1
+ import { Geometry } from 'geojson';
2
+ import { Stroke } from '../../../../stroke/stroke';
3
+ import { GeographiesFeature } from '../../../geographies-feature';
4
+ import { GeographiesLabels } from '../labels/geographies-labels';
5
+ /**
6
+ * Base configuration object for geographies that can be used with or without attribute data.
7
+ *
8
+ * The generic parameters are the same as those in VicGeographiesConfig.
9
+ */
10
+ export interface GeographiesLayerOptions<TProperties, TGeometry extends Geometry> {
11
+ enableEventActions: boolean;
12
+ featureClass: (d: TProperties) => string;
13
+ labels: GeographiesLabels<TProperties, TGeometry>;
14
+ geographies: Array<GeographiesFeature<TProperties, TGeometry>>;
15
+ stroke: Stroke;
16
+ }
@@ -0,0 +1,29 @@
1
+ import * as CSSType from 'csstype';
2
+ import { Geometry } from 'geojson';
3
+ import { Stroke } from '../../../../stroke/stroke';
4
+ import { GeographiesFeature } from '../../../geographies-feature';
5
+ import { GeographiesLabels } from '../labels/geographies-labels';
6
+ import { GeographiesLabelsColorOptions, GeographiesLabelsFontWeightOptions } from '../labels/geographies-labels-options';
7
+ import { GeographiesLayerOptions } from './geographies-layer-options';
8
+ export interface GeographiesTooltipDatum<Datum> {
9
+ attributeValue?: string;
10
+ color: string;
11
+ datum?: Datum;
12
+ geography: string;
13
+ }
14
+ export declare abstract class GeographiesLayer<Datum, TProperties, TGeometry extends Geometry> implements GeographiesLayerOptions<TProperties, TGeometry> {
15
+ enableEventActions: boolean;
16
+ featureClass: (d: TProperties) => string;
17
+ featureIndexAccessor: (d: GeographiesFeature<TProperties, TGeometry>) => string;
18
+ geographies: Array<GeographiesFeature<TProperties, TGeometry>>;
19
+ id: number;
20
+ labels: GeographiesLabels<TProperties, TGeometry>;
21
+ stroke: Stroke;
22
+ setFeatureIndexAccessor(accessor: (d: GeographiesFeature<TProperties, TGeometry>) => string): void;
23
+ abstract getFill(feature: GeographiesFeature<TProperties, TGeometry>): string;
24
+ abstract getTooltipData(path: SVGPathElement): GeographiesTooltipDatum<Datum | undefined>;
25
+ getLabelColor(feature: GeographiesFeature<TProperties, TGeometry>): CSSType.Property.Fill;
26
+ getLabelFontWeight(feature: GeographiesFeature<TProperties, TGeometry>): CSSType.Property.FontWeight;
27
+ isContrastColorOptions(options: GeographiesLabelsColorOptions | CSSType.Property.Fill): options is GeographiesLabelsColorOptions;
28
+ isContrastFontWeightOptions(options: GeographiesLabelsFontWeightOptions | CSSType.Property.FontWeight): options is GeographiesLabelsFontWeightOptions;
29
+ }
@@ -0,0 +1,25 @@
1
+ import { Geometry, MultiPolygon, Polygon } from 'geojson';
2
+ import { OrdinalVisualValueDimensionBuilder } from '../../../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value-builder';
3
+ import { FillDefinition } from '../../../../fill-definitions/fill-definitions';
4
+ import { GeographiesFeature } from '../../../geographies-feature';
5
+ import { GeographiesLayerBuilder } from '../geographies-layer/geographies-layer-builder';
6
+ import { GeographiesGeojsonPropertiesLayer } from './geojson-properties-layer';
7
+ export declare class GeographiesGeojsonPropertiesLayerBuilder<TProperties, TGeometry extends Geometry = MultiPolygon | Polygon> extends GeographiesLayerBuilder<TProperties, TGeometry> {
8
+ private fillBuilder;
9
+ private _customFills;
10
+ constructor();
11
+ /**
12
+ * OPTIONAL: Set a fill color or function that yields a color for all geographies in the layer.
13
+ *
14
+ * If a string is provided, all geographies will be filled with that color.
15
+ *
16
+ * Otherwise, you can use this method to specify how each geography should be filled based on the properties of the geojson feature.
17
+ */
18
+ fill(fill: null): this;
19
+ fill(fill: string): this;
20
+ fill(fill: (fill: OrdinalVisualValueDimensionBuilder<GeographiesFeature<TProperties, TGeometry>, string, string>) => void): this;
21
+ customFills(customFills: FillDefinition<GeographiesFeature<TProperties, TGeometry>>[]): this;
22
+ private initFillBuilder;
23
+ _build(): GeographiesGeojsonPropertiesLayer<TProperties, TGeometry>;
24
+ validateBuilder(): void;
25
+ }
@@ -0,0 +1,11 @@
1
+ import { Geometry, MultiPolygon, Polygon } from 'geojson';
2
+ import { OrdinalVisualValueDimension } from '../../../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value';
3
+ import { FillDefinition } from '../../../../fill-definitions/fill-definitions';
4
+ import { GeographiesFeature } from '../../../geographies-feature';
5
+ import { GeographiesLayerOptions } from '../geographies-layer/geographies-layer-options';
6
+ export interface GeographiesGeojsonPropertiesLayerOptions<TProperties, TGeometry extends Geometry = MultiPolygon | Polygon> extends GeographiesLayerOptions<TProperties, TGeometry> {
7
+ customFills: FillDefinition<GeographiesFeature<TProperties, TGeometry>>[];
8
+ fill: OrdinalVisualValueDimension<GeographiesFeature<TProperties, TGeometry>, string, string>;
9
+ marksClass: string;
10
+ mixBlendMode: string;
11
+ }
@@ -0,0 +1,16 @@
1
+ import { Geometry, MultiPolygon, Polygon } from 'geojson';
2
+ import { OrdinalVisualValueDimension } from '../../../../data-dimensions/ordinal/ordinal-visual-value/ordinal-visual-value';
3
+ import { FillDefinition } from '../../../../fill-definitions/fill-definitions';
4
+ import { GeographiesFeature } from '../../../geographies-feature';
5
+ import { GeographiesLayer, GeographiesTooltipDatum } from '../geographies-layer/geographies-layer';
6
+ import { GeographiesGeojsonPropertiesLayerOptions } from './geojson-properties-layer-options';
7
+ export declare class GeographiesGeojsonPropertiesLayer<TProperties, TGeometry extends Geometry = MultiPolygon | Polygon> extends GeographiesLayer<string, TProperties, TGeometry> implements GeographiesGeojsonPropertiesLayerOptions<TProperties, TGeometry> {
8
+ readonly customFills: FillDefinition<GeographiesFeature<TProperties, TGeometry>>[];
9
+ readonly fill: OrdinalVisualValueDimension<GeographiesFeature<TProperties, TGeometry>, string, string>;
10
+ readonly marksClass: string;
11
+ readonly mixBlendMode: string;
12
+ constructor(options: GeographiesGeojsonPropertiesLayerOptions<TProperties, TGeometry>);
13
+ private initPropertiesFromGeographies;
14
+ getFill(feature: GeographiesFeature<TProperties, TGeometry>): string;
15
+ getTooltipData(path: SVGPathElement): GeographiesTooltipDatum<undefined>;
16
+ }
@@ -0,0 +1,97 @@
1
+ import type * as CSSType from 'csstype';
2
+ import { GeoPath, GeoProjection, ScaleLinear } from 'd3';
3
+ import { Geometry, MultiPolygon, Polygon } from 'geojson';
4
+ import { Position } from '../../../../core/types/layout';
5
+ import { GeographiesFeature } from '../../../geographies-feature';
6
+ import { GeographiesLabels } from './geographies-labels';
7
+ import { GeographiesLabelsColorOptions, GeographiesLabelsFontWeightOptions } from './geographies-labels-options';
8
+ export declare class GeographiesLabelsBuilder<TProperties, TGeometry extends Geometry = MultiPolygon | Polygon> {
9
+ private _alignmentBaseline;
10
+ private _color;
11
+ private _cursor;
12
+ private _display;
13
+ private _dominantBaseline;
14
+ private _fontWeight;
15
+ private _fontScale;
16
+ private _pointerEvents;
17
+ private _position;
18
+ private _textAnchor;
19
+ private _valueAccessor;
20
+ constructor();
21
+ /**
22
+ * OPTIONAL. The alignment of the baseline of the text relative to the text's font.
23
+ *
24
+ * @default 'middle'
25
+ */
26
+ alignmentBaseline(alignmentBaseline: CSSType.Property.AlignmentBaseline): this;
27
+ /**
28
+ * OPTIONAL. The color of the text. If a string value is provided, that value will be used for all geographies on the layer.
29
+ *
30
+ * If an object is provided, the color between default and contrastAlternative that has the highest contrast ratio with the geography's background color will be used.
31
+ *
32
+ * If a value for `pattern` is provided, that value will be used for geographies with a fill pattern. If it is not provided, the default option will be used for geographies with a fill pattern.
33
+ *
34
+ * @default '#000'
35
+ */
36
+ color(color: GeographiesLabelsColorOptions | CSSType.Property.Fill): this;
37
+ /**
38
+ * OPTIONAL. The cursor to display when hovering over the text
39
+ *
40
+ * @default 'default'
41
+ */
42
+ cursor(cursor: CSSType.Property.Cursor): this;
43
+ /**
44
+ * OPTIONAL, A function that determines whether to display the label for a given feature.
45
+ *
46
+ * @default () => true
47
+ */
48
+ display(display: boolean): this;
49
+ display(display: (featureIndex: string) => boolean): this;
50
+ /**
51
+ * OPTIONAL. The dominant baseline of the text.
52
+ *
53
+ * @default 'middle'
54
+ */
55
+ dominantBaseline(dominantBaseline: CSSType.Property.DominantBaseline): this;
56
+ /**
57
+ * OPTIONAL. The font weight of the text.
58
+ *
59
+ * If an object is provided, the font weight for each property on the object will be used when the corresponding color is used.
60
+ *
61
+ * @default 400
62
+ */
63
+ fontWeight(fontWeight: GeographiesLabelsFontWeightOptions | CSSType.Property.FontWeight): this;
64
+ /**
65
+ * The scale used to determine the font size of the label.
66
+ */
67
+ fontScale(fontScale: ScaleLinear<number, number, never>): this;
68
+ /**
69
+ * The pointer events of the text.
70
+ */
71
+ pointerEvents(pointerEvents: CSSType.Property.PointerEvents): this;
72
+ /**
73
+ * The position of the label relative to the feature
74
+ */
75
+ position(position: (d: GeographiesFeature<TProperties, TGeometry>, path: GeoPath, projection: GeoProjection) => Position): this;
76
+ /**
77
+ * The text anchor of the text.
78
+ */
79
+ textAnchor(textAnchor: CSSType.Property.TextAnchor): this;
80
+ /**
81
+ * A function that determines the value of the label for a given feature
82
+ */
83
+ valueAccessor(valueAccessor: (featureIndex: GeographiesFeature<TProperties, TGeometry>) => string): this;
84
+ _build(): GeographiesLabels<TProperties, TGeometry>;
85
+ /**
86
+ * A function to position something at the centroid of a feature.
87
+ */
88
+ positionAtCentroid<TProperties, TGeometry extends Geometry>(feature: GeographiesFeature<TProperties, TGeometry>, path: GeoPath): Position;
89
+ /**
90
+ * A function to position a label for Hawaii on a GeoAlbersUsa projection.
91
+ */
92
+ positionHawaiiOnGeoAlbersUsa<TProperties>(feature: GeographiesFeature<TProperties, MultiPolygon>, projection: GeoProjection): Position;
93
+ /**
94
+ * A function to position a label with Polylabel lib
95
+ */
96
+ positionWithPolylabel<TProperties, TGeometry extends MultiPolygon | Polygon = MultiPolygon | Polygon>(feature: GeographiesFeature<TProperties, TGeometry>, projection: GeoProjection): Position;
97
+ }
@@ -0,0 +1,33 @@
1
+ import type * as CSSType from 'csstype';
2
+ import { GeoPath, GeoProjection, ScaleLinear } from 'd3';
3
+ import { Geometry, MultiPolygon, Polygon } from 'geojson';
4
+ import { Position } from '../../../../core/types/layout';
5
+ import { GeographiesFeature } from '../../../geographies-feature';
6
+ /**
7
+ * Configuration object for displaying labels on map.
8
+ *
9
+ * The generic parameters are the same as those in VicGeographiesConfig.
10
+ */
11
+ export interface GeographiesLabelsOptions<TProperties, TGeometry extends Geometry = MultiPolygon | Polygon> {
12
+ alignmentBaseline: CSSType.Property.AlignmentBaseline;
13
+ color: GeographiesLabelsColorOptions | CSSType.Property.Fill;
14
+ cursor: CSSType.Property.Cursor;
15
+ display: (featureIndex: string) => boolean;
16
+ dominantBaseline: CSSType.Property.DominantBaseline;
17
+ fontScale: ScaleLinear<number, number, never>;
18
+ fontWeight: GeographiesLabelsFontWeightOptions | CSSType.Property.FontWeight;
19
+ pointerEvents: CSSType.Property.PointerEvents;
20
+ position: (d: GeographiesFeature<TProperties, TGeometry>, path: GeoPath, projection: GeoProjection) => Position;
21
+ textAnchor: CSSType.Property.TextAnchor;
22
+ valueAccessor: (feature: GeographiesFeature<TProperties, TGeometry>) => string;
23
+ }
24
+ export interface GeographiesLabelsColorOptions {
25
+ default: CSSType.Property.Fill;
26
+ contrastAlternative: CSSType.Property.Fill;
27
+ pattern?: CSSType.Property.Fill;
28
+ }
29
+ export interface GeographiesLabelsFontWeightOptions {
30
+ default: CSSType.Property.FontWeight;
31
+ contrastAlternative: CSSType.Property.FontWeight;
32
+ pattern?: CSSType.Property.FontWeight;
33
+ }
@@ -0,0 +1,20 @@
1
+ import type * as CSSType from 'csstype';
2
+ import { GeoPath, GeoProjection, ScaleLinear } from 'd3';
3
+ import { Geometry, MultiPolygon, Polygon } from 'geojson';
4
+ import { Position } from '../../../../core/types/layout';
5
+ import { GeographiesFeature } from '../../../geographies-feature';
6
+ import { GeographiesLabelsColorOptions, GeographiesLabelsFontWeightOptions, GeographiesLabelsOptions } from './geographies-labels-options';
7
+ export declare class GeographiesLabels<TProperties, TGeometry extends Geometry = MultiPolygon | Polygon> implements GeographiesLabelsOptions<TProperties, TGeometry> {
8
+ alignmentBaseline: CSSType.Property.AlignmentBaseline;
9
+ color: GeographiesLabelsColorOptions | CSSType.Property.Fill;
10
+ cursor: CSSType.Property.Cursor;
11
+ display: (featureIndex: string) => boolean;
12
+ dominantBaseline: CSSType.Property.DominantBaseline;
13
+ fontScale: ScaleLinear<number, number, never>;
14
+ fontWeight: GeographiesLabelsFontWeightOptions | CSSType.Property.FontWeight;
15
+ pointerEvents: CSSType.Property.PointerEvents;
16
+ position: (d: GeographiesFeature<TProperties, TGeometry>, path: GeoPath, projection?: GeoProjection) => Position;
17
+ textAnchor: CSSType.Property.TextAnchor;
18
+ valueAccessor: (feature: GeographiesFeature<TProperties, TGeometry>) => string;
19
+ constructor(options: GeographiesLabelsOptions<TProperties, TGeometry>);
20
+ }
@@ -0,0 +1,7 @@
1
+ import { EventAction } from '../../../events';
2
+ import { GeographiesHost } from '../geographies-events.directive';
3
+ import { GeographiesInteractionOutput } from '../geographies-interaction-output';
4
+ export declare class GeographiesClickEmitTooltipDataPauseOtherActions<Datum> implements EventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>> {
5
+ onStart(host: GeographiesHost<Datum>): void;
6
+ onEnd(host: GeographiesHost<Datum>): void;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { EventAction } from '../../../events';
2
+ import { GeographiesHost } from '../geographies-events.directive';
3
+ import { GeographiesInteractionOutput } from '../geographies-interaction-output';
4
+ export declare class GeographiesHoverEmitTooltipData<Datum> implements EventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>> {
5
+ onStart(host: GeographiesHost<Datum>): void;
6
+ onEnd(host: GeographiesHost<Datum>): void;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { HoverMoveAction } from '../../../events';
2
+ import { GeographiesHost } from '../geographies-events.directive';
3
+ import { GeographiesInteractionOutput } from '../geographies-interaction-output';
4
+ export declare class GeographiesHoverMoveEmitTooltipData<Datum> implements HoverMoveAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>> {
5
+ onStart(host: GeographiesHost<Datum>): void;
6
+ onEnd(host: GeographiesHost<Datum>): void;
7
+ }
@@ -0,0 +1,38 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Geometry, MultiPolygon, Polygon } from 'geojson';
3
+ import { Observable } from 'rxjs';
4
+ import { EventAction, EventsDirective, EventType, HoverMoveAction, InputEventAction, MarksHost, UnlistenFunction } from '../../events';
5
+ import { GeographiesAttributeDataLayer } from '../config/layers/attribute-data-layer/attribute-data-layer';
6
+ import { GeographiesGeojsonPropertiesLayer } from '../config/layers/geojson-properties-layer/geojson-properties-layer';
7
+ import { GeographiesComponent } from '../geographies.component';
8
+ import { GeographiesInteractionOutput } from './geographies-interaction-output';
9
+ import * as i0 from "@angular/core";
10
+ export type GeographiesHost<Datum, TGeographiesComponent extends GeographiesComponent<Datum> = GeographiesComponent<Datum>> = MarksHost<GeographiesInteractionOutput<Datum>, TGeographiesComponent>;
11
+ export declare class GeographiesEventsDirective<Datum, TProperties, TGeometry extends Geometry = MultiPolygon | Polygon, TComponent extends GeographiesComponent<Datum, TProperties, TGeometry> = GeographiesComponent<Datum, TProperties, TGeometry>> extends EventsDirective<GeographiesHost<Datum>> {
12
+ geographies: TComponent;
13
+ hoverActions: EventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>>[] | null;
14
+ hoverMoveActions: HoverMoveAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>>[] | null;
15
+ clickActions: EventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>>[] | null;
16
+ inputEventActions: InputEventAction<GeographiesHost<Datum>, GeographiesInteractionOutput<Datum>>[];
17
+ interactionOutput: EventEmitter<GeographiesInteractionOutput<Datum>>;
18
+ bounds: [[number, number], [number, number]];
19
+ layer: GeographiesAttributeDataLayer<Datum, TProperties, TGeometry> | GeographiesGeojsonPropertiesLayer<TProperties, TGeometry>;
20
+ path: SVGPathElement;
21
+ constructor(geographies: TComponent);
22
+ get marks(): GeographiesComponent<Datum, TProperties, TGeometry>;
23
+ getElements(): Observable<Element[]>;
24
+ setupListeners(elements: Element[]): UnlistenFunction[];
25
+ onEnter(_: PointerEvent, el: Element): void;
26
+ onMove(event: PointerEvent, _: Element): void;
27
+ onLeave(_: PointerEvent, __: Element): void;
28
+ onClick(event: PointerEvent, el: Element): void;
29
+ onClickRemove(): void;
30
+ onInputEvent(inputValue: unknown): void;
31
+ initFromElement(el: Element): void;
32
+ setPositionsFromElement(): void;
33
+ getInteractionOutput(type: EventType): GeographiesInteractionOutput<Datum>;
34
+ emitInteractionOutput(output: GeographiesInteractionOutput<Datum> | null): void;
35
+ private resetDirective;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<GeographiesEventsDirective<any, any, any, any>, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GeographiesEventsDirective<any, any, any, any>, "[vicGeographiesEvents]", never, { "hoverActions": { "alias": "hoverActions"; "required": false; }; "hoverMoveActions": { "alias": "hoverMoveActions"; "required": false; }; "clickActions": { "alias": "clickActions"; "required": false; }; "inputEventActions": { "alias": "inputEventActions"; "required": false; }; }, { "interactionOutput": "interactionOutput"; }, never, never, true, never>;
38
+ }
@@ -0,0 +1,16 @@
1
+ import { InteractionOutput } from '../../events/interaction-output';
2
+ import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
3
+ import { GeographiesTooltipDatum } from '../config/layers/geographies-layer/geographies-layer';
4
+ export interface GeographiesInteractionOutput<Datum> extends InteractionOutput, GeographiesTooltipDatum<Datum> {
5
+ /**
6
+ * A method that positions the tooltip with a user specified offset from the tooltip's anchor point.
7
+ *
8
+ * @param offset - Optional offset from the anchor's x and y position.
9
+ * If not provided, defaults to { x: 0, y: 0 }.
10
+ * If provided, the x value is added to the anchor's x position (moves tooltip right) and the y value is subtracted from the anchor's y position (moves tooltip up).
11
+ */
12
+ fromAnchor: (offset?: Partial<{
13
+ x: number;
14
+ y: number;
15
+ }>) => HtmlTooltipCdkManagedPosition;
16
+ }
@@ -0,0 +1,13 @@
1
+ import { TooltipPositioner } from '../../events/tooltip-positioner';
2
+ import { HtmlTooltipCdkManagedPosition } from '../../tooltips';
3
+ export declare class GeographiesTooltipPositioner extends TooltipPositioner {
4
+ private anchor;
5
+ constructor(anchor: {
6
+ x: number;
7
+ y: number;
8
+ });
9
+ fromAnchor(offset: {
10
+ x: number;
11
+ y: number;
12
+ }): HtmlTooltipCdkManagedPosition;
13
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * A utility type that represents a GeoJson feature with a properties object of type TProperties and a geometry object of type TGeometry.
3
+ */
4
+ import { Feature, GeoJsonProperties, Geometry, MultiPolygon, Polygon } from 'geojson';
5
+ export type GeographiesFeature<TProperties extends GeoJsonProperties = GeoJsonProperties, TGeometry extends Geometry = MultiPolygon | Polygon> = Feature<TGeometry, TProperties>;
@@ -0,0 +1,36 @@
1
+ import { ElementRef, InjectionToken } from '@angular/core';
2
+ import { GeoPath, GeoProjection } from 'd3';
3
+ import { Selection } from 'd3-selection';
4
+ import { GeoJsonProperties, Geometry, MultiPolygon, Polygon } from 'geojson';
5
+ import { BehaviorSubject, Observable } from 'rxjs';
6
+ import { MapPrimaryMarks } from '../marks/map-marks/map-primary-marks/map-primary-marks';
7
+ import { GeographiesConfig } from './config/geographies-config';
8
+ import { GeographiesLabels } from './config/layers/labels/geographies-labels';
9
+ import { GeographiesFeature } from './geographies-feature';
10
+ import * as i0 from "@angular/core";
11
+ export type LayersGroup = Selection<SVGGElement, unknown, null, undefined>;
12
+ export declare const GEOGRAPHIES: InjectionToken<GeographiesComponent<unknown, unknown, Polygon | MultiPolygon>>;
13
+ export type GeographiesSvgElement = 'layer' | 'g' | 'feature' | 'label';
14
+ export declare class GeographiesComponent<Datum, TProperties extends GeoJsonProperties = GeoJsonProperties, TGeometry extends Geometry = MultiPolygon | Polygon> extends MapPrimaryMarks<Datum, GeographiesConfig<Datum, TProperties, TGeometry>> {
15
+ projection: GeoProjection;
16
+ path: GeoPath;
17
+ pathsByLayer: BehaviorSubject<Selection<SVGPathElement, GeographiesFeature<TProperties, TGeometry>, SVGGElement, GeographiesFeature<TProperties, TGeometry>>[]>;
18
+ pathsByLayer$: Observable<Selection<SVGPathElement, GeographiesFeature<TProperties, TGeometry>, SVGGElement, GeographiesFeature<TProperties, TGeometry>>[]>;
19
+ elRef: ElementRef<SVGGElement>;
20
+ get class(): Record<GeographiesSvgElement, string>;
21
+ initFromConfig(): void;
22
+ setChartScalesFromRanges(): void;
23
+ setProjection(): void;
24
+ setPath(): void;
25
+ updateChartAttributeProperties(): void;
26
+ drawMarks(): void;
27
+ drawMap(transitionDuration: any): void;
28
+ drawLayers(t: any): void;
29
+ getLabelPosition(d: GeographiesFeature<TProperties, TGeometry>, labels: GeographiesLabels<TProperties, TGeometry>): {
30
+ x: number;
31
+ y: number;
32
+ };
33
+ updateGeographyElements(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<GeographiesComponent<any, any, any>, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<GeographiesComponent<any, any, any>, "[vic-primary-marks-geographies]", never, {}, {}, never, ["*"], true, never>;
36
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./geographies.component";
3
+ import * as i2 from "./events/geographies-events.directive";
4
+ export declare class VicGeographiesModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<VicGeographiesModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VicGeographiesModule, never, [typeof i1.GeographiesComponent, typeof i2.GeographiesEventsDirective], [typeof i1.GeographiesComponent, typeof i2.GeographiesEventsDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<VicGeographiesModule>;
8
+ }
@@ -0,0 +1,32 @@
1
+ export * from './config/geographies-builder';
2
+ export * from './config/geographies-config';
3
+ export * from './config/geographies-options';
4
+ export * from './config/layers/attribute-data-layer/attribute-data-layer';
5
+ export * from './config/layers/attribute-data-layer/attribute-data-layer-builder';
6
+ export * from './config/layers/attribute-data-layer/attribute-data-layer-options';
7
+ export * from './config/layers/attribute-data-layer/dimensions/attribute-data-bin-enums';
8
+ export * from './config/layers/attribute-data-layer/dimensions/attribute-data-bin-types';
9
+ export * from './config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins';
10
+ export * from './config/layers/attribute-data-layer/dimensions/categorical-bins/categorical-bins-options';
11
+ export * from './config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins';
12
+ export * from './config/layers/attribute-data-layer/dimensions/custom-breaks/custom-breaks-bins-options';
13
+ export * from './config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins';
14
+ export * from './config/layers/attribute-data-layer/dimensions/equal-frequencies-bins/equal-frequencies-bins-options';
15
+ export * from './config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins';
16
+ export * from './config/layers/attribute-data-layer/dimensions/equal-value-ranges-bins/equal-value-ranges-bins-options';
17
+ export * from './config/layers/attribute-data-layer/dimensions/no-bins/no-bins';
18
+ export * from './config/layers/attribute-data-layer/dimensions/no-bins/no-bins-options';
19
+ export * from './config/layers/geojson-properties-layer/geojson-properties-layer';
20
+ export * from './config/layers/geojson-properties-layer/geojson-properties-layer-builder';
21
+ export * from './config/layers/geojson-properties-layer/geojson-properties-layer-options';
22
+ export * from './config/layers/labels/geographies-labels';
23
+ export * from './config/layers/labels/geographies-labels-builder';
24
+ export * from './config/layers/labels/geographies-labels-options';
25
+ export * from './events/actions/geographies-click-actions';
26
+ export * from './events/actions/geographies-hover-actions';
27
+ export * from './events/actions/geographies-hover-move-actions';
28
+ export * from './events/geographies-events.directive';
29
+ export * from './events/geographies-interaction-output';
30
+ export * from './geographies-feature';
31
+ export * from './geographies.component';
32
+ export * from './geographies.module';
@@ -0,0 +1,29 @@
1
+ import { VicBarsConfigBuilder } from '../../bars/config/bars-builder';
2
+ import { DataValue } from '../../core/types/values';
3
+ import { GroupedBarsConfig } from './grouped-bars-config';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Builds a configuration object for a GroupedBarsComponent.
7
+ *
8
+ * Must be added to a providers array in or above the component that consumes it if it is injected via the constructor. (e.g. `providers: [VicGroupedBarsBuilder]` in the component decorator)
9
+ *
10
+ * The first generic parameter, Datum, is the type of the data that will be used to create the bars.
11
+ *
12
+ * The second generic parameter, TOrdinalValue, is the type of the ordinal data that will be used to position the bars.
13
+ */
14
+ export declare class VicGroupedBarsConfigBuilder<Datum, TOrdinalValue extends DataValue> extends VicBarsConfigBuilder<Datum, TOrdinalValue> {
15
+ private _intraGroupPadding;
16
+ constructor();
17
+ /**
18
+ * OPTIONAL. Set the padding between groups of bars. Passed to d3.scaleBand.padding.
19
+ *
20
+ * @default 0.05
21
+ */
22
+ intraGroupPadding(padding: number): this;
23
+ /**
24
+ * REQUIRED. Builds the configuration object for a GroupedBarsComponent.
25
+ */
26
+ getConfig(): GroupedBarsConfig<Datum, TOrdinalValue>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<VicGroupedBarsConfigBuilder<any, any>, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<VicGroupedBarsConfigBuilder<any, any>>;
29
+ }
@@ -0,0 +1,10 @@
1
+ import { BarsConfig } from '../../bars/config/bars-config';
2
+ import { BarsDimensions } from '../../bars/config/bars-dimensions';
3
+ import { DataValue } from '../../core/types/values';
4
+ import { GroupedBarsOptions } from './grouped-bars-options';
5
+ export declare class GroupedBarsConfig<Datum, TOrdinalValue extends DataValue> extends BarsConfig<Datum, TOrdinalValue> implements GroupedBarsOptions<Datum, TOrdinalValue> {
6
+ intraGroupPadding: number;
7
+ constructor(dimensions: BarsDimensions, options: GroupedBarsOptions<Datum, TOrdinalValue>);
8
+ setValueIndices(): void;
9
+ setBarsKeyFunction(): void;
10
+ }
@@ -0,0 +1,5 @@
1
+ import { BarsOptions } from '../../bars/config/bars-options';
2
+ import { DataValue } from '../../core/types/values';
3
+ export interface GroupedBarsOptions<Datum, TOrdinalValue extends DataValue> extends BarsOptions<Datum, TOrdinalValue> {
4
+ intraGroupPadding: number;
5
+ }
@@ -0,0 +1,35 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { BarDatum, BarsHost, BarsInteractionOutput } from '../../bars';
4
+ import { DataValue } from '../../core';
5
+ import { EventAction, EventsDirective, EventType, HoverMoveAction, InputEventAction, UnlistenFunction } from '../../events';
6
+ import { GroupedBarsComponent } from '../grouped-bars.component';
7
+ import * as i0 from "@angular/core";
8
+ export declare class GroupedBarsEventsDirective<Datum, TOrdinalValue extends DataValue, TGroupedBarsComponent extends GroupedBarsComponent<Datum, TOrdinalValue> = GroupedBarsComponent<Datum, TOrdinalValue>> extends EventsDirective<BarsHost<Datum, TOrdinalValue>> implements BarsHost<Datum, TOrdinalValue> {
9
+ bars: TGroupedBarsComponent;
10
+ hoverActions: EventAction<BarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[] | null;
11
+ hoverMoveActions: HoverMoveAction<BarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[] | null;
12
+ clickActions: EventAction<BarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[] | null;
13
+ inputEventActions: InputEventAction<BarsHost<Datum, TOrdinalValue>, BarsInteractionOutput<Datum>>[];
14
+ interactionOutput: EventEmitter<BarsInteractionOutput<Datum>>;
15
+ barDatum: BarDatum<TOrdinalValue>;
16
+ origin: SVGRectElement;
17
+ constructor(bars: TGroupedBarsComponent);
18
+ get marks(): GroupedBarsComponent<Datum, TOrdinalValue>;
19
+ getElements(): Observable<Element[]>;
20
+ getBarDatum(): BarDatum<TOrdinalValue> | null;
21
+ setupListeners(elements: Element[]): UnlistenFunction[];
22
+ onEnter(_: PointerEvent, el: Element): void;
23
+ onMove(event: PointerEvent, _: Element): void;
24
+ onLeave(_: PointerEvent, __: Element): void;
25
+ onClick(event: PointerEvent, el: Element): void;
26
+ onClickRemove(): void;
27
+ onInputEvent(inputValue: unknown): void;
28
+ initFromElement(el: Element): void;
29
+ setPositionsFromElement(): void;
30
+ getInteractionOutput(type: EventType): BarsInteractionOutput<Datum>;
31
+ emitInteractionOutput(output: BarsInteractionOutput<Datum> | null): void;
32
+ private resetDirective;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<GroupedBarsEventsDirective<any, any, any>, never>;
34
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GroupedBarsEventsDirective<any, any, any>, "[vicGroupedBarsEvents]", never, { "hoverActions": { "alias": "hoverActions"; "required": false; }; "hoverMoveActions": { "alias": "hoverMoveActions"; "required": false; }; "clickActions": { "alias": "clickActions"; "required": false; }; "inputEventActions": { "alias": "inputEventActions"; "required": false; }; }, { "interactionOutput": "interactionOutput"; }, never, never, true, never>;
35
+ }
@@ -0,0 +1,19 @@
1
+ import { BarDatum, BarsComponent } from '../bars/bars.component';
2
+ import { DataValue } from '../core/types/values';
3
+ import { GroupedBarsConfig } from './config/grouped-bars-config';
4
+ import * as i0 from "@angular/core";
5
+ export declare class GroupedBarsComponent<Datum, TOrdinalValue extends DataValue> extends BarsComponent<Datum, TOrdinalValue> {
6
+ config: GroupedBarsConfig<Datum, TOrdinalValue>;
7
+ groupScale: any;
8
+ drawMarks(): void;
9
+ setGroupScale(): void;
10
+ getBarColor(d: BarDatum<TOrdinalValue>): string;
11
+ getBarXOrdinal(d: BarDatum<TOrdinalValue>): number;
12
+ getBarY(d: BarDatum<TOrdinalValue>): number;
13
+ getBarYOrdinal(d: BarDatum<TOrdinalValue>): number;
14
+ getBarYQuantitative(d: BarDatum<TOrdinalValue>): number;
15
+ getBarWidthOrdinal(): number;
16
+ getBarHeightOrdinal(): number;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<GroupedBarsComponent<any, any>, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<GroupedBarsComponent<any, any>, "[vic-primary-grouped-bars]", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./grouped-bars.component";
3
+ import * as i2 from "./events/grouped-bars-events.directive";
4
+ export declare class VicGroupedBarsModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<VicGroupedBarsModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VicGroupedBarsModule, never, [typeof i1.GroupedBarsComponent, typeof i2.GroupedBarsEventsDirective], [typeof i1.GroupedBarsComponent, typeof i2.GroupedBarsEventsDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<VicGroupedBarsModule>;
8
+ }
@@ -0,0 +1,7 @@
1
+ export type { BarsHost as GroupedBarsHost, BarsInteractionOutput as GroupedBarsInteractionOutput, } from '../bars';
2
+ export * from './config/grouped-bars-builder';
3
+ export * from './config/grouped-bars-config';
4
+ export * from './config/grouped-bars-options';
5
+ export * from './events/grouped-bars-events.directive';
6
+ export * from './grouped-bars.component';
7
+ export * from './grouped-bars.module';