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

atomic14 / web-serial-plotter / 17377862338

01 Sep 2025 12:38PM UTC coverage: 68.885% (+25.7%) from 43.215%
17377862338

push

github

cgreening
More test coverage.

325 of 418 branches covered (77.75%)

Branch coverage included in aggregate %.

90 of 159 new or added lines in 8 files covered. (56.6%)

4 existing lines in 2 files now uncovered.

1683 of 2497 relevant lines covered (67.4%)

44.97 hits per line

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

85.19
/src/components/PlotToolsOverlay.tsx
1
import { forwardRef } from 'react'
1✔
2
import Button from './ui/Button'
1✔
3
import { PlayIcon, PauseIcon, MagnifyingGlassPlusIcon, MagnifyingGlassMinusIcon, CameraIcon } from '@heroicons/react/24/outline'
1✔
4

5
interface Props {
6
  frozen: boolean
7
  onToggleFrozen: () => void
8
  onZoomIn: () => void
9
  onZoomOut: () => void
10
  onSavePng: () => Promise<void> | void
11
}
12

13
const PlotToolsOverlay = forwardRef<HTMLDivElement, Props>(function PlotToolsOverlay({ frozen, onToggleFrozen, onZoomIn, onZoomOut, onSavePng }, ref) {
1✔
14
  return (
1✔
15
    <div className="absolute top-2 right-2 flex items-center gap-2 pointer-events-auto" ref={ref}>
1✔
16
      <Button size="sm" variant="neutral" aria-label={frozen ? 'Play' : 'Pause'} title={frozen ? 'Play' : 'Pause'} onClick={onToggleFrozen}>
1!
17
        {frozen ? (
1!
NEW
18
          <PlayIcon className="w-5 h-5" />
×
19
        ) : (
20
          <PauseIcon className="w-5 h-5" />
1✔
21
        )}
22
      </Button>
1✔
23
      <Button size="sm" variant="neutral" aria-label="Zoom in" title="Zoom in" onClick={onZoomIn}>
1✔
24
        <MagnifyingGlassPlusIcon className="w-5 h-5" />
1✔
25
      </Button>
1✔
26
      <Button size="sm" variant="neutral" aria-label="Zoom out" title="Zoom out" onClick={onZoomOut}>
1✔
27
        <MagnifyingGlassMinusIcon className="w-5 h-5" />
1✔
28
      </Button>
1✔
29
      <Button size="sm" variant="neutral" aria-label="Save PNG" title="Save PNG" onClick={onSavePng}>
1✔
30
        <CameraIcon className="w-5 h-5" />
1✔
31
      </Button>
1✔
32
    </div>
1✔
33
  )
34
})
1✔
35

36
export default PlotToolsOverlay
1✔
37

38

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

© 2026 Coveralls, Inc