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.
12 lines
430 B
12 lines
430 B
|
4 months ago
|
import { roundPath } from '../process/round-path';
|
||
|
|
/**
|
||
|
|
* Returns a valid `d` attribute string value created
|
||
|
|
* by rounding values and concatenating the `pathArray` segments.
|
||
|
|
*/
|
||
|
|
export function path2String(path, round) {
|
||
|
|
if (round === void 0) { round = 'off'; }
|
||
|
|
return roundPath(path, round)
|
||
|
|
.map(function (x) { return x[0] + x.slice(1).join(' '); })
|
||
|
|
.join('');
|
||
|
|
}
|
||
|
|
//# sourceMappingURL=path-2-string.js.map
|