initial-data.ts 971 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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: 'start_0',
  10. type: 'start',
  11. meta: {
  12. position: { x: 0, y: 0 },
  13. },
  14. data: {
  15. title: 'Start',
  16. content: 'Start content',
  17. },
  18. },
  19. {
  20. id: 'node_0',
  21. type: 'custom',
  22. meta: {
  23. position: { x: 400, y: 0 },
  24. },
  25. data: {
  26. title: 'Custom',
  27. content: 'Custom node content',
  28. },
  29. },
  30. {
  31. id: 'end_0',
  32. type: 'end',
  33. meta: {
  34. position: { x: 800, y: 0 },
  35. },
  36. data: {
  37. title: 'End',
  38. content: 'End content',
  39. },
  40. },
  41. ],
  42. edges: [
  43. {
  44. sourceNodeID: 'start_0',
  45. targetNodeID: 'node_0',
  46. },
  47. {
  48. sourceNodeID: 'node_0',
  49. targetNodeID: 'end_0',
  50. },
  51. ],
  52. };