@@ -284,39 +284,35 @@ export default function AxTree(props) {
284
284
285
285
return totalWidth < 10 ? null : (
286
286
< div >
287
- < LinkControls
288
- layout = { layout }
289
- orientation = { orientation }
290
- linkType = { linkType }
291
- stepPercent = { stepPercent }
292
- setLayout = { setLayout }
293
- setOrientation = { setOrientation }
294
- setLinkType = { setLinkType }
295
- setStepPercent = { setStepPercent }
296
- />
287
+ < div id = 'axControls' >
288
+ < LinkControls
289
+ layout = { layout }
290
+ orientation = { orientation }
291
+ linkType = { linkType }
292
+ stepPercent = { stepPercent }
293
+ setLayout = { setLayout }
294
+ setOrientation = { setOrientation }
295
+ setLinkType = { setLinkType }
296
+ setStepPercent = { setStepPercent }
297
+ />
297
298
298
299
< button id = 'axLegendButton' onClick = { ( ) => dispatch ( renderAxLegend ( ) ) } >
299
300
Generate Ax Tree Legend
300
301
</ button >
302
+ </ div >
301
303
302
304
{ /* svg references purple background */ }
303
- < svg ref = { containerRef } width = { totalWidth } height = { totalHeight + 0 } >
305
+ < svg ref = { containerRef } width = { totalWidth + 0.2 * totalWidth } height = { totalHeight } >
304
306
< LinearGradient id = 'root-gradient' from = '#488689' to = '#3c6e71' />
305
307
< LinearGradient id = 'parent-gradient' from = '#488689' to = '#3c6e71' />
306
- < rect
307
- className = 'componentMapContainer'
308
- width = { sizeWidth / aspect }
309
- height = { sizeHeight / aspect + 0 }
310
- rx = { 14 }
311
- />
312
308
< Group transform = { `scale(${ aspect } )` } top = { margin . top } left = { margin . left } >
313
309
< Tree
314
310
root = { hierarchy ( nodeAxArr [ 0 ] , ( d ) => ( d . isExpanded ? null : d . children ) ) }
315
311
size = { [ sizeWidth / aspect , sizeHeight / aspect ] }
316
312
separation = { ( a , b ) => ( a . parent === b . parent ? 0.5 : 0.5 ) / a . depth }
317
313
>
318
314
{ ( tree ) => (
319
- < Group top = { origin . y + 35 } left = { origin . x + 50 / aspect } >
315
+ < Group top = { origin . y + 35 } left = { origin . x + 110 } >
320
316
{ tree . links ( ) . map ( ( link , i ) => (
321
317
< LinkComponent
322
318
key = { i }
0 commit comments