Files
wisemapping-open-source/mindplot/src/main/javascript/layoutManagers/boards/freeMindBoards/CentralTopicBoard.js
2011-03-24 18:02:42 +00:00

23 lines
712 B
JavaScript

mindplot.layoutManagers.boards.freeMindBoards.CentralTopicBoard = mindplot.layoutManagers.boards.freeMindBoards.Board.extend({
options:{
},
initialize:function(node, layoutManager, options){
this.parent(node, layoutManager, options);
},
_createTables:function(){
return [[],[]];
},
_getTableForNode:function(node){
var i = 0;
var position = node.getPosition();
if(!position){
if(Math.sign(node.getParent().getPosition().x) == -1){
i=1;
}
}
else if(mindplot.util.Shape.isAtRight(position, node.getParent().getPosition()))
i=1;
return this._positionTables[i];
}
});