react-native-smooth-clip-view 0.3.0 → 0.4.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/README.md +132 -388
- package/android/build.gradle +3 -3
- package/android/proguard-rules.pro +2 -2
- package/android/src/main/cpp/SmoothClipAndroid.h +9 -12
- package/android/src/main/cpp/SmoothClipBindings.cpp +300 -704
- package/android/src/main/cpp/SmoothClipRegistry.cpp +348 -594
- package/android/src/main/java/com/smoothclipview/ClipGeometryNormalizer.kt +36 -227
- package/android/src/main/java/com/smoothclipview/SmoothClipBindings.kt +16 -19
- package/android/src/main/java/com/smoothclipview/SmoothClipModule.kt +36 -294
- package/android/src/main/java/com/smoothclipview/SmoothClipView.kt +344 -488
- package/android/src/main/java/com/smoothclipview/SmoothClipViewManager.kt +75 -77
- package/cpp/SmoothClipAnimationCurve.h +237 -346
- package/cpp/SmoothClipRegistry.h +24 -52
- package/cpp/SmoothClipSharedGeometry.h +64 -94
- package/cpp/SmoothClipVelocityTracker.h +5 -5
- package/ios/SmoothClipGeometry.h +23 -34
- package/ios/SmoothClipRegistry.mm +206 -711
- package/ios/SmoothClipTurboModule.cpp +217 -715
- package/ios/SmoothClipTurboModule.h +54 -297
- package/ios/SmoothClipView.mm +599 -505
- package/ios/SmoothClipViewRegistry.h +2 -7
- package/lib/module/NativeSmoothClipModule.js.map +1 -1
- package/lib/module/SmoothClipView.ios.js +84 -17
- package/lib/module/SmoothClipView.ios.js.map +1 -1
- package/lib/module/SmoothClipView.js +1 -1
- package/lib/module/SmoothClipView.js.map +1 -1
- package/lib/module/SmoothClipViewNativeComponent.ts +20 -26
- package/lib/module/capabilities.native.js +1 -19
- package/lib/module/capabilities.native.js.map +1 -1
- package/lib/module/capabilityTypes.js +0 -9
- package/lib/module/capabilityTypes.js.map +1 -1
- package/lib/module/controllerInternals.js +28 -0
- package/lib/module/controllerInternals.js.map +1 -0
- package/lib/module/controllerLifecycle.js +9 -0
- package/lib/module/controllerLifecycle.js.map +1 -0
- package/lib/module/controllerTypes.js +4 -0
- package/lib/module/controllerTypes.js.map +1 -0
- package/lib/module/controllers.android.js +4 -0
- package/lib/module/controllers.android.js.map +1 -0
- package/lib/module/controllers.ios.js +4 -0
- package/lib/module/controllers.ios.js.map +1 -0
- package/lib/module/controllers.js +4 -0
- package/lib/module/controllers.js.map +1 -0
- package/lib/module/controllers.native.js +89 -0
- package/lib/module/controllers.native.js.map +1 -0
- package/lib/module/geometry.js +71 -51
- package/lib/module/geometry.js.map +1 -1
- package/lib/module/groupTypes.js +4 -0
- package/lib/module/{groupDriverTypes.js.map → groupTypes.js.map} +1 -1
- package/lib/module/groups.android.js +4 -0
- package/lib/module/groups.android.js.map +1 -0
- package/lib/module/groups.ios.js +4 -0
- package/lib/module/groups.ios.js.map +1 -0
- package/lib/module/groups.js +4 -0
- package/lib/module/groups.js.map +1 -0
- package/lib/module/groups.native.js +399 -0
- package/lib/module/groups.native.js.map +1 -0
- package/lib/module/ids.js +8 -0
- package/lib/module/ids.js.map +1 -0
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/nativeCompletion.js +37 -16
- package/lib/module/nativeCompletion.js.map +1 -1
- package/lib/module/presentationCodec.js +81 -0
- package/lib/module/presentationCodec.js.map +1 -0
- package/lib/typescript/src/NativeSmoothClipModule.d.ts +14 -23
- package/lib/typescript/src/NativeSmoothClipModule.d.ts.map +1 -1
- package/lib/typescript/src/SmoothClipView.d.ts +1 -1
- package/lib/typescript/src/SmoothClipView.d.ts.map +1 -1
- package/lib/typescript/src/SmoothClipView.ios.d.ts +18 -14
- package/lib/typescript/src/SmoothClipView.ios.d.ts.map +1 -1
- package/lib/typescript/src/SmoothClipViewNativeComponent.d.ts +10 -5
- package/lib/typescript/src/SmoothClipViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/capabilities.native.d.ts +1 -1
- package/lib/typescript/src/capabilities.native.d.ts.map +1 -1
- package/lib/typescript/src/capabilityTypes.d.ts +0 -6
- package/lib/typescript/src/capabilityTypes.d.ts.map +1 -1
- package/lib/typescript/src/controllerInternals.d.ts +14 -0
- package/lib/typescript/src/controllerInternals.d.ts.map +1 -0
- package/lib/typescript/src/controllerLifecycle.d.ts +3 -0
- package/lib/typescript/src/controllerLifecycle.d.ts.map +1 -0
- package/lib/typescript/src/controllerTypes.d.ts +62 -0
- package/lib/typescript/src/controllerTypes.d.ts.map +1 -0
- package/lib/typescript/src/controllers.android.d.ts +2 -0
- package/lib/typescript/src/controllers.android.d.ts.map +1 -0
- package/lib/typescript/src/controllers.d.ts +2 -0
- package/lib/typescript/src/controllers.d.ts.map +1 -0
- package/lib/typescript/src/controllers.ios.d.ts +2 -0
- package/lib/typescript/src/controllers.ios.d.ts.map +1 -0
- package/lib/typescript/src/controllers.native.d.ts +3 -0
- package/lib/typescript/src/controllers.native.d.ts.map +1 -0
- package/lib/typescript/src/geometry.d.ts +22 -12
- package/lib/typescript/src/geometry.d.ts.map +1 -1
- package/lib/typescript/src/groupTypes.d.ts +31 -0
- package/lib/typescript/src/groupTypes.d.ts.map +1 -0
- package/lib/typescript/src/groups.android.d.ts +2 -0
- package/lib/typescript/src/groups.android.d.ts.map +1 -0
- package/lib/typescript/src/groups.d.ts +2 -0
- package/lib/typescript/src/groups.d.ts.map +1 -0
- package/lib/typescript/src/groups.ios.d.ts +2 -0
- package/lib/typescript/src/groups.ios.d.ts.map +1 -0
- package/lib/typescript/src/groups.native.d.ts +3 -0
- package/lib/typescript/src/groups.native.d.ts.map +1 -0
- package/lib/typescript/src/ids.d.ts +2 -0
- package/lib/typescript/src/ids.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +6 -6
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/nativeCompletion.d.ts +16 -6
- package/lib/typescript/src/nativeCompletion.d.ts.map +1 -1
- package/lib/typescript/src/presentationCodec.d.ts +10 -0
- package/lib/typescript/src/presentationCodec.d.ts.map +1 -0
- package/package.json +8 -3
- package/src/NativeSmoothClipModule.ts +41 -292
- package/src/SmoothClipView.ios.tsx +130 -23
- package/src/SmoothClipView.tsx +5 -1
- package/src/SmoothClipViewNativeComponent.ts +20 -26
- package/src/capabilities.native.ts +2 -52
- package/src/capabilityTypes.ts +0 -14
- package/src/controllerInternals.ts +52 -0
- package/src/controllerLifecycle.ts +6 -0
- package/src/controllerTypes.ts +87 -0
- package/src/controllers.android.ts +1 -0
- package/src/controllers.ios.ts +1 -0
- package/src/controllers.native.ts +104 -0
- package/src/controllers.ts +1 -0
- package/src/geometry.ts +118 -74
- package/src/groupTypes.ts +53 -0
- package/src/groups.android.ts +1 -0
- package/src/groups.ios.ts +1 -0
- package/src/groups.native.ts +604 -0
- package/src/groups.ts +1 -0
- package/src/ids.ts +6 -0
- package/src/index.ts +20 -28
- package/src/nativeCompletion.ts +67 -32
- package/src/presentationCodec.ts +134 -0
- package/lib/module/driverState.js +0 -82
- package/lib/module/driverState.js.map +0 -1
- package/lib/module/driverTypes.js +0 -4
- package/lib/module/driverTypes.js.map +0 -1
- package/lib/module/drivers.android.js +0 -6
- package/lib/module/drivers.android.js.map +0 -1
- package/lib/module/drivers.ios.js +0 -6
- package/lib/module/drivers.ios.js.map +0 -1
- package/lib/module/drivers.js +0 -4
- package/lib/module/drivers.js.map +0 -1
- package/lib/module/drivers.native.js +0 -756
- package/lib/module/drivers.native.js.map +0 -1
- package/lib/module/groupDriverTypes.js +0 -4
- package/lib/module/groupDrivers.android.js +0 -4
- package/lib/module/groupDrivers.android.js.map +0 -1
- package/lib/module/groupDrivers.ios.js +0 -4
- package/lib/module/groupDrivers.ios.js.map +0 -1
- package/lib/module/groupDrivers.js +0 -4
- package/lib/module/groupDrivers.js.map +0 -1
- package/lib/module/groupDrivers.native.js +0 -799
- package/lib/module/groupDrivers.native.js.map +0 -1
- package/lib/module/presentationProtocol.js +0 -15
- package/lib/module/presentationProtocol.js.map +0 -1
- package/lib/module/reactRequests.js +0 -56
- package/lib/module/reactRequests.js.map +0 -1
- package/lib/typescript/src/driverState.d.ts +0 -26
- package/lib/typescript/src/driverState.d.ts.map +0 -1
- package/lib/typescript/src/driverTypes.d.ts +0 -121
- package/lib/typescript/src/driverTypes.d.ts.map +0 -1
- package/lib/typescript/src/drivers.android.d.ts +0 -3
- package/lib/typescript/src/drivers.android.d.ts.map +0 -1
- package/lib/typescript/src/drivers.d.ts +0 -3
- package/lib/typescript/src/drivers.d.ts.map +0 -1
- package/lib/typescript/src/drivers.ios.d.ts +0 -3
- package/lib/typescript/src/drivers.ios.d.ts.map +0 -1
- package/lib/typescript/src/drivers.native.d.ts +0 -5
- package/lib/typescript/src/drivers.native.d.ts.map +0 -1
- package/lib/typescript/src/groupDriverTypes.d.ts +0 -66
- package/lib/typescript/src/groupDriverTypes.d.ts.map +0 -1
- package/lib/typescript/src/groupDrivers.android.d.ts +0 -2
- package/lib/typescript/src/groupDrivers.android.d.ts.map +0 -1
- package/lib/typescript/src/groupDrivers.d.ts +0 -2
- package/lib/typescript/src/groupDrivers.d.ts.map +0 -1
- package/lib/typescript/src/groupDrivers.ios.d.ts +0 -2
- package/lib/typescript/src/groupDrivers.ios.d.ts.map +0 -1
- package/lib/typescript/src/groupDrivers.native.d.ts +0 -4
- package/lib/typescript/src/groupDrivers.native.d.ts.map +0 -1
- package/lib/typescript/src/presentationProtocol.d.ts +0 -4
- package/lib/typescript/src/presentationProtocol.d.ts.map +0 -1
- package/lib/typescript/src/reactRequests.d.ts +0 -9
- package/lib/typescript/src/reactRequests.d.ts.map +0 -1
- package/src/driverState.ts +0 -118
- package/src/driverTypes.ts +0 -171
- package/src/drivers.android.ts +0 -8
- package/src/drivers.ios.ts +0 -8
- package/src/drivers.native.ts +0 -1599
- package/src/drivers.ts +0 -6
- package/src/groupDriverTypes.ts +0 -117
- package/src/groupDrivers.android.ts +0 -1
- package/src/groupDrivers.ios.ts +0 -1
- package/src/groupDrivers.native.ts +0 -1189
- package/src/groupDrivers.ts +0 -1
- package/src/presentationProtocol.ts +0 -28
- package/src/reactRequests.ts +0 -76
|
@@ -9,14 +9,16 @@ namespace facebook::react {
|
|
|
9
9
|
struct SmoothClipAnimationCompletion {
|
|
10
10
|
double driverId;
|
|
11
11
|
int32_t animationId;
|
|
12
|
+
int32_t completionTag;
|
|
12
13
|
bool finished;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
struct SmoothClipGroupAnimationCompletion {
|
|
16
17
|
double controllerId;
|
|
17
18
|
int32_t groupId;
|
|
19
|
+
int32_t completionTag;
|
|
18
20
|
bool finished;
|
|
19
|
-
std::vector<double>
|
|
21
|
+
std::vector<double> snapshots;
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
template <>
|
|
@@ -28,6 +30,8 @@ struct Bridging<SmoothClipAnimationCompletion> {
|
|
|
28
30
|
value.getProperty(runtime, "driverId").asNumber(),
|
|
29
31
|
static_cast<int32_t>(
|
|
30
32
|
value.getProperty(runtime, "animationId").asNumber()),
|
|
33
|
+
static_cast<int32_t>(
|
|
34
|
+
value.getProperty(runtime, "completionTag").asNumber()),
|
|
31
35
|
value.getProperty(runtime, "finished").getBool()};
|
|
32
36
|
}
|
|
33
37
|
|
|
@@ -37,6 +41,7 @@ struct Bridging<SmoothClipAnimationCompletion> {
|
|
|
37
41
|
jsi::Object result(runtime);
|
|
38
42
|
result.setProperty(runtime, "driverId", value.driverId);
|
|
39
43
|
result.setProperty(runtime, "animationId", value.animationId);
|
|
44
|
+
result.setProperty(runtime, "completionTag", value.completionTag);
|
|
40
45
|
result.setProperty(runtime, "finished", value.finished);
|
|
41
46
|
return result;
|
|
42
47
|
}
|
|
@@ -48,18 +53,20 @@ struct Bridging<SmoothClipGroupAnimationCompletion> {
|
|
|
48
53
|
jsi::Runtime &runtime,
|
|
49
54
|
const jsi::Object &value) {
|
|
50
55
|
const jsi::Array ids =
|
|
51
|
-
value.getProperty(runtime, "
|
|
52
|
-
std::vector<double>
|
|
53
|
-
|
|
56
|
+
value.getProperty(runtime, "snapshots").asObject(runtime).asArray(runtime);
|
|
57
|
+
std::vector<double> snapshots;
|
|
58
|
+
snapshots.reserve(ids.size(runtime));
|
|
54
59
|
for (size_t index = 0; index < ids.size(runtime); index += 1) {
|
|
55
|
-
|
|
60
|
+
snapshots.push_back(ids.getValueAtIndex(runtime, index).asNumber());
|
|
56
61
|
}
|
|
57
62
|
return {
|
|
58
63
|
value.getProperty(runtime, "controllerId").asNumber(),
|
|
59
64
|
static_cast<int32_t>(
|
|
60
65
|
value.getProperty(runtime, "groupId").asNumber()),
|
|
66
|
+
static_cast<int32_t>(
|
|
67
|
+
value.getProperty(runtime, "completionTag").asNumber()),
|
|
61
68
|
value.getProperty(runtime, "finished").getBool(),
|
|
62
|
-
std::move(
|
|
69
|
+
std::move(snapshots),
|
|
63
70
|
};
|
|
64
71
|
}
|
|
65
72
|
|
|
@@ -69,12 +76,13 @@ struct Bridging<SmoothClipGroupAnimationCompletion> {
|
|
|
69
76
|
jsi::Object result(runtime);
|
|
70
77
|
result.setProperty(runtime, "controllerId", value.controllerId);
|
|
71
78
|
result.setProperty(runtime, "groupId", value.groupId);
|
|
79
|
+
result.setProperty(runtime, "completionTag", value.completionTag);
|
|
72
80
|
result.setProperty(runtime, "finished", value.finished);
|
|
73
|
-
jsi::Array
|
|
74
|
-
for (size_t index = 0; index < value.
|
|
75
|
-
|
|
81
|
+
jsi::Array snapshots(runtime, value.snapshots.size());
|
|
82
|
+
for (size_t index = 0; index < value.snapshots.size(); index += 1) {
|
|
83
|
+
snapshots.setValueAtIndex(runtime, index, value.snapshots[index]);
|
|
76
84
|
}
|
|
77
|
-
result.setProperty(runtime, "
|
|
85
|
+
result.setProperty(runtime, "snapshots", std::move(snapshots));
|
|
78
86
|
return result;
|
|
79
87
|
}
|
|
80
88
|
};
|
|
@@ -85,18 +93,17 @@ class SmoothClipTurboModule final
|
|
|
85
93
|
explicit SmoothClipTurboModule(std::shared_ptr<CallInvoker> jsInvoker);
|
|
86
94
|
~SmoothClipTurboModule() override;
|
|
87
95
|
|
|
88
|
-
int32_t getPresentationProtocolVersion(jsi::Runtime &runtime);
|
|
89
96
|
bool supportsAutonomousComplexPathAnimation(jsi::Runtime &runtime);
|
|
90
|
-
jsi::Array
|
|
97
|
+
jsi::Array beginGroupInteraction(
|
|
91
98
|
jsi::Runtime &runtime,
|
|
92
99
|
jsi::Array driverIds);
|
|
93
|
-
jsi::Array
|
|
100
|
+
jsi::Array snapshotGroup(
|
|
94
101
|
jsi::Runtime &runtime,
|
|
95
102
|
jsi::Array driverIds);
|
|
96
|
-
bool
|
|
103
|
+
bool setClipPresentationBatch(
|
|
97
104
|
jsi::Runtime &runtime,
|
|
98
105
|
jsi::Array entries);
|
|
99
|
-
int32_t
|
|
106
|
+
int32_t animateTimingGroup(
|
|
100
107
|
jsi::Runtime &runtime,
|
|
101
108
|
double controllerId,
|
|
102
109
|
jsi::Array entries,
|
|
@@ -106,160 +113,33 @@ class SmoothClipTurboModule final
|
|
|
106
113
|
double controlPoint2X,
|
|
107
114
|
double controlPoint2Y,
|
|
108
115
|
int32_t reduceMotion,
|
|
109
|
-
int32_t
|
|
110
|
-
|
|
116
|
+
int32_t completionTag,
|
|
117
|
+
double startTimestamp);
|
|
118
|
+
int32_t animateSpringGroup(
|
|
111
119
|
jsi::Runtime &runtime,
|
|
112
120
|
double controllerId,
|
|
113
121
|
jsi::Array entries,
|
|
114
122
|
double mass,
|
|
115
123
|
double stiffness,
|
|
116
124
|
double damping,
|
|
117
|
-
double
|
|
118
|
-
|
|
119
|
-
int32_t reduceMotion,
|
|
120
|
-
int32_t suspensionPolicy);
|
|
121
|
-
int32_t animateKeyframesGroupV2(
|
|
122
|
-
jsi::Runtime &runtime,
|
|
123
|
-
double controllerId,
|
|
124
|
-
jsi::Array entries,
|
|
125
|
-
double durationMs,
|
|
125
|
+
double velocity,
|
|
126
|
+
double energyThreshold,
|
|
126
127
|
int32_t reduceMotion,
|
|
127
|
-
int32_t
|
|
128
|
-
|
|
128
|
+
int32_t completionTag,
|
|
129
|
+
double startTimestamp);
|
|
130
|
+
jsi::Array cancelAnimationGroup(
|
|
129
131
|
jsi::Runtime &runtime,
|
|
130
132
|
int32_t groupId,
|
|
131
133
|
int32_t behavior);
|
|
132
|
-
void setClipPresentationV2(
|
|
133
|
-
jsi::Runtime &runtime,
|
|
134
|
-
double driverId,
|
|
135
|
-
double x,
|
|
136
|
-
double y,
|
|
137
|
-
double width,
|
|
138
|
-
double height,
|
|
139
|
-
double topLeftRadius,
|
|
140
|
-
double topRightRadius,
|
|
141
|
-
double bottomRightRadius,
|
|
142
|
-
double bottomLeftRadius,
|
|
143
|
-
int32_t curveCode,
|
|
144
|
-
double contentTranslateX,
|
|
145
|
-
double contentTranslateY,
|
|
146
|
-
double contentScale,
|
|
147
|
-
bool takeOwnership,
|
|
148
|
-
bool overridePendingAnimation);
|
|
149
|
-
jsi::Array beginInteractionV2(jsi::Runtime &runtime, double driverId);
|
|
150
|
-
jsi::Array snapshotCurrentV2(jsi::Runtime &runtime, double driverId);
|
|
151
|
-
|
|
152
134
|
void setClipPresentation(
|
|
153
135
|
jsi::Runtime &runtime,
|
|
154
136
|
double driverId,
|
|
155
|
-
|
|
156
|
-
double y,
|
|
157
|
-
double width,
|
|
158
|
-
double height,
|
|
159
|
-
double radius,
|
|
160
|
-
double contentTranslateX,
|
|
161
|
-
double contentTranslateY,
|
|
137
|
+
jsi::Array presentation,
|
|
162
138
|
bool takeOwnership,
|
|
163
139
|
bool overridePendingAnimation);
|
|
164
|
-
|
|
165
|
-
int32_t animateTiming(
|
|
166
|
-
jsi::Runtime &runtime,
|
|
167
|
-
double driverId,
|
|
168
|
-
bool hasInteractiveStart,
|
|
169
|
-
double startX,
|
|
170
|
-
double startY,
|
|
171
|
-
double startWidth,
|
|
172
|
-
double startHeight,
|
|
173
|
-
double startRadius,
|
|
174
|
-
double startContentTranslateX,
|
|
175
|
-
double startContentTranslateY,
|
|
176
|
-
double x,
|
|
177
|
-
double y,
|
|
178
|
-
double width,
|
|
179
|
-
double height,
|
|
180
|
-
double radius,
|
|
181
|
-
double contentTranslateX,
|
|
182
|
-
double contentTranslateY,
|
|
183
|
-
double durationMs,
|
|
184
|
-
double controlPoint1X,
|
|
185
|
-
double controlPoint1Y,
|
|
186
|
-
double controlPoint2X,
|
|
187
|
-
double controlPoint2Y,
|
|
188
|
-
int32_t reduceMotion);
|
|
189
|
-
int32_t animateTimingV2(
|
|
190
|
-
jsi::Runtime &runtime,
|
|
191
|
-
double driverId,
|
|
192
|
-
bool hasInteractiveStart,
|
|
193
|
-
double startX,
|
|
194
|
-
double startY,
|
|
195
|
-
double startWidth,
|
|
196
|
-
double startHeight,
|
|
197
|
-
double startTopLeftRadius,
|
|
198
|
-
double startTopRightRadius,
|
|
199
|
-
double startBottomRightRadius,
|
|
200
|
-
double startBottomLeftRadius,
|
|
201
|
-
int32_t startCurveCode,
|
|
202
|
-
double startContentTranslateX,
|
|
203
|
-
double startContentTranslateY,
|
|
204
|
-
double startContentScale,
|
|
205
|
-
double x,
|
|
206
|
-
double y,
|
|
207
|
-
double width,
|
|
208
|
-
double height,
|
|
209
|
-
double topLeftRadius,
|
|
210
|
-
double topRightRadius,
|
|
211
|
-
double bottomRightRadius,
|
|
212
|
-
double bottomLeftRadius,
|
|
213
|
-
int32_t curveCode,
|
|
214
|
-
double contentTranslateX,
|
|
215
|
-
double contentTranslateY,
|
|
216
|
-
double contentScale,
|
|
217
|
-
double durationMs,
|
|
218
|
-
double controlPoint1X,
|
|
219
|
-
double controlPoint1Y,
|
|
220
|
-
double controlPoint2X,
|
|
221
|
-
double controlPoint2Y,
|
|
222
|
-
int32_t reduceMotion);
|
|
223
|
-
int32_t animateSpring(
|
|
224
|
-
jsi::Runtime &runtime,
|
|
225
|
-
double driverId,
|
|
226
|
-
bool hasInteractiveStart,
|
|
227
|
-
double startX,
|
|
228
|
-
double startY,
|
|
229
|
-
double startWidth,
|
|
230
|
-
double startHeight,
|
|
231
|
-
double startRadius,
|
|
232
|
-
double startContentTranslateX,
|
|
233
|
-
double startContentTranslateY,
|
|
234
|
-
double x,
|
|
235
|
-
double y,
|
|
236
|
-
double width,
|
|
237
|
-
double height,
|
|
238
|
-
double radius,
|
|
239
|
-
double contentTranslateX,
|
|
240
|
-
double contentTranslateY,
|
|
241
|
-
double mass,
|
|
242
|
-
double stiffness,
|
|
243
|
-
double damping,
|
|
244
|
-
double initialVelocity,
|
|
245
|
-
bool inheritVelocity,
|
|
246
|
-
int32_t reduceMotion);
|
|
247
|
-
int32_t animateSpringV2(
|
|
140
|
+
void setClipFrameScalars(
|
|
248
141
|
jsi::Runtime &runtime,
|
|
249
142
|
double driverId,
|
|
250
|
-
bool hasInteractiveStart,
|
|
251
|
-
double startX,
|
|
252
|
-
double startY,
|
|
253
|
-
double startWidth,
|
|
254
|
-
double startHeight,
|
|
255
|
-
double startTopLeftRadius,
|
|
256
|
-
double startTopRightRadius,
|
|
257
|
-
double startBottomRightRadius,
|
|
258
|
-
double startBottomLeftRadius,
|
|
259
|
-
int32_t startCurveCode,
|
|
260
|
-
double startContentTranslateX,
|
|
261
|
-
double startContentTranslateY,
|
|
262
|
-
double startContentScale,
|
|
263
143
|
double x,
|
|
264
144
|
double y,
|
|
265
145
|
double width,
|
|
@@ -272,171 +152,48 @@ class SmoothClipTurboModule final
|
|
|
272
152
|
double contentTranslateX,
|
|
273
153
|
double contentTranslateY,
|
|
274
154
|
double contentScale,
|
|
275
|
-
|
|
276
|
-
double
|
|
277
|
-
double
|
|
278
|
-
double
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
double
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
double startHeight,
|
|
289
|
-
double startRadius,
|
|
290
|
-
double startContentTranslateX,
|
|
291
|
-
double startContentTranslateY,
|
|
292
|
-
double x,
|
|
293
|
-
double y,
|
|
294
|
-
double width,
|
|
295
|
-
double height,
|
|
296
|
-
double radius,
|
|
297
|
-
double contentTranslateX,
|
|
298
|
-
double contentTranslateY,
|
|
299
|
-
double durationMs,
|
|
300
|
-
jsi::Array frames,
|
|
301
|
-
int32_t reduceMotion);
|
|
302
|
-
int32_t animateKeyframesV2(
|
|
155
|
+
bool shadowEnabled,
|
|
156
|
+
double shadowRed,
|
|
157
|
+
double shadowGreen,
|
|
158
|
+
double shadowBlue,
|
|
159
|
+
double shadowAlpha,
|
|
160
|
+
double shadowOffsetX,
|
|
161
|
+
double shadowOffsetY,
|
|
162
|
+
double shadowBlurRadius,
|
|
163
|
+
double shadowSpreadDistance);
|
|
164
|
+
jsi::Array beginInteraction(jsi::Runtime &runtime, double driverId);
|
|
165
|
+
jsi::Array snapshotCurrent(jsi::Runtime &runtime, double driverId);
|
|
166
|
+
|
|
167
|
+
int32_t animateTiming(
|
|
303
168
|
jsi::Runtime &runtime,
|
|
304
169
|
double driverId,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
double startY,
|
|
308
|
-
double startWidth,
|
|
309
|
-
double startHeight,
|
|
310
|
-
double startTopLeftRadius,
|
|
311
|
-
double startTopRightRadius,
|
|
312
|
-
double startBottomRightRadius,
|
|
313
|
-
double startBottomLeftRadius,
|
|
314
|
-
int32_t startCurveCode,
|
|
315
|
-
double startContentTranslateX,
|
|
316
|
-
double startContentTranslateY,
|
|
317
|
-
double startContentScale,
|
|
318
|
-
double x,
|
|
319
|
-
double y,
|
|
320
|
-
double width,
|
|
321
|
-
double height,
|
|
322
|
-
double topLeftRadius,
|
|
323
|
-
double topRightRadius,
|
|
324
|
-
double bottomRightRadius,
|
|
325
|
-
double bottomLeftRadius,
|
|
326
|
-
int32_t curveCode,
|
|
327
|
-
double contentTranslateX,
|
|
328
|
-
double contentTranslateY,
|
|
329
|
-
double contentScale,
|
|
330
|
-
double durationMs,
|
|
331
|
-
jsi::Array frames,
|
|
332
|
-
int32_t reduceMotion);
|
|
333
|
-
int32_t animateTimingFromV2(
|
|
334
|
-
jsi::Runtime &runtime,
|
|
335
|
-
double driverId,
|
|
336
|
-
double startX,
|
|
337
|
-
double startY,
|
|
338
|
-
double startWidth,
|
|
339
|
-
double startHeight,
|
|
340
|
-
double startTopLeftRadius,
|
|
341
|
-
double startTopRightRadius,
|
|
342
|
-
double startBottomRightRadius,
|
|
343
|
-
double startBottomLeftRadius,
|
|
344
|
-
int32_t startCurveCode,
|
|
345
|
-
double startContentTranslateX,
|
|
346
|
-
double startContentTranslateY,
|
|
347
|
-
double startContentScale,
|
|
348
|
-
double x,
|
|
349
|
-
double y,
|
|
350
|
-
double width,
|
|
351
|
-
double height,
|
|
352
|
-
double topLeftRadius,
|
|
353
|
-
double topRightRadius,
|
|
354
|
-
double bottomRightRadius,
|
|
355
|
-
double bottomLeftRadius,
|
|
356
|
-
int32_t curveCode,
|
|
357
|
-
double contentTranslateX,
|
|
358
|
-
double contentTranslateY,
|
|
359
|
-
double contentScale,
|
|
170
|
+
jsi::Array start,
|
|
171
|
+
jsi::Array target,
|
|
360
172
|
double durationMs,
|
|
361
173
|
double controlPoint1X,
|
|
362
174
|
double controlPoint1Y,
|
|
363
175
|
double controlPoint2X,
|
|
364
176
|
double controlPoint2Y,
|
|
365
|
-
int32_t reduceMotion
|
|
366
|
-
|
|
177
|
+
int32_t reduceMotion,
|
|
178
|
+
int32_t completionTag);
|
|
179
|
+
int32_t animateSpring(
|
|
367
180
|
jsi::Runtime &runtime,
|
|
368
181
|
double driverId,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
double startWidth,
|
|
372
|
-
double startHeight,
|
|
373
|
-
double startTopLeftRadius,
|
|
374
|
-
double startTopRightRadius,
|
|
375
|
-
double startBottomRightRadius,
|
|
376
|
-
double startBottomLeftRadius,
|
|
377
|
-
int32_t startCurveCode,
|
|
378
|
-
double startContentTranslateX,
|
|
379
|
-
double startContentTranslateY,
|
|
380
|
-
double startContentScale,
|
|
381
|
-
double x,
|
|
382
|
-
double y,
|
|
383
|
-
double width,
|
|
384
|
-
double height,
|
|
385
|
-
double topLeftRadius,
|
|
386
|
-
double topRightRadius,
|
|
387
|
-
double bottomRightRadius,
|
|
388
|
-
double bottomLeftRadius,
|
|
389
|
-
int32_t curveCode,
|
|
390
|
-
double contentTranslateX,
|
|
391
|
-
double contentTranslateY,
|
|
392
|
-
double contentScale,
|
|
182
|
+
jsi::Array start,
|
|
183
|
+
jsi::Array target,
|
|
393
184
|
double mass,
|
|
394
185
|
double stiffness,
|
|
395
186
|
double damping,
|
|
396
187
|
double initialVelocity,
|
|
397
188
|
bool inheritVelocity,
|
|
398
|
-
int32_t reduceMotion
|
|
399
|
-
|
|
400
|
-
jsi::Runtime &runtime,
|
|
401
|
-
double driverId,
|
|
402
|
-
double startX,
|
|
403
|
-
double startY,
|
|
404
|
-
double startWidth,
|
|
405
|
-
double startHeight,
|
|
406
|
-
double startTopLeftRadius,
|
|
407
|
-
double startTopRightRadius,
|
|
408
|
-
double startBottomRightRadius,
|
|
409
|
-
double startBottomLeftRadius,
|
|
410
|
-
int32_t startCurveCode,
|
|
411
|
-
double startContentTranslateX,
|
|
412
|
-
double startContentTranslateY,
|
|
413
|
-
double startContentScale,
|
|
414
|
-
double x,
|
|
415
|
-
double y,
|
|
416
|
-
double width,
|
|
417
|
-
double height,
|
|
418
|
-
double topLeftRadius,
|
|
419
|
-
double topRightRadius,
|
|
420
|
-
double bottomRightRadius,
|
|
421
|
-
double bottomLeftRadius,
|
|
422
|
-
int32_t curveCode,
|
|
423
|
-
double contentTranslateX,
|
|
424
|
-
double contentTranslateY,
|
|
425
|
-
double contentScale,
|
|
426
|
-
double durationMs,
|
|
427
|
-
jsi::Array frames,
|
|
428
|
-
int32_t reduceMotion);
|
|
189
|
+
int32_t reduceMotion,
|
|
190
|
+
int32_t completionTag);
|
|
429
191
|
int32_t rejectAnimation(jsi::Runtime &runtime, double driverId);
|
|
430
192
|
jsi::Array cancelAnimation(
|
|
431
193
|
jsi::Runtime &runtime,
|
|
432
194
|
double driverId,
|
|
433
195
|
int32_t animationId,
|
|
434
196
|
int32_t behavior);
|
|
435
|
-
jsi::Array cancelAnimationV2(
|
|
436
|
-
jsi::Runtime &runtime,
|
|
437
|
-
double driverId,
|
|
438
|
-
int32_t animationId,
|
|
439
|
-
int32_t behavior);
|
|
440
197
|
void destroyDriver(jsi::Runtime &runtime, double driverId);
|
|
441
198
|
};
|
|
442
199
|
|