UNPKG

on-codemerge

Version:

A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product

16 lines (15 loc) 287 B
const o = { mobile: 320, tablet: 768, desktop: 1024, responsive: "100%" }; class i { setViewport(s, t) { const e = o[t]; s.style.width = typeof e == "number" ? `${e}px` : e, s.style.margin = t === "responsive" ? "0" : "0 auto"; } } export { i as ViewportManager };