intentful
Version:
Create Custom Skills with less headache
36 lines (35 loc) • 1.49 kB
TypeScript
import { LabeledRequestHandler } from '../../../skill/models';
import { Calculable } from '../../../types';
import { Command, CommandModel, CommandProps } from '../../commands';
import { Filter, FilterModel, FilterProps } from '../../filters';
import { Color, Dimension, ImageAlign, Scale, Source } from '../../interfaces';
import { APLBaseComponentModel, APLBaseComponentProps, APLComponent } from '../component';
export interface APLImageModel extends APLBaseComponentModel {
sources?: Source[];
source?: Source;
scale?: Scale;
align?: ImageAlign;
borderRadius?: Calculable<Dimension>;
overlayColor?: Calculable<Color>;
filters?: FilterModel[];
overlayGradient?: Calculable<string>;
onLoad?: Command<CommandModel, CommandProps>[];
onFail?: Command<CommandModel, CommandProps>[];
}
export interface APLImageProps extends APLBaseComponentProps {
sources?: Source[];
source?: Source;
scale?: Scale;
align?: ImageAlign;
borderRadius?: Calculable<Dimension>;
overlayColor?: Calculable<Color>;
filters?: Filter<FilterModel, FilterProps>[];
overlayGradient?: Calculable<string>;
onLoad?: Command<CommandModel, CommandProps>[];
onFail?: Command<CommandModel, CommandProps>[];
}
export declare class APLImage extends APLComponent<APLImageModel, APLImageProps> {
constructor(props: APLImageProps);
componentSpecificModel(): APLImageModel;
componentSpecificRequestHandlers(): LabeledRequestHandler[];
}