Update model and add invalidated cycle

This commit is contained in:
Misode
2020-05-25 14:45:10 +02:00
parent 79a5742dad
commit 56f3766a13
9 changed files with 73 additions and 20 deletions

View File

@@ -21,8 +21,8 @@ const predicateTree = new RootNode('predicate', {
});
const model = new DataModel(predicateTree)
const treeView = new TreeView(model)
const sourceView = new SourceView(model)
treeView.render(document!.getElementById('view')!)
sourceView.render(document!.getElementById('source')!)
new TreeView(model, document!.getElementById('view')!)
new SourceView(model, document!.getElementById('source')!)
model.invalidate()