@thi.ng/webgl 6.1.12 → 6.1.13

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,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-05-07T11:33:35Z
3
+ - **Last updated**: 2022-06-09T16:14:02Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/buffer.d.ts CHANGED
@@ -14,9 +14,9 @@ export declare class WebGLArrayBuffer<T extends TypedArray> implements IWebGLBuf
14
14
  set(data: T, mode?: number): void;
15
15
  setChunk(data: T, offset?: number): void;
16
16
  }
17
- export declare const defBuffer: (gl: WebGLRenderingContext, data?: TypedArray | undefined, target?: number, mode?: number) => WebGLArrayBuffer<Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array>;
17
+ export declare const defBuffer: (gl: WebGLRenderingContext, data?: TypedArray, target?: number, mode?: number) => WebGLArrayBuffer<Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array>;
18
18
  export declare const compileModel: (gl: WebGLRenderingContext, spec: ModelSpec, mode?: number) => ModelSpec;
19
19
  export declare const compileIndices: (gl: WebGLRenderingContext, index: IndexBufferSpec | undefined, mode?: GLenum) => IndexBufferSpec | undefined;
20
20
  export declare const compileVAO: (gl: WebGLRenderingContext, spec: ModelSpec) => WebGLVertexArrayObject | undefined;
21
- export declare const compileAttribPool: (gl: WebGLRenderingContext, pool: AttribPool, ids?: string[] | undefined, target?: number, mode?: number) => ModelAttributeSpecs;
21
+ export declare const compileAttribPool: (gl: WebGLRenderingContext, pool: AttribPool, ids?: string[], target?: number, mode?: number) => ModelAttributeSpecs;
22
22
  //# sourceMappingURL=buffer.d.ts.map
package/error.d.ts CHANGED
@@ -9,5 +9,5 @@ export declare const WebGLError: {
9
9
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
10
10
  stackTraceLimit: number;
11
11
  };
12
- export declare const error: (msg?: string | undefined) => never;
12
+ export declare const error: (msg?: string) => never;
13
13
  //# sourceMappingURL=error.d.ts.map
package/fbo.d.ts CHANGED
@@ -26,5 +26,5 @@ export declare class FBO implements IFbo {
26
26
  configure(opts: Partial<FboOpts>, unbind?: boolean): boolean;
27
27
  validate(): boolean;
28
28
  }
29
- export declare const defFBO: (gl: WebGLRenderingContext, opts?: Partial<FboOpts> | undefined) => FBO;
29
+ export declare const defFBO: (gl: WebGLRenderingContext, opts?: Partial<FboOpts>) => FBO;
30
30
  //# sourceMappingURL=fbo.d.ts.map
package/geo/cube.d.ts CHANGED
@@ -4,5 +4,5 @@ export interface CubeOpts {
4
4
  normal: boolean;
5
5
  uv: boolean;
6
6
  }
7
- export declare const defCubeModel: (opts?: Partial<CubeOpts> | undefined) => ModelSpec;
7
+ export declare const defCubeModel: (opts?: Partial<CubeOpts>) => ModelSpec;
8
8
  //# sourceMappingURL=cube.d.ts.map
package/geo/quad.d.ts CHANGED
@@ -18,5 +18,5 @@ export interface QuadOpts {
18
18
  */
19
19
  center: boolean;
20
20
  }
21
- export declare const defQuadModel: (opts?: Partial<QuadOpts> | undefined) => ModelSpec;
21
+ export declare const defQuadModel: (opts?: Partial<QuadOpts>) => ModelSpec;
22
22
  //# sourceMappingURL=quad.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/webgl",
3
- "version": "6.1.12",
3
+ "version": "6.1.13",
4
4
  "description": "WebGL & GLSL abstraction layer",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,30 +34,30 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/adapt-dpi": "^2.1.6",
38
- "@thi.ng/api": "^8.3.6",
39
- "@thi.ng/associative": "^6.1.8",
40
- "@thi.ng/checks": "^3.1.6",
41
- "@thi.ng/equiv": "^2.1.6",
42
- "@thi.ng/errors": "^2.1.6",
43
- "@thi.ng/logger": "^1.1.6",
44
- "@thi.ng/matrices": "^2.1.12",
45
- "@thi.ng/memoize": "^3.1.6",
46
- "@thi.ng/pixel": "^3.4.3",
47
- "@thi.ng/shader-ast": "^0.12.8",
48
- "@thi.ng/shader-ast-glsl": "^0.4.8",
49
- "@thi.ng/shader-ast-stdlib": "^0.12.1",
50
- "@thi.ng/transducers": "^8.3.3",
51
- "@thi.ng/vector-pools": "^3.1.12",
52
- "@thi.ng/vectors": "^7.5.4"
37
+ "@thi.ng/adapt-dpi": "^2.1.7",
38
+ "@thi.ng/api": "^8.3.7",
39
+ "@thi.ng/associative": "^6.1.9",
40
+ "@thi.ng/checks": "^3.2.0",
41
+ "@thi.ng/equiv": "^2.1.7",
42
+ "@thi.ng/errors": "^2.1.7",
43
+ "@thi.ng/logger": "^1.1.7",
44
+ "@thi.ng/matrices": "^2.1.13",
45
+ "@thi.ng/memoize": "^3.1.7",
46
+ "@thi.ng/pixel": "^3.4.4",
47
+ "@thi.ng/shader-ast": "^0.12.9",
48
+ "@thi.ng/shader-ast-glsl": "^0.4.9",
49
+ "@thi.ng/shader-ast-stdlib": "^0.12.2",
50
+ "@thi.ng/transducers": "^8.3.4",
51
+ "@thi.ng/vector-pools": "^3.1.13",
52
+ "@thi.ng/vectors": "^7.5.5"
53
53
  },
