@react-three/fiber 10.0.0-canary.f046a54 → 10.0.0-canary.f49e56e
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 +2424 -2190
- package/dist/index.d.cts +114 -44
- package/dist/index.d.mts +114 -44
- package/dist/index.d.ts +114 -44
- package/dist/index.mjs +2427 -2193
- package/dist/legacy.cjs +2423 -2194
- package/dist/legacy.d.cts +113 -46
- package/dist/legacy.d.mts +113 -46
- package/dist/legacy.d.ts +113 -46
- package/dist/legacy.mjs +2425 -2196
- package/dist/webgpu/index.cjs +2705 -2687
- package/dist/webgpu/index.d.cts +168 -96
- package/dist/webgpu/index.d.mts +168 -96
- package/dist/webgpu/index.d.ts +168 -96
- package/dist/webgpu/index.mjs +2985 -2967
- package/package.json +6 -6
- package/readme.md +1 -2
- 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/legacy.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE$1 from 'three';
|
|
2
|
-
import { WebGLRenderTarget, Color as Color$1, ColorRepresentation, Euler as Euler$1, Loader, RenderTargetOptions as RenderTargetOptions$1, Layers as Layers$1, Raycaster, Intersection as Intersection$1, BufferGeometry, Matrix4 as Matrix4$1, Quaternion as Quaternion$1, Node as Node$1, Vector2 as Vector2$1, Vector3 as Vector3$1, Vector4 as Vector4$1, Matrix3 as Matrix3$1, ColorSpace, Texture as Texture$1, CubeTexture, Scene, Object3D, Frustum, OrthographicCamera } from 'three';
|
|
2
|
+
import { WebGLCubeRenderTarget, WebGLRenderTarget, Color as Color$1, ColorRepresentation, Euler as Euler$1, Loader, RenderTargetOptions as RenderTargetOptions$1, Layers as Layers$1, Raycaster, Intersection as Intersection$1, BufferGeometry, Matrix4 as Matrix4$1, Quaternion as Quaternion$1, Node as Node$1, Vector2 as Vector2$1, Vector3 as Vector3$1, Vector4 as Vector4$1, Matrix3 as Matrix3$1, ColorSpace, Texture as Texture$1, CubeTexture, Scene, Object3D, Frustum, OrthographicCamera } from 'three';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import { ReactNode, Component, RefObject, JSX } from 'react';
|
|
5
5
|
import * as three_webgpu from 'three/webgpu';
|
|
@@ -10,7 +10,6 @@ import { FrameTimingState, FrameCallback as FrameCallback$1, SchedulerApi, UseFr
|
|
|
10
10
|
export { AddPhaseOptions, FrameControls, FrameNextControls, FrameTimingState, RootOptions, Scheduler, SchedulerApi, UseFrameNextOptions, UseFrameOptions, getScheduler } from '@pmndrs/scheduler';
|
|
11
11
|
import { Options } from 'react-use-measure';
|
|
12
12
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
13
|
-
import { ThreeElement as ThreeElement$1, Euler as Euler$2 } from '@react-three/fiber';
|
|
14
13
|
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
15
14
|
|
|
16
15
|
function _mergeNamespaces(n, m) {
|
|
@@ -39,23 +38,28 @@ function _mergeNamespaces(n, m) {
|
|
|
39
38
|
declare const R3F_BUILD_LEGACY = true;
|
|
40
39
|
declare const R3F_BUILD_WEBGPU = false;
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
type Inspector = never;
|
|
42
|
+
/** Not available on the legacy (WebGL-only) entry. */
|
|
43
|
+
declare function loadInspector(): Promise<never>;
|
|
45
44
|
declare const WebGPURenderer: {
|
|
46
45
|
new (): {};
|
|
47
46
|
};
|
|
48
47
|
|
|
49
48
|
declare const RenderTarget: any;
|
|
50
49
|
|
|
50
|
+
declare const CubeRenderTarget: any;
|
|
51
|
+
|
|
51
52
|
var THREE = /*#__PURE__*/_mergeNamespaces({
|
|
52
53
|
__proto__: null,
|
|
54
|
+
CubeRenderTarget: CubeRenderTarget,
|
|
55
|
+
CubeRenderTargetCompat: WebGLCubeRenderTarget,
|
|
53
56
|
Inspector: Inspector,
|
|
54
57
|
R3F_BUILD_LEGACY: R3F_BUILD_LEGACY,
|
|
55
58
|
R3F_BUILD_WEBGPU: R3F_BUILD_WEBGPU,
|
|
56
59
|
RenderTarget: RenderTarget,
|
|
57
60
|
RenderTargetCompat: WebGLRenderTarget,
|
|
58
|
-
WebGPURenderer: WebGPURenderer
|
|
61
|
+
WebGPURenderer: WebGPURenderer,
|
|
62
|
+
loadInspector: loadInspector
|
|
59
63
|
}, [THREE$1]);
|
|
60
64
|
|
|
61
65
|
//* Utility Types ==============================
|
|
@@ -493,9 +497,21 @@ interface InternalState {
|
|
|
493
497
|
* @see https://threejs.org/docs/#api/en/renderers/common/CanvasTarget
|
|
494
498
|
*/
|
|
495
499
|
canvasTarget?: CanvasTarget
|
|
500
|
+
/**
|
|
501
|
+
* Set when this root's canvas target has been resized and the backend's cached render pass
|
|
502
|
+
* descriptor (which holds a depth-stencil view built once per canvas) is therefore stale.
|
|
503
|
+
*
|
|
504
|
+
* Flushed by the canvas-target job in the `start` phase, which is the only place this root's
|
|
505
|
+
* target is guaranteed to be the renderer's active one — `backend.updateSize()` operates on
|
|
506
|
+
* whatever `getCanvasTarget()` returns, so calling it from the resize subscription would
|
|
507
|
+
* invalidate some other canvas's descriptor instead.
|
|
508
|
+
*
|
|
509
|
+
* @see https://github.com/pmndrs/react-three-fiber/issues/3847
|
|
510
|
+
*/
|
|
511
|
+
canvasTargetSizeDirty?: boolean
|
|
496
512
|
/**
|
|
497
513
|
* Whether multi-canvas rendering is active.
|
|
498
|
-
* True when any canvas uses `
|
|
514
|
+
* True when any canvas uses `renderer={{ primaryCanvas: 'id' }}` to share a renderer.
|
|
499
515
|
* When true, setCanvasTarget is called before each render.
|
|
500
516
|
*/
|
|
501
517
|
isMultiCanvas?: boolean
|
|
@@ -593,8 +609,8 @@ interface RootState {
|
|
|
593
609
|
setSize: (width?: number, height?: number, top?: number, left?: number) => void
|
|
594
610
|
/** Shortcut to manual setting the pixel ratio */
|
|
595
611
|
setDpr: (dpr: Dpr) => void
|
|
596
|
-
/** Shortcut to setting frameloop flags */
|
|
597
|
-
setFrameloop: (frameloop
|
|
612
|
+
/** Shortcut to setting frameloop flags. No args resets to 'always'. */
|
|
613
|
+
setFrameloop: (frameloop?: Frameloop) => void
|
|
598
614
|
/** Set error state to propagate to error boundary */
|
|
599
615
|
setError: (error: Error | null) => void
|
|
600
616
|
/** Current error state (null when no error) */
|
|
@@ -612,7 +628,7 @@ interface RootState {
|
|
|
612
628
|
/** Internal: refcount per texture key, driven by mounted useTexture consumers (registry enrollment is on by default) */
|
|
613
629
|
_textureRefs: Map<string, number>
|
|
614
630
|
/** WebGPU RenderPipeline instance - use useRenderPipeline() hook */
|
|
615
|
-
renderPipeline:
|
|
631
|
+
renderPipeline: ThreeRenderPipeline | null
|
|
616
632
|
/** Global TSL pass nodes for render pipeline - use useRenderPipeline() hook */
|
|
617
633
|
passes: Record<string, any>
|
|
618
634
|
/** Internal version counter for HMR - incremented by rebuildNodes/rebuildUniforms to bust memoization */
|
|
@@ -702,12 +718,19 @@ type DefaultRendererProps = {
|
|
|
702
718
|
*/
|
|
703
719
|
interface CanvasSchedulerConfig {
|
|
704
720
|
/**
|
|
705
|
-
*
|
|
706
|
-
|
|
721
|
+
* Run this Canvas root before the referenced Canvas root id(s).
|
|
722
|
+
*/
|
|
723
|
+
before?: string | string[]
|
|
724
|
+
/**
|
|
725
|
+
* Run this Canvas root after the referenced Canvas root id(s).
|
|
726
|
+
*/
|
|
727
|
+
after?: string | string[]
|
|
728
|
+
/**
|
|
729
|
+
* Numeric root order. Lower values run first.
|
|
707
730
|
*/
|
|
708
|
-
|
|
731
|
+
order?: number
|
|
709
732
|
/**
|
|
710
|
-
* Limit this
|
|
733
|
+
* Limit this Canvas's default render job (frames per second).
|
|
711
734
|
*/
|
|
712
735
|
fps?: number
|
|
713
736
|
}
|
|
@@ -905,8 +928,6 @@ interface Instance<O = any> {
|
|
|
905
928
|
attach?: AttachType<O>
|
|
906
929
|
previousAttach?: any
|
|
907
930
|
isHidden: boolean
|
|
908
|
-
/** Deferred ref props to apply in commitMount */
|
|
909
|
-
deferredRefs?: Array<{ prop: string; ref: React$1.RefObject<any> }>
|
|
910
931
|
/** Set of props that have been applied via once() */
|
|
911
932
|
appliedOnce?: Set<string>
|
|
912
933
|
}
|
|
@@ -1143,10 +1164,21 @@ type RenderTargetOptions = RenderTargetOptions$1
|
|
|
1143
1164
|
//* Global Types ==============================
|
|
1144
1165
|
|
|
1145
1166
|
declare global {
|
|
1146
|
-
/**
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1167
|
+
/**
|
|
1168
|
+
* Uniform node type.
|
|
1169
|
+
*
|
|
1170
|
+
* This is three's own `UniformNode`, not a re-declaration of it. It previously was a
|
|
1171
|
+
* hand-rolled `interface UniformNode<T> extends Node { value: T }`, which shadowed the real
|
|
1172
|
+
* exported type globally — so R3F's ~58 references resolved to an approximation that was
|
|
1173
|
+
* missing members three actually ships (`setName` among them) and had drifted to the wrong
|
|
1174
|
+
* arity when three made `UniformNode` two-parameter.
|
|
1175
|
+
*
|
|
1176
|
+
* three's signature is `UniformNode<TNodeType, TValue>`. R3F only ever varies the value type,
|
|
1177
|
+
* so the node type is fixed to `unknown` and the single parameter is kept for call-site
|
|
1178
|
+
* ergonomics. The result is three's structural type, so members stay in sync with the
|
|
1179
|
+
* installed three instead of needing to be mirrored by hand.
|
|
1180
|
+
*/
|
|
1181
|
+
type UniformNode<T = unknown> = three_webgpu.UniformNode<unknown, T>
|
|
1150
1182
|
|
|
1151
1183
|
/**
|
|
1152
1184
|
* ShaderCallable - the return type of Fn()
|
|
@@ -1291,28 +1323,34 @@ declare module 'three/tsl' {
|
|
|
1291
1323
|
): ShaderCallable<R>
|
|
1292
1324
|
}
|
|
1293
1325
|
|
|
1294
|
-
/**
|
|
1295
|
-
* RenderPipeline Types for useRenderPipeline hook (WebGPU only)
|
|
1296
|
-
*/
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
1326
|
declare global {
|
|
1327
|
+
/**
|
|
1328
|
+
* three's own render pipeline type. Named here so the rest of R3F refers to three's shape
|
|
1329
|
+
* rather than `any`. three r183 renamed `PostProcessing` to `RenderPipeline`; our peer floor
|
|
1330
|
+
* is r185, so the new name is the only one.
|
|
1331
|
+
*/
|
|
1332
|
+
type ThreeRenderPipeline = three_webgpu.RenderPipeline
|
|
1333
|
+
|
|
1301
1334
|
/** Pass record - stores TSL pass nodes for render pipeline */
|
|
1302
1335
|
type PassRecord = Record<string, any>
|
|
1303
1336
|
|
|
1337
|
+
/** State passed to pipeline callbacks after the active pipeline has been created */
|
|
1338
|
+
type RenderPipelineCallbackState = RootState & {
|
|
1339
|
+
renderPipeline: ThreeRenderPipeline
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1304
1342
|
/** Setup callback - runs first to configure MRT, create additional passes */
|
|
1305
|
-
type RenderPipelineSetupCallback = (state:
|
|
1343
|
+
type RenderPipelineSetupCallback = (state: RenderPipelineCallbackState) => PassRecord | void
|
|
1306
1344
|
|
|
1307
1345
|
/** Main callback - runs second to configure outputNode, create effect passes */
|
|
1308
|
-
type RenderPipelineMainCallback = (state:
|
|
1346
|
+
type RenderPipelineMainCallback = (state: RenderPipelineCallbackState) => PassRecord | void
|
|
1309
1347
|
|
|
1310
1348
|
/** Return type for useRenderPipeline hook */
|
|
1311
1349
|
interface UseRenderPipelineReturn {
|
|
1312
1350
|
/** Current passes from state */
|
|
1313
1351
|
passes: PassRecord
|
|
1314
1352
|
/** RenderPipeline instance (null if not initialized) */
|
|
1315
|
-
renderPipeline:
|
|
1353
|
+
renderPipeline: ThreeRenderPipeline | null
|
|
1316
1354
|
/** Clear all passes from state */
|
|
1317
1355
|
clearPasses: () => void
|
|
1318
1356
|
/** Reset RenderPipeline entirely (clears PP + passes) */
|
|
@@ -1493,7 +1531,7 @@ declare namespace three_d {
|
|
|
1493
1531
|
* a single WebGPURenderer using Three.js CanvasTarget API.
|
|
1494
1532
|
*
|
|
1495
1533
|
* Primary canvas: Has `id` prop, creates its own renderer, registers here
|
|
1496
|
-
* Secondary canvas: Has `
|
|
1534
|
+
* Secondary canvas: Has `renderer={{ primaryCanvas: 'id' }}`, shares primary's renderer via CanvasTarget
|
|
1497
1535
|
*/
|
|
1498
1536
|
|
|
1499
1537
|
interface PrimaryCanvasEntry {
|
|
@@ -1561,12 +1599,23 @@ type EnvironmentLoaderProps = {
|
|
|
1561
1599
|
* const texture = useEnvironment({ preset: 'sunset' })
|
|
1562
1600
|
* ```
|
|
1563
1601
|
*/
|
|
1564
|
-
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture
|
|
1602
|
+
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown, THREE$1.TextureEventMap> | CubeTexture<unknown>;
|
|
1565
1603
|
declare namespace useEnvironment {
|
|
1566
1604
|
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
|
1567
1605
|
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
|
1568
1606
|
}
|
|
1569
|
-
|
|
1607
|
+
/**
|
|
1608
|
+
* Options accepted by `useEnvironment.preload`.
|
|
1609
|
+
*
|
|
1610
|
+
* `colorSpace` is deliberately omitted: preload only warms the loader cache, and colorSpace is
|
|
1611
|
+
* applied to the texture by `useEnvironment()` at use time, per consumer. Accepting it here would
|
|
1612
|
+
* advertise an option this function silently ignores.
|
|
1613
|
+
*
|
|
1614
|
+
* This previously read `Omit<…, 'encoding'>` — omitting a key that does not exist on
|
|
1615
|
+
* `EnvironmentLoaderProps`, a leftover from three's pre-`colorSpace` `encoding` API. That made the
|
|
1616
|
+
* type equivalent to the full props, so `colorSpace` was accepted and then dropped on the floor.
|
|
1617
|
+
*/
|
|
1618
|
+
type EnvironmentLoaderPreloadOptions = Omit<EnvironmentLoaderProps, 'colorSpace'>;
|
|
1570
1619
|
type EnvironmentLoaderClearOptions = Pick<EnvironmentLoaderProps, 'files' | 'preset'>;
|
|
1571
1620
|
|
|
1572
1621
|
/**
|
|
@@ -1610,9 +1659,9 @@ type EnvironmentProps = {
|
|
|
1610
1659
|
blur?: number;
|
|
1611
1660
|
backgroundBlurriness?: number;
|
|
1612
1661
|
backgroundIntensity?: number;
|
|
1613
|
-
backgroundRotation?: Euler
|
|
1662
|
+
backgroundRotation?: Euler;
|
|
1614
1663
|
environmentIntensity?: number;
|
|
1615
|
-
environmentRotation?: Euler
|
|
1664
|
+
environmentRotation?: Euler;
|
|
1616
1665
|
map?: Texture$1;
|
|
1617
1666
|
preset?: PresetsType;
|
|
1618
1667
|
scene?: Scene | React$1.RefObject<Scene>;
|
|
@@ -1696,7 +1745,7 @@ declare function EnvironmentCube({ background, scene, blur, backgroundBlurriness
|
|
|
1696
1745
|
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;
|
|
1697
1746
|
declare module '@react-three/fiber' {
|
|
1698
1747
|
interface ThreeElements {
|
|
1699
|
-
groundProjectedEnvImpl: ThreeElement
|
|
1748
|
+
groundProjectedEnvImpl: ThreeElement<typeof GroundedSkybox>;
|
|
1700
1749
|
}
|
|
1701
1750
|
}
|
|
1702
1751
|
/**
|
|
@@ -1796,6 +1845,24 @@ declare module '@react-three/fiber' {
|
|
|
1796
1845
|
*/
|
|
1797
1846
|
declare function Environment(props: EnvironmentProps): react_jsx_runtime.JSX.Element;
|
|
1798
1847
|
|
|
1848
|
+
/**
|
|
1849
|
+
* Moves every trace of interactivity from one object to its replacement, for reconstruction.
|
|
1850
|
+
*
|
|
1851
|
+
* When `args` or a `primitive`'s `object` changes, R3F builds a new three object and keeps the same
|
|
1852
|
+
* instance. Removing the old object from the interaction state and registering the new one from
|
|
1853
|
+
* scratch makes events *work* again (#3778), but it forgets what was in flight: a pointer resting on
|
|
1854
|
+
* the object fires a second `onPointerEnter` without ever having left, and an active pointer capture
|
|
1855
|
+
* is dropped mid-drag. Rewriting the references instead keeps the interaction continuous across a
|
|
1856
|
+
* swap the user never asked to see (#3744).
|
|
1857
|
+
*
|
|
1858
|
+
* Captures are re-keyed rather than released, so the DOM-level capture on `captureData.target` is
|
|
1859
|
+
* left alone — releasing and re-acquiring it is precisely the glitch being avoided.
|
|
1860
|
+
*
|
|
1861
|
+
* Visibility handlers are deliberately not transferred: that registry is keyed by `object.uuid`, so
|
|
1862
|
+
* the replacement re-registers itself through `applyProps`. The old entry is dropped here so it
|
|
1863
|
+
* cannot outlive the object it described.
|
|
1864
|
+
*/
|
|
1865
|
+
declare function swapInteractivity(store: RootStore, object: Object3D, newObject: Object3D): void;
|
|
1799
1866
|
declare function removeInteractivity(store: RootStore, object: Object3D): void;
|
|
1800
1867
|
declare function createEvents(store: RootStore): {
|
|
1801
1868
|
handlePointer: (name: string) => (event: DomEvent) => void;
|
|
@@ -1836,7 +1903,7 @@ declare namespace useLoader {
|
|
|
1836
1903
|
*
|
|
1837
1904
|
* @param callback - Function called each frame with (state, delta). Optional if you only need scheduler access.
|
|
1838
1905
|
* @param priorityOrOptions - Either a priority number (backwards compat) or options object
|
|
1839
|
-
* @returns Controls object with step(), stepAll(), pause(), resume(), isPaused, id, scheduler
|
|
1906
|
+
* @returns Controls object with step(), stepAll(), invalidate(), pause(), resume(), isPaused, id, rootId, scheduler
|
|
1840
1907
|
*
|
|
1841
1908
|
* @example
|
|
1842
1909
|
* // Simple priority (backwards compat)
|
|
@@ -2132,7 +2199,10 @@ declare function addTail(callback: GlobalRenderCallback): () => void;
|
|
|
2132
2199
|
* Invalidates the view, requesting a frame to be rendered.
|
|
2133
2200
|
* In demand mode, this triggers the scheduler to run frames.
|
|
2134
2201
|
*
|
|
2135
|
-
*
|
|
2202
|
+
* With a state argument, only that root's jobs run on the requested frames; other
|
|
2203
|
+
* roots on 'demand' stay idle. Without one, every registered root is invalidated.
|
|
2204
|
+
*
|
|
2205
|
+
* @param state - Optional root state; targets the invalidation at that root
|
|
2136
2206
|
* @param frames - Number of frames to request (default: 1)
|
|
2137
2207
|
* @param stackFrames - If false, sets pendingFrames to frames. If true, adds to existing pendingFrames (default: false)
|
|
2138
2208
|
*
|
|
@@ -2143,14 +2213,16 @@ declare function invalidate(state?: RootState, frames?: number, stackFrames?: bo
|
|
|
2143
2213
|
* Advances the frameloop and runs render effects.
|
|
2144
2214
|
* Useful for when manually rendering via `frameloop="never"`.
|
|
2145
2215
|
*
|
|
2216
|
+
* With a state argument, only that root is stepped. Without one, every
|
|
2217
|
+
* registered root is stepped for backwards compatibility.
|
|
2218
|
+
*
|
|
2146
2219
|
* @param timestamp - The timestamp to use for this frame
|
|
2147
2220
|
* @param runGlobalEffects - Ignored (kept for backwards compat, global effects always run)
|
|
2148
|
-
* @param state -
|
|
2149
|
-
* @param frame - Ignored (kept for backwards compat)
|
|
2221
|
+
* @param state - Optional root state; targets the manual step at that root
|
|
2150
2222
|
*
|
|
2151
2223
|
* @see https://docs.pmnd.rs/react-three-fiber/api/additional-exports#advance
|
|
2152
2224
|
*/
|
|
2153
|
-
declare function advance(timestamp: number): void;
|
|
2225
|
+
declare function advance(timestamp: number, runGlobalEffects?: boolean, state?: RootState): void;
|
|
2154
2226
|
|
|
2155
2227
|
/* eslint-disable @definitelytyped/no-unnecessary-generics */
|
|
2156
2228
|
declare function ReactReconciler<
|
|
@@ -3221,11 +3293,6 @@ declare function flushSync<R>(fn: () => R): R;
|
|
|
3221
3293
|
declare const context: React$1.Context<RootStore>;
|
|
3222
3294
|
declare const createStore: (invalidate: (state?: RootState, frames?: number, stackFrames?: boolean) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState, frame?: XRFrame) => void) => RootStore;
|
|
3223
3295
|
|
|
3224
|
-
/**
|
|
3225
|
-
* Safely flush async effects when testing, simulating a legacy root.
|
|
3226
|
-
* @deprecated Import from React instead. import { act } from 'react'
|
|
3227
|
-
*/
|
|
3228
|
-
declare const act: typeof React$1.act;
|
|
3229
3296
|
/**
|
|
3230
3297
|
* An SSR-friendly useLayoutEffect.
|
|
3231
3298
|
*
|
|
@@ -3709,5 +3776,5 @@ declare function isOnce(value: unknown): value is {
|
|
|
3709
3776
|
*/
|
|
3710
3777
|
declare function Canvas(props: CanvasProps): react_jsx_runtime.JSX.Element;
|
|
3711
3778
|
|
|
3712
|
-
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,
|
|
3779
|
+
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 };
|
|
3713
3780
|
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, LegacyInternalState as 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, LegacyRenderer as R3FRenderer, RaycastableRepresentation, ReactProps, ReconcilerRoot, RenderCallback, RenderProps, RenderTargetOptions, Renderer, RendererConfigExtended, RendererFactory, RendererProps, Root, LegacyRootState as 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 };
|