add code load events
This commit is contained in:
parent
3e70b4cd37
commit
59f45656ff
1 changed files with 2 additions and 0 deletions
|
|
@ -878,6 +878,7 @@
|
|||
setViewMode(VIEWS.PREVIEW);
|
||||
setOpacity(0);
|
||||
|
||||
API.event.emit("code.load", {code, type});
|
||||
KIRI.client.parse({code, type, settings}, progress => {
|
||||
API.show.progress(progress, "parsing");
|
||||
}, (layers, maxSpeed) => {
|
||||
|
|
@ -889,6 +890,7 @@
|
|||
updateSpeeds(maxSpeed);
|
||||
showSlices();
|
||||
SPACE.update();
|
||||
API.event.emit("code.loaded", {code, type});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue