|
@@ -92,7 +92,8 @@ const repairBinding = (binding: PointBinding | null) => {
|
|
};
|
|
};
|
|
|
|
|
|
const restoreElementWithProperties = <
|
|
const restoreElementWithProperties = <
|
|
- T extends Required<Omit<ExcalidrawElement, "customData">> & {
|
|
|
|
|
|
+ T extends Required<Omit<ExcalidrawElement, "subtype" | "customData">> & {
|
|
|
|
+ subtype?: ExcalidrawElement["subtype"];
|
|
customData?: ExcalidrawElement["customData"];
|
|
customData?: ExcalidrawElement["customData"];
|
|
/** @deprecated */
|
|
/** @deprecated */
|
|
boundElementIds?: readonly ExcalidrawElement["id"][];
|
|
boundElementIds?: readonly ExcalidrawElement["id"][];
|
|
@@ -158,6 +159,9 @@ const restoreElementWithProperties = <
|
|
locked: element.locked ?? false,
|
|
locked: element.locked ?? false,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ if ("subtype" in element) {
|
|
|
|
+ base.subtype = element.subtype;
|
|
|
|
+ }
|
|
if ("customData" in element) {
|
|
if ("customData" in element) {
|
|
base.customData = element.customData;
|
|
base.customData = element.customData;
|
|
}
|
|
}
|