@spectrum-charts/vega-spec-builder 0.0.1

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 (281) hide show
  1. package/LICENSE +201 -0
  2. package/dist/@types/index.d.ts +2 -0
  3. package/dist/@types/index.d.ts.map +1 -0
  4. package/dist/@types/src/area/areaSpecBuilder.d.ts +20 -0
  5. package/dist/@types/src/area/areaSpecBuilder.d.ts.map +1 -0
  6. package/dist/@types/src/area/areaSpecBuilder.test.d.ts +2 -0
  7. package/dist/@types/src/area/areaSpecBuilder.test.d.ts.map +1 -0
  8. package/dist/@types/src/area/areaUtils.d.ts +24 -0
  9. package/dist/@types/src/area/areaUtils.d.ts.map +1 -0
  10. package/dist/@types/src/area/areaUtils.test.d.ts +2 -0
  11. package/dist/@types/src/area/areaUtils.test.d.ts.map +1 -0
  12. package/dist/@types/src/axis/axisLabelUtils.d.ts +109 -0
  13. package/dist/@types/src/axis/axisLabelUtils.d.ts.map +1 -0
  14. package/dist/@types/src/axis/axisLabelUtils.test.d.ts +2 -0
  15. package/dist/@types/src/axis/axisLabelUtils.test.d.ts.map +1 -0
  16. package/dist/@types/src/axis/axisReferenceLineUtils.d.ts +50 -0
  17. package/dist/@types/src/axis/axisReferenceLineUtils.d.ts.map +1 -0
  18. package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts +2 -0
  19. package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts.map +1 -0
  20. package/dist/@types/src/axis/axisSpecBuilder.d.ts +34 -0
  21. package/dist/@types/src/axis/axisSpecBuilder.d.ts.map +1 -0
  22. package/dist/@types/src/axis/axisSpecBuilder.test.d.ts +2 -0
  23. package/dist/@types/src/axis/axisSpecBuilder.test.d.ts.map +1 -0
  24. package/dist/@types/src/axis/axisTestUtils.d.ts +6 -0
  25. package/dist/@types/src/axis/axisTestUtils.d.ts.map +1 -0
  26. package/dist/@types/src/axis/axisTrellisUtils.d.ts +34 -0
  27. package/dist/@types/src/axis/axisTrellisUtils.d.ts.map +1 -0
  28. package/dist/@types/src/axis/axisTrellisUtils.test.d.ts +2 -0
  29. package/dist/@types/src/axis/axisTrellisUtils.test.d.ts.map +1 -0
  30. package/dist/@types/src/axis/axisUtils.d.ts +73 -0
  31. package/dist/@types/src/axis/axisUtils.d.ts.map +1 -0
  32. package/dist/@types/src/axis/axisUtils.test.d.ts +2 -0
  33. package/dist/@types/src/axis/axisUtils.test.d.ts.map +1 -0
  34. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts +57 -0
  35. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts.map +1 -0
  36. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts +2 -0
  37. package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts.map +1 -0
  38. package/dist/@types/src/bar/barAnnotationUtils.d.ts +46 -0
  39. package/dist/@types/src/bar/barAnnotationUtils.d.ts.map +1 -0
  40. package/dist/@types/src/bar/barAnnotationUtils.test.d.ts +2 -0
  41. package/dist/@types/src/bar/barAnnotationUtils.test.d.ts.map +1 -0
  42. package/dist/@types/src/bar/barSpecBuilder.d.ts +32 -0
  43. package/dist/@types/src/bar/barSpecBuilder.d.ts.map +1 -0
  44. package/dist/@types/src/bar/barSpecBuilder.test.d.ts +2 -0
  45. package/dist/@types/src/bar/barSpecBuilder.test.d.ts.map +1 -0
  46. package/dist/@types/src/bar/barTestUtils.d.ts +760 -0
  47. package/dist/@types/src/bar/barTestUtils.d.ts.map +1 -0
  48. package/dist/@types/src/bar/barUtils.d.ts +36 -0
  49. package/dist/@types/src/bar/barUtils.d.ts.map +1 -0
  50. package/dist/@types/src/bar/barUtils.test.d.ts +2 -0
  51. package/dist/@types/src/bar/barUtils.test.d.ts.map +1 -0
  52. package/dist/@types/src/bar/dodgedBarUtils.d.ts +4 -0
  53. package/dist/@types/src/bar/dodgedBarUtils.d.ts.map +1 -0
  54. package/dist/@types/src/bar/dodgedBarUtils.test.d.ts +152 -0
  55. package/dist/@types/src/bar/dodgedBarUtils.test.d.ts.map +1 -0
  56. package/dist/@types/src/bar/stackedBarUtils.d.ts +8 -0
  57. package/dist/@types/src/bar/stackedBarUtils.d.ts.map +1 -0
  58. package/dist/@types/src/bar/stackedBarUtils.test.d.ts +2 -0
  59. package/dist/@types/src/bar/stackedBarUtils.test.d.ts.map +1 -0
  60. package/dist/@types/src/bar/trellisedBarUtils.d.ts +23 -0
  61. package/dist/@types/src/bar/trellisedBarUtils.d.ts.map +1 -0
  62. package/dist/@types/src/bar/trellisedBarUtils.test.d.ts +2 -0
  63. package/dist/@types/src/bar/trellisedBarUtils.test.d.ts.map +1 -0
  64. package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts +32 -0
  65. package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts.map +1 -0
  66. package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts +2 -0
  67. package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts.map +1 -0
  68. package/dist/@types/src/chartSpecBuilder.d.ts +42 -0
  69. package/dist/@types/src/chartSpecBuilder.d.ts.map +1 -0
  70. package/dist/@types/src/chartSpecBuilder.test.d.ts +2 -0
  71. package/dist/@types/src/chartSpecBuilder.test.d.ts.map +1 -0
  72. package/dist/@types/src/chartTooltip/chartTooltipUtils.d.ts +57 -0
  73. package/dist/@types/src/chartTooltip/chartTooltipUtils.d.ts.map +1 -0
  74. package/dist/@types/src/chartTooltip/chartTooltipUtils.test.d.ts +2 -0
  75. package/dist/@types/src/chartTooltip/chartTooltipUtils.test.d.ts.map +1 -0
  76. package/dist/@types/src/combo/comboSpecBuilder.d.ts +10 -0
  77. package/dist/@types/src/combo/comboSpecBuilder.d.ts.map +1 -0
  78. package/dist/@types/src/combo/comboSpecBuilder.test.d.ts +2 -0
  79. package/dist/@types/src/combo/comboSpecBuilder.test.d.ts.map +1 -0
  80. package/dist/@types/src/data/dataUtils.d.ts +30 -0
  81. package/dist/@types/src/data/dataUtils.d.ts.map +1 -0
  82. package/dist/@types/src/data/dataUtils.test.d.ts +2 -0
  83. package/dist/@types/src/data/dataUtils.test.d.ts.map +1 -0
  84. package/dist/@types/src/donut/donutSpecBuilder.d.ts +13 -0
  85. package/dist/@types/src/donut/donutSpecBuilder.d.ts.map +1 -0
  86. package/dist/@types/src/donut/donutSpecBuilder.test.d.ts +2 -0
  87. package/dist/@types/src/donut/donutSpecBuilder.test.d.ts.map +1 -0
  88. package/dist/@types/src/donut/donutSummaryUtils.d.ts +65 -0
  89. package/dist/@types/src/donut/donutSummaryUtils.d.ts.map +1 -0
  90. package/dist/@types/src/donut/donutSummaryUtils.test.d.ts +2 -0
  91. package/dist/@types/src/donut/donutSummaryUtils.test.d.ts.map +1 -0
  92. package/dist/@types/src/donut/donutTestUtils.d.ts +3 -0
  93. package/dist/@types/src/donut/donutTestUtils.d.ts.map +1 -0
  94. package/dist/@types/src/donut/donutUtils.d.ts +4 -0
  95. package/dist/@types/src/donut/donutUtils.d.ts.map +1 -0
  96. package/dist/@types/src/donut/segmentLabelUtils.d.ts +27 -0
  97. package/dist/@types/src/donut/segmentLabelUtils.d.ts.map +1 -0
  98. package/dist/@types/src/donut/segmentLabelUtils.test.d.ts +2 -0
  99. package/dist/@types/src/donut/segmentLabelUtils.test.d.ts.map +1 -0
  100. package/dist/@types/src/index.d.ts +4 -0
  101. package/dist/@types/src/index.d.ts.map +1 -0
  102. package/dist/@types/src/legend/legendFacetUtils.d.ts +25 -0
  103. package/dist/@types/src/legend/legendFacetUtils.d.ts.map +1 -0
  104. package/dist/@types/src/legend/legendFacetUtils.test.d.ts +2 -0
  105. package/dist/@types/src/legend/legendFacetUtils.test.d.ts.map +1 -0
  106. package/dist/@types/src/legend/legendHighlightUtils.d.ts +22 -0
  107. package/dist/@types/src/legend/legendHighlightUtils.d.ts.map +1 -0
  108. package/dist/@types/src/legend/legendHighlightUtils.test.d.ts +2 -0
  109. package/dist/@types/src/legend/legendHighlightUtils.test.d.ts.map +1 -0
  110. package/dist/@types/src/legend/legendSpecBuilder.d.ts +41 -0
  111. package/dist/@types/src/legend/legendSpecBuilder.d.ts.map +1 -0
  112. package/dist/@types/src/legend/legendSpecBuilder.test.d.ts +2 -0
  113. package/dist/@types/src/legend/legendSpecBuilder.test.d.ts.map +1 -0
  114. package/dist/@types/src/legend/legendTestUtils.d.ts +11 -0
  115. package/dist/@types/src/legend/legendTestUtils.d.ts.map +1 -0
  116. package/dist/@types/src/legend/legendUtils.d.ts +54 -0
  117. package/dist/@types/src/legend/legendUtils.d.ts.map +1 -0
  118. package/dist/@types/src/legend/legendUtils.test.d.ts +2 -0
  119. package/dist/@types/src/legend/legendUtils.test.d.ts.map +1 -0
  120. package/dist/@types/src/line/lineDataUtils.d.ts +19 -0
  121. package/dist/@types/src/line/lineDataUtils.d.ts.map +1 -0
  122. package/dist/@types/src/line/lineDataUtils.test.d.ts +2 -0
  123. package/dist/@types/src/line/lineDataUtils.test.d.ts.map +1 -0
  124. package/dist/@types/src/line/lineMarkUtils.d.ts +19 -0
  125. package/dist/@types/src/line/lineMarkUtils.d.ts.map +1 -0
  126. package/dist/@types/src/line/lineMarkUtils.test.d.ts +2 -0
  127. package/dist/@types/src/line/lineMarkUtils.test.d.ts.map +1 -0
  128. package/dist/@types/src/line/linePointUtils.d.ts +71 -0
  129. package/dist/@types/src/line/linePointUtils.d.ts.map +1 -0
  130. package/dist/@types/src/line/linePointUtils.test.d.ts +2 -0
  131. package/dist/@types/src/line/linePointUtils.test.d.ts.map +1 -0
  132. package/dist/@types/src/line/lineSpecBuilder.d.ts +13 -0
  133. package/dist/@types/src/line/lineSpecBuilder.d.ts.map +1 -0
  134. package/dist/@types/src/line/lineSpecBuilder.test.d.ts +2 -0
  135. package/dist/@types/src/line/lineSpecBuilder.test.d.ts.map +1 -0
  136. package/dist/@types/src/line/lineTestUtils.d.ts +3 -0
  137. package/dist/@types/src/line/lineTestUtils.d.ts.map +1 -0
  138. package/dist/@types/src/line/lineUtils.d.ts +33 -0
  139. package/dist/@types/src/line/lineUtils.d.ts.map +1 -0
  140. package/dist/@types/src/line/lineUtils.test.d.ts +2 -0
  141. package/dist/@types/src/line/lineUtils.test.d.ts.map +1 -0
  142. package/dist/@types/src/marks/markUtils.d.ts +128 -0
  143. package/dist/@types/src/marks/markUtils.d.ts.map +1 -0
  144. package/dist/@types/src/marks/markUtils.test.d.ts +2 -0
  145. package/dist/@types/src/marks/markUtils.test.d.ts.map +1 -0
  146. package/dist/@types/src/metricRange/metricRangeUtils.d.ts +27 -0
  147. package/dist/@types/src/metricRange/metricRangeUtils.d.ts.map +1 -0
  148. package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts +2 -0
  149. package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts.map +1 -0
  150. package/dist/@types/src/scale/scaleSpecBuilder.d.ts +86 -0
  151. package/dist/@types/src/scale/scaleSpecBuilder.d.ts.map +1 -0
  152. package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts +2 -0
  153. package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts.map +1 -0
  154. package/dist/@types/src/scatter/scatterMarkUtils.d.ts +31 -0
  155. package/dist/@types/src/scatter/scatterMarkUtils.d.ts.map +1 -0
  156. package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts +2 -0
  157. package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts.map +1 -0
  158. package/dist/@types/src/scatter/scatterSpecBuilder.d.ts +27 -0
  159. package/dist/@types/src/scatter/scatterSpecBuilder.d.ts.map +1 -0
  160. package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts +2 -0
  161. package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts.map +1 -0
  162. package/dist/@types/src/scatter/scatterTestUtils.d.ts +3 -0
  163. package/dist/@types/src/scatter/scatterTestUtils.d.ts.map +1 -0
  164. package/dist/@types/src/scatterPath/index.d.ts +2 -0
  165. package/dist/@types/src/scatterPath/index.d.ts.map +1 -0
  166. package/dist/@types/src/scatterPath/scatterPathUtils.d.ts +37 -0
  167. package/dist/@types/src/scatterPath/scatterPathUtils.d.ts.map +1 -0
  168. package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts +2 -0
  169. package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts.map +1 -0
  170. package/dist/@types/src/signal/signalSpecBuilder.d.ts +49 -0
  171. package/dist/@types/src/signal/signalSpecBuilder.d.ts.map +1 -0
  172. package/dist/@types/src/signal/signalSpecBuilder.test.d.ts +2 -0
  173. package/dist/@types/src/signal/signalSpecBuilder.test.d.ts.map +1 -0
  174. package/dist/@types/src/specTestUtils.d.ts +9 -0
  175. package/dist/@types/src/specTestUtils.d.ts.map +1 -0
  176. package/dist/@types/src/specUtils.d.ts +96 -0
  177. package/dist/@types/src/specUtils.d.ts.map +1 -0
  178. package/dist/@types/src/specUtils.test.d.ts +2 -0
  179. package/dist/@types/src/specUtils.test.d.ts.map +1 -0
  180. package/dist/@types/src/textUtils.d.ts +11 -0
  181. package/dist/@types/src/textUtils.d.ts.map +1 -0
  182. package/dist/@types/src/textUtils.test.d.ts +2 -0
  183. package/dist/@types/src/textUtils.test.d.ts.map +1 -0
  184. package/dist/@types/src/title/titleSpecBuilder.d.ts +4 -0
  185. package/dist/@types/src/title/titleSpecBuilder.d.ts.map +1 -0
  186. package/dist/@types/src/trendline/index.d.ts +5 -0
  187. package/dist/@types/src/trendline/index.d.ts.map +1 -0
  188. package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts +72 -0
  189. package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts.map +1 -0
  190. package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts +2 -0
  191. package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts.map +1 -0
  192. package/dist/@types/src/trendline/trendlineDataUtils.d.ts +54 -0
  193. package/dist/@types/src/trendline/trendlineDataUtils.d.ts.map +1 -0
  194. package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts +2 -0
  195. package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts.map +1 -0
  196. package/dist/@types/src/trendline/trendlineMarkUtils.d.ts +70 -0
  197. package/dist/@types/src/trendline/trendlineMarkUtils.d.ts.map +1 -0
  198. package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts +2 -0
  199. package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts.map +1 -0
  200. package/dist/@types/src/trendline/trendlineScaleUtils.d.ts +9 -0
  201. package/dist/@types/src/trendline/trendlineScaleUtils.d.ts.map +1 -0
  202. package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts +2 -0
  203. package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts.map +1 -0
  204. package/dist/@types/src/trendline/trendlineSignalUtils.d.ts +4 -0
  205. package/dist/@types/src/trendline/trendlineSignalUtils.d.ts.map +1 -0
  206. package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts +2 -0
  207. package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts.map +1 -0
  208. package/dist/@types/src/trendline/trendlineTestUtils.d.ts +4 -0
  209. package/dist/@types/src/trendline/trendlineTestUtils.d.ts.map +1 -0
  210. package/dist/@types/src/trendline/trendlineUtils.d.ts +106 -0
  211. package/dist/@types/src/trendline/trendlineUtils.d.ts.map +1 -0
  212. package/dist/@types/src/trendline/trendlineUtils.test.d.ts +2 -0
  213. package/dist/@types/src/trendline/trendlineUtils.test.d.ts.map +1 -0
  214. package/dist/@types/src/trendlineAnnotation/index.d.ts +2 -0
  215. package/dist/@types/src/trendlineAnnotation/index.d.ts.map +1 -0
  216. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts +60 -0
  217. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts.map +1 -0
  218. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts +2 -0
  219. package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts.map +1 -0
  220. package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts +35 -0
  221. package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts.map +1 -0
  222. package/dist/@types/src/types/axis/axisSpec.types.d.ts +128 -0
  223. package/dist/@types/src/types/axis/axisSpec.types.d.ts.map +1 -0
  224. package/dist/@types/src/types/axis/index.d.ts +4 -0
  225. package/dist/@types/src/types/axis/index.d.ts.map +1 -0
  226. package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts +32 -0
  227. package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts.map +1 -0
  228. package/dist/@types/src/types/chartSpec.types.d.ts +65 -0
  229. package/dist/@types/src/types/chartSpec.types.d.ts.map +1 -0
  230. package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts +27 -0
  231. package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts.map +1 -0
  232. package/dist/@types/src/types/dialogs/chartTooltipSpec.types.d.ts +13 -0
  233. package/dist/@types/src/types/dialogs/chartTooltipSpec.types.d.ts.map +1 -0
  234. package/dist/@types/src/types/dialogs/index.d.ts +3 -0
  235. package/dist/@types/src/types/dialogs/index.d.ts.map +1 -0
  236. package/dist/@types/src/types/index.d.ts +9 -0
  237. package/dist/@types/src/types/index.d.ts.map +1 -0
  238. package/dist/@types/src/types/legendSpec.types.d.ts +63 -0
  239. package/dist/@types/src/types/legendSpec.types.d.ts.map +1 -0
  240. package/dist/@types/src/types/marks/areaSpec.types.d.ts +40 -0
  241. package/dist/@types/src/types/marks/areaSpec.types.d.ts.map +1 -0
  242. package/dist/@types/src/types/marks/barSpec.types.d.ts +66 -0
  243. package/dist/@types/src/types/marks/barSpec.types.d.ts.map +1 -0
  244. package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts +15 -0
  245. package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts.map +1 -0
  246. package/dist/@types/src/types/marks/comboSpec.types.d.ts +11 -0
  247. package/dist/@types/src/types/marks/comboSpec.types.d.ts.map +1 -0
  248. package/dist/@types/src/types/marks/donutSpec.types.d.ts +36 -0
  249. package/dist/@types/src/types/marks/donutSpec.types.d.ts.map +1 -0
  250. package/dist/@types/src/types/marks/index.d.ts +9 -0
  251. package/dist/@types/src/types/marks/index.d.ts.map +1 -0
  252. package/dist/@types/src/types/marks/lineSpec.types.d.ts +58 -0
  253. package/dist/@types/src/types/marks/lineSpec.types.d.ts.map +1 -0
  254. package/dist/@types/src/types/marks/scatterSpec.types.d.ts +64 -0
  255. package/dist/@types/src/types/marks/scatterSpec.types.d.ts.map +1 -0
  256. package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts +20 -0
  257. package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts.map +1 -0
  258. package/dist/@types/src/types/marks/supplemental/dountSummarySpec.types.d.ts +18 -0
  259. package/dist/@types/src/types/marks/supplemental/dountSummarySpec.types.d.ts.map +1 -0
  260. package/dist/@types/src/types/marks/supplemental/index.d.ts +8 -0
  261. package/dist/@types/src/types/marks/supplemental/index.d.ts.map +1 -0
  262. package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts +30 -0
  263. package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts.map +1 -0
  264. package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts +24 -0
  265. package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts.map +1 -0
  266. package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts +24 -0
  267. package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts.map +1 -0
  268. package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts +32 -0
  269. package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts.map +1 -0
  270. package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts +62 -0
  271. package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts.map +1 -0
  272. package/dist/@types/src/types/specUtil.types.d.ts +89 -0
  273. package/dist/@types/src/types/specUtil.types.d.ts.map +1 -0
  274. package/dist/@types/src/types/spectrumVizColor.types.d.ts +9 -0
  275. package/dist/@types/src/types/spectrumVizColor.types.d.ts.map +1 -0
  276. package/dist/@types/src/types/titleSpec.types.d.ts +14 -0
  277. package/dist/@types/src/types/titleSpec.types.d.ts.map +1 -0
  278. package/dist/index.js +3 -0
  279. package/dist/index.js.LICENSE.txt +1 -0
  280. package/dist/index.js.map +1 -0
  281. package/package.json +34 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2019 Adobe
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ export * from './src';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAYA,cAAc,OAAO,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Data, Mark, Scale, Signal, SourceData, Spec } from 'vega';
2
+ import { AreaOptions, AreaSpecOptions, ColorScheme, HighlightedItem } from '../types';
3
+ export declare const addArea: (state: Spec, args_0: AreaOptions & {
4
+ colorScheme?: ColorScheme | undefined;
5
+ highlightedItem?: HighlightedItem | undefined;
6
+ index?: number | undefined;
7
+ idKey: string;
8
+ }) => Spec;
9
+ export declare const addData: (state: Data[], args_0: AreaSpecOptions) => Data[];
10
+ export declare const getAreaHighlightedData: (name: string, idKey: string, hasTooltip: boolean, hasPopover: boolean, hasGroupId: boolean) => SourceData;
11
+ export declare const addSignals: (state: Signal[], args_0: AreaSpecOptions) => Signal[];
12
+ /**
13
+ * Adds an on event that clears the controlled highlighted item signal value when the user mouses over the area.
14
+ * @param signals
15
+ * @param areaName
16
+ */
17
+ export declare const addHighlightedItemEvents: (signals: Signal[], areaName: string) => void;
18
+ export declare const setScales: (state: Scale[], args_0: AreaSpecOptions) => Scale[];
19
+ export declare const addAreaMarks: (state: Mark[], args_0: AreaSpecOptions) => Mark[];
20
+ //# sourceMappingURL=areaSpecBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"areaSpecBuilder.d.ts","sourceRoot":"","sources":["../../../../src/area/areaSpecBuilder.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AA+BnE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAuB,WAAW,EAAE,eAAe,EAAa,MAAM,UAAU,CAAC;AAGtH,eAAO,MAAM,OAAO;;;;WAEmF,MAAM;UAuD5G,CAAC;AAEF,eAAO,MAAM,OAAO,oDAgDlB,CAAC;AAEH,eAAO,MAAM,sBAAsB,SAC5B,MAAM,SACL,MAAM,cACD,OAAO,cACP,OAAO,cACP,OAAO,KACjB,UAuBF,CAAC;AAEF,eAAO,MAAM,UAAU,wDAarB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,YAAa,MAAM,EAAE,YAAY,MAAM,SAS3E,CAAC;AAEF,eAAO,MAAM,SAAS,sDAcrB,CAAC;AAEF,eAAO,MAAM,YAAY,oDAsDvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=areaSpecBuilder.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"areaSpecBuilder.test.d.ts","sourceRoot":"","sources":["../../../../src/area/areaSpecBuilder.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import { AreaMark, NumericValueRef, ProductionRule } from 'vega';
2
+ import { ChartPopoverOptions, ChartTooltipOptions, ColorFacet, ColorScheme, HighlightedItem, ScaleType } from '../types';
3
+ export interface AreaMarkOptions {
4
+ color: ColorFacet;
5
+ colorScheme: ColorScheme;
6
+ dimension: string;
7
+ displayOnHover?: boolean;
8
+ highlightedItem?: HighlightedItem;
9
+ isHighlightedByGroup?: boolean;
10
+ isMetricRange?: boolean;
11
+ isStacked: boolean;
12
+ metricStart: string;
13
+ metricEnd: string;
14
+ name: string;
15
+ opacity: number;
16
+ parentName?: string;
17
+ scaleType: ScaleType;
18
+ chartPopovers?: ChartPopoverOptions[];
19
+ chartTooltips?: ChartTooltipOptions[];
20
+ }
21
+ export declare const getAreaMark: (areaOptions: AreaMarkOptions, dataSource?: string) => AreaMark;
22
+ export declare function getAreaOpacity(areaOptions: AreaMarkOptions): ProductionRule<NumericValueRef> | undefined;
23
+ export declare const getX: (scaleType: ScaleType, dimension: string) => ProductionRule<NumericValueRef>;
24
+ //# sourceMappingURL=areaUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"areaUtils.d.ts","sourceRoot":"","sources":["../../../../src/area/areaUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAmBjE,OAAO,EACN,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IAErB,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,gBACV,eAAe,eAChB,MAAM,KAChB,QAsCF,CAAC;AAEF,wBAAgB,cAAc,CAAC,WAAW,EAAE,eAAe,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CA0DxG;AAED,eAAO,MAAM,IAAI,cAAe,SAAS,aAAa,MAAM,KAAG,eAAe,eAAe,CAO5F,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=areaUtils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"areaUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/area/areaUtils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,109 @@
1
+ import { Align, Baseline, EncodeEntry, FontWeight, GuideEncodeEntry, NumberValue, ProductionRule, TextEncodeEntry, TextValueRef, TickCount } from 'vega';
2
+ import { AxisSpecOptions, Granularity, Label, LabelAlign, Orientation, Position } from '../types';
3
+ /**
4
+ * Gets the display value of the label. If it's an object, it will return the value property, otherwise it will return the label.
5
+ * @param label
6
+ * @returns string | number
7
+ */
8
+ export declare const getLabelValue: (label: Label | number | string) => string | number;
9
+ /**
10
+ * Gets the label format values based on the granularity
11
+ * @param granularity
12
+ * @returns [secondaryFormat, primaryFormat, tickCount]
13
+ */
14
+ export declare const getTimeLabelFormats: (granularity: Granularity) => {
15
+ secondaryLabelFormat: string;
16
+ primaryLabelFormat: string;
17
+ tickCount: TickCount;
18
+ };
19
+ /**
20
+ * label align can be set in a controlled manner using the `labels` and `subLabels` options
21
+ * This function will return the correct align and baseline encodings based on the labelAlign and position
22
+ * @param position
23
+ * @param labelOrientaion
24
+ * @param labelAlign
25
+ * @returns align and baseline
26
+ */
27
+ export declare const getControlledLabelAnchorValues: (position: Position, labelOrientaion: Orientation, labelAlign?: LabelAlign) => {
28
+ align: Align | undefined;
29
+ baseline: Baseline | undefined;
30
+ };
31
+ /**
32
+ * gets the values for labelAlign and labelBaseline based on the `labelAlign`, `labelOrientation`, and `position` options
33
+ * vegaLabelAlign and vegaLabelBaseline options can be used to override these values
34
+ * @param position
35
+ * @param labelOrientaion
36
+ * @param labelAlign
37
+ * @param vegaLabelAlign
38
+ * @param vegaLabelBaseline
39
+ * @returns labelAlign and labelBaseline
40
+ */
41
+ export declare const getLabelAnchorValues: (position: Position, labelOrientaion: Orientation, labelAlign: LabelAlign, vegaLabelAlign?: Align, vegaLabelBaseline?: Baseline) => {
42
+ labelAlign: Align;
43
+ labelBaseline: Baseline;
44
+ };
45
+ /**
46
+ * gets the label align and baseline values based on the `labelAlign`, `labelOrientation`, and `position` options
47
+ * @param position
48
+ * @param labelOrientaion
49
+ * @param labelAlign
50
+ * @returns align and baseline
51
+ */
52
+ export declare const getLabelAnchor: (position: Position, labelOrientaion: Orientation, labelAlign: LabelAlign) => {
53
+ align: Align;
54
+ baseline: Baseline;
55
+ };
56
+ /**
57
+ * determines if the label orientation is parallel to the axis direction
58
+ * @param position
59
+ * @param labelOrientaion
60
+ * @returns boolean
61
+ */
62
+ export declare const labelIsParallelToAxis: (position: Position, labelOrientaion: Orientation) => boolean;
63
+ /**
64
+ * gets the label angle based on the `labelOrientation` prop
65
+ * @param labelOrientaion
66
+ * @returns labelAngle: number
67
+ */
68
+ export declare const getLabelAngle: (labelOrientaion: Orientation) => number;
69
+ /**
70
+ * gets the vega baseline value based on the labelAlign value
71
+ * @param labelAlign
72
+ * @returns
73
+ */
74
+ export declare const getLabelBaseline: (labelAlign: LabelAlign | undefined, position: Position, vegaLabelBaseline?: Baseline) => Baseline | undefined;
75
+ /**
76
+ * calculates the label offset for a band scale based on the labelAlign
77
+ * @param labelAlign
78
+ * @param scaleName
79
+ * @returns
80
+ */
81
+ export declare const getLabelOffset: (labelAlign: LabelAlign, scaleName: string, vegaLabelOffset?: NumberValue) => NumberValue | undefined;
82
+ /**
83
+ * gets the vega label format based on the labelFormat
84
+ * @param type
85
+ * @returns
86
+ */
87
+ export declare const getLabelFormat: ({ labelFormat, labelOrientation, numberFormat, position, truncateLabels, currencyLocale, currencyCode, }: AxisSpecOptions, scaleName: string) => ProductionRule<TextValueRef>;
88
+ /**
89
+ * Gets the axis label encoding
90
+ * @param labelAlign
91
+ * @param labelFontWeight
92
+ * @param labelKey
93
+ * @param position
94
+ * @param signalName
95
+ * @returns updateEncoding
96
+ */
97
+ export declare const getAxisLabelsEncoding: (labelAlign: LabelAlign, labelFontWeight: FontWeight, labelKey: 'label' | 'subLabel', labelOrientation: Orientation, position: Position, signalName: string) => GuideEncodeEntry<TextEncodeEntry>;
98
+ /**
99
+ * Will return the label align or baseline based on the position
100
+ * These properties are used within the axis label encoding
101
+ * If this is a vertical axis, it will return the correct baseline property and value
102
+ * Otherwise, it will return the correct align property and value
103
+ * @param position
104
+ * @param signalName
105
+ * @param defaultLabelAlign
106
+ * @returns align | baseline
107
+ */
108
+ export declare const getEncodedLabelAnchor: (position: Position, signalName: string, labelOrientation: Orientation, defaultLabelAlign: LabelAlign) => EncodeEntry;
109
+ //# sourceMappingURL=axisLabelUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axisLabelUtils.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisLabelUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EACN,KAAK,EACL,QAAQ,EACR,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,eAAe,EACf,YAAY,EACZ,SAAS,EACT,MAAM,MAAM,CAAC;AAGd,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGlG;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAW,KAAK,GAAG,MAAM,GAAG,MAAM,KAAG,MAAM,GAAG,MAKvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,gBAClB,WAAW,KACtB;IAAE,oBAAoB,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAiBlF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,aAChC,QAAQ,mBACD,WAAW,eACf,UAAU,KACrB;IAAE,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAA;CAI5D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,aACtB,QAAQ,mBACD,WAAW,cAChB,UAAU,mBACL,KAAK,sBACF,QAAQ,KAC1B;IAAE,UAAU,EAAE,KAAK,CAAC;IAAC,aAAa,EAAE,QAAQ,CAAA;CAO9C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aAChB,QAAQ,mBACD,WAAW,cAChB,UAAU,KACpB;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAqCpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAAc,QAAQ,mBAAmB,WAAW,KAAG,OAGxF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,oBAAqB,WAAW,KAAG,MAM5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,eAChB,UAAU,GAAG,SAAS,YACxB,QAAQ,sBACE,QAAQ,KAC1B,QAAQ,GAAG,SAcb,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,eACd,UAAU,aACX,MAAM,oBACC,WAAW,KAC3B,WAAW,GAAG,SAUhB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,6GASvB,eAAe,aACP,MAAM,KACf,eAAe,YAAY,CAc7B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,eACrB,UAAU,mBACL,UAAU,YACjB,OAAO,GAAG,UAAU,oBACZ,WAAW,YACnB,QAAQ,cACN,MAAM,KAChB,iBAAiB,eAAe,CAmBjC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,aACvB,QAAQ,cACN,MAAM,oBACA,WAAW,qBACV,UAAU,KAC3B,WASF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=axisLabelUtils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axisLabelUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisLabelUtils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,50 @@
1
+ import { EncodeEntry, GuideEncodeEntry, Mark, NumericValueRef, ProductionRule, RuleMark, ScaleType, SignalRef, SymbolMark, TextEncodeEntry, TextMark } from 'vega';
2
+ import { AxisSpecOptions, Position, ReferenceLineSpecOptions } from '../types';
3
+ export declare const getReferenceLines: (axisOptions: AxisSpecOptions) => ReferenceLineSpecOptions[];
4
+ export declare const scaleTypeSupportsReferenceLines: (scaleType: ScaleType | undefined) => boolean;
5
+ export declare const getReferenceLineMarks: (axisOptions: AxisSpecOptions, scaleName: string) => {
6
+ back: Mark[];
7
+ front: Mark[];
8
+ };
9
+ export declare const getPositionEncoding: ({ scaleType }: AxisSpecOptions, { value, position }: ReferenceLineSpecOptions, scaleName: string) => ProductionRule<NumericValueRef> | SignalRef;
10
+ export declare const getReferenceLineRuleMark: ({ position, ticks }: AxisSpecOptions, { color, colorScheme, name }: ReferenceLineSpecOptions, positionEncoding: ProductionRule<NumericValueRef> | SignalRef) => RuleMark;
11
+ /**
12
+ * Gets the reference line symbol mark
13
+ * @param AxisSpecOptions
14
+ * @param ReferenceLineSpecOptions
15
+ * @param referenceLineIndex
16
+ * @param positionEncoding
17
+ * @returns SymbolMark
18
+ */
19
+ export declare const getReferenceLineSymbolMark: ({ colorScheme, position }: AxisSpecOptions, { icon, iconColor, name }: ReferenceLineSpecOptions, positionEncoding: ProductionRule<NumericValueRef> | SignalRef) => SymbolMark[];
20
+ /**
21
+ * Gets the reference line text mark
22
+ * @param AxisSpecOptions
23
+ * @param ReferenceLineSpecOptions
24
+ * @param referenceLineIndex
25
+ * @param positionEncoding
26
+ * @returns TextMark
27
+ */
28
+ export declare const getReferenceLineTextMark: (axisOptions: AxisSpecOptions, referenceLineOptions: ReferenceLineSpecOptions, positionEncoding: ProductionRule<NumericValueRef> | SignalRef) => TextMark[];
29
+ /**
30
+ * Gets the reference line label encoding
31
+ * @param labelFontWeight
32
+ * @param label
33
+ * @param position
34
+ * @param positionEncoding
35
+ * @param icon
36
+ * @returns updateEncoding
37
+ */
38
+ export declare const getReferenceLineLabelsEncoding: ({ position }: AxisSpecOptions, { colorScheme, icon, label, labelColor, labelFontWeight }: ReferenceLineSpecOptions & {
39
+ label: string;
40
+ }, positionEncoding: ProductionRule<NumericValueRef> | SignalRef) => GuideEncodeEntry<TextEncodeEntry>;
41
+ /**
42
+ * Will return the label align or baseline based on the position
43
+ * These properties are used within the reference line label encoding
44
+ * If this is a vertical axis, it will return the correct baseline property and value
45
+ * Otherwise, it will return the correct align property and value
46
+ * @param position
47
+ * @returns align | baseline
48
+ */
49
+ export declare const getEncodedLabelBaselineAlign: (position: Position) => EncodeEntry;
50
+ //# sourceMappingURL=axisReferenceLineUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axisReferenceLineUtils.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisReferenceLineUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EACN,WAAW,EACX,gBAAgB,EAChB,IAAI,EACJ,eAAe,EACf,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,EACV,eAAe,EACf,QAAQ,EACR,MAAM,MAAM,CAAC;AAMd,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAwB,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGrG,eAAO,MAAM,iBAAiB,gBAAiB,eAAe,KAAG,wBAAwB,EAIxF,CAAC;AAiBF,eAAO,MAAM,+BAA+B,cAAe,SAAS,GAAG,SAAS,KAAG,OAGlF,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBACpB,eAAe,aACjB,MAAM,KACf;IAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAgB/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,kBAChB,eAAe,uBACT,wBAAwB,aAClC,MAAM,KACf,eAAe,eAAe,CAAC,GAAG,SAYpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,wBACf,eAAe,gCACN,wBAAwB,oBACpC,eAAe,eAAe,CAAC,GAAG,SAAS,KAC3D,QAuCF,CAAC;AAgCF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,8BACX,eAAe,6BACf,wBAAwB,oBACjC,eAAe,eAAe,CAAC,GAAG,SAAS,KAC3D,UAAU,EAyBZ,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,gBACvB,eAAe,wBACN,wBAAwB,oBAC5B,eAAe,eAAe,CAAC,GAAG,SAAS,KAC3D,QAAQ,EAaV,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,iBAC5B,eAAe,6DAC8B,wBAAwB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,oBACrF,eAAe,eAAe,CAAC,GAAG,SAAS,KAC3D,iBAAiB,eAAe,CAqBlC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,aAAc,QAAQ,KAAG,WAajE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=axisReferenceLineUtils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axisReferenceLineUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisReferenceLineUtils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ import { Axis, Data, Mark, ScaleType, Signal, Spec } from 'vega';
2
+ import { AxisOptions, AxisSpecOptions, ColorScheme, Label, Orientation, Position } from '../types';
3
+ export declare const addAxis: (state: Spec, args_0: AxisOptions & {
4
+ colorScheme?: ColorScheme | undefined;
5
+ index?: number | undefined;
6
+ }) => Spec;
7
+ export declare const addAxisData: (state: Data[], args_0: AxisSpecOptions & {
8
+ scaleType: ScaleType;
9
+ }) => Data[];
10
+ export declare const addAxisSignals: (state: Signal[], args_0: AxisSpecOptions) => Signal[];
11
+ /**
12
+ * Gets the labels that have style properties on them and gets the correct alignment value based on axis position
13
+ * @param labels
14
+ * @param position
15
+ * @returns
16
+ */
17
+ export declare const getLabelSignalValue: (labels: (Label | string | number)[], position: Position, labelOrientation: Orientation) => ({
18
+ align: import("vega").Align | undefined;
19
+ baseline: import("vega").Baseline | undefined;
20
+ value: string | number;
21
+ label?: string | undefined;
22
+ fontWeight?: import("vega").FontWeight | undefined;
23
+ } | undefined)[];
24
+ export declare const addAxes: (state: Axis[], args_0: AxisSpecOptions & {
25
+ scaleName: string;
26
+ opposingScaleType?: string | undefined;
27
+ }) => Axis[];
28
+ export declare const addAxesMarks: (state: Mark[], args_0: AxisSpecOptions & {
29
+ scaleName: string;
30
+ scaleType?: ScaleType | undefined;
31
+ opposingScaleType?: string | undefined;
32
+ }) => Mark[];
33
+ export declare function setAxisBaseline(axis: Axis, baseline?: boolean): Axis;
34
+ //# sourceMappingURL=axisSpecBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axisSpecBuilder.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisSpecBuilder.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAa,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAkB5E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAcnG,eAAO,MAAM,OAAO;;;UAqFnB,CAAC;AAEF,eAAO,MAAM,WAAW;eAAmD,SAAS;YAKlF,CAAC;AAEH,eAAO,MAAM,cAAc,wDAuBzB,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,WACvB,CAAC,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,YACzB,QAAQ,oBACA,WAAW;;;;;;gBAaZ,CAAC;AAEnB,eAAO,MAAM,OAAO;eAAmD,MAAM;;YAwE5E,CAAC;AAEF,eAAO,MAAM,YAAY;eAEQ,MAAM;;;YA0BrC,CAAC;AAuDH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,UAAQ,GAAG,IAAI,CAGlE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=axisSpecBuilder.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axisSpecBuilder.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisSpecBuilder.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { Mark } from 'vega';
2
+ import { AxisSpecOptions } from '../types';
3
+ export declare const defaultXBaselineMark: Mark;
4
+ export declare const defaultYBaselineMark: Mark;
5
+ export declare const defaultAxisOptions: AxisSpecOptions;
6
+ //# sourceMappingURL=axisTestUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axisTestUtils.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisTestUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAU5B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,oBAAoB,EAAE,IAYlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,IAYlC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,eAoBhC,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { Axis, GroupMark, Spec } from 'vega';
2
+ import { AxisSpecOptions } from '../types';
3
+ /**
4
+ * Checks the spec to see if it is a trellised chart
5
+ * @param spec
6
+ * @returns
7
+ */
8
+ export declare const isTrellisedChart: (spec: Spec) => boolean;
9
+ /**
10
+ * Gets all the custom options for a trellis axis
11
+ * If this axis is not a trellis axis, it will return an empty object
12
+ * @param scaleName
13
+ * @returns trellisAxisOptions
14
+ */
15
+ export declare const getTrellisAxisOptions: (scaleName: string) => Partial<AxisSpecOptions>;
16
+ /**
17
+ * Adds title encodings so that only the first title is visible.
18
+ * Does not mutate axes but instead returns a copy with the correct encodings added.
19
+ * @param axes
20
+ * @param trellisGroupMark
21
+ * @returns axes
22
+ */
23
+ export declare const encodeAxisTitle: (axes: Axis[], trellisGroupMark: GroupMark) => Axis[];
24
+ /**
25
+ * Gets properties of the trellis group mark
26
+ * @param groupMark
27
+ * @returns properties
28
+ */
29
+ export declare const getTrellisGroupProperties: (groupMark: GroupMark) => {
30
+ facetGroupBy: string;
31
+ facetName: string;
32
+ trellisScaleName: string;
33
+ };
34
+ //# sourceMappingURL=axisTrellisUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axisTrellisUtils.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisTrellisUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,SAAU,IAAI,KAAG,OAE7C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,cAAe,MAAM,KAAG,QAAQ,eAAe,CAoBhF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,SAAU,IAAI,EAAE,oBAAoB,SAAS,WAyBxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,cAC1B,SAAS,KAClB;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAKrE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=axisTrellisUtils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axisTrellisUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisTrellisUtils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,73 @@
1
+ import { Axis, Mark, Scale, SignalRef } from 'vega';
2
+ import { AxisSpecOptions, Position } from '../types';
3
+ /**
4
+ * Generates a default vega axis from the axis options
5
+ * @param axisOptions
6
+ * @param scaleName
7
+ * @returns axis
8
+ */
9
+ export declare const getDefaultAxis: (axisOptions: AxisSpecOptions, scaleName: string) => Axis;
10
+ /**
11
+ * Generates the time axes for a time scale from the axis options
12
+ * @param scaleName
13
+ * @param axisOptions
14
+ * @returns axes
15
+ */
16
+ export declare const getTimeAxes: (scaleName: string, axisOptions: AxisSpecOptions) => Axis[];
17
+ /**
18
+ * Generates an axis for sub labels from the axis options
19
+ * @param axisOptions
20
+ * @param scaleName
21
+ * @returns axis
22
+ */
23
+ export declare const getSubLabelAxis: (axisOptions: AxisSpecOptions, scaleName: string) => Axis;
24
+ /**
25
+ * Finds and returns the scale that this axis is for
26
+ * If the scale does not exist, it will create a new one
27
+ * @param scales
28
+ * @param position
29
+ * @returns scale
30
+ */
31
+ export declare const getScale: (scales: Scale[], position: Position) => Scale;
32
+ /**
33
+ * Gets the scale range from the position
34
+ * @param position
35
+ * @returns range
36
+ */
37
+ export declare const getRange: (position: Position) => 'width' | 'height';
38
+ /**
39
+ * Gets the scale type of the opposing scale.
40
+ * For example, if this is an x-axis, it will return the y-scale type
41
+ * @param scales
42
+ * @param position
43
+ * @returns scaleType
44
+ */
45
+ export declare const getOpposingScaleType: (scales: Scale[], position: Position) => "linear" | "point" | "time" | "band" | "identity" | "ordinal" | "quantile" | "log" | "pow" | "utc" | "sequential" | "symlog" | "sqrt" | "quantize" | "threshold" | "bin-ordinal" | undefined;
46
+ /**
47
+ * Gets the scale range for the opposing scale
48
+ * @param position
49
+ * @returns
50
+ */
51
+ export declare const getOpposingRange: (position: Position) => 'width' | 'height';
52
+ /**
53
+ * Returns whether the axis is vertical.
54
+ * @param position
55
+ * @returns boolean
56
+ */
57
+ export declare const isVerticalAxis: (position: Position) => boolean;
58
+ /**
59
+ * clamps the tick count to a min of 2 and max of 5 for linear scales
60
+ * @param position
61
+ * @param grid
62
+ * @returns tickCount production rule
63
+ */
64
+ export declare const getTickCount: (position: Position, grid: boolean) => SignalRef | undefined;
65
+ /**
66
+ * Gets the baseline rule mark
67
+ * @param baselineOffset
68
+ * @param position
69
+ * @returns baselineMark
70
+ */
71
+ export declare const getBaselineRule: (baselineOffset: number, position: Position) => Mark;
72
+ export declare const hasSubLabels: ({ subLabels, labelOrientation }: AxisSpecOptions) => boolean;
73
+ //# sourceMappingURL=axisUtils.d.ts.map