UNPKG

585 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.path2String = void 0;
4var 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 */
9function 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}
15exports.path2String = path2String;
16//# sourceMappingURL=path-2-string.js.map
\No newline at end of file