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


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-submodules/univer/packages/docs-ui/src/services/selection/text-range.ts:69
leftnumberstartXsubmodules/univer/packages/docs-ui/src/services/selection/text-range.ts:66
topnumberstartYsubmodules/univer/packages/docs-ui/src/services/selection/text-range.ts:67
widthnumber-submodules/univer/packages/docs-ui/src/services/selection/text-range.ts:68

Defined in

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