Skip to content

@ue-too/board / drawPositionText

Function: drawPositionText()

drawPositionText(context, pos, cameraZoomLevel, alignCoordinateSystem, offset, color): void

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

Parameters

context

CanvasRenderingContext2D

pos

Point

cameraZoomLevel

number

alignCoordinateSystem

boolean

offset

number = 20

color

string = 'red'

Returns

void

Description

Draws the position text on the canvas. argument points are in world space

Deprecated