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

antvis / L7Plot / 5285254265

pending completion
5285254265

Pull #298

github

web-flow
Merge 57af74f09 into 0ba79c99e
Pull Request #298: fix: 替换 d3 系列包,以修复 umd 打包体积过大的问题

819 of 2177 branches covered (37.62%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 3 files covered. (100.0%)

3378 of 5054 relevant lines covered (66.84%)

200.11 hits per line

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

81.82
/packages/composite-layers/src/composite-layers/flow-layer/utils/zoom.ts
1
export function findAppropriateZoom(availableZoomLevels: number[], zoom: number) {
2
  if (!availableZoomLevels.length) {
24✔
3
    throw new Error('No available zoom levels');
24✔
4
  }
24✔
5
  const zoomBetweenList = availableZoomLevels.map((availableZoom) => Math.abs(availableZoom + 1 - zoom));
6
  const targetIndex = zoomBetweenList.indexOf(Math.min(...zoomBetweenList));
46!
7
  return availableZoomLevels[targetIndex];
×
8
}
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