@react-three/fiber 8.0.0-beta-02 → 8.0.0-beta-03

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 CHANGED
@@ -1,5 +1,41 @@
1
1
  # @react-three/fiber
2
2
 
3
+ ## 7.0.23
4
+
5
+ ### Patch Changes
6
+
7
+ - 30d38b1: remove logs
8
+
9
+ ## 7.0.22
10
+
11
+ ### Patch Changes
12
+
13
+ - 259e1fa: add camera:manual
14
+
15
+ ## 7.0.21
16
+
17
+ ### Patch Changes
18
+
19
+ - 65e4147: up usemeasure, add last event to internals"
20
+
21
+ ## 7.0.20
22
+
23
+ ### Patch Changes
24
+
25
+ - 54cb0fd: update react-use-measure, allow it to use the offsetSize
26
+
27
+ ## 7.0.19
28
+
29
+ ### Patch Changes
30
+
31
+ - 7aa2eab: fix: remove zustand subcribe selector
32
+
33
+ ## 7.0.18
34
+
35
+ ### Patch Changes
36
+
37
+ - 6780f58: fix unmount pointer capture
38
+
3
39
  ## 7.0.17
4
40
 
5
41
  ### Patch Changes
@@ -4,7 +4,7 @@ import type { RootState } from './store';
4
4
  export interface Intersection extends THREE.Intersection {
5
5
  eventObject: THREE.Object3D;
6
6
  }
