TypeScript-based library for managing SVG in the browser and Node.js. The modular approach allows you to select only the required functions. It works well with all modern bundlers and Node.js and supports tree shaking π².
- Works in browser and Node.js.
- Based on TypeScript.
- Save the SVG to the file system in Node.js, or download it as SVG, PNG, JPG, etc. in a browser environment.
- Extensive Unit Testing.
- Translate, rotate, and scale path.
- Convert path to relative or absolute commands.
- Find path bounding box.
- Minify path data.
- Beautify path data.
- Path data validation.
- Path data parser.
- Primitive shapes like path, rectangle, circle, ellipse, polygon, polyline, etc.
- Container objects like <g>, <defs>, <use>, etc.
- SVG <pattern>, <clipPath>, <mask>, etc.
- Rectangle path element.
- Star shape, flower shape.
- Create animation elements like <animate>, <animateMotion>, <animateTransform>, etc.
- Create Path
- Create Rect
- Create Rect Path
- Create Circle
- Create Ellipse
- Create Line
- Create Polygon
- Create Polyline
- Create Star
- Create Flower
- Translate Path
- Rotate Path
- Scale Path
- Bounding Box
- Path To Relative
- Path To Absolute
- Minify Path
- Beautify Path
- Parse Path
- Validate Path