diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-10-27 20:43:35 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-10-27 20:43:35 +0200 |
commit | 1c75fcaf02ceb144152d59557643c6fdd7264065 (patch) | |
tree | 5184af75f2fd27ca6b81c24a06b1676d17ca2c76 /dirty.html | |
parent | b1b776a710d0ce0a6259043b8ce0665e205195fa (diff) | |
download | svg.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.html | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -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 |