Skip to content

Commit

Permalink
Exported docs and @types
Browse files Browse the repository at this point in the history
  • Loading branch information
b-g committed Oct 2, 2024
1 parent 6075651 commit 863c686
Show file tree
Hide file tree
Showing 26 changed files with 1,230 additions and 1,230 deletions.
24 changes: 12 additions & 12 deletions @types/classes/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,18 @@ declare class Block extends BlockCore {
* @memberof Block
* @example
* // Rotate the block to 45 degrees
* block.rotateTo(PI / 4)
* block.rotate(PI / 4)
*
* // Rotate the block to 45 degrees around a specific point
* block.rotateTo(PI / 4, { x: 100, y: 100 })
* block.rotate(PI / 4, { x: 100, y: 100 })
*
* // Rotate the block to 45 degrees around a specific point and update the velocity
* block.rotateTo(PI / 4, { x: 100, y: 100 }, true)
* block.rotate(PI / 4, { x: 100, y: 100 }, true)
*
* // Rotate the block to 45 degrees around a specific point and update the velocity
* block.rotateTo(PI / 4, { x: 100, y: 100 }, true)
* block.rotate(PI / 4, { x: 100, y: 100 }, true)
*/
rotateTo(rotation: number, point?: Matter.Vector, updateVelocity?: boolean): void;
rotate(rotation: number, point?: Matter.Vector, updateVelocity?: boolean): void;
/**
* Rotates the block by a specific angle (relative)
* adds the angle to the current angle of the block
Expand All @@ -132,21 +132,21 @@ declare class Block extends BlockCore {
* @param {boolean} [updateVelocity] - Whether to update the velocity of the block
* @memberof Block
* @example
* // Rotate the block by 45 degrees
* block.rotate(PI / 4)
* // Increments the rotation of the block by 1 degrees
* block.rotateBy(PI / 180)
*
* // Rotate the block by 45 degrees around a specific point
* block.rotate(PI / 4, { x: 100, y: 100 })
* // Increments the rotation of the block by 1 degrees around a specific point
* block.rotateBy(PI / 180, { x: 100, y: 100 })
*/
rotate(rotation: number, point?: Matter.Vector, updateVelocity?: boolean): void;
rotateBy(rotation: number, point?: Matter.Vector, updateVelocity?: boolean): void;
/**
* Sets the mass centre of the block to a specific offset
* the offset is relative to the current mass centre
* @param {Block} block
* @param {Matter.Vector} offset
* @memberof Block
*/
setMassCentre(offset: Matter.Vector): void;
offsetMassCentre(offset: Matter.Vector): void;
/**
* Draw an image "sprite" instead of the shape of the block.
* Make sure to set attributes.image so that there is an image to draw.
Expand Down Expand Up @@ -544,4 +544,4 @@ declare class Stack extends Block {
}


// ./sample/generate-types.bash - Last created: Tue Oct 1 10:50:40 CEST 2024
// ./sample/generate-types.bash - Last created: Wed Oct 2 07:54:28 CEST 2024
262 changes: 131 additions & 131 deletions docs/Ball.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/Ball.js.html

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions docs/Block.html

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions docs/Block.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/BlockCore.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/BlockCore.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/BlocksFromSVG.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/BlocksFromSVG.js.html

Large diffs are not rendered by default.

262 changes: 131 additions & 131 deletions docs/Chain.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/Chain.js.html

Large diffs are not rendered by default.

262 changes: 131 additions & 131 deletions docs/Magnet.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/Magnet.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/Mouse.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/Mouse.js.html

Large diffs are not rendered by default.

262 changes: 131 additions & 131 deletions docs/Parts.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/Parts.js.html

Large diffs are not rendered by default.

262 changes: 131 additions & 131 deletions docs/Polygon.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/Polygon.js.html

Large diffs are not rendered by default.

262 changes: 131 additions & 131 deletions docs/PolygonFromPoints.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/PolygonFromPoints.js.html

Large diffs are not rendered by default.

262 changes: 131 additions & 131 deletions docs/PolygonFromSVG.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/PolygonFromSVG.js.html

Large diffs are not rendered by default.

262 changes: 131 additions & 131 deletions docs/Stack.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/Stack.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html

Large diffs are not rendered by default.

0 comments on commit 863c686

Please sign in to comment.