Skip to content

[P2] Linked clip 缺少 Offset Badge 渲染 #87

Closed

Description

@appergb

严重级别:P2(功能缺口)

位置

web/src/components/timeline/clipRenderer.ts - drawClip()

问题

Linked clip(有 linkGroupId)在时间线上与音频伙伴不同步时,缺少显示帧偏移量的红色徽章。

上游对比

palmier-pro-upstream ClipRenderer.swift:624-656 (drawOffsetBadge):

  • 红色圆角矩形徽章,白色字体显示 +N 或 -N 帧
  • 位置:clip 右上角(rect.maxX - handleW - badgeWidth - 2)
  • 仅在 linkOffset != 0 时渲染

当前状态

drawClip() 完全没有 linkOffset 参数,调用方 TimelineContainer.tsx 也未计算和传入 linkOffset。上游 EditorViewModel.swift:linkGroupOffsets() 对应逻辑缺失。

影响

用户无法察觉到 linked clip 已与音频伙伴不同步。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2功能缺口或渲染精度问题area:frontendReact 前端enhancementNew feature or requestfrontend前端相关needs-port需要对上游进行 1:1 端口实现timeline时间线相关

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions