about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-10-26 11:27:24 +0530
committerAndinus <andinus@nand.sh>2021-10-26 11:27:24 +0530
commit12b568b4d98298bc89feebf556e093ffd28ed595 (patch)
treea949e2b12d6d8a1b74ca36fd7e07f6d5174eaca7 /src
parentcf5508aec851bb764c372d2b347d6adb95e7e8ec (diff)
downloaddorado-12b568b4d98298bc89feebf556e093ffd28ed595.tar.gz
Tidy
Diffstat (limited to 'src')
-rw-r--r--src/algorithms/2d-transformations/Translation.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/algorithms/2d-transformations/Translation.svelte b/src/algorithms/2d-transformations/Translation.svelte
index 0416f2b..2fcb56e 100644
--- a/src/algorithms/2d-transformations/Translation.svelte
+++ b/src/algorithms/2d-transformations/Translation.svelte
@@ -3,8 +3,9 @@
   import Plotly from "plotly.js-basic-dist-min";
 
   let points = [];
-  let newPoint = {x: 0, y: 0};
+  let translatedPointsArray = {x: [], y: []};
 
+  let newPoint = {x: 0, y: 0};
   let translate = {x: 0, y: 0};
 
   function addPoint() {
@@ -22,7 +23,7 @@
   function deletePoint(id) {
     points = points.filter(item => item.id !== Number(id));
   }
-let translatedPointsArray = {x: [], y: []};
+
 
   function translatePoints() {
     // Reset values.
@@ -107,11 +108,11 @@ let translatedPointsArray = {x: [], y: []};
       {/each}
     </tbody>
   </table>
+
   <h4>Translation Points</h4>
   <table>
     <thead>
       <tr>
-       
         <th>x</th>
         <th>y</th>
       </tr>