Skip to content

Commit

Permalink
center
Browse files Browse the repository at this point in the history
  • Loading branch information
guiltygyoza committed Sep 16, 2024
1 parent 659aab0 commit da94e68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/grid/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const render = () => {
if (position) {
const div = document.createElement("div");
div.style.position = "absolute";
div.style.left = `${centerX + position.x * 50 + 5}px`; // Center the circle
div.style.top = `${centerY - position.y * 50 + 5}px`; // Center the circle
div.style.left = `${centerX + position.x * 50 + 2}px`; // Center the circle
div.style.top = `${centerY - position.y * 50 + 2}px`; // Center the circle
div.style.width = "40px";
div.style.height = "40px";
div.style.backgroundColor = color;
Expand Down

0 comments on commit da94e68

Please sign in to comment.