@spectrum-charts/vega-spec-builder-s2 0.9.0 → 0.11.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 (551) hide show
  1. package/dist/@types/index.d.ts +1 -2
  2. package/dist/@types/src/area/areaSpecBuilder.d.ts +7 -2
  3. package/dist/@types/src/area/areaUtils.d.ts +1 -2
  4. package/dist/@types/src/axis/axisLabelHoverUtils.d.ts +1 -2
  5. package/dist/@types/src/axis/axisLabelUtils.d.ts +1 -2
  6. package/dist/@types/src/axis/axisPositionUtils.d.ts +7 -0
  7. package/dist/@types/src/axis/axisReferenceLineUtils.d.ts +1 -2
  8. package/dist/@types/src/axis/axisSpecBuilder.d.ts +2 -3
  9. package/dist/@types/src/axis/axisTestUtils.d.ts +1 -2
  10. package/dist/@types/src/axis/axisThumbnailUtils.d.ts +2 -3
  11. package/dist/@types/src/axis/axisTrellisUtils.d.ts +1 -2
  12. package/dist/@types/src/axis/axisUtils.d.ts +2 -9
  13. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts +1 -2
  14. package/dist/@types/src/bar/barAnnotationUtils.d.ts +1 -2
  15. package/dist/@types/src/bar/barFocusRingUtils.d.ts +7 -2
  16. package/dist/@types/src/bar/barSpecBuilder.d.ts +2 -3
  17. package/dist/@types/src/bar/barTestUtils.d.ts +1 -2
  18. package/dist/@types/src/bar/barUtils.d.ts +42 -5
  19. package/dist/@types/src/bar/dodgedBarUtils.d.ts +1 -2
  20. package/dist/@types/src/bar/stackedBarUtils.d.ts +1 -2
  21. package/dist/@types/src/bar/trellisPropertyUtils.d.ts +11 -0
  22. package/dist/@types/src/bar/trellisedBarUtils.d.ts +1 -12
  23. package/dist/@types/src/barDirectLabel/barDirectLabelUtils.d.ts +37 -172
  24. package/dist/@types/src/bullet/bulletDataUtils.d.ts +1 -2
  25. package/dist/@types/src/bullet/bulletMarkUtils.d.ts +1 -2
  26. package/dist/@types/src/bullet/bulletSpecBuilder.d.ts +1 -2
  27. package/dist/@types/src/bullet/bulletTestUtils.d.ts +1 -2
  28. package/dist/@types/src/chartInspect/chartInspectUtils.d.ts +1 -2
  29. package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts +1 -2
  30. package/dist/@types/src/chartSpecBuilder.d.ts +2 -2
  31. package/dist/@types/src/combo/comboSpecBuilder.d.ts +5 -2
  32. package/dist/@types/src/data/dataUtils.d.ts +1 -2
  33. package/dist/@types/src/donut/donutLabelPositionUtils.d.ts +20 -0
  34. package/dist/@types/src/donut/donutLegendLayoutUtils.d.ts +10 -0
  35. package/dist/@types/src/donut/donutSpecBuilder.d.ts +7 -2
  36. package/dist/@types/src/donut/donutSummaryUtils.d.ts +16 -17
  37. package/dist/@types/src/donut/donutTestUtils.d.ts +1 -2
  38. package/dist/@types/src/donut/donutUtils.d.ts +93 -21
  39. package/dist/@types/src/donut/segmentLabelUtils.d.ts +4 -12
  40. package/dist/@types/src/expressionFunctions/expressionFunctions.d.ts +65 -7
  41. package/dist/@types/src/expressionFunctions/index.d.ts +1 -2
  42. package/dist/@types/src/index.d.ts +5 -6
  43. package/dist/@types/src/legend/legendFacetUtils.d.ts +1 -2
  44. package/dist/@types/src/legend/legendHighlightUtils.d.ts +1 -2
  45. package/dist/@types/src/legend/legendSpecBuilder.d.ts +2 -3
  46. package/dist/@types/src/legend/legendTestUtils.d.ts +1 -2
  47. package/dist/@types/src/legend/legendUtils.d.ts +8 -2
  48. package/dist/@types/src/line/directLabelUtils.d.ts +1 -2
  49. package/dist/@types/src/line/lineDataUtils.d.ts +12 -4
  50. package/dist/@types/src/line/lineEncodingUtils.d.ts +10 -0
  51. package/dist/@types/src/line/lineMarkUtils.d.ts +8 -11
  52. package/dist/@types/src/line/linePointAnnotation/index.d.ts +1 -2
  53. package/dist/@types/src/line/linePointAnnotation/linePointAnnotationUtils.d.ts +1 -2
  54. package/dist/@types/src/line/linePointUtils.d.ts +10 -4
  55. package/dist/@types/src/line/lineSpecBuilder.d.ts +7 -8
  56. package/dist/@types/src/line/lineTestUtils.d.ts +2 -3
  57. package/dist/@types/src/line/lineUtils.d.ts +4 -3
  58. package/dist/@types/src/lineDirectLabel/index.d.ts +1 -2
  59. package/dist/@types/src/lineDirectLabel/lineDirectLabelUtils.d.ts +1 -2
  60. package/dist/@types/src/lineForecast/index.d.ts +1 -2
  61. package/dist/@types/src/lineForecast/lineForecastUtils.d.ts +1 -2
  62. package/dist/@types/src/marks/animationTimerUtils.d.ts +10 -0
  63. package/dist/@types/src/marks/drawInAnimationUtils.d.ts +118 -61
  64. package/dist/@types/src/marks/hoverAnimationUtils.d.ts +19 -4
  65. package/dist/@types/src/marks/hoverMarkUtils.d.ts +2 -0
  66. package/dist/@types/src/marks/markUtils.d.ts +27 -8
  67. package/dist/@types/src/metricRange/metricRangeUtils.d.ts +1 -2
  68. package/dist/@types/src/scale/scaleSpecBuilder.d.ts +1 -2
  69. package/dist/@types/src/scale/scaleUtils.d.ts +0 -1
  70. package/dist/@types/src/scatter/scatterAnnotation/index.d.ts +1 -2
  71. package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.d.ts +1 -2
  72. package/dist/@types/src/scatter/scatterMarkUtils.d.ts +1 -2
  73. package/dist/@types/src/scatter/scatterSpecBuilder.d.ts +1 -2
  74. package/dist/@types/src/scatter/scatterTestUtils.d.ts +1 -2
  75. package/dist/@types/src/scatterPath/index.d.ts +1 -2
  76. package/dist/@types/src/scatterPath/scatterPathUtils.d.ts +1 -2
  77. package/dist/@types/src/signal/signalSpecBuilder.d.ts +0 -1
  78. package/dist/@types/src/specTestUtils.d.ts +0 -1
  79. package/dist/@types/src/specUtils.d.ts +9 -3
  80. package/dist/@types/src/textUtils.d.ts +1 -2
  81. package/dist/@types/src/title/titleSpecBuilder.d.ts +1 -2
  82. package/dist/@types/src/trendline/index.d.ts +4 -5
  83. package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts +2 -3
  84. package/dist/@types/src/trendline/trendlineDataUtils.d.ts +2 -3
  85. package/dist/@types/src/trendline/trendlineExtentUtils.d.ts +19 -0
  86. package/dist/@types/src/trendline/trendlineMarkUtils.d.ts +2 -21
  87. package/dist/@types/src/trendline/trendlineScaleUtils.d.ts +1 -2
  88. package/dist/@types/src/trendline/trendlineSignalUtils.d.ts +1 -2
  89. package/dist/@types/src/trendline/trendlineTestUtils.d.ts +1 -2
  90. package/dist/@types/src/trendline/trendlineUtils.d.ts +1 -2
  91. package/dist/@types/src/trendlineAnnotation/index.d.ts +1 -2
  92. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts +1 -2
  93. package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts +5 -6
  94. package/dist/@types/src/types/axis/axisSpec.types.d.ts +30 -81
  95. package/dist/@types/src/types/axis/axisThumbnailSpec.types.d.ts +2 -3
  96. package/dist/@types/src/types/axis/index.d.ts +4 -5
  97. package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts +6 -7
  98. package/dist/@types/src/types/chartSpec.types.d.ts +27 -29
  99. package/dist/@types/src/types/dialogs/chartActionBarSpec.types.d.ts +3 -0
  100. package/dist/@types/src/types/dialogs/chartInspectSpec.types.d.ts +4 -4
  101. package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts +12 -13
  102. package/dist/@types/src/types/dialogs/index.d.ts +3 -3
  103. package/dist/@types/src/types/index.d.ts +8 -9
  104. package/dist/@types/src/types/legendSpec.types.d.ts +20 -26
  105. package/dist/@types/src/types/marks/areaSpec.types.d.ts +15 -16
  106. package/dist/@types/src/types/marks/barSpec.types.d.ts +29 -33
  107. package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts +2 -3
  108. package/dist/@types/src/types/marks/bulletSpec.types.d.ts +21 -43
  109. package/dist/@types/src/types/marks/comboSpec.types.d.ts +4 -5
  110. package/dist/@types/src/types/marks/donutSpec.types.d.ts +21 -18
  111. package/dist/@types/src/types/marks/index.d.ts +10 -11
  112. package/dist/@types/src/types/marks/lineSpec.types.d.ts +25 -29
  113. package/dist/@types/src/types/marks/scatterSpec.types.d.ts +17 -49
  114. package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts +2 -3
  115. package/dist/@types/src/types/marks/supplemental/barDirectLabelSpec.types.d.ts +15 -9
  116. package/dist/@types/src/types/marks/supplemental/{dountSummarySpec.types.d.ts → donutSummarySpec.types.d.ts} +3 -4
  117. package/dist/@types/src/types/marks/supplemental/index.d.ts +12 -13
  118. package/dist/@types/src/types/marks/supplemental/lineDirectLabelSpec.types.d.ts +4 -5
  119. package/dist/@types/src/types/marks/supplemental/lineForecastSpec.types.d.ts +3 -4
  120. package/dist/@types/src/types/marks/supplemental/linePointAnnotationSpec.types.d.ts +2 -3
  121. package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts +7 -8
  122. package/dist/@types/src/types/marks/supplemental/scatterAnnotationSpec.types.d.ts +3 -4
  123. package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts +4 -5
  124. package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts +3 -4
  125. package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts +5 -6
  126. package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts +14 -29
  127. package/dist/@types/src/types/marks/vennSpec.types.d.ts +1 -2
  128. package/dist/@types/src/types/specUtil.types.d.ts +1 -2
  129. package/dist/@types/src/types/spectrumVizColor.types.d.ts +0 -1
  130. package/dist/@types/src/types/titleSpec.types.d.ts +5 -6
  131. package/dist/@types/src/vegaEmbedUtils.d.ts +11 -6
  132. package/dist/@types/src/venn/vennSpecBuilder.d.ts +1 -2
  133. package/dist/@types/src/venn/vennTestUtils.d.ts +1 -2
  134. package/dist/@types/src/venn/vennUtils.d.ts +1 -2
  135. package/dist/index.js +6 -3
  136. package/dist/index.js.map +1 -1
  137. package/dist/src/area/areaSpecBuilder.js +363 -0
  138. package/dist/src/area/areaSpecBuilder.js.map +1 -0
  139. package/dist/src/area/areaUtils.js +146 -0
  140. package/dist/src/area/areaUtils.js.map +1 -0
  141. package/dist/src/axis/axisLabelHoverUtils.js +40 -0
  142. package/dist/src/axis/axisLabelHoverUtils.js.map +1 -0
  143. package/dist/src/axis/axisLabelUtils.js +169 -0
  144. package/dist/src/axis/axisLabelUtils.js.map +1 -0
  145. package/dist/src/axis/axisPositionUtils.js +7 -0
  146. package/dist/src/axis/axisPositionUtils.js.map +1 -0
  147. package/dist/src/axis/axisReferenceLineUtils.js +203 -0
  148. package/dist/src/axis/axisReferenceLineUtils.js.map +1 -0
  149. package/dist/src/axis/axisSpecBuilder.js +523 -0
  150. package/dist/src/axis/axisSpecBuilder.js.map +1 -0
  151. package/dist/src/axis/axisThumbnailUtils.js +147 -0
  152. package/dist/src/axis/axisThumbnailUtils.js.map +1 -0
  153. package/dist/src/axis/axisTrellisUtils.js +76 -0
  154. package/dist/src/axis/axisTrellisUtils.js.map +1 -0
  155. package/dist/src/axis/axisUtils.js +374 -0
  156. package/dist/src/axis/axisUtils.js.map +1 -0
  157. package/dist/src/axisAnnotation/axisAnnotationUtils.js +399 -0
  158. package/dist/src/axisAnnotation/axisAnnotationUtils.js.map +1 -0
  159. package/dist/src/bar/barAnnotationUtils.js +194 -0
  160. package/dist/src/bar/barAnnotationUtils.js.map +1 -0
  161. package/dist/src/bar/barFocusRingUtils.js +206 -0
  162. package/dist/src/bar/barFocusRingUtils.js.map +1 -0
  163. package/dist/src/bar/barSpecBuilder.js +518 -0
  164. package/dist/src/bar/barSpecBuilder.js.map +1 -0
  165. package/dist/src/bar/barUtils.js +521 -0
  166. package/dist/src/bar/barUtils.js.map +1 -0
  167. package/dist/src/bar/dodgedBarUtils.js +78 -0
  168. package/dist/src/bar/dodgedBarUtils.js.map +1 -0
  169. package/dist/src/bar/stackedBarUtils.js +135 -0
  170. package/dist/src/bar/stackedBarUtils.js.map +1 -0
  171. package/dist/src/bar/trellisPropertyUtils.js +20 -0
  172. package/dist/src/bar/trellisPropertyUtils.js.map +1 -0
  173. package/dist/src/bar/trellisedBarUtils.js +74 -0
  174. package/dist/src/bar/trellisedBarUtils.js.map +1 -0
  175. package/dist/src/barDirectLabel/barDirectLabelUtils.js +317 -0
  176. package/dist/src/barDirectLabel/barDirectLabelUtils.js.map +1 -0
  177. package/dist/src/bullet/bulletDataUtils.js +63 -0
  178. package/dist/src/bullet/bulletDataUtils.js.map +1 -0
  179. package/dist/src/bullet/bulletMarkUtils.js +368 -0
  180. package/dist/src/bullet/bulletMarkUtils.js.map +1 -0
  181. package/dist/src/bullet/bulletSpecBuilder.js +211 -0
  182. package/dist/src/bullet/bulletSpecBuilder.js.map +1 -0
  183. package/dist/src/chartInspect/chartInspectUtils.js +165 -0
  184. package/dist/src/chartInspect/chartInspectUtils.js.map +1 -0
  185. package/dist/src/chartPopover/chartPopoverUtils.js +96 -0
  186. package/dist/src/chartPopover/chartPopoverUtils.js.map +1 -0
  187. package/dist/src/chartSpecBuilder.js +383 -0
  188. package/dist/src/chartSpecBuilder.js.map +1 -0
  189. package/dist/src/combo/comboSpecBuilder.js +115 -0
  190. package/dist/src/combo/comboSpecBuilder.js.map +1 -0
  191. package/dist/src/data/dataUtils.js +59 -0
  192. package/dist/src/data/dataUtils.js.map +1 -0
  193. package/dist/src/donut/donutLabelPositionUtils.js +56 -0
  194. package/dist/src/donut/donutLabelPositionUtils.js.map +1 -0
  195. package/dist/src/donut/donutLegendLayoutUtils.js +53 -0
  196. package/dist/src/donut/donutLegendLayoutUtils.js.map +1 -0
  197. package/dist/src/donut/donutSpecBuilder.js +260 -0
  198. package/dist/src/donut/donutSpecBuilder.js.map +1 -0
  199. package/dist/src/donut/donutSummaryUtils.js +325 -0
  200. package/dist/src/donut/donutSummaryUtils.js.map +1 -0
  201. package/dist/src/donut/donutUtils.js +297 -0
  202. package/dist/src/donut/donutUtils.js.map +1 -0
  203. package/dist/src/donut/segmentLabelUtils.js +840 -0
  204. package/dist/src/donut/segmentLabelUtils.js.map +1 -0
  205. package/dist/src/expressionFunctions/expressionFunctions.js +248 -0
  206. package/dist/src/expressionFunctions/expressionFunctions.js.map +1 -0
  207. package/dist/src/legend/legendFacetUtils.js +60 -0
  208. package/dist/src/legend/legendFacetUtils.js.map +1 -0
  209. package/dist/src/legend/legendHighlightUtils.js +218 -0
  210. package/dist/src/legend/legendHighlightUtils.js.map +1 -0
  211. package/dist/src/legend/legendSpecBuilder.js +288 -0
  212. package/dist/src/legend/legendSpecBuilder.js.map +1 -0
  213. package/dist/src/legend/legendUtils.js +303 -0
  214. package/dist/src/legend/legendUtils.js.map +1 -0
  215. package/dist/src/line/directLabelUtils.js +126 -0
  216. package/dist/src/line/directLabelUtils.js.map +1 -0
  217. package/dist/src/line/lineDataUtils.js +111 -0
  218. package/dist/src/line/lineDataUtils.js.map +1 -0
  219. package/dist/src/line/lineEncodingUtils.js +31 -0
  220. package/dist/src/line/lineEncodingUtils.js.map +1 -0
  221. package/dist/src/line/lineMarkUtils.js +453 -0
  222. package/dist/src/line/lineMarkUtils.js.map +1 -0
  223. package/dist/src/line/linePointAnnotation/linePointAnnotationUtils.js +118 -0
  224. package/dist/src/line/linePointAnnotation/linePointAnnotationUtils.js.map +1 -0
  225. package/dist/src/line/linePointUtils.js +150 -0
  226. package/dist/src/line/linePointUtils.js.map +1 -0
  227. package/dist/src/line/lineSpecBuilder.js +538 -0
  228. package/dist/src/line/lineSpecBuilder.js.map +1 -0
  229. package/dist/src/line/lineUtils.js +12 -0
  230. package/dist/src/line/lineUtils.js.map +1 -0
  231. package/dist/src/lineDirectLabel/lineDirectLabelUtils.js +198 -0
  232. package/dist/src/lineDirectLabel/lineDirectLabelUtils.js.map +1 -0
  233. package/dist/src/lineForecast/lineForecastUtils.js +130 -0
  234. package/dist/src/lineForecast/lineForecastUtils.js.map +1 -0
  235. package/dist/src/marks/animationTimerUtils.js +53 -0
  236. package/dist/src/marks/animationTimerUtils.js.map +1 -0
  237. package/dist/src/marks/drawInAnimationUtils.js +162 -0
  238. package/dist/src/marks/drawInAnimationUtils.js.map +1 -0
  239. package/dist/src/marks/hoverAnimationUtils.js +155 -0
  240. package/dist/src/marks/hoverAnimationUtils.js.map +1 -0
  241. package/dist/src/marks/hoverMarkUtils.js +8 -0
  242. package/dist/src/marks/hoverMarkUtils.js.map +1 -0
  243. package/dist/src/marks/markUtils.js +252 -0
  244. package/dist/src/marks/markUtils.js.map +1 -0
  245. package/dist/src/metricRange/metricRangeUtils.js +150 -0
  246. package/dist/src/metricRange/metricRangeUtils.js.map +1 -0
  247. package/dist/src/scale/scaleSpecBuilder.js +152 -0
  248. package/dist/src/scale/scaleSpecBuilder.js.map +1 -0
  249. package/dist/src/scale/scaleUtils.js +26 -0
  250. package/dist/src/scale/scaleUtils.js.map +1 -0
  251. package/dist/src/scatter/scatterAnnotation/scatterAnnotationUtils.js +50 -0
  252. package/dist/src/scatter/scatterAnnotation/scatterAnnotationUtils.js.map +1 -0
  253. package/dist/src/scatter/scatterMarkUtils.js +163 -0
  254. package/dist/src/scatter/scatterMarkUtils.js.map +1 -0
  255. package/dist/src/scatter/scatterSpecBuilder.js +170 -0
  256. package/dist/src/scatter/scatterSpecBuilder.js.map +1 -0
  257. package/dist/src/scatterPath/scatterPathUtils.js +138 -0
  258. package/dist/src/scatterPath/scatterPathUtils.js.map +1 -0
  259. package/dist/src/signal/signalSpecBuilder.js +82 -0
  260. package/dist/src/signal/signalSpecBuilder.js.map +1 -0
  261. package/dist/src/specUtils.js +210 -0
  262. package/dist/src/specUtils.js.map +1 -0
  263. package/dist/src/textUtils.js +29 -0
  264. package/dist/src/textUtils.js.map +1 -0
  265. package/dist/src/title/titleSpecBuilder.js +49 -0
  266. package/dist/src/title/titleSpecBuilder.js.map +1 -0
  267. package/dist/src/trendline/trendlineDataTransformUtils.js +177 -0
  268. package/dist/src/trendline/trendlineDataTransformUtils.js.map +1 -0
  269. package/dist/src/trendline/trendlineDataUtils.js +207 -0
  270. package/dist/src/trendline/trendlineDataUtils.js.map +1 -0
  271. package/dist/src/trendline/trendlineExtentUtils.js +26 -0
  272. package/dist/src/trendline/trendlineExtentUtils.js.map +1 -0
  273. package/dist/src/trendline/trendlineMarkUtils.js +211 -0
  274. package/dist/src/trendline/trendlineMarkUtils.js.map +1 -0
  275. package/dist/src/trendline/trendlineScaleUtils.js +24 -0
  276. package/dist/src/trendline/trendlineScaleUtils.js.map +1 -0
  277. package/dist/src/trendline/trendlineSignalUtils.js +15 -0
  278. package/dist/src/trendline/trendlineSignalUtils.js.map +1 -0
  279. package/dist/src/trendline/trendlineUtils.js +159 -0
  280. package/dist/src/trendline/trendlineUtils.js.map +1 -0
  281. package/dist/src/trendlineAnnotation/trendlineAnnotationUtils.js +214 -0
  282. package/dist/src/trendlineAnnotation/trendlineAnnotationUtils.js.map +1 -0
  283. package/dist/src/vegaEmbedUtils.js +73 -0
  284. package/dist/src/vegaEmbedUtils.js.map +1 -0
  285. package/dist/src/venn/vennSpecBuilder.js +175 -0
  286. package/dist/src/venn/vennSpecBuilder.js.map +1 -0
  287. package/dist/src/venn/vennUtils.js +177 -0
  288. package/dist/src/venn/vennUtils.js.map +1 -0
  289. package/package.json +20 -12
  290. package/dist/@types/index.d.ts.map +0 -1
  291. package/dist/@types/src/area/areaSpecBuilder.d.ts.map +0 -1
  292. package/dist/@types/src/area/areaSpecBuilder.test.d.ts +0 -2
  293. package/dist/@types/src/area/areaSpecBuilder.test.d.ts.map +0 -1
  294. package/dist/@types/src/area/areaUtils.d.ts.map +0 -1
  295. package/dist/@types/src/area/areaUtils.test.d.ts +0 -2
  296. package/dist/@types/src/area/areaUtils.test.d.ts.map +0 -1
  297. package/dist/@types/src/axis/axisLabelHoverUtils.d.ts.map +0 -1
  298. package/dist/@types/src/axis/axisLabelHoverUtils.test.d.ts +0 -2
  299. package/dist/@types/src/axis/axisLabelHoverUtils.test.d.ts.map +0 -1
  300. package/dist/@types/src/axis/axisLabelUtils.d.ts.map +0 -1
  301. package/dist/@types/src/axis/axisLabelUtils.test.d.ts +0 -2
  302. package/dist/@types/src/axis/axisLabelUtils.test.d.ts.map +0 -1
  303. package/dist/@types/src/axis/axisReferenceLineUtils.d.ts.map +0 -1
  304. package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts +0 -2
  305. package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts.map +0 -1
  306. package/dist/@types/src/axis/axisSpecBuilder.d.ts.map +0 -1
  307. package/dist/@types/src/axis/axisSpecBuilder.test.d.ts +0 -2
  308. package/dist/@types/src/axis/axisSpecBuilder.test.d.ts.map +0 -1
  309. package/dist/@types/src/axis/axisTestUtils.d.ts.map +0 -1
  310. package/dist/@types/src/axis/axisThumbnailUtils.d.ts.map +0 -1
  311. package/dist/@types/src/axis/axisThumbnailUtils.test.d.ts +0 -2
  312. package/dist/@types/src/axis/axisThumbnailUtils.test.d.ts.map +0 -1
  313. package/dist/@types/src/axis/axisTrellisUtils.d.ts.map +0 -1
  314. package/dist/@types/src/axis/axisTrellisUtils.test.d.ts +0 -2
  315. package/dist/@types/src/axis/axisTrellisUtils.test.d.ts.map +0 -1
  316. package/dist/@types/src/axis/axisUtils.d.ts.map +0 -1
  317. package/dist/@types/src/axis/axisUtils.test.d.ts +0 -2
  318. package/dist/@types/src/axis/axisUtils.test.d.ts.map +0 -1
  319. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts.map +0 -1
  320. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts +0 -2
  321. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts.map +0 -1
  322. package/dist/@types/src/bar/barAnnotationUtils.d.ts.map +0 -1
  323. package/dist/@types/src/bar/barAnnotationUtils.test.d.ts +0 -2
  324. package/dist/@types/src/bar/barAnnotationUtils.test.d.ts.map +0 -1
  325. package/dist/@types/src/bar/barFocusRingUtils.d.ts.map +0 -1
  326. package/dist/@types/src/bar/barFocusRingUtils.test.d.ts +0 -2
  327. package/dist/@types/src/bar/barFocusRingUtils.test.d.ts.map +0 -1
  328. package/dist/@types/src/bar/barSpecBuilder.d.ts.map +0 -1
  329. package/dist/@types/src/bar/barSpecBuilder.test.d.ts +0 -2
  330. package/dist/@types/src/bar/barSpecBuilder.test.d.ts.map +0 -1
  331. package/dist/@types/src/bar/barTestUtils.d.ts.map +0 -1
  332. package/dist/@types/src/bar/barUtils.d.ts.map +0 -1
  333. package/dist/@types/src/bar/barUtils.test.d.ts +0 -2
  334. package/dist/@types/src/bar/barUtils.test.d.ts.map +0 -1
  335. package/dist/@types/src/bar/dodgedBarUtils.d.ts.map +0 -1
  336. package/dist/@types/src/bar/dodgedBarUtils.test.d.ts +0 -151
  337. package/dist/@types/src/bar/dodgedBarUtils.test.d.ts.map +0 -1
  338. package/dist/@types/src/bar/stackedBarUtils.d.ts.map +0 -1
  339. package/dist/@types/src/bar/stackedBarUtils.test.d.ts +0 -2
  340. package/dist/@types/src/bar/stackedBarUtils.test.d.ts.map +0 -1
  341. package/dist/@types/src/bar/trellisedBarUtils.d.ts.map +0 -1
  342. package/dist/@types/src/bar/trellisedBarUtils.test.d.ts +0 -2
  343. package/dist/@types/src/bar/trellisedBarUtils.test.d.ts.map +0 -1
  344. package/dist/@types/src/barDirectLabel/barDirectLabelUtils.d.ts.map +0 -1
  345. package/dist/@types/src/barDirectLabel/barDirectLabelUtils.test.d.ts +0 -2
  346. package/dist/@types/src/barDirectLabel/barDirectLabelUtils.test.d.ts.map +0 -1
  347. package/dist/@types/src/bullet/bulletDataUtils.d.ts.map +0 -1
  348. package/dist/@types/src/bullet/bulletDataUtils.test.d.ts +0 -2
  349. package/dist/@types/src/bullet/bulletDataUtils.test.d.ts.map +0 -1
  350. package/dist/@types/src/bullet/bulletMarkUtils.d.ts.map +0 -1
  351. package/dist/@types/src/bullet/bulletMarkUtils.test.d.ts +0 -2
  352. package/dist/@types/src/bullet/bulletMarkUtils.test.d.ts.map +0 -1
  353. package/dist/@types/src/bullet/bulletSpecBuilder.d.ts.map +0 -1
  354. package/dist/@types/src/bullet/bulletSpecBuilder.test.d.ts +0 -2
  355. package/dist/@types/src/bullet/bulletSpecBuilder.test.d.ts.map +0 -1
  356. package/dist/@types/src/bullet/bulletTestUtils.d.ts.map +0 -1
  357. package/dist/@types/src/chartInspect/chartInspectUtils.d.ts.map +0 -1
  358. package/dist/@types/src/chartInspect/chartInspectUtils.test.d.ts +0 -2
  359. package/dist/@types/src/chartInspect/chartInspectUtils.test.d.ts.map +0 -1
  360. package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts.map +0 -1
  361. package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts +0 -2
  362. package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts.map +0 -1
  363. package/dist/@types/src/chartSpecBuilder.d.ts.map +0 -1
  364. package/dist/@types/src/chartSpecBuilder.test.d.ts +0 -2
  365. package/dist/@types/src/chartSpecBuilder.test.d.ts.map +0 -1
  366. package/dist/@types/src/combo/comboSpecBuilder.d.ts.map +0 -1
  367. package/dist/@types/src/combo/comboSpecBuilder.test.d.ts +0 -2
  368. package/dist/@types/src/combo/comboSpecBuilder.test.d.ts.map +0 -1
  369. package/dist/@types/src/data/dataUtils.d.ts.map +0 -1
  370. package/dist/@types/src/data/dataUtils.test.d.ts +0 -2
  371. package/dist/@types/src/data/dataUtils.test.d.ts.map +0 -1
  372. package/dist/@types/src/donut/donutLabelCollisionUtils.d.ts +0 -22
  373. package/dist/@types/src/donut/donutLabelCollisionUtils.d.ts.map +0 -1
  374. package/dist/@types/src/donut/donutSpecBuilder.d.ts.map +0 -1
  375. package/dist/@types/src/donut/donutSpecBuilder.test.d.ts +0 -2
  376. package/dist/@types/src/donut/donutSpecBuilder.test.d.ts.map +0 -1
  377. package/dist/@types/src/donut/donutSummaryUtils.d.ts.map +0 -1
  378. package/dist/@types/src/donut/donutSummaryUtils.test.d.ts +0 -2
  379. package/dist/@types/src/donut/donutSummaryUtils.test.d.ts.map +0 -1
  380. package/dist/@types/src/donut/donutTestUtils.d.ts.map +0 -1
  381. package/dist/@types/src/donut/donutUtils.d.ts.map +0 -1
  382. package/dist/@types/src/donut/donutUtils.test.d.ts +0 -2
  383. package/dist/@types/src/donut/donutUtils.test.d.ts.map +0 -1
  384. package/dist/@types/src/donut/segmentLabelUtils.d.ts.map +0 -1
  385. package/dist/@types/src/donut/segmentLabelUtils.test.d.ts +0 -2
  386. package/dist/@types/src/donut/segmentLabelUtils.test.d.ts.map +0 -1
  387. package/dist/@types/src/expressionFunctions/expressionFunctions.d.ts.map +0 -1
  388. package/dist/@types/src/expressionFunctions/expressionFunctions.test.d.ts +0 -2
  389. package/dist/@types/src/expressionFunctions/expressionFunctions.test.d.ts.map +0 -1
  390. package/dist/@types/src/expressionFunctions/index.d.ts.map +0 -1
  391. package/dist/@types/src/index.d.ts.map +0 -1
  392. package/dist/@types/src/legend/legendFacetUtils.d.ts.map +0 -1
  393. package/dist/@types/src/legend/legendFacetUtils.test.d.ts +0 -2
  394. package/dist/@types/src/legend/legendFacetUtils.test.d.ts.map +0 -1
  395. package/dist/@types/src/legend/legendHighlightUtils.d.ts.map +0 -1
  396. package/dist/@types/src/legend/legendHighlightUtils.test.d.ts +0 -2
  397. package/dist/@types/src/legend/legendHighlightUtils.test.d.ts.map +0 -1
  398. package/dist/@types/src/legend/legendSpecBuilder.d.ts.map +0 -1
  399. package/dist/@types/src/legend/legendSpecBuilder.test.d.ts +0 -2
  400. package/dist/@types/src/legend/legendSpecBuilder.test.d.ts.map +0 -1
  401. package/dist/@types/src/legend/legendTestUtils.d.ts.map +0 -1
  402. package/dist/@types/src/legend/legendUtils.d.ts.map +0 -1
  403. package/dist/@types/src/legend/legendUtils.test.d.ts +0 -2
  404. package/dist/@types/src/legend/legendUtils.test.d.ts.map +0 -1
  405. package/dist/@types/src/line/directLabelUtils.d.ts.map +0 -1
  406. package/dist/@types/src/line/lineDataUtils.d.ts.map +0 -1
  407. package/dist/@types/src/line/lineDataUtils.test.d.ts +0 -2
  408. package/dist/@types/src/line/lineDataUtils.test.d.ts.map +0 -1
  409. package/dist/@types/src/line/lineMarkUtils.d.ts.map +0 -1
  410. package/dist/@types/src/line/lineMarkUtils.test.d.ts +0 -2
  411. package/dist/@types/src/line/lineMarkUtils.test.d.ts.map +0 -1
  412. package/dist/@types/src/line/linePointAnnotation/index.d.ts.map +0 -1
  413. package/dist/@types/src/line/linePointAnnotation/linePointAnnotationUtils.d.ts.map +0 -1
  414. package/dist/@types/src/line/linePointAnnotation/linePointAnnotationUtils.test.d.ts +0 -2
  415. package/dist/@types/src/line/linePointAnnotation/linePointAnnotationUtils.test.d.ts.map +0 -1
  416. package/dist/@types/src/line/linePointUtils.d.ts.map +0 -1
  417. package/dist/@types/src/line/linePointUtils.test.d.ts +0 -2
  418. package/dist/@types/src/line/linePointUtils.test.d.ts.map +0 -1
  419. package/dist/@types/src/line/lineSpecBuilder.d.ts.map +0 -1
  420. package/dist/@types/src/line/lineSpecBuilder.test.d.ts +0 -2
  421. package/dist/@types/src/line/lineSpecBuilder.test.d.ts.map +0 -1
  422. package/dist/@types/src/line/lineTestUtils.d.ts.map +0 -1
  423. package/dist/@types/src/line/lineUtils.d.ts.map +0 -1
  424. package/dist/@types/src/line/lineUtils.test.d.ts +0 -2
  425. package/dist/@types/src/line/lineUtils.test.d.ts.map +0 -1
  426. package/dist/@types/src/lineDirectLabel/index.d.ts.map +0 -1
  427. package/dist/@types/src/lineDirectLabel/lineDirectLabelUtils.d.ts.map +0 -1
  428. package/dist/@types/src/lineDirectLabel/lineDirectLabelUtils.test.d.ts +0 -2
  429. package/dist/@types/src/lineDirectLabel/lineDirectLabelUtils.test.d.ts.map +0 -1
  430. package/dist/@types/src/lineForecast/index.d.ts.map +0 -1
  431. package/dist/@types/src/lineForecast/lineForecastUtils.d.ts.map +0 -1
  432. package/dist/@types/src/lineForecast/lineForecastUtils.test.d.ts +0 -2
  433. package/dist/@types/src/lineForecast/lineForecastUtils.test.d.ts.map +0 -1
  434. package/dist/@types/src/marks/drawInAnimationUtils.d.ts.map +0 -1
  435. package/dist/@types/src/marks/drawInAnimationUtils.test.d.ts +0 -2
  436. package/dist/@types/src/marks/drawInAnimationUtils.test.d.ts.map +0 -1
  437. package/dist/@types/src/marks/hoverAnimationUtils.d.ts.map +0 -1
  438. package/dist/@types/src/marks/hoverAnimationUtils.test.d.ts +0 -2
  439. package/dist/@types/src/marks/hoverAnimationUtils.test.d.ts.map +0 -1
  440. package/dist/@types/src/marks/markUtils.d.ts.map +0 -1
  441. package/dist/@types/src/marks/markUtils.test.d.ts +0 -2
  442. package/dist/@types/src/marks/markUtils.test.d.ts.map +0 -1
  443. package/dist/@types/src/metricRange/metricRangeUtils.d.ts.map +0 -1
  444. package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts +0 -2
  445. package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts.map +0 -1
  446. package/dist/@types/src/scale/scaleSpecBuilder.d.ts.map +0 -1
  447. package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts +0 -2
  448. package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts.map +0 -1
  449. package/dist/@types/src/scale/scaleUtils.d.ts.map +0 -1
  450. package/dist/@types/src/scale/scaleUtils.test.d.ts +0 -2
  451. package/dist/@types/src/scale/scaleUtils.test.d.ts.map +0 -1
  452. package/dist/@types/src/scatter/scatterAnnotation/index.d.ts.map +0 -1
  453. package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.d.ts.map +0 -1
  454. package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.test.d.ts +0 -2
  455. package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.test.d.ts.map +0 -1
  456. package/dist/@types/src/scatter/scatterMarkUtils.d.ts.map +0 -1
  457. package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts +0 -2
  458. package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts.map +0 -1
  459. package/dist/@types/src/scatter/scatterSpecBuilder.d.ts.map +0 -1
  460. package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts +0 -2
  461. package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts.map +0 -1
  462. package/dist/@types/src/scatter/scatterTestUtils.d.ts.map +0 -1
  463. package/dist/@types/src/scatterPath/index.d.ts.map +0 -1
  464. package/dist/@types/src/scatterPath/scatterPathUtils.d.ts.map +0 -1
  465. package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts +0 -2
  466. package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts.map +0 -1
  467. package/dist/@types/src/signal/signalSpecBuilder.d.ts.map +0 -1
  468. package/dist/@types/src/signal/signalSpecBuilder.test.d.ts +0 -2
  469. package/dist/@types/src/signal/signalSpecBuilder.test.d.ts.map +0 -1
  470. package/dist/@types/src/specTestUtils.d.ts.map +0 -1
  471. package/dist/@types/src/specUtils.d.ts.map +0 -1
  472. package/dist/@types/src/specUtils.test.d.ts +0 -2
  473. package/dist/@types/src/specUtils.test.d.ts.map +0 -1
  474. package/dist/@types/src/textUtils.d.ts.map +0 -1
  475. package/dist/@types/src/textUtils.test.d.ts +0 -2
  476. package/dist/@types/src/textUtils.test.d.ts.map +0 -1
  477. package/dist/@types/src/title/titleSpecBuilder.d.ts.map +0 -1
  478. package/dist/@types/src/title/titleSpecBuilder.test.d.ts +0 -2
  479. package/dist/@types/src/title/titleSpecBuilder.test.d.ts.map +0 -1
  480. package/dist/@types/src/trendline/index.d.ts.map +0 -1
  481. package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts.map +0 -1
  482. package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts +0 -2
  483. package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts.map +0 -1
  484. package/dist/@types/src/trendline/trendlineDataUtils.d.ts.map +0 -1
  485. package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts +0 -2
  486. package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts.map +0 -1
  487. package/dist/@types/src/trendline/trendlineMarkUtils.d.ts.map +0 -1
  488. package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts +0 -2
  489. package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts.map +0 -1
  490. package/dist/@types/src/trendline/trendlineScaleUtils.d.ts.map +0 -1
  491. package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts +0 -2
  492. package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts.map +0 -1
  493. package/dist/@types/src/trendline/trendlineSignalUtils.d.ts.map +0 -1
  494. package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts +0 -2
  495. package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts.map +0 -1
  496. package/dist/@types/src/trendline/trendlineTestUtils.d.ts.map +0 -1
  497. package/dist/@types/src/trendline/trendlineUtils.d.ts.map +0 -1
  498. package/dist/@types/src/trendline/trendlineUtils.test.d.ts +0 -2
  499. package/dist/@types/src/trendline/trendlineUtils.test.d.ts.map +0 -1
  500. package/dist/@types/src/trendlineAnnotation/index.d.ts.map +0 -1
  501. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts.map +0 -1
  502. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts +0 -2
  503. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts.map +0 -1
  504. package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts.map +0 -1
  505. package/dist/@types/src/types/axis/axisSpec.types.d.ts.map +0 -1
  506. package/dist/@types/src/types/axis/axisThumbnailSpec.types.d.ts.map +0 -1
  507. package/dist/@types/src/types/axis/index.d.ts.map +0 -1
  508. package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts.map +0 -1
  509. package/dist/@types/src/types/chartSpec.types.d.ts.map +0 -1
  510. package/dist/@types/src/types/dialogs/chartInspectSpec.types.d.ts.map +0 -1
  511. package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts.map +0 -1
  512. package/dist/@types/src/types/dialogs/index.d.ts.map +0 -1
  513. package/dist/@types/src/types/index.d.ts.map +0 -1
  514. package/dist/@types/src/types/legendSpec.types.d.ts.map +0 -1
  515. package/dist/@types/src/types/marks/areaSpec.types.d.ts.map +0 -1
  516. package/dist/@types/src/types/marks/barSpec.types.d.ts.map +0 -1
  517. package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts.map +0 -1
  518. package/dist/@types/src/types/marks/bulletSpec.types.d.ts.map +0 -1
  519. package/dist/@types/src/types/marks/comboSpec.types.d.ts.map +0 -1
  520. package/dist/@types/src/types/marks/donutSpec.types.d.ts.map +0 -1
  521. package/dist/@types/src/types/marks/index.d.ts.map +0 -1
  522. package/dist/@types/src/types/marks/lineSpec.types.d.ts.map +0 -1
  523. package/dist/@types/src/types/marks/scatterSpec.types.d.ts.map +0 -1
  524. package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts.map +0 -1
  525. package/dist/@types/src/types/marks/supplemental/barDirectLabelSpec.types.d.ts.map +0 -1
  526. package/dist/@types/src/types/marks/supplemental/dountSummarySpec.types.d.ts.map +0 -1
  527. package/dist/@types/src/types/marks/supplemental/index.d.ts.map +0 -1
  528. package/dist/@types/src/types/marks/supplemental/lineDirectLabelSpec.types.d.ts.map +0 -1
  529. package/dist/@types/src/types/marks/supplemental/lineForecastSpec.types.d.ts.map +0 -1
  530. package/dist/@types/src/types/marks/supplemental/linePointAnnotationSpec.types.d.ts.map +0 -1
  531. package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts.map +0 -1
  532. package/dist/@types/src/types/marks/supplemental/scatterAnnotationSpec.types.d.ts.map +0 -1
  533. package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts.map +0 -1
  534. package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts.map +0 -1
  535. package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts.map +0 -1
  536. package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts.map +0 -1
  537. package/dist/@types/src/types/marks/vennSpec.types.d.ts.map +0 -1
  538. package/dist/@types/src/types/specUtil.types.d.ts.map +0 -1
  539. package/dist/@types/src/types/spectrumVizColor.types.d.ts.map +0 -1
  540. package/dist/@types/src/types/titleSpec.types.d.ts.map +0 -1
  541. package/dist/@types/src/vegaEmbedUtils.d.ts.map +0 -1
  542. package/dist/@types/src/vegaEmbedUtils.test.d.ts +0 -2
  543. package/dist/@types/src/vegaEmbedUtils.test.d.ts.map +0 -1
  544. package/dist/@types/src/venn/vennSpecBuilder.d.ts.map +0 -1
  545. package/dist/@types/src/venn/vennSpecBuilder.test.d.ts +0 -2
  546. package/dist/@types/src/venn/vennSpecBuilder.test.d.ts.map +0 -1
  547. package/dist/@types/src/venn/vennTestUtils.d.ts.map +0 -1
  548. package/dist/@types/src/venn/vennUtils.d.ts.map +0 -1
  549. package/dist/@types/src/venn/vennUtils.test.d.ts +0 -2
  550. package/dist/@types/src/venn/vennUtils.test.d.ts.map +0 -1
  551. package/dist/index.js.LICENSE.txt +0 -3
