mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-15 11:07:57 +01:00
revert commit b4b1c6d
Backed out changeset: f1dbc1a70afc (probable future relevance to image dragging support) --HG-- branch : clean-up
This commit is contained in:
parent
47e7fd4fd3
commit
b0302dfda4
@ -545,6 +545,25 @@ mindplot.Designer = new Class(/** @lends Designer */{
|
|||||||
return childModel;
|
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
|
* creates a sibling or child node of the selected node, if the selected node is the
|
||||||
* central topic
|
* central topic
|
||||||
|
Loading…
Reference in New Issue
Block a user