Compare commits

...

10 Commits

Author SHA1 Message Date
rayd1o
36be9e3da6 release: bump version to 0.76.18
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
release / images (push) Has been cancelled
ci / delivery (push) Has been cancelled
2026-10-02 05:46:33 +08:00
rayd1o
7d8822d34d release: bump version to 0.76.17
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled
2026-10-02 03:38:52 +08:00
rayd1o
ae1a4b3942 release: bump version to 0.76.16
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled
2026-10-02 03:22:11 +08:00
rayd1o
35e478642b release: bump version to 0.76.15
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled
2026-10-02 03:11:41 +08:00
rayd1o
33734b08b8 release: bump version to 0.76.14
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled
2026-10-02 02:56:14 +08:00
rayd1o
bbe47c5759 release: bump version to 0.76.13
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled
2026-10-02 02:43:55 +08:00
rayd1o
361bf258e4 release: bump version to 0.76.12
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled
2026-10-02 02:33:36 +08:00
rayd1o
83c552f9b2 release: bump version to 0.76.11
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled
2026-10-02 02:21:20 +08:00
rayd1o
15fed1e121 release: bump version to 0.76.10
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled
2026-10-02 02:10:26 +08:00
rayd1o
f4514b588e release: bump version to 0.76.9
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
ci / delivery (push) Has been cancelled
release / images (push) Has been cancelled
2026-10-02 01:56:05 +08:00
13 changed files with 261 additions and 73 deletions

View File

@@ -1 +1 @@
0.76.8
0.76.18

View File

@@ -8,6 +8,137 @@ This project follows the repository versioning rule:
- `improvement` -> `+0.0.1`(bugfix + 小功能混合)
- `bugfix` -> `+0.0.1`
## [0.76.18] — 2026-10-02
Released: 2026-10-02
### Highlights
- 收敛 Earth 新闻 breaking 交互、卡片 hover、面板稳定性与 ticker 玻璃扫光,并修复船只地表锚点显隐。
### Added / Fixed / Improved
- breaking 数据、ticker 当前项、面板生命周期和选中态分离;展开面板时冻结卡片 DOM,后台更新在关闭时应用。
- ticker 保留原有容器与滚动,breaking 扫光独立于静态上下边线,连续 breaking 切换不重启;卡片 hover/扫光统一复用等级色相。
- 新闻卡片内容高度、首卡间距和 cruise 选中态统一;船只 marker 复用地表锚点遮挡,保持前后显隐与 BGP/算力对象一致。
- 同步 Earth 前端状态机与渲染层中英文开发文档。
---
## [0.76.17] — 2026-10-02
Released: 2026-10-02
### Highlights
- 修复 ticker 连续 breaking 新闻切换时扫光动画重启导致的闪烁、回跳和断帧。
### Added / Fixed / Improved
- breaking 等级 class 只负责颜色,稳定的 active 状态负责动画生命周期。
- ticker 与卡片扫光方向统一为左到右,连续 breaking 切换不重置时间轴。
---
## [0.76.16] — 2026-10-02
Released: 2026-10-02
### Highlights
- 修复 ticker breaking class 每 120ms 重置导致的边框闪烁、扫光停滞和方向反转。
### Added / Fixed / Improved
- watcher 仅在当前 breaking 等级变化时更新 class,动画可以完整播放。
- ticker 与卡片扫光方向统一为左到右,ticker 扫光覆盖完整 ticker 区域。
---
## [0.76.15] — 2026-10-02
Released: 2026-10-02
### Highlights
- 将 ticker 扫光限制在上下边线以内,消除 breaking 边框被扫光伪元素带动闪烁。
### Added / Fixed / Improved
- ticker 扫光与卡片扫光保持独立横向移动,边线保持稳定,只响应 hover/等级颜色。
---
## [0.76.14] — 2026-10-02
Released: 2026-10-02
### Highlights
- 修复卡片扫光从中途出现的问题,让反射从卡片左边界完整扫到右边界。
### Added / Fixed / Improved
- 卡片反射改用内部 `background-position` 扫描,不再使用卡片外部 transform 起始。
- ticker 上下边线保持静态,横向扫光独立运行。
---
## [0.76.13] — 2026-10-02
Released: 2026-10-02
### Highlights
- 修正 breaking hover 强度基准,hover 会在自身 breaking 高亮上继续增强。
### Added / Fixed / Improved
- ticker hover 从 breaking 原始色相和强度继续增强,不再回落到普通新闻强度。
- breaking 卡片边框 hover 同样相对自身等级增强,保持红/橙/黄颜色连续。
---
## [0.76.12] — 2026-10-02
Released: 2026-10-02
### Highlights
- 修复 breaking ticker 和黄卡 hover 被白色混合漂淡的问题。
### Added / Fixed / Improved
- hover 使用共享强度参数与等级色相,玻璃底复用深色 HUD surface。
- 红色 ticker 保持红色边线,黄色卡片保持黄色 tint,不再被白色边框稀释。
---
## [0.76.11] — 2026-10-02
Released: 2026-10-02
### Highlights
- 修正 breaking 卡片整卡扫光层级,并将 ticker hover 亮度对齐共享 HUD 面板。
### Added / Fixed / Improved
- 卡片扫光覆层位于内容之上,整张卡片 hover/focus 时才扫过。
- ticker 上下边线 hover 使用共享 HUD 边框 hover 强度,breaking 只替换色相。
---
## [0.76.10] — 2026-10-02
Released: 2026-10-02
### Highlights
- 将 breaking 卡片扫光限制为当前 hover/focus 卡片,避免所有卡片同时动态闪烁。
### Added / Fixed / Improved
- 卡片反射层默认关闭,只在当前交互卡片上启动对应等级颜色扫光。
- ticker 的全宽 breaking 扫光保持独立,不影响卡片浏览。
---
## [0.76.9] — 2026-10-02
Released: 2026-10-02
### Highlights
- 修复 breaking 卡片黄色 hover 变淡,并补齐 ticker 上下边线的 hover 高亮反馈。
### Added / Fixed / Improved
- 卡片 hover 使用不透明等级色相和统一混合强度,红/橙/黄表现一致。
- ticker hover 只强化上下两条边,普通新闻使用蓝色,breaking 使用对应等级颜色。
---
## [0.76.8] — 2026-10-02
Released: 2026-10-02

View File

@@ -443,12 +443,12 @@ The previous breaking rule was global shell promotion: if the payload contained
The current state machine keeps data, ticker visibility, panel lifecycle and selection separate:
- `getNewsBreakingState()` derives the data state from `items` and `cruise_items`, ignores expired stories, and ranks `critical > breaking > watch`. The expiry timestamp only schedules the next recomputation.
- A ticker viewport watcher runs every 120 ms and chooses the item with the greatest viewport overlap, breaking ties by distance to the viewport center. Only when that current item has a non-`none` level does the ticker switch its horizontal rules to `has-breaking-*`; it returns to neutral as soon as the current item is not breaking.
- A ticker viewport watcher runs every 120 ms and chooses the item with the greatest viewport overlap, breaking ties by distance to the viewport center. Only when that current item has a non-`none` level does the ticker switch its horizontal rules to `has-breaking-*`; a brief no-overlap gap at the duplicated-track seam retains the active state so the sweep timeline and borders do not restart.
- The panel lifecycle is `closed → opening → open → closing → closed`. Opening and closing control morphing, visibility and ticker hiding; they do not mutate the breaking data. During `opening/open`, the current card DOM stays stable while incoming payloads are deferred and applied once on close, so realtime updates cannot rebuild a hovered card.
- `selectedCruiseStoryId` is independent of breaking severity. Selection, focus, hover and close only change the selected story and reading position; close also clears the selection and filter popover.
- The expanded panel always keeps its blue glass surface. Breaking colors remain on the matching story cards, so opening the panel never turns the entire glass panel red; the ticker can still show a red signal when the currently scrolling story is breaking.
The glass-reflection pulse is implemented: when the current ticker story enters a breaking state, its `::after` emits a low-frequency, limited-amplitude full-width horizontal red/amber sweep and pulse; the matching breaking card gets a single glass reflection sweep through its own `::after`. The panel base remains blue and there is no permanently flashing full border. `prefers-reduced-motion` disables the animation and keeps a low-intensity static cue. This visual sub-state stays attached to the current breaking story and matching card, independent of whether the panel is open.
The glass-reflection effect is implemented: when the current ticker story enters a breaking state, its `::after` carries a short, feathered light cloud across the ticker glass area; the matching breaking card gets a full-card reflection sweep through its own `::after`. The panel base remains blue and the static top/bottom rules do not participate in the sweep. `prefers-reduced-motion` disables the animation and keeps a low-intensity static cue. This visual sub-state stays attached to the current breaking story and matching card, independent of whether the panel is open.
Compute cards directly reuse the shared `.hud-panel` background, border, shadow, and glass treatment. Summary, essentials, and detail areas add no separate black surface. Their headers share inset spacing with the layer panel through `.hud-panel__header--inset` / `.layer-panel-header`; primary numbers remain prominent and essential information stays visible.

View File

