@univerjsengine-renderfunctionsGetrotateoffsetandfarthesthypotenuse

@univerjs/engine-render v0.5.0-beta.1Docs


Function: getRotateOffsetAndFarthestHypotenuse()

function getRotateOffsetAndFarthestHypotenuse(
   lines, 
   rectWidth, 
   vertexAngle): {
  fixOffsetX: number;
  fixOffsetY: number;
  rotatedHeight: number;
  rotatedWidth: number;
  rotateTranslateXList: number[];
  rotateTranslateY: number;
}

Parameters

ParameterType
linesIDocumentSkeletonLine[]
rectWidthnumber
vertexAnglenumber

Returns

{
  fixOffsetX: number;
  fixOffsetY: number;
  rotatedHeight: number;
  rotatedWidth: number;
  rotateTranslateXList: number[];
  rotateTranslateY: number;
}
NameTypeDefined in
fixOffsetXnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:395
fixOffsetYnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:396
rotatedHeightnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:393
rotatedWidthnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:394
rotateTranslateXListnumber[]packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:392
rotateTranslateYnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:397

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:268