Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gl-util

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-util - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

2

attribute.js

@@ -6,3 +6,3 @@ 'use strict'

const getProgram = require('./program')
const WeakMap = require('es6-weak-map');
const WeakMap = require('weak-map');

@@ -9,0 +9,0 @@ let attributesCache = setAttribute.cache = new WeakMap();

@@ -52,3 +52,3 @@ /** @module gl-util/context */

else if (!o.canvas) {
o.canvas = document.createElement('canvas')
o.canvas = createCanvas()
o.container.appendChild(o.canvas)

@@ -61,6 +61,3 @@ resize(o)

o.container = document.body || document.documentElement
o.canvas = document.createElement('canvas')
o.canvas.style.position = 'absolute'
o.canvas.style.top = 0
o.canvas.style.left = 0
o.canvas = createCanvas()
o.container.appendChild(o.canvas)

@@ -118,1 +115,10 @@ resize(o)

}
function createCanvas () {
let canvas = document.createElement('canvas')
canvas.style.position = 'absolute'
canvas.style.top = 0
canvas.style.left = 0
return canvas
}
{
"name": "gl-util",
"version": "3.0.8",
"version": "3.0.9",
"description": "Set of practical webgl utils",

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

"dependencies": {
"es6-weak-map": "^2.0.2",
"is-browser": "^2.0.1",

@@ -32,3 +31,4 @@ "is-firefox": "^1.0.3",

"object-assign": "^4.1.0",
"pick-by-alias": "^1.2.0"
"pick-by-alias": "^1.2.0",
"weak-map": "^1.0.5"
},

@@ -35,0 +35,0 @@ "devDependencies": {

@@ -6,3 +6,3 @@ 'use strict'

const getProgram = require('./program')
const WeakMap = require('es6-weak-map')
const WeakMap = require('weak-map')

@@ -9,0 +9,0 @@ let texturesCache = setTexture.cache = new WeakMap()

@@ -5,8 +5,8 @@ /* @module gl-util/unifrom */

const isPlainObject = require('is-plain-obj');
const isInt = require('number-is-integer');
const extend = require('object-assign');
const isPlainObject = require('is-plain-obj')
const isInt = require('number-is-integer')
const extend = require('object-assign')
const getProgram = require('./program')
const WeakMap = require('weak-map')
const WeakMap = require('es6-weak-map');

@@ -13,0 +13,0 @@ let uniformsCache = setUniform.cache = new WeakMap();

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