Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ulrich-Matthias Schäfer 1edcc976b8 applied fixes from 2.x branch il y a 5 ans
.config dont generate esm bundle anymore and link to src/main.js directly. Move bower to its own repo il y a 5 ans
.github Its obvious that these Issue templates were notes... il y a 5 ans
bench Get rid of HTMLNode and Bare in favor of Dom il y a 5 ans
playgrounds fix playgrounds, delete unneeded files il y a 5 ans
spec fix playgrounds, delete unneeded files il y a 5 ans
src applied fixes from 2.x branch il y a 5 ans
.eslintrc.yaml Reverted some of the lint rules after chatting with fuzzy il y a 5 ans
.gitignore dont generate esm bundle anymore and link to src/main.js directly. Move bower to its own repo il y a 5 ans
.travis.yml Fix build chain so that we now have multiple builds. Details below: il y a 5 ans
CHANGELOG.md applied fixes from 2.x branch il y a 5 ans
LICENSE.txt fix playgrounds, delete unneeded files il y a 5 ans
README.md applied fixes from 2.x branch il y a 5 ans
package-lock.json Merge branch '790-color-spaces' into 3.0.0 il y a 5 ans
package.json correct script il y a 5 ans
svg.js.d.ts applied fixes from 2.x branch il y a 5 ans

README.md

SVG.js

Build Status Coverage Status CDNJS

A lightweight library for manipulating and animating SVG, without any dependencies.

SVG.js is licensed under the terms of the MIT License.

Installation

Npm:

npm install svg.js

Yarn:

yarn add svg.js

Bower:

bower install svg.js

Cdnjs:

https://cdnjs.com/libraries/svg.js

Documentation

Check svgjs.com to learn more.

Donate

Development

To develop svg.js, you have a few commands available to you. Firstly, you should clone this repo, then cd into the folder with this README and run:

npm install

You’ll now have all the dev dependencies installed, and you’ll be ready to build the bundle. Once you’ve made your changes just run:

npm run build

This will build svg.js and make a distribution in the /dist folder. While developing, this may not be so convenient as the build will fail if you have any linting errors, refer to the standard coding styleguide for style we use, linters are available for most popular text editors as well.

Testing

This will set up everything. While you are working, you should make sure your changes pass all of our tests, so just run:

npm run test

Or just launch the jasmine test runner from /spec/SpecRunner.html. Its good to try the spec runner on a few different browsers.

Performance

You can run performance tests by making a new benchmarks, look in the /bench folder and just add a new js file with the test you want to make. We include a few examples in the repo to make it easy for you to make your own.

Playgrounds

If you would like a simple sandbox that you can use, take a look into the sandbox folder.

Pull Requests

We welcome any pull requests and will try our hardest to review them as soon as possible. If you need any help or would like to chat, check out our gitter group, we are always happy to see new users!