@univerjs/engine-render v0.5.4
Class: DataStreamTreeNode
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:26
Constructors
new DataStreamTreeNode()
new DataStreamTreeNode(nodeType, content?): DataStreamTreeNode
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:35
Parameters
Parameter | Type |
---|---|
nodeType | DataStreamTreeNodeType |
content ? | string |
Returns
Properties
Property | Modifier | Type | Default value | Defined in |
---|---|---|---|---|
blocks | public | number [] | [] | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:33 |
children | public | DataStreamTreeNode [] | [] | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:27 |
content? | public | string | undefined | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:37 |
endIndex | public | number | -1 | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:30 |
nodeType | public | DataStreamTreeNodeType | undefined | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:36 |
parent | public | Nullable <DataStreamTreeNode > | undefined | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:28 |
startIndex | public | number | -1 | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:29 |
Methods
addBlocks()
addBlocks(blocks): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:67
Parameters
Parameter | Type |
---|---|
blocks | number [] |
Returns
void
dispose()
dispose(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:46
Returns
void
exclude()
exclude(index): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:80
Parameters
Parameter | Type |
---|---|
index | number |
Returns
boolean
getPositionInParent()
getPositionInParent(): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:167
Returns
number
getProps()
getProps(): {
children: DataStreamTreeNode[];
content: undefined | string;
endIndex: number;
nodeType: DataStreamTreeNodeType;
parent: Nullable<DataStreamTreeNode>;
startIndex: number;
}
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:54
Returns
{
children: DataStreamTreeNode[];
content: undefined | string;
endIndex: number;
nodeType: DataStreamTreeNodeType;
parent: Nullable<DataStreamTreeNode>;
startIndex: number;
}
Name | Type | Defined in |
---|---|---|
children | DataStreamTreeNode [] | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:58 |
content | undefined | string | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:63 |
endIndex | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:61 |
nodeType | DataStreamTreeNodeType | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:62 |
parent | Nullable <DataStreamTreeNode > | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:59 |
startIndex | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:60 |
insertText()
insertText(text, insertIndex): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:76
Parameters
Parameter | Type |
---|---|
text | string |
insertIndex | number |
Returns
void
merge()
merge(node): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:208
Parameters
Parameter | Type |
---|---|
node | DataStreamTreeNode |
Returns
void
minus()
minus(startIndex, endIndex): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:187
Parameters
Parameter | Type |
---|---|
startIndex | number |
endIndex | number |
Returns
void
plus()
plus(len): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:86
Parameters
Parameter | Type |
---|---|
len | number |
Returns
void
remove()
remove(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:176
Returns
void
selfPlus()
selfPlus(len, index?): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:93
Parameters
Parameter | Type |
---|---|
len | number |
index ? | number |
Returns
void
setIndexRange()
setIndexRange(startIndex, endIndex): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:71
Parameters
Parameter | Type |
---|---|
startIndex | number |
endIndex | number |
Returns
void
split()
split(index):
| undefined
| {
firstNode: DataStreamTreeNode;
lastNode: DataStreamTreeNode;
}
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:103
Parameters
Parameter | Type |
---|---|
index | number |
Returns
| undefined
| {
firstNode
: DataStreamTreeNode
;
lastNode
: DataStreamTreeNode
;
}
create()
static create(nodeType, content?): DataStreamTreeNode
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:42
Parameters
Parameter | Type |
---|---|
nodeType | DataStreamTreeNodeType |
content ? | string |