initialElements.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import type { Edge, Node } from "@vue-flow/core";
  2. const position = { x: 0, y: 0 };
  3. const nodeType = "process";
  4. const edgeType = "animation";
  5. export const initialNodes: Node[] = [
  6. {
  7. id: "1",
  8. position,
  9. type: nodeType
  10. },
  11. {
  12. id: "2",
  13. position,
  14. type: nodeType
  15. },
  16. {
  17. id: "2a",
  18. position,
  19. type: nodeType
  20. },
  21. {
  22. id: "2b",
  23. position,
  24. type: nodeType
  25. },
  26. {
  27. id: "2c",
  28. position,
  29. type: nodeType
  30. },
  31. {
  32. id: "2d",
  33. position,
  34. type: nodeType
  35. },
  36. {
  37. id: "3",
  38. position,
  39. type: nodeType
  40. },
  41. {
  42. id: "4",
  43. position,
  44. type: nodeType
  45. },
  46. {
  47. id: "5",
  48. position,
  49. type: nodeType
  50. },
  51. {
  52. id: "6",
  53. position,
  54. type: nodeType
  55. },
  56. {
  57. id: "7",
  58. position,
  59. type: nodeType
  60. }
  61. ];
  62. export const initialEdges: Edge[] = [
  63. { id: "e1-2", source: "1", target: "2", type: edgeType, animated: true },
  64. { id: "e1-3", source: "1", target: "3", type: edgeType, animated: true },
  65. { id: "e2-2a", source: "2", target: "2a", type: edgeType, animated: true },
  66. { id: "e2-2b", source: "2", target: "2b", type: edgeType, animated: true },
  67. { id: "e2-2c", source: "2", target: "2c", type: edgeType, animated: true },
  68. { id: "e2c-2d", source: "2c", target: "2d", type: edgeType, animated: true },
  69. { id: "e3-7", source: "3", target: "4", type: edgeType, animated: true },
  70. { id: "e4-5", source: "4", target: "5", type: edgeType, animated: true },
  71. { id: "e5-6", source: "5", target: "6", type: edgeType, animated: true },
  72. { id: "e5-7", source: "5", target: "7", type: edgeType, animated: true }
  73. ];