Skip to content

Commit 23e89ec

Browse files
committed
v1.4.1
1 parent d12d0cc commit 23e89ec

29 files changed

+458
-828
lines changed

.changeset/little-queens-exist.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# planck
22

3+
## 1.4.1
4+
5+
### Patch Changes
6+
7+
- d12d0cc: Fix shape name alias export
8+
39
## 1.4.0
410

511
### Minor Changes

dist/planck-with-testbed.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2428,7 +2428,6 @@ export declare class CircleShape extends Shape {
24282428
computeMass(massData: MassData, density: number): void;
24292429
computeDistanceProxy(proxy: DistanceProxy): void;
24302430
}
2431-
export declare const Circle: typeof CircleShape;
24322431
/** @hidden @deprecated Use new keyword. */
24332432
export function EdgeShape(v1?: Vec2Value, v2?: Vec2Value): EdgeShape;
24342433
/**
@@ -2515,7 +2514,6 @@ export declare class EdgeShape extends Shape {
25152514
computeMass(massData: MassData, density?: number): void;
25162515
computeDistanceProxy(proxy: DistanceProxy): void;
25172516
}
2518-
export declare const Edge: typeof EdgeShape;
25192517
/** @hidden @deprecated Use new keyword. */
25202518
export function PolygonShape(vertices?: Vec2Value[]): PolygonShape;
25212519
/**
@@ -2586,7 +2584,6 @@ export declare class PolygonShape extends Shape {
25862584
validate(): boolean;
25872585
computeDistanceProxy(proxy: DistanceProxy): void;
25882586
}
2589-
export declare const Polygon: typeof PolygonShape;
25902587
/** @hidden @deprecated Use new keyword. */
25912588
export function ChainShape(vertices?: Vec2Value[], loop?: boolean): ChainShape;
25922589
/**
@@ -2676,7 +2673,6 @@ export declare class ChainShape extends Shape {
26762673
computeMass(massData: MassData, density?: number): void;
26772674
computeDistanceProxy(proxy: DistanceProxy, childIndex: number): void;
26782675
}
2679-
export declare const Chain: typeof ChainShape;
26802676
/** @hidden @deprecated Use new keyword. */
26812677
export function BoxShape(halfWidth: number, halfHeight: number, center?: Vec2Value, angle?: number): BoxShape;
26822678
/**
@@ -2693,7 +2689,6 @@ export declare class BoxShape extends PolygonShape {
26932689
*/
26942690
constructor(halfWidth: number, halfHeight: number, center?: Vec2Value, angle?: number);
26952691
}
2696-
export declare const Box: typeof BoxShape;
26972692
export declare const CollideCircles: (manifold: Manifold, circleA: CircleShape, xfA: TransformValue, circleB: CircleShape, xfB: TransformValue) => void;
26982693
export declare const CollideEdgeCircle: (manifold: Manifold, edgeA: EdgeShape, xfA: TransformValue, circleB: CircleShape, xfB: TransformValue) => void;
26992694
/**
@@ -4304,6 +4299,11 @@ export declare class DataDriver<D extends object, R> {
43044299

43054300
export {
43064301
Body$1 as Body,
4302+
BoxShape as Box,
4303+
ChainShape as Chain,
4304+
CircleShape as Circle,
4305+
EdgeShape as Edge,
4306+
PolygonShape as Polygon,
43074307
math as Math,
43084308
};
43094309

dist/planck-with-testbed.js

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6813,7 +6813,6 @@
68136813
return EdgeShape2;
68146814
}(Shape)
68156815
);
6816-
var Edge = EdgeShape;
68176816
var v1$1 = vec2(0, 0);
68186817
var v2 = vec2(0, 0);
68196818
var ChainShape = (
@@ -7012,7 +7011,6 @@
70127011
return ChainShape2;
70137012
}(Shape)
70147013
);
7015-
var Chain = ChainShape;
70167014
var math_max$4 = Math.max;
70177015
var math_min$8 = Math.min;
70187016
var temp$1 = vec2(0, 0);
@@ -7330,7 +7328,6 @@
73307328
c2.mul(1 / area);
73317329
return c2;
73327330
}
7333-
var Polygon = PolygonShape;
73347331
var math_sqrt$3 = Math.sqrt;
73357332
var math_PI$6 = Math.PI;
73367333
var temp = vec2(0, 0);
@@ -7433,7 +7430,6 @@
74337430
return CircleShape2;
74347431
}(Shape)
74357432
);
7436-
var Circle = CircleShape;
74377433
var math_abs$6 = Math.abs;
74387434
var math_PI$5 = Math.PI;
74397435
var DEFAULTS$b = {
@@ -10930,7 +10926,6 @@
1093010926
return BoxShape2;
1093110927
}(PolygonShape)
1093210928
);
10933-
var Box = BoxShape;
1093410929
Contact.addType(CircleShape.TYPE, CircleShape.TYPE, CircleCircleContact);
1093510930
function CircleCircleContact(manifold, xfA2, fixtureA, indexA, xfB2, fixtureB, indexB) {
1093610931
CollideCircles(manifold, fixtureA.getShape(), xfA2, fixtureB.getShape(), xfB2);
@@ -16543,12 +16538,12 @@
1654316538
__proto__: null,
1654416539
AABB,
1654516540
Body,
16546-
Box,
16541+
Box: BoxShape,
1654716542
BoxShape,
1654816543
BroadPhase,
16549-
Chain,
16544+
Chain: ChainShape,
1655016545
ChainShape,
16551-
Circle,
16546+
Circle: CircleShape,
1655216547
CircleShape,
1655316548
ClipVertex,
1655416549
CollideCircles,
@@ -16570,7 +16565,7 @@
1657016565
DistanceOutput,
1657116566
DistanceProxy,
1657216567
DynamicTree,
16573-
Edge,
16568+
Edge: EdgeShape,
1657416569
EdgeShape,
1657516570
Fixture,
1657616571
FixtureProxy,
@@ -16591,7 +16586,7 @@
1659116586
get PointState() {
1659216587
return exports2.PointState;
1659316588
},
16594-
Polygon,
16589+
Polygon: PolygonShape,
1659516590
PolygonShape,
1659616591
PrismaticJoint,
1659716592
PulleyJoint,
@@ -16637,12 +16632,12 @@
1663716632
}, Symbol.toStringTag, { value: "Module" }));
1663816633
exports2.AABB = AABB;
1663916634
exports2.Body = Body;
16640-
exports2.Box = Box;
16635+
exports2.Box = BoxShape;
1664116636
exports2.BoxShape = BoxShape;
1664216637
exports2.BroadPhase = BroadPhase;
16643-
exports2.Chain = Chain;
16638+
exports2.Chain = ChainShape;
1664416639
exports2.ChainShape = ChainShape;
16645-
exports2.Circle = Circle;
16640+
exports2.Circle = CircleShape;
1664616641
exports2.CircleShape = CircleShape;
1664716642
exports2.ClipVertex = ClipVertex;
1664816643
exports2.CollideCircles = CollideCircles;
@@ -16661,7 +16656,7 @@
1666116656
exports2.DistanceOutput = DistanceOutput;
1666216657
exports2.DistanceProxy = DistanceProxy;
1666316658
exports2.DynamicTree = DynamicTree;
16664-
exports2.Edge = Edge;
16659+
exports2.Edge = EdgeShape;
1666516660
exports2.EdgeShape = EdgeShape;
1666616661
exports2.Fixture = Fixture;
1666716662
exports2.FixtureProxy = FixtureProxy;
@@ -16676,7 +16671,7 @@
1667616671
exports2.Math = math$1;
1667716672
exports2.MotorJoint = MotorJoint;
1667816673
exports2.MouseJoint = MouseJoint;
16679-
exports2.Polygon = Polygon;
16674+
exports2.Polygon = PolygonShape;
1668016675
exports2.PolygonShape = PolygonShape;
1668116676
exports2.PrismaticJoint = PrismaticJoint;
1668216677
exports2.PulleyJoint = PulleyJoint;

dist/planck-with-testbed.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/planck-with-testbed.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/planck-with-testbed.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/planck-with-testbed.mjs

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6809,7 +6809,6 @@ var EdgeShape = (
68096809
return EdgeShape2;
68106810
}(Shape)
68116811
);
6812-
var Edge = EdgeShape;
68136812
var v1$1 = vec2(0, 0);
68146813
var v2 = vec2(0, 0);
68156814
var ChainShape = (
@@ -7008,7 +7007,6 @@ var ChainShape = (
70087007
return ChainShape2;
70097008
}(Shape)
70107009
);
7011-
var Chain = ChainShape;
70127010
var math_max$4 = Math.max;
70137011
var math_min$8 = Math.min;
70147012
var temp$1 = vec2(0, 0);
@@ -7326,7 +7324,6 @@ function computeCentroid(vs, count) {
73267324
c2.mul(1 / area);
73277325
return c2;
73287326
}
7329-
var Polygon = PolygonShape;
73307327
var math_sqrt$3 = Math.sqrt;
73317328
var math_PI$6 = Math.PI;
73327329
var temp = vec2(0, 0);
@@ -7429,7 +7426,6 @@ var CircleShape = (
74297426
return CircleShape2;
74307427
}(Shape)
74317428
);
7432-
var Circle = CircleShape;
74337429
var math_abs$6 = Math.abs;
74347430
var math_PI$5 = Math.PI;
74357431
var DEFAULTS$b = {
@@ -10926,7 +10922,6 @@ var BoxShape = (
1092610922
return BoxShape2;
1092710923
}(PolygonShape)
1092810924
);
10929-
var Box = BoxShape;
1093010925
Contact.addType(CircleShape.TYPE, CircleShape.TYPE, CircleCircleContact);
1093110926
function CircleCircleContact(manifold, xfA2, fixtureA, indexA, xfB2, fixtureB, indexB) {
1093210927
CollideCircles(manifold, fixtureA.getShape(), xfA2, fixtureB.getShape(), xfB2);
@@ -16539,12 +16534,12 @@ const planck = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
1653916534
__proto__: null,
1654016535
AABB,
1654116536
Body,
16542-
Box,
16537+
Box: BoxShape,
1654316538
BoxShape,
1654416539
BroadPhase,
16545-
Chain,
16540+
Chain: ChainShape,
1654616541
ChainShape,
16547-
Circle,
16542+
Circle: CircleShape,
1654816543
CircleShape,
1654916544
ClipVertex,
1655016545
CollideCircles,
@@ -16566,7 +16561,7 @@ const planck = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
1656616561
DistanceOutput,
1656716562
DistanceProxy,
1656816563
DynamicTree,
16569-
Edge,
16564+
Edge: EdgeShape,
1657016565
EdgeShape,
1657116566
Fixture,
1657216567
FixtureProxy,
@@ -16587,7 +16582,7 @@ const planck = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
1658716582
get PointState() {
1658816583
return PointState;
1658916584
},
16590-
Polygon,
16585+
Polygon: PolygonShape,
1659116586
PolygonShape,
1659216587
PrismaticJoint,
1659316588
PulleyJoint,
@@ -16634,12 +16629,12 @@ const planck = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
1663416629
export {
1663516630
AABB,
1663616631
Body,
16637-
Box,
16632+
BoxShape as Box,
1663816633
BoxShape,
1663916634
BroadPhase,
16640-
Chain,
16635+
ChainShape as Chain,
1664116636
ChainShape,
16642-
Circle,
16637+
CircleShape as Circle,
1664316638
CircleShape,
1664416639
ClipVertex,
1664516640
CollideCircles,
@@ -16659,7 +16654,7 @@ export {
1665916654
DistanceOutput,
1666016655
DistanceProxy,
1666116656
DynamicTree,
16662-
Edge,
16657+
EdgeShape as Edge,
1666316658
EdgeShape,
1666416659
Fixture,
1666516660
FixtureProxy,
@@ -16676,7 +16671,7 @@ export {
1667616671
MotorJoint,
1667716672
MouseJoint,
1667816673
PointState,
16679-
Polygon,
16674+
PolygonShape as Polygon,
1668016675
PolygonShape,
1668116676
PrismaticJoint,
1668216677
PulleyJoint,

dist/planck-with-testbed.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/planck.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2428,7 +2428,6 @@ export declare class CircleShape extends Shape {
24282428
computeMass(massData: MassData, density: number): void;
24292429
computeDistanceProxy(proxy: DistanceProxy): void;
24302430
}
2431-
export declare const Circle: typeof CircleShape;
24322431
/** @hidden @deprecated Use new keyword. */
24332432
export function EdgeShape(v1?: Vec2Value, v2?: Vec2Value): EdgeShape;
24342433
/**
@@ -2515,7 +2514,6 @@ export declare class EdgeShape extends Shape {
25152514
computeMass(massData: MassData, density?: number): void;
25162515
computeDistanceProxy(proxy: DistanceProxy): void;
25172516
}
2518-
export declare const Edge: typeof EdgeShape;
25192517
/** @hidden @deprecated Use new keyword. */
25202518
export function PolygonShape(vertices?: Vec2Value[]): PolygonShape;
25212519
/**
@@ -2586,7 +2584,6 @@ export declare class PolygonShape extends Shape {
25862584
validate(): boolean;
25872585
computeDistanceProxy(proxy: DistanceProxy): void;
25882586
}
2589-
export declare const Polygon: typeof PolygonShape;
25902587
/** @hidden @deprecated Use new keyword. */
25912588
export function ChainShape(vertices?: Vec2Value[], loop?: boolean): ChainShape;
25922589
/**
@@ -2676,7 +2673,6 @@ export declare class ChainShape extends Shape {
26762673
computeMass(massData: MassData, density?: number): void;
26772674
computeDistanceProxy(proxy: DistanceProxy, childIndex: number): void;
26782675
}
2679-
export declare const Chain: typeof ChainShape;
26802676
/** @hidden @deprecated Use new keyword. */
26812677
export function BoxShape(halfWidth: number, halfHeight: number, center?: Vec2Value, angle?: number): BoxShape;
26822678
/**
@@ -2693,7 +2689,6 @@ export declare class BoxShape extends PolygonShape {
26932689
*/
26942690
constructor(halfWidth: number, halfHeight: number, center?: Vec2Value, angle?: number);
26952691
}
2696-
export declare const Box: typeof BoxShape;
26972692
export declare const CollideCircles: (manifold: Manifold, circleA: CircleShape, xfA: TransformValue, circleB: CircleShape, xfB: TransformValue) => void;
26982693
export declare const CollideEdgeCircle: (manifold: Manifold, edgeA: EdgeShape, xfA: TransformValue, circleB: CircleShape, xfB: TransformValue) => void;
26992694
/**
@@ -4304,6 +4299,11 @@ export declare class DataDriver<D extends object, R> {
43044299

43054300
export {
43064301
Body$1 as Body,
4302+
BoxShape as Box,
4303+
ChainShape as Chain,
4304+
CircleShape as Circle,
4305+
EdgeShape as Edge,
4306+
PolygonShape as Polygon,
43074307
math as Math,
43084308
};
43094309

0 commit comments

Comments
 (0)