@vitessce/dev 3.4.0 → 3.4.2

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-3f4e6ef5.js";
2
+ import { aQ as BaseDecoder } from "./index-08d7fc77.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-3f4e6ef5.js";
3
+ import { aT as commonjsGlobal, aU as objectAssign, g as getDefaultExportFromCjs, aV as earcut, aW as getAugmentedNamespace } from "./index-08d7fc77.js";
4
4
  function _mergeNamespaces(n, m) {
5
5
  for (var i = 0; i < m.length; i++) {
6
6
  const e = m[i];
@@ -793,10 +793,10 @@ const COMPONENT_COORDINATION_TYPES = {
793
793
  ]
794
794
  };
795
795
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
796
- const version$6 = "3.4.0";
797
- const date$5 = "2024-05-06";
796
+ const version$6 = "3.4.2";
797
+ const date$5 = "2024-05-08";
798
798
  const branch = "changeset-release/main";
799
- const hash$1 = "e540a905";
799
+ const hash$1 = "4e32867e";
800
800
  const META_VERSION = {
801
801
  note,
802
802
  version: version$6,
@@ -67069,7 +67069,7 @@ function ObsSetsManagerSubscriber(props) {
67069
67069
  setCellSetExpansion([]);
67070
67070
  }
67071
67071
  }, [loaders, dataset]);
67072
- const [{ obsIndex, obsSets: cellSets }, obsSetsStatus, obsSetsUrls] = useObsSetsData(loaders, dataset, true, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor }, { obsSetSelection: cellSetSelection, obsSetColor: cellSetColor }, { obsType });
67072
+ const [{ obsIndex, obsSets: cellSets }, obsSetsStatus, obsSetsUrls] = useObsSetsData(loaders, dataset, false, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor }, { obsSetSelection: cellSetSelection, obsSetColor: cellSetColor }, { obsType });
67073
67073
  const isReady = useReady([obsSetsStatus]);
67074
67074
  const urls2 = useUrls([obsSetsUrls]);
67075
67075
  useEffect(() => {
@@ -170708,16 +170708,16 @@ async function getDecoder(fileDirectory) {
170708
170708
  const Decoder = await importFn();
170709
170709
  return new Decoder(fileDirectory);
170710
170710
  }
170711
- addDecoder([void 0, 1], () => import("./raw-baafe539.js").then((m2) => m2.default));
170712
- addDecoder(5, () => import("./lzw-ecc31650.js").then((m2) => m2.default));
170711
+ addDecoder([void 0, 1], () => import("./raw-14eccf69.js").then((m2) => m2.default));
170712
+ addDecoder(5, () => import("./lzw-7305c5e2.js").then((m2) => m2.default));
170713
170713
  addDecoder(6, () => {
170714
170714
  throw new Error("old style JPEG compression is not supported.");
170715
170715
  });
170716
- addDecoder(7, () => import("./jpeg-683f7553.js").then((m2) => m2.default));
170717
- addDecoder([8, 32946], () => import("./deflate-38905d80.js").then((m2) => m2.default));
170718
- addDecoder(32773, () => import("./packbits-161fd8d5.js").then((m2) => m2.default));
170719
- addDecoder(34887, () => import("./lerc-1ded34f9.js").then((m2) => m2.default));
170720
- addDecoder(50001, () => import("./webimage-83d6f5d0.js").then((m2) => m2.default));
170716
+ addDecoder(7, () => import("./jpeg-0504cfb9.js").then((m2) => m2.default));
170717
+ addDecoder([8, 32946], () => import("./deflate-960f46a9.js").then((m2) => m2.default));
170718
+ addDecoder(32773, () => import("./packbits-e22c5aac.js").then((m2) => m2.default));
170719
+ addDecoder(34887, () => import("./lerc-7a0e88f4.js").then((m2) => m2.default));
170720
+ addDecoder(50001, () => import("./webimage-fb948229.js").then((m2) => m2.default));
170721
170721
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
170722
170722
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
170723
170723
  }
@@ -213572,7 +213572,7 @@ class ErrorBoundary extends React__default.Component {
213572
213572
  }
213573
213573
  }
213574
213574
  const LazySpatialThree = React__default.lazy(async () => {
213575
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-46695ea6.js");
213575
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-b0c1bcbd.js");
213576
213576
  return { default: SpatialWrapper2 };
213577
213577
  });
213578
213578
  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 }) }) }) }));
@@ -221572,7 +221572,7 @@ const HIGLASS_BUNDLE_VERSION = "1.11.13";
221572
221572
  const HIGLASS_CSS_URL = `https://unpkg.com/${HIGLASS_PKG_NAME}@${HIGLASS_BUNDLE_VERSION}/dist/hglib.css`;
