react-native-reanimated 1.13.0 → 1.13.4
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/RNReanimated.podspec +1 -1
- package/android/build.gradle +11 -39
- package/lib/commonjs/core/AnimatedCode.js +1 -1
- package/lib/commonjs/core/AnimatedCode.js.map +1 -1
- package/lib/commonjs/core/AnimatedDebug.js +8 -2
- package/lib/commonjs/core/AnimatedDebug.js.map +1 -1
- package/lib/commonjs/core/AnimatedNode.js +3 -1
- package/lib/commonjs/core/AnimatedNode.js.map +1 -1
- package/lib/commonjs/derived/interpolate.js +2 -0
- package/lib/commonjs/derived/interpolate.js.map +1 -1
- package/lib/module/core/AnimatedCode.js +1 -1
- package/lib/module/core/AnimatedCode.js.map +1 -1
- package/lib/module/core/AnimatedDebug.js +7 -2
- package/lib/module/core/AnimatedDebug.js.map +1 -1
- package/lib/module/core/AnimatedNode.js +2 -1
- package/lib/module/core/AnimatedNode.js.map +1 -1
- package/lib/module/derived/interpolate.js +2 -0
- package/lib/module/derived/interpolate.js.map +1 -1
- package/mock.js +1 -0
- package/package.json +5 -2
- package/react-native-reanimated.d.ts +6 -5
- package/src/core/AnimatedCode.js +1 -1
- package/src/core/AnimatedDebug.js +6 -2
- package/src/core/AnimatedNode.js +4 -1
- package/src/derived/interpolate.js +2 -0
- package/android/README.md +0 -15
- package/lib/typescript/Animated.test.d.ts +0 -1
- package/lib/typescript/ConfigHelper.d.ts +0 -6
- package/lib/typescript/Easing.d.ts +0 -151
- package/lib/typescript/ReanimatedEventEmitter.d.ts +0 -2
- package/lib/typescript/ReanimatedModule.d.ts +0 -2
- package/lib/typescript/ReanimatedModule.macos.d.ts +0 -2
- package/lib/typescript/ReanimatedModule.native.d.ts +0 -2
- package/lib/typescript/ReanimatedModule.windows.d.ts +0 -2
- package/lib/typescript/ReanimatedModuleCompat.d.ts +0 -19
- package/lib/typescript/SpringConfig.d.ts +0 -8
- package/lib/typescript/__mocks__/ReanimatedEventEmitter.d.ts +0 -5
- package/lib/typescript/__mocks__/ReanimatedModule.native.d.ts +0 -8
- package/lib/typescript/animations/Animation.d.ts +0 -22
- package/lib/typescript/animations/SpringUtils.d.ts +0 -29
- package/lib/typescript/animations/backwardCompatibleAnimWrapper.d.ts +0 -5
- package/lib/typescript/animations/decay.d.ts +0 -9
- package/lib/typescript/animations/spring.d.ts +0 -18
- package/lib/typescript/animations/timing.d.ts +0 -1
- package/lib/typescript/base.d.ts +0 -13
- package/lib/typescript/core/AnimatedAlways.d.ts +0 -8
- package/lib/typescript/core/AnimatedBezier.d.ts +0 -6
- package/lib/typescript/core/AnimatedBlock.d.ts +0 -4
- package/lib/typescript/core/AnimatedCall.d.ts +0 -3
- package/lib/typescript/core/AnimatedCallFunc.d.ts +0 -12
- package/lib/typescript/core/AnimatedClock.d.ts +0 -14
- package/lib/typescript/core/AnimatedClockTest.d.ts +0 -7
- package/lib/typescript/core/AnimatedCode.d.ts +0 -6
- package/lib/typescript/core/AnimatedConcat.d.ts +0 -3
- package/lib/typescript/core/AnimatedCond.d.ts +0 -3
- package/lib/typescript/core/AnimatedDebug.d.ts +0 -2
- package/lib/typescript/core/AnimatedFunction.d.ts +0 -3
- package/lib/typescript/core/AnimatedNode.d.ts +0 -38
- package/lib/typescript/core/AnimatedOperator.d.ts +0 -12
- package/lib/typescript/core/AnimatedParam.d.ts +0 -16
- package/lib/typescript/core/AnimatedProps.d.ts +0 -1
- package/lib/typescript/core/AnimatedSet.d.ts +0 -4
- package/lib/typescript/core/AnimatedStartClock.d.ts +0 -7
- package/lib/typescript/core/AnimatedStopClock.d.ts +0 -7
- package/lib/typescript/core/AnimatedStyle.d.ts +0 -12
- package/lib/typescript/core/AnimatedTransform.d.ts +0 -1
- package/lib/typescript/core/AnimatedValue.d.ts +0 -10
- package/lib/typescript/core/Core.test.d.ts +0 -1
- package/lib/typescript/core/InternalAnimatedValue.d.ts +0 -23
- package/lib/typescript/core/__mocks__/AnimatedProps.d.ts +0 -1
- package/lib/typescript/core/createEventObjectProxyPolyfill.d.ts +0 -45
- package/lib/typescript/derived/__mocks__/evaluateOnce.d.ts +0 -1
- package/lib/typescript/derived/acc.d.ts +0 -1
- package/lib/typescript/derived/color.d.ts +0 -2
- package/lib/typescript/derived/diff.d.ts +0 -1
- package/lib/typescript/derived/diffClamp.d.ts +0 -1
- package/lib/typescript/derived/evaluateOnce.d.ts +0 -9
- package/lib/typescript/derived/index.d.ts +0 -8
- package/lib/typescript/derived/interpolate.d.ts +0 -14
- package/lib/typescript/derived/interpolate.test.d.ts +0 -1
- package/lib/typescript/derived/interpolateColors.d.ts +0 -12
- package/lib/typescript/derived/onChange.d.ts +0 -3
- package/lib/typescript/derived/useCode.d.ts +0 -15
- package/lib/typescript/types.d.ts +0 -3
- package/lib/typescript/useValue.d.ts +0 -3
- package/lib/typescript/val.d.ts +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import invariant from 'fbjs/lib/invariant';
|
|
2
|
+
import { NativeModules } from 'react-native';
|
|
2
3
|
import { val } from '../val';
|
|
3
4
|
import { adapt, createAnimatedBlock as block } from './AnimatedBlock';
|
|
4
5
|
import { createAnimatedCall as call } from './AnimatedCall';
|
|
@@ -35,12 +36,15 @@ class AnimatedDebug extends AnimatedNode {
|
|
|
35
36
|
|
|
36
37
|
export function createAnimatedDebug(message, value) {
|
|
37
38
|
if (__DEV__) {
|
|
38
|
-
const runningInRemoteDebugger = typeof atob !== 'undefined';
|
|
39
39
|
// hack to detect if app is running in remote debugger
|
|
40
40
|
// https://stackoverflow.com/questions/39022216
|
|
41
|
+
const runningInRemoteDebugger = typeof atob !== 'undefined';
|
|
41
42
|
|
|
43
|
+
// read the executionEnvironment off of expo-constants without explicitly
|
|
44
|
+
// depending on the package
|
|
42
45
|
const runningInExpoShell =
|
|
43
|
-
|
|
46
|
+
NativeModules.NativeUnimoduleProxy?.modulesConstants?.ExponentConstants
|
|
47
|
+
?.executionEnvironment === 'storeClient';
|
|
44
48
|
|
|
45
49
|
if (runningInRemoteDebugger || runningInExpoShell) {
|
|
46
50
|
// When running in expo or remote debugger we use JS console.log to output variables
|
package/src/core/AnimatedNode.js
CHANGED
|
@@ -69,6 +69,9 @@ function runPropUpdates() {
|
|
|
69
69
|
loopID += 1;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
const scheduleUpdates =
|
|
73
|
+
Platform.OS === 'web' ? requestAnimationFrame : setImmediate;
|
|
74
|
+
|
|
72
75
|
export default class AnimatedNode {
|
|
73
76
|
|
|
74
77
|
__nodeID;
|
|
@@ -135,7 +138,7 @@ export default class AnimatedNode {
|
|
|
135
138
|
__markUpdated() {
|
|
136
139
|
UPDATED_NODES.push(this);
|
|
137
140
|
if (!propUpdatesEnqueued) {
|
|
138
|
-
propUpdatesEnqueued =
|
|
141
|
+
propUpdatesEnqueued = scheduleUpdates(runPropUpdates);
|
|
139
142
|
}
|
|
140
143
|
}
|
|
141
144
|
|
|
@@ -98,6 +98,8 @@ function convertToRadians(outputRange) {
|
|
|
98
98
|
for (const [i, value] of outputRange.entries()) {
|
|
99
99
|
if (typeof value === 'string' && value.endsWith('deg')) {
|
|
100
100
|
outputRange[i] = parseFloat(value) * (Math.PI / 180);
|
|
101
|
+
} else if (typeof value === 'string' && value.endsWith('rad')) {
|
|
102
|
+
outputRange[i] = parseFloat(value);
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
}
|
package/android/README.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
README
|
|
3
|
-
======
|
|
4
|
-
|
|
5
|
-
If you want to publish the lib as a maven dependency, follow these steps before publishing a new version to npm:
|
|
6
|
-
|
|
7
|
-
1. Be sure to have the Android [SDK](https://developer.android.com/studio/index.html) and [NDK](https://developer.android.com/ndk/guides/index.html) installed
|
|
8
|
-
2. Be sure to have a `local.properties` file in this folder that points to the Android SDK and NDK
|
|
9
|
-
```
|
|
10
|
-
ndk.dir=/Users/{username}/Library/Android/sdk/ndk-bundle
|
|
11
|
-
sdk.dir=/Users/{username}/Library/Android/sdk
|
|
12
|
-
```
|
|
13
|
-
3. Delete the `maven` folder
|
|
14
|
-
4. Run `sudo ./gradlew installArchives`
|
|
15
|
-
5. Verify that latest set of generated files is in the maven folder with the correct version number
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { Adaptable } from './types';
|
|
2
|
-
import AnimatedNode from './core/AnimatedNode';
|
|
3
|
-
/**
|
|
4
|
-
* The `Easing` module implements common easing functions. This module is used
|
|
5
|
-
* by [Animate.timing()](docs/animate.html#timing) to convey physically
|
|
6
|
-
* believable motion in animations.
|
|
7
|
-
*
|
|
8
|
-
* You can find a visualization of some common easing functions at
|
|
9
|
-
* http://easings.net/
|
|
10
|
-
*
|
|
11
|
-
* ### Predefined animations
|
|
12
|
-
*
|
|
13
|
-
* The `Easing` module provides several predefined animations through the
|
|
14
|
-
* following methods:
|
|
15
|
-
*
|
|
16
|
-
* - [`back`](docs/easing.html#back) provides a simple animation where the
|
|
17
|
-
* object goes slightly back before moving forward
|
|
18
|
-
* - [`bounce`](docs/easing.html#bounce) provides a bouncing animation
|
|
19
|
-
* - [`ease`](docs/easing.html#ease) provides a simple inertial animation
|
|
20
|
-
* - [`elastic`](docs/easing.html#elastic) provides a simple spring interaction
|
|
21
|
-
*
|
|
22
|
-
* ### Standard functions
|
|
23
|
-
*
|
|
24
|
-
* Three standard easing functions are provided:
|
|
25
|
-
*
|
|
26
|
-
* - [`linear`](docs/easing.html#linear)
|
|
27
|
-
* - [`quad`](docs/easing.html#quad)
|
|
28
|
-
* - [`cubic`](docs/easing.html#cubic)
|
|
29
|
-
*
|
|
30
|
-
* The [`poly`](docs/easing.html#poly) function can be used to implement
|
|
31
|
-
* quartic, quintic, and other higher power functions.
|
|
32
|
-
*
|
|
33
|
-
* ### Additional functions
|
|
34
|
-
*
|
|
35
|
-
* Additional mathematical functions are provided by the following methods:
|
|
36
|
-
*
|
|
37
|
-
* - [`bezier`](docs/easing.html#bezier) provides a cubic bezier curve
|
|
38
|
-
* - [`circle`](docs/easing.html#circle) provides a circular function
|
|
39
|
-
* - [`sin`](docs/easing.html#sin) provides a sinusoidal function
|
|
40
|
-
* - [`exp`](docs/easing.html#exp) provides an exponential function
|
|
41
|
-
*
|
|
42
|
-
* The following helpers are used to modify other easing functions.
|
|
43
|
-
*
|
|
44
|
-
* - [`in`](docs/easing.html#in) runs an easing function forwards
|
|
45
|
-
* - [`inOut`](docs/easing.html#inout) makes any easing function symmetrical
|
|
46
|
-
* - [`out`](docs/easing.html#out) runs an easing function backwards
|
|
47
|
-
*/
|
|
48
|
-
export declare type EasingFunction = (value: Adaptable<number>) => AnimatedNode<number>;
|
|
49
|
-
export default class Easing {
|
|
50
|
-
/**
|
|
51
|
-
* A linear function, `f(t) = t`. Position correlates to elapsed time one to
|
|
52
|
-
* one.
|
|
53
|
-
*
|
|
54
|
-
* http://cubic-bezier.com/#0,0,1,1
|
|
55
|
-
*/
|
|
56
|
-
static linear: (t: any) => EasingFunction;
|
|
57
|
-
/**
|
|
58
|
-
* A simple inertial interaction, similar to an object slowly accelerating to
|
|
59
|
-
* speed.
|
|
60
|
-
*
|
|
61
|
-
* http://cubic-bezier.com/#.42,0,1,1
|
|
62
|
-
*/
|
|
63
|
-
static ease: EasingFunction;
|
|
64
|
-
/**
|
|
65
|
-
* A quadratic function, `f(t) = t * t`. Position equals the square of elapsed
|
|
66
|
-
* time.
|
|
67
|
-
*
|
|
68
|
-
* http://easings.net/#easeInQuad
|
|
69
|
-
*/
|
|
70
|
-
static quad: EasingFunction;
|
|
71
|
-
/**
|
|
72
|
-
* A cubic function, `f(t) = t * t * t`. Position equals the cube of elapsed
|
|
73
|
-
* time.
|
|
74
|
-
*
|
|
75
|
-
* http://easings.net/#easeInCubic
|
|
76
|
-
*/
|
|
77
|
-
static cubic: EasingFunction;
|
|
78
|
-
/**
|
|
79
|
-
* A power function. Position is equal to the Nth power of elapsed time.
|
|
80
|
-
*
|
|
81
|
-
* n = 4: http://easings.net/#easeInQuart
|
|
82
|
-
* n = 5: http://easings.net/#easeInQuint
|
|
83
|
-
*/
|
|
84
|
-
static poly(n: Adaptable<number>): EasingFunction;
|
|
85
|
-
/**
|
|
86
|
-
* A sinusoidal function.
|
|
87
|
-
*
|
|
88
|
-
* http://easings.net/#easeInSine
|
|
89
|
-
*/
|
|
90
|
-
static sin: EasingFunction;
|
|
91
|
-
/**
|
|
92
|
-
* A circular function.
|
|
93
|
-
*
|
|
94
|
-
* http://easings.net/#easeInCirc
|
|
95
|
-
*/
|
|
96
|
-
static circle: EasingFunction;
|
|
97
|
-
/**
|
|
98
|
-
* An exponential function.
|
|
99
|
-
*
|
|
100
|
-
* http://easings.net/#easeInExpo
|
|
101
|
-
*/
|
|
102
|
-
static exp: EasingFunction;
|
|
103
|
-
/**
|
|
104
|
-
* A simple elastic interaction, similar to a spring oscillating back and
|
|
105
|
-
* forth.
|
|
106
|
-
*
|
|
107
|
-
* Default bounciness is 1, which overshoots a little bit once. 0 bounciness
|
|
108
|
-
* doesn't overshoot at all, and bounciness of N > 1 will overshoot about N
|
|
109
|
-
* times.
|
|
110
|
-
*
|
|
111
|
-
* http://easings.net/#easeInElastic
|
|
112
|
-
*/
|
|
113
|
-
static elastic(bounciness?: number): EasingFunction;
|
|
114
|
-
/**
|
|
115
|
-
* Use with `Animated.parallel()` to create a simple effect where the object
|
|
116
|
-
* animates back slightly as the animation starts.
|
|
117
|
-
*
|
|
118
|
-
* Wolfram Plot:
|
|
119
|
-
*
|
|
120
|
-
* - http://tiny.cc/back_default (s = 1.70158, default)
|
|
121
|
-
*/
|
|
122
|
-
static back(s?: number): EasingFunction;
|
|
123
|
-
/**
|
|
124
|
-
* Provides a simple bouncing effect.
|
|
125
|
-
*
|
|
126
|
-
* http://easings.net/#easeInBounce
|
|
127
|
-
*/
|
|
128
|
-
static bounce: EasingFunction;
|
|
129
|
-
/**
|
|
130
|
-
* Provides a cubic bezier curve, equivalent to CSS Transitions'
|
|
131
|
-
* `transition-timing-function`.
|
|
132
|
-
*
|
|
133
|
-
* A useful tool to visualize cubic bezier curves can be found at
|
|
134
|
-
* http://cubic-bezier.com/
|
|
135
|
-
*/
|
|
136
|
-
static bezier(x1: number, y1: number, x2: number, y2: number): EasingFunction;
|
|
137
|
-
/**
|
|
138
|
-
* Runs an easing function forwards.
|
|
139
|
-
*/
|
|
140
|
-
static in(easing: EasingFunction): EasingFunction;
|
|
141
|
-
/**
|
|
142
|
-
* Runs an easing function backwards.
|
|
143
|
-
*/
|
|
144
|
-
static out(easing: EasingFunction): EasingFunction;
|
|
145
|
-
/**
|
|
146
|
-
* Makes any easing function symmetrical. The easing function will run
|
|
147
|
-
* forwards for half of the duration, then backwards for the rest of the
|
|
148
|
-
* duration.
|
|
149
|
-
*/
|
|
150
|
-
static inOut(easing: EasingFunction): EasingFunction;
|
|
151
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export function disconnectNodeFromView(nodeID: any, viewTag: any): Promise<void>;
|
|
3
|
-
export function disconnectNodeFromView(nodeID: any, viewTag: any): Promise<void>;
|
|
4
|
-
export function attachEvent(viewTag: any, eventName: any, nodeID: any): Promise<void>;
|
|
5
|
-
export function attachEvent(viewTag: any, eventName: any, nodeID: any): Promise<void>;
|
|
6
|
-
export function detachEvent(viewTag: any, eventName: any, nodeID: any): Promise<void>;
|
|
7
|
-
export function detachEvent(viewTag: any, eventName: any, nodeID: any): Promise<void>;
|
|
8
|
-
export function createNode(nodeID: any, config: any): Promise<void>;
|
|
9
|
-
export function createNode(nodeID: any, config: any): Promise<void>;
|
|
10
|
-
export function dropNode(nodeID: any): Promise<void>;
|
|
11
|
-
export function dropNode(nodeID: any): Promise<void>;
|
|
12
|
-
export function configureProps(nativePropsArray: any, uiPropsArray: any): Promise<void>;
|
|
13
|
-
export function configureProps(nativePropsArray: any, uiPropsArray: any): Promise<void>;
|
|
14
|
-
export function disconnectNodes(parentID: any, childID: any): Promise<void>;
|
|
15
|
-
export function disconnectNodes(parentID: any, childID: any): Promise<void>;
|
|
16
|
-
export function animateNextTransition(): Promise<void>;
|
|
17
|
-
export function animateNextTransition(): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default Animation;
|
|
2
|
-
declare class Animation {
|
|
3
|
-
static springDefaultState(): {
|
|
4
|
-
position: AnimatedValue<0>;
|
|
5
|
-
finished: AnimatedValue<0>;
|
|
6
|
-
velocity: AnimatedValue<0>;
|
|
7
|
-
time: AnimatedValue<0>;
|
|
8
|
-
};
|
|
9
|
-
static decayDefaultState(): {
|
|
10
|
-
position: AnimatedValue<0>;
|
|
11
|
-
finished: AnimatedValue<0>;
|
|
12
|
-
velocity: AnimatedValue<0>;
|
|
13
|
-
time: AnimatedValue<0>;
|
|
14
|
-
};
|
|
15
|
-
static timingDefaultState(): {
|
|
16
|
-
position: AnimatedValue<0>;
|
|
17
|
-
finished: AnimatedValue<0>;
|
|
18
|
-
time: AnimatedValue<0>;
|
|
19
|
-
frameTime: AnimatedValue<0>;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
import AnimatedValue from "../core/InternalAnimatedValue";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { SpringConfig } from './spring';
|
|
2
|
-
import { Adaptable } from '../types';
|
|
3
|
-
interface SpringConfigWithOrigamiTensionAndFriction {
|
|
4
|
-
tension: Adaptable<number>;
|
|
5
|
-
mass: Adaptable<number>;
|
|
6
|
-
friction: Adaptable<number>;
|
|
7
|
-
overshootClamping: Adaptable<number> | boolean;
|
|
8
|
-
restSpeedThreshold: Adaptable<number>;
|
|
9
|
-
restDisplacementThreshold: Adaptable<number>;
|
|
10
|
-
toValue: Adaptable<number>;
|
|
11
|
-
}
|
|
12
|
-
declare function makeConfigFromOrigamiTensionAndFriction(prevConfig: SpringConfigWithOrigamiTensionAndFriction): SpringConfig;
|
|
13
|
-
interface SpringConfigWithBouncinessAndSpeed {
|
|
14
|
-
bounciness: Adaptable<number>;
|
|
15
|
-
mass: Adaptable<number>;
|
|
16
|
-
speed: Adaptable<number>;
|
|
17
|
-
overshootClamping: Adaptable<number> | boolean;
|
|
18
|
-
restSpeedThreshold: Adaptable<number>;
|
|
19
|
-
restDisplacementThreshold: Adaptable<number>;
|
|
20
|
-
toValue: Adaptable<number>;
|
|
21
|
-
}
|
|
22
|
-
declare function makeConfigFromBouncinessAndSpeed(prevConfig: SpringConfigWithBouncinessAndSpeed): SpringConfig;
|
|
23
|
-
declare function makeDefaultConfig(): SpringConfig;
|
|
24
|
-
declare const _default: {
|
|
25
|
-
makeDefaultConfig: typeof makeDefaultConfig;
|
|
26
|
-
makeConfigFromBouncinessAndSpeed: typeof makeConfigFromBouncinessAndSpeed;
|
|
27
|
-
makeConfigFromOrigamiTensionAndFriction: typeof makeConfigFromOrigamiTensionAndFriction;
|
|
28
|
-
};
|
|
29
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Depending on the arguments list we either return animation node or return an
|
|
3
|
-
* animation object that is compatible with the original Animated API
|
|
4
|
-
*/
|
|
5
|
-
export default function backwardsCompatibleAnimWrapper(node: any, animationStateDefaults: any): (clock: any, state: any, config: any) => any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare function _default(clock: any, { time, velocity, position, finished }: {
|
|
2
|
-
time: any;
|
|
3
|
-
velocity: any;
|
|
4
|
-
position: any;
|
|
5
|
-
finished: any;
|
|
6
|
-
}, { deceleration }: {
|
|
7
|
-
deceleration: any;
|
|
8
|
-
}): import("../core/AnimatedNode").default<number>;
|
|
9
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Adaptable } from '../types';
|
|
2
|
-
export interface SpringConfig {
|
|
3
|
-
damping: Adaptable<number>;
|
|
4
|
-
mass: Adaptable<number>;
|
|
5
|
-
stiffness: Adaptable<number>;
|
|
6
|
-
overshootClamping: Adaptable<number> | boolean;
|
|
7
|
-
restSpeedThreshold: Adaptable<number>;
|
|
8
|
-
restDisplacementThreshold: Adaptable<number>;
|
|
9
|
-
toValue: Adaptable<number>;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: (clock: any, { finished, velocity, position, time, prevPosition, }: {
|
|
12
|
-
finished: any;
|
|
13
|
-
velocity: any;
|
|
14
|
-
position: any;
|
|
15
|
-
time: any;
|
|
16
|
-
prevPosition: any;
|
|
17
|
-
}, { toValue, damping, mass, stiffness, overshootClamping, restDisplacementThreshold, restSpeedThreshold, }: SpringConfig) => import("../core/AnimatedNode").default<number>;
|
|
18
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function _default(clock: any, state: any, config: any): import("../core/AnimatedNode").default<number>;
|
package/lib/typescript/base.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { createAnimatedCond as cond } from './core/AnimatedCond';
|
|
2
|
-
export { createAnimatedSet as set } from './core/AnimatedSet';
|
|
3
|
-
export { createAnimatedStartClock as startClock } from './core/AnimatedStartClock';
|
|
4
|
-
export { createAnimatedStopClock as stopClock } from './core/AnimatedStopClock';
|
|
5
|
-
export { createAnimatedClockTest as clockRunning } from './core/AnimatedClockTest';
|
|
6
|
-
export { createAnimatedDebug as debug } from './core/AnimatedDebug';
|
|
7
|
-
export { createAnimatedCall as call } from './core/AnimatedCall';
|
|
8
|
-
export { createAnimatedEvent as event } from './core/AnimatedEvent';
|
|
9
|
-
export { createAnimatedAlways as always } from './core/AnimatedAlways';
|
|
10
|
-
export { createAnimatedConcat as concat } from './core/AnimatedConcat';
|
|
11
|
-
export { createAnimatedBlock as block, adapt } from './core/AnimatedBlock';
|
|
12
|
-
export { createAnimatedFunction as proc } from './core/AnimatedFunction';
|
|
13
|
-
export * from './operators';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import AnimatedNode from './AnimatedNode';
|
|
2
|
-
import { Value, Adaptable } from '../types';
|
|
3
|
-
export declare function createAnimatedBlock<T1 extends Value = number, T2 extends Value = any>(items: ReadonlyArray<Adaptable<T2>>): AnimatedNode<T1>;
|
|
4
|
-
export declare function adapt(v: any): any;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export function createAnimatedCallFunc(proc: any, args: any, params: any): AnimatedCallFunc;
|
|
2
|
-
declare class AnimatedCallFunc extends AnimatedNode<any> {
|
|
3
|
-
constructor(what: any, args: any, params: any);
|
|
4
|
-
_previousCallID: any;
|
|
5
|
-
_what: any;
|
|
6
|
-
_args: any;
|
|
7
|
-
_params: any;
|
|
8
|
-
beginContext(): void;
|
|
9
|
-
endContext(): void;
|
|
10
|
-
}
|
|
11
|
-
import AnimatedNode from "./AnimatedNode";
|
|
12
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import AnimatedNode from './AnimatedNode';
|
|
2
|
-
declare class AnimatedClock extends AnimatedNode<number> {
|
|
3
|
-
_started: any;
|
|
4
|
-
_attached: any;
|
|
5
|
-
constructor();
|
|
6
|
-
toString(): string;
|
|
7
|
-
__onEvaluate(): any;
|
|
8
|
-
__attach(): void;
|
|
9
|
-
__detach(): void;
|
|
10
|
-
start(): void;
|
|
11
|
-
stop(): void;
|
|
12
|
-
isStarted(): any;
|
|
13
|
-
}
|
|
14
|
-
export default AnimatedClock;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import AnimatedNode from './AnimatedNode';
|
|
2
|
-
import { Value, Adaptable } from '../types';
|
|
3
|
-
export declare function createAnimatedCond<T1 extends Value = number, T2 extends Value = number>(cond: Adaptable<number>, ifBlock: Adaptable<T1>, elseBlock?: Adaptable<T2>): AnimatedNode<T1 | T2>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Value } from '../types';
|
|
2
|
-
export declare function getCallID(): string;
|
|
3
|
-
export declare function setCallID(nextCallID: any): void;
|
|
4
|
-
interface AnimatedNode<T extends Value> {
|
|
5
|
-
__nodeID: any;
|
|
6
|
-
__nodeConfig: any;
|
|
7
|
-
__initialized: any;
|
|
8
|
-
__inputNodes: any;
|
|
9
|
-
}
|
|
10
|
-
declare abstract class AnimatedNode<T> {
|
|
11
|
-
__nodeID: any;
|
|
12
|
-
__lastLoopID: {
|
|
13
|
-
'': number;
|
|
14
|
-
};
|
|
15
|
-
__memoizedValue: {
|
|
16
|
-
'': any;
|
|
17
|
-
};
|
|
18
|
-
__children: any[];
|
|
19
|
-
constructor(nodeConfig: object, inputNodes?: ReadonlyArray<AnimatedNode<any>>);
|
|
20
|
-
toString(): string;
|
|
21
|
-
__attach(): void;
|
|
22
|
-
__detach(): void;
|
|
23
|
-
__getValue(): any;
|
|
24
|
-
__forceUpdateCache(newValue: any): void;
|
|
25
|
-
__dangerouslyRescheduleEvaluate(): void;
|
|
26
|
-
__markUpdated(): void;
|
|
27
|
-
__nativeInitialize(): void;
|
|
28
|
-
__nativeTearDown(): void;
|
|
29
|
-
isNativelyInitialized(): any;
|
|
30
|
-
abstract __onEvaluate(): T;
|
|
31
|
-
__getProps(): any;
|
|
32
|
-
__getChildren(): any[];
|
|
33
|
-
__addChild(child: any): void;
|
|
34
|
-
__removeChild(child: any): void;
|
|
35
|
-
_connectAnimatedView(nativeViewTag: any): void;
|
|
36
|
-
_disconnectAnimatedView(nativeViewTag: any): void;
|
|
37
|
-
}
|
|
38
|
-
export default AnimatedNode;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import AnimatedNode from './AnimatedNode';
|
|
2
|
-
import { Value } from '../types';
|
|
3
|
-
declare class AnimatedOperator<T extends Value> extends AnimatedNode<T> {
|
|
4
|
-
_input: any;
|
|
5
|
-
_op: any;
|
|
6
|
-
_operation: any;
|
|
7
|
-
constructor(operator: any, input: any);
|
|
8
|
-
toString(): string;
|
|
9
|
-
__onEvaluate(): any;
|
|
10
|
-
}
|
|
11
|
-
export declare function createAnimatedOperator(name: any): (...args: any[]) => AnimatedOperator<Value>;
|
|
12
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import AnimatedNode from './AnimatedNode';
|
|
2
|
-
import { Value } from '../types';
|
|
3
|
-
export declare class AnimatedParam<T extends Value | undefined> extends AnimatedNode<T> {
|
|
4
|
-
argsStack: any[];
|
|
5
|
-
_prevCallID: any;
|
|
6
|
-
constructor();
|
|
7
|
-
beginContext(ref: any, prevCallID: any): void;
|
|
8
|
-
endContext(): void;
|
|
9
|
-
_getTopNode(): any;
|
|
10
|
-
setValue(value: any): void;
|
|
11
|
-
__onEvaluate(): any;
|
|
12
|
-
start(): void;
|
|
13
|
-
stop(): void;
|
|
14
|
-
isRunning(): any;
|
|
15
|
-
}
|
|
16
|
-
export declare function createAnimatedParam(): AnimatedParam<Value>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function createOrReusePropsNode(props: any, callback: any, oldNode: any): any;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export function createOrReuseStyleNode(style: any, oldNode: any): any;
|
|
2
|
-
/**
|
|
3
|
-
* AnimatedStyle should never be directly instantiated, use createOrReuseStyleNode
|
|
4
|
-
* in order to make a new instance of this node.
|
|
5
|
-
*/
|
|
6
|
-
export default class AnimatedStyle extends AnimatedNode<any> {
|
|
7
|
-
constructor(style: any, config: any);
|
|
8
|
-
_config: any;
|
|
9
|
-
_style: any;
|
|
10
|
-
_walkStyleAndGetAnimatedValues(style: any): {};
|
|
11
|
-
}
|
|
12
|
-
import AnimatedNode from "./AnimatedNode";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function createOrReuseTransformNode(transform: any, oldNode: any): any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InterpolationConfig } from '../derived/interpolate';
|
|
2
|
-
import InternalAnimatedValue from './InternalAnimatedValue';
|
|
3
|
-
import type { Value, Adaptable } from '../types';
|
|
4
|
-
import type AnimatedNode from './AnimatedNode';
|
|
5
|
-
declare class AnimatedValue<T extends Value> extends InternalAnimatedValue<T> {
|
|
6
|
-
setValue(value: Adaptable<T>): void;
|
|
7
|
-
toString(): string;
|
|
8
|
-
interpolate(config: InterpolationConfig): AnimatedNode<number>;
|
|
9
|
-
}
|
|
10
|
-
export default AnimatedValue;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|