From b0302dfda48ec046611bc953fdabf90ed628c80d Mon Sep 17 00:00:00 2001 From: Christina Korger Date: Sat, 4 Apr 2015 20:45:36 +0200 Subject: [PATCH] revert commit b4b1c6d Backed out changeset: f1dbc1a70afc (probable future relevance to image dragging support) --HG-- branch : clean-up --- mindplot/src/main/javascript/Designer.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/mindplot/src/main/javascript/Designer.js b/mindplot/src/main/javascript/Designer.js index 7b2c117b..dc2d5ca4 100644 --- a/mindplot/src/main/javascript/Designer.js +++ b/mindplot/src/main/javascript/Designer.js @@ -545,6 +545,25 @@ mindplot.Designer = new Class(/** @lends Designer */{ return childModel; }, + /** + * @param {Events} event + * @param {mindplot.model.NodeModel} model + * @todo not used + */ + addDraggedNode:function (event, model) { + $assert(event, "event can not be null"); + $assert(model, "model can not be null"); + + // Position far from the visual area ... + model.setPosition(1000, 1000); + + this._actionDispatcher.addTopics([model]); + var topic = this.getModel().findTopicById(model.getId()); + + // Simulate a mouse down event to start the dragging ... + topic.fireEvent("mousedown", event); + }, + /** * creates a sibling or child node of the selected node, if the selected node is the * central topic