UNPKG

fabric

Version:

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

3 lines (2 loc) 216 B
function t(t,e){const r=t.style;r&&("string"==typeof e?t.style.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