Runtime API / Type alias

NodeScriptEvent

Node Script 收到的统一事件投影,使用 canonical Runtime entity id 表达目标和传播路径。

使用说明

target 在一次派发中保持稳定;同一个 pointer transaction 的逻辑目标 identity 也不会因 Variant rematerialization 改变。currentTarget 和 phase 随 capture / target / bubble 更新;composedPath() 返回从实际目标到当前 Instance 根的 ID 数组。coordinates 同时提供 screen、view、world 与可用时的 local 坐标。

事件族的附加字段由 NodeScriptEventMap 决定:pointer 有 pointer,wheel 有 delta,keyboard 有 key/code,gesture 有 delta/scale/rotation,HTML Surface 输入包含 data、value 或 clipboardData。