DavidDurman/joint — Issue #21: Vertices of an Arrow Get Lost
Author: Eraser666
Created: 2012-02-23 16:20:27+00:00
State: open

Hello,

i found a mysterious behaviour of Joint.
If the x positions of vertices equals the arrow's x position, the vertices loose their effect.

Just try:

Joint.paper("test", 800, 400);

Joint({x: 230, y: 30}, {x: 60, y: 90}, {
startArrow: {
type: "none"
},
endArrow: {
type: "basic"
}
}).setVertices(["230 50", "60 50"]);

This will cause a nearly diagonal arrow. If you change the vertices' x position by 1 pixel...

Joint.paper("test", 800, 400);

Joint({x: 230, y: 30}, {x: 60, y: 90}, {
startArrow: {
type: "none"
},
endArrow: {
type: "basic"
}
}).setVertices(["231 50", "61 50"]);

...the arrow will be displayed with those vertices.

Regards,
Ruben