Revert "refactor: remove old draw logic"
This reverts commit 95719654f3.
This commit is contained in:
parent
12228c56d9
commit
6e02bf59e9
7 changed files with 208 additions and 6 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { Cyclist } from './cyclist.mjs';
|
||||
import { evaluate as _evaluate } from './evaluate.mjs';
|
||||
import { logger } from './logger.mjs';
|
||||
import { setTime } from './time.mjs';
|
||||
import { evalScope } from './evaluate.mjs';
|
||||
|
||||
export function repl({
|
||||
|
|
@ -26,6 +27,7 @@ export function repl({
|
|||
pattern = editPattern?.(pattern) || pattern;
|
||||
scheduler.setPattern(pattern, autostart);
|
||||
};
|
||||
setTime(() => scheduler.now()); // TODO: refactor?
|
||||
const evaluate = async (code, autostart = true) => {
|
||||
if (!code) {
|
||||
throw new Error('no code to evaluate');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue