blob: d20e25330be24d59cd5bbe06972b818da9f967d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import type { EffectPass } from "@/lib/effects/types";
import type { RetimeConfig } from "@/lib/timeline";
import { BaseNode } from "./base-node";
export type BlurBackgroundNodeParams = {
mediaId: string;
url: string;
file: File;
mediaType: "video" | "image";
duration: number;
timeOffset: number;
trimStart: number;
trimEnd: number;
retime?: RetimeConfig;
blurIntensity: number;
};
export type BackdropSource = {
source: CanvasImageSource;
width: number;
height: number;
};
export interface ResolvedBlurBackgroundNodeState {
backdropSource: BackdropSource;
passes: EffectPass[];
}
export class BlurBackgroundNode extends BaseNode<
BlurBackgroundNodeParams,
ResolvedBlurBackgroundNodeState
> {}
|