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

rtl mode - arabic #93

Closed zeraati closed 6 months ago

zeraati commented 7 months ago

What change is necessary for the direction to change from right to left (Arabic)?

ZornitsaPesheva commented 7 months ago

Here is a Code demo: https://code.balkan.app/family-tree-js/rtl#JS

zeraati commented 6 months ago

image It is good for long texts, but for short texts it takes a lot of space from the side

zeraati commented 6 months ago

I use this:

image

it worked

ZornitsaPesheva commented 6 months ago

Yes, you can change text-anchor as you need it.

zeraati commented 6 months ago

image How can I move three points to the end and change its size and color?

ZornitsaPesheva commented 6 months ago

You need to change the last two values in the matrix here:

OrgChart.templates.ana.nodeMenuButton =

https://balkan.app/OrgChartJS/Docs/PredefinedTemplates#anaTemplate Click on "Get the source code of ana" to see the code