Comparing version 0.2.5 to 0.2.6
@@ -5,3 +5,3 @@ /* | ||
* | ||
* Copyright (c) 2013 Kyle Robinson Young | ||
* Copyright (c) 2014 Kyle Robinson Young | ||
* Licensed under the MIT license. | ||
@@ -53,3 +53,3 @@ * | ||
this._cache = []; | ||
this._uvcache = []; | ||
this._uvcache = Object.create(null); | ||
rect = this._toRect(rect); | ||
@@ -141,5 +141,2 @@ | ||
var self = this; | ||
if (self._uvcache.length > 0) { | ||
return self._uvcache; | ||
} | ||
w = w || self.rect.w; | ||
@@ -146,0 +143,0 @@ h = h || self.rect.h; |
{ | ||
"name": "atlaspack", | ||
"description": "Pack rectangles (or images) into a rectangle (or canvas texture atlas).", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"homepage": "https://github.com/shama/atlaspack", | ||
@@ -28,8 +28,9 @@ "author": { | ||
"scripts": { | ||
"start": "./node_modules/.bin/browservefy example/example.js 8080 -- -d", | ||
"start": "./node_modules/.bin/beefy example/example.js 8080 -- -d", | ||
"gh-pages": "browserify example/example.js -o example/example.js" | ||
}, | ||
"devDependencies": { | ||
"browservefy": "0.0.10", | ||
"painterly-textures": "0.0.3" | ||
"painterly-textures": "0.0.3", | ||
"beefy": "~1.0.0", | ||
"browserify": "~3.28.0" | ||
}, | ||
@@ -36,0 +37,0 @@ "keywords": [ |
@@ -177,2 +177,3 @@ # atlaspack | ||
## release history | ||
* 0.2.6 - Fix _uvcache should be an object (@deathcap). | ||
* 0.2.5 - clearRect before placing image onto a canvas. | ||
@@ -187,3 +188,3 @@ * 0.2.4 - Add width/height overrides to uv method. | ||
## license | ||
Copyright (c) 2013 Kyle Robinson Young<br/> | ||
Copyright (c) 2014 Kyle Robinson Young | ||
Licensed under the MIT license. |
Sorry, the diff of this file is not supported yet
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
18435
189
3
356