Skip to content

API > @blocksuite/blocks > getViewportFromSession

Function: getViewportFromSession ​

getViewportFromSession(pageId): ViewportData | null

Parameters ​

ParameterType
pageIdstring

Returns ​

ViewportData | null

Defined In ​

packages/blocks/src/_common/utils/edgeless.ts:23