Skip to content

Commit

Permalink
Fix TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Nov 12, 2024
1 parent 8ab208c commit 004921d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/camera-component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PROJECTION_ORTHOGRAPHIC, PROJECTION_PERSPECTIVE, CameraComponent, Color, Vec4, XRSPACE_LOCAL, XRTYPE_VR } from 'playcanvas';
import { PROJECTION_ORTHOGRAPHIC, PROJECTION_PERSPECTIVE, CameraComponent, Color, Vec4, XRTYPE_VR } from 'playcanvas';

import { ComponentElement } from './component';
import { parseColor, parseVec4 } from '../utils';
Expand Down Expand Up @@ -71,7 +71,7 @@ class CameraComponentElement extends ComponentElement {
return xrManager && xrManager.supported && xrManager.isAvailable(XRTYPE_VR);
}

startXr(type: 'ar' | 'vr', space: 'bounded-floor' | 'local' | 'local-floor' | 'unbounded' | 'viewer') {
startXr(type: 'immersive-ar' | 'immersive-vr', space: 'bounded-floor' | 'local' | 'local-floor' | 'unbounded' | 'viewer') {
if (this.component && this.xrAvailable) {
this.component.startXr(type, space, {
callback: (err: any) => {
Expand Down

0 comments on commit 004921d

Please sign in to comment.