Make nodes selectable from the grid
This commit is contained in:
15
IdSource.js
Normal file
15
IdSource.js
Normal file
@@ -0,0 +1,15 @@
|
||||
class IdSource {
|
||||
constructor() {
|
||||
this.nextId_ = 1;
|
||||
}
|
||||
|
||||
getId() {
|
||||
return ++this.nextId_;
|
||||
}
|
||||
|
||||
setId(nextId) {
|
||||
this.nextId_ = nextId;
|
||||
}
|
||||
}
|
||||
|
||||
const idSource = new IdSource();
|
||||
Reference in New Issue
Block a user