-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
217 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import { Examples, Flow } from "@behave-graph/flow"; | ||
import { GraphJSON } from "@behave-graph/core"; | ||
import rawGraph from "./graph.json" | ||
import 'reactflow/dist/style.css'; | ||
import './index.css'; | ||
|
||
import "reactflow/dist/style.css"; | ||
import "./index.css"; | ||
import { GraphJSON } from '@behave-graph/core'; | ||
import { Examples, Flow } from '@behave-graph/flow'; | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
|
||
const graph = rawGraph as GraphJSON | ||
import rawGraph from './graph.json'; | ||
|
||
const graph = rawGraph as GraphJSON; | ||
|
||
const root = ReactDOM.createRoot( | ||
document.getElementById("root") as HTMLElement | ||
document.getElementById('root') as HTMLElement | ||
); | ||
|
||
import Branch from "../../../graphs/core/flow/Branch.json"; | ||
import Delay from "../../../graphs/core/time/Delay.json"; | ||
import HelloWorld from "../../../graphs/core//HelloWorld.json"; | ||
import Polynomial from "../../../graphs/core/logic/Polynomial.json"; | ||
import SetGet from "../../../graphs/core/variables/SetGet.json"; | ||
import HelloWorld from '../../../graphs/core//HelloWorld.json'; | ||
import Branch from '../../../graphs/core/flow/Branch.json'; | ||
import Polynomial from '../../../graphs/core/logic/Polynomial.json'; | ||
import Delay from '../../../graphs/core/time/Delay.json'; | ||
import SetGet from '../../../graphs/core/variables/SetGet.json'; | ||
|
||
// TODO remove when json types fixed in behave-graph | ||
const examples: Examples = { | ||
branch: Branch as unknown as GraphJSON, | ||
delay: Delay as unknown as GraphJSON, | ||
helloWorld: HelloWorld as unknown as GraphJSON, | ||
polynomial: Polynomial as unknown as GraphJSON, | ||
setGet: SetGet as unknown as GraphJSON, | ||
setGet: SetGet as unknown as GraphJSON | ||
} as Record<string, GraphJSON>; | ||
|
||
root.render( | ||
<React.StrictMode> | ||
<Flow graph={graph} examples={examples}/> | ||
<Flow graph={graph} examples={examples} /> | ||
</React.StrictMode> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.