Remove IE image smoothing fallback

This commit is contained in:
Maximilian Krög
2022-07-30 22:36:32 +02:00
parent 37aaf8ed4b
commit 6a6d2cd612
5 changed files with 7 additions and 32 deletions

View File

@@ -6,7 +6,6 @@ import EventType from '../events/EventType.js';
import ImageSource, {defaultImageLoadFunction} from './Image.js';
import ImageState from '../ImageState.js';
import ImageWrapper from '../Image.js';
import {IMAGE_SMOOTHING_DISABLED} from '../renderer/canvas/common.js';
import {createCanvasContext2D} from '../dom.js';
import {getHeight, getWidth, intersects} from '../extent.js';
import {get as getProjection} from '../proj.js';
@@ -157,7 +156,7 @@ class Static extends ImageSource {
if (targetWidth !== imageWidth || targetHeight !== imageHeight) {
const context = createCanvasContext2D(targetWidth, targetHeight);
if (!this.getInterpolate()) {
Object.assign(context, IMAGE_SMOOTHING_DISABLED);
context.imageSmoothingEnabled = false;
}
const canvas = context.canvas;
context.drawImage(