File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Try it in the [Svelte REPL](https://svelte.dev/repl/47fe04909fd14ee5ad5d02390cc1
28
28
## Usage
29
29
``` svelte
30
30
<script>
31
- import Viewable from "@svelte-plugins/viewable";
31
+ import { Viewable } from "@svelte-plugins/viewable";
32
32
33
33
const immediately = (definition) => {
34
34
console.log('element has crossed the viewport');
@@ -69,7 +69,7 @@ Try the basic example in [Svelte REPL](https://svelte.dev/repl/c97c9abb9c944647a
69
69
| rootMargin | Margin offset of the containing element | ` string ` (default: ` "0px" ` ) |
70
70
| intersecting | ` true ` if the observed element is intersecting | ` boolean ` (default: ` false ` ) |
71
71
| observer | IntersectionObserver instance | [ ` IntersectionObserver ` ] ( https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver ) |
72
- | entry | Observed element metadata | [ ` IntersectionObserverEntry ` ] ( https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry ) |
72
+ | entry | IntersectionObserver Entry | [ ` IntersectionObserverEntry ` ] ( https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry ) |
73
73
| debug | If ` true ` , debug ouput will be logged to console | ` boolean ` (default: ` false ` ) |
74
74
75
75
#### rules
@@ -103,7 +103,8 @@ The properties below can be used to assist with debugging any issues you might h
103
103
| percent | Percentage of total viewable area (X+Y) | ` number ` (default: ` 0 ` ) |
104
104
| percentX | Percentage of horizontal viewable area | ` number ` (default: ` 0 ` ) |
105
105
| percentY | Percentage of vertical viewable area | ` number ` (default: ` 0 ` ) |
106
-
106
+ | entry | IntersectionObserver Entry | ` object ` (default: ` null ` ) |
107
+ | observer | IntersectionObserver | ` object ` (default: ` null ` ) |
107
108
108
109
### Events
109
110
You can’t perform that action at this time.
0 commit comments