@opendata-ai/openchart-core 9.6.0 → 9.7.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/dist/index.d.ts +147 -18
- package/dist/index.js +1009 -120
- package/dist/index.js.map +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/schema/chart.schema.json +87 -2
- package/schema/table.schema.json +87 -2
- package/schema/vizspec.schema.json +199 -2
package/dist/index.d.ts
CHANGED
|
@@ -277,6 +277,15 @@ interface NeutralRamp {
|
|
|
277
277
|
*/
|
|
278
278
|
declare function deriveNeutralRamp(text: string, bg: string, isDark?: boolean): NeutralRamp;
|
|
279
279
|
|
|
280
|
+
/** Locale tags supported by the built-in formatters. */
|
|
281
|
+
declare const SUPPORTED_LOCALES: readonly ["en-US", "en-GB", "de-DE", "fr-FR", "es-ES", "pt-BR", "pt-PT", "it-IT", "nl-NL"];
|
|
282
|
+
/** A canonical locale tag supported by the built-in formatters. */
|
|
283
|
+
type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
|
|
284
|
+
/** Whether a tag is a canonical supported locale (case-sensitive). */
|
|
285
|
+
declare function isSupportedLocale(tag: string): tag is SupportedLocale;
|
|
286
|
+
/** Match a supported tag or bare-language alias, ignoring case; no region fallback. */
|
|
287
|
+
declare function matchLocale(tag: string): SupportedLocale | null;
|
|
288
|
+
|
|
280
289
|
/**
|
|
281
290
|
* A color token value: either a plain CSS color string, or a light/dark pair.
|
|
282
291
|
* When a pair is given, the resolver picks the appropriate value based on
|
|
@@ -439,6 +448,12 @@ interface ThemeSpacing {
|
|
|
439
448
|
}
|
|
440
449
|
/** Default style configuration for a chrome text element. */
|
|
441
450
|
interface ChromeDefaults {
|
|
451
|
+
/** Font family override for this chrome element. */
|
|
452
|
+
fontFamily?: string;
|
|
453
|
+
/** Horizontal alignment of this chrome element. */
|
|
454
|
+
textAlign?: ChromeTextAlign;
|
|
455
|
+
/** Display prefix, separate from the authored text. */
|
|
456
|
+
prefix?: string;
|
|
442
457
|
/** Font size in pixels. */
|
|
443
458
|
fontSize: number;
|
|
444
459
|
/** Font weight. */
|
|
@@ -480,6 +495,10 @@ interface ThemeChromeDefaults {
|
|
|
480
495
|
*/
|
|
481
496
|
/** @internal Base structure before runtime color resolution. */
|
|
482
497
|
interface ThemeBase {
|
|
498
|
+
/** Theme logo, or null when no logo is configured. */
|
|
499
|
+
logo: ThemeLogo | null;
|
|
500
|
+
/** Canonical locale for number and date formatting. */
|
|
501
|
+
locale: SupportedLocale;
|
|
483
502
|
/** Color palettes. */
|
|
484
503
|
colors: ThemeColors;
|
|
485
504
|
/** Typography settings. */
|
|
@@ -516,6 +535,17 @@ interface ResolvedTheme extends ThemeBase {
|
|
|
516
535
|
light: string;
|
|
517
536
|
dark: string;
|
|
518
537
|
}>;
|
|
538
|
+
/** Original continuous palette pairs, indexed by palette name and stop. @internal */
|
|
539
|
+
_rampPairs?: {
|
|
540
|
+
sequential?: Record<string, ReadonlyArray<{
|
|
541
|
+
light: string;
|
|
542
|
+
dark: string;
|
|
543
|
+
} | undefined>>;
|
|
544
|
+
diverging?: Record<string, ReadonlyArray<{
|
|
545
|
+
light: string;
|
|
546
|
+
dark: string;
|
|
547
|
+
} | undefined>>;
|
|
548
|
+
};
|
|
519
549
|
}
|
|
520
550
|
|
|
521
551
|
/** A rectangle defined by position and dimensions. */
|
|
@@ -571,6 +601,8 @@ interface CellStyle {
|
|
|
571
601
|
}
|
|
572
602
|
/** A single resolved chrome text element with computed position and style. */
|
|
573
603
|
interface ResolvedChromeElement {
|
|
604
|
+
/** Display prefix, separate from the authored text. */
|
|
605
|
+
prefix?: string;
|
|
574
606
|
/** Makes the text a link. http, https and mailto only; opens in a new tab. */
|
|
575
607
|
href?: string;
|
|
576
608
|
/** The text content. */
|
|
@@ -602,7 +634,26 @@ interface ResolvedChromeRule {
|
|
|
602
634
|
thickness: number;
|
|
603
635
|
color: string;
|
|
604
636
|
}
|
|
637
|
+
/** Resolved logo image bounds in the chrome coordinate system. */
|
|
638
|
+
interface ResolvedChromeLogo {
|
|
639
|
+
/** Safe image source URL. */
|
|
640
|
+
href: string;
|
|
641
|
+
/** Horizontal position in pixels. */
|
|
642
|
+
x: number;
|
|
643
|
+
/** Vertical position in pixels; bottom placements are relative to the footer anchor. */
|
|
644
|
+
y: number;
|
|
645
|
+
/** Display width in pixels. */
|
|
646
|
+
width: number;
|
|
647
|
+
/** Display height in pixels. */
|
|
648
|
+
height: number;
|
|
649
|
+
/** Placement relative to the visualization. */
|
|
650
|
+
position: LogoPosition;
|
|
651
|
+
/** Accessible description of the logo. */
|
|
652
|
+
alt?: string;
|
|
653
|
+
}
|
|
605
654
|
interface ResolvedChrome {
|
|
655
|
+
/** Theme logo with resolved dimensions and placement. */
|
|
656
|
+
logo?: ResolvedChromeLogo;
|
|
606
657
|
/** Total height consumed by chrome elements above the chart area. */
|
|
607
658
|
topHeight: number;
|
|
608
659
|
/** Total height consumed by chrome elements below the chart area. */
|
|
@@ -2065,6 +2116,9 @@ interface SparklineData {
|
|
|
2065
2116
|
startValue: number;
|
|
2066
2117
|
/** Raw value of the last data point. */
|
|
2067
2118
|
endValue: number;
|
|
2119
|
+
/** Locale-formatted first and last values, ready for adapters to draw. */
|
|
2120
|
+
formattedStartValue: string;
|
|
2121
|
+
formattedEndValue: string;
|
|
2068
2122
|
}
|
|
2069
2123
|
/** Cell with an inline sparkline. */
|
|
2070
2124
|
interface SparklineTableCell extends TableCellBase {
|
|
@@ -2708,7 +2762,9 @@ interface BarListLayout {
|
|
|
2708
2762
|
measureText: MeasureTextFn;
|
|
2709
2763
|
}
|
|
2710
2764
|
/** Function signature for text measurement provided by adapters. */
|
|
2711
|
-
type MeasureTextFn = (text: string, fontSize: number, fontWeight?: number
|
|
2765
|
+
type MeasureTextFn = (text: string, fontSize: number, fontWeight?: number,
|
|
2766
|
+
/** Font family override for this measurement. */
|
|
2767
|
+
fontFamily?: string) => {
|
|
2712
2768
|
width: number;
|
|
2713
2769
|
height: number;
|
|
2714
2770
|
};
|
|
@@ -4114,6 +4170,8 @@ interface ChromeText {
|
|
|
4114
4170
|
* Each element can be a simple string or a ChromeText object with style overrides.
|
|
4115
4171
|
*/
|
|
4116
4172
|
interface Chrome {
|
|
4173
|
+
/** Whether to show the theme logo. Set false to hide it for this spec. */
|
|
4174
|
+
logo?: boolean;
|
|
4117
4175
|
/**
|
|
4118
4176
|
* Editorial kicker/category label rendered above the title. Typically
|
|
4119
4177
|
* uppercase, tracked, and tinted with the accent color (e.g.
|
|
@@ -4359,10 +4417,33 @@ type Annotation = TextAnnotation | RangeAnnotation | RefLineAnnotation;
|
|
|
4359
4417
|
* when no explicit prop is passed.
|
|
4360
4418
|
*/
|
|
4361
4419
|
type DarkMode = 'auto' | 'force' | 'off';
|
|
4420
|
+
/** Horizontal alignment of a chrome text element. */
|
|
4421
|
+
type ChromeTextAlign = 'left' | 'center' | 'right';
|
|
4422
|
+
/** Placement of a theme logo relative to the visualization. */
|
|
4423
|
+
type LogoPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
4424
|
+
/** Theme logo source, size and placement. */
|
|
4425
|
+
interface ThemeLogo {
|
|
4426
|
+
/** Logo image data URL. */
|
|
4427
|
+
src: string;
|
|
4428
|
+
/** Display height in pixels. */
|
|
4429
|
+
height: number;
|
|
4430
|
+
/** Display width in pixels; omitted to derive it from the source aspect ratio. */
|
|
4431
|
+
width?: number;
|
|
4432
|
+
/** Logo placement. Defaults to bottom-right. */
|
|
4433
|
+
position?: LogoPosition;
|
|
4434
|
+
/** Accessible description of the logo. */
|
|
4435
|
+
alt?: string;
|
|
4436
|
+
}
|
|
4362
4437
|
/**
|
|
4363
4438
|
* Per-element chrome theme typography controls.
|
|
4364
4439
|
*/
|
|
4365
4440
|
interface ChromeThemeOverride {
|
|
4441
|
+
/** Font family override for this chrome element. */
|
|
4442
|
+
fontFamily?: string;
|
|
4443
|
+
/** Horizontal alignment of this chrome element. */
|
|
4444
|
+
textAlign?: ChromeTextAlign;
|
|
4445
|
+
/** Text prepended for display while preserving the authored text. */
|
|
4446
|
+
prefix?: string;
|
|
4366
4447
|
/** Text color. Accepts a TokenValue for light/dark pairs. */
|
|
4367
4448
|
color?: TokenValue;
|
|
4368
4449
|
/** Font size in pixels. */
|
|
@@ -4377,6 +4458,10 @@ interface ChromeThemeOverride {
|
|
|
4377
4458
|
* All fields are optional. The engine deep-merges these onto the default theme.
|
|
4378
4459
|
*/
|
|
4379
4460
|
interface ThemeConfig {
|
|
4461
|
+
/** Theme logo; null clears an inherited logo. */
|
|
4462
|
+
logo?: ThemeLogo | null;
|
|
4463
|
+
/** Number and date formatting locale; defaults to en-US. */
|
|
4464
|
+
locale?: string;
|
|
4380
4465
|
/**
|
|
4381
4466
|
* Color palette overrides.
|
|
4382
4467
|
* Pass a flat string[] as shorthand for categorical colors,
|
|
@@ -4393,9 +4478,9 @@ interface ThemeConfig {
|
|
|
4393
4478
|
/** Hairline color for axis lines and separators. Accepts a TokenValue for light/dark pairs. */
|
|
4394
4479
|
hairline?: TokenValue;
|
|
4395
4480
|
/** Sequential palettes keyed by name. Each is an array of color stops. */
|
|
4396
|
-
sequential?: Record<string,
|
|
4481
|
+
sequential?: Record<string, TokenValue[]>;
|
|
4397
4482
|
/** Diverging palettes keyed by name. Each is an array of color stops with a neutral midpoint. */
|
|
4398
|
-
diverging?: Record<string,
|
|
4483
|
+
diverging?: Record<string, TokenValue[]>;
|
|
4399
4484
|
/** Background color. Accepts a TokenValue for light/dark pairs. */
|
|
4400
4485
|
background?: TokenValue;
|
|
4401
4486
|
/** Default text color. Accepts a TokenValue for light/dark pairs. */
|
|
@@ -5223,6 +5308,8 @@ interface BaseChartSpec<TData extends DataRow = DataRow> {
|
|
|
5223
5308
|
responsive?: boolean | ResponsiveConfig;
|
|
5224
5309
|
/** Theme configuration overrides. */
|
|
5225
5310
|
theme?: ThemeConfig;
|
|
5311
|
+
/** Number and date formatting locale; overrides the theme locale. */
|
|
5312
|
+
locale?: string;
|
|
5226
5313
|
/**
|
|
5227
5314
|
* Whether to show the OpenChart watermark. Defaults to true; auto-hides
|
|
5228
5315
|
* when the container is under 200px tall (the cramped height class) unless
|
|
@@ -5468,6 +5555,8 @@ interface TableSpec {
|
|
|
5468
5555
|
chrome?: Chrome;
|
|
5469
5556
|
/** Theme configuration overrides. */
|
|
5470
5557
|
theme?: ThemeConfig;
|
|
5558
|
+
/** Number and date formatting locale; overrides the theme locale. */
|
|
5559
|
+
locale?: string;
|
|
5471
5560
|
/** Whether to show the OpenChart watermark. Defaults to true. */
|
|
5472
5561
|
watermark?: boolean;
|
|
5473
5562
|
/** Enable client-side search/filter. */
|
|
@@ -5660,6 +5749,8 @@ interface GraphSpec {
|
|
|
5660
5749
|
annotations?: Annotation[];
|
|
5661
5750
|
/** Theme configuration overrides. */
|
|
5662
5751
|
theme?: ThemeConfig;
|
|
5752
|
+
/** Number and date formatting locale; overrides the theme locale. */
|
|
5753
|
+
locale?: string;
|
|
5663
5754
|
/**
|
|
5664
5755
|
* Motion. On by default: the entrance plays once the visualization scrolls
|
|
5665
5756
|
* into view, and data updates animate. Set false to turn all motion off, or
|
|
@@ -5801,6 +5892,8 @@ interface LayerSpec<TData extends DataRow = DataRow> {
|
|
|
5801
5892
|
responsive?: boolean | ResponsiveConfig;
|
|
5802
5893
|
/** Theme configuration overrides. */
|
|
5803
5894
|
theme?: ThemeConfig;
|
|
5895
|
+
/** Number and date formatting locale; overrides the theme locale. */
|
|
5896
|
+
locale?: string;
|
|
5804
5897
|
/** Whether to show the OpenChart watermark. Defaults to true. */
|
|
5805
5898
|
watermark?: boolean;
|
|
5806
5899
|
/** Resolution strategy for shared scales/axes/legends. */
|
|
@@ -5891,6 +5984,8 @@ interface SankeySpec {
|
|
|
5891
5984
|
legend?: LegendConfig;
|
|
5892
5985
|
/** Theme configuration overrides. */
|
|
5893
5986
|
theme?: ThemeConfig;
|
|
5987
|
+
/** Number and date formatting locale; overrides the theme locale. */
|
|
5988
|
+
locale?: string;
|
|
5894
5989
|
/** Whether to show the OpenChart watermark. Defaults to true. */
|
|
5895
5990
|
watermark?: boolean;
|
|
5896
5991
|
/**
|
|
@@ -5976,6 +6071,8 @@ interface TileMapSpec {
|
|
|
5976
6071
|
legend?: LegendConfig;
|
|
5977
6072
|
/** Theme configuration overrides. */
|
|
5978
6073
|
theme?: ThemeConfig;
|
|
6074
|
+
/** Number and date formatting locale; overrides the theme locale. */
|
|
6075
|
+
locale?: string;
|
|
5979
6076
|
/** Whether to show the OpenChart watermark. Defaults to true. */
|
|
5980
6077
|
watermark?: boolean;
|
|
5981
6078
|
/**
|
|
@@ -6160,6 +6257,8 @@ interface GeoMapSpec {
|
|
|
6160
6257
|
legend?: LegendConfig;
|
|
6161
6258
|
/** Theme configuration overrides. */
|
|
6162
6259
|
theme?: ThemeConfig;
|
|
6260
|
+
/** Number and date formatting locale; overrides the theme locale. */
|
|
6261
|
+
locale?: string;
|
|
6163
6262
|
/** Whether to show the OpenChart watermark. Defaults to true. */
|
|
6164
6263
|
watermark?: boolean;
|
|
6165
6264
|
/** Optional point/symbol layer rendered above choropleth features. */
|
|
@@ -6209,6 +6308,8 @@ interface BarListSpec {
|
|
|
6209
6308
|
chrome?: Chrome;
|
|
6210
6309
|
/** Theme configuration overrides. */
|
|
6211
6310
|
theme?: ThemeConfig;
|
|
6311
|
+
/** Number and date formatting locale; overrides the theme locale. */
|
|
6312
|
+
locale?: string;
|
|
6212
6313
|
/** Whether to show the OpenChart watermark. Defaults to true. */
|
|
6213
6314
|
watermark?: boolean;
|
|
6214
6315
|
/**
|
|
@@ -6364,6 +6465,8 @@ interface RaceSpec {
|
|
|
6364
6465
|
chrome?: Chrome;
|
|
6365
6466
|
/** Theme overrides. Omit to use the default theme. */
|
|
6366
6467
|
theme?: ThemeConfig;
|
|
6468
|
+
/** Number and date formatting locale; overrides the theme locale. */
|
|
6469
|
+
locale?: string;
|
|
6367
6470
|
/** Accessibility overrides. Omit to use generated metadata. */
|
|
6368
6471
|
a11y?: A11yConfig;
|
|
6369
6472
|
/** Whether to show the OpenChart watermark. Defaults to true. */
|
|
@@ -7549,6 +7652,8 @@ interface DivergingPalette {
|
|
|
7549
7652
|
}
|
|
7550
7653
|
/** All diverging palettes keyed by name. */
|
|
7551
7654
|
declare const DIVERGING_PALETTES: Record<string, string[]>;
|
|
7655
|
+
/** Resolve an OpenChart or Vega-Lite scheme alias to its canonical name. */
|
|
7656
|
+
declare function canonicalSchemeName(name: string): string;
|
|
7552
7657
|
/**
|
|
7553
7658
|
* Resolve a scheme name to its palette stops. Accepts openchart palette names
|
|
7554
7659
|
* (blue, green, orange, purple, teal, redBlue, brownTeal, categorical) and
|
|
@@ -7733,7 +7838,7 @@ declare function computeNoteBandHeight(input: number | Pick<ResolvedChrome, 'not
|
|
|
7733
7838
|
* @param chrome - The Chrome spec from the user's VizSpec.
|
|
7734
7839
|
* @param theme - The fully resolved theme.
|
|
7735
7840
|
* @param width - Total available width in pixels.
|
|
7736
|
-
* @param
|
|
7841
|
+
* @param measureTextFn - Optional real text measurement function from the adapter.
|
|
7737
7842
|
* @param chromeMode - Chrome display mode: full, compact (title only), or hidden.
|
|
7738
7843
|
* @param padding - Override padding (for scaled padding from dimensions).
|
|
7739
7844
|
* @param watermark - Whether the brand watermark renders (affects bottom space).
|
|
@@ -7748,7 +7853,7 @@ declare function computeNoteBandHeight(input: number | Pick<ResolvedChrome, 'not
|
|
|
7748
7853
|
* can push `chrome.topHeight` past the min-chart-height guardrail, which
|
|
7749
7854
|
* would strip the title back out via the hidden-chrome fallback.
|
|
7750
7855
|
*/
|
|
7751
|
-
declare function computeChrome(chrome: Chrome | undefined, theme: ResolvedTheme, width: number,
|
|
7856
|
+
declare function computeChrome(chrome: Chrome | undefined, theme: ResolvedTheme, width: number, measureTextFn?: MeasureTextFn, chromeMode?: ChromeMode, padding?: number, watermark?: boolean, bottomLegendHeight?: number, crampedTitle?: boolean): ResolvedChrome;
|
|
7752
7857
|
|
|
7753
7858
|
/**
|
|
7754
7859
|
* Text measurement for environments without a DOM.
|
|
@@ -7823,8 +7928,15 @@ declare function resolveMeasurer(measureText?: MeasureTextFn): MeasureTextFn;
|
|
|
7823
7928
|
* @param fontWeight - Font weight (100-900).
|
|
7824
7929
|
* @param maxWidth - Maximum line width in pixels. Non-positive values return `[text]` unchanged.
|
|
7825
7930
|
* @param measureText - Optional real text measurer. When omitted, uses a character-width heuristic.
|
|
7931
|
+
* @param fontFamily - Optional family passed through to the text measurer.
|
|
7932
|
+
*/
|
|
7933
|
+
declare function wrapText(text: string, fontSize: number, fontWeight: number, maxWidth: number, measureText?: MeasureTextFn, fontFamily?: string): string[];
|
|
7934
|
+
|
|
7935
|
+
/**
|
|
7936
|
+
* Whether a logo data URL is safe to paint via <image href> or <img src> only.
|
|
7937
|
+
* The payload is not sanitized; renderers must attribute-escape the source.
|
|
7826
7938
|
*/
|
|
7827
|
-
declare function
|
|
7939
|
+
declare function isSafeLogoSource(src: string): boolean;
|
|
7828
7940
|
|
|
7829
7941
|
/**
|
|
7830
7942
|
* Pixel-level responsive metrics for chart layout.
|
|
@@ -8071,10 +8183,13 @@ declare function computeLabelBounds(label: ResolvedLabel): Rect;
|
|
|
8071
8183
|
* with auto-precision (e.g. 1500000 -> "1,500,000").
|
|
8072
8184
|
*
|
|
8073
8185
|
* @param value - The number to format.
|
|
8074
|
-
* @param locale -
|
|
8186
|
+
* @param locale - Formatting locale tag or bare-language alias.
|
|
8075
8187
|
*/
|
|
8076
|
-
declare function formatNumber(value: number,
|
|
8077
|
-
|
|
8188
|
+
declare function formatNumber(value: number, locale?: string): string;
|
|
8189
|
+
/** Preserve String(value)'s precision and grouping while localizing its decimal symbol. */
|
|
8190
|
+
declare function formatRawNumber(value: number | string, locale?: string): string;
|
|
8191
|
+
/** Abbreviate a number; uses locale-specific symbols. */
|
|
8192
|
+
declare function abbreviateNumber(value: number, locale?: string): string;
|
|
8078
8193
|
/**
|
|
8079
8194
|
* Format a number as an English ordinal: 1 -> "1st", 2 -> "2nd", 3 -> "3rd",
|
|
8080
8195
|
* 11 -> "11th", 22 -> "22nd". Values are rounded to the nearest integer first;
|
|
@@ -8089,16 +8204,25 @@ declare function formatOrdinal(value: number): string;
|
|
|
8089
8204
|
* ordinals ("1st", "2nd", "3rd") for rank axes.
|
|
8090
8205
|
*
|
|
8091
8206
|
* Returns null if the format string is falsy or unparseable.
|
|
8207
|
+
* @param locale - Formatting locale tag or bare-language alias.
|
|
8092
8208
|
*/
|
|
8093
|
-
declare function buildD3Formatter(formatStr: string | undefined): ((v: number) => string) | null;
|
|
8209
|
+
declare function buildD3Formatter(formatStr: string | undefined, locale?: string): ((v: number) => string) | null;
|
|
8094
8210
|
type NumberFormatter = (value: number) => string;
|
|
8211
|
+
/** Format a percentage; uses locale-specific symbols. */
|
|
8095
8212
|
declare function formatPercent(value: number, options?: {
|
|
8096
8213
|
fraction?: boolean;
|
|
8214
|
+
/** Formatting locale tag or bare-language alias. */
|
|
8215
|
+
locale?: string;
|
|
8097
8216
|
}): string;
|
|
8217
|
+
/** Format a dollar amount; uses locale-specific symbols. */
|
|
8098
8218
|
declare function formatCurrency(value: number, options?: {
|
|
8099
8219
|
compact?: boolean;
|
|
8220
|
+
/** Formatting locale tag or bare-language alias. */
|
|
8221
|
+
locale?: string;
|
|
8100
8222
|
}): string;
|
|
8101
8223
|
interface FieldFormatContext {
|
|
8224
|
+
/** Number and date formatting locale. */
|
|
8225
|
+
locale?: string;
|
|
8102
8226
|
extent?: [number, number];
|
|
8103
8227
|
allIntegers?: boolean;
|
|
8104
8228
|
surface?: 'chart' | 'table';
|
|
@@ -8109,14 +8233,15 @@ declare function computeFieldFormatContext(values: Iterable<unknown>, surface?:
|
|
|
8109
8233
|
declare function isYearContext(ctx: FieldFormatContext | undefined): boolean;
|
|
8110
8234
|
declare function resolveNumberFormatter(formatStr: string | undefined, ctx?: FieldFormatContext): NumberFormatter | null;
|
|
8111
8235
|
declare function defaultNumberFormatter(ctx?: FieldFormatContext): NumberFormatter;
|
|
8112
|
-
|
|
8236
|
+
/** Build a step-aware compact formatter; uses locale-specific symbols. */
|
|
8237
|
+
declare function buildCompactStepFormatter(step: number, locale?: string): NumberFormatter;
|
|
8113
8238
|
/** Granularity levels for date formatting. */
|
|
8114
8239
|
type DateGranularity = 'year' | 'quarter' | 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
8115
8240
|
/**
|
|
8116
8241
|
* Format a date value for display.
|
|
8117
8242
|
*
|
|
8118
8243
|
* @param value - Date object, ISO string, or timestamp number.
|
|
8119
|
-
* @param locale -
|
|
8244
|
+
* @param locale - Formatting locale tag or bare-language alias.
|
|
8120
8245
|
* @param granularity - Time granularity for format selection.
|
|
8121
8246
|
* @param useUtc - Whether to infer granularity and format using UTC methods.
|
|
8122
8247
|
* Pass `false` when formatting ticks from a local-time scale (d3 scaleTime),
|
|
@@ -8125,13 +8250,14 @@ type DateGranularity = 'year' | 'quarter' | 'month' | 'week' | 'day' | 'hour' |
|
|
|
8125
8250
|
* @param compact - Use the compact format table (axis ticks whose full-format
|
|
8126
8251
|
* labels would overlap). Defaults to `false`.
|
|
8127
8252
|
*/
|
|
8128
|
-
declare function formatDate(value: Date | string | number,
|
|
8253
|
+
declare function formatDate(value: Date | string | number, locale?: string, granularity?: DateGranularity, useUtc?: boolean, compact?: boolean): string;
|
|
8129
8254
|
/**
|
|
8130
8255
|
* Build a formatter for temporal values using a d3-time-format string (e.g. "%Y", "%b %Y").
|
|
8131
8256
|
* Returns a function that accepts a Date, string, or number and returns the formatted string.
|
|
8132
8257
|
* Returns null if the format string is falsy.
|
|
8258
|
+
* @param locale - Formatting locale tag or bare-language alias.
|
|
8133
8259
|
*/
|
|
8134
|
-
declare function buildTemporalFormatter(formatStr: string | undefined): ((value: Date | string | number) => string) | null;
|
|
8260
|
+
declare function buildTemporalFormatter(formatStr: string | undefined, locale?: string): ((value: Date | string | number) => string) | null;
|
|
8135
8261
|
|
|
8136
8262
|
/**
|
|
8137
8263
|
* Automatic alt text generation for chart accessibility.
|
|
@@ -8148,8 +8274,9 @@ declare function buildTemporalFormatter(formatStr: string | undefined): ((value:
|
|
|
8148
8274
|
*
|
|
8149
8275
|
* @param spec - The chart spec.
|
|
8150
8276
|
* @param data - The data array.
|
|
8277
|
+
* @param locale - Localizes only numbers and dates; words stay English.
|
|
8151
8278
|
*/
|
|
8152
|
-
declare function generateAltText(spec: ChartSpec, data: DataRow[]): string;
|
|
8279
|
+
declare function generateAltText(spec: ChartSpec, data: DataRow[], locale?: string): string;
|
|
8153
8280
|
/**
|
|
8154
8281
|
* Maximum number of data rows in the screen-reader table. A 50k-point scatter
|
|
8155
8282
|
* would otherwise put 50k hidden rows in the DOM.
|
|
@@ -8168,8 +8295,9 @@ declare const MAX_SR_TABLE_ROWS = 1000;
|
|
|
8168
8295
|
*
|
|
8169
8296
|
* @param spec - The chart spec.
|
|
8170
8297
|
* @param data - The data array.
|
|
8298
|
+
* @param locale - Localizes only numbers and dates; words stay English.
|
|
8171
8299
|
*/
|
|
8172
|
-
declare function generateDataTable(spec: ChartSpec, data: DataRow[]): unknown[][];
|
|
8300
|
+
declare function generateDataTable(spec: ChartSpec, data: DataRow[], locale?: string): unknown[][];
|
|
8173
8301
|
|
|
8174
8302
|
/**
|
|
8175
8303
|
* ARIA label generation for individual marks.
|
|
@@ -8185,8 +8313,9 @@ declare function generateDataTable(spec: ChartSpec, data: DataRow[]): unknown[][
|
|
|
8185
8313
|
* descriptive labels like "Data point: US GDP 42 in 2020-01".
|
|
8186
8314
|
*
|
|
8187
8315
|
* @param marks - Array of mark objects from the compiled chart layout.
|
|
8316
|
+
* @param locale - Localizes only numbers and dates; words stay English.
|
|
8188
8317
|
*/
|
|
8189
|
-
declare function generateAriaLabels(marks: Mark[]): Map<string, string>;
|
|
8318
|
+
declare function generateAriaLabels(marks: Mark[], locale?: string): Map<string, string>;
|
|
8190
8319
|
|
|
8191
8320
|
/**
|
|
8192
8321
|
* Spec construction helpers: typed builder functions for common chart types.
|
|
@@ -9357,4 +9486,4 @@ declare const CSS_TOKEN_ROOT_SELECTORS: readonly string[];
|
|
|
9357
9486
|
declare const CSS_TOKENS: readonly CssTokenDef[];
|
|
9358
9487
|
declare function cssTokenDefault(name: string, mode: 'light' | 'dark'): string;
|
|
9359
9488
|
|
|
9360
|
-
export { type A11yConfig, type A11yDescriptionConfig, 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 AnimationPreset, type AnimationSpec, type AnimationStagger, type Annotation, type AnnotationAnchor, type AnnotationFootnote, type AnnotationOffset, type AnnotationPlacementTool, 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_EXTENDED_PALETTE, CATEGORICAL_FILL_PALETTE, CATEGORICAL_FILL_PALETTE_DARK, CATEGORICAL_PALETTE, CATEGORICAL_PALETTE_DARK, CELL_SWEEP_BUDGET_MS, COMPACT_MAX_X_TICKS, COMPACT_WIDTH, CSS_TOKENS, CSS_TOKEN_ROOT_SELECTORS, CURVE_NAMES, 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 ChromeEconomy, type ChromeKey, type ChromeMode, type ChromeText, type ChromeTextStyle, type ChromeThemeOverride, type CircleEncoding, type ColorBlindnessType, type ColumnConfig, type CompileOptions, type CompileTableOptions, type CompileWarning, type CompositionRecommendation, type Condition, type ConditionalValueDef, type ConnectorConfig, type ConnectorType, type ContinuousLegendBin, type ContinuousLegendLayout, type ContinuousLegendTick, type CssTokenDef, type CurveInput, type CurveName, type CurveStop, DEFAULT_THEME, DIVERGING_PALETTES, type DarkMode, type DataRow, type DatasetBinding, type DateGranularity, type DelayAnchor, type DelayRule, type DeltaColumnConfig, type DeltaTableCell, type DensityEncoding, type DensityTransform, type DescriptionEncoding, type DesignDiagnostic, type DesignQuestion, type Display, type DivergingPalette, type DurationRule, ENTRANCE_ROLES, EXIT_CURVE, EXIT_FADE_MS, EXTENDED_OFFSET_STRATEGIES, type EditOp, type EditTransaction, type EditTransactionResult, type ElementRef, type Encoding, type EncodingChannel, type EncodingRule, type EndpointLabelContent, type EndpointLabelEntry, type EndpointLabelsConfig, type EndpointLabelsLayout, type EnterPhaseConfig, type EntranceEndContext, type EntranceRole, type EntranceRoleDef, type EntranceRoleExtent, type EntranceRoleRow, type EntranceTiming, type EntranceTimingContext, type ErrorbarEncoding, FADE_CURVE, FLUID_SPRING, FOOTNOTE_LINE_HEIGHT, type FacetChannel, type FacetLayout, type FacetPanelLayout, type FieldFormatContext, type FieldMetadata, type FieldPredicate, type FieldRef, type FieldType, type FillPatternType, type FilterPredicate, type FilterTransform, type FlagTableCell, type FoldTransform, type FrameConfig, GRAPH_ENCODING_RULES, type GeoAnchor, type GeoCallout, type GeoCalloutNoteSlot, type GeoColorKeyDescriptor, type GeoColorKeyLayout, type GeoDetailLayer, type GeoDetailLayerLayout, type GeoEntityRef, type GeoInset, type GeoLabelAffine, type GeoLabelCandidate, type GeoLabelComponent, type GeoLabelGeometry, type GeoLabelInventoryEntry, type GeoLabelOverlay, type GeoLabelVisibility, type GeoLabelsBundle, type GeoLabelsInput, 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 GeoMapZoomConfig, type GeoPlacedLabel, type GeoProjectionContext, type GeoReaderObservation, type GeoReaderSelection, type GeoTextBlock, type GeoViewLayout, type GradientColorStop, type GradientDef, type GradientLegendLayout, type GradientStop, type GraphAnimationConfig, type GraphAnimationSpec, type GraphChannelRule, type GraphEdge, type GraphEdgeLayout, type GraphEncoding, type GraphEncodingChannel, type GraphEnterPhaseConfig, type GraphInteractionConfig, type GraphLayout, type GraphLayoutConfig, type GraphNode, type GraphNodeLayout, type GraphPhaseConfig, type GraphSpec, type GraphSpecWithoutData, type Gridline, HEIGHT_CRAMPED_MAX, HEIGHT_MINIMAL_MAX, HEIGHT_NO_GRID_MAX, HEIGHT_SHORT_MAX, HPAD_COMPACT_FRACTION, HPAD_COMPACT_MIN, type HeatmapColumnConfig, type HeatmapTableCell, type HeightClass, type HistogramEncoding, type ImageColumnConfig, type ImageTableCell, type JoinAggregateTransform, KEYFRAMES, type KeyframeDef, type KeyframeName, type KeyframeProperty, type KeyframeStop, type KeyframeValue, LABEL_GAP_COMPACT, LABEL_GAP_DEFAULT, LINE_POINT_CASCADE_MS, 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, MAP_FEATURE_MAX_DURATION_MS, MAP_POINT_STAGGER_FALLBACK_MS, MAP_SWEEP_BUDGET_MS, 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_SPRING_DURATION, MAX_SR_TABLE_ROWS, MAX_TOTAL_STAGGER_MS, MOTION_REST_THRESHOLD, type MapSweepTiming, type Margins, type Mark, type MarkAria, type MarkDef, type MarkEvent, type MarkFocusEvent, type MarkMetadata, type MarkType, type MeasureTextFn, type Metric, type MonotoneCurveName, type MotionPhase, type MotionSample, NARROW_VIEWPORT_MAX, type NeutralRamp, type NodeOverride, type NumberFormatter, OFFSET_STRATEGIES, type ObservationIdentity, type OffsetStrategy, type PaginationState, type ParliamentEncoding, type PlaybackConfig, type PlaybackPeriodPosition, type PlaybackTimingConfig, type Point, type PointEncoding, type PointMark, type RaceBarGeometry, type RaceBarMarkDef, type RaceBarRow, type RaceBarStatic, type RaceConfig, type RaceEncoding, type RaceFrame, type RaceGeometry, type RaceItem, type RaceLayout, type RaceLineGeometry, type RaceLineMarkDef, type RaceLineStatic, type RaceMarkDef, type RaceMarkType, type RacePlayback, type RaceSpec, type RaceSpecWithoutData, type RaceTableCell, type RaceTableColumn, type RaceTableGeometry, type RaceTableMarkDef, type RaceTableStatic, type RaceTick, type RadialGradient, type RangeAnnotation, type RangeEncoding, type ReaderBindingScope, type ReaderChangeMeta, type ReaderComparisonOperand, type ReaderComparisonResult, type ReaderComparisonScope, type ReaderDomainValue, type ReaderObservation, type ReaderPanelScope, type ReaderSelection, type ReaderSeries, type ReaderSlice, type ReaderSliceIndexOptions, type ReaderSliceMember, type ReaderSliceSelection, 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 ResolvedChromeRule, type ResolvedColumn, type ResolvedFillPattern, type ResolvedLabel, type ResolvedMetricBar, type ResolvedMetricCell, type ResolvedSeriesSearch, type ResolvedTheme, type ResolvedThemeColors, type ResolvedYouDrawIt, type ResponsiveConfig, type RoleTiming, type RuleMarkLayout, SEQUENTIAL_PALETTES, SUPPORTED_SCHEME_NAMES, type SankeyEncoding, type SankeyLayout, type SankeyLinkColor, type SankeyLinkMark, type SankeyNodeAlign, type SankeyNodeMark, type SankeySpec, type SankeySpecOverride, 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 SpecPatch, type SpringConfig, type StaggerRule, type StoredVizSpec, TICK_LABEL_OFFSET, TICK_LINE_HEIGHT_FACTOR, TOP_PAD_EXTRA_NARROW, type TableBuilderOptions, type TableCell, type TableCellBase, type TableDensity, type TableLayout, type TableRow, type TableSpec, type TableSpecWithoutData, type TableTotalRow, type TextAnnotation, type TextEncoding, type TextMarkLayout, type TextStyle, type TextTableCell, type ThemeChromeDefaults, type ThemeColors, type ThemeConfig, type ThemeFontSizes, type ThemeFontWeights, type ThemeFonts, type ThemeRule, type ThemeSpacing, type TickEncoding, type TickMarkLayout, type TileMapBuilderOptions, type TileMapEncoding, type TileMapLayout, type TileMapPalette, type TileMapSpec, type TileMapSpecWithoutData, type TileMapTileMark, type TimeTickInterval, type TimeTickStep, type TimeUnit, type TimeUnitTransform, type TokenValue, type TooltipContent, type TooltipField, type Transform, UPDATE_ENTER_START, type UpdatePhaseConfig, type UpdateTimeline, 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, anchorMs, annotationSource, applyEditTransaction, areaChart, axisTitleOffset, barChart, broadsheet, buildCompactStepFormatter, buildD3Formatter, buildTemporalFormatter, checkPaletteDistinguishability, clampStaggerDelay, clarity, columnChart, computeChrome, computeFieldFormatContext, computeLabelBounds, computeNoteBandHeight, computeXAxisExtentFromLabels, contrastRatio, cssTokenDefault, curveStops, curveToCSSLinear, dataTable, deepMergeSpec, defaultNumberFormatter, deriveNeutralRamp, detectCollision, donutChart, dotChart, elementRef, encodePointerToken, entranceAnchorVars, entranceEndMs, entranceRole, entranceTiming, essay, estimateTextWidth, evalCubicBezier, evalCurve, evalKeyframes, evalRoleEase, evalValueCurve, findAccessibleColor, formatCurrency, formatDate, formatNumber, formatOrdinal, formatPercent, generateAltText, generateAriaLabels, generateDataTable, getAxisTitleOffset, getBreakpoint, getHeightClass, getLayoutStrategy, getRepresentativeColor, heuristicMeasure, inferFieldType, invertCurve, invertRoleEase, isAxislessMark, isBarListSpec, isChartSpec, isConditionalDef, isEncodingChannel, isGeoMapSpec, isGradientDef, isGraphSpec, isLayerSpec, isMonotoneCurve, isOpaqueColor, isRaceSpec, isRangeAnnotation, isRefLineAnnotation, isSafeLink, isSankeySpec, isTableSpec, isTextAnnotation, isTileMapSpec, isValueDef, isYearContext, jsonPointer, keyframeProperties, keyframeValueToCSS, legacyEditorial, lineChart, mapFeatureDuration, mapSweepTiming, maxRotatedLabelWidth, meetsAA, mergeThemeConfig, motionCSS, overlapArea, pickLabelColor, pieChart, progressTimeMs, resolveChromeEconomy, resolveCollisions, resolveMarkDef, resolveMarkType, resolveMeasurer, resolveNumberFormatter, resolveSchemeName, resolveTheme, roleBaseDuration, roleVars, sampleMotion, scatterChart, shuffledSweepDelays, simulateColorBlindness, springDuration, terminal, textAscent, tileMap, tilemapTileDelays, truncateRotatedLabel, truncateToWidth, updateTimeline, wire, wrapText };
|
|
9489
|
+
export { type A11yConfig, type A11yDescriptionConfig, 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 AnimationPreset, type AnimationSpec, type AnimationStagger, type Annotation, type AnnotationAnchor, type AnnotationFootnote, type AnnotationOffset, type AnnotationPlacementTool, 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_EXTENDED_PALETTE, CATEGORICAL_FILL_PALETTE, CATEGORICAL_FILL_PALETTE_DARK, CATEGORICAL_PALETTE, CATEGORICAL_PALETTE_DARK, CELL_SWEEP_BUDGET_MS, COMPACT_MAX_X_TICKS, COMPACT_WIDTH, CSS_TOKENS, CSS_TOKEN_ROOT_SELECTORS, CURVE_NAMES, 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 ChromeEconomy, type ChromeKey, type ChromeMode, type ChromeText, type ChromeTextAlign, type ChromeTextStyle, type ChromeThemeOverride, type CircleEncoding, type ColorBlindnessType, type ColumnConfig, type CompileOptions, type CompileTableOptions, type CompileWarning, type CompositionRecommendation, type Condition, type ConditionalValueDef, type ConnectorConfig, type ConnectorType, type ContinuousLegendBin, type ContinuousLegendLayout, type ContinuousLegendTick, type CssTokenDef, type CurveInput, type CurveName, type CurveStop, DEFAULT_THEME, DIVERGING_PALETTES, type DarkMode, type DataRow, type DatasetBinding, type DateGranularity, type DelayAnchor, type DelayRule, type DeltaColumnConfig, type DeltaTableCell, type DensityEncoding, type DensityTransform, type DescriptionEncoding, type DesignDiagnostic, type DesignQuestion, type Display, type DivergingPalette, type DurationRule, ENTRANCE_ROLES, EXIT_CURVE, EXIT_FADE_MS, EXTENDED_OFFSET_STRATEGIES, type EditOp, type EditTransaction, type EditTransactionResult, type ElementRef, type Encoding, type EncodingChannel, type EncodingRule, type EndpointLabelContent, type EndpointLabelEntry, type EndpointLabelsConfig, type EndpointLabelsLayout, type EnterPhaseConfig, type EntranceEndContext, type EntranceRole, type EntranceRoleDef, type EntranceRoleExtent, type EntranceRoleRow, type EntranceTiming, type EntranceTimingContext, type ErrorbarEncoding, FADE_CURVE, FLUID_SPRING, FOOTNOTE_LINE_HEIGHT, type FacetChannel, type FacetLayout, type FacetPanelLayout, type FieldFormatContext, type FieldMetadata, type FieldPredicate, type FieldRef, type FieldType, type FillPatternType, type FilterPredicate, type FilterTransform, type FlagTableCell, type FoldTransform, type FrameConfig, GRAPH_ENCODING_RULES, type GeoAnchor, type GeoCallout, type GeoCalloutNoteSlot, type GeoColorKeyDescriptor, type GeoColorKeyLayout, type GeoDetailLayer, type GeoDetailLayerLayout, type GeoEntityRef, type GeoInset, type GeoLabelAffine, type GeoLabelCandidate, type GeoLabelComponent, type GeoLabelGeometry, type GeoLabelInventoryEntry, type GeoLabelOverlay, type GeoLabelVisibility, type GeoLabelsBundle, type GeoLabelsInput, 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 GeoMapZoomConfig, type GeoPlacedLabel, type GeoProjectionContext, type GeoReaderObservation, type GeoReaderSelection, type GeoTextBlock, type GeoViewLayout, type GradientColorStop, type GradientDef, type GradientLegendLayout, type GradientStop, type GraphAnimationConfig, type GraphAnimationSpec, type GraphChannelRule, type GraphEdge, type GraphEdgeLayout, type GraphEncoding, type GraphEncodingChannel, type GraphEnterPhaseConfig, type GraphInteractionConfig, type GraphLayout, type GraphLayoutConfig, type GraphNode, type GraphNodeLayout, type GraphPhaseConfig, type GraphSpec, type GraphSpecWithoutData, type Gridline, HEIGHT_CRAMPED_MAX, HEIGHT_MINIMAL_MAX, HEIGHT_NO_GRID_MAX, HEIGHT_SHORT_MAX, HPAD_COMPACT_FRACTION, HPAD_COMPACT_MIN, type HeatmapColumnConfig, type HeatmapTableCell, type HeightClass, type HistogramEncoding, type ImageColumnConfig, type ImageTableCell, type JoinAggregateTransform, KEYFRAMES, type KeyframeDef, type KeyframeName, type KeyframeProperty, type KeyframeStop, type KeyframeValue, LABEL_GAP_COMPACT, LABEL_GAP_DEFAULT, LINE_POINT_CASCADE_MS, 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 LogoPosition, type LollipopEncoding, MAP_FEATURE_MAX_DURATION_MS, MAP_POINT_STAGGER_FALLBACK_MS, MAP_SWEEP_BUDGET_MS, 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_SPRING_DURATION, MAX_SR_TABLE_ROWS, MAX_TOTAL_STAGGER_MS, MOTION_REST_THRESHOLD, type MapSweepTiming, type Margins, type Mark, type MarkAria, type MarkDef, type MarkEvent, type MarkFocusEvent, type MarkMetadata, type MarkType, type MeasureTextFn, type Metric, type MonotoneCurveName, type MotionPhase, type MotionSample, NARROW_VIEWPORT_MAX, type NeutralRamp, type NodeOverride, type NumberFormatter, OFFSET_STRATEGIES, type ObservationIdentity, type OffsetStrategy, type PaginationState, type ParliamentEncoding, type PlaybackConfig, type PlaybackPeriodPosition, type PlaybackTimingConfig, type Point, type PointEncoding, type PointMark, type RaceBarGeometry, type RaceBarMarkDef, type RaceBarRow, type RaceBarStatic, type RaceConfig, type RaceEncoding, type RaceFrame, type RaceGeometry, type RaceItem, type RaceLayout, type RaceLineGeometry, type RaceLineMarkDef, type RaceLineStatic, type RaceMarkDef, type RaceMarkType, type RacePlayback, type RaceSpec, type RaceSpecWithoutData, type RaceTableCell, type RaceTableColumn, type RaceTableGeometry, type RaceTableMarkDef, type RaceTableStatic, type RaceTick, type RadialGradient, type RangeAnnotation, type RangeEncoding, type ReaderBindingScope, type ReaderChangeMeta, type ReaderComparisonOperand, type ReaderComparisonResult, type ReaderComparisonScope, type ReaderDomainValue, type ReaderObservation, type ReaderPanelScope, type ReaderSelection, type ReaderSeries, type ReaderSlice, type ReaderSliceIndexOptions, type ReaderSliceMember, type ReaderSliceSelection, 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 ResolvedChromeLogo, type ResolvedChromeRule, type ResolvedColumn, type ResolvedFillPattern, type ResolvedLabel, type ResolvedMetricBar, type ResolvedMetricCell, type ResolvedSeriesSearch, type ResolvedTheme, type ResolvedThemeColors, type ResolvedYouDrawIt, type ResponsiveConfig, type RoleTiming, type RuleMarkLayout, SEQUENTIAL_PALETTES, SUPPORTED_LOCALES, SUPPORTED_SCHEME_NAMES, type SankeyEncoding, type SankeyLayout, type SankeyLinkColor, type SankeyLinkMark, type SankeyNodeAlign, type SankeyNodeMark, type SankeySpec, type SankeySpecOverride, 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 SpecPatch, type SpringConfig, type StaggerRule, type StoredVizSpec, type SupportedLocale, TICK_LABEL_OFFSET, TICK_LINE_HEIGHT_FACTOR, TOP_PAD_EXTRA_NARROW, type TableBuilderOptions, type TableCell, type TableCellBase, type TableDensity, type TableLayout, type TableRow, type TableSpec, type TableSpecWithoutData, type TableTotalRow, type TextAnnotation, type TextEncoding, type TextMarkLayout, type TextStyle, type TextTableCell, type ThemeChromeDefaults, type ThemeColors, type ThemeConfig, type ThemeFontSizes, type ThemeFontWeights, type ThemeFonts, type ThemeLogo, type ThemeRule, type ThemeSpacing, type TickEncoding, type TickMarkLayout, type TileMapBuilderOptions, type TileMapEncoding, type TileMapLayout, type TileMapPalette, type TileMapSpec, type TileMapSpecWithoutData, type TileMapTileMark, type TimeTickInterval, type TimeTickStep, type TimeUnit, type TimeUnitTransform, type TokenValue, type TooltipContent, type TooltipField, type Transform, UPDATE_ENTER_START, type UpdatePhaseConfig, type UpdateTimeline, 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, anchorMs, annotationSource, applyEditTransaction, areaChart, axisTitleOffset, barChart, broadsheet, buildCompactStepFormatter, buildD3Formatter, buildTemporalFormatter, canonicalSchemeName, checkPaletteDistinguishability, clampStaggerDelay, clarity, columnChart, computeChrome, computeFieldFormatContext, computeLabelBounds, computeNoteBandHeight, computeXAxisExtentFromLabels, contrastRatio, cssTokenDefault, curveStops, curveToCSSLinear, dataTable, deepMergeSpec, defaultNumberFormatter, deriveNeutralRamp, detectCollision, donutChart, dotChart, elementRef, encodePointerToken, entranceAnchorVars, entranceEndMs, entranceRole, entranceTiming, essay, estimateTextWidth, evalCubicBezier, evalCurve, evalKeyframes, evalRoleEase, evalValueCurve, findAccessibleColor, formatCurrency, formatDate, formatNumber, formatOrdinal, formatPercent, formatRawNumber, generateAltText, generateAriaLabels, generateDataTable, getAxisTitleOffset, getBreakpoint, getHeightClass, getLayoutStrategy, getRepresentativeColor, heuristicMeasure, inferFieldType, invertCurve, invertRoleEase, isAxislessMark, isBarListSpec, isChartSpec, isConditionalDef, isEncodingChannel, isGeoMapSpec, isGradientDef, isGraphSpec, isLayerSpec, isMonotoneCurve, isOpaqueColor, isRaceSpec, isRangeAnnotation, isRefLineAnnotation, isSafeLink, isSafeLogoSource, isSankeySpec, isSupportedLocale, isTableSpec, isTextAnnotation, isTileMapSpec, isValueDef, isYearContext, jsonPointer, keyframeProperties, keyframeValueToCSS, legacyEditorial, lineChart, mapFeatureDuration, mapSweepTiming, matchLocale, maxRotatedLabelWidth, meetsAA, mergeThemeConfig, motionCSS, overlapArea, pickLabelColor, pieChart, progressTimeMs, resolveChromeEconomy, resolveCollisions, resolveMarkDef, resolveMarkType, resolveMeasurer, resolveNumberFormatter, resolveSchemeName, resolveTheme, roleBaseDuration, roleVars, sampleMotion, scatterChart, shuffledSweepDelays, simulateColorBlindness, springDuration, terminal, textAscent, tileMap, tilemapTileDelays, truncateRotatedLabel, truncateToWidth, updateTimeline, wire, wrapText };
|