├── .github └── workflows │ ├── ci.yml │ └── prettier.yml ├── .gitignore ├── .releaserc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── integration ├── __snapshots__ │ ├── body.test.js.snap │ ├── deeply_nested_overflow.test.js.snap │ ├── iframe.test.js.snap │ ├── nested_overflow.test.js.snap │ ├── overflow_auto.test.js.snap │ ├── target_same_height.test.js.snap │ ├── viewport-100-percent.test.js.snap │ └── viewport.test.js.snap ├── body.html ├── body.test.js ├── deeply_nested_overflow.html ├── deeply_nested_overflow.test.js ├── iframe.html ├── iframe.test.js ├── jest.config.cjs ├── nested_overflow.html ├── nested_overflow.test.js ├── overflow_auto.html ├── overflow_auto.test.js ├── target_same_height.html ├── target_same_height.test.js ├── utils.js ├── viewport-100-percent.html ├── viewport-100-percent.test.js ├── viewport.html └── viewport.test.js ├── jest-puppeteer.config.cjs ├── package.config.ts ├── package.json ├── renovate.json ├── src └── index.ts └── tsconfig.json /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/prettier.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/.github/workflows/prettier.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/.gitignore -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/.releaserc.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/README.md -------------------------------------------------------------------------------- /integration/__snapshots__/body.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/__snapshots__/body.test.js.snap -------------------------------------------------------------------------------- /integration/__snapshots__/deeply_nested_overflow.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/__snapshots__/deeply_nested_overflow.test.js.snap -------------------------------------------------------------------------------- /integration/__snapshots__/iframe.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/__snapshots__/iframe.test.js.snap -------------------------------------------------------------------------------- /integration/__snapshots__/nested_overflow.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/__snapshots__/nested_overflow.test.js.snap -------------------------------------------------------------------------------- /integration/__snapshots__/overflow_auto.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/__snapshots__/overflow_auto.test.js.snap -------------------------------------------------------------------------------- /integration/__snapshots__/target_same_height.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/__snapshots__/target_same_height.test.js.snap -------------------------------------------------------------------------------- /integration/__snapshots__/viewport-100-percent.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/__snapshots__/viewport-100-percent.test.js.snap -------------------------------------------------------------------------------- /integration/__snapshots__/viewport.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/__snapshots__/viewport.test.js.snap -------------------------------------------------------------------------------- /integration/body.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/body.html -------------------------------------------------------------------------------- /integration/body.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/body.test.js -------------------------------------------------------------------------------- /integration/deeply_nested_overflow.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/deeply_nested_overflow.html -------------------------------------------------------------------------------- /integration/deeply_nested_overflow.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/deeply_nested_overflow.test.js -------------------------------------------------------------------------------- /integration/iframe.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/iframe.html -------------------------------------------------------------------------------- /integration/iframe.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/iframe.test.js -------------------------------------------------------------------------------- /integration/jest.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/jest.config.cjs -------------------------------------------------------------------------------- /integration/nested_overflow.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/nested_overflow.html -------------------------------------------------------------------------------- /integration/nested_overflow.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/nested_overflow.test.js -------------------------------------------------------------------------------- /integration/overflow_auto.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/overflow_auto.html -------------------------------------------------------------------------------- /integration/overflow_auto.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/overflow_auto.test.js -------------------------------------------------------------------------------- /integration/target_same_height.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/target_same_height.html -------------------------------------------------------------------------------- /integration/target_same_height.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/target_same_height.test.js -------------------------------------------------------------------------------- /integration/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/utils.js -------------------------------------------------------------------------------- /integration/viewport-100-percent.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/viewport-100-percent.html -------------------------------------------------------------------------------- /integration/viewport-100-percent.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/viewport-100-percent.test.js -------------------------------------------------------------------------------- /integration/viewport.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/viewport.html -------------------------------------------------------------------------------- /integration/viewport.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/integration/viewport.test.js -------------------------------------------------------------------------------- /jest-puppeteer.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/jest-puppeteer.config.cjs -------------------------------------------------------------------------------- /package.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/package.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["github>stipsan/renovate-presets:auto"] 3 | } 4 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/src/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scroll-into-view/compute-scroll-into-view/HEAD/tsconfig.json --------------------------------------------------------------------------------