API Reference
@univerjs
@univerjs/docs-ui
functions
Getanchorbounding

@univerjs/docs-ui v0.4.2Docs


Function: getAnchorBounding()

function getAnchorBounding(pointsGroup): {
  height: number;
  left: startX;
  top: startY;
  width: number;
}

Parameters

ParameterType
pointsGroupIPoint[][]

Returns

{
  height: number;
  left: startX;
  top: startY;
  width: number;
}
NameTypeDefault valueDefined in
heightnumber-packages/docs-ui/src/services/selection/text-range.ts:69 (opens in a new tab)
leftnumberstartXpackages/docs-ui/src/services/selection/text-range.ts:66 (opens in a new tab)
topnumberstartYpackages/docs-ui/src/services/selection/text-range.ts:67 (opens in a new tab)
widthnumber-packages/docs-ui/src/services/selection/text-range.ts:68 (opens in a new tab)

Defined in

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


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