Skip to content

@ue-too/board / index / drawPositionText

函式: drawPositionText() ​

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

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

參數 ​

context ​

CanvasRenderingContext2D

pos ​

Point

cameraZoomLevel ​

number

alignCoordinateSystem ​

boolean

offset ​

number = 20

color ​

string = 'red'

回傳 ​

void

Description ​

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

已棄用 ​