Make center point optional on Point.rotate (#18045)

* Make center point optional on Point.rotate

Since the second parameter is optional (and most don't use it), let's let TS know that one parameter is OK.

* Update index.d.ts
This commit is contained in:
Chris Kelly 2017-07-17 12:17:58 -06:00 committed by Andy
parent cd85a7a557
commit 1ad0e4dbc4

View File

@ -470,7 +470,7 @@ declare module 'paper' {
* @param angle - the rotation angle
* @param center - the center point of the rotation
*/
rotate(angle: number, center: Point): Point;
rotate(angle: number, center?: Point): Point;
/**
* Transforms the point by the matrix as a new point. The object itself is not modified!