File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
app/components/StateRoute/ComponentMap Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const defaultMargin: DefaultMargin = {
38
38
39
39
const nodeCoords : object = { } ;
40
40
let count : number = 0 ;
41
- let aspect : number = 1 ;
41
+ let aspect : number = 1 ; // aspect resizes the component map container to accommodate large node trees on complex sites
42
42
let nodeCoordTier = 0 ;
43
43
let nodeOneLeft = 0 ;
44
44
let nodeTwoLeft = 2 ;
@@ -204,7 +204,7 @@ export default function ComponentMap({
204
204
setSelectedNode = { setSelectedNode }
205
205
/>
206
206
207
- < svg ref = { containerRef } width = { totalWidth } height = { totalHeight + 200 } >
207
+ < svg ref = { containerRef } width = { totalWidth } height = { totalHeight + 0 } >
208
208
{ /* <LinearGradient id='root-gradient' from='#e75e62' to='#f00008' /> */ }
209
209
< LinearGradient id = 'root-gradient' from = '#488689' to = '#3c6e71' />
210
210
< LinearGradient id = 'parent-gradient' from = '#488689' to = '#3c6e71' />
@@ -214,13 +214,13 @@ export default function ComponentMap({
214
214
hideTooltip ( ) ;
215
215
} }
216
216
width = { sizeWidth / aspect }
217
- height = { sizeHeight / aspect + 200 }
217
+ height = { sizeHeight / aspect + 0 }
218
218
rx = { 14 }
219
219
/>
220
220
< Group transform = { `scale(${ aspect } )` } top = { margin . top } left = { margin . left } >
221
221
< Tree
222
222
root = { hierarchy ( startNode , ( d ) => ( d . isExpanded ? d . children : null ) ) }
223
- size = { [ sizeWidth / aspect , sizeHeight / aspect + 50 ] }
223
+ size = { [ sizeWidth / aspect , sizeHeight / aspect ] }
224
224
separation = { ( a , b ) => ( a . parent === b . parent ? 0.5 : 0.5 ) / a . depth }
225
225
>
226
226
{ ( tree ) => (
Original file line number Diff line number Diff line change @@ -507,7 +507,6 @@ chrome.contextMenus.onClicked.addListener(({ menuItemId }) => {
507
507
// console.log(displayUnitInfo);
508
508
// });
509
509
chrome . windows . getCurrent ( ( window ) => {
510
- console . log ( window ) ;
511
510
const invokedScreenTop = 75 ; // window.top || 0;
512
511
const invokedScreenLeft = window . width < 1000 ? window . left + window . width - 1000 : window . left ;
513
512
const invokedScreenWidth = 1000 ;
@@ -520,7 +519,6 @@ chrome.contextMenus.onClicked.addListener(({ menuItemId }) => {
520
519
height : invokedScreenHeight ,
521
520
url : chrome . runtime . getURL ( 'panel.html' ) ,
522
521
} ;
523
- console . log ( options ) ;
524
522
if ( menuItemId === 'reactime' ) chrome . windows . create ( options ) ;
525
523
} ) ;
526
524
You can’t perform that action at this time.
0 commit comments