{"bugs":{"url":"https://github.com/Akryum/vue-resize/issues"},"dist":{"shasum":"43eeb79e74febe932b9b20c5c57e0ebc14e2df3a","tarball":"https://registry.npmjs.org/vue-resize/-/vue-resize-2.0.0-alpha.1.tgz","fileCount":20,"integrity":"sha512-7+iqOueLU7uc9NrMfrzbG8hwMqchfVfSzpVlCMeJQe4pyibqyoifDNbKTZvwxZKDvGkB+PdFeKvnGZMoEb8esg==","signatures":[{"sig":"MEQCIGM0XgIn/esC6LcsF5Mo6K5CjD0o1MZhLjKVqf97Yy6oAiB0644XUDoIVjgvaL6DfrFcrD2U8uvo910iUSYqZ0G7vQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf64f3CRA9TVsSAnZWagAAcIMP/1G19tJK82LMU7grajj5\nzlIxqf+BUwhKrjZ7WsCUwe7EdfWXU0g/7OrEEOBtM/nnRpooqt3TSNB+i2yp\nn2DU1GG/P01weY0Rf620VIbPXQJIWnyQXNVCxaiz4dN8XaVNpavSYsrLpqej\nzO8XK7GWB4H9b0dI+BsX/jUddUGYY07XfKzKmAe8cz6IlUmme10MpZ6AJPD3\nJV+0QIn5ooNfr2jNVbefeR3ZNv+QJ7Sce62Od1BHeKZTO/QsjyuD6DoWxnWr\n+9AVR7t55jDsMkYkt0eDE3jlYVDcuem2N0uU/pkZV8ZTEkkLLg3iN10CuIjI\nJvggXEsK84Q06FyJ3e9tXiJf4HbKJXOcDUxh6PAgnMYZ+HpS8DvTOwTbhu2g\neMv9tzEdZ/HezCpHlL62N1JKqBQIyTFgLhqimJclDnvnuykzyPaTDqHGmJ6v\nmaz4pwpP/CowmCXFQ4lxwGvFjgvZPUY9asPNnsOeGiIoOONJGNlZUFOMbRZ1\nVscmW8BuXE9SgjLMj2dc9t3hzzd48Kn4Wnfu7lTzkwJyrB7JVCkLvCmeiCur\nbXvOAuIcqbzdP70KHO2BncgwUqt4g0sq3dyFKip5fQ+nB+v2hhx5qyk+KY2m\n03HshlrDyXgFw3Fa4bCu9Zju2kJq5X99m6d+lMfv/DR2wnhFA+2orFq0wO/q\n84A+\r\n=w0OK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/vue-resize.umd.js","name":"vue-resize","unpkg":"dist/vue-resize.min.js","watch":{"build":"src/*.js"},"author":{"name":"Guillaume Chau","email":"guillaume.b.chau@gmail.com"},"module":"dist/vue-resize.esm.js","readme":"# vue-resize\n\n[![npm](https://img.shields.io/npm/v/vue-resize.svg) ![npm](https://img.shields.io/npm/dm/vue-resize.svg)](https://www.npmjs.com/package/vue-resize)\n[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)\n\nDetect DOM element resizing\n\n[JSFiddle](https://jsfiddle.net/Akryum/zqygwf3r/)\n\n<p>\n  <a href=\"https://www.patreon.com/akryum\" target=\"_blank\">\n    <img src=\"https://c5.patreon.com/external/logo/become_a_patron_button.png\" alt=\"Become a Patreon\">\n  </a>\n</p>\n\n## Sponsors\n\n[![sponsors logos](https://guillaume-chau.info/sponsors.png)](https://guillaume-chau.info/sponsors)\n\n<br>\n\n# Installation\n\n```\nnpm install --save vue-resize\n```\n\n## Module import\n\n**⚠️ You need to include the package CSS:**\n\n```js\nimport 'vue-resize/dist/vue-resize.css'\n```\n\nThen import the package and install it into Vue:\n\n```javascript\nimport VueResize from 'vue-resize'\n\napp.use(VueResize)\n```\n\nOr:\n\n```javascript\nimport { ResizeObserver } from 'vue-resize'\n\napp.component('resize-observer', ResizeObserver)\n```\n\n## Browser\n\n```html\n<link rel=\"stylesheet\" href=\"vue-resize/dist/vue-resize.css\"/>\n\n<script src=\"vue.js\"></script>\n<script src=\"vue-resize/dist/vue-resize.min.js\"></script>\n```\n\n```javascript\napp.use(VueResize)\n```\n\nOr:\n\n```javascript\napp.component('resize-observer', VueResize.ResizeObserver)\n```\n\n# Usage\n\nAdd the `<resize-observer>` inside a DOM element and make its position to something other than `'static'` (for example `'relative'`), so that the observer can fill it.\n\nListen to the `notify` event that is fired when the above DOM element is resized.\n\n# Example\n\n```html\n<template>\n  <div class=\"demo\">\n    <h1>Hello world!</h1>\n    <resize-observer @notify=\"handleResize\" />\n  </div>\n</template>\n\n<script>\nexport default {\n  methods: {\n    handleResize ({ width, height }) {\n      console.log('resized', width, height)\n    }\n  }\n}\n</script>\n\n<style scoped>\n.demo {\n  position: relative;\n}\n</style>\n```\n\n---\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n","license":"MIT","scripts":{"dev":"cross-env NODE_ENV=development rollup --config build/rollup.config.es.js --watch","lint":"eslint --ext .js,.vue src","test":"yarn run build && yarn run lint && cd ../demo && yarn run test","build":"yarn run build:browser && yarn run build:es && yarn run build:umd","build:es":"rollup --config build/rollup.config.es.js","build:umd":"rollup --config build/rollup.config.umd.js","build:browser":"rollup --config build/rollup.config.browser.js","prepublishOnly":"yarn run test"},"_npmUser":{"name":"akryum","email":"guillaume.b.chau@gmail.com"},"homepage":"https://github.com/Akryum/vue-resize#readme","keywords":["vue","vuejs","plugin"],"repository":{"url":"git+https://github.com/Akryum/vue-resize.git","type":"git","directory":"packages/vue-resize"},"_npmVersion":"6.14.8","description":"Detects DOM element resizing","directories":{},"maintainers":[{"name":"akryum","email":"guillaume.b.chau@gmail.com"}],"_nodeVersion":"14.12.0","browserslist":["> 1%","last 2 versions","not ie <= 8"],"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vue":"^3.0.0","eslint":"^7.16.0","rollup":"^2.2.0","fs-extra":"^9.0.0","clean-css":"^4.1.8","cross-env":"^7.0.2","@babel/core":"^7.9.0","autoprefixer":"^9.7.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.9.0","@vue/compiler-sfc":"^3.0.2","eslint-plugin-vue":"^7.4.0","rollup-plugin-vue":"^6.0.0","eslint-plugin-html":"^6.1.1","eslint-plugin-node":"^11.1.0","@rollup/plugin-babel":"^5.2.2","eslint-plugin-import":"^2.22.1","rollup-plugin-terser":"^5.3.0","@rollup/plugin-eslint":"^8.0.1","eslint-plugin-promise":"^4.2.1","@rollup/plugin-replace":"^2.3.1","eslint-config-standard":"^16.0.2","eslint-plugin-standard":"^5.0.0","rollup-plugin-css-only":"^2.0.0","@rollup/plugin-commonjs":"^11.0.2","rollup-plugin-css-porter":"^1.0.2","@rollup/plugin-node-resolve":"^7.1.1"},"peerDependencies":{"vue":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-resize_2.0.0-alpha.1_1609271287186_0.7467027432297955","host":"s3://npm-registry-packages"},"_id":"vue-resize@2.0.0-alpha.1","version":"2.0.0-alpha.1"}