polishing
This commit is contained in:
1 parent
95d92cc4d9
commit
5b1daac97b
9 files changed
+170
-222
No files matched your search
+6
-3
@@ -30,7 +30,6 @@ export class TextLegibilityAssessmentComponent implements AfterViewInit, OnDestr
|
||||
|
||||
private metricsService = inject(MetricsTrackerService);
|
||||
|
||||
// --- Component State (Restored) ---
|
||||
minSize = 2;
|
||||
maxSize = 64;
|
||||
currentSize = 16;
|
||||
@@ -49,7 +48,11 @@ export class TextLegibilityAssessmentComponent implements AfterViewInit, OnDestr
|
||||
|
||||
ngAfterViewInit() {
|
||||
const mv = this.modelViewerRef.nativeElement;
|
||||
this.metricsService.startTracking(mv);
|
||||
mv.addEventListener('ar-status', (event: any) => {
|
||||
if (event.detail.status === 'session-started') {
|
||||
this.metricsService.startTracking(mv);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public logInteraction(event: Event) {
|
||||
@@ -105,7 +108,7 @@ export class TextLegibilityAssessmentComponent implements AfterViewInit, OnDestr
|
||||
|
||||
finishAssessment() {
|
||||
this.phase = 'finished';
|
||||
|
||||
|
||||
const finalResults = {
|
||||
minReadableSize: this.minSizeResult,
|
||||
maxReadableSize: this.maxSizeResult,
|
||||
|
||||
Reference in new issue
Block a user