@react-three/fiber 8.15.13 → 8.15.15
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/CHANGELOG.md +12 -0
- package/dist/declarations/src/core/store.d.ts +1 -1
- package/dist/declarations/src/core/utils.d.ts +5 -0
- package/dist/{index-0ee5ddc9.cjs.dev.js → index-38c9b12f.cjs.dev.js} +31 -18
- package/dist/{index-710fb441.esm.js → index-ca597524.esm.js} +31 -18
- package/dist/{index-2003c0bb.cjs.prod.js → index-e873c87f.cjs.prod.js} +31 -18
- package/dist/react-three-fiber.cjs.dev.js +1 -1
- package/dist/react-three-fiber.cjs.prod.js +1 -1
- package/dist/react-three-fiber.esm.js +2 -2
- package/native/dist/react-three-fiber-native.cjs.dev.js +1 -1
- package/native/dist/react-three-fiber-native.cjs.prod.js +1 -1
- package/native/dist/react-three-fiber-native.esm.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @react-three/fiber
|
|
2
2
|
|
|
3
|
+
## 8.15.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 71cd8f96: fix: tonemapping config overwrites userland
|
|
8
|
+
|
|
9
|
+
## 8.15.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0afc9c12: fix: portal events, update examples
|
|
14
|
+
|
|
3
15
|
## 8.15.13
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -127,7 +127,7 @@ export declare type RootState = {
|
|
|
127
127
|
setFrameloop: (frameloop?: 'always' | 'demand' | 'never') => void;
|
|
128
128
|
/** When the canvas was clicked but nothing was hit */
|
|
129
129
|
onPointerMissed?: (event: MouseEvent) => void;
|
|
130
|
-
/** If this state model is
|
|
130
|
+
/** If this state model is layered (via createPortal) then this contains the previous layer */
|
|
131
131
|
previousRoot?: UseBoundStore<RootState, StoreApi<RootState>>;
|
|
132
132
|
/** Internals */
|
|
133
133
|
internal: InternalState;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="webxr" />
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { UseBoundStore } from 'zustand';
|
|
4
5
|
import { AttachType, Instance, InstanceProps, LocalState } from './renderer';
|
|
5
6
|
import { Dpr, Renderer, RootState, Size } from './store';
|
|
6
7
|
/** @ts-ignore */
|
|
@@ -85,6 +86,10 @@ export declare function calculateDpr(dpr: Dpr): number;
|
|
|
85
86
|
* Returns instance root state
|
|
86
87
|
*/
|
|
87
88
|
export declare const getRootState: (obj: THREE.Object3D) => RootState | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Returns the instances initial (outmost) root
|
|
91
|
+
*/
|
|
92
|
+
export declare function findInitialRoot(child: Instance): UseBoundStore<RootState, import("zustand").StoreApi<RootState>>;
|
|
88
93
|
export declare type EquConfig = {
|
|
89
94
|
/** Compare arrays by reference equality a === b (default), or by shallow equality */
|
|
90
95
|
arrays?: 'reference' | 'shallow';
|
|
@@ -150,9 +150,10 @@ function createRenderer(_roots, _getEventPriority) {
|
|
|
150
150
|
} else if (child.isObject3D && parentInstance.isObject3D) {
|
|
151
151
|
var _child$__r3f4;
|
|
152
152
|
parentInstance.remove(child);
|
|
153
|
-
//
|
|
153
|
+
// @ts-ignore
|
|
154
|
+
// Remove interactivity on the initial root
|
|
154
155
|
if ((_child$__r3f4 = child.__r3f) != null && _child$__r3f4.root) {
|
|
155
|
-
removeInteractivity(child
|
|
156
|
+
removeInteractivity(findInitialRoot(child), child);
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
|
|
@@ -224,9 +225,9 @@ function createRenderer(_roots, _getEventPriority) {
|
|
|
224
225
|
}
|
|
225
226
|
appendChild(parent, newInstance);
|
|
226
227
|
|
|
227
|
-
// Re-bind event handlers
|
|
228
|
+
// Re-bind event handlers on the initial root
|
|
228
229
|
if (newInstance.raycast && newInstance.__r3f.eventCount) {
|
|
229
|
-
const rootState = newInstance.
|
|
230
|
+
const rootState = findInitialRoot(newInstance).getState();
|
|
230
231
|
rootState.internal.interaction.push(newInstance);
|
|
231
232
|
}
|
|
232
233
|
[fiber, fiber.alternate].forEach(fiber => {
|
|
@@ -326,10 +327,10 @@ function createRenderer(_roots, _getEventPriority) {
|
|
|
326
327
|
commitMount(instance, _type, _props, _int) {
|
|
327
328
|
var _instance$__r3f4;
|
|
328
329
|
// https://github.com/facebook/react/issues/20271
|
|
329
|
-
// This will make sure events are only added once to the central container
|
|
330
|
+
// This will make sure events are only added once to the central container on the initial root
|
|
330
331
|
const localState = (_instance$__r3f4 = instance.__r3f) != null ? _instance$__r3f4 : {};
|
|
331
332
|
if (instance.raycast && localState.handlers && localState.eventCount) {
|
|
332
|
-
instance.
|
|
333
|
+
findInitialRoot(instance).getState().internal.interaction.push(instance);
|
|
333
334
|
}
|
|
334
335
|
},
|
|
335
336
|
getPublicInstance: instance => instance,
|
|
@@ -454,6 +455,15 @@ const getRootState = obj => {
|
|
|
454
455
|
var _r3f;
|
|
455
456
|
return (_r3f = obj.__r3f) == null ? void 0 : _r3f.root.getState();
|
|
456
457
|
};
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Returns the instances initial (outmost) root
|
|
461
|
+
*/
|
|
462
|
+
function findInitialRoot(child) {
|
|
463
|
+
let root = child.__r3f.root;
|
|
464
|
+
while (root.getState().previousRoot) root = root.getState().previousRoot;
|
|
465
|
+
return root;
|
|
466
|
+
}
|
|
457
467
|
// A collection of compare functions
|
|
458
468
|
const is = {
|
|
459
469
|
obj: a => a === Object(a) && !is.arr(a) && typeof a !== 'function',
|
|
@@ -771,12 +781,14 @@ function applyProps$1(instance, data) {
|
|
|
771
781
|
}
|
|
772
782
|
invalidateInstance(instance);
|
|
773
783
|
}
|
|
774
|
-
if (localState.parent &&
|
|
784
|
+
if (localState.parent && instance.raycast && prevHandlers !== localState.eventCount) {
|
|
785
|
+
// Get the initial root state's internals
|
|
786
|
+
const internal = findInitialRoot(instance).getState().internal;
|
|
775
787
|
// Pre-emptively remove the instance from the interaction manager
|
|
776
|
-
const index =
|
|
777
|
-
if (index > -1)
|
|
788
|
+
const index = internal.interaction.indexOf(instance);
|
|
789
|
+
if (index > -1) internal.interaction.splice(index, 1);
|
|
778
790
|
// Add the instance to the interaction manager only when it has handlers
|
|
779
|
-
if (localState.eventCount)
|
|
791
|
+
if (localState.eventCount) internal.interaction.push(instance);
|
|
780
792
|
}
|
|
781
793
|
|
|
782
794
|
// Call the update lifecycle when it is being updated, but only when it is part of the scene.
|
|
@@ -1972,14 +1984,15 @@ function createRoot(canvas) {
|
|
|
1972
1984
|
if (ColorManagement) {
|
|
1973
1985
|
if ('enabled' in ColorManagement) ColorManagement.enabled = !legacy;else if ('legacyMode' in ColorManagement) ColorManagement.legacyMode = legacy;
|
|
1974
1986
|
}
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1987
|
+
if (!configured) {
|
|
1988
|
+
// Set color space and tonemapping preferences, once
|
|
1989
|
+
const LinearEncoding = 3000;
|
|
1990
|
+
const sRGBEncoding = 3001;
|
|
1991
|
+
applyProps(gl, {
|
|
1992
|
+
outputEncoding: linear ? LinearEncoding : sRGBEncoding,
|
|
1993
|
+
toneMapping: flat ? THREE__namespace.NoToneMapping : THREE__namespace.ACESFilmicToneMapping
|
|
1994
|
+
});
|
|
1995
|
+
}
|
|
1983
1996
|
|
|
1984
1997
|
// Update color management state
|
|
1985
1998
|
if (state.legacy !== legacy) state.set(() => ({
|
|
@@ -123,9 +123,10 @@ function createRenderer(_roots, _getEventPriority) {
|
|
|
123
123
|
} else if (child.isObject3D && parentInstance.isObject3D) {
|
|
124
124
|
var _child$__r3f4;
|
|
125
125
|
parentInstance.remove(child);
|
|
126
|
-
//
|
|
126
|
+
// @ts-ignore
|
|
127
|
+
// Remove interactivity on the initial root
|
|
127
128
|
if ((_child$__r3f4 = child.__r3f) != null && _child$__r3f4.root) {
|
|
128
|
-
removeInteractivity(child
|
|
129
|
+
removeInteractivity(findInitialRoot(child), child);
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
|
|
@@ -197,9 +198,9 @@ function createRenderer(_roots, _getEventPriority) {
|
|
|
197
198
|
}
|
|
198
199
|
appendChild(parent, newInstance);
|
|
199
200
|
|
|
200
|
-
// Re-bind event handlers
|
|
201
|
+
// Re-bind event handlers on the initial root
|
|
201
202
|
if (newInstance.raycast && newInstance.__r3f.eventCount) {
|
|
202
|
-
const rootState = newInstance.
|
|
203
|
+
const rootState = findInitialRoot(newInstance).getState();
|
|
203
204
|
rootState.internal.interaction.push(newInstance);
|
|
204
205
|
}
|
|
205
206
|
[fiber, fiber.alternate].forEach(fiber => {
|
|
@@ -299,10 +300,10 @@ function createRenderer(_roots, _getEventPriority) {
|
|
|
299
300
|
commitMount(instance, _type, _props, _int) {
|
|
300
301
|
var _instance$__r3f4;
|
|
301
302
|
// https://github.com/facebook/react/issues/20271
|
|
302
|
-
// This will make sure events are only added once to the central container
|
|
303
|
+
// This will make sure events are only added once to the central container on the initial root
|
|
303
304
|
const localState = (_instance$__r3f4 = instance.__r3f) != null ? _instance$__r3f4 : {};
|
|
304
305
|
if (instance.raycast && localState.handlers && localState.eventCount) {
|
|
305
|
-
instance.
|
|
306
|
+
findInitialRoot(instance).getState().internal.interaction.push(instance);
|
|
306
307
|
}
|
|
307
308
|
},
|
|
308
309
|
getPublicInstance: instance => instance,
|
|
@@ -427,6 +428,15 @@ const getRootState = obj => {
|
|
|
427
428
|
var _r3f;
|
|
428
429
|
return (_r3f = obj.__r3f) == null ? void 0 : _r3f.root.getState();
|
|
429
430
|
};
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Returns the instances initial (outmost) root
|
|
434
|
+
*/
|
|
435
|
+
function findInitialRoot(child) {
|
|
436
|
+
let root = child.__r3f.root;
|
|
437
|
+
while (root.getState().previousRoot) root = root.getState().previousRoot;
|
|
438
|
+
return root;
|
|
439
|
+
}
|
|
430
440
|
// A collection of compare functions
|
|
431
441
|
const is = {
|
|
432
442
|
obj: a => a === Object(a) && !is.arr(a) && typeof a !== 'function',
|
|
@@ -744,12 +754,14 @@ function applyProps$1(instance, data) {
|
|
|
744
754
|
}
|
|
745
755
|
invalidateInstance(instance);
|
|
746
756
|
}
|
|
747
|
-
if (localState.parent &&
|
|
757
|
+
if (localState.parent && instance.raycast && prevHandlers !== localState.eventCount) {
|
|
758
|
+
// Get the initial root state's internals
|
|
759
|
+
const internal = findInitialRoot(instance).getState().internal;
|
|
748
760
|
// Pre-emptively remove the instance from the interaction manager
|
|
749
|
-
const index =
|
|
750
|
-
if (index > -1)
|
|
761
|
+
const index = internal.interaction.indexOf(instance);
|
|
762
|
+
if (index > -1) internal.interaction.splice(index, 1);
|
|
751
763
|
// Add the instance to the interaction manager only when it has handlers
|
|
752
|
-
if (localState.eventCount)
|
|
764
|
+
if (localState.eventCount) internal.interaction.push(instance);
|
|
753
765
|
}
|
|
754
766
|
|
|
755
767
|
// Call the update lifecycle when it is being updated, but only when it is part of the scene.
|
|
@@ -1945,14 +1957,15 @@ function createRoot(canvas) {
|
|
|
1945
1957
|
if (ColorManagement) {
|
|
1946
1958
|
if ('enabled' in ColorManagement) ColorManagement.enabled = !legacy;else if ('legacyMode' in ColorManagement) ColorManagement.legacyMode = legacy;
|
|
1947
1959
|
}
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1960
|
+
if (!configured) {
|
|
1961
|
+
// Set color space and tonemapping preferences, once
|
|
1962
|
+
const LinearEncoding = 3000;
|
|
1963
|
+
const sRGBEncoding = 3001;
|
|
1964
|
+
applyProps(gl, {
|
|
1965
|
+
outputEncoding: linear ? LinearEncoding : sRGBEncoding,
|
|
1966
|
+
toneMapping: flat ? THREE.NoToneMapping : THREE.ACESFilmicToneMapping
|
|
1967
|
+
});
|
|
1968
|
+
}
|
|
1956
1969
|
|
|
1957
1970
|
// Update color management state
|
|
1958
1971
|
if (state.legacy !== legacy) state.set(() => ({
|
|
@@ -150,9 +150,10 @@ function createRenderer(_roots, _getEventPriority) {
|
|
|
150
150
|
} else if (child.isObject3D && parentInstance.isObject3D) {
|
|
151
151
|
var _child$__r3f4;
|
|
152
152
|
parentInstance.remove(child);
|
|
153
|
-
//
|
|
153
|
+
// @ts-ignore
|
|
154
|
+
// Remove interactivity on the initial root
|
|
154
155
|
if ((_child$__r3f4 = child.__r3f) != null && _child$__r3f4.root) {
|
|
155
|
-
removeInteractivity(child
|
|
156
|
+
removeInteractivity(findInitialRoot(child), child);
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
|
|
@@ -224,9 +225,9 @@ function createRenderer(_roots, _getEventPriority) {
|
|
|
224
225
|
}
|
|
225
226
|
appendChild(parent, newInstance);
|
|
226
227
|
|
|
227
|
-
// Re-bind event handlers
|
|
228
|
+
// Re-bind event handlers on the initial root
|
|
228
229
|
if (newInstance.raycast && newInstance.__r3f.eventCount) {
|
|
229
|
-
const rootState = newInstance.
|
|
230
|
+
const rootState = findInitialRoot(newInstance).getState();
|
|
230
231
|
rootState.internal.interaction.push(newInstance);
|
|
231
232
|
}
|
|
232
233
|
[fiber, fiber.alternate].forEach(fiber => {
|
|
@@ -326,10 +327,10 @@ function createRenderer(_roots, _getEventPriority) {
|
|
|
326
327
|
commitMount(instance, _type, _props, _int) {
|
|
327
328
|
var _instance$__r3f4;
|
|
328
329
|
// https://github.com/facebook/react/issues/20271
|
|
329
|
-
// This will make sure events are only added once to the central container
|
|
330
|
+
// This will make sure events are only added once to the central container on the initial root
|
|
330
331
|
const localState = (_instance$__r3f4 = instance.__r3f) != null ? _instance$__r3f4 : {};
|
|
331
332
|
if (instance.raycast && localState.handlers && localState.eventCount) {
|
|
332
|
-
instance.
|
|
333
|
+
findInitialRoot(instance).getState().internal.interaction.push(instance);
|
|
333
334
|
}
|
|
334
335
|
},
|
|
335
336
|
getPublicInstance: instance => instance,
|
|
@@ -454,6 +455,15 @@ const getRootState = obj => {
|
|
|
454
455
|
var _r3f;
|
|
455
456
|
return (_r3f = obj.__r3f) == null ? void 0 : _r3f.root.getState();
|
|
456
457
|
};
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Returns the instances initial (outmost) root
|
|
461
|
+
*/
|
|
462
|
+
function findInitialRoot(child) {
|
|
463
|
+
let root = child.__r3f.root;
|
|
464
|
+
while (root.getState().previousRoot) root = root.getState().previousRoot;
|
|
465
|
+
return root;
|
|
466
|
+
}
|
|
457
467
|
// A collection of compare functions
|
|
458
468
|
const is = {
|
|
459
469
|
obj: a => a === Object(a) && !is.arr(a) && typeof a !== 'function',
|
|
@@ -771,12 +781,14 @@ function applyProps$1(instance, data) {
|
|
|
771
781
|
}
|
|
772
782
|
invalidateInstance(instance);
|
|
773
783
|
}
|
|
774
|
-
if (localState.parent &&
|
|
784
|
+
if (localState.parent && instance.raycast && prevHandlers !== localState.eventCount) {
|
|
785
|
+
// Get the initial root state's internals
|
|
786
|
+
const internal = findInitialRoot(instance).getState().internal;
|
|
775
787
|
// Pre-emptively remove the instance from the interaction manager
|
|
776
|
-
const index =
|
|
777
|
-
if (index > -1)
|
|
788
|
+
const index = internal.interaction.indexOf(instance);
|
|
789
|
+
if (index > -1) internal.interaction.splice(index, 1);
|
|
778
790
|
// Add the instance to the interaction manager only when it has handlers
|
|
779
|
-
if (localState.eventCount)
|
|
791
|
+
if (localState.eventCount) internal.interaction.push(instance);
|
|
780
792
|
}
|
|
781
793
|
|
|
782
794
|
// Call the update lifecycle when it is being updated, but only when it is part of the scene.
|
|
@@ -1972,14 +1984,15 @@ function createRoot(canvas) {
|
|
|
1972
1984
|
if (ColorManagement) {
|
|
1973
1985
|
if ('enabled' in ColorManagement) ColorManagement.enabled = !legacy;else if ('legacyMode' in ColorManagement) ColorManagement.legacyMode = legacy;
|
|
1974
1986
|
}
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1987
|
+
if (!configured) {
|
|
1988
|
+
// Set color space and tonemapping preferences, once
|
|
1989
|
+
const LinearEncoding = 3000;
|
|
1990
|
+
const sRGBEncoding = 3001;
|
|
1991
|
+
applyProps(gl, {
|
|
1992
|
+
outputEncoding: linear ? LinearEncoding : sRGBEncoding,
|
|
1993
|
+
toneMapping: flat ? THREE__namespace.NoToneMapping : THREE__namespace.ACESFilmicToneMapping
|
|
1994
|
+
});
|
|
1995
|
+
}
|
|
1983
1996
|
|
|
1984
1997
|
// Update color management state
|
|
1985
1998
|
if (state.legacy !== legacy) state.set(() => ({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-38c9b12f.cjs.dev.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-e873c87f.cjs.prod.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createEvents, e as extend, u as useMutableCallback, a as useIsomorphicLayoutEffect, b as createRoot, i as isRef, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from './index-
|
|
2
|
-
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from './index-
|
|
1
|
+
import { c as createEvents, e as extend, u as useMutableCallback, a as useIsomorphicLayoutEffect, b as createRoot, i as isRef, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from './index-ca597524.esm.js';
|
|
2
|
+
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from './index-ca597524.esm.js';
|
|
3
3
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as THREE from 'three';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('../../dist/index-
|
|
5
|
+
var index = require('../../dist/index-38c9b12f.cjs.dev.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('../../dist/index-
|
|
5
|
+
var index = require('../../dist/index-e873c87f.cjs.prod.js');
|
|
6
6
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var THREE = require('three');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createEvents, e as extend, u as useMutableCallback, b as createRoot, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from '../../dist/index-
|
|
2
|
-
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from '../../dist/index-
|
|
1
|
+
import { c as createEvents, e as extend, u as useMutableCallback, b as createRoot, E as ErrorBoundary, B as Block, d as unmountComponentAtNode } from '../../dist/index-ca597524.esm.js';
|
|
2
|
+
export { t as ReactThreeFiber, x as _roots, v as act, o as addAfterEffect, n as addEffect, p as addTail, m as advance, j as applyProps, w as buildGraph, f as context, c as createEvents, g as createPortal, b as createRoot, k as dispose, e as extend, q as flushGlobalEffects, s as getRootState, l as invalidate, h as reconciler, r as render, d as unmountComponentAtNode, C as useFrame, D as useGraph, y as useInstanceHandle, F as useLoader, z as useStore, A as useThree } from '../../dist/index-ca597524.esm.js';
|
|
3
3
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as THREE from 'three';
|