@univerjs/engine-render v0.5.0-beta.1 • Docs


Class: DataStreamTreeNode

Constructors

new DataStreamTreeNode()

new DataStreamTreeNode(nodeType, content?): DataStreamTreeNode

Parameters

ParameterType
nodeTypeDataStreamTreeNodeType
content?string

Returns

DataStreamTreeNode

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:35

Properties

PropertyModifierTypeDefault valueDefined in
blockspublicnumber[][]packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:33
childrenpublicDataStreamTreeNode[][]packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:27
content?publicstringundefinedpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:37
endIndexpublicnumber-1packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:30
nodeTypepublicDataStreamTreeNodeTypeundefinedpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:36
parentpublicNullable<DataStreamTreeNode>undefinedpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:28
startIndexpublicnumber-1packages/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

ParameterType
blocksnumber[]

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

ParameterType
indexnumber

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;
}
NameTypeDefined in
childrenDataStreamTreeNode[]packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:58
contentundefined | stringpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:63
endIndexnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:61
nodeTypeDataStreamTreeNodeTypepackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:62
parentNullable<DataStreamTreeNode>packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:59
startIndexnumberpackages/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

ParameterType
textstring
insertIndexnumber

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

ParameterType
nodeDataStreamTreeNode

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

ParameterType
startIndexnumber
endIndexnumber

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

ParameterType
lennumber

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

ParameterType
lennumber
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

ParameterType
startIndexnumber
endIndexnumber

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

ParameterType
indexnumber

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

ParameterType
nodeTypeDataStreamTreeNodeType
content?string

Returns

DataStreamTreeNode

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:42