@ggts-sh/spec 0.43.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 (679) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +75 -0
  3. package/dist/artifact.d.ts +11 -0
  4. package/dist/artifact.d.ts.map +1 -0
  5. package/dist/artifact.js +71 -0
  6. package/dist/artifact.js.map +1 -0
  7. package/dist/builder-core.d.ts +100 -0
  8. package/dist/builder-core.d.ts.map +1 -0
  9. package/dist/builder-core.js +176 -0
  10. package/dist/builder-core.js.map +1 -0
  11. package/dist/builder-data.d.ts +36 -0
  12. package/dist/builder-data.d.ts.map +1 -0
  13. package/dist/builder-data.js +123 -0
  14. package/dist/builder-data.js.map +1 -0
  15. package/dist/builder-geoms.d.ts +128 -0
  16. package/dist/builder-geoms.d.ts.map +1 -0
  17. package/dist/builder-geoms.js +221 -0
  18. package/dist/builder-geoms.js.map +1 -0
  19. package/dist/builder-options.d.ts +323 -0
  20. package/dist/builder-options.d.ts.map +1 -0
  21. package/dist/builder-options.js +2 -0
  22. package/dist/builder-options.js.map +1 -0
  23. package/dist/builder-scales.d.ts +160 -0
  24. package/dist/builder-scales.d.ts.map +1 -0
  25. package/dist/builder-scales.js +322 -0
  26. package/dist/builder-scales.js.map +1 -0
  27. package/dist/builder.d.ts +242 -0
  28. package/dist/builder.d.ts.map +1 -0
  29. package/dist/builder.js +42 -0
  30. package/dist/builder.js.map +1 -0
  31. package/dist/capabilities-data.d.ts +72 -0
  32. package/dist/capabilities-data.d.ts.map +1 -0
  33. package/dist/capabilities-data.js +337 -0
  34. package/dist/capabilities-data.js.map +1 -0
  35. package/dist/capabilities-helpers.d.ts +31 -0
  36. package/dist/capabilities-helpers.d.ts.map +1 -0
  37. package/dist/capabilities-helpers.js +41 -0
  38. package/dist/capabilities-helpers.js.map +1 -0
  39. package/dist/capabilities.d.ts +22 -0
  40. package/dist/capabilities.d.ts.map +1 -0
  41. package/dist/capabilities.js +154 -0
  42. package/dist/capabilities.js.map +1 -0
  43. package/dist/coord-helpers.d.ts +102 -0
  44. package/dist/coord-helpers.d.ts.map +1 -0
  45. package/dist/coord-helpers.js +90 -0
  46. package/dist/coord-helpers.js.map +1 -0
  47. package/dist/coord-reference-build.d.ts +50 -0
  48. package/dist/coord-reference-build.d.ts.map +1 -0
  49. package/dist/coord-reference-build.js +211 -0
  50. package/dist/coord-reference-build.js.map +1 -0
  51. package/dist/coord-reference.d.ts +52 -0
  52. package/dist/coord-reference.d.ts.map +1 -0
  53. package/dist/coord-reference.js +27 -0
  54. package/dist/coord-reference.js.map +1 -0
  55. package/dist/error-catalog.d.ts +258 -0
  56. package/dist/error-catalog.d.ts.map +1 -0
  57. package/dist/error-catalog.js +235 -0
  58. package/dist/error-catalog.js.map +1 -0
  59. package/dist/error-prose-shared.d.ts +100 -0
  60. package/dist/error-prose-shared.d.ts.map +1 -0
  61. package/dist/error-prose-shared.js +95 -0
  62. package/dist/error-prose-shared.js.map +1 -0
  63. package/dist/errors.d.ts +39 -0
  64. package/dist/errors.d.ts.map +1 -0
  65. package/dist/errors.js +52 -0
  66. package/dist/errors.js.map +1 -0
  67. package/dist/generated/coord-reference-data.d.ts +189 -0
  68. package/dist/generated/coord-reference-data.d.ts.map +1 -0
  69. package/dist/generated/coord-reference-data.js +212 -0
  70. package/dist/generated/coord-reference-data.js.map +1 -0
  71. package/dist/generated/geom-param-keys.d.ts +58 -0
  72. package/dist/generated/geom-param-keys.d.ts.map +1 -0
  73. package/dist/generated/geom-param-keys.js +223 -0
  74. package/dist/generated/geom-param-keys.js.map +1 -0
  75. package/dist/generated/geom-reference-data.d.ts +2377 -0
  76. package/dist/generated/geom-reference-data.d.ts.map +1 -0
  77. package/dist/generated/geom-reference-data.js +2790 -0
  78. package/dist/generated/geom-reference-data.js.map +1 -0
  79. package/dist/generated/guide-reference-data.d.ts +219 -0
  80. package/dist/generated/guide-reference-data.d.ts.map +1 -0
  81. package/dist/generated/guide-reference-data.js +253 -0
  82. package/dist/generated/guide-reference-data.js.map +1 -0
  83. package/dist/generated/plot-spec-validator.d.ts +2 -0
  84. package/dist/generated/plot-spec-validator.d.ts.map +1 -0
  85. package/dist/generated/plot-spec-validator.js +6274 -0
  86. package/dist/generated/plot-spec-validator.js.map +1 -0
  87. package/dist/generated/position-reference-data.d.ts +82 -0
  88. package/dist/generated/position-reference-data.d.ts.map +1 -0
  89. package/dist/generated/position-reference-data.js +181 -0
  90. package/dist/generated/position-reference-data.js.map +1 -0
  91. package/dist/generated/scale-reference-data.d.ts +8366 -0
  92. package/dist/generated/scale-reference-data.d.ts.map +1 -0
  93. package/dist/generated/scale-reference-data.js +9821 -0
  94. package/dist/generated/scale-reference-data.js.map +1 -0
  95. package/dist/generated/stat-reference-data.d.ts +241 -0
  96. package/dist/generated/stat-reference-data.d.ts.map +1 -0
  97. package/dist/generated/stat-reference-data.js +311 -0
  98. package/dist/generated/stat-reference-data.js.map +1 -0
  99. package/dist/geom-params-build.d.ts +3 -0
  100. package/dist/geom-params-build.d.ts.map +1 -0
  101. package/dist/geom-params-build.js +80 -0
  102. package/dist/geom-params-build.js.map +1 -0
  103. package/dist/geom-params.d.ts +13 -0
  104. package/dist/geom-params.d.ts.map +1 -0
  105. package/dist/geom-params.js +7 -0
  106. package/dist/geom-params.js.map +1 -0
  107. package/dist/geom-reference-build.d.ts +29 -0
  108. package/dist/geom-reference-build.d.ts.map +1 -0
  109. package/dist/geom-reference-build.js +221 -0
  110. package/dist/geom-reference-build.js.map +1 -0
  111. package/dist/geom-reference.d.ts +52 -0
  112. package/dist/geom-reference.d.ts.map +1 -0
  113. package/dist/geom-reference.js +72 -0
  114. package/dist/geom-reference.js.map +1 -0
  115. package/dist/guide-helpers.d.ts +20 -0
  116. package/dist/guide-helpers.d.ts.map +1 -0
  117. package/dist/guide-helpers.js +25 -0
  118. package/dist/guide-helpers.js.map +1 -0
  119. package/dist/guide-reference-build.d.ts +42 -0
  120. package/dist/guide-reference-build.d.ts.map +1 -0
  121. package/dist/guide-reference-build.js +180 -0
  122. package/dist/guide-reference-build.js.map +1 -0
  123. package/dist/guide-reference.d.ts +48 -0
  124. package/dist/guide-reference.d.ts.map +1 -0
  125. package/dist/guide-reference.js +32 -0
  126. package/dist/guide-reference.js.map +1 -0
  127. package/dist/hue-grey-palettes.d.ts +15 -0
  128. package/dist/hue-grey-palettes.d.ts.map +1 -0
  129. package/dist/hue-grey-palettes.js +77 -0
  130. package/dist/hue-grey-palettes.js.map +1 -0
  131. package/dist/index.d.ts +364 -0
  132. package/dist/index.d.ts.map +1 -0
  133. package/dist/index.js +225 -0
  134. package/dist/index.js.map +1 -0
  135. package/dist/lint-catalog.d.ts +47 -0
  136. package/dist/lint-catalog.d.ts.map +1 -0
  137. package/dist/lint-catalog.js +39 -0
  138. package/dist/lint-catalog.js.map +1 -0
  139. package/dist/lint-layer-rules.d.ts +18 -0
  140. package/dist/lint-layer-rules.d.ts.map +1 -0
  141. package/dist/lint-layer-rules.js +145 -0
  142. package/dist/lint-layer-rules.js.map +1 -0
  143. package/dist/lint-scale-rules.d.ts +8 -0
  144. package/dist/lint-scale-rules.d.ts.map +1 -0
  145. package/dist/lint-scale-rules.js +254 -0
  146. package/dist/lint-scale-rules.js.map +1 -0
  147. package/dist/lint.d.ts +62 -0
  148. package/dist/lint.d.ts.map +1 -0
  149. package/dist/lint.js +57 -0
  150. package/dist/lint.js.map +1 -0
  151. package/dist/normalize-coord.d.ts +8 -0
  152. package/dist/normalize-coord.d.ts.map +1 -0
  153. package/dist/normalize-coord.js +123 -0
  154. package/dist/normalize-coord.js.map +1 -0
  155. package/dist/normalize-input-layers-marks.d.ts +208 -0
  156. package/dist/normalize-input-layers-marks.d.ts.map +1 -0
  157. package/dist/normalize-input-layers-marks.js +2 -0
  158. package/dist/normalize-input-layers-marks.js.map +1 -0
  159. package/dist/normalize-input-layers-special.d.ts +131 -0
  160. package/dist/normalize-input-layers-special.d.ts.map +1 -0
  161. package/dist/normalize-input-layers-special.js +2 -0
  162. package/dist/normalize-input-layers-special.js.map +1 -0
  163. package/dist/normalize-input.d.ts +81 -0
  164. package/dist/normalize-input.d.ts.map +1 -0
  165. package/dist/normalize-input.js +2 -0
  166. package/dist/normalize-input.js.map +1 -0
  167. package/dist/normalize-paint.d.ts +8 -0
  168. package/dist/normalize-paint.d.ts.map +1 -0
  169. package/dist/normalize-paint.js +83 -0
  170. package/dist/normalize-paint.js.map +1 -0
  171. package/dist/normalize-scales.d.ts +7 -0
  172. package/dist/normalize-scales.d.ts.map +1 -0
  173. package/dist/normalize-scales.js +90 -0
  174. package/dist/normalize-scales.js.map +1 -0
  175. package/dist/normalize.d.ts +46 -0
  176. package/dist/normalize.d.ts.map +1 -0
  177. package/dist/normalize.js +279 -0
  178. package/dist/normalize.js.map +1 -0
  179. package/dist/paint-helpers.d.ts +45 -0
  180. package/dist/paint-helpers.d.ts.map +1 -0
  181. package/dist/paint-helpers.js +48 -0
  182. package/dist/paint-helpers.js.map +1 -0
  183. package/dist/pipeline-error-catalog.d.ts +319 -0
  184. package/dist/pipeline-error-catalog.d.ts.map +1 -0
  185. package/dist/pipeline-error-catalog.js +260 -0
  186. package/dist/pipeline-error-catalog.js.map +1 -0
  187. package/dist/portability-check.d.ts +35 -0
  188. package/dist/portability-check.d.ts.map +1 -0
  189. package/dist/portability-check.js +121 -0
  190. package/dist/portability-check.js.map +1 -0
  191. package/dist/portability-lossy.d.ts +19 -0
  192. package/dist/portability-lossy.d.ts.map +1 -0
  193. package/dist/portability-lossy.js +65 -0
  194. package/dist/portability-lossy.js.map +1 -0
  195. package/dist/portability.d.ts +23 -0
  196. package/dist/portability.d.ts.map +1 -0
  197. package/dist/portability.js +23 -0
  198. package/dist/portability.js.map +1 -0
  199. package/dist/portable-builder.d.ts +215 -0
  200. package/dist/portable-builder.d.ts.map +1 -0
  201. package/dist/portable-builder.js +27 -0
  202. package/dist/portable-builder.js.map +1 -0
  203. package/dist/portable-entry.d.ts +16 -0
  204. package/dist/portable-entry.d.ts.map +1 -0
  205. package/dist/portable-entry.js +14 -0
  206. package/dist/portable-entry.js.map +1 -0
  207. package/dist/position-reference-build.d.ts +29 -0
  208. package/dist/position-reference-build.d.ts.map +1 -0
  209. package/dist/position-reference-build.js +115 -0
  210. package/dist/position-reference-build.js.map +1 -0
  211. package/dist/position-reference.d.ts +34 -0
  212. package/dist/position-reference.d.ts.map +1 -0
  213. package/dist/position-reference.js +19 -0
  214. package/dist/position-reference.js.map +1 -0
  215. package/dist/runtime.d.ts +139 -0
  216. package/dist/runtime.d.ts.map +1 -0
  217. package/dist/runtime.js +2 -0
  218. package/dist/runtime.js.map +1 -0
  219. package/dist/scale-color-helpers.d.ts +121 -0
  220. package/dist/scale-color-helpers.d.ts.map +1 -0
  221. package/dist/scale-color-helpers.js +188 -0
  222. package/dist/scale-color-helpers.js.map +1 -0
  223. package/dist/scale-color-hue-grey.d.ts +52 -0
  224. package/dist/scale-color-hue-grey.d.ts.map +1 -0
  225. package/dist/scale-color-hue-grey.js +60 -0
  226. package/dist/scale-color-hue-grey.js.map +1 -0
  227. package/dist/scale-color-stops.d.ts +85 -0
  228. package/dist/scale-color-stops.d.ts.map +1 -0
  229. package/dist/scale-color-stops.js +87 -0
  230. package/dist/scale-color-stops.js.map +1 -0
  231. package/dist/scale-color-viridis.d.ts +52 -0
  232. package/dist/scale-color-viridis.d.ts.map +1 -0
  233. package/dist/scale-color-viridis.js +68 -0
  234. package/dist/scale-color-viridis.js.map +1 -0
  235. package/dist/scale-helpers.d.ts +20 -0
  236. package/dist/scale-helpers.d.ts.map +1 -0
  237. package/dist/scale-helpers.js +20 -0
  238. package/dist/scale-helpers.js.map +1 -0
  239. package/dist/scale-multi-helpers.d.ts +61 -0
  240. package/dist/scale-multi-helpers.d.ts.map +1 -0
  241. package/dist/scale-multi-helpers.js +147 -0
  242. package/dist/scale-multi-helpers.js.map +1 -0
  243. package/dist/scale-position-helpers.d.ts +81 -0
  244. package/dist/scale-position-helpers.d.ts.map +1 -0
  245. package/dist/scale-position-helpers.js +133 -0
  246. package/dist/scale-position-helpers.js.map +1 -0
  247. package/dist/scale-reference-build.d.ts +50 -0
  248. package/dist/scale-reference-build.d.ts.map +1 -0
  249. package/dist/scale-reference-build.js +147 -0
  250. package/dist/scale-reference-build.js.map +1 -0
  251. package/dist/scale-reference-classify-color.d.ts +11 -0
  252. package/dist/scale-reference-classify-color.d.ts.map +1 -0
  253. package/dist/scale-reference-classify-color.js +292 -0
  254. package/dist/scale-reference-classify-color.js.map +1 -0
  255. package/dist/scale-reference-classify-position.d.ts +10 -0
  256. package/dist/scale-reference-classify-position.d.ts.map +1 -0
  257. package/dist/scale-reference-classify-position.js +137 -0
  258. package/dist/scale-reference-classify-position.js.map +1 -0
  259. package/dist/scale-reference-classify-style.d.ts +10 -0
  260. package/dist/scale-reference-classify-style.d.ts.map +1 -0
  261. package/dist/scale-reference-classify-style.js +194 -0
  262. package/dist/scale-reference-classify-style.js.map +1 -0
  263. package/dist/scale-reference-classify-support.d.ts +37 -0
  264. package/dist/scale-reference-classify-support.d.ts.map +1 -0
  265. package/dist/scale-reference-classify-support.js +206 -0
  266. package/dist/scale-reference-classify-support.js.map +1 -0
  267. package/dist/scale-reference.d.ts +80 -0
  268. package/dist/scale-reference.d.ts.map +1 -0
  269. package/dist/scale-reference.js +85 -0
  270. package/dist/scale-reference.js.map +1 -0
  271. package/dist/scale-style-helpers.d.ts +158 -0
  272. package/dist/scale-style-helpers.d.ts.map +1 -0
  273. package/dist/scale-style-helpers.js +197 -0
  274. package/dist/scale-style-helpers.js.map +1 -0
  275. package/dist/schema-catalog.d.ts +62 -0
  276. package/dist/schema-catalog.d.ts.map +1 -0
  277. package/dist/schema-catalog.js +208 -0
  278. package/dist/schema-catalog.js.map +1 -0
  279. package/dist/schema-declarations.d.ts +1585 -0
  280. package/dist/schema-declarations.d.ts.map +1 -0
  281. package/dist/schema-declarations.js +51 -0
  282. package/dist/schema-declarations.js.map +1 -0
  283. package/dist/schema-decls-data.d.ts +58 -0
  284. package/dist/schema-decls-data.d.ts.map +1 -0
  285. package/dist/schema-decls-data.js +151 -0
  286. package/dist/schema-decls-data.js.map +1 -0
  287. package/dist/schema-decls-guides-theme.d.ts +166 -0
  288. package/dist/schema-decls-guides-theme.d.ts.map +1 -0
  289. package/dist/schema-decls-guides-theme.js +251 -0
  290. package/dist/schema-decls-guides-theme.js.map +1 -0
  291. package/dist/schema-decls-layers-col-boxplot.d.ts +118 -0
  292. package/dist/schema-decls-layers-col-boxplot.d.ts.map +1 -0
  293. package/dist/schema-decls-layers-col-boxplot.js +239 -0
  294. package/dist/schema-decls-layers-col-boxplot.js.map +1 -0
  295. package/dist/schema-decls-layers-count-pointrange.d.ts +89 -0
  296. package/dist/schema-decls-layers-count-pointrange.d.ts.map +1 -0
  297. package/dist/schema-decls-layers-count-pointrange.js +190 -0
  298. package/dist/schema-decls-layers-count-pointrange.js.map +1 -0
  299. package/dist/schema-decls-layers-crossbar-jitter.d.ts +129 -0
  300. package/dist/schema-decls-layers-crossbar-jitter.d.ts.map +1 -0
  301. package/dist/schema-decls-layers-crossbar-jitter.js +255 -0
  302. package/dist/schema-decls-layers-crossbar-jitter.js.map +1 -0
  303. package/dist/schema-decls-layers-point-path.d.ts +49 -0
  304. package/dist/schema-decls-layers-point-path.d.ts.map +1 -0
  305. package/dist/schema-decls-layers-point-path.js +156 -0
  306. package/dist/schema-decls-layers-point-path.js.map +1 -0
  307. package/dist/schema-decls-layers-sf-blank.d.ts +89 -0
  308. package/dist/schema-decls-layers-sf-blank.d.ts.map +1 -0
  309. package/dist/schema-decls-layers-sf-blank.js +254 -0
  310. package/dist/schema-decls-layers-sf-blank.js.map +1 -0
  311. package/dist/schema-decls-layers-text-map.d.ts +80 -0
  312. package/dist/schema-decls-layers-text-map.d.ts.map +1 -0
  313. package/dist/schema-decls-layers-text-map.js +151 -0
  314. package/dist/schema-decls-layers-text-map.js.map +1 -0
  315. package/dist/schema-decls-paint.d.ts +39 -0
  316. package/dist/schema-decls-paint.d.ts.map +1 -0
  317. package/dist/schema-decls-paint.js +95 -0
  318. package/dist/schema-decls-paint.js.map +1 -0
  319. package/dist/schema-decls-params-area-abline.d.ts +85 -0
  320. package/dist/schema-decls-params-area-abline.d.ts.map +1 -0
  321. package/dist/schema-decls-params-area-abline.js +259 -0
  322. package/dist/schema-decls-params-area-abline.js.map +1 -0
  323. package/dist/schema-decls-params-col-contour.d.ts +61 -0
  324. package/dist/schema-decls-params-col-contour.d.ts.map +1 -0
  325. package/dist/schema-decls-params-col-contour.js +202 -0
  326. package/dist/schema-decls-params-col-contour.js.map +1 -0
  327. package/dist/schema-decls-params-curve-label.d.ts +64 -0
  328. package/dist/schema-decls-params-curve-label.d.ts.map +1 -0
  329. package/dist/schema-decls-params-curve-label.js +204 -0
  330. package/dist/schema-decls-params-curve-label.js.map +1 -0
  331. package/dist/schema-decls-params-errorbar-position.d.ts +83 -0
  332. package/dist/schema-decls-params-errorbar-position.d.ts.map +1 -0
  333. package/dist/schema-decls-params-errorbar-position.js +264 -0
  334. package/dist/schema-decls-params-errorbar-position.js.map +1 -0
  335. package/dist/schema-decls-params-point-path.d.ts +61 -0
  336. package/dist/schema-decls-params-point-path.d.ts.map +1 -0
  337. package/dist/schema-decls-params-point-path.js +240 -0
  338. package/dist/schema-decls-params-point-path.js.map +1 -0
  339. package/dist/schema-decls-params-violin-summary.d.ts +78 -0
  340. package/dist/schema-decls-params-violin-summary.d.ts.map +1 -0
  341. package/dist/schema-decls-params-violin-summary.js +272 -0
  342. package/dist/schema-decls-params-violin-summary.js.map +1 -0
  343. package/dist/schema-decls-plot.d.ts +80 -0
  344. package/dist/schema-decls-plot.d.ts.map +1 -0
  345. package/dist/schema-decls-plot.js +222 -0
  346. package/dist/schema-decls-plot.js.map +1 -0
  347. package/dist/schema-decls-scales-guides.d.ts +291 -0
  348. package/dist/schema-decls-scales-guides.d.ts.map +1 -0
  349. package/dist/schema-decls-scales-guides.js +189 -0
  350. package/dist/schema-decls-scales-guides.js.map +1 -0
  351. package/dist/schema-decls-scales.d.ts +124 -0
  352. package/dist/schema-decls-scales.d.ts.map +1 -0
  353. package/dist/schema-decls-scales.js +279 -0
  354. package/dist/schema-decls-scales.js.map +1 -0
  355. package/dist/schema-imports.d.ts +1679 -0
  356. package/dist/schema-imports.d.ts.map +1 -0
  357. package/dist/schema-imports.js +104 -0
  358. package/dist/schema-imports.js.map +1 -0
  359. package/dist/schema-name-schemas.d.ts +18 -0
  360. package/dist/schema-name-schemas.d.ts.map +1 -0
  361. package/dist/schema-name-schemas.js +13 -0
  362. package/dist/schema-name-schemas.js.map +1 -0
  363. package/dist/schema-names.d.ts +53 -0
  364. package/dist/schema-names.d.ts.map +1 -0
  365. package/dist/schema-names.js +229 -0
  366. package/dist/schema-names.js.map +1 -0
  367. package/dist/schema-types.d.ts +336 -0
  368. package/dist/schema-types.d.ts.map +1 -0
  369. package/dist/schema-types.js +10 -0
  370. package/dist/schema-types.js.map +1 -0
  371. package/dist/schema.d.ts +38 -0
  372. package/dist/schema.d.ts.map +1 -0
  373. package/dist/schema.js +34 -0
  374. package/dist/schema.js.map +1 -0
  375. package/dist/stat-reference-build.d.ts +24 -0
  376. package/dist/stat-reference-build.d.ts.map +1 -0
  377. package/dist/stat-reference-build.js +86 -0
  378. package/dist/stat-reference-build.js.map +1 -0
  379. package/dist/stat-reference.d.ts +33 -0
  380. package/dist/stat-reference.d.ts.map +1 -0
  381. package/dist/stat-reference.js +19 -0
  382. package/dist/stat-reference.js.map +1 -0
  383. package/dist/structural-gate.d.ts +15 -0
  384. package/dist/structural-gate.d.ts.map +1 -0
  385. package/dist/structural-gate.js +34 -0
  386. package/dist/structural-gate.js.map +1 -0
  387. package/dist/temporal-column.d.ts +33 -0
  388. package/dist/temporal-column.d.ts.map +1 -0
  389. package/dist/temporal-column.js +247 -0
  390. package/dist/temporal-column.js.map +1 -0
  391. package/dist/temporal-guides.d.ts +11 -0
  392. package/dist/temporal-guides.d.ts.map +1 -0
  393. package/dist/temporal-guides.js +11 -0
  394. package/dist/temporal-guides.js.map +1 -0
  395. package/dist/temporal-interval-schema.d.ts +9 -0
  396. package/dist/temporal-interval-schema.d.ts.map +1 -0
  397. package/dist/temporal-interval-schema.js +25 -0
  398. package/dist/temporal-interval-schema.js.map +1 -0
  399. package/dist/temporal-interval.d.ts +29 -0
  400. package/dist/temporal-interval.d.ts.map +1 -0
  401. package/dist/temporal-interval.js +122 -0
  402. package/dist/temporal-interval.js.map +1 -0
  403. package/dist/temporal-parse-core.d.ts +96 -0
  404. package/dist/temporal-parse-core.d.ts.map +1 -0
  405. package/dist/temporal-parse-core.js +235 -0
  406. package/dist/temporal-parse-core.js.map +1 -0
  407. package/dist/temporal-parse-format.d.ts +13 -0
  408. package/dist/temporal-parse-format.d.ts.map +1 -0
  409. package/dist/temporal-parse-format.js +180 -0
  410. package/dist/temporal-parse-format.js.map +1 -0
  411. package/dist/temporal-parse-schema.d.ts +11 -0
  412. package/dist/temporal-parse-schema.d.ts.map +1 -0
  413. package/dist/temporal-parse-schema.js +23 -0
  414. package/dist/temporal-parse-schema.js.map +1 -0
  415. package/dist/temporal-parse.d.ts +18 -0
  416. package/dist/temporal-parse.d.ts.map +1 -0
  417. package/dist/temporal-parse.js +183 -0
  418. package/dist/temporal-parse.js.map +1 -0
  419. package/dist/temporal-polyfill.d.ts +3 -0
  420. package/dist/temporal-polyfill.d.ts.map +1 -0
  421. package/dist/temporal-polyfill.js +25 -0
  422. package/dist/temporal-polyfill.js.map +1 -0
  423. package/dist/temporal-ticks.d.ts +20 -0
  424. package/dist/temporal-ticks.d.ts.map +1 -0
  425. package/dist/temporal-ticks.js +246 -0
  426. package/dist/temporal-ticks.js.map +1 -0
  427. package/dist/temporal.d.ts +109 -0
  428. package/dist/temporal.d.ts.map +1 -0
  429. package/dist/temporal.js +73 -0
  430. package/dist/temporal.js.map +1 -0
  431. package/dist/validate-data-checks-color-temporal.d.ts +58 -0
  432. package/dist/validate-data-checks-color-temporal.d.ts.map +1 -0
  433. package/dist/validate-data-checks-color-temporal.js +168 -0
  434. package/dist/validate-data-checks-color-temporal.js.map +1 -0
  435. package/dist/validate-data-checks-color.d.ts +28 -0
  436. package/dist/validate-data-checks-color.d.ts.map +1 -0
  437. package/dist/validate-data-checks-color.js +296 -0
  438. package/dist/validate-data-checks-color.js.map +1 -0
  439. package/dist/validate-data-checks-layer.d.ts +37 -0
  440. package/dist/validate-data-checks-layer.d.ts.map +1 -0
  441. package/dist/validate-data-checks-layer.js +343 -0
  442. package/dist/validate-data-checks-layer.js.map +1 -0
  443. package/dist/validate-data-checks-position.d.ts +45 -0
  444. package/dist/validate-data-checks-position.d.ts.map +1 -0
  445. package/dist/validate-data-checks-position.js +204 -0
  446. package/dist/validate-data-checks-position.js.map +1 -0
  447. package/dist/validate-data-checks-style-finite.d.ts +24 -0
  448. package/dist/validate-data-checks-style-finite.d.ts.map +1 -0
  449. package/dist/validate-data-checks-style-finite.js +40 -0
  450. package/dist/validate-data-checks-style-finite.js.map +1 -0
  451. package/dist/validate-data-checks-style-numeric.d.ts +26 -0
  452. package/dist/validate-data-checks-style-numeric.d.ts.map +1 -0
  453. package/dist/validate-data-checks-style-numeric.js +327 -0
  454. package/dist/validate-data-checks-style-numeric.js.map +1 -0
  455. package/dist/validate-data-checks-style.d.ts +14 -0
  456. package/dist/validate-data-checks-style.d.ts.map +1 -0
  457. package/dist/validate-data-checks-style.js +14 -0
  458. package/dist/validate-data-checks-style.js.map +1 -0
  459. package/dist/validate-data-checks-temporal.d.ts +57 -0
  460. package/dist/validate-data-checks-temporal.d.ts.map +1 -0
  461. package/dist/validate-data-checks-temporal.js +83 -0
  462. package/dist/validate-data-checks-temporal.js.map +1 -0
  463. package/dist/validate-data-checks.d.ts +31 -0
  464. package/dist/validate-data-checks.d.ts.map +1 -0
  465. package/dist/validate-data-checks.js +110 -0
  466. package/dist/validate-data-checks.js.map +1 -0
  467. package/dist/validate-data-evidence.d.ts +69 -0
  468. package/dist/validate-data-evidence.d.ts.map +1 -0
  469. package/dist/validate-data-evidence.js +329 -0
  470. package/dist/validate-data-evidence.js.map +1 -0
  471. package/dist/validate-data.d.ts +73 -0
  472. package/dist/validate-data.d.ts.map +1 -0
  473. package/dist/validate-data.js +30 -0
  474. package/dist/validate-data.js.map +1 -0
  475. package/dist/validate-map-errors.d.ts +32 -0
  476. package/dist/validate-map-errors.d.ts.map +1 -0
  477. package/dist/validate-map-errors.js +76 -0
  478. package/dist/validate-map-errors.js.map +1 -0
  479. package/dist/validate-map-forms.d.ts +43 -0
  480. package/dist/validate-map-forms.d.ts.map +1 -0
  481. package/dist/validate-map-forms.js +125 -0
  482. package/dist/validate-map-forms.js.map +1 -0
  483. package/dist/validate-map-path-keywords.d.ts +11 -0
  484. package/dist/validate-map-path-keywords.d.ts.map +1 -0
  485. package/dist/validate-map-path-keywords.js +95 -0
  486. package/dist/validate-map-path-keywords.js.map +1 -0
  487. package/dist/validate-map-path-unions.d.ts +27 -0
  488. package/dist/validate-map-path-unions.d.ts.map +1 -0
  489. package/dist/validate-map-path-unions.js +200 -0
  490. package/dist/validate-map-path-unions.js.map +1 -0
  491. package/dist/validate-schema-shape.d.ts +69 -0
  492. package/dist/validate-schema-shape.d.ts.map +1 -0
  493. package/dist/validate-schema-shape.js +156 -0
  494. package/dist/validate-schema-shape.js.map +1 -0
  495. package/dist/validate-schema-walk.d.ts +34 -0
  496. package/dist/validate-schema-walk.d.ts.map +1 -0
  497. package/dist/validate-schema-walk.js +216 -0
  498. package/dist/validate-schema-walk.js.map +1 -0
  499. package/dist/validate-structure-facet.d.ts +8 -0
  500. package/dist/validate-structure-facet.d.ts.map +1 -0
  501. package/dist/validate-structure-facet.js +67 -0
  502. package/dist/validate-structure-facet.js.map +1 -0
  503. package/dist/validate-structure-layer-computed-y.d.ts +14 -0
  504. package/dist/validate-structure-layer-computed-y.d.ts.map +1 -0
  505. package/dist/validate-structure-layer-computed-y.js +70 -0
  506. package/dist/validate-structure-layer-computed-y.js.map +1 -0
  507. package/dist/validate-structure-layer-ribbon.d.ts +8 -0
  508. package/dist/validate-structure-layer-ribbon.d.ts.map +1 -0
  509. package/dist/validate-structure-layer-ribbon.js +36 -0
  510. package/dist/validate-structure-layer-ribbon.js.map +1 -0
  511. package/dist/validate-structure-layer-rule.d.ts +14 -0
  512. package/dist/validate-structure-layer-rule.d.ts.map +1 -0
  513. package/dist/validate-structure-layer-rule.js +90 -0
  514. package/dist/validate-structure-layer-rule.js.map +1 -0
  515. package/dist/validate-structure-layer-shared.d.ts +12 -0
  516. package/dist/validate-structure-layer-shared.d.ts.map +1 -0
  517. package/dist/validate-structure-layer-shared.js +17 -0
  518. package/dist/validate-structure-layer-shared.js.map +1 -0
  519. package/dist/validate-structure-layers.d.ts +12 -0
  520. package/dist/validate-structure-layers.d.ts.map +1 -0
  521. package/dist/validate-structure-layers.js +292 -0
  522. package/dist/validate-structure-layers.js.map +1 -0
  523. package/dist/validate-structure-paint.d.ts +12 -0
  524. package/dist/validate-structure-paint.d.ts.map +1 -0
  525. package/dist/validate-structure-paint.js +87 -0
  526. package/dist/validate-structure-paint.js.map +1 -0
  527. package/dist/validate-structure-scales.d.ts +10 -0
  528. package/dist/validate-structure-scales.d.ts.map +1 -0
  529. package/dist/validate-structure-scales.js +242 -0
  530. package/dist/validate-structure-scales.js.map +1 -0
  531. package/dist/validate-structure-style-bins.d.ts +17 -0
  532. package/dist/validate-structure-style-bins.d.ts.map +1 -0
  533. package/dist/validate-structure-style-bins.js +150 -0
  534. package/dist/validate-structure-style-bins.js.map +1 -0
  535. package/dist/validate-structure.d.ts +16 -0
  536. package/dist/validate-structure.d.ts.map +1 -0
  537. package/dist/validate-structure.js +16 -0
  538. package/dist/validate-structure.js.map +1 -0
  539. package/dist/validate.d.ts +24 -0
  540. package/dist/validate.d.ts.map +1 -0
  541. package/dist/validate.js +178 -0
  542. package/dist/validate.js.map +1 -0
  543. package/package.json +59 -0
  544. package/schema/v0.json +9618 -0
  545. package/src/artifact.ts +81 -0
  546. package/src/builder-core.ts +276 -0
  547. package/src/builder-data.ts +156 -0
  548. package/src/builder-geoms.ts +290 -0
  549. package/src/builder-options.ts +428 -0
  550. package/src/builder-scales.ts +443 -0
  551. package/src/builder.ts +125 -0
  552. package/src/capabilities-data.ts +336 -0
  553. package/src/capabilities-helpers.ts +54 -0
  554. package/src/capabilities.ts +159 -0
  555. package/src/coord-helpers.ts +177 -0
  556. package/src/coord-reference-build.ts +283 -0
  557. package/src/coord-reference.ts +75 -0
  558. package/src/error-catalog.ts +253 -0
  559. package/src/error-prose-shared.ts +106 -0
  560. package/src/errors.ts +87 -0
  561. package/src/generated/coord-reference-data.ts +235 -0
  562. package/src/generated/geom-param-keys.ts +222 -0
  563. package/src/generated/geom-reference-data.ts +3024 -0
  564. package/src/generated/guide-reference-data.ts +284 -0
  565. package/src/generated/plot-spec-validator.ts +7335 -0
  566. package/src/generated/position-reference-data.ts +191 -0
  567. package/src/generated/scale-reference-data.ts +10665 -0
  568. package/src/generated/stat-reference-data.ts +339 -0
  569. package/src/geom-params-build.ts +92 -0
  570. package/src/geom-params.ts +14 -0
  571. package/src/geom-reference-build.ts +292 -0
  572. package/src/geom-reference.ts +127 -0
  573. package/src/guide-helpers.ts +44 -0
  574. package/src/guide-reference-build.ts +249 -0
  575. package/src/guide-reference.ts +76 -0
  576. package/src/hue-grey-palettes.ts +82 -0
  577. package/src/index.ts +400 -0
  578. package/src/lint-catalog.ts +57 -0
  579. package/src/lint-layer-rules.ts +175 -0
  580. package/src/lint-scale-rules.ts +285 -0
  581. package/src/lint.ts +126 -0
  582. package/src/normalize-coord.ts +126 -0
  583. package/src/normalize-input-layers-marks.ts +276 -0
  584. package/src/normalize-input-layers-special.ts +252 -0
  585. package/src/normalize-input.ts +154 -0
  586. package/src/normalize-paint.ts +98 -0
  587. package/src/normalize-scales.ts +108 -0
  588. package/src/normalize.ts +403 -0
  589. package/src/paint-helpers.ts +98 -0
  590. package/src/pipeline-error-catalog.ts +278 -0
  591. package/src/portability-check.ts +155 -0
  592. package/src/portability-lossy.ts +81 -0
  593. package/src/portability.ts +31 -0
  594. package/src/portable-builder.ts +35 -0
  595. package/src/portable-entry.ts +37 -0
  596. package/src/position-reference-build.ts +164 -0
  597. package/src/position-reference.ts +41 -0
  598. package/src/runtime.ts +198 -0
  599. package/src/scale-color-helpers.ts +263 -0
  600. package/src/scale-color-hue-grey.ts +95 -0
  601. package/src/scale-color-stops.ts +177 -0
  602. package/src/scale-color-viridis.ts +99 -0
  603. package/src/scale-helpers.ts +264 -0
  604. package/src/scale-multi-helpers.ts +220 -0
  605. package/src/scale-position-helpers.ts +231 -0
  606. package/src/scale-reference-build.ts +222 -0
  607. package/src/scale-reference-classify-color.ts +334 -0
  608. package/src/scale-reference-classify-position.ts +164 -0
  609. package/src/scale-reference-classify-style.ts +229 -0
  610. package/src/scale-reference-classify-support.ts +298 -0
  611. package/src/scale-reference.ts +165 -0
  612. package/src/scale-style-helpers.ts +316 -0
  613. package/src/schema-catalog.ts +222 -0
  614. package/src/schema-declarations.ts +51 -0
  615. package/src/schema-decls-data.ts +272 -0
  616. package/src/schema-decls-guides-theme.ts +395 -0
  617. package/src/schema-decls-layers-col-boxplot.ts +410 -0
  618. package/src/schema-decls-layers-count-pointrange.ts +321 -0
  619. package/src/schema-decls-layers-crossbar-jitter.ts +443 -0
  620. package/src/schema-decls-layers-point-path.ts +246 -0
  621. package/src/schema-decls-layers-sf-blank.ts +408 -0
  622. package/src/schema-decls-layers-text-map.ts +259 -0
  623. package/src/schema-decls-paint.ts +124 -0
  624. package/src/schema-decls-params-area-abline.ts +440 -0
  625. package/src/schema-decls-params-col-contour.ts +333 -0
  626. package/src/schema-decls-params-curve-label.ts +343 -0
  627. package/src/schema-decls-params-errorbar-position.ts +446 -0
  628. package/src/schema-decls-params-point-path.ts +394 -0
  629. package/src/schema-decls-params-violin-summary.ts +447 -0
  630. package/src/schema-decls-plot.ts +385 -0
  631. package/src/schema-decls-scales-guides.ts +233 -0
  632. package/src/schema-decls-scales.ts +432 -0
  633. package/src/schema-imports.ts +116 -0
  634. package/src/schema-name-schemas.ts +37 -0
  635. package/src/schema-names.ts +243 -0
  636. package/src/schema-types.ts +400 -0
  637. package/src/schema.ts +287 -0
  638. package/src/stat-reference-build.ts +145 -0
  639. package/src/stat-reference.ts +38 -0
  640. package/src/structural-gate.ts +42 -0
  641. package/src/temporal-column.ts +323 -0
  642. package/src/temporal-guides.ts +32 -0
  643. package/src/temporal-interval-schema.ts +40 -0
  644. package/src/temporal-interval.ts +151 -0
  645. package/src/temporal-parse-core.ts +331 -0
  646. package/src/temporal-parse-format.ts +222 -0
  647. package/src/temporal-parse-schema.ts +38 -0
  648. package/src/temporal-parse.ts +259 -0
  649. package/src/temporal-polyfill.ts +27 -0
  650. package/src/temporal-ticks.ts +312 -0
  651. package/src/temporal.ts +112 -0
  652. package/src/validate-data-checks-color-temporal.ts +261 -0
  653. package/src/validate-data-checks-color.ts +395 -0
  654. package/src/validate-data-checks-layer.ts +492 -0
  655. package/src/validate-data-checks-position.ts +275 -0
  656. package/src/validate-data-checks-style-finite.ts +55 -0
  657. package/src/validate-data-checks-style-numeric.ts +455 -0
  658. package/src/validate-data-checks-style.ts +13 -0
  659. package/src/validate-data-checks-temporal.ts +129 -0
  660. package/src/validate-data-checks.ts +157 -0
  661. package/src/validate-data-evidence.ts +419 -0
  662. package/src/validate-data.ts +114 -0
  663. package/src/validate-map-errors.ts +126 -0
  664. package/src/validate-map-forms.ts +148 -0
  665. package/src/validate-map-path-keywords.ts +129 -0
  666. package/src/validate-map-path-unions.ts +281 -0
  667. package/src/validate-schema-shape.ts +232 -0
  668. package/src/validate-schema-walk.ts +219 -0
  669. package/src/validate-structure-facet.ts +76 -0
  670. package/src/validate-structure-layer-computed-y.ts +94 -0
  671. package/src/validate-structure-layer-ribbon.ts +61 -0
  672. package/src/validate-structure-layer-rule.ts +98 -0
  673. package/src/validate-structure-layer-shared.ts +29 -0
  674. package/src/validate-structure-layers.ts +395 -0
  675. package/src/validate-structure-paint.ts +101 -0
  676. package/src/validate-structure-scales.ts +278 -0
  677. package/src/validate-structure-style-bins.ts +167 -0
  678. package/src/validate-structure.ts +16 -0
  679. package/src/validate.ts +212 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale-color-viridis.js","sourceRoot":"","sources":["../src/scale-color-viridis.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EACL,UAAU,GAIX,MAAM,0BAA0B,CAAC;AA6BlC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAS,uBAAuB,CAAC,CAAC;AAEjE,SAAS,sBAAsB,CAAC,OAA4B;IAC1D,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IACxD,IAAI,MAAM,KAAK,SAAS,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QACzD,MAAM,IAAI,KAAK,CACb,2BAA2B,MAAM,uBAAuB,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAC9F,CAAC;IACJ,CAAC;IACD,MAAM,GAAG,GAAsB;QAC7B,MAAM,EAAE,MAAM,IAAI,SAAS;KAC5B,CAAC;IACF,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;QAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IACxD,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS;QAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACrD,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;QAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IACxD,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;QAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IACxD,IAAI,IAAI,CAAC,GAAG,KAAK,SAAS;QAAE,GAAG,CAAC,G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ACjE,OAAO,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;AAC3E,CAAC;AACD,MAAM,UAAU,iBAAiB,CAAC,UAA+B,EAAE;IACjE,OAAO,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;AACxE,CAAC;AACD,MAAM,UAAU,iBAAiB,CAAC,UAA+B,EAAE;IACjE,OAAO,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AACtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AACtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AACtD,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AACxD,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AACxD,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AACxD,MAAM,CAAC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AACzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AACzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AACzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AACtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AACtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Scale authoring helpers facade — position, color/fill, and style families.
