Skip to content

Commit

Permalink
v1.0.9: fix exported internal.Settings and hide internal, stats
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba committed Nov 19, 2024
1 parent b6883d0 commit 733e30b
Show file tree
Hide file tree
Showing 38 changed files with 60 additions and 178 deletions.
6 changes: 4 additions & 2 deletions dist/planck-with-testbed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4288,6 +4288,7 @@ declare const TimeOfImpact: {
Input: typeof TOIInput;
Output: typeof TOIOutput;
};
/** @hidden */
declare const stats: {
gjkCalls: number;
gjkIters: number;
Expand All @@ -4301,7 +4302,7 @@ declare const stats: {
toiMaxRootIters: number;
toString(newline?: string): string;
};
/** @deprecated Merged with main namespace */
/** @hidden @deprecated Merged with main namespace */
declare const internal: {
CollidePolygons: (manifold: Manifold, polyA: PolygonShape, xfA: TransformValue, polyB: PolygonShape, xfB: TransformValue) => void;
Settings: typeof Settings;
Expand Down Expand Up @@ -8434,6 +8435,7 @@ declare namespace planck {
Input: typeof TOIInput;
Output: typeof TOIOutput;
};
/** @hidden */
const stats: {
gjkCalls: number;
gjkIters: number;
Expand All @@ -8447,7 +8449,7 @@ declare namespace planck {
toiMaxRootIters: number;
toString(newline?: string): string;
};
/** @deprecated Merged with main namespace */
/** @hidden @deprecated Merged with main namespace */
const internal: {
CollidePolygons: (manifold: Manifold, polyA: PolygonShape, xfA: TransformValue, polyB: PolygonShape, xfB: TransformValue) => void;
Settings: typeof Settings;
Expand Down
2 changes: 1 addition & 1 deletion dist/planck-with-testbed.d.ts.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions dist/planck-with-testbed.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.0.8
* Planck.js v1.0.9
* @license The MIT license
* @copyright Copyright (c) 2023 Erin Catto, Ali Shakiba
*
Expand Down Expand Up @@ -4398,6 +4398,7 @@
return Joint;
}());

/** @hidden */
var stats$1 = {
gjkCalls: 0,
gjkIters: 0,
Expand Down Expand Up @@ -16070,10 +16071,10 @@
manifold.pointCount = pointCount;
};

/** @deprecated Merged with main namespace */
/** @hidden @deprecated Merged with main namespace */
var internal = {
CollidePolygons: CollidePolygons,
Settings: SettingsInternal,
Settings: Settings,
Sweep: Sweep,
Manifold: Manifold,
Distance: Distance,
Expand Down
2 changes: 1 addition & 1 deletion dist/planck-with-testbed.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/planck-with-testbed.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/planck-with-testbed.min.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions dist/planck-with-testbed.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.0.8
* Planck.js v1.0.9
* @license The MIT license
* @copyright Copyright (c) 2023 Erin Catto, Ali Shakiba
*
Expand Down Expand Up @@ -4392,6 +4392,7 @@ var Joint = /** @class */ (function () {
return Joint;
}());

/** @hidden */
var stats$1 = {
gjkCalls: 0,
gjkIters: 0,
Expand Down Expand Up @@ -16064,10 +16065,10 @@ var CollideEdgePolygon = function (manifold, edgeA, xfA, polygonB, xfB) {
manifold.pointCount = pointCount;
};

/** @deprecated Merged with main namespace */
/** @hidden @deprecated Merged with main namespace */
var internal = {
CollidePolygons: CollidePolygons,
Settings: SettingsInternal,
Settings: Settings,
Sweep: Sweep,
Manifold: Manifold,
Distance: Distance,
Expand Down
2 changes: 1 addition & 1 deletion dist/planck-with-testbed.mjs.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/planck.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4288,6 +4288,7 @@ declare const TimeOfImpact: {
Input: typeof TOIInput;
Output: typeof TOIOutput;
};
/** @hidden */
declare const stats: {
gjkCalls: number;
gjkIters: number;
Expand All @@ -4301,7 +4302,7 @@ declare const stats: {
toiMaxRootIters: number;
toString(newline?: string): string;
};
/** @deprecated Merged with main namespace */
/** @hidden @deprecated Merged with main namespace */
declare const internal: {
CollidePolygons: (manifold: Manifold, polyA: PolygonShape, xfA: TransformValue, polyB: PolygonShape, xfB: TransformValue) => void;
Settings: typeof Settings;
Expand Down Expand Up @@ -7582,6 +7583,7 @@ declare namespace planck {
Input: typeof TOIInput;
Output: typeof TOIOutput;
};
/** @hidden */
const stats: {
gjkCalls: number;
gjkIters: number;
Expand All @@ -7595,7 +7597,7 @@ declare namespace planck {
toiMaxRootIters: number;
toString(newline?: string): string;
};
/** @deprecated Merged with main namespace */
/** @hidden @deprecated Merged with main namespace */
const internal: {
CollidePolygons: (manifold: Manifold, polyA: PolygonShape, xfA: TransformValue, polyB: PolygonShape, xfB: TransformValue) => void;
Settings: typeof Settings;
Expand Down Expand Up @@ -8481,7 +8483,7 @@ declare namespace planck {
static toJson: (root: World) => SerializedType;
static fromJson: (json: SerializedType) => World;
}
/** @deprecated */
/** @hidden @deprecated */
export { math as Math };
}
export { planck as default, Serializer, Style, ActiveKeys, Testbed, testbed, math as Math, Vec2Value, Vec2, Vec3Value, Vec3, Mat22, Mat33, TransformValue, Transform, RotValue, Rot, RayCastInput, RayCastCallback, RayCastOutput, AABBValue, AABB, Shape, ShapeType, FixtureOpt, FixtureDef, FixtureProxy, Fixture, BodyType, BodyDef, MassData, Body, ContactEdge, EvaluateFunction, mixFriction, mixRestitution, VelocityConstraintPoint, Contact, JointEdge, JointOpt, JointDef, Joint, WorldDef, WorldRayCastCallback, WorldAABBQueryCallback, World, CircleShape, Circle, EdgeShape, Edge, PolygonShape, Polygon, ChainShape, Chain, BoxShape, Box, CollideCircles, CollideEdgeCircle, CollidePolygons, CollidePolygonCircle, CollideEdgePolygon, DistanceJointOpt, DistanceJointDef, DistanceJoint, FrictionJointOpt, FrictionJointDef, FrictionJoint, GearJointOpt, GearJointDef, GearJoint, MotorJointOpt, MotorJointDef, MotorJoint, MouseJointOpt, MouseJointDef, MouseJoint, PrismaticJointOpt, PrismaticJointDef, PrismaticJoint, PulleyJointOpt, PulleyJointDef, PulleyJoint, RevoluteJointOpt, RevoluteJointDef, RevoluteJoint, RopeJointOpt, RopeJointDef, RopeJoint, WeldJointOpt, WeldJointDef, WeldJoint, WheelJointOpt, WheelJointDef, WheelJoint, Settings, Sweep, ManifoldType, ContactFeatureType, PointState, ClipVertex, Manifold, ManifoldPoint, ContactID, WorldManifold, getPointStates, clipSegmentToLine, DistanceInput, DistanceOutput, SimplexCache, Distance, DistanceProxy, testOverlap, ShapeCastInput, ShapeCastOutput, ShapeCast, TOIInput, TOIOutputState, TOIOutput, TimeOfImpact, DynamicTreeQueryCallback, TreeNode, DynamicTree, stats, internal };
Expand Down
2 changes: 1 addition & 1 deletion dist/planck.d.ts.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions dist/planck.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.0.8
* Planck.js v1.0.9
* @license The MIT license
* @copyright Copyright (c) 2023 Erin Catto, Ali Shakiba
*
Expand Down Expand Up @@ -4398,6 +4398,7 @@
return Joint;
}());

/** @hidden */
var stats = {
gjkCalls: 0,
gjkIters: 0,
Expand Down Expand Up @@ -16070,10 +16071,10 @@
manifold.pointCount = pointCount;
};

/** @deprecated Merged with main namespace */
/** @hidden @deprecated Merged with main namespace */
var internal = {
CollidePolygons: CollidePolygons,
Settings: SettingsInternal,
Settings: Settings,
Sweep: Sweep,
Manifold: Manifold,
Distance: Distance,
Expand Down
2 changes: 1 addition & 1 deletion dist/planck.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/planck.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/planck.min.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions dist/planck.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.0.8
* Planck.js v1.0.9
* @license The MIT license
* @copyright Copyright (c) 2023 Erin Catto, Ali Shakiba
*
Expand Down Expand Up @@ -4392,6 +4392,7 @@ var Joint = /** @class */ (function () {
return Joint;
}());

/** @hidden */
var stats = {
gjkCalls: 0,
gjkIters: 0,
Expand Down Expand Up @@ -16064,10 +16065,10 @@ var CollideEdgePolygon = function (manifold, edgeA, xfA, polygonB, xfB) {
manifold.pointCount = pointCount;
};

/** @deprecated Merged with main namespace */
/** @hidden @deprecated Merged with main namespace */
var internal = {
CollidePolygons: CollidePolygons,
Settings: SettingsInternal,
Settings: Settings,
Sweep: Sweep,
Manifold: Manifold,
Distance: Distance,
Expand Down
2 changes: 1 addition & 1 deletion dist/planck.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/pages/api/classes/boxshape.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ___

### `Static` TYPE

**TYPE**: *"polygon"* = 'polygon' as const
**TYPE**: *"polygon"* = "polygon" as const

*Overrides [PolygonShape](/api/classes/polygonshape).[TYPE](/api/classes/polygonshape#static-type)*

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/chainshape.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ___

### `Static` TYPE

**TYPE**: *"chain"* = 'chain' as const
**TYPE**: *"chain"* = "chain" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/circleshape.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ___

### `Static` TYPE

**TYPE**: *"circle"* = 'circle' as const
**TYPE**: *"circle"* = "circle" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/distancejoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ___

### `Static` TYPE

**TYPE**: *"distance-joint"* = 'distance-joint' as const
**TYPE**: *"distance-joint"* = "distance-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/edgeshape.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ___

### `Static` TYPE

**TYPE**: *"edge"* = 'edge' as const
**TYPE**: *"edge"* = "edge" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/frictionjoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ ___

### `Static` TYPE

**TYPE**: *"friction-joint"* = 'friction-joint' as const
**TYPE**: *"friction-joint"* = "friction-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/gearjoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ___

### `Static` TYPE

**TYPE**: *"gear-joint"* = 'gear-joint' as const
**TYPE**: *"gear-joint"* = "gear-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/motorjoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ___

### `Static` TYPE

**TYPE**: *"motor-joint"* = 'motor-joint' as const
**TYPE**: *"motor-joint"* = "motor-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/mousejoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ___

### `Static` TYPE

**TYPE**: *"mouse-joint"* = 'mouse-joint' as const
**TYPE**: *"mouse-joint"* = "mouse-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/polygonshape.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ___

### `Static` TYPE

**TYPE**: *"polygon"* = 'polygon' as const
**TYPE**: *"polygon"* = "polygon" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/prismaticjoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ ___

### `Static` TYPE

**TYPE**: *"prismatic-joint"* = 'prismatic-joint' as const
**TYPE**: *"prismatic-joint"* = "prismatic-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/pulleyjoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ___

### `Static` TYPE

**TYPE**: *"pulley-joint"* = 'pulley-joint' as const
**TYPE**: *"pulley-joint"* = "pulley-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/revolutejoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ ___

### `Static` TYPE

**TYPE**: *"revolute-joint"* = 'revolute-joint' as const
**TYPE**: *"revolute-joint"* = "revolute-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/ropejoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ___

### `Static` TYPE

**TYPE**: *"rope-joint"* = 'rope-joint' as const
**TYPE**: *"rope-joint"* = "rope-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/weldjoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ___

### `Static` TYPE

**TYPE**: *"weld-joint"* = 'weld-joint' as const
**TYPE**: *"weld-joint"* = "weld-joint" as const

## Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/api/classes/wheeljoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ ___

### `Static` TYPE

**TYPE**: *"wheel-joint"* = 'wheel-joint' as const
**TYPE**: *"wheel-joint"* = "wheel-joint" as const

## Methods

Expand Down
Loading

0 comments on commit 733e30b

Please sign in to comment.