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:
- Download the prebuilt documentation archive and extract it.
- From the extracted directory, run
python3 -m http.server 8040. - Open
http://localhost:8040/docs/3.2/in your browser. Replace3.2with another included version when needed.