border radius
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user