@vitessce/ome-tiff 3.4.14 → 3.5.1
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/{deflate-4dcc312d.js → deflate-d76f90df.js} +1 -1
- package/dist/{index-218883b0.js → index-f018c011.js} +37 -29
- package/dist/index.js +1 -1
- package/dist/{jpeg-9ac0b4cf.js → jpeg-2591b9cb.js} +1 -1
- package/dist/{lerc-5616868b.js → lerc-199ab287.js} +1 -1
- package/dist/{lzw-e1291ac1.js → lzw-1dc5a1fb.js} +1 -1
- package/dist/{packbits-c2a6928c.js → packbits-de305dec.js} +1 -1
- package/dist/{raw-b7d06797.js → raw-b3f361b7.js} +1 -1
- package/dist/{webimage-bab481e0.js → webimage-3d6df3c5.js} +1 -1
- package/package.json +10 -10
|
@@ -68762,7 +68762,7 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
68762
68762
|
return Object.keys || keysShim;
|
|
68763
68763
|
};
|
|
68764
68764
|
var objectKeys$1 = keysShim;
|
|
68765
|
-
var shams$
|
|
68765
|
+
var shams$1 = function hasSymbols() {
|
|
68766
68766
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
68767
68767
|
return false;
|
|
68768
68768
|
}
|
|
@@ -68807,9 +68807,9 @@ var shams$2 = function hasSymbols() {
|
|
|
68807
68807
|
}
|
|
68808
68808
|
return true;
|
|
68809
68809
|
};
|
|
68810
|
-
var hasSymbols$
|
|
68811
|
-
var shams
|
|
68812
|
-
return hasSymbols$
|
|
68810
|
+
var hasSymbols$3 = shams$1;
|
|
68811
|
+
var shams = function hasToStringTagShams() {
|
|
68812
|
+
return hasSymbols$3() && !!Symbol.toStringTag;
|
|
68813
68813
|
};
|
|
68814
68814
|
var esErrors = Error;
|
|
68815
68815
|
var _eval = EvalError;
|
|
@@ -68819,8 +68819,8 @@ var syntax = SyntaxError;
|
|
|
68819
68819
|
var type = TypeError;
|
|
68820
68820
|
var uri = URIError;
|
|
68821
68821
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
68822
|
-
var hasSymbolSham = shams$
|
|
68823
|
-
var hasSymbols$
|
|
68822
|
+
var hasSymbolSham = shams$1;
|
|
68823
|
+
var hasSymbols$2 = function hasNativeSymbols() {
|
|
68824
68824
|
if (typeof origSymbol !== "function") {
|
|
68825
68825
|
return false;
|
|
68826
68826
|
}
|
|
@@ -68836,11 +68836,12 @@ var hasSymbols$3 = function hasNativeSymbols() {
|
|
|
68836
68836
|
return hasSymbolSham();
|
|
68837
68837
|
};
|
|
68838
68838
|
var test = {
|
|
68839
|
+
__proto__: null,
|
|
68839
68840
|
foo: {}
|
|
68840
68841
|
};
|
|
68841
68842
|
var $Object$1 = Object;
|
|
68842
68843
|
var hasProto$1 = function hasProto() {
|
|
68843
|
-
return { __proto__: test }.foo === test.foo && !(
|
|
68844
|
+
return { __proto__: test }.foo === test.foo && !(test instanceof $Object$1);
|
|
68844
68845
|
};
|
|
68845
68846
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
68846
68847
|
var toStr$2 = Object.prototype.toString;
|
|
@@ -68955,7 +68956,7 @@ var ThrowTypeError = $gOPD$2 ? function() {
|
|
|
68955
68956
|
}
|
|
68956
68957
|
}
|
|
68957
68958
|
}() : throwTypeError;
|
|
68958
|
-
var hasSymbols$
|
|
68959
|
+
var hasSymbols$1 = hasSymbols$2();
|
|
68959
68960
|
var hasProto2 = hasProto$1();
|
|
68960
68961
|
var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
|
|
68961
68962
|
return x2.__proto__;
|
|
@@ -68967,7 +68968,7 @@ var INTRINSICS = {
|
|
|
68967
68968
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
|
|
68968
68969
|
"%Array%": Array,
|
|
68969
68970
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
|
|
68970
|
-
"%ArrayIteratorPrototype%": hasSymbols$
|
|
68971
|
+
"%ArrayIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
|
|
68971
68972
|
"%AsyncFromSyncIteratorPrototype%": undefined$1,
|
|
68972
68973
|
"%AsyncFunction%": needsEval,
|
|
68973
68974
|
"%AsyncGenerator%": needsEval,
|
|
@@ -68998,10 +68999,10 @@ var INTRINSICS = {
|
|
|
68998
68999
|
"%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
|
|
68999
69000
|
"%isFinite%": isFinite,
|
|
69000
69001
|
"%isNaN%": isNaN,
|
|
69001
|
-
"%IteratorPrototype%": hasSymbols$
|
|
69002
|
+
"%IteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
|
|
69002
69003
|
"%JSON%": typeof JSON === "object" ? JSON : undefined$1,
|
|
69003
69004
|
"%Map%": typeof Map === "undefined" ? undefined$1 : Map,
|
|
69004
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$
|
|
69005
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
69005
69006
|
"%Math%": Math,
|
|
69006
69007
|
"%Number%": Number,
|
|
69007
69008
|
"%Object%": Object,
|
|
@@ -69014,11 +69015,11 @@ var INTRINSICS = {
|
|
|
69014
69015
|
"%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
|
|
69015
69016
|
"%RegExp%": RegExp,
|
|
69016
69017
|
"%Set%": typeof Set === "undefined" ? undefined$1 : Set,
|
|
69017
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$
|
|
69018
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
69018
69019
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
|
|
69019
69020
|
"%String%": String,
|
|
69020
|
-
"%StringIteratorPrototype%": hasSymbols$
|
|
69021
|
-
"%Symbol%": hasSymbols$
|
|
69021
|
+
"%StringIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
|
|
69022
|
+
"%Symbol%": hasSymbols$1 ? Symbol : undefined$1,
|
|
69022
69023
|
"%SyntaxError%": $SyntaxError$1,
|
|
69023
69024
|
"%ThrowTypeError%": ThrowTypeError,
|
|
69024
69025
|
"%TypedArray%": TypedArray$1,
|
|
@@ -69387,7 +69388,7 @@ var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
|
|
|
69387
69388
|
}
|
|
69388
69389
|
return intrinsic;
|
|
69389
69390
|
};
|
|
69390
|
-
var hasToStringTag$2 = shams
|
|
69391
|
+
var hasToStringTag$2 = shams();
|
|
69391
69392
|
var callBound$1 = callBound$2;
|
|
69392
69393
|
var $toString$1 = callBound$1("Object.prototype.toString");
|
|
69393
69394
|
var isStandardArguments = function isArguments2(value) {
|
|
@@ -69432,7 +69433,7 @@ hasPropertyDescriptors2.hasArrayLengthDefineBug = function hasArrayLengthDefineB
|
|
|
69432
69433
|
};
|
|
69433
69434
|
var hasPropertyDescriptors_1 = hasPropertyDescriptors2;
|
|
69434
69435
|
var keys$1 = objectKeys$1;
|
|
69435
|
-
var
|
|
69436
|
+
var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
|
|
69436
69437
|
var toStr$1 = Object.prototype.toString;
|
|
69437
69438
|
var concat = Array.prototype.concat;
|
|
69438
69439
|
var defineDataProperty2 = defineDataProperty$1;
|
|
@@ -69459,7 +69460,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
|
|
|
69459
69460
|
var defineProperties = function(object2, map2) {
|
|
69460
69461
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
69461
69462
|
var props = keys$1(map2);
|
|
69462
|
-
if (
|
|
69463
|
+
if (hasSymbols2) {
|
|
69463
69464
|
props = concat.call(props, Object.getOwnPropertySymbols(map2));
|
|
69464
69465
|
}
|
|
69465
69466
|
for (var i2 = 0; i2 < props.length; i2 += 1) {
|
|
@@ -69510,10 +69511,6 @@ define$2(polyfill$1, {
|
|
|
69510
69511
|
shim: shim$2
|
|
69511
69512
|
});
|
|
69512
69513
|
var objectIs = polyfill$1;
|
|
69513
|
-
var hasSymbols2 = shams$2;
|
|
69514
|
-
var shams = function hasToStringTagShams2() {
|
|
69515
|
-
return hasSymbols2() && !!Symbol.toStringTag;
|
|
69516
|
-
};
|
|
69517
69514
|
var callBound = callBound$2;
|
|
69518
69515
|
var hasToStringTag$1 = shams();
|
|
69519
69516
|
var has;
|
|
@@ -69720,7 +69717,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
|
|
|
69720
69717
|
};
|
|
69721
69718
|
var toStr = Object.prototype.toString;
|
|
69722
69719
|
var dateClass = "[object Date]";
|
|
69723
|
-
var hasToStringTag = shams
|
|
69720
|
+
var hasToStringTag = shams();
|
|
69724
69721
|
var isDateObject = function isDateObject2(value) {
|
|
69725
69722
|
if (typeof value !== "object" || value === null) {
|
|
69726
69723
|
return false;
|
|
@@ -103685,16 +103682,16 @@ async function getDecoder(fileDirectory) {
|
|
|
103685
103682
|
const Decoder = await importFn();
|
|
103686
103683
|
return new Decoder(fileDirectory);
|
|
103687
103684
|
}
|
|
103688
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
103689
|
-
addDecoder(5, () => import("./lzw-
|
|
103685
|
+
addDecoder([void 0, 1], () => import("./raw-b3f361b7.js").then((m) => m.default));
|
|
103686
|
+
addDecoder(5, () => import("./lzw-1dc5a1fb.js").then((m) => m.default));
|
|
103690
103687
|
addDecoder(6, () => {
|
|
103691
103688
|
throw new Error("old style JPEG compression is not supported.");
|
|
103692
103689
|
});
|
|
103693
|
-
addDecoder(7, () => import("./jpeg-
|
|
103694
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
103695
|
-
addDecoder(32773, () => import("./packbits-
|
|
103696
|
-
addDecoder(34887, () => import("./lerc-
|
|
103697
|
-
addDecoder(50001, () => import("./webimage-
|
|
103690
|
+
addDecoder(7, () => import("./jpeg-2591b9cb.js").then((m) => m.default));
|
|
103691
|
+
addDecoder([8, 32946], () => import("./deflate-d76f90df.js").then((m) => m.default));
|
|
103692
|
+
addDecoder(32773, () => import("./packbits-de305dec.js").then((m) => m.default));
|
|
103693
|
+
addDecoder(34887, () => import("./lerc-199ab287.js").then((m) => m.default));
|
|
103694
|
+
addDecoder(50001, () => import("./webimage-3d6df3c5.js").then((m) => m.default));
|
|
103698
103695
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
103699
103696
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
103700
103697
|
}
|
|
@@ -137613,6 +137610,17 @@ class ImageWrapper {
|
|
|
137613
137610
|
}
|
|
137614
137611
|
return [];
|
|
137615
137612
|
}
|
|
137613
|
+
getChannelIndex(channelSpecifier) {
|
|
137614
|
+
if (typeof channelSpecifier === "number") {
|
|
137615
|
+
return channelSpecifier;
|
|
137616
|
+
}
|
|
137617
|
+
const channelNames = this.getChannelNames();
|
|
137618
|
+
const channelIndex = channelNames.indexOf(channelSpecifier);
|
|
137619
|
+
if (channelIndex === -1) {
|
|
137620
|
+
console.error(`Channel ${channelSpecifier} not found in image.`);
|
|
137621
|
+
}
|
|
137622
|
+
return channelIndex;
|
|
137623
|
+
}
|
|
137616
137624
|
// TODO: support passing a custom color palette array.
|
|
137617
137625
|
getChannelObjects() {
|
|
137618
137626
|
if ("image-label" in this.vivLoader.metadata) {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-f018c011.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
var LercDecode = { exports: {} };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/ome-tiff",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"author": "
|
|
3
|
+
"version": "3.5.1",
|
|
4
|
+
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
|
-
"@vitessce/constants-internal": "3.
|
|
22
|
-
"@vitessce/config": "3.
|
|
23
|
-
"@vitessce/gl": "3.
|
|
24
|
-
"@vitessce/sets-utils": "3.
|
|
25
|
-
"@vitessce/spatial-utils": "3.
|
|
26
|
-
"@vitessce/image-utils": "3.
|
|
27
|
-
"@vitessce/utils": "3.
|
|
28
|
-
"@vitessce/vit-s": "3.
|
|
21
|
+
"@vitessce/constants-internal": "3.5.1",
|
|
22
|
+
"@vitessce/config": "3.5.1",
|
|
23
|
+
"@vitessce/gl": "3.5.1",
|
|
24
|
+
"@vitessce/sets-utils": "3.5.1",
|
|
25
|
+
"@vitessce/spatial-utils": "3.5.1",
|
|
26
|
+
"@vitessce/image-utils": "3.5.1",
|
|
27
|
+
"@vitessce/utils": "3.5.1",
|
|
28
|
+
"@vitessce/vit-s": "3.5.1"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|