mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
dummy id for a wire
This commit is contained in:
parent
4019d7929c
commit
a9f2b893a3
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue