@react-three/fiber 10.0.0-canary.c49d4cb → 10.0.0-canary.c6846c3
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/index.cjs +1734 -1576
- package/dist/index.d.cts +22 -10
- package/dist/index.d.mts +22 -10
- package/dist/index.d.ts +22 -10
- package/dist/index.mjs +1736 -1578
- package/dist/legacy.cjs +1732 -1574
- package/dist/legacy.d.cts +22 -10
- package/dist/legacy.d.mts +22 -10
- package/dist/legacy.d.ts +22 -10
- package/dist/legacy.mjs +1734 -1576
- package/dist/webgpu/index.cjs +2012 -2096
- package/dist/webgpu/index.d.cts +38 -14
- package/dist/webgpu/index.d.mts +38 -14
- package/dist/webgpu/index.d.ts +38 -14
- package/dist/webgpu/index.mjs +2014 -2098
- package/package.json +3 -3
- package/readme.md +1 -1
- package/react-reconciler/constants.d.ts +0 -7
- package/react-reconciler/constants.js +0 -1
- package/react-reconciler/index.d.ts +0 -1044
- package/react-reconciler/index.js +0 -208
package/dist/index.d.cts
CHANGED
|
@@ -12,7 +12,6 @@ import { FrameTimingState, FrameCallback as FrameCallback$1, SchedulerApi, UseFr
|
|
|
12
12
|
export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, Scheduler, SchedulerApi, UseFrameNextOptions, UseFrameOptions, getScheduler } from '@pmndrs/scheduler';
|
|
13
13
|
import { Options } from 'react-use-measure';
|
|
14
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
15
|
-
import { ThreeElement as ThreeElement$1, Euler as Euler$3 } from '@react-three/fiber';
|
|
16
15
|
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
17
16
|
|
|
18
17
|
function _mergeNamespaces(n, m) {
|
|
@@ -1635,9 +1634,9 @@ type EnvironmentProps = {
|
|
|
1635
1634
|
blur?: number;
|
|
1636
1635
|
backgroundBlurriness?: number;
|
|
1637
1636
|
backgroundIntensity?: number;
|
|
1638
|
-
backgroundRotation?: Euler
|
|
1637
|
+
backgroundRotation?: Euler;
|
|
1639
1638
|
environmentIntensity?: number;
|
|
1640
|
-
environmentRotation?: Euler
|
|
1639
|
+
environmentRotation?: Euler;
|
|
1641
1640
|
map?: Texture$1;
|
|
1642
1641
|
preset?: PresetsType;
|
|
1643
1642
|
scene?: Scene | React$1.RefObject<Scene>;
|
|
@@ -1721,7 +1720,7 @@ declare function EnvironmentCube({ background, scene, blur, backgroundBlurriness
|
|
|
1721
1720
|
declare function EnvironmentPortal({ children, near, far, resolution, frames, map, background, blur, backgroundBlurriness, backgroundIntensity, backgroundRotation, environmentIntensity, environmentRotation, scene, files, path, preset, extensions, }: EnvironmentProps): react_jsx_runtime.JSX.Element;
|
|
1722
1721
|
declare module '@react-three/fiber' {
|
|
1723
1722
|
interface ThreeElements {
|
|
1724
|
-
groundProjectedEnvImpl: ThreeElement
|
|
1723
|
+
groundProjectedEnvImpl: ThreeElement<typeof GroundedSkybox>;
|
|
1725
1724
|
}
|
|
1726
1725
|
}
|
|
1727
1726
|
/**
|
|
@@ -1821,6 +1820,24 @@ declare module '@react-three/fiber' {
|
|
|
1821
1820
|
*/
|
|
1822
1821
|
declare function Environment(props: EnvironmentProps): react_jsx_runtime.JSX.Element;
|
|
1823
1822
|
|
|
1823
|
+
/**
|
|
1824
|
+
* Moves every trace of interactivity from one object to its replacement, for reconstruction.
|
|
1825
|
+
*
|
|
1826
|
+
* When `args` or a `primitive`'s `object` changes, R3F builds a new three object and keeps the same
|
|
1827
|
+
* instance. Removing the old object from the interaction state and registering the new one from
|
|
1828
|
+
* scratch makes events *work* again (#3778), but it forgets what was in flight: a pointer resting on
|
|
1829
|
+
* the object fires a second `onPointerEnter` without ever having left, and an active pointer capture
|
|
1830
|
+
* is dropped mid-drag. Rewriting the references instead keeps the interaction continuous across a
|
|
1831
|
+
* swap the user never asked to see (#3744).
|
|
1832
|
+
*
|
|
1833
|
+
* Captures are re-keyed rather than released, so the DOM-level capture on `captureData.target` is
|
|
1834
|
+
* left alone — releasing and re-acquiring it is precisely the glitch being avoided.
|
|
1835
|
+
*
|
|
1836
|
+
* Visibility handlers are deliberately not transferred: that registry is keyed by `object.uuid`, so
|
|
1837
|
+
* the replacement re-registers itself through `applyProps`. The old entry is dropped here so it
|
|
1838
|
+
* cannot outlive the object it described.
|
|
1839
|
+
*/
|
|
1840
|
+
declare function swapInteractivity(store: RootStore, object: Object3D, newObject: Object3D): void;
|
|
1824
1841
|
declare function removeInteractivity(store: RootStore, object: Object3D): void;
|
|
1825
1842
|
declare function createEvents(store: RootStore): {
|
|
1826
1843
|
handlePointer: (name: string) => (event: DomEvent) => void;
|
|
@@ -3246,11 +3263,6 @@ declare function flushSync<R>(fn: () => R): R;
|
|
|
3246
3263
|
declare const context: React$1.Context<RootStore>;
|
|
3247
3264
|
declare const createStore: (invalidate: (state?: RootState, frames?: number, stackFrames?: boolean) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState, frame?: XRFrame) => void) => RootStore;
|
|
3248
3265
|
|
|
3249
|
-
/**
|
|
3250
|
-
* Safely flush async effects when testing, simulating a legacy root.
|
|
3251
|
-
* @deprecated Import from React instead. import { act } from 'react'
|
|
3252
|
-
*/
|
|
3253
|
-
declare const act: typeof React$1.act;
|
|
3254
3266
|
/**
|
|
3255
3267
|
* An SSR-friendly useLayoutEffect.
|
|
3256
3268
|
*
|
|
@@ -3734,5 +3746,5 @@ declare function isOnce(value: unknown): value is {
|
|
|
3734
3746
|
*/
|
|
3735
3747
|
declare function Canvas(props: CanvasProps): react_jsx_runtime.JSX.Element;
|
|
3736
3748
|
|
|
3737
|
-
export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots,
|
|
3749
|
+
export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, context, createEvents, createPointerEvents, createPortal, createRoot, createStore, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, reconciler, registerPrimary, removeInteractivity, resolve, swapInteractivity, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useEnvironment, useFrame, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useMutableCallback, useRenderTarget, useStore, useTexture, useTextures, useThree, waitForPrimary };
|
|
3738
3750
|
export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferLike, BufferRecord, BufferStore, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, DefaultGLProps, DefaultRendererProps, Disposable, DisposeOptions, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeProps, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, R3FRenderer, RaycastableRepresentation, ReactProps, ReconcilerRoot, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, RootState, RootStore, SetBlock, Size, StorageLike, StorageRecord, StorageStore, Subscription, TSLNodeInput, TextureInput, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, XRManager, XRPointerConfig };
|
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,6 @@ import { FrameTimingState, FrameCallback as FrameCallback$1, SchedulerApi, UseFr
|
|
|
12
12
|
export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, Scheduler, SchedulerApi, UseFrameNextOptions, UseFrameOptions, getScheduler } from '@pmndrs/scheduler';
|
|
13
13
|
import { Options } from 'react-use-measure';
|
|
14
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
15
|
-
import { ThreeElement as ThreeElement$1, Euler as Euler$3 } from '@react-three/fiber';
|
|
16
15
|
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
17
16
|
|
|
18
17
|
function _mergeNamespaces(n, m) {
|
|
@@ -1635,9 +1634,9 @@ type EnvironmentProps = {
|
|
|
1635
1634
|
blur?: number;
|
|
1636
1635
|
backgroundBlurriness?: number;
|
|
1637
1636
|
backgroundIntensity?: number;
|
|
1638
|
-
backgroundRotation?: Euler
|
|
1637
|
+
backgroundRotation?: Euler;
|
|
1639
1638
|
environmentIntensity?: number;
|
|
1640
|
-
environmentRotation?: Euler
|
|
1639
|
+
environmentRotation?: Euler;
|
|
1641
1640
|
map?: Texture$1;
|
|
1642
1641
|
preset?: PresetsType;
|
|
1643
1642
|
scene?: Scene | React$1.RefObject<Scene>;
|
|
@@ -1721,7 +1720,7 @@ declare function EnvironmentCube({ background, scene, blur, backgroundBlurriness
|
|
|
1721
1720
|
declare function EnvironmentPortal({ children, near, far, resolution, frames, map, background, blur, backgroundBlurriness, backgroundIntensity, backgroundRotation, environmentIntensity, environmentRotation, scene, files, path, preset, extensions, }: EnvironmentProps): react_jsx_runtime.JSX.Element;
|
|
1722
1721
|
declare module '@react-three/fiber' {
|
|
1723
1722
|
interface ThreeElements {
|
|
1724
|
-
groundProjectedEnvImpl: ThreeElement
|
|
1723
|
+
groundProjectedEnvImpl: ThreeElement<typeof GroundedSkybox>;
|
|
1725
1724
|
}
|
|
1726
1725
|
}
|
|
1727
1726
|
/**
|
|
@@ -1821,6 +1820,24 @@ declare module '@react-three/fiber' {
|
|
|
1821
1820
|
*/
|
|
1822
1821
|
declare function Environment(props: EnvironmentProps): react_jsx_runtime.JSX.Element;
|
|
1823
1822
|
|
|
1823
|
+
/**
|
|
1824
|
+
* Moves every trace of interactivity from one object to its replacement, for reconstruction.
|
|
1825
|
+
*
|
|
1826
|
+
* When `args` or a `primitive`'s `object` changes, R3F builds a new three object and keeps the same
|
|
1827
|
+
* instance. Removing the old object from the interaction state and registering the new one from
|
|
1828
|
+
* scratch makes events *work* again (#3778), but it forgets what was in flight: a pointer resting on
|
|
1829
|
+
* the object fires a second `onPointerEnter` without ever having left, and an active pointer capture
|
|
1830
|
+
* is dropped mid-drag. Rewriting the references instead keeps the interaction continuous across a
|
|
1831
|
+
* swap the user never asked to see (#3744).
|
|
1832
|
+
*
|
|
1833
|
+
* Captures are re-keyed rather than released, so the DOM-level capture on `captureData.target` is
|
|
1834
|
+
* left alone — releasing and re-acquiring it is precisely the glitch being avoided.
|
|
1835
|
+
*
|
|
1836
|
+
* Visibility handlers are deliberately not transferred: that registry is keyed by `object.uuid`, so
|
|
1837
|
+
* the replacement re-registers itself through `applyProps`. The old entry is dropped here so it
|
|
1838
|
+
* cannot outlive the object it described.
|
|
1839
|
+
*/
|
|
1840
|
+
declare function swapInteractivity(store: RootStore, object: Object3D, newObject: Object3D): void;
|
|
1824
1841
|
declare function removeInteractivity(store: RootStore, object: Object3D): void;
|
|
1825
1842
|
declare function createEvents(store: RootStore): {
|
|
1826
1843
|
handlePointer: (name: string) => (event: DomEvent) => void;
|
|
@@ -3246,11 +3263,6 @@ declare function flushSync<R>(fn: () => R): R;
|
|
|
3246
3263
|
declare const context: React$1.Context<RootStore>;
|
|
3247
3264
|
declare const createStore: (invalidate: (state?: RootState, frames?: number, stackFrames?: boolean) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState, frame?: XRFrame) => void) => RootStore;
|
|
3248
3265
|
|
|
3249
|
-
/**
|
|
3250
|
-
* Safely flush async effects when testing, simulating a legacy root.
|
|
3251
|
-
* @deprecated Import from React instead. import { act } from 'react'
|
|
3252
|
-
*/
|
|
3253
|
-
declare const act: typeof React$1.act;
|
|
3254
3266
|
/**
|
|
3255
3267
|
* An SSR-friendly useLayoutEffect.
|
|
3256
3268
|
*
|
|
@@ -3734,5 +3746,5 @@ declare function isOnce(value: unknown): value is {
|
|
|
3734
3746
|
*/
|
|
3735
3747
|
declare function Canvas(props: CanvasProps): react_jsx_runtime.JSX.Element;
|
|
3736
3748
|
|
|
3737
|
-
export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots,
|
|
3749
|
+
export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, context, createEvents, createPointerEvents, createPortal, createRoot, createStore, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, reconciler, registerPrimary, removeInteractivity, resolve, swapInteractivity, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useEnvironment, useFrame, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useMutableCallback, useRenderTarget, useStore, useTexture, useTextures, useThree, waitForPrimary };
|
|
3738
3750
|
export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferLike, BufferRecord, BufferStore, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, DefaultGLProps, DefaultRendererProps, Disposable, DisposeOptions, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeProps, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, R3FRenderer, RaycastableRepresentation, ReactProps, ReconcilerRoot, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, RootState, RootStore, SetBlock, Size, StorageLike, StorageRecord, StorageStore, Subscription, TSLNodeInput, TextureInput, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, XRManager, XRPointerConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import { FrameTimingState, FrameCallback as FrameCallback$1, SchedulerApi, UseFr
|
|
|
12
12
|
export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, Scheduler, SchedulerApi, UseFrameNextOptions, UseFrameOptions, getScheduler } from '@pmndrs/scheduler';
|
|
13
13
|
import { Options } from 'react-use-measure';
|
|
14
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
15
|
-
import { ThreeElement as ThreeElement$1, Euler as Euler$3 } from '@react-three/fiber';
|
|
16
15
|
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
17
16
|
|
|
18
17
|
function _mergeNamespaces(n, m) {
|
|
@@ -1635,9 +1634,9 @@ type EnvironmentProps = {
|
|
|
1635
1634
|
blur?: number;
|
|
1636
1635
|
backgroundBlurriness?: number;
|
|
1637
1636
|
backgroundIntensity?: number;
|
|
1638
|
-
backgroundRotation?: Euler
|
|
1637
|
+
backgroundRotation?: Euler;
|
|
1639
1638
|
environmentIntensity?: number;
|
|
1640
|
-
environmentRotation?: Euler
|
|
1639
|
+
environmentRotation?: Euler;
|
|
1641
1640
|
map?: Texture$1;
|
|
1642
1641
|
preset?: PresetsType;
|
|
1643
1642
|
scene?: Scene | React$1.RefObject<Scene>;
|
|
@@ -1721,7 +1720,7 @@ declare function EnvironmentCube({ background, scene, blur, backgroundBlurriness
|
|
|
1721
1720
|
declare function EnvironmentPortal({ children, near, far, resolution, frames, map, background, blur, backgroundBlurriness, backgroundIntensity, backgroundRotation, environmentIntensity, environmentRotation, scene, files, path, preset, extensions, }: EnvironmentProps): react_jsx_runtime.JSX.Element;
|
|
1722
1721
|
declare module '@react-three/fiber' {
|
|
1723
1722
|
interface ThreeElements {
|
|
1724
|
-
groundProjectedEnvImpl: ThreeElement
|
|
1723
|
+
groundProjectedEnvImpl: ThreeElement<typeof GroundedSkybox>;
|
|
1725
1724
|
}
|
|
1726
1725
|
}
|
|
1727
1726
|
/**
|
|
@@ -1821,6 +1820,24 @@ declare module '@react-three/fiber' {
|
|
|
1821
1820
|
*/
|
|
1822
1821
|
declare function Environment(props: EnvironmentProps): react_jsx_runtime.JSX.Element;
|
|
1823
1822
|
|
|
1823
|
+
/**
|
|
1824
|
+
* Moves every trace of interactivity from one object to its replacement, for reconstruction.
|
|
1825
|
+
*
|
|
1826
|
+
* When `args` or a `primitive`'s `object` changes, R3F builds a new three object and keeps the same
|
|
1827
|
+
* instance. Removing the old object from the interaction state and registering the new one from
|
|
1828
|
+
* scratch makes events *work* again (#3778), but it forgets what was in flight: a pointer resting on
|
|
1829
|
+
* the object fires a second `onPointerEnter` without ever having left, and an active pointer capture
|
|
1830
|
+
* is dropped mid-drag. Rewriting the references instead keeps the interaction continuous across a
|
|
1831
|
+
* swap the user never asked to see (#3744).
|
|
1832
|
+
*
|
|
1833
|
+
* Captures are re-keyed rather than released, so the DOM-level capture on `captureData.target` is
|
|
1834
|
+
* left alone — releasing and re-acquiring it is precisely the glitch being avoided.
|
|
1835
|
+
*
|
|
1836
|
+
* Visibility handlers are deliberately not transferred: that registry is keyed by `object.uuid`, so
|
|
1837
|
+
* the replacement re-registers itself through `applyProps`. The old entry is dropped here so it
|
|
1838
|
+
* cannot outlive the object it described.
|
|
1839
|
+
*/
|
|
1840
|
+
declare function swapInteractivity(store: RootStore, object: Object3D, newObject: Object3D): void;
|
|
1824
1841
|
declare function removeInteractivity(store: RootStore, object: Object3D): void;
|
|
1825
1842
|
declare function createEvents(store: RootStore): {
|
|
1826
1843
|
handlePointer: (name: string) => (event: DomEvent) => void;
|
|
@@ -3246,11 +3263,6 @@ declare function flushSync<R>(fn: () => R): R;
|
|
|
3246
3263
|
declare const context: React$1.Context<RootStore>;
|
|
3247
3264
|
declare const createStore: (invalidate: (state?: RootState, frames?: number, stackFrames?: boolean) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState, frame?: XRFrame) => void) => RootStore;
|
|
3248
3265
|
|
|
3249
|
-
/**
|
|
3250
|
-
* Safely flush async effects when testing, simulating a legacy root.
|
|
3251
|
-
* @deprecated Import from React instead. import { act } from 'react'
|
|
3252
|
-
*/
|
|
3253
|
-
declare const act: typeof React$1.act;
|
|
3254
3266
|
/**
|
|
3255
3267
|
* An SSR-friendly useLayoutEffect.
|
|
3256
3268
|
*
|
|
@@ -3734,5 +3746,5 @@ declare function isOnce(value: unknown): value is {
|
|
|
3734
3746
|
*/
|
|
3735
3747
|
declare function Canvas(props: CanvasProps): react_jsx_runtime.JSX.Element;
|
|
3736
3748
|
|
|
3737
|
-
export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots,
|
|
3749
|
+
export { Block, Canvas, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, ErrorBoundary, FROM_REF, IsObject, ONCE, Portal, R3F_BUILD_LEGACY, R3F_BUILD_WEBGPU, REACT_INTERNAL_PROPS, RESERVED_PROPS, three_d as ReactThreeFiber, Texture, _roots, addAfterEffect, addEffect, addTail, advance, applyProps, attach, buildGraph, calculateDpr, context, createEvents, createPointerEvents, createPortal, createRoot, createStore, detach, diffProps, dispose, createPointerEvents as events, extend, findInitialRoot, flushSync, fromRef, getInstanceProps, getPrimary, getPrimaryIds, getRootState, getUuidPrefix, hasConstructor, hasPrimary, invalidate, invalidateInstance, is, isColorRepresentation, isCopyable, isFromRef, isObject3D, isOnce, isOrthographicCamera, isRef, isRenderer, isTexture, isVectorLike, once, prepare, presetsObj, reconciler, registerPrimary, removeInteractivity, resolve, swapInteractivity, unmountComponentAtNode, unregisterPrimary, updateCamera, updateFrustum, useBridge, useEnvironment, useFrame, useGraph, useInstanceHandle, useIsomorphicLayoutEffect, useLoader, useMutableCallback, useRenderTarget, useStore, useTexture, useTextures, useThree, waitForPrimary };
|
|
3738
3750
|
export type { Act, Args, ArgsProp, AttachFnType, AttachType, BackgroundConfig, BackgroundProp, BaseRendererProps, Bridge, BufferLike, BufferRecord, BufferStore, Camera, CameraProps, CanvasProps, CanvasSchedulerConfig, Catalogue, Color, ColorManagementConfig, ComputeFunction, ConstructorRepresentation, DefaultGLProps, DefaultRendererProps, Disposable, DisposeOptions, DomEvent, Dpr, ElementProps, EnvironmentLoaderProps, EnvironmentProps, EquConfig, Euler, EventHandlers, EventManager, EventProps, Events, Extensions, FiberRoot, FilterFunction, FrameCallback, FrameNextCallback, FrameNextState, FrameState, Frameloop, GLProps, GLTFLike, GeometryProps, GeometryTransformProps, GlobalEffectType, GlobalRenderCallback, HostConfig, InferLoadResult, InjectState, InputLike, Instance, InstanceProps, InternalState, Intersection, IntersectionEvent, IsAllOptional, IsOptional, Layers, LegacyInternalState, LegacyRenderer, LegacyRootState, LoaderInstance, LoaderLike, LoaderResult, MappedTextureType, MathProps, MathRepresentation, MathType, MathTypes, Matrix3, Matrix4, Mutable, MutableOrReadonlyParameters, NodeProps, NonFunctionKeys, ObjectMap, OffscreenCanvas$1 as OffscreenCanvas, Overwrite, Performance, PointerCaptureTarget, PointerState, PresetsType, PrimaryCanvasEntry, Properties, Quaternion, R3FRenderer, RaycastableRepresentation, ReactProps, ReconcilerRoot, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, RootState, RootStore, SetBlock, Size, StorageLike, StorageRecord, StorageStore, Subscription, TSLNodeInput, TextureInput, TextureResult, ThreeCamera, ThreeElement, ThreeElements, ThreeElementsImpl, ThreeEvent, ThreeExports, ThreeToJSXElements, UnblockProps, UseTextureOptions, UseTexturesReturn, Vector2, Vector3, Vector4, VectorRepresentation, Viewport, VisibilityEntry, WebGLDefaultProps, WebGLProps, WebGLShadowConfig, XRManager, XRPointerConfig };
|