@shopify/react-native-skia 0.1.126 → 0.1.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (786) hide show
  1. package/lib/commonjs/animation/decay/runDecay.js.map +1 -1
  2. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  3. package/lib/commonjs/animation/spring/runSpring.js.map +1 -1
  4. package/lib/commonjs/animation/spring/useSpring.js.map +1 -1
  5. package/lib/commonjs/animation/timing/createTiming.js.map +1 -1
  6. package/lib/commonjs/animation/timing/runTiming.js.map +1 -1
  7. package/lib/commonjs/animation/timing/useTiming.js.map +1 -1
  8. package/lib/commonjs/index.js.map +1 -1
  9. package/lib/commonjs/renderer/Canvas.js +1 -3
  10. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  11. package/lib/commonjs/renderer/DependencyManager.js.map +1 -1
  12. package/lib/commonjs/renderer/components/Blend.js +1 -3
  13. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  14. package/lib/commonjs/renderer/components/Compose.js +2 -6
  15. package/lib/commonjs/renderer/components/Compose.js.map +1 -1
  16. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +1 -3
  17. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  18. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +2 -4
  19. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  20. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  21. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  22. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +1 -3
  23. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  24. package/lib/commonjs/renderer/components/maskFilters/Blur.js +1 -3
  25. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  26. package/lib/commonjs/renderer/components/pathEffects/Corner.js +1 -3
  27. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  28. package/lib/commonjs/renderer/components/pathEffects/Dash.js +1 -3
  29. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  30. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +1 -3
  31. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  32. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +1 -3
  33. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  34. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +2 -4
  35. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  36. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +1 -3
  37. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  38. package/lib/commonjs/renderer/components/pathEffects/Sum.js +1 -3
  39. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  40. package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -1
  41. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  42. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  43. package/lib/commonjs/renderer/components/shapes/Patch.js +1 -3
  44. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  45. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  46. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  47. package/lib/commonjs/renderer/index.js +13 -0
  48. package/lib/commonjs/renderer/index.js.map +1 -1
  49. package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -1
  50. package/lib/commonjs/renderer/nodes/Node.js.map +1 -1
  51. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  52. package/lib/commonjs/renderer/processors/Clips.js.map +1 -1
  53. package/lib/commonjs/renderer/processors/Font.js.map +1 -1
  54. package/lib/commonjs/renderer/processors/Rects.js +5 -1
  55. package/lib/commonjs/renderer/processors/Rects.js.map +1 -1
  56. package/lib/commonjs/renderer/processors/Transform.js.map +1 -1
  57. package/lib/commonjs/renderer/processors/math/Matrix3.js +2 -2
  58. package/lib/commonjs/renderer/processors/math/Matrix3.js.map +1 -1
  59. package/lib/commonjs/skia/Skia.js +2 -36
  60. package/lib/commonjs/skia/Skia.js.map +1 -1
  61. package/lib/commonjs/skia/{Color.js → core/Color.js} +1 -1
  62. package/lib/commonjs/skia/core/Color.js.map +1 -0
  63. package/lib/commonjs/skia/{Data → core}/Data.js +29 -8
  64. package/lib/commonjs/skia/core/Data.js.map +1 -0
  65. package/lib/commonjs/skia/{Font/useFont.js → core/Font.js} +4 -4
  66. package/lib/commonjs/skia/core/Font.js.map +1 -0
  67. package/lib/commonjs/skia/{Image/useImage.js → core/Image.js} +4 -4
  68. package/lib/commonjs/skia/core/Image.js.map +1 -0
  69. package/lib/commonjs/skia/{Paint/usePaint.js → core/Paint.js} +14 -4
  70. package/lib/commonjs/skia/core/Paint.js.map +1 -0
  71. package/lib/commonjs/skia/{Path/usePath.js → core/Path.js} +1 -1
  72. package/lib/commonjs/skia/core/Path.js.map +1 -0
  73. package/lib/commonjs/skia/{Picture/usePicture.js → core/Picture.js} +1 -1
  74. package/lib/commonjs/skia/core/Picture.js.map +1 -0
  75. package/lib/commonjs/skia/core/SVG.js +15 -0
  76. package/lib/commonjs/skia/core/SVG.js.map +1 -0
  77. package/lib/commonjs/skia/{Shader/useShader.js → core/Shader.js} +1 -1
  78. package/lib/commonjs/skia/core/Shader.js.map +1 -0
  79. package/lib/commonjs/skia/{Typeface/useTypeface.js → core/Typeface.js} +3 -3
  80. package/lib/commonjs/skia/core/Typeface.js.map +1 -0
  81. package/lib/commonjs/skia/core/index.js +136 -0
  82. package/lib/commonjs/skia/core/index.js.map +1 -0
  83. package/lib/commonjs/skia/index.js +8 -302
  84. package/lib/commonjs/skia/index.js.map +1 -1
  85. package/lib/commonjs/skia/{Canvas.js → types/Canvas.js} +0 -0
  86. package/lib/commonjs/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
  87. package/lib/commonjs/skia/types/Color.js +2 -0
  88. package/lib/commonjs/skia/{ColorFilter/ColorFilterFactory.js.map → types/Color.js.map} +0 -0
  89. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
  90. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
  91. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
  92. package/lib/{module/skia → commonjs/skia/types}/ColorFilter/ColorFilterFactory.js.map +0 -0
  93. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
  94. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
  95. package/lib/commonjs/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
  96. package/lib/commonjs/skia/{ContourMeasure.js.map → types/ContourMeasure.js.map} +0 -0
  97. package/lib/commonjs/skia/types/Data/Data.js +6 -0
  98. package/lib/commonjs/skia/{Data/DataFactory.js.map → types/Data/Data.js.map} +0 -0
  99. package/lib/commonjs/skia/{Data → types/Data}/DataFactory.js +0 -0
  100. package/lib/{module/skia → commonjs/skia/types}/Data/DataFactory.js.map +0 -0
  101. package/lib/commonjs/skia/{Data → types/Data}/index.js +0 -0
  102. package/lib/commonjs/skia/{Data → types/Data}/index.js.map +0 -0
  103. package/lib/commonjs/skia/{Font → types/Font}/Font.js +0 -0
  104. package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
  105. package/lib/commonjs/skia/{Font → types/Font}/index.js +0 -13
  106. package/lib/commonjs/skia/{FontMgr → types/Font}/index.js.map +1 -1
  107. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
  108. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js.map +0 -0
  109. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
  110. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js.map +0 -0
  111. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/index.js +13 -0
  112. package/lib/commonjs/skia/types/FontMgr/index.js.map +1 -0
  113. package/lib/commonjs/skia/{Image → types/Image}/Image.js +0 -0
  114. package/lib/commonjs/skia/{Image → types/Image}/Image.js.map +1 -1
  115. package/lib/commonjs/skia/{Image → types/Image}/ImageFactory.js +0 -0
  116. package/lib/commonjs/skia/{Image → types/Image}/ImageFactory.js.map +0 -0
  117. package/lib/commonjs/skia/{Image → types/Image}/index.js +0 -13
  118. package/lib/commonjs/skia/types/Image/index.js.map +1 -0
  119. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
  120. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
  121. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
  122. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  123. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
  124. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
  125. package/lib/commonjs/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
  126. package/lib/commonjs/skia/{JsiInstance.js.map → types/JsiInstance.js.map} +0 -0
  127. package/lib/commonjs/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
  128. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
  129. package/lib/commonjs/skia/{Matrix.js → types/Matrix.js} +0 -0
  130. package/lib/commonjs/skia/{Matrix.js.map → types/Matrix.js.map} +0 -0
  131. package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js +0 -0
  132. package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
  133. package/lib/commonjs/skia/{Paint → types/Paint}/Paint.js +1 -13
  134. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
  135. package/lib/commonjs/skia/{Paint → types/Paint}/index.js +0 -13
  136. package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
  137. package/lib/commonjs/skia/{Path → types/Path}/Path.js +0 -0
  138. package/lib/commonjs/skia/{Path → types/Path}/Path.js.map +0 -0
  139. package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js +0 -0
  140. package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js.map +0 -0
  141. package/lib/commonjs/skia/{Path → types/Path}/index.js +0 -13
  142. package/lib/commonjs/skia/types/Path/index.js.map +1 -0
  143. package/lib/commonjs/skia/{PathEffect.js → types/PathEffect.js} +0 -0
  144. package/lib/commonjs/skia/types/PathEffect.js.map +1 -0
  145. package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js +0 -0
  146. package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js.map +0 -0
  147. package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
  148. package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js.map +0 -0
  149. package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
  150. package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js.map +0 -0
  151. package/lib/commonjs/skia/{Picture → types/Picture}/index.js +0 -13
  152. package/lib/commonjs/skia/{Paint → types/Picture}/index.js.map +1 -1
  153. package/lib/commonjs/skia/{Point.js → types/Point.js} +0 -0
  154. package/lib/commonjs/skia/{Point.js.map → types/Point.js.map} +0 -0
  155. package/lib/commonjs/skia/{RRect.js → types/RRect.js} +0 -0
  156. package/lib/commonjs/skia/{RRect.js.map → types/RRect.js.map} +0 -0
  157. package/lib/commonjs/skia/{RSXform.js → types/RSXform.js} +0 -0
  158. package/lib/commonjs/skia/{RSXform.js.map → types/RSXform.js.map} +0 -0
  159. package/lib/commonjs/skia/{Rect.js → types/Rect.js} +0 -0
  160. package/lib/commonjs/skia/{Rect.js.map → types/Rect.js.map} +0 -0
  161. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
  162. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js.map +0 -0
  163. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
  164. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js.map +0 -0
  165. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
  166. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
  167. package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js +0 -0
  168. package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js.map +0 -0
  169. package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
  170. package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js.map +0 -0
  171. package/lib/commonjs/skia/{SVG → types/SVG}/index.js +0 -13
  172. package/lib/commonjs/skia/{Font → types/SVG}/index.js.map +1 -1
  173. package/lib/commonjs/skia/{Shader → types/Shader}/Shader.js +0 -0
  174. package/lib/commonjs/skia/{Shader → types/Shader}/Shader.js.map +0 -0
  175. package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
  176. package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js.map +0 -0
  177. package/lib/commonjs/skia/{Shader → types/Shader}/index.js +0 -13
  178. package/lib/commonjs/skia/types/Shader/index.js.map +1 -0
  179. package/lib/commonjs/skia/types/Skia.js +6 -0
  180. package/lib/commonjs/skia/{Surface/Surface.js.map → types/Skia.js.map} +0 -0
  181. package/lib/commonjs/skia/{Surface → types/Surface}/Surface.js +0 -0
  182. package/lib/{module/skia → commonjs/skia/types}/Surface/Surface.js.map +0 -0
  183. package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
  184. package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js.map +0 -0
  185. package/lib/commonjs/skia/{Surface → types/Surface}/index.js +0 -0
  186. package/lib/commonjs/skia/{Surface → types/Surface}/index.js.map +0 -0
  187. package/lib/commonjs/skia/{TextBlob.js → types/TextBlob.js} +0 -0
  188. package/lib/commonjs/skia/{TextBlob.js.map → types/TextBlob.js.map} +0 -0
  189. package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
  190. package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js.map +0 -0
  191. package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
  192. package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js.map +0 -0
  193. package/lib/commonjs/skia/{Typeface → types/Typeface}/index.js +0 -13
  194. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
  195. package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
  196. package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
  197. package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js +0 -0
  198. package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js.map +0 -0
  199. package/lib/commonjs/skia/types/index.js +370 -0
  200. package/lib/commonjs/skia/types/index.js.map +1 -0
  201. package/lib/commonjs/skia/web/api/Host.js +66 -0
  202. package/lib/commonjs/skia/web/api/Host.js.map +1 -0
  203. package/lib/commonjs/skia/web/api/JsiSkCanvas.js +170 -0
  204. package/lib/commonjs/skia/web/api/JsiSkCanvas.js.map +1 -0
  205. package/lib/commonjs/skia/web/api/JsiSkColor.js +180 -0
  206. package/lib/commonjs/skia/web/api/JsiSkColor.js.map +1 -0
  207. package/lib/commonjs/skia/web/api/JsiSkColorFilter.js +18 -0
  208. package/lib/commonjs/skia/web/api/JsiSkColorFilter.js.map +1 -0
  209. package/lib/commonjs/skia/web/api/JsiSkImage.js +56 -0
  210. package/lib/commonjs/skia/web/api/JsiSkImage.js.map +1 -0
  211. package/lib/commonjs/skia/web/api/JsiSkPaint.js +106 -0
  212. package/lib/commonjs/skia/web/api/JsiSkPaint.js.map +1 -0
  213. package/lib/commonjs/skia/web/api/JsiSkRect.js +34 -0
  214. package/lib/commonjs/skia/web/api/JsiSkRect.js.map +1 -0
  215. package/lib/commonjs/skia/web/api/JsiSkSurface.js +31 -0
  216. package/lib/commonjs/skia/web/api/JsiSkSurface.js.map +1 -0
  217. package/lib/commonjs/skia/web/api/JsiSkSurfaceFactory.js +30 -0
  218. package/lib/commonjs/skia/web/api/JsiSkSurfaceFactory.js.map +1 -0
  219. package/lib/commonjs/skia/web/api/index.js +26 -0
  220. package/lib/commonjs/skia/web/api/index.js.map +1 -0
  221. package/lib/commonjs/skia/web/index.js +19 -0
  222. package/lib/commonjs/skia/web/index.js.map +1 -0
  223. package/lib/commonjs/values/hooks/useValue.js.map +1 -1
  224. package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -1
  225. package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -1
  226. package/lib/commonjs/values/web/api.js.map +1 -1
  227. package/lib/commonjs/views/SkiaView.js.map +1 -1
  228. package/lib/commonjs/views/types.js.map +1 -1
  229. package/lib/module/animation/decay/runDecay.js.map +1 -1
  230. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  231. package/lib/module/animation/spring/runSpring.js.map +1 -1
  232. package/lib/module/animation/spring/useSpring.js.map +1 -1
  233. package/lib/module/animation/timing/createTiming.js.map +1 -1
  234. package/lib/module/animation/timing/runTiming.js.map +1 -1
  235. package/lib/module/animation/timing/useTiming.js.map +1 -1
  236. package/lib/module/index.js.map +1 -1
  237. package/lib/module/renderer/Canvas.js +1 -2
  238. package/lib/module/renderer/Canvas.js.map +1 -1
  239. package/lib/module/renderer/DependencyManager.js.map +1 -1
  240. package/lib/module/renderer/components/Blend.js +1 -2
  241. package/lib/module/renderer/components/Blend.js.map +1 -1
  242. package/lib/module/renderer/components/Compose.js +1 -3
  243. package/lib/module/renderer/components/Compose.js.map +1 -1
  244. package/lib/module/renderer/components/colorFilters/Lerp.js +1 -2
  245. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  246. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +1 -2
  247. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  248. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  249. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  250. package/lib/module/renderer/components/imageFilters/Shadow.js +1 -2
  251. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  252. package/lib/module/renderer/components/maskFilters/Blur.js +1 -2
  253. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  254. package/lib/module/renderer/components/pathEffects/Corner.js +1 -2
  255. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  256. package/lib/module/renderer/components/pathEffects/Dash.js +1 -2
  257. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  258. package/lib/module/renderer/components/pathEffects/Discrete.js +1 -2
  259. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  260. package/lib/module/renderer/components/pathEffects/Line2D.js +1 -2
  261. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  262. package/lib/module/renderer/components/pathEffects/Path1D.js +1 -2
  263. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  264. package/lib/module/renderer/components/pathEffects/Path2D.js +1 -2
  265. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  266. package/lib/module/renderer/components/pathEffects/Sum.js +1 -2
  267. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  268. package/lib/module/renderer/components/shaders/Gradient.js.map +1 -1
  269. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  270. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  271. package/lib/module/renderer/components/shapes/Patch.js +1 -2
  272. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  273. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  274. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  275. package/lib/module/renderer/index.js +1 -0
  276. package/lib/module/renderer/index.js.map +1 -1
  277. package/lib/module/renderer/nodes/Declaration.js.map +1 -1
  278. package/lib/module/renderer/nodes/Node.js.map +1 -1
  279. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  280. package/lib/module/renderer/processors/Clips.js.map +1 -1
  281. package/lib/module/renderer/processors/Font.js.map +1 -1
  282. package/lib/module/renderer/processors/Rects.js +1 -0
  283. package/lib/module/renderer/processors/Rects.js.map +1 -1
  284. package/lib/module/renderer/processors/Transform.js.map +1 -1
  285. package/lib/module/renderer/processors/math/Matrix3.js +2 -2
  286. package/lib/module/renderer/processors/math/Matrix3.js.map +1 -1
  287. package/lib/module/skia/Skia.js +2 -35
  288. package/lib/module/skia/Skia.js.map +1 -1
  289. package/lib/module/skia/{Color.js → core/Color.js} +1 -2
  290. package/lib/module/skia/core/Color.js.map +1 -0
  291. package/lib/module/skia/core/Data.js +56 -0
  292. package/lib/module/skia/core/Data.js.map +1 -0
  293. package/lib/module/skia/{Font/useFont.js → core/Font.js} +5 -5
  294. package/lib/module/skia/core/Font.js.map +1 -0
  295. package/lib/module/skia/core/Image.js +8 -0
  296. package/lib/module/skia/core/Image.js.map +1 -0
  297. package/lib/module/skia/{Paint/usePaint.js → core/Paint.js} +8 -3
  298. package/lib/module/skia/core/Paint.js.map +1 -0
  299. package/lib/module/skia/{Path/usePath.js → core/Path.js} +1 -1
  300. package/lib/module/skia/core/Path.js.map +1 -0
  301. package/lib/module/skia/{Picture/usePicture.js → core/Picture.js} +1 -1
  302. package/lib/module/skia/core/Picture.js.map +1 -0
  303. package/lib/module/skia/core/SVG.js +4 -0
  304. package/lib/module/skia/core/SVG.js.map +1 -0
  305. package/lib/module/skia/{Shader/useShader.js → core/Shader.js} +1 -1
  306. package/lib/module/skia/core/Shader.js.map +1 -0
  307. package/lib/module/skia/core/Typeface.js +8 -0
  308. package/lib/module/skia/core/Typeface.js.map +1 -0
  309. package/lib/module/skia/core/index.js +11 -0
  310. package/lib/module/skia/core/index.js.map +1 -0
  311. package/lib/module/skia/index.js +2 -23
  312. package/lib/module/skia/index.js.map +1 -1
  313. package/lib/module/skia/{Canvas.js → types/Canvas.js} +0 -0
  314. package/lib/module/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
  315. package/lib/module/skia/types/Color.js +2 -0
  316. package/lib/module/skia/{ContourMeasure.js.map → types/Color.js.map} +0 -0
  317. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
  318. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
  319. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
  320. package/lib/module/skia/{FontMgr/FontMgr.js.map → types/ColorFilter/ColorFilterFactory.js.map} +0 -0
  321. package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
  322. package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
  323. package/lib/module/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
  324. package/lib/module/skia/{FontMgr/FontMgrFactory.js.map → types/ContourMeasure.js.map} +0 -0
  325. package/lib/module/skia/types/Data/Data.js +2 -0
  326. package/lib/module/skia/{JsiInstance.js.map → types/Data/Data.js.map} +0 -0
  327. package/lib/module/skia/{Data → types/Data}/DataFactory.js +0 -0
  328. package/lib/module/skia/{Path/PathFactory.js.map → types/Data/DataFactory.js.map} +0 -0
  329. package/lib/module/skia/{Data → types/Data}/index.js +0 -0
  330. package/lib/module/skia/{Data → types/Data}/index.js.map +0 -0
  331. package/lib/module/skia/{Font → types/Font}/Font.js +0 -0
  332. package/lib/module/skia/types/Font/Font.js.map +1 -0
  333. package/lib/module/skia/types/Font/index.js +2 -0
  334. package/lib/module/skia/types/Font/index.js.map +1 -0
  335. package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
  336. package/lib/module/skia/{Picture/Picture.js.map → types/FontMgr/FontMgr.js.map} +0 -0
  337. package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
  338. package/lib/module/skia/{Picture/PictureFactory.js.map → types/FontMgr/FontMgrFactory.js.map} +0 -0
  339. package/lib/module/skia/types/FontMgr/index.js +3 -0
  340. package/lib/module/skia/types/FontMgr/index.js.map +1 -0
  341. package/lib/module/skia/{Image → types/Image}/Image.js +0 -0
  342. package/lib/module/skia/{Image → types/Image}/Image.js.map +1 -1
  343. package/lib/module/skia/{Image → types/Image}/ImageFactory.js +0 -0
  344. package/lib/module/skia/{Image → types/Image}/ImageFactory.js.map +0 -0
  345. package/lib/module/skia/types/Image/index.js +3 -0
  346. package/lib/module/skia/types/Image/index.js.map +1 -0
  347. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
  348. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
  349. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
  350. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  351. package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
  352. package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
  353. package/lib/module/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
  354. package/lib/module/skia/{Picture/PictureRecorder.js.map → types/JsiInstance.js.map} +0 -0
  355. package/lib/module/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
  356. package/lib/module/skia/types/MaskFilter.js.map +1 -0
  357. package/lib/module/skia/{Matrix.js → types/Matrix.js} +0 -0
  358. package/lib/module/skia/{Matrix.js.map → types/Matrix.js.map} +0 -0
  359. package/lib/module/skia/{Paint → types/Paint}/BlendMode.js +0 -0
  360. package/lib/module/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
  361. package/lib/module/skia/{Paint → types/Paint}/Paint.js +0 -6
  362. package/lib/module/skia/types/Paint/Paint.js.map +1 -0
  363. package/lib/module/skia/types/Paint/index.js +3 -0
  364. package/lib/module/skia/types/Paint/index.js.map +1 -0
  365. package/lib/module/skia/{Path → types/Path}/Path.js +0 -0
  366. package/lib/module/skia/{Path → types/Path}/Path.js.map +0 -0
  367. package/lib/module/skia/{Path → types/Path}/PathFactory.js +0 -0
  368. package/lib/module/skia/{RRect.js.map → types/Path/PathFactory.js.map} +0 -0
  369. package/lib/module/skia/types/Path/index.js +3 -0
  370. package/lib/module/skia/types/Path/index.js.map +1 -0
  371. package/lib/module/skia/{PathEffect.js → types/PathEffect.js} +0 -0
  372. package/lib/module/skia/types/PathEffect.js.map +1 -0
  373. package/lib/module/skia/{Picture → types/Picture}/Picture.js +0 -0
  374. package/lib/module/skia/{RSXform.js.map → types/Picture/Picture.js.map} +0 -0
  375. package/lib/module/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
  376. package/lib/module/skia/{Rect.js.map → types/Picture/PictureFactory.js.map} +0 -0
  377. package/lib/module/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
  378. package/lib/module/skia/{RuntimeEffect/RuntimeEffect.js.map → types/Picture/PictureRecorder.js.map} +0 -0
  379. package/lib/module/skia/{Picture → types/Picture}/index.js +0 -1
  380. package/lib/module/skia/types/Picture/index.js.map +1 -0
  381. package/lib/module/skia/{Point.js → types/Point.js} +0 -0
  382. package/lib/module/skia/{Point.js.map → types/Point.js.map} +0 -0
  383. package/lib/module/skia/{RRect.js → types/RRect.js} +0 -0
  384. package/lib/module/skia/{RuntimeEffect/RuntimeEffectFactory.js.map → types/RRect.js.map} +0 -0
  385. package/lib/module/skia/{RSXform.js → types/RSXform.js} +0 -0
  386. package/lib/module/skia/{SVG/SVG.js.map → types/RSXform.js.map} +0 -0
  387. package/lib/module/skia/{Rect.js → types/Rect.js} +0 -0
  388. package/lib/module/skia/{SVG/SVGFactory.js.map → types/Rect.js.map} +0 -0
  389. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
  390. package/lib/module/skia/{Shader/ShaderFactory.js.map → types/RuntimeEffect/RuntimeEffect.js.map} +0 -0
  391. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
  392. package/lib/module/skia/{Surface/SurfaceFactory.js.map → types/RuntimeEffect/RuntimeEffectFactory.js.map} +0 -0
  393. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
  394. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
  395. package/lib/module/skia/{SVG → types/SVG}/SVG.js +0 -0
  396. package/lib/module/skia/{TextBlob.js.map → types/SVG/SVG.js.map} +0 -0
  397. package/lib/module/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
  398. package/lib/module/skia/{Typeface/Typeface.js.map → types/SVG/SVGFactory.js.map} +0 -0
  399. package/lib/module/skia/types/SVG/index.js +3 -0
  400. package/lib/module/skia/types/SVG/index.js.map +1 -0
  401. package/lib/module/skia/{Shader → types/Shader}/Shader.js +0 -0
  402. package/lib/module/skia/{Shader → types/Shader}/Shader.js.map +0 -0
  403. package/lib/module/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
  404. package/lib/module/skia/{Typeface/TypefaceFactory.js.map → types/Shader/ShaderFactory.js.map} +0 -0
  405. package/lib/module/skia/types/Shader/index.js +3 -0
  406. package/lib/module/skia/types/Shader/index.js.map +1 -0
  407. package/lib/module/skia/types/Skia.js +2 -0
  408. package/lib/module/skia/types/Skia.js.map +1 -0
  409. package/lib/module/skia/{Surface → types/Surface}/Surface.js +0 -0
  410. package/lib/module/skia/types/Surface/Surface.js.map +1 -0
  411. package/lib/module/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
  412. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -0
  413. package/lib/module/skia/{Surface → types/Surface}/index.js +0 -0
  414. package/lib/module/skia/{Surface → types/Surface}/index.js.map +0 -0
  415. package/lib/module/skia/{TextBlob.js → types/TextBlob.js} +0 -0
  416. package/lib/module/skia/types/TextBlob.js.map +1 -0
  417. package/lib/module/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
  418. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -0
  419. package/lib/module/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
  420. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -0
  421. package/lib/module/skia/types/Typeface/index.js +3 -0
  422. package/lib/module/skia/types/Typeface/index.js.map +1 -0
  423. package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
  424. package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
  425. package/lib/module/skia/{Vertices → types/Vertices}/index.js +0 -0
  426. package/lib/module/skia/{Vertices → types/Vertices}/index.js.map +0 -0
  427. package/lib/module/skia/types/index.js +29 -0
  428. package/lib/module/skia/types/index.js.map +1 -0
  429. package/lib/module/skia/web/api/Host.js +36 -0
  430. package/lib/module/skia/web/api/Host.js.map +1 -0
  431. package/lib/module/skia/web/api/JsiSkCanvas.js +160 -0
  432. package/lib/module/skia/web/api/JsiSkCanvas.js.map +1 -0
  433. package/lib/module/skia/web/api/JsiSkColor.js +170 -0
  434. package/lib/module/skia/web/api/JsiSkColor.js.map +1 -0
  435. package/lib/module/skia/web/api/JsiSkColorFilter.js +8 -0
  436. package/lib/module/skia/web/api/JsiSkColorFilter.js.map +1 -0
  437. package/lib/module/skia/web/api/JsiSkImage.js +46 -0
  438. package/lib/module/skia/web/api/JsiSkImage.js.map +1 -0
  439. package/lib/module/skia/web/api/JsiSkPaint.js +96 -0
  440. package/lib/module/skia/web/api/JsiSkPaint.js.map +1 -0
  441. package/lib/module/skia/web/api/JsiSkRect.js +24 -0
  442. package/lib/module/skia/web/api/JsiSkRect.js.map +1 -0
  443. package/lib/module/skia/web/api/JsiSkSurface.js +19 -0
  444. package/lib/module/skia/web/api/JsiSkSurface.js.map +1 -0
  445. package/lib/module/skia/web/api/JsiSkSurfaceFactory.js +19 -0
  446. package/lib/module/skia/web/api/JsiSkSurfaceFactory.js.map +1 -0
  447. package/lib/module/skia/web/api/index.js +13 -0
  448. package/lib/module/skia/web/api/index.js.map +1 -0
  449. package/lib/module/skia/web/index.js +2 -0
  450. package/lib/module/skia/web/index.js.map +1 -0
  451. package/lib/module/values/hooks/useValue.js.map +1 -1
  452. package/lib/module/values/hooks/useValueEffect.js.map +1 -1
  453. package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -1
  454. package/lib/module/values/web/api.js.map +1 -1
  455. package/lib/module/views/SkiaView.js.map +1 -1
  456. package/lib/module/views/types.js.map +1 -1
  457. package/lib/typescript/src/animation/decay/runDecay.d.ts +2 -2
  458. package/lib/typescript/src/animation/spring/runSpring.d.ts +2 -2
  459. package/lib/typescript/src/animation/spring/useSpring.d.ts +2 -2
  460. package/lib/typescript/src/animation/timing/createTiming.d.ts +2 -2
  461. package/lib/typescript/src/animation/timing/runTiming.d.ts +2 -2
  462. package/lib/typescript/src/animation/timing/useLoop.d.ts +1 -1
  463. package/lib/typescript/src/animation/timing/useTiming.d.ts +2 -2
  464. package/lib/typescript/src/renderer/Canvas.d.ts +4 -4
  465. package/lib/typescript/src/renderer/DependencyManager.d.ts +2 -2
  466. package/lib/typescript/src/renderer/DrawingContext.d.ts +1 -2
  467. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +1 -1
  468. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +1 -1
  469. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +1 -2
  470. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +1 -1
  471. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +1 -1
  472. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +1 -1
  473. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +1 -1
  474. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +1 -1
  475. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +1 -1
  476. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +1 -1
  477. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +1 -2
  478. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +1 -1
  479. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +1 -1
  480. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +1 -1
  481. package/lib/typescript/src/renderer/index.d.ts +1 -0
  482. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +1 -1
  483. package/lib/typescript/src/renderer/nodes/Node.d.ts +1 -1
  484. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +3 -3
  485. package/lib/typescript/src/renderer/processors/Clips.d.ts +1 -2
  486. package/lib/typescript/src/renderer/processors/Font.d.ts +1 -2
  487. package/lib/typescript/src/renderer/processors/Rects.d.ts +2 -0
  488. package/lib/typescript/src/renderer/processors/Transform.d.ts +1 -1
  489. package/lib/typescript/src/skia/Skia.d.ts +2 -35
  490. package/lib/typescript/src/skia/{Color.d.ts → core/Color.d.ts} +1 -2
  491. package/lib/typescript/src/skia/core/Data.d.ts +5 -0
  492. package/lib/typescript/src/skia/core/Font.d.ts +5 -0
  493. package/lib/typescript/src/skia/core/Image.d.ts +5 -0
  494. package/lib/typescript/src/skia/{Paint/usePaint.d.ts → core/Paint.d.ts} +2 -1
  495. package/lib/typescript/src/skia/{Path/usePath.d.ts → core/Path.d.ts} +1 -2
  496. package/lib/typescript/src/skia/{Picture/usePicture.d.ts → core/Picture.d.ts} +1 -3
  497. package/lib/typescript/src/skia/core/SVG.d.ts +2 -0
  498. package/lib/typescript/src/skia/{Shader/useShader.d.ts → core/Shader.d.ts} +0 -0
  499. package/lib/typescript/src/skia/core/Typeface.d.ts +5 -0
  500. package/lib/typescript/src/skia/core/index.d.ts +10 -0
  501. package/lib/typescript/src/skia/index.d.ts +2 -23
  502. package/lib/typescript/src/skia/{Canvas.d.ts → types/Canvas.d.ts} +0 -0
  503. package/lib/typescript/src/skia/types/Color.d.ts +2 -0
  504. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.d.ts +0 -0
  505. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.d.ts +1 -1
  506. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/index.d.ts +0 -0
  507. package/lib/typescript/src/skia/{ContourMeasure.d.ts → types/ContourMeasure.d.ts} +0 -0
  508. package/lib/typescript/src/skia/types/Data/Data.d.ts +5 -0
  509. package/lib/typescript/src/skia/{Data → types/Data}/DataFactory.d.ts +0 -0
  510. package/lib/typescript/src/skia/{Data → types/Data}/index.d.ts +0 -0
  511. package/lib/typescript/src/skia/{Font → types/Font}/Font.d.ts +1 -1
  512. package/lib/typescript/src/skia/types/Font/index.d.ts +1 -0
  513. package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/FontMgr.d.ts +1 -1
  514. package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/FontMgrFactory.d.ts +0 -0
  515. package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/index.d.ts +1 -0
  516. package/lib/typescript/src/skia/{Image → types/Image}/Image.d.ts +2 -2
  517. package/lib/typescript/src/skia/{Image → types/Image}/ImageFactory.d.ts +0 -0
  518. package/lib/typescript/src/skia/{Image → types/Image}/index.d.ts +0 -1
  519. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.d.ts +0 -0
  520. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.d.ts +2 -2
  521. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/index.d.ts +0 -0
  522. package/lib/typescript/src/skia/{JsiInstance.d.ts → types/JsiInstance.d.ts} +0 -0
  523. package/lib/typescript/src/skia/{MaskFilter.d.ts → types/MaskFilter.d.ts} +3 -3
  524. package/lib/typescript/src/skia/{Matrix.d.ts → types/Matrix.d.ts} +0 -0
  525. package/lib/typescript/src/skia/{Paint → types/Paint}/BlendMode.d.ts +0 -0
  526. package/lib/typescript/src/skia/{Paint → types/Paint}/Paint.d.ts +5 -6
  527. package/lib/typescript/src/skia/{Paint → types/Paint}/index.d.ts +0 -1
  528. package/lib/typescript/src/skia/{Path → types/Path}/Path.d.ts +0 -0
  529. package/lib/typescript/src/skia/{Path → types/Path}/PathFactory.d.ts +0 -0
  530. package/lib/typescript/src/skia/{Path → types/Path}/index.d.ts +0 -1
  531. package/lib/typescript/src/skia/{PathEffect.d.ts → types/PathEffect.d.ts} +10 -10
  532. package/lib/typescript/src/skia/{Picture → types/Picture}/Picture.d.ts +0 -0
  533. package/lib/typescript/src/skia/{Picture → types/Picture}/PictureFactory.d.ts +0 -0
  534. package/lib/typescript/src/skia/{Picture → types/Picture}/PictureRecorder.d.ts +0 -0
  535. package/lib/typescript/src/skia/{Picture → types/Picture}/index.d.ts +0 -1
  536. package/lib/typescript/src/skia/{Point.d.ts → types/Point.d.ts} +0 -0
  537. package/lib/typescript/src/skia/{RRect.d.ts → types/RRect.d.ts} +0 -0
  538. package/lib/typescript/src/skia/{RSXform.d.ts → types/RSXform.d.ts} +0 -0
  539. package/lib/typescript/src/skia/{Rect.d.ts → types/Rect.d.ts} +0 -0
  540. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.d.ts +0 -0
  541. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.d.ts +0 -0
  542. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.d.ts +0 -0
  543. package/lib/typescript/src/skia/{SVG → types/SVG}/SVG.d.ts +0 -0
  544. package/lib/typescript/src/skia/{SVG → types/SVG}/SVGFactory.d.ts +1 -1
  545. package/lib/typescript/src/skia/{SVG → types/SVG}/index.d.ts +0 -1
  546. package/lib/typescript/src/skia/{Shader → types/Shader}/Shader.d.ts +0 -0
  547. package/lib/typescript/src/skia/{Shader → types/Shader}/ShaderFactory.d.ts +0 -0
  548. package/lib/typescript/src/skia/{Shader → types/Shader}/index.d.ts +0 -1
  549. package/lib/typescript/src/skia/{SkiaApi.d.ts → types/Skia.d.ts} +2 -5
  550. package/lib/typescript/src/skia/{Surface → types/Surface}/Surface.d.ts +0 -0
  551. package/lib/typescript/src/skia/{Surface → types/Surface}/SurfaceFactory.d.ts +0 -0
  552. package/lib/typescript/src/skia/{Surface → types/Surface}/index.d.ts +0 -0
  553. package/lib/typescript/src/skia/{TextBlob.d.ts → types/TextBlob.d.ts} +0 -0
  554. package/lib/typescript/src/skia/{Typeface → types/Typeface}/Typeface.d.ts +0 -0
  555. package/lib/typescript/src/skia/{Typeface → types/Typeface}/TypefaceFactory.d.ts +1 -1
  556. package/lib/typescript/src/skia/{Typeface → types/Typeface}/index.d.ts +0 -1
  557. package/lib/typescript/src/skia/{Vertices → types/Vertices}/Vertices.d.ts +0 -0
  558. package/lib/typescript/src/skia/{Vertices → types/Vertices}/index.d.ts +0 -0
  559. package/lib/typescript/src/skia/types/index.d.ts +28 -0
  560. package/lib/typescript/src/skia/web/api/Host.d.ts +18 -0
  561. package/lib/typescript/src/skia/web/api/JsiSkCanvas.d.ts +44 -0
  562. package/lib/typescript/src/skia/web/api/JsiSkColor.d.ts +3 -0
  563. package/lib/typescript/src/skia/web/api/JsiSkColorFilter.d.ts +6 -0
  564. package/lib/typescript/src/skia/web/api/JsiSkImage.d.ts +12 -0
  565. package/lib/typescript/src/skia/web/api/JsiSkPaint.d.ts +26 -0
  566. package/lib/typescript/src/skia/web/api/JsiSkRect.d.ts +10 -0
  567. package/lib/typescript/src/skia/web/api/JsiSkSurface.d.ts +8 -0
  568. package/lib/typescript/src/skia/web/api/JsiSkSurfaceFactory.d.ts +8 -0
  569. package/lib/typescript/src/skia/web/api/index.d.ts +10 -0
  570. package/lib/typescript/src/skia/web/index.d.ts +1 -0
  571. package/lib/typescript/src/values/api.d.ts +1 -1
  572. package/lib/typescript/src/values/api.web.d.ts +1 -1
  573. package/lib/typescript/src/values/hooks/useDerivedValue.d.ts +1 -1
  574. package/lib/typescript/src/values/hooks/useValue.d.ts +2 -2
  575. package/lib/typescript/src/values/hooks/useValueEffect.d.ts +2 -2
  576. package/lib/typescript/src/values/types.d.ts +5 -5
  577. package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +2 -2
  578. package/lib/typescript/src/views/SkiaView.d.ts +4 -4
  579. package/lib/typescript/src/views/types.d.ts +3 -4
  580. package/package.json +5 -3
  581. package/react-native-skia.podspec +1 -1
  582. package/src/animation/decay/runDecay.ts +5 -2
  583. package/src/animation/functions/interpolateColors.ts +1 -2
  584. package/src/animation/spring/runSpring.ts +2 -2
  585. package/src/animation/spring/useSpring.ts +2 -2
  586. package/src/animation/timing/createTiming.ts +2 -2
  587. package/src/animation/timing/runTiming.ts +2 -2
  588. package/src/animation/timing/useTiming.ts +2 -2
  589. package/src/index.ts +0 -1
  590. package/src/renderer/Canvas.tsx +4 -5
  591. package/src/renderer/DependencyManager.tsx +2 -2
  592. package/src/renderer/DrawingContext.ts +1 -2
  593. package/src/renderer/components/Blend.tsx +1 -2
  594. package/src/renderer/components/Compose.tsx +1 -3
  595. package/src/renderer/components/colorFilters/Lerp.tsx +1 -2
  596. package/src/renderer/components/imageFilters/DisplacementMap.tsx +1 -2
  597. package/src/renderer/components/imageFilters/InnerShadow.tsx +1 -2
  598. package/src/renderer/components/imageFilters/RuntimeShader.tsx +1 -1
  599. package/src/renderer/components/imageFilters/Shadow.tsx +2 -3
  600. package/src/renderer/components/maskFilters/Blur.tsx +1 -2
  601. package/src/renderer/components/pathEffects/Corner.tsx +1 -2
  602. package/src/renderer/components/pathEffects/Dash.tsx +1 -2
  603. package/src/renderer/components/pathEffects/Discrete.tsx +1 -2
  604. package/src/renderer/components/pathEffects/Line2D.tsx +2 -3
  605. package/src/renderer/components/pathEffects/Path1D.tsx +1 -2
  606. package/src/renderer/components/pathEffects/Path2D.tsx +2 -3
  607. package/src/renderer/components/pathEffects/Sum.tsx +1 -2
  608. package/src/renderer/components/shaders/Gradient.ts +1 -1
  609. package/src/renderer/components/shapes/Box.tsx +1 -3
  610. package/src/renderer/components/shapes/DiffRect.tsx +1 -1
  611. package/src/renderer/components/shapes/Patch.tsx +1 -2
  612. package/src/renderer/components/text/TextBlob.tsx +1 -1
  613. package/src/renderer/components/text/TextPath.tsx +1 -2
  614. package/src/renderer/index.ts +1 -0
  615. package/src/renderer/nodes/Declaration.tsx +1 -1
  616. package/src/renderer/nodes/Node.ts +1 -1
  617. package/src/renderer/processors/Animations/Animations.ts +5 -8
  618. package/src/renderer/processors/Clips.ts +1 -2
  619. package/src/renderer/processors/Font.ts +1 -2
  620. package/src/renderer/processors/Rects.ts +4 -0
  621. package/src/renderer/processors/Transform.ts +1 -1
  622. package/src/renderer/processors/math/Matrix3.ts +2 -2
  623. package/src/skia/Skia.ts +2 -38
  624. package/src/skia/__tests__/Rects.spec.ts +40 -0
  625. package/src/skia/__tests__/snapshots/lightblue-rect.png +0 -0
  626. package/src/skia/{Color.ts → core/Color.ts} +2 -6
  627. package/src/skia/core/Data.ts +78 -0
  628. package/src/skia/{Font/useFont.ts → core/Font.ts} +8 -5
  629. package/src/skia/core/Image.ts +12 -0
  630. package/src/skia/{Paint/usePaint.ts → core/Paint.ts} +7 -2
  631. package/src/skia/{Path/usePath.ts → core/Path.ts} +1 -3
  632. package/src/skia/{Picture/usePicture.ts → core/Picture.ts} +1 -4
  633. package/src/skia/core/SVG.ts +9 -0
  634. package/src/skia/{Shader/useShader.ts → core/Shader.ts} +0 -0
  635. package/src/skia/core/Typeface.ts +11 -0
  636. package/src/skia/core/index.ts +10 -0
  637. package/src/skia/index.ts +2 -23
  638. package/src/skia/{Canvas.ts → types/Canvas.ts} +0 -0
  639. package/src/skia/types/Color.ts +4 -0
  640. package/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.ts +0 -0
  641. package/src/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.ts +1 -1
  642. package/src/skia/{ColorFilter → types/ColorFilter}/index.ts +0 -0
  643. package/src/skia/{ContourMeasure.tsx → types/ContourMeasure.tsx} +0 -0
  644. package/src/skia/types/Data/Data.ts +5 -0
  645. package/src/skia/{Data → types/Data}/DataFactory.ts +0 -0
  646. package/src/skia/{Data → types/Data}/index.ts +0 -0
  647. package/src/skia/{Font → types/Font}/Font.ts +1 -1
  648. package/src/skia/types/Font/index.ts +1 -0
  649. package/src/skia/{FontMgr → types/FontMgr}/FontMgr.ts +1 -1
  650. package/src/skia/{FontMgr → types/FontMgr}/FontMgrFactory.ts +1 -6
  651. package/src/skia/{FontMgr → types/FontMgr}/index.ts +1 -0
  652. package/src/skia/{Image → types/Image}/Image.ts +2 -2
  653. package/src/skia/{Image → types/Image}/ImageFactory.ts +0 -0
  654. package/src/skia/{Image → types/Image}/index.ts +0 -1
  655. package/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.ts +0 -0
  656. package/src/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.ts +2 -2
  657. package/src/skia/{ImageFilter → types/ImageFilter}/index.ts +0 -0
  658. package/src/skia/{JsiInstance.ts → types/JsiInstance.ts} +0 -0
  659. package/src/skia/{MaskFilter.ts → types/MaskFilter.ts} +3 -3
  660. package/src/skia/{Matrix.ts → types/Matrix.ts} +0 -0
  661. package/src/skia/{Paint → types/Paint}/BlendMode.ts +0 -0
  662. package/src/skia/{Paint → types/Paint}/Paint.ts +5 -12
  663. package/src/skia/{Paint → types/Paint}/index.ts +0 -1
  664. package/src/skia/{Path → types/Path}/Path.ts +0 -0
  665. package/src/skia/{Path → types/Path}/PathFactory.ts +0 -0
  666. package/src/skia/{Path → types/Path}/index.ts +0 -1
  667. package/src/skia/{PathEffect.ts → types/PathEffect.ts} +14 -10
  668. package/src/skia/{Picture → types/Picture}/Picture.ts +0 -0
  669. package/src/skia/{Picture → types/Picture}/PictureFactory.ts +0 -0
  670. package/src/skia/{Picture → types/Picture}/PictureRecorder.ts +0 -0
  671. package/src/skia/{Picture → types/Picture}/index.ts +0 -1
  672. package/src/skia/{Point.ts → types/Point.ts} +0 -0
  673. package/src/skia/{RRect.ts → types/RRect.ts} +0 -0
  674. package/src/skia/{RSXform.ts → types/RSXform.ts} +0 -0
  675. package/src/skia/{Rect.ts → types/Rect.ts} +0 -0
  676. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.ts +0 -0
  677. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.ts +0 -0
  678. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.ts +0 -0
  679. package/src/skia/{SVG → types/SVG}/SVG.ts +0 -0
  680. package/src/skia/{SVG → types/SVG}/SVGFactory.ts +1 -1
  681. package/src/skia/{SVG → types/SVG}/index.ts +0 -1
  682. package/src/skia/{Shader → types/Shader}/Shader.ts +0 -0
  683. package/src/skia/{Shader → types/Shader}/ShaderFactory.ts +0 -0
  684. package/src/skia/{Shader → types/Shader}/index.ts +0 -1
  685. package/src/skia/{SkiaApi.ts → types/Skia.ts} +6 -8
  686. package/src/skia/{Surface → types/Surface}/Surface.ts +0 -0
  687. package/src/skia/{Surface → types/Surface}/SurfaceFactory.ts +0 -0
  688. package/src/skia/{Surface → types/Surface}/index.ts +0 -0
  689. package/src/skia/{TextBlob.ts → types/TextBlob.ts} +0 -0
  690. package/src/skia/{Typeface → types/Typeface}/Typeface.ts +0 -0
  691. package/src/skia/{Typeface → types/Typeface}/TypefaceFactory.ts +1 -1
  692. package/src/skia/{Typeface → types/Typeface}/index.ts +0 -1
  693. package/src/skia/{Vertices → types/Vertices}/Vertices.tsx +0 -0
  694. package/src/skia/{Vertices → types/Vertices}/index.ts +0 -0
  695. package/src/skia/types/index.ts +28 -0
  696. package/src/skia/web/api/Host.ts +50 -0
  697. package/src/skia/web/api/JsiSkCanvas.ts +322 -0
  698. package/src/skia/web/api/JsiSkColor.ts +181 -0
  699. package/src/skia/web/api/JsiSkColorFilter.ts +14 -0
  700. package/src/skia/web/api/JsiSkImage.ts +66 -0
  701. package/src/skia/web/api/JsiSkPaint.ts +103 -0
  702. package/src/skia/web/api/JsiSkRect.ts +27 -0
  703. package/src/skia/web/api/JsiSkSurface.ts +25 -0
  704. package/src/skia/web/api/JsiSkSurfaceFactory.ts +20 -0
  705. package/src/skia/web/api/index.ts +15 -0
  706. package/src/skia/web/index.ts +1 -0
  707. package/src/values/hooks/useValue.ts +2 -2
  708. package/src/values/hooks/useValueEffect.ts +2 -5
  709. package/src/values/types.ts +6 -6
  710. package/src/values/web/RNSkReadonlyValue.ts +2 -2
  711. package/src/values/web/api.ts +4 -4
  712. package/src/views/SkiaView.tsx +3 -3
  713. package/src/views/types.ts +3 -4
  714. package/lib/commonjs/skia/Color.js.map +0 -1
  715. package/lib/commonjs/skia/Data/Data.js.map +0 -1
  716. package/lib/commonjs/skia/Font/Font.js.map +0 -1
  717. package/lib/commonjs/skia/Font/useFont.js.map +0 -1
  718. package/lib/commonjs/skia/Image/index.js.map +0 -1
  719. package/lib/commonjs/skia/Image/useImage.js.map +0 -1
  720. package/lib/commonjs/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
  721. package/lib/commonjs/skia/MaskFilter.js.map +0 -1
  722. package/lib/commonjs/skia/Paint/Paint.js.map +0 -1
  723. package/lib/commonjs/skia/Paint/usePaint.js.map +0 -1
  724. package/lib/commonjs/skia/Path/index.js.map +0 -1
  725. package/lib/commonjs/skia/Path/usePath.js.map +0 -1
  726. package/lib/commonjs/skia/PathEffect.js.map +0 -1
  727. package/lib/commonjs/skia/Picture/index.js.map +0 -1
  728. package/lib/commonjs/skia/Picture/usePicture.js.map +0 -1
  729. package/lib/commonjs/skia/SVG/index.js.map +0 -1
  730. package/lib/commonjs/skia/SVG/useSvg.js +0 -15
  731. package/lib/commonjs/skia/SVG/useSvg.js.map +0 -1
  732. package/lib/commonjs/skia/Shader/index.js.map +0 -1
  733. package/lib/commonjs/skia/Shader/useShader.js.map +0 -1
  734. package/lib/commonjs/skia/SkiaApi.js +0 -4
  735. package/lib/commonjs/skia/SkiaApi.js.map +0 -1
  736. package/lib/commonjs/skia/Typeface/index.js.map +0 -1
  737. package/lib/commonjs/skia/Typeface/useTypeface.js.map +0 -1
  738. package/lib/module/skia/Color.js.map +0 -1
  739. package/lib/module/skia/Data/Data.js +0 -35
  740. package/lib/module/skia/Data/Data.js.map +0 -1
  741. package/lib/module/skia/Font/Font.js.map +0 -1
  742. package/lib/module/skia/Font/index.js +0 -3
  743. package/lib/module/skia/Font/index.js.map +0 -1
  744. package/lib/module/skia/Font/useFont.js.map +0 -1
  745. package/lib/module/skia/FontMgr/index.js +0 -2
  746. package/lib/module/skia/FontMgr/index.js.map +0 -1
  747. package/lib/module/skia/Image/index.js +0 -4
  748. package/lib/module/skia/Image/index.js.map +0 -1
  749. package/lib/module/skia/Image/useImage.js +0 -8
  750. package/lib/module/skia/Image/useImage.js.map +0 -1
  751. package/lib/module/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
  752. package/lib/module/skia/MaskFilter.js.map +0 -1
  753. package/lib/module/skia/Paint/Paint.js.map +0 -1
  754. package/lib/module/skia/Paint/index.js +0 -4
  755. package/lib/module/skia/Paint/index.js.map +0 -1
  756. package/lib/module/skia/Paint/usePaint.js.map +0 -1
  757. package/lib/module/skia/Path/index.js +0 -4
  758. package/lib/module/skia/Path/index.js.map +0 -1
  759. package/lib/module/skia/Path/usePath.js.map +0 -1
  760. package/lib/module/skia/PathEffect.js.map +0 -1
  761. package/lib/module/skia/Picture/index.js.map +0 -1
  762. package/lib/module/skia/Picture/usePicture.js.map +0 -1
  763. package/lib/module/skia/SVG/index.js +0 -4
  764. package/lib/module/skia/SVG/index.js.map +0 -1
  765. package/lib/module/skia/SVG/useSvg.js +0 -4
  766. package/lib/module/skia/SVG/useSvg.js.map +0 -1
  767. package/lib/module/skia/Shader/index.js +0 -4
  768. package/lib/module/skia/Shader/index.js.map +0 -1
  769. package/lib/module/skia/Shader/useShader.js.map +0 -1
  770. package/lib/module/skia/SkiaApi.js +0 -2
  771. package/lib/module/skia/SkiaApi.js.map +0 -1
  772. package/lib/module/skia/Typeface/index.js +0 -4
  773. package/lib/module/skia/Typeface/index.js.map +0 -1
  774. package/lib/module/skia/Typeface/useTypeface.js +0 -8
  775. package/lib/module/skia/Typeface/useTypeface.js.map +0 -1
  776. package/lib/typescript/src/skia/Data/Data.d.ts +0 -9
  777. package/lib/typescript/src/skia/Font/index.d.ts +0 -2
  778. package/lib/typescript/src/skia/Font/useFont.d.ts +0 -6
  779. package/lib/typescript/src/skia/Image/useImage.d.ts +0 -5
  780. package/lib/typescript/src/skia/SVG/useSvg.d.ts +0 -2
  781. package/lib/typescript/src/skia/Typeface/useTypeface.d.ts +0 -5
  782. package/src/skia/Data/Data.ts +0 -61
  783. package/src/skia/Font/index.ts +0 -2
  784. package/src/skia/Image/useImage.ts +0 -9
  785. package/src/skia/SVG/useSvg.ts +0 -6
  786. package/src/skia/Typeface/useTypeface.ts +0 -9
