Skip to content

Commit fd8ed79

Browse files
committed
Disabled image smoothing for canvas
1 parent a1dbb90 commit fd8ed79

File tree

1 file changed

+3
-0
lines changed
  • client/src/pages/tabletop-page/tabletop-component/table-canvas

1 file changed

+3
-0
lines changed

client/src/pages/tabletop-page/tabletop-component/table-canvas/table-canvas.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ export default class TableCanvas extends SuperComponent<ITableCanvas>{
4141
this.fogCanvas = document.createElement("canvas") as HTMLCanvasElement;
4242
this.gridCanvas = document.createElement("canvas") as HTMLCanvasElement;
4343
this.fogctx = this.fogCanvas.getContext("2d");
44+
this.fogctx.imageSmoothingEnabled = false;
4445
this.imgctx = this.canvas.getContext("2d");
46+
this.imgctx.imageSmoothingEnabled = false;
4547
this.gridctx = this.gridCanvas.getContext("2d");
48+
this.gridctx.imageSmoothingEnabled = false;
4649
this.tabletop = document.querySelector("tabletop-component");
4750
this.renderGrid = false;
4851
this.gridSize = 32;

0 commit comments

Comments
 (0)