@react-three/drei 11.0.0-alpha.1 → 11.0.0-alpha.4
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/core/index.d.mts +1858 -0
- package/core/index.d.ts +1858 -0
- package/core/index.mjs +8559 -0
- package/experimental/index.d.mts +222 -0
- package/experimental/index.d.ts +222 -0
- package/experimental/index.mjs +353 -0
- package/external/index.d.mts +464 -0
- package/external/index.d.ts +464 -0
- package/external/index.mjs +5079 -0
- package/index.d.mts +1746 -2147
- package/index.d.ts +2166 -0
- package/index.mjs +12940 -19766
- package/legacy/index.d.mts +2350 -0
- package/legacy/index.d.ts +2350 -0
- package/legacy/index.mjs +12325 -0
- package/native/index.d.mts +2515 -0
- package/native/index.d.ts +2515 -0
- package/native/index.mjs +12383 -0
- package/package.json +18 -15
- package/webgpu/index.d.mts +2514 -0
- package/webgpu/index.d.ts +2514 -0
- package/webgpu/index.mjs +12547 -0
- package/_chunks/hls.mjs +0 -3
- package/_chunks/libs/@mediapipe/tasks-vision.mjs +0 -4781
- package/_chunks/libs/@monogrid/gainmap-js.mjs +0 -1137
- package/_chunks/libs/@use-gesture/core.mjs +0 -1650
- package/_chunks/libs/@use-gesture/react.mjs +0 -207
- package/_chunks/libs/camera-controls.mjs +0 -2207
- package/_chunks/libs/detect-gpu.mjs +0 -515
- package/_chunks/libs/hls.js.mjs +0 -21925
- package/_chunks/libs/maath.mjs +0 -5200
- package/_chunks/libs/stats-gl.mjs +0 -301
- package/_chunks/libs/stats.js.mjs +0 -90
- package/_chunks/libs/suspend-react.mjs +0 -60
- package/_chunks/libs/three.mjs +0 -23169
- package/_chunks/libs/tunnel-rat.mjs +0 -458
- package/_chunks/libs/zustand.mjs +0 -104
- package/_chunks/rolldown-runtime.mjs +0 -47
- package/_chunks/vision_bundle.mjs +0 -3
- package/core/_chunks/hls.mjs +0 -3
- package/core/_chunks/libs/@monogrid/gainmap-js.mjs +0 -1137
- package/core/_chunks/libs/@use-gesture/core.mjs +0 -1650
- package/core/_chunks/libs/@use-gesture/react.mjs +0 -207
- package/core/_chunks/libs/detect-gpu.mjs +0 -515
- package/core/_chunks/libs/hls.js.mjs +0 -21925
- package/core/_chunks/libs/maath.mjs +0 -5200
- package/core/_chunks/libs/stats-gl.mjs +0 -301
- package/core/_chunks/libs/stats.js.mjs +0 -90
- package/core/_chunks/libs/suspend-react.mjs +0 -60
- package/core/_chunks/libs/three.mjs +0 -22457
- package/core/_chunks/libs/tunnel-rat.mjs +0 -458
- package/core/_chunks/libs/zustand.mjs +0 -104
- package/core/_chunks/rolldown-runtime.mjs +0 -47
- package/core/core/index.d.mts +0 -2232
- package/core/core/index.mjs +0 -11082
- package/experimental/_chunks/libs/three.mjs +0 -15386
- package/experimental/experimental/index.d.mts +0 -253
- package/experimental/experimental/index.mjs +0 -434
- package/external/_chunks/hls.mjs +0 -3
- package/external/_chunks/libs/@mediapipe/tasks-vision.mjs +0 -4781
- package/external/_chunks/libs/camera-controls.mjs +0 -2207
- package/external/_chunks/libs/hls.js.mjs +0 -21925
- package/external/_chunks/libs/maath.mjs +0 -5200
- package/external/_chunks/libs/suspend-react.mjs +0 -58
- package/external/_chunks/libs/three.mjs +0 -15387
- package/external/_chunks/rolldown-runtime.mjs +0 -32
- package/external/_chunks/vision_bundle.mjs +0 -3
- package/external/external/index.d.mts +0 -499
- package/external/external/index.mjs +0 -9422
- package/legacy/_chunks/hls.mjs +0 -3
- package/legacy/_chunks/libs/@monogrid/gainmap-js.mjs +0 -1137
- package/legacy/_chunks/libs/@use-gesture/core.mjs +0 -1650
- package/legacy/_chunks/libs/@use-gesture/react.mjs +0 -207
- package/legacy/_chunks/libs/bidi-js.mjs +0 -675
- package/legacy/_chunks/libs/detect-gpu.mjs +0 -515
- package/legacy/_chunks/libs/hls.js.mjs +0 -21925
- package/legacy/_chunks/libs/maath.mjs +0 -5200
- package/legacy/_chunks/libs/stats-gl.mjs +0 -301
- package/legacy/_chunks/libs/stats.js.mjs +0 -90
- package/legacy/_chunks/libs/suspend-react.mjs +0 -60
- package/legacy/_chunks/libs/three.mjs +0 -26062
- package/legacy/_chunks/libs/troika-three-text.mjs +0 -6494
- package/legacy/_chunks/libs/tunnel-rat.mjs +0 -458
- package/legacy/_chunks/libs/zustand.mjs +0 -104
- package/legacy/_chunks/rolldown-runtime.mjs +0 -47
- package/legacy/legacy/index.d.mts +0 -2788
- package/legacy/legacy/index.mjs +0 -14984
- package/native/_chunks/hls.mjs +0 -3
- package/native/_chunks/libs/@monogrid/gainmap-js.mjs +0 -1137
- package/native/_chunks/libs/@use-gesture/core.mjs +0 -1650
- package/native/_chunks/libs/@use-gesture/react.mjs +0 -207
- package/native/_chunks/libs/detect-gpu.mjs +0 -515
- package/native/_chunks/libs/hls.js.mjs +0 -21925
- package/native/_chunks/libs/maath.mjs +0 -5200
- package/native/_chunks/libs/stats-gl.mjs +0 -301
- package/native/_chunks/libs/stats.js.mjs +0 -90
- package/native/_chunks/libs/suspend-react.mjs +0 -60
- package/native/_chunks/libs/three.mjs +0 -22592
- package/native/_chunks/libs/tunnel-rat.mjs +0 -458
- package/native/_chunks/libs/zustand.mjs +0 -104
- package/native/_chunks/rolldown-runtime.mjs +0 -47
- package/native/native/index.d.mts +0 -3168
- package/native/native/index.mjs +0 -14863
- package/webgpu/_chunks/hls.mjs +0 -3
- package/webgpu/_chunks/libs/@monogrid/gainmap-js.mjs +0 -1137
- package/webgpu/_chunks/libs/@use-gesture/core.mjs +0 -1650
- package/webgpu/_chunks/libs/@use-gesture/react.mjs +0 -207
- package/webgpu/_chunks/libs/detect-gpu.mjs +0 -515
- package/webgpu/_chunks/libs/hls.js.mjs +0 -21925
- package/webgpu/_chunks/libs/maath.mjs +0 -5200
- package/webgpu/_chunks/libs/stats-gl.mjs +0 -301
- package/webgpu/_chunks/libs/stats.js.mjs +0 -90
- package/webgpu/_chunks/libs/suspend-react.mjs +0 -60
- package/webgpu/_chunks/libs/three.mjs +0 -22592
- package/webgpu/_chunks/libs/tunnel-rat.mjs +0 -458
- package/webgpu/_chunks/libs/zustand.mjs +0 -104
- package/webgpu/_chunks/rolldown-runtime.mjs +0 -47
- package/webgpu/webgpu/index.d.mts +0 -3166
- package/webgpu/webgpu/index.mjs +0 -15015
package/index.d.mts
CHANGED
|
@@ -1,2567 +1,2166 @@
|
|
|
1
|
-
import * as React
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
|
|
39
|
-
import {
|
|
40
|
-
import
|
|
41
|
-
|
|
42
|
-
import { FaceLandmarker as FaceLandmarker$1, FaceLandmarkerOptions, FaceLandmarkerResult } from "@mediapipe/tasks-vision";
|
|
43
|
-
|
|
44
|
-
//#region src/utils/ts-utils.d.ts
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, CSSProperties, RefObject, ReactNode } from 'react';
|
|
3
|
+
import * as _react_three_fiber from '@react-three/fiber';
|
|
4
|
+
import { ThreeElements, ReactThreeFiber, ThreeElement, Vector2, Vector3, ThreeEvent, Color as Color$1, ObjectMap, ComputeFunction, Euler } from '@react-three/fiber';
|
|
5
|
+
import * as THREE from 'three';
|
|
6
|
+
import { MeshStandardMaterial, Texture as Texture$1, Matrix4, Color, ColorRepresentation, Object3D, Fog, FogExp2, WebGLCubeRenderTarget, CubeCamera as CubeCamera$1, OrthographicCamera as OrthographicCamera$1, PerspectiveCamera as PerspectiveCamera$1, Event, Camera, Material, Vector3 as Vector3$1, Group, LOD, Mesh, ExtrudeGeometry, PositionalAudio as PositionalAudio$1, AnimationClip, AnimationMixer, AnimationAction, BufferGeometry, BufferAttribute, InstancedMesh as InstancedMesh$1, InstancedBufferAttribute, DepthTexture, CubeTexture as CubeTexture$1, Raycaster, Intersection, RenderTargetOptions, Box3, Sphere as Sphere$1, Loader as Loader$1, ColorSpace, Scene, PlaneGeometry, MeshBasicMaterial, EventDispatcher } from 'three';
|
|
7
|
+
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
|
+
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
|
+
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
11
|
+
import { DeviceOrientationControls as DeviceOrientationControls$1 } from 'three-stdlib';
|
|
12
|
+
import { DragConfig } from '@use-gesture/react';
|
|
13
|
+
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
14
|
+
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
15
|
+
import * as zustand from 'zustand';
|
|
16
|
+
import { StoreApi } from 'zustand';
|
|
17
|
+
import { MapControls as MapControls$1 } from 'three/examples/jsm/controls/MapControls.js';
|
|
18
|
+
import { OrbitControls as OrbitControls$1 } from 'three/addons/controls/OrbitControls.js';
|
|
19
|
+
import { PointerLockControls as PointerLockControls$1 } from 'three/examples/jsm/controls/PointerLockControls.js';
|
|
20
|
+
import { TrackballControls as TrackballControls$1 } from 'three/examples/jsm/controls/TrackballControls.js';
|
|
21
|
+
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
|
|
22
|
+
import { LineMaterialParameters, LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
23
|
+
import { Flow } from 'three/examples/jsm/modifiers/CurveModifier.js';
|
|
24
|
+
import { TextGeometry, TextGeometryParameters } from 'three/examples/jsm/geometries/TextGeometry.js';
|
|
25
|
+
import * as three_examples_jsm_loaders_FontLoader_js from 'three/examples/jsm/loaders/FontLoader.js';
|
|
26
|
+
import { TransformControls as TransformControls$1 } from 'three/examples/jsm/controls/TransformControls.js';
|
|
27
|
+
import { Falsey, Assign } from 'utility-types';
|
|
28
|
+
import * as hls_js from 'hls.js';
|
|
29
|
+
import hls_js__default from 'hls.js';
|
|
30
|
+
import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
31
|
+
import * as detect_gpu from 'detect-gpu';
|
|
32
|
+
import { GetGPUTier } from 'detect-gpu';
|
|
33
|
+
import Stats$1 from 'stats-gl';
|
|
34
|
+
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
|
+
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
|
+
import { SplitStrategy } from 'three-mesh-bvh';
|
|
37
|
+
import CameraControlsImpl from 'camera-controls';
|
|
38
|
+
export { default as CameraControlsImpl } from 'camera-controls';
|
|
39
|
+
import { FaceLandmarkerResult, FaceLandmarkerOptions, FaceLandmarker as FaceLandmarker$1 } from '@mediapipe/tasks-vision';
|
|
40
|
+
import { MarchingCubes as MarchingCubes$1 } from 'three/examples/jsm/objects/MarchingCubes.js';
|
|
41
|
+
|
|
45
42
|
type NamedArrayTuple<T extends (...args: any) => any> = Parameters<T>;
|
|
46
43
|
type ForwardRefComponent<P, T> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
|
47
|
-
type NonFunctionKeys<T> = {
|
|
44
|
+
type NonFunctionKeys<T> = {
|
|
45
|
+
[K in keyof T]-?: T[K] extends Function ? never : K;
|
|
46
|
+
}[keyof T];
|
|
48
47
|
type Overwrite<T, O> = Omit<T, NonFunctionKeys<O>> & O;
|
|
49
|
-
|
|
50
|
-
//#region src/legacy/Materials/ContactShadows/ContactShadows.d.ts
|
|
48
|
+
|
|
51
49
|
type ContactShadowsProps = Omit<ThreeElements['group'], 'ref' | 'scale'> & {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
//#region src/legacy/Materials/AccumulativeShadows/AccumulativeShadows.d.ts
|
|
50
|
+
opacity?: number;
|
|
51
|
+
width?: number;
|
|
52
|
+
height?: number;
|
|
53
|
+
blur?: number;
|
|
54
|
+
near?: number;
|
|
55
|
+
far?: number;
|
|
56
|
+
smooth?: boolean;
|
|
57
|
+
resolution?: number;
|
|
58
|
+
frames?: number;
|
|
59
|
+
scale?: number | [x: number, y: number];
|
|
60
|
+
color?: THREE.ColorRepresentation;
|
|
61
|
+
depthWrite?: boolean;
|
|
62
|
+
};
|
|
63
|
+
|
|
67
64
|
type AccumulativeShadowsProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
65
|
+
frames?: number;
|
|
66
|
+
blend?: number;
|
|
67
|
+
limit?: number;
|
|
68
|
+
scale?: number;
|
|
69
|
+
temporal?: boolean;
|
|
70
|
+
opacity?: number;
|
|
71
|
+
alphaTest?: number;
|
|
72
|
+
color?: string;
|
|
73
|
+
colorBlend?: number;
|
|
74
|
+
resolution?: number;
|
|
75
|
+
toneMapped?: boolean;
|
|
79
76
|
};
|
|
80
77
|
type SoftShadowMaterialProps = {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
map: THREE.Texture;
|
|
79
|
+
color?: ReactThreeFiber.Color;
|
|
80
|
+
alphaTest?: number;
|
|
81
|
+
blend?: number;
|
|
85
82
|
};
|
|
86
83
|
declare module '@react-three/fiber' {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
interface ThreeElements {
|
|
85
|
+
softShadowMaterial: ThreeElements['shaderMaterial'] & SoftShadowMaterialProps;
|
|
86
|
+
}
|
|
90
87
|
}
|
|
91
88
|
type RandomizedLightProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
//#region src/legacy/Materials/Caustics/Caustics.d.ts
|
|
89
|
+
frames?: number;
|
|
90
|
+
position?: [x: number, y: number, z: number];
|
|
91
|
+
radius?: number;
|
|
92
|
+
amount?: number;
|
|
93
|
+
intensity?: number;
|
|
94
|
+
ambient?: number;
|
|
95
|
+
castShadow?: boolean;
|
|
96
|
+
bias?: number;
|
|
97
|
+
mapSize?: number;
|
|
98
|
+
size?: number;
|
|
99
|
+
near?: number;
|
|
100
|
+
far?: number;
|
|
101
|
+
};
|
|
102
|
+
|
|
107
103
|
declare module '@react-three/fiber' {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
104
|
+
interface ThreeElements {
|
|
105
|
+
causticsProjectionMaterial: ThreeElements['meshNormalMaterial'] & {
|
|
106
|
+
viewMatrix?: {
|
|
107
|
+
value: THREE.Matrix4;
|
|
108
|
+
};
|
|
109
|
+
color?: ReactThreeFiber.Color;
|
|
110
|
+
causticsTexture?: THREE.Texture;
|
|
111
|
+
causticsTextureB?: THREE.Texture;
|
|
112
|
+
lightProjMatrix?: THREE.Matrix4;
|
|
113
|
+
lightViewMatrix?: THREE.Matrix4;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
120
116
|
}
|
|
121
|
-
|
|
122
|
-
//#region src/legacy/Materials/MeshTransmissionMaterial/MeshTransmissionMaterial.d.ts
|
|
117
|
+
|
|
123
118
|
type MeshTransmissionMaterialType = Omit<ThreeElements['meshPhysicalMaterial'], 'args' | 'roughness' | 'thickness' | 'transmission'> & {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
119
|
+
transmission?: number;
|
|
120
|
+
thickness?: number;
|
|
121
|
+
roughness?: number;
|
|
122
|
+
chromaticAberration?: number;
|
|
123
|
+
anisotropy?: number;
|
|
124
|
+
anisotropicBlur?: number;
|
|
125
|
+
distortion?: number;
|
|
126
|
+
distortionScale?: number;
|
|
127
|
+
temporalDistortion?: number;
|
|
128
|
+
buffer?: THREE.Texture;
|
|
129
|
+
time?: number;
|
|
130
|
+
args?: [samples: number, transmissionSampler: boolean];
|
|
136
131
|
};
|
|
137
132
|
declare module '@react-three/fiber' {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
interface ThreeElements {
|
|
134
|
+
meshTransmissionMaterial: MeshTransmissionMaterialType;
|
|
135
|
+
}
|
|
141
136
|
}
|
|
142
|
-
|
|
143
|
-
//#region src/legacy/Materials/MeshReflectorMaterial/MeshReflectorMaterialClass.d.ts
|
|
137
|
+
|
|
144
138
|
declare class MeshReflectorMaterial extends MeshStandardMaterial {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
139
|
+
private _tDepth;
|
|
140
|
+
private _distortionMap;
|
|
141
|
+
private _tDiffuse;
|
|
142
|
+
private _tDiffuseBlur;
|
|
143
|
+
private _textureMatrix;
|
|
144
|
+
private _hasBlur;
|
|
145
|
+
private _mirror;
|
|
146
|
+
private _mixBlur;
|
|
147
|
+
private _blurStrength;
|
|
148
|
+
private _minDepthThreshold;
|
|
149
|
+
private _maxDepthThreshold;
|
|
150
|
+
private _depthScale;
|
|
151
|
+
private _depthToBlurRatioBias;
|
|
152
|
+
private _distortion;
|
|
153
|
+
private _mixContrast;
|
|
154
|
+
constructor(parameters?: {});
|
|
155
|
+
onBeforeCompile(shader: any): void;
|
|
156
|
+
get tDiffuse(): Texture$1 | null;
|
|
157
|
+
set tDiffuse(v: Texture$1 | null);
|
|
158
|
+
get tDepth(): Texture$1 | null;
|
|
159
|
+
set tDepth(v: Texture$1 | null);
|
|
160
|
+
get distortionMap(): Texture$1 | null;
|
|
161
|
+
set distortionMap(v: Texture$1 | null);
|
|
162
|
+
get tDiffuseBlur(): Texture$1 | null;
|
|
163
|
+
set tDiffuseBlur(v: Texture$1 | null);
|
|
164
|
+
get textureMatrix(): Matrix4 | null;
|
|
165
|
+
set textureMatrix(v: Matrix4 | null);
|
|
166
|
+
get hasBlur(): boolean;
|
|
167
|
+
set hasBlur(v: boolean);
|
|
168
|
+
get mirror(): number;
|
|
169
|
+
set mirror(v: number);
|
|
170
|
+
get mixBlur(): number;
|
|
171
|
+
set mixBlur(v: number);
|
|
172
|
+
get mixStrength(): number;
|
|
173
|
+
set mixStrength(v: number);
|
|
174
|
+
get minDepthThreshold(): number;
|
|
175
|
+
set minDepthThreshold(v: number);
|
|
176
|
+
get maxDepthThreshold(): number;
|
|
177
|
+
set maxDepthThreshold(v: number);
|
|
178
|
+
get depthScale(): number;
|
|
179
|
+
set depthScale(v: number);
|
|
180
|
+
get depthToBlurRatioBias(): number;
|
|
181
|
+
set depthToBlurRatioBias(v: number);
|
|
182
|
+
get distortion(): number;
|
|
183
|
+
set distortion(v: number);
|
|
184
|
+
get mixContrast(): number;
|
|
185
|
+
set mixContrast(v: number);
|
|
192
186
|
}
|
|
193
|
-
|
|
194
|
-
//#region src/legacy/Materials/MeshReflectorMaterial/MeshReflectorMaterial.d.ts
|
|
187
|
+
|
|
195
188
|
declare module '@react-three/fiber' {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
189
|
+
interface ThreeElements {
|
|
190
|
+
meshReflectorMaterialImpl: ThreeElement<typeof MeshReflectorMaterial>;
|
|
191
|
+
}
|
|
199
192
|
}
|
|
200
|
-
|
|
201
|
-
//#region src/legacy/Materials/MeshPortalMaterial/MeshPortalMaterial.d.ts
|
|
193
|
+
|
|
202
194
|
declare module '@react-three/fiber' {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
195
|
+
interface ThreeElements {
|
|
196
|
+
portalMaterialImpl: ThreeElements['shaderMaterial'] & {
|
|
197
|
+
resolution: ReactThreeFiber.Vector2;
|
|
198
|
+
blur: number;
|
|
199
|
+
blend: number;
|
|
200
|
+
size?: number;
|
|
201
|
+
sdf?: THREE.Texture;
|
|
202
|
+
map?: THREE.Texture;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
213
205
|
}
|
|
214
|
-
|
|
215
|
-
//#region src/legacy/Materials/MeshDistortMaterial/MeshDistortMaterial.d.ts
|
|
206
|
+
|
|
216
207
|
declare module '@react-three/fiber' {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
208
|
+
interface ThreeElements {
|
|
209
|
+
distortMaterialImpl: ThreeElements['meshPhysicalMaterial'] & {
|
|
210
|
+
time?: number;
|
|
211
|
+
distort?: number;
|
|
212
|
+
radius?: number;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
224
215
|
}
|
|
225
|
-
|
|
226
|
-
//#region src/legacy/Materials/MeshWobbleMaterial/MeshWobbleMaterial.d.ts
|
|
216
|
+
|
|
227
217
|
declare module '@react-three/fiber' {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
218
|
+
interface ThreeElements {
|
|
219
|
+
wobbleMaterialImpl: ThreeElements['meshStandardMaterial'] & {
|
|
220
|
+
time?: number;
|
|
221
|
+
factor?: number;
|
|
222
|
+
speed?: number;
|
|
223
|
+
};
|
|
224
|
+
}
|
|
235
225
|
}
|
|
236
|
-
|
|
237
|
-
//#region src/experimental/Effects/Outlines/Outlines.d.ts
|
|
226
|
+
|
|
238
227
|
type OutlinesProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
};
|
|
251
|
-
declare function Outlines({
|
|
252
|
-
|
|
253
|
-
opacity,
|
|
254
|
-
transparent,
|
|
255
|
-
screenspace,
|
|
256
|
-
toneMapped,
|
|
257
|
-
polygonOffset,
|
|
258
|
-
polygonOffsetFactor,
|
|
259
|
-
renderOrder,
|
|
260
|
-
thickness,
|
|
261
|
-
angle,
|
|
262
|
-
clippingPlanes,
|
|
263
|
-
...props
|
|
264
|
-
}: OutlinesProps): React$1.JSX.Element;
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region src/legacy/Abstractions/Effects/Effects.d.ts
|
|
228
|
+
color?: ReactThreeFiber.Color;
|
|
229
|
+
screenspace?: boolean;
|
|
230
|
+
opacity?: number;
|
|
231
|
+
transparent?: boolean;
|
|
232
|
+
thickness?: number;
|
|
233
|
+
angle?: number;
|
|
234
|
+
clippingPlanes?: THREE.Plane[];
|
|
235
|
+
toneMapped?: boolean;
|
|
236
|
+
polygonOffset?: boolean;
|
|
237
|
+
polygonOffsetFactor?: number;
|
|
238
|
+
renderOrder?: number;
|
|
239
|
+
};
|
|
240
|
+
declare function Outlines({ color, opacity, transparent, screenspace, toneMapped, polygonOffset, polygonOffsetFactor, renderOrder, thickness, angle, clippingPlanes, ...props }: OutlinesProps): React.JSX.Element;
|
|
241
|
+
|
|
267
242
|
declare module '@react-three/fiber' {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
243
|
+
interface ThreeElements {
|
|
244
|
+
effectComposer: ThreeElement<typeof EffectComposer>;
|
|
245
|
+
renderPass: ThreeElement<typeof RenderPass>;
|
|
246
|
+
shaderPass: ThreeElement<typeof ShaderPass>;
|
|
247
|
+
}
|
|
273
248
|
}
|
|
274
|
-
|
|
275
|
-
//#region src/core/Portal/RenderTexture/RenderTexture.d.ts
|
|
249
|
+
|
|
276
250
|
type RenderTextureProps = Omit<ThreeElements['texture'], 'ref' | 'args'> & {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
};
|
|
289
|
-
declare const RenderTexture: ForwardRefComponent<RenderTextureProps, THREE
|
|
290
|
-
|
|
291
|
-
//#region src/legacy/Geometry/Line/Line.d.ts
|
|
251
|
+
width?: number;
|
|
252
|
+
height?: number;
|
|
253
|
+
samples?: number;
|
|
254
|
+
stencilBuffer?: boolean;
|
|
255
|
+
depthBuffer?: boolean;
|
|
256
|
+
generateMipmaps?: boolean;
|
|
257
|
+
renderPriority?: number;
|
|
258
|
+
eventPriority?: number;
|
|
259
|
+
frames?: number;
|
|
260
|
+
compute?: (event: any, state: any, previous: any) => false | undefined;
|
|
261
|
+
children: React.ReactNode;
|
|
262
|
+
};
|
|
263
|
+
declare const RenderTexture: ForwardRefComponent<RenderTextureProps, THREE.Texture>;
|
|
264
|
+
|
|
292
265
|
type LineProps = Omit<{
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
266
|
+
points: ReadonlyArray<Vector2 | Vector3>;
|
|
267
|
+
vertexColors?: ReadonlyArray<Color | [number, number, number] | [number, number, number, number]>;
|
|
268
|
+
lineWidth?: number;
|
|
269
|
+
segments?: boolean;
|
|
297
270
|
} & Omit<LineMaterialParameters, 'vertexColors' | 'color'> & Omit<ThreeElement<typeof Line2>, 'ref' | 'args'> & Omit<ThreeElement<typeof LineMaterial>, 'ref' | 'color' | 'vertexColors' | 'args'> & {
|
|
298
|
-
|
|
271
|
+
color?: ColorRepresentation;
|
|
299
272
|
}, 'ref'>;
|
|
300
|
-
|
|
301
|
-
//#region src/legacy/Geometry/Segments/Segments.d.ts
|
|
273
|
+
|
|
302
274
|
declare module '@react-three/fiber' {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
275
|
+
interface ThreeElements {
|
|
276
|
+
segmentObject: ThreeElement<typeof SegmentObject>;
|
|
277
|
+
}
|
|
306
278
|
}
|
|
307
279
|
declare class SegmentObject {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
280
|
+
color: THREE.Color;
|
|
281
|
+
start: THREE.Vector3;
|
|
282
|
+
end: THREE.Vector3;
|
|
283
|
+
constructor();
|
|
312
284
|
}
|
|
313
|
-
|
|
314
|
-
//#region src/legacy/Effects/Trail/Trail.d.ts
|
|
285
|
+
|
|
315
286
|
type Settings$1 = {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
287
|
+
width: number;
|
|
288
|
+
length: number;
|
|
289
|
+
decay: number;
|
|
290
|
+
local: boolean;
|
|
291
|
+
stride: number;
|
|
292
|
+
interval: number;
|
|
322
293
|
};
|
|
323
294
|
type TrailProps = {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
295
|
+
color?: ColorRepresentation;
|
|
296
|
+
attenuation?: (t: number) => number;
|
|
297
|
+
target?: React.RefObject<Object3D>;
|
|
327
298
|
} & Partial<Settings$1>;
|
|
328
|
-
declare function useTrail(target: Object3D, settings: Partial<Settings$1>, pointCount: number): React
|
|
329
|
-
declare const Trail: ForwardRefComponent<React
|
|
330
|
-
|
|
331
|
-
//#region src/core/Cameras/CubeCamera/CubeCamera.d.ts
|
|
299
|
+
declare function useTrail(target: Object3D, settings: Partial<Settings$1>, pointCount: number): React.RefObject<Float32Array>;
|
|
300
|
+
declare const Trail: ForwardRefComponent<React.PropsWithChildren<TrailProps>, Line2>;
|
|
301
|
+
|
|
332
302
|
type CubeCameraOptions = {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
303
|
+
resolution?: number;
|
|
304
|
+
near?: number;
|
|
305
|
+
far?: number;
|
|
306
|
+
envMap?: Texture$1;
|
|
307
|
+
fog?: Fog | FogExp2;
|
|
338
308
|
};
|
|
339
309
|
type CubeCameraProps = Omit<ThreeElements['group'], 'children'> & {
|
|
340
|
-
|
|
341
|
-
|
|
310
|
+
children?: (tex: Texture$1) => React.ReactNode;
|
|
311
|
+
frames?: number;
|
|
342
312
|
} & CubeCameraOptions;
|
|
343
|
-
declare function useCubeCamera({
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
fbo: CubeRenderTarget;
|
|
351
|
-
camera: CubeCamera$1;
|
|
352
|
-
update: () => void;
|
|
353
|
-
};
|
|
354
|
-
declare function CubeCamera({
|
|
355
|
-
children,
|
|
356
|
-
frames,
|
|
357
|
-
resolution,
|
|
358
|
-
near,
|
|
359
|
-
far,
|
|
360
|
-
envMap,
|
|
361
|
-
fog,
|
|
362
|
-
...props
|
|
363
|
-
}: CubeCameraProps): React$1.JSX.Element;
|
|
364
|
-
//#endregion
|
|
365
|
-
//#region src/core/Cameras/OrthographicCamera/OrthographicCamera.d.ts
|
|
313
|
+
declare function useCubeCamera({ resolution, near, far, envMap, fog }?: CubeCameraOptions): {
|
|
314
|
+
fbo: WebGLCubeRenderTarget;
|
|
315
|
+
camera: CubeCamera$1;
|
|
316
|
+
update: () => void;
|
|
317
|
+
};
|
|
318
|
+
declare function CubeCamera({ children, frames, resolution, near, far, envMap, fog, ...props }: CubeCameraProps): React.JSX.Element;
|
|
319
|
+
|
|
366
320
|
type OrthographicCameraProps = Omit<ThreeElements['orthographicCamera'], 'ref' | 'children'> & {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
};
|
|
374
|
-
declare const OrthographicCamera: ForwardRefComponent<OrthographicCameraProps, OrthographicCamera$
|
|
375
|
-
|
|
376
|
-
//#region src/core/Cameras/PerspectiveCamera/PerspectiveCamera.d.ts
|
|
321
|
+
makeDefault?: boolean;
|
|
322
|
+
manual?: boolean;
|
|
323
|
+
children?: React.ReactNode | ((texture: THREE.Texture) => React.ReactNode);
|
|
324
|
+
frames?: number;
|
|
325
|
+
resolution?: number;
|
|
326
|
+
envMap?: THREE.Texture;
|
|
327
|
+
};
|
|
328
|
+
declare const OrthographicCamera: ForwardRefComponent<OrthographicCameraProps, OrthographicCamera$1>;
|
|
329
|
+
|
|
377
330
|
type PerspectiveCameraProps = Omit<ThreeElements['perspectiveCamera'], 'ref' | 'children'> & {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
331
|
+
makeDefault?: boolean;
|
|
332
|
+
manual?: boolean;
|
|
333
|
+
children?: React.ReactNode | ((texture: THREE.Texture) => React.ReactNode);
|
|
334
|
+
frames?: number;
|
|
335
|
+
resolution?: number;
|
|
336
|
+
envMap?: THREE.Texture;
|
|
384
337
|
};
|
|
385
338
|
declare const PerspectiveCamera: ForwardRefComponent<PerspectiveCameraProps, PerspectiveCamera$1>;
|
|
386
|
-
|
|
387
|
-
//#region src/core/Controls/ArcballControls/ArcballControls.d.ts
|
|
339
|
+
|
|
388
340
|
type ArcballControlsProps = Omit<Overwrite<ThreeElement<typeof ArcballControls$1>, {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
341
|
+
target?: ReactThreeFiber.Vector3;
|
|
342
|
+
camera?: OrthographicCamera$1 | PerspectiveCamera$1;
|
|
343
|
+
domElement?: HTMLElement;
|
|
344
|
+
regress?: boolean;
|
|
345
|
+
makeDefault?: boolean;
|
|
346
|
+
onChange?: (e?: Event) => void;
|
|
347
|
+
onStart?: (e?: Event) => void;
|
|
348
|
+
onEnd?: (e?: Event) => void;
|
|
397
349
|
}>, 'ref' | 'args'>;
|
|
398
350
|
declare const ArcballControls: ForwardRefComponent<ArcballControlsProps, ArcballControls$1>;
|
|
399
|
-
|
|
400
|
-
//#region src/core/Controls/DeviceOrientationControls/DeviceOrientationControls.d.ts
|
|
351
|
+
|
|
401
352
|
type DeviceOrientationControlsProps = Omit<ThreeElement<typeof DeviceOrientationControls$1>, 'ref' | 'args'> & {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
353
|
+
camera?: THREE.Camera;
|
|
354
|
+
onChange?: (e?: THREE.Event) => void;
|
|
355
|
+
makeDefault?: boolean;
|
|
405
356
|
};
|
|
406
357
|
declare const DeviceOrientationControls: ForwardRefComponent<DeviceOrientationControlsProps, DeviceOrientationControls$1>;
|
|
407
|
-
|
|
408
|
-
//#region src/core/Controls/DragControls/DragControls.d.ts
|
|
358
|
+
|
|
409
359
|
type DragControlsProps = {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
};
|
|
421
|
-
declare const DragControls: ForwardRefComponent<DragControlsProps, THREE
|
|
422
|
-
|
|
423
|
-
//#region src/core/Controls/FirstPersonControls/FirstPersonControls.d.ts
|
|
360
|
+
autoTransform?: boolean;
|
|
361
|
+
matrix?: THREE.Matrix4;
|
|
362
|
+
axisLock?: 'x' | 'y' | 'z';
|
|
363
|
+
dragLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
|
|
364
|
+
onHover?: (hovering: boolean) => void;
|
|
365
|
+
onDragStart?: (origin: THREE.Vector3) => void;
|
|
366
|
+
onDrag?: (localMatrix: THREE.Matrix4, deltaLocalMatrix: THREE.Matrix4, worldMatrix: THREE.Matrix4, deltaWorldMatrix: THREE.Matrix4) => void;
|
|
367
|
+
onDragEnd?: () => void;
|
|
368
|
+
children: React.ReactNode;
|
|
369
|
+
dragConfig?: DragConfig;
|
|
370
|
+
};
|
|
371
|
+
declare const DragControls: ForwardRefComponent<DragControlsProps, THREE.Group>;
|
|
372
|
+
|
|
424
373
|
type FirstPersonControlsProps = Omit<ThreeElement<typeof FirstPersonControls$1>, 'ref' | 'args'> & {
|
|
425
|
-
|
|
426
|
-
|
|
374
|
+
domElement?: HTMLElement;
|
|
375
|
+
makeDefault?: boolean;
|
|
427
376
|
};
|
|
428
377
|
declare const FirstPersonControls: ForwardRefComponent<FirstPersonControlsProps, FirstPersonControls$1>;
|
|
429
|
-
|
|
430
|
-
//#region src/core/Controls/FlyControls/FlyControls.d.ts
|
|
378
|
+
|
|
431
379
|
type FlyControlsProps = Omit<ThreeElement<typeof FlyControls$1>, 'ref' | 'args'> & {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
380
|
+
onChange?: (e?: THREE.Event) => void;
|
|
381
|
+
domElement?: HTMLElement;
|
|
382
|
+
makeDefault?: boolean;
|
|
435
383
|
};
|
|
436
384
|
declare const FlyControls: ForwardRefComponent<FlyControlsProps, FlyControls$1>;
|
|
437
|
-
|
|
438
|
-
//#region src/core/Controls/KeyboardControls/KeyboardControls.d.ts
|
|
385
|
+
|
|
439
386
|
type State = object;
|
|
440
387
|
type StateSelector<T extends State, U> = (state: T) => U;
|
|
441
388
|
type EqualityChecker<T> = (state: T, newState: T) => boolean;
|
|
442
389
|
type StateListener<T> = (state: T, previousState: T) => void;
|
|
443
390
|
type StoreApiWithSubscribeWithSelector<T extends State> = Omit<StoreApi<T>, 'subscribe'> & {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
};
|
|
452
|
-
type KeyboardControlsState<T extends string = string> = {
|
|
391
|
+
subscribe: {
|
|
392
|
+
(listener: StateListener<T>): () => void;
|
|
393
|
+
<StateSlice>(selector: StateSelector<T, StateSlice>, listener: StateListener<StateSlice>, options?: {
|
|
394
|
+
equalityFn?: EqualityChecker<StateSlice>;
|
|
395
|
+
fireImmediately?: boolean;
|
|
396
|
+
}): () => void;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
type KeyboardControlsState<T extends string = string> = {
|
|
400
|
+
[K in T]: boolean;
|
|
401
|
+
};
|
|
453
402
|
type KeyboardControlsEntry<T extends string = string> = {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
403
|
+
name: T;
|
|
404
|
+
keys: string[];
|
|
405
|
+
up?: boolean;
|
|
457
406
|
};
|
|
458
407
|
type KeyboardControlsProps = {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
};
|
|
464
|
-
declare function KeyboardControls({
|
|
465
|
-
map,
|
|
466
|
-
children,
|
|
467
|
-
onChange,
|
|
468
|
-
domElement
|
|
469
|
-
}: KeyboardControlsProps): React$1.JSX.Element;
|
|
408
|
+
map: KeyboardControlsEntry[];
|
|
409
|
+
children: React.ReactNode;
|
|
410
|
+
onChange?: (name: string, pressed: boolean, state: KeyboardControlsState) => void;
|
|
411
|
+
domElement?: HTMLElement;
|
|
412
|
+
};
|
|
413
|
+
declare function KeyboardControls({ map, children, onChange, domElement }: KeyboardControlsProps): React.JSX.Element;
|
|
470
414
|
type Selector<T extends string = string> = (state: KeyboardControlsState<T>) => boolean;
|
|
471
|
-
declare function useKeyboardControls<T extends string = string>(): [
|
|
415
|
+
declare function useKeyboardControls<T extends string = string>(): [
|
|
416
|
+
StoreApiWithSubscribeWithSelector<KeyboardControlsState<T>>['subscribe'],
|
|
417
|
+
StoreApiWithSubscribeWithSelector<KeyboardControlsState<T>>['getState']
|
|
418
|
+
];
|
|
472
419
|
declare function useKeyboardControls<T extends string = string>(sel: Selector<T>): ReturnType<Selector<T>>;
|
|
473
|
-
|
|
474
|
-
//#region src/core/Controls/MapControls/MapControls.d.ts
|
|
420
|
+
|
|
475
421
|
type MapControlsProps = Omit<Overwrite<ThreeElement<typeof MapControls$1>, {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
422
|
+
target?: ReactThreeFiber.Vector3;
|
|
423
|
+
camera?: THREE.Camera;
|
|
424
|
+
makeDefault?: boolean;
|
|
425
|
+
onChange?: (e?: THREE.Event) => void;
|
|
426
|
+
onStart?: (e?: THREE.Event) => void;
|
|
427
|
+
onEnd?: (e?: THREE.Event) => void;
|
|
428
|
+
domElement?: HTMLElement;
|
|
483
429
|
}>, 'ref' | 'args'>;
|
|
484
430
|
declare const MapControls: ForwardRefComponent<MapControlsProps, MapControls$1>;
|
|
485
|
-
|
|
486
|
-
//#region src/core/Controls/MotionPathControls/MotionPathControls.d.ts
|
|
431
|
+
|
|
487
432
|
type MotionPathProps = ThreeElements['group'] & {
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
433
|
+
curves?: THREE.Curve<THREE.Vector3>[];
|
|
434
|
+
debug?: boolean;
|
|
435
|
+
debugColor?: THREE.ColorRepresentation;
|
|
436
|
+
object?: React.RefObject<THREE.Object3D>;
|
|
437
|
+
focus?: [x: number, y: number, z: number] | React.RefObject<THREE.Object3D>;
|
|
438
|
+
loop?: boolean;
|
|
439
|
+
offset?: number;
|
|
440
|
+
smooth?: boolean | number;
|
|
441
|
+
eps?: number;
|
|
442
|
+
damping?: number;
|
|
443
|
+
focusDamping?: number;
|
|
444
|
+
maxSpeed?: number;
|
|
500
445
|
};
|
|
501
446
|
type MotionState = {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
};
|
|
511
|
-
type MotionPathRef = THREE
|
|
512
|
-
|
|
447
|
+
current: number;
|
|
448
|
+
path: THREE.CurvePath<THREE.Vector3>;
|
|
449
|
+
focus: React.RefObject<THREE.Object3D> | [x: number, y: number, z: number] | undefined;
|
|
450
|
+
object: React.RefObject<THREE.Object3D>;
|
|
451
|
+
offset: number;
|
|
452
|
+
point: THREE.Vector3;
|
|
453
|
+
tangent: THREE.Vector3;
|
|
454
|
+
next: THREE.Vector3;
|
|
455
|
+
};
|
|
456
|
+
type MotionPathRef = THREE.Group & {
|
|
457
|
+
motion: MotionState;
|
|
513
458
|
};
|
|
514
459
|
declare function useMotion(): MotionState;
|
|
515
|
-
declare const MotionPathControls: React
|
|
516
|
-
|
|
517
|
-
//#region src/core/Controls/OrbitControls/OrbitControls.d.ts
|
|
460
|
+
declare const MotionPathControls: React.ForwardRefExoticComponent<Omit<MotionPathProps, "ref"> & React.RefAttributes<MotionPathRef>>;
|
|
461
|
+
|
|
518
462
|
type ExtractCallback<T, E extends string> = T extends {
|
|
519
|
-
|
|
463
|
+
addEventListener(event: E, callback: infer C): void;
|
|
520
464
|
} ? C : never;
|
|
521
465
|
type OrbitControlsChangeEvent = Parameters<ExtractCallback<OrbitControls$1, 'change'>>[0];
|
|
522
466
|
type OrbitControlsProps = Omit<Overwrite<ThreeElement<typeof OrbitControls$1>, {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
467
|
+
camera?: Camera;
|
|
468
|
+
domElement?: HTMLElement;
|
|
469
|
+
enableDamping?: boolean;
|
|
470
|
+
makeDefault?: boolean;
|
|
471
|
+
onChange?: (e?: OrbitControlsChangeEvent) => void;
|
|
472
|
+
onEnd?: (e?: Event) => void;
|
|
473
|
+
onStart?: (e?: Event) => void;
|
|
474
|
+
regress?: boolean;
|
|
475
|
+
target?: ReactThreeFiber.Vector3;
|
|
476
|
+
keyEvents?: boolean | HTMLElement;
|
|
533
477
|
}>, 'ref' | 'args'>;
|
|
534
478
|
declare const OrbitControls: ForwardRefComponent<OrbitControlsProps, OrbitControls$1>;
|
|
535
|
-
|
|
536
|
-
//#region src/core/Controls/PointerLockControls/PointerLockControls.d.ts
|
|
479
|
+
|
|
537
480
|
type PointerLockControlsProps = Omit<ThreeElement<typeof PointerLockControls$1>, 'ref' | 'args'> & {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
481
|
+
domElement?: HTMLElement;
|
|
482
|
+
selector?: string;
|
|
483
|
+
enabled?: boolean;
|
|
484
|
+
camera?: THREE.Camera;
|
|
485
|
+
onChange?: (e?: THREE.Event) => void;
|
|
486
|
+
onLock?: (e?: THREE.Event) => void;
|
|
487
|
+
onUnlock?: (e?: THREE.Event) => void;
|
|
488
|
+
makeDefault?: boolean;
|
|
546
489
|
};
|
|
547
490
|
declare const PointerLockControls: ForwardRefComponent<PointerLockControlsProps, PointerLockControls$1>;
|
|
548
|
-
|
|
549
|
-
//#region src/core/Controls/PresentationControls/PresentationControls.d.ts
|
|
491
|
+
|
|
550
492
|
type PresentationControlProps = {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
};
|
|
564
|
-
declare function PresentationControls({
|
|
565
|
-
|
|
566
|
-
snap,
|
|
567
|
-
global,
|
|
568
|
-
domElement,
|
|
569
|
-
cursor,
|
|
570
|
-
children,
|
|
571
|
-
speed,
|
|
572
|
-
rotation,
|
|
573
|
-
zoom,
|
|
574
|
-
polar,
|
|
575
|
-
azimuth,
|
|
576
|
-
damping
|
|
577
|
-
}: PresentationControlProps): React$1.JSX.Element;
|
|
578
|
-
//#endregion
|
|
579
|
-
//#region src/core/Controls/ScrollControls/ScrollControls.d.ts
|
|
493
|
+
snap?: Boolean | number;
|
|
494
|
+
global?: boolean;
|
|
495
|
+
cursor?: boolean;
|
|
496
|
+
speed?: number;
|
|
497
|
+
zoom?: number;
|
|
498
|
+
rotation?: [number, number, number];
|
|
499
|
+
polar?: [number, number];
|
|
500
|
+
azimuth?: [number, number];
|
|
501
|
+
damping?: number;
|
|
502
|
+
enabled?: boolean;
|
|
503
|
+
children?: React.ReactNode;
|
|
504
|
+
domElement?: HTMLElement;
|
|
505
|
+
};
|
|
506
|
+
declare function PresentationControls({ enabled, snap, global, domElement, cursor, children, speed, rotation, zoom, polar, azimuth, damping, }: PresentationControlProps): React.JSX.Element;
|
|
507
|
+
|
|
580
508
|
type ScrollControlsProps = {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
509
|
+
eps?: number;
|
|
510
|
+
horizontal?: boolean;
|
|
511
|
+
infinite?: boolean;
|
|
512
|
+
pages?: number;
|
|
513
|
+
distance?: number;
|
|
514
|
+
damping?: number;
|
|
515
|
+
maxSpeed?: number;
|
|
516
|
+
prepend?: boolean;
|
|
517
|
+
enabled?: boolean;
|
|
518
|
+
style?: React.CSSProperties;
|
|
519
|
+
children: React.ReactNode;
|
|
592
520
|
};
|
|
593
521
|
type ScrollControlsState = {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
522
|
+
el: HTMLDivElement;
|
|
523
|
+
eps: number;
|
|
524
|
+
fill: HTMLDivElement;
|
|
525
|
+
fixed: HTMLDivElement;
|
|
526
|
+
horizontal: boolean | undefined;
|
|
527
|
+
damping: number;
|
|
528
|
+
offset: number;
|
|
529
|
+
delta: number;
|
|
530
|
+
pages: number;
|
|
531
|
+
range(from: number, distance: number, margin?: number): number;
|
|
532
|
+
curve(from: number, distance: number, margin?: number): number;
|
|
533
|
+
visible(from: number, distance: number, margin?: number): boolean;
|
|
606
534
|
};
|
|
607
535
|
declare function useScroll(): ScrollControlsState;
|
|
608
|
-
declare function ScrollControls({
|
|
609
|
-
eps,
|
|
610
|
-
enabled,
|
|
611
|
-
infinite,
|
|
612
|
-
horizontal,
|
|
613
|
-
pages,
|
|
614
|
-
distance,
|
|
615
|
-
damping,
|
|
616
|
-
maxSpeed,
|
|
617
|
-
prepend,
|
|
618
|
-
style,
|
|
619
|
-
children
|
|
620
|
-
}: ScrollControlsProps): React$1.JSX.Element;
|
|
536
|
+
declare function ScrollControls({ eps, enabled, infinite, horizontal, pages, distance, damping, maxSpeed, prepend, style, children, }: ScrollControlsProps): React.JSX.Element;
|
|
621
537
|
interface ScrollPropsWithFalseHtml {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
538
|
+
children?: React.ReactNode;
|
|
539
|
+
html?: false;
|
|
540
|
+
style?: never;
|
|
625
541
|
}
|
|
626
542
|
interface ScrollPropsWithTrueHtml {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
543
|
+
children?: React.ReactNode;
|
|
544
|
+
html: true;
|
|
545
|
+
style?: React.CSSProperties;
|
|
630
546
|
}
|
|
631
547
|
type ScrollProps = ScrollPropsWithFalseHtml | ScrollPropsWithTrueHtml;
|
|
632
|
-
declare const Scroll: ForwardRefComponent<ScrollProps, THREE
|
|
633
|
-
|
|
634
|
-
//#region src/core/Controls/TrackballControls/TrackballControls.d.ts
|
|
548
|
+
declare const Scroll: ForwardRefComponent<ScrollProps, THREE.Group & HTMLDivElement>;
|
|
549
|
+
|
|
635
550
|
type TrackballControlsProps = Omit<Overwrite<ThreeElement<typeof TrackballControls$1>, {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
551
|
+
target?: ReactThreeFiber.Vector3;
|
|
552
|
+
camera?: THREE.Camera;
|
|
553
|
+
domElement?: HTMLElement;
|
|
554
|
+
regress?: boolean;
|
|
555
|
+
makeDefault?: boolean;
|
|
556
|
+
onChange?: (e?: THREE.Event) => void;
|
|
557
|
+
onStart?: (e?: THREE.Event) => void;
|
|
558
|
+
onEnd?: (e?: THREE.Event) => void;
|
|
644
559
|
}>, 'ref' | 'args'>;
|
|
645
560
|
declare const TrackballControls: ForwardRefComponent<TrackballControlsProps, TrackballControls$1>;
|
|
646
|
-
|
|
647
|
-
//#region src/core/Effects/CameraShake/CameraShake.d.ts
|
|
561
|
+
|
|
648
562
|
interface ShakeController {
|
|
649
|
-
|
|
650
|
-
|
|
563
|
+
getIntensity: () => number;
|
|
564
|
+
setIntensity: (val: number) => void;
|
|
651
565
|
}
|
|
652
566
|
interface CameraShakeProps {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
567
|
+
intensity?: number;
|
|
568
|
+
decay?: boolean;
|
|
569
|
+
decayRate?: number;
|
|
570
|
+
maxYaw?: number;
|
|
571
|
+
maxPitch?: number;
|
|
572
|
+
maxRoll?: number;
|
|
573
|
+
yawFrequency?: number;
|
|
574
|
+
pitchFrequency?: number;
|
|
575
|
+
rollFrequency?: number;
|
|
662
576
|
}
|
|
663
577
|
declare const CameraShake: ForwardRefComponent<CameraShakeProps, ShakeController | undefined>;
|
|
664
|
-
|
|
665
|
-
//#region src/core/Effects/Cloud/Cloud.d.ts
|
|
578
|
+
|
|
666
579
|
type CloudState = {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
580
|
+
uuid: string;
|
|
581
|
+
index: number;
|
|
582
|
+
segments: number;
|
|
583
|
+
dist: number;
|
|
584
|
+
matrix: Matrix4;
|
|
585
|
+
bounds: Vector3$1;
|
|
586
|
+
position: Vector3$1;
|
|
587
|
+
volume: number;
|
|
588
|
+
length: number;
|
|
589
|
+
ref: React.RefObject<Group>;
|
|
590
|
+
speed: number;
|
|
591
|
+
growth: number;
|
|
592
|
+
opacity: number;
|
|
593
|
+
fade: number;
|
|
594
|
+
density: number;
|
|
595
|
+
rotation: number;
|
|
596
|
+
rotationFactor: number;
|
|
597
|
+
color: Color;
|
|
685
598
|
};
|
|
686
599
|
type CloudsProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
600
|
+
texture?: string;
|
|
601
|
+
limit?: number;
|
|
602
|
+
range?: number;
|
|
603
|
+
material?: typeof Material;
|
|
604
|
+
materialFactory?: (baseMaterial: typeof Material) => Material;
|
|
605
|
+
frustumCulled?: boolean;
|
|
693
606
|
};
|
|
694
607
|
type CloudProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
volume?: number;
|
|
701
|
-
smallestVolume?: number;
|
|
702
|
-
distribute?: (cloud: CloudState, index: number) => {
|
|
703
|
-
point: Vector3$2;
|
|
608
|
+
seed?: number;
|
|
609
|
+
segments?: number;
|
|
610
|
+
bounds?: ReactThreeFiber.Vector3;
|
|
611
|
+
concentrate?: 'random' | 'inside' | 'outside';
|
|
612
|
+
scale?: ReactThreeFiber.Vector3;
|
|
704
613
|
volume?: number;
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
614
|
+
smallestVolume?: number;
|
|
615
|
+
distribute?: (cloud: CloudState, index: number) => {
|
|
616
|
+
point: Vector3$1;
|
|
617
|
+
volume?: number;
|
|
618
|
+
};
|
|
619
|
+
growth?: number;
|
|
620
|
+
speed?: number;
|
|
621
|
+
fade?: number;
|
|
622
|
+
opacity?: number;
|
|
623
|
+
color?: ReactThreeFiber.Color;
|
|
624
|
+
};
|
|
625
|
+
declare const Clouds: React.ForwardRefExoticComponent<Omit<CloudsProps, "ref"> & React.RefAttributes<Group<THREE.Object3DEventMap>>>;
|
|
626
|
+
declare const CloudInstance: React.ForwardRefExoticComponent<Omit<CloudProps, "ref"> & React.RefAttributes<Group<THREE.Object3DEventMap>>>;
|
|
627
|
+
declare const Cloud: React.ForwardRefExoticComponent<Omit<CloudProps, "ref"> & React.RefAttributes<Group<THREE.Object3DEventMap>>>;
|
|
628
|
+
|
|
717
629
|
type CatmullRomLineProps = Omit<LineProps, 'ref' | 'segments'> & {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
630
|
+
closed?: boolean;
|
|
631
|
+
curveType?: 'centripetal' | 'chordal' | 'catmullrom';
|
|
632
|
+
tension?: number;
|
|
633
|
+
segments?: number;
|
|
634
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
723
635
|
};
|
|
724
636
|
declare const CatmullRomLine: ForwardRefComponent<CatmullRomLineProps, Line2>;
|
|
725
|
-
|
|
726
|
-
//#region src/core/Geometry/CubicBezierLine/CubicBezierLine.d.ts
|
|
637
|
+
|
|
727
638
|
type CubicBezierLineProps = Omit<LineProps, 'points' | 'ref'> & {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
639
|
+
start: Vector3$1 | [number, number, number];
|
|
640
|
+
end: Vector3$1 | [number, number, number];
|
|
641
|
+
midA: Vector3$1 | [number, number, number];
|
|
642
|
+
midB: Vector3$1 | [number, number, number];
|
|
643
|
+
segments?: number;
|
|
644
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
734
645
|
};
|
|
735
646
|
declare const CubicBezierLine: ForwardRefComponent<CubicBezierLineProps, Line2>;
|
|
736
|
-
|
|
737
|
-
//#region src/core/Geometry/CurveModifier/CurveModifier.d.ts
|
|
647
|
+
|
|
738
648
|
interface CurveModifierProps {
|
|
739
|
-
|
|
740
|
-
|
|
649
|
+
children: React.ReactElement<ThreeElements['mesh']>;
|
|
650
|
+
curve?: THREE.Curve<THREE.Vector3>;
|
|
741
651
|
}
|
|
742
652
|
type CurveModifierRef = Flow;
|
|
743
653
|
declare const CurveModifier: ForwardRefComponent<CurveModifierProps, CurveModifierRef>;
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
//#endregion
|
|
759
|
-
//#region src/core/Geometry/Detailed/Detailed.d.ts
|
|
654
|
+
|
|
655
|
+
type DecalProps = Omit<_react_three_fiber.ThreeElements['mesh'], 'ref' | 'children'> & {
|
|
656
|
+
debug?: boolean;
|
|
657
|
+
mesh?: React.RefObject<THREE.Mesh>;
|
|
658
|
+
position?: _react_three_fiber.Vector3;
|
|
659
|
+
rotation?: _react_three_fiber.Euler | number;
|
|
660
|
+
scale?: _react_three_fiber.Vector3;
|
|
661
|
+
map?: THREE.Texture;
|
|
662
|
+
children?: React.ReactNode;
|
|
663
|
+
polygonOffsetFactor?: number;
|
|
664
|
+
depthTest?: boolean;
|
|
665
|
+
};
|
|
666
|
+
declare const Decal: ForwardRefComponent<DecalProps, THREE.Mesh>;
|
|
667
|
+
|
|
760
668
|
type DetailedProps = Omit<ThreeElements['lOD'], 'ref'> & {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
669
|
+
children: React.ReactElement<Object3D>[];
|
|
670
|
+
hysteresis?: number;
|
|
671
|
+
distances: number[];
|
|
764
672
|
};
|
|
765
673
|
declare const Detailed: ForwardRefComponent<DetailedProps, LOD>;
|
|
766
|
-
|
|
767
|
-
//#region src/core/Geometry/Edges/Edges.d.ts
|
|
674
|
+
|
|
768
675
|
interface EdgesProps {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
676
|
+
threshold?: number;
|
|
677
|
+
geometry?: THREE.BufferGeometry;
|
|
678
|
+
lineWidth?: number;
|
|
679
|
+
color?: THREE.ColorRepresentation;
|
|
680
|
+
scale?: number;
|
|
681
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
775
682
|
}
|
|
776
683
|
interface EdgesRef {
|
|
777
|
-
|
|
684
|
+
computeLineDistances: () => void;
|
|
778
685
|
}
|
|
779
686
|
declare const Edges: ForwardRefComponent<EdgesProps, EdgesRef>;
|
|
780
|
-
|
|
781
|
-
//#region src/core/Geometry/Points/Points.d.ts
|
|
687
|
+
|
|
782
688
|
declare module '@react-three/fiber' {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
689
|
+
interface ThreeElements {
|
|
690
|
+
positionPoint: ThreeElement<typeof PositionPoint>;
|
|
691
|
+
}
|
|
786
692
|
}
|
|
787
693
|
type PointsInstancesProps = Omit<ThreeElements['points'], 'ref'> & {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
};
|
|
791
|
-
declare class PositionPoint extends THREE
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
694
|
+
range?: number;
|
|
695
|
+
limit?: number;
|
|
696
|
+
};
|
|
697
|
+
declare class PositionPoint extends THREE.Group {
|
|
698
|
+
size: number;
|
|
699
|
+
color: THREE.Color;
|
|
700
|
+
instance: React.RefObject<THREE.Points | undefined>;
|
|
701
|
+
instanceKey: React.RefObject<PositionPoint | undefined>;
|
|
702
|
+
constructor();
|
|
703
|
+
get geometry(): THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap> | undefined;
|
|
704
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
799
705
|
}
|
|
800
706
|
declare const Point: ForwardRefComponent<ThreeElements['positionPoint'], PositionPoint>;
|
|
801
707
|
type PointsBuffersProps = ThreeElements['points'] & {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
};
|
|
807
|
-
declare const PointsBuffer: ForwardRefComponent<PointsBuffersProps, THREE
|
|
808
|
-
declare const Points: ForwardRefComponent<PointsBuffersProps | PointsInstancesProps, THREE
|
|
809
|
-
|
|
810
|
-
//#region src/core/Geometry/QuadraticBezierLine/QuadraticBezierLine.d.ts
|
|
708
|
+
positions: Float32Array;
|
|
709
|
+
colors?: Float32Array;
|
|
710
|
+
sizes?: Float32Array;
|
|
711
|
+
stride?: 2 | 3;
|
|
712
|
+
};
|
|
713
|
+
declare const PointsBuffer: ForwardRefComponent<PointsBuffersProps, THREE.Points>;
|
|
714
|
+
declare const Points: ForwardRefComponent<PointsBuffersProps | PointsInstancesProps, THREE.Points>;
|
|
715
|
+
|
|
811
716
|
type QuadraticBezierLineRef = Line2 & {
|
|
812
|
-
|
|
717
|
+
setPoints(start: Vector3$1 | [number, number, number], end: Vector3$1 | [number, number, number], mid: Vector3$1 | [number, number, number]): void;
|
|
813
718
|
};
|
|
814
719
|
type QuadraticBezierLineProps = Omit<LineProps, 'points' | 'ref'> & {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
720
|
+
start: Vector3$1 | [number, number, number];
|
|
721
|
+
end: Vector3$1 | [number, number, number];
|
|
722
|
+
mid?: Vector3$1 | [number, number, number];
|
|
723
|
+
segments?: number;
|
|
724
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
820
725
|
};
|
|
821
726
|
declare const QuadraticBezierLine: ForwardRefComponent<QuadraticBezierLineProps, QuadraticBezierLineRef>;
|
|
822
|
-
|
|
823
|
-
//#region src/core/Geometry/RoundedBox/RoundedBox.d.ts
|
|
727
|
+
|
|
824
728
|
type RoundedBoxProps = {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
729
|
+
args?: NamedArrayTuple<(width?: number, height?: number, depth?: number) => void>;
|
|
730
|
+
radius?: number;
|
|
731
|
+
smoothness?: number;
|
|
732
|
+
bevelSegments?: number;
|
|
733
|
+
steps?: number;
|
|
734
|
+
creaseAngle?: number;
|
|
831
735
|
} & Omit<ThreeElements['mesh'], 'ref' | 'args'>;
|
|
832
736
|
type RoundedBoxGeometryProps = Omit<RoundedBoxProps, 'children'> & Omit<ThreeElements['extrudeGeometry'], 'args' | 'ref'>;
|
|
833
|
-
declare const RoundedBox: ForwardRefComponent<RoundedBoxProps, Mesh
|
|
737
|
+
declare const RoundedBox: ForwardRefComponent<RoundedBoxProps, Mesh>;
|
|
834
738
|
declare const RoundedBoxGeometry: ForwardRefComponent<RoundedBoxGeometryProps, ExtrudeGeometry>;
|
|
835
|
-
|
|
836
|
-
//#region src/core/Geometry/ScreenQuad/ScreenQuad.d.ts
|
|
739
|
+
|
|
837
740
|
type ScreenQuadProps = Omit<ThreeElements['mesh'], 'ref' | 'args'>;
|
|
838
|
-
declare const ScreenQuad: ForwardRefComponent<ScreenQuadProps, THREE
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
type Args<T> = T extends (new (...args: any) => any) ? ConstructorParameters<T> : T;
|
|
741
|
+
declare const ScreenQuad: ForwardRefComponent<ScreenQuadProps, THREE.Mesh>;
|
|
742
|
+
|
|
743
|
+
type Args<T> = T extends new (...args: any) => any ? ConstructorParameters<T> : T;
|
|
842
744
|
type ShapeProps<T> = Omit<ThreeElements['mesh'], 'ref' | 'args'> & {
|
|
843
|
-
|
|
844
|
-
};
|
|
845
|
-
declare const Box: ForwardRefComponent<ShapeProps<typeof THREE
|
|
846
|
-
declare const Circle: ForwardRefComponent<ShapeProps<typeof THREE
|
|
847
|
-
declare const Cone: ForwardRefComponent<ShapeProps<typeof THREE
|
|
848
|
-
declare const Cylinder: ForwardRefComponent<ShapeProps<typeof THREE
|
|
849
|
-
declare const Sphere: ForwardRefComponent<ShapeProps<typeof THREE
|
|
850
|
-
declare const Plane: ForwardRefComponent<ShapeProps<typeof THREE
|
|
851
|
-
declare const Tube: ForwardRefComponent<ShapeProps<typeof THREE
|
|
852
|
-
declare const Torus: ForwardRefComponent<ShapeProps<typeof THREE
|
|
853
|
-
declare const TorusKnot: ForwardRefComponent<ShapeProps<typeof THREE
|
|
854
|
-
declare const Tetrahedron: ForwardRefComponent<ShapeProps<typeof THREE
|
|
855
|
-
declare const Ring: ForwardRefComponent<ShapeProps<typeof THREE
|
|
856
|
-
declare const Polyhedron: ForwardRefComponent<ShapeProps<typeof THREE
|
|
857
|
-
declare const Icosahedron: ForwardRefComponent<ShapeProps<typeof THREE
|
|
858
|
-
declare const Octahedron: ForwardRefComponent<ShapeProps<typeof THREE
|
|
859
|
-
declare const Dodecahedron: ForwardRefComponent<ShapeProps<typeof THREE
|
|
860
|
-
declare const Extrude: ForwardRefComponent<ShapeProps<typeof THREE
|
|
861
|
-
declare const Lathe: ForwardRefComponent<ShapeProps<typeof THREE
|
|
862
|
-
declare const Capsule: ForwardRefComponent<ShapeProps<typeof THREE
|
|
863
|
-
declare const Shape: ForwardRefComponent<ShapeProps<typeof THREE
|
|
864
|
-
|
|
865
|
-
//#region src/core/Loaders/useFont/useFont.d.ts
|
|
745
|
+
args?: Args<T>;
|
|
746
|
+
};
|
|
747
|
+
declare const Box: ForwardRefComponent<ShapeProps<typeof THREE.BoxGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
748
|
+
declare const Circle: ForwardRefComponent<ShapeProps<typeof THREE.CircleGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
749
|
+
declare const Cone: ForwardRefComponent<ShapeProps<typeof THREE.ConeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
750
|
+
declare const Cylinder: ForwardRefComponent<ShapeProps<typeof THREE.CylinderGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
751
|
+
declare const Sphere: ForwardRefComponent<ShapeProps<typeof THREE.SphereGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
752
|
+
declare const Plane: ForwardRefComponent<ShapeProps<typeof THREE.PlaneGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
753
|
+
declare const Tube: ForwardRefComponent<ShapeProps<typeof THREE.TubeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
754
|
+
declare const Torus: ForwardRefComponent<ShapeProps<typeof THREE.TorusGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
755
|
+
declare const TorusKnot: ForwardRefComponent<ShapeProps<typeof THREE.TorusKnotGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
756
|
+
declare const Tetrahedron: ForwardRefComponent<ShapeProps<typeof THREE.TetrahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
757
|
+
declare const Ring: ForwardRefComponent<ShapeProps<typeof THREE.RingGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
758
|
+
declare const Polyhedron: ForwardRefComponent<ShapeProps<typeof THREE.PolyhedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
759
|
+
declare const Icosahedron: ForwardRefComponent<ShapeProps<typeof THREE.IcosahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
760
|
+
declare const Octahedron: ForwardRefComponent<ShapeProps<typeof THREE.OctahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
761
|
+
declare const Dodecahedron: ForwardRefComponent<ShapeProps<typeof THREE.DodecahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
762
|
+
declare const Extrude: ForwardRefComponent<ShapeProps<typeof THREE.ExtrudeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
763
|
+
declare const Lathe: ForwardRefComponent<ShapeProps<typeof THREE.LatheGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
764
|
+
declare const Capsule: ForwardRefComponent<ShapeProps<typeof THREE.CapsuleGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
765
|
+
declare const Shape: ForwardRefComponent<ShapeProps<typeof THREE.ShapeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
766
|
+
|
|
866
767
|
type Glyph = {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
768
|
+
_cachedOutline: string[];
|
|
769
|
+
ha: number;
|
|
770
|
+
o: string;
|
|
870
771
|
};
|
|
871
772
|
type FontData = {
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
773
|
+
boundingBox: {
|
|
774
|
+
yMax: number;
|
|
775
|
+
yMin: number;
|
|
776
|
+
};
|
|
777
|
+
familyName: string;
|
|
778
|
+
glyphs: {
|
|
779
|
+
[k: string]: Glyph;
|
|
780
|
+
};
|
|
781
|
+
resolution: number;
|
|
782
|
+
underlineThickness: number;
|
|
783
|
+
ascender?: number;
|
|
784
|
+
descender?: number;
|
|
785
|
+
underlinePosition?: number;
|
|
786
|
+
original_font_information?: Record<string, unknown>;
|
|
886
787
|
};
|
|
887
788
|
type FontInput = string | FontData;
|
|
888
|
-
declare function useFont(font: FontInput):
|
|
789
|
+
declare function useFont(font: FontInput): three_examples_jsm_loaders_FontLoader_js.Font;
|
|
889
790
|
declare namespace useFont {
|
|
890
|
-
|
|
891
|
-
|
|
791
|
+
var preload: (font: FontInput) => undefined;
|
|
792
|
+
var clear: (font: FontInput) => void;
|
|
892
793
|
}
|
|
893
|
-
|
|
894
|
-
//#region src/core/Geometry/Text3D/Text3D.d.ts
|
|
794
|
+
|
|
895
795
|
declare module '@react-three/fiber' {
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
796
|
+
interface ThreeElements {
|
|
797
|
+
renamedTextGeometry: ThreeElement<typeof TextGeometry>;
|
|
798
|
+
}
|
|
899
799
|
}
|
|
900
800
|
type Text3DProps = Omit<ThreeElements['mesh'], 'ref'> & {
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
801
|
+
font: FontData | string;
|
|
802
|
+
bevelSegments?: number;
|
|
803
|
+
smooth?: number;
|
|
904
804
|
} & Omit<TextGeometryParameters, 'font'>;
|
|
905
|
-
declare const Text3D: ForwardRefComponent<React
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
}>, THREE
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
fill?: THREE$1.ColorRepresentation;
|
|
805
|
+
declare const Text3D: ForwardRefComponent<React.PropsWithChildren<Text3DProps & {
|
|
806
|
+
letterSpacing?: number;
|
|
807
|
+
lineHeight?: number;
|
|
808
|
+
}>, THREE.Mesh>;
|
|
809
|
+
|
|
810
|
+
interface WireframeMaterialProps extends THREE.ShaderMaterialParameters {
|
|
811
|
+
fillOpacity?: number;
|
|
812
|
+
fillMix?: number;
|
|
813
|
+
strokeOpacity?: number;
|
|
814
|
+
thickness?: number;
|
|
815
|
+
colorBackfaces?: boolean;
|
|
816
|
+
dashInvert?: boolean;
|
|
817
|
+
dash?: boolean;
|
|
818
|
+
dashRepeats?: number;
|
|
819
|
+
dashLength?: number;
|
|
820
|
+
squeeze?: boolean;
|
|
821
|
+
squeezeMin?: number;
|
|
822
|
+
squeezeMax?: number;
|
|
823
|
+
stroke?: THREE.ColorRepresentation;
|
|
824
|
+
backfaceStroke?: THREE.ColorRepresentation;
|
|
825
|
+
fill?: THREE.ColorRepresentation;
|
|
927
826
|
}
|
|
928
|
-
declare const WireframeMaterial:
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
827
|
+
declare const WireframeMaterial: _react_three_fiber.ConstructorRepresentation<THREE.ShaderMaterial & {
|
|
828
|
+
strokeOpacity: number;
|
|
829
|
+
fillOpacity: number;
|
|
830
|
+
fillMix: number;
|
|
831
|
+
thickness: number;
|
|
832
|
+
colorBackfaces: boolean;
|
|
833
|
+
dashInvert: boolean;
|
|
834
|
+
dash: boolean;
|
|
835
|
+
dashRepeats: number;
|
|
836
|
+
dashLength: number;
|
|
837
|
+
squeeze: boolean;
|
|
838
|
+
squeezeMin: number;
|
|
839
|
+
squeezeMax: number;
|
|
840
|
+
stroke: THREE.Color;
|
|
841
|
+
backfaceStroke: THREE.Color;
|
|
842
|
+
fill: THREE.Color;
|
|
944
843
|
}> & {
|
|
945
|
-
|
|
844
|
+
key: string;
|
|
946
845
|
};
|
|
947
|
-
|
|
948
|
-
//#region src/core/Geometry/Wireframe/Wireframe.d.ts
|
|
846
|
+
|
|
949
847
|
declare module '@react-three/fiber' {
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
848
|
+
interface ThreeElements {
|
|
849
|
+
meshWireframeMaterial: ThreeElement<typeof WireframeMaterial>;
|
|
850
|
+
}
|
|
953
851
|
}
|
|
954
852
|
interface WireframeProps {
|
|
955
|
-
|
|
956
|
-
|
|
853
|
+
geometry?: THREE.BufferGeometry | React.RefObject<THREE.BufferGeometry>;
|
|
854
|
+
simplify?: boolean;
|
|
957
855
|
}
|
|
958
|
-
declare function Wireframe({
|
|
959
|
-
|
|
960
|
-
...props
|
|
961
|
-
}: WireframeProps & WireframeMaterialProps): React$1.JSX.Element;
|
|
962
|
-
//#endregion
|
|
963
|
-
//#region src/core/Gizmos/gizmo/GizmoHelper.d.ts
|
|
856
|
+
declare function Wireframe({ geometry: customGeometry, ...props }: WireframeProps & WireframeMaterialProps): React.JSX.Element;
|
|
857
|
+
|
|
964
858
|
type GizmoHelperContext = {
|
|
965
|
-
|
|
859
|
+
tweenCamera: (direction: Vector3$1) => void;
|
|
966
860
|
};
|
|
967
861
|
declare const useGizmoContext: () => GizmoHelperContext;
|
|
968
862
|
type GizmoHelperProps = ThreeElements['group'] & {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
};
|
|
976
|
-
declare const GizmoHelper: ({
|
|
977
|
-
|
|
978
|
-
margin,
|
|
979
|
-
renderPriority,
|
|
980
|
-
onUpdate,
|
|
981
|
-
onTarget,
|
|
982
|
-
children
|
|
983
|
-
}: GizmoHelperProps) => any;
|
|
984
|
-
//#endregion
|
|
985
|
-
//#region src/core/Gizmos/gizmo/GizmoViewcube.d.ts
|
|
863
|
+
alignment?: 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | 'bottom-center' | 'center-right' | 'center-left' | 'center-center' | 'top-center';
|
|
864
|
+
margin?: [number, number];
|
|
865
|
+
renderPriority?: number;
|
|
866
|
+
autoClear?: boolean;
|
|
867
|
+
onUpdate?: () => void;
|
|
868
|
+
onTarget?: () => Vector3$1;
|
|
869
|
+
};
|
|
870
|
+
declare const GizmoHelper: ({ alignment, margin, renderPriority, onUpdate, onTarget, children, }: GizmoHelperProps) => any;
|
|
871
|
+
|
|
986
872
|
type GenericProps = {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
};
|
|
996
|
-
declare const GizmoViewcube: (props: GenericProps) => React
|
|
997
|
-
|
|
998
|
-
//#region src/core/Gizmos/gizmo/GizmoViewport.d.ts
|
|
873
|
+
font?: string;
|
|
874
|
+
opacity?: number;
|
|
875
|
+
color?: string;
|
|
876
|
+
hoverColor?: string;
|
|
877
|
+
textColor?: string;
|
|
878
|
+
strokeColor?: string;
|
|
879
|
+
onClick?: (e: ThreeEvent<MouseEvent>) => null;
|
|
880
|
+
faces?: string[];
|
|
881
|
+
};
|
|
882
|
+
declare const GizmoViewcube: (props: GenericProps) => React.JSX.Element;
|
|
883
|
+
|
|
999
884
|
type GizmoViewportProps = ThreeElements['group'] & {
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
};
|
|
1011
|
-
declare const GizmoViewport: ({
|
|
1012
|
-
|
|
1013
|
-
hideAxisHeads,
|
|
1014
|
-
disabled,
|
|
1015
|
-
font,
|
|
1016
|
-
axisColors,
|
|
1017
|
-
axisHeadScale,
|
|
1018
|
-
axisScale,
|
|
1019
|
-
labels,
|
|
1020
|
-
labelColor,
|
|
1021
|
-
onClick,
|
|
1022
|
-
...props
|
|
1023
|
-
}: GizmoViewportProps) => React$1.JSX.Element;
|
|
1024
|
-
//#endregion
|
|
1025
|
-
//#region src/core/Gizmos/PivotControls/context.d.ts
|
|
885
|
+
axisColors?: [string, string, string];
|
|
886
|
+
axisScale?: [number, number, number];
|
|
887
|
+
labels?: [string, string, string];
|
|
888
|
+
axisHeadScale?: number;
|
|
889
|
+
labelColor?: string;
|
|
890
|
+
hideNegativeAxes?: boolean;
|
|
891
|
+
hideAxisHeads?: boolean;
|
|
892
|
+
disabled?: boolean;
|
|
893
|
+
font?: string;
|
|
894
|
+
onClick?: (e: ThreeEvent<MouseEvent>) => null;
|
|
895
|
+
};
|
|
896
|
+
declare const GizmoViewport: ({ hideNegativeAxes, hideAxisHeads, disabled, font, axisColors, axisHeadScale, axisScale, labels, labelColor, onClick, ...props }: GizmoViewportProps) => React.JSX.Element;
|
|
897
|
+
|
|
1026
898
|
type OnDragStartProps = {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
899
|
+
component: 'Arrow' | 'Slider' | 'Rotator' | 'Sphere';
|
|
900
|
+
axis: 0 | 1 | 2;
|
|
901
|
+
origin: THREE.Vector3;
|
|
902
|
+
directions: THREE.Vector3[];
|
|
1031
903
|
};
|
|
1032
|
-
|
|
1033
|
-
//#region src/core/Gizmos/PivotControls/index.d.ts
|
|
904
|
+
|
|
1034
905
|
type PivotControlsProps = {
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
};
|
|
1069
|
-
declare const PivotControls: ForwardRefComponent<PivotControlsProps, THREE
|
|
1070
|
-
|
|
1071
|
-
//#region src/core/Gizmos/TransformControls/TransformControls.d.ts
|
|
906
|
+
enabled?: boolean;
|
|
907
|
+
scale?: number;
|
|
908
|
+
lineWidth?: number;
|
|
909
|
+
fixed?: boolean;
|
|
910
|
+
offset?: [number, number, number];
|
|
911
|
+
rotation?: [number, number, number];
|
|
912
|
+
matrix?: THREE.Matrix4;
|
|
913
|
+
anchor?: [number, number, number];
|
|
914
|
+
autoTransform?: boolean;
|
|
915
|
+
activeAxes?: [boolean, boolean, boolean];
|
|
916
|
+
disableAxes?: boolean;
|
|
917
|
+
disableSliders?: boolean;
|
|
918
|
+
disableRotations?: boolean;
|
|
919
|
+
disableScaling?: boolean;
|
|
920
|
+
translationLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
|
|
921
|
+
rotationLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
|
|
922
|
+
scaleLimits?: [[number, number] | undefined, [number, number] | undefined, [number, number] | undefined];
|
|
923
|
+
axisColors?: [string | number, string | number, string | number];
|
|
924
|
+
hoveredColor?: string | number;
|
|
925
|
+
annotations?: boolean;
|
|
926
|
+
annotationsClass?: string;
|
|
927
|
+
onDragStart?: (props: OnDragStartProps) => void;
|
|
928
|
+
onDrag?: (l: THREE.Matrix4, deltaL: THREE.Matrix4, w: THREE.Matrix4, deltaW: THREE.Matrix4) => void;
|
|
929
|
+
onDragEnd?: () => void;
|
|
930
|
+
depthTest?: boolean;
|
|
931
|
+
renderOrder?: number;
|
|
932
|
+
opacity?: number;
|
|
933
|
+
visible?: boolean;
|
|
934
|
+
userData?: {
|
|
935
|
+
[key: string]: any;
|
|
936
|
+
};
|
|
937
|
+
children?: React.ReactNode;
|
|
938
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
939
|
+
};
|
|
940
|
+
declare const PivotControls: ForwardRefComponent<PivotControlsProps, THREE.Group>;
|
|
941
|
+
|
|
1072
942
|
type TransformControlsProps = Omit<ThreeElement<typeof TransformControls$1>, 'ref' | 'args'> & Omit<ThreeElements['group'], 'ref'> & {
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
943
|
+
object?: THREE.Object3D | React.RefObject<THREE.Object3D>;
|
|
944
|
+
enabled?: boolean;
|
|
945
|
+
axis?: string | null;
|
|
946
|
+
domElement?: HTMLElement;
|
|
947
|
+
mode?: 'translate' | 'rotate' | 'scale';
|
|
948
|
+
translationSnap?: number | null;
|
|
949
|
+
rotationSnap?: number | null;
|
|
950
|
+
scaleSnap?: number | null;
|
|
951
|
+
space?: 'world' | 'local';
|
|
952
|
+
size?: number;
|
|
953
|
+
showX?: boolean;
|
|
954
|
+
showY?: boolean;
|
|
955
|
+
showZ?: boolean;
|
|
956
|
+
children?: React.ReactElement<THREE.Object3D>;
|
|
957
|
+
camera?: THREE.Camera;
|
|
958
|
+
onChange?: (e?: THREE.Event) => void;
|
|
959
|
+
onMouseDown?: (e?: THREE.Event) => void;
|
|
960
|
+
onMouseUp?: (e?: THREE.Event) => void;
|
|
961
|
+
onObjectChange?: (e?: THREE.Event) => void;
|
|
962
|
+
makeDefault?: boolean;
|
|
1093
963
|
};
|
|
1094
964
|
declare const TransformControls: ForwardRefComponent<TransformControlsProps, TransformControls$1>;
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
dispose: () => void;
|
|
965
|
+
|
|
966
|
+
type HelperType = Object3D & {
|
|
967
|
+
update: () => void;
|
|
968
|
+
dispose: () => void;
|
|
1100
969
|
};
|
|
1101
970
|
type HelperConstructor = new (...args: any[]) => any;
|
|
1102
971
|
type HelperArgs<T> = T extends [infer _, ...infer R] ? R : never;
|
|
1103
|
-
declare function useHelper<T extends HelperConstructor>(object3D: React
|
|
972
|
+
declare function useHelper<T extends HelperConstructor>(object3D: React.RefObject<Object3D> | Falsey, helperConstructor: T, ...args: HelperArgs<ConstructorParameters<T>>): React.RefObject<HelperType | null>;
|
|
1104
973
|
type HelperProps<T extends HelperConstructor> = {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
};
|
|
1108
|
-
declare const Helper: <T extends HelperConstructor>({
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
//#endregion
|
|
1113
|
-
//#region src/core/Helpers/PointMaterial/PointMaterial.d.ts
|
|
1114
|
-
declare class PointMaterialImpl extends THREE$1.PointsMaterial {
|
|
1115
|
-
constructor(props?: THREE$1.PointsMaterialParameters | null);
|
|
974
|
+
type: T;
|
|
975
|
+
args?: HelperArgs<ConstructorParameters<T>>;
|
|
976
|
+
};
|
|
977
|
+
declare const Helper: <T extends HelperConstructor>({ type: helperConstructor, args, }: HelperProps<T>) => React.JSX.Element;
|
|
978
|
+
|
|
979
|
+
declare class PointMaterialImpl extends THREE.PointsMaterial {
|
|
980
|
+
constructor(props?: THREE.PointsMaterialParameters | null);
|
|
1116
981
|
}
|
|
1117
982
|
type PointMaterialProps = Omit<ThreeElements['pointsMaterial'], 'ref'>;
|
|
1118
983
|
declare const PointMaterial: ForwardRefComponent<PointMaterialProps, PointMaterialImpl>;
|
|
1119
|
-
|
|
1120
|
-
//#region src/core/Helpers/PositionalAudio/PositionalAudio.d.ts
|
|
984
|
+
|
|
1121
985
|
type PositionalAudioProps = Omit<ThreeElements['positionalAudio'], 'ref' | 'args'> & {
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
986
|
+
url: string;
|
|
987
|
+
distance?: number;
|
|
988
|
+
loop?: boolean;
|
|
1125
989
|
};
|
|
1126
990
|
declare const PositionalAudio: ForwardRefComponent<PositionalAudioProps, PositionalAudio$1>;
|
|
1127
|
-
|
|
1128
|
-
//#region src/core/Helpers/Instances/Instances.d.ts
|
|
991
|
+
|
|
1129
992
|
declare module '@react-three/fiber' {
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
993
|
+
interface ThreeElements {
|
|
994
|
+
positionMesh: ThreeElement<typeof PositionMesh>;
|
|
995
|
+
}
|
|
1133
996
|
}
|
|
1134
997
|
type Api$1 = {
|
|
1135
|
-
|
|
1136
|
-
|
|
998
|
+
getParent: () => React.RefObject<InstancedMesh>;
|
|
999
|
+
subscribe: <T>(ref: React.RefObject<T>) => void;
|
|
1137
1000
|
};
|
|
1138
1001
|
type InstancesProps = Omit<ThreeElements['instancedMesh'], 'ref' | 'args'> & {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1002
|
+
context?: React.Context<Api$1>;
|
|
1003
|
+
range?: number;
|
|
1004
|
+
limit?: number;
|
|
1005
|
+
frames?: number;
|
|
1143
1006
|
};
|
|
1144
1007
|
type InstanceProps = Omit<ThreeElements['positionMesh'], 'ref'> & {
|
|
1145
|
-
|
|
1008
|
+
context?: React.Context<Api$1>;
|
|
1146
1009
|
};
|
|
1147
1010
|
type InstancedAttributeProps = Omit<ThreeElements['instancedBufferAttribute'], 'ref' | 'args'> & {
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
};
|
|
1153
|
-
type InstancedMesh
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
};
|
|
1157
|
-
declare class PositionMesh extends THREE
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1011
|
+
name: string;
|
|
1012
|
+
defaultValue: any;
|
|
1013
|
+
normalized?: boolean;
|
|
1014
|
+
usage?: number;
|
|
1015
|
+
};
|
|
1016
|
+
type InstancedMesh = Omit<THREE.InstancedMesh, 'instanceMatrix' | 'instanceColor'> & {
|
|
1017
|
+
instanceMatrix: THREE.InstancedBufferAttribute;
|
|
1018
|
+
instanceColor: THREE.InstancedBufferAttribute;
|
|
1019
|
+
};
|
|
1020
|
+
declare class PositionMesh extends THREE.Group {
|
|
1021
|
+
color: THREE.Color;
|
|
1022
|
+
instance: React.RefObject<THREE.InstancedMesh | undefined>;
|
|
1023
|
+
instanceKey: React.RefObject<PositionMesh | undefined>;
|
|
1024
|
+
constructor();
|
|
1025
|
+
get geometry(): THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap> | undefined;
|
|
1026
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1164
1027
|
}
|
|
1165
|
-
declare const Instance: React
|
|
1166
|
-
|
|
1167
|
-
} & React
|
|
1168
|
-
declare const Instances: ForwardRefComponent<InstancesProps, THREE
|
|
1028
|
+
declare const Instance: React.ForwardRefExoticComponent<Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<PositionMesh, _react_three_fiber.MathProps<PositionMesh> & _react_three_fiber.ReactProps<PositionMesh> & Partial<_react_three_fiber.EventHandlers>>>, Omit<_react_three_fiber.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
|
|
1029
|
+
context?: React.Context<Api$1>;
|
|
1030
|
+
} & React.RefAttributes<unknown>>;
|
|
1031
|
+
declare const Instances: ForwardRefComponent<InstancesProps, THREE.InstancedMesh>;
|
|
1169
1032
|
interface MergedProps extends Omit<InstancesProps, 'children'> {
|
|
1170
|
-
|
|
1171
|
-
|
|
1033
|
+
meshes: THREE.Mesh[] | Record<string, THREE.Object3D>;
|
|
1034
|
+
children: (...instances: [React.FC<InstanceProps> & Record<string, React.FC<InstanceProps>>, ...React.FC<InstanceProps>[]]) => React.ReactNode;
|
|
1172
1035
|
}
|
|
1173
|
-
declare const Merged: ForwardRefComponent<MergedProps, THREE
|
|
1174
|
-
declare function createInstances<T = InstanceProps>(): readonly [React
|
|
1175
|
-
|
|
1176
|
-
}> & React
|
|
1177
|
-
declare const InstancedAttribute: React
|
|
1178
|
-
|
|
1179
|
-
//#region src/core/Loaders/useSpriteLoader/useSpriteLoader.d.ts
|
|
1036
|
+
declare const Merged: ForwardRefComponent<MergedProps, THREE.Group>;
|
|
1037
|
+
declare function createInstances<T = InstanceProps>(): readonly [React.ForwardRefExoticComponent<Omit<InstancesProps, "ref"> & React.RefAttributes<THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.InstancedMeshEventMap>>>, React.ForwardRefExoticComponent<React.PropsWithoutRef<T & Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<PositionMesh, _react_three_fiber.MathProps<PositionMesh> & _react_three_fiber.ReactProps<PositionMesh> & Partial<_react_three_fiber.EventHandlers>>>, Omit<_react_three_fiber.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
|
|
1038
|
+
context?: React.Context<Api$1>;
|
|
1039
|
+
}> & React.RefAttributes<PositionMesh & T>>];
|
|
1040
|
+
declare const InstancedAttribute: React.ForwardRefExoticComponent<Omit<InstancedAttributeProps, "ref"> & React.RefAttributes<THREE.InstancedBufferAttribute>>;
|
|
1041
|
+
|
|
1180
1042
|
type Size = {
|
|
1181
|
-
w: number;
|
|
1182
|
-
h: number;
|
|
1183
|
-
};
|
|
1184
|
-
type FrameData = {
|
|
1185
|
-
frame: {
|
|
1186
|
-
x: number;
|
|
1187
|
-
y: number;
|
|
1188
1043
|
w: number;
|
|
1189
1044
|
h: number;
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1045
|
+
};
|
|
1046
|
+
type FrameData = {
|
|
1047
|
+
frame: {
|
|
1048
|
+
x: number;
|
|
1049
|
+
y: number;
|
|
1050
|
+
w: number;
|
|
1051
|
+
h: number;
|
|
1052
|
+
};
|
|
1053
|
+
scaleRatio?: number;
|
|
1054
|
+
rotated: boolean;
|
|
1055
|
+
trimmed: boolean;
|
|
1056
|
+
spriteSourceSize: {
|
|
1057
|
+
x: number;
|
|
1058
|
+
y: number;
|
|
1059
|
+
w: number;
|
|
1060
|
+
h: number;
|
|
1061
|
+
};
|
|
1062
|
+
sourceSize: Size;
|
|
1201
1063
|
};
|
|
1202
1064
|
type MetaData = {
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1065
|
+
version: string;
|
|
1066
|
+
size: {
|
|
1067
|
+
w: number;
|
|
1068
|
+
h: number;
|
|
1069
|
+
};
|
|
1070
|
+
rows: number;
|
|
1071
|
+
columns: number;
|
|
1072
|
+
frameWidth: number;
|
|
1073
|
+
frameHeight: number;
|
|
1074
|
+
scale: string;
|
|
1213
1075
|
};
|
|
1214
1076
|
type Frames = Record<string, FrameData[]> | FrameData[];
|
|
1215
1077
|
type SpriteData = {
|
|
1216
|
-
|
|
1217
|
-
|
|
1078
|
+
frames: Frames;
|
|
1079
|
+
meta: MetaData;
|
|
1218
1080
|
};
|
|
1219
1081
|
declare const getFirstFrame: (frames: SpriteData["frames"], frameName?: string) => FrameData;
|
|
1220
1082
|
declare const checkIfFrameIsEmpty: (frameData: Uint8ClampedArray) => boolean;
|
|
1221
|
-
declare function useSpriteLoader<Url extends string>(input: Url | null, json?: string | null, animationNames?: string[] | null, numberOfFrames?: number | null, onLoad?: (texture: Texture$
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1083
|
+
declare function useSpriteLoader<Url extends string>(input: Url | null, json?: string | null, animationNames?: string[] | null, numberOfFrames?: number | null, onLoad?: (texture: Texture$1, textureData?: SpriteData | null) => void, canvasRenderingContext2DSettings?: CanvasRenderingContext2DSettings): {
|
|
1084
|
+
spriteObj: {
|
|
1085
|
+
spriteTexture: THREE.Texture;
|
|
1086
|
+
spriteData: SpriteData | null;
|
|
1087
|
+
aspect: Vector3;
|
|
1088
|
+
} | null;
|
|
1089
|
+
loadJsonAndTexture: (textureUrl: string, jsonUrl?: string) => void;
|
|
1228
1090
|
};
|
|
1229
1091
|
declare namespace useSpriteLoader {
|
|
1230
|
-
|
|
1231
|
-
|
|
1092
|
+
var preload: (url: string) => void;
|
|
1093
|
+
var clear: (input: string) => void;
|
|
1232
1094
|
}
|
|
1233
|
-
|
|
1234
|
-
//#region src/core/Helpers/SpriteAnimator/SpriteAnimator.d.ts
|
|
1095
|
+
|
|
1235
1096
|
type AnimationEventData = {
|
|
1236
|
-
|
|
1237
|
-
|
|
1097
|
+
currentFrameName: string;
|
|
1098
|
+
currentFrame: number;
|
|
1238
1099
|
};
|
|
1239
1100
|
type CommonProps<T, U, V> = Pick<T & U & V, keyof T & keyof U & keyof V>;
|
|
1240
|
-
type CommonMeshProps = CommonProps<React
|
|
1101
|
+
type CommonMeshProps = CommonProps<React.ComponentProps<'mesh'>, React.ComponentProps<typeof Instance>, React.ComponentProps<typeof Instances>>;
|
|
1241
1102
|
type SpriteAnimatorProps = {
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1103
|
+
startFrame?: number;
|
|
1104
|
+
endFrame?: number;
|
|
1105
|
+
fps?: number;
|
|
1106
|
+
frameName?: string;
|
|
1107
|
+
textureDataURL?: string;
|
|
1108
|
+
textureImageURL?: string;
|
|
1109
|
+
loop?: boolean;
|
|
1110
|
+
numberOfFrames?: number;
|
|
1111
|
+
autoPlay?: boolean;
|
|
1112
|
+
animationNames?: Array<string>;
|
|
1113
|
+
onStart?: (data: AnimationEventData) => void;
|
|
1114
|
+
onEnd?: (data: AnimationEventData) => void;
|
|
1115
|
+
onLoopEnd?: (data: AnimationEventData) => void;
|
|
1116
|
+
onFrame?: (data: AnimationEventData) => void;
|
|
1117
|
+
play?: boolean;
|
|
1118
|
+
pause?: boolean;
|
|
1119
|
+
flipX?: boolean;
|
|
1120
|
+
alphaTest?: number;
|
|
1121
|
+
asSprite?: boolean;
|
|
1122
|
+
offset?: number;
|
|
1123
|
+
playBackwards?: boolean;
|
|
1124
|
+
resetOnEnd?: boolean;
|
|
1125
|
+
instanceItems?: Vector3[];
|
|
1126
|
+
maxItems?: number;
|
|
1127
|
+
spriteDataset?: {
|
|
1128
|
+
spriteTexture: THREE.Texture;
|
|
1129
|
+
spriteData: SpriteData | null;
|
|
1130
|
+
aspect: Vector3;
|
|
1131
|
+
} | null;
|
|
1132
|
+
canvasRenderingContext2DSettings?: CanvasRenderingContext2DSettings;
|
|
1133
|
+
roundFramePosition?: boolean;
|
|
1134
|
+
meshProps?: CommonMeshProps;
|
|
1274
1135
|
} & Omit<ThreeElements['group'], 'ref'>;
|
|
1275
1136
|
type SpriteAnimatorState = {
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1137
|
+
current?: number;
|
|
1138
|
+
offset?: number;
|
|
1139
|
+
imageUrl?: string;
|
|
1140
|
+
hasEnded: boolean;
|
|
1141
|
+
ref: React.Ref<THREE.Group>;
|
|
1281
1142
|
};
|
|
1282
1143
|
declare function useSpriteAnimator(): SpriteAnimatorState | null;
|
|
1283
|
-
declare const SpriteAnimator: React
|
|
1284
|
-
|
|
1285
|
-
//#region src/core/Helpers/useAnimations/useAnimations.d.ts
|
|
1144
|
+
declare const SpriteAnimator: React.ForwardRefExoticComponent<Omit<SpriteAnimatorProps, "ref"> & React.RefAttributes<THREE.Group<THREE.Object3DEventMap>>>;
|
|
1145
|
+
|
|
1286
1146
|
type Api<T extends AnimationClip> = {
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
//#endregion
|
|
1302
|
-
//#region src/core/Helpers/Clone/Clone.d.ts
|
|
1147
|
+
ref: React.RefObject<Object3D | undefined | null>;
|
|
1148
|
+
clips: AnimationClip[];
|
|
1149
|
+
mixer: AnimationMixer;
|
|
1150
|
+
names: T['name'][];
|
|
1151
|
+
actions: {
|
|
1152
|
+
[key in T['name']]: AnimationAction | null;
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
declare function useAnimations<T extends AnimationClip>(clips: T[], root?: React.RefObject<Object3D | undefined | null> | Object3D): Api<T>;
|
|
1156
|
+
|
|
1157
|
+
declare function useContextBridge(...contexts: Array<React.Context<any>>): ({ children }: {
|
|
1158
|
+
children: React.ReactNode;
|
|
1159
|
+
}) => React.JSX.Element;
|
|
1160
|
+
|
|
1303
1161
|
type CloneProps = Omit<ThreeElements['group'], 'ref' | 'children'> & {
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
};
|
|
1313
|
-
declare const Clone: ForwardRefComponent<CloneProps, THREE
|
|
1314
|
-
|
|
1315
|
-
//#region src/core/Helpers/ComputedAttribute/ComputedAttribute.d.ts
|
|
1162
|
+
object: THREE.Object3D | THREE.Object3D[];
|
|
1163
|
+
children?: React.ReactNode;
|
|
1164
|
+
deep?: boolean | 'materialsOnly' | 'geometriesOnly';
|
|
1165
|
+
keys?: string[];
|
|
1166
|
+
inject?: ThreeElements['mesh'] | React.ReactNode | ((object: THREE.Object3D) => React.ReactNode);
|
|
1167
|
+
castShadow?: boolean;
|
|
1168
|
+
receiveShadow?: boolean;
|
|
1169
|
+
isChild?: boolean;
|
|
1170
|
+
};
|
|
1171
|
+
declare const Clone: ForwardRefComponent<CloneProps, THREE.Group>;
|
|
1172
|
+
|
|
1316
1173
|
type ComputedAttributeProps = Omit<ThreeElements['bufferAttribute'], 'args'> & {
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
};
|
|
1320
|
-
declare const ComputedAttribute: ({
|
|
1321
|
-
|
|
1322
|
-
name,
|
|
1323
|
-
...props
|
|
1324
|
-
}: ComputedAttributeProps) => React$1.JSX.Element;
|
|
1325
|
-
//#endregion
|
|
1326
|
-
//#region src/core/Helpers/Example/Example.d.ts
|
|
1174
|
+
compute: (geometry: BufferGeometry) => BufferAttribute;
|
|
1175
|
+
name: string;
|
|
1176
|
+
};
|
|
1177
|
+
declare const ComputedAttribute: ({ compute, name, ...props }: ComputedAttributeProps) => React.JSX.Element;
|
|
1178
|
+
|
|
1327
1179
|
type ExampleProps = {
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
} & React
|
|
1180
|
+
font: string;
|
|
1181
|
+
color?: Color$1;
|
|
1182
|
+
debug?: boolean;
|
|
1183
|
+
bevelSize?: number;
|
|
1184
|
+
} & React.ComponentProps<'group'>;
|
|
1333
1185
|
type ExampleApi = {
|
|
1334
|
-
|
|
1335
|
-
|
|
1186
|
+
incr: (x?: number) => void;
|
|
1187
|
+
decr: (x?: number) => void;
|
|
1336
1188
|
};
|
|
1337
|
-
declare const Example: React
|
|
1338
|
-
|
|
1339
|
-
//#region src/core/Helpers/Sampler/Sampler.d.ts
|
|
1189
|
+
declare const Example: React.ForwardRefExoticComponent<Omit<ExampleProps, "ref"> & React.RefAttributes<ExampleApi>>;
|
|
1190
|
+
|
|
1340
1191
|
type SamplePayload = {
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1192
|
+
position: Vector3$1;
|
|
1193
|
+
normal: Vector3$1;
|
|
1194
|
+
color: Color;
|
|
1344
1195
|
};
|
|
1345
1196
|
type TransformFn = (payload: TransformPayload, i: number) => void;
|
|
1346
1197
|
type TransformPayload = SamplePayload & {
|
|
1347
|
-
|
|
1348
|
-
|
|
1198
|
+
dummy: Object3D;
|
|
1199
|
+
sampledMesh: Mesh;
|
|
1349
1200
|
};
|
|
1350
1201
|
type SamplerProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1202
|
+
mesh?: React.RefObject<Mesh>;
|
|
1203
|
+
instances?: React.RefObject<InstancedMesh$1>;
|
|
1204
|
+
weight?: string;
|
|
1205
|
+
transform?: TransformFn;
|
|
1206
|
+
count?: number;
|
|
1356
1207
|
};
|
|
1357
1208
|
interface useSurfaceSamplerProps {
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1209
|
+
transform?: TransformFn;
|
|
1210
|
+
weight?: string;
|
|
1211
|
+
count?: number;
|
|
1361
1212
|
}
|
|
1362
|
-
declare function useSurfaceSampler(mesh: React
|
|
1363
|
-
declare function Sampler({
|
|
1364
|
-
|
|
1365
|
-
weight,
|
|
1366
|
-
transform,
|
|
1367
|
-
instances,
|
|
1368
|
-
mesh,
|
|
1369
|
-
count,
|
|
1370
|
-
...props
|
|
1371
|
-
}: SamplerProps): React$1.JSX.Element;
|
|
1372
|
-
//#endregion
|
|
1373
|
-
//#region src/core/Helpers/Svg/Svg.d.ts
|
|
1213
|
+
declare function useSurfaceSampler(mesh: React.RefObject<Mesh>, count?: number, transform?: TransformFn, weight?: string, instanceMesh?: React.RefObject<InstancedMesh$1> | null): InstancedBufferAttribute;
|
|
1214
|
+
declare function Sampler({ children, weight, transform, instances, mesh, count, ...props }: SamplerProps): React.JSX.Element;
|
|
1215
|
+
|
|
1374
1216
|
interface SvgProps extends Omit<ThreeElements['object3D'], 'ref'> {
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1217
|
+
src: string;
|
|
1218
|
+
skipFill?: boolean;
|
|
1219
|
+
skipStrokes?: boolean;
|
|
1220
|
+
fillMaterial?: ThreeElements['meshBasicMaterial'];
|
|
1221
|
+
strokeMaterial?: ThreeElements['meshBasicMaterial'];
|
|
1222
|
+
fillMeshProps?: ThreeElements['mesh'];
|
|
1223
|
+
strokeMeshProps?: ThreeElements['mesh'];
|
|
1382
1224
|
}
|
|
1383
|
-
declare const Svg: ForwardRefComponent<SvgProps, Object3D
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
frames
|
|
1389
|
-
}?: {
|
|
1390
|
-
size?: number;
|
|
1391
|
-
frames?: number;
|
|
1225
|
+
declare const Svg: ForwardRefComponent<SvgProps, Object3D>;
|
|
1226
|
+
|
|
1227
|
+
declare function useDepthBuffer({ size, frames }?: {
|
|
1228
|
+
size?: number;
|
|
1229
|
+
frames?: number;
|
|
1392
1230
|
}): DepthTexture | null;
|
|
1393
|
-
|
|
1394
|
-
//#region src/core/Textures/CubeTexture/CubeTexture.d.ts
|
|
1231
|
+
|
|
1395
1232
|
interface CubeTextureOptions {
|
|
1396
|
-
|
|
1233
|
+
path: string;
|
|
1397
1234
|
}
|
|
1398
1235
|
interface CubeTextureProps extends CubeTextureOptions {
|
|
1399
|
-
|
|
1400
|
-
|
|
1236
|
+
children?: (texture: CubeTexture$1) => React.ReactNode;
|
|
1237
|
+
files: string[];
|
|
1401
1238
|
}
|
|
1402
|
-
declare function useCubeTexture(files: string[], {
|
|
1403
|
-
path
|
|
1404
|
-
}: CubeTextureOptions): CubeTexture$1;
|
|
1239
|
+
declare function useCubeTexture(files: string[], { path }: CubeTextureOptions): CubeTexture$1;
|
|
1405
1240
|
declare namespace useCubeTexture {
|
|
1406
|
-
|
|
1407
|
-
path
|
|
1408
|
-
}: CubeTextureOptions) => void;
|
|
1241
|
+
var preload: (files: string[], { path }: CubeTextureOptions) => void;
|
|
1409
1242
|
}
|
|
1410
|
-
declare function CubeTexture({
|
|
1411
|
-
|
|
1412
|
-
files,
|
|
1413
|
-
...options
|
|
1414
|
-
}: CubeTextureProps): React$1.JSX.Element;
|
|
1415
|
-
//#endregion
|
|
1416
|
-
//#region src/core/Loaders/Loader/Loader.d.ts
|
|
1243
|
+
declare function CubeTexture({ children, files, ...options }: CubeTextureProps): React.JSX.Element;
|
|
1244
|
+
|
|
1417
1245
|
interface LoaderOptions {
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1246
|
+
containerStyles: CSSProperties;
|
|
1247
|
+
innerStyles: CSSProperties;
|
|
1248
|
+
barStyles: CSSProperties;
|
|
1249
|
+
dataStyles: CSSProperties;
|
|
1250
|
+
dataInterpolation: (p: number) => string;
|
|
1251
|
+
initialState: (active: boolean) => boolean;
|
|
1424
1252
|
}
|
|
1425
|
-
declare function Loader({
|
|
1426
|
-
|
|
1427
|
-
innerStyles,
|
|
1428
|
-
barStyles,
|
|
1429
|
-
dataStyles,
|
|
1430
|
-
dataInterpolation,
|
|
1431
|
-
initialState
|
|
1432
|
-
}: Partial<LoaderOptions>): React$1.JSX.Element | null;
|
|
1433
|
-
//#endregion
|
|
1434
|
-
//#region src/core/Loaders/Preload/Preload.d.ts
|
|
1253
|
+
declare function Loader({ containerStyles, innerStyles, barStyles, dataStyles, dataInterpolation, initialState, }: Partial<LoaderOptions>): React.JSX.Element | null;
|
|
1254
|
+
|
|
1435
1255
|
type PreloadProps = {
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
};
|
|
1440
|
-
declare function Preload({
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
unsuspend,
|
|
1450
|
-
start,
|
|
1451
|
-
hls: hlsConfig,
|
|
1452
|
-
crossOrigin,
|
|
1453
|
-
muted,
|
|
1454
|
-
loop,
|
|
1455
|
-
playsInline,
|
|
1456
|
-
onVideoFrame,
|
|
1457
|
-
...videoProps
|
|
1458
|
-
}?: {
|
|
1459
|
-
unsuspend?: keyof HTMLVideoElementEventMap;
|
|
1460
|
-
start?: boolean;
|
|
1461
|
-
hls?: Parameters<typeof getHls>[0];
|
|
1462
|
-
onVideoFrame?: VideoFrameRequestCallback;
|
|
1463
|
-
} & Partial<Omit<HTMLVideoElement, 'children' | 'src' | 'srcObject'>>): THREE$1.VideoTexture<HTMLVideoElement>;
|
|
1256
|
+
all?: boolean;
|
|
1257
|
+
scene?: Object3D;
|
|
1258
|
+
camera?: Camera;
|
|
1259
|
+
};
|
|
1260
|
+
declare function Preload({ all, scene, camera }: PreloadProps): null;
|
|
1261
|
+
|
|
1262
|
+
declare function getHls(...args: ConstructorParameters<typeof hls_js__default>): Promise<hls_js__default | null>;
|
|
1263
|
+
declare function useVideoTexture(srcOrSrcObject: HTMLVideoElement['src' | 'srcObject'], { unsuspend, start, hls: hlsConfig, crossOrigin, muted, loop, playsInline, onVideoFrame, ...videoProps }?: {
|
|
1264
|
+
unsuspend?: keyof HTMLVideoElementEventMap;
|
|
1265
|
+
start?: boolean;
|
|
1266
|
+
hls?: Parameters<typeof getHls>[0];
|
|
1267
|
+
onVideoFrame?: VideoFrameRequestCallback;
|
|
1268
|
+
} & Partial<Omit<HTMLVideoElement, 'children' | 'src' | 'srcObject'>>): THREE.VideoTexture<HTMLVideoElement>;
|
|
1464
1269
|
type UseVideoTextureParams = Parameters<typeof useVideoTexture>;
|
|
1465
|
-
type VideoTexture = ReturnType<typeof useVideoTexture>;
|
|
1466
1270
|
type VideoTextureProps = {
|
|
1467
|
-
|
|
1468
|
-
|
|
1271
|
+
children?: (texture: VideoTexture) => React.ReactNode;
|
|
1272
|
+
src: UseVideoTextureParams[0];
|
|
1469
1273
|
} & UseVideoTextureParams[1];
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1274
|
+
type VideoTexture = ReturnType<typeof useVideoTexture>;
|
|
1275
|
+
declare const VideoTexture: React.ForwardRefExoticComponent<{
|
|
1276
|
+
children?: (texture: VideoTexture) => React.ReactNode;
|
|
1277
|
+
src: UseVideoTextureParams[0];
|
|
1473
1278
|
} & {
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
} & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">> & React
|
|
1479
|
-
|
|
1480
|
-
//#region src/core/Textures/ScreenVideoTexture/ScreenVideoTexture.d.ts
|
|
1279
|
+
unsuspend?: keyof HTMLVideoElementEventMap;
|
|
1280
|
+
start?: boolean;
|
|
1281
|
+
hls?: Parameters<typeof getHls>[0];
|
|
1282
|
+
onVideoFrame?: VideoFrameRequestCallback;
|
|
1283
|
+
} & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">> & React.RefAttributes<THREE.VideoTexture<HTMLVideoElement>>>;
|
|
1284
|
+
|
|
1481
1285
|
type ScreenVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
|
|
1482
|
-
|
|
1286
|
+
options?: DisplayMediaStreamOptions;
|
|
1483
1287
|
};
|
|
1484
|
-
declare const ScreenVideoTexture: React
|
|
1485
|
-
|
|
1486
|
-
|
|
1288
|
+
declare const ScreenVideoTexture: React.ForwardRefExoticComponent<Omit<{
|
|
1289
|
+
children?: (texture: THREE.VideoTexture<HTMLVideoElement>) => React.ReactNode;
|
|
1290
|
+
src: string | MediaProvider | null;
|
|
1487
1291
|
} & {
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1292
|
+
unsuspend?: keyof HTMLVideoElementEventMap;
|
|
1293
|
+
start?: boolean;
|
|
1294
|
+
hls?: Parameters<(userConfig?: Partial<hls_js.HlsConfig> | undefined) => Promise<hls_js.default | null>>[0];
|
|
1295
|
+
onVideoFrame?: VideoFrameRequestCallback;
|
|
1492
1296
|
} & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">>, "src"> & {
|
|
1493
|
-
|
|
1494
|
-
} & React
|
|
1495
|
-
|
|
1496
|
-
//#region src/core/Textures/TrailTexture/TrailTexture.d.ts
|
|
1297
|
+
options?: DisplayMediaStreamOptions;
|
|
1298
|
+
} & React.RefAttributes<THREE.VideoTexture<HTMLVideoElement>>>;
|
|
1299
|
+
|
|
1497
1300
|
type TrailConfig = {
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
};
|
|
1508
|
-
declare function useTrailTexture(config?: Partial<TrailConfig>): [Texture$
|
|
1301
|
+
size?: number;
|
|
1302
|
+
maxAge?: number;
|
|
1303
|
+
radius?: number;
|
|
1304
|
+
intensity?: number;
|
|
1305
|
+
interpolate?: number;
|
|
1306
|
+
smoothing?: number;
|
|
1307
|
+
minForce?: number;
|
|
1308
|
+
blend?: CanvasRenderingContext2D['globalCompositeOperation'];
|
|
1309
|
+
ease?: (t: number) => number;
|
|
1310
|
+
};
|
|
1311
|
+
declare function useTrailTexture(config?: Partial<TrailConfig>): [Texture$1, (ThreeEvent: any) => void];
|
|
1509
1312
|
type TrailTextureProps = {
|
|
1510
|
-
|
|
1313
|
+
children?: (texture: ReturnType<typeof useTrailTexture>) => React.ReactNode;
|
|
1511
1314
|
} & TrailConfig;
|
|
1512
|
-
declare const TrailTexture: ({
|
|
1513
|
-
|
|
1514
|
-
...config
|
|
1515
|
-
}: TrailTextureProps) => React$1.JSX.Element;
|
|
1516
|
-
//#endregion
|
|
1517
|
-
//#region src/core/Loaders/useFBX/useFBX.d.ts
|
|
1315
|
+
declare const TrailTexture: ({ children, ...config }: TrailTextureProps) => React.JSX.Element;
|
|
1316
|
+
|
|
1518
1317
|
declare function useFBX(path: string): Group;
|
|
1519
1318
|
declare namespace useFBX {
|
|
1520
|
-
|
|
1521
|
-
|
|
1319
|
+
var preload: (path: string) => void;
|
|
1320
|
+
var clear: (input: string | string[]) => void;
|
|
1522
1321
|
}
|
|
1523
|
-
declare function Fbx({
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
path: Parameters<typeof useFBX>[0];
|
|
1528
|
-
} & Omit<React$1.ComponentProps<typeof Clone>, 'object'>): React$1.JSX.Element;
|
|
1529
|
-
//#endregion
|
|
1530
|
-
//#region src/core/Loaders/useGLTF/useGLTF.d.ts
|
|
1322
|
+
declare function Fbx({ path, ...props }: {
|
|
1323
|
+
path: Parameters<typeof useFBX>[0];
|
|
1324
|
+
} & Omit<React.ComponentProps<typeof Clone>, 'object'>): React.JSX.Element;
|
|
1325
|
+
|
|
1531
1326
|
type Path = string | string[];
|
|
1532
1327
|
type UseDraco = boolean | string;
|
|
1533
1328
|
type UseMeshopt = boolean;
|
|
1534
1329
|
type ExtendLoader = (loader: GLTFLoader) => void;
|
|
1535
1330
|
declare const useGLTF: {
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1331
|
+
<T extends Path>(path: T, useDraco?: UseDraco, useMeshopt?: UseMeshopt, extendLoader?: ExtendLoader): T extends any[] ? (GLTF & ObjectMap)[] : GLTF & ObjectMap;
|
|
1332
|
+
preload(path: Path, useDraco?: UseDraco, useMeshopt?: UseMeshopt, extendLoader?: ExtendLoader): void;
|
|
1333
|
+
clear(path: Path): void;
|
|
1334
|
+
setDecoderPath(path: string): void;
|
|
1540
1335
|
};
|
|
1541
1336
|
type GltfProps = Omit<CloneProps, 'object'> & {
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
};
|
|
1547
|
-
declare const Gltf: React
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1337
|
+
src: string;
|
|
1338
|
+
useDraco?: UseDraco;
|
|
1339
|
+
useMeshOpt?: UseMeshopt;
|
|
1340
|
+
extendLoader?: ExtendLoader;
|
|
1341
|
+
};
|
|
1342
|
+
declare const Gltf: React.ForwardRefExoticComponent<Omit<GltfProps, "ref"> & React.RefAttributes<THREE.Group<THREE.Object3DEventMap>>>;
|
|
1343
|
+
|
|
1344
|
+
declare function useKTX2<Url extends string[] | string | Record<string, string>>(input: Url, basisPath?: string): Url extends any[] ? Texture$1[] : Url extends object ? {
|
|
1345
|
+
[key in keyof Url]: Texture$1;
|
|
1346
|
+
} : Texture$1;
|
|
1551
1347
|
declare namespace useKTX2 {
|
|
1552
|
-
|
|
1553
|
-
|
|
1348
|
+
var preload: (url: string extends any[] ? string[] : string, basisPath?: string) => void;
|
|
1349
|
+
var clear: (input: string | string[]) => void;
|
|
1554
1350
|
}
|
|
1555
|
-
declare const Ktx2: ({
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
input: Parameters<typeof useKTX2>[0];
|
|
1562
|
-
basisPath?: Parameters<typeof useKTX2>[1];
|
|
1563
|
-
}) => React$1.JSX.Element;
|
|
1564
|
-
//#endregion
|
|
1565
|
-
//#region src/core/Loaders/useProgress/useProgress.d.ts
|
|
1351
|
+
declare const Ktx2: ({ children, input, basisPath, }: {
|
|
1352
|
+
children?: (texture: ReturnType<typeof useKTX2>) => React.ReactNode;
|
|
1353
|
+
input: Parameters<typeof useKTX2>[0];
|
|
1354
|
+
basisPath?: Parameters<typeof useKTX2>[1];
|
|
1355
|
+
}) => React.JSX.Element;
|
|
1356
|
+
|
|
1566
1357
|
type Data = {
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
};
|
|
1574
|
-
declare const useProgress:
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1358
|
+
errors: string[];
|
|
1359
|
+
active: boolean;
|
|
1360
|
+
progress: number;
|
|
1361
|
+
item: string;
|
|
1362
|
+
loaded: number;
|
|
1363
|
+
total: number;
|
|
1364
|
+
};
|
|
1365
|
+
declare const useProgress: zustand.UseBoundStore<zustand.StoreApi<Data>>;
|
|
1366
|
+
|
|
1367
|
+
declare function Progress({ children }: {
|
|
1368
|
+
children?: (result: Data) => React.ReactNode;
|
|
1369
|
+
}): React.JSX.Element;
|
|
1370
|
+
|
|
1371
|
+
type MappedTextureType<T extends string | string[] | Record<string, string>> = T extends string[] ? Texture$1[] : T extends Record<string, string> ? {
|
|
1372
|
+
[K in keyof T]: Texture$1;
|
|
1373
|
+
} : Texture$1;
|
|
1583
1374
|
declare const IsObject: (url: unknown) => url is Record<string, string>;
|
|
1584
1375
|
declare function useTexture<Url extends string[] | string | Record<string, string>>(input: Url, onLoad?: (texture: MappedTextureType<Url>) => void): MappedTextureType<Url>;
|
|
1585
1376
|
declare namespace useTexture {
|
|
1586
|
-
|
|
1587
|
-
|
|
1377
|
+
var preload: (url: string | string[]) => void;
|
|
1378
|
+
var clear: (input: string | string[]) => void;
|
|
1588
1379
|
}
|
|
1589
|
-
declare const Texture: ({
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
input: Parameters<typeof useTexture>[0];
|
|
1596
|
-
onLoad?: Parameters<typeof useTexture>[1];
|
|
1597
|
-
}) => React$1.JSX.Element;
|
|
1598
|
-
//#endregion
|
|
1599
|
-
//#region src/core/Textures/WebcamVideoTexture/WebcamVideoTexture.d.ts
|
|
1380
|
+
declare const Texture: ({ children, input, onLoad, }: {
|
|
1381
|
+
children?: (texture: ReturnType<typeof useTexture>) => React.ReactNode;
|
|
1382
|
+
input: Parameters<typeof useTexture>[0];
|
|
1383
|
+
onLoad?: Parameters<typeof useTexture>[1];
|
|
1384
|
+
}) => React.JSX.Element;
|
|
1385
|
+
|
|
1600
1386
|
type WebcamVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
|
|
1601
|
-
|
|
1387
|
+
constraints?: MediaStreamConstraints;
|
|
1602
1388
|
};
|
|
1603
|
-
declare const WebcamVideoTexture: React
|
|
1604
|
-
|
|
1605
|
-
|
|
1389
|
+
declare const WebcamVideoTexture: React.ForwardRefExoticComponent<Omit<{
|
|
1390
|
+
children?: (texture: THREE.VideoTexture<HTMLVideoElement>) => React.ReactNode;
|
|
1391
|
+
src: string | MediaProvider | null;
|
|
1606
1392
|
} & {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1393
|
+
unsuspend?: keyof HTMLVideoElementEventMap;
|
|
1394
|
+
start?: boolean;
|
|
1395
|
+
hls?: Parameters<(userConfig?: Partial<hls_js.HlsConfig> | undefined) => Promise<hls_js.default | null>>[0];
|
|
1396
|
+
onVideoFrame?: VideoFrameRequestCallback;
|
|
1611
1397
|
} & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">>, "src"> & {
|
|
1612
|
-
|
|
1613
|
-
} & React
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
pixelated
|
|
1618
|
-
}: {
|
|
1619
|
-
pixelated?: boolean;
|
|
1398
|
+
constraints?: MediaStreamConstraints;
|
|
1399
|
+
} & React.RefAttributes<THREE.VideoTexture<HTMLVideoElement>>>;
|
|
1400
|
+
|
|
1401
|
+
declare function AdaptiveDpr({ pixelated }: {
|
|
1402
|
+
pixelated?: boolean;
|
|
1620
1403
|
}): null;
|
|
1621
|
-
|
|
1622
|
-
//#region src/core/Performance/AdaptiveEvents/AdaptiveEvents.d.ts
|
|
1404
|
+
|
|
1623
1405
|
declare function AdaptiveEvents(): null;
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
declare const useDetectGPU: (props?: GetGPUTier) => detect_gpu0.TierResult;
|
|
1406
|
+
|
|
1407
|
+
declare const useDetectGPU: (props?: GetGPUTier) => detect_gpu.TierResult;
|
|
1627
1408
|
type DetectGPUProps = {
|
|
1628
|
-
|
|
1409
|
+
children?: (result: ReturnType<typeof useDetectGPU>) => React.ReactNode;
|
|
1629
1410
|
} & Parameters<typeof useDetectGPU>[0];
|
|
1630
|
-
declare function DetectGPU({
|
|
1631
|
-
|
|
1632
|
-
...options
|
|
1633
|
-
}: DetectGPUProps): React$1.JSX.Element;
|
|
1634
|
-
//#endregion
|
|
1635
|
-
//#region src/core/Performance/meshBounds/meshBounds.d.ts
|
|
1411
|
+
declare function DetectGPU({ children, ...options }: DetectGPUProps): React.JSX.Element;
|
|
1412
|
+
|
|
1636
1413
|
declare function meshBounds(raycaster: Raycaster, intersects: Intersection[]): void;
|
|
1637
|
-
|
|
1638
|
-
//#region src/core/Performance/PerformanceMonitor/PerformanceMonitor.d.ts
|
|
1414
|
+
|
|
1639
1415
|
type PerformanceMonitorHookApi = {
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1416
|
+
onIncline: (api: PerformanceMonitorApi) => void;
|
|
1417
|
+
onDecline: (api: PerformanceMonitorApi) => void;
|
|
1418
|
+
onChange: (api: PerformanceMonitorApi) => void;
|
|
1419
|
+
onFallback: (api: PerformanceMonitorApi) => void;
|
|
1644
1420
|
};
|
|
1645
1421
|
type PerformanceMonitorApi = {
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1422
|
+
fps: number;
|
|
1423
|
+
factor: number;
|
|
1424
|
+
refreshrate: number;
|
|
1425
|
+
frames: number[];
|
|
1426
|
+
averages: number[];
|
|
1427
|
+
index: number;
|
|
1428
|
+
flipped: number;
|
|
1429
|
+
fallback: boolean;
|
|
1430
|
+
subscriptions: Map<Symbol, Partial<PerformanceMonitorHookApi>>;
|
|
1431
|
+
subscribe: (ref: React.RefObject<Partial<PerformanceMonitorHookApi>>) => () => void;
|
|
1656
1432
|
};
|
|
1657
1433
|
type PerformanceMonitorProps = {
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
};
|
|
1671
|
-
declare function PerformanceMonitor({
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
threshold,
|
|
1675
|
-
step,
|
|
1676
|
-
factor: _factor,
|
|
1677
|
-
flipflops,
|
|
1678
|
-
bounds,
|
|
1679
|
-
onIncline,
|
|
1680
|
-
onDecline,
|
|
1681
|
-
onChange,
|
|
1682
|
-
onFallback,
|
|
1683
|
-
children
|
|
1684
|
-
}: PerformanceMonitorProps): React$1.JSX.Element;
|
|
1685
|
-
declare function usePerformanceMonitor({
|
|
1686
|
-
onIncline,
|
|
1687
|
-
onDecline,
|
|
1688
|
-
onChange,
|
|
1689
|
-
onFallback
|
|
1690
|
-
}: Partial<PerformanceMonitorHookApi>): void;
|
|
1691
|
-
//#endregion
|
|
1692
|
-
//#region src/core/Performance/Stats/Stats.d.ts
|
|
1434
|
+
ms?: number;
|
|
1435
|
+
iterations?: number;
|
|
1436
|
+
threshold?: number;
|
|
1437
|
+
bounds?: (refreshrate: number) => [lower: number, upper: number];
|
|
1438
|
+
flipflops?: number;
|
|
1439
|
+
factor?: number;
|
|
1440
|
+
step?: number;
|
|
1441
|
+
onIncline?: (api: PerformanceMonitorApi) => void;
|
|
1442
|
+
onDecline?: (api: PerformanceMonitorApi) => void;
|
|
1443
|
+
onChange?: (api: PerformanceMonitorApi) => void;
|
|
1444
|
+
onFallback?: (api: PerformanceMonitorApi) => void;
|
|
1445
|
+
children?: React.ReactNode;
|
|
1446
|
+
};
|
|
1447
|
+
declare function PerformanceMonitor({ iterations, ms, threshold, step, factor: _factor, flipflops, bounds, onIncline, onDecline, onChange, onFallback, children, }: PerformanceMonitorProps): React.JSX.Element;
|
|
1448
|
+
declare function usePerformanceMonitor({ onIncline, onDecline, onChange, onFallback, }: Partial<PerformanceMonitorHookApi>): void;
|
|
1449
|
+
|
|
1693
1450
|
type StatsProps = {
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
};
|
|
1698
|
-
declare function Stats({
|
|
1699
|
-
|
|
1700
|
-
className,
|
|
1701
|
-
parent
|
|
1702
|
-
}: StatsProps): null;
|
|
1703
|
-
//#endregion
|
|
1704
|
-
//#region src/core/Performance/StatsGl/StatsGl.d.ts
|
|
1451
|
+
showPanel?: number;
|
|
1452
|
+
className?: string;
|
|
1453
|
+
parent?: React.RefObject<HTMLElement>;
|
|
1454
|
+
};
|
|
1455
|
+
declare function Stats({ showPanel, className, parent }: StatsProps): null;
|
|
1456
|
+
|
|
1705
1457
|
type StatsOptions = ConstructorParameters<typeof Stats$1>[0];
|
|
1706
1458
|
type StatsGlProps = Partial<StatsOptions> & {
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1459
|
+
id?: string;
|
|
1460
|
+
clearStatsGlStyle?: boolean;
|
|
1461
|
+
showPanel?: number;
|
|
1462
|
+
className?: string;
|
|
1463
|
+
parent?: React.RefObject<HTMLElement>;
|
|
1464
|
+
ref?: React.RefObject<HTMLElement>;
|
|
1713
1465
|
};
|
|
1714
1466
|
declare const StatsGl: ForwardRefComponent<StatsGlProps, HTMLDivElement>;
|
|
1715
|
-
|
|
1716
|
-
//#region src/core/Portal/Fbo/Fbo.d.ts
|
|
1467
|
+
|
|
1717
1468
|
type FBOSettings = {
|
|
1718
|
-
|
|
1469
|
+
depth?: boolean;
|
|
1719
1470
|
} & RenderTargetOptions;
|
|
1720
|
-
declare function useFBO(width?: number | FBOSettings, height?: number, settings?: FBOSettings): THREE
|
|
1471
|
+
declare function useFBO(width?: number | FBOSettings, height?: number, settings?: FBOSettings): THREE.WebGLRenderTarget<THREE.Texture<unknown>>;
|
|
1721
1472
|
type UseFBOParams = Parameters<typeof useFBO>;
|
|
1722
|
-
type Fbo = ReturnType<typeof useFBO>;
|
|
1723
1473
|
type FboProps = {
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1474
|
+
children?: (target: Fbo) => React.ReactNode;
|
|
1475
|
+
width?: UseFBOParams[0];
|
|
1476
|
+
height?: UseFBOParams[1];
|
|
1727
1477
|
} & FBOSettings;
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1478
|
+
type Fbo = ReturnType<typeof useFBO>;
|
|
1479
|
+
declare const Fbo: React.ForwardRefExoticComponent<{
|
|
1480
|
+
children?: (target: Fbo) => React.ReactNode;
|
|
1481
|
+
width?: UseFBOParams[0];
|
|
1482
|
+
height?: UseFBOParams[1];
|
|
1732
1483
|
} & {
|
|
1733
|
-
|
|
1734
|
-
} & THREE
|
|
1735
|
-
|
|
1736
|
-
//#region src/core/Portal/Fisheye/Fisheye.d.ts
|
|
1484
|
+
depth?: boolean;
|
|
1485
|
+
} & THREE.RenderTargetOptions & React.RefAttributes<THREE.WebGLRenderTarget<THREE.Texture<unknown>>>>;
|
|
1486
|
+
|
|
1737
1487
|
type FisheyeProps = ThreeElements['mesh'] & {
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
};
|
|
1744
|
-
declare function Fisheye({
|
|
1745
|
-
|
|
1746
|
-
zoom,
|
|
1747
|
-
segments,
|
|
1748
|
-
children,
|
|
1749
|
-
resolution,
|
|
1750
|
-
...props
|
|
1751
|
-
}: FisheyeProps): React$1.JSX.Element;
|
|
1752
|
-
//#endregion
|
|
1753
|
-
//#region src/core/Portal/Hud/Hud.d.ts
|
|
1488
|
+
zoom?: number;
|
|
1489
|
+
segments?: number;
|
|
1490
|
+
resolution?: number;
|
|
1491
|
+
children: React.ReactNode;
|
|
1492
|
+
renderPriority?: number;
|
|
1493
|
+
};
|
|
1494
|
+
declare function Fisheye({ renderPriority, zoom, segments, children, resolution, ...props }: FisheyeProps): React.JSX.Element;
|
|
1495
|
+
|
|
1754
1496
|
type HudProps = {
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
};
|
|
1758
|
-
declare function Hud({
|
|
1759
|
-
|
|
1760
|
-
renderPriority
|
|
1761
|
-
}: HudProps): React$1.JSX.Element;
|
|
1762
|
-
//#endregion
|
|
1763
|
-
//#region src/core/Portal/Mask/Mask.d.ts
|
|
1497
|
+
children: React.ReactNode;
|
|
1498
|
+
renderPriority?: number;
|
|
1499
|
+
};
|
|
1500
|
+
declare function Hud({ children, renderPriority }: HudProps): React.JSX.Element;
|
|
1501
|
+
|
|
1764
1502
|
type MaskProps = Omit<ThreeElements['mesh'], 'ref' | 'id'> & {
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1503
|
+
id: number;
|
|
1504
|
+
colorWrite?: boolean;
|
|
1505
|
+
depthWrite?: boolean;
|
|
1768
1506
|
};
|
|
1769
|
-
declare const Mask: ForwardRefComponent<MaskProps, THREE
|
|
1507
|
+
declare const Mask: ForwardRefComponent<MaskProps, THREE.Mesh>;
|
|
1770
1508
|
declare function useMask(id: number, inverse?: boolean): {
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
};
|
|
1778
|
-
|
|
1779
|
-
//#region src/core/Portal/RenderCubeTexture/RenderCubeTexture.d.ts
|
|
1509
|
+
stencilWrite: boolean;
|
|
1510
|
+
stencilRef: number;
|
|
1511
|
+
stencilFunc: 514 | 517;
|
|
1512
|
+
stencilFail: 7680;
|
|
1513
|
+
stencilZFail: 7680;
|
|
1514
|
+
stencilZPass: 7680;
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1780
1517
|
type RenderCubeTextureProps = Omit<ThreeElements['texture'], 'ref' | 'args' | 'rotation'> & {
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1518
|
+
stencilBuffer?: boolean;
|
|
1519
|
+
depthBuffer?: boolean;
|
|
1520
|
+
generateMipmaps?: boolean;
|
|
1521
|
+
renderPriority?: number;
|
|
1522
|
+
eventPriority?: number;
|
|
1523
|
+
frames?: number;
|
|
1524
|
+
compute?: ComputeFunction;
|
|
1525
|
+
flip?: boolean;
|
|
1526
|
+
resolution?: number;
|
|
1527
|
+
children: React.ReactNode;
|
|
1528
|
+
near?: number;
|
|
1529
|
+
far?: number;
|
|
1530
|
+
position?: ReactThreeFiber.Vector3;
|
|
1531
|
+
rotation?: ReactThreeFiber.Euler;
|
|
1532
|
+
scale?: ReactThreeFiber.Vector3;
|
|
1533
|
+
quaternion?: ReactThreeFiber.Quaternion;
|
|
1534
|
+
matrix?: ReactThreeFiber.Matrix4;
|
|
1535
|
+
matrixAutoUpdate?: boolean;
|
|
1799
1536
|
};
|
|
1800
1537
|
type RenderCubeTextureApi = {
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1538
|
+
scene: THREE.Scene;
|
|
1539
|
+
fbo: THREE.WebGLCubeRenderTarget;
|
|
1540
|
+
camera: THREE.CubeCamera;
|
|
1804
1541
|
};
|
|
1805
1542
|
declare const RenderCubeTexture: ForwardRefComponent<RenderCubeTextureProps, RenderCubeTextureApi>;
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
//#endregion
|
|
1810
|
-
//#region src/core/Portal/View/View.d.ts
|
|
1543
|
+
|
|
1544
|
+
declare function useCustomRaycast(camera: Camera | React.RefObject<Camera>, props?: Partial<Raycaster>): (_: Raycaster, intersects: Intersection[]) => void;
|
|
1545
|
+
|
|
1811
1546
|
type CanvasSize = {
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1547
|
+
top: number;
|
|
1548
|
+
left: number;
|
|
1549
|
+
height: number;
|
|
1550
|
+
width: number;
|
|
1816
1551
|
};
|
|
1817
1552
|
type ContainerProps = {
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1553
|
+
visible: boolean;
|
|
1554
|
+
scene: THREE.Scene;
|
|
1555
|
+
index: number;
|
|
1556
|
+
children?: React.ReactNode;
|
|
1557
|
+
frames: number;
|
|
1558
|
+
rect: React.RefObject<DOMRect>;
|
|
1559
|
+
track?: React.RefObject<HTMLElement>;
|
|
1560
|
+
canvasSize: CanvasSize;
|
|
1826
1561
|
};
|
|
1827
1562
|
type ViewProps = {
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1563
|
+
as?: string;
|
|
1564
|
+
id?: string;
|
|
1565
|
+
className?: string;
|
|
1566
|
+
style?: React.CSSProperties;
|
|
1567
|
+
visible?: boolean;
|
|
1568
|
+
index?: number;
|
|
1569
|
+
frames?: number;
|
|
1570
|
+
children?: React.ReactNode;
|
|
1571
|
+
track?: React.RefObject<HTMLElement>;
|
|
1837
1572
|
};
|
|
1838
1573
|
type ViewportProps = {
|
|
1839
|
-
|
|
1840
|
-
} & React
|
|
1574
|
+
Port: () => React.JSX.Element;
|
|
1575
|
+
} & React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<HTMLElement | THREE.Group>>;
|
|
1841
1576
|
declare const View: ViewportProps;
|
|
1842
|
-
|
|
1843
|
-
//#region src/core/Staging/Backdrop/Backdrop.d.ts
|
|
1577
|
+
|
|
1844
1578
|
type BackdropProps = ThreeElements['group'] & {
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
};
|
|
1850
|
-
declare function Backdrop({
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
}:
|
|
1857
|
-
|
|
1858
|
-
children: any;
|
|
1859
|
-
floor?: number | undefined;
|
|
1860
|
-
segments?: number | undefined;
|
|
1861
|
-
receiveShadow: any;
|
|
1862
|
-
}): React$1.JSX.Element;
|
|
1863
|
-
//#endregion
|
|
1864
|
-
//#region src/core/Staging/BBAnchor/BBAnchor.d.ts
|
|
1579
|
+
floor?: number;
|
|
1580
|
+
segments?: number;
|
|
1581
|
+
receiveShadow?: boolean;
|
|
1582
|
+
children?: React.ReactNode;
|
|
1583
|
+
};
|
|
1584
|
+
declare function Backdrop({ children, floor, segments, receiveShadow, ...props }: {
|
|
1585
|
+
[x: string]: any;
|
|
1586
|
+
children: any;
|
|
1587
|
+
floor?: number | undefined;
|
|
1588
|
+
segments?: number | undefined;
|
|
1589
|
+
receiveShadow: any;
|
|
1590
|
+
}): React.JSX.Element;
|
|
1591
|
+
|
|
1865
1592
|
type BBAnchorProps = ThreeElements['group'] & {
|
|
1866
|
-
|
|
1867
|
-
};
|
|
1868
|
-
declare const BBAnchor: ({
|
|
1869
|
-
|
|
1870
|
-
...props
|
|
1871
|
-
}: BBAnchorProps) => React$1.JSX.Element;
|
|
1872
|
-
//#endregion
|
|
1873
|
-
//#region src/core/Staging/Billboard/Billboard.d.ts
|
|
1593
|
+
anchor: THREE.Vector3 | [number, number, number];
|
|
1594
|
+
};
|
|
1595
|
+
declare const BBAnchor: ({ anchor, ...props }: BBAnchorProps) => React.JSX.Element;
|
|
1596
|
+
|
|
1874
1597
|
type BillboardProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1598
|
+
follow?: boolean;
|
|
1599
|
+
lockX?: boolean;
|
|
1600
|
+
lockY?: boolean;
|
|
1601
|
+
lockZ?: boolean;
|
|
1879
1602
|
};
|
|
1880
1603
|
declare const Billboard: ForwardRefComponent<BillboardProps, Group>;
|
|
1881
|
-
|
|
1882
|
-
//#region src/core/Staging/Bounds/Bounds.d.ts
|
|
1604
|
+
|
|
1883
1605
|
type SizeProps = {
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1606
|
+
box: THREE.Box3;
|
|
1607
|
+
size: THREE.Vector3;
|
|
1608
|
+
center: THREE.Vector3;
|
|
1609
|
+
distance: number;
|
|
1888
1610
|
};
|
|
1889
1611
|
type BoundsApi = {
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
}: {
|
|
1905
|
-
position: [number, number, number];
|
|
1906
|
-
target: [number, number, number];
|
|
1907
|
-
}): BoundsApi;
|
|
1908
|
-
fit(): BoundsApi;
|
|
1909
|
-
clip(): BoundsApi;
|
|
1612
|
+
getSize: () => SizeProps;
|
|
1613
|
+
refresh(object?: THREE.Object3D | THREE.Box3): BoundsApi;
|
|
1614
|
+
reset(): BoundsApi;
|
|
1615
|
+
moveTo(position: THREE.Vector3 | [number, number, number]): BoundsApi;
|
|
1616
|
+
lookAt({ target, up, }: {
|
|
1617
|
+
target?: THREE.Vector3 | [number, number, number];
|
|
1618
|
+
up?: THREE.Vector3 | [number, number, number];
|
|
1619
|
+
}): BoundsApi;
|
|
1620
|
+
to({ position, target }: {
|
|
1621
|
+
position: [number, number, number];
|
|
1622
|
+
target: [number, number, number];
|
|
1623
|
+
}): BoundsApi;
|
|
1624
|
+
fit(): BoundsApi;
|
|
1625
|
+
clip(): BoundsApi;
|
|
1910
1626
|
};
|
|
1911
1627
|
type BoundsProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
};
|
|
1920
|
-
declare function Bounds({
|
|
1921
|
-
children,
|
|
1922
|
-
maxDuration,
|
|
1923
|
-
margin,
|
|
1924
|
-
observe,
|
|
1925
|
-
fit,
|
|
1926
|
-
clip,
|
|
1927
|
-
interpolateFunc,
|
|
1928
|
-
onFit
|
|
1929
|
-
}: BoundsProps): React$1.JSX.Element;
|
|
1628
|
+
maxDuration?: number;
|
|
1629
|
+
margin?: number;
|
|
1630
|
+
observe?: boolean;
|
|
1631
|
+
fit?: boolean;
|
|
1632
|
+
clip?: boolean;
|
|
1633
|
+
interpolateFunc?: (t: number) => number;
|
|
1634
|
+
onFit?: (data: SizeProps) => void;
|
|
1635
|
+
};
|
|
1636
|
+
declare function Bounds({ children, maxDuration, margin, observe, fit, clip, interpolateFunc, onFit, }: BoundsProps): React.JSX.Element;
|
|
1930
1637
|
declare function useBounds(): BoundsApi;
|
|
1931
|
-
|
|
1932
|
-
//#region src/core/Staging/Center/Center.d.ts
|
|
1638
|
+
|
|
1933
1639
|
type OnCenterCallbackProps = {
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1640
|
+
parent: Object3D;
|
|
1641
|
+
container: Object3D;
|
|
1642
|
+
width: number;
|
|
1643
|
+
height: number;
|
|
1644
|
+
depth: number;
|
|
1645
|
+
boundingBox: Box3;
|
|
1646
|
+
boundingSphere: Sphere$1;
|
|
1647
|
+
center: Vector3$1;
|
|
1648
|
+
verticalAlignment: number;
|
|
1649
|
+
horizontalAlignment: number;
|
|
1650
|
+
depthAlignment: number;
|
|
1945
1651
|
};
|
|
1946
1652
|
type CenterProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1653
|
+
top?: boolean;
|
|
1654
|
+
right?: boolean;
|
|
1655
|
+
bottom?: boolean;
|
|
1656
|
+
left?: boolean;
|
|
1657
|
+
front?: boolean;
|
|
1658
|
+
back?: boolean;
|
|
1659
|
+
disable?: boolean;
|
|
1660
|
+
disableX?: boolean;
|
|
1661
|
+
disableY?: boolean;
|
|
1662
|
+
disableZ?: boolean;
|
|
1663
|
+
object?: Object3D | null;
|
|
1664
|
+
precise?: boolean;
|
|
1665
|
+
onCentered?: (props: OnCenterCallbackProps) => void;
|
|
1666
|
+
cacheKey?: any;
|
|
1961
1667
|
};
|
|
1962
1668
|
declare const Center: ForwardRefComponent<CenterProps, Group>;
|
|
1963
|
-
|
|
1964
|
-
//#region src/core/Staging/environment-assets.d.ts
|
|
1669
|
+
|
|
1965
1670
|
declare const presetsObj: {
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1671
|
+
apartment: string;
|
|
1672
|
+
city: string;
|
|
1673
|
+
dawn: string;
|
|
1674
|
+
forest: string;
|
|
1675
|
+
lobby: string;
|
|
1676
|
+
night: string;
|
|
1677
|
+
park: string;
|
|
1678
|
+
studio: string;
|
|
1679
|
+
sunset: string;
|
|
1680
|
+
warehouse: string;
|
|
1976
1681
|
};
|
|
1977
1682
|
type PresetsType = keyof typeof presetsObj;
|
|
1978
|
-
|
|
1979
|
-
//#region src/core/Staging/useEnvironment/useEnvironment.d.ts
|
|
1683
|
+
|
|
1980
1684
|
type EnvironmentLoaderProps = {
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
};
|
|
1987
|
-
declare function useEnvironment({
|
|
1988
|
-
files,
|
|
1989
|
-
path,
|
|
1990
|
-
preset,
|
|
1991
|
-
colorSpace,
|
|
1992
|
-
extensions
|
|
1993
|
-
}?: Partial<EnvironmentLoaderProps>): CubeTexture$1<unknown> | Texture$2<unknown>;
|
|
1685
|
+
files?: string | string[];
|
|
1686
|
+
path?: string;
|
|
1687
|
+
preset?: PresetsType;
|
|
1688
|
+
extensions?: (loader: Loader$1) => void;
|
|
1689
|
+
colorSpace?: ColorSpace;
|
|
1690
|
+
};
|
|
1691
|
+
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): CubeTexture$1<unknown> | Texture$1<unknown>;
|
|
1994
1692
|
declare namespace useEnvironment {
|
|
1995
|
-
|
|
1996
|
-
|
|
1693
|
+
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
|
1694
|
+
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
|
1997
1695
|
}
|
|
1998
1696
|
type EnvironmentLoaderPreloadOptions = Omit<EnvironmentLoaderProps, 'encoding'>;
|
|
1999
1697
|
type EnvironmentLoaderClearOptions = Pick<EnvironmentLoaderProps, 'files' | 'preset'>;
|
|
2000
|
-
|
|
2001
|
-
//#region src/core/Staging/Environment/Environment.d.ts
|
|
1698
|
+
|
|
2002
1699
|
type EnvironmentProps = {
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
1700
|
+
children?: React.ReactNode;
|
|
1701
|
+
frames?: number;
|
|
1702
|
+
near?: number;
|
|
1703
|
+
far?: number;
|
|
1704
|
+
resolution?: number;
|
|
1705
|
+
background?: boolean | 'only';
|
|
1706
|
+
blur?: number;
|
|
1707
|
+
backgroundBlurriness?: number;
|
|
1708
|
+
backgroundIntensity?: number;
|
|
1709
|
+
backgroundRotation?: Euler;
|
|
1710
|
+
environmentIntensity?: number;
|
|
1711
|
+
environmentRotation?: Euler;
|
|
1712
|
+
map?: Texture$1;
|
|
1713
|
+
preset?: PresetsType;
|
|
1714
|
+
scene?: Scene | React.RefObject<Scene>;
|
|
1715
|
+
ground?: boolean | {
|
|
1716
|
+
radius?: number;
|
|
1717
|
+
height?: number;
|
|
1718
|
+
scale?: number;
|
|
1719
|
+
};
|
|
2023
1720
|
} & EnvironmentLoaderProps;
|
|
2024
|
-
declare function EnvironmentMap({
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
map,
|
|
2028
|
-
...config
|
|
2029
|
-
}: EnvironmentProps): null;
|
|
2030
|
-
declare function EnvironmentCube({
|
|
2031
|
-
background,
|
|
2032
|
-
scene,
|
|
2033
|
-
blur,
|
|
2034
|
-
backgroundBlurriness,
|
|
2035
|
-
backgroundIntensity,
|
|
2036
|
-
backgroundRotation,
|
|
2037
|
-
environmentIntensity,
|
|
2038
|
-
environmentRotation,
|
|
2039
|
-
...rest
|
|
2040
|
-
}: EnvironmentProps): null;
|
|
2041
|
-
declare function EnvironmentPortal({
|
|
2042
|
-
children,
|
|
2043
|
-
near,
|
|
2044
|
-
far,
|
|
2045
|
-
resolution,
|
|
2046
|
-
frames,
|
|
2047
|
-
map,
|
|
2048
|
-
background,
|
|
2049
|
-
blur,
|
|
2050
|
-
backgroundBlurriness,
|
|
2051
|
-
backgroundIntensity,
|
|
2052
|
-
backgroundRotation,
|
|
2053
|
-
environmentIntensity,
|
|
2054
|
-
environmentRotation,
|
|
2055
|
-
scene,
|
|
2056
|
-
files,
|
|
2057
|
-
path,
|
|
2058
|
-
preset,
|
|
2059
|
-
extensions
|
|
2060
|
-
}: EnvironmentProps): React$1.JSX.Element;
|
|
1721
|
+
declare function EnvironmentMap({ scene, background, map, ...config }: EnvironmentProps): null;
|
|
1722
|
+
declare function EnvironmentCube({ background, scene, blur, backgroundBlurriness, backgroundIntensity, backgroundRotation, environmentIntensity, environmentRotation, ...rest }: EnvironmentProps): null;
|
|
1723
|
+
declare function EnvironmentPortal({ children, near, far, resolution, frames, map, background, blur, backgroundBlurriness, backgroundIntensity, backgroundRotation, environmentIntensity, environmentRotation, scene, files, path, preset, extensions, }: EnvironmentProps): React.JSX.Element;
|
|
2061
1724
|
declare module '@react-three/fiber' {
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
1725
|
+
interface ThreeElements {
|
|
1726
|
+
groundProjectedEnvImpl: ThreeElement<typeof GroundedSkybox>;
|
|
1727
|
+
}
|
|
2065
1728
|
}
|
|
2066
|
-
declare function Environment(props: EnvironmentProps): React
|
|
2067
|
-
|
|
2068
|
-
//#region src/core/Staging/Float/Float.d.ts
|
|
1729
|
+
declare function Environment(props: EnvironmentProps): React.JSX.Element;
|
|
1730
|
+
|
|
2069
1731
|
type FloatProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
};
|
|
2078
|
-
declare const Float: ForwardRefComponent<FloatProps, THREE
|
|
2079
|
-
|
|
2080
|
-
//#region src/core/Staging/Lightformer/Lightformer.d.ts
|
|
1732
|
+
enabled?: boolean;
|
|
1733
|
+
speed?: number;
|
|
1734
|
+
rotationIntensity?: number;
|
|
1735
|
+
floatIntensity?: number;
|
|
1736
|
+
children?: React.ReactNode;
|
|
1737
|
+
floatingRange?: [number?, number?];
|
|
1738
|
+
autoInvalidate?: boolean;
|
|
1739
|
+
};
|
|
1740
|
+
declare const Float: ForwardRefComponent<FloatProps, THREE.Group>;
|
|
1741
|
+
|
|
2081
1742
|
type LightProps = Omit<ThreeElements['mesh'], 'ref'> & {
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
};
|
|
2092
|
-
declare const Lightformer: ForwardRefComponent<LightProps, THREE
|
|
2093
|
-
|
|
2094
|
-
//#region src/core/Staging/Resize/Resize.d.ts
|
|
1743
|
+
args?: any[];
|
|
1744
|
+
map?: THREE.Texture;
|
|
1745
|
+
toneMapped?: boolean;
|
|
1746
|
+
color?: ReactThreeFiber.Color;
|
|
1747
|
+
form?: 'circle' | 'ring' | 'rect' | 'plane' | 'box' | any;
|
|
1748
|
+
scale?: number | [number, number, number] | [number, number];
|
|
1749
|
+
intensity?: number;
|
|
1750
|
+
target?: boolean | [number, number, number] | THREE.Vector3;
|
|
1751
|
+
light?: Partial<ThreeElements['pointLight']>;
|
|
1752
|
+
};
|
|
1753
|
+
declare const Lightformer: ForwardRefComponent<LightProps, THREE.Mesh>;
|
|
1754
|
+
|
|
2095
1755
|
type ResizeProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
};
|
|
2102
|
-
declare const Resize: React
|
|
2103
|
-
|
|
2104
|
-
//#region src/core/Staging/ScreenSizer/ScreenSizer.d.ts
|
|
1756
|
+
width?: boolean;
|
|
1757
|
+
height?: boolean;
|
|
1758
|
+
depth?: boolean;
|
|
1759
|
+
box3?: THREE.Box3;
|
|
1760
|
+
precise?: boolean;
|
|
1761
|
+
};
|
|
1762
|
+
declare const Resize: React.ForwardRefExoticComponent<Omit<ResizeProps, "ref"> & React.RefAttributes<THREE.Group<THREE.Object3DEventMap>>>;
|
|
1763
|
+
|
|
2105
1764
|
type ScreenSizerProps = Omit<ThreeElements['object3D'], 'ref'> & {
|
|
2106
|
-
|
|
1765
|
+
scale?: number;
|
|
2107
1766
|
};
|
|
2108
|
-
declare const ScreenSizer: ForwardRefComponent<ScreenSizerProps, Object3D
|
|
2109
|
-
|
|
2110
|
-
//#region src/core/Staging/Shadow/Shadow.d.ts
|
|
1767
|
+
declare const ScreenSizer: ForwardRefComponent<ScreenSizerProps, Object3D>;
|
|
1768
|
+
|
|
2111
1769
|
type ShadowProps = Omit<ThreeElements['mesh'], 'ref'> & {
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
1770
|
+
colorStop?: number;
|
|
1771
|
+
fog?: boolean;
|
|
1772
|
+
color?: Color | number | string;
|
|
1773
|
+
opacity?: number;
|
|
1774
|
+
depthWrite?: boolean;
|
|
2117
1775
|
};
|
|
2118
|
-
type ShadowType = Mesh
|
|
1776
|
+
type ShadowType = Mesh<PlaneGeometry, MeshBasicMaterial>;
|
|
2119
1777
|
declare const Shadow: ForwardRefComponent<ShadowProps, ShadowType>;
|
|
2120
|
-
|
|
2121
|
-
//#region src/core/Staging/Sky/Sky.d.ts
|
|
1778
|
+
|
|
2122
1779
|
type SkyProps = {
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
};
|
|
2132
|
-
declare function calcPosFromAngles(inclination: number, azimuth: number, vector?: Vector3$
|
|
1780
|
+
distance?: number;
|
|
1781
|
+
sunPosition?: ReactThreeFiber.Vector3;
|
|
1782
|
+
inclination?: number;
|
|
1783
|
+
azimuth?: number;
|
|
1784
|
+
mieCoefficient?: number;
|
|
1785
|
+
mieDirectionalG?: number;
|
|
1786
|
+
rayleigh?: number;
|
|
1787
|
+
turbidity?: number;
|
|
1788
|
+
};
|
|
1789
|
+
declare function calcPosFromAngles(inclination: number, azimuth: number, vector?: Vector3$1): Vector3$1;
|
|
2133
1790
|
declare const Sky: ForwardRefComponent<SkyProps, Sky$1>;
|
|
2134
|
-
|
|
2135
|
-
//#region src/core/Staging/Stage/Stage.d.ts
|
|
1791
|
+
|
|
2136
1792
|
type StageShadows = Partial<AccumulativeShadowsProps> & Partial<RandomizedLightProps> & Partial<ContactShadowsProps> & {
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
1793
|
+
type: 'contact' | 'accumulative';
|
|
1794
|
+
offset?: number;
|
|
1795
|
+
bias?: number;
|
|
1796
|
+
normalBias?: number;
|
|
1797
|
+
size?: number;
|
|
2142
1798
|
};
|
|
2143
1799
|
type StageProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
};
|
|
2154
|
-
declare function Stage({
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
//#endregion
|
|
2165
|
-
//#region src/core/Staging/MatcapTexture/MatcapTexture.d.ts
|
|
2166
|
-
declare function useMatcapTexture(id?: number | string, format?: number, onLoad?: (texture: Texture$2 | Texture$2[]) => void): [Texture$2, string, number];
|
|
2167
|
-
declare const MatcapTexture: ({
|
|
2168
|
-
children,
|
|
2169
|
-
id,
|
|
2170
|
-
format,
|
|
2171
|
-
onLoad
|
|
2172
|
-
}: {
|
|
2173
|
-
children?: (texture: ReturnType<typeof useMatcapTexture>) => React$1.ReactNode;
|
|
2174
|
-
id?: Parameters<typeof useMatcapTexture>[0];
|
|
2175
|
-
format?: Parameters<typeof useMatcapTexture>[1];
|
|
2176
|
-
onLoad?: Parameters<typeof useMatcapTexture>[2];
|
|
2177
|
-
}) => React$1.JSX.Element;
|
|
2178
|
-
//#endregion
|
|
2179
|
-
//#region src/core/Textures/NormalTexture/NormalTexture.d.ts
|
|
1800
|
+
preset?: 'rembrandt' | 'portrait' | 'upfront' | 'soft' | {
|
|
1801
|
+
main: [x: number, y: number, z: number];
|
|
1802
|
+
fill: [x: number, y: number, z: number];
|
|
1803
|
+
};
|
|
1804
|
+
shadows?: boolean | 'contact' | 'accumulative' | StageShadows;
|
|
1805
|
+
adjustCamera?: boolean | number;
|
|
1806
|
+
environment?: PresetsType | Partial<EnvironmentProps> | null;
|
|
1807
|
+
intensity?: number;
|
|
1808
|
+
center?: Partial<CenterProps>;
|
|
1809
|
+
};
|
|
1810
|
+
declare function Stage({ children, center, adjustCamera, intensity, shadows, environment, preset, ...props }: StageProps): React.JSX.Element;
|
|
1811
|
+
|
|
1812
|
+
declare function useMatcapTexture(id?: number | string, format?: number, onLoad?: (texture: Texture$1 | Texture$1[]) => void): [Texture$1, string, number];
|
|
1813
|
+
declare const MatcapTexture: ({ children, id, format, onLoad, }: {
|
|
1814
|
+
children?: (texture: ReturnType<typeof useMatcapTexture>) => React.ReactNode;
|
|
1815
|
+
id?: Parameters<typeof useMatcapTexture>[0];
|
|
1816
|
+
format?: Parameters<typeof useMatcapTexture>[1];
|
|
1817
|
+
onLoad?: Parameters<typeof useMatcapTexture>[2];
|
|
1818
|
+
}) => React.JSX.Element;
|
|
1819
|
+
|
|
2180
1820
|
type Settings = {
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
};
|
|
2185
|
-
declare function useNormalTexture(id?: number, settings?: Settings, onLoad?: (texture: Texture$
|
|
2186
|
-
declare const NormalTexture: ({
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
children?: (texture: ReturnType<typeof useNormalTexture>) => React$1.ReactNode;
|
|
2193
|
-
id?: Parameters<typeof useNormalTexture>[0];
|
|
2194
|
-
onLoad?: Parameters<typeof useNormalTexture>[2];
|
|
2195
|
-
} & Settings) => React$1.JSX.Element;
|
|
2196
|
-
//#endregion
|
|
2197
|
-
//#region src/core/UI/CycleRaycast/CycleRaycast.d.ts
|
|
1821
|
+
repeat?: number[];
|
|
1822
|
+
anisotropy?: number;
|
|
1823
|
+
offset?: number[];
|
|
1824
|
+
};
|
|
1825
|
+
declare function useNormalTexture(id?: number, settings?: Settings, onLoad?: (texture: Texture$1 | Texture$1[]) => void): [Texture$1, string, number];
|
|
1826
|
+
declare const NormalTexture: ({ children, id, onLoad, ...settings }: {
|
|
1827
|
+
children?: (texture: ReturnType<typeof useNormalTexture>) => React.ReactNode;
|
|
1828
|
+
id?: Parameters<typeof useNormalTexture>[0];
|
|
1829
|
+
onLoad?: Parameters<typeof useNormalTexture>[2];
|
|
1830
|
+
} & Settings) => React.JSX.Element;
|
|
1831
|
+
|
|
2198
1832
|
type CycleRaycastProps = {
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
};
|
|
2205
|
-
declare function CycleRaycast({
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
keyCode
|
|
2211
|
-
}: CycleRaycastProps): null;
|
|
2212
|
-
//#endregion
|
|
2213
|
-
//#region src/core/UI/Html/Html.d.ts
|
|
2214
|
-
declare function defaultCalculatePosition(el: Object3D$1, camera: Camera, size: {
|
|
2215
|
-
width: number;
|
|
2216
|
-
height: number;
|
|
1833
|
+
onChanged?: (hits: THREE.Intersection[], cycle: number) => null;
|
|
1834
|
+
preventDefault?: boolean;
|
|
1835
|
+
scroll?: boolean;
|
|
1836
|
+
keyCode?: number;
|
|
1837
|
+
portal?: React.RefObject<HTMLElement>;
|
|
1838
|
+
};
|
|
1839
|
+
declare function CycleRaycast({ onChanged, portal, preventDefault, scroll, keyCode, }: CycleRaycastProps): null;
|
|
1840
|
+
|
|
1841
|
+
declare function defaultCalculatePosition(el: Object3D, camera: Camera, size: {
|
|
1842
|
+
width: number;
|
|
1843
|
+
height: number;
|
|
2217
1844
|
}): number[];
|
|
2218
1845
|
type CalculatePosition = typeof defaultCalculatePosition;
|
|
2219
1846
|
type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
|
|
2220
|
-
interface HtmlProps extends Omit<Assign<React
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
1847
|
+
interface HtmlProps extends Omit<Assign<React.HTMLAttributes<HTMLDivElement>, ThreeElements['group']>, 'ref'> {
|
|
1848
|
+
prepend?: boolean;
|
|
1849
|
+
center?: boolean;
|
|
1850
|
+
fullscreen?: boolean;
|
|
1851
|
+
eps?: number;
|
|
1852
|
+
portal?: React.RefObject<HTMLElement>;
|
|
1853
|
+
distanceFactor?: number;
|
|
1854
|
+
sprite?: boolean;
|
|
1855
|
+
transform?: boolean;
|
|
1856
|
+
zIndexRange?: Array<number>;
|
|
1857
|
+
calculatePosition?: CalculatePosition;
|
|
1858
|
+
as?: string;
|
|
1859
|
+
wrapperClass?: string;
|
|
1860
|
+
pointerEvents?: PointerEventsProperties;
|
|
1861
|
+
occlude?: React.RefObject<Object3D>[] | boolean | 'raycast' | 'blending';
|
|
1862
|
+
onOcclude?: (hidden: boolean) => void;
|
|
1863
|
+
material?: React.ReactNode;
|
|
1864
|
+
geometry?: React.ReactNode;
|
|
1865
|
+
castShadow?: boolean;
|
|
1866
|
+
receiveShadow?: boolean;
|
|
2240
1867
|
}
|
|
2241
1868
|
declare const Html: ForwardRefComponent<HtmlProps, HTMLDivElement>;
|
|
2242
|
-
|
|
2243
|
-
//#region src/core/UI/useAspect/useAspect.d.ts
|
|
1869
|
+
|
|
2244
1870
|
declare function useAspect(width: number, height: number, factor?: number): [number, number, number];
|
|
2245
|
-
|
|
2246
|
-
//#region src/core/UI/useCursor/useCursor.d.ts
|
|
1871
|
+
|
|
2247
1872
|
declare function useCursor(hovered: boolean, onPointerOver?: string, onPointerOut?: string, container?: HTMLElement): void;
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
//#endregion
|
|
2252
|
-
//#region src/core/UI/ScreenSpace/ScreenSpace.d.ts
|
|
1873
|
+
|
|
1874
|
+
declare function useIntersect<T extends Object3D>(onChange: (visible: boolean) => void): React.RefObject<T>;
|
|
1875
|
+
|
|
2253
1876
|
type ScreenSpaceProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
2254
|
-
|
|
1877
|
+
depth?: number;
|
|
2255
1878
|
};
|
|
2256
1879
|
declare const ScreenSpace: ForwardRefComponent<ScreenSpaceProps, Group>;
|
|
2257
|
-
|
|
2258
|
-
//#region src/core/UI/Select/Select.d.ts
|
|
1880
|
+
|
|
2259
1881
|
type SelectProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
};
|
|
2268
|
-
declare function Select({
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
children,
|
|
2272
|
-
onChange,
|
|
2273
|
-
onChangePointerUp,
|
|
2274
|
-
border,
|
|
2275
|
-
backgroundColor,
|
|
2276
|
-
filter: customFilter,
|
|
2277
|
-
...props
|
|
2278
|
-
}: SelectProps): React$1.JSX.Element;
|
|
2279
|
-
declare function useSelect(): THREE$1.Object3D[];
|
|
2280
|
-
//#endregion
|
|
2281
|
-
//#region src/external/Performance/Bvh/Bvh.d.ts
|
|
1882
|
+
multiple?: boolean;
|
|
1883
|
+
box?: boolean;
|
|
1884
|
+
border?: string;
|
|
1885
|
+
backgroundColor?: string;
|
|
1886
|
+
onChange?: (selected: THREE.Object3D[]) => void;
|
|
1887
|
+
onChangePointerUp?: (selected: THREE.Object3D[]) => void;
|
|
1888
|
+
filter?: (selected: THREE.Object3D[]) => THREE.Object3D[];
|
|
1889
|
+
};
|
|
1890
|
+
declare function Select({ box, multiple, children, onChange, onChangePointerUp, border, backgroundColor, filter: customFilter, ...props }: SelectProps): React.JSX.Element;
|
|
1891
|
+
declare function useSelect(): THREE.Object3D[];
|
|
1892
|
+
|
|
2282
1893
|
interface BVHOptions {
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
1894
|
+
strategy?: SplitStrategy;
|
|
1895
|
+
verbose?: boolean;
|
|
1896
|
+
setBoundingBox?: boolean;
|
|
1897
|
+
maxDepth?: number;
|
|
1898
|
+
maxLeafTris?: number;
|
|
1899
|
+
indirect?: boolean;
|
|
2289
1900
|
}
|
|
2290
1901
|
type BvhProps = BVHOptions & ThreeElements['group'] & {
|
|
2291
|
-
|
|
2292
|
-
|
|
1902
|
+
enabled?: boolean;
|
|
1903
|
+
firstHitOnly?: boolean;
|
|
2293
1904
|
};
|
|
2294
|
-
declare function useBVH(mesh: React
|
|
1905
|
+
declare function useBVH(mesh: React.RefObject<Mesh | undefined>, options?: BVHOptions): void;
|
|
2295
1906
|
declare const Bvh: ForwardRefComponent<BvhProps, Group>;
|
|
2296
|
-
|
|
2297
|
-
//#region src/external/Controls/CameraControls/CameraControls.d.ts
|
|
1907
|
+
|
|
2298
1908
|
type CameraControlsProps = Omit<Overwrite<ThreeElement<typeof CameraControlsImpl>, {
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
1909
|
+
impl?: typeof CameraControlsImpl;
|
|
1910
|
+
camera?: PerspectiveCamera$1 | OrthographicCamera$1;
|
|
1911
|
+
domElement?: HTMLElement;
|
|
1912
|
+
makeDefault?: boolean;
|
|
1913
|
+
onControlStart?: (e?: {
|
|
1914
|
+
type: 'controlstart';
|
|
1915
|
+
}) => void;
|
|
1916
|
+
onControl?: (e?: {
|
|
1917
|
+
type: 'control';
|
|
1918
|
+
}) => void;
|
|
1919
|
+
onControlEnd?: (e?: {
|
|
1920
|
+
type: 'controlend';
|
|
1921
|
+
}) => void;
|
|
1922
|
+
onTransitionStart?: (e?: {
|
|
1923
|
+
type: 'transitionstart';
|
|
1924
|
+
}) => void;
|
|
1925
|
+
onUpdate?: (e?: {
|
|
1926
|
+
type: 'update';
|
|
1927
|
+
}) => void;
|
|
1928
|
+
onWake?: (e?: {
|
|
1929
|
+
type: 'wake';
|
|
1930
|
+
}) => void;
|
|
1931
|
+
onRest?: (e?: {
|
|
1932
|
+
type: 'rest';
|
|
1933
|
+
}) => void;
|
|
1934
|
+
onSleep?: (e?: {
|
|
1935
|
+
type: 'sleep';
|
|
1936
|
+
}) => void;
|
|
1937
|
+
onStart?: (e?: {
|
|
1938
|
+
type: 'controlstart';
|
|
1939
|
+
}) => void;
|
|
1940
|
+
onEnd?: (e?: {
|
|
1941
|
+
type: 'controlend';
|
|
1942
|
+
}) => void;
|
|
1943
|
+
onChange?: (e?: {
|
|
1944
|
+
type: string;
|
|
1945
|
+
}) => void;
|
|
1946
|
+
events?: boolean;
|
|
1947
|
+
regress?: boolean;
|
|
2338
1948
|
}>, 'ref' | 'args' | keyof EventDispatcher>;
|
|
2339
1949
|
declare const CameraControls: ForwardRefComponent<CameraControlsProps, CameraControlsImpl>;
|
|
2340
1950
|
type CameraControls = CameraControlsImpl;
|
|
2341
|
-
|
|
2342
|
-
//#region src/external/Geometry/Facemesh/Facemesh.d.ts
|
|
1951
|
+
|
|
2343
1952
|
type MediaPipeFaceMesh = typeof FacemeshDatas.SAMPLE_FACE;
|
|
2344
1953
|
type MediaPipePoints = typeof FacemeshDatas.SAMPLE_FACE.keypoints | (typeof FacemeshDatas.SAMPLE_FACELANDMARKER_RESULT.faceLandmarks)[0];
|
|
2345
1954
|
type FacemeshProps = {
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
1955
|
+
points?: MediaPipePoints;
|
|
1956
|
+
face?: MediaPipeFaceMesh;
|
|
1957
|
+
width?: number;
|
|
1958
|
+
height?: number;
|
|
1959
|
+
depth?: number;
|
|
1960
|
+
verticalTri?: [number, number, number];
|
|
1961
|
+
origin?: number | THREE.Vector3;
|
|
1962
|
+
facialTransformationMatrix?: (typeof FacemeshDatas.SAMPLE_FACELANDMARKER_RESULT.facialTransformationMatrixes)[0];
|
|
1963
|
+
offset?: boolean;
|
|
1964
|
+
offsetScalar?: number;
|
|
1965
|
+
faceBlendshapes?: (typeof FacemeshDatas.SAMPLE_FACELANDMARKER_RESULT.faceBlendshapes)[0];
|
|
1966
|
+
eyes?: boolean;
|
|
1967
|
+
eyesAsOrigin?: boolean;
|
|
1968
|
+
debug?: boolean;
|
|
1969
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
2361
1970
|
} & Omit<ThreeElements['group'], 'ref'>;
|
|
2362
1971
|
type FacemeshApi = {
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
1972
|
+
meshRef: React.RefObject<THREE.Mesh>;
|
|
1973
|
+
outerRef: React.RefObject<THREE.Group>;
|
|
1974
|
+
eyeRightRef: React.RefObject<FacemeshEyeApi>;
|
|
1975
|
+
eyeLeftRef: React.RefObject<FacemeshEyeApi>;
|
|
2367
1976
|
};
|
|
2368
|
-
declare const Facemesh: React
|
|
1977
|
+
declare const Facemesh: React.ForwardRefExoticComponent<Omit<FacemeshProps, "ref"> & React.RefAttributes<FacemeshApi>>;
|
|
2369
1978
|
type FacemeshEyeProps = {
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
1979
|
+
side: 'left' | 'right';
|
|
1980
|
+
debug?: boolean;
|
|
1981
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
2373
1982
|
};
|
|
2374
1983
|
type FacemeshEyeApi = {
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
1984
|
+
eyeMeshRef: React.RefObject<THREE.Group>;
|
|
1985
|
+
irisDirRef: React.RefObject<THREE.Group>;
|
|
1986
|
+
_computeSphere: (faceGeometry: THREE.BufferGeometry) => THREE.Sphere;
|
|
1987
|
+
_update: (faceGeometry: THREE.BufferGeometry, faceBlendshapes: FacemeshProps['faceBlendshapes'], sphere?: THREE.Sphere) => void;
|
|
2379
1988
|
};
|
|
2380
1989
|
declare const FacemeshEyeDefaults: {
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
};
|
|
2398
|
-
declare const FacemeshEye: React
|
|
1990
|
+
contourLandmarks: {
|
|
1991
|
+
right: number[];
|
|
1992
|
+
left: number[];
|
|
1993
|
+
};
|
|
1994
|
+
blendshapes: {
|
|
1995
|
+
right: number[];
|
|
1996
|
+
left: number[];
|
|
1997
|
+
};
|
|
1998
|
+
color: {
|
|
1999
|
+
right: string;
|
|
2000
|
+
left: string;
|
|
2001
|
+
};
|
|
2002
|
+
fov: {
|
|
2003
|
+
horizontal: number;
|
|
2004
|
+
vertical: number;
|
|
2005
|
+
};
|
|
2006
|
+
};
|
|
2007
|
+
declare const FacemeshEye: React.ForwardRefExoticComponent<FacemeshEyeProps & React.RefAttributes<FacemeshEyeApi>>;
|
|
2399
2008
|
declare const FacemeshDatas: {
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2009
|
+
TRIANGULATION: number[];
|
|
2010
|
+
SAMPLE_FACE: {
|
|
2011
|
+
keypoints: ({
|
|
2012
|
+
x: number;
|
|
2013
|
+
y: number;
|
|
2014
|
+
z: number;
|
|
2015
|
+
name: string;
|
|
2016
|
+
} | {
|
|
2017
|
+
x: number;
|
|
2018
|
+
y: number;
|
|
2019
|
+
z: number;
|
|
2020
|
+
name?: undefined;
|
|
2021
|
+
})[];
|
|
2022
|
+
box: {
|
|
2023
|
+
xMin: number;
|
|
2024
|
+
yMin: number;
|
|
2025
|
+
xMax: number;
|
|
2026
|
+
yMax: number;
|
|
2027
|
+
width: number;
|
|
2028
|
+
height: number;
|
|
2029
|
+
};
|
|
2030
|
+
};
|
|
2031
|
+
SAMPLE_FACELANDMARKER_RESULT: {
|
|
2032
|
+
faceLandmarks: {
|
|
2033
|
+
x: number;
|
|
2034
|
+
y: number;
|
|
2035
|
+
z: number;
|
|
2036
|
+
}[][];
|
|
2037
|
+
faceBlendshapes: {
|
|
2038
|
+
categories: {
|
|
2039
|
+
index: number;
|
|
2040
|
+
score: number;
|
|
2041
|
+
categoryName: string;
|
|
2042
|
+
displayName: string;
|
|
2043
|
+
}[];
|
|
2044
|
+
headIndex: number;
|
|
2045
|
+
headName: string;
|
|
2046
|
+
}[];
|
|
2047
|
+
facialTransformationMatrixes: {
|
|
2048
|
+
rows: number;
|
|
2049
|
+
columns: number;
|
|
2050
|
+
data: number[];
|
|
2051
|
+
}[];
|
|
2420
2052
|
};
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
faceLandmarks: {
|
|
2424
|
-
x: number;
|
|
2425
|
-
y: number;
|
|
2426
|
-
z: number;
|
|
2427
|
-
}[][];
|
|
2428
|
-
faceBlendshapes: {
|
|
2429
|
-
categories: {
|
|
2430
|
-
index: number;
|
|
2431
|
-
score: number;
|
|
2432
|
-
categoryName: string;
|
|
2433
|
-
displayName: string;
|
|
2434
|
-
}[];
|
|
2435
|
-
headIndex: number;
|
|
2436
|
-
headName: string;
|
|
2437
|
-
}[];
|
|
2438
|
-
facialTransformationMatrixes: {
|
|
2439
|
-
rows: number;
|
|
2440
|
-
columns: number;
|
|
2441
|
-
data: number[];
|
|
2442
|
-
}[];
|
|
2443
|
-
};
|
|
2444
|
-
};
|
|
2445
|
-
//#endregion
|
|
2446
|
-
//#region src/external/Controls/FaceControls/FaceControls.d.ts
|
|
2053
|
+
};
|
|
2054
|
+
|
|
2447
2055
|
type FaceControlsProps = {
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
};
|
|
2463
|
-
type FaceControlsApi = THREE
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
};
|
|
2468
|
-
declare const FaceControls: React
|
|
2056
|
+
camera?: THREE.Camera;
|
|
2057
|
+
videoTexture?: VideoTextureProps;
|
|
2058
|
+
manualDetect?: boolean;
|
|
2059
|
+
faceLandmarkerResult?: FaceLandmarkerResult;
|
|
2060
|
+
manualUpdate?: boolean;
|
|
2061
|
+
makeDefault?: boolean;
|
|
2062
|
+
smoothTime?: number;
|
|
2063
|
+
offset?: boolean;
|
|
2064
|
+
offsetScalar?: number;
|
|
2065
|
+
eyes?: boolean;
|
|
2066
|
+
eyesAsOrigin?: boolean;
|
|
2067
|
+
depth?: number;
|
|
2068
|
+
debug?: boolean;
|
|
2069
|
+
facemesh?: FacemeshProps;
|
|
2070
|
+
};
|
|
2071
|
+
type FaceControlsApi = THREE.EventDispatcher & {
|
|
2072
|
+
computeTarget: () => THREE.Object3D;
|
|
2073
|
+
update: (delta: number, target?: THREE.Object3D) => void;
|
|
2074
|
+
facemeshApiRef: RefObject<FacemeshApi>;
|
|
2075
|
+
};
|
|
2076
|
+
declare const FaceControls: React.ForwardRefExoticComponent<FaceControlsProps & React.RefAttributes<FaceControlsApi>>;
|
|
2469
2077
|
declare const useFaceControls: () => FaceControlsApi;
|
|
2470
|
-
|
|
2471
|
-
//#region src/external/Geometry/Splat/Splat.d.ts
|
|
2078
|
+
|
|
2472
2079
|
type SplatMaterialType = {
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
};
|
|
2480
|
-
type TargetMesh = THREE
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2080
|
+
alphaTest?: number;
|
|
2081
|
+
alphaHash?: boolean;
|
|
2082
|
+
centerAndScaleTexture?: THREE.DataTexture;
|
|
2083
|
+
covAndColorTexture?: THREE.DataTexture;
|
|
2084
|
+
viewport?: THREE.Vector2;
|
|
2085
|
+
focal?: number;
|
|
2086
|
+
};
|
|
2087
|
+
type TargetMesh = THREE.Mesh<THREE.InstancedBufferGeometry, THREE.ShaderMaterial & SplatMaterialType> & {
|
|
2088
|
+
ready: boolean;
|
|
2089
|
+
sorted: boolean;
|
|
2090
|
+
pm: THREE.Matrix4;
|
|
2091
|
+
vm1: THREE.Matrix4;
|
|
2092
|
+
vm2: THREE.Matrix4;
|
|
2093
|
+
viewport: THREE.Vector4;
|
|
2487
2094
|
};
|
|
2488
2095
|
type SharedState = {
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2096
|
+
url: string;
|
|
2097
|
+
gl: THREE.WebGLRenderer;
|
|
2098
|
+
worker: Worker;
|
|
2099
|
+
manager: THREE.LoadingManager;
|
|
2100
|
+
stream: ReadableStreamDefaultReader<Uint8Array>;
|
|
2101
|
+
loading: boolean;
|
|
2102
|
+
loaded: boolean;
|
|
2103
|
+
loadedVertexCount: number;
|
|
2104
|
+
rowLength: number;
|
|
2105
|
+
maxVertexes: number;
|
|
2106
|
+
chunkSize: number;
|
|
2107
|
+
totalDownloadBytes: number;
|
|
2108
|
+
numVertices: number;
|
|
2109
|
+
bufferTextureWidth: number;
|
|
2110
|
+
bufferTextureHeight: number;
|
|
2111
|
+
centerAndScaleData: Float32Array;
|
|
2112
|
+
covAndColorData: Uint32Array;
|
|
2113
|
+
covAndColorTexture: THREE.DataTexture;
|
|
2114
|
+
centerAndScaleTexture: THREE.DataTexture;
|
|
2115
|
+
connect(target: TargetMesh): () => void;
|
|
2116
|
+
update(target: TargetMesh, camera: THREE.Camera, hashed: boolean): void;
|
|
2117
|
+
onProgress?: (event: ProgressEvent) => void;
|
|
2511
2118
|
};
|
|
2512
2119
|
declare module '@react-three/fiber' {
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2120
|
+
interface ThreeElements {
|
|
2121
|
+
splatMaterial: SplatMaterialType & ThreeElements['shaderMaterial'];
|
|
2122
|
+
}
|
|
2516
2123
|
}
|
|
2517
2124
|
type SplatProps = {
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2125
|
+
src: string;
|
|
2126
|
+
toneMapped?: boolean;
|
|
2127
|
+
alphaTest?: number;
|
|
2128
|
+
alphaHash?: boolean;
|
|
2129
|
+
chunkSize?: number;
|
|
2523
2130
|
} & Omit<ThreeElements['mesh'], 'ref'>;
|
|
2524
|
-
declare function Splat({
|
|
2525
|
-
|
|
2526
|
-
toneMapped,
|
|
2527
|
-
alphaTest,
|
|
2528
|
-
alphaHash,
|
|
2529
|
-
chunkSize,
|
|
2530
|
-
...props
|
|
2531
|
-
}: SplatProps): React$1.JSX.Element;
|
|
2532
|
-
//#endregion
|
|
2533
|
-
//#region src/external/Helpers/FaceLandmarker/FaceLandmarker.d.ts
|
|
2131
|
+
declare function Splat({ src, toneMapped, alphaTest, alphaHash, chunkSize, ...props }: SplatProps): React.JSX.Element;
|
|
2132
|
+
|
|
2534
2133
|
type FaceLandmarkerProps = {
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2134
|
+
basePath?: string;
|
|
2135
|
+
options?: FaceLandmarkerOptions;
|
|
2136
|
+
children?: ReactNode;
|
|
2538
2137
|
};
|
|
2539
2138
|
declare const FaceLandmarkerDefaults: {
|
|
2540
|
-
|
|
2541
|
-
|
|
2139
|
+
basePath: string;
|
|
2140
|
+
options: FaceLandmarkerOptions;
|
|
2542
2141
|
};
|
|
2543
|
-
declare const FaceLandmarker: React
|
|
2142
|
+
declare const FaceLandmarker: React.ForwardRefExoticComponent<FaceLandmarkerProps & React.RefAttributes<FaceLandmarker$1>>;
|
|
2544
2143
|
declare function useFaceLandmarker(): FaceLandmarker$1 | undefined;
|
|
2545
|
-
|
|
2546
|
-
//#region src/experimental/Geometry/MarchingCubes/MarchingCubes.d.ts
|
|
2144
|
+
|
|
2547
2145
|
type MarchingCubesProps = {
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2146
|
+
resolution?: number;
|
|
2147
|
+
maxPolyCount?: number;
|
|
2148
|
+
enableUvs?: boolean;
|
|
2149
|
+
enableColors?: boolean;
|
|
2552
2150
|
} & Omit<ThreeElements['group'], 'ref'>;
|
|
2553
2151
|
declare const MarchingCubes: ForwardRefComponent<MarchingCubesProps, MarchingCubes$1>;
|
|
2554
2152
|
type MarchingCubeProps = {
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2153
|
+
strength?: number;
|
|
2154
|
+
subtract?: number;
|
|
2155
|
+
color?: Color;
|
|
2558
2156
|
} & ThreeElements['group'];
|
|
2559
|
-
declare const MarchingCube: ForwardRefComponent<MarchingCubeProps, THREE
|
|
2157
|
+
declare const MarchingCube: ForwardRefComponent<MarchingCubeProps, THREE.Group>;
|
|
2560
2158
|
type MarchingPlaneProps = {
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2159
|
+
planeType?: 'x' | 'y' | 'z';
|
|
2160
|
+
strength?: number;
|
|
2161
|
+
subtract?: number;
|
|
2564
2162
|
} & ThreeElements['group'];
|
|
2565
|
-
declare const MarchingPlane: ForwardRefComponent<MarchingPlaneProps, THREE
|
|
2566
|
-
|
|
2567
|
-
export { AdaptiveDpr, AdaptiveEvents, ArcballControls,
|
|
2163
|
+
declare const MarchingPlane: ForwardRefComponent<MarchingPlaneProps, THREE.Group>;
|
|
2164
|
+
|
|
2165
|
+
export { AdaptiveDpr, AdaptiveEvents, ArcballControls, BBAnchor, Backdrop, Billboard, Bounds, Box, Bvh, CameraControls, CameraShake, Capsule, CatmullRomLine, Center, Circle, Clone, Cloud, CloudInstance, Clouds, ComputedAttribute, Cone, CubeCamera, CubeTexture, CubicBezierLine, CurveModifier, CycleRaycast, Cylinder, Decal, Detailed, DetectGPU, DeviceOrientationControls, Dodecahedron, DragControls, Edges, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, Example, Extrude, FaceControls, FaceLandmarker, FaceLandmarkerDefaults, Facemesh, FacemeshDatas, FacemeshEye, FacemeshEyeDefaults, Fbo, Fbx, FirstPersonControls, Fisheye, Float, FlyControls, GizmoHelper, GizmoViewcube, GizmoViewport, Gltf, Helper, Html, Hud, Icosahedron, Instance, InstancedAttribute, Instances, IsObject, KeyboardControls, Ktx2, Lathe, Lightformer, Loader, MapControls, MarchingCube, MarchingCubes, MarchingPlane, Mask, MatcapTexture, Merged, MotionPathControls, NormalTexture, Octahedron, OrbitControls, OrthographicCamera, Outlines, PerformanceMonitor, PerspectiveCamera, PivotControls, Plane, Point, PointMaterial, PointMaterialImpl, PointerLockControls, Points, PointsBuffer, Polyhedron, PositionMesh, PositionPoint, PositionalAudio, Preload, PresentationControls, Progress, QuadraticBezierLine, RenderCubeTexture, RenderTexture, Resize, Ring, RoundedBox, RoundedBoxGeometry, Sampler, ScreenQuad, ScreenSizer, ScreenSpace, ScreenVideoTexture, Scroll, ScrollControls, Select, Shadow, Shape, Sky, Sphere, Splat, SpriteAnimator, Stage, Stats, StatsGl, Svg, Tetrahedron, Text3D, Texture, Torus, TorusKnot, TrackballControls, Trail, TrailTexture, TransformControls, Tube, VideoTexture, View, WebcamVideoTexture, Wireframe, calcPosFromAngles, checkIfFrameIsEmpty, createInstances, getFirstFrame, meshBounds, presetsObj, useAnimations, useAspect, useBVH, useBounds, useContextBridge, useCubeCamera, useCubeTexture, useCursor, useCustomRaycast, useDepthBuffer, useDetectGPU, useEnvironment, useFBO, useFBX, useFaceControls, useFaceLandmarker, useFont, useGLTF, useGizmoContext, useHelper, useIntersect, useKTX2, useKeyboardControls, useMask, useMatcapTexture, useMotion, useNormalTexture, usePerformanceMonitor, useProgress, useScroll, useSelect, useSpriteAnimator, useSpriteLoader, useSurfaceSampler, useTexture, useTrail, useTrailTexture, useVideoTexture };
|
|
2166
|
+
export type { ArcballControlsProps, Args, BBAnchorProps, BVHOptions, BackdropProps, BillboardProps, BoundsApi, BoundsProps, BvhProps, CalculatePosition, CameraControlsProps, CameraShakeProps, CatmullRomLineProps, CenterProps, CloneProps, CloudProps, CloudsProps, ComputedAttributeProps, ContainerProps, CubeCameraOptions, CubeCameraProps, CubeTextureProps, CubicBezierLineProps, CurveModifierProps, CurveModifierRef, CycleRaycastProps, DecalProps, DetailedProps, DetectGPUProps, DeviceOrientationControlsProps, DragControlsProps, EdgesProps, EnvironmentLoaderProps, EnvironmentProps, ExampleApi, ExampleProps, FaceControlsApi, FaceControlsProps, FaceLandmarkerProps, FacemeshApi, FacemeshEyeApi, FacemeshEyeProps, FacemeshProps, FboProps, FirstPersonControlsProps, FisheyeProps, FloatProps, FlyControlsProps, FontData, FrameData, GizmoHelperProps, GltfProps, Glyph, HelperProps, HtmlProps, HudProps, InstanceProps, InstancedAttributeProps, InstancesProps, KeyboardControlsEntry, KeyboardControlsProps, LightProps, LoaderOptions, MapControlsProps, MarchingCubeProps, MarchingCubesProps, MarchingPlaneProps, MaskProps, MediaPipeFaceMesh, MediaPipePoints, MergedProps, MetaData, MotionPathProps, MotionPathRef, OnCenterCallbackProps, OrbitControlsChangeEvent, OrbitControlsProps, OrthographicCameraProps, OutlinesProps, PerformanceMonitorApi, PerformanceMonitorProps, PerspectiveCameraProps, PivotControlsProps, PointMaterialProps, PointerLockControlsProps, PointsBuffersProps, PointsInstancesProps, PositionalAudioProps, PreloadProps, PresentationControlProps, PresetsType, QuadraticBezierLineProps, QuadraticBezierLineRef, RenderCubeTextureApi, RenderCubeTextureProps, RenderTextureProps, ResizeProps, RoundedBoxGeometryProps, RoundedBoxProps, SamplerProps, ScreenQuadProps, ScreenSizerProps, ScreenSpaceProps, ScreenVideoTextureProps, ScrollControlsProps, ScrollControlsState, ScrollProps, SelectProps, ShadowProps, ShadowType, ShakeController, ShapeProps, SharedState, Size, SizeProps, SkyProps, SplatMaterialType, SplatProps, SpriteAnimatorProps, SpriteData, StageProps, StatsGlProps, StatsProps, SvgProps, TargetMesh, Text3DProps, TrackballControlsProps, TrailProps, TrailTextureProps, TransformControlsProps, TransformFn, VideoTextureProps, ViewProps, ViewportProps, WebcamVideoTextureProps, useSurfaceSamplerProps };
|