react-gallery-layout
Advanced tools
+2
-2
| { | ||
| "name": "react-gallery-layout", | ||
| "version": "0.2.2", | ||
| "version": "0.2.3", | ||
| "description": "React.js based gallery component", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "binpack-2d": "^1.3.1", | ||
| "binpack-2d": "^1.3.2", | ||
| "card-layouts": "^0.2.0", | ||
@@ -20,0 +20,0 @@ "classnames": "^2.2.3", |
+2
-6
@@ -18,8 +18,4 @@ import binpack, {sorters} from 'binpack-2d' | ||
| const runBinpack = options => | ||
| binpack( | ||
| {width: options.width, height: Infinity}, | ||
| options.items, | ||
| options.gap, | ||
| options.rtl ? sorters.leftwardTopToBottom : null | ||
| ) | ||
| binpack({width: options.width, height: Infinity}, | ||
| options.items, options.gap, options.rtl) | ||
| const isBinpack = layout => layout === 'binpack' || !layout | ||
@@ -26,0 +22,0 @@ export default function pack (options) { |
23673
-0.22%522
-0.76%Updated