• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atinc / ngx-tethys / 68ef226c-f83e-44c1-b8ed-e420a83c5d84

28 May 2025 10:31AM UTC coverage: 10.352% (-80.0%) from 90.316%
68ef226c-f83e-44c1-b8ed-e420a83c5d84

Pull #3460

circleci

pubuzhixing8
chore: xxx
Pull Request #3460: refactor(icon): migrate signal input #TINFR-1476

132 of 6823 branches covered (1.93%)

Branch coverage included in aggregate %.

10 of 14 new or added lines in 1 file covered. (71.43%)

11648 existing lines in 344 files now uncovered.

2078 of 14525 relevant lines covered (14.31%)

6.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/image/preview/image-preview-ref.ts
1
import { ThyImagePreview } from './image-preview.component';
2
import { ThyDialogRef } from 'ngx-tethys/dialog';
3
import { LEFT_ARROW, RIGHT_ARROW } from '@angular/cdk/keycodes';
UNCOV
4
import { ThyImageInfo, ThyImagePreviewOptions } from '../image.class';
×
5
import { Observable } from 'rxjs';
6

UNCOV
7
export class ThyImagePreviewRef {
×
UNCOV
8
    get componentInstance() {
×
UNCOV
9
        return this.dialogRef.componentInstance;
×
UNCOV
10
    }
×
11

12
    constructor(
13
        public previewInstance: ThyImagePreview,
UNCOV
14
        private config: ThyImagePreviewOptions,
×
UNCOV
15
        private dialogRef: ThyDialogRef<ThyImagePreview>
×
16
    ) {
UNCOV
17
        dialogRef
×
UNCOV
18
            .keydownEvents()
×
19
            .pipe()
20
            .subscribe(event => {
21
                if (!config.disableKeyboardSelectable && event.keyCode === LEFT_ARROW) {
22
                    this.prev();
UNCOV
23
                }
×
24
                if (!config.disableKeyboardSelectable && event.keyCode === RIGHT_ARROW) {
25
                    this.next();
UNCOV
26
                }
×
27
            });
28
    }
UNCOV
29

×
30
    next(): void {
31
        this.previewInstance.next();
32
    }
33

34
    prev(): void {
35
        this.previewInstance.prev();
36
    }
37

38
    downloadClicked(): Observable<ThyImageInfo> {
39
        return this.previewInstance.downloadClicked.asObservable();
40
    }
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc