ngx-color
Version:
A Collection of Color Pickers from Sketch, Photoshop, Chrome & more
32 lines (31 loc) • 1.36 kB
TypeScript
import { OnDestroy, OnInit } from '@angular/core';
import { Subject } from 'rxjs';
import * as i0 from "@angular/core";
export declare class CoordinatesDirective implements OnInit, OnDestroy {
private el;
coordinatesChange: Subject<{
x: number;
y: number;
top: number;
left: number;
containerWidth: number;
containerHeight: number;
$event: any;
}>;
private mousechange;
private mouseListening;
private sub?;
mousemove($event: Event, x: number, y: number, isTouch?: boolean): void;
mouseup(): void;
mousedown($event: Event, x: number, y: number, isTouch?: boolean): void;
ngOnInit(): void;
ngOnDestroy(): void;
handleChange(x: number, y: number, $event: Event, isTouch: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CoordinatesDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CoordinatesDirective, "[ngx-color-coordinates]", never, {}, { "coordinatesChange": "coordinatesChange"; }, never, never, false, never>;
}
export declare class CoordinatesModule {
static ɵfac: i0.ɵɵFactoryDeclaration<CoordinatesModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<CoordinatesModule, [typeof CoordinatesDirective], never, [typeof CoordinatesDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<CoordinatesModule>;
}