Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Packery
Commits
09118f5a
Commit
09118f5a
authored
9 years ago
by
David DeSandro
Browse files
Options
Download
Email Patches
Plain Diff
👷
build v2.1.1
parent
c89216bf
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
README.md
+2
-2
README.md
dist/packery.pkgd.js
+11
-9
dist/packery.pkgd.js
dist/packery.pkgd.min.js
+3
-3
dist/packery.pkgd.min.js
js/packery.js
+1
-1
js/packery.js
package.json
+1
-1
package.json
sandbox/requirejs/index.html
+1
-0
sandbox/requirejs/index.html
with
19 additions
and
16 deletions
+19
-16
README.md
+
2
-
2
View file @
09118f5a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
dist/packery.pkgd.js
+
11
-
9
View file @
09118f5a
/*!
* Packery PACKAGED v2.1.
0
* Packery PACKAGED v2.1.
1
* Gapless, draggable grid layouts
*
* Licensed GPLv3 for open source use
...
...
@@ -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
();
...
...
@@ -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
(
...
...
@@ -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
'
],
...
...
@@ -2741,7 +2741,7 @@ return Item;
}));
/*!
* Packery v2.1.
0
* Packery v2.1.
1
* Gapless, draggable grid layouts
*
* Licensed GPLv3 for open source use
...
...
@@ -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
)
{
...
...
@@ -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
];
...
...
This diff is collapsed.
Click to expand it.
dist/packery.pkgd.min.js
+
3
-
3
View file @
09118f5a
This diff is collapsed.
Click to expand it.
js/packery.js
+
1
-
1
View file @
09118f5a
/*!
* Packery v2.1.
0
* Packery v2.1.
1
* Gapless, draggable grid layouts
*
* Licensed GPLv3 for open source use
...
...
This diff is collapsed.
Click to expand it.
package.json
+
1
-
1
View file @
09118f5a
{
"name"
:
"packery"
,
"version"
:
"2.1.
0
"
,
"version"
:
"2.1.
1
"
,
"description"
:
"Gapless, draggable grid layouts"
,
"main"
:
"js/packery.js"
,
"dependencies"
:
{
...
...
This diff is collapsed.
Click to expand it.
sandbox/requirejs/index.html
+
1
-
0
View file @
09118f5a
...
...
@@ -7,6 +7,7 @@
<link
rel=
"stylesheet"
href=
"../css/examples.css"
/>
<script
data-main=
"main"
src=
"https://npmcdn.com/requirejs@2.1/require.js"
></script>
<!-- <script data-main="main" src="require.js"></script> -->
</head>
<body>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment