@univerjs/engine-render v0.5.4
Function: getTranslateInSpreadContextWithPixelRatio()
function getTranslateInSpreadContextWithPixelRatio(): {
left: number;
top: number;
}
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:405
Align the resolution, an alignment needs to be done in special cases where the resolution is 1.5, 1.25, etc.
Returns
{
left: number;
top: number;
}
offset