Adding fade in - fade out effect when adding new nodes

This commit is contained in:
Pablo Luna
2011-02-09 15:29:09 +01:00
parent 0b742f2577
commit 9a41f3b288
8 changed files with 148 additions and 33 deletions

View File

@@ -92,10 +92,10 @@ mindplot.CommandContext = new Class({
{
this._designer._removeNode(topic);
},
createTopic:function(model)
createTopic:function(model, isVisible)
{
core.assert(model, "model can not be null");
var topic = this._designer._nodeModelToNodeGraph(model);
var topic = this._designer._nodeModelToNodeGraph(model, isVisible);
// @todo: Is this required ?
var designer = this._designer;
@@ -109,9 +109,9 @@ mindplot.CommandContext = new Class({
var model = mindmap.createNode(mindplot.NodeModel.MAIN_TOPIC_TYPE);
return model;
},
connect:function(childTopic, parentTopic)
connect:function(childTopic, parentTopic, isVisible)
{
childTopic.connectTo(parentTopic, this._designer._workspace);
childTopic.connectTo(parentTopic, this._designer._workspace, isVisible);
} ,
disconnect:function(topic)
{