54
54
  "devDependencies": {
55
- "@microsoft/api-extractor": "^7.23.1",
56
- "@thi.ng/testament": "^0.2.7",
55
+ "@microsoft/api-extractor": "^7.25.0",
56
+ "@thi.ng/testament": "^0.2.8",
57
57
  "rimraf": "^3.0.2",
58
58
  "tools": "^0.0.1",
59
- "typedoc": "^0.22.15",
60
- "typescript": "^4.6.4"
59
+ "typedoc": "^0.22.17",
60
+ "typescript": "^4.7.3"
61
61
  },
62
62
  "keywords": [
63
63
  "2d",
@@ -215,5 +215,5 @@
215
215
  ],
216
216
  "year": 2014
217
217
  },
218
- "gitHead": "e23901b8582af71d8a29e0ce4929f15ac509f9e5\n"
218
+ "gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n"
219
219
  }
package/shader.d.ts CHANGED
@@ -19,7 +19,7 @@ export declare class Shader implements IShader {
19
19
  prepareState(state?: Partial<ShaderState>): void;
20
20
  protected setState(id: number, val: GLenum | boolean): void;
21
21
  }
22
- export declare const defShader: (gl: WebGLRenderingContext, spec: ShaderSpec, opts?: Partial<DefShaderOpts> | undefined) => Shader;
22
+ export declare const defShader: (gl: WebGLRenderingContext, spec: ShaderSpec, opts?: Partial<DefShaderOpts>) => Shader;
23
23
  export declare const shaderSourceFromAST: (spec: ShaderSpec, type: ShaderType, version: GLSLVersion, opts?: Partial<DefShaderOpts>) => string;
24
24
  export declare const prepareShaderSource: (spec: ShaderSpec, type: ShaderType, version: GLSLVersion) => string;
25
25
  export declare const compileShader: (gl: WebGLRenderingContext, type: GLenum, src: string) => WebGLShader;
package/texture.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ITexture, TextureFilter, TextureFormat, TextureOpts, TextureRepeat, TextureTarget, TextureType } from "./api/texture.js";
2
- export declare const bindTextures: (textures?: ITexture[] | undefined) => void;
3
- export declare const unbindTextures: (textures?: ITexture[] | undefined) => void;
2
+ export declare const bindTextures: (textures?: ITexture[]) => void;
3
+ export declare const unbindTextures: (textures?: ITexture[]) => void;
4
4
  export declare class Texture implements ITexture {
5
5
  gl: WebGLRenderingContext;
6
6
  tex: WebGLTexture;
@@ -23,7 +23,7 @@ export declare class Texture implements ITexture {
23
23
  unbind(id?: number): boolean;
24
24
  release(): boolean;
25
25
  }
26
- export declare const defTexture: (gl: WebGLRenderingContext, opts?: Partial<TextureOpts> | undefined) => Texture;
26
+ export declare const defTexture: (gl: WebGLRenderingContext, opts?: Partial<TextureOpts>) => Texture;
27
27
  /**
28
28
  * Creates cube map texture from given 6 `face` texture sources. The
29
29
  * given options are shared by each each side/face of the cube map. The
@@ -59,5 +59,5 @@ export declare const defTextureCubeMap: (gl: WebGLRenderingContext, faces: (Arra
59
59
  * @param format -
60
60
  * @param type -
61
61
  */
62
- export declare const defTextureFloat: (gl: WebGLRenderingContext, data: Float32Array | undefined | null, width: number, height: number, format?: TextureFormat | undefined, type?: TextureType | undefined) => Texture;
62
+ export declare const defTextureFloat: (gl: WebGLRenderingContext, data: Float32Array | undefined | null, width: number, height: number, format?: TextureFormat, type?: TextureType) => Texture;
63
63
  //# sourceMappingURL=texture.d.ts.map