Docs
The template link object.
let familyTree = new FamilyTree2(document.getElementById('tree'));let link = familyTree.template.link;
The template link stroke color.
let familyTree = new FamilyTree2(document.getElementById('tree'));familyTree.template.link.stroke = "red";
The template link stroke width.
let familyTree = new FamilyTree2(document.getElementById('tree'));familyTree.template.link.strokeWidth = 3;
let familyTree = new FamilyTree2(document.getElementById('tree'));familyTree.template.link.svg = function (link) { let strokeDasharray = ''; let stroke = link.stroke; if (link.toNode.familyMember.flag) { strokeDasharray = 'stroke-dasharray="4"'; stroke = 'blue'; } return `<path ${strokeDasharray} style="fill: none; stroke: ${stroke}; stroke-width: ${link.strokeWidth}px;" marker-start="url(#rounded_start)" marker-end="url(#rounded_end)"></path>`;};
Generated using TypeDoc
The template link object.