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

atlaspack

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atlaspack - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

@@ -0,1 +1,2 @@

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.atlaspack=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/*

@@ -254,1 +255,5 @@ * atlaspack

};
},{}]},{},[1])
(1)
});;
{
"name": "atlaspack",
"description": "Pack rectangles (or images) into a rectangle (or canvas texture atlas).",
"version": "0.2.6",
"version": "0.2.7",
"homepage": "https://github.com/shama/atlaspack",

@@ -32,5 +32,5 @@ "author": {

"devDependencies": {
"painterly-textures": "0.0.3",
"beefy": "~1.0.0",
"browserify": "~3.28.0"
"beefy": "^2.1.0",
"browserify": "^5.0.2",
"painterly-textures": "0.0.3"
},

@@ -37,0 +37,0 @@ "keywords": [

@@ -176,3 +176,17 @@ # atlaspack

## using standalone / non-browserify
It is wrapped in an UMD for use outside of browserify.
Add a script tag to your HTML and use globally exposed `atlaspack` variable:
```html
<script src="node_modules/atlaspack/index.js"></script>
<script>
var atlas = window.atlaspack(canvas);
</script>
```
## release history
* 0.2.7 - Wrap in UMD for use outside of commonjs loaders.
* 0.2.6 - Fix _uvcache should be an object (@deathcap).

@@ -179,0 +193,0 @@ * 0.2.5 - clearRect before placing image onto a canvas.