fix: redesign earth hud interactions and legend behavior

This commit is contained in:
linkong
2026-03-26 17:58:03 +08:00
parent ab09f0ba78
commit 30a29a6e34
15 changed files with 988 additions and 364 deletions

View File

@@ -6,6 +6,7 @@ import { CONFIG, CABLE_COLORS, PATHS, CABLE_STATE } from "./constants.js";
import { latLonToVector3 } from "./utils.js";
import { updateEarthStats, showStatusMessage } from "./ui.js";
import { showInfoCard } from "./info-card.js";
import { setLegendMode } from "./legend.js";
export let cableLines = [];
export let landingPoints = [];
@@ -383,6 +384,7 @@ export function handleCableClick(cable) {
lockedCable = cable;
const data = cable.userData;
setLegendMode("cables");
showInfoCard("cable", {
name: data.name,
owner: data.owner,