background page

This commit is contained in:
hamid zarghami
2026-05-06 15:25:26 +03:30
parent 25822b05a6
commit f42fc17025
6 changed files with 42 additions and 24 deletions
@@ -4,6 +4,9 @@ import type { PageData } from "../types";
type ViewerDataPage = {
id: string;
name: string;
backgroundType?: "color" | "image";
backgroundColor?: string;
backgroundImageUrl?: string;
objects: Array<{
id: string;
type: string;
@@ -126,6 +129,9 @@ export function transformViewerDataToPages(data: ViewerData): PageData[] {
width: 794,
height: 1123,
elements: objects,
backgroundType: page.backgroundType,
backgroundColor: page.backgroundColor,
backgroundImageUrl: page.backgroundImageUrl,
};
});
}