migrate repl + move imports out of minirepl
This commit is contained in:
parent
0bcc01ed0e
commit
ed35f967b0
11 changed files with 114 additions and 183 deletions
|
|
@ -47,7 +47,7 @@ Pattern.prototype.draw = function (callback, cycleSpan, lookaheadCycles = 1) {
|
|||
return this;
|
||||
};
|
||||
|
||||
export const cleanup = () => {
|
||||
export const cleanupDraw = () => {
|
||||
const ctx = getDrawContext();
|
||||
ctx.clearRect(0, 0, window.innerWidth, window.innerHeight);
|
||||
if (window.strudelAnimation) {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export const backgroundImage = function (src, animateOptions = {}) {
|
|||
);
|
||||
};
|
||||
|
||||
export const cleanup = () => {
|
||||
export const cleanupUi = () => {
|
||||
const container = document.getElementById('code');
|
||||
if (container) {
|
||||
container.style = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue