mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
support id as well for elements
This commit is contained in:
parent
b783b822d6
commit
75cfe54b15
2 changed files with 15 additions and 4 deletions
|
@ -187,6 +187,7 @@ export default function App({ appTitle, useCustom, customArgs }: AppProps) {
|
|||
[
|
||||
{
|
||||
type: "rectangle",
|
||||
id: "rect-1",
|
||||
fillStyle: "hachure",
|
||||
strokeWidth: 1,
|
||||
strokeStyle: "solid",
|
||||
|
@ -203,6 +204,14 @@ export default function App({ appTitle, useCustom, customArgs }: AppProps) {
|
|||
value: 32,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
type: "arrow",
|
||||
x: -160,
|
||||
y: 300,
|
||||
start: { type: "rectangle", width: 300, height: 300 },
|
||||
end: { type: "ellipse" },
|
||||
},
|
||||
],
|
||||
null,
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue