@@ -7,8 +7,9 @@ import { pointRadial } from 'd3-shape';
7
7
import useForceUpdate from './useForceUpdate' ;
8
8
import LinkControls from './LinkControls' ;
9
9
import getLinkComponent from './getLinkComponent' ;
10
- import { onHover , onHoverExit } from '../actions/actions'
11
- import { useStoreContext } from '../store'
10
+ import { onHover , onHoverExit } from '../actions/actions' ;
11
+ import { useStoreContext } from '../store' ;
12
+
12
13
13
14
const root = hierarchy ( {
14
15
name : 'root' ,
@@ -100,6 +101,7 @@ export default function ComponentMap({
100
101
setStepPercent = { setStepPercent }
101
102
/>
102
103
104
+
103
105
< svg width = { totalWidth } height = { totalHeight } >
104
106
< LinearGradient id = 'links-gradient' from = '#fd9b93' to = '#fe6e9e' />
105
107
< rect width = { totalWidth } height = { totalHeight } rx = { 14 } fill = '#242529' />
@@ -147,6 +149,7 @@ export default function ComponentMap({
147
149
< circle
148
150
r = { 12 }
149
151
fill = "url('#links-gradient')"
152
+ stroke = "#e7e7e7"
150
153
onClick = { ( ) => {
151
154
node . data . isExpanded = ! node . data . isExpanded ;
152
155
// console.log(node);
@@ -163,7 +166,8 @@ export default function ComponentMap({
163
166
x = { - width / 2 }
164
167
fill = '#272b4d'
165
168
//changed all the node.data.children to node.children and was causing pb rendering and expanding
166
- stroke = { node . children ? '#03c0dc' : '#26deb0' }
169
+ // stroke={node.children ? '#03c0dc' : '#26deb0'}
170
+ stroke = { node . children ? '#62d6fb' : '#F5F47E' }
167
171
strokeWidth = { 1 }
168
172
strokeDasharray = { node . children ? '0' : '2,2' }
169
173
strokeOpacity = { node . children ? 1 : 0.6 }
@@ -200,8 +204,8 @@ export default function ComponentMap({
200
204
node . depth === 0
201
205
? '#71248e'
202
206
: node . children
203
- ? 'white '
204
- : '#26deb0 '
207
+ ? '#B1EDE8 '
208
+ : '#F5F47E '
205
209
}
206
210
>
207
211
{ node . data . name }
0 commit comments