|
|
@@ -78,7 +78,7 @@ class NodeLoader extends Loader {
|
|
|
/**
|
|
|
* Parse the node dependencies for the loaded node.
|
|
|
*
|
|
|
- * @param {Object} json - The JSON definition
|
|
|
+ * @param {Array<Object>} [json] - The JSON definition
|
|
|
* @return {Object<string,Node>} A dictionary with node dependencies.
|
|
|
*/
|
|
|
parseNodes( json ) {
|
|
|
@@ -119,6 +119,10 @@ class NodeLoader extends Loader {
|
|
|
* Parses the node from the given JSON.
|
|
|
*
|
|
|
* @param {Object} json - The JSON definition
|
|
|
+ * @param {string} json.type - The node type.
|
|
|
+ * @param {string} json.uuid - The node UUID.
|
|
|
+ * @param {Array<Object>} [json.nodes] - The node dependencies.
|
|
|
+ * @param {Object} [json.meta] - The meta data.
|
|
|
* @return {Node} The parsed node.
|
|
|
*/
|
|
|
parse( json ) {
|