@shopify/react-native-skia 0.1.228 → 0.1.230

Sign up to get free protection for your applications and to get access to all the features.
Files changed (629) hide show
  1. package/android/cpp/jni/JniLoad.cpp +0 -2
  2. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +0 -1
  3. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +1 -2
  4. package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseView.java +7 -12
  5. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomView.java +1 -1
  6. package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureView.java +1 -1
  7. package/cpp/api/JsiSkApi.h +4 -1
  8. package/cpp/api/JsiSkParagraph.h +15 -0
  9. package/cpp/api/JsiSkParagraphBuilder.h +3 -32
  10. package/cpp/api/JsiSkParagraphBuilderFactory.h +54 -0
  11. package/cpp/rnskia/RNSkJsiViewApi.h +0 -52
  12. package/cpp/rnskia/RNSkManager.cpp +0 -6
  13. package/cpp/rnskia/RNSkView.h +2 -91
  14. package/cpp/rnskia/dom/JsiDomApi.h +0 -9
  15. package/lib/commonjs/animation/index.d.ts +0 -3
  16. package/lib/commonjs/animation/index.js +0 -39
  17. package/lib/commonjs/animation/index.js.map +1 -1
  18. package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +1 -2
  19. package/lib/commonjs/dom/nodes/JsiSkDOM.js +0 -6
  20. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  21. package/lib/commonjs/dom/nodes/Node.d.ts +0 -3
  22. package/lib/commonjs/dom/nodes/Node.js +0 -5
  23. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  24. package/lib/commonjs/dom/nodes/drawings/index.d.ts +0 -1
  25. package/lib/commonjs/dom/nodes/drawings/index.js +0 -13
  26. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  27. package/lib/commonjs/dom/types/Common.d.ts +2 -2
  28. package/lib/commonjs/dom/types/Common.js.map +1 -1
  29. package/lib/commonjs/dom/types/Drawings.d.ts +0 -4
  30. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  31. package/lib/commonjs/dom/types/NodeType.d.ts +0 -1
  32. package/lib/commonjs/dom/types/NodeType.js +0 -1
  33. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  34. package/lib/commonjs/dom/types/SkDOM.d.ts +1 -2
  35. package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
  36. package/lib/commonjs/index.d.ts +0 -1
  37. package/lib/commonjs/index.js +0 -14
  38. package/lib/commonjs/index.js.map +1 -1
  39. package/lib/commonjs/mock/index.js +0 -4
  40. package/lib/commonjs/mock/index.js.map +1 -1
  41. package/lib/commonjs/renderer/Canvas.js +9 -34
  42. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  43. package/lib/commonjs/renderer/Container.d.ts +1 -3
  44. package/lib/commonjs/renderer/Container.js +4 -6
  45. package/lib/commonjs/renderer/Container.js.map +1 -1
  46. package/lib/commonjs/renderer/HostComponents.d.ts +1 -6
  47. package/lib/commonjs/renderer/HostComponents.js +0 -3
  48. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  49. package/lib/commonjs/renderer/HostConfig.js +2 -23
  50. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  51. package/lib/commonjs/renderer/Reconciler.d.ts +1 -5
  52. package/lib/commonjs/renderer/Reconciler.js +3 -18
  53. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  54. package/lib/commonjs/renderer/components/index.d.ts +0 -1
  55. package/lib/commonjs/renderer/components/index.js +0 -13
  56. package/lib/commonjs/renderer/components/index.js.map +1 -1
  57. package/lib/commonjs/renderer/index.d.ts +0 -1
  58. package/lib/commonjs/renderer/index.js +0 -13
  59. package/lib/commonjs/renderer/index.js.map +1 -1
  60. package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +1 -8
  61. package/lib/commonjs/renderer/processors/Animations/Animations.js +0 -44
  62. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  63. package/lib/commonjs/skia/types/Canvas.d.ts +2 -2
  64. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  65. package/lib/commonjs/skia/types/Matrix.d.ts +2 -1
  66. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  67. package/lib/commonjs/skia/types/Matrix4.d.ts +9 -1
  68. package/lib/commonjs/skia/types/Matrix4.js +49 -3
  69. package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
  70. package/lib/commonjs/skia/types/Paragraph/Paragraph.d.ts +23 -0
  71. package/lib/commonjs/skia/types/Paragraph/Paragraph.js.map +1 -1
  72. package/lib/commonjs/skia/types/Path/Path.d.ts +2 -2
  73. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  74. package/lib/commonjs/skia/web/JsiSkMatrix.d.ts +2 -2
  75. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  76. package/lib/commonjs/skia/web/JsiSkParagraph.d.ts +3 -0
  77. package/lib/commonjs/skia/web/JsiSkParagraph.js +12 -0
  78. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  79. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +5 -2
  80. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  81. package/lib/commonjs/views/SkiaBaseWebView.d.ts +0 -7
  82. package/lib/commonjs/views/SkiaBaseWebView.js +0 -17
  83. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  84. package/lib/commonjs/views/SkiaDomView.d.ts +0 -7
  85. package/lib/commonjs/views/SkiaDomView.js +3 -14
  86. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  87. package/lib/commonjs/views/SkiaDomView.web.js +4 -14
  88. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  89. package/lib/commonjs/views/SkiaPictureView.d.ts +0 -7
  90. package/lib/commonjs/views/SkiaPictureView.js +3 -14
  91. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  92. package/lib/commonjs/views/SkiaViewNativeId.d.ts +3 -0
  93. package/lib/commonjs/views/SkiaViewNativeId.js +11 -0
  94. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -0
  95. package/lib/commonjs/views/index.d.ts +0 -2
  96. package/lib/commonjs/views/index.js +0 -26
  97. package/lib/commonjs/views/index.js.map +1 -1
  98. package/lib/commonjs/views/types.d.ts +2 -15
  99. package/lib/commonjs/views/types.js.map +1 -1
  100. package/lib/module/animation/index.d.ts +0 -3
  101. package/lib/module/animation/index.js +0 -3
  102. package/lib/module/animation/index.js.map +1 -1
  103. package/lib/module/dom/nodes/JsiSkDOM.d.ts +1 -2
  104. package/lib/module/dom/nodes/JsiSkDOM.js +1 -7
  105. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  106. package/lib/module/dom/nodes/Node.d.ts +0 -3
  107. package/lib/module/dom/nodes/Node.js +0 -5
  108. package/lib/module/dom/nodes/Node.js.map +1 -1
  109. package/lib/module/dom/nodes/drawings/index.d.ts +0 -1
  110. package/lib/module/dom/nodes/drawings/index.js +0 -1
  111. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  112. package/lib/module/dom/types/Common.d.ts +2 -2
  113. package/lib/module/dom/types/Common.js.map +1 -1
  114. package/lib/module/dom/types/Drawings.d.ts +0 -4
  115. package/lib/module/dom/types/Drawings.js.map +1 -1
  116. package/lib/module/dom/types/NodeType.d.ts +0 -1
  117. package/lib/module/dom/types/NodeType.js +0 -1
  118. package/lib/module/dom/types/NodeType.js.map +1 -1
  119. package/lib/module/dom/types/SkDOM.d.ts +1 -2
  120. package/lib/module/dom/types/SkDOM.js.map +1 -1
  121. package/lib/module/index.d.ts +0 -1
  122. package/lib/module/index.js +0 -1
  123. package/lib/module/index.js.map +1 -1
  124. package/lib/module/mock/index.js +1 -4
  125. package/lib/module/mock/index.js.map +1 -1
  126. package/lib/module/renderer/Canvas.js +9 -32
  127. package/lib/module/renderer/Canvas.js.map +1 -1
  128. package/lib/module/renderer/Container.d.ts +1 -3
  129. package/lib/module/renderer/Container.js +4 -6
  130. package/lib/module/renderer/Container.js.map +1 -1
  131. package/lib/module/renderer/HostComponents.d.ts +1 -6
  132. package/lib/module/renderer/HostComponents.js +0 -3
  133. package/lib/module/renderer/HostComponents.js.map +1 -1
  134. package/lib/module/renderer/HostConfig.js +3 -23
  135. package/lib/module/renderer/HostConfig.js.map +1 -1
  136. package/lib/module/renderer/Reconciler.d.ts +1 -5
  137. package/lib/module/renderer/Reconciler.js +3 -16
  138. package/lib/module/renderer/Reconciler.js.map +1 -1
  139. package/lib/module/renderer/components/index.d.ts +0 -1
  140. package/lib/module/renderer/components/index.js +0 -1
  141. package/lib/module/renderer/components/index.js.map +1 -1
  142. package/lib/module/renderer/index.d.ts +0 -1
  143. package/lib/module/renderer/index.js +0 -1
  144. package/lib/module/renderer/index.js.map +1 -1
  145. package/lib/module/renderer/processors/Animations/Animations.d.ts +1 -8
  146. package/lib/module/renderer/processors/Animations/Animations.js +0 -28
  147. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  148. package/lib/module/skia/types/Canvas.d.ts +2 -2
  149. package/lib/module/skia/types/Canvas.js.map +1 -1
  150. package/lib/module/skia/types/Matrix.d.ts +2 -1
  151. package/lib/module/skia/types/Matrix.js.map +1 -1
  152. package/lib/module/skia/types/Matrix4.d.ts +9 -1
  153. package/lib/module/skia/types/Matrix4.js +42 -2
  154. package/lib/module/skia/types/Matrix4.js.map +1 -1
  155. package/lib/module/skia/types/Paragraph/Paragraph.d.ts +23 -0
  156. package/lib/module/skia/types/Paragraph/Paragraph.js.map +1 -1
  157. package/lib/module/skia/types/Path/Path.d.ts +2 -2
  158. package/lib/module/skia/types/Path/Path.js.map +1 -1
  159. package/lib/module/skia/web/JsiSkMatrix.d.ts +2 -2
  160. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  161. package/lib/module/skia/web/JsiSkParagraph.d.ts +3 -0
  162. package/lib/module/skia/web/JsiSkParagraph.js +12 -0
  163. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  164. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +5 -2
  165. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  166. package/lib/module/views/SkiaBaseWebView.d.ts +0 -7
  167. package/lib/module/views/SkiaBaseWebView.js +0 -17
  168. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  169. package/lib/module/views/SkiaDomView.d.ts +0 -7
  170. package/lib/module/views/SkiaDomView.js +2 -13
  171. package/lib/module/views/SkiaDomView.js.map +1 -1
  172. package/lib/module/views/SkiaDomView.web.js +4 -13
  173. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  174. package/lib/module/views/SkiaPictureView.d.ts +0 -7
  175. package/lib/module/views/SkiaPictureView.js +2 -13
  176. package/lib/module/views/SkiaPictureView.js.map +1 -1
  177. package/lib/module/views/SkiaViewNativeId.d.ts +3 -0
  178. package/lib/module/views/SkiaViewNativeId.js +4 -0
  179. package/lib/module/views/SkiaViewNativeId.js.map +1 -0
  180. package/lib/module/views/index.d.ts +0 -2
  181. package/lib/module/views/index.js +0 -2
  182. package/lib/module/views/index.js.map +1 -1
  183. package/lib/module/views/types.d.ts +2 -15
  184. package/lib/module/views/types.js.map +1 -1
  185. package/lib/typescript/src/animation/index.d.ts +0 -3
  186. package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +1 -2
  187. package/lib/typescript/src/dom/nodes/Node.d.ts +0 -3
  188. package/lib/typescript/src/dom/nodes/drawings/index.d.ts +0 -1
  189. package/lib/typescript/src/dom/types/Common.d.ts +2 -2
  190. package/lib/typescript/src/dom/types/Drawings.d.ts +0 -4
  191. package/lib/typescript/src/dom/types/NodeType.d.ts +0 -1
  192. package/lib/typescript/src/dom/types/SkDOM.d.ts +1 -2
  193. package/lib/typescript/src/index.d.ts +0 -1
  194. package/lib/typescript/src/renderer/Container.d.ts +1 -3
  195. package/lib/typescript/src/renderer/HostComponents.d.ts +1 -6
  196. package/lib/typescript/src/renderer/Reconciler.d.ts +1 -5
  197. package/lib/typescript/src/renderer/components/index.d.ts +0 -1
  198. package/lib/typescript/src/renderer/index.d.ts +0 -1
  199. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +1 -8
  200. package/lib/typescript/src/skia/types/Canvas.d.ts +2 -2
  201. package/lib/typescript/src/skia/types/Matrix.d.ts +2 -1
  202. package/lib/typescript/src/skia/types/Matrix4.d.ts +9 -1
  203. package/lib/typescript/src/skia/types/Paragraph/Paragraph.d.ts +23 -0
  204. package/lib/typescript/src/skia/types/Path/Path.d.ts +2 -2
  205. package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +2 -2
  206. package/lib/typescript/src/skia/web/JsiSkParagraph.d.ts +3 -0
  207. package/lib/typescript/src/views/SkiaBaseWebView.d.ts +0 -7
  208. package/lib/typescript/src/views/SkiaDomView.d.ts +0 -7
  209. package/lib/typescript/src/views/SkiaPictureView.d.ts +0 -7
  210. package/lib/typescript/src/views/SkiaViewNativeId.d.ts +3 -0
  211. package/lib/typescript/src/views/index.d.ts +0 -2
  212. package/lib/typescript/src/views/types.d.ts +2 -15
  213. package/package.json +1 -1
  214. package/src/animation/index.ts +0 -3
  215. package/src/dom/nodes/JsiSkDOM.ts +0 -12
  216. package/src/dom/nodes/Node.ts +0 -5
  217. package/src/dom/nodes/drawings/index.ts +0 -1
  218. package/src/dom/types/Common.ts +2 -4
  219. package/src/dom/types/Drawings.ts +0 -5
  220. package/src/dom/types/NodeType.ts +0 -1
  221. package/src/dom/types/SkDOM.ts +0 -4
  222. package/src/index.ts +0 -1
  223. package/src/mock/index.ts +0 -3
  224. package/src/renderer/Canvas.tsx +9 -34
  225. package/src/renderer/Container.tsx +1 -4
  226. package/src/renderer/HostComponents.ts +0 -13
  227. package/src/renderer/HostConfig.ts +3 -24
  228. package/src/renderer/Reconciler.tsx +1 -19
  229. package/src/renderer/components/index.ts +0 -1
  230. package/src/renderer/index.ts +0 -1
  231. package/src/renderer/processors/Animations/Animations.ts +1 -51
  232. package/src/skia/types/Canvas.ts +2 -2
  233. package/src/skia/types/Matrix.ts +3 -1
  234. package/src/skia/types/Matrix4.ts +94 -63
  235. package/src/skia/types/Paragraph/Paragraph.ts +25 -0
  236. package/src/skia/types/Path/Path.ts +2 -2
  237. package/src/skia/web/JsiSkMatrix.ts +5 -5
  238. package/src/skia/web/JsiSkParagraph.ts +11 -0
  239. package/src/skia/web/JsiSkParagraphBuilderFactory.ts +9 -3
  240. package/src/views/SkiaBaseWebView.tsx +0 -19
  241. package/src/views/SkiaDomView.tsx +1 -13
  242. package/src/views/SkiaDomView.web.tsx +1 -6
  243. package/src/views/SkiaPictureView.tsx +1 -13
  244. package/src/views/SkiaViewNativeId.ts +1 -0
  245. package/src/views/index.ts +0 -2
  246. package/src/views/types.ts +2 -26
  247. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +0 -44
  248. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawViewManager.java +0 -34
  249. package/cpp/rnskia/RNSkAnimation.h +0 -65
  250. package/cpp/rnskia/RNSkValueApi.h +0 -72
  251. package/cpp/rnskia/dom/base/JsiDependencyManager.h +0 -297
  252. package/cpp/rnskia/dom/nodes/JsiCustomDrawingNode.h +0 -127
  253. package/cpp/rnskia/dom/props/DrawingProp.h +0 -35
  254. package/cpp/rnskia/values/RNSkClockValue.h +0 -140
  255. package/cpp/rnskia/values/RNSkComputedValue.h +0 -104
  256. package/cpp/rnskia/values/RNSkReadonlyValue.h +0 -166
  257. package/cpp/rnskia/values/RNSkValue.h +0 -116
  258. package/ios/RNSkia-iOS/SkiaDrawView.h +0 -7
  259. package/ios/RNSkia-iOS/SkiaDrawView.mm +0 -72
  260. package/ios/RNSkia-iOS/SkiaDrawViewManager.h +0 -7
  261. package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +0 -50
  262. package/lib/commonjs/animation/decay/decay.d.ts +0 -2
  263. package/lib/commonjs/animation/decay/decay.js +0 -42
  264. package/lib/commonjs/animation/decay/decay.js.map +0 -1
  265. package/lib/commonjs/animation/decay/index.d.ts +0 -1
  266. package/lib/commonjs/animation/decay/index.js +0 -14
  267. package/lib/commonjs/animation/decay/index.js.map +0 -1
  268. package/lib/commonjs/animation/decay/runDecay.d.ts +0 -10
  269. package/lib/commonjs/animation/decay/runDecay.js +0 -48
  270. package/lib/commonjs/animation/decay/runDecay.js.map +0 -1
  271. package/lib/commonjs/animation/decay/types.d.ts +0 -21
  272. package/lib/commonjs/animation/decay/types.js +0 -6
  273. package/lib/commonjs/animation/decay/types.js.map +0 -1
  274. package/lib/commonjs/animation/spring/Spring.d.ts +0 -65
  275. package/lib/commonjs/animation/spring/Spring.js +0 -77
  276. package/lib/commonjs/animation/spring/Spring.js.map +0 -1
  277. package/lib/commonjs/animation/spring/functions/index.d.ts +0 -1
  278. package/lib/commonjs/animation/spring/functions/index.js +0 -14
  279. package/lib/commonjs/animation/spring/functions/index.js.map +0 -1
  280. package/lib/commonjs/animation/spring/functions/spring.d.ts +0 -10
  281. package/lib/commonjs/animation/spring/functions/spring.js +0 -94
  282. package/lib/commonjs/animation/spring/functions/spring.js.map +0 -1
  283. package/lib/commonjs/animation/spring/index.d.ts +0 -3
  284. package/lib/commonjs/animation/spring/index.js +0 -30
  285. package/lib/commonjs/animation/spring/index.js.map +0 -1
  286. package/lib/commonjs/animation/spring/runSpring.d.ts +0 -19
  287. package/lib/commonjs/animation/spring/runSpring.js +0 -35
  288. package/lib/commonjs/animation/spring/runSpring.js.map +0 -1
  289. package/lib/commonjs/animation/spring/types.d.ts +0 -6
  290. package/lib/commonjs/animation/spring/types.js +0 -2
  291. package/lib/commonjs/animation/spring/types.js.map +0 -1
  292. package/lib/commonjs/animation/spring/useSpring.d.ts +0 -13
  293. package/lib/commonjs/animation/spring/useSpring.js +0 -27
  294. package/lib/commonjs/animation/spring/useSpring.js.map +0 -1
  295. package/lib/commonjs/animation/timing/Easing.d.ts +0 -19
  296. package/lib/commonjs/animation/timing/Easing.js +0 -108
  297. package/lib/commonjs/animation/timing/Easing.js.map +0 -1
  298. package/lib/commonjs/animation/timing/createTiming.d.ts +0 -17
  299. package/lib/commonjs/animation/timing/createTiming.js +0 -55
  300. package/lib/commonjs/animation/timing/createTiming.js.map +0 -1
  301. package/lib/commonjs/animation/timing/functions/bezier.d.ts +0 -1
  302. package/lib/commonjs/animation/timing/functions/bezier.js +0 -147
  303. package/lib/commonjs/animation/timing/functions/bezier.js.map +0 -1
  304. package/lib/commonjs/animation/timing/functions/getResolvedParams.d.ts +0 -7
  305. package/lib/commonjs/animation/timing/functions/getResolvedParams.js +0 -52
  306. package/lib/commonjs/animation/timing/functions/getResolvedParams.js.map +0 -1
  307. package/lib/commonjs/animation/timing/functions/index.d.ts +0 -4
  308. package/lib/commonjs/animation/timing/functions/index.js +0 -54
  309. package/lib/commonjs/animation/timing/functions/index.js.map +0 -1
  310. package/lib/commonjs/animation/timing/functions/timing.d.ts +0 -17
  311. package/lib/commonjs/animation/timing/functions/timing.js +0 -50
  312. package/lib/commonjs/animation/timing/functions/timing.js.map +0 -1
  313. package/lib/commonjs/animation/timing/functions/types.d.ts +0 -7
  314. package/lib/commonjs/animation/timing/functions/types.js +0 -2
  315. package/lib/commonjs/animation/timing/functions/types.js.map +0 -1
  316. package/lib/commonjs/animation/timing/index.d.ts +0 -4
  317. package/lib/commonjs/animation/timing/index.js +0 -38
  318. package/lib/commonjs/animation/timing/index.js.map +0 -1
  319. package/lib/commonjs/animation/timing/runTiming.d.ts +0 -19
  320. package/lib/commonjs/animation/timing/runTiming.js +0 -36
  321. package/lib/commonjs/animation/timing/runTiming.js.map +0 -1
  322. package/lib/commonjs/animation/timing/useLoop.d.ts +0 -11
  323. package/lib/commonjs/animation/timing/useLoop.js +0 -25
  324. package/lib/commonjs/animation/timing/useLoop.js.map +0 -1
  325. package/lib/commonjs/animation/timing/useTiming.d.ts +0 -13
  326. package/lib/commonjs/animation/timing/useTiming.js +0 -67
  327. package/lib/commonjs/animation/timing/useTiming.js.map +0 -1
  328. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.d.ts +0 -8
  329. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js +0 -28
  330. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js.map +0 -1
  331. package/lib/commonjs/renderer/DependencyManager.d.ts +0 -46
  332. package/lib/commonjs/renderer/DependencyManager.js +0 -185
  333. package/lib/commonjs/renderer/DependencyManager.js.map +0 -1
  334. package/lib/commonjs/renderer/components/Drawing.d.ts +0 -8
  335. package/lib/commonjs/renderer/components/Drawing.js +0 -22
  336. package/lib/commonjs/renderer/components/Drawing.js.map +0 -1
  337. package/lib/commonjs/specs/SkiaDrawViewNativeComponent.d.ts +0 -8
  338. package/lib/commonjs/specs/SkiaDrawViewNativeComponent.js +0 -16
  339. package/lib/commonjs/specs/SkiaDrawViewNativeComponent.js.map +0 -1
  340. package/lib/commonjs/values/api.d.ts +0 -26
  341. package/lib/commonjs/values/api.js +0 -55
  342. package/lib/commonjs/values/api.js.map +0 -1
  343. package/lib/commonjs/values/api.web.d.ts +0 -2
  344. package/lib/commonjs/values/api.web.js +0 -18
  345. package/lib/commonjs/values/api.web.js.map +0 -1
  346. package/lib/commonjs/values/hooks/index.d.ts +0 -4
  347. package/lib/commonjs/values/hooks/index.js +0 -58
  348. package/lib/commonjs/values/hooks/index.js.map +0 -1
  349. package/lib/commonjs/values/hooks/useClockValue.d.ts +0 -9
  350. package/lib/commonjs/values/hooks/useClockValue.js +0 -30
  351. package/lib/commonjs/values/hooks/useClockValue.js.map +0 -1
  352. package/lib/commonjs/values/hooks/useComputedValue.d.ts +0 -11
  353. package/lib/commonjs/values/hooks/useComputedValue.js +0 -32
  354. package/lib/commonjs/values/hooks/useComputedValue.js.map +0 -1
  355. package/lib/commonjs/values/hooks/useValue.d.ts +0 -10
  356. package/lib/commonjs/values/hooks/useValue.js +0 -26
  357. package/lib/commonjs/values/hooks/useValue.js.map +0 -1
  358. package/lib/commonjs/values/hooks/useValueEffect.d.ts +0 -10
  359. package/lib/commonjs/values/hooks/useValueEffect.js +0 -25
  360. package/lib/commonjs/values/hooks/useValueEffect.js.map +0 -1
  361. package/lib/commonjs/values/index.d.ts +0 -4
  362. package/lib/commonjs/values/index.js +0 -58
  363. package/lib/commonjs/values/index.js.map +0 -1
  364. package/lib/commonjs/values/selector.d.ts +0 -14
  365. package/lib/commonjs/values/selector.js +0 -24
  366. package/lib/commonjs/values/selector.js.map +0 -1
  367. package/lib/commonjs/values/types.d.ts +0 -63
  368. package/lib/commonjs/values/types.js +0 -2
  369. package/lib/commonjs/values/types.js.map +0 -1
  370. package/lib/commonjs/values/web/RNSkAnimation.d.ts +0 -9
  371. package/lib/commonjs/values/web/RNSkAnimation.js +0 -46
  372. package/lib/commonjs/values/web/RNSkAnimation.js.map +0 -1
  373. package/lib/commonjs/values/web/RNSkClockValue.d.ts +0 -13
  374. package/lib/commonjs/values/web/RNSkClockValue.js +0 -75
  375. package/lib/commonjs/values/web/RNSkClockValue.js.map +0 -1
  376. package/lib/commonjs/values/web/RNSkComputedValue.d.ts +0 -10
  377. package/lib/commonjs/values/web/RNSkComputedValue.js +0 -59
  378. package/lib/commonjs/values/web/RNSkComputedValue.js.map +0 -1
  379. package/lib/commonjs/values/web/RNSkReadonlyValue.d.ts +0 -12
  380. package/lib/commonjs/values/web/RNSkReadonlyValue.js +0 -51
  381. package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +0 -1
  382. package/lib/commonjs/values/web/RNSkValue.d.ts +0 -14
  383. package/lib/commonjs/values/web/RNSkValue.js +0 -73
  384. package/lib/commonjs/values/web/RNSkValue.js.map +0 -1
  385. package/lib/commonjs/values/web/api.d.ts +0 -2
  386. package/lib/commonjs/values/web/api.js +0 -31
  387. package/lib/commonjs/values/web/api.js.map +0 -1
  388. package/lib/commonjs/values/web/index.d.ts +0 -1
  389. package/lib/commonjs/values/web/index.js +0 -19
  390. package/lib/commonjs/values/web/index.js.map +0 -1
  391. package/lib/commonjs/views/SkiaView.d.ts +0 -35
  392. package/lib/commonjs/views/SkiaView.js +0 -139
  393. package/lib/commonjs/views/SkiaView.js.map +0 -1
  394. package/lib/commonjs/views/SkiaView.web.d.ts +0 -7
  395. package/lib/commonjs/views/SkiaView.web.js +0 -30
  396. package/lib/commonjs/views/SkiaView.web.js.map +0 -1
  397. package/lib/commonjs/views/useDrawCallback.d.ts +0 -8
  398. package/lib/commonjs/views/useDrawCallback.js +0 -23
  399. package/lib/commonjs/views/useDrawCallback.js.map +0 -1
  400. package/lib/module/animation/decay/decay.d.ts +0 -2
  401. package/lib/module/animation/decay/decay.js +0 -33
  402. package/lib/module/animation/decay/decay.js.map +0 -1
  403. package/lib/module/animation/decay/index.d.ts +0 -1
  404. package/lib/module/animation/decay/index.js +0 -2
  405. package/lib/module/animation/decay/index.js.map +0 -1
  406. package/lib/module/animation/decay/runDecay.d.ts +0 -10
  407. package/lib/module/animation/decay/runDecay.js +0 -38
  408. package/lib/module/animation/decay/runDecay.js.map +0 -1
  409. package/lib/module/animation/decay/types.d.ts +0 -21
  410. package/lib/module/animation/decay/types.js +0 -2
  411. package/lib/module/animation/decay/types.js.map +0 -1
  412. package/lib/module/animation/spring/Spring.d.ts +0 -65
  413. package/lib/module/animation/spring/Spring.js +0 -69
  414. package/lib/module/animation/spring/Spring.js.map +0 -1
  415. package/lib/module/animation/spring/functions/index.d.ts +0 -1
  416. package/lib/module/animation/spring/functions/index.js +0 -2
  417. package/lib/module/animation/spring/functions/index.js.map +0 -1
  418. package/lib/module/animation/spring/functions/spring.d.ts +0 -10
  419. package/lib/module/animation/spring/functions/spring.js +0 -85
  420. package/lib/module/animation/spring/functions/spring.js.map +0 -1
  421. package/lib/module/animation/spring/index.d.ts +0 -3
  422. package/lib/module/animation/spring/index.js +0 -4
  423. package/lib/module/animation/spring/index.js.map +0 -1
  424. package/lib/module/animation/spring/runSpring.d.ts +0 -19
  425. package/lib/module/animation/spring/runSpring.js +0 -24
  426. package/lib/module/animation/spring/runSpring.js.map +0 -1
  427. package/lib/module/animation/spring/types.d.ts +0 -6
  428. package/lib/module/animation/spring/types.js +0 -2
  429. package/lib/module/animation/spring/types.js.map +0 -1
  430. package/lib/module/animation/spring/useSpring.d.ts +0 -13
  431. package/lib/module/animation/spring/useSpring.js +0 -16
  432. package/lib/module/animation/spring/useSpring.js.map +0 -1
  433. package/lib/module/animation/timing/Easing.d.ts +0 -19
  434. package/lib/module/animation/timing/Easing.js +0 -98
  435. package/lib/module/animation/timing/Easing.js.map +0 -1
  436. package/lib/module/animation/timing/createTiming.d.ts +0 -17
  437. package/lib/module/animation/timing/createTiming.js +0 -49
  438. package/lib/module/animation/timing/createTiming.js.map +0 -1
  439. package/lib/module/animation/timing/functions/bezier.d.ts +0 -1
  440. package/lib/module/animation/timing/functions/bezier.js +0 -141
  441. package/lib/module/animation/timing/functions/bezier.js.map +0 -1
  442. package/lib/module/animation/timing/functions/getResolvedParams.d.ts +0 -7
  443. package/lib/module/animation/timing/functions/getResolvedParams.js +0 -48
  444. package/lib/module/animation/timing/functions/getResolvedParams.js.map +0 -1
  445. package/lib/module/animation/timing/functions/index.d.ts +0 -4
  446. package/lib/module/animation/timing/functions/index.js +0 -5
  447. package/lib/module/animation/timing/functions/index.js.map +0 -1
  448. package/lib/module/animation/timing/functions/timing.d.ts +0 -17
  449. package/lib/module/animation/timing/functions/timing.js +0 -41
  450. package/lib/module/animation/timing/functions/timing.js.map +0 -1
  451. package/lib/module/animation/timing/functions/types.d.ts +0 -7
  452. package/lib/module/animation/timing/functions/types.js +0 -2
  453. package/lib/module/animation/timing/functions/types.js.map +0 -1
  454. package/lib/module/animation/timing/index.d.ts +0 -4
  455. package/lib/module/animation/timing/index.js +0 -5
  456. package/lib/module/animation/timing/index.js.map +0 -1
  457. package/lib/module/animation/timing/runTiming.d.ts +0 -19
  458. package/lib/module/animation/timing/runTiming.js +0 -26
  459. package/lib/module/animation/timing/runTiming.js.map +0 -1
  460. package/lib/module/animation/timing/useLoop.d.ts +0 -11
  461. package/lib/module/animation/timing/useLoop.js +0 -16
  462. package/lib/module/animation/timing/useLoop.js.map +0 -1
  463. package/lib/module/animation/timing/useTiming.d.ts +0 -13
  464. package/lib/module/animation/timing/useTiming.js +0 -57
  465. package/lib/module/animation/timing/useTiming.js.map +0 -1
  466. package/lib/module/dom/nodes/drawings/CustomDrawingNode.d.ts +0 -8
  467. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js +0 -17
  468. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js.map +0 -1
  469. package/lib/module/renderer/DependencyManager.d.ts +0 -46
  470. package/lib/module/renderer/DependencyManager.js +0 -174
  471. package/lib/module/renderer/DependencyManager.js.map +0 -1
  472. package/lib/module/renderer/components/Drawing.d.ts +0 -8
  473. package/lib/module/renderer/components/Drawing.js +0 -11
  474. package/lib/module/renderer/components/Drawing.js.map +0 -1
  475. package/lib/module/specs/SkiaDrawViewNativeComponent.d.ts +0 -8
  476. package/lib/module/specs/SkiaDrawViewNativeComponent.js +0 -4
  477. package/lib/module/specs/SkiaDrawViewNativeComponent.js.map +0 -1
  478. package/lib/module/values/api.d.ts +0 -26
  479. package/lib/module/values/api.js +0 -48
  480. package/lib/module/values/api.js.map +0 -1
  481. package/lib/module/values/api.web.d.ts +0 -2
  482. package/lib/module/values/api.web.js +0 -7
  483. package/lib/module/values/api.web.js.map +0 -1
  484. package/lib/module/values/hooks/index.d.ts +0 -4
  485. package/lib/module/values/hooks/index.js +0 -5
  486. package/lib/module/values/hooks/index.js.map +0 -1
  487. package/lib/module/values/hooks/useClockValue.d.ts +0 -9
  488. package/lib/module/values/hooks/useClockValue.js +0 -20
  489. package/lib/module/values/hooks/useClockValue.js.map +0 -1
  490. package/lib/module/values/hooks/useComputedValue.d.ts +0 -11
  491. package/lib/module/values/hooks/useComputedValue.js +0 -21
  492. package/lib/module/values/hooks/useComputedValue.js.map +0 -1
  493. package/lib/module/values/hooks/useValue.d.ts +0 -10
  494. package/lib/module/values/hooks/useValue.js +0 -16
  495. package/lib/module/values/hooks/useValue.js.map +0 -1
  496. package/lib/module/values/hooks/useValueEffect.d.ts +0 -10
  497. package/lib/module/values/hooks/useValueEffect.js +0 -16
  498. package/lib/module/values/hooks/useValueEffect.js.map +0 -1
  499. package/lib/module/values/index.d.ts +0 -4
  500. package/lib/module/values/index.js +0 -5
  501. package/lib/module/values/index.js.map +0 -1
  502. package/lib/module/values/selector.d.ts +0 -14
  503. package/lib/module/values/selector.js +0 -15
  504. package/lib/module/values/selector.js.map +0 -1
  505. package/lib/module/values/types.d.ts +0 -63
  506. package/lib/module/values/types.js +0 -2
  507. package/lib/module/values/types.js.map +0 -1
  508. package/lib/module/values/web/RNSkAnimation.d.ts +0 -9
  509. package/lib/module/values/web/RNSkAnimation.js +0 -36
  510. package/lib/module/values/web/RNSkAnimation.js.map +0 -1
  511. package/lib/module/values/web/RNSkClockValue.d.ts +0 -13
  512. package/lib/module/values/web/RNSkClockValue.js +0 -65
  513. package/lib/module/values/web/RNSkClockValue.js.map +0 -1
  514. package/lib/module/values/web/RNSkComputedValue.d.ts +0 -10
  515. package/lib/module/values/web/RNSkComputedValue.js +0 -49
  516. package/lib/module/values/web/RNSkComputedValue.js.map +0 -1
  517. package/lib/module/values/web/RNSkReadonlyValue.d.ts +0 -12
  518. package/lib/module/values/web/RNSkReadonlyValue.js +0 -42
  519. package/lib/module/values/web/RNSkReadonlyValue.js.map +0 -1
  520. package/lib/module/values/web/RNSkValue.d.ts +0 -14
  521. package/lib/module/values/web/RNSkValue.js +0 -63
  522. package/lib/module/values/web/RNSkValue.js.map +0 -1
  523. package/lib/module/values/web/api.d.ts +0 -2
  524. package/lib/module/values/web/api.js +0 -19
  525. package/lib/module/values/web/api.js.map +0 -1
  526. package/lib/module/values/web/index.d.ts +0 -1
  527. package/lib/module/values/web/index.js +0 -2
  528. package/lib/module/values/web/index.js.map +0 -1
  529. package/lib/module/views/SkiaView.d.ts +0 -35
  530. package/lib/module/views/SkiaView.js +0 -119
  531. package/lib/module/views/SkiaView.js.map +0 -1
  532. package/lib/module/views/SkiaView.web.d.ts +0 -7
  533. package/lib/module/views/SkiaView.web.js +0 -20
  534. package/lib/module/views/SkiaView.web.js.map +0 -1
  535. package/lib/module/views/useDrawCallback.d.ts +0 -8
  536. package/lib/module/views/useDrawCallback.js +0 -14
  537. package/lib/module/views/useDrawCallback.js.map +0 -1
  538. package/lib/typescript/src/animation/decay/decay.d.ts +0 -2
  539. package/lib/typescript/src/animation/decay/index.d.ts +0 -1
  540. package/lib/typescript/src/animation/decay/runDecay.d.ts +0 -10
  541. package/lib/typescript/src/animation/decay/types.d.ts +0 -21
  542. package/lib/typescript/src/animation/spring/Spring.d.ts +0 -65
  543. package/lib/typescript/src/animation/spring/functions/index.d.ts +0 -1
  544. package/lib/typescript/src/animation/spring/functions/spring.d.ts +0 -10
  545. package/lib/typescript/src/animation/spring/index.d.ts +0 -3
  546. package/lib/typescript/src/animation/spring/runSpring.d.ts +0 -19
  547. package/lib/typescript/src/animation/spring/types.d.ts +0 -6
  548. package/lib/typescript/src/animation/spring/useSpring.d.ts +0 -13
  549. package/lib/typescript/src/animation/timing/Easing.d.ts +0 -19
  550. package/lib/typescript/src/animation/timing/createTiming.d.ts +0 -17
  551. package/lib/typescript/src/animation/timing/functions/bezier.d.ts +0 -1
  552. package/lib/typescript/src/animation/timing/functions/getResolvedParams.d.ts +0 -7
  553. package/lib/typescript/src/animation/timing/functions/index.d.ts +0 -4
  554. package/lib/typescript/src/animation/timing/functions/timing.d.ts +0 -17
  555. package/lib/typescript/src/animation/timing/functions/types.d.ts +0 -7
  556. package/lib/typescript/src/animation/timing/index.d.ts +0 -4
  557. package/lib/typescript/src/animation/timing/runTiming.d.ts +0 -19
  558. package/lib/typescript/src/animation/timing/useLoop.d.ts +0 -11
  559. package/lib/typescript/src/animation/timing/useTiming.d.ts +0 -13
  560. package/lib/typescript/src/dom/nodes/drawings/CustomDrawingNode.d.ts +0 -8
  561. package/lib/typescript/src/renderer/DependencyManager.d.ts +0 -46
  562. package/lib/typescript/src/renderer/components/Drawing.d.ts +0 -8
  563. package/lib/typescript/src/specs/SkiaDrawViewNativeComponent.d.ts +0 -8
  564. package/lib/typescript/src/values/api.d.ts +0 -26
  565. package/lib/typescript/src/values/api.web.d.ts +0 -2
  566. package/lib/typescript/src/values/hooks/index.d.ts +0 -4
  567. package/lib/typescript/src/values/hooks/useClockValue.d.ts +0 -9
  568. package/lib/typescript/src/values/hooks/useComputedValue.d.ts +0 -11
  569. package/lib/typescript/src/values/hooks/useValue.d.ts +0 -10
  570. package/lib/typescript/src/values/hooks/useValueEffect.d.ts +0 -10
  571. package/lib/typescript/src/values/index.d.ts +0 -4
  572. package/lib/typescript/src/values/selector.d.ts +0 -14
  573. package/lib/typescript/src/values/types.d.ts +0 -63
  574. package/lib/typescript/src/values/web/RNSkAnimation.d.ts +0 -9
  575. package/lib/typescript/src/values/web/RNSkClockValue.d.ts +0 -13
  576. package/lib/typescript/src/values/web/RNSkComputedValue.d.ts +0 -10
  577. package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +0 -12
  578. package/lib/typescript/src/values/web/RNSkValue.d.ts +0 -14
  579. package/lib/typescript/src/values/web/api.d.ts +0 -2
  580. package/lib/typescript/src/values/web/index.d.ts +0 -1
  581. package/lib/typescript/src/views/SkiaView.d.ts +0 -35
  582. package/lib/typescript/src/views/SkiaView.web.d.ts +0 -7
  583. package/lib/typescript/src/views/useDrawCallback.d.ts +0 -8
  584. package/src/animation/decay/decay.ts +0 -35
  585. package/src/animation/decay/index.ts +0 -1
  586. package/src/animation/decay/runDecay.ts +0 -40
  587. package/src/animation/decay/types.ts +0 -24
  588. package/src/animation/spring/Spring.ts +0 -61
  589. package/src/animation/spring/functions/index.ts +0 -1
  590. package/src/animation/spring/functions/spring.ts +0 -86
  591. package/src/animation/spring/index.ts +0 -3
  592. package/src/animation/spring/runSpring.ts +0 -40
  593. package/src/animation/spring/types.ts +0 -6
  594. package/src/animation/spring/useSpring.ts +0 -31
  595. package/src/animation/timing/Easing.ts +0 -102
  596. package/src/animation/timing/createTiming.ts +0 -62
  597. package/src/animation/timing/functions/bezier.ts +0 -165
  598. package/src/animation/timing/functions/getResolvedParams.ts +0 -50
  599. package/src/animation/timing/functions/index.ts +0 -4
  600. package/src/animation/timing/functions/timing.ts +0 -44
  601. package/src/animation/timing/functions/types.ts +0 -8
  602. package/src/animation/timing/index.ts +0 -4
  603. package/src/animation/timing/runTiming.ts +0 -36
  604. package/src/animation/timing/useLoop.ts +0 -21
  605. package/src/animation/timing/useTiming.ts +0 -71
  606. package/src/dom/nodes/drawings/CustomDrawingNode.ts +0 -21
  607. package/src/renderer/DependencyManager.tsx +0 -196
  608. package/src/renderer/components/Drawing.tsx +0 -12
  609. package/src/specs/SkiaDrawViewNativeComponent.ts +0 -10
  610. package/src/values/api.ts +0 -61
  611. package/src/values/api.web.ts +0 -5
  612. package/src/values/hooks/index.ts +0 -4
  613. package/src/values/hooks/useClockValue.ts +0 -21
  614. package/src/values/hooks/useComputedValue.ts +0 -24
  615. package/src/values/hooks/useValue.ts +0 -17
  616. package/src/values/hooks/useValueEffect.ts +0 -18
  617. package/src/values/index.ts +0 -4
  618. package/src/values/selector.ts +0 -24
  619. package/src/values/types.ts +0 -73
  620. package/src/values/web/RNSkAnimation.ts +0 -33
  621. package/src/values/web/RNSkClockValue.ts +0 -58
  622. package/src/values/web/RNSkComputedValue.ts +0 -49
  623. package/src/values/web/RNSkReadonlyValue.ts +0 -38
  624. package/src/values/web/RNSkValue.ts +0 -57
  625. package/src/values/web/api.ts +0 -33
  626. package/src/values/web/index.ts +0 -1
  627. package/src/views/SkiaView.tsx +0 -111
  628. package/src/views/SkiaView.web.tsx +0 -22
  629. package/src/views/useDrawCallback.ts +0 -19
