UNPKG

kepmon

Version:

A Napi library wich provides mouse movement and click events

12 lines 600 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../../index"); const position = (0, index_1.getPointerPosition)(); console.log('Current Pointer Position:', position); const boundary = (0, index_1.getPointerBoundary)(); console.log('Pointer Boundary:', boundary); const newXPos = boundary.xLimit < position.x + 50 ? 0 : position.x + 50; (0, index_1.setPointerPosition)(newXPos, position.y); const updatedPosition = (0, index_1.getPointerPosition)(); console.log('Updated Pointer Position:', updatedPosition); //# sourceMappingURL=index.test.js.map