@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

ParameterType
nodeTypeDataStreamTreeNodeType
content?string

Returns

DataStreamTreeNode

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

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

Parameters

ParameterType
blocksnumber[]

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

ParameterType
indexnumber

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;
}
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

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

ParameterType
textstring
insertIndexnumber

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

ParameterType
nodeDataStreamTreeNode

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

ParameterType
startIndexnumber
endIndexnumber

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

ParameterType
lennumber

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

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

ParameterType
startIndexnumber
endIndexnumber

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

ParameterType
indexnumber

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

ParameterType
nodeTypeDataStreamTreeNodeType
content?string

Returns

DataStreamTreeNode