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 Properties
|
- Source:
Returns:
True if both node and offset match, false otherwise.
- Type
- boolean