From 1cb509f863b17af90827012e6f6ae81cb694f654 Mon Sep 17 00:00:00 2001 From: Saivan Date: Tue, 27 Feb 2018 17:23:59 +1100 Subject: Made developing a little more enjoyable This commit adds playgrounds and a build:dev mode. Now you can call npm run build:dev to make the linter warn you about errors without breaking. Also, we now have playgrounds, where you can use a built version of svg.js to run your own tests. --- playgrounds/transforms/transforms.html | 27 +++++++++++++++++++++++++++ playgrounds/transforms/transforms.js | 7 +++++++ 2 files changed, 34 insertions(+) create mode 100644 playgrounds/transforms/transforms.html create mode 100644 playgrounds/transforms/transforms.js (limited to 'playgrounds/transforms') diff --git a/playgrounds/transforms/transforms.html b/playgrounds/transforms/transforms.html new file mode 100644 index 0000000..4382745 --- /dev/null +++ b/playgrounds/transforms/transforms.html @@ -0,0 +1,27 @@ + + + + + + + SVG Playground + + + + + +

SVG JS Playground

+ + + + + + + + + + + + + + diff --git a/playgrounds/transforms/transforms.js b/playgrounds/transforms/transforms.js new file mode 100644 index 0000000..797fa65 --- /dev/null +++ b/playgrounds/transforms/transforms.js @@ -0,0 +1,7 @@ + +let mover = SVG.select("#new")[0] + +console.log(mover.transform()); +mover.transform({ + position: [30, 50] +}) -- cgit v1.2.3