@shopify/react-native-skia 0.1.129 → 0.1.132

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1104) hide show
  1. package/README.md +8 -0
  2. package/android/cpp/jni/JniSkiaDrawView.cpp +3 -2
  3. package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +1 -0
  4. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +2 -1
  5. package/cpp/api/JsiSkCanvas.h +2 -2
  6. package/cpp/api/JsiSkFont.h +6 -2
  7. package/cpp/api/JsiSkMatrix.h +40 -27
  8. package/cpp/api/JsiSkPaint.h +3 -1
  9. package/cpp/api/JsiSkPath.h +67 -61
  10. package/cpp/api/JsiSkPathFactory.h +14 -1
  11. package/cpp/api/JsiSkRuntimeEffect.h +7 -9
  12. package/cpp/api/JsiSkRuntimeShaderBuilder.h +18 -0
  13. package/cpp/api/JsiSkTypeface.h +11 -2
  14. package/cpp/api/JsiSkTypefaceFactory.h +5 -1
  15. package/cpp/api/JsiSkVertices.h +0 -2
  16. package/cpp/rnskia/RNSkInfoParameter.h +2 -0
  17. package/cpp/rnskia/values/RNSkValue.h +1 -1
  18. package/cpp/skia/include/codec/SkCodec.h +7 -1
  19. package/cpp/skia/include/core/SkAlphaType.h +45 -0
  20. package/cpp/skia/include/core/SkBitmap.h +4 -2
  21. package/cpp/skia/include/core/SkCanvas.h +31 -20
  22. package/cpp/skia/include/core/SkColor.h +1 -1
  23. package/cpp/skia/include/core/SkColorFilter.h +1 -0
  24. package/cpp/skia/include/core/SkColorType.h +66 -0
  25. package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +1 -1
  26. package/cpp/skia/include/core/SkDrawable.h +7 -0
  27. package/cpp/skia/include/core/SkEncodedImageFormat.h +1 -0
  28. package/cpp/skia/include/core/SkFont.h +4 -3
  29. package/cpp/skia/include/core/SkFontArguments.h +33 -1
  30. package/cpp/skia/include/core/SkGraphics.h +13 -0
  31. package/cpp/skia/include/core/SkImage.h +67 -22
  32. package/cpp/skia/include/core/SkImageEncoder.h +0 -3
  33. package/cpp/skia/include/core/SkImageGenerator.h +4 -3
  34. package/cpp/skia/include/core/SkImageInfo.h +35 -142
  35. package/cpp/skia/include/core/SkMesh.h +303 -0
  36. package/cpp/skia/include/core/SkMilestone.h +1 -1
  37. package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +30 -0
  38. package/cpp/skia/include/core/SkPaint.h +4 -19
  39. package/cpp/skia/include/core/SkPath.h +20 -33
  40. package/cpp/skia/include/core/SkPathBuilder.h +1 -6
  41. package/cpp/skia/include/core/SkPixelRef.h +1 -1
  42. package/cpp/skia/include/core/SkPixmap.h +3 -2
  43. package/cpp/skia/include/core/SkRSXform.h +1 -1
  44. package/cpp/skia/include/core/SkSamplingOptions.h +16 -5
  45. package/cpp/skia/include/core/SkSpan.h +5 -5
  46. package/cpp/skia/include/core/SkString.h +5 -8
  47. package/cpp/skia/include/core/SkSurface.h +21 -0
  48. package/cpp/skia/include/core/SkTypeface.h +20 -4
  49. package/cpp/skia/include/core/SkTypes.h +9 -5
  50. package/cpp/skia/include/effects/SkGradientShader.h +9 -18
  51. package/cpp/skia/include/effects/SkRuntimeEffect.h +16 -12
  52. package/cpp/skia/include/gpu/GpuTypes.h +32 -0
  53. package/cpp/skia/include/gpu/GrBackendSemaphore.h +1 -1
  54. package/cpp/skia/include/gpu/GrBackendSurface.h +6 -5
  55. package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +1 -1
  56. package/cpp/skia/include/gpu/GrContextOptions.h +11 -20
  57. package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +7 -0
  58. package/cpp/skia/include/gpu/GrDirectContext.h +16 -11
  59. package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +0 -2
  60. package/cpp/skia/include/gpu/GrRecordingContext.h +14 -7
  61. package/cpp/skia/include/gpu/GrSurfaceInfo.h +6 -6
  62. package/cpp/skia/include/gpu/dawn/GrDawnTypes.h +1 -1
  63. package/cpp/skia/include/gpu/gl/GrGLFunctions.h +3 -1
  64. package/cpp/skia/include/gpu/gl/GrGLInterface.h +2 -2
  65. package/cpp/skia/include/gpu/graphite/BackendTexture.h +64 -0
  66. package/cpp/skia/include/gpu/graphite/Context.h +124 -0
  67. package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +71 -0
  68. package/cpp/skia/include/gpu/graphite/Recorder.h +104 -0
  69. package/cpp/skia/include/gpu/graphite/Recording.h +39 -0
  70. package/cpp/skia/include/gpu/graphite/SkStuff.h +47 -0
  71. package/cpp/skia/include/gpu/graphite/TextureInfo.h +91 -0
  72. package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +24 -0
  73. package/cpp/skia/include/gpu/graphite/mtl/MtlTypes.h +68 -0
  74. package/cpp/skia/include/gpu/mock/GrMockTypes.h +1 -2
  75. package/cpp/skia/include/ports/SkCFObject.h +0 -4
  76. package/cpp/skia/include/ports/SkTypeface_win.h +2 -2
  77. package/cpp/skia/include/private/{GrSingleOwner.h → SingleOwner.h} +17 -10
  78. package/cpp/skia/include/private/SkChecksum.h +11 -0
  79. package/cpp/skia/include/private/SkEncodedInfo.h +22 -5
  80. package/cpp/skia/include/private/SkFloatingPoint.h +0 -53
  81. package/cpp/skia/include/private/SkImageInfoPriv.h +8 -2
  82. package/cpp/skia/include/private/SkMacros.h +13 -18
  83. package/cpp/skia/include/private/SkMutex.h +8 -0
  84. package/cpp/skia/include/private/SkPathRef.h +2 -16
  85. package/cpp/skia/include/private/SkSLDefines.h +9 -1
  86. package/cpp/skia/include/private/SkSLIRNode.h +6 -5
  87. package/cpp/skia/include/private/SkSLLayout.h +11 -10
  88. package/cpp/skia/include/private/SkSLModifiers.h +4 -3
  89. package/cpp/skia/include/private/SkSLProgramElement.h +2 -2
  90. package/cpp/skia/include/private/SkSLProgramKind.h +8 -5
  91. package/cpp/skia/include/private/SkSLStatement.h +2 -3
  92. package/cpp/skia/include/private/SkSLString.h +17 -56
  93. package/cpp/skia/include/private/SkSLSymbol.h +4 -4
  94. package/cpp/skia/include/private/SkShadowFlags.h +3 -1
  95. package/cpp/skia/include/private/SkStringView.h +47 -0
  96. package/cpp/skia/include/private/SkTArray.h +4 -3
  97. package/cpp/skia/include/private/SkTHash.h +66 -24
  98. package/cpp/skia/include/private/SkTLogic.h +2 -32
  99. package/cpp/skia/include/private/SkTemplates.h +2 -2
  100. package/cpp/skia/include/private/SkThreadAnnotations.h +4 -4
  101. package/cpp/skia/include/private/SkVx.h +28 -28
  102. package/cpp/skia/include/private/chromium/GrSlug.h +40 -3
  103. package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +12 -6
  104. package/cpp/skia/include/private/{GrContext_Base.h → gpu/ganesh/GrContext_Base.h} +7 -0
  105. package/cpp/skia/include/private/{GrD3DTypesMinimal.h → gpu/ganesh/GrD3DTypesMinimal.h} +0 -0
  106. package/cpp/skia/include/private/{GrDawnTypesPriv.h → gpu/ganesh/GrDawnTypesPriv.h} +0 -0
  107. package/cpp/skia/include/private/{GrGLTypesPriv.h → gpu/ganesh/GrGLTypesPriv.h} +1 -0
  108. package/cpp/skia/include/private/{GrImageContext.h → gpu/ganesh/GrImageContext.h} +4 -4
  109. package/cpp/skia/include/private/{GrMockTypesPriv.h → gpu/ganesh/GrMockTypesPriv.h} +0 -0
  110. package/cpp/skia/include/private/{GrMtlTypesPriv.h → gpu/ganesh/GrMtlTypesPriv.h} +0 -0
  111. package/cpp/skia/include/private/{GrTypesPriv.h → gpu/ganesh/GrTypesPriv.h} +25 -367
  112. package/cpp/skia/include/private/{GrVkTypesPriv.h → gpu/ganesh/GrVkTypesPriv.h} +0 -0
  113. package/cpp/skia/include/private/gpu/graphite/MtlTypesPriv.h +74 -0
  114. package/cpp/skia/include/sksl/DSL.h +4 -0
  115. package/cpp/skia/include/sksl/DSLBlock.h +8 -3
  116. package/cpp/skia/include/sksl/DSLCase.h +6 -6
  117. package/cpp/skia/include/sksl/DSLCore.h +89 -78
  118. package/cpp/skia/include/sksl/DSLExpression.h +78 -45
  119. package/cpp/skia/include/sksl/DSLFunction.h +23 -18
  120. package/cpp/skia/include/sksl/DSLLayout.h +14 -16
  121. package/cpp/skia/include/sksl/DSLModifiers.h +7 -5
  122. package/cpp/skia/include/sksl/DSLRuntimeEffects.h +1 -1
  123. package/cpp/skia/include/sksl/DSLStatement.h +16 -10
  124. package/cpp/skia/include/sksl/DSLSymbols.h +7 -7
  125. package/cpp/skia/include/sksl/DSLType.h +27 -23
  126. package/cpp/skia/include/sksl/DSLVar.h +72 -61
  127. package/cpp/skia/include/sksl/SkSLErrorReporter.h +12 -49
  128. package/cpp/skia/include/sksl/SkSLOperator.h +151 -0
  129. package/cpp/skia/include/sksl/SkSLPosition.h +102 -0
  130. package/cpp/skia/include/svg/SkSVGCanvas.h +5 -1
  131. package/cpp/skia/include/utils/SkAnimCodecPlayer.h +7 -0
  132. package/cpp/skia/include/utils/SkCamera.h +2 -0
  133. package/cpp/skia/include/utils/SkCanvasStateUtils.h +4 -1
  134. package/cpp/skia/include/utils/SkCustomTypeface.h +6 -4
  135. package/cpp/skia/include/utils/SkNWayCanvas.h +34 -0
  136. package/cpp/skia/include/utils/SkNullCanvas.h +5 -1
  137. package/cpp/skia/include/utils/SkOrderedFontMgr.h +12 -0
  138. package/cpp/skia/include/utils/SkPaintFilterCanvas.h +30 -1
  139. package/cpp/skia/include/utils/SkParse.h +2 -0
  140. package/cpp/skia/include/utils/SkShadowUtils.h +3 -2
  141. package/cpp/skia/include/utils/SkTextUtils.h +8 -4
  142. package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +27 -1
  143. package/cpp/skia/modules/svg/include/SkSVGDOM.h +4 -0
  144. package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +32 -0
  145. package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +3 -3
  146. package/cpp/skia/modules/svg/include/SkSVGSVG.h +2 -0
  147. package/cpp/skia/modules/svg/include/SkSVGTypes.h +48 -9
  148. package/cpp/utils/RNSkLog.h +27 -0
  149. package/ios/RNSkia-iOS/PlatformContext.h +1 -1
  150. package/ios/RNSkia-iOS/RNSkDrawViewImpl.mm +1 -0
  151. package/ios/RNSkia-iOS/SkiaDrawView.mm +3 -2
  152. package/lib/commonjs/animation/functions/index.js +47 -17
  153. package/lib/commonjs/animation/functions/index.js.map +1 -1
  154. package/lib/commonjs/animation/functions/interpolatePaths.js +45 -0
  155. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
  156. package/lib/commonjs/animation/functions/interpolateVector.js +20 -0
  157. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
  158. package/lib/commonjs/index.js +13 -0
  159. package/lib/commonjs/index.js.map +1 -1
  160. package/lib/commonjs/renderer/Canvas.js +19 -35
  161. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  162. package/lib/commonjs/renderer/HostConfig.js +2 -2
  163. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  164. package/lib/commonjs/renderer/components/Blend.js +10 -7
  165. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  166. package/lib/commonjs/renderer/components/Compose.js +9 -6
  167. package/lib/commonjs/renderer/components/Compose.js.map +1 -1
  168. package/lib/commonjs/renderer/components/Group.js +7 -6
  169. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  170. package/lib/commonjs/renderer/components/Mask.js +13 -10
  171. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  172. package/lib/commonjs/renderer/components/Paint.js +7 -4
  173. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  174. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  175. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +1 -1
  176. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  177. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +7 -6
  178. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  179. package/lib/commonjs/renderer/components/colorFilters/Compose.js +6 -6
  180. package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -1
  181. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +8 -7
  182. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  183. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +6 -6
  184. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  185. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +6 -6
  186. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  187. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +6 -7
  188. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  189. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +6 -6
  190. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  191. package/lib/commonjs/renderer/components/image/BoxFit.js +7 -9
  192. package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -1
  193. package/lib/commonjs/renderer/components/image/Image.js +3 -2
  194. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  195. package/lib/commonjs/renderer/components/image/ImageSVG.js +3 -2
  196. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  197. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -6
  198. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  199. package/lib/commonjs/renderer/components/imageFilters/Blur.js +7 -4
  200. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  201. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +10 -7
  202. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  203. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +10 -15
  204. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  205. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +7 -6
  206. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  207. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -4
  208. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  209. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +13 -6
  210. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  211. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +8 -7
  212. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  213. package/lib/commonjs/renderer/components/imageFilters/getInput.js +7 -7
  214. package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -1
  215. package/lib/commonjs/renderer/components/maskFilters/Blur.js +6 -3
  216. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  217. package/lib/commonjs/renderer/components/pathEffects/Corner.js +8 -6
  218. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  219. package/lib/commonjs/renderer/components/pathEffects/Dash.js +8 -6
  220. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  221. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +8 -6
  222. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  223. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +8 -6
  224. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  225. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +8 -6
  226. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  227. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +8 -6
  228. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  229. package/lib/commonjs/renderer/components/pathEffects/Sum.js +7 -4
  230. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  231. package/lib/commonjs/renderer/components/shaders/Color.js +7 -4
  232. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  233. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +5 -4
  234. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  235. package/lib/commonjs/renderer/components/shaders/Gradient.js +5 -5
  236. package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -1
  237. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +6 -5
  238. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  239. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +6 -5
  240. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  241. package/lib/commonjs/renderer/components/shaders/Shader.js +6 -44
  242. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  243. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +6 -5
  244. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  245. package/lib/commonjs/renderer/components/shaders/Turbulence.js +5 -4
  246. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  247. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +6 -5
  248. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  249. package/lib/commonjs/renderer/components/shapes/Box.js +26 -29
  250. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  251. package/lib/commonjs/renderer/components/shapes/Circle.js +7 -5
  252. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  253. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  254. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  255. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  256. package/lib/commonjs/renderer/components/shapes/Oval.js +3 -2
  257. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  258. package/lib/commonjs/renderer/components/shapes/Patch.js +8 -5
  259. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  260. package/lib/commonjs/renderer/components/shapes/Path.js +5 -4
  261. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  262. package/lib/commonjs/renderer/components/shapes/Points.js +2 -2
  263. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  264. package/lib/commonjs/renderer/components/shapes/Rect.js +3 -2
  265. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  266. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +3 -2
  267. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  268. package/lib/commonjs/renderer/components/shapes/Vertices.js +9 -8
  269. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  270. package/lib/commonjs/renderer/components/text/Glyphs.js +3 -2
  271. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  272. package/lib/commonjs/renderer/components/text/Text.js +3 -2
  273. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  274. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  275. package/lib/commonjs/renderer/components/text/TextPath.js +7 -11
  276. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  277. package/lib/commonjs/renderer/index.js +13 -13
  278. package/lib/commonjs/renderer/index.js.map +1 -1
  279. package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -1
  280. package/lib/commonjs/renderer/nodes/Drawing.js +5 -5
  281. package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -1
  282. package/lib/commonjs/renderer/nodes/Node.js.map +1 -1
  283. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  284. package/lib/commonjs/renderer/processors/Circles.js +2 -4
  285. package/lib/commonjs/renderer/processors/Circles.js.map +1 -1
  286. package/lib/commonjs/renderer/processors/Clips.js +5 -5
  287. package/lib/commonjs/renderer/processors/Clips.js.map +1 -1
  288. package/lib/commonjs/{skia/core → renderer/processors}/Color.js +2 -6
  289. package/lib/commonjs/renderer/processors/Color.js.map +1 -0
  290. package/lib/commonjs/renderer/processors/Font.js +4 -4
  291. package/lib/commonjs/renderer/processors/Font.js.map +1 -1
  292. package/lib/commonjs/renderer/processors/Paint.js +18 -14
  293. package/lib/commonjs/renderer/processors/Paint.js.map +1 -1
  294. package/lib/commonjs/renderer/processors/Paths.js +4 -4
  295. package/lib/commonjs/renderer/processors/Paths.js.map +1 -1
  296. package/lib/commonjs/renderer/processors/Radius.js +2 -4
  297. package/lib/commonjs/renderer/processors/Radius.js.map +1 -1
  298. package/lib/commonjs/renderer/processors/Rects.js +8 -59
  299. package/lib/commonjs/renderer/processors/Rects.js.map +1 -1
  300. package/lib/commonjs/renderer/processors/Transform.js +26 -17
  301. package/lib/commonjs/renderer/processors/Transform.js.map +1 -1
  302. package/lib/commonjs/renderer/processors/index.js +26 -13
  303. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  304. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  305. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  306. package/lib/commonjs/renderer/processors/math/index.js +0 -26
  307. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  308. package/lib/commonjs/renderer/useCanvas.js +30 -0
  309. package/lib/commonjs/renderer/useCanvas.js.map +1 -0
  310. package/lib/commonjs/skia/NativeSetup.js +1 -1
  311. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  312. package/lib/commonjs/skia/Skia.web.js +12 -0
  313. package/lib/commonjs/skia/Skia.web.js.map +1 -0
  314. package/lib/commonjs/skia/core/Data.js +9 -4
  315. package/lib/commonjs/skia/core/Data.js.map +1 -1
  316. package/lib/commonjs/skia/core/Font.js +2 -4
  317. package/lib/commonjs/skia/core/Font.js.map +1 -1
  318. package/lib/commonjs/skia/core/Matrix.js +15 -0
  319. package/lib/commonjs/skia/core/Matrix.js.map +1 -0
  320. package/lib/commonjs/skia/core/Paint.js +4 -12
  321. package/lib/commonjs/skia/core/Paint.js.map +1 -1
  322. package/lib/commonjs/skia/core/Path.js +14 -2
  323. package/lib/commonjs/skia/core/Path.js.map +1 -1
  324. package/lib/commonjs/skia/core/RRect.js +13 -0
  325. package/lib/commonjs/skia/core/RRect.js.map +1 -0
  326. package/lib/commonjs/skia/core/Rect.js +47 -0
  327. package/lib/commonjs/skia/core/Rect.js.map +1 -0
  328. package/lib/commonjs/skia/core/Vector.js +49 -0
  329. package/lib/commonjs/skia/core/Vector.js.map +1 -0
  330. package/lib/commonjs/skia/core/index.js +51 -25
  331. package/lib/commonjs/skia/core/index.js.map +1 -1
  332. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  333. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  334. package/lib/commonjs/skia/types/Matrix.js +58 -1
  335. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  336. package/lib/commonjs/skia/types/Path/Path.js +1 -0
  337. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  338. package/lib/commonjs/skia/types/Point.js.map +1 -1
  339. package/lib/commonjs/skia/types/RRect.js +7 -0
  340. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  341. package/lib/commonjs/skia/types/Shader/Shader.js +51 -1
  342. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  343. package/lib/commonjs/skia/web/{api/Host.js → Host.js} +10 -1
  344. package/lib/commonjs/skia/web/Host.js.map +1 -0
  345. package/lib/commonjs/skia/web/JsiImageFilterFactory.js +68 -0
  346. package/lib/commonjs/skia/web/JsiImageFilterFactory.js.map +1 -0
  347. package/lib/commonjs/skia/web/{api/JsiSkCanvas.js → JsiSkCanvas.js} +20 -6
  348. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
  349. package/lib/commonjs/skia/web/{api/JsiSkColor.js → JsiSkColor.js} +163 -4
  350. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
  351. package/lib/commonjs/skia/web/{api/JsiSkColorFilter.js → JsiSkColorFilter.js} +0 -0
  352. package/lib/commonjs/skia/web/{api/JsiSkColorFilter.js.map → JsiSkColorFilter.js.map} +1 -1
  353. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +48 -0
  354. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  355. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +42 -0
  356. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
  357. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +30 -0
  358. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  359. package/lib/commonjs/skia/web/JsiSkData.js +18 -0
  360. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
  361. package/lib/commonjs/skia/web/JsiSkDataFactory.js +44 -0
  362. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
  363. package/lib/commonjs/skia/web/JsiSkFont.js +113 -0
  364. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
  365. package/lib/commonjs/skia/web/JsiSkFontMgr.js +35 -0
  366. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
  367. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +25 -0
  368. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  369. package/lib/commonjs/skia/web/{api/JsiSkImage.js → JsiSkImage.js} +0 -0
  370. package/lib/commonjs/skia/web/{api/JsiSkImage.js.map → JsiSkImage.js.map} +1 -1
  371. package/lib/commonjs/skia/web/JsiSkImageFactory.js +47 -0
  372. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
  373. package/lib/commonjs/skia/web/JsiSkImageFilter.js +18 -0
  374. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
  375. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +18 -0
  376. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
  377. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +24 -0
  378. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  379. package/lib/commonjs/skia/web/JsiSkMatrix.js +38 -0
  380. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
  381. package/lib/commonjs/skia/web/{api/JsiSkPaint.js → JsiSkPaint.js} +4 -9
  382. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
  383. package/lib/commonjs/skia/web/JsiSkPath.js +324 -0
  384. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
  385. package/lib/commonjs/skia/web/JsiSkPathEffect.js +18 -0
  386. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
  387. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +78 -0
  388. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  389. package/lib/commonjs/skia/web/JsiSkPathFactory.js +58 -0
  390. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -0
  391. package/lib/commonjs/skia/web/JsiSkPicture.js +29 -0
  392. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -0
  393. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +30 -0
  394. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
  395. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +30 -0
  396. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
  397. package/lib/commonjs/skia/web/JsiSkPoint.js +26 -0
  398. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
  399. package/lib/commonjs/skia/web/JsiSkRRect.js +32 -0
  400. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
  401. package/lib/commonjs/skia/web/JsiSkRSXform.js +18 -0
  402. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
  403. package/lib/commonjs/skia/web/{api/JsiSkRect.js → JsiSkRect.js} +8 -0
  404. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -0
  405. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +44 -0
  406. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  407. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +30 -0
  408. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  409. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +26 -0
  410. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
  411. package/lib/commonjs/skia/web/JsiSkShader.js +18 -0
  412. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
  413. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +52 -0
  414. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
  415. package/lib/commonjs/skia/web/{api/JsiSkSurface.js → JsiSkSurface.js} +0 -0
  416. package/lib/commonjs/skia/web/{api/JsiSkSurface.js.map → JsiSkSurface.js.map} +1 -1
  417. package/lib/commonjs/skia/web/{api/JsiSkSurfaceFactory.js → JsiSkSurfaceFactory.js} +0 -0
  418. package/lib/commonjs/skia/web/{api/JsiSkSurfaceFactory.js.map → JsiSkSurfaceFactory.js.map} +1 -1
  419. package/lib/commonjs/skia/web/JsiSkTextBlob.js +18 -0
  420. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
  421. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +36 -0
  422. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  423. package/lib/commonjs/skia/web/JsiSkTypeface.js +28 -0
  424. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
  425. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +30 -0
  426. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  427. package/lib/commonjs/skia/web/JsiSkVertices.js +28 -0
  428. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
  429. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +27 -0
  430. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
  431. package/lib/commonjs/skia/web/JsiSkia.js +97 -0
  432. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
  433. package/lib/commonjs/skia/web/index.js +4 -4
  434. package/lib/commonjs/skia/web/index.js.map +1 -1
  435. package/lib/commonjs/values/web/api.js +2 -2
  436. package/lib/commonjs/values/web/api.js.map +1 -1
  437. package/lib/commonjs/views/SkiaView.web.js +216 -0
  438. package/lib/commonjs/views/SkiaView.web.js.map +1 -0
  439. package/lib/commonjs/views/types.js.map +1 -1
  440. package/lib/commonjs/views/useTouchHandler.js +70 -46
  441. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  442. package/lib/commonjs/web/index.js +20 -0
  443. package/lib/commonjs/web/index.js.map +1 -0
  444. package/lib/module/animation/functions/index.js +4 -2
  445. package/lib/module/animation/functions/index.js.map +1 -1
  446. package/lib/module/animation/functions/interpolatePaths.js +36 -0
  447. package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
  448. package/lib/module/animation/functions/interpolateVector.js +7 -0
  449. package/lib/module/animation/functions/interpolateVector.js.map +1 -0
  450. package/lib/module/index.js +1 -0
  451. package/lib/module/index.js.map +1 -1
  452. package/lib/module/renderer/Canvas.js +15 -26
  453. package/lib/module/renderer/Canvas.js.map +1 -1
  454. package/lib/module/renderer/HostConfig.js +2 -2
  455. package/lib/module/renderer/HostConfig.js.map +1 -1
  456. package/lib/module/renderer/components/Blend.js +5 -2
  457. package/lib/module/renderer/components/Blend.js.map +1 -1
  458. package/lib/module/renderer/components/Compose.js +5 -2
  459. package/lib/module/renderer/components/Compose.js.map +1 -1
  460. package/lib/module/renderer/components/Group.js +7 -6
  461. package/lib/module/renderer/components/Group.js.map +1 -1
  462. package/lib/module/renderer/components/Mask.js +7 -3
  463. package/lib/module/renderer/components/Mask.js.map +1 -1
  464. package/lib/module/renderer/components/Paint.js +6 -3
  465. package/lib/module/renderer/components/Paint.js.map +1 -1
  466. package/lib/module/renderer/components/Picture.js.map +1 -1
  467. package/lib/module/renderer/components/backdrop/BackdropFilter.js +1 -1
  468. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  469. package/lib/module/renderer/components/colorFilters/BlendColor.js +6 -3
  470. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  471. package/lib/module/renderer/components/colorFilters/Compose.js +2 -2
  472. package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -1
  473. package/lib/module/renderer/components/colorFilters/Lerp.js +6 -3
  474. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  475. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +5 -3
  476. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  477. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +5 -3
  478. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  479. package/lib/module/renderer/components/colorFilters/Matrix.js +5 -3
  480. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  481. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +5 -3
  482. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  483. package/lib/module/renderer/components/image/BoxFit.js +7 -8
  484. package/lib/module/renderer/components/image/BoxFit.js.map +1 -1
  485. package/lib/module/renderer/components/image/Image.js +3 -2
  486. package/lib/module/renderer/components/image/Image.js.map +1 -1
  487. package/lib/module/renderer/components/image/ImageSVG.js +3 -2
  488. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  489. package/lib/module/renderer/components/image/ImageShader.js +10 -7
  490. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  491. package/lib/module/renderer/components/imageFilters/Blur.js +7 -4
  492. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  493. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +7 -4
  494. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  495. package/lib/module/renderer/components/imageFilters/InnerShadow.js +3 -3
  496. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  497. package/lib/module/renderer/components/imageFilters/Morphology.js +6 -4
  498. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  499. package/lib/module/renderer/components/imageFilters/Offset.js +5 -3
  500. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  501. package/lib/module/renderer/components/imageFilters/RuntimeShader.js +13 -4
  502. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  503. package/lib/module/renderer/components/imageFilters/Shadow.js +6 -5
  504. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  505. package/lib/module/renderer/components/imageFilters/getInput.js +2 -2
  506. package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -1
  507. package/lib/module/renderer/components/maskFilters/Blur.js +5 -2
  508. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  509. package/lib/module/renderer/components/pathEffects/Corner.js +5 -2
  510. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  511. package/lib/module/renderer/components/pathEffects/Dash.js +5 -2
  512. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  513. package/lib/module/renderer/components/pathEffects/Discrete.js +5 -2
  514. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  515. package/lib/module/renderer/components/pathEffects/Line2D.js +5 -2
  516. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  517. package/lib/module/renderer/components/pathEffects/Path1D.js +6 -3
  518. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  519. package/lib/module/renderer/components/pathEffects/Path2D.js +6 -3
  520. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  521. package/lib/module/renderer/components/pathEffects/Sum.js +5 -2
  522. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  523. package/lib/module/renderer/components/shaders/Color.js +6 -3
  524. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  525. package/lib/module/renderer/components/shaders/FractalNoise.js +4 -2
  526. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  527. package/lib/module/renderer/components/shaders/Gradient.js +3 -3
  528. package/lib/module/renderer/components/shaders/Gradient.js.map +1 -1
  529. package/lib/module/renderer/components/shaders/LinearGradient.js +5 -3
  530. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  531. package/lib/module/renderer/components/shaders/RadialGradient.js +5 -3
  532. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  533. package/lib/module/renderer/components/shaders/Shader.js +6 -45
  534. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  535. package/lib/module/renderer/components/shaders/SweepGradient.js +5 -3
  536. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  537. package/lib/module/renderer/components/shaders/Turbulence.js +4 -2
  538. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  539. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +5 -3
  540. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  541. package/lib/module/renderer/components/shapes/Box.js +20 -19
  542. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  543. package/lib/module/renderer/components/shapes/Circle.js +7 -4
  544. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  545. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  546. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  547. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  548. package/lib/module/renderer/components/shapes/Oval.js +3 -2
  549. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  550. package/lib/module/renderer/components/shapes/Patch.js +5 -3
  551. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  552. package/lib/module/renderer/components/shapes/Path.js +4 -3
  553. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  554. package/lib/module/renderer/components/shapes/Points.js +1 -1
  555. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  556. package/lib/module/renderer/components/shapes/Rect.js +3 -2
  557. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  558. package/lib/module/renderer/components/shapes/RoundedRect.js +3 -2
  559. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  560. package/lib/module/renderer/components/shapes/Vertices.js +5 -3
  561. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  562. package/lib/module/renderer/components/text/Glyphs.js +3 -2
  563. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  564. package/lib/module/renderer/components/text/Text.js +3 -2
  565. package/lib/module/renderer/components/text/Text.js.map +1 -1
  566. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  567. package/lib/module/renderer/components/text/TextPath.js +3 -3
  568. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  569. package/lib/module/renderer/index.js +1 -1
  570. package/lib/module/renderer/index.js.map +1 -1
  571. package/lib/module/renderer/nodes/Declaration.js.map +1 -1
  572. package/lib/module/renderer/nodes/Drawing.js +3 -3
  573. package/lib/module/renderer/nodes/Drawing.js.map +1 -1
  574. package/lib/module/renderer/nodes/Node.js.map +1 -1
  575. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  576. package/lib/module/renderer/processors/Circles.js +2 -4
  577. package/lib/module/renderer/processors/Circles.js.map +1 -1
  578. package/lib/module/renderer/processors/Clips.js +3 -3
  579. package/lib/module/renderer/processors/Clips.js.map +1 -1
  580. package/lib/module/{skia/core → renderer/processors}/Color.js +1 -2
  581. package/lib/module/renderer/processors/Color.js.map +1 -0
  582. package/lib/module/renderer/processors/Font.js +3 -2
  583. package/lib/module/renderer/processors/Font.js.map +1 -1
  584. package/lib/module/renderer/processors/Paint.js +8 -5
  585. package/lib/module/renderer/processors/Paint.js.map +1 -1
  586. package/lib/module/renderer/processors/Paths.js +2 -2
  587. package/lib/module/renderer/processors/Paths.js.map +1 -1
  588. package/lib/module/renderer/processors/Radius.js +2 -3
  589. package/lib/module/renderer/processors/Radius.js.map +1 -1
  590. package/lib/module/renderer/processors/Rects.js +7 -26
  591. package/lib/module/renderer/processors/Rects.js.map +1 -1
  592. package/lib/module/renderer/processors/Transform.js +24 -16
  593. package/lib/module/renderer/processors/Transform.js.map +1 -1
  594. package/lib/module/renderer/processors/index.js +2 -1
  595. package/lib/module/renderer/processors/index.js.map +1 -1
  596. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  597. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  598. package/lib/module/renderer/processors/math/index.js +0 -2
  599. package/lib/module/renderer/processors/math/index.js.map +1 -1
  600. package/lib/module/renderer/useCanvas.js +13 -0
  601. package/lib/module/renderer/useCanvas.js.map +1 -0
  602. package/lib/module/skia/NativeSetup.js +2 -2
  603. package/lib/module/skia/NativeSetup.js.map +1 -1
  604. package/lib/module/skia/Skia.web.js +3 -0
  605. package/lib/module/skia/Skia.web.js.map +1 -0
  606. package/lib/module/skia/core/Data.js +11 -5
  607. package/lib/module/skia/core/Data.js.map +1 -1
  608. package/lib/module/skia/core/Font.js +2 -4
  609. package/lib/module/skia/core/Font.js.map +1 -1
  610. package/lib/module/skia/core/Matrix.js +4 -0
  611. package/lib/module/skia/core/Matrix.js.map +1 -0
  612. package/lib/module/skia/core/Paint.js +3 -7
  613. package/lib/module/skia/core/Paint.js.map +1 -1
  614. package/lib/module/skia/core/Path.js +11 -2
  615. package/lib/module/skia/core/Path.js.map +1 -1
  616. package/lib/module/skia/core/RRect.js +3 -0
  617. package/lib/module/skia/core/RRect.js.map +1 -0
  618. package/lib/module/skia/core/Rect.js +17 -0
  619. package/lib/module/skia/core/Rect.js.map +1 -0
  620. package/lib/module/{renderer/processors/math → skia/core}/Vector.js +2 -7
  621. package/lib/module/skia/core/Vector.js.map +1 -0
  622. package/lib/module/skia/core/index.js +5 -3
  623. package/lib/module/skia/core/index.js.map +1 -1
  624. package/lib/module/skia/types/Font/Font.js.map +1 -1
  625. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  626. package/lib/module/skia/types/Matrix.js +55 -0
  627. package/lib/module/skia/types/Matrix.js.map +1 -1
  628. package/lib/module/skia/types/Path/Path.js +1 -0
  629. package/lib/module/skia/types/Path/Path.js.map +1 -1
  630. package/lib/module/skia/types/Point.js.map +1 -1
  631. package/lib/module/skia/types/RRect.js +3 -1
  632. package/lib/module/skia/types/RRect.js.map +1 -1
  633. package/lib/module/skia/types/Shader/Shader.js +48 -0
  634. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  635. package/lib/module/skia/web/{api/Host.js → Host.js} +6 -0
  636. package/lib/module/skia/web/Host.js.map +1 -0
  637. package/lib/module/skia/web/JsiImageFilterFactory.js +57 -0
  638. package/lib/module/skia/web/JsiImageFilterFactory.js.map +1 -0
  639. package/lib/module/skia/web/{api/JsiSkCanvas.js → JsiSkCanvas.js} +19 -6
  640. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
  641. package/lib/module/skia/web/{api/JsiSkColor.js → JsiSkColor.js} +164 -4
  642. package/lib/module/skia/web/JsiSkColor.js.map +1 -0
  643. package/lib/module/skia/web/{api/JsiSkColorFilter.js → JsiSkColorFilter.js} +0 -0
  644. package/lib/module/skia/web/{api/JsiSkColorFilter.js.map → JsiSkColorFilter.js.map} +1 -1
  645. package/lib/module/skia/web/JsiSkColorFilterFactory.js +37 -0
  646. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  647. package/lib/module/skia/web/JsiSkContourMeasure.js +31 -0
  648. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
  649. package/lib/module/skia/web/JsiSkContourMeasureIter.js +19 -0
  650. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  651. package/lib/module/skia/web/JsiSkData.js +8 -0
  652. package/lib/module/skia/web/JsiSkData.js.map +1 -0
  653. package/lib/module/skia/web/JsiSkDataFactory.js +33 -0
  654. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
  655. package/lib/module/skia/web/JsiSkFont.js +101 -0
  656. package/lib/module/skia/web/JsiSkFont.js.map +1 -0
  657. package/lib/module/skia/web/JsiSkFontMgr.js +25 -0
  658. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
  659. package/lib/module/skia/web/JsiSkFontMgrFactory.js +14 -0
  660. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  661. package/lib/module/skia/web/{api/JsiSkImage.js → JsiSkImage.js} +0 -0
  662. package/lib/module/skia/web/{api/JsiSkImage.js.map → JsiSkImage.js.map} +1 -1
  663. package/lib/module/skia/web/JsiSkImageFactory.js +36 -0
  664. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
  665. package/lib/module/skia/web/JsiSkImageFilter.js +8 -0
  666. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
  667. package/lib/module/skia/web/JsiSkMaskFilter.js +8 -0
  668. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
  669. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +13 -0
  670. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  671. package/lib/module/skia/web/JsiSkMatrix.js +28 -0
  672. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
  673. package/lib/module/skia/web/{api/JsiSkPaint.js → JsiSkPaint.js} +5 -10
  674. package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
  675. package/lib/module/skia/web/JsiSkPath.js +311 -0
  676. package/lib/module/skia/web/JsiSkPath.js.map +1 -0
  677. package/lib/module/skia/web/JsiSkPathEffect.js +8 -0
  678. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
  679. package/lib/module/skia/web/JsiSkPathEffectFactory.js +67 -0
  680. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  681. package/lib/module/skia/web/JsiSkPathFactory.js +47 -0
  682. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
  683. package/lib/module/skia/web/JsiSkPicture.js +18 -0
  684. package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
  685. package/lib/module/skia/web/JsiSkPictureFactory.js +19 -0
  686. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
  687. package/lib/module/skia/web/JsiSkPictureRecorder.js +18 -0
  688. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
  689. package/lib/module/skia/web/JsiSkPoint.js +16 -0
  690. package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
  691. package/lib/module/skia/web/JsiSkRRect.js +21 -0
  692. package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
  693. package/lib/module/skia/web/JsiSkRSXform.js +8 -0
  694. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
  695. package/lib/module/skia/web/{api/JsiSkRect.js → JsiSkRect.js} +8 -0
  696. package/lib/module/skia/web/JsiSkRect.js.map +1 -0
  697. package/lib/module/skia/web/JsiSkRuntimeEffect.js +33 -0
  698. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  699. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +19 -0
  700. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  701. package/lib/module/skia/web/JsiSkSVGFactory.js +16 -0
  702. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
  703. package/lib/module/skia/web/JsiSkShader.js +8 -0
  704. package/lib/module/skia/web/JsiSkShader.js.map +1 -0
  705. package/lib/module/skia/web/JsiSkShaderFactory.js +41 -0
  706. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
  707. package/lib/module/skia/web/{api/JsiSkSurface.js → JsiSkSurface.js} +0 -0
  708. package/lib/module/skia/web/{api/JsiSkSurface.js.map → JsiSkSurface.js.map} +1 -1
  709. package/lib/module/skia/web/{api/JsiSkSurfaceFactory.js → JsiSkSurfaceFactory.js} +0 -0
  710. package/lib/module/skia/web/{api/JsiSkSurfaceFactory.js.map → JsiSkSurfaceFactory.js.map} +1 -1
  711. package/lib/module/skia/web/JsiSkTextBlob.js +8 -0
  712. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
  713. package/lib/module/skia/web/JsiSkTextBlobFactory.js +25 -0
  714. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  715. package/lib/module/skia/web/JsiSkTypeface.js +18 -0
  716. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
  717. package/lib/module/skia/web/JsiSkTypefaceFactory.js +19 -0
  718. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  719. package/lib/module/skia/web/JsiSkVertices.js +17 -0
  720. package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
  721. package/lib/module/skia/web/JsiSkVerticesFactory.js +16 -0
  722. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
  723. package/lib/module/skia/web/JsiSkia.js +61 -0
  724. package/lib/module/skia/web/JsiSkia.js.map +1 -0
  725. package/lib/module/skia/web/index.js +1 -1
  726. package/lib/module/skia/web/index.js.map +1 -1
  727. package/lib/module/values/web/api.js +2 -2
  728. package/lib/module/values/web/api.js.map +1 -1
  729. package/lib/module/views/SkiaView.web.js +202 -0
  730. package/lib/module/views/SkiaView.web.js.map +1 -0
  731. package/lib/module/views/types.js.map +1 -1
  732. package/lib/module/views/useTouchHandler.js +64 -43
  733. package/lib/module/views/useTouchHandler.js.map +1 -1
  734. package/lib/module/web/index.js +8 -0
  735. package/lib/module/web/index.js.map +1 -0
  736. package/lib/typescript/src/animation/functions/index.d.ts +4 -2
  737. package/lib/typescript/src/animation/functions/interpolatePaths.d.ts +17 -0
  738. package/lib/typescript/src/animation/functions/interpolateVector.d.ts +10 -0
  739. package/lib/typescript/src/index.d.ts +1 -0
  740. package/lib/typescript/src/renderer/Canvas.d.ts +3 -14
  741. package/lib/typescript/src/renderer/DrawingContext.d.ts +3 -3
  742. package/lib/typescript/src/renderer/components/Blend.d.ts +1 -1
  743. package/lib/typescript/src/renderer/components/Group.d.ts +1 -1
  744. package/lib/typescript/src/renderer/components/Paint.d.ts +1 -1
  745. package/lib/typescript/src/renderer/components/Picture.d.ts +1 -1
  746. package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +2 -2
  747. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +2 -2
  748. package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +13 -3
  749. package/lib/typescript/src/renderer/components/image/Image.d.ts +1 -1
  750. package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +1 -1
  751. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +2 -2
  752. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +1 -1
  753. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +1 -1
  754. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +2 -2
  755. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +2 -1
  756. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +1 -1
  757. package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +2 -1
  758. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +1 -1
  759. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +1 -1
  760. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +1 -1
  761. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +1 -1
  762. package/lib/typescript/src/renderer/components/shaders/Color.d.ts +1 -1
  763. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +4 -4
  764. package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +2 -1
  765. package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +2 -1
  766. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +2 -9
  767. package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +2 -1
  768. package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -1
  769. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +1 -1
  770. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +4 -1
  771. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +1 -1
  772. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +1 -1
  773. package/lib/typescript/src/renderer/components/shapes/Line.d.ts +2 -1
  774. package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +3 -3
  775. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +1 -1
  776. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +2 -2
  777. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +2 -2
  778. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +1 -1
  779. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +1 -1
  780. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +1 -1
  781. package/lib/typescript/src/renderer/index.d.ts +1 -1
  782. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +1 -1
  783. package/lib/typescript/src/renderer/nodes/Node.d.ts +1 -1
  784. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +0 -2
  785. package/lib/typescript/src/renderer/processors/Circles.d.ts +2 -2
  786. package/lib/typescript/src/renderer/processors/Clips.d.ts +2 -2
  787. package/lib/typescript/src/{skia/core → renderer/processors}/Color.d.ts +2 -2
  788. package/lib/typescript/src/renderer/processors/Font.d.ts +2 -2
  789. package/lib/typescript/src/renderer/processors/Paint.d.ts +3 -3
  790. package/lib/typescript/src/renderer/processors/Paths.d.ts +2 -2
  791. package/lib/typescript/src/renderer/processors/Radius.d.ts +2 -2
  792. package/lib/typescript/src/renderer/processors/Rects.d.ts +3 -14
  793. package/lib/typescript/src/renderer/processors/Transform.d.ts +3 -4
  794. package/lib/typescript/src/renderer/processors/index.d.ts +2 -1
  795. package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +1 -1
  796. package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +1 -1
  797. package/lib/typescript/src/renderer/processors/math/index.d.ts +0 -2
  798. package/lib/typescript/src/renderer/useCanvas.d.ts +14 -0
  799. package/lib/typescript/src/skia/Skia.web.d.ts +1 -0
  800. package/lib/typescript/src/skia/core/Data.d.ts +4 -4
  801. package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
  802. package/lib/typescript/src/skia/core/Paint.d.ts +0 -1
  803. package/lib/typescript/src/skia/core/RRect.d.ts +2 -0
  804. package/lib/typescript/src/skia/core/Rect.d.ts +8 -0
  805. package/lib/typescript/src/skia/core/Vector.d.ts +12 -0
  806. package/lib/typescript/src/skia/core/index.d.ts +5 -3
  807. package/lib/typescript/src/skia/types/ContourMeasure.d.ts +2 -4
  808. package/lib/typescript/src/skia/types/Data/Data.d.ts +1 -1
  809. package/lib/typescript/src/skia/types/Data/DataFactory.d.ts +4 -4
  810. package/lib/typescript/src/skia/types/Font/Font.d.ts +8 -9
  811. package/lib/typescript/src/skia/types/FontMgr/FontMgr.d.ts +1 -1
  812. package/lib/typescript/src/skia/types/FontMgr/FontMgrFactory.d.ts +2 -2
  813. package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +3 -3
  814. package/lib/typescript/src/skia/types/Matrix.d.ts +15 -14
  815. package/lib/typescript/src/skia/types/Path/Path.d.ts +29 -23
  816. package/lib/typescript/src/skia/types/Path/PathFactory.d.ts +5 -0
  817. package/lib/typescript/src/skia/types/Picture/Picture.d.ts +2 -2
  818. package/lib/typescript/src/skia/types/Point.d.ts +1 -0
  819. package/lib/typescript/src/skia/types/RRect.d.ts +1 -0
  820. package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +5 -6
  821. package/lib/typescript/src/skia/types/SVG/SVGFactory.d.ts +2 -2
  822. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +8 -0
  823. package/lib/typescript/src/skia/types/Skia.d.ts +1 -1
  824. package/lib/typescript/src/skia/types/Typeface/TypefaceFactory.d.ts +2 -2
  825. package/lib/typescript/src/skia/web/{api/Host.d.ts → Host.d.ts} +4 -1
  826. package/lib/typescript/src/skia/web/JsiImageFilterFactory.d.ts +19 -0
  827. package/lib/typescript/src/skia/web/{api/JsiSkCanvas.d.ts → JsiSkCanvas.d.ts} +1 -1
  828. package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
  829. package/lib/typescript/src/skia/web/{api/JsiSkColorFilter.d.ts → JsiSkColorFilter.d.ts} +1 -1
  830. package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  831. package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +16 -0
  832. package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  833. package/lib/typescript/src/skia/web/JsiSkData.d.ts +8 -0
  834. package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
  835. package/lib/typescript/src/skia/web/JsiSkFont.d.ts +33 -0
  836. package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +9 -0
  837. package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
  838. package/lib/typescript/src/skia/web/{api/JsiSkImage.d.ts → JsiSkImage.d.ts} +1 -1
  839. package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +10 -0
  840. package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +6 -0
  841. package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +6 -0
  842. package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  843. package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +11 -0
  844. package/lib/typescript/src/skia/web/{api/JsiSkPaint.d.ts → JsiSkPaint.d.ts} +1 -1
  845. package/lib/typescript/src/skia/web/JsiSkPath.d.ts +56 -0
  846. package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +6 -0
  847. package/lib/typescript/src/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  848. package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +13 -0
  849. package/lib/typescript/src/skia/web/JsiSkPicture.d.ts +9 -0
  850. package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
  851. package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  852. package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +8 -0
  853. package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +10 -0
  854. package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -0
  855. package/lib/typescript/src/skia/web/{api/JsiSkRect.d.ts → JsiSkRect.d.ts} +2 -1
  856. package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +14 -0
  857. package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  858. package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +9 -0
  859. package/lib/typescript/src/skia/web/JsiSkShader.d.ts +6 -0
  860. package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
  861. package/lib/typescript/src/skia/web/{api/JsiSkSurface.d.ts → JsiSkSurface.d.ts} +1 -1
  862. package/lib/typescript/src/skia/web/{api/JsiSkSurfaceFactory.d.ts → JsiSkSurfaceFactory.d.ts} +1 -1
  863. package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +6 -0
  864. package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +12 -0
  865. package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +8 -0
  866. package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  867. package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +9 -0
  868. package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  869. package/lib/typescript/src/skia/web/JsiSkia.d.ts +3 -0
  870. package/lib/typescript/src/skia/web/index.d.ts +1 -1
  871. package/lib/typescript/src/views/SkiaView.web.d.ts +56 -0
  872. package/lib/typescript/src/views/types.d.ts +1 -0
  873. package/lib/typescript/src/views/useTouchHandler.d.ts +11 -1
  874. package/lib/typescript/src/web/index.d.ts +5 -0
  875. package/libs/android/arm64-v8a/libskia.a +0 -0
  876. package/libs/android/arm64-v8a/libsvg.a +0 -0
  877. package/libs/android/armeabi-v7a/libskia.a +0 -0
  878. package/libs/android/armeabi-v7a/libsvg.a +0 -0
  879. package/libs/android/x86/libskia.a +0 -0
  880. package/libs/android/x86/libsvg.a +0 -0
  881. package/libs/android/x86_64/libskia.a +0 -0
  882. package/libs/android/x86_64/libsvg.a +0 -0
  883. package/libs/ios/libskia.xcframework/Info.plist +5 -5
  884. package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
  885. package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  886. package/libs/ios/libskshaper.xcframework/Info.plist +5 -5
  887. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
  888. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  889. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
  890. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  891. package/package.json +5 -6
  892. package/src/animation/functions/index.ts +4 -2
  893. package/src/animation/functions/interpolatePaths.ts +38 -0
  894. package/src/animation/functions/interpolateVector.ts +26 -0
  895. package/src/index.ts +1 -0
  896. package/src/renderer/Canvas.tsx +13 -35
  897. package/src/renderer/DrawingContext.ts +3 -4
  898. package/src/renderer/HostConfig.ts +2 -2
  899. package/src/renderer/components/Blend.tsx +12 -10
  900. package/src/renderer/components/Compose.tsx +2 -2
  901. package/src/renderer/components/Group.tsx +11 -6
  902. package/src/renderer/components/Mask.tsx +5 -3
  903. package/src/renderer/components/Paint.tsx +5 -4
  904. package/src/renderer/components/Picture.tsx +1 -1
  905. package/src/renderer/components/backdrop/BackdropFilter.tsx +1 -1
  906. package/src/renderer/components/colorFilters/BlendColor.tsx +4 -4
  907. package/src/renderer/components/colorFilters/Compose.ts +3 -2
  908. package/src/renderer/components/colorFilters/Lerp.tsx +3 -2
  909. package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +2 -3
  910. package/src/renderer/components/colorFilters/LumaColorFilter.tsx +2 -3
  911. package/src/renderer/components/colorFilters/Matrix.tsx +2 -3
  912. package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +2 -3
  913. package/src/renderer/components/image/BoxFit.ts +7 -13
  914. package/src/renderer/components/image/Image.tsx +3 -3
  915. package/src/renderer/components/image/ImageSVG.tsx +3 -3
  916. package/src/renderer/components/image/ImageShader.tsx +8 -7
  917. package/src/renderer/components/imageFilters/Blur.tsx +12 -10
  918. package/src/renderer/components/imageFilters/DisplacementMap.tsx +4 -4
  919. package/src/renderer/components/imageFilters/InnerShadow.tsx +4 -3
  920. package/src/renderer/components/imageFilters/Morphology.tsx +3 -4
  921. package/src/renderer/components/imageFilters/Offset.tsx +5 -4
  922. package/src/renderer/components/imageFilters/RuntimeShader.tsx +12 -4
  923. package/src/renderer/components/imageFilters/Shadow.tsx +10 -6
  924. package/src/renderer/components/imageFilters/getInput.ts +3 -2
  925. package/src/renderer/components/maskFilters/Blur.tsx +2 -2
  926. package/src/renderer/components/pathEffects/Corner.tsx +2 -2
  927. package/src/renderer/components/pathEffects/Dash.tsx +2 -2
  928. package/src/renderer/components/pathEffects/Discrete.tsx +2 -2
  929. package/src/renderer/components/pathEffects/Line2D.tsx +3 -3
  930. package/src/renderer/components/pathEffects/Path1D.tsx +3 -3
  931. package/src/renderer/components/pathEffects/Path2D.tsx +4 -4
  932. package/src/renderer/components/pathEffects/Sum.tsx +7 -5
  933. package/src/renderer/components/shaders/Color.tsx +7 -5
  934. package/src/renderer/components/shaders/FractalNoise.tsx +1 -2
  935. package/src/renderer/components/shaders/Gradient.ts +7 -10
  936. package/src/renderer/components/shaders/LinearGradient.tsx +4 -4
  937. package/src/renderer/components/shaders/RadialGradient.tsx +4 -4
  938. package/src/renderer/components/shaders/Shader.tsx +6 -58
  939. package/src/renderer/components/shaders/SweepGradient.tsx +4 -4
  940. package/src/renderer/components/shaders/Turbulence.tsx +1 -2
  941. package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +4 -4
  942. package/src/renderer/components/shapes/Box.tsx +36 -17
  943. package/src/renderer/components/shapes/Circle.tsx +3 -4
  944. package/src/renderer/components/shapes/DiffRect.tsx +1 -1
  945. package/src/renderer/components/shapes/FitBox.tsx +1 -1
  946. package/src/renderer/components/shapes/Line.tsx +2 -1
  947. package/src/renderer/components/shapes/Oval.tsx +6 -4
  948. package/src/renderer/components/shapes/Patch.tsx +6 -10
  949. package/src/renderer/components/shapes/Path.tsx +3 -3
  950. package/src/renderer/components/shapes/Points.tsx +2 -2
  951. package/src/renderer/components/shapes/Rect.tsx +6 -4
  952. package/src/renderer/components/shapes/RoundedRect.tsx +2 -2
  953. package/src/renderer/components/shapes/Vertices.tsx +5 -4
  954. package/src/renderer/components/text/Glyphs.tsx +6 -3
  955. package/src/renderer/components/text/Text.tsx +2 -2
  956. package/src/renderer/components/text/TextBlob.tsx +1 -1
  957. package/src/renderer/components/text/TextPath.tsx +3 -4
  958. package/src/renderer/index.ts +1 -1
  959. package/src/renderer/nodes/Declaration.tsx +1 -1
  960. package/src/renderer/nodes/Drawing.tsx +3 -2
  961. package/src/renderer/nodes/Node.ts +1 -1
  962. package/src/renderer/processors/Animations/Animations.ts +0 -3
  963. package/src/renderer/processors/Circles.ts +4 -4
  964. package/src/renderer/processors/Clips.ts +9 -4
  965. package/src/{skia/core → renderer/processors}/Color.ts +2 -3
  966. package/src/renderer/processors/Font.ts +10 -3
  967. package/src/renderer/processors/Paint.ts +12 -7
  968. package/src/renderer/processors/Paths.ts +3 -3
  969. package/src/renderer/processors/Radius.ts +3 -4
  970. package/src/renderer/processors/Rects.ts +10 -45
  971. package/src/renderer/processors/Transform.ts +28 -19
  972. package/src/renderer/processors/index.ts +2 -1
  973. package/src/renderer/processors/math/Coordinates.ts +1 -1
  974. package/src/renderer/processors/math/Transforms.ts +2 -1
  975. package/src/renderer/processors/math/index.ts +0 -2
  976. package/src/renderer/useCanvas.ts +21 -0
  977. package/src/skia/NativeSetup.ts +2 -2
  978. package/src/skia/Skia.web.ts +3 -0
  979. package/src/skia/core/Data.ts +17 -14
  980. package/src/skia/core/Font.ts +2 -4
  981. package/src/skia/core/Matrix.ts +6 -0
  982. package/src/skia/core/Paint.ts +2 -6
  983. package/src/skia/core/Path.ts +14 -6
  984. package/src/skia/core/RRect.tsx +5 -0
  985. package/src/skia/core/Rect.ts +33 -0
  986. package/src/skia/core/Vector.ts +11 -0
  987. package/src/skia/core/index.ts +5 -3
  988. package/src/skia/types/ContourMeasure.tsx +2 -4
  989. package/src/skia/types/Data/Data.ts +1 -1
  990. package/src/skia/types/Data/DataFactory.ts +4 -4
  991. package/src/skia/types/Font/Font.ts +9 -14
  992. package/src/skia/types/FontMgr/FontMgr.ts +1 -1
  993. package/src/skia/types/FontMgr/FontMgrFactory.ts +2 -2
  994. package/src/skia/types/Image/ImageFactory.ts +3 -3
  995. package/src/skia/types/Matrix.ts +79 -14
  996. package/src/skia/types/Path/Path.ts +34 -23
  997. package/src/skia/types/Path/PathFactory.ts +7 -0
  998. package/src/skia/types/Picture/Picture.ts +2 -2
  999. package/src/skia/types/Point.ts +2 -0
  1000. package/src/skia/types/RRect.ts +5 -0
  1001. package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +5 -10
  1002. package/src/skia/types/SVG/SVGFactory.ts +2 -2
  1003. package/src/skia/types/Shader/Shader.ts +61 -0
  1004. package/src/skia/types/Skia.ts +1 -1
  1005. package/src/skia/types/Typeface/TypefaceFactory.ts +2 -2
  1006. package/src/skia/web/{api/Host.ts → Host.ts} +7 -1
  1007. package/src/skia/web/JsiImageFilterFactory.ts +144 -0
  1008. package/src/skia/web/{api/JsiSkCanvas.ts → JsiSkCanvas.ts} +19 -11
  1009. package/src/skia/web/{api/JsiSkColor.ts → JsiSkColor.ts} +152 -6
  1010. package/src/skia/web/{api/JsiSkColorFilter.ts → JsiSkColorFilter.ts} +1 -1
  1011. package/src/skia/web/JsiSkColorFilterFactory.ts +67 -0
  1012. package/src/skia/web/JsiSkContourMeasure.ts +35 -0
  1013. package/src/skia/web/JsiSkContourMeasureIter.ts +23 -0
  1014. package/src/skia/web/JsiSkData.ts +13 -0
  1015. package/src/skia/web/JsiSkDataFactory.ts +35 -0
  1016. package/src/skia/web/JsiSkFont.ts +128 -0
  1017. package/src/skia/web/JsiSkFontMgr.ts +42 -0
  1018. package/src/skia/web/JsiSkFontMgrFactory.ts +18 -0
  1019. package/src/skia/web/{api/JsiSkImage.ts → JsiSkImage.ts} +1 -1
  1020. package/src/skia/web/JsiSkImageFactory.ts +40 -0
  1021. package/src/skia/web/JsiSkImageFilter.ts +14 -0
  1022. package/src/skia/web/JsiSkMaskFilter.ts +14 -0
  1023. package/src/skia/web/JsiSkMaskFilterFactory.ts +20 -0
  1024. package/src/skia/web/JsiSkMatrix.ts +54 -0
  1025. package/src/skia/web/{api/JsiSkPaint.ts → JsiSkPaint.ts} +6 -5
  1026. package/src/skia/web/JsiSkPath.ts +369 -0
  1027. package/src/skia/web/JsiSkPathEffect.ts +14 -0
  1028. package/src/skia/web/JsiSkPathEffectFactory.ts +85 -0
  1029. package/src/skia/web/JsiSkPathFactory.ts +54 -0
  1030. package/src/skia/web/JsiSkPicture.ts +45 -0
  1031. package/src/skia/web/JsiSkPictureFactory.ts +20 -0
  1032. package/src/skia/web/JsiSkPictureRecorder.ts +31 -0
  1033. package/src/skia/web/JsiSkPoint.ts +19 -0
  1034. package/src/skia/web/JsiSkRRect.ts +27 -0
  1035. package/src/skia/web/JsiSkRSXform.ts +16 -0
  1036. package/src/skia/web/{api/JsiSkRect.ts → JsiSkRect.ts} +11 -1
  1037. package/src/skia/web/JsiSkRuntimeEffect.ts +57 -0
  1038. package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
  1039. package/src/skia/web/JsiSkSVGFactory.ts +20 -0
  1040. package/src/skia/web/JsiSkShader.ts +14 -0
  1041. package/src/skia/web/JsiSkShaderFactory.ts +178 -0
  1042. package/src/skia/web/{api/JsiSkSurface.ts → JsiSkSurface.ts} +1 -1
  1043. package/src/skia/web/{api/JsiSkSurfaceFactory.ts → JsiSkSurfaceFactory.ts} +1 -1
  1044. package/src/skia/web/JsiSkTextBlob.ts +14 -0
  1045. package/src/skia/web/JsiSkTextBlobFactory.ts +49 -0
  1046. package/src/skia/web/JsiSkTypeface.ts +28 -0
  1047. package/src/skia/web/JsiSkTypefaceFactory.tsx +20 -0
  1048. package/src/skia/web/JsiSkVertices.ts +23 -0
  1049. package/src/skia/web/JsiSkVerticesFactory.ts +27 -0
  1050. package/src/skia/web/JsiSkia.ts +98 -0
  1051. package/src/skia/web/index.ts +1 -1
  1052. package/src/values/web/api.ts +2 -2
  1053. package/src/views/SkiaView.web.tsx +192 -0
  1054. package/src/views/types.ts +1 -0
  1055. package/src/views/useTouchHandler.ts +82 -51
  1056. package/src/web/index.ts +13 -0
  1057. package/cpp/skia/include/core/SkCustomMesh.h +0 -202
  1058. package/cpp/skia/include/core/SkStringView.h +0 -185
  1059. package/cpp/skia/include/private/SkPaintParamsKey.h +0 -110
  1060. package/cpp/skia/include/private/SkShaderCodeDictionary.h +0 -63
  1061. package/cpp/skia/include/private/SkTOptional.h +0 -362
  1062. package/lib/commonjs/renderer/processors/math/Matrix3.js +0 -66
  1063. package/lib/commonjs/renderer/processors/math/Matrix3.js.map +0 -1
  1064. package/lib/commonjs/renderer/processors/math/Vector.js +0 -60
  1065. package/lib/commonjs/renderer/processors/math/Vector.js.map +0 -1
  1066. package/lib/commonjs/skia/core/Color.js.map +0 -1
  1067. package/lib/commonjs/skia/core/Shader.js +0 -18
  1068. package/lib/commonjs/skia/core/Shader.js.map +0 -1
  1069. package/lib/commonjs/skia/web/api/Host.js.map +0 -1
  1070. package/lib/commonjs/skia/web/api/JsiSkCanvas.js.map +0 -1
  1071. package/lib/commonjs/skia/web/api/JsiSkColor.js.map +0 -1
  1072. package/lib/commonjs/skia/web/api/JsiSkPaint.js.map +0 -1
  1073. package/lib/commonjs/skia/web/api/JsiSkRect.js.map +0 -1
  1074. package/lib/commonjs/skia/web/api/index.js +0 -26
  1075. package/lib/commonjs/skia/web/api/index.js.map +0 -1
  1076. package/lib/module/renderer/processors/math/Matrix3.js +0 -55
  1077. package/lib/module/renderer/processors/math/Matrix3.js.map +0 -1
  1078. package/lib/module/renderer/processors/math/Vector.js.map +0 -1
  1079. package/lib/module/skia/core/Color.js.map +0 -1
  1080. package/lib/module/skia/core/Shader.js +0 -7
  1081. package/lib/module/skia/core/Shader.js.map +0 -1
  1082. package/lib/module/skia/web/api/Host.js.map +0 -1
  1083. package/lib/module/skia/web/api/JsiSkCanvas.js.map +0 -1
  1084. package/lib/module/skia/web/api/JsiSkColor.js.map +0 -1
  1085. package/lib/module/skia/web/api/JsiSkPaint.js.map +0 -1
  1086. package/lib/module/skia/web/api/JsiSkRect.js.map +0 -1
  1087. package/lib/module/skia/web/api/index.js +0 -13
  1088. package/lib/module/skia/web/api/index.js.map +0 -1
  1089. package/lib/typescript/src/renderer/processors/math/Matrix3.d.ts +0 -10
  1090. package/lib/typescript/src/renderer/processors/math/Vector.d.ts +0 -23
  1091. package/lib/typescript/src/skia/core/Shader.d.ts +0 -1
  1092. package/lib/typescript/src/skia/web/api/JsiSkColor.d.ts +0 -3
  1093. package/lib/typescript/src/skia/web/api/index.d.ts +0 -10
  1094. package/src/animation/timing/functions/__tests__/timing.spec.ts +0 -29
  1095. package/src/renderer/processors/math/Matrix3.ts +0 -73
  1096. package/src/renderer/processors/math/Vector.ts +0 -38
  1097. package/src/skia/__tests__/Rects.spec.ts +0 -40
  1098. package/src/skia/__tests__/snapshots/lightblue-rect.png +0 -0
  1099. package/src/skia/core/Shader.ts +0 -9
  1100. package/src/skia/web/api/index.ts +0 -15
  1101. package/src/values/web/__tests__/RNSkAnimation.spec.ts +0 -21
  1102. package/src/values/web/__tests__/RNSkDerivedValue.spec.ts +0 -15
  1103. package/src/values/web/__tests__/RNSkReadonlyValue.spec.ts +0 -8
  1104. package/src/values/web/__tests__/RNSkValue.spec.ts +0 -11
