Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Jul 3, 2024
1 parent c209445 commit a3d9a32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions dist/fabric.js
Original file line number Diff line number Diff line change
Expand Up @@ -27257,6 +27257,11 @@ fabric.Image.filters.BaseFilter.fromObject = function(object, callback) {
if (!this[type] && !this.styleHas(type)) {
return;
}
ctx.save();
// if type is overline or linethrough we shouldn't cast shadow
if (type === 'overline' || type === 'linethrough') {
this._removeShadow(ctx);
}
var heightOfLine, size, _size,
lineLeftOffset, dy, _dy,
line, lastDecoration,
Expand Down Expand Up @@ -27343,9 +27348,7 @@ fabric.Image.filters.BaseFilter.fromObject = function(object, callback) {
);
topOffset += heightOfLine;
}
// if there is text background color no
// other shadows should be casted
this._removeShadow(ctx);
ctx.restore();
},

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/fabric.min.js

Large diffs are not rendered by default.

0 comments on commit a3d9a32

Please sign in to comment.