import { DEFAULT_CLASS } from './default-class.js'; import { XMLNS } from './xmlns.js'; function polyline( g : SVGGElement, poly : number[][], class_ = DEFAULT_CLASS, delay? : number) { if (poly.length < 2) { return []; } const $path = document.createElementNS(XMLNS, 'path'); let d = `M${poly[0][0]} ${poly[0][1]} L`; for (let i=0; i $path.remove(), delay); } return [$path]; } export { polyline }