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

atinc / ngx-tethys / 81f087e7-cb7d-4a5c-add8-ace5133e7e84

27 May 2025 08:22AM UTC coverage: 10.045% (-80.2%) from 90.262%
81f087e7-cb7d-4a5c-add8-ace5133e7e84

Pull #3457

circleci

pubuzhixing8
chore: remove useless code
Pull Request #3457: refactor(flexible-text): migrate to signal for flexible-text #TINFR-1471

108 of 6835 branches covered (1.58%)

Branch coverage included in aggregate %.

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

11669 existing lines in 344 files now uncovered.

2036 of 14508 relevant lines covered (14.03%)

6.24 hits per line

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

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

6
@Injectable({
1✔
7
    providedIn: 'root'
UNCOV
8
})
×
UNCOV
9
export class ThyFullscreen {
×
UNCOV
10
    protected document = inject(DOCUMENT);
×
11
    private ngZone = inject(NgZone);
12

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

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

32
        return fullscreenRef;
33
    }
34

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