Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

gl-geometry

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-geometry - npm Package Compare versions

Comparing version
1.3.0
to
2.0.0
.npmignore

Sorry, the diff of this file is not supported yet

+10
-1
var normalize = require('./normalize')
var glType = require('gl-to-dtype')
var createVAO = require('gl-vao')
var dtype = require('dtype')

@@ -10,2 +12,4 @@ module.exports = GLGeometry

this._elementsType = 5123
this._elementsBytes = 2
this._attributes = []

@@ -123,3 +127,3 @@ this._dirty = true

if (this._vao._useElements) {
this.gl.drawElements(mode, stop - start, this._vao._elementsType, start)
this.gl.drawElements(mode, stop - start, this._elementsType, start * this._elementsBytes) // "2" is sizeof(uint16)
} else {

@@ -145,2 +149,7 @@ this.gl.drawArrays(mode, start, stop - start)

)
this._elementsType = this._vao._elementsType
this._elementsBytes = dtype(
glType(this._elementsType) || 'array'
).BYTES_PER_ELEMENT || 2
}
+2
-1
{
"name": "gl-geometry",
"version": "1.3.0",
"version": "2.0.0",
"description": "A flexible wrapper for gl-vao and gl-buffer that you can use to set up renderable WebGL geometries from a variety of different formats.",

@@ -15,2 +15,3 @@ "main": "index.js",

"gl-buffer": "^2.0.6",
"gl-to-dtype": "^1.1.0",
"gl-vao": "^1.1.2",

@@ -17,0 +18,0 @@ "is-typedarray": "0.0.0",