adding FreeMind LayoutManager

This commit is contained in:
Pablo Luna
2011-03-24 18:00:51 +00:00
parent 43ff313635
commit 4dee4a0f18
20 changed files with 630 additions and 81 deletions

View File

@@ -36,14 +36,14 @@ mindplot.commands.DragTopicCommand = mindplot.Command.extend(
var origParentTopic = topic.getOutgoingConnectedTopic();
var origOrder = null;
var origPosition = null;
if (topic.getType() == mindplot.NodeModel.MAIN_TOPIC_TYPE && origParentTopic != null && origParentTopic.getType() == mindplot.NodeModel.MAIN_TOPIC_TYPE)
{
// if (topic.getType() == mindplot.NodeModel.MAIN_TOPIC_TYPE && origParentTopic != null && origParentTopic.getType() == mindplot.NodeModel.MAIN_TOPIC_TYPE)
// {
// In this case, topics are positioned using order ...
origOrder = topic.getOrder();
} else
{
// } else
// {
origPosition = topic.getPosition().clone();
}
// }
// Disconnect topic ..
if (origParentTopic)