diff --git a/modules/dynamic/export-json.js b/modules/dynamic/export-json.js index d9e6d42e..593187f3 100644 --- a/modules/dynamic/export-json.js +++ b/modules/dynamic/export-json.js @@ -149,7 +149,6 @@ function getPackCellsData() { religion: Array.from(pack.cells.religion), province: Array.from(pack.cells.province) }; - const cellObjArr = []; { cellConverted.i.forEach(value => { @@ -223,3 +222,14 @@ function getPackVerticesData() { } return verticesArray; } + +function getGridCellsDataJson() { + TIME && console.time("getGridCellsDataJson"); + + const info = getMapInfo(); + const gridCells = getGridCellsData() + const exportData = {info,gridCells}; + + TIME && console.log("getGridCellsDataJson"); + return JSON.stringify(exportData); +} \ No newline at end of file diff --git a/modules/ui/burg-editor.js b/modules/ui/burg-editor.js index 063e0e7d..caf0ef68 100644 --- a/modules/ui/burg-editor.js +++ b/modules/ui/burg-editor.js @@ -621,6 +621,11 @@ function editBurg(id) { const id = elSelected.attr("data-id"); showBurgTemperatureGraph(id); } + function showTemperatureGraphs() { + const id = elSelected.attr("data-id"); + showTGForBurg(id); + } + function removeSelectedBurg() { const id = +elSelected.attr('data-id');