mirror of
https://github.com/YuzuZensai/Pien-Studio.git
synced 2026-09-02 14:18:35 +00:00
♻️ refactor!: massive refactor
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user