export class SelectionManager {
    selected = new Set();
    select(object, additive = false) {
        if (!additive)
            this.clear();
        this.selected.add(object);
    }
    deselect(object) {
        this.selected.delete(object);
    }
    clear() {
        this.selected.clear();
    }
}
//# sourceMappingURL=SelectionManager.js.map