|
|
|
@ -254,6 +254,14 @@ const restoreElement = (
|
|
|
|
|
status: element.status || "pending",
|
|
|
|
|
fileId: element.fileId,
|
|
|
|
|
scale: element.scale || [1, 1],
|
|
|
|
|
crop: element.crop ?? null,
|
|
|
|
|
// TODO: restore properly
|
|
|
|
|
widthAtCreation: element.widthAtCreation,
|
|
|
|
|
heightAtCreation: element.heightAtCreation,
|
|
|
|
|
naturalWidth: element.naturalWidth,
|
|
|
|
|
naturalHeight: element.naturalHeight,
|
|
|
|
|
resizedFactorX: element.resizedFactorX,
|
|
|
|
|
resizedFactorY: element.resizedFactorY,
|
|
|
|
|
});
|
|
|
|
|
case "line":
|
|
|
|
|
// @ts-ignore LEGACY type
|
|
|
|
|