38 lines
533 B
TypeScript
38 lines
533 B
TypeScript
export default {
|
|
flowProps: {
|
|
minZoom: 0.25,
|
|
maxZoom: 4,
|
|
fitView: true,
|
|
nodes: [
|
|
{
|
|
id: '1',
|
|
data: { label: '1' },
|
|
position: { x: 0, y: 0 },
|
|
type: 'input'
|
|
},
|
|
{
|
|
id: '2',
|
|
data: { label: '2' },
|
|
position: { x: -100, y: 100 }
|
|
},
|
|
{
|
|
id: '3',
|
|
data: { label: '3' },
|
|
position: { x: 100, y: 100 }
|
|
}
|
|
],
|
|
edges: [
|
|
{
|
|
id: 'first-edge',
|
|
source: '1',
|
|
target: '2'
|
|
},
|
|
{
|
|
id: 'second-edge',
|
|
source: '1',
|
|
target: '3'
|
|
}
|
|
]
|
|
}
|
|
} satisfies FlowConfig;
|