element-web/src/components/views/elements/effects/ICanvasEffect.ts

10 lines
278 B
TypeScript
Raw Normal View History

2020-10-21 18:58:54 +03:00
export interface ICanvasEffectConstructable {
new(options?: { [key: string]: any }): ICanvasEffect
}
export default interface ICanvasEffect {
2020-10-21 15:15:27 +03:00
start: (canvas: HTMLCanvasElement, timeout?: number) => Promise<void>,
stop: () => Promise<void>,
isRunning: boolean
}