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.
55 stars 16 forks source link

On exporting in PDF the tree doesn't show all nodes #9

Closed daopapp closed 2 years ago

daopapp commented 2 years ago

When i try to export the tree, they doesn't show all nodes on PDF printing. I know that for UX it's better the tree collapse for a better view. But when i'm exporting, the system should show all nodes. There is a way to configure this?

ZornitsaPesheva commented 2 years ago

Could you please isolate the issue in Code? https://code.balkan.app/orgchartjs/getting-started#JS

daopapp commented 2 years ago

Hi, i've created this code to show the issue: https://code.balkan.app/exporting-pdf#JS

ZornitsaPesheva commented 2 years ago

You'd like the export to show the Samson's parents also? This is not possible, as they can't be shown in the chart also? You can see only one partner's parents at time.

daopapp commented 2 years ago

Yes, i know that on use o familyTree it's complicated to show all nodes on window. But on export it's important to show all nodes(parents and sons) of entire tree.

ZornitsaPesheva commented 2 years ago

What you can do is to export twice. Export, expand other parents and then export again. But you can't show all nodes in one page.

daopapp commented 2 years ago

ok, sad about that.