Skip to content

Commit

Permalink
v1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba committed Dec 19, 2024
1 parent fbd0021 commit 97b1a83
Show file tree
Hide file tree
Showing 90 changed files with 726 additions and 84 deletions.
5 changes: 0 additions & 5 deletions .changeset/rare-yaks-film.md

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# planck

## 1.1.5

### Patch Changes

- fbd0021: Un-hidden style field type
8 changes: 4 additions & 4 deletions dist/planck-with-testbed.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export interface JointOpt {
* should collide.
*/
collideConnected?: boolean;
/** @hidden Styling for dev-tools. */
/** Styling for dev-tools. */
style?: Style;
}
/**
Expand Down Expand Up @@ -986,7 +986,7 @@ export interface FixtureOpt {
* Collision category bit or bits that this fixture accept for collision.
*/
filterMaskBits?: number;
/** @hidden Styling for dev-tools. */
/** Styling for dev-tools. */
style?: Style;
}
export interface FixtureDef extends FixtureOpt {
Expand Down Expand Up @@ -1532,7 +1532,7 @@ export interface BodyDef {
*/
active?: boolean;
userData?: any;
/** @hidden Styling for dev-tools. */
/** Styling for dev-tools. */
style?: Style;
}
/**
Expand All @@ -1558,7 +1558,7 @@ declare class Body$1 {
static readonly KINEMATIC: BodyType;
/** @hidden */
static readonly DYNAMIC: BodyType;
/** @hidden Styling for dev-tools. */
/** Styling for dev-tools. */
style: Style;
/** @hidden @experimental Similar to userData, but used by dev-tools or runtime environment. */
appData: Record<string, any>;
Expand Down
2 changes: 1 addition & 1 deletion dist/planck-with-testbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.planck = {}));
})(this, function(exports2) {
"use strict";/**
* Planck.js v1.1.4
* Planck.js v1.1.5
* @license The MIT license
* @copyright Copyright (c) 2024 Erin Catto, Ali Shakiba
*
Expand Down
2 changes: 1 addition & 1 deletion dist/planck-with-testbed.js.map

Large diffs are not rendered by default.

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/planck-with-testbed.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.1.4
* Planck.js v1.1.5
* @license The MIT license
* @copyright Copyright (c) 2024 Erin Catto, Ali Shakiba
*
Expand Down
2 changes: 1 addition & 1 deletion dist/planck-with-testbed.mjs.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/planck.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export interface JointOpt {
* should collide.
*/
collideConnected?: boolean;
/** @hidden Styling for dev-tools. */
/** Styling for dev-tools. */
style?: Style;
}
/**
Expand Down Expand Up @@ -986,7 +986,7 @@ export interface FixtureOpt {
* Collision category bit or bits that this fixture accept for collision.
*/
filterMaskBits?: number;
/** @hidden Styling for dev-tools. */
/** Styling for dev-tools. */
style?: Style;
}
export interface FixtureDef extends FixtureOpt {
Expand Down Expand Up @@ -1532,7 +1532,7 @@ export interface BodyDef {
*/
active?: boolean;
userData?: any;
/** @hidden Styling for dev-tools. */
/** Styling for dev-tools. */
style?: Style;
}
/**
Expand All @@ -1558,7 +1558,7 @@ declare class Body$1 {
static readonly KINEMATIC: BodyType;
/** @hidden */
static readonly DYNAMIC: BodyType;
/** @hidden Styling for dev-tools. */
/** Styling for dev-tools. */
style: Style;
/** @hidden @experimental Similar to userData, but used by dev-tools or runtime environment. */
appData: Record<string, any>;
Expand Down
2 changes: 1 addition & 1 deletion dist/planck.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Large diffs are not rendered by default.

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/planck.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Planck.js v1.1.4
* Planck.js v1.1.5
* @license The MIT license
* @copyright Copyright (c) 2024 Erin Catto, Ali Shakiba
*
Expand Down
2 changes: 1 addition & 1 deletion dist/planck.mjs.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions docs/pages/api/classes/Body.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ A rigid body composed of one or more fixtures.

To create a new Body use [World.createBody](World#createbody).

## Properties

### style

> **style**: [`Style`](../interfaces/Style) = `{}`

Styling for dev-tools.

## Methods

### advance()
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/api/classes/DistanceJoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ DistanceJoint definition.

### new DistanceJoint()

> **new DistanceJoint**(`def`, `bodyA`, `bodyB`, `anchorA`, `anchorB`): [`DistanceJoint`](DistanceJoint)
> **new DistanceJoint**(`def`, `bodyA`, `bodyB`, `anchorA`?, `anchorB`?): [`DistanceJoint`](DistanceJoint)

#### Parameters

Expand All @@ -39,11 +39,11 @@ DistanceJoint definition.

• **bodyB**: [`Body`](Body)

• **anchorA**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchorA?**: [`Vec2Value`](../interfaces/Vec2Value)

Anchor A in global coordination.

• **anchorB**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchorB?**: [`Vec2Value`](../interfaces/Vec2Value)

Anchor B in global coordination.

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api/classes/FrictionJoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ translational friction and angular friction.

### new FrictionJoint()

> **new FrictionJoint**(`def`, `bodyA`, `bodyB`, `anchor`): [`FrictionJoint`](FrictionJoint)
> **new FrictionJoint**(`def`, `bodyA`, `bodyB`, `anchor`?): [`FrictionJoint`](FrictionJoint)

#### Parameters

Expand All @@ -37,7 +37,7 @@ translational friction and angular friction.

• **bodyB**: [`Body`](Body)

• **anchor**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchor?**: [`Vec2Value`](../interfaces/Vec2Value)

Anchor in global coordination.

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api/classes/MouseJoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ at the testbed.

### new MouseJoint()

> **new MouseJoint**(`def`, `bodyA`, `bodyB`, `target`): [`MouseJoint`](MouseJoint)
> **new MouseJoint**(`def`, `bodyA`, `bodyB`, `target`?): [`MouseJoint`](MouseJoint)

#### Parameters

Expand All @@ -45,7 +45,7 @@ at the testbed.

• **bodyB**: [`Body`](Body)

• **target**: [`Vec2Value`](../interfaces/Vec2Value)
• **target?**: [`Vec2Value`](../interfaces/Vec2Value)

#### Returns

Expand Down
6 changes: 3 additions & 3 deletions docs/pages/api/classes/PrismaticJoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ motion or to model joint friction.

### new PrismaticJoint()

> **new PrismaticJoint**(`def`, `bodyA`, `bodyB`, `anchor`, `axis`): [`PrismaticJoint`](PrismaticJoint)
> **new PrismaticJoint**(`def`, `bodyA`, `bodyB`, `anchor`?, `axis`?): [`PrismaticJoint`](PrismaticJoint)

#### Parameters

Expand All @@ -39,9 +39,9 @@ motion or to model joint friction.

• **bodyB**: [`Body`](Body)

• **anchor**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchor?**: [`Vec2Value`](../interfaces/Vec2Value)

• **axis**: [`Vec2Value`](../interfaces/Vec2Value)
• **axis?**: [`Vec2Value`](../interfaces/Vec2Value)

#### Returns

Expand Down
12 changes: 6 additions & 6 deletions docs/pages/api/classes/PulleyJoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ length.

### new PulleyJoint()

> **new PulleyJoint**(`def`, `bodyA`, `bodyB`, `groundA`, `groundB`, `anchorA`, `anchorB`, `ratio`): [`PulleyJoint`](PulleyJoint)
> **new PulleyJoint**(`def`, `bodyA`, `bodyB`, `groundA`?, `groundB`?, `anchorA`?, `anchorB`?, `ratio`?): [`PulleyJoint`](PulleyJoint)

#### Parameters

Expand All @@ -44,15 +44,15 @@ length.

• **bodyB**: [`Body`](Body)

• **groundA**: [`Vec2Value`](../interfaces/Vec2Value)
• **groundA?**: [`Vec2Value`](../interfaces/Vec2Value)

• **groundB**: [`Vec2Value`](../interfaces/Vec2Value)
• **groundB?**: [`Vec2Value`](../interfaces/Vec2Value)

• **anchorA**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchorA?**: [`Vec2Value`](../interfaces/Vec2Value)

• **anchorB**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchorB?**: [`Vec2Value`](../interfaces/Vec2Value)

• **ratio**: `number`
• **ratio?**: `number`

#### Returns

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api/classes/RevoluteJoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ so that infinite forces are not generated.

### new RevoluteJoint()

> **new RevoluteJoint**(`def`, `bodyA`, `bodyB`, `anchor`): [`RevoluteJoint`](RevoluteJoint)
> **new RevoluteJoint**(`def`, `bodyA`, `bodyB`, `anchor`?): [`RevoluteJoint`](RevoluteJoint)

#### Parameters

Expand All @@ -41,7 +41,7 @@ so that infinite forces are not generated.

• **bodyB**: [`Body`](Body)

• **anchor**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchor?**: [`Vec2Value`](../interfaces/Vec2Value)

#### Returns

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api/classes/RopeJoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ want to dynamically control length.

### new RopeJoint()

> **new RopeJoint**(`def`, `bodyA`, `bodyB`, `anchor`): [`RopeJoint`](RopeJoint)
> **new RopeJoint**(`def`, `bodyA`, `bodyB`, `anchor`?): [`RopeJoint`](RopeJoint)

#### Parameters

Expand All @@ -44,7 +44,7 @@ want to dynamically control length.

• **bodyB**: [`Body`](Body)

• **anchor**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchor?**: [`Vec2Value`](../interfaces/Vec2Value)

#### Returns

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api/classes/WeldJoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ somewhat because the island constraint solver is approximate.

### new WeldJoint()

> **new WeldJoint**(`def`, `bodyA`, `bodyB`, `anchor`): [`WeldJoint`](WeldJoint)
> **new WeldJoint**(`def`, `bodyA`, `bodyB`, `anchor`?): [`WeldJoint`](WeldJoint)

#### Parameters

Expand All @@ -37,7 +37,7 @@ somewhat because the island constraint solver is approximate.

• **bodyB**: [`Body`](Body)

• **anchor**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchor?**: [`Vec2Value`](../interfaces/Vec2Value)

#### Returns

Expand Down
6 changes: 3 additions & 3 deletions docs/pages/api/classes/WheelJoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This joint is designed for vehicle suspensions.

### new WheelJoint()

> **new WheelJoint**(`def`, `bodyA`, `bodyB`, `anchor`, `axis`): [`WheelJoint`](WheelJoint)
> **new WheelJoint**(`def`, `bodyA`, `bodyB`, `anchor`?, `axis`?): [`WheelJoint`](WheelJoint)

#### Parameters

Expand All @@ -39,9 +39,9 @@ This joint is designed for vehicle suspensions.

• **bodyB**: [`Body`](Body)

• **anchor**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchor?**: [`Vec2Value`](../interfaces/Vec2Value)

• **axis**: [`Vec2Value`](../interfaces/Vec2Value)
• **axis?**: [`Vec2Value`](../interfaces/Vec2Value)

#### Returns

Expand Down
8 changes: 8 additions & 0 deletions docs/pages/api/classes/body.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ A rigid body composed of one or more fixtures.

To create a new Body use [World.createBody](World#createbody).

## Properties

### style

> **style**: [`Style`](../interfaces/Style) = `{}`

Styling for dev-tools.

## Methods

### advance()
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/api/classes/distancejoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ DistanceJoint definition.

### new DistanceJoint()

> **new DistanceJoint**(`def`, `bodyA`, `bodyB`, `anchorA`, `anchorB`): [`DistanceJoint`](DistanceJoint)
> **new DistanceJoint**(`def`, `bodyA`, `bodyB`, `anchorA`?, `anchorB`?): [`DistanceJoint`](DistanceJoint)

#### Parameters

Expand All @@ -39,11 +39,11 @@ DistanceJoint definition.

• **bodyB**: [`Body`](Body)

• **anchorA**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchorA?**: [`Vec2Value`](../interfaces/Vec2Value)

Anchor A in global coordination.

• **anchorB**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchorB?**: [`Vec2Value`](../interfaces/Vec2Value)

Anchor B in global coordination.

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/api/classes/frictionjoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ translational friction and angular friction.

### new FrictionJoint()

> **new FrictionJoint**(`def`, `bodyA`, `bodyB`, `anchor`): [`FrictionJoint`](FrictionJoint)
> **new FrictionJoint**(`def`, `bodyA`, `bodyB`, `anchor`?): [`FrictionJoint`](FrictionJoint)

#### Parameters

Expand All @@ -37,7 +37,7 @@ translational friction and angular friction.

• **bodyB**: [`Body`](Body)

• **anchor**: [`Vec2Value`](../interfaces/Vec2Value)
• **anchor?**: [`Vec2Value`](../interfaces/Vec2Value)

Anchor in global coordination.

Expand Down
Loading

0 comments on commit 97b1a83

Please sign in to comment.