@shopify/react-native-skia 0.1.130 → 0.1.131

Sign up to get free protection for your applications and to get access to all the features.
Files changed (942) hide show
  1. package/README.md +8 -0
  2. package/android/cpp/jni/JniSkiaDrawView.cpp +3 -2
  3. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +2 -1
  4. package/cpp/api/JsiSkCanvas.h +2 -2
  5. package/cpp/api/JsiSkMatrix.h +40 -27
  6. package/cpp/api/JsiSkPaint.h +3 -1
  7. package/cpp/api/JsiSkPath.h +67 -61
  8. package/cpp/api/JsiSkPathFactory.h +14 -1
  9. package/cpp/api/JsiSkRuntimeShaderBuilder.h +18 -0
  10. package/cpp/api/JsiSkTypeface.h +11 -2
  11. package/cpp/api/JsiSkTypefaceFactory.h +5 -1
  12. package/cpp/rnskia/RNSkInfoParameter.h +2 -0
  13. package/cpp/utils/RNSkLog.h +22 -0
  14. package/ios/RNSkia-iOS/SkiaDrawView.mm +2 -1
  15. package/lib/commonjs/animation/functions/index.js +47 -17
  16. package/lib/commonjs/animation/functions/index.js.map +1 -1
  17. package/lib/commonjs/animation/functions/interpolatePaths.js +45 -0
  18. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
  19. package/lib/commonjs/animation/functions/interpolateVector.js +20 -0
  20. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
  21. package/lib/commonjs/index.js +13 -0
  22. package/lib/commonjs/index.js.map +1 -1
  23. package/lib/commonjs/renderer/Canvas.js +19 -35
  24. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  25. package/lib/commonjs/renderer/HostConfig.js +2 -2
  26. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  27. package/lib/commonjs/renderer/components/Blend.js +10 -7
  28. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  29. package/lib/commonjs/renderer/components/Compose.js +9 -6
  30. package/lib/commonjs/renderer/components/Compose.js.map +1 -1
  31. package/lib/commonjs/renderer/components/Group.js +7 -6
  32. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  33. package/lib/commonjs/renderer/components/Mask.js +13 -10
  34. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  35. package/lib/commonjs/renderer/components/Paint.js +7 -4
  36. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  37. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  38. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +1 -1
  39. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  40. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +7 -6
  41. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  42. package/lib/commonjs/renderer/components/colorFilters/Compose.js +6 -6
  43. package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -1
  44. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +8 -7
  45. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  46. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +6 -6
  47. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  48. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +6 -6
  49. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  50. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +6 -7
  51. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  52. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +6 -6
  53. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  54. package/lib/commonjs/renderer/components/image/BoxFit.js +7 -9
  55. package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -1
  56. package/lib/commonjs/renderer/components/image/Image.js +3 -2
  57. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  58. package/lib/commonjs/renderer/components/image/ImageSVG.js +3 -2
  59. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  60. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -6
  61. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  62. package/lib/commonjs/renderer/components/imageFilters/Blur.js +7 -4
  63. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  64. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +10 -7
  65. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  66. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +10 -15
  67. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  68. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +7 -6
  69. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  70. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -4
  71. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  72. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +13 -6
  73. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  74. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +8 -7
  75. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  76. package/lib/commonjs/renderer/components/imageFilters/getInput.js +7 -7
  77. package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -1
  78. package/lib/commonjs/renderer/components/maskFilters/Blur.js +6 -3
  79. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  80. package/lib/commonjs/renderer/components/pathEffects/Corner.js +8 -6
  81. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  82. package/lib/commonjs/renderer/components/pathEffects/Dash.js +8 -6
  83. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  84. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +8 -6
  85. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  86. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +8 -6
  87. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  88. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +8 -6
  89. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  90. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +8 -6
  91. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  92. package/lib/commonjs/renderer/components/pathEffects/Sum.js +7 -4
  93. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  94. package/lib/commonjs/renderer/components/shaders/Color.js +7 -4
  95. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  96. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +5 -4
  97. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  98. package/lib/commonjs/renderer/components/shaders/Gradient.js +5 -5
  99. package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -1
  100. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +6 -5
  101. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  102. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +6 -5
  103. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  104. package/lib/commonjs/renderer/components/shaders/Shader.js +6 -43
  105. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  106. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +6 -5
  107. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  108. package/lib/commonjs/renderer/components/shaders/Turbulence.js +5 -4
  109. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  110. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +6 -5
  111. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  112. package/lib/commonjs/renderer/components/shapes/Box.js +26 -29
  113. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  114. package/lib/commonjs/renderer/components/shapes/Circle.js +7 -5
  115. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  116. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  117. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  118. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  119. package/lib/commonjs/renderer/components/shapes/Oval.js +3 -2
  120. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  121. package/lib/commonjs/renderer/components/shapes/Patch.js +8 -5
  122. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  123. package/lib/commonjs/renderer/components/shapes/Path.js +5 -4
  124. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  125. package/lib/commonjs/renderer/components/shapes/Points.js +2 -2
  126. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  127. package/lib/commonjs/renderer/components/shapes/Rect.js +3 -2
  128. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  129. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +3 -2
  130. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  131. package/lib/commonjs/renderer/components/shapes/Vertices.js +9 -8
  132. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  133. package/lib/commonjs/renderer/components/text/Glyphs.js +3 -2
  134. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  135. package/lib/commonjs/renderer/components/text/Text.js +3 -2
  136. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  137. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  138. package/lib/commonjs/renderer/components/text/TextPath.js +7 -11
  139. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  140. package/lib/commonjs/renderer/index.js +13 -13
  141. package/lib/commonjs/renderer/index.js.map +1 -1
  142. package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -1
  143. package/lib/commonjs/renderer/nodes/Drawing.js +5 -5
  144. package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -1
  145. package/lib/commonjs/renderer/nodes/Node.js.map +1 -1
  146. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  147. package/lib/commonjs/renderer/processors/Circles.js +2 -4
  148. package/lib/commonjs/renderer/processors/Circles.js.map +1 -1
  149. package/lib/commonjs/renderer/processors/Clips.js +5 -5
  150. package/lib/commonjs/renderer/processors/Clips.js.map +1 -1
  151. package/lib/commonjs/{skia/core → renderer/processors}/Color.js +2 -6
  152. package/lib/commonjs/renderer/processors/Color.js.map +1 -0
  153. package/lib/commonjs/renderer/processors/Font.js +4 -4
  154. package/lib/commonjs/renderer/processors/Font.js.map +1 -1
  155. package/lib/commonjs/renderer/processors/Paint.js +18 -14
  156. package/lib/commonjs/renderer/processors/Paint.js.map +1 -1
  157. package/lib/commonjs/renderer/processors/Paths.js +4 -4
  158. package/lib/commonjs/renderer/processors/Paths.js.map +1 -1
  159. package/lib/commonjs/renderer/processors/Radius.js +2 -4
  160. package/lib/commonjs/renderer/processors/Radius.js.map +1 -1
  161. package/lib/commonjs/renderer/processors/Rects.js +8 -59
  162. package/lib/commonjs/renderer/processors/Rects.js.map +1 -1
  163. package/lib/commonjs/renderer/processors/Transform.js +26 -17
  164. package/lib/commonjs/renderer/processors/Transform.js.map +1 -1
  165. package/lib/commonjs/renderer/processors/index.js +26 -13
  166. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  167. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  168. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  169. package/lib/commonjs/renderer/processors/math/index.js +0 -26
  170. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  171. package/lib/commonjs/renderer/useCanvas.js +30 -0
  172. package/lib/commonjs/renderer/useCanvas.js.map +1 -0
  173. package/lib/commonjs/skia/NativeSetup.js +1 -1
  174. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  175. package/lib/commonjs/skia/Skia.web.js +12 -0
  176. package/lib/commonjs/skia/Skia.web.js.map +1 -0
  177. package/lib/commonjs/skia/core/Data.js +9 -4
  178. package/lib/commonjs/skia/core/Data.js.map +1 -1
  179. package/lib/commonjs/skia/core/Font.js +2 -4
  180. package/lib/commonjs/skia/core/Font.js.map +1 -1
  181. package/lib/commonjs/skia/core/Matrix.js +15 -0
  182. package/lib/commonjs/skia/core/Matrix.js.map +1 -0
  183. package/lib/commonjs/skia/core/Paint.js +4 -12
  184. package/lib/commonjs/skia/core/Paint.js.map +1 -1
  185. package/lib/commonjs/skia/core/Path.js +14 -2
  186. package/lib/commonjs/skia/core/Path.js.map +1 -1
  187. package/lib/commonjs/skia/core/RRect.js +13 -0
  188. package/lib/commonjs/skia/core/RRect.js.map +1 -0
  189. package/lib/commonjs/skia/core/Rect.js +47 -0
  190. package/lib/commonjs/skia/core/Rect.js.map +1 -0
  191. package/lib/commonjs/skia/core/Vector.js +49 -0
  192. package/lib/commonjs/skia/core/Vector.js.map +1 -0
  193. package/lib/commonjs/skia/core/index.js +51 -25
  194. package/lib/commonjs/skia/core/index.js.map +1 -1
  195. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  196. package/lib/commonjs/skia/types/Matrix.js +58 -1
  197. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  198. package/lib/commonjs/skia/types/Path/Path.js +1 -0
  199. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  200. package/lib/commonjs/skia/types/Point.js.map +1 -1
  201. package/lib/commonjs/skia/types/RRect.js +7 -0
  202. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  203. package/lib/commonjs/skia/types/Shader/Shader.js +51 -1
  204. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  205. package/lib/commonjs/skia/web/{api/Host.js → Host.js} +10 -1
  206. package/lib/commonjs/skia/web/Host.js.map +1 -0
  207. package/lib/commonjs/skia/web/JsiImageFilterFactory.js +68 -0
  208. package/lib/commonjs/skia/web/JsiImageFilterFactory.js.map +1 -0
  209. package/lib/commonjs/skia/web/{api/JsiSkCanvas.js → JsiSkCanvas.js} +20 -6
  210. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
  211. package/lib/commonjs/skia/web/{api/JsiSkColor.js → JsiSkColor.js} +163 -4
  212. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
  213. package/lib/commonjs/skia/web/{api/JsiSkColorFilter.js → JsiSkColorFilter.js} +0 -0
  214. package/lib/commonjs/skia/web/{api/JsiSkColorFilter.js.map → JsiSkColorFilter.js.map} +1 -1
  215. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +48 -0
  216. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  217. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +42 -0
  218. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
  219. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +30 -0
  220. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  221. package/lib/commonjs/skia/web/JsiSkData.js +18 -0
  222. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
  223. package/lib/commonjs/skia/web/JsiSkDataFactory.js +44 -0
  224. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
  225. package/lib/commonjs/skia/web/JsiSkFont.js +111 -0
  226. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
  227. package/lib/commonjs/skia/web/JsiSkFontMgr.js +35 -0
  228. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
  229. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +25 -0
  230. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  231. package/lib/commonjs/skia/web/{api/JsiSkImage.js → JsiSkImage.js} +0 -0
  232. package/lib/commonjs/skia/web/{api/JsiSkImage.js.map → JsiSkImage.js.map} +1 -1
  233. package/lib/commonjs/skia/web/JsiSkImageFactory.js +47 -0
  234. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
  235. package/lib/commonjs/skia/web/JsiSkImageFilter.js +18 -0
  236. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
  237. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +18 -0
  238. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
  239. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +24 -0
  240. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  241. package/lib/commonjs/skia/web/JsiSkMatrix.js +38 -0
  242. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
  243. package/lib/commonjs/skia/web/{api/JsiSkPaint.js → JsiSkPaint.js} +4 -9
  244. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
  245. package/lib/commonjs/skia/web/JsiSkPath.js +324 -0
  246. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
  247. package/lib/commonjs/skia/web/JsiSkPathEffect.js +18 -0
  248. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
  249. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +78 -0
  250. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  251. package/lib/commonjs/skia/web/JsiSkPathFactory.js +58 -0
  252. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -0
  253. package/lib/commonjs/skia/web/JsiSkPicture.js +29 -0
  254. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -0
  255. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +30 -0
  256. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
  257. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +30 -0
  258. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
  259. package/lib/commonjs/skia/web/JsiSkPoint.js +26 -0
  260. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
  261. package/lib/commonjs/skia/web/JsiSkRRect.js +32 -0
  262. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
  263. package/lib/commonjs/skia/web/JsiSkRSXform.js +18 -0
  264. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
  265. package/lib/commonjs/skia/web/{api/JsiSkRect.js → JsiSkRect.js} +8 -0
  266. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -0
  267. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +44 -0
  268. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  269. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +30 -0
  270. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  271. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +26 -0
  272. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
  273. package/lib/commonjs/skia/web/JsiSkShader.js +18 -0
  274. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
  275. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +52 -0
  276. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
  277. package/lib/commonjs/skia/web/{api/JsiSkSurface.js → JsiSkSurface.js} +0 -0
  278. package/lib/commonjs/skia/web/{api/JsiSkSurface.js.map → JsiSkSurface.js.map} +1 -1
  279. package/lib/commonjs/skia/web/{api/JsiSkSurfaceFactory.js → JsiSkSurfaceFactory.js} +0 -0
  280. package/lib/commonjs/skia/web/{api/JsiSkSurfaceFactory.js.map → JsiSkSurfaceFactory.js.map} +1 -1
  281. package/lib/commonjs/skia/web/JsiSkTextBlob.js +18 -0
  282. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
  283. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +36 -0
  284. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  285. package/lib/commonjs/skia/web/JsiSkTypeface.js +28 -0
  286. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
  287. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +30 -0
  288. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  289. package/lib/commonjs/skia/web/JsiSkVertices.js +28 -0
  290. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
  291. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +27 -0
  292. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
  293. package/lib/commonjs/skia/web/JsiSkia.js +97 -0
  294. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
  295. package/lib/commonjs/skia/web/index.js +4 -4
  296. package/lib/commonjs/skia/web/index.js.map +1 -1
  297. package/lib/commonjs/values/web/api.js +2 -2
  298. package/lib/commonjs/values/web/api.js.map +1 -1
  299. package/lib/commonjs/views/SkiaView.web.js +216 -0
  300. package/lib/commonjs/views/SkiaView.web.js.map +1 -0
  301. package/lib/commonjs/views/types.js.map +1 -1
  302. package/lib/commonjs/views/useTouchHandler.js +70 -46
  303. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  304. package/lib/commonjs/web/index.js +20 -0
  305. package/lib/commonjs/web/index.js.map +1 -0
  306. package/lib/module/animation/functions/index.js +4 -2
  307. package/lib/module/animation/functions/index.js.map +1 -1
  308. package/lib/module/animation/functions/interpolatePaths.js +36 -0
  309. package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
  310. package/lib/module/animation/functions/interpolateVector.js +7 -0
  311. package/lib/module/animation/functions/interpolateVector.js.map +1 -0
  312. package/lib/module/index.js +1 -0
  313. package/lib/module/index.js.map +1 -1
  314. package/lib/module/renderer/Canvas.js +15 -26
  315. package/lib/module/renderer/Canvas.js.map +1 -1
  316. package/lib/module/renderer/HostConfig.js +2 -2
  317. package/lib/module/renderer/HostConfig.js.map +1 -1
  318. package/lib/module/renderer/components/Blend.js +5 -2
  319. package/lib/module/renderer/components/Blend.js.map +1 -1
  320. package/lib/module/renderer/components/Compose.js +5 -2
  321. package/lib/module/renderer/components/Compose.js.map +1 -1
  322. package/lib/module/renderer/components/Group.js +7 -6
  323. package/lib/module/renderer/components/Group.js.map +1 -1
  324. package/lib/module/renderer/components/Mask.js +7 -3
  325. package/lib/module/renderer/components/Mask.js.map +1 -1
  326. package/lib/module/renderer/components/Paint.js +6 -3
  327. package/lib/module/renderer/components/Paint.js.map +1 -1
  328. package/lib/module/renderer/components/Picture.js.map +1 -1
  329. package/lib/module/renderer/components/backdrop/BackdropFilter.js +1 -1
  330. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  331. package/lib/module/renderer/components/colorFilters/BlendColor.js +6 -3
  332. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  333. package/lib/module/renderer/components/colorFilters/Compose.js +2 -2
  334. package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -1
  335. package/lib/module/renderer/components/colorFilters/Lerp.js +6 -3
  336. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  337. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +5 -3
  338. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  339. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +5 -3
  340. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  341. package/lib/module/renderer/components/colorFilters/Matrix.js +5 -3
  342. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  343. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +5 -3
  344. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  345. package/lib/module/renderer/components/image/BoxFit.js +7 -8
  346. package/lib/module/renderer/components/image/BoxFit.js.map +1 -1
  347. package/lib/module/renderer/components/image/Image.js +3 -2
  348. package/lib/module/renderer/components/image/Image.js.map +1 -1
  349. package/lib/module/renderer/components/image/ImageSVG.js +3 -2
  350. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  351. package/lib/module/renderer/components/image/ImageShader.js +10 -7
  352. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  353. package/lib/module/renderer/components/imageFilters/Blur.js +7 -4
  354. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  355. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +7 -4
  356. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  357. package/lib/module/renderer/components/imageFilters/InnerShadow.js +3 -3
  358. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  359. package/lib/module/renderer/components/imageFilters/Morphology.js +6 -4
  360. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  361. package/lib/module/renderer/components/imageFilters/Offset.js +5 -3
  362. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  363. package/lib/module/renderer/components/imageFilters/RuntimeShader.js +13 -4
  364. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  365. package/lib/module/renderer/components/imageFilters/Shadow.js +6 -5
  366. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  367. package/lib/module/renderer/components/imageFilters/getInput.js +2 -2
  368. package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -1
  369. package/lib/module/renderer/components/maskFilters/Blur.js +5 -2
  370. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  371. package/lib/module/renderer/components/pathEffects/Corner.js +5 -2
  372. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  373. package/lib/module/renderer/components/pathEffects/Dash.js +5 -2
  374. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  375. package/lib/module/renderer/components/pathEffects/Discrete.js +5 -2
  376. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  377. package/lib/module/renderer/components/pathEffects/Line2D.js +5 -2
  378. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  379. package/lib/module/renderer/components/pathEffects/Path1D.js +6 -3
  380. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  381. package/lib/module/renderer/components/pathEffects/Path2D.js +6 -3
  382. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  383. package/lib/module/renderer/components/pathEffects/Sum.js +5 -2
  384. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  385. package/lib/module/renderer/components/shaders/Color.js +6 -3
  386. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  387. package/lib/module/renderer/components/shaders/FractalNoise.js +4 -2
  388. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  389. package/lib/module/renderer/components/shaders/Gradient.js +3 -3
  390. package/lib/module/renderer/components/shaders/Gradient.js.map +1 -1
  391. package/lib/module/renderer/components/shaders/LinearGradient.js +5 -3
  392. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  393. package/lib/module/renderer/components/shaders/RadialGradient.js +5 -3
  394. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  395. package/lib/module/renderer/components/shaders/Shader.js +6 -44
  396. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  397. package/lib/module/renderer/components/shaders/SweepGradient.js +5 -3
  398. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  399. package/lib/module/renderer/components/shaders/Turbulence.js +4 -2
  400. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  401. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +5 -3
  402. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  403. package/lib/module/renderer/components/shapes/Box.js +20 -19
  404. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  405. package/lib/module/renderer/components/shapes/Circle.js +7 -4
  406. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  407. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  408. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  409. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  410. package/lib/module/renderer/components/shapes/Oval.js +3 -2
  411. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  412. package/lib/module/renderer/components/shapes/Patch.js +5 -3
  413. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  414. package/lib/module/renderer/components/shapes/Path.js +4 -3
  415. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  416. package/lib/module/renderer/components/shapes/Points.js +1 -1
  417. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  418. package/lib/module/renderer/components/shapes/Rect.js +3 -2
  419. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  420. package/lib/module/renderer/components/shapes/RoundedRect.js +3 -2
  421. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  422. package/lib/module/renderer/components/shapes/Vertices.js +5 -3
  423. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  424. package/lib/module/renderer/components/text/Glyphs.js +3 -2
  425. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  426. package/lib/module/renderer/components/text/Text.js +3 -2
  427. package/lib/module/renderer/components/text/Text.js.map +1 -1
  428. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  429. package/lib/module/renderer/components/text/TextPath.js +3 -3
  430. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  431. package/lib/module/renderer/index.js +1 -1
  432. package/lib/module/renderer/index.js.map +1 -1
  433. package/lib/module/renderer/nodes/Declaration.js.map +1 -1
  434. package/lib/module/renderer/nodes/Drawing.js +3 -3
  435. package/lib/module/renderer/nodes/Drawing.js.map +1 -1
  436. package/lib/module/renderer/nodes/Node.js.map +1 -1
  437. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  438. package/lib/module/renderer/processors/Circles.js +2 -4
  439. package/lib/module/renderer/processors/Circles.js.map +1 -1
  440. package/lib/module/renderer/processors/Clips.js +3 -3
  441. package/lib/module/renderer/processors/Clips.js.map +1 -1
  442. package/lib/module/{skia/core → renderer/processors}/Color.js +1 -2
  443. package/lib/module/renderer/processors/Color.js.map +1 -0
  444. package/lib/module/renderer/processors/Font.js +3 -2
  445. package/lib/module/renderer/processors/Font.js.map +1 -1
  446. package/lib/module/renderer/processors/Paint.js +8 -5
  447. package/lib/module/renderer/processors/Paint.js.map +1 -1
  448. package/lib/module/renderer/processors/Paths.js +2 -2
  449. package/lib/module/renderer/processors/Paths.js.map +1 -1
  450. package/lib/module/renderer/processors/Radius.js +2 -3
  451. package/lib/module/renderer/processors/Radius.js.map +1 -1
  452. package/lib/module/renderer/processors/Rects.js +7 -26
  453. package/lib/module/renderer/processors/Rects.js.map +1 -1
  454. package/lib/module/renderer/processors/Transform.js +24 -16
  455. package/lib/module/renderer/processors/Transform.js.map +1 -1
  456. package/lib/module/renderer/processors/index.js +2 -1
  457. package/lib/module/renderer/processors/index.js.map +1 -1
  458. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  459. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  460. package/lib/module/renderer/processors/math/index.js +0 -2
  461. package/lib/module/renderer/processors/math/index.js.map +1 -1
  462. package/lib/module/renderer/useCanvas.js +13 -0
  463. package/lib/module/renderer/useCanvas.js.map +1 -0
  464. package/lib/module/skia/NativeSetup.js +2 -2
  465. package/lib/module/skia/NativeSetup.js.map +1 -1
  466. package/lib/module/skia/Skia.web.js +3 -0
  467. package/lib/module/skia/Skia.web.js.map +1 -0
  468. package/lib/module/skia/core/Data.js +11 -5
  469. package/lib/module/skia/core/Data.js.map +1 -1
  470. package/lib/module/skia/core/Font.js +2 -4
  471. package/lib/module/skia/core/Font.js.map +1 -1
  472. package/lib/module/skia/core/Matrix.js +4 -0
  473. package/lib/module/skia/core/Matrix.js.map +1 -0
  474. package/lib/module/skia/core/Paint.js +3 -7
  475. package/lib/module/skia/core/Paint.js.map +1 -1
  476. package/lib/module/skia/core/Path.js +11 -2
  477. package/lib/module/skia/core/Path.js.map +1 -1
  478. package/lib/module/skia/core/RRect.js +3 -0
  479. package/lib/module/skia/core/RRect.js.map +1 -0
  480. package/lib/module/skia/core/Rect.js +17 -0
  481. package/lib/module/skia/core/Rect.js.map +1 -0
  482. package/lib/module/{renderer/processors/math → skia/core}/Vector.js +2 -7
  483. package/lib/module/skia/core/Vector.js.map +1 -0
  484. package/lib/module/skia/core/index.js +5 -3
  485. package/lib/module/skia/core/index.js.map +1 -1
  486. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  487. package/lib/module/skia/types/Matrix.js +55 -0
  488. package/lib/module/skia/types/Matrix.js.map +1 -1
  489. package/lib/module/skia/types/Path/Path.js +1 -0
  490. package/lib/module/skia/types/Path/Path.js.map +1 -1
  491. package/lib/module/skia/types/Point.js.map +1 -1
  492. package/lib/module/skia/types/RRect.js +3 -1
  493. package/lib/module/skia/types/RRect.js.map +1 -1
  494. package/lib/module/skia/types/Shader/Shader.js +48 -0
  495. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  496. package/lib/module/skia/web/{api/Host.js → Host.js} +6 -0
  497. package/lib/module/skia/web/Host.js.map +1 -0
  498. package/lib/module/skia/web/JsiImageFilterFactory.js +57 -0
  499. package/lib/module/skia/web/JsiImageFilterFactory.js.map +1 -0
  500. package/lib/module/skia/web/{api/JsiSkCanvas.js → JsiSkCanvas.js} +19 -6
  501. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
  502. package/lib/module/skia/web/{api/JsiSkColor.js → JsiSkColor.js} +164 -4
  503. package/lib/module/skia/web/JsiSkColor.js.map +1 -0
  504. package/lib/module/skia/web/{api/JsiSkColorFilter.js → JsiSkColorFilter.js} +0 -0
  505. package/lib/module/skia/web/{api/JsiSkColorFilter.js.map → JsiSkColorFilter.js.map} +1 -1
  506. package/lib/module/skia/web/JsiSkColorFilterFactory.js +37 -0
  507. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  508. package/lib/module/skia/web/JsiSkContourMeasure.js +31 -0
  509. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
  510. package/lib/module/skia/web/JsiSkContourMeasureIter.js +19 -0
  511. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  512. package/lib/module/skia/web/JsiSkData.js +8 -0
  513. package/lib/module/skia/web/JsiSkData.js.map +1 -0
  514. package/lib/module/skia/web/JsiSkDataFactory.js +33 -0
  515. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
  516. package/lib/module/skia/web/JsiSkFont.js +99 -0
  517. package/lib/module/skia/web/JsiSkFont.js.map +1 -0
  518. package/lib/module/skia/web/JsiSkFontMgr.js +25 -0
  519. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
  520. package/lib/module/skia/web/JsiSkFontMgrFactory.js +14 -0
  521. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  522. package/lib/module/skia/web/{api/JsiSkImage.js → JsiSkImage.js} +0 -0
  523. package/lib/module/skia/web/{api/JsiSkImage.js.map → JsiSkImage.js.map} +1 -1
  524. package/lib/module/skia/web/JsiSkImageFactory.js +36 -0
  525. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
  526. package/lib/module/skia/web/JsiSkImageFilter.js +8 -0
  527. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
  528. package/lib/module/skia/web/JsiSkMaskFilter.js +8 -0
  529. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
  530. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +13 -0
  531. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  532. package/lib/module/skia/web/JsiSkMatrix.js +28 -0
  533. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
  534. package/lib/module/skia/web/{api/JsiSkPaint.js → JsiSkPaint.js} +5 -10
  535. package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
  536. package/lib/module/skia/web/JsiSkPath.js +311 -0
  537. package/lib/module/skia/web/JsiSkPath.js.map +1 -0
  538. package/lib/module/skia/web/JsiSkPathEffect.js +8 -0
  539. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
  540. package/lib/module/skia/web/JsiSkPathEffectFactory.js +67 -0
  541. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  542. package/lib/module/skia/web/JsiSkPathFactory.js +47 -0
  543. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
  544. package/lib/module/skia/web/JsiSkPicture.js +18 -0
  545. package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
  546. package/lib/module/skia/web/JsiSkPictureFactory.js +19 -0
  547. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
  548. package/lib/module/skia/web/JsiSkPictureRecorder.js +18 -0
  549. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
  550. package/lib/module/skia/web/JsiSkPoint.js +16 -0
  551. package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
  552. package/lib/module/skia/web/JsiSkRRect.js +21 -0
  553. package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
  554. package/lib/module/skia/web/JsiSkRSXform.js +8 -0
  555. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
  556. package/lib/module/skia/web/{api/JsiSkRect.js → JsiSkRect.js} +8 -0
  557. package/lib/module/skia/web/JsiSkRect.js.map +1 -0
  558. package/lib/module/skia/web/JsiSkRuntimeEffect.js +33 -0
  559. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  560. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +19 -0
  561. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  562. package/lib/module/skia/web/JsiSkSVGFactory.js +16 -0
  563. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
  564. package/lib/module/skia/web/JsiSkShader.js +8 -0
  565. package/lib/module/skia/web/JsiSkShader.js.map +1 -0
  566. package/lib/module/skia/web/JsiSkShaderFactory.js +41 -0
  567. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
  568. package/lib/module/skia/web/{api/JsiSkSurface.js → JsiSkSurface.js} +0 -0
  569. package/lib/module/skia/web/{api/JsiSkSurface.js.map → JsiSkSurface.js.map} +1 -1
  570. package/lib/module/skia/web/{api/JsiSkSurfaceFactory.js → JsiSkSurfaceFactory.js} +0 -0
  571. package/lib/module/skia/web/{api/JsiSkSurfaceFactory.js.map → JsiSkSurfaceFactory.js.map} +1 -1
  572. package/lib/module/skia/web/JsiSkTextBlob.js +8 -0
  573. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
  574. package/lib/module/skia/web/JsiSkTextBlobFactory.js +25 -0
  575. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  576. package/lib/module/skia/web/JsiSkTypeface.js +18 -0
  577. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
  578. package/lib/module/skia/web/JsiSkTypefaceFactory.js +19 -0
  579. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  580. package/lib/module/skia/web/JsiSkVertices.js +17 -0
  581. package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
  582. package/lib/module/skia/web/JsiSkVerticesFactory.js +16 -0
  583. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
  584. package/lib/module/skia/web/JsiSkia.js +61 -0
  585. package/lib/module/skia/web/JsiSkia.js.map +1 -0
  586. package/lib/module/skia/web/index.js +1 -1
  587. package/lib/module/skia/web/index.js.map +1 -1
  588. package/lib/module/values/web/api.js +2 -2
  589. package/lib/module/values/web/api.js.map +1 -1
  590. package/lib/module/views/SkiaView.web.js +202 -0
  591. package/lib/module/views/SkiaView.web.js.map +1 -0
  592. package/lib/module/views/types.js.map +1 -1
  593. package/lib/module/views/useTouchHandler.js +64 -43
  594. package/lib/module/views/useTouchHandler.js.map +1 -1
  595. package/lib/module/web/index.js +8 -0
  596. package/lib/module/web/index.js.map +1 -0
  597. package/lib/typescript/src/animation/functions/index.d.ts +4 -2
  598. package/lib/typescript/src/animation/functions/interpolatePaths.d.ts +17 -0
  599. package/lib/typescript/src/animation/functions/interpolateVector.d.ts +10 -0
  600. package/lib/typescript/src/index.d.ts +1 -0
  601. package/lib/typescript/src/renderer/Canvas.d.ts +3 -14
  602. package/lib/typescript/src/renderer/DrawingContext.d.ts +3 -3
  603. package/lib/typescript/src/renderer/components/Blend.d.ts +1 -1
  604. package/lib/typescript/src/renderer/components/Group.d.ts +1 -1
  605. package/lib/typescript/src/renderer/components/Paint.d.ts +1 -1
  606. package/lib/typescript/src/renderer/components/Picture.d.ts +1 -1
  607. package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +2 -2
  608. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +2 -2
  609. package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +13 -3
  610. package/lib/typescript/src/renderer/components/image/Image.d.ts +1 -1
  611. package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +1 -1
  612. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +2 -2
  613. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +1 -1
  614. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +1 -1
  615. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +2 -2
  616. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +2 -1
  617. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +1 -1
  618. package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +2 -1
  619. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +1 -1
  620. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +1 -1
  621. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +1 -1
  622. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +1 -1
  623. package/lib/typescript/src/renderer/components/shaders/Color.d.ts +1 -1
  624. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +4 -4
  625. package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +2 -1
  626. package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +2 -1
  627. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +2 -8
  628. package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +2 -1
  629. package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -1
  630. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +1 -1
  631. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +4 -1
  632. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +1 -1
  633. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +1 -1
  634. package/lib/typescript/src/renderer/components/shapes/Line.d.ts +2 -1
  635. package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +3 -3
  636. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +1 -1
  637. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +2 -2
  638. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +2 -2
  639. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +1 -1
  640. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +1 -1
  641. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +1 -1
  642. package/lib/typescript/src/renderer/index.d.ts +1 -1
  643. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +1 -1
  644. package/lib/typescript/src/renderer/nodes/Node.d.ts +1 -1
  645. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +0 -2
  646. package/lib/typescript/src/renderer/processors/Circles.d.ts +2 -2
  647. package/lib/typescript/src/renderer/processors/Clips.d.ts +2 -2
  648. package/lib/typescript/src/{skia/core → renderer/processors}/Color.d.ts +2 -2
  649. package/lib/typescript/src/renderer/processors/Font.d.ts +2 -2
  650. package/lib/typescript/src/renderer/processors/Paint.d.ts +3 -3
  651. package/lib/typescript/src/renderer/processors/Paths.d.ts +2 -2
  652. package/lib/typescript/src/renderer/processors/Radius.d.ts +2 -2
  653. package/lib/typescript/src/renderer/processors/Rects.d.ts +3 -14
  654. package/lib/typescript/src/renderer/processors/Transform.d.ts +3 -4
  655. package/lib/typescript/src/renderer/processors/index.d.ts +2 -1
  656. package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +1 -1
  657. package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +1 -1
  658. package/lib/typescript/src/renderer/processors/math/index.d.ts +0 -2
  659. package/lib/typescript/src/renderer/useCanvas.d.ts +14 -0
  660. package/lib/typescript/src/skia/Skia.web.d.ts +1 -0
  661. package/lib/typescript/src/skia/core/Data.d.ts +4 -4
  662. package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
  663. package/lib/typescript/src/skia/core/Paint.d.ts +0 -1
  664. package/lib/typescript/src/skia/core/RRect.d.ts +2 -0
  665. package/lib/typescript/src/skia/core/Rect.d.ts +8 -0
  666. package/lib/typescript/src/skia/core/Vector.d.ts +12 -0
  667. package/lib/typescript/src/skia/core/index.d.ts +5 -3
  668. package/lib/typescript/src/skia/types/ContourMeasure.d.ts +2 -4
  669. package/lib/typescript/src/skia/types/Data/Data.d.ts +1 -1
  670. package/lib/typescript/src/skia/types/Data/DataFactory.d.ts +4 -4
  671. package/lib/typescript/src/skia/types/FontMgr/FontMgr.d.ts +1 -1
  672. package/lib/typescript/src/skia/types/FontMgr/FontMgrFactory.d.ts +2 -2
  673. package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +3 -3
  674. package/lib/typescript/src/skia/types/Matrix.d.ts +15 -14
  675. package/lib/typescript/src/skia/types/Path/Path.d.ts +29 -23
  676. package/lib/typescript/src/skia/types/Path/PathFactory.d.ts +5 -0
  677. package/lib/typescript/src/skia/types/Picture/Picture.d.ts +2 -2
  678. package/lib/typescript/src/skia/types/Point.d.ts +1 -0
  679. package/lib/typescript/src/skia/types/RRect.d.ts +1 -0
  680. package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +3 -2
  681. package/lib/typescript/src/skia/types/SVG/SVGFactory.d.ts +2 -2
  682. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +8 -0
  683. package/lib/typescript/src/skia/types/Skia.d.ts +1 -1
  684. package/lib/typescript/src/skia/types/Typeface/TypefaceFactory.d.ts +2 -2
  685. package/lib/typescript/src/skia/web/{api/Host.d.ts → Host.d.ts} +4 -1
  686. package/lib/typescript/src/skia/web/JsiImageFilterFactory.d.ts +19 -0
  687. package/lib/typescript/src/skia/web/{api/JsiSkCanvas.d.ts → JsiSkCanvas.d.ts} +1 -1
  688. package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
  689. package/lib/typescript/src/skia/web/{api/JsiSkColorFilter.d.ts → JsiSkColorFilter.d.ts} +1 -1
  690. package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  691. package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +16 -0
  692. package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  693. package/lib/typescript/src/skia/web/JsiSkData.d.ts +8 -0
  694. package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
  695. package/lib/typescript/src/skia/web/JsiSkFont.d.ts +33 -0
  696. package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +9 -0
  697. package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
  698. package/lib/typescript/src/skia/web/{api/JsiSkImage.d.ts → JsiSkImage.d.ts} +1 -1
  699. package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +10 -0
  700. package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +6 -0
  701. package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +6 -0
  702. package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  703. package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +11 -0
  704. package/lib/typescript/src/skia/web/{api/JsiSkPaint.d.ts → JsiSkPaint.d.ts} +1 -1
  705. package/lib/typescript/src/skia/web/JsiSkPath.d.ts +56 -0
  706. package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +6 -0
  707. package/lib/typescript/src/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  708. package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +13 -0
  709. package/lib/typescript/src/skia/web/JsiSkPicture.d.ts +9 -0
  710. package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
  711. package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  712. package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +8 -0
  713. package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +10 -0
  714. package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -0
  715. package/lib/typescript/src/skia/web/{api/JsiSkRect.d.ts → JsiSkRect.d.ts} +2 -1
  716. package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +14 -0
  717. package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  718. package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +9 -0
  719. package/lib/typescript/src/skia/web/JsiSkShader.d.ts +6 -0
  720. package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
  721. package/lib/typescript/src/skia/web/{api/JsiSkSurface.d.ts → JsiSkSurface.d.ts} +1 -1
  722. package/lib/typescript/src/skia/web/{api/JsiSkSurfaceFactory.d.ts → JsiSkSurfaceFactory.d.ts} +1 -1
  723. package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +6 -0
  724. package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +12 -0
  725. package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +8 -0
  726. package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  727. package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +9 -0
  728. package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  729. package/lib/typescript/src/skia/web/JsiSkia.d.ts +3 -0
  730. package/lib/typescript/src/skia/web/index.d.ts +1 -1
  731. package/lib/typescript/src/views/SkiaView.web.d.ts +56 -0
  732. package/lib/typescript/src/views/types.d.ts +1 -0
  733. package/lib/typescript/src/views/useTouchHandler.d.ts +11 -1
  734. package/lib/typescript/src/web/index.d.ts +5 -0
  735. package/package.json +4 -5
  736. package/src/animation/functions/index.ts +4 -2
  737. package/src/animation/functions/interpolatePaths.ts +38 -0
  738. package/src/animation/functions/interpolateVector.ts +26 -0
  739. package/src/index.ts +1 -0
  740. package/src/renderer/Canvas.tsx +13 -35
  741. package/src/renderer/DrawingContext.ts +3 -4
  742. package/src/renderer/HostConfig.ts +2 -2
  743. package/src/renderer/components/Blend.tsx +12 -10
  744. package/src/renderer/components/Compose.tsx +2 -2
  745. package/src/renderer/components/Group.tsx +11 -6
  746. package/src/renderer/components/Mask.tsx +5 -3
  747. package/src/renderer/components/Paint.tsx +5 -4
  748. package/src/renderer/components/Picture.tsx +1 -1
  749. package/src/renderer/components/backdrop/BackdropFilter.tsx +1 -1
  750. package/src/renderer/components/colorFilters/BlendColor.tsx +4 -4
  751. package/src/renderer/components/colorFilters/Compose.ts +3 -2
  752. package/src/renderer/components/colorFilters/Lerp.tsx +3 -2
  753. package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +2 -3
  754. package/src/renderer/components/colorFilters/LumaColorFilter.tsx +2 -3
  755. package/src/renderer/components/colorFilters/Matrix.tsx +2 -3
  756. package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +2 -3
  757. package/src/renderer/components/image/BoxFit.ts +7 -13
  758. package/src/renderer/components/image/Image.tsx +3 -3
  759. package/src/renderer/components/image/ImageSVG.tsx +3 -3
  760. package/src/renderer/components/image/ImageShader.tsx +8 -7
  761. package/src/renderer/components/imageFilters/Blur.tsx +12 -10
  762. package/src/renderer/components/imageFilters/DisplacementMap.tsx +4 -4
  763. package/src/renderer/components/imageFilters/InnerShadow.tsx +4 -3
  764. package/src/renderer/components/imageFilters/Morphology.tsx +3 -4
  765. package/src/renderer/components/imageFilters/Offset.tsx +5 -4
  766. package/src/renderer/components/imageFilters/RuntimeShader.tsx +12 -4
  767. package/src/renderer/components/imageFilters/Shadow.tsx +10 -6
  768. package/src/renderer/components/imageFilters/getInput.ts +3 -2
  769. package/src/renderer/components/maskFilters/Blur.tsx +2 -2
  770. package/src/renderer/components/pathEffects/Corner.tsx +2 -2
  771. package/src/renderer/components/pathEffects/Dash.tsx +2 -2
  772. package/src/renderer/components/pathEffects/Discrete.tsx +2 -2
  773. package/src/renderer/components/pathEffects/Line2D.tsx +3 -3
  774. package/src/renderer/components/pathEffects/Path1D.tsx +3 -3
  775. package/src/renderer/components/pathEffects/Path2D.tsx +4 -4
  776. package/src/renderer/components/pathEffects/Sum.tsx +7 -5
  777. package/src/renderer/components/shaders/Color.tsx +7 -5
  778. package/src/renderer/components/shaders/FractalNoise.tsx +1 -2
  779. package/src/renderer/components/shaders/Gradient.ts +7 -10
  780. package/src/renderer/components/shaders/LinearGradient.tsx +4 -4
  781. package/src/renderer/components/shaders/RadialGradient.tsx +4 -4
  782. package/src/renderer/components/shaders/Shader.tsx +6 -56
  783. package/src/renderer/components/shaders/SweepGradient.tsx +4 -4
  784. package/src/renderer/components/shaders/Turbulence.tsx +1 -2
  785. package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +4 -4
  786. package/src/renderer/components/shapes/Box.tsx +36 -17
  787. package/src/renderer/components/shapes/Circle.tsx +3 -4
  788. package/src/renderer/components/shapes/DiffRect.tsx +1 -1
  789. package/src/renderer/components/shapes/FitBox.tsx +1 -1
  790. package/src/renderer/components/shapes/Line.tsx +2 -1
  791. package/src/renderer/components/shapes/Oval.tsx +6 -4
  792. package/src/renderer/components/shapes/Patch.tsx +6 -10
  793. package/src/renderer/components/shapes/Path.tsx +3 -3
  794. package/src/renderer/components/shapes/Points.tsx +2 -2
  795. package/src/renderer/components/shapes/Rect.tsx +6 -4
  796. package/src/renderer/components/shapes/RoundedRect.tsx +2 -2
  797. package/src/renderer/components/shapes/Vertices.tsx +5 -4
  798. package/src/renderer/components/text/Glyphs.tsx +6 -3
  799. package/src/renderer/components/text/Text.tsx +2 -2
  800. package/src/renderer/components/text/TextBlob.tsx +1 -1
  801. package/src/renderer/components/text/TextPath.tsx +3 -4
  802. package/src/renderer/index.ts +1 -1
  803. package/src/renderer/nodes/Declaration.tsx +1 -1
  804. package/src/renderer/nodes/Drawing.tsx +3 -2
  805. package/src/renderer/nodes/Node.ts +1 -1
  806. package/src/renderer/processors/Animations/Animations.ts +0 -3
  807. package/src/renderer/processors/Circles.ts +4 -4
  808. package/src/renderer/processors/Clips.ts +9 -4
  809. package/src/{skia/core → renderer/processors}/Color.ts +2 -3
  810. package/src/renderer/processors/Font.ts +10 -3
  811. package/src/renderer/processors/Paint.ts +12 -7
  812. package/src/renderer/processors/Paths.ts +3 -3
  813. package/src/renderer/processors/Radius.ts +3 -4
  814. package/src/renderer/processors/Rects.ts +10 -45
  815. package/src/renderer/processors/Transform.ts +28 -19
  816. package/src/renderer/processors/index.ts +2 -1
  817. package/src/renderer/processors/math/Coordinates.ts +1 -1
  818. package/src/renderer/processors/math/Transforms.ts +2 -1
  819. package/src/renderer/processors/math/index.ts +0 -2
  820. package/src/renderer/useCanvas.ts +21 -0
  821. package/src/skia/NativeSetup.ts +2 -2
  822. package/src/skia/Skia.web.ts +3 -0
  823. package/src/skia/core/Data.ts +17 -14
  824. package/src/skia/core/Font.ts +2 -4
  825. package/src/skia/core/Matrix.ts +6 -0
  826. package/src/skia/core/Paint.ts +2 -6
  827. package/src/skia/core/Path.ts +14 -6
  828. package/src/skia/core/RRect.tsx +5 -0
  829. package/src/skia/core/Rect.ts +33 -0
  830. package/src/skia/core/Vector.ts +11 -0
  831. package/src/skia/core/index.ts +5 -3
  832. package/src/skia/types/ContourMeasure.tsx +2 -4
  833. package/src/skia/types/Data/Data.ts +1 -1
  834. package/src/skia/types/Data/DataFactory.ts +4 -4
  835. package/src/skia/types/FontMgr/FontMgr.ts +1 -1
  836. package/src/skia/types/FontMgr/FontMgrFactory.ts +2 -2
  837. package/src/skia/types/Image/ImageFactory.ts +3 -3
  838. package/src/skia/types/Matrix.ts +79 -14
  839. package/src/skia/types/Path/Path.ts +34 -23
  840. package/src/skia/types/Path/PathFactory.ts +7 -0
  841. package/src/skia/types/Picture/Picture.ts +2 -2
  842. package/src/skia/types/Point.ts +2 -0
  843. package/src/skia/types/RRect.ts +5 -0
  844. package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +4 -2
  845. package/src/skia/types/SVG/SVGFactory.ts +2 -2
  846. package/src/skia/types/Shader/Shader.ts +61 -0
  847. package/src/skia/types/Skia.ts +1 -1
  848. package/src/skia/types/Typeface/TypefaceFactory.ts +2 -2
  849. package/src/skia/web/{api/Host.ts → Host.ts} +7 -1
  850. package/src/skia/web/JsiImageFilterFactory.ts +144 -0
  851. package/src/skia/web/{api/JsiSkCanvas.ts → JsiSkCanvas.ts} +19 -11
  852. package/src/skia/web/{api/JsiSkColor.ts → JsiSkColor.ts} +152 -6
  853. package/src/skia/web/{api/JsiSkColorFilter.ts → JsiSkColorFilter.ts} +1 -1
  854. package/src/skia/web/JsiSkColorFilterFactory.ts +67 -0
  855. package/src/skia/web/JsiSkContourMeasure.ts +35 -0
  856. package/src/skia/web/JsiSkContourMeasureIter.ts +23 -0
  857. package/src/skia/web/JsiSkData.ts +13 -0
  858. package/src/skia/web/JsiSkDataFactory.ts +35 -0
  859. package/src/skia/web/JsiSkFont.ts +124 -0
  860. package/src/skia/web/JsiSkFontMgr.ts +42 -0
  861. package/src/skia/web/JsiSkFontMgrFactory.ts +18 -0
  862. package/src/skia/web/{api/JsiSkImage.ts → JsiSkImage.ts} +1 -1
  863. package/src/skia/web/JsiSkImageFactory.ts +40 -0
  864. package/src/skia/web/JsiSkImageFilter.ts +14 -0
  865. package/src/skia/web/JsiSkMaskFilter.ts +14 -0
  866. package/src/skia/web/JsiSkMaskFilterFactory.ts +20 -0
  867. package/src/skia/web/JsiSkMatrix.ts +54 -0
  868. package/src/skia/web/{api/JsiSkPaint.ts → JsiSkPaint.ts} +6 -5
  869. package/src/skia/web/JsiSkPath.ts +369 -0
  870. package/src/skia/web/JsiSkPathEffect.ts +14 -0
  871. package/src/skia/web/JsiSkPathEffectFactory.ts +85 -0
  872. package/src/skia/web/JsiSkPathFactory.ts +54 -0
  873. package/src/skia/web/JsiSkPicture.ts +45 -0
  874. package/src/skia/web/JsiSkPictureFactory.ts +20 -0
  875. package/src/skia/web/JsiSkPictureRecorder.ts +31 -0
  876. package/src/skia/web/JsiSkPoint.ts +19 -0
  877. package/src/skia/web/JsiSkRRect.ts +27 -0
  878. package/src/skia/web/JsiSkRSXform.ts +16 -0
  879. package/src/skia/web/{api/JsiSkRect.ts → JsiSkRect.ts} +11 -1
  880. package/src/skia/web/JsiSkRuntimeEffect.ts +57 -0
  881. package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
  882. package/src/skia/web/JsiSkSVGFactory.ts +20 -0
  883. package/src/skia/web/JsiSkShader.ts +14 -0
  884. package/src/skia/web/JsiSkShaderFactory.ts +178 -0
  885. package/src/skia/web/{api/JsiSkSurface.ts → JsiSkSurface.ts} +1 -1
  886. package/src/skia/web/{api/JsiSkSurfaceFactory.ts → JsiSkSurfaceFactory.ts} +1 -1
  887. package/src/skia/web/JsiSkTextBlob.ts +14 -0
  888. package/src/skia/web/JsiSkTextBlobFactory.ts +49 -0
  889. package/src/skia/web/JsiSkTypeface.ts +28 -0
  890. package/src/skia/web/JsiSkTypefaceFactory.tsx +20 -0
  891. package/src/skia/web/JsiSkVertices.ts +23 -0
  892. package/src/skia/web/JsiSkVerticesFactory.ts +27 -0
  893. package/src/skia/web/JsiSkia.ts +98 -0
  894. package/src/skia/web/index.ts +1 -1
  895. package/src/values/web/api.ts +2 -2
  896. package/src/views/SkiaView.web.tsx +192 -0
  897. package/src/views/types.ts +1 -0
  898. package/src/views/useTouchHandler.ts +82 -51
  899. package/src/web/index.ts +13 -0
  900. package/lib/commonjs/renderer/processors/math/Matrix3.js +0 -66
  901. package/lib/commonjs/renderer/processors/math/Matrix3.js.map +0 -1
  902. package/lib/commonjs/renderer/processors/math/Vector.js +0 -60
  903. package/lib/commonjs/renderer/processors/math/Vector.js.map +0 -1
  904. package/lib/commonjs/skia/core/Color.js.map +0 -1
  905. package/lib/commonjs/skia/core/Shader.js +0 -18
  906. package/lib/commonjs/skia/core/Shader.js.map +0 -1
  907. package/lib/commonjs/skia/web/api/Host.js.map +0 -1
  908. package/lib/commonjs/skia/web/api/JsiSkCanvas.js.map +0 -1
  909. package/lib/commonjs/skia/web/api/JsiSkColor.js.map +0 -1
  910. package/lib/commonjs/skia/web/api/JsiSkPaint.js.map +0 -1
  911. package/lib/commonjs/skia/web/api/JsiSkRect.js.map +0 -1
  912. package/lib/commonjs/skia/web/api/index.js +0 -26
  913. package/lib/commonjs/skia/web/api/index.js.map +0 -1
  914. package/lib/module/renderer/processors/math/Matrix3.js +0 -55
  915. package/lib/module/renderer/processors/math/Matrix3.js.map +0 -1
  916. package/lib/module/renderer/processors/math/Vector.js.map +0 -1
  917. package/lib/module/skia/core/Color.js.map +0 -1
  918. package/lib/module/skia/core/Shader.js +0 -7
  919. package/lib/module/skia/core/Shader.js.map +0 -1
  920. package/lib/module/skia/web/api/Host.js.map +0 -1
  921. package/lib/module/skia/web/api/JsiSkCanvas.js.map +0 -1
  922. package/lib/module/skia/web/api/JsiSkColor.js.map +0 -1
  923. package/lib/module/skia/web/api/JsiSkPaint.js.map +0 -1
  924. package/lib/module/skia/web/api/JsiSkRect.js.map +0 -1
  925. package/lib/module/skia/web/api/index.js +0 -13
  926. package/lib/module/skia/web/api/index.js.map +0 -1
  927. package/lib/typescript/src/renderer/processors/math/Matrix3.d.ts +0 -10
  928. package/lib/typescript/src/renderer/processors/math/Vector.d.ts +0 -23
  929. package/lib/typescript/src/skia/core/Shader.d.ts +0 -1
  930. package/lib/typescript/src/skia/web/api/JsiSkColor.d.ts +0 -3
  931. package/lib/typescript/src/skia/web/api/index.d.ts +0 -10
  932. package/src/animation/timing/functions/__tests__/timing.spec.ts +0 -29
  933. package/src/renderer/processors/math/Matrix3.ts +0 -73
  934. package/src/renderer/processors/math/Vector.ts +0 -38
  935. package/src/skia/__tests__/Rects.spec.ts +0 -40
  936. package/src/skia/__tests__/snapshots/lightblue-rect.png +0 -0
  937. package/src/skia/core/Shader.ts +0 -9
  938. package/src/skia/web/api/index.ts +0 -15
  939. package/src/values/web/__tests__/RNSkAnimation.spec.ts +0 -21
  940. package/src/values/web/__tests__/RNSkDerivedValue.spec.ts +0 -15
  941. package/src/values/web/__tests__/RNSkReadonlyValue.spec.ts +0 -8
  942. package/src/values/web/__tests__/RNSkValue.spec.ts +0 -11
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
 
