@niuee/board
Version:
<h1 align="center"> board </h1> <p align="center"> board supercharges your html canvas element giving it the capabilities to pan, zoom, rotate, and much more. </p> <p align="center"> <a href="https://www.npmjs.com/package/@niuee/board">
56 lines (55 loc) • 2.14 kB
TypeScript
import { Point } from "../../util/misc";
import { Boundaries } from "../../board-camera";
/**
* @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 drawRuler(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;