Merge aca527a9af
into 6020386bbe
This commit is contained in:
commit
ddf9043f5b
|
@ -569,9 +569,10 @@ export class CanvasRenderer extends Renderer {
|
|||
}
|
||||
|
||||
resizeImage(image: HTMLImageElement, width: number, height: number): HTMLCanvasElement | HTMLImageElement {
|
||||
if (image.width === width && image.height === height) {
|
||||
return image;
|
||||
}
|
||||
|
||||
// if (image.width === width && image.height === height) {
|
||||
// return image;
|
||||
// }
|
||||
|
||||
const ownerDocument = this.canvas.ownerDocument ?? document;
|
||||
const canvas = ownerDocument.createElement('canvas');
|
||||
|
|
Loading…
Reference in New Issue