MCPcopy Index your code
hub / github.com/svgdotjs/svg.js

github.com/svgdotjs/svg.js @3.2.5 sqlite

repository ↗ · DeepWiki ↗ · release 3.2.5 ↗
912 symbols 2,695 edges 170 files 14 documented · 2% 3 cross-repo links
README

SVG.js

Build Status Coverage Status Cdnjs jsdelivr Join the chat at https://gitter.im/svgdotjs/svg.js Twitter

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 @svgdotjs/svg.js

Yarn:

yarn add @svgdotjs/svg.js

CDNs:

https://cdnjs.com/libraries/svg.js
https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js
https://unpkg.com/@svgdotjs/svg.js

Documentation

Check svgjs.dev to learn more.

Donate or Sponsor

Extension points exported contracts — how you extend this code

Stepper (Interface)
(no doc) [5 implementers]
svg.js.d.ts
pointed (Interface)
(no doc) [4 implementers]
svg.js.d.ts
CircleMethods (Interface)
(no doc) [3 implementers]
svg.js.d.ts
poly (Interface)
(no doc) [3 implementers]
svg.js.d.ts
CoreAttr (Interface)
* The SVG core attributes are all the common attributes that can be specified on any SVG element. * More information
svg.js.d.ts

Core symbols most depended-on inside this repo

attr
called by 286
src/elements/Pattern.js
addTo
called by 156
src/elements/Dom.js
SVG
called by 144
src/svg.js
step
called by 125
src/animation/Runner.js
bbox
called by 91
src/elements/Pattern.js
id
called by 90
src/elements/Dom.js
transform
called by 83
src/types/Box.js
parent
called by 77
src/elements/Dom.js

Shape

Method 407
Function 252
Class 216
Interface 37

Languages

TypeScript100%

Modules by API surface

svg.js.d.ts191 symbols
src/animation/Runner.js89 symbols
src/types/Matrix.js40 symbols
src/animation/Morphable.js37 symbols
src/elements/Dom.js33 symbols
src/types/Color.js27 symbols
src/animation/Timeline.js26 symbols
src/elements/Element.js22 symbols
src/animation/Controller.js22 symbols
src/types/Box.js21 symbols
src/types/SVGNumber.js13 symbols
src/modules/optional/arrange.js12 symbols

Used by 3 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@babel/core7.24.7 · 1×
@babel/eslint-parser7.24.7 · 1×
@babel/plugin-transform-runtime7.24.7 · 1×
@babel/preset-env7.24.7 · 1×
@rollup/plugin-babel6.0.4 · 1×
@rollup/plugin-commonjs26.0.1 · 1×
@rollup/plugin-node-resolve15.2.3 · 1×
@rollup/plugin-terser0.4.4 · 1×
@target/custom-event-polyfillgithub:Adobe-Marketi · 1×
@types/jasmine5.1.4 · 1×
babel-plugin-polyfill-corejs30.10.4 · 1×
core-js3.37.1 · 1×

For agents

$ claude mcp add svg.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact