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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user