@react-three/fiber 8.15.0 → 8.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
1
|
import { Root } from './renderer';
|
|
3
2
|
import { RootState } from './store';
|
|
4
3
|
export declare type GlobalRenderCallback = (timeStamp: number) => void;
|
|
@@ -10,5 +9,5 @@ export declare function flushGlobalEffects(type: GlobalEffectType, timestamp: nu
|
|
|
10
9
|
export declare function createLoop<TCanvas>(roots: Map<TCanvas, Root>): {
|
|
11
10
|
loop: (timestamp: number) => void;
|
|
12
11
|
invalidate: (state?: RootState | undefined, frames?: number) => void;
|
|
13
|
-
advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState | undefined, frame?:
|
|
12
|
+
advance: (timestamp: number, runGlobalEffects?: boolean, state?: RootState | undefined, frame?: import("three").XRFrame | undefined) => void;
|
|
14
13
|
};
|
|
@@ -2,7 +2,7 @@ import * as THREE from 'three';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { GetState, SetState, StoreApi, UseBoundStore } from 'zustand';
|
|
4
4
|
import { DomEvent, EventManager, PointerCaptureTarget, ThreeEvent } from './events';
|
|
5
|
-
import { Camera } from './utils';
|
|
5
|
+
import { _XRFrame, Camera } from './utils';
|
|
6
6
|
export declare const privateKeys: readonly ["set", "get", "setSize", "setFrameloop", "setDpr", "events", "invalidate", "advance", "size", "viewport"];
|
|
7
7
|
export declare type PrivateKeys = typeof privateKeys[number];
|
|
8
8
|
export interface Intersection extends THREE.Intersection {
|
|
@@ -28,7 +28,7 @@ export declare type Viewport = Size & {
|
|
|
28
28
|
distance: number;
|
|
29
29
|
aspect: number;
|
|
30
30
|
};
|
|
31
|
-
export declare type RenderCallback = (state: RootState, delta: number, frame?:
|
|
31
|
+
export declare type RenderCallback = (state: RootState, delta: number, frame?: _XRFrame) => void;
|
|
32
32
|
export declare type Performance = {
|
|
33
33
|
current: number;
|
|
34
34
|
min: number;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
/// <reference types="webxr" />
|
|
1
2
|
import * as THREE from 'three';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import { AttachType, Instance, InstanceProps, LocalState } from './renderer';
|
|
4
5
|
import { Dpr, Renderer, RootState, Size } from './store';
|
|
6
|
+
declare type _DeprecatedXRFrame = THREE.XRFrame;
|
|
7
|
+
export declare type _XRFrame = THREE.WebGLRenderTargetOptions extends {
|
|
8
|
+
samples?: number;
|
|
9
|
+
} ? XRFrame : _DeprecatedXRFrame;
|
|
5
10
|
export declare const hasColorSpace: <T extends object | Renderer | THREE.Texture, P = T extends Renderer ? {
|
|
6
11
|
outputColorSpace: string;
|
|
7
12
|
} : {
|
|
@@ -92,3 +97,4 @@ export declare function updateInstance(instance: Instance): void;
|
|
|
92
97
|
export declare function updateCamera(camera: Camera & {
|
|
93
98
|
manual?: boolean;
|
|
94
99
|
}, size: Size): void;
|
|
100
|
+
export {};
|
|
@@ -105,7 +105,7 @@ export declare type ConeGeometryProps = BufferGeometryNode<THREE.ConeGeometry, t
|
|
|
105
105
|
export declare type CylinderGeometryProps = BufferGeometryNode<THREE.CylinderGeometry, typeof THREE.CylinderGeometry>;
|
|
106
106
|
export declare type CircleGeometryProps = BufferGeometryNode<THREE.CircleGeometry, typeof THREE.CircleGeometry>;
|
|
107
107
|
export declare type BoxGeometryProps = BufferGeometryNode<THREE.BoxGeometry, typeof THREE.BoxGeometry>;
|
|
108
|
-
export declare type CapsuleGeometryProps = BufferGeometryNode<THREE.
|
|
108
|
+
export declare type CapsuleGeometryProps = BufferGeometryNode<THREE.CapsuleGeometry, typeof THREE.CapsuleGeometry>;
|
|
109
109
|
export declare type MaterialProps = MaterialNode<THREE.Material, [THREE.MaterialParameters]>;
|
|
110
110
|
export declare type ShadowMaterialProps = MaterialNode<THREE.ShadowMaterial, [THREE.ShaderMaterialParameters]>;
|
|
111
111
|
export declare type SpriteMaterialProps = MaterialNode<THREE.SpriteMaterial, [THREE.SpriteMaterialParameters]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/fiber",
|
|
3
|
-
"version": "8.15.
|
|
3
|
+
"version": "8.15.1",
|
|
4
4
|
"description": "A React renderer for Threejs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/runtime": "^7.17.8",
|
|
46
46
|
"@types/react-reconciler": "^0.26.7",
|
|
47
|
+
"@types/webxr": "*",
|
|
47
48
|
"base64-js": "^1.5.1",
|
|
48
49
|
"buffer": "^6.0.3",
|
|
49
50
|
"its-fine": "^1.0.6",
|