initial-data.ts 871 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { WorkflowJSON } from '@flowgram.ai/free-layout-editor';
  2. export const initialData: WorkflowJSON = {
  3. nodes: [
  4. {
  5. id: 'start_0',
  6. type: 'start',
  7. meta: {
  8. position: { x: 0, y: 0 },
  9. },
  10. data: {
  11. title: 'Start',
  12. content: 'Start content',
  13. },
  14. },
  15. {
  16. id: 'node_0',
  17. type: 'custom',
  18. meta: {
  19. position: { x: 400, y: 0 },
  20. },
  21. data: {
  22. title: 'Custom',
  23. content: 'Custom node content',
  24. },
  25. },
  26. {
  27. id: 'end_0',
  28. type: 'end',
  29. meta: {
  30. position: { x: 800, y: 0 },
  31. },
  32. data: {
  33. title: 'End',
  34. content: 'End content',
  35. },
  36. },
  37. ],
  38. edges: [
  39. {
  40. sourceNodeID: 'start_0',
  41. targetNodeID: 'node_0',
  42. },
  43. {
  44. sourceNodeID: 'node_0',
  45. targetNodeID: 'end_0',
  46. },
  47. ],
  48. };