-
-
-
-
-
->>>>>>> 01fbfca0 (markers - generate tool + lock tooltip)
-<<<<<<< HEAD
-=======
-
->>>>>>> 01fbfca0 (markers - generate tool + lock tooltip)
@@ -226,7 +207,6 @@ function overviewBurgs() {
function toggleBurgLockStatus() {
const burgId = +this.parentNode.dataset.id;
-<<<<<<< HEAD
const burg = pack.burgs[burgId];
burg.lock = !burg.lock;
@@ -241,8 +221,6 @@ function overviewBurgs() {
}
}
-=======
->>>>>>> 01fbfca0 (markers - generate tool + lock tooltip)
function openBurgEditor() {
const burg = +this.parentNode.dataset.id;
editBurg(burg);
@@ -435,7 +413,6 @@ function overviewBurgs() {
if (this.value === "provinces") return d.province;
};
-<<<<<<< HEAD
const mapping = {
states: getStatesData,
cultures: getCulturesData,
@@ -444,16 +421,6 @@ function overviewBurgs() {
};
const base = mapping[this.value]();
-=======
- const base =
- this.value === "states"
- ? getStatesData()
- : this.value === "cultures"
- ? getCulturesData()
- : this.value === "parent"
- ? getParentData()
- : getProvincesData();
->>>>>>> 01fbfca0 (markers - generate tool + lock tooltip)
burgs.forEach(b => (b.id = b.i + base.length - 1));
const data = base.concat(burgs);
@@ -485,17 +452,10 @@ function overviewBurgs() {
}
function downloadBurgsData() {
-<<<<<<< HEAD
let data = `Id,Burg,Province,Province Full Name,State,State Full Name,Culture,Religion,Population,Latitude,Longitude,Elevation (${heightUnit.value}),Capital,Port,Citadel,Walls,Plaza,Temple,Shanty Town`; // headers
if (options.showMFCGMap) data += `,City Generator Link`;
data += "\n";
-=======
- let data =
- "Id,Burg,Province,Province Full Name,State,State Full Name,Culture,Religion,Population,Longitude,Latitude,Elevation (" +
- heightUnit.value +
- "),Capital,Port,Citadel,Walls,Plaza,Temple,Shanty Town\n"; // headers
->>>>>>> 01fbfca0 (markers - generate tool + lock tooltip)
const valid = pack.burgs.filter(b => b.i && !b.removed); // all valid burgs
valid.forEach((b) => {
diff --git a/modules/ui/editors.js b/modules/ui/editors.js
index f3f31b20..f17b2dcf 100644
--- a/modules/ui/editors.js
+++ b/modules/ui/editors.js
@@ -295,7 +295,6 @@ function getBurgSeed(burg) {
return burg.MFCG || Number(`${seed}${String(burg.i).padStart(4, 0)}`);
}
-<<<<<<< HEAD
function getMFCGlink(burg) {
if (burg.link) return burg.link;
@@ -357,8 +356,6 @@ function getMFCGlink(burg) {
return url.toString();
}
-=======
->>>>>>> 01fbfca0 (markers - generate tool + lock tooltip)
// draw legend box
function drawLegend(name, data) {
legend.selectAll('*').remove(); // fully redraw every time
@@ -472,7 +469,7 @@ function clearLegend() {
}
// draw color (fill) picker
-function createPicker(hatching) {
+function createPicker() {
const COLORS_IN_ROW = 14;
const pos = () => tip("Drag to change the picker position");
const cl = () => tip("Click to close the picker");
diff --git a/modules/ui/general.js b/modules/ui/general.js
index 030ada19..4305f016 100644
--- a/modules/ui/general.js
+++ b/modules/ui/general.js
@@ -74,13 +74,8 @@ function showElementLockTip(event) {
}
}
-<<<<<<< HEAD
const onMouseMove = debounce(handleMouseMove, 100);
function handleMouseMove() {
-=======
-const moved = debounce(mouseMove, 100);
-function mouseMove() {
->>>>>>> 01fbfca0 (markers - generate tool + lock tooltip)
const point = d3.mouse(this);
const i = findCell(point[0], point[1]); // pack cell id
if (i === undefined) return;
@@ -126,15 +121,11 @@ function showMapTooltip(point, e, i, g) {
if (group === "emblems" && e.target.tagName === "use") {
const parent = e.target.parentNode;
const [g, type] =
-<<<<<<< HEAD
parent.id === "burgEmblems"
? [pack.burgs, "burg"]
: parent.id === "provinceEmblems"
? [pack.provinces, "province"]
: [pack.states, "state"];
-=======
- parent.id === "burgEmblems" ? [pack.burgs, "burg"] : parent.id === "provinceEmblems" ? [pack.provinces, "province"] : [pack.states, "state"];
->>>>>>> 01fbfca0 (markers - generate tool + lock tooltip)
const i = +e.target.dataset.i;
if (event.shiftKey) highlightEmblemElement(type, g[i]);
diff --git a/modules/ui/heightmap-editor.js b/modules/ui/heightmap-editor.js
index 783f8145..3537c668 100644
--- a/modules/ui/heightmap-editor.js
+++ b/modules/ui/heightmap-editor.js
@@ -1461,3 +1461,4 @@ function editHeightmap(options) {
};
}
}
+}
diff --git a/modules/ui/routes-editor.js b/modules/ui/routes-editor.js
index 962eab22..4aefcdb1 100644
--- a/modules/ui/routes-editor.js
+++ b/modules/ui/routes-editor.js
@@ -338,3 +338,4 @@ function editRoute(onClick) {
unselect();
}
}
+}
\ No newline at end of file