@bicharts/chart-host 0.5.5 → 0.5.7
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/{geo-point-cities.mjs → chunk-RENIKQVS.mjs} +1169 -4
- package/dist/geo.mjs +3 -3
- package/dist/index.mjs +3 -8
- package/dist/react.mjs +1 -1
- package/dist/types/index.d.ts +2 -4
- package/package.json +2 -7
- package/dist/chunk-F2FXYQK6.mjs +0 -1172
- package/dist/types/geo-point-cities.d.ts +0 -1
package/dist/geo.mjs
CHANGED
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
WORLD_110M
|
|
9
9
|
} from "./chunk-ABGDJ3NJ.mjs";
|
|
10
|
-
import {
|
|
11
|
-
US_ZIP3
|
|
12
|
-
} from "./chunk-D3N3JUMK.mjs";
|
|
13
10
|
import {
|
|
14
11
|
US_STATES
|
|
15
12
|
} from "./chunk-75ZJSYIF.mjs";
|
|
13
|
+
import {
|
|
14
|
+
US_ZIP3
|
|
15
|
+
} from "./chunk-D3N3JUMK.mjs";
|
|
16
16
|
|
|
17
17
|
// src/geo.ts
|
|
18
18
|
function geoForKind(geoKind) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
|
+
A3,
|
|
3
4
|
ANIM_MAX_IDEAL_FRAMES_DEFAULT,
|
|
4
5
|
ANIM_MAX_IDEAL_FRAMES_MAX,
|
|
5
6
|
ANIM_MAX_IDEAL_FRAMES_MIN,
|
|
@@ -18,7 +19,6 @@ import {
|
|
|
18
19
|
GEO_POINT_PRECISIONS,
|
|
19
20
|
HOST_CONTAINER_CLASS,
|
|
20
21
|
HOST_CONTRACT_VERSION,
|
|
21
|
-
J,
|
|
22
22
|
LEGEND_MARK_CLASS,
|
|
23
23
|
MARK_CLASS,
|
|
24
24
|
MARK_SELECTED_CLASS,
|
|
@@ -34,21 +34,17 @@ import {
|
|
|
34
34
|
geoAssetFor,
|
|
35
35
|
geoFromCache,
|
|
36
36
|
loadGeo,
|
|
37
|
-
ma,
|
|
38
37
|
registerGeo,
|
|
39
38
|
registerGeoAsset,
|
|
40
39
|
requiredD3Plugins,
|
|
41
40
|
resolveOptions,
|
|
42
41
|
stripEsmExports
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-RENIKQVS.mjs";
|
|
44
43
|
import "./chunk-A2GMXZP7.mjs";
|
|
45
44
|
|
|
46
45
|
// src/index.ts
|
|
47
46
|
function registerCityTable(packed) {
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
function isCityTableLoaded() {
|
|
51
|
-
return J();
|
|
47
|
+
A3(packed);
|
|
52
48
|
}
|
|
53
49
|
export {
|
|
54
50
|
ANIM_MAX_IDEAL_FRAMES_DEFAULT,
|
|
@@ -83,7 +79,6 @@ export {
|
|
|
83
79
|
explainRenderFailure,
|
|
84
80
|
geoAssetFor,
|
|
85
81
|
geoFromCache,
|
|
86
|
-
isCityTableLoaded,
|
|
87
82
|
loadGeo,
|
|
88
83
|
registerCityTable,
|
|
89
84
|
registerGeo,
|
package/dist/react.mjs
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
export * from "./contract";
|
|
2
2
|
export { resolveOptions, type ResolveOptionsInput } from "./defaults";
|
|
3
3
|
export { loadGeo, geoFromCache, registerGeo, registerGeoAsset, geoAssetFor, clearGeoCache, type GeoAssetName, } from "./geoLazy";
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
4
|
+
/** REPLACE the bundled city gazetteer with another packed table. Rarely needed — see the
|
|
5
|
+
* note above registerCityTable in shape-core's geoPoint.ts before using it. */
|
|
6
6
|
export declare function registerCityTable(packed: string): void;
|
|
7
|
-
/** True once a placement table is registered, i.e. the city tier can return coordinates. */
|
|
8
|
-
export declare function isCityTableLoaded(): boolean;
|
|
9
7
|
export { buildRenderPayload, type RenderPayload, type GeoPointBinding } from "./payload";
|
|
10
8
|
export { createChartHost, compileRenderFn, stripEsmExports, requiredD3Plugins, explainRenderFailure, type ChartHost, type ChartHostConfig, type RenderFn } from "./host";
|
|
11
9
|
export { createMarkResolver, type MarkResolver, type MarkResolverEnv } from "./selection";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
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",
|
|
@@ -39,12 +39,7 @@
|
|
|
39
39
|
"import": "./dist/geo-us-zip3.mjs",
|
|
40
40
|
"default": "./dist/geo-us-zip3.mjs"
|
|
41
41
|
},
|
|
42
|
-
"./package.json": "./package.json"
|
|
43
|
-
"./geo/point-cities": {
|
|
44
|
-
"types": "./dist/types/geo-point-cities.d.ts",
|
|
45
|
-
"import": "./dist/geo-point-cities.mjs",
|
|
46
|
-
"default": "./dist/geo-point-cities.mjs"
|
|
47
|
-
}
|
|
42
|
+
"./package.json": "./package.json"
|
|
48
43
|
},
|
|
49
44
|
"files": [
|
|
50
45
|
"dist",
|