Skip to content

@ue-too/board / index / drawRulerLegacy

函式: drawRulerLegacy() ​

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

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

參數 ​

context ​

CanvasRenderingContext2D

topLeftCorner ​

Point

topRightCorner ​

Point

bottomLeftCorner ​

Point

bottomRightCorner ​

Point

alignCoordinateSystem ​

boolean

cameraZoomLevel ​

number

回傳 ​

void

Description ​

Draws a ruler on the canvas. argument points are in world space

已棄用 ​