vitessce 3.2.1 → 3.3.0

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,4 +1,4 @@
1
- import { B as o } from "./index-d25ae44c.js";
1
+ import { B as o } from "./index-fdca6760.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class s extends o {
@@ -1,17 +1,17 @@
1
- import { B as r } from "./index-d25ae44c.js";
1
+ import { B as r } from "./index-fdca6760.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class m extends r {
5
5
  constructor() {
6
- if (super(), typeof createImageBitmap == "undefined")
6
+ if (super(), typeof createImageBitmap > "u")
7
7
  throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");
8
- if (typeof document == "undefined" && typeof OffscreenCanvas == "undefined")
8
+ if (typeof document > "u" && typeof OffscreenCanvas > "u")
9
9
  throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");
10
10
  }
11
11
  async decode(d, n) {
12
12
  const o = new Blob([n]), e = await createImageBitmap(o);
13
13
  let t;
14
- typeof document != "undefined" ? (t = document.createElement("canvas"), t.width = e.width, t.height = e.height) : t = new OffscreenCanvas(e.width, e.height);
14
+ typeof document < "u" ? (t = document.createElement("canvas"), t.width = e.width, t.height = e.height) : t = new OffscreenCanvas(e.width, e.height);
15
15
  const a = t.getContext("2d");
16
16
  return a.drawImage(e, 0, 0), a.getImageData(0, 0, e.width, e.height).data.buffer;
17
17
  }
@@ -0,0 +1,22 @@
1
+ import { p as n } from "./pako.esm-856454b6-9892b637.js";
2
+ var t;
3
+ const s = (t = class {
4
+ constructor(e = 1) {
5
+ if (e < -1 || e > 9)
6
+ throw new Error("Invalid zlib compression level, it should be between -1 and 9");
7
+ this.level = e;
8
+ }
9
+ static fromConfig({ level: e }) {
10
+ return new t(e);
11
+ }
12
+ encode(e) {
13
+ return n.deflate(e, { level: this.level });
14
+ }
15
+ decode(e, r) {
16
+ const o = n.inflate(e);
17
+ return r !== void 0 ? (r.set(o), r) : o;
18
+ }
19
+ }, t.codecId = "zlib", t);
20
+ export {
21
+ s as default
22
+ };