mirror of https://github.com/luileito/jsketch.git
Added stroke serialization
This commit is contained in:
parent
8424e2c47a
commit
ca31558047
|
|
@ -248,6 +248,7 @@
|
||||||
*/
|
*/
|
||||||
stroke: function() {
|
stroke: function() {
|
||||||
this.context.stroke();
|
this.context.stroke();
|
||||||
|
this.callStack.push({ method: 'stroke', args: [] });
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -187,6 +187,10 @@
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* Alias of `closePath()`;
|
||||||
|
*/
|
||||||
|
methods.stroke = methods.closePath;
|
||||||
|
|
||||||
function build() {
|
function build() {
|
||||||
var svg = '<?xml version="1.0" encoding="utf-8" standalone="no" ?>';
|
var svg = '<?xml version="1.0" encoding="utf-8" standalone="no" ?>';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue