style: add missing trailing commas (#9387)

This commit is contained in:
Kagami Sascha Rosylight 2022-12-22 16:01:59 +09:00 committed by GitHub
parent 9314ceae36
commit f1fd1d2585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 320 additions and 320 deletions

View file

@ -29,7 +29,7 @@ export function physics(container: HTMLElement) {
height: containerHeight,
background: 'transparent', // transparent to hide
wireframeBackground: 'transparent', // transparent to hide
}
},
});
// Disable to hide debug
@ -43,7 +43,7 @@ export function physics(container: HTMLElement) {
const ground = Matter.Bodies.rectangle(containerCenterX, containerHeight + (groundThickness / 2), containerWidth, groundThickness, {
isStatic: true,
restitution: 0.1,
friction: 2
friction: 2,
});
//const wallRight = Matter.Bodies.rectangle(window.innerWidth+50, window.innerHeight/2, 100, window.innerHeight, wallopts);
@ -68,8 +68,8 @@ export function physics(container: HTMLElement) {
top + (objEl.offsetHeight / 2),
Math.max(objEl.offsetWidth, objEl.offsetHeight) / 2,
{
restitution: 0.5
}
restitution: 0.5,
},
);
} else {
const style = window.getComputedStyle(objEl);
@ -80,8 +80,8 @@ export function physics(container: HTMLElement) {
objEl.offsetHeight,
{
chamfer: { radius: parseInt(style.borderRadius || '0', 10) },
restitution: 0.5
}
restitution: 0.5,
},
);
}
objEl.id = obj.id.toString();
@ -98,9 +98,9 @@ export function physics(container: HTMLElement) {
constraint: {
stiffness: 0.1,
render: {
visible: false
}
}
visible: false,
},
},
});
Matter.World.add(engine.world, mouseConstraint);
@ -147,6 +147,6 @@ export function physics(container: HTMLElement) {
stop = true;
Matter.Runner.stop(runner);
window.clearInterval(intervalId);
}
},
};
}