Skip to content

@ue-too/board / index / drawGrid

函式: drawGrid() ​

drawGrid(context, topLeftCorner, topRightCorner, bottomLeftCorner, bottomRightCorner, alignCoordinateSystem, cameraZoomLevel): void

定義於: packages/board/src/utils/drawing-utils.ts:144

參數 ​

context ​

CanvasRenderingContext2D

topLeftCorner ​

Point

topRightCorner ​

Point

bottomLeftCorner ​

Point

bottomRightCorner ​

Point

alignCoordinateSystem ​

boolean

cameraZoomLevel ​

number

回傳 ​

void

Description ​

Draws the grid of the board. argument points are in world space

已棄用 ​