@@ -9,8 +9,8 @@
9
9
  #define GrRecordingContext_DEFINED
10
10
 
11
11
  #include "include/core/SkRefCnt.h"
12
- #include "include/private/GrImageContext.h"
13
12
  #include "include/private/SkTArray.h"
13
+ #include "include/private/gpu/ganesh/GrImageContext.h"
14
14
 
15
15
  #if GR_GPU_STATS && GR_TEST_UTILS
16
16
  #include <map>
@@ -26,13 +26,16 @@ class GrProgramDesc;
26
26
  class GrProgramInfo;
27
27
  class GrProxyProvider;
28
28
  class GrRecordingContextPriv;
29
- class GrSubRunAllocator;
30
29
  class GrSurfaceProxy;
31
30
  class GrTextBlobRedrawCoordinator;
32
31
  class GrThreadSafeCache;
33
32
  class SkArenaAlloc;
34
33
  class SkJSONWriter;
35
34
 
35
+ namespace sktext::gpu {
36
+ class SubRunAllocator;
37
+ }
38
+
36
39
  #if GR_TEST_UTILS
37
40
  class SkString;
38
41
  #endif
@@ -90,7 +93,9 @@ public:
90
93
  * rendering is supported for the color type. 0 is returned if rendering to this color type
91
94
  * is not supported at all.
92
95
  */
93
- SK_API int maxSurfaceSampleCountForColorType(SkColorType) const;
96
+ SK_API int maxSurfaceSampleCountForColorType(SkColorType colorType) const {
97
+ return INHERITED::maxSurfaceSampleCountForColorType(colorType);
98
+ }
94
99
 
95
100
  // Provides access to functions that aren't part of the public API.
96
101
  GrRecordingContextPriv priv();
@@ -100,17 +105,19 @@ public:
100
105
  // GrRecordingContext. Arenas does not maintain ownership of the pools it groups together.
101
106
  class Arenas {
102
107
  public:
103
- Arenas(SkArenaAlloc*, GrSubRunAllocator*);
108
+ Arenas(SkArenaAlloc*, sktext::gpu::SubRunAllocator*);
104
109
 
105
110
  // For storing pipelines and other complex data as-needed by ops
106
111
  SkArenaAlloc* recordTimeAllocator() { return fRecordTimeAllocator; }
107
112
 
108
113
  // For storing GrTextBlob SubRuns
109
- GrSubRunAllocator* recordTimeSubRunAllocator() { return fRecordTimeSubRunAllocator; }
114
+ sktext::gpu::SubRunAllocator* recordTimeSubRunAllocator() {
115
+ return fRecordTimeSubRunAllocator;
116
+ }
110
117
 
111
118
  private:
112
119
  SkArenaAlloc* fRecordTimeAllocator;
113
- GrSubRunAllocator* fRecordTimeSubRunAllocator;
120
+ sktext::gpu::SubRunAllocator* fRecordTimeSubRunAllocator;
114
121
  };
115
122
 
116
123
  protected:
@@ -131,7 +138,7 @@ protected:
131
138
  private:
132
139
  bool fDDLRecording;
133
140
  std::unique_ptr<SkArenaAlloc> fRecordTimeAllocator;
134
- std::unique_ptr<GrSubRunAllocator> fRecordTimeSubRunAllocator;
141
+ std::unique_ptr<sktext::gpu::SubRunAllocator> fRecordTimeSubRunAllocator;
135
142
  };
136
143
 
137
144
  GrRecordingContext(sk_sp<GrContextThreadSafeProxy>, bool ddlRecording);
@@ -11,22 +11,22 @@
11
11
  #include "include/gpu/GrTypes.h"
12
12
 
13
13
  #ifdef SK_GL
14
- #include "include/private/GrGLTypesPriv.h"
14
+ #include "include/private/gpu/ganesh/GrGLTypesPriv.h"
15
15
  #endif
16
16
  #ifdef SK_VULKAN
17
- #include "include/private/GrVkTypesPriv.h"
17
+ #include "include/private/gpu/ganesh/GrVkTypesPriv.h"
18
18
  #endif
19
19
  #ifdef SK_DIRECT3D
20
- #include "include/private/GrD3DTypesMinimal.h"
20
+ #include "include/private/gpu/ganesh/GrD3DTypesMinimal.h"
21
21
  struct GrD3DSurfaceInfo;
