Skip to main content

Module intersectionobserver

Module intersectionobserver 

Source

Structsยง

IntersectionObservationOutput ๐Ÿ”’
The values from computing step 2.2.4-2.2.14 in https://w3c.github.io/IntersectionObserver/#update-intersection-observations-algo. See IntersectionObserver::maybe_compute_intersection_output.
IntersectionObserver ๐Ÿ”’
The Intersection Observer interface
IntersectionObserverRegistration ๐Ÿ”’
https://w3c.github.io/IntersectionObserver/#intersectionobserverregistration

Enumsยง

ThresholdIndex ๐Ÿ”’

Constantsยง

_IMPL_DOMOBJECT_FOR_IntersectionObserver ๐Ÿ”’

Functionsยง

compute_the_intersection ๐Ÿ”’
Compute the intersection rectangle of the target Element returning the results of intersection in the coordinate space of the targetโ€™s owning Document. Additionally, we assume that both the target and the root is connected. https://w3c.github.io/IntersectionObserver/#compute-the-intersection
intersect_rectangle ๐Ÿ”’
In terms of intersection observer, we consider zero-area rectangles as long as the area is not negative.
parse_a_margin ๐Ÿ”’
https://w3c.github.io/IntersectionObserver/#parse-a-margin

Type Aliasesยง

IntersectionRoot
The intersection root for an IntersectionObserver is the value of its root attribute if the attribute is non-null; otherwise, it is the top-level browsing contextโ€™s document node, referred to as the implicit root.