File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export default function ComponentMap({
62
62
sizeHeight = innerWidth ;
63
63
}
64
64
}
65
- // controls for the map
65
+ // render controls for the map
66
66
const LinkComponent = getLinkComponent ( { layout, linkType, orientation } ) ;
67
67
return totalWidth < 10 ? null : (
68
68
< div >
@@ -144,7 +144,7 @@ export default function ComponentMap({
144
144
rx = { node . data . children ? 0 : 10 }
145
145
onClick = { ( ) => {
146
146
node . data . isExpanded = ! node . data . isExpanded ;
147
- console . log ( node ) ;
147
+
148
148
forceUpdate ( ) ;
149
149
} }
150
150
/>
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
3
const controlStyles = { fontSize : 10 } ;
4
-
4
+ // props for orientation controls
5
5
type Props = {
6
6
layout : string ;
7
7
orientation : string ;
@@ -12,7 +12,7 @@ type Props = {
12
12
setLinkType : ( linkType : string ) => void ;
13
13
setStepPercent : ( percent : number ) => void ;
14
14
} ;
15
-
15
+ // below are the control options for each of the drop downs.
16
16
export default function LinkControls ( {
17
17
layout,
18
18
orientation,
@@ -64,7 +64,7 @@ export default function LinkControls({
64
64
onClick = { ( e ) => e . stopPropagation ( ) }
65
65
type = 'range'
66
66
min = { 0 }
67
- max = { 1 }
67
+ max = { 5 }
68
68
step = { 0.1 }
69
69
onChange = { ( e ) => setStepPercent ( Number ( e . target . value ) ) }
70
70
value = { stepPercent }
You can’t perform that action at this time.
0 commit comments