function updateRadial(tree) {
	tree.layout(tntTree.layout.radial().width(Math.min(window.innerWidth * scaleFactor, window.innerHeight * scaleFactor)))
	currentState = 'radial'
	d3.select('.tnt_groupDiv')
		.attr('style', 'width:' + document.body.clientWidth + 'px')
	d3.select('.tnt_groupDiv')
		.select('svg')
		.attr('width', document.body.clientWidth + 'px')
		.attr('height', document.body.clientHeight + 'px')
}
/**
 * Updates the back-end layout property of the tree to radial display.
 *
 * @param {any} tree The tree to be modified.
 */
Updates the back-end layout property of the tree to radial display.
@param {any} tree The tree to be modified.
Updates the back - end layout property of the tree to radial display . @param { any } tree The tree to be modified .
function updateRadial(tree) {
	tree.layout(tntTree.layout.radial().width(Math.min(window.innerWidth * scaleFactor, window.innerHeight * scaleFactor)))
	currentState = 'radial'
	d3.select('.tnt_groupDiv')
		.attr('style', 'width:' + document.body.clientWidth + 'px')
	d3.select('.tnt_groupDiv')
		.select('svg')
		.attr('width', document.body.clientWidth + 'px')
		.attr('height', document.body.clientHeight + 'px')
}
function updateRadial ( tree ) { tree . layout ( tntTree . layout . radial ( ) . width ( Math . min ( window . innerWidth * scaleFactor , window . innerHeight * scaleFactor ) ) ) currentState = 'radial' d3 . select ( '.tnt_groupDiv' ) . attr ( 'style' , 'width:' + document . body . clientWidth + 'px' ) d3 . select ( '.tnt_groupDiv' ) . select ( 'svg' ) . attr ( 'width' , document . body . clientWidth + 'px' ) . attr ( 'height' , document . body . clientHeight + 'px' ) }
Updates the back-end layout property of the tree to radial display.
Updates the back - end layout property of the tree to radial display .