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

atinc / ngx-tethys / d9ae709b-3c27-4b69-b125-b8b80b54f90b

pending completion
d9ae709b-3c27-4b69-b125-b8b80b54f90b

Pull #2757

circleci

mengshuicmq
fix: fix code review
Pull Request #2757: feat(color-picker): color-picker support disabled (#INFR-8645)

98 of 6315 branches covered (1.55%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

2392 of 13661 relevant lines covered (17.51%)

83.12 hits per line

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

13.64
/src/fullscreen/fullscreen.service.ts
1
import { DOCUMENT } from '@angular/common';
2
import { Inject, Injectable, NgZone } from '@angular/core';
3
import { ThyFullscreenRef } from './fullscreen-ref';
4
import { ThyFullscreenConfig, ThyFullscreenMode } from './fullscreen.config';
5

6
@Injectable({
1✔
7
    providedIn: 'root'
8
})
×
9
export class ThyFullscreen {
×
10
    constructor(@Inject(DOCUMENT) protected document: Document, private ngZone: NgZone) {}
×
11

12
    private fullscreenRefs: ThyFullscreenRef[] = [];
13

14
    /**
15
     * 开始全屏
16
     * @param config
17
     */
×
18
    launch<TResult = unknown>(config: ThyFullscreenConfig): ThyFullscreenRef<TResult> {
×
19
        config.mode = config.mode || ThyFullscreenMode.immersive;
×
20
        const fullscreenRef = new ThyFullscreenRef<TResult>(this.document, this.ngZone);
×
21
        fullscreenRef.fullscreenConfig = config;
×
22
        fullscreenRef.launch();
×
23
        this.fullscreenRefs.push(fullscreenRef);
×
24
        fullscreenRef.afterExited().subscribe(() => {
×
25
            const index = this.fullscreenRefs.indexOf(fullscreenRef);
×
26
            if (index > -1) {
27
                this.fullscreenRefs.splice(index, 1);
28
            }
×
29
        });
30

31
        return fullscreenRef;
32
    }
33

34
    /**
35
     * 退出最后一个 ThyFullscreenRef 的全屏
×
36
     * @param config
×
37
     */
38
    exit() {
1✔
39
        const lastFullscreenRef = this.fullscreenRefs[this.fullscreenRefs.length - 1];
40
        lastFullscreenRef?.exit();
41
    }
42
}
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