@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-charts/vega-spec-builder-s2",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Vega spec builder for Spectrum 2 charts (S2 always enabled)",
5
5
  "browser": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -21,13 +21,13 @@
21
21
  "clean": "rm -rf dist",
22
22
  "pack-test": "yarn clean && yarn build && cross-env NODE_ENV=development npm pack",
23
23
  "pack": "cross-env NODE_ENV=production npm pack",
24
- "publish-package": "npm publish --access public"
24
+ "publish-package": "npm publish --access public --tag alpha --registry https://registry.npmjs.org"
25
25
  },
26
26
  "dependencies": {
27
- "@spectrum-charts/constants": "1.29.0",
28
- "@spectrum-charts/locales": "1.29.0",
29
- "@spectrum-charts/themes": "1.29.0",
30
- "@spectrum-charts/utils": "1.29.0",
27
+ "@spectrum-charts/constants": "1.43.0",
28
+ "@spectrum-charts/locales": "1.43.0",
29
+ "@spectrum-charts/themes": "1.43.0",
30
+ "@spectrum-charts/utils": "1.43.0",
31
31
  "immer": "^10.1.1",
32
32
  "vega": "^6.2.0",
33
33
  "venn-helper": "^2.3.6"
@@ -39,4 +39,3 @@
39
39
  "webpack-cli": "^5.0.1"
40
40
  }
41
41
  }
