fix: Tests

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs
2026-03-24 20:02:43 +00:00
parent 3e69b33a28
commit 964b7b7b74
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -790,7 +790,10 @@ export class LinearElementEditor {
elementsMap,
);
const [lines, segCurves] = deconstructLinearOrFreeDrawElement(element);
const [lines, segCurves] = deconstructLinearOrFreeDrawElement(
element,
elementsMap,
);
const segmentCount = lines.length + segCurves.length;
let index = 0;
+1 -1
View File
@@ -29,7 +29,7 @@ describe("check rotated elements can be hit:", () => {
] as LocalPoint[],
});
const hit = hitElementItself({
point: pointFrom<GlobalPoint>(88, -68),
point: pointFrom<GlobalPoint>(90, -70),
element: window.h.elements[0],
threshold: 10,
elementsMap: window.h.scene.getNonDeletedElementsMap(),