UNPKG

@antv/util

Version:

> AntV 底层依赖的工具库,不建议在自己业务中使用。

12 lines 430 B
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