@bicharts/chart-host 0.6.108 → 0.6.110
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/adapters.mjs +3 -3
- package/dist/card.mjs +2 -2
- package/dist/{chunk-ABGDJ3NJ.mjs → chunk-3JCWTEEH.mjs} +11 -1
- package/dist/{chunk-MO2GR56D.mjs → chunk-5VQ3IQF7.mjs} +426 -20
- package/dist/{chunk-OSREEGBN.mjs → chunk-7XT5OJ6M.mjs} +1 -1
- package/dist/{chunk-UKXGOQMS.mjs → chunk-AEO5SFEQ.mjs} +1 -1
- package/dist/{chunk-JU2PQ22J.mjs → chunk-FT75ONSB.mjs} +17 -1
- package/dist/{chunk-ESBH2L6E.mjs → chunk-IL5M7K6Z.mjs} +2 -2
- package/dist/{chunk-LGWTV5PB.mjs → chunk-KGVNZR23.mjs} +1 -1
- package/dist/{chunk-PHUUFCJY.mjs → chunk-KY4FI2HA.mjs} +3 -1
- package/dist/{chunk-SYUJ4TPX.mjs → chunk-NJWR3DFK.mjs} +133 -132
- package/dist/{chunk-FCLPMC6Q.mjs → chunk-PELRAFYZ.mjs} +1 -1
- package/dist/{chunk-MU4BWWO6.mjs → chunk-Q43WOKSV.mjs} +1 -1
- package/dist/{chunk-5WTQN5DL.mjs → chunk-S564YXNE.mjs} +1 -1
- package/dist/geo-world.mjs +1 -1
- package/dist/geo.mjs +1 -1
- package/dist/{geoWorld110m.generated-TD2TA7S7.mjs → geoWorld110m-3PRV3V4G.mjs} +1 -1
- package/dist/index.mjs +32 -12
- package/dist/legend-fit.mjs +3 -3
- package/dist/page.mjs +6 -4
- package/dist/provinces.mjs +2 -2
- package/dist/react.mjs +38 -12
- package/dist/testing.mjs +1 -1
- package/dist/types/annotations.d.ts +3 -1
- package/dist/types/contract.d.ts +19 -1
- package/dist/types/defaults.d.ts +2 -1
- package/dist/types/filterScope.d.ts +8 -0
- package/dist/types/focusKeep.d.ts +12 -0
- package/dist/types/geo-world.d.ts +1 -1
- package/dist/types/geoWorld110m.d.ts +1 -0
- package/dist/types/host.d.ts +10 -0
- package/dist/types/index.d.ts +4 -2
- package/dist/types/keyboardMarks.d.ts +44 -0
- package/dist/types/page.d.ts +1 -1
- package/dist/types/react.d.ts +10 -1
- package/dist/zoom-memory.mjs +1 -1
- package/package.json +1 -1
package/dist/types/react.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { type Controls } from "./controls";
|
|
|
8
8
|
export { createControls, type Controls, type ControlInfo } from "./controls";
|
|
9
9
|
export { noteBadges, badgeKey, notesFor, type MarkNoteLike, type NoteBadgeOptions } from "./markNotes";
|
|
10
10
|
export { viewToken, viewFromToken, LINKED_HOVER_CLASS, type PageView } from "./filterScope";
|
|
11
|
-
export { createFilter, createFilterScope, fromVegaInteraction, type Filter, type FilterOptions, type FilterScope, type FilterChangeReason } from "./filterScope";
|
|
11
|
+
export { createFilter, createFilterScope, fromVegaInteraction, filterScopeOf, type Filter, type FilterOptions, type FilterScope, type FilterChangeReason } from "./filterScope";
|
|
12
12
|
export interface BicChartProps {
|
|
13
13
|
/** Generated render() source (an ES module's `code` export, or the raw string). */
|
|
14
14
|
code?: string;
|
|
@@ -100,6 +100,15 @@ export interface BicChartProps {
|
|
|
100
100
|
* `selects`, the filter owns what this chart shows as selected.
|
|
101
101
|
*/
|
|
102
102
|
selects?: Filter;
|
|
103
|
+
/**
|
|
104
|
+
* THE PAGE FILTERS THIS CHART'S QUERY ALREADY APPLIES - a KPI deck whose query takes the picked country, a table the
|
|
105
|
+
* page narrows with `filter.keep(rows)` before handing it over. The rows arrive narrowed, so the chart can't see the
|
|
106
|
+
* filter; while one of these is active the chart is told (options.filterScope: the filter's label and the values its
|
|
107
|
+
* chip shows), and its titles and comparisons say so ("North America · United States only", "rank 2 of 3 (United
|
|
108
|
+
* States only)"). Cleared again when the filters clear. Not for the filter this chart `selects` unless its own rows
|
|
109
|
+
* are narrowed by it too. Absent: the page's own options.filterScope, if any, goes through untouched.
|
|
110
|
+
*/
|
|
111
|
+
scopedBy?: Filter | readonly Filter[];
|
|
103
112
|
/**
|
|
104
113
|
* THE CHART'S OWN CONTROLS AS PAGE STATE - from useBicControls(). For a chart that draws
|
|
105
114
|
* sliders (the What-if projection's rate and horizon): `controls.values` holds every
|
package/dist/zoom-memory.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! @bicharts/chart-host — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; Natural Earth and US Census/TIGER (public domain). Full text: NOTICE in this package. */
|
|
2
2
|
import {
|
|
3
3
|
K
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NJWR3DFK.mjs";
|
|
5
5
|
import "./chunk-GHODWOAL.mjs";
|
|
6
6
|
|
|
7
7
|
// src/zoomMemory/zoomMemory.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.110",
|
|
4
4
|
"description": "Run a BIC-generated D3 chart in any web host: compiles the generated render() function, applies the shared option defaults, resolves mark clicks (through tooltip overlays), owns the selection affordance, and translates row indices between cross-filtered charts. The same contract the BIC Power BI visual implements, minus Power BI. React bindings at @bicharts/chart-host/react.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|