UNPKG

qoopido.nucleus

Version:

Lightweight, atomic and modular JavaScript utility library that strongly encourages the creation and usage of small yet flexible, reusable and easily maintainable modules.

4 lines (3 loc) 2.2 kB
/**! Qoopido.nucleus 3.2.15 | http://nucleus.qoopido.com | (c) 2021 Dirk Lueth */ !function(e,t){"use strict";provide(["/demand/function/iterate"],(function(e){var c=Object.defineProperty,o=Object.defineProperties,n={general:{properties:"bubbles cancelable isTrusted timeStamp type view altKey ctrlKey shiftKey button buttons clientX clientY fromElement offsetX offsetY screenX screenY toElement dataTransfer deltaX deltaY deltaZ deltaMode targetTouches char charCode key keyCode passive".split(" ")},relatedTarget:{match:/^(?:blur|focus|focusin|focusout|mouseenter|mouseleave|mouseout|mouseover|dragenter|dragexit)/,process:function(e,t){c(e,"relatedTarget",{value:t.relatedTarget||t.fromElement===e.target?t.toElement:t.fromElement,enumerable:!0})}},metaKey:{match:/^(?:key|mousedown|mouseup|click|dblclick)/,process:function(e,t){c(e,"metaKey",{value:t.metaKey&&!1!==t.metaKey,enumerable:!0})}},whichKeyboard:{match:/^(?:key)/,process:function(e,t){c(e,"which",{value:(t.which||0!==t.which)&&t.which||(null!==t.charCode?t.charCode:t.keyCode),enumerable:!0})}},whichMouse:{match:/^(?:mousedown|mouseup|click|dblclick)/,process:function(e,t){c(e,"which",{value:(t.which||0!==t.which)&&t.which||(1&t.which?1:2&t.which?3:4&t.which?2:0),enumerable:!0})}},pageX:{match:/^(?:mouse|pointer|contextmenu|click|dblclick|drag|drop|wheel)/,process:function(e,o){var n;c(e,"pageX",{value:"undefined"!=typeof o.pageX?o.pageX:(n=(e.target.ownerDocument||t).documentElement,o.clientX+(n.scrollLeft||0)-(n.clientLeft||0)),enumerable:!0})}},pageY:{match:/^(?:mouse|pointer|contextmenu|touch|click|dblclick|drag|drop|wheel)/,process:function(e,o){var n;c(e,"pageY",{value:"undefined"!=typeof o.pageY?o.pageY:(n=(e.target.ownerDocument||t).documentElement,o.clientY+(n.scrollTop||0)-(n.clientTop||0)),enumerable:!0})}}};return{add:function(e,t){e&&t&&n[e]&&(n[e]=t)},get:function(e){if(e&&n[e])return n[e]},process:function(t,c){return e(n,(function(e,n){(!n.match||n.match.test(c.type))&&(n.properties&&function(e,t,c){for(var n,r={},a=0;n=c[a];a++)"undefined"!=typeof t[n]&&(r[n]={value:t[n],enumerable:!0});o(e,r)}(t,c,n.properties),n.process&&n.process(t,c))})),t}}}))}(0,document); //# sourceMappingURL=event.js.map