@@ -1,5 +1,5 @@
1
1
  import { Data, FormulaTransform } from 'vega';
2
- import { AreaSpecOptions, BarSpecOptions, ChartPopoverOptions, ChartPopoverSpecOptions, DonutSpecOptions, LineSpecOptions, ScatterSpecOptions } from '../types';
2
+ import { AreaSpecOptions, BarSpecOptions, ChartPopoverOptions, ChartPopoverSpecOptions, DonutSpecOptions, LineSpecOptions, ScatterSpecOptions } from '../types/index.js';
3
3
  type PopoverParentOptions = AreaSpecOptions | BarSpecOptions | DonutSpecOptions | LineSpecOptions | ScatterSpecOptions;
4
4
  /**
5
5
  * gets all the popovers
@@ -29,4 +29,3 @@ export declare const addPopoverData: (data: Data[], markOptions: PopoverParentOp
29
29
  */
30
30
  export declare const getGroupIdTransform: (highlightBy: string[], markName: string) => FormulaTransform;
31
31
  export {};
32
- //# sourceMappingURL=chartPopoverUtils.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { Data, LinearScale, OrdinalScale, PointScale, Signal } from 'vega';
2
- import { ChartColors, ChartOptions, ChartSpecOptions, ColorScale, ColorScheme, Colors, LineType, LineTypes, LineWidth, Opacities, ScSpec, SymbolShapes, SymbolSize } from './types';
2
+ import { ChartColors, ChartOptions, ChartSpecOptions, ColorScale, ColorScheme, Colors, LineType, LineTypes, LineWidth, Opacities, ScSpec, SymbolShapes, SymbolSize } from './types/index.js';
3
3
  export declare function buildSpec({ animations, animationTypes, accessibleNavigation, axes, backgroundColor, chartHeight, chartWidth, colors, colorScheme, data, description, hiddenSeries, highlightedItem, highlightedSeries, idKey, legends, lineTypes, lineWidths, marks, opacities, symbolShapes, symbolSizes, title, titles, }: ChartOptions): ScSpec;
