123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- "use strict";
- define(["module", "vwf/view"], function (module, view) {
- return view.load(module, {
-
- initialize: function (options) {
- var self = this;
- this.nodes = {};
- this.state.appInitialized = false;
-
- if (typeof options == "object") {
-
- this.rootSelector = options["application-root"];
- }
- else {
- this.rootSelector = options;
- }
-
- },
-
-
- createdNode: function (nodeID, childID, childExtendsID, childImplementsIDs,
- childSource, childType, childIndex, childName, callback /* ( ready ) */) {
- var node = this.state.nodes[childID];
-
-
- if (!node) {
- return;
- }
- if(this.state.nodes[childID]) {
- this.nodes[childID] = {id:childID,extends:childExtendsID};
- }
- else if (this.state.nodes[childID] && this.state.nodes[childID].aframeObj) {
- this.nodes[childID] = {id:childID,extends:childExtendsID};
- }
-
- },
- initializedNode: function( nodeID, childID ) {
-
- var node = this.state.nodes[childID];
- if (!node) {
- return;
- }
- },
- createdProperty: function (nodeId, propertyName, propertyValue) {
- return this.satProperty(nodeId, propertyName, propertyValue);
- },
- initializedProperty: function (nodeId, propertyName, propertyValue) {
- return this.satProperty(nodeId, propertyName, propertyValue);
- },
- satProperty: function (nodeId, propertyName, propertyValue) {
-
- var node = this.state.nodes[ nodeId ];
-
- if ( !( node && node.aframeObj ) ) {
- return;
- }
- switch (propertyName) {
- case "color":
- if (propertyValue) {
-
-
- }
- break;
- }
- },
-
-
- ticked: function (vwfTime) {
-
- }
- });
-
- });
|