UNPKG

@gravity-ui/graph

Version:

Modern graph editor component

14 lines (13 loc) 988 B
import { BaseSelectionBucket } from "./BaseSelectionBucket"; import { ESelectionStrategy, TSelectionEntity, TSelectionEntityId } from "./types"; /** * A selection bucket implementation that allows multiple entities of a specific type to be selected simultaneously. * @template IDType The type of the unique identifier for the entities managed by this bucket (e.g., `string`, `number`) * @template TEntity The type of the entity that IDs resolve to. Must extend TSelectionEntity (GraphComponent or IEntityWithComponent). * @see {@link BaseSelectionBucket} * @see {@link ISelectionBucket} * @see {@link ../../../docs/system/selection-manager.md} for more details on selection architecture. */ export declare class MultipleSelectionBucket<IDType extends TSelectionEntityId, TEntity extends TSelectionEntity = TSelectionEntity> extends BaseSelectionBucket<IDType, TEntity> { updateSelection(ids: IDType[], select: boolean, strategy?: ESelectionStrategy, silent?: boolean): void; }