{"name":"@sveltejs/svelte-virtual-list","version":"3.0.1","description":"A <VirtualList> component for Svelte apps","main":"VirtualList.svelte","svelte":"VirtualList.svelte","scripts":{"build":"rollup -c","dev":"rollup -cw","prepublishOnly":"npm test","test":"node test/runner.js","test:browser":"npm run build && serve test/public","pretest":"npm run build","lint":"eslint src/VirtualList.svelte"},"devDependencies":{"eslint":"^5.12.1","eslint-plugin-svelte3":"git+https://github.com/sveltejs/eslint-plugin-svelte3.git","port-authority":"^1.0.5","puppeteer":"^1.9.0","rollup":"^1.1.2","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-svelte":"^5.0.1","sirv":"^0.2.2","svelte":"^3.0.0-beta.2","tap-diff":"^0.1.1","tap-dot":"^2.0.0","tape-modern":"^1.1.1"},"repository":{"type":"git","url":"git+https://github.com/sveltejs/svelte-virtual-list.git"},"author":{"name":"Rich Harris"},"license":"LIL","keywords":["svelte"],"gitHead":"a05f9c647c3fde9e143e930642cc8ba547c3c7b3","bugs":{"url":"https://github.com/sveltejs/svelte-virtual-list/issues"},"homepage":"https://github.com/sveltejs/svelte-virtual-list#readme","_id":"@sveltejs/svelte-virtual-list@3.0.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-aF9TptS7NKKS7/TqpsxQBSDJ9Q0XBYzBehCeIC5DzdMEgrJZpIYao9LRLnyyo6SVodpapm2B7FE/Lj+FSA5/SQ==","shasum":"3784d6426508836b4471bba8ba293430e73717d8","tarball":"http://registry-npm.ywwl.com/@sveltejs/svelte-virtual-list/download/@sveltejs/svelte-virtual-list-3.0.1.tgz","fileCount":5,"unpackedSize":9122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXqmECRA9TVsSAnZWagAADd4P/0ZFog+NjO6WrINWiSFe\nhMlbmzFcJ3io6BqjggK8g62UDcr87aKalDaFcs1cX8bs1ahEoVUaAayd5HZ2\n6g7xrXK9BdOopKnrpLYo7m6FDLcM3CpfWK/y6cfe2/nJWbNvooED28VbSyJ6\njQoyaZ5xCq0f7uxP4j16k9r+ugrhPKC14AoCitoNligunYbkcI1PAweh2qkD\n6cRimUhQyBPoxEMDG13nlcODGZ4pWSGu+1o3FOctQSla/oWuV6liJ3PyvVAY\nsWHoOtXdpRKBJ4byNiy7j3P8RajgVhDswEhTYGTzYQHw6V5mGKVETxqHzn0M\nv6TtjcYeqC4Nt6EljEJkdKsUn3EbS+RBHNQk7myMcroWBG4Av4dqIH6+4MhZ\nCBMdM1A/4miDAR3FCZ0OnlYzIDg+SS+MJz4B4xWoNRZclsMVlZCMkIg/NM6j\nqrOXBdvWrMw5wWrOjSuPMRWububOOeeRqi1DnctI+Bn+lfGKnpD1IrjbgWAn\n9H4zJtMO3FX9vs2kocIcsfmVcm8eiRSkFcKjJ3G5nCRnXrb6zVW5LttDcZ7N\nrhxdjlZhGs8Furgwob4NEVn5xCnbC8QLTeqA+U9A/fJDNYVjnvzyv5IvWEiQ\npujHO+dYMCI4JwqrQMI+ltrwRBJvahRcxY/dxvEnv/zVDBiChC8gMZiMzBa+\n8Xqs\r\n=tznA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAS66xfXl+K49rtipvc9hy2NcVrs6Vqo+0PERn8lzqp8AiEAzh0LOe3fo1HRDGFCr5KTvU1HA9629ktLCxcvoE3FsRI="}],"size":3738,"noattachment":false,"key":"/@sveltejs/svelte-virtual-list/-/@sveltejs/svelte-virtual-list-3.0.1.tgz"},"maintainers":[{"email":"npm@chor.date","name":"conduitry"},{"email":"richard.a.harris@gmail.com","name":"rich_harris"},{"email":"richard.a.harris+svelte@gmail.com","name":"svelte-admin"}],"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-virtual-list_3.0.1_1566484868203_0.15772439158413487"},"_hasShrinkwrap":false,"readme":"# svelte-virtual-list ([demo](https://svelte.dev/repl/f78ddd84a1a540a9a40512df39ef751b))\n\nA virtual list component for Svelte apps. Instead of rendering all your data, `<VirtualList>` just renders the bits that are visible, keeping your page nice and light.\n\n## Installation\n\n```bash\nyarn add @sveltejs/svelte-virtual-list\n```\n\n\n## Usage\n\n```html\n<script>\n  import VirtualList from '@sveltejs/svelte-virtual-list';\n\n  const things = [\n    // these can be any values you like\n    { name: 'one', number: 1 },\n    { name: 'two', number: 2 },\n    { name: 'three', number: 3 },\n    // ...\n    { name: 'six thousand and ninety-two', number: 6092 }\n  ];\n</script>\n\n<VirtualList items={things} let:item>\n  <!-- this will be rendered for each currently visible item -->\n  <p>{item.number}: {item.name}</p>\n</VirtualList>\n```\n\n\n## `start` and `end`\n\nYou can track which rows are visible at any given by binding to the `start` and `end` values:\n\n```html\n<VirtualList items={things} bind:start bind:end>\n  <p>{item.number}: {item.name}</p>\n</VirtualList>\n\n<p>showing {start}-{end} of {things.length} rows</p>\n```\n\nYou can rename them with e.g. `bind:start={a} bind:end={b}`.\n\n\n## `height`\n\nBy default, the `<VirtualList>` component will fill the vertical space of its container. You can specify a different height by passing any CSS length:\n\n```html\n<VirtualList height=\"500px\" items={things} let:item>\n  <p>{item.number}: {item.name}</p>\n</VirtualList>\n```\n\n\n## `itemHeight`\n\nYou can optimize initial display and scrolling when the height of items is known in advance. This should be a number representing a pixel value.\n\n```html\n<VirtualList itemHeight={48} items={things} let:item>\n  <p>{item.number}: {item.name}</p>\n</VirtualList>\n```\n\n\n## Configuring webpack\n\nIf you're using webpack with [svelte-loader](https://github.com/sveltejs/svelte-loader), make sure that you add `\"svelte\"` to [`resolve.mainFields`](https://webpack.js.org/configuration/resolve/#resolve-mainfields) in your webpack config. This ensures that webpack imports the uncompiled component (`src/index.html`) rather than the compiled version (`index.mjs`) — this is more efficient.\n\nIf you're using Rollup with [rollup-plugin-svelte](https://github.com/rollup/rollup-plugin-svelte), this will happen automatically.\n\n\n## License\n\n[LIL](LICENSE)\n","publish_time":1566484868370,"_cnpm_publish_time":1566484868370,"dist-tags":{"latest":"3.0.1","next":"3.0.0-alpha.1"}}