mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix syntax errors (that magically work on Safari).
This commit is contained in:
parent
87981efeb5
commit
4c13ca6961
1 changed files with 2 additions and 2 deletions
|
@ -198,7 +198,7 @@ var Path = this.Path = PathItem.extend({
|
|||
matrix = null;
|
||||
first._transformCoordinates(matrix, prevCoords, false);
|
||||
var min = prevCoords.slice(0, 2),
|
||||
max = min.slice(0), // clone
|
||||
max = min.slice(0); // clone
|
||||
function processSegment(segment) {
|
||||
segment._transformCoordinates(matrix, coords, false);
|
||||
|
||||
|
@ -365,7 +365,7 @@ var Path = this.Path = PathItem.extend({
|
|||
ty = + Math.atan(b / Math.tan(phi)),
|
||||
// Due to symetry, we don't need to cycle through pi * n
|
||||
// solutions:
|
||||
x = a * Math.cos(tx) * Math.cos(phi),
|
||||
x = a * Math.cos(tx) * Math.cos(phi)
|
||||
- b * Math.sin(tx) * Math.sin(phi),
|
||||
y = b * Math.sin(ty) * Math.cos(phi)
|
||||
+ a * Math.cos(ty) * Math.sin(phi);
|
||||
|
|
Loading…
Reference in a new issue