This commit is contained in:
Azgaar 2019-10-19 12:03:50 +03:00
parent 69e81a0cbe
commit 801dc99f23

View file

@ -56,6 +56,7 @@ async function getMapURL(type) {
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
if (isFirefox && type === "mesh") clone.select("#oceanPattern").remove(); if (isFirefox && type === "mesh") clone.select("#oceanPattern").remove();
if (type === "mesh") clone.attr("width", graphWidth).attr("height", graphHeight);
if (type !== "png") clone.select("#viewbox").attr("transform", null); // reset transform to show whole map if (type !== "png") clone.select("#viewbox").attr("transform", null); // reset transform to show whole map
if (type === "svg") removeUnusedElements(clone); if (type === "svg") removeUnusedElements(clone);
if (type === "mesh") updateMeshCells(clone); if (type === "mesh") updateMeshCells(clone);