@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
@@ -59,7 +59,7 @@ import {
59
59
  sessionViewStateProvider,
60
60
  stripEsmExports,
61
61
  te
62
- } from "./chunk-5W35EISP.mjs";
62
+ } from "./chunk-UUH6S5Q5.mjs";
63
63
  import "./chunk-A2GMXZP7.mjs";
64
64
 
65
65
  // src/trivial.ts
package/dist/react.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  createChartHost,
5
5
  geoFromCache,
6
6
  loadGeo
7
- } from "./chunk-5W35EISP.mjs";
7
+ } from "./chunk-UUH6S5Q5.mjs";
8
8
  import "./chunk-A2GMXZP7.mjs";
9
9
 
10
10
  // src/react.tsx
@@ -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.57",
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",