@vitessce/dev 3.6.6 → 3.6.7

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 { g as getDefaultExportFromCjs, aV as requireAssign, aW as require_export, aX as require_core, aY as require_fails, aZ as require_toObject, a_ as require_objectKeys, a$ as require_cof, b0 as require_wks, b1 as require_iterators, b2 as requireWeb_dom_iterable, b3 as requireEs6_string_iterator, b4 as require_anObject, b5 as require_hide, b6 as require_ctx, b7 as require_toLength, b8 as require_global, b9 as require_objectDp, ba as require_descriptors, bb as require_isObject, bc as require_objectCreate, bd as require_iterDefine, be as require_iterStep, bf as require_meta, bg as require_isArray, bh as require_iobject, bi as require_setToStringTag, bj as require_aFunction, bk as requireIterator, bl as require_propertyDesc, bm as require_root, bn as require_baseGetTag, bo as requireIsObjectLike, bp as requireIsObject, bq as requireEs6_symbol, br as requireDefineProperty, bs as require_toIobject, bt as require_objectGopd, bu as require_html, bv as require_domCreate, bw as require_library, bx as requireSymbol, by as require_objectPie, bz as require_has, bA as require_redefine, bB as require_objectAssign, bC as getAugmentedNamespace, bD as requirePropTypes, aI as jsxRuntimeExports } from "./index-D61tgG8z.js";
1
+ import { g as getDefaultExportFromCjs, aV as requireAssign, aW as require_export, aX as require_core, aY as require_fails, aZ as require_toObject, a_ as require_objectKeys, a$ as require_cof, b0 as require_wks, b1 as require_iterators, b2 as requireWeb_dom_iterable, b3 as requireEs6_string_iterator, b4 as require_anObject, b5 as require_hide, b6 as require_ctx, b7 as require_toLength, b8 as require_global, b9 as require_objectDp, ba as require_descriptors, bb as require_isObject, bc as require_objectCreate, bd as require_iterDefine, be as require_iterStep, bf as require_meta, bg as require_isArray, bh as require_iobject, bi as require_setToStringTag, bj as require_aFunction, bk as requireIterator, bl as require_propertyDesc, bm as require_root, bn as require_baseGetTag, bo as requireIsObjectLike, bp as requireIsObject, bq as requireEs6_symbol, br as requireDefineProperty, bs as require_toIobject, bt as require_objectGopd, bu as require_html, bv as require_domCreate, bw as require_library, bx as requireSymbol, by as require_objectPie, bz as require_has, bA as require_redefine, bB as require_objectAssign, bC as getAugmentedNamespace, bD as requirePropTypes, aI as jsxRuntimeExports } from "./index-YthrVSEK.js";
2
2
  import React__default from "react";
3
3
  var lib = {};
4
4
  var assignExports = requireAssign();
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { aP as BaseDecoder } from "./index-D61tgG8z.js";
2
+ import { aP as BaseDecoder } from "./index-YthrVSEK.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -1,7 +1,7 @@
1
1
  import * as React$7 from "react";
2
2
  import React__default, { isValidElement, PureComponent, Component, createElement, createContext, createRef } from "react";
3
3
  import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
