@univerjs/engine-render v0.5.0-beta.1 • Docs
Function: getRotateOffsetAndFarthestHypotenuse()
function getRotateOffsetAndFarthestHypotenuse(
lines,
rectWidth,
vertexAngle): {
fixOffsetX: number;
fixOffsetY: number;
rotatedHeight: number;
rotatedWidth: number;
rotateTranslateXList: number[];
rotateTranslateY: number;
}
Parameters
Parameter | Type |
---|---|
lines | IDocumentSkeletonLine [] |
rectWidth | number |
vertexAngle | number |
Returns
{
fixOffsetX: number;
fixOffsetY: number;
rotatedHeight: number;
rotatedWidth: number;
rotateTranslateXList: number[];
rotateTranslateY: number;
}
Name | Type | Defined in |
---|---|---|
fixOffsetX | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:395 |
fixOffsetY | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:396 |
rotatedHeight | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:393 |
rotatedWidth | number | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:394 |
rotateTranslateXList | number [] | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:392 |
rotateTranslateY | number | packages/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