initial commit

This commit is contained in:
2026-03-22 03:21:45 +02:00
commit 897fea9f4e
15431 changed files with 2548840 additions and 0 deletions

8
node_modules/eases/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
bower_components
node_modules
*.log
.DS_Store
bundle.js
test
test.js
demo/

21
node_modules/eases/LICENSE.md generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Matt DesLauriers
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.

65
node_modules/eases/README.md generated vendored Normal file
View File

@@ -0,0 +1,65 @@
# eases
[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)
This is a grab-bag of [Robert Penner's easing equations](http://www.robertpenner.com/easing/), most of the code from [glsl-easings](https://www.npmjs.org/package/glsl-easings). Pull requests for optimizations are welcome.
```js
//require all eases
var quadIn = require('eases').quadIn
//require only the single function
var quadIn = require('eases/quad-in')
```
## Usage
[![NPM](https://nodei.co/npm/eases.png)](https://nodei.co/npm/eases/)
Each easing has its own file which can be required individually. The entry point also exports all eases with camelCase, so `require('eases/expo-in-out')` becomes `require('eases').expoInOut`.
Full list of eases:
```js
require('eases/back-in-out')
require('eases/back-in')
require('eases/back-out')
require('eases/bounce-in-out')
require('eases/bounce-in')
require('eases/bounce-out')
require('eases/circ-in-out')
require('eases/circ-in')
require('eases/circ-out')
require('eases/cubic-in-out')
require('eases/cubic-in')
require('eases/cubic-out')
require('eases/elastic-in-out')
require('eases/elastic-in')
require('eases/elastic-out')
require('eases/expo-in-out')
require('eases/expo-in')
require('eases/expo-out')
require('eases/linear')
require('eases/quad-in-out')
require('eases/quad-in')
require('eases/quad-out')
require('eases/quart-in-out')
require('eases/quart-in')
require('eases/quart-out')
require('eases/quint-in-out')
require('eases/quint-in')
require('eases/quint-out')
require('eases/sine-in-out')
require('eases/sine-in')
require('eases/sine-out')
```
All easing functions only remap a time value, and all have the same signature.
#### ```v = ease(t)```
Where `t` is typically a value between 0 and 1, and it returns a new float that has been eased.
## License
MIT, see [LICENSE.md](http://github.com/mattdesl/eases/blob/master/LICENSE.md) for details.

8
node_modules/eases/back-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
function backInOut(t) {
var s = 1.70158 * 1.525
if ((t *= 2) < 1)
return 0.5 * (t * t * ((s + 1) * t - s))
return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2)
}
module.exports = backInOut

6
node_modules/eases/back-in.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
function backIn(t) {
var s = 1.70158
return t * t * ((s + 1) * t - s)
}
module.exports = backIn

6
node_modules/eases/back-out.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
function backOut(t) {
var s = 1.70158
return --t * t * ((s + 1) * t + s) + 1
}
module.exports = backOut

9
node_modules/eases/bounce-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
var bounceOut = require('./bounce-out')
function bounceInOut(t) {
return t < 0.5
? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))
: 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5
}
module.exports = bounceInOut

7
node_modules/eases/bounce-in.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
var bounceOut = require('./bounce-out')
function bounceIn(t) {
return 1.0 - bounceOut(1.0 - t)
}
module.exports = bounceIn

21
node_modules/eases/bounce-out.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
function bounceOut(t) {
var a = 4.0 / 11.0
var b = 8.0 / 11.0
var c = 9.0 / 10.0
var ca = 4356.0 / 361.0
var cb = 35442.0 / 1805.0
var cc = 16061.0 / 1805.0
var t2 = t * t
return t < a
? 7.5625 * t2
: t < b
? 9.075 * t2 - 9.9 * t + 3.4
: t < c
? ca * t2 - cb * t + cc
: 10.8 * t * t - 20.52 * t + 10.72
}
module.exports = bounceOut

6
node_modules/eases/circ-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
function circInOut(t) {
if ((t *= 2) < 1) return -0.5 * (Math.sqrt(1 - t * t) - 1)
return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1)
}
module.exports = circInOut

5
node_modules/eases/circ-in.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function circIn(t) {
return 1.0 - Math.sqrt(1.0 - t * t)
}
module.exports = circIn

5
node_modules/eases/circ-out.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function circOut(t) {
return Math.sqrt(1 - ( --t * t ))
}
module.exports = circOut

7
node_modules/eases/cubic-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
function cubicInOut(t) {
return t < 0.5
? 4.0 * t * t * t
: 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0
}
module.exports = cubicInOut

5
node_modules/eases/cubic-in.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function cubicIn(t) {
return t * t * t
}
module.exports = cubicIn

6
node_modules/eases/cubic-out.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
function cubicOut(t) {
var f = t - 1.0
return f * f * f + 1.0
}
module.exports = cubicOut

7
node_modules/eases/elastic-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
function elasticInOut(t) {
return t < 0.5
? 0.5 * Math.sin(+13.0 * Math.PI/2 * 2.0 * t) * Math.pow(2.0, 10.0 * (2.0 * t - 1.0))
: 0.5 * Math.sin(-13.0 * Math.PI/2 * ((2.0 * t - 1.0) + 1.0)) * Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) + 1.0
}
module.exports = elasticInOut

5
node_modules/eases/elastic-in.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function elasticIn(t) {
return Math.sin(13.0 * t * Math.PI/2) * Math.pow(2.0, 10.0 * (t - 1.0))
}
module.exports = elasticIn

