mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
Changing relationship line default color
This commit is contained in:
parent
03ef9d9770
commit
c4858265b1
@ -65,7 +65,7 @@ mindplot.ConnectionLine.prototype._createLine = function(lineType, defaultStyle)
|
||||
break;
|
||||
}
|
||||
return line;
|
||||
}
|
||||
};
|
||||
|
||||
mindplot.ConnectionLine.getStrokeColor = function()
|
||||
{
|
||||
|
@ -29,18 +29,24 @@ mindplot.RelationshipLine = function(sourceNode, targetNode, lineType)
|
||||
this._isInWorkspace = false;
|
||||
this._controlPointsController = new mindplot.ControlPoint();
|
||||
|
||||
var strokeColor = mindplot.ConnectionLine.getStrokeColor.call(this);
|
||||
var strokeColor = mindplot.RelationshipLine.getStrokeColor();
|
||||
this._startArrow = new web2d.Arrow();
|
||||
this._endArrow = new web2d.Arrow();
|
||||
this._startArrow.setStrokeColor(strokeColor);
|
||||
this._startArrow.setStrokeWidth(2);
|
||||
this._endArrow.setStrokeColor(strokeColor);
|
||||
this._endArrow.setStrokeWidth(2);
|
||||
this._line2d.setStroke(1, 'solid', strokeColor);
|
||||
|
||||
};
|
||||
|
||||
objects.extend(mindplot.RelationshipLine, mindplot.ConnectionLine);
|
||||
|
||||
mindplot.RelationshipLine.getStrokeColor = function()
|
||||
{
|
||||
return '#9b74e6';
|
||||
};
|
||||
|
||||
mindplot.RelationshipLine.prototype.setStroke = function(color, style, opacity)
|
||||
{
|
||||
mindplot.RelationshipLine.superClass.setStroke.call(this, color, style, opacity);
|
||||
|
Loading…
Reference in New Issue
Block a user