2
0

mock-lines.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { FlowTransitionLineEnum } from "@flowgram.ai/document"
  6. export const mockDivergeLine1 = {
  7. type: FlowTransitionLineEnum.DIVERGE_LINE,
  8. from: {x: 140, y: 212},
  9. to: {x: 0, y: 235},
  10. }
  11. export const mockDivergeLine2 = {
  12. type: FlowTransitionLineEnum.DIVERGE_LINE,
  13. from: {x: 140, y: 212},
  14. to: {x: 156, y: 232},
  15. }
  16. export const mockDivergeLine3 = {
  17. type: FlowTransitionLineEnum.DIVERGE_LINE,
  18. from: {x: 140, y: 212},
  19. to: {x: 141, y: 332},
  20. }
  21. export const mockMergeLine3 = {
  22. type: FlowTransitionLineEnum.MERGE_LINE,
  23. from: {x: 140, y: 212},
  24. to: {x: 0, y: 235},
  25. }
  26. export const mockMergeLine4 = {
  27. type: FlowTransitionLineEnum.MERGE_LINE,
  28. from: {x: 140, y: 212},
  29. to: {x: 141, y: 335},
  30. }
  31. export const mockMergeLine5 = {
  32. type: FlowTransitionLineEnum.MERGE_LINE,
  33. from: {x: 140, y: 212},
  34. to: {x: 150, y: 335},
  35. }
  36. export const noRadiusLine = {
  37. type: FlowTransitionLineEnum.DIVERGE_LINE,
  38. from: {x: 140, y: 212},
  39. to: {x: 141, y: 213},
  40. }
  41. export const noTypeLine = {
  42. type: undefined,
  43. from: {x: 140, y: 212},
  44. to: {x: 0, y: 312},
  45. }