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

微信小程序节点标签文本配置 labelCfg的position有bug #163

Open
wenyiduo888 opened this issue May 13, 2023 · 0 comments
Open

Comments

@wenyiduo888
Copy link

  const model1 = {
    id: nodeid,
    labelCfg: {
      position: e.detail.value, // 类型为top   center 和bottom
    },
  };
  const node1 = this.graph.findById(nodeid);
  node1.update(model1);

依次切换top、center 和bottom三种位置,有时候top文本不显示 有时候bottom文本不显示 有时候center文本不显示。
还有时候文本会出现在circle节点里面,但又不是center的位置。
就是出现问题也没有啥规律。
请教如何解决??谢谢!!
下图是切换居中时显示:
image

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