4
4
  export declare const removeUnusedScales: (state?: ScSpec | undefined) => ScSpec;
5
5
  export declare const getDefaultSignals: ({ backgroundColor, colors, colorScheme, lineTypes, opacities, hiddenSeries, highlightedItem, highlightedSeries, }: ChartSpecOptions) => Signal[];
@@ -29,6 +29,7 @@ export declare const getOpacityScale: (opacities?: Opacities) => OrdinalScale |
29
29
  */
30
30
  export declare const addData: (state: Data[], args_0: {
31
31
  facets: string[];
32
+ idKey?: string | undefined;
32
33
  }) => Data[];
33
34
  export declare const isColorScale: (colors: ChartColors) => colors is ColorScale;
34
35
  export declare const isColors: (colors: ChartColors) => colors is Colors;
@@ -36,4 +37,3 @@ export declare const isLineTypeArray: (lineTypes: LineTypes) => lineTypes is Lin
36
37
  export declare const isStrokeDashArray: (lineType: LineType | LineType[]) => lineType is number[];
37
38
  export declare const isNumberArray: (opacities: Opacities) => opacities is number[];
38
39
  export declare const isSymbolShapeArray: (symbolShapes: SymbolShapes) => symbolShapes is string[];
39
- //# sourceMappingURL=chartSpecBuilder.d.ts.map
@@ -1,9 +1,12 @@
1
- import { BarOptions, ColorScheme, ComboOptions, HighlightedItem, LineOptions, ScSpec } from '../types';
1
+ import { AnimationType } from '@spectrum-charts/core-s2/constants';
2
+ import { AxisOptions, BarOptions, ColorScheme, ComboOptions, HighlightedItem, LineOptions, ScSpec } from '../types/index.js';
2
3
  export declare const addCombo: (state: ScSpec, args_0: ComboOptions & {
4
+ animations?: boolean | undefined;
5
+ animationTypes?: AnimationType[] | undefined;
6
+ axes?: AxisOptions[] | undefined;
3
7
  colorScheme?: ColorScheme | undefined;
4
8
  highlightedItem?: HighlightedItem | undefined;
5
9
  index?: number | undefined;
6
10
  idKey: string;
7
11
  }) => ScSpec;
