From dacab931901a9d66c182bf7dcbcd22d73144a23f Mon Sep 17 00:00:00 2001 From: na2na <49822810+na2na-p@users.noreply.github.com> Date: Wed, 22 Jun 2022 23:30:16 +0900 Subject: [PATCH] =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E7=BE=A9=E3=81=AE=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/maze/render-maze.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/maze/render-maze.ts b/src/modules/maze/render-maze.ts index 4ea8795..7189fdb 100644 --- a/src/modules/maze/render-maze.ts +++ b/src/modules/maze/render-maze.ts @@ -1,5 +1,5 @@ import * as gen from 'random-seed'; -import { createCanvas, NodeCanvasRenderingContext2D } from 'canvas'; +import { createCanvas, CanvasRenderingContext2D } from 'canvas'; import { CellType } from './maze'; import { themes } from './themes'; @@ -27,7 +27,7 @@ export function renderMaze(seed: string, maze: CellType[][]) { ctx.fillRect(margin / 2, margin / 2, imageSize - ((margin / 2) * 2), imageSize - ((margin / 2) * 2)); // Draw - function drawCell(ctx: NodeCanvasRenderingContext2D, x: number, y: number, size: number, left: boolean, right: boolean, top: boolean, bottom: boolean, mark: boolean) { + function drawCell(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, left: boolean, right: boolean, top: boolean, bottom: boolean, mark: boolean) { const wallThickness = size / 6; const margin = size / 6; const markerMargin = size / 3;