add fontSize custom func

This commit is contained in:
metacryst
2024-05-05 15:47:38 -05:00
parent 48529ae3e2
commit 07725994b9

View File

@@ -720,6 +720,12 @@ HTMLElement.prototype.height = function(value, unit = "px") {
return this return this
} }
HTMLElement.prototype.fontSize = function(value, unit = "px") {
this.style.fontSize = value + unit
Registry.initReactivity(this, ["style", "fontSize"], value);
return this
}
function checkStyle(el) { function checkStyle(el) {
let computed = window.getComputedStyle(el).position let computed = window.getComputedStyle(el).position
if(!(computed === "absolute" || computed === "fixed")) { if(!(computed === "absolute" || computed === "fixed")) {