@univerjsdocs-uiindexclassesNodepositionconverttocursor

@univerjs/docs-ui v0.5.0-beta.1Docs


Class: NodePositionConvertToCursor

Constructors

new NodePositionConvertToCursor()

new NodePositionConvertToCursor(_documentOffsetConfig, _docSkeleton): NodePositionConvertToCursor

Parameters

ParameterType
_documentOffsetConfigIDocumentOffsetConfig
_docSkeletonDocumentSkeleton

Returns

NodePositionConvertToCursor

Defined in

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

Methods

getRangePointData()

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

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

Defined in

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