@glimmer/component
Version:
Glimmer component library
16 lines (15 loc) • 524 B
TypeScript
import { Bounds as VMBounds } from '@glimmer/interfaces';
/**
* Contains the first and last DOM nodes in a component's rendered
* template. These nodes can be used to traverse the section of DOM
* that belongs to a particular component.
*
* Note that these nodes *can* change over the lifetime of a component
* if the beginning or ending of the template is dynamic.
*/
export default class Bounds {
private _bounds;
constructor(_bounds: VMBounds);
readonly firstNode: Node;
readonly lastNode: Node;
}