Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/konva/lib/PointerEvents.js
rd565449 r0c6b92a 1 1 "use strict"; 2 2 Object.defineProperty(exports, "__esModule", { value: true }); 3 exports.releaseCapture = exports.setPointerCapture = exports.hasPointerCapture = exports.createEvent = exports.getCapturedShape = void 0; 3 exports.getCapturedShape = getCapturedShape; 4 exports.createEvent = createEvent; 5 exports.hasPointerCapture = hasPointerCapture; 6 exports.setPointerCapture = setPointerCapture; 7 exports.releaseCapture = releaseCapture; 4 8 const Global_1 = require("./Global"); 5 9 const Captures = new Map(); … … 8 12 return Captures.get(pointerId); 9 13 } 10 exports.getCapturedShape = getCapturedShape;11 14 function createEvent(evt) { 12 15 return { … … 15 18 }; 16 19 } 17 exports.createEvent = createEvent;18 20 function hasPointerCapture(pointerId, shape) { 19 21 return Captures.get(pointerId) === shape; 20 22 } 21 exports.hasPointerCapture = hasPointerCapture;22 23 function setPointerCapture(pointerId, shape) { 23 24 releaseCapture(pointerId); … … 30 31 } 31 32 } 32 exports.setPointerCapture = setPointerCapture;33 33 function releaseCapture(pointerId, target) { 34 34 const shape = Captures.get(pointerId); … … 43 43 } 44 44 } 45 exports.releaseCapture = releaseCapture;
Note:
See TracChangeset
for help on using the changeset viewer.