function updateBranchColor(tree) {
	let childrenArray = tree.root().get_all_nodes()
	for (let x = 1; x < childrenArray.length; x++) {
		let id = '#tnt_tree_link_treeBox_' + childrenArray[x].id()
		let branch = d3.select(id)
		branch.attr('style', 'stroke: ' + childrenArray[x].property('branchColor'))
	}
}
/**
 * Updates the branch color of every branch in a given tree based on its 'branchColor' property.
 *
 * @param {any} tree - A TNT treeObj
 */
Updates the branch color of every branch in a given tree based on its 'branchColor' property.
@param {any} tree - A TNT treeObj
Updates the branch color of every branch in a given tree based on its ' branchColor ' property . @param { any } tree - A TNT treeObj
function updateBranchColor(tree) {
	let childrenArray = tree.root().get_all_nodes()
	for (let x = 1; x < childrenArray.length; x++) {
		let id = '#tnt_tree_link_treeBox_' + childrenArray[x].id()
		let branch = d3.select(id)
		branch.attr('style', 'stroke: ' + childrenArray[x].property('branchColor'))
	}
}
function updateBranchColor ( tree ) { let childrenArray = tree . root ( ) . get_all_nodes ( ) for ( let x = 1 ; x < childrenArray . length ; x ++ ) { let id = '#tnt_tree_link_treeBox_' + childrenArray [ x ] . id ( ) let branch = d3 . select ( id ) branch . attr ( 'style' , 'stroke: ' + childrenArray [ x ] . property ( 'branchColor' ) ) } }
Updates the branch color of every branch in a given tree based on its 'branchColor' property.
Updates the branch color of every branch in a given tree based on its ' branchColor ' property .