@spectrum-charts/vega-spec-builder-s2 0.1.0 → 0.3.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 (338) hide show
  1. package/package.json +6 -7
  2. package/dist/@types/index.d.ts +0 -2
  3. package/dist/@types/index.d.ts.map +0 -1
  4. package/dist/@types/src/area/areaSpecBuilder.d.ts +0 -20
  5. package/dist/@types/src/area/areaSpecBuilder.d.ts.map +0 -1
  6. package/dist/@types/src/area/areaSpecBuilder.test.d.ts +0 -2
  7. package/dist/@types/src/area/areaSpecBuilder.test.d.ts.map +0 -1
  8. package/dist/@types/src/area/areaUtils.d.ts +0 -25
  9. package/dist/@types/src/area/areaUtils.d.ts.map +0 -1
  10. package/dist/@types/src/area/areaUtils.test.d.ts +0 -2
  11. package/dist/@types/src/area/areaUtils.test.d.ts.map +0 -1
  12. package/dist/@types/src/axis/axisLabelUtils.d.ts +0 -109
  13. package/dist/@types/src/axis/axisLabelUtils.d.ts.map +0 -1
  14. package/dist/@types/src/axis/axisLabelUtils.test.d.ts +0 -2
  15. package/dist/@types/src/axis/axisLabelUtils.test.d.ts.map +0 -1
  16. package/dist/@types/src/axis/axisReferenceLineUtils.d.ts +0 -50
  17. package/dist/@types/src/axis/axisReferenceLineUtils.d.ts.map +0 -1
  18. package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts +0 -2
  19. package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts.map +0 -1
  20. package/dist/@types/src/axis/axisSpecBuilder.d.ts +0 -69
  21. package/dist/@types/src/axis/axisSpecBuilder.d.ts.map +0 -1
  22. package/dist/@types/src/axis/axisSpecBuilder.test.d.ts +0 -2
  23. package/dist/@types/src/axis/axisSpecBuilder.test.d.ts.map +0 -1
  24. package/dist/@types/src/axis/axisTestUtils.d.ts +0 -6
  25. package/dist/@types/src/axis/axisTestUtils.d.ts.map +0 -1
  26. package/dist/@types/src/axis/axisThumbnailUtils.d.ts +0 -80
  27. package/dist/@types/src/axis/axisThumbnailUtils.d.ts.map +0 -1
  28. package/dist/@types/src/axis/axisThumbnailUtils.test.d.ts +0 -2
  29. package/dist/@types/src/axis/axisThumbnailUtils.test.d.ts.map +0 -1
  30. package/dist/@types/src/axis/axisTrellisUtils.d.ts +0 -34
  31. package/dist/@types/src/axis/axisTrellisUtils.d.ts.map +0 -1
  32. package/dist/@types/src/axis/axisTrellisUtils.test.d.ts +0 -2
  33. package/dist/@types/src/axis/axisTrellisUtils.test.d.ts.map +0 -1
  34. package/dist/@types/src/axis/axisUtils.d.ts +0 -85
  35. package/dist/@types/src/axis/axisUtils.d.ts.map +0 -1
  36. package/dist/@types/src/axis/axisUtils.test.d.ts +0 -2
  37. package/dist/@types/src/axis/axisUtils.test.d.ts.map +0 -1
  38. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts +0 -57
  39. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts.map +0 -1
  40. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts +0 -2
  41. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts.map +0 -1
  42. package/dist/@types/src/bar/barAnnotationUtils.d.ts +0 -46
  43. package/dist/@types/src/bar/barAnnotationUtils.d.ts.map +0 -1
  44. package/dist/@types/src/bar/barAnnotationUtils.test.d.ts +0 -2
  45. package/dist/@types/src/bar/barAnnotationUtils.test.d.ts.map +0 -1
  46. package/dist/@types/src/bar/barSpecBuilder.d.ts +0 -35
  47. package/dist/@types/src/bar/barSpecBuilder.d.ts.map +0 -1
  48. package/dist/@types/src/bar/barSpecBuilder.test.d.ts +0 -2
  49. package/dist/@types/src/bar/barSpecBuilder.test.d.ts.map +0 -1
  50. package/dist/@types/src/bar/barTestUtils.d.ts +0 -760
  51. package/dist/@types/src/bar/barTestUtils.d.ts.map +0 -1
  52. package/dist/@types/src/bar/barUtils.d.ts +0 -56
  53. package/dist/@types/src/bar/barUtils.d.ts.map +0 -1
  54. package/dist/@types/src/bar/barUtils.test.d.ts +0 -2
  55. package/dist/@types/src/bar/barUtils.test.d.ts.map +0 -1
  56. package/dist/@types/src/bar/dodgedBarUtils.d.ts +0 -4
  57. package/dist/@types/src/bar/dodgedBarUtils.d.ts.map +0 -1
  58. package/dist/@types/src/bar/dodgedBarUtils.test.d.ts +0 -151
  59. package/dist/@types/src/bar/dodgedBarUtils.test.d.ts.map +0 -1
  60. package/dist/@types/src/bar/stackedBarUtils.d.ts +0 -8
  61. package/dist/@types/src/bar/stackedBarUtils.d.ts.map +0 -1
  62. package/dist/@types/src/bar/stackedBarUtils.test.d.ts +0 -2
  63. package/dist/@types/src/bar/stackedBarUtils.test.d.ts.map +0 -1
  64. package/dist/@types/src/bar/trellisedBarUtils.d.ts +0 -23
  65. package/dist/@types/src/bar/trellisedBarUtils.d.ts.map +0 -1
  66. package/dist/@types/src/bar/trellisedBarUtils.test.d.ts +0 -2
  67. package/dist/@types/src/bar/trellisedBarUtils.test.d.ts.map +0 -1
  68. package/dist/@types/src/bullet/bulletDataUtils.d.ts +0 -27
  69. package/dist/@types/src/bullet/bulletDataUtils.d.ts.map +0 -1
  70. package/dist/@types/src/bullet/bulletDataUtils.test.d.ts +0 -2
  71. package/dist/@types/src/bullet/bulletDataUtils.test.d.ts.map +0 -1
  72. package/dist/@types/src/bullet/bulletMarkUtils.d.ts +0 -22
  73. package/dist/@types/src/bullet/bulletMarkUtils.d.ts.map +0 -1
  74. package/dist/@types/src/bullet/bulletMarkUtils.test.d.ts +0 -2
  75. package/dist/@types/src/bullet/bulletMarkUtils.test.d.ts.map +0 -1
  76. package/dist/@types/src/bullet/bulletSpecBuilder.d.ts +0 -11
  77. package/dist/@types/src/bullet/bulletSpecBuilder.d.ts.map +0 -1
  78. package/dist/@types/src/bullet/bulletSpecBuilder.test.d.ts +0 -2
  79. package/dist/@types/src/bullet/bulletSpecBuilder.test.d.ts.map +0 -1
  80. package/dist/@types/src/bullet/bulletTestUtils.d.ts +0 -4
  81. package/dist/@types/src/bullet/bulletTestUtils.d.ts.map +0 -1
  82. package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts +0 -32
  83. package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts.map +0 -1
  84. package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts +0 -2
  85. package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts.map +0 -1
  86. package/dist/@types/src/chartSpecBuilder.d.ts +0 -39
  87. package/dist/@types/src/chartSpecBuilder.d.ts.map +0 -1
  88. package/dist/@types/src/chartSpecBuilder.test.d.ts +0 -2
  89. package/dist/@types/src/chartSpecBuilder.test.d.ts.map +0 -1
  90. package/dist/@types/src/chartTooltip/chartTooltipUtils.d.ts +0 -54
  91. package/dist/@types/src/chartTooltip/chartTooltipUtils.d.ts.map +0 -1
  92. package/dist/@types/src/chartTooltip/chartTooltipUtils.test.d.ts +0 -2
  93. package/dist/@types/src/chartTooltip/chartTooltipUtils.test.d.ts.map +0 -1
  94. package/dist/@types/src/combo/comboSpecBuilder.d.ts +0 -9
  95. package/dist/@types/src/combo/comboSpecBuilder.d.ts.map +0 -1
  96. package/dist/@types/src/combo/comboSpecBuilder.test.d.ts +0 -2
  97. package/dist/@types/src/combo/comboSpecBuilder.test.d.ts.map +0 -1
  98. package/dist/@types/src/data/dataUtils.d.ts +0 -30
  99. package/dist/@types/src/data/dataUtils.d.ts.map +0 -1
  100. package/dist/@types/src/data/dataUtils.test.d.ts +0 -2
  101. package/dist/@types/src/data/dataUtils.test.d.ts.map +0 -1
  102. package/dist/@types/src/donut/donutSpecBuilder.d.ts +0 -13
  103. package/dist/@types/src/donut/donutSpecBuilder.d.ts.map +0 -1
  104. package/dist/@types/src/donut/donutSpecBuilder.test.d.ts +0 -2
  105. package/dist/@types/src/donut/donutSpecBuilder.test.d.ts.map +0 -1
  106. package/dist/@types/src/donut/donutSummaryUtils.d.ts +0 -71
  107. package/dist/@types/src/donut/donutSummaryUtils.d.ts.map +0 -1
  108. package/dist/@types/src/donut/donutSummaryUtils.test.d.ts +0 -2
  109. package/dist/@types/src/donut/donutSummaryUtils.test.d.ts.map +0 -1
  110. package/dist/@types/src/donut/donutTestUtils.d.ts +0 -3
  111. package/dist/@types/src/donut/donutTestUtils.d.ts.map +0 -1
  112. package/dist/@types/src/donut/donutUtils.d.ts +0 -4
  113. package/dist/@types/src/donut/donutUtils.d.ts.map +0 -1
  114. package/dist/@types/src/donut/segmentLabelUtils.d.ts +0 -27
  115. package/dist/@types/src/donut/segmentLabelUtils.d.ts.map +0 -1
  116. package/dist/@types/src/donut/segmentLabelUtils.test.d.ts +0 -2
  117. package/dist/@types/src/donut/segmentLabelUtils.test.d.ts.map +0 -1
  118. package/dist/@types/src/expressionFunctions/expressionFunctions.d.ts +0 -60
  119. package/dist/@types/src/expressionFunctions/expressionFunctions.d.ts.map +0 -1
  120. package/dist/@types/src/expressionFunctions/expressionFunctions.test.d.ts +0 -2
  121. package/dist/@types/src/expressionFunctions/expressionFunctions.test.d.ts.map +0 -1
  122. package/dist/@types/src/expressionFunctions/index.d.ts +0 -2
  123. package/dist/@types/src/expressionFunctions/index.d.ts.map +0 -1
  124. package/dist/@types/src/index.d.ts +0 -6
  125. package/dist/@types/src/index.d.ts.map +0 -1
  126. package/dist/@types/src/legend/legendFacetUtils.d.ts +0 -25
  127. package/dist/@types/src/legend/legendFacetUtils.d.ts.map +0 -1
  128. package/dist/@types/src/legend/legendFacetUtils.test.d.ts +0 -2
  129. package/dist/@types/src/legend/legendFacetUtils.test.d.ts.map +0 -1
  130. package/dist/@types/src/legend/legendHighlightUtils.d.ts +0 -28
  131. package/dist/@types/src/legend/legendHighlightUtils.d.ts.map +0 -1
  132. package/dist/@types/src/legend/legendHighlightUtils.test.d.ts +0 -2
  133. package/dist/@types/src/legend/legendHighlightUtils.test.d.ts.map +0 -1
  134. package/dist/@types/src/legend/legendSpecBuilder.d.ts +0 -42
  135. package/dist/@types/src/legend/legendSpecBuilder.d.ts.map +0 -1
  136. package/dist/@types/src/legend/legendSpecBuilder.test.d.ts +0 -2
  137. package/dist/@types/src/legend/legendSpecBuilder.test.d.ts.map +0 -1
  138. package/dist/@types/src/legend/legendTestUtils.d.ts +0 -11
  139. package/dist/@types/src/legend/legendTestUtils.d.ts.map +0 -1
  140. package/dist/@types/src/legend/legendUtils.d.ts +0 -61
  141. package/dist/@types/src/legend/legendUtils.d.ts.map +0 -1
  142. package/dist/@types/src/legend/legendUtils.test.d.ts +0 -2
  143. package/dist/@types/src/legend/legendUtils.test.d.ts.map +0 -1
  144. package/dist/@types/src/line/lineDataUtils.d.ts +0 -20
  145. package/dist/@types/src/line/lineDataUtils.d.ts.map +0 -1
  146. package/dist/@types/src/line/lineDataUtils.test.d.ts +0 -2
  147. package/dist/@types/src/line/lineDataUtils.test.d.ts.map +0 -1
  148. package/dist/@types/src/line/lineMarkUtils.d.ts +0 -26
  149. package/dist/@types/src/line/lineMarkUtils.d.ts.map +0 -1
  150. package/dist/@types/src/line/lineMarkUtils.test.d.ts +0 -2
  151. package/dist/@types/src/line/lineMarkUtils.test.d.ts.map +0 -1
  152. package/dist/@types/src/line/linePointUtils.d.ts +0 -71
  153. package/dist/@types/src/line/linePointUtils.d.ts.map +0 -1
  154. package/dist/@types/src/line/linePointUtils.test.d.ts +0 -2
  155. package/dist/@types/src/line/linePointUtils.test.d.ts.map +0 -1
  156. package/dist/@types/src/line/lineSpecBuilder.d.ts +0 -19
  157. package/dist/@types/src/line/lineSpecBuilder.d.ts.map +0 -1
  158. package/dist/@types/src/line/lineSpecBuilder.test.d.ts +0 -2
  159. package/dist/@types/src/line/lineSpecBuilder.test.d.ts.map +0 -1
  160. package/dist/@types/src/line/lineTestUtils.d.ts +0 -5
  161. package/dist/@types/src/line/lineTestUtils.d.ts.map +0 -1
  162. package/dist/@types/src/line/lineUtils.d.ts +0 -43
  163. package/dist/@types/src/line/lineUtils.d.ts.map +0 -1
  164. package/dist/@types/src/line/lineUtils.test.d.ts +0 -2
  165. package/dist/@types/src/line/lineUtils.test.d.ts.map +0 -1
  166. package/dist/@types/src/marks/markUtils.d.ts +0 -129
  167. package/dist/@types/src/marks/markUtils.d.ts.map +0 -1
  168. package/dist/@types/src/marks/markUtils.test.d.ts +0 -2
  169. package/dist/@types/src/marks/markUtils.test.d.ts.map +0 -1
  170. package/dist/@types/src/metricRange/metricRangeUtils.d.ts +0 -22
  171. package/dist/@types/src/metricRange/metricRangeUtils.d.ts.map +0 -1
  172. package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts +0 -2
  173. package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts.map +0 -1
  174. package/dist/@types/src/scale/scaleSpecBuilder.d.ts +0 -91
  175. package/dist/@types/src/scale/scaleSpecBuilder.d.ts.map +0 -1
  176. package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts +0 -2
  177. package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts.map +0 -1
  178. package/dist/@types/src/scale/scaleUtils.d.ts +0 -15
  179. package/dist/@types/src/scale/scaleUtils.d.ts.map +0 -1
  180. package/dist/@types/src/scale/scaleUtils.test.d.ts +0 -2
  181. package/dist/@types/src/scale/scaleUtils.test.d.ts.map +0 -1
  182. package/dist/@types/src/scatter/scatterAnnotation/index.d.ts +0 -2
  183. package/dist/@types/src/scatter/scatterAnnotation/index.d.ts.map +0 -1
  184. package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.d.ts +0 -6
  185. package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.d.ts.map +0 -1
  186. package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.test.d.ts +0 -2
  187. package/dist/@types/src/scatter/scatterAnnotation/scatterAnnotationUtils.test.d.ts.map +0 -1
  188. package/dist/@types/src/scatter/scatterMarkUtils.d.ts +0 -31
  189. package/dist/@types/src/scatter/scatterMarkUtils.d.ts.map +0 -1
  190. package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts +0 -2
  191. package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts.map +0 -1
  192. package/dist/@types/src/scatter/scatterSpecBuilder.d.ts +0 -27
  193. package/dist/@types/src/scatter/scatterSpecBuilder.d.ts.map +0 -1
  194. package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts +0 -2
  195. package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts.map +0 -1
  196. package/dist/@types/src/scatter/scatterTestUtils.d.ts +0 -3
  197. package/dist/@types/src/scatter/scatterTestUtils.d.ts.map +0 -1
  198. package/dist/@types/src/scatterPath/index.d.ts +0 -2
  199. package/dist/@types/src/scatterPath/index.d.ts.map +0 -1
  200. package/dist/@types/src/scatterPath/scatterPathUtils.d.ts +0 -37
  201. package/dist/@types/src/scatterPath/scatterPathUtils.d.ts.map +0 -1
  202. package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts +0 -2
  203. package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts.map +0 -1
  204. package/dist/@types/src/signal/signalSpecBuilder.d.ts +0 -42
  205. package/dist/@types/src/signal/signalSpecBuilder.d.ts.map +0 -1
  206. package/dist/@types/src/signal/signalSpecBuilder.test.d.ts +0 -2
  207. package/dist/@types/src/signal/signalSpecBuilder.test.d.ts.map +0 -1
  208. package/dist/@types/src/specTestUtils.d.ts +0 -9
  209. package/dist/@types/src/specTestUtils.d.ts.map +0 -1
  210. package/dist/@types/src/specUtils.d.ts +0 -110
  211. package/dist/@types/src/specUtils.d.ts.map +0 -1
  212. package/dist/@types/src/specUtils.test.d.ts +0 -2
  213. package/dist/@types/src/specUtils.test.d.ts.map +0 -1
  214. package/dist/@types/src/textUtils.d.ts +0 -11
  215. package/dist/@types/src/textUtils.d.ts.map +0 -1
  216. package/dist/@types/src/textUtils.test.d.ts +0 -2
  217. package/dist/@types/src/textUtils.test.d.ts.map +0 -1
  218. package/dist/@types/src/title/titleSpecBuilder.d.ts +0 -4
  219. package/dist/@types/src/title/titleSpecBuilder.d.ts.map +0 -1
  220. package/dist/@types/src/title/titleSpecBuilder.test.d.ts +0 -2
  221. package/dist/@types/src/title/titleSpecBuilder.test.d.ts.map +0 -1
  222. package/dist/@types/src/trendline/index.d.ts +0 -5
  223. package/dist/@types/src/trendline/index.d.ts.map +0 -1
  224. package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts +0 -72
  225. package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts.map +0 -1
  226. package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts +0 -2
  227. package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts.map +0 -1
  228. package/dist/@types/src/trendline/trendlineDataUtils.d.ts +0 -54
  229. package/dist/@types/src/trendline/trendlineDataUtils.d.ts.map +0 -1
  230. package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts +0 -2
  231. package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts.map +0 -1
  232. package/dist/@types/src/trendline/trendlineMarkUtils.d.ts +0 -70
  233. package/dist/@types/src/trendline/trendlineMarkUtils.d.ts.map +0 -1
  234. package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts +0 -2
  235. package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts.map +0 -1
  236. package/dist/@types/src/trendline/trendlineScaleUtils.d.ts +0 -9
  237. package/dist/@types/src/trendline/trendlineScaleUtils.d.ts.map +0 -1
  238. package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts +0 -2
  239. package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts.map +0 -1
  240. package/dist/@types/src/trendline/trendlineSignalUtils.d.ts +0 -4
  241. package/dist/@types/src/trendline/trendlineSignalUtils.d.ts.map +0 -1
  242. package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts +0 -2
  243. package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts.map +0 -1
  244. package/dist/@types/src/trendline/trendlineTestUtils.d.ts +0 -4
  245. package/dist/@types/src/trendline/trendlineTestUtils.d.ts.map +0 -1
  246. package/dist/@types/src/trendline/trendlineUtils.d.ts +0 -106
  247. package/dist/@types/src/trendline/trendlineUtils.d.ts.map +0 -1
  248. package/dist/@types/src/trendline/trendlineUtils.test.d.ts +0 -2
  249. package/dist/@types/src/trendline/trendlineUtils.test.d.ts.map +0 -1
  250. package/dist/@types/src/trendlineAnnotation/index.d.ts +0 -2
  251. package/dist/@types/src/trendlineAnnotation/index.d.ts.map +0 -1
  252. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts +0 -60
  253. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts.map +0 -1
  254. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts +0 -2
  255. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts.map +0 -1
  256. package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts +0 -35
  257. package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts.map +0 -1
  258. package/dist/@types/src/types/axis/axisSpec.types.d.ts +0 -148
  259. package/dist/@types/src/types/axis/axisSpec.types.d.ts.map +0 -1
  260. package/dist/@types/src/types/axis/axisThumbnailSpec.types.d.ts +0 -9
  261. package/dist/@types/src/types/axis/axisThumbnailSpec.types.d.ts.map +0 -1
  262. package/dist/@types/src/types/axis/index.d.ts +0 -5
  263. package/dist/@types/src/types/axis/index.d.ts.map +0 -1
  264. package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts +0 -34
  265. package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts.map +0 -1
  266. package/dist/@types/src/types/chartSpec.types.d.ts +0 -72
  267. package/dist/@types/src/types/chartSpec.types.d.ts.map +0 -1
  268. package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts +0 -31
  269. package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts.map +0 -1
  270. package/dist/@types/src/types/dialogs/chartTooltipSpec.types.d.ts +0 -14
  271. package/dist/@types/src/types/dialogs/chartTooltipSpec.types.d.ts.map +0 -1
  272. package/dist/@types/src/types/dialogs/index.d.ts +0 -3
  273. package/dist/@types/src/types/dialogs/index.d.ts.map +0 -1
  274. package/dist/@types/src/types/index.d.ts +0 -9
  275. package/dist/@types/src/types/index.d.ts.map +0 -1
  276. package/dist/@types/src/types/legendSpec.types.d.ts +0 -68
  277. package/dist/@types/src/types/legendSpec.types.d.ts.map +0 -1
  278. package/dist/@types/src/types/marks/areaSpec.types.d.ts +0 -41
  279. package/dist/@types/src/types/marks/areaSpec.types.d.ts.map +0 -1
  280. package/dist/@types/src/types/marks/barSpec.types.d.ts +0 -69
  281. package/dist/@types/src/types/marks/barSpec.types.d.ts.map +0 -1
  282. package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts +0 -15
  283. package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts.map +0 -1
  284. package/dist/@types/src/types/marks/bulletSpec.types.d.ts +0 -75
  285. package/dist/@types/src/types/marks/bulletSpec.types.d.ts.map +0 -1
  286. package/dist/@types/src/types/marks/comboSpec.types.d.ts +0 -11
  287. package/dist/@types/src/types/marks/comboSpec.types.d.ts.map +0 -1
  288. package/dist/@types/src/types/marks/donutSpec.types.d.ts +0 -36
  289. package/dist/@types/src/types/marks/donutSpec.types.d.ts.map +0 -1
  290. package/dist/@types/src/types/marks/index.d.ts +0 -11
  291. package/dist/@types/src/types/marks/index.d.ts.map +0 -1
  292. package/dist/@types/src/types/marks/lineSpec.types.d.ts +0 -61
  293. package/dist/@types/src/types/marks/lineSpec.types.d.ts.map +0 -1
  294. package/dist/@types/src/types/marks/scatterSpec.types.d.ts +0 -83
  295. package/dist/@types/src/types/marks/scatterSpec.types.d.ts.map +0 -1
  296. package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts +0 -22
  297. package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts.map +0 -1
  298. package/dist/@types/src/types/marks/supplemental/dountSummarySpec.types.d.ts +0 -18
  299. package/dist/@types/src/types/marks/supplemental/dountSummarySpec.types.d.ts.map +0 -1
  300. package/dist/@types/src/types/marks/supplemental/index.d.ts +0 -9
  301. package/dist/@types/src/types/marks/supplemental/index.d.ts.map +0 -1
  302. package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts +0 -30
  303. package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts.map +0 -1
  304. package/dist/@types/src/types/marks/supplemental/scatterAnnotationSpec.types.d.ts +0 -17
  305. package/dist/@types/src/types/marks/supplemental/scatterAnnotationSpec.types.d.ts.map +0 -1
  306. package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts +0 -24
  307. package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts.map +0 -1
  308. package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts +0 -24
  309. package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts.map +0 -1
  310. package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts +0 -32
  311. package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts.map +0 -1
  312. package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts +0 -62
  313. package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts.map +0 -1
  314. package/dist/@types/src/types/marks/vennSpec.types.d.ts +0 -30
  315. package/dist/@types/src/types/marks/vennSpec.types.d.ts.map +0 -1
  316. package/dist/@types/src/types/specUtil.types.d.ts +0 -97
  317. package/dist/@types/src/types/specUtil.types.d.ts.map +0 -1
  318. package/dist/@types/src/types/spectrumVizColor.types.d.ts +0 -9
  319. package/dist/@types/src/types/spectrumVizColor.types.d.ts.map +0 -1
  320. package/dist/@types/src/types/titleSpec.types.d.ts +0 -16
  321. package/dist/@types/src/types/titleSpec.types.d.ts.map +0 -1
  322. package/dist/@types/src/vegaEmbedUtils.d.ts +0 -35
  323. package/dist/@types/src/vegaEmbedUtils.d.ts.map +0 -1
  324. package/dist/@types/src/vegaEmbedUtils.test.d.ts +0 -2
  325. package/dist/@types/src/vegaEmbedUtils.test.d.ts.map +0 -1
  326. package/dist/@types/src/venn/vennSpecBuilder.d.ts +0 -19
  327. package/dist/@types/src/venn/vennSpecBuilder.d.ts.map +0 -1
  328. package/dist/@types/src/venn/vennSpecBuilder.test.d.ts +0 -2
  329. package/dist/@types/src/venn/vennSpecBuilder.test.d.ts.map +0 -1
  330. package/dist/@types/src/venn/vennTestUtils.d.ts +0 -8
  331. package/dist/@types/src/venn/vennTestUtils.d.ts.map +0 -1
  332. package/dist/@types/src/venn/vennUtils.d.ts +0 -35
  333. package/dist/@types/src/venn/vennUtils.d.ts.map +0 -1
  334. package/dist/@types/src/venn/vennUtils.test.d.ts +0 -2
  335. package/dist/@types/src/venn/vennUtils.test.d.ts.map +0 -1
  336. package/dist/index.js +0 -3
  337. package/dist/index.js.LICENSE.txt +0 -3
  338. package/dist/index.js.map +0 -1
