UNPKG

1.59 kBTypeScriptView Raw
1import { EventEmitter, ElementRef } from '@angular/core';
2export declare type ColorMode = 'color' | 'c' | '1' | 'grayscale' | 'g' | '2' | 'presets' | 'p' | '3';
3export declare type AlphaChannel = 'enabled' | 'disabled' | 'always' | 'forced';
4export declare type BoundingRectangle = {
5 top: number;
6 bottom: number;
7 left: number;
8 right: number;
9 height: number;
10 width: number;
11};
12export declare type OutputFormat = 'auto' | 'hex' | 'rgba' | 'hsla';
13export declare function calculateAutoPositioning(elBounds: BoundingRectangle, triggerElBounds: BoundingRectangle): string;
14export declare function detectIE(): boolean | number;
15export declare class TextDirective {
16 rg: number;
17 text: any;
18 newValue: EventEmitter<any>;
19 inputChange(event: any): void;
20}
21export declare class SliderDirective {
22 private elRef;
23 private listenerMove;
24 private listenerStop;
25 rgX: number;
26 rgY: number;
27 slider: string;
28 dragEnd: EventEmitter<any>;
29 dragStart: EventEmitter<any>;
30 newValue: EventEmitter<any>;
31 mouseDown(event: any): void;
32 touchStart(event: any): void;
33 constructor(elRef: ElementRef);
34 private move;
35 private start;
36 private stop;
37 private getX;
38 private getY;
39 private setCursor;
40}
41export declare class SliderPosition {
42 h: number;
43 s: number;
44 v: number;
45 a: number;
46 constructor(h: number, s: number, v: number, a: number);
47}
48export declare class SliderDimension {
49 h: number;
50 s: number;
51 v: number;
52 a: number;
53 constructor(h: number, s: number, v: number, a: number);
54}