42
-
@@ -1,2 +0,0 @@
1
- export * from './src';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAYA,cAAc,OAAO,CAAC"}
@@ -1,20 +0,0 @@
1
- import { Data, Mark, Scale, Signal, SourceData } from 'vega';
2
- import { AreaOptions, AreaSpecOptions, ColorScheme, HighlightedItem, ScSpec } from '../types';
3
- export declare const addArea: (state: ScSpec, args_0: AreaOptions & {
4
- colorScheme?: ColorScheme | undefined;
5
- highlightedItem?: HighlightedItem | undefined;
6
- index?: number | undefined;
7
- idKey: string;
8
- }) => ScSpec;
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
@@ -1 +0,0 @@
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,MAAM,MAAM,CAAC;AAiC7D,OAAO,EACL,WAAW,EACX,eAAe,EAEf,WAAW,EACX,eAAe,EACf,MAAM,EAEP,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,OAAO;;;;WAEoF,MAAM;YA8D7G,CAAC;AAEF,eAAO,MAAM,OAAO,oDA0ClB,CAAC;AAEH,eAAO,MAAM,sBAAsB,SAC3B,MAAM,SACL,MAAM,cACD,OAAO,cACP,OAAO,cACP,OAAO,KAClB,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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=areaSpecBuilder.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"areaSpecBuilder.test.d.ts","sourceRoot":"","sources":["../../../../src/area/areaSpecBuilder.test.ts"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
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
- interactiveMarkName?: string;
10
- isHighlightedByGroup?: boolean;
11
- isMetricRange?: boolean;
12
- isStacked: boolean;
13
- metricStart: string;
14
- metricEnd: string;
15
- name: string;
16
- opacity: number;
17
- parentName?: string;
18
- scaleType: ScaleType;
19
- chartPopovers?: ChartPopoverOptions[];
20
- chartTooltips?: ChartTooltipOptions[];
21
- }
22
- export declare const getAreaMark: (areaOptions: AreaMarkOptions, dataSource?: string) => AreaMark;
23
- export declare function getAreaOpacity(areaOptions: AreaMarkOptions): ProductionRule<NumericValueRef> | undefined;
24
- export declare const getX: (scaleType: ScaleType, dimension: string) => ProductionRule<NumericValueRef>;
25
- //# sourceMappingURL=areaUtils.d.ts.map
@@ -1 +0,0 @@
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;AAoBjE,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,eAAe,EACf,SAAS,EACV,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,eAAe;IAC9B,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,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,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;CACvC;AAED,eAAO,MAAM,WAAW,gBACT,eAAe,eAChB,MAAM,KACjB,QAsCF,CAAC;AAEF,wBAAgB,cAAc,CAAC,WAAW,EAAE,eAAe,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAgFxG;AAED,eAAO,MAAM,IAAI,cAAe,SAAS,aAAa,MAAM,KAAG,eAAe,eAAe,CAO5F,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=areaUtils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"areaUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/area/areaUtils.test.ts"],"names":[],"mappings":""}
@@ -1,109 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisLabelUtils.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisLabelUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,eAAe,EACf,YAAY,EACZ,SAAS,EACV,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,gBACjB,WAAW,KACvB;IAAE,oBAAoB,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAqBlF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,aAC/B,QAAQ,mBACD,WAAW,eACf,UAAU,KACtB;IAAE,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAA;CAI5D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,aACrB,QAAQ,mBACD,WAAW,cAChB,UAAU,mBACL,KAAK,sBACF,QAAQ,KAC3B;IAAE,UAAU,EAAE,KAAK,CAAC;IAAC,aAAa,EAAE,QAAQ,CAAA;CAO9C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aACf,QAAQ,mBACD,WAAW,cAChB,UAAU,KACrB;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,eACf,UAAU,GAAG,SAAS,YACxB,QAAQ,sBACE,QAAQ,KAC3B,QAAQ,GAAG,SAcb,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,eACb,UAAU,aACX,MAAM,oBACC,WAAW,KAC5B,WAAW,GAAG,SAUhB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,6GAStB,eAAe,aACP,MAAM,KAChB,eAAe,YAAY,CAc7B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,eACpB,UAAU,mBACL,UAAU,YACjB,OAAO,GAAG,UAAU,oBACZ,WAAW,YACnB,QAAQ,cACN,MAAM,KACjB,iBAAiB,eAAe,CAmBjC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,aACtB,QAAQ,cACN,MAAM,oBACA,WAAW,qBACV,UAAU,KAC5B,WASF,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=axisLabelUtils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisLabelUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisLabelUtils.test.ts"],"names":[],"mappings":""}
@@ -1,50 +0,0 @@
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, lineType }: 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisReferenceLineUtils.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisReferenceLineUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,IAAI,EACJ,eAAe,EACf,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,EACV,eAAe,EACf,QAAQ,EACT,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;AAkBF,eAAO,MAAM,+BAA+B,cAAe,SAAS,GAAG,SAAS,KAAG,OAGlF,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBACnB,eAAe,aACjB,MAAM,KAChB;IAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAc/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,kBACf,eAAe,uBACT,wBAAwB,aAClC,MAAM,KAChB,eAAe,eAAe,CAAC,GAAG,SAYpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,wBACd,eAAe,0CACI,wBAAwB,oBAC9C,eAAe,eAAe,CAAC,GAAG,SAAS,KAC5D,QAwCF,CAAC;AAgCF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,8BACV,eAAe,6BACf,wBAAwB,oBACjC,eAAe,eAAe,CAAC,GAAG,SAAS,KAC5D,UAAU,EAyBZ,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,gBACtB,eAAe,wBACN,wBAAwB,oBAC5B,eAAe,eAAe,CAAC,GAAG,SAAS,KAC5D,QAAQ,EAaV,CAAC;AA+BF;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,iBAC3B,eAAe,6DAC8B,wBAAwB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,oBACrF,eAAe,eAAe,CAAC,GAAG,SAAS,KAC5D,iBAAiB,eAAe,CAoBlC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,aAAc,QAAQ,KAAG,WAajE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=axisReferenceLineUtils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisReferenceLineUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisReferenceLineUtils.test.ts"],"names":[],"mappings":""}
@@ -1,69 +0,0 @@
1
- import { Axis, Data, Mark, ScaleType, Signal } from 'vega';
2
- import { AxisOptions, AxisSpecOptions, ColorScheme, Label, Orientation, Position, ScSpec, UserMeta } from '../types';
3
- export declare const addAxis: (state: ScSpec, args_0: AxisOptions & {
4
- colorScheme?: ColorScheme | undefined;
5
- index?: number | undefined;
6
- }) => ScSpec;
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, args_1: string) => 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
- /**
25
- * Applies fill and opacity encoding rules to the secondary metric axis
26
- * @param axis Axis to apply encoding rules to
27
- */
28
- export declare function applySecondaryMetricAxisEncodings(axis: Axis, interactiveMarks: string[]): void;
29
- /**
30
- * Applies fill and opacity encoding rules to the primary metric axis
31
- * @param axis Axis to apply encoding rules to
32
- * @param colorScheme The color scheme (light or dark)
33
- */
34
- export declare function applyPrimaryMetricAxisEncodings(axis: Axis, interactiveMarks: string[], colorScheme?: ColorScheme): void;
35
- /**
36
- * Handles the dual Y axis logic for axis styling
37
- * @param axis The axis to process
38
- * @param usermeta The user metadata
39
- * @param scaleName The name of the scale
40
- */
41
- export declare function addDualMetricAxisConfig(axis: Axis, isPrimaryMetricAxis: boolean, scaleName: string, interactiveMarks: string[], colorScheme?: ColorScheme): void;
42
- export interface AxisAddOptions extends AxisSpecOptions {
43
- scaleName: string;
44
- opposingScaleType?: ScaleType;
45
- usermeta?: UserMeta;
46
- dualMetricAxis?: boolean;
47
- }
48
- /**
49
- * Add axes to the spec
50
- * @param axes The axes to add
51
- * @param options The axis options
52
- * @returns The updated axes
53
- */
54
- export declare const addAxes: (state: Axis[], args_0: AxisSpecOptions & {
55
- scaleName: string;
56
- opposingScaleType?: string | undefined;
57
- dualMetricAxis?: boolean | undefined;
58
- usermeta: UserMeta;
59
- }) => Axis[];
60
- export declare const addAxesMarks: (state: Mark[], args_0: AxisSpecOptions & {
61
- scaleName: string;
62
- scaleField?: string | undefined;
63
- scaleType?: ScaleType | undefined;
64
- opposingScaleType?: string | undefined;
65
- dualMetricAxis?: boolean | undefined;
66
- usermeta: UserMeta;
67
- }) => Mark[];
68
- export declare function setAxisBaseline(axis: Axis, baseline?: boolean): Axis;
69
- //# sourceMappingURL=axisSpecBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisSpecBuilder.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisSpecBuilder.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,IAAI,EAAc,IAAI,EAAa,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AA2BlF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAsBrH,eAAO,MAAM,OAAO;;;YAwGnB,CAAC;AAEF,eAAO,MAAM,WAAW;eAAmD,SAAS;YAKlF,CAAC;AAEH,eAAO,MAAM,cAAc,wEAyBzB,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,WACtB,CAAC,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,YACzB,QAAQ,oBACA,WAAW;;;;;;gBAaX,CAAC;AAErB;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,IAAI,CAgC9F;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,IAAI,EACV,gBAAgB,EAAE,MAAM,EAAE,EAC1B,WAAW,GAAE,WAAkC,GAC9C,IAAI,CAqCN;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,IAAI,EACV,mBAAmB,EAAE,OAAO,EAC5B,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,EAAE,EAC1B,WAAW,GAAE,WAAkC,QAYhD;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,OAAO;eAIH,MAAM;;;cAGP,QAAQ;YAuItB,CAAC;AAyCH,eAAO,MAAM,YAAY;eAIR,MAAM;;;;;cAKP,QAAQ;YAgCtB,CAAC;AA2DH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,UAAQ,GAAG,IAAI,CAGlE"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=axisSpecBuilder.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisSpecBuilder.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisSpecBuilder.test.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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,eAqBhC,CAAC"}
@@ -1,80 +0,0 @@
1
- import { ImageMark, ScaleType, Signal, TextEncodeEntry } from 'vega';
2
- import { AxisSpecOptions, AxisThumbnailSpecOptions, Position } from '../types';
3
- /**
4
- * Extracts and processes axis thumbnail options from the main axis options.
5
- * Maps each thumbnail option to a fully configured specification with default values applied.
6
- *
7
- * @param axisOptions - The complete axis specification options containing thumbnail configurations
8
- * @returns An array of fully configured axis thumbnail specification options
9
- */
10
- export declare const getAxisThumbnails: (axisOptions: AxisSpecOptions) => AxisThumbnailSpecOptions[];
11
- /**
12
- * Determines whether a given scale type supports thumbnail rendering.
13
- * Currently only band scales are supported for thumbnails.
14
- *
15
- * @param scaleType - The scale type to check for thumbnail support
16
- * @returns True if the scale type supports thumbnails, false otherwise
17
- */
18
- export declare const scaleTypeSupportsThumbnails: (scaleType: ScaleType | undefined) => boolean;
19
- /**
20
- * Adds thumbnail size calculation signals to the signals array.
21
- * Creates a signal that calculates the appropriate thumbnail size based on the scale bandwidth
22
- * and maximum thumbnail size constraints.
23
- *
24
- * @param signals - The array of Vega signals to append the thumbnail size signal to
25
- * @param axisThumbnailName - The name of the thumbnail for signal generation
26
- * @param scaleName - The name of the scale to calculate bandwidth from
27
- */
28
- export declare const addAxisThumbnailSignals: (signals: Signal[], axisThumbnailName: string, scaleName: string) => void;
29
- /**
30
- * Generates Vega image marks for axis thumbnails based on the axis configuration.
31
- * Creates image marks that display thumbnails positioned relative to the axis,
32
- * with dynamic sizing and opacity based on available space.
33
- *
34
- * @param axisOptions - The complete axis specification options
35
- * @param scaleName - The name of the scale used for positioning calculations
36
- * @param scaleField - The data field used for scale domain mapping
37
- * @returns An array of Vega image marks configured for axis thumbnails
38
- */
39
- export declare const getAxisThumbnailMarks: (axisOptions: AxisSpecOptions, scaleName: string, scaleField: string) => ImageMark[];
40
- /**
41
- * Calculates the positioning coordinates for an axis thumbnail based on its position.
42
- * Returns the appropriate x/y coordinates to place the thumbnail relative to the axis,
43
- * taking into account the axis position (left, right, top, bottom).
44
- *
45
- * @param scaleName - The name of the scale used for positioning calculations
46
- * @param scaleField - The data field used for scale domain mapping
47
- * @param position - The position of the axis (left, right, top, bottom)
48
- * @param axisThumbnailName - The name of the thumbnail for signal references
49
- * @returns An object with x/y coordinate encodings for thumbnail positioning
50
- */
51
- export declare const getAxisThumbnailPosition: (scaleName: string, scaleField: string, position: Position, axisThumbnailName: string) => {
52
- x: {
53
- signal: string;
54
- };
55
- yc: {
56
- signal: string;
57
- };
58
- xc?: undefined;
59
- y?: undefined;
60
- } | {
61
- xc: {
62
- signal: string;
63
- };
64
- y: {
65
- signal: string;
66
- };
67
- x?: undefined;
68
- yc?: undefined;
69
- };
70
- /**
71
- * Calculates the offset needed for axis labels to accommodate thumbnails.
72
- * Returns text encoding entries that adjust label positioning based on thumbnail size,
73
- * ensuring labels don't overlap with thumbnails when they are visible.
74
- *
75
- * @param axisThumbnailName - The name of the thumbnail for signal reference
76
- * @param position - The position of the axis (left, right, top, bottom)
77
- * @returns Text encoding entries for label offset adjustments
78
- */
79
- export declare const getAxisThumbnailLabelOffset: (axisThumbnailName: string, position: Position) => TextEncodeEntry;
80
- //# sourceMappingURL=axisThumbnailUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisThumbnailUtils.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisThumbnailUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAKrE,OAAO,EAAE,eAAe,EAAwB,wBAAwB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAErG;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,eAAe,KAAG,wBAAwB,EAIxF,CAAC;AAqBF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,cAAe,SAAS,GAAG,SAAS,KAAG,OAG9E,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,EAAE,qBAAqB,MAAM,aAAa,MAAM,SAItG,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,gBACnB,eAAe,aACjB,MAAM,cACL,MAAM,KACjB,SAAS,EA8BX,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,cACxB,MAAM,cACL,MAAM,YACR,QAAQ,qBACC,MAAM;;;;;;;;;;;;;;;;;;CA0B1B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,sBAAuB,MAAM,YAAY,QAAQ,KAAG,eAuB3F,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=axisThumbnailUtils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisThumbnailUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisThumbnailUtils.test.ts"],"names":[],"mappings":""}
@@ -1,34 +0,0 @@
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
@@ -1 +0,0 @@
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,cACzB,SAAS,KACnB;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAKrE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=axisTrellisUtils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisTrellisUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisTrellisUtils.test.ts"],"names":[],"mappings":""}
@@ -1,85 +0,0 @@
1
- import { Axis, Mark, Scale, SignalRef } from 'vega';
2
- import { AxisSpecOptions, Orientation, 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
- * Determines tick count based on axis type and available space.
60
- * Uses Vega's tickCount parameter which is treated as a suggestion rather than a strict limit.
61
- * The final number of ticks may vary as Vega optimizes for visually pleasing values and intervals.
62
- *
63
- * @param position The position of the axis
64
- * @param tickCountMinimum The minimum number of ticks
65
- * @param tickCountLimit The upper limit for the number of ticks
66
- * @param grid Whether grid lines are enabled
67
- * @returns tickCount production rule for Vega
68
- */
69
- export declare const getTickCount: (position: Position, tickCountMinimum?: number, tickCountLimit?: number, grid?: boolean) => SignalRef | undefined;
70
- /**
71
- * Gets the baseline rule mark
72
- * @param baselineOffset
73
- * @param position
74
- * @returns baselineMark
75
- */
76
- export declare const getBaselineRule: (baselineOffset: number, position: Position) => Mark;
77
- export declare const hasSubLabels: ({ subLabels, labelOrientation }: AxisSpecOptions) => boolean;
78
- /**
79
- * Determines if an axis is a metric axis based on its position and chart orientation
80
- * @param position The position of the axis
81
- * @param chartOrientation The orientation of the chart
82
- * @returns Whether the axis is a metric axis
83
- */
84
- export declare function getIsMetricAxis(position: Position, chartOrientation: Orientation): boolean;
85
- //# sourceMappingURL=axisUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisUtils.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisUtils.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAe,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAU/E;;;;;GAKG;AACH,eAAO,MAAM,cAAc,gBAAiB,eAAe,aAAa,MAAM,KAAG,IA8ChF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,cAAe,MAAM,eAAe,eAAe,KAAG,IAAI,EAEjF,CAAC;AAkHF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,gBAAiB,eAAe,aAAa,MAAM,KAAG,IAwBjF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,WAAY,KAAK,EAAE,YAAY,QAAQ,UAuB3D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,aAAc,QAAQ,KAAG,OAAO,GAAG,QAKvD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,WAAY,KAAK,EAAE,YAAY,QAAQ,iMAYvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,aAAc,QAAQ,KAAG,OAAO,GAAG,QAK/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,aAAc,QAAQ,KAAG,OAEnD,CAAC;AAoBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,aAAc,QAAQ,qBAAqB,MAAM,mBAAmB,MAAM,SAAS,OAAO,KAAG,SAAS,GAAG,SA0BjI,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,mBAAoB,MAAM,YAAY,QAAQ,KAAG,IA2B5E,CAAC;AAEF,eAAO,MAAM,YAAY,oCAAqC,eAAe,YAG5E,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,GAAG,OAAO,CAK1F"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=axisUtils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axisUtils.test.d.ts","sourceRoot":"","sources":["../../../../src/axis/axisUtils.test.ts"],"names":[],"mappings":""}