@shopify/react-native-skia 0.1.128 → 0.1.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (780) hide show
  1. package/lib/commonjs/animation/decay/runDecay.js.map +1 -1
  2. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  3. package/lib/commonjs/animation/spring/runSpring.js.map +1 -1
  4. package/lib/commonjs/animation/spring/useSpring.js.map +1 -1
  5. package/lib/commonjs/animation/timing/createTiming.js.map +1 -1
  6. package/lib/commonjs/animation/timing/runTiming.js.map +1 -1
  7. package/lib/commonjs/animation/timing/useTiming.js.map +1 -1
  8. package/lib/commonjs/index.js.map +1 -1
  9. package/lib/commonjs/renderer/Canvas.js +1 -3
  10. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  11. package/lib/commonjs/renderer/DependencyManager.js.map +1 -1
  12. package/lib/commonjs/renderer/components/Blend.js +1 -3
  13. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  14. package/lib/commonjs/renderer/components/Compose.js +2 -6
  15. package/lib/commonjs/renderer/components/Compose.js.map +1 -1
  16. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +1 -3
  17. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  18. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +2 -4
  19. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  20. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  21. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  22. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +1 -3
  23. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  24. package/lib/commonjs/renderer/components/maskFilters/Blur.js +1 -3
  25. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  26. package/lib/commonjs/renderer/components/pathEffects/Corner.js +1 -3
  27. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  28. package/lib/commonjs/renderer/components/pathEffects/Dash.js +1 -3
  29. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  30. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +1 -3
  31. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  32. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +1 -3
  33. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  34. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +2 -4
  35. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  36. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +1 -3
  37. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  38. package/lib/commonjs/renderer/components/pathEffects/Sum.js +1 -3
  39. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  40. package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -1
  41. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  42. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  43. package/lib/commonjs/renderer/components/shapes/Patch.js +1 -3
  44. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  45. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  46. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  47. package/lib/commonjs/renderer/index.js +13 -0
  48. package/lib/commonjs/renderer/index.js.map +1 -1
  49. package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -1
  50. package/lib/commonjs/renderer/nodes/Node.js.map +1 -1
  51. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  52. package/lib/commonjs/renderer/processors/Clips.js.map +1 -1
  53. package/lib/commonjs/renderer/processors/Font.js.map +1 -1
  54. package/lib/commonjs/renderer/processors/Rects.js +5 -1
  55. package/lib/commonjs/renderer/processors/Rects.js.map +1 -1
  56. package/lib/commonjs/renderer/processors/Transform.js.map +1 -1
  57. package/lib/commonjs/skia/Skia.js +2 -36
  58. package/lib/commonjs/skia/Skia.js.map +1 -1
  59. package/lib/commonjs/skia/{Color.js → core/Color.js} +1 -1
  60. package/lib/commonjs/skia/core/Color.js.map +1 -0
  61. package/lib/commonjs/skia/{Data → core}/Data.js +29 -8
  62. package/lib/commonjs/skia/core/Data.js.map +1 -0
  63. package/lib/commonjs/skia/{Font/useFont.js → core/Font.js} +4 -4
  64. package/lib/commonjs/skia/core/Font.js.map +1 -0
  65. package/lib/commonjs/skia/{Image/useImage.js → core/Image.js} +4 -4
  66. package/lib/commonjs/skia/core/Image.js.map +1 -0
  67. package/lib/commonjs/skia/{Paint/usePaint.js → core/Paint.js} +14 -4
  68. package/lib/commonjs/skia/core/Paint.js.map +1 -0
  69. package/lib/commonjs/skia/{Path/usePath.js → core/Path.js} +1 -1
  70. package/lib/commonjs/skia/core/Path.js.map +1 -0
  71. package/lib/commonjs/skia/{Picture/usePicture.js → core/Picture.js} +1 -1
  72. package/lib/commonjs/skia/core/Picture.js.map +1 -0
  73. package/lib/commonjs/skia/core/SVG.js +15 -0
  74. package/lib/commonjs/skia/core/SVG.js.map +1 -0
  75. package/lib/commonjs/skia/{Shader/useShader.js → core/Shader.js} +1 -1
  76. package/lib/commonjs/skia/core/Shader.js.map +1 -0
  77. package/lib/commonjs/skia/{Typeface/useTypeface.js → core/Typeface.js} +3 -3
  78. package/lib/commonjs/skia/core/Typeface.js.map +1 -0
  79. package/lib/commonjs/skia/core/index.js +136 -0
  80. package/lib/commonjs/skia/core/index.js.map +1 -0
  81. package/lib/commonjs/skia/index.js +8 -302
  82. package/lib/commonjs/skia/index.js.map +1 -1
  83. package/lib/commonjs/skia/{Canvas.js → types/Canvas.js} +0 -0
  84. package/lib/commonjs/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
  85. package/lib/commonjs/skia/types/Color.js +2 -0
  86. package/lib/commonjs/skia/{ColorFilter/ColorFilterFactory.js.map → types/Color.js.map} +0 -0
  87. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
  88. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
  89. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
  90. package/lib/{module/skia → commonjs/skia/types}/ColorFilter/ColorFilterFactory.js.map +0 -0
  91. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
  92. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
  93. package/lib/commonjs/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
  94. package/lib/commonjs/skia/{ContourMeasure.js.map → types/ContourMeasure.js.map} +0 -0
  95. package/lib/commonjs/skia/types/Data/Data.js +6 -0
  96. package/lib/commonjs/skia/{Data/DataFactory.js.map → types/Data/Data.js.map} +0 -0
  97. package/lib/commonjs/skia/{Data → types/Data}/DataFactory.js +0 -0
  98. package/lib/{module/skia → commonjs/skia/types}/Data/DataFactory.js.map +0 -0
  99. package/lib/commonjs/skia/{Data → types/Data}/index.js +0 -0
  100. package/lib/commonjs/skia/{Data → types/Data}/index.js.map +0 -0
  101. package/lib/commonjs/skia/{Font → types/Font}/Font.js +0 -0
  102. package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
  103. package/lib/commonjs/skia/{Font → types/Font}/index.js +0 -13
  104. package/lib/commonjs/skia/{FontMgr → types/Font}/index.js.map +1 -1
  105. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
  106. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js.map +0 -0
  107. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
  108. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js.map +0 -0
  109. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/index.js +13 -0
  110. package/lib/commonjs/skia/types/FontMgr/index.js.map +1 -0
  111. package/lib/commonjs/skia/{Image → types/Image}/Image.js +0 -0
  112. package/lib/commonjs/skia/{Image → types/Image}/Image.js.map +1 -1
  113. package/lib/commonjs/skia/{Image → types/Image}/ImageFactory.js +0 -0
  114. package/lib/commonjs/skia/{Image → types/Image}/ImageFactory.js.map +0 -0
  115. package/lib/commonjs/skia/{Image → types/Image}/index.js +0 -13
  116. package/lib/commonjs/skia/types/Image/index.js.map +1 -0
  117. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
  118. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
  119. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
  120. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  121. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
  122. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
  123. package/lib/commonjs/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
  124. package/lib/commonjs/skia/{JsiInstance.js.map → types/JsiInstance.js.map} +0 -0
  125. package/lib/commonjs/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
  126. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
  127. package/lib/commonjs/skia/{Matrix.js → types/Matrix.js} +0 -0
  128. package/lib/commonjs/skia/{Matrix.js.map → types/Matrix.js.map} +0 -0
  129. package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js +0 -0
  130. package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
  131. package/lib/commonjs/skia/{Paint → types/Paint}/Paint.js +1 -13
  132. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
  133. package/lib/commonjs/skia/{Paint → types/Paint}/index.js +0 -13
  134. package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
  135. package/lib/commonjs/skia/{Path → types/Path}/Path.js +0 -0
  136. package/lib/commonjs/skia/{Path → types/Path}/Path.js.map +0 -0
  137. package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js +0 -0
  138. package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js.map +0 -0
  139. package/lib/commonjs/skia/{Path → types/Path}/index.js +0 -13
  140. package/lib/commonjs/skia/types/Path/index.js.map +1 -0
  141. package/lib/commonjs/skia/{PathEffect.js → types/PathEffect.js} +0 -0
  142. package/lib/commonjs/skia/types/PathEffect.js.map +1 -0
  143. package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js +0 -0
  144. package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js.map +0 -0
  145. package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
  146. package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js.map +0 -0
  147. package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
  148. package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js.map +0 -0
  149. package/lib/commonjs/skia/{Picture → types/Picture}/index.js +0 -13
  150. package/lib/commonjs/skia/{Paint → types/Picture}/index.js.map +1 -1
  151. package/lib/commonjs/skia/{Point.js → types/Point.js} +0 -0
  152. package/lib/commonjs/skia/{Point.js.map → types/Point.js.map} +0 -0
  153. package/lib/commonjs/skia/{RRect.js → types/RRect.js} +0 -0
  154. package/lib/commonjs/skia/{RRect.js.map → types/RRect.js.map} +0 -0
  155. package/lib/commonjs/skia/{RSXform.js → types/RSXform.js} +0 -0
  156. package/lib/commonjs/skia/{RSXform.js.map → types/RSXform.js.map} +0 -0
  157. package/lib/commonjs/skia/{Rect.js → types/Rect.js} +0 -0
  158. package/lib/commonjs/skia/{Rect.js.map → types/Rect.js.map} +0 -0
  159. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
  160. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js.map +0 -0
  161. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
  162. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js.map +0 -0
  163. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
  164. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
  165. package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js +0 -0
  166. package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js.map +0 -0
  167. package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
  168. package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js.map +0 -0
  169. package/lib/commonjs/skia/{SVG → types/SVG}/index.js +0 -13
  170. package/lib/commonjs/skia/{Font → types/SVG}/index.js.map +1 -1
  171. package/lib/commonjs/skia/{Shader → types/Shader}/Shader.js +0 -0
  172. package/lib/commonjs/skia/{Shader → types/Shader}/Shader.js.map +0 -0
  173. package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
  174. package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js.map +0 -0
  175. package/lib/commonjs/skia/{Shader → types/Shader}/index.js +0 -13
  176. package/lib/commonjs/skia/types/Shader/index.js.map +1 -0
  177. package/lib/commonjs/skia/types/Skia.js +6 -0
  178. package/lib/commonjs/skia/{Surface/Surface.js.map → types/Skia.js.map} +0 -0
  179. package/lib/commonjs/skia/{Surface → types/Surface}/Surface.js +0 -0
  180. package/lib/{module/skia → commonjs/skia/types}/Surface/Surface.js.map +0 -0
  181. package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
  182. package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js.map +0 -0
  183. package/lib/commonjs/skia/{Surface → types/Surface}/index.js +0 -0
  184. package/lib/commonjs/skia/{Surface → types/Surface}/index.js.map +0 -0
  185. package/lib/commonjs/skia/{TextBlob.js → types/TextBlob.js} +0 -0
  186. package/lib/commonjs/skia/{TextBlob.js.map → types/TextBlob.js.map} +0 -0
  187. package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
  188. package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js.map +0 -0
  189. package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
  190. package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js.map +0 -0
  191. package/lib/commonjs/skia/{Typeface → types/Typeface}/index.js +0 -13
  192. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
  193. package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
  194. package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
  195. package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js +0 -0
  196. package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js.map +0 -0
  197. package/lib/commonjs/skia/types/index.js +370 -0
  198. package/lib/commonjs/skia/types/index.js.map +1 -0
  199. package/lib/commonjs/skia/web/api/Host.js +66 -0
  200. package/lib/commonjs/skia/web/api/Host.js.map +1 -0
  201. package/lib/commonjs/skia/web/api/JsiSkCanvas.js +170 -0
  202. package/lib/commonjs/skia/web/api/JsiSkCanvas.js.map +1 -0
  203. package/lib/commonjs/skia/web/api/JsiSkColor.js +180 -0
  204. package/lib/commonjs/skia/web/api/JsiSkColor.js.map +1 -0
  205. package/lib/commonjs/skia/web/api/JsiSkColorFilter.js +18 -0
  206. package/lib/commonjs/skia/web/api/JsiSkColorFilter.js.map +1 -0
  207. package/lib/commonjs/skia/web/api/JsiSkImage.js +56 -0
  208. package/lib/commonjs/skia/web/api/JsiSkImage.js.map +1 -0
  209. package/lib/commonjs/skia/web/api/JsiSkPaint.js +106 -0
  210. package/lib/commonjs/skia/web/api/JsiSkPaint.js.map +1 -0
  211. package/lib/commonjs/skia/web/api/JsiSkRect.js +34 -0
  212. package/lib/commonjs/skia/web/api/JsiSkRect.js.map +1 -0
  213. package/lib/commonjs/skia/web/api/JsiSkSurface.js +31 -0
  214. package/lib/commonjs/skia/web/api/JsiSkSurface.js.map +1 -0
  215. package/lib/commonjs/skia/web/api/JsiSkSurfaceFactory.js +30 -0
  216. package/lib/commonjs/skia/web/api/JsiSkSurfaceFactory.js.map +1 -0
  217. package/lib/commonjs/skia/web/api/index.js +26 -0
  218. package/lib/commonjs/skia/web/api/index.js.map +1 -0
  219. package/lib/commonjs/skia/web/index.js +19 -0
  220. package/lib/commonjs/skia/web/index.js.map +1 -0
  221. package/lib/commonjs/values/hooks/useValue.js.map +1 -1
  222. package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -1
  223. package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -1
  224. package/lib/commonjs/values/web/api.js.map +1 -1
  225. package/lib/commonjs/views/SkiaView.js.map +1 -1
  226. package/lib/commonjs/views/types.js.map +1 -1
  227. package/lib/module/animation/decay/runDecay.js.map +1 -1
  228. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  229. package/lib/module/animation/spring/runSpring.js.map +1 -1
  230. package/lib/module/animation/spring/useSpring.js.map +1 -1
  231. package/lib/module/animation/timing/createTiming.js.map +1 -1
  232. package/lib/module/animation/timing/runTiming.js.map +1 -1
  233. package/lib/module/animation/timing/useTiming.js.map +1 -1
  234. package/lib/module/index.js.map +1 -1
  235. package/lib/module/renderer/Canvas.js +1 -2
  236. package/lib/module/renderer/Canvas.js.map +1 -1
  237. package/lib/module/renderer/DependencyManager.js.map +1 -1
  238. package/lib/module/renderer/components/Blend.js +1 -2
  239. package/lib/module/renderer/components/Blend.js.map +1 -1
  240. package/lib/module/renderer/components/Compose.js +1 -3
  241. package/lib/module/renderer/components/Compose.js.map +1 -1
  242. package/lib/module/renderer/components/colorFilters/Lerp.js +1 -2
  243. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  244. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +1 -2
  245. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  246. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  247. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  248. package/lib/module/renderer/components/imageFilters/Shadow.js +1 -2
  249. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  250. package/lib/module/renderer/components/maskFilters/Blur.js +1 -2
  251. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  252. package/lib/module/renderer/components/pathEffects/Corner.js +1 -2
  253. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  254. package/lib/module/renderer/components/pathEffects/Dash.js +1 -2
  255. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  256. package/lib/module/renderer/components/pathEffects/Discrete.js +1 -2
  257. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  258. package/lib/module/renderer/components/pathEffects/Line2D.js +1 -2
  259. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  260. package/lib/module/renderer/components/pathEffects/Path1D.js +1 -2
  261. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  262. package/lib/module/renderer/components/pathEffects/Path2D.js +1 -2
  263. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  264. package/lib/module/renderer/components/pathEffects/Sum.js +1 -2
  265. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  266. package/lib/module/renderer/components/shaders/Gradient.js.map +1 -1
  267. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  268. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  269. package/lib/module/renderer/components/shapes/Patch.js +1 -2
  270. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  271. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  272. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  273. package/lib/module/renderer/index.js +1 -0
  274. package/lib/module/renderer/index.js.map +1 -1
  275. package/lib/module/renderer/nodes/Declaration.js.map +1 -1
  276. package/lib/module/renderer/nodes/Node.js.map +1 -1
  277. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  278. package/lib/module/renderer/processors/Clips.js.map +1 -1
  279. package/lib/module/renderer/processors/Font.js.map +1 -1
  280. package/lib/module/renderer/processors/Rects.js +1 -0
  281. package/lib/module/renderer/processors/Rects.js.map +1 -1
  282. package/lib/module/renderer/processors/Transform.js.map +1 -1
  283. package/lib/module/skia/Skia.js +2 -35
  284. package/lib/module/skia/Skia.js.map +1 -1
  285. package/lib/module/skia/{Color.js → core/Color.js} +1 -2
  286. package/lib/module/skia/core/Color.js.map +1 -0
  287. package/lib/module/skia/core/Data.js +56 -0
  288. package/lib/module/skia/core/Data.js.map +1 -0
  289. package/lib/module/skia/{Font/useFont.js → core/Font.js} +5 -5
  290. package/lib/module/skia/core/Font.js.map +1 -0
  291. package/lib/module/skia/core/Image.js +8 -0
  292. package/lib/module/skia/core/Image.js.map +1 -0
  293. package/lib/module/skia/{Paint/usePaint.js → core/Paint.js} +8 -3
  294. package/lib/module/skia/core/Paint.js.map +1 -0
  295. package/lib/module/skia/{Path/usePath.js → core/Path.js} +1 -1
  296. package/lib/module/skia/core/Path.js.map +1 -0
  297. package/lib/module/skia/{Picture/usePicture.js → core/Picture.js} +1 -1
  298. package/lib/module/skia/core/Picture.js.map +1 -0
  299. package/lib/module/skia/core/SVG.js +4 -0
  300. package/lib/module/skia/core/SVG.js.map +1 -0
  301. package/lib/module/skia/{Shader/useShader.js → core/Shader.js} +1 -1
  302. package/lib/module/skia/core/Shader.js.map +1 -0
  303. package/lib/module/skia/core/Typeface.js +8 -0
  304. package/lib/module/skia/core/Typeface.js.map +1 -0
  305. package/lib/module/skia/core/index.js +11 -0
  306. package/lib/module/skia/core/index.js.map +1 -0
  307. package/lib/module/skia/index.js +2 -23
  308. package/lib/module/skia/index.js.map +1 -1
  309. package/lib/module/skia/{Canvas.js → types/Canvas.js} +0 -0
  310. package/lib/module/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
  311. package/lib/module/skia/types/Color.js +2 -0
  312. package/lib/module/skia/{ContourMeasure.js.map → types/Color.js.map} +0 -0
  313. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
  314. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
  315. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
  316. package/lib/module/skia/{FontMgr/FontMgr.js.map → types/ColorFilter/ColorFilterFactory.js.map} +0 -0
  317. package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
  318. package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
  319. package/lib/module/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
  320. package/lib/module/skia/{FontMgr/FontMgrFactory.js.map → types/ContourMeasure.js.map} +0 -0
  321. package/lib/module/skia/types/Data/Data.js +2 -0
  322. package/lib/module/skia/{JsiInstance.js.map → types/Data/Data.js.map} +0 -0
  323. package/lib/module/skia/{Data → types/Data}/DataFactory.js +0 -0
  324. package/lib/module/skia/{Path/PathFactory.js.map → types/Data/DataFactory.js.map} +0 -0
  325. package/lib/module/skia/{Data → types/Data}/index.js +0 -0
  326. package/lib/module/skia/{Data → types/Data}/index.js.map +0 -0
  327. package/lib/module/skia/{Font → types/Font}/Font.js +0 -0
  328. package/lib/module/skia/types/Font/Font.js.map +1 -0
  329. package/lib/module/skia/types/Font/index.js +2 -0
  330. package/lib/module/skia/types/Font/index.js.map +1 -0
  331. package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
  332. package/lib/module/skia/{Picture/Picture.js.map → types/FontMgr/FontMgr.js.map} +0 -0
  333. package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
  334. package/lib/module/skia/{Picture/PictureFactory.js.map → types/FontMgr/FontMgrFactory.js.map} +0 -0
  335. package/lib/module/skia/types/FontMgr/index.js +3 -0
  336. package/lib/module/skia/types/FontMgr/index.js.map +1 -0
  337. package/lib/module/skia/{Image → types/Image}/Image.js +0 -0
  338. package/lib/module/skia/{Image → types/Image}/Image.js.map +1 -1
  339. package/lib/module/skia/{Image → types/Image}/ImageFactory.js +0 -0
  340. package/lib/module/skia/{Image → types/Image}/ImageFactory.js.map +0 -0
  341. package/lib/module/skia/types/Image/index.js +3 -0
  342. package/lib/module/skia/types/Image/index.js.map +1 -0
  343. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
  344. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
  345. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
  346. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  347. package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
  348. package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
  349. package/lib/module/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
  350. package/lib/module/skia/{Picture/PictureRecorder.js.map → types/JsiInstance.js.map} +0 -0
  351. package/lib/module/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
  352. package/lib/module/skia/types/MaskFilter.js.map +1 -0
  353. package/lib/module/skia/{Matrix.js → types/Matrix.js} +0 -0
  354. package/lib/module/skia/{Matrix.js.map → types/Matrix.js.map} +0 -0
  355. package/lib/module/skia/{Paint → types/Paint}/BlendMode.js +0 -0
  356. package/lib/module/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
  357. package/lib/module/skia/{Paint → types/Paint}/Paint.js +0 -6
  358. package/lib/module/skia/types/Paint/Paint.js.map +1 -0
  359. package/lib/module/skia/types/Paint/index.js +3 -0
  360. package/lib/module/skia/types/Paint/index.js.map +1 -0
  361. package/lib/module/skia/{Path → types/Path}/Path.js +0 -0
  362. package/lib/module/skia/{Path → types/Path}/Path.js.map +0 -0
  363. package/lib/module/skia/{Path → types/Path}/PathFactory.js +0 -0
  364. package/lib/module/skia/{RRect.js.map → types/Path/PathFactory.js.map} +0 -0
  365. package/lib/module/skia/types/Path/index.js +3 -0
  366. package/lib/module/skia/types/Path/index.js.map +1 -0
  367. package/lib/module/skia/{PathEffect.js → types/PathEffect.js} +0 -0
  368. package/lib/module/skia/types/PathEffect.js.map +1 -0
  369. package/lib/module/skia/{Picture → types/Picture}/Picture.js +0 -0
  370. package/lib/module/skia/{RSXform.js.map → types/Picture/Picture.js.map} +0 -0
  371. package/lib/module/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
  372. package/lib/module/skia/{Rect.js.map → types/Picture/PictureFactory.js.map} +0 -0
  373. package/lib/module/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
  374. package/lib/module/skia/{RuntimeEffect/RuntimeEffect.js.map → types/Picture/PictureRecorder.js.map} +0 -0
  375. package/lib/module/skia/{Picture → types/Picture}/index.js +0 -1
  376. package/lib/module/skia/types/Picture/index.js.map +1 -0
  377. package/lib/module/skia/{Point.js → types/Point.js} +0 -0
  378. package/lib/module/skia/{Point.js.map → types/Point.js.map} +0 -0
  379. package/lib/module/skia/{RRect.js → types/RRect.js} +0 -0
  380. package/lib/module/skia/{RuntimeEffect/RuntimeEffectFactory.js.map → types/RRect.js.map} +0 -0
  381. package/lib/module/skia/{RSXform.js → types/RSXform.js} +0 -0
  382. package/lib/module/skia/{SVG/SVG.js.map → types/RSXform.js.map} +0 -0
  383. package/lib/module/skia/{Rect.js → types/Rect.js} +0 -0
  384. package/lib/module/skia/{SVG/SVGFactory.js.map → types/Rect.js.map} +0 -0
  385. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
  386. package/lib/module/skia/{Shader/ShaderFactory.js.map → types/RuntimeEffect/RuntimeEffect.js.map} +0 -0
  387. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
  388. package/lib/module/skia/{Surface/SurfaceFactory.js.map → types/RuntimeEffect/RuntimeEffectFactory.js.map} +0 -0
  389. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
  390. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
  391. package/lib/module/skia/{SVG → types/SVG}/SVG.js +0 -0
  392. package/lib/module/skia/{TextBlob.js.map → types/SVG/SVG.js.map} +0 -0
  393. package/lib/module/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
  394. package/lib/module/skia/{Typeface/Typeface.js.map → types/SVG/SVGFactory.js.map} +0 -0
  395. package/lib/module/skia/types/SVG/index.js +3 -0
  396. package/lib/module/skia/types/SVG/index.js.map +1 -0
  397. package/lib/module/skia/{Shader → types/Shader}/Shader.js +0 -0
  398. package/lib/module/skia/{Shader → types/Shader}/Shader.js.map +0 -0
  399. package/lib/module/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
  400. package/lib/module/skia/{Typeface/TypefaceFactory.js.map → types/Shader/ShaderFactory.js.map} +0 -0
  401. package/lib/module/skia/types/Shader/index.js +3 -0
  402. package/lib/module/skia/types/Shader/index.js.map +1 -0
  403. package/lib/module/skia/types/Skia.js +2 -0
  404. package/lib/module/skia/types/Skia.js.map +1 -0
  405. package/lib/module/skia/{Surface → types/Surface}/Surface.js +0 -0
  406. package/lib/module/skia/types/Surface/Surface.js.map +1 -0
  407. package/lib/module/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
  408. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -0
  409. package/lib/module/skia/{Surface → types/Surface}/index.js +0 -0
  410. package/lib/module/skia/{Surface → types/Surface}/index.js.map +0 -0
  411. package/lib/module/skia/{TextBlob.js → types/TextBlob.js} +0 -0
  412. package/lib/module/skia/types/TextBlob.js.map +1 -0
  413. package/lib/module/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
  414. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -0
  415. package/lib/module/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
  416. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -0
  417. package/lib/module/skia/types/Typeface/index.js +3 -0
  418. package/lib/module/skia/types/Typeface/index.js.map +1 -0
  419. package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
  420. package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
  421. package/lib/module/skia/{Vertices → types/Vertices}/index.js +0 -0
  422. package/lib/module/skia/{Vertices → types/Vertices}/index.js.map +0 -0
  423. package/lib/module/skia/types/index.js +29 -0
  424. package/lib/module/skia/types/index.js.map +1 -0
  425. package/lib/module/skia/web/api/Host.js +36 -0
  426. package/lib/module/skia/web/api/Host.js.map +1 -0
  427. package/lib/module/skia/web/api/JsiSkCanvas.js +160 -0
  428. package/lib/module/skia/web/api/JsiSkCanvas.js.map +1 -0
  429. package/lib/module/skia/web/api/JsiSkColor.js +170 -0
  430. package/lib/module/skia/web/api/JsiSkColor.js.map +1 -0
  431. package/lib/module/skia/web/api/JsiSkColorFilter.js +8 -0
  432. package/lib/module/skia/web/api/JsiSkColorFilter.js.map +1 -0
  433. package/lib/module/skia/web/api/JsiSkImage.js +46 -0
  434. package/lib/module/skia/web/api/JsiSkImage.js.map +1 -0
  435. package/lib/module/skia/web/api/JsiSkPaint.js +96 -0
  436. package/lib/module/skia/web/api/JsiSkPaint.js.map +1 -0
  437. package/lib/module/skia/web/api/JsiSkRect.js +24 -0
  438. package/lib/module/skia/web/api/JsiSkRect.js.map +1 -0
  439. package/lib/module/skia/web/api/JsiSkSurface.js +19 -0
  440. package/lib/module/skia/web/api/JsiSkSurface.js.map +1 -0
  441. package/lib/module/skia/web/api/JsiSkSurfaceFactory.js +19 -0
  442. package/lib/module/skia/web/api/JsiSkSurfaceFactory.js.map +1 -0
  443. package/lib/module/skia/web/api/index.js +13 -0
  444. package/lib/module/skia/web/api/index.js.map +1 -0
  445. package/lib/module/skia/web/index.js +2 -0
  446. package/lib/module/skia/web/index.js.map +1 -0
  447. package/lib/module/values/hooks/useValue.js.map +1 -1
  448. package/lib/module/values/hooks/useValueEffect.js.map +1 -1
  449. package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -1
  450. package/lib/module/values/web/api.js.map +1 -1
  451. package/lib/module/views/SkiaView.js.map +1 -1
  452. package/lib/module/views/types.js.map +1 -1
  453. package/lib/typescript/src/animation/decay/runDecay.d.ts +2 -2
  454. package/lib/typescript/src/animation/spring/runSpring.d.ts +2 -2
  455. package/lib/typescript/src/animation/spring/useSpring.d.ts +2 -2
  456. package/lib/typescript/src/animation/timing/createTiming.d.ts +2 -2
  457. package/lib/typescript/src/animation/timing/runTiming.d.ts +2 -2
  458. package/lib/typescript/src/animation/timing/useLoop.d.ts +1 -1
  459. package/lib/typescript/src/animation/timing/useTiming.d.ts +2 -2
  460. package/lib/typescript/src/renderer/Canvas.d.ts +4 -4
  461. package/lib/typescript/src/renderer/DependencyManager.d.ts +2 -2
  462. package/lib/typescript/src/renderer/DrawingContext.d.ts +1 -2
  463. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +1 -1
  464. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +1 -1
  465. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +1 -2
  466. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +1 -1
  467. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +1 -1
  468. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +1 -1
  469. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +1 -1
  470. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +1 -1
  471. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +1 -1
  472. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +1 -1
  473. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +1 -2
  474. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +1 -1
  475. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +1 -1
  476. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +1 -1
  477. package/lib/typescript/src/renderer/index.d.ts +1 -0
  478. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +1 -1
  479. package/lib/typescript/src/renderer/nodes/Node.d.ts +1 -1
  480. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +3 -3
  481. package/lib/typescript/src/renderer/processors/Clips.d.ts +1 -2
  482. package/lib/typescript/src/renderer/processors/Font.d.ts +1 -2
  483. package/lib/typescript/src/renderer/processors/Rects.d.ts +2 -0
  484. package/lib/typescript/src/renderer/processors/Transform.d.ts +1 -1
  485. package/lib/typescript/src/skia/Skia.d.ts +2 -35
  486. package/lib/typescript/src/skia/{Color.d.ts → core/Color.d.ts} +1 -2
  487. package/lib/typescript/src/skia/core/Data.d.ts +5 -0
  488. package/lib/typescript/src/skia/core/Font.d.ts +5 -0
  489. package/lib/typescript/src/skia/core/Image.d.ts +5 -0
  490. package/lib/typescript/src/skia/{Paint/usePaint.d.ts → core/Paint.d.ts} +2 -1
  491. package/lib/typescript/src/skia/{Path/usePath.d.ts → core/Path.d.ts} +1 -2
  492. package/lib/typescript/src/skia/{Picture/usePicture.d.ts → core/Picture.d.ts} +1 -3
  493. package/lib/typescript/src/skia/core/SVG.d.ts +2 -0
  494. package/lib/typescript/src/skia/{Shader/useShader.d.ts → core/Shader.d.ts} +0 -0
  495. package/lib/typescript/src/skia/core/Typeface.d.ts +5 -0
  496. package/lib/typescript/src/skia/core/index.d.ts +10 -0
  497. package/lib/typescript/src/skia/index.d.ts +2 -23
  498. package/lib/typescript/src/skia/{Canvas.d.ts → types/Canvas.d.ts} +0 -0
  499. package/lib/typescript/src/skia/types/Color.d.ts +2 -0
  500. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.d.ts +0 -0
  501. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.d.ts +1 -1
  502. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/index.d.ts +0 -0
  503. package/lib/typescript/src/skia/{ContourMeasure.d.ts → types/ContourMeasure.d.ts} +0 -0
  504. package/lib/typescript/src/skia/types/Data/Data.d.ts +5 -0
  505. package/lib/typescript/src/skia/{Data → types/Data}/DataFactory.d.ts +0 -0
  506. package/lib/typescript/src/skia/{Data → types/Data}/index.d.ts +0 -0
  507. package/lib/typescript/src/skia/{Font → types/Font}/Font.d.ts +1 -1
  508. package/lib/typescript/src/skia/types/Font/index.d.ts +1 -0
  509. package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/FontMgr.d.ts +1 -1
  510. package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/FontMgrFactory.d.ts +0 -0
  511. package/lib/typescript/src/skia/{FontMgr → types/FontMgr}/index.d.ts +1 -0
  512. package/lib/typescript/src/skia/{Image → types/Image}/Image.d.ts +2 -2
  513. package/lib/typescript/src/skia/{Image → types/Image}/ImageFactory.d.ts +0 -0
  514. package/lib/typescript/src/skia/{Image → types/Image}/index.d.ts +0 -1
  515. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.d.ts +0 -0
  516. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.d.ts +2 -2
  517. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/index.d.ts +0 -0
  518. package/lib/typescript/src/skia/{JsiInstance.d.ts → types/JsiInstance.d.ts} +0 -0
  519. package/lib/typescript/src/skia/{MaskFilter.d.ts → types/MaskFilter.d.ts} +3 -3
  520. package/lib/typescript/src/skia/{Matrix.d.ts → types/Matrix.d.ts} +0 -0
  521. package/lib/typescript/src/skia/{Paint → types/Paint}/BlendMode.d.ts +0 -0
  522. package/lib/typescript/src/skia/{Paint → types/Paint}/Paint.d.ts +5 -6
  523. package/lib/typescript/src/skia/{Paint → types/Paint}/index.d.ts +0 -1
  524. package/lib/typescript/src/skia/{Path → types/Path}/Path.d.ts +0 -0
  525. package/lib/typescript/src/skia/{Path → types/Path}/PathFactory.d.ts +0 -0
  526. package/lib/typescript/src/skia/{Path → types/Path}/index.d.ts +0 -1
  527. package/lib/typescript/src/skia/{PathEffect.d.ts → types/PathEffect.d.ts} +10 -10
  528. package/lib/typescript/src/skia/{Picture → types/Picture}/Picture.d.ts +0 -0
  529. package/lib/typescript/src/skia/{Picture → types/Picture}/PictureFactory.d.ts +0 -0
  530. package/lib/typescript/src/skia/{Picture → types/Picture}/PictureRecorder.d.ts +0 -0
  531. package/lib/typescript/src/skia/{Picture → types/Picture}/index.d.ts +0 -1
  532. package/lib/typescript/src/skia/{Point.d.ts → types/Point.d.ts} +0 -0
  533. package/lib/typescript/src/skia/{RRect.d.ts → types/RRect.d.ts} +0 -0
  534. package/lib/typescript/src/skia/{RSXform.d.ts → types/RSXform.d.ts} +0 -0
  535. package/lib/typescript/src/skia/{Rect.d.ts → types/Rect.d.ts} +0 -0
  536. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.d.ts +0 -0
  537. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.d.ts +0 -0
  538. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.d.ts +0 -0
  539. package/lib/typescript/src/skia/{SVG → types/SVG}/SVG.d.ts +0 -0
  540. package/lib/typescript/src/skia/{SVG → types/SVG}/SVGFactory.d.ts +1 -1
  541. package/lib/typescript/src/skia/{SVG → types/SVG}/index.d.ts +0 -1
  542. package/lib/typescript/src/skia/{Shader → types/Shader}/Shader.d.ts +0 -0
  543. package/lib/typescript/src/skia/{Shader → types/Shader}/ShaderFactory.d.ts +0 -0
  544. package/lib/typescript/src/skia/{Shader → types/Shader}/index.d.ts +0 -1
  545. package/lib/typescript/src/skia/{SkiaApi.d.ts → types/Skia.d.ts} +2 -5
  546. package/lib/typescript/src/skia/{Surface → types/Surface}/Surface.d.ts +0 -0
  547. package/lib/typescript/src/skia/{Surface → types/Surface}/SurfaceFactory.d.ts +0 -0
  548. package/lib/typescript/src/skia/{Surface → types/Surface}/index.d.ts +0 -0
  549. package/lib/typescript/src/skia/{TextBlob.d.ts → types/TextBlob.d.ts} +0 -0
  550. package/lib/typescript/src/skia/{Typeface → types/Typeface}/Typeface.d.ts +0 -0
  551. package/lib/typescript/src/skia/{Typeface → types/Typeface}/TypefaceFactory.d.ts +1 -1
  552. package/lib/typescript/src/skia/{Typeface → types/Typeface}/index.d.ts +0 -1
  553. package/lib/typescript/src/skia/{Vertices → types/Vertices}/Vertices.d.ts +0 -0
  554. package/lib/typescript/src/skia/{Vertices → types/Vertices}/index.d.ts +0 -0
  555. package/lib/typescript/src/skia/types/index.d.ts +28 -0
  556. package/lib/typescript/src/skia/web/api/Host.d.ts +18 -0
  557. package/lib/typescript/src/skia/web/api/JsiSkCanvas.d.ts +44 -0
  558. package/lib/typescript/src/skia/web/api/JsiSkColor.d.ts +3 -0
  559. package/lib/typescript/src/skia/web/api/JsiSkColorFilter.d.ts +6 -0
  560. package/lib/typescript/src/skia/web/api/JsiSkImage.d.ts +12 -0
  561. package/lib/typescript/src/skia/web/api/JsiSkPaint.d.ts +26 -0
  562. package/lib/typescript/src/skia/web/api/JsiSkRect.d.ts +10 -0
  563. package/lib/typescript/src/skia/web/api/JsiSkSurface.d.ts +8 -0
  564. package/lib/typescript/src/skia/web/api/JsiSkSurfaceFactory.d.ts +8 -0
  565. package/lib/typescript/src/skia/web/api/index.d.ts +10 -0
  566. package/lib/typescript/src/skia/web/index.d.ts +1 -0
  567. package/lib/typescript/src/values/api.d.ts +1 -1
  568. package/lib/typescript/src/values/api.web.d.ts +1 -1
  569. package/lib/typescript/src/values/hooks/useDerivedValue.d.ts +1 -1
  570. package/lib/typescript/src/values/hooks/useValue.d.ts +2 -2
  571. package/lib/typescript/src/values/hooks/useValueEffect.d.ts +2 -2
  572. package/lib/typescript/src/values/types.d.ts +5 -5
  573. package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +2 -2
  574. package/lib/typescript/src/views/SkiaView.d.ts +4 -4
  575. package/lib/typescript/src/views/types.d.ts +3 -4
  576. package/package.json +5 -3
  577. package/src/animation/decay/runDecay.ts +5 -2
  578. package/src/animation/functions/interpolateColors.ts +1 -2
  579. package/src/animation/spring/runSpring.ts +2 -2
  580. package/src/animation/spring/useSpring.ts +2 -2
  581. package/src/animation/timing/createTiming.ts +2 -2
  582. package/src/animation/timing/runTiming.ts +2 -2
  583. package/src/animation/timing/useTiming.ts +2 -2
  584. package/src/index.ts +0 -1
  585. package/src/renderer/Canvas.tsx +4 -5
  586. package/src/renderer/DependencyManager.tsx +2 -2
  587. package/src/renderer/DrawingContext.ts +1 -2
  588. package/src/renderer/components/Blend.tsx +1 -2
  589. package/src/renderer/components/Compose.tsx +1 -3
  590. package/src/renderer/components/colorFilters/Lerp.tsx +1 -2
  591. package/src/renderer/components/imageFilters/DisplacementMap.tsx +1 -2
  592. package/src/renderer/components/imageFilters/InnerShadow.tsx +1 -2
  593. package/src/renderer/components/imageFilters/RuntimeShader.tsx +1 -1
  594. package/src/renderer/components/imageFilters/Shadow.tsx +2 -3
  595. package/src/renderer/components/maskFilters/Blur.tsx +1 -2
  596. package/src/renderer/components/pathEffects/Corner.tsx +1 -2
  597. package/src/renderer/components/pathEffects/Dash.tsx +1 -2
  598. package/src/renderer/components/pathEffects/Discrete.tsx +1 -2
  599. package/src/renderer/components/pathEffects/Line2D.tsx +2 -3
  600. package/src/renderer/components/pathEffects/Path1D.tsx +1 -2
  601. package/src/renderer/components/pathEffects/Path2D.tsx +2 -3
  602. package/src/renderer/components/pathEffects/Sum.tsx +1 -2
  603. package/src/renderer/components/shaders/Gradient.ts +1 -1
  604. package/src/renderer/components/shapes/Box.tsx +1 -3
  605. package/src/renderer/components/shapes/DiffRect.tsx +1 -1
  606. package/src/renderer/components/shapes/Patch.tsx +1 -2
  607. package/src/renderer/components/text/TextBlob.tsx +1 -1
  608. package/src/renderer/components/text/TextPath.tsx +1 -2
  609. package/src/renderer/index.ts +1 -0
  610. package/src/renderer/nodes/Declaration.tsx +1 -1
  611. package/src/renderer/nodes/Node.ts +1 -1
  612. package/src/renderer/processors/Animations/Animations.ts +5 -8
  613. package/src/renderer/processors/Clips.ts +1 -2
  614. package/src/renderer/processors/Font.ts +1 -2
  615. package/src/renderer/processors/Rects.ts +4 -0
  616. package/src/renderer/processors/Transform.ts +1 -1
  617. package/src/skia/Skia.ts +2 -38
  618. package/src/skia/__tests__/Rects.spec.ts +40 -0
  619. package/src/skia/__tests__/snapshots/lightblue-rect.png +0 -0
  620. package/src/skia/{Color.ts → core/Color.ts} +2 -6
  621. package/src/skia/core/Data.ts +78 -0
  622. package/src/skia/{Font/useFont.ts → core/Font.ts} +8 -5
  623. package/src/skia/core/Image.ts +12 -0
  624. package/src/skia/{Paint/usePaint.ts → core/Paint.ts} +7 -2
  625. package/src/skia/{Path/usePath.ts → core/Path.ts} +1 -3
  626. package/src/skia/{Picture/usePicture.ts → core/Picture.ts} +1 -4
  627. package/src/skia/core/SVG.ts +9 -0
  628. package/src/skia/{Shader/useShader.ts → core/Shader.ts} +0 -0
  629. package/src/skia/core/Typeface.ts +11 -0
  630. package/src/skia/core/index.ts +10 -0
  631. package/src/skia/index.ts +2 -23
  632. package/src/skia/{Canvas.ts → types/Canvas.ts} +0 -0
  633. package/src/skia/types/Color.ts +4 -0
  634. package/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.ts +0 -0
  635. package/src/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.ts +1 -1
  636. package/src/skia/{ColorFilter → types/ColorFilter}/index.ts +0 -0
  637. package/src/skia/{ContourMeasure.tsx → types/ContourMeasure.tsx} +0 -0
  638. package/src/skia/types/Data/Data.ts +5 -0
  639. package/src/skia/{Data → types/Data}/DataFactory.ts +0 -0
  640. package/src/skia/{Data → types/Data}/index.ts +0 -0
  641. package/src/skia/{Font → types/Font}/Font.ts +1 -1
  642. package/src/skia/types/Font/index.ts +1 -0
  643. package/src/skia/{FontMgr → types/FontMgr}/FontMgr.ts +1 -1
  644. package/src/skia/{FontMgr → types/FontMgr}/FontMgrFactory.ts +1 -6
  645. package/src/skia/{FontMgr → types/FontMgr}/index.ts +1 -0
  646. package/src/skia/{Image → types/Image}/Image.ts +2 -2
  647. package/src/skia/{Image → types/Image}/ImageFactory.ts +0 -0
  648. package/src/skia/{Image → types/Image}/index.ts +0 -1
  649. package/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.ts +0 -0
  650. package/src/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.ts +2 -2
  651. package/src/skia/{ImageFilter → types/ImageFilter}/index.ts +0 -0
  652. package/src/skia/{JsiInstance.ts → types/JsiInstance.ts} +0 -0
  653. package/src/skia/{MaskFilter.ts → types/MaskFilter.ts} +3 -3
  654. package/src/skia/{Matrix.ts → types/Matrix.ts} +0 -0
  655. package/src/skia/{Paint → types/Paint}/BlendMode.ts +0 -0
  656. package/src/skia/{Paint → types/Paint}/Paint.ts +5 -12
  657. package/src/skia/{Paint → types/Paint}/index.ts +0 -1
  658. package/src/skia/{Path → types/Path}/Path.ts +0 -0
  659. package/src/skia/{Path → types/Path}/PathFactory.ts +0 -0
  660. package/src/skia/{Path → types/Path}/index.ts +0 -1
  661. package/src/skia/{PathEffect.ts → types/PathEffect.ts} +14 -10
  662. package/src/skia/{Picture → types/Picture}/Picture.ts +0 -0
  663. package/src/skia/{Picture → types/Picture}/PictureFactory.ts +0 -0
  664. package/src/skia/{Picture → types/Picture}/PictureRecorder.ts +0 -0
  665. package/src/skia/{Picture → types/Picture}/index.ts +0 -1
  666. package/src/skia/{Point.ts → types/Point.ts} +0 -0
  667. package/src/skia/{RRect.ts → types/RRect.ts} +0 -0
  668. package/src/skia/{RSXform.ts → types/RSXform.ts} +0 -0
  669. package/src/skia/{Rect.ts → types/Rect.ts} +0 -0
  670. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.ts +0 -0
  671. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.ts +0 -0
  672. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.ts +0 -0
  673. package/src/skia/{SVG → types/SVG}/SVG.ts +0 -0
  674. package/src/skia/{SVG → types/SVG}/SVGFactory.ts +1 -1
  675. package/src/skia/{SVG → types/SVG}/index.ts +0 -1
  676. package/src/skia/{Shader → types/Shader}/Shader.ts +0 -0
  677. package/src/skia/{Shader → types/Shader}/ShaderFactory.ts +0 -0
  678. package/src/skia/{Shader → types/Shader}/index.ts +0 -1
  679. package/src/skia/{SkiaApi.ts → types/Skia.ts} +6 -8
  680. package/src/skia/{Surface → types/Surface}/Surface.ts +0 -0
  681. package/src/skia/{Surface → types/Surface}/SurfaceFactory.ts +0 -0
  682. package/src/skia/{Surface → types/Surface}/index.ts +0 -0
  683. package/src/skia/{TextBlob.ts → types/TextBlob.ts} +0 -0
  684. package/src/skia/{Typeface → types/Typeface}/Typeface.ts +0 -0
  685. package/src/skia/{Typeface → types/Typeface}/TypefaceFactory.ts +1 -1
  686. package/src/skia/{Typeface → types/Typeface}/index.ts +0 -1
  687. package/src/skia/{Vertices → types/Vertices}/Vertices.tsx +0 -0
  688. package/src/skia/{Vertices → types/Vertices}/index.ts +0 -0
  689. package/src/skia/types/index.ts +28 -0
  690. package/src/skia/web/api/Host.ts +50 -0
  691. package/src/skia/web/api/JsiSkCanvas.ts +322 -0
  692. package/src/skia/web/api/JsiSkColor.ts +181 -0
  693. package/src/skia/web/api/JsiSkColorFilter.ts +14 -0
  694. package/src/skia/web/api/JsiSkImage.ts +66 -0
  695. package/src/skia/web/api/JsiSkPaint.ts +103 -0
  696. package/src/skia/web/api/JsiSkRect.ts +27 -0
  697. package/src/skia/web/api/JsiSkSurface.ts +25 -0
  698. package/src/skia/web/api/JsiSkSurfaceFactory.ts +20 -0
  699. package/src/skia/web/api/index.ts +15 -0
  700. package/src/skia/web/index.ts +1 -0
  701. package/src/values/hooks/useValue.ts +2 -2
  702. package/src/values/hooks/useValueEffect.ts +2 -5
  703. package/src/values/types.ts +6 -6
  704. package/src/values/web/RNSkReadonlyValue.ts +2 -2
  705. package/src/values/web/api.ts +4 -4
  706. package/src/views/SkiaView.tsx +3 -3
  707. package/src/views/types.ts +3 -4
  708. package/lib/commonjs/skia/Color.js.map +0 -1
  709. package/lib/commonjs/skia/Data/Data.js.map +0 -1
  710. package/lib/commonjs/skia/Font/Font.js.map +0 -1
  711. package/lib/commonjs/skia/Font/useFont.js.map +0 -1
  712. package/lib/commonjs/skia/Image/index.js.map +0 -1
  713. package/lib/commonjs/skia/Image/useImage.js.map +0 -1
  714. package/lib/commonjs/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
  715. package/lib/commonjs/skia/MaskFilter.js.map +0 -1
  716. package/lib/commonjs/skia/Paint/Paint.js.map +0 -1
  717. package/lib/commonjs/skia/Paint/usePaint.js.map +0 -1
  718. package/lib/commonjs/skia/Path/index.js.map +0 -1
  719. package/lib/commonjs/skia/Path/usePath.js.map +0 -1
  720. package/lib/commonjs/skia/PathEffect.js.map +0 -1
  721. package/lib/commonjs/skia/Picture/index.js.map +0 -1
  722. package/lib/commonjs/skia/Picture/usePicture.js.map +0 -1
  723. package/lib/commonjs/skia/SVG/index.js.map +0 -1
  724. package/lib/commonjs/skia/SVG/useSvg.js +0 -15
  725. package/lib/commonjs/skia/SVG/useSvg.js.map +0 -1
  726. package/lib/commonjs/skia/Shader/index.js.map +0 -1
  727. package/lib/commonjs/skia/Shader/useShader.js.map +0 -1
  728. package/lib/commonjs/skia/SkiaApi.js +0 -4
  729. package/lib/commonjs/skia/SkiaApi.js.map +0 -1
  730. package/lib/commonjs/skia/Typeface/index.js.map +0 -1
  731. package/lib/commonjs/skia/Typeface/useTypeface.js.map +0 -1
  732. package/lib/module/skia/Color.js.map +0 -1
  733. package/lib/module/skia/Data/Data.js +0 -35
  734. package/lib/module/skia/Data/Data.js.map +0 -1
  735. package/lib/module/skia/Font/Font.js.map +0 -1
  736. package/lib/module/skia/Font/index.js +0 -3
  737. package/lib/module/skia/Font/index.js.map +0 -1
  738. package/lib/module/skia/Font/useFont.js.map +0 -1
  739. package/lib/module/skia/FontMgr/index.js +0 -2
  740. package/lib/module/skia/FontMgr/index.js.map +0 -1
  741. package/lib/module/skia/Image/index.js +0 -4
  742. package/lib/module/skia/Image/index.js.map +0 -1
  743. package/lib/module/skia/Image/useImage.js +0 -8
  744. package/lib/module/skia/Image/useImage.js.map +0 -1
  745. package/lib/module/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
  746. package/lib/module/skia/MaskFilter.js.map +0 -1
  747. package/lib/module/skia/Paint/Paint.js.map +0 -1
  748. package/lib/module/skia/Paint/index.js +0 -4
  749. package/lib/module/skia/Paint/index.js.map +0 -1
  750. package/lib/module/skia/Paint/usePaint.js.map +0 -1
  751. package/lib/module/skia/Path/index.js +0 -4
  752. package/lib/module/skia/Path/index.js.map +0 -1
  753. package/lib/module/skia/Path/usePath.js.map +0 -1
  754. package/lib/module/skia/PathEffect.js.map +0 -1
  755. package/lib/module/skia/Picture/index.js.map +0 -1
  756. package/lib/module/skia/Picture/usePicture.js.map +0 -1
  757. package/lib/module/skia/SVG/index.js +0 -4
  758. package/lib/module/skia/SVG/index.js.map +0 -1
  759. package/lib/module/skia/SVG/useSvg.js +0 -4
  760. package/lib/module/skia/SVG/useSvg.js.map +0 -1
  761. package/lib/module/skia/Shader/index.js +0 -4
  762. package/lib/module/skia/Shader/index.js.map +0 -1
  763. package/lib/module/skia/Shader/useShader.js.map +0 -1
  764. package/lib/module/skia/SkiaApi.js +0 -2
  765. package/lib/module/skia/SkiaApi.js.map +0 -1
  766. package/lib/module/skia/Typeface/index.js +0 -4
  767. package/lib/module/skia/Typeface/index.js.map +0 -1
  768. package/lib/module/skia/Typeface/useTypeface.js +0 -8
  769. package/lib/module/skia/Typeface/useTypeface.js.map +0 -1
  770. package/lib/typescript/src/skia/Data/Data.d.ts +0 -9
  771. package/lib/typescript/src/skia/Font/index.d.ts +0 -2
  772. package/lib/typescript/src/skia/Font/useFont.d.ts +0 -6
  773. package/lib/typescript/src/skia/Image/useImage.d.ts +0 -5
  774. package/lib/typescript/src/skia/SVG/useSvg.d.ts +0 -2
  775. package/lib/typescript/src/skia/Typeface/useTypeface.d.ts +0 -5
  776. package/src/skia/Data/Data.ts +0 -61
  777. package/src/skia/Font/index.ts +0 -2
  778. package/src/skia/Image/useImage.ts +0 -9
  779. package/src/skia/SVG/useSvg.ts +0 -6
  780. package/src/skia/Typeface/useTypeface.ts +0 -9
@@ -0,0 +1,180 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Color = void 0;
7
+
8
+ const alphaf = c => (c >> 24 & 255) / 255;
9
+
10
+ const red = c => c >> 16 & 255;
11
+
12
+ const green = c => c >> 8 & 255;
13
+
14
+ const blue = c => c & 255;
15
+
16
+ const colorMap = {
17
+ transparent: Float32Array.of(0, 0, 0, 0),
18
+ aliceblue: Float32Array.of(240, 248, 255, 1),
19
+ antiquewhite: Float32Array.of(250, 235, 215, 1),
20
+ aqua: Float32Array.of(0, 255, 255, 1),
21
+ aquamarine: Float32Array.of(127, 255, 212, 1),
22
+ azure: Float32Array.of(240, 255, 255, 1),
23
+ beige: Float32Array.of(245, 245, 220, 1),
24
+ bisque: Float32Array.of(255, 228, 196, 1),
25
+ black: Float32Array.of(0, 0, 0, 1),
26
+ blanchedalmond: Float32Array.of(255, 235, 205, 1),
27
+ blue: Float32Array.of(0, 0, 255, 1),
28
+ blueviolet: Float32Array.of(138, 43, 226, 1),
29
+ brown: Float32Array.of(165, 42, 42, 1),
30
+ burlywood: Float32Array.of(222, 184, 135, 1),
31
+ cadetblue: Float32Array.of(95, 158, 160, 1),
32
+ chartreuse: Float32Array.of(127, 255, 0, 1),
33
+ chocolate: Float32Array.of(210, 105, 30, 1),
34
+ coral: Float32Array.of(255, 127, 80, 1),
35
+ cornflowerblue: Float32Array.of(100, 149, 237, 1),
36
+ cornsilk: Float32Array.of(255, 248, 220, 1),
37
+ crimson: Float32Array.of(220, 20, 60, 1),
38
+ cyan: Float32Array.of(0, 255, 255, 1),
39
+ darkblue: Float32Array.of(0, 0, 139, 1),
40
+ darkcyan: Float32Array.of(0, 139, 139, 1),
41
+ darkgoldenrod: Float32Array.of(184, 134, 11, 1),
42
+ darkgray: Float32Array.of(169, 169, 169, 1),
43
+ darkgreen: Float32Array.of(0, 100, 0, 1),
44
+ darkgrey: Float32Array.of(169, 169, 169, 1),
45
+ darkkhaki: Float32Array.of(189, 183, 107, 1),
46
+ darkmagenta: Float32Array.of(139, 0, 139, 1),
47
+ darkolivegreen: Float32Array.of(85, 107, 47, 1),
48
+ darkorange: Float32Array.of(255, 140, 0, 1),
49
+ darkorchid: Float32Array.of(153, 50, 204, 1),
50
+ darkred: Float32Array.of(139, 0, 0, 1),
51
+ darksalmon: Float32Array.of(233, 150, 122, 1),
52
+ darkseagreen: Float32Array.of(143, 188, 143, 1),
53
+ darkslateblue: Float32Array.of(72, 61, 139, 1),
54
+ darkslategray: Float32Array.of(47, 79, 79, 1),
55
+ darkslategrey: Float32Array.of(47, 79, 79, 1),
56
+ darkturquoise: Float32Array.of(0, 206, 209, 1),
57
+ darkviolet: Float32Array.of(148, 0, 211, 1),
58
+ deeppink: Float32Array.of(255, 20, 147, 1),
59
+ deepskyblue: Float32Array.of(0, 191, 255, 1),
60
+ dimgray: Float32Array.of(105, 105, 105, 1),
61
+ dimgrey: Float32Array.of(105, 105, 105, 1),
62
+ dodgerblue: Float32Array.of(30, 144, 255, 1),
63
+ firebrick: Float32Array.of(178, 34, 34, 1),
64
+ floralwhite: Float32Array.of(255, 250, 240, 1),
65
+ forestgreen: Float32Array.of(34, 139, 34, 1),
66
+ fuchsia: Float32Array.of(255, 0, 255, 1),
67
+ gainsboro: Float32Array.of(220, 220, 220, 1),
68
+ ghostwhite: Float32Array.of(248, 248, 255, 1),
69
+ gold: Float32Array.of(255, 215, 0, 1),
70
+ goldenrod: Float32Array.of(218, 165, 32, 1),
71
+ gray: Float32Array.of(128, 128, 128, 1),
72
+ green: Float32Array.of(0, 128, 0, 1),
73
+ greenyellow: Float32Array.of(173, 255, 47, 1),
74
+ grey: Float32Array.of(128, 128, 128, 1),
75
+ honeydew: Float32Array.of(240, 255, 240, 1),
76
+ hotpink: Float32Array.of(255, 105, 180, 1),
77
+ indianred: Float32Array.of(205, 92, 92, 1),
78
+ indigo: Float32Array.of(75, 0, 130, 1),
79
+ ivory: Float32Array.of(255, 255, 240, 1),
80
+ khaki: Float32Array.of(240, 230, 140, 1),
81
+ lavender: Float32Array.of(230, 230, 250, 1),
82
+ lavenderblush: Float32Array.of(255, 240, 245, 1),
83
+ lawngreen: Float32Array.of(124, 252, 0, 1),
84
+ lemonchiffon: Float32Array.of(255, 250, 205, 1),
85
+ lightblue: Float32Array.of(173, 216, 230, 1),
86
+ lightcoral: Float32Array.of(240, 128, 128, 1),
87
+ lightcyan: Float32Array.of(224, 255, 255, 1),
88
+ lightgoldenrodyellow: Float32Array.of(250, 250, 210, 1),
89
+ lightgray: Float32Array.of(211, 211, 211, 1),
90
+ lightgreen: Float32Array.of(144, 238, 144, 1),
91
+ lightgrey: Float32Array.of(211, 211, 211, 1),
92
+ lightpink: Float32Array.of(255, 182, 193, 1),
93
+ lightsalmon: Float32Array.of(255, 160, 122, 1),
94
+ lightseagreen: Float32Array.of(32, 178, 170, 1),
95
+ lightskyblue: Float32Array.of(135, 206, 250, 1),
96
+ lightslategray: Float32Array.of(119, 136, 153, 1),
97
+ lightslategrey: Float32Array.of(119, 136, 153, 1),
98
+ lightsteelblue: Float32Array.of(176, 196, 222, 1),
99
+ lightyellow: Float32Array.of(255, 255, 224, 1),
100
+ lime: Float32Array.of(0, 255, 0, 1),
101
+ limegreen: Float32Array.of(50, 205, 50, 1),
102
+ linen: Float32Array.of(250, 240, 230, 1),
103
+ magenta: Float32Array.of(255, 0, 255, 1),
104
+ maroon: Float32Array.of(128, 0, 0, 1),
105
+ mediumaquamarine: Float32Array.of(102, 205, 170, 1),
106
+ mediumblue: Float32Array.of(0, 0, 205, 1),
107
+ mediumorchid: Float32Array.of(186, 85, 211, 1),
108
+ mediumpurple: Float32Array.of(147, 112, 219, 1),
109
+ mediumseagreen: Float32Array.of(60, 179, 113, 1),
110
+ mediumslateblue: Float32Array.of(123, 104, 238, 1),
111
+ mediumspringgreen: Float32Array.of(0, 250, 154, 1),
112
+ mediumturquoise: Float32Array.of(72, 209, 204, 1),
113
+ mediumvioletred: Float32Array.of(199, 21, 133, 1),
114
+ midnightblue: Float32Array.of(25, 25, 112, 1),
115
+ mintcream: Float32Array.of(245, 255, 250, 1),
116
+ mistyrose: Float32Array.of(255, 228, 225, 1),
117
+ moccasin: Float32Array.of(255, 228, 181, 1),
118
+ navajowhite: Float32Array.of(255, 222, 173, 1),
119
+ navy: Float32Array.of(0, 0, 128, 1),
120
+ oldlace: Float32Array.of(253, 245, 230, 1),
121
+ olive: Float32Array.of(128, 128, 0, 1),
122
+ olivedrab: Float32Array.of(107, 142, 35, 1),
123
+ orange: Float32Array.of(255, 165, 0, 1),
124
+ orangered: Float32Array.of(255, 69, 0, 1),
125
+ orchid: Float32Array.of(218, 112, 214, 1),
126
+ palegoldenrod: Float32Array.of(238, 232, 170, 1),
127
+ palegreen: Float32Array.of(152, 251, 152, 1),
128
+ paleturquoise: Float32Array.of(175, 238, 238, 1),
129
+ palevioletred: Float32Array.of(219, 112, 147, 1),
130
+ papayawhip: Float32Array.of(255, 239, 213, 1),
131
+ peachpuff: Float32Array.of(255, 218, 185, 1),
132
+ peru: Float32Array.of(205, 133, 63, 1),
133
+ pink: Float32Array.of(255, 192, 203, 1),
134
+ plum: Float32Array.of(221, 160, 221, 1),
135
+ powderblue: Float32Array.of(176, 224, 230, 1),
136
+ purple: Float32Array.of(128, 0, 128, 1),
137
+ rebeccapurple: Float32Array.of(102, 51, 153, 1),
138
+ red: Float32Array.of(255, 0, 0, 1),
139
+ rosybrown: Float32Array.of(188, 143, 143, 1),
140
+ royalblue: Float32Array.of(65, 105, 225, 1),
141
+ saddlebrown: Float32Array.of(139, 69, 19, 1),
142
+ salmon: Float32Array.of(250, 128, 114, 1),
143
+ sandybrown: Float32Array.of(244, 164, 96, 1),
144
+ seagreen: Float32Array.of(46, 139, 87, 1),
145
+ seashell: Float32Array.of(255, 245, 238, 1),
146
+ sienna: Float32Array.of(160, 82, 45, 1),
147
+ silver: Float32Array.of(192, 192, 192, 1),
148
+ skyblue: Float32Array.of(135, 206, 235, 1),
149
+ slateblue: Float32Array.of(106, 90, 205, 1),
150
+ slategray: Float32Array.of(112, 128, 144, 1),
151
+ slategrey: Float32Array.of(112, 128, 144, 1),
152
+ snow: Float32Array.of(255, 250, 250, 1),
153
+ springgreen: Float32Array.of(0, 255, 127, 1),
154
+ steelblue: Float32Array.of(70, 130, 180, 1),
155
+ tan: Float32Array.of(210, 180, 140, 1),
156
+ teal: Float32Array.of(0, 128, 128, 1),
157
+ thistle: Float32Array.of(216, 191, 216, 1),
158
+ tomato: Float32Array.of(255, 99, 71, 1),
159
+ turquoise: Float32Array.of(64, 224, 208, 1),
160
+ violet: Float32Array.of(238, 130, 238, 1),
161
+ wheat: Float32Array.of(245, 222, 179, 1),
162
+ white: Float32Array.of(255, 255, 255, 1),
163
+ whitesmoke: Float32Array.of(245, 245, 245, 1),
164
+ yellow: Float32Array.of(255, 255, 0, 1),
165
+ yellowgreen: Float32Array.of(154, 205, 50, 1)
166
+ };
167
+
168
+ const Color = (CanvasKit, color) => {
169
+ if (color instanceof Float32Array) {
170
+ return color;
171
+ } else if (typeof color === "string") {
172
+ const rgba = CanvasKit.parseColorString(color, colorMap);
173
+ return Float32Array.of(rgba[0] / 255, rgba[1] / 255, rgba[2] / 255, rgba[3]);
174
+ } else {
175
+ return Float32Array.of(red(color) / 255, green(color) / 255, blue(color) / 255, alphaf(color));
176
+ }
177
+ };
178
+
179
+ exports.Color = Color;
180
+ //# sourceMappingURL=JsiSkColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkColor.ts"],"names":["alphaf","c","red","green","blue","colorMap","transparent","Float32Array","of","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","Color","CanvasKit","color","rgba","parseColorString"],"mappings":";;;;;;;AAIA,MAAMA,MAAM,GAAIC,CAAD,IAAe,CAAEA,CAAC,IAAI,EAAN,GAAY,GAAb,IAAoB,GAAlD;;AACA,MAAMC,GAAG,GAAID,CAAD,IAAgBA,CAAC,IAAI,EAAN,GAAY,GAAvC;;AACA,MAAME,KAAK,GAAIF,CAAD,IAAgBA,C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AU,GADL,EAELA,IAAI,CAAC,CAAD,CAAJ,GAAU,GAFL,EAGLA,IAAI,CAAC,CAAD,CAAJ,GAAU,GAHL,EAILA,IAAI,CAAC,CAAD,CAJC,CAAP;AAMD,GARM,MAQA;AACL,WAAOtJ,YAAY,CAACC,EAAb,CACLN,GAAG,CAAC0J,KAAD,CAAH,GAAa,GADR,EAELzJ,KAAK,CAACyJ,KAAD,CAAL,GAAe,GAFV,EAGLxJ,IAAI,CAACwJ,KAAD,CAAJ,GAAc,GAHT,EAIL5J,MAAM,CAAC4J,KAAD,CAJD,CAAP;AAMD;AACF,CAnBM","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkColor, Color as InputColor } from \"../../types\";\n\nconst alphaf = (c: number) => ((c >> 24) & 255) / 255;\nconst red = (c: number) => (c >> 16) & 255;\nconst green = (c: number) => (c >> 8) & 255;\nconst blue = (c: number) => c & 255;\n\nconst colorMap = {\n transparent: Float32Array.of(0, 0, 0, 0),\n aliceblue: Float32Array.of(240, 248, 255, 1),\n antiquewhite: Float32Array.of(250, 235, 215, 1),\n aqua: Float32Array.of(0, 255, 255, 1),\n aquamarine: Float32Array.of(127, 255, 212, 1),\n azure: Float32Array.of(240, 255, 255, 1),\n beige: Float32Array.of(245, 245, 220, 1),\n bisque: Float32Array.of(255, 228, 196, 1),\n black: Float32Array.of(0, 0, 0, 1),\n blanchedalmond: Float32Array.of(255, 235, 205, 1),\n blue: Float32Array.of(0, 0, 255, 1),\n blueviolet: Float32Array.of(138, 43, 226, 1),\n brown: Float32Array.of(165, 42, 42, 1),\n burlywood: Float32Array.of(222, 184, 135, 1),\n cadetblue: Float32Array.of(95, 158, 160, 1),\n chartreuse: Float32Array.of(127, 255, 0, 1),\n chocolate: Float32Array.of(210, 105, 30, 1),\n coral: Float32Array.of(255, 127, 80, 1),\n cornflowerblue: Float32Array.of(100, 149, 237, 1),\n cornsilk: Float32Array.of(255, 248, 220, 1),\n crimson: Float32Array.of(220, 20, 60, 1),\n cyan: Float32Array.of(0, 255, 255, 1),\n darkblue: Float32Array.of(0, 0, 139, 1),\n darkcyan: Float32Array.of(0, 139, 139, 1),\n darkgoldenrod: Float32Array.of(184, 134, 11, 1),\n darkgray: Float32Array.of(169, 169, 169, 1),\n darkgreen: Float32Array.of(0, 100, 0, 1),\n darkgrey: Float32Array.of(169, 169, 169, 1),\n darkkhaki: Float32Array.of(189, 183, 107, 1),\n darkmagenta: Float32Array.of(139, 0, 139, 1),\n darkolivegreen: Float32Array.of(85, 107, 47, 1),\n darkorange: Float32Array.of(255, 140, 0, 1),\n darkorchid: Float32Array.of(153, 50, 204, 1),\n darkred: Float32Array.of(139, 0, 0, 1),\n darksalmon: Float32Array.of(233, 150, 122, 1),\n darkseagreen: Float32Array.of(143, 188, 143, 1),\n darkslateblue: Float32Array.of(72, 61, 139, 1),\n darkslategray: Float32Array.of(47, 79, 79, 1),\n darkslategrey: Float32Array.of(47, 79, 79, 1),\n darkturquoise: Float32Array.of(0, 206, 209, 1),\n darkviolet: Float32Array.of(148, 0, 211, 1),\n deeppink: Float32Array.of(255, 20, 147, 1),\n deepskyblue: Float32Array.of(0, 191, 255, 1),\n dimgray: Float32Array.of(105, 105, 105, 1),\n dimgrey: Float32Array.of(105, 105, 105, 1),\n dodgerblue: Float32Array.of(30, 144, 255, 1),\n firebrick: Float32Array.of(178, 34, 34, 1),\n floralwhite: Float32Array.of(255, 250, 240, 1),\n forestgreen: Float32Array.of(34, 139, 34, 1),\n fuchsia: Float32Array.of(255, 0, 255, 1),\n gainsboro: Float32Array.of(220, 220, 220, 1),\n ghostwhite: Float32Array.of(248, 248, 255, 1),\n gold: Float32Array.of(255, 215, 0, 1),\n goldenrod: Float32Array.of(218, 165, 32, 1),\n gray: Float32Array.of(128, 128, 128, 1),\n green: Float32Array.of(0, 128, 0, 1),\n greenyellow: Float32Array.of(173, 255, 47, 1),\n grey: Float32Array.of(128, 128, 128, 1),\n honeydew: Float32Array.of(240, 255, 240, 1),\n hotpink: Float32Array.of(255, 105, 180, 1),\n indianred: Float32Array.of(205, 92, 92, 1),\n indigo: Float32Array.of(75, 0, 130, 1),\n ivory: Float32Array.of(255, 255, 240, 1),\n khaki: Float32Array.of(240, 230, 140, 1),\n lavender: Float32Array.of(230, 230, 250, 1),\n lavenderblush: Float32Array.of(255, 240, 245, 1),\n lawngreen: Float32Array.of(124, 252, 0, 1),\n lemonchiffon: Float32Array.of(255, 250, 205, 1),\n lightblue: Float32Array.of(173, 216, 230, 1),\n lightcoral: Float32Array.of(240, 128, 128, 1),\n lightcyan: Float32Array.of(224, 255, 255, 1),\n lightgoldenrodyellow: Float32Array.of(250, 250, 210, 1),\n lightgray: Float32Array.of(211, 211, 211, 1),\n lightgreen: Float32Array.of(144, 238, 144, 1),\n lightgrey: Float32Array.of(211, 211, 211, 1),\n lightpink: Float32Array.of(255, 182, 193, 1),\n lightsalmon: Float32Array.of(255, 160, 122, 1),\n lightseagreen: Float32Array.of(32, 178, 170, 1),\n lightskyblue: Float32Array.of(135, 206, 250, 1),\n lightslategray: Float32Array.of(119, 136, 153, 1),\n lightslategrey: Float32Array.of(119, 136, 153, 1),\n lightsteelblue: Float32Array.of(176, 196, 222, 1),\n lightyellow: Float32Array.of(255, 255, 224, 1),\n lime: Float32Array.of(0, 255, 0, 1),\n limegreen: Float32Array.of(50, 205, 50, 1),\n linen: Float32Array.of(250, 240, 230, 1),\n magenta: Float32Array.of(255, 0, 255, 1),\n maroon: Float32Array.of(128, 0, 0, 1),\n mediumaquamarine: Float32Array.of(102, 205, 170, 1),\n mediumblue: Float32Array.of(0, 0, 205, 1),\n mediumorchid: Float32Array.of(186, 85, 211, 1),\n mediumpurple: Float32Array.of(147, 112, 219, 1),\n mediumseagreen: Float32Array.of(60, 179, 113, 1),\n mediumslateblue: Float32Array.of(123, 104, 238, 1),\n mediumspringgreen: Float32Array.of(0, 250, 154, 1),\n mediumturquoise: Float32Array.of(72, 209, 204, 1),\n mediumvioletred: Float32Array.of(199, 21, 133, 1),\n midnightblue: Float32Array.of(25, 25, 112, 1),\n mintcream: Float32Array.of(245, 255, 250, 1),\n mistyrose: Float32Array.of(255, 228, 225, 1),\n moccasin: Float32Array.of(255, 228, 181, 1),\n navajowhite: Float32Array.of(255, 222, 173, 1),\n navy: Float32Array.of(0, 0, 128, 1),\n oldlace: Float32Array.of(253, 245, 230, 1),\n olive: Float32Array.of(128, 128, 0, 1),\n olivedrab: Float32Array.of(107, 142, 35, 1),\n orange: Float32Array.of(255, 165, 0, 1),\n orangered: Float32Array.of(255, 69, 0, 1),\n orchid: Float32Array.of(218, 112, 214, 1),\n palegoldenrod: Float32Array.of(238, 232, 170, 1),\n palegreen: Float32Array.of(152, 251, 152, 1),\n paleturquoise: Float32Array.of(175, 238, 238, 1),\n palevioletred: Float32Array.of(219, 112, 147, 1),\n papayawhip: Float32Array.of(255, 239, 213, 1),\n peachpuff: Float32Array.of(255, 218, 185, 1),\n peru: Float32Array.of(205, 133, 63, 1),\n pink: Float32Array.of(255, 192, 203, 1),\n plum: Float32Array.of(221, 160, 221, 1),\n powderblue: Float32Array.of(176, 224, 230, 1),\n purple: Float32Array.of(128, 0, 128, 1),\n rebeccapurple: Float32Array.of(102, 51, 153, 1),\n red: Float32Array.of(255, 0, 0, 1),\n rosybrown: Float32Array.of(188, 143, 143, 1),\n royalblue: Float32Array.of(65, 105, 225, 1),\n saddlebrown: Float32Array.of(139, 69, 19, 1),\n salmon: Float32Array.of(250, 128, 114, 1),\n sandybrown: Float32Array.of(244, 164, 96, 1),\n seagreen: Float32Array.of(46, 139, 87, 1),\n seashell: Float32Array.of(255, 245, 238, 1),\n sienna: Float32Array.of(160, 82, 45, 1),\n silver: Float32Array.of(192, 192, 192, 1),\n skyblue: Float32Array.of(135, 206, 235, 1),\n slateblue: Float32Array.of(106, 90, 205, 1),\n slategray: Float32Array.of(112, 128, 144, 1),\n slategrey: Float32Array.of(112, 128, 144, 1),\n snow: Float32Array.of(255, 250, 250, 1),\n springgreen: Float32Array.of(0, 255, 127, 1),\n steelblue: Float32Array.of(70, 130, 180, 1),\n tan: Float32Array.of(210, 180, 140, 1),\n teal: Float32Array.of(0, 128, 128, 1),\n thistle: Float32Array.of(216, 191, 216, 1),\n tomato: Float32Array.of(255, 99, 71, 1),\n turquoise: Float32Array.of(64, 224, 208, 1),\n violet: Float32Array.of(238, 130, 238, 1),\n wheat: Float32Array.of(245, 222, 179, 1),\n white: Float32Array.of(255, 255, 255, 1),\n whitesmoke: Float32Array.of(245, 245, 245, 1),\n yellow: Float32Array.of(255, 255, 0, 1),\n yellowgreen: Float32Array.of(154, 205, 50, 1),\n};\n\nexport const Color = (CanvasKit: CanvasKit, color: InputColor): SkColor => {\n if (color instanceof Float32Array) {\n return color;\n } else if (typeof color === \"string\") {\n const rgba = CanvasKit.parseColorString(color, colorMap);\n return Float32Array.of(\n rgba[0] / 255,\n rgba[1] / 255,\n rgba[2] / 255,\n rgba[3]\n );\n } else {\n return Float32Array.of(\n red(color) / 255,\n green(color) / 255,\n blue(color) / 255,\n alphaf(color)\n );\n }\n};\n"]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkColorFilter = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ class JsiSkColorFilter extends _Host.HostObject {
11
+ constructor(CanvasKit, ref) {
12
+ super(CanvasKit, ref, "ColorFilter");
13
+ }
14
+
15
+ }
16
+
17
+ exports.JsiSkColorFilter = JsiSkColorFilter;
18
+ //# sourceMappingURL=JsiSkColorFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkColorFilter.ts"],"names":["JsiSkColorFilter","HostObject","constructor","CanvasKit","ref"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,gBAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAyC;AAClD,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,aAAtB;AACD;;AAHH","sourcesContent":["import type { CanvasKit, ColorFilter } from \"canvaskit-wasm\";\n\nimport type { SkColorFilter } from \"../../types\";\n\nimport { HostObject } from \"./Host\";\n\nexport class JsiSkColorFilter\n extends HostObject<ColorFilter, \"ColorFilter\">\n implements SkColorFilter\n{\n constructor(CanvasKit: CanvasKit, ref: ColorFilter) {\n super(CanvasKit, ref, \"ColorFilter\");\n }\n}\n"]}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkImage = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ class JsiSkImage extends _Host.HostObject {
11
+ constructor(CanvasKit, ref) {
12
+ super(CanvasKit, ref, "Image");
13
+ }
14
+
15
+ height() {
16
+ return this.ref.height();
17
+ }
18
+
19
+ width() {
20
+ return this.ref.width();
21
+ }
22
+
23
+ makeShaderOptions(_tx, _ty, _fm, _mm, _localMatrix) {
24
+ throw new Error("Not implemented yet");
25
+ }
26
+
27
+ makeShaderCubic(_tx, _ty, _B, _C, _localMatrix) {
28
+ throw new Error("Not implemented yet");
29
+ }
30
+
31
+ encodeToBytes(fmt, quality) {
32
+ let result;
33
+
34
+ if (fmt && quality) {
35
+ result = this.ref.encodeToBytes((0, _Host.ckEnum)(fmt), quality);
36
+ } else if (fmt) {
37
+ result = this.ref.encodeToBytes((0, _Host.ckEnum)(fmt));
38
+ } else {
39
+ result = this.ref.encodeToBytes();
40
+ }
41
+
42
+ if (!result) {
43
+ throw new Error("encodeToBytes failed");
44
+ }
45
+
46
+ return result;
47
+ }
48
+
49
+ encodeToBase64(_fmt, _quality) {
50
+ throw new Error("Not implemented yet");
51
+ }
52
+
53
+ }
54
+
55
+ exports.JsiSkImage = JsiSkImage;
56
+ //# sourceMappingURL=JsiSkImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkImage.ts"],"names":["JsiSkImage","HostObject","constructor","CanvasKit","ref","height","width","makeShaderOptions","_tx","_ty","_fm","_mm","_localMatrix","Error","makeShaderCubic","_B","_C","encodeToBytes","fmt","quality","result","encodeToBase64","_fmt","_quality"],"mappings":";;;;;;;AAYA;;AAEO,MAAMA,UAAN,SAAyBC,gBAAzB,CAAuE;AAC5EC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAmC;AAC5C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,OAAtB;AACD;;AAEDC,EAAAA,MAAM,GAAG;AACP,WAAO,KAAKD,GAAL,CAASC,MAAT,EAAP;AACD;;AAEDC,EAAAA,KAAK,GAAG;AACN,WAAO,KAAKF,GAAL,CAASE,KAAT,EAAP;AACD;;AAEDC,EAAAA,iBAAiB,CACfC,GADe,EAEfC,GAFe,EAGfC,GAHe,EAIfC,GAJe,EAKfC,YALe,EAML;AACV,UAAM,IAAIC,KAAJ,CAAU,qBAAV,CAAN;AACD;;AAEDC,EAAAA,eAAe,CACbN,GADa,EAEbC,GAFa,EAGbM,EAHa,EAIbC,EAJa,EAKbJ,YALa,EAMH;AACV,UAAM,IAAIC,KAAJ,CAAU,qBAAV,CAAN;AACD;;AAEDI,EAAAA,aAAa,CAACC,GAAD,EAAoBC,OAApB,EAAkD;AAC7D,QAAIC,MAAJ;;AACA,QAAIF,GAAG,IAAIC,OAAX,EAAoB;AAClBC,MAAAA,MAAM,GAAG,KAAKhB,GAAL,CAASa,aAAT,CAAuB,kBAAOC,GAAP,CAAvB,EAAoCC,OAApC,CAAT;AACD,KAFD,MAEO,IAAID,GAAJ,EAAS;AACdE,MAAAA,MAAM,GAAG,KAAKhB,GAAL,CAASa,aAAT,CAAuB,kBAAOC,GAAP,CAAvB,CAAT;AACD,KAFM,MAEA;AACLE,MAAAA,MAAM,GAAG,KAAKhB,GAAL,CAASa,aAAT,EAAT;AACD;;AACD,QAAI,CAACG,MAAL,EAAa;AACX,YAAM,IAAIP,KAAJ,CAAU,sBAAV,CAAN;AACD;;AACD,WAAOO,MAAP;AACD;;AAEDC,EAAAA,cAAc,CAACC,IAAD,EAAqBC,QAArB,EAAgD;AAC5D,UAAM,IAAIV,KAAJ,CAAU,qBAAV,CAAN;AACD;;AAlD2E","sourcesContent":["import type { CanvasKit, Image } from \"canvaskit-wasm\";\n\nimport type {\n ImageFormat,\n FilterMode,\n MipmapMode,\n SkImage,\n SkMatrix,\n SkShader,\n TileMode,\n} from \"../../types\";\n\nimport { ckEnum, HostObject } from \"./Host\";\n\nexport class JsiSkImage extends HostObject<Image, \"Image\"> implements SkImage {\n constructor(CanvasKit: CanvasKit, ref: Image) {\n super(CanvasKit, ref, \"Image\");\n }\n\n height() {\n return this.ref.height();\n }\n\n width() {\n return this.ref.width();\n }\n\n makeShaderOptions(\n _tx: TileMode,\n _ty: TileMode,\n _fm: FilterMode,\n _mm: MipmapMode,\n _localMatrix?: SkMatrix\n ): SkShader {\n throw new Error(\"Not implemented yet\");\n }\n\n makeShaderCubic(\n _tx: TileMode,\n _ty: TileMode,\n _B: number,\n _C: number,\n _localMatrix?: SkMatrix\n ): SkShader {\n throw new Error(\"Not implemented yet\");\n }\n\n encodeToBytes(fmt?: ImageFormat, quality?: number): Uint8Array {\n let result: Uint8Array | null;\n if (fmt && quality) {\n result = this.ref.encodeToBytes(ckEnum(fmt), quality);\n } else if (fmt) {\n result = this.ref.encodeToBytes(ckEnum(fmt));\n } else {\n result = this.ref.encodeToBytes();\n }\n if (!result) {\n throw new Error(\"encodeToBytes failed\");\n }\n return result;\n }\n\n encodeToBase64(_fmt?: ImageFormat, _quality?: number): string {\n throw new Error(\"Not implemented yet\");\n }\n}\n"]}
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkPaint = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ class JsiSkPaint extends _Host.HostObject {
11
+ constructor(CanvasKit, ref) {
12
+ super(CanvasKit, ref, "Paint");
13
+ }
14
+
15
+ copy() {
16
+ return new JsiSkPaint(this.CanvasKit, this.ref.copy());
17
+ }
18
+
19
+ getColor() {
20
+ return this.ref.getColor();
21
+ }
22
+
23
+ getStrokeCap() {
24
+ return this.ref.getStrokeCap().value;
25
+ }
26
+
27
+ getStrokeJoin() {
28
+ return this.ref.getStrokeJoin().value;
29
+ }
30
+
31
+ getStrokeMiter() {
32
+ return this.ref.getStrokeMiter();
33
+ }
34
+
35
+ getStrokeWidth() {
36
+ return this.ref.getStrokeWidth();
37
+ }
38
+
39
+ setAlphaf(alpha) {
40
+ this.ref.setAlphaf(alpha);
41
+ }
42
+
43
+ setAntiAlias(aa) {
44
+ this.ref.setAntiAlias(aa);
45
+ }
46
+
47
+ setBlendMode(blendMode) {
48
+ this.ref.setBlendMode({
49
+ value: blendMode
50
+ });
51
+ }
52
+
53
+ setColor(color) {
54
+ this.ref.setColor(color);
55
+ }
56
+
57
+ setColorFilter(filter) {
58
+ this.ref.setColorFilter((0, _Host.toNullableValue)(filter));
59
+ }
60
+
61
+ setImageFilter(filter) {
62
+ this.ref.setImageFilter((0, _Host.toNullableValue)(filter));
63
+ }
64
+
65
+ setMaskFilter(filter) {
66
+ this.ref.setMaskFilter((0, _Host.toNullableValue)(filter));
67
+ }
68
+
69
+ setPathEffect(effect) {
70
+ this.ref.setPathEffect((0, _Host.toNullableValue)(effect));
71
+ }
72
+
73
+ setShader(shader) {
74
+ this.ref.setShader((0, _Host.toNullableValue)(shader));
75
+ }
76
+
77
+ setStrokeCap(cap) {
78
+ this.ref.setStrokeCap({
79
+ value: cap
80
+ });
81
+ }
82
+
83
+ setStrokeJoin(join) {
84
+ this.ref.setStrokeJoin({
85
+ value: join
86
+ });
87
+ }
88
+
89
+ setStrokeMiter(limit) {
90
+ this.ref.setStrokeMiter(limit);
91
+ }
92
+
93
+ setStrokeWidth(width) {
94
+ this.ref.setStrokeWidth(width);
95
+ }
96
+
97
+ setStyle(style) {
98
+ this.ref.setStyle({
99
+ value: style
100
+ });
101
+ }
102
+
103
+ }
104
+
105
+ exports.JsiSkPaint = JsiSkPaint;
106
+ //# sourceMappingURL=JsiSkPaint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkPaint.ts"],"names":["JsiSkPaint","HostObject","constructor","CanvasKit","ref","copy","getColor","getStrokeCap","value","getStrokeJoin","getStrokeMiter","getStrokeWidth","setAlphaf","alpha","setAntiAlias","aa","setBlendMode","blendMode","setColor","color","setColorFilter","filter","setImageFilter","setMaskFilter","setPathEffect","effect","setShader","shader","setStrokeCap","cap","setStrokeJoin","join","setStrokeMiter","limit","setStrokeWidth","width","setStyle","style"],"mappings":";;;;;;;AAgBA;;AAEO,MAAMA,UAAN,SAAyBC,gBAAzB,CAAuE;AAC5EC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAmC;AAC5C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,OAAtB;AACD;;AAEDC,EAAAA,IAAI,GAAG;AACL,WAAO,IAAIL,UAAJ,CAAe,KAAKG,SAApB,EAA+B,KAAKC,GAAL,CAASC,IAAT,EAA/B,CAAP;AACD;;AAEDC,EAAAA,QAAQ,GAAG;AACT,WAAO,KAAKF,GAAL,CAASE,QAAT,EAAP;AACD;;AAEDC,EAAAA,YAAY,GAAG;AACb,WAAO,KAAKH,GAAL,CAASG,YAAT,GAAwBC,KAA/B;AACD;;AAEDC,EAAAA,aAAa,GAAG;AACd,WAAO,KAAKL,GAAL,CAASK,aAAT,GAAyBD,KAAhC;AACD;;AAEDE,EAAAA,cAAc,GAAG;AACf,WAAO,KAAKN,GAAL,CAASM,cAAT,EAAP;AACD;;AAEDC,EAAAA,cAAc,GAAG;AACf,WAAO,KAAKP,GAAL,CAASO,cAAT,EAAP;AACD;;AAEDC,EAAAA,SAAS,CAACC,KAAD,EAAgB;AACvB,SAAKT,GAAL,CAASQ,SAAT,CAAmBC,KAAnB;AACD;;AAEDC,EAAAA,YAAY,CAACC,EAAD,EAAc;AACxB,SAAKX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AL,CAAS8B,cAAT,CAAwBC,KAAxB;AACD;;AAEDC,EAAAA,QAAQ,CAACC,KAAD,EAAoB;AAC1B,SAAKjC,GAAL,CAASgC,QAAT,CAAkB;AAAE5B,MAAAA,KAAK,EAAE6B;AAAT,KAAlB;AACD;;AAnF2E","sourcesContent":["import type { CanvasKit, Paint } from \"canvaskit-wasm\";\n\nimport type {\n BlendMode,\n SkColor,\n SkColorFilter,\n SkImageFilter,\n SkPaint,\n SkShader,\n StrokeCap,\n StrokeJoin,\n PaintStyle,\n SkMaskFilter,\n SkPathEffect,\n} from \"../../types\";\n\nimport { HostObject, toNullableValue } from \"./Host\";\n\nexport class JsiSkPaint extends HostObject<Paint, \"Paint\"> implements SkPaint {\n constructor(CanvasKit: CanvasKit, ref: Paint) {\n super(CanvasKit, ref, \"Paint\");\n }\n\n copy() {\n return new JsiSkPaint(this.CanvasKit, this.ref.copy());\n }\n\n getColor() {\n return this.ref.getColor();\n }\n\n getStrokeCap() {\n return this.ref.getStrokeCap().value;\n }\n\n getStrokeJoin() {\n return this.ref.getStrokeJoin().value;\n }\n\n getStrokeMiter() {\n return this.ref.getStrokeMiter();\n }\n\n getStrokeWidth() {\n return this.ref.getStrokeWidth();\n }\n\n setAlphaf(alpha: number) {\n this.ref.setAlphaf(alpha);\n }\n\n setAntiAlias(aa: boolean) {\n this.ref.setAntiAlias(aa);\n }\n\n setBlendMode(blendMode: BlendMode) {\n this.ref.setBlendMode({ value: blendMode });\n }\n\n setColor(color: SkColor) {\n this.ref.setColor(color);\n }\n\n setColorFilter(filter: SkColorFilter | null) {\n this.ref.setColorFilter(toNullableValue(filter));\n }\n\n setImageFilter(filter: SkImageFilter | null) {\n this.ref.setImageFilter(toNullableValue(filter));\n }\n\n setMaskFilter(filter: SkMaskFilter | null) {\n this.ref.setMaskFilter(toNullableValue(filter));\n }\n\n setPathEffect(effect: SkPathEffect | null) {\n this.ref.setPathEffect(toNullableValue(effect));\n }\n\n setShader(shader: SkShader | null) {\n this.ref.setShader(toNullableValue(shader));\n }\n\n setStrokeCap(cap: StrokeCap) {\n this.ref.setStrokeCap({ value: cap });\n }\n\n setStrokeJoin(join: StrokeJoin) {\n this.ref.setStrokeJoin({ value: join });\n }\n\n setStrokeMiter(limit: number) {\n this.ref.setStrokeMiter(limit);\n }\n\n setStrokeWidth(width: number) {\n this.ref.setStrokeWidth(width);\n }\n\n setStyle(style: PaintStyle) {\n this.ref.setStyle({ value: style });\n }\n}\n"]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkRect = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ class JsiSkRect extends _Host.HostObject {
11
+ constructor(CanvasKit, ref) {
12
+ super(CanvasKit, ref, "Rect");
13
+ }
14
+
15
+ get x() {
16
+ return this.ref[0];
17
+ }
18
+
19
+ get y() {
20
+ return this.ref[1];
21
+ }
22
+
23
+ get width() {
24
+ return this.ref[2] - this.ref[0];
25
+ }
26
+
27
+ get height() {
28
+ return this.ref[3] - this.ref[1];
29
+ }
30
+
31
+ }
32
+
33
+ exports.JsiSkRect = JsiSkRect;
34
+ //# sourceMappingURL=JsiSkRect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkRect.ts"],"names":["JsiSkRect","HostObject","constructor","CanvasKit","ref","x","y","width","height"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,SAAN,SAAwBC,gBAAxB,CAAmE;AACxEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAkC;AAC3C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,MAAtB;AACD;;AAEI,MAADC,CAAC,GAAG;AACN,WAAO,KAAKD,GAAL,CAAS,CAAT,CAAP;AACD;;AAEI,MAADE,CAAC,GAAG;AACN,WAAO,KAAKF,GAAL,CAAS,CAAT,CAAP;AACD;;AAEQ,MAALG,KAAK,GAAG;AACV,WAAO,KAAKH,GAAL,CAAS,CAAT,IAAc,KAAKA,GAAL,CAAS,CAAT,CAArB;AACD;;AAES,MAANI,MAAM,GAAG;AACX,WAAO,KAAKJ,GAAL,CAAS,CAAT,IAAc,KAAKA,GAAL,CAAS,CAAT,CAArB;AACD;;AAnBuE","sourcesContent":["import type { CanvasKit, Rect } from \"canvaskit-wasm\";\n\nimport type { SkRect } from \"../../types\";\n\nimport { HostObject } from \"./Host\";\n\nexport class JsiSkRect extends HostObject<Rect, \"Rect\"> implements SkRect {\n constructor(CanvasKit: CanvasKit, ref: Rect) {\n super(CanvasKit, ref, \"Rect\");\n }\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n\n get width() {\n return this.ref[2] - this.ref[0];\n }\n\n get height() {\n return this.ref[3] - this.ref[1];\n }\n}\n"]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkSurface = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ var _JsiSkCanvas = require("./JsiSkCanvas");
11
+
12
+ var _JsiSkImage = require("./JsiSkImage");
13
+
14
+ class JsiSkSurface extends _Host.HostObject {
15
+ constructor(CanvasKit, ref) {
16
+ super(CanvasKit, ref, "Surface");
17
+ }
18
+
19
+ getCanvas() {
20
+ return new _JsiSkCanvas.JsiSkCanvas(this.CanvasKit, this.ref.getCanvas());
21
+ }
22
+
23
+ makeImageSnapshot(bounds) {
24
+ const image = this.ref.makeImageSnapshot((0, _Host.toUndefinedableValue)(bounds));
25
+ return new _JsiSkImage.JsiSkImage(this.CanvasKit, image);
26
+ }
27
+
28
+ }
29
+
30
+ exports.JsiSkSurface = JsiSkSurface;
31
+ //# sourceMappingURL=JsiSkSurface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkSurface.ts"],"names":["JsiSkSurface","HostObject","constructor","CanvasKit","ref","getCanvas","JsiSkCanvas","makeImageSnapshot","bounds","image","JsiSkImage"],"mappings":";;;;;;;AAIA;;AACA;;AACA;;AAEO,MAAMA,YAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAqC;AAC9C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,SAAtB;AACD;;AAEDC,EAAAA,SAAS,GAAa;AACpB,WAAO,IAAIC,wBAAJ,CAAgB,KAAKH,SAArB,EAAgC,KAAKC,GAAL,CAASC,SAAT,EAAhC,CAAP;AACD;;AAEDE,EAAAA,iBAAiB,CAACC,MAAD,EAA2B;AAC1C,UAAMC,KAAK,GAAG,KAAKL,GAAL,CAASG,iBAAT,CAA2B,gCAAqBC,MAArB,CAA3B,CAAd;AACA,WAAO,IAAIE,sBAAJ,CAAe,KAAKP,SAApB,EAA+BM,KAA/B,CAAP;AACD;;AAZH","sourcesContent":["import type { CanvasKit, Surface } from \"canvaskit-wasm\";\n\nimport type { SkCanvas, SkImage, SkRect, SkSurface } from \"../../types\";\n\nimport { HostObject, toUndefinedableValue } from \"./Host\";\nimport { JsiSkCanvas } from \"./JsiSkCanvas\";\nimport { JsiSkImage } from \"./JsiSkImage\";\n\nexport class JsiSkSurface\n extends HostObject<Surface, \"Surface\">\n implements SkSurface\n{\n constructor(CanvasKit: CanvasKit, ref: Surface) {\n super(CanvasKit, ref, \"Surface\");\n }\n\n getCanvas(): SkCanvas {\n return new JsiSkCanvas(this.CanvasKit, this.ref.getCanvas());\n }\n\n makeImageSnapshot(bounds?: SkRect): SkImage {\n const image = this.ref.makeImageSnapshot(toUndefinedableValue(bounds));\n return new JsiSkImage(this.CanvasKit, image);\n }\n}\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkSurfaceFactory = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ var _JsiSkSurface = require("./JsiSkSurface");
11
+
12
+ class JsiSkSurfaceFactory extends _Host.Host {
13
+ constructor(CanvasKit) {
14
+ super(CanvasKit);
15
+ }
16
+
17
+ Make(width, height) {
18
+ const surface = this.CanvasKit.MakeSurface(width, height);
19
+
20
+ if (!surface) {
21
+ throw new Error("Could not create surface");
22
+ }
23
+
24
+ return new _JsiSkSurface.JsiSkSurface(this.CanvasKit, surface);
25
+ }
26
+
27
+ }
28
+
29
+ exports.JsiSkSurfaceFactory = JsiSkSurfaceFactory;
30
+ //# sourceMappingURL=JsiSkSurfaceFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkSurfaceFactory.ts"],"names":["JsiSkSurfaceFactory","Host","constructor","CanvasKit","Make","width","height","surface","MakeSurface","Error","JsiSkSurface"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,mBAAN,SAAkCC,UAAlC,CAAiE;AACtEC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,IAAI,CAACC,KAAD,EAAgBC,MAAhB,EAAgC;AAClC,UAAMC,OAAO,GAAG,KAAKJ,SAAL,CAAeK,WAAf,CAA2BH,KAA3B,EAAkCC,MAAlC,CAAhB;;AACA,QAAI,CAACC,OAAL,EAAc;AACZ,YAAM,IAAIE,KAAJ,CAAU,0BAAV,CAAN;AACD;;AACD,WAAO,IAAIC,0BAAJ,CAAiB,KAAKP,SAAtB,EAAiCI,OAAjC,CAAP;AACD;;AAXqE","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SurfaceFactory } from \"../../types\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkSurface } from \"./JsiSkSurface\";\n\nexport class JsiSkSurfaceFactory extends Host implements SurfaceFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n Make(width: number, height: number) {\n const surface = this.CanvasKit.MakeSurface(width, height);\n if (!surface) {\n throw new Error(\"Could not create surface\");\n }\n return new JsiSkSurface(this.CanvasKit, surface);\n }\n}\n"]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkApi = void 0;
7
+
8
+ var _JsiSkPaint = require("./JsiSkPaint");
9
+
10
+ var _JsiSkRect = require("./JsiSkRect");
11
+
12
+ var _JsiSkColor = require("./JsiSkColor");
13
+
14
+ var _JsiSkSurfaceFactory = require("./JsiSkSurfaceFactory");
15
+
16
+ const JsiSkApi = CanvasKit => ({
17
+ Paint: () => new _JsiSkPaint.JsiSkPaint(CanvasKit, new CanvasKit.Paint()),
18
+ XYWHRect: (x, y, width, height) => {
19
+ return new _JsiSkRect.JsiSkRect(CanvasKit, CanvasKit.XYWHRect(x, y, width, height));
20
+ },
21
+ Color: _JsiSkColor.Color.bind(null, CanvasKit),
22
+ Surface: new _JsiSkSurfaceFactory.JsiSkSurfaceFactory(CanvasKit)
23
+ });
24
+
25
+ exports.JsiSkApi = JsiSkApi;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":["JsiSkApi","CanvasKit","Paint","JsiSkPaint","XYWHRect","x","y","width","height","JsiSkRect","Color","bind","Surface","JsiSkSurfaceFactory"],"mappings":";;;;;;;AAEA;;AACA;;AACA;;AACA;;AAEO,MAAMA,QAAQ,GAAIC,SAAD,KAA2B;AACjDC,EAAAA,KAAK,EAAE,MAAM,IAAIC,sBAAJ,CAAeF,SAAf,EAA0B,IAAIA,SAAS,CAACC,KAAd,EAA1B,CADoC;AAEjDE,EAAAA,QAAQ,EAAE,CAACC,CAAD,EAAYC,CAAZ,EAAuBC,KAAvB,EAAsCC,MAAtC,KAAyD;AACjE,WAAO,IAAIC,oBAAJ,CAAcR,SAAd,EAAyBA,SAAS,CAACG,QAAV,CAAmBC,CAAnB,EAAsBC,CAAtB,EAAyBC,KAAzB,EAAgCC,MAAhC,CAAzB,CAAP;AACD,GAJgD;AAKjDE,EAAAA,KAAK,EAAEA,kBAAMC,IAAN,CAAW,IAAX,EAAiBV,SAAjB,CAL0C;AAMjDW,EAAAA,OAAO,EAAE,IAAIC,wCAAJ,CAAwBZ,SAAxB;AANwC,CAA3B,CAAjB","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport { JsiSkPaint } from \"./JsiSkPaint\";\nimport { JsiSkRect } from \"./JsiSkRect\";\nimport { Color } from \"./JsiSkColor\";\nimport { JsiSkSurfaceFactory } from \"./JsiSkSurfaceFactory\";\n\nexport const JsiSkApi = (CanvasKit: CanvasKit) => ({\n Paint: () => new JsiSkPaint(CanvasKit, new CanvasKit.Paint()),\n XYWHRect: (x: number, y: number, width: number, height: number) => {\n return new JsiSkRect(CanvasKit, CanvasKit.XYWHRect(x, y, width, height));\n },\n Color: Color.bind(null, CanvasKit),\n Surface: new JsiSkSurfaceFactory(CanvasKit),\n});\n"]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _api = require("./api");
8
+
9
+ Object.keys(_api).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _api[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _api[key];
16
+ }
17
+ });
18
+ });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from \"./api\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["useValue.ts"],"names":["useValue","v","ValueApi","createValue"],"mappings":";;;;;;;AAAA;;AAEA;;AAGA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,GAAOC,CAAJ,IAA2B;AACjD;AACA,SAAO,oBAAQ,MAAMC,cAASC,WAAT,CAAqBF,CAArB,CAAd,EAAuC,EAAvC,CAAP;AACD,CAHM","sourcesContent":["import { useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\nimport type { SkiaValue } from \"../types\";\n\n/**\n * Creates a new value that holds some data.\n * @param v Value to hold\n * @returns A Value of type of v\n */\nexport const useValue = <T>(v: T): SkiaValue<T> => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useMemo(() => ValueApi.createValue(v), []);\n};\n"]}
1
+ {"version":3,"sources":["useValue.ts"],"names":["useValue","v","ValueApi","createValue"],"mappings":";;;;;;;AAAA;;AAEA;;AAGA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,GAAOC,CAAJ,IAAkC;AACxD;AACA,SAAO,oBAAQ,MAAMC,cAASC,WAAT,CAAqBF,CAArB,CAAd,EAAuC,EAAvC,CAAP;AACD,CAHM","sourcesContent":["import { useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\nimport type { SkiaMutableValue } from \"../types\";\n\n/**\n * Creates a new value that holds some data.\n * @param v Value to hold\n * @returns A Value of type of v\n */\nexport const useValue = <T>(v: T): SkiaMutableValue<T> => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useMemo(() => ValueApi.createValue(v), []);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["useValueEffect.ts"],"names":["useValueEffect","value","cb","addListener"],"mappings":";;;;;;;AAAA;;AAIA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GAAG,CAC5BC,KAD4B,EAE5BC,EAF4B,KAGzB;AACH,wBAAU,MAAM;AACd,WAAOD,KAAK,CAACE,WAAN,CAAkBD,EAAlB,CAAP,CADc,CAEd;AACD,GAHD,EAGG,CAACD,KAAD,CAHH;AAID,CARM","sourcesContent":["import { useEffect } from \"react\";\n\nimport type { SkiaReadonlyValue } from \"../types\";\n\n/**\n * Sets up an effect that will be run whenever the value changes\n * @param value Value to subscribe to changes on\n * @param cb Callback to run when value changes\n */\nexport const useValueEffect = <T>(\n value: SkiaReadonlyValue<T>,\n cb: (v: T) => void\n) => {\n useEffect(() => {\n return value.addListener(cb);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n};\n"]}
1
+ {"version":3,"sources":["useValueEffect.ts"],"names":["useValueEffect","value","cb","addListener"],"mappings":";;;;;;;AAAA;;AAIA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GAAG,CAAIC,KAAJ,EAAyBC,EAAzB,KAAgD;AAC5E,wBAAU,MAAM;AACd,WAAOD,KAAK,CAACE,WAAN,CAAkBD,EAAlB,CAAP,CADc,CAEd;AACD,GAHD,EAGG,CAACD,KAAD,CAHH;AAID,CALM","sourcesContent":["import { useEffect } from \"react\";\n\nimport type { SkiaValue } from \"../types\";\n\n/**\n * Sets up an effect that will be run whenever the value changes\n * @param value Value to subscribe to changes on\n * @param cb Callback to run when value changes\n */\nexport const useValueEffect = <T>(value: SkiaValue<T>, cb: (v: T) => void) => {\n useEffect(() => {\n return value.addListener(cb);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["RNSkReadonlyValue.ts"],"names":["RNSkReadonlyValue","constructor","value","_current","notifyListeners","_listeners","forEach","cb","update","nextValue","current","addListener","push","splice","indexOf"],"mappings":";;;;;;;;;AAEO,MAAMA,iBAAN,CAA2D;AAChEC,EAAAA,WAAW,CAACC,KAAD,EAAW;AAAA;;AAAA,wCAK0B,EAL1B;;AAAA,0CAgBS,WAhBT;;AACpB,SAAKC,QAAL,GAAgBD,KAAhB;AACD;;AAKOE,EAAAA,eAAe,GAAS;AAC9B,SAAKC,UAAL,CAAgBC,OAAhB,CAAyBC,EAAD,IAAQA,EAAE,CAAC,KAAKJ,QAAN,CAAlC;AACD;;AAESK,EAAAA,MAAM,CAACC,SAAD,EAAqB;AACnC,SAAKN,QAAL,GAAgBM,SAAhB;AACA,SAAKL,eAAL;AACD;;AAIiB,MAAPM,OAAO,GAAM;AACtB,WAAO,KAAKP,QAAZ;AACD;;AAEMQ,EAAAA,WAAW,CAACJ,EAAD,EAAyB;AACzC,SAAKF,UAAL,CAAgBO,IAAhB,CAAqBL,EAArB;;AACA,WAAO,MAAM;AACX,WAAKF,UAAL,CAAgBQ,MAAhB,CAAuB,KAAKR,UAAL,CAAgBS,OAAhB,CAAwBP,EAAxB,CAAvB,EAAoD,CAApD;AACD,KAFD;AAGD;;AA5B+D","sourcesContent":["import type { SkiaReadonlyValue } from \"../types\";\n\nexport class RNSkReadonlyValue<T> implements SkiaReadonlyValue<T> {\n constructor(value: T) {\n this._current = value;\n }\n\n private _current: T;\n private _listeners: Array<(value: T) => void> = [];\n\n private notifyListeners(): void {\n this._listeners.forEach((cb) => cb(this._current));\n }\n\n protected update(nextValue: T): void {\n this._current = nextValue;\n this.notifyListeners();\n }\n\n public readonly __typename__ = \"RNSkValue\";\n\n public get current(): T {\n return this._current;\n }\n\n public addListener(cb: (value: T) => void) {\n this._listeners.push(cb);\n return () => {\n this._listeners.splice(this._listeners.indexOf(cb), 1);\n };\n }\n}\n"]}
1
+ {"version":3,"sources":["RNSkReadonlyValue.ts"],"names":["RNSkReadonlyValue","constructor","value","_current","notifyListeners","_listeners","forEach","cb","update","nextValue","current","addListener","push","splice","indexOf"],"mappings":";;;;;;;;;AAEO,MAAMA,iBAAN,CAAmD;AACxDC,EAAAA,WAAW,CAACC,KAAD,EAAW;AAAA;;AAAA,wCAK0B,EAL1B;;AAAA,0CAgBS,WAhBT;;AACpB,SAAKC,QAAL,GAAgBD,KAAhB;AACD;;AAKOE,EAAAA,eAAe,GAAS;AAC9B,SAAKC,UAAL,CAAgBC,OAAhB,CAAyBC,EAAD,IAAQA,EAAE,CAAC,KAAKJ,QAAN,CAAlC;AACD;;AAESK,EAAAA,MAAM,CAACC,SAAD,EAAqB;AACnC,SAAKN,QAAL,GAAgBM,SAAhB;AACA,SAAKL,eAAL;AACD;;AAIiB,MAAPM,OAAO,GAAM;AACtB,WAAO,KAAKP,QAAZ;AACD;;AAEMQ,EAAAA,WAAW,CAACJ,EAAD,EAAyB;AACzC,SAAKF,UAAL,CAAgBO,IAAhB,CAAqBL,EAArB;;AACA,WAAO,MAAM;AACX,WAAKF,UAAL,CAAgBQ,MAAhB,CAAuB,KAAKR,UAAL,CAAgBS,OAAhB,CAAwBP,EAAxB,CAAvB,EAAoD,CAApD;AACD,KAFD;AAGD;;AA5BuD","sourcesContent":["import type { SkiaValue } from \"../types\";\n\nexport class RNSkReadonlyValue<T> implements SkiaValue<T> {\n constructor(value: T) {\n this._current = value;\n }\n\n private _current: T;\n private _listeners: Array<(value: T) => void> = [];\n\n private notifyListeners(): void {\n this._listeners.forEach((cb) => cb(this._current));\n }\n\n protected update(nextValue: T): void {\n this._current = nextValue;\n this.notifyListeners();\n }\n\n public readonly __typename__ = \"RNSkValue\";\n\n public get current(): T {\n return this._current;\n }\n\n public addListener(cb: (value: T) => void) {\n this._listeners.push(cb);\n return () => {\n this._listeners.splice(this._listeners.indexOf(cb), 1);\n };\n }\n}\n"]}