mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-23 09:21:00 +02:00
fix api and support individual shapes and text element
This commit is contained in:
@@ -38,21 +38,17 @@ export interface ImportedDataState {
|
||||
elements?:
|
||||
| readonly (
|
||||
| (ExcalidrawElement & {
|
||||
label?: [
|
||||
{ text: string } & MarkOptional<
|
||||
ElementConstructorOpts,
|
||||
"x" | "y"
|
||||
>,
|
||||
];
|
||||
label?: { text: string } & MarkOptional<
|
||||
ElementConstructorOpts,
|
||||
"x" | "y"
|
||||
>;
|
||||
})
|
||||
| {
|
||||
type: Exclude<ExcalidrawGenericElement["type"], "selection">;
|
||||
label?: [
|
||||
{ text: string } & MarkOptional<
|
||||
ElementConstructorOpts,
|
||||
"x" | "y"
|
||||
>,
|
||||
] &
|
||||
label?: { text: string } & MarkOptional<
|
||||
ElementConstructorOpts,
|
||||
"x" | "y"
|
||||
> &
|
||||
MarkOptional<ElementConstructorOpts, "x" | "y">;
|
||||
}
|
||||
)[]
|
||||
|
Reference in New Issue
Block a user