Interface SelectionHandle

Handle returned by createSelectionHandler for cleanup.

interface SelectionHandle {
    selectedIds: ReadonlySet<string | number>;
    selectedTargets: readonly SourceQualifiedFeatureSelectionTarget[];
    clearSelection(): void;
    deselect(id: string | number): void;
    remove(): void;
    select(id: string | number): void;
}

Properties

selectedIds: ReadonlySet<string | number>

The set of currently selected feature IDs.

selectedTargets: readonly SourceQualifiedFeatureSelectionTarget[]

The current source-qualified selection targets.

Methods