mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-25 02:10:38 +02:00
initial implementation
This commit is contained in:
@@ -2056,11 +2056,15 @@ export class ElementsDelta implements DeltaContainer<SceneElementsMap> {
|
||||
}
|
||||
}
|
||||
|
||||
private static stripIrrelevantProps(
|
||||
partial: Partial<OrderedExcalidrawElement>,
|
||||
): ElementPartial {
|
||||
const { id, updated, ...strippedPartial } = partial;
|
||||
private static stripIrrelevantProps(partial: ElementPartial): ElementPartial {
|
||||
// ElementPartial already excludes id, updated, seed; defensively strip if present
|
||||
const {
|
||||
id: _id,
|
||||
updated: _updated,
|
||||
seed: _seed,
|
||||
...strippedPartial
|
||||
} = partial as any;
|
||||
|
||||
return strippedPartial;
|
||||
return strippedPartial as ElementPartial;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user