API Reference
@univerjs
@univerjs/engine-render
classes
Datastreamtreenode

@univerjs/engine-render v0.4.2Docs


Class: DataStreamTreeNode

Constructors

new DataStreamTreeNode()

new DataStreamTreeNode(nodeType, content?): DataStreamTreeNode

Parameters

ParameterType
nodeTypeDataStreamTreeNodeType
content?string

Returns

DataStreamTreeNode

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:35 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueDefined in
blockspublicnumber[][]submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:33 (opens in a new tab)
childrenpublicDataStreamTreeNode[][]submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:27 (opens in a new tab)
content?publicstringundefinedsubmodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:37 (opens in a new tab)
endIndexpublicnumber-1submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:30 (opens in a new tab)
nodeTypepublicDataStreamTreeNodeTypeundefinedsubmodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:36 (opens in a new tab)
parentpublicNullable<DataStreamTreeNode>undefinedsubmodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:28 (opens in a new tab)
startIndexpublicnumber-1submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:29 (opens in a new tab)

Methods

addBlocks()

addBlocks(blocks): void

Parameters

ParameterType
blocksnumber[]

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:67 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:46 (opens in a new tab)


exclude()

exclude(index): boolean

Parameters

ParameterType
indexnumber

Returns

boolean

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:80 (opens in a new tab)


getPositionInParent()

getPositionInParent(): number

Returns

number

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:167 (opens in a new tab)


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[]submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:58 (opens in a new tab)
contentundefined | stringsubmodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:63 (opens in a new tab)
endIndexnumbersubmodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:61 (opens in a new tab)
nodeTypeDataStreamTreeNodeTypesubmodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:62 (opens in a new tab)
parentNullable<DataStreamTreeNode>submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:59 (opens in a new tab)
startIndexnumbersubmodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:60 (opens in a new tab)

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:54 (opens in a new tab)


insertText()

insertText(text, insertIndex): void

Parameters

ParameterType
textstring
insertIndexnumber

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:76 (opens in a new tab)


merge()

merge(node): void

Parameters

ParameterType
nodeDataStreamTreeNode

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:208 (opens in a new tab)


minus()

minus(startIndex, endIndex): void

Parameters

ParameterType
startIndexnumber
endIndexnumber

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:187 (opens in a new tab)


plus()

plus(len): void

Parameters

ParameterType
lennumber

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:86 (opens in a new tab)


remove()

remove(): void

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:176 (opens in a new tab)


selfPlus()

selfPlus(len, index?): void

Parameters

ParameterType
lennumber
index?number

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:93 (opens in a new tab)


setIndexRange()

setIndexRange(startIndex, endIndex): void

Parameters

ParameterType
startIndexnumber
endIndexnumber

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:71 (opens in a new tab)


split()

split(index): undefined | {
  firstNode: DataStreamTreeNode;
  lastNode: DataStreamTreeNode;
}

Parameters

ParameterType
indexnumber

Returns

undefined | { firstNode: DataStreamTreeNode; lastNode: DataStreamTreeNode; }

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:103 (opens in a new tab)


create()

static create(nodeType, content?): DataStreamTreeNode

Parameters

ParameterType
nodeTypeDataStreamTreeNodeType
content?string

Returns

DataStreamTreeNode

Defined in

submodules/univer/packages/engine-render/src/components/docs/view-model/data-stream-tree-node.ts:42 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.