From 35936461723f920d442c8cf6e14053ffccd84250 Mon Sep 17 00:00:00 2001 From: xiange Date: Thu, 28 Dec 2023 23:06:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20fix=20detect=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/chili-three/test/three.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/chili-three/test/three.test.ts b/packages/chili-three/test/three.test.ts index 3132d68e..917cbb44 100644 --- a/packages/chili-three/test/three.test.ts +++ b/packages/chili-three/test/three.test.ts @@ -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);