default to no draw delay but allow as a setting

This commit is contained in:
Gavin McDonald
2018-09-14 19:53:15 -04:00
parent 4b5621b074
commit 491982cedb
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ export default class Sketch {
this.draw = settings.draw || noop;
this.resize = settings.resize || noop;
this.drawDelay = settings.drawDelay || 50;
this.drawDelay = settings.drawDelay;
this.container = settings.element || document.body;
window.addEventListener('resize', this.onResize);

View File

@@ -95,11 +95,11 @@ export class Tessellate {
this.checkSettings(settings);
this.sketch = new Sketch({
this.sketch = new Sketch(Object.assign({
element: this.settings.element,
draw: this.draw,
resize: this.resize,
});
}, funky.pick(this.settings, ['drawDelay'])));
this.onTap = new OnTap(Object.assign({
element: this.settings.element,