release: bump version to 0.84.0
This commit is contained in:
1 parent
3b1b9ef68c
commit
e1cc27f13d
241 files changed
+42779
-6027
No files matched your search
@@ -97,7 +97,7 @@ AIS vessel collectors use a different persistence path from regular `CollectedDa
|
||||
|
||||
`vessel_current_state` only lets newer observations overwrite dynamic position fields; static fields such as name and vessel type are merged by non-empty value and source priority. Earth snapshots return only vessels inside the freshness window, keeping high-frequency AIS history out of the display path.
|
||||
|
||||
Earth boundaries are no longer data collectors. They are Earth static rendering assets: the Earth Assets settings panel owns source configuration, and `/api/v1/earth/boundaries/*` builds `frontend/public/earth/data/boundaries/earth-boundaries-china-pov-v1.pmtiles`. When no high-precision PMTiles artifact is available locally, the frontend uses the bundled low-precision GeoJSON fallback and does not write boundary records to `CollectedData`.
|
||||
Earth boundaries and populated-place label catalogs are not data collectors. They are Earth static rendering assets: the Earth Content -> Boundary Precision panel (`PUT /api/v1/earth/boundaries/config`) owns source configuration, and `/api/v1/earth/boundaries/*` (`/status`, `/manifest`, `/build`, `/build/status`, plus `GET`/`HEAD` HTTP `Range` immutable `/files/{name}` isolated on `rate_limit_tier="tile"`) builds and serves `earth-boundaries.<assetVersion>.pmtiles`, `hover-index.<assetVersion>.json`, `hover-borders.<assetVersion>.json`, and `geo-labels.<assetVersion>.json` (`planet-earth-geo-labels/v1`, built from `earth_populated_places` under China POV rules). When no high-precision PMTiles artifact is built locally, the frontend uses the bundled `countries-admin0.china-pov-v1.geojson` fallback and does not write boundary records to `CollectedData`.
|
||||
|
||||
TOP500 and Epoch AI compute sources do not always provide usable coordinates. Epoch's official CSV `Location` may contain only a country or be empty even when a row has latitude/longitude; it is never treated as a precise site without the required source semantics. The unified Earth compute-center endpoint uses valid source-provided coordinates or `compute_center_locations` dimension-table coordinates during the main map startup path; records without renderable coordinates remain in the complete `unresolved` list instead of being rendered from a local registry, country centroid, or guessed headquarters. `precise`/`site` keep source coordinates; city-level and confirmation-required points may receive only a deterministic display offset keyed by `source` + `source_id`, with the original coordinate untouched. When users manually collect candidates, the backend queries ROR and Nominatim/OpenStreetMap from source fields; accepted candidates are saved into `compute_center_locations` and rendered from that table on the next layer refresh.
|
||||
|
||||
|
||||
@@ -295,7 +295,7 @@ The real satellite altitude preference is persisted by `controls.js`, while the
|
||||
|
||||
SGP4 propagation returns an inertial-frame position, so it must not be drawn directly as Earth-fixed longitude / latitude. `satellites.js` uses `gstime` to convert ECI/TEME positions to ECF, then maps that result into the same Three.js axes as `latLonToVector3()`. Satellite dots and short trails use Earth-fixed coordinates for each sample time, representing the object's current position relative to the globe surface. The locked predicted orbit uses the `gstime` from the lock moment for an open full-period prediction curve, projecting the inertial orbit plane onto the current globe pose. No first vertex or closing chord is appended; arc-length highlights travel toward increasing prediction time, and visual inclination stays aligned with the details card. Fallback predicted orbits must also use a real RAAN + inclination orbital-plane formula, not treat inclination as a constant latitude.
|
||||
|
||||
Boundary precision is stored separately by `country-boundaries.js` under `planet.earth.boundaries.highPrecisionEnabled`. When high precision is off, Earth keeps using the bundled low-precision `countries-admin0.min.geojson` fallback even if high-precision manifest/PMTiles files exist locally. When high precision is on but the artifact is missing, the Earth toolbar settings call `/api/v1/earth/boundaries/build` and poll progress. After success, `reloadCountryBoundaries()` hot-swaps the boundary layer without refreshing the page. Boundary hover is independent from interactable hover: a country polygon remains highlighted whenever the surface coordinate is inside it, while the tooltip can still prioritize a satellite, vessel, BGP marker, or other interactable.
|
||||
Boundary precision is stored separately by `country-boundaries.js` under `planet.earth.boundaries.highPrecisionEnabled`. When high precision is off, Earth keeps using the bundled low-precision `countries-admin0.china-pov-v1.geojson` fallback even if high-precision manifest/PMTiles files exist locally. When high precision is on but the artifact is missing, the Earth toolbar settings call `/api/v1/earth/boundaries/build` and poll progress. After success, `reloadCountryBoundaries()` hot-swaps the boundary layer without refreshing the page. Boundary hover is independent from interactable hover: a country polygon remains highlighted whenever the surface coordinate is inside it, while the tooltip can still prioritize a satellite, vessel, BGP marker, or other interactable.
|
||||
|
||||
## Current Terrain Pipeline
|
||||
|
||||
@@ -620,3 +620,31 @@ When compute image configuration has no model/group rules, resolution uses a bou
|
||||
- **Surface Influence Zones & Stage Directives** (`influence-zones.js` + `scene_directives.py`): renders geopolitical country/region presets and great-circle radius zones emitted by AI/stage directives via single-pass offscreen `scratchCanvas` soft-blur compositing and explicit `tier` / `z_index` stacking (`renderOrderBase = 0.965`, strictly between HD imagery `0.96` and borders `0.97`).
|
||||
- **Rayleigh Scattering, Ribbons & GPU Iridium Projection**: `earth-surface-material.js` and `earth.js` pair with `earth_clouds_2048.png` for Rayleigh terminator shading, soft surface cloud shadows, and grazing water highlights; `surface-ribbon.js` unifies screen-space anti-aliased glowing ribbons for borders, BGP radar/stage arcs, cable pulses, vessel tracks, and selected satellite orbits; `iridium-footprint-adapter.js` moves Iridium footprint vertices onto GPU projection.
|
||||
- **Prefer-One-Bend Callout Routing & Write Auth**: `callout-connector.js` (`applyPreferredOneBendAnchor`) shifts aligned perimeter anchors toward the card body/header when sufficient major-axis distance and edge span exist so connectors prefer one clean bend (never exceeding one bend, gracefully falling back to a 2-point line on compact capsules or short spans); `admin-write-auth.js` gates Earth-side compute location collection and saving behind admin token refresh and `/login` prompts.
|
||||
|
||||
### Real-Time Global IR Cloud Map Pipeline & Dual-Frame Shader
|
||||
|
||||
- **Data-First Multi-Satellite Clouds, Managed Tile Pyramids & NOAA GFS Wind Grid** (`earth_clouds.py` + `earth_clouds_fx.py` + `earth_tiles.py` + `earth_wind.py`):
|
||||
- `global_cloud_map` (`id=34`, `product=weather`): defaults to **`4096x2048`** (`request_timeout_seconds = 45`), extending the 5-satellite Band13/10.8μm IR feathered composite (limb cutoff `delta > 74°`) with a band-pass warm-low-cloud daytime visible fusion gate (`fuse_daytime_visible_into_density`, recovering `-2°C..+16°C` stratocumulus while rejecting sub-`-8°C` winter plateau snow, hot deserts, and clipped `[255,255,255]` EUMETView artifacts), GeoColor RGB overlays (`frames/<ver>_vis.webp`), and `cv2.DISOpticalFlow_create` displacement fields (`flows/<ver>.webp`), exposed via `/api/v1/earth/clouds/{meta,frames/{ver},frames/{ver}/visual,flows/{ver}}`; local 8K basemaps and `earth_clouds_2048.png` remain as fallbacks.
|
||||
- Managed Tile Pyramid (`cloud_hd_tiles` `id=35` in `weather`; `earth_imagery_sentinel2` `id=36` and `earth_imagery_viirs_daily` `id=37` in `geo`): `BaseCollector` warmup jobs pre-seed `z=0..warmup_max_zoom` while `/api/v1/earth/tiles/{source}/{z}/{x}/{y}.webp` enforces `DataSource.is_active` gating and per-source disk LRU eviction; defaults set `cloud_hd_tiles_enabled = false` and `lod_switch_altitude = 1.85` so the single seamlessly feathered 4K global map drives clouds across all zoom levels (when `cloud_hd_tiles` is manually enabled, HTTP responses cap browser `max-age=300` and apply the same warm-low-cloud band-pass filter).
|
||||
- `global_wind_gfs` (`id=38`, `product=weather`): fetches NOAA NCEP GFS 10m `ugrd10m`/`vgrd10m` vectors from PacIOOS ERDDAP onto normalized `-180..180` grids under `data/earth-wind/`, backing `/api/v1/earth/wind/{meta,grid/{ver}}`, `/api/v1/data-products/wind/{summary,point}`, and AI Advisor `query_wind_posture_tool`.
|
||||
- **Selectable Surface Color Grades, RGB Frequency-Separated Detail Transfer, Windy Streamlines & Linear Cloud Space** (`constants.js` + `cloud-map.js` + `earth-surface-material.js` + `spherical-tile-layer.js` + `wind-layer.js` + `controls.js` + `satellites.js` + `earth_clouds_fx.py`):
|
||||
- **Three Selectable Surface Color Grades (`SURFACE_COLOR_GRADES`, default `classic-083`)**: Explicitly parameterizes `uLandGradeGain`, `uLandCoolBias`, `uDiffuseFloor`, `uToneMapMode`, and `iceFactor` to deliver `classic-083` (clean, cool, crisp `v0.83.0` filmic tone with indigo ocean, pure white snow peaks, and `opacity: 0.38` cloud veil without pre/post-load brightness jumps), `fresh-natural` (vibrant greens via chroma-preserving C1 curve), and `balanced-satellite`, selectable via Settings → Display → `Surface Tone` (`EARTH_SETTINGS_VERSION = 21`) alongside `uSurfaceBrightness` (`0.65..1.6`, default `1.0`).
|
||||
- **RGB 3-Channel Frequency-Separated Detail Transfer** (`createEarthSurfaceTileMaterial`, cache key `earth-surface-tile-v5`): Uses `tileLowRgb` / `rgbRatio` / `transferRatio` to strip Sentinel-2's diagonal swath stripes while injecting full-color 10m terrain micro-features matched across all zoom levels (`50%..500%`) and color grades; both tile and wind groups use plain `THREE.Object3D` (`groupOrder = 0`), and `uLandMask` decodes uniformly via `#ifndef LEGACY_TEXTURE_ENCODING surfaceSRGB(mask)`.
|
||||
- **Windy-Style Curved Global Wind Streamlines** (`wind-layer.js`): 3,600 advected particles with 8-segment curved history ribbons (`CONFIG.earthRadius + 1.6`, `renderOrder = 1.04`, `THREE.AdditiveBlending`) rendered in a cool frost-white/sky-cyan/aurora-ice palette below clouds and distinct from satellite markers/trails.
|
||||
- **Linear Cloud Maps & Parallel 4K Decoding** (`cloud-map.js` + `earth_clouds.py` + `earth_clouds_fx.py`): Keeps `uCloudMap` and `uCloudVisualMap` in `THREE.NoColorSpace` to avoid linear-density darkening into gray smog, deduplicates visible image decoding via `decode_visual_payloads`, parallelizes IR+VIS WMS fetches, and filters EUMETView clipped `[255,255,255]` blocks; 6-digit NORAD IDs map to USSF Alpha-5 TLE identifiers and locked `predictedOrbitLine` ribbons rotate via `anchorSiderealTime - gstime(liveTime)`.
|
||||
- **Unified Weather Layer Toggle, Display Weather Section & v22 Defaults** (`constants.js` + `index.html` + `controls.js` + `layer-startup-tasks.js`): Consolidates cloud and wind rows in the layer panel into one default-on `Weather` (`#toggle-weather`) switch and adds a dedicated `Weather` subsection in Settings → Display (`WEATHER_LAYER_DEFINITIONS` multi-select chips for `Clouds` and `Wind`, both on by default alongside live/timelapse cloud toggles, with bidirectional master-chip synchronization), while renaming the news subsection heading to `News`. `EARTH_SETTINGS_VERSION = 22` sets default sky brightness to `200%`, terrain opacity to `68%`, satellite close-up label zoom threshold to `330%`, default label limit to `16` (preserving the `5..36` slider range), and default altitude compression to `0%`.
|
||||
|
||||
### High-Precision PMTiles Vector Boundaries & 3D Tiered City Labels
|
||||
|
||||
- **High-Precision Boundary Pipeline & Multi-Layer Caching** (`country-boundaries.js` + `boundary-tile-worker.js` + `boundary-tile-decode.js` + `boundary-tile-cache.js` + `earth-preload.js` + Electron `protocol-core.ts`):
|
||||
- **4 Zoom Tiers & Coastal Endpoint Alignment**: `tileZoomThresholds` divides `1x–5x` into `z2` (`0x`), `z4` (`1.3x`), `z6` (`2.3x`), and `z8` (`3.8x`); Natural Earth administrative borders (`boundary_admin0` / `boundary_disputed_internal` / `boundary_admin1`) saturate at `z6` and persist smoothly above `z6` while `z8` refines OSM `coastline` geometry. Build-time geometry prep (`earth_boundary_geometry.py`) extends/trims coastal border endpoints onto coastlines and bakes a `2px` antimeridian-wrapping `THREE.NoColorSpace` (`flipY=true`) land mask.
|
||||
- **Flicker-Free Scheduling, Poison-Free Negative Caching & Batched Rendering**: Uses trailing-edge debouncing, monotonic `generation` cancellation, center-first queue ordering, and parent-tile persistence (`resolveDisplayTiles`) feeding `<= 3` GPU draw calls (`country-boundary-batch`, `country-admin1-batch`, `country-boundary-claim-batch`). `_emptyTileKeys` caches only verified zero-feature responses (never HTTP 429 or aborted requests), `ResilientPmtilesCache` evicts rejected directory/header promises, and layered persistence spans `earth-preload.js` + IndexedDB (`force-cache` Range fetches + `prewarmBoundaryTiles`) plus Electron `userData` disk caching for zero remote file requests on reload. Country hover merges `hover-borders.<assetVersion>.json` land borders with PMTiles coastlines for full-perimeter glowing strokes with no country fill mask.
|
||||
- **3D Tiered City Labels** (`geo-labels.js` + `constants.js` + `hud.css` + `layer-startup-tasks.js` + `controls.js`):
|
||||
- Loads `manifest.geoLabels` (`geo-labels.<assetVersion>.json`) via preload + IndexedDB after boundary startup, anchors dot markers at `earthSurfacePoint(..., CONFIG.earthRadius + 0.48)` (`translate(-3px,-50%)`), and culls far-side cities with `isSurfaceAnchorVisible` (`occlusionRadiusFactor = 0.999`).
|
||||
- Smoothly fades three zoom tiers — Tier 1 (`1.7x..2.05x`, capitals / megacities), Tier 2 (`2.75x..3.15x`, major cities), Tier 3 (`3.75x..4.2x`, provincial/state admin-1 capitals) — capped at `28` desktop / `14` mobile labels per frame while avoiding HUD panels, `#earth-region-callouts`, `.map-cluster-badge` / `.map-cluster-child`, and `.satellite-map-label`, following `zh`/`en` locale changes and the `City Labels` (`[data-geo-labels-toggle]`, default on) switch in Settings → Display.
|
||||
|
||||
### Compute Ledger Version Replay, Lineage Drawer & Copilot View-Sync Guard
|
||||
|
||||
- **Published-revision selector and historical banner** (`compute-topic.js` + `compute-topic.css`): adds a `Published revision` selector backed by the redacted public endpoint `/api/v1/data-products/compute/revisions/public` alongside Period and Measure, forwarding `publish_id` / `as_of` on both `/series` and `/posture/compute`. Viewing a historical revision renders a top banner (`Viewing revision published {ts} (not current)`) with a one-click `Return to current` button, while pre-baseline timestamps surface an `Incomplete historical snapshot` notice.
|
||||
- **Per-country provenance and Lineage Drawer** (`compute-topic.js` + `compute-topic-model.js`): adds an inline provenance button beside each hero metric using per-country `evidence_by_code` and fetches `/api/v1/data-products/compute/lineage` (attaching Bearer auth only when the stored session role is `admin` or `super_admin` so public/viewer traffic remains redacted without triggering 403), rendering current value, source title/locator/excerpt/SHA-256, object-level timestamps, and revision timeline inside `#compute-evidence`.
|
||||
- **Copilot same-source binding and mismatch guard** (`situational-copilot.js` + `workbench-blocks.js` + `main.js`): forwards `publishId`, `asOf`, `mode`, and `focusYear` from Compute Cards into Copilot sessions/turns and listens to `earth:compute-view-changed` to compare each turn's `view_spec` `(publish_id, mode, focus_year)` against live card state. Any divergence displays a mismatch banner with a `Re-evaluate for current view` button in **both** the narrative text area and the chart/workbench area so charts and prose never silently disagree. `stage-narrative-player.js` labels `compute-revision-notice` as `Compute Data Revision` and syncs the updated `publishId`.
|
||||
@@ -71,38 +71,49 @@ The land/ocean base is an Earth base-map asset and preloads at startup; the "Bor
|
||||
|
||||
| Name | Variable | Current Value | Location / Notes |
|
||||
| --- | --- | --- | --- |
|
||||
| Boundary tile manifest | `COUNTRY_BOUNDARY_CONFIG.tileManifestPath` | `"/earth/data/boundaries/v1/manifest.json"` | High-precision PMTiles manifest; missing manifest uses the low-precision fallback |
|
||||
| Boundary tile provider | `COUNTRY_BOUNDARY_CONFIG.tileProvider` | `"auto"` | Prefer high-precision PMTiles/MVT, then fall back to legacy GeoJSON |
|
||||
| PMTiles artifact path | `COUNTRY_BOUNDARY_CONFIG.pmtilesPath` | `"/earth/data/boundaries/earth-boundaries-china-pov-v1.pmtiles"` | Production single-file PMTiles/MVT artifact |
|
||||
| Low-precision fallback | `COUNTRY_BOUNDARY_CONFIG.legacyFallbackPath` | `"/earth/data/countries-admin0.min.geojson"` | Default land/ocean base and hover data when no high-precision boundary asset has been built locally |
|
||||
| MVT layer names | `COUNTRY_BOUNDARY_CONFIG.mvtLayerNames` | `boundary_admin0 / boundary_disputed_internal / coastline / claim_line` | Fixed layer names decoded by the PMTiles provider |
|
||||
| Boundary tile base path | `COUNTRY_BOUNDARY_CONFIG.tileBasePath` | `"/earth/data/boundaries/v1/"` | PMTiles manifest base path |
|
||||
| Boundary tile zoom thresholds | `COUNTRY_BOUNDARY_CONFIG.tileZoomThresholds` | `1.6 -> z5`, `2.8 -> z6`, `3.4 -> z7`, `4.0 -> z8`, `4.6 -> z9`, `5.2 -> z10` | Production PMTiles zoom selection |
|
||||
| Boundary tile cache limit | `COUNTRY_BOUNDARY_CONFIG.tileCacheLimit` | `150` | Frontend LRU cache entries for loaded tile geometries |
|
||||
| Boundary tile debounce | `COUNTRY_BOUNDARY_CONFIG.tileDebounceMs` | `180` | View-change debounce before requesting visible tiles |
|
||||
| Boundary tile manifest | `COUNTRY_BOUNDARY_CONFIG.tileManifestPath` | `"/api/v1/earth/boundaries/manifest"` | High-precision PMTiles manifest; missing or disabled uses the bundled fallback |
|
||||
| Boundary files endpoint | `COUNTRY_BOUNDARY_CONFIG.tileFilesPath` | `"/api/v1/earth/boundaries/files/"` | Serves PMTiles (`Range`), `hover-index`, `hover-borders`, and `geo-labels` JSON |
|
||||
| Boundary tile provider | `COUNTRY_BOUNDARY_CONFIG.tileProvider` | `"auto"` | Prefer high-precision PMTiles/MVT, then fall back to policy GeoJSON |
|
||||
| Low-precision fallback | `POLICY_FALLBACK_URL` (`country-boundaries.js`) | `countries-admin0.china-pov-v1.geojson` | Default land/ocean base and hover data when high-precision assets are disabled or unbuilt |
|
||||
| MVT layer names | `COUNTRY_BOUNDARY_CONFIG.mvtLayerNames` | `boundary_admin0` / `boundary_disputed_internal` / `coastline` (boundary), `boundary_admin1` (admin1), `claim_line` (claim) | Fixed layer groups decoded by the PMTiles provider |
|
||||
| Boundary tile zoom thresholds | `COUNTRY_BOUNDARY_CONFIG.tileZoomThresholds` | `0 -> z2`, `1.3 -> z4`, `2.3 -> z6`, `3.8 -> z8` | 4-tier PMTiles zoom schedule (`borderMaxZoom = 6`; `z8` refines OSM coastlines only) |
|
||||
| Boundary tile cache limit | `COUNTRY_BOUNDARY_CONFIG.tileCacheLimit` | `640` | Frontend LRU cache entries for loaded tile geometries |
|
||||
| Boundary tile debounce | `COUNTRY_BOUNDARY_CONFIG.tileDebounceMs` | `180` | Trailing-edge view-change debounce before queuing visible tiles |
|
||||
| Admin-1 fade & style | `admin1MinViewZoom / FullViewZoom / Color / Opacity` | `2.0 / 2.8 / 0x9fd0ff / 0.26` | `country-admin1-batch` smoothly fades in as zoom increases |
|
||||
| Ocean fill color | local `OCEAN_HEX` | `0x010609` | Land/ocean base canvas background |
|
||||
| Land fill color | `COUNTRY_BOUNDARY_CONFIG.landColor` | `0x080f1b` | Land/ocean base canvas land |
|
||||
| Land/ocean base opacity | `COUNTRY_BOUNDARY_CONFIG.landOpacity` | `1.0` | `MeshBasicMaterial.opacity` |
|
||||
| Land/ocean base radius offset | `COUNTRY_BOUNDARY_CONFIG.landAltitudeOffset` | `0.32` | `country-land-ocean` radius; separated from the Earth base sphere to avoid snow / black block flicker at 50% zoom |
|
||||
| Land/ocean base renderOrder | `COUNTRY_BOUNDARY_CONFIG.landRenderOrder` | `0.86` | `country-land-ocean.renderOrder` |
|
||||
| Land/ocean mask size | `landMaskWidth / landMaskHeight` | `2048 / 1024` | Canvas / DataTexture size |
|
||||
| Land/ocean mask size | `landMaskWidth / landMaskHeight` | `2048 / 1024` | `2px` antimeridian-wrapping `NoColorSpace` (`flipY=true`) DataTexture |
|
||||
| Country tint color | `COUNTRY_BOUNDARY_CONFIG.tintColor` | `0x0b1830` | Tint when HD texture is off |
|
||||
| Country tint radius offset | `COUNTRY_BOUNDARY_CONFIG.tintAltitudeOffset` | `0.32` | `country-tint` radius |
|
||||
| Country tint renderOrder | `COUNTRY_BOUNDARY_CONFIG.tintRenderOrder` | `0.2` | `country-tint.renderOrder` |
|
||||
| Border line color | `COUNTRY_BOUNDARY_CONFIG.lineColor` | `0x7fc7ff` | Normal border line |
|
||||
| Border line opacity | `COUNTRY_BOUNDARY_CONFIG.lineOpacity` | `0.58` | Normal border line opacity |
|
||||
| Border dimmed opacity on hover | `COUNTRY_BOUNDARY_CONFIG.dimmedLineOpacity` | `0.18` | Normal border opacity during hover |
|
||||
| Border line radius offset | `COUNTRY_BOUNDARY_CONFIG.lineAltitudeOffset` | `0.115` | Normal border line radius; line layers rely on renderOrder and independent geometry, not whole-globe shell depth spacing |
|
||||
| Border line renderOrder | `COUNTRY_BOUNDARY_CONFIG.lineRenderOrder` | `2.2` | Normal border line level |
|
||||
| Border hover color | `COUNTRY_BOUNDARY_CONFIG.hoverLineColor` | `0xff3b1f` | Neon red-orange |
|
||||
| Border dimmed opacity on hover | `COUNTRY_BOUNDARY_CONFIG.dimmedLineOpacity` | `0.18` | Normal border opacity during hover (applied to base batch only) |
|
||||
| Border line radius offset | `COUNTRY_BOUNDARY_CONFIG.lineAltitudeOffset` | `0.48` (`EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET`) | Shares exact HD surface shell radius to eliminate rotation parallax |
|
||||
| Border line renderOrder | `COUNTRY_BOUNDARY_CONFIG.lineRenderOrder` | `0.97` | Normal border line level |
|
||||
| Border hover color | `COUNTRY_BOUNDARY_CONFIG.hoverLineColor` | `0xff3b1f` | Neon red-orange full-perimeter highlight (land borders + OSM coastlines, no fill mask) |
|
||||
| Border hover opacity | `COUNTRY_BOUNDARY_CONFIG.hoverLineOpacity` | `1.0` | Hover line opacity |
|
||||
| Border hover radius offset | `COUNTRY_BOUNDARY_CONFIG.hoverAltitudeOffset` | `0.115` | Hover line radius; matches the normal border geometry to avoid double-edge ghosting during highlight changes |
|
||||
| Border hover renderOrder | `COUNTRY_BOUNDARY_CONFIG.hoverLineRenderOrder` | `2.3` | Hover line level |
|
||||
| Border hover radius offset | `COUNTRY_BOUNDARY_CONFIG.hoverAltitudeOffset` | `0.48` (`EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET`) | Hover line radius; matches normal border and HD texture geometry |
|
||||
| Border hover renderOrder | `COUNTRY_BOUNDARY_CONFIG.hoverLineRenderOrder` | `0.99` | Hover line level |
|
||||
| Border hover glow opacity | `COUNTRY_BOUNDARY_CONFIG.hoverGlowOpacity` | `0.38` | Glow line opacity |
|
||||
| Border hover glow line width | `COUNTRY_BOUNDARY_CONFIG.hoverGlowLineWidth` | `3` | Glow `LineBasicMaterial.linewidth` |
|
||||
| Border hover glow level offset | `COUNTRY_BOUNDARY_CONFIG.hoverGlowRenderOrderOffset` | `0.01` | Glow renderOrder = `2.29` |
|
||||
| Border hover glow line width | `COUNTRY_BOUNDARY_CONFIG.hoverGlowLineWidth` | `3` | Glow line width |
|
||||
| Border hover glow level offset | `COUNTRY_BOUNDARY_CONFIG.hoverGlowRenderOrderOffset` | `0.01` | Glow order offset relative to hover line |
|
||||
| Border hover glow radius offset | `COUNTRY_BOUNDARY_CONFIG.hoverGlowRadiusOffset` | `0` | Glow uses the same radius as the hover line to avoid coastline detail misalignment |
|
||||
|
||||
## 3D Tiered City Labels
|
||||
|
||||
Rendered in `.geo-labels` (`geo-labels.js` + `hud.css`, `z-index: 4`) using `earthSurfacePoint(..., R + 0.48)` dot anchoring and `isSurfaceAnchorVisible` back-hemisphere culling:
|
||||
|
||||
| Name | Variable | Current Value | Location / Notes |
|
||||
| --- | --- | --- | --- |
|
||||
| Default & screen cap | `defaultEnabled / maxVisibleDesktop / maxVisibleMobile` | `true / 28 / 14` | Controlled by Display → `City Labels`; capped per frame by viewport class |
|
||||
| Scan interval & occlusion | `scanIntervalMs / occlusionRadiusFactor` | `160 / 0.999` | Collision/obstacle scan every 160ms; active labels update every frame |
|
||||
| Tier zoom thresholds | `GEO_LABEL_CONFIG.tierFade` | `1: 1.7..2.05`, `2: 2.75..3.15`, `3: 3.75..4.2` | Smooth fade across Tier 1 (capitals/megacities), Tier 2 (major), and Tier 3 (admin-1) |
|
||||
| Visual hierarchy | `data-kind` (`capital` / `megacity` / `major` / `admin1`) | Gold `11.5px` / White `11px` / Slate `10.5px` / Muted `10px` | Capitals show a `6px` warm-gold dot; demoted regional seats use `admin1` muted styling |
|
||||
|
||||
## Real Terrain
|
||||
|
||||
| Name | Variable | Current Value | Location / Notes |
|
||||
|
||||
@@ -27,9 +27,9 @@ Note: the layer control panel order and the registration / startup load order ar
|
||||
| 1 | Submarine cables / landing points | `cables.js`, `cable-batches.js` | All cable segments share one `LineSegments`; all landing points use instanced billboards; render order remains `1`; cables and landing-point anchors share the HD surface offset `0.48` and the same triangle-surface coordinates | Original `Line` / `Sprite` objects retain per-item picking and selection state but no longer draw individually; landing-point sphere occlusion remains, with `depthTest: false` on the batch | Style textures and instance attributes preserve color, pulse, size, visibility, and click behavior. |
|
||||
| 1.2 | Real terrain | `earth.js`, `terrain.js` | `TERRAIN_CONFIG.baseRadiusOffset` plus terrain displacement | Raycast disabled | Terrain overlays HD texture; temporarily hidden when HD texture is off, restores to prior state when re-enabled. |
|
||||
| 2.05 | Grid lines | `earth.js` | `CONFIG.earthRadius + 0.14` | Raycast disabled | Low-opacity lines over HD texture. |
|
||||
| 0.97–0.99 | Country borders | `country-boundaries.js` | `lineAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48`; claim lines have no extra lift | Raycast disabled | Line geometry still has its own `renderOrder`, but it shares the exact same radius as the HD texture shell to avoid parallax while the globe rotates. |
|
||||
| 0.98 | Country border hover glow | `country-boundaries.js` | Same surface mapping, no extra lift | `depthTest: true`, transparent render queue, raycast disabled | Additive glow to reinforce border edge and terrain hover visibility. |
|
||||
| 0.99 | Country border hover line | `country-boundaries.js` | `hoverAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48` | `depthTest: true`, transparent render queue, raycast disabled | Neon red-orange hover line; aligned with the normal borders and HD texture shell to avoid ghosting or floating; China and Taiwan share the same highlight group. |
|
||||
| 0.97–0.99 | Country borders | `country-boundaries.js` | `lineAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48`; PMTiles tiles share at most 3 batched draw calls (`country-boundary-batch`, `country-admin1-batch`, `country-boundary-claim-batch`); claim lines have no extra lift | Raycast disabled | Line geometry has its own `renderOrder` and parent-tile persistence to prevent LOD blank gaps, while sharing the exact HD texture shell radius to avoid parallax during globe rotation. |
|
||||
| 0.98 | Country border hover glow | `country-boundaries.js` | Same surface mapping, no extra lift | `depthTest: true`, transparent render queue, raycast disabled | Additive glow reinforcing full-perimeter border edge and coastline visibility. |
|
||||
| 0.99 | Country border hover line | `country-boundaries.js` | `hoverAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48` | `depthTest: true`, transparent render queue, raycast disabled | Neon red-orange full-perimeter hover line (combining land borders and OSM coastlines with no country fill mask); aligned with normal borders and the HD shell; China and Taiwan share the same highlight group. |
|
||||
| 3 | Satellite footprint fill / Iridium coverage ring | `satellites.js`, `iridium-footprint-adapter.js` | `GROUND_FOOTPRINT_RENDER_ORDER` | depth-tested; Iridium adapter fill / ring use the same renderOrder | Footprint above land / texture / terrain and country borders, below compute centers and satellites. |
|
||||
| 3-4.5 | BGP collectors, event rings, and event markers | `bgp.js`, `interactable.js` | Collector markers use `BGP_COLLECTOR_RENDER_ORDER = 4.4`; event markers use `BGP_EVENT_RENDER_ORDER = 4.5`; overlays remain in BGP-owned groups | Screen-space Interactable picking; BGP collectors/events may use collision avoidance where appropriate | BGP collectors share the surface-facility band with vessels; BGP events share the compute-center band. |
|
||||
| 4.3 | AIS vessel track lines | `vessels.js` | `VESSEL_RENDER_ORDER - 0.1`; `CONFIG.earthRadius + VESSEL_CONFIG.track.altitudeOffset` | Follows vessel selection, not independently picked | Recent track for the selected vessel, below vessel markers. |
|
||||
@@ -111,3 +111,5 @@ Co-located markers share a compact projection stack across categories; screen co
|
||||
Regional news and compute retain the `#earth-region-callouts` root (z-index 20) and share flank/corridor assignment with object details through `callout-stage-arbitrator.js`, which assigns symmetric left and right flanks to bilateral `CN` and `US` spotlight peers via `bilateralPeerKey`. Expanded cards inside the regional root use 50, drag foreground 55, hover expansion 60–65, ordinary capsules 30, and dimmed/shrunk rear capsules 8, whereas spotlight and hover-expanded cards stay 100% opaque on the rear hemisphere while switching their connector to a dashed `.is-rear` rim guide and exposing a header rotate-to-front button.
|
||||
|
||||
Compute hub drill-down overlays and stage logical AS route arcs follow strict shell separation and batching rules: China's eight National Compute Hubs render through a single GPU-instanced `createInteractableLayer` at `EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48` (`renderOrder = 4.58`); western green-hub `AdditiveBlending` pulse rings use `renderOrder = 4.42` (`depthWrite: false`); East-West synergy arcs, stage logical AS routes, country hover highlights, selected cable pulses, vessel tracks, and selected satellite orbits share the screen-space anti-aliased `surface-ribbon.js` pipeline (avoiding the Windows ANGLE 1px `THREE.Line` cap); and Iridium footprints run through GPU vertex projection in `iridium-footprint-adapter.js`, disposing geometry and materials immediately on hide or tour exit.
|
||||
|
||||
The projected 3D city-label DOM layer `.geo-labels` (`geo-labels.js` + `hud.css`) sits at `z-index: 4` (above the WebGL canvas and below `.map-clusters` at `5` and `.satellite-labels` at `6`). Labels anchor their left dot via `earthSurfacePoint(lat, lon, R + 0.48)` (`translate(-3px,-50%)`), cull back-hemisphere points via `isSurfaceAnchorVisible`, and run priority collision/obstacle avoidance against HUD panels, cluster badges, regional cards, and satellite close-up labels.
|
||||
@@ -92,6 +92,14 @@ The Admin datasource page routes single-source trigger, table-selected trigger,
|
||||
|
||||
This queue is a user-perception layer. Backend task status remains the only source of truth for running, completion, failure, and skipped decisions.
|
||||
|
||||
## Collected Data Layer Ledger
|
||||
|
||||
`/data` ([DataList.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/DataList.tsx) and `pages/data-ledger/`) organizes review around Earth layer categories (synced with `?layer=`, defaulting to `compute`) backed by `/api/v1/data-ledger/*`:
|
||||
|
||||
- Left-pane [LayerNav.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/LayerNav.tsx) reuses backend `PRODUCT_DEFINITIONS` counts across Earth layers while preserving `Raw Collected Records` (`?layer=raw`) for legacy `/api/v1/collected` filtering, dimension toggle, and export.
|
||||
- `layer=compute` mounts [ComputeLedger.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/ComputeLedger.tsx) with 5 facility-type filters, 4 location status buckets (`located`, `needs_confirmation`, `terminal`, `pending`), country/keyword search, 28px `TableActionButton` actions (`Relocate` with `force: true` and `Edit coordinates` dialog reusing `/api/v1/visualization/compute-centers/{source_id}/collect-location` and coordinate save endpoints), plus row details with sanitized reasoning and `/advisor/runs` links.
|
||||
- Other layers (`satellites`, `cables`, `vessels`, `bgp`, `news`, `weather`, `geo`) render read-only paginated views via [LayerItemsLedger.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/LayerItemsLedger.tsx) inside the single-screen internal-scroll layout.
|
||||
|
||||
## Admin Theme Slider
|
||||
|
||||
The Admin sidebar theme switcher still reuses shared [SegmentedControl.tsx](/home/ray/dev/linkong/planet/frontend/src/components/SegmentedControl/SegmentedControl.tsx), while [styles.css](/home/ray/dev/linkong/planet/frontend/src/admin/styles.css) overrides the segment variables by `data-theme`:
|
||||
@@ -465,6 +473,14 @@ The image library supports upload/URL entry, attribution, licensing, enabled sta
|
||||
|
||||
Under `/earth/card-images`, configuration GET/PUT, upload POST, targets GET and preview POST require administrators. Resolve and content-addressed files are public read-only routes. Configuration writes use revision checks and audit transactions.
|
||||
|
||||
## Multi-metric compute ledger and candidate review queue
|
||||
## Multi-metric compute ledger, candidate review queue, and revision history
|
||||
|
||||
`ComputeComparisonSettings.tsx` powers `/earth-content?section=compute_comparison` within the Admin single-screen height chain (`height: 100%` + `min-height: 0`), keeping the header and six workspace tabs (Observations, AI structure, Innovation gap, Milestones & 8 Hubs, Sources, and Candidate queue) pinned while only the inner `Scrollbar` scrolls. Saves use optimistic revision locking and round-trip `structures`, `milestones`, and `national_hubs` intact; the Candidate queue connects to `/api/v1/situational-awareness/candidates` for excerpt extraction, manual approval/rejection, and one-click import into the draft.
|
||||
`ComputeComparisonSettings.tsx` powers `/earth-content?section=compute_comparison` within the Admin single-screen height chain (`height: 100%` + `min-height: 0`), keeping the header, publish-note bar, and seven workspace tabs (Observations, AI structure, Innovation gap, Milestones & 8 Hubs, Sources, Candidate queue, and Revision history) pinned while only the inner `Scrollbar` scrolls. Saves use optimistic `publish_id` locking, preserve `structures`, `milestones`, `national_hubs`, and per-country `value_sources` (requiring a `publish_note` explaining same-denominator comparability whenever a share row mixes multiple sources), and append to the immutable revision ledger. The Candidate queue connects to `/api/v1/situational-awareness/candidates` with revision/new/period-conflict/duplicate badges, per-country old→new→delta comparison tables, mandatory matched reason codes and rationale on approve/reject, non-destructive per-country draft imports, and explicit confirmation dialogs on `period_label` conflicts; Revision history lists `/api/v1/data-products/compute/revisions` entries with diff summaries, actor metadata, publish notes, and presentation delivery status.
|
||||
|
||||
## Global Real-Time Cloud & High-Res Basemap Workbenches (`weather` / `geo`)
|
||||
|
||||
`EarthCloudMapSettings.tsx` mounts at `/earth-content?section=cloud_map` under the shared Admin single-screen (`height: 100%` + `min-height: 0`) shell and focuses strictly on live preview and Earth presentation controls: a 2:1 starry preview with SVG graticule and convective-cluster overlay, history frame scrubbing, global/regional KPIs, display toggles (live IR enablement, daytime GeoColor compositing, DIS optical-flow advection, cloud-top relief strength, timelapse playback, convective markers, opacity, reset), plus a read-only weather collector summary linking to `/datasources?product=weather` (`global_cloud_map`, `cloud_hd_tiles`, `global_wind_gfs`) and `/collection-management` (`采集器配置`). `EarthBasemapSettings.tsx` mounts at `/earth-content?section=basemap` to preview and configure the managed tile pyramid sources (`earth_imagery_sentinel2`, `earth_imagery_viirs_daily` under the new `geo` / `地理/底图` product domain, plus `cloud_hd_tiles`), disk LRU cache caps, per-source cache clearing, and viewport LOD switch altitude thresholds.
|
||||
|
||||
## Bundled Built-in Preview Assets for Admin-Only Builds
|
||||
|
||||
Production `planet_admin` images are built with `PLANET_FRONTEND_TARGET=admin` (`publicDir: false` in `frontend/vite.config.mts`, keeping `dist/earth/` strictly excluded), while backend default brand and static cloud configurations retain `/earth/assets/...` paths for the desktop offline Earth contract. To prevent Admin preview `<img>` tags from falling through Nginx SPA `index.html` fallback as broken images, `earthBuiltinAssetsPlugin` in `frontend/vite.config.mts` maps `@earth-builtin-asset/*` imports directly to hashed files under `/assets/*.png` (`brand/earth-logo.png`, `brand/title-zh.png`, `brand/title-en.png`, `brand/lim-logo.png`, `earth_clouds_2048.png`). `resolveEarthPreviewAssetUrl()` in `frontend/src/admin/lib/earthBuiltinAssets.ts` resolves those built-in paths only at preview render time in `EarthBrandPreview` and `EarthCloudMapSettings`, leaving persisted `/earth/assets/...` config values, form inputs, and user-uploaded `/earth-brand-assets/...` URLs untouched.
|
||||
@@ -68,8 +68,7 @@ class LocationResolver(Protocol):
|
||||
| `BuildsUponComputeCenterResolver` | `services/compute_center_locations.py` | Epoch `builds_upon` parent-cluster campus inheritance from verified coordinates |
|
||||
| `lookup_wikidata_facility` | `resolvers/wikidata.py` | Async L1 Wikidata P625/P276 facility coordinate lookup |
|
||||
| `lookup_peeringdb_facility` | `resolvers/peeringdb_facility.py` | Async L1 PeeringDB `/api/fac` commercial colocation street/lat-lon lookup |
|
||||
| `run_controlled_location_agent` | `location/agent_resolver.py` | Controlled L2–L4 4-step Tool-Calling agent (`fetch_source_url`, `web_search`, `geocode_verify`, `submit_location_result`) with terminal status persistence |
|
||||
| `LocationLLMFallback` | `location/llm_fallback.py` | Structured fact-check fallback for non-tool-calling models with lat/lon range, country verification, and city downgrade guardrails |
|
||||
| `run_location_workflow` | `location/workflow_tools.py` | Unified 9-node `location.resolve_unknown` DAG workflow via `dag_executor.py` (context normalization, cross-source/knowledge lookup, web research, cascade `geocode_verify`, L3 `evaluate_location_geo_guardrail`, and L4 terminal persistence; replaces retired `agent_resolver.py` and `llm_fallback.py`) |
|
||||
|
||||
Nominatim is the geocoding service in the OpenStreetMap ecosystem. Given a place name, city, country, organization, or facility query, it returns possible coordinates, a display name, and structured address fields. It is useful for turning city/facility text into candidate coordinates, but it is not an authoritative fact registry and can match same-name places or broad administrative areas. Planet therefore treats Nominatim output as confirmation-required candidates and uses it with caching and rate limiting.
|
||||
|
||||
@@ -92,7 +91,7 @@ StoredComputeCenterLocationResolver()
|
||||
|
||||
The main map startup path is source coordinates first, then the database-backed current-location table. The table is `compute_center_locations`, keyed by `(source, source_id)`, and stores manually accepted locations or true coordinates migrated from source records. `init_db()` only migrates source records that already contain real coordinates; it does not import old hard-coded hints and does not run ROR, Nominatim, or LLM geocoding during startup.
|
||||
|
||||
Candidate collection is intentionally separate from rendering. `collect_location_candidates()` builds ROR and Nominatim/OpenStreetMap queries from source fields, but it does not emit the current `compute_center_locations` row as a candidate. If those regular candidates are empty, the API layer calls `LocationLLMFallback` through the current default AI Provider and only returns `source="llm_location_factcheck"` candidates with `needs_confirmation=true`. LLM candidates use a combined threshold made from the model self-score plus backend evidence scoring; when the LLM provides a credible city/country but no coordinates, the backend may fill city-level coordinates through Nominatim without increasing the evidence score. After a user accepts a candidate, the save endpoint upserts it into the dimension table; the next map refresh renders it through `StoredComputeCenterLocationResolver`.
|
||||
Candidate collection is intentionally separate from rendering. `collect_location_candidates()` builds ROR and Nominatim/OpenStreetMap queries from source fields, but it does not emit the current `compute_center_locations` row as a candidate. When regular candidates are insufficient or deeper verification is requested, the API invokes `run_location_workflow()` (the unified 9-node `location.resolve_unknown` DAG) to combine cross-source hints, Wikidata/PeeringDB lookup, source/web evidence gathering, cascade Nominatim verification, and `evaluate_location_geo_guardrail` checks, returning evidence-backed confirmation-required candidates or terminal statuses (`undisclosed` / `multi_site` / `anonymous`). After a user accepts a candidate, the save endpoint upserts it into the dimension table; the next map refresh renders it through `StoredComputeCenterLocationResolver`.
|
||||
|
||||
`resolve_compute_center_location()`, `resolve_compute_center_location_full()`, and `collect_location_candidates()` remain the domain API. `visualization.py` consumes that API and no longer owns coordinate hints, country-centroid fallbacks, or Nominatim details.
|
||||
|
||||
|
||||
@@ -433,15 +433,15 @@ Docs supports: category navigation, Markdown rendering, tables and code blocks,
|
||||
|
||||
## Compute intelligence
|
||||
|
||||
Administrators maintain the multi-metric compute ledger in **Earth content → Compute comparison**, organized into six workspaces: **Observations**, **AI structure**, **Innovation gap**, **Milestones & 8 Hubs**, **Sources**, and **Candidate queue**. In addition to manual entry, administrators can extract candidate figures from report excerpts in the Candidate queue, review them manually, and import approved items into the draft; unreviewed candidates never go live. Global shares use the world denominator, absolute scale uses FP32 EFlop/s, and the China-US Relative Parity Index (`RPI = CN / US × 100`) plus bilateral shares are derived deterministically on the server.
|
||||
Administrators maintain the multi-metric compute ledger in **Earth content → Compute comparison**, organized into seven workspaces: **Observations**, **AI structure**, **Innovation gap**, **Milestones & 8 Hubs**, **Sources**, **Candidate queue**, and **Revision history**. When extracting candidate figures from report excerpts, the queue compares each candidate against the live ledger to display old/new/delta values, change badges (Historical revision, New observation, Period conflict, or Duplicate), and denominator basis; approving or rejecting requires a matching reason category and rationale. Importing into a draft updates only revised countries while preserving original per-country sources for unchanged peers, and any share row mixing multiple sources requires a publish note documenting same-denominator comparability. Global shares use the world denominator, absolute scale uses FP32 EFlop/s, and the China-US Relative Parity Index (`RPI = CN / US × 100`) plus bilateral shares are derived deterministically on the server.
|
||||
|
||||
Innovation gap observations track the ISTIC Global AI Innovation Index score gap (US minus China, narrowing `22.02 → 19.96 → 17.95` across 2023–2025) alongside compute share divergence. Sources referenced by observations, structure rows, milestones, or national hubs cannot be deleted until dereferenced. Duplicate metric/year entries, structure shares not totaling 100%, or global shares exceeding 100% are rejected. Concurrent saves return `409 Conflict` while preserving the local draft; restoring bundled defaults requires confirmation and is audited.
|
||||
Innovation gap observations track the ISTIC Global AI Innovation Index score gap (US minus China, narrowing `22.02 → 19.96 → 17.95` across 2023–2025) alongside compute share divergence. Sources referenced by observations, structure rows, milestones, or national hubs cannot be deleted until dereferenced. Duplicate metric/year entries, structure shares not totaling 100%, or global shares exceeding 100% are rejected. Concurrent saves return `409 Conflict` while preserving the local draft; restoring bundled defaults creates a fresh audited revision visible in **Revision history**.
|
||||
|
||||
Open the analysis panel beside Compute Centers to choose among five strategic lenses (CN-US Relative Parity RPI, Global total share, Global AI compute share, Frontier cluster power share, and Absolute FP32 scale) or launch the **4-Act Compute Posture Tour** and **5-Act BGP Route Incident Playback**. When region cards are enabled on desktop, China and the United States occupy symmetric left and right spotlight corridors. When an anchor rotates behind the globe, card typography stays 100% opaque while the connector switches to a dashed rim guide and the header exposes a **Rotate to front view** icon button instead of raw "Far side" text.
|
||||
Open the analysis panel beside Compute Centers to choose among five strategic lenses (CN-US Relative Parity RPI, Global total share, Global AI compute share, Frontier cluster power share, and Absolute FP32 scale), switch the **Published revision**, or launch the **4-Act Compute Posture Tour** and **5-Act BGP Route Incident Playback**. Selecting a historical revision displays a top banner with a **Return to current** button while synchronizing both cards and Copilot to that revision's figures and conclusions. Clicking the provenance button beside any hero metric opens the **Lineage Drawer** showing source excerpts, page/locator, SHA-256 digest, observation/report/ingestion/publish timestamps, and revision history (public views redact reviewer names and raw internal notes, while signed-in administrators see full attribution). When region cards are enabled on desktop, China and the United States occupy symmetric left and right spotlight corridors. When an anchor rotates behind the globe, card typography stays 100% opaque while the connector switches to a dashed rim guide and the header exposes a **Rotate to front view** icon button instead of raw "Far side" text.
|
||||
|
||||
Each strategic compute card presents five narrative layers: hero metric with global denominator dilution attribution, the CN-US RPI duel bar, 5-mode pills plus domestic AI compute structure bar (e.g., China `81%` AI vs Global `85%`), side-by-side Divergence Corridor and Innovation Gap Convergence SVG charts with milestone flags, a sanitized posture brief (zero chain-of-thought leakage), and action controls. Clicking **8 National Hubs** overlays China's eight East-Data-West-Compute hubs, western green-power pulse rings, and East-West synergy arcs on the 3D globe.
|
||||
|
||||
Open the **Posture Workbench** directly from the Layer panel header, the **BGP Incident Forensics** button on the BGP layer row, or **Forensic Investigation** inside any BGP anomaly card. The workbench maintains multi-turn context across natural-language follow-ups, switches instantaneously among **Workbench**, **Chart**, **Table**, **Trend**, **Attribution**, and **One-Pager** presets, and enforces **Retrospective**, **As Known Then**, or **Live** knowledge boundaries. Pinning a result opens a side-by-side comparison slot on wide screens or docks into top Pinned Tabs on compact/mobile viewports; **Subscribe Watch** monitors future posture deltas, and **Export** downloads a Markdown brief locked to the exact frozen revision. Dragging or zooming the globe during a stage tour halts camera flight immediately, and new background posture updates wait in a queued badge while you explore manually.
|
||||
Open the **Posture Workbench** directly from the Layer panel header, the **BGP Incident Forensics** button on the BGP layer row, or **Forensic Investigation** inside any BGP anomaly card. Launching Copilot from a compute card binds the session to the card's active published revision, metric mode, and focus year; if you later switch mode or revision on the card, Copilot surfaces a mismatch banner in both the narrative and chart areas with a **Re-evaluate for current view** action. The workbench maintains multi-turn context across natural-language follow-ups (including asking why a figure changed to inspect revision rationale under the same revision), switches instantaneously among **Workbench**, **Chart**, **Table**, **Trend**, **Attribution**, and **One-Pager** presets, and enforces **Retrospective**, **As Known Then**, or **Live** knowledge boundaries. Pinning a result opens a side-by-side comparison slot on wide screens or docks into top Pinned Tabs on compact/mobile viewports; **Subscribe Watch** monitors future posture deltas, and **Export** downloads a Markdown brief locked to the exact frozen revision. Dragging or zooming the globe during a stage tour halts camera flight immediately, and new compute revision notices or posture updates wait in a queued badge while you explore manually—auto-playing when idle with an explicit note that historical restatements do not represent current-period capacity jumps.
|
||||
|
||||
The bundled authoritative ledger covers verified 2020–2024 and 2025-H1 observations (e.g., 2024 global compute share US `44%` vs CN `23%` on a `~2210 EFlop/s` global denominator; AI compute share US `48%` vs CN `25%`). Selecting an unreleased year such as `2026` explicitly displays pending-release status alongside the latest verified period without fabricating backfilled numbers. National report metrics remain strictly separate from public facility counts.
|
||||
|
||||
@@ -460,7 +460,7 @@ Selecting a satellite shows an open predicted arc with highlights moving in the
|
||||
Retriggering a datasource creates a new task while older failures remain in the failed group. Task Status uses a checklist icon, distinct from Refresh. CelesTrak can reuse valid recent download cache; each new collection attempt still gets its own task and updates collected data.
|
||||
|
||||
|
||||
Display → Satellites → Close-up labels defaults on; turning it off hides satellite map names while retaining detail cards. The zoom-threshold slider below the switch ranges from 250% to 500% (default 400%); labels appear at or above the selected zoom and hide below it. The count slider sets a saved limit of 5–36 labels (default 36); occlusion or limited space may result in fewer visible labels. Sky brightness ranges from 0–200%, defaulting to 100%. Both choices persist. Expanded regional cards follow smoothly within assigned vertical space without decorative floating. Hover and a short interval after leaving pause automatic region-focus changes. Capsules temporarily expose complete content and actions while existing cards continue following geographic anchors. Compute legend category counts describe currently located markers.
|
||||
Display → Satellites → Close-up labels defaults on; turning it off hides satellite map names while retaining detail cards. The zoom-threshold slider below the switch ranges from 250% to 500% (default 400%); labels appear at or above the selected zoom and hide below it. The count slider sets a saved limit of 5–36 labels (default 36); occlusion or limited space may result in fewer visible labels. Display → City Labels also defaults on: as you zoom into the globe, country capitals, major cities, and provincial/state seats fade in progressively in the current interface language while avoiding HUD panels and facility markers. Sky brightness ranges from 0–200%, defaulting to 100%. Both choices persist. Expanded regional cards follow smoothly within assigned vertical space without decorative floating. Hover and a short interval after leaving pause automatic region-focus changes. Capsules temporarily expose complete content and actions while existing cards continue following geographic anchors. Compute legend category counts describe currently located markers.
|
||||
|
||||
|
||||
Surface aggregates appear as solid numbered circles. Click to expand members; only co-located or extremely close geographic markers form compact stacks at their location, with exposed clickable edges. Ordinary markers stay at their real projected positions. Selecting a rear icon brings it forward and opens its details; clearing focus restores its original position. Ordinary groups split above 250%; no aggregate badge remains at 500%, and co-located markers expand directly.
|
||||
|
||||
@@ -469,9 +469,9 @@ uv run pytest backend/tests/test_otp_service.py
|
||||
1. In the console, open `Operations and Configuration -> Earth Content -> Boundary Precision` to save boundary source configuration. The local config is written to `config/earth-boundary-sources.local.json`; do not commit it.
|
||||
2. Click "Build high precision boundaries", or switch the Earth toolbar settings gear to High Precision for the first build. The backend downloads the three source packages to `data/earth-boundary-sources/`, writes the source manifest, and invokes the PMTiles build script.
|
||||
3. The builder requires `tippecanoe` and `pmtiles` on PATH. Missing tools return a clear API error and do not write data-source collection records.
|
||||
4. A successful production build outputs `frontend/public/earth/data/boundaries/earth-boundaries-china-pov-v1.pmtiles` and its manifest.
|
||||
5. After deployment, open Earth, enable "Border Lines", and inspect China's southeast coast, Taiwan, Hainan, the South China Sea, Zangnan, Kosovo, and Gaza for hover behavior and boundary policy.
|
||||
6. If no high-precision manifest/PMTiles exists locally, Earth uses the bundled `frontend/public/earth/data/countries-admin0.min.geojson` fallback. If high-precision assets exist but tile requests fail, troubleshoot PMTiles range requests, manifest provider, Nginx `.pmtiles` static serving, and sha256 consistency.
|
||||
4. A successful build writes versioned artifacts into the backend boundary data volume (`backend/data/earth-boundaries/` by default) and serves `earth-boundaries.<assetVersion>.pmtiles`, `hover-index.<assetVersion>.json`, `hover-borders.<assetVersion>.json`, and `geo-labels.<assetVersion>.json` via `/api/v1/earth/boundaries/manifest` and `/api/v1/earth/boundaries/files/{name}` (`GET`/`HEAD`, HTTP `Range`, immutable caching).
|
||||
5. After deployment, open Earth, enable "Border Lines", and inspect China's southeast coast, Taiwan, Hainan, the South China Sea, Zangnan, Kosovo, and Gaza for hover behavior, boundary policy, and tiered city labels.
|
||||
6. If no high-precision manifest/PMTiles exists locally, Earth uses the bundled `frontend/public/earth/data/countries-admin0.china-pov-v1.geojson` fallback. If high-precision assets exist but tile requests fail, troubleshoot `/api/v1/earth/boundaries/files/{name}` `Range` requests, manifest provider, reverse-proxy forwarding, and `sha256` consistency.
|
||||
|
||||
## Publish locally and deploy production releases automatically
|
||||
|
||||
|
||||
@@ -85,6 +85,17 @@ Compute centers represent supercomputers, AI GPU sites, model-platform facilitie
|
||||
- **Delete semantics**: deleting TOP500 or similar sources refreshes `computeCenters`; changing the location table also refreshes the layer. The default is `reload`, because location updates do not always need an immediate clear.
|
||||
- **Common failure**: collection finished but Earth count did not change. Check visualization cache, location rows, and adapter coverage.
|
||||
|
||||
### Compute Ledger Revisions, Dual Timelines, and Read-Time Lineage
|
||||
|
||||
Curated national/regional compute observations operate independently from facility samples on top of the immutable `compute_configuration_revisions` ledger (`system_settings` category `compute_comparison` acts only as a synchronized current-revision cache; resets insert a new UUID revision without deleting rows):
|
||||
|
||||
- **Dual-timeline semantics**:
|
||||
- `cutoff_at` (`time_basis=as_known_then`) filters observations by report publication date; per-country `value_sources` drop only the post-cutoff country while retaining earlier-reported peers in the same year.
|
||||
- `as_of` / `publish_id` replay the system publish timeline across `GET /data-products/compute/series`, `GET /situational-awareness/posture/compute`, and Copilot sessions/turns; timestamps earlier than the initial baseline return `snapshot_unavailable: true` instead of falling back to live configuration.
|
||||
- **Candidate extraction, deduplication, and gated review**: `POST /situational-awareness/candidates/extract` deduplicates by `dedupe_fingerprint`, inserts immutable `EvidenceRecord` entries (`content_sha256`, `locator`, `excerpt`) without overwriting existing rows, and computes per-country `comparison` metadata (`historical_revision`, `period_conflict`, denominator); `POST /candidates/{id}/review` enforces decision-matched `reason_code` and rationale text, returning 409 once `published_publish_id` is recorded.
|
||||
- **Revision-driven presentations and retry**: `PUT /data-products/compute/configuration` and `POST /configuration/reset` invoke `process_compute_revision_presentation` directly from the committed revision's `diff_summary` (decoupled from BGP's `classify_snapshot_delta`), emitting `compute-revision-notice` contracts for any non-zero observation delta (including small historical restatements and B→A resets) with monotonic `revision = revision_row.id` and `publish_id` deduplication; delivery errors mark `presentation_status=failed` for startup, 5-minute scheduled, and `POST /proactive/evaluate` retries.
|
||||
- **Read-time lineage derivation and redaction**: `GET /data-products/compute/lineage` derives provenance at read time (no mirror/relation table) by walking up to 50 prior `compute_configuration_revisions` rows and joining `compute_evidence_candidates` and `evidence_records` for current value, source details/SHA-256, object-level timestamps (observation period, report publication date, candidate ingestion time, effective publish time), and revision history. Public and non-admin callers on `/lineage` and `/revisions/public` receive redacted responses (reviewer/publisher names replaced with `"已人工复核"`, raw `review_reason`/`publish_note` omitted, only localized reason categories retained).
|
||||
|
||||
## BGP
|
||||
|
||||
BGP data shows route collectors, anomalies, incidents, diffusion rings, and situation summaries. Earth does not render raw BGP rows directly; it renders projected observations, anomalies, and incidents. This is the most common path where deleting raw data can leave old objects visible.
|
||||
|
||||
@@ -98,7 +98,7 @@ AIS 船只类采集器和其它 `CollectedData` 采集器的落库路径不同
|
||||
|
||||
`vessel_current_state` 的动态位置只允许被更新观测时间更晚的数据覆盖;名称、船型等静态字段按非空和来源优先策略合并。Earth snapshot 默认只返回有效窗口内的当前船只,避免高频 AIS 历史数据影响地球渲染性能。
|
||||
|
||||
智能星球国界不再属于采集器体系。它是智能星球静态渲染资产,由控制台 `运维与配置 -> 智能星球内容 -> 国界精度` 维护源配置,并由 `/api/v1/earth/boundaries/*` 构建 `frontend/public/earth/data/boundaries/earth-boundaries-china-pov-v1.pmtiles`。本地没有高精 PMTiles 时,前端会使用仓库内置的低精度 GeoJSON 作为 fallback,不会向 `CollectedData` 写入国界记录。
|
||||
智能星球国界与城市地名清单不再属于采集器体系,而是作为智能星球静态渲染资产,由控制台 `运维与配置 -> 智能星球内容 -> 国界精度`(`PUT /api/v1/earth/boundaries/config`)维护源配置,并由 `/api/v1/earth/boundaries/*`(含 `/status`、`/manifest`、`/build`、`/build/status` 及支持 `GET`/`HEAD`、HTTP `Range` 与不可变缓存、隔离为 `rate_limit_tier="tile"` 的 `/files/{name}`)构建并分发 `earth-boundaries.<assetVersion>.pmtiles`、`hover-index.<assetVersion>.json`、`hover-borders.<assetVersion>.json` 与 `geo-labels.<assetVersion>.json`(`planet-earth-geo-labels/v1`,基于 `earth_populated_places` 与中国 POV 规则生成)。本地未构建高精产物时,前端继续使用内置低精度 `countries-admin0.china-pov-v1.geojson` fallback,不会向 `CollectedData` 写入国界记录。
|
||||
|
||||
TOP500 和 Epoch AI 算力数据的公开源不总是提供可用经纬度。Epoch 官方 CSV 的 `Location` 可能只有国家或为空,即使行中存在经纬度,也不能仅凭它当作精确 site。Earth 统一算力中心接口在主地图启动链路中只使用有效源坐标或 `compute_center_locations` 维表坐标;不可渲染记录保留在完整 `unresolved` 列表,不通过本地注册表、国家中心或猜测总部自动渲染。`precise`/`site` 保持源坐标;城市级和待确认点只可按 `source` + `source_id` 生成确定性的展示偏移,原坐标不改写。用户手动采集候选时,后端会用源字段调用 ROR 组织注册 API 和 Nominatim/OpenStreetMap 在线搜索;候选经前端保存后写入 `compute_center_locations`,后续地图刷新再从维表渲染。
|
||||
|
||||
|
||||
@@ -504,7 +504,7 @@ Earth 设置面板当前由 [controls.js](/home/ray/dev/linkong/planet/frontend/
|
||||
|
||||
SGP4 传播输出是惯性系位置,不能直接当成 Earth 的经纬度固定坐标使用。`satellites.js` 会用当前时间的 `gstime` 把 ECI/TEME 位置转换到 ECF,再映射到 `latLonToVector3()` 使用的 Three.js 坐标轴。卫星点和短尾迹使用随采样时间变化的地固坐标,表示相对当前地球表面的实际位置;锁定后的预测轨道线使用锁定时刻固定的 `gstime`,把未来一个完整周期的惯性轨道投到当前地球姿态上显示为开放弧线;不追加首点或用直线强制封口,轨道面倾角与详情卡一致。流光按累计弧长和未来采样方向移动。fallback 预测轨道也必须使用真正的 RAAN + inclination 轨道平面公式,不能把 inclination 当成恒定纬度。
|
||||
|
||||
国界精度偏好独立存储在 `country-boundaries.js` 的 `planet.earth.boundaries.highPrecisionEnabled`。未开启高精时,即使本机已经有高精 manifest/PMTiles,也继续加载低精 `countries-admin0.min.geojson` fallback;开启高精但高精产物缺失时,智能星球工具栏设置会调用 `/api/v1/earth/boundaries/build` 启动后台构建并轮询进度。构建成功后调用 `reloadCountryBoundaries()` 热切换,不再刷新整个页面。国界 hover 与 tooltip 解耦:只要地表坐标落在国界 polygon 内就保持高亮;如果鼠标同时命中卫星、船只、BGP 等 interactable,tooltip 显示 interactable 信息,但国界高亮不应闪烁。
|
||||
国界精度偏好独立存储在 `country-boundaries.js` 的 `planet.earth.boundaries.highPrecisionEnabled`。未开启高精时,即使本机已经有高精 manifest/PMTiles,也继续加载内置低精 `countries-admin0.china-pov-v1.geojson` fallback;开启高精但高精产物缺失时,智能星球工具栏设置会调用 `/api/v1/earth/boundaries/build` 启动后台构建并轮询进度。构建成功后调用 `reloadCountryBoundaries()` 热切换,不再刷新整个页面。国界 hover 与 tooltip 解耦:只要地表坐标落在国界 polygon 内就保持高亮;如果鼠标同时命中卫星、船只、BGP 等 interactable,tooltip 显示 interactable 信息,但国界高亮不应闪烁。
|
||||
|
||||
## 当前地形链路
|
||||
|
||||
@@ -759,3 +759,31 @@ BGP 观测站以 collector 编号建立标记索引。共享索引不登记空 I
|
||||
- **贴地影响范围与阶段导演指令**(`influence-zones.js` + `scene_directives.py`):支持 AI / 场景指令下发 `influence_zones`(国家/区域预设多边形及大圆辐射区),通过单次离屏 `scratchCanvas` 模糊合成与层级排序(`tier` / `z_index`)渲染可配置颜色、透明度、`edge_mode`(`sharp` / `soft`)及入场扫光;保持 `renderOrderBase = 0.965`,位于高清地表之上、国界与交互图标之下。
|
||||
- **行星本体光影与丝带管线**:`earth-surface-material.js` 与 `earth.js` 结合本地 `earth_clouds_2048.png` 实现三阶瑞利散射晨昏过渡、海面掠射高光与地表云影投影;`surface-ribbon.js` 为国界 hover、BGP 雷达/高空路由、选中海缆流光、船舶尾迹及选中卫星轨道提供统一屏幕空间抗锯齿发光丝带;`iridium-footprint-adapter.js` 将 Iridium 足迹迁入 GPU 顶点投影。
|
||||
- **卡片连线优先一折与管理写鉴权**:`callout-connector.js`(`applyPreferredOneBendAnchor`)在主轴跨度与卡片可用边长充足时优先偏出单一折点(严格保持 `<= 1` 折,短距或紧凑胶囊平滑退化为 2 点直线);`admin-write-auth.js` 统一管控 Earth 侧算力中心位置采集与保存的管理员会话鉴权及 `/login` 引导。
|
||||
|
||||
### 全球实时红外云图数据管线与双帧平滑着色器
|
||||
|
||||
- **数据优先的多星云图、高分瓦片金字塔与 GFS 全球风场**(`backend/app/services/earth_clouds.py` + `earth_clouds_fx.py` + `earth_tiles.py` + `earth_wind.py`):
|
||||
- `global_cloud_map`(`id=34`,`product=weather`):默认输出 **`4096x2048`**(采集超时默认 45s),在五星 Band13/10.8μm IR 连续高斯羽化合成基础上,增加带通暖低云门控的日间可见光融合(`fuse_daytime_visible_into_density`,收紧至 74° 边缘羽化、剔除 `-8°C` 以下高原积雪与 EUMETView `255` 裁切纯白误判)、日间 GeoColor/可见光合成(`frames/<ver>_vis.webp`)与 `cv2.DISOpticalFlow_create` 光流位移场(`flows/<ver>.webp`),输出 `/api/v1/earth/clouds/{meta,frames/{ver},frames/{ver}/visual,flows/{ver}}`;静态 `./assets/earth_clouds_2048.png` 与 8K 静态底图继续作为兜底。
|
||||
- 受控瓦片金字塔代理(`cloud_hd_tiles` `id=35` 归属 `weather`;`earth_imagery_sentinel2` `id=36` 与 `earth_imagery_viirs_daily` `id=37` 归属 `geo`):经 `BaseCollector` 定期预热 `z=0..warmup_max_zoom` 并提供 `/api/v1/earth/tiles/{source}/{z}/{x}/{y}.webp` 门控代理(严格校验 `DataSource.is_active` 与磁盘 LRU 上限);默认 `lod_switch_altitude = 1.85`、`cloud_hd_tiles_enabled = false`(由单一无缝 4K 全局云图提供全尺度连续云层;若管理员显式开启 `cloud_hd_tiles`,浏览器缓存头限制为 `max-age=300` 并同步应用暖低云带通门控)。
|
||||
- `global_wind_gfs`(`id=38`,`product=weather`):从 PacIOOS ERDDAP 拉取 NOAA NCEP GFS 全球 10m 风矢量(`ugrd10m`, `vgrd10m`)并归算到 `-180..180` 网格,持久化于 `data/earth-wind/`,提供 `/api/v1/earth/wind/{meta,grid/{ver}}`、`/api/v1/data-products/wind/{summary,point}` 与 AI `query_wind_posture_tool`。
|
||||
- **三维升级着色器、三档可选色调、RGB 频域融合、Windy 风场流线与线性云图采样**(`constants.js` + `cloud-map.js` + `earth-surface-material.js` + `spherical-tile-layer.js` + `wind-layer.js` + `controls.js` + `satellites.js` + `earth_clouds_fx.py`):
|
||||
- **三档可选地表色调(`SURFACE_COLOR_GRADES`,默认 `classic-083`)**:通过 `uLandGradeGain`、`uLandCoolBias`、`uDiffuseFloor`、`uToneMapMode` 与冰雪保留因子 `iceFactor` 显式参数化 `classic-083`(经典通透,默认:无偏黄、深靛蓝海洋、雪峰纯白、`opacity=0.38` 轻薄云层)、`fresh-natural`(鲜嫩自然:保色度 C1 高光肩部)、`balanced-satellite`(均衡遥感),经设置面板「显示 -> 地表色调」(`EARTH_SETTINGS_VERSION = 21`)切换且加载前后零色彩跳变;「地表亮度」(`0.65..1.6`,默认 `1.0`)联动调节 `uSurfaceBrightness`。
|
||||
- **RGB 三通道频域高低频细节融合**(`createEarthSurfaceTileMaterial`,缓存键 `earth-surface-tile-v5`):以 `tileLowRgb` / `rgbRatio` / `transferRatio` 将 Sentinel-2 10m 真彩高频肌理注入所选 8K 底图与色调方案,抹平卫星扫描斜条带并保证 50%→500% 缩放色彩严格一致;瓦片容器与风场容器均使用普通 `THREE.Object3D` 保持 `groupOrder = 0`;`uLandMask` 分支统一采用 `#ifndef LEGACY_TEXTURE_ENCODING surfaceSRGB(mask)`。
|
||||
- **Windy 风格弧形风场丝带**(`wind-layer.js`):3,600 粒子 × 8 段历史弧形微轨迹(`CONFIG.earthRadius + 1.6`,`renderOrder = 1.04`,`THREE.AdditiveBlending` 霜白/冰青冷色调,尾迹渐隐至 0),与橙/紫/绿高轨卫星点彻底区隔。
|
||||
- **线性云图空间与 4K 并行解码**(`cloud-map.js` + `earth_clouds.py` + `earth_clouds_fx.py`):`uCloudMap` 与 `uCloudVisualMap` 统一标为 `THREE.NoColorSpace` 消除线性密度二次 sRGB 变暗发灰,后端通过 `decode_visual_payloads` 复用解码数组、并发拉取 IR+VIS WMS 并剔除 EUMETView `[255,255,255]` 裁切纯白方块;6 位数 NORAD 编码为 USSF Alpha-5,`predictedOrbitLine` 每帧同步地球自转。
|
||||
- **气象图层收拢、显示设置板块化与 v22 默认值**(`constants.js` + `index.html` + `controls.js` + `layer-startup-tasks.js`):左侧图层列表将云图与风场收拢为单一默认开启的「气象」总开关(`#toggle-weather`),并在设置 → 显示新增「气象」板块(以可扩展 `WEATHER_LAYER_DEFINITIONS` 多选胶囊分别开关「大气云图」与「全球风场」,默认均开启,并收纳实时卫星云图与云图历史演变开关),同步将新闻二级小标题更名为「新闻」;`EARTH_SETTINGS_VERSION = 22` 默认星空亮度 `200%`、地形透明度 `68%`、卫星近景标签阈值 `330%` / 默认数量上限 `16`(滑块范围仍为 `5..36`)、默认轨道高度压缩 `0%`。
|
||||
|
||||
### 高精 PMTiles 矢量边界与 3D 城市分级标注
|
||||
|
||||
- **高精矢量边界管线与多层缓存**(`country-boundaries.js` + `boundary-tile-worker.js` + `boundary-tile-decode.js` + `boundary-tile-cache.js` + `earth-preload.js` + Electron `protocol-core.ts`):
|
||||
- **4 档视口缩放层级与海岸线闭合**:`tileZoomThresholds` 划分为 `z2`(0x)/ `z4`(1.3x)/ `z6`(2.3x)/ `z8`(3.8x),Natural Earth 国界与省界(`boundary_admin0` / `boundary_disputed_internal` / `boundary_admin1`)在 `z6` 饱和并用父瓦片跨至 `z8`,`z8` 专注细化 OSM 海岸线(`coastline`);后端构图通过 `earth_boundary_geometry.py` 按海岸线自动吸合/延伸/裁切临海端点并在 `2px` `THREE.NoColorSpace` (`flipY=true`) 跨日界线海陆掩膜纹理上消缺。
|
||||
- **无闪烁调度、防投毒与 GPU 合批**:使用尾缘防抖调度 + 单调 `generation` 取消过期并发队列 + 屏幕中心优先加载,通过 `resolveDisplayTiles` 保留已就绪父瓦片直至可视子瓦片全部就绪,合并为 `country-boundary-batch` / `country-admin1-batch` / `country-boundary-claim-batch` 最多 `<= 3` 个 GPU draw call;仅在 `getZxy()` 正常返回空瓦片时记录空缓存(HTTP 429/网络异常绝不写入负缓存),`ResilientPmtilesCache` 自动驱逐失败 Promise 并在浏览器(IndexedDB + `force-cache` + `earth-preload.js` + `prewarmBoundaryTiles`)与 Electron(`userData` 磁盘 Range 缓存)实现重启/刷新零远端重复请求;国家 hover(`hover-borders.<assetVersion>.json` + PMTiles 海岸线抽取)渲染完整陆地国界与海岸线霓虹描边,不叠盖整国暗红蒙版。
|
||||
- **3D 城市分级标注**(`geo-labels.js` + `constants.js` + `hud.css` + `layer-startup-tasks.js` + `controls.js`):
|
||||
- 在高精边界启动任务结束后读取 manifest 中的 `geoLabels`(`geo-labels.<assetVersion>.json`,经 `earth-preload.js` 与 IndexedDB `boundary-tile-cache.js` 持久化缓存),基于 `earthSurfacePoint(..., CONFIG.earthRadius + 0.48)` 锚定左对齐圆点(`translate(-3px,-50%)`)并通过 `isSurfaceAnchorVisible`(`occlusionRadiusFactor = 0.999`)裁除背面半球城市。
|
||||
- 按当前视口缩放平滑渐显 3 级层级:Tier 1(`1.7x..2.05x` 首都 / 直辖 / 特区 / 重点人口枢纽)、Tier 2(`2.75x..3.15x` 区域与主要城市)、Tier 3(`3.75x..4.2x` 省级/州府等行政中心);桌面最多同时展示 `28` 个、移动端最多 `14` 个标签,严格按层级优先级与碰撞盒避让 `#earth-region-callouts`、`.hud-panel`、`.map-cluster-badge` / `.map-cluster-child` 及 `.satellite-map-label`(零 DOM 重叠),随 `onEarthLocaleChange` 在 `zh`/`en` 间实时切换,并在桌面/移动端设置 → 显示提供「城市地名标注」(`[data-geo-labels-toggle]`,默认开启)。
|
||||
|
||||
### 算力台账版本切换、血缘抽屉与参谋同源校对
|
||||
|
||||
- **系统发布版本回放与顶部警示条**(`compute-topic.js` + `compute-topic.css`):算力配置面板与移动端设置新增「系统发布版本」下拉选项(读取脱敏公共接口 `/api/v1/data-products/compute/revisions/public`),支持与「参考期 / 口径」正交切换并同步向 `/series` 与 `/posture/compute` 透传 `publish_id` / `as_of`;查看历史版本时卡片与配置区顶部展示「正在查看 {时间} 发布的版本(非当前)」及「回到当前」按钮,早于基线时展示「历史快照不完整」。
|
||||
- **逐国溯源与血缘抽屉**(`compute-topic.js` + `compute-topic-model.js`):主指标旁新增血缘触发按钮,优先按逐国 `evidence_by_code` 定位出处并请求 `/api/v1/data-products/compute/lineage`(仅在本地会话角色为 `admin`/`super_admin` 时附带 Bearer 凭证以展示复核人姓名与理由原文,公共访问与普通用户保持脱敏视图),在 `#compute-evidence` 内展示当前值、报告原文摘录、页码与 SHA-256、对象级四项时间线及修订历史。
|
||||
- **参谋同源绑定与视图失配提示**(`situational-copilot.js` + `workbench-blocks.js` + `main.js`):算力卡片打开参谋时同步透传 `publishId` / `asOf` / `mode` / `focusYear`,并监听 `earth:compute-view-changed` 将后端 `view_spec` 中的 `(publish_id, mode, focus_year)` 与卡片实时状态比对;若卡片切换口径、年份或发布版本,参谋在文字区与图表工作台区**同步**显示「本结果基于 {版本/口径},与当前地球视图不同」及「按当前视图重新研判」按钮,确保图文永不静默跨口径混排。`stage-narrative-player.js` 为 `compute-revision-notice` 显示「算力数据修订」标签并在演播完成后联动刷新最新 `publishId`。
|
||||
@@ -75,38 +75,49 @@
|
||||
|
||||
| 正式名称 | 变量名 | 当前值 | 使用位置 / 说明 |
|
||||
| --- | --- | --- | --- |
|
||||
| 国界瓦片 manifest | `COUNTRY_BOUNDARY_CONFIG.tileManifestPath` | `"/earth/data/boundaries/v1/manifest.json"` | 高精 PMTiles manifest;缺失时使用低精度 fallback |
|
||||
| 国界瓦片 provider | `COUNTRY_BOUNDARY_CONFIG.tileProvider` | `"auto"` | 优先高精 PMTiles/MVT,缺失时降级到 legacy GeoJSON |
|
||||
| PMTiles 产物路径 | `COUNTRY_BOUNDARY_CONFIG.pmtilesPath` | `"/earth/data/boundaries/earth-boundaries-china-pov-v1.pmtiles"` | 生产单文件 PMTiles/MVT artifact |
|
||||
| 低精度 fallback | `COUNTRY_BOUNDARY_CONFIG.legacyFallbackPath` | `"/earth/data/countries-admin0.min.geojson"` | 本地未构建高精国界时的缺省海陆基座和 hover 数据 |
|
||||
| MVT 图层名 | `COUNTRY_BOUNDARY_CONFIG.mvtLayerNames` | `boundary_admin0 / boundary_disputed_internal / coastline / claim_line` | PMTiles provider 解码时读取的固定 layer 名 |
|
||||
| 国界瓦片基础路径 | `COUNTRY_BOUNDARY_CONFIG.tileBasePath` | `"/earth/data/boundaries/v1/"` | PMTiles manifest 基础路径 |
|
||||
| 国界瓦片缩放阈值 | `COUNTRY_BOUNDARY_CONFIG.tileZoomThresholds` | `1.6 -> z5`, `2.8 -> z6`, `3.4 -> z7`, `4.0 -> z8`, `4.6 -> z9`, `5.2 -> z10` | 生产 PMTiles zoom 选择 |
|
||||
| 国界瓦片缓存上限 | `COUNTRY_BOUNDARY_CONFIG.tileCacheLimit` | `150` | 前端已加载瓦片几何的 LRU 缓存条目数 |
|
||||
| 国界瓦片 debounce | `COUNTRY_BOUNDARY_CONFIG.tileDebounceMs` | `180` | 视野变化后请求可见瓦片前的防抖时间 |
|
||||
| 国界瓦片 manifest | `COUNTRY_BOUNDARY_CONFIG.tileManifestPath` | `"/api/v1/earth/boundaries/manifest"` | 高精 PMTiles manifest;缺失或关闭高精时使用内置 fallback |
|
||||
| 国界瓦片文件基址 | `COUNTRY_BOUNDARY_CONFIG.tileFilesPath` | `"/api/v1/earth/boundaries/files/"` | PMTiles、`hover-index`、`hover-borders` 与 `geo-labels` 分发端点(支持 HTTP Range) |
|
||||
| 国界瓦片 provider | `COUNTRY_BOUNDARY_CONFIG.tileProvider` | `"auto"` | 优先高精 PMTiles/MVT,缺失时降级到 policy fallback GeoJSON |
|
||||
| 低精度 fallback | `POLICY_FALLBACK_URL` (`country-boundaries.js`) | `countries-admin0.china-pov-v1.geojson` | 本地未开启或未构建高精国界时的缺省海陆基座和 hover 数据 |
|
||||
| MVT 图层名 | `COUNTRY_BOUNDARY_CONFIG.mvtLayerNames` | `boundary_admin0` / `boundary_disputed_internal` / `coastline`(boundary),`boundary_admin1`(admin1),`claim_line`(claim) | PMTiles provider 解码时读取的固定 layer 组 |
|
||||
| 国界瓦片缩放阈值 | `COUNTRY_BOUNDARY_CONFIG.tileZoomThresholds` | `0 -> z2`, `1.3 -> z4`, `2.3 -> z6`, `3.8 -> z8` | 4 档瓦片切换阈值(`borderMaxZoom = 6`;`z8` 专用于细化 OSM 海岸线) |
|
||||
| 国界瓦片缓存上限 | `COUNTRY_BOUNDARY_CONFIG.tileCacheLimit` | `640` | 前端已加载瓦片几何的 LRU 缓存条目数 |
|
||||
| 国界瓦片 debounce | `COUNTRY_BOUNDARY_CONFIG.tileDebounceMs` | `180` | 视野变化后请求可见瓦片前的尾缘防抖时间 |
|
||||
| 省界/州界缩放与外观 | `admin1MinViewZoom / FullViewZoom / Color / Opacity` | `2.0 / 2.8 / 0x9fd0ff / 0.26` | `country-admin1-batch` 随放大平滑淡入 |
|
||||
| 海洋填充色 | local `OCEAN_HEX` | `0x010609` | 海陆基座 canvas 背景 |
|
||||
| 陆地填充色 | `COUNTRY_BOUNDARY_CONFIG.landColor` | `0x080f1b` | 海陆基座 canvas 陆地 |
|
||||
| 海陆基座透明度 | `COUNTRY_BOUNDARY_CONFIG.landOpacity` | `1.0` | `MeshBasicMaterial.opacity` |
|
||||
| 海陆基座半径偏移 | `COUNTRY_BOUNDARY_CONFIG.landAltitudeOffset` | `0.32` | `country-land-ocean` 半径;与地球基座拉开以避免 50% 缩放时雪花/黑块闪烁 |
|
||||
| 海陆基座 renderOrder | `COUNTRY_BOUNDARY_CONFIG.landRenderOrder` | `0.86` | `country-land-ocean.renderOrder` |
|
||||
| 海陆 mask 尺寸 | `landMaskWidth / landMaskHeight` | `2048 / 1024` | canvas / DataTexture 尺寸 |
|
||||
| 海陆 mask 尺寸 | `landMaskWidth / landMaskHeight` | `2048 / 1024` | 2px 跨日界线 `NoColorSpace` (`flipY=true`) canvas / DataTexture |
|
||||
| 国界 tint 颜色 | `COUNTRY_BOUNDARY_CONFIG.tintColor` | `0x0b1830` | 高清材质关闭时 tint |
|
||||
| 国界 tint 半径偏移 | `COUNTRY_BOUNDARY_CONFIG.tintAltitudeOffset` | `0.32` | `country-tint` 半径 |
|
||||
| 国界 tint renderOrder | `COUNTRY_BOUNDARY_CONFIG.tintRenderOrder` | `0.2` | `country-tint.renderOrder` |
|
||||
| 国界线颜色 | `COUNTRY_BOUNDARY_CONFIG.lineColor` | `0x7fc7ff` | 普通国界线 |
|
||||
| 国界线透明度 | `COUNTRY_BOUNDARY_CONFIG.lineOpacity` | `0.58` | 普通国界线 opacity |
|
||||
| 国界线 hover 时压暗透明度 | `COUNTRY_BOUNDARY_CONFIG.dimmedLineOpacity` | `0.18` | hover 时普通国界线 opacity |
|
||||
| 国界线半径偏移 | `COUNTRY_BOUNDARY_CONFIG.lineAltitudeOffset` | `0.115` | 普通国界线半径;线层靠 renderOrder 和独立 geometry 叠加,不作为整球基座深度间距参考 |
|
||||
| 国界线 renderOrder | `COUNTRY_BOUNDARY_CONFIG.lineRenderOrder` | `2.2` | 普通国界线层级 |
|
||||
| 国界 hover 颜色 | `COUNTRY_BOUNDARY_CONFIG.hoverLineColor` | `0xff3b1f` | 霓虹红橘 |
|
||||
| 国界线 hover 时压暗透明度 | `COUNTRY_BOUNDARY_CONFIG.dimmedLineOpacity` | `0.18` | hover 时普通国界线 opacity(仅作用于基底线,不污染 hover 高亮线) |
|
||||
| 国界线半径偏移 | `COUNTRY_BOUNDARY_CONFIG.lineAltitudeOffset` | `0.48` (`EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET`) | 与高清地表完全同壳,消除旋转视差 |
|
||||
| 国界线 renderOrder | `COUNTRY_BOUNDARY_CONFIG.lineRenderOrder` | `0.97` | 普通国界线层级 |
|
||||
| 国界 hover 颜色 | `COUNTRY_BOUNDARY_CONFIG.hoverLineColor` | `0xff3b1f` | 霓虹红橘(无整国蒙版,融合陆界与 OSM 海岸线全周界高亮) |
|
||||
| 国界 hover 透明度 | `COUNTRY_BOUNDARY_CONFIG.hoverLineOpacity` | `1.0` | hover 实线 opacity |
|
||||
| 国界 hover 半径偏移 | `COUNTRY_BOUNDARY_CONFIG.hoverAltitudeOffset` | `0.115` | hover 实线半径;与普通国界线同源几何对齐,避免高亮切换时出现重影 |
|
||||
| 国界 hover renderOrder | `COUNTRY_BOUNDARY_CONFIG.hoverLineRenderOrder` | `2.3` | hover 实线层级 |
|
||||
| 国界 hover 半径偏移 | `COUNTRY_BOUNDARY_CONFIG.hoverAltitudeOffset` | `0.48` (`EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET`) | hover 实线半径;与普通国界线及高清材质同壳对齐 |
|
||||
| 国界 hover renderOrder | `COUNTRY_BOUNDARY_CONFIG.hoverLineRenderOrder` | `0.99` | hover 实线层级 |
|
||||
| 国界 hover glow 透明度 | `COUNTRY_BOUNDARY_CONFIG.hoverGlowOpacity` | `0.38` | glow 线 opacity |
|
||||
| 国界 hover glow 线宽 | `COUNTRY_BOUNDARY_CONFIG.hoverGlowLineWidth` | `3` | glow `LineBasicMaterial.linewidth` |
|
||||
| 国界 hover glow 层级偏移 | `COUNTRY_BOUNDARY_CONFIG.hoverGlowRenderOrderOffset` | `0.01` | glow renderOrder = `2.29` |
|
||||
| 国界 hover glow 线宽 | `COUNTRY_BOUNDARY_CONFIG.hoverGlowLineWidth` | `3` | glow 线宽 |
|
||||
| 国界 hover glow 层级偏移 | `COUNTRY_BOUNDARY_CONFIG.hoverGlowRenderOrderOffset` | `0.01` | hover glow 相对实线递增 `0.01` 偏移 |
|
||||
| 国界 hover glow 半径偏移 | `COUNTRY_BOUNDARY_CONFIG.hoverGlowRadiusOffset` | `0` | glow 与 hover 实线共用半径,避免海岸细节处双线错位 |
|
||||
|
||||
## 3D 城市地名标注
|
||||
|
||||
由 `geo-labels.js` 与 `.geo-labels`(`hud.css`,`z-index: 4`)负责渲染,基于 `earthSurfacePoint(..., R + 0.48)` 锚定左对齐圆点,并由 `isSurfaceAnchorVisible` 裁除背面城市:
|
||||
|
||||
| 正式名称 | 变量名 | 当前值 | 使用位置 / 说明 |
|
||||
| --- | --- | --- | --- |
|
||||
| 默认显隐与同屏上限 | `defaultEnabled / maxVisibleDesktop / maxVisibleMobile` | `true / 28 / 14` | 受「显示 -> 城市地名标注」开关控制,桌面与移动端分档限流 |
|
||||
| 扫描周期与背面遮挡 | `scanIntervalMs / occlusionRadiusFactor` | `160 / 0.999` | 160ms 冲突与障碍物重算,已选标签逐帧跟随并裁除背面半球 |
|
||||
| 分级渐显阈值 | `GEO_LABEL_CONFIG.tierFade` | `1: 1.7..2.05`, `2: 2.75..3.15`, `3: 3.75..4.2` | Tier 1(首都/直辖/特区)→ Tier 2(主要城市)→ Tier 3(省会/州府)平滑淡入 |
|
||||
| 分类视觉语义 | `data-kind` (`capital` / `megacity` / `major` / `admin1`) | 琥珀金 `11.5px` / 亮白 `11px` / 柔白 `10.5px` / 浅灰 `10px` | 首都配备 `6px` 柔光金色圆点;降级行政中心统一使用 `admin1` 弱化灰点样式 |
|
||||
|
||||
## 真实地形
|
||||
|
||||
| 正式名称 | 变量名 | 当前值 | 使用位置 / 说明 |
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
|
||||
| 顺序类型 | 当前顺序 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 控制面板顺序 | 海缆 → 卫星 → 算力中心 → 船只 → BGP → 地形 → 高清材质 → 大气云图 → 国界线 → 经纬线 | 由 `displayOrder` 控制,按操作关注度排列;卫星轨迹已迁到设置面板,不再作为图层列表项。 |
|
||||
| 注册 / 启动加载顺序 | 经纬线 → 国界线 / 海陆基座 → 高清材质 → 大气云图 → 海缆 → 算力中心 → 船只 → BGP → 卫星 | 由注册顺序和 `startupPriority` 控制,按地表到天空排列;启动队列会先读取保存的图层可见状态,明确关闭的普通图层不预加载,高清材质关闭时不下载贴图;国界线图层例外,海陆基座始终预加载,保存状态只控制可交互国界线和 hover;轨迹和地形是依赖/可选显示层,不参与常规启动数据加载。 |
|
||||
| 控制面板顺序 | 海缆 → 卫星 → 算力中心 → 船只 → BGP → 地形 → 高清材质 → 大气云图 → 10m 全球风场 → 国界线 → 经纬线 | 由 `displayOrder` 控制,按操作关注度排列;卫星轨迹已迁到设置面板,不再作为图层列表项。 |
|
||||
| 注册 / 启动加载顺序 | 经纬线 → 国界线 / 海陆基座 → 高清材质 → 大气云图 → 10m 全球风场 → 海缆 → 算力中心 → 船只 → BGP → 卫星 | 由注册顺序和 `startupPriority` 控制,按地表到天空排列;启动队列会先读取保存的图层可见状态,明确关闭的普通图层不预加载,高清材质关闭时不下载贴图;国界线图层例外,海陆基座始终预加载,保存状态只控制可交互国界线和 hover;轨迹和地形是依赖/可选显示层,不参与常规启动数据加载。 |
|
||||
|
||||
## 地表图层栈
|
||||
|
||||
算力专题沿用原算力中心 Interactable 图标、深度与层次顺序;国家/年份切换会替换该层数据并清除旧选中状态。专题 HUD 属于屏幕 UI,在 `main.js` 的指针排除列表中,不参与地球 picking;区域数据卡在屏幕空间由地理锚点牵引,背面不画穿球连线,设施详情复用原详情卡和移动端详情抽屉。高清地表由 `earth-surface-material.js` 的单次绘制 `ShaderMaterial` 负责,保持原有 R+0.48 网格、深度策略和地表拾取对象。四张 8K 底图仍由原控制器切换,成功后更新采样 uniform 并释放旧纹理,失败保留原图。法线、视线和真实太阳方向统一到世界坐标;土地哑光,海洋只有掠射角冷色反射,没有白色镜面高光。海洋区分优先复用现有海陆地理纹理,未加载时使用保守色差估计,冰雪抑制反射;关闭国界线不移除光学遮罩。原始 JPEG 不重绘、不降采样。 颜色纹理标记 sRGB 并启用 mipmaps。r128 在地表 Shader 中解码 sRGB,r160 由纹理硬件格式解码;二者在线性空间合成光照后只编码一次。局部 filmic 曲线只作用于地表,不打开全局 ACES 曝光,避免改变星空和业务图层。晨昏范围为法线点积 [-0.12, 0.28],夜面在线性色调映射后保留 0.12–0.32 光照,避免暗部被曲线再次压黑。大气收敛为 R×1.025 的一个 BackSide/Additive 壳,depthWrite=false、depthTest=true,内沿散射并入地表;云图独立开关,使用哑光昼夜材质并在 1.1 顺序绘制。星图使用已有 `starmap_deep_8k.jpg`,不加染色遮罩。
|
||||
算力专题沿用原算力中心 Interactable 图标、深度与层次顺序;国家/年份切换会替换该层数据并清除旧选中状态。专题 HUD 属于屏幕 UI,在 `main.js` 的指针排除列表中,不参与地球 picking;区域数据卡在屏幕空间由地理锚点牵引,背面不画穿球连线,设施详情复用原详情卡和移动端详情抽屉。高清地表由 `earth-surface-material.js` 的单次绘制 `ShaderMaterial` 负责,保持原有 R+0.48 网格、深度策略和地表拾取对象。四张 8K 底图仍由原控制器切换,成功后更新采样 uniform 并释放旧纹理,失败保留原图。法线、视线和真实太阳方向统一到世界坐标;土地哑光,海洋只有掠射角冷色反射,没有白色镜面高光。海洋区分优先复用现有海陆地理纹理,未加载时使用保守色差估计,冰雪抑制反射;关闭国界线不移除光学遮罩。原始 JPEG 不重绘、不降采样。 颜色纹理标记 sRGB 并启用 mipmaps。r128 在地表 Shader 中解码 sRGB,r160 由纹理硬件格式解码;二者在线性空间合成光照后只编码一次。局部 filmic 曲线只作用于地表,不打开全局 ACES 曝光,避免改变星空和业务图层。晨昏范围为法线点积 [-0.12, 0.28],夜面在线性色调映射后保留 0.12–0.32 光照,避免暗部被曲线再次压黑。大气收敛为 R×1.025 的一个 BackSide/Additive 壳,depthWrite=false、depthTest=true,内沿散射并入地表;云图独立开关,使用哑光昼夜材质并在 1.1 顺序绘制,支持日间 GeoColor 真彩合成、云顶浮雕法线光影与 DIS 光流插值。星图使用已有 `starmap_deep_8k.jpg`,不加染色遮罩。
|
||||
|
||||
| 顺序 | 图层 | 来源 | 渲染 / 半径策略 | 深度 / 交互策略 | 备注 |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
@@ -22,15 +22,18 @@
|
||||
| 0.2 | 国界暗色 tint | `country-boundaries.js` | `tintAltitudeOffset = 0.32`,与海陆填色共用网格及半径 | depthTest=true、depthWrite=false,禁用 raycast | 加载占位及高清材质关闭时使用;填色就绪后按 renderOrder 覆盖。 |
|
||||
| 0.86 | 海陆基座填充 | `country-boundaries.js` | `landAltitudeOffset = 0.32`; 海洋 `#010609`,陆地 `#080f1b` | 禁用 raycast | 即使国界线关闭,基座地图仍保持可用;半径与基座球拉开以避免远距 z-fighting。 |
|
||||
| 0.96 | 高清 Earth 材质 | `earth.js` | `textureOverlayAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48` | 可见时作为地表拾取目标 | 高清材质始终压过海陆基座填充;半径必须高于海陆基座并与基座球保持足够间距;支持三阶瑞利散射晨昏过渡与海面掠射光。 |
|
||||
| 0.962 | 云影投影球壳 | `earth.js` | 与高清材质共用球半径、微角偏移 | `depthTest: true`, `depthWrite: false`, 禁用 raycast | 随大气云图开关联动,基于 `earth_clouds_2048.png` 投射柔和地表云影,严格位于 `0.96` 之上、`0.965` 之下。 |
|
||||
| 0.961 | 分块高清底图瓦片 (LOD) | `earth.js`, `spherical-tile-layer.js` | `R+0.48`(与 8K 地表共用 `EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET` 且 `polygonOffset` 优先排序;容器为普通 `Object3D` 保持 `groupOrder = 0`;相机距离比 `<= 1.85` 时从 `z=5` 按视口切分,远中景保留 8K 静态底图兜底,前端 `512` 常驻缓存并中止视野外请求) | `depthTest: true`, `depthWrite: false`, 禁用 raycast | 统一走后端 `/api/v1/earth/tiles/{source}/{z}/{x}/{y}.webp` 代理,受 `DataSource.is_active` 门控与磁盘 LRU 限制。 |
|
||||
| 0.962 | 云影投影球壳 | `earth.js` | 与高清材质共用球半径、微角偏移 | `depthTest: true`, `depthWrite: false`, 禁用 raycast | 随大气云图开关联动,基于实时云图帧投射柔和地表云影,严格位于 `0.96`/`0.961` 之上、`0.965` 之下。 |
|
||||
| 0.965 | 贴地影响范围层 | `influence-zones.js`, `scene_directives.py` | 复用 `r = 100.48`(`EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET`)`128×128` 球壳;`renderOrderBase = 0.965`,按 `tier` / `z_index` 递增 `0.0003` | `depthTest: true`, `depthWrite: false`, 禁用 raycast | 支持区域预设单次离屏模糊合成与圆形大圆距离片元着色,严格压在 `0.96` 高清地表之上且低于国界线 `0.97` 与全部交互图标。 |
|
||||
| 1 / 1.1 | 大气辉光 / 云图 | `earth.js` | 单层大气 R×1.025;云图 R+3(`FrontSide` Shader + `earth_clouds_2048.png`) | 大气 BackSide、depthWrite=false、depthTest=true;保留云图开关 | 内沿光照与 Mie 前向散射并入高清地表与大气壳,不新增全屏后处理。 |
|
||||
| 1 / 1.1 | 大气辉光 / 云图 | `earth.js` | 单层大气 R×1.025;云图 R+3(`FrontSide` Shader + 实时 IR/日间可见光融合云图 + 静态 `earth_clouds_2048.png` 兜底) | 大气 BackSide、depthWrite=false、depthTest=true;保留云图开关 | 内沿光照与 Mie 前向散射并入高清地表与大气壳,支持 GeoColor 昼色、白天低云可见光融合与 DIS 光流形变过渡。 |
|
||||
| 1.12 | 分块高清红外云图瓦片 (LOD) | `earth.js`, `spherical-tile-layer.js` | `R+3.04`(容器为普通 `Object3D` 保持 `groupOrder = 0`;默认关闭,由全局 IR+Visible 融合云图承担近距显示,可在控制台显式开启) | `depthTest: true`, `depthWrite: false`, 禁用 raycast | 受 `cloud_hd_tiles` 数据源开关控制。 |
|
||||
| 1.15 | 10m 全球风场流线 | `wind-layer.js` | `R+3.6` 预分配 `THREE.LineSegments` 动画风粒子流线(父容器为 `Object3D` 保持 `groupOrder = 0`) | `depthTest: true`, `depthWrite: false`, 禁用 raycast | 数据来自 `global_wind_gfs`(NOAA GFS `/api/v1/earth/wind/meta`),未采集时点击开关弹确认前往 `/datasources?product=weather`。 |
|
||||
| 1 | 海缆 / 登陆点 | `cables.js`, `cable-batches.js` | 海缆全量线段合并为一个 `LineSegments`;登陆点全量使用实例化 billboard;`renderOrder = 1`、海缆与登陆点统一使用高清地表 `0.48` 偏移和同源三角表面坐标 | 原始 `Line` / `Sprite` 仅作为逐项拾取和选择状态对象,材质不再单独绘制;登陆点仍按球体遮挡判断背面可见性,批量材质 `depthTest: false` | 样式通过线缆样式纹理和登陆点实例属性同步;保留颜色、脉冲、尺寸、显隐与点击语义。 |
|
||||
| 1.2 | 真实地形 | `earth.js`, `terrain.js` | `TERRAIN_CONFIG.baseRadiusOffset` 加地形位移 | 禁用 raycast | 地形压过高清材质;高清材质关闭时临时隐藏,重新开启后恢复原状态。 |
|
||||
| 2.05 | 经纬线 | `earth.js` | `CONFIG.earthRadius + 0.14` | 禁用 raycast | 低透明度显示在高清材质上。 |
|
||||
| 0.97–0.99 | 国界线 | `country-boundaries.js` | `lineAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48`;claim 线不再额外抬高 | `depthTest: true`,禁用 raycast | 线层使用独立 line geometry 与 `renderOrder` 控制,但半径与高清材质壳完全一致,避免转动地球时与高清贴图出现视差。 |
|
||||
| 0.97–0.99 | 国界线 | `country-boundaries.js` | `lineAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48`;PMTiles 瓦片共享最多 3 个合批网格(`country-boundary-batch`、`country-admin1-batch`、`country-boundary-claim-batch`);claim 线不再额外抬高 | `depthTest: true`,禁用 raycast | 线层使用独立 line geometry 与 `renderOrder` 控制,通过父瓦片兜底消除切换闪烁,半径与高清材质壳完全一致,避免转动地球时与高清贴图出现视差。 |
|
||||
| 0.98 | 国界 hover 光晕 | `country-boundaries.js` | 与地表锚点相同,无额外抬高 | `depthTest: true`,透明绘制队列,禁用 raycast | additive 光晕处于登陆点下方,背面由球体遮挡。 |
|
||||
| 0.99 | 国界 hover 实线 | `country-boundaries.js` | `hoverAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48` | `depthTest: true`,透明绘制队列,禁用 raycast | 霓虹红橘 hover 线;与普通国界线和高清材质同源半径对齐,避免重影和漂浮感;中国和中国(台湾)共享高亮组。 |
|
||||
| 0.99 | 国界 hover 实线 | `country-boundaries.js` | `hoverAltitudeOffset = EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48` | `depthTest: true`,透明绘制队列,禁用 raycast | 霓虹红橘全周界 hover 线(融合陆地国界与 OSM 海岸线,无整国半透明蒙版);与普通国界线和高清材质同源半径对齐,避免重影和漂浮感;中国与中国(台湾)共享高亮组。 |
|
||||
| 3 | 卫星 footprint 填充 / Iridium coverage ring | `satellites.js`, `iridium-footprint-adapter.js` | `GROUND_FOOTPRINT_RENDER_ORDER` | depth-tested;Iridium adapter 的 fill / ring 也使用同一 renderOrder | Footprint 在 land / texture / terrain 和国界线之上,但在算力中心和卫星之下。 |
|
||||
| 3-4.5 | BGP 观测站、事件扩散圈和事件 marker | `bgp.js`, `interactable.js` | BGP 观测站和事件 marker 均使用 `Interactable` 批量 `THREE.Points`;事件 marker 使用 `BGP_EVENT_RENDER_ORDER = 4.5`;观测站主图标使用 `BGP_COLLECTOR_RENDER_ORDER = 4.4` 和 `BGP_CONFIG.collectorAltitudeOffset = 0.2`;事件 overlay 进入 `bgp-event-overlay-layer`;观测站 halo 和覆盖扇形进入 `bgp-collector-radar-layer` | BGP 事件和观测站都通过 `Interactable` 屏幕空间 picking,并参与同坐标避让 | BGP 观测站主图标与船只同层;BGP 事件与算力中心同层;向外扩散圈、观测站雷达/覆盖动画继续由 BGP 业务逻辑驱动。 |
|
||||
| 4.3 | AIS 船只轨迹线 | `vessels.js` | `VESSEL_RENDER_ORDER - 0.1`;`CONFIG.earthRadius + VESSEL_CONFIG.track.altitudeOffset` | 跟随船只显隐,不单独参与拾取 | 选中船只后显示最近轨迹,低于船只 marker。 |
|
||||
@@ -113,3 +116,5 @@ Earth 的地表不是单一 mesh,而是多层近似同心球:基座球、海
|
||||
区域新闻与算力保留 `#earth-region-callouts` 根节点(z-index 20),并与物件详情共享 `callout-stage-arbitrator.js` 的左右侧及纵向走廊;中美双主舞台对比卡通过 `bilateralPeerKey` 对称分配左右走廊。区域根内展开卡片为 50、拖拽前景为 55,悬停展开层为 60–65;普通胶囊为 30,背面胶囊为 8 并渐淡缩小,而主舞台及悬停展开卡在背面时保持正文 100% 不透明,仅将连线切换为 `.is-rear` 虚线边缘引导并激活标题栏“转至正面视角”按钮。
|
||||
|
||||
算力专题下钻图层与逻辑路由演出弧线严格遵守同心壳深度与合批规则:中国“东数西算”八大国家算力枢纽复用 `createInteractableLayer` 单次实例化合批,贴地偏移为 `EARTH_SURFACE_TEXTURE_ALTITUDE_OFFSET = 0.48`、`renderOrder = 4.58`;西部绿电枢纽双环 `AdditiveBlending` 脉冲环 `renderOrder = 4.42`(`depthWrite: false`),东西部协同弧线与高空 BGP 逻辑路由、国界 hover、选中海缆流光、船舶尾迹及选中卫星轨道共用 `surface-ribbon.js` 屏幕空间抗锯齿发光丝带底层(摆脱 Windows ANGLE 下 `THREE.Line` 1px 限制),Iridium 足迹通过 `iridium-footprint-adapter.js` 迁入 GPU 顶点投影;退出或隐藏图层时立即 `dispose()` 几何与材质。
|
||||
|
||||
3D 城市分级标注投影层 `.geo-labels`(`geo-labels.js` + `hud.css`)使用 `z-index: 4`(位于 WebGL 画布之上、`.map-clusters` 的 `5` 与 `.satellite-labels` 的 `6` 之下);以 `earthSurfacePoint(lat, lon, R + 0.48)` 锚定左端圆点并与球体正面遮挡判定同步裁除背面城市,逐帧更新可见标签同时按层级优先级与碰撞盒自动避让 HUD、聚合徽标、区域卡片和卫星近景标签。
|
||||
@@ -92,6 +92,14 @@ Admin 的数据源页把单源触发、表格勾选触发和触发全部统一
|
||||
|
||||
这个队列是用户感知层,不替代后端调度状态。后端仍然是任务是否运行、完成、失败或跳过的唯一事实来源。
|
||||
|
||||
## 采集数据按图层台账
|
||||
|
||||
`/data`([DataList.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/DataList.tsx) 及 `pages/data-ledger/` 子模块)以地球图层为一级导航(同步 URL 参数 `?layer=`,默认 `compute`),数据契约由 `/api/v1/data-ledger/*` 提供:
|
||||
|
||||
- 左侧 [LayerNav.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/LayerNav.tsx) 复用后端 `PRODUCT_DEFINITIONS` 展示各地球图层分类与条数,并保留「原始采集记录」(`?layer=raw`)视图作为底层 `/api/v1/collected` 查询、统计切分与导出入口。
|
||||
- `layer=compute` 渲染 [ComputeLedger.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/ComputeLedger.tsx):支持 5 类算力设施类型分段筛选与计数、4 类定位状态分桶(已定位 / 待确认 / 暂不可定位 / 待定位)、国家与关键词搜索,并在「操作」列复用 `TableActionButton` 调用强制重新定位与手工编辑坐标(复用 `/api/v1/visualization/compute-centers/{source_id}/collect-location` 与坐标保存接口),点击行可查看核验依据与关联工作流运行链接。
|
||||
- 其他地球图层(卫星、海底光缆、船只、BGP、新闻与直播、气象、地理/底图)统一由 [LayerItemsLedger.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/LayerItemsLedger.tsx) 渲染只读分页台账,遵循单屏高度闭合与表格内部滚动约束。
|
||||
|
||||
## 控制台主题滑块
|
||||
|
||||
Admin 侧栏底部主题切换继续复用共享 [SegmentedControl.tsx](/home/ray/dev/linkong/planet/frontend/src/components/SegmentedControl/SegmentedControl.tsx),但主题变量在 [styles.css](/home/ray/dev/linkong/planet/frontend/src/admin/styles.css) 内跟随 `data-theme` 覆盖:
|
||||
@@ -470,6 +478,14 @@ Admin 的状态标签统一走 [StatusText](/home/ray/dev/linkong/planet/fronten
|
||||
|
||||
接口前缀 `/earth/card-images`:管理员 `GET/PUT configuration`、`POST upload`、`GET targets`、`POST preview`;公共 `GET resolve`、`GET files/{filename}`。配图配置读写保持版本和审计,文件路径不接受任意目录。
|
||||
|
||||
## 算力多口径证据台账与待审队列
|
||||
## 算力多口径证据台账、待审队列与发布历史
|
||||
|
||||
`ComputeComparisonSettings.tsx` 承载 `/earth-content?section=compute_comparison` 的单屏工作区,顶部标题栏与六个分类按钮(多口径观测、算力内部结构、创新指数分差、里程碑与八大枢纽、报告来源、Agent 待审队列)固定在头部,仅下方 `Scrollbar` 承担纵向滚动,严格闭合 `height: 100%` + `min-height: 0` 单屏高度链。发布配置走乐观锁修订号校验并完整保留 `structures`、`milestones` 与 `national_hubs`;待审队列对接 `/api/v1/situational-awareness/candidates`,支持从报告摘录提取候选份额、管理员审核通过/驳回及一键导入草稿。
|
||||
`ComputeComparisonSettings.tsx` 承载 `/earth-content?section=compute_comparison` 的单屏工作区,顶部标题栏、发布说明输入与七个分类标签(多口径观测、算力内部结构、创新指数分差、里程碑与八大枢纽、报告来源、Agent 待审队列、发布历史)固定在头部,仅下方 `Scrollbar` 承担纵向滚动,严格闭合 `height: 100%` + `min-height: 0` 单屏高度链。发布配置走乐观锁 `publish_id` 校验、完整保留 `structures` / `milestones` / `national_hubs` 及逐国来源 `value_sources`(份额类跨报告混源行强制填写同分母发布说明),并写入不可变版本台账;待审队列对接 `/api/v1/situational-awareness/candidates`,展示历史修订/新增观测/统计期冲突/重复徽章及逐国旧值→新值→差值对比表,采纳/驳回强制选择匹配理由代码与说明,导入草稿自动保护未修订国家来源并在 `period_label` 冲突时弹窗二次确认;「发布历史」标签拉取 `/api/v1/data-products/compute/revisions` 展示变更摘要、操作人、发布说明与演播投递状态。
|
||||
|
||||
## 全球实时红外云图与高清底图工作台(`weather` / `geo` 双域分工)
|
||||
|
||||
`EarthCloudMapSettings.tsx` 挂载于 `/earth-content?section=cloud_map`(“大气云图”),遵循职责分离与单屏 `height: 100%` + `min-height: 0` 高度链:聚焦 2:1 星空实时云图预览及经纬网格/强对流核 SVG 叠加、历史帧切换、全球与 8 大区域统计以及 Earth 端展示配置(启用实时云图、日间 GeoColor 真彩合成、DIS 光流形变插值、云顶浮雕强度、允许历史帧演变播放、默认开启对流核标识、默认透明度与恢复默认),同时展示只读气象采集状态摘要并引导至 `/datasources?product=weather` 与 `/collection-management`;连通性探活、采集调度/触发、数据归属与缓存清理归口至数据源管理(`weather` / `气象` 域纳管 `global_cloud_map`、`cloud_hd_tiles`、`global_wind_gfs`,新增 `geo` / `地理/底图` 域纳管 `earth_imagery_sentinel2`、`earth_imagery_viirs_daily`),上游/合成参数与连通性测试归口至采集管理中的 `采集器配置`。`EarthBasemapSettings.tsx` 挂载于 `/earth-content?section=basemap`(“底图资源”),聚焦 Sentinel-2 / NASA VIIRS 与高清云图瓦片金字塔的受控缓存预览、缓存清理、主动底图选择与视口 LOD 阈值策略。
|
||||
|
||||
## Admin 独立构建内置预览资源映射
|
||||
|
||||
线上 `planet_admin` 镜像以 `PLANET_FRONTEND_TARGET=admin` 构建(`vite.config.mts` 中 `publicDir: false`,严格排除 `dist/earth/`),但后端默认品牌与静态云图配置仍保留面向桌面端离线协议的 `/earth/assets/...` 路径。为避免线上 Admin 预览请求落入 SPA `index.html` 兜底而裂图,`frontend/vite.config.mts` 通过 `earthBuiltinAssetsPlugin` 暴露 `@earth-builtin-asset/*` 前缀并在构建期将 5 张内置预览资源(`brand/earth-logo.png`、`brand/title-zh.png`、`brand/title-en.png`、`brand/lim-logo.png`、`earth_clouds_2048.png`)按内容哈希直接发射到 `/assets/*.png`;`frontend/src/admin/lib/earthBuiltinAssets.ts` 的 `resolveEarthPreviewAssetUrl()` 仅在 `EarthBrandPreview` 与 `EarthCloudMapSettings` 预览渲染时做 URL 映射,保持表单展示值、后端存储值(`/earth/assets/...`)与用户上传的 `/earth-brand-assets/...` 原样不变。
|
||||
@@ -68,8 +68,7 @@ class LocationResolver(Protocol):
|
||||
| `BuildsUponComputeCenterResolver` | `services/compute_center_locations.py` | Epoch `builds_upon` 同园区父集群继承(继承已核验坐标) |
|
||||
| `lookup_wikidata_facility` | `resolvers/wikidata.py` | 异步 L1 Wikidata P625/P276 设施实体坐标检索 |
|
||||
| `lookup_peeringdb_facility` | `resolvers/peeringdb_facility.py` | 异步 L1 PeeringDB `/api/fac` 商业数据中心门牌与经纬度检索 |
|
||||
| `run_controlled_location_agent` | `location/agent_resolver.py` | L2–L4 受控 4 步 Tool-Calling 位置取证 Agent(抓取一手源网页 + WebSearch + `geocode_verify` + 终态持久化) |
|
||||
| `LocationLLMFallback` | `location/llm_fallback.py` | 兼容无 Tool-Calling 模型时的兜底事实核查,带严格经纬度区间、国家校验与市级降级护栏 |
|
||||
| `run_location_workflow` | `location/workflow_tools.py` | 统一 9 节点 `location.resolve_unknown` DAG 工作流(经 `dag_executor.py` 执行上下文归一化、知识库/跨源检索、Web 取证、级联 `geocode_verify`、L3 地理护栏 `evaluate_location_geo_guardrail` 与 L4 终态持久化,取代旧 `agent_resolver.py` 与 `llm_fallback.py`) |
|
||||
|
||||
Nominatim 是 OpenStreetMap 生态里的地理编码服务:给它一个地点名称、城市、国家或机构查询文本,它会返回可能匹配的经纬度、展示名称和地址结构。它适合把“城市/机构/园区名称”转成候选坐标,但不是权威事实库,可能命中同名地点或过宽泛的行政区,所以本项目只把它作为待确认候选来源,并带缓存和速率限制使用。
|
||||
|
||||
@@ -92,7 +91,7 @@ StoredComputeCenterLocationResolver()
|
||||
|
||||
主地图启动链路只做“源坐标优先,其次数据库维表坐标”。数据库表为 `compute_center_locations`,唯一键是 `(source, source_id)`,用于保存人工确认或从源记录真实坐标迁入的位置。`init_db()` 只幂等迁入源记录里已有的真实经纬度,不迁入旧硬编码 hint,不在启动期批量调用 ROR、Nominatim 或 LLM。
|
||||
|
||||
手动候选采集链路和渲染链路分开。`collect_location_candidates()` 使用源字段构造 ROR 和 Nominatim/OpenStreetMap 查询,但不会把 `compute_center_locations` 当前坐标当候选返回。如果这些常规候选为空,API 层会调用 `LocationLLMFallback`,通过当前默认 AI Provider 进行位置 factcheck,并只返回 `source="llm_location_factcheck"`、`needs_confirmation=true` 的候选。LLM 候选使用“模型自评分 + 后端证据评分”的组合阈值;如果 LLM 只给出可信 city/country 而没有坐标,后端会用 Nominatim 补城市级坐标,但不会因此提高证据分。用户在前端确认某个候选后,通过保存接口写入维表;之后地图刷新时由 `StoredComputeCenterLocationResolver` 渲染。
|
||||
手动候选采集链路和渲染链路分开。`collect_location_candidates()` 使用源字段构造 ROR 和 Nominatim/OpenStreetMap 查询,但不会把 `compute_center_locations` 当前坐标当候选返回。若常规候选不足或需要深度核验,API 层调用 `run_location_workflow()`(运行 9 节点 `location.resolve_unknown` DAG),结合跨源线索、Wikidata/PeeringDB、一手源网页/WebSearch 取证、Nominatim 级联地理编码与 `evaluate_location_geo_guardrail` 地理护栏产出带证据链的待确认候选或终态(`undisclosed` / `multi_site` / `anonymous`)。用户在前端确认某个候选后,通过保存接口写入维表;之后地图刷新时由 `StoredComputeCenterLocationResolver` 渲染。
|
||||
|
||||
`resolve_compute_center_location()`、`resolve_compute_center_location_full()` 和 `collect_location_candidates()` 保留为领域 API。`visualization.py` 只消费领域 API,不再持有坐标提示常量、国家质心兜底或 Nominatim 细节。
|
||||
|
||||
|
||||
@@ -433,15 +433,15 @@ AIS 船只图例按船型显示颜色:货轮、油轮、客船、渔船、军
|
||||
|
||||
## 算力与资源态势
|
||||
|
||||
管理员可在控制台“智能星球内容 → 算力对比”维护多口径证据台账:包含“多口径观测”“算力内部结构”“创新指数分差”“里程碑与八大枢纽”“报告来源”及“Agent 待审队列”六个工作分区。除手动录入来源与观测外,可在待审队列粘贴研报摘录提取候选份额,人工审核通过后一键导入草稿,严禁未审候选直接上屏。占比以全球为分母,绝对量统一为 FP32 EFlop/s;中美相对算力指数(RPI = 中国 / 美国 × 100)与双边份额由服务端按同年权威观测确定性派生。
|
||||
管理员可在控制台“智能星球内容 → 算力对比”维护多口径证据台账:包含“多口径观测”“算力内部结构”“创新指数分差”“里程碑与八大枢纽”“报告来源”“Agent 待审队列”及“发布历史”七个工作分区。在待审队列中粘贴研报摘录提取候选份额后,系统自动对照当前台账展示旧值、新值、差值、修订类型(历史修订 / 新增观测 / 统计期冲突 / 重复)与分母口径;采纳或驳回时必须选择理由代码并填写说明。导入草稿时仅更新修订国家的数值与逐国来源,未修订国家继续保留原报告出处;若份额类观测行混合了不同报告来源,发布前必须填写同分母说明。占比以全球为分母,绝对量统一为 FP32 EFlop/s;中美相对算力指数(RPI = 中国 / 美国 × 100)与双边份额由服务端按同年权威观测确定性派生。
|
||||
|
||||
“创新指数分差”独立维护中信所《全球人工智能创新指数报告》美国减中国的综合得分差(如 2023—2025 年 22.02 → 19.96 → 17.95),与算力份额分叉形成对照。被任何观测、结构、里程碑或八大枢纽引用的报告来源不能直接移除;重复指标年份、结构占比偏离 100%、占比总和超过 100% 等内容会拒绝发布。多人同时编辑时,后保存者收到 409 冲突提示并保留本地草稿。“恢复默认”需要确认并记录操作审计。
|
||||
“创新指数分差”独立维护中信所《全球人工智能创新指数报告》美国减中国的综合得分差(如 2023—2025 年 22.02 → 19.96 → 17.95),与算力份额分叉形成对照。被任何观测、结构、里程碑或八大枢纽引用的报告来源不能直接移除;重复指标年份、结构占比偏离 100%、占比总和超过 100% 等内容会拒绝发布。多人同时编辑时,后保存者收到 409 冲突提示并保留本地草稿。“恢复默认”会生成新的发布版本号与审计记录,历史版本可在“发布历史”标签中完整查阅。
|
||||
|
||||
点击算力中心图层行的“算力态势分析”打开配置窗,可切换五种战略视角(中美相对算力 RPI、全球总算力份额、全球智能算力份额、前沿智算集群与机架功率、绝对规模 EFlop/s),并可一键启动“算力态势 4 幕剧场导览”或“BGP 路由异动 5 幕复盘”。开启区域卡片后,桌面端默认在地球左右走廊对称展开中美双主舞台对比卡;当锚点转至地球背面时,卡片正文保持 100% 清晰可读,改用虚线边缘引导线并在标题栏提供“转至正面视角”图标按钮,不再显示生硬的“球体背面”文字。
|
||||
点击算力中心图层行的“算力态势分析”打开配置窗,可切换五种战略视角(中美相对算力 RPI、全球总算力份额、全球智能算力份额、前沿智算集群与机架功率、绝对规模 EFlop/s)及“系统发布版本”,并可一键启动“算力态势 4 幕剧场导览”或“BGP 路由异动 5 幕复盘”。选择任意历史发布版本时,卡片与配置窗顶部显示“正在查看历史版本(非当前)”提示条与“回到当前”按钮,卡片与 AI 参谋同步回放该版本当时的数值与结论。点击卡片主指标旁的溯源按钮可展开血缘抽屉,查看报告原文摘录、页码、内容哈希、观测期/发表日/入库时间/生效时间及修订记录(公开访问对复核人姓名与内部说明自动脱敏,登录管理员可查看完整留痕)。开启区域卡片后,桌面端默认在地球左右走廊对称展开中美双主舞台对比卡;当锚点转至地球背面时,卡片正文保持 100% 清晰可读,改用虚线边缘引导线并在标题栏提供“转至正面视角”图标按钮,不再显示生硬的“球体背面”文字。
|
||||
|
||||
战略算力卡片采用五层叙事结构:主指标与全球分母膨胀归因、中美算力天平(RPI)、五维口径胶囊切换与中国内部算力结构条(如智能算力占比 81% 对全球 85%)、带政策/技术里程碑旗标的分叉走廊折线图与创新指数收敛对照图、受控研判摘要(零思考链泄漏)及底部动作栏。点击“八大枢纽”可在三维球面叠加中国“东数西算”八大国家算力枢纽徽标、西部绿电脉冲环与东西部协同弧线。
|
||||
|
||||
图层面板顶栏的“态势工作台”按钮、BGP 观测图层行的“BGP 异动取证”按钮及 BGP 事件详情卡内的“参谋取证调查”入口均可直接打开动态态势工作台。工作台支持多轮自然语言连续追问(自动继承前序国家、口径与事件上下文),可一键零延迟切换“综合工作台 / 对照图 / 数据表 / 趋势走廊 / 归因拆解 / 一页简报”等预设视图,并支持切换“事后复盘 / 当时可知 / 实时观测”时间知识边界。点击“固定对照”可在宽屏并排保留历史研判视图或在窄屏收纳为顶部快速切换标签;点击“订阅异动”可关注后续态势增量;点击导出按钮可下载严格绑定当前冻结修订号(Revision)与证据引用的 Markdown 简报。三维剧场导览播放期间,任意拖拽地球或滚动滚轮都会立即停止自动飞行运镜;当后台产生新态势而用户正在手动浏览时,导览栏仅显示待播提示胶囊,不打断当前操作。
|
||||
图层面板顶栏的“态势工作台”按钮、BGP 观测图层行的“BGP 异动取证”按钮及 BGP 事件详情卡内的“参谋取证调查”入口均可直接打开动态态势工作台。从算力卡片打开参谋时,系统自动绑定当前地球视图的发布版本、口径与年份;若在卡片上切换口径或历史版本,参谋在文字综述与图表工作台区均会提示“与当前地球视图不同”,点击“按当前视图重新研判”即可按最新视图重新生成。工作台支持多轮自然语言连续追问(含追问“这次为什么变了”查看修订依据,并自动继承前序国家、口径与事件上下文),可一键零延迟切换“综合工作台 / 对照图 / 数据表 / 趋势走廊 / 归因拆解 / 一页简报”等预设视图,并支持切换“事后复盘 / 当时可知 / 实时观测”时间知识边界。点击“固定对照”可在宽屏并排保留历史研判视图或在窄屏收纳为顶部快速切换标签;点击“订阅异动”可关注后续态势增量;点击导出按钮可下载严格绑定当前冻结修订号(Revision)与证据引用的 Markdown 简报。三维剧场导览播放期间,任意拖拽地球或滚动滚轮都会立即停止自动飞行运镜;当后台发布算力数据修订或产生新态势而用户正在手动浏览时,导览栏仅显示待播提示胶囊,不打断当前操作,空闲时自动播报并明确标注“历史数据修订,不代表当期算力跃升”。
|
||||
|
||||
默认权威台账覆盖 2020—2024 年及 2025-H1 核实数据(如信通院总算力份额 2024 年美 44% / 中 23%、全球分母约 2210 EFlop/s,智能算力份额美 48% / 中 25%)。明确选择尚未发布报告的年份(如 2026)时保留待发布提示并回显最新核实期,绝不伪造回填数值。国家宏观报告指标与公开设施样本独立,设施数仅作辅助证据。
|
||||
|
||||
@@ -460,7 +460,7 @@ AIS 船只图例按船型显示颜色:货轮、油轮、客船、渔船、军
|
||||
再次触发同一数据源会创建新任务,旧失败项留在失败分组。“任务状态”使用清单图标,与刷新操作区分。CelesTrak 在短时间内可复用有效下载缓存;重新采集仍会生成独立任务并更新采集数据。
|
||||
|
||||
|
||||
显示设置中的“卫星 → 近景标签”默认开启,关闭后隐藏地图上的卫星名称,详情卡仍可使用。开关下的“近景标签显示阈值”滑块可设为 250%–500%,默认 400%;达到该缩放比例时显示标签,低于阈值时隐藏。数量滑块可设为 5–36 个,默认 36;这是显示上限,遮挡或空间不足时实际数量可能更少,设置会保存。“星空亮度”滑块范围为 0–200%,默认 100%,两项会记住选择。展开的区域卡片在各自纵向范围内平滑跟随,不再叠加装饰漂浮。悬停期间及离开后短暂停留时不自动切换关注区域;胶囊可临时展开完整内容和操作,已有卡片仍跟随地理锚点。算力图例里的分类数量只统计当前已定位点。
|
||||
显示设置中的“卫星 → 近景标签”默认开启,关闭后隐藏地图上的卫星名称,详情卡仍可使用。开关下的“近景标签显示阈值”滑块可设为 250%–500%,默认 400%;达到该缩放比例时显示标签,低于阈值时隐藏。数量滑块可设为 5–36 个,默认 36;这是显示上限,遮挡或空间不足时实际数量可能更少,设置会保存。“城市地名标注”默认开启,在放大地球时随层级依次显示国家首都、重要城市与省/州行政中心名称,并随界面语言自动切换中英文、自动避让界面面板与设施图标。“星空亮度”滑块范围为 0–200%,默认 100%,两项会记住选择。展开的区域卡片在各自纵向范围内平滑跟随,不再叠加装饰漂浮。悬停期间及离开后短暂停留时不自动切换关注区域;胶囊可临时展开完整内容和操作,已有卡片仍跟随地理锚点。算力图例里的分类数量只统计当前已定位点。
|
||||
|
||||
|
||||
地表点位聚合后显示带数量的实心圆,点击可展开成员;只有同坐标或极近坐标点位在原位置附近紧凑堆叠,普通点始终回到各自真实位置;堆叠露出可点击边缘,点击后排图标会将它置前并打开详情,取消焦点后恢复原位。放大超过 250% 后普通聚合自动拆开,500% 不再保留聚合圆标,同坐标点直接展开。
|
||||
|
||||
@@ -469,9 +469,9 @@ uv run pytest backend/tests/test_otp_service.py
|
||||
1. 在控制台 `运维与配置 -> 智能星球内容 -> 国界精度` 保存国界源配置;本机配置写入 `config/earth-boundary-sources.local.json`,不要提交。
|
||||
2. 点击“构建高精国界”,或在 Earth 页面工具栏齿轮中切到“高精”触发首次构建。后端会下载三类源到 `data/earth-boundary-sources/`,生成 source manifest,并调用 PMTiles 构建脚本。
|
||||
3. 构建器需要本机 PATH 里有 `tippecanoe` 和 `pmtiles`。缺工具时接口返回明确错误,不会写入数据源采集记录。
|
||||
4. 构建成功后应输出 `frontend/public/earth/data/boundaries/earth-boundaries-china-pov-v1.pmtiles` 和对应 manifest。
|
||||
5. 部署后打开智能星球,开启“国界线”,放大中国东南海岸、台湾、海南、南海、藏南、科索沃、加沙等区域验证 hover 和边界口径。
|
||||
6. 如果本地没有高精 manifest/PMTiles,Earth 会使用 `frontend/public/earth/data/countries-admin0.min.geojson` 低精度 fallback;如果高精产物存在但瓦片请求失败,按 PMTiles range 请求、manifest provider、Nginx `.pmtiles` 静态返回和 sha256 一致性排查。
|
||||
4. 构建成功后产物写入后端边界数据卷(默认 `backend/data/earth-boundaries/`),由 `/api/v1/earth/boundaries/manifest` 与 `/api/v1/earth/boundaries/files/{name}`(支持 `GET`/`HEAD`、`Range` 与不可变缓存)分发 `earth-boundaries.<assetVersion>.pmtiles`、`hover-index.<assetVersion>.json`、`hover-borders.<assetVersion>.json` 与 `geo-labels.<assetVersion>.json`。
|
||||
5. 部署后打开智能星球,开启“国界线”,放大中国东南海岸、台湾、海南、南海、藏南、科索沃、加沙等区域验证 hover、边界口径与城市分级标注。
|
||||
6. 如果本地没有高精 manifest/PMTiles,Earth 会使用仓库内置 `frontend/public/earth/data/countries-admin0.china-pov-v1.geojson` 低精度 fallback;如果高精产物存在但瓦片请求失败,按 `/api/v1/earth/boundaries/files/{name}` 的 `Range` 请求、manifest provider、反代透传与 `sha256` 一致性排查。
|
||||
|
||||
## 在本机发版,生产机自动部署
|
||||
|
||||
|
||||
@@ -85,6 +85,17 @@ flowchart TB
|
||||
- **删除语义**:删除 TOP500 等 source 后必须刷新 `computeCenters`;删除位置维表则也要刷新该图层。通常用 `reload`,因为位置更新不一定需要先清空。
|
||||
- **常见异常**:采集已完成但 Earth 数量不变,通常是接口使用缓存、位置维表未更新,或 source 删除没有触发 adapter。
|
||||
|
||||
### 算力台账修订、双时间轴与血缘推导链路
|
||||
|
||||
国家/区域算力对比台账独立于设施样本,围绕不可变版本账本 `compute_configuration_revisions` 运行(`system_settings` 中的 `compute_comparison` 仅作为当前发布版本的同步缓存,恢复默认时新增版本记录且不删除行):
|
||||
|
||||
- **双时间轴语义**:
|
||||
- `cutoff_at`(`time_basis=as_known_then`)按报告发表日过滤来源;行内逐国来源(`value_sources`)被截断时只剔除该国数值,不影响同年份仍早于截点的其他国家。
|
||||
- `as_of` / `publish_id` 按系统发布时间轴回放历史发布台账(`GET /data-products/compute/series`、`GET /situational-awareness/posture/compute` 及 Copilot 会话/轮次透传);早于首次基线版本时返回 `snapshot_unavailable: true` 且不回查当前台账。
|
||||
- **候选提取、去重与复核**:`POST /situational-awareness/candidates/extract` 按 `(source_id, metric, year, period_label, values)` 计算 `dedupe_fingerprint` 去重,写入只增不覆盖的 `EvidenceRecord`(含 `content_sha256`、`locator`、`excerpt`),并与当前台账生成逐国 `comparison`(标注 `historical_revision`、`period_conflict` 与分母口径);`POST /candidates/{id}/review` 强制要求匹配的 `reason_code` 与说明,且已关联 `published_publish_id` 的候选锁定不可再改(409)。
|
||||
- **版本驱动演播与失败补播**:`PUT /data-products/compute/configuration` 与 `POST /configuration/reset` 提交事务后直接按新版本 `diff_summary` 调用 `process_compute_revision_presentation`(与 BGP `classify_snapshot_delta` 完全解耦),为任意非零观测变更(含小幅历史修订与 B→A 回退)编译 `compute-revision-notice` 演播契约(以 `revision = 版本行 id` 单调递增并按 `publish_id` 去重);失败时记录 `presentation_status=failed` 与错误摘要并由启动初始化、5 分钟定时任务及 `POST /proactive/evaluate` 自动补播。
|
||||
- **读取时血缘推导与脱敏**:`GET /data-products/compute/lineage` 不建镜像关系表,直接按目标版本与向前最多 50 条 `compute_configuration_revisions` 的 `diff_summary` 关联 `compute_evidence_candidates` 和 `evidence_records`,推导当前值、报告出处/哈希、对象级时间线(观测期、发表日、候选入库时间、生效发布时间)与修订时间线;非管理员(匿名或 `viewer`)访问 `/lineage` 与 `/revisions/public` 时自动脱敏,将复核/发布人替换为「已人工复核」并仅保留理由类别中文标签,隐藏原始 `review_reason` 与 `publish_note`。
|
||||
|
||||
## BGP 链路
|
||||
|
||||
BGP 数据用于展示路由观测站、异常事件、事件扩散圈和态势摘要。Earth 不直接展示原始 BGP 行,而是展示聚合后的观测、异常和事件。因此 BGP 是最容易出现“原始数据删了但 Earth 还在”的链路。
|
||||
|
||||
Reference in new issue
Block a user