Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dagre布局上层某个节点连接到多个下层节点时,计算出的节点位置会有偏差 #216

Open
NewAwesome opened this issue Apr 11, 2024 · 0 comments

Comments

@NewAwesome
Copy link

复现方式

节点、边数据

data6 = {
  return {
    nodes: [
      {
        id: "1",
        data: {
          name: "alps_file1"
        }
      },
      {
        id: "1-1",
        data: {
          name: "alps_file2"
        }
      },
      {
        id: "1-2",
        data: {
          name: "alps_file3"
        }
      },
      {
        id: "1-3",
        data: {
          name: "sql_file1"
        }
      },
      {
        id: "2-1",
        data: {
          name: "sql_file2"
        }
      },
      {
        id: "2-2",
        data: {
          name: "feature_etl_1"
        }
      },
      {
        id: "2-3",
        data: {
          name: "feature_etl_1"
        }
      }
    ],
    edges: [
      {
        id: "e1",
        data: {},
        source: "1",
        target: "1-1"
      },
      {
        id: "e2",
        data: {},
        source: "1",
        target: "1-2"
      },
      {
        id: "e3",
        data: {},
        source: "1",
        target: "1-3"
      },
      {
        id: "e4",
        data: {},
        source: "1-1",
        target: "2-1"
      },
      {
        id: "e5",
        data: {},
        source: "1-2",
        target: "2-2"
      },
      {
        id: "e6",
        data: {},
        source: "1-3",
        target: "2-3"
      },
      {
        id: "7",
        data: {},
        source: "1-3",
        target: "2-2"
      }
    ]
  };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant