Skip to content

Commit 66c4d1d

Browse files
conditional statements comments on ComponentMap
1 parent 3b0a99e commit 66c4d1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/components/ComponentMap.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export default function ComponentMap({
4646
let sizeWidth: number;
4747
let sizeHeight: number;
4848

49-
// rendering for the different tab selections
49+
// This sets the starting position for the root node on the maps display. the polar layout sets the root node to the relative center of the display box based on the size of the browser window.
50+
// the else conditional statements determines the root nodes location either in the left middle or top middle of the browser window relative to the size of the browser.
5051
if (layout === 'polar') {
5152
origin = {
5253
x: innerWidth / 2,

0 commit comments

Comments
 (0)