Files
AFFiNE-Mirror/blocksuite/docs/api/@blocksuite/std/gfx/classes/GfxSelectionManager.md
T
2026-06-24 23:55:19 +08:00

847 B

BlockSuite API Documentation


BlockSuite API Documentation / @blocksuite/std / gfx / GfxSelectionManager

Class: GfxSelectionManager

GfxSelectionManager is just a wrapper of std selection providing convenient method and states in gfx

Methods

has()

has(element): boolean

check if the element is selected in local

Parameters

element

string

Returns

boolean


hasRemote()

hasRemote(element): boolean

check if element is selected by remote peers

Parameters

element

string

Returns

boolean


toggle()

toggle(element): void

Toggle the selection state of single element

Parameters

element

string | GfxModel

Returns

void