v1.6.11 - fix saving issues

This commit is contained in:
Azgaar 2021-03-06 01:54:26 +03:00
parent 8767893d72
commit 69c44317e3
4 changed files with 10 additions and 15 deletions

View file

@ -138,10 +138,10 @@ function showMapTooltip(point, e, i, g) {
if (group === "labels") {tip("Click to edit the Label"); return;}
if (group === "markers") {tip("Click to edit the Marker"); return;}
if (group === "ruler") {
if (tag === "rect") {tip("Drag to split the ruler into 2 parts"); return;}
if (tag === "circle") {tip("Drag to adjust the measurer"); return;}
if (tag === "path" || tag === "line") {tip("Drag to move the measurer"); return;}
if (tag === "text") {tip("Click to remove the measurer"); return;}
if (tag === "path") {tip("Drag to move the measurer"); return;}
if (tag === "polyline") {tip("Drag to add a control point"); return;}
if (tag === "text") {tip("Drag to move, click to remove the measurer"); return;}
}
if (subgroup === "burgIcons") {tip("Click to edit the Burg"); return;}
if (subgroup === "burgLabels") {tip("Click to edit the Burg"); return;}

View file

@ -235,6 +235,7 @@ function editUnits() {
restoreDefaultEvents();
clearMainTip();
addOpisometer.classList.remove("pressed");
if (opisometer.points.length < 2) rulers.remove(opisometer.id);
if (!d3.event.sourceEvent.shiftKey) opisometer.optimize();
});
}));
@ -264,7 +265,8 @@ function editUnits() {
restoreDefaultEvents();
clearMainTip();
addPlanimeter.classList.remove("pressed");
if (!d3.event.sourceEvent.shiftKey) planimeter.optimize();
if (planimeter.points.length < 3) rulers.remove(planimeter.id);
else if (!d3.event.sourceEvent.shiftKey) planimeter.optimize();
});
}));