Comparing version 3.0.8 to 3.0.9
@@ -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(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30673
747
+ Addedweak-map@^1.0.5
+ Addedweak-map@1.0.8(transitive)
- Removedes6-weak-map@^2.0.2
- Removedd@1.0.2(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedes6-weak-map@2.0.3(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedext@1.7.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removedtype@2.7.3(transitive)