Skip to content

fix(graph): edge endpoints follow symbol shape. close #10563#21677

Open
AstrorEnales wants to merge 1 commit into
apache:masterfrom
AstrorEnales:fix-10563
Open

fix(graph): edge endpoints follow symbol shape. close #10563#21677
AstrorEnales wants to merge 1 commit into
apache:masterfrom
AstrorEnales:fix-10563

Conversation

@AstrorEnales

Copy link
Copy Markdown

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

This PR improves the edge adjustment in graph series for different symbol shapes. Previously, the endpoints of edges were positioned on a circle around the actual node symbol. This resulted in edge endpoints sometimes being hidden behind the symbol and sometimes too far away. The new logic uses exact formulas for some symbol types and intersections for more complex paths. For data image symbols the rectangular outline of the symbol is used.

Fixed issues

Details

Before: What was the problem?

Endpoints of edges were positioned on a circle around the actual node symbol. This resulted in edge endpoints sometimes being hidden behind the symbol and sometimes too far away.

before

After: How does it behave after the fixing?

The new logic uses exact formulas for some symbol types and intersections for more complex paths. For data image symbols the rectangular outline of the symbol is used.

after

Document Info

One of the following should be checked.

  • This PR doesn't relate to document changes
  • The document should be updated later
  • The document changes have been made in apache/echarts-doc#xxx

Misc

Related test cases or examples to use the new APIs

  • test/graph-edge-shape.html
  • test/ut/spec/series/graph/nodeShapeHelper.test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant