@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 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: Mon, 30 Oct 2023 19:18:00 GMT
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,5 @@
1
+ // tslint:disable-next-line:no-unnecessary-class
2
+ export default class WebGPU {
3
+ static isAvailable(): boolean;
4
+ static getErrorMessage(): HTMLElement;
5
+ }
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ export class Program {
2
+ body: unknown[];
3
+
4
+ isProgram: true;
5
+
6
+ constructor();
7
+ }
@@ -0,0 +1,7 @@
1
+ import { Program } from './AST.js';
2
+
3
+ export default class GLSLDecoder {
4
+ constructor();
5
+
6
+ parse(source: string): Program;
7
+ }
@@ -0,0 +1,3 @@
1
+ import GLSLDecoder from './GLSLDecoder.js';
2
+
3
+ export default class ShaderToyDecoder extends GLSLDecoder {}
@@ -0,0 +1,7 @@
1
+ import { Program } from './AST.js';
2
+
3
+ export default class TSLEncoder {
4
+ constructor();
5
+
6
+ emit(ast: Program): string;
7
+ }
@@ -0,0 +1,5 @@
1
+ export default class Transpiler<U, V> {
2
+ constructor(decoder: { parse(source: string): U }, encoder: { emit(decoded: U): V });
3
+
4
+ parse(source: string): V;
5
+ }
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.158.1",
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": "c899477bcb4613cebb36e4f1a475fdaffd37e5fb970f81884efc36ba7c395649",
47
+ "typesPublisherContentHash": "bd30f665c4aae2d34cec74eb774bbf624c68e8e74c75646018eab04f646058f2",
48
48
  "typeScriptVersion": "4.5"
49
49
  }