4
- import { aS as commonjsGlobal$1, aT as requireObjectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-D61tgG8z.js";
4
+ import { aS as commonjsGlobal$1, aT as requireObjectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-YthrVSEK.js";
5
5
  var promise = {};
6
6
  var hasRequiredPromise;
7
7
  function requirePromise() {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, V as VSMShadowMap, b as PCFShadowMap, B as BasicShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, c as Vector3, d as Vector2, C as Clock, W as WebGLRenderer, e as Camera, f as BufferGeometry, M as Material, L as Layers, T as Texture, h as RGBAFormat, U as UnsignedByteType, i as Color, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, E as EventDispatcher, p as MOUSE, q as TOUCH, r as Spherical, Q as Quaternion, s as Ray$1, t as Plane, u as Loader, v as LoaderUtils, F as FileLoader, w as MeshPhysicalMaterial, x as SpotLight, y as PointLight, D as DirectionalLight, I as InstancedMesh, z as Object3D, H as TextureLoader, J as ImageBitmapLoader, K as BufferAttribute, X as InterleavedBuffer, Y as LinearMipmapLinearFilter, Z as NearestMipmapLinearFilter, $ as LinearMipmapNearestFilter, a0 as NearestMipmapNearestFilter, a1 as LinearFilter, a2 as NearestFilter, a3 as RepeatWrapping, a4 as MirroredRepeatWrapping, a5 as ClampToEdgeWrapping, a6 as PointsMaterial, a7 as LineBasicMaterial, a8 as MeshStandardMaterial, a9 as DoubleSide, aa as MeshBasicMaterial, ab as PropertyBinding, ac as SkinnedMesh, ad as Mesh, ae as LineSegments, af as Line$1, ag as LineLoop, ah as Points, ai as MathUtils, aj as Skeleton, ak as InterpolateDiscrete, al as InterpolateLinear, am as AnimationClip, an as Bone, ao as InterleavedBufferAttribute, ap as VectorKeyframeTrack, aq as QuaternionKeyframeTrack, ar as NumberKeyframeTrack, as as FrontSide, at as Interpolant, au as Box3, av as Sphere, aw as InstancedBufferGeometry, ax as Float32BufferAttribute, ay as InstancedInterleavedBuffer, az as WireframeGeometry, aA as ShaderMaterial, aB as UniformsUtils, aC as UniformsLib, aD as Vector4, aE as Line3, aF as SphereGeometry, aG as Triangle, aH as BackSide, aI as jsxRuntimeExports, aJ as Matrix3, aK as CoordinationType, aL as Data3DTexture, aM as RedFormat, aN as FloatType, aO as getImageSize } from "./index-D61tgG8z.js";
1
+ import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, V as VSMShadowMap, b as PCFShadowMap, B as BasicShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, c as Vector3, d as Vector2, C as Clock, W as WebGLRenderer, e as Camera, f as BufferGeometry, M as Material, L as Layers, T as Texture, h as RGBAFormat, U as UnsignedByteType, i as Color, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, E as EventDispatcher, p as MOUSE, q as TOUCH, r as Spherical, Q as Quaternion, s as Ray$1, t as Plane, u as Loader, v as LoaderUtils, F as FileLoader, w as MeshPhysicalMaterial, x as SpotLight, y as PointLight, D as DirectionalLight, I as InstancedMesh, z as Object3D, H as TextureLoader, J as ImageBitmapLoader, K as BufferAttribute, X as InterleavedBuffer, Y as LinearMipmapLinearFilter, Z as NearestMipmapLinearFilter, $ as LinearMipmapNearestFilter, a0 as NearestMipmapNearestFilter, a1 as LinearFilter, a2 as NearestFilter, a3 as RepeatWrapping, a4 as MirroredRepeatWrapping, a5 as ClampToEdgeWrapping, a6 as PointsMaterial, a7 as LineBasicMaterial, a8 as MeshStandardMaterial, a9 as DoubleSide, aa as MeshBasicMaterial, ab as PropertyBinding, ac as SkinnedMesh, ad as Mesh, ae as LineSegments, af as Line$1, ag as LineLoop, ah as Points, ai as MathUtils, aj as Skeleton, ak as InterpolateDiscrete, al as InterpolateLinear, am as AnimationClip, an as Bone, ao as InterleavedBufferAttribute, ap as VectorKeyframeTrack, aq as QuaternionKeyframeTrack, ar as NumberKeyframeTrack, as as FrontSide, at as Interpolant, au as Box3, av as Sphere, aw as InstancedBufferGeometry, ax as Float32BufferAttribute, ay as InstancedInterleavedBuffer, az as WireframeGeometry, aA as ShaderMaterial, aB as UniformsUtils, aC as UniformsLib, aD as Vector4, aE as Line3, aF as SphereGeometry, aG as Triangle, aH as BackSide, aI as jsxRuntimeExports, aJ as Matrix3, aK as CoordinationType, aL as Data3DTexture, aM as RedFormat, aN as FloatType, aO as getImageSize } from "./index-YthrVSEK.js";
2
2
  import * as React from "react";
3
3
  import React__default, { useReducer, useRef, useEffect, useLayoutEffect, useDebugValue, useState, useMemo, forwardRef } from "react";
4
4
  var constants = { exports: {} };
@@ -23637,7 +23637,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
23637
23637
  const {
23638
23638
  Text: TextMeshImpl,
23639
23639
  preloadFont
23640
- } = suspend(async () => import("./troika-three-text.esm-BfAAV-gt.js"), []);
23640
+ } = suspend(async () => import("./troika-three-text.esm-C-vPhIB6.js"), []);
23641
23641
  const invalidate2 = useThree(({
23642
23642
  invalidate: invalidate3
23643
23643
  }) => invalidate3);
