vue3-photo-preview
Version:
34 lines (33 loc) • 728 B
TypeScript
export type ItemType = {
key: string;
src: string;
originRef?: HTMLElement | null;
intro?: string | null;
downloadName?: string | null;
};
export type OriginRectType = {
left: number;
top: number;
width: number;
height: number;
} | null;
export type UpdateItemType = (item: ItemType) => void;
export type RemoveItemType = (key: string) => void;
export type HandleShowType = (key: string) => void;
export declare enum ShowAnimateEnum {
None = 0,
In = 1,
Out = 2
}
export declare enum TouchTypeEnum {
Normal = 0,
X = 1,
Y = 2,
Scale = 3
}
export declare enum EdgeTypeEnum {
Left = 0,
Right = 1,
Top = 2,
Bottom = 3
}