style: add missing trailing commas (#9387)
This commit is contained in:
parent
9314ceae36
commit
f1fd1d2585
79 changed files with 320 additions and 320 deletions
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue