diff --git a/src/text.class.js b/src/text.class.js index 439e3980..01770c07 100644 --- a/src/text.class.js +++ b/src/text.class.js @@ -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); \ No newline at end of file +})(typeof exports !== 'undefined' ? exports : this);