@vitessce/dev 4.0.0-test.0 → 4.0.0-test.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.
- package/dist/{GeometryAndMeshXR-Oj2zI_sI.js → GeometryAndMeshXR-CKq-QN2V.js} +4 -4
- package/dist/{OrbitControls-5ELNF_nQ.js → OrbitControls-3kvAx_bm.js} +1 -1
- package/dist/{ReactNeuroglancer-Bs7JMUO5.js → ReactNeuroglancer-B2ZYQpR_.js} +83 -28
- package/dist/{XREnterButton-CIzkyQe9.js → XREnterButton-D2bwhG22.js} +2 -2
- package/dist/{XRSceneComponents-44cQ-EFB.js → XRSceneComponents-CThu7a6X.js} +3 -3
- package/dist/XRWrapper-DRaWgrhr.js +10 -0
- package/dist/{deflate-Ddy50BQC.js → deflate-CMGMgnZ7.js} +1 -1
- package/dist/{emulate-CZbU4bg1.js → emulate-DgwsWyZo.js} +2 -2
- package/dist/{higlass-D7Nr2NjU.js → higlass-CRUcLDuS.js} +9888 -7873
- package/dist/{index-C9uEW-7L.js → index-BfhRmnqb.js} +16 -6
- package/dist/{index-CdO3jExn.js → index-BkcsTpHg.js} +695 -434
- package/dist/{index-B_VSuhac.js → index-C-X_ahOA.js} +67 -10
- package/dist/{index-D3JEwl5a.js → index-DuGF-3UQ.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{jpeg-DQVF89G5.js → jpeg-B73QAFMi.js} +1 -1
- package/dist/{lerc-BcM7iRo4.js → lerc-CAJ3Y0cq.js} +1 -1
- package/dist/{lzw-DJUuf0zY.js → lzw-D76PzfLd.js} +1 -1
- package/dist/{packbits-LM83yS7N.js → packbits-DB_LLrYE.js} +1 -1
- package/dist/{raw-CXfphBZa.js → raw-DE4Hzim5.js} +1 -1
- package/dist/{ray-grab-CZLm2XVj.js → ray-grab-DZpbNNCS.js} +3 -3
- package/dist/{webimage-DMjnadGD.js → webimage-Cb-GqMg_.js} +1 -1
- package/dist/{xrStore-BXas99tA.js → xrStore-633UaA-M.js} +2 -2
- package/package.json +5 -5
- package/dist/XRWrapper-CPiZ4M25.js +0 -10
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Matrix4, V as Vector3, j as jsxRuntimeExports, F as FrontSide, a as Box3 } from "./index-
|
|
1
|
+
import { M as Matrix4, V as Vector3, j as jsxRuntimeExports, F as FrontSide, a as Box3 } from "./index-BkcsTpHg.js";
|
|
2
2
|
import { useRef, useEffect, useState } from "react";
|
|
3
|
-
import { M as useXR, s as useXRInputSourceState } from "./ray-grab-
|
|
4
|
-
import { i as isValidGeometrySize, M as MeasureLine, s as stringifyLineData, B as Bvh } from "./index-
|
|
5
|
-
import { u as useThree, a as useFrame } from "./OrbitControls-
|
|
3
|
+
import { M as useXR, s as useXRInputSourceState } from "./ray-grab-DZpbNNCS.js";
|
|
4
|
+
import { i as isValidGeometrySize, M as MeasureLine, s as stringifyLineData, B as Bvh } from "./index-C-X_ahOA.js";
|
|
5
|
+
import { u as useThree, a as useFrame } from "./OrbitControls-3kvAx_bm.js";
|
|
6
6
|
function getHandJoint(hand, jointName) {
|
|
7
7
|
return hand.get(jointName);
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React__default, { useState, useRef, useEffect, useMemo } from "react";
|
|
3
|
-
import { s as requireShim, g as getDefaultExportFromCjs, t as createStore$1, j as jsxRuntimeExports, v as WebGLRenderer, w as Raycaster, O as OrthographicCamera, x as PerspectiveCamera, S as Scene, y as PCFSoftShadowMap, z as VSMShadowMap, A as PCFShadowMap, E as BasicShadowMap, H as LinearSRGBColorSpace, I as SRGBColorSpace, J as NoToneMapping, K as ACESFilmicToneMapping, Q as Layers, T as Color, o as RGBAFormat, U as UnsignedByteType, V as Vector3, k as Vector2, X as Clock, Y as ColorManagement, Z as THREE, _ as Spherical, $ as Quaternion, a0 as MOUSE, a1 as TOUCH, a2 as Ray, a3 as Plane, a4 as _extends } from "./index-
|
|
3
|
+
import { s as requireShim, g as getDefaultExportFromCjs, t as createStore$1, j as jsxRuntimeExports, v as WebGLRenderer, w as Raycaster, O as OrthographicCamera, x as PerspectiveCamera, S as Scene, y as PCFSoftShadowMap, z as VSMShadowMap, A as PCFShadowMap, E as BasicShadowMap, H as LinearSRGBColorSpace, I as SRGBColorSpace, J as NoToneMapping, K as ACESFilmicToneMapping, Q as Layers, T as Color, o as RGBAFormat, U as UnsignedByteType, V as Vector3, k as Vector2, X as Clock, Y as ColorManagement, Z as THREE, _ as Spherical, $ as Quaternion, a0 as MOUSE, a1 as TOUCH, a2 as Ray, a3 as Plane, a4 as _extends } from "./index-BkcsTpHg.js";
|
|
4
4
|
var withSelector = { exports: {} };
|
|
5
5
|
var withSelector_development = {};
|
|
6
6
|
var hasRequiredWithSelector_development;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { g as getDefaultExportFromCjs, bu as requireAssign, bv as require_export, bw as require_core, bx as require_fails, by as require_toObject, bz as require_objectKeys, bA as require_cof, bB as require_wks, bC as require_iterators, bD as requireWeb_dom_iterable, bE as requireEs6_string_iterator, bF as require_anObject, bG as require_hide, bH as require_ctx, bI as require_toLength, bJ as require_global, bK as require_objectDp, bL as require_descriptors, bM as require_isObject, bN as require_objectCreate, bO as require_iterDefine, bP as require_iterStep, bQ as require_meta, bR as require_isArray, bS as require_iobject, bT as require_setToStringTag, bU as require_aFunction, bV as requireIterator, bW as require_propertyDesc, bX as require_root, bY as require_baseGetTag, bZ as requireIsObjectLike, b_ as requireIsObject, b$ as requireEs6_symbol, c0 as requireDefineProperty, c1 as require_toIobject, c2 as require_objectGopd, c3 as require_html, c4 as require_domCreate, c5 as require_library, c6 as requireSymbol, c7 as require_objectPie, c8 as require_has, c9 as require_redefine, ca as require_objectAssign, cb as diffCameraState, j as jsxRuntimeExports } from "./index-
|
|
4
|
+
import { g as getDefaultExportFromCjs, bu as requireAssign, bv as require_export, bw as require_core, bx as require_fails, by as require_toObject, bz as require_objectKeys, bA as require_cof, bB as require_wks, bC as require_iterators, bD as requireWeb_dom_iterable, bE as requireEs6_string_iterator, bF as require_anObject, bG as require_hide, bH as require_ctx, bI as require_toLength, bJ as require_global, bK as require_objectDp, bL as require_descriptors, bM as require_isObject, bN as require_objectCreate, bO as require_iterDefine, bP as require_iterStep, bQ as require_meta, bR as require_isArray, bS as require_iobject, bT as require_setToStringTag, bU as require_aFunction, bV as requireIterator, bW as require_propertyDesc, bX as require_root, bY as require_baseGetTag, bZ as requireIsObjectLike, b_ as requireIsObject, b$ as requireEs6_symbol, c0 as requireDefineProperty, c1 as require_toIobject, c2 as require_objectGopd, c3 as require_html, c4 as require_domCreate, c5 as require_library, c6 as requireSymbol, c7 as require_objectPie, c8 as require_has, c9 as require_redefine, ca as require_objectAssign, cb as diffCameraState, j as jsxRuntimeExports } from "./index-BkcsTpHg.js";
|
|
5
5
|
import React__default from "react";
|
|
6
6
|
var assignExports = requireAssign();
|
|
7
7
|
const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assignExports);
|
|
@@ -30037,9 +30037,7 @@ const svg_bin = "data:image/svg+xml,%3csvg%20role='img'%20xmlns='http://www.w3.o
|
|
|
30037
30037
|
function makeDeleteButton(options = {}) {
|
|
30038
30038
|
const icon = makeIcon(_Object$assign({ svg: svg_bin }, options));
|
|
30039
30039
|
const svg = icon.firstElementChild;
|
|
30040
|
-
if (svg)
|
|
30041
|
-
svg.style.fill = "white";
|
|
30042
|
-
}
|
|
30040
|
+
if (svg) svg.style.fill = "white";
|
|
30043
30041
|
return icon;
|
|
30044
30042
|
}
|
|
30045
30043
|
var es6_string_raw = {};
|
|
@@ -45684,6 +45682,18 @@ class DataManagementContext extends RefCounted {
|
|
|
45684
45682
|
this.frameNumberCounter = frameNumberCounter;
|
|
45685
45683
|
const chunk_worker_url = bundleRoot + "chunk_worker.bundle.js";
|
|
45686
45684
|
this.worker = typeof bundleRoot === "string" ? new Worker(chunk_worker_url) : bundleRoot;
|
|
45685
|
+
if (typeof bundleRoot !== "string") {
|
|
45686
|
+
this.worker.addEventListener("message", (msg) => {
|
|
45687
|
+
if (msg.data?.functionName === "Worker" && msg.data?.path === "async_computation.bundle.js") {
|
|
45688
|
+
msg.stopImmediatePropagation();
|
|
45689
|
+
const AsyncWorker = bundleRoot.AsyncComputationWorker;
|
|
45690
|
+
if (AsyncWorker) {
|
|
45691
|
+
const asyncWorker = new AsyncWorker();
|
|
45692
|
+
asyncWorker.postMessage({ port: msg.data.port }, [msg.data.port]);
|
|
45693
|
+
}
|
|
45694
|
+
}
|
|
45695
|
+
}, true);
|
|
45696
|
+
}
|
|
45687
45697
|
this.chunkQueueManager = this.registerDisposer(new ChunkQueueManager(new RPC(this.worker), this.gl, this.frameNumberCounter, {
|
|
45688
45698
|
gpuMemory: new CapacitySpecification({ defaultItemLimit: 1e6, defaultSizeLimit: 1e9 }),
|
|
45689
45699
|
systemMemory: new CapacitySpecification({ defaultItemLimit: 1e7, defaultSizeLimit: 2e9 }),
|
|
@@ -65362,24 +65372,26 @@ class Neuroglancer extends React__default.Component {
|
|
|
65362
65372
|
return JSON.stringify(prevLayers) !== JSON.stringify(nextLayers);
|
|
65363
65373
|
});
|
|
65364
65374
|
/* To add colors to the segments, turning unselected to grey */
|
|
65365
|
-
__publicField(this, "applyColorsAndVisibility", (
|
|
65375
|
+
__publicField(this, "applyColorsAndVisibility", (cellColorMappingByLayer) => {
|
|
65366
65376
|
if (!this.viewer)
|
|
65367
65377
|
return;
|
|
65368
|
-
const selected = { ...cellColorMapping || {} };
|
|
65369
|
-
for (const id of Object.keys(selected))
|
|
65370
|
-
this.allKnownIds.add(id);
|
|
65371
|
-
if (this.allKnownIds.size === 0) {
|
|
65372
|
-
const init = this.props.viewerState?.layers?.[0]?.segmentColors || {};
|
|
65373
|
-
for (const id of Object.keys(init))
|
|
65374
|
-
this.allKnownIds.add(id);
|
|
65375
|
-
}
|
|
65376
|
-
const fullSegmentColors = {};
|
|
65377
|
-
for (const id of this.allKnownIds) {
|
|
65378
|
-
fullSegmentColors[id] = selected[id] || GREY_HEX;
|
|
65379
|
-
}
|
|
65380
65378
|
const baseLayers = this.props.viewerState?.layers ?? (this.viewer.state.toJSON().layers || []);
|
|
65381
|
-
const newLayers = baseLayers.map((layer
|
|
65382
|
-
|
|
65379
|
+
const newLayers = baseLayers.map((layer) => {
|
|
65380
|
+
const layerScope = Object.keys(cellColorMappingByLayer).find((scope) => layer.name?.includes(scope));
|
|
65381
|
+
const selected = { ...cellColorMappingByLayer[layerScope]?.colors || {} };
|
|
65382
|
+
if (!this.allKnownIdsByLayer)
|
|
65383
|
+
this.allKnownIdsByLayer = {};
|
|
65384
|
+
if (!this.allKnownIdsByLayer[layerScope]) {
|
|
65385
|
+
this.allKnownIdsByLayer[layerScope] = /* @__PURE__ */ new Set();
|
|
65386
|
+
}
|
|
65387
|
+
for (const id of Object.keys(selected)) {
|
|
65388
|
+
this.allKnownIdsByLayer[layerScope].add(id);
|
|
65389
|
+
}
|
|
65390
|
+
const fullSegmentColors = {};
|
|
65391
|
+
for (const id of this.allKnownIdsByLayer[layerScope] || []) {
|
|
65392
|
+
fullSegmentColors[id] = selected[id] || GREY_HEX;
|
|
65393
|
+
}
|
|
65394
|
+
if (layer.type === "segmentation") {
|
|
65383
65395
|
return { ...layer, segmentColors: fullSegmentColors };
|
|
65384
65396
|
}
|
|
65385
65397
|
return layer;
|
|
@@ -65489,7 +65501,7 @@ class Neuroglancer extends React__default.Component {
|
|
|
65489
65501
|
this.disposers = [];
|
|
65490
65502
|
this.prevColorOverrides = /* @__PURE__ */ new Set();
|
|
65491
65503
|
this.overrideColorsById = /* @__PURE__ */ Object.create(null);
|
|
65492
|
-
this.
|
|
65504
|
+
this.allKnownIdsByLayer = {};
|
|
65493
65505
|
}
|
|
65494
65506
|
componentDidMount() {
|
|
65495
65507
|
const {
|
|
@@ -65529,9 +65541,37 @@ class Neuroglancer extends React__default.Component {
|
|
|
65529
65541
|
} else {
|
|
65530
65542
|
viewerNoKey = this.viewer;
|
|
65531
65543
|
}
|
|
65544
|
+
const { visibleChunksChanged } = this.viewer.chunkQueueManager;
|
|
65545
|
+
let firstChunkLoaded = false;
|
|
65546
|
+
this.disposers.push(visibleChunksChanged.add(() => {
|
|
65547
|
+
if (!firstChunkLoaded) {
|
|
65548
|
+
for (const layer of this.viewer.layerManager.managedLayers) {
|
|
65549
|
+
if (layer.layer instanceof SegmentationUserLayer) {
|
|
65550
|
+
const hasVisibleChunk = layer.layer.renderLayers?.some((rl) => {
|
|
65551
|
+
const { numVisibleChunksAvailable, numVisibleChunksNeeded } = rl.layerChunkProgressInfo || {};
|
|
65552
|
+
if (!numVisibleChunksNeeded || !numVisibleChunksAvailable)
|
|
65553
|
+
return false;
|
|
65554
|
+
return numVisibleChunksAvailable / numVisibleChunksNeeded > 0.25;
|
|
65555
|
+
});
|
|
65556
|
+
if (hasVisibleChunk) {
|
|
65557
|
+
firstChunkLoaded = true;
|
|
65558
|
+
requestAnimationFrame(() => {
|
|
65559
|
+
requestAnimationFrame(() => {
|
|
65560
|
+
this.props.onLayerLoadingChange?.(true);
|
|
65561
|
+
});
|
|
65562
|
+
});
|
|
65563
|
+
return;
|
|
65564
|
+
}
|
|
65565
|
+
}
|
|
65566
|
+
}
|
|
65567
|
+
}
|
|
65568
|
+
}));
|
|
65569
|
+
this.disposers.push(() => {
|
|
65570
|
+
firstChunkLoaded = false;
|
|
65571
|
+
});
|
|
65532
65572
|
}
|
|
65533
65573
|
componentDidUpdate(prevProps, prevState) {
|
|
65534
|
-
const { viewerState, cellColorMapping } = this.props;
|
|
65574
|
+
const { viewerState, cellColorMapping: cellColorMappingByLayer } = this.props;
|
|
65535
65575
|
const selectedSegments = {};
|
|
65536
65576
|
for (const layer of this.viewer.layerManager.managedLayers) {
|
|
65537
65577
|
if (layer.layer instanceof SegmentationUserLayer) {
|
|
@@ -65543,6 +65583,20 @@ class Neuroglancer extends React__default.Component {
|
|
|
65543
65583
|
if (layer.layer instanceof SegmentationUserLayer) {
|
|
65544
65584
|
const { segmentSelectionState } = layer.layer.displayState;
|
|
65545
65585
|
segmentSelectionState.set(selectedSegments[layer.name]);
|
|
65586
|
+
const layerScope = Object.keys(cellColorMappingByLayer).find((scope) => layer.name?.includes(scope));
|
|
65587
|
+
if (layerScope) {
|
|
65588
|
+
const opacity = cellColorMappingByLayer[layerScope]?.opacity ?? 1;
|
|
65589
|
+
layer.layer.displayState.objectAlpha.value = opacity;
|
|
65590
|
+
}
|
|
65591
|
+
}
|
|
65592
|
+
if (layer.layer instanceof AnnotationUserLayer) {
|
|
65593
|
+
const matchingLayer = (viewerState?.layers || []).find((l) => l.name === layer.name);
|
|
65594
|
+
if (matchingLayer?.shader) {
|
|
65595
|
+
const currentShader = layer.layer.annotationDisplayState.shader.value_;
|
|
65596
|
+
if (currentShader !== matchingLayer.shader) {
|
|
65597
|
+
layer.layer.annotationDisplayState.shader.value = matchingLayer.shader;
|
|
65598
|
+
}
|
|
65599
|
+
}
|
|
65546
65600
|
}
|
|
65547
65601
|
}
|
|
65548
65602
|
if (!viewerState)
|
|
@@ -65566,23 +65620,23 @@ class Neuroglancer extends React__default.Component {
|
|
|
65566
65620
|
this.withoutEmitting(() => {
|
|
65567
65621
|
const layers = Array.isArray(viewerState.layers) ? viewerState.layers : [];
|
|
65568
65622
|
this.viewer.state.restoreState({ layers });
|
|
65569
|
-
if (
|
|
65570
|
-
this.applyColorsAndVisibility(
|
|
65623
|
+
if (cellColorMappingByLayer && Object.keys(cellColorMappingByLayer).length) {
|
|
65624
|
+
this.applyColorsAndVisibility(cellColorMappingByLayer);
|
|
65571
65625
|
}
|
|
65572
65626
|
});
|
|
65573
65627
|
}
|
|
65574
|
-
const prevSize = prevProps.cellColorMapping ? Object.
|
|
65575
|
-
const currSize =
|
|
65576
|
-
const mappingRefChanged = prevProps.cellColorMapping !== cellColorMapping;
|
|
65628
|
+
const prevSize = prevProps.cellColorMapping ? Object.values(prevProps.cellColorMapping).reduce((acc, v) => acc + Object.keys(v?.colors || {}).length, 0) : 0;
|
|
65629
|
+
const currSize = cellColorMappingByLayer ? Object.values(cellColorMappingByLayer).reduce((acc, v) => acc + Object.keys(v?.colors || {}).length, 0) : 0;
|
|
65630
|
+
const mappingRefChanged = prevProps.cellColorMapping !== this.props.cellColorMapping;
|
|
65577
65631
|
if (!this.didLayersChange(prevVS, viewerState) && (mappingRefChanged || prevSize !== currSize)) {
|
|
65578
65632
|
this.withoutEmitting(() => {
|
|
65579
|
-
this.applyColorsAndVisibility(
|
|
65633
|
+
this.applyColorsAndVisibility(cellColorMappingByLayer);
|
|
65580
65634
|
});
|
|
65581
65635
|
}
|
|
65582
65636
|
const stripSegFields = (layers) => (layers || []).map((l) => {
|
|
65583
65637
|
if (!l)
|
|
65584
65638
|
return l;
|
|
65585
|
-
const { segments, segmentColors, ...rest } = l;
|
|
65639
|
+
const { segments, segmentColors, objectAlpha, ...rest } = l;
|
|
65586
65640
|
return rest;
|
|
65587
65641
|
});
|
|
65588
65642
|
const prevLayers = prevProps.viewerState?.layers;
|
|
@@ -65646,6 +65700,7 @@ __publicField(Neuroglancer, "defaultProps", {
|
|
|
65646
65700
|
onVisibleChanged: null,
|
|
65647
65701
|
onSelectionDetailsStateChanged: null,
|
|
65648
65702
|
onViewerStateChanged: null,
|
|
65703
|
+
onLayerLoadingChange: null,
|
|
65649
65704
|
key: null,
|
|
65650
65705
|
callbacks: [],
|
|
65651
65706
|
ngServer: "https://neuroglancer-demo.appspot.com/"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./index-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./index-BkcsTpHg.js";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { x as xrStore } from "./xrStore-
|
|
3
|
+
import { x as xrStore } from "./xrStore-633UaA-M.js";
|
|
4
4
|
function XREnterButton() {
|
|
5
5
|
const [supported, setSupported] = useState(false);
|
|
6
6
|
const [entered, setEntered] = useState(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./index-
|
|
1
|
+
import { j as jsxRuntimeExports } from "./index-BkcsTpHg.js";
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
-
import { s as useXRInputSourceState, M as useXR } from "./ray-grab-
|
|
4
|
-
import { u as useThree, a as useFrame } from "./OrbitControls-
|
|
3
|
+
import { s as useXRInputSourceState, M as useXR } from "./ray-grab-DZpbNNCS.js";
|
|
4
|
+
import { u as useThree, a as useFrame } from "./OrbitControls-3kvAx_bm.js";
|
|
5
5
|
function getHandJoint(hand, jointName) {
|
|
6
6
|
return hand.get(jointName);
|
|
7
7
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "./index-BkcsTpHg.js";
|
|
2
|
+
import { K as XR } from "./ray-grab-DZpbNNCS.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { x as xrStore } from "./xrStore-633UaA-M.js";
|
|
5
|
+
function XRWrapper({ children }) {
|
|
6
|
+
return jsxRuntimeExports.jsx(XR, { store: xrStore, children });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
XRWrapper as default
|
|
10
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-BkcsTpHg.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { aQ as PropTypes, g as getDefaultExportFromCjs, j as jsxRuntimeExports, aR as create$2, V as Vector3$3, M as Matrix4$1, $ as Quaternion$3, aO as Euler$1, a3 as Plane$1, aC as Object3D$1, T as Color$1, aS as LineSegments$1, az as BufferGeometry$1, aT as LineBasicMaterial$1, aa as Float32BufferAttribute$1, aw as Group$1, O as OrthographicCamera$1, am as MeshBasicMaterial$1, q as Mesh$1, aI as CylinderGeometry, aE as BoxGeometry$1, aU as OctahedronGeometry, aV as TorusGeometry, aB as SphereGeometry, k as Vector2$2, aW as create$3, aX as clone, aY as fromTranslation, aZ as create$4, a_ as getTranslation, a$ as fromRotationTranslation, b0 as copy$1, b1 as multiply$1, b2 as fromValues, b3 as create$5, b4 as set, b5 as copy$2, b6 as normalize$1, b7 as conjugate, b8 as multiply$2, b9 as setAxisAngle, ba as fromValues$1, bb as set$1, bc as copy$3, bd as normalize$2, be as add, bf as transformQuat, bg as invert, bh as getRotation, bi as set$2, bj as create$6, bk as transformMat4, bl as cross, bm as dot, bn as fromRotation, bo as identity, bp as perspective, bq as getScaling, br as lerp$1, bs as slerp, bt as fromRotationTranslationScale } from "./index-
|
|
4
|
+
import { aQ as PropTypes, g as getDefaultExportFromCjs, j as jsxRuntimeExports, aR as create$2, V as Vector3$3, M as Matrix4$1, $ as Quaternion$3, aO as Euler$1, a3 as Plane$1, aC as Object3D$1, T as Color$1, aS as LineSegments$1, az as BufferGeometry$1, aT as LineBasicMaterial$1, aa as Float32BufferAttribute$1, aw as Group$1, O as OrthographicCamera$1, am as MeshBasicMaterial$1, q as Mesh$1, aI as CylinderGeometry, aE as BoxGeometry$1, aU as OctahedronGeometry, aV as TorusGeometry, aB as SphereGeometry, k as Vector2$2, aW as create$3, aX as clone, aY as fromTranslation, aZ as create$4, a_ as getTranslation, a$ as fromRotationTranslation, b0 as copy$1, b1 as multiply$1, b2 as fromValues, b3 as create$5, b4 as set, b5 as copy$2, b6 as normalize$1, b7 as conjugate, b8 as multiply$2, b9 as setAxisAngle, ba as fromValues$1, bb as set$1, bc as copy$3, bd as normalize$2, be as add, bf as transformQuat, bg as invert, bh as getRotation, bi as set$2, bj as create$6, bk as transformMat4, bl as cross, bm as dot, bn as fromRotation, bo as identity, bp as perspective, bq as getScaling, br as lerp$1, bs as slerp, bt as fromRotationTranslationScale } from "./index-BkcsTpHg.js";
|
|
5
5
|
import React__default, { useState, useMemo, useEffect, useContext, useDebugValue, createElement as createElement$1, useRef } from "react";
|
|
6
|
-
import { _ as clamp$1, $ as forwardHtmlEvents, a0 as clientExports } from "./ray-grab-
|
|
6
|
+
import { _ as clamp$1, $ as forwardHtmlEvents, a0 as clientExports } from "./ray-grab-DZpbNNCS.js";
|
|
7
7
|
const noop$1 = () => {
|
|
8
8
|
};
|
|
9
9
|
let _WINDOW = {};
|