You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The setColor method in draw2d.decoration.connection.ArrowDecorator doesn't work at all. The stroke color is taken from the line color of the connection.
The issue is in draw2.Connection.repaint method
if(this.sourceDecoratorNode!==null){
var start = this.getVertices().first();
this.sourceDecoratorNode.transform("r"+this.getStartAngle()+"," + start.x + "," + start.y +" t" + start.x + "," + start.y);
// propagate the color and the opacity to the decoration as well
this.sourceDecoratorNode.attr({"stroke":"#"+this.lineColor.hex(), opacity:this.alpha});
this.sourceDecoratorNode.forEach(function(shape){
shape.node.setAttribute("class",_this.cssClass!==null?_this.cssClass:"");
});
}
if(this.targetDecoratorNode!==null){
var end = this.getVertices().last();
this.targetDecoratorNode.transform("r"+this.getEndAngle()+"," + end.x + "," + end.y+" t" + end.x + "," + end.y);
this.targetDecoratorNode.attr({"stroke":"#"+this.lineColor.hex(), opacity:this.alpha});
this.targetDecoratorNode.forEach(function(shape){
shape.node.setAttribute("class",_this.cssClass!==null?_this.cssClass:"");
});
}
this.targetDecoratorNode.attr and this.sourceDecoratorNode.attr set the 'stroke' attribute with the lineColor instead
The text was updated successfully, but these errors were encountered:
The setColor method in draw2d.decoration.connection.ArrowDecorator doesn't work at all. The stroke color is taken from the line color of the connection.
The issue is in draw2.Connection.repaint method
this.targetDecoratorNode.attr and this.sourceDecoratorNode.attr set the 'stroke' attribute with the lineColor instead
The text was updated successfully, but these errors were encountered: