@shopify/react-native-skia 0.1.229 → 0.1.231

Sign up to get free protection for your applications and to get access to all the features.
Files changed (686) hide show
  1. package/android/CMakeLists.txt +1 -0
  2. package/android/cpp/jni/JniLoad.cpp +0 -2
  3. package/android/cpp/rnskia-android/SkiaOpenGLSurfaceFactory.cpp +2 -2
  4. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +0 -1
  5. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +1 -2
  6. package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseView.java +7 -12
  7. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomView.java +1 -1
  8. package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureView.java +1 -1
  9. package/cpp/api/JsiSkAnimatedImage.h +1 -1
  10. package/cpp/api/JsiSkApi.h +4 -1
  11. package/cpp/api/JsiSkDataFactory.h +6 -6
  12. package/cpp/api/JsiSkImage.h +4 -4
  13. package/cpp/api/JsiSkParagraph.h +15 -0
  14. package/cpp/api/JsiSkParagraphBuilder.h +3 -32
  15. package/cpp/api/JsiSkParagraphBuilderFactory.h +54 -0
  16. package/cpp/api/JsiSkPath.h +1 -1
  17. package/cpp/api/JsiSkRRect.h +30 -3
  18. package/cpp/api/third_party/base64.cpp +153 -0
  19. package/cpp/api/third_party/base64.h +50 -0
  20. package/cpp/jsi/JsiPromises.h +1 -1
  21. package/cpp/rnskia/RNSkJsiViewApi.h +0 -52
  22. package/cpp/rnskia/RNSkManager.cpp +0 -6
  23. package/cpp/rnskia/RNSkView.h +2 -91
  24. package/cpp/rnskia/dom/JsiDomApi.h +0 -9
  25. package/cpp/rnskia/dom/props/FontProp.h +4 -1
  26. package/cpp/rnskia/dom/props/RRectProp.h +50 -0
  27. package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.mm +1 -1
  28. package/lib/commonjs/animation/index.d.ts +0 -3
  29. package/lib/commonjs/animation/index.js +0 -39
  30. package/lib/commonjs/animation/index.js.map +1 -1
  31. package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +3 -3
  32. package/lib/commonjs/dom/nodes/JsiSkDOM.js +0 -6
  33. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  34. package/lib/commonjs/dom/nodes/Node.d.ts +0 -3
  35. package/lib/commonjs/dom/nodes/Node.js +0 -5
  36. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  37. package/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +1 -1
  38. package/lib/commonjs/dom/nodes/drawings/RRectNode.d.ts +3 -3
  39. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  40. package/lib/commonjs/dom/nodes/drawings/index.d.ts +0 -1
  41. package/lib/commonjs/dom/nodes/drawings/index.js +0 -13
  42. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  43. package/lib/commonjs/dom/types/Common.d.ts +2 -2
  44. package/lib/commonjs/dom/types/Common.js.map +1 -1
  45. package/lib/commonjs/dom/types/Drawings.d.ts +0 -4
  46. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  47. package/lib/commonjs/dom/types/NodeType.d.ts +0 -1
  48. package/lib/commonjs/dom/types/NodeType.js +0 -1
  49. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  50. package/lib/commonjs/dom/types/SkDOM.d.ts +1 -2
  51. package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
  52. package/lib/commonjs/headless/index.d.ts +3 -1
  53. package/lib/commonjs/headless/index.js +12 -6
  54. package/lib/commonjs/headless/index.js.map +1 -1
  55. package/lib/commonjs/index.d.ts +0 -1
  56. package/lib/commonjs/index.js +0 -14
  57. package/lib/commonjs/index.js.map +1 -1
  58. package/lib/commonjs/mock/index.js +0 -4
  59. package/lib/commonjs/mock/index.js.map +1 -1
  60. package/lib/commonjs/renderer/Canvas.js +2 -21
  61. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  62. package/lib/commonjs/renderer/Container.d.ts +1 -3
  63. package/lib/commonjs/renderer/Container.js +4 -6
  64. package/lib/commonjs/renderer/Container.js.map +1 -1
  65. package/lib/commonjs/renderer/HostComponents.d.ts +1 -6
  66. package/lib/commonjs/renderer/HostComponents.js +0 -3
  67. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  68. package/lib/commonjs/renderer/HostConfig.js +2 -23
  69. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  70. package/lib/commonjs/renderer/Reconciler.d.ts +1 -5
  71. package/lib/commonjs/renderer/Reconciler.js +3 -18
  72. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  73. package/lib/commonjs/renderer/components/index.d.ts +0 -1
  74. package/lib/commonjs/renderer/components/index.js +0 -13
  75. package/lib/commonjs/renderer/components/index.js.map +1 -1
  76. package/lib/commonjs/renderer/index.d.ts +0 -1
  77. package/lib/commonjs/renderer/index.js +0 -13
  78. package/lib/commonjs/renderer/index.js.map +1 -1
  79. package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +1 -8
  80. package/lib/commonjs/renderer/processors/Animations/Animations.js +0 -44
  81. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  82. package/lib/commonjs/skia/types/Canvas.d.ts +4 -4
  83. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  84. package/lib/commonjs/skia/types/Paragraph/Paragraph.d.ts +23 -0
  85. package/lib/commonjs/skia/types/Paragraph/Paragraph.js.map +1 -1
  86. package/lib/commonjs/skia/types/Path/Path.d.ts +2 -2
  87. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  88. package/lib/commonjs/skia/types/RRect.d.ts +9 -0
  89. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  90. package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +4 -4
  91. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  92. package/lib/commonjs/skia/web/JsiSkParagraph.d.ts +3 -0
  93. package/lib/commonjs/skia/web/JsiSkParagraph.js +12 -0
  94. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  95. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +5 -2
  96. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  97. package/lib/commonjs/skia/web/JsiSkPath.d.ts +2 -2
  98. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  99. package/lib/commonjs/skia/web/JsiSkRRect.d.ts +2 -2
  100. package/lib/commonjs/skia/web/JsiSkRRect.js +4 -0
  101. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  102. package/lib/commonjs/views/SkiaBaseWebView.d.ts +0 -7
  103. package/lib/commonjs/views/SkiaBaseWebView.js +0 -17
  104. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  105. package/lib/commonjs/views/SkiaDomView.d.ts +0 -7
  106. package/lib/commonjs/views/SkiaDomView.js +3 -14
  107. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  108. package/lib/commonjs/views/SkiaDomView.web.js +4 -14
  109. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  110. package/lib/commonjs/views/SkiaPictureView.d.ts +0 -7
  111. package/lib/commonjs/views/SkiaPictureView.js +3 -14
  112. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  113. package/lib/commonjs/views/SkiaViewNativeId.d.ts +3 -0
  114. package/lib/commonjs/views/SkiaViewNativeId.js +11 -0
  115. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -0
  116. package/lib/commonjs/views/index.d.ts +0 -2
  117. package/lib/commonjs/views/index.js +0 -26
  118. package/lib/commonjs/views/index.js.map +1 -1
  119. package/lib/commonjs/views/types.d.ts +2 -15
  120. package/lib/commonjs/views/types.js.map +1 -1
  121. package/lib/module/animation/index.d.ts +0 -3
  122. package/lib/module/animation/index.js +0 -3
  123. package/lib/module/animation/index.js.map +1 -1
  124. package/lib/module/dom/nodes/JsiSkDOM.d.ts +3 -3
  125. package/lib/module/dom/nodes/JsiSkDOM.js +1 -7
  126. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  127. package/lib/module/dom/nodes/Node.d.ts +0 -3
  128. package/lib/module/dom/nodes/Node.js +0 -5
  129. package/lib/module/dom/nodes/Node.js.map +1 -1
  130. package/lib/module/dom/nodes/datatypes/Rect.d.ts +1 -1
  131. package/lib/module/dom/nodes/drawings/RRectNode.d.ts +3 -3
  132. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  133. package/lib/module/dom/nodes/drawings/index.d.ts +0 -1
  134. package/lib/module/dom/nodes/drawings/index.js +0 -1
  135. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  136. package/lib/module/dom/types/Common.d.ts +2 -2
  137. package/lib/module/dom/types/Common.js.map +1 -1
  138. package/lib/module/dom/types/Drawings.d.ts +0 -4
  139. package/lib/module/dom/types/Drawings.js.map +1 -1
  140. package/lib/module/dom/types/NodeType.d.ts +0 -1
  141. package/lib/module/dom/types/NodeType.js +0 -1
  142. package/lib/module/dom/types/NodeType.js.map +1 -1
  143. package/lib/module/dom/types/SkDOM.d.ts +1 -2
  144. package/lib/module/dom/types/SkDOM.js.map +1 -1
  145. package/lib/module/headless/index.d.ts +3 -1
  146. package/lib/module/headless/index.js +5 -3
  147. package/lib/module/headless/index.js.map +1 -1
  148. package/lib/module/index.d.ts +0 -1
  149. package/lib/module/index.js +0 -1
  150. package/lib/module/index.js.map +1 -1
  151. package/lib/module/mock/index.js +1 -4
  152. package/lib/module/mock/index.js.map +1 -1
  153. package/lib/module/renderer/Canvas.js +2 -20
  154. package/lib/module/renderer/Canvas.js.map +1 -1
  155. package/lib/module/renderer/Container.d.ts +1 -3
  156. package/lib/module/renderer/Container.js +4 -6
  157. package/lib/module/renderer/Container.js.map +1 -1
  158. package/lib/module/renderer/HostComponents.d.ts +1 -6
  159. package/lib/module/renderer/HostComponents.js +0 -3
  160. package/lib/module/renderer/HostComponents.js.map +1 -1
  161. package/lib/module/renderer/HostConfig.js +3 -23
  162. package/lib/module/renderer/HostConfig.js.map +1 -1
  163. package/lib/module/renderer/Reconciler.d.ts +1 -5
  164. package/lib/module/renderer/Reconciler.js +3 -16
  165. package/lib/module/renderer/Reconciler.js.map +1 -1
  166. package/lib/module/renderer/components/index.d.ts +0 -1
  167. package/lib/module/renderer/components/index.js +0 -1
  168. package/lib/module/renderer/components/index.js.map +1 -1
  169. package/lib/module/renderer/index.d.ts +0 -1
  170. package/lib/module/renderer/index.js +0 -1
  171. package/lib/module/renderer/index.js.map +1 -1
  172. package/lib/module/renderer/processors/Animations/Animations.d.ts +1 -8
  173. package/lib/module/renderer/processors/Animations/Animations.js +0 -28
  174. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  175. package/lib/module/skia/types/Canvas.d.ts +4 -4
  176. package/lib/module/skia/types/Canvas.js.map +1 -1
  177. package/lib/module/skia/types/Paragraph/Paragraph.d.ts +23 -0
  178. package/lib/module/skia/types/Paragraph/Paragraph.js.map +1 -1
  179. package/lib/module/skia/types/Path/Path.d.ts +2 -2
  180. package/lib/module/skia/types/Path/Path.js.map +1 -1
  181. package/lib/module/skia/types/RRect.d.ts +9 -0
  182. package/lib/module/skia/types/RRect.js.map +1 -1
  183. package/lib/module/skia/web/JsiSkCanvas.d.ts +4 -4
  184. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  185. package/lib/module/skia/web/JsiSkParagraph.d.ts +3 -0
  186. package/lib/module/skia/web/JsiSkParagraph.js +12 -0
  187. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  188. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +5 -2
  189. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  190. package/lib/module/skia/web/JsiSkPath.d.ts +2 -2
  191. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  192. package/lib/module/skia/web/JsiSkRRect.d.ts +2 -2
  193. package/lib/module/skia/web/JsiSkRRect.js +4 -0
  194. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  195. package/lib/module/views/SkiaBaseWebView.d.ts +0 -7
  196. package/lib/module/views/SkiaBaseWebView.js +0 -17
  197. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  198. package/lib/module/views/SkiaDomView.d.ts +0 -7
  199. package/lib/module/views/SkiaDomView.js +2 -13
  200. package/lib/module/views/SkiaDomView.js.map +1 -1
  201. package/lib/module/views/SkiaDomView.web.js +4 -13
  202. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  203. package/lib/module/views/SkiaPictureView.d.ts +0 -7
  204. package/lib/module/views/SkiaPictureView.js +2 -13
  205. package/lib/module/views/SkiaPictureView.js.map +1 -1
  206. package/lib/module/views/SkiaViewNativeId.d.ts +3 -0
  207. package/lib/module/views/SkiaViewNativeId.js +4 -0
  208. package/lib/module/views/SkiaViewNativeId.js.map +1 -0
  209. package/lib/module/views/index.d.ts +0 -2
  210. package/lib/module/views/index.js +0 -2
  211. package/lib/module/views/index.js.map +1 -1
  212. package/lib/module/views/types.d.ts +2 -15
  213. package/lib/module/views/types.js.map +1 -1
  214. package/lib/typescript/src/animation/index.d.ts +0 -3
  215. package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +3 -3
  216. package/lib/typescript/src/dom/nodes/Node.d.ts +0 -3
  217. package/lib/typescript/src/dom/nodes/datatypes/Rect.d.ts +1 -1
  218. package/lib/typescript/src/dom/nodes/drawings/RRectNode.d.ts +3 -3
  219. package/lib/typescript/src/dom/nodes/drawings/index.d.ts +0 -1
  220. package/lib/typescript/src/dom/types/Common.d.ts +2 -2
  221. package/lib/typescript/src/dom/types/Drawings.d.ts +0 -4
  222. package/lib/typescript/src/dom/types/NodeType.d.ts +0 -1
  223. package/lib/typescript/src/dom/types/SkDOM.d.ts +1 -2
  224. package/lib/typescript/src/headless/index.d.ts +3 -1
  225. package/lib/typescript/src/index.d.ts +0 -1
  226. package/lib/typescript/src/renderer/Container.d.ts +1 -3
  227. package/lib/typescript/src/renderer/HostComponents.d.ts +1 -6
  228. package/lib/typescript/src/renderer/Reconciler.d.ts +1 -5
  229. package/lib/typescript/src/renderer/components/index.d.ts +0 -1
  230. package/lib/typescript/src/renderer/index.d.ts +0 -1
  231. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +1 -8
  232. package/lib/typescript/src/skia/types/Canvas.d.ts +4 -4
  233. package/lib/typescript/src/skia/types/Paragraph/Paragraph.d.ts +23 -0
  234. package/lib/typescript/src/skia/types/Path/Path.d.ts +2 -2
  235. package/lib/typescript/src/skia/types/RRect.d.ts +9 -0
  236. package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +4 -4
  237. package/lib/typescript/src/skia/web/JsiSkParagraph.d.ts +3 -0
  238. package/lib/typescript/src/skia/web/JsiSkPath.d.ts +2 -2
  239. package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +2 -2
  240. package/lib/typescript/src/views/SkiaBaseWebView.d.ts +0 -7
  241. package/lib/typescript/src/views/SkiaDomView.d.ts +0 -7
  242. package/lib/typescript/src/views/SkiaPictureView.d.ts +0 -7
  243. package/lib/typescript/src/views/SkiaViewNativeId.d.ts +3 -0
  244. package/lib/typescript/src/views/index.d.ts +0 -2
  245. package/lib/typescript/src/views/types.d.ts +2 -15
  246. package/libs/android/arm64-v8a/libskia.a +0 -0
  247. package/libs/android/armeabi-v7a/libskia.a +0 -0
  248. package/libs/android/x86/libskia.a +0 -0
  249. package/libs/android/x86_64/libskia.a +0 -0
  250. package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
  251. package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  252. package/libs/ios/libskottie.xcframework/Info.plist +5 -5
  253. package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
  254. package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
  255. package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
  256. package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
  257. package/libs/ios/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
  258. package/libs/ios/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
  259. package/libs/ios/libskshaper.xcframework/Info.plist +5 -5
  260. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
  261. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  262. package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e/libskunicode.a +0 -0
  263. package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode.a +0 -0
  264. package/libs/ios/libsvg.xcframework/Info.plist +5 -5
  265. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
  266. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  267. package/package.json +1 -1
  268. package/src/animation/index.ts +0 -3
  269. package/src/dom/nodes/JsiSkDOM.ts +0 -12
  270. package/src/dom/nodes/Node.ts +0 -5
  271. package/src/dom/nodes/drawings/RRectNode.ts +2 -2
  272. package/src/dom/nodes/drawings/index.ts +0 -1
  273. package/src/dom/types/Common.ts +2 -1
  274. package/src/dom/types/Drawings.ts +0 -5
  275. package/src/dom/types/NodeType.ts +0 -1
  276. package/src/dom/types/SkDOM.ts +0 -4
  277. package/src/headless/index.ts +7 -3
  278. package/src/index.ts +0 -1
  279. package/src/mock/index.ts +0 -3
  280. package/src/renderer/Canvas.tsx +3 -21
  281. package/src/renderer/Container.tsx +1 -4
  282. package/src/renderer/HostComponents.ts +0 -13
  283. package/src/renderer/HostConfig.ts +3 -24
  284. package/src/renderer/Reconciler.tsx +1 -19
  285. package/src/renderer/components/index.ts +0 -1
  286. package/src/renderer/index.ts +0 -1
  287. package/src/renderer/processors/Animations/Animations.ts +1 -51
  288. package/src/skia/types/Canvas.ts +4 -4
  289. package/src/skia/types/Paragraph/Paragraph.ts +25 -0
  290. package/src/skia/types/Path/Path.ts +2 -2
  291. package/src/skia/types/RRect.ts +11 -0
  292. package/src/skia/web/JsiSkCanvas.ts +4 -4
  293. package/src/skia/web/JsiSkParagraph.ts +11 -0
  294. package/src/skia/web/JsiSkParagraphBuilderFactory.ts +9 -3
  295. package/src/skia/web/JsiSkPath.ts +2 -2
  296. package/src/skia/web/JsiSkRRect.ts +23 -2
  297. package/src/views/SkiaBaseWebView.tsx +0 -19
  298. package/src/views/SkiaDomView.tsx +1 -13
  299. package/src/views/SkiaDomView.web.tsx +1 -6
  300. package/src/views/SkiaPictureView.tsx +1 -13
  301. package/src/views/SkiaViewNativeId.ts +1 -0
  302. package/src/views/index.ts +0 -2
  303. package/src/views/types.ts +2 -26
  304. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +0 -44
  305. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawViewManager.java +0 -34
  306. package/cpp/rnskia/RNSkAnimation.h +0 -65
  307. package/cpp/rnskia/RNSkValueApi.h +0 -72
  308. package/cpp/rnskia/dom/base/JsiDependencyManager.h +0 -297
  309. package/cpp/rnskia/dom/nodes/JsiCustomDrawingNode.h +0 -127
  310. package/cpp/rnskia/dom/props/DrawingProp.h +0 -35
  311. package/cpp/rnskia/values/RNSkClockValue.h +0 -140
  312. package/cpp/rnskia/values/RNSkComputedValue.h +0 -104
  313. package/cpp/rnskia/values/RNSkReadonlyValue.h +0 -166
  314. package/cpp/rnskia/values/RNSkValue.h +0 -116
  315. package/ios/RNSkia-iOS/SkiaDrawView.h +0 -7
  316. package/ios/RNSkia-iOS/SkiaDrawView.mm +0 -72
  317. package/ios/RNSkia-iOS/SkiaDrawViewManager.h +0 -7
  318. package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +0 -50
  319. package/lib/commonjs/animation/decay/decay.d.ts +0 -2
  320. package/lib/commonjs/animation/decay/decay.js +0 -42
  321. package/lib/commonjs/animation/decay/decay.js.map +0 -1
  322. package/lib/commonjs/animation/decay/index.d.ts +0 -1
  323. package/lib/commonjs/animation/decay/index.js +0 -14
  324. package/lib/commonjs/animation/decay/index.js.map +0 -1
  325. package/lib/commonjs/animation/decay/runDecay.d.ts +0 -10
  326. package/lib/commonjs/animation/decay/runDecay.js +0 -48
  327. package/lib/commonjs/animation/decay/runDecay.js.map +0 -1
  328. package/lib/commonjs/animation/decay/types.d.ts +0 -21
  329. package/lib/commonjs/animation/decay/types.js +0 -6
  330. package/lib/commonjs/animation/decay/types.js.map +0 -1
  331. package/lib/commonjs/animation/spring/Spring.d.ts +0 -65
  332. package/lib/commonjs/animation/spring/Spring.js +0 -77
  333. package/lib/commonjs/animation/spring/Spring.js.map +0 -1
  334. package/lib/commonjs/animation/spring/functions/index.d.ts +0 -1
  335. package/lib/commonjs/animation/spring/functions/index.js +0 -14
  336. package/lib/commonjs/animation/spring/functions/index.js.map +0 -1
  337. package/lib/commonjs/animation/spring/functions/spring.d.ts +0 -10
  338. package/lib/commonjs/animation/spring/functions/spring.js +0 -94
  339. package/lib/commonjs/animation/spring/functions/spring.js.map +0 -1
  340. package/lib/commonjs/animation/spring/index.d.ts +0 -3
  341. package/lib/commonjs/animation/spring/index.js +0 -30
  342. package/lib/commonjs/animation/spring/index.js.map +0 -1
  343. package/lib/commonjs/animation/spring/runSpring.d.ts +0 -19
  344. package/lib/commonjs/animation/spring/runSpring.js +0 -35
  345. package/lib/commonjs/animation/spring/runSpring.js.map +0 -1
  346. package/lib/commonjs/animation/spring/types.d.ts +0 -6
  347. package/lib/commonjs/animation/spring/types.js +0 -2
  348. package/lib/commonjs/animation/spring/types.js.map +0 -1
  349. package/lib/commonjs/animation/spring/useSpring.d.ts +0 -13
  350. package/lib/commonjs/animation/spring/useSpring.js +0 -27
  351. package/lib/commonjs/animation/spring/useSpring.js.map +0 -1
  352. package/lib/commonjs/animation/timing/Easing.d.ts +0 -19
  353. package/lib/commonjs/animation/timing/Easing.js +0 -108
  354. package/lib/commonjs/animation/timing/Easing.js.map +0 -1
  355. package/lib/commonjs/animation/timing/createTiming.d.ts +0 -17
  356. package/lib/commonjs/animation/timing/createTiming.js +0 -55
  357. package/lib/commonjs/animation/timing/createTiming.js.map +0 -1
  358. package/lib/commonjs/animation/timing/functions/bezier.d.ts +0 -1
  359. package/lib/commonjs/animation/timing/functions/bezier.js +0 -147
  360. package/lib/commonjs/animation/timing/functions/bezier.js.map +0 -1
  361. package/lib/commonjs/animation/timing/functions/getResolvedParams.d.ts +0 -7
  362. package/lib/commonjs/animation/timing/functions/getResolvedParams.js +0 -52
  363. package/lib/commonjs/animation/timing/functions/getResolvedParams.js.map +0 -1
  364. package/lib/commonjs/animation/timing/functions/index.d.ts +0 -4
  365. package/lib/commonjs/animation/timing/functions/index.js +0 -54
  366. package/lib/commonjs/animation/timing/functions/index.js.map +0 -1
  367. package/lib/commonjs/animation/timing/functions/timing.d.ts +0 -17
  368. package/lib/commonjs/animation/timing/functions/timing.js +0 -50
  369. package/lib/commonjs/animation/timing/functions/timing.js.map +0 -1
  370. package/lib/commonjs/animation/timing/functions/types.d.ts +0 -7
  371. package/lib/commonjs/animation/timing/functions/types.js +0 -2
  372. package/lib/commonjs/animation/timing/functions/types.js.map +0 -1
  373. package/lib/commonjs/animation/timing/index.d.ts +0 -4
  374. package/lib/commonjs/animation/timing/index.js +0 -38
  375. package/lib/commonjs/animation/timing/index.js.map +0 -1
  376. package/lib/commonjs/animation/timing/runTiming.d.ts +0 -19
  377. package/lib/commonjs/animation/timing/runTiming.js +0 -36
  378. package/lib/commonjs/animation/timing/runTiming.js.map +0 -1
  379. package/lib/commonjs/animation/timing/useLoop.d.ts +0 -11
  380. package/lib/commonjs/animation/timing/useLoop.js +0 -25
  381. package/lib/commonjs/animation/timing/useLoop.js.map +0 -1
  382. package/lib/commonjs/animation/timing/useTiming.d.ts +0 -13
  383. package/lib/commonjs/animation/timing/useTiming.js +0 -67
  384. package/lib/commonjs/animation/timing/useTiming.js.map +0 -1
  385. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.d.ts +0 -8
  386. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js +0 -28
  387. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js.map +0 -1
  388. package/lib/commonjs/renderer/DependencyManager.d.ts +0 -46
  389. package/lib/commonjs/renderer/DependencyManager.js +0 -185
  390. package/lib/commonjs/renderer/DependencyManager.js.map +0 -1
  391. package/lib/commonjs/renderer/components/Drawing.d.ts +0 -8
  392. package/lib/commonjs/renderer/components/Drawing.js +0 -22
  393. package/lib/commonjs/renderer/components/Drawing.js.map +0 -1
  394. package/lib/commonjs/specs/SkiaDrawViewNativeComponent.d.ts +0 -8
  395. package/lib/commonjs/specs/SkiaDrawViewNativeComponent.js +0 -16
  396. package/lib/commonjs/specs/SkiaDrawViewNativeComponent.js.map +0 -1
  397. package/lib/commonjs/values/api.d.ts +0 -26
  398. package/lib/commonjs/values/api.js +0 -55
  399. package/lib/commonjs/values/api.js.map +0 -1
  400. package/lib/commonjs/values/api.web.d.ts +0 -2
  401. package/lib/commonjs/values/api.web.js +0 -18
  402. package/lib/commonjs/values/api.web.js.map +0 -1
  403. package/lib/commonjs/values/hooks/index.d.ts +0 -4
  404. package/lib/commonjs/values/hooks/index.js +0 -58
  405. package/lib/commonjs/values/hooks/index.js.map +0 -1
  406. package/lib/commonjs/values/hooks/useClockValue.d.ts +0 -9
  407. package/lib/commonjs/values/hooks/useClockValue.js +0 -30
  408. package/lib/commonjs/values/hooks/useClockValue.js.map +0 -1
  409. package/lib/commonjs/values/hooks/useComputedValue.d.ts +0 -11
  410. package/lib/commonjs/values/hooks/useComputedValue.js +0 -32
  411. package/lib/commonjs/values/hooks/useComputedValue.js.map +0 -1
  412. package/lib/commonjs/values/hooks/useValue.d.ts +0 -10
  413. package/lib/commonjs/values/hooks/useValue.js +0 -26
  414. package/lib/commonjs/values/hooks/useValue.js.map +0 -1
  415. package/lib/commonjs/values/hooks/useValueEffect.d.ts +0 -10
  416. package/lib/commonjs/values/hooks/useValueEffect.js +0 -25
  417. package/lib/commonjs/values/hooks/useValueEffect.js.map +0 -1
  418. package/lib/commonjs/values/index.d.ts +0 -4
  419. package/lib/commonjs/values/index.js +0 -58
  420. package/lib/commonjs/values/index.js.map +0 -1
  421. package/lib/commonjs/values/selector.d.ts +0 -14
  422. package/lib/commonjs/values/selector.js +0 -24
  423. package/lib/commonjs/values/selector.js.map +0 -1
  424. package/lib/commonjs/values/types.d.ts +0 -63
  425. package/lib/commonjs/values/types.js +0 -2
  426. package/lib/commonjs/values/types.js.map +0 -1
  427. package/lib/commonjs/values/web/RNSkAnimation.d.ts +0 -9
  428. package/lib/commonjs/values/web/RNSkAnimation.js +0 -46
  429. package/lib/commonjs/values/web/RNSkAnimation.js.map +0 -1
  430. package/lib/commonjs/values/web/RNSkClockValue.d.ts +0 -13
  431. package/lib/commonjs/values/web/RNSkClockValue.js +0 -75
  432. package/lib/commonjs/values/web/RNSkClockValue.js.map +0 -1
  433. package/lib/commonjs/values/web/RNSkComputedValue.d.ts +0 -10
  434. package/lib/commonjs/values/web/RNSkComputedValue.js +0 -59
  435. package/lib/commonjs/values/web/RNSkComputedValue.js.map +0 -1
  436. package/lib/commonjs/values/web/RNSkReadonlyValue.d.ts +0 -12
  437. package/lib/commonjs/values/web/RNSkReadonlyValue.js +0 -51
  438. package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +0 -1
  439. package/lib/commonjs/values/web/RNSkValue.d.ts +0 -14
  440. package/lib/commonjs/values/web/RNSkValue.js +0 -73
  441. package/lib/commonjs/values/web/RNSkValue.js.map +0 -1
  442. package/lib/commonjs/values/web/api.d.ts +0 -2
  443. package/lib/commonjs/values/web/api.js +0 -31
  444. package/lib/commonjs/values/web/api.js.map +0 -1
  445. package/lib/commonjs/values/web/index.d.ts +0 -1
  446. package/lib/commonjs/values/web/index.js +0 -19
  447. package/lib/commonjs/values/web/index.js.map +0 -1
  448. package/lib/commonjs/views/SkiaView.d.ts +0 -35
  449. package/lib/commonjs/views/SkiaView.js +0 -139
  450. package/lib/commonjs/views/SkiaView.js.map +0 -1
  451. package/lib/commonjs/views/SkiaView.web.d.ts +0 -7
  452. package/lib/commonjs/views/SkiaView.web.js +0 -30
  453. package/lib/commonjs/views/SkiaView.web.js.map +0 -1
  454. package/lib/commonjs/views/useDrawCallback.d.ts +0 -8
  455. package/lib/commonjs/views/useDrawCallback.js +0 -23
  456. package/lib/commonjs/views/useDrawCallback.js.map +0 -1
  457. package/lib/module/animation/decay/decay.d.ts +0 -2
  458. package/lib/module/animation/decay/decay.js +0 -33
  459. package/lib/module/animation/decay/decay.js.map +0 -1
  460. package/lib/module/animation/decay/index.d.ts +0 -1
  461. package/lib/module/animation/decay/index.js +0 -2
  462. package/lib/module/animation/decay/index.js.map +0 -1
  463. package/lib/module/animation/decay/runDecay.d.ts +0 -10
  464. package/lib/module/animation/decay/runDecay.js +0 -38
  465. package/lib/module/animation/decay/runDecay.js.map +0 -1
  466. package/lib/module/animation/decay/types.d.ts +0 -21
  467. package/lib/module/animation/decay/types.js +0 -2
  468. package/lib/module/animation/decay/types.js.map +0 -1
  469. package/lib/module/animation/spring/Spring.d.ts +0 -65
  470. package/lib/module/animation/spring/Spring.js +0 -69
  471. package/lib/module/animation/spring/Spring.js.map +0 -1
  472. package/lib/module/animation/spring/functions/index.d.ts +0 -1
  473. package/lib/module/animation/spring/functions/index.js +0 -2
  474. package/lib/module/animation/spring/functions/index.js.map +0 -1
  475. package/lib/module/animation/spring/functions/spring.d.ts +0 -10
  476. package/lib/module/animation/spring/functions/spring.js +0 -85
  477. package/lib/module/animation/spring/functions/spring.js.map +0 -1
  478. package/lib/module/animation/spring/index.d.ts +0 -3
  479. package/lib/module/animation/spring/index.js +0 -4
  480. package/lib/module/animation/spring/index.js.map +0 -1
  481. package/lib/module/animation/spring/runSpring.d.ts +0 -19
  482. package/lib/module/animation/spring/runSpring.js +0 -24
  483. package/lib/module/animation/spring/runSpring.js.map +0 -1
  484. package/lib/module/animation/spring/types.d.ts +0 -6
  485. package/lib/module/animation/spring/types.js +0 -2
  486. package/lib/module/animation/spring/types.js.map +0 -1
  487. package/lib/module/animation/spring/useSpring.d.ts +0 -13
  488. package/lib/module/animation/spring/useSpring.js +0 -16
  489. package/lib/module/animation/spring/useSpring.js.map +0 -1
  490. package/lib/module/animation/timing/Easing.d.ts +0 -19
  491. package/lib/module/animation/timing/Easing.js +0 -98
  492. package/lib/module/animation/timing/Easing.js.map +0 -1
  493. package/lib/module/animation/timing/createTiming.d.ts +0 -17
  494. package/lib/module/animation/timing/createTiming.js +0 -49
  495. package/lib/module/animation/timing/createTiming.js.map +0 -1
  496. package/lib/module/animation/timing/functions/bezier.d.ts +0 -1
  497. package/lib/module/animation/timing/functions/bezier.js +0 -141
  498. package/lib/module/animation/timing/functions/bezier.js.map +0 -1
  499. package/lib/module/animation/timing/functions/getResolvedParams.d.ts +0 -7
  500. package/lib/module/animation/timing/functions/getResolvedParams.js +0 -48
  501. package/lib/module/animation/timing/functions/getResolvedParams.js.map +0 -1
  502. package/lib/module/animation/timing/functions/index.d.ts +0 -4
  503. package/lib/module/animation/timing/functions/index.js +0 -5
  504. package/lib/module/animation/timing/functions/index.js.map +0 -1
  505. package/lib/module/animation/timing/functions/timing.d.ts +0 -17
  506. package/lib/module/animation/timing/functions/timing.js +0 -41
  507. package/lib/module/animation/timing/functions/timing.js.map +0 -1
  508. package/lib/module/animation/timing/functions/types.d.ts +0 -7
  509. package/lib/module/animation/timing/functions/types.js +0 -2
  510. package/lib/module/animation/timing/functions/types.js.map +0 -1
  511. package/lib/module/animation/timing/index.d.ts +0 -4
  512. package/lib/module/animation/timing/index.js +0 -5
  513. package/lib/module/animation/timing/index.js.map +0 -1
  514. package/lib/module/animation/timing/runTiming.d.ts +0 -19
  515. package/lib/module/animation/timing/runTiming.js +0 -26
  516. package/lib/module/animation/timing/runTiming.js.map +0 -1
  517. package/lib/module/animation/timing/useLoop.d.ts +0 -11
  518. package/lib/module/animation/timing/useLoop.js +0 -16
  519. package/lib/module/animation/timing/useLoop.js.map +0 -1
  520. package/lib/module/animation/timing/useTiming.d.ts +0 -13
  521. package/lib/module/animation/timing/useTiming.js +0 -57
  522. package/lib/module/animation/timing/useTiming.js.map +0 -1
  523. package/lib/module/dom/nodes/drawings/CustomDrawingNode.d.ts +0 -8
  524. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js +0 -17
  525. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js.map +0 -1
  526. package/lib/module/renderer/DependencyManager.d.ts +0 -46
  527. package/lib/module/renderer/DependencyManager.js +0 -174
  528. package/lib/module/renderer/DependencyManager.js.map +0 -1
  529. package/lib/module/renderer/components/Drawing.d.ts +0 -8
  530. package/lib/module/renderer/components/Drawing.js +0 -11
  531. package/lib/module/renderer/components/Drawing.js.map +0 -1
  532. package/lib/module/specs/SkiaDrawViewNativeComponent.d.ts +0 -8
  533. package/lib/module/specs/SkiaDrawViewNativeComponent.js +0 -4
  534. package/lib/module/specs/SkiaDrawViewNativeComponent.js.map +0 -1
  535. package/lib/module/values/api.d.ts +0 -26
  536. package/lib/module/values/api.js +0 -48
  537. package/lib/module/values/api.js.map +0 -1
  538. package/lib/module/values/api.web.d.ts +0 -2
  539. package/lib/module/values/api.web.js +0 -7
  540. package/lib/module/values/api.web.js.map +0 -1
  541. package/lib/module/values/hooks/index.d.ts +0 -4
  542. package/lib/module/values/hooks/index.js +0 -5
  543. package/lib/module/values/hooks/index.js.map +0 -1
  544. package/lib/module/values/hooks/useClockValue.d.ts +0 -9
  545. package/lib/module/values/hooks/useClockValue.js +0 -20
  546. package/lib/module/values/hooks/useClockValue.js.map +0 -1
  547. package/lib/module/values/hooks/useComputedValue.d.ts +0 -11
  548. package/lib/module/values/hooks/useComputedValue.js +0 -21
  549. package/lib/module/values/hooks/useComputedValue.js.map +0 -1
  550. package/lib/module/values/hooks/useValue.d.ts +0 -10
  551. package/lib/module/values/hooks/useValue.js +0 -16
  552. package/lib/module/values/hooks/useValue.js.map +0 -1
  553. package/lib/module/values/hooks/useValueEffect.d.ts +0 -10
  554. package/lib/module/values/hooks/useValueEffect.js +0 -16
  555. package/lib/module/values/hooks/useValueEffect.js.map +0 -1
  556. package/lib/module/values/index.d.ts +0 -4
  557. package/lib/module/values/index.js +0 -5
  558. package/lib/module/values/index.js.map +0 -1
  559. package/lib/module/values/selector.d.ts +0 -14
  560. package/lib/module/values/selector.js +0 -15
  561. package/lib/module/values/selector.js.map +0 -1
  562. package/lib/module/values/types.d.ts +0 -63
  563. package/lib/module/values/types.js +0 -2
  564. package/lib/module/values/types.js.map +0 -1
  565. package/lib/module/values/web/RNSkAnimation.d.ts +0 -9
  566. package/lib/module/values/web/RNSkAnimation.js +0 -36
  567. package/lib/module/values/web/RNSkAnimation.js.map +0 -1
  568. package/lib/module/values/web/RNSkClockValue.d.ts +0 -13
  569. package/lib/module/values/web/RNSkClockValue.js +0 -65
  570. package/lib/module/values/web/RNSkClockValue.js.map +0 -1
  571. package/lib/module/values/web/RNSkComputedValue.d.ts +0 -10
  572. package/lib/module/values/web/RNSkComputedValue.js +0 -49
  573. package/lib/module/values/web/RNSkComputedValue.js.map +0 -1
  574. package/lib/module/values/web/RNSkReadonlyValue.d.ts +0 -12
  575. package/lib/module/values/web/RNSkReadonlyValue.js +0 -42
  576. package/lib/module/values/web/RNSkReadonlyValue.js.map +0 -1
  577. package/lib/module/values/web/RNSkValue.d.ts +0 -14
  578. package/lib/module/values/web/RNSkValue.js +0 -63
  579. package/lib/module/values/web/RNSkValue.js.map +0 -1
  580. package/lib/module/values/web/api.d.ts +0 -2
  581. package/lib/module/values/web/api.js +0 -19
  582. package/lib/module/values/web/api.js.map +0 -1
  583. package/lib/module/values/web/index.d.ts +0 -1
  584. package/lib/module/values/web/index.js +0 -2
  585. package/lib/module/values/web/index.js.map +0 -1
  586. package/lib/module/views/SkiaView.d.ts +0 -35
  587. package/lib/module/views/SkiaView.js +0 -119
  588. package/lib/module/views/SkiaView.js.map +0 -1
  589. package/lib/module/views/SkiaView.web.d.ts +0 -7
  590. package/lib/module/views/SkiaView.web.js +0 -20
  591. package/lib/module/views/SkiaView.web.js.map +0 -1
  592. package/lib/module/views/useDrawCallback.d.ts +0 -8
  593. package/lib/module/views/useDrawCallback.js +0 -14
  594. package/lib/module/views/useDrawCallback.js.map +0 -1
  595. package/lib/typescript/src/animation/decay/decay.d.ts +0 -2
  596. package/lib/typescript/src/animation/decay/index.d.ts +0 -1
  597. package/lib/typescript/src/animation/decay/runDecay.d.ts +0 -10
  598. package/lib/typescript/src/animation/decay/types.d.ts +0 -21
  599. package/lib/typescript/src/animation/spring/Spring.d.ts +0 -65
  600. package/lib/typescript/src/animation/spring/functions/index.d.ts +0 -1
  601. package/lib/typescript/src/animation/spring/functions/spring.d.ts +0 -10
  602. package/lib/typescript/src/animation/spring/index.d.ts +0 -3
  603. package/lib/typescript/src/animation/spring/runSpring.d.ts +0 -19
  604. package/lib/typescript/src/animation/spring/types.d.ts +0 -6
  605. package/lib/typescript/src/animation/spring/useSpring.d.ts +0 -13
  606. package/lib/typescript/src/animation/timing/Easing.d.ts +0 -19
  607. package/lib/typescript/src/animation/timing/createTiming.d.ts +0 -17
  608. package/lib/typescript/src/animation/timing/functions/bezier.d.ts +0 -1
  609. package/lib/typescript/src/animation/timing/functions/getResolvedParams.d.ts +0 -7
  610. package/lib/typescript/src/animation/timing/functions/index.d.ts +0 -4
  611. package/lib/typescript/src/animation/timing/functions/timing.d.ts +0 -17
  612. package/lib/typescript/src/animation/timing/functions/types.d.ts +0 -7
  613. package/lib/typescript/src/animation/timing/index.d.ts +0 -4
  614. package/lib/typescript/src/animation/timing/runTiming.d.ts +0 -19
  615. package/lib/typescript/src/animation/timing/useLoop.d.ts +0 -11
  616. package/lib/typescript/src/animation/timing/useTiming.d.ts +0 -13
  617. package/lib/typescript/src/dom/nodes/drawings/CustomDrawingNode.d.ts +0 -8
  618. package/lib/typescript/src/renderer/DependencyManager.d.ts +0 -46
  619. package/lib/typescript/src/renderer/components/Drawing.d.ts +0 -8
  620. package/lib/typescript/src/specs/SkiaDrawViewNativeComponent.d.ts +0 -8
  621. package/lib/typescript/src/values/api.d.ts +0 -26
  622. package/lib/typescript/src/values/api.web.d.ts +0 -2
  623. package/lib/typescript/src/values/hooks/index.d.ts +0 -4
  624. package/lib/typescript/src/values/hooks/useClockValue.d.ts +0 -9
  625. package/lib/typescript/src/values/hooks/useComputedValue.d.ts +0 -11
  626. package/lib/typescript/src/values/hooks/useValue.d.ts +0 -10
  627. package/lib/typescript/src/values/hooks/useValueEffect.d.ts +0 -10
  628. package/lib/typescript/src/values/index.d.ts +0 -4
  629. package/lib/typescript/src/values/selector.d.ts +0 -14
  630. package/lib/typescript/src/values/types.d.ts +0 -63
  631. package/lib/typescript/src/values/web/RNSkAnimation.d.ts +0 -9
  632. package/lib/typescript/src/values/web/RNSkClockValue.d.ts +0 -13
  633. package/lib/typescript/src/values/web/RNSkComputedValue.d.ts +0 -10
  634. package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +0 -12
  635. package/lib/typescript/src/values/web/RNSkValue.d.ts +0 -14
  636. package/lib/typescript/src/values/web/api.d.ts +0 -2
  637. package/lib/typescript/src/values/web/index.d.ts +0 -1
  638. package/lib/typescript/src/views/SkiaView.d.ts +0 -35
  639. package/lib/typescript/src/views/SkiaView.web.d.ts +0 -7
  640. package/lib/typescript/src/views/useDrawCallback.d.ts +0 -8
  641. package/src/animation/decay/decay.ts +0 -35
  642. package/src/animation/decay/index.ts +0 -1
  643. package/src/animation/decay/runDecay.ts +0 -40
  644. package/src/animation/decay/types.ts +0 -24
  645. package/src/animation/spring/Spring.ts +0 -61
  646. package/src/animation/spring/functions/index.ts +0 -1
  647. package/src/animation/spring/functions/spring.ts +0 -86
  648. package/src/animation/spring/index.ts +0 -3
  649. package/src/animation/spring/runSpring.ts +0 -40
  650. package/src/animation/spring/types.ts +0 -6
  651. package/src/animation/spring/useSpring.ts +0 -31
  652. package/src/animation/timing/Easing.ts +0 -102
  653. package/src/animation/timing/createTiming.ts +0 -62
  654. package/src/animation/timing/functions/bezier.ts +0 -165
  655. package/src/animation/timing/functions/getResolvedParams.ts +0 -50
  656. package/src/animation/timing/functions/index.ts +0 -4
  657. package/src/animation/timing/functions/timing.ts +0 -44
  658. package/src/animation/timing/functions/types.ts +0 -8
  659. package/src/animation/timing/index.ts +0 -4
  660. package/src/animation/timing/runTiming.ts +0 -36
  661. package/src/animation/timing/useLoop.ts +0 -21
  662. package/src/animation/timing/useTiming.ts +0 -71
  663. package/src/dom/nodes/drawings/CustomDrawingNode.ts +0 -21
  664. package/src/renderer/DependencyManager.tsx +0 -196
  665. package/src/renderer/components/Drawing.tsx +0 -12
  666. package/src/specs/SkiaDrawViewNativeComponent.ts +0 -10
  667. package/src/values/api.ts +0 -61
  668. package/src/values/api.web.ts +0 -5
  669. package/src/values/hooks/index.ts +0 -4
  670. package/src/values/hooks/useClockValue.ts +0 -21
  671. package/src/values/hooks/useComputedValue.ts +0 -24
  672. package/src/values/hooks/useValue.ts +0 -17
  673. package/src/values/hooks/useValueEffect.ts +0 -18
  674. package/src/values/index.ts +0 -4
  675. package/src/values/selector.ts +0 -24
  676. package/src/values/types.ts +0 -73
  677. package/src/values/web/RNSkAnimation.ts +0 -33
  678. package/src/values/web/RNSkClockValue.ts +0 -58
  679. package/src/values/web/RNSkComputedValue.ts +0 -49
  680. package/src/values/web/RNSkReadonlyValue.ts +0 -38
  681. package/src/values/web/RNSkValue.ts +0 -57
  682. package/src/values/web/api.ts +0 -33
  683. package/src/values/web/index.ts +0 -1
  684. package/src/views/SkiaView.tsx +0 -111
  685. package/src/views/SkiaView.web.tsx +0 -22
  686. package/src/views/useDrawCallback.ts +0 -19
