basic scope feature
This commit is contained in:
parent
f20c5a1bcb
commit
7370f41fa0
5 changed files with 91 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ export const getDrawContext = (id = 'test-canvas') => {
|
|||
return canvas.getContext('2d');
|
||||
};
|
||||
|
||||
Pattern.prototype.draw = function (callback, { from, to, onQuery }) {
|
||||
Pattern.prototype.draw = function (callback, { from, to, onQuery } = {}) {
|
||||
if (window.strudelAnimation) {
|
||||
cancelAnimationFrame(window.strudelAnimation);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue