Skip to content

Commit 3b9b225

Browse files
committed
console logged through component map tree to identify population of values for node.x and node.y
1 parent 8021478 commit 3b9b225

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ export default function ComponentMap({
5757
const [selectedNode, setSelectedNode] = useState('root'); // We create a local state "selectedNode" and set it to a string 'root'.
5858
const dispatch = useDispatch();
5959

60-
console.log('totalHeight: ', totalHeight);
61-
6260
const toolTipTimeoutID = useRef(null); //useRef stores stateful data that’s not needed for rendering.
6361

6462
useEffect(() => {
@@ -102,6 +100,8 @@ export default function ComponentMap({
102100
}
103101
}
104102

103+
console.log('size width height component map: ', sizeWidth, sizeHeight);
104+
105105
const {
106106
tooltipData, // value/data that tooltip may need to render
107107
tooltipLeft, // number used for tooltip positioning
@@ -184,9 +184,7 @@ export default function ComponentMap({
184184

185185
findSelectedNode(); // locates the rootNode... do we really need this? This function is only used once... it's here.
186186

187-
console.log('startNode:', startNode);
188-
console.log('nodelist:', nodeList);
189-
console.log('nodelist length:', nodeList.length);
187+
console.log('startNode: ', startNode);
190188

191189
// controls for the map
192190
const LinkComponent: React.ComponentType<unknown> = getLinkComponent({
@@ -260,6 +258,8 @@ export default function ComponentMap({
260258

261259
if (layout === 'polar') {
262260
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);
263263
top = radialY;
264264
left = radialX;
265265
} else if (orientation === 'vertical') {

0 commit comments

Comments
 (0)