8
12
  export declare const getComboMarkName: (mark: BarOptions | LineOptions, comboName: string, index: number) => string;
9
- //# sourceMappingURL=comboSpecBuilder.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { Compare, Data, FormulaTransform, SourceData, Transforms, ValuesData } from 'vega';
2
- import { ChartInspectOptions } from '../types';
2
+ import { ChartInspectOptions } from '../types/index.js';
3
3
  export declare const addTimeTransform: (state: Transforms[], args_0: string) => Transforms[];
4
4
  /**
5
5
  * Whether a transform with the given `as` field already exists in the array — guards against
@@ -32,4 +32,3 @@ export declare const getFilteredInspectData: (chartInspects: ChartInspectOptions
32
32
  expr: string;
33
33
  }[] | undefined;
34
34
  };
35
- //# sourceMappingURL=dataUtils.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { FormulaTransform } from 'vega';
2
+ /** Suffixes of the derived label position fields */
3
+ export type LabelFieldSuffix = 'hemisphere' | 'idealY' | 'radius' | 'labelY' | 'centerY' | 'topY' | 'bottomY' | 'labelHalfWidth' | 'leftX' | 'rightX' | 'nameWidth' | 'valueWidth' | 'detailValueWidth' | 'detailSuffixWidth';
4
+ /**
5
+ * Gets the derived label field name for a given field prefix and suffix
6
+ * @param fieldPrefix
7
+ * @param suffix
8
+ * @returns field name
9
+ */
10
+ export declare const getLabelField: (fieldPrefix: string, suffix: LabelFieldSuffix) => string;
11
+ /**
12
+ * Gets fixed label positions at the segment midpoint.
13
+ * @param fieldPrefix unique prefix for the fields this util writes
14
+ * @param arcThetaExpr vega expression for the row's arc center angle
15
+ * @param anchorRadiusExpr vega expression for the donut's outer radius plus the label gap
16
+ * @param labelHeightExpr vega expression for the rendered label block height
17
+ * @param inwardExtentExpr vega expression for the label height extending toward the chart center
18
+ * @returns transforms to append to a label candidate data source
19
+ */
20
+ export declare const getLabelPositionTransforms: (fieldPrefix: string, arcThetaExpr: string, anchorRadiusExpr: string, labelHeightExpr: string, inwardExtentExpr?: string) => FormulaTransform[];
@@ -0,0 +1,10 @@
1
+ import { DonutOptions, LegendOptions, ScSpec } from '../types/index.js';
2
+ export declare const DONUT_LEGEND_EXTENT = "rscDonutLegendExtent";
3
+ export declare const DONUT_LEGEND_MARGIN = "rscDonutLegendMargin";
4
+ /**
5
+ * Centers a donut and its left or right legend as a group by padding the chart bounds equally on both sides.
6
+ * @param spec
7
+ * @param donut
8
+ * @param legends
9
+ */
10
+ export declare const addDonutLegendLayout: (state: ScSpec, args_0: DonutOptions | undefined, args_1: LegendOptions[]) => ScSpec;
@@ -1,13 +1,18 @@
1
1
  import { Data, Mark, Scale, Signal } from 'vega';
