fix: tests
This commit is contained in:
parent
8dd08c360f
commit
c9d98bf4d7
2 changed files with 99 additions and 96 deletions
|
|
@ -29,6 +29,9 @@ export const getDrawContext = (id = 'test-canvas') => {
|
|||
};
|
||||
|
||||
Pattern.prototype.draw = function (callback, { from, to, onQuery } = {}) {
|
||||
if (typeof window === 'undefined') {
|
||||
return this;
|
||||
}
|
||||
if (window.strudelAnimation) {
|
||||
cancelAnimationFrame(window.strudelAnimation);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue