Add IMindmap and INode.

This commit is contained in:
Paulo Veiga
2011-09-08 10:03:42 -03:00
parent 21f848e3df
commit 0c216778e5
21 changed files with 248 additions and 149 deletions

View File

@@ -29,6 +29,7 @@ mindplot.commands.DragTopicCommand = new Class({
this._order = order;
this._id = mindplot.Command._nextUUID();
},
execute: function(commandContext) {
var topic = commandContext.findTopics([this._objectsIds])[0];
@@ -37,14 +38,10 @@ mindplot.commands.DragTopicCommand = new Class({
var origParentTopic = topic.getOutgoingConnectedTopic();
var origOrder = null;
var origPosition = null;
// if (topic.getType() == mindplot.model.NodeModel.MAIN_TOPIC_TYPE && origParentTopic != null && origParentTopic.getType() == mindplot.model.NodeModel.MAIN_TOPIC_TYPE)
// {
// In this case, topics are positioned using order ...
origOrder = topic.getOrder();
// } else
// {
origPosition = topic.getPosition().clone();
// }
origPosition = topic.getPosition();
// Disconnect topic ..
if ($defined(origParentTopic)) {