@vitessce/dev 3.4.7 → 3.4.9

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-68f84e2a.js";
2
- import { aQ as BaseDecoder } from "./index-32bd9a42.js";
2
+ import { aQ as BaseDecoder } from "./index-0ed8c3c5.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -1,6 +1,6 @@
1
1
  import React__default from "react";
2
2
  import ReactDOM__default from "react-dom";
3
- import { aT as commonjsGlobal, aU as objectAssign, g as getDefaultExportFromCjs, aV as earcut, aW as getAugmentedNamespace } from "./index-32bd9a42.js";
3
+ import { aT as commonjsGlobal, aU as objectAssign, g as getDefaultExportFromCjs, aV as earcut, aW as getAugmentedNamespace } from "./index-0ed8c3c5.js";
4
4
  function _mergeNamespaces(n, m) {
5
5
  for (var i = 0; i < m.length; i++) {
6
6
  const e = m[i];
@@ -832,10 +832,10 @@ const COMPONENT_COORDINATION_TYPES = {
832
832
  ]
833
833
  };
834
834
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
835
- const version$6 = "3.4.7";
836
- const date$5 = "2024-07-25";
835
+ const version$6 = "3.4.9";
836
+ const date$5 = "2024-07-26";
837
837
  const branch = "changeset-release/main";
838
- const hash$1 = "efed9951";
838
+ const hash$1 = "9582ddcf";
839
839
  const META_VERSION = {
840
840
  note,
841
841
  version: version$6,
@@ -54800,13 +54800,15 @@ function stratifyExpressionData(sampleEdges, sampleSets, sampleSetSelection, exp
54800
54800
  }
54801
54801
  function aggregateStratifiedExpressionData(stratifiedResult, geneSelection) {
54802
54802
  const result = new InternMap([], JSON.stringify);
54803
- [...stratifiedResult.keys()].forEach((cellSetKey) => {
54804
- result.set(cellSetKey, new InternMap([], JSON.stringify));
54805
- [...stratifiedResult.get(cellSetKey).keys()].forEach((sampleSetKey) => {
54806
- const values3 = stratifiedResult.get(cellSetKey).get(sampleSetKey).get(geneSelection[0]);
54807
- result.get(cellSetKey).set(sampleSetKey, values3);
54803
+ if (stratifiedResult) {
54804
+ Array.from(stratifiedResult.keys()).forEach((cellSetKey) => {
54805
+ result.set(cellSetKey, new InternMap([], JSON.stringify));
54806
+ Array.from(stratifiedResult.get(cellSetKey).keys()).forEach((sampleSetKey) => {
54807
+ const values3 = stratifiedResult.get(cellSetKey).get(sampleSetKey).get(geneSelection[0]);
54808
+ result.get(cellSetKey).set(sampleSetKey, values3);
54809
+ });
54808
54810
  });
54809
- });
54811
+ }
54810
54812
  return result;
54811
54813
  }
54812
54814
  var _global = { exports: {} };
@@ -173194,16 +173196,16 @@ async function getDecoder(fileDirectory) {
173194
173196
  const Decoder = await importFn();
173195
173197
  return new Decoder(fileDirectory);
173196
173198
  }
173197
- addDecoder([void 0, 1], () => import("./raw-9f85d96f.js").then((m2) => m2.default));
173198
- addDecoder(5, () => import("./lzw-41b5d461.js").then((m2) => m2.default));
173199
+ addDecoder([void 0, 1], () => import("./raw-2de9b3dd.js").then((m2) => m2.default));
173200
+ addDecoder(5, () => import("./lzw-46930c98.js").then((m2) => m2.default));
173199
173201
  addDecoder(6, () => {
173200
173202
  throw new Error("old style JPEG compression is not supported.");
173201
173203
  });
173202
- addDecoder(7, () => import("./jpeg-af331467.js").then((m2) => m2.default));
173203
- addDecoder([8, 32946], () => import("./deflate-cba4baed.js").then((m2) => m2.default));
173204
- addDecoder(32773, () => import("./packbits-ced3b735.js").then((m2) => m2.default));
173205
- addDecoder(34887, () => import("./lerc-14cfc60f.js").then((m2) => m2.default));
173206
- addDecoder(50001, () => import("./webimage-e2a02c0a.js").then((m2) => m2.default));
173204
+ addDecoder(7, () => import("./jpeg-a37afb5a.js").then((m2) => m2.default));
173205
+ addDecoder([8, 32946], () => import("./deflate-70731d64.js").then((m2) => m2.default));
173206
+ addDecoder(32773, () => import("./packbits-557334b6.js").then((m2) => m2.default));
173207
+ addDecoder(34887, () => import("./lerc-3b3025b9.js").then((m2) => m2.default));
173208
+ addDecoder(50001, () => import("./webimage-4606b137.js").then((m2) => m2.default));
173207
173209
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
173208
173210
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
173209
173211
  }
@@ -213864,7 +213866,7 @@ class ErrorBoundary extends React__default.Component {
213864
213866
  }
213865
213867
  }
213866
213868
  const LazySpatialThree = React__default.lazy(async () => {
213867
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-09e12e99.js");
213869
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-800d0806.js");
213868
213870
  return { default: SpatialWrapper2 };
213869
213871
  });
213870
213872
  const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
@@ -221855,7 +221857,7 @@ const HIGLASS_BUNDLE_VERSION = "1.11.13";
221855
221857
  const HIGLASS_CSS_URL = `https://unpkg.com/${HIGLASS_PKG_NAME}@${HIGLASS_BUNDLE_VERSION}/dist/hglib.css`;
221856
221858
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
221857
221859
  const LazyHiGlassComponent = React__default.lazy(async () => {
221858
- const { HiGlassComponent } = await import("./hglib-a2e7fdb7.js").then((n3) => n3.h);
221860
+ const { HiGlassComponent } = await import("./hglib-aca4af73.js").then((n3) => n3.h);
221859
221861
  return { default: HiGlassComponent };
221860
221862
  });
221861
221863
  const HG_SIZE = 800;
@@ -227186,12 +227188,12 @@ function summarize(iterable, keepZeros) {
227186
227188
  }
227187
227189
  function dotStratifiedExpressionData(stratifiedResult, posThreshold) {
227188
227190
  const result = new InternMap([], JSON.stringify);
227189
- [...stratifiedResult.keys()].forEach((cellSetKey) => {
227191
+ Array.from(stratifiedResult.keys()).forEach((cellSetKey) => {
227190
227192
  result.set(cellSetKey, new InternMap([], JSON.stringify));
227191
- [...stratifiedResult.get(cellSetKey).keys()].forEach((sampleSetKey) => {
227193
+ Array.from(stratifiedResult.get(cellSetKey).keys()).forEach((sampleSetKey) => {
227192
227194
  result.get(cellSetKey).set(sampleSetKey, new InternMap([], JSON.stringify));
227193
227195
  const allGenes = stratifiedResult.get(cellSetKey).get(sampleSetKey);
227194
- [...allGenes.keys()].forEach((geneKey) => {
227196
+ Array.from(allGenes.keys()).forEach((geneKey) => {
227195
227197
  const values3 = allGenes.get(geneKey);
227196
227198
  const exprMean = mean$1(values3);
227197
227199
  const numPos = values3.reduce((acc, val) => val > posThreshold ? acc + 1 : acc, 0);
@@ -227208,9 +227210,9 @@ function dotStratifiedExpressionData(stratifiedResult, posThreshold) {
227208
227210
  }
227209
227211
  function summarizeStratifiedExpressionData(stratifiedResult, keepZeros) {
227210
227212
  const summarizedResult = new InternMap([], JSON.stringify);
227211
- [...stratifiedResult.keys()].forEach((cellSetKey) => {
227213
+ Array.from(stratifiedResult.keys()).forEach((cellSetKey) => {
227212
227214
  summarizedResult.set(cellSetKey, new InternMap([], JSON.stringify));
227213
- [...stratifiedResult.get(cellSetKey).keys()].forEach((sampleSetKey) => {
227215
+ Array.from(stratifiedResult.get(cellSetKey).keys()).forEach((sampleSetKey) => {
227214
227216
  const values3 = stratifiedResult.get(cellSetKey).get(sampleSetKey);
227215
227217
  const summary = summarize(values3, keepZeros);
227216
227218
  summarizedResult.get(cellSetKey).set(sampleSetKey, summary);
@@ -227219,9 +227221,9 @@ function summarizeStratifiedExpressionData(stratifiedResult, keepZeros) {
227219
227221
  return summarizedResult;
227220
227222
  }
227221
227223
  function histogramStratifiedExpressionData(summarizedResult, binCount, yMinProp) {
227222
- const groupSummaries = [...summarizedResult.keys()].map((cellSetKey) => ({
227224
+ const groupSummaries = Array.from(summarizedResult.keys()).map((cellSetKey) => ({
227223
227225
  key: cellSetKey,
227224
- value: [...summarizedResult.get(cellSetKey).keys()].map((sampleSetKey) => ({
227226
+ value: Array.from(summarizedResult.get(cellSetKey).keys()).map((sampleSetKey) => ({
227225
227227
  key: sampleSetKey,
227226
227228
  value: summarizedResult.get(cellSetKey).get(sampleSetKey)
227227
227229
  }))
@@ -279118,9 +279120,9 @@ function useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, exp
279118
279120
  const cellSetToUuid = new InternMap(cellSetSelection?.map((sampleSet) => [sampleSet, v4$1()]), JSON.stringify);
279119
279121
  const sampleSetToUuid = new InternMap(sampleSetSelection?.map((sampleSet) => [sampleSet, v4$1()]), JSON.stringify);
279120
279122
  const result = [];
279121
- [...dotData.keys()].forEach((cellSetKey) => {
279122
- [...dotData.get(cellSetKey).keys()].forEach((sampleSetKey) => {
279123
- [...dotData.get(cellSetKey).get(sampleSetKey).keys()].forEach((geneKey) => {
279123
+ Array.from(dotData.keys()).forEach((cellSetKey) => {
279124
+ Array.from(dotData.get(cellSetKey).keys()).forEach((sampleSetKey) => {
279125
+ Array.from(dotData.get(cellSetKey).get(sampleSetKey).keys()).forEach((geneKey) => {
279124
279126
  const dotObj = dotData.get(cellSetKey).get(sampleSetKey).get(geneKey);
279125
279127
  const featureName = geneKey;
279126
279128
  result.push({
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, c as create, L as Layers, T as Texture, d as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, e as PCFShadowMap, f as VSMShadowMap, h as BufferGeometry, M as Material, i as Color, j as Clock, _ as _extends, k as THREE, G as Group, l as Matrix4, m as TrianglesDrawMode, n as TriangleFanDrawMode, o as TriangleStripDrawMode, p as REVISION, q as Ray$1, r as Plane, E as EventDispatcher, s as MOUSE, t as TOUCH, Q as Quaternion, u as Spherical, v as Loader, w as LoaderUtils, F as FileLoader, x as SpotLight, y as PointLight, D as DirectionalLight, z as MeshBasicMaterial, H as MeshPhysicalMaterial, I as InstancedMesh, J as Object3D, K as TextureLoader, X as ImageBitmapLoader, Y as BufferAttribute, Z as InterleavedBuffer, $ as LinearFilter, a0 as LinearMipmapLinearFilter, a1 as RepeatWrapping, a2 as PointsMaterial, a3 as LineBasicMaterial, a4 as MeshStandardMaterial, a5 as DoubleSide, a6 as PropertyBinding, a7 as SkinnedMesh, a8 as Mesh, a9 as LineSegments, aa as Line$1, ab as LineLoop, ac as Points, ad as MathUtils, ae as Skeleton, af as InterpolateLinear, ag as AnimationClip, ah as Bone, ai as NearestFilter, aj as NearestMipmapNearestFilter, ak as LinearMipmapNearestFilter, al as NearestMipmapLinearFilter, am as ClampToEdgeWrapping, an as MirroredRepeatWrapping, ao as InterpolateDiscrete, ap as FrontSide, aq as InterleavedBufferAttribute, ar as VectorKeyframeTrack, as as QuaternionKeyframeTrack, at as NumberKeyframeTrack, au as Box3, av as Sphere, aw as Interpolant, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, aG as SphereGeometry, aH as Triangle, aI as BackSide, aJ as jsxRuntimeExports, aK as Matrix3, aL as CoordinationType, aM as Data3DTexture, aN as RedFormat, aO as FloatType, aP as getImageSize } from "./index-32bd9a42.js";
1
+ import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, c as create, L as Layers, T as Texture, d as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, e as PCFShadowMap, f as VSMShadowMap, h as BufferGeometry, M as Material, i as Color, j as Clock, _ as _extends, k as THREE, G as Group, l as Matrix4, m as TrianglesDrawMode, n as TriangleFanDrawMode, o as TriangleStripDrawMode, p as REVISION, q as Ray$1, r as Plane, E as EventDispatcher, s as MOUSE, t as TOUCH, Q as Quaternion, u as Spherical, v as Loader, w as LoaderUtils, F as FileLoader, x as SpotLight, y as PointLight, D as DirectionalLight, z as MeshBasicMaterial, H as MeshPhysicalMaterial, I as InstancedMesh, J as Object3D, K as TextureLoader, X as ImageBitmapLoader, Y as BufferAttribute, Z as InterleavedBuffer, $ as LinearFilter, a0 as LinearMipmapLinearFilter, a1 as RepeatWrapping, a2 as PointsMaterial, a3 as LineBasicMaterial, a4 as MeshStandardMaterial, a5 as DoubleSide, a6 as PropertyBinding, a7 as SkinnedMesh, a8 as Mesh, a9 as LineSegments, aa as Line$1, ab as LineLoop, ac as Points, ad as MathUtils, ae as Skeleton, af as InterpolateLinear, ag as AnimationClip, ah as Bone, ai as NearestFilter, aj as NearestMipmapNearestFilter, ak as LinearMipmapNearestFilter, al as NearestMipmapLinearFilter, am as ClampToEdgeWrapping, an as MirroredRepeatWrapping, ao as InterpolateDiscrete, ap as FrontSide, aq as InterleavedBufferAttribute, ar as VectorKeyframeTrack, as as QuaternionKeyframeTrack, at as NumberKeyframeTrack, au as Box3, av as Sphere, aw as Interpolant, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, aG as SphereGeometry, aH as Triangle, aI as BackSide, aJ as jsxRuntimeExports, aK as Matrix3, aL as CoordinationType, aM as Data3DTexture, aN as RedFormat, aO as FloatType, aP as getImageSize } from "./index-0ed8c3c5.js";
2
2
  import * as React from "react";
3
3
  import React__default, { useState, useRef, useEffect, useMemo, forwardRef } from "react";
4
4
  import "react-dom";
@@ -23693,7 +23693,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
23693
23693
  const {
23694
23694
  Text: TextMeshImpl,
23695
23695
  preloadFont
23696
- } = suspend(async () => import("./troika-three-text.esm-93914b1c.js"), []);
23696
+ } = suspend(async () => import("./troika-three-text.esm-a0720761.js"), []);
23697
23697
  const invalidate2 = useThree(({
23698
23698
  invalidate: invalidate3
23699
23699
  }) => invalidate3);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bb, b6, b4, b5, bf, bg, b7, bo, bm, bk, bn, bl, b3, bj, b8, b2, b1, bd, bc, be, bi, bh, ba, bq, b9, bp } from "./index-32bd9a42.js";
1
+ import { bb, b6, b4, b5, bf, bg, b7, bo, bm, bk, bn, bl, b3, bj, b8, b2, b1, bd, bc, be, bi, bh, ba, bq, b9, bp } from "./index-0ed8c3c5.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-32bd9a42.js";
1
+ import { aQ as BaseDecoder } from "./index-0ed8c3c5.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const dctZigZag = new Int32Array([
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-32bd9a42.js";
2
+ import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-0ed8c3c5.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-32bd9a42.js";
1
+ import { aQ as BaseDecoder } from "./index-0ed8c3c5.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-32bd9a42.js";
1
+ import { aQ as BaseDecoder } from "./index-0ed8c3c5.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-32bd9a42.js";
1
+ import { aQ as BaseDecoder } from "./index-0ed8c3c5.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aC as UniformsUtils, aX as MeshDepthMaterial, aY as RGBADepthPacking, aZ as MeshDistanceMaterial, a_ as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, a$ as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, b0 as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-32bd9a42.js";
1
+ import { aC as UniformsUtils, aX as MeshDepthMaterial, aY as RGBADepthPacking, aZ as MeshDistanceMaterial, a_ as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, a$ as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, b0 as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-0ed8c3c5.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  function workerBootstrap() {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-32bd9a42.js";
1
+ import { aQ as BaseDecoder } from "./index-0ed8c3c5.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class WebImageDecoder extends BaseDecoder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/dev",
3
- "version": "3.4.7",
3
+ "version": "3.4.9",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -16,10 +16,10 @@
16
16
  "dist-tsc"
17
17
  ],
18
18
  "dependencies": {
19
- "@vitessce/all": "3.4.7",
20
- "@vitessce/config": "3.4.7",
21
- "@vitessce/constants": "3.4.7",
22
- "@vitessce/export-utils": "3.4.7"
19
+ "@vitessce/all": "3.4.9",
20
+ "@vitessce/config": "3.4.9",
21
+ "@vitessce/constants": "3.4.9",
22
+ "@vitessce/export-utils": "3.4.9"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.0.0",