@@ -31,7 +31,7 @@ Note: the layer control panel order and the registration / startup load order ar
| 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. |
| 4.4 | AIS vessel markers | `vessels.js`, `interactable.js` | `VESSEL_RENDER_ORDER`; business radius `CONFIG.earthRadius + VESSEL_CONFIG.altitudeOffset`; normal markers are bucketed `THREE.Points`, hover / locked states are single-point overlays | `depthTest: true`; `main.js` uses screen-space picking for front-facing markers; `cluster: false` and `avoidance: false` | Moving vessels use triangular point textures, anchored / slow vessels use dots. Dense waterways may overlap and do not participate in dynamic screen clustering, avoiding Points rebuilds during rotation. |
| 4.4 | AIS vessel markers | `vessels.js`, `interactable.js` | `VESSEL_RENDER_ORDER`; business radius `CONFIG.earthRadius + VESSEL_CONFIG.altitudeOffset`; normal markers are bucketed `THREE.Points`, hover / locked states are single-point overlays; whole-anchor occlusion matches BGP and compute markers at the globe limb | `depthTest: false`, with visibility decided by anchor occlusion; `main.js` uses screen-space picking for front-facing markers; `cluster: false` and `avoidance: false` | Moving vessels use triangular point textures, anchored / slow vessels use dots. Dense waterways may overlap and do not participate in dynamic screen clustering, avoiding Points rebuilds during rotation. |
| 4.5 | Compute centers | `compute-centers.js`, `interactable.js` | `COMPUTE_CENTER_RENDER_ORDER` | Screen-space Interactable picking, with surface-icon collision handling | Surface facilities, below satellites. |
| 6 | Satellite dots | `satellites.js` | SGP4 altitude compressed to R+4..25; fallback R+8 | Screen-space satellite picking | Satellite dots above footprints and compute centers. |
| 12+ | Satellite locked ring, halo, predicted orbit | `satellites.js` | `SATELLITE_CONFIG.overlayRenderOrder` and offsets; predicted orbit follows the same real-altitude toggle and fixes the lock-time globe pose to draw an open full-period inertial curve with forward-flow highlights; returns to same-sphere mode when real altitude is disabled | Satellite overlay path | Used for selected/locked satellite emphasis. |
@@ -98,7 +98,7 @@ Base, tint, land fill and HD surface now use `createEarthSurfaceGeometry()` and
### Surface marker alignment and limb visibility
Cables and landing points share R+0.48, the `earthSurfacePoint` triangle projection and renderOrder=1. Related landing halos use an emphasis attribute in the existing batch, adding no Sprite or draw call. Rounded badges use GPU anchor ray/sphere occlusion: draw the entire billboard when its anchor is visible, otherwise clip it entirely. CPU picking uses the same test to reject rear anchors. Only `icon.badge` layers (including compute and collectors; vessels independently use heading arrows) use this path. The selected BGP event's static overlay halo uses the event icon's R+0.48 anchor, foreground order and whole-anchor front/rear visibility; the existing animated BGP event ring remains a separate effect with its original behavior.
Cables and landing points share R+0.48, the `earthSurfacePoint` triangle projection and renderOrder=1. Related landing halos use an emphasis attribute in the existing batch, adding no Sprite or draw call. Rounded badges and vessel heading arrows use GPU anchor ray/sphere occlusion: draw the entire billboard when its anchor is visible, otherwise clip it entirely. CPU picking uses the same test to reject rear anchors. The selected BGP event's static overlay halo uses the event icon's R+0.48 anchor, foreground order and whole-anchor front/rear visibility; the existing animated BGP event ring remains a separate effect with its original behavior.
The `.map-clusters` projection layer uses z-index 8 below HUD and whole-marker occlusion from real surface anchors. Ordinary points retain their Three.js layers; transitioning members render only once in the projection layer. Spider legs use widened transparent hit areas; hover highlights the matching line and child, and both clicks resolve the same business object. Wheel input over projected markers and legs continues to zoom the globe.

View File

