@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,136 @@
1
+ import type { SkImageFilter } from "../ImageFilter";
2
+ import type { SkMaskFilter } from "../MaskFilter";
3
+ import type { SkColorFilter } from "../ColorFilter";
4
+ import type { SkColor } from "../Color";
5
+ import type { SkPathEffect } from "../PathEffect";
6
+ import type { SkJSIInstance } from "../JsiInstance";
7
+ import type { SkShader } from "../Shader";
8
+ import type { BlendMode } from "./BlendMode";
9
+ export declare enum PaintStyle {
10
+ Fill = 0,
11
+ Stroke = 1
12
+ }
13
+ export declare enum StrokeCap {
14
+ Butt = 0,
15
+ Round = 1,
16
+ Square = 2
17
+ }
18
+ export declare enum StrokeJoin {
19
+ Miter = 0,
20
+ Round = 1,
21
+ Bevel = 2
22
+ }
23
+ export declare const isPaint: (obj: SkJSIInstance<string> | null) => obj is SkPaint;
24
+ export interface SkPaint extends SkJSIInstance<"Paint"> {
25
+ /**
26
+ * Retrieves alpha from the color used when stroking and filling.
27
+ */
28
+ getAlphaf(): number;
29
+ /**
30
+ * Returns a copy of this paint.
31
+ */
32
+ copy(): SkPaint;
33
+ /**
34
+ * Sets all SkPaint contents to their initial values. This is equivalent to replacing
35
+ SkPaint with the result of SkPaint().
36
+ */
37
+ reset(): void;
38
+ /**
39
+ * Retrieves the alpha and RGB unpremultiplied. RGB are extended sRGB values
40
+ * (sRGB gamut, and encoded with the sRGB transfer function).
41
+ */
42
+ getColor(): SkColor;
43
+ /**
44
+ * Returns the geometry drawn at the beginning and end of strokes.
45
+ */
46
+ getStrokeCap(): StrokeCap;
47
+ /**
48
+ * Returns the geometry drawn at the corners of strokes.
49
+ */
50
+ getStrokeJoin(): StrokeJoin;
51
+ /**
52
+ * Returns the limit at which a sharp corner is drawn beveled.
53
+ */
54
+ getStrokeMiter(): number;
55
+ /**
56
+ * Returns the thickness of the pen used to outline the shape.
57
+ */
58
+ getStrokeWidth(): number;
59
+ /**
60
+ * Replaces alpha, leaving RGBA unchanged. 0 means fully transparent, 1.0 means opaque.
61
+ * @param alpha
62
+ */
63
+ setAlphaf(alpha: number): void;
64
+ /**
65
+ * Requests, but does not require, that edge pixels draw opaque or with
66
+ * partial transparency.
67
+ * @param aa
68
+ */
69
+ setAntiAlias: (aa: boolean) => void;
70
+ /**
71
+ * Sets the blend mode that is, the mode used to combine source color
72
+ * with destination color.
73
+ * @param mode
74
+ */
75
+ setBlendMode: (blendMode: BlendMode) => void;
76
+ /**
77
+ * Sets alpha and RGB used when stroking and filling. The color is a 32-bit
78
+ * value, unpremultiplied, packing 8-bit components for alpha, red, blue,
79
+ * and green.
80
+ *
81
+ * @param color unpremultiplied ARGB
82
+ *
83
+ * example: https://fiddle.skia.org/c/@Paint_setColor
84
+ */
85
+ setColor(color: SkColor): void;
86
+ /**
87
+ * Sets the current color filter, replacing the existing one if there was one.
88
+ * @param filter
89
+ */
90
+ setColorFilter(filter: SkColorFilter | null): void;
91
+ /**
92
+ * Sets the current image filter, replacing the existing one if there was one.
93
+ * @param filter
94
+ */
95
+ setImageFilter(filter: SkImageFilter | null): void;
96
+ /**
97
+ * Sets the current mask filter, replacing the existing one if there was one.
98
+ * @param filter
99
+ */
100
+ setMaskFilter(filter: SkMaskFilter | null): void;
101
+ /**
102
+ * Sets the current path effect, replacing the existing one if there was one.
103
+ * @param effect
104
+ */
105
+ setPathEffect(effect: SkPathEffect | null): void;
106
+ /**
107
+ * Sets the current shader, replacing the existing one if there was one.
108
+ * @param shader
109
+ */
110
+ setShader(shader: SkShader | null): void;
111
+ /**
112
+ * Sets the geometry drawn at the beginning and end of strokes.
113
+ * @param cap
114
+ */
115
+ setStrokeCap(cap: StrokeCap): void;
116
+ /**
117
+ * Sets the geometry drawn at the corners of strokes.
118
+ * @param join
119
+ */
120
+ setStrokeJoin(join: StrokeJoin): void;
121
+ /**
122
+ * Sets the limit at which a sharp corner is drawn beveled.
123
+ * @param limit
124
+ */
125
+ setStrokeMiter(limit: number): void;
126
+ /**
127
+ * Sets the thickness of the pen used to outline the shape.
128
+ * @param width
129
+ */
130
+ setStrokeWidth(width: number): void;
131
+ /**
132
+ * Sets whether the geometry is filled or stroked.
133
+ * @param style
134
+ */
135
+ setStyle(style: PaintStyle): void;
136
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./Paint";
2
+ export * from "./BlendMode";
@@ -0,0 +1,474 @@
1
+ import type { SkRect } from "../Rect";
2
+ import type { SkPoint } from "../Point";
3
+ import type { SkRRect } from "../RRect";
4
+ import type { StrokeJoin, StrokeCap } from "../Paint";
5
+ import type { SkMatrix } from "../Matrix";
6
+ import type { SkJSIInstance } from "../JsiInstance";
7
+ /**
8
+ * Options used for Path.stroke(). If an option is omitted, a sensible default will be used.
9
+ */
10
+ export interface StrokeOpts {
11
+ /** The width of the stroked lines. */
12
+ width?: number;
13
+ miter_limit?: number;
14
+ /**
15
+ * if > 1, increase precision, else if (0 < resScale < 1) reduce precision to
16
+ * favor speed and size
17
+ */
18
+ precision?: number;
19
+ join?: StrokeJoin;
20
+ cap?: StrokeCap;
21
+ }
22
+ export declare enum FillType {
23
+ Winding = 0,
24
+ EvenOdd = 1,
25
+ InverseWinding = 2,
26
+ InverseEvenOdd = 3
27
+ }
28
+ export declare enum PathOp {
29
+ Difference = 0,
30
+ Intersect = 1,
31
+ Union = 2,
32
+ XOR = 3,
33
+ ReverseDifference = 4
34
+ }
35
+ export declare enum PathVerb {
36
+ Move = 0,
37
+ Line = 1,
38
+ Quad = 2,
39
+ Conic = 3,
40
+ Cubic = 4,
41
+ Close = 5
42
+ }
43
+ export declare type PathCommand = number[];
44
+ export declare const isPath: (obj: SkJSIInstance<string> | null) => obj is SkPath;
45
+ export interface SkPath extends SkJSIInstance<"Path"> {
46
+ /**
47
+ * Appends arc to Path, as the start of new contour. Arc added is part of ellipse
48
+ * bounded by oval, from startAngle through sweepAngle. Both startAngle and
49
+ * sweepAngle are measured in degrees, where zero degrees is aligned with the
50
+ * positive x-axis, and positive sweeps extends arc clockwise.
51
+ * Returns the modified path for easier chaining.
52
+ * @param oval
53
+ * @param startAngle
54
+ * @param sweepAngle
55
+ */
56
+ addArc(oval: SkRect, startAngleInDegrees: number, sweepAngleInDegrees: number): SkPath;
57
+ /**
58
+ * Adds oval to Path, appending kMove_Verb, four kConic_Verb, and kClose_Verb.
59
+ * Oval is upright ellipse bounded by Rect oval with radii equal to half oval width
60
+ * and half oval height. Oval begins at start and continues clockwise by default.
61
+ * Returns the modified path for easier chaining.
62
+ * @param oval
63
+ * @param isCCW - if the path should be drawn counter-clockwise or not
64
+ * @param startIndex - index of initial point of ellipse
65
+ */
66
+ addOval(oval: SkRect, isCCW?: boolean, startIndex?: number): SkPath;
67
+ /**
68
+ * Returns the number of points in this path. Initially zero.
69
+ */
70
+ countPoints(): number;
71
+ /**
72
+ * Adds contour created from array of n points, adding (count - 1) line segments.
73
+ * Contour added starts at pts[0], then adds a line for every additional point
74
+ * in pts array. If close is true, appends kClose_Verb to Path, connecting
75
+ * pts[count - 1] and pts[0].
76
+ * Returns the modified path for easier chaining.
77
+ * @param points
78
+ * @param close - if true, will add a line connecting last point to the first point.
79
+ */
80
+ addPoly(points: SkPoint[], close: boolean): SkPath;
81
+ /** Adds beginning of contour at SkPoint (x, y).
82
+
83
+ @param x x-axis value of contour start
84
+ @param y y-axis value of contour start
85
+ @return reference to SkPath
86
+
87
+ example: https://fiddle.skia.org/c/@Path_moveTo
88
+ */
89
+ moveTo(x: number, y: number): SkPath;
90
+ /** Adds line from last point to (x, y). If SkPath is empty, or last SkPath::Verb is
91
+ kClose_Verb, last point is set to (0, 0) before adding line.
92
+
93
+ lineTo() appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed.
94
+ lineTo() then appends kLine_Verb to verb array and (x, y) to SkPoint array.
95
+
96
+ @param x end of added line on x-axis
97
+ @param y end of added line on y-axis
98
+ @return reference to SkPath
99
+
100
+ example: https://fiddle.skia.org/c/@Path_lineTo
101
+ */
102
+ lineTo(x: number, y: number): SkPath;
103
+ /**
104
+ * Returns a new path that covers the same area as the original path, but with the
105
+ * Winding FillType. This may re-draw some contours in the path as counter-clockwise
106
+ * instead of clockwise to achieve that effect. If such a transformation cannot
107
+ * be done, null is returned.
108
+ */
109
+ makeAsWinding(): SkPath | null;
110
+ /**
111
+ * Translates all the points in the path by dx, dy.
112
+ * @param dx
113
+ * @param dy
114
+ */
115
+ offset(dx: number, dy: number): SkPath;
116
+ /**
117
+ * Relative version of arcToRotated.
118
+ * @param rx
119
+ * @param ry
120
+ * @param xAxisRotate
121
+ * @param useSmallArc
122
+ * @param isCCW
123
+ * @param dx
124
+ * @param dy
125
+ */
126
+ rArcTo(rx: number, ry: number, xAxisRotateInDegrees: number, useSmallArc: boolean, isCCW: boolean, dx: number, dy: number): SkPath;
127
+ /**
128
+ * Relative version of conicTo.
129
+ * @param dx1
130
+ * @param dy1
131
+ * @param dx2
132
+ * @param dy2
133
+ * @param w
134
+ */
135
+ rConicTo(dx1: number, dy1: number, dx2: number, dy2: number, w: number): SkPath;
136
+ /**
137
+ * Relative version of cubicTo.
138
+ * @param cpx1
139
+ * @param cpy1
140
+ * @param cpx2
141
+ * @param cpy2
142
+ * @param x
143
+ * @param y
144
+ */
145
+ rCubicTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): SkPath;
146
+ /**
147
+ * Relative version of moveTo.
148
+ * @param x
149
+ * @param y
150
+ */
151
+ rMoveTo(x: number, y: number): SkPath;
152
+ /**
153
+ * Relative version of lineTo.
154
+ * @param x
155
+ * @param y
156
+ */
157
+ rLineTo(x: number, y: number): SkPath;
158
+ /**
159
+ * Relative version of quadTo.
160
+ * @param x1
161
+ * @param y1
162
+ * @param x2
163
+ * @param y2
164
+ */
165
+ rQuadTo(x1: number, y1: number, x2: number, y2: number): SkPath;
166
+ /**
167
+ * Sets FillType, the rule used to fill Path.
168
+ * @param fill
169
+ */
170
+ setFillType(fill: FillType): void;
171
+ /**
172
+ * Specifies whether Path is volatile; whether it will be altered or discarded
173
+ * by the caller after it is drawn. Path by default have volatile set false.
174
+ *
175
+ * Mark animating or temporary paths as volatile to improve performance.
176
+ * Mark unchanging Path non-volatile to improve repeated rendering.
177
+ * @param volatile
178
+ */
179
+ setIsVolatile(volatile: boolean): void;
180
+ /**
181
+ * Turns this path into the filled equivalent of the stroked path. Returns false if the operation
182
+ * fails (e.g. the path is a hairline).
183
+ * @param opts - describe how stroked path should look.
184
+ * If such a transformation cannot be done, null is returned.
185
+ */
186
+ stroke(opts?: StrokeOpts): null | SkPath;
187
+ /**
188
+ * Appends CLOSE_VERB to Path. A closed contour connects the first and last point
189
+ * with a line, forming a continuous loop.
190
+ */
191
+ close(): void;
192
+ /**
193
+ * Sets Path to its initial state.
194
+ * Removes verb array, point array, and weights, and sets FillType to Winding.
195
+ * Internal storage associated with Path is released
196
+ */
197
+ reset(): void;
198
+ /**
199
+ * Sets Path to its initial state.
200
+ * Removes verb array, point array, and weights, and sets FillType to Winding.
201
+ * Internal storage associated with Path is *not* released.
202
+ * Use rewind() instead of reset() if Path storage will be reused and performance
203
+ * is critical.
204
+ */
205
+ rewind(): void;
206
+ /**
207
+ * Returns minimum and maximum axes values of the lines and curves in Path.
208
+ * Returns (0, 0, 0, 0) if Path contains no points.
209
+ * Returned bounds width and height may be larger or smaller than area affected
210
+ * when Path is drawn.
211
+ *
212
+ * Behaves identically to getBounds() when Path contains
213
+ * only lines. If Path contains curves, computed bounds includes
214
+ * the maximum extent of the quad, conic, or cubic; is slower than getBounds();
215
+ * and unlike getBounds(), does not cache the result.
216
+ */
217
+ computeTightBounds(): SkRect;
218
+ /**
219
+ * Appends arc to Path. Arc added is part of ellipse
220
+ * bounded by oval, from startAngle through sweepAngle. Both startAngle and
221
+ * sweepAngle are measured in degrees, where zero degrees is aligned with the
222
+ * positive x-axis, and positive sweeps extends arc clockwise.
223
+ * Returns the modified path for easier chaining.
224
+ * @param oval
225
+ * @param startAngleInDegrees
226
+ * @param sweepAngleInDegrees
227
+ * @param forceMoveTo
228
+ */
229
+ arcToOval(oval: SkRect, startAngleInDegrees: number, sweepAngleInDegrees: number, forceMoveTo: boolean): SkPath;
230
+ /**
231
+ * Appends arc to Path. Arc is implemented by one or more conics weighted to
232
+ * describe part of oval with radii (rx, ry) rotated by xAxisRotate degrees. Arc
233
+ * curves from last Path Point to (x, y), choosing one of four possible routes:
234
+ * clockwise or counterclockwise, and smaller or larger. See SkPath.h for more details.
235
+ * Returns the modified path for easier chaining.
236
+ * @param rx
237
+ * @param ry
238
+ * @param xAxisRotate
239
+ * @param useSmallArc
240
+ * @param isCCW
241
+ * @param x
242
+ * @param y
243
+ */
244
+ arcToRotated(rx: number, ry: number, xAxisRotateInDegrees: number, useSmallArc: boolean, isCCW: boolean, x: number, y: number): SkPath;
245
+ /**
246
+ * Appends arc to Path, after appending line if needed. Arc is implemented by conic
247
+ * weighted to describe part of circle. Arc is contained by tangent from
248
+ * last Path point to (x1, y1), and tangent from (x1, y1) to (x2, y2). Arc
249
+ * is part of circle sized to radius, positioned so it touches both tangent lines.
250
+ * Returns the modified path for easier chaining.
251
+ * @param x1
252
+ * @param y1
253
+ * @param x2
254
+ * @param y2
255
+ * @param radius
256
+ */
257
+ arcToTangent(x1: number, y1: number, x2: number, y2: number, radius: number): SkPath;
258
+ /**
259
+ * Adds conic from last point towards (x1, y1), to (x2, y2), weighted by w.
260
+ * If Path is empty, or path is closed, the last point is set to (0, 0)
261
+ * before adding conic.
262
+ * Returns the modified path for easier chaining.
263
+ * @param x1
264
+ * @param y1
265
+ * @param x2
266
+ * @param y2
267
+ * @param w
268
+ */
269
+ conicTo(x1: number, y1: number, x2: number, y2: number, w: number): SkPath;
270
+ /**
271
+ * Returns true if the point (x, y) is contained by Path, taking into
272
+ * account FillType.
273
+ * @param x
274
+ * @param y
275
+ */
276
+ contains(x: number, y: number): boolean;
277
+ /**
278
+ * Returns a copy of this Path.
279
+ */
280
+ copy(): SkPath;
281
+ /**
282
+ * Adds cubic from last point towards (x1, y1), then towards (x2, y2), ending at
283
+ * (x3, y3). If Path is empty, or path is closed, the last point is set to
284
+ * (0, 0) before adding cubic.
285
+ * @param cpx1
286
+ * @param cpy1
287
+ * @param cpx2
288
+ * @param cpy2
289
+ * @param x
290
+ * @param y
291
+ */
292
+ cubicTo(cpx1: number, cpy1: number, cpx2: number, cpy2: number, x: number, y: number): SkPath;
293
+ /**
294
+ * Changes this path to be the dashed version of itself. This is the same effect as creating
295
+ * a DashPathEffect and calling filterPath on this path.
296
+ * @param on
297
+ * @param off
298
+ * @param phase
299
+ */
300
+ dash(on: number, off: number, phase: number): boolean;
301
+ /**
302
+ * Returns true if other path is equal to this path.
303
+ * @param other
304
+ */
305
+ equals(other: SkPath): boolean;
306
+ /**
307
+ * Returns minimum and maximum axes values of Point array.
308
+ * Returns (0, 0, 0, 0) if Path contains no points. Returned bounds width and height may
309
+ * be larger or smaller than area affected when Path is drawn.
310
+ */
311
+ getBounds(): SkRect;
312
+ /**
313
+ * Return the FillType for this path.
314
+ */
315
+ getFillType(): FillType;
316
+ /**
317
+ Adds quad from last point towards (x1, y1), to (x2, y2).
318
+
319
+ If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to (0, 0) before adding quad.
320
+
321
+ Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed; then appends kQuad_Verb to verb array;
322
+ and (x1, y1), (x2, y2) to SkPoint array.
323
+
324
+ Parameters
325
+ x1 control SkPoint of quad on x-axis
326
+ y1 control SkPoint of quad on y-axis
327
+ x2 end SkPoint of quad on x-axis
328
+ y2 end SkPoint of quad on y-axis
329
+ Returns
330
+ reference to SkPath
331
+ example: https://fiddle.skia.org/c/@Path_quadTo
332
+ */
333
+ quadTo(x1: number, y1: number, x2: number, y2: number): void;
334
+ /**
335
+ * Adds Rect to Path, appending kMove_Verb, three kLine_Verb, and kClose_Verb,
336
+ * starting with top-left corner of Rect; followed by top-right, bottom-right,
337
+ * and bottom-left if isCCW is false; or followed by bottom-left,
338
+ * bottom-right, and top-right if isCCW is true.
339
+ * Returns the modified path for easier chaining.
340
+ * @param rect
341
+ * @param isCCW
342
+ */
343
+ addRect(rect: SkRect, isCCW?: boolean): void;
344
+ /**
345
+ * Adds rrect to Path, creating a new closed contour.
346
+ * Returns the modified path for easier chaining.
347
+ * @param rrect
348
+ * @param isCCW
349
+ */
350
+ addRRect(rrect: SkRRect, isCCW?: boolean): SkPath;
351
+ /** Appends src to SkPath, transformed by matrix. Transformed curves may have
352
+ different verbs, SkPoint, and conic weights.
353
+
354
+ If mode is kAppend_AddPathMode, src verb array, SkPoint array, and conic
355
+ weights are added unaltered. If mode is kExtend_AddPathMode, add line
356
+ before appending verbs, SkPoint, and conic weights.
357
+
358
+ @param src SkPath verbs, SkPoint, and conic weights to add
359
+ @param matrix transform applied to src
360
+ @param extend extends path with line if true
361
+ @return reference to SkPath
362
+ */
363
+ addPath(src: SkPath, matrix?: SkMatrix, extend?: boolean): SkPath;
364
+ /**
365
+ * Returns the Point at index in Point array. Valid range for index is
366
+ * 0 to countPoints() - 1.
367
+ * @param index
368
+ */
369
+ getPoint(index: number): SkPoint;
370
+ /**
371
+ * Returns true if there are no verbs in the path.
372
+ */
373
+ isEmpty(): boolean;
374
+ /**
375
+ * Returns true if the path is volatile; it will not be altered or discarded
376
+ * by the caller after it is drawn. Path by default have volatile set false, allowing
377
+ * Surface to attach a cache of data which speeds repeated drawing. If true, Surface
378
+ * may not speed repeated drawing.
379
+ */
380
+ isVolatile(): boolean;
381
+ /** Adds circle centered at (x, y) of size radius to SkPath, appending kMove_Verb,
382
+ four kConic_Verb, and kClose_Verb. Circle begins at: (x + radius, y), continuing
383
+ clockwise if dir is kCW_Direction, and counterclockwise if dir is kCCW_Direction.
384
+
385
+ Has no effect if radius is zero or negative.
386
+
387
+ @param x center of circle
388
+ @param y center of circle
389
+ @param radius distance from center to edge
390
+ @return reference to SkPath
391
+ */
392
+ addCircle(x: number, y: number, r: number): SkPath;
393
+ getLastPt(): {
394
+ x: number;
395
+ y: number;
396
+ };
397
+ /** Set this path to the result of applying the Op to this path and the
398
+ specified path: this = (this op operand).
399
+ The resulting path will be constructed from non-overlapping contours.
400
+ The curve order is reduced where possible so that cubics may be turned
401
+ into quadratics, and quadratics maybe turned into lines.
402
+
403
+ Returns true if operation was able to produce a result;
404
+ otherwise, result is unmodified.
405
+
406
+ @param path The second path (for difference, the subtrahend)
407
+ @param op The operator to apply.
408
+ @param result The product of the operands. The result may be one of the
409
+ inputs.
410
+ @return True if the operation succeeded.
411
+ */
412
+ op(path: SkPath, op: PathOp): boolean;
413
+ /** Set this path to a set of non-overlapping contours that describe the
414
+ same area as the original path.
415
+ The curve order is reduced where possible so that cubics may
416
+ be turned into quadratics, and quadratics maybe turned into lines.
417
+
418
+ Returns true if operation was able to produce a result;
419
+ otherwise, result is unmodified.
420
+
421
+ @param result The simplified path. The result may be the input.
422
+ @return True if simplification succeeded.
423
+ */
424
+ simplify(): boolean;
425
+ /**
426
+ * Returns this path as an SVG string.
427
+ */
428
+ toSVGString(): string;
429
+ /**
430
+ * Take start and stop "t" values (values between 0...1), and modify this path such that
431
+ * it is a subset of the original path.
432
+ * The trim values apply to the entire path, so if it contains several contours, all of them
433
+ * are including in the calculation.
434
+ * Null is returned if either input value is NaN.
435
+ * @param startT - a value in the range [0.0, 1.0]. 0.0 is the beginning of the path.
436
+ * @param stopT - a value in the range [0.0, 1.0]. 1.0 is the end of the path.
437
+ * @param isComplement
438
+ */
439
+ trim(startT: number, stopT: number, isComplement: boolean): null | SkPath;
440
+ /**
441
+ * Transforms the path by the specified matrix.
442
+ */
443
+ transform(m3: SkMatrix): void;
444
+ /**
445
+ * Interpolates between Path with point array of equal size.
446
+ * Copy verb array and weights to result, and set result path to a weighted
447
+ * average of this path array and ending path.
448
+
449
+ * weight is most useful when between zero (ending path) and
450
+ one (this path); will work with values outside of this
451
+ range.
452
+
453
+ * interpolate() returns undefined if path is not
454
+ * the same size as ending path. Call isInterpolatable() to check Path
455
+ * compatibility prior to calling interpolate().
456
+
457
+ * @param ending path to interpolate with
458
+ * @param weight contribution of this path, and
459
+ * one minus contribution of ending path
460
+ * @return Path replaced by interpolated averages or null if
461
+ * not interpolatable
462
+ * */
463
+ interpolate(end: SkPath, weight: number): SkPath | null;
464
+ /** Returns true if Path contain equal verbs and equal weights.
465
+ * @param compare path to compare
466
+ * @return true if Path can be interpolated equivalent
467
+ *
468
+ * */
469
+ isInterpolatable(compare: SkPath): boolean;
470
+ /**
471
+ * Serializes the contents of this path as a series of commands.
472
+ */
473
+ toCmds(): PathCommand[];
474
+ }
@@ -0,0 +1,29 @@
1
+ import type { SkFont } from "../Font";
2
+ import type { SkPath, PathOp, PathCommand } from "./Path";
3
+ export interface PathFactory {
4
+ Make(): SkPath;
5
+ /**
6
+ * Creates a new path from the provided SVG string. If this fails, null will be
7
+ * returned instead.
8
+ * @param str
9
+ */
10
+ MakeFromSVGString(str: string): SkPath | null;
11
+ /**
12
+ * Creates a new path by combining the given paths according to op. If this fails, null will
13
+ * be returned instead.
14
+ * @param one
15
+ * @param two
16
+ * @param op
17
+ */
18
+ MakeFromOp(one: SkPath, two: SkPath, op: PathOp): SkPath | null;
19
+ /**
20
+ * Creates a new path from the given list of path commands. If this fails, null will be
21
+ * returned instead.
22
+ * @param cmds
23
+ */
24
+ MakeFromCmds(cmds: PathCommand[]): SkPath | null;
25
+ /**
26
+ * Converts the text to a path with the given font at location x / y.
27
+ */
28
+ MakeFromText(text: string, x: number, y: number, font: SkFont): SkPath | null;
29
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./Path";
2
+ export * from "./PathFactory";