@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
@@ -10,7 +10,6 @@
10
10
  #include "JsiHostObject.h"
11
11
  #include "JsiValueWrapper.h"
12
12
  #include "RNSkPlatformContext.h"
13
- #include "RNSkValue.h"
14
13
  #include "RNSkView.h"
15
14
  #include <jsi/jsi.h>
16
15
 
@@ -178,59 +177,8 @@ public:
178
177
  return jsi::Value::undefined();
179
178
  }
180
179
 
181
- JSI_HOST_FUNCTION(registerValuesInView) {
182
- // Check params
183
- if (!arguments[1].isObject() ||
184
- !arguments[1].asObject(runtime).isArray(runtime)) {
185
- throw jsi::JSError(runtime,
186
- "Expected array of Values as second parameter");
187
- return jsi::Value::undefined();
188
- }
189
-
190
- // Get identifier of native SkiaView
191
- int nativeId = arguments[0].asNumber();
192
-
193
- // Get values that should be added as dependencies
194
- auto values = arguments[1].asObject(runtime).asArray(runtime);
195
- std::vector<std::function<void()>> unsubscribers;
196
- const std::size_t size = values.size(runtime);
197
- unsubscribers.reserve(size);
198
- for (size_t i = 0; i < size; ++i) {
199
- auto value = values.getValueAtIndex(runtime, i)
200
- .asObject(runtime)
201
- .asHostObject<RNSkReadonlyValue>(runtime);
202
-
203
- if (value != nullptr) {
204
- // Add change listener
205
- unsubscribers.push_back(value->addListener(
206
- [weakSelf = weak_from_this(), nativeId](jsi::Runtime &) {
207
- auto self = weakSelf.lock();
208
- if (self) {
209
- auto info = self->getEnsuredViewInfo(nativeId);
210
- if (info->view != nullptr) {
211
- info->view->requestRedraw();
212
- }
213
- }
214
- }));
215
- }
216
- }
217
-
218
- // Return unsubscribe method that unsubscribes to all values
219
- // that we subscribed to.
220
- return jsi::Function::createFromHostFunction(
221
- runtime, jsi::PropNameID::forUtf8(runtime, "unsubscribe"), 0,
222
- JSI_HOST_FUNCTION_LAMBDA {
223
- // decrease dependency count on the Skia View
224
- for (auto &unsub : unsubscribers) {
225
- unsub();
226
- }
227
- return jsi::Value::undefined();
228
- });
229
- }
230
-
231
180
  JSI_EXPORT_FUNCTIONS(JSI_EXPORT_FUNC(RNSkJsiViewApi, setJsiProperty),
232
181
  JSI_EXPORT_FUNC(RNSkJsiViewApi, callJsiMethod),
233
- JSI_EXPORT_FUNC(RNSkJsiViewApi, registerValuesInView),
234
182
  JSI_EXPORT_FUNC(RNSkJsiViewApi, requestRedraw),
235
183
  JSI_EXPORT_FUNC(RNSkJsiViewApi, makeImageSnapshot))
236
184
 
@@ -7,7 +7,6 @@
7
7
 
8
8
  #include <JsiSkApi.h>
9
9
  #include <RNSkJsiViewApi.h>
10
- #include <RNSkValueApi.h>
11
10
  #include <RNSkView.h>
12
11
 
13
12
  #include <JsiDomApi.h>
@@ -80,11 +79,6 @@ void RNSkManager::installBindings() {
80
79
  *_jsRuntime, "SkiaViewApi",
81
80
  jsi::Object::createFromHostObject(*_jsRuntime, _viewApi));
82
81
 
83
- auto skiaValueApi = std::make_shared<RNSkValueApi>(_platformContext);
84
- _jsRuntime->global().setProperty(
85
- *_jsRuntime, "SkiaValueApi",
86
- jsi::Object::createFromHostObject(*_jsRuntime, std::move(skiaValueApi)));
87
-
88
82
  auto skiaDomApi = std::make_shared<JsiDomApi>(_platformContext);
