basic scope feature

This commit is contained in:
Felix Roos 2023-08-25 09:45:30 +02:00
parent f20c5a1bcb
commit 7370f41fa0
5 changed files with 91 additions and 2 deletions

View file

@ -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);
}