@zag-js/dom-query
Version:
The dom helper library for zag.js machines
15 lines (13 loc) • 332 B
JavaScript
import "./chunk-QZ7TP4HQ.mjs";
// src/computed-style.ts
import { getWindow } from "./node.mjs";
var styleCache = /* @__PURE__ */ new WeakMap();
function getComputedStyle(el) {
if (!styleCache.has(el)) {
styleCache.set(el, getWindow(el).getComputedStyle(el));
}
return styleCache.get(el);
}
export {
getComputedStyle
};