|
@ -717,6 +717,7 @@ Edge.prototype._drawArrowCenter = function(ctx) { |
|
|
var point; |
|
|
var point; |
|
|
// set style
|
|
|
// set style
|
|
|
ctx.strokeStyle = this._getColor(); |
|
|
ctx.strokeStyle = this._getColor(); |
|
|
|
|
|
ctx.fillStyle = ctx.strokeStyle; |
|
|
ctx.lineWidth = this._getLineWidth(); |
|
|
ctx.lineWidth = this._getLineWidth(); |
|
|
|
|
|
|
|
|
if (this.from != this.to) { |
|
|
if (this.from != this.to) { |
|
@ -790,6 +791,7 @@ Edge.prototype._drawArrowCenter = function(ctx) { |
|
|
Edge.prototype._drawArrow = function(ctx) { |
|
|
Edge.prototype._drawArrow = function(ctx) { |
|
|
// set style
|
|
|
// set style
|
|
|
ctx.strokeStyle = this._getColor(); |
|
|
ctx.strokeStyle = this._getColor(); |
|
|
|
|
|
ctx.fillStyle = ctx.strokeStyle; |
|
|
ctx.lineWidth = this._getLineWidth(); |
|
|
ctx.lineWidth = this._getLineWidth(); |
|
|
|
|
|
|
|
|
var angle, length; |
|
|
var angle, length; |
|
|