@vitessce/ome-tiff 4.0.3 → 4.0.5
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-DTEVP_rG.js → deflate-np6gHRbh.js} +1 -1
- package/dist/{index-DoIS_HTD.js → index-CiWEQ8Mx.js} +46 -11
- package/dist/index.js +1 -1
- package/dist/{jpeg-BT_LZHvf.js → jpeg-Bp1i56Ab.js} +1 -1
- package/dist/{lerc-DjBGL13Z.js → lerc-3WJW9dLU.js} +1 -1
- package/dist/{lzw-s7jEehlR.js → lzw-DOmBhfF8.js} +1 -1
- package/dist/{packbits-CiI17GIG.js → packbits-Day8SQEk.js} +1 -1
- package/dist/{raw-CKcSMPsO.js → raw-ZDPY7q_j.js} +1 -1
- package/dist/{webimage-hIYaSYhx.js → webimage-DjGAt__8.js} +1 -1
- package/package.json +11 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-CiWEQ8Mx.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -102833,6 +102833,20 @@ function requireDistEs6() {
|
|
|
102833
102833
|
var distEs6Exports$2 = requireDistEs6();
|
|
102834
102834
|
var distEs6Exports$1 = requireDistEs6$1();
|
|
102835
102835
|
var distEs6Exports = requireDistEs6$2();
|
|
102836
|
+
function runSelectionWithBusySignal(onBusy, work) {
|
|
102837
|
+
if (typeof onBusy !== "function" || typeof requestAnimationFrame !== "function") {
|
|
102838
|
+
work();
|
|
102839
|
+
return;
|
|
102840
|
+
}
|
|
102841
|
+
onBusy(true);
|
|
102842
|
+
requestAnimationFrame(() => setTimeout(() => {
|
|
102843
|
+
try {
|
|
102844
|
+
work();
|
|
102845
|
+
} finally {
|
|
102846
|
+
onBusy(false);
|
|
102847
|
+
}
|
|
102848
|
+
}, 0));
|
|
102849
|
+
}
|
|
102836
102850
|
const EDIT_TYPE_ADD = "addFeature";
|
|
102837
102851
|
const EDIT_TYPE_CLEAR = "clearFeatures";
|
|
102838
102852
|
class ClickableDrawPolygonByDraggingMode extends distEs6Exports.DrawPolygonByDraggingMode {
|
|
@@ -102847,7 +102861,8 @@ const MODE_MAP = {
|
|
|
102847
102861
|
const defaultProps$f = {
|
|
102848
102862
|
layerIds: [],
|
|
102849
102863
|
onSelect: () => {
|
|
102850
|
-
}
|
|
102864
|
+
},
|
|
102865
|
+
onSelectionBusy: null
|
|
102851
102866
|
};
|
|
102852
102867
|
const EMPTY_DATA = {
|
|
102853
102868
|
type: "FeatureCollection",
|
|
@@ -102939,11 +102954,12 @@ class SelectionLayer extends CompositeLayer {
|
|
|
102939
102954
|
selectedFeatureIndexes: [],
|
|
102940
102955
|
data: EMPTY_DATA,
|
|
102941
102956
|
onEdit: ({ updatedData, editType }) => {
|
|
102957
|
+
const { onSelectionBusy } = this.props;
|
|
102942
102958
|
if (editType === EDIT_TYPE_ADD) {
|
|
102943
102959
|
const { coordinates: coordinates2 } = updatedData.features[0].geometry;
|
|
102944
|
-
this._selectPolygonObjects(coordinates2);
|
|
102960
|
+
runSelectionWithBusySignal(onSelectionBusy, () => this._selectPolygonObjects(coordinates2));
|
|
102945
102961
|
} else if (editType === EDIT_TYPE_CLEAR) {
|
|
102946
|
-
this._selectEmpty();
|
|
102962
|
+
runSelectionWithBusySignal(onSelectionBusy, () => this._selectEmpty());
|
|
102947
102963
|
}
|
|
102948
102964
|
},
|
|
102949
102965
|
_subLayerProps: {
|
|
@@ -104765,22 +104781,22 @@ async function getDecoder(fileDirectory) {
|
|
|
104765
104781
|
const Decoder = await importFn();
|
|
104766
104782
|
return new Decoder(fileDirectory);
|
|
104767
104783
|
}
|
|
104768
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
104769
|
-
addDecoder(5, () => import("./lzw-
|
|
104784
|
+
addDecoder([void 0, 1], () => import("./raw-ZDPY7q_j.js").then((m) => m.default));
|
|
104785
|
+
addDecoder(5, () => import("./lzw-DOmBhfF8.js").then((m) => m.default));
|
|
104770
104786
|
addDecoder(6, () => {
|
|
104771
104787
|
throw new Error("old style JPEG compression is not supported.");
|
|
104772
104788
|
});
|
|
104773
|
-
addDecoder(7, () => import("./jpeg-
|
|
104774
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
104775
|
-
addDecoder(32773, () => import("./packbits-
|
|
104789
|
+
addDecoder(7, () => import("./jpeg-Bp1i56Ab.js").then((m) => m.default));
|
|
104790
|
+
addDecoder([8, 32946], () => import("./deflate-np6gHRbh.js").then((m) => m.default));
|
|
104791
|
+
addDecoder(32773, () => import("./packbits-Day8SQEk.js").then((m) => m.default));
|
|
104776
104792
|
addDecoder(
|
|
104777
104793
|
34887,
|
|
104778
|
-
() => import("./lerc-
|
|
104794
|
+
() => import("./lerc-3WJW9dLU.js").then(async (m) => {
|
|
104779
104795
|
await m.zstd.init();
|
|
104780
104796
|
return m;
|
|
104781
104797
|
}).then((m) => m.default)
|
|
104782
104798
|
);
|
|
104783
|
-
addDecoder(50001, () => import("./webimage-
|
|
104799
|
+
addDecoder(50001, () => import("./webimage-DjGAt__8.js").then((m) => m.default));
|
|
104784
104800
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
104785
104801
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
104786
104802
|
}
|
|
@@ -141814,7 +141830,26 @@ class ImageWrapper {
|
|
|
141814
141830
|
}
|
|
141815
141831
|
return true;
|
|
141816
141832
|
}
|
|
141817
|
-
|
|
141833
|
+
// TODO: make stripPhysicalSizes the default behavior,
|
|
141834
|
+
// and remove it as a parameter, once it is no longer
|
|
141835
|
+
// used by spatial-accelerated and spatial-three.
|
|
141836
|
+
getData(stripPhysicalSizes = true) {
|
|
141837
|
+
if (stripPhysicalSizes) {
|
|
141838
|
+
const { data } = this.vivLoader;
|
|
141839
|
+
const newData = data.map((d) => {
|
|
141840
|
+
if ("meta" in d) {
|
|
141841
|
+
const { meta } = d;
|
|
141842
|
+
if (meta && "physicalSizes" in meta) {
|
|
141843
|
+
const newMeta = { ...meta, physicalSizes: void 0 };
|
|
141844
|
+
const clone2 = Object.create(Object.getPrototypeOf(d));
|
|
141845
|
+
Object.assign(clone2, d, { meta: newMeta });
|
|
141846
|
+
return clone2;
|
|
141847
|
+
}
|
|
141848
|
+
}
|
|
141849
|
+
return d;
|
|
141850
|
+
});
|
|
141851
|
+
return newData;
|
|
141852
|
+
}
|
|
141818
141853
|
return this.vivLoader.data;
|
|
141819
141854
|
}
|
|
141820
141855
|
getModelMatrix() {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.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-CiWEQ8Mx.js";
|
|
3
3
|
var LercDecode = { exports: {} };
|
|
4
4
|
var hasRequiredLercDecode;
|
|
5
5
|
function requireLercDecode() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/ome-tiff",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
|
-
"@vitessce/globals": "4.0.
|
|
22
|
-
"@vitessce/error": "4.0.
|
|
23
|
-
"@vitessce/abstract": "4.0.
|
|
24
|
-
"@vitessce/constants-internal": "4.0.
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/utils": "4.0.
|
|
21
|
+
"@vitessce/globals": "4.0.5",
|
|
22
|
+
"@vitessce/error": "4.0.5",
|
|
23
|
+
"@vitessce/abstract": "4.0.5",
|
|
24
|
+
"@vitessce/constants-internal": "4.0.5",
|
|
25
|
+
"@vitessce/gl": "4.0.5",
|
|
26
|
+
"@vitessce/config": "4.0.5",
|
|
27
|
+
"@vitessce/sets-utils": "4.0.5",
|
|
28
|
+
"@vitessce/spatial-utils": "4.0.5",
|
|
29
|
+
"@vitessce/utils": "4.0.5",
|
|
30
|
+
"@vitessce/image-utils": "4.0.5"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|