1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.path2String = void 0;
|
4 | var round_path_1 = require("../process/round-path");
|
5 | /**
|
6 | * Returns a valid `d` attribute string value created
|
7 | * by rounding values and concatenating the `pathArray` segments.
|
8 | */
|
9 | function path2String(path, round) {
|
10 | if (round === void 0) { round = 'off'; }
|
11 | return (0, round_path_1.roundPath)(path, round)
|
12 | .map(function (x) { return x[0] + x.slice(1).join(' '); })
|
13 | .join('');
|
14 | }
|
15 | exports.path2String = path2String;
|
16 | //# sourceMappingURL=path-2-string.js.map |
\ | No newline at end of file |