@react-three/fiber 8.16.8 → 8.17.1
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/{index-046cf796.cjs.prod.js → events-2e7e6eab.cjs.prod.js} +99 -2
- package/dist/{index-99983b2d.esm.js → events-3515660a.esm.js} +98 -3
- package/dist/{index-ca3a789d.cjs.dev.js → events-c54ce65e.cjs.dev.js} +99 -2
- package/dist/react-three-fiber.cjs.dev.js +210 -120
- package/dist/react-three-fiber.cjs.prod.js +210 -120
- package/dist/react-three-fiber.esm.js +172 -83
- package/native/dist/react-three-fiber-native.cjs.dev.js +201 -133
- package/native/dist/react-three-fiber-native.cjs.prod.js +201 -133
- package/native/dist/react-three-fiber-native.esm.js +167 -101
- package/package.json +3 -2
- package/dist/declarations/src/core/events.d.ts +0 -93
- package/dist/declarations/src/core/hooks.d.ts +0 -57
- package/dist/declarations/src/core/index.d.ts +0 -87
- package/dist/declarations/src/core/loop.d.ts +0 -38
- package/dist/declarations/src/core/renderer.d.ts +0 -58
- package/dist/declarations/src/core/store.d.ts +0 -138
- package/dist/declarations/src/core/utils.d.ts +0 -134
- package/dist/declarations/src/index.d.ts +0 -12
- package/dist/declarations/src/native/Canvas.d.ts +0 -14
- package/dist/declarations/src/native/events.d.ts +0 -5
- package/dist/declarations/src/native/polyfills.d.ts +0 -1
- package/dist/declarations/src/native.d.ts +0 -12
- package/dist/declarations/src/three-types.d.ts +0 -393
- package/dist/declarations/src/web/Canvas.d.ts +0 -24
- package/dist/declarations/src/web/events.d.ts +0 -5
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { UseBoundStore } from 'zustand';
|
|
3
|
-
import Reconciler from 'react-reconciler';
|
|
4
|
-
import { prepare, applyProps } from './utils';
|
|
5
|
-
import { RootState } from './store';
|
|
6
|
-
import { EventHandlers } from './events';
|
|
7
|
-
export declare type Root = {
|
|
8
|
-
fiber: Reconciler.FiberRoot;
|
|
9
|
-
store: UseBoundStore<RootState>;
|
|
10
|
-
};
|
|
11
|
-
export declare type LocalState = {
|
|
12
|
-
type: string;
|
|
13
|
-
root: UseBoundStore<RootState>;
|
|
14
|
-
objects: Instance[];
|
|
15
|
-
parent: Instance | null;
|
|
16
|
-
primitive?: boolean;
|
|
17
|
-
eventCount: number;
|
|
18
|
-
handlers: Partial<EventHandlers>;
|
|
19
|
-
attach?: AttachType;
|
|
20
|
-
previousAttach: any;
|
|
21
|
-
memoizedProps: {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
};
|
|
24
|
-
autoRemovedBeforeAppend?: boolean;
|
|
25
|
-
};
|
|
26
|
-
export declare type AttachFnType = (parent: Instance, self: Instance) => () => void;
|
|
27
|
-
export declare type AttachType = string | AttachFnType;
|
|
28
|
-
export declare type BaseInstance = Omit<THREE.Object3D, 'children' | 'attach' | 'add' | 'remove' | 'raycast'> & {
|
|
29
|
-
__r3f: LocalState;
|
|
30
|
-
children: Instance[];
|
|
31
|
-
remove: (...object: Instance[]) => Instance;
|
|
32
|
-
add: (...object: Instance[]) => Instance;
|
|
33
|
-
raycast?: (raycaster: THREE.Raycaster, intersects: THREE.Intersection[]) => void;
|
|
34
|
-
};
|
|
35
|
-
export declare type Instance = BaseInstance & {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
};
|
|
38
|
-
export declare type InstanceProps = {
|
|
39
|
-
[key: string]: unknown;
|
|
40
|
-
} & {
|
|
41
|
-
args?: any[];
|
|
42
|
-
object?: object;
|
|
43
|
-
visible?: boolean;
|
|
44
|
-
dispose?: null;
|
|
45
|
-
attach?: AttachType;
|
|
46
|
-
};
|
|
47
|
-
interface Catalogue {
|
|
48
|
-
[name: string]: {
|
|
49
|
-
new (...args: any): Instance;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export declare const catalogue: Catalogue;
|
|
53
|
-
declare const extend: (objects: object) => void;
|
|
54
|
-
declare function createRenderer<TCanvas>(_roots: Map<TCanvas, Root>, _getEventPriority?: () => any): {
|
|
55
|
-
reconciler: Reconciler.Reconciler<UseBoundStore<RootState, import("zustand").StoreApi<RootState>>, Instance, void, Instance, Instance>;
|
|
56
|
-
applyProps: typeof applyProps;
|
|
57
|
-
};
|
|
58
|
-
export { prepare, createRenderer, extend };
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { GetState, SetState, StoreApi, UseBoundStore } from 'zustand';
|
|
4
|
-
import { DomEvent, EventManager, PointerCaptureTarget, ThreeEvent } from './events';
|
|
5
|
-
import { _XRFrame, Camera } from './utils';
|
|
6
|
-
import { Advance, Invalidate } from './loop';
|
|
7
|
-
export declare const privateKeys: readonly ["set", "get", "setSize", "setFrameloop", "setDpr", "events", "invalidate", "advance", "size", "viewport"];
|
|
8
|
-
export declare type PrivateKeys = typeof privateKeys[number];
|
|
9
|
-
export interface Intersection extends THREE.Intersection {
|
|
10
|
-
eventObject: THREE.Object3D;
|
|
11
|
-
}
|
|
12
|
-
export declare type Subscription = {
|
|
13
|
-
ref: React.MutableRefObject<RenderCallback>;
|
|
14
|
-
priority: number;
|
|
15
|
-
store: UseBoundStore<RootState, StoreApi<RootState>>;
|
|
16
|
-
};
|
|
17
|
-
export declare type Dpr = number | [min: number, max: number];
|
|
18
|
-
export declare type Size = {
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
top: number;
|
|
22
|
-
left: number;
|
|
23
|
-
/** @deprecated `updateStyle` is now disabled for OffscreenCanvas and will be removed in v9. */
|
|
24
|
-
updateStyle?: boolean;
|
|
25
|
-
};
|
|
26
|
-
export declare type Viewport = Size & {
|
|
27
|
-
/** The initial pixel ratio */
|
|
28
|
-
initialDpr: number;
|
|
29
|
-
/** Current pixel ratio */
|
|
30
|
-
dpr: number;
|
|
31
|
-
/** size.width / viewport.width */
|
|
32
|
-
factor: number;
|
|
33
|
-
/** Camera distance */
|
|
34
|
-
distance: number;
|
|
35
|
-
/** Camera aspect ratio: width / height */
|
|
36
|
-
aspect: number;
|
|
37
|
-
};
|
|
38
|
-
export declare type RenderCallback = (state: RootState, delta: number, frame?: _XRFrame) => void;
|
|
39
|
-
export declare type Performance = {
|
|
40
|
-
/** Current performance normal, between min and max */
|
|
41
|
-
current: number;
|
|
42
|
-
/** How low the performance can go, between 0 and max */
|
|
43
|
-
min: number;
|
|
44
|
-
/** How high the performance can go, between min and max */
|
|
45
|
-
max: number;
|
|
46
|
-
/** Time until current returns to max in ms */
|
|
47
|
-
debounce: number;
|
|
48
|
-
/** Sets current to min, puts the system in regression */
|
|
49
|
-
regress: () => void;
|
|
50
|
-
};
|
|
51
|
-
export declare type Renderer = {
|
|
52
|
-
render: (scene: THREE.Scene, camera: THREE.Camera) => any;
|
|
53
|
-
};
|
|
54
|
-
export declare const isRenderer: (def: any) => boolean;
|
|
55
|
-
export declare type InternalState = {
|
|
56
|
-
active: boolean;
|
|
57
|
-
priority: number;
|
|
58
|
-
frames: number;
|
|
59
|
-
lastEvent: React.MutableRefObject<DomEvent | null>;
|
|
60
|
-
interaction: THREE.Object3D[];
|
|
61
|
-
hovered: Map<string, ThreeEvent<DomEvent>>;
|
|
62
|
-
subscribers: Subscription[];
|
|
63
|
-
capturedMap: Map<number, Map<THREE.Object3D, PointerCaptureTarget>>;
|
|
64
|
-
initialClick: [x: number, y: number];
|
|
65
|
-
initialHits: THREE.Object3D[];
|
|
66
|
-
subscribe: (callback: React.MutableRefObject<RenderCallback>, priority: number, store: UseBoundStore<RootState, StoreApi<RootState>>) => () => void;
|
|
67
|
-
};
|
|
68
|
-
export declare type RootState = {
|
|
69
|
-
/** Set current state */
|
|
70
|
-
set: SetState<RootState>;
|
|
71
|
-
/** Get current state */
|
|
72
|
-
get: GetState<RootState>;
|
|
73
|
-
/** The instance of the renderer */
|
|
74
|
-
gl: THREE.WebGLRenderer;
|
|
75
|
-
/** Default camera */
|
|
76
|
-
camera: Camera & {
|
|
77
|
-
manual?: boolean;
|
|
78
|
-
};
|
|
79
|
-
/** Default scene */
|
|
80
|
-
scene: THREE.Scene;
|
|
81
|
-
/** Default raycaster */
|
|
82
|
-
raycaster: THREE.Raycaster;
|
|
83
|
-
/** Default clock */
|
|
84
|
-
clock: THREE.Clock;
|
|
85
|
-
/** Event layer interface, contains the event handler and the node they're connected to */
|
|
86
|
-
events: EventManager<any>;
|
|
87
|
-
/** XR interface */
|
|
88
|
-
xr: {
|
|
89
|
-
connect: () => void;
|
|
90
|
-
disconnect: () => void;
|
|
91
|
-
};
|
|
92
|
-
/** Currently used controls */
|
|
93
|
-
controls: THREE.EventDispatcher | null;
|
|
94
|
-
/** Normalized event coordinates */
|
|
95
|
-
pointer: THREE.Vector2;
|
|
96
|
-
/** @deprecated Normalized event coordinates, use "pointer" instead! */
|
|
97
|
-
mouse: THREE.Vector2;
|
|
98
|
-
legacy: boolean;
|
|
99
|
-
/** Shortcut to gl.outputColorSpace = THREE.LinearSRGBColorSpace */
|
|
100
|
-
linear: boolean;
|
|
101
|
-
/** Shortcut to gl.toneMapping = NoTonemapping */
|
|
102
|
-
flat: boolean;
|
|
103
|
-
/** Render loop flags */
|
|
104
|
-
frameloop: 'always' | 'demand' | 'never';
|
|
105
|
-
/** Adaptive performance interface */
|
|
106
|
-
performance: Performance;
|
|
107
|
-
/** Reactive pixel-size of the canvas */
|
|
108
|
-
size: Size;
|
|
109
|
-
/** Reactive size of the viewport in threejs units */
|
|
110
|
-
viewport: Viewport & {
|
|
111
|
-
getCurrentViewport: (camera?: Camera, target?: THREE.Vector3 | Parameters<THREE.Vector3['set']>, size?: Size) => Omit<Viewport, 'dpr' | 'initialDpr'>;
|
|
112
|
-
};
|
|
113
|
-
/** Flags the canvas for render, but doesn't render in itself */
|
|
114
|
-
invalidate: (frames?: number) => void;
|
|
115
|
-
/** Advance (render) one step */
|
|
116
|
-
advance: (timestamp: number, runGlobalEffects?: boolean) => void;
|
|
117
|
-
/** Shortcut to setting the event layer */
|
|
118
|
-
setEvents: (events: Partial<EventManager<any>>) => void;
|
|
119
|
-
/**
|
|
120
|
-
* Shortcut to manual sizing
|
|
121
|
-
*/
|
|
122
|
-
setSize: (width: number, height: number,
|
|
123
|
-
/** @deprecated `updateStyle` is now disabled for OffscreenCanvas and will be removed in v9. */
|
|
124
|
-
updateStyle?: boolean, top?: number, left?: number) => void;
|
|
125
|
-
/** Shortcut to manual setting the pixel ratio */
|
|
126
|
-
setDpr: (dpr: Dpr) => void;
|
|
127
|
-
/** Shortcut to frameloop flags */
|
|
128
|
-
setFrameloop: (frameloop?: 'always' | 'demand' | 'never') => void;
|
|
129
|
-
/** When the canvas was clicked but nothing was hit */
|
|
130
|
-
onPointerMissed?: (event: MouseEvent) => void;
|
|
131
|
-
/** If this state model is layered (via createPortal) then this contains the previous layer */
|
|
132
|
-
previousRoot?: UseBoundStore<RootState, StoreApi<RootState>>;
|
|
133
|
-
/** Internals */
|
|
134
|
-
internal: InternalState;
|
|
135
|
-
};
|
|
136
|
-
declare const context: React.Context<UseBoundStore<RootState, StoreApi<RootState>>>;
|
|
137
|
-
declare const createStore: (invalidate: Invalidate, advance: Advance) => UseBoundStore<RootState>;
|
|
138
|
-
export { createStore, context };
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/// <reference types="webxr" />
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { UseBoundStore } from 'zustand';
|
|
5
|
-
import { AttachType, Instance, InstanceProps, LocalState } from './renderer';
|
|
6
|
-
import { Dpr, Renderer, RootState, Size } from './store';
|
|
7
|
-
/** @ts-ignore */
|
|
8
|
-
declare type _DeprecatedXRFrame = THREE.XRFrame;
|
|
9
|
-
/** @ts-ignore */
|
|
10
|
-
export declare type _XRFrame = THREE.WebGLRenderTargetOptions extends {
|
|
11
|
-
samples?: number;
|
|
12
|
-
} ? XRFrame : _DeprecatedXRFrame;
|
|
13
|
-
/**
|
|
14
|
-
* Returns `true` with correct TS type inference if an object has a configurable color space (since r152).
|
|
15
|
-
*/
|
|
16
|
-
export declare const hasColorSpace: <T extends object | Renderer | THREE.Texture, P = T extends Renderer ? {
|
|
17
|
-
outputColorSpace: string;
|
|
18
|
-
} : {
|
|
19
|
-
colorSpace: string;
|
|
20
|
-
}>(object: T) => object is T & P;
|
|
21
|
-
export declare type ColorManagementRepresentation = {
|
|
22
|
-
enabled: boolean | never;
|
|
23
|
-
} | {
|
|
24
|
-
legacyMode: boolean | never;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* The current THREE.ColorManagement instance, if present.
|
|
28
|
-
*/
|
|
29
|
-
export declare const getColorManagement: () => ColorManagementRepresentation | null;
|
|
30
|
-
export declare type Camera = THREE.OrthographicCamera | THREE.PerspectiveCamera;
|
|
31
|
-
export declare const isOrthographicCamera: (def: Camera) => def is THREE.OrthographicCamera;
|
|
32
|
-
export declare const isRef: (obj: any) => obj is React.MutableRefObject<unknown>;
|
|
33
|
-
/**
|
|
34
|
-
* An SSR-friendly useLayoutEffect.
|
|
35
|
-
*
|
|
36
|
-
* React currently throws a warning when using useLayoutEffect on the server.
|
|
37
|
-
* To get around it, we can conditionally useEffect on the server (no-op) and
|
|
38
|
-
* useLayoutEffect elsewhere.
|
|
39
|
-
*
|
|
40
|
-
* @see https://github.com/facebook/react/issues/14927
|
|
41
|
-
*/
|
|
42
|
-
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect;
|
|
43
|
-
export declare function useMutableCallback<T>(fn: T): React.MutableRefObject<T>;
|
|
44
|
-
export declare type SetBlock = false | Promise<null> | null;
|
|
45
|
-
export declare type UnblockProps = {
|
|
46
|
-
set: React.Dispatch<React.SetStateAction<SetBlock>>;
|
|
47
|
-
children: React.ReactNode;
|
|
48
|
-
};
|
|
49
|
-
export declare function Block({ set }: Omit<UnblockProps, 'children'>): null;
|
|
50
|
-
export declare class ErrorBoundary extends React.Component<{
|
|
51
|
-
set: React.Dispatch<Error | undefined>;
|
|
52
|
-
children: React.ReactNode;
|
|
53
|
-
}, {
|
|
54
|
-
error: boolean;
|
|
55
|
-
}> {
|
|
56
|
-
state: {
|
|
57
|
-
error: boolean;
|
|
58
|
-
};
|
|
59
|
-
static getDerivedStateFromError: () => {
|
|
60
|
-
error: boolean;
|
|
61
|
-
};
|
|
62
|
-
componentDidCatch(err: Error): void;
|
|
63
|
-
render(): React.ReactNode;
|
|
64
|
-
}
|
|
65
|
-
export declare const DEFAULT = "__default";
|
|
66
|
-
export declare const DEFAULTS: Map<any, any>;
|
|
67
|
-
export declare type DiffSet = {
|
|
68
|
-
memoized: {
|
|
69
|
-
[key: string]: any;
|
|
70
|
-
};
|
|
71
|
-
changes: [key: string, value: unknown, isEvent: boolean, keys: string[]][];
|
|
72
|
-
};
|
|
73
|
-
export declare const isDiffSet: (def: any) => def is DiffSet;
|
|
74
|
-
export declare type ClassConstructor = {
|
|
75
|
-
new (): void;
|
|
76
|
-
};
|
|
77
|
-
export declare type ObjectMap = {
|
|
78
|
-
nodes: {
|
|
79
|
-
[name: string]: THREE.Object3D;
|
|
80
|
-
};
|
|
81
|
-
materials: {
|
|
82
|
-
[name: string]: THREE.Material;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
export declare function calculateDpr(dpr: Dpr): number;
|
|
86
|
-
/**
|
|
87
|
-
* Returns instance root state
|
|
88
|
-
*/
|
|
89
|
-
export declare const getRootState: (obj: THREE.Object3D) => RootState | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Returns the instances initial (outmost) root
|
|
92
|
-
*/
|
|
93
|
-
export declare function findInitialRoot(child: Instance): UseBoundStore<RootState, import("zustand").StoreApi<RootState>>;
|
|
94
|
-
export declare type EquConfig = {
|
|
95
|
-
/** Compare arrays by reference equality a === b (default), or by shallow equality */
|
|
96
|
-
arrays?: 'reference' | 'shallow';
|
|
97
|
-
/** Compare objects by reference equality a === b (default), or by shallow equality */
|
|
98
|
-
objects?: 'reference' | 'shallow';
|
|
99
|
-
/** If true the keys in both a and b must match 1:1 (default), if false a's keys must intersect b's */
|
|
100
|
-
strict?: boolean;
|
|
101
|
-
};
|
|
102
|
-
export declare const is: {
|
|
103
|
-
obj: (a: any) => boolean;
|
|
104
|
-
fun: (a: any) => a is Function;
|
|
105
|
-
str: (a: any) => a is string;
|
|
106
|
-
num: (a: any) => a is number;
|
|
107
|
-
boo: (a: any) => a is boolean;
|
|
108
|
-
und: (a: any) => boolean;
|
|
109
|
-
arr: (a: any) => boolean;
|
|
110
|
-
equ(a: any, b: any, { arrays, objects, strict }?: EquConfig): boolean;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* Collects nodes and materials from a THREE.Object3D.
|
|
114
|
-
*/
|
|
115
|
-
export declare function buildGraph(object: THREE.Object3D): ObjectMap;
|
|
116
|
-
export declare function dispose<TObj extends {
|
|
117
|
-
dispose?: () => void;
|
|
118
|
-
type?: string;
|
|
119
|
-
[key: string]: any;
|
|
120
|
-
}>(obj: TObj): void;
|
|
121
|
-
export declare function prepare<T = THREE.Object3D>(object: T, state?: Partial<LocalState>): T;
|
|
122
|
-
export declare function attach(parent: Instance, child: Instance, type: AttachType): void;
|
|
123
|
-
export declare function detach(parent: Instance, child: Instance, type: AttachType): void;
|
|
124
|
-
declare type MaybeInstance = Omit<Instance, '__r3f'> & {
|
|
125
|
-
__r3f?: LocalState;
|
|
126
|
-
};
|
|
127
|
-
export declare function diffProps(instance: MaybeInstance, { children: cN, key: kN, ref: rN, ...props }: InstanceProps, { children: cP, key: kP, ref: rP, ...previous }?: InstanceProps, remove?: boolean): DiffSet;
|
|
128
|
-
export declare function applyProps(instance: MaybeInstance, data: InstanceProps | DiffSet): MaybeInstance;
|
|
129
|
-
export declare function invalidateInstance(instance: MaybeInstance): void;
|
|
130
|
-
export declare function updateInstance(instance: MaybeInstance): void;
|
|
131
|
-
export declare function updateCamera(camera: Camera & {
|
|
132
|
-
manual?: boolean;
|
|
133
|
-
}, size: Size): void;
|
|
134
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './three-types';
|
|
2
|
-
import * as ReactThreeFiber from './three-types';
|
|
3
|
-
export { ReactThreeFiber };
|
|
4
|
-
export type { BaseInstance, LocalState } from './core/renderer';
|
|
5
|
-
export type { Intersection, Subscription, Dpr, Size, Viewport, RenderCallback, Performance, RootState, } from './core/store';
|
|
6
|
-
export type { ThreeEvent, Events, EventManager, ComputeFunction } from './core/events';
|
|
7
|
-
export { createEvents } from './core/events';
|
|
8
|
-
export type { ObjectMap, Camera } from './core/utils';
|
|
9
|
-
export * from './web/Canvas';
|
|
10
|
-
export { createPointerEvents as events } from './web/events';
|
|
11
|
-
export type { GlobalRenderCallback, GlobalEffectType } from './core/loop';
|
|
12
|
-
export * from './core';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import { RenderProps } from '../core';
|
|
4
|
-
export interface CanvasProps extends Omit<RenderProps<HTMLCanvasElement>, 'size' | 'dpr'>, ViewProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
style?: ViewStyle;
|
|
7
|
-
}
|
|
8
|
-
export interface Props extends CanvasProps {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A native canvas which accepts threejs elements as children.
|
|
12
|
-
* @see https://docs.pmnd.rs/react-three-fiber/api/canvas
|
|
13
|
-
*/
|
|
14
|
-
export declare const Canvas: React.ForwardRefExoticComponent<Props & React.RefAttributes<View>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { UseBoundStore } from 'zustand';
|
|
2
|
-
import { RootState } from '../core/store';
|
|
3
|
-
import { EventManager } from '../core/events';
|
|
4
|
-
/** Default R3F event manager for react-native */
|
|
5
|
-
export declare function createTouchEvents(store: UseBoundStore<RootState>): EventManager<HTMLElement>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function polyfills(): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './three-types';
|
|
2
|
-
import * as ReactThreeFiber from './three-types';
|
|
3
|
-
export { ReactThreeFiber };
|
|
4
|
-
export type { BaseInstance, LocalState } from './core/renderer';
|
|
5
|
-
export type { Intersection, Subscription, Dpr, Size, Viewport, RenderCallback, Performance, RootState, } from './core/store';
|
|
6
|
-
export type { ThreeEvent, Events, EventManager, ComputeFunction } from './core/events';
|
|
7
|
-
export { createEvents } from './core/events';
|
|
8
|
-
export type { ObjectMap, Camera } from './core/utils';
|
|
9
|
-
export * from './native/Canvas';
|
|
10
|
-
export { createTouchEvents as events } from './native/events';
|
|
11
|
-
export type { GlobalRenderCallback, GlobalEffectType } from './core/loop';
|
|
12
|
-
export * from './core';
|