Skip to content

API > @blocksuite/blocks > focusBlockByModel

Function: focusBlockByModel ​

focusBlockByModel( model, position = 'end', zoom = 1): void

Parameters ​

ParameterTypeDefault value
modelBaseBlockModel< object >undefined
positionSelectionPosition'end'
zoomnumber1

Returns ​

void

Deprecated ​

Use selectionManager.set instead.

Defined In ​

packages/blocks/src/_common/utils/selection.ts:212