- 
                Notifications
    
You must be signed in to change notification settings  - Fork 44
 
fix(Visualization): Initial node isn't always centered #1010
fix(Visualization): Initial node isn't always centered #1010
Conversation
          Codecov Report
 @@            Coverage Diff             @@
##             main    #1010      +/-   ##
==========================================
- Coverage   43.00%   42.75%   -0.26%     
==========================================
  Files          48       48              
  Lines        1465     1483      +18     
  Branches      315      323       +8     
==========================================
+ Hits          630      634       +4     
- Misses        793      805      +12     
- Partials       42       44       +2     
 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.  | 
    
| 
           @javierlopezdeancos can you check both warnings from sonarcloud?  | 
    
| 
           Kudos, SonarCloud Quality Gate passed!     
 
  | 
    
| 
           I think we need @kahboom or @mmelko to take a look at this, this is beyond what I fear to touch the frontend at this point :) Thank you @javierlopezdeancos !  | 
    
| 
           Don't worry @Delawen, I'll wait for your suggestions!  | 
    
| 
           thank you @javierlopezdeancos for your contribution, this looks good to me :)  | 
    
| 
           A pleasure to contribute, I will try to do it regularly  | 
    
* fix: (Visualization): center initial node * fix: (Visualization): fix remove condition is redundant with previously checked one * fix: (Visualization): remove duplicated import path * fix: set ref with an element type defined Co-authored-by: Javier Lopez de Ancos <[email protected]>
…#1010) * fix: (Visualization): center initial node * fix: (Visualization): fix remove condition is redundant with previously checked one * fix: (Visualization): remove duplicated import path * fix: set ref with an element type defined Co-authored-by: Javier Lopez de Ancos <[email protected]>
…#1010) * fix: (Visualization): center initial node * fix: (Visualization): fix remove condition is redundant with previously checked one * fix: (Visualization): remove duplicated import path * fix: set ref with an element type defined Co-authored-by: Javier Lopez de Ancos <[email protected]>
…-archive#1010)" This reverts commit a408a13.
…#1010) * fix: (Visualization): center initial node * fix: (Visualization): fix remove condition is redundant with previously checked one * fix: (Visualization): remove duplicated import path * fix: set ref with an element type defined Co-authored-by: Javier Lopez de Ancos <[email protected]>
…chive#1139) * Revert "fix(Visualization): Initial node isn't always centered (kaoto-archive#1010)" This reverts commit a408a13. * fix(Visualisation): tweak centering of the initial node fix kaoto-archive#1096








This PR fix and Close: #952
Summary of changes
useEffectto detect if nodes only have the initial "ADD A STEP" node to set their position in the React Flow viewportIf user switch between horizontal/vertical flow, the position should be re calculated in the
useEffectScreenshots