IOPaint/lama_cleaner/app/src/event.ts

18 lines
329 B
TypeScript
Raw Normal View History

2022-09-15 16:21:27 +02:00
import mitt from 'mitt'
export const EVENT_PROMPT = 'prompt'
2022-12-10 15:06:15 +01:00
export const EVENT_CUSTOM_MASK = 'custom_mask'
export interface CustomMaskEventData {
mask: File
}
2022-09-15 16:21:27 +02:00
2022-12-10 15:06:15 +01:00
export const EVENT_PAINT_BY_EXAMPLE = 'paint_by_example'
export interface PaintByExampleEventData {
image: File
}
2022-09-15 16:21:27 +02:00
const emitter = mitt()
export default emitter