2
- import { ColorScheme, DonutOptions, DonutSpecOptions, HighlightedItem, ScSpec } from '../types';
2
+ import { AnimationType } from '@spectrum-charts/core-s2/constants';
3
+ import { ChartData, ColorScheme, DonutOptions, DonutSpecOptions, HighlightedItem, ScSpec } from '../types/index.js';
3
4
  export declare const addDonut: (state: ScSpec, args_0: DonutOptions & {
5
+ animations?: boolean | undefined;
6
+ animationTypes?: AnimationType[] | undefined;
4
7
  colorScheme?: ColorScheme | undefined;
8
+ data?: ChartData[] | undefined;
5
9
  highlightedItem?: HighlightedItem | undefined;
10
+ highlightedSeries?: string | number | undefined;
6
11
  index?: number | undefined;
7
12
  idKey: string;
13
+ legendHighlightSignals?: string[] | undefined;
8
14
  }) => ScSpec;
9
15
  export declare const addData: (state: Data[], args_0: DonutSpecOptions) => Data[];
10
16
  export declare const addScales: (state: Scale[], args_0: DonutSpecOptions) => Scale[];
11
17
  export declare const addMarks: (state: Mark[], args_0: DonutSpecOptions) => Mark[];
12
18
  export declare const addSignals: (state: Signal[], args_0: DonutSpecOptions) => Signal[];
