UNPKG

@indielayer/ui

Version:

Indielayer UI Components with Tailwind CSS build for Vue 3

14 lines (13 loc) 577 B
let t = null; function c(o = !1) { if (t === null || o) { const e = document.createElement("div"), l = e.style; l.width = "50px", l.height = "50px", l.overflow = "scroll", l.direction = "rtl"; const n = document.createElement("div"), i = n.style; return i.width = "100px", i.height = "100px", e.appendChild(n), document.body.appendChild(e), e.scrollLeft > 0 ? t = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? t = "negative" : t = "positive-ascending"), document.body.removeChild(e), t; } return t; } export { c as getRTLOffsetType };