New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/webgl

Package Overview
Dependencies
Maintainers
1
Versions
291
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/webgl - npm Package Compare versions

Comparing version 6.8.11 to 6.8.12

4

api/shader.d.ts

@@ -1,2 +0,2 @@

import type { Fn, Fn2, Fn3, Fn4, IBind, IDeref, IObjectOf, IRelease, NumericArray } from "@thi.ng/api";
import type { Fn, Fn2, Fn3, Fn4, IBind, IDeref, IObjectOf, IRelease, Nullable, NumericArray } from "@thi.ng/api";
import type { ILogger } from "@thi.ng/logger";

@@ -53,3 +53,3 @@ import type { Func, Sym } from "@thi.ng/shader-ast";

loc: WebGLUniformLocation;
setter: Fn<UniformValue | undefined | null, void>;
setter: Fn<Nullable<UniformValue>, void>;
defaultFn?: (shaderUnis: any, specUnis: any) => UniformValue;

@@ -56,0 +56,0 @@ defaultVal?: UniformValue;

@@ -27,7 +27,7 @@ import { type TypedArray } from "@thi.ng/api/typedarray";

}
export declare const defBuffer: (gl: WebGLRenderingContext, data?: TypedArray, target?: GLenum, mode?: GLenum, retain?: boolean) => WebGLArrayBuffer<Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array>;
export declare const defBuffer: (gl: WebGLRenderingContext, data?: TypedArray, target?: GLenum, mode?: GLenum, retain?: boolean) => WebGLArrayBuffer<Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array>;
export declare const compileModel: (gl: WebGLRenderingContext, spec: ModelSpec, mode?: 35044) => ModelSpec;
export declare const compileIndices: (gl: WebGLRenderingContext, index: IndexBufferSpec | undefined, mode?: GLenum) => IndexBufferSpec | undefined;
export declare const compileIndices: (gl: WebGLRenderingContext, index?: IndexBufferSpec, mode?: GLenum) => IndexBufferSpec | undefined;
export declare const compileVAO: (gl: WebGLRenderingContext, spec: ModelSpec) => WebGLVertexArrayObject | undefined;
export declare const compileAttribPool: (gl: WebGLRenderingContext, pool: AttribPool, ids?: string[], target?: GLenum, mode?: GLenum) => ModelAttributeSpecs;
//# sourceMappingURL=buffer.d.ts.map
# Change Log
- **Last updated**: 2024-04-11T12:32:44Z
- **Last updated**: 2024-04-20T14:42:45Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,8 @@