7
- export interface IntesectionEvent<TSourceEvent> extends Intersection {
7
+ export interface IntersectionEvent<TSourceEvent> extends Intersection {
8
8
  intersections: Intersection[];
9
9
  stopped: boolean;
10
10
  unprojectedPoint: THREE.Vector3;
@@ -18,8 +18,8 @@ export interface IntesectionEvent<TSourceEvent> extends Intersection {
18
18
  spaceY: number;
19
19
  }
20
20
  export declare type Camera = THREE.OrthographicCamera | THREE.PerspectiveCamera;
21
- export declare type ThreeEvent<TEvent> = TEvent & IntesectionEvent<TEvent>;
22
- export declare type DomEvent = ThreeEvent<PointerEvent | MouseEvent | WheelEvent>;
21
+ export declare type ThreeEvent<TEvent> = IntersectionEvent<TEvent>;
22
+ export declare type DomEvent = PointerEvent | MouseEvent | WheelEvent;
23
23
  export declare type Events = {
24
24
  onClick: EventListener;
25
25
  onContextMenu: EventListener;
@@ -43,7 +43,7 @@ export declare type EventHandlers = {
43
43
  onPointerEnter?: (event: ThreeEvent<PointerEvent>) => void;
44
44
  onPointerLeave?: (event: ThreeEvent<PointerEvent>) => void;
45
45
  onPointerMove?: (event: ThreeEvent<PointerEvent>) => void;
46
- onPointerMissed?: (event: ThreeEvent<PointerEvent>) => void;
46
+ onPointerMissed?: (event: MouseEvent) => void;
47
47
  onPointerCancel?: (event: ThreeEvent<PointerEvent>) => void;
48
48
  onWheel?: (event: ThreeEvent<WheelEvent>) => void;
49
49
  };
@@ -15,17 +15,17 @@ export declare type LocalState = {
15
15
  primitive?: boolean;
16
16
  eventCount: number;
17
17
  handlers: Partial<EventHandlers>;
18
+ attach?: AttachType;
19
+ previousAttach?: any;
18
20
  memoizedProps: {
19
21
  [key: string]: any;
20
22
  };
21
23
  };
22
- export declare type AttachFnType = (self: Instance, parent: Instance) => void;
23
- export declare type AttachFnsType = [attach: string | AttachFnType, detach: string | AttachFnType];
24
+ export declare type AttachFnType = (parent: Instance, self: Instance) => void;
25
+ export declare type AttachType = string | [attach: string | AttachFnType, detach: string | AttachFnType];
24
26
  export declare type BaseInstance = Omit<THREE.Object3D, 'children' | 'attach' | 'add' | 'remove' | 'raycast'> & {
25
27
  __r3f: LocalState;
26
28
  children: Instance[];
27
- attach?: string;
28
- attachFns?: AttachFnsType;
29
29
  remove: (...object: Instance[]) => Instance;
30
30
  add: (...object: Instance[]) => Instance;
31
31
  raycast?: (raycaster: THREE.Raycaster, intersects: THREE.Intersection[]) => void;
@@ -40,7 +40,7 @@ export declare type InstanceProps = {
40
40
  object?: object;
41
41
  visible?: boolean;
42
42
  dispose?: null;
43
- attach?: string;
43
+ attach?: AttachType;
44
44
  };
45
45
  declare let extend: (objects: object) => void;
46
46
  declare function createRenderer<TCanvas>(roots: Map<TCanvas, Root>, getEventPriority?: () => any): {
@@ -47,8 +47,9 @@ export declare type InternalState = {
47
47
  priority: number;
48
48
  frames: number;
49
49
  lastProps: StoreProps;
50
+ lastEvent: React.MutableRefObject<DomEvent | null>;
50
51
  interaction: THREE.Object3D[];
51
- hovered: Map<string, DomEvent>;
52
+ hovered: Map<string, ThreeEvent<DomEvent>>;
52
53
  subscribers: Subscription[];
53
54
  capturedMap: Map<number, Map<THREE.Object3D, PointerCaptureTarget>>;
54
55
  initialClick: [x: number, y: number];
@@ -62,7 +63,9 @@ export declare type InternalState = {
62
63
  export declare type RootState = {
63
64
  gl: THREE.WebGLRenderer;
64
65
  scene: THREE.Scene;
65
- camera: Camera;
66
+ camera: Camera & {
67
+ manual?: boolean;
68
+ };
66
69
  controls: THREE.EventDispatcher | null;
67
70
  raycaster: Raycaster;
68
71
  mouse: THREE.Vector2;
@@ -81,7 +84,8 @@ export declare type RootState = {
81
84
  advance: (timestamp: number, runGlobalEffects?: boolean) => void;
82
85
  setSize: (width: number, height: number) => void;
83
86
  setDpr: (dpr: Dpr) => void;
84
- onPointerMissed?: (event: ThreeEvent<PointerEvent>) => void;
87
+ setFrameloop: (frameloop?: 'always' | 'demand' | 'never') => void;
88
+ onPointerMissed?: (event: MouseEvent) => void;
85
89
  events: EventManager<any>;
86
90
  internal: InternalState;
87
91
  };
@@ -102,8 +106,10 @@ export declare type StoreProps = {
102
106
  dpr?: Dpr;
103
107
  clock?: THREE.Clock;
104
108
  raycaster?: Partial<Raycaster>;
105
- camera?: Camera | Partial<ReactThreeFiber.Object3DNode<THREE.Camera, typeof THREE.Camera> & ReactThreeFiber.Object3DNode<THREE.PerspectiveCamera, typeof THREE.PerspectiveCamera> & ReactThreeFiber.Object3DNode<THREE.OrthographicCamera, typeof THREE.OrthographicCamera>>;
106
- onPointerMissed?: (event: ThreeEvent<PointerEvent>) => void;
109
+ camera?: (Camera | Partial<ReactThreeFiber.Object3DNode<THREE.Camera, typeof THREE.Camera> & ReactThreeFiber.Object3DNode<THREE.PerspectiveCamera, typeof THREE.PerspectiveCamera> & ReactThreeFiber.Object3DNode<THREE.OrthographicCamera, typeof THREE.OrthographicCamera>>) & {
110
+ manual?: boolean;
111
+ };
112
+ onPointerMissed?: (event: MouseEvent) => void;
107
113
  };
108
114
  export declare type ApplyProps = (instance: Instance, newProps: InstanceProps) => void;
109
115
  declare const context: React.Context<UseStore<RootState>>;
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { Instance, InstanceProps, LocalState } from './renderer';
2
+ import { AttachType, Instance, InstanceProps, LocalState } from './renderer';
3
3
  import { Dpr } from './store';
4
4
  export declare const DEFAULT = "__default";
5
5
  export declare type DiffSet = {
@@ -21,6 +21,11 @@ export declare type ObjectMap = {
21
21
  };
22
22
  };
23
23
  export declare function calculateDpr(dpr: Dpr): number;
24
+ export declare function filterKeys<TObj extends {
25
+ [key: string]: any;
26
+ }, TOmit extends boolean, TKey extends keyof TObj>(obj: TObj, omit: TOmit, ...keys: TKey[]): TOmit extends true ? Omit<TObj, TKey> : Pick<TObj, TKey>;
27
+ export declare const pick: <TObj>(obj: Partial<TObj>, keys: (keyof TObj)[]) => Pick<Partial<TObj>, keyof TObj>;
28
+ export declare const omit: <TObj>(obj: Partial<TObj>, keys: (keyof TObj)[]) => Omit<Partial<TObj>, keyof TObj>;
24
29
  export declare const is: {
25
30
  obj: (a: any) => boolean;
26
31
  fun: (a: any) => a is Function;
@@ -37,6 +42,8 @@ export declare function dispose<TObj extends {
37
42
  [key: string]: any;
38
43
  }>(obj: TObj): void;
39
44
  export declare function prepare<T = THREE.Object3D>(object: T, state?: Partial<LocalState>): T;
45
+ export declare function attach(parent: Instance, child: Instance, type: AttachType): void;
46
+ export declare function detach(parent: Instance, child: Instance, type: AttachType): void;
40
47
  export declare function diffProps(instance: Instance, { children: cN, key: kN, ref: rN, ...props }: InstanceProps, { children: cP, key: kP, ref: rP, ...previous }?: InstanceProps, remove?: boolean): DiffSet;
41
48
  export declare function applyProps(instance: Instance, data: InstanceProps | DiffSet): void;
42
49
  export declare function invalidateInstance(instance: Instance): void;
@@ -3,5 +3,6 @@ import * as ReactThreeFiber from './three-types';
3
3
  export { ReactThreeFiber };
4
4
  export type { Intersection, Subscription, Dpr, Size, Viewport, Camera, RenderCallback, Performance, RootState, } from './core/store';
5
5
  export type { ThreeEvent, Events, EventManager } from './core/events';
6
- export type { Props } from './web/Canvas';
6
+ export type { ObjectMap } from './core/utils';
7
+ export * from './web/Canvas';
7
8
  export * from './web';
@@ -7,7 +7,6 @@ import { Renderer, StoreProps, context, RootState, Size } from '../core/store';
7
7
  import { extend, Root } from '../core/renderer';
8
8
  import { addEffect, addAfterEffect, addTail } from '../core/loop';
9
9
  import { createTouchEvents as events } from './events';
10
- import { Canvas } from './Canvas';
11
10
  import { EventManager } from '../core/events';
12
11
  import { View } from 'react-native';
13
12
  import { ExpoWebGLRenderingContext } from 'expo-gl';
@@ -29,9 +28,9 @@ declare function createRoot<TView extends View>(context: GLContext, config?: Ren
29
28
  render: (element: React.ReactNode) => UseStore<RootState>;
30
29
  unmount: () => void;
31
30
  };
32
- declare function render<TView extends View>(element: React.ReactNode, context: GLContext, { gl, size, events, onCreated, ...props }?: RenderProps<TView>): UseStore<RootState>;
31
+ declare function render<TView extends View>(element: React.ReactNode, context: GLContext, config?: RenderProps<TView>): UseStore<RootState>;
33
32
  declare function unmountComponentAtNode(context: GLContext, callback?: (context: GLContext) => void): void;
34
- declare const act: (callback: () => import("react-reconciler").Thenable<unknown>) => import("react-reconciler").Thenable<void>;
33
+ declare const act: any;
35
34
  declare function createPortal(children: React.ReactNode, container: THREE.Object3D): React.ReactNode;
36
35
  export * from './hooks';
37
- export { context, render, createRoot, unmountComponentAtNode, createPortal, events, reconciler, applyProps, dispose, invalidate, advance, extend, addEffect, addAfterEffect, addTail, Canvas, act, roots as _roots, };
36
+ export { context, render, createRoot, unmountComponentAtNode, createPortal, events, reconciler, applyProps, dispose, invalidate, advance, extend, addEffect, addAfterEffect, addTail, act, roots as _roots, };
@@ -3,5 +3,6 @@ import * as ReactThreeFiber from './three-types';
3
3
  export { ReactThreeFiber };
4
4
  export type { Intersection, Subscription, Dpr, Size, Viewport, Camera, RenderCallback, Performance, RootState, } from './core/store';
5
5
  export type { ThreeEvent, Events, EventManager } from './core/events';
6
- export type { Props } from './native/Canvas';
6
+ export type { ObjectMap } from './core/utils';
7
+ export * from './native/Canvas';
7
8
  export * from './native/index';
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import * as THREE from 'three';
3
2
  import { EventHandlers } from './core/events';
3
+ import { AttachType } from './core/renderer';
4
4
  export declare type NonFunctionKeys<T> = {
5
5
  [K in keyof T]: T[K] extends Function ? never : K;
6
6
  }[keyof T];
@@ -17,13 +17,10 @@ export declare type Layers = THREE.Layers | Parameters<THREE.Layers['set']>[0];
17
17
  export declare type Quaternion = THREE.Quaternion | Parameters<THREE.Quaternion['set']>;
18
18
  export declare type AttachCallback = string | ((child: any, parentInstance: any) => void);
19
19
  export interface NodeProps<T, P> {
20
- attach?: string;
21
- attachArray?: string;
22
- attachObject?: [target: string, name: string];
23
- attachFns?: [AttachCallback, AttachCallback];
20
+ attach?: AttachType;
24
21
  args?: Args<P>;
25
22
  children?: React.ReactNode;
26
- ref?: React.Ref<React.ReactNode>;
23
+ ref?: React.RefCallback<T> | React.RefObject<React.ReactNode> | null;
27
24
  key?: React.Key;
28
25
  onUpdate?: (self: T) => void;
29
26
  }
@@ -59,7 +56,6 @@ export declare type LineSegmentsProps = Object3DNode<THREE.LineSegments, typeof
59
56
  export declare type LineLoopProps = Object3DNode<THREE.LineLoop, typeof THREE.LineLoop>;
60
57
  export declare type PointsProps = Object3DNode<THREE.Points, typeof THREE.Points>;
61
58
  export declare type GroupProps = Object3DNode<THREE.Group, typeof THREE.Group>;
62
- export declare type ImmediateRenderObjectProps = Object3DNode<THREE.ImmediateRenderObject, typeof THREE.ImmediateRenderObject>;
63
59
  export declare type CameraProps = Object3DNode<THREE.Camera, typeof THREE.Camera>;
64
60
  export declare type PerspectiveCameraProps = Object3DNode<THREE.PerspectiveCamera, typeof THREE.PerspectiveCamera>;
65
61
  export declare type OrthographicCameraProps = Object3DNode<THREE.OrthographicCamera, typeof THREE.OrthographicCamera>;
@@ -76,19 +72,16 @@ export declare type ExtrudeBufferGeometryProps = BufferGeometryNode<THREE.Extrud
76
72
  export declare type IcosahedronBufferGeometryProps = BufferGeometryNode<THREE.IcosahedronBufferGeometry, typeof THREE.IcosahedronBufferGeometry>;
77
73
  export declare type LatheBufferGeometryProps = BufferGeometryNode<THREE.LatheBufferGeometry, typeof THREE.LatheBufferGeometry>;
78
74
  export declare type OctahedronBufferGeometryProps = BufferGeometryNode<THREE.OctahedronBufferGeometry, typeof THREE.OctahedronBufferGeometry>;
79
- export declare type ParametricBufferGeometryProps = BufferGeometryNode<THREE.ParametricBufferGeometry, typeof THREE.ParametricBufferGeometry>;
80
75
  export declare type PlaneBufferGeometryProps = BufferGeometryNode<THREE.PlaneBufferGeometry, typeof THREE.PlaneBufferGeometry>;
81
76
  export declare type PolyhedronBufferGeometryProps = BufferGeometryNode<THREE.PolyhedronBufferGeometry, typeof THREE.PolyhedronBufferGeometry>;
82
77
  export declare type RingBufferGeometryProps = BufferGeometryNode<THREE.RingBufferGeometry, typeof THREE.RingBufferGeometry>;
83
78
  export declare type ShapeBufferGeometryProps = BufferGeometryNode<THREE.ShapeBufferGeometry, typeof THREE.ShapeBufferGeometry>;
84
79
  export declare type SphereBufferGeometryProps = BufferGeometryNode<THREE.SphereBufferGeometry, typeof THREE.SphereBufferGeometry>;
85
80
  export declare type TetrahedronBufferGeometryProps = BufferGeometryNode<THREE.TetrahedronBufferGeometry, typeof THREE.TetrahedronBufferGeometry>;
86
- export declare type TextBufferGeometryProps = BufferGeometryNode<THREE.TextBufferGeometry, typeof THREE.TextBufferGeometry>;
87
81
  export declare type TorusBufferGeometryProps = BufferGeometryNode<THREE.TorusBufferGeometry, typeof THREE.TorusBufferGeometry>;
88
82
  export declare type TorusKnotBufferGeometryProps = BufferGeometryNode<THREE.TorusKnotBufferGeometry, typeof THREE.TorusKnotBufferGeometry>;
89
83
  export declare type TubeBufferGeometryProps = BufferGeometryNode<THREE.TubeBufferGeometry, typeof THREE.TubeBufferGeometry>;
90
84
  export declare type WireframeGeometryProps = BufferGeometryNode<THREE.WireframeGeometry, typeof THREE.WireframeGeometry>;
91
- export declare type ParametricGeometryProps = BufferGeometryNode<THREE.ParametricGeometry, typeof THREE.ParametricGeometry>;
92
85
  export declare type TetrahedronGeometryProps = BufferGeometryNode<THREE.TetrahedronGeometry, typeof THREE.TetrahedronGeometry>;
93
86
  export declare type OctahedronGeometryProps = BufferGeometryNode<THREE.OctahedronGeometry, typeof THREE.OctahedronGeometry>;
94
87
  export declare type IcosahedronGeometryProps = BufferGeometryNode<THREE.IcosahedronGeometry, typeof THREE.IcosahedronGeometry>;
@@ -97,7 +90,6 @@ export declare type PolyhedronGeometryProps = BufferGeometryNode<THREE.Polyhedro
97
90
  export declare type TubeGeometryProps = BufferGeometryNode<THREE.TubeGeometry, typeof THREE.TubeGeometry>;
98
91
  export declare type TorusKnotGeometryProps = BufferGeometryNode<THREE.TorusKnotGeometry, typeof THREE.TorusKnotGeometry>;
99
92
  export declare type TorusGeometryProps = BufferGeometryNode<THREE.TorusGeometry, typeof THREE.TorusGeometry>;
100
- export declare type TextGeometryProps = BufferGeometryNode<THREE.TextGeometry, typeof THREE.TextGeometry>;
101
93
  export declare type SphereGeometryProps = BufferGeometryNode<THREE.SphereGeometry, typeof THREE.SphereGeometry>;
102
94
  export declare type RingGeometryProps = BufferGeometryNode<THREE.RingGeometry, typeof THREE.RingGeometry>;
103
95
  export declare type PlaneGeometryProps = BufferGeometryNode<THREE.PlaneGeometry, typeof THREE.PlaneGeometry>;
@@ -175,6 +167,7 @@ export declare type Matrix3Props = Node<THREE.Matrix3, typeof THREE.Matrix3>;
175
167
  export declare type Matrix4Props = Node<THREE.Matrix4, typeof THREE.Matrix4>;
176
168
  export declare type QuaternionProps = Node<THREE.Quaternion, typeof THREE.Quaternion>;
177
169
  export declare type BufferAttributeProps = Node<THREE.BufferAttribute, typeof THREE.BufferAttribute>;
170
+ export declare type Float32BufferAttributeProps = Node<THREE.Float32BufferAttribute, typeof THREE.Float32BufferAttribute>;
178
171
  export declare type InstancedBufferAttributeProps = Node<THREE.InstancedBufferAttribute, typeof THREE.InstancedBufferAttribute>;
179
172
  export declare type ColorProps = Node<THREE.Color, ColorArray>;
180
173
  export declare type FogProps = Node<THREE.Fog, typeof THREE.Fog>;
@@ -197,7 +190,6 @@ declare global {
197
190
  lineLoop: LineLoopProps;
198
191
  points: PointsProps;
199
192
  group: GroupProps;
200
- immediateRenderObject: ImmediateRenderObjectProps;
201
193
  camera: CameraProps;
202
194
  perspectiveCamera: PerspectiveCameraProps;
203
195
  orthographicCamera: OrthographicCameraProps;
@@ -214,19 +206,16 @@ declare global {
214
206
  icosahedronBufferGeometry: IcosahedronBufferGeometryProps;
215
207
  latheBufferGeometry: LatheBufferGeometryProps;
216
208
  octahedronBufferGeometry: OctahedronBufferGeometryProps;
217
- parametricBufferGeometry: ParametricBufferGeometryProps;
218
209
  planeBufferGeometry: PlaneBufferGeometryProps;
219
210
  polyhedronBufferGeometry: PolyhedronBufferGeometryProps;
220
211
  ringBufferGeometry: RingBufferGeometryProps;
221
212
  shapeBufferGeometry: ShapeBufferGeometryProps;
222
213
  sphereBufferGeometry: SphereBufferGeometryProps;
223
214
  tetrahedronBufferGeometry: TetrahedronBufferGeometryProps;
224
- textBufferGeometry: TextBufferGeometryProps;
225
215
  torusBufferGeometry: TorusBufferGeometryProps;
226
216
  torusKnotBufferGeometry: TorusKnotBufferGeometryProps;
227
217
  tubeBufferGeometry: TubeBufferGeometryProps;
228
218
  wireframeGeometry: WireframeGeometryProps;
229
- parametricGeometry: ParametricGeometryProps;
230
219
  tetrahedronGeometry: TetrahedronGeometryProps;
231
220
  octahedronGeometry: OctahedronGeometryProps;
232
221
  icosahedronGeometry: IcosahedronGeometryProps;
@@ -235,7 +224,6 @@ declare global {
235
224
  tubeGeometry: TubeGeometryProps;
236
225
  torusKnotGeometry: TorusKnotGeometryProps;
237
226
  torusGeometry: TorusGeometryProps;
238
- textGeometry: TextGeometryProps;
239
227
  sphereGeometry: SphereGeometryProps;
240
228
  ringGeometry: RingGeometryProps;
241
229
  planeGeometry: PlaneGeometryProps;
@@ -309,6 +297,7 @@ declare global {
309
297
  matrix4: Matrix4Props;
310
298
  quaternion: QuaternionProps;
311
299
  bufferAttribute: BufferAttributeProps;
300
+ float32BufferAttribute: Float32BufferAttributeProps;
312
301
  instancedBufferAttribute: InstancedBufferAttributeProps;
313
302
  color: ColorProps;
314
303
  fog: FogProps;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { Options as ResizeOptions } from 'react-use-measure';
2
+ import type { Options as ResizeOptions } from 'react-use-measure';
3
3
  import { UseStore } from 'zustand';
4
4
  import { RenderProps } from './index';
5
5
  import { RootState } from '../core/store';
@@ -7,7 +7,6 @@ import { Renderer, StoreProps, context, RootState, Size } from '../core/store';
7
7
  import { extend, Root } from '../core/renderer';
8
8
  import { addEffect, addAfterEffect, addTail } from '../core/loop';
9
9
  import { createPointerEvents as events } from './events';
10
- import { Canvas } from './Canvas';
11
10
  import { EventManager } from '../core/events';
12
11
  declare const roots: Map<Element, Root>;
13
12
  declare const invalidate: (state?: RootState | undefined) => void, advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState | undefined) => void;
@@ -26,9 +25,9 @@ declare function createRoot<TCanvas extends Element>(canvas: TCanvas, config?: R
26
25
  render: (element: React.ReactNode) => UseStore<RootState>;
27
26
  unmount: () => void;
28
27
  };
29
- declare function render<TCanvas extends Element>(element: React.ReactNode, canvas: TCanvas, { gl, size, events, onCreated, ...props }?: RenderProps<TCanvas>): UseStore<RootState>;
28
+ declare function render<TCanvas extends Element>(element: React.ReactNode, canvas: TCanvas, config?: RenderProps<TCanvas>): UseStore<RootState>;
30
29
  declare function unmountComponentAtNode<TElement extends Element>(canvas: TElement, callback?: (canvas: TElement) => void): void;
31
- declare const act: (callback: () => import("react-reconciler").Thenable<unknown>) => import("react-reconciler").Thenable<void>;
30
+ declare const act: any;
32
31
  declare function createPortal(children: React.ReactNode, container: THREE.Object3D): React.ReactNode;
33
32
  export * from '../core/hooks';
34
- export { context, render, createRoot, unmountComponentAtNode, createPortal, events, reconciler, applyProps, dispose, invalidate, advance, extend, addEffect, addAfterEffect, addTail, Canvas, act, roots as _roots, };
33
+ export { context, render, createRoot, unmountComponentAtNode, createPortal, events, reconciler, applyProps, dispose, invalidate, advance, extend, addEffect, addAfterEffect, addTail, act, roots as _roots, };