@univerjs/engine-render v0.5.4
Function: getRotateOffsetAndFarthestHypotenuse()
function getRotateOffsetAndFarthestHypotenuse(
lines,
rectWidth,
vertexAngle): {
fixOffsetX: number;
fixOffsetY: number;
rotatedHeight: number;
rotatedWidth: number;
rotateTranslateXList: number[];
rotateTranslateY: number;
}
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:268
Parameters
Parameter | Type |
---|---|
lines | IDocumentSkeletonLine [] |
rectWidth | number |
vertexAngle | number |
Returns
{
fixOffsetX: number;
fixOffsetY: number;
rotatedHeight: number;
rotatedWidth: number;
rotateTranslateXList: number[];
rotateTranslateY: number;
}