Files
AFFiNE-Mirror/blocksuite/docs/api/@blocksuite/block-std/gfx/classes/GfxSelectionManager.md
2025-03-17 12:51:08 +00:00

722 B

@blocksuite/block-std


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

Class: GfxSelectionManager

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

Extends

  • GfxExtension

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