@@ -1321,7 +1321,7 @@ const COMPONENT_COORDINATION_TYPES = {
1321
1321
  CoordinationType$2.HIERARCHY_LEVELS
1322
1322
  ]
1323
1323
  };
1324
- const version$6 = "3.6.6";
1324
+ const version$6 = "3.6.7";
1325
1325
  const META_VERSION = {
1326
1326
  version: version$6
1327
1327
  };
@@ -224943,22 +224943,22 @@ async function getDecoder(fileDirectory) {
224943
224943
  const Decoder = await importFn();
224944
224944
  return new Decoder(fileDirectory);
224945
224945
  }
224946
- addDecoder([void 0, 1], () => import("./raw-Bkb_uDeI.js").then((m2) => m2.default));
224947
- addDecoder(5, () => import("./lzw-D1Wj-fPn.js").then((m2) => m2.default));
224946
+ addDecoder([void 0, 1], () => import("./raw-BYhalBdp.js").then((m2) => m2.default));
224947
+ addDecoder(5, () => import("./lzw-DokUd_oP.js").then((m2) => m2.default));
224948
224948
  addDecoder(6, () => {
224949
224949
  throw new Error("old style JPEG compression is not supported.");
224950
224950
  });
224951
- addDecoder(7, () => import("./jpeg-Cs7W3198.js").then((m2) => m2.default));
224952
- addDecoder([8, 32946], () => import("./deflate-FwmZeGjt.js").then((m2) => m2.default));
224953
- addDecoder(32773, () => import("./packbits-DGHUVUaM.js").then((m2) => m2.default));
224951
+ addDecoder(7, () => import("./jpeg-D40_cEtP.js").then((m2) => m2.default));
224952
+ addDecoder([8, 32946], () => import("./deflate-DSg-Fr9r.js").then((m2) => m2.default));
224953
+ addDecoder(32773, () => import("./packbits-BFRLW0tW.js").then((m2) => m2.default));
224954
224954
  addDecoder(
224955
224955
  34887,
224956
- () => import("./lerc-DNRTYivU.js").then(async (m2) => {
224956
+ () => import("./lerc-DUsVxZoD.js").then(async (m2) => {
224957
224957
  await m2.zstd.init();
224958
224958
  return m2;
224959
224959
  }).then((m2) => m2.default)
224960
224960
  );
224961
- addDecoder(50001, () => import("./webimage-D_gXG2d8.js").then((m2) => m2.default));
224961
+ addDecoder(50001, () => import("./webimage-D2SmoHLs.js").then((m2) => m2.default));
224962
224962
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
224963
224963
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
224964
224964
  }
@@ -268188,7 +268188,7 @@ class ErrorBoundary2 extends React__default.Component {
268188
268188
  }
268189
268189
  }
268190
268190
  const LazySpatialThree = React__default.lazy(async () => {
268191
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-B25JSb6D.js");
268191
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-9kcg40fJ.js");
268192
268192
  return { default: SpatialWrapper2 };
268193
268193
  });
268194
268194
  const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary2, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
@@ -278668,7 +278668,7 @@ function HiglassGlobalStyles(props) {
278668
278668
  }
