@trackunit/react-map 0.2.167 → 0.2.169
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/index.cjs.js +5 -3
- package/index.esm.js +5 -3
- package/package.json +10 -10
package/index.cjs.js
CHANGED
|
@@ -6685,14 +6685,16 @@ const useMarkers = (options) => {
|
|
|
6685
6685
|
}, [cluster, resolvedClusterData]);
|
|
6686
6686
|
// ---- Lazy getBounds with cache ----
|
|
6687
6687
|
const getBounds = react.useMemo(() => createLazyGetter(() => {
|
|
6688
|
-
|
|
6688
|
+
// Outliers and other positioned markers contribute point extents.
|
|
6689
|
+
const boxes = [computeBoundsFromPositions(positionedItems.map(entry => entry.position))];
|
|
6690
|
+
// Clusters contribute their bbox corners, not Position (which is just the imaginary center of its bbox, not an actual member location).
|
|
6689
6691
|
if (cluster !== undefined && cluster.mode === "server") {
|
|
6690
6692
|
const source = resolvedClusterData ?? cluster.data;
|
|
6691
6693
|
for (const c of source) {
|
|
6692
|
-
|
|
6694
|
+
boxes.push(cluster.getBbox(c) ?? computeBoundsFromPositions([cluster.getPosition(c)]));
|
|
6693
6695
|
}
|
|
6694
6696
|
}
|
|
6695
|
-
return
|
|
6697
|
+
return mergeBounds(boxes);
|
|
6696
6698
|
}), [positionedItems, cluster, resolvedClusterData]);
|
|
6697
6699
|
// ---- Counts ----
|
|
6698
6700
|
const counts = react.useMemo(() => ({
|
package/index.esm.js
CHANGED
|
@@ -6684,14 +6684,16 @@ const useMarkers = (options) => {
|
|
|
6684
6684
|
}, [cluster, resolvedClusterData]);
|
|
6685
6685
|
// ---- Lazy getBounds with cache ----
|
|
6686
6686
|
const getBounds = useMemo(() => createLazyGetter(() => {
|
|
6687
|
-
|
|
6687
|
+
// Outliers and other positioned markers contribute point extents.
|
|
6688
|
+
const boxes = [computeBoundsFromPositions(positionedItems.map(entry => entry.position))];
|
|
6689
|
+
// Clusters contribute their bbox corners, not Position (which is just the imaginary center of its bbox, not an actual member location).
|
|
6688
6690
|
if (cluster !== undefined && cluster.mode === "server") {
|
|
6689
6691
|
const source = resolvedClusterData ?? cluster.data;
|
|
6690
6692
|
for (const c of source) {
|
|
6691
|
-
|
|
6693
|
+
boxes.push(cluster.getBbox(c) ?? computeBoundsFromPositions([cluster.getPosition(c)]));
|
|
6692
6694
|
}
|
|
6693
6695
|
}
|
|
6694
|
-
return
|
|
6696
|
+
return mergeBounds(boxes);
|
|
6695
6697
|
}), [positionedItems, cluster, resolvedClusterData]);
|
|
6696
6698
|
// ---- Counts ----
|
|
6697
6699
|
const counts = useMemo(() => ({
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-map",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.169",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/react-components": "3.1.
|
|
11
|
-
"@trackunit/css-class-variance-utilities": "2.0.
|
|
12
|
-
"@trackunit/react-form-components": "2.7.
|
|
13
|
-
"@trackunit/react-core-hooks": "1.22.
|
|
14
|
-
"@trackunit/geo-json-utils": "1.15.
|
|
15
|
-
"@trackunit/i18n-library-translation": "2.5.
|
|
10
|
+
"@trackunit/react-components": "3.1.7",
|
|
11
|
+
"@trackunit/css-class-variance-utilities": "2.0.19",
|
|
12
|
+
"@trackunit/react-form-components": "2.7.9",
|
|
13
|
+
"@trackunit/react-core-hooks": "1.22.4",
|
|
14
|
+
"@trackunit/geo-json-utils": "1.15.52",
|
|
15
|
+
"@trackunit/i18n-library-translation": "2.5.4",
|
|
16
16
|
"react-minimal-pie-chart": "^8.4.0",
|
|
17
|
-
"@trackunit/react-map-adapter-shared": "0.0.
|
|
18
|
-
"@trackunit/react-map-color-utils": "0.0.
|
|
19
|
-
"@trackunit/ui-design-tokens": "1.15.
|
|
17
|
+
"@trackunit/react-map-adapter-shared": "0.0.137",
|
|
18
|
+
"@trackunit/react-map-color-utils": "0.0.112",
|
|
19
|
+
"@trackunit/ui-design-tokens": "1.15.40",
|
|
20
20
|
"@floating-ui/react": "^0.26.25",
|
|
21
21
|
"es-toolkit": "^1.39.10",
|
|
22
22
|
"tailwind-merge": "^2.0.0",
|