API > @blocksuite/blocks > focusBlockByModel
Function: focusBlockByModel ​
focusBlockByModel(
model
,position
='end'
,zoom
=1
):void
Parameters ​
Parameter | Type | Default value |
---|---|---|
model | BaseBlockModel < object > | undefined |
position | SelectionPosition | 'end' |
zoom | number | 1 |
Returns ​
void
Deprecated ​
Use selectionManager.set
instead.
Defined In ​
packages/blocks/src/_common/utils/selection.ts:212