svg2bvg
v0.1.3
Published
Converts SVG to Black Engine Vector Graphics
Readme
svg2bvg
Converts SVG files to BVG.
Installation
npm install svg2bvg -g
Usage
svg2bvg --in face.svg --out book.json
Supported SVG featuers
Common
- [ ] Mask, Clipping Mask
- [ ] Refs
- [x] Style attributes
Shapes
- [x] Rect
- [x] Circle
- [x] Elipse
- [x] Line
- [x] Polyline
- [x] Path
- [x] Polygon
Styles
- [x] Fill color
- [ ] Fill pattern
- [ ] Fill gradient
- [x] Fill opacity
- [x] Stroke color
- [ ] Stroke pattern
- [ ] Stroke gradient
- [x] Stroke opacity
- [x] Stroke width
- [x] Line Dash
- [x] Fill Rule
- [x] Cap Style
- [x] Joint Style
- [x] Miter Limit
- [x] Opacity
- [ ] Display
Units
- [x] px, pt, pc, mm, cm, in
Next Release
- CSS styles and Inlined styles
- Embedded images
Not supported SVG features
- CSS styles and Inlined styles (only attributes is supported)
- Markers
- Text - must be converted to outlines
- Animations
- Visibility
- Filters
- color-interpolation, color-interpolation-filters
- color-rendering
- shape-rendering
- text-rendering
- image-rendering
- viewBox
- Scripts
- External resources
- Interactivity
- Linking
