feat(scum): add map trajectory projection

This commit is contained in:
npc0-hue
2026-07-28 17:13:48 +08:00
parent 7f64765c1c
commit 5b15bd50cb
33 changed files with 1073 additions and 49 deletions
@@ -0,0 +1,9 @@
import { describe, expect, it } from "vitest";
import { trajectoryPath } from "./ScumMapTrajectoryPanel";
describe("trajectoryPath", () => {
it("projects normalized map points into a stable SVG path", () => {
expect(trajectoryPath([{ mapX: 0, mapY: 0 }, { mapX: 500, mapY: 250 }, { mapX: 1000, mapY: 1000 }])).toBe("M0,1000 L500,750 L1000,0");
});
});