{"_id":"outlayer","_rev":"12-3c3b74d76ac9cdf156d52041ec78ff27","name":"outlayer","description":"the brains and guts of a layout library","dist-tags":{"latest":"2.1.1"},"versions":{"1.3.0":{"name":"outlayer","version":"1.3.0","description":"the brains and guts of a layout library","main":"outlayer.js","dependencies":{"doc-ready":"1.0.x","wolfy87-eventemitter":">=4.2 <5","eventie":"~1.0.3","get-size":">=1.1.4 <1.3","desandro-get-style-property":"1.x","desandro-matches-selector":"1.x"},"devDependencies":{"jquery":">=1.4.3 <2","jquery-bridget":"1.x","qunitjs":"^1.12.0"},"repository":{"type":"git","url":"https://github.com/metafizzy/outlayer.git"},"bugs":{"url":"https://github.com/metafizzy/outlayer/issues"},"homepage":"https://github.com/metafizzy/outlayer","directories":{"doc":"docs","example":"examples","test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["DOM","layout"],"author":{"name":"David DeSandro"},"license":"MIT","_id":"outlayer@1.3.0","dist":{"shasum":"bc1d4b02fd5b449565c5bae18e86344ee8af5416","tarball":"https://registry.npmjs.org/outlayer/-/outlayer-1.3.0.tgz","integrity":"sha512-Isw4SgD7Po2ALSTuX2GUOQIsKMkT8gY19BkYOAeEdo8BbrXZwhkv9vIQRWXJPdtkZnd5D0zQmKC6IfHbPFJhNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsZ94v3TLF1Oi+qTrI34DOfR0iFdLJ/XP/dofzeH1nZQIhAJfHH/gJnpMf3Jifalu41hdtrUatdicPn+46hFqKUmwF"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}]},"1.4.0":{"name":"outlayer","version":"1.4.0","description":"the brains and guts of a layout library","main":"outlayer.js","dependencies":{"doc-ready":"1.0.x","wolfy87-eventemitter":">=4.2 <5","eventie":"~1.0.3","get-size":"~1.2.2","desandro-get-style-property":"~1.0.4","desandro-matches-selector":"~1.0.2","fizzy-ui-utils":"~1.0.1"},"devDependencies":{"jquery":">=1.4.3 <2","jquery-bridget":"1.x","qunitjs":"^1.12.0"},"repository":{"type":"git","url":"https://github.com/metafizzy/outlayer.git"},"bugs":{"url":"https://github.com/metafizzy/outlayer/issues"},"homepage":"https://github.com/metafizzy/outlayer","directories":{"doc":"docs","example":"examples","test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["DOM","layout"],"author":{"name":"David DeSandro"},"license":"MIT","_id":"outlayer@1.4.0","dist":{"shasum":"dc90fd7fba55b095929341dbf1a6f1786eef931c","tarball":"https://registry.npmjs.org/outlayer/-/outlayer-1.4.0.tgz","integrity":"sha512-kh8NVievisYexN8dGeutKSB7KrPoVVUTLbHNXoi4FQ/PDW2cTdnaKlv56hwZ2exh+34+DL+TMhkVbHrOLGqjhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVO7W8s3Vm8wyMAbQVjylSfe0eWa7hYgCqZWDKTsGGiAIhAO+sze2aw6AgWHaoSc/OR1b2sxkAqn7CXj3YOkOvfRZv"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}]},"1.4.1":{"name":"outlayer","version":"1.4.1","description":"the brains and guts of a layout library","main":"outlayer.js","dependencies":{"doc-ready":"1.0.x","wolfy87-eventemitter":">=4.2 <5","eventie":"~1.0.3","get-size":"~1.2.2","desandro-get-style-property":"~1.0.4","desandro-matches-selector":"~1.0.2","fizzy-ui-utils":"~1.0.1"},"devDependencies":{"jquery":">=1.4.3 <2","jquery-bridget":"1.x","qunitjs":"^1.12.0"},"repository":{"type":"git","url":"https://github.com/metafizzy/outlayer.git"},"bugs":{"url":"https://github.com/metafizzy/outlayer/issues"},"homepage":"https://github.com/metafizzy/outlayer","directories":{"doc":"docs","example":"examples","test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["DOM","layout"],"author":{"name":"David DeSandro"},"license":"MIT","gitHead":"03e374cbad2239bd83bb81af2ff27b175c2c76d3","_id":"outlayer@1.4.1","_shasum":"679830ba94970e1dc050b721f5d9160070015e81","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"679830ba94970e1dc050b721f5d9160070015e81","tarball":"https://registry.npmjs.org/outlayer/-/outlayer-1.4.1.tgz","integrity":"sha512-Z+QABgZgrgnDT6zIBZx5jC75mk4C1NFD2auVkClU5A0hEczIEnNOuMwQ+2kLizcNUkqEk6O3/00SbZAOHADf0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/ycZJgQXI5uhDvcNiXBuo5+YgTytzfyhn+0MSQ+EAgAiAbrFXy8oj7+sKrEmwI2+xH5cggTyuehJtb4fpS/f0bSQ=="}]}},"1.4.2":{"name":"outlayer","version":"1.4.2","description":"the brains and guts of a layout library","main":"outlayer.js","dependencies":{"doc-ready":"1.0.x","wolfy87-eventemitter":">=4.2 <5","eventie":"~1.0.3","get-size":"~1.2.2","desandro-get-style-property":"~1.0.4","desandro-matches-selector":"~1.0.2","fizzy-ui-utils":"~1.0.1"},"devDependencies":{"jquery":">=1.4.3 <2","jquery-bridget":"1.x","qunitjs":"^1.12.0"},"repository":{"type":"git","url":"https://github.com/metafizzy/outlayer.git"},"bugs":{"url":"https://github.com/metafizzy/outlayer/issues"},"homepage":"https://github.com/metafizzy/outlayer","directories":{"doc":"docs","example":"examples","test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["DOM","layout"],"author":{"name":"David DeSandro"},"license":"MIT","gitHead":"2c7f1108a3d906df7ef3f03cda0a3d76791f186b","_id":"outlayer@1.4.2","_shasum":"6d3f35f9078c2cb772a9bec938b5ea2fc752bf43","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"6d3f35f9078c2cb772a9bec938b5ea2fc752bf43","tarball":"https://registry.npmjs.org/outlayer/-/outlayer-1.4.2.tgz","integrity":"sha512-rdrOoQK9EVt+QiLQRtefCCw7TfY4JManWUMVWqHVwCoMskfwqHrS05sMREKyvXgfEQTb4RHk0ypVLvm42x46EQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCUrAjWbTXaaI99n0jHbURk3U8mAJGQFkbhFVZTo+GRwIhAOBva3QJJtnwz7RZzwbjoB6WwyItACY0cwPuM9W3HT7H"}]}},"2.0.0":{"name":"outlayer","version":"2.0.0","description":"the brains and guts of a layout library","main":"outlayer.js","dependencies":{"ev-emitter":"~1.0.0","get-size":"~2.0.2","fizzy-ui-utils":"~2.0.0"},"devDependencies":{"jquery":">=1.4.3 <4","jquery-bridget":"2.x","qunitjs":"^1.17.0"},"repository":{"type":"git","url":"git+https://github.com/metafizzy/outlayer.git"},"bugs":{"url":"https://github.com/metafizzy/outlayer/issues"},"homepage":"https://github.com/metafizzy/outlayer","directories":{"doc":"docs","example":"examples","test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["DOM","layout"],"author":{"name":"David DeSandro"},"license":"MIT","gitHead":"809c1f5c0aaf3e5d55e7f69a87dd34d215a37d9d","_id":"outlayer@2.0.0","_shasum":"26b523e675f3cbca517270e5a464257e719594d4","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"26b523e675f3cbca517270e5a464257e719594d4","tarball":"https://registry.npmjs.org/outlayer/-/outlayer-2.0.0.tgz","integrity":"sha512-/bSSL7QxBL1TDcy6wkcgvVs0ETpPA5WGKvb7GHQ7WcpNoroyVs3eyL85sUo/z6srqN8KTLwCkIw0BYkRFQ2hiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChYBQWEhU5vI05AnZtyRYFTCEJCRAWbstyWWPokyU3bAIhANSAMCgPM9chgZLaEp0mq4nmQ6z8V+nuTUvzduDcZg19"}]}},"2.0.1":{"name":"outlayer","version":"2.0.1","description":"the brains and guts of a layout library","main":"outlayer.js","dependencies":{"ev-emitter":"~1.0.0","get-size":"~2.0.2","fizzy-ui-utils":"~2.0.0"},"devDependencies":{"jquery":">=1.4.3 <4","jquery-bridget":"2.x","qunitjs":"^1.17.0"},"repository":{"type":"git","url":"git+https://github.com/metafizzy/outlayer.git"},"bugs":{"url":"https://github.com/metafizzy/outlayer/issues"},"homepage":"https://github.com/metafizzy/outlayer","directories":{"doc":"docs","example":"examples","test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["DOM","layout"],"author":{"name":"David DeSandro"},"license":"MIT","gitHead":"2c68ab7a901c8272f26b823b87b51a4e10b390f9","_id":"outlayer@2.0.1","_shasum":"ff6cee88398583f34e5401106830a4d9d7b97803","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"ff6cee88398583f34e5401106830a4d9d7b97803","tarball":"https://registry.npmjs.org/outlayer/-/outlayer-2.0.1.tgz","integrity":"sha512-diExI7b1zOtne7SMwOyB54IWT05fm+aZgcoYkUpqOgG9HK9by4kB/NuMN8NbX0ETtX34RL7EsRk4OhUcxVUAcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDD/5vuG40rsmINnvDCjHSIr9cj1s2PZrCVgvmHo3bVnAIhAORS95JPO2teGYhXPDEb2LTwP/3G38XFiy5amID39Lxj"}]},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/outlayer-2.0.1.tgz_1454941795407_0.20696234935894608"}},"2.1.0":{"name":"outlayer","version":"2.1.0","description":"the brains and guts of a layout library","main":"outlayer.js","dependencies":{"ev-emitter":"^1.0.0","get-size":"^2.0.2","fizzy-ui-utils":"^2.0.0"},"devDependencies":{"jquery":">=1.4.3 <4","jquery-bridget":"2.x","qunitjs":"^1.17.0"},"repository":{"type":"git","url":"git+https://github.com/metafizzy/outlayer.git"},"bugs":{"url":"https://github.com/metafizzy/outlayer/issues"},"homepage":"https://github.com/metafizzy/outlayer","directories":{"doc":"docs","example":"examples","test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["DOM","layout"],"author":{"name":"David DeSandro"},"license":"MIT","gitHead":"910f139591665752a0e779460438a6404eed4977","_id":"outlayer@2.1.0","_shasum":"83b7beefc19becd3278c8ade988d268788d6f93d","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"83b7beefc19becd3278c8ade988d268788d6f93d","tarball":"https://registry.npmjs.org/outlayer/-/outlayer-2.1.0.tgz","integrity":"sha512-SnCiZs8LIvxFrD0hTqjoMHY5S1A9Limbir1a38fyJPD7lgjlrsCrYiA6v+9tKfl/A1hQcQAqUbbD8AiJ/wg+ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8IOPf6qEgAEtVTrL2NUKtaZxwF8YfnROtUuzxTKwwCgIhALNcMyJPJNxW7VUoeeKhwYgY0ay9ko2zLDHzyS53fC0Y"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/outlayer-2.1.0.tgz_1461756257347_0.09434349066577852"}},"2.1.1":{"name":"outlayer","version":"2.1.1","description":"the brains and guts of a layout library","main":"outlayer.js","dependencies":{"ev-emitter":"^1.0.0","get-size":"^2.0.2","fizzy-ui-utils":"^2.0.0"},"devDependencies":{"jquery":">=1.4.3 <4","jquery-bridget":"2.x","qunitjs":"^1.17.0"},"repository":{"type":"git","url":"git+https://github.com/metafizzy/outlayer.git"},"bugs":{"url":"https://github.com/metafizzy/outlayer/issues"},"homepage":"https://github.com/metafizzy/outlayer","directories":{"doc":"docs","example":"examples","test":"test"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["DOM","layout"],"author":{"name":"David DeSandro"},"license":"MIT","gitHead":"bf31c5748bf84fcc2c553d1199a6ecaf0ebd9878","_id":"outlayer@2.1.1","_shasum":"29863b6de10ea5dadfffcadfa0d728907387e9a2","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"desandro","email":"desandrocodes@gmail.com"},"maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"dist":{"shasum":"29863b6de10ea5dadfffcadfa0d728907387e9a2","tarball":"https://registry.npmjs.org/outlayer/-/outlayer-2.1.1.tgz","integrity":"sha512-+GplXsCQ3VrbGujAeHEzP9SXsBmJxzn/YdDSQZL0xqBmAWBmortu2Y9Gwdp9J0bgDQ8/YNIPMoBM13nTwZfAhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC38aubC4/3Vx5tAdMJrYfXzuTMdivWniP2MtB0Q0Ce1wIhAIngIIRLr2m4SBxQkl9dbYi0kr4uPLZo/aQbKWmUUdq4"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/outlayer-2.1.1.tgz_1495236153942_0.5684444440994412"}}},"readme":"# Outlayer\n\n_Brains and guts of a layout library_\n\nOutlayer is a base layout class for layout libraries like [Isotope](http://isotope.metafizzy.co), [Packery](http://packery.metafizzy.co), and [Masonry](http://masonry.desandro.com)\n\nOutlayer layouts work with a container element and children item elements.\n\n``` html\n<div class=\"grid\">\n  <div class=\"item\"></div>\n  <div class=\"item\"></div>\n  <div class=\"item\"></div>\n  ...\n</div>\n```\n\n## Install\n\nInstall with [Bower](http://bower.io): `bower install outlayer`\n\n[Install with npm](http://npmjs.org/package/outlayer): `npm install outlayer`\n\n## Outlayer.create()\n\nCreate a layout class with `Outlayer.create()`\n\n``` js\nvar Layout = Outlayer.create( namespace );\n// for example\nvar Masonry = Outlayer.create('masonry');\n```\n\n+ `namespace` _{String}_ should be camelCased\n+ returns `LayoutClass` _{Function}_\n\nCreate a new layout class. `namespace` is used for jQuery plugin, and for declarative initialization.\n\nThe `Layout` inherits from [`Outlayer.prototype`](docs/outlayer.md).\n\n```\nvar elem = document.querySelector('.selector');\nvar msnry = new Masonry( elem, {\n  // set options...\n  columnWidth: 200\n});\n```\n\n## Item\n\nLayouts work with Items, accessible as `Layout.Item`. See [Item API](docs/item.md).\n\n## Declarative\n\nAn Outlayer layout class can be initialized via HTML, by setting an attribute of `data-namespace` on the element. Options are set in JSON. For example:\n\n``` html\n<!-- var Masonry = Outlayer.create('masonry') -->\n<div class=\"grid\" data-masonry='{ \"itemSelector\": \".item\", \"columnWidth\": 200 }'>\n  ...\n</div>\n```\n\nThe declarative attributes and class will be dashed. i.e. `Outlayer.create('myNiceLayout')` will use `data-my-nice-layout` as the attribute.\n\n## .data()\n\nGet a layout instance from an element.\n\n```\nvar myMasonry = Masonry.data( document.querySelector('.grid') );\n```\n\n## jQuery plugin\n\nThe layout class also works as jQuery plugin.\n\n``` js\n// create Masonry layout class, namespace will be the jQuery method\nvar Masonry = Outlayer.create('masonry');\n// rock some jQuery\n$( function() {\n  // .masonry() to initialize\n  var $grid = $('.grid').masonry({\n    // options...\n  });\n  // methods are available by passing a string as first parameter\n  $grid.masonry( 'reveal', elems );\n});\n```\n\n## RequireJS\n\nTo use Outlayer with [RequireJS](http://requirejs.org/), you'll need to set some config.\n\nSet [baseUrl](http://requirejs.org/docs/api.html#config-baseUrl) to bower_components and set a [path config](http://requirejs.org/docs/api.html#config-paths) for all your application code.\n\n``` js\nrequirejs.config({\n  baseUrl: 'bower_components',\n  paths: {\n    app: '../'\n  }\n});\n\nrequirejs( [ 'outlayer/outlayer', 'app/my-component.js' ], function( Outlayer, myComp ) {\n  new Outlayer( /*...*/ )\n});\n```\n\nOr set a path config for all Outlayer dependencies.\n\n``` js\nrequirejs.config({\n  paths: {\n    'ev-emitter': 'bower_components/ev-emitter',\n    'get-size': 'bower_components/get-size',\n    'matches-selector': 'bower_components/matches-selector'\n  }\n});\n```\n\n## MIT license\n\nOutlayer is released under the [MIT license](http://desandro.mit-license.org).\n","maintainers":[{"name":"desandro","email":"desandrocodes@gmail.com"}],"time":{"modified":"2022-06-23T04:33:27.789Z","created":"2014-11-21T01:57:57.848Z","1.3.0":"2014-11-21T01:57:57.848Z","1.4.0":"2015-04-07T21:37:22.382Z","1.4.1":"2015-07-01T14:41:59.333Z","1.4.2":"2015-08-21T15:15:00.795Z","2.0.0":"2016-01-13T16:09:13.215Z","2.0.1":"2016-02-08T14:29:56.645Z","2.1.0":"2016-04-27T11:24:18.346Z","2.1.1":"2017-05-19T23:22:35.110Z"},"homepage":"https://github.com/metafizzy/outlayer","keywords":["DOM","layout"],"repository":{"type":"git","url":"git+https://github.com/metafizzy/outlayer.git"},"author":{"name":"David DeSandro"},"bugs":{"url":"https://github.com/metafizzy/outlayer/issues"},"license":"MIT","readmeFilename":"README.md","users":{"shanewholloway":true}}