Skip to content

Commit

Permalink
Merge pull request #10 from sklise/master
Browse files Browse the repository at this point in the history
Add xmlns namespace values to svg
  • Loading branch information
runemadsen committed Mar 20, 2016
2 parents 30cb8c5 + f02795d commit af59de2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Follow [@runemadsen](https://twitter.com/runemadsen) for announcements.

1. Clone down this repo
2. Run `npm install` from the repo folder
3. Run `gulp test`
3. Run `gulp test:headless`, `gulp test:browser` and/or `gulp test:node`


2 changes: 2 additions & 0 deletions src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Render {
constructor(params) {
this.params = params
this.tree = svg('svg', {
xmlns: 'http://www.w3.org/2000/svg',
'xmlns:xlink': 'http://www.w3.org/1999/xlink',
width: this.s(params.width),
height: this.s(params.height)
});
Expand Down

0 comments on commit af59de2

Please sign in to comment.