From 58af78b1d39e30e586a7d3708e113a72ef3a7bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Sun, 17 Sep 2023 19:34:11 +0200 Subject: [PATCH] prettied phaserCanvas.ts --- front/components/PartitionVisualizer/PhaserCanvas.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front/components/PartitionVisualizer/PhaserCanvas.tsx b/front/components/PartitionVisualizer/PhaserCanvas.tsx index f2026cb..50c1b56 100644 --- a/front/components/PartitionVisualizer/PhaserCanvas.tsx +++ b/front/components/PartitionVisualizer/PhaserCanvas.tsx @@ -75,12 +75,11 @@ const getPianoScene = ( if (this.nbTextureToload > 0) return; this.partition = this.add.image(0, 0, 'partition').setOrigin(0, 0); this.cameras.main.setBounds(0, 0, this.partition.width, this.partition.height); - console.log('canvas', this.partition.width, this.partition.height); const dims = this.partition.getBounds(); // base ref normal cursor is 350px by 30px this.cursor = this.add - .rectangle(0, 0, dims.height * 30 / 276, dims.height, 0x31ef8c, 0.5) + .rectangle(0, 0, (dims.height * 30) / 276, dims.height, 0x31ef8c, 0.5) .setOrigin(0, 0); this.cameras.main.startFollow(this.cursor, true, 0.05, 0.05);