UNPKG

@thi.ng/hiccup-svg

Version:

SVG element functions for @thi.ng/hiccup & related tooling

13 lines (12 loc) 202 B
import { fattribs, fpoints } from "./format.js"; const polygon = (pts, attribs, ...body) => [ "polygon", fattribs({ ...attribs, points: fpoints(pts) }), ...body ]; export { polygon };