Xong phần map viewer
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-20 09:18:19 +02:00
parent 819323f8c8
commit 90e8e9d252
13 changed files with 431 additions and 32 deletions

View File

@@ -1016,6 +1016,9 @@
<button type="button" class="mapEditorMapTool" id="mapEditorCrosshairBtn" disabled data-i18n-title="maps.editor.tool.crosshair" title="Crosshair">
<svg width="20" height="20" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="6" fill="none" stroke="currentColor" stroke-width="1.4"/><path d="M10 4v12M4 10h12" stroke="currentColor" stroke-width="1.3"/></svg>
</button>
<button type="button" class="mapEditorMapTool is-active" id="mapEditorOriginBtn" data-i18n-title="maps.editor.tool.origin" title="Show origin" aria-pressed="true">
<svg width="20" height="20" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="2.2" fill="currentColor"/><path d="M10 10h7.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M10 10V2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>
</button>
<button type="button" class="mapEditorMapTool" id="mapEditorFitBtn" data-i18n-title="maps.editor.fit" title="Fit">
<svg width="20" height="20" viewBox="0 0 20 20" aria-hidden="true"><path d="M3 7V3h4M13 3h4v4M17 13h-4v4M7 17H3v-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
@@ -1045,12 +1048,14 @@
<div class="mapEditorImageLayer" id="mapEditorImageLayer">
<div class="mapEditorSheet" id="mapEditorSheet">
<div class="mapEditorSheetGrid" id="mapEditorSheetGrid" aria-hidden="true"></div>
<img id="mapEditorImage" class="mapEditorImage" alt="" draggable="false" hidden />
<img id="mapEditorImage" class="mapEditorImageLoader" alt="" draggable="false" hidden />
<canvas id="mapEditorOccupancyCanvas" class="mapEditorOccupancyCanvas" hidden aria-hidden="true"></canvas>
<div id="mapEditorOrigin" class="mapEditorOrigin" hidden aria-hidden="true">
<span class="mapEditorOriginAxis mapEditorOriginAxis--x" aria-hidden="true"></span>
<span class="mapEditorOriginAxis mapEditorOriginAxis--y" aria-hidden="true"></span>
<span class="mapEditorOriginAxis mapEditorOriginAxis--z" aria-hidden="true"></span>
<span class="mapEditorOriginDot" aria-hidden="true"></span>
<span class="mapEditorOriginLabel" id="mapEditorOriginLabel"></span>
<button type="button" class="mapEditorOriginHit" id="mapEditorOriginHit" tabindex="0" aria-describedby="mapEditorOriginLabel"></button>
<span class="mapEditorOriginLabel" id="mapEditorOriginLabel" aria-hidden="true"></span>
</div>
<div id="mapEditorEmpty" class="mapEditorEmpty" hidden data-i18n="maps.editor.noData">No map data — open ⋮ menu to upload a PNG.</div>
</div>
@@ -1723,6 +1728,7 @@ GET /api/v2.0.0/status</pre>
<script src="/nav.js"></script>
<script src="/missions.js"></script>
<script src="/map-geo.js"></script>
<script src="/map-occupancy-canvas.js"></script>
<script src="/map-yaml.js"></script>
<script src="/maps.js"></script>
<script src="/map-editor.js"></script>