Cleaning
This commit is contained in:
parent
442a9e9c85
commit
c7c4048a44
3 changed files with 29 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
draw_arrow=function(p,x1,y1,x2,y2,elt=null,canvas,skiparrow=false){
|
||||
draw_arrow=function(p,x1,y1,x2,y2,elt=null,canvas,skiparrow=false,flip=false){
|
||||
var offset=5
|
||||
|
||||
// Reduce the length of the vector to have a better tip location
|
||||
|
@ -30,6 +30,12 @@ draw_arrow=function(p,x1,y1,x2,y2,elt=null,canvas,skiparrow=false){
|
|||
xfactor=1-yfactor
|
||||
justify=15
|
||||
|
||||
if(flip){
|
||||
xfactor=-xfactor
|
||||
yfactor=-yfactor
|
||||
}
|
||||
|
||||
|
||||
if(angle>0){
|
||||
yfactor=-yfactor
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue