@shopify/react-native-skia 0.1.171 → 0.1.172

Sign up to get free protection for your applications and to get access to all the features.
Files changed (656) hide show
  1. package/cpp/rnskia/RNSkJsiViewApi.h +2 -2
  2. package/cpp/rnskia/dom/nodes/JsiCustomDrawingNode.h +8 -1
  3. package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.mm +5 -1
  4. package/lib/commonjs/animation/decay/decay.d.ts +2 -0
  5. package/lib/commonjs/animation/decay/index.d.ts +1 -0
  6. package/lib/commonjs/animation/decay/runDecay.d.ts +10 -0
  7. package/lib/commonjs/animation/decay/types.d.ts +21 -0
  8. package/lib/commonjs/animation/functions/index.d.ts +4 -0
  9. package/lib/commonjs/animation/functions/interpolate.d.ts +17 -0
  10. package/lib/commonjs/animation/functions/interpolateColors.d.ts +3 -0
  11. package/lib/commonjs/animation/functions/interpolatePaths.d.ts +19 -0
  12. package/lib/commonjs/animation/functions/interpolateVector.d.ts +10 -0
  13. package/lib/commonjs/animation/index.d.ts +4 -0
  14. package/lib/commonjs/animation/spring/Spring.d.ts +65 -0
  15. package/lib/commonjs/animation/spring/functions/index.d.ts +1 -0
  16. package/lib/commonjs/animation/spring/functions/spring.d.ts +10 -0
  17. package/lib/commonjs/animation/spring/index.d.ts +3 -0
  18. package/lib/commonjs/animation/spring/runSpring.d.ts +16 -0
  19. package/lib/commonjs/animation/spring/types.d.ts +6 -0
  20. package/lib/commonjs/animation/spring/useSpring.d.ts +10 -0
  21. package/lib/commonjs/animation/timing/Easing.d.ts +19 -0
  22. package/lib/commonjs/animation/timing/createTiming.d.ts +17 -0
  23. package/lib/commonjs/animation/timing/functions/bezier.d.ts +1 -0
  24. package/lib/commonjs/animation/timing/functions/getResolvedParams.d.ts +7 -0
  25. package/lib/commonjs/animation/timing/functions/index.d.ts +4 -0
  26. package/lib/commonjs/animation/timing/functions/timing.d.ts +17 -0
  27. package/lib/commonjs/animation/timing/functions/types.d.ts +7 -0
  28. package/lib/commonjs/animation/timing/index.d.ts +4 -0
  29. package/lib/commonjs/animation/timing/runTiming.d.ts +16 -0
  30. package/lib/commonjs/animation/timing/useLoop.d.ts +8 -0
  31. package/lib/commonjs/animation/timing/useTiming.d.ts +10 -0
  32. package/lib/commonjs/animation/types.d.ts +18 -0
  33. package/lib/commonjs/dom/nodes/DrawingNode.d.ts +14 -0
  34. package/lib/commonjs/dom/nodes/GroupNode.d.ts +7 -0
  35. package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +65 -0
  36. package/lib/commonjs/dom/nodes/LayerNode.d.ts +8 -0
  37. package/lib/commonjs/dom/nodes/Node.d.ts +43 -0
  38. package/lib/commonjs/dom/nodes/PaintContext.d.ts +18 -0
  39. package/lib/commonjs/dom/nodes/PaintNode.d.ts +8 -0
  40. package/lib/commonjs/dom/nodes/RenderNode.d.ts +27 -0
  41. package/lib/commonjs/dom/nodes/datatypes/Circle.d.ts +7 -0
  42. package/lib/commonjs/dom/nodes/datatypes/Enum.d.ts +1 -0
  43. package/lib/commonjs/dom/nodes/datatypes/Fitting.d.ts +33 -0
  44. package/lib/commonjs/dom/nodes/datatypes/Gradient.d.ts +92 -0
  45. package/lib/commonjs/dom/nodes/datatypes/Path.d.ts +4 -0
  46. package/lib/commonjs/dom/nodes/datatypes/Radius.d.ts +3 -0
  47. package/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +5 -0
  48. package/lib/commonjs/dom/nodes/datatypes/Transform.d.ts +3 -0
  49. package/lib/commonjs/dom/nodes/datatypes/index.d.ts +8 -0
  50. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
  51. package/lib/commonjs/dom/nodes/drawings/Box.d.ts +13 -0
  52. package/lib/commonjs/dom/nodes/drawings/CircleNode.d.ts +9 -0
  53. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.d.ts +8 -0
  54. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
  55. package/lib/commonjs/dom/nodes/drawings/FillNode.d.ts +8 -0
  56. package/lib/commonjs/dom/nodes/drawings/ImageNode.d.ts +25 -0
  57. package/lib/commonjs/dom/nodes/drawings/ImageSVG.d.ts +8 -0
  58. package/lib/commonjs/dom/nodes/drawings/LineNode.d.ts +8 -0
  59. package/lib/commonjs/dom/nodes/drawings/OvalNode.d.ts +9 -0
  60. package/lib/commonjs/dom/nodes/drawings/PatchNode.d.ts +18 -0
  61. package/lib/commonjs/dom/nodes/drawings/PathNode.d.ts +9 -0
  62. package/lib/commonjs/dom/nodes/drawings/PictureNode.d.ts +8 -0
  63. package/lib/commonjs/dom/nodes/drawings/PointsNode.d.ts +8 -0
  64. package/lib/commonjs/dom/nodes/drawings/RRectNode.d.ts +10 -0
  65. package/lib/commonjs/dom/nodes/drawings/RectNode.d.ts +9 -0
  66. package/lib/commonjs/dom/nodes/drawings/Text.d.ts +30 -0
  67. package/lib/commonjs/dom/nodes/drawings/VerticesNode.d.ts +9 -0
  68. package/lib/commonjs/dom/nodes/drawings/index.d.ts +18 -0
  69. package/lib/commonjs/dom/nodes/index.d.ts +3 -0
  70. package/lib/commonjs/dom/nodes/paint/BlendNode.d.ts +12 -0
  71. package/lib/commonjs/dom/nodes/paint/ColorFilters.d.ts +36 -0
  72. package/lib/commonjs/dom/nodes/paint/ImageFilters.d.ts +42 -0
  73. package/lib/commonjs/dom/nodes/paint/MaskFilters.d.ts +8 -0
  74. package/lib/commonjs/dom/nodes/paint/PathEffects.d.ts +42 -0
  75. package/lib/commonjs/dom/nodes/paint/Shaders.d.ts +44 -0
  76. package/lib/commonjs/dom/nodes/paint/index.d.ts +6 -0
  77. package/lib/commonjs/dom/types/ColorFilters.d.ts +12 -0
  78. package/lib/commonjs/dom/types/Common.d.ts +56 -0
  79. package/lib/commonjs/dom/types/DrawingContext.d.ts +5 -0
  80. package/lib/commonjs/dom/types/Drawings.d.ts +104 -0
  81. package/lib/commonjs/dom/types/ImageFilters.d.ts +37 -0
  82. package/lib/commonjs/dom/types/MaskFilters.d.ts +7 -0
  83. package/lib/commonjs/dom/types/Node.d.ts +29 -0
  84. package/lib/commonjs/dom/types/NodeType.d.ts +67 -0
  85. package/lib/commonjs/dom/types/PathEffects.d.ts +28 -0
  86. package/lib/commonjs/dom/types/Shaders.d.ts +59 -0
  87. package/lib/commonjs/dom/types/SkDOM.d.ts +72 -0
  88. package/lib/commonjs/dom/types/index.d.ts +11 -0
  89. package/lib/commonjs/external/index.d.ts +1 -0
  90. package/lib/commonjs/external/reanimated/index.d.ts +1 -0
  91. package/lib/commonjs/external/reanimated/useSharedValueEffect.d.ts +11 -0
  92. package/lib/commonjs/index.d.ts +10 -0
  93. package/lib/commonjs/mock/index.d.ts +16 -0
  94. package/lib/commonjs/renderer/Canvas.d.ts +11 -0
  95. package/lib/commonjs/renderer/Container.d.ts +12 -0
  96. package/lib/commonjs/renderer/DependencyManager.d.ts +46 -0
  97. package/lib/commonjs/renderer/DrawingContext.d.ts +6 -0
  98. package/lib/commonjs/renderer/HostComponents.d.ts +132 -0
  99. package/lib/commonjs/renderer/HostConfig.d.ts +19 -0
  100. package/lib/commonjs/renderer/Reconciler.d.ts +13 -0
  101. package/lib/commonjs/renderer/components/Blend.d.ts +4 -0
  102. package/lib/commonjs/renderer/components/Drawing.d.ts +3 -0
  103. package/lib/commonjs/renderer/components/Group.d.ts +8 -0
  104. package/lib/commonjs/renderer/components/Mask.d.ts +9 -0
  105. package/lib/commonjs/renderer/components/Paint.d.ts +4 -0
  106. package/lib/commonjs/renderer/components/Picture.d.ts +4 -0
  107. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
  108. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
  109. package/lib/commonjs/renderer/components/backdrop/index.d.ts +2 -0
  110. package/lib/commonjs/renderer/components/colorFilters/BlendColor.d.ts +4 -0
  111. package/lib/commonjs/renderer/components/colorFilters/Lerp.d.ts +4 -0
  112. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
  113. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
  114. package/lib/commonjs/renderer/components/colorFilters/Matrix.d.ts +5 -0
  115. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
  116. package/lib/commonjs/renderer/components/colorFilters/index.d.ts +6 -0
  117. package/lib/commonjs/renderer/components/image/Image.d.ts +4 -0
  118. package/lib/commonjs/renderer/components/image/ImageSVG.d.ts +4 -0
  119. package/lib/commonjs/renderer/components/image/ImageShader.d.ts +4 -0
  120. package/lib/commonjs/renderer/components/image/index.d.ts +3 -0
  121. package/lib/commonjs/renderer/components/imageFilters/Blur.d.ts +4 -0
  122. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
  123. package/lib/commonjs/renderer/components/imageFilters/Morphology.d.ts +4 -0
  124. package/lib/commonjs/renderer/components/imageFilters/Offset.d.ts +4 -0
  125. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
  126. package/lib/commonjs/renderer/components/imageFilters/Shadow.d.ts +4 -0
  127. package/lib/commonjs/renderer/components/imageFilters/index.d.ts +6 -0
  128. package/lib/commonjs/renderer/components/index.d.ts +16 -0
  129. package/lib/commonjs/renderer/components/maskFilters/Blur.d.ts +4 -0
  130. package/lib/commonjs/renderer/components/maskFilters/index.d.ts +1 -0
  131. package/lib/commonjs/renderer/components/pathEffects/Corner.d.ts +4 -0
  132. package/lib/commonjs/renderer/components/pathEffects/Dash.d.ts +4 -0
  133. package/lib/commonjs/renderer/components/pathEffects/Discrete.d.ts +4 -0
  134. package/lib/commonjs/renderer/components/pathEffects/Line2D.d.ts +4 -0
  135. package/lib/commonjs/renderer/components/pathEffects/Path1D.d.ts +4 -0
  136. package/lib/commonjs/renderer/components/pathEffects/Path2D.d.ts +4 -0
  137. package/lib/commonjs/renderer/components/pathEffects/Sum.d.ts +3 -0
  138. package/lib/commonjs/renderer/components/pathEffects/index.d.ts +7 -0
  139. package/lib/commonjs/renderer/components/shaders/Color.d.ts +4 -0
  140. package/lib/commonjs/renderer/components/shaders/FractalNoise.d.ts +4 -0
  141. package/lib/commonjs/renderer/components/shaders/LinearGradient.d.ts +4 -0
  142. package/lib/commonjs/renderer/components/shaders/RadialGradient.d.ts +4 -0
  143. package/lib/commonjs/renderer/components/shaders/Shader.d.ts +4 -0
  144. package/lib/commonjs/renderer/components/shaders/ShaderLib.d.ts +4 -0
  145. package/lib/commonjs/renderer/components/shaders/SweepGradient.d.ts +4 -0
  146. package/lib/commonjs/renderer/components/shaders/Turbulence.d.ts +4 -0
  147. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
  148. package/lib/commonjs/renderer/components/shaders/index.d.ts +9 -0
  149. package/lib/commonjs/renderer/components/shapes/Box.d.ts +5 -0
  150. package/lib/commonjs/renderer/components/shapes/Circle.d.ts +4 -0
  151. package/lib/commonjs/renderer/components/shapes/DiffRect.d.ts +4 -0
  152. package/lib/commonjs/renderer/components/shapes/Fill.d.ts +4 -0
  153. package/lib/commonjs/renderer/components/shapes/FitBox.d.ts +20 -0
  154. package/lib/commonjs/renderer/components/shapes/Line.d.ts +4 -0
  155. package/lib/commonjs/renderer/components/shapes/Oval.d.ts +4 -0
  156. package/lib/commonjs/renderer/components/shapes/Patch.d.ts +4 -0
  157. package/lib/commonjs/renderer/components/shapes/Path.d.ts +4 -0
  158. package/lib/commonjs/renderer/components/shapes/Points.d.ts +4 -0
  159. package/lib/commonjs/renderer/components/shapes/Rect.d.ts +4 -0
  160. package/lib/commonjs/renderer/components/shapes/RoundedRect.d.ts +4 -0
  161. package/lib/commonjs/renderer/components/shapes/Vertices.d.ts +4 -0
  162. package/lib/commonjs/renderer/components/shapes/index.d.ts +13 -0
  163. package/lib/commonjs/renderer/components/text/Glyphs.d.ts +4 -0
  164. package/lib/commonjs/renderer/components/text/Text.d.ts +4 -0
  165. package/lib/commonjs/renderer/components/text/TextBlob.d.ts +4 -0
  166. package/lib/commonjs/renderer/components/text/TextPath.d.ts +4 -0
  167. package/lib/commonjs/renderer/components/text/index.d.ts +4 -0
  168. package/lib/commonjs/renderer/index.d.ts +2 -0
  169. package/lib/commonjs/renderer/index.js +0 -13
  170. package/lib/commonjs/renderer/index.js.map +1 -1
  171. package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +17 -0
  172. package/lib/commonjs/renderer/processors/Animations/index.d.ts +1 -0
  173. package/lib/commonjs/renderer/processors/index.d.ts +2 -0
  174. package/lib/commonjs/renderer/processors/math/Coordinates.d.ts +29 -0
  175. package/lib/commonjs/renderer/processors/math/Math.d.ts +15 -0
  176. package/lib/commonjs/renderer/processors/math/Transforms.d.ts +5 -0
  177. package/lib/commonjs/renderer/processors/math/index.d.ts +3 -0
  178. package/lib/commonjs/renderer/typeddash.d.ts +3 -0
  179. package/lib/commonjs/skia/NativeSetup.d.ts +1 -0
  180. package/lib/commonjs/skia/Skia.d.ts +8 -0
  181. package/lib/commonjs/skia/Skia.web.d.ts +1 -0
  182. package/lib/commonjs/skia/core/Data.d.ts +3 -0
  183. package/lib/commonjs/skia/core/Font.d.ts +5 -0
  184. package/lib/commonjs/skia/core/Image.d.ts +5 -0
  185. package/lib/commonjs/skia/core/Matrix.d.ts +2 -0
  186. package/lib/commonjs/skia/core/Picture.d.ts +8 -0
  187. package/lib/commonjs/skia/core/RRect.d.ts +2 -0
  188. package/lib/commonjs/skia/core/Rect.d.ts +8 -0
  189. package/lib/commonjs/skia/core/SVG.d.ts +2 -0
  190. package/lib/commonjs/skia/core/Typeface.d.ts +5 -0
  191. package/lib/commonjs/skia/core/Vector.d.ts +12 -0
  192. package/lib/commonjs/skia/core/index.d.ts +10 -0
  193. package/lib/commonjs/skia/index.d.ts +3 -0
  194. package/lib/commonjs/skia/types/Canvas.d.ts +381 -0
  195. package/lib/commonjs/skia/types/Color.d.ts +2 -0
  196. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
  197. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
  198. package/lib/commonjs/skia/types/ColorFilter/index.d.ts +2 -0
  199. package/lib/commonjs/skia/types/ContourMeasure.d.ts +41 -0
  200. package/lib/commonjs/skia/types/Data/Data.d.ts +12 -0
  201. package/lib/commonjs/skia/types/Data/DataFactory.d.ts +18 -0
  202. package/lib/commonjs/skia/types/Data/index.d.ts +2 -0
  203. package/lib/commonjs/skia/types/Font/Font.d.ts +180 -0
  204. package/lib/commonjs/skia/types/Font/index.d.ts +1 -0
  205. package/lib/commonjs/skia/types/Image/Image.d.ts +75 -0
  206. package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +62 -0
  207. package/lib/commonjs/skia/types/Image/index.d.ts +2 -0
  208. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
  209. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
  210. package/lib/commonjs/skia/types/ImageFilter/index.d.ts +2 -0
  211. package/lib/commonjs/skia/types/JsiInstance.d.ts +3 -0
  212. package/lib/commonjs/skia/types/MaskFilter.d.ts +21 -0
  213. package/lib/commonjs/skia/types/Matrix.d.ts +34 -0
  214. package/lib/commonjs/skia/types/Paint/BlendMode.d.ts +58 -0
  215. package/lib/commonjs/skia/types/Paint/Paint.d.ts +136 -0
  216. package/lib/commonjs/skia/types/Paint/index.d.ts +2 -0
  217. package/lib/commonjs/skia/types/Path/Path.d.ts +474 -0
  218. package/lib/commonjs/skia/types/Path/PathFactory.d.ts +29 -0
  219. package/lib/commonjs/skia/types/Path/index.d.ts +2 -0
  220. package/lib/commonjs/skia/types/PathEffect.d.ts +75 -0
  221. package/lib/commonjs/skia/types/Picture/Picture.d.ts +27 -0
  222. package/lib/commonjs/skia/types/Picture/PictureFactory.d.ts +8 -0
  223. package/lib/commonjs/skia/types/Picture/PictureRecorder.d.ts +15 -0
  224. package/lib/commonjs/skia/types/Picture/index.d.ts +3 -0
  225. package/lib/commonjs/skia/types/Point.d.ts +10 -0
  226. package/lib/commonjs/skia/types/RRect.d.ts +7 -0
  227. package/lib/commonjs/skia/types/RSXform.d.ts +2 -0
  228. package/lib/commonjs/skia/types/Rect.d.ts +6 -0
  229. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
  230. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
  231. package/lib/commonjs/skia/types/RuntimeEffect/index.d.ts +2 -0
  232. package/lib/commonjs/skia/types/SVG/SVG.d.ts +2 -0
  233. package/lib/commonjs/skia/types/SVG/SVGFactory.d.ts +6 -0
  234. package/lib/commonjs/skia/types/SVG/index.d.ts +2 -0
  235. package/lib/commonjs/skia/types/Shader/Shader.d.ts +10 -0
  236. package/lib/commonjs/skia/types/Shader/ShaderFactory.d.ts +104 -0
  237. package/lib/commonjs/skia/types/Shader/index.d.ts +2 -0
  238. package/lib/commonjs/skia/types/Size.d.ts +4 -0
  239. package/lib/commonjs/skia/types/Skia.d.ts +66 -0
  240. package/lib/commonjs/skia/types/Surface/Surface.d.ts +25 -0
  241. package/lib/commonjs/skia/types/Surface/SurfaceFactory.d.ts +11 -0
  242. package/lib/commonjs/skia/types/Surface/index.d.ts +2 -0
  243. package/lib/commonjs/skia/types/TextBlob.d.ts +44 -0
  244. package/lib/commonjs/skia/types/Typeface/Typeface.d.ts +2 -0
  245. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
  246. package/lib/commonjs/skia/types/Typeface/index.d.ts +2 -0
  247. package/lib/commonjs/skia/types/Vertices/Vertices.d.ts +17 -0
  248. package/lib/commonjs/skia/types/Vertices/index.d.ts +1 -0
  249. package/lib/commonjs/skia/types/index.d.ts +28 -0
  250. package/lib/commonjs/skia/web/Host.d.ts +19 -0
  251. package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +44 -0
  252. package/lib/commonjs/skia/web/JsiSkColor.d.ts +2 -0
  253. package/lib/commonjs/skia/web/JsiSkColorFilter.d.ts +6 -0
  254. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  255. package/lib/commonjs/skia/web/JsiSkContourMeasure.d.ts +12 -0
  256. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  257. package/lib/commonjs/skia/web/JsiSkData.d.ts +8 -0
  258. package/lib/commonjs/skia/web/JsiSkDataFactory.d.ts +19 -0
  259. package/lib/commonjs/skia/web/JsiSkFont.d.ts +33 -0
  260. package/lib/commonjs/skia/web/JsiSkImage.d.ts +12 -0
  261. package/lib/commonjs/skia/web/JsiSkImageFactory.d.ts +10 -0
  262. package/lib/commonjs/skia/web/JsiSkImageFilter.d.ts +6 -0
  263. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
  264. package/lib/commonjs/skia/web/JsiSkMaskFilter.d.ts +6 -0
  265. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  266. package/lib/commonjs/skia/web/JsiSkMatrix.d.ts +13 -0
  267. package/lib/commonjs/skia/web/JsiSkPaint.d.ts +28 -0
  268. package/lib/commonjs/skia/web/JsiSkPath.d.ts +57 -0
  269. package/lib/commonjs/skia/web/JsiSkPathEffect.d.ts +6 -0
  270. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  271. package/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +13 -0
  272. package/lib/commonjs/skia/web/JsiSkPicture.d.ts +9 -0
  273. package/lib/commonjs/skia/web/JsiSkPictureFactory.d.ts +8 -0
  274. package/lib/commonjs/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  275. package/lib/commonjs/skia/web/JsiSkPoint.d.ts +9 -0
  276. package/lib/commonjs/skia/web/JsiSkRRect.d.ts +11 -0
  277. package/lib/commonjs/skia/web/JsiSkRSXform.d.ts +7 -0
  278. package/lib/commonjs/skia/web/JsiSkRect.d.ts +11 -0
  279. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.d.ts +16 -0
  280. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  281. package/lib/commonjs/skia/web/JsiSkSVGFactory.d.ts +9 -0
  282. package/lib/commonjs/skia/web/JsiSkShader.d.ts +6 -0
  283. package/lib/commonjs/skia/web/JsiSkShaderFactory.d.ts +16 -0
  284. package/lib/commonjs/skia/web/JsiSkSurface.d.ts +8 -0
  285. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
  286. package/lib/commonjs/skia/web/JsiSkTextBlob.d.ts +6 -0
  287. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
  288. package/lib/commonjs/skia/web/JsiSkTypeface.d.ts +8 -0
  289. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  290. package/lib/commonjs/skia/web/JsiSkVertices.d.ts +9 -0
  291. package/lib/commonjs/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  292. package/lib/commonjs/skia/web/JsiSkia.d.ts +3 -0
  293. package/lib/commonjs/skia/web/index.d.ts +1 -0
  294. package/lib/commonjs/values/api.d.ts +5 -0
  295. package/lib/commonjs/values/api.web.d.ts +2 -0
  296. package/lib/commonjs/values/hooks/index.d.ts +4 -0
  297. package/lib/commonjs/values/hooks/useClockValue.d.ts +6 -0
  298. package/lib/commonjs/values/hooks/useComputedValue.d.ts +8 -0
  299. package/lib/commonjs/values/hooks/useValue.d.ts +7 -0
  300. package/lib/commonjs/values/hooks/useValueEffect.d.ts +7 -0
  301. package/lib/commonjs/values/index.d.ts +4 -0
  302. package/lib/commonjs/values/selector.d.ts +14 -0
  303. package/lib/commonjs/values/types.d.ts +63 -0
  304. package/lib/commonjs/values/web/RNSkAnimation.d.ts +9 -0
  305. package/lib/commonjs/values/web/RNSkClockValue.d.ts +13 -0
  306. package/lib/commonjs/values/web/RNSkComputedValue.d.ts +10 -0
  307. package/lib/commonjs/values/web/RNSkReadonlyValue.d.ts +12 -0
  308. package/lib/commonjs/values/web/RNSkValue.d.ts +14 -0
  309. package/lib/commonjs/values/web/api.d.ts +2 -0
  310. package/lib/commonjs/values/web/index.d.ts +1 -0
  311. package/lib/commonjs/views/SkiaBaseWebView.d.ts +62 -0
  312. package/lib/commonjs/views/SkiaDomView.d.ts +31 -0
  313. package/lib/commonjs/views/SkiaDomView.web.d.ts +7 -0
  314. package/lib/commonjs/views/SkiaPictureView.d.ts +27 -0
  315. package/lib/commonjs/views/SkiaPictureView.web.d.ts +7 -0
  316. package/lib/commonjs/views/SkiaView.d.ts +30 -0
  317. package/lib/commonjs/views/SkiaView.web.d.ts +7 -0
  318. package/lib/commonjs/views/api.d.ts +5 -0
  319. package/lib/commonjs/views/index.d.ts +6 -0
  320. package/lib/commonjs/views/types.d.ts +91 -0
  321. package/lib/commonjs/views/useDrawCallback.d.ts +8 -0
  322. package/lib/commonjs/views/useTouchHandler.d.ts +22 -0
  323. package/lib/commonjs/web/LoadSkiaWeb.d.ts +6 -0
  324. package/lib/commonjs/web/WithSkiaWeb.d.ts +12 -0
  325. package/lib/commonjs/web/index.d.ts +2 -0
  326. package/lib/module/animation/decay/decay.d.ts +2 -0
  327. package/lib/module/animation/decay/index.d.ts +1 -0
  328. package/lib/module/animation/decay/runDecay.d.ts +10 -0
  329. package/lib/module/animation/decay/types.d.ts +21 -0
  330. package/lib/module/animation/functions/index.d.ts +4 -0
  331. package/lib/module/animation/functions/interpolate.d.ts +17 -0
  332. package/lib/module/animation/functions/interpolateColors.d.ts +3 -0
  333. package/lib/module/animation/functions/interpolatePaths.d.ts +19 -0
  334. package/lib/module/animation/functions/interpolateVector.d.ts +10 -0
  335. package/lib/module/animation/index.d.ts +4 -0
  336. package/lib/module/animation/spring/Spring.d.ts +65 -0
  337. package/lib/module/animation/spring/functions/index.d.ts +1 -0
  338. package/lib/module/animation/spring/functions/spring.d.ts +10 -0
  339. package/lib/module/animation/spring/index.d.ts +3 -0
  340. package/lib/module/animation/spring/runSpring.d.ts +16 -0
  341. package/lib/module/animation/spring/types.d.ts +6 -0
  342. package/lib/module/animation/spring/useSpring.d.ts +10 -0
  343. package/lib/module/animation/timing/Easing.d.ts +19 -0
  344. package/lib/module/animation/timing/createTiming.d.ts +17 -0
  345. package/lib/module/animation/timing/functions/bezier.d.ts +1 -0
  346. package/lib/module/animation/timing/functions/getResolvedParams.d.ts +7 -0
  347. package/lib/module/animation/timing/functions/index.d.ts +4 -0
  348. package/lib/module/animation/timing/functions/timing.d.ts +17 -0
  349. package/lib/module/animation/timing/functions/types.d.ts +7 -0
  350. package/lib/module/animation/timing/index.d.ts +4 -0
  351. package/lib/module/animation/timing/runTiming.d.ts +16 -0
  352. package/lib/module/animation/timing/useLoop.d.ts +8 -0
  353. package/lib/module/animation/timing/useTiming.d.ts +10 -0
  354. package/lib/module/animation/types.d.ts +18 -0
  355. package/lib/module/dom/nodes/DrawingNode.d.ts +14 -0
  356. package/lib/module/dom/nodes/GroupNode.d.ts +7 -0
  357. package/lib/module/dom/nodes/JsiSkDOM.d.ts +65 -0
  358. package/lib/module/dom/nodes/LayerNode.d.ts +8 -0
  359. package/lib/module/dom/nodes/Node.d.ts +43 -0
  360. package/lib/module/dom/nodes/PaintContext.d.ts +18 -0
  361. package/lib/module/dom/nodes/PaintNode.d.ts +8 -0
  362. package/lib/module/dom/nodes/RenderNode.d.ts +27 -0
  363. package/lib/module/dom/nodes/datatypes/Circle.d.ts +7 -0
  364. package/lib/module/dom/nodes/datatypes/Enum.d.ts +1 -0
  365. package/lib/module/dom/nodes/datatypes/Fitting.d.ts +33 -0
  366. package/lib/module/dom/nodes/datatypes/Gradient.d.ts +92 -0
  367. package/lib/module/dom/nodes/datatypes/Path.d.ts +4 -0
  368. package/lib/module/dom/nodes/datatypes/Radius.d.ts +3 -0
  369. package/lib/module/dom/nodes/datatypes/Rect.d.ts +5 -0
  370. package/lib/module/dom/nodes/datatypes/Transform.d.ts +3 -0
  371. package/lib/module/dom/nodes/datatypes/index.d.ts +8 -0
  372. package/lib/module/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
  373. package/lib/module/dom/nodes/drawings/Box.d.ts +13 -0
  374. package/lib/module/dom/nodes/drawings/CircleNode.d.ts +9 -0
  375. package/lib/module/dom/nodes/drawings/CustomDrawingNode.d.ts +8 -0
  376. package/lib/module/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
  377. package/lib/module/dom/nodes/drawings/FillNode.d.ts +8 -0
  378. package/lib/module/dom/nodes/drawings/ImageNode.d.ts +25 -0
  379. package/lib/module/dom/nodes/drawings/ImageSVG.d.ts +8 -0
  380. package/lib/module/dom/nodes/drawings/LineNode.d.ts +8 -0
  381. package/lib/module/dom/nodes/drawings/OvalNode.d.ts +9 -0
  382. package/lib/module/dom/nodes/drawings/PatchNode.d.ts +18 -0
  383. package/lib/module/dom/nodes/drawings/PathNode.d.ts +9 -0
  384. package/lib/module/dom/nodes/drawings/PictureNode.d.ts +8 -0
  385. package/lib/module/dom/nodes/drawings/PointsNode.d.ts +8 -0
  386. package/lib/module/dom/nodes/drawings/RRectNode.d.ts +10 -0
  387. package/lib/module/dom/nodes/drawings/RectNode.d.ts +9 -0
  388. package/lib/module/dom/nodes/drawings/Text.d.ts +30 -0
  389. package/lib/module/dom/nodes/drawings/VerticesNode.d.ts +9 -0
  390. package/lib/module/dom/nodes/drawings/index.d.ts +18 -0
  391. package/lib/module/dom/nodes/index.d.ts +3 -0
  392. package/lib/module/dom/nodes/paint/BlendNode.d.ts +12 -0
  393. package/lib/module/dom/nodes/paint/ColorFilters.d.ts +36 -0
  394. package/lib/module/dom/nodes/paint/ImageFilters.d.ts +42 -0
  395. package/lib/module/dom/nodes/paint/MaskFilters.d.ts +8 -0
  396. package/lib/module/dom/nodes/paint/PathEffects.d.ts +42 -0
  397. package/lib/module/dom/nodes/paint/Shaders.d.ts +44 -0
  398. package/lib/module/dom/nodes/paint/index.d.ts +6 -0
  399. package/lib/module/dom/types/ColorFilters.d.ts +12 -0
  400. package/lib/module/dom/types/Common.d.ts +56 -0
  401. package/lib/module/dom/types/DrawingContext.d.ts +5 -0
  402. package/lib/module/dom/types/Drawings.d.ts +104 -0
  403. package/lib/module/dom/types/ImageFilters.d.ts +37 -0
  404. package/lib/module/dom/types/MaskFilters.d.ts +7 -0
  405. package/lib/module/dom/types/Node.d.ts +29 -0
  406. package/lib/module/dom/types/NodeType.d.ts +67 -0
  407. package/lib/module/dom/types/PathEffects.d.ts +28 -0
  408. package/lib/module/dom/types/Shaders.d.ts +59 -0
  409. package/lib/module/dom/types/SkDOM.d.ts +72 -0
  410. package/lib/module/dom/types/index.d.ts +11 -0
  411. package/lib/module/external/index.d.ts +1 -0
  412. package/lib/module/external/reanimated/index.d.ts +1 -0
  413. package/lib/module/external/reanimated/useSharedValueEffect.d.ts +11 -0
  414. package/lib/module/index.d.ts +10 -0
  415. package/lib/module/mock/index.d.ts +16 -0
  416. package/lib/module/renderer/Canvas.d.ts +11 -0
  417. package/lib/module/renderer/Container.d.ts +12 -0
  418. package/lib/module/renderer/DependencyManager.d.ts +46 -0
  419. package/lib/module/renderer/DrawingContext.d.ts +6 -0
  420. package/lib/module/renderer/HostComponents.d.ts +132 -0
  421. package/lib/module/renderer/HostConfig.d.ts +19 -0
  422. package/lib/module/renderer/Reconciler.d.ts +13 -0
  423. package/lib/module/renderer/components/Blend.d.ts +4 -0
  424. package/lib/module/renderer/components/Drawing.d.ts +3 -0
  425. package/lib/module/renderer/components/Group.d.ts +8 -0
  426. package/lib/module/renderer/components/Mask.d.ts +9 -0
  427. package/lib/module/renderer/components/Paint.d.ts +4 -0
  428. package/lib/module/renderer/components/Picture.d.ts +4 -0
  429. package/lib/module/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
  430. package/lib/module/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
  431. package/lib/module/renderer/components/backdrop/index.d.ts +2 -0
  432. package/lib/module/renderer/components/colorFilters/BlendColor.d.ts +4 -0
  433. package/lib/module/renderer/components/colorFilters/Lerp.d.ts +4 -0
  434. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
  435. package/lib/module/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
  436. package/lib/module/renderer/components/colorFilters/Matrix.d.ts +5 -0
  437. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
  438. package/lib/module/renderer/components/colorFilters/index.d.ts +6 -0
  439. package/lib/module/renderer/components/image/Image.d.ts +4 -0
  440. package/lib/module/renderer/components/image/ImageSVG.d.ts +4 -0
  441. package/lib/module/renderer/components/image/ImageShader.d.ts +4 -0
  442. package/lib/module/renderer/components/image/index.d.ts +3 -0
  443. package/lib/module/renderer/components/imageFilters/Blur.d.ts +4 -0
  444. package/lib/module/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
  445. package/lib/module/renderer/components/imageFilters/Morphology.d.ts +4 -0
  446. package/lib/module/renderer/components/imageFilters/Offset.d.ts +4 -0
  447. package/lib/module/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
  448. package/lib/module/renderer/components/imageFilters/Shadow.d.ts +4 -0
  449. package/lib/module/renderer/components/imageFilters/index.d.ts +6 -0
  450. package/lib/module/renderer/components/index.d.ts +16 -0
  451. package/lib/module/renderer/components/maskFilters/Blur.d.ts +4 -0
  452. package/lib/module/renderer/components/maskFilters/index.d.ts +1 -0
  453. package/lib/module/renderer/components/pathEffects/Corner.d.ts +4 -0
  454. package/lib/module/renderer/components/pathEffects/Dash.d.ts +4 -0
  455. package/lib/module/renderer/components/pathEffects/Discrete.d.ts +4 -0
  456. package/lib/module/renderer/components/pathEffects/Line2D.d.ts +4 -0
  457. package/lib/module/renderer/components/pathEffects/Path1D.d.ts +4 -0
  458. package/lib/module/renderer/components/pathEffects/Path2D.d.ts +4 -0
  459. package/lib/module/renderer/components/pathEffects/Sum.d.ts +3 -0
  460. package/lib/module/renderer/components/pathEffects/index.d.ts +7 -0
  461. package/lib/module/renderer/components/shaders/Color.d.ts +4 -0
  462. package/lib/module/renderer/components/shaders/FractalNoise.d.ts +4 -0
  463. package/lib/module/renderer/components/shaders/LinearGradient.d.ts +4 -0
  464. package/lib/module/renderer/components/shaders/RadialGradient.d.ts +4 -0
  465. package/lib/module/renderer/components/shaders/Shader.d.ts +4 -0
  466. package/lib/module/renderer/components/shaders/ShaderLib.d.ts +4 -0
  467. package/lib/module/renderer/components/shaders/SweepGradient.d.ts +4 -0
  468. package/lib/module/renderer/components/shaders/Turbulence.d.ts +4 -0
  469. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
  470. package/lib/module/renderer/components/shaders/index.d.ts +9 -0
  471. package/lib/module/renderer/components/shapes/Box.d.ts +5 -0
  472. package/lib/module/renderer/components/shapes/Circle.d.ts +4 -0
  473. package/lib/module/renderer/components/shapes/DiffRect.d.ts +4 -0
  474. package/lib/module/renderer/components/shapes/Fill.d.ts +4 -0
  475. package/lib/module/renderer/components/shapes/FitBox.d.ts +20 -0
  476. package/lib/module/renderer/components/shapes/Line.d.ts +4 -0
  477. package/lib/module/renderer/components/shapes/Oval.d.ts +4 -0
  478. package/lib/module/renderer/components/shapes/Patch.d.ts +4 -0
  479. package/lib/module/renderer/components/shapes/Path.d.ts +4 -0
  480. package/lib/module/renderer/components/shapes/Points.d.ts +4 -0
  481. package/lib/module/renderer/components/shapes/Rect.d.ts +4 -0
  482. package/lib/module/renderer/components/shapes/RoundedRect.d.ts +4 -0
  483. package/lib/module/renderer/components/shapes/Vertices.d.ts +4 -0
  484. package/lib/module/renderer/components/shapes/index.d.ts +13 -0
  485. package/lib/module/renderer/components/text/Glyphs.d.ts +4 -0
  486. package/lib/module/renderer/components/text/Text.d.ts +4 -0
  487. package/lib/module/renderer/components/text/TextBlob.d.ts +4 -0
  488. package/lib/module/renderer/components/text/TextPath.d.ts +4 -0
  489. package/lib/module/renderer/components/text/index.d.ts +4 -0
  490. package/lib/module/renderer/index.d.ts +2 -0
  491. package/lib/module/renderer/index.js +0 -1
  492. package/lib/module/renderer/index.js.map +1 -1
  493. package/lib/module/renderer/processors/Animations/Animations.d.ts +17 -0
  494. package/lib/module/renderer/processors/Animations/index.d.ts +1 -0
  495. package/lib/module/renderer/processors/index.d.ts +2 -0
  496. package/lib/module/renderer/processors/math/Coordinates.d.ts +29 -0
  497. package/lib/module/renderer/processors/math/Math.d.ts +15 -0
  498. package/lib/module/renderer/processors/math/Transforms.d.ts +5 -0
  499. package/lib/module/renderer/processors/math/index.d.ts +3 -0
  500. package/lib/module/renderer/typeddash.d.ts +3 -0
  501. package/lib/module/skia/NativeSetup.d.ts +1 -0
  502. package/lib/module/skia/Skia.d.ts +8 -0
  503. package/lib/module/skia/Skia.web.d.ts +1 -0
  504. package/lib/module/skia/core/Data.d.ts +3 -0
  505. package/lib/module/skia/core/Font.d.ts +5 -0
  506. package/lib/module/skia/core/Image.d.ts +5 -0
  507. package/lib/module/skia/core/Matrix.d.ts +2 -0
  508. package/lib/module/skia/core/Picture.d.ts +8 -0
  509. package/lib/module/skia/core/RRect.d.ts +2 -0
  510. package/lib/module/skia/core/Rect.d.ts +8 -0
  511. package/lib/module/skia/core/SVG.d.ts +2 -0
  512. package/lib/module/skia/core/Typeface.d.ts +5 -0
  513. package/lib/module/skia/core/Vector.d.ts +12 -0
  514. package/lib/module/skia/core/index.d.ts +10 -0
  515. package/lib/module/skia/index.d.ts +3 -0
  516. package/lib/module/skia/types/Canvas.d.ts +381 -0
  517. package/lib/module/skia/types/Color.d.ts +2 -0
  518. package/lib/module/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
  519. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
  520. package/lib/module/skia/types/ColorFilter/index.d.ts +2 -0
  521. package/lib/module/skia/types/ContourMeasure.d.ts +41 -0
  522. package/lib/module/skia/types/Data/Data.d.ts +12 -0
  523. package/lib/module/skia/types/Data/DataFactory.d.ts +18 -0
  524. package/lib/module/skia/types/Data/index.d.ts +2 -0
  525. package/lib/module/skia/types/Font/Font.d.ts +180 -0
  526. package/lib/module/skia/types/Font/index.d.ts +1 -0
  527. package/lib/module/skia/types/Image/Image.d.ts +75 -0
  528. package/lib/module/skia/types/Image/ImageFactory.d.ts +62 -0
  529. package/lib/module/skia/types/Image/index.d.ts +2 -0
  530. package/lib/module/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
  531. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
  532. package/lib/module/skia/types/ImageFilter/index.d.ts +2 -0
  533. package/lib/module/skia/types/JsiInstance.d.ts +3 -0
  534. package/lib/module/skia/types/MaskFilter.d.ts +21 -0
  535. package/lib/module/skia/types/Matrix.d.ts +34 -0
  536. package/lib/module/skia/types/Paint/BlendMode.d.ts +58 -0
  537. package/lib/module/skia/types/Paint/Paint.d.ts +136 -0
  538. package/lib/module/skia/types/Paint/index.d.ts +2 -0
  539. package/lib/module/skia/types/Path/Path.d.ts +474 -0
  540. package/lib/module/skia/types/Path/PathFactory.d.ts +29 -0
  541. package/lib/module/skia/types/Path/index.d.ts +2 -0
  542. package/lib/module/skia/types/PathEffect.d.ts +75 -0
  543. package/lib/module/skia/types/Picture/Picture.d.ts +27 -0
  544. package/lib/module/skia/types/Picture/PictureFactory.d.ts +8 -0
  545. package/lib/module/skia/types/Picture/PictureRecorder.d.ts +15 -0
  546. package/lib/module/skia/types/Picture/index.d.ts +3 -0
  547. package/lib/module/skia/types/Point.d.ts +10 -0
  548. package/lib/module/skia/types/RRect.d.ts +7 -0
  549. package/lib/module/skia/types/RSXform.d.ts +2 -0
  550. package/lib/module/skia/types/Rect.d.ts +6 -0
  551. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
  552. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
  553. package/lib/module/skia/types/RuntimeEffect/index.d.ts +2 -0
  554. package/lib/module/skia/types/SVG/SVG.d.ts +2 -0
  555. package/lib/module/skia/types/SVG/SVGFactory.d.ts +6 -0
  556. package/lib/module/skia/types/SVG/index.d.ts +2 -0
  557. package/lib/module/skia/types/Shader/Shader.d.ts +10 -0
  558. package/lib/module/skia/types/Shader/ShaderFactory.d.ts +104 -0
  559. package/lib/module/skia/types/Shader/index.d.ts +2 -0
  560. package/lib/module/skia/types/Size.d.ts +4 -0
  561. package/lib/module/skia/types/Skia.d.ts +66 -0
  562. package/lib/module/skia/types/Surface/Surface.d.ts +25 -0
  563. package/lib/module/skia/types/Surface/SurfaceFactory.d.ts +11 -0
  564. package/lib/module/skia/types/Surface/index.d.ts +2 -0
  565. package/lib/module/skia/types/TextBlob.d.ts +44 -0
  566. package/lib/module/skia/types/Typeface/Typeface.d.ts +2 -0
  567. package/lib/module/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
  568. package/lib/module/skia/types/Typeface/index.d.ts +2 -0
  569. package/lib/module/skia/types/Vertices/Vertices.d.ts +17 -0
  570. package/lib/module/skia/types/Vertices/index.d.ts +1 -0
  571. package/lib/module/skia/types/index.d.ts +28 -0
  572. package/lib/module/skia/web/Host.d.ts +19 -0
  573. package/lib/module/skia/web/JsiSkCanvas.d.ts +44 -0
  574. package/lib/module/skia/web/JsiSkColor.d.ts +2 -0
  575. package/lib/module/skia/web/JsiSkColorFilter.d.ts +6 -0
  576. package/lib/module/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  577. package/lib/module/skia/web/JsiSkContourMeasure.d.ts +12 -0
  578. package/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  579. package/lib/module/skia/web/JsiSkData.d.ts +8 -0
  580. package/lib/module/skia/web/JsiSkDataFactory.d.ts +19 -0
  581. package/lib/module/skia/web/JsiSkFont.d.ts +33 -0
  582. package/lib/module/skia/web/JsiSkImage.d.ts +12 -0
  583. package/lib/module/skia/web/JsiSkImageFactory.d.ts +10 -0
  584. package/lib/module/skia/web/JsiSkImageFilter.d.ts +6 -0
  585. package/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
  586. package/lib/module/skia/web/JsiSkMaskFilter.d.ts +6 -0
  587. package/lib/module/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  588. package/lib/module/skia/web/JsiSkMatrix.d.ts +13 -0
  589. package/lib/module/skia/web/JsiSkPaint.d.ts +28 -0
  590. package/lib/module/skia/web/JsiSkPath.d.ts +57 -0
  591. package/lib/module/skia/web/JsiSkPathEffect.d.ts +6 -0
  592. package/lib/module/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  593. package/lib/module/skia/web/JsiSkPathFactory.d.ts +13 -0
  594. package/lib/module/skia/web/JsiSkPicture.d.ts +9 -0
  595. package/lib/module/skia/web/JsiSkPictureFactory.d.ts +8 -0
  596. package/lib/module/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  597. package/lib/module/skia/web/JsiSkPoint.d.ts +9 -0
  598. package/lib/module/skia/web/JsiSkRRect.d.ts +11 -0
  599. package/lib/module/skia/web/JsiSkRSXform.d.ts +7 -0
  600. package/lib/module/skia/web/JsiSkRect.d.ts +11 -0
  601. package/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +16 -0
  602. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  603. package/lib/module/skia/web/JsiSkSVGFactory.d.ts +9 -0
  604. package/lib/module/skia/web/JsiSkShader.d.ts +6 -0
  605. package/lib/module/skia/web/JsiSkShaderFactory.d.ts +16 -0
  606. package/lib/module/skia/web/JsiSkSurface.d.ts +8 -0
  607. package/lib/module/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
  608. package/lib/module/skia/web/JsiSkTextBlob.d.ts +6 -0
  609. package/lib/module/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
  610. package/lib/module/skia/web/JsiSkTypeface.d.ts +8 -0
  611. package/lib/module/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  612. package/lib/module/skia/web/JsiSkVertices.d.ts +9 -0
  613. package/lib/module/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  614. package/lib/module/skia/web/JsiSkia.d.ts +3 -0
  615. package/lib/module/skia/web/index.d.ts +1 -0
  616. package/lib/module/values/api.d.ts +5 -0
  617. package/lib/module/values/api.web.d.ts +2 -0
  618. package/lib/module/values/hooks/index.d.ts +4 -0
  619. package/lib/module/values/hooks/useClockValue.d.ts +6 -0
  620. package/lib/module/values/hooks/useComputedValue.d.ts +8 -0
  621. package/lib/module/values/hooks/useValue.d.ts +7 -0
  622. package/lib/module/values/hooks/useValueEffect.d.ts +7 -0
  623. package/lib/module/values/index.d.ts +4 -0
  624. package/lib/module/values/selector.d.ts +14 -0
  625. package/lib/module/values/types.d.ts +63 -0
  626. package/lib/module/values/web/RNSkAnimation.d.ts +9 -0
  627. package/lib/module/values/web/RNSkClockValue.d.ts +13 -0
  628. package/lib/module/values/web/RNSkComputedValue.d.ts +10 -0
  629. package/lib/module/values/web/RNSkReadonlyValue.d.ts +12 -0
  630. package/lib/module/values/web/RNSkValue.d.ts +14 -0
  631. package/lib/module/values/web/api.d.ts +2 -0
  632. package/lib/module/values/web/index.d.ts +1 -0
  633. package/lib/module/views/SkiaBaseWebView.d.ts +62 -0
  634. package/lib/module/views/SkiaDomView.d.ts +31 -0
  635. package/lib/module/views/SkiaDomView.web.d.ts +7 -0
  636. package/lib/module/views/SkiaPictureView.d.ts +27 -0
  637. package/lib/module/views/SkiaPictureView.web.d.ts +7 -0
  638. package/lib/module/views/SkiaView.d.ts +30 -0
  639. package/lib/module/views/SkiaView.web.d.ts +7 -0
  640. package/lib/module/views/api.d.ts +5 -0
  641. package/lib/module/views/index.d.ts +6 -0
  642. package/lib/module/views/types.d.ts +91 -0
  643. package/lib/module/views/useDrawCallback.d.ts +8 -0
  644. package/lib/module/views/useTouchHandler.d.ts +22 -0
  645. package/lib/module/web/LoadSkiaWeb.d.ts +6 -0
  646. package/lib/module/web/WithSkiaWeb.d.ts +12 -0
  647. package/lib/module/web/index.d.ts +2 -0
  648. package/lib/typescript/src/renderer/index.d.ts +0 -1
  649. package/package.json +5 -4
  650. package/src/renderer/index.ts +0 -1
  651. package/lib/commonjs/renderer/useContextBridge.js +0 -35
  652. package/lib/commonjs/renderer/useContextBridge.js.map +0 -1
  653. package/lib/module/renderer/useContextBridge.js +0 -21
  654. package/lib/module/renderer/useContextBridge.js.map +0 -1
  655. package/lib/typescript/src/renderer/useContextBridge.d.ts +0 -5
  656. package/src/renderer/useContextBridge.tsx +0 -21
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @returns A new value that will be updated on every frame redraw with the
3
+ * number of milliseconds elapsed since the value was started.
4
+ * The clock is created in the stopped state.
5
+ */
6
+ export declare const useClockValue: () => import("..").SkiaClockValue;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Creates a new computed value - a value that will calculate its value depending
3
+ * on other values.
4
+ * @param cb Callback to calculate new value
5
+ * @param values Dependant values
6
+ * @returns A readonly value
7
+ */
8
+ export declare const useComputedValue: <R>(cb: () => R, values: unknown[]) => import("..").SkiaValue<R>;
@@ -0,0 +1,7 @@
1
+ import type { SkiaMutableValue } from "../types";
2
+ /**
3
+ * Creates a new value that holds some data.
4
+ * @param v Value to hold
5
+ * @returns A Value of type of v
6
+ */
7
+ export declare const useValue: <T>(v: T) => SkiaMutableValue<T>;
@@ -0,0 +1,7 @@
1
+ import type { SkiaValue } from "../types";
2
+ /**
3
+ * Sets up an effect that will be run whenever the value changes
4
+ * @param value Value to subscribe to changes on
5
+ * @param cb Callback to run when value changes
6
+ */
7
+ export declare const useValueEffect: <T>(value: SkiaValue<T>, cb: (v: T) => void) => void;
@@ -0,0 +1,4 @@
1
+ export * from "./types";
2
+ export * from "./hooks";
3
+ export * from "./api";
4
+ export * from "./selector";
@@ -0,0 +1,14 @@
1
+ import type { SkiaValue } from "./types";
2
+ export declare type SkiaSelector<TReturn, TInput = unknown> = {
3
+ value: SkiaValue<TInput>;
4
+ selector: (v: TInput) => TReturn;
5
+ };
6
+ /**
7
+ * Wraps a Skia Value with a selector function. The selector function can access the
8
+ * inner values of the Skia Value so that we can dynamically ready array values and
9
+ * object values when doing animations in Skia.
10
+ * @param value Dependant value
11
+ * @param selector Selector function to calculate new value from the Skia Value's value
12
+ * @returns A descriptor that will be used by the reconciler to calculate the value
13
+ */
14
+ export declare const Selector: <TInput, TReturn>(value: SkiaValue<TInput>, selector: (v: TInput) => TReturn) => SkiaSelector<TReturn, TInput>;
@@ -0,0 +1,63 @@
1
+ export interface SkiaValue<T = number> {
2
+ /**
3
+ * Gets the value hold by the Value object
4
+ */
5
+ readonly current: T;
6
+ /**
7
+ * Adds a listener that is called when value changes.
8
+ * Returns unsubscribe method.
9
+ */
10
+ addListener: (cb: (value: T) => void) => () => void;
11
+ /**
12
+ * Invalidates the value. Has different meaning depending on the type of the value.
13
+ */
14
+ __invalidate: () => void;
15
+ /**
16
+ * Field to make typechecking easier
17
+ */
18
+ __typename__: "RNSkValue";
19
+ }
20
+ export interface SkiaMutableValue<T = number> extends SkiaValue<T> {
21
+ /**
22
+ * Get/sets the value hold by the Value object
23
+ */
24
+ current: T;
25
+ /**
26
+ * Get/sets the animation controlling the value
27
+ * */
28
+ animation: SkiaAnimation | undefined;
29
+ }
30
+ export interface SkiaClockValue extends SkiaValue<number> {
31
+ start: () => void;
32
+ stop: () => void;
33
+ }
34
+ export interface SkiaAnimation extends SkiaClockValue {
35
+ cancel: () => void;
36
+ }
37
+ export interface AnimationState {
38
+ current: number;
39
+ finished: boolean;
40
+ }
41
+ export interface ISkiaValueApi {
42
+ /**
43
+ * Creates a new value that holds the initial value and that
44
+ * can be changed.
45
+ */
46
+ createValue: <T>(initialValue: T) => SkiaMutableValue<T>;
47
+ /**
48
+ * Creates a computed value. This is a calculated value that returns the result of
49
+ * a function that is called with the values of the dependencies.
50
+ */
51
+ createComputedValue: <R>(cb: () => R, values: Array<SkiaValue<unknown>>) => SkiaValue<R>;
52
+ /**
53
+ * Creates a clock value where the value is the number of milliseconds elapsed
54
+ * since the clock was created
55
+ */
56
+ createClockValue: () => SkiaClockValue;
57
+ /**
58
+ * Creates an animation that is driven from a clock and updated every frame.
59
+ * @param cb Callback to calculate next value from time.
60
+ * @returns An animation object that can control a value.
61
+ */
62
+ createAnimation: <S extends AnimationState = AnimationState>(cb: (t: number, state: S | undefined) => S) => SkiaAnimation;
63
+ }
@@ -0,0 +1,9 @@
1
+ import type { AnimationState, SkiaAnimation } from "../types";
2
+ import { RNSkClockValue } from "./RNSkClockValue";
3
+ export declare class RNSkAnimation<S extends AnimationState = AnimationState> extends RNSkClockValue implements SkiaAnimation {
4
+ constructor(callback: (t: number, state: S | undefined) => S, raf: (callback: (time: number) => void) => number);
5
+ private _callback;
6
+ private _animationState;
7
+ cancel(): void;
8
+ protected update(nextValue: number): void;
9
+ }
@@ -0,0 +1,13 @@
1
+ import type { SkiaClockValue } from "../types";
2
+ import { RNSkReadonlyValue } from "./RNSkReadonlyValue";
3
+ export declare class RNSkClockValue extends RNSkReadonlyValue<number> implements SkiaClockValue {
4
+ constructor(raf: (callback: (time: number) => void) => number);
5
+ private _raf;
6
+ private _start;
7
+ private _stop;
8
+ private _state;
9
+ private notifyUpdate;
10
+ protected tick(value: number): void;
11
+ start(): void;
12
+ stop(): void;
13
+ }
@@ -0,0 +1,10 @@
1
+ import type { DependencyList } from "react";
2
+ import { RNSkReadonlyValue } from "./RNSkReadonlyValue";
3
+ export declare class RNSkComputedValue<T> extends RNSkReadonlyValue<T> {
4
+ constructor(callback: () => T, dependencies: DependencyList);
5
+ private dependecyUpdated;
6
+ private _callback;
7
+ private _unsubscribers;
8
+ unsubscribe(): void;
9
+ __invalidate(): void;
10
+ }
@@ -0,0 +1,12 @@
1
+ import type { SkiaValue } from "../types";
2
+ export declare class RNSkReadonlyValue<T> implements SkiaValue<T> {
3
+ constructor(value: T);
4
+ private _current;
5
+ private _listeners;
6
+ private notifyListeners;
7
+ protected update(nextValue: T): void;
8
+ readonly __typename__ = "RNSkValue";
9
+ get current(): T;
10
+ addListener(cb: (value: T) => void): () => void;
11
+ __invalidate(): void;
12
+ }
@@ -0,0 +1,14 @@
1
+ import type { SkiaAnimation, SkiaValue } from "../types";
2
+ import { RNSkReadonlyValue } from "./RNSkReadonlyValue";
3
+ export declare class RNSkValue<T> extends RNSkReadonlyValue<T> implements SkiaValue<T> {
4
+ constructor(value: T);
5
+ set current(value: T);
6
+ get current(): T;
7
+ private _unsubscribe;
8
+ private unsubscribe;
9
+ private subscribe;
10
+ private animationDidUpdate;
11
+ private _animation;
12
+ get animation(): SkiaAnimation | undefined;
13
+ set animation(v: SkiaAnimation | undefined);
14
+ }
@@ -0,0 +1,2 @@
1
+ import type { ISkiaValueApi } from "../types";
2
+ export declare const ValueApi: ISkiaValueApi;
@@ -0,0 +1 @@
1
+ export * from "./api";
@@ -0,0 +1,62 @@
1
+ import React from "react";
2
+ import type { PointerEvent } from "react";
3
+ import type { SkRect, SkCanvas } from "../skia/types";
4
+ import type { SkiaValue } from "../values";
5
+ import type { DrawMode, SkiaBaseViewProps, TouchInfo } from "./types";
6
+ import { TouchType } from "./types";
7
+ export declare abstract class SkiaBaseWebView<TProps extends SkiaBaseViewProps> extends React.Component<TProps> {
8
+ constructor(props: TProps);
9
+ private _surface;
10
+ private _unsubscriptions;
11
+ private _touches;
12
+ private _canvas;
13
+ private _canvasRef;
14
+ private _mode;
15
+ private _redrawRequests;
16
+ private requestId;
17
+ protected width: number;
18
+ protected height: number;
19
+ private unsubscribeAll;
20
+ private onLayout;
21
+ protected getSize(): {
22
+ width: number;
23
+ height: number;
24
+ };
25
+ componentDidMount(): void;
26
+ componentDidUpdate(): void;
27
+ componentWillUnmount(): void;
28
+ /**
29
+ * Creates a snapshot from the canvas in the surface
30
+ * @param rect Rect to use as bounds. Optional.
31
+ * @returns An Image object.
32
+ */
33
+ makeImageSnapshot(rect?: SkRect): import("../skia/types").SkImage | undefined;
34
+ /**
35
+ * Override to render
36
+ */
37
+ protected abstract renderInCanvas(canvas: SkCanvas, touches: TouchInfo[]): void;
38
+ /**
39
+ * Sends a redraw request to the native SkiaView.
40
+ */
41
+ private tick;
42
+ redraw(): void;
43
+ /**
44
+ * Updates the drawing mode for the skia view. This is the same
45
+ * as declaratively setting the mode property on the SkiaView.
46
+ * There are two drawing modes, "continuous" and "default",
47
+ * where the continuous mode will continuously redraw the view and
48
+ * the default mode will only redraw when any of the regular react
49
+ * properties are changed like size and margins.
50
+ * @param mode Drawing mode to use.
51
+ */
52
+ setDrawMode(mode: DrawMode): void;
53
+ /**
54
+ * Registers one or move values as a dependant value of the Skia View. The view will
55
+ * The view will redraw itself when any of the values change.
56
+ * @param values Values to register
57
+ */
58
+ registerValues(_values: SkiaValue<unknown>[]): void;
59
+ private handleTouchEvent;
60
+ createTouchHandler(touchType: TouchType): (evt: PointerEvent) => void;
61
+ render(): JSX.Element;
62
+ }
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import type { SkRect } from "../skia/types";
3
+ import type { SkiaValue } from "../values";
4
+ import type { SkiaDomViewProps } from "./types";
5
+ export declare class SkiaDomView extends React.Component<SkiaDomViewProps> {
6
+ constructor(props: SkiaDomViewProps);
7
+ private _nativeId;
8
+ get nativeId(): number;
9
+ componentDidUpdate(prevProps: SkiaDomViewProps): void;
10
+ /**
11
+ * Creates a snapshot from the canvas in the surface
12
+ * @param rect Rect to use as bounds. Optional.
13
+ * @returns An Image object.
14
+ */
15
+ makeImageSnapshot(rect?: SkRect): import("../skia/types").SkImage;
16
+ /**
17
+ * Sends a redraw request to the native SkiaView.
18
+ */
19
+ redraw(): void;
20
+ /**
21
+ * Registers one or move values as a dependant value of the Skia View. The view will
22
+ * The view will redraw itself when any of the values change.
23
+ * @param values Values to register
24
+ */
25
+ registerValues(values: SkiaValue<unknown>[]): () => void;
26
+ /**
27
+ * Clear up the dom node when unmounting to release resources.
28
+ */
29
+ componentWillUnmount(): void;
30
+ render(): JSX.Element;
31
+ }
@@ -0,0 +1,7 @@
1
+ import type { SkCanvas } from "../skia/types";
2
+ import { SkiaBaseWebView } from "./SkiaBaseWebView";
3
+ import type { SkiaDomViewProps, TouchInfo } from "./types";
4
+ export declare class SkiaDomView extends SkiaBaseWebView<SkiaDomViewProps> {
5
+ constructor(props: SkiaDomViewProps);
6
+ protected renderInCanvas(canvas: SkCanvas, touches: TouchInfo[]): void;
7
+ }
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import type { SkRect } from "../skia/types";
3
+ import type { SkiaValue } from "../values";
4
+ import type { SkiaPictureViewProps } from "./types";
5
+ export declare class SkiaPictureView extends React.Component<SkiaPictureViewProps> {
6
+ constructor(props: SkiaPictureViewProps);
7
+ private _nativeId;
8
+ get nativeId(): number;
9
+ componentDidUpdate(prevProps: SkiaPictureViewProps): void;
10
+ /**
11
+ * Creates a snapshot from the canvas in the surface
12
+ * @param rect Rect to use as bounds. Optional.
13
+ * @returns An Image object.
14
+ */
15
+ makeImageSnapshot(rect?: SkRect): import("../skia/types").SkImage;
16
+ /**
17
+ * Sends a redraw request to the native SkiaView.
18
+ */
19
+ redraw(): void;
20
+ /**
21
+ * Registers one or move values as a dependant value of the Skia View. The view will
22
+ * The view will redraw itself when any of the values change.
23
+ * @param values Values to register
24
+ */
25
+ registerValues(values: SkiaValue<unknown>[]): () => void;
26
+ render(): JSX.Element;
27
+ }
@@ -0,0 +1,7 @@
1
+ import type { SkCanvas } from "../skia/types";
2
+ import type { SkiaPictureViewProps } from "./types";
3
+ import { SkiaBaseWebView } from "./SkiaBaseWebView";
4
+ export declare class SkiaPictureView extends SkiaBaseWebView<SkiaPictureViewProps> {
5
+ constructor(props: SkiaPictureViewProps);
6
+ protected renderInCanvas(canvas: SkCanvas): void;
7
+ }
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import type { SkRect } from "../skia/types";
3
+ import type { SkiaValue } from "../values";
4
+ import type { SkiaDrawViewProps } from "./types";
5
+ export declare const SkiaViewNativeId: {
6
+ current: number;
7
+ };
8
+ export declare class SkiaView extends React.Component<SkiaDrawViewProps> {
9
+ constructor(props: SkiaDrawViewProps);
10
+ private _nativeId;
11
+ get nativeId(): number;
12
+ componentDidUpdate(prevProps: SkiaDrawViewProps): void;
13
+ /**
14
+ * Creates a snapshot from the canvas in the surface
15
+ * @param rect Rect to use as bounds. Optional.
16
+ * @returns An Image object.
17
+ */
18
+ makeImageSnapshot(rect?: SkRect): import("../skia/types").SkImage;
19
+ /**
20
+ * Sends a redraw request to the native SkiaView.
21
+ */
22
+ redraw(): void;
23
+ /**
24
+ * Registers one or move values as a dependant value of the Skia View. The view will
25
+ * The view will redraw itself when any of the values change.
26
+ * @param values Values to register
27
+ */
28
+ registerValues(values: SkiaValue<unknown>[]): () => void;
29
+ render(): JSX.Element;
30
+ }
@@ -0,0 +1,7 @@
1
+ import type { SkCanvas } from "../skia/types";
2
+ import type { SkiaDrawViewProps, TouchInfo } from "./types";
3
+ import { SkiaBaseWebView } from "./SkiaBaseWebView";
4
+ export declare class SkiaView extends SkiaBaseWebView<SkiaDrawViewProps> {
5
+ constructor(props: SkiaDrawViewProps);
6
+ protected renderInCanvas(canvas: SkCanvas, touches: TouchInfo[]): void;
7
+ }
@@ -0,0 +1,5 @@
1
+ import type { ISkiaViewApi } from "./types";
2
+ declare global {
3
+ var SkiaViewApi: ISkiaViewApi;
4
+ }
5
+ export declare const SkiaViewApi: ISkiaViewApi;
@@ -0,0 +1,6 @@
1
+ export * from "./SkiaView";
2
+ export * from "./SkiaPictureView";
3
+ export * from "./SkiaDomView";
4
+ export * from "./types";
5
+ export * from "./useDrawCallback";
6
+ export * from "./useTouchHandler";
@@ -0,0 +1,91 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { GroupProps, RenderNode } from "../dom/types";
3
+ import type { SkCanvas, SkImage, SkPicture, SkRect, SkSize } from "../skia/types";
4
+ import type { SkiaMutableValue, SkiaValue } from "../values";
5
+ export declare type DrawMode = "continuous" | "default";
6
+ export declare type NativeSkiaViewProps = ViewProps & {
7
+ mode?: DrawMode;
8
+ debug?: boolean;
9
+ };
10
+ export declare enum TouchType {
11
+ Start = 0,
12
+ Active = 1,
13
+ End = 2,
14
+ Cancelled = 3
15
+ }
16
+ export interface TouchInfo {
17
+ x: number;
18
+ y: number;
19
+ force: number;
20
+ type: TouchType;
21
+ id: number;
22
+ timestamp: number;
23
+ }
24
+ export interface DrawingInfo {
25
+ width: number;
26
+ height: number;
27
+ timestamp: number;
28
+ touches: Array<Array<TouchInfo>>;
29
+ }
30
+ export declare type ExtendedTouchInfo = TouchInfo & {
31
+ velocityX: number;
32
+ velocityY: number;
33
+ };
34
+ export declare type TouchHandlers = {
35
+ onStart?: (touchInfo: TouchInfo) => void;
36
+ onActive?: (touchInfo: ExtendedTouchInfo) => void;
37
+ onEnd?: (touchInfo: ExtendedTouchInfo) => void;
38
+ };
39
+ export declare type TouchHandler = (touchInfo: Array<Array<TouchInfo>>) => void;
40
+ export declare type RNSkiaDrawCallback = (canvas: SkCanvas, info: DrawingInfo) => void;
41
+ /**
42
+ * Listener interface for value changes
43
+ */
44
+ export interface ValueListener {
45
+ addListener: (callback: () => void) => number;
46
+ removeListener: (id: number) => void;
47
+ }
48
+ export interface ISkiaViewApi {
49
+ setJsiProperty: <T>(nativeId: number, name: string, value: T) => void;
50
+ callJsiMethod: <T extends Array<unknown>>(nativeId: number, name: string, ...args: T) => void;
51
+ registerValuesInView: (nativeId: number, values: SkiaValue<unknown>[]) => () => void;
52
+ requestRedraw: (nativeId: number) => void;
53
+ makeImageSnapshot: (nativeId: number, rect?: SkRect) => SkImage;
54
+ }
55
+ export interface SkiaBaseViewProps extends ViewProps {
56
+ /**
57
+ * Sets the drawing mode for the skia view. There are two drawing
58
+ * modes, "continuous" and "default", where the continuous mode will
59
+ * continuously redraw the view, and the default mode will only
60
+ * redraw when any of the regular react properties are changed like
61
+ * sizes and margins.
62
+ */
63
+ mode?: DrawMode;
64
+ /**
65
+ * When set to true the view will display information about the
66
+ * average time it takes to render.
67
+ */
68
+ debug?: boolean;
69
+ /**
70
+ * Pass an animated value to the onSize property to get updates when
71
+ * the Skia view is resized.
72
+ */
73
+ onSize?: SkiaMutableValue<SkSize>;
74
+ }
75
+ export interface SkiaDrawViewProps extends SkiaBaseViewProps {
76
+ /**
77
+ * Draw callback. Will be called whenever the view is invalidated and
78
+ * needs to redraw. This is either caused by a change in a react
79
+ * property, a touch event, or a call to redraw. If the view is in
80
+ * continuous mode the callback will be called 60 frames per second
81
+ * by the native view.
82
+ */
83
+ onDraw?: RNSkiaDrawCallback;
84
+ }
85
+ export interface SkiaPictureViewProps extends SkiaBaseViewProps {
86
+ picture?: SkPicture;
87
+ }
88
+ export interface SkiaDomViewProps extends SkiaBaseViewProps {
89
+ root?: RenderNode<GroupProps>;
90
+ onTouch?: TouchHandler;
91
+ }
@@ -0,0 +1,8 @@
1
+ import type { DependencyList } from "react";
2
+ import type { RNSkiaDrawCallback } from "./types";
3
+ /**
4
+ * Creates a memoized callback for the onDraw handler of a Skia component.
5
+ * @param callback The callback to memoize.
6
+ * @param deps Dependencies for the callback.
7
+ * */
8
+ export declare const useDrawCallback: (callback: RNSkiaDrawCallback, deps?: DependencyList) => RNSkiaDrawCallback;
@@ -0,0 +1,22 @@
1
+ import type { DependencyList } from "react";
2
+ import type { TouchHandlers, TouchHandler } from "./types";
3
+ /**
4
+ * Provides a callback for handling touch events in the Skia View.
5
+ * This touch handler only handles single touches.
6
+ * @param handlers Callbacks for the different touch states
7
+ * @param deps optional Dependency array to update the handlers
8
+ * @returns A function that can be used from within the onDraw callback to
9
+ * update and handle touch events. Call it with the touches property from
10
+ * the info object.
11
+ */
12
+ export declare const useTouchHandler: (handlers: TouchHandlers, deps?: DependencyList) => TouchHandler;
13
+ /**
14
+ * Provides a callback for handling touch events in the Skia View.
15
+ * This touch handler handles multiple touches.
16
+ * @param handlers Callbacks for the different touch states
17
+ * @param deps optional Dependency array to update the handlers
18
+ * @returns A function that can be used from within the onDraw callback to
19
+ * update and handle touch events. Call it with the touches property from
20
+ * the info object.
21
+ */
22
+ export declare const useMultiTouchHandler: (handlers: TouchHandlers, deps?: DependencyList) => TouchHandler;
@@ -0,0 +1,6 @@
1
+ import type { CanvasKit as CanvasKitType, CanvasKitInitOptions } from "canvaskit-wasm";
2
+ declare global {
3
+ var CanvasKit: CanvasKitType;
4
+ }
5
+ export declare const LoadSkiaWeb: (opts?: CanvasKitInitOptions) => Promise<void>;
6
+ export declare const LoadSkia: (opts?: CanvasKitInitOptions) => Promise<void>;
@@ -0,0 +1,12 @@
1
+ import type { ComponentProps, ComponentType } from "react";
2
+ import { Suspense } from "react";
3
+ import { LoadSkiaWeb } from "./LoadSkiaWeb";
4
+ interface WithSkiaProps {
5
+ fallback?: ComponentProps<typeof Suspense>["fallback"];
6
+ getComponent: () => Promise<{
7
+ default: ComponentType;
8
+ }>;
9
+ opts?: Parameters<typeof LoadSkiaWeb>[0];
10
+ }
11
+ export declare const WithSkiaWeb: ({ getComponent, fallback, opts, }: WithSkiaProps) => JSX.Element;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./LoadSkiaWeb";
2
+ export * from "./WithSkiaWeb";
@@ -0,0 +1,2 @@
1
+ import type { DecayState, DefaultDecayConfig } from "./types";
2
+ export declare const decay: (now: number, state: DecayState, config: DefaultDecayConfig) => DecayState;
@@ -0,0 +1 @@
1
+ export { runDecay } from "./runDecay";
@@ -0,0 +1,10 @@
1
+ import type { SkiaMutableValue } from "../../values/types";
2
+ import type { DecayConfig } from "./types";
3
+ /**
4
+ * Runs a decay animation from the current value to zero with the given decay
5
+ * configuration.
6
+ * @param value value to animate
7
+ * @param config Configuration or default configuration
8
+ * @returns Animation
9
+ */
10
+ export declare const runDecay: (value: SkiaMutableValue<number>, config?: DecayConfig) => import("../../values/types").SkiaAnimation;
@@ -0,0 +1,21 @@
1
+ import type { AnimationState } from "../../values/types";
2
+ export interface DecayConfig {
3
+ from?: number;
4
+ deceleration?: number;
5
+ velocityFactor?: number;
6
+ clamp?: number[];
7
+ velocity?: number;
8
+ }
9
+ export interface DefaultDecayConfig {
10
+ from: number;
11
+ deceleration: number;
12
+ velocityFactor: number;
13
+ clamp?: number[];
14
+ velocity: number;
15
+ }
16
+ export interface DecayState extends AnimationState {
17
+ lastTimestamp: number;
18
+ startTimestamp: number;
19
+ initialVelocity: number;
20
+ velocity: number;
21
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./interpolate";
2
+ export * from "./interpolateColors";
3
+ export * from "./interpolateVector";
4
+ export * from "./interpolatePaths";
@@ -0,0 +1,17 @@
1
+ export declare enum Extrapolate {
2
+ IDENTITY = "identity",
3
+ CLAMP = "clamp",
4
+ EXTEND = "extend"
5
+ }
6
+ export interface ExtrapolationConfig {
7
+ extrapolateLeft?: Extrapolate | string;
8
+ extrapolateRight?: Extrapolate | string;
9
+ }
10
+ interface RequiredExtrapolationConfig {
11
+ extrapolateLeft: Extrapolate;
12
+ extrapolateRight: Extrapolate;
13
+ }
14
+ export declare type ExtrapolationType = ExtrapolationConfig | Extrapolate | string | undefined;
15
+ export declare function validateInterpolationOptions(type: ExtrapolationType): RequiredExtrapolationConfig;
16
+ export declare function interpolate(x: number, input: readonly number[], output: readonly number[], type?: ExtrapolationType): number;
17
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { Color } from "../../skia";
2
+ export declare const interpolateColors: (value: number, inputRange: number[], _outputRange: Color[]) => Float32Array;
3
+ export declare const mixColors: (value: number, x: Color, y: Color) => Float32Array;
@@ -0,0 +1,19 @@
1
+ import type { SkPath } from "../../skia/types";
2
+ import type { ExtrapolationType } from "./interpolate";
3
+ /**
4
+ * Maps an input value within a range to an output path within a path range.
5
+ * @param value - The input value.
6
+ * @param inputRange - The range of the input value.
7
+ * @param outputRange - The range of the output path.
8
+ * @param options - Extrapolation options
9
+ * @returns The output path.
10
+ * @example <caption>Map a value between 0 and 1 to a path between two paths.</caption>
11
+ * const path1 = new Path();
12
+ * path1.moveTo(0, 0);
13
+ * path1.lineTo(100, 0);
14
+ * const path2 = new Path();
15
+ * path2.moveTo(0, 0);
16
+ * path2.lineTo(0, 100);
17
+ * const path = interpolatePath(0.5, [0, 1], [path1, path2]);
18
+ */
19
+ export declare const interpolatePaths: (value: number, input: number[], outputRange: SkPath[], options?: ExtrapolationType) => SkPath;
@@ -0,0 +1,10 @@
1
+ import type { Vector } from "../../skia/types";
2
+ import { interpolate } from "./interpolate";
3
+ export declare const interpolateVector: (value: number, inputRange: readonly number[], outputRange: readonly Vector[], options?: Parameters<typeof interpolate>[3]) => {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ export declare const mixVector: (value: number, from: Vector, to: Vector) => {
8
+ x: number;
9
+ y: number;
10
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./timing";
2
+ export * from "./spring";
3
+ export * from "./decay";
4
+ export * from "./functions";