@opendata-ai/openchart-core 8.0.0-rc.23 → 8.0.0-rc.25

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/dist/index.d.ts CHANGED
@@ -502,7 +502,15 @@ interface MarkDef {
502
502
  endAngle?: number;
503
503
  /** Corner radius for rect/bar marks. 'pill' sets rx to half the bar thickness. */
504
504
  cornerRadius?: number | 'pill';
505
- /** Fixed bar thickness in pixels for bar/column marks. When set, bars are this height (horizontal) or width (vertical), centered within the band. */
505
+ /**
506
+ * Bar/column marks: fixed bar thickness in pixels. When set, bars are this
507
+ * height (horizontal) or width (vertical), centered within the band.
508
+ *
509
+ * Point marks: the dot RADIUS in pixels (default 5, typical 2-12). This is
510
+ * NOT Vega-Lite's point `size`, which is an area in px^2 -- a VL size of
511
+ * 110 corresponds to `size: 6` here (r = sqrt(area / pi)). Validation
512
+ * rejects values above 50 with the conversion.
513
+ */
506
514
  size?: number;
507
515
  /** Whether the mark is filled (vs stroked only). */
508
516
  filled?: boolean;
@@ -563,25 +571,6 @@ interface MarkDef {
563
571
  * - `'none'` (default): solid fills only.
564
572
  */
565
573
  fillPattern?: 'auto' | 'none';
566
- /**
567
- * Rendering backend for point marks. High-cardinality scatter plots draw
568
- * thousands of SVG circles, which is what makes their entrance and update
569
- * transitions stutter; a canvas layer draws the same dots in a handful of
570
- * batched paint calls.
571
- *
572
- * - `'auto'` (default): canvas above 1,000 compiled point marks, SVG below.
573
- * - `'svg'`: always SVG, whatever the point count.
574
- * - `'canvas'`: always canvas, whatever the point count.
575
- *
576
- * Canvas mode trades per-mark keyboard focus and edit-mode point selection
577
- * (the screen-reader data table still carries every row), and draws the
578
- * trendline above the dots even when `trendline.layer` is `'below'`.
579
- * Tooltips, hover, and click callbacks work the same in both modes.
580
- *
581
- * Ignored with a console warning for non-point marks, and for faceted,
582
- * layered, and sparkline charts.
583
- */
584
- render?: 'auto' | 'svg' | 'canvas';
585
574
  /**
586
575
  * Visual style for range marks. Only meaningful when `type` is `'range'`.
587
576
  * - 'dumbbell' (default): a dot at each end joined by a connector line.
@@ -949,9 +938,13 @@ interface Encoding<TData extends DataRow = DataRow> {
949
938
  */
950
939
  color?: EncodingChannel<TData> | ConditionalValueDef<TData> | ValueDef;
951
940
  /**
952
- * Size channel. Used by point/bubble charts to scale dot area by a quantitative field.
953
- * Accepts a conditional definition to vary size based on data predicates,
954
- * or a bare `{ value }` constant (VL aligned; expanded to `mark.size`).
941
+ * Size channel. Used by point/bubble charts to scale dots by a quantitative
942
+ * field, area-proportionally (sqrt curve). The units are dot RADII in px:
943
+ * `scale.range` defaults to [3, 30] for scatter, and a bare `{ value }`
944
+ * constant expands to `mark.size`, also a radius. This differs from
945
+ * Vega-Lite, where point size is an area in px^2 -- VL-scale values
946
+ * (60-900) are rejected by validation with the conversion.
947
+ * Accepts a conditional definition to vary size based on data predicates.
955
948
  */
956
949
  size?: EncodingChannel<TData> | ConditionalValueDef<TData> | ValueDef;
957
950
  /**
@@ -2681,32 +2674,32 @@ interface TileMapSpec {
2681
2674
  valueFormat?: string;
2682
2675
  }
2683
2676
  /** Supported map projections. */
2684
- type MapProjection = 'albersUsa' | 'mercator' | 'equalEarth' | 'identity';
2677
+ type GeoMapProjection = 'albersUsa' | 'mercator' | 'equalEarth' | 'identity';
2685
2678
  /** Focus target for map camera: feature id(s) to zoom/pan to. */
2686
2679
  /**
2687
2680
  * Fit the point layer's cluster. `true` fits every point; `{ field, value }`
2688
2681
  * fits only the points whose data row has `row[field] === value` (e.g. only the
2689
2682
  * campuses rated "F"), which lets a story pan between sub-clusters.
2690
2683
  */
2691
- type MapPointsFocus = true | {
2684
+ type GeoMapPointsFocus = true | {
2692
2685
  field: string;
2693
2686
  value: string | number;
2694
2687
  };
2695
- type MapFocus = string | number | Array<string | number> | {
2688
+ type GeoMapFocus = string | number | Array<string | number> | {
2696
2689
  features: string | number | Array<string | number>;
2697
2690
  padding?: number;
2698
2691
  } | {
2699
- points: MapPointsFocus;
2692
+ points: GeoMapPointsFocus;
2700
2693
  padding?: number;
2701
2694
  };
2702
2695
  /** Geo configuration for map specs. */
2703
- interface MapGeo {
2696
+ interface GeoMapGeo {
2704
2697
  /** TopoJSON topology object. User imports this from us-atlas, world-atlas, or their own source. */
2705
2698
  features: unknown;
2706
2699
  /** Field in the TopoJSON feature properties to use as the join key. Defaults to 'id'. */
2707
2700
  idField?: string;
2708
2701
  /** Map projection. Defaults to 'albersUsa'. */
2709
- projection?: MapProjection;
2702
+ projection?: GeoMapProjection;
2710
2703
  /**
2711
2704
  * Focus the camera. A feature id (or array) fits those features; `{ features, padding }`
2712
2705
  * adds breathing room; `{ points: true, padding }` fits the points layer's cluster
@@ -2715,10 +2708,10 @@ interface MapGeo {
2715
2708
  * `{ points: { field, value }, padding }` fits only the matching point subset, so a
2716
2709
  * story can pan between sub-clusters. null clears focus from a prior story step.
2717
2710
  */
2718
- focus?: MapFocus | null;
2711
+ focus?: GeoMapFocus | null;
2719
2712
  }
2720
2713
  /** Encoding channels specific to map visualizations. */
2721
- interface MapEncoding {
2714
+ interface GeoMapEncoding {
2722
2715
  /** Join key field in the data. Required for choropleth; optional in basemap-only mode (points layer with empty data). */
2723
2716
  key?: EncodingChannel;
2724
2717
  /** Color encoding (quantitative or nominal). Drives fill color of features. Optional when a points layer is present (basemap-only mode). */
@@ -2727,7 +2720,7 @@ interface MapEncoding {
2727
2720
  tooltip?: EncodingChannel | EncodingChannel[];
2728
2721
  }
2729
2722
  /** Point/symbol layer rendered above choropleth features. */
2730
- interface MapPointsLayer {
2723
+ interface GeoMapPointsLayer {
2731
2724
  /** Tabular data for the points. Independent of the choropleth data join. */
2732
2725
  data: DataRow[];
2733
2726
  /** Field holding longitude (x coordinate). */
@@ -2738,22 +2731,22 @@ interface MapPointsLayer {
2738
2731
  size?: EncodingChannel;
2739
2732
  /** Optional color encoding (nominal or quantitative). Independent scale from choropleth. */
2740
2733
  color?: EncodingChannel;
2741
- /** Tooltip channel(s), same shape as MapEncoding.tooltip. */
2734
+ /** Tooltip channel(s), same shape as GeoMapEncoding.tooltip. */
2742
2735
  tooltip?: EncodingChannel | EncodingChannel[];
2743
2736
  /** Stable id for event callbacks. Data-update transitions for points are not yet supported. */
2744
2737
  key?: EncodingChannel;
2745
2738
  /** Fill opacity for point circles. Default 0.65. Range 0-1. */
2746
2739
  opacity?: number;
2747
2740
  }
2748
- interface MapSpec {
2741
+ interface GeoMapSpec {
2749
2742
  /** Discriminant: always "map". */
2750
2743
  type: 'map';
2751
2744
  /** Geo configuration: TopoJSON features, join key, and projection. */
2752
- geo: MapGeo;
2745
+ geo: GeoMapGeo;
2753
2746
  /** Tabular data to join to geo features. */
2754
2747
  data: DataRow[];
2755
2748
  /** Encoding channels mapping data fields to visual properties. */
2756
- encoding: MapEncoding;
2749
+ encoding: GeoMapEncoding;
2757
2750
  /** Editorial chrome (title, subtitle, source, byline, footer). */
2758
2751
  chrome?: Chrome;
2759
2752
  /** Legend display configuration. */
@@ -2765,7 +2758,7 @@ interface MapSpec {
2765
2758
  /** Whether to show the tryOpenData.ai watermark. Defaults to true. */
2766
2759
  watermark?: boolean;
2767
2760
  /** Optional point/symbol layer rendered above choropleth features. */
2768
- points?: MapPointsLayer;
2761
+ points?: GeoMapPointsLayer;
2769
2762
  /** Animation configuration for entrance animations. */
2770
2763
  animation?: AnimationSpec;
2771
2764
  /**
@@ -2830,7 +2823,7 @@ interface BarListEncoding {
2830
2823
  * - GraphSpec: has `type: 'graph'`
2831
2824
  * - SankeySpec: has `type: 'sankey'`
2832
2825
  * - TileMapSpec: has `type: 'tilemap'`
2833
- * - MapSpec: has `type: 'map'`
2826
+ * - GeoMapSpec: has `type: 'map'`
2834
2827
  * - BarListSpec: has `type: 'barlist'`
2835
2828
  *
2836
2829
  * Election parliament (hemicycle) charts are `ChartSpec` with `mark:
@@ -2840,7 +2833,7 @@ interface BarListEncoding {
2840
2833
  * for free instead of a second bespoke compile path (see
2841
2834
  * `packages/engine/src/charts/parliament/`).
2842
2835
  */
2843
- type VizSpec = ChartSpec | LayerSpec | TableSpec | GraphSpec | SankeySpec | TileMapSpec | MapSpec | BarListSpec;
2836
+ type VizSpec = ChartSpec | LayerSpec | TableSpec | GraphSpec | SankeySpec | TileMapSpec | GeoMapSpec | BarListSpec;
2844
2837
  /**
2845
2838
  * Chart spec without runtime data, for persistence/storage.
2846
2839
  * Generic: `ChartSpecWithoutData<MyRow>` constrains encoding field names.
@@ -2855,13 +2848,13 @@ type SankeySpecWithoutData = Omit<SankeySpec, 'data'>;
2855
2848
  /** TileMap spec without runtime data, for persistence/storage. */
2856
2849
  type TileMapSpecWithoutData = Omit<TileMapSpec, 'data'>;
2857
2850
  /** Map spec without runtime data, for persistence/storage. */
2858
- type MapSpecWithoutData = Omit<MapSpec, 'data' | 'points'> & {
2859
- points?: Omit<MapPointsLayer, 'data'>;
2851
+ type GeoMapSpecWithoutData = Omit<GeoMapSpec, 'data' | 'points'> & {
2852
+ points?: Omit<GeoMapPointsLayer, 'data'>;
2860
2853
  };
2861
2854
  /** BarList spec without runtime data, for persistence/storage. */
2862
2855
  type BarListSpecWithoutData = Omit<BarListSpec, 'data'>;
2863
2856
  /** Union of data-stripped spec types for persistence/storage. */
2864
- type StoredVizSpec = ChartSpecWithoutData | TableSpecWithoutData | GraphSpecWithoutData | SankeySpecWithoutData | TileMapSpecWithoutData | MapSpecWithoutData | BarListSpecWithoutData;
2857
+ type StoredVizSpec = ChartSpecWithoutData | TableSpecWithoutData | GraphSpecWithoutData | SankeySpecWithoutData | TileMapSpecWithoutData | GeoMapSpecWithoutData | BarListSpecWithoutData;
2865
2858
  /** Logical AND combinator for filter predicates. */
2866
2859
  interface LogicalAnd<T> {
2867
2860
  and: T[];
@@ -3090,8 +3083,8 @@ declare function isSankeySpec(spec: VizSpec | Record<string, unknown>): spec is
3090
3083
  declare function isTileMapSpec(spec: VizSpec | Record<string, unknown>): spec is TileMapSpec;
3091
3084
  /** Check if a spec is a BarListSpec. */
3092
3085
  declare function isBarListSpec(spec: VizSpec | Record<string, unknown>): spec is BarListSpec;
3093
- /** Check if a spec is a MapSpec. */
3094
- declare function isMapSpec(spec: VizSpec | Record<string, unknown>): spec is MapSpec;
3086
+ /** Check if a spec is a GeoMapSpec. */
3087
+ declare function isGeoMapSpec(spec: VizSpec | Record<string, unknown>): spec is GeoMapSpec;
3095
3088
  /** Check if an annotation is a TextAnnotation. */
3096
3089
  declare function isTextAnnotation(annotation: Annotation): annotation is TextAnnotation;
3097
3090
  /** Check if an annotation is a RangeAnnotation. */
@@ -5001,7 +4994,7 @@ interface CompileWarning {
5001
4994
  context?: Record<string, unknown>;
5002
4995
  }
5003
4996
  /** Resolved focus target for map camera framing. */
5004
- interface MapFocusLayout {
4997
+ interface GeoMapFocusLayout {
5005
4998
  target: {
5006
4999
  x: number;
5007
5000
  y: number;
@@ -5012,7 +5005,7 @@ interface MapFocusLayout {
5012
5005
  ids: Array<string | number>;
5013
5006
  }
5014
5007
  /** A resolved map feature mark with computed SVG path and fill. */
5015
- interface MapFeatureMark {
5008
+ interface GeoMapFeatureMark {
5016
5009
  type: 'map-feature';
5017
5010
  /** SVG path `d` attribute for this feature's shape. */
5018
5011
  path: string;
@@ -5043,7 +5036,7 @@ interface MapFeatureMark {
5043
5036
  centroid: [number, number];
5044
5037
  }
5045
5038
  /** A resolved map point mark with projected coordinates and visual properties. */
5046
- interface MapPointMark {
5039
+ interface GeoMapPointMark {
5047
5040
  type: 'map-point';
5048
5041
  /** Projected center x in map-local coordinates. */
5049
5042
  cx: number;
@@ -5069,7 +5062,7 @@ interface MapPointMark {
5069
5062
  animationIndex: number;
5070
5063
  }
5071
5064
  /** Border paths for the map (interior borders and coastline/outline). */
5072
- interface MapBorders {
5065
+ interface GeoMapBorders {
5073
5066
  /** SVG path `d` for interior borders between features. */
5074
5067
  interiorPath: string;
5075
5068
  /** SVG path `d` for the outer boundary / coastline. */
@@ -5080,23 +5073,23 @@ interface MapBorders {
5080
5073
  outlineStroke: string;
5081
5074
  }
5082
5075
  /**
5083
- * MapLayout: the complete engine output for map visualizations.
5076
+ * GeoMapLayout: the complete engine output for map visualizations.
5084
5077
  *
5085
5078
  * Contains everything an adapter needs to render the map: dimensions,
5086
5079
  * chrome, feature paths, borders, legend, tooltip descriptors, and
5087
5080
  * accessibility metadata.
5088
5081
  */
5089
- interface MapLayout {
5082
+ interface GeoMapLayout {
5090
5083
  /** The map drawing area (after chrome and legend are subtracted). */
5091
5084
  area: Rect;
5092
5085
  /** Resolved chrome text elements with positions and styles. */
5093
5086
  chrome: ResolvedChrome;
5094
5087
  /** Resolved feature marks with paths, fills, and joined data. */
5095
- features: MapFeatureMark[];
5088
+ features: GeoMapFeatureMark[];
5096
5089
  /** Border paths (interior mesh and outline). */
5097
- borders: MapBorders;
5090
+ borders: GeoMapBorders;
5098
5091
  /** Resolved point marks for the symbol layer (empty array if no points layer). */
5099
- pointMarks: MapPointMark[];
5092
+ pointMarks: GeoMapPointMark[];
5100
5093
  /** Categorical legend for the point color channel (null if no point color). */
5101
5094
  pointCategoricalLegend: CategoricalLegendLayout | null;
5102
5095
  /** Continuous legend for the point color channel (null if no point color). */
@@ -5129,7 +5122,7 @@ interface MapLayout {
5129
5122
  height: number;
5130
5123
  };
5131
5124
  /** Resolved focus target for camera framing (null if no focus). */
5132
- focus: MapFocusLayout | null;
5125
+ focus: GeoMapFocusLayout | null;
5133
5126
  }
5134
5127
  /** A resolved bar list row with computed positions and visual properties. */
5135
5128
  interface BarListRowMark {
@@ -5238,6 +5231,26 @@ interface CompileOptions {
5238
5231
  * before calling compile. The engine always receives a resolved boolean.
5239
5232
  */
5240
5233
  darkMode?: boolean;
5234
+ /**
5235
+ * Rendering backend for point marks, mirroring vega-embed's `renderer`
5236
+ * embed option: backend choice is host policy, not part of the spec.
5237
+ * High-cardinality scatter plots draw thousands of SVG circles, which is
5238
+ * what makes their entrance and update transitions stutter; a canvas layer
5239
+ * draws the same dots in a handful of batched paint calls.
5240
+ *
5241
+ * - `'auto'` (default): canvas above 1,000 compiled point marks, SVG below.
5242
+ * - `'svg'`: always SVG, whatever the point count.
5243
+ * - `'canvas'`: always canvas, whatever the point count.
5244
+ *
5245
+ * Canvas mode trades per-mark keyboard focus and edit-mode point selection
5246
+ * (the screen-reader data table still carries every row), and draws the
5247
+ * trendline above the dots even when `trendline.layer` is `'below'`.
5248
+ * Tooltips, hover, and click callbacks work the same in both modes.
5249
+ *
5250
+ * Ignored with a console warning for non-point marks, and for faceted,
5251
+ * layered, and sparkline charts.
5252
+ */
5253
+ renderer?: 'auto' | 'svg' | 'canvas';
5241
5254
  /** Whether to show the tryOpenData.ai watermark. Defaults to true. */
5242
5255
  watermark?: boolean;
5243
5256
  /**
@@ -6271,4 +6284,4 @@ declare const CSS_TOKEN_ROOT_SELECTORS: readonly string[];
6271
6284
  declare const CSS_TOKENS: readonly CssTokenDef[];
6272
6285
  declare function cssTokenDefault(name: string, mode: 'light' | 'dark'): string;
6273
6286
 
6274
- export { type A11yConfig, type A11yMetadata, ACHROMATIC_RAMP, AXIS_TITLE_GAP, AXIS_TITLE_OFFSET_COMPACT, AXIS_TITLE_OFFSET_DEFAULT, AXIS_TITLE_TRAILING_PAD, type AggregateOp, type AggregateTransform, type AnimationConfig, type AnimationEase, type AnimationPhaseConfig, type AnimationSpec, type AnimationStagger, type Annotation, type AnnotationAnchor, type AnnotationFootnote, type AnnotationOffset, type AnnotationPosition, type ArcEncoding, type ArcMark, type AreaEncoding, type AreaMark, type AxisConfig, type AxisLabelDensity, type AxisLayout, type AxisTick, BRAND_FONT_SIZE, BRAND_MIN_WIDTH, BRAND_RESERVE_WIDTH, BREAKPOINT_COMPACT_MAX, BREAKPOINT_MEDIUM_MAX, type BarColumnConfig, type BarEncoding, type BarListEncoding, type BarListLayout, type BarListRowMark, type BarListSpec, type BarListSpecWithoutData, type BarTableCell, type BaseLegendLayout, type BeeswarmEncoding, type BinParams, type BinTransform, type Breakpoint, CATEGORICAL_PALETTE, COMPACT_WIDTH, CSS_TOKENS, CSS_TOKEN_ROOT_SELECTORS, type CalculateExpression, type CalculateTransform, type CalendarEncoding, type CategoricalLegendLayout, type CategoricalPalette, type CategoryColorsConfig, type CategoryTableCell, type CellStyle, type ChannelRule, type ChartBuilderOptions, type ChartEventHandlers, type ChartLayout, type ChartSpec, type ChartSpecOverride, type ChartSpecWithoutData, type Chrome, type ChromeDefaults, type ChromeKey, type ChromeMode, type ChromeText, type ChromeTextStyle, type ChromeThemeOverride, type CircleEncoding, type ColorBlindnessType, type ColumnConfig, type CompileOptions, type CompileTableOptions, type CompileWarning, type Condition, type ConditionalValueDef, type ConnectorConfig, type ConnectorType, type ContinuousLegendBin, type ContinuousLegendLayout, type ContinuousLegendTick, type CssTokenDef, DEFAULT_THEME, DIVERGING_PALETTES, type DarkMode, type DataRow, type DateGranularity, type Display, type DivergingPalette, EXTENDED_OFFSET_STRATEGIES, type ElementEdit, type ElementRef, type Encoding, type EncodingChannel, type EncodingRule, type EndpointLabelContent, type EndpointLabelEntry, type EndpointLabelsConfig, type EndpointLabelsLayout, FOOTNOTE_LINE_HEIGHT, type FacetChannel, type FacetLayout, type FacetPanelLayout, type FieldFormatContext, type FieldPredicate, type FieldRef, type FieldType, type FillPatternType, type FilterPredicate, type FilterTransform, type FlagTableCell, type FoldTransform, GRAPH_ENCODING_RULES, type GradientColorStop, type GradientDef, type GradientLegendLayout, type GradientStop, type GraphAnimationConfig, type GraphAnimationSpec, type GraphChannelRule, type GraphEdge, type GraphEdgeLayout, type GraphEncoding, type GraphEncodingChannel, type GraphInteractionConfig, type GraphLayout, type GraphLayoutConfig, type GraphNode, type GraphNodeLayout, type GraphSpec, type GraphSpecWithoutData, type Gridline, HEIGHT_CRAMPED_MAX, HEIGHT_SHORT_MAX, HPAD_COMPACT_FRACTION, HPAD_COMPACT_MIN, type HeatmapColumnConfig, type HeatmapTableCell, type HeightClass, type ImageColumnConfig, type ImageTableCell, LABEL_GAP_COMPACT, LABEL_GAP_DEFAULT, LABEL_GAP_NARROW_MAX, type LabelCandidate, type LabelConfig, type LabelDensity, type LabelMode, type LabelPriority, type LabelSpec, type LayerSpec, type LayoutStrategy, type LegendChannel, type LegendConfig, type LegendEntry, type LegendEntryPosition, type LegendLayout, type LegendPosition, type LineEncoding, type LineMark, type LinearGradient, type LogicalAnd, type LogicalNot, type LogicalOr, type LollipopEncoding, MARK_DISPLAY_NAMES, MARK_ENCODING_RULES, MARK_TYPES, MAX_LEFT_LABEL_FRACTION_COMPACT, MAX_LEFT_LABEL_FRACTION_DEFAULT, MAX_LEFT_LABEL_FRACTION_MEDIUM, MAX_LEFT_LABEL_FRACTION_MEDIUM_MAX, MAX_SR_TABLE_ROWS, type MapBorders, type MapEncoding, type MapFeatureMark, type MapFocus, type MapFocusLayout, type MapGeo, type MapLayout, type MapPointMark, type MapPointsLayer, type MapProjection, type MapSpec, type MapSpecWithoutData, type Margins, type Mark, type MarkAria, type MarkDef, type MarkEvent, type MarkType, type MeasureTextFn, type Metric, NARROW_VIEWPORT_MAX, type NodeOverride, type NumberFormatter, OFFSET_STRATEGIES, type OffsetStrategy, type PaginationState, type ParliamentEncoding, type Point, type PointEncoding, type PointMark, type RadialGradient, type RangeAnnotation, type RangeEncoding, type Rect, type RectEncoding, type RectMark, type RefLineAnnotation, type RelativeTimeRef, type ResolveConfig, type ResolveMode, type ResolvedAnimation, type ResolvedAnimationPhase, type ResolvedAnnotation, type ResolvedChrome, type ResolvedChromeElement, type ResolvedColumn, type ResolvedFillPattern, type ResolvedLabel, type ResolvedMetricBar, type ResolvedMetricCell, type ResolvedSeriesSearch, type ResolvedTheme, type ResolvedYouDrawIt, type ResponsiveConfig, type RuleMarkLayout, SEQUENTIAL_PALETTES, SUPPORTED_SCHEME_NAMES, type SankeyEncoding, type SankeyLayout, type SankeyLinkColor, type SankeyLinkMark, type SankeyNodeAlign, type SankeyNodeMark, type SankeySpec, type SankeySpecWithoutData, type ScaleConfig, type ScaleInvert, type ScaleType, type SequentialPalette, type SeriesSearchConfig, type SeriesStrategy, type SeriesStyle, type SizeLegendCircle, type SizeLegendLayout, type SortByField, type SortState, type SparklineColumnConfig, type SparklineData, type SparklineTableCell, type StoredVizSpec, TICK_LABEL_OFFSET, TICK_LINE_HEIGHT_FACTOR, TOP_PAD_EXTRA_NARROW, TOP_PAD_NARROW_MAX, type TableBuilderOptions, type TableCell, type TableCellBase, type TableLayout, type TableRow, type TableSpec, type TableSpecWithoutData, type TextAnnotation, type TextEncoding, type TextMarkLayout, type TextStyle, type TextTableCell, type Theme, type ThemeChromeDefaults, type ThemeColors, type ThemeConfig, type ThemeFontSizes, type ThemeFontWeights, type ThemeFonts, type ThemeSpacing, type TickEncoding, type TickMarkLayout, type TileMapBuilderOptions, type TileMapEncoding, type TileMapLayout, type TileMapPalette, type TileMapSpec, type TileMapSpecWithoutData, type TileMapTileMark, type TimeUnit, type TimeUnitTransform, type TokenValue, type TooltipContent, type TooltipField, type Transform, type UpdatePhaseConfig, type ValueDef, type VizSpec, type WaffleEncoding, type WindowFieldDef, type WindowOp, type WindowSortField, type WindowTransform, type XAxisExtentInput, X_AXIS_BAND_HEIGHT, X_AXIS_ROTATED_EXTENT_CAP, X_AXIS_TITLE_BAND, X_AXIS_TITLE_BAND_ROTATED, type YouDrawItConfig, type YouDrawItSample, type YouDrawItYInvert, abbreviateNumber, adaptColorForDarkMode, adaptForLightLineStroke, adaptTheme, areaChart, axisTitleOffset, barChart, buildCompactStepFormatter, buildD3Formatter, buildTemporalFormatter, checkPaletteDistinguishability, columnChart, computeChrome, computeFieldFormatContext, computeLabelBounds, computeXAxisExtentFromLabels, contrastRatio, cssTokenDefault, dataTable, deepMergeSpec, defaultNumberFormatter, detectCollision, donutChart, dotChart, editorial, elementRef, essay, estimateTextWidth, findAccessibleColor, footnoteBandHeight, formatCurrency, formatDate, formatNumber, formatOrdinal, formatPercent, generateAltText, generateAriaLabels, generateDataTable, getAxisTitleOffset, getBreakpoint, getHeightClass, getLayoutStrategy, getRepresentativeColor, heuristicMeasure, inferFieldType, isAxislessMark, isBarListSpec, isChartSpec, isConditionalDef, isEncodingChannel, isGradientDef, isGraphSpec, isLayerSpec, isMapSpec, isOpaqueColor, isRangeAnnotation, isRefLineAnnotation, isSankeySpec, isTableSpec, isTextAnnotation, isTileMapSpec, isValueDef, isYearContext, lineChart, maxRotatedLabelWidth, meetsAA, overlapArea, pickLabelColor, pieChart, resolveCollisions, resolveMarkDef, resolveMarkType, resolveMeasurer, resolveNumberFormatter, resolveSchemeName, resolveTheme, scatterChart, simulateColorBlindness, textAscent, tileMap, truncateRotatedLabel, truncateToWidth, wire, wrapText };
6287
+ export { type A11yConfig, type A11yMetadata, ACHROMATIC_RAMP, AXIS_TITLE_GAP, AXIS_TITLE_OFFSET_COMPACT, AXIS_TITLE_OFFSET_DEFAULT, AXIS_TITLE_TRAILING_PAD, type AggregateOp, type AggregateTransform, type AnimationConfig, type AnimationEase, type AnimationPhaseConfig, type AnimationSpec, type AnimationStagger, type Annotation, type AnnotationAnchor, type AnnotationFootnote, type AnnotationOffset, type AnnotationPosition, type ArcEncoding, type ArcMark, type AreaEncoding, type AreaMark, type AxisConfig, type AxisLabelDensity, type AxisLayout, type AxisTick, BRAND_FONT_SIZE, BRAND_MIN_WIDTH, BRAND_RESERVE_WIDTH, BREAKPOINT_COMPACT_MAX, BREAKPOINT_MEDIUM_MAX, type BarColumnConfig, type BarEncoding, type BarListEncoding, type BarListLayout, type BarListRowMark, type BarListSpec, type BarListSpecWithoutData, type BarTableCell, type BaseLegendLayout, type BeeswarmEncoding, type BinParams, type BinTransform, type Breakpoint, CATEGORICAL_PALETTE, COMPACT_WIDTH, CSS_TOKENS, CSS_TOKEN_ROOT_SELECTORS, type CalculateExpression, type CalculateTransform, type CalendarEncoding, type CategoricalLegendLayout, type CategoricalPalette, type CategoryColorsConfig, type CategoryTableCell, type CellStyle, type ChannelRule, type ChartBuilderOptions, type ChartEventHandlers, type ChartLayout, type ChartSpec, type ChartSpecOverride, type ChartSpecWithoutData, type Chrome, type ChromeDefaults, type ChromeKey, type ChromeMode, type ChromeText, type ChromeTextStyle, type ChromeThemeOverride, type CircleEncoding, type ColorBlindnessType, type ColumnConfig, type CompileOptions, type CompileTableOptions, type CompileWarning, type Condition, type ConditionalValueDef, type ConnectorConfig, type ConnectorType, type ContinuousLegendBin, type ContinuousLegendLayout, type ContinuousLegendTick, type CssTokenDef, DEFAULT_THEME, DIVERGING_PALETTES, type DarkMode, type DataRow, type DateGranularity, type Display, type DivergingPalette, EXTENDED_OFFSET_STRATEGIES, type ElementEdit, type ElementRef, type Encoding, type EncodingChannel, type EncodingRule, type EndpointLabelContent, type EndpointLabelEntry, type EndpointLabelsConfig, type EndpointLabelsLayout, FOOTNOTE_LINE_HEIGHT, type FacetChannel, type FacetLayout, type FacetPanelLayout, type FieldFormatContext, type FieldPredicate, type FieldRef, type FieldType, type FillPatternType, type FilterPredicate, type FilterTransform, type FlagTableCell, type FoldTransform, GRAPH_ENCODING_RULES, type GeoMapBorders, type GeoMapEncoding, type GeoMapFeatureMark, type GeoMapFocus, type GeoMapFocusLayout, type GeoMapGeo, type GeoMapLayout, type GeoMapPointMark, type GeoMapPointsLayer, type GeoMapProjection, type GeoMapSpec, type GeoMapSpecWithoutData, type GradientColorStop, type GradientDef, type GradientLegendLayout, type GradientStop, type GraphAnimationConfig, type GraphAnimationSpec, type GraphChannelRule, type GraphEdge, type GraphEdgeLayout, type GraphEncoding, type GraphEncodingChannel, type GraphInteractionConfig, type GraphLayout, type GraphLayoutConfig, type GraphNode, type GraphNodeLayout, type GraphSpec, type GraphSpecWithoutData, type Gridline, HEIGHT_CRAMPED_MAX, HEIGHT_SHORT_MAX, HPAD_COMPACT_FRACTION, HPAD_COMPACT_MIN, type HeatmapColumnConfig, type HeatmapTableCell, type HeightClass, type ImageColumnConfig, type ImageTableCell, LABEL_GAP_COMPACT, LABEL_GAP_DEFAULT, LABEL_GAP_NARROW_MAX, type LabelCandidate, type LabelConfig, type LabelDensity, type LabelMode, type LabelPriority, type LabelSpec, type LayerSpec, type LayoutStrategy, type LegendChannel, type LegendConfig, type LegendEntry, type LegendEntryPosition, type LegendLayout, type LegendPosition, type LineEncoding, type LineMark, type LinearGradient, type LogicalAnd, type LogicalNot, type LogicalOr, type LollipopEncoding, MARK_DISPLAY_NAMES, MARK_ENCODING_RULES, MARK_TYPES, MAX_LEFT_LABEL_FRACTION_COMPACT, MAX_LEFT_LABEL_FRACTION_DEFAULT, MAX_LEFT_LABEL_FRACTION_MEDIUM, MAX_LEFT_LABEL_FRACTION_MEDIUM_MAX, MAX_SR_TABLE_ROWS, type Margins, type Mark, type MarkAria, type MarkDef, type MarkEvent, type MarkType, type MeasureTextFn, type Metric, NARROW_VIEWPORT_MAX, type NodeOverride, type NumberFormatter, OFFSET_STRATEGIES, type OffsetStrategy, type PaginationState, type ParliamentEncoding, type Point, type PointEncoding, type PointMark, type RadialGradient, type RangeAnnotation, type RangeEncoding, type Rect, type RectEncoding, type RectMark, type RefLineAnnotation, type RelativeTimeRef, type ResolveConfig, type ResolveMode, type ResolvedAnimation, type ResolvedAnimationPhase, type ResolvedAnnotation, type ResolvedChrome, type ResolvedChromeElement, type ResolvedColumn, type ResolvedFillPattern, type ResolvedLabel, type ResolvedMetricBar, type ResolvedMetricCell, type ResolvedSeriesSearch, type ResolvedTheme, type ResolvedYouDrawIt, type ResponsiveConfig, type RuleMarkLayout, SEQUENTIAL_PALETTES, SUPPORTED_SCHEME_NAMES, type SankeyEncoding, type SankeyLayout, type SankeyLinkColor, type SankeyLinkMark, type SankeyNodeAlign, type SankeyNodeMark, type SankeySpec, type SankeySpecWithoutData, type ScaleConfig, type ScaleInvert, type ScaleType, type SequentialPalette, type SeriesSearchConfig, type SeriesStrategy, type SeriesStyle, type SizeLegendCircle, type SizeLegendLayout, type SortByField, type SortState, type SparklineColumnConfig, type SparklineData, type SparklineTableCell, type StoredVizSpec, TICK_LABEL_OFFSET, TICK_LINE_HEIGHT_FACTOR, TOP_PAD_EXTRA_NARROW, TOP_PAD_NARROW_MAX, type TableBuilderOptions, type TableCell, type TableCellBase, type TableLayout, type TableRow, type TableSpec, type TableSpecWithoutData, type TextAnnotation, type TextEncoding, type TextMarkLayout, type TextStyle, type TextTableCell, type Theme, type ThemeChromeDefaults, type ThemeColors, type ThemeConfig, type ThemeFontSizes, type ThemeFontWeights, type ThemeFonts, type ThemeSpacing, type TickEncoding, type TickMarkLayout, type TileMapBuilderOptions, type TileMapEncoding, type TileMapLayout, type TileMapPalette, type TileMapSpec, type TileMapSpecWithoutData, type TileMapTileMark, type TimeUnit, type TimeUnitTransform, type TokenValue, type TooltipContent, type TooltipField, type Transform, type UpdatePhaseConfig, type ValueDef, type VizSpec, type WaffleEncoding, type WindowFieldDef, type WindowOp, type WindowSortField, type WindowTransform, type XAxisExtentInput, X_AXIS_BAND_HEIGHT, X_AXIS_ROTATED_EXTENT_CAP, X_AXIS_TITLE_BAND, X_AXIS_TITLE_BAND_ROTATED, type YouDrawItConfig, type YouDrawItSample, type YouDrawItYInvert, abbreviateNumber, adaptColorForDarkMode, adaptForLightLineStroke, adaptTheme, areaChart, axisTitleOffset, barChart, buildCompactStepFormatter, buildD3Formatter, buildTemporalFormatter, checkPaletteDistinguishability, columnChart, computeChrome, computeFieldFormatContext, computeLabelBounds, computeXAxisExtentFromLabels, contrastRatio, cssTokenDefault, dataTable, deepMergeSpec, defaultNumberFormatter, detectCollision, donutChart, dotChart, editorial, elementRef, essay, estimateTextWidth, findAccessibleColor, footnoteBandHeight, formatCurrency, formatDate, formatNumber, formatOrdinal, formatPercent, generateAltText, generateAriaLabels, generateDataTable, getAxisTitleOffset, getBreakpoint, getHeightClass, getLayoutStrategy, getRepresentativeColor, heuristicMeasure, inferFieldType, isAxislessMark, isBarListSpec, isChartSpec, isConditionalDef, isEncodingChannel, isGeoMapSpec, isGradientDef, isGraphSpec, isLayerSpec, isOpaqueColor, isRangeAnnotation, isRefLineAnnotation, isSankeySpec, isTableSpec, isTextAnnotation, isTileMapSpec, isValueDef, isYearContext, lineChart, maxRotatedLabelWidth, meetsAA, overlapArea, pickLabelColor, pieChart, resolveCollisions, resolveMarkDef, resolveMarkType, resolveMeasurer, resolveNumberFormatter, resolveSchemeName, resolveTheme, scatterChart, simulateColorBlindness, textAscent, tileMap, truncateRotatedLabel, truncateToWidth, wire, wrapText };
package/dist/index.js CHANGED
@@ -284,7 +284,7 @@ function isTileMapSpec(spec) {
284
284
  function isBarListSpec(spec) {
285
285
  return "type" in spec && spec.type === "barlist";
286
286
  }
287
- function isMapSpec(spec) {
287
+ function isGeoMapSpec(spec) {
288
288
  return "type" in spec && spec.type === "map";
289
289
  }
290
290
  function isTextAnnotation(annotation) {
@@ -4118,10 +4118,10 @@ export {
4118
4118
  isChartSpec,
4119
4119
  isConditionalDef,
4120
4120
  isEncodingChannel,
4121
+ isGeoMapSpec,
4121
4122
  isGradientDef,
4122
4123
  isGraphSpec,
4123
4124
  isLayerSpec,
4124
- isMapSpec,
4125
4125
  isOpaqueColor,
4126
4126
  isRangeAnnotation,
4127
4127
  isRefLineAnnotation,