mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
6 lines • 312 B
JavaScript
import store from "@lincode/reactivity";
import { HEIGHT, WIDTH } from "../globals";
const [_setResolution, getResolution] = store([WIDTH, HEIGHT]);
export { getResolution };
export const setResolution = ([w, h]) => _setResolution([Math.max(w, 1), Math.max(h, 1)]);
//# sourceMappingURL=useResolution.js.map