Interface LoadEvent

Occurs when a linked node or graph are loaded. The fetch function in the global scope is used to fetch URLs. This behavior can be overridden by adding an event listener to the load even and calling 'setValue' with the Node or Graph requested.

scheduler.addEventListener("load", async load(context: any, e: any) {
const item = await cstore.get(e.url);
e.setValue(item);
});

Hierarchy

Properties

duration?: number

How long the event took when applicable

id: string

The unique UUID of the event

setValue: Function

Calling the setValue function will set the linked graph or node and stop the default global fetch function from being called

time: number

The time the event occurred on

url: string

The url of the artifact

Generated using TypeDoc