First editor integration.

This commit is contained in:
Paulo Veiga
2012-01-11 18:41:09 -03:00
parent d7817a6f2c
commit 8cf9e6d18e
5 changed files with 22 additions and 3 deletions

View File

@@ -23,6 +23,12 @@ mindplot.nlayout.EventBusDispatcher = new Class({
var size = {width:25,height:25};
this._layoutManager = new mindplot.nlayout.LayoutManager(0, size);
this._layoutManager.addEvent('change', function(event) {
var id = event.getId();
var topic = designerModel.findTopicById(id);
console.log("Modifing position to:" + id);
});
},
registerBusEvents:function () {
@@ -72,7 +78,7 @@ mindplot.nlayout.EventBusDispatcher = new Class({
},
_nodeRemoved: function(node) {
console.log("mindplot.nlayout.EventBusDispatcher._nodeRemoved: Not Implemented yet");
this._layoutManager.removeNode(node.getId());
},
_doLayout: function() {