about summary refs log tree commit diff stats
path: root/src/algorithms
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-10-11 11:16:03 +0530
committerAndinus <andinus@nand.sh>2021-10-11 11:16:03 +0530
commite397069d454a9c0c6a8cd680be4a58d8bcd9a81b (patch)
tree826bd83d2844dcc7f63385400e2da3b7d1f4adbc /src/algorithms
parentea9db62c67a3817918e5581b0b1477c9494844f7 (diff)
downloaddorado-e397069d454a9c0c6a8cd680be4a58d8bcd9a81b.tar.gz
Add 2d transformation module
Diffstat (limited to 'src/algorithms')
-rw-r--r--src/algorithms/2d-transformations/Scaling.svelte18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/algorithms/2d-transformations/Scaling.svelte b/src/algorithms/2d-transformations/Scaling.svelte
new file mode 100644
index 0000000..ce312de
--- /dev/null
+++ b/src/algorithms/2d-transformations/Scaling.svelte
@@ -0,0 +1,18 @@
+<script>
+  import { onMount } from "svelte";
+  import Plotly from "plotly.js-basic-dist-min";
+
+  onMount(() => {
+    Plotly.newPlot('algoChart', [{
+      x: [1, 2],
+      y: [2, 3],
+      type: 'lines',
+      name: 'Scaling'
+    }]);
+  });
+</script>
+
+<h2>Scaling</h2>
+<div id="algoChart"></div>
+<style>
+</style>