Skip to content

Commit

Permalink
Update d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Nov 30, 2024
1 parent 2a3dfe4 commit c91cb85
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/docs/board-miniboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Chess [Container](containerlite.md), to rotate/mirror/drag chess together.

- [Group 4](https://codepen.io/rexrainbow/pen/bGdMVzo)
- [Drag & drop, mirror, rotate](https://codepen.io/rexrainbow/pen/ZEVqGRJ)
- [Drag overlapped miniboard](https://codepen.io/rexrainbow/pen/KwPwOjO)

## Usage

Expand Down
4 changes: 3 additions & 1 deletion plugins/board/board/LogicBoard.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ declare class Board<ChessType = unknown> extends EE {
out?: TileXYType[]
): TileXYType[];

getAllChess(): ChessType[];
getAllChess(
out?: ChessType[]
): ChessType[];

fit(tileXYArray: TileXYType[]): this;

Expand Down
4 changes: 4 additions & 0 deletions plugins/board/miniboard/MiniBoard.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ declare class MiniBoard extends Container {
destroy?: boolean
): this;

getAllChess(
out?: Phaser.GameObjects.GameObject[]
): Phaser.GameObjects.GameObject[];

setOrigin(
originX: number,
originY?: number
Expand Down

0 comments on commit c91cb85

Please sign in to comment.