API Reference
@univerjs
@univerjs/docs-ui
functions
Getcanvasoffsetbyengine

@univerjs/docs-ui v0.4.2Docs


Function: getCanvasOffsetByEngine()

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

Parameters

ParameterType
engineNullable<Engine>

Returns

{
  left: 0;
  top: 0;
}
NameTypeDefault valueDefined in
leftnumber0packages/docs-ui/src/services/selection/selection-utils.ts:267 (opens in a new tab)
topnumber0packages/docs-ui/src/services/selection/selection-utils.ts:268 (opens in a new tab)

Defined in

packages/docs-ui/src/services/selection/selection-utils.ts:262 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.