src/elements/textitem/nodes.ts
A style node represents a node that has presentation styles applied to it, or acts as a parent node when multiple child nodes are present.
The frontend optimizes the node structure such that nested style nodes are collapsed together if possible.
Properties |
Methods |
constructor(children: TextItemNode[], styles: PresentationStyles)
|
|||||||||
Parameters :
|
Public Readonly children |
Type : TextItemNode[]
|
Public Readonly styles |
Type : PresentationStyles
|
filter | ||||||
filter(style: string)
|
||||||
Parameters :
Returns :
StyleNode[]
|
find | ||||||
find(style: string)
|
||||||
Parameters :
Returns :
StyleNode | undefined
|
toPlainText | ||||||
toPlainText(options?: literal type)
|
||||||
Parameters :
Returns :
string
|
visit | |||||||||
visit(visitor: TextItemNodeVisitor<T | R>, context: T)
|
|||||||||
Type parameters :
|
|||||||||
Parameters :
Returns :
R
|