mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
remove advanced tracking
This commit is contained in:
parent
60f92142ca
commit
86e3a5147e
4 changed files with 0 additions and 13 deletions
|
|
@ -4,7 +4,6 @@
|
||||||
// download map as SVG
|
// download map as SVG
|
||||||
async function saveSVG() {
|
async function saveSVG() {
|
||||||
TIME && console.time("saveSVG");
|
TIME && console.time("saveSVG");
|
||||||
track("export", "svg");
|
|
||||||
const url = await getMapURL("svg");
|
const url = await getMapURL("svg");
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
link.download = getFileName() + ".svg";
|
link.download = getFileName() + ".svg";
|
||||||
|
|
@ -18,7 +17,6 @@ async function saveSVG() {
|
||||||
// download map as PNG
|
// download map as PNG
|
||||||
async function savePNG() {
|
async function savePNG() {
|
||||||
TIME && console.time("savePNG");
|
TIME && console.time("savePNG");
|
||||||
track("export", "png");
|
|
||||||
const url = await getMapURL("png");
|
const url = await getMapURL("png");
|
||||||
|
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
|
|
@ -49,7 +47,6 @@ async function savePNG() {
|
||||||
// download map as JPEG
|
// download map as JPEG
|
||||||
async function saveJPEG() {
|
async function saveJPEG() {
|
||||||
TIME && console.time("saveJPEG");
|
TIME && console.time("saveJPEG");
|
||||||
track("export", "jpg");
|
|
||||||
const url = await getMapURL("png");
|
const url = await getMapURL("png");
|
||||||
|
|
||||||
const canvas = document.createElement("canvas");
|
const canvas = document.createElement("canvas");
|
||||||
|
|
@ -379,7 +376,6 @@ function inlineStyle(clone) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveGeoJSON_Cells() {
|
function saveGeoJSON_Cells() {
|
||||||
track("export", "getJSON cells");
|
|
||||||
const json = {type: "FeatureCollection", features: []};
|
const json = {type: "FeatureCollection", features: []};
|
||||||
const cells = pack.cells;
|
const cells = pack.cells;
|
||||||
const getPopulation = i => {
|
const getPopulation = i => {
|
||||||
|
|
@ -410,7 +406,6 @@ function saveGeoJSON_Cells() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveGeoJSON_Routes() {
|
function saveGeoJSON_Routes() {
|
||||||
track("export", "getJSON routes");
|
|
||||||
const json = {type: "FeatureCollection", features: []};
|
const json = {type: "FeatureCollection", features: []};
|
||||||
|
|
||||||
routes.selectAll("g > path").each(function () {
|
routes.selectAll("g > path").each(function () {
|
||||||
|
|
@ -427,7 +422,6 @@ function saveGeoJSON_Routes() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveGeoJSON_Rivers() {
|
function saveGeoJSON_Rivers() {
|
||||||
track("export", "getJSON rivers");
|
|
||||||
const json = {type: "FeatureCollection", features: []};
|
const json = {type: "FeatureCollection", features: []};
|
||||||
|
|
||||||
rivers.selectAll("path").each(function () {
|
rivers.selectAll("path").each(function () {
|
||||||
|
|
@ -450,8 +444,6 @@ function saveGeoJSON_Rivers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveGeoJSON_Markers() {
|
function saveGeoJSON_Markers() {
|
||||||
track("export", "getJSON markers");
|
|
||||||
|
|
||||||
const features = pack.markers.map(marker => {
|
const features = pack.markers.map(marker => {
|
||||||
const {i, type, icon, x, y, size, fill, stroke, size} = marker;
|
const {i, type, icon, x, y, size, fill, stroke, size} = marker;
|
||||||
const coordinates = getQGIScoordinates(x, y);
|
const coordinates = getQGIScoordinates(x, y);
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,6 @@ function loadMapPrompt(blob) {
|
||||||
|
|
||||||
function loadLastSavedMap() {
|
function loadLastSavedMap() {
|
||||||
WARN && console.warn("Load last saved map");
|
WARN && console.warn("Load last saved map");
|
||||||
track("load", `from browser storage`);
|
|
||||||
try {
|
try {
|
||||||
uploadMap(blob);
|
uploadMap(blob);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
@ -79,7 +78,6 @@ function loadMapPrompt(blob) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadMapFromURL(maplink, random) {
|
function loadMapFromURL(maplink, random) {
|
||||||
track("load", `from url`);
|
|
||||||
const URL = decodeURIComponent(maplink);
|
const URL = decodeURIComponent(maplink);
|
||||||
|
|
||||||
fetch(URL, {method: "GET", mode: "cors"})
|
fetch(URL, {method: "GET", mode: "cors"})
|
||||||
|
|
@ -95,7 +93,6 @@ function loadMapFromURL(maplink, random) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function showUploadErrorMessage(error, URL, random) {
|
function showUploadErrorMessage(error, URL, random) {
|
||||||
track("error", `map load from url`);
|
|
||||||
ERROR && console.error(error);
|
ERROR && console.error(error);
|
||||||
alertMessage.innerHTML = `Cannot load map from the ${link(URL, "link provided")}.
|
alertMessage.innerHTML = `Cannot load map from the ${link(URL, "link provided")}.
|
||||||
${random ? `A new random map is generated. ` : ""}
|
${random ? `A new random map is generated. ` : ""}
|
||||||
|
|
|
||||||
|
|
@ -1061,7 +1061,6 @@ function editHeightmap(options) {
|
||||||
|
|
||||||
function openImageConverter() {
|
function openImageConverter() {
|
||||||
if ($("#imageConverter").is(":visible")) return;
|
if ($("#imageConverter").is(":visible")) return;
|
||||||
track("edit", "convert image");
|
|
||||||
imageToLoad.click();
|
imageToLoad.click();
|
||||||
closeDialogs('#imageConverter');
|
closeDialogs('#imageConverter');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -931,7 +931,6 @@ function enterStandardView() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function enter3dView(type) {
|
async function enter3dView(type) {
|
||||||
track("click", `3d mode: ${type}`);
|
|
||||||
const canvas = document.createElement("canvas");
|
const canvas = document.createElement("canvas");
|
||||||
canvas.id = "canvas3d";
|
canvas.id = "canvas3d";
|
||||||
canvas.dataset.type = type;
|
canvas.dataset.type = type;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue