Skip to content

Commit d12d0cc

Browse files
committed
fix shape name export
1 parent 54cfa2d commit d12d0cc

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

.changeset/little-queens-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"planck": patch
3+
---
4+
5+
Fix shape name alias export

src/collision/shape/BoxShape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ export class BoxShape extends PolygonShape {
4545
}
4646
}
4747

48-
export const Box = BoxShape;
48+
export { BoxShape as Box };

src/collision/shape/ChainShape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,4 +365,4 @@ export class ChainShape extends Shape {
365365
}
366366
}
367367

368-
export const Chain = ChainShape;
368+
export { ChainShape as Chain };

src/collision/shape/CircleShape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,4 +211,4 @@ export class CircleShape extends Shape {
211211
}
212212
}
213213

214-
export const Circle = CircleShape;
214+
export { CircleShape as Circle };

src/collision/shape/EdgeShape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,4 @@ export class EdgeShape extends Shape {
314314
}
315315
}
316316

317-
export const Edge = EdgeShape;
317+
export { EdgeShape as Edge };

src/collision/shape/PolygonShape.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,4 +577,4 @@ export class PolygonShape extends Shape {
577577
return c;
578578
}
579579

580-
export const Polygon = PolygonShape;
580+
export { PolygonShape as Polygon };

0 commit comments

Comments
 (0)