Skip to content

Commit

Permalink
fix: area displays size on inspect (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
amyspark-ng authored May 24, 2024
1 parent b42d966 commit d8e5187
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kaboom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3855,6 +3855,10 @@ export default (gopt: KaboomOpt = {}): KaboomCtx => {
return area.transform(game.cam.transform);
}
},

inspect() {
return `(${(this.area.scale.x).toFixed(1)}, ${(this.area.scale.y).toFixed(1)})`;
}
};
}

Expand Down

0 comments on commit d8e5187

Please sign in to comment.