mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-17 10:01:08 +00:00
remove warning of deprecated functions about imageSmoothingEnabled
This commit is contained in:
parent
c6815892f3
commit
5aa0ad1b8c
1 changed files with 3 additions and 8 deletions
|
|
@ -382,14 +382,9 @@
|
|||
_setImageSmoothing: function() {
|
||||
var ctx = this.getContext();
|
||||
|
||||
if (typeof ctx.imageSmoothingEnabled !== 'undefined') {
|
||||
ctx.imageSmoothingEnabled = this.imageSmoothingEnabled;
|
||||
return;
|
||||
}
|
||||
ctx.webkitImageSmoothingEnabled = this.imageSmoothingEnabled;
|
||||
ctx.mozImageSmoothingEnabled = this.imageSmoothingEnabled;
|
||||
ctx.msImageSmoothingEnabled = this.imageSmoothingEnabled;
|
||||
ctx.oImageSmoothingEnabled = this.imageSmoothingEnabled;
|
||||
ctx.imageSmoothingEnabled = ctx.imageSmoothingEnabled || ctx.webkitImageSmoothingEnabled
|
||||
|| ctx.mozImageSmoothingEnabled || ctx.msImageSmoothingEnabled || ctx.oImageSmoothingEnabled;
|
||||
ctx.imageSmoothingEnabled = this.imageSmoothingEnabled;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue