remove advanced tracking

This commit is contained in:
Azgaar 2021-10-13 11:09:04 +03:00
parent 1a2243472b
commit b438fedf9a
6 changed files with 6 additions and 33 deletions

View file

@ -15,18 +15,9 @@ function editHeightmap() {
title: "Edit Heightmap",
width: "28em",
buttons: {
Erase: function () {
track("edit", "heightmap erase");
enterHeightmapEditMode("erase");
},
Keep: function () {
track("edit", "heightmap keep");
enterHeightmapEditMode("keep");
},
Risk: function () {
track("edit", "heightmap risk");
enterHeightmapEditMode("risk");
},
Erase: () => enterHeightmapEditMode("erase"),
Keep: () => enterHeightmapEditMode("keep"),
Risk: () => enterHeightmapEditMode("risk"),
Cancel: function () {
$(this).dialog("close");
}
@ -704,7 +695,6 @@ function editHeightmap() {
function openTemplateEditor() {
if ($("#templateEditor").is(":visible")) return;
track("edit", "template editor");
const body = document.getElementById("templateBody");
$("#templateEditor").dialog({
@ -941,7 +931,6 @@ function editHeightmap() {
function openImageConverter() {
if ($("#imageConverter").is(":visible")) return;
track("edit", "convert image");
imageToLoad.click();
closeDialogs("#imageConverter");

View file

@ -781,7 +781,6 @@ function loadURL() {
// load map
document.getElementById("mapToLoad").addEventListener("change", function () {
track("load", `from local file`);
const fileToLoad = this.files[0];
this.value = "";
closeDialogs();
@ -804,7 +803,6 @@ function openSaveTiles() {
width: "23em",
buttons: {
Download: function () {
track("export", `tiles`);
status.innerHTML = "Preparing for download...";
setTimeout(() => (status.innerHTML = "Downloading. It may take some time."), 1000);
loading = setInterval(() => (status.innerHTML += "."), 1000);
@ -890,7 +888,6 @@ function enterStandardView() {
}
async function enter3dView(type) {
track("click", `3d mode: ${type}`);
const canvas = document.createElement("canvas");
canvas.id = "canvas3d";
canvas.dataset.type = type;