UNPKG

@drizm/ng-whiteboard

Version:

A Canvas component for Angular which supports free drawing.

14 lines (13 loc) 747 B
import { CanvasWhiteboardShape } from './canvas-whiteboard-shape'; import { CanvasWhiteboardShapeOptions } from './canvas-whiteboard-shape-options'; import { CanvasWhiteboardPoint } from '../canvas-whiteboard-point.model'; import { CanvasWhiteboardUpdate } from '../canvas-whiteboard-update.model'; export declare class RectangleShape extends CanvasWhiteboardShape { width: number; height: number; constructor(positionPoint?: CanvasWhiteboardPoint, options?: CanvasWhiteboardShapeOptions, width?: number, height?: number); getShapeName(): string; draw(context: CanvasRenderingContext2D): void; drawPreview(context: CanvasRenderingContext2D): void; onUpdateReceived(update: CanvasWhiteboardUpdate): void; }