Added stroke serialization

This commit is contained in:
Luis Leiva 2017-12-18 09:04:35 +01:00
parent 8424e2c47a
commit ca31558047
2 changed files with 5 additions and 0 deletions

View File

@ -248,6 +248,7 @@
*/
stroke: function() {
this.context.stroke();
this.callStack.push({ method: 'stroke', args: [] });
return this;
},
/**

View File

@ -187,6 +187,10 @@
return '';
},
};
/**
* Alias of `closePath()`;
*/
methods.stroke = methods.closePath;
function build() {
var svg = '<?xml version="1.0" encoding="utf-8" standalone="no" ?>';