@opendata-ai/openchart-core 8.2.2 → 8.3.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 +14 -14
- package/dist/index.js.map +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1191,7 +1191,7 @@ interface Chrome {
|
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Right-anchored brand block on the footer row, paired with a small accent
|
|
1193
1193
|
* dot to its left. Visually balances the source/byline left-anchored text.
|
|
1194
|
-
* When set, suppresses the default `
|
|
1194
|
+
* When set, suppresses the default `OpenData` watermark for this chart.
|
|
1195
1195
|
*/
|
|
1196
1196
|
brand?: string | ChromeText;
|
|
1197
1197
|
}
|
|
@@ -2101,7 +2101,7 @@ interface BaseChartSpec<TData extends DataRow = DataRow> {
|
|
|
2101
2101
|
/** Dark mode behavior. Defaults to "off". */
|
|
2102
2102
|
darkMode?: DarkMode;
|
|
2103
2103
|
/**
|
|
2104
|
-
* Whether to show the
|
|
2104
|
+
* Whether to show the OpenData watermark. Defaults to true; auto-hides
|
|
2105
2105
|
* when the container is under 200px tall (the cramped height class) unless
|
|
2106
2106
|
* explicitly set.
|
|
2107
2107
|
*/
|
|
@@ -2318,7 +2318,7 @@ interface TableSpec {
|
|
|
2318
2318
|
theme?: ThemeConfig;
|
|
2319
2319
|
/** Dark mode behavior. */
|
|
2320
2320
|
darkMode?: DarkMode;
|
|
2321
|
-
/** Whether to show the
|
|
2321
|
+
/** Whether to show the OpenData watermark. Defaults to true. */
|
|
2322
2322
|
watermark?: boolean;
|
|
2323
2323
|
/** Enable client-side search/filter. */
|
|
2324
2324
|
search?: boolean;
|
|
@@ -2484,7 +2484,7 @@ interface GraphSpec {
|
|
|
2484
2484
|
interactive?: boolean;
|
|
2485
2485
|
counts?: boolean;
|
|
2486
2486
|
};
|
|
2487
|
-
/** Whether to show the
|
|
2487
|
+
/** Whether to show the OpenData watermark. Defaults to true. */
|
|
2488
2488
|
watermark?: boolean;
|
|
2489
2489
|
}
|
|
2490
2490
|
/**
|
|
@@ -2559,7 +2559,7 @@ interface LayerSpec<TData extends DataRow = DataRow> {
|
|
|
2559
2559
|
theme?: ThemeConfig;
|
|
2560
2560
|
/** Dark mode behavior. Defaults to "off". */
|
|
2561
2561
|
darkMode?: DarkMode;
|
|
2562
|
-
/** Whether to show the
|
|
2562
|
+
/** Whether to show the OpenData watermark. Defaults to true. */
|
|
2563
2563
|
watermark?: boolean;
|
|
2564
2564
|
/** Resolution strategy for shared scales/axes/legends. */
|
|
2565
2565
|
resolve?: ResolveConfig;
|
|
@@ -2632,7 +2632,7 @@ interface SankeySpec {
|
|
|
2632
2632
|
theme?: ThemeConfig;
|
|
2633
2633
|
/** Dark mode behavior. Defaults to "off". */
|
|
2634
2634
|
darkMode?: DarkMode;
|
|
2635
|
-
/** Whether to show the
|
|
2635
|
+
/** Whether to show the OpenData watermark. Defaults to true. */
|
|
2636
2636
|
watermark?: boolean;
|
|
2637
2637
|
/** Animation configuration for entrance animations. */
|
|
2638
2638
|
animation?: AnimationSpec;
|
|
@@ -2696,7 +2696,7 @@ interface TileMapSpec {
|
|
|
2696
2696
|
theme?: ThemeConfig;
|
|
2697
2697
|
/** Dark mode behavior. Defaults to "off". */
|
|
2698
2698
|
darkMode?: DarkMode;
|
|
2699
|
-
/** Whether to show the
|
|
2699
|
+
/** Whether to show the OpenData watermark. Defaults to true. */
|
|
2700
2700
|
watermark?: boolean;
|
|
2701
2701
|
/** Animation configuration for entrance animations. */
|
|
2702
2702
|
animation?: AnimationSpec;
|
|
@@ -2791,7 +2791,7 @@ interface GeoMapSpec {
|
|
|
2791
2791
|
theme?: ThemeConfig;
|
|
2792
2792
|
/** Dark mode behavior. Defaults to "off". */
|
|
2793
2793
|
darkMode?: DarkMode;
|
|
2794
|
-
/** Whether to show the
|
|
2794
|
+
/** Whether to show the OpenData watermark. Defaults to true. */
|
|
2795
2795
|
watermark?: boolean;
|
|
2796
2796
|
/** Optional point/symbol layer rendered above choropleth features. */
|
|
2797
2797
|
points?: GeoMapPointsLayer;
|
|
@@ -2825,7 +2825,7 @@ interface BarListSpec {
|
|
|
2825
2825
|
theme?: ThemeConfig;
|
|
2826
2826
|
/** Dark mode behavior. Defaults to "off". */
|
|
2827
2827
|
darkMode?: DarkMode;
|
|
2828
|
-
/** Whether to show the
|
|
2828
|
+
/** Whether to show the OpenData watermark. Defaults to true. */
|
|
2829
2829
|
watermark?: boolean;
|
|
2830
2830
|
/** Animation configuration for entrance animations. */
|
|
2831
2831
|
animation?: AnimationSpec;
|
|
@@ -4599,7 +4599,7 @@ interface ChartLayout {
|
|
|
4599
4599
|
};
|
|
4600
4600
|
/** Resolved animation config. Present only when animation is enabled. */
|
|
4601
4601
|
animation?: ResolvedAnimation;
|
|
4602
|
-
/** Whether the
|
|
4602
|
+
/** Whether the OpenData watermark is enabled. */
|
|
4603
4603
|
watermark: boolean;
|
|
4604
4604
|
/** Display mode controlling chrome/axes/legend stripping. `'sparkline'` produces an edge-to-edge mini chart. */
|
|
4605
4605
|
display: Display;
|
|
@@ -4783,7 +4783,7 @@ interface TableLayout {
|
|
|
4783
4783
|
theme: ResolvedTheme;
|
|
4784
4784
|
/** Resolved animation config. Present only when animation is enabled. */
|
|
4785
4785
|
animation?: ResolvedAnimation;
|
|
4786
|
-
/** Whether the
|
|
4786
|
+
/** Whether the OpenData watermark is enabled. */
|
|
4787
4787
|
watermark: boolean;
|
|
4788
4788
|
}
|
|
4789
4789
|
/** A resolved graph node with computed position and visual properties. */
|
|
@@ -4954,7 +4954,7 @@ interface SankeyLayout {
|
|
|
4954
4954
|
};
|
|
4955
4955
|
/** Resolved animation config. Present only when animation is enabled. */
|
|
4956
4956
|
animation?: ResolvedAnimation;
|
|
4957
|
-
/** Whether the
|
|
4957
|
+
/** Whether the OpenData watermark is enabled. */
|
|
4958
4958
|
watermark: boolean;
|
|
4959
4959
|
/** Real text measurement function from the adapter (for accurate SVG text wrapping). */
|
|
4960
4960
|
measureText?: MeasureTextFn;
|
|
@@ -5295,7 +5295,7 @@ interface CompileOptions {
|
|
|
5295
5295
|
* layered, and sparkline charts.
|
|
5296
5296
|
*/
|
|
5297
5297
|
renderer?: 'auto' | 'svg' | 'canvas';
|
|
5298
|
-
/** Whether to show the
|
|
5298
|
+
/** Whether to show the OpenData watermark. Defaults to true. */
|
|
5299
5299
|
watermark?: boolean;
|
|
5300
5300
|
/**
|
|
5301
5301
|
* Enable development-time diagnostics (WCAG contrast warnings via
|
|
@@ -5677,7 +5677,7 @@ declare function computeChrome(chrome: Chrome | undefined, theme: ResolvedTheme,
|
|
|
5677
5677
|
*/
|
|
5678
5678
|
declare function estimateTextWidth(text: string, fontSize: number, fontWeight?: number): number;
|
|
5679
5679
|
/**
|
|
5680
|
-
* Width reserved for the "
|
|
5680
|
+
* Width reserved for the "OpenData" brand watermark in the bottom-right corner.
|
|
5681
5681
|
*/
|
|
5682
5682
|
declare const BRAND_RESERVE_WIDTH = 130;
|
|
5683
5683
|
/** Font size of the brand watermark (px). Shared between layout and renderer. */
|