@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,52 @@
|
|
|
1
|
+
/** Portable coord type literals (CoordSpec discriminants + flip shell). */
|
|
2
|
+
export declare const KNOWN_COORD_TYPES: readonly ["cartesian", "flip", "transform", "fixed", "sf", "radial"];
|
|
3
|
+
export type CoordTypeName = (typeof KNOWN_COORD_TYPES)[number];
|
|
4
|
+
export interface CoordParamDoc {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly typeSummary: string;
|
|
8
|
+
readonly required: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CoordReferenceEntry {
|
|
11
|
+
readonly name: CoordTypeName;
|
|
12
|
+
/** Route slug — same as the portable type literal. */
|
|
13
|
+
readonly slug: string;
|
|
14
|
+
/** Svelte component export, e.g. CoordFixed. */
|
|
15
|
+
readonly component: string;
|
|
16
|
+
/** Portable `type` discriminant (same as name). */
|
|
17
|
+
readonly typeLiteral: CoordTypeName;
|
|
18
|
+
/** SpecDeclarations key for the coord options object. */
|
|
19
|
+
readonly schemaType: string;
|
|
20
|
+
/**
|
|
21
|
+
* Free-standing helper (e.g. coordFixed). Empty when only the Svelte shell
|
|
22
|
+
* and/or builder method exist (cartesian, flip).
|
|
23
|
+
*/
|
|
24
|
+
readonly helper: string;
|
|
25
|
+
/** ggplot2-style snake_case alias (e.g. coord_fixed). Empty with helper. */
|
|
26
|
+
readonly helperAlias: string;
|
|
27
|
+
/** Extra free-standing helpers that produce the same JSON (coordEqual). */
|
|
28
|
+
readonly alsoHelpers: readonly string[];
|
|
29
|
+
/** Svelte re-export aliases of the shell (CoordEqual). */
|
|
30
|
+
readonly alsoExportedAs: readonly string[];
|
|
31
|
+
/** Builder methods that set this coord (e.g. coordFlip, coordFixed). */
|
|
32
|
+
readonly builderMethods: readonly string[];
|
|
33
|
+
/** Short purpose text for index + detail lede. */
|
|
34
|
+
readonly summary: string;
|
|
35
|
+
/**
|
|
36
|
+
* Options on the Svelte shell / JSON coord object, excluding the fixed
|
|
37
|
+
* `type` discriminant.
|
|
38
|
+
*/
|
|
39
|
+
readonly params: readonly CoordParamDoc[];
|
|
40
|
+
/**
|
|
41
|
+
* Shared axis options for coord_transform x/y. Empty for other types.
|
|
42
|
+
*/
|
|
43
|
+
readonly axisParams: readonly CoordParamDoc[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Complete per-coord API reference. Keys are exactly KNOWN_COORD_TYPES.
|
|
47
|
+
* Precomputed at gen time.
|
|
48
|
+
*/
|
|
49
|
+
export declare const COORD_REFERENCE: Readonly<Record<CoordTypeName, CoordReferenceEntry>>;
|
|
50
|
+
/** Stable list order matching KNOWN_COORD_TYPES (docs index, search, inventory). */
|
|
51
|
+
export declare function coordReferenceList(): readonly CoordReferenceEntry[];
|
|
52
|
+
//# sourceMappingURL=coord-reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coord-reference.d.ts","sourceRoot":"","sources":["../src/coord-reference.ts"],"names":[],"mappings":"AASA,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,sEAOpB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,sDAAsD;IACtD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,mDAAmD;IACnD,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;IACpC,yDAAyD;IACzD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,2EAA2E;IAC3E,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,0DAA0D;IAC1D,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,wEAAwE;IACxE,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,kDAAkD;IAClD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,SAAS,aAAa,EAAE,CAAC;CAC/C;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAC3D,CAAC;AAEvB,oFAAoF;AACpF,wBAAgB,kBAAkB,IAAI,SAAS,mBAAmB,EAAE,CAEnE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* COORD_REFERENCE — per-coord API docs for the docs site.
|
|
3
|
+
*
|
|
4
|
+
* Catalog data is precomputed from SpecDeclarations
|
|
5
|
+
* (`scripts/gen-reference-catalogs.ts`) so reference pages never load TypeBox.
|
|
6
|
+
* Coord shells under packages/svelte/src/lib/coord/ are declaration-only.
|
|
7
|
+
*/
|
|
8
|
+
import { COORD_REFERENCE_DATA } from "./generated/coord-reference-data.js";
|
|
9
|
+
/** Portable coord type literals (CoordSpec discriminants + flip shell). */
|
|
10
|
+
export const KNOWN_COORD_TYPES = [
|
|
11
|
+
"cartesian",
|
|
12
|
+
"flip",
|
|
13
|
+
"transform",
|
|
14
|
+
"fixed",
|
|
15
|
+
"sf",
|
|
16
|
+
"radial",
|
|
17
|
+
];
|
|
18
|
+
/**
|
|
19
|
+
* Complete per-coord API reference. Keys are exactly KNOWN_COORD_TYPES.
|
|
20
|
+
* Precomputed at gen time.
|
|
21
|
+
*/
|
|
22
|
+
export const COORD_REFERENCE = COORD_REFERENCE_DATA;
|
|
23
|
+
/** Stable list order matching KNOWN_COORD_TYPES (docs index, search, inventory). */
|
|
24
|
+
export function coordReferenceList() {
|
|
25
|
+
return KNOWN_COORD_TYPES.map((name) => COORD_REFERENCE[name]);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=coord-reference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coord-reference.js","sourceRoot":"","sources":["../src/coord-reference.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,WAAW;IACX,MAAM;IACN,WAAW;IACX,OAAO;IACP,IAAI;IACJ,QAAQ;CACA,CAAC;AA+CX;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAC1B,oBAAoB,CAAC;AAEvB,oFAAoF;AACpF,MAAM,UAAU,kBAAkB;IAChC,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validation error catalog — stable codes for agent diagnostics and docs.
|
|
3
|
+
* Dual-channel codes (also emitable by the pipeline) pull summary/fix from
|
|
4
|
+
* error-prose-shared.ts (#987). SpecError instance types and didYouMean live
|
|
5
|
+
* in errors.ts. Pipeline-only codes live in pipeline-error-catalog.ts.
|
|
6
|
+
*/
|
|
7
|
+
/** One entry of the validation error catalog (docs render straight from it). */
|
|
8
|
+
export interface ErrorCatalogEntry {
|
|
9
|
+
/** 1 = schema shape / structural (no data needed); 2 = data-aware (opt-in). */
|
|
10
|
+
tier: 1 | 2;
|
|
11
|
+
/** What went wrong, in one sentence. */
|
|
12
|
+
summary: string;
|
|
13
|
+
/** How to fix it, prescriptively (instances carry a concrete fix.example). */
|
|
14
|
+
fix: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The stable catalog of validation error codes — THE single source for the
|
|
18
|
+
* docs error-reference page and llms-full.txt for validation. Dual-channel
|
|
19
|
+
* prose is shared with PIPELINE_ERROR_CATALOG via DUAL_ERROR_PROSE.
|
|
20
|
+
* Audited M3: every code has a prescriptive summary + fix; a coverage test
|
|
21
|
+
* asserts every code is exercised by a snapshot test.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ERROR_CATALOG: {
|
|
24
|
+
readonly "invalid-spec-root": {
|
|
25
|
+
readonly tier: 1;
|
|
26
|
+
readonly summary: "The spec is not a JSON object.";
|
|
27
|
+
readonly fix: "Provide an object with at least one layer: {\"layers\": [{\"geom\": \"point\", ...}]}.";
|
|
28
|
+
};
|
|
29
|
+
readonly "missing-layers": {
|
|
30
|
+
readonly tier: 1;
|
|
31
|
+
readonly summary: "`layers` is missing or not an array.";
|
|
32
|
+
readonly fix: "Add a layers array with at least one layer object.";
|
|
33
|
+
};
|
|
34
|
+
readonly "empty-layers": {
|
|
35
|
+
readonly tier: 1;
|
|
36
|
+
readonly summary: "`layers` is present but empty (a plot needs at least one layer).";
|
|
37
|
+
readonly fix: "Add a layer, e.g. {\"geom\": \"point\"}.";
|
|
38
|
+
};
|
|
39
|
+
readonly "invalid-layer": {
|
|
40
|
+
readonly tier: 1;
|
|
41
|
+
readonly summary: "A layer is not an object.";
|
|
42
|
+
readonly fix: "Replace the entry with a layer object carrying a \"geom\".";
|
|
43
|
+
};
|
|
44
|
+
readonly "missing-geom": {
|
|
45
|
+
readonly tier: 1;
|
|
46
|
+
readonly summary: "A layer has no \"geom\" discriminator.";
|
|
47
|
+
readonly fix: "Add a geom name to the layer, e.g. {\"geom\": \"point\"}.";
|
|
48
|
+
};
|
|
49
|
+
readonly "unknown-geom": {
|
|
50
|
+
readonly tier: 1;
|
|
51
|
+
readonly summary: "A layer's \"geom\" is not a known geom name.";
|
|
52
|
+
readonly fix: "Use one of the allowed geoms (the error lists them, with a did-you-mean).";
|
|
53
|
+
};
|
|
54
|
+
readonly "invalid-channel-value": {
|
|
55
|
+
readonly tier: 1;
|
|
56
|
+
readonly summary: "A channel value is not one of the canonical forms {field}/{value}/{stat}/null (bare strings are builder-only shorthand).";
|
|
57
|
+
readonly fix: "Wrap field mappings as {\"field\": \"column_name\"} and constants as {\"value\": ...}.";
|
|
58
|
+
};
|
|
59
|
+
readonly "unexpected-property": {
|
|
60
|
+
readonly tier: 1;
|
|
61
|
+
readonly summary: "An object carries a property the schema does not allow.";
|
|
62
|
+
readonly fix: "Remove or rename the property (the error suggests the closest allowed name).";
|
|
63
|
+
};
|
|
64
|
+
readonly "missing-property": {
|
|
65
|
+
readonly tier: 1;
|
|
66
|
+
readonly summary: "A required property is missing.";
|
|
67
|
+
readonly fix: "Add the named property.";
|
|
68
|
+
};
|
|
69
|
+
readonly "invalid-enum-value": {
|
|
70
|
+
readonly tier: 1;
|
|
71
|
+
readonly summary: "A value is outside its declared enum/literal set.";
|
|
72
|
+
readonly fix: "Use one of the allowed values (the error lists them, with a did-you-mean).";
|
|
73
|
+
};
|
|
74
|
+
readonly "value-out-of-range": {
|
|
75
|
+
readonly tier: 1;
|
|
76
|
+
readonly summary: "A numeric value is outside its declared bounds.";
|
|
77
|
+
readonly fix: "Set the value inside the bounds stated by the error message.";
|
|
78
|
+
};
|
|
79
|
+
readonly "invalid-data": {
|
|
80
|
+
readonly tier: 1;
|
|
81
|
+
readonly summary: "`data` (or a dataset entry) matches none of the data forms.";
|
|
82
|
+
readonly fix: "Use {\"values\": [...rows]}, {\"columns\": {...arrays}}, or {\"name\": \"dataset\"}.";
|
|
83
|
+
};
|
|
84
|
+
readonly "invalid-type": {
|
|
85
|
+
readonly tier: 1;
|
|
86
|
+
readonly summary: "Fallback: a value has the wrong JSON type.";
|
|
87
|
+
readonly fix: "Give the property the JSON type the message names.";
|
|
88
|
+
};
|
|
89
|
+
readonly "scale-scheme-type": {
|
|
90
|
+
readonly tier: 1;
|
|
91
|
+
readonly summary: "A named color scheme is incompatible with the configured color scale type.";
|
|
92
|
+
readonly fix: "Use a categorical scheme with \"ordinal\" (or a sequential-family scheme like \"viridis\" for discrete viridis), or \"viridis\"/hex stops with \"sequential\". Cyclic *O schemes are sequential only.";
|
|
93
|
+
};
|
|
94
|
+
readonly "scale-scheme-oob": {
|
|
95
|
+
readonly tier: 1;
|
|
96
|
+
readonly summary: "The out-of-bounds policy is incompatible with the named color scheme or scale type.";
|
|
97
|
+
readonly fix: "Use oob \"wrap\" with a cyclic *O scheme. Do not set wrap on a binned color scale.";
|
|
98
|
+
};
|
|
99
|
+
readonly "scale-cyclic-domain": {
|
|
100
|
+
readonly tier: 1;
|
|
101
|
+
readonly summary: "A cyclic color scheme is missing the explicit two-value domain period.";
|
|
102
|
+
readonly fix: "Set domain to one period, for example [0, 360] for angles in degrees.";
|
|
103
|
+
};
|
|
104
|
+
readonly "scale-range-color": {
|
|
105
|
+
readonly tier: 1;
|
|
106
|
+
readonly summary: "A custom color range contains a color outside the supported hex syntax.";
|
|
107
|
+
readonly fix: "Replace each custom color with #rgb or #rrggbb syntax.";
|
|
108
|
+
};
|
|
109
|
+
readonly "scale-type-transform-conflict": {
|
|
110
|
+
readonly summary: "A scale declares an incompatible type/family with its transform (temporal/discrete/manual/identity with a non-identity transform, or type: \"log\" with a non-log10 transform).";
|
|
111
|
+
readonly fix: "Use identity for temporal/discrete/manual/identity scales; for base-10 log use type: \"linear\" with transform: \"log10\"; or choose a quantitative family that admits the transform.";
|
|
112
|
+
readonly tier: 1;
|
|
113
|
+
};
|
|
114
|
+
readonly "color-manual-domain-range": {
|
|
115
|
+
readonly summary: "A manual color/fill scale has a different number of domain values and range colors.";
|
|
116
|
+
readonly fix: "Provide exactly one range color for every domain value.";
|
|
117
|
+
readonly tier: 1;
|
|
118
|
+
};
|
|
119
|
+
readonly "scale-binned-breaks": {
|
|
120
|
+
readonly tier: 1;
|
|
121
|
+
readonly summary: "A binned style scale's authored breaks are missing, non-finite after parsing, duplicated, or not strictly increasing.";
|
|
122
|
+
readonly fix: "Provide 2+ strictly increasing boundaries (numeric, or temporal strings that parse under the scale's parser).";
|
|
123
|
+
};
|
|
124
|
+
readonly "scale-binned-domain": {
|
|
125
|
+
readonly tier: 1;
|
|
126
|
+
readonly summary: "A binned style scale's explicit domain does not match the first and last authored breaks.";
|
|
127
|
+
readonly fix: "Set domain to the first and last break values, or omit domain and let breaks define it.";
|
|
128
|
+
};
|
|
129
|
+
readonly "guide-aesthetic-incompatible": {
|
|
130
|
+
readonly summary: "A guide variant is incompatible with its aesthetic or trained scale family.";
|
|
131
|
+
readonly fix: "Use axis for x/y, legend for discrete/style scales, colorbar for sequential color, or colorsteps for binned color.";
|
|
132
|
+
readonly tier: 1;
|
|
133
|
+
};
|
|
134
|
+
readonly "coord-fixed-free-scales": {
|
|
135
|
+
readonly summary: "Fixed-aspect coordinates cannot represent free positional facet scales truthfully.";
|
|
136
|
+
readonly fix: "Use facet.scales = \"fixed\", or remove coord_fixed / coord_sf.";
|
|
137
|
+
readonly tier: 1;
|
|
138
|
+
};
|
|
139
|
+
readonly "missing-required-channel": {
|
|
140
|
+
readonly tier: 2;
|
|
141
|
+
readonly summary: "A geom is missing a required aesthetic channel (x, y, label, ...).";
|
|
142
|
+
readonly fix: "Map the named channel to a data field in the layer's aes or the plot-level aes.";
|
|
143
|
+
};
|
|
144
|
+
readonly "rule-form-ambiguous": {
|
|
145
|
+
readonly summary: "A rule layer mixes the annotation form (params.xintercept/yintercept) with mapped aes.x/aes.y.";
|
|
146
|
+
readonly fix: "Use fixed intercepts OR a data mapping, never both (unset the other with null).";
|
|
147
|
+
readonly tier: 2;
|
|
148
|
+
};
|
|
149
|
+
readonly "rule-form-missing": {
|
|
150
|
+
readonly summary: "A rule layer has neither intercept params nor a mapped aes.x/aes.y — nothing to draw.";
|
|
151
|
+
readonly fix: "Set params.yintercept/xintercept (annotation) or map aes.x/aes.y (data-driven).";
|
|
152
|
+
readonly tier: 2;
|
|
153
|
+
};
|
|
154
|
+
readonly "rule-both-axes": {
|
|
155
|
+
readonly summary: "A data-driven rule layer maps BOTH aes.x and aes.y (pick one direction).";
|
|
156
|
+
readonly fix: "Keep one direction (vertical: map x; horizontal: map y) and unset the other with null.";
|
|
157
|
+
readonly tier: 2;
|
|
158
|
+
};
|
|
159
|
+
readonly "computed-y-mapped": {
|
|
160
|
+
readonly summary: "A layer whose stat computes y (count, bin, density) maps aes.y to a data field.";
|
|
161
|
+
readonly fix: "Unset y with null — or, for pre-computed bar heights, switch the layer to geom \"col\".";
|
|
162
|
+
readonly tier: 2;
|
|
163
|
+
};
|
|
164
|
+
readonly "bin-center-and-boundary": {
|
|
165
|
+
readonly summary: "A bin-stat layer sets BOTH params.center and params.boundary.";
|
|
166
|
+
readonly fix: "Keep one bin-grid alignment parameter and remove the other.";
|
|
167
|
+
readonly tier: 2;
|
|
168
|
+
};
|
|
169
|
+
readonly "facet-form-ambiguous": {
|
|
170
|
+
readonly summary: "A facet sets BOTH the wrap form and the rows/cols grid form.";
|
|
171
|
+
readonly fix: "Keep facet.wrap (and drop rows/cols), or keep rows/cols (and drop wrap).";
|
|
172
|
+
readonly tier: 2;
|
|
173
|
+
};
|
|
174
|
+
readonly "facet-form-missing": {
|
|
175
|
+
readonly summary: "A facet sets neither wrap nor rows/cols — nothing to partition by.";
|
|
176
|
+
readonly fix: "Set facet.wrap (wrap form) or facet.rows/facet.cols (grid form).";
|
|
177
|
+
readonly tier: 2;
|
|
178
|
+
};
|
|
179
|
+
readonly "facet-ncol-without-wrap": {
|
|
180
|
+
readonly tier: 2;
|
|
181
|
+
readonly summary: "facet.ncol only applies to the wrap form.";
|
|
182
|
+
readonly fix: "Remove ncol, or switch to the wrap form.";
|
|
183
|
+
};
|
|
184
|
+
readonly "unsupported-geom-aesthetic": {
|
|
185
|
+
readonly summary: "A mapped style aesthetic is not consumed by the selected geom.";
|
|
186
|
+
readonly fix: "Remove the mapping or move it to one of the compatible geoms listed in the error.";
|
|
187
|
+
readonly tier: 2;
|
|
188
|
+
};
|
|
189
|
+
readonly "ribbon-orientation-ambiguous": {
|
|
190
|
+
readonly summary: "A ribbon layer maps both x-orientation (x+ymin+ymax) and y-orientation (y+xmin+xmax) contracts without params.orientation.";
|
|
191
|
+
readonly fix: "Set params.orientation to \"x\" or \"y\", or map only one complete interval contract.";
|
|
192
|
+
readonly tier: 2;
|
|
193
|
+
};
|
|
194
|
+
readonly "paint-stops-unordered": {
|
|
195
|
+
readonly tier: 2;
|
|
196
|
+
readonly summary: "A gradient paint's color stops are not in non-decreasing offset order.";
|
|
197
|
+
readonly fix: "Sort stops by offset ascending (each offset between 0 and 1 inclusive).";
|
|
198
|
+
};
|
|
199
|
+
readonly "paint-scale-conflict": {
|
|
200
|
+
readonly tier: 2;
|
|
201
|
+
readonly summary: "Within-mark fillPaint/strokePaint cannot combine with a data-mapped fill/color scale channel.";
|
|
202
|
+
readonly fix: "Remove the data-mapped fill/color aesthetic, or remove the paint and keep the scale.";
|
|
203
|
+
};
|
|
204
|
+
readonly "unknown-field": {
|
|
205
|
+
readonly summary: "A channel maps a field that does not exist in the data.";
|
|
206
|
+
readonly fix: "Map the channel to one of the available fields (the error lists them, with a did-you-mean).";
|
|
207
|
+
readonly tier: 2;
|
|
208
|
+
};
|
|
209
|
+
readonly "all-null-column": {
|
|
210
|
+
readonly summary: "A mapped column contains only null values.";
|
|
211
|
+
readonly fix: "Map the channel to a column with actual values, or fix the data.";
|
|
212
|
+
readonly tier: 2;
|
|
213
|
+
};
|
|
214
|
+
readonly "scale-type-mismatch": {
|
|
215
|
+
readonly tier: 2;
|
|
216
|
+
readonly summary: "A configured scale type is incompatible with the mapped field's type.";
|
|
217
|
+
readonly fix: "Change the scale type to match the field (band for categories, time for temporal), or map a compatible field.";
|
|
218
|
+
};
|
|
219
|
+
readonly "channel-type-mismatch": {
|
|
220
|
+
readonly summary: "A mapped field's type is incompatible with the layer's geom/stat (e.g. a nominal x on smooth/bin/density, a continuous x on boxplot).";
|
|
221
|
+
readonly fix: "Map a field of the type the geom/stat needs, or switch to a geom that fits the field (the message suggests one).";
|
|
222
|
+
readonly tier: 2;
|
|
223
|
+
};
|
|
224
|
+
readonly "unknown-stat-column": {
|
|
225
|
+
readonly summary: "A { stat } channel names a column the layer's stat does not generate.";
|
|
226
|
+
readonly fix: "Use one of the columns the stat generates (the error lists them), or change the layer's stat.";
|
|
227
|
+
readonly tier: 2;
|
|
228
|
+
};
|
|
229
|
+
readonly "manual-fun-required": {
|
|
230
|
+
readonly summary: "A layer uses stat manual without params.fun.";
|
|
231
|
+
readonly fix: "Set params.fun to one of first|last|mean|median|min|max|sum (portable named registry; #814).";
|
|
232
|
+
readonly tier: 2;
|
|
233
|
+
};
|
|
234
|
+
readonly "summary-rolling-window-required": {
|
|
235
|
+
readonly summary: "A layer uses stat summary_rolling without params.window.";
|
|
236
|
+
readonly fix: "Set params.window to the rolling-window width in x data units (greater than 0).";
|
|
237
|
+
readonly tier: 2;
|
|
238
|
+
};
|
|
239
|
+
readonly "summary-fun-unsupported": {
|
|
240
|
+
readonly summary: "A summary stat uses params.fun first|last, which only stat manual implements.";
|
|
241
|
+
readonly fix: "Use mean, median, or sum (min/max via funMin/funMax where supported); first|last belong to stat manual.";
|
|
242
|
+
readonly tier: 2;
|
|
243
|
+
};
|
|
244
|
+
readonly "invalid-data-profile": {
|
|
245
|
+
readonly tier: 2;
|
|
246
|
+
readonly summary: "The provided DataProfile is malformed.";
|
|
247
|
+
readonly fix: "Provide { fields: [{ name, type: \"quantitative\"|\"temporal\"|\"ordinal\"|\"nominal\" }], rowCount? }.";
|
|
248
|
+
};
|
|
249
|
+
readonly "validation-limit": {
|
|
250
|
+
readonly tier: 2;
|
|
251
|
+
readonly summary: "Validation input exceeded a documented limit (rows/bytes/depth/diagnostics).";
|
|
252
|
+
readonly fix: "Validate with a DataProfile instead of huge inline data, or raise the limit via options.limits.";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
export type SpecErrorCode = keyof typeof ERROR_CATALOG;
|
|
256
|
+
/** The stable list of validation error codes (keys of ERROR_CATALOG). */
|
|
257
|
+
export declare const ERROR_CODES: readonly SpecErrorCode[];
|
|
258
|
+
//# sourceMappingURL=error-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../src/error-catalog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,gFAAgF;AAChF,MAAM,WAAW,iBAAiB;IAChC,+EAA+E;IAC/E,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACZ,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6N4B,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;AAEvD,yEAAyE;AACzE,eAAO,MAAM,WAAW,EAAiC,SAAS,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validation error catalog — stable codes for agent diagnostics and docs.
|
|
3
|
+
* Dual-channel codes (also emitable by the pipeline) pull summary/fix from
|
|
4
|
+
* error-prose-shared.ts (#987). SpecError instance types and didYouMean live
|
|
5
|
+
* in errors.ts. Pipeline-only codes live in pipeline-error-catalog.ts.
|
|
6
|
+
*/
|
|
7
|
+
import { DUAL_ERROR_PROSE } from "./error-prose-shared.js";
|
|
8
|
+
/**
|
|
9
|
+
* The stable catalog of validation error codes — THE single source for the
|
|
10
|
+
* docs error-reference page and llms-full.txt for validation. Dual-channel
|
|
11
|
+
* prose is shared with PIPELINE_ERROR_CATALOG via DUAL_ERROR_PROSE.
|
|
12
|
+
* Audited M3: every code has a prescriptive summary + fix; a coverage test
|
|
13
|
+
* asserts every code is exercised by a snapshot test.
|
|
14
|
+
*/
|
|
15
|
+
export const ERROR_CATALOG = {
|
|
16
|
+
// --- tier 1 (schema shape, no data needed) -------------------------------
|
|
17
|
+
"invalid-spec-root": {
|
|
18
|
+
tier: 1,
|
|
19
|
+
summary: "The spec is not a JSON object.",
|
|
20
|
+
fix: 'Provide an object with at least one layer: {"layers": [{"geom": "point", ...}]}.',
|
|
21
|
+
},
|
|
22
|
+
"missing-layers": {
|
|
23
|
+
tier: 1,
|
|
24
|
+
summary: "`layers` is missing or not an array.",
|
|
25
|
+
fix: "Add a layers array with at least one layer object.",
|
|
26
|
+
},
|
|
27
|
+
"empty-layers": {
|
|
28
|
+
tier: 1,
|
|
29
|
+
summary: "`layers` is present but empty (a plot needs at least one layer).",
|
|
30
|
+
fix: 'Add a layer, e.g. {"geom": "point"}.',
|
|
31
|
+
},
|
|
32
|
+
"invalid-layer": {
|
|
33
|
+
tier: 1,
|
|
34
|
+
summary: "A layer is not an object.",
|
|
35
|
+
fix: 'Replace the entry with a layer object carrying a "geom".',
|
|
36
|
+
},
|
|
37
|
+
"missing-geom": {
|
|
38
|
+
tier: 1,
|
|
39
|
+
summary: 'A layer has no "geom" discriminator.',
|
|
40
|
+
fix: 'Add a geom name to the layer, e.g. {"geom": "point"}.',
|
|
41
|
+
},
|
|
42
|
+
"unknown-geom": {
|
|
43
|
+
tier: 1,
|
|
44
|
+
summary: 'A layer\'s "geom" is not a known geom name.',
|
|
45
|
+
fix: "Use one of the allowed geoms (the error lists them, with a did-you-mean).",
|
|
46
|
+
},
|
|
47
|
+
"invalid-channel-value": {
|
|
48
|
+
tier: 1,
|
|
49
|
+
summary: "A channel value is not one of the canonical forms {field}/{value}/{stat}/null (bare strings are builder-only shorthand).",
|
|
50
|
+
fix: 'Wrap field mappings as {"field": "column_name"} and constants as {"value": ...}.',
|
|
51
|
+
},
|
|
52
|
+
"unexpected-property": {
|
|
53
|
+
tier: 1,
|
|
54
|
+
summary: "An object carries a property the schema does not allow.",
|
|
55
|
+
fix: "Remove or rename the property (the error suggests the closest allowed name).",
|
|
56
|
+
},
|
|
57
|
+
"missing-property": {
|
|
58
|
+
tier: 1,
|
|
59
|
+
summary: "A required property is missing.",
|
|
60
|
+
fix: "Add the named property.",
|
|
61
|
+
},
|
|
62
|
+
"invalid-enum-value": {
|
|
63
|
+
tier: 1,
|
|
64
|
+
summary: "A value is outside its declared enum/literal set.",
|
|
65
|
+
fix: "Use one of the allowed values (the error lists them, with a did-you-mean).",
|
|
66
|
+
},
|
|
67
|
+
"value-out-of-range": {
|
|
68
|
+
tier: 1,
|
|
69
|
+
summary: "A numeric value is outside its declared bounds.",
|
|
70
|
+
fix: "Set the value inside the bounds stated by the error message.",
|
|
71
|
+
},
|
|
72
|
+
"invalid-data": {
|
|
73
|
+
tier: 1,
|
|
74
|
+
summary: "`data` (or a dataset entry) matches none of the data forms.",
|
|
75
|
+
fix: 'Use {"values": [...rows]}, {"columns": {...arrays}}, or {"name": "dataset"}.',
|
|
76
|
+
},
|
|
77
|
+
"invalid-type": {
|
|
78
|
+
tier: 1,
|
|
79
|
+
summary: "Fallback: a value has the wrong JSON type.",
|
|
80
|
+
fix: "Give the property the JSON type the message names.",
|
|
81
|
+
},
|
|
82
|
+
"scale-scheme-type": {
|
|
83
|
+
tier: 1,
|
|
84
|
+
summary: "A named color scheme is incompatible with the configured color scale type.",
|
|
85
|
+
fix: 'Use a categorical scheme with "ordinal" (or a sequential-family scheme like "viridis" for discrete viridis), or "viridis"/hex stops with "sequential". Cyclic *O schemes are sequential only.',
|
|
86
|
+
},
|
|
87
|
+
"scale-scheme-oob": {
|
|
88
|
+
tier: 1,
|
|
89
|
+
summary: "The out-of-bounds policy is incompatible with the named color scheme or scale type.",
|
|
90
|
+
fix: 'Use oob "wrap" with a cyclic *O scheme. Do not set wrap on a binned color scale.',
|
|
91
|
+
},
|
|
92
|
+
"scale-cyclic-domain": {
|
|
93
|
+
tier: 1,
|
|
94
|
+
summary: "A cyclic color scheme is missing the explicit two-value domain period.",
|
|
95
|
+
fix: "Set domain to one period, for example [0, 360] for angles in degrees.",
|
|
96
|
+
},
|
|
97
|
+
"scale-range-color": {
|
|
98
|
+
tier: 1,
|
|
99
|
+
summary: "A custom color range contains a color outside the supported hex syntax.",
|
|
100
|
+
fix: "Replace each custom color with #rgb or #rrggbb syntax.",
|
|
101
|
+
},
|
|
102
|
+
"scale-type-transform-conflict": {
|
|
103
|
+
tier: 1,
|
|
104
|
+
...DUAL_ERROR_PROSE["scale-type-transform-conflict"],
|
|
105
|
+
},
|
|
106
|
+
"color-manual-domain-range": {
|
|
107
|
+
tier: 1,
|
|
108
|
+
...DUAL_ERROR_PROSE["color-manual-domain-range"],
|
|
109
|
+
},
|
|
110
|
+
"scale-binned-breaks": {
|
|
111
|
+
tier: 1,
|
|
112
|
+
summary: "A binned style scale's authored breaks are missing, non-finite after parsing, duplicated, or not strictly increasing.",
|
|
113
|
+
fix: "Provide 2+ strictly increasing boundaries (numeric, or temporal strings that parse under the scale's parser).",
|
|
114
|
+
},
|
|
115
|
+
"scale-binned-domain": {
|
|
116
|
+
tier: 1,
|
|
117
|
+
summary: "A binned style scale's explicit domain does not match the first and last authored breaks.",
|
|
118
|
+
fix: "Set domain to the first and last break values, or omit domain and let breaks define it.",
|
|
119
|
+
},
|
|
120
|
+
"guide-aesthetic-incompatible": {
|
|
121
|
+
tier: 1,
|
|
122
|
+
...DUAL_ERROR_PROSE["guide-aesthetic-incompatible"],
|
|
123
|
+
},
|
|
124
|
+
"coord-fixed-free-scales": {
|
|
125
|
+
tier: 1,
|
|
126
|
+
...DUAL_ERROR_PROSE["coord-fixed-free-scales"],
|
|
127
|
+
},
|
|
128
|
+
// --- tier 1 structural (grammar rules the schema alone cannot express) ---
|
|
129
|
+
"missing-required-channel": {
|
|
130
|
+
tier: 2,
|
|
131
|
+
summary: "A geom is missing a required aesthetic channel (x, y, label, ...).",
|
|
132
|
+
fix: "Map the named channel to a data field in the layer's aes or the plot-level aes.",
|
|
133
|
+
},
|
|
134
|
+
"rule-form-ambiguous": {
|
|
135
|
+
tier: 2,
|
|
136
|
+
...DUAL_ERROR_PROSE["rule-form-ambiguous"],
|
|
137
|
+
},
|
|
138
|
+
"rule-form-missing": {
|
|
139
|
+
tier: 2,
|
|
140
|
+
...DUAL_ERROR_PROSE["rule-form-missing"],
|
|
141
|
+
},
|
|
142
|
+
"rule-both-axes": {
|
|
143
|
+
tier: 2,
|
|
144
|
+
...DUAL_ERROR_PROSE["rule-both-axes"],
|
|
145
|
+
},
|
|
146
|
+
"computed-y-mapped": {
|
|
147
|
+
tier: 2,
|
|
148
|
+
...DUAL_ERROR_PROSE["computed-y-mapped"],
|
|
149
|
+
},
|
|
150
|
+
"bin-center-and-boundary": {
|
|
151
|
+
tier: 2,
|
|
152
|
+
...DUAL_ERROR_PROSE["bin-center-and-boundary"],
|
|
153
|
+
},
|
|
154
|
+
"facet-form-ambiguous": {
|
|
155
|
+
tier: 2,
|
|
156
|
+
...DUAL_ERROR_PROSE["facet-form-ambiguous"],
|
|
157
|
+
},
|
|
158
|
+
"facet-form-missing": {
|
|
159
|
+
tier: 2,
|
|
160
|
+
...DUAL_ERROR_PROSE["facet-form-missing"],
|
|
161
|
+
},
|
|
162
|
+
"facet-ncol-without-wrap": {
|
|
163
|
+
tier: 2,
|
|
164
|
+
summary: "facet.ncol only applies to the wrap form.",
|
|
165
|
+
fix: "Remove ncol, or switch to the wrap form.",
|
|
166
|
+
},
|
|
167
|
+
"unsupported-geom-aesthetic": {
|
|
168
|
+
tier: 2,
|
|
169
|
+
...DUAL_ERROR_PROSE["unsupported-geom-aesthetic"],
|
|
170
|
+
},
|
|
171
|
+
"ribbon-orientation-ambiguous": {
|
|
172
|
+
tier: 2,
|
|
173
|
+
...DUAL_ERROR_PROSE["ribbon-orientation-ambiguous"],
|
|
174
|
+
},
|
|
175
|
+
"paint-stops-unordered": {
|
|
176
|
+
tier: 2,
|
|
177
|
+
summary: "A gradient paint's color stops are not in non-decreasing offset order.",
|
|
178
|
+
fix: "Sort stops by offset ascending (each offset between 0 and 1 inclusive).",
|
|
179
|
+
},
|
|
180
|
+
"paint-scale-conflict": {
|
|
181
|
+
tier: 2,
|
|
182
|
+
summary: "Within-mark fillPaint/strokePaint cannot combine with a data-mapped fill/color scale channel.",
|
|
183
|
+
fix: "Remove the data-mapped fill/color aesthetic, or remove the paint and keep the scale.",
|
|
184
|
+
},
|
|
185
|
+
// --- tier 2 (data-aware; needs inline data or a DataProfile) -------------
|
|
186
|
+
"unknown-field": {
|
|
187
|
+
tier: 2,
|
|
188
|
+
...DUAL_ERROR_PROSE["unknown-field"],
|
|
189
|
+
},
|
|
190
|
+
"all-null-column": {
|
|
191
|
+
tier: 2,
|
|
192
|
+
...DUAL_ERROR_PROSE["all-null-column"],
|
|
193
|
+
},
|
|
194
|
+
"scale-type-mismatch": {
|
|
195
|
+
tier: 2,
|
|
196
|
+
summary: "A configured scale type is incompatible with the mapped field's type.",
|
|
197
|
+
fix: "Change the scale type to match the field (band for categories, time for temporal), or map a compatible field.",
|
|
198
|
+
},
|
|
199
|
+
"channel-type-mismatch": {
|
|
200
|
+
tier: 2,
|
|
201
|
+
...DUAL_ERROR_PROSE["channel-type-mismatch"],
|
|
202
|
+
},
|
|
203
|
+
"unknown-stat-column": {
|
|
204
|
+
tier: 2,
|
|
205
|
+
...DUAL_ERROR_PROSE["unknown-stat-column"],
|
|
206
|
+
},
|
|
207
|
+
"manual-fun-required": {
|
|
208
|
+
// Structural grammar (layerStructuralErrors) — opt-in tier-2 only; not plain validate().
|
|
209
|
+
tier: 2,
|
|
210
|
+
...DUAL_ERROR_PROSE["manual-fun-required"],
|
|
211
|
+
},
|
|
212
|
+
"summary-rolling-window-required": {
|
|
213
|
+
// Structural grammar (layerStructuralErrors) — opt-in tier-2 only; not plain validate().
|
|
214
|
+
tier: 2,
|
|
215
|
+
...DUAL_ERROR_PROSE["summary-rolling-window-required"],
|
|
216
|
+
},
|
|
217
|
+
"summary-fun-unsupported": {
|
|
218
|
+
// Structural grammar (layerStructuralErrors) — opt-in tier-2 only; not plain validate().
|
|
219
|
+
tier: 2,
|
|
220
|
+
...DUAL_ERROR_PROSE["summary-fun-unsupported"],
|
|
221
|
+
},
|
|
222
|
+
"invalid-data-profile": {
|
|
223
|
+
tier: 2,
|
|
224
|
+
summary: "The provided DataProfile is malformed.",
|
|
225
|
+
fix: 'Provide { fields: [{ name, type: "quantitative"|"temporal"|"ordinal"|"nominal" }], rowCount? }.',
|
|
226
|
+
},
|
|
227
|
+
"validation-limit": {
|
|
228
|
+
tier: 2,
|
|
229
|
+
summary: "Validation input exceeded a documented limit (rows/bytes/depth/diagnostics).",
|
|
230
|
+
fix: "Validate with a DataProfile instead of huge inline data, or raise the limit via options.limits.",
|
|
231
|
+
},
|
|
232
|
+
};
|
|
233
|
+
/** The stable list of validation error codes (keys of ERROR_CATALOG). */
|
|
234
|
+
export const ERROR_CODES = Object.keys(ERROR_CATALOG);
|
|
235
|
+
//# sourceMappingURL=error-catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-catalog.js","sourceRoot":"","sources":["../src/error-catalog.ts"],"names":[],"mappings":"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"}
|