Skip to content

Commit 832fc03

Browse files
committed
attempting to pass in height referencing the parent size component of visx and how component map is rendering/passing in values
1 parent 6a4f045 commit 832fc03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ 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+
6062
const toolTipTimeoutID = useRef(null); //useRef stores stateful data that’s not needed for rendering.
6163

6264
useEffect(() => {
@@ -182,6 +184,10 @@ export default function ComponentMap({
182184

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

187+
console.log('startNode:', startNode);
188+
console.log('nodelist:', nodeList);
189+
console.log('nodelist length:', nodeList.length);
190+
185191
// controls for the map
186192
const LinkComponent: React.ComponentType<unknown> = getLinkComponent({
187193
layout,

0 commit comments

Comments
 (0)