@@ -0,0 +1,96 @@
1
+ import { HostObject, toNullableValue } from "./Host";
2
+ export class JsiSkPaint extends HostObject {
3
+ constructor(CanvasKit, ref) {
4
+ super(CanvasKit, ref, "Paint");
5
+ }
6
+
7
+ copy() {
8
+ return new JsiSkPaint(this.CanvasKit, this.ref.copy());
9
+ }
10
+
11
+ getColor() {
12
+ return this.ref.getColor();
13
+ }
14
+
15
+ getStrokeCap() {
16
+ return this.ref.getStrokeCap().value;
17
+ }
18
+
19
+ getStrokeJoin() {
20
+ return this.ref.getStrokeJoin().value;
21
+ }
22
+
23
+ getStrokeMiter() {
24
+ return this.ref.getStrokeMiter();
25
+ }
26
+
27
+ getStrokeWidth() {
28
+ return this.ref.getStrokeWidth();
29
+ }
30
+
31
+ setAlphaf(alpha) {
32
+ this.ref.setAlphaf(alpha);
33
+ }
34
+
35
+ setAntiAlias(aa) {
36
+ this.ref.setAntiAlias(aa);
37
+ }
38
+
39
+ setBlendMode(blendMode) {
40
+ this.ref.setBlendMode({
41
+ value: blendMode
42
+ });
43
+ }
44
+
45
+ setColor(color) {
46
+ this.ref.setColor(color);
47
+ }
48
+
49
+ setColorFilter(filter) {
50
+ this.ref.setColorFilter(toNullableValue(filter));
51
+ }
52
+
53
+ setImageFilter(filter) {
54
+ this.ref.setImageFilter(toNullableValue(filter));
55
+ }
56
+
57
+ setMaskFilter(filter) {
58
+ this.ref.setMaskFilter(toNullableValue(filter));
59
+ }
60
+
61
+ setPathEffect(effect) {
62
+ this.ref.setPathEffect(toNullableValue(effect));
63
+ }
64
+
65
+ setShader(shader) {
66
+ this.ref.setShader(toNullableValue(shader));
67
+ }
68
+
69
+ setStrokeCap(cap) {
70
+ this.ref.setStrokeCap({
71
+ value: cap
72
+ });
73
+ }
74
+
75
+ setStrokeJoin(join) {
76
+ this.ref.setStrokeJoin({
77
+ value: join
78
+ });
79
+ }
80
+
81
+ setStrokeMiter(limit) {
82
+ this.ref.setStrokeMiter(limit);
83
+ }
84
+
85
+ setStrokeWidth(width) {
86
+ this.ref.setStrokeWidth(width);
87
+ }
88
+
89
+ setStyle(style) {
90
+ this.ref.setStyle({
91
+ value: style
92
+ });
93
+ }
94
+
95
+ }
96
+ //# sourceMappingURL=JsiSkPaint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkPaint.ts"],"names":["HostObject","toNullableValue","JsiSkPaint","constructor","CanvasKit","ref","copy","getColor","getStrokeCap","value","getStrokeJoin","getStrokeMiter","getStrokeWidth","setAlphaf","alpha","setAntiAlias","aa","setBlendMode","blendMode","setColor","color","setColorFilter","filter","setImageFilter","setMaskFilter","setPathEffect","effect","setShader","shader","setStrokeCap","cap","setStrokeJoin","join","setStrokeMiter","limit","setStrokeWidth","width","setStyle","style"],"mappings":"AAgBA,SAASA,UAAT,EAAqBC,eAArB,QAA4C,QAA5C;AAEA,OAAO,MAAMC,UAAN,SAAyBF,UAAzB,CAAuE;AAC5EG,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAmC;AAC5C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,OAAtB;AACD;;AAEDC,EAAAA,IAAI,GAAG;AACL,WAAO,IAAIJ,UAAJ,CAAe,KAAKE,SAApB,EAA+B,KAAKC,GAAL,CAASC,IAAT,EAA/B,CAAP;AACD;;AAEDC,EAAAA,QAAQ,GAAG;AACT,WAAO,KAAKF,GAAL,CAASE,QAAT,EAAP;AACD;;AAEDC,EAAAA,YAAY,GAAG;AACb,WAAO,KAAKH,GAAL,CAASG,YAAT,GAAwBC,KAA/B;AACD;;AAEDC,EAAAA,aAAa,GAAG;AACd,WAAO,KAAKL,GAAL,CAASK,aAAT,GAAyBD,KAAhC;AACD;;AAEDE,EAAAA,cAAc,GAAG;AACf,WAAO,KAAKN,GAAL,CAASM,cAAT,EAAP;AACD;;AAEDC,EAAAA,cAAc,GAAG;AACf,WAAO,KAAKP,GAAL,CAASO,cAAT,EAAP;AACD;;AAEDC,EAAAA,SAAS,CAACC,KAAD,EAAgB;AACvB,SAAKT,GAAL,CAASQ,SAAT,CAAmBC,KAAnB;AACD;;AAEDC,EAAAA,YAAY,CAACC,EAAD,EAAc;AACxB,SAAKX,GAAL,CAASU,YAAT,CAAsBC,EAAtB;AACD;;AAEDC,EAAAA,YAAY,CAACC,SAAD,EAAuB;AACjC,SAAKb,GAAL,CAASY,YAAT,CAAsB;AAAER,MAAAA,KAAK,EAAES;AAAT,KAAtB;AACD;;AAEDC,EAAAA,QAAQ,CAACC,KAAD,EAAiB;AACvB,SAAKf,GAAL,CAASc,QAAT,CAAkBC,KAAlB;AACD;;AAEDC,EAAAA,cAAc,CAACC,MAAD,EAA+B;AAC3C,SAAKjB,GAAL,CAASgB,cAAT,CAAwBpB,eAAe,CAACqB,MAAD,CAAvC;AACD;;AAEDC,EAAAA,cAAc,CAACD,MAAD,EAA+B;AAC3C,SAAKjB,GAAL,CAASkB,cAAT,CAAwBtB,eAAe,CAACqB,MAAD,CAAvC;AACD;;AAEDE,EAAAA,aAAa,CAACF,MAAD,EAA8B;AACzC,SAAKjB,GAAL,CAASmB,aAAT,CAAuBvB,eAAe,CAACqB,MAAD,CAAtC;AACD;;AAEDG,EAAAA,aAAa,CAACC,MAAD,EAA8B;AACzC,SAAKrB,GAAL,CAASoB,aAAT,CAAuBxB,eAAe,CAACyB,MAAD,CAAtC;AACD;;AAEDC,EAAAA,SAAS,CAACC,MAAD,EAA0B;AACjC,SAAKvB,GAAL,CAASsB,SAAT,CAAmB1B,eAAe,CAAC2B,MAAD,CAAlC;AACD;;AAEDC,EAAAA,YAAY,CAACC,GAAD,EAAiB;AAC3B,SAAKzB,GAAL,CAASwB,YAAT,CAAsB;AAAEpB,MAAAA,KAAK,EAAEqB;AAAT,KAAtB;AACD;;AAEDC,EAAAA,aAAa,CAACC,IAAD,EAAmB;AAC9B,SAAK3B,GAAL,CAAS0B,aAAT,CAAuB;AAAEtB,MAAAA,KAAK,EAAEuB;AAAT,KAAvB;AACD;;AAEDC,EAAAA,cAAc,CAACC,KAAD,EAAgB;AAC5B,SAAK7B,GAAL,CAAS4B,cAAT,CAAwBC,KAAxB;AACD;;AAEDC,EAAAA,cAAc,CAACC,KAAD,EAAgB;AAC5B,SAAK/B,GAAL,CAAS8B,cAAT,CAAwBC,KAAxB;AACD;;AAEDC,EAAAA,QAAQ,CAACC,KAAD,EAAoB;AAC1B,SAAKjC,GAAL,CAASgC,QAAT,CAAkB;AAAE5B,MAAAA,KAAK,EAAE6B;AAAT,KAAlB;AACD;;AAnF2E","sourcesContent":["import type { CanvasKit, Paint } from \"canvaskit-wasm\";\n\nimport type {\n BlendMode,\n SkColor,\n SkColorFilter,\n SkImageFilter,\n SkPaint,\n SkShader,\n StrokeCap,\n StrokeJoin,\n PaintStyle,\n SkMaskFilter,\n SkPathEffect,\n} from \"../../types\";\n\nimport { HostObject, toNullableValue } from \"./Host\";\n\nexport class JsiSkPaint extends HostObject<Paint, \"Paint\"> implements SkPaint {\n constructor(CanvasKit: CanvasKit, ref: Paint) {\n super(CanvasKit, ref, \"Paint\");\n }\n\n copy() {\n return new JsiSkPaint(this.CanvasKit, this.ref.copy());\n }\n\n getColor() {\n return this.ref.getColor();\n }\n\n getStrokeCap() {\n return this.ref.getStrokeCap().value;\n }\n\n getStrokeJoin() {\n return this.ref.getStrokeJoin().value;\n }\n\n getStrokeMiter() {\n return this.ref.getStrokeMiter();\n }\n\n getStrokeWidth() {\n return this.ref.getStrokeWidth();\n }\n\n setAlphaf(alpha: number) {\n this.ref.setAlphaf(alpha);\n }\n\n setAntiAlias(aa: boolean) {\n this.ref.setAntiAlias(aa);\n }\n\n setBlendMode(blendMode: BlendMode) {\n this.ref.setBlendMode({ value: blendMode });\n }\n\n setColor(color: SkColor) {\n this.ref.setColor(color);\n }\n\n setColorFilter(filter: SkColorFilter | null) {\n this.ref.setColorFilter(toNullableValue(filter));\n }\n\n setImageFilter(filter: SkImageFilter | null) {\n this.ref.setImageFilter(toNullableValue(filter));\n }\n\n setMaskFilter(filter: SkMaskFilter | null) {\n this.ref.setMaskFilter(toNullableValue(filter));\n }\n\n setPathEffect(effect: SkPathEffect | null) {\n this.ref.setPathEffect(toNullableValue(effect));\n }\n\n setShader(shader: SkShader | null) {\n this.ref.setShader(toNullableValue(shader));\n }\n\n setStrokeCap(cap: StrokeCap) {\n this.ref.setStrokeCap({ value: cap });\n }\n\n setStrokeJoin(join: StrokeJoin) {\n this.ref.setStrokeJoin({ value: join });\n }\n\n setStrokeMiter(limit: number) {\n this.ref.setStrokeMiter(limit);\n }\n\n setStrokeWidth(width: number) {\n this.ref.setStrokeWidth(width);\n }\n\n setStyle(style: PaintStyle) {\n this.ref.setStyle({ value: style });\n }\n}\n"]}
@@ -0,0 +1,24 @@
1
+ import { HostObject } from "./Host";
2
+ export class JsiSkRect extends HostObject {
3
+ constructor(CanvasKit, ref) {
4
+ super(CanvasKit, ref, "Rect");
5
+ }
6
+
7
+ get x() {
8
+ return this.ref[0];
9
+ }
10
+
11
+ get y() {
12
+ return this.ref[1];
13
+ }
14
+
15
+ get width() {
16
+ return this.ref[2] - this.ref[0];
17
+ }
18
+
19
+ get height() {
20
+ return this.ref[3] - this.ref[1];
21
+ }
22
+
23
+ }
24
+ //# sourceMappingURL=JsiSkRect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkRect.ts"],"names":["HostObject","JsiSkRect","constructor","CanvasKit","ref","x","y","width","height"],"mappings":"AAIA,SAASA,UAAT,QAA2B,QAA3B;AAEA,OAAO,MAAMC,SAAN,SAAwBD,UAAxB,CAAmE;AACxEE,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAkC;AAC3C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,MAAtB;AACD;;AAEI,MAADC,CAAC,GAAG;AACN,WAAO,KAAKD,GAAL,CAAS,CAAT,CAAP;AACD;;AAEI,MAADE,CAAC,GAAG;AACN,WAAO,KAAKF,GAAL,CAAS,CAAT,CAAP;AACD;;AAEQ,MAALG,KAAK,GAAG;AACV,WAAO,KAAKH,GAAL,CAAS,CAAT,IAAc,KAAKA,GAAL,CAAS,CAAT,CAArB;AACD;;AAES,MAANI,MAAM,GAAG;AACX,WAAO,KAAKJ,GAAL,CAAS,CAAT,IAAc,KAAKA,GAAL,CAAS,CAAT,CAArB;AACD;;AAnBuE","sourcesContent":["import type { CanvasKit, Rect } from \"canvaskit-wasm\";\n\nimport type { SkRect } from \"../../types\";\n\nimport { HostObject } from \"./Host\";\n\nexport class JsiSkRect extends HostObject<Rect, \"Rect\"> implements SkRect {\n constructor(CanvasKit: CanvasKit, ref: Rect) {\n super(CanvasKit, ref, \"Rect\");\n }\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n\n get width() {\n return this.ref[2] - this.ref[0];\n }\n\n get height() {\n return this.ref[3] - this.ref[1];\n }\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import { HostObject, toUndefinedableValue } from "./Host";
2
+ import { JsiSkCanvas } from "./JsiSkCanvas";
3
+ import { JsiSkImage } from "./JsiSkImage";
4
+ export class JsiSkSurface extends HostObject {
5
+ constructor(CanvasKit, ref) {
6
+ super(CanvasKit, ref, "Surface");
7
+ }
8
+
9
+ getCanvas() {
10
+ return new JsiSkCanvas(this.CanvasKit, this.ref.getCanvas());
11
+ }
12
+
13
+ makeImageSnapshot(bounds) {
14
+ const image = this.ref.makeImageSnapshot(toUndefinedableValue(bounds));
15
+ return new JsiSkImage(this.CanvasKit, image);
16
+ }
17
+
18
+ }
19
+ //# sourceMappingURL=JsiSkSurface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkSurface.ts"],"names":["HostObject","toUndefinedableValue","JsiSkCanvas","JsiSkImage","JsiSkSurface","constructor","CanvasKit","ref","getCanvas","makeImageSnapshot","bounds","image"],"mappings":"AAIA,SAASA,UAAT,EAAqBC,oBAArB,QAAiD,QAAjD;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,SAASC,UAAT,QAA2B,cAA3B;AAEA,OAAO,MAAMC,YAAN,SACGJ,UADH,CAGP;AACEK,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAqC;AAC9C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,SAAtB;AACD;;AAEDC,EAAAA,SAAS,GAAa;AACpB,WAAO,IAAIN,WAAJ,CAAgB,KAAKI,SAArB,EAAgC,KAAKC,GAAL,CAASC,SAAT,EAAhC,CAAP;AACD;;AAEDC,EAAAA,iBAAiB,CAACC,MAAD,EAA2B;AAC1C,UAAMC,KAAK,GAAG,KAAKJ,GAAL,CAASE,iBAAT,CAA2BR,oBAAoB,CAACS,MAAD,CAA/C,CAAd;AACA,WAAO,IAAIP,UAAJ,CAAe,KAAKG,SAApB,EAA+BK,KAA/B,CAAP;AACD;;AAZH","sourcesContent":["import type { CanvasKit, Surface } from \"canvaskit-wasm\";\n\nimport type { SkCanvas, SkImage, SkRect, SkSurface } from \"../../types\";\n\nimport { HostObject, toUndefinedableValue } from \"./Host\";\nimport { JsiSkCanvas } from \"./JsiSkCanvas\";\nimport { JsiSkImage } from \"./JsiSkImage\";\n\nexport class JsiSkSurface\n extends HostObject<Surface, \"Surface\">\n implements SkSurface\n{\n constructor(CanvasKit: CanvasKit, ref: Surface) {\n super(CanvasKit, ref, \"Surface\");\n }\n\n getCanvas(): SkCanvas {\n return new JsiSkCanvas(this.CanvasKit, this.ref.getCanvas());\n }\n\n makeImageSnapshot(bounds?: SkRect): SkImage {\n const image = this.ref.makeImageSnapshot(toUndefinedableValue(bounds));\n return new JsiSkImage(this.CanvasKit, image);\n }\n}\n"]}
@@ -0,0 +1,19 @@
1
+ import { Host } from "./Host";
2
+ import { JsiSkSurface } from "./JsiSkSurface";
3
+ export class JsiSkSurfaceFactory extends Host {
4
+ constructor(CanvasKit) {
5
+ super(CanvasKit);
6
+ }
7
+
8
+ Make(width, height) {
9
+ const surface = this.CanvasKit.MakeSurface(width, height);
10
+
11
+ if (!surface) {
12
+ throw new Error("Could not create surface");
13
+ }
14
+
15
+ return new JsiSkSurface(this.CanvasKit, surface);
16
+ }
17
+
18
+ }
19
+ //# sourceMappingURL=JsiSkSurfaceFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkSurfaceFactory.ts"],"names":["Host","JsiSkSurface","JsiSkSurfaceFactory","constructor","CanvasKit","Make","width","height","surface","MakeSurface","Error"],"mappings":"AAIA,SAASA,IAAT,QAAqB,QAArB;AACA,SAASC,YAAT,QAA6B,gBAA7B;AAEA,OAAO,MAAMC,mBAAN,SAAkCF,IAAlC,CAAiE;AACtEG,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,IAAI,CAACC,KAAD,EAAgBC,MAAhB,EAAgC;AAClC,UAAMC,OAAO,GAAG,KAAKJ,SAAL,CAAeK,WAAf,CAA2BH,KAA3B,EAAkCC,MAAlC,CAAhB;;AACA,QAAI,CAACC,OAAL,EAAc;AACZ,YAAM,IAAIE,KAAJ,CAAU,0BAAV,CAAN;AACD;;AACD,WAAO,IAAIT,YAAJ,CAAiB,KAAKG,SAAtB,EAAiCI,OAAjC,CAAP;AACD;;AAXqE","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SurfaceFactory } from \"../../types\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkSurface } from \"./JsiSkSurface\";\n\nexport class JsiSkSurfaceFactory extends Host implements SurfaceFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n Make(width: number, height: number) {\n const surface = this.CanvasKit.MakeSurface(width, height);\n if (!surface) {\n throw new Error(\"Could not create surface\");\n }\n return new JsiSkSurface(this.CanvasKit, surface);\n }\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { JsiSkPaint } from "./JsiSkPaint";
2
+ import { JsiSkRect } from "./JsiSkRect";
3
+ import { Color } from "./JsiSkColor";
4
+ import { JsiSkSurfaceFactory } from "./JsiSkSurfaceFactory";
5
+ export const JsiSkApi = CanvasKit => ({
6
+ Paint: () => new JsiSkPaint(CanvasKit, new CanvasKit.Paint()),
7
+ XYWHRect: (x, y, width, height) => {
8
+ return new JsiSkRect(CanvasKit, CanvasKit.XYWHRect(x, y, width, height));
9
+ },
10
+ Color: Color.bind(null, CanvasKit),
11
+ Surface: new JsiSkSurfaceFactory(CanvasKit)
12
+ });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":["JsiSkPaint","JsiSkRect","Color","JsiSkSurfaceFactory","JsiSkApi","CanvasKit","Paint","XYWHRect","x","y","width","height","bind","Surface"],"mappings":"AAEA,SAASA,UAAT,QAA2B,cAA3B;AACA,SAASC,SAAT,QAA0B,aAA1B;AACA,SAASC,KAAT,QAAsB,cAAtB;AACA,SAASC,mBAAT,QAAoC,uBAApC;AAEA,OAAO,MAAMC,QAAQ,GAAIC,SAAD,KAA2B;AACjDC,EAAAA,KAAK,EAAE,MAAM,IAAIN,UAAJ,CAAeK,SAAf,EAA0B,IAAIA,SAAS,CAACC,KAAd,EAA1B,CADoC;AAEjDC,EAAAA,QAAQ,EAAE,CAACC,CAAD,EAAYC,CAAZ,EAAuBC,KAAvB,EAAsCC,MAAtC,KAAyD;AACjE,WAAO,IAAIV,SAAJ,CAAcI,SAAd,EAAyBA,SAAS,CAACE,QAAV,CAAmBC,CAAnB,EAAsBC,CAAtB,EAAyBC,KAAzB,EAAgCC,MAAhC,CAAzB,CAAP;AACD,GAJgD;AAKjDT,EAAAA,KAAK,EAAEA,KAAK,CAACU,IAAN,CAAW,IAAX,EAAiBP,SAAjB,CAL0C;AAMjDQ,EAAAA,OAAO,EAAE,IAAIV,mBAAJ,CAAwBE,SAAxB;AANwC,CAA3B,CAAjB","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport { JsiSkPaint } from \"./JsiSkPaint\";\nimport { JsiSkRect } from \"./JsiSkRect\";\nimport { Color } from \"./JsiSkColor\";\nimport { JsiSkSurfaceFactory } from \"./JsiSkSurfaceFactory\";\n\nexport const JsiSkApi = (CanvasKit: CanvasKit) => ({\n Paint: () => new JsiSkPaint(CanvasKit, new CanvasKit.Paint()),\n XYWHRect: (x: number, y: number, width: number, height: number) => {\n return new JsiSkRect(CanvasKit, CanvasKit.XYWHRect(x, y, width, height));\n },\n Color: Color.bind(null, CanvasKit),\n Surface: new JsiSkSurfaceFactory(CanvasKit),\n});\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./api";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAd","sourcesContent":["export * from \"./api\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["useValue.ts"],"names":["useMemo","ValueApi","useValue","v","createValue"],"mappings":"AAAA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,QAAT,QAAyB,QAAzB;;AAGA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,QAAQ,GAAOC,CAAJ,IAA2B;AACjD;AACA,SAAOH,OAAO,CAAC,MAAMC,QAAQ,CAACG,WAAT,CAAqBD,CAArB,CAAP,EAAgC,EAAhC,CAAd;AACD,CAHM","sourcesContent":["import { useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\nimport type { SkiaValue } from \"../types\";\n\n/**\n * Creates a new value that holds some data.\n * @param v Value to hold\n * @returns A Value of type of v\n */\nexport const useValue = <T>(v: T): SkiaValue<T> => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useMemo(() => ValueApi.createValue(v), []);\n};\n"]}
1
+ {"version":3,"sources":["useValue.ts"],"names":["useMemo","ValueApi","useValue","v","createValue"],"mappings":"AAAA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,QAAT,QAAyB,QAAzB;;AAGA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,QAAQ,GAAOC,CAAJ,IAAkC;AACxD;AACA,SAAOH,OAAO,CAAC,MAAMC,QAAQ,CAACG,WAAT,CAAqBD,CAArB,CAAP,EAAgC,EAAhC,CAAd;AACD,CAHM","sourcesContent":["import { useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\nimport type { SkiaMutableValue } from \"../types\";\n\n/**\n * Creates a new value that holds some data.\n * @param v Value to hold\n * @returns A Value of type of v\n */\nexport const useValue = <T>(v: T): SkiaMutableValue<T> => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useMemo(() => ValueApi.createValue(v), []);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["useValueEffect.ts"],"names":["useEffect","useValueEffect","value","cb","addListener"],"mappings":"AAAA,SAASA,SAAT,QAA0B,OAA1B;;AAIA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAG,CAC5BC,KAD4B,EAE5BC,EAF4B,KAGzB;AACHH,EAAAA,SAAS,CAAC,MAAM;AACd,WAAOE,KAAK,CAACE,WAAN,CAAkBD,EAAlB,CAAP,CADc,CAEd;AACD,GAHQ,EAGN,CAACD,KAAD,CAHM,CAAT;AAID,CARM","sourcesContent":["import { useEffect } from \"react\";\n\nimport type { SkiaReadonlyValue } from \"../types\";\n\n/**\n * Sets up an effect that will be run whenever the value changes\n * @param value Value to subscribe to changes on\n * @param cb Callback to run when value changes\n */\nexport const useValueEffect = <T>(\n value: SkiaReadonlyValue<T>,\n cb: (v: T) => void\n) => {\n useEffect(() => {\n return value.addListener(cb);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n};\n"]}
1
+ {"version":3,"sources":["useValueEffect.ts"],"names":["useEffect","useValueEffect","value","cb","addListener"],"mappings":"AAAA,SAASA,SAAT,QAA0B,OAA1B;;AAIA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAG,CAAIC,KAAJ,EAAyBC,EAAzB,KAAgD;AAC5EH,EAAAA,SAAS,CAAC,MAAM;AACd,WAAOE,KAAK,CAACE,WAAN,CAAkBD,EAAlB,CAAP,CADc,CAEd;AACD,GAHQ,EAGN,CAACD,KAAD,CAHM,CAAT;AAID,CALM","sourcesContent":["import { useEffect } from \"react\";\n\nimport type { SkiaValue } from \"../types\";\n\n/**\n * Sets up an effect that will be run whenever the value changes\n * @param value Value to subscribe to changes on\n * @param cb Callback to run when value changes\n */\nexport const useValueEffect = <T>(value: SkiaValue<T>, cb: (v: T) => void) => {\n useEffect(() => {\n return value.addListener(cb);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["RNSkReadonlyValue.ts"],"names":["RNSkReadonlyValue","constructor","value","_current","notifyListeners","_listeners","forEach","cb","update","nextValue","current","addListener","push","splice","indexOf"],"mappings":";;AAEA,OAAO,MAAMA,iBAAN,CAA2D;AAChEC,EAAAA,WAAW,CAACC,KAAD,EAAW;AAAA;;AAAA,wCAK0B,EAL1B;;AAAA,0CAgBS,WAhBT;;AACpB,SAAKC,QAAL,GAAgBD,KAAhB;AACD;;AAKOE,EAAAA,eAAe,GAAS;AAC9B,SAAKC,UAAL,CAAgBC,OAAhB,CAAyBC,EAAD,IAAQA,EAAE,CAAC,KAAKJ,QAAN,CAAlC;AACD;;AAESK,EAAAA,MAAM,CAACC,SAAD,EAAqB;AACnC,SAAKN,QAAL,GAAgBM,SAAhB;AACA,SAAKL,eAAL;AACD;;AAIiB,MAAPM,OAAO,GAAM;AACtB,WAAO,KAAKP,QAAZ;AACD;;AAEMQ,EAAAA,WAAW,CAACJ,EAAD,EAAyB;AACzC,SAAKF,UAAL,CAAgBO,IAAhB,CAAqBL,EAArB;;AACA,WAAO,MAAM;AACX,WAAKF,UAAL,CAAgBQ,MAAhB,CAAuB,KAAKR,UAAL,CAAgBS,OAAhB,CAAwBP,EAAxB,CAAvB,EAAoD,CAApD;AACD,KAFD;AAGD;;AA5B+D","sourcesContent":["import type { SkiaReadonlyValue } from \"../types\";\n\nexport class RNSkReadonlyValue<T> implements SkiaReadonlyValue<T> {\n constructor(value: T) {\n this._current = value;\n }\n\n private _current: T;\n private _listeners: Array<(value: T) => void> = [];\n\n private notifyListeners(): void {\n this._listeners.forEach((cb) => cb(this._current));\n }\n\n protected update(nextValue: T): void {\n this._current = nextValue;\n this.notifyListeners();\n }\n\n public readonly __typename__ = \"RNSkValue\";\n\n public get current(): T {\n return this._current;\n }\n\n public addListener(cb: (value: T) => void) {\n this._listeners.push(cb);\n return () => {\n this._listeners.splice(this._listeners.indexOf(cb), 1);\n };\n }\n}\n"]}
1
+ {"version":3,"sources":["RNSkReadonlyValue.ts"],"names":["RNSkReadonlyValue","constructor","value","_current","notifyListeners","_listeners","forEach","cb","update","nextValue","current","addListener","push","splice","indexOf"],"mappings":";;AAEA,OAAO,MAAMA,iBAAN,CAAmD;AACxDC,EAAAA,WAAW,CAACC,KAAD,EAAW;AAAA;;AAAA,wCAK0B,EAL1B;;AAAA,0CAgBS,WAhBT;;AACpB,SAAKC,QAAL,GAAgBD,KAAhB;AACD;;AAKOE,EAAAA,eAAe,GAAS;AAC9B,SAAKC,UAAL,CAAgBC,OAAhB,CAAyBC,EAAD,IAAQA,EAAE,CAAC,KAAKJ,QAAN,CAAlC;AACD;;AAESK,EAAAA,MAAM,CAACC,SAAD,EAAqB;AACnC,SAAKN,QAAL,GAAgBM,SAAhB;AACA,SAAKL,eAAL;AACD;;AAIiB,MAAPM,OAAO,GAAM;AACtB,WAAO,KAAKP,QAAZ;AACD;;AAEMQ,EAAAA,WAAW,CAACJ,EAAD,EAAyB;AACzC,SAAKF,UAAL,CAAgBO,IAAhB,CAAqBL,EAArB;;AACA,WAAO,MAAM;AACX,WAAKF,UAAL,CAAgBQ,MAAhB,CAAuB,KAAKR,UAAL,CAAgBS,OAAhB,CAAwBP,EAAxB,CAAvB,EAAoD,CAApD;AACD,KAFD;AAGD;;AA5BuD","sourcesContent":["import type { SkiaValue } from \"../types\";\n\nexport class RNSkReadonlyValue<T> implements SkiaValue<T> {\n constructor(value: T) {\n this._current = value;\n }\n\n private _current: T;\n private _listeners: Array<(value: T) => void> = [];\n\n private notifyListeners(): void {\n this._listeners.forEach((cb) => cb(this._current));\n }\n\n protected update(nextValue: T): void {\n this._current = nextValue;\n this.notifyListeners();\n }\n\n public readonly __typename__ = \"RNSkValue\";\n\n public get current(): T {\n return this._current;\n }\n\n public addListener(cb: (value: T) => void) {\n this._listeners.push(cb);\n return () => {\n this._listeners.splice(this._listeners.indexOf(cb), 1);\n };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["api.ts"],"names":["RNSkAnimation","RNSkClockValue","RNSkDerivedValue","RNSkValue","ValueApi","createValue","initialValue","createDerivedValue","cb","values","createClockValue","requestAnimationFrame","createAnimation"],"mappings":"AASA,SAASA,aAAT,QAA8B,iBAA9B;AACA,SAASC,cAAT,QAA+B,kBAA/B;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AACA,SAASC,SAAT,QAA0B,aAA1B;AAEA,OAAO,MAAMC,QAAuB,GAAG;AACrCC,EAAAA,WAAW,EAAE,UAAaC,YAAb,EAA4C;AACvD,WAAO,IAAIH,SAAJ,CAAcG,YAAd,CAAP;AACD,GAHoC;AAIrCC,EAAAA,kBAAkB,EAAE,UAClBC,EADkB,EAElBC,MAFkB,EAGI;AACtB,WAAO,IAAIP,gBAAJ,CAAqBM,EAArB,EAAyBC,MAAzB,CAAP;AACD,GAToC;AAUrCC,EAAAA,gBAAgB,EAAE,YAA4B;AAC5C,WAAO,IAAIT,cAAJ,CAAmBU,qBAAnB,CAAP;AACD,GAZoC;AAarCC,EAAAA,eAAe,EAAE,UACfJ,EADe,EAEA;AACf,WAAO,IAAIR,aAAJ,CAAkBQ,EAAlB,EAAsBG,qBAAtB,CAAP;AACD;AAjBoC,CAAhC","sourcesContent":["import type {\n ISkiaValueApi,\n SkiaValue,\n SkiaReadonlyValue,\n SkiaClockValue,\n AnimationState,\n SkiaAnimation,\n} from \"../types\";\n\nimport { RNSkAnimation } from \"./RNSkAnimation\";\nimport { RNSkClockValue } from \"./RNSkClockValue\";\nimport { RNSkDerivedValue } from \"./RNSkDerivedValue\";\nimport { RNSkValue } from \"./RNSkValue\";\n\nexport const ValueApi: ISkiaValueApi = {\n createValue: function <T>(initialValue: T): SkiaValue<T> {\n return new RNSkValue(initialValue);\n },\n createDerivedValue: function <R>(\n cb: () => R,\n values: SkiaReadonlyValue<unknown>[]\n ): SkiaReadonlyValue<R> {\n return new RNSkDerivedValue(cb, values);\n },\n createClockValue: function (): SkiaClockValue {\n return new RNSkClockValue(requestAnimationFrame);\n },\n createAnimation: function <S extends AnimationState = AnimationState>(\n cb: (t: number, state: S | undefined) => S\n ): SkiaAnimation {\n return new RNSkAnimation(cb, requestAnimationFrame);\n },\n};\n"]}
1
+ {"version":3,"sources":["api.ts"],"names":["RNSkAnimation","RNSkClockValue","RNSkDerivedValue","RNSkValue","ValueApi","createValue","initialValue","createDerivedValue","cb","values","createClockValue","requestAnimationFrame","createAnimation"],"mappings":"AASA,SAASA,aAAT,QAA8B,iBAA9B;AACA,SAASC,cAAT,QAA+B,kBAA/B;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AACA,SAASC,SAAT,QAA0B,aAA1B;AAEA,OAAO,MAAMC,QAAuB,GAAG;AACrCC,EAAAA,WAAW,EAAE,UAAaC,YAAb,EAAmD;AAC9D,WAAO,IAAIH,SAAJ,CAAcG,YAAd,CAAP;AACD,GAHoC;AAIrCC,EAAAA,kBAAkB,EAAE,UAClBC,EADkB,EAElBC,MAFkB,EAGJ;AACd,WAAO,IAAIP,gBAAJ,CAAqBM,EAArB,EAAyBC,MAAzB,CAAP;AACD,GAToC;AAUrCC,EAAAA,gBAAgB,EAAE,YAA4B;AAC5C,WAAO,IAAIT,cAAJ,CAAmBU,qBAAnB,CAAP;AACD,GAZoC;AAarCC,EAAAA,eAAe,EAAE,UACfJ,EADe,EAEA;AACf,WAAO,IAAIR,aAAJ,CAAkBQ,EAAlB,EAAsBG,qBAAtB,CAAP;AACD;AAjBoC,CAAhC","sourcesContent":["import type {\n ISkiaValueApi,\n SkiaMutableValue,\n SkiaValue,\n SkiaClockValue,\n AnimationState,\n SkiaAnimation,\n} from \"../types\";\n\nimport { RNSkAnimation } from \"./RNSkAnimation\";\nimport { RNSkClockValue } from \"./RNSkClockValue\";\nimport { RNSkDerivedValue } from \"./RNSkDerivedValue\";\nimport { RNSkValue } from \"./RNSkValue\";\n\nexport const ValueApi: ISkiaValueApi = {\n createValue: function <T>(initialValue: T): SkiaMutableValue<T> {\n return new RNSkValue(initialValue);\n },\n createDerivedValue: function <R>(\n cb: () => R,\n values: SkiaValue<unknown>[]\n ): SkiaValue<R> {\n return new RNSkDerivedValue(cb, values);\n },\n createClockValue: function (): SkiaClockValue {\n return new RNSkClockValue(requestAnimationFrame);\n },\n createAnimation: function <S extends AnimationState = AnimationState>(\n cb: (t: number, state: S | undefined) => S\n ): SkiaAnimation {\n return new RNSkAnimation(cb, requestAnimationFrame);\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["SkiaView.tsx"],"names":["React","requireNativeComponent","SkiaViewApi","SkiaViewNativeId","NativeSkiaView","SkiaView","Component","constructor","props","_nativeId","onDraw","assertDrawCallbacksEnabled","setDrawCallback","nativeId","componentDidUpdate","prevProps","makeImageSnapshot","rect","redraw","invalidateSkiaView","setDrawMode","mode","registerValues","values","registerValuesInView","render","debug","viewProps","Error"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,sBAAT,QAAuC,cAAvC;AAKA,SAASC,WAAT,QAA4B,OAA5B;AAGA,IAAIC,gBAAgB,GAAG,IAAvB;AAEA,MAAMC,cAAc,GAAGH,sBAAsB,CAC3C,qBAD2C,CAA7C;AAIA,OAAO,MAAMI,QAAN,SAAuBL,KAAK,CAACM,SAA7B,CAAsD;AAC3DC,EAAAA,WAAW,CAACC,KAAD,EAAuB;AAChC,UAAMA,KAAN;;AADgC;;AAEhC,SAAKC,SAAL,GAAiBN,gBAAgB,EAAjC;AACA,UAAM;AAAEO,MAAAA;AAAF,QAAaF,KAAnB;;AACA,QAAIE,MAAJ,EAAY;AACVC,MAAAA,0BAA0B;AAC1BT,MAAAA,WAAW,CAACU,eAAZ,CAA4B,KAAKH,SAAjC,EAA4CC,MAA5C;AACD;AACF;;AAIkB,MAARG,QAAQ,GAAG;AACpB,WAAO,KAAKJ,SAAZ;AACD;;AAEDK,EAAAA,kBAAkB,CAACC,SAAD,EAA2B;AAC3C,UAAM;AAAEL,MAAAA;AAAF,QAAa,KAAKF,KAAxB;;AACA,QAAIE,MAAM,KAAKK,SAAS,CAACL,MAAzB,EAAiC;AAC/BC,MAAAA,0BAA0B;AAC1BT,MAAAA,WAAW,CAACU,eAAZ,CAA4B,KAAKH,SAAjC,EAA4CC,MAA5C;AACD;AACF;AAED;AACF;AACA;AACA;AACA;;;AACSM,EAAAA,iBAAiB,CAACC,IAAD,EAAgB;AACtCN,IAAAA,0BAA0B;AAC1B,WAAOT,WAAW,CAACc,iBAAZ,CAA8B,KAAKP,SAAnC,EAA8CQ,IAA9C,CAAP;AACD;AAED;AACF;AACA;;;AACSC,EAAAA,MAAM,GAAG;AACdP,IAAAA,0BAA0B;AAC1BT,IAAAA,WAAW,CAACiB,kBAAZ,CAA+B,KAAKV,SAApC;AACD;AAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACSW,EAAAA,WAAW,CAACC,IAAD,EAAiB;AACjCV,IAAAA,0BAA0B;AAC1BT,IAAAA,WAAW,CAACkB,WAAZ,CAAwB,KAAKX,SAA7B,EAAwCY,IAAxC;AACD;AAED;AACF;AACA;AACA;AACA;;;AACSC,EAAAA,cAAc,CAACC,MAAD,EAAuC;AAC1DZ,IAAAA,0BAA0B;AAC1B,WAAOT,WAAW,CAACsB,oBAAZ,CAAiC,KAAKf,SAAtC,EAAiDc,MAAjD,CAAP;AACD;;AAEDE,EAAAA,MAAM,GAAG;AACP,UAAM;AAAEJ,MAAAA,IAAF;AAAQK,MAAAA,KAAK,GAAG,KAAhB;AAAuB,SAAGC;AAA1B,QAAwC,KAAKnB,KAAnD;AACA,wBACE,oBAAC,cAAD;AACE,MAAA,WAAW,EAAE,KADf;AAEE,MAAA,QAAQ,EAAG,GAAE,KAAKC,SAAU,EAF9B;AAGE,MAAA,IAAI,EAAEY,IAHR;AAIE,MAAA,KAAK,EAAEK;AAJT,OAKMC,SALN,EADF;AASD;;AA9E0D;;AAiF7D,MAAMhB,0BAA0B,GAAG,MAAM;AACvC,MACET,WAAW,KAAK,IAAhB,IACAA,WAAW,CAACU,eAAZ,IAA+B,IAD/B,IAEAV,WAAW,CAACiB,kBAAZ,IAAkC,IAHpC,EAIE;AACA,UAAMS,KAAK,CAAC,0BAAD,CAAX;AACD;AACF,CARD","sourcesContent":["import React from \"react\";\nimport { requireNativeComponent } from \"react-native\";\n\nimport type { SkRect } from \"../skia\";\nimport type { SkiaReadonlyValue } from \"../values\";\n\nimport { SkiaViewApi } from \"./api\";\nimport type { DrawMode, NativeSkiaViewProps, SkiaViewProps } from \"./types\";\n\nlet SkiaViewNativeId = 1000;\n\nconst NativeSkiaView = requireNativeComponent<NativeSkiaViewProps>(\n \"ReactNativeSkiaView\"\n);\n\nexport class SkiaView extends React.Component<SkiaViewProps> {\n constructor(props: SkiaViewProps) {\n super(props);\n this._nativeId = SkiaViewNativeId++;\n const { onDraw } = props;\n if (onDraw) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawCallback(this._nativeId, onDraw);\n }\n }\n\n private _nativeId: number;\n\n public get nativeId() {\n return this._nativeId;\n }\n\n componentDidUpdate(prevProps: SkiaViewProps) {\n const { onDraw } = this.props;\n if (onDraw !== prevProps.onDraw) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawCallback(this._nativeId, onDraw);\n }\n }\n\n /**\n * Creates a snapshot from the canvas in the surface\n * @param rect Rect to use as bounds. Optional.\n * @returns An Image object.\n */\n public makeImageSnapshot(rect?: SkRect) {\n assertDrawCallbacksEnabled();\n return SkiaViewApi.makeImageSnapshot(this._nativeId, rect);\n }\n\n /**\n * Sends a redraw request to the native SkiaView.\n */\n public redraw() {\n assertDrawCallbacksEnabled();\n SkiaViewApi.invalidateSkiaView(this._nativeId);\n }\n\n /**\n * Updates the drawing mode for the skia view. This is the same\n * as declaratively setting the mode property on the SkiaView.\n * There are two drawing modes, \"continuous\" and \"default\",\n * where the continuous mode will continuously redraw the view and\n * the default mode will only redraw when any of the regular react\n * properties are changed like size and margins.\n * @param mode Drawing mode to use.\n */\n public setDrawMode(mode: DrawMode) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawMode(this._nativeId, mode);\n }\n\n /**\n * Registers one or move values as a dependant value of the Skia View. The view will\n * The view will redraw itself when any of the values change.\n * @param values Values to register\n */\n public registerValues(values: SkiaReadonlyValue<unknown>[]) {\n assertDrawCallbacksEnabled();\n return SkiaViewApi.registerValuesInView(this._nativeId, values);\n }\n\n render() {\n const { mode, debug = false, ...viewProps } = this.props;\n return (\n <NativeSkiaView\n collapsable={false}\n nativeID={`${this._nativeId}`}\n mode={mode}\n debug={debug}\n {...viewProps}\n />\n );\n }\n}\n\nconst assertDrawCallbacksEnabled = () => {\n if (\n SkiaViewApi === null ||\n SkiaViewApi.setDrawCallback == null ||\n SkiaViewApi.invalidateSkiaView == null\n ) {\n throw Error(\"Skia Api is not enabled.\");\n }\n};\n"]}
1
+ {"version":3,"sources":["SkiaView.tsx"],"names":["React","requireNativeComponent","SkiaViewApi","SkiaViewNativeId","NativeSkiaView","SkiaView","Component","constructor","props","_nativeId","onDraw","assertDrawCallbacksEnabled","setDrawCallback","nativeId","componentDidUpdate","prevProps","makeImageSnapshot","rect","redraw","invalidateSkiaView","setDrawMode","mode","registerValues","values","registerValuesInView","render","debug","viewProps","Error"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,sBAAT,QAAuC,cAAvC;AAKA,SAASC,WAAT,QAA4B,OAA5B;AAGA,IAAIC,gBAAgB,GAAG,IAAvB;AAEA,MAAMC,cAAc,GAAGH,sBAAsB,CAC3C,qBAD2C,CAA7C;AAIA,OAAO,MAAMI,QAAN,SAAuBL,KAAK,CAACM,SAA7B,CAAsD;AAC3DC,EAAAA,WAAW,CAACC,KAAD,EAAuB;AAChC,UAAMA,KAAN;;AADgC;;AAEhC,SAAKC,SAAL,GAAiBN,gBAAgB,EAAjC;AACA,UAAM;AAAEO,MAAAA;AAAF,QAAaF,KAAnB;;AACA,QAAIE,MAAJ,EAAY;AACVC,MAAAA,0BAA0B;AAC1BT,MAAAA,WAAW,CAACU,eAAZ,CAA4B,KAAKH,SAAjC,EAA4CC,MAA5C;AACD;AACF;;AAIkB,MAARG,QAAQ,GAAG;AACpB,WAAO,KAAKJ,SAAZ;AACD;;AAEDK,EAAAA,kBAAkB,CAACC,SAAD,EAA2B;AAC3C,UAAM;AAAEL,MAAAA;AAAF,QAAa,KAAKF,KAAxB;;AACA,QAAIE,MAAM,KAAKK,SAAS,CAACL,MAAzB,EAAiC;AAC/BC,MAAAA,0BAA0B;AAC1BT,MAAAA,WAAW,CAACU,eAAZ,CAA4B,KAAKH,SAAjC,EAA4CC,MAA5C;AACD;AACF;AAED;AACF;AACA;AACA;AACA;;;AACSM,EAAAA,iBAAiB,CAACC,IAAD,EAAgB;AACtCN,IAAAA,0BAA0B;AAC1B,WAAOT,WAAW,CAACc,iBAAZ,CAA8B,KAAKP,SAAnC,EAA8CQ,IAA9C,CAAP;AACD;AAED;AACF;AACA;;;AACSC,EAAAA,MAAM,GAAG;AACdP,IAAAA,0BAA0B;AAC1BT,IAAAA,WAAW,CAACiB,kBAAZ,CAA+B,KAAKV,SAApC;AACD;AAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACSW,EAAAA,WAAW,CAACC,IAAD,EAAiB;AACjCV,IAAAA,0BAA0B;AAC1BT,IAAAA,WAAW,CAACkB,WAAZ,CAAwB,KAAKX,SAA7B,EAAwCY,IAAxC;AACD;AAED;AACF;AACA;AACA;AACA;;;AACSC,EAAAA,cAAc,CAACC,MAAD,EAA+B;AAClDZ,IAAAA,0BAA0B;AAC1B,WAAOT,WAAW,CAACsB,oBAAZ,CAAiC,KAAKf,SAAtC,EAAiDc,MAAjD,CAAP;AACD;;AAEDE,EAAAA,MAAM,GAAG;AACP,UAAM;AAAEJ,MAAAA,IAAF;AAAQK,MAAAA,KAAK,GAAG,KAAhB;AAAuB,SAAGC;AAA1B,QAAwC,KAAKnB,KAAnD;AACA,wBACE,oBAAC,cAAD;AACE,MAAA,WAAW,EAAE,KADf;AAEE,MAAA,QAAQ,EAAG,GAAE,KAAKC,SAAU,EAF9B;AAGE,MAAA,IAAI,EAAEY,IAHR;AAIE,MAAA,KAAK,EAAEK;AAJT,OAKMC,SALN,EADF;AASD;;AA9E0D;;AAiF7D,MAAMhB,0BAA0B,GAAG,MAAM;AACvC,MACET,WAAW,KAAK,IAAhB,IACAA,WAAW,CAACU,eAAZ,IAA+B,IAD/B,IAEAV,WAAW,CAACiB,kBAAZ,IAAkC,IAHpC,EAIE;AACA,UAAMS,KAAK,CAAC,0BAAD,CAAX;AACD;AACF,CARD","sourcesContent":["import React from \"react\";\nimport { requireNativeComponent } from \"react-native\";\n\nimport type { SkRect } from \"../skia/types\";\nimport type { SkiaValue } from \"../values\";\n\nimport { SkiaViewApi } from \"./api\";\nimport type { DrawMode, NativeSkiaViewProps, SkiaViewProps } from \"./types\";\n\nlet SkiaViewNativeId = 1000;\n\nconst NativeSkiaView = requireNativeComponent<NativeSkiaViewProps>(\n \"ReactNativeSkiaView\"\n);\n\nexport class SkiaView extends React.Component<SkiaViewProps> {\n constructor(props: SkiaViewProps) {\n super(props);\n this._nativeId = SkiaViewNativeId++;\n const { onDraw } = props;\n if (onDraw) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawCallback(this._nativeId, onDraw);\n }\n }\n\n private _nativeId: number;\n\n public get nativeId() {\n return this._nativeId;\n }\n\n componentDidUpdate(prevProps: SkiaViewProps) {\n const { onDraw } = this.props;\n if (onDraw !== prevProps.onDraw) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawCallback(this._nativeId, onDraw);\n }\n }\n\n /**\n * Creates a snapshot from the canvas in the surface\n * @param rect Rect to use as bounds. Optional.\n * @returns An Image object.\n */\n public makeImageSnapshot(rect?: SkRect) {\n assertDrawCallbacksEnabled();\n return SkiaViewApi.makeImageSnapshot(this._nativeId, rect);\n }\n\n /**\n * Sends a redraw request to the native SkiaView.\n */\n public redraw() {\n assertDrawCallbacksEnabled();\n SkiaViewApi.invalidateSkiaView(this._nativeId);\n }\n\n /**\n * Updates the drawing mode for the skia view. This is the same\n * as declaratively setting the mode property on the SkiaView.\n * There are two drawing modes, \"continuous\" and \"default\",\n * where the continuous mode will continuously redraw the view and\n * the default mode will only redraw when any of the regular react\n * properties are changed like size and margins.\n * @param mode Drawing mode to use.\n */\n public setDrawMode(mode: DrawMode) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawMode(this._nativeId, mode);\n }\n\n /**\n * Registers one or move values as a dependant value of the Skia View. The view will\n * The view will redraw itself when any of the values change.\n * @param values Values to register\n */\n public registerValues(values: SkiaValue<unknown>[]) {\n assertDrawCallbacksEnabled();\n return SkiaViewApi.registerValuesInView(this._nativeId, values);\n }\n\n render() {\n const { mode, debug = false, ...viewProps } = this.props;\n return (\n <NativeSkiaView\n collapsable={false}\n nativeID={`${this._nativeId}`}\n mode={mode}\n debug={debug}\n {...viewProps}\n />\n );\n }\n}\n\nconst assertDrawCallbacksEnabled = () => {\n if (\n SkiaViewApi === null ||\n SkiaViewApi.setDrawCallback == null ||\n SkiaViewApi.invalidateSkiaView == null\n ) {\n throw Error(\"Skia Api is not enabled.\");\n }\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["types.ts"],"names":["TouchType"],"mappings":"AAaA,WAAYA,SAAZ;;WAAYA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;GAAAA,S,KAAAA,S","sourcesContent":["import type { ViewProps } from \"react-native\";\n\nimport type { SkImage, SkRect } from \"../skia\";\nimport type { SkCanvas } from \"../skia/Canvas\";\nimport type { SkiaReadonlyValue } from \"../values\";\n\nexport type DrawMode = \"continuous\" | \"default\";\n\nexport type NativeSkiaViewProps = ViewProps & {\n mode?: DrawMode;\n debug?: boolean;\n};\n\nexport enum TouchType {\n Start,\n Active,\n End,\n Cancelled,\n}\n\nexport interface TouchInfo {\n x: number;\n y: number;\n force: number;\n type: TouchType;\n timestamp: number;\n}\n\nexport interface DrawingInfo {\n width: number;\n height: number;\n timestamp: number;\n touches: Array<Array<TouchInfo>>;\n}\n\nexport type ExtendedTouchInfo = TouchInfo & {\n // points per second\n velocityX: number;\n velocityY: number;\n};\n\nexport type TouchHandlers = {\n onStart?: (touchInfo: TouchInfo) => void;\n onActive?: (touchInfo: ExtendedTouchInfo) => void;\n onEnd?: (touchInfo: ExtendedTouchInfo) => void;\n};\n\nexport type TouchHandler = (touchInfo: Array<Array<TouchInfo>>) => void;\n\nexport type RNSkiaDrawCallback = (canvas: SkCanvas, info: DrawingInfo) => void;\n\n/**\n * Listener interface for value changes\n */\nexport interface ValueListener {\n addListener: (callback: () => void) => number;\n removeListener: (id: number) => void;\n}\n\nexport interface ISkiaViewApi {\n invalidateSkiaView: (nativeId: number) => void;\n makeImageSnapshot: (nativeId: number, rect?: SkRect) => SkImage;\n setDrawCallback: (\n nativeId: number,\n callback: RNSkiaDrawCallback | undefined\n ) => void;\n setDrawMode: (nativeId: number, mode: DrawMode) => void;\n registerValuesInView: (\n nativeId: number,\n values: SkiaReadonlyValue<unknown>[]\n ) => () => void;\n}\n\nexport interface SkiaViewProps extends ViewProps {\n /**\n * Sets the drawing mode for the skia view. There are two drawing\n * modes, \"continuous\" and \"default\", where the continuous mode will\n * continuously redraw the view, and the default mode will only\n * redraw when any of the regular react properties are changed like\n * sizes and margins.\n */\n mode?: DrawMode;\n /**\n * When set to true the view will display information about the\n * average time it takes to render.\n */\n debug?: boolean;\n /**\n * Draw callback. Will be called whenever the view is invalidated and\n * needs to redraw. This is either caused by a change in a react\n * property, a touch event, or a call to redraw. If the view is in\n * continuous mode the callback will be called 60 frames per second\n * by the native view.\n */\n onDraw?: RNSkiaDrawCallback;\n}\n"]}
1
+ {"version":3,"sources":["types.ts"],"names":["TouchType"],"mappings":"AAYA,WAAYA,SAAZ;;WAAYA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;GAAAA,S,KAAAA,S","sourcesContent":["import type { ViewProps } from \"react-native\";\n\nimport type { SkImage, SkRect, SkCanvas } from \"../skia/types\";\nimport type { SkiaValue } from \"../values\";\n\nexport type DrawMode = \"continuous\" | \"default\";\n\nexport type NativeSkiaViewProps = ViewProps & {\n mode?: DrawMode;\n debug?: boolean;\n};\n\nexport enum TouchType {\n Start,\n Active,\n End,\n Cancelled,\n}\n\nexport interface TouchInfo {\n x: number;\n y: number;\n force: number;\n type: TouchType;\n timestamp: number;\n}\n\nexport interface DrawingInfo {\n width: number;\n height: number;\n timestamp: number;\n touches: Array<Array<TouchInfo>>;\n}\n\nexport type ExtendedTouchInfo = TouchInfo & {\n // points per second\n velocityX: number;\n velocityY: number;\n};\n\nexport type TouchHandlers = {\n onStart?: (touchInfo: TouchInfo) => void;\n onActive?: (touchInfo: ExtendedTouchInfo) => void;\n onEnd?: (touchInfo: ExtendedTouchInfo) => void;\n};\n\nexport type TouchHandler = (touchInfo: Array<Array<TouchInfo>>) => void;\n\nexport type RNSkiaDrawCallback = (canvas: SkCanvas, info: DrawingInfo) => void;\n\n/**\n * Listener interface for value changes\n */\nexport interface ValueListener {\n addListener: (callback: () => void) => number;\n removeListener: (id: number) => void;\n}\n\nexport interface ISkiaViewApi {\n invalidateSkiaView: (nativeId: number) => void;\n makeImageSnapshot: (nativeId: number, rect?: SkRect) => SkImage;\n setDrawCallback: (\n nativeId: number,\n callback: RNSkiaDrawCallback | undefined\n ) => void;\n setDrawMode: (nativeId: number, mode: DrawMode) => void;\n registerValuesInView: (\n nativeId: number,\n values: SkiaValue<unknown>[]\n ) => () => void;\n}\n\nexport interface SkiaViewProps extends ViewProps {\n /**\n * Sets the drawing mode for the skia view. There are two drawing\n * modes, \"continuous\" and \"default\", where the continuous mode will\n * continuously redraw the view, and the default mode will only\n * redraw when any of the regular react properties are changed like\n * sizes and margins.\n */\n mode?: DrawMode;\n /**\n * When set to true the view will display information about the\n * average time it takes to render.\n */\n debug?: boolean;\n /**\n * Draw callback. Will be called whenever the view is invalidated and\n * needs to redraw. This is either caused by a change in a react\n * property, a touch event, or a call to redraw. If the view is in\n * continuous mode the callback will be called 60 frames per second\n * by the native view.\n */\n onDraw?: RNSkiaDrawCallback;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { SkiaValue } from "../../values/types";
1
+ import type { SkiaMutableValue } from "../../values/types";
2
2
  import type { DecayConfig } from "./types";
3
3
  /**
4
4
  * Runs a decay animation from the current value to zero with the given decay
@@ -7,4 +7,4 @@ import type { DecayConfig } from "./types";
7
7
  * @param config Configuration or default configuration
8
8
  * @returns Animation
9
9
  */
10
- export declare const runDecay: (value: SkiaValue<number>, config?: DecayConfig | undefined) => import("../../values/types").SkiaAnimation;
10
+ export declare const runDecay: (value: SkiaMutableValue<number>, config?: DecayConfig | undefined) => import("../../values/types").SkiaAnimation;
@@ -1,4 +1,4 @@
1
- import type { SkiaValue, SkiaAnimation } from "../../values/types";
1
+ import type { SkiaMutableValue, SkiaAnimation } from "../../values/types";
2
2
  import type { AnimationParams, SpringConfig, AnimationCallback } from "../types";
3
3
  /**
4
4
  * Creates a new animation on an existing value that will be driven by
@@ -13,4 +13,4 @@ import type { AnimationParams, SpringConfig, AnimationCallback } from "../types"
13
13
  * @returns an animation value that can be used to start/stop
14
14
  * the animation.
15
15
  */
16
- export declare const runSpring: (value: SkiaValue<number>, toOrParams: number | AnimationParams, config?: SpringConfig | undefined, callback?: AnimationCallback | undefined) => SkiaAnimation;
16
+ export declare const runSpring: (value: SkiaMutableValue<number>, toOrParams: number | AnimationParams, config?: SpringConfig | undefined, callback?: AnimationCallback | undefined) => SkiaAnimation;
@@ -1,4 +1,4 @@
1
- import type { SkiaReadonlyValue } from "../../values/types";
1
+ import type { SkiaValue } from "../../values/types";
2
2
  import type { SpringConfig, AnimationParams, AnimationCallback } from "../types";
3
3
  /**
4
4
  * Creats a spring based animation value that will run whenever
@@ -7,4 +7,4 @@ import type { SpringConfig, AnimationParams, AnimationCallback } from "../types"
7
7
  * @param config
8
8
  * @returns
9
9
  */
10
- export declare const useSpring: (toOrParams: number | AnimationParams, config?: SpringConfig | undefined, callback?: AnimationCallback | undefined) => SkiaReadonlyValue<number>;
10
+ export declare const useSpring: (toOrParams: number | AnimationParams, config?: SpringConfig | undefined, callback?: AnimationCallback | undefined) => SkiaValue<number>;
@@ -1,5 +1,5 @@
1
1
  import type { TimingConfig, RequiredAnimationParams, AnimationCallback } from "../types";
2
- import type { SkiaValue } from "../../values/types";
2
+ import type { SkiaMutableValue } from "../../values/types";
3
3
  /**
4
4
  * Creates an animation that is driven by a clock value.
5
5
  * The value will be run from / to the value in params and modified
@@ -14,4 +14,4 @@ import type { SkiaValue } from "../../values/types";
14
14
  * @params an animation value that can be used to start/stop
15
15
  * the animation.
16
16
  */
17
- export declare const createTiming: (params: RequiredAnimationParams & Required<TimingConfig>, value?: SkiaValue<number> | undefined, callback?: AnimationCallback | undefined) => import("../../values/types").SkiaAnimation;
17
+ export declare const createTiming: (params: RequiredAnimationParams & Required<TimingConfig>, value?: SkiaMutableValue<number> | undefined, callback?: AnimationCallback | undefined) => import("../../values/types").SkiaAnimation;
@@ -1,4 +1,4 @@
1
- import type { SkiaValue, SkiaAnimation } from "../../values/types";
1
+ import type { SkiaMutableValue, SkiaAnimation } from "../../values/types";
2
2
  import type { AnimationParams, TimingConfig, AnimationCallback } from "../types";
3
3
  /**
4
4
  * Creates a new animation on an existing value that will be driven by
@@ -13,4 +13,4 @@ import type { AnimationParams, TimingConfig, AnimationCallback } from "../types"
13
13
  * @returns an animation value that can be used to start/stop
14
14
  * the animation.
15
15
  */
16
- export declare const runTiming: (value: SkiaValue<number>, toOrParams: number | AnimationParams, config?: TimingConfig | undefined, callback?: AnimationCallback | undefined) => SkiaAnimation;
16
+ export declare const runTiming: (value: SkiaMutableValue<number>, toOrParams: number | AnimationParams, config?: TimingConfig | undefined, callback?: AnimationCallback | undefined) => SkiaAnimation;
@@ -5,4 +5,4 @@ import type { TimingConfig } from "../types";
5
5
  * @param config Timing configuration for easing and duration
6
6
  * @returns A value that can be used for further animations
7
7
  */
8
- export declare const useLoop: (config?: TimingConfig | undefined) => import("../..").SkiaReadonlyValue<number>;
8
+ export declare const useLoop: (config?: TimingConfig | undefined) => import("../..").SkiaValue<number>;
@@ -1,4 +1,4 @@
1
- import type { SkiaReadonlyValue } from "../../values/types";
1
+ import type { SkiaValue } from "../../values/types";
2
2
  import type { AnimationParams, TimingConfig, AnimationCallback } from "../types";
3
3
  /**
4
4
  * Creats an animation value that will run whenever
@@ -7,4 +7,4 @@ import type { AnimationParams, TimingConfig, AnimationCallback } from "../types"
7
7
  * @param config
8
8
  * @returns A value that is animated
9
9
  */
10
- export declare const useTiming: (toOrParams: number | AnimationParams, config?: TimingConfig | undefined, callback?: AnimationCallback | undefined) => SkiaReadonlyValue<number>;
10
+ export declare const useTiming: (toOrParams: number | AnimationParams, config?: TimingConfig | undefined, callback?: AnimationCallback | undefined) => SkiaValue<number>;
@@ -3,16 +3,16 @@ import type { RefObject, ReactNode, ComponentProps } from "react";
3
3
  import ReactReconciler from "react-reconciler";
4
4
  import { SkiaView } from "../views";
5
5
  import type { TouchHandler } from "../views";
6
- import type { FontMgr } from "../skia/FontMgr/FontMgr";
7
- import type { SkiaReadonlyValue } from "../values/types";
6
+ import type { FontMgr } from "../skia";
7
+ import type { SkiaValue } from "../values/types";
8
8
  import { Container } from "./nodes";
9
9
  export declare const useCanvas: () => {
10
- size: SkiaReadonlyValue<{
10
+ size: SkiaValue<{
11
11
  width: number;
12
12
  height: number;
13
13
  }>;
14
14
  };
15
- export declare const useCanvasSize: () => SkiaReadonlyValue<{
15
+ export declare const useCanvasSize: () => SkiaValue<{
16
16
  width: number;
17
17
  height: number;
18
18
  }>;
@@ -1,6 +1,6 @@
1
1
  import type { RefObject } from "react";
2
2
  import type { SkiaView } from "../views";
3
- import type { SkiaReadonlyValue } from "../values";
3
+ import type { SkiaValue } from "../values";
4
4
  import type { Node } from "./nodes";
5
5
  declare type Unsubscribe = () => void;
6
6
  declare type Props = {
@@ -9,7 +9,7 @@ declare type Props = {
9
9
  export declare class DependencyManager {
10
10
  ref: RefObject<SkiaView>;
11
11
  subscriptions: Map<Node, {
12
- values: SkiaReadonlyValue<unknown>[];
12
+ values: SkiaValue<unknown>[];
13
13
  unsubscribe: null | Unsubscribe;
14
14
  }>;
15
15
  constructor(ref: RefObject<SkiaView>);
@@ -1,7 +1,6 @@
1
1
  import type { RefObject } from "react";
2
2
  import type { DrawingInfo, SkiaView } from "../views";
3
- import type { SkCanvas, SkPaint } from "../skia";
4
- import type { FontMgr } from "../skia/FontMgr/FontMgr";
3
+ import type { FontMgr, SkCanvas, SkPaint } from "../skia";
5
4
  import type { Vector } from "./processors/math/Vector";
6
5
  export interface DrawingContext extends Omit<DrawingInfo, "touches"> {
7
6
  canvas: SkCanvas;
@@ -1,3 +1,3 @@
1
1
  import type { SkColorFilter } from "../../../skia";
2
2
  import type { DeclarationResult } from "../../nodes";
3
- export declare const composeColorFilter: (cf: SkColorFilter, children: DeclarationResult[]) => import("../../../skia").SkImageFilter | SkColorFilter;
3
+ export declare const composeColorFilter: (cf: SkColorFilter, children: DeclarationResult[]) => SkColorFilter | import("../../../skia").SkImageFilter;
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
+ import { ColorChannel } from "../../../skia";
2
3
  import type { SkEnum, AnimatedProps } from "../../processors";
3
- import { ColorChannel } from "../../../skia/ImageFilter/ImageFilterFactory";
4
4
  export interface DisplacementMapProps {
5
5
  channelX: SkEnum<typeof ColorChannel>;
6
6
  channelY: SkEnum<typeof ColorChannel>;
@@ -1,3 +1,2 @@
1
- import type { SkColor } from "../../../skia";
2
- import type { SkImageFilter } from "../../../skia/ImageFilter/ImageFilter";
1
+ import type { SkColor, SkImageFilter } from "../../../skia";
3
2
  export declare const MakeInnerShadow: (shadowOnly: boolean | undefined, dx: number, dy: number, sigmaX: number, sigmaY: number, color: SkColor, input: SkImageFilter | null) => SkImageFilter;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { AnimatedProps } from "../../processors/Animations/Animations";
3
- import type { SkRuntimeEffect } from "../../../skia/RuntimeEffect/RuntimeEffect";
3
+ import type { SkRuntimeEffect } from "../../../skia";
4
4
  export interface RuntimeShaderProps {
5
5
  source: SkRuntimeEffect;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { AnimatedProps } from "../../processors/Animations/Animations";
3
- import type { Color } from "../../../skia/Color";
3
+ import type { Color } from "../../../skia";
4
4
  export interface ShadowProps {
5
5
  dx: number;
6
6
  dy: number;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BlurStyle } from "../../../skia/MaskFilter";
2
+ import { BlurStyle } from "../../../skia";
3
3
  import type { SkEnum } from "../../processors";
4
4
  import type { AnimatedProps } from "../../processors/Animations/Animations";
5
5
  export interface BlurMaskProps {
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { AnimatedProps } from "../../processors/Animations/Animations";
3
- import type { SkMatrix } from "../../../skia/Matrix";
3
+ import type { SkMatrix } from "../../../skia";
4
4
  export interface Line2DPathEffectProps {
5
5
  children?: ReactNode | ReactNode[];
6
6
  width: number;
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
+ import { Path1DEffectStyle } from "../../../skia";
2
3
  import type { AnimatedProps } from "../../processors/Animations/Animations";
3
- import { Path1DEffectStyle } from "../../../skia/PathEffect";
4
4
  import type { SkEnum } from "../../processors/Paint";
5
5
  import type { PathDef } from "../../processors/Paths";
6
6
  export interface Path1DPathEffectProps {
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { AnimatedProps } from "../../processors/Animations/Animations";
3
- import type { SkMatrix } from "../../../skia/Matrix";
3
+ import type { SkMatrix } from "../../../skia";
4
4
  import type { PathDef } from "../../processors/Paths";
5
5
  export interface Path2DPathEffectProps {
6
6
  children?: ReactNode | ReactNode[];
@@ -1,7 +1,7 @@
1
1
  import { TileMode } from "../../../skia";
2
2
  import type { SkEnum } from "../../processors/Paint";
3
3
  import type { TransformProps } from "../../processors/Transform";
4
- import type { Color } from "../../../skia/Color";
4
+ import type { Color } from "../../../skia";
5
5
  export interface GradientProps extends TransformProps {
6
6
  colors: Color[];
7
7
  positions?: number[];
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Color, SkRRect } from "../../../skia";
2
+ import type { Color, SkRRect, SkRect } from "../../../skia";
3
3
  import type { AnimatedProps, CustomPaintProps } from "../../processors";
4
- import type { SkRect } from "../../../skia/Rect";
5
4
  interface BoxShadowProps {
6
5
  dx?: number;
7
6
  dy?: number;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { CustomPaintProps } from "../../processors";
3
- import type { SkRRect } from "../../../skia/RRect";
3
+ import type { SkRRect } from "../../../skia";
4
4
  import type { AnimatedProps } from "../../processors/Animations/Animations";
5
5
  export interface DiffRectProps extends CustomPaintProps {
6
6
  inner: SkRRect;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { CustomPaintProps, AnimatedProps } from "../../processors";
3
- import type { SkTextBlob } from "../../../skia/TextBlob";
3
+ import type { SkTextBlob } from "../../../skia";
4
4
  export interface TextBlobProps extends CustomPaintProps {
5
5
  blob: SkTextBlob;
6
6
  x: number;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { CustomPaintProps, AnimatedProps } from "../../processors";
3
- import type { SkPath } from "../../../skia/Path";
3
+ import type { SkPath } from "../../../skia";
4
4
  import type { FontDef } from "../../processors/Font";
5
5
  export declare type TextPathProps = CustomPaintProps & FontDef & {
6
6
  text: string;
@@ -2,3 +2,4 @@ export * from "./Canvas";
2
2
  export * from "./components";
3
3
  export * from "./nodes";
4
4
  export * from "./useContextBridge";
5
+ export * from "./DependencyManager";
@@ -1,8 +1,8 @@
1
1
  import type { DependencyList } from "react";
2
2
  import type { DrawingContext } from "../DrawingContext";
3
- import type { SkJSIInstance } from "../../skia/JsiInstance";
4
3
  import type { AnimatedProps } from "../processors";
5
4
  import type { DependencyManager } from "../DependencyManager";
5
+ import type { SkJSIInstance } from "../../skia";
6
6
  import { Node } from "./Node";
7
7
  export declare type DeclarationResult = SkJSIInstance<string> | null;
8
8
  declare type DeclarationCallback<T> = (props: T, children: DeclarationResult[], ctx: DrawingContext) => DeclarationResult;
@@ -1,4 +1,4 @@
1
- import type { SkJSIInstance } from "../../skia/JsiInstance";
1
+ import type { SkJSIInstance } from "../../skia";
2
2
  import type { DependencyManager } from "../DependencyManager";
3
3
  import type { DrawingContext } from "../DrawingContext";
4
4
  import type { AnimatedProps } from "../processors";
@@ -1,9 +1,9 @@
1
- import type { SkiaReadonlyValue } from "../../../values";
1
+ import type { SkiaValue } from "../../../values";
2
2
  import type { DrawingContext } from "../../DrawingContext";
3
3
  export declare type FrameValue<T> = (ctx: DrawingContext) => T;
4
- export declare const isValue: (value: unknown) => value is SkiaReadonlyValue<unknown>;
4
+ export declare const isValue: (value: unknown) => value is SkiaValue<unknown>;
5
5
  export declare const isAnimated: <T>(props: AnimatedProps<T>) => boolean;
6
6
  export declare const materialize: <T>(props: AnimatedProps<T>) => T;
7
7
  export declare type AnimatedProps<T> = {
8
- [K in keyof T]: T[K] | SkiaReadonlyValue<T[K]>;
8
+ [K in keyof T]: T[K] | SkiaValue<T[K]>;
9
9
  };