221573
221573
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
221574
221574
  const LazyHiGlassComponent = React__default.lazy(async () => {
221575
- const { HiGlassComponent } = await import("./hglib-5a5887c2.js").then((n3) => n3.h);
221575
+ const { HiGlassComponent } = await import("./hglib-05285a88.js").then((n3) => n3.h);
221576
221576
  return { default: HiGlassComponent };
221577
221577
  });
221578
221578
  const HG_SIZE = 800;
@@ -279599,9 +279599,9 @@ function FeatureBarPlot(props) {
279599
279599
  const { yMin, yMax, yUnits, jitter: jitter2, colors: colors2, data: data2, theme, width: width2, height: height2, marginTop = 5, marginRight = 5, marginLeft = 80, marginBottom, obsType, cellHighlight, cellSetSelection, additionalCellSets, cellSetColor, featureType, featureValueType, featureName, onBarSelect, onBarHighlight } = props;
279600
279600
  const setsSave = useMemo(() => {
279601
279601
  const result = /* @__PURE__ */ new Map();
279602
- cellSetSelection.forEach((obsSetPath2) => {
279602
+ cellSetSelection?.forEach((obsSetPath2) => {
279603
279603
  const selectedElement = obsSetPath2[1];
279604
- additionalCellSets.tree[0].children.forEach((child) => {
279604
+ additionalCellSets?.tree?.[0]?.children?.forEach((child) => {
279605
279605
  if (child.name === selectedElement) {
279606
279606
  child.set.forEach(([obsId]) => {
279607
279607
  const info2 = { name: "", id: "", color: [] };
@@ -279617,6 +279617,7 @@ function FeatureBarPlot(props) {
279617
279617
  }
279618
279618
  });
279619
279619
  });
279620
+ return result;
279620
279621
  }, [cellSetSelection, additionalCellSets, cellSetColor]);
279621
279622
  const svgRef = useRef();
279622
279623
  const maxCharactersForLabel = useMemo(() => data2.reduce((acc, val) => {
@@ -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 Loader, r as LoaderUtils, F as FileLoader, s as SpotLight, t as PointLight, D as DirectionalLight, u as MeshBasicMaterial, v as MeshPhysicalMaterial, I as InstancedMesh, w as Object3D, x as TextureLoader, y as ImageBitmapLoader, z as BufferAttribute, E as InterleavedBuffer, H as LinearFilter, J as LinearMipmapLinearFilter, K as RepeatWrapping, Q as PointsMaterial, X as LineBasicMaterial, Y as MeshStandardMaterial, Z as DoubleSide, $ as PropertyBinding, a0 as SkinnedMesh, a1 as Mesh, a2 as LineSegments, a3 as Line$1, a4 as LineLoop, a5 as Points, a6 as MathUtils, a7 as Skeleton, a8 as InterpolateLinear, a9 as AnimationClip, aa as Bone, ab as Quaternion, ac as NearestFilter, ad as NearestMipmapNearestFilter, ae as LinearMipmapNearestFilter, af as NearestMipmapLinearFilter, ag as ClampToEdgeWrapping, ah as MirroredRepeatWrapping, ai as InterpolateDiscrete, aj as FrontSide, ak as InterleavedBufferAttribute, al as VectorKeyframeTrack, am as QuaternionKeyframeTrack, an as NumberKeyframeTrack, ao as Box3, ap as Sphere, aq as Interpolant, ar as SphereGeometry, as as Ray$1, at as Plane, au as EventDispatcher, av as MOUSE, aw as TOUCH, ax as Spherical, ay as InstancedBufferGeometry, az as Float32BufferAttribute, aA as InstancedInterleavedBuffer, aB as WireframeGeometry, aC as ShaderMaterial, aD as UniformsUtils, aE as UniformsLib, aF as Vector4, aG as Line3, 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-3f4e6ef5.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 Loader, r as LoaderUtils, F as FileLoader, s as SpotLight, t as PointLight, D as DirectionalLight, u as MeshBasicMaterial, v as MeshPhysicalMaterial, I as InstancedMesh, w as Object3D, x as TextureLoader, y as ImageBitmapLoader, z as BufferAttribute, E as InterleavedBuffer, H as LinearFilter, J as LinearMipmapLinearFilter, K as RepeatWrapping, Q as PointsMaterial, X as LineBasicMaterial, Y as MeshStandardMaterial, Z as DoubleSide, $ as PropertyBinding, a0 as SkinnedMesh, a1 as Mesh, a2 as LineSegments, a3 as Line$1, a4 as LineLoop, a5 as Points, a6 as MathUtils, a7 as Skeleton, a8 as InterpolateLinear, a9 as AnimationClip, aa as Bone, ab as Quaternion, ac as NearestFilter, ad as NearestMipmapNearestFilter, ae as LinearMipmapNearestFilter, af as NearestMipmapLinearFilter, ag as ClampToEdgeWrapping, ah as MirroredRepeatWrapping, ai as InterpolateDiscrete, aj as FrontSide, ak as InterleavedBufferAttribute, al as VectorKeyframeTrack, am as QuaternionKeyframeTrack, an as NumberKeyframeTrack, ao as Box3, ap as Sphere, aq as Interpolant, ar as SphereGeometry, as as Ray$1, at as Plane, au as EventDispatcher, av as MOUSE, aw as TOUCH, ax as Spherical, ay as InstancedBufferGeometry, az as Float32BufferAttribute, aA as InstancedInterleavedBuffer, aB as WireframeGeometry, aC as ShaderMaterial, aD as UniformsUtils, aE as UniformsLib, aF as Vector4, aG as Line3, 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-08d7fc77.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-73a37aaa.js"), []);
23696
+ } = suspend(async () => import("./troika-three-text.esm-c6a782e5.js"), []);
23697
23697
  const invalidate2 = useThree(({
23698
23698
  invalidate: invalidate3
23699
23699
  }) => invalidate3);
@@ -27286,7 +27286,7 @@ function GeometryAndMesh(props) {
27286
27286
  }
27287
27287
  } else if (!isPresenting) {
27288
27288
  if (materialRef !== null) {
27289
- materialRef.current.material.uniforms.u_physical_Pixel.value = 2;
27289
+ materialRef.current.material.uniforms.u_physical_Pixel.value = 2.5;
27290
27290
  }
27291
27291
  }
27292
27292
  }, [isPresenting]);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bb, b6, b4, b5, bf, bg, b7, bm, bk, bn, bl, b3, bj, b8, b2, b1, bd, bc, be, bi, bh, ba, bp, b9, bo } from "./index-3f4e6ef5.js";
1
+ import { bb, b6, b4, b5, bf, bg, b7, bm, bk, bn, bl, b3, bj, b8, b2, b1, bd, bc, be, bi, bh, ba, bp, b9, bo } from "./index-08d7fc77.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-3f4e6ef5.js";
1
+ import { aQ as BaseDecoder } from "./index-08d7fc77.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-3f4e6ef5.js";
2
+ import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-08d7fc77.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-3f4e6ef5.js";
1
+ import { aQ as BaseDecoder } from "./index-08d7fc77.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-3f4e6ef5.js";
1
+ import { aQ as BaseDecoder } from "./index-08d7fc77.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-3f4e6ef5.js";
1
+ import { aQ as BaseDecoder } from "./index-08d7fc77.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aD as UniformsUtils, aX as MeshDepthMaterial, aY as RGBADepthPacking, aZ as MeshDistanceMaterial, a_ as ShaderChunk, T as Texture, H as LinearFilter, ay as InstancedBufferGeometry, ap as Sphere, ao as Box3, aI as BackSide, Z as DoubleSide, a$ as InstancedBufferAttribute, V as Vector2, aF as Vector4, i as Color, aK as Matrix3, a1 as Mesh, aj as FrontSide, b0 as PlaneGeometry, h as BufferGeometry, az as Float32BufferAttribute, u as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-3f4e6ef5.js";
1
+ import { aD as UniformsUtils, aX as MeshDepthMaterial, aY as RGBADepthPacking, aZ as MeshDistanceMaterial, a_ as ShaderChunk, T as Texture, H as LinearFilter, ay as InstancedBufferGeometry, ap as Sphere, ao as Box3, aI as BackSide, Z as DoubleSide, a$ as InstancedBufferAttribute, V as Vector2, aF as Vector4, i as Color, aK as Matrix3, a1 as Mesh, aj as FrontSide, b0 as PlaneGeometry, h as BufferGeometry, az as Float32BufferAttribute, u as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-08d7fc77.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-3f4e6ef5.js";
1
+ import { aQ as BaseDecoder } from "./index-08d7fc77.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.0",
3
+ "version": "3.4.2",
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.0",
20
- "@vitessce/config": "3.4.0",
21
- "@vitessce/constants": "3.4.0",
22
- "@vitessce/export-utils": "3.4.0"
19
+ "@vitessce/all": "3.4.2",
20
+ "@vitessce/config": "3.4.2",
21
+ "@vitessce/constants": "3.4.2",
22
+ "@vitessce/export-utils": "3.4.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.0.0",