border radius

This commit is contained in:
hamid zarghami
2026-04-29 12:17:19 +03:30
parent a4157fdfcc
commit c742ff3829
7 changed files with 59 additions and 10 deletions
@@ -19,6 +19,7 @@ type ViewerDataPage = {
stroke?: string;
strokeWidth?: number;
shapeType?: string;
borderRadius?: number;
imageUrl?: string;
videoUrl?: string;
linkUrl?: string;
@@ -93,6 +94,9 @@ export function transformViewerDataToPages(data: ViewerData): PageData[] {
if (obj.type === "rectangle" && obj.shapeType) {
baseObject.shapeType = obj.shapeType as EditorObject["shapeType"];
}
if (obj.type === "rectangle" && obj.borderRadius !== undefined) {
baseObject.borderRadius = obj.borderRadius;
}
if (obj.type === "image" && obj.imageUrl) {
baseObject.imageUrl = obj.imageUrl;