@shopify/react-native-skia 0.1.130 → 0.1.131

Sign up to get free protection for your applications and to get access to all the features.
Files changed (942) hide show
  1. package/README.md +8 -0
  2. package/android/cpp/jni/JniSkiaDrawView.cpp +3 -2
  3. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +2 -1
  4. package/cpp/api/JsiSkCanvas.h +2 -2
  5. package/cpp/api/JsiSkMatrix.h +40 -27
  6. package/cpp/api/JsiSkPaint.h +3 -1
  7. package/cpp/api/JsiSkPath.h +67 -61
  8. package/cpp/api/JsiSkPathFactory.h +14 -1
  9. package/cpp/api/JsiSkRuntimeShaderBuilder.h +18 -0
  10. package/cpp/api/JsiSkTypeface.h +11 -2
  11. package/cpp/api/JsiSkTypefaceFactory.h +5 -1
  12. package/cpp/rnskia/RNSkInfoParameter.h +2 -0
  13. package/cpp/utils/RNSkLog.h +22 -0
  14. package/ios/RNSkia-iOS/SkiaDrawView.mm +2 -1
  15. package/lib/commonjs/animation/functions/index.js +47 -17
  16. package/lib/commonjs/animation/functions/index.js.map +1 -1
  17. package/lib/commonjs/animation/functions/interpolatePaths.js +45 -0
  18. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
  19. package/lib/commonjs/animation/functions/interpolateVector.js +20 -0
  20. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
  21. package/lib/commonjs/index.js +13 -0
  22. package/lib/commonjs/index.js.map +1 -1
  23. package/lib/commonjs/renderer/Canvas.js +19 -35
  24. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  25. package/lib/commonjs/renderer/HostConfig.js +2 -2
  26. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  27. package/lib/commonjs/renderer/components/Blend.js +10 -7
  28. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  29. package/lib/commonjs/renderer/components/Compose.js +9 -6
  30. package/lib/commonjs/renderer/components/Compose.js.map +1 -1
  31. package/lib/commonjs/renderer/components/Group.js +7 -6
  32. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  33. package/lib/commonjs/renderer/components/Mask.js +13 -10
  34. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  35. package/lib/commonjs/renderer/components/Paint.js +7 -4
  36. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  37. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  38. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +1 -1
  39. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  40. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +7 -6
  41. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  42. package/lib/commonjs/renderer/components/colorFilters/Compose.js +6 -6
  43. package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -1
  44. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +8 -7
  45. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  46. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +6 -6
  47. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  48. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +6 -6
  49. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  50. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +6 -7
  51. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  52. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +6 -6
  53. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  54. package/lib/commonjs/renderer/components/image/BoxFit.js +7 -9
  55. package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -1
  56. package/lib/commonjs/renderer/components/image/Image.js +3 -2
  57. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  58. package/lib/commonjs/renderer/components/image/ImageSVG.js +3 -2
  59. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  60. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -6
  61. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  62. package/lib/commonjs/renderer/components/imageFilters/Blur.js +7 -4
  63. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  64. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +10 -7
  65. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  66. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +10 -15
  67. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  68. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +7 -6
  69. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  70. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -4
  71. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  72. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +13 -6
  73. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  74. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +8 -7
  75. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  76. package/lib/commonjs/renderer/components/imageFilters/getInput.js +7 -7
  77. package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -1
  78. package/lib/commonjs/renderer/components/maskFilters/Blur.js +6 -3
  79. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  80. package/lib/commonjs/renderer/components/pathEffects/Corner.js +8 -6
  81. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  82. package/lib/commonjs/renderer/components/pathEffects/Dash.js +8 -6
  83. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  84. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +8 -6
  85. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  86. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +8 -6
  87. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  88. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +8 -6
  89. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  90. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +8 -6
  91. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  92. package/lib/commonjs/renderer/components/pathEffects/Sum.js +7 -4
  93. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  94. package/lib/commonjs/renderer/components/shaders/Color.js +7 -4
  95. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  96. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +5 -4
  97. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  98. package/lib/commonjs/renderer/components/shaders/Gradient.js +5 -5
  99. package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -1
  100. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +6 -5
  101. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  102. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +6 -5
  103. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  104. package/lib/commonjs/renderer/components/shaders/Shader.js +6 -43
  105. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  106. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +6 -5
  107. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  108. package/lib/commonjs/renderer/components/shaders/Turbulence.js +5 -4
  109. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  110. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +6 -5
  111. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  112. package/lib/commonjs/renderer/components/shapes/Box.js +26 -29
  113. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  114. package/lib/commonjs/renderer/components/shapes/Circle.js +7 -5
  115. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  116. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  117. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  118. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  119. package/lib/commonjs/renderer/components/shapes/Oval.js +3 -2
  120. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  121. package/lib/commonjs/renderer/components/shapes/Patch.js +8 -5
  122. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  123. package/lib/commonjs/renderer/components/shapes/Path.js +5 -4
  124. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  125. package/lib/commonjs/renderer/components/shapes/Points.js +2 -2
  126. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  127. package/lib/commonjs/renderer/components/shapes/Rect.js +3 -2
  128. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  129. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +3 -2
  130. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  131. package/lib/commonjs/renderer/components/shapes/Vertices.js +9 -8
  132. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  133. package/lib/commonjs/renderer/components/text/Glyphs.js +3 -2
  134. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  135. package/lib/commonjs/renderer/components/text/Text.js +3 -2
  136. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  137. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  138. package/lib/commonjs/renderer/components/text/TextPath.js +7 -11
  139. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  140. package/lib/commonjs/renderer/index.js +13 -13
  141. package/lib/commonjs/renderer/index.js.map +1 -1
  142. package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -1
  143. package/lib/commonjs/renderer/nodes/Drawing.js +5 -5
  144. package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -1
  145. package/lib/commonjs/renderer/nodes/Node.js.map +1 -1
  146. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  147. package/lib/commonjs/renderer/processors/Circles.js +2 -4
  148. package/lib/commonjs/renderer/processors/Circles.js.map +1 -1
  149. package/lib/commonjs/renderer/processors/Clips.js +5 -5
  150. package/lib/commonjs/renderer/processors/Clips.js.map +1 -1
  151. package/lib/commonjs/{skia/core → renderer/processors}/Color.js +2 -6
  152. package/lib/commonjs/renderer/processors/Color.js.map +1 -0
  153. package/lib/commonjs/renderer/processors/Font.js +4 -4
  154. package/lib/commonjs/renderer/processors/Font.js.map +1 -1
  155. package/lib/commonjs/renderer/processors/Paint.js +18 -14
  156. package/lib/commonjs/renderer/processors/Paint.js.map +1 -1
  157. package/lib/commonjs/renderer/processors/Paths.js +4 -4
  158. package/lib/commonjs/renderer/processors/Paths.js.map +1 -1
  159. package/lib/commonjs/renderer/processors/Radius.js +2 -4
  160. package/lib/commonjs/renderer/processors/Radius.js.map +1 -1
  161. package/lib/commonjs/renderer/processors/Rects.js +8 -59
  162. package/lib/commonjs/renderer/processors/Rects.js.map +1 -1
  163. package/lib/commonjs/renderer/processors/Transform.js +26 -17
  164. package/lib/commonjs/renderer/processors/Transform.js.map +1 -1
  165. package/lib/commonjs/renderer/processors/index.js +26 -13
  166. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  167. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  168. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  169. package/lib/commonjs/renderer/processors/math/index.js +0 -26
  170. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  171. package/lib/commonjs/renderer/useCanvas.js +30 -0
  172. package/lib/commonjs/renderer/useCanvas.js.map +1 -0
  173. package/lib/commonjs/skia/NativeSetup.js +1 -1
  174. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  175. package/lib/commonjs/skia/Skia.web.js +12 -0
  176. package/lib/commonjs/skia/Skia.web.js.map +1 -0
  177. package/lib/commonjs/skia/core/Data.js +9 -4
  178. package/lib/commonjs/skia/core/Data.js.map +1 -1
  179. package/lib/commonjs/skia/core/Font.js +2 -4
  180. package/lib/commonjs/skia/core/Font.js.map +1 -1
  181. package/lib/commonjs/skia/core/Matrix.js +15 -0
  182. package/lib/commonjs/skia/core/Matrix.js.map +1 -0
  183. package/lib/commonjs/skia/core/Paint.js +4 -12
  184. package/lib/commonjs/skia/core/Paint.js.map +1 -1
  185. package/lib/commonjs/skia/core/Path.js +14 -2
  186. package/lib/commonjs/skia/core/Path.js.map +1 -1
  187. package/lib/commonjs/skia/core/RRect.js +13 -0
  188. package/lib/commonjs/skia/core/RRect.js.map +1 -0
  189. package/lib/commonjs/skia/core/Rect.js +47 -0
  190. package/lib/commonjs/skia/core/Rect.js.map +1 -0
  191. package/lib/commonjs/skia/core/Vector.js +49 -0
  192. package/lib/commonjs/skia/core/Vector.js.map +1 -0
  193. package/lib/commonjs/skia/core/index.js +51 -25
  194. package/lib/commonjs/skia/core/index.js.map +1 -1
  195. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  196. package/lib/commonjs/skia/types/Matrix.js +58 -1
  197. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  198. package/lib/commonjs/skia/types/Path/Path.js +1 -0
  199. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  200. package/lib/commonjs/skia/types/Point.js.map +1 -1
  201. package/lib/commonjs/skia/types/RRect.js +7 -0
  202. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  203. package/lib/commonjs/skia/types/Shader/Shader.js +51 -1
  204. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  205. package/lib/commonjs/skia/web/{api/Host.js → Host.js} +10 -1
  206. package/lib/commonjs/skia/web/Host.js.map +1 -0
  207. package/lib/commonjs/skia/web/JsiImageFilterFactory.js +68 -0
  208. package/lib/commonjs/skia/web/JsiImageFilterFactory.js.map +1 -0
  209. package/lib/commonjs/skia/web/{api/JsiSkCanvas.js → JsiSkCanvas.js} +20 -6
  210. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
  211. package/lib/commonjs/skia/web/{api/JsiSkColor.js → JsiSkColor.js} +163 -4
  212. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
  213. package/lib/commonjs/skia/web/{api/JsiSkColorFilter.js → JsiSkColorFilter.js} +0 -0
  214. package/lib/commonjs/skia/web/{api/JsiSkColorFilter.js.map → JsiSkColorFilter.js.map} +1 -1
  215. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +48 -0
  216. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  217. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +42 -0
  218. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
  219. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +30 -0
  220. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  221. package/lib/commonjs/skia/web/JsiSkData.js +18 -0
  222. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
  223. package/lib/commonjs/skia/web/JsiSkDataFactory.js +44 -0
  224. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
  225. package/lib/commonjs/skia/web/JsiSkFont.js +111 -0
  226. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
  227. package/lib/commonjs/skia/web/JsiSkFontMgr.js +35 -0
  228. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
  229. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +25 -0
  230. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  231. package/lib/commonjs/skia/web/{api/JsiSkImage.js → JsiSkImage.js} +0 -0
  232. package/lib/commonjs/skia/web/{api/JsiSkImage.js.map → JsiSkImage.js.map} +1 -1
  233. package/lib/commonjs/skia/web/JsiSkImageFactory.js +47 -0
  234. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
  235. package/lib/commonjs/skia/web/JsiSkImageFilter.js +18 -0
  236. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
  237. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +18 -0
  238. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
  239. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +24 -0
  240. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  241. package/lib/commonjs/skia/web/JsiSkMatrix.js +38 -0
  242. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
  243. package/lib/commonjs/skia/web/{api/JsiSkPaint.js → JsiSkPaint.js} +4 -9
  244. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
  245. package/lib/commonjs/skia/web/JsiSkPath.js +324 -0
  246. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
  247. package/lib/commonjs/skia/web/JsiSkPathEffect.js +18 -0
  248. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
  249. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +78 -0
  250. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  251. package/lib/commonjs/skia/web/JsiSkPathFactory.js +58 -0
  252. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -0
  253. package/lib/commonjs/skia/web/JsiSkPicture.js +29 -0
  254. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -0
  255. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +30 -0
  256. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
  257. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +30 -0
  258. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
  259. package/lib/commonjs/skia/web/JsiSkPoint.js +26 -0
  260. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
  261. package/lib/commonjs/skia/web/JsiSkRRect.js +32 -0
  262. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
  263. package/lib/commonjs/skia/web/JsiSkRSXform.js +18 -0
  264. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
  265. package/lib/commonjs/skia/web/{api/JsiSkRect.js → JsiSkRect.js} +8 -0
  266. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -0
  267. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +44 -0
  268. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  269. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +30 -0
  270. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  271. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +26 -0
  272. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
  273. package/lib/commonjs/skia/web/JsiSkShader.js +18 -0
  274. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
  275. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +52 -0
  276. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
  277. package/lib/commonjs/skia/web/{api/JsiSkSurface.js → JsiSkSurface.js} +0 -0
  278. package/lib/commonjs/skia/web/{api/JsiSkSurface.js.map → JsiSkSurface.js.map} +1 -1
  279. package/lib/commonjs/skia/web/{api/JsiSkSurfaceFactory.js → JsiSkSurfaceFactory.js} +0 -0
  280. package/lib/commonjs/skia/web/{api/JsiSkSurfaceFactory.js.map → JsiSkSurfaceFactory.js.map} +1 -1
  281. package/lib/commonjs/skia/web/JsiSkTextBlob.js +18 -0
  282. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
  283. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +36 -0
  284. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  285. package/lib/commonjs/skia/web/JsiSkTypeface.js +28 -0
  286. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
  287. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +30 -0
  288. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  289. package/lib/commonjs/skia/web/JsiSkVertices.js +28 -0
  290. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
  291. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +27 -0
  292. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
  293. package/lib/commonjs/skia/web/JsiSkia.js +97 -0
  294. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
  295. package/lib/commonjs/skia/web/index.js +4 -4
  296. package/lib/commonjs/skia/web/index.js.map +1 -1
  297. package/lib/commonjs/values/web/api.js +2 -2
  298. package/lib/commonjs/values/web/api.js.map +1 -1
  299. package/lib/commonjs/views/SkiaView.web.js +216 -0
  300. package/lib/commonjs/views/SkiaView.web.js.map +1 -0
  301. package/lib/commonjs/views/types.js.map +1 -1
  302. package/lib/commonjs/views/useTouchHandler.js +70 -46
  303. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  304. package/lib/commonjs/web/index.js +20 -0
  305. package/lib/commonjs/web/index.js.map +1 -0
  306. package/lib/module/animation/functions/index.js +4 -2
  307. package/lib/module/animation/functions/index.js.map +1 -1
  308. package/lib/module/animation/functions/interpolatePaths.js +36 -0
  309. package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
  310. package/lib/module/animation/functions/interpolateVector.js +7 -0
  311. package/lib/module/animation/functions/interpolateVector.js.map +1 -0
  312. package/lib/module/index.js +1 -0
  313. package/lib/module/index.js.map +1 -1
  314. package/lib/module/renderer/Canvas.js +15 -26
  315. package/lib/module/renderer/Canvas.js.map +1 -1
  316. package/lib/module/renderer/HostConfig.js +2 -2
  317. package/lib/module/renderer/HostConfig.js.map +1 -1
  318. package/lib/module/renderer/components/Blend.js +5 -2
  319. package/lib/module/renderer/components/Blend.js.map +1 -1
  320. package/lib/module/renderer/components/Compose.js +5 -2
  321. package/lib/module/renderer/components/Compose.js.map +1 -1
  322. package/lib/module/renderer/components/Group.js +7 -6
  323. package/lib/module/renderer/components/Group.js.map +1 -1
  324. package/lib/module/renderer/components/Mask.js +7 -3
  325. package/lib/module/renderer/components/Mask.js.map +1 -1
  326. package/lib/module/renderer/components/Paint.js +6 -3
  327. package/lib/module/renderer/components/Paint.js.map +1 -1
  328. package/lib/module/renderer/components/Picture.js.map +1 -1
  329. package/lib/module/renderer/components/backdrop/BackdropFilter.js +1 -1
  330. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  331. package/lib/module/renderer/components/colorFilters/BlendColor.js +6 -3
  332. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  333. package/lib/module/renderer/components/colorFilters/Compose.js +2 -2
  334. package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -1
  335. package/lib/module/renderer/components/colorFilters/Lerp.js +6 -3
  336. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  337. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +5 -3
  338. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  339. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +5 -3
  340. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  341. package/lib/module/renderer/components/colorFilters/Matrix.js +5 -3
  342. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  343. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +5 -3
  344. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  345. package/lib/module/renderer/components/image/BoxFit.js +7 -8
  346. package/lib/module/renderer/components/image/BoxFit.js.map +1 -1
  347. package/lib/module/renderer/components/image/Image.js +3 -2
  348. package/lib/module/renderer/components/image/Image.js.map +1 -1
  349. package/lib/module/renderer/components/image/ImageSVG.js +3 -2
  350. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  351. package/lib/module/renderer/components/image/ImageShader.js +10 -7
  352. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  353. package/lib/module/renderer/components/imageFilters/Blur.js +7 -4
  354. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  355. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +7 -4
  356. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  357. package/lib/module/renderer/components/imageFilters/InnerShadow.js +3 -3
  358. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  359. package/lib/module/renderer/components/imageFilters/Morphology.js +6 -4
  360. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  361. package/lib/module/renderer/components/imageFilters/Offset.js +5 -3
  362. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  363. package/lib/module/renderer/components/imageFilters/RuntimeShader.js +13 -4
  364. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  365. package/lib/module/renderer/components/imageFilters/Shadow.js +6 -5
  366. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  367. package/lib/module/renderer/components/imageFilters/getInput.js +2 -2
  368. package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -1
  369. package/lib/module/renderer/components/maskFilters/Blur.js +5 -2
  370. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  371. package/lib/module/renderer/components/pathEffects/Corner.js +5 -2
  372. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  373. package/lib/module/renderer/components/pathEffects/Dash.js +5 -2
  374. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  375. package/lib/module/renderer/components/pathEffects/Discrete.js +5 -2
  376. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  377. package/lib/module/renderer/components/pathEffects/Line2D.js +5 -2
  378. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  379. package/lib/module/renderer/components/pathEffects/Path1D.js +6 -3
  380. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  381. package/lib/module/renderer/components/pathEffects/Path2D.js +6 -3
  382. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  383. package/lib/module/renderer/components/pathEffects/Sum.js +5 -2
  384. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  385. package/lib/module/renderer/components/shaders/Color.js +6 -3
  386. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  387. package/lib/module/renderer/components/shaders/FractalNoise.js +4 -2
  388. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  389. package/lib/module/renderer/components/shaders/Gradient.js +3 -3
  390. package/lib/module/renderer/components/shaders/Gradient.js.map +1 -1
  391. package/lib/module/renderer/components/shaders/LinearGradient.js +5 -3
  392. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  393. package/lib/module/renderer/components/shaders/RadialGradient.js +5 -3
  394. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  395. package/lib/module/renderer/components/shaders/Shader.js +6 -44
  396. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  397. package/lib/module/renderer/components/shaders/SweepGradient.js +5 -3
  398. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  399. package/lib/module/renderer/components/shaders/Turbulence.js +4 -2
  400. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  401. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +5 -3
  402. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  403. package/lib/module/renderer/components/shapes/Box.js +20 -19
  404. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  405. package/lib/module/renderer/components/shapes/Circle.js +7 -4
  406. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  407. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  408. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  409. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  410. package/lib/module/renderer/components/shapes/Oval.js +3 -2
  411. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  412. package/lib/module/renderer/components/shapes/Patch.js +5 -3
  413. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  414. package/lib/module/renderer/components/shapes/Path.js +4 -3
  415. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  416. package/lib/module/renderer/components/shapes/Points.js +1 -1
  417. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  418. package/lib/module/renderer/components/shapes/Rect.js +3 -2
  419. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  420. package/lib/module/renderer/components/shapes/RoundedRect.js +3 -2
  421. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  422. package/lib/module/renderer/components/shapes/Vertices.js +5 -3
  423. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  424. package/lib/module/renderer/components/text/Glyphs.js +3 -2
  425. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  426. package/lib/module/renderer/components/text/Text.js +3 -2
  427. package/lib/module/renderer/components/text/Text.js.map +1 -1
  428. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  429. package/lib/module/renderer/components/text/TextPath.js +3 -3
  430. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  431. package/lib/module/renderer/index.js +1 -1
  432. package/lib/module/renderer/index.js.map +1 -1
  433. package/lib/module/renderer/nodes/Declaration.js.map +1 -1
  434. package/lib/module/renderer/nodes/Drawing.js +3 -3
  435. package/lib/module/renderer/nodes/Drawing.js.map +1 -1
  436. package/lib/module/renderer/nodes/Node.js.map +1 -1
  437. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  438. package/lib/module/renderer/processors/Circles.js +2 -4
  439. package/lib/module/renderer/processors/Circles.js.map +1 -1
  440. package/lib/module/renderer/processors/Clips.js +3 -3
  441. package/lib/module/renderer/processors/Clips.js.map +1 -1
  442. package/lib/module/{skia/core → renderer/processors}/Color.js +1 -2
  443. package/lib/module/renderer/processors/Color.js.map +1 -0
  444. package/lib/module/renderer/processors/Font.js +3 -2
  445. package/lib/module/renderer/processors/Font.js.map +1 -1
  446. package/lib/module/renderer/processors/Paint.js +8 -5
  447. package/lib/module/renderer/processors/Paint.js.map +1 -1
  448. package/lib/module/renderer/processors/Paths.js +2 -2
  449. package/lib/module/renderer/processors/Paths.js.map +1 -1
  450. package/lib/module/renderer/processors/Radius.js +2 -3
  451. package/lib/module/renderer/processors/Radius.js.map +1 -1
  452. package/lib/module/renderer/processors/Rects.js +7 -26
  453. package/lib/module/renderer/processors/Rects.js.map +1 -1
  454. package/lib/module/renderer/processors/Transform.js +24 -16
  455. package/lib/module/renderer/processors/Transform.js.map +1 -1
  456. package/lib/module/renderer/processors/index.js +2 -1
  457. package/lib/module/renderer/processors/index.js.map +1 -1
  458. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  459. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  460. package/lib/module/renderer/processors/math/index.js +0 -2
  461. package/lib/module/renderer/processors/math/index.js.map +1 -1
  462. package/lib/module/renderer/useCanvas.js +13 -0
  463. package/lib/module/renderer/useCanvas.js.map +1 -0
  464. package/lib/module/skia/NativeSetup.js +2 -2
  465. package/lib/module/skia/NativeSetup.js.map +1 -1
  466. package/lib/module/skia/Skia.web.js +3 -0
  467. package/lib/module/skia/Skia.web.js.map +1 -0
  468. package/lib/module/skia/core/Data.js +11 -5
  469. package/lib/module/skia/core/Data.js.map +1 -1
  470. package/lib/module/skia/core/Font.js +2 -4
  471. package/lib/module/skia/core/Font.js.map +1 -1
  472. package/lib/module/skia/core/Matrix.js +4 -0
  473. package/lib/module/skia/core/Matrix.js.map +1 -0
  474. package/lib/module/skia/core/Paint.js +3 -7
  475. package/lib/module/skia/core/Paint.js.map +1 -1
  476. package/lib/module/skia/core/Path.js +11 -2
  477. package/lib/module/skia/core/Path.js.map +1 -1
  478. package/lib/module/skia/core/RRect.js +3 -0
  479. package/lib/module/skia/core/RRect.js.map +1 -0
  480. package/lib/module/skia/core/Rect.js +17 -0
  481. package/lib/module/skia/core/Rect.js.map +1 -0
  482. package/lib/module/{renderer/processors/math → skia/core}/Vector.js +2 -7
  483. package/lib/module/skia/core/Vector.js.map +1 -0
  484. package/lib/module/skia/core/index.js +5 -3
  485. package/lib/module/skia/core/index.js.map +1 -1
  486. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  487. package/lib/module/skia/types/Matrix.js +55 -0
  488. package/lib/module/skia/types/Matrix.js.map +1 -1
  489. package/lib/module/skia/types/Path/Path.js +1 -0
  490. package/lib/module/skia/types/Path/Path.js.map +1 -1
  491. package/lib/module/skia/types/Point.js.map +1 -1
  492. package/lib/module/skia/types/RRect.js +3 -1
  493. package/lib/module/skia/types/RRect.js.map +1 -1
  494. package/lib/module/skia/types/Shader/Shader.js +48 -0
  495. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  496. package/lib/module/skia/web/{api/Host.js → Host.js} +6 -0
  497. package/lib/module/skia/web/Host.js.map +1 -0
  498. package/lib/module/skia/web/JsiImageFilterFactory.js +57 -0
  499. package/lib/module/skia/web/JsiImageFilterFactory.js.map +1 -0
  500. package/lib/module/skia/web/{api/JsiSkCanvas.js → JsiSkCanvas.js} +19 -6
  501. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
  502. package/lib/module/skia/web/{api/JsiSkColor.js → JsiSkColor.js} +164 -4
  503. package/lib/module/skia/web/JsiSkColor.js.map +1 -0
  504. package/lib/module/skia/web/{api/JsiSkColorFilter.js → JsiSkColorFilter.js} +0 -0
  505. package/lib/module/skia/web/{api/JsiSkColorFilter.js.map → JsiSkColorFilter.js.map} +1 -1
  506. package/lib/module/skia/web/JsiSkColorFilterFactory.js +37 -0
  507. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  508. package/lib/module/skia/web/JsiSkContourMeasure.js +31 -0
  509. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
  510. package/lib/module/skia/web/JsiSkContourMeasureIter.js +19 -0
  511. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  512. package/lib/module/skia/web/JsiSkData.js +8 -0
  513. package/lib/module/skia/web/JsiSkData.js.map +1 -0
  514. package/lib/module/skia/web/JsiSkDataFactory.js +33 -0
  515. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
  516. package/lib/module/skia/web/JsiSkFont.js +99 -0
  517. package/lib/module/skia/web/JsiSkFont.js.map +1 -0
  518. package/lib/module/skia/web/JsiSkFontMgr.js +25 -0
  519. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
  520. package/lib/module/skia/web/JsiSkFontMgrFactory.js +14 -0
  521. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  522. package/lib/module/skia/web/{api/JsiSkImage.js → JsiSkImage.js} +0 -0
  523. package/lib/module/skia/web/{api/JsiSkImage.js.map → JsiSkImage.js.map} +1 -1
  524. package/lib/module/skia/web/JsiSkImageFactory.js +36 -0
  525. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
  526. package/lib/module/skia/web/JsiSkImageFilter.js +8 -0
  527. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
  528. package/lib/module/skia/web/JsiSkMaskFilter.js +8 -0
  529. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
  530. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +13 -0
  531. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  532. package/lib/module/skia/web/JsiSkMatrix.js +28 -0
  533. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
  534. package/lib/module/skia/web/{api/JsiSkPaint.js → JsiSkPaint.js} +5 -10
  535. package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
  536. package/lib/module/skia/web/JsiSkPath.js +311 -0
  537. package/lib/module/skia/web/JsiSkPath.js.map +1 -0
  538. package/lib/module/skia/web/JsiSkPathEffect.js +8 -0
  539. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
  540. package/lib/module/skia/web/JsiSkPathEffectFactory.js +67 -0
  541. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  542. package/lib/module/skia/web/JsiSkPathFactory.js +47 -0
  543. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
  544. package/lib/module/skia/web/JsiSkPicture.js +18 -0
  545. package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
  546. package/lib/module/skia/web/JsiSkPictureFactory.js +19 -0
  547. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
  548. package/lib/module/skia/web/JsiSkPictureRecorder.js +18 -0
  549. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
  550. package/lib/module/skia/web/JsiSkPoint.js +16 -0
  551. package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
  552. package/lib/module/skia/web/JsiSkRRect.js +21 -0
  553. package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
  554. package/lib/module/skia/web/JsiSkRSXform.js +8 -0
  555. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
  556. package/lib/module/skia/web/{api/JsiSkRect.js → JsiSkRect.js} +8 -0
  557. package/lib/module/skia/web/JsiSkRect.js.map +1 -0
  558. package/lib/module/skia/web/JsiSkRuntimeEffect.js +33 -0
  559. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  560. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +19 -0
  561. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  562. package/lib/module/skia/web/JsiSkSVGFactory.js +16 -0
  563. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
  564. package/lib/module/skia/web/JsiSkShader.js +8 -0
  565. package/lib/module/skia/web/JsiSkShader.js.map +1 -0
  566. package/lib/module/skia/web/JsiSkShaderFactory.js +41 -0
  567. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
  568. package/lib/module/skia/web/{api/JsiSkSurface.js → JsiSkSurface.js} +0 -0
  569. package/lib/module/skia/web/{api/JsiSkSurface.js.map → JsiSkSurface.js.map} +1 -1
  570. package/lib/module/skia/web/{api/JsiSkSurfaceFactory.js → JsiSkSurfaceFactory.js} +0 -0
  571. package/lib/module/skia/web/{api/JsiSkSurfaceFactory.js.map → JsiSkSurfaceFactory.js.map} +1 -1
  572. package/lib/module/skia/web/JsiSkTextBlob.js +8 -0
  573. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
  574. package/lib/module/skia/web/JsiSkTextBlobFactory.js +25 -0
  575. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  576. package/lib/module/skia/web/JsiSkTypeface.js +18 -0
  577. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
  578. package/lib/module/skia/web/JsiSkTypefaceFactory.js +19 -0
  579. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  580. package/lib/module/skia/web/JsiSkVertices.js +17 -0
  581. package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
  582. package/lib/module/skia/web/JsiSkVerticesFactory.js +16 -0
  583. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
  584. package/lib/module/skia/web/JsiSkia.js +61 -0
  585. package/lib/module/skia/web/JsiSkia.js.map +1 -0
  586. package/lib/module/skia/web/index.js +1 -1
  587. package/lib/module/skia/web/index.js.map +1 -1
  588. package/lib/module/values/web/api.js +2 -2
  589. package/lib/module/values/web/api.js.map +1 -1
  590. package/lib/module/views/SkiaView.web.js +202 -0
  591. package/lib/module/views/SkiaView.web.js.map +1 -0
  592. package/lib/module/views/types.js.map +1 -1
  593. package/lib/module/views/useTouchHandler.js +64 -43
  594. package/lib/module/views/useTouchHandler.js.map +1 -1
  595. package/lib/module/web/index.js +8 -0
  596. package/lib/module/web/index.js.map +1 -0
  597. package/lib/typescript/src/animation/functions/index.d.ts +4 -2
  598. package/lib/typescript/src/animation/functions/interpolatePaths.d.ts +17 -0
  599. package/lib/typescript/src/animation/functions/interpolateVector.d.ts +10 -0
  600. package/lib/typescript/src/index.d.ts +1 -0
  601. package/lib/typescript/src/renderer/Canvas.d.ts +3 -14
  602. package/lib/typescript/src/renderer/DrawingContext.d.ts +3 -3
  603. package/lib/typescript/src/renderer/components/Blend.d.ts +1 -1
  604. package/lib/typescript/src/renderer/components/Group.d.ts +1 -1
  605. package/lib/typescript/src/renderer/components/Paint.d.ts +1 -1
  606. package/lib/typescript/src/renderer/components/Picture.d.ts +1 -1
  607. package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +2 -2
  608. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +2 -2
  609. package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +13 -3
  610. package/lib/typescript/src/renderer/components/image/Image.d.ts +1 -1
  611. package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +1 -1
  612. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +2 -2
  613. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +1 -1
  614. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +1 -1
  615. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +2 -2
  616. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +2 -1
  617. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +1 -1
  618. package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +2 -1
  619. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +1 -1
  620. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +1 -1
  621. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +1 -1
  622. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +1 -1
  623. package/lib/typescript/src/renderer/components/shaders/Color.d.ts +1 -1
  624. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +4 -4
  625. package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +2 -1
  626. package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +2 -1
  627. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +2 -8
  628. package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +2 -1
  629. package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -1
  630. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +1 -1
  631. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +4 -1
  632. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +1 -1
  633. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +1 -1
  634. package/lib/typescript/src/renderer/components/shapes/Line.d.ts +2 -1
  635. package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +3 -3
  636. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +1 -1
  637. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +2 -2
  638. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +2 -2
  639. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +1 -1
  640. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +1 -1
  641. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +1 -1
  642. package/lib/typescript/src/renderer/index.d.ts +1 -1
  643. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +1 -1
  644. package/lib/typescript/src/renderer/nodes/Node.d.ts +1 -1
  645. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +0 -2
  646. package/lib/typescript/src/renderer/processors/Circles.d.ts +2 -2
  647. package/lib/typescript/src/renderer/processors/Clips.d.ts +2 -2
  648. package/lib/typescript/src/{skia/core → renderer/processors}/Color.d.ts +2 -2
  649. package/lib/typescript/src/renderer/processors/Font.d.ts +2 -2
  650. package/lib/typescript/src/renderer/processors/Paint.d.ts +3 -3
  651. package/lib/typescript/src/renderer/processors/Paths.d.ts +2 -2
  652. package/lib/typescript/src/renderer/processors/Radius.d.ts +2 -2
  653. package/lib/typescript/src/renderer/processors/Rects.d.ts +3 -14
  654. package/lib/typescript/src/renderer/processors/Transform.d.ts +3 -4
  655. package/lib/typescript/src/renderer/processors/index.d.ts +2 -1
  656. package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +1 -1
  657. package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +1 -1
  658. package/lib/typescript/src/renderer/processors/math/index.d.ts +0 -2
  659. package/lib/typescript/src/renderer/useCanvas.d.ts +14 -0
  660. package/lib/typescript/src/skia/Skia.web.d.ts +1 -0
  661. package/lib/typescript/src/skia/core/Data.d.ts +4 -4
  662. package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
  663. package/lib/typescript/src/skia/core/Paint.d.ts +0 -1
  664. package/lib/typescript/src/skia/core/RRect.d.ts +2 -0
  665. package/lib/typescript/src/skia/core/Rect.d.ts +8 -0
  666. package/lib/typescript/src/skia/core/Vector.d.ts +12 -0
  667. package/lib/typescript/src/skia/core/index.d.ts +5 -3
  668. package/lib/typescript/src/skia/types/ContourMeasure.d.ts +2 -4
  669. package/lib/typescript/src/skia/types/Data/Data.d.ts +1 -1
  670. package/lib/typescript/src/skia/types/Data/DataFactory.d.ts +4 -4
  671. package/lib/typescript/src/skia/types/FontMgr/FontMgr.d.ts +1 -1
  672. package/lib/typescript/src/skia/types/FontMgr/FontMgrFactory.d.ts +2 -2
  673. package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +3 -3
  674. package/lib/typescript/src/skia/types/Matrix.d.ts +15 -14
  675. package/lib/typescript/src/skia/types/Path/Path.d.ts +29 -23
  676. package/lib/typescript/src/skia/types/Path/PathFactory.d.ts +5 -0
  677. package/lib/typescript/src/skia/types/Picture/Picture.d.ts +2 -2
  678. package/lib/typescript/src/skia/types/Point.d.ts +1 -0
  679. package/lib/typescript/src/skia/types/RRect.d.ts +1 -0
  680. package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +3 -2
  681. package/lib/typescript/src/skia/types/SVG/SVGFactory.d.ts +2 -2
  682. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +8 -0
  683. package/lib/typescript/src/skia/types/Skia.d.ts +1 -1
  684. package/lib/typescript/src/skia/types/Typeface/TypefaceFactory.d.ts +2 -2
  685. package/lib/typescript/src/skia/web/{api/Host.d.ts → Host.d.ts} +4 -1
  686. package/lib/typescript/src/skia/web/JsiImageFilterFactory.d.ts +19 -0
  687. package/lib/typescript/src/skia/web/{api/JsiSkCanvas.d.ts → JsiSkCanvas.d.ts} +1 -1
  688. package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
  689. package/lib/typescript/src/skia/web/{api/JsiSkColorFilter.d.ts → JsiSkColorFilter.d.ts} +1 -1
  690. package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  691. package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +16 -0
  692. package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  693. package/lib/typescript/src/skia/web/JsiSkData.d.ts +8 -0
  694. package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
  695. package/lib/typescript/src/skia/web/JsiSkFont.d.ts +33 -0
  696. package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +9 -0
  697. package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
  698. package/lib/typescript/src/skia/web/{api/JsiSkImage.d.ts → JsiSkImage.d.ts} +1 -1
  699. package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +10 -0
  700. package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +6 -0
  701. package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +6 -0
  702. package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  703. package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +11 -0
  704. package/lib/typescript/src/skia/web/{api/JsiSkPaint.d.ts → JsiSkPaint.d.ts} +1 -1
  705. package/lib/typescript/src/skia/web/JsiSkPath.d.ts +56 -0
  706. package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +6 -0
  707. package/lib/typescript/src/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  708. package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +13 -0
  709. package/lib/typescript/src/skia/web/JsiSkPicture.d.ts +9 -0
  710. package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
  711. package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  712. package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +8 -0
  713. package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +10 -0
  714. package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -0
  715. package/lib/typescript/src/skia/web/{api/JsiSkRect.d.ts → JsiSkRect.d.ts} +2 -1
  716. package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +14 -0
  717. package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  718. package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +9 -0
  719. package/lib/typescript/src/skia/web/JsiSkShader.d.ts +6 -0
  720. package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
  721. package/lib/typescript/src/skia/web/{api/JsiSkSurface.d.ts → JsiSkSurface.d.ts} +1 -1
  722. package/lib/typescript/src/skia/web/{api/JsiSkSurfaceFactory.d.ts → JsiSkSurfaceFactory.d.ts} +1 -1
  723. package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +6 -0
  724. package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +12 -0
  725. package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +8 -0
  726. package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  727. package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +9 -0
  728. package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  729. package/lib/typescript/src/skia/web/JsiSkia.d.ts +3 -0
  730. package/lib/typescript/src/skia/web/index.d.ts +1 -1
  731. package/lib/typescript/src/views/SkiaView.web.d.ts +56 -0
  732. package/lib/typescript/src/views/types.d.ts +1 -0
  733. package/lib/typescript/src/views/useTouchHandler.d.ts +11 -1
  734. package/lib/typescript/src/web/index.d.ts +5 -0
  735. package/package.json +4 -5
  736. package/src/animation/functions/index.ts +4 -2
  737. package/src/animation/functions/interpolatePaths.ts +38 -0
  738. package/src/animation/functions/interpolateVector.ts +26 -0
  739. package/src/index.ts +1 -0
  740. package/src/renderer/Canvas.tsx +13 -35
  741. package/src/renderer/DrawingContext.ts +3 -4
  742. package/src/renderer/HostConfig.ts +2 -2
  743. package/src/renderer/components/Blend.tsx +12 -10
  744. package/src/renderer/components/Compose.tsx +2 -2
  745. package/src/renderer/components/Group.tsx +11 -6
  746. package/src/renderer/components/Mask.tsx +5 -3
  747. package/src/renderer/components/Paint.tsx +5 -4
  748. package/src/renderer/components/Picture.tsx +1 -1
  749. package/src/renderer/components/backdrop/BackdropFilter.tsx +1 -1
  750. package/src/renderer/components/colorFilters/BlendColor.tsx +4 -4
  751. package/src/renderer/components/colorFilters/Compose.ts +3 -2
  752. package/src/renderer/components/colorFilters/Lerp.tsx +3 -2
  753. package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +2 -3
  754. package/src/renderer/components/colorFilters/LumaColorFilter.tsx +2 -3
  755. package/src/renderer/components/colorFilters/Matrix.tsx +2 -3
  756. package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +2 -3
  757. package/src/renderer/components/image/BoxFit.ts +7 -13
  758. package/src/renderer/components/image/Image.tsx +3 -3
  759. package/src/renderer/components/image/ImageSVG.tsx +3 -3
  760. package/src/renderer/components/image/ImageShader.tsx +8 -7
  761. package/src/renderer/components/imageFilters/Blur.tsx +12 -10
  762. package/src/renderer/components/imageFilters/DisplacementMap.tsx +4 -4
  763. package/src/renderer/components/imageFilters/InnerShadow.tsx +4 -3
  764. package/src/renderer/components/imageFilters/Morphology.tsx +3 -4
  765. package/src/renderer/components/imageFilters/Offset.tsx +5 -4
  766. package/src/renderer/components/imageFilters/RuntimeShader.tsx +12 -4
  767. package/src/renderer/components/imageFilters/Shadow.tsx +10 -6
  768. package/src/renderer/components/imageFilters/getInput.ts +3 -2
  769. package/src/renderer/components/maskFilters/Blur.tsx +2 -2
  770. package/src/renderer/components/pathEffects/Corner.tsx +2 -2
  771. package/src/renderer/components/pathEffects/Dash.tsx +2 -2
  772. package/src/renderer/components/pathEffects/Discrete.tsx +2 -2
  773. package/src/renderer/components/pathEffects/Line2D.tsx +3 -3
  774. package/src/renderer/components/pathEffects/Path1D.tsx +3 -3
  775. package/src/renderer/components/pathEffects/Path2D.tsx +4 -4
  776. package/src/renderer/components/pathEffects/Sum.tsx +7 -5
  777. package/src/renderer/components/shaders/Color.tsx +7 -5
  778. package/src/renderer/components/shaders/FractalNoise.tsx +1 -2
  779. package/src/renderer/components/shaders/Gradient.ts +7 -10
  780. package/src/renderer/components/shaders/LinearGradient.tsx +4 -4
  781. package/src/renderer/components/shaders/RadialGradient.tsx +4 -4
  782. package/src/renderer/components/shaders/Shader.tsx +6 -56
  783. package/src/renderer/components/shaders/SweepGradient.tsx +4 -4
  784. package/src/renderer/components/shaders/Turbulence.tsx +1 -2
  785. package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +4 -4
  786. package/src/renderer/components/shapes/Box.tsx +36 -17
  787. package/src/renderer/components/shapes/Circle.tsx +3 -4
  788. package/src/renderer/components/shapes/DiffRect.tsx +1 -1
  789. package/src/renderer/components/shapes/FitBox.tsx +1 -1
  790. package/src/renderer/components/shapes/Line.tsx +2 -1
  791. package/src/renderer/components/shapes/Oval.tsx +6 -4
  792. package/src/renderer/components/shapes/Patch.tsx +6 -10
  793. package/src/renderer/components/shapes/Path.tsx +3 -3
  794. package/src/renderer/components/shapes/Points.tsx +2 -2
  795. package/src/renderer/components/shapes/Rect.tsx +6 -4
  796. package/src/renderer/components/shapes/RoundedRect.tsx +2 -2
  797. package/src/renderer/components/shapes/Vertices.tsx +5 -4
  798. package/src/renderer/components/text/Glyphs.tsx +6 -3
  799. package/src/renderer/components/text/Text.tsx +2 -2
  800. package/src/renderer/components/text/TextBlob.tsx +1 -1
  801. package/src/renderer/components/text/TextPath.tsx +3 -4
  802. package/src/renderer/index.ts +1 -1
  803. package/src/renderer/nodes/Declaration.tsx +1 -1
  804. package/src/renderer/nodes/Drawing.tsx +3 -2
  805. package/src/renderer/nodes/Node.ts +1 -1
  806. package/src/renderer/processors/Animations/Animations.ts +0 -3
  807. package/src/renderer/processors/Circles.ts +4 -4
  808. package/src/renderer/processors/Clips.ts +9 -4
  809. package/src/{skia/core → renderer/processors}/Color.ts +2 -3
  810. package/src/renderer/processors/Font.ts +10 -3
  811. package/src/renderer/processors/Paint.ts +12 -7
  812. package/src/renderer/processors/Paths.ts +3 -3
  813. package/src/renderer/processors/Radius.ts +3 -4
  814. package/src/renderer/processors/Rects.ts +10 -45
  815. package/src/renderer/processors/Transform.ts +28 -19
  816. package/src/renderer/processors/index.ts +2 -1
  817. package/src/renderer/processors/math/Coordinates.ts +1 -1
  818. package/src/renderer/processors/math/Transforms.ts +2 -1
  819. package/src/renderer/processors/math/index.ts +0 -2
  820. package/src/renderer/useCanvas.ts +21 -0
  821. package/src/skia/NativeSetup.ts +2 -2
  822. package/src/skia/Skia.web.ts +3 -0
  823. package/src/skia/core/Data.ts +17 -14
  824. package/src/skia/core/Font.ts +2 -4
  825. package/src/skia/core/Matrix.ts +6 -0
  826. package/src/skia/core/Paint.ts +2 -6
  827. package/src/skia/core/Path.ts +14 -6
  828. package/src/skia/core/RRect.tsx +5 -0
  829. package/src/skia/core/Rect.ts +33 -0
  830. package/src/skia/core/Vector.ts +11 -0
  831. package/src/skia/core/index.ts +5 -3
  832. package/src/skia/types/ContourMeasure.tsx +2 -4
  833. package/src/skia/types/Data/Data.ts +1 -1
  834. package/src/skia/types/Data/DataFactory.ts +4 -4
  835. package/src/skia/types/FontMgr/FontMgr.ts +1 -1
  836. package/src/skia/types/FontMgr/FontMgrFactory.ts +2 -2
  837. package/src/skia/types/Image/ImageFactory.ts +3 -3
  838. package/src/skia/types/Matrix.ts +79 -14
  839. package/src/skia/types/Path/Path.ts +34 -23
  840. package/src/skia/types/Path/PathFactory.ts +7 -0
  841. package/src/skia/types/Picture/Picture.ts +2 -2
  842. package/src/skia/types/Point.ts +2 -0
  843. package/src/skia/types/RRect.ts +5 -0
  844. package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +4 -2
  845. package/src/skia/types/SVG/SVGFactory.ts +2 -2
  846. package/src/skia/types/Shader/Shader.ts +61 -0
  847. package/src/skia/types/Skia.ts +1 -1
  848. package/src/skia/types/Typeface/TypefaceFactory.ts +2 -2
  849. package/src/skia/web/{api/Host.ts → Host.ts} +7 -1
  850. package/src/skia/web/JsiImageFilterFactory.ts +144 -0
  851. package/src/skia/web/{api/JsiSkCanvas.ts → JsiSkCanvas.ts} +19 -11
  852. package/src/skia/web/{api/JsiSkColor.ts → JsiSkColor.ts} +152 -6
  853. package/src/skia/web/{api/JsiSkColorFilter.ts → JsiSkColorFilter.ts} +1 -1
  854. package/src/skia/web/JsiSkColorFilterFactory.ts +67 -0
  855. package/src/skia/web/JsiSkContourMeasure.ts +35 -0
  856. package/src/skia/web/JsiSkContourMeasureIter.ts +23 -0
  857. package/src/skia/web/JsiSkData.ts +13 -0
  858. package/src/skia/web/JsiSkDataFactory.ts +35 -0
  859. package/src/skia/web/JsiSkFont.ts +124 -0
  860. package/src/skia/web/JsiSkFontMgr.ts +42 -0
  861. package/src/skia/web/JsiSkFontMgrFactory.ts +18 -0
  862. package/src/skia/web/{api/JsiSkImage.ts → JsiSkImage.ts} +1 -1
  863. package/src/skia/web/JsiSkImageFactory.ts +40 -0
  864. package/src/skia/web/JsiSkImageFilter.ts +14 -0
  865. package/src/skia/web/JsiSkMaskFilter.ts +14 -0
  866. package/src/skia/web/JsiSkMaskFilterFactory.ts +20 -0
  867. package/src/skia/web/JsiSkMatrix.ts +54 -0
  868. package/src/skia/web/{api/JsiSkPaint.ts → JsiSkPaint.ts} +6 -5
  869. package/src/skia/web/JsiSkPath.ts +369 -0
  870. package/src/skia/web/JsiSkPathEffect.ts +14 -0
  871. package/src/skia/web/JsiSkPathEffectFactory.ts +85 -0
  872. package/src/skia/web/JsiSkPathFactory.ts +54 -0
  873. package/src/skia/web/JsiSkPicture.ts +45 -0
  874. package/src/skia/web/JsiSkPictureFactory.ts +20 -0
  875. package/src/skia/web/JsiSkPictureRecorder.ts +31 -0
  876. package/src/skia/web/JsiSkPoint.ts +19 -0
  877. package/src/skia/web/JsiSkRRect.ts +27 -0
  878. package/src/skia/web/JsiSkRSXform.ts +16 -0
  879. package/src/skia/web/{api/JsiSkRect.ts → JsiSkRect.ts} +11 -1
  880. package/src/skia/web/JsiSkRuntimeEffect.ts +57 -0
  881. package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
  882. package/src/skia/web/JsiSkSVGFactory.ts +20 -0
  883. package/src/skia/web/JsiSkShader.ts +14 -0
  884. package/src/skia/web/JsiSkShaderFactory.ts +178 -0
  885. package/src/skia/web/{api/JsiSkSurface.ts → JsiSkSurface.ts} +1 -1
  886. package/src/skia/web/{api/JsiSkSurfaceFactory.ts → JsiSkSurfaceFactory.ts} +1 -1
  887. package/src/skia/web/JsiSkTextBlob.ts +14 -0
  888. package/src/skia/web/JsiSkTextBlobFactory.ts +49 -0
  889. package/src/skia/web/JsiSkTypeface.ts +28 -0
  890. package/src/skia/web/JsiSkTypefaceFactory.tsx +20 -0
  891. package/src/skia/web/JsiSkVertices.ts +23 -0
  892. package/src/skia/web/JsiSkVerticesFactory.ts +27 -0
  893. package/src/skia/web/JsiSkia.ts +98 -0
  894. package/src/skia/web/index.ts +1 -1
  895. package/src/values/web/api.ts +2 -2
  896. package/src/views/SkiaView.web.tsx +192 -0
  897. package/src/views/types.ts +1 -0
  898. package/src/views/useTouchHandler.ts +82 -51
  899. package/src/web/index.ts +13 -0
  900. package/lib/commonjs/renderer/processors/math/Matrix3.js +0 -66
  901. package/lib/commonjs/renderer/processors/math/Matrix3.js.map +0 -1
  902. package/lib/commonjs/renderer/processors/math/Vector.js +0 -60
  903. package/lib/commonjs/renderer/processors/math/Vector.js.map +0 -1
  904. package/lib/commonjs/skia/core/Color.js.map +0 -1
  905. package/lib/commonjs/skia/core/Shader.js +0 -18
  906. package/lib/commonjs/skia/core/Shader.js.map +0 -1
  907. package/lib/commonjs/skia/web/api/Host.js.map +0 -1
  908. package/lib/commonjs/skia/web/api/JsiSkCanvas.js.map +0 -1
  909. package/lib/commonjs/skia/web/api/JsiSkColor.js.map +0 -1
  910. package/lib/commonjs/skia/web/api/JsiSkPaint.js.map +0 -1
  911. package/lib/commonjs/skia/web/api/JsiSkRect.js.map +0 -1
  912. package/lib/commonjs/skia/web/api/index.js +0 -26
  913. package/lib/commonjs/skia/web/api/index.js.map +0 -1
  914. package/lib/module/renderer/processors/math/Matrix3.js +0 -55
  915. package/lib/module/renderer/processors/math/Matrix3.js.map +0 -1
  916. package/lib/module/renderer/processors/math/Vector.js.map +0 -1
  917. package/lib/module/skia/core/Color.js.map +0 -1
  918. package/lib/module/skia/core/Shader.js +0 -7
  919. package/lib/module/skia/core/Shader.js.map +0 -1
  920. package/lib/module/skia/web/api/Host.js.map +0 -1
  921. package/lib/module/skia/web/api/JsiSkCanvas.js.map +0 -1
  922. package/lib/module/skia/web/api/JsiSkColor.js.map +0 -1
  923. package/lib/module/skia/web/api/JsiSkPaint.js.map +0 -1
  924. package/lib/module/skia/web/api/JsiSkRect.js.map +0 -1
  925. package/lib/module/skia/web/api/index.js +0 -13
  926. package/lib/module/skia/web/api/index.js.map +0 -1
  927. package/lib/typescript/src/renderer/processors/math/Matrix3.d.ts +0 -10
  928. package/lib/typescript/src/renderer/processors/math/Vector.d.ts +0 -23
  929. package/lib/typescript/src/skia/core/Shader.d.ts +0 -1
  930. package/lib/typescript/src/skia/web/api/JsiSkColor.d.ts +0 -3
  931. package/lib/typescript/src/skia/web/api/index.d.ts +0 -10
  932. package/src/animation/timing/functions/__tests__/timing.spec.ts +0 -29
  933. package/src/renderer/processors/math/Matrix3.ts +0 -73
  934. package/src/renderer/processors/math/Vector.ts +0 -38
  935. package/src/skia/__tests__/Rects.spec.ts +0 -40
  936. package/src/skia/__tests__/snapshots/lightblue-rect.png +0 -0
  937. package/src/skia/core/Shader.ts +0 -9
  938. package/src/skia/web/api/index.ts +0 -15
  939. package/src/values/web/__tests__/RNSkAnimation.spec.ts +0 -21
  940. package/src/values/web/__tests__/RNSkDerivedValue.spec.ts +0 -15
  941. package/src/values/web/__tests__/RNSkReadonlyValue.spec.ts +0 -8
  942. package/src/values/web/__tests__/RNSkValue.spec.ts +0 -11
@@ -1 +1 @@
1
- {"version":3,"sources":["ImageSVG.tsx"],"names":["onDraw","canvas","svg","rectProps","x","y","width","height","save","translate","drawSvg","restore","ImageSVG","props"],"mappings":";;;;;;;AAAA;;AAGA;;AAEA;;;;;;AAMA,MAAMA,MAAM,GAAG,0BACb,iBAAuC;AAAA,MAAtC;AAAEC,IAAAA;AAAF,GAAsC;AAAA,MAA1B;AAAEC,IAAAA,GAAF;AAAO,OAAGC;AAAV,GAA0B;AACrC,QAAM;AAAEC,IAAAA,CAAF;AAAKC,IAAAA,CAAL;AAAQC,IAAAA,KAAR;AAAeC,IAAAA;AAAf,MAA0B,6BAAYJ,SAAZ,CAAhC;AACAF,EAAAA,MAAM,CAACO,IAAP;AACAP,EAAAA,MAAM,CAACQ,SAAP,CAAiBL,CAAjB,EAAoBC,CAApB;AACAJ,EAAAA,MAAM,CAACS,OAAP,CAAeR,GAAf,EAAoBI,KAApB,EAA2BC,MAA3B;AACAN,EAAAA,MAAM,CAACU,OAAP;AACD,CAPY,CAAf;;AAUO,MAAMC,QAAQ,GAAIC,KAAD,IAAyC;AAC/D,sBAAO;AAAW,IAAA,MAAM,EAAEb;AAAnB,KAA+Ba,KAA/B,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkSVG } from \"../../../skia\";\nimport { createDrawing } from \"../../nodes\";\nimport type { AnimatedProps, RectDef } from \"../../processors\";\nimport { processRect } from \"../../processors\";\n\nexport type ImageSVGProps = RectDef & {\n svg: SkSVG;\n};\n\nconst onDraw = createDrawing<ImageSVGProps>(\n ({ canvas }, { svg, ...rectProps }) => {\n const { x, y, width, height } = processRect(rectProps);\n canvas.save();\n canvas.translate(x, y);\n canvas.drawSvg(svg, width, height);\n canvas.restore();\n }\n);\n\nexport const ImageSVG = (props: AnimatedProps<ImageSVGProps>) => {\n return <skDrawing onDraw={onDraw} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["ImageSVG.tsx"],"names":["onDraw","canvas","Skia","svg","rectProps","x","y","width","height","save","translate","drawSvg","restore","ImageSVG","props"],"mappings":";;;;;;;AAAA;;AAGA;;AAEA;;;;;;AAMA,MAAMA,MAAM,GAAG,0BACb,iBAA6C;AAAA,MAA5C;AAAEC,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAA4C;AAAA,MAA1B;AAAEC,IAAAA,GAAF;AAAO,OAAGC;AAAV,GAA0B;AAC3C,QAAM;AAAEC,IAAAA,CAAF;AAAKC,IAAAA,CAAL;AAAQC,IAAAA,KAAR;AAAeC,IAAAA;AAAf,MAA0B,6BAAYN,IAAZ,EAAkBE,SAAlB,CAAhC;AACAH,EAAAA,MAAM,CAACQ,IAAP;AACAR,EAAAA,MAAM,CAACS,SAAP,CAAiBL,CAAjB,EAAoBC,CAApB;AACAL,EAAAA,MAAM,CAACU,OAAP,CAAeR,GAAf,EAAoBI,KAApB,EAA2BC,MAA3B;AACAP,EAAAA,MAAM,CAACW,OAAP;AACD,CAPY,CAAf;;AAUO,MAAMC,QAAQ,GAAIC,KAAD,IAAyC;AAC/D,sBAAO;AAAW,IAAA,MAAM,EAAEd;AAAnB,KAA+Bc,KAA/B,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport type { SkSVG } from \"../../../skia/types\";\nimport { createDrawing } from \"../../nodes\";\nimport type { AnimatedProps, RectDef } from \"../../processors\";\nimport { processRect } from \"../../processors\";\n\nexport type ImageSVGProps = RectDef & {\n svg: SkSVG;\n};\n\nconst onDraw = createDrawing<ImageSVGProps>(\n ({ canvas, Skia }, { svg, ...rectProps }) => {\n const { x, y, width, height } = processRect(Skia, rectProps);\n canvas.save();\n canvas.translate(x, y);\n canvas.drawSvg(svg, width, height);\n canvas.restore();\n }\n);\n\nexport const ImageSVG = (props: AnimatedProps<ImageSVGProps>) => {\n return <skDrawing onDraw={onDraw} {...props} />;\n};\n"]}
@@ -7,7 +7,7 @@ exports.ImageShader = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _skia = require("../../../skia");
10
+ var _types = require("../../../skia/types");
11
11
 
