@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,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared summary/fix prose for diagnostic codes that both validation
|
|
3
|
+
* (ERROR_CATALOG) and the pipeline (PIPELINE_ERROR_CATALOG) can emit.
|
|
4
|
+
* One object per code — import into both catalogs so the strings cannot drift.
|
|
5
|
+
*
|
|
6
|
+
* #987: missing-channel vs missing-required-channel is intentionally NOT
|
|
7
|
+
* merged here (different public code strings; one rename per change).
|
|
8
|
+
*/
|
|
9
|
+
/** Prose body shared by dual-channel error codes. */
|
|
10
|
+
export interface SharedErrorProse {
|
|
11
|
+
summary: string;
|
|
12
|
+
fix: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Dual-channel codes and their single prose source.
|
|
16
|
+
* Keep keys sorted; scripts/error-catalog-shared-prose.test.ts pins membership.
|
|
17
|
+
*/
|
|
18
|
+
export declare const DUAL_ERROR_PROSE: {
|
|
19
|
+
readonly "all-null-column": {
|
|
20
|
+
readonly summary: "A mapped column contains only null values.";
|
|
21
|
+
readonly fix: "Map the channel to a column with actual values, or fix the data.";
|
|
22
|
+
};
|
|
23
|
+
readonly "bin-center-and-boundary": {
|
|
24
|
+
readonly summary: "A bin-stat layer sets BOTH params.center and params.boundary.";
|
|
25
|
+
readonly fix: "Keep one bin-grid alignment parameter and remove the other.";
|
|
26
|
+
};
|
|
27
|
+
readonly "channel-type-mismatch": {
|
|
28
|
+
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).";
|
|
29
|
+
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).";
|
|
30
|
+
};
|
|
31
|
+
readonly "color-manual-domain-range": {
|
|
32
|
+
readonly summary: "A manual color/fill scale has a different number of domain values and range colors.";
|
|
33
|
+
readonly fix: "Provide exactly one range color for every domain value.";
|
|
34
|
+
};
|
|
35
|
+
readonly "computed-y-mapped": {
|
|
36
|
+
readonly summary: "A layer whose stat computes y (count, bin, density) maps aes.y to a data field.";
|
|
37
|
+
readonly fix: "Unset y with null — or, for pre-computed bar heights, switch the layer to geom \"col\".";
|
|
38
|
+
};
|
|
39
|
+
readonly "coord-fixed-free-scales": {
|
|
40
|
+
readonly summary: "Fixed-aspect coordinates cannot represent free positional facet scales truthfully.";
|
|
41
|
+
readonly fix: "Use facet.scales = \"fixed\", or remove coord_fixed / coord_sf.";
|
|
42
|
+
};
|
|
43
|
+
readonly "facet-form-ambiguous": {
|
|
44
|
+
readonly summary: "A facet sets BOTH the wrap form and the rows/cols grid form.";
|
|
45
|
+
readonly fix: "Keep facet.wrap (and drop rows/cols), or keep rows/cols (and drop wrap).";
|
|
46
|
+
};
|
|
47
|
+
readonly "facet-form-missing": {
|
|
48
|
+
readonly summary: "A facet sets neither wrap nor rows/cols — nothing to partition by.";
|
|
49
|
+
readonly fix: "Set facet.wrap (wrap form) or facet.rows/facet.cols (grid form).";
|
|
50
|
+
};
|
|
51
|
+
readonly "guide-aesthetic-incompatible": {
|
|
52
|
+
readonly summary: "A guide variant is incompatible with its aesthetic or trained scale family.";
|
|
53
|
+
readonly fix: "Use axis for x/y, legend for discrete/style scales, colorbar for sequential color, or colorsteps for binned color.";
|
|
54
|
+
};
|
|
55
|
+
readonly "manual-fun-required": {
|
|
56
|
+
readonly summary: "A layer uses stat manual without params.fun.";
|
|
57
|
+
readonly fix: "Set params.fun to one of first|last|mean|median|min|max|sum (portable named registry; #814).";
|
|
58
|
+
};
|
|
59
|
+
readonly "summary-rolling-window-required": {
|
|
60
|
+
readonly summary: "A layer uses stat summary_rolling without params.window.";
|
|
61
|
+
readonly fix: "Set params.window to the rolling-window width in x data units (greater than 0).";
|
|
62
|
+
};
|
|
63
|
+
readonly "summary-fun-unsupported": {
|
|
64
|
+
readonly summary: "A summary stat uses params.fun first|last, which only stat manual implements.";
|
|
65
|
+
readonly fix: "Use mean, median, or sum (min/max via funMin/funMax where supported); first|last belong to stat manual.";
|
|
66
|
+
};
|
|
67
|
+
readonly "ribbon-orientation-ambiguous": {
|
|
68
|
+
readonly summary: "A ribbon layer maps both x-orientation (x+ymin+ymax) and y-orientation (y+xmin+xmax) contracts without params.orientation.";
|
|
69
|
+
readonly fix: "Set params.orientation to \"x\" or \"y\", or map only one complete interval contract.";
|
|
70
|
+
};
|
|
71
|
+
readonly "rule-both-axes": {
|
|
72
|
+
readonly summary: "A data-driven rule layer maps BOTH aes.x and aes.y (pick one direction).";
|
|
73
|
+
readonly fix: "Keep one direction (vertical: map x; horizontal: map y) and unset the other with null.";
|
|
74
|
+
};
|
|
75
|
+
readonly "rule-form-ambiguous": {
|
|
76
|
+
readonly summary: "A rule layer mixes the annotation form (params.xintercept/yintercept) with mapped aes.x/aes.y.";
|
|
77
|
+
readonly fix: "Use fixed intercepts OR a data mapping, never both (unset the other with null).";
|
|
78
|
+
};
|
|
79
|
+
readonly "rule-form-missing": {
|
|
80
|
+
readonly summary: "A rule layer has neither intercept params nor a mapped aes.x/aes.y — nothing to draw.";
|
|
81
|
+
readonly fix: "Set params.yintercept/xintercept (annotation) or map aes.x/aes.y (data-driven).";
|
|
82
|
+
};
|
|
83
|
+
readonly "scale-type-transform-conflict": {
|
|
84
|
+
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).";
|
|
85
|
+
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.";
|
|
86
|
+
};
|
|
87
|
+
readonly "unknown-field": {
|
|
88
|
+
readonly summary: "A channel maps a field that does not exist in the data.";
|
|
89
|
+
readonly fix: "Map the channel to one of the available fields (the error lists them, with a did-you-mean).";
|
|
90
|
+
};
|
|
91
|
+
readonly "unknown-stat-column": {
|
|
92
|
+
readonly summary: "A { stat } channel names a column the layer's stat does not generate.";
|
|
93
|
+
readonly fix: "Use one of the columns the stat generates (the error lists them), or change the layer's stat.";
|
|
94
|
+
};
|
|
95
|
+
readonly "unsupported-geom-aesthetic": {
|
|
96
|
+
readonly summary: "A mapped style aesthetic is not consumed by the selected geom.";
|
|
97
|
+
readonly fix: "Remove the mapping or move it to one of the compatible geoms listed in the error.";
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=error-prose-shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-prose-shared.d.ts","sourceRoot":"","sources":["../src/error-prose-shared.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,qDAAqD;AACrD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFwB,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared summary/fix prose for diagnostic codes that both validation
|
|
3
|
+
* (ERROR_CATALOG) and the pipeline (PIPELINE_ERROR_CATALOG) can emit.
|
|
4
|
+
* One object per code — import into both catalogs so the strings cannot drift.
|
|
5
|
+
*
|
|
6
|
+
* #987: missing-channel vs missing-required-channel is intentionally NOT
|
|
7
|
+
* merged here (different public code strings; one rename per change).
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Dual-channel codes and their single prose source.
|
|
11
|
+
* Keep keys sorted; scripts/error-catalog-shared-prose.test.ts pins membership.
|
|
12
|
+
*/
|
|
13
|
+
export const DUAL_ERROR_PROSE = {
|
|
14
|
+
"all-null-column": {
|
|
15
|
+
summary: "A mapped column contains only null values.",
|
|
16
|
+
fix: "Map the channel to a column with actual values, or fix the data.",
|
|
17
|
+
},
|
|
18
|
+
"bin-center-and-boundary": {
|
|
19
|
+
summary: "A bin-stat layer sets BOTH params.center and params.boundary.",
|
|
20
|
+
fix: "Keep one bin-grid alignment parameter and remove the other.",
|
|
21
|
+
},
|
|
22
|
+
"channel-type-mismatch": {
|
|
23
|
+
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).",
|
|
24
|
+
fix: "Map a field of the type the geom/stat needs, or switch to a geom that fits the field (the message suggests one).",
|
|
25
|
+
},
|
|
26
|
+
"color-manual-domain-range": {
|
|
27
|
+
summary: "A manual color/fill scale has a different number of domain values and range colors.",
|
|
28
|
+
fix: "Provide exactly one range color for every domain value.",
|
|
29
|
+
},
|
|
30
|
+
"computed-y-mapped": {
|
|
31
|
+
summary: "A layer whose stat computes y (count, bin, density) maps aes.y to a data field.",
|
|
32
|
+
fix: 'Unset y with null — or, for pre-computed bar heights, switch the layer to geom "col".',
|
|
33
|
+
},
|
|
34
|
+
"coord-fixed-free-scales": {
|
|
35
|
+
summary: "Fixed-aspect coordinates cannot represent free positional facet scales truthfully.",
|
|
36
|
+
fix: 'Use facet.scales = "fixed", or remove coord_fixed / coord_sf.',
|
|
37
|
+
},
|
|
38
|
+
"facet-form-ambiguous": {
|
|
39
|
+
summary: "A facet sets BOTH the wrap form and the rows/cols grid form.",
|
|
40
|
+
fix: "Keep facet.wrap (and drop rows/cols), or keep rows/cols (and drop wrap).",
|
|
41
|
+
},
|
|
42
|
+
"facet-form-missing": {
|
|
43
|
+
summary: "A facet sets neither wrap nor rows/cols — nothing to partition by.",
|
|
44
|
+
fix: "Set facet.wrap (wrap form) or facet.rows/facet.cols (grid form).",
|
|
45
|
+
},
|
|
46
|
+
"guide-aesthetic-incompatible": {
|
|
47
|
+
summary: "A guide variant is incompatible with its aesthetic or trained scale family.",
|
|
48
|
+
fix: "Use axis for x/y, legend for discrete/style scales, colorbar for sequential color, or colorsteps for binned color.",
|
|
49
|
+
},
|
|
50
|
+
"manual-fun-required": {
|
|
51
|
+
summary: "A layer uses stat manual without params.fun.",
|
|
52
|
+
fix: "Set params.fun to one of first|last|mean|median|min|max|sum (portable named registry; #814).",
|
|
53
|
+
},
|
|
54
|
+
"summary-rolling-window-required": {
|
|
55
|
+
summary: "A layer uses stat summary_rolling without params.window.",
|
|
56
|
+
fix: "Set params.window to the rolling-window width in x data units (greater than 0).",
|
|
57
|
+
},
|
|
58
|
+
"summary-fun-unsupported": {
|
|
59
|
+
summary: "A summary stat uses params.fun first|last, which only stat manual implements.",
|
|
60
|
+
fix: "Use mean, median, or sum (min/max via funMin/funMax where supported); first|last belong to stat manual.",
|
|
61
|
+
},
|
|
62
|
+
"ribbon-orientation-ambiguous": {
|
|
63
|
+
summary: "A ribbon layer maps both x-orientation (x+ymin+ymax) and y-orientation (y+xmin+xmax) contracts without params.orientation.",
|
|
64
|
+
fix: 'Set params.orientation to "x" or "y", or map only one complete interval contract.',
|
|
65
|
+
},
|
|
66
|
+
"rule-both-axes": {
|
|
67
|
+
summary: "A data-driven rule layer maps BOTH aes.x and aes.y (pick one direction).",
|
|
68
|
+
fix: "Keep one direction (vertical: map x; horizontal: map y) and unset the other with null.",
|
|
69
|
+
},
|
|
70
|
+
"rule-form-ambiguous": {
|
|
71
|
+
summary: "A rule layer mixes the annotation form (params.xintercept/yintercept) with mapped aes.x/aes.y.",
|
|
72
|
+
fix: "Use fixed intercepts OR a data mapping, never both (unset the other with null).",
|
|
73
|
+
},
|
|
74
|
+
"rule-form-missing": {
|
|
75
|
+
summary: "A rule layer has neither intercept params nor a mapped aes.x/aes.y — nothing to draw.",
|
|
76
|
+
fix: "Set params.yintercept/xintercept (annotation) or map aes.x/aes.y (data-driven).",
|
|
77
|
+
},
|
|
78
|
+
"scale-type-transform-conflict": {
|
|
79
|
+
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).',
|
|
80
|
+
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.',
|
|
81
|
+
},
|
|
82
|
+
"unknown-field": {
|
|
83
|
+
summary: "A channel maps a field that does not exist in the data.",
|
|
84
|
+
fix: "Map the channel to one of the available fields (the error lists them, with a did-you-mean).",
|
|
85
|
+
},
|
|
86
|
+
"unknown-stat-column": {
|
|
87
|
+
summary: "A { stat } channel names a column the layer's stat does not generate.",
|
|
88
|
+
fix: "Use one of the columns the stat generates (the error lists them), or change the layer's stat.",
|
|
89
|
+
},
|
|
90
|
+
"unsupported-geom-aesthetic": {
|
|
91
|
+
summary: "A mapped style aesthetic is not consumed by the selected geom.",
|
|
92
|
+
fix: "Remove the mapping or move it to one of the compatible geoms listed in the error.",
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=error-prose-shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-prose-shared.js","sourceRoot":"","sources":["../src/error-prose-shared.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,iBAAiB,EAAE;QACjB,OAAO,EAAE,4CAA4C;QACrD,GAAG,EAAE,kEAAkE;KACxE;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,+DAA+D;QACxE,GAAG,EAAE,6DAA6D;KACnE;IACD,uBAAuB,EAAE;QACvB,OAAO,EACL,uIAAuI;QACzI,GAAG,EAAE,kHAAkH;KACxH;IACD,2BAA2B,EAAE;QAC3B,OAAO,EAAE,qFAAqF;QAC9F,GAAG,EAAE,yDAAyD;KAC/D;IACD,mBAAmB,EAAE;QACnB,OAAO,EAAE,iFAAiF;QAC1F,GAAG,EAAE,uFAAuF;KAC7F;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,oFAAoF;QAC7F,GAAG,EAAE,+DAA+D;KACrE;IACD,sBAAsB,EAAE;QACtB,OAAO,EAAE,8DAA8D;QACvE,GAAG,EAAE,0EAA0E;KAChF;IACD,oBAAoB,EAAE;QACpB,OAAO,EAAE,oEAAoE;QAC7E,GAAG,EAAE,kEAAkE;KACxE;IACD,8BAA8B,EAAE;QAC9B,OAAO,EAAE,6EAA6E;QACtF,GAAG,EAAE,oHAAoH;KAC1H;IACD,qBAAqB,EAAE;QACrB,OAAO,EAAE,8CAA8C;QACvD,GAAG,EAAE,8FAA8F;KACpG;IACD,iCAAiC,EAAE;QACjC,OAAO,EAAE,0DAA0D;QACnE,GAAG,EAAE,iFAAiF;KACvF;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,+EAA+E;QACxF,GAAG,EAAE,yGAAyG;KAC/G;IACD,8BAA8B,EAAE;QAC9B,OAAO,EACL,4HAA4H;QAC9H,GAAG,EAAE,mFAAmF;KACzF;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE,0EAA0E;QACnF,GAAG,EAAE,wFAAwF;KAC9F;IACD,qBAAqB,EAAE;QACrB,OAAO,EACL,gGAAgG;QAClG,GAAG,EAAE,iFAAiF;KACvF;IACD,mBAAmB,EAAE;QACnB,OAAO,EACL,uFAAuF;QACzF,GAAG,EAAE,iFAAiF;KACvF;IACD,+BAA+B,EAAE;QAC/B,OAAO,EACL,+KAA+K;QACjL,GAAG,EAAE,mLAAmL;KACzL;IACD,eAAe,EAAE;QACf,OAAO,EAAE,yDAAyD;QAClE,GAAG,EAAE,6FAA6F;KACnG;IACD,qBAAqB,EAAE;QACrB,OAAO,EAAE,uEAAuE;QAChF,GAAG,EAAE,+FAA+F;KACrG;IACD,4BAA4B,EAAE;QAC5B,OAAO,EAAE,gEAAgE;QACzE,GAAG,EAAE,mFAAmF;KACzF;CACkD,CAAC"}
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent-facing error contract (plan: "Validation for agents") + helpers.
|
|
3
|
+
* Every validation diagnostic is a SpecError:
|
|
4
|
+
*
|
|
5
|
+
* { code, path, message, allowed?, fix? }
|
|
6
|
+
*
|
|
7
|
+
* The stable ERROR_CATALOG lives in error-catalog.ts and is re-exported here
|
|
8
|
+
* so package and deep imports keep the ./errors.js path.
|
|
9
|
+
*
|
|
10
|
+
* "Did you mean" suggestions use a small Levenshtein distance so agents get a
|
|
11
|
+
* concrete correction for typo'd geoms/channels/params.
|
|
12
|
+
*/
|
|
13
|
+
import type { JSONValue } from "./portability.js";
|
|
14
|
+
import type { SpecErrorCode } from "./error-catalog.js";
|
|
15
|
+
export { ERROR_CATALOG, ERROR_CODES, type ErrorCatalogEntry, type SpecErrorCode, } from "./error-catalog.js";
|
|
16
|
+
export interface SpecErrorFix {
|
|
17
|
+
description: string;
|
|
18
|
+
example?: JSONValue;
|
|
19
|
+
}
|
|
20
|
+
export interface SpecError {
|
|
21
|
+
code: SpecErrorCode;
|
|
22
|
+
path: string;
|
|
23
|
+
message: string;
|
|
24
|
+
allowed?: string[];
|
|
25
|
+
fix?: SpecErrorFix;
|
|
26
|
+
}
|
|
27
|
+
/** Thrown by builder .spec() / render entry points when validation fails. */
|
|
28
|
+
export declare class SpecValidationError extends Error {
|
|
29
|
+
readonly errors: readonly SpecError[];
|
|
30
|
+
constructor(errors: readonly SpecError[]);
|
|
31
|
+
}
|
|
32
|
+
/** Classic dynamic-programming Levenshtein distance (small inputs only). */
|
|
33
|
+
export declare function levenshtein(a: string, b: string): number;
|
|
34
|
+
/**
|
|
35
|
+
* The closest candidate within an input-length-scaled distance budget
|
|
36
|
+
* (<= max(1, floor(len/3)) edits, case-insensitive), or undefined.
|
|
37
|
+
*/
|
|
38
|
+
export declare function didYouMean(input: string, candidates: readonly string[]): string | undefined;
|
|
39
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EACL,aAAa,EACb,WAAW,EACX,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB;AAED,6EAA6E;AAC7E,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,CAAC;gBAE1B,MAAM,EAAE,SAAS,SAAS,EAAE;CASzC;AAED,4EAA4E;AAC5E,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAiBxD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAY3F"}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export { ERROR_CATALOG, ERROR_CODES, } from "./error-catalog.js";
|
|
2
|
+
/** Thrown by builder .spec() / render entry points when validation fails. */
|
|
3
|
+
export class SpecValidationError extends Error {
|
|
4
|
+
errors;
|
|
5
|
+
constructor(errors) {
|
|
6
|
+
const lines = errors.map((e) => ` [${e.code}] ${e.path || "/"}: ${e.message}`);
|
|
7
|
+
super(`Invalid plot spec (${errors.length} error${errors.length === 1 ? "" : "s"}):\n` +
|
|
8
|
+
lines.join("\n"));
|
|
9
|
+
this.name = "SpecValidationError";
|
|
10
|
+
this.errors = errors;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** Classic dynamic-programming Levenshtein distance (small inputs only). */
|
|
14
|
+
export function levenshtein(a, b) {
|
|
15
|
+
if (a === b)
|
|
16
|
+
return 0;
|
|
17
|
+
const m = a.length;
|
|
18
|
+
const n = b.length;
|
|
19
|
+
if (m === 0)
|
|
20
|
+
return n;
|
|
21
|
+
if (n === 0)
|
|
22
|
+
return m;
|
|
23
|
+
let prev = Array.from({ length: n + 1 }, (_, j) => j);
|
|
24
|
+
let curr = Array.from({ length: n + 1 }, () => 0);
|
|
25
|
+
for (let i = 1; i <= m; i++) {
|
|
26
|
+
curr[0] = i;
|
|
27
|
+
for (let j = 1; j <= n; j++) {
|
|
28
|
+
const cost = a[i - 1] === b[j - 1] ? 0 : 1;
|
|
29
|
+
curr[j] = Math.min(prev[j] + 1, curr[j - 1] + 1, prev[j - 1] + cost);
|
|
30
|
+
}
|
|
31
|
+
[prev, curr] = [curr, prev];
|
|
32
|
+
}
|
|
33
|
+
return prev[n];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The closest candidate within an input-length-scaled distance budget
|
|
37
|
+
* (<= max(1, floor(len/3)) edits, case-insensitive), or undefined.
|
|
38
|
+
*/
|
|
39
|
+
export function didYouMean(input, candidates) {
|
|
40
|
+
const budget = Math.max(1, Math.floor(input.length / 3));
|
|
41
|
+
let best;
|
|
42
|
+
let bestDist = budget + 1;
|
|
43
|
+
for (const candidate of candidates) {
|
|
44
|
+
const d = levenshtein(input.toLowerCase(), candidate.toLowerCase());
|
|
45
|
+
if (d < bestDist) {
|
|
46
|
+
bestDist = d;
|
|
47
|
+
best = candidate;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return best;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,aAAa,EACb,WAAW,GAGZ,MAAM,oBAAoB,CAAC;AAe5B,6EAA6E;AAC7E,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IACnC,MAAM,CAAuB;IAEtC,YAAY,MAA4B;QACtC,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,GAAG,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;QAChF,KAAK,CACH,sBAAsB,MAAM,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM;YAC9E,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CACnB,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,4EAA4E;AAC5E,MAAM,UAAU,WAAW,CAAC,CAAS,EAAE,CAAS;IAC9C,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IACtB,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;IACnB,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;IACnB,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IACtB,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IACtB,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACtD,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;IAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5B,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5B,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3C,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAE,GAAG,IAAI,CAAC,CAAC;QAC1E,CAAC;QACD,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,IAAI,CAAC,CAAC,CAAE,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,UAA6B;IACrE,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;IACzD,IAAI,IAAwB,CAAC;IAC7B,IAAI,QAAQ,GAAG,MAAM,GAAG,CAAC,CAAC;IAC1B,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC;QACpE,IAAI,CAAC,GAAG,QAAQ,EAAE,CAAC;YACjB,QAAQ,GAAG,CAAC,CAAC;YACb,IAAI,GAAG,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED by scripts/gen-reference-catalogs.ts — do not edit by hand.
|
|
3
|
+
* Regenerate: bun run reference:catalogs:gen
|
|
4
|
+
*
|
|
5
|
+
* COORD_REFERENCE — per-coord API docs.
|
|
6
|
+
*/
|
|
7
|
+
export declare const COORD_REFERENCE_DATA: {
|
|
8
|
+
readonly cartesian: {
|
|
9
|
+
readonly name: "cartesian";
|
|
10
|
+
readonly slug: "cartesian";
|
|
11
|
+
readonly component: "CoordCartesian";
|
|
12
|
+
readonly typeLiteral: "cartesian";
|
|
13
|
+
readonly schemaType: "CoordCartesianSpec";
|
|
14
|
+
readonly helper: "";
|
|
15
|
+
readonly helperAlias: "";
|
|
16
|
+
readonly alsoHelpers: readonly [];
|
|
17
|
+
readonly alsoExportedAs: readonly [];
|
|
18
|
+
readonly builderMethods: readonly ["coord"];
|
|
19
|
+
readonly summary: "Default Cartesian coordinates. Omit coord or use CoordCartesian to clear a prior REPLACE-family coord; normalize() drops bare { type: \"cartesian\" }.";
|
|
20
|
+
readonly params: readonly [];
|
|
21
|
+
readonly axisParams: readonly [];
|
|
22
|
+
};
|
|
23
|
+
readonly flip: {
|
|
24
|
+
readonly name: "flip";
|
|
25
|
+
readonly slug: "flip";
|
|
26
|
+
readonly component: "CoordFlip";
|
|
27
|
+
readonly typeLiteral: "flip";
|
|
28
|
+
readonly schemaType: "CoordCartesianSpec";
|
|
29
|
+
readonly helper: "";
|
|
30
|
+
readonly helperAlias: "";
|
|
31
|
+
readonly alsoHelpers: readonly [];
|
|
32
|
+
readonly alsoExportedAs: readonly [];
|
|
33
|
+
readonly builderMethods: readonly ["coordFlip", "coord"];
|
|
34
|
+
readonly summary: "Swap display axes so semantic x paints vertically and y horizontally. The mechanism for horizontal bar charts; stack, dodge, and hit-testing follow the flip.";
|
|
35
|
+
readonly params: readonly [];
|
|
36
|
+
readonly axisParams: readonly [];
|
|
37
|
+
};
|
|
38
|
+
readonly transform: {
|
|
39
|
+
readonly name: "transform";
|
|
40
|
+
readonly slug: "transform";
|
|
41
|
+
readonly component: "CoordTransform";
|
|
42
|
+
readonly typeLiteral: "transform";
|
|
43
|
+
readonly schemaType: "CoordTransformSpec";
|
|
44
|
+
readonly helper: "coordTransform";
|
|
45
|
+
readonly helperAlias: "coord_transform";
|
|
46
|
+
readonly alsoHelpers: readonly [];
|
|
47
|
+
readonly alsoExportedAs: readonly [];
|
|
48
|
+
readonly builderMethods: readonly ["coordTransform", "coord"];
|
|
49
|
+
readonly summary: "Post-stat coordinate projection with independent x/y transforms (identity, log10, sqrt), semantic viewport limits, reverse, and panel clipping. Distinct from pre-stat scale transforms.";
|
|
50
|
+
readonly params: readonly [{
|
|
51
|
+
readonly name: "x";
|
|
52
|
+
readonly description: "Optional x-axis projector: transform, semantic limits, reverse, and expand. Accepts a transform name string or an axis options object on the helper/shell.";
|
|
53
|
+
readonly typeSummary: "CoordTransformAxisSpec";
|
|
54
|
+
readonly required: false;
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "y";
|
|
57
|
+
readonly description: "Optional y-axis projector: transform, semantic limits, reverse, and expand. Accepts a transform name string or an axis options object on the helper/shell.";
|
|
58
|
+
readonly typeSummary: "CoordTransformAxisSpec";
|
|
59
|
+
readonly required: false;
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "clip";
|
|
62
|
+
readonly description: "Clip marks to the panel rectangle (default true). Set false only when intentional overflow should remain visible.";
|
|
63
|
+
readonly typeSummary: "boolean";
|
|
64
|
+
readonly required: false;
|
|
65
|
+
}];
|
|
66
|
+
readonly axisParams: readonly [{
|
|
67
|
+
readonly name: "transform";
|
|
68
|
+
readonly description: "Post-stat coordinate transform for this axis: identity, base-10 logarithm, or square root.";
|
|
69
|
+
readonly typeSummary: "\"identity\" | \"log10\" | \"sqrt\"";
|
|
70
|
+
readonly required: true;
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "limits";
|
|
73
|
+
readonly description: "Optional coordinate viewport [min, max] in semantic/source units. Exactly two numbers. Unlike scale limits, coordinate limits do not remove rows or recompute statistics.";
|
|
74
|
+
readonly typeSummary: "[number, number]";
|
|
75
|
+
readonly required: false;
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "reverse";
|
|
78
|
+
readonly description: "Reverse this coordinate axis after its transform without changing stat inputs or the trained semantic scale domain.";
|
|
79
|
+
readonly typeSummary: "boolean";
|
|
80
|
+
readonly required: false;
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "expand";
|
|
83
|
+
readonly description: "Whether explicit coordinate limits receive the default 5% transformed-space display expansion (default true). Set false for exact viewport limits.";
|
|
84
|
+
readonly typeSummary: "boolean";
|
|
85
|
+
readonly required: false;
|
|
86
|
+
}];
|
|
87
|
+
};
|
|
88
|
+
readonly fixed: {
|
|
89
|
+
readonly name: "fixed";
|
|
90
|
+
readonly slug: "fixed";
|
|
91
|
+
readonly component: "CoordFixed";
|
|
92
|
+
readonly typeLiteral: "fixed";
|
|
93
|
+
readonly schemaType: "CoordFixedSpec";
|
|
94
|
+
readonly helper: "coordFixed";
|
|
95
|
+
readonly helperAlias: "coord_fixed";
|
|
96
|
+
readonly alsoHelpers: readonly ["coordEqual", "coord_equal"];
|
|
97
|
+
readonly alsoExportedAs: readonly ["CoordEqual"];
|
|
98
|
+
readonly builderMethods: readonly ["coordFixed", "coordEqual", "coord"];
|
|
99
|
+
readonly summary: "Fixed physical data-unit aspect ratio (y-unit length / x-unit length). Layout fits the largest centered data rectangle after chart chrome; rejects free positional facet scales.";
|
|
100
|
+
readonly params: readonly [{
|
|
101
|
+
readonly name: "ratio";
|
|
102
|
+
readonly description: "Physical y-unit length divided by physical x-unit length (default 1, equal units).";
|
|
103
|
+
readonly typeSummary: "number";
|
|
104
|
+
readonly required: false;
|
|
105
|
+
}];
|
|
106
|
+
readonly axisParams: readonly [];
|
|
107
|
+
};
|
|
108
|
+
readonly sf: {
|
|
109
|
+
readonly name: "sf";
|
|
110
|
+
readonly slug: "sf";
|
|
111
|
+
readonly component: "CoordSf";
|
|
112
|
+
readonly typeLiteral: "sf";
|
|
113
|
+
readonly schemaType: "CoordSfSpec";
|
|
114
|
+
readonly helper: "coordSf";
|
|
115
|
+
readonly helperAlias: "coord_sf";
|
|
116
|
+
readonly alsoHelpers: readonly [];
|
|
117
|
+
readonly alsoExportedAs: readonly [];
|
|
118
|
+
readonly builderMethods: readonly ["coordSf", "coord"];
|
|
119
|
+
readonly summary: "Fixed-aspect coordinates for already-projected geom_sf maps. Same layout as fixed; no CRS reproject or graticules in v1 — data must already be in plot space.";
|
|
120
|
+
readonly params: readonly [{
|
|
121
|
+
readonly name: "ratio";
|
|
122
|
+
readonly description: "Physical y-unit length divided by physical x-unit length (default 1, equal projected units).";
|
|
123
|
+
readonly typeSummary: "number";
|
|
124
|
+
readonly required: false;
|
|
125
|
+
}];
|
|
126
|
+
readonly axisParams: readonly [];
|
|
127
|
+
};
|
|
128
|
+
readonly radial: {
|
|
129
|
+
readonly name: "radial";
|
|
130
|
+
readonly slug: "radial";
|
|
131
|
+
readonly component: "CoordRadial";
|
|
132
|
+
readonly typeLiteral: "radial";
|
|
133
|
+
readonly schemaType: "CoordRadialSpec";
|
|
134
|
+
readonly helper: "coordRadial";
|
|
135
|
+
readonly helperAlias: "coord_radial";
|
|
136
|
+
readonly alsoHelpers: readonly ["coordPolar", "coord_polar"];
|
|
137
|
+
readonly alsoExportedAs: readonly [];
|
|
138
|
+
readonly builderMethods: readonly ["coordRadial", "coordPolar", "coord"];
|
|
139
|
+
readonly summary: "Polar/radial coordinates (ggplot2 coord_radial). Maps one aesthetic to angle and the other to radius for pie charts, coxcombs, and polar scatter. coord_polar is a helper alias with clip on.";
|
|
140
|
+
readonly params: readonly [{
|
|
141
|
+
readonly name: "theta";
|
|
142
|
+
readonly description: "Which aesthetic maps to angle: \"x\" (default) or \"y\". The other aesthetic maps to radius. Pie charts use theta: \"y\".";
|
|
143
|
+
readonly typeSummary: "\"x\" | \"y\"";
|
|
144
|
+
readonly required: false;
|
|
145
|
+
}, {
|
|
146
|
+
readonly name: "start";
|
|
147
|
+
readonly description: "Offset of the starting angle from 12 o'clock, in radians (default 0). Positive angles proceed clockwise when reverse does not flip theta.";
|
|
148
|
+
readonly typeSummary: "number";
|
|
149
|
+
readonly required: false;
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "end";
|
|
152
|
+
readonly description: "Angle where the plot ends, in radians measured from 12 o'clock. Default is start + 2π (full circle). Use with start for partial polar plots.";
|
|
153
|
+
readonly typeSummary: "number";
|
|
154
|
+
readonly required: false;
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "innerRadius";
|
|
157
|
+
readonly description: "Size of the inner radius hole as a fraction of the outer radius (0–1, default 0). Values above 0 produce a donut.";
|
|
158
|
+
readonly typeSummary: "number";
|
|
159
|
+
readonly required: false;
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "expand";
|
|
162
|
+
readonly description: "When true (default), add a small expansion so data does not sit on the axes. When false, limits come directly from the scale (typical for pie/coxcomb).";
|
|
163
|
+
readonly typeSummary: "boolean";
|
|
164
|
+
readonly required: false;
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "clip";
|
|
167
|
+
readonly description: "Clip marks to the panel. ggplot2 coord_radial defaults to clip off; coord_polar defaults to clip on. ggts stores the effective boolean (default false for type \"radial\").";
|
|
168
|
+
readonly typeSummary: "boolean";
|
|
169
|
+
readonly required: false;
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "reverse";
|
|
172
|
+
readonly description: "Which directions to reverse: \"none\" (default), \"theta\", \"r\", or \"thetar\" (both). coord_polar(direction = -1) maps to reverse: \"theta\".";
|
|
173
|
+
readonly typeSummary: "\"none\" | \"theta\" | \"r\" | \"thetar\"";
|
|
174
|
+
readonly required: false;
|
|
175
|
+
}, {
|
|
176
|
+
readonly name: "thetaLimits";
|
|
177
|
+
readonly description: "Optional [min, max] limits for the theta (angle) aesthetic in semantic units. Exactly two numbers.";
|
|
178
|
+
readonly typeSummary: "[number, number]";
|
|
179
|
+
readonly required: false;
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "rLimits";
|
|
182
|
+
readonly description: "Optional [min, max] limits for the radius aesthetic in semantic units. Exactly two numbers.";
|
|
183
|
+
readonly typeSummary: "[number, number]";
|
|
184
|
+
readonly required: false;
|
|
185
|
+
}];
|
|
186
|
+
readonly axisParams: readonly [];
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
//# sourceMappingURL=coord-reference-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coord-reference-data.d.ts","sourceRoot":"","sources":["../../src/generated/coord-reference-data.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoOvB,CAAC"}
|