mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Better epoch selection
This commit is contained in:
parent
a5eaba9ab3
commit
43e2f2f091
10 changed files with 341 additions and 166 deletions
16
crates/compiler/checkmate/www/src/utils/events.ts
Normal file
16
crates/compiler/checkmate/www/src/utils/events.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { EventEpoch } from "../engine/engine";
|
||||
import { Variable } from "../schema";
|
||||
|
||||
export interface VariableMessage {
|
||||
focus: (variable: Variable) => void;
|
||||
}
|
||||
|
||||
export interface GraphMessage {
|
||||
focusEpoch: (epoch: EventEpoch) => void;
|
||||
focusVariable: (variable: Variable) => void;
|
||||
keydown: (key: string) => void;
|
||||
}
|
||||
|
||||
export interface EventListMessage {
|
||||
focusEpoch: (epoch: EventEpoch) => void;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue