mock: 選択中のクラスターにだけ原点の丸を出す(T-30 単位5)
単位1の選択の描画層に、選択中のクラスターとバリアントグループの原点の丸を描く。 長押しの候補になっているだけのクラスターには出さない。丸の大きさは画面上で固定する。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NznQtmVPoQAnietqwr1auL
This commit is contained in:
@@ -65,6 +65,9 @@ describe("PHY pure interaction rules", () => {
|
||||
expect(frame.transform.f).toBeCloseTo(27);
|
||||
expect(frame.transform.a).toBeCloseTo(Math.cos(Math.PI / 6));
|
||||
expect(frame.transform.b).toBeCloseTo(Math.sin(Math.PI / 6));
|
||||
expect(frame.selected).toBe(true);
|
||||
const candidateOnly = selectionFrames(roots, [], {}, "target")[0]!;
|
||||
expect([candidateOnly.selected, candidateOnly.candidate]).toEqual([false, true]);
|
||||
});
|
||||
it("removes ancestors and descendants from mixed selections", () => {
|
||||
expect(normalizeSelection(phy, ["c", "k"])).toEqual(["k"]);
|
||||
|
||||
Reference in New Issue
Block a user