dummy id for a wire

This commit is contained in:
Val Erastov 2022-06-05 13:56:02 -07:00
parent 4019d7929c
commit a9f2b893a3

View file

@ -295,6 +295,12 @@ export class Contour {
this.segments = [];
}
get id() {
return this.segments.reduce((prev, curr) => {
return prev.id.localeCompare(curr.id) < 0 ? prev : curr;
}).id;
}
add(obj) {
this.segments.push(obj);
}