@@ -576,12 +576,12 @@ Earth 原有 Roboto Condensed 字体已随 `assets/fonts/` 本地分发,许可
当前状态机将数据态、ticker 显示态、面板生命周期和选中态分开:
- 数据态由 `getNewsBreakingState()` 从 `items` 与 `cruise_items` 合并计算,只接受未过期项目,并按 `critical > breaking > watch` 排序;到期时间只负责安排下一次重新计算。
- ticker 的显示态由滚动视口 watcher 每 120ms 取视口内重叠最多、距离中心最近的当前项目。只有当前项目的 breaking 等级非 `none` 时,ticker 的上下细线才切换为对应的 `has-breaking-*` 颜色;当前项目离开后立即恢复中性。
- ticker 的显示态由滚动视口 watcher 每 120ms 取视口内重叠最多、距离中心最近的当前项目。只有当前项目的 breaking 等级非 `none` 时,ticker 的上下细线才切换为对应的 `has-breaking-*` 颜色;循环换项产生的短暂无重叠空档会保留 active 状态,避免扫光时间轴重启或边线闪烁。
- 面板生命周期 `panelPhase` 只有 `closed → opening → open → closing → closed`。打开/关闭只控制形变、可见性和 ticker 的隐藏,不改变 breaking 数据态;进入 `opening/open` 后保留当前卡片 DOM,后台 payload 先暂存,关闭时再一次性应用,避免 hover 卡片被实时更新重建。
- `selectedCruiseStoryId` 独立于 breaking 等级。选择、聚焦、悬停和关闭只更新选中项与阅读位置;关闭时清空选中项及筛选弹层。
- 展开面板始终使用蓝色玻璃底。breaking 只在对应新闻卡片上使用等级颜色,因此点开面板不会把整块玻璃染成红色,之后滚动到 breaking 新闻时仍可让 ticker 显示红色提示。
breaking 的玻璃反射脉冲已实现:ticker 当前项目进入 breaking 状态时,`::after` 以低频、有限幅度的全宽横向扫光带增强并闪烁;展开面板中只在对应 breaking 新闻卡片上用 `::after` 扫过一条玻璃反射带。面板底色保持蓝色,不使用持续闪烁的整圈边缘;`prefers-reduced-motion` 下停用动画并保留低强度静态提示。该视觉子状态挂在当前 breaking 项目和对应卡片上,不与面板是否打开耦合。
breaking 的玻璃反射效果已实现:ticker 当前项目进入 breaking 状态时,`::after` 用短而四周羽化的光团横穿 ticker 玻璃区域;展开面板中只在对应 breaking 新闻卡片上用 `::after` 扫过整卡反射带。面板底色保持蓝色,静态上下边线不参与扫光;`prefers-reduced-motion` 下停用动画并保留低强度静态提示。该视觉子状态挂在当前 breaking 项目和对应卡片上,不与面板是否打开耦合。
算力卡片外观直接复用共享 `.hud-panel` 的背景、边框、阴影和玻璃效果,摘要、基础信息及详情区不再叠加单独黑底。标题栏与图层面板共用 `.hud-panel__header--inset` / `.layer-panel-header` 的内边距;主数字继续突出,基础信息保持常显。

View File

