BALKANGraph / FamilyTreeJS

Build family tree app with BALKAN FamilyTreeJS library. Family Tree also called a genealogy or a pedigree chart, is a chart representing family relationships in a conventional tree structure.
50 stars 16 forks source link

dynamic orientation change #123

Closed Ullas-A-2000 closed 2 weeks ago

Ullas-A-2000 commented 2 weeks ago

im using a custom template in balkan ive set custom node sizes and styles below is a small example

Screenshot 2024-06-15 at 1 15 55 PM
 if(rotateBtn){
            rotateBtn.addEventListener("click", function () {
                if(that.obj.config.orientation == 0){
                    data.orientation = 'left'
                    that.obj.setOrientation(3)
                    return;
                }
                data.orientation = 'nd'
                that.obj.setOrientation(0)
            });
  }

this code im using to change orientation , the orientation is changing but, also i want to change node sizes on orientation change how to do it

ZornitsaPesheva commented 2 weeks ago

Please edit this example to isolate the issue: https://code.balkan.app/org-chart-js/orientation#JS