@shopify/react-native-skia 0.1.128 → 0.1.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (780) 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/skia/Skia.js +2 -36
  58. package/lib/commonjs/skia/Skia.js.map +1 -1
  59. package/lib/commonjs/skia/{Color.js → core/Color.js} +1 -1
  60. package/lib/commonjs/skia/core/Color.js.map +1 -0
  61. package/lib/commonjs/skia/{Data → core}/Data.js +29 -8
  62. package/lib/commonjs/skia/core/Data.js.map +1 -0
  63. package/lib/commonjs/skia/{Font/useFont.js → core/Font.js} +4 -4
  64. package/lib/commonjs/skia/core/Font.js.map +1 -0
  65. package/lib/commonjs/skia/{Image/useImage.js → core/Image.js} +4 -4
  66. package/lib/commonjs/skia/core/Image.js.map +1 -0
  67. package/lib/commonjs/skia/{Paint/usePaint.js → core/Paint.js} +14 -4
  68. package/lib/commonjs/skia/core/Paint.js.map +1 -0
  69. package/lib/commonjs/skia/{Path/usePath.js → core/Path.js} +1 -1
  70. package/lib/commonjs/skia/core/Path.js.map +1 -0
  71. package/lib/commonjs/skia/{Picture/usePicture.js → core/Picture.js} +1 -1
  72. package/lib/commonjs/skia/core/Picture.js.map +1 -0
  73. package/lib/commonjs/skia/core/SVG.js +15 -0
  74. package/lib/commonjs/skia/core/SVG.js.map +1 -0
  75. package/lib/commonjs/skia/{Shader/useShader.js → core/Shader.js} +1 -1
  76. package/lib/commonjs/skia/core/Shader.js.map +1 -0
  77. package/lib/commonjs/skia/{Typeface/useTypeface.js → core/Typeface.js} +3 -3
  78. package/lib/commonjs/skia/core/Typeface.js.map +1 -0
  79. package/lib/commonjs/skia/core/index.js +136 -0
  80. package/lib/commonjs/skia/core/index.js.map +1 -0
  81. package/lib/commonjs/skia/index.js +8 -302
  82. package/lib/commonjs/skia/index.js.map +1 -1
  83. package/lib/commonjs/skia/{Canvas.js → types/Canvas.js} +0 -0
  84. package/lib/commonjs/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
  85. package/lib/commonjs/skia/types/Color.js +2 -0
  86. package/lib/commonjs/skia/{ColorFilter/ColorFilterFactory.js.map → types/Color.js.map} +0 -0
  87. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
  88. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
  89. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
  90. package/lib/{module/skia → commonjs/skia/types}/ColorFilter/ColorFilterFactory.js.map +0 -0
  91. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
  92. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
  93. package/lib/commonjs/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
  94. package/lib/commonjs/skia/{ContourMeasure.js.map → types/ContourMeasure.js.map} +0 -0
  95. package/lib/commonjs/skia/types/Data/Data.js +6 -0
  96. package/lib/commonjs/skia/{Data/DataFactory.js.map → types/Data/Data.js.map} +0 -0
  97. package/lib/commonjs/skia/{Data → types/Data}/DataFactory.js +0 -0
  98. package/lib/{module/skia → commonjs/skia/types}/Data/DataFactory.js.map +0 -0
  99. package/lib/commonjs/skia/{Data → types/Data}/index.js +0 -0
  100. package/lib/commonjs/skia/{Data → types/Data}/index.js.map +0 -0
  101. package/lib/commonjs/skia/{Font → types/Font}/Font.js +0 -0
  102. package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
  103. package/lib/commonjs/skia/{Font → types/Font}/index.js +0 -13
  104. package/lib/commonjs/skia/{FontMgr → types/Font}/index.js.map +1 -1
  105. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
  106. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js.map +0 -0
  107. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
  108. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js.map +0 -0
  109. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/index.js +13 -0
  110. package/lib/commonjs/skia/types/FontMgr/index.js.map +1 -0
  111. package/lib/commonjs/skia/{Image → types/Image}/Image.js +0 -0
  112. package/lib/commonjs/skia/{Image → types/Image}/Image.js.map +1 -1
  113. package/lib/commonjs/skia/{Image → types/Image}/ImageFactory.js +0 -0
  114. package/lib/commonjs/skia/{Image → types/Image}/ImageFactory.js.map +0 -0
  115. package/lib/commonjs/skia/{Image → types/Image}/index.js +0 -13
  116. package/lib/commonjs/skia/types/Image/index.js.map +1 -0
  117. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
  118. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
  119. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
  120. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  121. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
  122. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
  123. package/lib/commonjs/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
  124. package/lib/commonjs/skia/{JsiInstance.js.map → types/JsiInstance.js.map} +0 -0
  125. package/lib/commonjs/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
  126. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
  127. package/lib/commonjs/skia/{Matrix.js → types/Matrix.js} +0 -0
  128. package/lib/commonjs/skia/{Matrix.js.map → types/Matrix.js.map} +0 -0
  129. package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js +0 -0
  130. package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
  131. package/lib/commonjs/skia/{Paint → types/Paint}/Paint.js +1 -13
  132. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
  133. package/lib/commonjs/skia/{Paint → types/Paint}/index.js +0 -13
  134. package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
  135. package/lib/commonjs/skia/{Path → types/Path}/Path.js +0 -0
  136. package/lib/commonjs/skia/{Path → types/Path}/Path.js.map +0 -0
  137. package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js +0 -0
  138. package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js.map +0 -0
  139. package/lib/commonjs/skia/{Path → types/Path}/index.js +0 -13
  140. package/lib/commonjs/skia/types/Path/index.js.map +1 -0
  141. package/lib/commonjs/skia/{PathEffect.js → types/PathEffect.js} +0 -0
  142. package/lib/commonjs/skia/types/PathEffect.js.map +1 -0
  143. package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js +0 -0
  144. package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js.map +0 -0
  145. package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
  146. package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js.map +0 -0
  147. package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
  148. package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js.map +0 -0
  149. package/lib/commonjs/skia/{Picture → types/Picture}/index.js +0 -13
  150. package/lib/commonjs/skia/{Paint → types/Picture}/index.js.map +1 -1
  151. package/lib/commonjs/skia/{Point.js → types/Point.js} +0 -0
  152. package/lib/commonjs/skia/{Point.js.map → types/Point.js.map} +0 -0
  153. package/lib/commonjs/skia/{RRect.js → types/RRect.js} +0 -0
  154. package/lib/commonjs/skia/{RRect.js.map → types/RRect.js.map} +0 -0
  155. package/lib/commonjs/skia/{RSXform.js → types/RSXform.js} +0 -0
  156. package/lib/commonjs/skia/{RSXform.js.map → types/RSXform.js.map} +0 -0
  157. package/lib/commonjs/skia/{Rect.js → types/Rect.js} +0 -0
  158. package/lib/commonjs/skia/{Rect.js.map → types/Rect.js.map} +0 -0
  159. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
  160. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js.map +0 -0
  161. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
  162. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js.map +0 -0
  163. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
  164. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
  165. package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js +0 -0
  166. package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js.map +0 -0
  167. package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
  168. package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js.map +0 -0
  169. package/lib/commonjs/skia/{SVG → types/SVG}/index.js +0 -13
  170. package/lib/commonjs/skia/{Font → types/SVG}/index.js.map +1 -1
  171. package/lib/commonjs/skia/{Shader → types/Shader}/Shader.js +0 -0
  172. package/lib/commonjs/skia/{Shader → types/Shader}/Shader.js.map +0 -0
  173. package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
  174. package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js.map +0 -0
  175. package/lib/commonjs/skia/{Shader → types/Shader}/index.js +0 -13
  176. package/lib/commonjs/skia/types/Shader/index.js.map +1 -0
  177. package/lib/commonjs/skia/types/Skia.js +6 -0
  178. package/lib/commonjs/skia/{Surface/Surface.js.map → types/Skia.js.map} +0 -0
  179. package/lib/commonjs/skia/{Surface → types/Surface}/Surface.js +0 -0
  180. package/lib/{module/skia → commonjs/skia/types}/Surface/Surface.js.map +0 -0
  181. package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
  182. package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js.map +0 -0
  183. package/lib/commonjs/skia/{Surface → types/Surface}/index.js +0 -0
  184. package/lib/commonjs/skia/{Surface → types/Surface}/index.js.map +0 -0
  185. package/lib/commonjs/skia/{TextBlob.js → types/TextBlob.js} +0 -0
  186. package/lib/commonjs/skia/{TextBlob.js.map → types/TextBlob.js.map} +0 -0
  187. package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
  188. package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js.map +0 -0
  189. package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
  190. package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js.map +0 -0
  191. package/lib/commonjs/skia/{Typeface → types/Typeface}/index.js +0 -13
  192. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
  193. package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
  194. package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
  195. package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js +0 -0
  196. package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js.map +0 -0
  197. package/lib/commonjs/skia/types/index.js +370 -0
  198. package/lib/commonjs/skia/types/index.js.map +1 -0
  199. package/lib/commonjs/skia/web/api/Host.js +66 -0
  200. package/lib/commonjs/skia/web/api/Host.js.map +1 -0
  201. package/lib/commonjs/skia/web/api/JsiSkCanvas.js +170 -0
  202. package/lib/commonjs/skia/web/api/JsiSkCanvas.js.map +1 -0
  203. package/lib/commonjs/skia/web/api/JsiSkColor.js +180 -0
  204. package/lib/commonjs/skia/web/api/JsiSkColor.js.map +1 -0
  205. package/lib/commonjs/skia/web/api/JsiSkColorFilter.js +18 -0
  206. package/lib/commonjs/skia/web/api/JsiSkColorFilter.js.map +1 -0
  207. package/lib/commonjs/skia/web/api/JsiSkImage.js +56 -0
  208. package/lib/commonjs/skia/web/api/JsiSkImage.js.map +1 -0
  209. package/lib/commonjs/skia/web/api/JsiSkPaint.js +106 -0
  210. package/lib/commonjs/skia/web/api/JsiSkPaint.js.map +1 -0
  211. package/lib/commonjs/skia/web/api/JsiSkRect.js +34 -0
  212. package/lib/commonjs/skia/web/api/JsiSkRect.js.map +1 -0
  213. package/lib/commonjs/skia/web/api/JsiSkSurface.js +31 -0
  214. package/lib/commonjs/skia/web/api/JsiSkSurface.js.map +1 -0
  215. package/lib/commonjs/skia/web/api/JsiSkSurfaceFactory.js +30 -0
  216. package/lib/commonjs/skia/web/api/JsiSkSurfaceFactory.js.map +1 -0
  217. package/lib/commonjs/skia/web/api/index.js +26 -0
  218. package/lib/commonjs/skia/web/api/index.js.map +1 -0
  219. package/lib/commonjs/skia/web/index.js +19 -0
  220. package/lib/commonjs/skia/web/index.js.map +1 -0
  221. package/lib/commonjs/values/hooks/useValue.js.map +1 -1
  222. package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -1
  223. package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -1
  224. package/lib/commonjs/values/web/api.js.map +1 -1
  225. package/lib/commonjs/views/SkiaView.js.map +1 -1
  226. package/lib/commonjs/views/types.js.map +1 -1
  227. package/lib/module/animation/decay/runDecay.js.map +1 -1
  228. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  229. package/lib/module/animation/spring/runSpring.js.map +1 -1
  230. package/lib/module/animation/spring/useSpring.js.map +1 -1
  231. package/lib/module/animation/timing/createTiming.js.map +1 -1
  232. package/lib/module/animation/timing/runTiming.js.map +1 -1
  233. package/lib/module/animation/timing/useTiming.js.map +1 -1
  234. package/lib/module/index.js.map +1 -1
  235. package/lib/module/renderer/Canvas.js +1 -2
  236. package/lib/module/renderer/Canvas.js.map +1 -1
  237. package/lib/module/renderer/DependencyManager.js.map +1 -1
  238. package/lib/module/renderer/components/Blend.js +1 -2
  239. package/lib/module/renderer/components/Blend.js.map +1 -1
  240. package/lib/module/renderer/components/Compose.js +1 -3
  241. package/lib/module/renderer/components/Compose.js.map +1 -1
  242. package/lib/module/renderer/components/colorFilters/Lerp.js +1 -2
  243. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  244. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +1 -2
  245. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  246. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  247. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  248. package/lib/module/renderer/components/imageFilters/Shadow.js +1 -2
  249. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  250. package/lib/module/renderer/components/maskFilters/Blur.js +1 -2
  251. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  252. package/lib/module/renderer/components/pathEffects/Corner.js +1 -2
  253. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  254. package/lib/module/renderer/components/pathEffects/Dash.js +1 -2
  255. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  256. package/lib/module/renderer/components/pathEffects/Discrete.js +1 -2
  257. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  258. package/lib/module/renderer/components/pathEffects/Line2D.js +1 -2
  259. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  260. package/lib/module/renderer/components/pathEffects/Path1D.js +1 -2
  261. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  262. package/lib/module/renderer/components/pathEffects/Path2D.js +1 -2
  263. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  264. package/lib/module/renderer/components/pathEffects/Sum.js +1 -2
  265. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  266. package/lib/module/renderer/components/shaders/Gradient.js.map +1 -1
  267. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  268. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  269. package/lib/module/renderer/components/shapes/Patch.js +1 -2
  270. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  271. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  272. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  273. package/lib/module/renderer/index.js +1 -0
  274. package/lib/module/renderer/index.js.map +1 -1
  275. package/lib/module/renderer/nodes/Declaration.js.map +1 -1
  276. package/lib/module/renderer/nodes/Node.js.map +1 -1
  277. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  278. package/lib/module/renderer/processors/Clips.js.map +1 -1
  279. package/lib/module/renderer/processors/Font.js.map +1 -1
  280. package/lib/module/renderer/processors/Rects.js +1 -0
  281. package/lib/module/renderer/processors/Rects.js.map +1 -1
  282. package/lib/module/renderer/processors/Transform.js.map +1 -1
  283. package/lib/module/skia/Skia.js +2 -35
  284. package/lib/module/skia/Skia.js.map +1 -1
  285. package/lib/module/skia/{Color.js → core/Color.js} +1 -2
  286. package/lib/module/skia/core/Color.js.map +1 -0
  287. package/lib/module/skia/core/Data.js +56 -0
  288. package/lib/module/skia/core/Data.js.map +1 -0
  289. package/lib/module/skia/{Font/useFont.js → core/Font.js} +5 -5
  290. package/lib/module/skia/core/Font.js.map +1 -0
  291. package/lib/module/skia/core/Image.js +8 -0
  292. package/lib/module/skia/core/Image.js.map +1 -0
  293. package/lib/module/skia/{Paint/usePaint.js → core/Paint.js} +8 -3
  294. package/lib/module/skia/core/Paint.js.map +1 -0
  295. package/lib/module/skia/{Path/usePath.js → core/Path.js} +1 -1
  296. package/lib/module/skia/core/Path.js.map +1 -0
  297. package/lib/module/skia/{Picture/usePicture.js → core/Picture.js} +1 -1
  298. package/lib/module/skia/core/Picture.js.map +1 -0
  299. package/lib/module/skia/core/SVG.js +4 -0
  300. package/lib/module/skia/core/SVG.js.map +1 -0
  301. package/lib/module/skia/{Shader/useShader.js → core/Shader.js} +1 -1
  302. package/lib/module/skia/core/Shader.js.map +1 -0
  303. package/lib/module/skia/core/Typeface.js +8 -0
  304. package/lib/module/skia/core/Typeface.js.map +1 -0
  305. package/lib/module/skia/core/index.js +11 -0
  306. package/lib/module/skia/core/index.js.map +1 -0
  307. package/lib/module/skia/index.js +2 -23
  308. package/lib/module/skia/index.js.map +1 -1
  309. package/lib/module/skia/{Canvas.js → types/Canvas.js} +0 -0
  310. package/lib/module/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
  311. package/lib/module/skia/types/Color.js +2 -0
  312. package/lib/module/skia/{ContourMeasure.js.map → types/Color.js.map} +0 -0
  313. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
  314. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
  315. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
  316. package/lib/module/skia/{FontMgr/FontMgr.js.map → types/ColorFilter/ColorFilterFactory.js.map} +0 -0
  317. package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
  318. package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
  319. package/lib/module/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
  320. package/lib/module/skia/{FontMgr/FontMgrFactory.js.map → types/ContourMeasure.js.map} +0 -0
  321. package/lib/module/skia/types/Data/Data.js +2 -0
  322. package/lib/module/skia/{JsiInstance.js.map → types/Data/Data.js.map} +0 -0
  323. package/lib/module/skia/{Data → types/Data}/DataFactory.js +0 -0
  324. package/lib/module/skia/{Path/PathFactory.js.map → types/Data/DataFactory.js.map} +0 -0
  325. package/lib/module/skia/{Data → types/Data}/index.js +0 -0
  326. package/lib/module/skia/{Data → types/Data}/index.js.map +0 -0
  327. package/lib/module/skia/{Font → types/Font}/Font.js +0 -0
  328. package/lib/module/skia/types/Font/Font.js.map +1 -0
  329. package/lib/module/skia/types/Font/index.js +2 -0
  330. package/lib/module/skia/types/Font/index.js.map +1 -0
  331. package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
  332. package/lib/module/skia/{Picture/Picture.js.map → types/FontMgr/FontMgr.js.map} +0 -0
  333. package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
  334. package/lib/module/skia/{Picture/PictureFactory.js.map → types/FontMgr/FontMgrFactory.js.map} +0 -0
  335. package/lib/module/skia/types/FontMgr/index.js +3 -0
  336. package/lib/module/skia/types/FontMgr/index.js.map +1 -0
  337. package/lib/module/skia/{Image → types/Image}/Image.js +0 -0
  338. package/lib/module/skia/{Image → types/Image}/Image.js.map +1 -1
  339. package/lib/module/skia/{Image → types/Image}/ImageFactory.js +0 -0
  340. package/lib/module/skia/{Image → types/Image}/ImageFactory.js.map +0 -0
  341. package/lib/module/skia/types/Image/index.js +3 -0
  342. package/lib/module/skia/types/Image/index.js.map +1 -0
  343. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
  344. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
  345. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
  346. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  347. package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
  348. package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
  349. package/lib/module/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
  350. package/lib/module/skia/{Picture/PictureRecorder.js.map → types/JsiInstance.js.map} +0 -0
  351. package/lib/module/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
  352. package/lib/module/skia/types/MaskFilter.js.map +1 -0
  353. package/lib/module/skia/{Matrix.js → types/Matrix.js} +0 -0
  354. package/lib/module/skia/{Matrix.js.map → types/Matrix.js.map} +0 -0
  355. package/lib/module/skia/{Paint → types/Paint}/BlendMode.js +0 -0
  356. package/lib/module/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
  357. package/lib/module/skia/{Paint → types/Paint}/Paint.js +0 -6
  358. package/lib/module/skia/types/Paint/Paint.js.map +1 -0
  359. package/lib/module/skia/types/Paint/index.js +3 -0
  360. package/lib/module/skia/types/Paint/index.js.map +1 -0
  361. package/lib/module/skia/{Path → types/Path}/Path.js +0 -0
  362. package/lib/module/skia/{Path → types/Path}/Path.js.map +0 -0
  363. package/lib/module/skia/{Path → types/Path}/PathFactory.js +0 -0
  364. package/lib/module/skia/{RRect.js.map → types/Path/PathFactory.js.map} +0 -0
  365. package/lib/module/skia/types/Path/index.js +3 -0
  366. package/lib/module/skia/types/Path/index.js.map +1 -0
  367. package/lib/module/skia/{PathEffect.js → types/PathEffect.js} +0 -0
  368. package/lib/module/skia/types/PathEffect.js.map +1 -0
  369. package/lib/module/skia/{Picture → types/Picture}/Picture.js +0 -0
  370. package/lib/module/skia/{RSXform.js.map → types/Picture/Picture.js.map} +0 -0
  371. package/lib/module/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
  372. package/lib/module/skia/{Rect.js.map → types/Picture/PictureFactory.js.map} +0 -0
  373. package/lib/module/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
  374. package/lib/module/skia/{RuntimeEffect/RuntimeEffect.js.map → types/Picture/PictureRecorder.js.map} +0 -0
  375. package/lib/module/skia/{Picture → types/Picture}/index.js +0 -1
  376. package/lib/module/skia/types/Picture/index.js.map +1 -0
  377. package/lib/module/skia/{Point.js → types/Point.js} +0 -0
  378. package/lib/module/skia/{Point.js.map → types/Point.js.map} +0 -0
  379. package/lib/module/skia/{RRect.js → types/RRect.js} +0 -0
  380. package/lib/module/skia/{RuntimeEffect/RuntimeEffectFactory.js.map → types/RRect.js.map} +0 -0
  381. package/lib/module/skia/{RSXform.js → types/RSXform.js} +0 -0
  382. package/lib/module/skia/{SVG/SVG.js.map → types/RSXform.js.map} +0 -0
  383. package/lib/module/skia/{Rect.js → types/Rect.js} +0 -0
  384. package/lib/module/skia/{SVG/SVGFactory.js.map → types/Rect.js.map} +0 -0
  385. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
  386. package/lib/module/skia/{Shader/ShaderFactory.js.map → types/RuntimeEffect/RuntimeEffect.js.map} +0 -0
  387. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
  388. package/lib/module/skia/{Surface/SurfaceFactory.js.map → types/RuntimeEffect/RuntimeEffectFactory.js.map} +0 -0
  389. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
  390. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
  391. package/lib/module/skia/{SVG → types/SVG}/SVG.js +0 -0
  392. package/lib/module/skia/{TextBlob.js.map → types/SVG/SVG.js.map} +0 -0
  393. package/lib/module/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
  394. package/lib/module/skia/{Typeface/Typeface.js.map → types/SVG/SVGFactory.js.map} +0 -0
  395. package/lib/module/skia/types/SVG/index.js +3 -0
  396. package/lib/module/skia/types/SVG/index.js.map +1 -0
  397. package/lib/module/skia/{Shader → types/Shader}/Shader.js +0 -0
  398. package/lib/module/skia/{Shader → types/Shader}/Shader.js.map +0 -0
  399. package/lib/module/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
  400. package/lib/module/skia/{Typeface/TypefaceFactory.js.map → types/Shader/ShaderFactory.js.map} +0 -0
  401. package/lib/module/skia/types/Shader/index.js +3 -0
  402. package/lib/module/skia/types/Shader/index.js.map +1 -0
  403. package/lib/module/skia/types/Skia.js +2 -0
  404. package/lib/module/skia/types/Skia.js.map +1 -0
  405. package/lib/module/skia/{Surface → types/Surface}/Surface.js +0 -0
  406. package/lib/module/skia/types/Surface/Surface.js.map +1 -0
  407. package/lib/module/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
  408. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -0
  409. package/lib/module/skia/{Surface → types/Surface}/index.js +0 -0
  410. package/lib/module/skia/{Surface → types/Surface}/index.js.map +0 -0
  411. package/lib/module/skia/{TextBlob.js → types/TextBlob.js} +0 -0
  412. package/lib/module/skia/types/TextBlob.js.map +1 -0
  413. package/lib/module/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
  414. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -0
  415. package/lib/module/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
  416. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -0
  417. package/lib/module/skia/types/Typeface/index.js +3 -0
  418. package/lib/module/skia/types/Typeface/index.js.map +1 -0
  419. package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
  420. package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
  421. package/lib/module/skia/{Vertices → types/Vertices}/index.js +0 -0
  422. package/lib/module/skia/{Vertices → types/Vertices}/index.js.map +0 -0
  423. package/lib/module/skia/types/index.js +29 -0
  424. package/lib/module/skia/types/index.js.map +1 -0
  425. package/lib/module/skia/web/api/Host.js +36 -0
  426. package/lib/module/skia/web/api/Host.js.map +1 -0
  427. package/lib/module/skia/web/api/JsiSkCanvas.js +160 -0
  428. package/lib/module/skia/web/api/JsiSkCanvas.js.map +1 -0
  429. package/lib/module/skia/web/api/JsiSkColor.js +170 -0
  430. package/lib/module/skia/web/api/JsiSkColor.js.map +1 -0
  431. package/lib/module/skia/web/api/JsiSkColorFilter.js +8 -0
  432. package/lib/module/skia/web/api/JsiSkColorFilter.js.map +1 -0
  433. package/lib/module/skia/web/api/JsiSkImage.js +46 -0
  434. package/lib/module/skia/web/api/JsiSkImage.js.map +1 -0
  435. package/lib/module/skia/web/api/JsiSkPaint.js +96 -0
  436. package/lib/module/skia/web/api/JsiSkPaint.js.map +1 -0
  437. package/lib/module/skia/web/api/JsiSkRect.js +24 -0
  438. package/lib/module/skia/web/api/JsiSkRect.js.map +1 -0
  439. package/lib/module/skia/web/api/JsiSkSurface.js +19 -0
  440. package/lib/module/skia/web/api/JsiSkSurface.js.map +1 -0
  441. package/lib/module/skia/web/api/JsiSkSurfaceFactory.js +19 -0
  442. package/lib/module/skia/web/api/JsiSkSurfaceFactory.js.map +1 -0
  443. package/lib/module/skia/web/api/index.js +13 -0
  444. package/lib/module/skia/web/api/index.js.map +1 -0
  445. package/lib/module/skia/web/index.js +2 -0
  446. package/lib/module/skia/web/index.js.map +1 -0
  447. package/lib/module/values/hooks/useValue.js.map +1 -1
  448. package/lib/module/values/hooks/useValueEffect.js.map +1 -1
  449. package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -1
  450. package/lib/module/values/web/api.js.map +1 -1
  451. package/lib/module/views/SkiaView.js.map +1 -1
  452. package/lib/module/views/types.js.map +1 -1
  453. package/lib/typescript/src/animation/decay/runDecay.d.ts +2 -2
  454. package/lib/typescript/src/animation/spring/runSpring.d.ts +2 -2
  455. package/lib/typescript/src/animation/spring/useSpring.d.ts +2 -2
  456. package/lib/typescript/src/animation/timing/createTiming.d.ts +2 -2
  457. package/lib/typescript/src/animation/timing/runTiming.d.ts +2 -2
  458. package/lib/typescript/src/animation/timing/useLoop.d.ts +1 -1
  459. package/lib/typescript/src/animation/timing/useTiming.d.ts +2 -2
  460. package/lib/typescript/src/renderer/Canvas.d.ts +4 -4
  461. package/lib/typescript/src/renderer/DependencyManager.d.ts +2 -2
  462. package/lib/typescript/src/renderer/DrawingContext.d.ts +1 -2
  463. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +1 -1
  464. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +1 -1
  465. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +1 -2
  466. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +1 -1
  467. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +1 -1
  468. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +1 -1
  469. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +1 -1
  470. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +1 -1
  471. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +1 -1
  472. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +1 -1
  473. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +1 -2
  474. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +1 -1
  475. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +1 -1
  476. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +1 -1
  477. package/lib/typescript/src/renderer/index.d.ts +1 -0
  478. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +1 -1
  479. package/lib/typescript/src/renderer/nodes/Node.d.ts +1 -1
  480. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +3 -3
  481. package/lib/typescript/src/renderer/processors/Clips.d.ts +1 -2
  482. package/lib/typescript/src/renderer/processors/Font.d.ts +1 -2
  483. package/lib/typescript/src/renderer/processors/Rects.d.ts +2 -0
  484. package/lib/typescript/src/renderer/processors/Transform.d.ts +1 -1
  485. package/lib/typescript/src/skia/Skia.d.ts +2 -35
  486. package/lib/typescript/src/skia/{Color.d.ts → core/Color.d.ts} +1 -2
  487. package/lib/typescript/src/skia/core/Data.d.ts +5 -0
  488. package/lib/typescript/src/skia/core/Font.d.ts +5 -0
  489. package/lib/typescript/src/skia/core/Image.d.ts +5 -0
  490. package/lib/typescript/src/skia/{Paint/usePaint.d.ts → core/Paint.d.ts} +2 -1
  491. package/lib/typescript/src/skia/{Path/usePath.d.ts → core/Path.d.ts} +1 -2
  492. package/lib/typescript/src/skia/{Picture/usePicture.d.ts → core/Picture.d.ts} +1 -3
  493. package/lib/typescript/src/skia/core/SVG.d.ts +2 -0
  494. package/lib/typescript/src/skia/{Shader/useShader.d.ts → core/Shader.d.ts} +0 -0
  495. package/lib/typescript/src/skia/core/Typeface.d.ts +5 -0
  496. package/lib/typescript/src/skia/core/index.d.ts +10 -0
  497. package/lib/typescript/src/skia/index.d.ts +2 -23
  498. package/lib/typescript/src/skia/{Canvas.d.ts → types/Canvas.d.ts} +0 -0
  499. package/lib/typescript/src/skia/types/Color.d.ts +2 -0
  500. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.d.ts +0 -0
  501. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.d.ts +1 -1
  502. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/index.d.ts +0 -0
  503. package/lib/typescript/src/skia/{ContourMeasure.d.ts → types/ContourMeasure.d.ts} +0 -0
  504. package/lib/typescript/src/skia/types/Data/Data.d.ts +5 -0
  505. package/lib/typescript/src/skia/{Data → types/Data}/DataFactory.d.ts +0 -0
  506. package/lib/typescript/src/skia/{Data → types/Data}/index.d.ts +0 -0
  507. package/lib/typescript/src/skia/{Font → types/Font}/Font.d.ts +1 -1
  508. package/lib/typescript/src/skia/types/Font/index.d.ts +1 -0
  509. package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/FontMgr.d.ts +1 -1
  510. package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/FontMgrFactory.d.ts +0 -0
  511. package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/index.d.ts +1 -0
  512. package/lib/typescript/src/skia/{Image → types/Image}/Image.d.ts +2 -2
  513. package/lib/typescript/src/skia/{Image → types/Image}/ImageFactory.d.ts +0 -0
  514. package/lib/typescript/src/skia/{Image → types/Image}/index.d.ts +0 -1
  515. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.d.ts +0 -0
  516. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.d.ts +2 -2
  517. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/index.d.ts +0 -0
  518. package/lib/typescript/src/skia/{JsiInstance.d.ts → types/JsiInstance.d.ts} +0 -0
  519. package/lib/typescript/src/skia/{MaskFilter.d.ts → types/MaskFilter.d.ts} +3 -3
  520. package/lib/typescript/src/skia/{Matrix.d.ts → types/Matrix.d.ts} +0 -0
  521. package/lib/typescript/src/skia/{Paint → types/Paint}/BlendMode.d.ts +0 -0
  522. package/lib/typescript/src/skia/{Paint → types/Paint}/Paint.d.ts +5 -6
  523. package/lib/typescript/src/skia/{Paint → types/Paint}/index.d.ts +0 -1
  524. package/lib/typescript/src/skia/{Path → types/Path}/Path.d.ts +0 -0
  525. package/lib/typescript/src/skia/{Path → types/Path}/PathFactory.d.ts +0 -0
  526. package/lib/typescript/src/skia/{Path → types/Path}/index.d.ts +0 -1
  527. package/lib/typescript/src/skia/{PathEffect.d.ts → types/PathEffect.d.ts} +10 -10
  528. package/lib/typescript/src/skia/{Picture → types/Picture}/Picture.d.ts +0 -0
  529. package/lib/typescript/src/skia/{Picture → types/Picture}/PictureFactory.d.ts +0 -0
  530. package/lib/typescript/src/skia/{Picture → types/Picture}/PictureRecorder.d.ts +0 -0
  531. package/lib/typescript/src/skia/{Picture → types/Picture}/index.d.ts +0 -1
  532. package/lib/typescript/src/skia/{Point.d.ts → types/Point.d.ts} +0 -0
  533. package/lib/typescript/src/skia/{RRect.d.ts → types/RRect.d.ts} +0 -0
  534. package/lib/typescript/src/skia/{RSXform.d.ts → types/RSXform.d.ts} +0 -0
  535. package/lib/typescript/src/skia/{Rect.d.ts → types/Rect.d.ts} +0 -0
  536. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.d.ts +0 -0
  537. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.d.ts +0 -0
  538. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.d.ts +0 -0
  539. package/lib/typescript/src/skia/{SVG → types/SVG}/SVG.d.ts +0 -0
  540. package/lib/typescript/src/skia/{SVG → types/SVG}/SVGFactory.d.ts +1 -1
  541. package/lib/typescript/src/skia/{SVG → types/SVG}/index.d.ts +0 -1
  542. package/lib/typescript/src/skia/{Shader → types/Shader}/Shader.d.ts +0 -0
  543. package/lib/typescript/src/skia/{Shader → types/Shader}/ShaderFactory.d.ts +0 -0
  544. package/lib/typescript/src/skia/{Shader → types/Shader}/index.d.ts +0 -1
  545. package/lib/typescript/src/skia/{SkiaApi.d.ts → types/Skia.d.ts} +2 -5
  546. package/lib/typescript/src/skia/{Surface → types/Surface}/Surface.d.ts +0 -0
  547. package/lib/typescript/src/skia/{Surface → types/Surface}/SurfaceFactory.d.ts +0 -0
  548. package/lib/typescript/src/skia/{Surface → types/Surface}/index.d.ts +0 -0
  549. package/lib/typescript/src/skia/{TextBlob.d.ts → types/TextBlob.d.ts} +0 -0
  550. package/lib/typescript/src/skia/{Typeface → types/Typeface}/Typeface.d.ts +0 -0
  551. package/lib/typescript/src/skia/{Typeface → types/Typeface}/TypefaceFactory.d.ts +1 -1
  552. package/lib/typescript/src/skia/{Typeface → types/Typeface}/index.d.ts +0 -1
  553. package/lib/typescript/src/skia/{Vertices → types/Vertices}/Vertices.d.ts +0 -0
  554. package/lib/typescript/src/skia/{Vertices → types/Vertices}/index.d.ts +0 -0
  555. package/lib/typescript/src/skia/types/index.d.ts +28 -0
  556. package/lib/typescript/src/skia/web/api/Host.d.ts +18 -0
  557. package/lib/typescript/src/skia/web/api/JsiSkCanvas.d.ts +44 -0
  558. package/lib/typescript/src/skia/web/api/JsiSkColor.d.ts +3 -0
  559. package/lib/typescript/src/skia/web/api/JsiSkColorFilter.d.ts +6 -0
  560. package/lib/typescript/src/skia/web/api/JsiSkImage.d.ts +12 -0
  561. package/lib/typescript/src/skia/web/api/JsiSkPaint.d.ts +26 -0
  562. package/lib/typescript/src/skia/web/api/JsiSkRect.d.ts +10 -0
  563. package/lib/typescript/src/skia/web/api/JsiSkSurface.d.ts +8 -0
  564. package/lib/typescript/src/skia/web/api/JsiSkSurfaceFactory.d.ts +8 -0
  565. package/lib/typescript/src/skia/web/api/index.d.ts +10 -0
  566. package/lib/typescript/src/skia/web/index.d.ts +1 -0
  567. package/lib/typescript/src/values/api.d.ts +1 -1
  568. package/lib/typescript/src/values/api.web.d.ts +1 -1
  569. package/lib/typescript/src/values/hooks/useDerivedValue.d.ts +1 -1
  570. package/lib/typescript/src/values/hooks/useValue.d.ts +2 -2
  571. package/lib/typescript/src/values/hooks/useValueEffect.d.ts +2 -2
  572. package/lib/typescript/src/values/types.d.ts +5 -5
  573. package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +2 -2
  574. package/lib/typescript/src/views/SkiaView.d.ts +4 -4
  575. package/lib/typescript/src/views/types.d.ts +3 -4
  576. package/package.json +5 -3
  577. package/src/animation/decay/runDecay.ts +5 -2
  578. package/src/animation/functions/interpolateColors.ts +1 -2
  579. package/src/animation/spring/runSpring.ts +2 -2
  580. package/src/animation/spring/useSpring.ts +2 -2
  581. package/src/animation/timing/createTiming.ts +2 -2
  582. package/src/animation/timing/runTiming.ts +2 -2
  583. package/src/animation/timing/useTiming.ts +2 -2
  584. package/src/index.ts +0 -1
  585. package/src/renderer/Canvas.tsx +4 -5
  586. package/src/renderer/DependencyManager.tsx +2 -2
  587. package/src/renderer/DrawingContext.ts +1 -2
  588. package/src/renderer/components/Blend.tsx +1 -2
  589. package/src/renderer/components/Compose.tsx +1 -3
  590. package/src/renderer/components/colorFilters/Lerp.tsx +1 -2
  591. package/src/renderer/components/imageFilters/DisplacementMap.tsx +1 -2
  592. package/src/renderer/components/imageFilters/InnerShadow.tsx +1 -2
  593. package/src/renderer/components/imageFilters/RuntimeShader.tsx +1 -1
  594. package/src/renderer/components/imageFilters/Shadow.tsx +2 -3
  595. package/src/renderer/components/maskFilters/Blur.tsx +1 -2
  596. package/src/renderer/components/pathEffects/Corner.tsx +1 -2
  597. package/src/renderer/components/pathEffects/Dash.tsx +1 -2
  598. package/src/renderer/components/pathEffects/Discrete.tsx +1 -2
  599. package/src/renderer/components/pathEffects/Line2D.tsx +2 -3
  600. package/src/renderer/components/pathEffects/Path1D.tsx +1 -2
  601. package/src/renderer/components/pathEffects/Path2D.tsx +2 -3
  602. package/src/renderer/components/pathEffects/Sum.tsx +1 -2
  603. package/src/renderer/components/shaders/Gradient.ts +1 -1
  604. package/src/renderer/components/shapes/Box.tsx +1 -3
  605. package/src/renderer/components/shapes/DiffRect.tsx +1 -1
  606. package/src/renderer/components/shapes/Patch.tsx +1 -2
  607. package/src/renderer/components/text/TextBlob.tsx +1 -1
  608. package/src/renderer/components/text/TextPath.tsx +1 -2
  609. package/src/renderer/index.ts +1 -0
  610. package/src/renderer/nodes/Declaration.tsx +1 -1
  611. package/src/renderer/nodes/Node.ts +1 -1
  612. package/src/renderer/processors/Animations/Animations.ts +5 -8
  613. package/src/renderer/processors/Clips.ts +1 -2
  614. package/src/renderer/processors/Font.ts +1 -2
  615. package/src/renderer/processors/Rects.ts +4 -0
  616. package/src/renderer/processors/Transform.ts +1 -1
  617. package/src/skia/Skia.ts +2 -38
  618. package/src/skia/__tests__/Rects.spec.ts +40 -0
  619. package/src/skia/__tests__/snapshots/lightblue-rect.png +0 -0
  620. package/src/skia/{Color.ts → core/Color.ts} +2 -6
  621. package/src/skia/core/Data.ts +78 -0
  622. package/src/skia/{Font/useFont.ts → core/Font.ts} +8 -5
  623. package/src/skia/core/Image.ts +12 -0
  624. package/src/skia/{Paint/usePaint.ts → core/Paint.ts} +7 -2
  625. package/src/skia/{Path/usePath.ts → core/Path.ts} +1 -3
  626. package/src/skia/{Picture/usePicture.ts → core/Picture.ts} +1 -4
  627. package/src/skia/core/SVG.ts +9 -0
  628. package/src/skia/{Shader/useShader.ts → core/Shader.ts} +0 -0
  629. package/src/skia/core/Typeface.ts +11 -0
  630. package/src/skia/core/index.ts +10 -0
  631. package/src/skia/index.ts +2 -23
  632. package/src/skia/{Canvas.ts → types/Canvas.ts} +0 -0
  633. package/src/skia/types/Color.ts +4 -0
  634. package/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.ts +0 -0
  635. package/src/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.ts +1 -1
  636. package/src/skia/{ColorFilter → types/ColorFilter}/index.ts +0 -0
  637. package/src/skia/{ContourMeasure.tsx → types/ContourMeasure.tsx} +0 -0
  638. package/src/skia/types/Data/Data.ts +5 -0
  639. package/src/skia/{Data → types/Data}/DataFactory.ts +0 -0
  640. package/src/skia/{Data → types/Data}/index.ts +0 -0
  641. package/src/skia/{Font → types/Font}/Font.ts +1 -1
  642. package/src/skia/types/Font/index.ts +1 -0
  643. package/src/skia/{FontMgr → types/FontMgr}/FontMgr.ts +1 -1
  644. package/src/skia/{FontMgr → types/FontMgr}/FontMgrFactory.ts +1 -6
  645. package/src/skia/{FontMgr → types/FontMgr}/index.ts +1 -0
  646. package/src/skia/{Image → types/Image}/Image.ts +2 -2
  647. package/src/skia/{Image → types/Image}/ImageFactory.ts +0 -0
  648. package/src/skia/{Image → types/Image}/index.ts +0 -1
  649. package/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.ts +0 -0
  650. package/src/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.ts +2 -2
  651. package/src/skia/{ImageFilter → types/ImageFilter}/index.ts +0 -0
  652. package/src/skia/{JsiInstance.ts → types/JsiInstance.ts} +0 -0
  653. package/src/skia/{MaskFilter.ts → types/MaskFilter.ts} +3 -3
  654. package/src/skia/{Matrix.ts → types/Matrix.ts} +0 -0
  655. package/src/skia/{Paint → types/Paint}/BlendMode.ts +0 -0
  656. package/src/skia/{Paint → types/Paint}/Paint.ts +5 -12
  657. package/src/skia/{Paint → types/Paint}/index.ts +0 -1
  658. package/src/skia/{Path → types/Path}/Path.ts +0 -0
  659. package/src/skia/{Path → types/Path}/PathFactory.ts +0 -0
  660. package/src/skia/{Path → types/Path}/index.ts +0 -1
  661. package/src/skia/{PathEffect.ts → types/PathEffect.ts} +14 -10
  662. package/src/skia/{Picture → types/Picture}/Picture.ts +0 -0
  663. package/src/skia/{Picture → types/Picture}/PictureFactory.ts +0 -0
  664. package/src/skia/{Picture → types/Picture}/PictureRecorder.ts +0 -0
  665. package/src/skia/{Picture → types/Picture}/index.ts +0 -1
  666. package/src/skia/{Point.ts → types/Point.ts} +0 -0
  667. package/src/skia/{RRect.ts → types/RRect.ts} +0 -0
  668. package/src/skia/{RSXform.ts → types/RSXform.ts} +0 -0
  669. package/src/skia/{Rect.ts → types/Rect.ts} +0 -0
  670. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.ts +0 -0
  671. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.ts +0 -0
  672. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.ts +0 -0
  673. package/src/skia/{SVG → types/SVG}/SVG.ts +0 -0
  674. package/src/skia/{SVG → types/SVG}/SVGFactory.ts +1 -1
  675. package/src/skia/{SVG → types/SVG}/index.ts +0 -1
  676. package/src/skia/{Shader → types/Shader}/Shader.ts +0 -0
  677. package/src/skia/{Shader → types/Shader}/ShaderFactory.ts +0 -0
  678. package/src/skia/{Shader → types/Shader}/index.ts +0 -1
  679. package/src/skia/{SkiaApi.ts → types/Skia.ts} +6 -8
  680. package/src/skia/{Surface → types/Surface}/Surface.ts +0 -0
  681. package/src/skia/{Surface → types/Surface}/SurfaceFactory.ts +0 -0
  682. package/src/skia/{Surface → types/Surface}/index.ts +0 -0
  683. package/src/skia/{TextBlob.ts → types/TextBlob.ts} +0 -0
  684. package/src/skia/{Typeface → types/Typeface}/Typeface.ts +0 -0
  685. package/src/skia/{Typeface → types/Typeface}/TypefaceFactory.ts +1 -1
  686. package/src/skia/{Typeface → types/Typeface}/index.ts +0 -1
  687. package/src/skia/{Vertices → types/Vertices}/Vertices.tsx +0 -0
  688. package/src/skia/{Vertices → types/Vertices}/index.ts +0 -0
  689. package/src/skia/types/index.ts +28 -0
  690. package/src/skia/web/api/Host.ts +50 -0
  691. package/src/skia/web/api/JsiSkCanvas.ts +322 -0
  692. package/src/skia/web/api/JsiSkColor.ts +181 -0
  693. package/src/skia/web/api/JsiSkColorFilter.ts +14 -0
  694. package/src/skia/web/api/JsiSkImage.ts +66 -0
  695. package/src/skia/web/api/JsiSkPaint.ts +103 -0
  696. package/src/skia/web/api/JsiSkRect.ts +27 -0
  697. package/src/skia/web/api/JsiSkSurface.ts +25 -0
  698. package/src/skia/web/api/JsiSkSurfaceFactory.ts +20 -0
  699. package/src/skia/web/api/index.ts +15 -0
  700. package/src/skia/web/index.ts +1 -0
  701. package/src/values/hooks/useValue.ts +2 -2
  702. package/src/values/hooks/useValueEffect.ts +2 -5
  703. package/src/values/types.ts +6 -6
  704. package/src/values/web/RNSkReadonlyValue.ts +2 -2
  705. package/src/values/web/api.ts +4 -4
  706. package/src/views/SkiaView.tsx +3 -3
  707. package/src/views/types.ts +3 -4
  708. package/lib/commonjs/skia/Color.js.map +0 -1
  709. package/lib/commonjs/skia/Data/Data.js.map +0 -1
  710. package/lib/commonjs/skia/Font/Font.js.map +0 -1
  711. package/lib/commonjs/skia/Font/useFont.js.map +0 -1
  712. package/lib/commonjs/skia/Image/index.js.map +0 -1
  713. package/lib/commonjs/skia/Image/useImage.js.map +0 -1
  714. package/lib/commonjs/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
  715. package/lib/commonjs/skia/MaskFilter.js.map +0 -1
  716. package/lib/commonjs/skia/Paint/Paint.js.map +0 -1
  717. package/lib/commonjs/skia/Paint/usePaint.js.map +0 -1
  718. package/lib/commonjs/skia/Path/index.js.map +0 -1
  719. package/lib/commonjs/skia/Path/usePath.js.map +0 -1
  720. package/lib/commonjs/skia/PathEffect.js.map +0 -1
  721. package/lib/commonjs/skia/Picture/index.js.map +0 -1
  722. package/lib/commonjs/skia/Picture/usePicture.js.map +0 -1
  723. package/lib/commonjs/skia/SVG/index.js.map +0 -1
  724. package/lib/commonjs/skia/SVG/useSvg.js +0 -15
  725. package/lib/commonjs/skia/SVG/useSvg.js.map +0 -1
  726. package/lib/commonjs/skia/Shader/index.js.map +0 -1
  727. package/lib/commonjs/skia/Shader/useShader.js.map +0 -1
  728. package/lib/commonjs/skia/SkiaApi.js +0 -4
  729. package/lib/commonjs/skia/SkiaApi.js.map +0 -1
  730. package/lib/commonjs/skia/Typeface/index.js.map +0 -1
  731. package/lib/commonjs/skia/Typeface/useTypeface.js.map +0 -1
  732. package/lib/module/skia/Color.js.map +0 -1
  733. package/lib/module/skia/Data/Data.js +0 -35
  734. package/lib/module/skia/Data/Data.js.map +0 -1
  735. package/lib/module/skia/Font/Font.js.map +0 -1
  736. package/lib/module/skia/Font/index.js +0 -3
  737. package/lib/module/skia/Font/index.js.map +0 -1
  738. package/lib/module/skia/Font/useFont.js.map +0 -1
  739. package/lib/module/skia/FontMgr/index.js +0 -2
  740. package/lib/module/skia/FontMgr/index.js.map +0 -1
  741. package/lib/module/skia/Image/index.js +0 -4
  742. package/lib/module/skia/Image/index.js.map +0 -1
  743. package/lib/module/skia/Image/useImage.js +0 -8
  744. package/lib/module/skia/Image/useImage.js.map +0 -1
  745. package/lib/module/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
  746. package/lib/module/skia/MaskFilter.js.map +0 -1
  747. package/lib/module/skia/Paint/Paint.js.map +0 -1
  748. package/lib/module/skia/Paint/index.js +0 -4
  749. package/lib/module/skia/Paint/index.js.map +0 -1
  750. package/lib/module/skia/Paint/usePaint.js.map +0 -1
  751. package/lib/module/skia/Path/index.js +0 -4
  752. package/lib/module/skia/Path/index.js.map +0 -1
  753. package/lib/module/skia/Path/usePath.js.map +0 -1
  754. package/lib/module/skia/PathEffect.js.map +0 -1
  755. package/lib/module/skia/Picture/index.js.map +0 -1
  756. package/lib/module/skia/Picture/usePicture.js.map +0 -1
  757. package/lib/module/skia/SVG/index.js +0 -4
  758. package/lib/module/skia/SVG/index.js.map +0 -1
  759. package/lib/module/skia/SVG/useSvg.js +0 -4
  760. package/lib/module/skia/SVG/useSvg.js.map +0 -1
  761. package/lib/module/skia/Shader/index.js +0 -4
  762. package/lib/module/skia/Shader/index.js.map +0 -1
  763. package/lib/module/skia/Shader/useShader.js.map +0 -1
  764. package/lib/module/skia/SkiaApi.js +0 -2
  765. package/lib/module/skia/SkiaApi.js.map +0 -1
  766. package/lib/module/skia/Typeface/index.js +0 -4
  767. package/lib/module/skia/Typeface/index.js.map +0 -1
  768. package/lib/module/skia/Typeface/useTypeface.js +0 -8
  769. package/lib/module/skia/Typeface/useTypeface.js.map +0 -1
  770. package/lib/typescript/src/skia/Data/Data.d.ts +0 -9
  771. package/lib/typescript/src/skia/Font/index.d.ts +0 -2
  772. package/lib/typescript/src/skia/Font/useFont.d.ts +0 -6
  773. package/lib/typescript/src/skia/Image/useImage.d.ts +0 -5
  774. package/lib/typescript/src/skia/SVG/useSvg.d.ts +0 -2
  775. package/lib/typescript/src/skia/Typeface/useTypeface.d.ts +0 -5
  776. package/src/skia/Data/Data.ts +0 -61
  777. package/src/skia/Font/index.ts +0 -2
  778. package/src/skia/Image/useImage.ts +0 -9
  779. package/src/skia/SVG/useSvg.ts +0 -6
  780. package/src/skia/Typeface/useTypeface.ts +0 -9
