Skip to content

Commit

Permalink
Deploying to gh-pages from @ d7566d3 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
SimYunSup committed Jan 8, 2025
1 parent aa30c66 commit 33d8e34
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
Binary file modified _framework/DotNetDevLottery.pdb.gz
Binary file not shown.
Binary file modified _framework/DotNetDevLottery.wasm
Binary file not shown.
Binary file modified _framework/DotNetDevLottery.wasm.br
Binary file not shown.
Binary file modified _framework/DotNetDevLottery.wasm.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions _framework/blazor.boot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mainAssemblyName": "DotNetDevLottery",
"resources": {
"hash": "sha256-+n3ZFOVIj1HDVq9iOgORxUKMi5/j57HM8NobKachEz0=",
"hash": "sha256-EJfUKBVFwj6GX37YtROHYcz6DAp0nyC79NsJTrUdD9A=",
"jsModuleNative": {
"dotnet.native.8.0.11.n1sf6xr5tz.js": "sha256-VdKq87/z5NIxZKmuM+fv38XF+RcEb/bg3jVBwQSfwP4="
},
Expand All @@ -18,7 +18,7 @@
},
"assembly": {
"BouncyCastle.Cryptography.wasm": "sha256-tZxUz5R8To9wugB18BSeGE89A5lQ0IsnaCl5AkgKfnY=",
"DotNetDevLottery.wasm": "sha256-B8KnkwBr/bpklmBuY38yt2vfavCYhg5YiaklrgimEtA=",
"DotNetDevLottery.wasm": "sha256-cQAqudUApDQj5CcfFxRyq2+NrJ3HpOuPRSHceGvRUjA=",
"Enums.NET.wasm": "sha256-pzL+j6B+0G6CnbVAo8dMnTeNxQqDDE6ubZNVym2/P7M=",
"ICSharpCode.SharpZipLib.wasm": "sha256-N+B+aaiZzE1fHJnfuESjuouC3agz168HHdDcBj9kCPQ=",
"MathNet.Numerics.wasm": "sha256-u8KPSyaPGoTkqmgb/133wPiFm81PWN6s85SKoxuhiWY=",
Expand Down
Binary file modified _framework/blazor.boot.json.br
Binary file not shown.
Binary file modified _framework/blazor.boot.json.gz
Binary file not shown.
10 changes: 5 additions & 5 deletions js/Components/MachineAnimation.razor.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async function defineDrawMachineAnimation({
size
});
const topCollider = sphere.find((part) => part.angle === Math.PI * 3 / 2).collider;
const renderedBallCount = count > 20 ? count : 20;
const renderedBallCount = count;
let balls = addBallsToEngine({
engine,
rapier,
Expand Down Expand Up @@ -335,9 +335,9 @@ var Ball = class _Ball {
this.#element.classList.add("ball");
this.#size = size;
this.#ballSize = ballSize;
this.#element.style.setProperty(_Ball.BALL_SIZE_PROPERTY_NAME, String(this.#ballSize * 2));
this.#element.style.setProperty(_Ball.BALL_SIZE_PROPERTY_NAME, String(this.#ballSize));
wrapperElement.appendChild(this.#element);
const rapierBallSize = coords.toRapier.length(ballSize);
const rapierBallSize = coords.toRapier.length(ballSize / 2);
const bodyDesc = new rapier.RigidBodyDesc(rapier.RigidBodyType.Dynamic).setTranslation(
...coords.toRapier.vector(size.wrapper / 2 + index, size.wrapper / 2 + index)
).setCcdEnabled(true);
Expand All @@ -350,7 +350,7 @@ var Ball = class _Ball {
return false;
}
const [x, y] = coords.fromBody.vector(this.#body);
this.#element.style.transform = `translate(${x - this.#ballSize}px, ${y - this.#ballSize}px) scale(1)`;
this.#element.style.transform = `translate(${x - this.#ballSize / 2}px, ${y - this.#ballSize / 2}px) scale(1)`;
return true;
}
destroy() {
Expand Down Expand Up @@ -397,7 +397,7 @@ function addBallsToEngine(option) {
element
} = option;
const balls = Array.from({ length: count }, (_, index) => {
const BALL_SIZE = size.machine / (count * 0.75);
const BALL_SIZE = size.machine / (Math.sqrt(count) * 1.5 + 2);
const ball = new Ball({
engine,
rapier,
Expand Down

0 comments on commit 33d8e34

Please sign in to comment.