diff options
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> |