fix wire state bug + smooth rendering

This commit is contained in:
sfja 2026-06-11 14:48:15 +02:00
parent e57b364090
commit 15cd36509f
3 changed files with 5 additions and 4 deletions

View File

@ -332,8 +332,7 @@ export class Board {
for (const [oldState, newState] of replacedStates) { for (const [oldState, newState] of replacedStates) {
this.stateWireMap this.stateWireMap
.get(newState)! .set(newState, [...(this.stateWireMap.get(newState) ?? []), ...(this.stateWireMap.get(oldState) ?? [])])
.push(...this.stateWireMap.get(oldState)!);
this.stateWireMap.delete(oldState); this.stateWireMap.delete(oldState);
} }

View File

@ -9,7 +9,9 @@ export class Renderer {
private offset: V2, private offset: V2,
) { ) {
this.c = this.canvas.getContext("2d")!; this.c = this.canvas.getContext("2d")!;
this.c.imageSmoothingEnabled = false; // this.c.imageSmoothingEnabled = false;
this.c.imageSmoothingEnabled = true;
this.c.imageSmoothingQuality ="high"
} }
clear() { clear() {

View File

@ -81,7 +81,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
image-rendering: pixelated; /* image-rendering: pixelated; */
} }
} }