mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-25 02:10:38 +02:00
support arrow bindings via start and end in api
This commit is contained in:
@@ -993,10 +993,8 @@ export const bindTextToContainer = (
|
||||
let container;
|
||||
if (containerProps.type === "arrow") {
|
||||
container = newLinearElement({
|
||||
//@ts-ignore
|
||||
x: 0,
|
||||
//@ts-ignore
|
||||
y: 0,
|
||||
width: containerProps.width || 300,
|
||||
height: containerProps.height || 24,
|
||||
//@ts-ignore
|
||||
type: containerProps.type,
|
||||
//@ts-ignore,
|
||||
@@ -1011,8 +1009,6 @@ export const bindTextToContainer = (
|
||||
} else {
|
||||
//@ts-ignore
|
||||
container = newElement({
|
||||
x: 0,
|
||||
y: 0,
|
||||
...containerProps,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user