added query string parser and functional tools

This commit is contained in:
Gavin McDonald
2018-07-06 16:32:17 -04:00
parent 6e9d4a399c
commit 68f83bfc4b
3 changed files with 305 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
import Tessellate from './tessellate.js';
import {utils} from './tessellate.js';
@@ -11,14 +10,16 @@ class Demo {
this.map = [];
let tessellate = new Tessellate({
const queryStringObj = utils.getQueryStringObj();
let tessellate = new Tessellate(Object.assign({
element: '#container',
board: Tessellate.BOARD_STYLES.HEX,
tile: Tessellate.TILE_STYLES.HEX,
tap: this.onTap,
draw: this.draw,
pointyTop: false, //utils.random(1) ? true : false,
});
}, queryStringObj));
this.circle = new DrawCircle();
this.square = new DrawSquare();