13
- //# sourceMappingURL=donutSpecBuilder.d.ts.map
@@ -1,17 +1,11 @@
1
- import { ColorValueRef, EncodeEntryName, GroupMark, NumericValueRef, ProductionRule, Signal, SourceData, TextBaselineValueRef, TextEncodeEntry, TextValueRef, ThresholdScale } from 'vega';
2
- import { DonutSpecOptions, DonutSummarySpecOptions } from '../types';
1
+ import { ColorValueRef, EncodeEntryName, GroupMark, NumericValueRef, ProductionRule, Signal, SourceData, TextEncodeEntry, TextValueRef } from 'vega';
2
+ import { DonutSpecOptions, DonutSummarySpecOptions } from '../types/index.js';
3
3
  /**
4
4
  * Gets the data for the donut summary
5
5
  * @param donutOptions
6
6
  * @returns SourceData[]
7
7
  */
8
8
  export declare const getDonutSummaryData: (donutOptions: DonutSpecOptions) => SourceData[];
9
- /**
10
- * Gets the required scales for the donut summary
11
- * @param donutOptions
12
- * @returns ThresholdScale[]
13
- */
14
- export declare const getDonutSummaryScales: (donutOptions: DonutSpecOptions) => ThresholdScale[];
15
9
  /**
16
10
  * Gets the signals for the donut summary
17
11
  * @param donutOptions
@@ -36,6 +30,16 @@ export declare const getDonutSummaryGroupMark: (options: DonutSummarySpecOptions
36
30
  * @returns GroupMark
37
31
  */
38
32
  export declare const getBooleanDonutSummaryGroupMark: (options: DonutSummarySpecOptions) => GroupMark;
33
+ /**
34
+ * Hides summary text when it is too small or truncates to only an ellipsis.
35
+ * @param donutOptions
36
+ * @param textExpr
37
+ * @param fontSize
38
+ * @param fontWeight
39
+ * @param limitSignal
40
+ * @returns font size production rule
41
+ */
42
+ export declare const getSummaryTextFontSize: (donutOptions: DonutSpecOptions, textExpr: string, fontSize: string, fontWeight: number, limitSignal: string) => ProductionRule<NumericValueRef>;
39
43
  /**
40
44
  * Gets the encode for the summary value
41
45
  * @param donutSummaryOptions
@@ -48,24 +52,20 @@ export declare const getSummaryValueEncode: (options: DonutSummarySpecOptions) =
48
52
  * @returns TextValueref
49
53
  */
50
54
  export declare const getSummaryValueText: ({ donutOptions, numberFormat, }: DonutSummarySpecOptions) => ProductionRule<TextValueRef>;
51
- /**
52
- * Gets the baseline for the summary value
53
- * @param hasLineBelow whether a label or delta line renders below the value
54
- * @returns TextBaselineValueRef
55
- */
56
- export declare const getSummaryValueBaseline: (hasLineBelow?: string | boolean) => TextBaselineValueRef;
57
55
  /**
58
56
  * Gets the limit for the summary value
59
57
  * @param donutSummaryOptions
60
58
  * @returns NumericValueRef
61
59
  */
62
- export declare const getSummaryValueLimit: ({ donutOptions, label, delta }: DonutSummarySpecOptions) => NumericValueRef;
60
+ export declare const getSummaryValueLimit: (options: DonutSummarySpecOptions) => {
61
+ signal: string;
62
+ };
63
63
  /**
64
64
  * Gets the encode for the metric label
65
65
  * @param donutSummaryOptions
66
66
  * @returns encode
67
67
  */
