@univerjsdocs-uiindexfunctionsGetcanvasoffsetbyengine

@univerjs/docs-ui v0.5.0-beta.1Docs


Function: getCanvasOffsetByEngine()

function getCanvasOffsetByEngine(engine): {
  left: 0;
  top: 0;
}

Parameters

ParameterType
engineNullable<Engine>

Returns

{
  left: 0;
  top: 0;
}
NameTypeDefault valueDefined in
leftnumber0submodules/univer/packages/docs-ui/src/services/selection/selection-utils.ts:268
topnumber0submodules/univer/packages/docs-ui/src/services/selection/selection-utils.ts:269

Defined in

submodules/univer/packages/docs-ui/src/services/selection/selection-utils.ts:263