refactor of dagflow start
This commit is contained in:
1 parent
3cb6070aca
commit
d62c484f33
29 files changed
+1463
-16
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { updateBBox } from "./math";
|
||||
|
||||
test("compute bbox correctly", () => {
|
||||
expect(
|
||||
updateBBox(
|
||||
[
|
||||
{ x: 0, y: 0 },
|
||||
{ x: 0, y: 0 },
|
||||
],
|
||||
{ x: 0, y: 70 },
|
||||
{
|
||||
height: 70,
|
||||
width: 170,
|
||||
}
|
||||
)
|
||||
).toStrictEqual([
|
||||
{ x: 0, y: 0 },
|
||||
{ x: 170, y: 140 },
|
||||
]);
|
||||
});
|
||||
Reference in new issue
Block a user