{"_id":"@aurora-design/my-scroll-observe-dom","name":"@aurora-design/my-scroll-observe-dom","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@aurora-design/my-scroll-observe-dom","version":"0.0.0","description":"Dynamic recalculating container's size for BetterScroll","author":{"name":"jizhi","email":"theniceangel@163.com"},"main":"dist/observe-dom.min.js","module":"dist/observe-dom.esm.js","typings":"dist/types/index.d.ts","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/ustbhuangyi/better-scroll/issues"},"homepage":"https://github.com/ustbhuangyi/better-scroll","keywords":["scroll","iscroll","javascript","typescript","ios"],"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/ustbhuangyi/better-scroll.git","directory":"packages/observe-dom"},"dependencies":{"@better-scroll/core":"^2.5.1"},"gitHead":"e6c0b1d78e877cba446945ed21514ea8f5201fb4","_id":"@aurora-design/my-scroll-observe-dom@0.0.0","_nodeVersion":"23.8.0","_npmVersion":"lerna/3.22.1/node@v23.8.0+x64 (win32)","dist":{"integrity":"sha512-djKMbTnTIApdej4IgJu7lJK2UCy6jpOt64npyi+ncs3ab0i9dBY1W/UGaPeXJkshG8jNbjA0+xJnQhrbBznRYg==","shasum":"69a56b6814ec26b981f9868a5def582d2a96c01b","tarball":"https://registry.npmjs.org/@aurora-design/my-scroll-observe-dom/-/my-scroll-observe-dom-0.0.0.tgz","fileCount":10,"unpackedSize":36056,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH+eb6rIzjl1W3IhsRXBbw+a1OwX6fc/AciGu9po9et7AiEA+q4KAC7dNuAdGkoibVt1xVEYaAXs/5tyPyAlFHrA89I="}]},"_npmUser":{"name":"akirarika","email":"i@nito.ink"},"directories":{},"maintainers":[{"name":"akirarika","email":"i@nito.ink"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/my-scroll-observe-dom_0.0.0_1747806108525_0.6730184747660504"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-21T05:41:48.389Z","0.0.0":"2025-05-21T05:41:48.704Z","modified":"2025-05-21T05:41:49.045Z"},"maintainers":[{"name":"akirarika","email":"i@nito.ink"}],"description":"Dynamic recalculating container's size for BetterScroll","homepage":"https://github.com/ustbhuangyi/better-scroll","keywords":["scroll","iscroll","javascript","typescript","ios"],"repository":{"type":"git","url":"git+ssh://git@github.com/ustbhuangyi/better-scroll.git","directory":"packages/observe-dom"},"author":{"name":"jizhi","email":"theniceangel@163.com"},"bugs":{"url":"https://github.com/ustbhuangyi/better-scroll/issues"},"license":"MIT","readme":"# @better-scroll/observe-dom\r\n\r\n[中文文档](https://github.com/ustbhuangyi/better-scroll/blob/master/packages/observe-dom/README_zh-CN.md)\r\n\r\nrecaculating BetterScroll's scrollHeight or scrollWidth by `MutationObserver`, with this, you don't care when BetterScroll's scrollHeight or scrollWidth have changed. Plugin has done it for you.\r\n\r\n> **if current browser does not surpport `MutationObserver`, it will fallback to `setTimeout` in recursion**\r\n\r\n## Usage\r\n\r\n```js\r\nimport BScroll from '@better-scroll/core'\r\nimport ObserveDom from '@better-scroll/observe-dom'\r\nBScroll.use(ObserveDom)\r\n\r\nconst bs = new BScroll('.wrapper', {\r\n  observeDOM: true\r\n})\r\n```\r\n","readmeFilename":"README.md","_rev":"1-d30b86f9bb7c428994e31f99f02123a7"}