@shopify/react-native-skia 0.1.170 → 0.1.172

Sign up to get free protection for your applications and to get access to all the features.
Files changed (658) hide show
  1. package/android/CMakeLists.txt +62 -34
  2. package/android/build.gradle +20 -10
  3. package/cpp/rnskia/RNSkJsiViewApi.h +2 -2
  4. package/cpp/rnskia/dom/nodes/JsiCustomDrawingNode.h +8 -1
  5. package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.mm +5 -1
  6. package/lib/commonjs/animation/decay/decay.d.ts +2 -0
  7. package/lib/commonjs/animation/decay/index.d.ts +1 -0
  8. package/lib/commonjs/animation/decay/runDecay.d.ts +10 -0
  9. package/lib/commonjs/animation/decay/types.d.ts +21 -0
  10. package/lib/commonjs/animation/functions/index.d.ts +4 -0
  11. package/lib/commonjs/animation/functions/interpolate.d.ts +17 -0
  12. package/lib/commonjs/animation/functions/interpolateColors.d.ts +3 -0
  13. package/lib/commonjs/animation/functions/interpolatePaths.d.ts +19 -0
  14. package/lib/commonjs/animation/functions/interpolateVector.d.ts +10 -0
  15. package/lib/commonjs/animation/index.d.ts +4 -0
  16. package/lib/commonjs/animation/spring/Spring.d.ts +65 -0
  17. package/lib/commonjs/animation/spring/functions/index.d.ts +1 -0
  18. package/lib/commonjs/animation/spring/functions/spring.d.ts +10 -0
  19. package/lib/commonjs/animation/spring/index.d.ts +3 -0
  20. package/lib/commonjs/animation/spring/runSpring.d.ts +16 -0
  21. package/lib/commonjs/animation/spring/types.d.ts +6 -0
  22. package/lib/commonjs/animation/spring/useSpring.d.ts +10 -0
  23. package/lib/commonjs/animation/timing/Easing.d.ts +19 -0
  24. package/lib/commonjs/animation/timing/createTiming.d.ts +17 -0
  25. package/lib/commonjs/animation/timing/functions/bezier.d.ts +1 -0
  26. package/lib/commonjs/animation/timing/functions/getResolvedParams.d.ts +7 -0
  27. package/lib/commonjs/animation/timing/functions/index.d.ts +4 -0
  28. package/lib/commonjs/animation/timing/functions/timing.d.ts +17 -0
  29. package/lib/commonjs/animation/timing/functions/types.d.ts +7 -0
  30. package/lib/commonjs/animation/timing/index.d.ts +4 -0
  31. package/lib/commonjs/animation/timing/runTiming.d.ts +16 -0
  32. package/lib/commonjs/animation/timing/useLoop.d.ts +8 -0
  33. package/lib/commonjs/animation/timing/useTiming.d.ts +10 -0
  34. package/lib/commonjs/animation/types.d.ts +18 -0
  35. package/lib/commonjs/dom/nodes/DrawingNode.d.ts +14 -0
  36. package/lib/commonjs/dom/nodes/GroupNode.d.ts +7 -0
  37. package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +65 -0
  38. package/lib/commonjs/dom/nodes/LayerNode.d.ts +8 -0
  39. package/lib/commonjs/dom/nodes/Node.d.ts +43 -0
  40. package/lib/commonjs/dom/nodes/PaintContext.d.ts +18 -0
  41. package/lib/commonjs/dom/nodes/PaintNode.d.ts +8 -0
  42. package/lib/commonjs/dom/nodes/RenderNode.d.ts +27 -0
  43. package/lib/commonjs/dom/nodes/datatypes/Circle.d.ts +7 -0
  44. package/lib/commonjs/dom/nodes/datatypes/Enum.d.ts +1 -0
  45. package/lib/commonjs/dom/nodes/datatypes/Fitting.d.ts +33 -0
  46. package/lib/commonjs/dom/nodes/datatypes/Gradient.d.ts +92 -0
  47. package/lib/commonjs/dom/nodes/datatypes/Path.d.ts +4 -0
  48. package/lib/commonjs/dom/nodes/datatypes/Radius.d.ts +3 -0
  49. package/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +5 -0
  50. package/lib/commonjs/dom/nodes/datatypes/Transform.d.ts +3 -0
  51. package/lib/commonjs/dom/nodes/datatypes/index.d.ts +8 -0
  52. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
  53. package/lib/commonjs/dom/nodes/drawings/Box.d.ts +13 -0
  54. package/lib/commonjs/dom/nodes/drawings/CircleNode.d.ts +9 -0
  55. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.d.ts +8 -0
  56. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
  57. package/lib/commonjs/dom/nodes/drawings/FillNode.d.ts +8 -0
  58. package/lib/commonjs/dom/nodes/drawings/ImageNode.d.ts +25 -0
  59. package/lib/commonjs/dom/nodes/drawings/ImageSVG.d.ts +8 -0
  60. package/lib/commonjs/dom/nodes/drawings/LineNode.d.ts +8 -0
  61. package/lib/commonjs/dom/nodes/drawings/OvalNode.d.ts +9 -0
  62. package/lib/commonjs/dom/nodes/drawings/PatchNode.d.ts +18 -0
  63. package/lib/commonjs/dom/nodes/drawings/PathNode.d.ts +9 -0
  64. package/lib/commonjs/dom/nodes/drawings/PictureNode.d.ts +8 -0
  65. package/lib/commonjs/dom/nodes/drawings/PointsNode.d.ts +8 -0
  66. package/lib/commonjs/dom/nodes/drawings/RRectNode.d.ts +10 -0
  67. package/lib/commonjs/dom/nodes/drawings/RectNode.d.ts +9 -0
  68. package/lib/commonjs/dom/nodes/drawings/Text.d.ts +30 -0
  69. package/lib/commonjs/dom/nodes/drawings/VerticesNode.d.ts +9 -0
  70. package/lib/commonjs/dom/nodes/drawings/index.d.ts +18 -0
  71. package/lib/commonjs/dom/nodes/index.d.ts +3 -0
  72. package/lib/commonjs/dom/nodes/paint/BlendNode.d.ts +12 -0
  73. package/lib/commonjs/dom/nodes/paint/ColorFilters.d.ts +36 -0
  74. package/lib/commonjs/dom/nodes/paint/ImageFilters.d.ts +42 -0
  75. package/lib/commonjs/dom/nodes/paint/MaskFilters.d.ts +8 -0
  76. package/lib/commonjs/dom/nodes/paint/PathEffects.d.ts +42 -0
  77. package/lib/commonjs/dom/nodes/paint/Shaders.d.ts +44 -0
  78. package/lib/commonjs/dom/nodes/paint/index.d.ts +6 -0
  79. package/lib/commonjs/dom/types/ColorFilters.d.ts +12 -0
  80. package/lib/commonjs/dom/types/Common.d.ts +56 -0
  81. package/lib/commonjs/dom/types/DrawingContext.d.ts +5 -0
  82. package/lib/commonjs/dom/types/Drawings.d.ts +104 -0
  83. package/lib/commonjs/dom/types/ImageFilters.d.ts +37 -0
  84. package/lib/commonjs/dom/types/MaskFilters.d.ts +7 -0
  85. package/lib/commonjs/dom/types/Node.d.ts +29 -0
  86. package/lib/commonjs/dom/types/NodeType.d.ts +67 -0
  87. package/lib/commonjs/dom/types/PathEffects.d.ts +28 -0
  88. package/lib/commonjs/dom/types/Shaders.d.ts +59 -0
  89. package/lib/commonjs/dom/types/SkDOM.d.ts +72 -0
  90. package/lib/commonjs/dom/types/index.d.ts +11 -0
  91. package/lib/commonjs/external/index.d.ts +1 -0
  92. package/lib/commonjs/external/reanimated/index.d.ts +1 -0
  93. package/lib/commonjs/external/reanimated/useSharedValueEffect.d.ts +11 -0
  94. package/lib/commonjs/index.d.ts +10 -0
  95. package/lib/commonjs/mock/index.d.ts +16 -0
  96. package/lib/commonjs/renderer/Canvas.d.ts +11 -0
  97. package/lib/commonjs/renderer/Container.d.ts +12 -0
  98. package/lib/commonjs/renderer/DependencyManager.d.ts +46 -0
  99. package/lib/commonjs/renderer/DrawingContext.d.ts +6 -0
  100. package/lib/commonjs/renderer/HostComponents.d.ts +132 -0
  101. package/lib/commonjs/renderer/HostConfig.d.ts +19 -0
  102. package/lib/commonjs/renderer/Reconciler.d.ts +13 -0
  103. package/lib/commonjs/renderer/components/Blend.d.ts +4 -0
  104. package/lib/commonjs/renderer/components/Drawing.d.ts +3 -0
  105. package/lib/commonjs/renderer/components/Group.d.ts +8 -0
  106. package/lib/commonjs/renderer/components/Mask.d.ts +9 -0
  107. package/lib/commonjs/renderer/components/Paint.d.ts +4 -0
  108. package/lib/commonjs/renderer/components/Picture.d.ts +4 -0
  109. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
  110. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
  111. package/lib/commonjs/renderer/components/backdrop/index.d.ts +2 -0
  112. package/lib/commonjs/renderer/components/colorFilters/BlendColor.d.ts +4 -0
  113. package/lib/commonjs/renderer/components/colorFilters/Lerp.d.ts +4 -0
  114. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
  115. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
  116. package/lib/commonjs/renderer/components/colorFilters/Matrix.d.ts +5 -0
  117. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
  118. package/lib/commonjs/renderer/components/colorFilters/index.d.ts +6 -0
  119. package/lib/commonjs/renderer/components/image/Image.d.ts +4 -0
  120. package/lib/commonjs/renderer/components/image/ImageSVG.d.ts +4 -0
  121. package/lib/commonjs/renderer/components/image/ImageShader.d.ts +4 -0
  122. package/lib/commonjs/renderer/components/image/index.d.ts +3 -0
  123. package/lib/commonjs/renderer/components/imageFilters/Blur.d.ts +4 -0
  124. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
  125. package/lib/commonjs/renderer/components/imageFilters/Morphology.d.ts +4 -0
  126. package/lib/commonjs/renderer/components/imageFilters/Offset.d.ts +4 -0
  127. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
  128. package/lib/commonjs/renderer/components/imageFilters/Shadow.d.ts +4 -0
  129. package/lib/commonjs/renderer/components/imageFilters/index.d.ts +6 -0
  130. package/lib/commonjs/renderer/components/index.d.ts +16 -0
  131. package/lib/commonjs/renderer/components/maskFilters/Blur.d.ts +4 -0
  132. package/lib/commonjs/renderer/components/maskFilters/index.d.ts +1 -0
  133. package/lib/commonjs/renderer/components/pathEffects/Corner.d.ts +4 -0
  134. package/lib/commonjs/renderer/components/pathEffects/Dash.d.ts +4 -0
  135. package/lib/commonjs/renderer/components/pathEffects/Discrete.d.ts +4 -0
  136. package/lib/commonjs/renderer/components/pathEffects/Line2D.d.ts +4 -0
  137. package/lib/commonjs/renderer/components/pathEffects/Path1D.d.ts +4 -0
  138. package/lib/commonjs/renderer/components/pathEffects/Path2D.d.ts +4 -0
  139. package/lib/commonjs/renderer/components/pathEffects/Sum.d.ts +3 -0
  140. package/lib/commonjs/renderer/components/pathEffects/index.d.ts +7 -0
  141. package/lib/commonjs/renderer/components/shaders/Color.d.ts +4 -0
  142. package/lib/commonjs/renderer/components/shaders/FractalNoise.d.ts +4 -0
  143. package/lib/commonjs/renderer/components/shaders/LinearGradient.d.ts +4 -0
  144. package/lib/commonjs/renderer/components/shaders/RadialGradient.d.ts +4 -0
  145. package/lib/commonjs/renderer/components/shaders/Shader.d.ts +4 -0
  146. package/lib/commonjs/renderer/components/shaders/ShaderLib.d.ts +4 -0
  147. package/lib/commonjs/renderer/components/shaders/SweepGradient.d.ts +4 -0
  148. package/lib/commonjs/renderer/components/shaders/Turbulence.d.ts +4 -0
  149. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
  150. package/lib/commonjs/renderer/components/shaders/index.d.ts +9 -0
  151. package/lib/commonjs/renderer/components/shapes/Box.d.ts +5 -0
  152. package/lib/commonjs/renderer/components/shapes/Circle.d.ts +4 -0
  153. package/lib/commonjs/renderer/components/shapes/DiffRect.d.ts +4 -0
  154. package/lib/commonjs/renderer/components/shapes/Fill.d.ts +4 -0
  155. package/lib/commonjs/renderer/components/shapes/FitBox.d.ts +20 -0
  156. package/lib/commonjs/renderer/components/shapes/Line.d.ts +4 -0
  157. package/lib/commonjs/renderer/components/shapes/Oval.d.ts +4 -0
  158. package/lib/commonjs/renderer/components/shapes/Patch.d.ts +4 -0
  159. package/lib/commonjs/renderer/components/shapes/Path.d.ts +4 -0
  160. package/lib/commonjs/renderer/components/shapes/Points.d.ts +4 -0
  161. package/lib/commonjs/renderer/components/shapes/Rect.d.ts +4 -0
  162. package/lib/commonjs/renderer/components/shapes/RoundedRect.d.ts +4 -0
  163. package/lib/commonjs/renderer/components/shapes/Vertices.d.ts +4 -0
  164. package/lib/commonjs/renderer/components/shapes/index.d.ts +13 -0
  165. package/lib/commonjs/renderer/components/text/Glyphs.d.ts +4 -0
  166. package/lib/commonjs/renderer/components/text/Text.d.ts +4 -0
  167. package/lib/commonjs/renderer/components/text/TextBlob.d.ts +4 -0
  168. package/lib/commonjs/renderer/components/text/TextPath.d.ts +4 -0
  169. package/lib/commonjs/renderer/components/text/index.d.ts +4 -0
  170. package/lib/commonjs/renderer/index.d.ts +2 -0
  171. package/lib/commonjs/renderer/index.js +0 -13
  172. package/lib/commonjs/renderer/index.js.map +1 -1
  173. package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +17 -0
  174. package/lib/commonjs/renderer/processors/Animations/index.d.ts +1 -0
  175. package/lib/commonjs/renderer/processors/index.d.ts +2 -0
  176. package/lib/commonjs/renderer/processors/math/Coordinates.d.ts +29 -0
  177. package/lib/commonjs/renderer/processors/math/Math.d.ts +15 -0
  178. package/lib/commonjs/renderer/processors/math/Transforms.d.ts +5 -0
  179. package/lib/commonjs/renderer/processors/math/index.d.ts +3 -0
  180. package/lib/commonjs/renderer/typeddash.d.ts +3 -0
  181. package/lib/commonjs/skia/NativeSetup.d.ts +1 -0
  182. package/lib/commonjs/skia/Skia.d.ts +8 -0
  183. package/lib/commonjs/skia/Skia.web.d.ts +1 -0
  184. package/lib/commonjs/skia/core/Data.d.ts +3 -0
  185. package/lib/commonjs/skia/core/Font.d.ts +5 -0
  186. package/lib/commonjs/skia/core/Image.d.ts +5 -0
  187. package/lib/commonjs/skia/core/Matrix.d.ts +2 -0
  188. package/lib/commonjs/skia/core/Picture.d.ts +8 -0
  189. package/lib/commonjs/skia/core/RRect.d.ts +2 -0
  190. package/lib/commonjs/skia/core/Rect.d.ts +8 -0
  191. package/lib/commonjs/skia/core/SVG.d.ts +2 -0
  192. package/lib/commonjs/skia/core/Typeface.d.ts +5 -0
  193. package/lib/commonjs/skia/core/Vector.d.ts +12 -0
  194. package/lib/commonjs/skia/core/index.d.ts +10 -0
  195. package/lib/commonjs/skia/index.d.ts +3 -0
  196. package/lib/commonjs/skia/types/Canvas.d.ts +381 -0
  197. package/lib/commonjs/skia/types/Color.d.ts +2 -0
  198. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
  199. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
  200. package/lib/commonjs/skia/types/ColorFilter/index.d.ts +2 -0
  201. package/lib/commonjs/skia/types/ContourMeasure.d.ts +41 -0
  202. package/lib/commonjs/skia/types/Data/Data.d.ts +12 -0
  203. package/lib/commonjs/skia/types/Data/DataFactory.d.ts +18 -0
  204. package/lib/commonjs/skia/types/Data/index.d.ts +2 -0
  205. package/lib/commonjs/skia/types/Font/Font.d.ts +180 -0
  206. package/lib/commonjs/skia/types/Font/index.d.ts +1 -0
  207. package/lib/commonjs/skia/types/Image/Image.d.ts +75 -0
  208. package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +62 -0
  209. package/lib/commonjs/skia/types/Image/index.d.ts +2 -0
  210. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
  211. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
  212. package/lib/commonjs/skia/types/ImageFilter/index.d.ts +2 -0
  213. package/lib/commonjs/skia/types/JsiInstance.d.ts +3 -0
  214. package/lib/commonjs/skia/types/MaskFilter.d.ts +21 -0
  215. package/lib/commonjs/skia/types/Matrix.d.ts +34 -0
  216. package/lib/commonjs/skia/types/Paint/BlendMode.d.ts +58 -0
  217. package/lib/commonjs/skia/types/Paint/Paint.d.ts +136 -0
  218. package/lib/commonjs/skia/types/Paint/index.d.ts +2 -0
  219. package/lib/commonjs/skia/types/Path/Path.d.ts +474 -0
  220. package/lib/commonjs/skia/types/Path/PathFactory.d.ts +29 -0
  221. package/lib/commonjs/skia/types/Path/index.d.ts +2 -0
  222. package/lib/commonjs/skia/types/PathEffect.d.ts +75 -0
  223. package/lib/commonjs/skia/types/Picture/Picture.d.ts +27 -0
  224. package/lib/commonjs/skia/types/Picture/PictureFactory.d.ts +8 -0
  225. package/lib/commonjs/skia/types/Picture/PictureRecorder.d.ts +15 -0
  226. package/lib/commonjs/skia/types/Picture/index.d.ts +3 -0
  227. package/lib/commonjs/skia/types/Point.d.ts +10 -0
  228. package/lib/commonjs/skia/types/RRect.d.ts +7 -0
  229. package/lib/commonjs/skia/types/RSXform.d.ts +2 -0
  230. package/lib/commonjs/skia/types/Rect.d.ts +6 -0
  231. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
  232. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
  233. package/lib/commonjs/skia/types/RuntimeEffect/index.d.ts +2 -0
  234. package/lib/commonjs/skia/types/SVG/SVG.d.ts +2 -0
  235. package/lib/commonjs/skia/types/SVG/SVGFactory.d.ts +6 -0
  236. package/lib/commonjs/skia/types/SVG/index.d.ts +2 -0
  237. package/lib/commonjs/skia/types/Shader/Shader.d.ts +10 -0
  238. package/lib/commonjs/skia/types/Shader/ShaderFactory.d.ts +104 -0
  239. package/lib/commonjs/skia/types/Shader/index.d.ts +2 -0
  240. package/lib/commonjs/skia/types/Size.d.ts +4 -0
  241. package/lib/commonjs/skia/types/Skia.d.ts +66 -0
  242. package/lib/commonjs/skia/types/Surface/Surface.d.ts +25 -0
  243. package/lib/commonjs/skia/types/Surface/SurfaceFactory.d.ts +11 -0
  244. package/lib/commonjs/skia/types/Surface/index.d.ts +2 -0
  245. package/lib/commonjs/skia/types/TextBlob.d.ts +44 -0
  246. package/lib/commonjs/skia/types/Typeface/Typeface.d.ts +2 -0
  247. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
  248. package/lib/commonjs/skia/types/Typeface/index.d.ts +2 -0
  249. package/lib/commonjs/skia/types/Vertices/Vertices.d.ts +17 -0
  250. package/lib/commonjs/skia/types/Vertices/index.d.ts +1 -0
  251. package/lib/commonjs/skia/types/index.d.ts +28 -0
  252. package/lib/commonjs/skia/web/Host.d.ts +19 -0
  253. package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +44 -0
  254. package/lib/commonjs/skia/web/JsiSkColor.d.ts +2 -0
  255. package/lib/commonjs/skia/web/JsiSkColorFilter.d.ts +6 -0
  256. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  257. package/lib/commonjs/skia/web/JsiSkContourMeasure.d.ts +12 -0
  258. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  259. package/lib/commonjs/skia/web/JsiSkData.d.ts +8 -0
  260. package/lib/commonjs/skia/web/JsiSkDataFactory.d.ts +19 -0
  261. package/lib/commonjs/skia/web/JsiSkFont.d.ts +33 -0
  262. package/lib/commonjs/skia/web/JsiSkImage.d.ts +12 -0
  263. package/lib/commonjs/skia/web/JsiSkImageFactory.d.ts +10 -0
  264. package/lib/commonjs/skia/web/JsiSkImageFilter.d.ts +6 -0
  265. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
  266. package/lib/commonjs/skia/web/JsiSkMaskFilter.d.ts +6 -0
  267. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  268. package/lib/commonjs/skia/web/JsiSkMatrix.d.ts +13 -0
  269. package/lib/commonjs/skia/web/JsiSkPaint.d.ts +28 -0
  270. package/lib/commonjs/skia/web/JsiSkPath.d.ts +57 -0
  271. package/lib/commonjs/skia/web/JsiSkPathEffect.d.ts +6 -0
  272. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  273. package/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +13 -0
  274. package/lib/commonjs/skia/web/JsiSkPicture.d.ts +9 -0
  275. package/lib/commonjs/skia/web/JsiSkPictureFactory.d.ts +8 -0
  276. package/lib/commonjs/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  277. package/lib/commonjs/skia/web/JsiSkPoint.d.ts +9 -0
  278. package/lib/commonjs/skia/web/JsiSkRRect.d.ts +11 -0
  279. package/lib/commonjs/skia/web/JsiSkRSXform.d.ts +7 -0
  280. package/lib/commonjs/skia/web/JsiSkRect.d.ts +11 -0
  281. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.d.ts +16 -0
  282. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  283. package/lib/commonjs/skia/web/JsiSkSVGFactory.d.ts +9 -0
  284. package/lib/commonjs/skia/web/JsiSkShader.d.ts +6 -0
  285. package/lib/commonjs/skia/web/JsiSkShaderFactory.d.ts +16 -0
  286. package/lib/commonjs/skia/web/JsiSkSurface.d.ts +8 -0
  287. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
  288. package/lib/commonjs/skia/web/JsiSkTextBlob.d.ts +6 -0
  289. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
  290. package/lib/commonjs/skia/web/JsiSkTypeface.d.ts +8 -0
  291. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  292. package/lib/commonjs/skia/web/JsiSkVertices.d.ts +9 -0
  293. package/lib/commonjs/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  294. package/lib/commonjs/skia/web/JsiSkia.d.ts +3 -0
  295. package/lib/commonjs/skia/web/index.d.ts +1 -0
  296. package/lib/commonjs/values/api.d.ts +5 -0
  297. package/lib/commonjs/values/api.web.d.ts +2 -0
  298. package/lib/commonjs/values/hooks/index.d.ts +4 -0
  299. package/lib/commonjs/values/hooks/useClockValue.d.ts +6 -0
  300. package/lib/commonjs/values/hooks/useComputedValue.d.ts +8 -0
  301. package/lib/commonjs/values/hooks/useValue.d.ts +7 -0
  302. package/lib/commonjs/values/hooks/useValueEffect.d.ts +7 -0
  303. package/lib/commonjs/values/index.d.ts +4 -0
  304. package/lib/commonjs/values/selector.d.ts +14 -0
  305. package/lib/commonjs/values/types.d.ts +63 -0
  306. package/lib/commonjs/values/web/RNSkAnimation.d.ts +9 -0
  307. package/lib/commonjs/values/web/RNSkClockValue.d.ts +13 -0
  308. package/lib/commonjs/values/web/RNSkComputedValue.d.ts +10 -0
  309. package/lib/commonjs/values/web/RNSkReadonlyValue.d.ts +12 -0
  310. package/lib/commonjs/values/web/RNSkValue.d.ts +14 -0
  311. package/lib/commonjs/values/web/api.d.ts +2 -0
  312. package/lib/commonjs/values/web/index.d.ts +1 -0
  313. package/lib/commonjs/views/SkiaBaseWebView.d.ts +62 -0
  314. package/lib/commonjs/views/SkiaDomView.d.ts +31 -0
  315. package/lib/commonjs/views/SkiaDomView.web.d.ts +7 -0
  316. package/lib/commonjs/views/SkiaPictureView.d.ts +27 -0
  317. package/lib/commonjs/views/SkiaPictureView.web.d.ts +7 -0
  318. package/lib/commonjs/views/SkiaView.d.ts +30 -0
  319. package/lib/commonjs/views/SkiaView.web.d.ts +7 -0
  320. package/lib/commonjs/views/api.d.ts +5 -0
  321. package/lib/commonjs/views/index.d.ts +6 -0
  322. package/lib/commonjs/views/types.d.ts +91 -0
  323. package/lib/commonjs/views/useDrawCallback.d.ts +8 -0
  324. package/lib/commonjs/views/useTouchHandler.d.ts +22 -0
  325. package/lib/commonjs/web/LoadSkiaWeb.d.ts +6 -0
  326. package/lib/commonjs/web/WithSkiaWeb.d.ts +12 -0
  327. package/lib/commonjs/web/index.d.ts +2 -0
  328. package/lib/module/animation/decay/decay.d.ts +2 -0
  329. package/lib/module/animation/decay/index.d.ts +1 -0
  330. package/lib/module/animation/decay/runDecay.d.ts +10 -0
  331. package/lib/module/animation/decay/types.d.ts +21 -0
  332. package/lib/module/animation/functions/index.d.ts +4 -0
  333. package/lib/module/animation/functions/interpolate.d.ts +17 -0
  334. package/lib/module/animation/functions/interpolateColors.d.ts +3 -0
  335. package/lib/module/animation/functions/interpolatePaths.d.ts +19 -0
  336. package/lib/module/animation/functions/interpolateVector.d.ts +10 -0
  337. package/lib/module/animation/index.d.ts +4 -0
  338. package/lib/module/animation/spring/Spring.d.ts +65 -0
  339. package/lib/module/animation/spring/functions/index.d.ts +1 -0
  340. package/lib/module/animation/spring/functions/spring.d.ts +10 -0
  341. package/lib/module/animation/spring/index.d.ts +3 -0
  342. package/lib/module/animation/spring/runSpring.d.ts +16 -0
  343. package/lib/module/animation/spring/types.d.ts +6 -0
  344. package/lib/module/animation/spring/useSpring.d.ts +10 -0
  345. package/lib/module/animation/timing/Easing.d.ts +19 -0
  346. package/lib/module/animation/timing/createTiming.d.ts +17 -0
  347. package/lib/module/animation/timing/functions/bezier.d.ts +1 -0
  348. package/lib/module/animation/timing/functions/getResolvedParams.d.ts +7 -0
  349. package/lib/module/animation/timing/functions/index.d.ts +4 -0
  350. package/lib/module/animation/timing/functions/timing.d.ts +17 -0
  351. package/lib/module/animation/timing/functions/types.d.ts +7 -0
  352. package/lib/module/animation/timing/index.d.ts +4 -0
  353. package/lib/module/animation/timing/runTiming.d.ts +16 -0
  354. package/lib/module/animation/timing/useLoop.d.ts +8 -0
  355. package/lib/module/animation/timing/useTiming.d.ts +10 -0
  356. package/lib/module/animation/types.d.ts +18 -0
  357. package/lib/module/dom/nodes/DrawingNode.d.ts +14 -0
  358. package/lib/module/dom/nodes/GroupNode.d.ts +7 -0
  359. package/lib/module/dom/nodes/JsiSkDOM.d.ts +65 -0
  360. package/lib/module/dom/nodes/LayerNode.d.ts +8 -0
  361. package/lib/module/dom/nodes/Node.d.ts +43 -0
  362. package/lib/module/dom/nodes/PaintContext.d.ts +18 -0
  363. package/lib/module/dom/nodes/PaintNode.d.ts +8 -0
  364. package/lib/module/dom/nodes/RenderNode.d.ts +27 -0
  365. package/lib/module/dom/nodes/datatypes/Circle.d.ts +7 -0
  366. package/lib/module/dom/nodes/datatypes/Enum.d.ts +1 -0
  367. package/lib/module/dom/nodes/datatypes/Fitting.d.ts +33 -0
  368. package/lib/module/dom/nodes/datatypes/Gradient.d.ts +92 -0
  369. package/lib/module/dom/nodes/datatypes/Path.d.ts +4 -0
  370. package/lib/module/dom/nodes/datatypes/Radius.d.ts +3 -0
  371. package/lib/module/dom/nodes/datatypes/Rect.d.ts +5 -0
  372. package/lib/module/dom/nodes/datatypes/Transform.d.ts +3 -0
  373. package/lib/module/dom/nodes/datatypes/index.d.ts +8 -0
  374. package/lib/module/dom/nodes/drawings/BackdropFilterNode.d.ts +8 -0
  375. package/lib/module/dom/nodes/drawings/Box.d.ts +13 -0
  376. package/lib/module/dom/nodes/drawings/CircleNode.d.ts +9 -0
  377. package/lib/module/dom/nodes/drawings/CustomDrawingNode.d.ts +8 -0
  378. package/lib/module/dom/nodes/drawings/DiffRectNode.d.ts +8 -0
  379. package/lib/module/dom/nodes/drawings/FillNode.d.ts +8 -0
  380. package/lib/module/dom/nodes/drawings/ImageNode.d.ts +25 -0
  381. package/lib/module/dom/nodes/drawings/ImageSVG.d.ts +8 -0
  382. package/lib/module/dom/nodes/drawings/LineNode.d.ts +8 -0
  383. package/lib/module/dom/nodes/drawings/OvalNode.d.ts +9 -0
  384. package/lib/module/dom/nodes/drawings/PatchNode.d.ts +18 -0
  385. package/lib/module/dom/nodes/drawings/PathNode.d.ts +9 -0
  386. package/lib/module/dom/nodes/drawings/PictureNode.d.ts +8 -0
  387. package/lib/module/dom/nodes/drawings/PointsNode.d.ts +8 -0
  388. package/lib/module/dom/nodes/drawings/RRectNode.d.ts +10 -0
  389. package/lib/module/dom/nodes/drawings/RectNode.d.ts +9 -0
  390. package/lib/module/dom/nodes/drawings/Text.d.ts +30 -0
  391. package/lib/module/dom/nodes/drawings/VerticesNode.d.ts +9 -0
  392. package/lib/module/dom/nodes/drawings/index.d.ts +18 -0
  393. package/lib/module/dom/nodes/index.d.ts +3 -0
  394. package/lib/module/dom/nodes/paint/BlendNode.d.ts +12 -0
  395. package/lib/module/dom/nodes/paint/ColorFilters.d.ts +36 -0
  396. package/lib/module/dom/nodes/paint/ImageFilters.d.ts +42 -0
  397. package/lib/module/dom/nodes/paint/MaskFilters.d.ts +8 -0
  398. package/lib/module/dom/nodes/paint/PathEffects.d.ts +42 -0
  399. package/lib/module/dom/nodes/paint/Shaders.d.ts +44 -0
  400. package/lib/module/dom/nodes/paint/index.d.ts +6 -0
  401. package/lib/module/dom/types/ColorFilters.d.ts +12 -0
  402. package/lib/module/dom/types/Common.d.ts +56 -0
  403. package/lib/module/dom/types/DrawingContext.d.ts +5 -0
  404. package/lib/module/dom/types/Drawings.d.ts +104 -0
  405. package/lib/module/dom/types/ImageFilters.d.ts +37 -0
  406. package/lib/module/dom/types/MaskFilters.d.ts +7 -0
  407. package/lib/module/dom/types/Node.d.ts +29 -0
  408. package/lib/module/dom/types/NodeType.d.ts +67 -0
  409. package/lib/module/dom/types/PathEffects.d.ts +28 -0
  410. package/lib/module/dom/types/Shaders.d.ts +59 -0
  411. package/lib/module/dom/types/SkDOM.d.ts +72 -0
  412. package/lib/module/dom/types/index.d.ts +11 -0
  413. package/lib/module/external/index.d.ts +1 -0
  414. package/lib/module/external/reanimated/index.d.ts +1 -0
  415. package/lib/module/external/reanimated/useSharedValueEffect.d.ts +11 -0
  416. package/lib/module/index.d.ts +10 -0
  417. package/lib/module/mock/index.d.ts +16 -0
  418. package/lib/module/renderer/Canvas.d.ts +11 -0
  419. package/lib/module/renderer/Container.d.ts +12 -0
  420. package/lib/module/renderer/DependencyManager.d.ts +46 -0
  421. package/lib/module/renderer/DrawingContext.d.ts +6 -0
  422. package/lib/module/renderer/HostComponents.d.ts +132 -0
  423. package/lib/module/renderer/HostConfig.d.ts +19 -0
  424. package/lib/module/renderer/Reconciler.d.ts +13 -0
  425. package/lib/module/renderer/components/Blend.d.ts +4 -0
  426. package/lib/module/renderer/components/Drawing.d.ts +3 -0
  427. package/lib/module/renderer/components/Group.d.ts +8 -0
  428. package/lib/module/renderer/components/Mask.d.ts +9 -0
  429. package/lib/module/renderer/components/Paint.d.ts +4 -0
  430. package/lib/module/renderer/components/Picture.d.ts +4 -0
  431. package/lib/module/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
  432. package/lib/module/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
  433. package/lib/module/renderer/components/backdrop/index.d.ts +2 -0
  434. package/lib/module/renderer/components/colorFilters/BlendColor.d.ts +4 -0
  435. package/lib/module/renderer/components/colorFilters/Lerp.d.ts +4 -0
  436. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
  437. package/lib/module/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
  438. package/lib/module/renderer/components/colorFilters/Matrix.d.ts +5 -0
  439. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
  440. package/lib/module/renderer/components/colorFilters/index.d.ts +6 -0
  441. package/lib/module/renderer/components/image/Image.d.ts +4 -0
  442. package/lib/module/renderer/components/image/ImageSVG.d.ts +4 -0
  443. package/lib/module/renderer/components/image/ImageShader.d.ts +4 -0
  444. package/lib/module/renderer/components/image/index.d.ts +3 -0
  445. package/lib/module/renderer/components/imageFilters/Blur.d.ts +4 -0
  446. package/lib/module/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
  447. package/lib/module/renderer/components/imageFilters/Morphology.d.ts +4 -0
  448. package/lib/module/renderer/components/imageFilters/Offset.d.ts +4 -0
  449. package/lib/module/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
  450. package/lib/module/renderer/components/imageFilters/Shadow.d.ts +4 -0
  451. package/lib/module/renderer/components/imageFilters/index.d.ts +6 -0
  452. package/lib/module/renderer/components/index.d.ts +16 -0
  453. package/lib/module/renderer/components/maskFilters/Blur.d.ts +4 -0
  454. package/lib/module/renderer/components/maskFilters/index.d.ts +1 -0
  455. package/lib/module/renderer/components/pathEffects/Corner.d.ts +4 -0
  456. package/lib/module/renderer/components/pathEffects/Dash.d.ts +4 -0
  457. package/lib/module/renderer/components/pathEffects/Discrete.d.ts +4 -0
  458. package/lib/module/renderer/components/pathEffects/Line2D.d.ts +4 -0
  459. package/lib/module/renderer/components/pathEffects/Path1D.d.ts +4 -0
  460. package/lib/module/renderer/components/pathEffects/Path2D.d.ts +4 -0
  461. package/lib/module/renderer/components/pathEffects/Sum.d.ts +3 -0
  462. package/lib/module/renderer/components/pathEffects/index.d.ts +7 -0
  463. package/lib/module/renderer/components/shaders/Color.d.ts +4 -0
  464. package/lib/module/renderer/components/shaders/FractalNoise.d.ts +4 -0
  465. package/lib/module/renderer/components/shaders/LinearGradient.d.ts +4 -0
  466. package/lib/module/renderer/components/shaders/RadialGradient.d.ts +4 -0
  467. package/lib/module/renderer/components/shaders/Shader.d.ts +4 -0
  468. package/lib/module/renderer/components/shaders/ShaderLib.d.ts +4 -0
  469. package/lib/module/renderer/components/shaders/SweepGradient.d.ts +4 -0
  470. package/lib/module/renderer/components/shaders/Turbulence.d.ts +4 -0
  471. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
  472. package/lib/module/renderer/components/shaders/index.d.ts +9 -0
  473. package/lib/module/renderer/components/shapes/Box.d.ts +5 -0
  474. package/lib/module/renderer/components/shapes/Circle.d.ts +4 -0
  475. package/lib/module/renderer/components/shapes/DiffRect.d.ts +4 -0
  476. package/lib/module/renderer/components/shapes/Fill.d.ts +4 -0
  477. package/lib/module/renderer/components/shapes/FitBox.d.ts +20 -0
  478. package/lib/module/renderer/components/shapes/Line.d.ts +4 -0
  479. package/lib/module/renderer/components/shapes/Oval.d.ts +4 -0
  480. package/lib/module/renderer/components/shapes/Patch.d.ts +4 -0
  481. package/lib/module/renderer/components/shapes/Path.d.ts +4 -0
  482. package/lib/module/renderer/components/shapes/Points.d.ts +4 -0
  483. package/lib/module/renderer/components/shapes/Rect.d.ts +4 -0
  484. package/lib/module/renderer/components/shapes/RoundedRect.d.ts +4 -0
  485. package/lib/module/renderer/components/shapes/Vertices.d.ts +4 -0
  486. package/lib/module/renderer/components/shapes/index.d.ts +13 -0
  487. package/lib/module/renderer/components/text/Glyphs.d.ts +4 -0
  488. package/lib/module/renderer/components/text/Text.d.ts +4 -0
  489. package/lib/module/renderer/components/text/TextBlob.d.ts +4 -0
  490. package/lib/module/renderer/components/text/TextPath.d.ts +4 -0
  491. package/lib/module/renderer/components/text/index.d.ts +4 -0
  492. package/lib/module/renderer/index.d.ts +2 -0
  493. package/lib/module/renderer/index.js +0 -1
  494. package/lib/module/renderer/index.js.map +1 -1
  495. package/lib/module/renderer/processors/Animations/Animations.d.ts +17 -0
  496. package/lib/module/renderer/processors/Animations/index.d.ts +1 -0
  497. package/lib/module/renderer/processors/index.d.ts +2 -0
  498. package/lib/module/renderer/processors/math/Coordinates.d.ts +29 -0
  499. package/lib/module/renderer/processors/math/Math.d.ts +15 -0
  500. package/lib/module/renderer/processors/math/Transforms.d.ts +5 -0
  501. package/lib/module/renderer/processors/math/index.d.ts +3 -0
  502. package/lib/module/renderer/typeddash.d.ts +3 -0
  503. package/lib/module/skia/NativeSetup.d.ts +1 -0
  504. package/lib/module/skia/Skia.d.ts +8 -0
  505. package/lib/module/skia/Skia.web.d.ts +1 -0
  506. package/lib/module/skia/core/Data.d.ts +3 -0
  507. package/lib/module/skia/core/Font.d.ts +5 -0
  508. package/lib/module/skia/core/Image.d.ts +5 -0
  509. package/lib/module/skia/core/Matrix.d.ts +2 -0
  510. package/lib/module/skia/core/Picture.d.ts +8 -0
  511. package/lib/module/skia/core/RRect.d.ts +2 -0
  512. package/lib/module/skia/core/Rect.d.ts +8 -0
  513. package/lib/module/skia/core/SVG.d.ts +2 -0
  514. package/lib/module/skia/core/Typeface.d.ts +5 -0
  515. package/lib/module/skia/core/Vector.d.ts +12 -0
  516. package/lib/module/skia/core/index.d.ts +10 -0
  517. package/lib/module/skia/index.d.ts +3 -0
  518. package/lib/module/skia/types/Canvas.d.ts +381 -0
  519. package/lib/module/skia/types/Color.d.ts +2 -0
  520. package/lib/module/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
  521. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
  522. package/lib/module/skia/types/ColorFilter/index.d.ts +2 -0
  523. package/lib/module/skia/types/ContourMeasure.d.ts +41 -0
  524. package/lib/module/skia/types/Data/Data.d.ts +12 -0
  525. package/lib/module/skia/types/Data/DataFactory.d.ts +18 -0
  526. package/lib/module/skia/types/Data/index.d.ts +2 -0
  527. package/lib/module/skia/types/Font/Font.d.ts +180 -0
  528. package/lib/module/skia/types/Font/index.d.ts +1 -0
  529. package/lib/module/skia/types/Image/Image.d.ts +75 -0
  530. package/lib/module/skia/types/Image/ImageFactory.d.ts +62 -0
  531. package/lib/module/skia/types/Image/index.d.ts +2 -0
  532. package/lib/module/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
  533. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
  534. package/lib/module/skia/types/ImageFilter/index.d.ts +2 -0
  535. package/lib/module/skia/types/JsiInstance.d.ts +3 -0
  536. package/lib/module/skia/types/MaskFilter.d.ts +21 -0
  537. package/lib/module/skia/types/Matrix.d.ts +34 -0
  538. package/lib/module/skia/types/Paint/BlendMode.d.ts +58 -0
  539. package/lib/module/skia/types/Paint/Paint.d.ts +136 -0
  540. package/lib/module/skia/types/Paint/index.d.ts +2 -0
  541. package/lib/module/skia/types/Path/Path.d.ts +474 -0
  542. package/lib/module/skia/types/Path/PathFactory.d.ts +29 -0
  543. package/lib/module/skia/types/Path/index.d.ts +2 -0
  544. package/lib/module/skia/types/PathEffect.d.ts +75 -0
  545. package/lib/module/skia/types/Picture/Picture.d.ts +27 -0
  546. package/lib/module/skia/types/Picture/PictureFactory.d.ts +8 -0
  547. package/lib/module/skia/types/Picture/PictureRecorder.d.ts +15 -0
  548. package/lib/module/skia/types/Picture/index.d.ts +3 -0
  549. package/lib/module/skia/types/Point.d.ts +10 -0
  550. package/lib/module/skia/types/RRect.d.ts +7 -0
  551. package/lib/module/skia/types/RSXform.d.ts +2 -0
  552. package/lib/module/skia/types/Rect.d.ts +6 -0
  553. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
  554. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
  555. package/lib/module/skia/types/RuntimeEffect/index.d.ts +2 -0
  556. package/lib/module/skia/types/SVG/SVG.d.ts +2 -0
  557. package/lib/module/skia/types/SVG/SVGFactory.d.ts +6 -0
  558. package/lib/module/skia/types/SVG/index.d.ts +2 -0
  559. package/lib/module/skia/types/Shader/Shader.d.ts +10 -0
  560. package/lib/module/skia/types/Shader/ShaderFactory.d.ts +104 -0
  561. package/lib/module/skia/types/Shader/index.d.ts +2 -0
  562. package/lib/module/skia/types/Size.d.ts +4 -0
  563. package/lib/module/skia/types/Skia.d.ts +66 -0
  564. package/lib/module/skia/types/Surface/Surface.d.ts +25 -0
  565. package/lib/module/skia/types/Surface/SurfaceFactory.d.ts +11 -0
  566. package/lib/module/skia/types/Surface/index.d.ts +2 -0
  567. package/lib/module/skia/types/TextBlob.d.ts +44 -0
  568. package/lib/module/skia/types/Typeface/Typeface.d.ts +2 -0
  569. package/lib/module/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
  570. package/lib/module/skia/types/Typeface/index.d.ts +2 -0
  571. package/lib/module/skia/types/Vertices/Vertices.d.ts +17 -0
  572. package/lib/module/skia/types/Vertices/index.d.ts +1 -0
  573. package/lib/module/skia/types/index.d.ts +28 -0
  574. package/lib/module/skia/web/Host.d.ts +19 -0
  575. package/lib/module/skia/web/JsiSkCanvas.d.ts +44 -0
  576. package/lib/module/skia/web/JsiSkColor.d.ts +2 -0
  577. package/lib/module/skia/web/JsiSkColorFilter.d.ts +6 -0
  578. package/lib/module/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  579. package/lib/module/skia/web/JsiSkContourMeasure.d.ts +12 -0
  580. package/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  581. package/lib/module/skia/web/JsiSkData.d.ts +8 -0
  582. package/lib/module/skia/web/JsiSkDataFactory.d.ts +19 -0
  583. package/lib/module/skia/web/JsiSkFont.d.ts +33 -0
  584. package/lib/module/skia/web/JsiSkImage.d.ts +12 -0
  585. package/lib/module/skia/web/JsiSkImageFactory.d.ts +10 -0
  586. package/lib/module/skia/web/JsiSkImageFilter.d.ts +6 -0
  587. package/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
  588. package/lib/module/skia/web/JsiSkMaskFilter.d.ts +6 -0
  589. package/lib/module/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  590. package/lib/module/skia/web/JsiSkMatrix.d.ts +13 -0
  591. package/lib/module/skia/web/JsiSkPaint.d.ts +28 -0
  592. package/lib/module/skia/web/JsiSkPath.d.ts +57 -0
  593. package/lib/module/skia/web/JsiSkPathEffect.d.ts +6 -0
  594. package/lib/module/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  595. package/lib/module/skia/web/JsiSkPathFactory.d.ts +13 -0
  596. package/lib/module/skia/web/JsiSkPicture.d.ts +9 -0
  597. package/lib/module/skia/web/JsiSkPictureFactory.d.ts +8 -0
  598. package/lib/module/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  599. package/lib/module/skia/web/JsiSkPoint.d.ts +9 -0
  600. package/lib/module/skia/web/JsiSkRRect.d.ts +11 -0
  601. package/lib/module/skia/web/JsiSkRSXform.d.ts +7 -0
  602. package/lib/module/skia/web/JsiSkRect.d.ts +11 -0
  603. package/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +16 -0
  604. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  605. package/lib/module/skia/web/JsiSkSVGFactory.d.ts +9 -0
  606. package/lib/module/skia/web/JsiSkShader.d.ts +6 -0
  607. package/lib/module/skia/web/JsiSkShaderFactory.d.ts +16 -0
  608. package/lib/module/skia/web/JsiSkSurface.d.ts +8 -0
  609. package/lib/module/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
  610. package/lib/module/skia/web/JsiSkTextBlob.d.ts +6 -0
  611. package/lib/module/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
  612. package/lib/module/skia/web/JsiSkTypeface.d.ts +8 -0
  613. package/lib/module/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  614. package/lib/module/skia/web/JsiSkVertices.d.ts +9 -0
  615. package/lib/module/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  616. package/lib/module/skia/web/JsiSkia.d.ts +3 -0
  617. package/lib/module/skia/web/index.d.ts +1 -0
  618. package/lib/module/values/api.d.ts +5 -0
  619. package/lib/module/values/api.web.d.ts +2 -0
  620. package/lib/module/values/hooks/index.d.ts +4 -0
  621. package/lib/module/values/hooks/useClockValue.d.ts +6 -0
  622. package/lib/module/values/hooks/useComputedValue.d.ts +8 -0
  623. package/lib/module/values/hooks/useValue.d.ts +7 -0
  624. package/lib/module/values/hooks/useValueEffect.d.ts +7 -0
  625. package/lib/module/values/index.d.ts +4 -0
  626. package/lib/module/values/selector.d.ts +14 -0
  627. package/lib/module/values/types.d.ts +63 -0
  628. package/lib/module/values/web/RNSkAnimation.d.ts +9 -0
  629. package/lib/module/values/web/RNSkClockValue.d.ts +13 -0
  630. package/lib/module/values/web/RNSkComputedValue.d.ts +10 -0
  631. package/lib/module/values/web/RNSkReadonlyValue.d.ts +12 -0
  632. package/lib/module/values/web/RNSkValue.d.ts +14 -0
  633. package/lib/module/values/web/api.d.ts +2 -0
  634. package/lib/module/values/web/index.d.ts +1 -0
  635. package/lib/module/views/SkiaBaseWebView.d.ts +62 -0
  636. package/lib/module/views/SkiaDomView.d.ts +31 -0
  637. package/lib/module/views/SkiaDomView.web.d.ts +7 -0
  638. package/lib/module/views/SkiaPictureView.d.ts +27 -0
  639. package/lib/module/views/SkiaPictureView.web.d.ts +7 -0
  640. package/lib/module/views/SkiaView.d.ts +30 -0
  641. package/lib/module/views/SkiaView.web.d.ts +7 -0
  642. package/lib/module/views/api.d.ts +5 -0
  643. package/lib/module/views/index.d.ts +6 -0
  644. package/lib/module/views/types.d.ts +91 -0
  645. package/lib/module/views/useDrawCallback.d.ts +8 -0
  646. package/lib/module/views/useTouchHandler.d.ts +22 -0
  647. package/lib/module/web/LoadSkiaWeb.d.ts +6 -0
  648. package/lib/module/web/WithSkiaWeb.d.ts +12 -0
  649. package/lib/module/web/index.d.ts +2 -0
  650. package/lib/typescript/src/renderer/index.d.ts +0 -1
  651. package/package.json +5 -4
  652. package/src/renderer/index.ts +0 -1
  653. package/lib/commonjs/renderer/useContextBridge.js +0 -35
  654. package/lib/commonjs/renderer/useContextBridge.js.map +0 -1
  655. package/lib/module/renderer/useContextBridge.js +0 -21
  656. package/lib/module/renderer/useContextBridge.js.map +0 -1
  657. package/lib/typescript/src/renderer/useContextBridge.d.ts +0 -5
  658. package/src/renderer/useContextBridge.tsx +0 -21
