diff --git a/index.html b/index.html index 7cd238a1..734bce55 100644 --- a/index.html +++ b/index.html @@ -7703,9 +7703,9 @@ - + - + @@ -7755,7 +7755,6 @@ - number[][] diff --git a/modules/define-svg.js b/modules/define-svg.js index 5f59577e..0e71d13a 100644 --- a/modules/define-svg.js +++ b/modules/define-svg.js @@ -150,13 +150,6 @@ function defineSvg(width, height) { .attr("fill", "#e8f0f6") .attr("filter", "url(#splotch)"); - // assign events separately as not a viewbox child - scaleBar.on("mousemove", () => tip("Click to open Units Editor")).on("click", () => editUnits()); - - legend - .on("mousemove", () => tip("Drag to change the position. Click to hide the legend")) - .on("click", () => clearLegend()); - landmass.append("rect").attr("x", 0).attr("y", 0).attr("width", width).attr("height", height); oceanPattern diff --git a/modules/dynamic/editors/cultures-editor.js b/modules/dynamic/editors/cultures-editor.js index e2883238..a1969ca3 100644 --- a/modules/dynamic/editors/cultures-editor.js +++ b/modules/dynamic/editors/cultures-editor.js @@ -1,6 +1,6 @@ import {restoreDefaultEvents} from "/src/scripts/events"; import {findAll, findCell, getPackPolygon, isLand} from "/src/utils/graphUtils"; -import {showMainTip, clearMainTip} from "/src/scripts/tooltips"; +import {tip, showMainTip, clearMainTip} from "/src/scripts/tooltips"; import {byId} from "/src/utils/shorthands"; const $body = insertEditorHtml(); @@ -59,7 +59,6 @@ function insertEditorHtml() {