ziko 0.48.1 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ziko.cjs +187 -157
- package/dist/ziko.js +187 -157
- package/dist/ziko.min.js +2 -2
- package/dist/ziko.mjs +152 -122
- package/package.json +8 -8
- package/src/__ziko__/__signature__.js +0 -0
- package/src/app/spa.js +7 -7
- package/src/app/ziko-app.js +1 -1
- package/src/data/converter/svg.js +1 -1
- package/src/math/complex/index.js +6 -17
- package/src/time/animation/index.js +2 -2
- package/src/time/ease/index.js +115 -74
- package/src/ui/__methods__/dom.js +5 -5
- package/src/ui/constructors/UIElement.js +3 -3
- package/src/ui/constructors/UIElementCore.js +3 -3
- package/src/ui/constructors/_m.js.txt +5 -5
- package/src/ui/flex/index.js +1 -1
- package/src/ui/grid/index.js +1 -1
- package/src/ui/logic/switch/index.js +1 -1
- package/src/ui/suspense/index.js +1 -1
- package/src/ui/web-component/index.js +4 -4
- package/types/index.d.ts +2 -0
- package/types/math/complex/index.d.ts +52 -0
- package/types/math/index.d.ts +2 -0
- package/types/math/utils/index.d.ts +1 -0
- package/types/math/utils/mapfun.d.ts +43 -0
- package/types/time/ease/index.d.ts +103 -0
- package/types/time/index.d.ts +1 -0
package/src/time/ease/index.js
CHANGED
|
@@ -1,77 +1,118 @@
|
|
|
1
|
-
const {PI, sqrt, cos, sin, acos, pow} = Math;
|
|
2
|
-
|
|
3
|
-
export const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const
|
|
7
|
-
|
|
8
|
-
export const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export const
|
|
37
|
-
export const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export const
|
|
56
|
-
return t === 0
|
|
57
|
-
? 0
|
|
58
|
-
: t === 1
|
|
59
|
-
? 1
|
|
60
|
-
: t < 0.5
|
|
61
|
-
? -(pow(2, 20 * t - 10) * sin((20 * t - 11.125) * c5)) / 2
|
|
62
|
-
: (pow(2, -20 * t + 10) * sin((20 * t - 11.125) * c5)) / 2 + 1;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export const InBounce = (t, n1 = 7.5625, d1 = 2.75) => 1 - OutBounce(1-t, n1, d1);
|
|
66
|
-
export const OutBounce = (t, n1 = 7.5625, d1 = 2.75) => {
|
|
67
|
-
if(t<1/d1) return n1 * t * t;
|
|
68
|
-
if(t < 2 / d1) return n1 * (t -= 1.5 / d1) * t + 0.75;
|
|
69
|
-
if(t < 2.5 / d1) return n1 * (t -= 2.25 / d1) * t + 0.9375;
|
|
70
|
-
return n1 * (t -= 2.625 / d1) * t + 0.984375;
|
|
71
|
-
}
|
|
1
|
+
const { PI, sqrt, cos, sin, acos, pow } = Math;
|
|
2
|
+
|
|
3
|
+
export const linear = t => t;
|
|
4
|
+
|
|
5
|
+
// --- Sin ---
|
|
6
|
+
export const in_sin = t => 1 - cos((t * PI) / 2);
|
|
7
|
+
export const out_sin = t => sin((t * PI) / 2);
|
|
8
|
+
export const in_out_sin = t => -(cos(PI * t) - 1) / 2;
|
|
9
|
+
|
|
10
|
+
// --- Quad ---
|
|
11
|
+
export const in_quad = t => t ** 2;
|
|
12
|
+
export const out_quad = t => 1 - (1 - t) ** 2;
|
|
13
|
+
export const in_out_quad = t =>
|
|
14
|
+
t < 0.5 ? 2 * (t ** 2) : 1 - (-2 * t + 2) ** 2 / 2;
|
|
15
|
+
|
|
16
|
+
// --- Cubic ---
|
|
17
|
+
export const in_cubic = t => t ** 3;
|
|
18
|
+
export const out_cubic = t => 1 - (1 - t) ** 3;
|
|
19
|
+
export const in_out_cubic = t =>
|
|
20
|
+
t < 0.5 ? 4 * (t ** 3) : 1 - (-2 * t + 2) ** 3 / 2;
|
|
21
|
+
|
|
22
|
+
// --- Quart ---
|
|
23
|
+
export const in_quart = t => t ** 4;
|
|
24
|
+
export const out_quart = t => 1 - (1 - t) ** 4;
|
|
25
|
+
export const in_out_quart = t =>
|
|
26
|
+
t < 0.5 ? 8 * (t ** 4) : 1 - (-2 * t + 2) ** 4 / 2;
|
|
27
|
+
|
|
28
|
+
// --- Quint ---
|
|
29
|
+
export const in_quint = t => t ** 5;
|
|
30
|
+
export const out_quint = t => 1 - (1 - t) ** 5;
|
|
31
|
+
export const in_out_quint = t =>
|
|
32
|
+
t < 0.5 ? 16 * (t ** 5) : 1 - (-2 * t + 2) ** 5 / 2;
|
|
33
|
+
|
|
34
|
+
// --- Expo ---
|
|
35
|
+
export const in_expo = t => (t === 0 ? 0 : 2 ** (10 * t - 10));
|
|
36
|
+
export const out_expo = t => (t === 1 ? 1 : 1 - 2 ** (-10 * t));
|
|
37
|
+
export const in_out_expo = t =>
|
|
38
|
+
t === 0
|
|
39
|
+
? 0
|
|
40
|
+
: t === 1
|
|
41
|
+
? 1
|
|
42
|
+
: t < 0.5
|
|
43
|
+
? 2 ** (20 * t - 10) / 2
|
|
44
|
+
: (2 - 2 ** (-20 * t + 10)) / 2;
|
|
45
|
+
|
|
46
|
+
// --- Circ ---
|
|
47
|
+
export const in_circ = t => 1 - sqrt(1 - t ** 2);
|
|
48
|
+
export const out_circ = t => sqrt(1 - (t - 1) ** 2);
|
|
49
|
+
export const in_out_circ = t =>
|
|
50
|
+
t < 0.5
|
|
51
|
+
? (1 - sqrt(1 - (2 * t) ** 2)) / 2
|
|
52
|
+
: (sqrt(1 - (-2 * t + 2) ** 2) + 1) / 2;
|
|
53
|
+
|
|
54
|
+
// --- Arc ---
|
|
55
|
+
export const arc = t => 1 - sin(acos(t));
|
|
72
56
|
|
|
73
|
-
|
|
57
|
+
// --- Back ---
|
|
58
|
+
export const back = (t, x = 1) => (t ** 2) * ((x + 1) * t - x);
|
|
59
|
+
|
|
60
|
+
// --- Elastic ---
|
|
61
|
+
export const elastic = t =>
|
|
62
|
+
-2 * pow(2, 10 * (t - 1)) * cos((20 * PI * t) / 3 * t);
|
|
63
|
+
|
|
64
|
+
// --- Back variations ---
|
|
65
|
+
export const in_back = (t, c1 = 1.70158, c3 = c1 + 1) =>
|
|
66
|
+
c3 * pow(t, 3) - c1 * (t ** 2);
|
|
67
|
+
|
|
68
|
+
export const out_back = (t, c1 = 1.70158, c3 = c1 + 1) =>
|
|
69
|
+
1 + c3 * pow(t - 1, 3) + c1 * pow(t - 1, 2);
|
|
70
|
+
|
|
71
|
+
export const in_out_back = (t, c1 = 1.70158, c2 = c1 * 1.525) =>
|
|
72
|
+
t < 0.5
|
|
73
|
+
? (pow(2 * t, 2) * ((c2 + 1) * 2 * t - c2)) / 2
|
|
74
|
+
: (pow(2 * t - 2, 2) * ((c2 + 1) * (t * 2 - 2) + c2) + 2) / 2;
|
|
75
|
+
|
|
76
|
+
// --- Elastic variations ---
|
|
77
|
+
export const in_elastic = (t, c4 = (2 * PI) / 3) =>
|
|
78
|
+
t === 0
|
|
79
|
+
? 0
|
|
80
|
+
: t === 1
|
|
81
|
+
? 1
|
|
82
|
+
: -pow(2, 10 * t - 10) * sin((t * 10 - 10.75) * c4);
|
|
83
|
+
|
|
84
|
+
export const out_elastic = (t, c4 = (2 * PI) / 3) =>
|
|
85
|
+
t === 0
|
|
86
|
+
? 0
|
|
87
|
+
: t === 1
|
|
88
|
+
? 1
|
|
89
|
+
: pow(2, -10 * t) * sin((t * 10 - 0.75) * c4) + 1;
|
|
90
|
+
|
|
91
|
+
export const in_out_elastic = (t, c5 = (2 * PI) / 4.5) =>
|
|
92
|
+
t === 0
|
|
93
|
+
? 0
|
|
94
|
+
: t === 1
|
|
95
|
+
? 1
|
|
96
|
+
: t < 0.5
|
|
97
|
+
? -(pow(2, 20 * t - 10) * sin((20 * t - 11.125) * c5)) / 2
|
|
98
|
+
: (pow(2, -20 * t + 10) * sin((20 * t - 11.125) * c5)) / 2 + 1;
|
|
99
|
+
|
|
100
|
+
// --- Bounce ---
|
|
101
|
+
export const in_bounce = (t, n1 = 7.5625, d1 = 2.75) =>
|
|
102
|
+
1 - out_bounce(1 - t, n1, d1);
|
|
103
|
+
|
|
104
|
+
export const out_bounce = (t, n1 = 7.5625, d1 = 2.75) => {
|
|
105
|
+
if (t < 1 / d1) return n1 * t * t;
|
|
106
|
+
if (t < 2 / d1) return n1 * (t -= 1.5 / d1) * t + 0.75;
|
|
107
|
+
if (t < 2.5 / d1) return n1 * (t -= 2.25 / d1) * t + 0.9375;
|
|
108
|
+
return n1 * (t -= 2.625 / d1) * t + 0.984375;
|
|
109
|
+
};
|
|
74
110
|
|
|
111
|
+
export const in_out_bounce = (t, n1 = 7.5625, d1 = 2.75) =>
|
|
112
|
+
t < 0.5
|
|
113
|
+
? out_bounce(1 - 2 * t, n1, d1) / 2
|
|
114
|
+
: out_bounce(2 * t - 1, n1, d1) / 2;
|
|
75
115
|
|
|
76
|
-
|
|
77
|
-
export const
|
|
116
|
+
// --- Step / Discrete ---
|
|
117
|
+
export const step = (t, steps = 5) => Math.floor(t * steps) / steps;
|
|
118
|
+
export const discret = (t, segments = 5) => Math.ceil(t * segments) / segments;
|
|
@@ -31,18 +31,18 @@ export function remove(...ele) {
|
|
|
31
31
|
return this;
|
|
32
32
|
}
|
|
33
33
|
export function clear(){
|
|
34
|
-
this?.items?.forEach(n=>n.
|
|
34
|
+
this?.items?.forEach(n=>n.unmount());
|
|
35
35
|
this.element.innerHTML = "";
|
|
36
36
|
return this;
|
|
37
37
|
}
|
|
38
|
-
export function
|
|
38
|
+
export function mount(target = this.target) {
|
|
39
39
|
if(this.isBody)return ;
|
|
40
40
|
if(target?.isUIElement)target=target.element;
|
|
41
41
|
this.target=target;
|
|
42
42
|
this.target?.appendChild(this.element);
|
|
43
43
|
return this;
|
|
44
44
|
}
|
|
45
|
-
export function
|
|
45
|
+
export function unmount(){
|
|
46
46
|
if(this.cache.parent)this.cache.parent.remove(this);
|
|
47
47
|
else if(this.target?.children?.length && [...this.target?.children].includes(this.element)) this.target.removeChild(this.element);
|
|
48
48
|
return this;
|
|
@@ -55,11 +55,11 @@ export function replaceElementWith(new_element){
|
|
|
55
55
|
return this
|
|
56
56
|
}
|
|
57
57
|
export function renderAfter(t = 1) {
|
|
58
|
-
setTimeout(() => this.
|
|
58
|
+
setTimeout(() => this.mount(), t);
|
|
59
59
|
return this;
|
|
60
60
|
}
|
|
61
61
|
export function unrenderAfter(t = 1) {
|
|
62
|
-
setTimeout(() => this.
|
|
62
|
+
setTimeout(() => this.unmount(), t);
|
|
63
63
|
return this;
|
|
64
64
|
}
|
|
65
65
|
export function after(ui){
|
|
@@ -94,7 +94,7 @@ class UIElement extends UIElementCore{
|
|
|
94
94
|
// // UI.append(...items);
|
|
95
95
|
// // }
|
|
96
96
|
// // else UI.element=this.element.cloneNode(true);
|
|
97
|
-
// // return UI.
|
|
97
|
+
// // return UI.mount(render);
|
|
98
98
|
// }
|
|
99
99
|
// [Symbol.iterator]() {
|
|
100
100
|
// return this.items[Symbol.iterator]();
|
|
@@ -116,9 +116,9 @@ class UIElement extends UIElementCore{
|
|
|
116
116
|
// setTarget(tg) {
|
|
117
117
|
// if(this.isBody) return ;
|
|
118
118
|
// if (tg?.isUIElement) tg = tg.element;
|
|
119
|
-
// this.
|
|
119
|
+
// this.unmount();
|
|
120
120
|
// this.target = tg;
|
|
121
|
-
// this.
|
|
121
|
+
// this.mount();
|
|
122
122
|
// return this;
|
|
123
123
|
// }
|
|
124
124
|
// describe(label){
|
|
@@ -133,7 +133,7 @@ class UIElementCore extends UINode{
|
|
|
133
133
|
// // UI.append(...items);
|
|
134
134
|
// // }
|
|
135
135
|
// // else UI.element=this.element.cloneNode(true);
|
|
136
|
-
// // return UI.
|
|
136
|
+
// // return UI.mount(render);
|
|
137
137
|
// }
|
|
138
138
|
|
|
139
139
|
// freeze(freeze){
|
|
@@ -143,9 +143,9 @@ class UIElementCore extends UINode{
|
|
|
143
143
|
// setTarget(tg) {
|
|
144
144
|
// if(this.isBody) return ;
|
|
145
145
|
// if (tg?.isUIElement) tg = tg.element;
|
|
146
|
-
// this.
|
|
146
|
+
// this.unmount();
|
|
147
147
|
// this.target = tg;
|
|
148
|
-
// this.
|
|
148
|
+
// this.mount();
|
|
149
149
|
// return this;
|
|
150
150
|
// }
|
|
151
151
|
// describe(label){
|
|
@@ -46,22 +46,22 @@ get #SwitchedStyleRTL_LTR(){
|
|
|
46
46
|
return this;
|
|
47
47
|
}
|
|
48
48
|
filterByTextContent(text, exactMatch = false) {
|
|
49
|
-
this.items.forEach((n) => n.
|
|
49
|
+
this.items.forEach((n) => n.mount());
|
|
50
50
|
this.filter(
|
|
51
51
|
(n) => !(exactMatch ? n.text === text : n.text.includes(text)),
|
|
52
|
-
(e) => e.
|
|
52
|
+
(e) => e.unmount(),
|
|
53
53
|
);
|
|
54
54
|
// this.items.filter(n=>{
|
|
55
55
|
// const content=n.element.textContent;
|
|
56
56
|
// return !(exactMatch?content===text:content.includes(text))
|
|
57
|
-
// }).map(n=>n.
|
|
57
|
+
// }).map(n=>n.unmount());
|
|
58
58
|
// return this;
|
|
59
59
|
}
|
|
60
60
|
filterByClass(value) {
|
|
61
|
-
this.items.map((n) => n.
|
|
61
|
+
this.items.map((n) => n.mount());
|
|
62
62
|
this.items
|
|
63
63
|
.filter((n) => !n.classes.includes(value))
|
|
64
|
-
.map((n) => n.
|
|
64
|
+
.map((n) => n.unmount());
|
|
65
65
|
return this;
|
|
66
66
|
}
|
|
67
67
|
sortByTextContent(value, displays) {
|
package/src/ui/flex/index.js
CHANGED
package/src/ui/grid/index.js
CHANGED
|
@@ -8,7 +8,7 @@ class UISwitch extends UIElement{
|
|
|
8
8
|
this.init()
|
|
9
9
|
}
|
|
10
10
|
init(){
|
|
11
|
-
Object.values(this.cases).filter(n=>n != this.current).forEach(n=>n.
|
|
11
|
+
Object.values(this.cases).filter(n=>n != this.current).forEach(n=>n.unmount())
|
|
12
12
|
super.init(this.current.element)
|
|
13
13
|
}
|
|
14
14
|
get current(){
|
package/src/ui/suspense/index.js
CHANGED
|
@@ -25,19 +25,19 @@ export function define_wc(name, UIElement, props = {}, { mode = 'open'} = {}) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
connectedCallback() {
|
|
28
|
-
this.
|
|
28
|
+
this.mount();
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
mount() {
|
|
32
32
|
this.shadowRoot.innerHTML = '';
|
|
33
|
-
this.UIElement = UIElement(this.props).
|
|
33
|
+
this.UIElement = UIElement(this.props).mount(this.shadowRoot);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
attributeChangedCallback(name, _, newValue) {
|
|
37
37
|
Object.assign(this.props, {
|
|
38
38
|
[name]: this.mask[name].type(newValue)
|
|
39
39
|
});
|
|
40
|
-
this.
|
|
40
|
+
this.mount();
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
);
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare class Complex {
|
|
2
|
+
a: number;
|
|
3
|
+
b: number;
|
|
4
|
+
|
|
5
|
+
constructor(a?: number, b?: number);
|
|
6
|
+
constructor(c: Complex);
|
|
7
|
+
constructor(a:
|
|
8
|
+
{ a: number; b: number } |
|
|
9
|
+
{ a: number; z: number } |
|
|
10
|
+
{ a: number; phi: number } |
|
|
11
|
+
{ b: number; z: number } |
|
|
12
|
+
{ b: number; phi: number } |
|
|
13
|
+
{ z: number; phi: number }
|
|
14
|
+
);
|
|
15
|
+
constructor();
|
|
16
|
+
|
|
17
|
+
isComplex(): true;
|
|
18
|
+
toString(): string;
|
|
19
|
+
|
|
20
|
+
readonly clone: Complex;
|
|
21
|
+
readonly z: number;
|
|
22
|
+
readonly phi: number;
|
|
23
|
+
readonly conj: Complex;
|
|
24
|
+
readonly inv: Complex;
|
|
25
|
+
readonly sqrt: Complex;
|
|
26
|
+
readonly log: Complex;
|
|
27
|
+
readonly cos: Complex;
|
|
28
|
+
readonly sin: Complex;
|
|
29
|
+
readonly tan: Complex;
|
|
30
|
+
expo: [number, number];
|
|
31
|
+
|
|
32
|
+
add(...z: (number | Complex)[]): this;
|
|
33
|
+
sub(...z: (number | Complex)[]): this;
|
|
34
|
+
mul(...z: (number | Complex)[]): this;
|
|
35
|
+
div(...z: (number | Complex)[]): this;
|
|
36
|
+
pow(n: number): this;
|
|
37
|
+
sqrtn(n?: number): Complex;
|
|
38
|
+
|
|
39
|
+
static Zero(): Complex;
|
|
40
|
+
static fromExpo(z: number, phi: number): Complex;
|
|
41
|
+
static add(c: Complex, ...z: (number | Complex)[]): Complex;
|
|
42
|
+
static sub(c: Complex, ...z: (number | Complex)[]): Complex;
|
|
43
|
+
static mul(c: Complex, ...z: (number | Complex)[]): Complex;
|
|
44
|
+
static div(c: Complex, ...z: (number | Complex)[]): Complex;
|
|
45
|
+
static pow(c: Complex, n: number): Complex;
|
|
46
|
+
static xpowZ(x: number): Complex;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare function complex(a: number, b?: number): Complex;
|
|
50
|
+
export declare function complex(a: Complex): Complex;
|
|
51
|
+
export declare function complex(a: object): Complex;
|
|
52
|
+
export declare function complex(): Complex;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from './mapfun'
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Matrix } from "../matrix/index.js";
|
|
2
|
+
import type { Complex } from "../complex/index.js";
|
|
3
|
+
|
|
4
|
+
export type Mappable =
|
|
5
|
+
| number
|
|
6
|
+
| string
|
|
7
|
+
| boolean
|
|
8
|
+
| bigint
|
|
9
|
+
| undefined
|
|
10
|
+
| null
|
|
11
|
+
| Complex
|
|
12
|
+
| Matrix
|
|
13
|
+
| object
|
|
14
|
+
| any[]
|
|
15
|
+
| Set<any>
|
|
16
|
+
| Map<any, any>;
|
|
17
|
+
|
|
18
|
+
export type MapfunResult<F, T> =
|
|
19
|
+
T extends Complex ? ReturnType<F> :
|
|
20
|
+
// T extends Matrix ? Matrix :
|
|
21
|
+
T extends Array<infer U> ? Array<MapfunResult<F, U>> :
|
|
22
|
+
T extends Set<infer U> ? Set<MapfunResult<F, U>> :
|
|
23
|
+
T extends Map<infer K, infer V> ? Map<K, MapfunResult<F, V>> :
|
|
24
|
+
T extends object ? { [K in keyof T]: MapfunResult<F, T[K]> } :
|
|
25
|
+
ReturnType<F>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Helper to unwrap single-element tuple
|
|
29
|
+
*/
|
|
30
|
+
type UnwrapSingle<T extends unknown[]> = T extends [infer U] ? U : { [K in keyof T]: T[K] };
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* mapfun:
|
|
34
|
+
* - if multiple values → return tuple
|
|
35
|
+
* - if single value → return mapped value directly
|
|
36
|
+
*/
|
|
37
|
+
export declare function mapfun<
|
|
38
|
+
F extends (x: any) => any,
|
|
39
|
+
A extends Mappable[]
|
|
40
|
+
>(
|
|
41
|
+
fun: F,
|
|
42
|
+
...values: A
|
|
43
|
+
): UnwrapSingle<{ [K in keyof A]: MapfunResult<F, A[K]> }>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
declare const linear: (t: number) => number;
|
|
2
|
+
|
|
3
|
+
// --- Sin ---
|
|
4
|
+
declare const in_sin: (t: number) => number;
|
|
5
|
+
declare const out_sin: (t: number) => number;
|
|
6
|
+
declare const in_out_sin: (t: number) => number;
|
|
7
|
+
|
|
8
|
+
// --- Quad ---
|
|
9
|
+
declare const in_quad: (t: number) => number;
|
|
10
|
+
declare const out_quad: (t: number) => number;
|
|
11
|
+
declare const in_out_quad: (t: number) => number;
|
|
12
|
+
|
|
13
|
+
// --- Cubic ---
|
|
14
|
+
declare const in_cubic: (t: number) => number;
|
|
15
|
+
declare const out_cubic: (t: number) => number;
|
|
16
|
+
declare const in_out_cubic: (t: number) => number;
|
|
17
|
+
|
|
18
|
+
// --- Quart ---
|
|
19
|
+
declare const in_quart: (t: number) => number;
|
|
20
|
+
declare const out_quart: (t: number) => number;
|
|
21
|
+
declare const in_out_quart: (t: number) => number;
|
|
22
|
+
|
|
23
|
+
// --- Quint ---
|
|
24
|
+
declare const in_quint: (t: number) => number;
|
|
25
|
+
declare const out_quint: (t: number) => number;
|
|
26
|
+
declare const in_out_quint: (t: number) => number;
|
|
27
|
+
|
|
28
|
+
// --- Expo ---
|
|
29
|
+
declare const in_expo: (t: number) => number;
|
|
30
|
+
declare const out_expo: (t: number) => number;
|
|
31
|
+
declare const in_out_expo: (t: number) => number;
|
|
32
|
+
|
|
33
|
+
// --- Circ ---
|
|
34
|
+
declare const in_circ: (t: number) => number;
|
|
35
|
+
declare const out_circ: (t: number) => number;
|
|
36
|
+
declare const in_out_circ: (t: number) => number;
|
|
37
|
+
|
|
38
|
+
// --- Arc ---
|
|
39
|
+
declare const arc: (t: number) => number;
|
|
40
|
+
|
|
41
|
+
// --- Back ---
|
|
42
|
+
declare const back: (t: number, x?: number) => number;
|
|
43
|
+
|
|
44
|
+
// --- Elastic ---
|
|
45
|
+
declare const elastic: (t: number) => number;
|
|
46
|
+
|
|
47
|
+
// --- Back variations ---
|
|
48
|
+
declare const in_back: (t: number, c1?: number, c3?: number) => number;
|
|
49
|
+
declare const out_back: (t: number, c1?: number, c3?: number) => number;
|
|
50
|
+
declare const in_out_back: (t: number, c1?: number, c2?: number) => number;
|
|
51
|
+
|
|
52
|
+
// --- Elastic variations ---
|
|
53
|
+
declare const in_elastic: (t: number, c4?: number) => number;
|
|
54
|
+
declare const out_elastic: (t: number, c4?: number) => number;
|
|
55
|
+
declare const in_out_elastic: (t: number, c5?: number) => number;
|
|
56
|
+
|
|
57
|
+
// --- Bounce ---
|
|
58
|
+
declare const in_bounce: (t: number, n1?: number, d1?: number) => number;
|
|
59
|
+
declare const out_bounce: (t: number, n1?: number, d1?: number) => number;
|
|
60
|
+
declare const in_out_bounce: (t: number, n1?: number, d1?: number) => number;
|
|
61
|
+
|
|
62
|
+
// --- Step & Discret ---
|
|
63
|
+
declare const step: (t: number, steps?: number) => number;
|
|
64
|
+
declare const discret: (t: number, segments?: number) => number;
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
linear,
|
|
68
|
+
in_sin,
|
|
69
|
+
out_sin,
|
|
70
|
+
in_out_sin,
|
|
71
|
+
in_quad,
|
|
72
|
+
out_quad,
|
|
73
|
+
in_out_quad,
|
|
74
|
+
in_cubic,
|
|
75
|
+
out_cubic,
|
|
76
|
+
in_out_cubic,
|
|
77
|
+
in_quart,
|
|
78
|
+
out_quart,
|
|
79
|
+
in_out_quart,
|
|
80
|
+
in_quint,
|
|
81
|
+
out_quint,
|
|
82
|
+
in_out_quint,
|
|
83
|
+
in_expo,
|
|
84
|
+
out_expo,
|
|
85
|
+
in_out_expo,
|
|
86
|
+
in_circ,
|
|
87
|
+
out_circ,
|
|
88
|
+
in_out_circ,
|
|
89
|
+
arc,
|
|
90
|
+
back,
|
|
91
|
+
elastic,
|
|
92
|
+
in_back,
|
|
93
|
+
out_back,
|
|
94
|
+
in_out_back,
|
|
95
|
+
in_elastic,
|
|
96
|
+
out_elastic,
|
|
97
|
+
in_out_elastic,
|
|
98
|
+
in_bounce,
|
|
99
|
+
out_bounce,
|
|
100
|
+
in_out_bounce,
|
|
101
|
+
step,
|
|
102
|
+
discret
|
|
103
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from './ease/index.d.ts'
|