support ids, clean up code and move the api related stuff to transform.ts

This commit is contained in:
Aakansha Doshi 2023-05-24 17:12:26 +05:30
parent da8e97ad14
commit 985318e960
11 changed files with 337 additions and 250 deletions

View file

@ -207,9 +207,9 @@ export default function App({ appTitle, useCustom, customArgs }: AppProps) {
{
type: "arrow",
x: -160,
y: 300,
start: { type: "rectangle", width: 300, height: 300 },
x: 300,
y: 150,
start: { type: "rectangle", id: "rect-1" },
end: { type: "ellipse" },
},
],