API Reference
@univerjs
@univerjs/docs-ui
classes
Nodepositionconverttocursor

@univerjs/docs-ui v0.4.2Docs


Class: NodePositionConvertToCursor

Constructors

new NodePositionConvertToCursor()

new NodePositionConvertToCursor(_documentOffsetConfig, _docSkeleton): NodePositionConvertToCursor

Parameters

ParameterType
_documentOffsetConfigIDocumentOffsetConfig
_docSkeletonDocumentSkeleton

Returns

NodePositionConvertToCursor

Defined in

packages/docs-ui/src/services/selection/convert-text-range.ts:222 (opens in a new tab)

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[][]packages/docs-ui/src/services/selection/convert-text-range.ts:237 (opens in a new tab)
contentBoxPointGroupIPoint[][]packages/docs-ui/src/services/selection/convert-text-range.ts:238 (opens in a new tab)
cursorListITextRange[]packages/docs-ui/src/services/selection/convert-text-range.ts:239 (opens in a new tab)

Defined in

packages/docs-ui/src/services/selection/convert-text-range.ts:230 (opens in a new tab)


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