mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix
This commit is contained in:
parent
59e8bf498d
commit
9c63b0124c
2 changed files with 2 additions and 3 deletions
|
@ -121,8 +121,8 @@ const restoreElementWithProperties = <
|
||||||
y: extra.y ?? element.y ?? 0,
|
y: extra.y ?? element.y ?? 0,
|
||||||
strokeColor: element.strokeColor || oc.black,
|
strokeColor: element.strokeColor || oc.black,
|
||||||
backgroundColor: element.backgroundColor || "transparent",
|
backgroundColor: element.backgroundColor || "transparent",
|
||||||
width: element.width || 0,
|
width: element.width || 100,
|
||||||
height: element.height || 0,
|
height: element.height || 100,
|
||||||
seed: element.seed ?? 1,
|
seed: element.seed ?? 1,
|
||||||
groupIds: element.groupIds ?? [],
|
groupIds: element.groupIds ?? [],
|
||||||
roundness: element.roundness
|
roundness: element.roundness
|
||||||
|
|
|
@ -670,7 +670,6 @@ export const convertToExcalidrawElements = (
|
||||||
const elements = bindTextToContainer(element, textElement);
|
const elements = bindTextToContainer(element, textElement);
|
||||||
res.push(...elements);
|
res.push(...elements);
|
||||||
} else {
|
} else {
|
||||||
delete element.children;
|
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
res.push(element);
|
res.push(element);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue