feat: support adding multiple library items on canvas (#5116)
This commit is contained in:
@ -59,9 +59,10 @@ export class API {
|
||||
};
|
||||
|
||||
static createElement = <
|
||||
T extends Exclude<ExcalidrawElement["type"], "selection">,
|
||||
T extends Exclude<ExcalidrawElement["type"], "selection"> = "rectangle",
|
||||
>({
|
||||
type,
|
||||
// @ts-ignore
|
||||
type = "rectangle",
|
||||
id,
|
||||
x = 0,
|
||||
y = x,
|
||||
@ -71,7 +72,7 @@ export class API {
|
||||
groupIds = [],
|
||||
...rest
|
||||
}: {
|
||||
type: T;
|
||||
type?: T;
|
||||
x?: number;
|
||||
y?: number;
|
||||
height?: number;
|
||||
|
Reference in New Issue
Block a user