@bicharts/chart-host 0.5.19 → 0.5.20
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 +5 -0
- package/dist/{chunk-P2NWAYI7.mjs → chunk-TBRWWGJW.mjs} +19 -1
- package/dist/index.mjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/types/contract.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# @bicharts/chart-host
|
|
2
2
|
|
|
3
|
+
> **Make Generative AI for Charts *Better*.**
|
|
4
|
+
|
|
5
|
+
That is what **RegiaBI** is for; this package is the part that runs the result in your page,
|
|
6
|
+
so a generated chart behaves the same wherever it lands.
|
|
7
|
+
|
|
3
8
|
Run a D3 chart generated by
|
|
4
9
|
[Business Intelligence Champions](https://bizintelligencechampions.com) (BIC) in any web page.
|
|
5
10
|
|
|
@@ -88,7 +88,25 @@ function resolveOptions(p2) {
|
|
|
88
88
|
animMaxIdealFrames: clamp(Number(p2.animMaxIdealFrames) || ANIM_MAX_IDEAL_FRAMES_DEFAULT, ANIM_MAX_IDEAL_FRAMES_MIN, ANIM_MAX_IDEAL_FRAMES_MAX),
|
|
89
89
|
animStopAtEnd: !!p2.animStopAtEnd,
|
|
90
90
|
filtersDuringPlay: !!p2.filtersDuringPlay,
|
|
91
|
-
animTimelineStyle: (p2.animTimelineStyle || "").toString()
|
|
91
|
+
animTimelineStyle: (p2.animTimelineStyle || "").toString(),
|
|
92
|
+
// ---- card deck ----
|
|
93
|
+
// SECOND OCCURRENCE OF THE animLoopDelaySec BUG, six lines above (2026-08-13). The
|
|
94
|
+
// visual passed both of these, the generated code read both correctly, and this
|
|
95
|
+
// function — a whitelist that returns a NEW object — dropped them in between. Symptoms
|
|
96
|
+
// were exactly what the two defaults produce: flipSync undefined -> `!== false` -> true
|
|
97
|
+
// -> always synced, so "Flip Cards Together = Off" did nothing and the deck kept its
|
|
98
|
+
// shared strip; flipIntervalMs undefined -> `+(undefined || 0)` -> 0 -> the timer branch
|
|
99
|
+
// never ran, so a 1000 ms interval produced no flips. Two dead knobs, one omission.
|
|
100
|
+
//
|
|
101
|
+
// flipSync DEFAULTS TRUE, so it cannot use `!!p.flipSync` — that would read a missing
|
|
102
|
+
// value as "independent" and hand every deck twelve control strips. Absent means
|
|
103
|
+
// synced; only an explicit false switches it.
|
|
104
|
+
flipSync: p2.flipSync === void 0 || p2.flipSync === null ? true : !!p2.flipSync,
|
|
105
|
+
// 0 is MEANINGFUL here (manual only) and is the default, so numberOr — not
|
|
106
|
+
// `|| DEFAULT` — for the same reason animLoopDelaySec uses it. Clamping stays
|
|
107
|
+
// chart-side: the archetype already clamps 500..120000 and two clamps in two
|
|
108
|
+
// repositories is how they end up disagreeing.
|
|
109
|
+
flipIntervalMs: Math.max(0, numberOr(p2.flipIntervalMs, 0))
|
|
92
110
|
};
|
|
93
111
|
}
|
|
94
112
|
|
package/dist/index.mjs
CHANGED
package/dist/react.mjs
CHANGED
package/dist/types/contract.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.20",
|
|
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",
|