@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,333 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `$defs` partial — column/stat geom params (ColParams…ContourParams).
|
|
3
|
+
* Composed by schema-declarations.ts via spread; key insertion order is load-bearing.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import Type from "typebox";
|
|
7
|
+
import { POINT_SHAPE_NAME_SCHEMAS } from "./schema-name-schemas.js";
|
|
8
|
+
|
|
9
|
+
export const ParamsColContourDecls = {
|
|
10
|
+
ColParams: Type.Object(
|
|
11
|
+
{
|
|
12
|
+
alpha: Type.Optional(
|
|
13
|
+
Type.Number({
|
|
14
|
+
minimum: 0,
|
|
15
|
+
maximum: 1,
|
|
16
|
+
description: "Bar opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
17
|
+
}),
|
|
18
|
+
),
|
|
19
|
+
width: Type.Optional(
|
|
20
|
+
Type.Number({
|
|
21
|
+
exclusiveMinimum: 0,
|
|
22
|
+
maximum: 1,
|
|
23
|
+
description:
|
|
24
|
+
"Bar width as a fraction of the band step. Must be greater than 0 and at most 1. Default 0.9.",
|
|
25
|
+
}),
|
|
26
|
+
),
|
|
27
|
+
fillPaint: Type.Optional(
|
|
28
|
+
Type.Ref("GradientPaint", {
|
|
29
|
+
description:
|
|
30
|
+
"Within-mark gradient fill paint (not a data scale). Requires a solid fallback.",
|
|
31
|
+
}),
|
|
32
|
+
),
|
|
33
|
+
glow: Type.Optional(
|
|
34
|
+
Type.Ref("GlowSpec", {
|
|
35
|
+
description: "Bounded within-mark glow treatment (not theme decoration).",
|
|
36
|
+
}),
|
|
37
|
+
),
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
additionalProperties: false,
|
|
41
|
+
description: "Styling parameters for the col geom.",
|
|
42
|
+
},
|
|
43
|
+
),
|
|
44
|
+
|
|
45
|
+
BarParams: Type.Object(
|
|
46
|
+
{
|
|
47
|
+
alpha: Type.Optional(
|
|
48
|
+
Type.Number({
|
|
49
|
+
minimum: 0,
|
|
50
|
+
maximum: 1,
|
|
51
|
+
description: "Bar opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
52
|
+
}),
|
|
53
|
+
),
|
|
54
|
+
width: Type.Optional(
|
|
55
|
+
Type.Number({
|
|
56
|
+
exclusiveMinimum: 0,
|
|
57
|
+
maximum: 1,
|
|
58
|
+
description:
|
|
59
|
+
"Bar width as a fraction of the band step (count-stat bars only; binned bars span their bin). Must be greater than 0 and at most 1. Default 0.9.",
|
|
60
|
+
}),
|
|
61
|
+
),
|
|
62
|
+
bins: Type.Optional(
|
|
63
|
+
Type.Integer({
|
|
64
|
+
minimum: 1,
|
|
65
|
+
description:
|
|
66
|
+
"STAT BIN ONLY: number of bins (an integer of at least 1). Default 30 — an advisory reminds you to pick a real value. Overridden by binwidth.",
|
|
67
|
+
}),
|
|
68
|
+
),
|
|
69
|
+
binwidth: Type.Optional(
|
|
70
|
+
Type.Number({
|
|
71
|
+
exclusiveMinimum: 0,
|
|
72
|
+
description:
|
|
73
|
+
"STAT BIN ONLY: bin width in data units (must be greater than 0). Takes precedence over bins. Usually the better knob: pick a width meaningful for the data.",
|
|
74
|
+
}),
|
|
75
|
+
),
|
|
76
|
+
boundary: Type.Optional(
|
|
77
|
+
Type.Number({
|
|
78
|
+
description:
|
|
79
|
+
"STAT BIN ONLY: align a bin EDGE with this x value (e.g. 0 puts bin edges at multiples of the width). Mutually exclusive with center.",
|
|
80
|
+
}),
|
|
81
|
+
),
|
|
82
|
+
center: Type.Optional(
|
|
83
|
+
Type.Number({
|
|
84
|
+
description:
|
|
85
|
+
"STAT BIN ONLY: align a bin CENTER with this x value. Mutually exclusive with boundary.",
|
|
86
|
+
}),
|
|
87
|
+
),
|
|
88
|
+
closed: Type.Optional(
|
|
89
|
+
Type.Union([Type.Literal("right"), Type.Literal("left")], {
|
|
90
|
+
description:
|
|
91
|
+
'STAT BIN ONLY: which edge of each bin is inclusive: "right" (default, matches) or "left".',
|
|
92
|
+
}),
|
|
93
|
+
),
|
|
94
|
+
fillPaint: Type.Optional(
|
|
95
|
+
Type.Ref("GradientPaint", {
|
|
96
|
+
description:
|
|
97
|
+
"Within-mark gradient fill paint (not a data scale). Requires a solid fallback.",
|
|
98
|
+
}),
|
|
99
|
+
),
|
|
100
|
+
glow: Type.Optional(
|
|
101
|
+
Type.Ref("GlowSpec", {
|
|
102
|
+
description: "Bounded within-mark glow treatment (not theme decoration).",
|
|
103
|
+
}),
|
|
104
|
+
),
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
additionalProperties: false,
|
|
108
|
+
description:
|
|
109
|
+
"Parameters for the bar and histogram geoms: styling (alpha, width) plus stat-bin binning controls (bins, binwidth, boundary, center, closed).",
|
|
110
|
+
},
|
|
111
|
+
),
|
|
112
|
+
|
|
113
|
+
SmoothParams: Type.Object(
|
|
114
|
+
{
|
|
115
|
+
method: Type.Optional(
|
|
116
|
+
Type.Union([Type.Literal("lm"), Type.Literal("loess")], {
|
|
117
|
+
description:
|
|
118
|
+
'Smoothing method: "lm" (least-squares line) or "loess" (local polynomial regression). Omit to infer: loess for fewer than 1000 rows, lm above (an advisory reports the choice).',
|
|
119
|
+
}),
|
|
120
|
+
),
|
|
121
|
+
se: Type.Optional(
|
|
122
|
+
Type.Boolean({
|
|
123
|
+
description: "Draw the confidence-interval ribbon around the fit. Default true.",
|
|
124
|
+
}),
|
|
125
|
+
),
|
|
126
|
+
level: Type.Optional(
|
|
127
|
+
Type.Number({
|
|
128
|
+
exclusiveMinimum: 0,
|
|
129
|
+
exclusiveMaximum: 1,
|
|
130
|
+
description: "Confidence level of the ribbon, strictly between 0 and 1. Default 0.95.",
|
|
131
|
+
}),
|
|
132
|
+
),
|
|
133
|
+
span: Type.Optional(
|
|
134
|
+
Type.Number({
|
|
135
|
+
exclusiveMinimum: 0,
|
|
136
|
+
maximum: 1,
|
|
137
|
+
description:
|
|
138
|
+
"LOESS ONLY: fraction of points in each local neighborhood, greater than 0 and at most 1. Default 0.75. Smaller = wigglier.",
|
|
139
|
+
}),
|
|
140
|
+
),
|
|
141
|
+
degree: Type.Optional(
|
|
142
|
+
Type.Union([Type.Literal(1), Type.Literal(2)], {
|
|
143
|
+
description:
|
|
144
|
+
"LOESS ONLY: degree of the local polynomial, 1 or 2. Default 2 (the R default).",
|
|
145
|
+
}),
|
|
146
|
+
),
|
|
147
|
+
n: Type.Optional(
|
|
148
|
+
Type.Integer({
|
|
149
|
+
minimum: 2,
|
|
150
|
+
maximum: 5000,
|
|
151
|
+
description:
|
|
152
|
+
"Number of evaluation points along x (an integer between 2 and 5000). Default 80.",
|
|
153
|
+
}),
|
|
154
|
+
),
|
|
155
|
+
linewidth: Type.Optional(
|
|
156
|
+
Type.Number({
|
|
157
|
+
exclusiveMinimum: 0,
|
|
158
|
+
description: "Stroke width of the fitted line in px. Must be greater than 0. Default 1.",
|
|
159
|
+
}),
|
|
160
|
+
),
|
|
161
|
+
alpha: Type.Optional(
|
|
162
|
+
Type.Number({
|
|
163
|
+
minimum: 0,
|
|
164
|
+
maximum: 1,
|
|
165
|
+
description: "Line opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
166
|
+
}),
|
|
167
|
+
),
|
|
168
|
+
strokePaint: Type.Optional(
|
|
169
|
+
Type.Ref("GradientPaint", {
|
|
170
|
+
description: "Within-mark gradient stroke paint for the fitted line (not a data scale).",
|
|
171
|
+
}),
|
|
172
|
+
),
|
|
173
|
+
glow: Type.Optional(
|
|
174
|
+
Type.Ref("GlowSpec", {
|
|
175
|
+
description: "Bounded within-mark glow treatment (not theme decoration).",
|
|
176
|
+
}),
|
|
177
|
+
),
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
additionalProperties: false,
|
|
181
|
+
description: "Parameters for the smooth geom (fitted trend line + optional se ribbon).",
|
|
182
|
+
},
|
|
183
|
+
),
|
|
184
|
+
|
|
185
|
+
QuantileParams: Type.Object(
|
|
186
|
+
{
|
|
187
|
+
quantiles: Type.Optional(
|
|
188
|
+
Type.Array(
|
|
189
|
+
Type.Number({
|
|
190
|
+
exclusiveMinimum: 0,
|
|
191
|
+
exclusiveMaximum: 1,
|
|
192
|
+
description: "One conditional quantile τ strictly between 0 and 1.",
|
|
193
|
+
}),
|
|
194
|
+
{
|
|
195
|
+
minItems: 1,
|
|
196
|
+
description:
|
|
197
|
+
"Conditional quantiles of y to fit and draw. Each entry must be in (0, 1). Default [0.25, 0.5, 0.75].",
|
|
198
|
+
},
|
|
199
|
+
),
|
|
200
|
+
),
|
|
201
|
+
n: Type.Optional(
|
|
202
|
+
Type.Integer({
|
|
203
|
+
minimum: 2,
|
|
204
|
+
maximum: 5000,
|
|
205
|
+
description:
|
|
206
|
+
"Number of evaluation points along x (integer 2–5000). Default 80. Linear fits need only endpoints; denser grids help nonlinear coords.",
|
|
207
|
+
}),
|
|
208
|
+
),
|
|
209
|
+
linewidth: Type.Optional(
|
|
210
|
+
Type.Number({
|
|
211
|
+
exclusiveMinimum: 0,
|
|
212
|
+
description: "Stroke width of quantile lines in px. Must be greater than 0. Default 1.",
|
|
213
|
+
}),
|
|
214
|
+
),
|
|
215
|
+
alpha: Type.Optional(
|
|
216
|
+
Type.Number({
|
|
217
|
+
minimum: 0,
|
|
218
|
+
maximum: 1,
|
|
219
|
+
description: "Line opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
220
|
+
}),
|
|
221
|
+
),
|
|
222
|
+
strokePaint: Type.Optional(
|
|
223
|
+
Type.Ref("GradientPaint", {
|
|
224
|
+
description: "Within-mark gradient stroke paint for quantile lines (not a data scale).",
|
|
225
|
+
}),
|
|
226
|
+
),
|
|
227
|
+
glow: Type.Optional(
|
|
228
|
+
Type.Ref("GlowSpec", {
|
|
229
|
+
description: "Bounded within-mark glow treatment (not theme decoration).",
|
|
230
|
+
}),
|
|
231
|
+
),
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
additionalProperties: false,
|
|
235
|
+
description:
|
|
236
|
+
"Parameters for the quantile geom (linear y~x quantile regression lines;). method rqss is intentionally omitted in v1.",
|
|
237
|
+
},
|
|
238
|
+
),
|
|
239
|
+
QqParams: Type.Object(
|
|
240
|
+
{
|
|
241
|
+
alpha: Type.Optional(
|
|
242
|
+
Type.Number({
|
|
243
|
+
minimum: 0,
|
|
244
|
+
maximum: 1,
|
|
245
|
+
description: "Point opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
246
|
+
}),
|
|
247
|
+
),
|
|
248
|
+
size: Type.Optional(
|
|
249
|
+
Type.Number({
|
|
250
|
+
exclusiveMinimum: 0,
|
|
251
|
+
description: "Point size in px. Must be greater than 0.",
|
|
252
|
+
}),
|
|
253
|
+
),
|
|
254
|
+
shape: Type.Optional(
|
|
255
|
+
Type.Union(POINT_SHAPE_NAME_SCHEMAS, {
|
|
256
|
+
description:
|
|
257
|
+
'Point shape. One of "circle", "triangle", "square", "diamond", "plus", "cross", "circle-open". Default "circle".',
|
|
258
|
+
}),
|
|
259
|
+
),
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
additionalProperties: false,
|
|
263
|
+
description:
|
|
264
|
+
"Styling for geom_qq (Q–Q scatter). Requires aes.sample; x/y become theoretical and sample quantiles.",
|
|
265
|
+
},
|
|
266
|
+
),
|
|
267
|
+
QqLineParams: Type.Object(
|
|
268
|
+
{
|
|
269
|
+
alpha: Type.Optional(
|
|
270
|
+
Type.Number({
|
|
271
|
+
minimum: 0,
|
|
272
|
+
maximum: 1,
|
|
273
|
+
description: "Line opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
274
|
+
}),
|
|
275
|
+
),
|
|
276
|
+
linewidth: Type.Optional(
|
|
277
|
+
Type.Number({
|
|
278
|
+
exclusiveMinimum: 0,
|
|
279
|
+
description: "Stroke width in px. Must be greater than 0. Default 1.",
|
|
280
|
+
}),
|
|
281
|
+
),
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
additionalProperties: false,
|
|
285
|
+
description:
|
|
286
|
+
"Styling for geom_qq_line (reference line through sample/theoretical quartile match).",
|
|
287
|
+
},
|
|
288
|
+
),
|
|
289
|
+
|
|
290
|
+
ContourParams: Type.Object(
|
|
291
|
+
{
|
|
292
|
+
bins: Type.Optional(
|
|
293
|
+
Type.Integer({
|
|
294
|
+
minimum: 1,
|
|
295
|
+
description:
|
|
296
|
+
"Number of evenly spaced contour levels from min(z) to max(z) inclusive (integer ≥ 1). Default 10. Overridden by breaks or binwidth.",
|
|
297
|
+
}),
|
|
298
|
+
),
|
|
299
|
+
binwidth: Type.Optional(
|
|
300
|
+
Type.Number({
|
|
301
|
+
exclusiveMinimum: 0,
|
|
302
|
+
description:
|
|
303
|
+
"Contour level step in z units (must be greater than 0). Takes precedence over bins; overridden by breaks.",
|
|
304
|
+
}),
|
|
305
|
+
),
|
|
306
|
+
breaks: Type.Optional(
|
|
307
|
+
Type.Array(Type.Number(), {
|
|
308
|
+
minItems: 1,
|
|
309
|
+
description:
|
|
310
|
+
"Explicit contour levels (finite numbers). Overrides bins and binwidth when non-empty.",
|
|
311
|
+
}),
|
|
312
|
+
),
|
|
313
|
+
linewidth: Type.Optional(
|
|
314
|
+
Type.Number({
|
|
315
|
+
exclusiveMinimum: 0,
|
|
316
|
+
description: "Stroke width of contour lines in px. Must be greater than 0. Default 1.",
|
|
317
|
+
}),
|
|
318
|
+
),
|
|
319
|
+
alpha: Type.Optional(
|
|
320
|
+
Type.Number({
|
|
321
|
+
minimum: 0,
|
|
322
|
+
maximum: 1,
|
|
323
|
+
description: "Line opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
324
|
+
}),
|
|
325
|
+
),
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
additionalProperties: false,
|
|
329
|
+
description:
|
|
330
|
+
"Parameters for geom_contour isolines. v1: regular grid only; contour_filled deferred.",
|
|
331
|
+
},
|
|
332
|
+
),
|
|
333
|
+
};
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `$defs` partial — curve/map/text geom params (CurveParams…IdentityOrUniqueStat).
|
|
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 ParamsCurveLabelDecls = {
|
|
9
|
+
CurveParams: Type.Object(
|
|
10
|
+
{
|
|
11
|
+
curvature: Type.Optional(
|
|
12
|
+
Type.Number({
|
|
13
|
+
description:
|
|
14
|
+
"Amount of bend away from the straight chord. 0 is a straight line; default 0.5. Positive bows to the right of the start→end direction when angle is 90.",
|
|
15
|
+
}),
|
|
16
|
+
),
|
|
17
|
+
angle: Type.Optional(
|
|
18
|
+
Type.Number({
|
|
19
|
+
description:
|
|
20
|
+
"Control-point direction relative to the chord, in degrees. default 90 (perpendicular).",
|
|
21
|
+
}),
|
|
22
|
+
),
|
|
23
|
+
ncp: Type.Optional(
|
|
24
|
+
Type.Integer({
|
|
25
|
+
minimum: 1,
|
|
26
|
+
maximum: 50,
|
|
27
|
+
description:
|
|
28
|
+
"Smoothness density knob. Maps to tessellation sample count = max(8, ncp×8); not multi-control xspline. Default 5.",
|
|
29
|
+
}),
|
|
30
|
+
),
|
|
31
|
+
alpha: Type.Optional(
|
|
32
|
+
Type.Number({
|
|
33
|
+
minimum: 0,
|
|
34
|
+
maximum: 1,
|
|
35
|
+
description: "Curve opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
36
|
+
}),
|
|
37
|
+
),
|
|
38
|
+
linewidth: Type.Optional(
|
|
39
|
+
Type.Number({
|
|
40
|
+
exclusiveMinimum: 0,
|
|
41
|
+
description: "Stroke width in px. Must be greater than 0. Default 1.",
|
|
42
|
+
}),
|
|
43
|
+
),
|
|
44
|
+
lineend: Type.Optional(
|
|
45
|
+
Type.Union([Type.Literal("butt"), Type.Literal("round"), Type.Literal("square")], {
|
|
46
|
+
description: 'SVG stroke-linecap for curve ends. Default "butt".',
|
|
47
|
+
}),
|
|
48
|
+
),
|
|
49
|
+
strokePaint: Type.Optional(
|
|
50
|
+
Type.Ref("GradientPaint", {
|
|
51
|
+
description:
|
|
52
|
+
"Within-mark gradient stroke paint (not a data scale). Requires a solid fallback.",
|
|
53
|
+
}),
|
|
54
|
+
),
|
|
55
|
+
glow: Type.Optional(
|
|
56
|
+
Type.Ref("GlowSpec", {
|
|
57
|
+
description: "Bounded within-mark glow treatment (not theme decoration).",
|
|
58
|
+
}),
|
|
59
|
+
),
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
additionalProperties: false,
|
|
63
|
+
description:
|
|
64
|
+
"Parameters for geom curve: curvature/angle/ncp plus segment-like stroke styling.",
|
|
65
|
+
},
|
|
66
|
+
),
|
|
67
|
+
|
|
68
|
+
PolygonParams: Type.Object(
|
|
69
|
+
{
|
|
70
|
+
alpha: Type.Optional(
|
|
71
|
+
Type.Number({
|
|
72
|
+
minimum: 0,
|
|
73
|
+
maximum: 1,
|
|
74
|
+
description:
|
|
75
|
+
"Polygon fill/stroke opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
76
|
+
}),
|
|
77
|
+
),
|
|
78
|
+
linewidth: Type.Optional(
|
|
79
|
+
Type.Number({
|
|
80
|
+
exclusiveMinimum: 0,
|
|
81
|
+
description:
|
|
82
|
+
"Outline stroke width in px. Must be greater than 0. Default matches line (1.5).",
|
|
83
|
+
}),
|
|
84
|
+
),
|
|
85
|
+
fillPaint: Type.Optional(
|
|
86
|
+
Type.Ref("GradientPaint", {
|
|
87
|
+
description:
|
|
88
|
+
"Within-mark gradient fill paint (not a data scale). Requires a solid fallback.",
|
|
89
|
+
}),
|
|
90
|
+
),
|
|
91
|
+
strokePaint: Type.Optional(
|
|
92
|
+
Type.Ref("GradientPaint", {
|
|
93
|
+
description:
|
|
94
|
+
"Within-mark gradient stroke paint (not a data scale). Requires a solid fallback.",
|
|
95
|
+
}),
|
|
96
|
+
),
|
|
97
|
+
glow: Type.Optional(
|
|
98
|
+
Type.Ref("GlowSpec", {
|
|
99
|
+
description: "Bounded within-mark glow treatment (not theme decoration).",
|
|
100
|
+
}),
|
|
101
|
+
),
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
additionalProperties: false,
|
|
105
|
+
description:
|
|
106
|
+
"Styling parameters for the polygon geom (closed filled path from (x,y) vertices).",
|
|
107
|
+
},
|
|
108
|
+
),
|
|
109
|
+
|
|
110
|
+
MapParams: Type.Object(
|
|
111
|
+
{
|
|
112
|
+
map: Type.Ref("DataRef", {
|
|
113
|
+
description:
|
|
114
|
+
"Fortified map coordinates ({ values }, { columns }, or { name } against spec.datasets). Must include long+lat or x+y, plus a region id column.",
|
|
115
|
+
}),
|
|
116
|
+
mapId: Type.Optional(
|
|
117
|
+
Type.String({
|
|
118
|
+
minLength: 1,
|
|
119
|
+
description:
|
|
120
|
+
'Join column name in the map data (matched to aes.map_id). Default: "region", then "id".',
|
|
121
|
+
}),
|
|
122
|
+
),
|
|
123
|
+
alpha: Type.Optional(
|
|
124
|
+
Type.Number({
|
|
125
|
+
minimum: 0,
|
|
126
|
+
maximum: 1,
|
|
127
|
+
description: "Region fill opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
128
|
+
}),
|
|
129
|
+
),
|
|
130
|
+
linewidth: Type.Optional(
|
|
131
|
+
Type.Number({
|
|
132
|
+
exclusiveMinimum: 0,
|
|
133
|
+
description: "Region outline stroke width in px. Must be greater than 0. Default 1.5.",
|
|
134
|
+
}),
|
|
135
|
+
),
|
|
136
|
+
fillPaint: Type.Optional(
|
|
137
|
+
Type.Ref("GradientPaint", {
|
|
138
|
+
description: "Within-mark gradient fill paint (not a data scale).",
|
|
139
|
+
}),
|
|
140
|
+
),
|
|
141
|
+
strokePaint: Type.Optional(
|
|
142
|
+
Type.Ref("GradientPaint", {
|
|
143
|
+
description: "Within-mark gradient stroke paint (not a data scale).",
|
|
144
|
+
}),
|
|
145
|
+
),
|
|
146
|
+
glow: Type.Optional(
|
|
147
|
+
Type.Ref("GlowSpec", {
|
|
148
|
+
description: "Bounded within-mark glow treatment (not theme decoration).",
|
|
149
|
+
}),
|
|
150
|
+
),
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
additionalProperties: false,
|
|
154
|
+
description:
|
|
155
|
+
"Parameters for geom_map: fortified map DataRef plus optional join column and polygon styling.",
|
|
156
|
+
},
|
|
157
|
+
),
|
|
158
|
+
|
|
159
|
+
SfParams: Type.Object(
|
|
160
|
+
{
|
|
161
|
+
geometry: Type.Optional(
|
|
162
|
+
Type.String({
|
|
163
|
+
minLength: 1,
|
|
164
|
+
description:
|
|
165
|
+
'Name of the data column holding GeoJSON Geometry JSON strings. Default "geometry". Already-projected coordinates only.',
|
|
166
|
+
}),
|
|
167
|
+
),
|
|
168
|
+
alpha: Type.Optional(
|
|
169
|
+
Type.Number({
|
|
170
|
+
minimum: 0,
|
|
171
|
+
maximum: 1,
|
|
172
|
+
description: "Mark opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
173
|
+
}),
|
|
174
|
+
),
|
|
175
|
+
linewidth: Type.Optional(
|
|
176
|
+
Type.Number({
|
|
177
|
+
exclusiveMinimum: 0,
|
|
178
|
+
description: "Stroke width in px for lines/polygon outlines. Must be greater than 0.",
|
|
179
|
+
}),
|
|
180
|
+
),
|
|
181
|
+
size: Type.Optional(
|
|
182
|
+
Type.Number({
|
|
183
|
+
exclusiveMinimum: 0,
|
|
184
|
+
description: "Point radius in px when geometries are Point/MultiPoint.",
|
|
185
|
+
}),
|
|
186
|
+
),
|
|
187
|
+
fillPaint: Type.Optional(
|
|
188
|
+
Type.Ref("GradientPaint", {
|
|
189
|
+
description: "Within-mark gradient fill paint (polygon family; not a data scale).",
|
|
190
|
+
}),
|
|
191
|
+
),
|
|
192
|
+
strokePaint: Type.Optional(
|
|
193
|
+
Type.Ref("GradientPaint", {
|
|
194
|
+
description: "Within-mark gradient stroke paint (not a data scale).",
|
|
195
|
+
}),
|
|
196
|
+
),
|
|
197
|
+
glow: Type.Optional(
|
|
198
|
+
Type.Ref("GlowSpec", {
|
|
199
|
+
description: "Bounded within-mark glow treatment (not theme decoration).",
|
|
200
|
+
}),
|
|
201
|
+
),
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
additionalProperties: false,
|
|
205
|
+
description:
|
|
206
|
+
"Parameters for geom_sf: portable GeoJSON Geometry column plus styling. Interior rings are even-odd holes; GeometryCollection expands. Use coord_sf for fixed-aspect maps (CRS reproject deferred).",
|
|
207
|
+
},
|
|
208
|
+
),
|
|
209
|
+
|
|
210
|
+
TextParams: Type.Object(
|
|
211
|
+
{
|
|
212
|
+
alpha: Type.Optional(
|
|
213
|
+
Type.Number({
|
|
214
|
+
minimum: 0,
|
|
215
|
+
maximum: 1,
|
|
216
|
+
description: "Text opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
217
|
+
}),
|
|
218
|
+
),
|
|
219
|
+
size: Type.Optional(
|
|
220
|
+
Type.Number({
|
|
221
|
+
exclusiveMinimum: 0,
|
|
222
|
+
description: "Font size in px. Must be greater than 0. Default 11.",
|
|
223
|
+
}),
|
|
224
|
+
),
|
|
225
|
+
anchor: Type.Optional(
|
|
226
|
+
Type.Union([Type.Literal("start"), Type.Literal("middle"), Type.Literal("end")], {
|
|
227
|
+
description:
|
|
228
|
+
'Horizontal text anchor relative to the (x, y) position: "start", "middle" (default), or "end".',
|
|
229
|
+
}),
|
|
230
|
+
),
|
|
231
|
+
dx: Type.Optional(
|
|
232
|
+
Type.Number({
|
|
233
|
+
description: "Horizontal offset in px applied after positioning. Default 0.",
|
|
234
|
+
}),
|
|
235
|
+
),
|
|
236
|
+
dy: Type.Optional(
|
|
237
|
+
Type.Number({
|
|
238
|
+
description:
|
|
239
|
+
"Vertical offset in px applied after positioning (positive = down). Default 0.",
|
|
240
|
+
}),
|
|
241
|
+
),
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
additionalProperties: false,
|
|
245
|
+
description:
|
|
246
|
+
"Styling parameters for the text geom (no collision detection: labels draw exactly where placed).",
|
|
247
|
+
},
|
|
248
|
+
),
|
|
249
|
+
|
|
250
|
+
LabelParams: Type.Object(
|
|
251
|
+
{
|
|
252
|
+
alpha: Type.Optional(
|
|
253
|
+
Type.Number({
|
|
254
|
+
minimum: 0,
|
|
255
|
+
maximum: 1,
|
|
256
|
+
description: "Label opacity. Must be between 0 and 1 (inclusive). Default 1.",
|
|
257
|
+
}),
|
|
258
|
+
),
|
|
259
|
+
size: Type.Optional(
|
|
260
|
+
Type.Number({
|
|
261
|
+
exclusiveMinimum: 0,
|
|
262
|
+
description: "Font size in px. Must be greater than 0. Default 11.",
|
|
263
|
+
}),
|
|
264
|
+
),
|
|
265
|
+
anchor: Type.Optional(
|
|
266
|
+
Type.Union([Type.Literal("start"), Type.Literal("middle"), Type.Literal("end")], {
|
|
267
|
+
description:
|
|
268
|
+
'Horizontal text anchor relative to the (x, y) position: "start", "middle" (default), or "end".',
|
|
269
|
+
}),
|
|
270
|
+
),
|
|
271
|
+
dx: Type.Optional(
|
|
272
|
+
Type.Number({
|
|
273
|
+
description: "Horizontal offset in px applied after positioning. Default 0.",
|
|
274
|
+
}),
|
|
275
|
+
),
|
|
276
|
+
dy: Type.Optional(
|
|
277
|
+
Type.Number({
|
|
278
|
+
description:
|
|
279
|
+
"Vertical offset in px applied after positioning (positive = down). Default 0.",
|
|
280
|
+
}),
|
|
281
|
+
),
|
|
282
|
+
padding: Type.Optional(
|
|
283
|
+
Type.Number({
|
|
284
|
+
exclusiveMinimum: 0,
|
|
285
|
+
description: "Uniform box padding around the text in px. Default 3.",
|
|
286
|
+
}),
|
|
287
|
+
),
|
|
288
|
+
radius: Type.Optional(
|
|
289
|
+
Type.Number({
|
|
290
|
+
minimum: 0,
|
|
291
|
+
description: "Corner radius of the background box in px. Default 3.",
|
|
292
|
+
}),
|
|
293
|
+
),
|
|
294
|
+
linewidth: Type.Optional(
|
|
295
|
+
Type.Number({
|
|
296
|
+
minimum: 0,
|
|
297
|
+
description: "Box outline stroke width in px. Default 0.5.",
|
|
298
|
+
}),
|
|
299
|
+
),
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
additionalProperties: false,
|
|
303
|
+
description:
|
|
304
|
+
"Styling parameters for the label geom (text with background box; no collision detection).",
|
|
305
|
+
},
|
|
306
|
+
),
|
|
307
|
+
|
|
308
|
+
// --- rendering backend -------------------------------------------------------
|
|
309
|
+
|
|
310
|
+
RenderBackend: Type.Union([Type.Literal("svg"), Type.Literal("canvas"), Type.Literal("auto")], {
|
|
311
|
+
description:
|
|
312
|
+
'Rendering backend for this layer: "svg" (DOM marks — accessible, copyable), "canvas" (fast raster for high mark counts), or "auto" (default — canvas above the mark-count threshold of 2000, with an advisory). Text layers always render as SVG. renderToSVGString ignores this and renders everything as SVG.',
|
|
313
|
+
}),
|
|
314
|
+
|
|
315
|
+
// --- positions ------------------------------------------------------------
|
|
316
|
+
|
|
317
|
+
StackablePosition: Type.Union(
|
|
318
|
+
[Type.Literal("stack"), Type.Literal("fill"), Type.Literal("dodge"), Type.Literal("identity")],
|
|
319
|
+
{
|
|
320
|
+
description:
|
|
321
|
+
'Position adjustment: "stack" piles grouped values (positive up, negative down), "fill" stacks to proportions of 1, "dodge" places groups side by side, "identity" leaves positions unchanged.',
|
|
322
|
+
},
|
|
323
|
+
),
|
|
324
|
+
|
|
325
|
+
/** Identity-capable layers may also use unique (first-wins aesthetic dedupe). */
|
|
326
|
+
IdentityOrUniqueStat: Type.Union(
|
|
327
|
+
[
|
|
328
|
+
Type.Literal("identity", {
|
|
329
|
+
description: "Draw each data row as-is (no aggregation or row filter).",
|
|
330
|
+
}),
|
|
331
|
+
Type.Literal("unique", {
|
|
332
|
+
description:
|
|
333
|
+
"Drop duplicate rows on the combination of mapped aesthetic fields before drawing; first occurrence wins. Panel-local.",
|
|
334
|
+
}),
|
|
335
|
+
],
|
|
336
|
+
{
|
|
337
|
+
description:
|
|
338
|
+
'Layer stat: "identity" (default) or "unique" (dedupe mapped aesthetics, first wins).',
|
|
339
|
+
},
|
|
340
|
+
),
|
|
341
|
+
|
|
342
|
+
// --- layers (discriminated by geom) ----------------------------------------
|
|
343
|
+
};
|