d3-mitch-tree icon indicating copy to clipboard operation
d3-mitch-tree copied to clipboard

Can you reduce spacing between groups of 'children' in boxed tree mode?

Open nmg196 opened this issue 3 years ago • 1 comments

Is there a way to reduce this distance without the boxes overlapping? This doesn't seem to be configurable.

image

I'm using "Advanced Example Expand All Nodes.html" but just with these extra settings to prevent overlapping of boxes on the right hand side:

	.getNodeSettings()
		.setSizingMode('nodeSize')
		.setVerticalSpacing(20)				
		.setHorizontalSpacing(50)
		.setTitleBoxHeight(30)
		.back()

Thanks! Nick

nmg196 avatar Nov 03 '21 15:11 nmg196

Had this issue, after scouring the code... found the solution. On the constructor set the sizing mode and can set the spacing here... new d3.mitchTree.boxedTree({nodeSettings: {verticalSpacing: 25, horizontalSpacing: 25, sizingMode: 'nodeSize'}})

Bubbleshum avatar Jan 28 '22 12:01 Bubbleshum