@@ -1,141 +0,0 @@
1
- // eslint-disable-next-line max-len
2
- // Taken from https://github.com/facebook/react-native/blob/0b9ea60b4fee8cacc36e7160e31b91fc114dbc0d/Libraries/Animated/src/bezier.js
3
- const NEWTON_ITERATIONS = 4;
4
- const NEWTON_MIN_SLOPE = 0.001;
5
- const SUBDIVISION_PRECISION = 0.0000001;
6
- const SUBDIVISION_MAX_ITERATIONS = 10;
7
- const kSplineTableSize = 11;
8
- const kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);
9
- const float32ArraySupported = typeof Float32Array === "function";
10
-
11
- function a(aA1, aA2) {
12
- return 1.0 - 3.0 * aA2 + 3.0 * aA1;
13
- }
14
-
15
- function b(aA1, aA2) {
16
- return 3.0 * aA2 - 6.0 * aA1;
17
- }
18
-
19
- function c(aA1) {
20
- return 3.0 * aA1;
21
- } // Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
22
-
23
-
24
- function calcBezier(aT, aA1, aA2) {
25
- return ((a(aA1, aA2) * aT + b(aA1, aA2)) * aT + c(aA1)) * aT;
26
- } // Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.
27
-
28
-
29
- function getSlope(aT, aA1, aA2) {
30
- return 3.0 * a(aA1, aA2) * aT * aT + 2.0 * b(aA1, aA2) * aT + c(aA1);
31
- }
32
-
33
- function binarySubdivide(_ref) {
34
- let {
35
- aX,
36
- _aA,
37
- _aB,
38
- mX1,
39
- mX2
40
- } = _ref;
41
- let currentX;
42
- let currentT;
43
- let i = 0;
44
- let aA = _aA;
45
- let aB = _aB;
46
-
47
- do {
48
- currentT = aA + (aB - aA) / 2.0;
49
- currentX = calcBezier(currentT, mX1, mX2) - aX;
50
-
51
- if (currentX > 0.0) {
52
- aB = currentT;
53
- } else {
54
- aA = currentT;
55
- }
56
- } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
57
-
58
- return currentT;
59
- }
60
-
61
- function newtonRaphsonIterate(aX, _aGuessT, mX1, mX2) {
62
- let aGuessT = _aGuessT;
63
-
64
- for (let i = 0; i < NEWTON_ITERATIONS; ++i) {
65
- const currentSlope = getSlope(aGuessT, mX1, mX2);
66
-
67
- if (currentSlope === 0.0) {
68
- return aGuessT;
69
- }
70
-
71
- const currentX = calcBezier(aGuessT, mX1, mX2) - aX;
72
- aGuessT -= currentX / currentSlope;
73
- }
74
-
75
- return aGuessT;
76
- }
77
-
78
- export function bezier(mX1, mY1, mX2, mY2) {
79
- if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) {
80
- throw new Error("bezier x values must be in [0, 1] range");
81
- } // Precompute samples table
82
-
83
-
84
- const sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);
85
-
86
- if (mX1 !== mY1 || mX2 !== mY2) {
87
- for (let i = 0; i < kSplineTableSize; ++i) {
88
- sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);
89
- }
90
- }
91
-
92
- function getTForX(aX) {
93
- let intervalStart = 0.0;
94
- let currentSample = 1;
95
- const lastSample = kSplineTableSize - 1;
96
-
97
- for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {
98
- intervalStart += kSampleStepSize;
99
- }
100
-
101
- --currentSample; // Interpolate to provide an initial guess for t
102
-
103
- const dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);
104
- const guessForT = intervalStart + dist * kSampleStepSize;
105
- const initialSlope = getSlope(guessForT, mX1, mX2);
106
-
107
- if (initialSlope >= NEWTON_MIN_SLOPE) {
108
- return newtonRaphsonIterate(aX, guessForT, mX1, mX2);
109
- }
110
-
111
- if (initialSlope === 0.0) {
112
- return guessForT;
113
- }
114
-
115
- return binarySubdivide({
116
- aX,
117
- _aA: intervalStart,
118
- _aB: intervalStart + kSampleStepSize,
119
- mX1,
120
- mX2
121
- });
122
- }
123
-
124
- return function (x) {
125
- if (mX1 === mY1 && mX2 === mY2) {
126
- return x; // linear
127
- } // Because JavaScript number are imprecise, we should guarantee the extremes are right.
128
-
129
-
130
- if (x === 0) {
131
- return 0;
132
- }
133
-
134
- if (x === 1) {
135
- return 1;
136
- }
137
-
138
- return calcBezier(getTForX(x), mY1, mY2);
139
- };
140
- }
141
- //# sourceMappingURL=bezier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["NEWTON_ITERATIONS","NEWTON_MIN_SLOPE","SUBDIVISION_PRECISION","SUBDIVISION_MAX_ITERATIONS","kSplineTableSize","kSampleStepSize","float32ArraySupported","Float32Array","a","aA1","aA2","b","c","calcBezier","aT","getSlope","binarySubdivide","aX","_aA","_aB","mX1","mX2","currentX","currentT","i","aA","aB","Math","abs","newtonRaphsonIterate","_aGuessT","aGuessT","currentSlope","bezier","mY1","mY2","Error","sampleValues","Array","getTForX","intervalStart","currentSample","lastSample","dist","guessForT","initialSlope","x"],"sources":["bezier.ts"],"sourcesContent":["// eslint-disable-next-line max-len\n// Taken from https://github.com/facebook/react-native/blob/0b9ea60b4fee8cacc36e7160e31b91fc114dbc0d/Libraries/Animated/src/bezier.js\n\nconst NEWTON_ITERATIONS = 4;\nconst NEWTON_MIN_SLOPE = 0.001;\nconst SUBDIVISION_PRECISION = 0.0000001;\nconst SUBDIVISION_MAX_ITERATIONS = 10;\n\nconst kSplineTableSize = 11;\nconst kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\nconst float32ArraySupported = typeof Float32Array === \"function\";\n\nfunction a(aA1: number, aA2: number): number {\n return 1.0 - 3.0 * aA2 + 3.0 * aA1;\n}\n\nfunction b(aA1: number, aA2: number): number {\n return 3.0 * aA2 - 6.0 * aA1;\n}\n\nfunction c(aA1: number): number {\n return 3.0 * aA1;\n}\n\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nfunction calcBezier(aT: number, aA1: number, aA2: number): number {\n return ((a(aA1, aA2) * aT + b(aA1, aA2)) * aT + c(aA1)) * aT;\n}\n\n// Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.\nfunction getSlope(aT: number, aA1: number, aA2: number): number {\n return 3.0 * a(aA1, aA2) * aT * aT + 2.0 * b(aA1, aA2) * aT + c(aA1);\n}\n\nfunction binarySubdivide({\n aX,\n _aA,\n _aB,\n mX1,\n mX2,\n}: {\n aX: number;\n _aA: number;\n _aB: number;\n mX1: number;\n mX2: number;\n}): number {\n let currentX;\n let currentT;\n let i = 0;\n let aA = _aA;\n let aB = _aB;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) {\n aB = currentT;\n } else {\n aA = currentT;\n }\n } while (\n Math.abs(currentX) > SUBDIVISION_PRECISION &&\n ++i < SUBDIVISION_MAX_ITERATIONS\n );\n\n return currentT;\n}\n\nfunction newtonRaphsonIterate(\n aX: number,\n _aGuessT: number,\n mX1: number,\n mX2: number\n): number {\n let aGuessT = _aGuessT;\n for (let i = 0; i < NEWTON_ITERATIONS; ++i) {\n const currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) {\n return aGuessT;\n }\n\n const currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n\n return aGuessT;\n}\n\nexport function bezier(\n mX1: number,\n mY1: number,\n mX2: number,\n mY2: number\n): (x: number) => number {\n if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) {\n throw new Error(\"bezier x values must be in [0, 1] range\");\n }\n\n // Precompute samples table\n const sampleValues = float32ArraySupported\n ? new Float32Array(kSplineTableSize)\n : new Array(kSplineTableSize);\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (let i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX: number): number {\n let intervalStart = 0.0;\n let currentSample = 1;\n const lastSample = kSplineTableSize - 1;\n\n for (\n ;\n currentSample !== lastSample && sampleValues[currentSample] <= aX;\n ++currentSample\n ) {\n intervalStart += kSampleStepSize;\n }\n\n --currentSample;\n\n // Interpolate to provide an initial guess for t\n const dist =\n (aX - sampleValues[currentSample]) /\n (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n const guessForT = intervalStart + dist * kSampleStepSize;\n\n const initialSlope = getSlope(guessForT, mX1, mX2);\n if (initialSlope >= NEWTON_MIN_SLOPE) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n }\n\n if (initialSlope === 0.0) {\n return guessForT;\n }\n\n return binarySubdivide({\n aX,\n _aA: intervalStart,\n _aB: intervalStart + kSampleStepSize,\n mX1,\n mX2,\n });\n }\n\n return function (x: number): number {\n if (mX1 === mY1 && mX2 === mY2) {\n return x; // linear\n }\n\n // Because JavaScript number are imprecise, we should guarantee the extremes are right.\n if (x === 0) {\n return 0;\n }\n\n if (x === 1) {\n return 1;\n }\n\n return calcBezier(getTForX(x), mY1, mY2);\n };\n}\n"],"mappings":"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"}
@@ -1,7 +0,0 @@
1
- import type { RequiredAnimationParams, AnimationParams, TimingConfig } from "../../types";
2
- /**
3
- * Resolves parameters from optional values to a single object
4
- * @param toOrParams Params or to value
5
- * @param config timing/spring configuration
6
- */
7
- export declare const getResolvedParams: (toOrParams: number | AnimationParams, config?: TimingConfig) => RequiredAnimationParams & Required<TimingConfig>;
@@ -1,48 +0,0 @@
1
- const DefaultParameters = {
2
- to: 1,
3
- loop: false,
4
- yoyo: false,
5
- immediate: true
6
- };
7
- const DefaultTimingConfig = {
8
- duration: 1000,
9
- easing: t => t
10
- };
11
- /**
12
- * Resolves parameters from optional values to a single object
13
- * @param toOrParams Params or to value
14
- * @param config timing/spring configuration
15
- */
16
-
17
- export const getResolvedParams = (toOrParams, config) => {
18
- let resolvedParameters = { ...DefaultParameters
19
- };
20
-
21
- if (typeof toOrParams === "number") {
22
- resolvedParameters.to = toOrParams;
23
- } else {
24
- var _toOrParams$from, _toOrParams$to, _toOrParams$loop, _toOrParams$yoyo;
25
-
26
- resolvedParameters = {
27
- from: (_toOrParams$from = toOrParams.from) !== null && _toOrParams$from !== void 0 ? _toOrParams$from : resolvedParameters.from,
28
- to: (_toOrParams$to = toOrParams.to) !== null && _toOrParams$to !== void 0 ? _toOrParams$to : resolvedParameters.to,
29
- loop: (_toOrParams$loop = toOrParams.loop) !== null && _toOrParams$loop !== void 0 ? _toOrParams$loop : resolvedParameters.loop,
30
- yoyo: (_toOrParams$yoyo = toOrParams.yoyo) !== null && _toOrParams$yoyo !== void 0 ? _toOrParams$yoyo : resolvedParameters.yoyo
31
- };
32
- }
33
-
34
- const resolvedConfig = { ...DefaultTimingConfig
35
- };
36
-
37
- if (config) {
38
- var _config$duration, _config$easing;
39
-
40
- resolvedConfig.duration = (_config$duration = config.duration) !== null && _config$duration !== void 0 ? _config$duration : DefaultTimingConfig.duration;
41
- resolvedConfig.easing = (_config$easing = config.easing) !== null && _config$easing !== void 0 ? _config$easing : DefaultTimingConfig.easing;
42
- }
43
-
44
- return { ...resolvedParameters,
45
- ...resolvedConfig
46
- };
47
- };
48
- //# sourceMappingURL=getResolvedParams.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["DefaultParameters","to","loop","yoyo","immediate","DefaultTimingConfig","duration","easing","t","getResolvedParams","toOrParams","config","resolvedParameters","from","resolvedConfig"],"sources":["getResolvedParams.ts"],"sourcesContent":["import type {\n RequiredAnimationParams,\n AnimationParams,\n TimingConfig,\n} from \"../../types\";\n\nconst DefaultParameters = {\n to: 1,\n loop: false,\n yoyo: false,\n immediate: true,\n};\n\nconst DefaultTimingConfig = {\n duration: 1000,\n easing: (t: number) => t,\n};\n\n/**\n * Resolves parameters from optional values to a single object\n * @param toOrParams Params or to value\n * @param config timing/spring configuration\n */\nexport const getResolvedParams = (\n toOrParams: number | AnimationParams,\n config?: TimingConfig\n): RequiredAnimationParams & Required<TimingConfig> => {\n let resolvedParameters: RequiredAnimationParams = {\n ...DefaultParameters,\n };\n\n if (typeof toOrParams === \"number\") {\n resolvedParameters.to = toOrParams;\n } else {\n resolvedParameters = {\n from: toOrParams.from ?? resolvedParameters.from,\n to: toOrParams.to ?? resolvedParameters.to,\n loop: toOrParams.loop ?? resolvedParameters.loop,\n yoyo: toOrParams.yoyo ?? resolvedParameters.yoyo,\n };\n }\n\n const resolvedConfig: Required<TimingConfig> = { ...DefaultTimingConfig };\n if (config) {\n resolvedConfig.duration = config.duration ?? DefaultTimingConfig.duration;\n resolvedConfig.easing = config.easing ?? DefaultTimingConfig.easing;\n }\n\n return { ...resolvedParameters, ...resolvedConfig };\n};\n"],"mappings":"AAMA,MAAMA,iBAAiB,GAAG;EACxBC,EAAE,EAAE,CADoB;EAExBC,IAAI,EAAE,KAFkB;EAGxBC,IAAI,EAAE,KAHkB;EAIxBC,SAAS,EAAE;AAJa,CAA1B;AAOA,MAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAE,IADgB;EAE1BC,MAAM,EAAGC,CAAD,IAAeA;AAFG,CAA5B;AAKA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,iBAAiB,GAAG,CAC/BC,UAD+B,EAE/BC,MAF+B,KAGsB;EACrD,IAAIC,kBAA2C,GAAG,EAChD,GAAGZ;EAD6C,CAAlD;;EAIA,IAAI,OAAOU,UAAP,KAAsB,QAA1B,EAAoC;IAClCE,kBAAkB,CAACX,EAAnB,GAAwBS,UAAxB;EACD,CAFD,MAEO;IAAA;;IACLE,kBAAkB,GAAG;MACnBC,IAAI,sBAAEH,UAAU,CAACG,IAAb,+DAAqBD,kBAAkB,CAACC,IADzB;MAEnBZ,EAAE,oBAAES,UAAU,CAACT,EAAb,2DAAmBW,kBAAkB,CAACX,EAFrB;MAGnBC,IAAI,sBAAEQ,UAAU,CAACR,IAAb,+DAAqBU,kBAAkB,CAACV,IAHzB;MAInBC,IAAI,sBAAEO,UAAU,CAACP,IAAb,+DAAqBS,kBAAkB,CAACT;IAJzB,CAArB;EAMD;;EAED,MAAMW,cAAsC,GAAG,EAAE,GAAGT;EAAL,CAA/C;;EACA,IAAIM,MAAJ,EAAY;IAAA;;IACVG,cAAc,CAACR,QAAf,uBAA0BK,MAAM,CAACL,QAAjC,+DAA6CD,mBAAmB,CAACC,QAAjE;IACAQ,cAAc,CAACP,MAAf,qBAAwBI,MAAM,CAACJ,MAA/B,2DAAyCF,mBAAmB,CAACE,MAA7D;EACD;;EAED,OAAO,EAAE,GAAGK,kBAAL;IAAyB,GAAGE;EAA5B,CAAP;AACD,CA1BM"}
@@ -1,4 +0,0 @@
1
- export { bezier } from "./bezier";
2
- export { timing } from "./timing";
3
- export * from "./types";
4
- export * from "./getResolvedParams";
@@ -1,5 +0,0 @@
1
- export { bezier } from "./bezier";
2
- export { timing } from "./timing";
3
- export * from "./types";
4
- export * from "./getResolvedParams";
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["bezier","timing"],"sources":["index.ts"],"sourcesContent":["export { bezier } from \"./bezier\";\nexport { timing } from \"./timing\";\nexport * from \"./types\";\nexport * from \"./getResolvedParams\";\n"],"mappings":"AAAA,SAASA,MAAT,QAAuB,UAAvB;AACA,SAASC,MAAT,QAAuB,UAAvB;AACA,cAAc,SAAd;AACA,cAAc,qBAAd"}
@@ -1,17 +0,0 @@
1
- import type { AnimationState } from "../../../values/types";
2
- /**
3
- * Calculates and returns a timing value based on the
4
- * input parameters. The timing value is a number between
5
- * 0 and 1.
6
- * @param t
7
- * @param duration
8
- * @param easing
9
- * @param loop
10
- * @param yoyo
11
- * @param onStop
12
- * @returns
13
- */
14
- export declare const timing: (t: number, duration: number, easing: (t: number) => number, loop: boolean, yoyo: boolean, state: AnimationState) => {
15
- current: number;
16
- finished: boolean;
17
- };
@@ -1,41 +0,0 @@
1
- /**
2
- * Calculates and returns a timing value based on the
3
- * input parameters. The timing value is a number between
4
- * 0 and 1.
5
- * @param t
6
- * @param duration
7
- * @param easing
8
- * @param loop
9
- * @param yoyo
10
- * @param onStop
11
- * @returns
12
- */
13
- export const timing = (t, duration, easing, loop, yoyo, state) => {
14
- let current = t / duration;
15
- let {
16
- finished
17
- } = state; // Side effect to stop animation when duration is reached (if loop is false)
18
-
19
- if (current >= 1.0 && !loop) {
20
- finished = true;
21
- current = 1.0;
22
- } // calculate return value
23
-
24
-
25
- let n = current % 1;
26
-
27
- if (yoyo) {
28
- n = current % 2.0 >= 1.0 ? 1 - current % 1 : current % 1;
29
- } else if (!loop) {
30
- if (current >= 1.0) {
31
- n = 1.0;
32
- }
33
- }
34
-
35
- current = easing(Math.max(0, Math.min(1, n)));
36
- return {
37
- current,
38
- finished
39
- };
40
- };
41
- //# sourceMappingURL=timing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["timing","t","duration","easing","loop","yoyo","state","current","finished","n","Math","max","min"],"sources":["timing.ts"],"sourcesContent":["import type { AnimationState } from \"../../../values/types\";\n\n/**\n * Calculates and returns a timing value based on the\n * input parameters. The timing value is a number between\n * 0 and 1.\n * @param t\n * @param duration\n * @param easing\n * @param loop\n * @param yoyo\n * @param onStop\n * @returns\n */\nexport const timing = (\n t: number,\n duration: number,\n easing: (t: number) => number,\n loop: boolean,\n yoyo: boolean,\n state: AnimationState\n) => {\n let current = t / duration;\n let { finished } = state;\n // Side effect to stop animation when duration is reached (if loop is false)\n if (current >= 1.0 && !loop) {\n finished = true;\n current = 1.0;\n }\n // calculate return value\n let n = current % 1;\n if (yoyo) {\n n = current % 2.0 >= 1.0 ? 1 - (current % 1) : current % 1;\n } else if (!loop) {\n if (current >= 1.0) {\n n = 1.0;\n }\n }\n current = easing(Math.max(0, Math.min(1, n)));\n return {\n current,\n finished,\n };\n};\n"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,MAAM,GAAG,CACpBC,CADoB,EAEpBC,QAFoB,EAGpBC,MAHoB,EAIpBC,IAJoB,EAKpBC,IALoB,EAMpBC,KANoB,KAOjB;EACH,IAAIC,OAAO,GAAGN,CAAC,GAAGC,QAAlB;EACA,IAAI;IAAEM;EAAF,IAAeF,KAAnB,CAFG,CAGH;;EACA,IAAIC,OAAO,IAAI,GAAX,IAAkB,CAACH,IAAvB,EAA6B;IAC3BI,QAAQ,GAAG,IAAX;IACAD,OAAO,GAAG,GAAV;EACD,CAPE,CAQH;;;EACA,IAAIE,CAAC,GAAGF,OAAO,GAAG,CAAlB;;EACA,IAAIF,IAAJ,EAAU;IACRI,CAAC,GAAGF,OAAO,GAAG,GAAV,IAAiB,GAAjB,GAAuB,IAAKA,OAAO,GAAG,CAAtC,GAA2CA,OAAO,GAAG,CAAzD;EACD,CAFD,MAEO,IAAI,CAACH,IAAL,EAAW;IAChB,IAAIG,OAAO,IAAI,GAAf,EAAoB;MAClBE,CAAC,GAAG,GAAJ;IACD;EACF;;EACDF,OAAO,GAAGJ,MAAM,CAACO,IAAI,CAACC,GAAL,CAAS,CAAT,EAAYD,IAAI,CAACE,GAAL,CAAS,CAAT,EAAYH,CAAZ,CAAZ,CAAD,CAAhB;EACA,OAAO;IACLF,OADK;IAELC;EAFK,CAAP;AAID,CA7BM"}
@@ -1,7 +0,0 @@
1
- export type EasingFunction = (value: number) => number;
2
- export interface TimingConfig {
3
- from?: number;
4
- to?: number;
5
- duration?: number;
6
- easing?: EasingFunction;
7
- }
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export type EasingFunction = (value: number) => number;\n\nexport interface TimingConfig {\n from?: number;\n to?: number;\n duration?: number;\n easing?: EasingFunction;\n}\n"],"mappings":""}
@@ -1,4 +0,0 @@
1
- export { Easing } from "./Easing";
2
- export { useTiming } from "./useTiming";
3
- export { useLoop } from "./useLoop";
4
- export { runTiming } from "./runTiming";
@@ -1,5 +0,0 @@
1
- export { Easing } from "./Easing";
2
- export { useTiming } from "./useTiming";
3
- export { useLoop } from "./useLoop";
4
- export { runTiming } from "./runTiming";
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Easing","useTiming","useLoop","runTiming"],"sources":["index.ts"],"sourcesContent":["export { Easing } from \"./Easing\";\nexport { useTiming } from \"./useTiming\";\nexport { useLoop } from \"./useLoop\";\nexport { runTiming } from \"./runTiming\";\n"],"mappings":"AAAA,SAASA,MAAT,QAAuB,UAAvB;AACA,SAASC,SAAT,QAA0B,aAA1B;AACA,SAASC,OAAT,QAAwB,WAAxB;AACA,SAASC,SAAT,QAA0B,aAA1B"}
@@ -1,19 +0,0 @@
1
- import type { SkiaMutableValue, SkiaAnimation } from "../../values/types";
2
- import type { AnimationParams, TimingConfig, AnimationCallback } from "../types";
3
- /**
4
- * @deprecated Use Reanimated 3 for animations:
5
- * https://shopify.github.io/react-native-skia/docs/animations/animations
6
- *
7
- * Creates a new animation on an existing value that will be driven by
8
- * an animation value. The value will be run from / to the value in
9
- * params and modified by the provided easing curve for the length of
10
- * the duration. When the value has reached its desired "to" value the
11
- * animation will be stopped.
12
- *
13
- * @param value The value to animate
14
- * @param toOrParams To value or Animation parameters
15
- * @param config Spring or timing configuration
16
- * @returns an animation value that can be used to start/stop
17
- * the animation.
18
- */
19
- export declare const runTiming: (value: SkiaMutableValue<number>, toOrParams: number | AnimationParams, config?: TimingConfig, callback?: AnimationCallback) => SkiaAnimation;
@@ -1,26 +0,0 @@
1
- import { getResolvedParams } from "./functions";
2
- import { createTiming } from "./createTiming";
3
- /**
4
- * @deprecated Use Reanimated 3 for animations:
5
- * https://shopify.github.io/react-native-skia/docs/animations/animations
6
- *
7
- * Creates a new animation on an existing value that will be driven by
8
- * an animation value. The value will be run from / to the value in
9
- * params and modified by the provided easing curve for the length of
10
- * the duration. When the value has reached its desired "to" value the
11
- * animation will be stopped.
12
- *
13
- * @param value The value to animate
14
- * @param toOrParams To value or Animation parameters
15
- * @param config Spring or timing configuration
16
- * @returns an animation value that can be used to start/stop
17
- * the animation.
18
- */
19
-
20
- export const runTiming = (value, toOrParams, config, callback) => {
21
- const resolvedParameters = getResolvedParams(toOrParams, config);
22
- const animation = createTiming(resolvedParameters, value, callback);
23
- value.animation = animation;
24
- return animation;
25
- };
26
- //# sourceMappingURL=runTiming.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getResolvedParams","createTiming","runTiming","value","toOrParams","config","callback","resolvedParameters","animation"],"sources":["runTiming.ts"],"sourcesContent":["import type { SkiaMutableValue, SkiaAnimation } from \"../../values/types\";\nimport type {\n AnimationParams,\n TimingConfig,\n AnimationCallback,\n} from \"../types\";\n\nimport { getResolvedParams } from \"./functions\";\nimport { createTiming } from \"./createTiming\";\n/**\n * @deprecated Use Reanimated 3 for animations:\n * https://shopify.github.io/react-native-skia/docs/animations/animations\n *\n * Creates a new animation on an existing value that will be driven by\n * an animation value. The value will be run from / to the value in\n * params and modified by the provided easing curve for the length of\n * the duration. When the value has reached its desired \"to\" value the\n * animation will be stopped.\n *\n * @param value The value to animate\n * @param toOrParams To value or Animation parameters\n * @param config Spring or timing configuration\n * @returns an animation value that can be used to start/stop\n * the animation.\n */\nexport const runTiming = (\n value: SkiaMutableValue<number>,\n toOrParams: number | AnimationParams,\n config?: TimingConfig,\n callback?: AnimationCallback\n): SkiaAnimation => {\n const resolvedParameters = getResolvedParams(toOrParams, config);\n const animation = createTiming(resolvedParameters, value, callback);\n value.animation = animation;\n return animation;\n};\n"],"mappings":"AAOA,SAASA,iBAAT,QAAkC,aAAlC;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,SAAS,GAAG,CACvBC,KADuB,EAEvBC,UAFuB,EAGvBC,MAHuB,EAIvBC,QAJuB,KAKL;EAClB,MAAMC,kBAAkB,GAAGP,iBAAiB,CAACI,UAAD,EAAaC,MAAb,CAA5C;EACA,MAAMG,SAAS,GAAGP,YAAY,CAACM,kBAAD,EAAqBJ,KAArB,EAA4BG,QAA5B,CAA9B;EACAH,KAAK,CAACK,SAAN,GAAkBA,SAAlB;EACA,OAAOA,SAAP;AACD,CAVM"}
@@ -1,11 +0,0 @@
1
- import type { TimingConfig } from "../types";
2
- /**
3
- * @deprecated Use Reanimated 3 for animations:
4
- * https://shopify.github.io/react-native-skia/docs/animations/animations
5
- *
6
- * Configures a looped timing value. The value will go back and forth
7
- * between 0 and 1 and back.
8
- * @param config Timing configuration for easing and duration
9
- * @returns A value that can be used for further animations
10
- */
11
- export declare const useLoop: (config?: TimingConfig) => import("../..").SkiaValue<number>;
@@ -1,16 +0,0 @@
1
- import { useTiming } from "./useTiming";
2
- /**
3
- * @deprecated Use Reanimated 3 for animations:
4
- * https://shopify.github.io/react-native-skia/docs/animations/animations
5
- *
6
- * Configures a looped timing value. The value will go back and forth
7
- * between 0 and 1 and back.
8
- * @param config Timing configuration for easing and duration
9
- * @returns A value that can be used for further animations
10
- */
11
-
12
- export const useLoop = config => useTiming({
13
- yoyo: true,
14
- loop: true
15
- }, config);
16
- //# sourceMappingURL=useLoop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useTiming","useLoop","config","yoyo","loop"],"sources":["useLoop.ts"],"sourcesContent":["import type { TimingConfig } from \"../types\";\n\nimport { useTiming } from \"./useTiming\";\n\n/**\n * @deprecated Use Reanimated 3 for animations:\n * https://shopify.github.io/react-native-skia/docs/animations/animations\n *\n * Configures a looped timing value. The value will go back and forth\n * between 0 and 1 and back.\n * @param config Timing configuration for easing and duration\n * @returns A value that can be used for further animations\n */\nexport const useLoop = (config?: TimingConfig) =>\n useTiming(\n {\n yoyo: true,\n loop: true,\n },\n config\n );\n"],"mappings":"AAEA,SAASA,SAAT,QAA0B,aAA1B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,OAAO,GAAIC,MAAD,IACrBF,SAAS,CACP;EACEG,IAAI,EAAE,IADR;EAEEC,IAAI,EAAE;AAFR,CADO,EAKPF,MALO,CADJ"}
@@ -1,13 +0,0 @@
1
- import type { SkiaValue } from "../../values/types";
2
- import type { AnimationParams, TimingConfig, AnimationCallback } from "../types";
3
- /**
4
- * @deprecated Use Reanimated 3 for animations:
5
- * https://shopify.github.io/react-native-skia/docs/animations/animations
6
- *
7
- * Creats an animation value that will run whenever
8
- * the animation parameters change. The animation start immediately.
9
- * @param toOrParams
10
- * @param config
11
- * @returns A value that is animated
12
- */
13
- export declare const useTiming: (toOrParams: number | AnimationParams, config?: TimingConfig, callback?: AnimationCallback) => SkiaValue<number>;
@@ -1,57 +0,0 @@
1
- import { useEffect, useMemo, useRef } from "react";
2
- import { useValue } from "../../values/hooks/useValue";
3
- import { getResolvedParams } from "./functions";
4
- import { createTiming } from "./createTiming";
5
- /**
6
- * @deprecated Use Reanimated 3 for animations:
7
- * https://shopify.github.io/react-native-skia/docs/animations/animations
8
- *
9
- * Creats an animation value that will run whenever
10
- * the animation parameters change. The animation start immediately.
11
- * @param toOrParams
12
- * @param config
13
- * @returns A value that is animated
14
- */
15
-
16
- export const useTiming = (toOrParams, config, callback) => {
17
- var _resolvedParameters$f;
18
-
19
- // Resolve parameters - keep a cached version to avoid
20
- // unnecesary re-renders.
21
- const prevCfgRef = useRef();
22
- const resolvedParameters = useMemo(() => {
23
- const nextParams = getResolvedParams(toOrParams, config);
24
-
25
- if (!equals(prevCfgRef.current, nextParams)) {
26
- prevCfgRef.current = nextParams;
27
- }
28
-
29
- return prevCfgRef.current;
30
- }, [config, toOrParams]); // Create value
31
-
32
- const value = useValue((_resolvedParameters$f = resolvedParameters.from) !== null && _resolvedParameters$f !== void 0 ? _resolvedParameters$f : 0); // Create timing animation - keep a cached version to avoid
33
- // uneccessary recreation of animations
34
-
35
- const prevAnimationRef = useRef();
36
- const prevParamsRef = useRef();
37
- const animation = useMemo(() => {
38
- if (!equals(prevParamsRef.current, resolvedParameters)) {
39
- prevParamsRef.current = resolvedParameters;
40
- prevAnimationRef.current = createTiming(resolvedParameters, value, callback);
41
- }
42
-
43
- return prevAnimationRef.current;
44
- }, [callback, resolvedParameters, value]); // Run animation on the value - and stop it on unmount
45
-
46
- useEffect(() => {
47
- value.animation = animation;
48
- return () => value.animation = undefined;
49
- }, [animation, value]); // Return the value that is animated
50
-
51
- return value;
52
- };
53
-
54
- const equals = (a, b) => {
55
- return JSON.stringify(a) === JSON.stringify(b);
56
- };
57
- //# sourceMappingURL=useTiming.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useEffect","useMemo","useRef","useValue","getResolvedParams","createTiming","useTiming","toOrParams","config","callback","prevCfgRef","resolvedParameters","nextParams","equals","current","value","from","prevAnimationRef","prevParamsRef","animation","undefined","a","b","JSON","stringify"],"sources":["useTiming.ts"],"sourcesContent":["import { useEffect, useMemo, useRef } from \"react\";\n\nimport type { SkiaValue, SkiaAnimation } from \"../../values/types\";\nimport type {\n AnimationParams,\n TimingConfig,\n AnimationCallback,\n} from \"../types\";\nimport { useValue } from \"../../values/hooks/useValue\";\n\nimport { getResolvedParams } from \"./functions\";\nimport { createTiming } from \"./createTiming\";\n\n/**\n * @deprecated Use Reanimated 3 for animations:\n * https://shopify.github.io/react-native-skia/docs/animations/animations\n *\n * Creats an animation value that will run whenever\n * the animation parameters change. The animation start immediately.\n * @param toOrParams\n * @param config\n * @returns A value that is animated\n */\nexport const useTiming = (\n toOrParams: number | AnimationParams,\n config?: TimingConfig,\n callback?: AnimationCallback\n): SkiaValue<number> => {\n // Resolve parameters - keep a cached version to avoid\n // unnecesary re-renders.\n const prevCfgRef = useRef<ReturnType<typeof getResolvedParams>>();\n const resolvedParameters = useMemo(() => {\n const nextParams = getResolvedParams(toOrParams, config);\n if (!equals(prevCfgRef.current, nextParams)) {\n prevCfgRef.current = nextParams;\n }\n return prevCfgRef.current!;\n }, [config, toOrParams]);\n\n // Create value\n const value = useValue(resolvedParameters.from ?? 0);\n\n // Create timing animation - keep a cached version to avoid\n // uneccessary recreation of animations\n const prevAnimationRef = useRef<SkiaAnimation>();\n const prevParamsRef = useRef<typeof resolvedParameters>();\n const animation = useMemo(() => {\n if (!equals(prevParamsRef.current, resolvedParameters)) {\n prevParamsRef.current = resolvedParameters;\n prevAnimationRef.current = createTiming(\n resolvedParameters,\n value,\n callback\n );\n }\n return prevAnimationRef.current!;\n }, [callback, resolvedParameters, value]);\n\n // Run animation on the value - and stop it on unmount\n useEffect(() => {\n value.animation = animation;\n return () => (value.animation = undefined);\n }, [animation, value]);\n\n // Return the value that is animated\n return value;\n};\n\nconst equals = <T1, T2>(a: T1, b: T2) => {\n return JSON.stringify(a) === JSON.stringify(b);\n};\n"],"mappings":"AAAA,SAASA,SAAT,EAAoBC,OAApB,EAA6BC,MAA7B,QAA2C,OAA3C;AAQA,SAASC,QAAT,QAAyB,6BAAzB;AAEA,SAASC,iBAAT,QAAkC,aAAlC;AACA,SAASC,YAAT,QAA6B,gBAA7B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,SAAS,GAAG,CACvBC,UADuB,EAEvBC,MAFuB,EAGvBC,QAHuB,KAID;EAAA;;EACtB;EACA;EACA,MAAMC,UAAU,GAAGR,MAAM,EAAzB;EACA,MAAMS,kBAAkB,GAAGV,OAAO,CAAC,MAAM;IACvC,MAAMW,UAAU,GAAGR,iBAAiB,CAACG,UAAD,EAAaC,MAAb,CAApC;;IACA,IAAI,CAACK,MAAM,CAACH,UAAU,CAACI,OAAZ,EAAqBF,UAArB,CAAX,EAA6C;MAC3CF,UAAU,CAACI,OAAX,GAAqBF,UAArB;IACD;;IACD,OAAOF,UAAU,CAACI,OAAlB;EACD,CANiC,EAM/B,CAACN,MAAD,EAASD,UAAT,CAN+B,CAAlC,CAJsB,CAYtB;;EACA,MAAMQ,KAAK,GAAGZ,QAAQ,0BAACQ,kBAAkB,CAACK,IAApB,yEAA4B,CAA5B,CAAtB,CAbsB,CAetB;EACA;;EACA,MAAMC,gBAAgB,GAAGf,MAAM,EAA/B;EACA,MAAMgB,aAAa,GAAGhB,MAAM,EAA5B;EACA,MAAMiB,SAAS,GAAGlB,OAAO,CAAC,MAAM;IAC9B,IAAI,CAACY,MAAM,CAACK,aAAa,CAACJ,OAAf,EAAwBH,kBAAxB,CAAX,EAAwD;MACtDO,aAAa,CAACJ,OAAd,GAAwBH,kBAAxB;MACAM,gBAAgB,CAACH,OAAjB,GAA2BT,YAAY,CACrCM,kBADqC,EAErCI,KAFqC,EAGrCN,QAHqC,CAAvC;IAKD;;IACD,OAAOQ,gBAAgB,CAACH,OAAxB;EACD,CAVwB,EAUtB,CAACL,QAAD,EAAWE,kBAAX,EAA+BI,KAA/B,CAVsB,CAAzB,CAnBsB,CA+BtB;;EACAf,SAAS,CAAC,MAAM;IACde,KAAK,CAACI,SAAN,GAAkBA,SAAlB;IACA,OAAO,MAAOJ,KAAK,CAACI,SAAN,GAAkBC,SAAhC;EACD,CAHQ,EAGN,CAACD,SAAD,EAAYJ,KAAZ,CAHM,CAAT,CAhCsB,CAqCtB;;EACA,OAAOA,KAAP;AACD,CA3CM;;AA6CP,MAAMF,MAAM,GAAG,CAASQ,CAAT,EAAgBC,CAAhB,KAA0B;EACvC,OAAOC,IAAI,CAACC,SAAL,CAAeH,CAAf,MAAsBE,IAAI,CAACC,SAAL,CAAeF,CAAf,CAA7B;AACD,CAFD"}
@@ -1,8 +0,0 @@
1
- import type { CustomDrawingNodeProps, DrawingContext } from "../../types";
2
- import { JsiDrawingNode } from "../DrawingNode";
3
- import type { NodeContext } from "../Node";
4
- export declare class CustomDrawingNode extends JsiDrawingNode<CustomDrawingNodeProps, null> {
5
- constructor(ctx: NodeContext, props: CustomDrawingNodeProps);
6
- deriveProps(): null;
7
- draw(ctx: DrawingContext): void;
8
- }
@@ -1,17 +0,0 @@
1
- import { NodeType } from "../../types";
2
- import { JsiDrawingNode } from "../DrawingNode";
3
- export class CustomDrawingNode extends JsiDrawingNode {
4
- constructor(ctx, props) {
5
- super(ctx, NodeType.Drawing, props);
6
- }
7
-
8
- deriveProps() {
9
- return null;
10
- }
11
-
12
- draw(ctx) {
13
- this.props.drawing(ctx);
14
- }
15
-
16
- }
17
- //# sourceMappingURL=CustomDrawingNode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["NodeType","JsiDrawingNode","CustomDrawingNode","constructor","ctx","props","Drawing","deriveProps","draw","drawing"],"sources":["CustomDrawingNode.ts"],"sourcesContent":["import type { CustomDrawingNodeProps, DrawingContext } from \"../../types\";\nimport { NodeType } from \"../../types\";\nimport { JsiDrawingNode } from \"../DrawingNode\";\nimport type { NodeContext } from \"../Node\";\n\nexport class CustomDrawingNode extends JsiDrawingNode<\n CustomDrawingNodeProps,\n null\n> {\n constructor(ctx: NodeContext, props: CustomDrawingNodeProps) {\n super(ctx, NodeType.Drawing, props);\n }\n\n deriveProps() {\n return null;\n }\n\n draw(ctx: DrawingContext) {\n this.props.drawing(ctx);\n }\n}\n"],"mappings":"AACA,SAASA,QAAT,QAAyB,aAAzB;AACA,SAASC,cAAT,QAA+B,gBAA/B;AAGA,OAAO,MAAMC,iBAAN,SAAgCD,cAAhC,CAGL;EACAE,WAAW,CAACC,GAAD,EAAmBC,KAAnB,EAAkD;IAC3D,MAAMD,GAAN,EAAWJ,QAAQ,CAACM,OAApB,EAA6BD,KAA7B;EACD;;EAEDE,WAAW,GAAG;IACZ,OAAO,IAAP;EACD;;EAEDC,IAAI,CAACJ,GAAD,EAAsB;IACxB,KAAKC,KAAL,CAAWI,OAAX,CAAmBL,GAAnB;EACD;;AAXD"}
@@ -1,46 +0,0 @@
1
- import type { Node } from "../dom/types";
2
- import type { SkiaValue } from "../values";
3
- import type { AnimatedProps } from "./processors";
4
- type Unsubscribe = () => void;
5
- type Mutator = (value: unknown) => void;
6
- type SubscriptionState = {
7
- nodes: Map<Node<unknown>, Mutator[]>;
8
- unsubscribe: null | Unsubscribe;
9
- };
10
- export declare class DependencyManager {
11
- registerValues: (values: Array<SkiaValue<unknown>>) => () => void;
12
- subscriptions: Map<SkiaValue<unknown>, SubscriptionState>;
13
- unregisterDependantValues: null | Unsubscribe;
14
- constructor(registerValues: (values: Array<SkiaValue<unknown>>) => () => void);
15
- /**
16
- * Call to unsubscribe all value listeners from the given node based
17
- * on the current list of subscriptions for the node. This function
18
- * is typically called when the node is unmounted or when one or more
19
- * properties have changed.
20
- * @param node Node to unsubscribe value listeners from
21
- */
22
- unsubscribeNode(node: Node<unknown>): void;
23
- /**
24
- * Adds listeners to the provided values so that the node is notified
25
- * when a value changes. This is done in an optimized way so that this
26
- * class only needs to listen to the value once and then forwards the
27
- * change to the node and its listener. This method is typically called
28
- * when the node is mounted and when one or more props on the node changes.
29
- * @param node Node to subscribe to value changes for
30
- * @param props Node's properties
31
- */
32
- subscribeNode<P>(node: Node<unknown>, props: AnimatedProps<P>): void;
33
- /**
34
- * Called when the hosting container is mounted or updated. This ensures that we have
35
- * a ref to the underlying SkiaView so that we can registers redraw listeners
36
- * on values used in the current View automatically.
37
- */
38
- update(): void;
39
- /**
40
- * Called when the hosting container is unmounted or recreated. This ensures that we remove
41
- * all subscriptions to Skia values so that we don't have any listeners left after
42
- * the component is removed.
43
- */
44
- remove(): void;
45
- }
46
- export {};