fabric.Text#visible not working

Bugfix for text objects - only render visible objects
This commit is contained in:
Kienz 2013-03-20 19:20:05 +01:00
parent 292178474d
commit 6379278384

View file

@ -641,6 +641,9 @@
* @param ctx {CanvasRenderingContext2D} context to render on
*/
render: function(ctx, noTransform) {
// do not render if object is not visible
if (!this.visible) return;
ctx.save();
this._render(ctx);
if (!noTransform && this.active) {
@ -933,4 +936,4 @@
fabric.util.createAccessors(fabric.Text);
})(typeof exports !== 'undefined' ? exports : this);
})(typeof exports !== 'undefined' ? exports : this);