jquery.path
jquery.path copied to clipboard
360 loop using Arc
I have tried to go from degree 0 to 360, or from 0 to 0, using dir: -1 and it doesn't work, and same issue trying to go from degree 360 to 0, or from 0 to 0, using dir: 1. I have solved it just modifying following lines, adding equal (=) to the comparisons:
while ( this.start >= this.end && this.dir > 0 ) {
this.start -= 360;
}
while ( this.start <= this.end && this.dir < 0 ) {
this.start += 360;
}
can you make this into a pull request ?