5
node_modules/eases/elastic-out.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function elasticOut(t) {
return Math.sin(-13.0 * (t + 1.0) * Math.PI/2) * Math.pow(2.0, -10.0 * t) + 1.0
}
module.exports = elasticOut

9
node_modules/eases/expo-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
function expoInOut(t) {
return (t === 0.0 || t === 1.0)
? t
: t < 0.5
? +0.5 * Math.pow(2.0, (20.0 * t) - 10.0)
: -0.5 * Math.pow(2.0, 10.0 - (t * 20.0)) + 1.0
}
module.exports = expoInOut

5
node_modules/eases/expo-in.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function expoIn(t) {
return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0))
}
module.exports = expoIn

5
node_modules/eases/expo-out.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function expoOut(t) {
return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t)
}
module.exports = expoOut

33
node_modules/eases/index.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
module.exports = {
'backInOut': require('./back-in-out'),
'backIn': require('./back-in'),
'backOut': require('./back-out'),
'bounceInOut': require('./bounce-in-out'),
'bounceIn': require('./bounce-in'),
'bounceOut': require('./bounce-out'),
'circInOut': require('./circ-in-out'),
'circIn': require('./circ-in'),
'circOut': require('./circ-out'),
'cubicInOut': require('./cubic-in-out'),
'cubicIn': require('./cubic-in'),
'cubicOut': require('./cubic-out'),
'elasticInOut': require('./elastic-in-out'),
'elasticIn': require('./elastic-in'),
'elasticOut': require('./elastic-out'),
'expoInOut': require('./expo-in-out'),
'expoIn': require('./expo-in'),
'expoOut': require('./expo-out'),
'linear': require('./linear'),
'quadInOut': require('./quad-in-out'),
'quadIn': require('./quad-in'),
'quadOut': require('./quad-out'),
'quartInOut': require('./quart-in-out'),
'quartIn': require('./quart-in'),
'quartOut': require('./quart-out'),
'quintInOut': require('./quint-in-out'),
'quintIn': require('./quint-in'),
'quintOut': require('./quint-out'),
'sineInOut': require('./sine-in-out'),
'sineIn': require('./sine-in'),
'sineOut': require('./sine-out')
}

5
node_modules/eases/linear.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function linear(t) {
return t
}
module.exports = linear

58
node_modules/eases/package.json generated vendored Normal file
View File

@@ -0,0 +1,58 @@
{
"name": "eases",
"version": "1.0.8",
"description": "grab bag of easing equations",
"main": "index.js",
"license": "MIT",
"author": "Matt DesLauriers <dave.des@gmail.com>",
"dependencies": {},
"devDependencies": {
"tape": "~2.13.2"
},
"scripts": {
"test": "node test.js",
"dev": "beefy demo/index"
},
"testling": {
"files": "test.js",
"browsers": [
"ie/6..latest",
"chrome/22..latest",
"firefox/16..latest",
"safari/latest",
"opera/11.0..latest",
"iphone/6",
"ipad/6",
"android-browser/latest"
]
},
"repository": {
"type": "git",
"url": "git://github.com/mattdesl/eases.git"
},
"homepage": "https://github.com/mattdesl/eases",
"bugs": {
"url": "https://github.com/mattdesl/eases/issues"
},
"keywords": [
"ease",
"eases",
"robert",
"penner",
"easing",
"easings",
"linear",
"lerp",
"animation",
"tween",
"anim",
"animations",
"tweening",
"tweens",
"function",
"functions",
"expo",
"quint",
"quadratic"
]
}

8
node_modules/eases/quad-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
function quadInOut(t) {
t /= 0.5
if (t < 1) return 0.5*t*t
t--
return -0.5 * (t*(t-2) - 1)
}
module.exports = quadInOut

5
node_modules/eases/quad-in.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function quadIn(t) {
return t * t
}
module.exports = quadIn

5
node_modules/eases/quad-out.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function quadOut(t) {
return -t * (t - 2.0)
}
module.exports = quadOut

7
node_modules/eases/quart-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
function quarticInOut(t) {
return t < 0.5
? +8.0 * Math.pow(t, 4.0)
: -8.0 * Math.pow(t - 1.0, 4.0) + 1.0
}
module.exports = quarticInOut

5
node_modules/eases/quart-in.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function quarticIn(t) {
return Math.pow(t, 4.0)
}
module.exports = quarticIn

5
node_modules/eases/quart-out.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function quarticOut(t) {
return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0
}
module.exports = quarticOut

6
node_modules/eases/quint-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
function qinticInOut(t) {
if ( ( t *= 2 ) < 1 ) return 0.5 * t * t * t * t * t
return 0.5 * ( ( t -= 2 ) * t * t * t * t + 2 )
}
module.exports = qinticInOut

5
node_modules/eases/quint-in.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function qinticIn(t) {
return t * t * t * t * t
}
module.exports = qinticIn

5
node_modules/eases/quint-out.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function qinticOut(t) {
return --t * t * t * t * t + 1
}
module.exports = qinticOut

5
node_modules/eases/sine-in-out.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function sineInOut(t) {
return -0.5 * (Math.cos(Math.PI*t) - 1)
}
module.exports = sineInOut

7
node_modules/eases/sine-in.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
function sineIn (t) {
var v = Math.cos(t * Math.PI * 0.5)
if (Math.abs(v) < 1e-14) return 1
else return 1 - v
}
module.exports = sineIn

5
node_modules/eases/sine-out.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
function sineOut(t) {
return Math.sin(t * Math.PI/2)
}
module.exports = sineOut