improve tracking logic
This commit is contained in:
1 parent
9446e3b2de
commit
95d92cc4d9
5 files changed
+138
-153
No files matched your search
-2
@@ -59,8 +59,6 @@ export class DemographicsFeedbackComponent implements OnInit, OnDestroy {
|
||||
|
||||
ngOnInit() {
|
||||
this.createForm();
|
||||
// Start device orientation tracking for this component
|
||||
this.metricsService.startDeviceOrientationTracking();
|
||||
}
|
||||
|
||||
logInteraction(event: Event) {
|
||||
|
||||
+1
-2
@@ -41,8 +41,7 @@ export class SpatialPositionAssessmentComponent implements AfterViewInit, OnDest
|
||||
|
||||
ngAfterViewInit() {
|
||||
const mv = this.modelViewerRef.nativeElement;
|
||||
this.metricsService.startDeviceOrientationTracking();
|
||||
this.metricsService.startArTracking(mv);
|
||||
this.metricsService.startTracking(mv);
|
||||
mv.addEventListener('ar-status', (e: any) => {
|
||||
if (e.detail.status === 'session-started') {
|
||||
setTimeout(() => this.captureAnchor(), 500);
|
||||
|
||||
+2
-3
@@ -48,8 +48,7 @@ export class SpatialStabilityAssessmentComponent implements AfterViewInit, OnDes
|
||||
ngAfterViewInit() {
|
||||
const modelViewer = this.modelViewerRef.nativeElement;
|
||||
|
||||
this.metricsService.startDeviceOrientationTracking();
|
||||
this.metricsService.startArTracking(modelViewer);
|
||||
this.metricsService.startTracking(modelViewer);
|
||||
|
||||
modelViewer.addEventListener('ar-status', (event: any) => {
|
||||
if (event.detail.status === 'session-started' && !this.isModelPlaced) {
|
||||
@@ -143,7 +142,7 @@ export class SpatialStabilityAssessmentComponent implements AfterViewInit, OnDes
|
||||
if (wasCompleted) {
|
||||
this.currentPhase = 4;
|
||||
}
|
||||
|
||||
|
||||
if(wasCompleted) {
|
||||
this.testComplete.emit();
|
||||
}
|
||||
|
||||
+2
-2
@@ -48,8 +48,8 @@ export class TextLegibilityAssessmentComponent implements AfterViewInit, OnDestr
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.metricsService.startDeviceOrientationTracking();
|
||||
this.metricsService.startArTracking(this.modelViewerRef.nativeElement);
|
||||
const mv = this.modelViewerRef.nativeElement;
|
||||
this.metricsService.startTracking(mv);
|
||||
}
|
||||
|
||||
public logInteraction(event: Event) {
|
||||
|
||||
Reference in new issue
Block a user