first commit

This commit is contained in:
Warunee Tamkoo 2023-09-06 14:51:44 +07:00
commit eb2f504652
32490 changed files with 5731109 additions and 0 deletions

3
node_modules/wheel/.travis.yml generated vendored Normal file
View file

@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.10"

21
node_modules/wheel/LICENSE generated vendored Normal file
View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Andrei Kashcha
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

38
node_modules/wheel/README.md generated vendored Normal file
View file

@ -0,0 +1,38 @@
# wheel [![Build Status](https://travis-ci.org/anvaka/wheel.svg)](https://travis-ci.org/anvaka/wheel)
In 2014 this module was supposed to unify handling of mouse whee event across
different browsers.
Now it's just a wrapper on top of `element.addEventListener('wheel', callback)`;
# Usage
``` js
var addWheelListener = require('wheel').addWheelListener;
var removeWheelListener = require('wheel').removeWheelListener;
addWheelListener(domElement, function (e) {
// mouse wheel event
});
removeWheelListener(domElement, function);
```
You can also use a shortcut for addWheelListener:
``` js
var addWheelListener = require('wheel');
addWheelListener(domElement, function (e) {
// mouse wheel event
});
```
# install
With [npm](https://npmjs.org) do:
```
npm install wheel
```
# license
MIT

27
node_modules/wheel/index.js generated vendored Normal file
View file

@ -0,0 +1,27 @@
/**
* This module used to unify mouse wheel behavior between different browsers in 2014
* Now it's just a wrapper around addEventListener('wheel');
*
* Usage:
* var addWheelListener = require('wheel').addWheelListener;
* var removeWheelListener = require('wheel').removeWheelListener;
* addWheelListener(domElement, function (e) {
* // mouse wheel event
* });
* removeWheelListener(domElement, function);
*/
module.exports = addWheelListener;
// But also expose "advanced" api with unsubscribe:
module.exports.addWheelListener = addWheelListener;
module.exports.removeWheelListener = removeWheelListener;
function addWheelListener(element, listener, useCapture) {
element.addEventListener('wheel', listener, useCapture);
}
function removeWheelListener( element, listener, useCapture ) {
element.removeEventListener('wheel', listener, useCapture);
}

24
node_modules/wheel/package.json generated vendored Normal file
View file

@ -0,0 +1,24 @@
{
"name": "wheel",
"version": "1.0.0",
"description": "Mouse wheel event unified for all browsers",
"main": "index.js",
"scripts": {
"test": "tap test/*.js"
},
"keywords": [
"addWheelListener",
"wheel",
"mouse",
"DOMMouseScroll"
],
"author": "Andrei Kashcha",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/anvaka/wheel"
},
"devDependencies": {
"tap": "^1.3.2"
}
}

11
node_modules/wheel/test/index.js generated vendored Normal file
View file

@ -0,0 +1,11 @@
var test = require('tap').test;
var api = require('../');
test('it exists', function(t) {
t.ok(typeof api === 'function', 'Api is there');
t.ok(typeof api.addWheelListener === 'function', 'You can add wheel listener');
t.ok(typeof api.removeWheelListener === 'function', 'You can remove wheel listener');
t.end();
});