♻️ refactor!: massive refactor

This commit is contained in:
2026-05-31 03:04:30 +07:00
parent c1f12c7201
commit df3c944547
86 changed files with 3691 additions and 1129 deletions
+7 -1
View File
@@ -3,7 +3,12 @@ import { buildFaceLabelOverlays } from "./canvas-geometry";
describe("buildFaceLabelOverlays", () => {
it("returns no overlays when target layer is missing", () => {
const overlays = buildFaceLabelOverlays([], "missing", [{ x: 10, y: 10, width: 20, height: 20 }], { x: 0, y: 0, scale: 1 });
const overlays = buildFaceLabelOverlays(
[],
"missing",
[{ x: 10, y: 10, width: 20, height: 20 }],
{ x: 0, y: 0, scale: 1 },
);
expect(overlays).toEqual([]);
});
@@ -12,6 +17,7 @@ describe("buildFaceLabelOverlays", () => {
{
id: "layer-1",
type: "raster" as const,
asset: null,
x: 20,
y: 30,
width: 180,