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