@bicharts/chart-host 0.5.65 → 0.5.67
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/chunk-GHODWOAL.mjs +35 -0
- package/dist/{chunk-YDFJF2UG.mjs → chunk-ZEEMF4A4.mjs} +676 -228
- package/dist/geo-us-states.mjs +1 -0
- package/dist/geo-us-zip3.mjs +1 -0
- package/dist/geo-world.mjs +1 -0
- package/dist/geo.mjs +1 -0
- package/dist/{geoUsStates.generated-RDB4Y3WQ.mjs → geoUsStates.generated-JEFM6OHO.mjs} +1 -0
- package/dist/{geoUsZip3.generated-HUXUVEQG.mjs → geoUsZip3.generated-VSWL7D6F.mjs} +1 -0
- package/dist/{geoWorld110m.generated-F2NDEZYL.mjs → geoWorld110m.generated-TD2TA7S7.mjs} +1 -0
- package/dist/index.mjs +10 -9
- package/dist/react.mjs +2 -1
- package/package.json +1 -1
package/dist/geo-us-states.mjs
CHANGED
package/dist/geo-us-zip3.mjs
CHANGED
package/dist/geo-world.mjs
CHANGED
package/dist/geo.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
ANIM_PLAY_SPEED_MIN,
|
|
12
12
|
APPROXIMATE_POSITIONS_DEFAULT,
|
|
13
13
|
AXIS_FILTER_CLASS,
|
|
14
|
+
At,
|
|
14
15
|
COLOR_SCALE_SELF_CLAMP_PCT_DEFAULT,
|
|
15
16
|
COLOR_SCALE_SELF_CLAMP_PCT_MAX,
|
|
16
17
|
COLOR_SCALE_SELF_CLAMP_PCT_MIN,
|
|
@@ -18,12 +19,10 @@ import {
|
|
|
18
19
|
CONTAINER_SLOT_INITIAL_XF_MARK,
|
|
19
20
|
CONTAINER_SLOT_UI_STATE,
|
|
20
21
|
CONTAINER_SLOT_XF_CLEAR,
|
|
21
|
-
D,
|
|
22
22
|
DIM_OPACITY_DEFAULT,
|
|
23
23
|
DIM_OPACITY_VAR,
|
|
24
24
|
FIT_CONTENT_SELECTOR,
|
|
25
25
|
FLIP_MODE_DEFAULT,
|
|
26
|
-
G,
|
|
27
26
|
GEO_POINT_PRECISIONS,
|
|
28
27
|
HOST_CONTAINER_CLASS,
|
|
29
28
|
HOST_CONTRACT_VERSION,
|
|
@@ -38,6 +37,7 @@ import {
|
|
|
38
37
|
ROW_IDX_ATTR,
|
|
39
38
|
SCROLL_SLACK_PX,
|
|
40
39
|
SELECTION_ACTIVE_CLASS,
|
|
40
|
+
Tt,
|
|
41
41
|
VALUE_AXIS_BASELINE_DEFAULT,
|
|
42
42
|
XFILTER_REFRESH_EVENT,
|
|
43
43
|
blankRenderFlag,
|
|
@@ -57,12 +57,12 @@ import {
|
|
|
57
57
|
fitRenderedChart,
|
|
58
58
|
geoAssetFor,
|
|
59
59
|
geoFromCache,
|
|
60
|
+
he,
|
|
60
61
|
hitBandFlag,
|
|
61
62
|
isBlankRender,
|
|
62
63
|
isPhantomBox,
|
|
63
64
|
loadGeo,
|
|
64
65
|
measureContainerBoxes,
|
|
65
|
-
ne,
|
|
66
66
|
needsScroll,
|
|
67
67
|
noopViewStateProvider,
|
|
68
68
|
periodTickSuppressesFeedback,
|
|
@@ -75,9 +75,10 @@ import {
|
|
|
75
75
|
sessionViewStateProvider,
|
|
76
76
|
stripEsmExports,
|
|
77
77
|
svgInkReach,
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
ye
|
|
79
|
+
} from "./chunk-ZEEMF4A4.mjs";
|
|
80
80
|
import "./chunk-A2GMXZP7.mjs";
|
|
81
|
+
import "./chunk-GHODWOAL.mjs";
|
|
81
82
|
|
|
82
83
|
// src/trivial.ts
|
|
83
84
|
var META_COLUMNS = /* @__PURE__ */ new Set(["__rowIdx__", "__geoIso__", "__geoLat__", "__geoLon__", "__geoPrecision__"]);
|
|
@@ -820,15 +821,15 @@ function isRealColumn(col) {
|
|
|
820
821
|
return !!col && !isSynthetic(col.name);
|
|
821
822
|
}
|
|
822
823
|
function isSuppressed(col) {
|
|
823
|
-
return
|
|
824
|
+
return At(col).suppressed;
|
|
824
825
|
}
|
|
825
826
|
function resolveAgg(col, requested, auto) {
|
|
826
827
|
const fallback = () => {
|
|
827
|
-
const d =
|
|
828
|
+
const d = he(col);
|
|
828
829
|
return d === "first" ? "count" : d;
|
|
829
830
|
};
|
|
830
831
|
if (auto) return fallback();
|
|
831
|
-
return
|
|
832
|
+
return Tt(col).indexOf(requested) >= 0 ? requested : fallback();
|
|
832
833
|
}
|
|
833
834
|
function toNumber(v) {
|
|
834
835
|
if (v == null || v === "") return null;
|
|
@@ -932,7 +933,7 @@ function computeSelectionCard(payload, selectedRowIdxs, opts = {}) {
|
|
|
932
933
|
}
|
|
933
934
|
const value = reduce(selVals, colAgg, selRaw);
|
|
934
935
|
let sharePct = null;
|
|
935
|
-
if (
|
|
936
|
+
if (ye(col, colAgg) && value != null) {
|
|
936
937
|
const allVals = [];
|
|
937
938
|
const allRaw = [];
|
|
938
939
|
for (let r = 0; r < rows.length; r++) {
|
package/dist/react.mjs
CHANGED
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
createChartHost,
|
|
5
5
|
geoFromCache,
|
|
6
6
|
loadGeo
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZEEMF4A4.mjs";
|
|
8
8
|
import "./chunk-A2GMXZP7.mjs";
|
|
9
|
+
import "./chunk-GHODWOAL.mjs";
|
|
9
10
|
|
|
10
11
|
// src/react.tsx
|
|
11
12
|
import { createContext, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.67",
|
|
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",
|