@bicharts/chart-host 0.5.57 → 0.5.58
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.
|
@@ -69,6 +69,15 @@ function resolveOptions(p2) {
|
|
|
69
69
|
// omission is a missing check, not four mistakes.
|
|
70
70
|
geoPointDest: p2.geoPointDest,
|
|
71
71
|
maxMapPoints: p2.maxMapPoints,
|
|
72
|
+
// FIFTH AND SIXTH OCCURRENCES, and the two that argue hardest for the guard test: both
|
|
73
|
+
// were passed by the visual AND read by the charts, and neither was ever declared here or
|
|
74
|
+
// in the contract - so the contract-vs-whitelist check could not see them either. What
|
|
75
|
+
// found them was scanning the OTHER direction, from the caller and the charts inward.
|
|
76
|
+
// 0 is MEANINGFUL for both ("let the chart choose", "no paging"), so numberOr rather than
|
|
77
|
+
// `|| DEFAULT`, which would turn an explicit 0 into something else. Clamping stays
|
|
78
|
+
// chart-side for the same reason it does for flipIntervalMs.
|
|
79
|
+
geoPointRadiusPx: Math.max(0, numberOr(p2.geoPointRadiusPx, 0)),
|
|
80
|
+
pageSize: Math.max(0, numberOr(p2.pageSize, 0)),
|
|
72
81
|
uiState: p2.uiState,
|
|
73
82
|
setUiState: p2.setUiState,
|
|
74
83
|
backgroundColor: p2.backgroundColor,
|
package/dist/index.mjs
CHANGED
package/dist/react.mjs
CHANGED
package/dist/types/contract.d.ts
CHANGED
|
@@ -100,6 +100,8 @@ export interface RenderOptions {
|
|
|
100
100
|
rolesRefused?: string[];
|
|
101
101
|
} | null;
|
|
102
102
|
maxMapPoints?: number;
|
|
103
|
+
geoPointRadiusPx?: number;
|
|
104
|
+
pageSize?: number;
|
|
103
105
|
approximatePositions?: ApproximatePositions;
|
|
104
106
|
valueAxisBaseline?: ValueAxisBaseline;
|
|
105
107
|
colorScaleLow?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.58",
|
|
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",
|