Skip to content

@ue-too/board / index / drawCrossHair

函式: drawCrossHair() ​

drawCrossHair(context, pos, cameraZoomLevel, alignCoordinateSystem, size, color): void

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

參數 ​

context ​

CanvasRenderingContext2D

pos ​

Point

cameraZoomLevel ​

number

alignCoordinateSystem ​

boolean

size ​

number

color ​

string = 'red'

回傳 ​

void

Description ​

Draws a crosshair on the canvas.

已棄用 ​