Interface FgEnv
interface FgEnv {
accessors: Record<string, FgAccessor>;
animations: readonly AnimationGroup[];
caps: FgCapabilities;
defs: Record<string, FgBlockDef>;
events: FgEventBus;
graph: FgGraph;
resolveAccessor?: (pointer: string) => FgAccessor | null;
}
accessors: Record<string, FgAccessor>;
animations: readonly AnimationGroup[];
caps: FgCapabilities;
defs: Record<string, FgBlockDef>;
events: FgEventBus;
graph: FgGraph;
resolveAccessor?: (pointer: string) => FgAccessor | null;
}
Properties
Readonlyaccessors
Scene-object accessors resolved from JSON pointers, keyed by pointer id.
Readonlyanimations
Animation handles by glTF animation index.
Readonlycaps
Scene-owned capabilities blocks may invoke without a scene reference.
Readonlydefs
Block defs resolved up-front (awaited dynamic imports), type → def.
Readonlyevents
Event bus the scene driver feeds (shared across graphs in a scene).
Readonlygraph
Optional Readonlyresolve Accessor
Resolve a JSON pointer whose effective path depends on live graph data.
Per-graph RESOLVED capabilities, wired by the loader. Read-mostly.