mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-15 02:04:21 +01:00
fix: Tests
This commit is contained in:
@@ -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
@@ -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",
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user