fix: Tests

This commit is contained in:
Mark Tolmacs
2025-11-12 10:30:38 +01:00
parent c8b832b0e1
commit cca904dd54
3 changed files with 423 additions and 451 deletions

View File

@@ -18,8 +18,10 @@ import {
pointFromArray, pointFromArray,
pointFromVector, pointFromVector,
pointRotateRads, pointRotateRads,
pointTranslate,
rectangle, rectangle,
vectorFromPoint, vectorFromPoint,
vectorNormalize,
vectorScale, vectorScale,
type GlobalPoint, type GlobalPoint,
} from "@excalidraw/math"; } from "@excalidraw/math";

File diff suppressed because it is too large Load Diff

View File

@@ -4626,7 +4626,7 @@ describe("history", () => {
}), }),
endBinding: expect.objectContaining({ endBinding: expect.objectContaining({
elementId: rect2.id, elementId: rect2.id,
fixedPoint: [0.41092297821765383, 0.5890770217823459], fixedPoint: [0.4109229782176541, 0.5890770217823459],
mode: "orbit", mode: "orbit",
}), }),
}), }),
@@ -4770,7 +4770,7 @@ describe("history", () => {
// rebound with previous rectangle // rebound with previous rectangle
endBinding: expect.objectContaining({ endBinding: expect.objectContaining({
elementId: rect2.id, elementId: rect2.id,
fixedPoint: [0.41019091151895054, 0.5898090884810496], fixedPoint: [0.41019091151895054, 0.5898090884810495],
mode: "orbit", mode: "orbit",
}), }),
}), }),