UNPKG

@ue-too/board

Version:
56 lines (55 loc) 2.16 kB
import type { Point } from "@ue-too/math"; import { Boundaries } from "../camera/utils/position"; /** * @description Draws a crosshair on the canvas. * @deprecated * * @category Board */ export declare function drawCrossHair(context: CanvasRenderingContext2D, pos: Point, cameraZoomLevel: number, alignCoordinateSystem: boolean, size: number, color?: string): void; /** * @description Draws a bounding box on the canvas. * @deprecated * * @category Board */ export declare function drawBoundingBox(context: CanvasRenderingContext2D, boundaries: Boundaries, alignCoordinateSystem: boolean): void; /** * @description Draws the axis of the board. * @deprecated * * @category Board */ export declare function drawAxis(context: CanvasRenderingContext2D, boundaries: Boundaries, zoomLevel: number, alignCoordinateSystem: boolean): void; /** * @description Draws the grid of the board. * argument points are in world space * @deprecated * * @category Board */ export declare function drawGrid(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 * @deprecated * * @category Board */ export declare function drawRulerLegacy(context: CanvasRenderingContext2D, topLeftCorner: Point, topRightCorner: Point, bottomLeftCorner: Point, bottomRightCorner: Point, alignCoordinateSystem: boolean, cameraZoomLevel: number): void; /** * @description Draws the position text on the canvas. * argument points are in world space * @deprecated * * @category Board */ export declare function drawPositionText(context: CanvasRenderingContext2D, pos: Point, cameraZoomLevel: number, alignCoordinateSystem: boolean, offset?: number, color?: string): void; /** * @description Draws a reference circle on the canvas. * argument points are in world space * @deprecated * * @category Board */ export declare function drawReferenceCircle(context: CanvasRenderingContext2D, pos: Point, alignCoordinateSystem: boolean): void;