UNPKG

chowa

Version:

UI component library based on React

25 lines (24 loc) 625 B
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); exports.globalMousePos = { x: 0, y: 0 }; function registerGloablCallerMousePos() { utils_1.doms.on(document.body, 'click', (e) => { exports.globalMousePos = { x: e.pageX, y: e.pageY }; }); } registerGloablCallerMousePos();