测试
This commit is contained in:
30
frontend/node_modules/normalize-wheel-es/LICENSE
generated
vendored
Normal file
30
frontend/node_modules/normalize-wheel-es/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
BSD License
|
||||
|
||||
For FixedDataTable software
|
||||
|
||||
Copyright (c) 2015, Facebook, Inc. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name Facebook nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
23
frontend/node_modules/normalize-wheel-es/README.md
generated
vendored
Normal file
23
frontend/node_modules/normalize-wheel-es/README.md
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# Normalize Wheel
|
||||
Mouse wheel normalization across multiple multiple browsers.
|
||||
|
||||
## Original source
|
||||
This code is extracted and from Facebook's [Fixed Data Table](https://github.com/facebook/fixed-data-table). Apart from import fixes, the code is unmodified.
|
||||
|
||||
## Usage
|
||||
Just add it as an dependency in npm.
|
||||
|
||||
You can use it as follows:
|
||||
|
||||
```js
|
||||
import normalizeWheel from 'normalize-wheel-es';
|
||||
|
||||
document.addEventListener('mousewheel', function (event) {
|
||||
const normalized = normalizeWheel(event);
|
||||
|
||||
console.log(normalized.pixelX, normalized.pixelY);
|
||||
});
|
||||
```
|
||||
|
||||
## License
|
||||
See the `LICENSE` file.
|
||||
14
frontend/node_modules/normalize-wheel-es/dist/index.global.js
generated
vendored
Normal file
14
frontend/node_modules/normalize-wheel-es/dist/index.global.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
var _typeof=function(obj){"@swc/helpers - typeof";return obj&& typeof Symbol!=="undefined"&&obj.constructor===Symbol?"symbol":typeof obj};(function(){var a=function a(){if(!v){v=!0;var e=navigator.userAgent,n=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),i=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(x=/\b(iPhone|iP[ao]d)/.exec(e),E=/\b(iP[ao]d)/.exec(e),w=/Android/i.exec(e),M=/FBAN\/\w+;/i.exec(e),F=/Mobile/i.exec(e),D=!!/Win64/.exec(e),n){o=n[1]?parseFloat(n[1]):n[5]?parseFloat(n[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);N=r?parseFloat(r[1])+4:o,f=n[2]?parseFloat(n[2]):NaN,s=n[3]?parseFloat(n[3]):NaN,u=n[4]?parseFloat(n[4]):NaN,u?(n=/(?:Chrome\/(\d+\.\d+))/.exec(e),d=n&&n[1]?parseFloat(n[1]):NaN):d=NaN}else o=f=s=d=u=NaN;if(i){if(i[1]){var t=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=t?parseFloat(t[1].replace("_",".")):!0}else l=!1;p=!!i[2],m=!!i[3]}else l=p=m=!1}};var S=function S(e,n){if(!h.canUseDOM||n&&!("addEventListener"in document))return!1;var i="on"+e,r=i in document;if(!r){var t=document.createElement("div");t.setAttribute(i,"return;"),r=typeof t[i]=="function"}return!r&&X&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r};var T=function T(e){var n=0,i=0,r=0,t=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=i,i=0),r=n*O,t=i*O,"deltaY"in e&&(t=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||t)&&e.deltaMode&&(e.deltaMode==1?(r*=I,t*=I):(r*=P,t*=P)),r&&!n&&(n=r<1?-1:1),t&&!i&&(i=t<1?-1:1),{spinX:n,spinY:i,pixelX:r,pixelY:t}};var v=!1,o,f,s,u,d,N,l,p,m,w,D,x,E,M,F;var _={ie:function ie(){return a()||o},ieCompatibilityMode:function ieCompatibilityMode(){return a()||N>o},ie64:function ie64(){return _.ie()&&D},firefox:function firefox(){return a()||f},opera:function opera(){return a()||s},webkit:function webkit(){return a()||u},safari:function safari(){return _.webkit()},chrome:function chrome(){return a()||d},windows:function windows(){return a()||p},osx:function osx(){return a()||l},linux:function linux(){return a()||m},iphone:function iphone(){return a()||x},mobile:function mobile(){return a()||x||E||w||F},nativeApp:function nativeApp(){return a()||M},android:function android(){return a()||w},ipad:function ipad(){return a()||E}},A=_;var c=!!((typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window.document&&window.document.createElement),U={canUseDOM:c,canUseWorkers:(typeof Worker==="undefined"?"undefined":_typeof(Worker))<"u",canUseEventListeners:c&&!!(window.addEventListener||window.attachEvent),canUseViewport:c&&!!window.screen,isInWorker:!c},h=U;var X;h.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!== !0);var b=S;var O=10,I=40,P=800;T.getEventType=function(){return A.firefox()?"DOMMouseScroll":b("wheel")?"wheel":"mousewheel"};var Y=T})(); /**
|
||||
* Checks if an event is supported in the current execution environment.
|
||||
*
|
||||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||||
* `reset`, `load`, `error`, and `select`.
|
||||
*
|
||||
* Borrows from Modernizr.
|
||||
*
|
||||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||||
* @param {?boolean} capture Check if the capture phase is supported.
|
||||
* @return {boolean} True if the event is supported.
|
||||
* @internal
|
||||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||||
*/ //# sourceMappingURL=index.global.js.map
|
||||
1
frontend/node_modules/normalize-wheel-es/dist/index.global.js.map
generated
vendored
Normal file
1
frontend/node_modules/normalize-wheel-es/dist/index.global.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
14
frontend/node_modules/normalize-wheel-es/dist/index.js
generated
vendored
Normal file
14
frontend/node_modules/normalize-wheel-es/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
var _typeof=function(obj){"@swc/helpers - typeof";return obj&& typeof Symbol!=="undefined"&&obj.constructor===Symbol?"symbol":typeof obj};var f=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var W=Object.prototype.hasOwnProperty;var g=function(e,n){for(var i in n)f(e,i,{get:n[i],enumerable:!0})},k=function(e,n,i,r){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(n&& typeof n=="object"|| typeof n=="function")try{var _loop=function(_iterator,_step){var t=_step.value;!W.call(e,t)&&t!==i&&f(e,t,{get:function(){return n[t]},enumerable:!(r=Y(n,t))||r.enumerable})};for(var _iterator=L(n)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop(_iterator,_step)}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e};var H=function(e){return k(f({},"__esModule",{value:!0}),e)};var G={};g(G,{default:function(){return S}});module.exports=H(G);var N=!1,o,s,p,u,d,D,l,m,w,x,M,E,_,F,A;function a(){if(!N){N=!0;var e=navigator.userAgent,n=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),i=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(E=/\b(iPhone|iP[ao]d)/.exec(e),_=/\b(iP[ao]d)/.exec(e),x=/Android/i.exec(e),F=/FBAN\/\w+;/i.exec(e),A=/Mobile/i.exec(e),M=!!/Win64/.exec(e),n){o=n[1]?parseFloat(n[1]):n[5]?parseFloat(n[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);D=r?parseFloat(r[1])+4:o,s=n[2]?parseFloat(n[2]):NaN,p=n[3]?parseFloat(n[3]):NaN,u=n[4]?parseFloat(n[4]):NaN,u?(n=/(?:Chrome\/(\d+\.\d+))/.exec(e),d=n&&n[1]?parseFloat(n[1]):NaN):d=NaN}else o=s=p=d=u=NaN;if(i){if(i[1]){var t=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=t?parseFloat(t[1].replace("_",".")):!0}else l=!1;m=!!i[2],w=!!i[3]}else l=m=w=!1}}var h={ie:function ie(){return a()||o},ieCompatibilityMode:function ieCompatibilityMode(){return a()||D>o},ie64:function ie64(){return h.ie()&&M},firefox:function firefox(){return a()||s},opera:function opera(){return a()||p},webkit:function webkit(){return a()||u},safari:function safari(){return h.webkit()},chrome:function chrome(){return a()||d},windows:function windows(){return a()||m},osx:function osx(){return a()||l},linux:function linux(){return a()||w},iphone:function iphone(){return a()||E},mobile:function mobile(){return a()||E||_||x||A},nativeApp:function nativeApp(){return a()||F},android:function android(){return a()||x},ipad:function ipad(){return a()||_}},X=h;var c=!!((typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window.document&&window.document.createElement),y={canUseDOM:c,canUseWorkers:(typeof Worker==="undefined"?"undefined":_typeof(Worker))<"u",canUseEventListeners:c&&!!(window.addEventListener||window.attachEvent),canUseViewport:c&&!!window.screen,isInWorker:!c},v=y;var b;v.canUseDOM&&(b=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!== !0);function C(e,n){if(!v.canUseDOM||n&&!("addEventListener"in document))return!1;var i="on"+e,r=i in document;if(!r){var t=document.createElement("div");t.setAttribute(i,"return;"),r=typeof t[i]=="function"}return!r&&b&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var O=C;var I=10,P=40,T=800;function U(e){var n=0,i=0,r=0,t=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=i,i=0),r=n*I,t=i*I,"deltaY"in e&&(t=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||t)&&e.deltaMode&&(e.deltaMode==1?(r*=P,t*=P):(r*=T,t*=T)),r&&!n&&(n=r<1?-1:1),t&&!i&&(i=t<1?-1:1),{spinX:n,spinY:i,pixelX:r,pixelY:t}}U.getEventType=function(){return X.firefox()?"DOMMouseScroll":O("wheel")?"wheel":"mousewheel"};var S=U;0&&(module.exports={}); /**
|
||||
* Checks if an event is supported in the current execution environment.
|
||||
*
|
||||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||||
* `reset`, `load`, `error`, and `select`.
|
||||
*
|
||||
* Borrows from Modernizr.
|
||||
*
|
||||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||||
* @param {?boolean} capture Check if the capture phase is supported.
|
||||
* @return {boolean} True if the event is supported.
|
||||
* @internal
|
||||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||||
*/ //# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/normalize-wheel-es/dist/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/normalize-wheel-es/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
16
frontend/node_modules/normalize-wheel-es/dist/index.mjs
generated
vendored
Normal file
16
frontend/node_modules/normalize-wheel-es/dist/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
var v=!1,o,f,s,u,d,N,l,p,m,w,D,x,E,M,F;function a(){if(!v){v=!0;var e=navigator.userAgent,n=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),i=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(x=/\b(iPhone|iP[ao]d)/.exec(e),E=/\b(iP[ao]d)/.exec(e),w=/Android/i.exec(e),M=/FBAN\/\w+;/i.exec(e),F=/Mobile/i.exec(e),D=!!/Win64/.exec(e),n){o=n[1]?parseFloat(n[1]):n[5]?parseFloat(n[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);N=r?parseFloat(r[1])+4:o,f=n[2]?parseFloat(n[2]):NaN,s=n[3]?parseFloat(n[3]):NaN,u=n[4]?parseFloat(n[4]):NaN,u?(n=/(?:Chrome\/(\d+\.\d+))/.exec(e),d=n&&n[1]?parseFloat(n[1]):NaN):d=NaN}else o=f=s=d=u=NaN;if(i){if(i[1]){var t=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=t?parseFloat(t[1].replace("_",".")):!0}else l=!1;p=!!i[2],m=!!i[3]}else l=p=m=!1}}var _={ie:function(){return a()||o},ieCompatibilityMode:function(){return a()||N>o},ie64:function(){return _.ie()&&D},firefox:function(){return a()||f},opera:function(){return a()||s},webkit:function(){return a()||u},safari:function(){return _.webkit()},chrome:function(){return a()||d},windows:function(){return a()||p},osx:function(){return a()||l},linux:function(){return a()||m},iphone:function(){return a()||x},mobile:function(){return a()||x||E||w||F},nativeApp:function(){return a()||M},android:function(){return a()||w},ipad:function(){return a()||E}},A=_;var c=!!(typeof window<"u"&&window.document&&window.document.createElement),U={canUseDOM:c,canUseWorkers:typeof Worker<"u",canUseEventListeners:c&&!!(window.addEventListener||window.attachEvent),canUseViewport:c&&!!window.screen,isInWorker:!c},h=U;var X;h.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S(e,n){if(!h.canUseDOM||n&&!("addEventListener"in document))return!1;var i="on"+e,r=i in document;if(!r){var t=document.createElement("div");t.setAttribute(i,"return;"),r=typeof t[i]=="function"}return!r&&X&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var b=S;var O=10,I=40,P=800;function T(e){var n=0,i=0,r=0,t=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=i,i=0),r=n*O,t=i*O,"deltaY"in e&&(t=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||t)&&e.deltaMode&&(e.deltaMode==1?(r*=I,t*=I):(r*=P,t*=P)),r&&!n&&(n=r<1?-1:1),t&&!i&&(i=t<1?-1:1),{spinX:n,spinY:i,pixelX:r,pixelY:t}}T.getEventType=function(){return A.firefox()?"DOMMouseScroll":b("wheel")?"wheel":"mousewheel"};var Y=T;export{Y as default};
|
||||
/**
|
||||
* Checks if an event is supported in the current execution environment.
|
||||
*
|
||||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||||
* `reset`, `load`, `error`, and `select`.
|
||||
*
|
||||
* Borrows from Modernizr.
|
||||
*
|
||||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||||
* @param {?boolean} capture Check if the capture phase is supported.
|
||||
* @return {boolean} True if the event is supported.
|
||||
* @internal
|
||||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||||
*/
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
1
frontend/node_modules/normalize-wheel-es/dist/index.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/normalize-wheel-es/dist/index.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
12
frontend/node_modules/normalize-wheel-es/index.d.ts
generated
vendored
Normal file
12
frontend/node_modules/normalize-wheel-es/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
declare module "normalize-wheel-es" {
|
||||
interface NormalizedWheelEvent {
|
||||
spinX: number;
|
||||
spinY: number;
|
||||
pixelX: number;
|
||||
pixelY: number;
|
||||
}
|
||||
|
||||
function normalizeWheel(e: WheelEvent): NormalizedWheelEvent;
|
||||
export default normalizeWheel;
|
||||
export { NormalizedWheelEvent };
|
||||
}
|
||||
44
frontend/node_modules/normalize-wheel-es/package.json
generated
vendored
Normal file
44
frontend/node_modules/normalize-wheel-es/package.json
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "normalize-wheel-es",
|
||||
"version": "1.2.0",
|
||||
"description": "Mouse wheel normalization across multiple multiple browsers.",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "index.d.ts",
|
||||
"author": "Bas Stottelaar",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "三咲智子",
|
||||
"email": "sxzz@sxzz.moe",
|
||||
"url": "https://github.com/sxzz"
|
||||
}
|
||||
],
|
||||
"license": "BSD-3-Clause",
|
||||
"bugs": {
|
||||
"url": "https://github.com/sxzz/normalize-wheel-es/issues"
|
||||
},
|
||||
"homepage": "https://github.com/sxzz/normalize-wheel-es#readme",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sxzz/normalize-wheel-es.git"
|
||||
},
|
||||
"keywords": [
|
||||
"mouse wheel",
|
||||
"normalization",
|
||||
"browser",
|
||||
"esm"
|
||||
],
|
||||
"files": [
|
||||
"dist",
|
||||
"index.d.ts"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@swc/core": "^1.2.218",
|
||||
"bumpp": "^8.2.1",
|
||||
"tsup": "^6.1.3"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"release": "bumpp"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user