|
|
@ -338,6 +338,22 @@ Context2d.prototype.setTransform = function(){ |
|
|
|
this.transform.apply(this, arguments); |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* Set text path then `stroke()`. |
|
|
|
* |
|
|
|
* @param {String} str |
|
|
|
* @param {Number} x |
|
|
|
* @param {Number} y |
|
|
|
* @api public |
|
|
|
*/ |
|
|
|
|
|
|
|
var strokeText = Context2d.prototype.strokeText; |
|
|
|
Context2d.prototype.strokeText = function(str, x, y){ |
|
|
|
this.beginPath(); |
|
|
|
strokeText.call(this, str, x, y); |
|
|
|
return this.stroke(); |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* Set the fill style with the given css color string. |
|
|
|
* |
|
|
|