8000 Component | Graph: More Link Particle Flow and Fit View controls by rokotyan · Pull Request #25 · ExaForce/unovis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Component | Graph: More Link Particle Flow and Fit View controls #25

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

rokotyan
Copy link
@rokotyan rokotyan commented Apr 8, 2025
  • Link Particle Flow size and animation duration can now be configured per link.
  • Adding new linkFlowParticleSpeed property allowing set particle speed in pixels/s.
  • Making Fit View padding and alignment configurable.
Screen.Recording.2025-04-08.at.9.45.48.AM.mp4
  • Using the actual link path for flow animation gives much better transitions when data or layout changes and doesn't seem to have a negative effect on performance.
Screen.Recording.2025-04-08.at.9.48.52.AM.mp4
  • Updating existing dev examples and docs
image image

rokotyan and others added 8 commits March 19, 2025 13:47
- Changed `linkFlowAnimDuration` and `linkFlowParticleSize` to use `NumericAccessor` for better flexibility.
- Updated related calculations in the `_onLinkFlowTimerFrame` and `updateLinks` functions to accommodate the new accessor type.
…n with animation duration and particle size

- Added `linkFlowAnimDuration` and `linkFlowParticleSize` properties to `CustomGraphLink` type for improved customization of link animations.
- Updated example implementation to utilize the new properties for better visual representation of link flows.
- Added `linkFlowParticleSpeed` property to `GraphConfigInterface` for improved control over link flow animations.
- Updated animation duration calculation in the graph component to consider particle speed, allowing for more dynamic link flow behavior.
- New CSS props: --vis-graph-link-flow-opacity
…padding

- Added `fitViewPadding` property to `GraphConfigInterface` to allow for customizable padding when fitting the graph to its container.
- Updated the `bleed` method to utilize `fitViewPadding` for dynamic padding adjustments based on configuration.
- Added `GraphFitViewAlignment` enum to define alignment options (Center, Top, Bottom, Left, Right).
- Updated `GraphConfigInterface` to include `fitViewAlign` property with a default value.
- Modified `_fit` and `_getTransform` methods to utilize the new alignment options for fitting the graph view.
- Adjusted `fitView` method to accept alignment parameter for enhanced flexibility.
- Introduced state management for `fitViewAlignment` to allow users to select alignment options for graph fitting.
- Added a dropdown for selecting alignment, utilizing the `GraphFitViewAlignment` enum.
- Updated the graph component to pass the selected alignment and padding to the fitting logic.
This give a way better transitions when data or layout changes, and doesn't seem to have a too negative effect on performance
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.

1 participant
0