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

10 lines
278 B
TypeScript
Raw Normal View History

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