fix: use alphafilter on grid

This commit is contained in:
trafficlunar 2025-01-17 23:00:14 +00:00
parent feb82f2b17
commit dcf4cea0c4
2 changed files with 2 additions and 4 deletions

View file

@ -299,8 +299,6 @@ function Canvas() {
}, [tool, holdingAlt, scale, mouseCoords, blocks, setSelectedBlock, zoom]);
const onKeyDown = (e: KeyboardEvent) => {
console.log(e.key);
switch (e.key) {
case " ": // Space
setDragging(true);
@ -426,7 +424,7 @@ function Canvas() {
</Container>
{settings.grid && (
<Container>
<Container filters={[new PIXI.AlphaFilter(0.1)]}>
<Grid stageSize={stageSize} coords={coords} scale={scale} isDark={isDark} />
</Container>
)}

View file

@ -12,7 +12,7 @@ function Grid({ stageSize, coords, scale, isDark }: Props) {
<Graphics
draw={(g) => {
g.clear();
g.lineStyle(1, isDark ? 0xffffff : 0x000000, 0.1);
g.lineStyle(1, isDark ? 0xffffff : 0x000000);
const tileSize = 16 * scale;