Axis Namespace
Package: @esfx/iter-hierarchy
Axis traversal helpers.
Functions
ancestors(provider, element)
Declaration
function ancestors<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
ancestorsAndSelf(provider, element)
Declaration
function ancestorsAndSelf<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
children(provider, element)
Declaration
function children<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
descendants(provider, element)
Declaration
function descendants<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, undefined>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
descendantsAndSelf(provider, element)
Declaration
function descendantsAndSelf<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, undefined>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
firstChild(provider, element)
Declaration
function firstChild<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
following(provider, element)
Declaration
function following<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, undefined>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
followingSiblings(provider, element)
Declaration
function followingSiblings<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
lastChild(provider, element)
Declaration
function lastChild<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
nthChild(provider, element, offset)
Declaration
function nthChild<T>(provider: HierarchyProvider<T>, element: T, offset: number | Index): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
- offset
- number | Index
Returns
parents(provider, element)
Declaration
function parents<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
preceding(provider, element)
Declaration
function preceding<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, undefined>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
precedingSiblings(provider, element)
Declaration
function precedingSiblings<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
root(provider, element)
Declaration
function root<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
self(provider, element)
Declaration
function self<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
siblings(provider, element)
Declaration
function siblings<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns
siblingsAndSelf(provider, element)
Declaration
function siblingsAndSelf<T>(provider: HierarchyProvider<T>, element: T): Generator<T, void, unknown>;
Type Parameters
- T
Parameters
- provider
- HierarchyProvider<T>
- element
- T
Returns