Skip to content

Commit 4955602

Browse files
committed
New constraint type defs
1 parent 0a376d6 commit 4955602

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

src/physics/matter-js/typedefs/MatterConstraintConfig.js

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* @typedef {object} Phaser.Types.Physics.Matter.MatterConstraintRenderConfig
3+
* @since 3.22.0
4+
*
5+
* @property {boolean} [visible=true] - Should this constraint be rendered by the Debug Renderer?
6+
* @property {boolean} [anchors=true] - If this constraint has anchors, should they be rendered? Pin constraints never have anchors.
7+
* @property {number} [lineColor] - The color value of the line stroke when rendering this constraint.
8+
* @property {number} [lineOpacity] - The opacity of the line when rendering this constraint, a value between 0 and 1.
9+
* @property {number} [lineThickness] - If rendering lines, the thickness of the line.
10+
* @property {number} [pinSize=4] - The size of the circles drawn when rendering pin constraints.
11+
* @property {number} [anchorSize=4] - The size of the circles drawn as the constraint anchors.
12+
* @property {number} [anchorColor=0xefefef] - The color value of constraint anchors.
13+
*/

0 commit comments

Comments
 (0)