mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: keep customData when converting to ExcalidrawElement (#7656)
* feat: keep customData when converting to ExcalidrawElement (#7654) * docs: add changelog for keeping customData when converting to ExcalidrawElement
This commit is contained in:
parent
0513b647ec
commit
def1df2c68
11 changed files with 482 additions and 0 deletions
|
@ -68,6 +68,7 @@ export type ElementConstructorOpts = MarkOptional<
|
|||
| "roundness"
|
||||
| "locked"
|
||||
| "opacity"
|
||||
| "customData"
|
||||
>;
|
||||
|
||||
const _newElementBase = <T extends ExcalidrawElement>(
|
||||
|
@ -121,6 +122,7 @@ const _newElementBase = <T extends ExcalidrawElement>(
|
|||
updated: getUpdatedTimestamp(),
|
||||
link,
|
||||
locked,
|
||||
customData: rest.customData,
|
||||
};
|
||||
return element;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue