about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorkarishmarajput <karrajput3948@gmail.com>2021-10-26 10:40:16 +0530
committerkarishmarajput <karrajput3948@gmail.com>2021-10-26 10:40:16 +0530
commitddea5bc7050ecae2081cb7ed7a7c2ee206a53e8f (patch)
tree205eac9db64feb9a69d4a8c143bfa79ad01e0584
parent89299f7508cc5ce1f88c1629f6c7ab6d4e5b4a77 (diff)
downloaddorado-ddea5bc7050ecae2081cb7ed7a7c2ee206a53e8f.tar.gz
translated points table added
-rw-r--r--package-lock.json5
-rw-r--r--package.json1
-rw-r--r--src/algorithms/2d-transformations/Translation.svelte18
3 files changed, 24 insertions, 0 deletions
diff --git a/package-lock.json b/package-lock.json
index 3d045f1..854382a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -336,6 +336,11 @@
       "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
       "dev": true
     },
+    "install": {
+      "version": "0.13.0",
+      "resolved": "https://registry.npmjs.org/install/-/install-0.13.0.tgz",
+      "integrity": "sha512-zDml/jzr2PKU9I8J/xyZBQn8rPCAY//UOYNmR01XwNwyfhEWObo2SWfSl1+0tm1u6PhxLwDnfsT/6jB7OUxqFA=="
+    },
     "is-binary-path": {
       "version": "2.1.0",
       "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
diff --git a/package.json b/package.json
index e603567..8b88b43 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,7 @@
         "svelte": "^3.0.0"
     },
     "dependencies": {
+        "install": "^0.13.0",
         "plotly.js-basic-dist-min": "^2.5.1",
         "sirv-cli": "^1.0.0"
     }
diff --git a/src/algorithms/2d-transformations/Translation.svelte b/src/algorithms/2d-transformations/Translation.svelte
index 9ce71da..1fff3e9 100644
--- a/src/algorithms/2d-transformations/Translation.svelte
+++ b/src/algorithms/2d-transformations/Translation.svelte
@@ -108,6 +108,24 @@
       {/each}
     </tbody>
   </table>
+  <h4>Translation Points</h4>
+  <table>
+    <thead>
+      <tr>
+       
+        <th>x</th>
+        <th>y</th>
+      </tr>
+    </thead>
+    <tbody>
+      {#each translatedPointsArray.x as _, i}
+        <tr>
+          <td>{translatedPointsArray.x[i]}</td>
+          <td>{translatedPointsArray.y[i]}</td>
+        </tr>
+      {/each}
+    </tbody>
+  </table>
 {/if}
 
 <div id="algoChart"></div>