Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit c861bd1

Browse files
committed
Merge: single constraint input and fix issues
1 parent 8acf1ec commit c861bd1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/features/constraintMenu/constraintRegistry.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export interface Constraint {
99
export class ConstraintRegistry {
1010
private constraints: Constraint[] = [];
1111
private updateCallbacks: (() => void)[] = [];
12+
private selectedConstraints: string[] = [];
1213

1314
public setConstraints(constraints: string[]): void {
1415
this.constraints = this.splitIntoConstraintTexts(constraints).map((c) => this.mapToConstraint(c));
@@ -22,6 +23,14 @@ export class ConstraintRegistry {
2223
this.constraintListChanged();
2324
}
2425

26+
public setSelectedConstraints(constraints: string[]): void {
27+
this.selectedConstraints = constraints;
28+
}
29+
30+
public getSelectedConstraints(): string[] {
31+
return this.selectedConstraints;
32+
}
33+
2534
public clearConstraints(): void {
2635
this.constraints = [];
2736
this.constraintListChanged();

0 commit comments

Comments
 (0)