Skip to content

Commit

Permalink
🐞 fix: fix detect test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangechen committed Dec 28, 2023
1 parent c3e03d5 commit 3593646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/chili-three/test/three.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("three test", () => {
let model = new GeometryModel(doc, "test model", body);
context.addModel([model]);
expect(context.getShape(model)).not.toBeNull();
let mouse = view.worldToScreen(new XYZ(100, 0, 0));
let mouse = view.worldToScreen(new XYZ(50, 0, 0));
let shapes = view.detected(ShapeType.Shape, mouse.x, mouse.y);
expect(shapes.length).toEqual(1);
expect(shapes[0].shape.shapeType).toBe(ShapeType.Edge);
Expand Down

0 comments on commit 3593646

Please sign in to comment.