const sep = username === this.username ? 60 : 20;
const offset = (cards.length - 3/2) * sep / 2;
let x = 227.5 + offset - 180 * Math.sin(angle);
- const y = username === this.username ? 450 : 210 + 120 * Math.cos(angle);
+ const y = username === this.username ? 500 : 210 + 120 * Math.cos(angle);
const width = username === this.username ? 90 : 45;
const height = username === this.username ? 140 : 70;
for (const {card, image} of cards) {
const sep = username === this.username ? 60 : 20;
const offset = (cards.length - 3/2) * sep / 2;
let x = 227.5 + offset - 180 * Math.sin(angle);
- const y = username === this.username ? 450 : 210 + 120 * Math.cos(angle);
+ const y = username === this.username ? 500 : 210 + 120 * Math.cos(angle);
const width = username === this.username ? 90 : 45;
const height = username === this.username ? 140 : 70;
for (const {card, image} of cards) {
image.classList.remove("my-card");
image.setAttribute("x", x);
image.setAttribute("y", y);
+ image.setAttribute("width", 45);
+ image.setAttribute("height", 70);
x -= 20;
}
x = 120.0;