diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-12-01 17:24:04 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-12-01 17:24:04 +0100 |
commit | 51dafe62e02c4298859ac8f1c5945899241fac23 (patch) | |
tree | 864908d07b63337611f67364838245037b7fe85b /playgrounds | |
parent | 9546418c5ed9b1876132b43dff1ae690c3ec4e24 (diff) | |
download | svg.js-51dafe62e02c4298859ac8f1c5945899241fac23.tar.gz svg.js-51dafe62e02c4298859ac8f1c5945899241fac23.zip |
fix playgrounds, delete unneeded files
Diffstat (limited to 'playgrounds')
-rw-r--r-- | playgrounds/colors/index.html | 2 | ||||
-rw-r--r-- | playgrounds/colors/main.js | 2 | ||||
-rw-r--r-- | playgrounds/matrix/drag.js | 2 | ||||
-rw-r--r-- | playgrounds/matrix/index.html | 2 | ||||
-rw-r--r-- | playgrounds/transforms/index.html | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/playgrounds/colors/index.html b/playgrounds/colors/index.html index 301dd3a..cb0b688 100644 --- a/playgrounds/colors/index.html +++ b/playgrounds/colors/index.html @@ -21,6 +21,6 @@ </body> <script src="../../dist/svg.js" charset="utf-8"></script> - <script src="bundle.js" charset="utf-8"></script> + <script src="main.js" charset="utf-8"></script> </html> diff --git a/playgrounds/colors/main.js b/playgrounds/colors/main.js index fda3ce2..d81bb47 100644 --- a/playgrounds/colors/main.js +++ b/playgrounds/colors/main.js @@ -12,7 +12,7 @@ function rectangles ( method='Vibrant') { // Add the squares for ( let i = 0; i < 20; i++ ) { - let color = SVG.Color.random( method.toLowerCase() ).hex() + let color = SVG.Color.random( method.toLowerCase() ).toHex() let rect = group.rect(100, 100) .x( 20 + 100 * i ) .fill( color ) diff --git a/playgrounds/matrix/drag.js b/playgrounds/matrix/drag.js index 2dd6cac..7609404 100644 --- a/playgrounds/matrix/drag.js +++ b/playgrounds/matrix/drag.js @@ -35,7 +35,7 @@ function reactToDrag(element, onDrag, beforeDrag) { } // Bind the drag tracker to this element directly - let parent = element.doc() + let parent = element.root() let point = new SVG.Point() element.mousedown(startDrag).touchstart(startDrag) } diff --git a/playgrounds/matrix/index.html b/playgrounds/matrix/index.html index cd34b7d..e815ed5 100644 --- a/playgrounds/matrix/index.html +++ b/playgrounds/matrix/index.html @@ -5,7 +5,7 @@ <head> <meta charset="utf-8"> <title>SVG Playground</title> - <link rel="stylesheet" href="../playground.css"> + <link rel="stylesheet" href="style.css"> </head> <body> diff --git a/playgrounds/transforms/index.html b/playgrounds/transforms/index.html index a165dd9..8e1f804 100644 --- a/playgrounds/transforms/index.html +++ b/playgrounds/transforms/index.html @@ -5,7 +5,7 @@ <head> <meta charset="utf-8"> <title>SVG Playground</title> - <link rel="stylesheet" href="../playground.css"> + <link rel="stylesheet" href="style.css"> </head> <body> |