Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gagan-bansal/parse-svg
Parse svg string to svg DOM element
https://github.com/gagan-bansal/parse-svg
parser svg svg-dom-element
Last synced: about 7 hours ago
JSON representation
Parse svg string to svg DOM element
- Host: GitHub
- URL: https://github.com/gagan-bansal/parse-svg
- Owner: gagan-bansal
- License: mit
- Created: 2014-09-26T02:04:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-26T02:17:00.000Z (about 10 years ago)
- Last Synced: 2024-11-04T00:33:09.345Z (13 days ago)
- Topics: parser, svg, svg-dom-element
- Language: JavaScript
- Size: 109 KB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# parse-svg
Parse svg string to svg DOM element. Original source code is from [bobince](http://stackoverflow.com/a/3642265/713573)
## Getting Started
include parse-svg.min.js in your app.``` ```
It creates global variable **parseSVG** function.
usage:
``` var svgEle = parseSVG('svg string');```example:
```javascript
var myPathEle = parseSVG(
''
);
```## License
Copyright (c) 2014 Gagan Bansal
Licensed under the MIT license.