issues
search
pegasystems
/
constellation-ui-gallery
This open-source repository provides a collection of ready-to-use and customizable Constellation DX components. Use this resource to gain inspiration, best practices, and a solid foundation for implementing custom components.
https://pegasystems.github.io/constellation-ui-gallery/
Apache License 2.0
30
stars
22
forks
source link
Improve network diagram - fix positioning of the element
#47
Closed
ricmars
closed
5 months ago
ricmars
commented
5 months ago
fix config.json to be more explicit around required values
added new examples of diagram in storybook
improve storybook documentation of the parameters
fix bug with the hardcoded DP - now use the value passed as parameter
make the node transparent background to see the edges
make each node max-width of 10rem so that they are perfectly aligned vertically and all have the same width
links will now be truncated at 9rem if too long
fix bug where diagram got stale - moved the initialization of the dagre graph inside the getLayoutedElements function
fix calculation in getLayoutedElements to use the x and y returned by dagre
no longer hardcode the zoom level - instead use fitView to recalculate the diagram
use ReactFlowProvider provider