Remove internals page

pull/8452/head
Puru Vijay 3 years ago
parent d654a8a8a5
commit a100a23799

@ -1,15 +0,0 @@
---
title: svelte/internal
---
`svelte/internal` module gives you all the mthods and types internally used.
> WARNING: This API may change without warning. Use exports from this module with caution.
## Exports
> EXPORTS: svelte/internal
## Types
> TYPES: svelte/internal

@ -41,7 +41,7 @@
function update() {
content = document.querySelector('.content');
const { top } = content.getBoundingClientRect();
headings = content.querySelectorAll('h2[id]');
headings = content.querySelectorAll('h2[id], h3[id]');
positions = Array.from(headings).map((heading) => {
const style = getComputedStyle(heading);
return heading.getBoundingClientRect().top - parseFloat(style.scrollMarginTop) - top;
@ -92,13 +92,13 @@
containerEl.scrollBy({
top: top - max,
left: 0,
behavior: 'smooth',
behavior: 'smooth'
});
} else if (bottom < min) {
containerEl.scrollBy({
top: bottom - min,
left: 0,
behavior: 'smooth',
behavior: 'smooth'
});
}
}

Loading…
Cancel
Save