Skip to content

Commit 5b2e402

Browse files
committed
fix(build): remove background transparency references
1 parent 83b7ec4 commit 5b2e402

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/components/video-editor/VideoPlayback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ const VideoPlayback = forwardRef<VideoPlaybackRef, VideoPlaybackProps>(({
10431043

10441044
return (
10451045
<div className="relative rounded-sm overflow-hidden" style={{ width: '100%', aspectRatio: formatAspectRatioForCSS(aspectRatio, nativeAspectRatio) }}>
1046-
{/* Background layer - always render as DOM element with blur */}
1046+
{/* Background layer */}
10471047
<div
10481048
className="absolute inset-0 bg-cover bg-center"
10491049
style={{

src/components/video-editor/projectPersistence.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export const PROJECT_VERSION = 1;
2525

2626
export interface ProjectEditorState {
2727
wallpaper: string;
28-
backgroundTransparency: boolean;
2928
shadowIntensity: number;
3029
backgroundBlur: number;
3130
zoomMotionBlur: number;
@@ -260,9 +259,6 @@ export function normalizeProjectEditor(editor: Partial<ProjectEditorState>): Pro
260259

261260
return {
262261
wallpaper: typeof editor.wallpaper === "string" ? editor.wallpaper : WALLPAPER_PATHS[0],
263-
backgroundTransparency: typeof (editor as Partial<ProjectEditorState>).backgroundTransparency === "boolean"
264-
? (editor as Partial<ProjectEditorState>).backgroundTransparency as boolean
265-
: false,
266262
shadowIntensity: typeof editor.shadowIntensity === "number" ? editor.shadowIntensity : 0.67,
267263
backgroundBlur: normalizedBackgroundBlur,
268264
zoomMotionBlur: normalizedZoomMotionBlur,

src/lib/exporter/videoExporter.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type { ZoomRegion, CropRegion, TrimRegion, AnnotationRegion, SpeedRegion,
88
interface VideoExporterConfig extends ExportConfig {
99
videoUrl: string;
1010
wallpaper: string;
11-
backgroundTransparency?: boolean;
1211
zoomRegions: ZoomRegion[];
1312
trimRegions?: TrimRegion[];
1413
speedRegions?: SpeedRegion[];
@@ -68,7 +67,6 @@ export class VideoExporter {
6867
width: this.config.width,
6968
height: this.config.height,
7069
wallpaper: this.config.wallpaper,
71-
backgroundTransparency: this.config.backgroundTransparency,
7270
zoomRegions: this.config.zoomRegions,
7371
showShadow: this.config.showShadow,
7472
shadowIntensity: this.config.shadowIntensity,

0 commit comments

Comments
 (0)