antvis / antvis/F6

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

Open
#163 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
147
Forks
24
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/antvis/F6/assets/16623075/9485d882-23ca-4c80-b488-66b6ed854a97)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in the WeChat mini-program using the shown node.update call and switch labelCfg.position among top, center, and bottom. Trace the node-label positioning entry point for these values; done means each position consistently displays the text in the requested location without placing it unpredictably inside the circle.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.