{"_id":"layout","_rev":"34-b6b1c83a5e13291bd2362072c3548446","name":"layout","description":"Organize and layout items based on various algorithms","dist-tags":{"latest":"2.2.0"},"versions":{"0.1.0":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"0.1.0","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"_id":"layout@0.1.0","dist":{"shasum":"42c4a4d93ef2249abe8cd59eed8d2652c2aabb74","tarball":"https://registry.npmjs.org/layout/-/layout-0.1.0.tgz","integrity":"sha512-yui2p6zHkWe/RPXO37rvLqXHraBtMhI+JQCYJ68M4PZnZGWHKgT3DJeXvZjvq3MwH27juekgbZxFtaFyAUG9dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBzbsmvvZqrMvsBktDNLBiPO7IL+DeYopw8d7RW1QXZAIhAOuUx7JOObXumMY4t32DwtZpxkP4A1ikzA5UQvSrT0u/"}]},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"0.1.1":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"0.1.1","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"_id":"layout@0.1.1","dist":{"shasum":"36b9a1d96580268bd8a27a618e339e3ae05a4e41","tarball":"https://registry.npmjs.org/layout/-/layout-0.1.1.tgz","integrity":"sha512-biwPbj+kVIB/9Inn2AsK+bQPF5gVrrUEZNeuTrhJQsAbGnAEqzGrzShEdAnnPe+mzV6JEP+nNHWm21parmAQAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLnU86rmPEYWTcJ9QADMrAy5ZPEhDTLa2KHf6uTCU0KAIhAP9bzVPauftGnVCf/PaAEUBinF3IPhivf3+GlUCGW9sq"}]},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"0.2.0":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"0.2.0","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"_id":"layout@0.2.0","dist":{"shasum":"82116d9d74a6e42e189fef205ff27d11ab7f4072","tarball":"https://registry.npmjs.org/layout/-/layout-0.2.0.tgz","integrity":"sha512-5rz4mfolErqWmhSVPrIbYoijRXuMus3mYXqb7Gc3tkFf+0PDm/INmPsNKgRCZdL4YBMu/z7nCGjGubkOnF3dew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRutKYH2CV0DSPMcTcG2ZCFQ4ZkzQEaVR6cMKSRD027AiB2J3b5BuTgq7l9U0S5HkiI5jPXE/InZ9WgrgM9DkfUVw=="}]},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"1.1.0":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"1.1.0","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"_id":"layout@1.1.0","dist":{"shasum":"bf10d2554cf988dc54a0fbc4f6c41984144704ca","tarball":"https://registry.npmjs.org/layout/-/layout-1.1.0.tgz","integrity":"sha512-NnGKtsytLNNx1SkiWHp1poqPP+1GXOQR1IkMwyrUlCS7dcPB0aGy0Tv8LnKxmqDJuquui2vH4oNwgBTqiAv7aA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGKXp7Uv4gZzKodZP0mwqB1tzhDmIOK4PRscZMIDuI3QIgPDdkMWRjXQvYawOHhU2I1f3UnQ8scS5krDYS4Mc3z1o="}]},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"1.2.0":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"1.2.0","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"_id":"layout@1.2.0","dist":{"shasum":"4fdedacf2d761d419909fe13d3330b3e87c7f67f","tarball":"https://registry.npmjs.org/layout/-/layout-1.2.0.tgz","integrity":"sha512-Aylnn77AqD/EOqxpWWfAUl97/rIpT5FfjkA5S0sK/9fiqnKdlA+Nt5X8ayBbv6oVfCedbYsfRusUQ6wJ2FEXDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDB1n0mZd1h7enxRM4Zjd/zYyHAQcqQPXOORxOl5gyifAiEAhTUKI+/ce7WE7ttkPscdJ4+xe2+n71v8PMHEQfe37jY="}]},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"1.2.1":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"1.2.1","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"_id":"layout@1.2.1","dist":{"shasum":"17be1a9069c448e5b38638f331cedf87d896d883","tarball":"https://registry.npmjs.org/layout/-/layout-1.2.1.tgz","integrity":"sha512-wj+iMDgJBApYNrclfVkPZyl/6trY4+7fdSaosE7zdYVLCHM8PNvDtdK+WzJCd5Lf/sDDVNHtmUkOa+0h7e8E9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEH7o/Hriq9QZukgaahcSr1XRU4woueTTc85IxGo+BBVAiEAtMOk5VkeDQXIov6hcYmghqUTSqLObd5J07cmyEwxkRs="}]},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"1.3.0":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"1.3.0","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"dependencies":{"binpacking":"0.0.1"},"_id":"layout@1.3.0","dist":{"shasum":"8e85277a97619530db1d851678ea72e46258260c","tarball":"https://registry.npmjs.org/layout/-/layout-1.3.0.tgz","integrity":"sha512-XWSLKezgVzdDI32YJPbNX31O2VjC9PvhPQW2hDmgu1pg2A2//7L/gCd4+MtqYX0M4QsJCpl/jbuimyrybJPlZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBwooFF/l+KGQm3N9NXnCB0LUkjS52+yP94CIm2jLvEQIhAKhorh6W9lobuxaYyjHw/wNXXyJB5tVJq1RBe5VHkq53"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"1.3.1":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"1.3.1","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"dependencies":{"binpacking":"0.0.1"},"_id":"layout@1.3.1","dist":{"shasum":"73a180e5e566dafd162bcb04dd7a5ff785247afa","tarball":"https://registry.npmjs.org/layout/-/layout-1.3.1.tgz","integrity":"sha512-9mH12OU1jEjZF/j+OJ4tv1giv/dY49k9roKZJD/IP+IeYajfzNKx0gpTmfZ8/FdcD10IxdwbwYTna+0akpNylg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0uo19g+uhBGlA8TXYRNk3Hg4QxI5sOEJ4Z00nEGghuQIhALu0XI2xHct/r8KJHtUjR9ug0KSJd89lu7lWP7y6NtKt"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"1.3.2":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"1.3.2","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"dependencies":{"binpacking":"0.0.1"},"_id":"layout@1.3.2","dist":{"shasum":"27aaae5c4ebeb8257199fbd4d860fcc986ca21d0","tarball":"https://registry.npmjs.org/layout/-/layout-1.3.2.tgz","integrity":"sha512-+ZAZNCOVd6XBZpbWv6ieIvOY/PRNy+Oiwa9/zVRockMWLwaNIv5on/06IqsU0vxnR11HYvZ4ntlEorTbdVh33g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/wuvCvgvn86YUR9vO1cu7OMC0EaGQlC4R+e5UP7THwQIgQ93hEmHrSbpiZpY4f6ZupEsB/QwCTz43s6rlQMgS+Us="}]},"_from":".","_npmVersion":"1.4.2","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"2.0.0":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"2.0.0","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.12"},"keywords":["layout","blueprint","organize","pack","algorithm"],"dependencies":{"binpacking":"0.0.1"},"_id":"layout@2.0.0","dist":{"shasum":"45130bd95fbf81bec16aa6a0ab1a8b3408b55bfb","tarball":"https://registry.npmjs.org/layout/-/layout-2.0.0.tgz","integrity":"sha512-D4WNYsisBWoBYC9/Na/eqAnx1sH46byUS9Ky50XHCpnYjNan5V8u1LMY/SpfolkXPGGFRwO7M6Nzn0yhBFtyug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5aBGttLmertJ4n6vYBvBGrjLGoGeG68qlnKxj0HwBewIgIFsszywu89HLDribColReRrzTzwxjir/RJBdun7CUjU="}]},"_from":".","_npmVersion":"1.4.2","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}]},"2.0.1":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"2.0.1","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.8.0"},"scripts":{"lint":"jshint lib/ test/","test":"npm run lint && nodeunit test/"},"devDependencies":{"jshint":"~2.5.10","nodeunit":"~0.9.0"},"keywords":["layout","blueprint","organize","pack","algorithm"],"dependencies":{"binpacking":"0.0.1"},"gitHead":"ec3c9453c3cac0bf2c2531af7f0c8d84ce21628f","_id":"layout@2.0.1","_shasum":"366bceb740bef8751b105e0cef1475b377262376","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.10.33","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"dist":{"shasum":"366bceb740bef8751b105e0cef1475b377262376","tarball":"https://registry.npmjs.org/layout/-/layout-2.0.1.tgz","integrity":"sha512-0lUmnKle0QiPG/eZT50a3bHitoZi4gjuOijQXCp6xFZVxvlCfYkjcGSz/6pOXy6bPZLnnxvXLM2+Kos49Z/NDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHotBIaVrCOlGGXztVM77bReVFgY2ZYRNk7wgY5HtYRFAiEA8thjrNV782dqndjGH6cmoRG8DmbKEJCKOmMqGxPYpj0="}]}},"2.0.2":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"2.0.2","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.8.0"},"scripts":{"lint":"jshint lib/ test/","test":"npm run lint && nodeunit test/"},"devDependencies":{"grunt":"~0.4.5","grunt-cli":"~0.1.13","grunt-spritesmith":"~2.20.0","jshint":"~2.5.10","nodeunit":"~0.9.0"},"keywords":["layout","blueprint","organize","pack","algorithm"],"dependencies":{"binpacking":"0.0.1"},"gitHead":"b1bb33a0a32680f02484a75f0396c70688f0d0e6","_id":"layout@2.0.2","_shasum":"9ef4ae394ff805b4ebd72bc7a49edff8e6d0cf5d","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.10.33","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"dist":{"shasum":"9ef4ae394ff805b4ebd72bc7a49edff8e6d0cf5d","tarball":"https://registry.npmjs.org/layout/-/layout-2.0.2.tgz","integrity":"sha512-SOZFehBdI+2S6kRM3m2mDsoLryAKi896c4Y9UyqoLVwg7+iUywRkPi+f/6QiZcMcyo1dfYcT4pUjD2MA1ATuCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPeP64TnWdQ9G5ZUHs9PfmARUvnVI6Z6bA6RzYRNDPYgIhAN9jj1qW6bj8Rs6YUbvz7+X/7zI9cG8KB0tQitAnQYTB"}]}},"2.1.0":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"2.1.0","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.8.0"},"scripts":{"lint":"jshint lib/ test/","test":"npm run lint && nodeunit test/"},"devDependencies":{"grunt":"~0.4.5","grunt-cli":"~0.1.13","grunt-spritesmith":"~2.20.0","jshint":"~2.5.10","nodeunit":"~0.9.0"},"keywords":["layout","blueprint","organize","pack","algorithm"],"dependencies":{"boxpack":"0.1.0"},"gitHead":"9ce0e0a505f41f1369e96966e5eae1850f400c8b","_id":"layout@2.1.0","_shasum":"591aef3ac2c0a41b9a3a7ab9e238b130ed242aac","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"dist":{"shasum":"591aef3ac2c0a41b9a3a7ab9e238b130ed242aac","tarball":"https://registry.npmjs.org/layout/-/layout-2.1.0.tgz","integrity":"sha512-y/aHoFTw+MpzskJEImHOIMekXahTx6ivzMlEI7XSM8GWWEndrKyxNiTpW76JJzzO2+4xMApgM4kMJ9e3eTzHGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICG9ySHtiq/LaT0qx5ARSzYssX85FAJeHf71RAUWmnI9AiEAgmaiVVO2fvT6ppPBkPe+3XK/NONdjKCmX0q+tKWgoQQ="}]}},"2.2.0":{"name":"layout","description":"Organize and layout items based on various algorithms","version":"2.2.0","homepage":"https://github.com/twolfson/layout","author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"bugs":{"url":"https://github.com/twolfson/layout/issues"},"licenses":[{"type":"MIT","url":"https://github.com/twolfson/layout/blob/master/LICENSE-MIT"}],"main":"lib/layout","engines":{"node":">= 0.8.0"},"scripts":{"lint":"jshint lib/ test/","test":"npm run lint && nodeunit test/"},"devDependencies":{"grunt":"~0.4.5","grunt-cli":"~0.1.13","grunt-spritesmith":"~2.20.0","jshint":"~2.5.10","nodeunit":"~0.9.0"},"keywords":["layout","blueprint","organize","pack","algorithm"],"dependencies":{"bin-pack":"~1.0.1"},"gitHead":"eaf4c254dee37afbde0eec2c82b343869c6049db","_id":"layout@2.2.0","_shasum":"31e44bfc18dd1019b3ffb208e402a4bbfe2e6af4","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"dist":{"shasum":"31e44bfc18dd1019b3ffb208e402a4bbfe2e6af4","tarball":"https://registry.npmjs.org/layout/-/layout-2.2.0.tgz","integrity":"sha512-+kdgg25XW11BA4cl9vF+SH01HaBipld2Nf/PlU2kSYncAbdUbDoahzrlh6yhR93N/wR2TGgcFoxebzR1LKmZUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHs8sMKwsKVLFsUOE8+lJyT6f3xe/NAJ5WbhlflScq6LAiBq7MyVb9wzNup8ES6k3shXOCJNlMACCxRHTeyfTSIDbA=="}]}}},"readme":"# layout [![Build status](https://travis-ci.org/twolfson/layout.png?branch=master)](https://travis-ci.org/twolfson/layout)\n\nOrganize and layout items based on various algorithms\n\nVisualizations of output data:\n\n|         `top-down`        |          `left-right`         |         `diagonal`        |           `alt-diagonal`          |          `binary-tree`          |\n|---------------------------|-------------------------------|---------------------------|-----------------------------------|---------------------------------|\n| ![top-down][top-down-img] | ![left-right][left-right-img] | ![diagonal][diagonal-img] | ![alt-diagonal][alt-diagonal-img] | ![binary-tree][binary-tree-img] |\n\n[top-down-img]: docs/top-down.png\n[left-right-img]: docs/left-right.png\n[diagonal-img]: docs/diagonal.png\n[alt-diagonal-img]: docs/alt-diagonal.png\n[binary-tree-img]: docs/binary-tree.png\n\n## Getting Started\nInstall the module with: `npm install layout`\n\n```js\n// Load in layout\nvar layout = require('layout');\n\n// Generate a new layer to organize items on\nvar layer = layout('top-down');\n\n// Add items that you want to organize\nlayer.addItem({'height': 20, 'width': 10, 'meta': 'medium'});\nlayer.addItem({'height': 10, 'width': 10, 'meta': 'small'});\nlayer.addItem({'height': 50, 'width': 40, 'meta': 'large'});\n\n// Export the info\nvar info = layer['export']();\n\n// We get back the width and height of the pack as well as organized items\n{\n    height: 80,\n    width: 40,\n    items: [{\n        height: 10,\n        width: 10,\n        meta: 'small',\n        x: 0,\n        y: 0\n    }, {\n        height: 20,\n        width: 10,\n        meta: 'medium',\n        x: 0,\n        y: 10\n    }, {\n        height: 50,\n        width: 40,\n        meta: 'large',\n        x: 0,\n        y: 30\n    }]\n}\n```\n\n## Documentation\nLayout is a constructor function\n\n```js\n/**\n * Layout adds items in an algorithmic fashion\n * @constructor\n * @param {String|Object} [algorithm=\"top-down\"] Name of algorithm or custom algorithm to use\n *   Available algorithms are listed in the Algorithms section\n * @param {Mixed} [options] Options to provide for the algorithm\n */\n```\n\nItems can be added via `addItem` which are required to have a `height` and `width`. Any additional info should be stored inside of `meta`.\n\n```js\n/**\n * @param {Object} item Item to store -- this currently is mutated in-memory\n * @param {Number} item.width Width of the item\n * @param {Number} item.height Height of the item\n * @param {Mixed} [item.meta] Any meta data you would like to store related to the item\n */\n```\n\n`export` is how you take your items and organize them.\n\n```js\n/**\n * @returns {Object} retObj\n * @returns {Number} retObj.height Height of the processed layout\n * @returns {Number} retObj.width Width of the processed layout\n * @returns {Mixed[]} retObj.items Organized items\n */\n```\n\n### Algorithms\nCurrently `layout` supports 5 different layout types which are listed below.\n\n#### `top-down`\nThe `top-down` algorithm places items vertically.\n\n![top-down image][top-down-img]\n\nBy default, it sorts from smallest (top) to largest (bottom). However, this can be disabled via `sort: false`.\n\n**Options:**\n\n- sort `Boolean` Flag to enable/disable sorting from smallest (top) to largest (bottom)\n    - By default, this is enabled (`true`)\n\n#### `left-right`\nThe `left-right` algorithm places items horizontally.\n\n![left-right image][left-right-img]\n\nBy default, it sorts from smallest (left) to largest (right). However, this can be disabled via `sort: false`.\n\n**Options:**\n\n- sort `Boolean` Flag to enable/disable sorting from smallest (left) to largest (right)\n    - By default, this is enabled (`true`)\n\n#### `diagonal`\nThe `diagonal` algorithm places items diagonally (top-left to bottom-right).\n\n![diagonal image][diagonal-img]\n\nBy default, it sorts from smallest (top-left) to largest (bottom-right). However, this can be disabled via `sort: false`.\n\n**Options:**\n\n- sort `Boolean` Flag to enable/disable sorting from smallest (top-left) to largest (bottom-right)\n    - By default, this is enabled (`true`)\n\n#### `alt-diagonal`\nThe `alt-diagonal` algorithm places items diagonally (top-right to bottom-left).\n\n![alt-diagonal image][alt-diagonal-img]\n\nBy default, it sorts from smallest (top-right) to largest (bottom-left). However, this can be disabled via `sort: false`.\n\n**Options:**\n\n- sort `Boolean` Flag to enable/disable sorting from smallest (top-right) to largest (bottom-left)\n    - By default, this is enabled (`true`)\n\n#### `binary-tree`\nThe `binary-tree` algorithm packs items via the [binary tree algorithm][].\n\nThis is an efficient way to pack items into the smallest container possible.\n\n[binary tree algorithm]: http://codeincomplete.com/posts/2011/5/7/bin_packing/\n\n![binary-tree image][binary-tree-img]\n\n### Custom algorithms\nYou can add your own algorithm via `layout.addAlgorithm`\n```js\n/**\n * Method to add new algorithms via\n * @param {String} name Name of algorithm\n * @param {Object} algorithm Algorithm to bind under name\n * @param {Function} algorithm.sort Algorithm to sort object by\n * @param {Function} algorithm.placeItems Algorithm to place items by\n */\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint via `npm run lint` and test via `npm test`.\n\n## Donating\nSupport this project and [others by twolfson][gratipay] via [gratipay][].\n\n[![Support via Gratipay][gratipay-badge]][gratipay]\n\n[gratipay-badge]: https://cdn.rawgit.com/gratipay/gratipay-badge/2.x.x/dist/gratipay.png\n[gratipay]: https://www.gratipay.com/twolfson/\n\n## License\nCopyright (c) 2012-2014 Todd Wolfson\nLicensed under the MIT license.\n","maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"time":{"modified":"2022-06-19T10:54:16.109Z","created":"2012-11-06T08:35:40.740Z","0.1.0":"2012-11-06T08:35:41.994Z","0.1.1":"2012-11-06T08:43:51.410Z","0.2.0":"2012-11-15T08:20:37.215Z","1.1.0":"2012-11-15T08:50:12.326Z","1.2.0":"2012-11-15T09:34:43.073Z","1.2.1":"2012-11-15T09:51:12.055Z","1.3.0":"2013-04-26T09:13:28.500Z","1.3.1":"2013-06-19T05:29:03.746Z","1.3.2":"2014-04-16T06:09:26.100Z","2.0.0":"2014-04-16T06:13:53.480Z","2.0.1":"2014-12-14T12:16:02.732Z","2.0.2":"2014-12-14T12:59:27.343Z","2.1.0":"2015-01-27T04:56:30.315Z","2.2.0":"2015-02-19T05:31:32.408Z"},"author":{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},"repository":{"type":"git","url":"git://github.com/twolfson/layout.git"},"homepage":"https://github.com/twolfson/layout","keywords":["layout","blueprint","organize","pack","algorithm"],"bugs":{"url":"https://github.com/twolfson/layout/issues"},"readmeFilename":"README.md","users":{"detj":true,"timdp":true,"moimikey":true}}