{"version":3,"file":"dom_style.min.mjs","sources":["../../../../src/util/internals/dom_style.ts"],"sourcesContent":["// TODO this file needs to go away, cross browser style support is not fabricjs domain.\n\n/**\n * wrapper for setting element's style\n * @param {HTMLElement} element an HTMLElement\n * @param {Object} styles to apply to element\n */\nexport function setStyle(element: HTMLElement, styles: Record<string, string>) {\n  const elementStyle = element.style;\n  if (!elementStyle) {\n    return;\n  }\n  Object.entries(styles).forEach(([property, value]) =>\n    elementStyle.setProperty(property, value),\n  );\n}\n"],"names":["setStyle","element","styles","elementStyle","style","Object","entries","forEach","_ref","property","value","setProperty"],"mappings":"AAOO,SAASA,EAASC,EAAsBC,GAC7C,MAAMC,EAAeF,EAAQG,MACxBD,GAGLE,OAAOC,QAAQJ,GAAQK,QAAQC,IAAA,IAAEC,EAAUC,GAAMF,EAAA,OAC/CL,EAAaQ,YAAYF,EAAUC,IAEvC"}