react-native-smooth-clip-view 0.3.0 → 0.4.1

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.
Files changed (199) hide show
  1. package/README.md +135 -386
  2. package/android/build.gradle +4 -7
  3. package/android/proguard-rules.pro +2 -2
  4. package/android/src/main/cpp/SmoothClipAndroid.h +9 -12
  5. package/android/src/main/cpp/SmoothClipBindings.cpp +300 -704
  6. package/android/src/main/cpp/SmoothClipRegistry.cpp +348 -594
  7. package/android/src/main/java/com/smoothclipview/ClipGeometryNormalizer.kt +36 -227
  8. package/android/src/main/java/com/smoothclipview/SmoothClipBindings.kt +16 -19
  9. package/android/src/main/java/com/smoothclipview/SmoothClipModule.kt +36 -294
  10. package/android/src/main/java/com/smoothclipview/SmoothClipView.kt +369 -486
  11. package/android/src/main/java/com/smoothclipview/SmoothClipViewManager.kt +75 -77
  12. package/cpp/SmoothClipAnimationCurve.h +237 -346
  13. package/cpp/SmoothClipRegistry.h +24 -52
  14. package/cpp/SmoothClipSharedGeometry.h +64 -94
  15. package/cpp/SmoothClipVelocityTracker.h +5 -5
  16. package/ios/SmoothClipGeometry.h +23 -34
  17. package/ios/SmoothClipRegistry.mm +206 -711
  18. package/ios/SmoothClipTurboModule.cpp +217 -715
  19. package/ios/SmoothClipTurboModule.h +54 -297
  20. package/ios/SmoothClipView.mm +599 -505
  21. package/ios/SmoothClipViewRegistry.h +2 -7
  22. package/lib/module/NativeSmoothClipModule.js.map +1 -1
  23. package/lib/module/SmoothClipView.ios.js +84 -17
  24. package/lib/module/SmoothClipView.ios.js.map +1 -1
  25. package/lib/module/SmoothClipView.js +1 -1
  26. package/lib/module/SmoothClipView.js.map +1 -1
  27. package/lib/module/SmoothClipViewNativeComponent.ts +20 -26
  28. package/lib/module/capabilities.native.js +1 -19
  29. package/lib/module/capabilities.native.js.map +1 -1
  30. package/lib/module/capabilityTypes.js +0 -9
  31. package/lib/module/capabilityTypes.js.map +1 -1
  32. package/lib/module/controllerInternals.js +28 -0
  33. package/lib/module/controllerInternals.js.map +1 -0
  34. package/lib/module/controllerLifecycle.js +9 -0
  35. package/lib/module/controllerLifecycle.js.map +1 -0
  36. package/lib/module/controllerTypes.js +4 -0
  37. package/lib/module/controllerTypes.js.map +1 -0
  38. package/lib/module/controllers.android.js +4 -0
  39. package/lib/module/controllers.android.js.map +1 -0
  40. package/lib/module/controllers.ios.js +4 -0
  41. package/lib/module/controllers.ios.js.map +1 -0
  42. package/lib/module/controllers.js +4 -0
  43. package/lib/module/controllers.js.map +1 -0
  44. package/lib/module/controllers.native.js +89 -0
  45. package/lib/module/controllers.native.js.map +1 -0
  46. package/lib/module/geometry.js +71 -51
  47. package/lib/module/geometry.js.map +1 -1
  48. package/lib/module/groupTypes.js +4 -0
  49. package/lib/module/{groupDriverTypes.js.map → groupTypes.js.map} +1 -1
  50. package/lib/module/groups.android.js +4 -0
  51. package/lib/module/groups.android.js.map +1 -0
  52. package/lib/module/groups.ios.js +4 -0
  53. package/lib/module/groups.ios.js.map +1 -0
  54. package/lib/module/groups.js +4 -0
  55. package/lib/module/groups.js.map +1 -0
  56. package/lib/module/groups.native.js +399 -0
  57. package/lib/module/groups.native.js.map +1 -0
  58. package/lib/module/ids.js +8 -0
  59. package/lib/module/ids.js.map +1 -0
  60. package/lib/module/index.js +3 -3
  61. package/lib/module/index.js.map +1 -1
  62. package/lib/module/nativeCompletion.js +37 -16
  63. package/lib/module/nativeCompletion.js.map +1 -1
  64. package/lib/module/presentationCodec.js +81 -0
  65. package/lib/module/presentationCodec.js.map +1 -0
  66. package/lib/typescript/src/NativeSmoothClipModule.d.ts +14 -23
  67. package/lib/typescript/src/NativeSmoothClipModule.d.ts.map +1 -1
  68. package/lib/typescript/src/SmoothClipView.d.ts +1 -1
  69. package/lib/typescript/src/SmoothClipView.d.ts.map +1 -1
  70. package/lib/typescript/src/SmoothClipView.ios.d.ts +18 -14
  71. package/lib/typescript/src/SmoothClipView.ios.d.ts.map +1 -1
  72. package/lib/typescript/src/SmoothClipViewNativeComponent.d.ts +10 -5
  73. package/lib/typescript/src/SmoothClipViewNativeComponent.d.ts.map +1 -1
  74. package/lib/typescript/src/capabilities.native.d.ts +1 -1
  75. package/lib/typescript/src/capabilities.native.d.ts.map +1 -1
  76. package/lib/typescript/src/capabilityTypes.d.ts +0 -6
  77. package/lib/typescript/src/capabilityTypes.d.ts.map +1 -1
  78. package/lib/typescript/src/controllerInternals.d.ts +14 -0
  79. package/lib/typescript/src/controllerInternals.d.ts.map +1 -0
  80. package/lib/typescript/src/controllerLifecycle.d.ts +3 -0
  81. package/lib/typescript/src/controllerLifecycle.d.ts.map +1 -0
  82. package/lib/typescript/src/controllerTypes.d.ts +62 -0
  83. package/lib/typescript/src/controllerTypes.d.ts.map +1 -0
  84. package/lib/typescript/src/controllers.android.d.ts +2 -0
  85. package/lib/typescript/src/controllers.android.d.ts.map +1 -0
  86. package/lib/typescript/src/controllers.d.ts +2 -0
  87. package/lib/typescript/src/controllers.d.ts.map +1 -0
  88. package/lib/typescript/src/controllers.ios.d.ts +2 -0
  89. package/lib/typescript/src/controllers.ios.d.ts.map +1 -0
  90. package/lib/typescript/src/controllers.native.d.ts +3 -0
  91. package/lib/typescript/src/controllers.native.d.ts.map +1 -0
  92. package/lib/typescript/src/geometry.d.ts +22 -12
  93. package/lib/typescript/src/geometry.d.ts.map +1 -1
  94. package/lib/typescript/src/groupTypes.d.ts +31 -0
  95. package/lib/typescript/src/groupTypes.d.ts.map +1 -0
  96. package/lib/typescript/src/groups.android.d.ts +2 -0
  97. package/lib/typescript/src/groups.android.d.ts.map +1 -0
  98. package/lib/typescript/src/groups.d.ts +2 -0
  99. package/lib/typescript/src/groups.d.ts.map +1 -0
  100. package/lib/typescript/src/groups.ios.d.ts +2 -0
  101. package/lib/typescript/src/groups.ios.d.ts.map +1 -0
  102. package/lib/typescript/src/groups.native.d.ts +3 -0
  103. package/lib/typescript/src/groups.native.d.ts.map +1 -0
  104. package/lib/typescript/src/ids.d.ts +2 -0
  105. package/lib/typescript/src/ids.d.ts.map +1 -0
  106. package/lib/typescript/src/index.d.ts +6 -6
  107. package/lib/typescript/src/index.d.ts.map +1 -1
  108. package/lib/typescript/src/nativeCompletion.d.ts +16 -6
  109. package/lib/typescript/src/nativeCompletion.d.ts.map +1 -1
  110. package/lib/typescript/src/presentationCodec.d.ts +10 -0
  111. package/lib/typescript/src/presentationCodec.d.ts.map +1 -0
  112. package/package.json +8 -3
  113. package/src/NativeSmoothClipModule.ts +41 -292
  114. package/src/SmoothClipView.ios.tsx +130 -23
  115. package/src/SmoothClipView.tsx +5 -1
  116. package/src/SmoothClipViewNativeComponent.ts +20 -26
  117. package/src/capabilities.native.ts +2 -52
  118. package/src/capabilityTypes.ts +0 -14
  119. package/src/controllerInternals.ts +52 -0
  120. package/src/controllerLifecycle.ts +6 -0
  121. package/src/controllerTypes.ts +87 -0
  122. package/src/controllers.android.ts +1 -0
  123. package/src/controllers.ios.ts +1 -0
  124. package/src/controllers.native.ts +104 -0
  125. package/src/controllers.ts +1 -0
  126. package/src/geometry.ts +118 -74
  127. package/src/groupTypes.ts +53 -0
  128. package/src/groups.android.ts +1 -0
  129. package/src/groups.ios.ts +1 -0
  130. package/src/groups.native.ts +604 -0
  131. package/src/groups.ts +1 -0
  132. package/src/ids.ts +6 -0
  133. package/src/index.ts +20 -28
  134. package/src/nativeCompletion.ts +67 -32
  135. package/src/presentationCodec.ts +134 -0
  136. package/lib/module/driverState.js +0 -82
  137. package/lib/module/driverState.js.map +0 -1
  138. package/lib/module/driverTypes.js +0 -4
  139. package/lib/module/driverTypes.js.map +0 -1
  140. package/lib/module/drivers.android.js +0 -6
  141. package/lib/module/drivers.android.js.map +0 -1
  142. package/lib/module/drivers.ios.js +0 -6
  143. package/lib/module/drivers.ios.js.map +0 -1
  144. package/lib/module/drivers.js +0 -4
  145. package/lib/module/drivers.js.map +0 -1
  146. package/lib/module/drivers.native.js +0 -756
  147. package/lib/module/drivers.native.js.map +0 -1
  148. package/lib/module/groupDriverTypes.js +0 -4
  149. package/lib/module/groupDrivers.android.js +0 -4
  150. package/lib/module/groupDrivers.android.js.map +0 -1
  151. package/lib/module/groupDrivers.ios.js +0 -4
  152. package/lib/module/groupDrivers.ios.js.map +0 -1
  153. package/lib/module/groupDrivers.js +0 -4
  154. package/lib/module/groupDrivers.js.map +0 -1
  155. package/lib/module/groupDrivers.native.js +0 -799
  156. package/lib/module/groupDrivers.native.js.map +0 -1
  157. package/lib/module/presentationProtocol.js +0 -15
  158. package/lib/module/presentationProtocol.js.map +0 -1
  159. package/lib/module/reactRequests.js +0 -56
  160. package/lib/module/reactRequests.js.map +0 -1
  161. package/lib/typescript/src/driverState.d.ts +0 -26
  162. package/lib/typescript/src/driverState.d.ts.map +0 -1
  163. package/lib/typescript/src/driverTypes.d.ts +0 -121
  164. package/lib/typescript/src/driverTypes.d.ts.map +0 -1
  165. package/lib/typescript/src/drivers.android.d.ts +0 -3
  166. package/lib/typescript/src/drivers.android.d.ts.map +0 -1
  167. package/lib/typescript/src/drivers.d.ts +0 -3
  168. package/lib/typescript/src/drivers.d.ts.map +0 -1
  169. package/lib/typescript/src/drivers.ios.d.ts +0 -3
  170. package/lib/typescript/src/drivers.ios.d.ts.map +0 -1
  171. package/lib/typescript/src/drivers.native.d.ts +0 -5
  172. package/lib/typescript/src/drivers.native.d.ts.map +0 -1
  173. package/lib/typescript/src/groupDriverTypes.d.ts +0 -66
  174. package/lib/typescript/src/groupDriverTypes.d.ts.map +0 -1
  175. package/lib/typescript/src/groupDrivers.android.d.ts +0 -2
  176. package/lib/typescript/src/groupDrivers.android.d.ts.map +0 -1
  177. package/lib/typescript/src/groupDrivers.d.ts +0 -2
  178. package/lib/typescript/src/groupDrivers.d.ts.map +0 -1
  179. package/lib/typescript/src/groupDrivers.ios.d.ts +0 -2
  180. package/lib/typescript/src/groupDrivers.ios.d.ts.map +0 -1
  181. package/lib/typescript/src/groupDrivers.native.d.ts +0 -4
  182. package/lib/typescript/src/groupDrivers.native.d.ts.map +0 -1
  183. package/lib/typescript/src/presentationProtocol.d.ts +0 -4
  184. package/lib/typescript/src/presentationProtocol.d.ts.map +0 -1
  185. package/lib/typescript/src/reactRequests.d.ts +0 -9
  186. package/lib/typescript/src/reactRequests.d.ts.map +0 -1
  187. package/src/driverState.ts +0 -118
  188. package/src/driverTypes.ts +0 -171
  189. package/src/drivers.android.ts +0 -8
  190. package/src/drivers.ios.ts +0 -8
  191. package/src/drivers.native.ts +0 -1599
  192. package/src/drivers.ts +0 -6
  193. package/src/groupDriverTypes.ts +0 -117
  194. package/src/groupDrivers.android.ts +0 -1
  195. package/src/groupDrivers.ios.ts +0 -1
  196. package/src/groupDrivers.native.ts +0 -1189
  197. package/src/groupDrivers.ts +0 -1
  198. package/src/presentationProtocol.ts +0 -28
  199. 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> driverIds;
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, "driverIds").asObject(runtime).asArray(runtime);
52
- std::vector<double> driverIds;
53
- driverIds.reserve(ids.size(runtime));
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
- driverIds.push_back(ids.getValueAtIndex(runtime, index).asNumber());
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(driverIds),
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 driverIds(runtime, value.driverIds.size());
74
- for (size_t index = 0; index < value.driverIds.size(); index += 1) {
75
- driverIds.setValueAtIndex(runtime, index, value.driverIds[index]);
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, "driverIds", std::move(driverIds));
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 beginGroupInteractionV2(
97
+ jsi::Array beginGroupInteraction(
91
98
  jsi::Runtime &runtime,
92
99
  jsi::Array driverIds);
93
- jsi::Array snapshotGroupV2(
100
+ jsi::Array snapshotGroup(
94
101
  jsi::Runtime &runtime,
95
102
  jsi::Array driverIds);
96
- bool setClipPresentationBatchV2(
103
+ bool setClipPresentationBatch(
97
104
  jsi::Runtime &runtime,
98
105
  jsi::Array entries);
99
- int32_t animateTimingGroupV2(
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 suspensionPolicy);
110
- int32_t animateSpringGroupV2(
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 initialVelocity,
118
- bool inheritVelocity,
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 suspensionPolicy);
128
- jsi::Array cancelAnimationGroupV2(
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
- double x,
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
- jsi::Array beginInteraction(jsi::Runtime &runtime, double driverId);
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
- double mass,
276
- double stiffness,
277
- double damping,
278
- double initialVelocity,
279
- bool inheritVelocity,
280
- int32_t reduceMotion);
281
- int32_t animateKeyframes(
282
- jsi::Runtime &runtime,
283
- double driverId,
284
- bool hasInteractiveStart,
285
- double startX,
286
- double startY,
287
- double startWidth,
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
- bool hasInteractiveStart,
306
- double startX,
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
- int32_t animateSpringFromV2(
177
+ int32_t reduceMotion,
178
+ int32_t completionTag);
179
+ int32_t animateSpring(
367
180
  jsi::Runtime &runtime,
368
181
  double driverId,
369
- double startX,
370
- double startY,
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
- int32_t animateKeyframesFromV2(
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