High resolution icon

This commit is contained in:
Stéphane Brunner
2020-07-15 10:16:46 +02:00
parent f2fe6e5957
commit fd1effa992
6 changed files with 216 additions and 40 deletions
+10
View File
@@ -320,6 +320,16 @@ class Icon extends ImageStyle {
return this.iconImage_.getImage(pixelRatio);
}
/**
* Get the pixel ratio.
* @param {number} pixelRatio Pixel ratio.
* @return {number} The pixel ration of the image.
* @api
*/
getPixelRatio(pixelRatio) {
return this.iconImage_.getPixelRatio(pixelRatio);
}
/**
* @return {import("../size.js").Size} Image size.
*/