@univerjs/engine-render v0.5.0-beta.1 • Docs
Class: DataStreamTreeNode
Constructors
new DataStreamTreeNode()
new DataStreamTreeNode(nodeType, content?): DataStreamTreeNode
Parameters
Parameter | Type |
---|---|
nodeType | DataStreamTreeNodeType |
content ? | string |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:35
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
Parameters
Parameter | Type |
---|---|
blocks | number [] |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:67
dispose()
dispose(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:46
exclude()
exclude(index): boolean
Parameters
Parameter | Type |
---|---|
index | number |
Returns
boolean
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:80
getPositionInParent()
getPositionInParent(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:167
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;
}
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 |
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:54
insertText()
insertText(text, insertIndex): void
Parameters
Parameter | Type |
---|---|
text | string |
insertIndex | number |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:76
merge()
merge(node): void
Parameters
Parameter | Type |
---|---|
node | DataStreamTreeNode |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:208
minus()
minus(startIndex, endIndex): void
Parameters
Parameter | Type |
---|---|
startIndex | number |
endIndex | number |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:187
plus()
plus(len): void
Parameters
Parameter | Type |
---|---|
len | number |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:86
remove()
remove(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:176
selfPlus()
selfPlus(len, index?): void
Parameters
Parameter | Type |
---|---|
len | number |
index ? | number |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:93
setIndexRange()
setIndexRange(startIndex, endIndex): void
Parameters
Parameter | Type |
---|---|
startIndex | number |
endIndex | number |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:71
split()
split(index): undefined | {
firstNode: DataStreamTreeNode;
lastNode: DataStreamTreeNode;
}
Parameters
Parameter | Type |
---|---|
index | number |
Returns
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
create()
static create(nodeType, content?): DataStreamTreeNode
Parameters
Parameter | Type |
---|---|
nodeType | DataStreamTreeNodeType |
content ? | string |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:42