adding multiple line support editor and in nodes

This commit is contained in:
Pablo Luna
2011-04-19 17:01:12 +01:00
parent c804b3715e
commit 5aa6775a85
19 changed files with 398 additions and 32 deletions

View File

@@ -29,7 +29,7 @@ mindplot.ConnectionLine = function(sourceNode, targetNode, lineType)
var line;
if (targetNode.getType() == mindplot.NodeModel.CENTRAL_TOPIC_TYPE)
{
line = this._createLine(lineType,mindplot.ConnectionLine.CURVED);
line = this._createLine(lineType,mindplot.ConnectionLine.SIMPLE_CURVED);
// line = new web2d.Line();
if(line.getType()=="CurvedLine"){
var ctrlPoints = this._getCtrlPoints(sourceNode, targetNode);
@@ -86,7 +86,7 @@ mindplot.ConnectionLine.prototype._createLine = function(lineType, defaultStyle)
mindplot.ConnectionLine.getStrokeColor = function()
{
return '#c8e794';
return '#495879';
};
mindplot.ConnectionLine.prototype.setVisibility = function(value)