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