UNPKG

@drizm/ng-whiteboard

Version:

A Canvas component for Angular which supports free drawing.

24 lines (23 loc) 913 B
import { EventEmitter, OnInit, ElementRef } from '@angular/core'; export declare class CanvasWhiteboardColorPickerComponent implements OnInit { private elementRef; previewText: string; readonly selectedColor: string; canvas: ElementRef; readonly showColorPicker: boolean; private _context; toggleColorPicker: EventEmitter<boolean>; colorSelected: EventEmitter<string>; secondaryColorSelected: EventEmitter<string>; closeOnExternalClick(event: any): void; constructor(elementRef: ElementRef); /** * Initialize the canvas drawing context. If we have an aspect ratio set up, the canvas will resize * according to the aspect ratio. */ ngOnInit(): void; createColorPalette(): void; doToggleColorPicker(event: Event | null): void; determineColorFromCanvas(event: any): string; selectColor(color: string): void; }