22
22
  #endif
23
23
  #ifdef SK_METAL
24
- #include "include/private/GrMtlTypesPriv.h"
24
+ #include "include/private/gpu/ganesh/GrMtlTypesPriv.h"
25
25
  #endif
26
26
  #ifdef SK_DAWN
27
- #include "include/private/GrDawnTypesPriv.h"
27
+ #include "include/private/gpu/ganesh/GrDawnTypesPriv.h"
28
28
  #endif
29
- #include "include/private/GrMockTypesPriv.h"
29
+ #include "include/private/gpu/ganesh/GrMockTypesPriv.h"
30
30
 
31
31
  class GrSurfaceInfo {
32
32
  public:
@@ -22,7 +22,7 @@ static constexpr int Success = 0;
22
22
  #undef None
23
23
  static constexpr int None = 0L;
24
24
  #endif
25
- #include "dawn/webgpu_cpp.h"
25
+ #include "webgpu/webgpu_cpp.h"
26
26
 
27
27
  struct GrDawnTextureInfo {
28
28
  wgpu::Texture fTexture;
@@ -96,6 +96,7 @@ using GrGLGenVertexArraysFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLsizei n, GrGLuint
96
96
  using GrGLGetBufferParameterivFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLenum pname, GrGLint* params);
97
97
  using GrGLGetErrorFn = GrGLenum GR_GL_FUNCTION_TYPE();
98
98
  using GrGLGetFramebufferAttachmentParameterivFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLenum attachment, GrGLenum pname, GrGLint* params);