@@ -0,0 +1,65 @@
1
+ import type { SpringConfig } from "./types";
2
+ export declare const Spring: {
3
+ Config: {
4
+ Gentle: {
5
+ mass: number;
6
+ stiffness: number;
7
+ damping: number;
8
+ velocity: number;
9
+ };
10
+ Wobbly: {
11
+ mass: number;
12
+ stiffness: number;
13
+ damping: number;
14
+ velocity: number;
15
+ };
16
+ WobblySlow: {
17
+ mass: number;
18
+ stiffness: number;
19
+ damping: number;
20
+ velocity: number;
21
+ };
22
+ Stiff: {
23
+ mass: number;
24
+ stiffness: number;
25
+ damping: number;
26
+ velocity: number;
27
+ };
28
+ Default: {
29
+ mass: number;
30
+ stiffness: number;
31
+ damping: number;
32
+ velocity: number;
33
+ };
34
+ };
35
+ Gentle: (config?: SpringConfig) => {
36
+ mass: number;
37
+ stiffness: number;
38
+ velocity: number;
39
+ damping: number;
40
+ };
41
+ Wobbly: (config?: SpringConfig) => {
42
+ mass: number;
43
+ stiffness: number;
44
+ velocity: number;
45
+ damping: number;
46
+ };
47
+ WobblySlow: (config?: SpringConfig) => {
48
+ mass: number;
49
+ stiffness: number;
50
+ velocity: number;
51
+ damping: number;
52
+ };
53
+ Stiff: (config?: SpringConfig) => {
54
+ mass: number;
55
+ stiffness: number;
56
+ velocity: number;
57
+ damping: number;
58
+ };
59
+ Default: (config?: SpringConfig) => {
60
+ mass: number;
61
+ stiffness: number;
62
+ velocity: number;
63
+ damping: number;
64
+ };
65
+ };
@@ -0,0 +1 @@
1
+ export { createSpringEasing } from "./spring";
@@ -0,0 +1,10 @@
1
+ import type { SpringConfig } from "../types";
2
+ import type { TimingConfig } from "../../types";
3
+ /**
4
+ * @description Returns a cached jsContext function for a spring with duration
5
+ * @param mass The mass of the spring
6
+ * @param stiffness The stiffness of the spring
7
+ * @param damping Spring damping
8
+ * @param velocity The initial velocity
9
+ */
10
+ export declare const createSpringEasing: (params: Partial<SpringConfig>) => TimingConfig;
@@ -0,0 +1,3 @@
1
+ export { Spring } from "./Spring";
2
+ export { runSpring } from "./runSpring";
3
+ export { useSpring } from "./useSpring";
@@ -0,0 +1,16 @@
1
+ import type { SkiaMutableValue, SkiaAnimation } from "../../values/types";
2
+ import type { AnimationParams, SpringConfig, AnimationCallback } from "../types";
3
+ /**
4
+ * Creates a new animation on an existing value that will be driven by
5
+ * an animation value. The value will be run from / to the value in
6
+ * params and modified by the provided easing curve for the length of
7
+ * the duration. When the value has reached its desired "to" value the
8
+ * animation will be stopped.
9
+ *
10
+ * @param value The value to animate
11
+ * @param toOrParams To value or Animation parameters
12
+ * @param config Spring configuration
13
+ * @returns an animation value that can be used to start/stop
14
+ * the animation.
15
+ */
16
+ export declare const runSpring: (value: SkiaMutableValue<number>, toOrParams: number | AnimationParams, config?: SpringConfig, callback?: AnimationCallback) => SkiaAnimation;
@@ -0,0 +1,6 @@
1
+ export interface SpringConfig {
2
+ mass?: number;
3
+ stiffness?: number;
4
+ velocity?: number;
5
+ damping?: number;
6
+ }
@@ -0,0 +1,10 @@
1
+ import type { SkiaValue } from "../../values/types";
2
+ import type { SpringConfig, AnimationParams, AnimationCallback } from "../types";
3
+ /**
4
+ * Creats a spring based animation value that will run whenever
5
+ * the animation parameters change.
6
+ * @param toOrParams
7
+ * @param config
8
+ * @returns
9
+ */
10
+ export declare const useSpring: (toOrParams: number | AnimationParams, config?: SpringConfig, callback?: AnimationCallback) => SkiaValue<number>;
@@ -0,0 +1,19 @@
1
+ export declare class Easing {
2
+ static step0(n: number): number;
3
+ static step1(n: number): number;
4
+ static linear(t: number): number;
5
+ static ease(t: number): number;
6
+ static quad(t: number): number;
7
+ static cubic(t: number): number;
8
+ static poly(n: number): (t: number) => number;
9
+ static sin(t: number): number;
10
+ static circle(t: number): number;
11
+ static exp(t: number): number;
12
+ static elastic(bounciness?: number): (t: number) => number;
13
+ static back(s?: number): (t: number) => number;
14
+ static bounce(t: number): number;
15
+ static bezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;
16
+ static in(easing: (t: number) => number): (t: number) => number;
17
+ static out(easing: (t: number) => number): (t: number) => number;
18
+ static inOut(easing: (t: number) => number): (t: number) => number;
19
+ }
@@ -0,0 +1,17 @@
1
+ import type { TimingConfig, RequiredAnimationParams, AnimationCallback } from "../types";
2
+ import type { SkiaMutableValue } from "../../values/types";
3
+ /**
4
+ * Creates an animation that is driven by a clock value.
5
+ * The value will be run from / to the value in params and modified
6
+ * by the provided easing curve for the length of the duration. When
7
+ * the value has reached its desired "to" value the animation
8
+ * will be stopped. If loop is set to true, the animation will continue
9
+ * to run until stopped.
10
+ *
11
+ * @param params Animation parameters
12
+ * @param config Spring or timing configuration
13
+ * @param value Optional value that the animation will update
14
+ * @params an animation value that can be used to start/stop
15
+ * the animation.
16
+ */
17
+ export declare const createTiming: (params: RequiredAnimationParams & Required<TimingConfig>, value?: SkiaMutableValue<number>, callback?: AnimationCallback) => import("../../values/types").SkiaAnimation;
@@ -0,0 +1 @@
1
+ export declare function bezier(mX1: number, mY1: number, mX2: number, mY2: number): (x: number) => number;
@@ -0,0 +1,7 @@
1
+ import type { RequiredAnimationParams, AnimationParams, TimingConfig } from "../../types";
2
+ /**
3
+ * Resolves parameters from optional values to a single object
4
+ * @param toOrParams Params or to value
5
+ * @param config timing/spring configuration
6
+ */
7
+ export declare const getResolvedParams: (toOrParams: number | AnimationParams, config?: TimingConfig) => RequiredAnimationParams & Required<TimingConfig>;
@@ -0,0 +1,4 @@
1
+ export { bezier } from "./bezier";
2
+ export { timing } from "./timing";
3
+ export * from "./types";
4
+ export * from "./getResolvedParams";
@@ -0,0 +1,17 @@
1
+ import type { AnimationState } from "../../../values/types";
2
+ /**
3
+ * Calculates and returns a timing value based on the
4
+ * input parameters. The timing value is a number between
5
+ * 0 and 1.
6
+ * @param t
7
+ * @param duration
8
+ * @param easing
9
+ * @param loop
10
+ * @param yoyo
11
+ * @param onStop
12
+ * @returns
13
+ */
14
+ export declare const timing: (t: number, duration: number, easing: (t: number) => number, loop: boolean, yoyo: boolean, state: AnimationState) => {
15
+ current: number;
16
+ finished: boolean;
17
+ };
@@ -0,0 +1,7 @@
1
+ export declare type EasingFunction = (value: number) => number;
2
+ export interface TimingConfig {
3
+ from?: number;
4
+ to?: number;
5
+ duration?: number;
6
+ easing?: EasingFunction;
7
+ }
@@ -0,0 +1,4 @@
1
+ export { Easing } from "./Easing";
2
+ export { useTiming } from "./useTiming";
3
+ export { useLoop } from "./useLoop";
4
+ export { runTiming } from "./runTiming";
@@ -0,0 +1,16 @@
1
+ import type { SkiaMutableValue, SkiaAnimation } from "../../values/types";
2
+ import type { AnimationParams, TimingConfig, AnimationCallback } from "../types";
3
+ /**
4
+ * Creates a new animation on an existing value that will be driven by
5
+ * an animation value. The value will be run from / to the value in
6
+ * params and modified by the provided easing curve for the length of
7
+ * the duration. When the value has reached its desired "to" value the
8
+ * animation will be stopped.
9
+ *
10
+ * @param value The value to animate
11
+ * @param toOrParams To value or Animation parameters
12
+ * @param config Spring or timing configuration
13
+ * @returns an animation value that can be used to start/stop
14
+ * the animation.
15
+ */
16
+ export declare const runTiming: (value: SkiaMutableValue<number>, toOrParams: number | AnimationParams, config?: TimingConfig, callback?: AnimationCallback) => SkiaAnimation;
@@ -0,0 +1,8 @@
1
+ import type { TimingConfig } from "../types";
2
+ /**
3
+ * Configures a looped timing value. The value will go back and forth
4
+ * between 0 and 1 and back.
5
+ * @param config Timing configuration for easing and duration
6
+ * @returns A value that can be used for further animations
7
+ */
8
+ export declare const useLoop: (config?: TimingConfig) => import("../..").SkiaValue<number>;
@@ -0,0 +1,10 @@
1
+ import type { SkiaValue } from "../../values/types";
2
+ import type { AnimationParams, TimingConfig, AnimationCallback } from "../types";
3
+ /**
4
+ * Creats an animation value that will run whenever
5
+ * the animation parameters change. The animation start immediately.
6
+ * @param toOrParams
7
+ * @param config
8
+ * @returns A value that is animated
9
+ */
10
+ export declare const useTiming: (toOrParams: number | AnimationParams, config?: TimingConfig, callback?: AnimationCallback) => SkiaValue<number>;
@@ -0,0 +1,18 @@
1
+ export interface SpringConfig {
2
+ mass?: number;
3
+ stiffness?: number;
4
+ damping?: number;
5
+ velocity?: number;
6
+ }
7
+ export interface TimingConfig {
8
+ duration?: number;
9
+ easing?: (t: number) => number;
10
+ }
11
+ export interface AnimationParams {
12
+ from?: number;
13
+ to?: number;
14
+ loop?: boolean;
15
+ yoyo?: boolean;
16
+ }
17
+ export declare type RequiredAnimationParams = Required<Omit<AnimationParams, "from">> & Pick<AnimationParams, "from">;
18
+ export declare type AnimationCallback = (current: number) => void;
@@ -0,0 +1,14 @@
1
+ import type { DrawingContext, DrawingNodeProps, Node, NodeType, RenderNode } from "../types";
2
+ import type { NodeContext } from "./Node";
3
+ import { JsiRenderNode } from "./RenderNode";
4
+ export declare abstract class JsiDrawingNode<P extends DrawingNodeProps, C> extends JsiRenderNode<P> implements RenderNode<P> {
5
+ protected derived?: C;
6
+ constructor(ctx: NodeContext, type: NodeType, props: P);
7
+ setProps(props: P): void;
8
+ setProp<K extends keyof P>(name: K, value: P[K]): boolean;
9
+ addChild(child: Node<unknown>): void;
10
+ insertChildBefore(child: Node<unknown>, before: Node<unknown>): void;
11
+ renderNode(ctx: DrawingContext): void;
12
+ protected abstract draw(ctx: DrawingContext): void;
13
+ protected abstract deriveProps(): C;
14
+ }
@@ -0,0 +1,7 @@
1
+ import type { DrawingContext, GroupProps } from "../types";
2
+ import { JsiRenderNode } from "./RenderNode";
3
+ import type { NodeContext } from "./Node";
4
+ export declare class GroupNode extends JsiRenderNode<GroupProps> {
5
+ constructor(ctx: NodeContext, props: GroupProps);
6
+ renderNode(ctx: DrawingContext): void;
7
+ }
@@ -0,0 +1,65 @@
1
+ import type { PathProps, SkDOM, GroupProps, ImageProps, BlurImageFilterProps, MatrixColorFilterProps, CircleProps, BlurMaskFilterProps, LinearGradientProps, PaintProps, ShaderProps, ImageShaderProps, CustomDrawingNodeProps, LineProps, OvalProps, PatchProps, PointsProps, RectProps, RoundedRectProps, VerticesProps, TextProps, DiffRectProps, OffsetImageFilterProps, BlendColorFilterProps, TextPathProps, TextBlobProps, GlyphsProps, TwoPointConicalGradientProps, TurbulenceProps, SweepGradientProps, RadialGradientProps, FractalNoiseProps, ColorProps, PictureProps, ImageSVGProps, LerpColorFilterProps, DrawingNodeProps, BoxProps, BoxShadowProps, ChildrenProps } from "../types";
2
+ import type { BlendImageFilterProps, BlendProps, DisplacementMapImageFilterProps, DropShadowImageFilterProps, MorphologyImageFilterProps, RuntimeShaderImageFilterProps } from "../types/ImageFilters";
3
+ import type { CornerPathEffectProps, DashPathEffectProps, DiscretePathEffectProps, Line2DPathEffectProps, Path1DPathEffectProps, Path2DPathEffectProps } from "../types/PathEffects";
4
+ import { CornerPathEffectNode, Path1DPathEffectNode, Path2DPathEffectNode, Line2DPathEffectNode, BlendNode } from "./paint";
5
+ import type { NodeContext } from "./Node";
6
+ export declare class JsiSkDOM implements SkDOM {
7
+ private ctx;
8
+ constructor(ctx: NodeContext);
9
+ Layer(props?: ChildrenProps): import("../types").RenderNode<ChildrenProps>;
10
+ Group(props?: GroupProps): import("../types").RenderNode<GroupProps>;
11
+ Paint(props: PaintProps): import("../types").DeclarationNode<PaintProps, import("../..").SkPaint, never>;
12
+ Fill(props?: DrawingNodeProps): import("../types").RenderNode<PaintProps>;
13
+ Image(props: ImageProps): import("../types").RenderNode<ImageProps>;
14
+ Circle(props: CircleProps): import("../types").RenderNode<CircleProps>;
15
+ Path(props: PathProps): import("../types").RenderNode<PathProps>;
16
+ CustomDrawing(props: CustomDrawingNodeProps): import("../types").RenderNode<CustomDrawingNodeProps>;
17
+ Line(props: LineProps): import("../types").RenderNode<LineProps>;
18
+ Oval(props: OvalProps): import("../types").RenderNode<OvalProps>;
19
+ Patch(props: PatchProps): import("../types").RenderNode<PatchProps>;
20
+ Points(props: PointsProps): import("../types").RenderNode<PointsProps>;
21
+ Rect(props: RectProps): import("./DrawingNode").JsiDrawingNode<RectProps, import("../..").SkRect>;
22
+ RRect(props: RoundedRectProps): import("./DrawingNode").JsiDrawingNode<RoundedRectProps, import("../..").SkRRect>;
23
+ Vertices(props: VerticesProps): import("../types").RenderNode<VerticesProps>;
24
+ Text(props: TextProps): import("../types").RenderNode<TextProps>;
25
+ TextPath(props: TextPathProps): import("../types").RenderNode<TextPathProps>;
26
+ TextBlob(props: TextBlobProps): import("../types").RenderNode<TextBlobProps>;
27
+ Glyphs(props: GlyphsProps): import("../types").RenderNode<GlyphsProps>;
28
+ DiffRect(props: DiffRectProps): import("../types").RenderNode<DiffRectProps>;
29
+ Picture(props: PictureProps): import("../types").RenderNode<PictureProps>;
30
+ ImageSVG(props: ImageSVGProps): import("../types").RenderNode<ImageSVGProps>;
31
+ BlurMaskFilter(props: BlurMaskFilterProps): import("../types").DeclarationNode<BlurMaskFilterProps, import("../..").SkMaskFilter, never>;
32
+ BlendImageFilter(props: BlendImageFilterProps): import("../types").DeclarationNode<BlendImageFilterProps, import("../..").SkImageFilter, never>;
33
+ DropShadowImageFilter(props: DropShadowImageFilterProps): import("../types").DeclarationNode<DropShadowImageFilterProps, import("../..").SkImageFilter, never>;
34
+ DisplacementMapImageFilter(props: DisplacementMapImageFilterProps): import("../types").DeclarationNode<DisplacementMapImageFilterProps, import("../..").SkImageFilter, never>;
35
+ BlurImageFilter(props: BlurImageFilterProps): import("../types").DeclarationNode<BlurImageFilterProps, import("../..").SkImageFilter, never>;
36
+ OffsetImageFilter(props: OffsetImageFilterProps): import("../types").DeclarationNode<OffsetImageFilterProps, import("../..").SkImageFilter, never>;
37
+ MorphologyImageFilter(props: MorphologyImageFilterProps): import("../types").DeclarationNode<MorphologyImageFilterProps, import("../..").SkImageFilter, never>;
38
+ RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps): import("../types").DeclarationNode<RuntimeShaderImageFilterProps, import("../..").SkImageFilter, never>;
39
+ MatrixColorFilter(props: MatrixColorFilterProps): import("../types").DeclarationNode<MatrixColorFilterProps, import("../..").SkColorFilter, never>;
40
+ BlendColorFilter(props: BlendColorFilterProps): import("../types").DeclarationNode<BlendColorFilterProps, import("../..").SkColorFilter, never>;
41
+ LumaColorFilter(): import("../types").DeclarationNode<null, import("../..").SkColorFilter, never>;
42
+ LinearToSRGBGammaColorFilter(): import("../types").DeclarationNode<null, import("../..").SkColorFilter, never>;
43
+ SRGBToLinearGammaColorFilter(): import("../types").DeclarationNode<null, import("../..").SkColorFilter, never>;
44
+ LerpColorFilter(props: LerpColorFilterProps): import("../types").DeclarationNode<LerpColorFilterProps, import("../..").SkColorFilter, never>;
45
+ Shader(props: ShaderProps): import("../types").DeclarationNode<ShaderProps, import("../..").SkShader, never>;
46
+ ImageShader(props: ImageShaderProps): import("../types").DeclarationNode<ImageShaderProps, import("../..").SkShader, never>;
47
+ ColorShader(props: ColorProps): import("../types").DeclarationNode<ColorProps, import("../..").SkShader, never>;
48
+ SweepGradient(props: SweepGradientProps): import("../types").DeclarationNode<SweepGradientProps, import("../..").SkShader, never>;
49
+ Turbulence(props: TurbulenceProps): import("../types").DeclarationNode<TurbulenceProps, import("../..").SkShader, never>;
50
+ FractalNoise(props: FractalNoiseProps): import("../types").DeclarationNode<FractalNoiseProps, import("../..").SkShader, never>;
51
+ LinearGradient(props: LinearGradientProps): import("../types").DeclarationNode<LinearGradientProps, import("../..").SkShader, never>;
52
+ RadialGradient(props: RadialGradientProps): import("../types").DeclarationNode<RadialGradientProps, import("../..").SkShader, never>;
53
+ TwoPointConicalGradient(props: TwoPointConicalGradientProps): import("../types").DeclarationNode<TwoPointConicalGradientProps, import("../..").SkShader, never>;
54
+ CornerPathEffect(props: CornerPathEffectProps): CornerPathEffectNode | import("../types").DeclarationNode<CornerPathEffectProps, import("../..").SkPathEffect, never>;
55
+ DiscretePathEffect(props: DiscretePathEffectProps): import("../types").DeclarationNode<DiscretePathEffectProps, import("../..").SkPathEffect, never>;
56
+ DashPathEffect(props: DashPathEffectProps): import("../types").DeclarationNode<DashPathEffectProps, import("../..").SkPathEffect, never>;
57
+ Path1DPathEffect(props: Path1DPathEffectProps): Path1DPathEffectNode | import("../types").DeclarationNode<Path1DPathEffectProps, import("../..").SkPathEffect, never>;
58
+ Path2DPathEffect(props: Path2DPathEffectProps): Path2DPathEffectNode | import("../types").DeclarationNode<Path2DPathEffectProps, import("../..").SkPathEffect, never>;
59
+ SumPathEffect(): import("../types").DeclarationNode<null, import("../..").SkPathEffect, never>;
60
+ Line2DPathEffect(props: Line2DPathEffectProps): Line2DPathEffectNode | import("../types").DeclarationNode<Line2DPathEffectProps, import("../..").SkPathEffect, never>;
61
+ Blend(props: BlendProps): BlendNode | import("../types").DeclarationNode<BlendProps, import("../..").SkImageFilter, never>;
62
+ BackdropFilter(props: ChildrenProps): import("../types").RenderNode<ChildrenProps>;
63
+ Box(props: BoxProps): import("../types").RenderNode<BoxProps>;
64
+ BoxShadow(props: BoxShadowProps): import("../types").DeclarationNode<BoxShadowProps, BoxShadowProps, never>;
65
+ }
@@ -0,0 +1,8 @@
1
+ import type { DrawingContext } from "../types";
2
+ import type { ChildrenProps } from "../types/Common";
3
+ import { JsiRenderNode } from "./RenderNode";
4
+ import type { NodeContext } from "./Node";
5
+ export declare class LayerNode extends JsiRenderNode<ChildrenProps> {
6
+ constructor(ctx: NodeContext, props: ChildrenProps);
7
+ renderNode(ctx: DrawingContext): void;
8
+ }
@@ -0,0 +1,43 @@
1
+ import type { SkColorFilter, Skia, SkImageFilter, SkMaskFilter, SkShader, SkPathEffect, SkPaint } from "../../skia/types";
2
+ import type { Node, DeclarationNode, NodeType } from "../types";
3
+ import { DeclarationType } from "../types";
4
+ import type { DependencyManager } from "../../renderer/DependencyManager";
5
+ export interface NodeContext {
6
+ Skia: Skia;
7
+ depMgr: DependencyManager;
8
+ }
9
+ export declare abstract class JsiNode<P> implements Node<P> {
10
+ type: NodeType;
11
+ protected props: P;
12
+ protected _children: JsiNode<unknown>[];
13
+ protected Skia: Skia;
14
+ protected depMgr: DependencyManager;
15
+ constructor(ctx: NodeContext, type: NodeType, props: P);
16
+ setProps(props: P): void;
17
+ setProp<K extends keyof P>(name: K, v: P[K]): boolean;
18
+ getProps(): P;
19
+ children(): JsiNode<unknown>[];
20
+ addChild(child: Node<unknown>): void;
21
+ dispose(): void;
22
+ removeChild(child: Node<unknown>): void;
23
+ insertChildBefore(child: Node<unknown>, before: Node<unknown>): void;
24
+ }
25
+ export declare type Invalidate = () => void;
26
+ export declare abstract class JsiDeclarationNode<P, T, Nullable extends null | never = never> extends JsiNode<P> implements DeclarationNode<P, T, Nullable> {
27
+ declarationType: DeclarationType;
28
+ private invalidate;
29
+ constructor(ctx: NodeContext, declarationType: DeclarationType, type: NodeType, props: P);
30
+ abstract materialize(): T | Nullable;
31
+ addChild(child: Node<unknown>): void;
32
+ insertChildBefore(child: Node<unknown>, before: Node<unknown>): void;
33
+ dispose(): void;
34
+ setInvalidate(invalidate: Invalidate): void;
35
+ setProps(props: P): void;
36
+ setProp<K extends keyof P>(name: K, v: P[K]): boolean;
37
+ isPaint(): this is DeclarationNode<unknown, SkPaint>;
38
+ isImageFilter(): this is DeclarationNode<unknown, SkImageFilter>;
39
+ isColorFilter(): this is DeclarationNode<unknown, SkColorFilter>;
40
+ isShader(): this is DeclarationNode<unknown, SkShader>;
41
+ isMaskFilter(): this is DeclarationNode<unknown, SkMaskFilter>;
42
+ isPathEffect(): this is DeclarationNode<unknown, SkPathEffect>;
43
+ }
@@ -0,0 +1,18 @@
1
+ import type { BlendMode, PaintStyle, SkColorFilter, SkImageFilter, SkMaskFilter, SkPathEffect, SkShader, StrokeCap, StrokeJoin } from "../../skia/types";
2
+ import type { SkColor } from "../../skia/types/Color";
3
+ export interface PaintContext {
4
+ color?: SkColor;
5
+ strokeWidth?: number;
6
+ blendMode?: BlendMode;
7
+ style?: PaintStyle;
8
+ strokeJoin?: StrokeJoin;
9
+ strokeCap?: StrokeCap;
10
+ strokeMiter?: number;
11
+ opacity?: number;
12
+ antiAlias?: boolean;
13
+ shader?: SkShader;
14
+ colorFilter?: SkColorFilter;
15
+ imageFilter?: SkImageFilter;
16
+ maskFilter?: SkMaskFilter;
17
+ pathEffect?: SkPathEffect;
18
+ }
@@ -0,0 +1,8 @@
1
+ import type { SkPaint } from "../../skia/types";
2
+ import type { DeclarationNode, PaintProps } from "../types";
3
+ import type { NodeContext } from "./Node";
4
+ import { JsiDeclarationNode } from "./Node";
5
+ export declare class PaintNode extends JsiDeclarationNode<PaintProps, SkPaint> implements DeclarationNode<PaintProps, SkPaint> {
6
+ constructor(ctx: NodeContext, props?: PaintProps);
7
+ materialize(): SkPaint;
8
+ }
@@ -0,0 +1,27 @@
1
+ import type { SkMatrix, SkRect, SkRRect, SkPath, SkPaint } from "../../skia/types";
2
+ import type { RenderNode, GroupProps, DrawingContext, NodeType, Node } from "../types";
3
+ import type { NodeContext } from "./Node";
4
+ import { JsiNode } from "./Node";
5
+ interface PaintCache {
6
+ parent: SkPaint;
7
+ child: SkPaint;
8
+ }
9
+ export declare abstract class JsiRenderNode<P extends GroupProps> extends JsiNode<P> implements RenderNode<P> {
10
+ paintCache: PaintCache | null;
11
+ matrix: SkMatrix;
12
+ clipRect?: SkRect;
13
+ clipRRect?: SkRRect;
14
+ clipPath?: SkPath;
15
+ constructor(ctx: NodeContext, type: NodeType, props: P);
16
+ setProps(props: P): void;
17
+ setProp<K extends keyof P>(key: K, value: P[K]): boolean;
18
+ protected onPropChange(): void;
19
+ addChild(child: Node<unknown>): void;
20
+ insertChildBefore(child: Node<unknown>, before: Node<unknown>): void;
21
+ private computeClip;
22
+ private computeMatrix;
23
+ private getPaintCtx;
24
+ render(parentCtx: DrawingContext): void;
25
+ abstract renderNode(ctx: DrawingContext): void;
26
+ }
27
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { Skia } from "../../../skia/types";
2
+ import type { CircleDef, ScalarCircleDef } from "../../types";
3
+ export declare const isCircleScalarDef: (def: CircleDef) => def is ScalarCircleDef;
4
+ export declare const processCircle: (Skia: Skia, def: CircleDef) => {
5
+ c: import("../../../skia/types").SkPoint;
6
+ r: number;
7
+ };
@@ -0,0 +1 @@
1
+ export declare const enumKey: <K extends string>(k: K) => Capitalize<K>;
@@ -0,0 +1,33 @@
1
+ import type { SkRect } from "../../../skia/types";
2
+ import type { Fit } from "../../types";
3
+ export interface Size {
4
+ width: number;
5
+ height: number;
6
+ }
7
+ export declare const size: (width?: number, height?: number) => {
8
+ width: number;
9
+ height: number;
10
+ };
11
+ export declare const rect2rect: (src: SkRect, dst: SkRect) => readonly [{
12
+ readonly translateX: number;
13
+ }, {
14
+ readonly translateY: number;
15
+ }, {
16
+ readonly scaleX: number;
17
+ }, {
18
+ readonly scaleY: number;
19
+ }];
20
+ export declare const fitRects: (fit: Fit, rect: SkRect, { x, y, width, height }: SkRect) => {
21
+ src: {
22
+ x: number;
23
+ y: number;
24
+ width: number;
25
+ height: number;
26
+ };
27
+ dst: {
28
+ x: number;
29
+ y: number;
30
+ width: number;
31
+ height: number;
32
+ };
33
+ };
@@ -0,0 +1,92 @@
1
+ import type { Skia, SkRect, Transforms2d, Vector } from "../../../skia/types";
2
+ import { TileMode } from "../../../skia/types";
3
+ import type { GradientProps, ImageShaderProps } from "../../types";
4
+ export declare const transformOrigin: (origin: Vector, transform: Transforms2d) => (Pick<{
5
+ readonly translateX: number;
6
+ readonly translateY: number;
7
+ readonly scale: number;
8
+ readonly skewX: number;
9
+ readonly skewY: number;
10
+ readonly scaleX: number;
11
+ readonly scaleY: number;
12
+ readonly rotateZ: number;
13
+ readonly rotate: number;
14
+ }, "translateX"> | Pick<{
15
+ readonly translateX: number;
16
+ readonly translateY: number;
17
+ readonly scale: number;
18
+ readonly skewX: number;
19
+ readonly skewY: number;
20
+ readonly scaleX: number;
21
+ readonly scaleY: number;
22
+ readonly rotateZ: number;
23
+ readonly rotate: number;
24
+ }, "translateY"> | Pick<{
25
+ readonly translateX: number;
26
+ readonly translateY: number;
27
+ readonly scale: number;
28
+ readonly skewX: number;
29
+ readonly skewY: number;
30
+ readonly scaleX: number;
31
+ readonly scaleY: number;
32
+ readonly rotateZ: number;
33
+ readonly rotate: number;
34
+ }, "scale"> | Pick<{
35
+ readonly translateX: number;
36
+ readonly translateY: number;
37
+ readonly scale: number;
38
+ readonly skewX: number;
39
+ readonly skewY: number;
40
+ readonly scaleX: number;
41
+ readonly scaleY: number;
42
+ readonly rotateZ: number;
43
+ readonly rotate: number;
44
+ }, "scaleX"> | Pick<{
45
+ readonly translateX: number;
46
+ readonly translateY: number;
47
+ readonly scale: number;
48
+ readonly skewX: number;
49
+ readonly skewY: number;
50
+ readonly scaleX: number;
51
+ readonly scaleY: number;
52
+ readonly rotateZ: number;
53
+ readonly rotate: number;
54
+ }, "scaleY"> | Pick<{
55
+ readonly translateX: number;
56
+ readonly translateY: number;
57
+ readonly scale: number;
58
+ readonly skewX: number;
59
+ readonly skewY: number;
60
+ readonly scaleX: number;
61
+ readonly scaleY: number;
62
+ readonly rotateZ: number;
63
+ readonly rotate: number;
64
+ }, "skewX"> | Pick<{
65
+ readonly translateX: number;
66
+ readonly translateY: number;
67
+ readonly scale: number;
68
+ readonly skewX: number;
69
+ readonly skewY: number;
70
+ readonly scaleX: number;
71
+ readonly scaleY: number;
72
+ readonly rotateZ: number;
73
+ readonly rotate: number;
74
+ }, "skewY"> | Pick<{
75
+ readonly translateX: number;
76
+ readonly translateY: number;
77
+ readonly scale: number;
78
+ readonly skewX: number;
79
+ readonly skewY: number;
80
+ readonly scaleX: number;
81
+ readonly scaleY: number;
82
+ readonly rotateZ: number;
83
+ readonly rotate: number;
84
+ }, "rotate">)[];
85
+ export declare const processGradientProps: (Skia: Skia, { colors, positions, mode, flags, ...transform }: GradientProps) => {
86
+ colors: Float32Array[];
87
+ positions: number[] | null;
88
+ mode: TileMode;
89
+ flags: number | undefined;
90
+ localMatrix: import("../../../skia/types").SkMatrix;
91
+ };
92
+ export declare const getRect: (Skia: Skia, props: Omit<ImageShaderProps, "tx" | "ty" | "fm" | "mm" | "fit" | "image">) => SkRect | undefined;
@@ -0,0 +1,4 @@
1
+ import type { Skia } from "../../../skia/types";
2
+ import type { PathDef } from "../../types";
3
+ export declare const processPath: (Skia: Skia, rawPath: PathDef) => import("../../../skia/types").SkPath;
4
+ export declare const isPathDef: (def: any) => def is PathDef;
@@ -0,0 +1,3 @@
1
+ import type { Skia, Vector } from "../../../skia/types";
2
+ import type { Radius } from "../../types";
3
+ export declare const processRadius: (Skia: Skia, radius: Radius) => Vector;
@@ -0,0 +1,5 @@
1
+ import type { Skia, SkRect, Vector } from "../../../skia/types";
2
+ import type { RectDef, RRectDef } from "../../types";
3
+ export declare const isEdge: (pos: Vector, b: SkRect) => boolean;
4
+ export declare const processRect: (Skia: Skia, def: RectDef) => SkRect;
5
+ export declare const processRRect: (Skia: Skia, def: RRectDef) => import("../../../skia/types").SkRRect;
@@ -0,0 +1,3 @@
1
+ import type { TransformProps } from "../../types";
2
+ import type { SkMatrix } from "../../../skia/types";
3
+ export declare const processTransformProps: (m3: SkMatrix, props: TransformProps) => void;