mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
50 lines
871 B
TypeScript
50 lines
871 B
TypeScript
import { WorkflowJSON } from '@flowgram.ai/free-layout-editor';
|
|
|
|
export const initialData: WorkflowJSON = {
|
|
nodes: [
|
|
{
|
|
id: 'start_0',
|
|
type: 'start',
|
|
meta: {
|
|
position: { x: 0, y: 0 },
|
|
},
|
|
data: {
|
|
title: 'Start',
|
|
content: 'Start content',
|
|
},
|
|
},
|
|
{
|
|
id: 'node_0',
|
|
type: 'custom',
|
|
meta: {
|
|
position: { x: 400, y: 0 },
|
|
},
|
|
data: {
|
|
title: 'Custom',
|
|
content: 'Custom node content',
|
|
},
|
|
},
|
|
{
|
|
id: 'end_0',
|
|
type: 'end',
|
|
meta: {
|
|
position: { x: 800, y: 0 },
|
|
},
|
|
data: {
|
|
title: 'End',
|
|
content: 'End content',
|
|
},
|
|
},
|
|
],
|
|
edges: [
|
|
{
|
|
sourceNodeID: 'start_0',
|
|
targetNodeID: 'node_0',
|
|
},
|
|
{
|
|
sourceNodeID: 'node_0',
|
|
targetNodeID: 'end_0',
|
|
},
|
|
],
|
|
};
|