X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=static%2Ftopology3D%2Fjs%2Fmodel_graph_editor.js;h=be092a47e1beffb3bbd7a8eff137266ce54ef131;hb=refs%2Fchanges%2F71%2F6771%2F1;hp=3c275ddb5db30edd64bae36fd6968ebb4b34c293;hpb=fb37bca4b7e8178c65df2f1496afe372c1d55e78;p=osm%2FLW-UI.git diff --git a/static/topology3D/js/model_graph_editor.js b/static/topology3D/js/model_graph_editor.js index 3c275dd..be092a4 100644 --- a/static/topology3D/js/model_graph_editor.js +++ b/static/topology3D/js/model_graph_editor.js @@ -56,6 +56,7 @@ dreamer.ModelGraphEditor = (function (global) { this._edit_mode = (args.edit_mode != undefined) ? args.edit_mode : this._edit_mode; Object.keys(args.gui_properties["nodes"]).forEach(function (key, index) { + console.log(key + " ####") this.type_property[key] = args.gui_properties["nodes"][key]; if ( this.type_property[key]['property'] != undefined){ for(var c_prop in this.type_property[key]){ @@ -69,6 +70,7 @@ dreamer.ModelGraphEditor = (function (global) { } } else{ + this.type_property[key]["shape"] = this.parent.get_d3_symbol(this.type_property[key]["shape"]); if (this.type_property[key]["image"] != undefined) { this.type_property[key]["image"] = IMAGE_PATH + this.type_property[key]["image"]; @@ -331,7 +333,7 @@ dreamer.ModelGraphEditor = (function (global) { ModelGraphEditor.prototype.savePositions = function (data) { var vertices = {} this.node.each(function (d) { - vertices[d.id] = {} + vertices[d.id] = {}; vertices[d.id]['x'] = d.x; vertices[d.id]['y'] = d.y; }); @@ -339,7 +341,7 @@ dreamer.ModelGraphEditor = (function (global) { 'vertices': vertices }); - } + }; /** * Internal functions @@ -376,7 +378,7 @@ dreamer.ModelGraphEditor = (function (global) { self.removeNode(d, null, showAlert); }, edit_mode: true - }, + } ]; if(this.customBehavioursOnEvents){