3
- import { Skia } from "../../../skia";
4
3
  import { createDeclaration } from "../../nodes/Declaration";
5
4
  import type { AnimatedProps } from "../../processors/Animations/Animations";
6
5
 
@@ -14,7 +13,7 @@ export interface TurbulenceProps {
14
13
  }
15
14
 
16
15
  const onDeclare = createDeclaration<TurbulenceProps>(
17
- ({ freqX, freqY, octaves, seed, tileWidth, tileHeight }) => {
16
+ ({ freqX, freqY, octaves, seed, tileWidth, tileHeight }, _, { Skia }) => {
18
17
  return Skia.Shader.MakeTurbulence(
19
18
  freqX,
20
19
  freqY,
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
 
3
- import type { Vector, AnimatedProps } from "../../processors";
4
- import { Skia } from "../../../skia";
3
+ import type { AnimatedProps } from "../../processors";
5
4
  import { createDeclaration } from "../../nodes/Declaration";
5
+ import type { Vector } from "../../../skia/types";
6
6
 
7
7
  import type { GradientProps } from "./Gradient";
8
8
  import { processGradientProps } from "./Gradient";
@@ -15,9 +15,9 @@ export interface TwoPointConicalGradientProps extends GradientProps {
15
15
  }
16
16
 
17
17
  const onDeclare = createDeclaration<TwoPointConicalGradientProps>(
18
- ({ start, startR, end, endR, ...gradientProps }) => {
18
+ ({ start, startR, end, endR, ...gradientProps }, _, { Skia }) => {
19
19
  const { colors, positions, mode, localMatrix, flags } =
20
- processGradientProps(gradientProps);
20
+ processGradientProps(Skia, gradientProps);
21
21
  return Skia.Shader.MakeTwoPointConicalGradient(
22
22
  start,
23
23
  startR,
@@ -1,16 +1,29 @@
1
1
  import React from "react";
2
2
 
3
- import type { Color, SkRRect, SkJSIInstance, SkRect } from "../../../skia";
4
- import { ClipOp, BlurStyle, Skia, processColor } from "../../../skia";
3
+ import type {
4
+ Color,
5
+ SkRRect,
6
+ SkJSIInstance,
7
+ SkRect,
8
+ Skia,
9
+ } from "../../../skia/types";
10
+ import { ClipOp, BlurStyle } from "../../../skia/types";
5
11
  import { createDrawing } from "../../nodes";
6
12
  import type { AnimatedProps, CustomPaintProps } from "../../processors";
7
- import { add, vec, rrect } from "../../processors";
8
- import { rect, isRRect } from "../../processors/Rects";
9
13
  import { createDeclaration } from "../../nodes/Declaration";
14
+ import { processColor } from "../../processors/Color";
15
+ import { isRRect } from "../../../skia/types/RRect";
10
16
 
11
- const inflate = (box: SkRRect, dx: number, dy: number, tx = 0, ty = 0) =>
12
- rrect(
13
- rect(
17
+ const inflate = (
18
+ Skia: Skia,
19
+ box: SkRRect,
20
+ dx: number,
21
+ dy: number,
22
+ tx = 0,
23
+ ty = 0
24
+ ) =>
25
+ Skia.RRectXY(
26
+ Skia.XYWHRect(
14
27
  box.rect.x - dx + tx,
15
28
  box.rect.y - dy + ty,
16
29
  box.rect.width + 2 * dx,
@@ -20,8 +33,14 @@ const inflate = (box: SkRRect, dx: number, dy: number, tx = 0, ty = 0) =>
20
33
  box.ry + dy
21
34
  );
22
35
 
23
- const deflate = (box: SkRRect, dx: number, dy: number, tx = 0, ty = 0) =>
24
- inflate(box, -dx, -dy, tx, ty);
36
+ const deflate = (
37
+ Skia: Skia,
38
+ box: SkRRect,
39
+ dx: number,
40
+ dy: number,
41
+ tx = 0,
42
+ ty = 0
43
+ ) => inflate(Skia, box, -dx, -dy, tx, ty);
25
44
 
26
45
  interface BoxShadowProps {
27
46
  dx?: number;
@@ -52,19 +71,19 @@ interface BoxProps extends CustomPaintProps {
52
71
  }
53
72
 
54
73
  const onDraw = createDrawing<BoxProps>((ctx, { box: defaultBox }, node) => {
55
- const box = isRRect(defaultBox) ? defaultBox : rrect(defaultBox, 0, 0);
56
- const { canvas, paint, opacity } = ctx;
74
+ const { canvas, paint, opacity, Skia } = ctx;
75
+ const box = isRRect(defaultBox) ? defaultBox : Skia.RRectXY(defaultBox, 0, 0);
57
76
  const shadows = node.visit(ctx).filter<BoxShadowDecl>(isBoxShadow);
58
77
  shadows
59
78
  .filter((shadow) => !shadow.inner)
60
79
  .map((shadow) => {
61
80
  const { color = "black", blur, spread = 0, dx = 0, dy = 0 } = shadow;
62
81
  const lPaint = Skia.Paint();
63
- lPaint.setColor(processColor(color, opacity));
82
+ lPaint.setColor(processColor(Skia, color, opacity));
64
83
  lPaint.setMaskFilter(
65
84
  Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)
66
85
  );
67
- canvas.drawRRect(inflate(box, spread, spread, dx, dy), lPaint);
86
+ canvas.drawRRect(inflate(Skia, box, spread, spread, dx, dy), lPaint);
68
87
  });
69
88
  canvas.drawRRect(box, paint);
70
89
 
@@ -72,16 +91,16 @@ const onDraw = createDrawing<BoxProps>((ctx, { box: defaultBox }, node) => {
72
91
  .filter((shadow) => shadow.inner)
73
92
  .map((shadow) => {
74
93
  const { color = "black", blur, spread = 0, dx = 0, dy = 0 } = shadow;
75
- const delta = add(vec(10, 10), vec(Math.abs(dx), Math.abs(dy)));
94
+ const delta = Skia.Point(10 + Math.abs(dx), 10 + Math.abs(dy));
76
95
  canvas.save();
77
96
  canvas.clipRRect(box, ClipOp.Intersect, false);
78
97
  const lPaint = Skia.Paint();
79
- lPaint.setColor(processColor(color, opacity));
98
+ lPaint.setColor(processColor(Skia, color, opacity));
80
99
  lPaint.setMaskFilter(
81
100
  Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)
82
101
  );
83
- const inner = deflate(box, spread, spread, dx, dy);
84
- const outer = inflate(box, delta.x, delta.y);
102
+ const inner = deflate(Skia, box, spread, spread, dx, dy);
103
+ const outer = inflate(Skia, box, delta.x, delta.y);
85
104
  canvas.drawDRRect(outer, inner, lPaint);
86
105
  canvas.restore();
87
106
  });
@@ -6,13 +6,12 @@ import type {
6
6
  CircleDef,
7
7
  } from "../../processors";
8
8
  import { createDrawing } from "../../nodes/Drawing";
9
- import { vec } from "../../processors/math/Vector";
10
9
  import { processCircle } from "../../processors";
11
10
 
12
11
  export type CircleProps = CircleDef & CustomPaintProps;
13
12
 
14
- const onDraw = createDrawing<CircleProps>(({ canvas, paint }, def) => {
15
- const { c, r } = processCircle(def);
13
+ const onDraw = createDrawing<CircleProps>(({ canvas, paint, Skia }, def) => {
14
+ const { c, r } = processCircle(Skia, def);
16
15
  canvas.drawCircle(c.x, c.y, r, paint);
17
16
  });
18
17
 
@@ -21,5 +20,5 @@ export const Circle = (props: AnimatedProps<CircleProps>) => {
21
20
  };
22
21
 
23
22
  Circle.defaultProps = {
24
- c: vec(0, 0),
23
+ c: { x: 0, y: 0 },
25
24
  };
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
 
3
3
  import type { CustomPaintProps } from "../../processors";
4
- import type { SkRRect } from "../../../skia";
4
+ import type { SkRRect } from "../../../skia/types";
5
5
  import type { AnimatedProps } from "../../processors/Animations/Animations";
6
6
  import { createDrawing } from "../../nodes/Drawing";
7
7
 
@@ -3,7 +3,7 @@ import React, { useMemo } from "react";
3
3
 
4
4
  import type { Fit } from "../image";
5
5
  import { rect2rect, fitRects } from "../image";
6
- import type { SkRect } from "../../../skia";
6
+ import type { SkRect } from "../../../skia/types";
7
7
  import { Group } from "../Group";
8
8
 
9
9
  interface FitProps {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
2
 
3
- import type { CustomPaintProps, Vector, AnimatedProps } from "../../processors";
3
+ import type { CustomPaintProps, AnimatedProps } from "../../processors";
4
4
  import { createDrawing } from "../../nodes/Drawing";
5
+ import type { Vector } from "../../../skia/types";
5
6
 
6
7
  export interface LineProps extends CustomPaintProps {
7
8
  p1: Vector;
@@ -10,10 +10,12 @@ import { createDrawing } from "../../nodes";
10
10
 
11
11
  export type OvalProps = RectDef & CustomPaintProps;
12
12
 
13
- const onDraw = createDrawing<OvalProps>(({ canvas, paint }, rectProps) => {
14
- const rect = processRect(rectProps);
15
- canvas.drawOval(rect, paint);
16
- });
13
+ const onDraw = createDrawing<OvalProps>(
14
+ ({ canvas, paint, Skia }, rectProps) => {
15
+ const rect = processRect(Skia, rectProps);
16
+ canvas.drawOval(rect, paint);
17
+ }
18
+ );
17
19
 
18
20
  export const Oval = (props: AnimatedProps<OvalProps>) => {
19
21
  return <skDrawing onDraw={onDraw} {...props} />;
@@ -1,15 +1,11 @@
1
1
  import React from "react";
2
2
 
3
- import type {
4
- CustomPaintProps,
5
- SkEnum,
6
- Vector,
7
- AnimatedProps,
8
- } from "../../processors";
3
+ import type { CustomPaintProps, SkEnum, AnimatedProps } from "../../processors";
9
4
  import { enumKey } from "../../processors";
10
- import type { SkPoint, Color } from "../../../skia";
11
- import { BlendMode, processColor } from "../../../skia";
5
+ import type { SkPoint, Color, Vector } from "../../../skia/types";
6
+ import { BlendMode } from "../../../skia/types";
12
7
  import { createDrawing } from "../../nodes";
8
+ import { processColor } from "../../processors/Color";
13
9
 
14
10
  export interface CubicBezierHandle {
15
11
  pos: Vector;
@@ -30,7 +26,7 @@ export interface PatchProps extends CustomPaintProps {
30
26
  }
31
27
 
32
28
  const onDraw = createDrawing<PatchProps>(
33
- ({ canvas, paint, opacity }, { colors, patch, texture, blendMode }) => {
29
+ ({ canvas, paint, opacity, Skia }, { colors, patch, texture, blendMode }) => {
34
30
  // If the colors are provided, the default blendMode is set to dstOver, if not, the default is set to srcOver
35
31
  const defaultBlendMode = colors ? BlendMode.DstOver : BlendMode.SrcOver;
36
32
  const mode = blendMode ? BlendMode[enumKey(blendMode)] : defaultBlendMode;
@@ -54,7 +50,7 @@ const onDraw = createDrawing<PatchProps>(
54
50
  patch[3].c2,
55
51
  patch[0].c1,
56
52
  ],
57
- colors ? colors.map((c) => processColor(c, opacity)) : undefined,
53
+ colors ? colors.map((c) => processColor(Skia, c, opacity)) : undefined,
58
54
  texture,
59
55
  mode,
60
56
  paint
@@ -8,7 +8,7 @@ import type {
8
8
  } from "../../processors";
9
9
  import { createDrawing } from "../../nodes";
10
10
  import { processPath, enumKey } from "../../processors";
11
- import { FillType } from "../../../skia";
11
+ import { FillType } from "../../../skia/types";
12
12
 
13
13
  interface StrokeOpts {
14
14
  width?: number;
@@ -25,14 +25,14 @@ export interface PathProps extends CustomPaintProps {
25
25
  }
26
26
 
27
27
  const onDraw = createDrawing<PathProps>(
28
- ({ canvas, paint }, { start, end, stroke, fillType, ...pathProps }) => {
28
+ ({ canvas, paint, Skia }, { start, end, stroke, fillType, ...pathProps }) => {
29
29
  const hasStartOffset = start !== 0;
30
30
  const hasEndOffset = end !== 1;
31
31
  const hasStrokeOptions = stroke !== undefined;
32
32
  const hasFillType = !!fillType;
33
33
  const willMutatePath =
34
34
  hasStartOffset || hasEndOffset || hasStrokeOptions || hasFillType;
35
- const pristinePath = processPath(pathProps.path);
35
+ const pristinePath = processPath(Skia, pathProps.path);
36
36
  const path = willMutatePath ? pristinePath.copy() : pristinePath;
37
37
  if (hasFillType) {
38
38
  path.setFillType(FillType[enumKey(fillType)]);
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
 
3
3
  import type { CustomPaintProps, SkEnum } from "../../processors";
4
- import type { SkPoint } from "../../../skia";
5
- import { PointMode } from "../../../skia";
4
+ import type { SkPoint } from "../../../skia/types";
5
+ import { PointMode } from "../../../skia/types";
6
6
  import { enumKey } from "../../processors/Paint";
7
7
  import type { AnimatedProps } from "../../processors/Animations/Animations";
8
8
  import { createDrawing } from "../../nodes/Drawing";
@@ -10,10 +10,12 @@ import { processRect } from "../../processors";
10
10
 
11
11
  export type RectProps = RectDef & CustomPaintProps;
12
12
 
13
- const onDraw = createDrawing<RectProps>(({ canvas, paint }, rectProps) => {
14
- const rect = processRect(rectProps);
15
- canvas.drawRect(rect, paint);
16
- });
13
+ const onDraw = createDrawing<RectProps>(
14
+ ({ canvas, paint, Skia }, rectProps) => {
15
+ const rect = processRect(Skia, rectProps);
16
+ canvas.drawRect(rect, paint);
17
+ }
18
+ );
17
19
 
18
20
  export const Rect = (props: AnimatedProps<RectProps>) => {
19
21
  return <skDrawing onDraw={onDraw} {...props} />;
@@ -11,8 +11,8 @@ import { processRRect } from "../../processors";
11
11
  export type RoundedRectProps = RRectDef & CustomPaintProps;
12
12
 
13
13
  const onDraw = createDrawing<RoundedRectProps>(
14
- ({ canvas, paint }, rectProps) => {
15
- const rrect = processRRect(rectProps);
14
+ ({ canvas, paint, Skia }, rectProps) => {
15
+ const rrect = processRRect(Skia, rectProps);
16
16
  canvas.drawRRect(rrect, paint);
17
17
  }
18
18
  );
@@ -2,9 +2,10 @@ import React from "react";
2
2
 
3
3
  import type { CustomPaintProps, SkEnum, AnimatedProps } from "../../processors";
4
4
  import { enumKey } from "../../processors";
5
- import type { SkPoint } from "../../../skia";
6
- import { BlendMode, VertexMode, Skia, processColor } from "../../../skia";
5
+ import type { SkPoint } from "../../../skia/types";
6
+ import { BlendMode, VertexMode } from "../../../skia/types";
7
7
  import { createDrawing } from "../../nodes";
8
+ import { processColor } from "../../processors/Color";
8
9
 
9
10
  export interface VerticesProps extends CustomPaintProps {
10
11
  colors?: string[];
@@ -17,7 +18,7 @@ export interface VerticesProps extends CustomPaintProps {
17
18
 
18
19
  const onDraw = createDrawing<VerticesProps>(
19
20
  (
20
- { canvas, paint, opacity },
21
+ { canvas, paint, opacity, Skia },
21
22
  { colors, vertices, textures, blendMode, mode, indices }
22
23
  ) => {
23
24
  // If the colors are provided, the default blendMode is set to dstOver, if not, the default is set to srcOver
@@ -28,7 +29,7 @@ const onDraw = createDrawing<VerticesProps>(
28
29
  vertexMode,
29
30
  vertices,
30
31
  textures,
31
- colors ? colors.map((c) => processColor(c, opacity)) : undefined,
32
+ colors ? colors.map((c) => processColor(Skia, c, opacity)) : undefined,
32
33
  indices
33
34
  );
34
35
  canvas.drawVertices(vert, blend, paint);
@@ -2,7 +2,7 @@ import React from "react";
2
2
 
3
3
  import type { CustomPaintProps, AnimatedProps } from "../../processors";
4
4
  import { createDrawing } from "../../nodes/Drawing";
5
- import type { SkPoint } from "../../../skia";
5
+ import type { SkPoint } from "../../../skia/types";
6
6
  import type { FontDef } from "../../processors/Font";
7
7
  import { processFont } from "../../processors/Font";
8
8
 
@@ -24,8 +24,11 @@ interface ProcessedGlyphs {
24
24
  }
25
25
 
26
26
  const onDraw = createDrawing<GlyphsProps>(
27
- ({ canvas, paint, fontMgr }, { glyphs: rawGlyphs, x, y, ...fontDef }) => {
28
- const font = processFont(fontMgr, fontDef);
27
+ (
28
+ { canvas, paint, fontMgr, Skia },
29
+ { glyphs: rawGlyphs, x, y, ...fontDef }
30
+ ) => {
31
+ const font = processFont(Skia, fontMgr, fontDef);
29
32
  const { glyphs, positions } = rawGlyphs.reduce<ProcessedGlyphs>(
30
33
  (acc, glyph) => {
31
34
  const { id, pos } = glyph;
@@ -16,8 +16,8 @@ type TextProps = CustomPaintProps &
16
16
  };
17
17
 
18
18
  const onDraw = createDrawing<TextProps>(
19
- ({ canvas, paint, fontMgr }, { text, x, y, ...fontDef }) => {
20
- const font = processFont(fontMgr, fontDef);
19
+ ({ canvas, paint, fontMgr, Skia }, { text, x, y, ...fontDef }) => {
20
+ const font = processFont(Skia, fontMgr, fontDef);
21
21
  canvas.drawText(text, x, y, paint, font);
22
22
  }
23
23
  );
@@ -2,7 +2,7 @@ import React from "react";
2
2
 
3
3
  import type { CustomPaintProps, AnimatedProps } from "../../processors";
4
4
  import { createDrawing } from "../../nodes/Drawing";
5
- import type { SkTextBlob } from "../../../skia";
5
+ import type { SkTextBlob } from "../../../skia/types";
6
6
 
7
7
  export interface TextBlobProps extends CustomPaintProps {
8
8
  blob: SkTextBlob;
@@ -2,8 +2,7 @@ import React from "react";
2
2
 
3
3
  import type { CustomPaintProps, AnimatedProps } from "../../processors";
4
4
  import { createDrawing } from "../../nodes";
5
- import type { SkPath, SkRSXform } from "../../../skia";
6
- import { Skia } from "../../../skia/Skia";
5
+ import type { SkPath, SkRSXform } from "../../../skia/types";
7
6
  import type { FontDef } from "../../processors/Font";
8
7
  import { processFont } from "../../processors/Font";
9
8
 
@@ -16,7 +15,7 @@ export type TextPathProps = CustomPaintProps &
16
15
 
17
16
  const onDraw = createDrawing<TextPathProps>(
18
17
  (
19
- { canvas, paint, fontMgr },
18
+ { canvas, paint, fontMgr, Skia },
20
19
  { text, initialOffset, path: pathDef, ...fontDef }
21
20
  ) => {
22
21
  const path =
@@ -26,7 +25,7 @@ const onDraw = createDrawing<TextPathProps>(
26
25
  if (path === null) {
27
26
  throw new Error("Invalid path: " + pathDef);
28
27
  }
29
- const font = processFont(fontMgr, fontDef);
28
+ const font = processFont(Skia, fontMgr, fontDef);
30
29
  const ids = font.getGlyphIDs(text);
31
30
  const widths = font.getGlyphWidths(ids, paint);
32
31
  const rsx: SkRSXform[] = [];
@@ -1,5 +1,5 @@
1
- export * from "./Canvas";
2
1
  export * from "./components";
3
2
  export * from "./nodes";
4
3
  export * from "./useContextBridge";
5
4
  export * from "./DependencyManager";
5
+ export * from "./useCanvas";
@@ -5,7 +5,7 @@ import type { DrawingContext } from "../DrawingContext";
5
5
  import type { AnimatedProps } from "../processors";
6
6
  import { isAnimated, materialize } from "../processors";
7
7
  import type { DependencyManager } from "../DependencyManager";
8
- import type { SkJSIInstance } from "../../skia";
8
+ import type { SkJSIInstance } from "../../skia/types";
9
9
 
10
10
  import { Node } from "./Node";
11
11
 
@@ -2,11 +2,11 @@ import type { DependencyList, ReactNode } from "react";
2
2
  import { useCallback } from "react";
3
3
 
4
4
  import type { DrawingContext } from "../DrawingContext";
5
- import { processPaint } from "../processors";
6
5
  import type { AnimatedProps } from "../processors/Animations/Animations";
7
6
  import { materialize } from "../processors/Animations/Animations";
8
- import { isPaint } from "../../skia";
7
+ import { isPaint } from "../../skia/types";
9
8
  import type { DependencyManager } from "../DependencyManager";
9
+ import { processPaint } from "../processors";
10
10
 
11
11
  import { Node } from "./Node";
12
12
 
@@ -53,6 +53,7 @@ export class DrawingNode<P> extends Node<P> {
53
53
  } else {
54
54
  const declarations = this.visit(ctx);
55
55
  const paint = processPaint(
56
+ ctx.Skia,
56
57
  ctx.paint.copy(),
57
58
  ctx.opacity,
58
59
  drawingProps,
@@ -1,4 +1,4 @@
1
- import type { SkJSIInstance } from "../../skia";
1
+ import type { SkJSIInstance } from "../../skia/types";
2
2
  import type { DependencyManager } from "../DependencyManager";
3
3
  import type { DrawingContext } from "../DrawingContext";
4
4
  import type { AnimatedProps } from "../processors";
@@ -1,9 +1,6 @@
1
1
  import type { SkiaValue } from "../../../values";
2
- import type { DrawingContext } from "../../DrawingContext";
3
2
  import { mapKeys } from "../../typeddash";
4
3
 
5
- export type FrameValue<T> = (ctx: DrawingContext) => T;
6
-
7
4
  export const isValue = (value: unknown): value is SkiaValue<unknown> => {
8
5
  if (value === undefined || value === null) {
9
6
  return false;
@@ -1,5 +1,4 @@
1
- import type { Vector } from "./math/Vector";
2
- import { vec } from "./math/Vector";
1
+ import type { Skia, Vector } from "../../skia/types";
3
2
 
4
3
  interface PointCircleDef {
5
4
  c: Vector;
@@ -18,9 +17,10 @@ const isCircleScalarDef = (def: CircleDef): def is ScalarCircleDef =>
18
17
  // We have an issue to check property existence on JSI backed instances
19
18
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
19
  (def as any).cx !== undefined;
21
- export const processCircle = (def: CircleDef) => {
20
+
21
+ export const processCircle = (Skia: Skia, def: CircleDef) => {
22
22
  if (isCircleScalarDef(def)) {
23
- return { c: vec(def.cx, def.cy), r: def.r };
23
+ return { c: Skia.Point(def.cx, def.cy), r: def.r };
24
24
  }
25
25
  return def;
26
26
  };
@@ -1,14 +1,19 @@
1
- import type { SkCanvas, ClipOp, SkRect, SkRRect } from "../../skia";
1
+ import { isRRect } from "../../skia/types";
2
+ import type { SkCanvas, ClipOp, SkRect, SkRRect, Skia } from "../../skia/types";
2
3
 
3
4
  import type { PathDef } from "./Paths";
4
5
  import { processPath, isPathDef } from "./Paths";
5
- import { isRRect } from "./Rects";
6
6
 
7
7
  export type ClipDef = SkRRect | SkRect | PathDef;
8
8
 
9
- export const processClip = (canvas: SkCanvas, def: ClipDef, op: ClipOp) => {
9
+ export const processClip = (
10
+ Skia: Skia,
11
+ canvas: SkCanvas,
12
+ def: ClipDef,
13
+ op: ClipOp
14
+ ) => {
10
15
  if (isPathDef(def)) {
11
- const path = processPath(def);
16
+ const path = processPath(Skia, def);
12
17
  canvas.clipPath(path, op, true);
13
18
  } else if (isRRect(def)) {
14
19
  canvas.clipRRect(def, op, true);
@@ -1,5 +1,4 @@
1
- import { Skia } from "../Skia";
2
- import type { Color } from "../types";
1
+ import type { Color, Skia } from "../../skia/types";
3
2
 
4
3
  export const RED = 0;
5
4
  export const GREEN = 1;
@@ -9,7 +8,7 @@ export const ALPHA = 3;
9
8
  export const rgbaColor = (r: number, g: number, b: number, a: number) =>
10
9
  new Float32Array([r, g, b, a]);
11
10
 
12
- export const processColor = (cl: Color, currentOpacity: number) => {
11
+ export const processColor = (Skia: Skia, cl: Color, currentOpacity: number) => {
13
12
  const color = Skia.Color(cl);
14
13
  color[ALPHA] *= currentOpacity;
15
14
  return color;
@@ -1,5 +1,4 @@
1
- import type { FontMgr, SkFont } from "../../skia";
2
- import { Skia } from "../../skia/Skia";
1
+ import type { SkFontMgr, SkFont, Skia } from "../../skia/types";
3
2
 
4
3
  export type FontDef = { font: SkFont } | { familyName: string; size: number };
5
4
 
@@ -8,11 +7,19 @@ export const isFont = (fontDef: FontDef): fontDef is { font: SkFont } =>
8
7
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
8
  (fontDef as any).font !== undefined;
10
9
 
11
- export const processFont = (fontMgr: FontMgr, fontDef: FontDef) => {
10
+ export const processFont = (
11
+ Skia: Skia,
12
+ fontMgr: SkFontMgr,
13
+ fontDef: FontDef
14
+ ) => {
12
15
  let selectedFont: SkFont;
13
16
  if (isFont(fontDef)) {
14
17
  selectedFont = fontDef.font;
15
18
  } else {
19
+ console.warn(
20
+ // eslint-disable-next-line max-len
21
+ "Using system fonts is deprecated. Please use the font property instead: https://shopify.github.io/react-native-skia/docs/text/fonts"
22
+ );
16
23
  const { familyName, size } = fontDef;
17
24
  const typeface = fontMgr.matchFamilyStyle(familyName);
18
25
  if (typeface === null) {
@@ -5,16 +5,16 @@ import {
5
5
  PaintStyle,
6
6
  StrokeJoin,
7
7
  StrokeCap,
8
- processColor,
9
8
  isShader,
10
9
  isMaskFilter,
11
10
  isColorFilter,
12
11
  isPathEffect,
13
12
  isImageFilter,
14
- Skia,
15
- } from "../../skia";
16
- import type { SkPaint, Color, SkImageFilter } from "../../skia";
13
+ } from "../../skia/types";
14
+ import type { SkPaint, Color, SkImageFilter, Skia } from "../../skia/types";
17
15
  import type { DeclarationResult } from "../nodes";
16
+
17
+ import { processColor } from "./Color";
18
18
  export type SkEnum<T> = Uncapitalize<keyof T extends string ? keyof T : never>;
19
19
 
20
20
  export interface ChildrenProps {
@@ -39,6 +39,7 @@ export const enumKey = <K extends string>(k: K) =>
39
39
  (k.charAt(0).toUpperCase() + k.slice(1)) as Capitalize<K>;
40
40
 
41
41
  export const processPaint = (
42
+ Skia: Skia,
42
43
  paint: SkPaint,
43
44
  currentOpacity: number,
44
45
  {
@@ -59,11 +60,11 @@ export const processPaint = (
59
60
  return paintRef.current;
60
61
  }
61
62
  if (color !== undefined) {
62
- const c = processColor(color, currentOpacity);
63
+ const c = processColor(Skia, color, currentOpacity);
63
64
  paint.setShader(null);
64
65
  paint.setColor(c);
65
66
  } else {
66
- const c = processColor(paint.getColor(), currentOpacity);
67
+ const c = processColor(Skia, paint.getColor(), currentOpacity);
67
68
  paint.setColor(c);
68
69
  }
69
70
  if (blendMode !== undefined) {
@@ -106,7 +107,11 @@ export const processPaint = (
106
107
  paint.setImageFilter(
107
108
  filters
108
109
  .reverse()
109
- .reduce<SkImageFilter | null>(Skia.ImageFilter.MakeCompose, null)
110
+ .reduce<SkImageFilter | null>(
111
+ (...args: Parameters<typeof Skia.ImageFilter.MakeCompose>) =>
112
+ Skia.ImageFilter.MakeCompose(...args),
113
+ null
114
+ )
110
115
  );
111
116
  }
112
117
  return paint;
@@ -1,9 +1,9 @@
1
- import type { SkPath } from "../../skia";
2
- import { Skia, isPath } from "../../skia";
1
+ import type { SkPath, Skia } from "../../skia/types";
2
+ import { isPath } from "../../skia/types";
3
3
 
4
4
  export type PathDef = string | SkPath;
5
5
 
6
- export const processPath = (rawPath: PathDef) => {
6
+ export const processPath = (Skia: Skia, rawPath: PathDef) => {
7
7
  const path =
8
8
  typeof rawPath === "string"
9
9
  ? Skia.Path.MakeFromSVGString(rawPath)