mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-24 01:40:41 +02:00
support labelled arrows
This commit is contained in:
@@ -667,13 +667,8 @@ export const convertToExcalidrawElements = (
|
||||
if (!element) {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
isValidTextContainer(element) &&
|
||||
element?.label?.text &&
|
||||
(element.type === "rectangle" ||
|
||||
element.type === "ellipse" ||
|
||||
element.type === "diamond")
|
||||
) {
|
||||
if (isValidTextContainer(element) && element?.label?.text) {
|
||||
//@ts-ignore
|
||||
const elements = bindTextToContainer(element, element.label);
|
||||
res.push(...elements);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user