@alyle/ui
Version:
Minimal Design, a set of components for Angular
70 lines (69 loc) • 3.42 kB
TypeScript
import { OnDestroy, OnInit, AfterViewInit } from '@angular/core';
import { ThemeVariables, StyleCollection, LyClasses, StyleTemplate, StyleRenderer, WithStyles, SelectorsFn } from '@alyle/ui';
import { _LyCropperAreaBase, _LyImageCropperBase } from './_image-cropper-base';
import * as i0 from "@angular/core";
export interface LyImageCropperTheme {
/** Styles for Image Cropper Component */
root?: StyleCollection<((classes: LyClasses<typeof STYLES>) => StyleTemplate)> | ((classes: LyClasses<typeof STYLES>) => StyleTemplate);
}
export interface LyImageCropperVariables {
cropper?: LyImageCropperTheme;
}
export declare const STYLES: (theme: ThemeVariables & LyImageCropperVariables, selectors: SelectorsFn) => {
$name: string;
$priority: number;
root: () => (_className: string) => string;
cropperContainer: (_className: string) => string;
imgContainer: (_className: string) => string;
overlay: (_className: string) => string;
area: (_className: string) => string;
grid: (_className: string) => string;
showGrid: () => (_className: string) => string;
isPointerUp: any;
resizer: (_className: string) => string;
defaultContent: (_className: string) => string;
};
/**
* @dynamic
*/
export declare class LyCropperArea extends _LyCropperAreaBase implements WithStyles, OnDestroy {
readonly sRenderer: StyleRenderer;
readonly classes: LyClasses<(theme: ThemeVariables & LyImageCropperVariables, selectors: SelectorsFn) => {
$name: string;
$priority: number;
root: () => (_className: string) => string;
cropperContainer: (_className: string) => string;
imgContainer: (_className: string) => string;
overlay: (_className: string) => string;
area: (_className: string) => string;
grid: (_className: string) => string;
showGrid: () => (_className: string) => string;
isPointerUp: any;
resizer: (_className: string) => string;
defaultContent: (_className: string) => string;
}>;
round: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<LyCropperArea, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<LyCropperArea, "ly-cropper-area", ["lyCropperArea"], { "round": { "alias": "round"; "required": false; }; }, {}, never, never, true, never>;
static ngAcceptInputType_round: unknown;
}
export declare class LyImageCropper extends _LyImageCropperBase implements OnInit, AfterViewInit, OnDestroy {
readonly sRenderer: StyleRenderer;
readonly classes: LyClasses<(theme: ThemeVariables & LyImageCropperVariables, selectors: SelectorsFn) => {
$name: string;
$priority: number;
root: () => (_className: string) => string;
cropperContainer: (_className: string) => string;
imgContainer: (_className: string) => string;
overlay: (_className: string) => string;
area: (_className: string) => string;
grid: (_className: string) => string;
showGrid: () => (_className: string) => string;
isPointerUp: any;
resizer: (_className: string) => string;
defaultContent: (_className: string) => string;
}>;
areaGridActiveCssClass: string;
static ɵfac: i0.ɵɵFactoryDeclaration<LyImageCropper, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<LyImageCropper, "ly-img-cropper, ly-image-cropper", never, {}, {}, never, ["*"], true, never>;
}