mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 02:36:04 +10:00
27 lines
665 B
JavaScript
27 lines
665 B
JavaScript
import { createNodeModule } from "../nodeTypes.js";
|
|
|
|
/**
|
|
* Lifecycle event triggered once per visible frame.
|
|
* @type {import('../nodeTypes.js').NodeModule}
|
|
*/
|
|
export const eventDrawNode = createNodeModule(
|
|
{
|
|
id: "event_draw",
|
|
title: "Event Draw",
|
|
category: "Events",
|
|
description: "Called once per visible frame.",
|
|
searchTags: ["draw", "render", "frame", "loop"],
|
|
unique: true,
|
|
inputs: [],
|
|
outputs: [
|
|
{ id: "exec_out", name: "Exec", direction: "output", kind: "exec" },
|
|
],
|
|
properties: [],
|
|
},
|
|
{
|
|
isEntryPoint: true,
|
|
eventName: "_draw",
|
|
emitExec: ({ emitNextExec }) => emitNextExec("exec_out"),
|
|
}
|
|
);
|