@types/three 0.127.1 → 0.128.0
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.
- three/README.md +1 -1
- three/examples/jsm/interactive/HTMLMesh.d.ts +5 -0
- three/examples/jsm/interactive/InteractiveGroup.d.ts +5 -0
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -0
- three/examples/jsm/postprocessing/SSRPass.d.ts +1 -1
- three/examples/jsm/shaders/SSRShader.d.ts +1 -2
- three/index.d.ts +1 -1
- three/package.json +2 -2
- three/src/renderers/webxr/WebXR.d.ts +11 -1
- three/examples/jsm/loaders/XLoader.d.ts +0 -19
three/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for three (https://threejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 11 May 2021 06:31:31 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `THREE`
|
|
14
14
|
|
|
@@ -101,6 +101,7 @@ export class GLTFParser {
|
|
|
101
101
|
getMaterialType: () => typeof MeshStandardMaterial;
|
|
102
102
|
loadMaterial: (materialIndex: number) => Promise<Material>;
|
|
103
103
|
createUniqueName: (originalName: string) => string;
|
|
104
|
+
createNodeMesh: (nodeIndex: number) => Promise<Group | Mesh | SkinnedMesh>;
|
|
104
105
|
loadGeometries: (
|
|
105
106
|
/**
|
|
106
107
|
* GLTF.Primitive[]
|
|
@@ -27,8 +27,7 @@ export interface SSRShader {
|
|
|
27
27
|
opacity: IUniform<number>;
|
|
28
28
|
maxDistance: IUniform<number>;
|
|
29
29
|
cameraRange: IUniform<number>;
|
|
30
|
-
|
|
31
|
-
thickTolerance: IUniform<number>;
|
|
30
|
+
thickness: IUniform<number>;
|
|
32
31
|
};
|
|
33
32
|
vertexShader: string;
|
|
34
33
|
fragmentShader: string;
|
three/index.d.ts
CHANGED
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.128.0",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"scripts": {},
|
|
26
26
|
"dependencies": {},
|
|
27
|
-
"typesPublisherContentHash": "
|
|
27
|
+
"typesPublisherContentHash": "730247da1f45f4bca17c8a953948598a2b96644d6b25146d2f25f0eaba6dbdba",
|
|
28
28
|
"typeScriptVersion": "3.6"
|
|
29
29
|
}
|
|
@@ -78,13 +78,23 @@ export interface XRRenderStateInit {
|
|
|
78
78
|
baseLayer?: XRWebGLLayer;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
export interface XRGamepad {
|
|
82
|
+
readonly id: string;
|
|
83
|
+
readonly index: number; // long
|
|
84
|
+
readonly connected: boolean;
|
|
85
|
+
readonly timestamp: DOMHighResTimeStamp;
|
|
86
|
+
readonly mapping: GamepadMappingType;
|
|
87
|
+
readonly axes: Float32Array; // FrozenArray<double>;
|
|
88
|
+
readonly buttons: GamepadButton[]; // FrozenArray<GamepadButton>;
|
|
89
|
+
}
|
|
90
|
+
|
|
81
91
|
export interface XRInputSource {
|
|
82
92
|
readonly handedness: XRHandedness;
|
|
83
93
|
readonly targetRayMode: XRTargetRayMode;
|
|
84
94
|
readonly targetRaySpace: EventTarget;
|
|
85
95
|
readonly gripSpace?: EventTarget;
|
|
86
96
|
readonly profiles: string[];
|
|
87
|
-
readonly gamepad:
|
|
97
|
+
readonly gamepad: XRGamepad;
|
|
88
98
|
readonly hand?: XRHand;
|
|
89
99
|
}
|
|
90
100
|
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Mesh, Loader, LoadingManager } from '../../../src/Three';
|
|
2
|
-
|
|
3
|
-
export interface XResult {
|
|
4
|
-
animations: object[];
|
|
5
|
-
models: Mesh[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export class XLoader extends Loader {
|
|
9
|
-
constructor(manager?: LoadingManager);
|
|
10
|
-
|
|
11
|
-
load(
|
|
12
|
-
url: string,
|
|
13
|
-
onLoad: (object: XResult) => void,
|
|
14
|
-
onProgress?: (event: ProgressEvent) => void,
|
|
15
|
-
onError?: (event: ErrorEvent) => void,
|
|
16
|
-
): void;
|
|
17
|
-
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<XResult>;
|
|
18
|
-
parse(data: ArrayBuffer | string, onLoad: (object: object) => void): object;
|
|
19
|
-
}
|