@egjs/axes
Version:
A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.
22 lines (18 loc) • 399 B
text/typescript
/*
* Copyright (c) 2015 NAVER Corp.
* egjs projects are licensed under the MIT license
*/
/* eslint-disable no-new-func, no-nested-ternary */
let win: any;
if (typeof window === "undefined") {
// window is undefined in node.js
win = {
navigator: {
userAgent: "",
},
};
} else {
win = window;
}
/* eslint-enable no-new-func, no-nested-ternary */
export { win as window };