From 65c08b6a5bb5779e00dcf5fb5a9af55281d6e063 Mon Sep 17 00:00:00 2001 From: Shashwat Pratap Singh <114943221+ShashwatPS@users.noreply.github.com> Date: Wed, 4 Oct 2023 17:25:54 +0530 Subject: [PATCH 1/2] Update CircleLayout.tsx Removed the commented out Code. --- library/src/components/layouts/CircleLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/components/layouts/CircleLayout.tsx b/library/src/components/layouts/CircleLayout.tsx index 1964a51..2cdc495 100644 --- a/library/src/components/layouts/CircleLayout.tsx +++ b/library/src/components/layouts/CircleLayout.tsx @@ -18,7 +18,7 @@ function calculateLayout( elements: Node[], passedOptions: Partial = defaultOptions, ): FlowElement[] { - // const options = { ...defaultOptions, ...passedOptions }; + const eachDegree = 360 / elements.length; let nextDegree = 0; From 56e7829fad9241594dd9e25ee31af51a09e31f57 Mon Sep 17 00:00:00 2001 From: Shashwat Pratap Singh <114943221+ShashwatPS@users.noreply.github.com> Date: Wed, 4 Oct 2023 17:51:06 +0530 Subject: [PATCH 2/2] Removed the Extra Line --- library/src/components/layouts/CircleLayout.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/src/components/layouts/CircleLayout.tsx b/library/src/components/layouts/CircleLayout.tsx index 2cdc495..fd982fd 100644 --- a/library/src/components/layouts/CircleLayout.tsx +++ b/library/src/components/layouts/CircleLayout.tsx @@ -18,8 +18,6 @@ function calculateLayout( elements: Node[], passedOptions: Partial = defaultOptions, ): FlowElement[] { - - const eachDegree = 360 / elements.length; let nextDegree = 0; const r = elements.length * 100;