@vitessce/dev 3.6.0 → 3.6.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-SxljTded.js";
2
- import { aQ as BaseDecoder } from "./index-DQ1XVscb.js";
2
+ import { aP as BaseDecoder } from "./index-klVkXiXz.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -1,6 +1,6 @@
1
1
  import React__default, { createElement, isValidElement, PureComponent, Component } from "react";
2
2
  import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
3
- import { aT as commonjsGlobal$1, aU as requireObjectAssign, g as getDefaultExportFromCjs$1, aV as earcut } from "./index-DQ1XVscb.js";
3
+ import { aS as commonjsGlobal$1, aT as requireObjectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-klVkXiXz.js";
4
4
  var promise = {};
5
5
  var hasRequiredPromise;
6
6
  function requirePromise() {
@@ -1,6 +1,6 @@
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 create, d as Vector3, e as Vector2, C as Clock, W as WebGLRenderer, f as Camera, h as BufferGeometry, M as Material, L as Layers, T as Texture, i as RGBAFormat, U as UnsignedByteType, j as Color, _ as _extends, k as THREE, G as Group, l as Matrix4, m as TrianglesDrawMode, n as TriangleFanDrawMode, o as TriangleStripDrawMode, p as REVISION, E as EventDispatcher, q as MOUSE, r as TOUCH, s as Spherical, Q as Quaternion, t as Ray$1, u as Plane, v as Loader, w as LoaderUtils, F as FileLoader, x as MeshPhysicalMaterial, y as SpotLight, z as PointLight, D as DirectionalLight, I as InstancedMesh, H as Object3D, J as TextureLoader, K as ImageBitmapLoader, X as BufferAttribute, Y as InterleavedBuffer, Z as LinearMipmapLinearFilter, $ as NearestMipmapLinearFilter, a0 as LinearMipmapNearestFilter, a1 as NearestMipmapNearestFilter, a2 as LinearFilter, a3 as NearestFilter, a4 as RepeatWrapping, a5 as MirroredRepeatWrapping, a6 as ClampToEdgeWrapping, a7 as PointsMaterial, a8 as LineBasicMaterial, a9 as MeshStandardMaterial, aa as DoubleSide, ab as MeshBasicMaterial, ac as PropertyBinding, ad as SkinnedMesh, ae as Mesh, af as LineSegments, ag as Line$1, ah as LineLoop, ai as Points, aj as MathUtils, ak as Skeleton, al as InterpolateDiscrete, am as InterpolateLinear, an as AnimationClip, ao as Bone, ap as InterleavedBufferAttribute, aq as VectorKeyframeTrack, ar as QuaternionKeyframeTrack, as as NumberKeyframeTrack, at as FrontSide, au as Interpolant, av as Box3, aw as Sphere, 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-DQ1XVscb.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-klVkXiXz.js";
2
2
  import * as React from "react";
3
- import React__default, { useState, useRef, useEffect, useMemo, forwardRef } from "react";
3
+ import React__default, { useReducer, useRef, useEffect, useLayoutEffect, useDebugValue, useState, useMemo, forwardRef } from "react";
4
4
  var constants = { exports: {} };
5
5
  var reactReconcilerConstants_development = {};
6
6
  var hasRequiredReactReconcilerConstants_development;
@@ -60,6 +60,112 @@ function requireConstants() {
60
60
  return constants.exports;
61
61
  }
62
62
  var constantsExports = requireConstants();
63
+ function createStore$1(createState) {
64
+ let state;
65
+ const listeners = /* @__PURE__ */ new Set();
66
+ const setState = (partial, replace) => {
67
+ const nextState = typeof partial === "function" ? partial(state) : partial;
68
+ if (nextState !== state) {
69
+ const previousState = state;
70
+ state = replace ? nextState : Object.assign({}, state, nextState);
71
+ listeners.forEach((listener) => listener(state, previousState));
72
+ }
73
+ };
74
+ const getState = () => state;
75
+ const subscribeWithSelector = (listener, selector = getState, equalityFn = Object.is) => {
76
+ console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");
77
+ let currentSlice = selector(state);
78
+ function listenerToAdd() {
79
+ const nextSlice = selector(state);
80
+ if (!equalityFn(currentSlice, nextSlice)) {
81
+ const previousSlice = currentSlice;
82
+ listener(currentSlice = nextSlice, previousSlice);
83
+ }
84
+ }
85
+ listeners.add(listenerToAdd);
86
+ return () => listeners.delete(listenerToAdd);
87
+ };
88
+ const subscribe = (listener, selector, equalityFn) => {
89
+ if (selector || equalityFn) {
90
+ return subscribeWithSelector(listener, selector, equalityFn);
91
+ }
92
+ listeners.add(listener);
93
+ return () => listeners.delete(listener);
94
+ };
95
+ const destroy = () => listeners.clear();
96
+ const api = { setState, getState, subscribe, destroy };
97
+ state = createState(setState, getState, api);
98
+ return api;
99
+ }
100
+ const isSSR = typeof window === "undefined" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent);
101
+ const useIsomorphicLayoutEffect$2 = isSSR ? useEffect : useLayoutEffect;
102
+ function create(createState) {
103
+ const api = typeof createState === "function" ? createStore$1(createState) : createState;
104
+ const useStore2 = (selector = api.getState, equalityFn = Object.is) => {
105
+ const [, forceUpdate] = useReducer((c) => c + 1, 0);
106
+ const state = api.getState();
107
+ const stateRef = useRef(state);
108
+ const selectorRef = useRef(selector);
109
+ const equalityFnRef = useRef(equalityFn);
110
+ const erroredRef = useRef(false);
111
+ const currentSliceRef = useRef();
112
+ if (currentSliceRef.current === void 0) {
113
+ currentSliceRef.current = selector(state);
114
+ }
115
+ let newStateSlice;
116
+ let hasNewStateSlice = false;
117
+ if (stateRef.current !== state || selectorRef.current !== selector || equalityFnRef.current !== equalityFn || erroredRef.current) {
118
+ newStateSlice = selector(state);
119
+ hasNewStateSlice = !equalityFn(currentSliceRef.current, newStateSlice);
120
+ }
121
+ useIsomorphicLayoutEffect$2(() => {
122
+ if (hasNewStateSlice) {
123
+ currentSliceRef.current = newStateSlice;
124
+ }
125
+ stateRef.current = state;
126
+ selectorRef.current = selector;
127
+ equalityFnRef.current = equalityFn;
128
+ erroredRef.current = false;
129
+ });
130
+ const stateBeforeSubscriptionRef = useRef(state);
131
+ useIsomorphicLayoutEffect$2(() => {
132
+ const listener = () => {
133
+ try {
134
+ const nextState = api.getState();
135
+ const nextStateSlice = selectorRef.current(nextState);
136
+ if (!equalityFnRef.current(currentSliceRef.current, nextStateSlice)) {
137
+ stateRef.current = nextState;
138
+ currentSliceRef.current = nextStateSlice;
139
+ forceUpdate();
140
+ }
141
+ } catch (error) {
142
+ erroredRef.current = true;
143
+ forceUpdate();
144
+ }
145
+ };
146
+ const unsubscribe = api.subscribe(listener);
147
+ if (api.getState() !== stateBeforeSubscriptionRef.current) {
148
+ listener();
149
+ }
150
+ return unsubscribe;
151
+ }, []);
152
+ const sliceToReturn = hasNewStateSlice ? newStateSlice : currentSliceRef.current;
153
+ useDebugValue(sliceToReturn);
154
+ return sliceToReturn;
155
+ };
156
+ Object.assign(useStore2, api);
157
+ useStore2[Symbol.iterator] = function() {
158
+ console.warn("[useStore, api] = create() is deprecated and will be removed in v4");
159
+ const items = [useStore2, api];
160
+ return {
161
+ next() {
162
+ const done = items.length <= 0;
163
+ return { value: items.shift(), done };
164
+ }
165
+ };
166
+ };
167
+ return useStore2;
168
+ }
63
169
  var reactReconciler = { exports: {} };
64
170
  var reactReconciler_development = { exports: {} };
65
171
  var scheduler = { exports: {} };
@@ -23531,7 +23637,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
23531
23637
  const {
23532
23638
  Text: TextMeshImpl,
23533
23639
  preloadFont
23534
- } = suspend(async () => import("./troika-three-text.esm-BxbGY7j2.js"), []);
23640
+ } = suspend(async () => import("./troika-three-text.esm-C46nWpnf.js"), []);
23535
23641
  const invalidate2 = useThree(({
23536
23642
  invalidate: invalidate3
23537
23643
  }) => invalidate3);