SVG.js

Installation

Npm

npm install @svgdotjs/svg.js

Yarn

yarn add @svgdotjs/svg.js

CDN.js / jsDelivr

Grab the latest version from cdnjs.com or directly from jsdelivr

Download

You can find all releases on the release Page.

The latest release can be found here

For the best developing experience make sure the source map is in the same folder as the library.

Offline documentation

Prebuilt copies of every published documentation version are available from the website repository. They do not require npm, PHP, or a local build:

  1. Download the prebuilt documentation archive and extract it.
  2. From the extracted directory, run python3 -m http.server 8040.
  3. Open http://localhost:8040/docs/3.2/ in your browser. Replace 3.2 with another included version when needed.
Fork me on GitHub