Closed novacbn closed 3 years ago
Added IS_SERVER: boolean constant.
IS_SERVER: boolean
Added the following Actions / Action Features
intersection_observer(HTMLElement, {on_intersect: (intersections: IntersectionObserverEntry[]) => void}): IIntersectionObserverAction — Light Svelte Action wrapper around the IntersectionObserver API.
intersection_observer(HTMLElement, {on_intersect: (intersections: IntersectionObserverEntry[]) => void}): IIntersectionObserverAction
IntersectionObserver API
intersection_observer({...: IntersectionObserverInit})
IntersectionObserverInit
rootMargin
root_margin
mutation_observer(HTMLElement, {on_mutate: (mutations: MutationRecord[]) => void}): IMutationObserverAction — Light Svelte Action wrapper around the MutationObserver API.
mutation_observer(HTMLElement, {on_mutate: (mutations: MutationRecord[]) => void}): IMutationObserverAction
MutationObserver API
mutation_observer({...: MutationObserverInit})
MutationObserverInit
attributeFilter
attribute_filter
Added the following Components / Component Features
Utilities
BrowserRender — Disables rendering of child content whenever Component is initialized on a Server.
BrowserRender
ServerRender — Disables rendering of child content whenever Component is initialized on the Browser.
ServerRender
IntersectionRender — Starts rendering the child content whenever the content intersects the viewport, via a IntersectionObserver.
IntersectionRender
IntersectionObserver
<IntersectionRender fallthrough={boolean}>
true
<IntersectionRender loading="eager">
<IntersectionRender has_intersected={boolean}>
<IntersectionRender is_intersecting={boolean}>
<IntersectionRender root>
IntersectionObserverInit.root
<IntersectionRender root_margin>
IntersectionObserverInit.rootMargin
<IntersectionRender threshold>
IntersectionObserverInit.threshold
Preview: https://novacbn-kahi-ui-pr-55-run-67.surge.sh
Preview: https://novacbn-kahi-ui-pr-55-run-69.surge.sh
Preview: https://novacbn-kahi-ui-pr-55-run-71.surge.sh
Preview: https://novacbn-kahi-ui-pr-55-run-73.surge.sh
Preview: https://novacbn-kahi-ui-pr-55-run-75.surge.sh
Preview: https://novacbn-kahi-ui-pr-55-run-77.surge.sh
CHANGELOG
Added
IS_SERVER: boolean
constant.Added the following Actions / Action Features
intersection_observer(HTMLElement, {on_intersect: (intersections: IntersectionObserverEntry[]) => void}): IIntersectionObserverAction
— Light Svelte Action wrapper around theIntersectionObserver API
.intersection_observer({...: IntersectionObserverInit})
— PassIntersectionObserverInit
options.rootMargin
->root_margin
mutation_observer(HTMLElement, {on_mutate: (mutations: MutationRecord[]) => void}): IMutationObserverAction
— Light Svelte Action wrapper around theMutationObserver API
.mutation_observer({...: MutationObserverInit})
— PassMutationObserverInit
options.attributeFilter
->attribute_filter
Added the following Components / Component Features
Utilities
BrowserRender
— Disables rendering of child content whenever Component is initialized on a Server.ServerRender
— Disables rendering of child content whenever Component is initialized on the Browser.IntersectionRender
— Starts rendering the child content whenever the content intersects the viewport, via aIntersectionObserver
.<IntersectionRender fallthrough={boolean}>
— Whentrue
, always renders content in SSR environments, e.g. SvelteKit<IntersectionRender loading="eager">
— Changes behavior to stop rendering the child content whenever it leaves the viewport, instead of persisting.<IntersectionRender has_intersected={boolean}>
— Istrue
after the child content has intersected once.<IntersectionRender is_intersecting={boolean}>
— Istrue
whenever the child content is intersecting.<IntersectionRender root>
— Maps toIntersectionObserverInit.root
.<IntersectionRender root_margin>
— Maps toIntersectionObserverInit.rootMargin
.<IntersectionRender threshold>
— Maps toIntersectionObserverInit.threshold
.