mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
support arrow bindings via start and end in api
This commit is contained in:
parent
0449cccc39
commit
d8c901e0c1
4 changed files with 114 additions and 12 deletions
|
@ -1,5 +1,7 @@
|
|||
import {
|
||||
ExcalidrawBindableElement,
|
||||
ExcalidrawElement,
|
||||
ExcalidrawLinearElement,
|
||||
FontFamilyValues,
|
||||
TextAlign,
|
||||
VerticalAlign,
|
||||
|
@ -71,6 +73,22 @@ export interface ImportedDataState {
|
|||
type: "text";
|
||||
text: string;
|
||||
} & ElementConstructorOpts)
|
||||
| ({
|
||||
type: "arrow";
|
||||
label?: {
|
||||
text: string;
|
||||
fontSize?: number;
|
||||
fontFamily?: FontFamilyValues;
|
||||
textAlign?: TextAlign;
|
||||
verticalAlign?: VerticalAlign;
|
||||
} & MarkOptional<ElementConstructorOpts, "x" | "y">;
|
||||
start?: {
|
||||
type: ExcalidrawBindableElement["type"] & ElementConstructorOpts;
|
||||
};
|
||||
end?: {
|
||||
type: ExcalidrawBindableElement["type"] & ElementConstructorOpts;
|
||||
};
|
||||
} & ElementConstructorOpts)
|
||||
)[]
|
||||
| null;
|
||||
appState?: Readonly<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue