@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,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipeline catalogs keyed off the schema version: geoms, stats, positions,
|
|
3
|
+
* channels, edition stamp, and per-geom defaults (normalize fills these).
|
|
4
|
+
*/
|
|
5
|
+
/** Geom names known to this schema version (discriminator values of LayerSpec). */
|
|
6
|
+
export const KNOWN_GEOMS = [
|
|
7
|
+
"point",
|
|
8
|
+
"line",
|
|
9
|
+
"path",
|
|
10
|
+
"col",
|
|
11
|
+
"bar",
|
|
12
|
+
"histogram",
|
|
13
|
+
"freqpoly",
|
|
14
|
+
"area",
|
|
15
|
+
"rule",
|
|
16
|
+
"hline",
|
|
17
|
+
"vline",
|
|
18
|
+
"text",
|
|
19
|
+
"label",
|
|
20
|
+
"smooth",
|
|
21
|
+
"quantile",
|
|
22
|
+
"boxplot",
|
|
23
|
+
"density",
|
|
24
|
+
"errorbar",
|
|
25
|
+
"linerange",
|
|
26
|
+
"pointrange",
|
|
27
|
+
"crossbar",
|
|
28
|
+
"rect",
|
|
29
|
+
"tile",
|
|
30
|
+
"raster",
|
|
31
|
+
"ribbon",
|
|
32
|
+
"segment",
|
|
33
|
+
"count",
|
|
34
|
+
"violin",
|
|
35
|
+
"function",
|
|
36
|
+
"polygon",
|
|
37
|
+
"hex",
|
|
38
|
+
"bin_2d",
|
|
39
|
+
"abline",
|
|
40
|
+
"curve",
|
|
41
|
+
"contour",
|
|
42
|
+
"density_2d",
|
|
43
|
+
"density_2d_filled",
|
|
44
|
+
"dotplot",
|
|
45
|
+
"map",
|
|
46
|
+
"sf",
|
|
47
|
+
"sf_text",
|
|
48
|
+
"sf_label",
|
|
49
|
+
"blank",
|
|
50
|
+
"jitter",
|
|
51
|
+
"spoke",
|
|
52
|
+
"rug",
|
|
53
|
+
"step",
|
|
54
|
+
"qq",
|
|
55
|
+
"qq_line",
|
|
56
|
+
] as const;
|
|
57
|
+
export type GeomName = (typeof KNOWN_GEOMS)[number];
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Convenience geom names normalize() rewrites away. None of these can reach
|
|
61
|
+
* the render pipeline, so pipeline tables key off {@link NormalizedGeomName}
|
|
62
|
+
* and the compiler names any geom they forget (#1042).
|
|
63
|
+
*
|
|
64
|
+
* Declared before GEOM_ALIASES on purpose: deriving the alias names from that
|
|
65
|
+
* table's keys and then constraining its values to NormalizedGeomName would be
|
|
66
|
+
* circular, and the looser constraint would accept an alias pointing at
|
|
67
|
+
* another alias — which one pass of canonicalGeom() would leave in place.
|
|
68
|
+
*/
|
|
69
|
+
export const ALIAS_GEOMS = ["histogram", "freqpoly", "jitter", "hline", "vline"] as const;
|
|
70
|
+
export type AliasGeomName = (typeof ALIAS_GEOMS)[number];
|
|
71
|
+
|
|
72
|
+
/** A geom name that can reach the render pipeline (post-normalize). */
|
|
73
|
+
export type NormalizedGeomName = Exclude<GeomName, AliasGeomName>;
|
|
74
|
+
|
|
75
|
+
/** What each alias rewrites to. Targets are canonical, never another alias. */
|
|
76
|
+
export const GEOM_ALIASES = {
|
|
77
|
+
histogram: "bar",
|
|
78
|
+
freqpoly: "line",
|
|
79
|
+
jitter: "point",
|
|
80
|
+
hline: "rule",
|
|
81
|
+
vline: "rule",
|
|
82
|
+
} as const satisfies Record<AliasGeomName, NormalizedGeomName>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The current DEFAULTS EDITION (Hadley lesson 13: fix accumulated bad
|
|
86
|
+
* defaults "without breaking existing code"). normalize() stamps this onto
|
|
87
|
+
* specs that carry no `edition`, freezing which generation of default
|
|
88
|
+
* aesthetics (theme role tokens, categorical palette) the spec was authored
|
|
89
|
+
* against. @ggts-sh/core keys its theme/palette default tables by edition,
|
|
90
|
+
* so when a future edition improves the defaults, already-stamped specs keep
|
|
91
|
+
* their edition-1 look. Explicit theme/scale settings always win regardless.
|
|
92
|
+
*/
|
|
93
|
+
export const CURRENT_EDITION = 2;
|
|
94
|
+
|
|
95
|
+
/** Aesthetic channel names known to this schema version. */
|
|
96
|
+
export const CHANNELS = [
|
|
97
|
+
"x",
|
|
98
|
+
"y",
|
|
99
|
+
"color",
|
|
100
|
+
"fill",
|
|
101
|
+
"size",
|
|
102
|
+
"linewidth",
|
|
103
|
+
"alpha",
|
|
104
|
+
"shape",
|
|
105
|
+
"linetype",
|
|
106
|
+
"group",
|
|
107
|
+
"label",
|
|
108
|
+
"weight",
|
|
109
|
+
"ymin",
|
|
110
|
+
"ymax",
|
|
111
|
+
"xmin",
|
|
112
|
+
"xmax",
|
|
113
|
+
"xend",
|
|
114
|
+
"yend",
|
|
115
|
+
"width",
|
|
116
|
+
"height",
|
|
117
|
+
"z",
|
|
118
|
+
"map_id",
|
|
119
|
+
"angle",
|
|
120
|
+
"radius",
|
|
121
|
+
"sample",
|
|
122
|
+
] as const;
|
|
123
|
+
export type ChannelName = (typeof CHANNELS)[number];
|
|
124
|
+
|
|
125
|
+
/** Stat names known to this schema version. */
|
|
126
|
+
export const KNOWN_STATS = [
|
|
127
|
+
"identity",
|
|
128
|
+
"unique",
|
|
129
|
+
"manual",
|
|
130
|
+
"connect",
|
|
131
|
+
"count",
|
|
132
|
+
"bin",
|
|
133
|
+
"bin_hex",
|
|
134
|
+
"bin_2d",
|
|
135
|
+
"smooth",
|
|
136
|
+
"quantile",
|
|
137
|
+
"boxplot",
|
|
138
|
+
"density",
|
|
139
|
+
"summary",
|
|
140
|
+
"sum",
|
|
141
|
+
"ydensity",
|
|
142
|
+
"function",
|
|
143
|
+
"ecdf",
|
|
144
|
+
"summary_bin",
|
|
145
|
+
"summary_rolling",
|
|
146
|
+
"contour",
|
|
147
|
+
"align",
|
|
148
|
+
"density_2d",
|
|
149
|
+
"density_2d_filled",
|
|
150
|
+
"bindot",
|
|
151
|
+
"ellipse",
|
|
152
|
+
"sf",
|
|
153
|
+
"sf_coordinates",
|
|
154
|
+
"qq",
|
|
155
|
+
"qq_line",
|
|
156
|
+
] as const;
|
|
157
|
+
export type StatName = (typeof KNOWN_STATS)[number];
|
|
158
|
+
|
|
159
|
+
/** Position names known to this schema version. */
|
|
160
|
+
export const KNOWN_POSITIONS = ["identity", "stack", "fill", "dodge", "jitter", "nudge"] as const;
|
|
161
|
+
export type PositionName = (typeof KNOWN_POSITIONS)[number];
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Per-geom pipeline defaults, mirrored from ggplot2 (normalize() fills these):
|
|
165
|
+
* geom bar counts (stat "count") and stacks; histogram bins and stacks;
|
|
166
|
+
* freqpoly bins and draws as line (identity position); col/area stack
|
|
167
|
+
* pre-computed values; boxplot dodges (ggplot2 defaults to dodge2 —
|
|
168
|
+
* ggts uses plain dodge, decision 0010); jitter aliases to
|
|
169
|
+
* point+position jitter; hline/vline alias to rule; everything else is
|
|
170
|
+
* identity/identity.
|
|
171
|
+
*/
|
|
172
|
+
export const GEOM_DEFAULTS: Record<GeomName, { stat: StatName; position: PositionName }> = {
|
|
173
|
+
point: { stat: "identity", position: "identity" },
|
|
174
|
+
line: { stat: "identity", position: "identity" },
|
|
175
|
+
path: { stat: "identity", position: "identity" },
|
|
176
|
+
col: { stat: "identity", position: "stack" },
|
|
177
|
+
bar: { stat: "count", position: "stack" },
|
|
178
|
+
histogram: { stat: "bin", position: "stack" },
|
|
179
|
+
freqpoly: { stat: "bin", position: "identity" },
|
|
180
|
+
area: { stat: "identity", position: "stack" },
|
|
181
|
+
rule: { stat: "identity", position: "identity" },
|
|
182
|
+
hline: { stat: "identity", position: "identity" },
|
|
183
|
+
vline: { stat: "identity", position: "identity" },
|
|
184
|
+
text: { stat: "identity", position: "identity" },
|
|
185
|
+
label: { stat: "identity", position: "identity" },
|
|
186
|
+
smooth: { stat: "smooth", position: "identity" },
|
|
187
|
+
quantile: { stat: "quantile", position: "identity" },
|
|
188
|
+
boxplot: { stat: "boxplot", position: "dodge" },
|
|
189
|
+
density: { stat: "density", position: "identity" },
|
|
190
|
+
errorbar: { stat: "identity", position: "identity" },
|
|
191
|
+
linerange: { stat: "identity", position: "identity" },
|
|
192
|
+
pointrange: { stat: "identity", position: "identity" },
|
|
193
|
+
crossbar: { stat: "identity", position: "identity" },
|
|
194
|
+
rect: { stat: "identity", position: "identity" },
|
|
195
|
+
tile: { stat: "identity", position: "identity" },
|
|
196
|
+
raster: { stat: "identity", position: "identity" },
|
|
197
|
+
ribbon: { stat: "identity", position: "identity" },
|
|
198
|
+
segment: { stat: "identity", position: "identity" },
|
|
199
|
+
count: { stat: "sum", position: "identity" },
|
|
200
|
+
violin: { stat: "ydensity", position: "dodge" },
|
|
201
|
+
function: { stat: "function", position: "identity" },
|
|
202
|
+
polygon: { stat: "identity", position: "identity" },
|
|
203
|
+
hex: { stat: "bin_hex", position: "identity" },
|
|
204
|
+
abline: { stat: "identity", position: "identity" },
|
|
205
|
+
curve: { stat: "identity", position: "identity" },
|
|
206
|
+
contour: { stat: "contour", position: "identity" },
|
|
207
|
+
density_2d: { stat: "density_2d", position: "identity" },
|
|
208
|
+
density_2d_filled: { stat: "density_2d_filled", position: "identity" },
|
|
209
|
+
dotplot: { stat: "bindot", position: "identity" },
|
|
210
|
+
map: { stat: "identity", position: "identity" },
|
|
211
|
+
sf: { stat: "sf", position: "identity" },
|
|
212
|
+
sf_text: { stat: "sf_coordinates", position: "identity" },
|
|
213
|
+
sf_label: { stat: "sf_coordinates", position: "identity" },
|
|
214
|
+
blank: { stat: "identity", position: "identity" },
|
|
215
|
+
jitter: { stat: "identity", position: "jitter" },
|
|
216
|
+
spoke: { stat: "identity", position: "identity" },
|
|
217
|
+
rug: { stat: "identity", position: "identity" },
|
|
218
|
+
step: { stat: "identity", position: "identity" },
|
|
219
|
+
qq: { stat: "qq", position: "identity" },
|
|
220
|
+
qq_line: { stat: "qq_line", position: "identity" },
|
|
221
|
+
bin_2d: { stat: "bin_2d", position: "identity" },
|
|
222
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ordered TypeBox named `$defs` for the ggts PortableSpec graph.
|
|
3
|
+
*
|
|
4
|
+
* Key **insertion order** is load-bearing: `Type.Cyclic` / the published
|
|
5
|
+
* `schema/v0.json` serialize `$defs` in this order. The bag is split into
|
|
6
|
+
* family partial-record modules (`schema-decls-*.ts`); this aggregator
|
|
7
|
+
* composes `SpecDeclarations` via spread in the EXACT original key order —
|
|
8
|
+
* do not reorder spreads or edit field descriptions while relocating.
|
|
9
|
+
*
|
|
10
|
+
* Cross-refs use string `Type.Ref("Name")` and resolve only after this object
|
|
11
|
+
* is passed to `Type.Cyclic` / `Type.Module` in schema.ts.
|
|
12
|
+
*/
|
|
13
|
+
import { DataDecls } from "./schema-decls-data.js";
|
|
14
|
+
import { PaintDecls } from "./schema-decls-paint.js";
|
|
15
|
+
import { ParamsPointPathDecls } from "./schema-decls-params-point-path.js";
|
|
16
|
+
import { ParamsColContourDecls } from "./schema-decls-params-col-contour.js";
|
|
17
|
+
import { ParamsViolinSummaryDecls } from "./schema-decls-params-violin-summary.js";
|
|
18
|
+
import { ParamsErrorbarPositionDecls } from "./schema-decls-params-errorbar-position.js";
|
|
19
|
+
import { ParamsAreaAblineDecls } from "./schema-decls-params-area-abline.js";
|
|
20
|
+
import { ParamsCurveLabelDecls } from "./schema-decls-params-curve-label.js";
|
|
21
|
+
import { LayersPointPathDecls } from "./schema-decls-layers-point-path.js";
|
|
22
|
+
import { LayersColBoxplotDecls } from "./schema-decls-layers-col-boxplot.js";
|
|
23
|
+
import { LayersCountPointrangeDecls } from "./schema-decls-layers-count-pointrange.js";
|
|
24
|
+
import { LayersCrossbarJitterDecls } from "./schema-decls-layers-crossbar-jitter.js";
|
|
25
|
+
import { LayersTextMapDecls } from "./schema-decls-layers-text-map.js";
|
|
26
|
+
import { LayersSfBlankDecls } from "./schema-decls-layers-sf-blank.js";
|
|
27
|
+
import { ScaleDecls } from "./schema-decls-scales.js";
|
|
28
|
+
import { StyleScaleDecls } from "./schema-decls-scales-guides.js";
|
|
29
|
+
import { GuidesThemeDecls } from "./schema-decls-guides-theme.js";
|
|
30
|
+
import { PlotDecls } from "./schema-decls-plot.js";
|
|
31
|
+
|
|
32
|
+
export const SpecDeclarations = {
|
|
33
|
+
...DataDecls,
|
|
34
|
+
...PaintDecls,
|
|
35
|
+
...ParamsPointPathDecls,
|
|
36
|
+
...ParamsColContourDecls,
|
|
37
|
+
...ParamsViolinSummaryDecls,
|
|
38
|
+
...ParamsErrorbarPositionDecls,
|
|
39
|
+
...ParamsAreaAblineDecls,
|
|
40
|
+
...ParamsCurveLabelDecls,
|
|
41
|
+
...LayersPointPathDecls,
|
|
42
|
+
...LayersColBoxplotDecls,
|
|
43
|
+
...LayersCountPointrangeDecls,
|
|
44
|
+
...LayersCrossbarJitterDecls,
|
|
45
|
+
...LayersTextMapDecls,
|
|
46
|
+
...LayersSfBlankDecls,
|
|
47
|
+
...ScaleDecls,
|
|
48
|
+
...StyleScaleDecls,
|
|
49
|
+
...GuidesThemeDecls,
|
|
50
|
+
...PlotDecls,
|
|
51
|
+
};
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `$defs` partial — data family (CellValue…Aes).
|
|
3
|
+
* Composed by schema-declarations.ts via spread; key insertion order is load-bearing.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import Type from "typebox";
|
|
7
|
+
|
|
8
|
+
export const DataDecls = {
|
|
9
|
+
CellValue: Type.Union([Type.String(), Type.Number(), Type.Boolean(), Type.Null()], {
|
|
10
|
+
description:
|
|
11
|
+
'A single data cell: string, number, boolean, or null. Dates travel as ISO 8601 strings (e.g. "2026-07-10"); non-finite numbers travel as null.',
|
|
12
|
+
}),
|
|
13
|
+
|
|
14
|
+
DataValues: Type.Object(
|
|
15
|
+
{
|
|
16
|
+
values: Type.Array(
|
|
17
|
+
Type.Object(
|
|
18
|
+
{},
|
|
19
|
+
{
|
|
20
|
+
additionalProperties: Type.Ref("CellValue"),
|
|
21
|
+
description: "One data row: an object mapping field names to cell values.",
|
|
22
|
+
},
|
|
23
|
+
),
|
|
24
|
+
{
|
|
25
|
+
description: "Row-oriented inline data: an array of row objects sharing field names.",
|
|
26
|
+
},
|
|
27
|
+
),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
additionalProperties: false,
|
|
31
|
+
description: 'Inline row-oriented data. Example: {"values": [{"x": 1, "y": 2}]}.',
|
|
32
|
+
},
|
|
33
|
+
),
|
|
34
|
+
|
|
35
|
+
DataColumns: Type.Object(
|
|
36
|
+
{
|
|
37
|
+
columns: Type.Record(Type.String(), Type.Array(Type.Ref("CellValue")), {
|
|
38
|
+
description:
|
|
39
|
+
"Column-oriented inline data: an object mapping each field name to an array of cell values. All arrays must have the same length.",
|
|
40
|
+
}),
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
additionalProperties: false,
|
|
44
|
+
description: 'Inline column-oriented data. Example: {"columns": {"x": [1, 2], "y": [3, 4]}}.',
|
|
45
|
+
},
|
|
46
|
+
),
|
|
47
|
+
|
|
48
|
+
DataName: Type.Object(
|
|
49
|
+
{
|
|
50
|
+
name: Type.String({
|
|
51
|
+
description:
|
|
52
|
+
"Name of a dataset provided out-of-band: either a key of the spec's top-level `datasets`, or a dataset passed by the host at render time.",
|
|
53
|
+
}),
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
additionalProperties: false,
|
|
57
|
+
description: 'A reference to a named dataset. Example: {"name": "cars"}.',
|
|
58
|
+
},
|
|
59
|
+
),
|
|
60
|
+
|
|
61
|
+
DataRef: Type.Union([Type.Ref("DataValues"), Type.Ref("DataColumns"), Type.Ref("DataName")], {
|
|
62
|
+
description:
|
|
63
|
+
"Where a plot's data comes from: inline rows ({values}), inline columns ({columns}), or a named dataset ({name}). Exactly one form.",
|
|
64
|
+
}),
|
|
65
|
+
|
|
66
|
+
InlineData: Type.Union([Type.Ref("DataValues"), Type.Ref("DataColumns")], {
|
|
67
|
+
description: "Inline data only ({values} or {columns}); used for entries of `datasets`.",
|
|
68
|
+
}),
|
|
69
|
+
|
|
70
|
+
FieldRef: Type.Object(
|
|
71
|
+
{
|
|
72
|
+
field: Type.String({
|
|
73
|
+
description: "Name of the data column this channel reads from.",
|
|
74
|
+
}),
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
additionalProperties: false,
|
|
78
|
+
description:
|
|
79
|
+
'Map this channel to a data field (column). Example: {"field": "displ"}. This is the canonical form — bare strings are NOT valid channel values.',
|
|
80
|
+
},
|
|
81
|
+
),
|
|
82
|
+
|
|
83
|
+
ValueRef: Type.Object(
|
|
84
|
+
{
|
|
85
|
+
value: Type.Union([Type.String(), Type.Number(), Type.Boolean()], {
|
|
86
|
+
description: "The constant value applied to every mark.",
|
|
87
|
+
}),
|
|
88
|
+
scale: Type.Optional(
|
|
89
|
+
Type.Boolean({
|
|
90
|
+
description:
|
|
91
|
+
"If true, the constant is passed THROUGH the channel's scale (like a data value). Default false: the constant is used literally (e.g. a CSS color).",
|
|
92
|
+
}),
|
|
93
|
+
),
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
additionalProperties: false,
|
|
97
|
+
description:
|
|
98
|
+
'Map this channel to a constant. Example: {"value": "steelblue"} sets a literal color; {"value": "treatment", "scale": true} routes the constant through the scale.',
|
|
99
|
+
},
|
|
100
|
+
),
|
|
101
|
+
|
|
102
|
+
StatRef: Type.Object(
|
|
103
|
+
{
|
|
104
|
+
stat: Type.String({
|
|
105
|
+
description:
|
|
106
|
+
'Name of a stat-generated column computed after the layer\'s stat runs (e.g. "count" for the count stat). after_stat.',
|
|
107
|
+
}),
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
additionalProperties: false,
|
|
111
|
+
description:
|
|
112
|
+
'Map this channel to a column generated by the layer\'s stat (after-stat form). Example: {"stat": "count"}.',
|
|
113
|
+
},
|
|
114
|
+
),
|
|
115
|
+
|
|
116
|
+
ChannelValue: Type.Union(
|
|
117
|
+
[Type.Ref("FieldRef"), Type.Ref("ValueRef"), Type.Ref("StatRef"), Type.Null()],
|
|
118
|
+
{
|
|
119
|
+
description:
|
|
120
|
+
"How one aesthetic channel gets its value: a data field ({field}), a constant ({value, scale?}), a stat output ({stat}), or null to UNSET a channel inherited from the plot-level mapping. Bare strings are not valid.",
|
|
121
|
+
},
|
|
122
|
+
),
|
|
123
|
+
|
|
124
|
+
Aes: Type.Object(
|
|
125
|
+
{
|
|
126
|
+
x: Type.Optional(Type.Ref("ChannelValue", { description: "Horizontal position channel." })),
|
|
127
|
+
y: Type.Optional(Type.Ref("ChannelValue", { description: "Vertical position channel." })),
|
|
128
|
+
color: Type.Optional(
|
|
129
|
+
Type.Ref("ChannelValue", {
|
|
130
|
+
description:
|
|
131
|
+
"Stroke/point color channel. Discrete fields get a categorical palette; quantitative fields get a sequential ramp.",
|
|
132
|
+
}),
|
|
133
|
+
),
|
|
134
|
+
fill: Type.Optional(
|
|
135
|
+
Type.Ref("ChannelValue", {
|
|
136
|
+
description:
|
|
137
|
+
"Fill color channel (areas, bars, filled shapes). Discrete fields get a categorical palette; quantitative fields get a sequential ramp.",
|
|
138
|
+
}),
|
|
139
|
+
),
|
|
140
|
+
size: Type.Optional(
|
|
141
|
+
Type.Ref("ChannelValue", {
|
|
142
|
+
description:
|
|
143
|
+
"Mark size channel (AREA-scaled — sqrt scale; use `linewidth` for stroke width, which scales linearly).",
|
|
144
|
+
}),
|
|
145
|
+
),
|
|
146
|
+
linewidth: Type.Optional(
|
|
147
|
+
Type.Ref("ChannelValue", {
|
|
148
|
+
description:
|
|
149
|
+
"Stroke width channel (LENGTH-scaled — linear; distinct from `size`, which scales by area).",
|
|
150
|
+
}),
|
|
151
|
+
),
|
|
152
|
+
alpha: Type.Optional(
|
|
153
|
+
Type.Ref("ChannelValue", {
|
|
154
|
+
description: "Opacity channel, 0 (transparent) to 1 (opaque).",
|
|
155
|
+
}),
|
|
156
|
+
),
|
|
157
|
+
shape: Type.Optional(
|
|
158
|
+
Type.Ref("ChannelValue", {
|
|
159
|
+
description: "Finite point-symbol channel. Continuous values require a binned scale.",
|
|
160
|
+
}),
|
|
161
|
+
),
|
|
162
|
+
linetype: Type.Optional(
|
|
163
|
+
Type.Ref("ChannelValue", {
|
|
164
|
+
description: "Finite stroke-pattern channel. Continuous values require a binned scale.",
|
|
165
|
+
}),
|
|
166
|
+
),
|
|
167
|
+
group: Type.Optional(
|
|
168
|
+
Type.Ref("ChannelValue", {
|
|
169
|
+
description:
|
|
170
|
+
'Explicit grouping channel. Overrides the default grouping (the interaction of all discrete mapped aesthetics). A constant (e.g. {"value": 1}) forces a single group.',
|
|
171
|
+
}),
|
|
172
|
+
),
|
|
173
|
+
label: Type.Optional(
|
|
174
|
+
Type.Ref("ChannelValue", {
|
|
175
|
+
description:
|
|
176
|
+
"Text label channel (used by the text geom; never participates in grouping).",
|
|
177
|
+
}),
|
|
178
|
+
),
|
|
179
|
+
weight: Type.Optional(
|
|
180
|
+
Type.Ref("ChannelValue", {
|
|
181
|
+
description:
|
|
182
|
+
"Statistical weight channel. The count, bin, and density stats sum weights instead of counting rows. Never participates in grouping.",
|
|
183
|
+
}),
|
|
184
|
+
),
|
|
185
|
+
sample: Type.Optional(
|
|
186
|
+
Type.Ref("ChannelValue", {
|
|
187
|
+
description:
|
|
188
|
+
"Sample distribution channel for Q–Q plots. The qq / qq_line stats read this column; x/y become theoretical and sample quantiles after the stat. Never participates in grouping.",
|
|
189
|
+
}),
|
|
190
|
+
),
|
|
191
|
+
ymin: Type.Optional(
|
|
192
|
+
Type.Ref("ChannelValue", {
|
|
193
|
+
description:
|
|
194
|
+
"Lower y bound (errorbar identity, rect edges, ribbon x-orientation). Quantitative values only.",
|
|
195
|
+
}),
|
|
196
|
+
),
|
|
197
|
+
ymax: Type.Optional(
|
|
198
|
+
Type.Ref("ChannelValue", {
|
|
199
|
+
description:
|
|
200
|
+
"Upper y bound (errorbar identity, rect edges, ribbon x-orientation). Quantitative values only.",
|
|
201
|
+
}),
|
|
202
|
+
),
|
|
203
|
+
xmin: Type.Optional(
|
|
204
|
+
Type.Ref("ChannelValue", {
|
|
205
|
+
description:
|
|
206
|
+
"Left edge / lower x bound (geom rect; ribbon y-orientation). Quantitative values only.",
|
|
207
|
+
}),
|
|
208
|
+
),
|
|
209
|
+
xmax: Type.Optional(
|
|
210
|
+
Type.Ref("ChannelValue", {
|
|
211
|
+
description:
|
|
212
|
+
"Right edge / upper x bound (geom rect; ribbon y-orientation). Quantitative values only.",
|
|
213
|
+
}),
|
|
214
|
+
),
|
|
215
|
+
xend: Type.Optional(
|
|
216
|
+
Type.Ref("ChannelValue", {
|
|
217
|
+
description:
|
|
218
|
+
"Segment end x (geom segment). Trains the x scale together with aes.x; may be discrete or continuous.",
|
|
219
|
+
}),
|
|
220
|
+
),
|
|
221
|
+
yend: Type.Optional(
|
|
222
|
+
Type.Ref("ChannelValue", {
|
|
223
|
+
description:
|
|
224
|
+
"Segment end y (geom segment). Trains the y scale together with aes.y; may be discrete or continuous.",
|
|
225
|
+
}),
|
|
226
|
+
),
|
|
227
|
+
width: Type.Optional(
|
|
228
|
+
Type.Ref("ChannelValue", {
|
|
229
|
+
description:
|
|
230
|
+
"Cell width for geom tile (data units after position transform; not a trained position scale). Prefer params.width for a constant.",
|
|
231
|
+
}),
|
|
232
|
+
),
|
|
233
|
+
height: Type.Optional(
|
|
234
|
+
Type.Ref("ChannelValue", {
|
|
235
|
+
description:
|
|
236
|
+
"Cell height for geom tile (data units after position transform; not a trained position scale). Prefer params.height for a constant.",
|
|
237
|
+
}),
|
|
238
|
+
),
|
|
239
|
+
z: Type.Optional(
|
|
240
|
+
Type.Ref("ChannelValue", {
|
|
241
|
+
description:
|
|
242
|
+
"Surface height for geom contour / stat contour (quantitative grid values over continuous x×y;).",
|
|
243
|
+
}),
|
|
244
|
+
),
|
|
245
|
+
map_id: Type.Optional(
|
|
246
|
+
Type.Ref("ChannelValue", {
|
|
247
|
+
description:
|
|
248
|
+
"Region join key for geom_map (value-table column matched to the map data id column;).",
|
|
249
|
+
}),
|
|
250
|
+
),
|
|
251
|
+
angle: Type.Optional(
|
|
252
|
+
Type.Ref("ChannelValue", {
|
|
253
|
+
description:
|
|
254
|
+
"Spoke direction in radians (geom spoke; 0 = +x, π/2 = +y). Quantitative only. May also be set as params.angle.",
|
|
255
|
+
}),
|
|
256
|
+
),
|
|
257
|
+
radius: Type.Optional(
|
|
258
|
+
Type.Ref("ChannelValue", {
|
|
259
|
+
description:
|
|
260
|
+
"Spoke length in data units (geom spoke). Quantitative only. May also be set as params.radius.",
|
|
261
|
+
}),
|
|
262
|
+
),
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
additionalProperties: false,
|
|
266
|
+
description:
|
|
267
|
+
"Aesthetic mapping: which channels read which data fields/constants. Plot-level aes is inherited by every layer; a layer's aes overrides per channel, and null unsets an inherited channel.",
|
|
268
|
+
},
|
|
269
|
+
),
|
|
270
|
+
|
|
271
|
+
// --- within-mark paint (#591) ----------------------------------------------
|
|
272
|
+
};
|