@@ -32,7 +32,7 @@
| 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。 |
| 4.4 | AIS 船只 marker | `vessels.js`, `interactable.js` | `VESSEL_RENDER_ORDER`;业务高度为 `CONFIG.earthRadius + VESSEL_CONFIG.altitudeOffset`;普通 marker 为分桶 `THREE.Points`,hover / locked 为单点 `THREE.Points` overlay | `depthTest: true`;`main.js` 使用屏幕空间 picking,只取正面 marker;`cluster: false` 且 `avoidance: false` | 航行船只用三角点纹理,停泊/低速用圆点;密集海域允许重叠,不参与动态屏幕聚类,避免旋转时重建 Points;低于算力中心 `4.5`。 |
| 4.4 | AIS 船只 marker | `vessels.js`, `interactable.js` | `VESSEL_RENDER_ORDER`;业务高度为 `CONFIG.earthRadius + VESSEL_CONFIG.altitudeOffset`;普通 marker 为分桶 `THREE.Points`,hover / locked 为单点 `THREE.Points` overlay;使用锚点整块遮挡,与 BGP/算力图标在地球边缘保持同一显隐策略 | `depthTest: false`,由锚点前后显隐控制;`main.js` 使用屏幕空间 picking,只取正面 marker;`cluster: false` 且 `avoidance: false` | 航行船只用三角点纹理,停泊/低速用圆点;密集海域允许重叠,不参与动态屏幕聚类,避免旋转时重建 Points;低于算力中心 `4.5`。 |
| 4.5 | 算力中心 | `compute-centers.js`, `interactable.js` | 使用 `COMPUTE_CENTER_RENDER_ORDER` 并由 `Interactable` 绘制 | 通过 `Interactable` 屏幕空间 picking,参与同坐标避让 | 地表设施层,保持在卫星下方。登陆点已下沉到海缆层。 |
| 6 | 卫星点 | `satellites.js` | SGP4 高度压缩为 R+4..25;回退高度 R+8 | 屏幕空间卫星拾取 | 卫星点压过 footprint 和算力中心。 |
| 12+ | 卫星锁定 ring、halo、预测轨道 | `satellites.js` | `SATELLITE_CONFIG.overlayRenderOrder` 及偏移;预测轨道使用同一真实高度开关,并固定锁定时刻的地球姿态来绘制 完整周期开放惯性轨道与方向流光;关闭真实高度时回到同层球面 | 卫星覆盖层路径 | 用于选中 / 锁定卫星强调。 |
@@ -100,7 +100,7 @@ Earth 的地表不是单一 mesh,而是多层近似同心球:基座球、海
### 地表标记对齐与侧面显隐
海缆和登陆点现在统一使用 R+0.48 及 `earthSurfacePoint` 三角表面投影,并保持 renderOrder=1。登陆点关联光晕进入原实例批次的 emphasis 属性,不增加独立 Sprite 或 draw call。侧面的完整圆角徽标采用 GPU 锚点射线/球体遮挡:锚点可见则整个 billboard 绘制,锚点被地球挡住则整块裁除。CPU 拾取使用同样的射线判断,避免点到背面图标。该路径只作用于 `icon.badge` 层(含算力、观测站;船舶独立使用航向箭头)。选中 BGP 事件的静态覆盖光晕使用事件图标相同的 R+0.48 锚点、前景顺序和整块前后显隐;BGP 发散圆环仍保留原有独立动画语义。
海缆和登陆点现在统一使用 R+0.48 及 `earthSurfacePoint` 三角表面投影,并保持 renderOrder=1。登陆点关联光晕进入原实例批次的 emphasis 属性,不增加独立 Sprite 或 draw call。侧面的完整圆角徽标和船舶航向箭头采用 GPU 锚点射线/球体遮挡:锚点可见则整个 billboard 绘制,锚点被地球挡住则整块裁除。CPU 拾取使用同样的射线判断,避免点到背面图标。选中 BGP 事件的静态覆盖光晕使用事件图标相同的 R+0.48 锚点、前景顺序和整块前后显隐;BGP 发散圆环仍保留原有独立动画语义。
聚合投影层 `.map-clusters` 的 z-index 为 8,低于 HUD;以真实地表锚点做整标遮挡。普通点仍使用原 Three.js 图层,过渡中的成员只在投影层显示一次,避免双图标。Spiderfy 引线有透明加宽命中区域,悬停联动高亮引线与子点,点击返回同一业务对象;滚轮在图标与引线上继续缩放地球。

View File

@@ -16,12 +16,22 @@
## Current Version
- `main` 当前主线历史推导到:`0.16.5`
- `dev` 当前开发分支历史推导到:`0.76.8`
- `dev` 当前开发分支历史推导到:`0.76.18`
## Timeline
| Version | Type | Branch | Commit | Summary |
| --- | --- | --- | --- | --- |
| `0.76.18` | bugfix | `dev` | `v0.76.18` | 收敛 breaking 新闻交互、卡片 hover/扫光、面板稳定性、船只锚点显隐并同步开发文档 |
| `0.76.17` | bugfix | `dev` | `v0.76.17` | 稳定 breaking active 动画状态,修复连续新闻切换时扫光重启闪烁 |
| `0.76.16` | bugfix | `dev` | `v0.76.16` | 修复 breaking class 重置导致的边框闪烁、扫光停滞与方向反转 |
| `0.76.15` | bugfix | `dev` | `v0.76.15` | ticker 扫光限制在上下边线以内,消除 breaking 边框闪烁并与卡片特效分离 |
| `0.76.14` | bugfix | `dev` | `v0.76.14` | 修复卡片扫光起点,改为从卡片左边界到右边界的内部背景扫描 |
| `0.76.13` | bugfix | `dev` | `v0.76.13` | breaking hover 以自身高亮为基准继续增强,修复红 ticker/卡片变暗 |
| `0.76.12` | bugfix | `dev` | `v0.76.12` | 修复 breaking ticker 与黄卡 hover 被白色混合漂淡,保留等级色相 |
| `0.76.11` | bugfix | `dev` | `v0.76.11` | breaking 卡片整卡扫光及 ticker hover 强度对齐共享 HUD |
| `0.76.10` | bugfix | `dev` | `v0.76.10` | breaking 卡片扫光仅在 hover/focus 时启动,避免全列表同时闪烁 |
| `0.76.9` | bugfix | `dev` | `v0.76.9` | 统一 breaking 卡片 hover 强度并增加 ticker 上下边线 hover 高亮 |
| `0.76.8` | bugfix | `dev` | `v0.76.8` | 展开新闻面板时冻结卡片 DOM,隔离 ticker/realtime 更新并修复 hover 抖动 |
| `0.76.7` | bugfix | `dev` | `v0.76.7` | 统一 breaking 卡片 hover 行为并通过卡片等级变量注入颜色 tint |
| `0.76.6` | bugfix | `dev` | `v0.76.6` | breaking ticker 全域扫光闪烁,新闻列表首卡增加顶部呼吸空间 |

