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

thednp / svg-path-commander / 13741544977

08 Mar 2025 09:17PM UTC coverage: 97.839%. Remained the same
13741544977

Pull #60

github

web-flow
Merge 54cf004cf into 44d6d893a
Pull Request #60: Update getPointAtArcLength's distance description

729 of 729 branches covered (100.0%)

Branch coverage included in aggregate %.

1354 of 1400 relevant lines covered (96.71%)

3288.2 hits per line

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

100.0
/src/convert/pathToAbsolute.ts
1
import parsePathString from "../parser/parsePathString";
2
import absolutizeSegment from "../process/absolutizeSegment";
3
import type { AbsoluteArray, PathArray } from "../types";
4
import iterate from "../process/iterate";
5

6
/**
7
 * Parses a path string value or object and returns an array
8
 * of segments, all converted to absolute values.
9
 *
10
 * @param pathInput the path string | object
11
 * @returns the resulted `pathArray` with absolute values
12
 */
13
const pathToAbsolute = (pathInput: string | PathArray) => {
2✔
14
  const path = parsePathString(pathInput);
48✔
15

16
  return iterate<AbsoluteArray>(path, absolutizeSegment);
48✔
17
};
18
export default pathToAbsolute;
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