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

设置combo的labelCfg的位置为position:'center',再设置refY:50。标签位置还是居中显示??? #2587

Closed
ahouvideo opened this issue Jan 22, 2021 · 4 comments

Comments

@ahouvideo
Copy link

combos: [
{
id: "a",
padding:[10, 20, 10, 20],
label: "comboA",

      labelCfg: {
        position: "center",
        refY:50,
        //offset:[300,20,0,20],
        style: {
          fill:  'red',
          fontSize: 16,
        },
      },
 ]
@Yanyan-Wang
Copy link
Contributor

center 意味着在中心,refX refY 在 position: 'center' 时无效,和节点的 label 设置 position: 'center' 时 offset 无效一样。combo 为 circle 类型时,refX 适用于 position 为 left 或 right,refY 适用于 position 为 top 或 bottom。不同类型 combo 会略有不同。这块文档需要补充一下

@ahouvideo
Copy link
Author

好的感谢解答

@Yanyan-Wang
Copy link
Contributor

那先关掉咯

@ahouvideo
Copy link
Author

ahouvideo commented Jan 25, 2021 via email

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

2 participants