@@ -0,0 +1,370 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _Picture = require("./Picture");
8
+
9
+ Object.keys(_Picture).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _Picture[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Picture[key];
16
+ }
17
+ });
18
+ });
19
+
20
+ var _Data = require("./Data");
21
+
22
+ Object.keys(_Data).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _Data[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _Data[key];
29
+ }
30
+ });
31
+ });
32
+
33
+ var _SVG = require("./SVG");
34
+
35
+ Object.keys(_SVG).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (key in exports && exports[key] === _SVG[key]) return;
38
+ Object.defineProperty(exports, key, {
39
+ enumerable: true,
40
+ get: function () {
41
+ return _SVG[key];
42
+ }
43
+ });
44
+ });
45
+
46
+ var _Surface = require("./Surface");
47
+
48
+ Object.keys(_Surface).forEach(function (key) {
49
+ if (key === "default" || key === "__esModule") return;
50
+ if (key in exports && exports[key] === _Surface[key]) return;
51
+ Object.defineProperty(exports, key, {
52
+ enumerable: true,
53
+ get: function () {
54
+ return _Surface[key];
55
+ }
56
+ });
57
+ });
58
+
59
+ var _FontMgr = require("./FontMgr");
60
+
61
+ Object.keys(_FontMgr).forEach(function (key) {
62
+ if (key === "default" || key === "__esModule") return;
63
+ if (key in exports && exports[key] === _FontMgr[key]) return;
64
+ Object.defineProperty(exports, key, {
65
+ enumerable: true,
66
+ get: function () {
67
+ return _FontMgr[key];
68
+ }
69
+ });
70
+ });
71
+
72
+ var _Vertices = require("./Vertices");
73
+
74
+ Object.keys(_Vertices).forEach(function (key) {
75
+ if (key === "default" || key === "__esModule") return;
76
+ if (key in exports && exports[key] === _Vertices[key]) return;
77
+ Object.defineProperty(exports, key, {
78
+ enumerable: true,
79
+ get: function () {
80
+ return _Vertices[key];
81
+ }
82
+ });
83
+ });
84
+
85
+ var _RuntimeEffect = require("./RuntimeEffect");
86
+
87
+ Object.keys(_RuntimeEffect).forEach(function (key) {
88
+ if (key === "default" || key === "__esModule") return;
89
+ if (key in exports && exports[key] === _RuntimeEffect[key]) return;
90
+ Object.defineProperty(exports, key, {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _RuntimeEffect[key];
94
+ }
95
+ });
96
+ });
97
+
98
+ var _Shader = require("./Shader");
99
+
100
+ Object.keys(_Shader).forEach(function (key) {
101
+ if (key === "default" || key === "__esModule") return;
102
+ if (key in exports && exports[key] === _Shader[key]) return;
103
+ Object.defineProperty(exports, key, {
104
+ enumerable: true,
105
+ get: function () {
106
+ return _Shader[key];
107
+ }
108
+ });
109
+ });
110
+
111
+ var _Image = require("./Image");
112
+
113
+ Object.keys(_Image).forEach(function (key) {
114
+ if (key === "default" || key === "__esModule") return;
115
+ if (key in exports && exports[key] === _Image[key]) return;
116
+ Object.defineProperty(exports, key, {
117
+ enumerable: true,
118
+ get: function () {
119
+ return _Image[key];
120
+ }
121
+ });
122
+ });
123
+
124
+ var _ColorFilter = require("./ColorFilter");
125
+
126
+ Object.keys(_ColorFilter).forEach(function (key) {
127
+ if (key === "default" || key === "__esModule") return;
128
+ if (key in exports && exports[key] === _ColorFilter[key]) return;
129
+ Object.defineProperty(exports, key, {
130
+ enumerable: true,
131
+ get: function () {
132
+ return _ColorFilter[key];
133
+ }
134
+ });
135
+ });
136
+
137
+ var _ImageFilter = require("./ImageFilter");
138
+
139
+ Object.keys(_ImageFilter).forEach(function (key) {
140
+ if (key === "default" || key === "__esModule") return;
141
+ if (key in exports && exports[key] === _ImageFilter[key]) return;
142
+ Object.defineProperty(exports, key, {
143
+ enumerable: true,
144
+ get: function () {
145
+ return _ImageFilter[key];
146
+ }
147
+ });
148
+ });
149
+
150
+ var _Font = require("./Font");
151
+
152
+ Object.keys(_Font).forEach(function (key) {
153
+ if (key === "default" || key === "__esModule") return;
154
+ if (key in exports && exports[key] === _Font[key]) return;
155
+ Object.defineProperty(exports, key, {
156
+ enumerable: true,
157
+ get: function () {
158
+ return _Font[key];
159
+ }
160
+ });
161
+ });
162
+
163
+ var _Typeface = require("./Typeface");
164
+
165
+ Object.keys(_Typeface).forEach(function (key) {
166
+ if (key === "default" || key === "__esModule") return;
167
+ if (key in exports && exports[key] === _Typeface[key]) return;
168
+ Object.defineProperty(exports, key, {
169
+ enumerable: true,
170
+ get: function () {
171
+ return _Typeface[key];
172
+ }
173
+ });
174
+ });
175
+
176
+ var _Paint = require("./Paint");
177
+
178
+ Object.keys(_Paint).forEach(function (key) {
179
+ if (key === "default" || key === "__esModule") return;
180
+ if (key in exports && exports[key] === _Paint[key]) return;
181
+ Object.defineProperty(exports, key, {
182
+ enumerable: true,
183
+ get: function () {
184
+ return _Paint[key];
185
+ }
186
+ });
187
+ });
188
+
189
+ var _Path = require("./Path");
190
+
191
+ Object.keys(_Path).forEach(function (key) {
192
+ if (key === "default" || key === "__esModule") return;
193
+ if (key in exports && exports[key] === _Path[key]) return;
194
+ Object.defineProperty(exports, key, {
195
+ enumerable: true,
196
+ get: function () {
197
+ return _Path[key];
198
+ }
199
+ });
200
+ });
201
+
202
+ var _Color = require("./Color");
203
+
204
+ Object.keys(_Color).forEach(function (key) {
205
+ if (key === "default" || key === "__esModule") return;
206
+ if (key in exports && exports[key] === _Color[key]) return;
207
+ Object.defineProperty(exports, key, {
208
+ enumerable: true,
209
+ get: function () {
210
+ return _Color[key];
211
+ }
212
+ });
213
+ });
214
+
215
+ var _Canvas = require("./Canvas");
216
+
217
+ Object.keys(_Canvas).forEach(function (key) {
218
+ if (key === "default" || key === "__esModule") return;
219
+ if (key in exports && exports[key] === _Canvas[key]) return;
220
+ Object.defineProperty(exports, key, {
221
+ enumerable: true,
222
+ get: function () {
223
+ return _Canvas[key];
224
+ }
225
+ });
226
+ });
227
+
228
+ var _ContourMeasure = require("./ContourMeasure");
229
+
230
+ Object.keys(_ContourMeasure).forEach(function (key) {
231
+ if (key === "default" || key === "__esModule") return;
232
+ if (key in exports && exports[key] === _ContourMeasure[key]) return;
233
+ Object.defineProperty(exports, key, {
234
+ enumerable: true,
235
+ get: function () {
236
+ return _ContourMeasure[key];
237
+ }
238
+ });
239
+ });
240
+
241
+ var _MaskFilter = require("./MaskFilter");
242
+
243
+ Object.keys(_MaskFilter).forEach(function (key) {
244
+ if (key === "default" || key === "__esModule") return;
245
+ if (key in exports && exports[key] === _MaskFilter[key]) return;
246
+ Object.defineProperty(exports, key, {
247
+ enumerable: true,
248
+ get: function () {
249
+ return _MaskFilter[key];
250
+ }
251
+ });
252
+ });
253
+
254
+ var _Matrix = require("./Matrix");
255
+
256
+ Object.keys(_Matrix).forEach(function (key) {
257
+ if (key === "default" || key === "__esModule") return;
258
+ if (key in exports && exports[key] === _Matrix[key]) return;
259
+ Object.defineProperty(exports, key, {
260
+ enumerable: true,
261
+ get: function () {
262
+ return _Matrix[key];
263
+ }
264
+ });
265
+ });
266
+
267
+ var _PathEffect = require("./PathEffect");
268
+
269
+ Object.keys(_PathEffect).forEach(function (key) {
270
+ if (key === "default" || key === "__esModule") return;
271
+ if (key in exports && exports[key] === _PathEffect[key]) return;
272
+ Object.defineProperty(exports, key, {
273
+ enumerable: true,
274
+ get: function () {
275
+ return _PathEffect[key];
276
+ }
277
+ });
278
+ });
279
+
280
+ var _Point = require("./Point");
281
+
282
+ Object.keys(_Point).forEach(function (key) {
283
+ if (key === "default" || key === "__esModule") return;
284
+ if (key in exports && exports[key] === _Point[key]) return;
285
+ Object.defineProperty(exports, key, {
286
+ enumerable: true,
287
+ get: function () {
288
+ return _Point[key];
289
+ }
290
+ });
291
+ });
292
+
293
+ var _Rect = require("./Rect");
294
+
295
+ Object.keys(_Rect).forEach(function (key) {
296
+ if (key === "default" || key === "__esModule") return;
297
+ if (key in exports && exports[key] === _Rect[key]) return;
298
+ Object.defineProperty(exports, key, {
299
+ enumerable: true,
300
+ get: function () {
301
+ return _Rect[key];
302
+ }
303
+ });
304
+ });
305
+
306
+ var _RRect = require("./RRect");
307
+
308
+ Object.keys(_RRect).forEach(function (key) {
309
+ if (key === "default" || key === "__esModule") return;
310
+ if (key in exports && exports[key] === _RRect[key]) return;
311
+ Object.defineProperty(exports, key, {
312
+ enumerable: true,
313
+ get: function () {
314
+ return _RRect[key];
315
+ }
316
+ });
317
+ });
318
+
319
+ var _RSXform = require("./RSXform");
320
+
321
+ Object.keys(_RSXform).forEach(function (key) {
322
+ if (key === "default" || key === "__esModule") return;
323
+ if (key in exports && exports[key] === _RSXform[key]) return;
324
+ Object.defineProperty(exports, key, {
325
+ enumerable: true,
326
+ get: function () {
327
+ return _RSXform[key];
328
+ }
329
+ });
330
+ });
331
+
332
+ var _JsiInstance = require("./JsiInstance");
333
+
334
+ Object.keys(_JsiInstance).forEach(function (key) {
335
+ if (key === "default" || key === "__esModule") return;
336
+ if (key in exports && exports[key] === _JsiInstance[key]) return;
337
+ Object.defineProperty(exports, key, {
338
+ enumerable: true,
339
+ get: function () {
340
+ return _JsiInstance[key];
341
+ }
342
+ });
343
+ });
344
+
345
+ var _Skia = require("./Skia");
346
+
347
+ Object.keys(_Skia).forEach(function (key) {
348
+ if (key === "default" || key === "__esModule") return;
349
+ if (key in exports && exports[key] === _Skia[key]) return;
350
+ Object.defineProperty(exports, key, {
351
+ enumerable: true,
352
+ get: function () {
353
+ return _Skia[key];
354
+ }
355
+ });
356
+ });
357
+
358
+ var _TextBlob = require("./TextBlob");
359
+
360
+ Object.keys(_TextBlob).forEach(function (key) {
361
+ if (key === "default" || key === "__esModule") return;
362
+ if (key in exports && exports[key] === _TextBlob[key]) return;
363
+ Object.defineProperty(exports, key, {
364
+ enumerable: true,
365
+ get: function () {
366
+ return _TextBlob[key];
367
+ }
368
+ });
369
+ });
370
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from \"./Picture\";\nexport * from \"./Data\";\nexport * from \"./SVG\";\nexport * from \"./Surface\";\nexport * from \"./FontMgr\";\nexport * from \"./Vertices\";\nexport * from \"./RuntimeEffect\";\nexport * from \"./Shader\";\nexport * from \"./Image\";\nexport * from \"./ColorFilter\";\nexport * from \"./ImageFilter\";\nexport * from \"./Font\";\nexport * from \"./Typeface\";\nexport * from \"./Paint\";\nexport * from \"./Path\";\nexport * from \"./Color\";\nexport * from \"./Canvas\";\nexport * from \"./ContourMeasure\";\nexport * from \"./MaskFilter\";\nexport * from \"./Matrix\";\nexport * from \"./PathEffect\";\nexport * from \"./Point\";\nexport * from \"./Rect\";\nexport * from \"./RRect\";\nexport * from \"./RSXform\";\nexport * from \"./JsiInstance\";\nexport * from \"./Skia\";\nexport * from \"./TextBlob\";\n"]}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.toValue = exports.toUndefinedableValue = exports.toOptionalValue = exports.toNullableValue = exports.optEnum = exports.ckEnum = exports.HostObject = exports.Host = void 0;
7
+
8
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+
10
+ /* eslint-disable no-nested-ternary */
11
+ class Host {
12
+ constructor(CanvasKit) {
13
+ _defineProperty(this, "CanvasKit", void 0);
14
+
15
+ this.CanvasKit = CanvasKit;
16
+ }
17
+
18
+ }
19
+
20
+ exports.Host = Host;
21
+
22
+ class HostObject extends Host {
23
+ constructor(CanvasKit, ref, typename) {
24
+ super(CanvasKit);
25
+
26
+ _defineProperty(this, "__typename__", void 0);
27
+
28
+ _defineProperty(this, "ref", void 0);
29
+
30
+ this.ref = ref;
31
+ this.__typename__ = typename;
32
+ }
33
+
34
+ } // eslint-disable-next-line @typescript-eslint/ban-types
35
+
36
+
37
+ exports.HostObject = HostObject;
38
+
39
+ const toOptionalValue = value => value === undefined ? undefined : value === null ? null : toValue(value);
40
+
41
+ exports.toOptionalValue = toOptionalValue;
42
+
43
+ const toUndefinedableValue = value => value === undefined ? undefined : toValue(value);
44
+
45
+ exports.toUndefinedableValue = toUndefinedableValue;
46
+
47
+ const toNullableValue = value => value === null ? null : toValue(value);
48
+
49
+ exports.toNullableValue = toNullableValue;
50
+
51
+ const toValue = value => value.ref;
52
+
53
+ exports.toValue = toValue;
54
+
55
+ const ckEnum = value => ({
56
+ value
57
+ });
58
+
59
+ exports.ckEnum = ckEnum;
60
+
61
+ const optEnum = value => value === undefined ? undefined : {
62
+ value
63
+ };
64
+
65
+ exports.optEnum = optEnum;
66
+ //# sourceMappingURL=Host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Host.ts"],"names":["Host","constructor","CanvasKit","HostObject","ref","typename","__typename__","toOptionalValue","value","undefined","toValue","toUndefinedableValue","toNullableValue","ckEnum","optEnum"],"mappings":";;;;;;;;;AAAA;AAKO,MAAeA,IAAf,CAAoB;AAGzBC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAAA;;AAChC,SAAKA,SAAL,GAAiBA,SAAjB;AACD;;AALwB;;;;AAQpB,MAAeC,UAAf,SACGH,IADH,CAGP;AAIEC,EAAAA,WAAW,CAACC,SAAD,EAAuBE,GAAvB,EAA+BC,QAA/B,EAA4C;AACrD,UAAMH,SAAN;;AADqD;;AAAA;;AAErD,SAAKE,GAAL,GAAWA,GAAX;AACA,SAAKE,YAAL,GAAoBD,QAApB;AACD;;AARH,C,CAWA;;;;;AAGO,MAAME,eAAe,GAC1BC,KAD6B,IAG7BA,KAAK,KAAKC,SAAV,GAAsBA,SAAtB,GAAkCD,KAAK,KAAK,IAAV,GAAiB,IAAjB,GAAwBE,OAAO,CAACF,KAAD,CAH5D;;;;AAKA,MAAMG,oBAAoB,GAC/BH,KADkC,IAEfA,KAAK,KAAKC,SAAV,GAAsBA,SAAtB,GAAkCC,OAAO,CAACF,KAAD,CAFvD;;;;AAIA,MAAMI,eAAe,GAAOJ,KAAJ,IAC7BA,KAAK,KAAK,IAAV,GAAiB,IAAjB,GAAwBE,OAAO,CAACF,KAAD,CAD1B;;;;AAGA,MAAME,OAAO,GAAOF,KAAJ,IACpBA,KAAD,CAAiCJ,GAD5B;;;;AAGA,MAAMS,MAAM,GAAIL,KAAD,KAAsC;AAAEA,EAAAA;AAAF,CAAtC,CAAf;;;;AACA,MAAMM,OAAO,GAClBN,KADqB,IAGrBA,KAAK,KAAKC,SAAV,GAAsBA,SAAtB,GAAkC;AAAED,EAAAA;AAAF,CAH7B","sourcesContent":["/* eslint-disable no-nested-ternary */\nimport type { CanvasKit, EmbindEnumEntity } from \"canvaskit-wasm\";\n\nimport type { SkJSIInstance } from \"../../types\";\n\nexport abstract class Host {\n readonly CanvasKit: CanvasKit;\n\n constructor(CanvasKit: CanvasKit) {\n this.CanvasKit = CanvasKit;\n }\n}\n\nexport abstract class HostObject<T, N extends string>\n extends Host\n implements SkJSIInstance<N>\n{\n readonly __typename__: N;\n readonly ref: T;\n\n constructor(CanvasKit: CanvasKit, ref: T, typename: N) {\n super(CanvasKit);\n this.ref = ref;\n this.__typename__ = typename;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type NonNullish = {};\n\nexport const toOptionalValue = <T>(\n value: NonNullish | undefined | null\n): T | undefined | null =>\n value === undefined ? undefined : value === null ? null : toValue(value);\n\nexport const toUndefinedableValue = <T>(\n value: NonNullish | undefined\n): T | undefined => (value === undefined ? undefined : toValue(value));\n\nexport const toNullableValue = <T>(value: NonNullish | null): T | null =>\n value === null ? null : toValue(value);\n\nexport const toValue = <T>(value: NonNullish): T =>\n (value as HostObject<T, string>).ref;\n\nexport const ckEnum = (value: number): EmbindEnumEntity => ({ value });\nexport const optEnum = (\n value: number | undefined\n): EmbindEnumEntity | undefined =>\n value === undefined ? undefined : { value };\n"]}
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkCanvas = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ class JsiSkCanvas extends _Host.HostObject {
11
+ constructor(CanvasKit, ref) {
12
+ super(CanvasKit, ref, "Canvas");
13
+ }
14
+
15
+ drawRect(rect, paint) {
16
+ this.ref.drawRect((0, _Host.toValue)(rect), (0, _Host.toValue)(paint));
17
+ }
18
+
19
+ drawImage(image, x, y, paint) {
20
+ this.ref.drawImage((0, _Host.toValue)(image), x, y, (0, _Host.toOptionalValue)(paint));
21
+ }
22
+
23
+ drawImageRect(img, src, dest, paint, fastSample) {
24
+ this.ref.drawImageRect((0, _Host.toValue)(img), (0, _Host.toValue)(src), (0, _Host.toValue)(dest), (0, _Host.toValue)(paint), fastSample);
25
+ }
26
+
27
+ drawImageCubic(img, left, top, B, C, paint) {
28
+ this.ref.drawImageCubic((0, _Host.toValue)(img), left, top, B, C, (0, _Host.toOptionalValue)(paint));
29
+ }
30
+
31
+ drawImageOptions(img, left, top, fm, mm, paint) {
32
+ this.ref.drawImageOptions((0, _Host.toValue)(img), left, top, (0, _Host.ckEnum)(fm), (0, _Host.ckEnum)(mm), (0, _Host.toOptionalValue)(paint));
33
+ }
34
+
35
+ drawImageNine(img, center, dest, filter, paint) {
36
+ this.ref.drawImageNine((0, _Host.toValue)(img), (0, _Host.toValue)(center), (0, _Host.toValue)(dest), (0, _Host.ckEnum)(filter), (0, _Host.toOptionalValue)(paint));
37
+ }
38
+
39
+ drawImageRectCubic(img, src, dest, B, C, paint) {
40
+ this.ref.drawImageRectCubic((0, _Host.toValue)(img), (0, _Host.toValue)(src), (0, _Host.toValue)(dest), B, C, (0, _Host.toOptionalValue)(paint));
41
+ }
42
+
43
+ drawImageRectOptions(img, src, dest, fm, mm, paint) {
44
+ this.ref.drawImageRectOptions((0, _Host.toValue)(img), (0, _Host.toValue)(src), (0, _Host.toValue)(dest), (0, _Host.ckEnum)(fm), (0, _Host.ckEnum)(mm), (0, _Host.toOptionalValue)(paint));
45
+ }
46
+
47
+ drawPaint(paint) {
48
+ this.ref.drawPaint((0, _Host.toValue)(paint));
49
+ }
50
+
51
+ drawLine(x0, y0, x1, y1, paint) {
52
+ this.ref.drawLine(x0, y0, x1, y1, (0, _Host.toValue)(paint));
53
+ }
54
+
55
+ drawCircle(cx, cy, radius, paint) {
56
+ this.ref.drawCircle(cx, cy, radius, (0, _Host.toValue)(paint));
57
+ }
58
+
59
+ drawVertices(verts, mode, paint) {
60
+ this.ref.drawVertices((0, _Host.toValue)(verts), (0, _Host.ckEnum)(mode), (0, _Host.toValue)(paint));
61
+ }
62
+
63
+ drawPatch(cubics, colors, texs, mode, paint) {
64
+ this.ref.drawPatch((0, _Host.toValue)(cubics), colors, (0, _Host.toOptionalValue)(texs), mode ? (0, _Host.ckEnum)(mode) : null, (0, _Host.toUndefinedableValue)(paint));
65
+ }
66
+
67
+ restoreToCount(saveCount) {
68
+ this.ref.restoreToCount(saveCount);
69
+ }
70
+
71
+ drawPoints(mode, points, paint) {
72
+ this.ref.drawPoints((0, _Host.ckEnum)(mode), (0, _Host.toValue)(points), (0, _Host.toValue)(paint));
73
+ }
74
+
75
+ drawArc(oval, startAngle, sweepAngle, useCenter, paint) {
76
+ this.ref.drawArc((0, _Host.toValue)(oval), startAngle, sweepAngle, useCenter, (0, _Host.toValue)(paint));
77
+ }
78
+
79
+ drawRRect(rrect, paint) {
80
+ this.ref.drawRRect((0, _Host.toValue)(rrect), (0, _Host.toValue)(paint));
81
+ }
82
+
83
+ drawDRRect(outer, inner, paint) {
84
+ this.ref.drawDRRect((0, _Host.toValue)(outer), (0, _Host.toValue)(inner), (0, _Host.toValue)(paint));
85
+ }
86
+
87
+ drawOval(oval, paint) {
88
+ this.ref.drawOval((0, _Host.toValue)(oval), (0, _Host.toValue)(paint));
89
+ }
90
+
91
+ drawPath(path, paint) {
92
+ this.ref.drawPath((0, _Host.toValue)(path), (0, _Host.toValue)(paint));
93
+ }
94
+
95
+ drawText(str, x, y, paint, font) {
96
+ this.ref.drawText(str, x, y, (0, _Host.toValue)(paint), (0, _Host.toValue)(font));
97
+ }
98
+
99
+ drawTextBlob(blob, x, y, paint) {
100
+ this.ref.drawTextBlob((0, _Host.toValue)(blob), x, y, (0, _Host.toValue)(paint));
101
+ }
102
+
103
+ drawGlyphs(glyphs, positions, x, y, font, paint) {
104
+ this.ref.drawGlyphs(glyphs, (0, _Host.toValue)(positions), x, y, (0, _Host.toValue)(font), (0, _Host.toValue)(paint));
105
+ }
106
+
107
+ drawSvg(_svgDom, _width, _height) {
108
+ throw new Error("drawSvg is not implemented on React Native Web");
109
+ }
110
+
111
+ save() {
112
+ return this.ref.save();
113
+ }
114
+
115
+ saveLayer(paint, bounds, backdrop, flags) {
116
+ return this.ref.saveLayer((0, _Host.toUndefinedableValue)(paint), (0, _Host.toOptionalValue)(bounds), (0, _Host.toOptionalValue)(backdrop), flags);
117
+ }
118
+
119
+ restore() {
120
+ this.ref.restore();
121
+ }
122
+
123
+ rotate(rotationInDegrees, rx, ry) {
124
+ this.ref.rotate(rotationInDegrees, rx, ry);
125
+ }
126
+
127
+ scale(sx, sy) {
128
+ this.ref.scale(sx, sy);
129
+ }
130
+
131
+ skew(sx, sy) {
132
+ this.ref.skew(sx, sy);
133
+ }
134
+
135
+ translate(dx, dy) {
136
+ this.ref.translate(dx, dy);
137
+ }
138
+
139
+ drawColor(color, blendMode) {
140
+ this.ref.drawColor(color, blendMode ? (0, _Host.ckEnum)(blendMode) : undefined);
141
+ }
142
+
143
+ clear(color) {
144
+ this.ref.clear(color);
145
+ }
146
+
147
+ clipPath(path, op, doAntiAlias) {
148
+ this.ref.clipPath((0, _Host.toValue)(path), (0, _Host.ckEnum)(op), doAntiAlias);
149
+ }
150
+
151
+ clipRect(rect, op, doAntiAlias) {
152
+ this.ref.clipRect((0, _Host.toValue)(rect), (0, _Host.ckEnum)(op), doAntiAlias);
153
+ }
154
+
155
+ clipRRect(rrect, op, doAntiAlias) {
156
+ this.ref.clipRRect((0, _Host.toValue)(rrect), (0, _Host.ckEnum)(op), doAntiAlias);
157
+ }
158
+
159
+ concat(m) {
160
+ this.ref.concat((0, _Host.toValue)(m));
161
+ }
162
+
163
+ drawPicture(skp) {
164
+ this.ref.drawPicture((0, _Host.toValue)(skp));
165
+ }
166
+
167
+ }
168
+
169
+ exports.JsiSkCanvas = JsiSkCanvas;
170
+ //# sourceMappingURL=JsiSkCanvas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkCanvas.ts"],"names":["JsiSkCanvas","HostObject","constructor","CanvasKit","ref","drawRect","rect","paint","drawImage","image","x","y","drawImageRect","img","src","dest","fastSample","drawImageCubic","left","top","B","C","drawImageOptions","fm","mm","drawImageNine","center","filter","drawImageRectCubic","drawImageRectOptions","drawPaint","drawLine","x0","y0","x1","y1","drawCircle","cx","cy","radius","drawVertices","verts","mode","drawPatch","cubics","colors","texs","restoreToCount","saveCount","drawPoints","points","drawArc","oval","startAngle","sweepAngle","useCenter","drawRRect","rrect","drawDRRect","outer","inner","drawOval","drawPath","path","drawText","str","font","drawTextBlob","blob","drawGlyphs","glyphs","positions","drawSvg","_svgDom","_width","_height","Error","save","saveLayer","bounds","backdrop","flags","restore","rotate","rotationInDegrees","rx","ry","scale","sx","sy","skew","translate","dx","dy","drawColor","color","blendMode","undefined","clear","clipPath","op","doAntiAlias","clipRect","clipRRect","concat","m","drawPicture","skp"],"mappings":";;;;;;;AA0BA;;AAQO,MAAMA,WAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAoC;AAC7C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,QAAtB;AACD;;AAEDC,EAAAA,QAAQ,CAACC,IAAD,EAAeC,KAAf,EAA+B;AACrC,SAAKH,GAAL,CAASC,QAAT,CAAkB,mBAAcC,IAAd,CAAlB,EAAuC,mBAAeC,KAAf,CAAvC;AACD;;AAEDC,EAAAA,SAAS,CAACC,KAAD,EAAiBC,CAAjB,EAA4BC,CAA5B,EAAuCJ,KAAvC,EAAwD;AAC/D,SAAKH,GAAL,CAASI,SAAT,CAAmB,mBAAeC,KAAf,CAAnB,EAA0CC,CAA1C,EAA6CC,CAA7C,EAAgD,2BAAgBJ,KAAhB,CAAhD;AACD;;AAEDK,EAAAA,aAAa,CACXC,GADW,EAEXC,GAFW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F,EAAP,CAAjC,EAA6CC,WAA7C;AACD;;AAEDE,EAAAA,SAAS,CAAC9C,KAAD,EAAiB2C,EAAjB,EAA6BC,WAA7B,EAAmD;AAC1D,SAAKjG,GAAL,CAASmG,SAAT,CAAmB,mBAAQ9C,KAAR,CAAnB,EAAmC,kBAAO2C,EAAP,CAAnC,EAA+CC,WAA/C;AACD;;AAEDG,EAAAA,MAAM,CAACC,CAAD,EAAc;AAClB,SAAKrG,GAAL,CAASoG,MAAT,CAAgB,mBAAQC,CAAR,CAAhB;AACD;;AAEDC,EAAAA,WAAW,CAACC,GAAD,EAAiB;AAC1B,SAAKvG,GAAL,CAASsG,WAAT,CAAqB,mBAAQC,GAAR,CAArB;AACD;;AA3RH","sourcesContent":["import type { Canvas, CanvasKit, Image, Paint, Rect } from \"canvaskit-wasm\";\n\nimport type {\n BlendMode,\n ClipOp,\n FilterMode,\n MipmapMode,\n PointMode,\n SaveLayerFlag,\n SkCanvas,\n SkColor,\n SkFont,\n SkImage,\n SkImageFilter,\n SkMatrix,\n SkPaint,\n SkPath,\n SkPicture,\n SkPoint,\n SkRect,\n SkRRect,\n SkSVG,\n SkTextBlob,\n SkVertices,\n} from \"../../types\";\n\nimport {\n ckEnum,\n HostObject,\n toValue,\n toUndefinedableValue,\n toOptionalValue,\n} from \"./Host\";\n\nexport class JsiSkCanvas\n extends HostObject<Canvas, \"Canvas\">\n implements SkCanvas\n{\n constructor(CanvasKit: CanvasKit, ref: Canvas) {\n super(CanvasKit, ref, \"Canvas\");\n }\n\n drawRect(rect: SkRect, paint: SkPaint) {\n this.ref.drawRect(toValue<Rect>(rect), toValue<Paint>(paint));\n }\n\n drawImage(image: SkImage, x: number, y: number, paint?: SkPaint) {\n this.ref.drawImage(toValue<Image>(image), x, y, toOptionalValue(paint));\n }\n\n drawImageRect(\n img: SkImage,\n src: SkRect,\n dest: SkRect,\n paint: SkPaint,\n fastSample?: boolean\n ) {\n this.ref.drawImageRect(\n toValue<Image>(img),\n toValue<Rect>(src),\n toValue<Rect>(dest),\n toValue<Paint>(paint),\n fastSample\n );\n }\n\n drawImageCubic(\n img: SkImage,\n left: number,\n top: number,\n B: number,\n C: number,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageCubic(\n toValue(img),\n left,\n top,\n B,\n C,\n toOptionalValue(paint)\n );\n }\n\n drawImageOptions(\n img: SkImage,\n left: number,\n top: number,\n fm: FilterMode,\n mm: MipmapMode,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageOptions(\n toValue(img),\n left,\n top,\n ckEnum(fm),\n ckEnum(mm),\n toOptionalValue(paint)\n );\n }\n\n drawImageNine(\n img: SkImage,\n center: SkRect,\n dest: SkRect,\n filter: FilterMode,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageNine(\n toValue(img),\n toValue(center),\n toValue(dest),\n ckEnum(filter),\n toOptionalValue(paint)\n );\n }\n\n drawImageRectCubic(\n img: SkImage,\n src: SkRect,\n dest: SkRect,\n B: number,\n C: number,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageRectCubic(\n toValue<Image>(img),\n toValue<Rect>(src),\n toValue<Rect>(dest),\n B,\n C,\n toOptionalValue(paint)\n );\n }\n\n drawImageRectOptions(\n img: SkImage,\n src: SkRect,\n dest: SkRect,\n fm: FilterMode,\n mm: MipmapMode,\n paint?: SkPaint | null\n ) {\n this.ref.drawImageRectOptions(\n toValue<Image>(img),\n toValue<Rect>(src),\n toValue<Rect>(dest),\n ckEnum(fm),\n ckEnum(mm),\n toOptionalValue(paint)\n );\n }\n\n drawPaint(paint: SkPaint) {\n this.ref.drawPaint(toValue(paint));\n }\n\n drawLine(x0: number, y0: number, x1: number, y1: number, paint: SkPaint) {\n this.ref.drawLine(x0, y0, x1, y1, toValue(paint));\n }\n\n drawCircle(cx: number, cy: number, radius: number, paint: SkPaint) {\n this.ref.drawCircle(cx, cy, radius, toValue(paint));\n }\n\n drawVertices(verts: SkVertices, mode: BlendMode, paint: SkPaint) {\n this.ref.drawVertices(toValue(verts), ckEnum(mode), toValue(paint));\n }\n\n drawPatch(\n cubics: SkPoint[],\n colors?: SkColor[] | null,\n texs?: SkPoint[] | null,\n mode?: BlendMode | null,\n paint?: SkPaint\n ) {\n this.ref.drawPatch(\n toValue(cubics),\n colors,\n toOptionalValue(texs),\n mode ? ckEnum(mode) : null,\n toUndefinedableValue(paint)\n );\n }\n\n restoreToCount(saveCount: number) {\n this.ref.restoreToCount(saveCount);\n }\n\n drawPoints(mode: PointMode, points: SkPoint[], paint: SkPaint) {\n this.ref.drawPoints(ckEnum(mode), toValue(points), toValue(paint));\n }\n\n drawArc(\n oval: SkRect,\n startAngle: number,\n sweepAngle: number,\n useCenter: boolean,\n paint: SkPaint\n ) {\n this.ref.drawArc(\n toValue(oval),\n startAngle,\n sweepAngle,\n useCenter,\n toValue(paint)\n );\n }\n\n drawRRect(rrect: SkRRect, paint: SkPaint) {\n this.ref.drawRRect(toValue(rrect), toValue(paint));\n }\n\n drawDRRect(outer: SkRRect, inner: SkRRect, paint: SkPaint) {\n this.ref.drawDRRect(toValue(outer), toValue(inner), toValue(paint));\n }\n\n drawOval(oval: SkRect, paint: SkPaint) {\n this.ref.drawOval(toValue(oval), toValue(paint));\n }\n\n drawPath(path: SkPath, paint: SkPaint) {\n this.ref.drawPath(toValue(path), toValue(paint));\n }\n\n drawText(str: string, x: number, y: number, paint: SkPaint, font: SkFont) {\n this.ref.drawText(str, x, y, toValue(paint), toValue(font));\n }\n\n drawTextBlob(blob: SkTextBlob, x: number, y: number, paint: SkPaint) {\n this.ref.drawTextBlob(toValue(blob), x, y, toValue(paint));\n }\n\n drawGlyphs(\n glyphs: number[],\n positions: SkPoint[],\n x: number,\n y: number,\n font: SkFont,\n paint: SkPaint\n ) {\n this.ref.drawGlyphs(\n glyphs,\n toValue(positions),\n x,\n y,\n toValue(font),\n toValue(paint)\n );\n }\n\n drawSvg(_svgDom: SkSVG, _width?: number, _height?: number) {\n throw new Error(\"drawSvg is not implemented on React Native Web\");\n }\n\n save() {\n return this.ref.save();\n }\n\n saveLayer(\n paint?: SkPaint,\n bounds?: SkRect | null,\n backdrop?: SkImageFilter | null,\n flags?: SaveLayerFlag\n ) {\n return this.ref.saveLayer(\n toUndefinedableValue(paint),\n toOptionalValue(bounds),\n toOptionalValue(backdrop),\n flags\n );\n }\n\n restore() {\n this.ref.restore();\n }\n\n rotate(rotationInDegrees: number, rx: number, ry: number) {\n this.ref.rotate(rotationInDegrees, rx, ry);\n }\n\n scale(sx: number, sy: number) {\n this.ref.scale(sx, sy);\n }\n\n skew(sx: number, sy: number) {\n this.ref.skew(sx, sy);\n }\n\n translate(dx: number, dy: number) {\n this.ref.translate(dx, dy);\n }\n\n drawColor(color: SkColor, blendMode?: BlendMode) {\n this.ref.drawColor(color, blendMode ? ckEnum(blendMode) : undefined);\n }\n\n clear(color: SkColor) {\n this.ref.clear(color);\n }\n\n clipPath(path: SkPath, op: ClipOp, doAntiAlias: boolean) {\n this.ref.clipPath(toValue(path), ckEnum(op), doAntiAlias);\n }\n\n clipRect(rect: SkRect, op: ClipOp, doAntiAlias: boolean) {\n this.ref.clipRect(toValue(rect), ckEnum(op), doAntiAlias);\n }\n\n clipRRect(rrect: SkRRect, op: ClipOp, doAntiAlias: boolean) {\n this.ref.clipRRect(toValue(rrect), ckEnum(op), doAntiAlias);\n }\n\n concat(m: SkMatrix) {\n this.ref.concat(toValue(m));\n }\n\n drawPicture(skp: SkPicture) {\n this.ref.drawPicture(toValue(skp));\n }\n}\n"]}