initial-data.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import { WorkflowJSON } from '@flowgram.ai/free-layout-editor';
  2. export const initialData: WorkflowJSON = {
  3. nodes: [
  4. {
  5. id: '1',
  6. type: 'custom',
  7. meta: {
  8. position: { x: 0, y: 0 },
  9. },
  10. },
  11. {
  12. id: '2',
  13. type: 'custom',
  14. meta: {
  15. position: { x: 400, y: -200 },
  16. },
  17. },
  18. {
  19. id: '3',
  20. type: 'custom',
  21. meta: {
  22. position: { x: 400, y: 0 },
  23. },
  24. },
  25. {
  26. id: '4',
  27. type: 'custom',
  28. meta: {
  29. position: { x: 400, y: 200 },
  30. },
  31. },
  32. {
  33. id: '5',
  34. type: 'custom',
  35. meta: {
  36. position: { x: 800, y: 0 },
  37. },
  38. },
  39. ],
  40. edges: [
  41. {
  42. sourceNodeID: '1',
  43. targetNodeID: '2',
  44. },
  45. {
  46. sourceNodeID: '1',
  47. targetNodeID: '3',
  48. },
  49. {
  50. sourceNodeID: '1',
  51. targetNodeID: '4',
  52. },
  53. {
  54. sourceNodeID: '2',
  55. targetNodeID: '5',
  56. },
  57. {
  58. sourceNodeID: '3',
  59. targetNodeID: '5',
  60. },
  61. {
  62. sourceNodeID: '4',
  63. targetNodeID: '5',
  64. },
  65. ],
  66. };