@@ -1,106 +0,0 @@
1
- import { SignalRef } from 'vega';
2
- import { AggregateMethod, BarSpecOptions, ColorFacet, LineSpecOptions, LineTypeFacet, Orientation, RegressionMethod as RscRegressionMethod, ScaleType, ScatterSpecOptions, TrendlineMethod, TrendlineOptions, TrendlineSpecOptions } from '../types';
3
- /** These are all the spec options that currently support trendlines */
4
- export type TrendlineParentOptions = LineSpecOptions | ScatterSpecOptions | BarSpecOptions;
5
- /**
6
- * gets all the trendlines from the children and applies all the default trendline options
7
- * @param children
8
- * @param markName
9
- * @returns TrendlineSpecOptions[]
10
- */
11
- export declare const getTrendlines: (markOptions: TrendlineParentOptions) => TrendlineSpecOptions[];
12
- /**
13
- * applies all the default trendline options
14
- * @param param0
15
- * @param markName
16
- * @param index
17
- * @returns TrendlineSpecOptions
18
- */
19
- export declare const applyTrendlinePropDefaults: (markOptions: TrendlineParentOptions, { chartTooltips, color, dimensionExtent, dimensionRange, displayOnHover, highlightRawPoint, lineType, lineWidth, method, opacity, orientation, trendlineAnnotations, ...opts }: TrendlineOptions, index: number) => TrendlineSpecOptions;
20
- /**
21
- * Gets the color from the parent options.
22
- * Simplifies dual facet colors into a single facet
23
- * @param color
24
- * @returns color
25
- */
26
- export declare const getTrendlineColorFromMarkOptions: (color: TrendlineParentOptions['color']) => ColorFacet;
27
- /**
28
- * Gets the color from the parent options.
29
- * Simplifies dual facet colors into a single facet
30
- * @param lineType
31
- * @returns color
32
- */
33
- export declare const getTrendlineLineTypeFromMarkOptions: (lineType: TrendlineParentOptions['lineType']) => LineTypeFacet;
34
- /**
35
- * Gets the metric and dimension for the trendline, taking into account the orientation.
36
- * if isDimensionNormalized is true, the trendlineDimension will have `Normalized` appended to it
37
- * @param dimension
38
- * @param metric
39
- * @param orientation
40
- * @param isDimensionNormalized
41
- * @returns \{trendlineDimension: string, trendlineMetric: string}
42
- */
43
- export declare const getTrendlineDimensionMetric: (dimension: string, metric: string, orientation: Orientation, isDimensionNormalized: boolean) => {
44
- trendlineDimension: string;
45
- trendlineMetric: string;
46
- };
47
- /**
48
- * If the dimension should be normalized, returns the normalized dimension name, otherwise returns the original dimension
49
- * @param dimension
50
- * @param method
51
- * @param scaleType
52
- * @returns dimension name
53
- */
54
- export declare const normalizeTrendlineDimensionName: (dimension: string, isDimensionNormalized: boolean) => string;
55
- /**
56
- * determines if the supplied method is an aggregate method (average, median)
57
- * @see https://vega.github.io/vega/docs/transforms/aggregate/
58
- * @param method
59
- * @returns boolean
60
- */
61
- export declare const isAggregateMethod: (method: TrendlineMethod) => method is AggregateMethod;
62
- /**
63
- * determines if the supplied method is a regression method
64
- * @see https://vega.github.io/vega/docs/transforms/regression/
65
- * @param method
66
- * @returns boolean
67
- */
68
- export declare const isRegressionMethod: (method: TrendlineMethod) => method is RscRegressionMethod;
69
- /**
70
- * determines if the supplied method is a windowing method
71
- * @see https://vega.github.io/vega/docs/transforms/window/
72
- * @param method
73
- * @returns boolean
74
- */
75
- export declare const isWindowMethod: (method: TrendlineMethod) => method is `movingAverage-${number}`;
76
- /**
77
- * determines if the supplied method is a polynomial method
78
- * @see https://vega.github.io/vega/docs/transforms/regression/
79
- * @param method
80
- * @returns boolean
81
- */
82
- export declare const isPolynomialMethod: (method: TrendlineMethod) => boolean;
83
- /**
84
- * determines if any trendlines use the normalized dimension
85
- * @param markOptions
86
- * @returns boolean
87
- */
88
- export declare const hasTrendlineWithNormalizedDimension: (markOptions: TrendlineParentOptions) => boolean;
89
- /**
90
- * gets the order of the polynomial
91
- * y = a + b * x + … + k * pow(x, order)
92
- * @see https://vega.github.io/vega/docs/transforms/regression/
93
- * @param method trendline method
94
- * @returns order
95
- */
96
- export declare const getPolynomialOrder: (method: TrendlineMethod) => number;
97
- /**
98
- * gets the extent used in the regression transform
99
- * @param dimensionExtent
100
- * @param name
101
- * @param isNormalized
102
- * @returns
103
- */
104
- export declare const getRegressionExtent: (dimensionExtent: TrendlineSpecOptions['dimensionExtent'], name: string, isNormalized: boolean) => SignalRef;
105
- export declare const getTrendlineScaleType: (markOptions: TrendlineParentOptions, trendlineOrientation: Orientation) => ScaleType;
106
- //# sourceMappingURL=trendlineUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trendlineUtils.d.ts","sourceRoot":"","sources":["../../../../src/trendline/trendlineUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAIjC,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,eAAe,EACf,aAAa,EACb,WAAW,EACX,gBAAgB,IAAI,mBAAmB,EACvC,SAAS,EACT,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EAErB,MAAM,UAAU,CAAC;AAElB,uEAAuE;AACvE,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAAG,kBAAkB,GAAG,cAAc,CAAC;AAE3F;;;;;GAKG;AACH,eAAO,MAAM,aAAa,gBAAiB,sBAAsB,KAAG,oBAAoB,EAEvF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,gBACxB,sBAAsB,kLAehC,gBAAgB,SACZ,MAAM,KACZ,oBAiCF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,UAAW,sBAAsB,CAAC,OAAO,CAAC,KAAG,UAEzF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,aAAc,sBAAsB,CAAC,UAAU,CAAC,KAAG,aAElG,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,cAC3B,MAAM,UACT,MAAM,eACD,WAAW,yBACD,OAAO,KAC7B;IAAE,kBAAkB,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAUvD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,cAAe,MAAM,yBAAyB,OAAO,WACnC,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,WAAY,eAAe,8BACjB,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,WAAY,eAAe,kCAC8B,CAAC;AAEzF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,WAAY,eAAe,wCAAgE,CAAC;AAEvH;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,WAAY,eAAe,KAAG,OACiB,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,gBAAiB,sBAAsB,KAAG,OAOzF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,WAAY,eAAe,KAAG,MAe5D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,oBACb,oBAAoB,CAAC,iBAAiB,CAAC,QAClD,MAAM,gBACE,OAAO,KACpB,SAoBF,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBACnB,sBAAsB,wBACb,WAAW,KAChC,SAIF,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=trendlineUtils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trendlineUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/trendline/trendlineUtils.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './trendlineAnnotationUtils';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/trendlineAnnotation/index.ts"],"names":[],"mappings":"AAYA,cAAc,4BAA4B,CAAC"}
@@ -1,60 +0,0 @@
1
- import { ColorValueRef, GroupMark, NumericValueRef, ProductionRule, RectMark, TextMark } from 'vega';
2
- import { ColorFacet, TrendlineAnnotationOptions, TrendlineAnnotationSpecOptions, TrendlineSpecOptions } from '../types';
3
- /**
4
- * Applies all trendline annotation defaults
5
- * @param trenlineAnnotationOptions
6
- * @param index
7
- * @param trendlineOptions
8
- * @param markName
9
- * @returns TrendlineAnnotationSpecOptions
10
- */
11
- export declare const getTrendlineAnnotationSpecOptions: ({ badge, dimensionValue, numberFormat, prefix }: TrendlineAnnotationOptions, index: number, { colorScheme, dimensionExtent, dimensionScaleType, displayOnHover, lineWidth, orientation, trendlineColor, trendlineDimension, name: trendlineName, }: TrendlineSpecOptions, markName: string) => TrendlineAnnotationSpecOptions;
12
- /**
13
- * Gets all the annotations on a trendline
14
- * @param trendlineOptions
15
- * @param markName
16
- * @returns TrendlineAnnotationSpecOptions[]
17
- */
18
- export declare const getTrendlineAnnotations: (trendlineOptions: TrendlineSpecOptions, markName: string) => TrendlineAnnotationSpecOptions[];
19
- /**
20
- * Gets all the trendline annotation marks
21
- * @param trendlineOptions
22
- * @param markName
23
- * @returns GroupMark[]
24
- */
25
- export declare const getTrendlineAnnotationMarks: (trendlineOptions: TrendlineSpecOptions, markName: string) => GroupMark[];
26
- /**
27
- * Gets the correct x rule for the annotation point
28
- * @param trendlineAnnotationOptions
29
- * @returns NumericValueRef
30
- */
31
- export declare const getTrendlineAnnotationPointX: ({ dimensionValue, trendlineDimension, trendlineDimensionExtent, trendlineDimensionScaleType, trendlineOrientation, }: TrendlineAnnotationSpecOptions) => NumericValueRef;
32
- /**
33
- * Gets the correct y rule for the annotation point
34
- * @param trendlineAnnotationOptions
35
- * @returns NumericValueRef
36
- */
37
- export declare const getTrendlineAnnotationPointY: ({ dimensionValue, trendlineDimension, trendlineDimensionExtent, trendlineOrientation, }: TrendlineAnnotationSpecOptions) => NumericValueRef;
38
- /**
39
- * Gets the annotation text mark
40
- * @param trendlineAnnotationOptions
41
- * @returns TextMark
42
- */
43
- export declare const getTrendlineAnnotationTextMark: (annotation: TrendlineAnnotationSpecOptions) => TextMark;
44
- /**
45
- * Get's the encoding for the annotation text fill.
46
- * Includes a color contrast check to ensure the text is visually a11y.
47
- * @param trendlineAnnotationOptions
48
- * @returns fill ProductionRule
49
- */
50
- export declare const getTextFill: ({ badge, colorScheme, trendlineColor, }: TrendlineAnnotationSpecOptions) => ProductionRule<ColorValueRef> | undefined;
51
- export declare const getTrendlineAnnotationBadgeMark: ({ badge, colorScheme, name, trendlineColor, }: TrendlineAnnotationSpecOptions) => RectMark[];
52
- /**
53
- * Gets the key used for color.
54
- * Since some of the marks base their data off of previous marks, the datum might be nested.
55
- * @param trendlineColor
56
- * @param datumOrder how many levels deep the datum is (ex. 1 becomes datum.color, 2 becomes datum.datum.color, etc.)
57
- * @returns
58
- */
59
- export declare const getColorKey: (trendlineColor: ColorFacet, datumOrder?: number) => ColorFacet;
60
- //# sourceMappingURL=trendlineAnnotationUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trendlineAnnotationUtils.d.ts","sourceRoot":"","sources":["../../../../src/trendlineAnnotation/trendlineAnnotationUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,QAAQ,EAAc,QAAQ,EAAE,MAAM,MAAM,CAAC;AAYjH,OAAO,EAAE,UAAU,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAExH;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,oDAC+B,0BAA0B,SAC9F,MAAM,0JAWV,oBAAoB,YACb,MAAM,KACf,8BAgBD,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,qBAChB,oBAAoB,YAC5B,MAAM,KACf,8BAA8B,EAIhC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,qBAAsB,oBAAoB,YAAY,MAAM,KAAG,SAAS,EAiB/G,CAAC;AA0BF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,yHAMtC,8BAA8B,KAAG,eAanC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,4FAKtC,8BAA8B,KAAG,eAanC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,eAAgB,8BAA8B,KAAG,QA0B3F,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,4CAIrB,8BAA8B,KAAG,eAAe,aAAa,CAAC,GAAG,SAYnE,CAAC;AAEF,eAAO,MAAM,+BAA+B,kDAKzC,8BAA8B,KAAG,QAAQ,EAyB3C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,mBAAoB,UAAU,eAAc,MAAM,KAAO,UAKhF,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=trendlineAnnotationUtils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trendlineAnnotationUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/trendlineAnnotation/trendlineAnnotationUtils.test.ts"],"names":[],"mappings":""}
@@ -1,35 +0,0 @@
1
- import { ColorScheme } from '../chartSpec.types';
2
- import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
3
- import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
4
- import { PartiallyRequired } from '../specUtil.types';
5
- import { SpectrumColor } from '../spectrumVizColor.types';
6
- export type AxisAnnotationFormat = 'span' | 'summary';
7
- export type Option = {
8
- /** The id of the annotation to apply these options to */
9
- id: string;
10
- /** The color of the icon and range lines */
11
- color?: SpectrumColor | string;
12
- };
13
- export interface AxisAnnotationOptions {
14
- /** the color to use for the annotation icon and span lines if a color isn't specified in options or multiple annotations fall in the same icon */
15
- color?: SpectrumColor | string;
16
- /** data field where the annotation ids are listed for each data point */
17
- dataKey?: string;
18
- /** show annotations as a horizontal span of icons or a single summary icon */
19
- format?: AxisAnnotationFormat;
20
- /** unique name for this annotation */
21
- name?: string;
22
- /** how far from the bottom of the chart do the annotations display */
23
- offset?: number;
24
- /** options specific to each annotation in the data */
25
- options?: Option[];
26
- chartPopovers?: ChartPopoverOptions[];
27
- chartTooltips?: ChartTooltipOptions[];
28
- }
29
- type AxisAnnotationOptionsWithDefaults = 'chartPopovers' | 'chartTooltips' | 'color' | 'dataKey' | 'format' | 'name' | 'offset' | 'options';
30
- export interface AxisAnnotationSpecOptions extends PartiallyRequired<AxisAnnotationOptions, AxisAnnotationOptionsWithDefaults> {
31
- axisName: string;
32
- colorScheme: ColorScheme;
33
- }
34
- export {};
35
- //# sourceMappingURL=axisAnnotationSpec.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisAnnotationSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/axis/axisAnnotationSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtD,MAAM,MAAM,MAAM,GAAG;IACnB,yDAAyD;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,6CAA6C;IAC7C,KAAK,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;CAChC,CAAC;AACF,MAAM,WAAW,qBAAqB;IACpC,kJAAkJ;IAClJ,KAAK,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;IAC/B,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAGnB,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACvC;AAED,KAAK,iCAAiC,GAClC,eAAe,GACf,eAAe,GACf,OAAO,GACP,SAAS,GACT,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,WAAW,yBACf,SAAQ,iBAAiB,CAAC,qBAAqB,EAAE,iCAAiC,CAAC;IACnF,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CAC1B"}
@@ -1,148 +0,0 @@
1
- import { Align, Baseline, FontWeight, NumberValue, ScaleType } from 'vega';
2
- import { ColorScheme } from '../chartSpec.types';
3
- import { NumberFormat, Orientation, PartiallyRequired, Position } from '../specUtil.types';
4
- import { AxisAnnotationOptions } from './axisAnnotationSpec.types';
5
- import { AxisThumbnailOptions } from './axisThumbnailSpec.types';
6
- import { ReferenceLineOptions } from './referenceLineSpec.types';
7
- export type Granularity = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
8
- /**
9
- * `center` will set the align to `center` for horizontal axes and the baseline to `middle` for vertical axes.
10
- *
11
- * `start` will set the align to `left` for horizontal axes and the baseline to `top` for vertical axes.
12
- *
13
- * `end` will set the align to `right` for horizontal axes and the baseline to `bottom` for vertical axes.
14
- */
15
- export type LabelAlign = 'center' | 'start' | 'end';
16
- export type LabelFormat = 'duration' | 'linear' | 'percentage' | 'time';
17
- export type Label = {
18
- /** The axis value that this label is anchored to */
19
- value: string | number;
20
- /** Sets the display value of the label, if undefined, the value will be the label */
21
- label?: string;
22
- /** Alignment of the label, defaults to center */
23
- align?: LabelAlign;
24
- /** Font weight of the label, defaults to normal */
25
- fontWeight?: FontWeight;
26
- };
27
- export type SubLabel = {
28
- /** The axis value that this sublabel is anchored to */
29
- value: string | number;
30
- /** The display value of the sublabel */
31
- subLabel: string;
32
- /** Alignment of the label, defaults to center */
33
- align?: LabelAlign;
34
- /** Font weight of the label, defaults to normal */
35
- fontWeight?: FontWeight;
36
- };
37
- export interface AxisOptions {
38
- /** Sets the name of the component. */
39
- name?: string;
40
- /** Sets the where the axis is placed on the chart */
41
- position: Position;
42
- /** Adds a baseline rule for this axis */
43
- baseline?: boolean;
44
- /**
45
- * Adds an offset to the baseline.
46
- * If basline is false then this prop is ignored.
47
- * If baseline is drawn relative to a categorical axis, this prop is ignored
48
- */
49
- baselineOffset?: number;
50
- /** Sets the granularity of the primary axis labels for time axis. If this axis is not for a time axis, this prop is ignored. */
51
- granularity?: Granularity;
52
- /** Displays gridlines at each tick location */
53
- grid?: boolean;
54
- /** Hides the axis labels. If labels have been explicitly added using the `labels` prop, these will still be visible */
55
- hideDefaultLabels?: boolean;
56
- /** Sets the alignment of axis labels */
57
- labelAlign?: LabelAlign;
58
- /** Sets the font weight of axis labels */
59
- labelFontWeight?: FontWeight;
60
- /** Sets the format of the axis labels */
61
- labelFormat?: LabelFormat;
62
- /** Sets the orientation of the label. Defaults to horizontal. */
63
- labelOrientation?: Orientation;
64
- /**
65
- * Sets the maximum allowed length, in pixels, of axis tick labels. Defaults to 180.
66
- *
67
- * Note: Vega's layout calculations are based on 180, so alignment may be affected if setting greater thatn 180.
68
- * Combine with truncateLabels to keep upper limit within bandwidth.
69
- */
70
- labelLimit?: number;
71
- /** Explicityly sets the axis labels (controlled). Providing a Label object allows for more control over the label display. */
72
- labels?: (Label | string | number)[];
73
- /** Sets the minimum number of axis ticks.
74
- * The default is 2. Smaller charts may want to use a minimum of 3 instead to show a more accurate representation of the data.
75
- */
76
- tickCountMinimum?: number;
77
- /** Sets the upper limit on the number of axis ticks.
78
- * Base tick, typically 0, is not included in the count. e.g. 0, 1, 2, 3 is considered 3 ticks.
79
- * Note: The final tick count may vary based on Vega's automatic calculations to create visually pleasing values.
80
- */
81
- tickCountLimit?: number;
82
- /** d3 number format specifier. Only valid if labelFormat is linear or undefined.
83
- *
84
- * see {@link https://d3js.org/d3-format#locale_format}
85
- */
86
- numberFormat?: NumberFormat;
87
- /** The minimum and maximum values for the axis, for example: `[-10, 10]`.
88
- *
89
- * Note: This prop is only supported for axes with `linear` or `time` scale types.
90
- */
91
- range?: [number, number];
92
- /** Adds sublabels below the axis lables */
93
- subLabels?: SubLabel[];
94
- /** Displays ticks at each label location */
95
- ticks?: boolean;
96
- /** Enables hover tooltips on axis labels for this axis. */
97
- hasTooltip?: boolean;
98
- /**
99
- * The minimum desired step between axis ticks, in terms of scale domain values.
100
- * For example, a value of 1 indicates that ticks should not be less than 1 unit apart.
101
- * https://vega.github.io/vega/docs/axes/
102
- *
103
- * Note: This prop is only supported for linear axes.
104
- */
105
- tickMinStep?: number;
106
- /** Sets the axis title */
107
- title?: string | string[];
108
- /** If the text is wider than the bandwidth that is labels, it will be truncated so that it stays within that bandwidth. */
109
- truncateLabels?: boolean;
110
- /**
111
- * Set the locale for currency formatting (affects symbol position and spacing).
112
- *
113
- * ⚠️ Limited Support:
114
- * Support for and changes to this prop will be limited.
115
- * Only use this if you need to override the currency locale formatting from the chart locale.
116
- *
117
- * **Important:** This prop requires 'currencyCode' prop to take effect.
118
- *
119
- * Example: 'en-US' ($100) vs 'de-DE' (100 $)
120
- */
121
- currencyLocale?: string;
122
- /**
123
- * Override the currency symbol from the chart locale with a specific currency code.
124
- *
125
- * ⚠️ Limited Support:
126
- * Support for and changes to this prop will be limited.
127
- * Only use this if you need to override the currency symbol from the chart locale.
128
- *
129
- * **Important:** This prop requires 'currencyLocale' prop to take effect.
130
- */
131
- currencyCode?: string;
132
- axisAnnotations?: AxisAnnotationOptions[];
133
- axisThumbnails?: AxisThumbnailOptions[];
134
- referenceLines?: ReferenceLineOptions[];
135
- }
136
- type AxisOptionsWithDefaults = 'axisAnnotations' | 'baseline' | 'baselineOffset' | 'granularity' | 'grid' | 'hideDefaultLabels' | 'labelAlign' | 'labelFontWeight' | 'labelOrientation' | 'labels' | 'numberFormat' | 'referenceLines' | 'axisThumbnails' | 'subLabels' | 'ticks';
137
- export interface AxisSpecOptions extends PartiallyRequired<AxisOptions, AxisOptionsWithDefaults> {
138
- name: string;
139
- colorScheme: ColorScheme;
140
- index: number;
141
- scaleType: ScaleType;
142
- vegaLabelAlign?: Align;
143
- vegaLabelBaseline?: Baseline;
144
- vegaLabelOffset?: NumberValue;
145
- vegaLabelPadding?: number;
146
- }
147
- export {};
148
- //# sourceMappingURL=axisSpec.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/axis/axisSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,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C;AAEZ,MAAM,WAAW,eAAgB,SAAQ,iBAAiB,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC9F,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
@@ -1,9 +0,0 @@
1
- import { PartiallyRequired } from '../specUtil.types';
2
- export interface AxisThumbnailOptions {
3
- /** The data field key that contains the URL of the thumbnail image. Defaults to 'thumbnail'. */
4
- urlKey?: string;
5
- }
6
- export interface AxisThumbnailSpecOptions extends PartiallyRequired<AxisThumbnailOptions, 'urlKey'> {
7
- name: string;
8
- }
9
- //# sourceMappingURL=axisThumbnailSpec.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisThumbnailSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/axis/axisThumbnailSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,oBAAoB;IACnC,gGAAgG;IAChG,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACjG,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,5 +0,0 @@
1
- export * from './axisSpec.types';
2
- export * from './axisAnnotationSpec.types';
3
- export * from './axisThumbnailSpec.types';
4
- export * from './referenceLineSpec.types';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/axis/index.ts"],"names":[],"mappings":"AAYA,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}
@@ -1,34 +0,0 @@
1
- import { FontWeight } from 'vega';
2
- import { ColorScheme } from '../chartSpec.types';
3
- import { LineType, PartiallyRequired } from '../specUtil.types';
4
- import { SpectrumColor } from '../spectrumVizColor.types';
5
- export type Icon = 'date' | 'sentimentNegative' | 'sentimentNeutral' | 'sentimentPositive';
6
- export interface ReferenceLineOptions {
7
- /** The color of the reference line. */
8
- color?: SpectrumColor | string;
9
- /** The value on the axis where the reference line should be drawn. */
10
- value: number | string;
11
- /** Adds an icon as the reference line label on the axis. */
12
- icon?: Icon | string;
13
- /** Color of the icon. */
14
- iconColor?: SpectrumColor | string;
15
- /** Position the line on the value, or between the previous/next value. Only supported in Bar visualizations. */
16
- position?: 'before' | 'after' | 'center';
17
- /** Axis text label. If not provided, the default label will be displayed. */
18
- label?: string;
19
- /** Specifies what layer the reference line should be drawn on. `front` will render the reference line infront of other marks. `back` will draw the refence line behind other marks. */
20
- layer?: 'back' | 'front';
21
- /** Color of the label. */
22
- labelColor?: SpectrumColor | string;
23
- /** Font weight of the label. */
24
- labelFontWeight?: FontWeight;
25
- /** Line type of the reference line. */
26
- lineType?: LineType;
27
- }
28
- type ReferenceLineOptionsWithDefaults = 'color' | 'iconColor' | 'labelColor' | 'layer' | 'labelFontWeight' | 'lineType';
29
- export interface ReferenceLineSpecOptions extends PartiallyRequired<ReferenceLineOptions, ReferenceLineOptionsWithDefaults> {
30
- colorScheme: ColorScheme;
31
- name: string;
32
- }
33
- export {};
34
- //# sourceMappingURL=referenceLineSpec.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"referenceLineSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/axis/referenceLineSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,mBAAmB,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AAE3F,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,KAAK,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;IAC/B,sEAAsE;IACtE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACrB,yBAAyB;IACzB,SAAS,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;IACnC,gHAAgH;IAChH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACzC,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uLAAuL;IACvL,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,0BAA0B;IAC1B,UAAU,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;IACpC,gCAAgC;IAChC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,KAAK,gCAAgC,GAAG,OAAO,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAExH,MAAM,WAAW,wBACf,SAAQ,iBAAiB,CAAC,oBAAoB,EAAE,gCAAgC,CAAC;IACjF,WAAW,EAAE,WAAW,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,72 +0,0 @@
1
- import { Data, Spec } from 'vega';
2
- import { AxisOptions } from './axis';
3
- import { LegendOptions } from './legendSpec.types';
4
- import { AreaOptions, BarOptions, BigNumberOptions, BulletOptions, ComboOptions, DonutOptions, LineOptions, ScatterOptions, VennOptions } from './marks';
5
- import { ChartSymbolShape, LineType, LineWidth, PartiallyRequired, SymbolSize } from './specUtil.types';
6
- import { Colors } from './spectrumVizColor.types';
7
- import { TitleOptions } from './titleSpec.types';
8
- export type ColorScheme = 'light' | 'dark';
9
- export type Height = number | `${number}%`;
10
- export type HighlightedItem = string | number | (string | number)[];
11
- export type TooltipAnchor = 'cursor' | 'mark';
12
- export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
13
- export type Width = number | 'auto' | string;
14
- export type ChartColors = Colors | Colors[];
15
- export type LineTypes = LineType[] | LineType[][];
16
- export type Opacities = number[] | number[][];
17
- export type SymbolShapes = ChartSymbolShape[] | ChartSymbolShape[][];
18
- export interface ChartHandle {
19
- copy: () => Promise<string>;
20
- download: (customFileName?: string) => Promise<string>;
21
- getBase64Png: () => Promise<string>;
22
- getSvg: () => Promise<string>;
23
- }
24
- export type SimpleData = Record<string, unknown>;
25
- export type ChartData = SimpleData | Data;
26
- export type MarkOptions = AreaOptions | BarOptions | BigNumberOptions | BulletOptions | ComboOptions | DonutOptions | LineOptions | ScatterOptions | VennOptions;
27
- export interface ChartOptions {
28
- /** Background color of the chart. */
29
- backgroundColor?: string;
30
- /** Color scale. Defaults to the `categorical16' color scale. */
31
- colors?: ChartColors;
32
- /** react-spectrum color scheme. @see https://react-spectrum.adobe.com/react-spectrum/Provider.html#props */
33
- colorScheme?: ColorScheme;
34
- data?: ChartData[];
35
- /** Chart description. Sets the aria-label attribute for the chart container. @see https://vega.github.io/vega/docs/specification/ */
36
- description?: string;
37
- /** Symbol shape scale. */
38
- symbolShapes?: SymbolShapes;
39
- /** Symbol size scale. Values define the min and max size in that order. */
40
- symbolSizes?: [SymbolSize, SymbolSize];
41
- /** Line type scale. */
42
- lineTypes?: LineTypes;
43
- /** Line width scale. */
44
- lineWidths?: LineWidth[];
45
- /** Opacity scale*/
46
- opacities?: Opacities;
47
- /** Chart title. If the `Title` component is provided as a child, the component will override this prop. */
48
- title?: string;
49
- /** Vega spec to be used instead of generating one using the component API. */
50
- UNSAFE_vegaSpec?: Spec;
51
- /** Series names to hide from the chart (controlled). */
52
- hiddenSeries?: string[];
53
- /** Data item id or ids that should be highlighted on the chart (controlled). Be sure to supply an `idKey` where each data point has a unique ID if you are using controlled highlighting of items. */
54
- highlightedItem?: HighlightedItem;
55
- /** height of chart*/
56
- chartHeight?: number;
57
- /** Series name to highlight on the chart (controlled). */
58
- highlightedSeries?: string | number;
59
- /** Data key that contains a unique ID for each data point in the array. */
60
- idKey?: string;
61
- /** Width of chart */
62
- chartWidth?: number;
63
- marks: MarkOptions[];
64
- axes?: AxisOptions[];
65
- legends?: LegendOptions[];
66
- titles?: TitleOptions[];
67
- }
68
- type ChartOptionsWithDefaults = 'axes' | 'backgroundColor' | 'colors' | 'colorScheme' | 'hiddenSeries' | 'idKey' | 'legends' | 'lineTypes' | 'lineWidths' | 'marks' | 'symbolShapes' | 'symbolSizes' | 'titles';
69
- export interface ChartSpecOptions extends PartiallyRequired<ChartOptions, ChartOptionsWithDefaults> {
70
- }
71
- export {};
72
- //# sourceMappingURL=chartSpec.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chartSpec.types.d.ts","sourceRoot":"","sources":["../../../../src/types/chartSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,cAAc,EACd,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,kBAAkB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E,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,KAAK,wBAAwB,GACzB,MAAM,GACN,iBAAiB,GACjB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,OAAO,GACP,SAAS,GACT,WAAW,GACX,YAAY,GACZ,OAAO,GACP,cAAc,GACd,aAAa,GACb,QAAQ,CAAC;AAEb,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB,CAAC,YAAY,EAAE,wBAAwB,CAAC;CAAG"}
@@ -1,31 +0,0 @@
1
- import { PartiallyRequired } from '../specUtil.types';
2
- export interface ChartPopoverOptions {
3
- /** Width of the popover */
4
- width?: number | 'auto';
5
- /** Minimum width of the popover */
6
- minWidth?: number;
7
- /** Maximum width of the popover */
8
- maxWidth?: number;
9
- /** Height of the popover */
10
- height?: number | 'auto';
11
- /** Minimum height of the popover */
12
- minHeight?: number;
13
- /** Maximum height of the popover */
14
- maxHeight?: number;
15
- /** handler that is called when the popover's open state changes */
16
- onOpenChange?: (isOpen: boolean) => void;
17
- /** The placement padding that should be applied between the popover and its surrounding container */
18
- containerPadding?: number;
19
- /** Whether the popover should be shown on right click */
20
- rightClick?: boolean;
21
- /** Sets which marks should be highlighted when a popover is visible. This feature is incomplete. */
22
- UNSAFE_highlightBy?: 'series' | 'dimension' | 'item' | string[];
23
- /** The margin that should be applied between the popover and its surrounding container */
24
- contentMargin?: number;
25
- }
26
- type ChartPopoverOptionsWithDefaults = 'UNSAFE_highlightBy';
27
- export interface ChartPopoverSpecOptions extends PartiallyRequired<ChartPopoverOptions, ChartPopoverOptionsWithDefaults> {
28
- markName: string;
29
- }
30
- export {};
31
- //# sourceMappingURL=chartPopoverSpec.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chartPopoverSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialogs/chartPopoverSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAClC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,qGAAqG;IACrG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qGAAqG;IACrG,kBAAkB,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;IAChE,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,KAAK,+BAA+B,GAAG,oBAAoB,CAAC;AAE5D,MAAM,WAAW,uBACf,SAAQ,iBAAiB,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;IAC/E,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,14 +0,0 @@
1
- import { PartiallyRequired } from '../specUtil.types';
2
- export interface ChartTooltipOptions {
3
- /** The keys in the data that will disable the tooltip if they have truthy values */
4
- excludeDataKeys?: string[];
5
- /** Sets which marks should be highlighted when a tooltip is visible */
6
- highlightBy?: 'series' | 'dimension' | 'item' | string[];
7
- targets?: ('dimensionArea' | 'item')[];
8
- }
9
- type ChartTooltipOptionsWithDefaults = 'highlightBy' | 'targets';
10
- export interface ChartTooltipSpecOptions extends PartiallyRequired<ChartTooltipOptions, ChartTooltipOptionsWithDefaults> {
11
- markName: string;
12
- }
13
- export {};
14
- //# sourceMappingURL=chartTooltipSpec.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chartTooltipSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialogs/chartTooltipSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAClC,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,uEAAuE;IACvE,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;IACzD,OAAO,CAAC,EAAE,CAAC,eAAe,GAAG,MAAM,CAAC,EAAE,CAAC;CACxC;AAED,KAAK,+BAA+B,GAAG,aAAa,GAAG,SAAS,CAAC;AAEjE,MAAM,WAAW,uBACf,SAAQ,iBAAiB,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;IAC/E,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -1,3 +0,0 @@
1
- export * from './chartPopoverSpec.types';
2
- export * from './chartTooltipSpec.types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialogs/index.ts"],"names":[],"mappings":"AAYA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
@@ -1,9 +0,0 @@
1
- export * from './chartSpec.types';
2
- export * from './legendSpec.types';
3
- export * from './spectrumVizColor.types';
4
- export * from './titleSpec.types';
5
- export * from './specUtil.types';
6
- export * from './axis';
7
- export * from './dialogs';
8
- export * from './marks';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAYA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}