{"_id":"dom-scroll-into-view","_rev":"318298","name":"dom-scroll-into-view","description":"scroll dom node into view automatically","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"yiminghe","email":"yiminghe@gmail.com"}],"time":{"modified":"2021-06-03T20:09:45.000Z","created":"2015-01-29T12:33:33.188Z","2.0.1":"2019-08-12T08:50:43.834Z","2.0.0":"2019-07-28T14:37:08.413Z","1.2.1":"2016-11-07T10:01:59.827Z","1.2.0":"2016-03-22T07:39:10.649Z","1.1.0":"2016-02-17T08:05:44.608Z","1.0.1":"2015-01-29T12:37:18.967Z","1.0.0":"2015-01-29T12:33:33.188Z"},"users":{"dongxu":true,"princetoad":true,"tjfwalker":true,"moimikey":true},"repository":{"type":"git","url":"git+ssh://git@github.com/yiminghe/dom-scroll-into-view.git"},"versions":{"2.0.1":{"name":"dom-scroll-into-view","description":"scroll dom node into view automatically","version":"2.0.1","license":"MIT","pika":true,"sideEffects":false,"keywords":["dom","scrollIntoView"],"homepage":"http://github.com/yiminghe/dom-scroll-into-view","bugs":{"url":"http://github.com/yiminghe/dom-scroll-into-view/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/yiminghe/dom-scroll-into-view.git"},"dependencies":{},"devDependencies":{"@pika/plugin-build-node":"0.6.x","@pika/plugin-build-types":"0.6.x","pika-plugin-build-web-babel":"^0.6.0","@pika/plugin-standard-pkg":"0.6.x","@pika/types":"0.6.x","@storybook/react":"^5.1.9","@storybook/storybook-deployer":"^2.8.1","babel-loader":"^8.0.6","jquery":"^3.4.1","lint-staged":"^9.2.1","pre-commit":"1.x","prettier":"^1.18.2","react":"16.x","react-dom":"16.x"},"esnext":"dist-src/index.js","module":"dist-web/index.js","main":"dist-node/index.js","_id":"dom-scroll-into-view@2.0.1","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"shasum":"0decc8522801fd8d3f1c6ba355a74d382c5f989b","size":31228,"noattachment":false,"key":"/dom-scroll-into-view/-/dom-scroll-into-view-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-scroll-into-view/download/dom-scroll-into-view-2.0.1.tgz"},"maintainers":[{"name":"yiminghe","email":"yiminghe@gmail.com"}],"_npmUser":{"name":"yiminghe","email":"yiminghe@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-scroll-into-view_2.0.1_1565599843537_0.716374938209434"},"_hasShrinkwrap":false,"publish_time":1565599843834,"_cnpm_publish_time":1565599843834},"2.0.0":{"name":"dom-scroll-into-view","description":"scroll dom node into view automatically","version":"2.0.0","license":"MIT","pika":true,"sideEffects":false,"keywords":["dom","scrollIntoView"],"homepage":"http://github.com/yiminghe/dom-scroll-into-view","bugs":{"url":"http://github.com/yiminghe/dom-scroll-into-view/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/yiminghe/dom-scroll-into-view.git"},"dependencies":{},"devDependencies":{"@pika/plugin-build-node":"^0.5.1","@pika/plugin-build-types":"^0.5.1","@pika/plugin-build-web":"^0.5.1","@pika/plugin-standard-pkg":"^0.5.1","@pika/types":"^0.5.1","@storybook/react":"^5.1.9","@storybook/storybook-deployer":"^2.8.1","babel-loader":"^8.0.6","jquery":"^3.4.1","lint-staged":"^9.2.1","pre-commit":"1.x","prettier":"^1.18.2","react":"16.x","react-dom":"16.x"},"esnext":"dist-src/index.js","module":"dist-web/index.js","main":"dist-node/index.js","_id":"dom-scroll-into-view@2.0.0","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"shasum":"9d20fb33f090966b32dc3f6f67cbf2bf1b7a81e3","size":8886,"noattachment":false,"key":"/dom-scroll-into-view/-/dom-scroll-into-view-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-scroll-into-view/download/dom-scroll-into-view-2.0.0.tgz"},"maintainers":[{"name":"yiminghe","email":"yiminghe@gmail.com"}],"_npmUser":{"name":"yiminghe","email":"yiminghe@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-scroll-into-view_2.0.0_1564324628284_0.14977674123114482"},"_hasShrinkwrap":false,"publish_time":1564324628413,"_cnpm_publish_time":1564324628413},"1.2.1":{"name":"dom-scroll-into-view","version":"1.2.1","description":"scroll dom node into view automatically","keywords":["dom","scrollIntoView"],"homepage":"http://github.com/yiminghe/dom-scroll-into-view","author":{"name":"yiminghe@gmail.com"},"files":["lib"],"main":"./lib/index","repository":{"type":"git","url":"git+ssh://git@github.com/yiminghe/dom-scroll-into-view.git"},"bugs":{"url":"http://github.com/yiminghe/dom-scroll-into-view/issues"},"license":"MIT","config":{"port":8000},"scripts":{"build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","pub":"rc-tools run pub","lint":"rc-tools run lint","karma":"rc-tools run karma","saucelabs":"rc-tools run saucelabs","test":"rc-tools run test","chrome-test":"rc-tools run chrome-test","coverage":"rc-tools run coverage"},"devDependencies":{"expect.js":"0.3.x","jquery":"^1.12.0","pre-commit":"1.x","rc-tools":"5.x"},"pre-commit":["lint"],"gitHead":"b00556d8e9ea71119ec37dbc73140159b2f895c4","_id":"dom-scroll-into-view@1.2.1","_shasum":"e8f36732dd089b0201a88d7815dc3f88e6d66c7e","_from":".","_npmVersion":"4.0.1","_nodeVersion":"4.6.1","_npmUser":{"name":"yiminghe","email":"yiminghe@gmail.com"},"maintainers":[{"name":"yiminghe","email":"yiminghe@gmail.com"}],"dist":{"shasum":"e8f36732dd089b0201a88d7815dc3f88e6d66c7e","size":7331,"noattachment":false,"key":"/dom-scroll-into-view/-/dom-scroll-into-view-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-scroll-into-view/download/dom-scroll-into-view-1.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/dom-scroll-into-view-1.2.1.tgz_1478512917680_0.0001470944844186306"},"directories":{},"publish_time":1478512919827,"_cnpm_publish_time":1478512919827,"_hasShrinkwrap":false},"1.2.0":{"name":"dom-scroll-into-view","version":"1.2.0","description":"scroll dom node into view automatically","keywords":["dom","scrollIntoView"],"homepage":"http://github.com/yiminghe/dom-scroll-into-view","author":{"name":"yiminghe@gmail.com"},"files":["lib"],"main":"./lib/index","repository":{"type":"git","url":"git+ssh://git@github.com/yiminghe/dom-scroll-into-view.git"},"bugs":{"url":"http://github.com/yiminghe/dom-scroll-into-view/issues"},"licenses":"MIT","config":{"port":8000},"scripts":{"build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","pub":"rc-tools run pub","lint":"rc-tools run lint","karma":"rc-tools run karma","saucelabs":"rc-tools run saucelabs","test":"rc-tools run test","chrome-test":"rc-tools run chrome-test","coverage":"rc-tools run coverage"},"devDependencies":{"expect.js":"0.3.x","jquery":"^1.12.0","pre-commit":"1.x","rc-tools":"5.x"},"pre-commit":["lint"],"gitHead":"38989775663a836ac0f0dea857ad47ad90782e00","_id":"dom-scroll-into-view@1.2.0","_shasum":"84932c136872e3e221bfa04eb045a4560ae9ef8b","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.2","_npmUser":{"name":"yiminghe","email":"yiminghe@gmail.com"},"maintainers":[{"name":"yiminghe","email":"yiminghe@gmail.com"}],"dist":{"shasum":"84932c136872e3e221bfa04eb045a4560ae9ef8b","size":7320,"noattachment":false,"key":"/dom-scroll-into-view/-/dom-scroll-into-view-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-scroll-into-view/download/dom-scroll-into-view-1.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/dom-scroll-into-view-1.2.0.tgz_1458632350208_0.474935962818563"},"directories":{},"publish_time":1458632350649,"_cnpm_publish_time":1458632350649,"_hasShrinkwrap":false},"1.1.0":{"name":"dom-scroll-into-view","version":"1.1.0","description":"scroll dom node into view automatically","keywords":["dom","scrollIntoView"],"homepage":"http://github.com/yiminghe/dom-scroll-into-view","author":{"name":"yiminghe@gmail.com"},"files":["lib"],"main":"./lib/index","repository":{"type":"git","url":"git+ssh://git@github.com/yiminghe/dom-scroll-into-view.git"},"bugs":{"url":"http://github.com/yiminghe/dom-scroll-into-view/issues"},"licenses":"MIT","config":{"port":8000},"scripts":{"build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","pub":"rc-tools run pub","lint":"rc-tools run lint","karma":"rc-tools run karma","saucelabs":"rc-tools run saucelabs","test":"rc-tools run test","chrome-test":"rc-tools run chrome-test","coverage":"rc-tools run coverage"},"devDependencies":{"expect.js":"0.3.x","jquery":"^1.12.0","pre-commit":"1.x","rc-tools":"5.x"},"pre-commit":["lint"],"gitHead":"0271d5c7ee03c2b0709513edf07461aa14aa09dd","_id":"dom-scroll-into-view@1.1.0","_shasum":"5782b3a6c611de87f1ee8e2e27bf1e62459913b1","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.2","_npmUser":{"name":"yiminghe","email":"yiminghe@gmail.com"},"maintainers":[{"name":"yiminghe","email":"yiminghe@gmail.com"}],"dist":{"shasum":"5782b3a6c611de87f1ee8e2e27bf1e62459913b1","size":7203,"noattachment":false,"key":"/dom-scroll-into-view/-/dom-scroll-into-view-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-scroll-into-view/download/dom-scroll-into-view-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/dom-scroll-into-view-1.1.0.tgz_1455696340973_0.44981055869720876"},"directories":{},"publish_time":1455696344608,"_cnpm_publish_time":1455696344608,"_hasShrinkwrap":false},"1.0.1":{"name":"dom-scroll-into-view","version":"1.0.1","description":"scroll dom node into view automatically","keywords":["dom","scrollIntoView"],"homepage":"http://github.com/yiminghe/dom-scroll-into-view","author":"","repository":{"type":"git","url":"git@github.com:yiminghe/dom-scroll-into-view.git"},"bugs":{"url":"http://github.com/yiminghe/dom-scroll-into-view/issues"},"licenses":"MIT","spm":{"devDependencies":{"jquery":"1.8.3"}},"config":{"port":8000},"scripts":{"history":"rc-tools run history","start":"node --harmony node_modules/.bin/rc-server","publish":"rc-tools run tag && spm publish && spm doc publish","lint":"rc-tools run lint","test":"","saucelabs":"rc-tools run saucelabs","browser-test":"rc-tools run browser-test","browser-test-cover":"rc-tools run browser-test-cover"},"devDependencies":{"expect.js":"~0.3.1","jquery":"^1.11.2","precommit-hook":"^1.0.7","rc-server":"^1.5.4","rc-tools":"^1.1.3","react":"~0.12.1"},"precommit":["lint"],"gitHead":"e2ce9052c0a1e9cf2204fcb4c2938ab33fc343c7","_id":"dom-scroll-into-view@1.0.1","_shasum":"32abb92f0d8feca6215162aef43e4b449ab8d99c","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.11.14","_npmUser":{"name":"yiminghe","email":"yiminghe@gmail.com"},"maintainers":[{"name":"yiminghe","email":"yiminghe@gmail.com"}],"dist":{"shasum":"32abb92f0d8feca6215162aef43e4b449ab8d99c","size":8863,"noattachment":false,"key":"/dom-scroll-into-view/-/dom-scroll-into-view-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-scroll-into-view/download/dom-scroll-into-view-1.0.1.tgz"},"directories":{},"publish_time":1422535038967,"_cnpm_publish_time":1422535038967,"_hasShrinkwrap":false},"1.0.0":{"name":"dom-scroll-into-view","version":"1.0.0","description":"scroll dom node into view automatically","keywords":["dom","scrollIntoView"],"homepage":"http://github.com/yiminghe/dom-scroll-into-view","author":"","repository":{"type":"git","url":"git@github.com:yiminghe/dom-scroll-into-view.git"},"bugs":{"url":"http://github.com/yiminghe/dom-scroll-into-view/issues"},"licenses":"MIT","spm":{},"config":{"port":8000},"scripts":{"history":"rc-tools run history","start":"node --harmony node_modules/.bin/rc-server","publish":"rc-tools run tag && spm publish && spm doc publish","lint":"rc-tools run lint","test":"","saucelabs":"rc-tools run saucelabs","browser-test":"rc-tools run browser-test","browser-test-cover":"rc-tools run browser-test-cover"},"devDependencies":{"expect.js":"~0.3.1","jquery":"^1.11.2","precommit-hook":"^1.0.7","rc-server":"^1.5.4","rc-tools":"^1.1.3","react":"~0.12.1"},"precommit":["lint"],"gitHead":"c5682d1ecdb0cdd517573642590b6fd869d634df","_id":"dom-scroll-into-view@1.0.0","_shasum":"ecc46708992403e77c4678c5999eb40d884d8fad","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.11.14","_npmUser":{"name":"yiminghe","email":"yiminghe@gmail.com"},"maintainers":[{"name":"yiminghe","email":"yiminghe@gmail.com"}],"dist":{"shasum":"ecc46708992403e77c4678c5999eb40d884d8fad","size":8848,"noattachment":false,"key":"/dom-scroll-into-view/-/dom-scroll-into-view-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dom-scroll-into-view/download/dom-scroll-into-view-1.0.0.tgz"},"directories":{},"publish_time":1422534813188,"_cnpm_publish_time":1422534813188,"_hasShrinkwrap":false}},"readme":"# dom-scroll-into-view\n---\n\nscroll node in contain to make node visible\n\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/dom-scroll-into-view.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/dom-scroll-into-view\n[travis-image]: https://img.shields.io/travis/react-component/dom-scroll-into-view.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/dom-scroll-into-view\n[coveralls-image]: https://img.shields.io/coveralls/react-component/dom-scroll-into-view.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/dom-scroll-into-view?branch=master\n[gemnasium-image]: http://img.shields.io/gemnasium/react-component/dom-scroll-into-view.svg?style=flat-square\n[gemnasium-url]: https://gemnasium.com/react-component/dom-scroll-into-view\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/dom-scroll-into-view.svg?style=flat-square\n[download-url]: https://npmjs.org/package/dom-scroll-into-view\n\n\n## install\n\n[![dom-scroll-into-view](https://nodei.co/npm/dom-scroll-into-view.png)](https://npmjs.org/package/dom-scroll-into-view)\n\n## Usage\n\n```js\nimport scrollIntoView from 'dom-scroll-into-view';\nscrollIntoView(source,container,config);\n```\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8000/examples/\n\nonline example: http://yiminghe.github.io/dom-scroll-into-view/\n\n## function parameter\n\n<table class=\"table table-bordered table-striped\">\n    <thead>\n    <tr>\n        <th style=\"width: 100px;\">name</th>\n        <th style=\"width: 50px;\">type</th>\n        <th style=\"width: 50px;\">default</th>\n        <th>description</th>\n    </tr>\n    </thead>\n    <tbody>\n        <tr>\n          <td>source</td>\n          <td>HTMLElement</td>\n          <td></td>\n          <td>node wanted to show</td>\n        </tr>\n        <tr>\n          <td>container</td>\n          <td>HTMLElement</td>\n          <td></td>\n          <td></td>\n        </tr>\n        <tr>\n          <td>config.alignWithLeft</td>\n          <td>Boolean</td>\n          <td></td>\n          <td>whether align with left edge</td>\n        </tr>\n        <tr>\n          <td>config.alignWithTop</td>\n          <td>Boolean</td>\n          <td></td>\n          <td>whether align with top edge</td>\n        </tr>\n        <tr>\n          <td>config.offsetTop</td>\n          <td>Number</td>\n          <td></td>\n          <td></td>\n        </tr>\n        <tr>\n          <td>config.offsetLeft</td>\n          <td>Number</td>\n          <td></td>\n          <td></td>\n        </tr>\n        <tr>\n          <td>config.offsetBottom</td>\n          <td>Number</td>\n          <td></td>\n          <td></td>\n        </tr>\n        <tr>\n          <td>config.offsetRight</td>\n          <td>Number</td>\n          <td></td>\n          <td></td>\n        </tr>\n        <tr>\n          <td>config.allowHorizontalScroll</td>\n          <td>Boolean</td>\n          <td></td>\n          <td>whether allow horizontal scroll container</td>\n        </tr>\n        <tr>\n          <td>config.onlyScrollIfNeeded</td>\n          <td>Boolean</td>\n          <td></td>\n          <td>whether scroll container when source is visible</td>\n        </tr>\n    </tbody>\n</table>\n\n## License\n\ndom-scroll-into-view is released under the MIT license.\n","_attachments":{},"homepage":"http://github.com/yiminghe/dom-scroll-into-view","bugs":{"url":"http://github.com/yiminghe/dom-scroll-into-view/issues"},"license":"MIT"}