68
- export declare const getSummaryLabelEncode: ({ donutOptions, hideValue, label, delta, }: DonutSummarySpecOptions & {
68
+ export declare const getSummaryLabelEncode: (options: DonutSummarySpecOptions & {
69
69
  label: string;
70
70
  }) => Partial<Record<EncodeEntryName, TextEncodeEntry>>;
71
71
  /**
@@ -89,4 +89,3 @@ export declare const getSummaryDeltaText: (delta: number) => TextValueRef;
89
89
  * @returns ColorValueRef
90
90
  */
91
91
  export declare const getSummaryDeltaFill: (delta: number, colorScheme: DonutSpecOptions['colorScheme']) => ColorValueRef;
92
- //# sourceMappingURL=donutSummaryUtils.d.ts.map
@@ -1,3 +1,2 @@
1
- import { DonutSpecOptions } from '../types';
1
+ import { DonutSpecOptions } from '../types/index.js';
2
2
  export declare const defaultDonutOptions: DonutSpecOptions;
3
- //# sourceMappingURL=donutTestUtils.d.ts.map
@@ -1,5 +1,21 @@
1
- import { ArcMark, Signal, SourceData, ThresholdScale } from 'vega';
2
- import { DonutSpecOptions } from '../types';
1
+ import { ArcMark, NumericValueRef, Signal, SourceData, ThresholdScale } from 'vega';
2
+ import { HoverMatchRule } from '../marks/hoverAnimationUtils.js';
3
+ import { DonutSpecOptions } from '../types/index.js';
4
+ /** Returns whether a donut needs hover state for its labels, interactions, or a highlighted legend. */
5
+ export declare const isDonutInteractive: (options: DonutSpecOptions) => boolean;
6
+ export declare const getDonutAnimIdField: (name: string) => string;
7
+ /** Builds per-segment hover targets using the same precedence as Line hover. */
8
+ export declare const getDonutHoverRules: (options: DonutSpecOptions) => HoverMatchRule[];
9
+ /** Gets the shared arc and label opacity, animated when hover animations are enabled. */
10
+ export declare const getDonutOpacity: (options: DonutSpecOptions) => ({
11
+ test?: string;
12
+ } & NumericValueRef)[];
13
+ /** Gets the 0-1 linear label fade that starts when the label's slice finishes drawing. */
14
+ export declare const getDonutLabelFadeProgressExpr: (options: DonutSpecOptions) => string;
15
+ /** Combines the draw-in label fade with the donut's existing highlight opacity rules. */
16
+ export declare const getDonutLabelOpacity: (options: DonutSpecOptions) => ({
17
+ test?: string;
18
+ } & NumericValueRef)[];
3
19
  /**
4
20
  * Gets the test expression that is true when the donut has no data or all metric values sum to 0.
5
21
  * When the metric sum is 0, the vega pie transform produces NaN angles which cannot be rendered.
@@ -15,45 +31,102 @@ export declare const getDonutEmptyStateTest: (name: string) => string;
15
31
  */
16
32
  export declare const getSumData: ({ metric, name }: DonutSpecOptions) => SourceData;
17
33
  /**
18
- * Gets the donut's outer radius, reserving space for SegmentLabel content when needed.
19
- * @param donutOptions
34
+ * Gets the name of the signal holding the size-tiered gap (px) between the ring and its segment labels.
35
+ * @param name donut name
36
+ * @returns signal name
37
+ */
38
+ export declare const getDonutLabelRingGapSignalName: (name: string) => string;
39
+ /**
40
+ * Gets the name of the signal holding the donut's size tier index (0-4 for XS/S/M/L/XL).
41
+ * @param name donut name
42
+ * @returns signal name
43
+ */
44
+ export declare const getDonutSizeTierSignalName: (name: string) => string;
45
+ /** Index of each donut size tier, as held by the size tier signal. */
46
+ export declare const DONUT_SIZE_TIER: {
47
+ readonly XS: 0;
48
+ readonly S: 1;
49
+ readonly M: 2;
50
+ readonly L: 3;
51
+ readonly XL: 4;
52
+ };
53
+ /**
54
+ * Gets an expression that picks the value for the donut's size tier.
55
+ * @param name donut name
56
+ * @param values one value per size tier (XS/S/M/L/XL)
20
57
  * @returns vega expression string
21
58
  */
22
- export declare const getDonutOuterRadiusExpr: ({ isBoolean, segmentLabels, hideDeemphasizedLabels, emphasizedItems, }: DonutSpecOptions) => string;
59
+ export declare const getSizeTierValueExpr: (name: string, values: (number | string)[]) => string;
60
+ /**
61
+ * Gets the name of the signal holding the donut's outer radius.
62
+ * @param donutOptions
63
+ * @returns signal name
64
+ */
65
+ export declare const getDonutOuterRadiusExpr: ({ name }: Pick<DonutSpecOptions, 'name'>) => string;
66
+ /**
67
+ * Gets the name of the signal holding the donut's inner radius.
68
+ * @param donutOptions
69
+ * @returns signal name
70
+ */
71
+ export declare const getDonutInnerRadiusExpr: ({ name }: Pick<DonutSpecOptions, 'name'>) => string;
23
72
  /**
24
- * Gets the threshold scale that snaps a donut's outer diameter to its nearest named size tier's fixed ring width
73
+ * Gets the threshold scale that maps chart size to the donut's size tier index.
25
74
  * @param donutOptions
26
75
  * @returns ThresholdScale
27
76
  */
28
- export declare const getRingWidthScale: ({ name }: DonutSpecOptions) => ThresholdScale;
77
+ export declare const getSizeTierScale: (options: DonutSpecOptions) => ThresholdScale;
29
78
  /**
30
- * Gets the signal that resolves a donut's fixed ring width from its outer diameter (the label-reserved
31
- * radius, so the ring width tier stays consistent with the label font-size tier)
79
+ * Gets the donut's size tier from its available full-diameter space.
32
80
  * @param donutOptions
33
81
  * @returns Signal
34
82
  */
35
- export declare const getRingWidthSignal: (options: DonutSpecOptions) => Signal;
83
+ export declare const getSizeTierSignal: (options: DonutSpecOptions) => Signal;
36
84
  /**
37
- * Gets the threshold scale that snaps a donut's outer diameter to its nearest named size tier's fixed slice gap
85
+ * Gets the signal resolving the size-tiered gap (px) between the ring's outer edge and its segment labels.
38
86
  * @param donutOptions
39
- * @returns ThresholdScale
87
+ * @returns Signal[]
88
+ */
89
+ export declare const getLabelRingGapSignals: ({ name, segmentLabels }: DonutSpecOptions) => Signal[];
90
+ /**
91
+ * Gets the signal that resolves a donut's fixed ring width from its size tier
92
+ * @param donutOptions
93
+ * @returns Signal
40
94
  */
41
- export declare const getSliceGapScale: ({ name }: DonutSpecOptions) => ThresholdScale;
95
+ export declare const getRingWidthSignal: ({ name }: DonutSpecOptions) => Signal;
42
96
  /**
43
- * Gets the signal that resolves a donut's fixed segment gap (in px) from its outer diameter (the
44
- * label-reserved radius, so the slice gap tier stays consistent with the label font-size tier)
97
+ * Gets the signal that resolves a donut's fixed segment gap (in px) from its size tier, using a fixed 1px gap for pies
45
98
  * @param donutOptions
46
99
  * @returns Signal
47
100
  */
48
- export declare const getSliceGapSignal: (options: DonutSpecOptions) => Signal;
101
+ export declare const getSliceGapSignal: ({ holeRatio, name }: DonutSpecOptions) => Signal;
49
102
  /**
50
- * Gets the donut's inner radius expression, relative to the label-reserved outer radius. Uses the
51
- * fixed per-tier ring width when holeRatio is left at its default, otherwise honors an explicitly
52
- * customized holeRatio as a proportional ring.
103
+ * Gets the signals resolving the donut's outer and inner radius once per chart size.
53
104
  * @param donutOptions
105
+ * @returns Signal[]
106
+ */
107
+ export declare const getDonutRadiusSignals: (options: DonutSpecOptions) => Signal[];
108
+ /**
109
+ * Preserves fixed pie outlines and clamps donut outlines to preserve fill at the inner radius.
110
+ * @param options
111
+ * @param requestedWidth
54
112
  * @returns vega expression string
55
113
  */
56
- export declare const getDonutInnerRadiusExpr: (options: DonutSpecOptions) => string;
114
+ export declare const getSliceStrokeWidthExpr: (options: DonutSpecOptions, requestedWidth: string) => string;
115
+ export declare const getDonutStartAngle: ({ variant }: Pick<DonutSpecOptions, 'variant'>) => number;
116
+ /** Gets the total angular sweep expression for a donut's variant. */
117
+ export declare const getDonutSweepExpr: ({ variant }: Pick<DonutSpecOptions, 'variant'>) => string;
118
+ /** Gets an arc angle clipped to the draw-in sweep when enabled. */
119
+ export declare const getDonutAngleEncoding: ({ isDrawInAnimate, name }: DonutSpecOptions, angle: 'startAngle' | 'endAngle') => NumericValueRef;
120
+ /** Hides labels until their draw-in fade begins. */
121
+ export declare const getDonutDrawInLabelVisibilityRules: (options: DonutSpecOptions) => ({
122
+ test: string;
123
+ } & NumericValueRef)[];
124
+ /**
125
+ * Gets the y anchor for a centered circle or bottom-aligned semicircle.
126
+ * @param donutOptions
127
+ * @returns vega signal string
128
+ */
129
+ export declare const getDonutCenterYSignal: (options: DonutSpecOptions) => string;
57
130
  export declare const getArcMark: (options: DonutSpecOptions) => ArcMark;
58
131
  /**
59
132
  * Gets the empty state arc mark. This is a light gray ring that is only visible
@@ -62,4 +135,3 @@ export declare const getArcMark: (options: DonutSpecOptions) => ArcMark;
62
135
  * @returns ArcMark
63
136
  */
64
137
  export declare const getEmptyStateArcMark: (options: DonutSpecOptions) => ArcMark;
65
- //# sourceMappingURL=donutUtils.d.ts.map
@@ -1,6 +1,5 @@
1
- import { ColorValueRef, GroupMark, ProductionRule, Signal, SourceData, TextMark, TextValueRef, ThresholdScale } from 'vega';
2
- import { DonutSpecOptions, SegmentLabelSpecOptions } from '../types';
3
- export declare const getSegmentLabelScales: (donutOptions: DonutSpecOptions) => ThresholdScale[];
1
+ import { ColorValueRef, GroupMark, ProductionRule, Signal, SourceData, TextMark, TextValueRef } from 'vega';
2
+ import { DonutSpecOptions, SegmentLabelSpecOptions } from '../types/index.js';
4
3
  export declare const getSegmentLabelSignals: (donutOptions: DonutSpecOptions) => Signal[];
5
4
  export declare const getSegmentLabelData: (donutOptions: DonutSpecOptions) => SourceData[];
6
5
  /**
@@ -40,19 +39,13 @@ export declare const getLabelValueFill: (donutOptions: DonutSpecOptions, restCol
40
39
  */
41
40
  export declare const getSegmentLabelValueText: ({ donutOptions, percent, percentFormat, value, valueFormat, }: SegmentLabelSpecOptions) => ProductionRule<TextValueRef> | undefined;
42
41
  /**
43
- * Gets the threshold scales that snap a donut's outer diameter to its rich SegmentLabel font sizes
44
- * @param donutOptions
45
- * @returns ThresholdScale[]
46
- */
47
- export declare const getRichSegmentLabelScales: (donutOptions: DonutSpecOptions) => ThresholdScale[];
48
- /**
49
- * Gets the signals that resolve rich SegmentLabel font sizes from the donut's outer diameter
42
+ * Gets the signals that resolve rich SegmentLabel font sizes from the donut's size tier
50
43
  * @param donutOptions
51
44
  * @returns Signal[]
52
45
  */
53
46
  export declare const getRichSegmentLabelSignals: (donutOptions: DonutSpecOptions) => Signal[];
54
47
  /**
55
- * Gets the derived, collision-adjusted data source rich SegmentLabel marks read from
48
+ * Gets the derived data source rich SegmentLabel marks read from
56
49
  * @param donutOptions
57
50
  * @returns SourceData[]
58
51
  */
@@ -69,4 +62,3 @@ export declare const getRichSegmentLabelValueText: (options: SegmentLabelSpecOpt
69
62
  * @returns GroupMark[]
70
63
  */
71
64
  export declare const getRichSegmentLabelMarks: (donutOptions: DonutSpecOptions) => GroupMark[];
72
- //# sourceMappingURL=segmentLabelUtils.d.ts.map
@@ -1,7 +1,6 @@
1
- import { FormatLocaleDefinition } from 'd3-format';
2
1
  import { FontWeight, Locale, NumberLocale, TimeLocale } from 'vega';
3
- import { LocaleCode, NumberLocaleCode, TimeLocaleCode } from '@spectrum-charts/locales';
4
- import { NumberFormat } from '../types';
2
+ import { LocaleCode, NumberLocaleCode, TimeLocaleCode, getLocale } from '@spectrum-charts/core-s2/locales';
3
+ import { NumberFormat } from '../types/index.js';
5
4
  export interface LabelDatum {
6
5
  index: number;
7
6
  label: string;
@@ -15,9 +14,13 @@ export declare const getExpressionFunctions: (locale?: Locale | LocaleCode | {
15
14
  formatLocaleCurrency: ({ value }: LabelDatum, currencyLocale: string, currencyCode: string, numberFormat: NumberFormat) => string;
16
15
  formatShortNumber: (value: number) => string;
17
16
  consoleLog: (value: any) => any;
17
+ cubicBezier: (x1: number, y1: number, x2: number, y2: number, t: number) => number;
18
+ donutSliceStrokeWidth: (requestedWidth: number, innerRadius: number, startAngle: number, endAngle: number, cutoff?: number) => number;
18
19
  formatHorizontalTimeAxisLabels: (datum: LabelDatum) => string;
19
20
  formatVerticalAxisTimeLabels: (datum: LabelDatum) => string;
20
21
  getLabelWidth: (text: string, fontWeight?: FontWeight, fontSize?: number) => number;
22
+ hoverFraction: (rows: HoverFractionRow[] | undefined, keyField: string, key: unknown, fallback: number, field?: string) => number;
23
+ isDonutLabelVisible: (data: Record<string, unknown>[], datum: Record<string, unknown>, hemisphereField: string, collisionBoxesField: string, priorityField: string, idField: string, hoveredId?: unknown) => boolean;
21
24
  truncateText: (text: string, maxWidth: number, fontWeight?: FontWeight, fontSize?: number) => string;
22
25
  };
23
26
  /**
@@ -25,14 +28,20 @@ export declare const getExpressionFunctions: (locale?: Locale | LocaleCode | {
25
28
  * @param numberLocale
26
29
  * @returns formatted string
27
30
  */
28
- export declare const formatShortNumber: (numberLocale?: string | FormatLocaleDefinition) => (value: number) => string;
31
+ export declare const formatShortNumber: (numberLocale?: string | NumberLocale) => (value: number) => string;
32
+ /**
33
+ * Formats a percent of total followed by the short number value, e.g. `65.2% (23K)`.
34
+ * @param locale
35
+ * @returns formatted string
36
+ */
37
+ export declare const formatPercentWithValue: (locale?: Parameters<typeof getLocale>[0]) => (percent: number, value: number) => string;
29
38
  /**
30
39
  * Formats currency values using a currency specific locale and currency code for the position and
31
40
  * type of currency symbol.
32
41
  * Applies thousands and decimal separators based on the numberFormat.
33
42
  * @returns string
34
43
  */
35
- export declare const formatLocaleCurrency: (numberLocale?: FormatLocaleDefinition) => ({ value }: LabelDatum, currencyLocale: string, currencyCode: string, numberFormat: NumberFormat) => string;
44
+ export declare const formatLocaleCurrency: (numberLocale?: NumberLocale) => ({ value }: LabelDatum, currencyLocale: string, currencyCode: string, numberFormat: NumberFormat) => string;
36
45
  /**
37
46
  * Hides labels that are the same as the previous label
38
47
  * @returns string
@@ -49,12 +58,61 @@ export declare const formatVerticalAxisTimeLabels: () => (datum: LabelDatum) =>
49
58
  * @param numberLocale
50
59
  * @returns formatted sting (HH:MM:SS)
51
60
  */
52
- export declare const formatTimeDurationLabels: (numberLocale?: FormatLocaleDefinition) => ({ value }: LabelDatum) => string;
61
+ export declare const formatTimeDurationLabels: (numberLocale?: NumberLocale) => ({ value }: LabelDatum) => string;
62
+ /**
63
+ * Keeps fixed-position donut labels in priority order when their rendered blocks do not overlap.
64
+ * @param data
65
+ * @param datum
66
+ * @param hemisphereField
67
+ * @param collisionBoxesField
68
+ * @param priorityField
69
+ * @param idField
70
+ * @param hoveredId
71
+ * @returns whether the label should be visible
72
+ */
73
+ export declare const isDonutLabelVisible: (data: Record<string, unknown>[], datum: Record<string, unknown>, hemisphereField: string, collisionBoxesField: string, priorityField: string, idField: string, hoveredId?: unknown) => boolean;
74
+ type HoverFractionRow = Record<string, unknown> & {
75
+ fraction?: number;
76
+ };
77
+ /**
78
+ * Returns a hover animation value (the fraction by default) for `key`, indexing the rows once per data array.
79
+ * @param rows - the hoverFractionData values
80
+ * @param keyField - the identity field the rows are keyed by
81
+ * @param key - the identity of the item being encoded
82
+ * @param fallback - the value to use when no row matches
83
+ * @param field - the row field to read
84
+ * @returns number
85
+ */
86
+ export declare const hoverFraction: (rows: HoverFractionRow[] | undefined, keyField: string, key: unknown, fallback: number, field?: string) => number;
87
+ /**
88
+ * Clamps a slice's stroke width so a sliver of fill stays visible at the inner radius.
89
+ * @param requestedWidth
90
+ * @param innerRadius
91
+ * @param startAngle
92
+ * @param endAngle
93
+ * @param cutoff - draw-in sweep angle; omit when not animating
94
+ * @returns stroke width in px
95
+ */
96
+ export declare const donutSliceStrokeWidth: (requestedWidth: number, innerRadius: number, startAngle: number, endAngle: number, cutoff?: number) => number;
97
+ /**
98
+ * Evaluates a CSS-style cubic-bezier easing curve (P0 = 0,0 and P3 = 1,1) at progress `t`.
99
+ * @param x1
100
+ * @param y1
101
+ * @param x2
102
+ * @param y2
103
+ * @param t - linear progress, clamped to 0-1
104
+ * @returns eased progress
105
+ */
106
+ export declare const cubicBezier: (x1: number, y1: number, x2: number, y2: number, t: number) => number;
53
107
  export declare const expressionFunctions: {
54
108
  consoleLog: (value: any) => any;
109
+ cubicBezier: (x1: number, y1: number, x2: number, y2: number, t: number) => number;
110
+ donutSliceStrokeWidth: (requestedWidth: number, innerRadius: number, startAngle: number, endAngle: number, cutoff?: number) => number;
55
111
  formatHorizontalTimeAxisLabels: (datum: LabelDatum) => string;
56
112
  formatVerticalAxisTimeLabels: (datum: LabelDatum) => string;
57
113
  getLabelWidth: (text: string, fontWeight?: FontWeight, fontSize?: number) => number;
114
+ hoverFraction: (rows: HoverFractionRow[] | undefined, keyField: string, key: unknown, fallback: number, field?: string) => number;
115
+ isDonutLabelVisible: (data: Record<string, unknown>[], datum: Record<string, unknown>, hemisphereField: string, collisionBoxesField: string, priorityField: string, idField: string, hoveredId?: unknown) => boolean;
58
116
  truncateText: (text: string, maxWidth: number, fontWeight?: FontWeight, fontSize?: number) => string;
59
117
  };
60
- //# sourceMappingURL=expressionFunctions.d.ts.map
118
+ export {};
@@ -1,2 +1 @@
1
- export * from './expressionFunctions';
2
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './expressionFunctions.js';
@@ -1,6 +1,5 @@
1
- export * from './chartSpecBuilder';
2
- export * from './specUtils';
3
- export * from './types';
4
- export * from './expressionFunctions';
5
- export * from './vegaEmbedUtils';
6
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './chartSpecBuilder.js';
2
+ export * from './specUtils.js';
3
+ export * from './types/index.js';
4
+ export * from './expressionFunctions/index.js';
5
+ export * from './vegaEmbedUtils.js';
@@ -1,5 +1,5 @@
1
1
  import { Scale } from 'vega';
2
- import { Facet } from './legendUtils';
2
+ import { Facet } from './legendUtils.js';
3
3
  /**
4
4
  * Goes through all the scales and finds all the facets that are used
5
5
  * A facet is a key in the data that is used to differentiate the data
@@ -22,4 +22,3 @@ export declare const getFacetsFromKeys: (keys: string[], scales: Scale[]) => {
22
22
  ordinalFacets: Facet[];
23
23
  continuousFacets: Facet[];
24
24
  };
25
- //# sourceMappingURL=legendFacetUtils.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { Data, Mark, NumericValueRef, ProductionRule } from 'vega';
2
- import { LegendOptions } from '../types';
2
+ import { LegendOptions } from '../types/index.js';
3
3
  export declare const getLegendHighlightSignals: (legends: LegendOptions[]) => string[];
4
4
  /**
5
5
  * Injects a legend hover rule into the hover target data for the chart.
@@ -45,4 +45,3 @@ export declare const encodingUsesScale: <T>(encoding?: ProductionRule<T>) => boo
45
45
  * @returns
46
46
  */
47
47
  export declare const flattenMarks: (marks: Mark[]) => Mark[];
48
- //# sourceMappingURL=legendHighlightUtils.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Data, Legend, Signal } from 'vega';
2
- import { ColorFacet, ColorScheme, FacetRef, HighlightedItem, LegendOptions, LegendSpecOptions, LineTypeFacet, LineWidthFacet, ScSpec, SymbolShapeFacet } from '../types';
3
- import { Facet } from './legendUtils';
2
+ import { ColorFacet, ColorScheme, FacetRef, HighlightedItem, LegendOptions, LegendSpecOptions, LineTypeFacet, LineWidthFacet, ScSpec, SymbolShapeFacet } from '../types/index.js';
3
+ import { Facet } from './legendUtils.js';
4
4
  export declare const addLegend: (state: ScSpec, args_0: LegendOptions & {
5
5
  colorScheme?: ColorScheme | undefined;
6
6
  index?: number | undefined;
@@ -39,4 +39,3 @@ export declare const addData: (state: Data[], args_0: LegendSpecOptions & {
39
39
  facets: string[];
40
40
  }) => Data[];
41
41
  export declare const addSignals: (state: Signal[], args_0: LegendSpecOptions) => Signal[];
42
- //# sourceMappingURL=legendSpecBuilder.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { LineMark } from 'vega';
2
- import { LegendSpecOptions } from '../types';
2
+ import { LegendSpecOptions } from '../types/index.js';
3
3
  export declare const opacityEncoding: ({
4
4
  value: number;
5
5
  } | {
@@ -8,4 +8,3 @@ export declare const opacityEncoding: ({
8
8
  })[];
9
9
  export declare const defaultMark: LineMark;
10
10
  export declare const defaultLegendOptions: LegendSpecOptions;
11
- //# sourceMappingURL=legendTestUtils.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { ColorValueRef, FilterTransform, LegendEncode, NumericValueRef, ProductionRule, SignalRef } from 'vega';
2
- import { ColorValueV6, FacetRef, FacetType, LegendSpecOptions, Position, SecondaryFacetType, UserMeta } from '../types';
2
+ import { ColorValueV6, FacetRef, FacetType, LegendSpecOptions, Position, SecondaryFacetType, UserMeta } from '../types/index.js';
3
3
  export interface Facet {
4
4
  facetType: FacetType | SecondaryFacetType;
5
5
  field: string;
@@ -10,6 +10,13 @@ export interface Facet {
10
10
  * so columns are based on real content rather than a fixed estimate.
11
11
  */
12
12
  export declare const getColumns: (position: Position, name: string, labelLimit?: number) => SignalRef | undefined;
13
+ /**
14
+ * Gets an expression for the legend's widest measured label, capped at the label limit.
15
+ * @param name legend name
16
+ * @param labelLimit
17
+ * @returns vega expression string
18
+ */
19
+ export declare const getMaxLabelWidthExpr: (name: string, labelLimit?: number) => string;
13
20
  /**
14
21
  * Gets the filter transform for hidden entries
15
22
  * @param hiddenEntries
@@ -58,4 +65,3 @@ export declare const mergeLegendEncodings: (encodings: LegendEncode[]) => Legend
58
65
  * @returns symbolShape
59
66
  */
60
67
  export declare const getSymbolType: (symbolShape: FacetRef<string> | undefined) => string;
61
- //# sourceMappingURL=legendUtils.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { NumericValueRef, ProductionRule, TextMark, Transforms } from 'vega';
2
- import { ColorScheme } from '../types';
2
+ import { ColorScheme } from '../types/index.js';
3
3
  type PositionRef = NumericValueRef | ProductionRule<NumericValueRef>;
4
4
  type FillOverride = {
5
5
  field: string;
@@ -36,4 +36,3 @@ export declare const getDirectLabelTextMarks: (backgroundMarkName: string, foreg
36
36
  */
37
37
  export declare const getLabelTransformTextMarks: (backgroundMarkName: string, foregroundMarkName: string, dataSource: string, textSignal: string, colorScheme: ColorScheme, labelTransform: Transforms, foregroundFillOverride?: FillOverride) => TextMark[];
38
38
  export {};
39
- //# sourceMappingURL=directLabelUtils.d.ts.map
@@ -1,6 +1,15 @@
1
- import { SourceData } from 'vega';
2
- import { HoverMatchRule } from '../marks/hoverAnimationUtils';
3
- import { LineSpecOptions } from '../types';
1
+ import { FilterTransform, SourceData } from 'vega';
2
+ import { HoverMatchRule } from '../marks/hoverAnimationUtils.js';
3
+ import { LineSpecOptions } from '../types/index.js';
4
+ /** Gets hover candidates whose metric positions are inside the plot. */
5
+ export declare const getInBoundsHoverData: (options: LineSpecOptions, source: string) => SourceData;
6
+ /**
7
+ * Gets a filter that keeps rows whose metric position is inside the plot.
8
+ * @param options - line spec options
9
+ * @param metric - metric field to check
10
+ * @returns FilterTransform
11
+ */
12
+ export declare const getInPlotMetricFilter: (options: LineSpecOptions, metric?: string) => FilterTransform;
4
13
  /**
5
14
  * gets the data used for highlighting hovered data points
6
15
  * @param name
@@ -40,4 +49,3 @@ export declare const getLineStaticPointData: (name: string, staticPoint: string
40
49
  * @returns HoverMatchRule[] - the hover interaction rules
41
50
  */
42
51
  export declare const getLineHoverRules: ({ interactiveMarkName, popoverMarkName, comboSiblingNames, isHighlightedByGroup }: LineSpecOptions) => HoverMatchRule[];
43
- //# sourceMappingURL=lineDataUtils.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { NumericValueRef, ProductionRule } from 'vega';
2
+ import { LineMarkOptions } from './lineUtils.js';
3
+ /**
4
+ * Gets the Y encoding for line marks with dual metric axis support
5
+ * @param lineMarkOptions - Line mark options including metricAxis and dualMetricAxis
6
+ * @param metric - The metric field name
7
+ * @returns Y encoding with conditional scale selection for dual metric axis
8
+ */
9
+ export declare const getLineYEncoding: (lineMarkOptions: LineMarkOptions, metric: string) => ProductionRule<NumericValueRef>;
10
+ export declare const getLineDeemphasisOpacitySignal: (name: string) => ProductionRule<NumericValueRef>;