Make nodes selectable from the grid

This commit is contained in:
Ian Gulliver
2019-07-11 05:12:08 +00:00
parent 15ad72dc0a
commit ea5e3cb7e1
15 changed files with 50 additions and 4 deletions

15
IdSource.js Normal file
View File

@@ -0,0 +1,15 @@
class IdSource {
constructor() {
this.nextId_ = 1;
}
getId() {
return ++this.nextId_;
}
setId(nextId) {
this.nextId_ = nextId;
}
}
const idSource = new IdSource();