chore: refresh fxnode gesture fixes

Amp-Thread-ID: https://ampcode.com/threads/T-019f9d91-77c1-7206-a60f-ed6554ce92ab

Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-07-29 10:26:50 +00:00
co-authored by heaust
parent 90406ae18f
commit 27e3dd64ae
6 changed files with 88 additions and 15 deletions
+8
View File
@@ -497,6 +497,14 @@ test("multi-input sockets use pill hit bounds and stable per-link anchors", () =
for (const [id, anchor] of socket.linkAnchors) {
assert.deepEqual(snapshot.links.get(id)!.points.at(-1), anchor);
}
const next = planLink(
snapshot,
sources[0]!.sockets.find((candidate) => candidate.key === "mesh")!.id,
socket.id,
linkId("fresh-link"),
);
assert.equal(next?.type, "link.add");
if (next?.type === "link.add") assert.equal(next.link.id, linkId("fresh-link"));
assert.deepEqual(hitTest(snapshot, worldToView({ x: socket.anchor.x, y: socket.bounds!.y - 2 }, transform)), {
kind: "socket",
id: socket.id,