mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-23 12:45:48 +00:00
fabric.Text#visible not working
Bugfix for text objects - only render visible objects
This commit is contained in:
parent
292178474d
commit
6379278384
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue