diff --git a/_datafiles/html/admin/static/js/mapper/mapper-init.js b/_datafiles/html/admin/static/js/mapper/mapper-init.js
index bdfb3dc5b..760087aeb 100644
--- a/_datafiles/html/admin/static/js/mapper/mapper-init.js
+++ b/_datafiles/html/admin/static/js/mapper/mapper-init.js
@@ -17,11 +17,11 @@
/* jshint esversion: 11, browser: true */
/* globals MapperState, MapperRender, MapperTools, MapperCtxMenu, MapperUI, MapperEvents, AdminAPI,
BASE_STEP_2D, ROOM_SIZE_2D, ROOM_BORDER_COLOR_2D, ROOM_BORDER_WIDTH_2D, SYMBOL_FONT_SIZE_2D,
- MAP_BG_2D, CONNECTION_COLOR, ABNORMAL_CONNECTION_COLOR, SELECTED_ROOM_COLOR, SELECTED_ROOM_TEXT_COLOR,
+ MAP_BG_2D, CONNECTION_COLOR: true, ABNORMAL_CONNECTION_COLOR, SELECTED_ROOM_COLOR, SELECTED_ROOM_TEXT_COLOR,
SYMBOL_TEXT_COLOR, ROOM_BORDER_MOB_SPAWN, ROOM_BORDER_SCRIPT_GLOW, ROOM_ARROW_COLOR,
BADGE_SECRET_COLOR, BADGE_LOCK_COLOR, ZONE_BOX_COLOR, ZONE_BOX_COLOR_HOV, ZONE_BOX_BORDER,
ZONE_BOX_BORDER_HOV, ZONE_BOX_PADDING, computeZonePaddedBounds,
- CONNECTION_WIDTH_2D */
+ CONNECTION_WIDTH_2D: true */
'use strict';
(function() {
diff --git a/_datafiles/html/admin/static/js/mapper/mapper-render.js b/_datafiles/html/admin/static/js/mapper/mapper-render.js
index 9f603cef2..1f78eacb8 100644
--- a/_datafiles/html/admin/static/js/mapper/mapper-render.js
+++ b/_datafiles/html/admin/static/js/mapper/mapper-render.js
@@ -423,7 +423,7 @@ var MapperRender = (function() {
// Pass 2: abnormal edges (yellow dotted arcs)
if (abnormalEdges.length > 0) {
ctx.strokeStyle = ABNORMAL_CONNECTION_COLOR;
- ctx.lineWidth = Math.max(1, CONNECTION_WIDTH_2D * cam.zoomScale * .5);
+ ctx.lineWidth = Math.max(1, CONNECTION_WIDTH_2D * cam.zoomScale * 0.5);
ctx.setLineDash([Math.max(3, 4 * cam.zoomScale), Math.max(4, 5 * cam.zoomScale)]);
abnormalEdges.forEach(function(ae) {
var pA = gridToCanvas2d(ae.room.MapX, ae.room.MapY);
diff --git a/_datafiles/html/admin/static/js/mapper/mapper-state.js b/_datafiles/html/admin/static/js/mapper/mapper-state.js
index 0746efbaa..75b2de0e9 100644
--- a/_datafiles/html/admin/static/js/mapper/mapper-state.js
+++ b/_datafiles/html/admin/static/js/mapper/mapper-state.js
@@ -1,5 +1,5 @@
/* jshint esversion: 11, browser: true */
-/* globals MapperEvents, AdminAPI, symbolForRoom, colorForSymbol, bgColorForBiome, contrastColor, escapeHtml, isDirectionalExit, DIRECTION_DELTAS, isExitConstraintSatisfied, buildDragConstraints, breakExitLocally, BIOME_SYMBOLS, BIOME_COLORS, BIOME_BG_COLORS, BIOME_SYMBOL_OVERRIDES, biomeEnvMap, invalidateZoneBoundsCache */
+/* globals MapperEvents, AdminAPI, symbolForRoom, colorForSymbol, bgColorForBiome, contrastColor, escapeHtml, isDirectionalExit, DIRECTION_DELTAS, isExitConstraintSatisfied, buildDragConstraints, breakExitLocally, ansi256ToHex, BIOME_SYMBOLS, BIOME_COLORS, BIOME_BG_COLORS, BIOME_SYMBOL_OVERRIDES, biomeEnvMap, invalidateZoneBoundsCache */
'use strict';
/**
@@ -358,7 +358,7 @@ var MapperState = (function() {
});
// Update selection
- if (selected.has(oldId)) { selected.delete(oldId); selected.add(newId); }
+ if (selectedRoomIds.has(oldId)) { selectedRoomIds.delete(oldId); selectedRoomIds.add(newId); }
}
function moveRoomLocally(roomId, newGx, newGy) {
diff --git a/_datafiles/html/admin/static/js/mapper/mapper-ui.js b/_datafiles/html/admin/static/js/mapper/mapper-ui.js
index 636fcd646..5325056c9 100644
--- a/_datafiles/html/admin/static/js/mapper/mapper-ui.js
+++ b/_datafiles/html/admin/static/js/mapper/mapper-ui.js
@@ -1496,7 +1496,7 @@ var MapperUI = (function() {
backdrop.onclick = function(e) { if (e.target === backdrop) close(); };
// Keyboard: Escape closes, Ctrl+Enter saves
- backdrop._keyHandler && document.removeEventListener('keydown', backdrop._keyHandler);
+ if (backdrop._keyHandler) document.removeEventListener('keydown', backdrop._keyHandler);
backdrop._keyHandler = function(e) {
if (!backdrop.classList.contains('visible')) return;
if (e.key === 'Escape') { e.stopPropagation(); close(); }