mock: スタビ位置は、どのサイズも何も選ばない状態から始める(T-30 単位8)

候補が1つのサイズも既定で選ばない。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017yoUu9Xd8dhwyQdCfKfaXG
This commit is contained in:
2026-10-23 22:18:50 +09:00
co-authored by Claude Opus 5.5
parent eacf8a1581
commit 785daa23c2
4 changed files with 9 additions and 29 deletions
-5
View File
@@ -44,11 +44,6 @@ export function stabilizerCandidates(size: Size): StabilizerCandidate[] {
const length = Math.max(size.w, size.h);
return TABLE.find((row) => row.lengths.some((l) => Math.abs(l - length) < EPS))?.candidates ?? [];
}
/** A size with a single candidate shows it until chosen otherwise; several start unselected. */
export function defaultStabilizerSelection(size: Size): string[] {
const candidates = stabilizerCandidates(size);
return candidates.length === 1 ? [candidates[0]!.id] : [];
}
/** Mount points in key-local coordinates, around the (w, h) rectangle's center, not the switch. */
export function stabilizerPoints(size: Size, ids: string[]): Point[] {
const cx = size.w / 2,