Skip to content

@ue-too/board / drawGrid

Function: drawGrid()

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

Defined in: packages/board/src/utils/drawing-utils.ts:144

Parameters

context

CanvasRenderingContext2D

topLeftCorner

Point

topRightCorner

Point

bottomLeftCorner

Point

bottomRightCorner

Point

alignCoordinateSystem

boolean

cameraZoomLevel

number

Returns

void

Description

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

Deprecated