@ue-too/board / drawRulerLegacy
Function: drawRulerLegacy()
drawRulerLegacy(
context,topLeftCorner,topRightCorner,bottomLeftCorner,bottomRightCorner,alignCoordinateSystem,cameraZoomLevel):void
Defined in: packages/board/src/utils/drawing-utils.ts:232
Parameters
context
CanvasRenderingContext2D
topLeftCorner
Point
topRightCorner
Point
bottomLeftCorner
Point
bottomRightCorner
Point
alignCoordinateSystem
boolean
cameraZoomLevel
number
Returns
void
Description
Draws a ruler on the canvas. argument points are in world space