@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.
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/dist/artifact.d.ts +11 -0
- package/dist/artifact.d.ts.map +1 -0
- package/dist/artifact.js +71 -0
- package/dist/artifact.js.map +1 -0
- package/dist/builder-core.d.ts +100 -0
- package/dist/builder-core.d.ts.map +1 -0
- package/dist/builder-core.js +176 -0
- package/dist/builder-core.js.map +1 -0
- package/dist/builder-data.d.ts +36 -0
- package/dist/builder-data.d.ts.map +1 -0
- package/dist/builder-data.js +123 -0
- package/dist/builder-data.js.map +1 -0
- package/dist/builder-geoms.d.ts +128 -0
- package/dist/builder-geoms.d.ts.map +1 -0
- package/dist/builder-geoms.js +221 -0
- package/dist/builder-geoms.js.map +1 -0
- package/dist/builder-options.d.ts +323 -0
- package/dist/builder-options.d.ts.map +1 -0
- package/dist/builder-options.js +2 -0
- package/dist/builder-options.js.map +1 -0
- package/dist/builder-scales.d.ts +160 -0
- package/dist/builder-scales.d.ts.map +1 -0
- package/dist/builder-scales.js +322 -0
- package/dist/builder-scales.js.map +1 -0
- package/dist/builder.d.ts +242 -0
- package/dist/builder.d.ts.map +1 -0
- package/dist/builder.js +42 -0
- package/dist/builder.js.map +1 -0
- package/dist/capabilities-data.d.ts +72 -0
- package/dist/capabilities-data.d.ts.map +1 -0
- package/dist/capabilities-data.js +337 -0
- package/dist/capabilities-data.js.map +1 -0
- package/dist/capabilities-helpers.d.ts +31 -0
- package/dist/capabilities-helpers.d.ts.map +1 -0
- package/dist/capabilities-helpers.js +41 -0
- package/dist/capabilities-helpers.js.map +1 -0
- package/dist/capabilities.d.ts +22 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +154 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/coord-helpers.d.ts +102 -0
- package/dist/coord-helpers.d.ts.map +1 -0
- package/dist/coord-helpers.js +90 -0
- package/dist/coord-helpers.js.map +1 -0
- package/dist/coord-reference-build.d.ts +50 -0
- package/dist/coord-reference-build.d.ts.map +1 -0
- package/dist/coord-reference-build.js +211 -0
- package/dist/coord-reference-build.js.map +1 -0
- package/dist/coord-reference.d.ts +52 -0
- package/dist/coord-reference.d.ts.map +1 -0
- package/dist/coord-reference.js +27 -0
- package/dist/coord-reference.js.map +1 -0
- package/dist/error-catalog.d.ts +258 -0
- package/dist/error-catalog.d.ts.map +1 -0
- package/dist/error-catalog.js +235 -0
- package/dist/error-catalog.js.map +1 -0
- package/dist/error-prose-shared.d.ts +100 -0
- package/dist/error-prose-shared.d.ts.map +1 -0
- package/dist/error-prose-shared.js +95 -0
- package/dist/error-prose-shared.js.map +1 -0
- package/dist/errors.d.ts +39 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +52 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated/coord-reference-data.d.ts +189 -0
- package/dist/generated/coord-reference-data.d.ts.map +1 -0
- package/dist/generated/coord-reference-data.js +212 -0
- package/dist/generated/coord-reference-data.js.map +1 -0
- package/dist/generated/geom-param-keys.d.ts +58 -0
- package/dist/generated/geom-param-keys.d.ts.map +1 -0
- package/dist/generated/geom-param-keys.js +223 -0
- package/dist/generated/geom-param-keys.js.map +1 -0
- package/dist/generated/geom-reference-data.d.ts +2377 -0
- package/dist/generated/geom-reference-data.d.ts.map +1 -0
- package/dist/generated/geom-reference-data.js +2790 -0
- package/dist/generated/geom-reference-data.js.map +1 -0
- package/dist/generated/guide-reference-data.d.ts +219 -0
- package/dist/generated/guide-reference-data.d.ts.map +1 -0
- package/dist/generated/guide-reference-data.js +253 -0
- package/dist/generated/guide-reference-data.js.map +1 -0
- package/dist/generated/plot-spec-validator.d.ts +2 -0
- package/dist/generated/plot-spec-validator.d.ts.map +1 -0
- package/dist/generated/plot-spec-validator.js +6274 -0
- package/dist/generated/plot-spec-validator.js.map +1 -0
- package/dist/generated/position-reference-data.d.ts +82 -0
- package/dist/generated/position-reference-data.d.ts.map +1 -0
- package/dist/generated/position-reference-data.js +181 -0
- package/dist/generated/position-reference-data.js.map +1 -0
- package/dist/generated/scale-reference-data.d.ts +8366 -0
- package/dist/generated/scale-reference-data.d.ts.map +1 -0
- package/dist/generated/scale-reference-data.js +9821 -0
- package/dist/generated/scale-reference-data.js.map +1 -0
- package/dist/generated/stat-reference-data.d.ts +241 -0
- package/dist/generated/stat-reference-data.d.ts.map +1 -0
- package/dist/generated/stat-reference-data.js +311 -0
- package/dist/generated/stat-reference-data.js.map +1 -0
- package/dist/geom-params-build.d.ts +3 -0
- package/dist/geom-params-build.d.ts.map +1 -0
- package/dist/geom-params-build.js +80 -0
- package/dist/geom-params-build.js.map +1 -0
- package/dist/geom-params.d.ts +13 -0
- package/dist/geom-params.d.ts.map +1 -0
- package/dist/geom-params.js +7 -0
- package/dist/geom-params.js.map +1 -0
- package/dist/geom-reference-build.d.ts +29 -0
- package/dist/geom-reference-build.d.ts.map +1 -0
- package/dist/geom-reference-build.js +221 -0
- package/dist/geom-reference-build.js.map +1 -0
- package/dist/geom-reference.d.ts +52 -0
- package/dist/geom-reference.d.ts.map +1 -0
- package/dist/geom-reference.js +72 -0
- package/dist/geom-reference.js.map +1 -0
- package/dist/guide-helpers.d.ts +20 -0
- package/dist/guide-helpers.d.ts.map +1 -0
- package/dist/guide-helpers.js +25 -0
- package/dist/guide-helpers.js.map +1 -0
- package/dist/guide-reference-build.d.ts +42 -0
- package/dist/guide-reference-build.d.ts.map +1 -0
- package/dist/guide-reference-build.js +180 -0
- package/dist/guide-reference-build.js.map +1 -0
- package/dist/guide-reference.d.ts +48 -0
- package/dist/guide-reference.d.ts.map +1 -0
- package/dist/guide-reference.js +32 -0
- package/dist/guide-reference.js.map +1 -0
- package/dist/hue-grey-palettes.d.ts +15 -0
- package/dist/hue-grey-palettes.d.ts.map +1 -0
- package/dist/hue-grey-palettes.js +77 -0
- package/dist/hue-grey-palettes.js.map +1 -0
- package/dist/index.d.ts +364 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +225 -0
- package/dist/index.js.map +1 -0
- package/dist/lint-catalog.d.ts +47 -0
- package/dist/lint-catalog.d.ts.map +1 -0
- package/dist/lint-catalog.js +39 -0
- package/dist/lint-catalog.js.map +1 -0
- package/dist/lint-layer-rules.d.ts +18 -0
- package/dist/lint-layer-rules.d.ts.map +1 -0
- package/dist/lint-layer-rules.js +145 -0
- package/dist/lint-layer-rules.js.map +1 -0
- package/dist/lint-scale-rules.d.ts +8 -0
- package/dist/lint-scale-rules.d.ts.map +1 -0
- package/dist/lint-scale-rules.js +254 -0
- package/dist/lint-scale-rules.js.map +1 -0
- package/dist/lint.d.ts +62 -0
- package/dist/lint.d.ts.map +1 -0
- package/dist/lint.js +57 -0
- package/dist/lint.js.map +1 -0
- package/dist/normalize-coord.d.ts +8 -0
- package/dist/normalize-coord.d.ts.map +1 -0
- package/dist/normalize-coord.js +123 -0
- package/dist/normalize-coord.js.map +1 -0
- package/dist/normalize-input-layers-marks.d.ts +208 -0
- package/dist/normalize-input-layers-marks.d.ts.map +1 -0
- package/dist/normalize-input-layers-marks.js +2 -0
- package/dist/normalize-input-layers-marks.js.map +1 -0
- package/dist/normalize-input-layers-special.d.ts +131 -0
- package/dist/normalize-input-layers-special.d.ts.map +1 -0
- package/dist/normalize-input-layers-special.js +2 -0
- package/dist/normalize-input-layers-special.js.map +1 -0
- package/dist/normalize-input.d.ts +81 -0
- package/dist/normalize-input.d.ts.map +1 -0
- package/dist/normalize-input.js +2 -0
- package/dist/normalize-input.js.map +1 -0
- package/dist/normalize-paint.d.ts +8 -0
- package/dist/normalize-paint.d.ts.map +1 -0
- package/dist/normalize-paint.js +83 -0
- package/dist/normalize-paint.js.map +1 -0
- package/dist/normalize-scales.d.ts +7 -0
- package/dist/normalize-scales.d.ts.map +1 -0
- package/dist/normalize-scales.js +90 -0
- package/dist/normalize-scales.js.map +1 -0
- package/dist/normalize.d.ts +46 -0
- package/dist/normalize.d.ts.map +1 -0
- package/dist/normalize.js +279 -0
- package/dist/normalize.js.map +1 -0
- package/dist/paint-helpers.d.ts +45 -0
- package/dist/paint-helpers.d.ts.map +1 -0
- package/dist/paint-helpers.js +48 -0
- package/dist/paint-helpers.js.map +1 -0
- package/dist/pipeline-error-catalog.d.ts +319 -0
- package/dist/pipeline-error-catalog.d.ts.map +1 -0
- package/dist/pipeline-error-catalog.js +260 -0
- package/dist/pipeline-error-catalog.js.map +1 -0
- package/dist/portability-check.d.ts +35 -0
- package/dist/portability-check.d.ts.map +1 -0
- package/dist/portability-check.js +121 -0
- package/dist/portability-check.js.map +1 -0
- package/dist/portability-lossy.d.ts +19 -0
- package/dist/portability-lossy.d.ts.map +1 -0
- package/dist/portability-lossy.js +65 -0
- package/dist/portability-lossy.js.map +1 -0
- package/dist/portability.d.ts +23 -0
- package/dist/portability.d.ts.map +1 -0
- package/dist/portability.js +23 -0
- package/dist/portability.js.map +1 -0
- package/dist/portable-builder.d.ts +215 -0
- package/dist/portable-builder.d.ts.map +1 -0
- package/dist/portable-builder.js +27 -0
- package/dist/portable-builder.js.map +1 -0
- package/dist/portable-entry.d.ts +16 -0
- package/dist/portable-entry.d.ts.map +1 -0
- package/dist/portable-entry.js +14 -0
- package/dist/portable-entry.js.map +1 -0
- package/dist/position-reference-build.d.ts +29 -0
- package/dist/position-reference-build.d.ts.map +1 -0
- package/dist/position-reference-build.js +115 -0
- package/dist/position-reference-build.js.map +1 -0
- package/dist/position-reference.d.ts +34 -0
- package/dist/position-reference.d.ts.map +1 -0
- package/dist/position-reference.js +19 -0
- package/dist/position-reference.js.map +1 -0
- package/dist/runtime.d.ts +139 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +2 -0
- package/dist/runtime.js.map +1 -0
- package/dist/scale-color-helpers.d.ts +121 -0
- package/dist/scale-color-helpers.d.ts.map +1 -0
- package/dist/scale-color-helpers.js +188 -0
- package/dist/scale-color-helpers.js.map +1 -0
- package/dist/scale-color-hue-grey.d.ts +52 -0
- package/dist/scale-color-hue-grey.d.ts.map +1 -0
- package/dist/scale-color-hue-grey.js +60 -0
- package/dist/scale-color-hue-grey.js.map +1 -0
- package/dist/scale-color-stops.d.ts +85 -0
- package/dist/scale-color-stops.d.ts.map +1 -0
- package/dist/scale-color-stops.js +87 -0
- package/dist/scale-color-stops.js.map +1 -0
- package/dist/scale-color-viridis.d.ts +52 -0
- package/dist/scale-color-viridis.d.ts.map +1 -0
- package/dist/scale-color-viridis.js +68 -0
- package/dist/scale-color-viridis.js.map +1 -0
- package/dist/scale-helpers.d.ts +20 -0
- package/dist/scale-helpers.d.ts.map +1 -0
- package/dist/scale-helpers.js +20 -0
- package/dist/scale-helpers.js.map +1 -0
- package/dist/scale-multi-helpers.d.ts +61 -0
- package/dist/scale-multi-helpers.d.ts.map +1 -0
- package/dist/scale-multi-helpers.js +147 -0
- package/dist/scale-multi-helpers.js.map +1 -0
- package/dist/scale-position-helpers.d.ts +81 -0
- package/dist/scale-position-helpers.d.ts.map +1 -0
- package/dist/scale-position-helpers.js +133 -0
- package/dist/scale-position-helpers.js.map +1 -0
- package/dist/scale-reference-build.d.ts +50 -0
- package/dist/scale-reference-build.d.ts.map +1 -0
- package/dist/scale-reference-build.js +147 -0
- package/dist/scale-reference-build.js.map +1 -0
- package/dist/scale-reference-classify-color.d.ts +11 -0
- package/dist/scale-reference-classify-color.d.ts.map +1 -0
- package/dist/scale-reference-classify-color.js +292 -0
- package/dist/scale-reference-classify-color.js.map +1 -0
- package/dist/scale-reference-classify-position.d.ts +10 -0
- package/dist/scale-reference-classify-position.d.ts.map +1 -0
- package/dist/scale-reference-classify-position.js +137 -0
- package/dist/scale-reference-classify-position.js.map +1 -0
- package/dist/scale-reference-classify-style.d.ts +10 -0
- package/dist/scale-reference-classify-style.d.ts.map +1 -0
- package/dist/scale-reference-classify-style.js +194 -0
- package/dist/scale-reference-classify-style.js.map +1 -0
- package/dist/scale-reference-classify-support.d.ts +37 -0
- package/dist/scale-reference-classify-support.d.ts.map +1 -0
- package/dist/scale-reference-classify-support.js +206 -0
- package/dist/scale-reference-classify-support.js.map +1 -0
- package/dist/scale-reference.d.ts +80 -0
- package/dist/scale-reference.d.ts.map +1 -0
- package/dist/scale-reference.js +85 -0
- package/dist/scale-reference.js.map +1 -0
- package/dist/scale-style-helpers.d.ts +158 -0
- package/dist/scale-style-helpers.d.ts.map +1 -0
- package/dist/scale-style-helpers.js +197 -0
- package/dist/scale-style-helpers.js.map +1 -0
- package/dist/schema-catalog.d.ts +62 -0
- package/dist/schema-catalog.d.ts.map +1 -0
- package/dist/schema-catalog.js +208 -0
- package/dist/schema-catalog.js.map +1 -0
- package/dist/schema-declarations.d.ts +1585 -0
- package/dist/schema-declarations.d.ts.map +1 -0
- package/dist/schema-declarations.js +51 -0
- package/dist/schema-declarations.js.map +1 -0
- package/dist/schema-decls-data.d.ts +58 -0
- package/dist/schema-decls-data.d.ts.map +1 -0
- package/dist/schema-decls-data.js +151 -0
- package/dist/schema-decls-data.js.map +1 -0
- package/dist/schema-decls-guides-theme.d.ts +166 -0
- package/dist/schema-decls-guides-theme.d.ts.map +1 -0
- package/dist/schema-decls-guides-theme.js +251 -0
- package/dist/schema-decls-guides-theme.js.map +1 -0
- package/dist/schema-decls-layers-col-boxplot.d.ts +118 -0
- package/dist/schema-decls-layers-col-boxplot.d.ts.map +1 -0
- package/dist/schema-decls-layers-col-boxplot.js +239 -0
- package/dist/schema-decls-layers-col-boxplot.js.map +1 -0
- package/dist/schema-decls-layers-count-pointrange.d.ts +89 -0
- package/dist/schema-decls-layers-count-pointrange.d.ts.map +1 -0
- package/dist/schema-decls-layers-count-pointrange.js +190 -0
- package/dist/schema-decls-layers-count-pointrange.js.map +1 -0
- package/dist/schema-decls-layers-crossbar-jitter.d.ts +129 -0
- package/dist/schema-decls-layers-crossbar-jitter.d.ts.map +1 -0
- package/dist/schema-decls-layers-crossbar-jitter.js +255 -0
- package/dist/schema-decls-layers-crossbar-jitter.js.map +1 -0
- package/dist/schema-decls-layers-point-path.d.ts +49 -0
- package/dist/schema-decls-layers-point-path.d.ts.map +1 -0
- package/dist/schema-decls-layers-point-path.js +156 -0
- package/dist/schema-decls-layers-point-path.js.map +1 -0
- package/dist/schema-decls-layers-sf-blank.d.ts +89 -0
- package/dist/schema-decls-layers-sf-blank.d.ts.map +1 -0
- package/dist/schema-decls-layers-sf-blank.js +254 -0
- package/dist/schema-decls-layers-sf-blank.js.map +1 -0
- package/dist/schema-decls-layers-text-map.d.ts +80 -0
- package/dist/schema-decls-layers-text-map.d.ts.map +1 -0
- package/dist/schema-decls-layers-text-map.js +151 -0
- package/dist/schema-decls-layers-text-map.js.map +1 -0
- package/dist/schema-decls-paint.d.ts +39 -0
- package/dist/schema-decls-paint.d.ts.map +1 -0
- package/dist/schema-decls-paint.js +95 -0
- package/dist/schema-decls-paint.js.map +1 -0
- package/dist/schema-decls-params-area-abline.d.ts +85 -0
- package/dist/schema-decls-params-area-abline.d.ts.map +1 -0
- package/dist/schema-decls-params-area-abline.js +259 -0
- package/dist/schema-decls-params-area-abline.js.map +1 -0
- package/dist/schema-decls-params-col-contour.d.ts +61 -0
- package/dist/schema-decls-params-col-contour.d.ts.map +1 -0
- package/dist/schema-decls-params-col-contour.js +202 -0
- package/dist/schema-decls-params-col-contour.js.map +1 -0
- package/dist/schema-decls-params-curve-label.d.ts +64 -0
- package/dist/schema-decls-params-curve-label.d.ts.map +1 -0
- package/dist/schema-decls-params-curve-label.js +204 -0
- package/dist/schema-decls-params-curve-label.js.map +1 -0
- package/dist/schema-decls-params-errorbar-position.d.ts +83 -0
- package/dist/schema-decls-params-errorbar-position.d.ts.map +1 -0
- package/dist/schema-decls-params-errorbar-position.js +264 -0
- package/dist/schema-decls-params-errorbar-position.js.map +1 -0
- package/dist/schema-decls-params-point-path.d.ts +61 -0
- package/dist/schema-decls-params-point-path.d.ts.map +1 -0
- package/dist/schema-decls-params-point-path.js +240 -0
- package/dist/schema-decls-params-point-path.js.map +1 -0
- package/dist/schema-decls-params-violin-summary.d.ts +78 -0
- package/dist/schema-decls-params-violin-summary.d.ts.map +1 -0
- package/dist/schema-decls-params-violin-summary.js +272 -0
- package/dist/schema-decls-params-violin-summary.js.map +1 -0
- package/dist/schema-decls-plot.d.ts +80 -0
- package/dist/schema-decls-plot.d.ts.map +1 -0
- package/dist/schema-decls-plot.js +222 -0
- package/dist/schema-decls-plot.js.map +1 -0
- package/dist/schema-decls-scales-guides.d.ts +291 -0
- package/dist/schema-decls-scales-guides.d.ts.map +1 -0
- package/dist/schema-decls-scales-guides.js +189 -0
- package/dist/schema-decls-scales-guides.js.map +1 -0
- package/dist/schema-decls-scales.d.ts +124 -0
- package/dist/schema-decls-scales.d.ts.map +1 -0
- package/dist/schema-decls-scales.js +279 -0
- package/dist/schema-decls-scales.js.map +1 -0
- package/dist/schema-imports.d.ts +1679 -0
- package/dist/schema-imports.d.ts.map +1 -0
- package/dist/schema-imports.js +104 -0
- package/dist/schema-imports.js.map +1 -0
- package/dist/schema-name-schemas.d.ts +18 -0
- package/dist/schema-name-schemas.d.ts.map +1 -0
- package/dist/schema-name-schemas.js +13 -0
- package/dist/schema-name-schemas.js.map +1 -0
- package/dist/schema-names.d.ts +53 -0
- package/dist/schema-names.d.ts.map +1 -0
- package/dist/schema-names.js +229 -0
- package/dist/schema-names.js.map +1 -0
- package/dist/schema-types.d.ts +336 -0
- package/dist/schema-types.d.ts.map +1 -0
- package/dist/schema-types.js +10 -0
- package/dist/schema-types.js.map +1 -0
- package/dist/schema.d.ts +38 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +34 -0
- package/dist/schema.js.map +1 -0
- package/dist/stat-reference-build.d.ts +24 -0
- package/dist/stat-reference-build.d.ts.map +1 -0
- package/dist/stat-reference-build.js +86 -0
- package/dist/stat-reference-build.js.map +1 -0
- package/dist/stat-reference.d.ts +33 -0
- package/dist/stat-reference.d.ts.map +1 -0
- package/dist/stat-reference.js +19 -0
- package/dist/stat-reference.js.map +1 -0
- package/dist/structural-gate.d.ts +15 -0
- package/dist/structural-gate.d.ts.map +1 -0
- package/dist/structural-gate.js +34 -0
- package/dist/structural-gate.js.map +1 -0
- package/dist/temporal-column.d.ts +33 -0
- package/dist/temporal-column.d.ts.map +1 -0
- package/dist/temporal-column.js +247 -0
- package/dist/temporal-column.js.map +1 -0
- package/dist/temporal-guides.d.ts +11 -0
- package/dist/temporal-guides.d.ts.map +1 -0
- package/dist/temporal-guides.js +11 -0
- package/dist/temporal-guides.js.map +1 -0
- package/dist/temporal-interval-schema.d.ts +9 -0
- package/dist/temporal-interval-schema.d.ts.map +1 -0
- package/dist/temporal-interval-schema.js +25 -0
- package/dist/temporal-interval-schema.js.map +1 -0
- package/dist/temporal-interval.d.ts +29 -0
- package/dist/temporal-interval.d.ts.map +1 -0
- package/dist/temporal-interval.js +122 -0
- package/dist/temporal-interval.js.map +1 -0
- package/dist/temporal-parse-core.d.ts +96 -0
- package/dist/temporal-parse-core.d.ts.map +1 -0
- package/dist/temporal-parse-core.js +235 -0
- package/dist/temporal-parse-core.js.map +1 -0
- package/dist/temporal-parse-format.d.ts +13 -0
- package/dist/temporal-parse-format.d.ts.map +1 -0
- package/dist/temporal-parse-format.js +180 -0
- package/dist/temporal-parse-format.js.map +1 -0
- package/dist/temporal-parse-schema.d.ts +11 -0
- package/dist/temporal-parse-schema.d.ts.map +1 -0
- package/dist/temporal-parse-schema.js +23 -0
- package/dist/temporal-parse-schema.js.map +1 -0
- package/dist/temporal-parse.d.ts +18 -0
- package/dist/temporal-parse.d.ts.map +1 -0
- package/dist/temporal-parse.js +183 -0
- package/dist/temporal-parse.js.map +1 -0
- package/dist/temporal-polyfill.d.ts +3 -0
- package/dist/temporal-polyfill.d.ts.map +1 -0
- package/dist/temporal-polyfill.js +25 -0
- package/dist/temporal-polyfill.js.map +1 -0
- package/dist/temporal-ticks.d.ts +20 -0
- package/dist/temporal-ticks.d.ts.map +1 -0
- package/dist/temporal-ticks.js +246 -0
- package/dist/temporal-ticks.js.map +1 -0
- package/dist/temporal.d.ts +109 -0
- package/dist/temporal.d.ts.map +1 -0
- package/dist/temporal.js +73 -0
- package/dist/temporal.js.map +1 -0
- package/dist/validate-data-checks-color-temporal.d.ts +58 -0
- package/dist/validate-data-checks-color-temporal.d.ts.map +1 -0
- package/dist/validate-data-checks-color-temporal.js +168 -0
- package/dist/validate-data-checks-color-temporal.js.map +1 -0
- package/dist/validate-data-checks-color.d.ts +28 -0
- package/dist/validate-data-checks-color.d.ts.map +1 -0
- package/dist/validate-data-checks-color.js +296 -0
- package/dist/validate-data-checks-color.js.map +1 -0
- package/dist/validate-data-checks-layer.d.ts +37 -0
- package/dist/validate-data-checks-layer.d.ts.map +1 -0
- package/dist/validate-data-checks-layer.js +343 -0
- package/dist/validate-data-checks-layer.js.map +1 -0
- package/dist/validate-data-checks-position.d.ts +45 -0
- package/dist/validate-data-checks-position.d.ts.map +1 -0
- package/dist/validate-data-checks-position.js +204 -0
- package/dist/validate-data-checks-position.js.map +1 -0
- package/dist/validate-data-checks-style-finite.d.ts +24 -0
- package/dist/validate-data-checks-style-finite.d.ts.map +1 -0
- package/dist/validate-data-checks-style-finite.js +40 -0
- package/dist/validate-data-checks-style-finite.js.map +1 -0
- package/dist/validate-data-checks-style-numeric.d.ts +26 -0
- package/dist/validate-data-checks-style-numeric.d.ts.map +1 -0
- package/dist/validate-data-checks-style-numeric.js +327 -0
- package/dist/validate-data-checks-style-numeric.js.map +1 -0
- package/dist/validate-data-checks-style.d.ts +14 -0
- package/dist/validate-data-checks-style.d.ts.map +1 -0
- package/dist/validate-data-checks-style.js +14 -0
- package/dist/validate-data-checks-style.js.map +1 -0
- package/dist/validate-data-checks-temporal.d.ts +57 -0
- package/dist/validate-data-checks-temporal.d.ts.map +1 -0
- package/dist/validate-data-checks-temporal.js +83 -0
- package/dist/validate-data-checks-temporal.js.map +1 -0
- package/dist/validate-data-checks.d.ts +31 -0
- package/dist/validate-data-checks.d.ts.map +1 -0
- package/dist/validate-data-checks.js +110 -0
- package/dist/validate-data-checks.js.map +1 -0
- package/dist/validate-data-evidence.d.ts +69 -0
- package/dist/validate-data-evidence.d.ts.map +1 -0
- package/dist/validate-data-evidence.js +329 -0
- package/dist/validate-data-evidence.js.map +1 -0
- package/dist/validate-data.d.ts +73 -0
- package/dist/validate-data.d.ts.map +1 -0
- package/dist/validate-data.js +30 -0
- package/dist/validate-data.js.map +1 -0
- package/dist/validate-map-errors.d.ts +32 -0
- package/dist/validate-map-errors.d.ts.map +1 -0
- package/dist/validate-map-errors.js +76 -0
- package/dist/validate-map-errors.js.map +1 -0
- package/dist/validate-map-forms.d.ts +43 -0
- package/dist/validate-map-forms.d.ts.map +1 -0
- package/dist/validate-map-forms.js +125 -0
- package/dist/validate-map-forms.js.map +1 -0
- package/dist/validate-map-path-keywords.d.ts +11 -0
- package/dist/validate-map-path-keywords.d.ts.map +1 -0
- package/dist/validate-map-path-keywords.js +95 -0
- package/dist/validate-map-path-keywords.js.map +1 -0
- package/dist/validate-map-path-unions.d.ts +27 -0
- package/dist/validate-map-path-unions.d.ts.map +1 -0
- package/dist/validate-map-path-unions.js +200 -0
- package/dist/validate-map-path-unions.js.map +1 -0
- package/dist/validate-schema-shape.d.ts +69 -0
- package/dist/validate-schema-shape.d.ts.map +1 -0
- package/dist/validate-schema-shape.js +156 -0
- package/dist/validate-schema-shape.js.map +1 -0
- package/dist/validate-schema-walk.d.ts +34 -0
- package/dist/validate-schema-walk.d.ts.map +1 -0
- package/dist/validate-schema-walk.js +216 -0
- package/dist/validate-schema-walk.js.map +1 -0
- package/dist/validate-structure-facet.d.ts +8 -0
- package/dist/validate-structure-facet.d.ts.map +1 -0
- package/dist/validate-structure-facet.js +67 -0
- package/dist/validate-structure-facet.js.map +1 -0
- package/dist/validate-structure-layer-computed-y.d.ts +14 -0
- package/dist/validate-structure-layer-computed-y.d.ts.map +1 -0
- package/dist/validate-structure-layer-computed-y.js +70 -0
- package/dist/validate-structure-layer-computed-y.js.map +1 -0
- package/dist/validate-structure-layer-ribbon.d.ts +8 -0
- package/dist/validate-structure-layer-ribbon.d.ts.map +1 -0
- package/dist/validate-structure-layer-ribbon.js +36 -0
- package/dist/validate-structure-layer-ribbon.js.map +1 -0
- package/dist/validate-structure-layer-rule.d.ts +14 -0
- package/dist/validate-structure-layer-rule.d.ts.map +1 -0
- package/dist/validate-structure-layer-rule.js +90 -0
- package/dist/validate-structure-layer-rule.js.map +1 -0
- package/dist/validate-structure-layer-shared.d.ts +12 -0
- package/dist/validate-structure-layer-shared.d.ts.map +1 -0
- package/dist/validate-structure-layer-shared.js +17 -0
- package/dist/validate-structure-layer-shared.js.map +1 -0
- package/dist/validate-structure-layers.d.ts +12 -0
- package/dist/validate-structure-layers.d.ts.map +1 -0
- package/dist/validate-structure-layers.js +292 -0
- package/dist/validate-structure-layers.js.map +1 -0
- package/dist/validate-structure-paint.d.ts +12 -0
- package/dist/validate-structure-paint.d.ts.map +1 -0
- package/dist/validate-structure-paint.js +87 -0
- package/dist/validate-structure-paint.js.map +1 -0
- package/dist/validate-structure-scales.d.ts +10 -0
- package/dist/validate-structure-scales.d.ts.map +1 -0
- package/dist/validate-structure-scales.js +242 -0
- package/dist/validate-structure-scales.js.map +1 -0
- package/dist/validate-structure-style-bins.d.ts +17 -0
- package/dist/validate-structure-style-bins.d.ts.map +1 -0
- package/dist/validate-structure-style-bins.js +150 -0
- package/dist/validate-structure-style-bins.js.map +1 -0
- package/dist/validate-structure.d.ts +16 -0
- package/dist/validate-structure.d.ts.map +1 -0
- package/dist/validate-structure.js +16 -0
- package/dist/validate-structure.js.map +1 -0
- package/dist/validate.d.ts +24 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/validate.js +178 -0
- package/dist/validate.js.map +1 -0
- package/package.json +59 -0
- package/schema/v0.json +9618 -0
- package/src/artifact.ts +81 -0
- package/src/builder-core.ts +276 -0
- package/src/builder-data.ts +156 -0
- package/src/builder-geoms.ts +290 -0
- package/src/builder-options.ts +428 -0
- package/src/builder-scales.ts +443 -0
- package/src/builder.ts +125 -0
- package/src/capabilities-data.ts +336 -0
- package/src/capabilities-helpers.ts +54 -0
- package/src/capabilities.ts +159 -0
- package/src/coord-helpers.ts +177 -0
- package/src/coord-reference-build.ts +283 -0
- package/src/coord-reference.ts +75 -0
- package/src/error-catalog.ts +253 -0
- package/src/error-prose-shared.ts +106 -0
- package/src/errors.ts +87 -0
- package/src/generated/coord-reference-data.ts +235 -0
- package/src/generated/geom-param-keys.ts +222 -0
- package/src/generated/geom-reference-data.ts +3024 -0
- package/src/generated/guide-reference-data.ts +284 -0
- package/src/generated/plot-spec-validator.ts +7335 -0
- package/src/generated/position-reference-data.ts +191 -0
- package/src/generated/scale-reference-data.ts +10665 -0
- package/src/generated/stat-reference-data.ts +339 -0
- package/src/geom-params-build.ts +92 -0
- package/src/geom-params.ts +14 -0
- package/src/geom-reference-build.ts +292 -0
- package/src/geom-reference.ts +127 -0
- package/src/guide-helpers.ts +44 -0
- package/src/guide-reference-build.ts +249 -0
- package/src/guide-reference.ts +76 -0
- package/src/hue-grey-palettes.ts +82 -0
- package/src/index.ts +400 -0
- package/src/lint-catalog.ts +57 -0
- package/src/lint-layer-rules.ts +175 -0
- package/src/lint-scale-rules.ts +285 -0
- package/src/lint.ts +126 -0
- package/src/normalize-coord.ts +126 -0
- package/src/normalize-input-layers-marks.ts +276 -0
- package/src/normalize-input-layers-special.ts +252 -0
- package/src/normalize-input.ts +154 -0
- package/src/normalize-paint.ts +98 -0
- package/src/normalize-scales.ts +108 -0
- package/src/normalize.ts +403 -0
- package/src/paint-helpers.ts +98 -0
- package/src/pipeline-error-catalog.ts +278 -0
- package/src/portability-check.ts +155 -0
- package/src/portability-lossy.ts +81 -0
- package/src/portability.ts +31 -0
- package/src/portable-builder.ts +35 -0
- package/src/portable-entry.ts +37 -0
- package/src/position-reference-build.ts +164 -0
- package/src/position-reference.ts +41 -0
- package/src/runtime.ts +198 -0
- package/src/scale-color-helpers.ts +263 -0
- package/src/scale-color-hue-grey.ts +95 -0
- package/src/scale-color-stops.ts +177 -0
- package/src/scale-color-viridis.ts +99 -0
- package/src/scale-helpers.ts +264 -0
- package/src/scale-multi-helpers.ts +220 -0
- package/src/scale-position-helpers.ts +231 -0
- package/src/scale-reference-build.ts +222 -0
- package/src/scale-reference-classify-color.ts +334 -0
- package/src/scale-reference-classify-position.ts +164 -0
- package/src/scale-reference-classify-style.ts +229 -0
- package/src/scale-reference-classify-support.ts +298 -0
- package/src/scale-reference.ts +165 -0
- package/src/scale-style-helpers.ts +316 -0
- package/src/schema-catalog.ts +222 -0
- package/src/schema-declarations.ts +51 -0
- package/src/schema-decls-data.ts +272 -0
- package/src/schema-decls-guides-theme.ts +395 -0
- package/src/schema-decls-layers-col-boxplot.ts +410 -0
- package/src/schema-decls-layers-count-pointrange.ts +321 -0
- package/src/schema-decls-layers-crossbar-jitter.ts +443 -0
- package/src/schema-decls-layers-point-path.ts +246 -0
- package/src/schema-decls-layers-sf-blank.ts +408 -0
- package/src/schema-decls-layers-text-map.ts +259 -0
- package/src/schema-decls-paint.ts +124 -0
- package/src/schema-decls-params-area-abline.ts +440 -0
- package/src/schema-decls-params-col-contour.ts +333 -0
- package/src/schema-decls-params-curve-label.ts +343 -0
- package/src/schema-decls-params-errorbar-position.ts +446 -0
- package/src/schema-decls-params-point-path.ts +394 -0
- package/src/schema-decls-params-violin-summary.ts +447 -0
- package/src/schema-decls-plot.ts +385 -0
- package/src/schema-decls-scales-guides.ts +233 -0
- package/src/schema-decls-scales.ts +432 -0
- package/src/schema-imports.ts +116 -0
- package/src/schema-name-schemas.ts +37 -0
- package/src/schema-names.ts +243 -0
- package/src/schema-types.ts +400 -0
- package/src/schema.ts +287 -0
- package/src/stat-reference-build.ts +145 -0
- package/src/stat-reference.ts +38 -0
- package/src/structural-gate.ts +42 -0
- package/src/temporal-column.ts +323 -0
- package/src/temporal-guides.ts +32 -0
- package/src/temporal-interval-schema.ts +40 -0
- package/src/temporal-interval.ts +151 -0
- package/src/temporal-parse-core.ts +331 -0
- package/src/temporal-parse-format.ts +222 -0
- package/src/temporal-parse-schema.ts +38 -0
- package/src/temporal-parse.ts +259 -0
- package/src/temporal-polyfill.ts +27 -0
- package/src/temporal-ticks.ts +312 -0
- package/src/temporal.ts +112 -0
- package/src/validate-data-checks-color-temporal.ts +261 -0
- package/src/validate-data-checks-color.ts +395 -0
- package/src/validate-data-checks-layer.ts +492 -0
- package/src/validate-data-checks-position.ts +275 -0
- package/src/validate-data-checks-style-finite.ts +55 -0
- package/src/validate-data-checks-style-numeric.ts +455 -0
- package/src/validate-data-checks-style.ts +13 -0
- package/src/validate-data-checks-temporal.ts +129 -0
- package/src/validate-data-checks.ts +157 -0
- package/src/validate-data-evidence.ts +419 -0
- package/src/validate-data.ts +114 -0
- package/src/validate-map-errors.ts +126 -0
- package/src/validate-map-forms.ts +148 -0
- package/src/validate-map-path-keywords.ts +129 -0
- package/src/validate-map-path-unions.ts +281 -0
- package/src/validate-schema-shape.ts +232 -0
- package/src/validate-schema-walk.ts +219 -0
- package/src/validate-structure-facet.ts +76 -0
- package/src/validate-structure-layer-computed-y.ts +94 -0
- package/src/validate-structure-layer-ribbon.ts +61 -0
- package/src/validate-structure-layer-rule.ts +98 -0
- package/src/validate-structure-layer-shared.ts +29 -0
- package/src/validate-structure-layers.ts +395 -0
- package/src/validate-structure-paint.ts +101 -0
- package/src/validate-structure-scales.ts +278 -0
- package/src/validate-structure-style-bins.ts +167 -0
- package/src/validate-structure.ts +16 -0
- package/src/validate.ts +212 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED by scripts/gen-reference-catalogs.ts — do not edit by hand.
|
|
3
|
+
* Regenerate: bun run reference:catalogs:gen
|
|
4
|
+
*
|
|
5
|
+
* STAT_REFERENCE — per-stat API docs.
|
|
6
|
+
*/
|
|
7
|
+
export const STAT_REFERENCE_DATA = {
|
|
8
|
+
identity: {
|
|
9
|
+
name: "identity",
|
|
10
|
+
slug: "identity",
|
|
11
|
+
summary:
|
|
12
|
+
"Pass rows through unchanged. Default for most geoms: each mapped row becomes one mark with no aggregation.",
|
|
13
|
+
generatedColumns: [],
|
|
14
|
+
compatibleGeoms: [
|
|
15
|
+
"point",
|
|
16
|
+
"line",
|
|
17
|
+
"path",
|
|
18
|
+
"col",
|
|
19
|
+
"area",
|
|
20
|
+
"rule",
|
|
21
|
+
"hline",
|
|
22
|
+
"vline",
|
|
23
|
+
"text",
|
|
24
|
+
"label",
|
|
25
|
+
"errorbar",
|
|
26
|
+
"linerange",
|
|
27
|
+
"pointrange",
|
|
28
|
+
"crossbar",
|
|
29
|
+
"rect",
|
|
30
|
+
"tile",
|
|
31
|
+
"raster",
|
|
32
|
+
"ribbon",
|
|
33
|
+
"segment",
|
|
34
|
+
"polygon",
|
|
35
|
+
"abline",
|
|
36
|
+
"curve",
|
|
37
|
+
"map",
|
|
38
|
+
"blank",
|
|
39
|
+
"jitter",
|
|
40
|
+
"spoke",
|
|
41
|
+
"rug",
|
|
42
|
+
"step",
|
|
43
|
+
],
|
|
44
|
+
defaultForGeoms: [
|
|
45
|
+
"point",
|
|
46
|
+
"line",
|
|
47
|
+
"path",
|
|
48
|
+
"col",
|
|
49
|
+
"area",
|
|
50
|
+
"rule",
|
|
51
|
+
"hline",
|
|
52
|
+
"vline",
|
|
53
|
+
"text",
|
|
54
|
+
"label",
|
|
55
|
+
"errorbar",
|
|
56
|
+
"linerange",
|
|
57
|
+
"pointrange",
|
|
58
|
+
"crossbar",
|
|
59
|
+
"rect",
|
|
60
|
+
"tile",
|
|
61
|
+
"raster",
|
|
62
|
+
"ribbon",
|
|
63
|
+
"segment",
|
|
64
|
+
"polygon",
|
|
65
|
+
"abline",
|
|
66
|
+
"curve",
|
|
67
|
+
"map",
|
|
68
|
+
"blank",
|
|
69
|
+
"jitter",
|
|
70
|
+
"spoke",
|
|
71
|
+
"rug",
|
|
72
|
+
"step",
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
unique: {
|
|
76
|
+
name: "unique",
|
|
77
|
+
slug: "unique",
|
|
78
|
+
summary:
|
|
79
|
+
"Keep one row per distinct mapped (x, y) pair (and group). Use when duplicate coordinates would overplot; default for none.",
|
|
80
|
+
generatedColumns: [],
|
|
81
|
+
compatibleGeoms: [
|
|
82
|
+
"point",
|
|
83
|
+
"line",
|
|
84
|
+
"path",
|
|
85
|
+
"col",
|
|
86
|
+
"area",
|
|
87
|
+
"rule",
|
|
88
|
+
"text",
|
|
89
|
+
"errorbar",
|
|
90
|
+
"rect",
|
|
91
|
+
"ribbon",
|
|
92
|
+
"segment",
|
|
93
|
+
],
|
|
94
|
+
defaultForGeoms: [],
|
|
95
|
+
},
|
|
96
|
+
manual: {
|
|
97
|
+
name: "manual",
|
|
98
|
+
slug: "manual",
|
|
99
|
+
summary:
|
|
100
|
+
"Author-supplied after_stat values via params — skip automatic transforms when you already computed summaries.",
|
|
101
|
+
generatedColumns: [],
|
|
102
|
+
compatibleGeoms: ["point", "line", "path"],
|
|
103
|
+
defaultForGeoms: [],
|
|
104
|
+
},
|
|
105
|
+
connect: {
|
|
106
|
+
name: "connect",
|
|
107
|
+
slug: "connect",
|
|
108
|
+
summary:
|
|
109
|
+
"Expand successive points into connection vertices (linear, hv, vh, mid) for stepped or path-style joins between observations.",
|
|
110
|
+
generatedColumns: [],
|
|
111
|
+
compatibleGeoms: ["line", "path"],
|
|
112
|
+
defaultForGeoms: [],
|
|
113
|
+
},
|
|
114
|
+
count: {
|
|
115
|
+
name: "count",
|
|
116
|
+
slug: "count",
|
|
117
|
+
summary:
|
|
118
|
+
"Count rows (or sum weights) per distinct x within each group. Default for geom_bar; publishes after_stat count.",
|
|
119
|
+
generatedColumns: ["count"],
|
|
120
|
+
compatibleGeoms: ["bar"],
|
|
121
|
+
defaultForGeoms: ["bar"],
|
|
122
|
+
},
|
|
123
|
+
bin: {
|
|
124
|
+
name: "bin",
|
|
125
|
+
slug: "bin",
|
|
126
|
+
summary:
|
|
127
|
+
"Bin continuous x into histogram breaks. Publishes count, density, ncount, and ndensity; default for histogram and freqpoly.",
|
|
128
|
+
generatedColumns: ["count", "density", "ncount", "ndensity"],
|
|
129
|
+
compatibleGeoms: ["line", "bar", "histogram", "freqpoly"],
|
|
130
|
+
defaultForGeoms: ["histogram", "freqpoly"],
|
|
131
|
+
},
|
|
132
|
+
bin_hex: {
|
|
133
|
+
name: "bin_hex",
|
|
134
|
+
slug: "bin_hex",
|
|
135
|
+
summary:
|
|
136
|
+
"Hexagonal 2D binning over continuous x and y. Publishes count/density columns for geom_hex heatmaps.",
|
|
137
|
+
generatedColumns: ["count", "density", "ncount", "ndensity"],
|
|
138
|
+
compatibleGeoms: ["hex"],
|
|
139
|
+
defaultForGeoms: ["hex"],
|
|
140
|
+
},
|
|
141
|
+
bin_2d: {
|
|
142
|
+
name: "bin_2d",
|
|
143
|
+
slug: "bin_2d",
|
|
144
|
+
summary:
|
|
145
|
+
"Rectangular 2D binning over continuous x and y. Publishes count/density and bin edges for geom_bin_2d tiles.",
|
|
146
|
+
generatedColumns: ["count", "density", "ncount", "ndensity"],
|
|
147
|
+
compatibleGeoms: ["bin_2d"],
|
|
148
|
+
defaultForGeoms: ["bin_2d"],
|
|
149
|
+
},
|
|
150
|
+
smooth: {
|
|
151
|
+
name: "smooth",
|
|
152
|
+
slug: "smooth",
|
|
153
|
+
summary:
|
|
154
|
+
"Fit a smoother (lm or loess) and evaluate along x. Publishes y, ymin, ymax, and se; default for geom_smooth.",
|
|
155
|
+
generatedColumns: ["y", "ymin", "ymax", "se"],
|
|
156
|
+
compatibleGeoms: ["smooth"],
|
|
157
|
+
defaultForGeoms: ["smooth"],
|
|
158
|
+
},
|
|
159
|
+
quantile: {
|
|
160
|
+
name: "quantile",
|
|
161
|
+
slug: "quantile",
|
|
162
|
+
summary:
|
|
163
|
+
"Estimate conditional quantiles of y given x. Publishes y at each requested probability; default for geom_quantile.",
|
|
164
|
+
generatedColumns: ["y"],
|
|
165
|
+
compatibleGeoms: ["quantile"],
|
|
166
|
+
defaultForGeoms: ["quantile"],
|
|
167
|
+
},
|
|
168
|
+
boxplot: {
|
|
169
|
+
name: "boxplot",
|
|
170
|
+
slug: "boxplot",
|
|
171
|
+
summary:
|
|
172
|
+
"Five-number summary per group (hinges and whiskers). Publishes ymin, lower, middle, upper, ymax; default for geom_boxplot.",
|
|
173
|
+
generatedColumns: ["ymin", "lower", "middle", "upper", "ymax"],
|
|
174
|
+
compatibleGeoms: ["boxplot"],
|
|
175
|
+
defaultForGeoms: ["boxplot"],
|
|
176
|
+
},
|
|
177
|
+
density: {
|
|
178
|
+
name: "density",
|
|
179
|
+
slug: "density",
|
|
180
|
+
summary:
|
|
181
|
+
"1D Gaussian kernel density estimate along x. Publishes density, count, scaled, and ndensity; default for geom_density.",
|
|
182
|
+
generatedColumns: ["density", "count", "scaled", "ndensity"],
|
|
183
|
+
compatibleGeoms: ["density"],
|
|
184
|
+
defaultForGeoms: ["density"],
|
|
185
|
+
},
|
|
186
|
+
summary: {
|
|
187
|
+
name: "summary",
|
|
188
|
+
slug: "summary",
|
|
189
|
+
summary:
|
|
190
|
+
"Collapse each discrete-x group to one summary (default mean ± se). Publishes y, ymin, ymax for error-style geoms.",
|
|
191
|
+
generatedColumns: ["y", "ymin", "ymax"],
|
|
192
|
+
compatibleGeoms: ["errorbar", "linerange", "pointrange", "crossbar"],
|
|
193
|
+
defaultForGeoms: [],
|
|
194
|
+
},
|
|
195
|
+
sum: {
|
|
196
|
+
name: "sum",
|
|
197
|
+
slug: "sum",
|
|
198
|
+
summary:
|
|
199
|
+
"Count overlapping points at each (x, y) cell for geom_count. Publishes n and prop (not y).",
|
|
200
|
+
generatedColumns: ["n", "prop"],
|
|
201
|
+
compatibleGeoms: ["point", "count"],
|
|
202
|
+
defaultForGeoms: ["count"],
|
|
203
|
+
},
|
|
204
|
+
ydensity: {
|
|
205
|
+
name: "ydensity",
|
|
206
|
+
slug: "ydensity",
|
|
207
|
+
summary:
|
|
208
|
+
"Kernel density along y for violin shapes. Publishes density, count, scaled, violinwidth, and y; default for geom_violin.",
|
|
209
|
+
generatedColumns: ["density", "count", "scaled", "violinwidth", "y"],
|
|
210
|
+
compatibleGeoms: ["violin"],
|
|
211
|
+
defaultForGeoms: ["violin"],
|
|
212
|
+
},
|
|
213
|
+
function: {
|
|
214
|
+
name: "function",
|
|
215
|
+
slug: "function",
|
|
216
|
+
summary:
|
|
217
|
+
"Evaluate a pure function on an x grid. Publishes y; default for geom_function when no data rows drive the mark.",
|
|
218
|
+
generatedColumns: ["y"],
|
|
219
|
+
compatibleGeoms: ["function"],
|
|
220
|
+
defaultForGeoms: ["function"],
|
|
221
|
+
},
|
|
222
|
+
ecdf: {
|
|
223
|
+
name: "ecdf",
|
|
224
|
+
slug: "ecdf",
|
|
225
|
+
summary:
|
|
226
|
+
"Empirical cumulative distribution F̂(x). Publishes ecdf; pair with step or path geoms for CDF plots.",
|
|
227
|
+
generatedColumns: ["ecdf"],
|
|
228
|
+
compatibleGeoms: ["line"],
|
|
229
|
+
defaultForGeoms: [],
|
|
230
|
+
},
|
|
231
|
+
summary_bin: {
|
|
232
|
+
name: "summary_bin",
|
|
233
|
+
slug: "summary_bin",
|
|
234
|
+
summary:
|
|
235
|
+
"Bin continuous x, then summarize y in each bin (mean ± se by default). Publishes y, ymin, ymax for binned summaries.",
|
|
236
|
+
generatedColumns: ["y", "ymin", "ymax"],
|
|
237
|
+
compatibleGeoms: ["point", "line", "errorbar"],
|
|
238
|
+
defaultForGeoms: [],
|
|
239
|
+
},
|
|
240
|
+
summary_rolling: {
|
|
241
|
+
name: "summary_rolling",
|
|
242
|
+
slug: "summary_rolling",
|
|
243
|
+
summary:
|
|
244
|
+
"Centered rolling window over continuous x (params.window, in x units): summarize y per (group, unique x). Partial windows at the ends are kept. Publishes y.",
|
|
245
|
+
generatedColumns: ["y"],
|
|
246
|
+
compatibleGeoms: ["point", "line"],
|
|
247
|
+
defaultForGeoms: [],
|
|
248
|
+
},
|
|
249
|
+
contour: {
|
|
250
|
+
name: "contour",
|
|
251
|
+
slug: "contour",
|
|
252
|
+
summary:
|
|
253
|
+
"Marching-squares isolines over a regular x×y×z grid. Publishes level; default for geom_contour.",
|
|
254
|
+
generatedColumns: ["level"],
|
|
255
|
+
compatibleGeoms: ["contour"],
|
|
256
|
+
defaultForGeoms: ["contour"],
|
|
257
|
+
},
|
|
258
|
+
align: {
|
|
259
|
+
name: "align",
|
|
260
|
+
slug: "align",
|
|
261
|
+
summary:
|
|
262
|
+
"Interpolate series onto a shared x grid so continuous-x stacks and overlays line up (stack-friendly zeros outside range).",
|
|
263
|
+
generatedColumns: [],
|
|
264
|
+
compatibleGeoms: ["line", "area"],
|
|
265
|
+
defaultForGeoms: [],
|
|
266
|
+
},
|
|
267
|
+
density_2d: {
|
|
268
|
+
name: "density_2d",
|
|
269
|
+
slug: "density_2d",
|
|
270
|
+
summary:
|
|
271
|
+
"Bivariate KDE with isolines. Publishes level and density; default for geom_density_2d.",
|
|
272
|
+
generatedColumns: ["level", "density"],
|
|
273
|
+
compatibleGeoms: ["density_2d"],
|
|
274
|
+
defaultForGeoms: ["density_2d"],
|
|
275
|
+
},
|
|
276
|
+
density_2d_filled: {
|
|
277
|
+
name: "density_2d_filled",
|
|
278
|
+
slug: "density_2d_filled",
|
|
279
|
+
summary:
|
|
280
|
+
"Bivariate KDE with closed density rings for filled contours. Publishes level and density; default for geom_density_2d_filled.",
|
|
281
|
+
generatedColumns: ["level", "density"],
|
|
282
|
+
compatibleGeoms: ["density_2d_filled"],
|
|
283
|
+
defaultForGeoms: ["density_2d_filled"],
|
|
284
|
+
},
|
|
285
|
+
bindot: {
|
|
286
|
+
name: "bindot",
|
|
287
|
+
slug: "bindot",
|
|
288
|
+
summary:
|
|
289
|
+
"Histodot binning for geom_dotplot: one stack position per observation. Publishes stackpos (and bin occupancy).",
|
|
290
|
+
generatedColumns: ["stackpos"],
|
|
291
|
+
compatibleGeoms: ["dotplot"],
|
|
292
|
+
defaultForGeoms: ["dotplot"],
|
|
293
|
+
},
|
|
294
|
+
ellipse: {
|
|
295
|
+
name: "ellipse",
|
|
296
|
+
slug: "ellipse",
|
|
297
|
+
summary:
|
|
298
|
+
"Confidence ellipse over bivariate points (level and type from params). Passes geometry suited to path/polygon-style marks.",
|
|
299
|
+
generatedColumns: [],
|
|
300
|
+
compatibleGeoms: ["path"],
|
|
301
|
+
defaultForGeoms: [],
|
|
302
|
+
},
|
|
303
|
+
sf: {
|
|
304
|
+
name: "sf",
|
|
305
|
+
slug: "sf",
|
|
306
|
+
summary:
|
|
307
|
+
"Simple-features geometry expansion for geom_sf: multiparts and holes become drawable rings without after_stat columns.",
|
|
308
|
+
generatedColumns: [],
|
|
309
|
+
compatibleGeoms: ["sf"],
|
|
310
|
+
defaultForGeoms: ["sf"],
|
|
311
|
+
},
|
|
312
|
+
sf_coordinates: {
|
|
313
|
+
name: "sf_coordinates",
|
|
314
|
+
slug: "sf_coordinates",
|
|
315
|
+
summary:
|
|
316
|
+
"Label anchors from SF geometries for geom_sf_text and geom_sf_label (one point per feature or part).",
|
|
317
|
+
generatedColumns: [],
|
|
318
|
+
compatibleGeoms: ["sf_text", "sf_label"],
|
|
319
|
+
defaultForGeoms: ["sf_text", "sf_label"],
|
|
320
|
+
},
|
|
321
|
+
qq: {
|
|
322
|
+
name: "qq",
|
|
323
|
+
slug: "qq",
|
|
324
|
+
summary:
|
|
325
|
+
"Sample vs theoretical quantiles for Q–Q plots. Publishes sample and theoretical; default for geom_qq.",
|
|
326
|
+
generatedColumns: ["sample", "theoretical"],
|
|
327
|
+
compatibleGeoms: ["qq"],
|
|
328
|
+
defaultForGeoms: ["qq"],
|
|
329
|
+
},
|
|
330
|
+
qq_line: {
|
|
331
|
+
name: "qq_line",
|
|
332
|
+
slug: "qq_line",
|
|
333
|
+
summary:
|
|
334
|
+
"Reference line through Q–Q sample/theoretical quantiles. Publishes sample and theoretical; default for geom_qq_line.",
|
|
335
|
+
generatedColumns: ["sample", "theoretical"],
|
|
336
|
+
compatibleGeoms: ["qq_line"],
|
|
337
|
+
defaultForGeoms: ["qq_line"],
|
|
338
|
+
},
|
|
339
|
+
} as const;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GEOM_PARAM_KEYS builder (SpecDeclarations walk). Gen-only:
|
|
3
|
+
* `scripts/gen-reference-catalogs.ts`. Runtime uses generated/geom-param-keys.ts.
|
|
4
|
+
*/
|
|
5
|
+
import type { TSchema } from "typebox";
|
|
6
|
+
|
|
7
|
+
import { KNOWN_GEOMS, type GeomName } from "./schema-catalog.js";
|
|
8
|
+
import { SpecDeclarations } from "./schema-declarations.js";
|
|
9
|
+
|
|
10
|
+
type SpecDecl = typeof SpecDeclarations;
|
|
11
|
+
type DeclKey = keyof SpecDecl;
|
|
12
|
+
|
|
13
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
14
|
+
return typeof value === "object" && value !== null;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Depth-first `$ref` string, if present. */
|
|
18
|
+
function findRef(node: unknown, depth = 0): string | undefined {
|
|
19
|
+
if (!isRecord(node) || depth > 8) return undefined;
|
|
20
|
+
const ref = node["$ref"];
|
|
21
|
+
if (typeof ref === "string") return ref;
|
|
22
|
+
for (const child of Object.values(node)) {
|
|
23
|
+
const found = findRef(child, depth + 1);
|
|
24
|
+
if (found !== undefined) return found;
|
|
25
|
+
}
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Resolve a SpecDeclarations key through `$ref` aliases to a schema that
|
|
31
|
+
* may carry `properties`. Throws on missing keys or cycles.
|
|
32
|
+
*/
|
|
33
|
+
function resolveDeclaration(name: string, seen: Set<string> = new Set()): TSchema {
|
|
34
|
+
if (seen.has(name)) {
|
|
35
|
+
throw new Error(`GEOM_PARAM_KEYS: cyclic SpecDeclarations ref involving "${name}"`);
|
|
36
|
+
}
|
|
37
|
+
if (!(name in SpecDeclarations)) {
|
|
38
|
+
throw new Error(`GEOM_PARAM_KEYS: SpecDeclarations has no entry "${name}"`);
|
|
39
|
+
}
|
|
40
|
+
seen.add(name);
|
|
41
|
+
const schema = SpecDeclarations[name as DeclKey] as TSchema & { $ref?: string };
|
|
42
|
+
if (typeof schema.$ref === "string") {
|
|
43
|
+
return resolveDeclaration(schema.$ref, seen);
|
|
44
|
+
}
|
|
45
|
+
return schema;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Params type name for a geom (e.g. "point" → "PointParams"), or null if none. */
|
|
49
|
+
function paramsTypeNameForGeom(geom: GeomName): string | null {
|
|
50
|
+
for (const key of Object.keys(SpecDeclarations) as DeclKey[]) {
|
|
51
|
+
// Layer schemas are *Layer (PointLayer, …).
|
|
52
|
+
if (!key.endsWith("Layer")) continue;
|
|
53
|
+
const layer = SpecDeclarations[key] as TSchema & {
|
|
54
|
+
properties?: { geom?: { const?: string }; params?: unknown };
|
|
55
|
+
};
|
|
56
|
+
const geomConst = layer.properties?.geom?.const;
|
|
57
|
+
if (geomConst !== geom) continue;
|
|
58
|
+
const paramsNode = layer.properties?.params;
|
|
59
|
+
if (paramsNode === undefined) {
|
|
60
|
+
throw new Error(`GEOM_PARAM_KEYS: layer ${key} has no params field for geom "${geom}"`);
|
|
61
|
+
}
|
|
62
|
+
const ref = findRef(paramsNode);
|
|
63
|
+
if (ref === undefined) {
|
|
64
|
+
throw new Error(`GEOM_PARAM_KEYS: layer ${key} params has no $ref for geom "${geom}"`);
|
|
65
|
+
}
|
|
66
|
+
return ref;
|
|
67
|
+
}
|
|
68
|
+
throw new Error(`GEOM_PARAM_KEYS: no *Layer schema with geom const "${geom}"`);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function paramKeysForGeom(geom: GeomName): readonly string[] {
|
|
72
|
+
const paramsName = paramsTypeNameForGeom(geom);
|
|
73
|
+
if (paramsName === null) return Object.freeze([]);
|
|
74
|
+
const resolved = resolveDeclaration(paramsName) as TSchema & {
|
|
75
|
+
properties?: Record<string, unknown>;
|
|
76
|
+
};
|
|
77
|
+
const props = resolved.properties;
|
|
78
|
+
if (props === undefined) {
|
|
79
|
+
// Type.Object({}) still has properties: {}; a bare alias without properties
|
|
80
|
+
// after ref resolution is treated as empty.
|
|
81
|
+
return Object.freeze([]);
|
|
82
|
+
}
|
|
83
|
+
return Object.freeze(Object.keys(props));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function buildGeomParamKeys(): Readonly<Record<GeomName, readonly string[]>> {
|
|
87
|
+
const out = {} as Record<GeomName, readonly string[]>;
|
|
88
|
+
for (const geom of KNOWN_GEOMS) {
|
|
89
|
+
out[geom] = paramKeysForGeom(geom);
|
|
90
|
+
}
|
|
91
|
+
return Object.freeze(out);
|
|
92
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GEOM_PARAM_KEYS (#1039) — param-key whitelist per geom.
|
|
3
|
+
*
|
|
4
|
+
* Precomputed from SpecDeclarations (`scripts/gen-reference-catalogs.ts`) so
|
|
5
|
+
* createGeomLayer never loads TypeBox. Regenerate after schema param changes.
|
|
6
|
+
*/
|
|
7
|
+
import type { GeomName } from "./schema-catalog.js";
|
|
8
|
+
import { GEOM_PARAM_KEYS_DATA } from "./generated/geom-param-keys.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Param property names per geom, derived from SpecDeclarations at gen time.
|
|
12
|
+
* Empty array means the geom has no params object properties (e.g. blank).
|
|
13
|
+
*/
|
|
14
|
+
export const GEOM_PARAM_KEYS: Readonly<Record<GeomName, readonly string[]>> = GEOM_PARAM_KEYS_DATA;
|