@vitessce/image-utils 3.5.1 → 3.5.3
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-07dc0cca.js → deflate-8571803b.js} +1 -1
- package/dist/{index-f9f51d7d.js → index-93bb5c05.js} +8 -24
- package/dist/index.js +1 -1
- package/dist/{jpeg-3a14feff.js → jpeg-0ecb3084.js} +1 -1
- package/dist/{lerc-33357b1d.js → lerc-ba23f988.js} +1 -1
- package/dist/{lzw-6e2a6d58.js → lzw-10a67c5f.js} +1 -1
- package/dist/{packbits-f0813b05.js → packbits-e306803f.js} +1 -1
- package/dist/{raw-f146a8e7.js → raw-4787e9a9.js} +1 -1
- package/dist/{webimage-509735bc.js → webimage-2e9db874.js} +1 -1
- package/dist-tsc/ImageWrapper.js +1 -1
- package/package.json +4 -4
- package/src/ImageWrapper.ts +1 -1
|
@@ -119106,16 +119106,16 @@ function addDecoder(cases, importFn) {
|
|
|
119106
119106
|
}
|
|
119107
119107
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
119108
119108
|
}
|
|
119109
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
119110
|
-
addDecoder(5, () => import("./lzw-
|
|
119109
|
+
addDecoder([void 0, 1], () => import("./raw-4787e9a9.js").then((m) => m.default));
|
|
119110
|
+
addDecoder(5, () => import("./lzw-10a67c5f.js").then((m) => m.default));
|
|
119111
119111
|
addDecoder(6, () => {
|
|
119112
119112
|
throw new Error("old style JPEG compression is not supported.");
|
|
119113
119113
|
});
|
|
119114
|
-
addDecoder(7, () => import("./jpeg-
|
|
119115
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
119116
|
-
addDecoder(32773, () => import("./packbits-
|
|
119117
|
-
addDecoder(34887, () => import("./lerc-
|
|
119118
|
-
addDecoder(50001, () => import("./webimage-
|
|
119114
|
+
addDecoder(7, () => import("./jpeg-0ecb3084.js").then((m) => m.default));
|
|
119115
|
+
addDecoder([8, 32946], () => import("./deflate-8571803b.js").then((m) => m.default));
|
|
119116
|
+
addDecoder(32773, () => import("./packbits-e306803f.js").then((m) => m.default));
|
|
119117
|
+
addDecoder(34887, () => import("./lerc-ba23f988.js").then((m) => m.default));
|
|
119118
|
+
addDecoder(50001, () => import("./webimage-2e9db874.js").then((m) => m.default));
|
|
119119
119119
|
function decodeRowAcc(row, stride) {
|
|
119120
119120
|
let length2 = row.length - stride;
|
|
119121
119121
|
let offset = 0;
|
|
@@ -128459,12 +128459,6 @@ const DTYPE_VALUES = {
|
|
|
128459
128459
|
cast: (data) => new Float32Array(data)
|
|
128460
128460
|
}
|
|
128461
128461
|
};
|
|
128462
|
-
var RENDERING_MODES = /* @__PURE__ */ ((RENDERING_MODES2) => {
|
|
128463
|
-
RENDERING_MODES2["MAX_INTENSITY_PROJECTION"] = "Maximum Intensity Projection";
|
|
128464
|
-
RENDERING_MODES2["MIN_INTENSITY_PROJECTION"] = "Minimum Intensity Projection";
|
|
128465
|
-
RENDERING_MODES2["ADDITIVE"] = "Additive";
|
|
128466
|
-
return RENDERING_MODES2;
|
|
128467
|
-
})(RENDERING_MODES || {});
|
|
128468
128462
|
const apply_transparent_color = `vec4 apply_transparent_color(vec3 color, vec3 transparentColor, bool useTransparentColor, float opacity){
|
|
128469
128463
|
return vec4(color, (color == transparentColor && useTransparentColor) ? 0. : opacity);
|
|
128470
128464
|
}
|
|
@@ -133170,16 +133164,6 @@ class BitmaskLayer2 extends XRLayer {
|
|
|
133170
133164
|
}
|
|
133171
133165
|
BitmaskLayer2.layerName = "BitmaskLayer";
|
|
133172
133166
|
BitmaskLayer2.defaultProps = defaultProps;
|
|
133173
|
-
const DEFAULT_RASTER_DOMAIN_TYPE = "Min/Max";
|
|
133174
|
-
({
|
|
133175
|
-
visible: true,
|
|
133176
|
-
colormap: null,
|
|
133177
|
-
opacity: 1,
|
|
133178
|
-
domainType: DEFAULT_RASTER_DOMAIN_TYPE,
|
|
133179
|
-
transparentColor: [0, 0, 0],
|
|
133180
|
-
renderingMode: RENDERING_MODES.ADDITIVE,
|
|
133181
|
-
use3d: false
|
|
133182
|
-
});
|
|
133183
133167
|
function getSourceFromLoader(loader, level) {
|
|
133184
133168
|
const { data } = loader;
|
|
133185
133169
|
const source = Array.isArray(data) ? data[level || data.length - 1] : data;
|
|
@@ -133575,7 +133559,7 @@ class ImageWrapper {
|
|
|
133575
133559
|
}
|
|
133576
133560
|
getDtype() {
|
|
133577
133561
|
const loader = this.vivLoader;
|
|
133578
|
-
const source = getSourceFromLoader(loader);
|
|
133562
|
+
const source = getSourceFromLoader(loader, void 0);
|
|
133579
133563
|
if ("dtype" in source) {
|
|
133580
133564
|
return source.dtype;
|
|
133581
133565
|
}
|
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 } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-93bb5c05.js";
|
|
3
3
|
import "react";
|
|
4
4
|
const LercParameters = {
|
|
5
5
|
Version: 0,
|
package/dist-tsc/ImageWrapper.js
CHANGED
|
@@ -211,7 +211,7 @@ export default class ImageWrapper {
|
|
|
211
211
|
}
|
|
212
212
|
getDtype() {
|
|
213
213
|
const loader = this.vivLoader;
|
|
214
|
-
const source = getSourceFromLoader(loader);
|
|
214
|
+
const source = getSourceFromLoader(loader, undefined);
|
|
215
215
|
if ('dtype' in source) {
|
|
216
216
|
return source.dtype;
|
|
217
217
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/image-utils",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hms-dbmi/viv": "~0.16.0",
|
|
20
|
-
"@vitessce/types": "3.5.
|
|
21
|
-
"@vitessce/spatial-utils": "3.5.
|
|
22
|
-
"@vitessce/utils": "3.5.
|
|
20
|
+
"@vitessce/types": "3.5.3",
|
|
21
|
+
"@vitessce/spatial-utils": "3.5.3",
|
|
22
|
+
"@vitessce/utils": "3.5.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"vite": "^4.3.0",
|
package/src/ImageWrapper.ts
CHANGED
|
@@ -329,7 +329,7 @@ export default class ImageWrapper implements AbstractImageWrapper {
|
|
|
329
329
|
|
|
330
330
|
getDtype(): string | undefined {
|
|
331
331
|
const loader = this.vivLoader;
|
|
332
|
-
const source = getSourceFromLoader(loader) as any;
|
|
332
|
+
const source = getSourceFromLoader(loader, undefined) as any;
|
|
333
333
|
if ('dtype' in source) {
|
|
334
334
|
return source.dtype as string;
|
|
335
335
|
}
|