UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

3 lines (2 loc) 258 B
function t(t){if(!t)return[];const r=t.replace(/,/g," ").trim().split(/\s+/),e=[];for(let t=0;t<r.length;t+=2)e.push({x:parseFloat(r[t]),y:parseFloat(r[t+1])});return e}export{t as parsePointsAttribute}; //# sourceMappingURL=parsePointsAttribute.min.mjs.map