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

Edge类型问题 #53

Open
jiangshanmeta opened this issue Dec 13, 2021 · 0 comments
Open

Edge类型问题 #53

jiangshanmeta opened this issue Dec 13, 2021 · 0 comments

Comments

@jiangshanmeta
Copy link

当前使用的版本:0.1.19

我是在x6(版本:1.28.1)中使用到这个库的。

x6中定义一条边的source和target允许使用 TerminalCellData ,这样可以定义连接桩。

  interface TerminalCellData extends SetCellTerminalArgs {
      cell: string;
      port?: string;
  }

而layout库里定义一条边,source和target只能为string

export interface Edge {
    source: string;
    target: string;
}

期望两边类型能够统一。

ps: 我暂时是通过断言绕过去类型问题,运行时不报错。

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