mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
make fileId mandatory for image and export convertToExcalidrawElements
This commit is contained in:
parent
a6b389ca62
commit
756b924518
4 changed files with 6 additions and 3 deletions
|
@ -32,6 +32,7 @@ import {
|
|||
ExcalidrawLinearElement,
|
||||
ExcalidrawSelectionElement,
|
||||
ExcalidrawTextElement,
|
||||
FileId,
|
||||
FontFamilyValues,
|
||||
TextAlign,
|
||||
VerticalAlign,
|
||||
|
@ -154,6 +155,7 @@ export type ExcalidrawProgrammaticElement =
|
|||
type: Extract<ExcalidrawImageElement["type"], "image">;
|
||||
x: number;
|
||||
y: number;
|
||||
fileId: FileId;
|
||||
} & Partial<ExcalidrawImageElement>);
|
||||
|
||||
export interface ExcalidrawProgrammaticAPI {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue