summaryrefslogtreecommitdiffstats
path: root/dirty.html
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-10-27 20:43:35 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-10-27 20:43:35 +0200
commit1c75fcaf02ceb144152d59557643c6fdd7264065 (patch)
tree5184af75f2fd27ca6b81c24a06b1676d17ca2c76 /dirty.html
parentb1b776a710d0ce0a6259043b8ce0665e205195fa (diff)
downloadsvg.js-1c75fcaf02ceb144152d59557643c6fdd7264065.tar.gz
svg.js-1c75fcaf02ceb144152d59557643c6fdd7264065.zip
resolve circular references and make example working again
Diffstat (limited to 'dirty.html')
-rw-r--r--dirty.html15
1 files changed, 6 insertions, 9 deletions
diff --git a/dirty.html b/dirty.html
index f3e739a..5f605de 100644
--- a/dirty.html
+++ b/dirty.html
@@ -4,14 +4,7 @@
<head>
<meta charset="utf-8">
<title></title>
- <script type="text/javascript" src="dist/svg.js"></script>
- <script type="text/javascript" src="src/helpers.js"></script>
- <script type="text/javascript" src="src/transform.js"></script>
- <script type="text/javascript" src="src/matrix.js"></script>
- <script type="text/javascript" src="src/morph.js"></script>
- <script type="text/javascript" src="src/runner.js"></script>
- <script type="text/javascript" src="src/timeline.js"></script>
- <script type="text/javascript" src="src/controller.js"></script>
+ <!--<script type="text/javascript" src="dist/svg.js"></script>-->
@@ -30,7 +23,11 @@
</svg>
<!-- Modifying the svg -->
-<script>
+<script type="module">
+
+import SVG from './src/svg.js'
+
+window.SVG = SVG
let rect = SVG('rect').hide()
let {sin, PI: pi, round, sqrt} = Math