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

worktile / slate-angular / 538f75c8-caf2-4d27-9bda-fd89bebf697f

31 Mar 2025 01:55AM CUT coverage: 46.776%. Remained the same
538f75c8-caf2-4d27-9bda-fd89bebf697f

push

circleci

pubuzhixing8
build: release 19.0.0

409 of 1075 branches covered (38.05%)

Branch coverage included in aggregate %.

1020 of 1980 relevant lines covered (51.52%)

43.99 hits per line

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

7.69
/packages/src/utils/throttle.ts
1
export const createThrottleRAF = () => {
1✔
2
    let timerId: number | null = null;
×
3
    const throttleRAF = (fn: () => void) => {
×
4
        const scheduleFunc = () => {
×
5
            timerId = requestAnimationFrame(() => {
×
6
                timerId = null;
×
7
                fn();
×
8
            });
9
        };
10
        if (timerId !== null) {
×
11
            cancelAnimationFrame(timerId);
×
12
            timerId = null;
×
13
        }
14
        scheduleFunc();
×
15
    };
16
    return throttleRAF;
×
17
};
18

19
export type ThrottleRAF = (fn: () => void) => void;
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