mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: cleanup legacy element.rawText
(obsidian) (#9203)
This commit is contained in:
parent
ecef5d12f4
commit
68578556ff
1 changed files with 6 additions and 0 deletions
|
@ -238,6 +238,8 @@ const restoreElementWithProperties = <
|
|||
const restoreElement = (
|
||||
element: Exclude<ExcalidrawElement, ExcalidrawSelectionElement>,
|
||||
): typeof element | null => {
|
||||
element = { ...element };
|
||||
|
||||
// NOTE (mtolmacs): This is a temporary check to detect extremely large
|
||||
// element position or sizing
|
||||
if (
|
||||
|
@ -255,6 +257,10 @@ const restoreElement = (
|
|||
|
||||
switch (element.type) {
|
||||
case "text":
|
||||
// temp fix: cleanup legacy obsidian-excalidraw attribute else it'll
|
||||
// conflict when porting between the apps
|
||||
delete (element as any).rawText;
|
||||
|
||||
let fontSize = element.fontSize;
|
||||
let fontFamily = element.fontFamily;
|
||||
if ("font" in element) {
|
||||
|
|
Loading…
Add table
Reference in a new issue