Skip to content

Commit

Permalink
🐞 fix: detect test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangechen committed Mar 17, 2024
1 parent f0f0a2b commit 515d3a0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/chili-three/test/testView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@ Object.defineProperties(container, {
});

export class TestView extends ThreeView {
constructor(viewer: IDocument, content: ThreeVisualContext) {
super(viewer, "test", Plane.XY, content);
constructor(document: IDocument, content: ThreeVisualContext) {
super(document, "test", Plane.XY, content);
this.setDom(container);
this.cameraController.lookAt(
new THREE.Vector3(0, 0, 1),
new THREE.Vector3(),
new THREE.Vector3(0, 1, 0),
);
}

protected override initRender(): Renderer {
Expand Down

0 comments on commit 515d3a0

Please sign in to comment.