UNPKG

fabric

Version:

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

16 lines (14 loc) 335 B
const cloneStyles = style => { const newObj = {}; Object.keys(style).forEach(key => { newObj[key] = {}; Object.keys(style[key]).forEach(keyInner => { newObj[key][keyInner] = { ...style[key][keyInner] }; }); }); return newObj; }; export { cloneStyles }; //# sourceMappingURL=cloneStyles.mjs.map