Class: Overflow

Overflow(node, offset, overflowHeight, range, topLevel)

Represents an overflow area in a document or visual element. Used to track positions and dimensions when content exceeds bounds.

Constructor

new Overflow(node, offset, overflowHeight, range, topLevel)

Creates an instance of Overflow.

Creates an instance of Overflow.

Parameters:
Name Type Description
node Node

The DOM node associated with the overflow.

offset number

The offset within the node where overflow begins.

overflowHeight number

The height of the overflow content.

range Range

The range object representing the overflow area.

topLevel boolean

Indicates if this overflow is at the top level.

Source:

Methods

equals(otherOffset) → {boolean}

Checks if this overflow object is equal to another based on node and offset.

Checks if this overflow object is equal to another based on node and offset.

Parameters:
Name Type Description
otherOffset Object

Another object with node and offset properties to compare against.

Properties
Name Type Description
node Node

The node to compare.

offset number

The offset to compare.

Source:
Returns:

True if both node and offset match, false otherwise.

Type
boolean