rstacruz / kingraph

Plots family trees using JavaScript and Graphviz
439 stars 86 forks source link

Changing label styles #10

Open momack2 opened 5 years ago

momack2 commented 5 years ago

For printing, using tiny light-gray text for sub labels doesn't work well, but the configurable "styles" class currently only supports styling the title/box. You can manually change the font-point and color of the label on line 82 of render_graph.js (in the "renderPerson" function) to make these changes manually.

TODO: integrate this support into the styles function to allow passing these variables ('labelfontcolor', 'labelfontsize', etc) via classes.