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

@univerjs/docs-ui v0.4.2Docs


Class: NodePositionConvertToRectRange

Constructors

new NodePositionConvertToRectRange()

new NodePositionConvertToRectRange(_documentOffsetConfig, _docSkeleton): NodePositionConvertToRectRange

Parameters

ParameterType
_documentOffsetConfigIDocumentOffsetConfig
_docSkeletonDocumentSkeleton

Returns

NodePositionConvertToRectRange

Defined in

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

Methods

getNodePositionGroup()

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

Parameters

ParameterType
anchorNodePositionINodePosition
focusNodePositionINodePosition

Returns

Nullable<IRectRangeNodePositions[]>

Defined in

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


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

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


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