added query string parser and functional tools
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user