Reputation: 9
I built a line on the svg using raphael js library.
Here is my code:
var line = paper.path("M10,10L690,190");
line.attr({ 'arrow-end': 'classic-narrow-medium' });
line.attr({ 'stroke': '#000000', 'stroke-width':'5' });
And I checked the path on the chrome developer tool.
But the real path attribute is changed to
d="M10,10C10,10,609.759231954813,168.7597966939211,682.7523904336886,188.0815151147999"
How can I fix it?
Upvotes: 1
Views: 522
Reputation: 13842
The real path is changed, because you are adding an arrow on the end which modifies it.
Upvotes: 1