auto-git:
[change] src/document/migrate-scene-document.ts [change] tests/domain/build-runtime-scene.test.ts [change] tests/unit/runtime-host.test.ts [change] tests/unit/viewport-focus.test.ts
This commit is contained in:
@@ -262,6 +262,7 @@ describe("RuntimeHost", () => {
|
||||
y: 1.6,
|
||||
z: 0
|
||||
},
|
||||
transitionMode: "cut",
|
||||
lookAround: {
|
||||
enabled: true,
|
||||
yawLimitDegrees: 10,
|
||||
|
||||
@@ -196,14 +196,9 @@ describe("resolveViewportFocusTarget", () => {
|
||||
ids: [cameraRig.id]
|
||||
});
|
||||
|
||||
expect(focusTarget).toEqual({
|
||||
center: {
|
||||
x: -3,
|
||||
y: 2.28,
|
||||
z: 5
|
||||
},
|
||||
radius: expect.any(Number)
|
||||
});
|
||||
expect(focusTarget?.center.x).toBeCloseTo(-3);
|
||||
expect(focusTarget?.center.y).toBeCloseTo(2.28);
|
||||
expect(focusTarget?.center.z).toBeCloseTo(5);
|
||||
expect(focusTarget?.radius).toBeGreaterThan(0.45);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user