### [6.8.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@6.8.12) (2024-04-20)
#### ♻️ Refactoring
- update type usage ([f584c7c](https://github.com/thi-ng/umbrella/commit/f584c7c))
## [6.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@6.8.0) (2024-03-09)

@@ -14,0 +20,0 @@

{
"name": "@thi.ng/webgl",
"version": "6.8.11",
"version": "6.8.12",
"description": "WebGL & GLSL abstraction layer",

@@ -43,18 +43,18 @@ "type": "module",

"dependencies": {
"@thi.ng/api": "^8.10.1",
"@thi.ng/associative": "^6.3.56",
"@thi.ng/canvas": "^0.2.16",
"@thi.ng/checks": "^3.6.1",
"@thi.ng/equiv": "^2.1.55",
"@thi.ng/errors": "^2.5.4",
"@thi.ng/logger": "^3.0.9",
"@thi.ng/matrices": "^2.3.33",
"@thi.ng/memoize": "^3.3.1",
"@thi.ng/pixel": "^6.1.28",
"@thi.ng/shader-ast": "^0.15.11",
"@thi.ng/shader-ast-glsl": "^0.4.119",
"@thi.ng/shader-ast-stdlib": "^0.18.11",
"@thi.ng/transducers": "^9.0.1",
"@thi.ng/vector-pools": "^3.1.125",
"@thi.ng/vectors": "^7.10.27"
"@thi.ng/api": "^8.11.0",
"@thi.ng/associative": "^6.3.57",
"@thi.ng/canvas": "^0.2.17",
"@thi.ng/checks": "^3.6.2",
"@thi.ng/equiv": "^2.1.56",
"@thi.ng/errors": "^2.5.5",
"@thi.ng/logger": "^3.0.10",
"@thi.ng/matrices": "^2.3.34",
"@thi.ng/memoize": "^3.3.2",
"@thi.ng/pixel": "^6.1.29",
"@thi.ng/shader-ast": "^0.15.12",
"@thi.ng/shader-ast-glsl": "^0.4.120",
"@thi.ng/shader-ast-stdlib": "^0.18.12",
"@thi.ng/transducers": "^9.0.2",
"@thi.ng/vector-pools": "^3.1.126",
"@thi.ng/vectors": "^7.10.28"
},

@@ -225,3 +225,3 @@ "devDependencies": {

},
"gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n"
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
}

@@ -98,8 +98,8 @@ <!-- This file is generated - DO NOT EDIT! -->

```html
<script type="module" src="https://cdn.skypack.dev/@thi.ng/webgl"></script>
<script type="module" src="https://esm.run/@thi.ng/webgl"></script>
```
[Skypack documentation](https://docs.skypack.dev/)
[JSDelivr documentation](https://www.jsdelivr.com/)
Package sizes (brotli'd, pre-treeshake): ESM: 11.65 KB
Package sizes (brotli'd, pre-treeshake): ESM: 11.66 KB

@@ -106,0 +106,0 @@ ## Dependencies

import type { UIntArray } from "@thi.ng/api";
import type { ITexture, ReadableTextureFormat, TextureType } from "./api/texture.js";
export declare const readPixels: <T extends Float32Array | UIntArray>(gl: WebGLRenderingContext, x: number, y: number, w: number, h: number, format: ReadableTextureFormat, type: TextureType, out: T) => T;
export declare const readTexture: <T extends Uint8Array | Uint16Array | Uint32Array | Float32Array>(gl: WebGLRenderingContext, tex: ITexture, format: ReadableTextureFormat, type: TextureType, out: T) => T;
export declare const readTexture: <T extends Float32Array | Uint8Array | Uint16Array | Uint32Array>(gl: WebGLRenderingContext, tex: ITexture, format: ReadableTextureFormat, type: TextureType, out: T) => T;
//# sourceMappingURL=readpixels.d.ts.map

@@ -173,3 +173,3 @@ import { deref } from "@thi.ng/api/deref";

logger.debug(srcFS);
initShaderExtensions(gl, spec.ext);
spec.ext && initShaderExtensions(gl, spec.ext);
const vs = compileShader(gl, gl.VERTEX_SHADER, srcVS);

@@ -207,8 +207,6 @@ const fs = compileShader(gl, gl.FRAGMENT_SHADER, srcFS);

const initShaderExtensions = (gl, exts) => {
if (exts) {
for (let id in exts) {
const state = exts[id];
if (state === true || state === "require") {
getExtensions(gl, [id], state === "require");
}
for (let id in exts) {
const state = exts[id];
if (state === true || state === "require") {
getExtensions(gl, [id], state === "require");
}

@@ -215,0 +213,0 @@ }

@@ -0,1 +1,2 @@

import type { Nullable } from "@thi.ng/api";
import { TextureFilter, TextureFormat, TextureRepeat, TextureTarget, TextureType, type ITexture, type TextureOpts } from "./api/texture.js";

@@ -62,3 +63,3 @@ export declare const bindTextures: (textures?: ITexture[]) => void;

*/
export declare const defTextureFloat: (gl: WebGLRenderingContext, data: Float32Array | undefined | null, width: number, height: number, format?: TextureFormat, type?: TextureType) => Texture;
export declare const defTextureFloat: (gl: WebGLRenderingContext, data: Nullable<Float32Array>, width: number, height: number, format?: TextureFormat, type?: TextureType) => Texture;
//# sourceMappingURL=texture.d.ts.map

@@ -1,5 +0,5 @@

import type { Fn, Fn3, IObjectOf } from "@thi.ng/api";
import type { Fn, Fn3, IObjectOf, Maybe, Nullable } from "@thi.ng/api";
import { type ReadonlyVec } from "@thi.ng/vectors/api";
import type { UniformValue } from "./api/shader.js";
export declare const UNIFORM_SETTERS: IObjectOf<Fn3<WebGLRenderingContext, WebGLUniformLocation, number | ReadonlyVec | undefined, Fn<UniformValue | undefined | null, void>>>;
export declare const UNIFORM_SETTERS: IObjectOf<Fn3<WebGLRenderingContext, WebGLUniformLocation, Maybe<number | ReadonlyVec>, Fn<Nullable<UniformValue>, void>>>;
//# sourceMappingURL=uniforms.d.ts.map
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc