@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
@@ -1,13 +1,13 @@
1
1
  /*global SkiaApi*/
2
2
  import { useMemo } from "react";
3
3
  import { Skia } from "../Skia";
4
- import { useTypeface } from "../Typeface";
5
-
4
+ import { useTypeface } from "./Typeface";
6
5
  /**
7
6
  * Returns a Skia Font object
8
7
  * */
9
- export const useFont = (font, size) => {
10
- const typeface = useTypeface(font);
8
+
9
+ export const useFont = (font, size, onError) => {
10
+ const typeface = useTypeface(font, onError);
11
11
  return useMemo(() => {
12
12
  if (typeface === null) {
13
13
  return null;
@@ -21,4 +21,4 @@ export const useFont = (font, size) => {
21
21
 
22
22
  }, [typeface]);
23
23
  };
24
- //# sourceMappingURL=useFont.js.map
24
+ //# sourceMappingURL=Font.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Font.ts"],"names":["useMemo","Skia","useTypeface","useFont","font","size","onError","typeface","Font"],"mappings":"AAAA;AACA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,IAAT,QAAqB,SAArB;AAGA,SAASC,WAAT,QAA4B,YAA5B;AAEA;AACA;AACA;;AACA,OAAO,MAAMC,OAAO,GAAG,CACrBC,IADqB,EAErBC,IAFqB,EAGrBC,OAHqB,KAIH;AAClB,QAAMC,QAAQ,GAAGL,WAAW,CAACE,IAAD,EAAOE,OAAP,CAA5B;AACA,SAAON,OAAO,CAAC,MAAM;AACnB,QAAIO,QAAQ,KAAK,IAAjB,EAAuB;AACrB,aAAO,IAAP;AACD,KAFD,MAEO,IAAIA,QAAQ,IAAIF,IAAhB,EAAsB;AAC3B,aAAOJ,IAAI,CAACO,IAAL,CAAUD,QAAV,EAAoBF,IAApB,CAAP;AACD,KAFM,MAEA,IAAIE,QAAQ,IAAI,CAACF,IAAjB,EAAuB;AAC5B,aAAOJ,IAAI,CAACO,IAAL,CAAUD,QAAV,CAAP;AACD,KAFM,MAEA;AACL,aAAON,IAAI,CAACO,IAAL,EAAP;AACD,KATkB,CAUnB;;AACD,GAXa,EAWX,CAACD,QAAD,CAXW,CAAd;AAYD,CAlBM","sourcesContent":["/*global SkiaApi*/\nimport { useMemo } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { DataSource, SkFont } from \"../types\";\n\nimport { useTypeface } from \"./Typeface\";\n\n/**\n * Returns a Skia Font object\n * */\nexport const useFont = (\n font: DataSource | null | undefined,\n size?: number,\n onError?: (err: Error) => void\n): SkFont | null => {\n const typeface = useTypeface(font, onError);\n return useMemo(() => {\n if (typeface === null) {\n return null;\n } else if (typeface && size) {\n return Skia.Font(typeface, size);\n } else if (typeface && !size) {\n return Skia.Font(typeface);\n } else {\n return Skia.Font();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [typeface]);\n};\n"]}
@@ -0,0 +1,8 @@
1
+ import { Skia } from "../Skia";
2
+ import { useRawData } from "./Data";
3
+ /**
4
+ * Returns a Skia Image object
5
+ * */
6
+
7
+ export const useImage = (source, onError) => useRawData(source, Skia.Image.MakeImageFromEncoded, onError);
8
+ //# sourceMappingURL=Image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Image.ts"],"names":["Skia","useRawData","useImage","source","onError","Image","MakeImageFromEncoded"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,SAASC,UAAT,QAA2B,QAA3B;AAEA;AACA;AACA;;AACA,OAAO,MAAMC,QAAQ,GAAG,CACtBC,MADsB,EAEtBC,OAFsB,KAGnBH,UAAU,CAACE,MAAD,EAASH,IAAI,CAACK,KAAL,CAAWC,oBAApB,EAA0CF,OAA1C,CAHR","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSource } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\n/**\n * Returns a Skia Image object\n * */\nexport const useImage = (\n source: DataSource | null | undefined,\n onError?: (err: Error) => void\n) => useRawData(source, Skia.Image.MakeImageFromEncoded, onError);\n"]}
@@ -1,9 +1,14 @@
1
1
  import { useMemo } from "react";
2
- import { SkiaPaint } from "./Paint";
3
-
2
+ import { Skia } from "../Skia";
3
+ export const SkiaPaint = () => {
4
+ const paint = Skia.Paint();
5
+ paint.setAntiAlias(true);
6
+ return paint;
7
+ };
4
8
  /**
5
9
  * Returns a Skia Paint object
6
10
  * */
11
+
7
12
  export const usePaint = (initializer, deps) => useMemo(() => {
8
13
  const p = SkiaPaint();
9
14
 
@@ -13,4 +18,4 @@ export const usePaint = (initializer, deps) => useMemo(() => {
13
18
 
14
19
  return p; // eslint-disable-next-line react-hooks/exhaustive-deps
15
20
  }, deps);
16
- //# sourceMappingURL=usePaint.js.map
21
+ //# sourceMappingURL=Paint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Paint.ts"],"names":["useMemo","Skia","SkiaPaint","paint","Paint","setAntiAlias","usePaint","initializer","deps","p"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,IAAT,QAAqB,SAArB;AAGA,OAAO,MAAMC,SAAS,GAAG,MAAM;AAC7B,QAAMC,KAAK,GAAGF,IAAI,CAACG,KAAL,EAAd;AACAD,EAAAA,KAAK,CAACE,YAAN,CAAmB,IAAnB;AACA,SAAOF,KAAP;AACD,CAJM;AAKP;AACA;AACA;;AACA,OAAO,MAAMG,QAAQ,GAAG,CACtBC,WADsB,EAEtBC,IAFsB,KAItBR,OAAO,CAAC,MAAM;AACZ,QAAMS,CAAC,GAAGP,SAAS,EAAnB;;AACA,MAAIK,WAAJ,EAAiB;AACfA,IAAAA,WAAW,CAACE,CAAD,CAAX;AACD;;AACD,SAAOA,CAAP,CALY,CAMZ;AACD,CAPM,EAOJD,IAPI,CAJF","sourcesContent":["import type { DependencyList } from \"react\";\nimport { useMemo } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { SkPaint } from \"../types\";\n\nexport const SkiaPaint = () => {\n const paint = Skia.Paint();\n paint.setAntiAlias(true);\n return paint;\n};\n/**\n * Returns a Skia Paint object\n * */\nexport const usePaint = (\n initializer?: (paint: SkPaint) => void,\n deps?: DependencyList\n) =>\n useMemo(() => {\n const p = SkiaPaint();\n if (initializer) {\n initializer(p);\n }\n return p;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n"]}
@@ -41,4 +41,4 @@ export const useSvgPath = svgpath => useMemo(() => {
41
41
  export const useTextPath = (text, x, y, font) => usePath(p => {
42
42
  p.fromText(text, x, y, font);
43
43
  }, [text, x, y, font]);
44
- //# sourceMappingURL=usePath.js.map
44
+ //# sourceMappingURL=Path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Path.ts"],"names":["useMemo","Skia","usePath","initializer","deps","p","Path","Make","useSvgPath","svgpath","MakeFromSVGString","Error","useTextPath","text","x","y","font","fromText"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,IAAT,QAAqB,SAArB;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,OAAO,GAAG,CACrBC,WADqB,EAErBC,IAFqB,KAIrBJ,OAAO,CAAC,MAAM;AACZ,QAAMK,CAAC,GAAGJ,IAAI,CAACK,IAAL,CAAUC,IAAV,EAAV;;AACA,MAAIJ,WAAJ,EAAiB;AACfA,IAAAA,WAAW,CAACE,CAAD,CAAX;AACD;;AACD,SAAOA,CAAP,CALY,CAMZ;AACD,CAPM,EAOJ,CAACF,WAAD,EAAcC,IAAd,CAPI,CAJF;AAaP;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMI,UAAU,GAAIC,OAAD,IACxBT,OAAO,CAAC,MAAM;AACZ,QAAMK,CAAC,GAAGJ,IAAI,CAACK,IAAL,CAAUI,iBAAV,CAA4BD,OAA5B,CAAV;;AACA,MAAIJ,CAAC,KAAK,IAAV,EAAgB;AACd,UAAM,IAAIM,KAAJ,CAAW,qBAAoBF,OAAQ,EAAvC,CAAN;AACD;;AACD,SAAOJ,CAAP;AACD,CANM,EAMJ,CAACI,OAAD,CANI,CADF;AASP;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMG,WAAW,GAAG,CAACC,IAAD,EAAeC,CAAf,EAA0BC,CAA1B,EAAqCC,IAArC,KACzBd,OAAO,CACJG,CAAD,IAAO;AACLA,EAAAA,CAAC,CAACY,QAAF,CAAWJ,IAAX,EAAiBC,CAAjB,EAAoBC,CAApB,EAAuBC,IAAvB;AACD,CAHI,EAIL,CAACH,IAAD,EAAOC,CAAP,EAAUC,CAAV,EAAaC,IAAb,CAJK,CADF","sourcesContent":["import type { DependencyList } from \"react\";\nimport { useMemo } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { SkFont, SkPath } from \"../types\";\n\n/**\n * Memoizes and returns a Skia Path object with optional initializer\n * @param initializer\n * @param deps\n * @returns\n */\nexport const usePath = (\n initializer?: (path: SkPath) => void,\n deps?: DependencyList\n) =>\n useMemo(() => {\n const p = Skia.Path.Make();\n if (initializer) {\n initializer(p);\n }\n return p;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [initializer, deps]);\n\n/**\n * Initializes a Skia Path from an svg path string\n * @param svgpath\n * @returns\n */\n// MakeFromSVGString\nexport const useSvgPath = (svgpath: string) =>\n useMemo(() => {\n const p = Skia.Path.MakeFromSVGString(svgpath);\n if (p === null) {\n throw new Error(`Invalid SVG path: ${svgpath}`);\n }\n return p;\n }, [svgpath]);\n\n/**\n * Initializes a Skia Path from a text string\n * @param svgpath\n * @returns\n */\nexport const useTextPath = (text: string, x: number, y: number, font: SkFont) =>\n usePath(\n (p) => {\n p.fromText(text, x, y, font);\n },\n [text, x, y, font]\n );\n"]}
@@ -16,4 +16,4 @@ export const usePicture = function (rect, cb) {
16
16
  return recorder.finishRecordingAsPicture(); // eslint-disable-next-line react-hooks/exhaustive-deps
17
17
  }, [cb, rect, deps]);
18
18
  };
19
- //# sourceMappingURL=usePicture.js.map
19
+ //# sourceMappingURL=Picture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Picture.ts"],"names":["useMemo","Skia","usePicture","rect","cb","deps","recorder","PictureRecorder","canvas","beginRecording","finishRecordingAsPicture"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,IAAT,QAAqB,SAArB;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAG,UACxBC,IADwB,EAExBC,EAFwB,EAIV;AAAA,MADdC,IACc,uEADS,EACT;AACd,SAAOL,OAAO,CAAC,MAAM;AACnB,UAAMM,QAAQ,GAAGL,IAAI,CAACM,eAAL,EAAjB;AACA,UAAMC,MAAM,GAAGF,QAAQ,CAACG,cAAT,CAAwBN,IAAxB,CAAf;AACAC,IAAAA,EAAE,CAACI,MAAD,CAAF;AACA,WAAOF,QAAQ,CAACI,wBAAT,EAAP,CAJmB,CAKnB;AACD,GANa,EAMX,CAACN,EAAD,EAAKD,IAAL,EAAWE,IAAX,CANW,CAAd;AAOD,CAZM","sourcesContent":["import type { DependencyList } from \"react\";\nimport { useMemo } from \"react\";\n\nimport { Skia } from \"../Skia\";\nimport type { SkCanvas, SkPicture, SkRect } from \"../types\";\n\n/**\n * Memoizes and returns an SkPicture that can be drawn to another canvas.\n * @param rect Picture bounds\n * @param cb Callback for drawing to the canvas\n * @returns SkPicture\n */\nexport const usePicture = (\n rect: SkRect,\n cb: (canvas: SkCanvas) => void,\n deps: DependencyList = []\n): SkPicture => {\n return useMemo(() => {\n const recorder = Skia.PictureRecorder();\n const canvas = recorder.beginRecording(rect);\n cb(canvas);\n return recorder.finishRecordingAsPicture();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [cb, rect, deps]);\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import { Skia } from "../Skia";
2
+ import { useRawData } from "./Data";
3
+ export const useSVG = (source, onError) => useRawData(source, Skia.SVG.MakeFromData, onError);
4
+ //# sourceMappingURL=SVG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["SVG.ts"],"names":["Skia","useRawData","useSVG","source","onError","SVG","MakeFromData"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,SAASC,UAAT,QAA2B,QAA3B;AAEA,OAAO,MAAMC,MAAM,GAAG,CACpBC,MADoB,EAEpBC,OAFoB,KAGjBH,UAAU,CAACE,MAAD,EAASH,IAAI,CAACK,GAAL,CAASC,YAAlB,EAAgCF,OAAhC,CAHR","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSource } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n\nexport const useSVG = (\n source: DataSource | null | undefined,\n onError?: (err: Error) => void\n) => useRawData(source, Skia.SVG.MakeFromData, onError);\n"]}
@@ -4,4 +4,4 @@ export const useShader = sksl => useMemo(() => {
4
4
  console.warn("Use shader will be deprecated.");
5
5
  return Skia.RuntimeEffect.Make(sksl);
6
6
  }, [sksl]);
7
- //# sourceMappingURL=useShader.js.map
7
+ //# sourceMappingURL=Shader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Shader.ts"],"names":["useMemo","Skia","useShader","sksl","console","warn","RuntimeEffect","Make"],"mappings":"AAAA,SAASA,OAAT,QAAwB,OAAxB;AAEA,SAASC,IAAT,QAAqB,SAArB;AAEA,OAAO,MAAMC,SAAS,GAAIC,IAAD,IACvBH,OAAO,CAAC,MAAM;AACZI,EAAAA,OAAO,CAACC,IAAR,CAAa,gCAAb;AACA,SAAOJ,IAAI,CAACK,aAAL,CAAmBC,IAAnB,CAAwBJ,IAAxB,CAAP;AACD,CAHM,EAGJ,CAACA,IAAD,CAHI,CADF","sourcesContent":["import { useMemo } from \"react\";\n\nimport { Skia } from \"../Skia\";\n\nexport const useShader = (sksl: string) =>\n useMemo(() => {\n console.warn(\"Use shader will be deprecated.\");\n return Skia.RuntimeEffect.Make(sksl);\n }, [sksl]);\n"]}
@@ -0,0 +1,8 @@
1
+ import { Skia } from "../Skia";
2
+ import { useRawData } from "./Data";
3
+ /**
4
+ * Returns a Skia Typeface object
5
+ * */
6
+
7
+ export const useTypeface = (source, onError) => useRawData(source, Skia.Typeface.MakeFreeTypeFaceFromData, onError);
8
+ //# sourceMappingURL=Typeface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Typeface.ts"],"names":["Skia","useRawData","useTypeface","source","onError","Typeface","MakeFreeTypeFaceFromData"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB;AAGA,SAASC,UAAT,QAA2B,QAA3B;AACA;AACA;AACA;;AACA,OAAO,MAAMC,WAAW,GAAG,CACzBC,MADyB,EAEzBC,OAFyB,KAGtBH,UAAU,CAACE,MAAD,EAASH,IAAI,CAACK,QAAL,CAAcC,wBAAvB,EAAiDF,OAAjD,CAHR","sourcesContent":["import { Skia } from \"../Skia\";\nimport type { DataSource } from \"../types\";\n\nimport { useRawData } from \"./Data\";\n/**\n * Returns a Skia Typeface object\n * */\nexport const useTypeface = (\n source: DataSource | null | undefined,\n onError?: (err: Error) => void\n) => useRawData(source, Skia.Typeface.MakeFreeTypeFaceFromData, onError);\n"]}
@@ -0,0 +1,11 @@
1
+ export * from "./Color";
2
+ export * from "./Data";
3
+ export * from "./Font";
4
+ export * from "./Typeface";
5
+ export * from "./Image";
6
+ export * from "./Picture";
7
+ export * from "./SVG";
8
+ export * from "./Shader";
9
+ export * from "./Paint";
10
+ export * from "./Path";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,YAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,OAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd","sourcesContent":["export * from \"./Color\";\nexport * from \"./Data\";\nexport * from \"./Font\";\nexport * from \"./Typeface\";\nexport * from \"./Image\";\nexport * from \"./Picture\";\nexport * from \"./SVG\";\nexport * from \"./Shader\";\nexport * from \"./Paint\";\nexport * from \"./Path\";\n"]}
@@ -1,25 +1,4 @@
1
1
  export { Skia } from "./Skia";
2
- export * from "./Canvas";
3
- export * from "./Paint";
4
- export * from "./Rect";
5
- export * from "./RRect";
6
- export * from "./Point";
7
- export * from "./Path";
8
- export * from "./Font";
9
- export * from "./Typeface";
10
- export * from "./MaskFilter";
11
- export * from "./ColorFilter";
12
- export * from "./ImageFilter";
13
- export * from "./PathEffect";
14
- export * from "./RuntimeEffect";
15
- export * from "./Shader";
16
- export * from "./Image";
17
- export * from "./Matrix";
18
- export * from "./SVG";
19
- export * from "./Surface";
20
- export * from "./FontMgr";
21
- export * from "./Vertices";
22
- export * from "./Color";
23
- export * from "./Picture";
24
- export * from "./Data";
2
+ export * from "./core";
3
+ export * from "./types";
25
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["Skia"],"mappings":"AAAA,SAASA,IAAT,QAAqB,QAArB;AACA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,SAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,YAAd;AACA,cAAc,cAAd;AACA,cAAc,eAAd;AACA,cAAc,eAAd;AACA,cAAc,cAAd;AACA,cAAc,iBAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,UAAd;AACA,cAAc,OAAd;AACA,cAAc,WAAd;AACA,cAAc,WAAd;AACA,cAAc,YAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,QAAd","sourcesContent":["export { Skia } from \"./Skia\";\nexport * from \"./Canvas\";\nexport * from \"./Paint\";\nexport * from \"./Rect\";\nexport * from \"./RRect\";\nexport * from \"./Point\";\nexport * from \"./Path\";\nexport * from \"./Font\";\nexport * from \"./Typeface\";\nexport * from \"./MaskFilter\";\nexport * from \"./ColorFilter\";\nexport * from \"./ImageFilter\";\nexport * from \"./PathEffect\";\nexport * from \"./RuntimeEffect\";\nexport * from \"./Shader\";\nexport * from \"./Image\";\nexport * from \"./Matrix\";\nexport * from \"./SVG\";\nexport * from \"./Surface\";\nexport * from \"./FontMgr\";\nexport * from \"./Vertices\";\nexport * from \"./Color\";\nexport * from \"./Picture\";\nexport * from \"./Data\";\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":["Skia"],"mappings":"AAAA,SAASA,IAAT,QAAqB,QAArB;AACA,cAAc,QAAd;AACA,cAAc,SAAd","sourcesContent":["export { Skia } from \"./Skia\";\nexport * from \"./core\";\nexport * from \"./types\";\n"]}
File without changes
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=Color.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Data.js.map
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Font.ts"],"names":["fontStyle","weight","width","slant","FontWeight","FontWidth","FontSlant","FontEdging","FontHinting","FontStyle","Normal","Upright","Bold","Italic","BoldItalic"],"mappings":"AAuKA,MAAMA,SAAS,GAAG,CAChBC,MADgB,EAEhBC,KAFgB,EAGhBC,KAHgB,MAID;AAAEF,EAAAA,MAAF;AAAUC,EAAAA,KAAV;AAAiBC,EAAAA;AAAjB,CAJC,CAAlB;;AAYA,WAAYC,UAAZ;;WAAYA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAcZ,WAAYC,SAAZ;;WAAYA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,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;;AAYZ,WAAYC,SAAZ;;WAAYA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;GAAAA,S,KAAAA,S;;AAMZ,WAAYC,UAAZ;;WAAYA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAMZ,WAAYC,WAAZ;;WAAYA,W;AAAAA,EAAAA,W,CAAAA,W;AAAAA,EAAAA,W,CAAAA,W;AAAAA,EAAAA,W,CAAAA,W;AAAAA,EAAAA,W,CAAAA,W;GAAAA,W,KAAAA,W;;AAOZ,OAAO,MAAMC,SAAS,GAAG;AACvBC,EAAAA,MAAM,EAAEV,SAAS,CAACI,UAAU,CAACM,MAAZ,EAAoBL,SAAS,CAACK,MAA9B,EAAsCJ,SAAS,CAACK,OAAhD,CADM;AAEvBC,EAAAA,IAAI,EAAEZ,SAAS,CAACI,UAAU,CAACQ,IAAZ,EAAkBP,SAAS,CAACK,MAA5B,EAAoCJ,SAAS,CAACK,OAA9C,CAFQ;AAGvBE,EAAAA,MAAM,EAAEb,SAAS,CAACI,UAAU,CAACM,MAAZ,EAAoBL,SAAS,CAACK,MAA9B,EAAsCJ,SAAS,CAACO,MAAhD,CAHM;AAIvBC,EAAAA,UAAU,EAAEd,SAAS,CAACI,UAAU,CAACQ,IAAZ,EAAkBP,SAAS,CAACK,MAA5B,EAAoCJ,SAAS,CAACO,MAA9C;AAJE,CAAlB","sourcesContent":["import type { SkJSIInstance } from \"../JsiInstance\";\nimport type { SkPaint } from \"../Paint\";\nimport type { SkRect } from \"../Rect\";\nimport type { SkPoint } from \"../Point\";\nimport type { SkTypeface } from \"../Typeface\";\n\nexport interface FontMetrics {\n ascent: number; // suggested space above the baseline. < 0\n descent: number; // suggested space below the baseline. > 0\n leading: number; // suggested spacing between descent of previous line and ascent of next line.\n bounds?: SkRect; // smallest rect containing all glyphs (relative to 0,0)\n}\n\nexport interface SkFont extends SkJSIInstance<\"Font\"> {\n /** Returns the advance width of text.\n The advance is the normal distance to move before drawing additional text.\n Returns the bounding box of text if bounds is not nullptr. The paint\n stroke settings, mask filter, or path effect may modify the bounds.\n\n @param text character storage encoded with SkTextEncoding\n @param byteLength length of character storage in bytes\n @param bounds returns bounding box relative to (0, 0) if not nullptr\n @param paint optional; may be nullptr\n @return number of glyphs represented by text of length byteLength\n */\n measureText: (text: string, paint?: SkPaint) => SkRect;\n\n /**\n * Returns the FontMetrics for this font.\n */\n getMetrics(): FontMetrics;\n\n /**\n * Retrieves the glyph ids for each code point in the provided string. This call is passed to\n * the typeface of this font. Note that glyph IDs are typeface-dependent; different faces\n * may have different ids for the same code point.\n * @param str\n * @param numCodePoints - the number of code points in the string. Defaults to str.length.\n */\n getGlyphIDs(str: string, numCodePoints?: number): number[];\n\n /**\n * Retrieves the advanceX measurements for each glyph.\n * If paint is not null, its stroking, PathEffect, and MaskFilter fields are respected.\n * One width per glyph is returned in the returned array.\n * @param glyphs\n * @param paint\n * @param output - if provided, the results will be copied into this array.\n */\n getGlyphWidths(\n glyphs: number[],\n paint?: SkPaint | null,\n output?: Float32Array\n ): Float32Array;\n\n /**\n * Computes any intersections of a thick \"line\" and a run of positionsed glyphs.\n * The thick line is represented as a top and bottom coordinate (positive for\n * below the baseline, negative for above). If there are no intersections\n * (e.g. if this is intended as an underline, and there are no \"collisions\")\n * then the returned array will be empty. If there are intersections, the array\n * will contain pairs of X coordinates [start, end] for each segment that\n * intersected with a glyph.\n *\n * @param glyphs the glyphs to intersect with\n * @param positions x,y coordinates (2 per glyph) for each glyph\n * @param top top of the thick \"line\" to use for intersection testing\n * @param bottom bottom of the thick \"line\" to use for intersection testing\n * @return array of [start, end] x-coordinate pairs. Maybe be empty.\n */\n getGlyphIntercepts(\n glyphs: number[],\n positions: SkPoint[],\n top: number,\n bottom: number\n ): number[];\n\n /**\n * Returns text scale on x-axis. Default value is 1.\n */\n getScaleX(): number;\n\n /**\n * Returns text size in points.\n */\n getSize(): number;\n\n /**\n * Returns text skew on x-axis. Default value is zero.\n */\n getSkewX(): number;\n\n /**\n * Returns embolden effect for this font. Default value is false.\n */\n isEmbolden(): boolean;\n\n /**\n * Returns the Typeface set for this font.\n */\n getTypeface(): SkTypeface | null;\n\n /**\n * Requests, but does not require, that edge pixels draw opaque or with partial transparency.\n * @param edging\n */\n setEdging(edging: FontEdging): void;\n\n /**\n * Requests, but does not require, to use bitmaps in fonts instead of outlines.\n * @param embeddedBitmaps\n */\n setEmbeddedBitmaps(embeddedBitmaps: boolean): void;\n\n /**\n * Sets level of glyph outline adjustment.\n * @param hinting\n */\n setHinting(hinting: FontHinting): void;\n\n /**\n * Requests, but does not require, linearly scalable font and glyph metrics.\n *\n * For outline fonts 'true' means font and glyph metrics should ignore hinting and rounding.\n * Note that some bitmap formats may not be able to scale linearly and will ignore this flag.\n * @param linearMetrics\n */\n setLinearMetrics(linearMetrics: boolean): void;\n\n /**\n * Sets the text scale on the x-axis.\n * @param sx\n */\n setScaleX(sx: number): void;\n\n /**\n * Sets the text size in points on this font.\n * @param points\n */\n setSize(points: number): void;\n\n /**\n * Sets the text-skew on the x axis for this font.\n * @param sx\n */\n setSkewX(sx: number): void;\n\n /**\n * Set embolden effect for this font.\n * @param embolden\n */\n setEmbolden(embolden: boolean): void;\n\n /**\n * Requests, but does not require, that glyphs respect sub-pixel positioning.\n * @param subpixel\n */\n setSubpixel(subpixel: boolean): void;\n\n /**\n * Sets the typeface to use with this font. null means to clear the typeface and use the\n * default one.\n * @param face\n */\n setTypeface(face: SkTypeface | null): void;\n}\n\nconst fontStyle = (\n weight: FontWeight,\n width: FontWidth,\n slant: FontSlant\n): FontStyle => ({ weight, width, slant });\n\nexport interface FontStyle {\n weight?: FontWeight;\n width?: FontWidth;\n slant?: FontSlant;\n}\n\nexport enum FontWeight {\n Invisible = 0,\n Thin = 100,\n ExtraLight = 200,\n Light = 300,\n Normal = 400,\n Medium = 500,\n SemiBold = 600,\n Bold = 700,\n ExtraBold = 800,\n Black = 900,\n ExtraBlack = 1000,\n}\n\nexport enum FontWidth {\n UltraCondensed = 1,\n ExtraCondensed = 2,\n Condensed = 3,\n SemiCondensed = 4,\n Normal = 5,\n SemiExpanded = 6,\n Expanded = 7,\n ExtraExpanded = 8,\n UltraExpanded = 9,\n}\n\nexport enum FontSlant {\n Upright,\n Italic,\n Oblique,\n}\n\nexport enum FontEdging {\n Alias,\n AntiAlias,\n SubpixelAntiAlias,\n}\n\nexport enum FontHinting {\n None,\n Slight,\n Normal,\n Full,\n}\n\nexport const FontStyle = {\n Normal: fontStyle(FontWeight.Normal, FontWidth.Normal, FontSlant.Upright),\n Bold: fontStyle(FontWeight.Bold, FontWidth.Normal, FontSlant.Upright),\n Italic: fontStyle(FontWeight.Normal, FontWidth.Normal, FontSlant.Italic),\n BoldItalic: fontStyle(FontWeight.Bold, FontWidth.Normal, FontSlant.Italic),\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./Font";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAd","sourcesContent":["export * from \"./Font\";\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./FontMgrFactory";
2
+ export * from "./FontMgr";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAd;AACA,cAAc,WAAd","sourcesContent":["export * from \"./FontMgrFactory\";\nexport * from \"./FontMgr\";\n"]}
File without changes
@@ -1 +1 @@
1
- {"version":3,"sources":["Image.ts"],"names":["FilterMode","MipmapMode","ImageFormat"],"mappings":"AAKA,WAAYA,UAAZ;;WAAYA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAKZ,WAAYC,UAAZ;;WAAYA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAMZ,WAAYC,WAAZ;;WAAYA,W;AAAAA,EAAAA,W,CAAAA,W;AAAAA,EAAAA,W,CAAAA,W;AAAAA,EAAAA,W,CAAAA,W;GAAAA,W,KAAAA,W","sourcesContent":["import type { TileMode } from \"../ImageFilter\";\nimport type { SkShader } from \"../Shader\";\nimport type { SkMatrix } from \"../Matrix\";\nimport type { SkJSIInstance } from \"../JsiInstance\";\n\nexport enum FilterMode {\n Linear,\n Nearest,\n}\n\nexport enum MipmapMode {\n None,\n Nearest,\n Linear,\n}\n\nexport enum ImageFormat {\n PNG,\n JPEG,\n WEBP,\n}\n\nexport interface SkImage extends SkJSIInstance<\"Image\"> {\n /**\n * Returns the possibly scaled height of the image.\n */\n height(): number;\n\n /**\n * Returns the possibly scaled width of the image.\n */\n width(): number;\n\n /**\n * Returns this image as a shader with the specified tiling. It will use cubic sampling.\n * @param tx - tile mode in the x direction.\n * @param ty - tile mode in the y direction.\n * @param fm - The filter mode. (default nearest)\n * @param mm - The mipmap mode. Note: for settings other than None, the image must have mipmaps (default none)\n * calculated with makeCopyWithDefaultMipmaps;\n * @param localMatrix\n */\n makeShaderOptions(\n tx: TileMode,\n ty: TileMode,\n fm: FilterMode,\n mm: MipmapMode,\n localMatrix?: SkMatrix\n ): SkShader;\n\n /**\n * Returns this image as a shader with the specified tiling. It will use cubic sampling.\n * @param tx - tile mode in the x direction.\n * @param ty - tile mode in the y direction.\n * @param B - See CubicResampler in SkSamplingOptions.h for more information\n * @param C - See CubicResampler in SkSamplingOptions.h for more information\n * @param localMatrix\n */\n makeShaderCubic(\n tx: TileMode,\n ty: TileMode,\n B: number,\n C: number,\n localMatrix?: SkMatrix\n ): SkShader;\n\n /** Encodes Image pixels, returning result as UInt8Array. Returns existing\n encoded data if present; otherwise, SkImage is encoded with\n SkEncodedImageFormat::kPNG. Skia must be built with SK_ENCODE_PNG to encode\n SkImage.\n\n Returns nullptr if existing encoded data is missing or invalid, and\n encoding fails.\n\n @param fmt - PNG is the default value.\n @param quality - a value from 0 to 100; 100 is the least lossy. May be ignored.\n\n @return Uint8Array with data\n */\n encodeToBytes(fmt?: ImageFormat, quality?: number): Uint8Array;\n\n /** Encodes Image pixels, returning result as a base64 encoded string. Returns existing\n encoded data if present; otherwise, SkImage is encoded with\n SkEncodedImageFormat::kPNG. Skia must be built with SK_ENCODE_PNG to encode\n SkImage.\n\n Returns nullptr if existing encoded data is missing or invalid, and\n encoding fails.\n\n @param fmt - PNG is the default value.\n @param quality - a value from 0 to 100; 100 is the least lossy. May be ignored.\n\n @return base64 encoded string of data\n */\n encodeToBase64(fmt?: ImageFormat, quality?: number): string;\n}\n"]}
1
+ {"version":3,"sources":["Image.ts"],"names":["FilterMode","MipmapMode","ImageFormat"],"mappings":"AAKA,WAAYA,UAAZ;;WAAYA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAKZ,WAAYC,UAAZ;;WAAYA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAMZ,WAAYC,WAAZ;;WAAYA,W;AAAAA,EAAAA,W,CAAAA,W;AAAAA,EAAAA,W,CAAAA,W;AAAAA,EAAAA,W,CAAAA,W;GAAAA,W,KAAAA,W","sourcesContent":["import type { SkMatrix } from \"../Matrix\";\nimport type { SkJSIInstance } from \"../JsiInstance\";\nimport type { TileMode } from \"../ImageFilter\";\nimport type { SkShader } from \"../Shader\";\n\nexport enum FilterMode {\n Linear,\n Nearest,\n}\n\nexport enum MipmapMode {\n None,\n Nearest,\n Linear,\n}\n\nexport enum ImageFormat {\n PNG,\n JPEG,\n WEBP,\n}\n\nexport interface SkImage extends SkJSIInstance<\"Image\"> {\n /**\n * Returns the possibly scaled height of the image.\n */\n height(): number;\n\n /**\n * Returns the possibly scaled width of the image.\n */\n width(): number;\n\n /**\n * Returns this image as a shader with the specified tiling. It will use cubic sampling.\n * @param tx - tile mode in the x direction.\n * @param ty - tile mode in the y direction.\n * @param fm - The filter mode. (default nearest)\n * @param mm - The mipmap mode. Note: for settings other than None, the image must have mipmaps (default none)\n * calculated with makeCopyWithDefaultMipmaps;\n * @param localMatrix\n */\n makeShaderOptions(\n tx: TileMode,\n ty: TileMode,\n fm: FilterMode,\n mm: MipmapMode,\n localMatrix?: SkMatrix\n ): SkShader;\n\n /**\n * Returns this image as a shader with the specified tiling. It will use cubic sampling.\n * @param tx - tile mode in the x direction.\n * @param ty - tile mode in the y direction.\n * @param B - See CubicResampler in SkSamplingOptions.h for more information\n * @param C - See CubicResampler in SkSamplingOptions.h for more information\n * @param localMatrix\n */\n makeShaderCubic(\n tx: TileMode,\n ty: TileMode,\n B: number,\n C: number,\n localMatrix?: SkMatrix\n ): SkShader;\n\n /** Encodes Image pixels, returning result as UInt8Array. Returns existing\n encoded data if present; otherwise, SkImage is encoded with\n SkEncodedImageFormat::kPNG. Skia must be built with SK_ENCODE_PNG to encode\n SkImage.\n\n Returns nullptr if existing encoded data is missing or invalid, and\n encoding fails.\n\n @param fmt - PNG is the default value.\n @param quality - a value from 0 to 100; 100 is the least lossy. May be ignored.\n\n @return Uint8Array with data\n */\n encodeToBytes(fmt?: ImageFormat, quality?: number): Uint8Array;\n\n /** Encodes Image pixels, returning result as a base64 encoded string. Returns existing\n encoded data if present; otherwise, SkImage is encoded with\n SkEncodedImageFormat::kPNG. Skia must be built with SK_ENCODE_PNG to encode\n SkImage.\n\n Returns nullptr if existing encoded data is missing or invalid, and\n encoding fails.\n\n @param fmt - PNG is the default value.\n @param quality - a value from 0 to 100; 100 is the least lossy. May be ignored.\n\n @return base64 encoded string of data\n */\n encodeToBase64(fmt?: ImageFormat, quality?: number): string;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./Image";
2
+ export * from "./ImageFactory";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAd;AACA,cAAc,gBAAd","sourcesContent":["export * from \"./Image\";\nexport * from \"./ImageFactory\";\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["ImageFilterFactory.ts"],"names":["ColorChannel"],"mappings":"AASA,WAAYA,YAAZ;;WAAYA,Y;AAAAA,EAAAA,Y,CAAAA,Y;AAAAA,EAAAA,Y,CAAAA,Y;AAAAA,EAAAA,Y,CAAAA,Y;AAAAA,EAAAA,Y,CAAAA,Y;GAAAA,Y,KAAAA,Y","sourcesContent":["import type { SkColor } from \"../Color\";\nimport type { SkColorFilter } from \"../ColorFilter/ColorFilter\";\nimport type { BlendMode } from \"../Paint\";\nimport type { SkRect } from \"../Rect\";\nimport type { SkRuntimeShaderBuilder } from \"../RuntimeEffect\";\nimport type { SkShader } from \"../Shader\";\n\nimport type { SkImageFilter, TileMode } from \"./ImageFilter\";\n\nexport enum ColorChannel {\n R,\n G,\n B,\n A,\n}\n\nexport interface ImageFilterFactory {\n /**\n * Offsets the input image\n *\n * @param dx - Offset along the X axis\n * @param dy - Offset along the X axis\n * @param input - if null, it will use the dynamic source image\n */\n MakeOffset(\n dx: number,\n dy: number,\n input: SkImageFilter | null\n ): SkImageFilter;\n /**\n * Spatially displace pixel values of the filtered image\n *\n * @param channelX - Color channel to be used along the X axis\n * @param channelY - Color channel to be used along the Y axis\n * @param scale - Scale factor to be used in the displacement\n * @param in1 - Source image filter to use for the displacement\n * @param input - if null, it will use the dynamic source image\n */\n MakeDisplacementMap(\n channelX: ColorChannel,\n channelY: ColorChannel,\n scale: number,\n in1: SkImageFilter,\n input: SkImageFilter | null\n ): SkImageFilter;\n /**\n * Transforms a shader into an impage filter\n *\n * @param shader - The Shader to be transformed\n * @param input - if null, it will use the dynamic source image\n */\n MakeShader(shader: SkShader, input: SkImageFilter | null): SkImageFilter;\n /**\n * Create a filter that blurs its input by the separate X and Y sigmas. The provided tile mode\n * is used when the blur kernel goes outside the input image.\n *\n * @param sigmaX - The Gaussian sigma value for blurring along the X axis.\n * @param sigmaY - The Gaussian sigma value for blurring along the Y axis.\n * @param mode\n * @param input - if null, it will use the dynamic source image (e.g. a saved layer)\n */\n MakeBlur(\n sigmaX: number,\n sigmaY: number,\n mode: TileMode,\n input: SkImageFilter | null\n ): SkImageFilter;\n\n /**\n * Create a filter that applies the color filter to the input filter results.\n * @param cf\n * @param input - if null, it will use the dynamic source image (e.g. a saved layer)\n */\n MakeColorFilter(\n cf: SkColorFilter,\n input: SkImageFilter | null\n ): SkImageFilter;\n\n /**\n * Create a filter that composes 'inner' with 'outer', such that the results of 'inner' are\n * treated as the source bitmap passed to 'outer'.\n * If either param is null, the other param will be returned.\n * @param outer\n * @param inner - if null, it will use the dynamic source image (e.g. a saved layer)\n */\n MakeCompose(\n outer: SkImageFilter | null,\n inner: SkImageFilter | null\n ): SkImageFilter;\n\n /**\n * Create a filter that draws a drop shadow under the input content.\n * This filter produces an image that includes the inputs' content.\n * @param dx The X offset of the shadow.\n * @param dy\tThe Y offset of the shadow.\n * @param sigmaX\tThe blur radius for the shadow, along the X axis.\n * @param sigmaY\tThe blur radius for the shadow, along the Y axis.\n * @param color\tThe color of the drop shadow.\n * @param input\tThe input filter, or will use the source bitmap if this is null.\n * @param cropRect\tOptional rectangle that crops the input and output.\n */\n MakeDropShadow: (\n dx: number,\n dy: number,\n sigmaX: number,\n sigmaY: number,\n color: SkColor,\n input: SkImageFilter | null,\n cropRect?: SkRect\n ) => SkImageFilter;\n /**\n * Create a filter that renders a drop shadow, in exactly the same manner as ::DropShadow, except\n * that the resulting image does not include the input content.\n * This allows the shadow and input to be composed by a filter DAG in a more flexible manner.\n * @param dx The X offset of the shadow.\n * @param dy\tThe Y offset of the shadow.\n * @param sigmaX\tThe blur radius for the shadow, along the X axis.\n * @param sigmaY\tThe blur radius for the shadow, along the Y axis.\n * @param color\tThe color of the drop shadow.\n * @param input\tThe input filter, or will use the source bitmap if this is null.\n * @param cropRect\tOptional rectangle that crops the input and output.\n */\n MakeDropShadowOnly: (\n dx: number,\n dy: number,\n sigmaX: number,\n sigmaY: number,\n color: SkColor,\n input: SkImageFilter | null,\n cropRect?: SkRect\n ) => SkImageFilter;\n /**\n * Create a filter that erodes each input pixel's channel values to the minimum channel value\n * within the given radii along the x and y axes.\n * @param radiusX The distance to erode along the x axis to either side of each pixel.\n * @param radiusY The distance to erode along the y axis to either side of each pixel.\n * @param input The image filter that is eroded, using source bitmap if this is null.\n * @param cropRect Optional rectangle that crops the input and output.\n */\n MakeErode: (\n rx: number,\n ry: number,\n input: SkImageFilter | null,\n cropRect?: SkRect\n ) => SkImageFilter;\n /**\n * Create a filter that dilates each input pixel's channel values to the max value within the\n * given radii along the x and y axes.\n * @param radiusX The distance to dilate along the x axis to either side of each pixel.\n * @param radiusY The distance to dilate along the y axis to either side of each pixel.\n * @param input The image filter that is dilated, using source bitmap if this is null.\n * @param cropRect Optional rectangle that crops the input and output.\n */\n MakeDilate: (\n rx: number,\n ry: number,\n input: SkImageFilter | null,\n cropRect?: SkRect\n ) => SkImageFilter;\n /**\n * This filter takes an SkBlendMode and uses it to composite the two filters together.\n * @param mode The blend mode that defines the compositing operation\n * @param background The Dst pixels used in blending, if null the source bitmap is used.\n * @param foreground The Src pixels used in blending, if null the source bitmap is used.\n * @cropRect Optional rectangle to crop input and output.\n */\n MakeBlend: (\n mode: BlendMode,\n background: SkImageFilter,\n foreground: SkImageFilter | null,\n cropRect?: SkRect\n ) => SkImageFilter;\n /**\n * Create a filter that fills the output with the per-pixel evaluation of the SkShader produced\n * by the SkRuntimeShaderBuilder. The shader is defined in the image filter's local coordinate\n * system, so it will automatically be affected by SkCanvas' transform.\n *\n * @param builder The builder used to produce the runtime shader, that will in turn\n * fill the result image\n * @param childShaderName The name of the child shader defined in the builder that will be\n * bound to the input param (or the source image if the input param\n * is null). If null the builder can have exactly one child shader,\n * which automatically binds the input param.\n * @param input The image filter that will be provided as input to the runtime\n * shader. If null the implicit source image is used instead\n */\n MakeRuntimeShader: (\n builder: SkRuntimeShaderBuilder,\n childShaderName: string | null,\n input: SkImageFilter | null\n ) => SkImageFilter;\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["MaskFilter.ts"],"names":["BlurStyle","isMaskFilter","obj","__typename__"],"mappings":"AAEA,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;;AAOZ,OAAO,MAAMC,YAAY,GACvBC,GAD0B,IAEFA,GAAG,KAAK,IAAR,IAAgBA,GAAG,CAACC,YAAJ,KAAqB,YAFxD","sourcesContent":["import type { SkJSIInstance } from \"./JsiInstance\";\n\nexport enum BlurStyle {\n Normal, //!< fuzzy inside and outside\n Solid, //!< solid inside, fuzzy outside\n Outer, //!< nothing inside, fuzzy outside\n Inner, //!< fuzzy inside, nothing outside\n}\n\nexport const isMaskFilter = (\n obj: SkJSIInstance<string> | null\n): obj is SkMaskFilter => obj !== null && obj.__typename__ === \"MaskFilter\";\n\nexport type SkMaskFilter = SkJSIInstance<\"MaskFilter\">;\n\n/**\n * See SkMaskFilter.h for more details.\n */\nexport interface MaskFilterFactory {\n /**\n * Create a blur maskfilter\n * @param style\n * @param sigma - Standard deviation of the Gaussian blur to apply. Must be > 0.\n * @param respectCTM - if true the blur's sigma is modified by the CTM.\n */\n MakeBlur(style: BlurStyle, sigma: number, respectCTM: boolean): SkMaskFilter;\n}\n"]}
File without changes
@@ -1,4 +1,3 @@
1
- import { Skia } from "../Skia";
2
1
  export let PaintStyle;
3
2
 
4
3
  (function (PaintStyle) {
@@ -22,10 +21,5 @@ export let StrokeJoin;
22
21
  StrokeJoin[StrokeJoin["Round"] = 2] = "Round";
23
22
  })(StrokeJoin || (StrokeJoin = {}));
24
23
 
25
- export const SkiaPaint = () => {
26
- const paint = Skia.Paint();
27
- paint.setAntiAlias(true);
28
- return paint;
29
- };
30
24
  export const isPaint = obj => obj !== null && obj.__typename__ === "Paint";
31
25
  //# sourceMappingURL=Paint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Paint.ts"],"names":["PaintStyle","StrokeCap","StrokeJoin","isPaint","obj","__typename__"],"mappings":"AAUA,WAAYA,UAAZ;;WAAYA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAKZ,WAAYC,SAAZ;;WAAYA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;AAAAA,EAAAA,S,CAAAA,S;GAAAA,S,KAAAA,S;;AAMZ,WAAYC,UAAZ;;WAAYA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;AAAAA,EAAAA,U,CAAAA,U;GAAAA,U,KAAAA,U;;AAMZ,OAAO,MAAMC,OAAO,GAAIC,GAAD,IACrBA,GAAG,KAAK,IAAR,IAAgBA,GAAG,CAACC,YAAJ,KAAqB,OADhC","sourcesContent":["import type { SkImageFilter } from \"../ImageFilter\";\nimport type { SkMaskFilter } from \"../MaskFilter\";\nimport type { SkColorFilter } from \"../ColorFilter\";\nimport type { SkColor } from \"../Color\";\nimport type { SkPathEffect } from \"../PathEffect\";\nimport type { SkJSIInstance } from \"../JsiInstance\";\nimport type { SkShader } from \"../Shader\";\n\nimport type { BlendMode } from \"./BlendMode\";\n\nexport enum PaintStyle {\n Fill,\n Stroke,\n}\n\nexport enum StrokeCap {\n Butt,\n Round,\n Square,\n}\n\nexport enum StrokeJoin {\n Bevel,\n Miter,\n Round,\n}\n\nexport const isPaint = (obj: SkJSIInstance<string> | null): obj is SkPaint =>\n obj !== null && obj.__typename__ === \"Paint\";\n\nexport interface SkPaint extends SkJSIInstance<\"Paint\"> {\n /**\n * Returns a copy of this paint.\n */\n copy(): SkPaint;\n\n /**\n * Retrieves the alpha and RGB unpremultiplied. RGB are extended sRGB values\n * (sRGB gamut, and encoded with the sRGB transfer function).\n */\n getColor(): SkColor;\n\n /**\n * Returns the geometry drawn at the beginning and end of strokes.\n */\n getStrokeCap(): StrokeCap;\n\n /**\n * Returns the geometry drawn at the corners of strokes.\n */\n getStrokeJoin(): StrokeJoin;\n\n /**\n * Returns the limit at which a sharp corner is drawn beveled.\n */\n getStrokeMiter(): number;\n\n /**\n * Returns the thickness of the pen used to outline the shape.\n */\n getStrokeWidth(): number;\n\n /**\n * Replaces alpha, leaving RGBA unchanged. 0 means fully transparent, 1.0 means opaque.\n * @param alpha\n */\n setAlphaf(alpha: number): void;\n\n /**\n * Requests, but does not require, that edge pixels draw opaque or with\n * partial transparency.\n * @param aa\n */\n setAntiAlias: (aa: boolean) => void;\n\n /**\n * Sets the blend mode that is, the mode used to combine source color\n * with destination color.\n * @param mode\n */\n setBlendMode: (blendMode: BlendMode) => void;\n\n /**\n * Sets alpha and RGB used when stroking and filling. The color is a 32-bit\n * value, unpremultiplied, packing 8-bit components for alpha, red, blue,\n * and green.\n *\n * @param color unpremultiplied ARGB\n *\n * example: https://fiddle.skia.org/c/@Paint_setColor\n */\n setColor(color: SkColor): void;\n\n /**\n * Sets the current color filter, replacing the existing one if there was one.\n * @param filter\n */\n setColorFilter(filter: SkColorFilter | null): void;\n\n /**\n * Sets the current image filter, replacing the existing one if there was one.\n * @param filter\n */\n setImageFilter(filter: SkImageFilter | null): void;\n\n /**\n * Sets the current mask filter, replacing the existing one if there was one.\n * @param filter\n */\n setMaskFilter(filter: SkMaskFilter | null): void;\n\n /**\n * Sets the current path effect, replacing the existing one if there was one.\n * @param effect\n */\n setPathEffect(effect: SkPathEffect | null): void;\n\n /**\n * Sets the current shader, replacing the existing one if there was one.\n * @param shader\n */\n setShader(shader: SkShader | null): void;\n\n /**\n * Sets the geometry drawn at the beginning and end of strokes.\n * @param cap\n */\n setStrokeCap(cap: StrokeCap): void;\n\n /**\n * Sets the geometry drawn at the corners of strokes.\n * @param join\n */\n setStrokeJoin(join: StrokeJoin): void;\n\n /**\n * Sets the limit at which a sharp corner is drawn beveled.\n * @param limit\n */\n setStrokeMiter(limit: number): void;\n\n /**\n * Sets the thickness of the pen used to outline the shape.\n * @param width\n */\n setStrokeWidth(width: number): void;\n\n /**\n * Sets whether the geometry is filled or stroked.\n * @param style\n */\n setStyle(style: PaintStyle): void;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./Paint";
2
+ export * from "./BlendMode";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAd;AACA,cAAc,aAAd","sourcesContent":["export * from \"./Paint\";\nexport * from \"./BlendMode\";\n"]}
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ export * from "./Path";
2
+ export * from "./PathFactory";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAd;AACA,cAAc,eAAd","sourcesContent":["export * from \"./Path\";\nexport * from \"./PathFactory\";\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["PathEffect.ts"],"names":["isPathEffect","obj","__typename__","Path1DEffectStyle"],"mappings":"AAMA,OAAO,MAAMA,YAAY,GACvBC,GAD0B,IAEFA,GAAG,KAAK,IAAR,IAAgBA,GAAG,CAACC,YAAJ,KAAqB,YAFxD;AAIP,WAAYC,iBAAZ;;WAAYA,iB;AAAAA,EAAAA,iB,CAAAA,iB;AAAAA,EAAAA,iB,CAAAA,iB;AAAAA,EAAAA,iB,CAAAA,iB;GAAAA,iB,KAAAA,iB","sourcesContent":["import type { SkJSIInstance } from \"./JsiInstance\";\nimport type { SkPath } from \"./Path/Path\";\nimport type { SkMatrix } from \"./Matrix\";\n\nexport type SkPathEffect = SkJSIInstance<\"PathEffect\">;\n\nexport const isPathEffect = (\n obj: SkJSIInstance<string> | null\n): obj is SkPathEffect => obj !== null && obj.__typename__ === \"PathEffect\";\n\nexport enum Path1DEffectStyle {\n Translate,\n Rotate,\n Morph,\n}\n\nexport interface PathEffectFactory {\n /**\n * Returns a PathEffect that can turn sharp corners into rounded corners.\n * @param radius - if <=0, returns null\n */\n MakeCorner(radius: number): SkPathEffect | null;\n\n /**\n * Returns a PathEffect that add dashes to the path.\n *\n * See SkDashPathEffect.h for more details.\n *\n * @param intervals - even number of entries with even indicies specifying the length of\n * the \"on\" intervals, and the odd indices specifying the length of \"off\".\n * @param phase - offset length into the intervals array. Defaults to 0.\n */\n MakeDash(intervals: number[], phase?: number): SkPathEffect;\n\n /**\n * Returns a PathEffect that breaks path into segments of segLength length, and randomly move\n * the endpoints away from the original path by a maximum of deviation.\n * @param segLength - length of the subsegments.\n * @param dev - limit of the movement of the endpoints.\n * @param seedAssist - modifies the randomness. See SkDiscretePathEffect.h for more.\n */\n MakeDiscrete(\n segLength: number,\n dev: number,\n seedAssist: number\n ): SkPathEffect;\n\n /**\n *\n * A pathEffect whose effect is to apply first the inner pathEffect and the the\n * outer pathEffect (i.e. outer(inner(path))).\n *\n */\n MakeCompose(outer: SkPathEffect, inner: SkPathEffect): SkPathEffect;\n\n /**\n *\n * A pathEffect pathEffect whose effect is to apply two effects,\n * in sequence (i.e. first(path) + second(path)).\n *\n */\n MakeSum(outer: SkPathEffect, inner: SkPathEffect): SkPathEffect;\n\n /**\n * Returns a PathEffect that will fill the drawing path with a pattern made by applying\n * the given matrix to a repeating set of infinitely long lines of the given width.\n * For example, the scale of the provided matrix will determine how far apart the lines\n * should be drawn its rotation affects the lines' orientation.\n * @param width - must be >= 0\n * @param matrix\n */\n MakeLine2D(width: number, matrix: SkMatrix): SkPathEffect | null;\n\n /**\n * Returns a PathEffect which implements dashing by replicating the specified path.\n * @param path The path to replicate (dash)\n * @param advance The space between instances of path\n * @param phase distance (mod advance) along path for its initial position\n * @param style how to transform path at each point (based on the current\n * position and tangent)\n */\n MakePath1D(\n path: SkPath,\n advance: number,\n phase: number,\n style: Path1DEffectStyle\n ): SkPathEffect | null;\n\n /**\n * Returns a PathEffect that will fill the drawing path with a pattern by repeating the\n * given path according to the provided matrix. For example, the scale of the matrix\n * determines how far apart the path instances should be drawn.\n * @param matrix\n * @param path\n */\n MakePath2D(matrix: SkMatrix, path: SkPath): SkPathEffect | null;\n}\n"]}
@@ -1,5 +1,4 @@
1
1
  export * from "./Picture";
2
2
  export * from "./PictureRecorder";
3
- export * from "./usePicture";
4
3
  export * from "./PictureFactory";
5
4
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAd;AACA,cAAc,mBAAd;AACA,cAAc,kBAAd","sourcesContent":["export * from \"./Picture\";\nexport * from \"./PictureRecorder\";\nexport * from \"./PictureFactory\";\n"]}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ export * from "./SVG";
2
+ export * from "./SVGFactory";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAd;AACA,cAAc,cAAd","sourcesContent":["export * from \"./SVG\";\nexport * from \"./SVGFactory\";\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./Shader";
2
+ export * from "./ShaderFactory";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAd;AACA,cAAc,iBAAd","sourcesContent":["export * from \"./Shader\";\nexport * from \"./ShaderFactory\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Skia.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}