twgl.js
Advanced tools
Comparing version 5.0.4 to 5.1.0
@@ -27,5 +27,5 @@ | ||
value?: number[] | ArrayBufferView; | ||
data: number | number[] | ArrayBufferView; | ||
data?: number | number[] | ArrayBufferView; | ||
numComponents?: number; | ||
type?: Function; | ||
type?: number | TypedArrayConstructor; | ||
size?: number; | ||
@@ -239,2 +239,3 @@ normalize?: boolean; | ||
export function createBufferFromTypedArray(gl: WebGLRenderingContext, typedArray: ArrayBuffer | SharedArrayBuffer | ArrayBufferView | WebGLBuffer, type?: number, drawType?: number): WebGLBuffer; | ||
export type TypedArrayConstructor = Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor; | ||
export function createAttribsFromArrays(gl: WebGLRenderingContext, arrays: Arrays, srcBufferInfo?: BufferInfo): { | ||
@@ -241,0 +242,0 @@ [key: string]: AttribInfo; |
@@ -27,5 +27,5 @@ | ||
value?: number[] | ArrayBufferView; | ||
data: number | number[] | ArrayBufferView; | ||
data?: number | number[] | ArrayBufferView; | ||
numComponents?: number; | ||
type?: Function; | ||
type?: number | TypedArrayConstructor; | ||
size?: number; | ||
@@ -239,2 +239,3 @@ normalize?: boolean; | ||
export function createBufferFromTypedArray(gl: WebGLRenderingContext, typedArray: ArrayBuffer | SharedArrayBuffer | ArrayBufferView | WebGLBuffer, type?: number, drawType?: number): WebGLBuffer; | ||
export type TypedArrayConstructor = Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor; | ||
export function createAttribsFromArrays(gl: WebGLRenderingContext, arrays: Arrays, srcBufferInfo?: BufferInfo): { | ||
@@ -241,0 +242,0 @@ [key: string]: AttribInfo; |
{ | ||
"name": "twgl.js", | ||
"version": "5.0.4", | ||
"version": "5.1.0", | ||
"description": "A Tiny WebGL helper library", | ||
@@ -48,13 +48,13 @@ "main": "dist/5.x/twgl-full.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.11.6", | ||
"@babel/node": "^7.10.5", | ||
"@babel/plugin-transform-modules-commonjs": "^7.10.4", | ||
"@babel/polyfill": "^7.11.5", | ||
"@babel/preset-env": "^7.11.5", | ||
"@types/node": "^14.11.1", | ||
"@babel/core": "^7.19.3", | ||
"@babel/node": "^7.19.1", | ||
"@babel/plugin-transform-modules-commonjs": "^7.18.6", | ||
"@babel/polyfill": "^7.12.1", | ||
"@babel/preset-env": "^7.19.4", | ||
"@types/node": "^18.11.0", | ||
"almond": "^0.3.3", | ||
"babel-loader": "^8.1.0", | ||
"babel-loader": "^8.2.5", | ||
"eslint": "^7.9.0", | ||
"eslint-plugin-google-camelcase": "0.0.2", | ||
"eslint-plugin-html": "^6.1.0", | ||
"eslint-plugin-html": "^7.1.0", | ||
"eslint-plugin-one-variable-per-var": "0.0.3", | ||
@@ -64,19 +64,19 @@ "eslint-plugin-optional-comma-spacing": "0.0.4", | ||
"esm": "^3.2.25", | ||
"grunt": "^1.3.0", | ||
"grunt-browserify": "^5.3.0", | ||
"grunt-contrib-clean": "^2.0.0", | ||
"grunt": "^1.5.3", | ||
"grunt-browserify": "^6.0.0", | ||
"grunt-contrib-clean": "^2.0.1", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-eslint": "^23.0.0", | ||
"grunt-eslint": "^24.0.0", | ||
"grunt-jsdoc": "^2.4.1", | ||
"grunt-rollup": "^11.4.0", | ||
"grunt-rollup": "^12.0.0", | ||
"grunt-ts": "^6.0.0-beta.22", | ||
"grunt-webpack": "^4.0.2", | ||
"load-grunt-tasks": "^5.1.0", | ||
"marked": "^1.1.1", | ||
"marked": "^4.1.1", | ||
"minami": "^1.2.3", | ||
"puppeteer": "^10.4.0", | ||
"puppeteer": "^19.0.0", | ||
"requirejs": "^2.3.5", | ||
"rollup": "^2.27.1", | ||
"semver": "^7.3.2", | ||
"servez": "^1.10.0", | ||
"rollup": "^3.2.2", | ||
"semver": "^7.3.8", | ||
"servez": "^1.14.1", | ||
"terser-webpack-plugin": "^4.2.2", | ||
@@ -86,4 +86,3 @@ "tsd-jsdoc": "^2.1.2", | ||
"webpack": "^4.44.2" | ||
}, | ||
"dependencies": {} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1110943
27029