Grid Id tracking

This commit is contained in:
Ian Gulliver
2019-07-13 21:44:51 +00:00
parent a3cc7ad048
commit 405b170c6a
4 changed files with 36 additions and 15 deletions

View File

@@ -15,13 +15,15 @@ class Architype {
document.addEventListener('keydown', (e) => { this.onKeyDown(e); });
let gridElementsById = new Map();
this.editorElem_ = document.createElement('ul');
this.container_.appendChild(this.editorElem_);
this.editor_ = new Editor(this.editorElem_);
this.editor_ = new Editor(this.editorElem_, gridElementsById);
this.gridElem_ = document.createElement('div');
this.container_.appendChild(this.gridElem_);
this.grid_ = new Grid(this.gridElem_);
this.grid_ = new Grid(this.gridElem_, gridElementsById);
this.generation_ = 0;
this.renderGeneration_ = -1;
@@ -291,4 +293,6 @@ class Architype {
<!--# include file="Grid.js" -->
<!--# include file="IdSource.js" -->
<!--# include file="utils.js" -->
new Architype(document.getElementById('architype'));