@bicharts/chart-host 0.6.87 → 0.6.88
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/README.md +10 -0
- package/dist/adapters.mjs +3 -3
- package/dist/{chunk-DTOGTKAJ.mjs → chunk-56IZWXW2.mjs} +1 -1
- package/dist/{chunk-HZNMMRQ3.mjs → chunk-HXH6NIRV.mjs} +28 -5
- package/dist/{chunk-IURROJT7.mjs → chunk-IUXNCX7D.mjs} +1 -1
- package/dist/{chunk-QIRLWJBI.mjs → chunk-IZXVV74H.mjs} +2 -2
- package/dist/{chunk-BQFG5HWZ.mjs → chunk-QHIPRAZK.mjs} +1 -1
- package/dist/{chunk-ZGQURBRJ.mjs → chunk-UBB5LNH4.mjs} +1 -1
- package/dist/{chunk-7HKVV5T5.mjs → chunk-XNS34AMM.mjs} +1 -1
- package/dist/{chunk-MR6TL7QZ.mjs → chunk-YDHXOIAI.mjs} +2 -0
- package/dist/index.mjs +9 -7
- package/dist/legend-fit.mjs +3 -3
- package/dist/page.mjs +4 -4
- package/dist/react.mjs +7 -7
- package/dist/testing.mjs +1 -1
- package/dist/types/contract.d.ts +4 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -267,6 +267,16 @@ would show its selected lines at 38%, which the eye reads as dimmed. Such a char
|
|
|
267
267
|
painted at full opacity. Undeclared charts are unchanged, so alpha used as an encoding (a depth
|
|
268
268
|
cue, a hierarchy level) is never flattened by a fix meant for another chart.
|
|
269
269
|
|
|
270
|
+
**How far the rest dims, per chart.** `options.dimOpacity` (a share of full opacity, `0.01`-`1`;
|
|
271
|
+
`DIM_OPACITY_MIN` is the floor) sets the level for one host without writing CSS, and it is live
|
|
272
|
+
through `setOptions`. The host writes it as `--lch-dim-opacity` on its own container and removes
|
|
273
|
+
only what it wrote, so with the option absent nothing is written and the CSS above decides: the
|
|
274
|
+
stylesheet's `0.25`, or whatever your page sets on the variable.
|
|
275
|
+
|
|
276
|
+
```js
|
|
277
|
+
createChartHost(el, { code, data, options: { dimOpacity: 0.15 } });
|
|
278
|
+
```
|
|
279
|
+
|
|
270
280
|
**Which marks count as selected.** By default a mark is selected when *any* of the rows in its
|
|
271
281
|
`data-row-idx` list is selected, which is what lights a legend swatch together with its series. A
|
|
272
282
|
chart whose marks share rows declares the other rule by stamping
|
package/dist/adapters.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
censusHitBands,
|
|
4
4
|
ensureCrossfilterHitTargets,
|
|
5
5
|
hitBandFlag
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XNS34AMM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
clickWasDrag,
|
|
9
9
|
collectD3GlyphCenters,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
markKeyOf,
|
|
13
13
|
rowIdxsFromMark,
|
|
14
14
|
selectionRuleOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IUXNCX7D.mjs";
|
|
16
16
|
import {
|
|
17
17
|
AXIS_FILTER_CLASS,
|
|
18
18
|
LEGEND_MARK_CLASS,
|
|
19
19
|
MARK_CLASS,
|
|
20
20
|
ROW_IDX_ATTR
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YDHXOIAI.mjs";
|
|
22
22
|
import "./chunk-GHODWOAL.mjs";
|
|
23
23
|
|
|
24
24
|
// src/adapters/types.ts
|
|
@@ -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
|
LASSO_KNOB_KEY
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IZXVV74H.mjs";
|
|
5
5
|
|
|
6
6
|
// src/filterScope.ts
|
|
7
7
|
function viewToken(view) {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
LASSO_OUTLINE_CLASS,
|
|
4
4
|
installLasso
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IZXVV74H.mjs";
|
|
6
6
|
import {
|
|
7
7
|
censusHitBands,
|
|
8
8
|
ensureCrossfilterHitTargets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XNS34AMM.mjs";
|
|
10
10
|
import {
|
|
11
11
|
clearPress,
|
|
12
12
|
clickWasDrag,
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
selectionRuleOf,
|
|
21
21
|
trackPress,
|
|
22
22
|
validRowSet
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IUXNCX7D.mjs";
|
|
24
24
|
import {
|
|
25
25
|
clipWindowOf,
|
|
26
26
|
fitRenderedChart,
|
|
27
27
|
unpinScrolledAxis
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QHIPRAZK.mjs";
|
|
29
29
|
import {
|
|
30
30
|
Fn,
|
|
31
31
|
J3,
|
|
@@ -60,6 +60,7 @@ import {
|
|
|
60
60
|
CONTAINER_SLOT_XF_CLEAR,
|
|
61
61
|
CONTROL_CLASS,
|
|
62
62
|
DIM_OPACITY_DEFAULT,
|
|
63
|
+
DIM_OPACITY_MIN,
|
|
63
64
|
DIM_OPACITY_VAR,
|
|
64
65
|
FLIP_DIRECTION_DEFAULT,
|
|
65
66
|
FLIP_MODE_DEFAULT,
|
|
@@ -78,7 +79,7 @@ import {
|
|
|
78
79
|
XFILTER_REFRESH_EVENT,
|
|
79
80
|
chartOwnsTimeline,
|
|
80
81
|
periodTickSuppressesFeedback
|
|
81
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-YDHXOIAI.mjs";
|
|
82
83
|
|
|
83
84
|
// src/labelContrast.ts
|
|
84
85
|
function parseRGBA(c) {
|
|
@@ -608,6 +609,12 @@ function resolveOptions(p) {
|
|
|
608
609
|
cultureCode: p.cultureCode,
|
|
609
610
|
allowTooltips: p.allowTooltips,
|
|
610
611
|
noDataText: p.noDataText,
|
|
612
|
+
// A finite number is clamped to DIM_OPACITY_MIN-1; absent, blank or junk stays undefined so the stylesheet - and a
|
|
613
|
+
// page's own CSS override - still decides. Never defaulted here: that would override every page's CSS.
|
|
614
|
+
dimOpacity: (() => {
|
|
615
|
+
const n = numberOr(p.dimOpacity, NaN);
|
|
616
|
+
return Number.isFinite(n) ? clamp(n, DIM_OPACITY_MIN, 1) : void 0;
|
|
617
|
+
})(),
|
|
611
618
|
onSelect: p.onSelect,
|
|
612
619
|
// Control gestures (1.10.0). Passed straight through like onSelect: the host owns what a gesture MEANS,
|
|
613
620
|
// and a host that supplies nothing leaves every control behaving exactly as before.
|
|
@@ -2077,6 +2084,7 @@ function createChartHost(container, config) {
|
|
|
2077
2084
|
p.catch(() => {
|
|
2078
2085
|
});
|
|
2079
2086
|
};
|
|
2087
|
+
let dimVarSet = false;
|
|
2080
2088
|
let current = null;
|
|
2081
2089
|
let activeTickEl = null;
|
|
2082
2090
|
let selectionIsPeriod = false;
|
|
@@ -2153,6 +2161,14 @@ function createChartHost(container, config) {
|
|
|
2153
2161
|
const active = !!sel && sel.length > 0;
|
|
2154
2162
|
const dim = active && !selectionIsPeriod;
|
|
2155
2163
|
container.classList?.[dim ? "add" : "remove"](SELECTION_ACTIVE_CLASS);
|
|
2164
|
+
const want = resolved.dimOpacity;
|
|
2165
|
+
if (typeof want === "number") {
|
|
2166
|
+
container.style?.setProperty(DIM_OPACITY_VAR, String(want));
|
|
2167
|
+
dimVarSet = true;
|
|
2168
|
+
} else if (dimVarSet) {
|
|
2169
|
+
container.style?.removeProperty(DIM_OPACITY_VAR);
|
|
2170
|
+
dimVarSet = false;
|
|
2171
|
+
}
|
|
2156
2172
|
const lit = container.querySelectorAll(`.${ACTIVE_TICK_CLASS}`);
|
|
2157
2173
|
for (const t of Array.from(lit)) t.classList?.remove(ACTIVE_TICK_CLASS);
|
|
2158
2174
|
const tickStillDrawn = !!activeTickEl && (typeof container.contains === "function" ? container.contains(activeTickEl) : activeTickEl.isConnected !== false);
|
|
@@ -2580,6 +2596,13 @@ function createChartHost(container, config) {
|
|
|
2580
2596
|
clearPress(container);
|
|
2581
2597
|
disposeLasso();
|
|
2582
2598
|
subs.clear();
|
|
2599
|
+
if (dimVarSet) {
|
|
2600
|
+
try {
|
|
2601
|
+
container.style?.removeProperty(DIM_OPACITY_VAR);
|
|
2602
|
+
} catch {
|
|
2603
|
+
}
|
|
2604
|
+
dimVarSet = false;
|
|
2605
|
+
}
|
|
2583
2606
|
annotationLayer.destroy();
|
|
2584
2607
|
unpinScrolledAxis(container);
|
|
2585
2608
|
flushZoom();
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
gestureWasDrag,
|
|
5
5
|
isInsideControl,
|
|
6
6
|
rowIdxsFromMark
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IUXNCX7D.mjs";
|
|
8
8
|
import {
|
|
9
9
|
AXIS_FILTER_CLASS,
|
|
10
10
|
CONTROL_CLASS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
MARK_CLASS,
|
|
13
13
|
ROW_IDX_ATTR,
|
|
14
14
|
SNAPSHOT_SVG_ATTR
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YDHXOIAI.mjs";
|
|
16
16
|
|
|
17
17
|
// src/lasso.ts
|
|
18
18
|
var LASSO_ROW_CAP = 5e3;
|
|
@@ -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
|
SNAPSHOT_SVG_ATTR
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YDHXOIAI.mjs";
|
|
5
5
|
|
|
6
6
|
// src/fit.ts
|
|
7
7
|
var SCROLL_SLACK_PX = 8;
|
|
@@ -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
|
SNAPSHOT_SVG_ATTR
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YDHXOIAI.mjs";
|
|
5
5
|
|
|
6
6
|
// src/snapshot.ts
|
|
7
7
|
var DEFAULT_TIMEOUT_MS = 2e3;
|
|
@@ -34,6 +34,7 @@ var MARK_SELECTED_CLASS = "lch-mark-selected";
|
|
|
34
34
|
var ACTIVE_TICK_CLASS = "lch-tick-active";
|
|
35
35
|
var DIM_OPACITY_VAR = "--lch-dim-opacity";
|
|
36
36
|
var DIM_OPACITY_DEFAULT = 0.25;
|
|
37
|
+
var DIM_OPACITY_MIN = 0.01;
|
|
37
38
|
function chartOwnsTimeline(container) {
|
|
38
39
|
return !!container && (!!container[CONTAINER_SLOT_XF_CLEAR] || !!container[CONTAINER_SLOT_ANIM_STOP]);
|
|
39
40
|
}
|
|
@@ -97,6 +98,7 @@ export {
|
|
|
97
98
|
ACTIVE_TICK_CLASS,
|
|
98
99
|
DIM_OPACITY_VAR,
|
|
99
100
|
DIM_OPACITY_DEFAULT,
|
|
101
|
+
DIM_OPACITY_MIN,
|
|
100
102
|
chartOwnsTimeline,
|
|
101
103
|
periodTickSuppressesFeedback,
|
|
102
104
|
ANIM_PLAY_SPEED_DEFAULT,
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
svgNaturalSize,
|
|
16
16
|
svgToDataUrl,
|
|
17
17
|
tableHostOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UBB5LNH4.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ANNOTATION_CLASS,
|
|
21
21
|
ANNOTATION_LAYER_CLASS,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
toRGBA,
|
|
98
98
|
toSourceRows,
|
|
99
99
|
valuePlacementFlag
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-HXH6NIRV.mjs";
|
|
101
101
|
import {
|
|
102
102
|
LASSO_AXES_SLOT,
|
|
103
103
|
LASSO_COUNT_CLASS,
|
|
@@ -122,13 +122,13 @@ import {
|
|
|
122
122
|
lassoVerdict,
|
|
123
123
|
pointInShape,
|
|
124
124
|
registerLassoAction
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-IZXVV74H.mjs";
|
|
126
126
|
import {
|
|
127
127
|
MIN_HIT_BAND_PX,
|
|
128
128
|
censusHitBands,
|
|
129
129
|
ensureCrossfilterHitTargets,
|
|
130
130
|
hitBandFlag
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-XNS34AMM.mjs";
|
|
132
132
|
import {
|
|
133
133
|
CONTAINER_SLOT_PRESS_AT,
|
|
134
134
|
DRAG_NOT_CLICK_PX,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
selectionRuleOf,
|
|
154
154
|
trackPress,
|
|
155
155
|
validRowSet
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-IUXNCX7D.mjs";
|
|
157
157
|
import {
|
|
158
158
|
AXIS_PIN_BAND_PAD_PX,
|
|
159
159
|
AXIS_PIN_MAX_BAND_FRACTION,
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
scrollFitFor,
|
|
180
180
|
svgInkReach,
|
|
181
181
|
unpinScrolledAxis
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-QHIPRAZK.mjs";
|
|
183
183
|
import {
|
|
184
184
|
_3,
|
|
185
185
|
l,
|
|
@@ -209,6 +209,7 @@ import {
|
|
|
209
209
|
CONTAINER_SLOT_XF_CLEAR,
|
|
210
210
|
CONTROL_CLASS,
|
|
211
211
|
DIM_OPACITY_DEFAULT,
|
|
212
|
+
DIM_OPACITY_MIN,
|
|
212
213
|
DIM_OPACITY_VAR,
|
|
213
214
|
FLIP_DIRECTION_DEFAULT,
|
|
214
215
|
FLIP_INTERVAL_MAX_MS,
|
|
@@ -236,7 +237,7 @@ import {
|
|
|
236
237
|
chartOwnsTimeline,
|
|
237
238
|
periodTickSuppressesFeedback,
|
|
238
239
|
withoutViewOnlyKeys
|
|
239
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-YDHXOIAI.mjs";
|
|
240
241
|
import "./chunk-GHODWOAL.mjs";
|
|
241
242
|
|
|
242
243
|
// src/optionsVocabulary.ts
|
|
@@ -2161,6 +2162,7 @@ export {
|
|
|
2161
2162
|
DEFAULT_FILTER_MATCH_STYLE,
|
|
2162
2163
|
DEFAULT_MODEL_SUFFIX,
|
|
2163
2164
|
DIM_OPACITY_DEFAULT,
|
|
2165
|
+
DIM_OPACITY_MIN,
|
|
2164
2166
|
DIM_OPACITY_VAR,
|
|
2165
2167
|
DRAG_NOT_CLICK_PX,
|
|
2166
2168
|
DUPLICATE_GENERATE_WINDOW_MS,
|
package/dist/legend-fit.mjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
chartSvgOf,
|
|
4
4
|
tableHostOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UBB5LNH4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
FIT_CONTENT_SELECTOR,
|
|
8
8
|
ctmScaleOf,
|
|
9
9
|
isPhantomBox
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-QHIPRAZK.mjs";
|
|
11
|
+
import "./chunk-YDHXOIAI.mjs";
|
|
12
12
|
import "./chunk-GHODWOAL.mjs";
|
|
13
13
|
|
|
14
14
|
// src/legendFit/legendReconcile.ts
|
package/dist/page.mjs
CHANGED
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
readControls,
|
|
15
15
|
viewFromToken,
|
|
16
16
|
viewToken
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-56IZWXW2.mjs";
|
|
18
|
+
import "./chunk-IZXVV74H.mjs";
|
|
19
|
+
import "./chunk-IUXNCX7D.mjs";
|
|
20
|
+
import "./chunk-YDHXOIAI.mjs";
|
|
21
21
|
import "./chunk-GHODWOAL.mjs";
|
|
22
22
|
export {
|
|
23
23
|
LINKED_HOVER_CLASS,
|
package/dist/react.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
payloadRowReader,
|
|
14
14
|
viewFromToken,
|
|
15
15
|
viewToken
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-56IZWXW2.mjs";
|
|
17
17
|
import {
|
|
18
18
|
assembleD3,
|
|
19
19
|
createChartGroup,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
loadGeo,
|
|
23
23
|
syncMemberSelection,
|
|
24
24
|
toSourceRows
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-HXH6NIRV.mjs";
|
|
26
|
+
import "./chunk-IZXVV74H.mjs";
|
|
27
|
+
import "./chunk-XNS34AMM.mjs";
|
|
28
|
+
import "./chunk-IUXNCX7D.mjs";
|
|
29
|
+
import "./chunk-QHIPRAZK.mjs";
|
|
30
30
|
import "./chunk-KQN5C7SZ.mjs";
|
|
31
31
|
import "./chunk-A2GMXZP7.mjs";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-YDHXOIAI.mjs";
|
|
33
33
|
import "./chunk-GHODWOAL.mjs";
|
|
34
34
|
|
|
35
35
|
// src/react.tsx
|
package/dist/testing.mjs
CHANGED
package/dist/types/contract.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare const MARK_SELECTED_CLASS = "lch-mark-selected";
|
|
|
72
72
|
export declare const ACTIVE_TICK_CLASS = "lch-tick-active";
|
|
73
73
|
export declare const DIM_OPACITY_VAR = "--lch-dim-opacity";
|
|
74
74
|
export declare const DIM_OPACITY_DEFAULT = 0.25;
|
|
75
|
+
export declare const DIM_OPACITY_MIN = 0.01;
|
|
75
76
|
export declare function chartOwnsTimeline(container: any): boolean;
|
|
76
77
|
export declare function periodTickSuppressesFeedback(isAxisTick: boolean, ownsTimeline: boolean): boolean;
|
|
77
78
|
export declare const ANIM_PLAY_SPEED_DEFAULT = 1000;
|
|
@@ -159,6 +160,9 @@ export interface RenderOptions {
|
|
|
159
160
|
cultureCode?: string;
|
|
160
161
|
allowTooltips?: boolean;
|
|
161
162
|
noDataText?: string;
|
|
163
|
+
/** How far a selection dims the marks outside it, as a share of full opacity (DIM_OPACITY_MIN-1). Absent: the
|
|
164
|
+
* stylesheet decides - DIM_OPACITY_DEFAULT, or whatever the page sets on --lch-dim-opacity. */
|
|
165
|
+
dimOpacity?: number;
|
|
162
166
|
animAutoPlay?: boolean;
|
|
163
167
|
animPlaySpeedMs?: number;
|
|
164
168
|
animLoopDelaySec?: number;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { HOST_CONTRACT_VERSION, GEO_POINT_PRECISIONS, MARK_CLASS, LEGEND_MARK_CLASS, AXIS_FILTER_CLASS, ROW_IDX_ATTR, LIFT_SELECTED_CLASS, CONTROL_CLASS, NO_ROW_MARKS_ATTR, SELECTION_RULE_ATTR, SELECTION_RULE_CLICKED_MARKS, MARK_KEY_ATTR, CONTAINER_SLOT_CLICKED_MARKS, SNAPSHOT_SVG_ATTR, XFILTER_REFRESH_EVENT, CONTAINER_SLOT_ANIM_STOP, CONTAINER_SLOT_XF_CLEAR, CONTAINER_SLOT_INITIAL_XF_MARK, CONTAINER_SLOT_UI_STATE, VIEW_ONLY_UI_STATE_KEYS, withoutViewOnlyKeys, HOST_CONTAINER_CLASS, SELECTION_ACTIVE_CLASS, MARK_SELECTED_CLASS, ACTIVE_TICK_CLASS, DIM_OPACITY_VAR, DIM_OPACITY_DEFAULT, chartOwnsTimeline, periodTickSuppressesFeedback, ANIM_PLAY_SPEED_DEFAULT, ANIM_PLAY_SPEED_MIN, ANIM_PLAY_SPEED_MAX, ANIM_LOOP_DELAY_DEFAULT, ANIM_LOOP_DELAY_MIN, ANIM_MAX_IDEAL_FRAMES_DEFAULT, ANIM_MAX_IDEAL_FRAMES_MIN, ANIM_MAX_IDEAL_FRAMES_MAX, ANIMATION_OPTION_KEYS, COLOR_SCALE_SELF_CLAMP_PCT_DEFAULT, COLOR_SCALE_SELF_CLAMP_PCT_MIN, COLOR_SCALE_SELF_CLAMP_PCT_MAX, FLIP_MODE_DEFAULT, FLIP_INTERVAL_MIN_MS, FLIP_INTERVAL_MAX_MS, FLIP_DIRECTION_DEFAULT, APPROXIMATE_POSITIONS_DEFAULT, VALUE_AXIS_BASELINE_DEFAULT, SEASONAL_MARKERS_DEFAULT, MAX_MAP_POINTS_DEFAULT, type GeoPointPrecision, type GeoMapKind, type TimelineStyle, type FlipMode, type FlipDirection, type ApproximatePositions, type ValueAxisBaseline, type SeasonalMarkers, type ColorScaleScope, type RenderOptions, type ViewStateProvider, type ChartControlChange, type XfilterRefreshDetail, } from "./contract";
|
|
1
|
+
export { HOST_CONTRACT_VERSION, GEO_POINT_PRECISIONS, MARK_CLASS, LEGEND_MARK_CLASS, AXIS_FILTER_CLASS, ROW_IDX_ATTR, LIFT_SELECTED_CLASS, CONTROL_CLASS, NO_ROW_MARKS_ATTR, SELECTION_RULE_ATTR, SELECTION_RULE_CLICKED_MARKS, MARK_KEY_ATTR, CONTAINER_SLOT_CLICKED_MARKS, SNAPSHOT_SVG_ATTR, XFILTER_REFRESH_EVENT, CONTAINER_SLOT_ANIM_STOP, CONTAINER_SLOT_XF_CLEAR, CONTAINER_SLOT_INITIAL_XF_MARK, CONTAINER_SLOT_UI_STATE, VIEW_ONLY_UI_STATE_KEYS, withoutViewOnlyKeys, HOST_CONTAINER_CLASS, SELECTION_ACTIVE_CLASS, MARK_SELECTED_CLASS, ACTIVE_TICK_CLASS, DIM_OPACITY_VAR, DIM_OPACITY_DEFAULT, DIM_OPACITY_MIN, chartOwnsTimeline, periodTickSuppressesFeedback, ANIM_PLAY_SPEED_DEFAULT, ANIM_PLAY_SPEED_MIN, ANIM_PLAY_SPEED_MAX, ANIM_LOOP_DELAY_DEFAULT, ANIM_LOOP_DELAY_MIN, ANIM_MAX_IDEAL_FRAMES_DEFAULT, ANIM_MAX_IDEAL_FRAMES_MIN, ANIM_MAX_IDEAL_FRAMES_MAX, ANIMATION_OPTION_KEYS, COLOR_SCALE_SELF_CLAMP_PCT_DEFAULT, COLOR_SCALE_SELF_CLAMP_PCT_MIN, COLOR_SCALE_SELF_CLAMP_PCT_MAX, FLIP_MODE_DEFAULT, FLIP_INTERVAL_MIN_MS, FLIP_INTERVAL_MAX_MS, FLIP_DIRECTION_DEFAULT, APPROXIMATE_POSITIONS_DEFAULT, VALUE_AXIS_BASELINE_DEFAULT, SEASONAL_MARKERS_DEFAULT, MAX_MAP_POINTS_DEFAULT, type GeoPointPrecision, type GeoMapKind, type TimelineStyle, type FlipMode, type FlipDirection, type ApproximatePositions, type ValueAxisBaseline, type SeasonalMarkers, type ColorScaleScope, type RenderOptions, type ViewStateProvider, type ChartControlChange, type XfilterRefreshDetail, } from "./contract";
|
|
2
2
|
export { resolveOptions, type ResolveOptionsInput } from "./defaults";
|
|
3
3
|
export { OPTIONS_VOCABULARY, LIVE_OPTION_KEYS, MAX_MAP_POINTS_MIN, MAX_MAP_POINTS_MAX, LIMIT_COUNT_MAX, wireLimitCount, codeReadsOption, type OptionVocabularyEntry, type OptionTiming, type OptionWire, type OptionKey, } from "./optionsVocabulary";
|
|
4
4
|
export { loadGeo, geoFromCache, registerGeo, registerGeoAsset, geoAssetFor, clearGeoCache, type GeoAssetName, } from "./geoLazy";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.88",
|
|
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",
|