89
83
  _jsRuntime->global().setProperty(
90
84
  *_jsRuntime, "SkiaDomApi",
@@ -8,7 +8,6 @@
8
8
 
9
9
  #include "JsiValueWrapper.h"
10
10
  #include "RNSkPlatformContext.h"
11
- #include "RNSkValue.h"
12
11
 
13
12
  #include "JsiSkImage.h"
14
13
  #include "JsiSkPoint.h"
@@ -163,13 +162,7 @@ public:
163
162
  /**
164
163
  Destructor
165
164
  */
166
- virtual ~RNSkView() {
167
- endDrawingLoop();
168
- if (_onSizeUnsubscribe != nullptr) {
169
- _onSizeUnsubscribe();
170
- _onSizeUnsubscribe = nullptr;
171
- }
172
- }
165
+ virtual ~RNSkView() { endDrawingLoop(); }
173
166
 
174
167
  /**
175
168
  Sets custom properties. Custom properties are properties that are set
@@ -177,37 +170,7 @@ public:
177
170
  */
178
171
  virtual void setJsiProperties(
179
172
  std::unordered_map<std::string, RNJsi::JsiValueWrapper> &props) {
180
-
181
- for (auto &prop : props) {
182
- if (prop.first == "onSize") {
183
- // Start by removing any subscribers to the current onSize
184
- if (_onSizeUnsubscribe != nullptr) {
185
- _onSizeUnsubscribe();
186
- _onSizeUnsubscribe = nullptr;
187
- }
188
- if (prop.second.isUndefinedOrNull()) {
189
- // Clear touchCallback
190
- _onSize = nullptr;
191
- } else if (prop.second.getType() !=
192
- RNJsi::JsiWrapperValueType::HostObject) {
193
- // We expect a function for the draw callback custom property
194
- throw std::runtime_error(
195
- "Expected a Skia mutable value for the onSize property.");
196
- }
197
- // Save onSize
198
- _onSize =
199
- std::dynamic_pointer_cast<RNSkValue>(prop.second.getAsHostObject());
200
-
201
- // Add listener
202
- _onSizeUnsubscribe =
203
- _onSize->addListener([weakSelf = weak_from_this()](jsi::Runtime &) {
204
- auto self = weakSelf.lock();
205
- if (self) {
206
- self->requestRedraw();
207
- }
208
- });
209
- }
210
- }
173
+ // Nothing here...
211
174
  }
212
175
 
213
176
  /**
@@ -326,53 +289,6 @@ private:
326
289
  });
327
290
  }
328
291
 
329
- void updateOnSize() {
330
- if (_onSize != nullptr) {
331
- auto width = _canvasProvider->getScaledWidth() /
332
- _platformContext->getPixelDensity();
333
- auto height = _canvasProvider->getScaledHeight() /
334
- _platformContext->getPixelDensity();
335
-
336
- _platformContext->runOnJavascriptThread(
337
- [width, height, weakSelf = weak_from_this()]() {
338
- auto self = weakSelf.lock();
339
- if (self) {
340
- auto runtime = self->_platformContext->getJsRuntime();
341
- auto onSize = self->_onSize->getCurrent(*runtime);
342
- if (!onSize.isObject()) {
343
- throw jsi::JSError(
344
- *runtime,
345
- "Expected onSize property to be a mutable Skia value.");
346
- return;
347
- }
348
- auto onSizeObj = onSize.asObject(*runtime);
349
-
350
- auto wVal = onSizeObj.getProperty(*runtime, "width");
351
- auto hVal = onSizeObj.getProperty(*runtime, "height");
352
-
353
- if (!wVal.isNumber() || !hVal.isNumber()) {
354
- throw jsi::JSError(*runtime,
355
- "Expected onSize property to be a mutable "
356
- "Skia value of type SkSize.");
357
- return;
358
- }
359
-
360
- auto w = wVal.asNumber();
361
- auto h = hVal.asNumber();
362
-
363
- if (w != width || h != height) {
364
- // Update
365
- auto newValue = jsi::Object(*runtime);
366
- newValue.setProperty(*runtime, "width", width);
367
- newValue.setProperty(*runtime, "height", height);
368
- self->_onSize->set_current(*runtime,
369
- jsi::Value(*runtime, newValue));
370
- }
371
- }
372
- });
373
- }
374
- }
375
-
376
292
  /**
377
293
  Draw loop callback
378
294
  */
@@ -381,9 +297,6 @@ private:
381
297
  _drawingMode == RNSkDrawingMode::Continuous) {
382
298
  _redrawRequestCounter = 0;
383
299
 
384
- // Update size if needed
385
- updateOnSize();
386
-
387
300
  if (!_renderer->tryRender(_canvasProvider)) {
388
301
  // The renderer could not render cause it was busy, just schedule
389
302
  // redrawing on the next frame.
@@ -396,8 +309,6 @@ private:
396
309
  std::shared_ptr<RNSkCanvasProvider> _canvasProvider;
397
310
  std::shared_ptr<RNSkRenderer> _renderer;
398
311
 
399
- std::shared_ptr<RNSkValue> _onSize;
400
- std::function<void()> _onSizeUnsubscribe;
401
312
  RNSkDrawingMode _drawingMode = RNSkDrawingMode::Default;
402
313
  size_t _nativeId;
403
314
 
@@ -8,8 +8,6 @@
8
8
 
9
9
  #include "JsiHostObject.h"
10
10
 
11
- #include "base/JsiDependencyManager.h"
12
-
13
11
  #include "nodes/JsiCircleNode.h"
14
12
  #include "nodes/JsiDiffRectNode.h"
15
13
  #include "nodes/JsiFillNode.h"
@@ -40,8 +38,6 @@
40
38
  #include "nodes/JsiBoxNode.h"
41
39
  #include "nodes/JsiBoxShadowNode.h"
42
40
 
43
- #include "nodes/JsiCustomDrawingNode.h"
44
-
45
41
  #include "nodes/JsiGlyphsNode.h"
46
42
  #include "nodes/JsiTextBlobNode.h"
47
43
  #include "nodes/JsiTextNode.h"
@@ -58,8 +54,6 @@ class JsiDomApi : public JsiHostObject {
58
54
  public:
59
55
  explicit JsiDomApi(std::shared_ptr<RNSkPlatformContext> context)
60
56
  : JsiHostObject() {
61
- installFunction("DependencyManager",
62
- JsiDependencyManager::createCtor(context));
63
57
 
64
58
  // Shapes
65
59
  installFunction("RectNode", JsiRectNode::createCtor(context));
@@ -154,9 +148,6 @@ public:
154
148
  installFunction("BoxNode", JsiBoxNode::createCtor(context));
155
149
  installFunction("BoxShadowNode", JsiBoxShadowNode::createCtor(context));
156
150
 
157
- installFunction("CustomDrawingNode",
158
- JsiCustomDrawingNode::createCtor(context));
159
-
160
151
  installFunction("GlyphsNode", JsiGlyphsNode::createCtor(context));
161
152
  installFunction("TextNode", JsiTextNode::createCtor(context));
162
153
  installFunction("TextPathNode", JsiTextPathNode::createCtor(context));
@@ -31,7 +31,10 @@ public:
31
31
  "Expected SkFont object or null/undefined for the Font property.");
32
32
  }
33
33
  } else {
34
- auto font = std::make_shared<SkFont>(SkFont());
34
+ auto fm = SkFontMgr::RefDefault();
35
+ sk_sp<SkTypeface> typeface =
36
+ fm->legacyMakeTypeface(nullptr, SkFontStyle());
37
+ auto font = std::make_shared<SkFont>(SkFont(typeface));
35
38
  font->setSize(14);
36
39
  setDerivedValue(font);
37
40
  }
@@ -5,6 +5,7 @@
5
5
  #include "RectProp.h"
6
6
 
7
7
  #include <memory>
8
+ #include <vector>
8
9
 
9
10
  #pragma clang diagnostic push
10
11
  #pragma clang diagnostic ignored "-Wdocumentation"
@@ -19,6 +20,10 @@ namespace RNSkia {
19
20
  static PropId PropNameRx = JsiPropId::get("rx");
20
21
  static PropId PropNameRy = JsiPropId::get("ry");
21
22
  static PropId PropNameR = JsiPropId::get("r");
23
+ static PropId PropNameTopLeft = JsiPropId::get("topLeft");
24
+ static PropId PropNameTopRight = JsiPropId::get("topRight");
25
+ static PropId PropNameBottomRight = JsiPropId::get("bottomRight");
26
+ static PropId PropNameBottomLeft = JsiPropId::get("bottomLeft");
22
27
 
23
28
  /**
24
29
  Reads a rect from a given propety in the node. The name of the property is
@@ -64,6 +69,51 @@ public:
64
69
  width.getAsNumber(), height.getAsNumber()),
65
70
  rx.getAsNumber(), ry.getAsNumber()));
66
71
  }
72
+ } else if (value.hasValue(PropNameRect) &&
73
+ value.hasValue(PropNameTopLeft) &&
74
+ value.hasValue(PropNameTopRight) &&
75
+ value.hasValue(PropNameBottomRight) &&
76
+ value.hasValue(PropNameBottomLeft)) {
77
+ auto rect = value.getValue(PropNameRect);
78
+ if (rect.hasValue(PropNameX) && rect.hasValue(PropNameY) &&
79
+ rect.hasValue(PropNameWidth) && rect.hasValue(PropNameHeight)) {
80
+ auto x = rect.getValue(PropNameX);
81
+ auto y = rect.getValue(PropNameY);
82
+ auto width = rect.getValue(PropNameWidth);
83
+ auto height = rect.getValue(PropNameHeight);
84
+ std::vector<SkPoint> points;
85
+ points.reserve(4);
86
+ auto topLeft = value.getValue(PropNameTopLeft);
87
+ auto topLeftX = topLeft.getValue(PropNameX);
88
+ auto topLeftY = topLeft.getValue(PropNameY);
89
+ points.push_back(
90
+ SkPoint::Make(topLeftX.getAsNumber(), topLeftY.getAsNumber()));
91
+
92
+ auto topRight = value.getValue(PropNameTopRight);
93
+ auto topRightX = topRight.getValue(PropNameX);
94
+ auto topRightY = topRight.getValue(PropNameY);
95
+ points.push_back(SkPoint::Make(topRightX.getAsNumber(),
96
+ topRightY.getAsNumber()));
97
+
98
+ auto bottomRight = value.getValue(PropNameBottomRight);
99
+ auto bottomRightX = bottomRight.getValue(PropNameX);
100
+ auto bottomRightY = bottomRight.getValue(PropNameY);
101
+ points.push_back(SkPoint::Make(bottomRightX.getAsNumber(),
102
+ bottomRightY.getAsNumber()));
103
+
104
+ auto bottomLeft = value.getValue(PropNameBottomLeft);
105
+ auto bottomLeftX = bottomLeft.getValue(PropNameX);
106
+ auto bottomLeftY = bottomLeft.getValue(PropNameY);
107
+ points.push_back(SkPoint::Make(bottomLeftX.getAsNumber(),
108
+ bottomLeftY.getAsNumber()));
109
+
110
+ auto rrect = std::make_shared<SkRRect>(SkRRect::MakeEmpty());
111
+ rrect->setRectRadii(
112
+ SkRect::MakeXYWH(x.getAsNumber(), y.getAsNumber(),
113
+ width.getAsNumber(), height.getAsNumber()),
114
+ points.data());
115
+ return rrect;
116
+ }
67
117
  }
68
118
  }
69
119
  }
@@ -92,7 +92,7 @@ sk_sp<SkSurface> SkiaMetalSurfaceFactory::makeOffscreenSurface(int width,
92
92
  // Create a GrBackendTexture from the Metal texture
93
93
  GrMtlTextureInfo info;
94
94
  info.fTexture.retain((__bridge void *)ctx->texture);
95
- GrBackendTexture backendTexture(width, height, GrMipMapped::kNo, info);
95
+ GrBackendTexture backendTexture(width, height, skgpu::Mipmapped::kNo, info);
96
96
 
97
97
  // Create a SkSurface from the GrBackendTexture
98
98
  auto surface = SkSurfaces::WrapBackendTexture(
@@ -1,4 +1 @@
1
- export * from "./timing";
2
- export * from "./spring";
3
- export * from "./decay";
4
1
  export * from "./functions";
@@ -4,45 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var _timing = require("./timing");
8
-
9
- Object.keys(_timing).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _timing[key]) return;
12
- Object.defineProperty(exports, key, {
13
- enumerable: true,
14
- get: function () {
15
- return _timing[key];
16
- }
17
- });
18
- });
19
-
20
- var _spring = require("./spring");
21
-
22
- Object.keys(_spring).forEach(function (key) {
23
- if (key === "default" || key === "__esModule") return;
24
- if (key in exports && exports[key] === _spring[key]) return;
25
- Object.defineProperty(exports, key, {
26
- enumerable: true,
27
- get: function () {
28
- return _spring[key];
29
- }
30
- });
31
- });
32
-
33
- var _decay = require("./decay");
34
-
35
- Object.keys(_decay).forEach(function (key) {
36
- if (key === "default" || key === "__esModule") return;
37
- if (key in exports && exports[key] === _decay[key]) return;
38
- Object.defineProperty(exports, key, {
39
- enumerable: true,
40
- get: function () {
41
- return _decay[key];
42
- }
43
- });
44
- });
45
-
46
7
  var _functions = require("./functions");
47
8
 
48
9
  Object.keys(_functions).forEach(function (key) {
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./timing\";\nexport * from \"./spring\";\nexport * from \"./decay\";\nexport * from \"./functions\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./functions\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1,7 +1,8 @@
1
- import type { PathProps, SkDOM, GroupProps, ImageProps, BlurImageFilterProps, MatrixColorFilterProps, CircleProps, BlurMaskFilterProps, LinearGradientProps, PaintProps, ShaderProps, ImageShaderProps, CustomDrawingNodeProps, LineProps, OvalProps, PatchProps, PointsProps, RectProps, RoundedRectProps, VerticesProps, TextProps, DiffRectProps, OffsetImageFilterProps, BlendColorFilterProps, TextPathProps, TextBlobProps, GlyphsProps, TwoPointConicalGradientProps, TurbulenceProps, SweepGradientProps, RadialGradientProps, FractalNoiseProps, ColorProps, PictureProps, ImageSVGProps, LerpColorFilterProps, DrawingNodeProps, BoxProps, BoxShadowProps, ChildrenProps } from "../types";
1
+ import type { PathProps, SkDOM, GroupProps, ImageProps, BlurImageFilterProps, MatrixColorFilterProps, CircleProps, BlurMaskFilterProps, LinearGradientProps, PaintProps, ShaderProps, ImageShaderProps, LineProps, OvalProps, PatchProps, PointsProps, RectProps, RoundedRectProps, VerticesProps, TextProps, DiffRectProps, OffsetImageFilterProps, BlendColorFilterProps, TextPathProps, TextBlobProps, GlyphsProps, TwoPointConicalGradientProps, TurbulenceProps, SweepGradientProps, RadialGradientProps, FractalNoiseProps, ColorProps, PictureProps, ImageSVGProps, LerpColorFilterProps, DrawingNodeProps, BoxProps, BoxShadowProps, ChildrenProps } from "../types";
2
2
  import type { BlendImageFilterProps, BlendProps, DisplacementMapImageFilterProps, DropShadowImageFilterProps, MorphologyImageFilterProps, RuntimeShaderImageFilterProps } from "../types/ImageFilters";
3
3
  import type { CornerPathEffectProps, DashPathEffectProps, DiscretePathEffectProps, Line2DPathEffectProps, Path1DPathEffectProps, Path2DPathEffectProps } from "../types/PathEffects";
4
4
  import type { ParagraphProps } from "../types/Paragraph";
5
+ import { RRectNode } from "./drawings";
5
6
  import type { NodeContext } from "./Node";
6
7
  export declare class JsiSkDOM implements SkDOM {
7
8
  private ctx;
@@ -13,13 +14,12 @@ export declare class JsiSkDOM implements SkDOM {
13
14
  Image(props: ImageProps): import("../types").RenderNode<ImageProps>;
14
15
  Circle(props: CircleProps): import("../types").RenderNode<CircleProps>;
15
16
  Path(props: PathProps): import("../types").RenderNode<PathProps>;
16
- CustomDrawing(props: CustomDrawingNodeProps): import("../types").RenderNode<CustomDrawingNodeProps>;
17
17
  Line(props: LineProps): import("../types").RenderNode<LineProps>;
18
18
  Oval(props: OvalProps): import("../types").RenderNode<OvalProps>;
19
19
  Patch(props: PatchProps): import("../types").RenderNode<PatchProps>;
20
20
  Points(props: PointsProps): import("../types").RenderNode<PointsProps>;
21
21
  Rect(props: RectProps): import("./DrawingNode").JsiDrawingNode<RectProps, import("../..").SkRect>;
22
- RRect(props: RoundedRectProps): import("./DrawingNode").JsiDrawingNode<RoundedRectProps, import("../..").SkRRect>;
22
+ RRect(props: RoundedRectProps): import("./DrawingNode").JsiDrawingNode<RoundedRectProps, import("../..").SkRRect> | RRectNode;
23
23
  Vertices(props: VerticesProps): import("../types").RenderNode<VerticesProps>;
24
24
  Text(props: TextProps): import("../types").RenderNode<TextProps>;
25
25
  TextPath(props: TextPathProps): import("../types").RenderNode<TextPathProps>;
@@ -59,12 +59,6 @@ class JsiSkDOM {
59
59
  return _HostComponents.NATIVE_DOM ? global.SkiaDomApi.PathNode(props ?? {}) : new _drawings.PathNode(this.ctx, props);
60
60
  }
61
61
 
62
- CustomDrawing(props) {
63
- console.warn( // eslint-disable-next-line max-len
64
- "The <Drawing /> component is deprecated and will be removed in the next release. For custom drawings, please sure the <Picture /> component: https://shopify.github.io/react-native-skia/docs/shapes/pictures/");
65
- return _HostComponents.NATIVE_DOM ? global.SkiaDomApi.CustomDrawingNode(props ?? {}) : new _drawings.CustomDrawingNode(this.ctx, props);
66
- }
67
-
68
62
  Line(props) {
69
63
  return _HostComponents.NATIVE_DOM ? global.SkiaDomApi.LineNode(props ?? {}) : new _drawings.LineNode(this.ctx, props);
70
64
  }
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkDOM","constructor","ctx","Layer","props","NATIVE_DOM","global","SkiaDomApi","LayerNode","Group","GroupNode","Paint","PaintNode","Fill","FillNode","Image","ImageNode","Circle","CircleNode","Path","PathNode","CustomDrawing","console","warn","CustomDrawingNode","Line","LineNode","Oval","OvalNode","Patch","PatchNode","Points","PointsNode","Rect","RectNode","RRect","RRectNode","Vertices","VerticesNode","Text","TextNode","TextPath","TextPathNode","TextBlob","TextBlobNode","Glyphs","GlyphsNode","DiffRect","DiffRectNode","Picture","PictureNode","ImageSVG","ImageSVGNode","BlurMaskFilter","BlurMaskFilterNode","BlendImageFilter","BlendImageFilterNode","DropShadowImageFilter","DropShadowImageFilterNode","DisplacementMapImageFilter","DisplacementMapImageFilterNode","BlurImageFilter","BlurImageFilterNode","OffsetImageFilter","OffsetImageFilterNode","MorphologyImageFilter","MorphologyImageFilterNode","RuntimeShaderImageFilter","RuntimeShaderImageFilterNode","MatrixColorFilter","MatrixColorFilterNode","BlendColorFilter","BlendColorFilterNode","LumaColorFilter","LumaColorFilterNode","LinearToSRGBGammaColorFilter","LinearToSRGBGammaColorFilterNode","SRGBToLinearGammaColorFilter","SRGBToLinearGammaColorFilterNode","LerpColorFilter","LerpColorFilterNode","Shader","ShaderNode","ImageShader","ImageShaderNode","ColorShader","ColorShaderNode","ColorNode","SweepGradient","SweepGradientNode","Turbulence","TurbulenceNode","FractalNoise","FractalNoiseNode","LinearGradient","LinearGradientNode","RadialGradient","RadialGradientNode","TwoPointConicalGradient","TwoPointConicalGradientNode","CornerPathEffect","CornerPathEffectNode","DiscretePathEffect","DiscretePathEffectNode","DashPathEffect","DashPathEffectNode","Path1DPathEffect","Path1DPathEffectNode","Path2DPathEffect","Path2DPathEffectNode","SumPathEffect","SumPathEffectNode","Line2DPathEffect","Line2DPathEffectNode","Blend","BlendNode","BackdropFilter","BackdropFilterNode","Box","BoxNode","BoxShadow","BoxShadowNode","Paragraph","ParagraphNode"],"sources":["JsiSkDOM.ts"],"sourcesContent":["import type {\n PathProps,\n SkDOM,\n GroupProps,\n ImageProps,\n BlurImageFilterProps,\n MatrixColorFilterProps,\n CircleProps,\n BlurMaskFilterProps,\n LinearGradientProps,\n PaintProps,\n ShaderProps,\n ImageShaderProps,\n CustomDrawingNodeProps,\n LineProps,\n OvalProps,\n PatchProps,\n PointsProps,\n RectProps,\n RoundedRectProps,\n VerticesProps,\n TextProps,\n DiffRectProps,\n OffsetImageFilterProps,\n BlendColorFilterProps,\n TextPathProps,\n TextBlobProps,\n GlyphsProps,\n TwoPointConicalGradientProps,\n TurbulenceProps,\n SweepGradientProps,\n RadialGradientProps,\n FractalNoiseProps,\n ColorProps,\n PictureProps,\n ImageSVGProps,\n LerpColorFilterProps,\n DrawingNodeProps,\n BoxProps,\n BoxShadowProps,\n ChildrenProps,\n} from \"../types\";\nimport type {\n BlendImageFilterProps,\n BlendProps,\n DisplacementMapImageFilterProps,\n DropShadowImageFilterProps,\n MorphologyImageFilterProps,\n RuntimeShaderImageFilterProps,\n} from \"../types/ImageFilters\";\nimport type {\n CornerPathEffectProps,\n DashPathEffectProps,\n DiscretePathEffectProps,\n Line2DPathEffectProps,\n Path1DPathEffectProps,\n Path2DPathEffectProps,\n} from \"../types/PathEffects\";\nimport { NATIVE_DOM } from \"../../renderer/HostComponents\";\nimport type { ParagraphProps } from \"../types/Paragraph\";\n\nimport {\n FillNode,\n ImageNode,\n CircleNode,\n PathNode,\n LineNode,\n PatchNode,\n PointsNode,\n RectNode,\n RRectNode,\n VerticesNode,\n TextNode,\n OvalNode,\n CustomDrawingNode,\n TextPathNode,\n TextBlobNode,\n GlyphsNode,\n DiffRectNode,\n PictureNode,\n ImageSVGNode,\n BackdropFilterNode,\n BoxNode,\n BoxShadowNode,\n} from \"./drawings\";\nimport {\n BlendImageFilterNode,\n BlurImageFilterNode,\n BlurMaskFilterNode,\n DisplacementMapImageFilterNode,\n DropShadowImageFilterNode,\n OffsetImageFilterNode,\n RuntimeShaderImageFilterNode,\n CornerPathEffectNode,\n DiscretePathEffectNode,\n DashPathEffectNode,\n Path1DPathEffectNode,\n Path2DPathEffectNode,\n SumPathEffectNode,\n Line2DPathEffectNode,\n BlendNode,\n} from \"./paint\";\nimport {\n MatrixColorFilterNode,\n LumaColorFilterNode,\n LinearToSRGBGammaColorFilterNode,\n SRGBToLinearGammaColorFilterNode,\n BlendColorFilterNode,\n LerpColorFilterNode,\n} from \"./paint/ColorFilters\";\nimport {\n LinearGradientNode,\n ShaderNode,\n ImageShaderNode,\n TwoPointConicalGradientNode,\n TurbulenceNode,\n SweepGradientNode,\n RadialGradientNode,\n FractalNoiseNode,\n ColorNode,\n} from \"./paint/Shaders\";\nimport { MorphologyImageFilterNode } from \"./paint/ImageFilters\";\nimport { GroupNode } from \"./GroupNode\";\nimport { PaintNode } from \"./PaintNode\";\nimport type { NodeContext } from \"./Node\";\nimport { LayerNode } from \"./LayerNode\";\nimport { ParagraphNode } from \"./drawings/ParagraphNode\";\n\nexport class JsiSkDOM implements SkDOM {\n constructor(private ctx: NodeContext) {}\n\n Layer(props?: ChildrenProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.LayerNode(props ?? {})\n : new LayerNode(this.ctx, props ?? {});\n }\n\n Group(props?: GroupProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.GroupNode(props ?? {})\n : new GroupNode(this.ctx, props ?? {});\n }\n\n Paint(props: PaintProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PaintNode(props ?? {})\n : new PaintNode(this.ctx, props);\n }\n\n // Drawings\n Fill(props?: DrawingNodeProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.FillNode(props ?? {})\n : new FillNode(this.ctx, props);\n }\n\n Image(props: ImageProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ImageNode(props ?? {})\n : new ImageNode(this.ctx, props);\n }\n\n Circle(props: CircleProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.CircleNode(props ?? {})\n : new CircleNode(this.ctx, props);\n }\n\n Path(props: PathProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PathNode(props ?? {})\n : new PathNode(this.ctx, props);\n }\n\n CustomDrawing(props: CustomDrawingNodeProps) {\n console.warn(\n // eslint-disable-next-line max-len\n \"The <Drawing /> component is deprecated and will be removed in the next release. For custom drawings, please sure the <Picture /> component: https://shopify.github.io/react-native-skia/docs/shapes/pictures/\"\n );\n return NATIVE_DOM\n ? global.SkiaDomApi.CustomDrawingNode(props ?? {})\n : new CustomDrawingNode(this.ctx, props);\n }\n\n Line(props: LineProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.LineNode(props ?? {})\n : new LineNode(this.ctx, props);\n }\n\n Oval(props: OvalProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.OvalNode(props ?? {})\n : new OvalNode(this.ctx, props);\n }\n\n Patch(props: PatchProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PatchNode(props ?? {})\n : new PatchNode(this.ctx, props);\n }\n\n Points(props: PointsProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PointsNode(props ?? {})\n : new PointsNode(this.ctx, props);\n }\n\n Rect(props: RectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.RectNode(props)\n : new RectNode(this.ctx, props);\n }\n\n RRect(props: RoundedRectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.RRectNode(props)\n : new RRectNode(this.ctx, props);\n }\n\n Vertices(props: VerticesProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.VerticesNode(props)\n : new VerticesNode(this.ctx, props);\n }\n\n Text(props: TextProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TextNode(props)\n : new TextNode(this.ctx, props);\n }\n\n TextPath(props: TextPathProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TextPathNode(props)\n : new TextPathNode(this.ctx, props);\n }\n\n TextBlob(props: TextBlobProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TextBlobNode(props)\n : new TextBlobNode(this.ctx, props);\n }\n\n Glyphs(props: GlyphsProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.GlyphsNode(props)\n : new GlyphsNode(this.ctx, props);\n }\n\n DiffRect(props: DiffRectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DiffRectNode(props)\n : new DiffRectNode(this.ctx, props);\n }\n\n Picture(props: PictureProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PictureNode(props)\n : new PictureNode(this.ctx, props);\n }\n\n ImageSVG(props: ImageSVGProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ImageSVGNode(props)\n : new ImageSVGNode(this.ctx, props);\n }\n\n // BlurMaskFilters\n BlurMaskFilter(props: BlurMaskFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlurMaskFilterNode(props)\n : new BlurMaskFilterNode(this.ctx, props);\n }\n\n // ImageFilters\n BlendImageFilter(props: BlendImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlendImageFilterNode(props)\n : new BlendImageFilterNode(this.ctx, props);\n }\n\n DropShadowImageFilter(props: DropShadowImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DropShadowImageFilterNode(props)\n : new DropShadowImageFilterNode(this.ctx, props);\n }\n\n DisplacementMapImageFilter(props: DisplacementMapImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DisplacementMapImageFilterNode(props)\n : new DisplacementMapImageFilterNode(this.ctx, props);\n }\n\n BlurImageFilter(props: BlurImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlurImageFilterNode(props)\n : new BlurImageFilterNode(this.ctx, props);\n }\n\n OffsetImageFilter(props: OffsetImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.OffsetImageFilterNode(props)\n : new OffsetImageFilterNode(this.ctx, props);\n }\n\n MorphologyImageFilter(props: MorphologyImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.MorphologyImageFilterNode(props)\n : new MorphologyImageFilterNode(this.ctx, props);\n }\n\n RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.RuntimeShaderImageFilterNode(props)\n : new RuntimeShaderImageFilterNode(this.ctx, props);\n }\n\n // Color Filters\n MatrixColorFilter(props: MatrixColorFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.MatrixColorFilterNode(props)\n : new MatrixColorFilterNode(this.ctx, props);\n }\n\n BlendColorFilter(props: BlendColorFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlendColorFilterNode(props)\n : new BlendColorFilterNode(this.ctx, props);\n }\n\n LumaColorFilter() {\n return NATIVE_DOM\n ? global.SkiaDomApi.LumaColorFilterNode()\n : new LumaColorFilterNode(this.ctx);\n }\n\n LinearToSRGBGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.LinearToSRGBGammaColorFilterNode\n ? global.SkiaDomApi.LinearToSRGBGammaColorFilterNode()\n : new LinearToSRGBGammaColorFilterNode(this.ctx);\n }\n\n SRGBToLinearGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.SRGBToLinearGammaColorFilterNode\n ? global.SkiaDomApi.SRGBToLinearGammaColorFilterNode()\n : new SRGBToLinearGammaColorFilterNode(this.ctx);\n }\n\n LerpColorFilter(props: LerpColorFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.LerpColorFilterNode(props)\n : new LerpColorFilterNode(this.ctx, props);\n }\n\n // Shaders\n Shader(props: ShaderProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ShaderNode(props)\n : new ShaderNode(this.ctx, props);\n }\n\n ImageShader(props: ImageShaderProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ImageShaderNode(props)\n : new ImageShaderNode(this.ctx, props);\n }\n\n ColorShader(props: ColorProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ColorShaderNode(props)\n : new ColorNode(this.ctx, props);\n }\n\n SweepGradient(props: SweepGradientProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.SweepGradientNode(props)\n : new SweepGradientNode(this.ctx, props);\n }\n\n Turbulence(props: TurbulenceProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TurbulenceNode(props)\n : new TurbulenceNode(this.ctx, props);\n }\n\n FractalNoise(props: FractalNoiseProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.FractalNoiseNode(props)\n : new FractalNoiseNode(this.ctx, props);\n }\n\n LinearGradient(props: LinearGradientProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.LinearGradientNode(props)\n : new LinearGradientNode(this.ctx, props);\n }\n\n RadialGradient(props: RadialGradientProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.RadialGradientNode(props)\n : new RadialGradientNode(this.ctx, props);\n }\n\n TwoPointConicalGradient(props: TwoPointConicalGradientProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TwoPointConicalGradientNode(props)\n : new TwoPointConicalGradientNode(this.ctx, props);\n }\n\n // Path Effects\n CornerPathEffect(props: CornerPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.CornerPathEffectNode(props)\n : new CornerPathEffectNode(this.ctx, props);\n }\n\n DiscretePathEffect(props: DiscretePathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DiscretePathEffectNode(props)\n : new DiscretePathEffectNode(this.ctx, props);\n }\n\n DashPathEffect(props: DashPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DashPathEffectNode(props)\n : new DashPathEffectNode(this.ctx, props);\n }\n\n Path1DPathEffect(props: Path1DPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.Path1DPathEffectNode(props)\n : new Path1DPathEffectNode(this.ctx, props);\n }\n\n Path2DPathEffect(props: Path2DPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.Path2DPathEffectNode(props)\n : new Path2DPathEffectNode(this.ctx, props);\n }\n\n SumPathEffect() {\n return NATIVE_DOM\n ? global.SkiaDomApi.SumPathEffectNode()\n : new SumPathEffectNode(this.ctx);\n }\n\n Line2DPathEffect(props: Line2DPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.Line2DPathEffectNode(props)\n : new Line2DPathEffectNode(this.ctx, props);\n }\n\n Blend(props: BlendProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlendNode(props)\n : new BlendNode(this.ctx, props);\n }\n\n BackdropFilter(props: ChildrenProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BackdropFilterNode(props)\n : new BackdropFilterNode(this.ctx, props);\n }\n\n Box(props: BoxProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BoxNode(props)\n : new BoxNode(this.ctx, props);\n }\n\n BoxShadow(props: BoxShadowProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BoxShadowNode(props)\n : new BoxShadowNode(this.ctx, props);\n }\n\n // Paragraph\n Paragraph(props: ParagraphProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ParagraphNode(props)\n : new ParagraphNode(this.ctx, props);\n }\n}\n"],"mappings":";;;;;;;AA0DA;;AAGA;;AAwBA;;AAiBA;;AAQA;;AAWA;;AACA;;AACA;;AAEA;;AACA;;AAEO,MAAMA,QAAN,CAAgC;EACrCC,WAAW,CAASC,GAAT,EAA2B;IAAA,KAAlBA,GAAkB,GAAlBA,GAAkB;EAAE;;EAExCC,KAAK,CAACC,KAAD,EAAwB;IAC3B,OAAOC,0BAAA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AAOC,0BAAA,GACHC,MAAM,CAACC,UAAP,CAAkBoH,aAAlB,CAAgCvH,KAAhC,CADG,GAEH,IAAIuH,4BAAJ,CAAkB,KAAKzH,GAAvB,EAA4BE,KAA5B,CAFJ;EAGD;;AApWoC"}
1
+ {"version":3,"names":["JsiSkDOM","constructor","ctx","Layer","props","NATIVE_DOM","global","SkiaDomApi","LayerNode","Group","GroupNode","Paint","PaintNode","Fill","FillNode","Image","ImageNode","Circle","CircleNode","Path","PathNode","Line","LineNode","Oval","OvalNode","Patch","PatchNode","Points","PointsNode","Rect","RectNode","RRect","RRectNode","Vertices","VerticesNode","Text","TextNode","TextPath","TextPathNode","TextBlob","TextBlobNode","Glyphs","GlyphsNode","DiffRect","DiffRectNode","Picture","PictureNode","ImageSVG","ImageSVGNode","BlurMaskFilter","BlurMaskFilterNode","BlendImageFilter","BlendImageFilterNode","DropShadowImageFilter","DropShadowImageFilterNode","DisplacementMapImageFilter","DisplacementMapImageFilterNode","BlurImageFilter","BlurImageFilterNode","OffsetImageFilter","OffsetImageFilterNode","MorphologyImageFilter","MorphologyImageFilterNode","RuntimeShaderImageFilter","RuntimeShaderImageFilterNode","MatrixColorFilter","MatrixColorFilterNode","BlendColorFilter","BlendColorFilterNode","LumaColorFilter","LumaColorFilterNode","LinearToSRGBGammaColorFilter","LinearToSRGBGammaColorFilterNode","SRGBToLinearGammaColorFilter","SRGBToLinearGammaColorFilterNode","LerpColorFilter","LerpColorFilterNode","Shader","ShaderNode","ImageShader","ImageShaderNode","ColorShader","ColorShaderNode","ColorNode","SweepGradient","SweepGradientNode","Turbulence","TurbulenceNode","FractalNoise","FractalNoiseNode","LinearGradient","LinearGradientNode","RadialGradient","RadialGradientNode","TwoPointConicalGradient","TwoPointConicalGradientNode","CornerPathEffect","CornerPathEffectNode","DiscretePathEffect","DiscretePathEffectNode","DashPathEffect","DashPathEffectNode","Path1DPathEffect","Path1DPathEffectNode","Path2DPathEffect","Path2DPathEffectNode","SumPathEffect","SumPathEffectNode","Line2DPathEffect","Line2DPathEffectNode","Blend","BlendNode","BackdropFilter","BackdropFilterNode","Box","BoxNode","BoxShadow","BoxShadowNode","Paragraph","ParagraphNode"],"sources":["JsiSkDOM.ts"],"sourcesContent":["import type {\n PathProps,\n SkDOM,\n GroupProps,\n ImageProps,\n BlurImageFilterProps,\n MatrixColorFilterProps,\n CircleProps,\n BlurMaskFilterProps,\n LinearGradientProps,\n PaintProps,\n ShaderProps,\n ImageShaderProps,\n LineProps,\n OvalProps,\n PatchProps,\n PointsProps,\n RectProps,\n RoundedRectProps,\n VerticesProps,\n TextProps,\n DiffRectProps,\n OffsetImageFilterProps,\n BlendColorFilterProps,\n TextPathProps,\n TextBlobProps,\n GlyphsProps,\n TwoPointConicalGradientProps,\n TurbulenceProps,\n SweepGradientProps,\n RadialGradientProps,\n FractalNoiseProps,\n ColorProps,\n PictureProps,\n ImageSVGProps,\n LerpColorFilterProps,\n DrawingNodeProps,\n BoxProps,\n BoxShadowProps,\n ChildrenProps,\n} from \"../types\";\nimport type {\n BlendImageFilterProps,\n BlendProps,\n DisplacementMapImageFilterProps,\n DropShadowImageFilterProps,\n MorphologyImageFilterProps,\n RuntimeShaderImageFilterProps,\n} from \"../types/ImageFilters\";\nimport type {\n CornerPathEffectProps,\n DashPathEffectProps,\n DiscretePathEffectProps,\n Line2DPathEffectProps,\n Path1DPathEffectProps,\n Path2DPathEffectProps,\n} from \"../types/PathEffects\";\nimport { NATIVE_DOM } from \"../../renderer/HostComponents\";\nimport type { ParagraphProps } from \"../types/Paragraph\";\n\nimport {\n FillNode,\n ImageNode,\n CircleNode,\n PathNode,\n LineNode,\n PatchNode,\n PointsNode,\n RectNode,\n RRectNode,\n VerticesNode,\n TextNode,\n OvalNode,\n TextPathNode,\n TextBlobNode,\n GlyphsNode,\n DiffRectNode,\n PictureNode,\n ImageSVGNode,\n BackdropFilterNode,\n BoxNode,\n BoxShadowNode,\n} from \"./drawings\";\nimport {\n BlendImageFilterNode,\n BlurImageFilterNode,\n BlurMaskFilterNode,\n DisplacementMapImageFilterNode,\n DropShadowImageFilterNode,\n OffsetImageFilterNode,\n RuntimeShaderImageFilterNode,\n CornerPathEffectNode,\n DiscretePathEffectNode,\n DashPathEffectNode,\n Path1DPathEffectNode,\n Path2DPathEffectNode,\n SumPathEffectNode,\n Line2DPathEffectNode,\n BlendNode,\n} from \"./paint\";\nimport {\n MatrixColorFilterNode,\n LumaColorFilterNode,\n LinearToSRGBGammaColorFilterNode,\n SRGBToLinearGammaColorFilterNode,\n BlendColorFilterNode,\n LerpColorFilterNode,\n} from \"./paint/ColorFilters\";\nimport {\n LinearGradientNode,\n ShaderNode,\n ImageShaderNode,\n TwoPointConicalGradientNode,\n TurbulenceNode,\n SweepGradientNode,\n RadialGradientNode,\n FractalNoiseNode,\n ColorNode,\n} from \"./paint/Shaders\";\nimport { MorphologyImageFilterNode } from \"./paint/ImageFilters\";\nimport { GroupNode } from \"./GroupNode\";\nimport { PaintNode } from \"./PaintNode\";\nimport type { NodeContext } from \"./Node\";\nimport { LayerNode } from \"./LayerNode\";\nimport { ParagraphNode } from \"./drawings/ParagraphNode\";\n\nexport class JsiSkDOM implements SkDOM {\n constructor(private ctx: NodeContext) {}\n\n Layer(props?: ChildrenProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.LayerNode(props ?? {})\n : new LayerNode(this.ctx, props ?? {});\n }\n\n Group(props?: GroupProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.GroupNode(props ?? {})\n : new GroupNode(this.ctx, props ?? {});\n }\n\n Paint(props: PaintProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PaintNode(props ?? {})\n : new PaintNode(this.ctx, props);\n }\n\n // Drawings\n Fill(props?: DrawingNodeProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.FillNode(props ?? {})\n : new FillNode(this.ctx, props);\n }\n\n Image(props: ImageProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ImageNode(props ?? {})\n : new ImageNode(this.ctx, props);\n }\n\n Circle(props: CircleProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.CircleNode(props ?? {})\n : new CircleNode(this.ctx, props);\n }\n\n Path(props: PathProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PathNode(props ?? {})\n : new PathNode(this.ctx, props);\n }\n\n Line(props: LineProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.LineNode(props ?? {})\n : new LineNode(this.ctx, props);\n }\n\n Oval(props: OvalProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.OvalNode(props ?? {})\n : new OvalNode(this.ctx, props);\n }\n\n Patch(props: PatchProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PatchNode(props ?? {})\n : new PatchNode(this.ctx, props);\n }\n\n Points(props: PointsProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PointsNode(props ?? {})\n : new PointsNode(this.ctx, props);\n }\n\n Rect(props: RectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.RectNode(props)\n : new RectNode(this.ctx, props);\n }\n\n RRect(props: RoundedRectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.RRectNode(props)\n : new RRectNode(this.ctx, props);\n }\n\n Vertices(props: VerticesProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.VerticesNode(props)\n : new VerticesNode(this.ctx, props);\n }\n\n Text(props: TextProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TextNode(props)\n : new TextNode(this.ctx, props);\n }\n\n TextPath(props: TextPathProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TextPathNode(props)\n : new TextPathNode(this.ctx, props);\n }\n\n TextBlob(props: TextBlobProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TextBlobNode(props)\n : new TextBlobNode(this.ctx, props);\n }\n\n Glyphs(props: GlyphsProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.GlyphsNode(props)\n : new GlyphsNode(this.ctx, props);\n }\n\n DiffRect(props: DiffRectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DiffRectNode(props)\n : new DiffRectNode(this.ctx, props);\n }\n\n Picture(props: PictureProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.PictureNode(props)\n : new PictureNode(this.ctx, props);\n }\n\n ImageSVG(props: ImageSVGProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ImageSVGNode(props)\n : new ImageSVGNode(this.ctx, props);\n }\n\n // BlurMaskFilters\n BlurMaskFilter(props: BlurMaskFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlurMaskFilterNode(props)\n : new BlurMaskFilterNode(this.ctx, props);\n }\n\n // ImageFilters\n BlendImageFilter(props: BlendImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlendImageFilterNode(props)\n : new BlendImageFilterNode(this.ctx, props);\n }\n\n DropShadowImageFilter(props: DropShadowImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DropShadowImageFilterNode(props)\n : new DropShadowImageFilterNode(this.ctx, props);\n }\n\n DisplacementMapImageFilter(props: DisplacementMapImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DisplacementMapImageFilterNode(props)\n : new DisplacementMapImageFilterNode(this.ctx, props);\n }\n\n BlurImageFilter(props: BlurImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlurImageFilterNode(props)\n : new BlurImageFilterNode(this.ctx, props);\n }\n\n OffsetImageFilter(props: OffsetImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.OffsetImageFilterNode(props)\n : new OffsetImageFilterNode(this.ctx, props);\n }\n\n MorphologyImageFilter(props: MorphologyImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.MorphologyImageFilterNode(props)\n : new MorphologyImageFilterNode(this.ctx, props);\n }\n\n RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.RuntimeShaderImageFilterNode(props)\n : new RuntimeShaderImageFilterNode(this.ctx, props);\n }\n\n // Color Filters\n MatrixColorFilter(props: MatrixColorFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.MatrixColorFilterNode(props)\n : new MatrixColorFilterNode(this.ctx, props);\n }\n\n BlendColorFilter(props: BlendColorFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlendColorFilterNode(props)\n : new BlendColorFilterNode(this.ctx, props);\n }\n\n LumaColorFilter() {\n return NATIVE_DOM\n ? global.SkiaDomApi.LumaColorFilterNode()\n : new LumaColorFilterNode(this.ctx);\n }\n\n LinearToSRGBGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.LinearToSRGBGammaColorFilterNode\n ? global.SkiaDomApi.LinearToSRGBGammaColorFilterNode()\n : new LinearToSRGBGammaColorFilterNode(this.ctx);\n }\n\n SRGBToLinearGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.SRGBToLinearGammaColorFilterNode\n ? global.SkiaDomApi.SRGBToLinearGammaColorFilterNode()\n : new SRGBToLinearGammaColorFilterNode(this.ctx);\n }\n\n LerpColorFilter(props: LerpColorFilterProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.LerpColorFilterNode(props)\n : new LerpColorFilterNode(this.ctx, props);\n }\n\n // Shaders\n Shader(props: ShaderProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ShaderNode(props)\n : new ShaderNode(this.ctx, props);\n }\n\n ImageShader(props: ImageShaderProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ImageShaderNode(props)\n : new ImageShaderNode(this.ctx, props);\n }\n\n ColorShader(props: ColorProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ColorShaderNode(props)\n : new ColorNode(this.ctx, props);\n }\n\n SweepGradient(props: SweepGradientProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.SweepGradientNode(props)\n : new SweepGradientNode(this.ctx, props);\n }\n\n Turbulence(props: TurbulenceProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TurbulenceNode(props)\n : new TurbulenceNode(this.ctx, props);\n }\n\n FractalNoise(props: FractalNoiseProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.FractalNoiseNode(props)\n : new FractalNoiseNode(this.ctx, props);\n }\n\n LinearGradient(props: LinearGradientProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.LinearGradientNode(props)\n : new LinearGradientNode(this.ctx, props);\n }\n\n RadialGradient(props: RadialGradientProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.RadialGradientNode(props)\n : new RadialGradientNode(this.ctx, props);\n }\n\n TwoPointConicalGradient(props: TwoPointConicalGradientProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.TwoPointConicalGradientNode(props)\n : new TwoPointConicalGradientNode(this.ctx, props);\n }\n\n // Path Effects\n CornerPathEffect(props: CornerPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.CornerPathEffectNode(props)\n : new CornerPathEffectNode(this.ctx, props);\n }\n\n DiscretePathEffect(props: DiscretePathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DiscretePathEffectNode(props)\n : new DiscretePathEffectNode(this.ctx, props);\n }\n\n DashPathEffect(props: DashPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.DashPathEffectNode(props)\n : new DashPathEffectNode(this.ctx, props);\n }\n\n Path1DPathEffect(props: Path1DPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.Path1DPathEffectNode(props)\n : new Path1DPathEffectNode(this.ctx, props);\n }\n\n Path2DPathEffect(props: Path2DPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.Path2DPathEffectNode(props)\n : new Path2DPathEffectNode(this.ctx, props);\n }\n\n SumPathEffect() {\n return NATIVE_DOM\n ? global.SkiaDomApi.SumPathEffectNode()\n : new SumPathEffectNode(this.ctx);\n }\n\n Line2DPathEffect(props: Line2DPathEffectProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.Line2DPathEffectNode(props)\n : new Line2DPathEffectNode(this.ctx, props);\n }\n\n Blend(props: BlendProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BlendNode(props)\n : new BlendNode(this.ctx, props);\n }\n\n BackdropFilter(props: ChildrenProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BackdropFilterNode(props)\n : new BackdropFilterNode(this.ctx, props);\n }\n\n Box(props: BoxProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BoxNode(props)\n : new BoxNode(this.ctx, props);\n }\n\n BoxShadow(props: BoxShadowProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.BoxShadowNode(props)\n : new BoxShadowNode(this.ctx, props);\n }\n\n // Paragraph\n Paragraph(props: ParagraphProps) {\n return NATIVE_DOM\n ? global.SkiaDomApi.ParagraphNode(props)\n : new ParagraphNode(this.ctx, props);\n }\n}\n"],"mappings":";;;;;;;AAyDA;;AAGA;;AAuBA;;AAiBA;;AAQA;;AAWA;;AACA;;AACA;;AAEA;;AACA;;AAEO,MAAMA,QAAN,CAAgC;EACrCC,WAAW,CAASC,GAAT,EAA2B;IAAA,KAAlBA,GAAkB,GAAlBA,GAAkB;EAAE;;EAExCC,KAAK,CAACC,KAAD,EAAwB;IAC3B,OAAOC,0BAAA,GACHC,MAAM,CAACC,UAAP,CAAkBC,SAAlB,CAA4BJ,KAAK,IAAI,EAArC,CADG,GAEH,IAAII,oBAAJ,CAAc,KAAKN,GAAnB,EAAwBE,KAAK,IAAI,EAAjC,CAFJ;EAGD;;EAEDK,KAAK,CAACL,KAAD,EAAqB;IACxB,OAAOC,0BAAA,GACHC,MAAM,CAACC,UAAP,CAAkBG,SAAlB,CAA4BN,KAAK,IAAI,EAArC,CADG,GAEH,IAAIM,oBAAJ,CAAc,KAAKR,GAAnB,EAAwBE,KAAK,IAAI,EAAjC,CAFJ;EAGD;;EAEDO,KAAK,CAACP,KAAD,EAAoB;IACvB,OAAOC,0BAAA,GACHC,MAAM,CAACC,UAAP,CAAkBK,SAAlB,CAA4BR,KAA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IAAI6G,4BAAJ,CAAuB,KAAK/G,GAA5B,EAAiCE,KAAjC,CAFJ;EAGD;;EAED8G,GAAG,CAAC9G,KAAD,EAAkB;IACnB,OAAOC,0BAAA,GACHC,MAAM,CAACC,UAAP,CAAkB4G,OAAlB,CAA0B/G,KAA1B,CADG,GAEH,IAAI+G,iBAAJ,CAAY,KAAKjH,GAAjB,EAAsBE,KAAtB,CAFJ;EAGD;;EAEDgH,SAAS,CAAChH,KAAD,EAAwB;IAC/B,OAAOC,0BAAA,GACHC,MAAM,CAACC,UAAP,CAAkB8G,aAAlB,CAAgCjH,KAAhC,CADG,GAEH,IAAIiH,uBAAJ,CAAkB,KAAKnH,GAAvB,EAA4BE,KAA5B,CAFJ;EAGD,CAnVoC,CAqVrC;;;EACAkH,SAAS,CAAClH,KAAD,EAAwB;IAC/B,OAAOC,0BAAA,GACHC,MAAM,CAACC,UAAP,CAAkBgH,aAAlB,CAAgCnH,KAAhC,CADG,GAEH,IAAImH,4BAAJ,CAAkB,KAAKrH,GAAvB,EAA4BE,KAA5B,CAFJ;EAGD;;AA1VoC"}
@@ -1,17 +1,14 @@
1
1
  import type { Skia } from "../../skia/types";
2
2
  import type { Node, DeclarationNode, NodeType, DeclarationType } from "../types";
3
- import type { DependencyManager } from "../../renderer/DependencyManager";
4
3
  import type { DeclarationContext } from "../types/DeclarationContext";
5
4
  export interface NodeContext {
6
5
  Skia: Skia;
7
- depMgr: DependencyManager;
8
6
  }
9
7
  export declare abstract class JsiNode<P> implements Node<P> {
10
8
  type: NodeType;
11
9
  protected props: P;
12
10
  protected _children: JsiNode<unknown>[];
13
11
  protected Skia: Skia;
14
- protected depMgr: DependencyManager;
15
12
  constructor(ctx: NodeContext, type: NodeType, props: P);
16
13
  setProps(props: P): void;
17
14
  setProp<K extends keyof P>(name: K, v: P[K]): boolean;
@@ -16,10 +16,7 @@ class JsiNode {
16
16
 
17
17
  _defineProperty(this, "Skia", void 0);
18
18
 
19
- _defineProperty(this, "depMgr", void 0);
20
-
21
19
  this.Skia = ctx.Skia;
22
- this.depMgr = ctx.depMgr;
23
20
  }
24
21
 
25
22
  setProps(props) {
@@ -45,8 +42,6 @@ class JsiNode {
45
42
  }
46
43
 
47
44
  dispose() {
48
- this.depMgr.unsubscribeNode(this);
49
-
50
45
  this._children.forEach(child => child.dispose());
51
46
  }
52
47