@univerjs/engine-render v0.4.2 • Docs
Class: DataStreamTreeNode
Constructors
new DataStreamTreeNode()
new DataStreamTreeNode(nodeType, content?): DataStreamTreeNode
Parameters
Parameter | Type |
---|---|
nodeType | DataStreamTreeNodeType |
content ? | string |
Returns
Defined in
Properties
Methods
addBlocks()
addBlocks(blocks): void
Parameters
Parameter | Type |
---|---|
blocks | number [] |
Returns
void
Defined in
dispose()
dispose(): void
Returns
void
Defined in
exclude()
exclude(index): boolean
Parameters
Parameter | Type |
---|---|
index | number |
Returns
boolean
Defined in
getPositionInParent()
getPositionInParent(): number
Returns
number
Defined in
getProps()
getProps(): {
children: DataStreamTreeNode[];
content: undefined | string;
endIndex: number;
nodeType: DataStreamTreeNodeType;
parent: Nullable<DataStreamTreeNode>;
startIndex: number;
}
Returns
{
children: DataStreamTreeNode[];
content: undefined | string;
endIndex: number;
nodeType: DataStreamTreeNodeType;
parent: Nullable<DataStreamTreeNode>;
startIndex: number;
}
Defined in
insertText()
insertText(text, insertIndex): void
Parameters
Parameter | Type |
---|---|
text | string |
insertIndex | number |
Returns
void
Defined in
merge()
merge(node): void
Parameters
Parameter | Type |
---|---|
node | DataStreamTreeNode |
Returns
void
Defined in
minus()
minus(startIndex, endIndex): void
Parameters
Parameter | Type |
---|---|
startIndex | number |
endIndex | number |
Returns
void
Defined in
plus()
plus(len): void
Parameters
Parameter | Type |
---|---|
len | number |
Returns
void
Defined in
remove()
remove(): void
Returns
void
Defined in
selfPlus()
selfPlus(len, index?): void
Parameters
Parameter | Type |
---|---|
len | number |
index ? | number |
Returns
void
Defined in
setIndexRange()
setIndexRange(startIndex, endIndex): void
Parameters
Parameter | Type |
---|---|
startIndex | number |
endIndex | number |
Returns
void
Defined in
split()
split(index): undefined | {
firstNode: DataStreamTreeNode;
lastNode: DataStreamTreeNode;
}
Parameters
Parameter | Type |
---|---|
index | number |
Returns
undefined
| {
firstNode
: DataStreamTreeNode
;
lastNode
: DataStreamTreeNode
;
}
Defined in
create()
static create(nodeType, content?): DataStreamTreeNode
Parameters
Parameter | Type |
---|---|
nodeType | DataStreamTreeNodeType |
content ? | string |