initial-data.ts 862 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { WorkflowJSON } from '@flowgram.ai/free-layout-editor';
  6. export const initialData: WorkflowJSON = {
  7. nodes: [
  8. {
  9. id: '1',
  10. type: 'start',
  11. meta: {
  12. position: { x: 0, y: 0 },
  13. },
  14. },
  15. {
  16. id: '2',
  17. type: 'custom',
  18. meta: {
  19. position: { x: 110, y: 0 },
  20. },
  21. },
  22. {
  23. id: '3',
  24. type: 'custom',
  25. meta: {
  26. position: { x: 220, y: 0 },
  27. },
  28. },
  29. {
  30. id: '4',
  31. type: 'end',
  32. meta: {
  33. position: { x: 330, y: 0 },
  34. },
  35. },
  36. ],
  37. edges: [
  38. {
  39. sourceNodeID: '1',
  40. targetNodeID: '2',
  41. },
  42. {
  43. sourceNodeID: '2',
  44. targetNodeID: '3',
  45. },
  46. {
  47. sourceNodeID: '3',
  48. targetNodeID: '4',
  49. },
  50. ],
  51. };