@vitessce/vit-s 3.8.8 → 3.8.10
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 +27 -42
- package/dist-tsc/hooks.js +1 -1
- package/package.json +12 -12
- package/src/hooks.js +1 -1
package/dist/index.js
CHANGED
|
@@ -22313,8 +22313,8 @@ function useQuery(options, queryClient) {
|
|
|
22313
22313
|
}
|
|
22314
22314
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
22315
22315
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
22316
|
-
var root
|
|
22317
|
-
var Symbol$1 = root
|
|
22316
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
22317
|
+
var Symbol$1 = root.Symbol;
|
|
22318
22318
|
var objectProto$d = Object.prototype;
|
|
22319
22319
|
var hasOwnProperty$a = objectProto$d.hasOwnProperty;
|
|
22320
22320
|
var nativeObjectToString$1 = objectProto$d.toString;
|
|
@@ -22439,7 +22439,7 @@ function isFunction(value) {
|
|
|
22439
22439
|
var tag = baseGetTag(value);
|
|
22440
22440
|
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
22441
22441
|
}
|
|
22442
|
-
var coreJsData = root
|
|
22442
|
+
var coreJsData = root["__core-js_shared__"];
|
|
22443
22443
|
var maskSrcKey = function() {
|
|
22444
22444
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
22445
22445
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
@@ -22484,7 +22484,7 @@ function getNative(object, key) {
|
|
|
22484
22484
|
var value = getValue(object, key);
|
|
22485
22485
|
return baseIsNative(value) ? value : void 0;
|
|
22486
22486
|
}
|
|
22487
|
-
var WeakMap$1 = getNative(root
|
|
22487
|
+
var WeakMap$1 = getNative(root, "WeakMap");
|
|
22488
22488
|
var objectCreate = Object.create;
|
|
22489
22489
|
var baseCreate = /* @__PURE__ */ function() {
|
|
22490
22490
|
function object() {
|
|
@@ -22657,7 +22657,7 @@ function stubFalse() {
|
|
|
22657
22657
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
22658
22658
|
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
22659
22659
|
var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
|
22660
|
-
var Buffer$1 = moduleExports$2 ? root
|
|
22660
|
+
var Buffer$1 = moduleExports$2 ? root.Buffer : void 0;
|
|
22661
22661
|
var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
|
22662
22662
|
var isBuffer$1 = nativeIsBuffer || stubFalse;
|
|
22663
22663
|
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$5 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
@@ -22844,7 +22844,7 @@ ListCache.prototype["delete"] = listCacheDelete;
|
|
|
22844
22844
|
ListCache.prototype.get = listCacheGet;
|
|
22845
22845
|
ListCache.prototype.has = listCacheHas;
|
|
22846
22846
|
ListCache.prototype.set = listCacheSet;
|
|
22847
|
-
var Map$1 = getNative(root
|
|
22847
|
+
var Map$1 = getNative(root, "Map");
|
|
22848
22848
|
function mapCacheClear() {
|
|
22849
22849
|
this.size = 0;
|
|
22850
22850
|
this.__data__ = {
|
|
@@ -23038,7 +23038,7 @@ Stack.prototype.set = stackSet;
|
|
|
23038
23038
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
23039
23039
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
23040
23040
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
23041
|
-
var Buffer2 = moduleExports ? root
|
|
23041
|
+
var Buffer2 = moduleExports ? root.Buffer : void 0;
|
|
23042
23042
|
Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
23043
23043
|
function cloneBuffer(buffer, isDeep) {
|
|
23044
23044
|
{
|
|
@@ -23077,9 +23077,9 @@ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
|
23077
23077
|
function getAllKeys(object) {
|
|
23078
23078
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
23079
23079
|
}
|
|
23080
|
-
var DataView$1 = getNative(root
|
|
23081
|
-
var Promise$1 = getNative(root
|
|
23082
|
-
var Set$1 = getNative(root
|
|
23080
|
+
var DataView$1 = getNative(root, "DataView");
|
|
23081
|
+
var Promise$1 = getNative(root, "Promise");
|
|
23082
|
+
var Set$1 = getNative(root, "Set");
|
|
23083
23083
|
var mapTag$4 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$4 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
23084
23084
|
var dataViewTag$3 = "[object DataView]";
|
|
23085
23085
|
var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
|
|
@@ -23114,7 +23114,7 @@ function initCloneArray(array) {
|
|
|
23114
23114
|
}
|
|
23115
23115
|
return result;
|
|
23116
23116
|
}
|
|
23117
|
-
var Uint8Array$1 = root
|
|
23117
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
23118
23118
|
function cloneArrayBuffer(arrayBuffer) {
|
|
23119
23119
|
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
23120
23120
|
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
@@ -23624,7 +23624,7 @@ function createBaseEach(eachFunc, fromRight) {
|
|
|
23624
23624
|
}
|
|
23625
23625
|
var baseEach = createBaseEach(baseForOwn);
|
|
23626
23626
|
var now = function() {
|
|
23627
|
-
return root
|
|
23627
|
+
return root.Date.now();
|
|
23628
23628
|
};
|
|
23629
23629
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
23630
23630
|
var nativeMax$1 = Math.max, nativeMin = Math.min;
|
|
@@ -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.10";
|
|
32255
32255
|
const META_VERSION = {
|
|
32256
32256
|
version
|
|
32257
32257
|
};
|
|
@@ -34899,9 +34899,6 @@ class Location {
|
|
|
34899
34899
|
return new Location(this.store, decodeURIComponent(new URL(path, root2).pathname));
|
|
34900
34900
|
}
|
|
34901
34901
|
}
|
|
34902
|
-
function root(store) {
|
|
34903
|
-
return new Location(store ?? /* @__PURE__ */ new Map());
|
|
34904
|
-
}
|
|
34905
34902
|
class Group extends Location {
|
|
34906
34903
|
constructor(store, path, metadata) {
|
|
34907
34904
|
super(store, path);
|
|
@@ -36087,7 +36084,7 @@ class SpatialDataAutoConfig extends AbstractAutoConfig {
|
|
|
36087
36084
|
return relPath.match(/^(tables|table|images|labels|shapes|points)\/([^/]*)$/);
|
|
36088
36085
|
});
|
|
36089
36086
|
availableElements.forEach(({ path, attrs }) => {
|
|
36090
|
-
var _a3, _b2, _c2, _d2, _e2
|
|
36087
|
+
var _a3, _b2, _c2, _d2, _e2;
|
|
36091
36088
|
const relPath = path.substring(1);
|
|
36092
36089
|
const firstCoordinateSystem = (_e2 = (_d2 = (_c2 = (_b2 = (_a3 = attrs == null ? void 0 : attrs.multiscales) == null ? void 0 : _a3[0]) == null ? void 0 : _b2.coordinateTransformations) == null ? void 0 : _c2[0]) == null ? void 0 : _d2.output) == null ? void 0 : _e2.name;
|
|
36093
36090
|
if (relPath.match(/^(images)\/([^/]*)$/)) {
|
|
@@ -36105,13 +36102,7 @@ class SpatialDataAutoConfig extends AbstractAutoConfig {
|
|
|
36105
36102
|
};
|
|
36106
36103
|
}
|
|
36107
36104
|
if (relPath.match(/^(shapes)\/([^/]*)$/)) {
|
|
36108
|
-
options.
|
|
36109
|
-
path: relPath,
|
|
36110
|
-
coordinateSystem: firstCoordinateSystem
|
|
36111
|
-
};
|
|
36112
|
-
}
|
|
36113
|
-
if (relPath.match(/^(points)\/([^/]*)$/)) {
|
|
36114
|
-
options.obsPoints = {
|
|
36105
|
+
options.obsSegmentations = {
|
|
36115
36106
|
path: relPath,
|
|
36116
36107
|
coordinateSystem: firstCoordinateSystem
|
|
36117
36108
|
};
|
|
@@ -36125,21 +36116,6 @@ class SpatialDataAutoConfig extends AbstractAutoConfig {
|
|
|
36125
36116
|
// region: null,
|
|
36126
36117
|
};
|
|
36127
36118
|
}
|
|
36128
|
-
const hasObs = tableEls.find((el) => el.path === `${path}/obs`);
|
|
36129
|
-
if (hasObs) {
|
|
36130
|
-
const columnOrder = (_f2 = hasObs.attrs) == null ? void 0 : _f2["column-order"];
|
|
36131
|
-
options.obsSets = {
|
|
36132
|
-
// region: null,
|
|
36133
|
-
tablePath: relPath,
|
|
36134
|
-
obsSets: columnOrder.map((c) => ({
|
|
36135
|
-
// TODO: determine whether this column is string/categorical.
|
|
36136
|
-
// TODO: determine whether this column contains too many
|
|
36137
|
-
// categories to make sense to consider a cell set.
|
|
36138
|
-
path: `${hasObs.path.substring(1)}/${c}`,
|
|
36139
|
-
name: c
|
|
36140
|
-
}))
|
|
36141
|
-
};
|
|
36142
|
-
}
|
|
36143
36119
|
}
|
|
36144
36120
|
});
|
|
36145
36121
|
return options;
|
|
@@ -36294,8 +36270,16 @@ async function parsedUrlToZmetadata(parsedUrl) {
|
|
|
36294
36270
|
store = await withConsolidated(initialStore, { metadataKey: "zmetadata" });
|
|
36295
36271
|
}
|
|
36296
36272
|
const contents = store.contents();
|
|
36273
|
+
const consolidatedRoot = await open(store, { kind: "group" });
|
|
36297
36274
|
promises = contents.map(async (value) => {
|
|
36298
|
-
|
|
36275
|
+
let item;
|
|
36276
|
+
try {
|
|
36277
|
+
item = await open(consolidatedRoot.resolve(value.path), { kind: value.kind });
|
|
36278
|
+
} catch {
|
|
36279
|
+
item = {
|
|
36280
|
+
attrs: {}
|
|
36281
|
+
};
|
|
36282
|
+
}
|
|
36299
36283
|
return {
|
|
36300
36284
|
...value,
|
|
36301
36285
|
attrs: item.attrs
|
|
@@ -36326,9 +36310,10 @@ async function parsedUrlToZmetadata(parsedUrl) {
|
|
|
36326
36310
|
// Note: For spatialData, we assume the store is always consolidated.
|
|
36327
36311
|
// TODO: throw error if spatialdata + not consolidated?
|
|
36328
36312
|
];
|
|
36313
|
+
const storeRoot = await open(store, { kind: "group" });
|
|
36329
36314
|
promises = keysToTry.map(async (k) => {
|
|
36330
36315
|
try {
|
|
36331
|
-
const item = await open(
|
|
36316
|
+
const item = await open(storeRoot.resolve(k));
|
|
36332
36317
|
return {
|
|
36333
36318
|
path: k,
|
|
36334
36319
|
kind: item.kind,
|
|
@@ -44474,7 +44459,7 @@ function useClosestVitessceContainerSize(ref, sidebarWidth) {
|
|
|
44474
44459
|
clientHeight: componentHeight,
|
|
44475
44460
|
clientWidth: componentWidth
|
|
44476
44461
|
} = ref.current.closest(`.${VITESSCE_CONTAINER}`);
|
|
44477
|
-
setWidth(componentWidth - sidebarWidth);
|
|
44462
|
+
setWidth(componentWidth - (sidebarWidth ?? 0));
|
|
44478
44463
|
setHeight(componentHeight);
|
|
44479
44464
|
}
|
|
44480
44465
|
}
|
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.10",
|
|
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.10",
|
|
34
|
+
"@vitessce/abstract": "3.8.10",
|
|
35
|
+
"@vitessce/error": "3.8.10",
|
|
36
|
+
"@vitessce/constants-internal": "3.8.10",
|
|
37
|
+
"@vitessce/plugins": "3.8.10",
|
|
38
|
+
"@vitessce/schemas": "3.8.10",
|
|
39
|
+
"@vitessce/utils": "3.8.10",
|
|
40
|
+
"@vitessce/sets-utils": "3.8.10",
|
|
41
|
+
"@vitessce/config": "3.8.10",
|
|
42
|
+
"@vitessce/globals": "3.8.10"
|
|
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.10"
|
|
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
|
}
|