import { create as M, attr as N } from "../../../tiny-svg/dist/index.esm.mjs";
function c(n) {
  return n.join(",").replace(/,?([A-z]),?/g, "$1");
}
function i(n) {
  for (var t = "", r = 0, e; e = n[r]; r++)
    t += e.x + "," + e.y + " ";
  return t;
}
function f(n, t) {
  var r = M("polyline");
  return N(r, { points: i(n) }), t && N(r, t), r;
}
function p(n, t) {
  return N(n, { points: i(t) }), n;
}
export {
  c as componentsToPath,
  f as createLine,
  i as toSVGPoints,
  p as updateLine
};