@@ -1,6 +1,5 @@
1
1
  #include "JniPlatformContext.h"
2
2
  #include "JniSkiaDomView.h"
3
- #include "JniSkiaDrawView.h"
4
3
  #include "JniSkiaManager.h"
5
4
  #include "JniSkiaPictureView.h"
6
5
  #include <fbjni/fbjni.h>
@@ -9,7 +8,6 @@
9
8
  JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
10
9
  return facebook::jni::initialize(vm, [] {
11
10
  RNSkia::JniSkiaManager::registerNatives();
12
- RNSkia::JniSkiaDrawView::registerNatives();
13
11
  RNSkia::JniSkiaPictureView::registerNatives();
14
12
  RNSkia::JniSkiaDomView::registerNatives();
15
13
  RNSkia::JniPlatformContext::registerNatives();
@@ -6,7 +6,6 @@ import android.util.Log;
6
6
 
7
7
  import com.facebook.react.bridge.LifecycleEventListener;
8
8
  import com.facebook.react.bridge.ReactApplicationContext;
9
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
10
9
  import com.facebook.react.bridge.ReactMethod;
11
10
  import com.facebook.react.module.annotations.ReactModule;
12
11
 
@@ -42,8 +42,7 @@ public class RNSkiaPackage extends TurboReactPackage {
42
42
 
43
43
  @Override
44
44
  public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
45
- return Arrays.<ViewManager>asList(new SkiaDrawViewManager(),
46
- new SkiaPictureViewManager(), new SkiaDomViewManager());
45
+ return Arrays.<ViewManager>asList(new SkiaPictureViewManager(), new SkiaDomViewManager());
47
46
  }
48
47
 
49
48
  @Override
@@ -13,11 +13,8 @@ public abstract class SkiaBaseView extends ReactViewGroup implements TextureView
13
13
 
14
14
  private String tag = "SkiaView";
15
15
 
16
- private boolean manageTexture = false;
17
-
18
- public SkiaBaseView(Context context, boolean manageTexture) {
16
+ public SkiaBaseView(Context context) {
19
17
  super(context);
20
- this.manageTexture = manageTexture;
21
18
  mTexture = new TextureView(context);
22
19
  mTexture.setSurfaceTextureListener(this);
23
20
  mTexture.setOpaque(false);
@@ -30,14 +27,12 @@ public abstract class SkiaBaseView extends ReactViewGroup implements TextureView
30
27
  }
31
28
 
32
29
  private void createSurfaceTexture() {
33
- if (manageTexture) {
34
- // This API Level is >= 26, we created our own SurfaceTexture to have a faster time to first frame
35
- if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
36
- Log.i(tag, "Create SurfaceTexture");
37
- SurfaceTexture surface = new SurfaceTexture(false);
38
- mTexture.setSurfaceTexture(surface);
39
- this.onSurfaceTextureAvailable(surface, this.getMeasuredWidth(), this.getMeasuredHeight());
40
- }
30
+ // This API Level is >= 26, we created our own SurfaceTexture to have a faster time to first frame
31
+ if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
32
+ Log.i(tag, "Create SurfaceTexture");
33
+ SurfaceTexture surface = new SurfaceTexture(false);
34
+ mTexture.setSurfaceTexture(surface);
35
+ this.onSurfaceTextureAvailable(surface, this.getMeasuredWidth(), this.getMeasuredHeight());
41
36
  }
42
37
  }
43
38
 
@@ -11,7 +11,7 @@ public class SkiaDomView extends SkiaBaseView {
11
11
  private HybridData mHybridData;
12
12
 
13
13
  public SkiaDomView(Context context) {
14
- super(context, true);
14
+ super(context);
15
15
  RNSkiaModule skiaModule = ((ReactContext) context).getNativeModule(RNSkiaModule.class);
16
16
  mHybridData = initHybrid(skiaModule.getSkiaManager());
17
17
  }
@@ -11,7 +11,7 @@ public class SkiaPictureView extends SkiaBaseView {
11
11
  private HybridData mHybridData;
12
12
 
13
13
  public SkiaPictureView(Context context) {
14
- super(context, true);
14
+ super(context);
15
15
  RNSkiaModule skiaModule = ((ReactContext) context).getNativeModule(RNSkiaModule.class);
16
16
  mHybridData = initHybrid(skiaModule.getSkiaManager());
17
17
  }
@@ -25,6 +25,7 @@
25
25
  #include "JsiSkMatrix.h"
26
26
  #include "JsiSkPaint.h"
27
27
  #include "JsiSkParagraphBuilder.h"
28
+ #include "JsiSkParagraphBuilderFactory.h"
28
29
  #include "JsiSkPath.h"
29
30
  #include "JsiSkPathEffect.h"
30
31
  #include "JsiSkPathEffectFactory.h"
@@ -62,7 +63,9 @@ public:
62
63
  */
63
64
  JsiSkApi(jsi::Runtime &runtime, std::shared_ptr<RNSkPlatformContext> context)
64
65
  : JsiSkHostObject(context) {
65
-
66
+ // We create the system font manager eagerly since it has proven to be too
67
+ // slow to do it on demand
68
+ JsiSkFontMgrFactory::getFontMgr(getContext());
66
69
  installFunction("Font", JsiSkFont::createCtor(context));
67
70
  installFunction("Paint", JsiSkPaint::createCtor(context));
68
71
  installFunction("RSXform", JsiSkRSXform::createCtor(context));
@@ -55,6 +55,18 @@ public:
55
55
  return static_cast<double>(_paragraph->getMaxWidth());
56
56
  }
57
57
 
58
+ JSI_HOST_FUNCTION(getMaxIntrinsicWidth) {
59
+ return static_cast<double>(_paragraph->getMaxIntrinsicWidth());
60
+ }
61
+
62
+ JSI_HOST_FUNCTION(getMinIntrinsicWidth) {
63
+ return static_cast<double>(_paragraph->getMinIntrinsicWidth());
64
+ }
65
+
66
+ JSI_HOST_FUNCTION(getLongestLine) {
67
+ return static_cast<double>(_paragraph->getLongestLine());
68
+ }
69
+
58
70
  JSI_HOST_FUNCTION(getGlyphPositionAtCoordinate) {
59
71
  auto dx = getArgumentAsNumber(runtime, arguments, count, 0);
60
72
  auto dy = getArgumentAsNumber(runtime, arguments, count, 1);
@@ -113,6 +125,9 @@ public:
113
125
  JSI_EXPORT_FUNCTIONS(JSI_EXPORT_FUNC(JsiSkParagraph, layout),
114
126
  JSI_EXPORT_FUNC(JsiSkParagraph, paint),
115
127
  JSI_EXPORT_FUNC(JsiSkParagraph, getMaxWidth),
128
+ JSI_EXPORT_FUNC(JsiSkParagraph, getMinIntrinsicWidth),
129
+ JSI_EXPORT_FUNC(JsiSkParagraph, getMaxIntrinsicWidth),
130
+ JSI_EXPORT_FUNC(JsiSkParagraph, getLongestLine),
116
131
  JSI_EXPORT_FUNC(JsiSkParagraph, getHeight),
117
132
  JSI_EXPORT_FUNC(JsiSkParagraph, getRectsForPlaceholders),
118
133
  JSI_EXPORT_FUNC(JsiSkParagraph,
@@ -7,6 +7,7 @@
7
7
 
8
8
  #include <JsiSkFont.h>
9
9
  #include <JsiSkFontMgr.h>
10
+ #include <JsiSkFontMgrFactory.h>
10
11
  #include <JsiSkHostObjects.h>
11
12
  #include <JsiSkParagraph.h>
12
13
  #include <JsiSkParagraphStyle.h>
@@ -113,7 +114,8 @@ public:
113
114
  sk_sp<SkFontMgr> fontManager)
114
115
  : JsiSkHostObject(std::move(context)) {
115
116
  _fontCollection = sk_make_sp<para::FontCollection>();
116
- _fontCollection->setDefaultFontManager(getContext()->createFontMgr());
117
+ auto fontMgr = JsiSkFontMgrFactory::getFontMgr(getContext());
118
+ _fontCollection->setDefaultFontManager(fontMgr);
117
119
  if (fontManager != nullptr) {
118
120
  _fontCollection->setAssetFontManager(fontManager);
119
121
  }
@@ -125,35 +127,4 @@ private:
125
127
  std::unique_ptr<para::ParagraphBuilder> _builder;
126
128
  sk_sp<para::FontCollection> _fontCollection;
127
129
  };
128
-
129
- /**
130
- Implementation of the ParagraphBuilderFactory for making ParagraphBuilder JSI
131
- object
132
- */
133
- class JsiSkParagraphBuilderFactory : public JsiSkHostObject {
134
- public:
135
- JSI_HOST_FUNCTION(Make) {
136
- // Get paragraph style from params
137
- auto paragraphStyle =
138
- count > 0 ? JsiSkParagraphStyle::fromValue(runtime, arguments[0])
139
- : para::ParagraphStyle();
140
-
141
- // get font manager
142
- auto fontMgr =
143
- count > 1 ? JsiSkTypefaceFontProvider::fromValue(runtime, arguments[1])
144
- : nullptr;
145
-
146
- // Create the paragraph builder
147
- return jsi::Object::createFromHostObject(
148
- runtime, std::make_shared<JsiSkParagraphBuilder>(
149
- getContext(), paragraphStyle, fontMgr));
150
- }
151
-
152
- JSI_EXPORT_FUNCTIONS(JSI_EXPORT_FUNC(JsiSkParagraphBuilderFactory, Make))
153
-
154
- explicit JsiSkParagraphBuilderFactory(
155
- std::shared_ptr<RNSkPlatformContext> context)
156
- : JsiSkHostObject(std::move(context)) {}
157
- };
158
-
159
130
  } // namespace RNSkia
@@ -0,0 +1,54 @@
1
+ #pragma once
2
+
3
+ #include <memory>
4
+ #include <utility>
5
+
6
+ #include <jsi/jsi.h>
7
+
8
+ #include <JsiSkParagraphBuilder.h>
9
+ #include <JsiSkParagraphStyle.h>
10
+
11
+ #pragma clang diagnostic push
12
+ #pragma clang diagnostic ignored "-Wdocumentation"
13
+
14
+ #include "ParagraphBuilder.h"
15
+
16
+ #pragma clang diagnostic pop
17
+
18
+ namespace RNSkia {
19
+
20
+ namespace jsi = facebook::jsi;
21
+
22
+ namespace para = skia::textlayout;
23
+
24
+ /**
25
+ Implementation of the ParagraphBuilderFactory for making ParagraphBuilder JSI
26
+ object
27
+ */
28
+ class JsiSkParagraphBuilderFactory : public JsiSkHostObject {
29
+ public:
30
+ JSI_HOST_FUNCTION(Make) {
31
+ // Get paragraph style from params
32
+ auto paragraphStyle =
33
+ count > 0 ? JsiSkParagraphStyle::fromValue(runtime, arguments[0])
34
+ : para::ParagraphStyle();
35
+
36
+ // get font manager
37
+ auto fontMgr =
38
+ count > 1 ? JsiSkTypefaceFontProvider::fromValue(runtime, arguments[1])
39
+ : nullptr;
40
+
41
+ // Create the paragraph builder
42
+ return jsi::Object::createFromHostObject(
43
+ runtime, std::make_shared<JsiSkParagraphBuilder>(
44
+ getContext(), paragraphStyle, fontMgr));
45
+ }
46
+
47
+ JSI_EXPORT_FUNCTIONS(JSI_EXPORT_FUNC(JsiSkParagraphBuilderFactory, Make))
48
+
49
+ explicit JsiSkParagraphBuilderFactory(
50
+ std::shared_ptr<RNSkPlatformContext> context)
51
+ : JsiSkHostObject(std::move(context)) {}
52
+ };
53
+
54
+ } // namespace RNSkia
@@ -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));
@@ -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,4 +1,4 @@
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";
@@ -13,7 +13,6 @@ export declare class JsiSkDOM implements SkDOM {
13
13
  Image(props: ImageProps): import("../types").RenderNode<ImageProps>;
14
14
  Circle(props: CircleProps): import("../types").RenderNode<CircleProps>;
15
15
  Path(props: PathProps): import("../types").RenderNode<PathProps>;
16
- CustomDrawing(props: CustomDrawingNodeProps): import("../types").RenderNode<CustomDrawingNodeProps>;
17
16
  Line(props: LineProps): import("../types").RenderNode<LineProps>;
18
17
  Oval(props: OvalProps): import("../types").RenderNode<OvalProps>;
19
18
  Patch(props: PatchProps): import("../types").RenderNode<PatchProps>;
@@ -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
  }