To populate fixed typed array length, will be expanded if needed
Whether integers are used instead of floating-point numbers. Default is true.
Current scroll direction (based on the last scroll value).
Creates an IONode.
IONode creation options
false if error, IONode internal id if success
Handles scroll events and updates the current scroll direction, then recalculates intersections.
Current scroll value
Removes an IONode by its ref PronotronIONodeRef
Reference passed while executing addNode()
Modifies the last scroll value
Scroll value
Bulk updates all IONode positions. Should be executed when the layout changes, e.g.:
Maximum possible position (e.g., document.documentElement.scrollHeight
).
Updates viewport layout data used in calculations. Should be called on:
Start position of the viewport.
End position of the viewport.
PronotronIO - A custom intersection observer solution
Example