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

refactor(element): adjust node and edge style; add badge to BaseEdge #5806

Merged
merged 5 commits into from
Jun 5, 2024

Conversation

yvonneyx
Copy link
Contributor

@yvonneyx yvonneyx commented Jun 3, 2024

更改点:

  • 根据设计稿调整节点、边默认样式,修复走查问题
  • Label 支持用户指定背景具体尺寸,处理优先级:用户指定宽高 > 根据文字内容自动计算长宽
  • 节点中 icon 如果用户没有指定大小,将自动跟随 key 变化
  • 边上箭头默认适应 lineWidth
  • 内置边新增 Badge 图形
image image

@Aarebecca
Copy link
Contributor

ci 好像挂了

@yvonneyx yvonneyx reopened this Jun 4, 2024
@yvonneyx yvonneyx changed the title refactor: adjust node style refactor(element): adjust node and edge style; add badge to BaseEdge Jun 4, 2024
@yvonneyx yvonneyx requested a review from Aarebecca June 4, 2024 09:37
packages/g6/src/elements/edges/base-edge.ts Show resolved Hide resolved
packages/g6/src/elements/edges/base-edge.ts Outdated Show resolved Hide resolved
packages/g6/src/utils/node.ts Outdated Show resolved Hide resolved
@yvonneyx yvonneyx merged commit 472fa89 into v5 Jun 5, 2024
3 checks passed
@yvonneyx yvonneyx deleted the refactor/node-style branch June 5, 2024 03:25
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

Successfully merging this pull request may close these issues.

2 participants