diff --git a/jsketch.js b/jsketch.js index 9dc0612..7d6e7f0 100644 --- a/jsketch.js +++ b/jsketch.js @@ -248,6 +248,7 @@ */ stroke: function() { this.context.stroke(); + this.callStack.push({ method: 'stroke', args: [] }); return this; }, /** diff --git a/jsketch.svg.js b/jsketch.svg.js index cf852f4..b36e509 100644 --- a/jsketch.svg.js +++ b/jsketch.svg.js @@ -187,6 +187,10 @@ return ''; }, }; + /** + * Alias of `closePath()`; + */ + methods.stroke = methods.closePath; function build() { var svg = '';