mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
cd85a7a557
commit
1ad0e4dbc4
2
types/paper/index.d.ts
vendored
2
types/paper/index.d.ts
vendored
@ -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!
|
||||
|
||||
Loading…
Reference in New Issue
Block a user