UNPKG

fabric

Version:

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

3 lines (2 loc) 213 B
function t(t,e){const r=t.style;r&&e&&("string"==typeof e?r.cssText+=";"+e:Object.entries(e).forEach((t=>{let[e,s]=t;return r.setProperty(e,s)})))}export{t as setStyle}; //# sourceMappingURL=dom_style.min.mjs.map