API Reference
@univerjs
@univerjs/engine-render
functions
Getrotateoffsetandfarthesthypotenuse

@univerjs/engine-render v0.4.2Docs


Function: getRotateOffsetAndFarthestHypotenuse()

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

Parameters

ParameterType
linesIDocumentSkeletonLine[]
rectWidthnumber
vertexAnglenumber

Returns

{
  fixOffsetX: number;
  fixOffsetY: number;
  rotateTranslateXList: number[];
  rotateTranslateY: number;
  rotatedHeight: number;
  rotatedWidth: number;
}
NameTypeDefined in
fixOffsetXnumbersubmodules/univer/packages/engine-render/src/basics/draw.ts:395 (opens in a new tab)
fixOffsetYnumbersubmodules/univer/packages/engine-render/src/basics/draw.ts:396 (opens in a new tab)
rotateTranslateXListnumber[]submodules/univer/packages/engine-render/src/basics/draw.ts:392 (opens in a new tab)
rotateTranslateYnumbersubmodules/univer/packages/engine-render/src/basics/draw.ts:397 (opens in a new tab)
rotatedHeightnumbersubmodules/univer/packages/engine-render/src/basics/draw.ts:393 (opens in a new tab)
rotatedWidthnumbersubmodules/univer/packages/engine-render/src/basics/draw.ts:394 (opens in a new tab)

Defined in

submodules/univer/packages/engine-render/src/basics/draw.ts:268 (opens in a new tab)


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