Skip to content

Commit

Permalink
👷 build v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Jun 13, 2016
1 parent c89216b commit 09118f5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ See [packery.metafizzy.co](http://packery.metafizzy.co) for complete docs and de

### Download

+ [packery.pkgd.js](https://github.com/metafizzy/packery/raw/master/dist/packery.pkgd.js) un-minified, or
+ [packery.pkgd.min.js](https://github.com/metafizzy/packery/raw/master/dist/packery.pkgd.min.js) minified
+ [packery.pkgd.js](https://npmcdn.com/packery@2.1/dist/packery.pkgd.js) un-minified, or
+ [packery.pkgd.min.js](https://npmcdn.com/packery@2.1/dist/packery.pkgd.min.js) minified

### CDN

Expand Down
20 changes: 11 additions & 9 deletions dist/packery.pkgd.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Packery PACKAGED v2.1.0
* Packery PACKAGED v2.1.1
* Gapless, draggable grid layouts
*
* Licensed GPLv3 for open source use
Expand Down Expand Up @@ -2268,7 +2268,7 @@ return Outlayer;
/* jshint strict: false */ /* globals define, module */
if ( typeof define == 'function' && define.amd ) {
// AMD
define( 'packery/rect',factory );
define( 'packery/js/rect',factory );
} else if ( typeof module == 'object' && module.exports ) {
// CommonJS
module.exports = factory();
Expand Down Expand Up @@ -2421,7 +2421,7 @@ return Rect;
/* jshint strict: false */ /* globals define, module, require */
if ( typeof define == 'function' && define.amd ) {
// AMD
define( 'packery/packer',[ './rect' ], factory );
define( 'packery/js/packer',[ './rect' ], factory );
} else if ( typeof module == 'object' && module.exports ) {
// CommonJS
module.exports = factory(
Expand Down Expand Up @@ -2618,7 +2618,7 @@ return Packer;
/* jshint strict: false */ /* globals define, module, require */
if ( typeof define == 'function' && define.amd ) {
// AMD
define( 'packery/item',[
define( 'packery/js/item',[
'outlayer/outlayer',
'./rect'
],
Expand Down Expand Up @@ -2741,7 +2741,7 @@ return Item;
}));

/*!
* Packery v2.1.0
* Packery v2.1.1
* Gapless, draggable grid layouts
*
* Licensed GPLv3 for open source use
Expand All @@ -2759,9 +2759,9 @@ return Item;
define( [
'get-size/get-size',
'outlayer/outlayer',
'./rect',
'./packer',
'./item'
'packery/js/rect',
'packery/js/packer',
'packery/js/item'
],
factory );
} else if ( typeof module == 'object' && module.exports ) {
Expand Down Expand Up @@ -3201,7 +3201,9 @@ proto.updateShiftTargets = function( dropItem ) {
boundsSize = ( segs - segmentSpan ) * segment;
// add targets on top
for ( var i=0; i < segs; i++ ) {
this._addShiftTarget( i * segment, 0, boundsSize );
var initialX = isHorizontal ? 0 : i * segment;
var initialY = isHorizontal ? i * segment : 0;
this._addShiftTarget( initialX, initialY, boundsSize );
}
} else {
boundsSize = ( this.shiftPacker[ measure ] + this.gutter ) - dropItem.rect[ measure ];
Expand Down
6 changes: 3 additions & 3 deletions dist/packery.pkgd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/packery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Packery v2.1.0
* Packery v2.1.1
* Gapless, draggable grid layouts
*
* Licensed GPLv3 for open source use
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "packery",
"version": "2.1.0",
"version": "2.1.1",
"description": "Gapless, draggable grid layouts",
"main": "js/packery.js",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions sandbox/requirejs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<link rel="stylesheet" href="../css/examples.css" />
<script data-main="main" src="https://npmcdn.com/[email protected]/require.js"></script>
<!-- <script data-main="main" src="require.js"></script> -->

</head>
<body>
Expand Down

0 comments on commit 09118f5

Please sign in to comment.