 E('btn-mem-clear').addEventListener 'click', doClearMemory
 E('btn-exp-visible').addEventListener 'click', doExportVisible
 E('btn-nav-home').addEventListener 'click', doNavigateHome
+window.addEventListener 'resize', updateCanvasSize
+
 
 shortcuts =
   'N': doStep

E = (id) -> document.getElementById id






class FieldObserver

    
doSearch = ->
  navigator.search cells, tessellation.group.n, tessellation.group.m, appendRewrite
  updateCanvasSize()

memo = null
doMemorize = ->
