Use explicit test for image smoothing disabled

fix prettier
This commit is contained in:
mike-000
2020-04-30 16:27:43 +01:00
committed by GitHub
parent fc2fe25e69
commit c515183bad

View File

@@ -331,7 +331,10 @@ export function render(
context.save();
context.beginPath();
if (isBrokenDiagonalRendering() || opt_contextOptions === IMAGE_SMOOTHING_DISABLED) {
if (
isBrokenDiagonalRendering() ||
opt_contextOptions === IMAGE_SMOOTHING_DISABLED
) {
// Make sure that everything is on pixel boundaries
const u0r = pixelRound(u0);
const v0r = pixelRound(v0);