@@ -57,8 +57,6 @@ export default function ComponentMap({
57
57
const [ selectedNode , setSelectedNode ] = useState ( 'root' ) ; // We create a local state "selectedNode" and set it to a string 'root'.
58
58
const dispatch = useDispatch ( ) ;
59
59
60
- console . log ( 'totalHeight: ' , totalHeight ) ;
61
-
62
60
const toolTipTimeoutID = useRef ( null ) ; //useRef stores stateful data that’s not needed for rendering.
63
61
64
62
useEffect ( ( ) => {
@@ -102,6 +100,8 @@ export default function ComponentMap({
102
100
}
103
101
}
104
102
103
+ console . log ( 'size width height component map: ' , sizeWidth , sizeHeight ) ;
104
+
105
105
const {
106
106
tooltipData, // value/data that tooltip may need to render
107
107
tooltipLeft, // number used for tooltip positioning
@@ -184,9 +184,7 @@ export default function ComponentMap({
184
184
185
185
findSelectedNode ( ) ; // locates the rootNode... do we really need this? This function is only used once... it's here.
186
186
187
- console . log ( 'startNode:' , startNode ) ;
188
- console . log ( 'nodelist:' , nodeList ) ;
189
- console . log ( 'nodelist length:' , nodeList . length ) ;
187
+ console . log ( 'startNode: ' , startNode ) ;
190
188
191
189
// controls for the map
192
190
const LinkComponent : React . ComponentType < unknown > = getLinkComponent ( {
@@ -260,6 +258,8 @@ export default function ComponentMap({
260
258
261
259
if ( layout === 'polar' ) {
262
260
const [ radialX , radialY ] = pointRadial ( node . x , node . y ) ;
261
+ console . log ( 'component map, radial x y' , radialX , radialY ) ;
262
+ console . log ( 'component map node.x, node.y:' , node . x , node . y ) ;
263
263
top = radialY ;
264
264
left = radialX ;
265
265
} else if ( orientation === 'vertical' ) {
0 commit comments