Merge pull request #13907 from MoonE/remove-ms-image-smoothing-enabled

Remove IE fallbacks
This commit is contained in:
MoonE
2022-07-30 23:58:55 +02:00
committed by GitHub
17 changed files with 24 additions and 94 deletions

View File

@@ -139,14 +139,9 @@ function download(fullpath, filename) {
return response.blob();
})
.then(function (blob) {
if (navigator.msSaveBlob) {
// link download attribute does not work on MS browsers
navigator.msSaveBlob(blob, filename);
} else {
link.href = URL.createObjectURL(blob);
link.download = filename;
link.click();
}
link.href = URL.createObjectURL(blob);
link.download = filename;
link.click();
});
}

View File

@@ -107,14 +107,9 @@ function download(fullpath, filename) {
return response.blob();
})
.then(function (blob) {
if (navigator.msSaveBlob) {
// link download attribute does not work on MS browsers
navigator.msSaveBlob(blob, filename);
} else {
link.href = URL.createObjectURL(blob);
link.download = filename;
link.click();
}
link.href = URL.createObjectURL(blob);
link.download = filename;
link.click();
});
}

View File

@@ -101,14 +101,9 @@ function download(fullpath, filename) {
return response.blob();
})
.then(function (blob) {
if (navigator.msSaveBlob) {
// link download attribute does not work on MS browsers
navigator.msSaveBlob(blob, filename);
} else {
link.href = URL.createObjectURL(blob);
link.download = filename;
link.click();
}
link.href = URL.createObjectURL(blob);
link.download = filename;
link.click();
});
}

View File

@@ -99,14 +99,9 @@ document.getElementById('export-png').addEventListener('click', function () {
}
);
mapContext.globalAlpha = 1;
if (navigator.msSaveBlob) {
// link download attribute does not work on MS browsers
navigator.msSaveBlob(mapCanvas.msToBlob(), 'map.png');
} else {
const link = document.getElementById('image-download');
link.href = mapCanvas.toDataURL();
link.click();
}
const link = document.getElementById('image-download');
link.href = mapCanvas.toDataURL();
link.click();
});
map.renderSync();
});

View File

@@ -2,9 +2,6 @@
height: 100%;
margin: 0;
}
.map:-ms-fullscreen {
height: 100%;
}
.map:fullscreen {
height: 100%;
}

View File

@@ -2,9 +2,6 @@
height: 100%;
margin: 0;
}
.fullscreen:-ms-fullscreen {
height: 100%;
}
.fullscreen:fullscreen {
height: 100%;

View File

@@ -2,9 +2,6 @@
height: 100%;
margin: 0;
}
.map:-ms-fullscreen {
height: 100%;
}
.map:fullscreen {
height: 100%;
}

View File

@@ -8,9 +8,6 @@
height: 100%;
margin: 0;
}
.map:-ms-fullscreen {
height: 100%;
}
.map:fullscreen {
height: 100%;
}

View File

@@ -36,12 +36,11 @@
codepenButton.href = form.action;
codepenButton.addEventListener('click', function (event) {
event.preventDefault();
const innerText = document.documentMode ? 'textContent' : 'innerText';
const html = document.getElementById('example-html-source')[innerText];
const js = document.getElementById('example-js-source')[innerText];
const html = document.getElementById('example-html-source').innerText;
const js = document.getElementById('example-js-source').innerText;
const workerContainer = document.getElementById('example-worker-source');
const worker = workerContainer ? workerContainer[innerText] : undefined;
const pkgJson = document.getElementById('example-pkg-source')[innerText];
const worker = workerContainer ? workerContainer.innerText : undefined;
const pkgJson = document.getElementById('example-pkg-source').innerText;
const unique = new Set();
const localResources = (js.match(/'(\.\/)?data\/[^']*/g) || [])