@univerjsengine-renderfunctionsGettranslateinspreadcontextwithpixelratio

@univerjs/engine-render v0.5.0-beta.1Docs


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

NameTypeDefault valueDefined in
leftnumberoffsetpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/draw.ts:408
topnumberoffsetpackages/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