Skip to content

Commit

Permalink
Add more foundry extensions to PIXI.Rectangle/Circle
Browse files Browse the repository at this point in the history
  • Loading branch information
illandril committed Jul 7, 2024
1 parent 58a5519 commit 7edbe56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PIXI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ declare global {
}

export class Rectangle extends PixiRectangle {
get center(): { x: number; y: number };
toPolygon(): Polygon;
getBounds(): Rectangle;
}

export class Circle extends PixiCircle {
get center(): { x: number; y: number };
toPolygon(options?: { density?: number; includeEndpoints?: boolean }): Polygon;
getBounds(): Rectangle;
}

export {
Expand Down

0 comments on commit 7edbe56

Please sign in to comment.