Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

feat: update VideoCanvasHandle interface and refine mockup feature retrieval functions

CristianOlivera1ef210cbc484d
diff --git a/types/editor.types.ts b/types/editor.types.ts
index ca25d2f..56b5fd6 100644
--- a/types/editor.types.ts
+++ b/types/editor.types.ts
@@ -43,7 +43,7 @@ export interface EditorState {
export interface VideoCanvasHandle {
getExportCanvas: () => HTMLCanvasElement | null;
-drawFrame: (highQuality?: boolean) => Promise<void>;
+ drawFrame: (highQuality?: boolean) => Promise<void>;
getPreviewContainer: () => HTMLDivElement | null;
clearAllSelection: () => { multiIds: string[]; videoSelected: boolean };
restoreSelectionState: (state: { multiIds: string[]; videoSelected: boolean }) => void;
diff --git a/types/mockup.types.ts b/types/mockup.types.ts
index 7482629..ebca609 100644
--- a/types/mockup.types.ts
+++ b/types/mockup.types.ts
@@ -67,12 +67,10 @@ export const DEFAULT_MOCKUP_FEATURES: MockupFeatures = {
hasHeaderOpacity: false,
};
-// Helper to get mockup features with fallback to default
export function getMockupFeatures(mockup: Mockup | undefined): MockupFeatures {
return mockup?.features ?? DEFAULT_MOCKUP_FEATURES;
}
-// Helper to get the initial config for a mockup
export function getMockupDefaultConfig(mockup: Mockup | undefined): MockupConfig {
return {
...DEFAULT_MOCKUP_CONFIG,