@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,276 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builder-level layer-input types — mark families: point/line/bar/area
|
|
3
|
+
* marks, text labels, fit layers (smooth/quantile/contour), and distribution
|
|
4
|
+
* & range plots. LayerInputBase anchors every *LayerInput; the full
|
|
5
|
+
* LayerInput union lives in normalize-input-layers-special.ts alongside the
|
|
6
|
+
* remaining geom families.
|
|
7
|
+
*/
|
|
8
|
+
import type {
|
|
9
|
+
AreaParams,
|
|
10
|
+
BarParams,
|
|
11
|
+
BoxplotParams,
|
|
12
|
+
ColParams,
|
|
13
|
+
ContourParams,
|
|
14
|
+
CrossbarParams,
|
|
15
|
+
DataRef,
|
|
16
|
+
Density2dParams,
|
|
17
|
+
DensityParams,
|
|
18
|
+
DotplotParams,
|
|
19
|
+
ErrorbarParams,
|
|
20
|
+
HlineParams,
|
|
21
|
+
LabelParams,
|
|
22
|
+
LineParams,
|
|
23
|
+
LinerangeParams,
|
|
24
|
+
PathParams,
|
|
25
|
+
PointParams,
|
|
26
|
+
PointPosition,
|
|
27
|
+
PointrangeParams,
|
|
28
|
+
PositionParams,
|
|
29
|
+
QuantileParams,
|
|
30
|
+
RenderBackend,
|
|
31
|
+
RibbonParams,
|
|
32
|
+
RuleParams,
|
|
33
|
+
SmoothParams,
|
|
34
|
+
StackablePosition,
|
|
35
|
+
TextParams,
|
|
36
|
+
VlineParams,
|
|
37
|
+
ViolinParams,
|
|
38
|
+
} from "./schema.js";
|
|
39
|
+
import type { AesInput } from "./normalize-input.js";
|
|
40
|
+
|
|
41
|
+
export interface LayerInputBase {
|
|
42
|
+
aes?: AesInput;
|
|
43
|
+
/**
|
|
44
|
+
* Optional layer-local data. When omitted, the layer inherits plot-level
|
|
45
|
+
* `data`. Accepts the same DataRef forms as plot-level data.
|
|
46
|
+
*/
|
|
47
|
+
data?: DataRef;
|
|
48
|
+
/** Rendering backend hint ("auto" is the default and canonicalizes away). */
|
|
49
|
+
render?: RenderBackend;
|
|
50
|
+
/**
|
|
51
|
+
* Set false to exclude this layer from inspection (#1068): its marks never
|
|
52
|
+
* become tooltip, hover, or keyboard-traversal candidates. For decorative
|
|
53
|
+
* layers whose marks would otherwise capture the pointer. Schema admits
|
|
54
|
+
* only the literal `false` (same contract as GeomProps / PortableSpec).
|
|
55
|
+
*/
|
|
56
|
+
inspect?: false;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface PointLayerInput extends LayerInputBase {
|
|
60
|
+
geom: "point";
|
|
61
|
+
stat?: "identity" | "unique" | "summary_bin" | "summary_rolling" | "manual" | "sum";
|
|
62
|
+
position?: PointPosition;
|
|
63
|
+
positionParams?: PositionParams;
|
|
64
|
+
params?: PointParams;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface CountLayerInput extends LayerInputBase {
|
|
68
|
+
geom: "count";
|
|
69
|
+
stat?: "sum";
|
|
70
|
+
position?: PointPosition;
|
|
71
|
+
positionParams?: PositionParams;
|
|
72
|
+
params?: PointParams;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface LineLayerInput extends LayerInputBase {
|
|
76
|
+
geom: "line";
|
|
77
|
+
/** identity | unique | bin | align | connect | summary_bin | manual | ecdf */
|
|
78
|
+
stat?:
|
|
79
|
+
| "identity"
|
|
80
|
+
| "unique"
|
|
81
|
+
| "bin"
|
|
82
|
+
| "align"
|
|
83
|
+
| "connect"
|
|
84
|
+
| "summary_bin"
|
|
85
|
+
| "summary_rolling"
|
|
86
|
+
| "manual"
|
|
87
|
+
| "ecdf";
|
|
88
|
+
position?: "identity";
|
|
89
|
+
params?: LineParams;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface PathLayerInput extends LayerInputBase {
|
|
93
|
+
geom: "path";
|
|
94
|
+
/** identity | unique | connect | manual (#814) | ellipse (#812) */
|
|
95
|
+
stat?: "identity" | "unique" | "connect" | "manual" | "ellipse";
|
|
96
|
+
position?: "identity";
|
|
97
|
+
params?: PathParams;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface ColLayerInput extends LayerInputBase {
|
|
101
|
+
geom: "col";
|
|
102
|
+
stat?: "identity" | "unique";
|
|
103
|
+
position?: StackablePosition;
|
|
104
|
+
params?: ColParams;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface BarLayerInput extends LayerInputBase {
|
|
108
|
+
geom: "bar";
|
|
109
|
+
stat?: "count" | "bin";
|
|
110
|
+
position?: StackablePosition;
|
|
111
|
+
params?: BarParams;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface HistogramLayerInput extends LayerInputBase {
|
|
115
|
+
geom: "histogram";
|
|
116
|
+
stat?: "bin";
|
|
117
|
+
position?: StackablePosition;
|
|
118
|
+
params?: BarParams;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface FreqpolyLayerInput extends LayerInputBase {
|
|
122
|
+
geom: "freqpoly";
|
|
123
|
+
stat?: "bin";
|
|
124
|
+
position?: "identity";
|
|
125
|
+
params?: LineParams;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface AreaLayerInput extends LayerInputBase {
|
|
129
|
+
geom: "area";
|
|
130
|
+
stat?: "identity" | "unique" | "align";
|
|
131
|
+
position?: StackablePosition;
|
|
132
|
+
params?: AreaParams;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface RibbonLayerInput extends LayerInputBase {
|
|
136
|
+
geom: "ribbon";
|
|
137
|
+
stat?: "identity" | "unique";
|
|
138
|
+
position?: "identity";
|
|
139
|
+
params?: RibbonParams;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface RuleLayerInput extends LayerInputBase {
|
|
143
|
+
geom: "rule";
|
|
144
|
+
stat?: "identity" | "unique";
|
|
145
|
+
position?: "identity";
|
|
146
|
+
params?: RuleParams;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface HlineLayerInput extends LayerInputBase {
|
|
150
|
+
geom: "hline";
|
|
151
|
+
stat?: "identity";
|
|
152
|
+
position?: "identity";
|
|
153
|
+
params?: HlineParams;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface VlineLayerInput extends LayerInputBase {
|
|
157
|
+
geom: "vline";
|
|
158
|
+
stat?: "identity";
|
|
159
|
+
position?: "identity";
|
|
160
|
+
params?: VlineParams;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface JitterLayerInput extends LayerInputBase {
|
|
164
|
+
geom: "jitter";
|
|
165
|
+
stat?: "identity";
|
|
166
|
+
position?: "jitter";
|
|
167
|
+
positionParams?: PositionParams;
|
|
168
|
+
params?: PointParams;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface TextLayerInput extends LayerInputBase {
|
|
172
|
+
geom: "text";
|
|
173
|
+
stat?: "identity" | "unique";
|
|
174
|
+
position?: "identity" | "nudge";
|
|
175
|
+
positionParams?: PositionParams;
|
|
176
|
+
params?: TextParams;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface LabelLayerInput extends LayerInputBase {
|
|
180
|
+
geom: "label";
|
|
181
|
+
stat?: "identity";
|
|
182
|
+
position?: "identity" | "nudge";
|
|
183
|
+
positionParams?: PositionParams;
|
|
184
|
+
params?: LabelParams;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface SmoothLayerInput extends LayerInputBase {
|
|
188
|
+
geom: "smooth";
|
|
189
|
+
stat?: "smooth";
|
|
190
|
+
position?: "identity";
|
|
191
|
+
params?: SmoothParams;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface QuantileLayerInput extends LayerInputBase {
|
|
195
|
+
geom: "quantile";
|
|
196
|
+
stat?: "quantile";
|
|
197
|
+
position?: "identity";
|
|
198
|
+
params?: QuantileParams;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface ContourLayerInput extends LayerInputBase {
|
|
202
|
+
geom: "contour";
|
|
203
|
+
stat?: "contour";
|
|
204
|
+
position?: "identity";
|
|
205
|
+
params?: ContourParams;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface BoxplotLayerInput extends LayerInputBase {
|
|
209
|
+
geom: "boxplot";
|
|
210
|
+
stat?: "boxplot";
|
|
211
|
+
position?: "dodge" | "identity";
|
|
212
|
+
params?: BoxplotParams;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface DensityLayerInput extends LayerInputBase {
|
|
216
|
+
geom: "density";
|
|
217
|
+
stat?: "density";
|
|
218
|
+
position?: "identity";
|
|
219
|
+
params?: DensityParams;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface Density2dLayerInput extends LayerInputBase {
|
|
223
|
+
geom: "density_2d";
|
|
224
|
+
stat?: "density_2d";
|
|
225
|
+
position?: "identity";
|
|
226
|
+
params?: Density2dParams;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export interface Density2dFilledLayerInput extends LayerInputBase {
|
|
230
|
+
geom: "density_2d_filled";
|
|
231
|
+
stat?: "density_2d_filled";
|
|
232
|
+
position?: "identity";
|
|
233
|
+
params?: Density2dParams;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface DotplotLayerInput extends LayerInputBase {
|
|
237
|
+
geom: "dotplot";
|
|
238
|
+
stat?: "bindot";
|
|
239
|
+
position?: "identity";
|
|
240
|
+
params?: DotplotParams;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface ErrorbarLayerInput extends LayerInputBase {
|
|
244
|
+
geom: "errorbar";
|
|
245
|
+
stat?: "identity" | "unique" | "summary" | "summary_bin";
|
|
246
|
+
position?: "identity";
|
|
247
|
+
params?: ErrorbarParams;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface LinerangeLayerInput extends LayerInputBase {
|
|
251
|
+
geom: "linerange";
|
|
252
|
+
stat?: "identity" | "summary";
|
|
253
|
+
position?: "identity";
|
|
254
|
+
params?: LinerangeParams;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface PointrangeLayerInput extends LayerInputBase {
|
|
258
|
+
geom: "pointrange";
|
|
259
|
+
stat?: "identity" | "summary";
|
|
260
|
+
position?: "identity";
|
|
261
|
+
params?: PointrangeParams;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export interface CrossbarLayerInput extends LayerInputBase {
|
|
265
|
+
geom: "crossbar";
|
|
266
|
+
stat?: "identity" | "summary";
|
|
267
|
+
position?: "identity";
|
|
268
|
+
params?: CrossbarParams;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface ViolinLayerInput extends LayerInputBase {
|
|
272
|
+
geom: "violin";
|
|
273
|
+
stat?: "ydensity";
|
|
274
|
+
position?: "dodge" | "identity";
|
|
275
|
+
params?: ViolinParams;
|
|
276
|
+
}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builder-level layer-input types — surface & special geoms (2d bins, tiles,
|
|
3
|
+
* raster/hex, sf & map, model fits, annotations) plus the LayerInput union
|
|
4
|
+
* spanning both layer families.
|
|
5
|
+
*/
|
|
6
|
+
import type {
|
|
7
|
+
AblineParams,
|
|
8
|
+
Bin2dParams,
|
|
9
|
+
BlankParams,
|
|
10
|
+
CurveParams,
|
|
11
|
+
FunctionParams,
|
|
12
|
+
HexParams,
|
|
13
|
+
MapParams,
|
|
14
|
+
PolygonParams,
|
|
15
|
+
QqLineParams,
|
|
16
|
+
QqParams,
|
|
17
|
+
RasterParams,
|
|
18
|
+
RectParams,
|
|
19
|
+
RugParams,
|
|
20
|
+
SegmentParams,
|
|
21
|
+
SfLabelParams,
|
|
22
|
+
SfParams,
|
|
23
|
+
SfTextParams,
|
|
24
|
+
SpokeParams,
|
|
25
|
+
StepParams,
|
|
26
|
+
TileParams,
|
|
27
|
+
} from "./schema.js";
|
|
28
|
+
import type {
|
|
29
|
+
AreaLayerInput,
|
|
30
|
+
BarLayerInput,
|
|
31
|
+
BoxplotLayerInput,
|
|
32
|
+
ColLayerInput,
|
|
33
|
+
ContourLayerInput,
|
|
34
|
+
CountLayerInput,
|
|
35
|
+
CrossbarLayerInput,
|
|
36
|
+
Density2dFilledLayerInput,
|
|
37
|
+
Density2dLayerInput,
|
|
38
|
+
DensityLayerInput,
|
|
39
|
+
DotplotLayerInput,
|
|
40
|
+
ErrorbarLayerInput,
|
|
41
|
+
FreqpolyLayerInput,
|
|
42
|
+
HistogramLayerInput,
|
|
43
|
+
HlineLayerInput,
|
|
44
|
+
JitterLayerInput,
|
|
45
|
+
LabelLayerInput,
|
|
46
|
+
LayerInputBase,
|
|
47
|
+
LineLayerInput,
|
|
48
|
+
LinerangeLayerInput,
|
|
49
|
+
PathLayerInput,
|
|
50
|
+
PointLayerInput,
|
|
51
|
+
PointrangeLayerInput,
|
|
52
|
+
QuantileLayerInput,
|
|
53
|
+
RibbonLayerInput,
|
|
54
|
+
RuleLayerInput,
|
|
55
|
+
SmoothLayerInput,
|
|
56
|
+
TextLayerInput,
|
|
57
|
+
ViolinLayerInput,
|
|
58
|
+
VlineLayerInput,
|
|
59
|
+
} from "./normalize-input-layers-marks.js";
|
|
60
|
+
|
|
61
|
+
export interface RectLayerInput extends LayerInputBase {
|
|
62
|
+
geom: "rect";
|
|
63
|
+
stat?: "identity" | "unique";
|
|
64
|
+
position?: "identity";
|
|
65
|
+
params?: RectParams;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface TileLayerInput extends LayerInputBase {
|
|
69
|
+
geom: "tile";
|
|
70
|
+
stat?: "identity";
|
|
71
|
+
position?: "identity";
|
|
72
|
+
params?: TileParams;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface Bin2dLayerInput extends LayerInputBase {
|
|
76
|
+
geom: "bin_2d";
|
|
77
|
+
stat?: "bin_2d";
|
|
78
|
+
position?: "identity";
|
|
79
|
+
params?: Bin2dParams;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface RasterLayerInput extends LayerInputBase {
|
|
83
|
+
geom: "raster";
|
|
84
|
+
stat?: "identity";
|
|
85
|
+
position?: "identity";
|
|
86
|
+
params?: RasterParams;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface HexLayerInput extends LayerInputBase {
|
|
90
|
+
geom: "hex";
|
|
91
|
+
stat?: "bin_hex";
|
|
92
|
+
position?: "identity";
|
|
93
|
+
params?: HexParams;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface SegmentLayerInput extends LayerInputBase {
|
|
97
|
+
geom: "segment";
|
|
98
|
+
stat?: "identity" | "unique";
|
|
99
|
+
position?: "identity";
|
|
100
|
+
params?: SegmentParams;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface FunctionLayerInput extends LayerInputBase {
|
|
104
|
+
geom: "function";
|
|
105
|
+
stat?: "function";
|
|
106
|
+
position?: "identity";
|
|
107
|
+
params: FunctionParams;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface PolygonLayerInput extends LayerInputBase {
|
|
111
|
+
geom: "polygon";
|
|
112
|
+
stat?: "identity";
|
|
113
|
+
position?: "identity";
|
|
114
|
+
params?: PolygonParams;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface QqLayerInput extends LayerInputBase {
|
|
118
|
+
geom: "qq";
|
|
119
|
+
stat?: "qq";
|
|
120
|
+
position?: "identity";
|
|
121
|
+
params?: QqParams;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface QqLineLayerInput extends LayerInputBase {
|
|
125
|
+
geom: "qq_line";
|
|
126
|
+
stat?: "qq_line";
|
|
127
|
+
position?: "identity";
|
|
128
|
+
params?: QqLineParams;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export interface AblineLayerInput extends LayerInputBase {
|
|
132
|
+
geom: "abline";
|
|
133
|
+
stat?: "identity";
|
|
134
|
+
position?: "identity";
|
|
135
|
+
params?: AblineParams;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface CurveLayerInput extends LayerInputBase {
|
|
139
|
+
geom: "curve";
|
|
140
|
+
stat?: "identity";
|
|
141
|
+
position?: "identity";
|
|
142
|
+
params?: CurveParams;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface MapLayerInput extends LayerInputBase {
|
|
146
|
+
geom: "map";
|
|
147
|
+
stat?: "identity";
|
|
148
|
+
position?: "identity";
|
|
149
|
+
params: MapParams;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface SfLayerInput extends LayerInputBase {
|
|
153
|
+
geom: "sf";
|
|
154
|
+
/** Geometry expand (ggplot2 `stat_sf`); default from GEOM_DEFAULTS. */
|
|
155
|
+
stat?: "sf";
|
|
156
|
+
position?: "identity";
|
|
157
|
+
params?: SfParams;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface SfTextLayerInput extends LayerInputBase {
|
|
161
|
+
geom: "sf_text";
|
|
162
|
+
stat?: "sf_coordinates";
|
|
163
|
+
position?: "identity";
|
|
164
|
+
params?: SfTextParams;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface SfLabelLayerInput extends LayerInputBase {
|
|
168
|
+
geom: "sf_label";
|
|
169
|
+
stat?: "sf_coordinates";
|
|
170
|
+
position?: "identity";
|
|
171
|
+
params?: SfLabelParams;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface BlankLayerInput extends LayerInputBase {
|
|
175
|
+
geom: "blank";
|
|
176
|
+
stat?: "identity";
|
|
177
|
+
position?: "identity";
|
|
178
|
+
params?: BlankParams;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface SpokeLayerInput extends LayerInputBase {
|
|
182
|
+
geom: "spoke";
|
|
183
|
+
stat?: "identity";
|
|
184
|
+
position?: "identity";
|
|
185
|
+
params?: SpokeParams;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface RugLayerInput extends LayerInputBase {
|
|
189
|
+
geom: "rug";
|
|
190
|
+
stat?: "identity";
|
|
191
|
+
position?: "identity";
|
|
192
|
+
params?: RugParams;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface StepLayerInput extends LayerInputBase {
|
|
196
|
+
geom: "step";
|
|
197
|
+
stat?: "identity";
|
|
198
|
+
position?: "identity";
|
|
199
|
+
params?: StepParams;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** Layer accepted at the TS/builder level. */
|
|
203
|
+
export type LayerInput =
|
|
204
|
+
| PointLayerInput
|
|
205
|
+
| LineLayerInput
|
|
206
|
+
| PathLayerInput
|
|
207
|
+
| ColLayerInput
|
|
208
|
+
| BarLayerInput
|
|
209
|
+
| HistogramLayerInput
|
|
210
|
+
| FreqpolyLayerInput
|
|
211
|
+
| AreaLayerInput
|
|
212
|
+
| RibbonLayerInput
|
|
213
|
+
| RuleLayerInput
|
|
214
|
+
| HlineLayerInput
|
|
215
|
+
| VlineLayerInput
|
|
216
|
+
| JitterLayerInput
|
|
217
|
+
| TextLayerInput
|
|
218
|
+
| LabelLayerInput
|
|
219
|
+
| SmoothLayerInput
|
|
220
|
+
| QuantileLayerInput
|
|
221
|
+
| ContourLayerInput
|
|
222
|
+
| BoxplotLayerInput
|
|
223
|
+
| DensityLayerInput
|
|
224
|
+
| Density2dLayerInput
|
|
225
|
+
| Density2dFilledLayerInput
|
|
226
|
+
| DotplotLayerInput
|
|
227
|
+
| ErrorbarLayerInput
|
|
228
|
+
| LinerangeLayerInput
|
|
229
|
+
| PointrangeLayerInput
|
|
230
|
+
| CrossbarLayerInput
|
|
231
|
+
| AblineLayerInput
|
|
232
|
+
| RectLayerInput
|
|
233
|
+
| TileLayerInput
|
|
234
|
+
| Bin2dLayerInput
|
|
235
|
+
| RasterLayerInput
|
|
236
|
+
| SegmentLayerInput
|
|
237
|
+
| CountLayerInput
|
|
238
|
+
| ViolinLayerInput
|
|
239
|
+
| HexLayerInput
|
|
240
|
+
| FunctionLayerInput
|
|
241
|
+
| PolygonLayerInput
|
|
242
|
+
| CurveLayerInput
|
|
243
|
+
| MapLayerInput
|
|
244
|
+
| SfLayerInput
|
|
245
|
+
| SfTextLayerInput
|
|
246
|
+
| SfLabelLayerInput
|
|
247
|
+
| BlankLayerInput
|
|
248
|
+
| SpokeLayerInput
|
|
249
|
+
| RugLayerInput
|
|
250
|
+
| StepLayerInput
|
|
251
|
+
| QqLayerInput
|
|
252
|
+
| QqLineLayerInput;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builder-level SpecInput surface — bare-string channel shorthand and layer
|
|
3
|
+
* option forms accepted by normalize() / gg(). Canonical PortableSpec types
|
|
4
|
+
* live in schema.ts; this module is the convenience superset only.
|
|
5
|
+
*/
|
|
6
|
+
import type {
|
|
7
|
+
A11yMode,
|
|
8
|
+
ChannelValue,
|
|
9
|
+
CoordSpec,
|
|
10
|
+
DataRef,
|
|
11
|
+
FacetScales,
|
|
12
|
+
GuidesSpec,
|
|
13
|
+
InlineData,
|
|
14
|
+
Labs,
|
|
15
|
+
LegendSpec,
|
|
16
|
+
Scales,
|
|
17
|
+
ThemeName,
|
|
18
|
+
ThemeSpec,
|
|
19
|
+
} from "./schema.js";
|
|
20
|
+
import type { LayerInput } from "./normalize-input-layers-special.js";
|
|
21
|
+
|
|
22
|
+
/** Channel form accepted at the TS/builder level: bare string = { field }. */
|
|
23
|
+
export type ChannelInput = string | ChannelValue;
|
|
24
|
+
|
|
25
|
+
/** Aes accepted at the TS/builder level (bare-string shorthand allowed). */
|
|
26
|
+
export interface AesInput {
|
|
27
|
+
x?: ChannelInput;
|
|
28
|
+
y?: ChannelInput;
|
|
29
|
+
color?: ChannelInput;
|
|
30
|
+
fill?: ChannelInput;
|
|
31
|
+
size?: ChannelInput;
|
|
32
|
+
linewidth?: ChannelInput;
|
|
33
|
+
alpha?: ChannelInput;
|
|
34
|
+
shape?: ChannelInput;
|
|
35
|
+
linetype?: ChannelInput;
|
|
36
|
+
group?: ChannelInput;
|
|
37
|
+
label?: ChannelInput;
|
|
38
|
+
weight?: ChannelInput;
|
|
39
|
+
sample?: ChannelInput;
|
|
40
|
+
ymin?: ChannelInput;
|
|
41
|
+
ymax?: ChannelInput;
|
|
42
|
+
xmin?: ChannelInput;
|
|
43
|
+
xmax?: ChannelInput;
|
|
44
|
+
xend?: ChannelInput;
|
|
45
|
+
yend?: ChannelInput;
|
|
46
|
+
width?: ChannelInput;
|
|
47
|
+
height?: ChannelInput;
|
|
48
|
+
z?: ChannelInput;
|
|
49
|
+
map_id?: ChannelInput;
|
|
50
|
+
angle?: ChannelInput;
|
|
51
|
+
radius?: ChannelInput;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** Facet field accepted at the TS/builder level (bare-string field shorthand). */
|
|
55
|
+
export type FacetFieldInput =
|
|
56
|
+
| string
|
|
57
|
+
| {
|
|
58
|
+
field: string;
|
|
59
|
+
/** Closed explicit panel order (DomainValue[]). */
|
|
60
|
+
levels?: readonly (string | number | boolean | null)[];
|
|
61
|
+
/** Display-label map keyed by string form of semantic values. */
|
|
62
|
+
labels?: Readonly<Record<string, string>>;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** Facet accepted at the TS/builder level (bare-string field shorthand). */
|
|
66
|
+
export interface FacetInput {
|
|
67
|
+
wrap?: FacetFieldInput;
|
|
68
|
+
rows?: FacetFieldInput;
|
|
69
|
+
cols?: FacetFieldInput;
|
|
70
|
+
ncol?: number;
|
|
71
|
+
scales?: FacetScales;
|
|
72
|
+
/** Strip chrome: position (top/bottom/left/right) and visibility. */
|
|
73
|
+
strip?: {
|
|
74
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
75
|
+
show?: boolean;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type {
|
|
80
|
+
AreaLayerInput,
|
|
81
|
+
BarLayerInput,
|
|
82
|
+
BoxplotLayerInput,
|
|
83
|
+
ColLayerInput,
|
|
84
|
+
ContourLayerInput,
|
|
85
|
+
CountLayerInput,
|
|
86
|
+
CrossbarLayerInput,
|
|
87
|
+
Density2dFilledLayerInput,
|
|
88
|
+
Density2dLayerInput,
|
|
89
|
+
DensityLayerInput,
|
|
90
|
+
DotplotLayerInput,
|
|
91
|
+
ErrorbarLayerInput,
|
|
92
|
+
FreqpolyLayerInput,
|
|
93
|
+
HistogramLayerInput,
|
|
94
|
+
HlineLayerInput,
|
|
95
|
+
JitterLayerInput,
|
|
96
|
+
LabelLayerInput,
|
|
97
|
+
LineLayerInput,
|
|
98
|
+
LinerangeLayerInput,
|
|
99
|
+
PathLayerInput,
|
|
100
|
+
PointLayerInput,
|
|
101
|
+
PointrangeLayerInput,
|
|
102
|
+
QuantileLayerInput,
|
|
103
|
+
RibbonLayerInput,
|
|
104
|
+
RuleLayerInput,
|
|
105
|
+
SmoothLayerInput,
|
|
106
|
+
TextLayerInput,
|
|
107
|
+
ViolinLayerInput,
|
|
108
|
+
VlineLayerInput,
|
|
109
|
+
} from "./normalize-input-layers-marks.js";
|
|
110
|
+
|
|
111
|
+
export type {
|
|
112
|
+
AblineLayerInput,
|
|
113
|
+
Bin2dLayerInput,
|
|
114
|
+
BlankLayerInput,
|
|
115
|
+
CurveLayerInput,
|
|
116
|
+
FunctionLayerInput,
|
|
117
|
+
HexLayerInput,
|
|
118
|
+
LayerInput,
|
|
119
|
+
MapLayerInput,
|
|
120
|
+
PolygonLayerInput,
|
|
121
|
+
QqLayerInput,
|
|
122
|
+
QqLineLayerInput,
|
|
123
|
+
RasterLayerInput,
|
|
124
|
+
RectLayerInput,
|
|
125
|
+
RugLayerInput,
|
|
126
|
+
SegmentLayerInput,
|
|
127
|
+
SfLabelLayerInput,
|
|
128
|
+
SfLayerInput,
|
|
129
|
+
SfTextLayerInput,
|
|
130
|
+
SpokeLayerInput,
|
|
131
|
+
StepLayerInput,
|
|
132
|
+
TileLayerInput,
|
|
133
|
+
} from "./normalize-input-layers-special.js";
|
|
134
|
+
|
|
135
|
+
/** Spec accepted at the TS/builder level (superset of PortableSpec forms). */
|
|
136
|
+
export interface SpecInput {
|
|
137
|
+
$schema?: string;
|
|
138
|
+
/** Defaults edition (Hadley lesson 13). Absent = current; normalize stamps it. */
|
|
139
|
+
edition?: number;
|
|
140
|
+
data?: DataRef;
|
|
141
|
+
datasets?: Record<string, InlineData>;
|
|
142
|
+
aes?: AesInput;
|
|
143
|
+
layers: LayerInput[];
|
|
144
|
+
facet?: FacetInput;
|
|
145
|
+
coord?: CoordSpec;
|
|
146
|
+
scales?: Scales;
|
|
147
|
+
guides?: GuidesSpec;
|
|
148
|
+
legend?: LegendSpec;
|
|
149
|
+
labs?: Labs;
|
|
150
|
+
theme?: ThemeName | ThemeSpec;
|
|
151
|
+
width?: number;
|
|
152
|
+
height?: number;
|
|
153
|
+
a11y?: A11yMode;
|
|
154
|
+
}
|