antvis / F6

F6 is a graph visualization engine which provides quick and smooth operations on mobile devices.
https://f6.antv.vision
MIT License
133 stars 21 forks source link

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

Open wenyiduo888 opened 1 year ago

wenyiduo888 commented 1 year ago
  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