View File

@@ -1,6 +1,6 @@
{
"name": "planet-frontend",
"version": "0.76.8",
"version": "0.76.18",
"private": true,
"packageManager": "bun@1",
"dependencies": {

View File

@@ -4,7 +4,10 @@
--news-ticker-width: min(calc(820px * var(--hud-scale)), 58vw);
--news-ticker-edge-fade: calc(96px * var(--hud-scale));
--news-ticker-rule-color: var(--hud-border);
--news-ticker-line-color: var(--news-ticker-rule-color);
--news-ticker-hover-rule-color: var(--hud-border-hover);
--news-breaking-color: rgba(255, 166, 102, 0.46);
--news-breaking-hue: rgb(255 166 102);
position: absolute;
top: calc(var(--hud-offset) + calc(2px * var(--hud-scale)));
left: 50%;
@@ -42,29 +45,28 @@
z-index: -1;
pointer-events: none;
background:
linear-gradient(90deg, transparent, var(--news-ticker-rule-color) var(--news-ticker-edge-fade), var(--news-ticker-rule-color) calc(100% - var(--news-ticker-edge-fade)), transparent) top / 100% 1px no-repeat,
linear-gradient(90deg, transparent, var(--news-ticker-rule-color) var(--news-ticker-edge-fade), var(--news-ticker-rule-color) calc(100% - var(--news-ticker-edge-fade)), transparent) bottom / 100% 1px no-repeat,
linear-gradient(90deg, transparent, var(--news-ticker-line-color) var(--news-ticker-edge-fade), var(--news-ticker-line-color) calc(100% - var(--news-ticker-edge-fade)), transparent) top / 100% 1px no-repeat,
linear-gradient(90deg, transparent, var(--news-ticker-line-color) var(--news-ticker-edge-fade), var(--news-ticker-line-color) calc(100% - var(--news-ticker-edge-fade)), transparent) bottom / 100% 1px no-repeat,
linear-gradient(90deg, rgba(17, 31, 53, 0), rgba(17, 31, 53, 0.84) var(--news-ticker-edge-fade), rgba(7, 17, 31, 0.84) calc(100% - var(--news-ticker-edge-fade)), rgba(7, 17, 31, 0));
}
.earth-news-ticker::after {
content: "";
position: absolute;
inset: calc(-8px * var(--hud-scale)) calc(-14px * var(--hud-scale));
inset: calc(4px * var(--hud-scale)) calc(-1 * var(--news-ticker-edge-fade));
z-index: 0;
pointer-events: none;
opacity: 0;
background: linear-gradient(
102deg,
transparent 0%,
transparent 34%,
color-mix(in srgb, var(--news-breaking-color) 18%, transparent) 43%,
transparent 42%,
color-mix(in srgb, var(--news-breaking-color) 18%, transparent) 47%,
var(--news-breaking-color) 50%,
color-mix(in srgb, var(--news-breaking-color) 18%, transparent) 57%,
transparent 66%,
color-mix(in srgb, var(--news-breaking-color) 18%, transparent) 53%,
transparent 58%,
transparent 100%
) 140% 0 / 220% 100% no-repeat;
filter: blur(calc(8px * var(--hud-scale)));
) -100% 0 / 200% 100% no-repeat;
mix-blend-mode: screen;
}
@@ -73,27 +75,43 @@
z-index: 3;
}
.earth-news-ticker.has-breaking-watch::after,
.earth-news-ticker.has-breaking-breaking::after,
.earth-news-ticker.has-breaking-critical::after {
animation: earthNewsBreakingGlassPulse 2.4s ease-in-out infinite;
.earth-news-ticker.is-breaking-active::after {
animation: earthNewsBreakingGlassSweep 1.8s linear infinite;
}
.earth-news-ticker.has-breaking-watch {
--news-breaking-color: rgba(255, 213, 128, 0.42);
--news-breaking-hue: rgb(255 213 128);
--news-ticker-rule-color: var(--news-breaking-color);
}
.earth-news-ticker.has-breaking-breaking {
--news-breaking-color: rgba(255, 151, 78, 0.5);
--news-breaking-hue: rgb(255 151 78);
--news-ticker-rule-color: var(--news-breaking-color);
}
.earth-news-ticker.has-breaking-critical {
--news-breaking-color: rgba(255, 95, 95, 0.56);
--news-breaking-hue: rgb(255 95 95);
--news-ticker-rule-color: var(--news-breaking-color);
}
.earth-news-ticker.has-breaking-watch,
.earth-news-ticker.has-breaking-breaking,
.earth-news-ticker.has-breaking-critical {
--news-ticker-hover-rule-color: color-mix(
in srgb,
var(--news-breaking-hue) 68%,
transparent
);
}
.earth-news-ticker:hover,
.earth-news-ticker:focus-visible {
--news-ticker-line-color: var(--news-ticker-hover-rule-color);
}
.earth-news-ticker__region {
position: relative;
z-index: 3;
@@ -265,34 +283,29 @@
}
}
@keyframes earthNewsBreakingGlassPulse {
0%,
100% {
opacity: 0;
background-position: 140% 0;
@keyframes earthNewsBreakingGlassSweep {
from {
opacity: 0.68;
background-position: 100% 0;
}
18%,
74% {
opacity: 0.76;
}
50% {
opacity: 0.9;
background-position: -40% 0;
to {
opacity: 0.68;
background-position: -100% 0;
}
}
@keyframes earthNewsBreakingCardReflection {
0% {
opacity: 0;
transform: translateX(-125%);
background-position: 100% 0;
}
16%,
64% {
10%,
88% {
opacity: 0.58;
}
100% {
opacity: 0;
transform: translateX(125%);
background-position: -100% 0;
}
}
@@ -537,7 +550,9 @@
}
.news-story-card {
--news-hover-tint: rgba(214, 235, 255, 0.16);
--news-breaking-hue: rgb(214 235 255);
--news-hover-color: var(--news-breaking-hue);
--news-hover-border-strength: 24%;
position: relative;
overflow: hidden;
flex: 0 0 auto;
@@ -567,12 +582,12 @@
}
.news-story-card:hover {
border-color: color-mix(in srgb, var(--news-hover-tint) 76%, rgba(214, 235, 255, 0.16));
border-color: color-mix(in srgb, var(--news-hover-color) var(--news-hover-border-strength), transparent);
background:
linear-gradient(
180deg,
color-mix(in srgb, var(--news-hover-tint) 30%, rgba(255, 255, 255, 0.05)),
color-mix(in srgb, var(--news-hover-tint) 24%, rgba(92, 151, 218, 0.03))
color-mix(in srgb, var(--news-hover-color) 16%, var(--hud-surface-top)),
color-mix(in srgb, var(--news-hover-color) 12%, var(--hud-surface-bottom))
);
transform: translateY(-1px);
}
@@ -583,36 +598,42 @@
}
.news-story-card--cruise {
border-color: rgba(255, 213, 128, 0.42);
--news-hover-color: rgb(127 219 255);
--news-hover-border-strength: 52%;
border-color: rgba(127, 219, 255, 0.28);
background:
linear-gradient(180deg, rgba(255, 248, 220, 0.1), rgba(255, 184, 77, 0.08));
linear-gradient(180deg, rgba(127, 219, 255, 0.08), rgba(92, 151, 218, 0.04));
box-shadow:
0 0 0 1px rgba(255, 213, 128, 0.18) inset,
0 0 18px rgba(255, 184, 77, 0.12);
0 0 0 1px rgba(127, 219, 255, 0.12) inset,
0 0 18px rgba(92, 151, 218, 0.1);
}
.news-story-card--breaking-watch,
.news-story-card--breaking-breaking,
.news-story-card--breaking-critical {
--news-hover-border-strength: 68%;
border-color: var(--news-breaking-color);
background:
linear-gradient(
180deg,
color-mix(in srgb, var(--news-breaking-hue) 11%, var(--hud-surface-top)),
color-mix(in srgb, var(--news-breaking-hue) 7%, var(--hud-surface-bottom))
);
}
.news-story-card--breaking-watch {
--news-breaking-color: rgba(255, 213, 128, 0.42);
--news-hover-tint: var(--news-breaking-color);
border-color: var(--news-breaking-color);
background:
linear-gradient(180deg, rgba(255, 248, 220, 0.08), rgba(255, 184, 77, 0.05));
--news-breaking-hue: rgb(255 213 128);
}
.news-story-card--breaking-breaking {
--news-breaking-color: rgba(255, 151, 78, 0.5);
--news-hover-tint: var(--news-breaking-color);
border-color: var(--news-breaking-color);
background:
linear-gradient(180deg, rgba(255, 205, 150, 0.1), rgba(255, 135, 80, 0.07));
--news-breaking-hue: rgb(255 151 78);
}
.news-story-card--breaking-critical {
--news-breaking-color: rgba(255, 95, 95, 0.56);
--news-hover-tint: var(--news-breaking-color);
border-color: var(--news-breaking-color);
background:
linear-gradient(180deg, rgba(255, 155, 155, 0.11), rgba(205, 58, 58, 0.08));
--news-breaking-hue: rgb(255 95 95);
}
.news-story-card--breaking-watch::after,
@@ -621,15 +642,25 @@
content: "";
position: absolute;
inset: 0;
z-index: 0;
z-index: 2;
pointer-events: none;
background: linear-gradient(
105deg,
transparent 32%,
var(--news-breaking-color) 49%,
transparent 66%
);
) -100% 0 / 200% 100% no-repeat;
mix-blend-mode: screen;
opacity: 0;
animation: none;
}
.news-story-card--breaking-watch:hover::after,
.news-story-card--breaking-watch:focus-visible::after,
.news-story-card--breaking-breaking:hover::after,
.news-story-card--breaking-breaking:focus-visible::after,
.news-story-card--breaking-critical:hover::after,
.news-story-card--breaking-critical:focus-visible::after {
animation: earthNewsBreakingCardReflection 3.2s ease-in-out infinite;
}
@@ -718,12 +749,13 @@
}
@media (prefers-reduced-motion: reduce) {
.earth-news-ticker.has-breaking-watch::after,
.earth-news-ticker.has-breaking-breaking::after,
.earth-news-ticker.has-breaking-critical::after,
.news-story-card--breaking-watch::after,
.news-story-card--breaking-breaking::after,
.news-story-card--breaking-critical::after {
.earth-news-ticker.is-breaking-active::after,
.news-story-card--breaking-watch:hover::after,
.news-story-card--breaking-watch:focus-visible::after,
.news-story-card--breaking-breaking:hover::after,
.news-story-card--breaking-breaking:focus-visible::after,
.news-story-card--breaking-critical:hover::after,
.news-story-card--breaking-critical:focus-visible::after {
animation: none;
opacity: 0.2;
}

View File

@@ -776,10 +776,12 @@ function stopTickerBreakingWatcher() {
if (tickerBreakingTimer !== null) window.clearTimeout(tickerBreakingTimer);
tickerBreakingTimer = null;
document.getElementById("desktop-news-ticker")?.classList.remove(
"is-breaking-active",
"has-breaking-watch",
"has-breaking-breaking",
"has-breaking-critical",
);
document.getElementById("desktop-news-ticker")?.removeAttribute("data-breaking-level");
}
function updateTickerBreakingState() {
@@ -802,13 +804,23 @@ function updateTickerBreakingState() {
best = { overlap, distance, level: normalizeBreakingLevel(item.dataset.breakingLevel) };
}
}
ticker.classList.remove("has-breaking-watch", "has-breaking-breaking", "has-breaking-critical");
if (best?.level && best.level !== "none") ticker.classList.add(`has-breaking-${best.level}`);
const currentLevel = ticker.dataset.breakingLevel || "none";
const nextLevel = best
? normalizeBreakingLevel(best.level)
: currentLevel !== "none"
? currentLevel
: "none";
ticker.classList.toggle("is-breaking-active", nextLevel !== "none");
if (ticker.dataset.breakingLevel !== nextLevel) {
ticker.classList.remove("has-breaking-watch", "has-breaking-breaking", "has-breaking-critical");
if (nextLevel !== "none") ticker.classList.add(`has-breaking-${nextLevel}`);
ticker.dataset.breakingLevel = nextLevel;
}
tickerBreakingTimer = window.setTimeout(updateTickerBreakingState, 120);
}
function scheduleTickerBreakingWatcher() {
stopTickerBreakingWatcher();
if (tickerBreakingTimer !== null) return;
tickerBreakingTimer = window.setTimeout(updateTickerBreakingState, 0);
}

View File

@@ -221,6 +221,9 @@ const vesselIconLayer = createInteractableLayer({
const courseBin = getCourseBin(marker);
return `${anchored ? "anchored" : "moving"}:${courseBin}`;
},
// Keep the complete heading arrow/dot visible when its surface anchor is
// still on the front-facing limb, matching BGP and compute markers.
surfaceAnchorOcclusion: true,
getUserData: (item) => ({
...item,
vessel_kind: item.type,

View File

@@ -1,6 +1,6 @@
[project]
name = "planet"
version = "0.76.8"
version = "0.76.18"
description = "智能星球计划 - 态势感知系统"
requires-python = ">=3.14"
dependencies = [

2
uv.lock generated
View File

@@ -757,7 +757,7 @@ wheels = [
[[package]]
name = "planet"
version = "0.76.8"
version = "0.76.18"
source = { virtual = "." }
dependencies = [
{ name = "aiofiles" },