@vitessce/ome-tiff 4.0.4 → 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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-CQ7r181e.js";
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-A54qchNv.js").then((m) => m.default));
104769
- addDecoder(5, () => import("./lzw-CMAVLsj6.js").then((m) => m.default));
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-BbWvMxS7.js").then((m) => m.default));
104774
- addDecoder([8, 32946], () => import("./deflate-BvKxW_xr.js").then((m) => m.default));
104775
- addDecoder(32773, () => import("./packbits-Dykq6ZJu.js").then((m) => m.default));
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-D1s3952-.js").then(async (m) => {
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-2os33Txg.js").then((m) => m.default));
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
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c, b, O } from "./index-CQ7r181e.js";
1
+ import { c, b, O } from "./index-CiWEQ8Mx.js";
2
2
  export {
3
3
  c as OmeTiffAsObsSegmentationsLoader,
4
4
  b as OmeTiffLoader,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CQ7r181e.js";
1
+ import { B as BaseDecoder } from "./index-CiWEQ8Mx.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -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-CQ7r181e.js";
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() {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CQ7r181e.js";
1
+ import { B as BaseDecoder } from "./index-CiWEQ8Mx.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CQ7r181e.js";
1
+ import { B as BaseDecoder } from "./index-CiWEQ8Mx.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CQ7r181e.js";
1
+ import { B as BaseDecoder } from "./index-CiWEQ8Mx.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CQ7r181e.js";
1
+ import { B as BaseDecoder } from "./index-CiWEQ8Mx.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/ome-tiff",
3
- "version": "4.0.4",
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.4",
22
- "@vitessce/error": "4.0.4",
23
- "@vitessce/gl": "4.0.4",
24
- "@vitessce/abstract": "4.0.4",
25
- "@vitessce/constants-internal": "4.0.4",
26
- "@vitessce/config": "4.0.4",
27
- "@vitessce/sets-utils": "4.0.4",
28
- "@vitessce/spatial-utils": "4.0.4",
29
- "@vitessce/image-utils": "4.0.4",
30
- "@vitessce/utils": "4.0.4"
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",