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

Better support for element opacity in Preview and Ranking #2649

Closed
mbastian opened this issue Sep 27, 2022 · 0 comments
Closed

Better support for element opacity in Preview and Ranking #2649

mbastian opened this issue Sep 27, 2022 · 0 comments
Assignees
Labels
Appearance Preview Wishlist New features (not a bug)
Milestone

Comments

@mbastian
Copy link
Member

The element opacity support is somewhat inconsistent. This is too bad as opacity is useful when rendering very large graphs. There are a number of low hanging fruits

  • Preview
    • Add opacity to the custom color picker for Node/Edge/Label.
    • Edge opacity in PDF does not use the "original" color
  • Appearance/Ranking
    • The color gradient component doesn't allow for opacity configuration

Limitations

  • The "Overview" visualization doesn't support opacity. This should be addressed separately in the new viz engine.
  • When alpha == 0 on edges, the edge color on Overview switches to source/target color. This is a bug due to the fact we used alpha = 0 as a flag. So for ranking, one should avoid 0 for now.
  • The color chooser on Appearance/Partition and Appearance/Unique doesn't support opacity setting. I've reported this issue to the library author, let's see.
  • The Edit panel doesn't yet support opacity setting. Something to follow-up on.

Notes

  • The node border opacity, as well as the label outline opacity are inherited from their parent. I don't really see too much of a use-case having the border transparent while the rest not. But it would be feasible if needed.
  • There is also a property for edge opacity in Preview. In the case, the edge original color already has an alpha < 1, we will multiply the two alphas.
@mbastian mbastian added Wishlist New features (not a bug) Preview Appearance labels Sep 27, 2022
@mbastian mbastian added this to the 0.10.0 milestone Sep 27, 2022
@mbastian mbastian self-assigned this Sep 27, 2022
mbastian added a commit that referenced this issue Sep 27, 2022
* Serialize dependant colors with opacity for custom colors

* Fix edge opacity calculation

* Edge opacity

* Enable colors with opacity in ranking

* Fix color serialization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Appearance Preview Wishlist New features (not a bug)
Projects
None yet
Development

No branches or pull requests

1 participant