References
Class Summary
Static Public Class Summary | ||
public |
Executes command trees using registered middleware. |
|
public |
|
|
public |
Manages play/stop/update for a Dryad tree. |
|
public |
Manages the tree structure, contexts for nodes, utilities to walk the tree, collect commands and call command middleware. |
Function Summary
Static Public Function Summary | ||
public |
dryadic(dryad: Dryad, layers: Array, rootContext: Object): DryadPlayer Short cut to create a DryadPlayer from a root Dryad optionally adding some layers. |
|
public |
hyperscript(root: Dryad | Array, lookupClassByNameFn: Function): Dryad Convert a JSON object tree into a tree of instantiated Dryads |
|
public |
run(command: *, context: *): * Calls a function, supplying the Dryad's context. May return a Promise for success/failure Usage: add() { return { run: (context) => { return new Promise((resolve, reject) => { // do something async like start a process, // fetch an image etc. // Dryad's properties: this.properties // Dryad's runtime context: context // on success call: resolve(); }); } }; } |