Spaces:
Sleeping
Sleeping
viewer: 只读语义文案对齐、清理死状态、DB 路径多候选+启动校验
Browse files- web/app.js +8 -12
web/app.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
-
/* SetVL node graph
|
| 2 |
*
|
| 3 |
-
* 操作逻辑沿用
|
| 4 |
-
*
|
| 5 |
-
*
|
| 6 |
*
|
| 7 |
-
* 快捷键
|
| 8 |
-
* J/K 导航
|
| 9 |
-
*
|
| 10 |
*/
|
| 11 |
'use strict';
|
| 12 |
|
|
@@ -16,7 +16,7 @@ var S = {
|
|
| 16 |
scenes: [], sceneSel: null,
|
| 17 |
scene: null, offset: 0, limit: 100,
|
| 18 |
basemap: 'satellite', mapZoom: 17, edgeMode: 'road',
|
| 19 |
-
boot: null,
|
| 20 |
};
|
| 21 |
|
| 22 |
function $(id) { return document.getElementById(id); }
|
|
@@ -138,7 +138,6 @@ function renderScenes() {
|
|
| 138 |
}
|
| 139 |
|
| 140 |
function openScene(sceneId) {
|
| 141 |
-
S.pending = {};
|
| 142 |
S.selected = null;
|
| 143 |
S.scene = null;
|
| 144 |
loadScene(sceneId).then(function () {
|
|
@@ -272,7 +271,6 @@ function navigateScenes(delta) {
|
|
| 272 |
}
|
| 273 |
|
| 274 |
function selectItem(item) {
|
| 275 |
-
S.pending = {};
|
| 276 |
var key = item.kind === 'node'
|
| 277 |
? [item.scene_id, item.item_key]
|
| 278 |
: [item.scene_id].concat(item.item_key.split('-'));
|
|
@@ -545,7 +543,6 @@ function drawGroundImages() {
|
|
| 545 |
}
|
| 546 |
|
| 547 |
function pickNode(n) {
|
| 548 |
-
S.pending = {};
|
| 549 |
S.selected = { kind: 'node', scene_id: S.scene.scene.scene_id,
|
| 550 |
key: [S.scene.scene.scene_id, n.label] };
|
| 551 |
drawScene();
|
|
@@ -553,7 +550,6 @@ function pickNode(n) {
|
|
| 553 |
renderList();
|
| 554 |
}
|
| 555 |
function pickEdge(e) {
|
| 556 |
-
S.pending = {};
|
| 557 |
S.selected = { kind: 'edge', scene_id: S.scene.scene.scene_id,
|
| 558 |
key: [S.scene.scene.scene_id, e.source_label, e.target_label] };
|
| 559 |
drawScene();
|
|
|
|
| 1 |
+
/* SetVL node graph 浏览器 —— 零构建步骤的原生 JS。
|
| 2 |
*
|
| 3 |
+
* 界面与操作逻辑沿用标注台:三栏布局、全键盘流、底图切换、图片放大、
|
| 4 |
+
* 列表 J/K 导航、邻接矩阵、走廊着色。区别是本工具**只读**——展示自动化
|
| 5 |
+
* 流水线产出的最终图,不写回任何判定。
|
| 6 |
*
|
| 7 |
+
* 快捷键:
|
| 8 |
+
* J/K 列表导航 [ ] 翻页 Q 切换全部场景/带信号的
|
| 9 |
+
* B 切底图 E 切边的画法(沿路走线 / 直线) ? 帮助
|
| 10 |
*/
|
| 11 |
'use strict';
|
| 12 |
|
|
|
|
| 16 |
scenes: [], sceneSel: null,
|
| 17 |
scene: null, offset: 0, limit: 100,
|
| 18 |
basemap: 'satellite', mapZoom: 17, edgeMode: 'road',
|
| 19 |
+
boot: null,
|
| 20 |
};
|
| 21 |
|
| 22 |
function $(id) { return document.getElementById(id); }
|
|
|
|
| 138 |
}
|
| 139 |
|
| 140 |
function openScene(sceneId) {
|
|
|
|
| 141 |
S.selected = null;
|
| 142 |
S.scene = null;
|
| 143 |
loadScene(sceneId).then(function () {
|
|
|
|
| 271 |
}
|
| 272 |
|
| 273 |
function selectItem(item) {
|
|
|
|
| 274 |
var key = item.kind === 'node'
|
| 275 |
? [item.scene_id, item.item_key]
|
| 276 |
: [item.scene_id].concat(item.item_key.split('-'));
|
|
|
|
| 543 |
}
|
| 544 |
|
| 545 |
function pickNode(n) {
|
|
|
|
| 546 |
S.selected = { kind: 'node', scene_id: S.scene.scene.scene_id,
|
| 547 |
key: [S.scene.scene.scene_id, n.label] };
|
| 548 |
drawScene();
|
|
|
|
| 550 |
renderList();
|
| 551 |
}
|
| 552 |
function pickEdge(e) {
|
|
|
|
| 553 |
S.selected = { kind: 'edge', scene_id: S.scene.scene.scene_id,
|
| 554 |
key: [S.scene.scene.scene_id, e.source_label, e.target_label] };
|
| 555 |
drawScene();
|