99
+ using GrGLGetFloatvFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum pname, GrGLfloat* params);
99
100
  using GrGLGetIntegervFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum pname, GrGLint* params);
100
101
  using GrGLGetMultisamplefvFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum pname, GrGLuint index, GrGLfloat* val);
101
102
  using GrGLGetProgramBinaryFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLuint program, GrGLsizei bufsize, GrGLsizei* length, GrGLenum* binaryFormat, void* binary);
@@ -142,7 +143,8 @@ using GrGLReadPixelsFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLint x, GrGLint y, GrGL
142
143
  using GrGLRenderbufferStorageFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLenum internalformat, GrGLsizei width, GrGLsizei height);
143
144
  using GrGLRenderbufferStorageMultisampleFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLsizei samples, GrGLenum internalformat, GrGLsizei width, GrGLsizei height);
144
145
  using GrGLResolveMultisampleFramebufferFn = GrGLvoid GR_GL_FUNCTION_TYPE();
145
- using GrGLSamplerParameteriFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLuint sampler, GrGLenum pname, GrGLint params);
146
+ using GrGLSamplerParameterfFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLuint sampler, GrGLenum pname, GrGLfloat param);
147
+ using GrGLSamplerParameteriFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLuint sampler, GrGLenum pname, GrGLint param);
146
148
  using GrGLSamplerParameterivFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLuint sampler, GrGLenum pname, const GrGLint* params);
