You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
390 B
18 lines
390 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.modifyCSS = modifyCSS;
|
|
/**
|
|
* Modify the CSS of a DOM.
|
|
* @param dom
|
|
* @param css
|
|
* @returns
|
|
*/
|
|
function modifyCSS(dom, css) {
|
|
if (!dom)
|
|
return;
|
|
Object.keys(css).forEach(function (key) {
|
|
dom.style[key] = css[key];
|
|
});
|
|
return dom;
|
|
}
|
|
//# sourceMappingURL=modify-css.js.map
|