@vitessce/vit-s 3.8.8 → 3.8.9
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/index.js +2 -2
- package/dist-tsc/hooks.js +1 -1
- package/package.json +12 -12
- package/src/hooks.js +1 -1
package/dist/index.js
CHANGED
|
@@ -32251,7 +32251,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
32251
32251
|
CoordinationType$1.HIERARCHY_LEVELS
|
|
32252
32252
|
]
|
|
32253
32253
|
});
|
|
32254
|
-
const version = "3.8.
|
|
32254
|
+
const version = "3.8.9";
|
|
32255
32255
|
const META_VERSION = {
|
|
32256
32256
|
version
|
|
32257
32257
|
};
|
|
@@ -44474,7 +44474,7 @@ function useClosestVitessceContainerSize(ref, sidebarWidth) {
|
|
|
44474
44474
|
clientHeight: componentHeight,
|
|
44475
44475
|
clientWidth: componentWidth
|
|
44476
44476
|
} = ref.current.closest(`.${VITESSCE_CONTAINER}`);
|
|
44477
|
-
setWidth(componentWidth - sidebarWidth);
|
|
44477
|
+
setWidth(componentWidth - (sidebarWidth ?? 0));
|
|
44478
44478
|
setHeight(componentHeight);
|
|
44479
44479
|
}
|
|
44480
44480
|
}
|
package/dist-tsc/hooks.js
CHANGED
|
@@ -148,7 +148,7 @@ export function useClosestVitessceContainerSize(ref, sidebarWidth) {
|
|
|
148
148
|
function onWindowResize() {
|
|
149
149
|
if (ref.current) {
|
|
150
150
|
const { clientHeight: componentHeight, clientWidth: componentWidth, } = ref.current.closest(`.${VITESSCE_CONTAINER}`);
|
|
151
|
-
setWidth(componentWidth - sidebarWidth);
|
|
151
|
+
setWidth(componentWidth - (sidebarWidth ?? 0));
|
|
152
152
|
setHeight(componentHeight);
|
|
153
153
|
}
|
|
154
154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/vit-s",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.9",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"react-error-boundary": "^5.0.0",
|
|
31
31
|
"@placemarkio/flat-drop-files": "^1.0.2",
|
|
32
32
|
"zarrita": "0.5.4",
|
|
33
|
-
"@vitessce/styles": "3.8.
|
|
34
|
-
"@vitessce/abstract": "3.8.
|
|
35
|
-
"@vitessce/error": "3.8.
|
|
36
|
-
"@vitessce/constants-internal": "3.8.
|
|
37
|
-
"@vitessce/plugins": "3.8.
|
|
38
|
-
"@vitessce/schemas": "3.8.
|
|
39
|
-
"@vitessce/utils": "3.8.
|
|
40
|
-
"@vitessce/sets-utils": "3.8.
|
|
41
|
-
"@vitessce/config": "3.8.
|
|
42
|
-
"@vitessce/globals": "3.8.
|
|
33
|
+
"@vitessce/styles": "3.8.9",
|
|
34
|
+
"@vitessce/abstract": "3.8.9",
|
|
35
|
+
"@vitessce/error": "3.8.9",
|
|
36
|
+
"@vitessce/constants-internal": "3.8.9",
|
|
37
|
+
"@vitessce/plugins": "3.8.9",
|
|
38
|
+
"@vitessce/schemas": "3.8.9",
|
|
39
|
+
"@vitessce/utils": "3.8.9",
|
|
40
|
+
"@vitessce/sets-utils": "3.8.9",
|
|
41
|
+
"@vitessce/config": "3.8.9",
|
|
42
|
+
"@vitessce/globals": "3.8.9"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"react-dom": "18.3.1",
|
|
49
49
|
"vite": "^7.0.0",
|
|
50
50
|
"vitest": "^3.1.4",
|
|
51
|
-
"@vitessce/types": "3.8.
|
|
51
|
+
"@vitessce/types": "3.8.9"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
package/src/hooks.js
CHANGED
|
@@ -180,7 +180,7 @@ export function useClosestVitessceContainerSize(ref, sidebarWidth) {
|
|
|
180
180
|
const {
|
|
181
181
|
clientHeight: componentHeight, clientWidth: componentWidth,
|
|
182
182
|
} = ref.current.closest(`.${VITESSCE_CONTAINER}`);
|
|
183
|
-
setWidth(componentWidth - sidebarWidth);
|
|
183
|
+
setWidth(componentWidth - (sidebarWidth ?? 0));
|
|
184
184
|
setHeight(componentHeight);
|
|
185
185
|
}
|
|
186
186
|
}
|