147
149
  using GrGLScissorFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height);
148
150
  // GL_CHROMIUM_bind_uniform_location
@@ -31,8 +31,6 @@ struct GrGLInterface;
31
31
  * appropriate one to build.
32
32
  */
33
33
  SK_API sk_sp<const GrGLInterface> GrGLMakeNativeInterface();
34
- // Deprecated alternative to GrGLMakeNativeInterface().
35
- SK_API const GrGLInterface* GrGLCreateNativeInterface();
36
34
 
37
35
  /**
38
36
  * GrContext uses the following interface to make all calls into OpenGL. When a
@@ -170,6 +168,7 @@ public:
170
168
  GrGLFunction<GrGLGetBufferParameterivFn> fGetBufferParameteriv;
171
169
  GrGLFunction<GrGLGetErrorFn> fGetError;
172
170
  GrGLFunction<GrGLGetFramebufferAttachmentParameterivFn> fGetFramebufferAttachmentParameteriv;
171
+ GrGLFunction<GrGLGetFloatvFn> fGetFloatv;
173
172
  GrGLFunction<GrGLGetIntegervFn> fGetIntegerv;
174
173
  GrGLFunction<GrGLGetMultisamplefvFn> fGetMultisamplefv;
175
174
  GrGLFunction<GrGLGetProgramBinaryFn> fGetProgramBinary;
@@ -248,6 +247,7 @@ public:
248
247
  GrGLFunction<GrGLBindUniformLocationFn> fBindUniformLocation;
249
248
 
250
249
  GrGLFunction<GrGLResolveMultisampleFramebufferFn> fResolveMultisampleFramebuffer;
250
+ GrGLFunction<GrGLSamplerParameterfFn> fSamplerParameterf;
251
251
  GrGLFunction<GrGLSamplerParameteriFn> fSamplerParameteri;
252
252
  GrGLFunction<GrGLSamplerParameterivFn> fSamplerParameteriv;
253
253
  GrGLFunction<GrGLScissorFn> fScissor;
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Copyright 2021 Google LLC
3
+ *
4
+ * Use of this source code is governed by a BSD-style license that can be
5
+ * found in the LICENSE file.
6
+ */
7
+
8
+ #ifndef skgpu_graphite_BackendTexture_DEFINED
9
+ #define skgpu_graphite_BackendTexture_DEFINED
10
+
11
+ #include "include/core/SkSize.h"
12
+ #include "include/gpu/graphite/GraphiteTypes.h"
13
+ #include "include/gpu/graphite/TextureInfo.h"
14
+
15
+ #ifdef SK_METAL
16
+ #include "include/gpu/graphite/mtl/MtlTypes.h"
17
+ #endif
18
+
19
+ namespace skgpu::graphite {
20
+
21
+ class BackendTexture {
22
+ public:
23
+ BackendTexture() {}
24
+ #ifdef SK_METAL
25
+ // The BackendTexture will not call retain or release on the passed in MtlHandle. Thus the
26
+ // client must keep the MtlHandle valid until they are no longer using the BackendTexture.
27
+ BackendTexture(SkISize dimensions, MtlHandle mtlTexture);
28
+ #endif
29
+
30
+ BackendTexture(const BackendTexture&);
31
+
32
+ ~BackendTexture();
33
+
34
+ BackendTexture& operator=(const BackendTexture&);
35
+
36
+ bool operator==(const BackendTexture&) const;
37
+ bool operator!=(const BackendTexture& that) const { return !(*this == that); }
38
+
39
+ bool isValid() const { return fInfo.isValid(); }
40
+ BackendApi backend() const { return fInfo.backend(); }
41
+
42
+ SkISize dimensions() const { return fDimensions; }
43
+
44
+ const TextureInfo& info() const { return fInfo; }
45
+
46
+ #ifdef SK_METAL
47
+ MtlHandle getMtlTexture() const;
48
+ #endif
49
+
50
+ private:
51
+ SkISize fDimensions;
52
+ TextureInfo fInfo;
53
+
54
+ union {
55
+ #ifdef SK_METAL
56
+ MtlHandle fMtlTexture;
57
+ #endif
58
+ };
59
+ };
60
+
61
+ } // namespace skgpu::graphite
62
+
63
+ #endif // skgpu_graphite_BackendTexture_DEFINED
64
+
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Copyright 2021 Google LLC
3
+ *
4
+ * Use of this source code is governed by a BSD-style license that can be
5
+ * found in the LICENSE file.
6
+ */
7
+
8
+ #ifndef skgpu_graphite_Context_DEFINED
9
+ #define skgpu_graphite_Context_DEFINED
10
+
11
+ #include <vector>
12
+ #include "include/core/SkBlendMode.h"
13
+ #include "include/core/SkRefCnt.h"
14
+ #include "include/core/SkShader.h"
15
+ #include "include/core/SkTileMode.h"
16
+ #include "include/private/SkNoncopyable.h"
17
+
18
+ #include "include/gpu/graphite/GraphiteTypes.h"
19
+
20
+ namespace skgpu::graphite {
21
+
22
+ class BackendTexture;
23
+ class CommandBuffer;
24
+ class ContextPriv;
25
+ class GlobalCache;
26
+ class Gpu;
27
+ struct MtlBackendContext;
28
+ class Recorder;
29
+ class Recording;
30
+ class TextureInfo;
31
+
32
+ struct ShaderCombo {
33
+ enum class ShaderType {
34
+ kNone, // does not modify color buffer, e.g. depth and/or stencil only
35
+ kSolidColor,
36
+ kLinearGradient,
37
+ kRadialGradient,
38
+ kSweepGradient,
39
+ kConicalGradient
40
+ };
41
+
42
+ ShaderCombo() {}
43
+ ShaderCombo(std::vector<ShaderType> types,
44
+ std::vector<SkTileMode> tileModes)
45
+ : fTypes(std::move(types))
46
+ , fTileModes(std::move(tileModes)) {
47
+ }
48
+ std::vector<ShaderType> fTypes;
49
+ std::vector<SkTileMode> fTileModes;
50
+ };
51
+
52
+ struct PaintCombo {
53
+ std::vector<ShaderCombo> fShaders;
54
+ std::vector<SkBlendMode> fBlendModes;
55
+ };
56
+
57
+ class Context final {
58
+ public:
59
+ Context(const Context&) = delete;
60
+ Context(Context&&) = delete;
61
+ Context& operator=(const Context&) = delete;
62
+ Context& operator=(Context&&) = delete;
63
+
64
+ ~Context();
65
+
66
+ #ifdef SK_METAL
67
+ static std::unique_ptr<Context> MakeMetal(const skgpu::graphite::MtlBackendContext&);
68
+ #endif
69
+
70
+ BackendApi backend() const { return fBackend; }
71
+
72
+ std::unique_ptr<Recorder> makeRecorder();
73
+
74
+ void insertRecording(const InsertRecordingInfo&);
75
+ void submit(SyncToCpu = SyncToCpu::kNo);
76
+
77
+ /**
78
+ * Checks whether any asynchronous work is complete and if so calls related callbacks.
79
+ */
80
+ void checkAsyncWorkCompletion();
81
+
82
+ void preCompile(const PaintCombo&);
83
+
84
+ /**
85
+ * Creates a new backend gpu texture matching the dimensinos and TextureInfo. If an invalid
86
+ * TextureInfo or a TextureInfo Skia can't support is passed in, this will return an invalid
87
+ * BackendTexture. Thus the client should check isValid on the returned BackendTexture to know
88
+ * if it succeeded or not.
89
+ *
90
+ * If this does return a valid BackendTexture, the caller is required to use
91
+ * Context::deleteBackendTexture to delete that texture.
92
+ */
93
+ BackendTexture createBackendTexture(SkISize dimensions, const TextureInfo&);
94
+
95
+ /**
96
+ * Called to delete the passed in BackendTexture. This should only be called if the
97
+ * BackendTexture was created by calling Context::createBackendTexture. If the BackendTexture is
98
+ * not valid or does not match the BackendApi of the Context then nothing happens.
99
+ *
100
+ * Otherwise this will delete/release the backend object that is wrapped in the BackendTexture.
101
+ * The BackendTexture will be reset to an invalid state and should not be used again.
102
+ */
103
+ void deleteBackendTexture(BackendTexture&);
104
+
105
+ // Provides access to functions that aren't part of the public API.
106
+ ContextPriv priv();
107
+ const ContextPriv priv() const; // NOLINT(readability-const-return-type)
108
+
109
+ protected:
110
+ Context(sk_sp<Gpu>, BackendApi);
111
+
112
+ private:
113
+ friend class ContextPriv;
114
+
115
+ sk_sp<CommandBuffer> fCurrentCommandBuffer;
116
+
117
+ sk_sp<Gpu> fGpu;
118
+ sk_sp<GlobalCache> fGlobalCache;
119
+ BackendApi fBackend;
120
+ };
121
+
122
+ } // namespace skgpu::graphite
123
+
124
+ #endif // skgpu_graphite_Context_DEFINED
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Copyright 2021 Google LLC
3
+ *
4
+ * Use of this source code is governed by a BSD-style license that can be
5
+ * found in the LICENSE file.
6
+ */
7
+
8
+ #ifndef skgpu_graphite_GraphiteTypes_DEFINED
9
+ #define skgpu_graphite_GraphiteTypes_DEFINED
10
+
11
+ #include "include/core/SkTypes.h"
12
+ #include "include/gpu/GpuTypes.h"
13
+
14
+ #include <memory>
15
+
16
+ namespace skgpu::graphite {
17
+
18
+ class Recording;
19
+
20
+ using GpuFinishedContext = void*;
21
+ using GpuFinishedProc = void (*)(GpuFinishedContext finishedContext, CallbackResult);
22
+
23
+ /**
24
+ * The fFinishedProc is called when the Recording has been submitted and finished on the GPU, or
25
+ * when there is a failure that caused it not to be submitted. The callback will always be called
26
+ * and the caller can use the callback to know it is safe to free any resources associated with
27
+ * the Recording that they may be holding onto. If the Recording is successfully submitted to the
28
+ * GPU the callback will be called with CallbackResult::kSuccess once the GPU has finished. All
29
+ * other cases where some failure occured it will be called with CallbackResult::kFailed.
30
+ */
31
+ struct InsertRecordingInfo {
32
+ Recording* fRecording = nullptr;
33
+ GpuFinishedContext fFinishedContext = nullptr;
34
+ GpuFinishedProc fFinishedProc = nullptr;
35
+ };
36
+
37
+ /**
38
+ * Actually submit work to the GPU and track its completion
39
+ */
40
+ enum class SyncToCpu : bool {
41
+ kYes = true,
42
+ kNo = false
43
+ };
44
+
45
+ /**
46
+ * Possible 3D APIs that may be used by Graphite.
47
+ */
48
+ enum class BackendApi : unsigned {
49
+ kMetal,
50
+ kMock,
51
+ };
52
+
53
+ /**
54
+ * Is the texture mipmapped or not
55
+ */
56
+ enum class Mipmapped: bool {
57
+ kNo = false,
58
+ kYes = true,
59
+ };
60
+
61
+ /**
62
+ * Is the data protected on the GPU or not.
63
+ */
64
+ enum class Protected : bool {
65
+ kNo = false,
66
+ kYes = true,
67
+ };
68
+
69
+ } // namespace skgpu::graphite
70
+
71
+ #endif // skgpu_graphite_GraphiteTypes_DEFINED
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Copyright 2021 Google LLC
3
+ *
4
+ * Use of this source code is governed by a BSD-style license that can be
5
+ * found in the LICENSE file.
6
+ */
7
+
8
+ #ifndef skgpu_graphite_Recorder_DEFINED
9
+ #define skgpu_graphite_Recorder_DEFINED
10
+
11
+ #include "include/core/SkRefCnt.h"
12
+ #include "include/private/SingleOwner.h"
13
+
14
+ #include <vector>
15
+
16
+ class SkTextureDataBlock;
17
+ class SkUniformDataBlock;
18
+ class SkUniformDataBlockPassThrough; // TODO: remove
19
+
20
+ namespace skgpu::graphite {
21
+
22
+ class Caps;
23
+ class Device;
24
+ class DrawBufferManager;
25
+ class GlobalCache;
26
+ class Gpu;
27
+ class RecorderPriv;
28
+ class Recording;
29
+ class ResourceProvider;
30
+ class Task;
31
+ class TaskGraph;
32
+ class UploadBufferManager;
33
+
34
+ template<typename StorageT, typename BaseT> class PipelineDataCache;
35
+ using UniformDataCache = PipelineDataCache<SkUniformDataBlockPassThrough, SkUniformDataBlock>;
36
+ using TextureDataCache = PipelineDataCache<std::unique_ptr<SkTextureDataBlock>, SkTextureDataBlock>;
37
+
38
+ class Recorder final {
39
+ public:
40
+ Recorder(const Recorder&) = delete;
41
+ Recorder(Recorder&&) = delete;
42
+ Recorder& operator=(const Recorder&) = delete;
43
+ Recorder& operator=(Recorder&&) = delete;
44
+
45
+ ~Recorder();
46
+
47
+ std::unique_ptr<Recording> snap();
48
+
49
+ // Provides access to functions that aren't part of the public API.
50
+ RecorderPriv priv();
51
+ const RecorderPriv priv() const; // NOLINT(readability-const-return-type)
52
+
53
+ #if GR_TEST_UTILS
54
+ bool deviceIsRegistered(Device*);
55
+ #endif
56
+
57
+ private:
58
+ friend class Context; // For ctor
59
+ friend class Device; // For registering and deregistering Devices;
60
+ friend class RecorderPriv; // for ctor and hidden methods
61
+
62
+ Recorder(sk_sp<Gpu>, sk_sp<GlobalCache>);
63
+
64
+ SingleOwner* singleOwner() const { return &fSingleOwner; }
65
+
66
+ // We keep track of all Devices that are connected to a Recorder. This allows the client to
67
+ // safely delete an SkSurface or a Recorder in any order. If the client deletes the Recorder
68
+ // we need to notify all Devices that the Recorder is no longer valid. If we delete the
69
+ // SkSurface/Device first we will flush all the Device's into the Recorder before deregistering
70
+ // it from the Recorder.
71
+ //
72
+ // We do not need to take a ref on the Device since the Device will flush and deregister itself
73
+ // in its dtor. There is no other need for the Recorder to know about the Device after this
74
+ // point.
75
+ //
76
+ // Note: We could probably get by with only registering Devices directly connected to
77
+ // SkSurfaces. All other one off Devices will be created in a controlled scope where the
78
+ // Recorder should still be valid by the time they need to flush their work when the Device is
79
+ // deleted. We would have to make sure we safely handle cases where a client calls saveLayer
80
+ // then either deletes the SkSurface or Recorder before calling restore. For simplicity we just
81
+ // register every device for now, but if we see extra overhead in pushing back the extra
82
+ // pointers, we can look into only registering SkSurface Devices.
83
+ void registerDevice(Device*);
84
+ void deregisterDevice(const Device*);
85
+
86
+ sk_sp<Gpu> fGpu;
87
+ std::unique_ptr<ResourceProvider> fResourceProvider;
88
+
89
+ std::unique_ptr<TaskGraph> fGraph;
90
+ std::unique_ptr<UniformDataCache> fUniformDataCache;
91
+ std::unique_ptr<TextureDataCache> fTextureDataCache;
92
+ std::unique_ptr<DrawBufferManager> fDrawBufferManager;
93
+ std::unique_ptr<UploadBufferManager> fUploadBufferManager;
94
+ std::vector<Device*> fTrackedDevices;
95
+
96
+ // In debug builds we guard against improper thread handling
97
+ // This guard is passed to the ResourceCache.
98
+ // TODO: Should we also pass this to Device, DrawContext, and similar classes?
99
+ mutable SingleOwner fSingleOwner;
100
+ };
101
+
102
+ } // namespace skgpu::graphite
103
+
104
+ #endif // skgpu_graphite_Recorder_DEFINED
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright 2021 Google LLC
3
+ *
4
+ * Use of this source code is governed by a BSD-style license that can be
5
+ * found in the LICENSE file.
6
+ */
7
+
8
+ #ifndef skgpu_graphite_Recording_DEFINED
9
+ #define skgpu_graphite_Recording_DEFINED
10
+
11
+ #include "include/core/SkRefCnt.h"
12
+
13
+ class SkTextureDataBlock;
14
+
15
+ namespace skgpu::graphite {
16
+
17
+ class CommandBuffer;
18
+ template<typename StorageT, typename BaseT> class PipelineDataCache;
19
+ using TextureDataCache = PipelineDataCache<std::unique_ptr<SkTextureDataBlock>, SkTextureDataBlock>;
20
+
21
+ class Recording final {
22
+ public:
23
+ ~Recording();
24
+
25
+ protected:
26
+ private:
27
+ friend class Context; // for access fCommandBuffer
28
+ friend class Recorder; // for ctor
29
+ Recording(sk_sp<CommandBuffer>, std::unique_ptr<TextureDataCache>);
30
+
31
+ sk_sp<CommandBuffer> fCommandBuffer;
32
+
33
+ // The TextureDataCache holds all the Textures and Samplers used in this Recording.
34
+ std::unique_ptr<TextureDataCache> fTextureDataCache;
35
+ };
36
+
37
+ } // namespace skgpu::graphite
38
+
39
+ #endif // skgpu_graphite_Recording_DEFINED
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright 2021 Google LLC
3
+ *
4
+ * Use of this source code is governed by a BSD-style license that can be
5
+ * found in the LICENSE file.
6
+ */
7
+
8
+ #ifndef SkStuff_DEFINED
9
+ #define SkStuff_DEFINED
10
+
11
+ #include "include/core/SkImageInfo.h"
12
+ #include "include/core/SkRefCnt.h"
13
+
14
+ class SkColorSpace;
15
+ class SkSurface;
16
+ class SkSurfaceProps;
17
+
18
+ namespace skgpu::graphite {
19
+ class BackendTexture;
20
+ class Recorder;
21
+ }
22
+
23
+ // TODO: Should be in SkSurface.h
24
+ sk_sp<SkSurface> MakeGraphite(skgpu::graphite::Recorder*, const SkImageInfo&);
25
+
26
+ /**
27
+ * Wraps a GPU-backed texture into SkSurface. Depending on the backend gpu API, the caller may be
28
+ * required to ensure the texture is valid for the lifetime of returned SkSurface. The required
29
+ * lifetimes for the specific apis are:
30
+ * Metal: Skia will call retain on the underlying MTLTexture so the caller can drop it once this
31
+ * call returns.
32
+ *
33
+ * SkSurface is returned if all parameters are valid. BackendTexture is valid if its format agrees
34
+ * with colorSpace and context; for instance, if backendTexture has an sRGB configuration, then
35
+ * context must support sRGB, and colorSpace must be present. Further, backendTexture width and
36
+ * height must not exceed context capabilities, and the context must be able to support back-end
37
+ * textures.
38
+ *
39
+ * If SK_ENABLE_GRAPHITE is not defined, this has no effect and returns nullptr.
40
+ */
41
+ sk_sp<SkSurface> MakeGraphiteFromBackendTexture(skgpu::graphite::Recorder*,
42
+ const skgpu::graphite::BackendTexture&,
43
+ SkColorType colorType,
44
+ sk_sp<SkColorSpace> colorSpace,
45
+ const SkSurfaceProps* props);
46
+
47
+ #endif // SkStuff_DEFINED