three.js
Advanced tools
Comparing version 0.0.2 to 0.1.0
0.1.0 / 2013-01-06 | ||
================== | ||
* Added support for `Image` constructor | ||
* Added textures example | ||
0.0.2 / 2012-11-26 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -6,2 +6,3 @@ /** | ||
var fs = require('fs') | ||
, Image = require('canvas').Image | ||
, jsdom = require('jsdom') | ||
@@ -14,8 +15,20 @@ , document = jsdom.jsdom('<!doctype html><html><head></head><body></body></html>') | ||
/** | ||
* Monkey patch for Image#addEventListener. | ||
* | ||
* @param {String} type | ||
* @param {Function} listener | ||
* @param {Boolean} useCapture (will ignore) | ||
*/ | ||
Image.prototype.addEventListener = function(type, listener, useCapture) { | ||
this['on' + type] = listener; | ||
}; | ||
/** | ||
* Evaluate Three.js source code. | ||
*/ | ||
eval('(function(window, document) {' | ||
eval('(function(window, document, Image) {' | ||
+ src.toString('utf-8').replace('var THREE', 'var THREE = window.THREE') | ||
+ '})(window, document);' | ||
+ '})(window, document, Image);' | ||
); | ||
@@ -22,0 +35,0 @@ |
{ | ||
"name": "three.js", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "Three.js for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2163288
46857
1