@opendata-ai/openchart-core 8.0.0-rc.24 → 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 +52 -51
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/schema/chart.schema.json +32 -176
- package/schema/vizspec.schema.json +64 -352
package/dist/index.d.ts
CHANGED
|
@@ -571,25 +571,6 @@ interface MarkDef {
|
|
|
571
571
|
* - `'none'` (default): solid fills only.
|
|
572
572
|
*/
|
|
573
573
|
fillPattern?: 'auto' | 'none';
|
|
574
|
-
/**
|
|
575
|
-
* Rendering backend for point marks. High-cardinality scatter plots draw
|
|
576
|
-
* thousands of SVG circles, which is what makes their entrance and update
|
|
577
|
-
* transitions stutter; a canvas layer draws the same dots in a handful of
|
|
578
|
-
* batched paint calls.
|
|
579
|
-
*
|
|
580
|
-
* - `'auto'` (default): canvas above 1,000 compiled point marks, SVG below.
|
|
581
|
-
* - `'svg'`: always SVG, whatever the point count.
|
|
582
|
-
* - `'canvas'`: always canvas, whatever the point count.
|
|
583
|
-
*
|
|
584
|
-
* Canvas mode trades per-mark keyboard focus and edit-mode point selection
|
|
585
|
-
* (the screen-reader data table still carries every row), and draws the
|
|
586
|
-
* trendline above the dots even when `trendline.layer` is `'below'`.
|
|
587
|
-
* Tooltips, hover, and click callbacks work the same in both modes.
|
|
588
|
-
*
|
|
589
|
-
* Ignored with a console warning for non-point marks, and for faceted,
|
|
590
|
-
* layered, and sparkline charts.
|
|
591
|
-
*/
|
|
592
|
-
render?: 'auto' | 'svg' | 'canvas';
|
|
593
574
|
/**
|
|
594
575
|
* Visual style for range marks. Only meaningful when `type` is `'range'`.
|
|
595
576
|
* - 'dumbbell' (default): a dot at each end joined by a connector line.
|
|
@@ -2693,32 +2674,32 @@ interface TileMapSpec {
|
|
|
2693
2674
|
valueFormat?: string;
|
|
2694
2675
|
}
|
|
2695
2676
|
/** Supported map projections. */
|
|
2696
|
-
type
|
|
2677
|
+
type GeoMapProjection = 'albersUsa' | 'mercator' | 'equalEarth' | 'identity';
|
|
2697
2678
|
/** Focus target for map camera: feature id(s) to zoom/pan to. */
|
|
2698
2679
|
/**
|
|
2699
2680
|
* Fit the point layer's cluster. `true` fits every point; `{ field, value }`
|
|
2700
2681
|
* fits only the points whose data row has `row[field] === value` (e.g. only the
|
|
2701
2682
|
* campuses rated "F"), which lets a story pan between sub-clusters.
|
|
2702
2683
|
*/
|
|
2703
|
-
type
|
|
2684
|
+
type GeoMapPointsFocus = true | {
|
|
2704
2685
|
field: string;
|
|
2705
2686
|
value: string | number;
|
|
2706
2687
|
};
|
|
2707
|
-
type
|
|
2688
|
+
type GeoMapFocus = string | number | Array<string | number> | {
|
|
2708
2689
|
features: string | number | Array<string | number>;
|
|
2709
2690
|
padding?: number;
|
|
2710
2691
|
} | {
|
|
2711
|
-
points:
|
|
2692
|
+
points: GeoMapPointsFocus;
|
|
2712
2693
|
padding?: number;
|
|
2713
2694
|
};
|
|
2714
2695
|
/** Geo configuration for map specs. */
|
|
2715
|
-
interface
|
|
2696
|
+
interface GeoMapGeo {
|
|
2716
2697
|
/** TopoJSON topology object. User imports this from us-atlas, world-atlas, or their own source. */
|
|
2717
2698
|
features: unknown;
|
|
2718
2699
|
/** Field in the TopoJSON feature properties to use as the join key. Defaults to 'id'. */
|
|
2719
2700
|
idField?: string;
|
|
2720
2701
|
/** Map projection. Defaults to 'albersUsa'. */
|
|
2721
|
-
projection?:
|
|
2702
|
+
projection?: GeoMapProjection;
|
|
2722
2703
|
/**
|
|
2723
2704
|
* Focus the camera. A feature id (or array) fits those features; `{ features, padding }`
|
|
2724
2705
|
* adds breathing room; `{ points: true, padding }` fits the points layer's cluster
|
|
@@ -2727,10 +2708,10 @@ interface MapGeo {
|
|
|
2727
2708
|
* `{ points: { field, value }, padding }` fits only the matching point subset, so a
|
|
2728
2709
|
* story can pan between sub-clusters. null clears focus from a prior story step.
|
|
2729
2710
|
*/
|
|
2730
|
-
focus?:
|
|
2711
|
+
focus?: GeoMapFocus | null;
|
|
2731
2712
|
}
|
|
2732
2713
|
/** Encoding channels specific to map visualizations. */
|
|
2733
|
-
interface
|
|
2714
|
+
interface GeoMapEncoding {
|
|
2734
2715
|
/** Join key field in the data. Required for choropleth; optional in basemap-only mode (points layer with empty data). */
|
|
2735
2716
|
key?: EncodingChannel;
|
|
2736
2717
|
/** Color encoding (quantitative or nominal). Drives fill color of features. Optional when a points layer is present (basemap-only mode). */
|
|
@@ -2739,7 +2720,7 @@ interface MapEncoding {
|
|
|
2739
2720
|
tooltip?: EncodingChannel | EncodingChannel[];
|
|
2740
2721
|
}
|
|
2741
2722
|
/** Point/symbol layer rendered above choropleth features. */
|
|
2742
|
-
interface
|
|
2723
|
+
interface GeoMapPointsLayer {
|
|
2743
2724
|
/** Tabular data for the points. Independent of the choropleth data join. */
|
|
2744
2725
|
data: DataRow[];
|
|
2745
2726
|
/** Field holding longitude (x coordinate). */
|
|
@@ -2750,22 +2731,22 @@ interface MapPointsLayer {
|
|
|
2750
2731
|
size?: EncodingChannel;
|
|
2751
2732
|
/** Optional color encoding (nominal or quantitative). Independent scale from choropleth. */
|
|
2752
2733
|
color?: EncodingChannel;
|
|
2753
|
-
/** Tooltip channel(s), same shape as
|
|
2734
|
+
/** Tooltip channel(s), same shape as GeoMapEncoding.tooltip. */
|
|
2754
2735
|
tooltip?: EncodingChannel | EncodingChannel[];
|
|
2755
2736
|
/** Stable id for event callbacks. Data-update transitions for points are not yet supported. */
|
|
2756
2737
|
key?: EncodingChannel;
|
|
2757
2738
|
/** Fill opacity for point circles. Default 0.65. Range 0-1. */
|
|
2758
2739
|
opacity?: number;
|
|
2759
2740
|
}
|
|
2760
|
-
interface
|
|
2741
|
+
interface GeoMapSpec {
|
|
2761
2742
|
/** Discriminant: always "map". */
|
|
2762
2743
|
type: 'map';
|
|
2763
2744
|
/** Geo configuration: TopoJSON features, join key, and projection. */
|
|
2764
|
-
geo:
|
|
2745
|
+
geo: GeoMapGeo;
|
|
2765
2746
|
/** Tabular data to join to geo features. */
|
|
2766
2747
|
data: DataRow[];
|
|
2767
2748
|
/** Encoding channels mapping data fields to visual properties. */
|
|
2768
|
-
encoding:
|
|
2749
|
+
encoding: GeoMapEncoding;
|
|
2769
2750
|
/** Editorial chrome (title, subtitle, source, byline, footer). */
|
|
2770
2751
|
chrome?: Chrome;
|
|
2771
2752
|
/** Legend display configuration. */
|
|
@@ -2777,7 +2758,7 @@ interface MapSpec {
|
|
|
2777
2758
|
/** Whether to show the tryOpenData.ai watermark. Defaults to true. */
|
|
2778
2759
|
watermark?: boolean;
|
|
2779
2760
|
/** Optional point/symbol layer rendered above choropleth features. */
|
|
2780
|
-
points?:
|
|
2761
|
+
points?: GeoMapPointsLayer;
|
|
2781
2762
|
/** Animation configuration for entrance animations. */
|
|
2782
2763
|
animation?: AnimationSpec;
|
|
2783
2764
|
/**
|
|
@@ -2842,7 +2823,7 @@ interface BarListEncoding {
|
|
|
2842
2823
|
* - GraphSpec: has `type: 'graph'`
|
|
2843
2824
|
* - SankeySpec: has `type: 'sankey'`
|
|
2844
2825
|
* - TileMapSpec: has `type: 'tilemap'`
|
|
2845
|
-
* -
|
|
2826
|
+
* - GeoMapSpec: has `type: 'map'`
|
|
2846
2827
|
* - BarListSpec: has `type: 'barlist'`
|
|
2847
2828
|
*
|
|
2848
2829
|
* Election parliament (hemicycle) charts are `ChartSpec` with `mark:
|
|
@@ -2852,7 +2833,7 @@ interface BarListEncoding {
|
|
|
2852
2833
|
* for free instead of a second bespoke compile path (see
|
|
2853
2834
|
* `packages/engine/src/charts/parliament/`).
|
|
2854
2835
|
*/
|
|
2855
|
-
type VizSpec = ChartSpec | LayerSpec | TableSpec | GraphSpec | SankeySpec | TileMapSpec |
|
|
2836
|
+
type VizSpec = ChartSpec | LayerSpec | TableSpec | GraphSpec | SankeySpec | TileMapSpec | GeoMapSpec | BarListSpec;
|
|
2856
2837
|
/**
|
|
2857
2838
|
* Chart spec without runtime data, for persistence/storage.
|
|
2858
2839
|
* Generic: `ChartSpecWithoutData<MyRow>` constrains encoding field names.
|
|
@@ -2867,13 +2848,13 @@ type SankeySpecWithoutData = Omit<SankeySpec, 'data'>;
|
|
|
2867
2848
|
/** TileMap spec without runtime data, for persistence/storage. */
|
|
2868
2849
|
type TileMapSpecWithoutData = Omit<TileMapSpec, 'data'>;
|
|
2869
2850
|
/** Map spec without runtime data, for persistence/storage. */
|
|
2870
|
-
type
|
|
2871
|
-
points?: Omit<
|
|
2851
|
+
type GeoMapSpecWithoutData = Omit<GeoMapSpec, 'data' | 'points'> & {
|
|
2852
|
+
points?: Omit<GeoMapPointsLayer, 'data'>;
|
|
2872
2853
|
};
|
|
2873
2854
|
/** BarList spec without runtime data, for persistence/storage. */
|
|
2874
2855
|
type BarListSpecWithoutData = Omit<BarListSpec, 'data'>;
|
|
2875
2856
|
/** Union of data-stripped spec types for persistence/storage. */
|
|
2876
|
-
type StoredVizSpec = ChartSpecWithoutData | TableSpecWithoutData | GraphSpecWithoutData | SankeySpecWithoutData | TileMapSpecWithoutData |
|
|
2857
|
+
type StoredVizSpec = ChartSpecWithoutData | TableSpecWithoutData | GraphSpecWithoutData | SankeySpecWithoutData | TileMapSpecWithoutData | GeoMapSpecWithoutData | BarListSpecWithoutData;
|
|
2877
2858
|
/** Logical AND combinator for filter predicates. */
|
|
2878
2859
|
interface LogicalAnd<T> {
|
|
2879
2860
|
and: T[];
|
|
@@ -3102,8 +3083,8 @@ declare function isSankeySpec(spec: VizSpec | Record<string, unknown>): spec is
|
|
|
3102
3083
|
declare function isTileMapSpec(spec: VizSpec | Record<string, unknown>): spec is TileMapSpec;
|
|
3103
3084
|
/** Check if a spec is a BarListSpec. */
|
|
3104
3085
|
declare function isBarListSpec(spec: VizSpec | Record<string, unknown>): spec is BarListSpec;
|
|
3105
|
-
/** Check if a spec is a
|
|
3106
|
-
declare function
|
|
3086
|
+
/** Check if a spec is a GeoMapSpec. */
|
|
3087
|
+
declare function isGeoMapSpec(spec: VizSpec | Record<string, unknown>): spec is GeoMapSpec;
|
|
3107
3088
|
/** Check if an annotation is a TextAnnotation. */
|
|
3108
3089
|
declare function isTextAnnotation(annotation: Annotation): annotation is TextAnnotation;
|
|
3109
3090
|
/** Check if an annotation is a RangeAnnotation. */
|
|
@@ -5013,7 +4994,7 @@ interface CompileWarning {
|
|
|
5013
4994
|
context?: Record<string, unknown>;
|
|
5014
4995
|
}
|
|
5015
4996
|
/** Resolved focus target for map camera framing. */
|
|
5016
|
-
interface
|
|
4997
|
+
interface GeoMapFocusLayout {
|
|
5017
4998
|
target: {
|
|
5018
4999
|
x: number;
|
|
5019
5000
|
y: number;
|
|
@@ -5024,7 +5005,7 @@ interface MapFocusLayout {
|
|
|
5024
5005
|
ids: Array<string | number>;
|
|
5025
5006
|
}
|
|
5026
5007
|
/** A resolved map feature mark with computed SVG path and fill. */
|
|
5027
|
-
interface
|
|
5008
|
+
interface GeoMapFeatureMark {
|
|
5028
5009
|
type: 'map-feature';
|
|
5029
5010
|
/** SVG path `d` attribute for this feature's shape. */
|
|
5030
5011
|
path: string;
|
|
@@ -5055,7 +5036,7 @@ interface MapFeatureMark {
|
|
|
5055
5036
|
centroid: [number, number];
|
|
5056
5037
|
}
|
|
5057
5038
|
/** A resolved map point mark with projected coordinates and visual properties. */
|
|
5058
|
-
interface
|
|
5039
|
+
interface GeoMapPointMark {
|
|
5059
5040
|
type: 'map-point';
|
|
5060
5041
|
/** Projected center x in map-local coordinates. */
|
|
5061
5042
|
cx: number;
|
|
@@ -5081,7 +5062,7 @@ interface MapPointMark {
|
|
|
5081
5062
|
animationIndex: number;
|
|
5082
5063
|
}
|
|
5083
5064
|
/** Border paths for the map (interior borders and coastline/outline). */
|
|
5084
|
-
interface
|
|
5065
|
+
interface GeoMapBorders {
|
|
5085
5066
|
/** SVG path `d` for interior borders between features. */
|
|
5086
5067
|
interiorPath: string;
|
|
5087
5068
|
/** SVG path `d` for the outer boundary / coastline. */
|
|
@@ -5092,23 +5073,23 @@ interface MapBorders {
|
|
|
5092
5073
|
outlineStroke: string;
|
|
5093
5074
|
}
|
|
5094
5075
|
/**
|
|
5095
|
-
*
|
|
5076
|
+
* GeoMapLayout: the complete engine output for map visualizations.
|
|
5096
5077
|
*
|
|
5097
5078
|
* Contains everything an adapter needs to render the map: dimensions,
|
|
5098
5079
|
* chrome, feature paths, borders, legend, tooltip descriptors, and
|
|
5099
5080
|
* accessibility metadata.
|
|
5100
5081
|
*/
|
|
5101
|
-
interface
|
|
5082
|
+
interface GeoMapLayout {
|
|
5102
5083
|
/** The map drawing area (after chrome and legend are subtracted). */
|
|
5103
5084
|
area: Rect;
|
|
5104
5085
|
/** Resolved chrome text elements with positions and styles. */
|
|
5105
5086
|
chrome: ResolvedChrome;
|
|
5106
5087
|
/** Resolved feature marks with paths, fills, and joined data. */
|
|
5107
|
-
features:
|
|
5088
|
+
features: GeoMapFeatureMark[];
|
|
5108
5089
|
/** Border paths (interior mesh and outline). */
|
|
5109
|
-
borders:
|
|
5090
|
+
borders: GeoMapBorders;
|
|
5110
5091
|
/** Resolved point marks for the symbol layer (empty array if no points layer). */
|
|
5111
|
-
pointMarks:
|
|
5092
|
+
pointMarks: GeoMapPointMark[];
|
|
5112
5093
|
/** Categorical legend for the point color channel (null if no point color). */
|
|
5113
5094
|
pointCategoricalLegend: CategoricalLegendLayout | null;
|
|
5114
5095
|
/** Continuous legend for the point color channel (null if no point color). */
|
|
@@ -5141,7 +5122,7 @@ interface MapLayout {
|
|
|
5141
5122
|
height: number;
|
|
5142
5123
|
};
|
|
5143
5124
|
/** Resolved focus target for camera framing (null if no focus). */
|
|
5144
|
-
focus:
|
|
5125
|
+
focus: GeoMapFocusLayout | null;
|
|
5145
5126
|
}
|
|
5146
5127
|
/** A resolved bar list row with computed positions and visual properties. */
|
|
5147
5128
|
interface BarListRowMark {
|
|
@@ -5250,6 +5231,26 @@ interface CompileOptions {
|
|
|
5250
5231
|
* before calling compile. The engine always receives a resolved boolean.
|
|
5251
5232
|
*/
|
|
5252
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';
|
|
5253
5254
|
/** Whether to show the tryOpenData.ai watermark. Defaults to true. */
|
|
5254
5255
|
watermark?: boolean;
|
|
5255
5256
|
/**
|
|
@@ -6283,4 +6284,4 @@ declare const CSS_TOKEN_ROOT_SELECTORS: readonly string[];
|
|
|
6283
6284
|
declare const CSS_TOKENS: readonly CssTokenDef[];
|
|
6284
6285
|
declare function cssTokenDefault(name: string, mode: 'light' | 'dark'): string;
|
|
6285
6286
|
|
|
6286
|
-
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
|
|
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
|
|
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,
|