You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
555 B
15 lines
555 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.path2String = path2String;
|
|
var round_path_1 = require("../process/round-path");
|
|
/**
|
|
* Returns a valid `d` attribute string value created
|
|
* by rounding values and concatenating the `pathArray` segments.
|
|
*/
|
|
function path2String(path, round) {
|
|
if (round === void 0) { round = 'off'; }
|
|
return (0, round_path_1.roundPath)(path, round)
|
|
.map(function (x) { return x[0] + x.slice(1).join(' '); })
|
|
.join('');
|
|
}
|
|
//# sourceMappingURL=path-2-string.js.map
|