3
+ *
4
+ * Implementation:
5
+ * - scale-position-helpers.ts — temporal, discrete, continuous, binned, reverse
6
+ * - scale-color-helpers.ts — generic color/fill + ColorBrewer + configuredColorScaleType
7
+ * - scale-color-viridis.ts / scale-color-stops.ts / scale-color-hue-grey.ts — palette families
8
+ * - scale-style-helpers.ts — numeric and finite-symbol style families
9
+ * - scale-multi-helpers.ts — multi-aes identity/manual + scaleType (#833)
10
+ *
11
+ * Public package imports continue through this module for stable paths.
12
+ */
13
+ export { scaleXDate, scaleXDatetime, scaleXTime, scaleYDate, scaleYDatetime, scaleYTime, scaleXMonthDay, scaleYMonthDay, scaleXDiscrete, scaleYDiscrete, scale_x_date, scale_x_datetime, scale_x_time, scale_y_date, scale_y_datetime, scale_y_time, scale_x_month_day, scale_y_month_day, scale_x_discrete, scale_y_discrete, scaleXContinuous, scaleYContinuous, scaleXLog10, scaleYLog10, scaleXSqrt, scaleYSqrt, scaleXReverse, scaleYReverse, scaleXBinned, scaleYBinned, scale_x_continuous, scale_y_continuous, scale_x_log10, scale_y_log10, scale_x_sqrt, scale_y_sqrt, scale_x_reverse, scale_y_reverse, scale_x_binned, scale_y_binned, type TemporalScaleOptions, type ContinuousPositionScaleOptions, type TransformedPositionScaleOptions, type DiscretePositionScaleOptions, } from "./scale-position-helpers.js";
14
+ export { configuredColorScaleType, scaleColorContinuous, scaleColorDiscrete, scaleColorBinned, scaleColorLog10, scaleColorSqrt, scaleColorDate, scaleColorDatetime, scaleColorManual, scaleColorIdentity, scaleColorBrewer, scaleColorDistiller, scaleColorFermenter, scaleColourContinuous, scaleColourDiscrete, scaleColourBinned, scaleColourLog10, scaleColourSqrt, scaleColourDate, scaleColourDatetime, scaleColourManual, scaleColourIdentity, scaleColourBrewer, scaleColourDistiller, scaleColourFermenter, scale_color_continuous, scale_color_discrete, scale_color_binned, scale_color_log10, scale_color_sqrt, scale_color_date, scale_color_datetime, scale_color_manual, scale_color_identity, scale_color_brewer, scale_color_distiller, scale_color_fermenter, scale_colour_continuous, scale_colour_discrete, scale_colour_binned, scale_colour_log10, scale_colour_sqrt, scale_colour_date, scale_colour_datetime, scale_colour_manual, scale_colour_identity, scale_colour_brewer, scale_colour_distiller, scale_colour_fermenter, scaleFillContinuous, scaleFillDiscrete, scaleFillBinned, scaleFillLog10, scaleFillSqrt, scaleFillDate, scaleFillDatetime, scaleFillManual, scaleFillIdentity, scaleFillBrewer, scaleFillDistiller, scaleFillFermenter, scale_fill_continuous, scale_fill_discrete, scale_fill_binned, scale_fill_log10, scale_fill_sqrt, scale_fill_date, scale_fill_datetime, scale_fill_manual, scale_fill_identity, scale_fill_brewer, scale_fill_distiller, scale_fill_fermenter, type ColorScaleOptions, type SequentialColorScaleOptions, type BinnedColorScaleOptions, type DiscreteColorScaleOptions, type TransformedColorScaleOptions, type TemporalColorScaleOptions, type ManualColorScaleOptions, type IdentityColorScaleOptions, type ColorBrewerScaleOptions, type ColorDistillerScaleOptions, type ColorFermenterScaleOptions, } from "./scale-color-helpers.js";
15
+ export { scaleColorViridisC, scaleColorViridisD, scaleColorViridisB, scaleColourViridisC, scaleColourViridisD, scaleColourViridisB, scaleFillViridisC, scaleFillViridisD, scaleFillViridisB, scale_color_viridis_c, scale_color_viridis_d, scale_color_viridis_b, scale_colour_viridis_c, scale_colour_viridis_d, scale_colour_viridis_b, scale_fill_viridis_c, scale_fill_viridis_d, scale_fill_viridis_b, type ViridisScaleOptions, type ViridisOptionName, } from "./scale-color-viridis.js";
16
+ export { scaleColorSteps, scaleColorSteps2, scaleColorStepsn, scaleColorGradient, scaleColorGradient2, scaleColorGradientn, scaleColourSteps, scaleColourSteps2, scaleColourStepsn, scaleColourGradient, scaleColourGradient2, scaleColourGradientn, scaleFillSteps, scaleFillSteps2, scaleFillStepsn, scaleFillGradient, scaleFillGradient2, scaleFillGradientn, scale_color_steps, scale_color_steps2, scale_color_stepsn, scale_color_gradient, scale_color_gradient2, scale_color_gradientn, scale_colour_steps, scale_colour_steps2, scale_colour_stepsn, scale_colour_gradient, scale_colour_gradient2, scale_colour_gradientn, scale_fill_steps, scale_fill_steps2, scale_fill_stepsn, scale_fill_gradient, scale_fill_gradient2, scale_fill_gradientn, type StepsScaleOptions, type Steps2ScaleOptions, type StepsnScaleOptions, type GradientScaleOptions, type Gradient2ScaleOptions, type GradientnScaleOptions, } from "./scale-color-stops.js";
17
+ export { scaleColorHue, scaleColorGrey, scaleColorGray, scaleColorOrdinal, scaleColourHue, scaleColourGrey, scaleColourGray, scaleColourOrdinal, scaleFillHue, scaleFillGrey, scaleFillGray, scaleFillOrdinal, scale_color_hue, scale_color_grey, scale_color_gray, scale_color_ordinal, scale_colour_hue, scale_colour_grey, scale_colour_gray, scale_colour_ordinal, scale_fill_hue, scale_fill_grey, scale_fill_gray, scale_fill_ordinal, type HueScaleOptions, type GreyScaleOptions, type OrdinalColorScaleOptions, } from "./scale-color-hue-grey.js";
18
+ export * from "./scale-style-helpers.js";
19
+ export { scaleContinuousIdentity, scaleDiscreteIdentity, scaleDiscreteManual, scaleType, scale_continuous_identity, scale_discrete_identity, scale_discrete_manual, scale_type, canonicalMultiScaleChannel, type MultiScaleAesthetic, type MultiScaleChannel, type MultiIdentityScaleOptions, type MultiManualScaleOptions, type ScaleTypeAesthetic, type RecommendedScaleType, } from "./scale-multi-helpers.js";
20
+ //# sourceMappingURL=scale-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale-helpers.d.ts","sourceRoot":"","sources":["../src/scale-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,UAAU,EACV,cAAc,EACd,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,UAAU,EACV,UAAU,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,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O,EACL,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B,MAAM,2BAA2B,CAAC;AAEnC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,SAAS,EACT,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EACrB,UAAU,EACV,0BAA0B,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Scale authoring helpers facade — position, color/fill, and style families.
3
+ *
4
+ * Implementation:
5
+ * - scale-position-helpers.ts — temporal, discrete, continuous, binned, reverse
6
+ * - scale-color-helpers.ts — generic color/fill + ColorBrewer + configuredColorScaleType
7
+ * - scale-color-viridis.ts / scale-color-stops.ts / scale-color-hue-grey.ts — palette families
8
+ * - scale-style-helpers.ts — numeric and finite-symbol style families
9
+ * - scale-multi-helpers.ts — multi-aes identity/manual + scaleType (#833)
10
+ *
11
+ * Public package imports continue through this module for stable paths.
12
+ */
13
+ export { scaleXDate, scaleXDatetime, scaleXTime, scaleYDate, scaleYDatetime, scaleYTime, scaleXMonthDay, scaleYMonthDay, scaleXDiscrete, scaleYDiscrete, scale_x_date, scale_x_datetime, scale_x_time, scale_y_date, scale_y_datetime, scale_y_time, scale_x_month_day, scale_y_month_day, scale_x_discrete, scale_y_discrete, scaleXContinuous, scaleYContinuous, scaleXLog10, scaleYLog10, scaleXSqrt, scaleYSqrt, scaleXReverse, scaleYReverse, scaleXBinned, scaleYBinned, scale_x_continuous, scale_y_continuous, scale_x_log10, scale_y_log10, scale_x_sqrt, scale_y_sqrt, scale_x_reverse, scale_y_reverse, scale_x_binned, scale_y_binned, } from "./scale-position-helpers.js";
14
+ export { configuredColorScaleType, scaleColorContinuous, scaleColorDiscrete, scaleColorBinned, scaleColorLog10, scaleColorSqrt, scaleColorDate, scaleColorDatetime, scaleColorManual, scaleColorIdentity, scaleColorBrewer, scaleColorDistiller, scaleColorFermenter, scaleColourContinuous, scaleColourDiscrete, scaleColourBinned, scaleColourLog10, scaleColourSqrt, scaleColourDate, scaleColourDatetime, scaleColourManual, scaleColourIdentity, scaleColourBrewer, scaleColourDistiller, scaleColourFermenter, scale_color_continuous, scale_color_discrete, scale_color_binned, scale_color_log10, scale_color_sqrt, scale_color_date, scale_color_datetime, scale_color_manual, scale_color_identity, scale_color_brewer, scale_color_distiller, scale_color_fermenter, scale_colour_continuous, scale_colour_discrete, scale_colour_binned, scale_colour_log10, scale_colour_sqrt, scale_colour_date, scale_colour_datetime, scale_colour_manual, scale_colour_identity, scale_colour_brewer, scale_colour_distiller, scale_colour_fermenter, scaleFillContinuous, scaleFillDiscrete, scaleFillBinned, scaleFillLog10, scaleFillSqrt, scaleFillDate, scaleFillDatetime, scaleFillManual, scaleFillIdentity, scaleFillBrewer, scaleFillDistiller, scaleFillFermenter, scale_fill_continuous, scale_fill_discrete, scale_fill_binned, scale_fill_log10, scale_fill_sqrt, scale_fill_date, scale_fill_datetime, scale_fill_manual, scale_fill_identity, scale_fill_brewer, scale_fill_distiller, scale_fill_fermenter, } from "./scale-color-helpers.js";
15
+ export { scaleColorViridisC, scaleColorViridisD, scaleColorViridisB, scaleColourViridisC, scaleColourViridisD, scaleColourViridisB, scaleFillViridisC, scaleFillViridisD, scaleFillViridisB, scale_color_viridis_c, scale_color_viridis_d, scale_color_viridis_b, scale_colour_viridis_c, scale_colour_viridis_d, scale_colour_viridis_b, scale_fill_viridis_c, scale_fill_viridis_d, scale_fill_viridis_b, } from "./scale-color-viridis.js";
16
+ export { scaleColorSteps, scaleColorSteps2, scaleColorStepsn, scaleColorGradient, scaleColorGradient2, scaleColorGradientn, scaleColourSteps, scaleColourSteps2, scaleColourStepsn, scaleColourGradient, scaleColourGradient2, scaleColourGradientn, scaleFillSteps, scaleFillSteps2, scaleFillStepsn, scaleFillGradient, scaleFillGradient2, scaleFillGradientn, scale_color_steps, scale_color_steps2, scale_color_stepsn, scale_color_gradient, scale_color_gradient2, scale_color_gradientn, scale_colour_steps, scale_colour_steps2, scale_colour_stepsn, scale_colour_gradient, scale_colour_gradient2, scale_colour_gradientn, scale_fill_steps, scale_fill_steps2, scale_fill_stepsn, scale_fill_gradient, scale_fill_gradient2, scale_fill_gradientn, } from "./scale-color-stops.js";
17
+ export { scaleColorHue, scaleColorGrey, scaleColorGray, scaleColorOrdinal, scaleColourHue, scaleColourGrey, scaleColourGray, scaleColourOrdinal, scaleFillHue, scaleFillGrey, scaleFillGray, scaleFillOrdinal, scale_color_hue, scale_color_grey, scale_color_gray, scale_color_ordinal, scale_colour_hue, scale_colour_grey, scale_colour_gray, scale_colour_ordinal, scale_fill_hue, scale_fill_grey, scale_fill_gray, scale_fill_ordinal, } from "./scale-color-hue-grey.js";
18
+ export * from "./scale-style-helpers.js";
19
+ export { scaleContinuousIdentity, scaleDiscreteIdentity, scaleDiscreteManual, scaleType, scale_continuous_identity, scale_discrete_identity, scale_discrete_manual, scale_type, canonicalMultiScaleChannel, } from "./scale-multi-helpers.js";
20
+ //# sourceMappingURL=scale-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale-helpers.js","sourceRoot":"","sources":["../src/scale-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,UAAU,E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ACf,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,eAAe,EACf,kBAAkB,GAInB,MAAM,2BAA2B,CAAC;AAEnC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,SAAS,EACT,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EACrB,UAAU,EACV,0BAA0B,GAO3B,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Multi-aesthetic scale helpers (#833) — ggplot2 scale_*_identity /
3
+ * scale_discrete_manual ergonomics over PortableSpec's per-channel `scales`.
4
+ *
5
+ * Helpers expand to a `Scales` object with the same config on each requested
6
+ * aesthetic (British "colour" → "color"). No new PortableSpec branch: the
7
+ * expanded object is what normalize/validate already understand.
8
+ *
9
+ * `scaleType` is a small registry for agent/tooling default selection — not
10
+ * an R S3 generic (agent tooling).
11
+ */
12
+ import type { CellValue, Scales } from "./schema.js";
13
+ import type { ProfileFieldType } from "./validate-data.js";
14
+ /** Aesthetics accepted by multi-aes identity/manual helpers (not x/y). */
15
+ export type MultiScaleAesthetic = "color" | "colour" | "fill" | "size" | "linewidth" | "alpha" | "shape" | "linetype";
16
+ /** Canonical Scales keys for multi-aes helpers. */
17
+ export type MultiScaleChannel = Exclude<keyof Scales, "x" | "y">;
18
+ export declare function canonicalMultiScaleChannel(aesthetic: MultiScaleAesthetic): MultiScaleChannel;
19
+ export type MultiIdentityScaleOptions = {
20
+ /** Target aesthetics; British "colour" is an alias of "color". */
21
+ aesthetics: readonly MultiScaleAesthetic[];
22
+ };
23
+ export type MultiManualScaleOptions = {
24
+ aesthetics: readonly MultiScaleAesthetic[];
25
+ /** Positional range values applied to every listed aesthetic. */
26
+ values: readonly (string | number)[];
27
+ domain?: readonly CellValue[];
28
+ };
29
+ /**
30
+ * Apply an identity scale to every listed continuous-friendly aesthetic
31
+ * (color/fill/size/linewidth/alpha). Shape/linetype are rejected.
32
+ */
33
+ export declare function scaleContinuousIdentity(options: MultiIdentityScaleOptions): Scales;
34
+ /**
35
+ * Apply an identity scale to every listed discrete-capable aesthetic
36
+ * (including shape/linetype).
37
+ */
38
+ export declare function scaleDiscreteIdentity(options: MultiIdentityScaleOptions): Scales;
39
+ /**
40
+ * Apply the same manual domain/range mapping to every listed aesthetic.
41
+ * Callers must ensure `values` match each channel's output type (CSS colors
42
+ * for color/fill, numbers for size/alpha/linewidth, named tokens for
43
+ * shape/linetype) — tier-1 validation enforces that on the full plot.
44
+ */
45
+ export declare function scaleDiscreteManual(options: MultiManualScaleOptions): Scales;
46
+ export declare const scale_continuous_identity: typeof scaleContinuousIdentity;
47
+ export declare const scale_discrete_identity: typeof scaleDiscreteIdentity;
48
+ export declare const scale_discrete_manual: typeof scaleDiscreteManual;
49
+ export type ScaleTypeAesthetic = MultiScaleAesthetic | "x" | "y";
50
+ /**
51
+ * Recommended PortableSpec scale family for an aesthetic + data kind.
52
+ * Not a full ggplot2 `scale_type` S3 registry — a small deterministic map for
53
+ * generators and repair tools.
54
+ */
55
+ export type RecommendedScaleType = "linear" | "band" | "ordinal" | "sequential" | "identity";
56
+ export declare function scaleType(query: {
57
+ aesthetic: ScaleTypeAesthetic;
58
+ dataKind: ProfileFieldType;
59
+ }): RecommendedScaleType;
60
+ export declare const scale_type: typeof scaleType;
61
+ //# sourceMappingURL=scale-multi-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale-multi-helpers.d.ts","sourceRoot":"","sources":["../src/scale-multi-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrD,O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GAAG,UAAU,CAAC;AAE7F,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,GAAG,oBAAoB,CAcvB;AAED,eAAO,MAAM,UAAU,kBAAY,CAAC"}
@@ -0,0 +1,147 @@
1
+ /**
2
+ * Multi-aesthetic scale helpers (#833) — ggplot2 scale_*_identity /
3
+ * scale_discrete_manual ergonomics over PortableSpec's per-channel `scales`.
4
+ *
5
+ * Helpers expand to a `Scales` object with the same config on each requested
6
+ * aesthetic (British "colour" → "color"). No new PortableSpec branch: the
7
+ * expanded object is what normalize/validate already understand.
8
+ *
9
+ * `scaleType` is a small registry for agent/tooling default selection — not
10
+ * an R S3 generic (agent tooling).
11
+ */
12
+ const MULTI_AES = new Set([
13
+ "color",
14
+ "colour",
15
+ "fill",
16
+ "size",
17
+ "linewidth",
18
+ "alpha",
19
+ "shape",
20
+ "linetype",
21
+ ]);
22
+ const CONTINUOUS_IDENTITY_AES = new Set([
23
+ "color",
24
+ "fill",
25
+ "size",
26
+ "linewidth",
27
+ "alpha",
28
+ ]);
29
+ const DISCRETE_IDENTITY_AES = new Set([
30
+ "color",
31
+ "fill",
32
+ "size",
33
+ "linewidth",
34
+ "alpha",
35
+ "shape",
36
+ "linetype",
37
+ ]);
38
+ export function canonicalMultiScaleChannel(aesthetic) {
39
+ if (aesthetic === "colour")
40
+ return "color";
41
+ return aesthetic;
42
+ }
43
+ function assertAesthetics(aesthetics, allowed, kind) {
44
+ if (aesthetics.length === 0) {
45
+ throw new Error(`${kind}: aesthetics must be a non-empty array.`);
46
+ }
47
+ const channels = [];
48
+ const seen = new Set();
49
+ for (const raw of aesthetics) {
50
+ if (!MULTI_AES.has(raw)) {
51
+ throw new Error(`${kind}: unsupported aesthetic "${raw}". Expected one of: color, colour, fill, size, linewidth, alpha, shape, linetype.`);
52
+ }
53
+ const channel = canonicalMultiScaleChannel(raw);
54
+ if (!allowed.has(channel)) {
55
+ throw new Error(`${kind}: aesthetic "${raw}" is not valid for this helper (resolved channel "${channel}").`);
56
+ }
57
+ if (seen.has(channel))
58
+ continue;
59
+ seen.add(channel);
60
+ channels.push(channel);
61
+ }
62
+ return channels;
63
+ }
64
+ /**
65
+ * Build a Scales bag by assigning the same JSON config to each channel.
66
+ * Deep-clone so nested range/domain arrays are not shared across channels
67
+ * (shallow `{ ...entry }` would alias them — mutating one channel mutates all).
68
+ * Channel-specific Output types differ (colors vs numbers vs symbols); callers
69
+ * and tier-1 validation own value/channel compatibility.
70
+ */
71
+ function cloneScaleEntry(entry) {
72
+ const copy = { ...entry };
73
+ const range = copy["range"];
74
+ if (Array.isArray(range))
75
+ copy["range"] = range.slice();
76
+ const domain = copy["domain"];
77
+ if (Array.isArray(domain))
78
+ copy["domain"] = domain.slice();
79
+ return copy;
80
+ }
81
+ function assignChannels(channels, entry) {
82
+ const scales = {};
83
+ for (const channel of channels) {
84
+ scales[channel] = cloneScaleEntry(entry);
85
+ }
86
+ // Expanded subset of Scales keys; entries are identity/manual JSON objects.
87
+ // tsc needs the cast; type-aware lint mis-accepts Record→Scales without it.
88
+ // oxlint-disable-next-line typescript/no-unnecessary-type-assertion -- tsc TS2322
89
+ return scales;
90
+ }
91
+ /**
92
+ * Apply an identity scale to every listed continuous-friendly aesthetic
93
+ * (color/fill/size/linewidth/alpha). Shape/linetype are rejected.
94
+ */
95
+ export function scaleContinuousIdentity(options) {
96
+ const channels = assertAesthetics(options.aesthetics, CONTINUOUS_IDENTITY_AES, "scaleContinuousIdentity");
97
+ return assignChannels(channels, { type: "identity" });
98
+ }
99
+ /**
100
+ * Apply an identity scale to every listed discrete-capable aesthetic
101
+ * (including shape/linetype).
102
+ */
103
+ export function scaleDiscreteIdentity(options) {
104
+ const channels = assertAesthetics(options.aesthetics, DISCRETE_IDENTITY_AES, "scaleDiscreteIdentity");
105
+ return assignChannels(channels, { type: "identity" });
106
+ }
107
+ /**
108
+ * Apply the same manual domain/range mapping to every listed aesthetic.
109
+ * Callers must ensure `values` match each channel's output type (CSS colors
110
+ * for color/fill, numbers for size/alpha/linewidth, named tokens for
111
+ * shape/linetype) — tier-1 validation enforces that on the full plot.
112
+ */
113
+ export function scaleDiscreteManual(options) {
114
+ if (options.values.length === 0) {
115
+ throw new Error("scaleDiscreteManual: values must be a non-empty array.");
116
+ }
117
+ const channels = assertAesthetics(options.aesthetics, DISCRETE_IDENTITY_AES, "scaleDiscreteManual");
118
+ const entry = {
119
+ type: "manual",
120
+ range: [...options.values],
121
+ };
122
+ if (options.domain !== undefined) {
123
+ entry["domain"] = [...options.domain];
124
+ }
125
+ return assignChannels(channels, entry);
126
+ }
127
+ export const scale_continuous_identity = scaleContinuousIdentity;
128
+ export const scale_discrete_identity = scaleDiscreteIdentity;
129
+ export const scale_discrete_manual = scaleDiscreteManual;
130
+ export function scaleType(query) {
131
+ const aes = query.aesthetic === "colour" ? "color" : query.aesthetic;
132
+ if (aes === "x" || aes === "y") {
133
+ if (query.dataKind === "nominal" || query.dataKind === "ordinal")
134
+ return "band";
135
+ // quantitative + temporal position → continuous linear (temporalKind is separate)
136
+ return "linear";
137
+ }
138
+ if (aes === "shape" || aes === "linetype") {
139
+ return "ordinal";
140
+ }
141
+ if (query.dataKind === "quantitative" || query.dataKind === "temporal") {
142
+ return "sequential";
143
+ }
144
+ return "ordinal";
145
+ }
146
+ export const scale_type = scaleType;
147
+ //# sourceMappingURL=scale-multi-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale-multi-helpers.js","sourceRoot":"","sources":["../src/scale-multi-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAmBH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAS;IAChC,OAAO;IACP,QAAQ;IACR,MAAM;IACN,MAAM;IACN,WAAW;IACX,OAAO;IACP,OAAO;IACP,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAoB;IACzD,O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AG,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,KAAK,CAAC,QAAQ,KAAK,cAAc,IAAI,KAAK,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;QACvE,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Position scale authoring helpers (x/y continuous, binned, temporal, discrete).
3
+ * Color/fill helpers: scale-color-helpers.ts (+ viridis/stops/hue-grey siblings). Facade re-exports: scale-helpers.ts.
4
+ */
5
+ import type { PositionScaleSpec, Scales } from "./schema.js";
6
+ export type TemporalScaleOptions = Omit<PositionScaleSpec, "type" | "temporalKind">;
7
+ /**
8
+ * Options for the continuous/binned position families. Temporal-only fields are
9
+ * excluded (use the date/datetime helpers for those). `limits` is authoring
10
+ * sugar for `domain`; supplying both throws.
11
+ */
12
+ export type ContinuousPositionScaleOptions = Omit<PositionScaleSpec, "type" | "temporalKind" | "parse" | "parseFailure" | "timezone" | "disambiguation" | "dateBreaks" | "dateMinorBreaks" | "dateLabels" | "locale" | "weekStart"> & {
13
+ /** Pin the scale to [min, max] in source units (sugar for `domain`). */
14
+ limits?: PositionScaleSpec["domain"];
15
+ };
16
+ /** Options for the transform-forcing helpers (log10/sqrt): `transform` is fixed. */
17
+ export type TransformedPositionScaleOptions = Omit<ContinuousPositionScaleOptions, "transform">;
18
+ export type DiscretePositionScaleOptions = Omit<PositionScaleSpec, "type" | "temporalKind" | "parse" | "parseFailure" | "timezone" | "disambiguation" | "dateBreaks" | "dateMinorBreaks" | "dateLabels" | "locale" | "weekStart">;
19
+ export declare function scaleXDate(options?: TemporalScaleOptions): Scales;
20
+ export declare function scaleXDatetime(options?: TemporalScaleOptions): Scales;
21
+ export declare function scaleYDate(options?: TemporalScaleOptions): Scales;
22
+ export declare function scaleYDatetime(options?: TemporalScaleOptions): Scales;
23
+ /**
24
+ * Time-of-day position scale (ggplot2 `scale_x_time`).
25
+ * Portable numbers are **seconds since midnight** (0…86400); see TemporalKind `"time"`.
26
+ */
27
+ export declare function scaleXTime(options?: TemporalScaleOptions): Scales;
28
+ /** Time-of-day position scale (ggplot2 `scale_y_time`). */
29
+ export declare function scaleYTime(options?: TemporalScaleOptions): Scales;
30
+ /**
31
+ * Month-day position scale: the year collapses, so the same calendar day from
32
+ * any year shares one position. Values, `domain`, and `breaks` are all written
33
+ * without a year (`"04-05"`), and no year reaches a label. See TemporalKind
34
+ * `"monthDay"`. A window cannot cross the year boundary.
35
+ */
36
+ export declare function scaleXMonthDay(options?: TemporalScaleOptions): Scales;
37
+ /** Month-day position scale; see {@link scaleXMonthDay}. */
38
+ export declare function scaleYMonthDay(options?: TemporalScaleOptions): Scales;
39
+ export declare function scaleXDiscrete(options?: DiscretePositionScaleOptions): Scales;
40
+ export declare function scaleYDiscrete(options?: DiscretePositionScaleOptions): Scales;
41
+ export declare const scale_x_date: typeof scaleXDate;
42
+ export declare const scale_x_datetime: typeof scaleXDatetime;
43
+ export declare const scale_x_time: typeof scaleXTime;
44
+ export declare const scale_y_date: typeof scaleYDate;
45
+ export declare const scale_y_datetime: typeof scaleYDatetime;
46
+ export declare const scale_y_time: typeof scaleYTime;
47
+ export declare const scale_x_month_day: typeof scaleXMonthDay;
48
+ export declare const scale_y_month_day: typeof scaleYMonthDay;
49
+ export declare const scale_x_discrete: typeof scaleXDiscrete;
50
+ export declare const scale_y_discrete: typeof scaleYDiscrete;
51
+ /** Configure the x scale as a continuous linear scale (default numeric family). */
52
+ export declare function scaleXContinuous(options?: ContinuousPositionScaleOptions): Scales;
53
+ /** Configure the y scale as a continuous linear scale (default numeric family). */
54
+ export declare function scaleYContinuous(options?: ContinuousPositionScaleOptions): Scales;
55
+ /** Configure the x scale as a base-10 log scale (pre-stat log10 transform). */
56
+ export declare function scaleXLog10(options?: TransformedPositionScaleOptions): Scales;
57
+ /** Configure the y scale as a base-10 log scale (pre-stat log10 transform). */
58
+ export declare function scaleYLog10(options?: TransformedPositionScaleOptions): Scales;
59
+ /** Configure the x scale as a square-root scale (pre-stat sqrt transform). */
60
+ export declare function scaleXSqrt(options?: TransformedPositionScaleOptions): Scales;
61
+ /** Configure the y scale as a square-root scale (pre-stat sqrt transform). */
62
+ export declare function scaleYSqrt(options?: TransformedPositionScaleOptions): Scales;
63
+ /** Reverse the x scale's output direction (identity continuous scale, reverse: true). */
64
+ export declare function scaleXReverse(options?: Omit<ContinuousPositionScaleOptions, "transform" | "reverse">): Scales;
65
+ /** Reverse the y scale's output direction (identity continuous scale, reverse: true). */
66
+ export declare function scaleYReverse(options?: Omit<ContinuousPositionScaleOptions, "transform" | "reverse">): Scales;
67
+ /** Configure the x scale as a binned (ordered-bin) quantitative scale. */
68
+ export declare function scaleXBinned(options?: ContinuousPositionScaleOptions): Scales;
69
+ /** Configure the y scale as a binned (ordered-bin) quantitative scale. */
70
+ export declare function scaleYBinned(options?: ContinuousPositionScaleOptions): Scales;
71
+ export declare const scale_x_continuous: typeof scaleXContinuous;
72
+ export declare const scale_y_continuous: typeof scaleYContinuous;
73
+ export declare const scale_x_log10: typeof scaleXLog10;
74
+ export declare const scale_y_log10: typeof scaleYLog10;
75
+ export declare const scale_x_sqrt: typeof scaleXSqrt;
76
+ export declare const scale_y_sqrt: typeof scaleYSqrt;
77
+ export declare const scale_x_reverse: typeof scaleXReverse;
78
+ export declare const scale_y_reverse: typeof scaleYReverse;
79
+ export declare const scale_x_binned: typeof scaleXBinned;
80
+ export declare const scale_y_binned: typeof scaleYBinned;
81
+ //# sourceMappingURL=scale-position-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale-position-helpers.d.ts","sourceRoot":"","sources":["../src/scale-position-helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;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AAW,GAAG,SAAS,CAAM,GAC1E,MAAM,CAER;AAED,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,OAAO,GAAE,8BAAmC,GAAG,MAAM,CAEjF;AAED,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,OAAO,GAAE,8BAAmC,GAAG,MAAM,CAEjF;AAED,eAAO,MAAM,kBAAkB,yBAAmB,CAAC;AACnD,eAAO,MAAM,kBAAkB,yBAAmB,CAAC;AACnD,eAAO,MAAM,aAAa,oBAAc,CAAC;AACzC,eAAO,MAAM,aAAa,oBAAc,CAAC;AACzC,eAAO,MAAM,YAAY,mBAAa,CAAC;AACvC,eAAO,MAAM,YAAY,mBAAa,CAAC;AACvC,eAAO,MAAM,eAAe,sBAAgB,CAAC;AAC7C,eAAO,MAAM,eAAe,sBAAgB,CAAC;AAC7C,eAAO,MAAM,cAAc,qBAAe,CAAC;AAC3C,eAAO,MAAM,cAAc,qBAAe,CAAC"}
@@ -0,0 +1,133 @@
1
+ /**
2
+ * Position scale authoring helpers (x/y continuous, binned, temporal, discrete).
3
+ * Color/fill helpers: scale-color-helpers.ts (+ viridis/stops/hue-grey siblings). Facade re-exports: scale-helpers.ts.
4
+ */
5
+ function temporalScale(axis, temporalKind, options = {}) {
6
+ return { [axis]: { type: "time", temporalKind, ...options } };
7
+ }
8
+ function discreteScale(axis, options = {}) {
9
+ const { type: _, temporalKind: __, parse: ___, parseFailure: ____, timezone: _____, disambiguation: ______, dateBreaks: _______, dateMinorBreaks: ________, dateLabels: _________, locale: __________, weekStart: ___________, ...discrete } = options;
10
+ return { [axis]: { type: "band", ...discrete } };
11
+ }
12
+ export function scaleXDate(options = {}) {
13
+ return temporalScale("x", "date", options);
14
+ }
15
+ export function scaleXDatetime(options = {}) {
16
+ return temporalScale("x", "datetime", options);
17
+ }
18
+ export function scaleYDate(options = {}) {
19
+ return temporalScale("y", "date", options);
20
+ }
21
+ export function scaleYDatetime(options = {}) {
22
+ return temporalScale("y", "datetime", options);
23
+ }
24
+ /**
25
+ * Time-of-day position scale (ggplot2 `scale_x_time`).
26
+ * Portable numbers are **seconds since midnight** (0…86400); see TemporalKind `"time"`.
27
+ */
28
+ export function scaleXTime(options = {}) {
29
+ return temporalScale("x", "time", options);
30
+ }
31
+ /** Time-of-day position scale (ggplot2 `scale_y_time`). */
32
+ export function scaleYTime(options = {}) {
33
+ return temporalScale("y", "time", options);
34
+ }
35
+ /**
36
+ * Month-day position scale: the year collapses, so the same calendar day from
37
+ * any year shares one position. Values, `domain`, and `breaks` are all written
38
+ * without a year (`"04-05"`), and no year reaches a label. See TemporalKind
39
+ * `"monthDay"`. A window cannot cross the year boundary.
40
+ */
41
+ export function scaleXMonthDay(options = {}) {
42
+ return temporalScale("x", "monthDay", options);
43
+ }
44
+ /** Month-day position scale; see {@link scaleXMonthDay}. */
45
+ export function scaleYMonthDay(options = {}) {
46
+ return temporalScale("y", "monthDay", options);
47
+ }
48
+ export function scaleXDiscrete(options = {}) {
49
+ return discreteScale("x", options);
50
+ }
51
+ export function scaleYDiscrete(options = {}) {
52
+ return discreteScale("y", options);
53
+ }
54
+ export const scale_x_date = scaleXDate;
55
+ export const scale_x_datetime = scaleXDatetime;
56
+ export const scale_x_time = scaleXTime;
57
+ export const scale_y_date = scaleYDate;
58
+ export const scale_y_datetime = scaleYDatetime;
59
+ export const scale_y_time = scaleYTime;
60
+ export const scale_x_month_day = scaleXMonthDay;
61
+ export const scale_y_month_day = scaleYMonthDay;
62
+ export const scale_x_discrete = scaleXDiscrete;
63
+ export const scale_y_discrete = scaleYDiscrete;
64
+ // --- continuous / binned position families ----------------------------------
65
+ function continuousScale(axis, type, options, forced = {}) {
66
+ const { limits, domain, transform, reverse, ...rest } = options;
67
+ if (limits !== undefined && domain !== undefined) {
68
+ throw new TypeError("scale helper: supply either `limits` or `domain`, not both (both pin the scale).");
69
+ }
70
+ const resolvedDomain = domain ?? limits;
71
+ const resolvedTransform = forced.transform ?? transform;
72
+ const resolvedReverse = forced.reverse ?? reverse;
73
+ return {
74
+ [axis]: {
75
+ type,
76
+ ...(resolvedTransform !== undefined && { transform: resolvedTransform }),
77
+ ...(resolvedReverse !== undefined && { reverse: resolvedReverse }),
78
+ ...(resolvedDomain !== undefined && { domain: resolvedDomain }),
79
+ ...rest,
80
+ },
81
+ };
82
+ }
83
+ /** Configure the x scale as a continuous linear scale (default numeric family). */
84
+ export function scaleXContinuous(options = {}) {
85
+ return continuousScale("x", "linear", options);
86
+ }
87
+ /** Configure the y scale as a continuous linear scale (default numeric family). */
88
+ export function scaleYContinuous(options = {}) {
89
+ return continuousScale("y", "linear", options);
90
+ }
91
+ /** Configure the x scale as a base-10 log scale (pre-stat log10 transform). */
92
+ export function scaleXLog10(options = {}) {
93
+ return continuousScale("x", "linear", options, { transform: "log10" });
94
+ }
95
+ /** Configure the y scale as a base-10 log scale (pre-stat log10 transform). */
96
+ export function scaleYLog10(options = {}) {
97
+ return continuousScale("y", "linear", options, { transform: "log10" });
98
+ }
99
+ /** Configure the x scale as a square-root scale (pre-stat sqrt transform). */
100
+ export function scaleXSqrt(options = {}) {
101
+ return continuousScale("x", "linear", options, { transform: "sqrt" });
102
+ }
103
+ /** Configure the y scale as a square-root scale (pre-stat sqrt transform). */
104
+ export function scaleYSqrt(options = {}) {
105
+ return continuousScale("y", "linear", options, { transform: "sqrt" });
106
+ }
107
+ /** Reverse the x scale's output direction (identity continuous scale, reverse: true). */
108
+ export function scaleXReverse(options = {}) {
109
+ return continuousScale("x", "linear", options, { reverse: true });
110
+ }
111
+ /** Reverse the y scale's output direction (identity continuous scale, reverse: true). */
112
+ export function scaleYReverse(options = {}) {
113
+ return continuousScale("y", "linear", options, { reverse: true });
114
+ }
115
+ /** Configure the x scale as a binned (ordered-bin) quantitative scale. */
116
+ export function scaleXBinned(options = {}) {
117
+ return continuousScale("x", "binned", options);
118
+ }
119
+ /** Configure the y scale as a binned (ordered-bin) quantitative scale. */
120
+ export function scaleYBinned(options = {}) {
121
+ return continuousScale("y", "binned", options);
122
+ }
123
+ export const scale_x_continuous = scaleXContinuous;
124
+ export const scale_y_continuous = scaleYContinuous;
125
+ export const scale_x_log10 = scaleXLog10;
126
+ export const scale_y_log10 = scaleYLog10;
127
+ export const scale_x_sqrt = scaleXSqrt;
128
+ export const scale_y_sqrt = scaleYSqrt;
129
+ export const scale_x_reverse = scaleXReverse;
130
+ export const scale_y_reverse = scaleYReverse;
131
+ export const scale_x_binned = scaleXBinned;
132
+ export const scale_y_binned = scaleYBinned;
133
+ //# sourceMappingURL=scale-position-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale-position-helpers.js","sourceRoot":"","sources":["../src/scale-position-helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+CH,SAAS,aAAa,CACpB,IAAe,EACf,YAA+B,EAC/B,UAAgC,EAAE;IAElC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,EAAE,CAAC;AAChE,CAAC;AAED,SAAS,aAAa,CAAC,IAAe,EAAE,UAAwC,EAAE;IAChF,MAAM,EACJ,IAAI,EAAE,CAAC,EACP,YAAY,EAAE,EAAE,EAChB,KAAK,EAAE,GAAG,EACV,YAAY,EAAE,IAAI,EAClB,QAAQ,EAAE,KAAK,EACf,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,OAAO,EACnB,eAAe,EAAE,QAAQ,EACzB,UAAU,EAAE,SAAS,EACrB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,WAAW,EACtB,GAAG,QAAQ,EACZ,GAAG,OAA4B,CAAC;IACjC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,EAAE,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,UAAgC,EAAE;IAC3D,OAAO,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAC7C,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GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AACpE,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,YAAY,CAAC,UAA0C,EAAE;IACvE,OAAO,eAAe,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,YAAY,CAAC,UAA0C,EAAE;IACvE,OAAO,eAAe,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AACnD,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;AACzC,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;AACzC,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;AACvC,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;AACvC,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;AAC7C,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;AAC3C,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { type ScaleAesthetic, type ScaleFamily, type ScaleParamDoc } from "./scale-reference-classify-support.js";
2
+ export type { ScaleAesthetic, ScaleFamily, ScaleParamDoc, } from "./scale-reference-classify-support.js";
3
+ export interface ScaleReferenceEntry {
4
+ /** Helper name, e.g. scaleXContinuous (Colour aliases use Colour spelling). */
5
+ readonly helper: string;
6
+ /** Route slug — snake_case stem without the scale prefix (e.g. x_continuous). */
7
+ readonly slug: string;
8
+ /** Svelte component export, e.g. ScaleXContinuous. */
9
+ readonly component: string;
10
+ readonly family: ScaleFamily;
11
+ /** Aesthetic channels written by this helper (usually one). */
12
+ readonly aesthetics: readonly ScaleAesthetic[];
13
+ /** Canonical post-normalize scale type(s) this helper authors. */
14
+ readonly scaleType: string;
15
+ /** Forced transform when the helper pins one (log10/sqrt); else undefined. */
16
+ readonly transform?: "log10" | "sqrt";
17
+ /** Forced temporalKind when the helper pins one. */
18
+ readonly temporalKind?: string;
19
+ /** Short purpose text for index + detail lede. */
20
+ readonly summary: string;
21
+ /** TypeScript options type name (or Omit expression) for the shell props. */
22
+ readonly optionsType: string;
23
+ /** Authoring props (schema-derived + helper sugar). */
24
+ readonly params: readonly ScaleParamDoc[];
25
+ /**
26
+ * How this scale interacts with guides: axis for position; legend/colorbar/
27
+ * colorsteps for style; "none" when guide: "none" is typical.
28
+ */
29
+ readonly guide: string;
30
+ /**
31
+ * When set, this component is a binding-identical re-export of another
32
+ * (British Colour spelling or *Ordinal → *Discrete).
33
+ */
34
+ readonly aliasOf?: string;
35
+ /** Alternate component names that re-export this shell. */
36
+ readonly alsoExportedAs: readonly string[];
37
+ }
38
+ /** scaleXContinuous → ScaleXContinuous */
39
+ export declare function componentNameForScaleHelper(helper: string): string;
40
+ /** scaleXContinuous → x_continuous; scaleColorViridisC → color_viridis_c */
41
+ export declare function slugForScaleHelper(helper: string): string;
42
+ /** Primary Scale* helpers (no Colour / Ordinal-only aliases). */
43
+ export declare function primaryScaleHelpers(): readonly string[];
44
+ /**
45
+ * Every public Scale* surface: primary shells + Colour aliases + Ordinal
46
+ * style aliases (binding-identical re-exports).
47
+ */
48
+ export declare function allScaleHelpers(): readonly string[];
49
+ export declare function buildScaleReference(): Readonly<Record<string, ScaleReferenceEntry>>;
50
+ //# sourceMappingURL=scale-reference-build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale-reference-build.d.ts","sourceRoot":"","sources":["../src/scale-reference-build.ts"],"names":[],"mappings":"AAYA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,aAAa,EACnB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