278669
278669
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
278670
278670
  const LazyHiGlassComponent = React__default.lazy(async () => {
278671
- const { HiGlassComponent } = await import("./higlass-C50SKvg3.js");
278671
+ const { HiGlassComponent } = await import("./higlass-xUpmTfKO.js");
278672
278672
  return { default: HiGlassComponent };
278673
278673
  });
278674
278674
  const HG_SIZE = 800;
@@ -281608,7 +281608,7 @@ function NeuroglancerGlobalStyles(props) {
281608
281608
  const { classes: classes2 } = props;
281609
281609
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
281610
281610
  }
281611
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-C7oMKGS3.js"));
281611
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-D8uj4yly.js"));
281612
281612
  function createWorker() {
281613
281613
  return new WorkerFactory();
281614
281614
  }
@@ -337660,10 +337660,10 @@ class AnnDataSource extends ZarrDataSource {
337660
337660
  throw new Error("Keys for encoding-type or encoding-version not found in AnnDataSource._loadString");
337661
337661
  }
337662
337662
  }
337663
- const regex$1 = /^mod\/([^/]*)\/(.*)$/;
337663
+ const regex = /^mod\/([^/]*)\/(.*)$/;
337664
337664
  function getModPrefix(arrPath) {
337665
337665
  if (arrPath) {
337666
- const matches2 = arrPath.match(regex$1);
337666
+ const matches2 = arrPath.match(regex);
337667
337667
  if (matches2 && matches2.length === 3) {
337668
337668
  return `mod/${matches2[1]}/`;
337669
337669
  }
@@ -339083,10 +339083,11 @@ class ImageWrapper {
339083
339083
  getModelMatrix() {
339084
339084
  const { coordinateTransformations: coordinateTransformationsFromOptions } = this.options;
339085
339085
  if ("multiscales" in this.vivLoader.metadata) {
339086
- const { multiscales: [{ coordinateTransformations, axes }] } = this.vivLoader.metadata;
339086
+ const { multiscales: [{ datasets, coordinateTransformations: coordinateTransformationsFromFile, axes }] } = this.vivLoader.metadata;
339087
339087
  const ngffAxes = getNgffAxes(axes);
339088
339088
  const transformMatrixFromOptions = coordinateTransformationsToMatrix(coordinateTransformationsFromOptions, ngffAxes);
339089
- const transformMatrixFromFile = coordinateTransformationsToMatrix(coordinateTransformations, ngffAxes);
339089
+ const normCoordinateTransformationsFromFile = normalizeCoordinateTransformations(coordinateTransformationsFromFile, datasets);
339090
+ const transformMatrixFromFile = coordinateTransformationsToMatrix(normCoordinateTransformationsFromFile, ngffAxes);
339090
339091
  const transformMatrix = transformMatrixFromFile.multiplyLeft(transformMatrixFromOptions);
339091
339092
  return transformMatrix;
339092
339093
  }
@@ -339637,7 +339638,6 @@ class SpatialDataObsSpotsLoader extends AbstractTwoStepLoader {
339637
339638
  }
339638
339639
  if (!this.locations) {
339639
339640
  const modelMatrix2 = await this.loadModelMatrix();
339640
- this.locations = await this.dataSource.loadNumericForDims(getCoordsPath(path2), [0, 1]);
339641
339641
  let locations;
339642
339642
  const formatVersion = await this.dataSource.getFormatVersion(path2);
339643
339643
  if (formatVersion === "0.1") {
@@ -355132,13 +355132,18 @@ async function getReadParquet() {
355132
355132
  await module2.default();
355133
355133
  return module2.readParquet;
355134
355134
  }
355135
- const regex = /^shapes\/([^/]*)\/(.*)$/;
355135
+ const elementRegex = /^shapes\/([^/]*)$/;
355136
+ const subElementRegex = /^shapes\/([^/]*)\/(.*)$/;
355136
355137
  function getShapesPrefix(arrPath) {
355137
355138
  if (arrPath) {
355138
- const matches2 = arrPath.match(regex);
355139
+ const matches2 = arrPath.match(subElementRegex);
355139
355140
  if (matches2 && matches2.length === 3) {
355140
355141
  return `shapes/${matches2[1]}/`;
355141
355142
  }
355143
+ const elementMatches = arrPath.match(elementRegex);
355144
+ if (elementMatches && elementMatches.length === 2) {
355145
+ return `shapes/${elementMatches[1]}/`;
355146
+ }
355142
355147
  }
355143
355148
  return "";
355144
355149
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bU, bP, bN, bO, bY, bZ, bQ, c5, c3, c1, c4, c2, bM, c0, bR, bL, bK, bW, bV, bX, b$, b_, bT, ca, cd, c7, ce, cf, c8, cb, cc, c9, bS, c6 } from "./index-D61tgG8z.js";
1
+ import { bU, bP, bN, bO, bY, bZ, bQ, c5, c3, c1, c4, c2, bM, c0, bR, bL, bK, bW, bV, bX, b$, b_, bT, ca, cd, c7, ce, cf, c8, cb, cc, c9, bS, c6 } from "./index-YthrVSEK.js";
2
2
  import "react";
3
3
  export {
4
4
  bU as CoordinationLevel,
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-D61tgG8z.js";
1
+ import { aP as BaseDecoder } from "./index-YthrVSEK.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, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-D61tgG8z.js";
2
+ import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-YthrVSEK.js";
3
3
  var LercDecode = { exports: {} };
4
4
  var hasRequiredLercDecode;
5
5
  function requireLercDecode() {
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-D61tgG8z.js";
1
+ import { aP as BaseDecoder } from "./index-YthrVSEK.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 { aP as BaseDecoder } from "./index-D61tgG8z.js";
1
+ import { aP as BaseDecoder } from "./index-YthrVSEK.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-D61tgG8z.js";
1
+ import { aP as BaseDecoder } from "./index-YthrVSEK.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { bE as MeshDistanceMaterial, bF as MeshDepthMaterial, bG as RGBADepthPacking, aB as UniformsUtils, bH as ShaderChunk, aw as InstancedBufferGeometry, av as Sphere, au as Box3, aH as BackSide, a9 as DoubleSide, ad as Mesh, as as FrontSide, aa as MeshBasicMaterial, i as Color, c as Vector3, k as Matrix4, d as Vector2, aJ as Matrix3, aD as Vector4, T as Texture, a1 as LinearFilter, bI as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, bJ as InstancedBufferAttribute } from "./index-D61tgG8z.js";
1
+ import { bE as MeshDistanceMaterial, bF as MeshDepthMaterial, bG as RGBADepthPacking, aB as UniformsUtils, bH as ShaderChunk, aw as InstancedBufferGeometry, av as Sphere, au as Box3, aH as BackSide, a9 as DoubleSide, ad as Mesh, as as FrontSide, aa as MeshBasicMaterial, i as Color, c as Vector3, k as Matrix4, d as Vector2, aJ as Matrix3, aD as Vector4, T as Texture, a1 as LinearFilter, bI as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, bJ as InstancedBufferAttribute } from "./index-YthrVSEK.js";
2
2
  function workerBootstrap() {
3
3
  var modules = /* @__PURE__ */ Object.create(null);
4
4
  function registerModule(ref, callback) {
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-D61tgG8z.js";
1
+ import { aP as BaseDecoder } from "./index-YthrVSEK.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/dev",
3
- "version": "3.6.6",
3
+ "version": "3.6.7",
4
4
  "author": "HIDIVE Lab at HMS",
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.6.6",
20
- "@vitessce/config": "3.6.6",
21
- "@vitessce/constants": "3.6.6",
22
- "@vitessce/export-utils": "3.6.6"
19
+ "@vitessce/all": "3.6.7",
20
+ "@vitessce/config": "3.6.7",
21
+ "@vitessce/constants": "3.6.7",
22
+ "@vitessce/export-utils": "3.6.7"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.5.0",