@types/three 0.158.1 → 0.158.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.
- three/README.md +1 -1
- three/examples/jsm/capabilities/WebGPU.d.ts +5 -0
- three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +16 -0
- three/examples/jsm/renderers/common/Animation.d.ts +16 -0
- three/examples/jsm/renderers/webgl/WebGLBackend.d.ts +8 -0
- three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts +12 -0
- three/examples/jsm/transpiler/AST.d.ts +7 -0
- three/examples/jsm/transpiler/GLSLDecoder.d.ts +7 -0
- three/examples/jsm/transpiler/ShaderToyDecoder.d.ts +3 -0
- three/examples/jsm/transpiler/TSLEncoder.d.ts +7 -0
- three/examples/jsm/transpiler/Transpiler.d.ts +5 -0
- three/package.json +2 -2
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, 07 Nov 2023 15:11:36 GMT
|
|
12
12
|
* Dependencies: [@types/stats.js](https://npmjs.com/package/@types/stats.js), [@types/webxr](https://npmjs.com/package/@types/webxr), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BufferGeometry, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three.js';
|
|
2
|
+
|
|
3
|
+
export class SDFGeometryGenerator {
|
|
4
|
+
constructor(renderer: WebGLRenderer);
|
|
5
|
+
|
|
6
|
+
generate(res?: number, distFunc?: string, bounds?: number): BufferGeometry;
|
|
7
|
+
|
|
8
|
+
computeSDF(
|
|
9
|
+
width: number,
|
|
10
|
+
height: number,
|
|
11
|
+
tilesX: number,
|
|
12
|
+
tilesY: number,
|
|
13
|
+
bounds: number,
|
|
14
|
+
shader: string,
|
|
15
|
+
): WebGLRenderTarget;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default class Animation {
|
|
2
|
+
animationLoop: ((time: DOMHighResTimeStamp) => void) | null;
|
|
3
|
+
requestId: number | null;
|
|
4
|
+
|
|
5
|
+
isAnimating: boolean;
|
|
6
|
+
|
|
7
|
+
context: Window;
|
|
8
|
+
|
|
9
|
+
constructor();
|
|
10
|
+
|
|
11
|
+
start(): void;
|
|
12
|
+
|
|
13
|
+
stop(): void;
|
|
14
|
+
|
|
15
|
+
setAnimationLoop(callback: ((time: DOMHighResTimeStamp) => void) | null): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CoordinateSystem } from '../../../../src/Three.js';
|
|
2
|
+
import Backend from '../common/Backend.js';
|
|
3
|
+
|
|
4
|
+
export default class WebGLBackend extends Backend {
|
|
5
|
+
constructor(parameters?: { canvas?: HTMLCanvasElement | undefined });
|
|
6
|
+
|
|
7
|
+
get coordinateSystem(): CoordinateSystem;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CoordinateSystem } from '../../../../src/Three.js';
|
|
2
|
+
import Backend from '../common/Backend.js';
|
|
3
|
+
|
|
4
|
+
export default class WebGPUBackend extends Backend {
|
|
5
|
+
constructor(parameters?: {
|
|
6
|
+
canvas?: HTMLCanvasElement | undefined;
|
|
7
|
+
antialias?: boolean | undefined;
|
|
8
|
+
sampleCount?: number | undefined;
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
get coordinateSystem(): CoordinateSystem;
|
|
12
|
+
}
|
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.158.
|
|
3
|
+
"version": "0.158.2",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
"fflate": "~0.6.10",
|
|
45
45
|
"meshoptimizer": "~0.18.1"
|
|
46
46
|
},
|
|
47
|
-
"typesPublisherContentHash": "
|
|
47
|
+
"typesPublisherContentHash": "bd30f665c4aae2d34cec74eb774bbf624c68e8e74c75646018eab04f646058f2",
|
|
48
48
|
"typeScriptVersion": "4.5"
|
|
49
49
|
}
|