initial implementation

This commit is contained in:
zsviczian
2025-09-21 19:09:57 +00:00
parent f55ecb96cc
commit 14ab68af54
22 changed files with 438 additions and 97 deletions

View File

@@ -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;
}
}