@react-three/fiber 8.0.0-beta.1 → 8.0.0-beta.2
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.
|
@@ -10,7 +10,7 @@ export declare type Extensions = (loader: THREE.Loader) => void;
|
|
|
10
10
|
export declare type LoaderResult<T> = T extends any[] ? Loader<T[number]> : Loader<T>;
|
|
11
11
|
export declare type ConditionalType<Child, Parent, Truthy, Falsy> = Child extends Parent ? Truthy : Falsy;
|
|
12
12
|
export declare type BranchingReturn<T, Parent, Coerced> = ConditionalType<T, Parent, Coerced, T>;
|
|
13
|
-
export declare function useStore(): import("zustand").UseStore<RootState
|
|
13
|
+
export declare function useStore(): import("zustand").UseStore<RootState, import("zustand").StoreApi<RootState>>;
|
|
14
14
|
export declare function useThree<T = RootState>(selector?: StateSelector<RootState, T>, equalityFn?: EqualityChecker<T>): T;
|
|
15
15
|
export declare function useFrame(callback: RenderCallback, renderPriority?: number): null;
|
|
16
16
|
export declare function useGraph(object: THREE.Object3D): ObjectMap;
|
|
@@ -110,6 +110,6 @@ export declare type StoreProps = {
|
|
|
110
110
|
};
|
|
111
111
|
onPointerMissed?: (event: MouseEvent) => void;
|
|
112
112
|
};
|
|
113
|
-
declare const context: React.Context<UseStore<RootState
|
|
113
|
+
declare const context: React.Context<UseStore<RootState, import("zustand").StoreApi<RootState>>>;
|
|
114
114
|
declare const createStore: (invalidate: (state?: RootState | undefined) => void, advance: (timestamp: number, runGlobalEffects?: boolean | undefined, state?: RootState | undefined, frame?: THREE.XRFrame | undefined) => void) => UseStore<RootState>;
|
|
115
115
|
export { createStore, context };
|
|
@@ -41,6 +41,7 @@ export declare type Object3DNode<T, P> = Overwrite<Node<T, P>, {
|
|
|
41
41
|
export declare type BufferGeometryNode<T extends THREE.BufferGeometry, P> = Node<T, P>;
|
|
42
42
|
export declare type MaterialNode<T extends THREE.Material, P> = Node<T, P>;
|
|
43
43
|
export declare type LightNode<T extends THREE.Light, P> = Object3DNode<T, P>;
|
|
44
|
+
export declare type Object3DProps = Object3DNode<THREE.Object3D, typeof THREE.Object3D>;
|
|
44
45
|
export declare type AudioListenerProps = Object3DNode<THREE.AudioListener, typeof THREE.AudioListener>;
|
|
45
46
|
export declare type PositionalAudioProps = Object3DNode<THREE.PositionalAudio, typeof THREE.PositionalAudio>;
|
|
46
47
|
export declare type MeshProps = Object3DNode<THREE.Mesh, typeof THREE.Mesh>;
|
|
@@ -166,7 +167,15 @@ export declare type Matrix3Props = Node<THREE.Matrix3, typeof THREE.Matrix3>;
|
|
|
166
167
|
export declare type Matrix4Props = Node<THREE.Matrix4, typeof THREE.Matrix4>;
|
|
167
168
|
export declare type QuaternionProps = Node<THREE.Quaternion, typeof THREE.Quaternion>;
|
|
168
169
|
export declare type BufferAttributeProps = Node<THREE.BufferAttribute, typeof THREE.BufferAttribute>;
|
|
170
|
+
export declare type Float16BufferAttributeProps = Node<THREE.Float16BufferAttribute, typeof THREE.Float16BufferAttribute>;
|
|
169
171
|
export declare type Float32BufferAttributeProps = Node<THREE.Float32BufferAttribute, typeof THREE.Float32BufferAttribute>;
|
|
172
|
+
export declare type Float64BufferAttributeProps = Node<THREE.Float64BufferAttribute, typeof THREE.Float64BufferAttribute>;
|
|
173
|
+
export declare type Int8BufferAttributeProps = Node<THREE.Int8BufferAttribute, typeof THREE.Int8BufferAttribute>;
|
|
174
|
+
export declare type Int16BufferAttributeProps = Node<THREE.Int16BufferAttribute, typeof THREE.Int16BufferAttribute>;
|
|
175
|
+
export declare type Int32BufferAttributeProps = Node<THREE.Int32BufferAttribute, typeof THREE.Int32BufferAttribute>;
|
|
176
|
+
export declare type Uint8BufferAttributeProps = Node<THREE.Uint8BufferAttribute, typeof THREE.Uint8BufferAttribute>;
|
|
177
|
+
export declare type Uint16BufferAttributeProps = Node<THREE.Uint16BufferAttribute, typeof THREE.Uint16BufferAttribute>;
|
|
178
|
+
export declare type Uint32BufferAttributeProps = Node<THREE.Uint32BufferAttribute, typeof THREE.Uint32BufferAttribute>;
|
|
170
179
|
export declare type InstancedBufferAttributeProps = Node<THREE.InstancedBufferAttribute, typeof THREE.InstancedBufferAttribute>;
|
|
171
180
|
export declare type ColorProps = Node<THREE.Color, ColorArray>;
|
|
172
181
|
export declare type FogProps = Node<THREE.Fog, typeof THREE.Fog>;
|
|
@@ -175,6 +184,7 @@ export declare type ShapeProps = Node<THREE.Shape, typeof THREE.Shape>;
|
|
|
175
184
|
declare global {
|
|
176
185
|
namespace JSX {
|
|
177
186
|
interface IntrinsicElements {
|
|
187
|
+
object3D: Object3DProps;
|
|
178
188
|
audioListener: AudioListenerProps;
|
|
179
189
|
positionalAudio: PositionalAudioProps;
|
|
180
190
|
mesh: MeshProps;
|
|
@@ -296,7 +306,15 @@ declare global {
|
|
|
296
306
|
matrix4: Matrix4Props;
|
|
297
307
|
quaternion: QuaternionProps;
|
|
298
308
|
bufferAttribute: BufferAttributeProps;
|
|
309
|
+
float16BufferAttribute: Float16BufferAttributeProps;
|
|
299
310
|
float32BufferAttribute: Float32BufferAttributeProps;
|
|
311
|
+
float64BufferAttribute: Float64BufferAttributeProps;
|
|
312
|
+
int8BufferAttribute: Int8BufferAttributeProps;
|
|
313
|
+
int16BufferAttribute: Int16BufferAttributeProps;
|
|
314
|
+
int32BufferAttribute: Int32BufferAttributeProps;
|
|
315
|
+
uint8BufferAttribute: Uint8BufferAttributeProps;
|
|
316
|
+
uint16BufferAttribute: Uint16BufferAttributeProps;
|
|
317
|
+
uint32BufferAttribute: Uint32BufferAttributeProps;
|
|
300
318
|
instancedBufferAttribute: InstancedBufferAttributeProps;
|
|
301
319
|
color: ColorProps;
|
|
302
320
|
fog: FogProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/fiber",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.2",
|
|
4
4
|
"description": "A React renderer for Threejs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"prebuild": "cp ../../readme.md readme.md"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@babel/runtime": "^7.
|
|
45
|
+
"@babel/runtime": "^7.17.2",
|
|
46
46
|
"react-merge-refs": "^1.1.0",
|
|
47
|
-
"react-reconciler": "^0.27.0-rc.
|
|
47
|
+
"react-reconciler": "^0.27.0-rc.1",
|
|
48
48
|
"react-use-measure": "^2.1.1",
|
|
49
|
-
"scheduler": "0.21.0-rc.
|
|
49
|
+
"scheduler": "0.21.0-rc.1",
|
|
50
50
|
"suspend-react": "^0.0.8",
|
|
51
|
-
"zustand": "^3.
|
|
51
|
+
"zustand": "^3.7.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": ">=18.0",
|