@univerjsdocs-uiindexclassesNodepositionconverttocursor

@univerjs/docs-ui v0.5.4


Class: NodePositionConvertToCursor

Defined in: submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:201

Constructors

new NodePositionConvertToCursor()

new NodePositionConvertToCursor(_documentOffsetConfig, _docSkeleton): NodePositionConvertToCursor

Defined in: submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:222

Parameters

ParameterType
_documentOffsetConfigIDocumentOffsetConfig
_docSkeletonDocumentSkeleton

Returns

NodePositionConvertToCursor

Methods

getRangePointData()

getRangePointData(startOrigin, endOrigin): {
  borderBoxPointGroup: IPoint[][];
  contentBoxPointGroup: IPoint[][];
  cursorList: ITextRange[];
}

Defined in: submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:230

Parameters

ParameterType
startOriginNullable<INodePosition>
endOriginNullable<INodePosition>

Returns

{
  borderBoxPointGroup: IPoint[][];
  contentBoxPointGroup: IPoint[][];
  cursorList: ITextRange[];
}
NameTypeDefined in
borderBoxPointGroupIPoint[][]submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:237
contentBoxPointGroupIPoint[][]submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:238
cursorListITextRange[]submodules/univer/packages/docs-ui/src/services/selection/convert-text-range.ts:239