Skip to content

Commit

Permalink
Merge pull request #152 from ebshimizu/patch-1
Browse files Browse the repository at this point in the history
Typescript: add scale to declared Polygon functions
  • Loading branch information
alexbol99 authored Sep 27, 2023
2 parents 4d3a159 + 5b73633 commit 8ad1e17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ declare namespace Flatten {
distanceTo(shape: AnyShape): [number, Segment];
intersect(shape: AnyShape): Point[];
rotate(angle?: number, center?: Point): Polygon;
scale(sx: number, sy: number): Polygon;
transform(matrix?: Matrix): Polygon;
translate(vec: Vector): Polygon;
toJSON() : Object;
Expand Down

0 comments on commit 8ad1e17

Please sign in to comment.