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
Copy file name to clipboardExpand all lines: src/app/components/StateRoute/ComponentMap/ComponentMap.tsx
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,8 @@ export default function ComponentMap({
58
58
currentSnapshot,// from 'tabs[currentTab].stateSnapshot object in 'MainContainer'
59
59
}: LinkTypesProps): JSX.Element{
60
60
const[orientation,setOrientation]=useState('vertical');// We create a local state "orientation" and set it to a string 'vertical'.
61
-
const[linkType,setLinkType]=useState('diagonal');// We create a local state "linkType" and set it to a string 'diagonal'.
62
-
const[stepPercent,setStepPercent]=useState(0.5);// We create a local state "stepPercent" and set it to a number '0.5'. This will be used to scale the Map component's link: Step to 50%
61
+
const[linkType,setLinkType]=useState('step');// We create a local state "linkType" and set it to a string 'step'.
62
+
const[stepPercent,setStepPercent]=useState(0.0);// We create a local state "stepPercent" and set it to a number '0.0'. This will be used to scale the Map component's link: Step to 0%
63
63
const[selectedNode,setSelectedNode]=useState('root');// We create a local state "selectedNode" and set it to a string 'root'.
64
64
constdispatch=useDispatch();
65
65
@@ -82,7 +82,6 @@ export default function ComponentMap({
82
82
The default view sets the root nodes location either in the left middle *or top middle of the browser window relative to the size of the browser.
83
83
*/
84
84
85
-
86
85
origin={x: 0,y: 0};
87
86
if(orientation==='vertical'){
88
87
sizeWidth=innerWidth;
@@ -92,7 +91,7 @@ export default function ComponentMap({
92
91
sizeWidth=innerHeight;
93
92
sizeHeight=innerWidth;
94
93
}
95
-
//}
94
+
//}
96
95
const{
97
96
tooltipData,// value/data that tooltip may need to render
98
97
tooltipLeft,// number used for tooltip positioning
0 commit comments