feat: M1 companion 資料層與 band 角色行

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-12 13:27:27 +08:00
co-authored by Claude Sonnet 5.5
parent 030c599208
commit 176bcdd23a
12 changed files with 796 additions and 23 deletions
+6
View File
@@ -232,3 +232,9 @@ export function parseDf(out: string): number | undefined {
const m = row && /(\d+)%/.exec(row)
return m ? Number(m[1]) : undefined
}
// band 的所有行:第一行恆為 HUD;有角色時才多第二行角色行
export function bandLines(d: HudData, columns: number, compact: boolean, companion: Seg[] | null): Seg[][] {
const first = fit(d, columns, compact)
return companion ? [first, companion] : [first]
}