12
12
  var _nodes = require("../../nodes");
13
13
 
@@ -19,7 +19,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
19
19
 
20
20
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
 
22
- const getRect = props => {
22
+ const getRect = (Skia, props) => {
23
23
  const {
24
24
  x,
25
25
  y,
@@ -30,13 +30,13 @@ const getRect = props => {
30
30
  if (props.rect) {
31
31
  return props.rect;
32
32
  } else if (x !== undefined && y !== undefined && width !== undefined && height !== undefined) {
33
- return (0, _processors.rect)(x, y, width, height);
33
+ return Skia.XYWHRect(x, y, width, height);
34
34
  } else {
35
35
  return undefined;
36
36
  }
37
37
  };
38
38
 
39
- const onDeclare = (0, _nodes.createDeclaration)(_ref => {
39
+ const onDeclare = (0, _nodes.createDeclaration)((_ref, _, _ref2) => {
40
40
  let {
41
41
  tx,
42
42
  ty,
@@ -46,7 +46,10 @@ const onDeclare = (0, _nodes.createDeclaration)(_ref => {
46
46
  image,
47
47
  ...imageShaderProps
48
48
  } = _ref;
49
- const rct = getRect(imageShaderProps);
49
+ let {
50
+ Skia
51
+ } = _ref2;
52
+ const rct = getRect(Skia, imageShaderProps);
50
53
 
51
54
  if (rct) {
52
55
  var _imageShaderProps$tra;
@@ -61,7 +64,7 @@ const onDeclare = (0, _nodes.createDeclaration)(_ref => {
61
64
  imageShaderProps.transform = [...((_imageShaderProps$tra = imageShaderProps.transform) !== null && _imageShaderProps$tra !== void 0 ? _imageShaderProps$tra : []), ...m3];
62
65
  }
63
66
 
64
- return image.makeShaderOptions(_skia.TileMode[(0, _processors.enumKey)(tx)], _skia.TileMode[(0, _processors.enumKey)(ty)], _skia.FilterMode[(0, _processors.enumKey)(fm)], _skia.MipmapMode[(0, _processors.enumKey)(mm)], (0, _processors.localMatrix)(imageShaderProps));
67
+ return image.makeShaderOptions(_types.TileMode[(0, _processors.enumKey)(tx)], _types.TileMode[(0, _processors.enumKey)(ty)], _types.FilterMode[(0, _processors.enumKey)(fm)], _types.MipmapMode[(0, _processors.enumKey)(mm)], (0, _processors.localMatrix)(Skia.Matrix(), imageShaderProps));
65
68
  });
66
69
 
67
70
  const ImageShader = props => {
@@ -1 +1 @@
1
- {"version":3,"sources":["ImageShader.tsx"],"names":["getRect","props","x","y","width","height","rect","undefined","onDeclare","tx","ty","fm","mm","fit","image","imageShaderProps","rct","rects","m3","src","dst","transform","makeShaderOptions","TileMode","FilterMode","MipmapMode","ImageShader","defaultProps"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AAOA;;AAGA;;;;;;AAEA,MAAMA,OAAO,GACXC,KADc,IAES;AACvB,QAAM;AAAEC,IAAAA,CAAF;AAAKC,IAAAA,CAAL;AAAQC,IAAAA,KAAR;AAAeC,IAAAA;AAAf,MAA0BJ,KAAhC;;AACA,MAAIA,KAAK,CAACK,IAAV,EAAgB;AACd,WAAOL,KAAK,CAACK,IAAb;AACD,GAFD,MAEO,IACLJ,CAAC,KAAKK,SAAN,IACAJ,CAAC,KAAKI,SADN,IAEAH,KAAK,KAAKG,SAFV,IAGAF,MAAM,KAAKE,SAJN,EAKL;AACA,WAAO,sBAAKL,CAAL,EAAQC,CAAR,EAAWC,KAAX,EAAkBC,MAAlB,CAAP;AACD,GAPM,MAOA;AACL,WAAOE,SAAP;AACD;AACF,CAhBD;;AA4BA,MAAMC,SAAS,GAAG,8BAChB,QAAyD;AAAA,MAAxD;AAAEC,IAAAA,EAAF;AAAMC,IAAAA,EAAN;AAAUC,IAAAA,EAAV;AAAcC,IAAAA,EAAd;AAAkBC,IAAAA,GAAlB;AAAuBC,IAAAA,KAAvB;AAA8B,OAAGC;AAAjC,GAAwD;AACvD,QAAMC,GAAG,GAAGhB,OAAO,CAACe,gBAAD,CAAnB;;AACA,MAAIC,GAAJ,EAAS;AAAA;;AACP,UAAMC,KAAK,GAAG,sBACZJ,GADY,EAEZ;AAAEX,MAAAA,CAAC,EAAE,CAAL;AAAQC,MAAAA,CAAC,EAAE,CAAX;AAAcC,MAAAA,KAAK,EAAEU,KAAK,CAACV,KAAN,EAArB;AAAoCC,MAAAA,MAAM,EAAES,KAAK,CAACT,MAAN;AAA5C,KAFY,EAGZW,GAHY,CAAd;AAKA,UAAME,EAAE,GAAG,uBAAUD,KAAK,CAACE,GAAhB,EAAqBF,KAAK,CAACG,GAA3B,CAAX;AACAL,IAAAA,gBAAgB,CAACM,SAAjB,GAA6B,CAC3B,6BAAIN,gBAAgB,CAACM,SAArB,yEAAkC,EAAlC,CAD2B,EAE3B,GAAGH,EAFwB,CAA7B;AAID;;AACD,SAAOJ,KAAK,CAACQ,iBAAN,CACLC,eAAS,yBAAQd,EAAR,CAAT,CADK,EAELc,eAAS,yBAAQb,EAAR,CAAT,CAFK,EAGLc,iBAAW,yBAAQb,EAAR,CAAX,CAHK,EAILc,iBAAW,yBAAQb,EAAR,CAAX,CAJK,EAKL,6BAAYG,gBAAZ,CALK,CAAP;AAOD,CAtBe,CAAlB;;AAyBO,MAAMW,WAAW,GAAIzB,KAAD,IAA4C;AACrE,sBAAO;AAAe,IAAA,SAAS,EAAEO;AAA1B,KAAyCP,KAAzC,EAAP;AACD,CAFM;;;AAIPyB,WAAW,CAACC,YAAZ,GAA2B;AACzBlB,EAAAA,EAAE,EAAE,OADqB;AAEzBC,EAAAA,EAAE,EAAE,OAFqB;AAGzBC,EAAAA,EAAE,EAAE,SAHqB;AAIzBC,EAAAA,EAAE,EAAE,MAJqB;AAKzBC,EAAAA,GAAG,EAAE,MALoB;AAMzBQ,EAAAA,SAAS,EAAE;AANc,CAA3B","sourcesContent":["import React from \"react\";\n\nimport type { SkRect, SkImage } from \"../../../skia\";\nimport { TileMode, FilterMode, MipmapMode } from \"../../../skia\";\nimport { createDeclaration } from \"../../nodes\";\nimport type {\n TransformProps,\n SkEnum,\n AnimatedProps,\n RectCtor,\n} from \"../../processors\";\nimport { localMatrix, enumKey, rect } from \"../../processors\";\n\nimport type { Fit } from \"./BoxFit\";\nimport { rect2rect, fitRects } from \"./BoxFit\";\n\nconst getRect = (\n props: Omit<ImageShaderProps, \"tx\" | \"ty\" | \"fm\" | \"mm\" | \"fit\" | \"image\">\n): SkRect | undefined => {\n const { x, y, width, height } = props;\n if (props.rect) {\n return props.rect;\n } else if (\n x !== undefined &&\n y !== undefined &&\n width !== undefined &&\n height !== undefined\n ) {\n return rect(x, y, width, height);\n } else {\n return undefined;\n }\n};\n\ninterface ImageShaderProps extends TransformProps, Partial<RectCtor> {\n tx: SkEnum<typeof TileMode>;\n ty: SkEnum<typeof TileMode>;\n fm: SkEnum<typeof FilterMode>;\n mm: SkEnum<typeof MipmapMode>;\n fit: Fit;\n rect?: SkRect;\n image: SkImage;\n}\n\nconst onDeclare = createDeclaration<ImageShaderProps>(\n ({ tx, ty, fm, mm, fit, image, ...imageShaderProps }) => {\n const rct = getRect(imageShaderProps);\n if (rct) {\n const rects = fitRects(\n fit,\n { x: 0, y: 0, width: image.width(), height: image.height() },\n rct\n );\n const m3 = rect2rect(rects.src, rects.dst);\n imageShaderProps.transform = [\n ...(imageShaderProps.transform ?? []),\n ...m3,\n ];\n }\n return image.makeShaderOptions(\n TileMode[enumKey(tx)],\n TileMode[enumKey(ty)],\n FilterMode[enumKey(fm)],\n MipmapMode[enumKey(mm)],\n localMatrix(imageShaderProps)\n );\n }\n);\n\nexport const ImageShader = (props: AnimatedProps<ImageShaderProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nImageShader.defaultProps = {\n tx: \"decal\",\n ty: \"decal\",\n fm: \"nearest\",\n mm: \"none\",\n fit: \"none\",\n transform: [],\n} as const;\n"]}
1
+ {"version":3,"sources":["ImageShader.tsx"],"names":["getRect","Skia","props","x","y","width","height","rect","undefined","XYWHRect","onDeclare","_","tx","ty","fm","mm","fit","image","imageShaderProps","rct","rects","m3","src","dst","transform","makeShaderOptions","TileMode","FilterMode","MipmapMode","Matrix","ImageShader","defaultProps"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AAOA;;AAGA;;;;;;AAEA,MAAMA,OAAO,GAAG,CACdC,IADc,EAEdC,KAFc,KAGS;AACvB,QAAM;AAAEC,IAAAA,CAAF;AAAKC,IAAAA,CAAL;AAAQC,IAAAA,KAAR;AAAeC,IAAAA;AAAf,MAA0BJ,KAAhC;;AACA,MAAIA,KAAK,CAACK,IAAV,EAAgB;AACd,WAAOL,KAAK,CAACK,IAAb;AACD,GAFD,MAEO,IACLJ,CAAC,KAAKK,SAAN,IACAJ,CAAC,KAAKI,SADN,IAEAH,KAAK,KAAKG,SAFV,IAGAF,MAAM,KAAKE,SAJN,EAKL;AACA,WAAOP,IAAI,CAACQ,QAAL,CAAcN,CAAd,EAAiBC,CAAjB,EAAoBC,KAApB,EAA2BC,MAA3B,CAAP;AACD,GAPM,MAOA;AACL,WAAOE,SAAP;AACD;AACF,CAjBD;;AA6BA,MAAME,SAAS,GAAG,8BAChB,OAAsDC,CAAtD,YAAsE;AAAA,MAArE;AAAEC,IAAAA,EAAF;AAAMC,IAAAA,EAAN;AAAUC,IAAAA,EAAV;AAAcC,IAAAA,EAAd;AAAkBC,IAAAA,GAAlB;AAAuBC,IAAAA,KAAvB;AAA8B,OAAGC;AAAjC,GAAqE;AAAA,MAAb;AAAEjB,IAAAA;AAAF,GAAa;AACpE,QAAMkB,GAAG,GAAGnB,OAAO,CAACC,IAAD,EAAOiB,gBAAP,CAAnB;;AACA,MAAIC,GAAJ,EAAS;AAAA;;AACP,UAAMC,KAAK,GAAG,sBACZJ,GADY,EAEZ;AAAEb,MAAAA,CAAC,EAAE,CAAL;AAAQC,MAAAA,CAAC,EAAE,CAAX;AAAcC,MAAAA,KAAK,EAAEY,KAAK,CAACZ,KAAN,EAArB;AAAoCC,MAAAA,MAAM,EAAEW,KAAK,CAACX,MAAN;AAA5C,KAFY,EAGZa,GAHY,CAAd;AAKA,UAAME,EAAE,GAAG,uBAAUD,KAAK,CAACE,GAAhB,EAAqBF,KAAK,CAACG,GAA3B,CAAX;AACAL,IAAAA,gBAAgB,CAACM,SAAjB,GAA6B,CAC3B,6BAAIN,gBAAgB,CAACM,SAArB,yEAAkC,EAAlC,CAD2B,EAE3B,GAAGH,EAFwB,CAA7B;AAID;;AACD,SAAOJ,KAAK,CAACQ,iBAAN,CACLC,gBAAS,yBAAQd,EAAR,CAAT,CADK,EAELc,gBAAS,yBAAQb,EAAR,CAAT,CAFK,EAGLc,kBAAW,yBAAQb,EAAR,CAAX,CAHK,EAILc,kBAAW,yBAAQb,EAAR,CAAX,CAJK,EAKL,6BAAYd,IAAI,CAAC4B,MAAL,EAAZ,EAA2BX,gBAA3B,CALK,CAAP;AAOD,CAtBe,CAAlB;;AAyBO,MAAMY,WAAW,GAAI5B,KAAD,IAA4C;AACrE,sBAAO;AAAe,IAAA,SAAS,EAAEQ;AAA1B,KAAyCR,KAAzC,EAAP;AACD,CAFM;;;AAIP4B,WAAW,CAACC,YAAZ,GAA2B;AACzBnB,EAAAA,EAAE,EAAE,OADqB;AAEzBC,EAAAA,EAAE,EAAE,OAFqB;AAGzBC,EAAAA,EAAE,EAAE,SAHqB;AAIzBC,EAAAA,EAAE,EAAE,MAJqB;AAKzBC,EAAAA,GAAG,EAAE,MALoB;AAMzBQ,EAAAA,SAAS,EAAE;AANc,CAA3B","sourcesContent":["import React from \"react\";\n\nimport type { SkRect, SkImage, Skia } from \"../../../skia/types\";\nimport { TileMode, FilterMode, MipmapMode } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes\";\nimport type {\n TransformProps,\n SkEnum,\n AnimatedProps,\n RectCtor,\n} from \"../../processors\";\nimport { localMatrix, enumKey } from \"../../processors\";\n\nimport type { Fit } from \"./BoxFit\";\nimport { rect2rect, fitRects } from \"./BoxFit\";\n\nconst getRect = (\n Skia: Skia,\n props: Omit<ImageShaderProps, \"tx\" | \"ty\" | \"fm\" | \"mm\" | \"fit\" | \"image\">\n): SkRect | undefined => {\n const { x, y, width, height } = props;\n if (props.rect) {\n return props.rect;\n } else if (\n x !== undefined &&\n y !== undefined &&\n width !== undefined &&\n height !== undefined\n ) {\n return Skia.XYWHRect(x, y, width, height);\n } else {\n return undefined;\n }\n};\n\ninterface ImageShaderProps extends TransformProps, Partial<RectCtor> {\n tx: SkEnum<typeof TileMode>;\n ty: SkEnum<typeof TileMode>;\n fm: SkEnum<typeof FilterMode>;\n mm: SkEnum<typeof MipmapMode>;\n fit: Fit;\n rect?: SkRect;\n image: SkImage;\n}\n\nconst onDeclare = createDeclaration<ImageShaderProps>(\n ({ tx, ty, fm, mm, fit, image, ...imageShaderProps }, _, { Skia }) => {\n const rct = getRect(Skia, imageShaderProps);\n if (rct) {\n const rects = fitRects(\n fit,\n { x: 0, y: 0, width: image.width(), height: image.height() },\n rct\n );\n const m3 = rect2rect(rects.src, rects.dst);\n imageShaderProps.transform = [\n ...(imageShaderProps.transform ?? []),\n ...m3,\n ];\n }\n return image.makeShaderOptions(\n TileMode[enumKey(tx)],\n TileMode[enumKey(ty)],\n FilterMode[enumKey(fm)],\n MipmapMode[enumKey(mm)],\n localMatrix(Skia.Matrix(), imageShaderProps)\n );\n }\n);\n\nexport const ImageShader = (props: AnimatedProps<ImageShaderProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nImageShader.defaultProps = {\n tx: \"decal\",\n ty: \"decal\",\n fm: \"nearest\",\n mm: \"none\",\n fit: \"none\",\n transform: [],\n} as const;\n"]}
@@ -7,7 +7,7 @@ exports.Blur = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _skia = require("../../../skia");
10
+ var _types = require("../../../skia/types");
11
11
 
12
12
  var _processors = require("../../processors");
13
13
 
@@ -21,13 +21,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
21
21
 
22
22
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
23
 
24
- const onDeclare = (0, _nodes.createDeclaration)((_ref, children) => {
24
+ const onDeclare = (0, _nodes.createDeclaration)((_ref, children, _ref2) => {
25
25
  let {
26
26
  blur,
27
27
  mode
28
28
  } = _ref;
29
- const sigma = (0, _Radius.processRadius)(blur);
30
- return _skia.Skia.ImageFilter.MakeBlur(sigma.x, sigma.y, _skia.TileMode[(0, _processors.enumKey)(mode)], (0, _getInput.getInput)(children));
29
+ let {
30
+ Skia
31
+ } = _ref2;
32
+ const sigma = (0, _Radius.processRadius)(Skia, blur);
33
+ return Skia.ImageFilter.MakeBlur(sigma.x, sigma.y, _types.TileMode[(0, _processors.enumKey)(mode)], (0, _getInput.getInput)(Skia, children));
31
34
  });
32
35
 
33
36
  const Blur = props => {
@@ -1 +1 @@
1
- {"version":3,"sources":["Blur.tsx"],"names":["onDeclare","children","blur","mode","sigma","Skia","ImageFilter","MakeBlur","x","y","TileMode","Blur","props","defaultProps"],"mappings":";;;;;;;AAAA;;AAGA;;AAEA;;AAEA;;AACA;;AAEA;;;;;;AAQA,MAAMA,SAAS,GAAG,8BAA6B,OAAiBC,QAAjB,KAA8B;AAAA,MAA7B;AAAEC,IAAAA,IAAF;AAAQC,IAAAA;AAAR,GAA6B;AAC3E,QAAMC,KAAK,GAAG,2BAAcF,IAAd,CAAd;AACA,SAAOG,WAAKC,WAAL,CAAiBC,QAAjB,CACLH,KAAK,CAACI,CADD,EAELJ,KAAK,CAACK,CAFD,EAGLC,eAAS,yBAAQP,IAAR,CAAT,CAHK,EAIL,wBAASF,QAAT,CAJK,CAAP;AAMD,CARiB,CAAlB;;AAUO,MAAMU,IAAI,GAAIC,KAAD,IAAqC;AACvD,sBAAO;AAAe,IAAA,SAAS,EAAEZ;AAA1B,KAAyCY,KAAzC,EAAP;AACD,CAFM;;;AAIPD,IAAI,CAACE,YAAL,GAAoB;AAClBV,EAAAA,IAAI,EAAE;AADY,CAApB","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { Skia, TileMode } from \"../../../skia\";\nimport type { Radius, SkEnum } from \"../../processors\";\nimport { enumKey } from \"../../processors\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport { processRadius } from \"../../processors/Radius\";\nimport { createDeclaration } from \"../../nodes\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface BlurProps {\n blur: Radius;\n mode: SkEnum<typeof TileMode>;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<BlurProps>(({ blur, mode }, children) => {\n const sigma = processRadius(blur);\n return Skia.ImageFilter.MakeBlur(\n sigma.x,\n sigma.y,\n TileMode[enumKey(mode)],\n getInput(children)\n );\n});\n\nexport const Blur = (props: AnimatedProps<BlurProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nBlur.defaultProps = {\n mode: \"decal\",\n};\n"]}
1
+ {"version":3,"sources":["Blur.tsx"],"names":["onDeclare","children","blur","mode","Skia","sigma","ImageFilter","MakeBlur","x","y","TileMode","Blur","props","defaultProps"],"mappings":";;;;;;;AAAA;;AAGA;;AAEA;;AAEA;;AACA;;AAEA;;;;;;AAQA,MAAMA,SAAS,GAAG,8BAChB,OAAiBC,QAAjB,YAAwC;AAAA,MAAvC;AAAEC,IAAAA,IAAF;AAAQC,IAAAA;AAAR,GAAuC;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACtC,QAAMC,KAAK,GAAG,2BAAcD,IAAd,EAAoBF,IAApB,CAAd;AACA,SAAOE,IAAI,CAACE,WAAL,CAAiBC,QAAjB,CACLF,KAAK,CAACG,CADD,EAELH,KAAK,CAACI,CAFD,EAGLC,gBAAS,yBAAQP,IAAR,CAAT,CAHK,EAIL,wBAASC,IAAT,EAAeH,QAAf,CAJK,CAAP;AAMD,CATe,CAAlB;;AAYO,MAAMU,IAAI,GAAIC,KAAD,IAAqC;AACvD,sBAAO;AAAe,IAAA,SAAS,EAAEZ;AAA1B,KAAyCY,KAAzC,EAAP;AACD,CAFM;;;AAIPD,IAAI,CAACE,YAAL,GAAoB;AAClBV,EAAAA,IAAI,EAAE;AADY,CAApB","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { TileMode } from \"../../../skia/types\";\nimport type { Radius, SkEnum } from \"../../processors\";\nimport { enumKey } from \"../../processors\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport { processRadius } from \"../../processors/Radius\";\nimport { createDeclaration } from \"../../nodes\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface BlurProps {\n blur: Radius;\n mode: SkEnum<typeof TileMode>;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<BlurProps>(\n ({ blur, mode }, children, { Skia }) => {\n const sigma = processRadius(Skia, blur);\n return Skia.ImageFilter.MakeBlur(\n sigma.x,\n sigma.y,\n TileMode[enumKey(mode)],\n getInput(Skia, children)\n );\n }\n);\n\nexport const Blur = (props: AnimatedProps<BlurProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nBlur.defaultProps = {\n mode: \"decal\",\n};\n"]}
@@ -7,7 +7,7 @@ exports.DisplacementMap = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _skia = require("../../../skia");
10
+ var _types = require("../../../skia/types");
11
11
 
12
12
  var _nodes = require("../../nodes");
13
13
 
@@ -19,26 +19,29 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
19
19
 
20
20
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
 
22
- const onDeclare = (0, _nodes.createDeclaration)((_ref, children) => {
22
+ const onDeclare = (0, _nodes.createDeclaration)((_ref, children, _ref2) => {
23
23
  let {
24
24
  channelX,
25
25
  channelY,
26
26
  scale
27
27
  } = _ref;
28
+ let {
29
+ Skia
30
+ } = _ref2;
28
31
  const [in1, in2] = children.filter(c => !!c);
29
32
 
30
- const x = _skia.ColorChannel[(0, _processors.enumKey)(channelX)];
33
+ const x = _types.ColorChannel[(0, _processors.enumKey)(channelX)];
31
34
 
32
- const y = _skia.ColorChannel[(0, _processors.enumKey)(channelY)];
35
+ const y = _types.ColorChannel[(0, _processors.enumKey)(channelY)];
33
36
 
34
- const map = (0, _getInput.getInput)([in1]);
35
- const input = in2 ? (0, _getInput.getInput)([in2]) : null;
37
+ const map = (0, _getInput.getInput)(Skia, [in1]);
38
+ const input = in2 ? (0, _getInput.getInput)(Skia, [in2]) : null;
36
39
 
37
40
  if (!map) {
38
41
  throw new Error("No DisplacementMap provided");
39
42
  }
40
43
 
41
- return _skia.Skia.ImageFilter.MakeDisplacementMap(x, y, scale, map, input);
44
+ return Skia.ImageFilter.MakeDisplacementMap(x, y, scale, map, input);
42
45
  });
43
46
 
44
47
  const DisplacementMap = props => {
@@ -1 +1 @@
1
- {"version":3,"sources":["DisplacementMap.tsx"],"names":["onDeclare","children","channelX","channelY","scale","in1","in2","filter","c","x","ColorChannel","y","map","input","Error","Skia","ImageFilter","MakeDisplacementMap","DisplacementMap","props"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AAEA;;AAEA;;;;;;AASA,MAAMA,SAAS,GAAG,8BAChB,OAAgCC,QAAhC,KAA6C;AAAA,MAA5C;AAAEC,IAAAA,QAAF;AAAYC,IAAAA,QAAZ;AAAsBC,IAAAA;AAAtB,GAA4C;AAC3C,QAAM,CAACC,GAAD,EAAMC,GAAN,IAAaL,QAAQ,CAACM,MAAT,CAAiBC,CAAD,IAAO,CAAC,CAACA,CAAzB,CAAnB;;AACA,QAAMC,CAAC,GAAGC,mBAAa,yBAAQR,QAAR,CAAb,CAAV;;AACA,QAAMS,CAAC,GAAGD,mBAAa,yBAAQP,QAAR,CAAb,CAAV;;AACA,QAAMS,GAAG,GAAG,wBAAS,CAACP,GAAD,CAAT,CAAZ;AACA,QAAMQ,KAAK,GAAGP,GAAG,GAAG,wBAAS,CAACA,GAAD,CAAT,CAAH,GAAqB,IAAtC;;AACA,MAAI,CAACM,GAAL,EAAU;AACR,UAAM,IAAIE,KAAJ,CAAU,6BAAV,CAAN;AACD;;AACD,SAAOC,WAAKC,WAAL,CAAiBC,mBAAjB,CAAqCR,CAArC,EAAwCE,CAAxC,EAA2CP,KAA3C,EAAkDQ,GAAlD,EAAuDC,KAAvD,CAAP;AACD,CAXe,CAAlB;;AAcO,MAAMK,eAAe,GAAIC,KAAD,IAAgD;AAC7E,sBAAO;AAAe,IAAA,SAAS,EAAEnB;AAA1B,KAAyCmB,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { Skia, ColorChannel } from \"../../../skia\";\nimport { createDeclaration } from \"../../nodes\";\nimport type { SkEnum, AnimatedProps } from \"../../processors\";\nimport { enumKey } from \"../../processors\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface DisplacementMapProps {\n channelX: SkEnum<typeof ColorChannel>;\n channelY: SkEnum<typeof ColorChannel>;\n scale: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<DisplacementMapProps>(\n ({ channelX, channelY, scale }, children) => {\n const [in1, in2] = children.filter((c) => !!c);\n const x = ColorChannel[enumKey(channelX)];\n const y = ColorChannel[enumKey(channelY)];\n const map = getInput([in1]);\n const input = in2 ? getInput([in2]) : null;\n if (!map) {\n throw new Error(\"No DisplacementMap provided\");\n }\n return Skia.ImageFilter.MakeDisplacementMap(x, y, scale, map, input);\n }\n);\n\nexport const DisplacementMap = (props: AnimatedProps<DisplacementMapProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["DisplacementMap.tsx"],"names":["onDeclare","children","channelX","channelY","scale","Skia","in1","in2","filter","c","x","ColorChannel","y","map","input","Error","ImageFilter","MakeDisplacementMap","DisplacementMap","props"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AAEA;;AAEA;;;;;;AASA,MAAMA,SAAS,GAAG,8BAChB,OAAgCC,QAAhC,YAAuD;AAAA,MAAtD;AAAEC,IAAAA,QAAF;AAAYC,IAAAA,QAAZ;AAAsBC,IAAAA;AAAtB,GAAsD;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AACrD,QAAM,CAACC,GAAD,EAAMC,GAAN,IAAaN,QAAQ,CAACO,MAAT,CAAiBC,CAAD,IAAO,CAAC,CAACA,CAAzB,CAAnB;;AACA,QAAMC,CAAC,GAAGC,oBAAa,yBAAQT,QAAR,CAAb,CAAV;;AACA,QAAMU,CAAC,GAAGD,oBAAa,yBAAQR,QAAR,CAAb,CAAV;;AACA,QAAMU,GAAG,GAAG,wBAASR,IAAT,EAAe,CAACC,GAAD,CAAf,CAAZ;AACA,QAAMQ,KAAK,GAAGP,GAAG,GAAG,wBAASF,IAAT,EAAe,CAACE,GAAD,CAAf,CAAH,GAA2B,IAA5C;;AACA,MAAI,CAACM,GAAL,EAAU;AACR,UAAM,IAAIE,KAAJ,CAAU,6BAAV,CAAN;AACD;;AACD,SAAOV,IAAI,CAACW,WAAL,CAAiBC,mBAAjB,CAAqCP,CAArC,EAAwCE,CAAxC,EAA2CR,KAA3C,EAAkDS,GAAlD,EAAuDC,KAAvD,CAAP;AACD,CAXe,CAAlB;;AAcO,MAAMI,eAAe,GAAIC,KAAD,IAAgD;AAC7E,sBAAO;AAAe,IAAA,SAAS,EAAEnB;AAA1B,KAAyCmB,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { ColorChannel } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes\";\nimport type { SkEnum, AnimatedProps } from \"../../processors\";\nimport { enumKey } from \"../../processors\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface DisplacementMapProps {\n channelX: SkEnum<typeof ColorChannel>;\n channelY: SkEnum<typeof ColorChannel>;\n scale: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<DisplacementMapProps>(\n ({ channelX, channelY, scale }, children, { Skia }) => {\n const [in1, in2] = children.filter((c) => !!c);\n const x = ColorChannel[enumKey(channelX)];\n const y = ColorChannel[enumKey(channelY)];\n const map = getInput(Skia, [in1]);\n const input = in2 ? getInput(Skia, [in2]) : null;\n if (!map) {\n throw new Error(\"No DisplacementMap provided\");\n }\n return Skia.ImageFilter.MakeDisplacementMap(x, y, scale, map, input);\n }\n);\n\nexport const DisplacementMap = (props: AnimatedProps<DisplacementMapProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
@@ -5,28 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.MakeInnerShadow = void 0;
7
7
 
8
- var _skia = require("../../../skia");
8
+ var _types = require("../../../skia/types");
9
9
 
10
- const Black = _skia.Skia.Color("black");
10
+ const Black = Float32Array.of(0, 0, 0, 1);
11
11
 
12
- const MakeInnerShadow = (shadowOnly, dx, dy, sigmaX, sigmaY, color, input) => {
13
- const sourceGraphic = _skia.Skia.ImageFilter.MakeColorFilter(_skia.Skia.ColorFilter.MakeBlend(Black, _skia.BlendMode.Dst), null);
14
-
15
- const sourceAlpha = _skia.Skia.ImageFilter.MakeColorFilter(_skia.Skia.ColorFilter.MakeBlend(Black, _skia.BlendMode.SrcIn), null);
16
-
17
- const f1 = _skia.Skia.ImageFilter.MakeColorFilter(_skia.Skia.ColorFilter.MakeBlend(color, _skia.BlendMode.SrcOut), null);
18
-
19
- const f2 = _skia.Skia.ImageFilter.MakeOffset(dx, dy, f1);
20
-
21
- const f3 = _skia.Skia.ImageFilter.MakeBlur(sigmaX, sigmaY, _skia.TileMode.Decal, f2);
22
-
23
- const f4 = _skia.Skia.ImageFilter.MakeBlend(_skia.BlendMode.SrcIn, sourceAlpha, f3);
12
+ const MakeInnerShadow = (Skia, shadowOnly, dx, dy, sigmaX, sigmaY, color, input) => {
13
+ const sourceGraphic = Skia.ImageFilter.MakeColorFilter(Skia.ColorFilter.MakeBlend(Black, _types.BlendMode.Dst), null);
14
+ const sourceAlpha = Skia.ImageFilter.MakeColorFilter(Skia.ColorFilter.MakeBlend(Black, _types.BlendMode.SrcIn), null);
15
+ const f1 = Skia.ImageFilter.MakeColorFilter(Skia.ColorFilter.MakeBlend(color, _types.BlendMode.SrcOut), null);
16
+ const f2 = Skia.ImageFilter.MakeOffset(dx, dy, f1);
17
+ const f3 = Skia.ImageFilter.MakeBlur(sigmaX, sigmaY, _types.TileMode.Decal, f2);
18
+ const f4 = Skia.ImageFilter.MakeBlend(_types.BlendMode.SrcIn, sourceAlpha, f3);
24
19
 
25
20
  if (shadowOnly) {
26
21
  return f4;
27
22
  }
28
23
 
29
- return _skia.Skia.ImageFilter.MakeCompose(input, _skia.Skia.ImageFilter.MakeBlend(_skia.BlendMode.SrcOver, sourceGraphic, f4));
24
+ return Skia.ImageFilter.MakeCompose(input, Skia.ImageFilter.MakeBlend(_types.BlendMode.SrcOver, sourceGraphic, f4));
30
25
  };
31
26
 
32
27
  exports.MakeInnerShadow = MakeInnerShadow;
@@ -1 +1 @@
1
- {"version":3,"sources":["InnerShadow.tsx"],"names":["Black","Skia","Color","MakeInnerShadow","shadowOnly","dx","dy","sigmaX","sigmaY","color","input","sourceGraphic","ImageFilter","MakeColorFilter","ColorFilter","MakeBlend","BlendMode","Dst","sourceAlpha","SrcIn","f1","SrcOut","f2","MakeOffset","f3","MakeBlur","TileMode","Decal","f4","MakeCompose","SrcOver"],"mappings":";;;;;;;AACA;;AAEA,MAAMA,KAAK,GAAGC,WAAKC,KAAL,CAAW,OAAX,CAAd;;AAEO,MAAMC,eAAe,GAAG,CAC7BC,UAD6B,EAE7BC,EAF6B,EAG7BC,EAH6B,EAI7BC,MAJ6B,EAK7BC,MAL6B,EAM7BC,KAN6B,EAO7BC,KAP6B,KAQ1B;AACH,QAAMC,aAAa,GAAGV,WAAKW,WAAL,CAAiBC,eAAjB,CACpBZ,WAAKa,WAAL,CAAiBC,SAAjB,CAA2Bf,KAA3B,EAAkCgB,gBAAUC,GAA5C,CADoB,EAEpB,IAFoB,CAAtB;;AAIA,QAAMC,WAAW,GAAGjB,WAAKW,WAAL,CAAiBC,eAAjB,CAClBZ,WAAKa,WAAL,CAAiBC,SAAjB,CAA2Bf,KAA3B,EAAkCgB,gBAAUG,KAA5C,CADkB,EAElB,IAFkB,CAApB;;AAIA,QAAMC,EAAE,GAAGnB,WAAKW,WAAL,CAAiBC,eAAjB,CACTZ,WAAKa,WAAL,CAAiBC,SAAjB,CAA2BN,KAA3B,EAAkCO,gBAAUK,MAA5C,CADS,EAET,IAFS,CAAX;;AAIA,QAAMC,EAAE,GAAGrB,WAAKW,WAAL,CAAiBW,UAAjB,CAA4BlB,EAA5B,EAAgCC,EAAhC,EAAoCc,EAApC,CAAX;;AACA,QAAMI,EAAE,GAAGvB,WAAKW,WAAL,CAAiBa,QAAjB,CAA0BlB,MAA1B,EAAkCC,MAAlC,EAA0CkB,eAASC,KAAnD,EAA0DL,EAA1D,CAAX;;AACA,QAAMM,EAAE,GAAG3B,WAAKW,WAAL,CAAiBG,SAAjB,CAA2BC,gBAAUG,KAArC,EAA4CD,WAA5C,EAAyDM,EAAzD,CAAX;;AACA,MAAIpB,UAAJ,EAAgB;AACd,WAAOwB,EAAP;AACD;;AACD,SAAO3B,WAAKW,WAAL,CAAiBiB,WAAjB,CACLnB,KADK,EAELT,WAAKW,WAAL,CAAiBG,SAAjB,CAA2BC,gBAAUc,OAArC,EAA8CnB,aAA9C,EAA6DiB,EAA7D,CAFK,CAAP;AAID,CA/BM","sourcesContent":["import type { SkColor, SkImageFilter } from \"../../../skia\";\nimport { BlendMode, Skia, TileMode } from \"../../../skia\";\n\nconst Black = Skia.Color(\"black\");\n\nexport const MakeInnerShadow = (\n shadowOnly: boolean | undefined,\n dx: number,\n dy: number,\n sigmaX: number,\n sigmaY: number,\n color: SkColor,\n input: SkImageFilter | null\n) => {\n const sourceGraphic = Skia.ImageFilter.MakeColorFilter(\n Skia.ColorFilter.MakeBlend(Black, BlendMode.Dst),\n null\n );\n const sourceAlpha = Skia.ImageFilter.MakeColorFilter(\n Skia.ColorFilter.MakeBlend(Black, BlendMode.SrcIn),\n null\n );\n const f1 = Skia.ImageFilter.MakeColorFilter(\n Skia.ColorFilter.MakeBlend(color, BlendMode.SrcOut),\n null\n );\n const f2 = Skia.ImageFilter.MakeOffset(dx, dy, f1);\n const f3 = Skia.ImageFilter.MakeBlur(sigmaX, sigmaY, TileMode.Decal, f2);\n const f4 = Skia.ImageFilter.MakeBlend(BlendMode.SrcIn, sourceAlpha, f3);\n if (shadowOnly) {\n return f4;\n }\n return Skia.ImageFilter.MakeCompose(\n input,\n Skia.ImageFilter.MakeBlend(BlendMode.SrcOver, sourceGraphic, f4)\n );\n};\n"]}
1
+ {"version":3,"sources":["InnerShadow.tsx"],"names":["Black","Float32Array","of","MakeInnerShadow","Skia","shadowOnly","dx","dy","sigmaX","sigmaY","color","input","sourceGraphic","ImageFilter","MakeColorFilter","ColorFilter","MakeBlend","BlendMode","Dst","sourceAlpha","SrcIn","f1","SrcOut","f2","MakeOffset","f3","MakeBlur","TileMode","Decal","f4","MakeCompose","SrcOver"],"mappings":";;;;;;;AACA;;AAEA,MAAMA,KAAK,GAAGC,YAAY,CAACC,EAAb,CAAgB,CAAhB,EAAmB,CAAnB,EAAsB,CAAtB,EAAyB,CAAzB,CAAd;;AAEO,MAAMC,eAAe,GAAG,CAC7BC,IAD6B,EAE7BC,UAF6B,EAG7BC,EAH6B,EAI7BC,EAJ6B,EAK7BC,MAL6B,EAM7BC,MAN6B,EAO7BC,KAP6B,EAQ7BC,KAR6B,KAS1B;AACH,QAAMC,aAAa,GAAGR,IAAI,CAACS,WAAL,CAAiBC,eAAjB,CACpBV,IAAI,CAACW,WAAL,CAAiBC,SAAjB,CAA2BhB,KAA3B,EAAkCiB,iBAAUC,GAA5C,CADoB,EAEpB,IAFoB,CAAtB;AAIA,QAAMC,WAAW,GAAGf,IAAI,CAACS,WAAL,CAAiBC,eAAjB,CAClBV,IAAI,CAACW,WAAL,CAAiBC,SAAjB,CAA2BhB,KAA3B,EAAkCiB,iBAAUG,KAA5C,CADkB,EAElB,IAFkB,CAApB;AAIA,QAAMC,EAAE,GAAGjB,IAAI,CAACS,WAAL,CAAiBC,eAAjB,CACTV,IAAI,CAACW,WAAL,CAAiBC,SAAjB,CAA2BN,KAA3B,EAAkCO,iBAAUK,MAA5C,CADS,EAET,IAFS,CAAX;AAIA,QAAMC,EAAE,GAAGnB,IAAI,CAACS,WAAL,CAAiBW,UAAjB,CAA4BlB,EAA5B,EAAgCC,EAAhC,EAAoCc,EAApC,CAAX;AACA,QAAMI,EAAE,GAAGrB,IAAI,CAACS,WAAL,CAAiBa,QAAjB,CAA0BlB,MAA1B,EAAkCC,MAAlC,EAA0CkB,gBAASC,KAAnD,EAA0DL,EAA1D,CAAX;AACA,QAAMM,EAAE,GAAGzB,IAAI,CAACS,WAAL,CAAiBG,SAAjB,CAA2BC,iBAAUG,KAArC,EAA4CD,WAA5C,EAAyDM,EAAzD,CAAX;;AACA,MAAIpB,UAAJ,EAAgB;AACd,WAAOwB,EAAP;AACD;;AACD,SAAOzB,IAAI,CAACS,WAAL,CAAiBiB,WAAjB,CACLnB,KADK,EAELP,IAAI,CAACS,WAAL,CAAiBG,SAAjB,CAA2BC,iBAAUc,OAArC,EAA8CnB,aAA9C,EAA6DiB,EAA7D,CAFK,CAAP;AAID,CAhCM","sourcesContent":["import type { SkColor, Skia, SkImageFilter } from \"../../../skia/types\";\nimport { BlendMode, TileMode } from \"../../../skia/types\";\n\nconst Black = Float32Array.of(0, 0, 0, 1);\n\nexport const MakeInnerShadow = (\n Skia: Skia,\n shadowOnly: boolean | undefined,\n dx: number,\n dy: number,\n sigmaX: number,\n sigmaY: number,\n color: SkColor,\n input: SkImageFilter | null\n) => {\n const sourceGraphic = Skia.ImageFilter.MakeColorFilter(\n Skia.ColorFilter.MakeBlend(Black, BlendMode.Dst),\n null\n );\n const sourceAlpha = Skia.ImageFilter.MakeColorFilter(\n Skia.ColorFilter.MakeBlend(Black, BlendMode.SrcIn),\n null\n );\n const f1 = Skia.ImageFilter.MakeColorFilter(\n Skia.ColorFilter.MakeBlend(color, BlendMode.SrcOut),\n null\n );\n const f2 = Skia.ImageFilter.MakeOffset(dx, dy, f1);\n const f3 = Skia.ImageFilter.MakeBlur(sigmaX, sigmaY, TileMode.Decal, f2);\n const f4 = Skia.ImageFilter.MakeBlend(BlendMode.SrcIn, sourceAlpha, f3);\n if (shadowOnly) {\n return f4;\n }\n return Skia.ImageFilter.MakeCompose(\n input,\n Skia.ImageFilter.MakeBlend(BlendMode.SrcOver, sourceGraphic, f4)\n );\n};\n"]}
@@ -7,8 +7,6 @@ exports.Morphology = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _skia = require("../../../skia");
11
-
12
10
  var _Declaration = require("../../nodes/Declaration");
13
11
 
14
12
  var _Radius = require("../../processors/Radius");
@@ -19,14 +17,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
19
17
 
20
18
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
19
 
22
- const onDeclare = (0, _Declaration.createDeclaration)((_ref, children) => {
20
+ const onDeclare = (0, _Declaration.createDeclaration)((_ref, children, _ref2) => {
23
21
  let {
24
22
  radius,
25
23
  operator
26
24
  } = _ref;
27
- const input = (0, _getInput.getInput)(children);
28
- const r = (0, _Radius.processRadius)(radius);
29
- const factory = operator === "dilate" ? _skia.Skia.ImageFilter.MakeDilate : _skia.Skia.ImageFilter.MakeErode;
25
+ let {
26
+ Skia
27
+ } = _ref2;
28
+ const input = (0, _getInput.getInput)(Skia, children);
29
+ const r = (0, _Radius.processRadius)(Skia, radius);
30
+ const factory = operator === "dilate" ? Skia.ImageFilter.MakeDilate : Skia.ImageFilter.MakeErode;
30
31
  return factory(r.x, r.y, input);
31
32
  });
32
33
 
@@ -1 +1 @@
1
- {"version":3,"sources":["Morphology.tsx"],"names":["onDeclare","children","radius","operator","input","r","factory","Skia","ImageFilter","MakeDilate","MakeErode","x","y","Morphology","props","defaultProps"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAEA;;AAEA;;;;;;AAQA,MAAMA,SAAS,GAAG,oCAChB,OAAuBC,QAAvB,KAAoC;AAAA,MAAnC;AAAEC,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAAmC;AAClC,QAAMC,KAAK,GAAG,wBAASH,QAAT,CAAd;AACA,QAAMI,CAAC,GAAG,2BAAcH,MAAd,CAAV;AACA,QAAMI,OAAO,GACXH,QAAQ,KAAK,QAAb,GACII,WAAKC,WAAL,CAAiBC,UADrB,GAEIF,WAAKC,WAAL,CAAiBE,SAHvB;AAIA,SAAOJ,OAAO,CAACD,CAAC,CAACM,CAAH,EAAMN,CAAC,CAACO,CAAR,EAAWR,KAAX,CAAd;AACD,CATe,CAAlB;;AAYO,MAAMS,UAAU,GAAIC,KAAD,IAA2C;AACnE,sBAAO;AAAe,IAAA,SAAS,EAAEd;AAA1B,KAAyCc,KAAzC,EAAP;AACD,CAFM;;;AAIPD,UAAU,CAACE,YAAX,GAA0B;AACxBZ,EAAAA,QAAQ,EAAE;AADc,CAA1B","sourcesContent":["import React from \"react\";\n\nimport { Skia } from \"../../../skia\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps, Radius } from \"../../processors\";\nimport { processRadius } from \"../../processors/Radius\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface MorphologyProps {\n operator: \"erode\" | \"dilate\";\n radius: Radius;\n children?: React.ReactNode | React.ReactNode[];\n}\n\nconst onDeclare = createDeclaration<MorphologyProps>(\n ({ radius, operator }, children) => {\n const input = getInput(children);\n const r = processRadius(radius);\n const factory =\n operator === \"dilate\"\n ? Skia.ImageFilter.MakeDilate\n : Skia.ImageFilter.MakeErode;\n return factory(r.x, r.y, input);\n }\n);\n\nexport const Morphology = (props: AnimatedProps<MorphologyProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nMorphology.defaultProps = {\n operator: \"dilate\",\n};\n"]}
1
+ {"version":3,"sources":["Morphology.tsx"],"names":["onDeclare","children","radius","operator","Skia","input","r","factory","ImageFilter","MakeDilate","MakeErode","x","y","Morphology","props","defaultProps"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;;AAEA;;;;;;AAQA,MAAMA,SAAS,GAAG,oCAChB,OAAuBC,QAAvB,YAA8C;AAAA,MAA7C;AAAEC,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAA6C;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC5C,QAAMC,KAAK,GAAG,wBAASD,IAAT,EAAeH,QAAf,CAAd;AACA,QAAMK,CAAC,GAAG,2BAAcF,IAAd,EAAoBF,MAApB,CAAV;AACA,QAAMK,OAAO,GACXJ,QAAQ,KAAK,QAAb,GACIC,IAAI,CAACI,WAAL,CAAiBC,UADrB,GAEIL,IAAI,CAACI,WAAL,CAAiBE,SAHvB;AAIA,SAAOH,OAAO,CAACD,CAAC,CAACK,CAAH,EAAML,CAAC,CAACM,CAAR,EAAWP,KAAX,CAAd;AACD,CATe,CAAlB;;AAYO,MAAMQ,UAAU,GAAIC,KAAD,IAA2C;AACnE,sBAAO;AAAe,IAAA,SAAS,EAAEd;AAA1B,KAAyCc,KAAzC,EAAP;AACD,CAFM;;;AAIPD,UAAU,CAACE,YAAX,GAA0B;AACxBZ,EAAAA,QAAQ,EAAE;AADc,CAA1B","sourcesContent":["import React from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps, Radius } from \"../../processors\";\nimport { processRadius } from \"../../processors/Radius\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface MorphologyProps {\n operator: \"erode\" | \"dilate\";\n radius: Radius;\n children?: React.ReactNode | React.ReactNode[];\n}\n\nconst onDeclare = createDeclaration<MorphologyProps>(\n ({ radius, operator }, children, { Skia }) => {\n const input = getInput(Skia, children);\n const r = processRadius(Skia, radius);\n const factory =\n operator === \"dilate\"\n ? Skia.ImageFilter.MakeDilate\n : Skia.ImageFilter.MakeErode;\n return factory(r.x, r.y, input);\n }\n);\n\nexport const Morphology = (props: AnimatedProps<MorphologyProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nMorphology.defaultProps = {\n operator: \"dilate\",\n};\n"]}
@@ -7,8 +7,6 @@ exports.Offset = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _skia = require("../../../skia");
11
-
12
10
  var _Declaration = require("../../nodes/Declaration");
13
11
 
14
12
  var _getInput = require("./getInput");
@@ -17,12 +15,15 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
15
 
18
16
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
17
 
20
- const onDeclare = (0, _Declaration.createDeclaration)((_ref, children) => {
18
+ const onDeclare = (0, _Declaration.createDeclaration)((_ref, children, _ref2) => {
21
19
  let {
22
20
  x,
23
21
  y
24
22
  } = _ref;
25
- return _skia.Skia.ImageFilter.MakeOffset(x, y, (0, _getInput.getInput)(children));
23
+ let {
24
+ Skia
25
+ } = _ref2;
26
+ return Skia.ImageFilter.MakeOffset(x, y, (0, _getInput.getInput)(Skia, children));
26
27
  });
27
28
 
28
29
  const Offset = props => {
@@ -1 +1 @@
1
- {"version":3,"sources":["Offset.tsx"],"names":["onDeclare","children","x","y","Skia","ImageFilter","MakeOffset","Offset","props","defaultProps"],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AAGA;;;;;;AAQA,MAAMA,SAAS,GAAG,oCAA+B,OAAWC,QAAX,KAAwB;AAAA,MAAvB;AAAEC,IAAAA,CAAF;AAAKC,IAAAA;AAAL,GAAuB;AACvE,SAAOC,WAAKC,WAAL,CAAiBC,UAAjB,CAA4BJ,CAA5B,EAA+BC,CAA/B,EAAkC,wBAASF,QAAT,CAAlC,CAAP;AACD,CAFiB,CAAlB;;AAIO,MAAMM,MAAM,GAAIC,KAAD,IAAuC;AAC3D,sBAAO;AAAe,IAAA,SAAS,EAAER;AAA1B,KAAyCQ,KAAzC,EAAP;AACD,CAFM;;;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBP,EAAAA,CAAC,EAAE,CADiB;AAEpBC,EAAAA,CAAC,EAAE;AAFiB,CAAtB","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { Skia } from \"../../../skia\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface OffsetProps {\n x: number;\n y: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<OffsetProps>(({ x, y }, children) => {\n return Skia.ImageFilter.MakeOffset(x, y, getInput(children));\n});\n\nexport const Offset = (props: AnimatedProps<OffsetProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nOffset.defaultProps = {\n x: 0,\n y: 0,\n};\n"]}
1
+ {"version":3,"sources":["Offset.tsx"],"names":["onDeclare","children","x","y","Skia","ImageFilter","MakeOffset","Offset","props","defaultProps"],"mappings":";;;;;;;AAAA;;AAGA;;AAGA;;;;;;AAQA,MAAMA,SAAS,GAAG,oCAChB,OAAWC,QAAX,YAAkC;AAAA,MAAjC;AAAEC,IAAAA,CAAF;AAAKC,IAAAA;AAAL,GAAiC;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAChC,SAAOA,IAAI,CAACC,WAAL,CAAiBC,UAAjB,CAA4BJ,CAA5B,EAA+BC,CAA/B,EAAkC,wBAASC,IAAT,EAAeH,QAAf,CAAlC,CAAP;AACD,CAHe,CAAlB;;AAMO,MAAMM,MAAM,GAAIC,KAAD,IAAuC;AAC3D,sBAAO;AAAe,IAAA,SAAS,EAAER;AAA1B,KAAyCQ,KAAzC,EAAP;AACD,CAFM;;;AAIPD,MAAM,CAACE,YAAP,GAAsB;AACpBP,EAAAA,CAAC,EAAE,CADiB;AAEpBC,EAAAA,CAAC,EAAE;AAFiB,CAAtB","sourcesContent":["import React from \"react\";\nimport type { ReactNode } from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface OffsetProps {\n x: number;\n y: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<OffsetProps>(\n ({ x, y }, children, { Skia }) => {\n return Skia.ImageFilter.MakeOffset(x, y, getInput(Skia, children));\n }\n);\n\nexport const Offset = (props: AnimatedProps<OffsetProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nOffset.defaultProps = {\n x: 0,\n y: 0,\n};\n"]}
@@ -7,24 +7,31 @@ exports.RuntimeShader = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _skia = require("../../../skia");
11
-
12
10
  var _Declaration = require("../../nodes/Declaration");
13
11
 
12
+ var _Shader = require("../../../skia/types/Shader/Shader");
13
+
14
14
  var _getInput = require("./getInput");
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
18
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
19
 
20
- const onDeclare = (0, _Declaration.createDeclaration)((_ref, children) => {
20
+ const onDeclare = (0, _Declaration.createDeclaration)((_ref, children, _ref2) => {
21
21
  let {
22
- source
22
+ source,
23
+ uniforms
23
24
  } = _ref;
25
+ let {
26
+ Skia
27
+ } = _ref2;
28
+ const rtb = Skia.RuntimeShaderBuilder(source);
24
29
 
25
- const rtb = _skia.Skia.RuntimeShaderBuilder(source);
30
+ if (uniforms) {
31
+ (0, _Shader.processUniforms)(source, uniforms, rtb);
32
+ }
26
33
 
27
- return _skia.Skia.ImageFilter.MakeRuntimeShader(rtb, null, (0, _getInput.getInput)(children));
34
+ return Skia.ImageFilter.MakeRuntimeShader(rtb, null, (0, _getInput.getInput)(Skia, children));
28
35
  });
29
36
 
30
37
  const RuntimeShader = props => {
@@ -1 +1 @@
1
- {"version":3,"sources":["RuntimeShader.tsx"],"names":["onDeclare","children","source","rtb","Skia","RuntimeShaderBuilder","ImageFilter","MakeRuntimeShader","RuntimeShader","props"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAIA;;;;;;AAMA,MAAMA,SAAS,GAAG,oCAChB,OAAaC,QAAb,KAA0B;AAAA,MAAzB;AAAEC,IAAAA;AAAF,GAAyB;;AACxB,QAAMC,GAAG,GAAGC,WAAKC,oBAAL,CAA0BH,MAA1B,CAAZ;;AACA,SAAOE,WAAKE,WAAL,CAAiBC,iBAAjB,CAAmCJ,GAAnC,EAAwC,IAAxC,EAA8C,wBAASF,QAAT,CAA9C,CAAP;AACD,CAJe,CAAlB;;AAOO,MAAMO,aAAa,GAAIC,KAAD,IAA8C;AACzE,sBAAO;AAAe,IAAA,SAAS,EAAET;AAA1B,KAAyCS,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport { Skia } from \"../../../skia\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport type { SkRuntimeEffect } from \"../../../skia\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface RuntimeShaderProps {\n source: SkRuntimeEffect;\n}\n\nconst onDeclare = createDeclaration<RuntimeShaderProps>(\n ({ source }, children) => {\n const rtb = Skia.RuntimeShaderBuilder(source);\n return Skia.ImageFilter.MakeRuntimeShader(rtb, null, getInput(children));\n }\n);\n\nexport const RuntimeShader = (props: AnimatedProps<RuntimeShaderProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["RuntimeShader.tsx"],"names":["onDeclare","children","source","uniforms","Skia","rtb","RuntimeShaderBuilder","ImageFilter","MakeRuntimeShader","RuntimeShader","props"],"mappings":";;;;;;;AAAA;;AAEA;;AAGA;;AAEA;;;;;;AAOA,MAAMA,SAAS,GAAG,oCAChB,OAAuBC,QAAvB,YAA8C;AAAA,MAA7C;AAAEC,IAAAA,MAAF;AAAUC,IAAAA;AAAV,GAA6C;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC5C,QAAMC,GAAG,GAAGD,IAAI,CAACE,oBAAL,CAA0BJ,MAA1B,CAAZ;;AACA,MAAIC,QAAJ,EAAc;AACZ,iCAAgBD,MAAhB,EAAwBC,QAAxB,EAAkCE,GAAlC;AACD;;AACD,SAAOD,IAAI,CAACG,WAAL,CAAiBC,iBAAjB,CACLH,GADK,EAEL,IAFK,EAGL,wBAASD,IAAT,EAAeH,QAAf,CAHK,CAAP;AAKD,CAXe,CAAlB;;AAcO,MAAMQ,aAAa,GAAIC,KAAD,IAA8C;AACzE,sBAAO;AAAe,IAAA,SAAS,EAAEV;AAA1B,KAAyCU,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport type { SkRuntimeEffect, Uniforms } from \"../../../skia/types\";\nimport { processUniforms } from \"../../../skia/types/Shader/Shader\";\n\nimport { getInput } from \"./getInput\";\n\nexport interface RuntimeShaderProps {\n source: SkRuntimeEffect;\n uniforms?: Uniforms;\n}\n\nconst onDeclare = createDeclaration<RuntimeShaderProps>(\n ({ source, uniforms }, children, { Skia }) => {\n const rtb = Skia.RuntimeShaderBuilder(source);\n if (uniforms) {\n processUniforms(source, uniforms, rtb);\n }\n return Skia.ImageFilter.MakeRuntimeShader(\n rtb,\n null,\n getInput(Skia, children)\n );\n }\n);\n\nexport const RuntimeShader = (props: AnimatedProps<RuntimeShaderProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
@@ -7,10 +7,10 @@ exports.Shadow = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _skia = require("../../../skia");
11
-
12
10
  var _Declaration = require("../../nodes/Declaration");
13
11
 
12
+ var _Color = require("../../processors/Color");
13
+
14
14
  var _getInput = require("./getInput");
15
15
 
16
16
  var _InnerShadow = require("./InnerShadow");
@@ -29,16 +29,17 @@ const onDeclare = (0, _Declaration.createDeclaration)((_ref, children, _ref2) =>
29
29
  inner
30
30
  } = _ref;
31
31
  let {
32
- opacity
32
+ opacity,
33
+ Skia
33
34
  } = _ref2;
34
- const input = (0, _getInput.getInput)(children);
35
- const color = (0, _skia.processColor)(cl, opacity);
35
+ const input = (0, _getInput.getInput)(Skia, children);
36
+ const color = (0, _Color.processColor)(Skia, cl, opacity);
36
37
  let factory;
37
38
 
38
39
  if (inner) {
39
- factory = _InnerShadow.MakeInnerShadow.bind(null, shadowOnly);
40
+ factory = _InnerShadow.MakeInnerShadow.bind(null, Skia, shadowOnly);
40
41
  } else {
41
- factory = shadowOnly ? _skia.Skia.ImageFilter.MakeDropShadowOnly : _skia.Skia.ImageFilter.MakeDropShadow;
42
+ factory = shadowOnly ? Skia.ImageFilter.MakeDropShadowOnly : Skia.ImageFilter.MakeDropShadow;
42
43
  }
43
44
 
44
45
  return factory(dx, dy, blur, blur, color, input);
@@ -1 +1 @@
1
- {"version":3,"sources":["Shadow.tsx"],"names":["onDeclare","children","dx","dy","blur","color","cl","shadowOnly","inner","opacity","input","factory","MakeInnerShadow","bind","Skia","ImageFilter","MakeDropShadowOnly","MakeDropShadow","Shadow","props"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAIA;;AACA;;;;;;AAWA,MAAMA,SAAS,GAAG,oCAChB,OAAiDC,QAAjD,YAA2E;AAAA,MAA1E;AAAEC,IAAAA,EAAF;AAAMC,IAAAA,EAAN;AAAUC,IAAAA,IAAV;AAAgBC,IAAAA,KAAK,EAAEC,EAAvB;AAA2BC,IAAAA,UAA3B;AAAuCC,IAAAA;AAAvC,GAA0E;AAAA,MAAhB;AAAEC,IAAAA;AAAF,GAAgB;AACzE,QAAMC,KAAK,GAAG,wBAAST,QAAT,CAAd;AACA,QAAMI,KAAK,GAAG,wBAAaC,EAAb,EAAiBG,OAAjB,CAAd;AACA,MAAIE,OAAJ;;AACA,MAAIH,KAAJ,EAAW;AACTG,IAAAA,OAAO,GAAGC,6BAAgBC,IAAhB,CAAqB,IAArB,EAA2BN,UAA3B,CAAV;AACD,GAFD,MAEO;AACLI,IAAAA,OAAO,GAAGJ,UAAU,GAChBO,WAAKC,WAAL,CAAiBC,kBADD,GAEhBF,WAAKC,WAAL,CAAiBE,cAFrB;AAGD;;AACD,SAAON,OAAO,CAACT,EAAD,EAAKC,EAAL,EAASC,IAAT,EAAeA,IAAf,EAAqBC,KAArB,EAA4BK,KAA5B,CAAd;AACD,CAbe,CAAlB;;AAgBO,MAAMQ,MAAM,GAAIC,KAAD,IAAuC;AAC3D,sBAAO;AAAe,IAAA,SAAS,EAAEnB;AAA1B,KAAyCmB,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport { Skia, processColor } from \"../../../skia\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport type { Color } from \"../../../skia\";\n\nimport { getInput } from \"./getInput\";\nimport { MakeInnerShadow } from \"./InnerShadow\";\n\nexport interface ShadowProps {\n dx: number;\n dy: number;\n blur: number;\n color: Color;\n inner?: boolean;\n shadowOnly?: boolean;\n}\n\nconst onDeclare = createDeclaration<ShadowProps>(\n ({ dx, dy, blur, color: cl, shadowOnly, inner }, children, { opacity }) => {\n const input = getInput(children);\n const color = processColor(cl, opacity);\n let factory;\n if (inner) {\n factory = MakeInnerShadow.bind(null, shadowOnly);\n } else {\n factory = shadowOnly\n ? Skia.ImageFilter.MakeDropShadowOnly\n : Skia.ImageFilter.MakeDropShadow;\n }\n return factory(dx, dy, blur, blur, color, input);\n }\n);\n\nexport const Shadow = (props: AnimatedProps<ShadowProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["Shadow.tsx"],"names":["onDeclare","children","dx","dy","blur","color","cl","shadowOnly","inner","opacity","Skia","input","factory","MakeInnerShadow","bind","ImageFilter","MakeDropShadowOnly","MakeDropShadow","Shadow","props"],"mappings":";;;;;;;AAAA;;AAEA;;AAGA;;AAEA;;AACA;;;;;;AAWA,MAAMA,SAAS,GAAG,oCAChB,OAEEC,QAFF,YAIK;AAAA,MAHH;AAAEC,IAAAA,EAAF;AAAMC,IAAAA,EAAN;AAAUC,IAAAA,IAAV;AAAgBC,IAAAA,KAAK,EAAEC,EAAvB;AAA2BC,IAAAA,UAA3B;AAAuCC,IAAAA;AAAvC,GAGG;AAAA,MADH;AAAEC,IAAAA,OAAF;AAAWC,IAAAA;AAAX,GACG;AACH,QAAMC,KAAK,GAAG,wBAASD,IAAT,EAAeT,QAAf,CAAd;AACA,QAAMI,KAAK,GAAG,yBAAaK,IAAb,EAAmBJ,EAAnB,EAAuBG,OAAvB,CAAd;AACA,MAAIG,OAAJ;;AACA,MAAIJ,KAAJ,EAAW;AACTI,IAAAA,OAAO,GAAGC,6BAAgBC,IAAhB,CAAqB,IAArB,EAA2BJ,IAA3B,EAAiCH,UAAjC,CAAV;AACD,GAFD,MAEO;AACLK,IAAAA,OAAO,GAAGL,UAAU,GAChBG,IAAI,CAACK,WAAL,CAAiBC,kBADD,GAEhBN,IAAI,CAACK,WAAL,CAAiBE,cAFrB;AAGD;;AACD,SAAOL,OAAO,CAACV,EAAD,EAAKC,EAAL,EAASC,IAAT,EAAeA,IAAf,EAAqBC,KAArB,EAA4BM,KAA5B,CAAd;AACD,CAjBe,CAAlB;;AAoBO,MAAMO,MAAM,GAAIC,KAAD,IAAuC;AAC3D,sBAAO;AAAe,IAAA,SAAS,EAAEnB;AAA1B,KAAyCmB,KAAzC,EAAP;AACD,CAFM","sourcesContent":["import React from \"react\";\n\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\nimport type { Color } from \"../../../skia/types\";\nimport { processColor } from \"../../processors/Color\";\n\nimport { getInput } from \"./getInput\";\nimport { MakeInnerShadow } from \"./InnerShadow\";\n\nexport interface ShadowProps {\n dx: number;\n dy: number;\n blur: number;\n color: Color;\n inner?: boolean;\n shadowOnly?: boolean;\n}\n\nconst onDeclare = createDeclaration<ShadowProps>(\n (\n { dx, dy, blur, color: cl, shadowOnly, inner },\n children,\n { opacity, Skia }\n ) => {\n const input = getInput(Skia, children);\n const color = processColor(Skia, cl, opacity);\n let factory;\n if (inner) {\n factory = MakeInnerShadow.bind(null, Skia, shadowOnly);\n } else {\n factory = shadowOnly\n ? Skia.ImageFilter.MakeDropShadowOnly\n : Skia.ImageFilter.MakeDropShadow;\n }\n return factory(dx, dy, blur, blur, color, input);\n }\n);\n\nexport const Shadow = (props: AnimatedProps<ShadowProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
@@ -5,25 +5,25 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getInput = void 0;
7
7
 
8
- var _skia = require("../../../skia");
8
+ var _types = require("../../../skia/types");
9
9
 
10
- const getInput = children => {
10
+ const getInput = (Skia, children) => {
11
11
  const [child] = children.filter(c => c);
12
12
 
13
13
  if (!child) {
14
14
  return null;
15
15
  }
16
16
 
17
- if ((0, _skia.isImageFilter)(child)) {
17
+ if ((0, _types.isImageFilter)(child)) {
18
18
  return child;
19
19
  }
20
20
 
21
- if ((0, _skia.isColorFilter)(child)) {
22
- return _skia.Skia.ImageFilter.MakeColorFilter(child, null);
21
+ if ((0, _types.isColorFilter)(child)) {
22
+ return Skia.ImageFilter.MakeColorFilter(child, null);
23
23
  }
24
24
 
25
- if ((0, _skia.isShader)(child)) {
26
- return _skia.Skia.ImageFilter.MakeShader(child, null);
25
+ if ((0, _types.isShader)(child)) {
26
+ return Skia.ImageFilter.MakeShader(child, null);
27
27
  }
28
28
 
29
29
  throw new Error("Invalid image filter child: " + child);
@@ -1 +1 @@
1
- {"version":3,"sources":["getInput.ts"],"names":["getInput","children","child","filter","c","Skia","ImageFilter","MakeColorFilter","MakeShader","Error"],"mappings":";;;;;;;AACA;;AAEO,MAAMA,QAAQ,GAAIC,QAAD,IAAmC;AACzD,QAAM,CAACC,KAAD,IAAUD,QAAQ,CAACE,MAAT,CAAiBC,CAAD,IAAOA,CAAvB,CAAhB;;AACA,MAAI,CAACF,KAAL,EAAY;AACV,WAAO,IAAP;AACD;;AACD,MAAI,yBAAcA,KAAd,CAAJ,EAA0B;AACxB,WAAOA,KAAP;AACD;;AACD,MAAI,yBAAcA,KAAd,CAAJ,EAA0B;AACxB,WAAOG,WAAKC,WAAL,CAAiBC,eAAjB,CAAiCL,KAAjC,EAAwC,IAAxC,CAAP;AACD;;AACD,MAAI,oBAASA,KAAT,CAAJ,EAAqB;AACnB,WAAOG,WAAKC,WAAL,CAAiBE,UAAjB,CAA4BN,KAA5B,EAAmC,IAAnC,CAAP;AACD;;AACD,QAAM,IAAIO,KAAJ,CAAU,iCAAiCP,KAA3C,CAAN;AACD,CAfM","sourcesContent":["import type { DeclarationResult } from \"../../nodes\";\nimport { isImageFilter, isColorFilter, isShader, Skia } from \"../../../skia\";\n\nexport const getInput = (children: DeclarationResult[]) => {\n const [child] = children.filter((c) => c);\n if (!child) {\n return null;\n }\n if (isImageFilter(child)) {\n return child;\n }\n if (isColorFilter(child)) {\n return Skia.ImageFilter.MakeColorFilter(child, null);\n }\n if (isShader(child)) {\n return Skia.ImageFilter.MakeShader(child, null);\n }\n throw new Error(\"Invalid image filter child: \" + child);\n};\n"]}
1
+ {"version":3,"sources":["getInput.ts"],"names":["getInput","Skia","children","child","filter","c","ImageFilter","MakeColorFilter","MakeShader","Error"],"mappings":";;;;;;;AAEA;;AAEO,MAAMA,QAAQ,GAAG,CAACC,IAAD,EAAaC,QAAb,KAA+C;AACrE,QAAM,CAACC,KAAD,IAAUD,QAAQ,CAACE,MAAT,CAAiBC,CAAD,IAAOA,CAAvB,CAAhB;;AACA,MAAI,CAACF,KAAL,EAAY;AACV,WAAO,IAAP;AACD;;AACD,MAAI,0BAAcA,KAAd,CAAJ,EAA0B;AACxB,WAAOA,KAAP;AACD;;AACD,MAAI,0BAAcA,KAAd,CAAJ,EAA0B;AACxB,WAAOF,IAAI,CAACK,WAAL,CAAiBC,eAAjB,CAAiCJ,KAAjC,EAAwC,IAAxC,CAAP;AACD;;AACD,MAAI,qBAASA,KAAT,CAAJ,EAAqB;AACnB,WAAOF,IAAI,CAACK,WAAL,CAAiBE,UAAjB,CAA4BL,KAA5B,EAAmC,IAAnC,CAAP;AACD;;AACD,QAAM,IAAIM,KAAJ,CAAU,iCAAiCN,KAA3C,CAAN;AACD,CAfM","sourcesContent":["import type { DeclarationResult } from \"../../nodes\";\nimport type { Skia } from \"../../../skia/types\";\nimport { isImageFilter, isColorFilter, isShader } from \"../../../skia/types\";\n\nexport const getInput = (Skia: Skia, children: DeclarationResult[]) => {\n const [child] = children.filter((c) => c);\n if (!child) {\n return null;\n }\n if (isImageFilter(child)) {\n return child;\n }\n if (isColorFilter(child)) {\n return Skia.ImageFilter.MakeColorFilter(child, null);\n }\n if (isShader(child)) {\n return Skia.ImageFilter.MakeShader(child, null);\n }\n throw new Error(\"Invalid image filter child: \" + child);\n};\n"]}
@@ -7,7 +7,7 @@ exports.BlurMask = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _skia = require("../../../skia");
10
+ var _types = require("../../../skia/types");
11
11
 
12
12
  var _Declaration = require("../../nodes/Declaration");
13
13
 
@@ -17,13 +17,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
 
18
18
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
19
 
20
- const onDeclare = (0, _Declaration.createDeclaration)(_ref => {
20
+ const onDeclare = (0, _Declaration.createDeclaration)((_ref, _, _ref2) => {
21
21
  let {
22
22
  style,
23
23
  blur,
24
24
  respectCTM
25
25
  } = _ref;
26
- return _skia.Skia.MaskFilter.MakeBlur(_skia.BlurStyle[(0, _processors.enumKey)(style)], blur, respectCTM);
26
+ let {
27
+ Skia
28
+ } = _ref2;
29
+ return Skia.MaskFilter.MakeBlur(_types.BlurStyle[(0, _processors.enumKey)(style)], blur, respectCTM);
27
30
  });
28
31
 
29
32
  const BlurMask = props => {
@@ -1 +1 @@
1
- {"version":3,"sources":["Blur.tsx"],"names":["onDeclare","style","blur","respectCTM","Skia","MaskFilter","MakeBlur","BlurStyle","BlurMask","props","defaultProps"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAEA;;;;;;AASA,MAAMA,SAAS,GAAG,oCAChB,QAAiC;AAAA,MAAhC;AAAEC,IAAAA,KAAF;AAASC,IAAAA,IAAT;AAAeC,IAAAA;AAAf,GAAgC;AAC/B,SAAOC,WAAKC,UAAL,CAAgBC,QAAhB,CACLC,gBAAU,yBAAQN,KAAR,CAAV,CADK,EAELC,IAFK,EAGLC,UAHK,CAAP;AAKD,CAPe,CAAlB;;AAUO,MAAMK,QAAQ,GAAIC,KAAD,IAAyC;AAC/D,sBAAO;AAAe,IAAA,SAAS,EAAET;AAA1B,KAAyCS,KAAzC,EAAP;AACD,CAFM;;;AAIPD,QAAQ,CAACE,YAAT,GAAwB;AACtBT,EAAAA,KAAK,EAAE,QADe;AAEtBE,EAAAA,UAAU,EAAE;AAFU,CAAxB","sourcesContent":["import React from \"react\";\n\nimport { BlurStyle, Skia } from \"../../../skia\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { SkEnum } from \"../../processors\";\nimport { enumKey } from \"../../processors\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface BlurMaskProps {\n style: SkEnum<typeof BlurStyle>;\n blur: number;\n respectCTM: boolean;\n}\n\nconst onDeclare = createDeclaration<BlurMaskProps>(\n ({ style, blur, respectCTM }) => {\n return Skia.MaskFilter.MakeBlur(\n BlurStyle[enumKey(style)],\n blur,\n respectCTM\n );\n }\n);\n\nexport const BlurMask = (props: AnimatedProps<BlurMaskProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nBlurMask.defaultProps = {\n style: \"normal\",\n respectCTM: true,\n};\n"]}
1
+ {"version":3,"sources":["Blur.tsx"],"names":["onDeclare","_","style","blur","respectCTM","Skia","MaskFilter","MakeBlur","BlurStyle","BlurMask","props","defaultProps"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAEA;;;;;;AASA,MAAMA,SAAS,GAAG,oCAChB,OAA8BC,CAA9B,YAA8C;AAAA,MAA7C;AAAEC,IAAAA,KAAF;AAASC,IAAAA,IAAT;AAAeC,IAAAA;AAAf,GAA6C;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC5C,SAAOA,IAAI,CAACC,UAAL,CAAgBC,QAAhB,CACLC,iBAAU,yBAAQN,KAAR,CAAV,CADK,EAELC,IAFK,EAGLC,UAHK,CAAP;AAKD,CAPe,CAAlB;;AAUO,MAAMK,QAAQ,GAAIC,KAAD,IAAyC;AAC/D,sBAAO;AAAe,IAAA,SAAS,EAAEV;AAA1B,KAAyCU,KAAzC,EAAP;AACD,CAFM;;;AAIPD,QAAQ,CAACE,YAAT,GAAwB;AACtBT,EAAAA,KAAK,EAAE,QADe;AAEtBE,EAAAA,UAAU,EAAE;AAFU,CAAxB","sourcesContent":["import React from \"react\";\n\nimport { BlurStyle } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { SkEnum } from \"../../processors\";\nimport { enumKey } from \"../../processors\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface BlurMaskProps {\n style: SkEnum<typeof BlurStyle>;\n blur: number;\n respectCTM: boolean;\n}\n\nconst onDeclare = createDeclaration<BlurMaskProps>(\n ({ style, blur, respectCTM }, _, { Skia }) => {\n return Skia.MaskFilter.MakeBlur(\n BlurStyle[enumKey(style)],\n blur,\n respectCTM\n );\n }\n);\n\nexport const BlurMask = (props: AnimatedProps<BlurMaskProps>) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n\nBlurMask.defaultProps = {\n style: \"normal\",\n respectCTM: true,\n};\n"]}
@@ -7,7 +7,7 @@ exports.CornerPathEffect = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _skia = require("../../../skia");
10
+ var _types = require("../../../skia/types");
11
11
 
12
12
  var _Declaration = require("../../nodes/Declaration");
13
13
 
@@ -15,20 +15,22 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
 
16
16
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
17
 
18
- const onDeclare = (0, _Declaration.createDeclaration)((_ref, children) => {
18
+ const onDeclare = (0, _Declaration.createDeclaration)((_ref, children, _ref2) => {
19
19
  let {
20
20
  r
21
21
  } = _ref;
22
- const [child] = children.filter(_skia.isPathEffect);
23
-
24
- const pe = _skia.Skia.PathEffect.MakeCorner(r);
22
+ let {
23
+ Skia
24
+ } = _ref2;
25
+ const [child] = children.filter(_types.isPathEffect);
26
+ const pe = Skia.PathEffect.MakeCorner(r);
25
27
 
26
28
  if (child) {
27
29
  if (!pe) {
28
30
  return child;
29
31
  }
30
32
 
31
- return _skia.Skia.PathEffect.MakeCompose(pe, child);
33
+ return Skia.PathEffect.MakeCompose(pe, child);
32
34
  }
33
35
 
34
36
  return pe;
@@ -1 +1 @@
1
- {"version":3,"sources":["Corner.tsx"],"names":["onDeclare","children","r","child","filter","isPathEffect","pe","Skia","PathEffect","MakeCorner","MakeCompose","CornerPathEffect","props"],"mappings":";;;;;;;AACA;;AAEA;;AACA;;;;;;AAQA,MAAMA,SAAS,GAAG,oCAChB,OAAQC,QAAR,KAAqB;AAAA,MAApB;AAAEC,IAAAA;AAAF,GAAoB;AACnB,QAAM,CAACC,KAAD,IAAUF,QAAQ,CAACG,MAAT,CAAgBC,kBAAhB,CAAhB;;AACA,QAAMC,EAAE,GAAGC,WAAKC,UAAL,CAAgBC,UAAhB,CAA2BP,CAA3B,CAAX;;AACA,MAAIC,KAAJ,EAAW;AACT,QAAI,CAACG,EAAL,EAAS;AACP,aAAOH,KAAP;AACD;;AACD,WAAOI,WAAKC,UAAL,CAAgBE,WAAhB,CAA4BJ,EAA5B,EAAgCH,KAAhC,CAAP;AACD;;AACD,SAAOG,EAAP;AACD,CAXe,CAAlB;;AAcO,MAAMK,gBAAgB,GAC3BC,KAD8B,IAE3B;AACH,sBAAO;AAAe,IAAA,SAAS,EAAEZ;AAA1B,KAAyCY,KAAzC,EAAP;AACD,CAJM","sourcesContent":["import type { ReactNode } from \"react\";\nimport React from \"react\";\n\nimport { Skia, isPathEffect } from \"../../../skia\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface CornerPathEffectProps {\n r: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<CornerPathEffectProps>(\n ({ r }, children) => {\n const [child] = children.filter(isPathEffect);\n const pe = Skia.PathEffect.MakeCorner(r);\n if (child) {\n if (!pe) {\n return child;\n }\n return Skia.PathEffect.MakeCompose(pe, child);\n }\n return pe;\n }\n);\n\nexport const CornerPathEffect = (\n props: AnimatedProps<CornerPathEffectProps>\n) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}
1
+ {"version":3,"sources":["Corner.tsx"],"names":["onDeclare","children","r","Skia","child","filter","isPathEffect","pe","PathEffect","MakeCorner","MakeCompose","CornerPathEffect","props"],"mappings":";;;;;;;AACA;;AAEA;;AACA;;;;;;AAQA,MAAMA,SAAS,GAAG,oCAChB,OAAQC,QAAR,YAA+B;AAAA,MAA9B;AAAEC,IAAAA;AAAF,GAA8B;AAAA,MAAb;AAAEC,IAAAA;AAAF,GAAa;AAC7B,QAAM,CAACC,KAAD,IAAUH,QAAQ,CAACI,MAAT,CAAgBC,mBAAhB,CAAhB;AACA,QAAMC,EAAE,GAAGJ,IAAI,CAACK,UAAL,CAAgBC,UAAhB,CAA2BP,CAA3B,CAAX;;AACA,MAAIE,KAAJ,EAAW;AACT,QAAI,CAACG,EAAL,EAAS;AACP,aAAOH,KAAP;AACD;;AACD,WAAOD,IAAI,CAACK,UAAL,CAAgBE,WAAhB,CAA4BH,EAA5B,EAAgCH,KAAhC,CAAP;AACD;;AACD,SAAOG,EAAP;AACD,CAXe,CAAlB;;AAcO,MAAMI,gBAAgB,GAC3BC,KAD8B,IAE3B;AACH,sBAAO;AAAe,IAAA,SAAS,EAAEZ;AAA1B,KAAyCY,KAAzC,EAAP;AACD,CAJM","sourcesContent":["import type { ReactNode } from \"react\";\nimport React from \"react\";\n\nimport { isPathEffect } from \"../../../skia/types\";\nimport { createDeclaration } from \"../../nodes/Declaration\";\nimport type { AnimatedProps } from \"../../processors/Animations/Animations\";\n\nexport interface CornerPathEffectProps {\n r: number;\n children?: ReactNode | ReactNode[];\n}\n\nconst onDeclare = createDeclaration<CornerPathEffectProps>(\n ({ r }, children, { Skia }) => {\n const [child] = children.filter(isPathEffect);\n const pe = Skia.PathEffect.MakeCorner(r);\n if (child) {\n if (!pe) {\n return child;\n }\n return Skia.PathEffect.MakeCompose(pe, child);\n }\n return pe;\n }\n);\n\nexport const CornerPathEffect = (\n props: AnimatedProps<CornerPathEffectProps>\n) => {\n return <skDeclaration onDeclare={onDeclare} {...props} />;\n};\n"]}