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

Overlapping edges labels hidden #2770

Closed
harshaktg opened this issue Oct 13, 2022 · 3 comments
Closed

Overlapping edges labels hidden #2770

harshaktg opened this issue Oct 13, 2022 · 3 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@harshaktg
Copy link

Describe the bug

When there are two edges in the graph, when two overlaps each other and both of them has labels, the edge which is last added, only that label is visible

Your Example Website or App

https://codesandbox.io/s/youthful-bash-3oqdm0?file=/src/app.tsx

Steps to Reproduce the Bug or Issue

  1. Visit the sandbox, the bug is visible

Expected behavior

As a user, I need to see both the labels when the edges overlap. Or atleast have an option to control the opacity and make both visible.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 13, 2022

👋 @harshaktg

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@NewByVector
Copy link
Contributor

you can set text area fill attr as transparent,like this:

graph.addEdge({
  source: rect2,
  target: rect1,
  label: "world",
  attrs: {
    rect: {
      fill: 'transparent'
    }
  }
});

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Oct 13, 2022
@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 15, 2023

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Oct 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

2 participants