You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -230,10 +231,15 @@ export default function ComponentMap({
230
231
width={width}
231
232
y={-height/2}
232
233
x={-width/2}
234
+
//node.children = if node has children
233
235
fill={node.children ? '#161521' : '#62d6fb'}
234
-
stroke={node.data.isExpanded ? '#95fb62' : '#a69ff5'}// if already child in fill do not all stroke to change change color later but it works!!!!!!!!
236
+
//node.data.isExpanded = if node is collapsed
237
+
// stroke={(node.data.isExpanded && node.child) ? '#95fb62' : '#a69ff5'} => node.child is gone when clicked, even if it actually has children. Maybe better call node.children => node.leaf
0 commit comments