@univerjsdocs-uiindexclassesNodepositionconverttorectrange

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


Class: NodePositionConvertToRectRange

Constructors

new NodePositionConvertToRectRange()

new NodePositionConvertToRectRange(_documentOffsetConfig, _docSkeleton): NodePositionConvertToRectRange

Parameters

ParameterType
_documentOffsetConfigIDocumentOffsetConfig
_docSkeletonDocumentSkeleton

Returns

NodePositionConvertToRectRange

Defined in

submodules/univer/packages/docs-ui/src/services/selection/convert-rect-range.ts:129

Methods

getNodePositionGroup()

getNodePositionGroup(anchorNodePosition, focusNodePosition): Nullable<IRectRangeNodePositions[]>

Parameters

ParameterType
anchorNodePositionINodePosition
focusNodePositionINodePosition

Returns

Nullable<IRectRangeNodePositions[]>

Defined in

submodules/univer/packages/docs-ui/src/services/selection/convert-rect-range.ts:234


getRangePointData()

getRangePointData(startNodePosition, endNodePosition): undefined | {
  endColumn: number;
  endRow: number;
  pointGroup: IPoint[][];
  startColumn: number;
  startRow: number;
  tableId: string;
}

Parameters

ParameterType
startNodePositionINodePosition
endNodePositionINodePosition

Returns

undefined | { endColumn: number; endRow: number; pointGroup: IPoint[][]; startColumn: number; startRow: number; tableId: string; }

Defined in

submodules/univer/packages/docs-ui/src/services/selection/convert-rect-range.ts:137