Skip to content

Commit acafcd2

Browse files
committed
feat: Implement core 3D rendering, hierarchical pathfinding, and web worker architecture with new UI components and utilities.
1 parent c5f8029 commit acafcd2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3402
-10687
lines changed

.yarn/install-state.gz

-174 KB
Binary file not shown.

index.html

Lines changed: 78 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,30 @@
1010
<div class="container">
1111
<!-- 移动端:横向Tab导航(仅在小屏显示) -->
1212
<nav id="mobile-tabs" aria-label="主模块切换" role="tablist">
13-
<button class="tab-btn" role="tab" aria-selected="true" data-target="visualization-panel">地图</button>
14-
<button class="tab-btn" role="tab" aria-selected="false" data-target="operation-panel">操作</button>
15-
<button class="tab-btn" role="tab" aria-selected="false" data-target="interpretation-panel">解读</button>
13+
<button
14+
class="tab-btn"
15+
role="tab"
16+
aria-selected="true"
17+
data-target="visualization-panel"
18+
>
19+
地图
20+
</button>
21+
<button
22+
class="tab-btn"
23+
role="tab"
24+
aria-selected="false"
25+
data-target="operation-panel"
26+
>
27+
操作
28+
</button>
29+
<button
30+
class="tab-btn"
31+
role="tab"
32+
aria-selected="false"
33+
data-target="interpretation-panel"
34+
>
35+
解读
36+
</button>
1637
</nav>
1738
<!-- 左栏:操作面板 (Operation Panel) -->
1839
<section class="operation-panel">
@@ -47,7 +68,10 @@ <h3>基础参数</h3>
4768
启用视窗裁剪
4869
</label>
4970
</div>
50-
<div class="input-group" title="裁剪边距(像素),避免临界闪烁。范围建议 64-256">
71+
<div
72+
class="input-group"
73+
title="裁剪边距(像素),避免临界闪烁。范围建议 64-256"
74+
>
5175
<label for="culling-margin-input">裁剪边距(像素)</label>
5276
<input
5377
autocomplete="off"
@@ -68,15 +92,34 @@ <h3>基础参数</h3>
6892
/>
6993
</div>
7094
<div class="input-group">
71-
<label for="layer-input">层数 (Layers)</label>
95+
<label for="layer-input">楼层数 (Floors)</label>
7296
<input
7397
autocomplete="off"
7498
type="text"
7599
id="layer-input"
76-
value="1"
100+
value="2"
77101
placeholder="1-10"
78102
/>
79103
</div>
104+
105+
<!-- Floor entrances input - shown only when floors > 1 -->
106+
<div
107+
class="input-group"
108+
id="floor-entrance-group"
109+
style="display: none"
110+
>
111+
<label for="floor-entrance-input"
112+
>楼层出入口 (Stairs/Elevators)</label
113+
>
114+
<input
115+
autocomplete="off"
116+
type="text"
117+
id="floor-entrance-input"
118+
value="4"
119+
placeholder="2-10"
120+
title="每两层之间的楼梯和电梯数量"
121+
/>
122+
</div>
80123
<div class="input-group">
81124
<label for="obstacle-input">障碍物数量 (Obstacles)</label>
82125
<input
@@ -169,7 +212,10 @@ <h3>生成模式</h3>
169212
使用 BitmapText(更高效)
170213
</label>
171214
</div>
172-
<div class="input-group" title="当单元像素尺寸低于阈值时隐藏编号,0 表示始终显示">
215+
<div
216+
class="input-group"
217+
title="当单元像素尺寸低于阈值时隐藏编号,0 表示始终显示"
218+
>
173219
<label for="label-minpx-input">编号显示阈值(像素)</label>
174220
<input
175221
autocomplete="off"
@@ -313,7 +359,9 @@ <h2>可视化面板</h2>
313359

314360
<!-- 画布提示信息(简化版) -->
315361
<div class="canvas-hint">
316-
<p id="canvas-hint-text">💡 鼠标滚轮缩放,拖拽平移,点击节点进行路径规划</p>
362+
<p id="canvas-hint-text">
363+
💡 鼠标滚轮缩放,拖拽平移,点击节点进行路径规划
364+
</p>
317365
</div>
318366
</div>
319367
</section>
@@ -326,6 +374,28 @@ <h2>数据解读</h2>
326374
<p class="panel-subtitle">Interpretation</p>
327375
</div>
328376

377+
<!-- 图层控制模块 -->
378+
<div class="interpretation-card" id="layer-control-card">
379+
<div class="card-header-row">
380+
<h3>图层控制</h3>
381+
</div>
382+
<div id="layer-control-section" style="padding: 12px 0">
383+
<!-- Layer checkboxes will be dynamically inserted here -->
384+
<div
385+
id="layer-info"
386+
class="layer-info-text"
387+
style="
388+
font-size: 11px;
389+
color: var(--text-secondary);
390+
line-height: 1.5;
391+
padding: 8px 0;
392+
border-top: 1px solid rgba(255, 255, 255, 0.08);
393+
margin-top: 8px;
394+
"
395+
></div>
396+
</div>
397+
</div>
398+
329399
<!-- 图例模块 -->
330400
<div class="interpretation-card" id="legend-card">
331401
<h3>图例</h3>
@@ -533,6 +603,5 @@ <h3>操作提示</h3>
533603
</div>
534604

535605
<script type="module" src="/src/main.js"></script>
536-
<script type="module" src="/src/utils/mobileUI.js"></script>
537606
</body>
538607
</html>

0 commit comments

Comments
 (0)