react-native-skia 0.0.1 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3395) hide show
  1. package/LICENSE.md +8 -0
  2. package/Package.swift +117 -0
  3. package/README.md +5 -10
  4. package/android/CMakeLists.txt +218 -0
  5. package/android/README.md +14 -0
  6. package/android/build.gradle +261 -0
  7. package/android/cpp/jni/JniLoad.cpp +15 -0
  8. package/android/cpp/jni/JniPlatformContext.cpp +238 -0
  9. package/android/cpp/jni/JniSkiaManager.cpp +43 -0
  10. package/android/cpp/jni/include/JniPlatformContext.h +63 -0
  11. package/android/cpp/jni/include/JniSkiaBaseView.h +87 -0
  12. package/android/cpp/jni/include/JniSkiaGraphiteView.h +176 -0
  13. package/android/cpp/jni/include/JniSkiaManager.h +73 -0
  14. package/android/cpp/jni/include/JniSkiaPictureView.h +183 -0
  15. package/android/cpp/rnskia-android/AHardwareBufferUtils.cpp +31 -0
  16. package/android/cpp/rnskia-android/AHardwareBufferUtils.h +13 -0
  17. package/android/cpp/rnskia-android/GrAHardwareBufferUtils.cpp +245 -0
  18. package/android/cpp/rnskia-android/GrAHardwareBufferUtils.h +33 -0
  19. package/android/cpp/rnskia-android/OpenGLContext.h +248 -0
  20. package/android/cpp/rnskia-android/OpenGLWindowContext.cpp +67 -0
  21. package/android/cpp/rnskia-android/OpenGLWindowContext.h +75 -0
  22. package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +289 -0
  23. package/android/cpp/rnskia-android/RNSkAndroidVideo.cpp +208 -0
  24. package/android/cpp/rnskia-android/RNSkAndroidVideo.h +44 -0
  25. package/android/cpp/rnskia-android/RNSkAndroidView.h +67 -0
  26. package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.cpp +239 -0
  27. package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.h +79 -0
  28. package/android/cpp/rnskia-android/gl/Context.h +80 -0
  29. package/android/cpp/rnskia-android/gl/Display.h +123 -0
  30. package/android/cpp/rnskia-android/gl/Error.cpp +45 -0
  31. package/android/cpp/rnskia-android/gl/Error.h +8 -0
  32. package/android/cpp/rnskia-android/gl/Surface.h +43 -0
  33. package/android/src/main/AndroidManifest.xml +6 -0
  34. package/android/src/main/java/com/reactnative/skia/PlatformContext.java +131 -0
  35. package/android/src/main/java/com/reactnative/skia/RNSkVideo.java +320 -0
  36. package/android/src/main/java/com/reactnative/skia/RNSkiaModule.java +67 -0
  37. package/android/src/main/java/com/reactnative/skia/RNSkiaPackage.java +58 -0
  38. package/android/src/main/java/com/reactnative/skia/SkiaBaseView.java +185 -0
  39. package/android/src/main/java/com/reactnative/skia/SkiaBaseViewManager.java +65 -0
  40. package/android/src/main/java/com/reactnative/skia/SkiaGraphiteView.java +78 -0
  41. package/android/src/main/java/com/reactnative/skia/SkiaGraphiteViewManager.java +32 -0
  42. package/android/src/main/java/com/reactnative/skia/SkiaManager.java +58 -0
  43. package/android/src/main/java/com/reactnative/skia/SkiaPictureView.java +105 -0
  44. package/android/src/main/java/com/reactnative/skia/SkiaPictureViewManager.java +44 -0
  45. package/android/src/main/java/com/reactnative/skia/SkiaSurfaceView.java +52 -0
  46. package/android/src/main/java/com/reactnative/skia/SkiaTextureView.java +63 -0
  47. package/android/src/main/java/com/reactnative/skia/SkiaViewAPI.java +16 -0
  48. package/android/src/main/java/com/reactnative/skia/ViewScreenshotService.java +205 -0
  49. package/apple/MetalContext.h +116 -0
  50. package/apple/MetalContext.mm +38 -0
  51. package/apple/MetalLayerColorSpace.mm +39 -0
  52. package/apple/MetalLayerColorSpaceUtils.h +34 -0
  53. package/apple/MetalWindowContext.h +42 -0
  54. package/apple/MetalWindowContext.mm +95 -0
  55. package/apple/RNSkApplePlatformContext.h +85 -0
  56. package/apple/RNSkApplePlatformContext.mm +451 -0
  57. package/apple/RNSkAppleVideo.h +78 -0
  58. package/apple/RNSkAppleVideo.mm +292 -0
  59. package/apple/RNSkAppleView.h +49 -0
  60. package/apple/RNSkAppleView.mm +35 -0
  61. package/apple/RNSkMetalCanvasProvider.h +60 -0
  62. package/apple/RNSkMetalCanvasProvider.mm +158 -0
  63. package/apple/RNSkUIKit.h +13 -0
  64. package/apple/RNSkiaModule.h +19 -0
  65. package/apple/RNSkiaModule.mm +80 -0
  66. package/apple/SkiaCVPixelBufferUtils.h +122 -0
  67. package/apple/SkiaCVPixelBufferUtils.mm +535 -0
  68. package/apple/SkiaGraphiteView.h +26 -0
  69. package/apple/SkiaGraphiteView.mm +180 -0
  70. package/apple/SkiaPictureView.h +7 -0
  71. package/apple/SkiaPictureView.mm +70 -0
  72. package/apple/SkiaUIView.h +31 -0
  73. package/apple/SkiaUIView.mm +164 -0
  74. package/apple/ViewScreenshotService.h +25 -0
  75. package/apple/ViewScreenshotService.mm +96 -0
  76. package/cpp/api/CustomBlendModes.h +114 -0
  77. package/cpp/api/JsiNativeBuffer.h +56 -0
  78. package/cpp/api/JsiSkAnimatedImage.h +137 -0
  79. package/cpp/api/JsiSkAnimatedImageFactory.h +47 -0
  80. package/cpp/api/JsiSkApi.h +334 -0
  81. package/cpp/api/JsiSkCanvas.h +631 -0
  82. package/cpp/api/JsiSkColor.h +143 -0
  83. package/cpp/api/JsiSkColorFilter.h +41 -0
  84. package/cpp/api/JsiSkColorFilterFactory.h +95 -0
  85. package/cpp/api/JsiSkContourMeasure.h +75 -0
  86. package/cpp/api/JsiSkContourMeasureIter.h +75 -0
  87. package/cpp/api/JsiSkConverters.h +410 -0
  88. package/cpp/api/JsiSkData.h +43 -0
  89. package/cpp/api/JsiSkDataFactory.h +101 -0
  90. package/cpp/api/JsiSkDispatcher.cpp +9 -0
  91. package/cpp/api/JsiSkDispatcher.h +149 -0
  92. package/cpp/api/JsiSkFont.h +249 -0
  93. package/cpp/api/JsiSkFontMgr.h +91 -0
  94. package/cpp/api/JsiSkFontMgrFactory.h +51 -0
  95. package/cpp/api/JsiSkFontStyle.h +79 -0
  96. package/cpp/api/JsiSkGraphiteContext.h +82 -0
  97. package/cpp/api/JsiSkGraphiteRecording.h +44 -0
  98. package/cpp/api/JsiSkImage.h +438 -0
  99. package/cpp/api/JsiSkImageFactory.h +199 -0
  100. package/cpp/api/JsiSkImageFilter.h +48 -0
  101. package/cpp/api/JsiSkImageFilterFactory.h +448 -0
  102. package/cpp/api/JsiSkImageInfo.h +86 -0
  103. package/cpp/api/JsiSkMaskFilter.h +46 -0
  104. package/cpp/api/JsiSkMaskFilterFactory.h +47 -0
  105. package/cpp/api/JsiSkMatrix.h +156 -0
  106. package/cpp/api/JsiSkNativeObjects.h +387 -0
  107. package/cpp/api/JsiSkPaint.h +199 -0
  108. package/cpp/api/JsiSkParagraph.h +289 -0
  109. package/cpp/api/JsiSkParagraphBuilder.h +123 -0
  110. package/cpp/api/JsiSkParagraphBuilderFactory.h +57 -0
  111. package/cpp/api/JsiSkParagraphStyle.h +138 -0
  112. package/cpp/api/JsiSkPath.h +258 -0
  113. package/cpp/api/JsiSkPathBuilder.h +302 -0
  114. package/cpp/api/JsiSkPathBuilderFactory.h +52 -0
  115. package/cpp/api/JsiSkPathEffect.h +46 -0
  116. package/cpp/api/JsiSkPathEffectFactory.h +119 -0
  117. package/cpp/api/JsiSkPathFactory.h +364 -0
  118. package/cpp/api/JsiSkPicture.h +119 -0
  119. package/cpp/api/JsiSkPictureFactory.h +81 -0
  120. package/cpp/api/JsiSkPictureRecorder.h +72 -0
  121. package/cpp/api/JsiSkPoint.h +89 -0
  122. package/cpp/api/JsiSkRRect.h +130 -0
  123. package/cpp/api/JsiSkRSXform.h +124 -0
  124. package/cpp/api/JsiSkRect.h +122 -0
  125. package/cpp/api/JsiSkRuntimeEffect.h +226 -0
  126. package/cpp/api/JsiSkRuntimeEffectFactory.h +44 -0
  127. package/cpp/api/JsiSkRuntimeShaderBuilder.h +91 -0
  128. package/cpp/api/JsiSkSVG.h +79 -0
  129. package/cpp/api/JsiSkSVGFactory.h +175 -0
  130. package/cpp/api/JsiSkShader.h +45 -0
  131. package/cpp/api/JsiSkShaderFactory.h +218 -0
  132. package/cpp/api/JsiSkSkottie.h +610 -0
  133. package/cpp/api/JsiSkStrutStyle.h +113 -0
  134. package/cpp/api/JsiSkSurface.h +207 -0
  135. package/cpp/api/JsiSkSurfaceFactory.h +115 -0
  136. package/cpp/api/JsiSkTextBlob.h +52 -0
  137. package/cpp/api/JsiSkTextBlobFactory.h +94 -0
  138. package/cpp/api/JsiSkTextStyle.h +199 -0
  139. package/cpp/api/JsiSkTypeface.h +89 -0
  140. package/cpp/api/JsiSkTypefaceFactory.h +44 -0
  141. package/cpp/api/JsiSkTypefaceFontProvider.h +105 -0
  142. package/cpp/api/JsiSkTypefaceFontProviderFactory.h +40 -0
  143. package/cpp/api/JsiSkVertices.h +169 -0
  144. package/cpp/api/JsiSkottieFactory.h +69 -0
  145. package/cpp/api/JsiTextureInfo.h +53 -0
  146. package/cpp/api/JsiVideo.h +101 -0
  147. package/cpp/api/recorder/ColorFilters.h +133 -0
  148. package/cpp/api/recorder/Command.h +71 -0
  149. package/cpp/api/recorder/Convertor.h +1439 -0
  150. package/cpp/api/recorder/DataTypes.h +224 -0
  151. package/cpp/api/recorder/DrawingCtx.h +219 -0
  152. package/cpp/api/recorder/Drawings.h +984 -0
  153. package/cpp/api/recorder/ImageFilters.h +326 -0
  154. package/cpp/api/recorder/ImageFit.h +111 -0
  155. package/cpp/api/recorder/JsiRecorder.h +379 -0
  156. package/cpp/api/recorder/Paint.h +206 -0
  157. package/cpp/api/recorder/PathEffects.h +195 -0
  158. package/cpp/api/recorder/RNRecorder.h +764 -0
  159. package/cpp/api/recorder/Shaders.h +492 -0
  160. package/cpp/api/third_party/CSSColorParser.cpp +181 -0
  161. package/cpp/api/third_party/CSSColorParser.h +210 -0
  162. package/cpp/api/third_party/SkottieUtils.cpp +333 -0
  163. package/cpp/api/third_party/SkottieUtils.h +173 -0
  164. package/cpp/api/third_party/base64.cpp +153 -0
  165. package/cpp/api/third_party/base64.h +50 -0
  166. package/cpp/jsi/BoxedNativeObject.h +146 -0
  167. package/cpp/jsi/EnumMapper.h +63 -0
  168. package/cpp/jsi/JSICache.cpp +122 -0
  169. package/cpp/jsi/JSICache.h +117 -0
  170. package/cpp/jsi/JSIConverter.h +498 -0
  171. package/cpp/jsi/JsiPromises.cpp +39 -0
  172. package/cpp/jsi/JsiPromises.h +50 -0
  173. package/cpp/jsi/NativeObject.h +599 -0
  174. package/cpp/jsi/Promise.cpp +48 -0
  175. package/cpp/jsi/Promise.h +37 -0
  176. package/cpp/jsi/ViewProperty.cpp +23 -0
  177. package/cpp/jsi/ViewProperty.h +52 -0
  178. package/cpp/rnskia/RNDawnContext.h +497 -0
  179. package/cpp/rnskia/RNDawnInterop.cpp +19 -0
  180. package/cpp/rnskia/RNDawnUtils.h +300 -0
  181. package/cpp/rnskia/RNDawnWindowContext.cpp +45 -0
  182. package/cpp/rnskia/RNDawnWindowContext.h +167 -0
  183. package/cpp/rnskia/RNImageProvider.h +100 -0
  184. package/cpp/rnskia/RNMetalLayerColorSpace.h +16 -0
  185. package/cpp/rnskia/RNSkGraphiteView.h +603 -0
  186. package/cpp/rnskia/RNSkJsiViewApi.h +475 -0
  187. package/cpp/rnskia/RNSkManager.cpp +62 -0
  188. package/cpp/rnskia/RNSkManager.h +77 -0
  189. package/cpp/rnskia/RNSkPictureView.cpp +58 -0
  190. package/cpp/rnskia/RNSkPictureView.h +198 -0
  191. package/cpp/rnskia/RNSkPlatformContext.h +204 -0
  192. package/cpp/rnskia/RNSkVideo.h +31 -0
  193. package/cpp/rnskia/RNSkView.h +318 -0
  194. package/cpp/rnskia/RNWindowContext.h +25 -0
  195. package/cpp/skia/include/android/AHardwareBufferUtils.h +26 -0
  196. package/cpp/skia/include/android/GrAHardwareBufferUtils.h +97 -0
  197. package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +83 -0
  198. package/cpp/skia/include/android/SkAnimatedImage.h +193 -0
  199. package/cpp/skia/include/android/SkCanvasAndroid.h +20 -0
  200. package/cpp/skia/include/android/SkImageAndroid.h +100 -0
  201. package/cpp/skia/include/android/SkSurfaceAndroid.h +50 -0
  202. package/cpp/skia/include/android/graphite/SurfaceAndroid.h +59 -0
  203. package/cpp/skia/include/android/vk/AndroidVulkanMemoryAllocator.h +31 -0
  204. package/cpp/skia/include/codec/SkAndroidCodec.h +302 -0
  205. package/cpp/skia/include/codec/SkAvifDecoder.h +80 -0
  206. package/cpp/skia/include/codec/SkBmpDecoder.h +44 -0
  207. package/cpp/skia/include/codec/SkBmpRustDecoder.h +42 -0
  208. package/cpp/skia/include/codec/SkCodec.h +1178 -0
  209. package/cpp/skia/include/codec/SkCodecAnimation.h +61 -0
  210. package/cpp/skia/include/codec/SkEncodedImageFormat.h +33 -0
  211. package/cpp/skia/include/codec/SkEncodedOrigin.h +71 -0
  212. package/cpp/skia/include/codec/SkGifDecoder.h +44 -0
  213. package/cpp/skia/include/codec/SkIcoDecoder.h +44 -0
  214. package/cpp/skia/include/codec/SkJpegDecoder.h +51 -0
  215. package/cpp/skia/include/codec/SkJpegxlDecoder.h +44 -0
  216. package/cpp/skia/include/codec/SkPixmapUtils.h +31 -0
  217. package/cpp/skia/include/codec/SkPngChunkReader.h +45 -0
  218. package/cpp/skia/include/codec/SkPngDecoder.h +51 -0
  219. package/cpp/skia/include/codec/SkPngRustDecoder.h +30 -0
  220. package/cpp/skia/include/codec/SkRawDecoder.h +50 -0
  221. package/cpp/skia/include/codec/SkWbmpDecoder.h +44 -0
  222. package/cpp/skia/include/codec/SkWebpDecoder.h +51 -0
  223. package/cpp/skia/include/config/SkUserConfig.h +141 -0
  224. package/cpp/skia/include/core/RasterContext.h +25 -0
  225. package/cpp/skia/include/core/SkAlphaType.h +45 -0
  226. package/cpp/skia/include/core/SkAnnotation.h +52 -0
  227. package/cpp/skia/include/core/SkArc.h +69 -0
  228. package/cpp/skia/include/core/SkBBHFactory.h +67 -0
  229. package/cpp/skia/include/core/SkBitmap.h +1264 -0
  230. package/cpp/skia/include/core/SkBlendMode.h +112 -0
  231. package/cpp/skia/include/core/SkBlender.h +30 -0
  232. package/cpp/skia/include/core/SkBlurTypes.h +20 -0
  233. package/cpp/skia/include/core/SkCPUContext.h +31 -0
  234. package/cpp/skia/include/core/SkCPURecorder.h +76 -0
  235. package/cpp/skia/include/core/SkCanvas.h +2769 -0
  236. package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +61 -0
  237. package/cpp/skia/include/core/SkCapabilities.h +35 -0
  238. package/cpp/skia/include/core/SkClipOp.h +19 -0
  239. package/cpp/skia/include/core/SkColor.h +469 -0
  240. package/cpp/skia/include/core/SkColorFilter.h +150 -0
  241. package/cpp/skia/include/core/SkColorSpace.h +432 -0
  242. package/cpp/skia/include/core/SkColorTable.h +62 -0
  243. package/cpp/skia/include/core/SkColorType.h +159 -0
  244. package/cpp/skia/include/core/SkContext.h +62 -0
  245. package/cpp/skia/include/core/SkContextOptions.h +15 -0
  246. package/cpp/skia/include/core/SkContourMeasure.h +215 -0
  247. package/cpp/skia/include/core/SkCoverageMode.h +28 -0
  248. package/cpp/skia/include/core/SkCubicMap.h +47 -0
  249. package/cpp/skia/include/core/SkData.h +225 -0
  250. package/cpp/skia/include/core/SkDataTable.h +122 -0
  251. package/cpp/skia/include/core/SkDocument.h +93 -0
  252. package/cpp/skia/include/core/SkDrawable.h +178 -0
  253. package/cpp/skia/include/core/SkExecutor.h +59 -0
  254. package/cpp/skia/include/core/SkFlattenable.h +115 -0
  255. package/cpp/skia/include/core/SkFont.h +536 -0
  256. package/cpp/skia/include/core/SkFontArguments.h +116 -0
  257. package/cpp/skia/include/core/SkFontMetrics.h +139 -0
  258. package/cpp/skia/include/core/SkFontMgr.h +178 -0
  259. package/cpp/skia/include/core/SkFontParameters.h +43 -0
  260. package/cpp/skia/include/core/SkFontScanner.h +45 -0
  261. package/cpp/skia/include/core/SkFontStyle.h +84 -0
  262. package/cpp/skia/include/core/SkFontTypes.h +25 -0
  263. package/cpp/skia/include/core/SkFourByteTag.h +19 -0
  264. package/cpp/skia/include/core/SkGraphics.h +169 -0
  265. package/cpp/skia/include/core/SkImage.h +918 -0
  266. package/cpp/skia/include/core/SkImageFilter.h +119 -0
  267. package/cpp/skia/include/core/SkImageGenerator.h +140 -0
  268. package/cpp/skia/include/core/SkImageInfo.h +634 -0
  269. package/cpp/skia/include/core/SkM44.h +442 -0
  270. package/cpp/skia/include/core/SkMallocPixelRef.h +45 -0
  271. package/cpp/skia/include/core/SkMaskFilter.h +45 -0
  272. package/cpp/skia/include/core/SkMatrix.h +1887 -0
  273. package/cpp/skia/include/core/SkMesh.h +429 -0
  274. package/cpp/skia/include/core/SkMilestone.h +9 -0
  275. package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +30 -0
  276. package/cpp/skia/include/core/SkOverdrawCanvas.h +94 -0
  277. package/cpp/skia/include/core/SkPaint.h +698 -0
  278. package/cpp/skia/include/core/SkPath.h +1145 -0
  279. package/cpp/skia/include/core/SkPathBuilder.h +1052 -0
  280. package/cpp/skia/include/core/SkPathEffect.h +88 -0
  281. package/cpp/skia/include/core/SkPathIter.h +90 -0
  282. package/cpp/skia/include/core/SkPathMeasure.h +96 -0
  283. package/cpp/skia/include/core/SkPathTypes.h +71 -0
  284. package/cpp/skia/include/core/SkPathUtils.h +39 -0
  285. package/cpp/skia/include/core/SkPicture.h +309 -0
  286. package/cpp/skia/include/core/SkPictureRecorder.h +115 -0
  287. package/cpp/skia/include/core/SkPixelRef.h +120 -0
  288. package/cpp/skia/include/core/SkPixmap.h +736 -0
  289. package/cpp/skia/include/core/SkPoint.h +560 -0
  290. package/cpp/skia/include/core/SkPoint3.h +149 -0
  291. package/cpp/skia/include/core/SkRRect.h +548 -0
  292. package/cpp/skia/include/core/SkRSXform.h +71 -0
  293. package/cpp/skia/include/core/SkRasterHandleAllocator.h +94 -0
  294. package/cpp/skia/include/core/SkRecorder.h +57 -0
  295. package/cpp/skia/include/core/SkRect.h +1419 -0
  296. package/cpp/skia/include/core/SkRefCnt.h +391 -0
  297. package/cpp/skia/include/core/SkRegion.h +701 -0
  298. package/cpp/skia/include/core/SkSamplingOptions.h +107 -0
  299. package/cpp/skia/include/core/SkScalar.h +148 -0
  300. package/cpp/skia/include/core/SkSerialProcs.h +123 -0
  301. package/cpp/skia/include/core/SkShader.h +123 -0
  302. package/cpp/skia/include/core/SkSize.h +93 -0
  303. package/cpp/skia/include/core/SkSpan.h +174 -0
  304. package/cpp/skia/include/core/SkStream.h +524 -0
  305. package/cpp/skia/include/core/SkStrikeRef.h +96 -0
  306. package/cpp/skia/include/core/SkString.h +297 -0
  307. package/cpp/skia/include/core/SkStrokeRec.h +160 -0
  308. package/cpp/skia/include/core/SkSurface.h +689 -0
  309. package/cpp/skia/include/core/SkSurfaceProps.h +122 -0
  310. package/cpp/skia/include/core/SkSwizzle.h +21 -0
  311. package/cpp/skia/include/core/SkTextBlob.h +541 -0
  312. package/cpp/skia/include/core/SkTextureCompressionType.h +30 -0
  313. package/cpp/skia/include/core/SkTileMode.h +41 -0
  314. package/cpp/skia/include/core/SkTiledImageUtils.h +125 -0
  315. package/cpp/skia/include/core/SkTraceMemoryDump.h +121 -0
  316. package/cpp/skia/include/core/SkTypeface.h +468 -0
  317. package/cpp/skia/include/core/SkTypes.h +193 -0
  318. package/cpp/skia/include/core/SkUnPreMultiply.h +55 -0
  319. package/cpp/skia/include/core/SkVertices.h +136 -0
  320. package/cpp/skia/include/core/SkYUVAInfo.h +311 -0
  321. package/cpp/skia/include/core/SkYUVAPixmaps.h +335 -0
  322. package/cpp/skia/include/docs/SkMultiPictureDocument.h +53 -0
  323. package/cpp/skia/include/docs/SkPDFDocument.h +277 -0
  324. package/cpp/skia/include/docs/SkPDFJpegHelpers.h +41 -0
  325. package/cpp/skia/include/docs/SkXPSDocument.h +43 -0
  326. package/cpp/skia/include/effects/Sk1DPathEffect.h +40 -0
  327. package/cpp/skia/include/effects/Sk2DPathEffect.h +33 -0
  328. package/cpp/skia/include/effects/SkBlenders.h +27 -0
  329. package/cpp/skia/include/effects/SkBlurMaskFilter.h +35 -0
  330. package/cpp/skia/include/effects/SkColorMatrix.h +57 -0
  331. package/cpp/skia/include/effects/SkColorMatrixFilter.h +22 -0
  332. package/cpp/skia/include/effects/SkCornerPathEffect.h +32 -0
  333. package/cpp/skia/include/effects/SkDashPathEffect.h +43 -0
  334. package/cpp/skia/include/effects/SkDiscretePathEffect.h +37 -0
  335. package/cpp/skia/include/effects/SkGradient.h +206 -0
  336. package/cpp/skia/include/effects/SkHighContrastFilter.h +84 -0
  337. package/cpp/skia/include/effects/SkImageFilters.h +654 -0
  338. package/cpp/skia/include/effects/SkLumaColorFilter.h +37 -0
  339. package/cpp/skia/include/effects/SkOverdrawColorFilter.h +33 -0
  340. package/cpp/skia/include/effects/SkPerlinNoiseShader.h +53 -0
  341. package/cpp/skia/include/effects/SkRuntimeEffect.h +503 -0
  342. package/cpp/skia/include/effects/SkShaderMaskFilter.h +28 -0
  343. package/cpp/skia/include/effects/SkTableMaskFilter.h +47 -0
  344. package/cpp/skia/include/effects/SkTrimPathEffect.h +45 -0
  345. package/cpp/skia/include/encode/SkEncoder.h +63 -0
  346. package/cpp/skia/include/encode/SkICC.h +36 -0
  347. package/cpp/skia/include/encode/SkJpegEncoder.h +127 -0
  348. package/cpp/skia/include/encode/SkPngEncoder.h +132 -0
  349. package/cpp/skia/include/encode/SkPngRustEncoder.h +121 -0
  350. package/cpp/skia/include/encode/SkWebpEncoder.h +87 -0
  351. package/cpp/skia/include/gpu/GpuTypes.h +98 -0
  352. package/cpp/skia/include/gpu/MutableTextureState.h +68 -0
  353. package/cpp/skia/include/gpu/ShaderErrorHandler.h +46 -0
  354. package/cpp/skia/include/gpu/ganesh/GrBackendSemaphore.h +50 -0
  355. package/cpp/skia/include/gpu/ganesh/GrBackendSurface.h +257 -0
  356. package/cpp/skia/include/gpu/ganesh/GrContextOptions.h +384 -0
  357. package/cpp/skia/include/gpu/ganesh/GrContextThreadSafeProxy.h +175 -0
  358. package/cpp/skia/include/gpu/ganesh/GrDirectContext.h +1053 -0
  359. package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkarounds.h +53 -0
  360. package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkaroundsAutogen.h +49 -0
  361. package/cpp/skia/include/gpu/ganesh/GrExternalTextureGenerator.h +54 -0
  362. package/cpp/skia/include/gpu/ganesh/GrRecordingContext.h +300 -0
  363. package/cpp/skia/include/gpu/ganesh/GrTypes.h +193 -0
  364. package/cpp/skia/include/gpu/ganesh/GrYUVABackendTextures.h +130 -0
  365. package/cpp/skia/include/gpu/ganesh/SkImageGanesh.h +361 -0
  366. package/cpp/skia/include/gpu/ganesh/SkMeshGanesh.h +57 -0
  367. package/cpp/skia/include/gpu/ganesh/SkSurfaceGanesh.h +221 -0
  368. package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendContext.h +35 -0
  369. package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendSemaphore.h +20 -0
  370. package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendSurface.h +59 -0
  371. package/cpp/skia/include/gpu/ganesh/d3d/GrD3DDirectContext.h +40 -0
  372. package/cpp/skia/include/gpu/ganesh/d3d/GrD3DTypes.h +248 -0
  373. package/cpp/skia/include/gpu/ganesh/gl/GrGLAssembleHelpers.h +17 -0
  374. package/cpp/skia/include/gpu/ganesh/gl/GrGLAssembleInterface.h +45 -0
  375. package/cpp/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h +64 -0
  376. package/cpp/skia/include/gpu/ganesh/gl/GrGLConfig.h +69 -0
  377. package/cpp/skia/include/gpu/ganesh/gl/GrGLDirectContext.h +41 -0
  378. package/cpp/skia/include/gpu/ganesh/gl/GrGLExtensions.h +79 -0
  379. package/cpp/skia/include/gpu/ganesh/gl/GrGLFunctions.h +313 -0
  380. package/cpp/skia/include/gpu/ganesh/gl/GrGLInterface.h +337 -0
  381. package/cpp/skia/include/gpu/ganesh/gl/GrGLMakeWebGLInterface.h +19 -0
  382. package/cpp/skia/include/gpu/ganesh/gl/GrGLTypes.h +219 -0
  383. package/cpp/skia/include/gpu/ganesh/gl/egl/GrGLMakeEGLInterface.h +23 -0
  384. package/cpp/skia/include/gpu/ganesh/gl/epoxy/GrGLMakeEpoxyEGLInterface.h +20 -0
  385. package/cpp/skia/include/gpu/ganesh/gl/glx/GrGLMakeGLXInterface.h +23 -0
  386. package/cpp/skia/include/gpu/ganesh/gl/ios/GrGLMakeIOSInterface.h +20 -0
  387. package/cpp/skia/include/gpu/ganesh/gl/mac/GrGLMakeMacInterface.h +20 -0
  388. package/cpp/skia/include/gpu/ganesh/gl/win/GrGLMakeWinInterface.h +20 -0
  389. package/cpp/skia/include/gpu/ganesh/mock/GrMockBackendSurface.h +59 -0
  390. package/cpp/skia/include/gpu/ganesh/mock/GrMockTypes.h +166 -0
  391. package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendContext.h +21 -0
  392. package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSemaphore.h +23 -0
  393. package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSurface.h +44 -0
  394. package/cpp/skia/include/gpu/ganesh/mtl/GrMtlDirectContext.h +41 -0
  395. package/cpp/skia/include/gpu/ganesh/mtl/GrMtlTypes.h +61 -0
  396. package/cpp/skia/include/gpu/ganesh/mtl/SkSurfaceMetal.h +73 -0
  397. package/cpp/skia/include/gpu/ganesh/vk/GrBackendDrawableInfo.h +44 -0
  398. package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSemaphore.h +20 -0
  399. package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSurface.h +71 -0
  400. package/cpp/skia/include/gpu/ganesh/vk/GrVkDirectContext.h +46 -0
  401. package/cpp/skia/include/gpu/ganesh/vk/GrVkTypes.h +101 -0
  402. package/cpp/skia/include/gpu/graphite/BackendSemaphore.h +60 -0
  403. package/cpp/skia/include/gpu/graphite/BackendTexture.h +65 -0
  404. package/cpp/skia/include/gpu/graphite/Context.h +440 -0
  405. package/cpp/skia/include/gpu/graphite/ContextOptions.h +245 -0
  406. package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +316 -0
  407. package/cpp/skia/include/gpu/graphite/Image.h +428 -0
  408. package/cpp/skia/include/gpu/graphite/ImageProvider.h +68 -0
  409. package/cpp/skia/include/gpu/graphite/PersistentPipelineStorage.h +45 -0
  410. package/cpp/skia/include/gpu/graphite/PrecompileContext.h +117 -0
  411. package/cpp/skia/include/gpu/graphite/Recorder.h +353 -0
  412. package/cpp/skia/include/gpu/graphite/Recording.h +103 -0
  413. package/cpp/skia/include/gpu/graphite/Surface.h +121 -0
  414. package/cpp/skia/include/gpu/graphite/TextureInfo.h +133 -0
  415. package/cpp/skia/include/gpu/graphite/YUVABackendTextures.h +148 -0
  416. package/cpp/skia/include/gpu/graphite/dawn/DawnBackendContext.h +85 -0
  417. package/cpp/skia/include/gpu/graphite/dawn/DawnGraphiteTypes.h +163 -0
  418. package/cpp/skia/include/gpu/graphite/dawn/DawnTypes.h +9 -0
  419. package/cpp/skia/include/gpu/graphite/dawn/DawnUtils.h +9 -0
  420. package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +45 -0
  421. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +73 -0
  422. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypesUtils.h +10 -0
  423. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes_cpp.h +50 -0
  424. package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteUtils.h +9 -0
  425. package/cpp/skia/include/gpu/graphite/precompile/PaintOptions.h +211 -0
  426. package/cpp/skia/include/gpu/graphite/precompile/Precompile.h +59 -0
  427. package/cpp/skia/include/gpu/graphite/precompile/PrecompileBase.h +76 -0
  428. package/cpp/skia/include/gpu/graphite/precompile/PrecompileBlender.h +56 -0
  429. package/cpp/skia/include/gpu/graphite/precompile/PrecompileColorFilter.h +95 -0
  430. package/cpp/skia/include/gpu/graphite/precompile/PrecompileImageFilter.h +116 -0
  431. package/cpp/skia/include/gpu/graphite/precompile/PrecompileMaskFilter.h +49 -0
  432. package/cpp/skia/include/gpu/graphite/precompile/PrecompileRuntimeEffect.h +47 -0
  433. package/cpp/skia/include/gpu/graphite/precompile/PrecompileShader.h +268 -0
  434. package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteContext.h +42 -0
  435. package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteTypes.h +104 -0
  436. package/cpp/skia/include/gpu/graphite/vk/precompile/VulkanPrecompileShader.h +39 -0
  437. package/cpp/skia/include/gpu/mtl/MtlMemoryAllocator.h +41 -0
  438. package/cpp/skia/include/gpu/vk/VulkanBackendContext.h +57 -0
  439. package/cpp/skia/include/gpu/vk/VulkanExtensions.h +73 -0
  440. package/cpp/skia/include/gpu/vk/VulkanMemoryAllocator.h +117 -0
  441. package/cpp/skia/include/gpu/vk/VulkanMutableTextureState.h +26 -0
  442. package/cpp/skia/include/gpu/vk/VulkanPreferredFeatures.h +225 -0
  443. package/cpp/skia/include/gpu/vk/VulkanTypes.h +245 -0
  444. package/cpp/skia/include/pathops/SkPathOps.h +150 -0
  445. package/cpp/skia/include/ports/SkCFObject.h +180 -0
  446. package/cpp/skia/include/ports/SkFontConfigInterface.h +112 -0
  447. package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +24 -0
  448. package/cpp/skia/include/ports/SkFontMgr_Fontations.h +20 -0
  449. package/cpp/skia/include/ports/SkFontMgr_android.h +48 -0
  450. package/cpp/skia/include/ports/SkFontMgr_android_ndk.h +27 -0
  451. package/cpp/skia/include/ports/SkFontMgr_data.h +22 -0
  452. package/cpp/skia/include/ports/SkFontMgr_directory.h +21 -0
  453. package/cpp/skia/include/ports/SkFontMgr_empty.h +21 -0
  454. package/cpp/skia/include/ports/SkFontMgr_fontconfig.h +24 -0
  455. package/cpp/skia/include/ports/SkFontMgr_fuchsia.h +21 -0
  456. package/cpp/skia/include/ports/SkFontMgr_mac_ct.h +27 -0
  457. package/cpp/skia/include/ports/SkFontScanner_Fontations.h +15 -0
  458. package/cpp/skia/include/ports/SkFontScanner_FreeType.h +15 -0
  459. package/cpp/skia/include/ports/SkImageGeneratorCG.h +28 -0
  460. package/cpp/skia/include/ports/SkImageGeneratorNDK.h +40 -0
  461. package/cpp/skia/include/ports/SkImageGeneratorWIC.h +41 -0
  462. package/cpp/skia/include/ports/SkTypeface_fontations.h +24 -0
  463. package/cpp/skia/include/ports/SkTypeface_mac.h +44 -0
  464. package/cpp/skia/include/ports/SkTypeface_win.h +63 -0
  465. package/cpp/skia/include/private/SingleOwner.h +75 -0
  466. package/cpp/skia/include/private/SkAPI.h +52 -0
  467. package/cpp/skia/include/private/SkASAN.h +56 -0
  468. package/cpp/skia/include/private/SkAlign.h +51 -0
  469. package/cpp/skia/include/private/SkAlignedStorage.h +32 -0
  470. package/cpp/skia/include/private/SkAnySubclass.h +79 -0
  471. package/cpp/skia/include/private/SkAssert.h +203 -0
  472. package/cpp/skia/include/private/SkAttributes.h +96 -0
  473. package/cpp/skia/include/private/SkCPUTypes.h +25 -0
  474. package/cpp/skia/include/private/SkContainers.h +54 -0
  475. package/cpp/skia/include/private/SkDebug.h +27 -0
  476. package/cpp/skia/include/private/SkDeque.h +138 -0
  477. package/cpp/skia/include/private/SkEncodedInfo.h +249 -0
  478. package/cpp/skia/include/private/SkEnumBitMask.h +92 -0
  479. package/cpp/skia/include/private/SkExif.h +69 -0
  480. package/cpp/skia/include/private/SkFeatures.h +173 -0
  481. package/cpp/skia/include/private/SkFixed.h +143 -0
  482. package/cpp/skia/include/private/SkFloatingPoint.h +183 -0
  483. package/cpp/skia/include/private/SkGainmapInfo.h +140 -0
  484. package/cpp/skia/include/private/SkGainmapShader.h +60 -0
  485. package/cpp/skia/include/private/SkHdrMetadata.h +357 -0
  486. package/cpp/skia/include/private/SkIDChangeListener.h +76 -0
  487. package/cpp/skia/include/private/SkJpegGainmapEncoder.h +48 -0
  488. package/cpp/skia/include/private/SkJpegMetadataDecoder.h +103 -0
  489. package/cpp/skia/include/private/SkLoadUserConfig.h +64 -0
  490. package/cpp/skia/include/private/SkLog.h +44 -0
  491. package/cpp/skia/include/private/SkLogPriority.h +34 -0
  492. package/cpp/skia/include/private/SkMacros.h +170 -0
  493. package/cpp/skia/include/private/SkMalloc.h +152 -0
  494. package/cpp/skia/include/private/SkMath.h +77 -0
  495. package/cpp/skia/include/private/SkMutex.h +72 -0
  496. package/cpp/skia/include/private/SkNoncopyable.h +30 -0
  497. package/cpp/skia/include/private/SkOnce.h +55 -0
  498. package/cpp/skia/include/private/SkPathRef.h +90 -0
  499. package/cpp/skia/include/private/SkPixelStorage.h +52 -0
  500. package/cpp/skia/include/private/SkSLSampleUsage.h +85 -0
  501. package/cpp/skia/include/private/SkSafe32.h +49 -0
  502. package/cpp/skia/include/private/SkSemaphore.h +84 -0
  503. package/cpp/skia/include/private/SkTArray.h +823 -0
  504. package/cpp/skia/include/private/SkTDArray.h +247 -0
  505. package/cpp/skia/include/private/SkTFitsIn.h +92 -0
  506. package/cpp/skia/include/private/SkTLogic.h +56 -0
  507. package/cpp/skia/include/private/SkTPin.h +23 -0
  508. package/cpp/skia/include/private/SkTemplates.h +500 -0
  509. package/cpp/skia/include/private/SkThreadAnnotations.h +104 -0
  510. package/cpp/skia/include/private/SkThreadID.h +23 -0
  511. package/cpp/skia/include/private/SkTo.h +39 -0
  512. package/cpp/skia/include/private/SkTypeTraits.h +53 -0
  513. package/cpp/skia/include/private/SkWeakRefCnt.h +173 -0
  514. package/cpp/skia/include/private/SkXmp.h +62 -0
  515. package/cpp/skia/include/private/chromium/GrDeferredDisplayList.h +120 -0
  516. package/cpp/skia/include/private/chromium/GrDeferredDisplayListRecorder.h +62 -0
  517. package/cpp/skia/include/private/chromium/GrPromiseImageTexture.h +43 -0
  518. package/cpp/skia/include/private/chromium/GrSurfaceCharacterization.h +211 -0
  519. package/cpp/skia/include/private/chromium/GrVkSecondaryCBDrawContext.h +132 -0
  520. package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +150 -0
  521. package/cpp/skia/include/private/chromium/SkCodecsICCProfileChromium.h +52 -0
  522. package/cpp/skia/include/private/chromium/SkDiscardableMemory.h +70 -0
  523. package/cpp/skia/include/private/chromium/SkExifChromium.h +26 -0
  524. package/cpp/skia/include/private/chromium/SkImageChromium.h +117 -0
  525. package/cpp/skia/include/private/chromium/SkPMColor.h +38 -0
  526. package/cpp/skia/include/private/chromium/Slug.h +72 -0
  527. package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +104 -0
  528. package/cpp/skia/include/private/gpu/ganesh/GrD3DTypesMinimal.h +60 -0
  529. package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +56 -0
  530. package/cpp/skia/include/private/gpu/ganesh/GrTextureGenerator.h +66 -0
  531. package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +959 -0
  532. package/cpp/skia/include/private/gpu/vk/SkiaVulkan.h +36 -0
  533. package/cpp/skia/include/sksl/SkSLDebugTrace.h +25 -0
  534. package/cpp/skia/include/sksl/SkSLVersion.h +27 -0
  535. package/cpp/skia/include/svg/SkSVGCanvas.h +62 -0
  536. package/cpp/skia/include/third_party/vulkan/vulkan/vk_icd.h +245 -0
  537. package/cpp/skia/include/third_party/vulkan/vulkan/vk_layer.h +192 -0
  538. package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +84 -0
  539. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std.h +394 -0
  540. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std_decode.h +109 -0
  541. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_av1std_encode.h +143 -0
  542. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std.h +312 -0
  543. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std_decode.h +77 -0
  544. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h264std_encode.h +147 -0
  545. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std.h +446 -0
  546. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std_decode.h +67 -0
  547. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_h265std_encode.h +157 -0
  548. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_vp9std.h +151 -0
  549. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codec_vp9std_decode.h +68 -0
  550. package/cpp/skia/include/third_party/vulkan/vulkan/vk_video/vulkan_video_codecs_common.h +36 -0
  551. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +103 -0
  552. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +159 -0
  553. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_beta.h +375 -0
  554. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +25896 -0
  555. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_directfb.h +59 -0
  556. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_fuchsia.h +282 -0
  557. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ggp.h +62 -0
  558. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +50 -0
  559. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +50 -0
  560. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_metal.h +244 -0
  561. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ohos.h +120 -0
  562. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_screen.h +114 -0
  563. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_vi.h +50 -0
  564. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_wayland.h +59 -0
  565. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +372 -0
  566. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +60 -0
  567. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xlib.h +60 -0
  568. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xlib_xrandr.h +50 -0
  569. package/cpp/skia/include/utils/SkCamera.h +109 -0
  570. package/cpp/skia/include/utils/SkCanvasStateUtils.h +81 -0
  571. package/cpp/skia/include/utils/SkCustomTypeface.h +70 -0
  572. package/cpp/skia/include/utils/SkEventTracer.h +93 -0
  573. package/cpp/skia/include/utils/SkLogHandler.h +53 -0
  574. package/cpp/skia/include/utils/SkNWayCanvas.h +124 -0
  575. package/cpp/skia/include/utils/SkNoDrawCanvas.h +78 -0
  576. package/cpp/skia/include/utils/SkNullCanvas.h +22 -0
  577. package/cpp/skia/include/utils/SkOrderedFontMgr.h +66 -0
  578. package/cpp/skia/include/utils/SkPaintFilterCanvas.h +140 -0
  579. package/cpp/skia/include/utils/SkParse.h +36 -0
  580. package/cpp/skia/include/utils/SkParsePath.h +33 -0
  581. package/cpp/skia/include/utils/SkShadowUtils.h +102 -0
  582. package/cpp/skia/include/utils/SkTextUtils.h +43 -0
  583. package/cpp/skia/include/utils/SkTraceEventPhase.h +19 -0
  584. package/cpp/skia/include/utils/mac/SkCGUtils.h +90 -0
  585. package/cpp/skia/modules/jsonreader/SkJSONReader.cpp +996 -0
  586. package/cpp/skia/modules/jsonreader/SkJSONReader.h +389 -0
  587. package/cpp/skia/modules/skcms/skcms.h +10 -0
  588. package/cpp/skia/modules/skcms/src/Transform_inl.h +1599 -0
  589. package/cpp/skia/modules/skcms/src/skcms_Transform.h +167 -0
  590. package/cpp/skia/modules/skcms/src/skcms_internals.h +162 -0
  591. package/cpp/skia/modules/skcms/src/skcms_public.h +496 -0
  592. package/cpp/skia/modules/skottie/include/ExternalLayer.h +56 -0
  593. package/cpp/skia/modules/skottie/include/Skottie.h +324 -0
  594. package/cpp/skia/modules/skottie/include/SkottieProperty.h +192 -0
  595. package/cpp/skia/modules/skottie/include/SlotManager.h +113 -0
  596. package/cpp/skia/modules/skottie/include/TextShaper.h +198 -0
  597. package/cpp/skia/modules/skottie/src/SkottieValue.h +56 -0
  598. package/cpp/skia/modules/skottie/src/animator/Animator.h +89 -0
  599. package/cpp/skia/modules/skottie/src/text/Font.h +82 -0
  600. package/cpp/skia/modules/skottie/src/text/TextAdapter.h +155 -0
  601. package/cpp/skia/modules/skottie/src/text/TextAnimator.h +122 -0
  602. package/cpp/skia/modules/skottie/src/text/TextValue.h +28 -0
  603. package/cpp/skia/modules/skparagraph/include/DartTypes.h +153 -0
  604. package/cpp/skia/modules/skparagraph/include/FontArguments.h +46 -0
  605. package/cpp/skia/modules/skparagraph/include/FontCollection.h +76 -0
  606. package/cpp/skia/modules/skparagraph/include/Metrics.h +98 -0
  607. package/cpp/skia/modules/skparagraph/include/Paragraph.h +289 -0
  608. package/cpp/skia/modules/skparagraph/include/ParagraphBuilder.h +94 -0
  609. package/cpp/skia/modules/skparagraph/include/ParagraphCache.h +52 -0
  610. package/cpp/skia/modules/skparagraph/include/ParagraphPainter.h +63 -0
  611. package/cpp/skia/modules/skparagraph/include/ParagraphStyle.h +160 -0
  612. package/cpp/skia/modules/skparagraph/include/TextShadow.h +30 -0
  613. package/cpp/skia/modules/skparagraph/include/TextStyle.h +392 -0
  614. package/cpp/skia/modules/skparagraph/include/TypefaceFontProvider.h +78 -0
  615. package/cpp/skia/modules/skresources/include/SkResources.h +291 -0
  616. package/cpp/skia/modules/sksg/include/SkSGClipEffect.h +61 -0
  617. package/cpp/skia/modules/sksg/include/SkSGColorFilter.h +135 -0
  618. package/cpp/skia/modules/sksg/include/SkSGDraw.h +57 -0
  619. package/cpp/skia/modules/sksg/include/SkSGEffectNode.h +50 -0
  620. package/cpp/skia/modules/sksg/include/SkSGGeometryEffect.h +207 -0
  621. package/cpp/skia/modules/sksg/include/SkSGGeometryNode.h +54 -0
  622. package/cpp/skia/modules/sksg/include/SkSGGradient.h +108 -0
  623. package/cpp/skia/modules/sksg/include/SkSGGroup.h +65 -0
  624. package/cpp/skia/modules/sksg/include/SkSGImage.h +59 -0
  625. package/cpp/skia/modules/sksg/include/SkSGInvalidationController.h +46 -0
  626. package/cpp/skia/modules/sksg/include/SkSGMaskEffect.h +65 -0
  627. package/cpp/skia/modules/sksg/include/SkSGMerge.h +74 -0
  628. package/cpp/skia/modules/sksg/include/SkSGNode.h +128 -0
  629. package/cpp/skia/modules/sksg/include/SkSGOpacityEffect.h +54 -0
  630. package/cpp/skia/modules/sksg/include/SkSGPaint.h +112 -0
  631. package/cpp/skia/modules/sksg/include/SkSGPath.h +68 -0
  632. package/cpp/skia/modules/sksg/include/SkSGPlane.h +47 -0
  633. package/cpp/skia/modules/sksg/include/SkSGRect.h +122 -0
  634. package/cpp/skia/modules/sksg/include/SkSGRenderEffect.h +283 -0
  635. package/cpp/skia/modules/sksg/include/SkSGRenderNode.h +157 -0
  636. package/cpp/skia/modules/sksg/include/SkSGScene.h +47 -0
  637. package/cpp/skia/modules/sksg/include/SkSGText.h +82 -0
  638. package/cpp/skia/modules/sksg/include/SkSGTransform.h +127 -0
  639. package/cpp/skia/modules/skshaper/include/SkShaper.h +340 -0
  640. package/cpp/skia/modules/skshaper/include/SkShaper_coretext.h +26 -0
  641. package/cpp/skia/modules/skshaper/include/SkShaper_factory.h +41 -0
  642. package/cpp/skia/modules/skshaper/include/SkShaper_harfbuzz.h +39 -0
  643. package/cpp/skia/modules/skshaper/include/SkShaper_skunicode.h +28 -0
  644. package/cpp/skia/modules/skunicode/include/SkUnicode.h +321 -0
  645. package/cpp/skia/modules/skunicode/include/SkUnicode_icu.h +18 -0
  646. package/cpp/skia/modules/skunicode/include/SkUnicode_libgrapheme.h +19 -0
  647. package/cpp/skia/modules/svg/include/SkSVGAttribute.h +110 -0
  648. package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +170 -0
  649. package/cpp/skia/modules/svg/include/SkSVGCircle.h +56 -0
  650. package/cpp/skia/modules/svg/include/SkSVGClipPath.h +41 -0
  651. package/cpp/skia/modules/svg/include/SkSVGContainer.h +52 -0
  652. package/cpp/skia/modules/svg/include/SkSVGDOM.h +111 -0
  653. package/cpp/skia/modules/svg/include/SkSVGDefs.h +23 -0
  654. package/cpp/skia/modules/svg/include/SkSVGEllipse.h +51 -0
  655. package/cpp/skia/modules/svg/include/SkSVGFe.h +93 -0
  656. package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +54 -0
  657. package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +55 -0
  658. package/cpp/skia/modules/svg/include/SkSVGFeComponentTransfer.h +82 -0
  659. package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +55 -0
  660. package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +56 -0
  661. package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +42 -0
  662. package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +50 -0
  663. package/cpp/skia/modules/svg/include/SkSVGFeImage.h +44 -0
  664. package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +93 -0
  665. package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +131 -0
  666. package/cpp/skia/modules/svg/include/SkSVGFeMerge.h +63 -0
  667. package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +55 -0
  668. package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +44 -0
  669. package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +49 -0
  670. package/cpp/skia/modules/svg/include/SkSVGFilter.h +48 -0
  671. package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +69 -0
  672. package/cpp/skia/modules/svg/include/SkSVGG.h +23 -0
  673. package/cpp/skia/modules/svg/include/SkSVGGradient.h +56 -0
  674. package/cpp/skia/modules/svg/include/SkSVGHiddenContainer.h +23 -0
  675. package/cpp/skia/modules/svg/include/SkSVGIDMapper.h +19 -0
  676. package/cpp/skia/modules/svg/include/SkSVGImage.h +67 -0
  677. package/cpp/skia/modules/svg/include/SkSVGLine.h +53 -0
  678. package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +47 -0
  679. package/cpp/skia/modules/svg/include/SkSVGMask.h +49 -0
  680. package/cpp/skia/modules/svg/include/SkSVGNode.h +235 -0
  681. package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +37 -0
  682. package/cpp/skia/modules/svg/include/SkSVGPath.h +46 -0
  683. package/cpp/skia/modules/svg/include/SkSVGPattern.h +61 -0
  684. package/cpp/skia/modules/svg/include/SkSVGPoly.h +56 -0
  685. package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +48 -0
  686. package/cpp/skia/modules/svg/include/SkSVGRect.h +56 -0
  687. package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +229 -0
  688. package/cpp/skia/modules/svg/include/SkSVGSVG.h +60 -0
  689. package/cpp/skia/modules/svg/include/SkSVGShape.h +40 -0
  690. package/cpp/skia/modules/svg/include/SkSVGStop.h +36 -0
  691. package/cpp/skia/modules/svg/include/SkSVGText.h +128 -0
  692. package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +48 -0
  693. package/cpp/skia/modules/svg/include/SkSVGTypes.h +740 -0
  694. package/cpp/skia/modules/svg/include/SkSVGUse.h +49 -0
  695. package/cpp/skia/modules/svg/include/SkSVGValue.h +85 -0
  696. package/cpp/skia/src/core/SkArenaAlloc.h +371 -0
  697. package/cpp/skia/src/core/SkAutoLocaleSetter.h +94 -0
  698. package/cpp/skia/src/core/SkChecksum.h +118 -0
  699. package/cpp/skia/src/core/SkLRUCache.h +143 -0
  700. package/cpp/skia/src/core/SkMathPriv.h +225 -0
  701. package/cpp/skia/src/core/SkTHash.h +714 -0
  702. package/cpp/skia/src/core/SkTInternalLList.h +304 -0
  703. package/cpp/skia/src/core/SkTLazy.h +216 -0
  704. package/cpp/skia/src/core/SkUTF.h +102 -0
  705. package/cpp/skia/src/gpu/ganesh/gl/GrGLDefines.h +1162 -0
  706. package/cpp/utils/RNSkLog.h +82 -0
  707. package/cpp/utils/RNSkMeasureTime.h +32 -0
  708. package/cpp/utils/RNSkTimingInfo.h +106 -0
  709. package/cpp/utils/RNSkTypedArray.h +41 -0
  710. package/include/ReactNativeSkia.h +6 -0
  711. package/jestEnv.js +22 -0
  712. package/jestSetup.js +27 -0
  713. package/jestSetup.mjs +7 -0
  714. package/lib/commonjs/Platform/IPlatform.d.ts +9 -0
  715. package/lib/commonjs/Platform/IPlatform.js +6 -0
  716. package/lib/commonjs/Platform/IPlatform.js.map +1 -0
  717. package/lib/commonjs/Platform/Platform.d.ts +2 -0
  718. package/lib/commonjs/Platform/Platform.js +22 -0
  719. package/lib/commonjs/Platform/Platform.js.map +1 -0
  720. package/lib/commonjs/Platform/Platform.web.d.ts +2 -0
  721. package/lib/commonjs/Platform/Platform.web.js +73 -0
  722. package/lib/commonjs/Platform/Platform.web.js.map +1 -0
  723. package/lib/commonjs/Platform/index.d.ts +1 -0
  724. package/lib/commonjs/Platform/index.js +17 -0
  725. package/lib/commonjs/Platform/index.js.map +1 -0
  726. package/lib/commonjs/animation/functions/index.d.ts +4 -0
  727. package/lib/commonjs/animation/functions/index.js +50 -0
  728. package/lib/commonjs/animation/functions/index.js.map +1 -0
  729. package/lib/commonjs/animation/functions/interpolate.d.ts +17 -0
  730. package/lib/commonjs/animation/functions/interpolate.js +131 -0
  731. package/lib/commonjs/animation/functions/interpolate.js.map +1 -0
  732. package/lib/commonjs/animation/functions/interpolateColors.d.ts +3 -0
  733. package/lib/commonjs/animation/functions/interpolateColors.js +35 -0
  734. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -0
  735. package/lib/commonjs/animation/functions/interpolatePaths.d.ts +19 -0
  736. package/lib/commonjs/animation/functions/interpolatePaths.js +87 -0
  737. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
  738. package/lib/commonjs/animation/functions/interpolateVector.d.ts +10 -0
  739. package/lib/commonjs/animation/functions/interpolateVector.js +23 -0
  740. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
  741. package/lib/commonjs/animation/index.d.ts +1 -0
  742. package/lib/commonjs/animation/index.js +17 -0
  743. package/lib/commonjs/animation/index.js.map +1 -0
  744. package/lib/commonjs/dom/nodes/datatypes/Circle.d.ts +6 -0
  745. package/lib/commonjs/dom/nodes/datatypes/Circle.js +37 -0
  746. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -0
  747. package/lib/commonjs/dom/nodes/datatypes/Enum.d.ts +1 -0
  748. package/lib/commonjs/dom/nodes/datatypes/Enum.js +13 -0
  749. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -0
  750. package/lib/commonjs/dom/nodes/datatypes/Fitting.d.ts +33 -0
  751. package/lib/commonjs/dom/nodes/datatypes/Fitting.js +141 -0
  752. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -0
  753. package/lib/commonjs/dom/nodes/datatypes/Gradient.d.ts +253 -0
  754. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +74 -0
  755. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -0
  756. package/lib/commonjs/dom/nodes/datatypes/Path.d.ts +4 -0
  757. package/lib/commonjs/dom/nodes/datatypes/Path.js +26 -0
  758. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -0
  759. package/lib/commonjs/dom/nodes/datatypes/Radius.d.ts +3 -0
  760. package/lib/commonjs/dom/nodes/datatypes/Radius.js +16 -0
  761. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -0
  762. package/lib/commonjs/dom/nodes/datatypes/Rect.d.ts +7 -0
  763. package/lib/commonjs/dom/nodes/datatypes/Rect.js +68 -0
  764. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -0
  765. package/lib/commonjs/dom/nodes/datatypes/Transform.d.ts +4 -0
  766. package/lib/commonjs/dom/nodes/datatypes/Transform.js +67 -0
  767. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -0
  768. package/lib/commonjs/dom/nodes/datatypes/index.d.ts +8 -0
  769. package/lib/commonjs/dom/nodes/datatypes/index.js +94 -0
  770. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -0
  771. package/lib/commonjs/dom/nodes/index.d.ts +2 -0
  772. package/lib/commonjs/dom/nodes/index.js +28 -0
  773. package/lib/commonjs/dom/nodes/index.js.map +1 -0
  774. package/lib/commonjs/dom/types/ColorFilters.d.ts +12 -0
  775. package/lib/commonjs/dom/types/ColorFilters.js +6 -0
  776. package/lib/commonjs/dom/types/ColorFilters.js.map +1 -0
  777. package/lib/commonjs/dom/types/Common.d.ts +60 -0
  778. package/lib/commonjs/dom/types/Common.js +6 -0
  779. package/lib/commonjs/dom/types/Common.js.map +1 -0
  780. package/lib/commonjs/dom/types/Drawings.d.ts +121 -0
  781. package/lib/commonjs/dom/types/Drawings.js +6 -0
  782. package/lib/commonjs/dom/types/Drawings.js.map +1 -0
  783. package/lib/commonjs/dom/types/ImageFilters.d.ts +37 -0
  784. package/lib/commonjs/dom/types/ImageFilters.js +6 -0
  785. package/lib/commonjs/dom/types/ImageFilters.js.map +1 -0
  786. package/lib/commonjs/dom/types/MaskFilters.d.ts +7 -0
  787. package/lib/commonjs/dom/types/MaskFilters.js +6 -0
  788. package/lib/commonjs/dom/types/MaskFilters.js.map +1 -0
  789. package/lib/commonjs/dom/types/Node.d.ts +17 -0
  790. package/lib/commonjs/dom/types/Node.js +6 -0
  791. package/lib/commonjs/dom/types/Node.js.map +1 -0
  792. package/lib/commonjs/dom/types/NodeType.d.ts +61 -0
  793. package/lib/commonjs/dom/types/NodeType.js +79 -0
  794. package/lib/commonjs/dom/types/NodeType.js.map +1 -0
  795. package/lib/commonjs/dom/types/Paragraph.d.ts +8 -0
  796. package/lib/commonjs/dom/types/Paragraph.js +6 -0
  797. package/lib/commonjs/dom/types/Paragraph.js.map +1 -0
  798. package/lib/commonjs/dom/types/PathEffects.d.ts +28 -0
  799. package/lib/commonjs/dom/types/PathEffects.js +6 -0
  800. package/lib/commonjs/dom/types/PathEffects.js.map +1 -0
  801. package/lib/commonjs/dom/types/Shaders.d.ts +58 -0
  802. package/lib/commonjs/dom/types/Shaders.js +6 -0
  803. package/lib/commonjs/dom/types/Shaders.js.map +1 -0
  804. package/lib/commonjs/dom/types/SkDOM.d.ts +73 -0
  805. package/lib/commonjs/dom/types/SkDOM.js +6 -0
  806. package/lib/commonjs/dom/types/SkDOM.js.map +1 -0
  807. package/lib/commonjs/dom/types/index.d.ts +11 -0
  808. package/lib/commonjs/dom/types/index.js +127 -0
  809. package/lib/commonjs/dom/types/index.js.map +1 -0
  810. package/lib/commonjs/external/ModuleProxy.d.ts +10 -0
  811. package/lib/commonjs/external/ModuleProxy.js +36 -0
  812. package/lib/commonjs/external/ModuleProxy.js.map +1 -0
  813. package/lib/commonjs/external/index.d.ts +1 -0
  814. package/lib/commonjs/external/index.js +17 -0
  815. package/lib/commonjs/external/index.js.map +1 -0
  816. package/lib/commonjs/external/reanimated/ReanimatedProxy.d.ts +3 -0
  817. package/lib/commonjs/external/reanimated/ReanimatedProxy.js +18 -0
  818. package/lib/commonjs/external/reanimated/ReanimatedProxy.js.map +1 -0
  819. package/lib/commonjs/external/reanimated/buffers.d.ts +7 -0
  820. package/lib/commonjs/external/reanimated/buffers.js +51 -0
  821. package/lib/commonjs/external/reanimated/buffers.js.map +1 -0
  822. package/lib/commonjs/external/reanimated/index.d.ts +6 -0
  823. package/lib/commonjs/external/reanimated/index.js +72 -0
  824. package/lib/commonjs/external/reanimated/index.js.map +1 -0
  825. package/lib/commonjs/external/reanimated/interpolators.d.ts +16 -0
  826. package/lib/commonjs/external/reanimated/interpolators.js +92 -0
  827. package/lib/commonjs/external/reanimated/interpolators.js.map +1 -0
  828. package/lib/commonjs/external/reanimated/renderHelpers.d.ts +16 -0
  829. package/lib/commonjs/external/reanimated/renderHelpers.js +50 -0
  830. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -0
  831. package/lib/commonjs/external/reanimated/textures.d.ts +6 -0
  832. package/lib/commonjs/external/reanimated/textures.js +82 -0
  833. package/lib/commonjs/external/reanimated/textures.js.map +1 -0
  834. package/lib/commonjs/external/reanimated/useAnimatedImageValue.d.ts +3 -0
  835. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +53 -0
  836. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -0
  837. package/lib/commonjs/external/reanimated/useVideo.d.ts +21 -0
  838. package/lib/commonjs/external/reanimated/useVideo.js +150 -0
  839. package/lib/commonjs/external/reanimated/useVideo.js.map +1 -0
  840. package/lib/commonjs/external/reanimated/useVideoLoading.d.ts +4 -0
  841. package/lib/commonjs/external/reanimated/useVideoLoading.js +40 -0
  842. package/lib/commonjs/external/reanimated/useVideoLoading.js.map +1 -0
  843. package/lib/commonjs/external/reanimated/useVideoLoading.web.d.ts +4 -0
  844. package/lib/commonjs/external/reanimated/useVideoLoading.web.js +20 -0
  845. package/lib/commonjs/external/reanimated/useVideoLoading.web.js.map +1 -0
  846. package/lib/commonjs/headless/index.d.ts +9 -0
  847. package/lib/commonjs/headless/index.js +72 -0
  848. package/lib/commonjs/headless/index.js.map +1 -0
  849. package/lib/commonjs/index.d.ts +11 -0
  850. package/lib/commonjs/index.js +125 -0
  851. package/lib/commonjs/index.js.map +1 -0
  852. package/lib/commonjs/mock/index.d.ts +2 -0
  853. package/lib/commonjs/mock/index.js +80 -0
  854. package/lib/commonjs/mock/index.js.map +1 -0
  855. package/lib/commonjs/renderer/Canvas.d.ts +48 -0
  856. package/lib/commonjs/renderer/Canvas.js +171 -0
  857. package/lib/commonjs/renderer/Canvas.js.map +1 -0
  858. package/lib/commonjs/renderer/Offscreen.d.ts +6 -0
  859. package/lib/commonjs/renderer/Offscreen.js +43 -0
  860. package/lib/commonjs/renderer/Offscreen.js.map +1 -0
  861. package/lib/commonjs/renderer/components/Blend.d.ts +4 -0
  862. package/lib/commonjs/renderer/components/Blend.js +13 -0
  863. package/lib/commonjs/renderer/components/Blend.js.map +1 -0
  864. package/lib/commonjs/renderer/components/Group.d.ts +8 -0
  865. package/lib/commonjs/renderer/components/Group.js +22 -0
  866. package/lib/commonjs/renderer/components/Group.js.map +1 -0
  867. package/lib/commonjs/renderer/components/ImageFilter.d.ts +4 -0
  868. package/lib/commonjs/renderer/components/ImageFilter.js +13 -0
  869. package/lib/commonjs/renderer/components/ImageFilter.js.map +1 -0
  870. package/lib/commonjs/renderer/components/Mask.d.ts +10 -0
  871. package/lib/commonjs/renderer/components/Mask.js +27 -0
  872. package/lib/commonjs/renderer/components/Mask.js.map +1 -0
  873. package/lib/commonjs/renderer/components/Paint.d.ts +4 -0
  874. package/lib/commonjs/renderer/components/Paint.js +13 -0
  875. package/lib/commonjs/renderer/components/Paint.js.map +1 -0
  876. package/lib/commonjs/renderer/components/Picture.d.ts +4 -0
  877. package/lib/commonjs/renderer/components/Picture.js +13 -0
  878. package/lib/commonjs/renderer/components/Picture.js.map +1 -0
  879. package/lib/commonjs/renderer/components/Skottie.d.ts +4 -0
  880. package/lib/commonjs/renderer/components/Skottie.js +13 -0
  881. package/lib/commonjs/renderer/components/Skottie.js.map +1 -0
  882. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
  883. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +25 -0
  884. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -0
  885. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.d.ts +8 -0
  886. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +18 -0
  887. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -0
  888. package/lib/commonjs/renderer/components/backdrop/index.d.ts +2 -0
  889. package/lib/commonjs/renderer/components/backdrop/index.js +28 -0
  890. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -0
  891. package/lib/commonjs/renderer/components/colorFilters/BlendColor.d.ts +4 -0
  892. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +13 -0
  893. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -0
  894. package/lib/commonjs/renderer/components/colorFilters/Lerp.d.ts +4 -0
  895. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +13 -0
  896. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -0
  897. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
  898. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +13 -0
  899. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
  900. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
  901. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +13 -0
  902. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
  903. package/lib/commonjs/renderer/components/colorFilters/Matrix.d.ts +5 -0
  904. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +15 -0
  905. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -0
  906. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
  907. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +13 -0
  908. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
  909. package/lib/commonjs/renderer/components/colorFilters/index.d.ts +6 -0
  910. package/lib/commonjs/renderer/components/colorFilters/index.js +72 -0
  911. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -0
  912. package/lib/commonjs/renderer/components/image/Image.d.ts +4 -0
  913. package/lib/commonjs/renderer/components/image/Image.js +19 -0
  914. package/lib/commonjs/renderer/components/image/Image.js.map +1 -0
  915. package/lib/commonjs/renderer/components/image/ImageSVG.d.ts +4 -0
  916. package/lib/commonjs/renderer/components/image/ImageSVG.js +13 -0
  917. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -0
  918. package/lib/commonjs/renderer/components/image/ImageShader.d.ts +4 -0
  919. package/lib/commonjs/renderer/components/image/ImageShader.js +25 -0
  920. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -0
  921. package/lib/commonjs/renderer/components/image/index.d.ts +3 -0
  922. package/lib/commonjs/renderer/components/image/index.js +39 -0
  923. package/lib/commonjs/renderer/components/image/index.js.map +1 -0
  924. package/lib/commonjs/renderer/components/imageFilters/Blur.d.ts +4 -0
  925. package/lib/commonjs/renderer/components/imageFilters/Blur.js +19 -0
  926. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -0
  927. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
  928. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +13 -0
  929. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
  930. package/lib/commonjs/renderer/components/imageFilters/Morphology.d.ts +4 -0
  931. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +19 -0
  932. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -0
  933. package/lib/commonjs/renderer/components/imageFilters/Offset.d.ts +4 -0
  934. package/lib/commonjs/renderer/components/imageFilters/Offset.js +21 -0
  935. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -0
  936. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
  937. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +13 -0
  938. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
  939. package/lib/commonjs/renderer/components/imageFilters/Shadow.d.ts +4 -0
  940. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +13 -0
  941. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -0
  942. package/lib/commonjs/renderer/components/imageFilters/index.d.ts +6 -0
  943. package/lib/commonjs/renderer/components/imageFilters/index.js +72 -0
  944. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -0
  945. package/lib/commonjs/renderer/components/index.d.ts +18 -0
  946. package/lib/commonjs/renderer/components/index.js +204 -0
  947. package/lib/commonjs/renderer/components/index.js.map +1 -0
  948. package/lib/commonjs/renderer/components/maskFilters/Blur.d.ts +4 -0
  949. package/lib/commonjs/renderer/components/maskFilters/Blur.js +21 -0
  950. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -0
  951. package/lib/commonjs/renderer/components/maskFilters/index.d.ts +1 -0
  952. package/lib/commonjs/renderer/components/maskFilters/index.js +17 -0
  953. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -0
  954. package/lib/commonjs/renderer/components/paragraph/Paragraph.d.ts +4 -0
  955. package/lib/commonjs/renderer/components/paragraph/Paragraph.js +13 -0
  956. package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -0
  957. package/lib/commonjs/renderer/components/paragraph/index.d.ts +1 -0
  958. package/lib/commonjs/renderer/components/paragraph/index.js +17 -0
  959. package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -0
  960. package/lib/commonjs/renderer/components/pathEffects/Corner.d.ts +4 -0
  961. package/lib/commonjs/renderer/components/pathEffects/Corner.js +13 -0
  962. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -0
  963. package/lib/commonjs/renderer/components/pathEffects/Dash.d.ts +4 -0
  964. package/lib/commonjs/renderer/components/pathEffects/Dash.js +13 -0
  965. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -0
  966. package/lib/commonjs/renderer/components/pathEffects/Discrete.d.ts +4 -0
  967. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +19 -0
  968. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -0
  969. package/lib/commonjs/renderer/components/pathEffects/Line2D.d.ts +4 -0
  970. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +13 -0
  971. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -0
  972. package/lib/commonjs/renderer/components/pathEffects/Path1D.d.ts +4 -0
  973. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +13 -0
  974. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -0
  975. package/lib/commonjs/renderer/components/pathEffects/Path2D.d.ts +4 -0
  976. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +13 -0
  977. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -0
  978. package/lib/commonjs/renderer/components/pathEffects/Sum.d.ts +3 -0
  979. package/lib/commonjs/renderer/components/pathEffects/Sum.js +13 -0
  980. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -0
  981. package/lib/commonjs/renderer/components/pathEffects/index.d.ts +7 -0
  982. package/lib/commonjs/renderer/components/pathEffects/index.js +83 -0
  983. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -0
  984. package/lib/commonjs/renderer/components/shaders/Color.d.ts +4 -0
  985. package/lib/commonjs/renderer/components/shaders/Color.js +13 -0
  986. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -0
  987. package/lib/commonjs/renderer/components/shaders/FractalNoise.d.ts +4 -0
  988. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +23 -0
  989. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -0
  990. package/lib/commonjs/renderer/components/shaders/LinearGradient.d.ts +4 -0
  991. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +13 -0
  992. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -0
  993. package/lib/commonjs/renderer/components/shaders/RadialGradient.d.ts +4 -0
  994. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +13 -0
  995. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -0
  996. package/lib/commonjs/renderer/components/shaders/Shader.d.ts +4 -0
  997. package/lib/commonjs/renderer/components/shaders/Shader.js +19 -0
  998. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -0
  999. package/lib/commonjs/renderer/components/shaders/ShaderLib.d.ts +4 -0
  1000. package/lib/commonjs/renderer/components/shaders/ShaderLib.js +51 -0
  1001. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -0
  1002. package/lib/commonjs/renderer/components/shaders/SweepGradient.d.ts +4 -0
  1003. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +13 -0
  1004. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -0
  1005. package/lib/commonjs/renderer/components/shaders/Turbulence.d.ts +4 -0
  1006. package/lib/commonjs/renderer/components/shaders/Turbulence.js +23 -0
  1007. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -0
  1008. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
  1009. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +13 -0
  1010. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
  1011. package/lib/commonjs/renderer/components/shaders/index.d.ts +9 -0
  1012. package/lib/commonjs/renderer/components/shaders/index.js +105 -0
  1013. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -0
  1014. package/lib/commonjs/renderer/components/shapes/Atlas.d.ts +4 -0
  1015. package/lib/commonjs/renderer/components/shapes/Atlas.js +13 -0
  1016. package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -0
  1017. package/lib/commonjs/renderer/components/shapes/Box.d.ts +5 -0
  1018. package/lib/commonjs/renderer/components/shapes/Box.js +17 -0
  1019. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -0
  1020. package/lib/commonjs/renderer/components/shapes/Circle.d.ts +4 -0
  1021. package/lib/commonjs/renderer/components/shapes/Circle.js +13 -0
  1022. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -0
  1023. package/lib/commonjs/renderer/components/shapes/DiffRect.d.ts +4 -0
  1024. package/lib/commonjs/renderer/components/shapes/DiffRect.js +13 -0
  1025. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -0
  1026. package/lib/commonjs/renderer/components/shapes/Fill.d.ts +4 -0
  1027. package/lib/commonjs/renderer/components/shapes/Fill.js +13 -0
  1028. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -0
  1029. package/lib/commonjs/renderer/components/shapes/FitBox.d.ts +13 -0
  1030. package/lib/commonjs/renderer/components/shapes/FitBox.js +57 -0
  1031. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -0
  1032. package/lib/commonjs/renderer/components/shapes/Line.d.ts +4 -0
  1033. package/lib/commonjs/renderer/components/shapes/Line.js +13 -0
  1034. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -0
  1035. package/lib/commonjs/renderer/components/shapes/Oval.d.ts +4 -0
  1036. package/lib/commonjs/renderer/components/shapes/Oval.js +13 -0
  1037. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -0
  1038. package/lib/commonjs/renderer/components/shapes/Patch.d.ts +4 -0
  1039. package/lib/commonjs/renderer/components/shapes/Patch.js +13 -0
  1040. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -0
  1041. package/lib/commonjs/renderer/components/shapes/Path.d.ts +4 -0
  1042. package/lib/commonjs/renderer/components/shapes/Path.js +21 -0
  1043. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -0
  1044. package/lib/commonjs/renderer/components/shapes/Points.d.ts +4 -0
  1045. package/lib/commonjs/renderer/components/shapes/Points.js +19 -0
  1046. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -0
  1047. package/lib/commonjs/renderer/components/shapes/Rect.d.ts +4 -0
  1048. package/lib/commonjs/renderer/components/shapes/Rect.js +13 -0
  1049. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -0
  1050. package/lib/commonjs/renderer/components/shapes/RoundedRect.d.ts +4 -0
  1051. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +13 -0
  1052. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -0
  1053. package/lib/commonjs/renderer/components/shapes/Vertices.d.ts +4 -0
  1054. package/lib/commonjs/renderer/components/shapes/Vertices.js +19 -0
  1055. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -0
  1056. package/lib/commonjs/renderer/components/shapes/index.d.ts +14 -0
  1057. package/lib/commonjs/renderer/components/shapes/index.js +160 -0
  1058. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -0
  1059. package/lib/commonjs/renderer/components/text/Glyphs.d.ts +4 -0
  1060. package/lib/commonjs/renderer/components/text/Glyphs.js +21 -0
  1061. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -0
  1062. package/lib/commonjs/renderer/components/text/Text.d.ts +4 -0
  1063. package/lib/commonjs/renderer/components/text/Text.js +21 -0
  1064. package/lib/commonjs/renderer/components/text/Text.js.map +1 -0
  1065. package/lib/commonjs/renderer/components/text/TextBlob.d.ts +4 -0
  1066. package/lib/commonjs/renderer/components/text/TextBlob.js +21 -0
  1067. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -0
  1068. package/lib/commonjs/renderer/components/text/TextPath.d.ts +4 -0
  1069. package/lib/commonjs/renderer/components/text/TextPath.js +19 -0
  1070. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -0
  1071. package/lib/commonjs/renderer/components/text/index.d.ts +4 -0
  1072. package/lib/commonjs/renderer/components/text/index.js +50 -0
  1073. package/lib/commonjs/renderer/components/text/index.js.map +1 -0
  1074. package/lib/commonjs/renderer/index.d.ts +1 -0
  1075. package/lib/commonjs/renderer/index.js +17 -0
  1076. package/lib/commonjs/renderer/index.js.map +1 -0
  1077. package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +38 -0
  1078. package/lib/commonjs/renderer/processors/Animations/Animations.js +30 -0
  1079. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -0
  1080. package/lib/commonjs/renderer/processors/Animations/index.d.ts +1 -0
  1081. package/lib/commonjs/renderer/processors/Animations/index.js +17 -0
  1082. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -0
  1083. package/lib/commonjs/renderer/processors/index.d.ts +2 -0
  1084. package/lib/commonjs/renderer/processors/index.js +28 -0
  1085. package/lib/commonjs/renderer/processors/index.js.map +1 -0
  1086. package/lib/commonjs/renderer/processors/math/Coordinates.d.ts +29 -0
  1087. package/lib/commonjs/renderer/processors/math/Coordinates.js +55 -0
  1088. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -0
  1089. package/lib/commonjs/renderer/processors/math/Math.d.ts +16 -0
  1090. package/lib/commonjs/renderer/processors/math/Math.js +39 -0
  1091. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -0
  1092. package/lib/commonjs/renderer/processors/math/Transforms.d.ts +5 -0
  1093. package/lib/commonjs/renderer/processors/math/Transforms.js +21 -0
  1094. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -0
  1095. package/lib/commonjs/renderer/processors/math/index.d.ts +3 -0
  1096. package/lib/commonjs/renderer/processors/math/index.js +39 -0
  1097. package/lib/commonjs/renderer/processors/math/index.js.map +1 -0
  1098. package/lib/commonjs/renderer/typeddash.d.ts +3 -0
  1099. package/lib/commonjs/renderer/typeddash.js +38 -0
  1100. package/lib/commonjs/renderer/typeddash.js.map +1 -0
  1101. package/lib/commonjs/skia/NativeSetup.d.ts +1 -0
  1102. package/lib/commonjs/skia/NativeSetup.js +21 -0
  1103. package/lib/commonjs/skia/NativeSetup.js.map +1 -0
  1104. package/lib/commonjs/skia/Skia.d.ts +8 -0
  1105. package/lib/commonjs/skia/Skia.js +14 -0
  1106. package/lib/commonjs/skia/Skia.js.map +1 -0
  1107. package/lib/commonjs/skia/Skia.web.d.ts +1 -0
  1108. package/lib/commonjs/skia/Skia.web.js +9 -0
  1109. package/lib/commonjs/skia/Skia.web.js.map +1 -0
  1110. package/lib/commonjs/skia/SkiaWorkletSerialization.d.ts +1 -0
  1111. package/lib/commonjs/skia/SkiaWorkletSerialization.js +66 -0
  1112. package/lib/commonjs/skia/SkiaWorkletSerialization.js.map +1 -0
  1113. package/lib/commonjs/skia/core/AnimatedImage.d.ts +5 -0
  1114. package/lib/commonjs/skia/core/AnimatedImage.js +16 -0
  1115. package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -0
  1116. package/lib/commonjs/skia/core/Data.d.ts +5 -0
  1117. package/lib/commonjs/skia/core/Data.js +76 -0
  1118. package/lib/commonjs/skia/core/Data.js.map +1 -0
  1119. package/lib/commonjs/skia/core/Font.d.ts +33 -0
  1120. package/lib/commonjs/skia/core/Font.js +126 -0
  1121. package/lib/commonjs/skia/core/Font.js.map +1 -0
  1122. package/lib/commonjs/skia/core/Image.d.ts +16 -0
  1123. package/lib/commonjs/skia/core/Image.js +44 -0
  1124. package/lib/commonjs/skia/core/Image.js.map +1 -0
  1125. package/lib/commonjs/skia/core/Matrix.d.ts +2 -0
  1126. package/lib/commonjs/skia/core/Matrix.js +15 -0
  1127. package/lib/commonjs/skia/core/Matrix.js.map +1 -0
  1128. package/lib/commonjs/skia/core/Picture.d.ts +8 -0
  1129. package/lib/commonjs/skia/core/Picture.js +28 -0
  1130. package/lib/commonjs/skia/core/Picture.js.map +1 -0
  1131. package/lib/commonjs/skia/core/RRect.d.ts +2 -0
  1132. package/lib/commonjs/skia/core/RRect.js +14 -0
  1133. package/lib/commonjs/skia/core/RRect.js.map +1 -0
  1134. package/lib/commonjs/skia/core/Rect.d.ts +8 -0
  1135. package/lib/commonjs/skia/core/Rect.js +56 -0
  1136. package/lib/commonjs/skia/core/Rect.js.map +1 -0
  1137. package/lib/commonjs/skia/core/SVG.d.ts +2 -0
  1138. package/lib/commonjs/skia/core/SVG.js +12 -0
  1139. package/lib/commonjs/skia/core/SVG.js.map +1 -0
  1140. package/lib/commonjs/skia/core/SVG.web.d.ts +2 -0
  1141. package/lib/commonjs/skia/core/SVG.web.js +37 -0
  1142. package/lib/commonjs/skia/core/SVG.web.js.map +1 -0
  1143. package/lib/commonjs/skia/core/Typeface.d.ts +5 -0
  1144. package/lib/commonjs/skia/core/Typeface.js +16 -0
  1145. package/lib/commonjs/skia/core/Typeface.js.map +1 -0
  1146. package/lib/commonjs/skia/core/Vector.d.ts +7 -0
  1147. package/lib/commonjs/skia/core/Vector.js +39 -0
  1148. package/lib/commonjs/skia/core/Vector.js.map +1 -0
  1149. package/lib/commonjs/skia/core/index.d.ts +11 -0
  1150. package/lib/commonjs/skia/core/index.js +127 -0
  1151. package/lib/commonjs/skia/core/index.js.map +1 -0
  1152. package/lib/commonjs/skia/index.d.ts +3 -0
  1153. package/lib/commonjs/skia/index.js +40 -0
  1154. package/lib/commonjs/skia/index.js.map +1 -0
  1155. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.d.ts +29 -0
  1156. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.js +6 -0
  1157. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImage.js.map +1 -0
  1158. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +13 -0
  1159. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.js +6 -0
  1160. package/lib/commonjs/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -0
  1161. package/lib/commonjs/skia/types/AnimatedImage/index.d.ts +2 -0
  1162. package/lib/commonjs/skia/types/AnimatedImage/index.js +28 -0
  1163. package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -0
  1164. package/lib/commonjs/skia/types/Canvas.d.ts +409 -0
  1165. package/lib/commonjs/skia/types/Canvas.js +17 -0
  1166. package/lib/commonjs/skia/types/Canvas.js.map +1 -0
  1167. package/lib/commonjs/skia/types/Color.d.ts +2 -0
  1168. package/lib/commonjs/skia/types/Color.js +2 -0
  1169. package/lib/commonjs/skia/types/Color.js.map +1 -0
  1170. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
  1171. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +9 -0
  1172. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -0
  1173. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
  1174. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js +6 -0
  1175. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -0
  1176. package/lib/commonjs/skia/types/ColorFilter/index.d.ts +2 -0
  1177. package/lib/commonjs/skia/types/ColorFilter/index.js +28 -0
  1178. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -0
  1179. package/lib/commonjs/skia/types/ContourMeasure.d.ts +41 -0
  1180. package/lib/commonjs/skia/types/ContourMeasure.js +6 -0
  1181. package/lib/commonjs/skia/types/ContourMeasure.js.map +1 -0
  1182. package/lib/commonjs/skia/types/Data/Data.d.ts +18 -0
  1183. package/lib/commonjs/skia/types/Data/Data.js +15 -0
  1184. package/lib/commonjs/skia/types/Data/Data.js.map +1 -0
  1185. package/lib/commonjs/skia/types/Data/DataFactory.d.ts +18 -0
  1186. package/lib/commonjs/skia/types/Data/DataFactory.js +6 -0
  1187. package/lib/commonjs/skia/types/Data/DataFactory.js.map +1 -0
  1188. package/lib/commonjs/skia/types/Data/index.d.ts +2 -0
  1189. package/lib/commonjs/skia/types/Data/index.js +28 -0
  1190. package/lib/commonjs/skia/types/Data/index.js.map +1 -0
  1191. package/lib/commonjs/skia/types/Font/Font.d.ts +189 -0
  1192. package/lib/commonjs/skia/types/Font/Font.js +63 -0
  1193. package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
  1194. package/lib/commonjs/skia/types/Font/FontMgr.d.ts +8 -0
  1195. package/lib/commonjs/skia/types/Font/FontMgr.js +6 -0
  1196. package/lib/commonjs/skia/types/Font/FontMgr.js.map +1 -0
  1197. package/lib/commonjs/skia/types/Font/FontMgrFactory.d.ts +4 -0
  1198. package/lib/commonjs/skia/types/Font/FontMgrFactory.js +6 -0
  1199. package/lib/commonjs/skia/types/Font/FontMgrFactory.js.map +1 -0
  1200. package/lib/commonjs/skia/types/Font/index.d.ts +3 -0
  1201. package/lib/commonjs/skia/types/Font/index.js +39 -0
  1202. package/lib/commonjs/skia/types/Font/index.js.map +1 -0
  1203. package/lib/commonjs/skia/types/Graphite.d.ts +34 -0
  1204. package/lib/commonjs/skia/types/Graphite.js +6 -0
  1205. package/lib/commonjs/skia/types/Graphite.js.map +1 -0
  1206. package/lib/commonjs/skia/types/Image/ColorType.d.ts +21 -0
  1207. package/lib/commonjs/skia/types/Image/ColorType.js +47 -0
  1208. package/lib/commonjs/skia/types/Image/ColorType.js.map +1 -0
  1209. package/lib/commonjs/skia/types/Image/Image.d.ts +131 -0
  1210. package/lib/commonjs/skia/types/Image/Image.js +47 -0
  1211. package/lib/commonjs/skia/types/Image/Image.js.map +1 -0
  1212. package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +110 -0
  1213. package/lib/commonjs/skia/types/Image/ImageFactory.js +14 -0
  1214. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -0
  1215. package/lib/commonjs/skia/types/Image/index.d.ts +3 -0
  1216. package/lib/commonjs/skia/types/Image/index.js +39 -0
  1217. package/lib/commonjs/skia/types/Image/index.js.map +1 -0
  1218. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
  1219. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +30 -0
  1220. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -0
  1221. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.d.ts +367 -0
  1222. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +14 -0
  1223. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  1224. package/lib/commonjs/skia/types/ImageFilter/index.d.ts +2 -0
  1225. package/lib/commonjs/skia/types/ImageFilter/index.js +28 -0
  1226. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -0
  1227. package/lib/commonjs/skia/types/JsiInstance.d.ts +5 -0
  1228. package/lib/commonjs/skia/types/JsiInstance.js +2 -0
  1229. package/lib/commonjs/skia/types/JsiInstance.js.map +1 -0
  1230. package/lib/commonjs/skia/types/MaskFilter.d.ts +21 -0
  1231. package/lib/commonjs/skia/types/MaskFilter.js +23 -0
  1232. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
  1233. package/lib/commonjs/skia/types/Matrix.d.ts +23 -0
  1234. package/lib/commonjs/skia/types/Matrix.js +22 -0
  1235. package/lib/commonjs/skia/types/Matrix.js.map +1 -0
  1236. package/lib/commonjs/skia/types/Matrix4.d.ts +122 -0
  1237. package/lib/commonjs/skia/types/Matrix4.js +426 -0
  1238. package/lib/commonjs/skia/types/Matrix4.js.map +1 -0
  1239. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.d.ts +29 -0
  1240. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js +15 -0
  1241. package/lib/commonjs/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -0
  1242. package/lib/commonjs/skia/types/NativeBuffer/index.d.ts +1 -0
  1243. package/lib/commonjs/skia/types/NativeBuffer/index.js +17 -0
  1244. package/lib/commonjs/skia/types/NativeBuffer/index.js.map +1 -0
  1245. package/lib/commonjs/skia/types/Paint/BlendMode.d.ts +60 -0
  1246. package/lib/commonjs/skia/types/Paint/BlendMode.js +100 -0
  1247. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -0
  1248. package/lib/commonjs/skia/types/Paint/Paint.d.ts +142 -0
  1249. package/lib/commonjs/skia/types/Paint/Paint.js +26 -0
  1250. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
  1251. package/lib/commonjs/skia/types/Paint/index.d.ts +2 -0
  1252. package/lib/commonjs/skia/types/Paint/index.js +28 -0
  1253. package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
  1254. package/lib/commonjs/skia/types/Paragraph/Paragraph.d.ts +171 -0
  1255. package/lib/commonjs/skia/types/Paragraph/Paragraph.js +6 -0
  1256. package/lib/commonjs/skia/types/Paragraph/Paragraph.js.map +1 -0
  1257. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.d.ts +60 -0
  1258. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js +30 -0
  1259. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -0
  1260. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.d.ts +41 -0
  1261. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js +28 -0
  1262. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -0
  1263. package/lib/commonjs/skia/types/Paragraph/TextStyle.d.ts +62 -0
  1264. package/lib/commonjs/skia/types/Paragraph/TextStyle.js +27 -0
  1265. package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -0
  1266. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.d.ts +10 -0
  1267. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.js +6 -0
  1268. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -0
  1269. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +4 -0
  1270. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.js +6 -0
  1271. package/lib/commonjs/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -0
  1272. package/lib/commonjs/skia/types/Paragraph/index.d.ts +6 -0
  1273. package/lib/commonjs/skia/types/Paragraph/index.js +72 -0
  1274. package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -0
  1275. package/lib/commonjs/skia/types/Path/Path.d.ts +141 -0
  1276. package/lib/commonjs/skia/types/Path/Path.js +44 -0
  1277. package/lib/commonjs/skia/types/Path/Path.js.map +1 -0
  1278. package/lib/commonjs/skia/types/Path/PathBuilder.d.ts +201 -0
  1279. package/lib/commonjs/skia/types/Path/PathBuilder.js +6 -0
  1280. package/lib/commonjs/skia/types/Path/PathBuilder.js.map +1 -0
  1281. package/lib/commonjs/skia/types/Path/PathBuilderFactory.d.ts +13 -0
  1282. package/lib/commonjs/skia/types/Path/PathBuilderFactory.js +6 -0
  1283. package/lib/commonjs/skia/types/Path/PathBuilderFactory.js.map +1 -0
  1284. package/lib/commonjs/skia/types/Path/PathFactory.d.ts +115 -0
  1285. package/lib/commonjs/skia/types/Path/PathFactory.js +6 -0
  1286. package/lib/commonjs/skia/types/Path/PathFactory.js.map +1 -0
  1287. package/lib/commonjs/skia/types/Path/index.d.ts +4 -0
  1288. package/lib/commonjs/skia/types/Path/index.js +50 -0
  1289. package/lib/commonjs/skia/types/Path/index.js.map +1 -0
  1290. package/lib/commonjs/skia/types/PathEffect.d.ts +75 -0
  1291. package/lib/commonjs/skia/types/PathEffect.js +15 -0
  1292. package/lib/commonjs/skia/types/PathEffect.js.map +1 -0
  1293. package/lib/commonjs/skia/types/Picture/Picture.d.ts +27 -0
  1294. package/lib/commonjs/skia/types/Picture/Picture.js +6 -0
  1295. package/lib/commonjs/skia/types/Picture/Picture.js.map +1 -0
  1296. package/lib/commonjs/skia/types/Picture/PictureFactory.d.ts +8 -0
  1297. package/lib/commonjs/skia/types/Picture/PictureFactory.js +6 -0
  1298. package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -0
  1299. package/lib/commonjs/skia/types/Picture/PictureRecorder.d.ts +16 -0
  1300. package/lib/commonjs/skia/types/Picture/PictureRecorder.js +6 -0
  1301. package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -0
  1302. package/lib/commonjs/skia/types/Picture/index.d.ts +3 -0
  1303. package/lib/commonjs/skia/types/Picture/index.js +39 -0
  1304. package/lib/commonjs/skia/types/Picture/index.js.map +1 -0
  1305. package/lib/commonjs/skia/types/Point.d.ts +10 -0
  1306. package/lib/commonjs/skia/types/Point.js +13 -0
  1307. package/lib/commonjs/skia/types/Point.js.map +1 -0
  1308. package/lib/commonjs/skia/types/RRect.d.ts +16 -0
  1309. package/lib/commonjs/skia/types/RRect.js +16 -0
  1310. package/lib/commonjs/skia/types/RRect.js.map +1 -0
  1311. package/lib/commonjs/skia/types/RSXform.d.ts +8 -0
  1312. package/lib/commonjs/skia/types/RSXform.js +6 -0
  1313. package/lib/commonjs/skia/types/RSXform.js.map +1 -0
  1314. package/lib/commonjs/skia/types/Recorder.d.ts +64 -0
  1315. package/lib/commonjs/skia/types/Recorder.js +6 -0
  1316. package/lib/commonjs/skia/types/Recorder.js.map +1 -0
  1317. package/lib/commonjs/skia/types/Rect.d.ts +11 -0
  1318. package/lib/commonjs/skia/types/Rect.js +17 -0
  1319. package/lib/commonjs/skia/types/Rect.js.map +1 -0
  1320. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
  1321. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js +6 -0
  1322. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -0
  1323. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
  1324. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js +6 -0
  1325. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
  1326. package/lib/commonjs/skia/types/RuntimeEffect/index.d.ts +2 -0
  1327. package/lib/commonjs/skia/types/RuntimeEffect/index.js +28 -0
  1328. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -0
  1329. package/lib/commonjs/skia/types/SVG/SVG.d.ts +5 -0
  1330. package/lib/commonjs/skia/types/SVG/SVG.js +6 -0
  1331. package/lib/commonjs/skia/types/SVG/SVG.js.map +1 -0
  1332. package/lib/commonjs/skia/types/SVG/SVGFactory.d.ts +7 -0
  1333. package/lib/commonjs/skia/types/SVG/SVGFactory.js +6 -0
  1334. package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -0
  1335. package/lib/commonjs/skia/types/SVG/index.d.ts +2 -0
  1336. package/lib/commonjs/skia/types/SVG/index.js +28 -0
  1337. package/lib/commonjs/skia/types/SVG/index.js.map +1 -0
  1338. package/lib/commonjs/skia/types/Shader/Shader.d.ts +10 -0
  1339. package/lib/commonjs/skia/types/Shader/Shader.js +52 -0
  1340. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -0
  1341. package/lib/commonjs/skia/types/Shader/ShaderFactory.d.ts +104 -0
  1342. package/lib/commonjs/skia/types/Shader/ShaderFactory.js +6 -0
  1343. package/lib/commonjs/skia/types/Shader/ShaderFactory.js.map +1 -0
  1344. package/lib/commonjs/skia/types/Shader/index.d.ts +2 -0
  1345. package/lib/commonjs/skia/types/Shader/index.js +28 -0
  1346. package/lib/commonjs/skia/types/Shader/index.js.map +1 -0
  1347. package/lib/commonjs/skia/types/Size.d.ts +4 -0
  1348. package/lib/commonjs/skia/types/Size.js +2 -0
  1349. package/lib/commonjs/skia/types/Size.js.map +1 -0
  1350. package/lib/commonjs/skia/types/Skia.d.ts +90 -0
  1351. package/lib/commonjs/skia/types/Skia.js +6 -0
  1352. package/lib/commonjs/skia/types/Skia.js.map +1 -0
  1353. package/lib/commonjs/skia/types/Skottie.d.ts +223 -0
  1354. package/lib/commonjs/skia/types/Skottie.js +73 -0
  1355. package/lib/commonjs/skia/types/Skottie.js.map +1 -0
  1356. package/lib/commonjs/skia/types/Surface/Surface.d.ts +52 -0
  1357. package/lib/commonjs/skia/types/Surface/Surface.js +6 -0
  1358. package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -0
  1359. package/lib/commonjs/skia/types/Surface/SurfaceFactory.d.ts +42 -0
  1360. package/lib/commonjs/skia/types/Surface/SurfaceFactory.js +11 -0
  1361. package/lib/commonjs/skia/types/Surface/SurfaceFactory.js.map +1 -0
  1362. package/lib/commonjs/skia/types/Surface/index.d.ts +2 -0
  1363. package/lib/commonjs/skia/types/Surface/index.js +28 -0
  1364. package/lib/commonjs/skia/types/Surface/index.js.map +1 -0
  1365. package/lib/commonjs/skia/types/TextBlob.d.ts +44 -0
  1366. package/lib/commonjs/skia/types/TextBlob.js +6 -0
  1367. package/lib/commonjs/skia/types/TextBlob.js.map +1 -0
  1368. package/lib/commonjs/skia/types/Typeface/Typeface.d.ts +11 -0
  1369. package/lib/commonjs/skia/types/Typeface/Typeface.js +6 -0
  1370. package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -0
  1371. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
  1372. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js +6 -0
  1373. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js.map +1 -0
  1374. package/lib/commonjs/skia/types/Typeface/index.d.ts +2 -0
  1375. package/lib/commonjs/skia/types/Typeface/index.js +28 -0
  1376. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
  1377. package/lib/commonjs/skia/types/Vertices/Vertices.d.ts +17 -0
  1378. package/lib/commonjs/skia/types/Vertices/Vertices.js +13 -0
  1379. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -0
  1380. package/lib/commonjs/skia/types/Vertices/index.d.ts +1 -0
  1381. package/lib/commonjs/skia/types/Vertices/index.js +17 -0
  1382. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -0
  1383. package/lib/commonjs/skia/types/Video/Video.d.ts +20 -0
  1384. package/lib/commonjs/skia/types/Video/Video.js +6 -0
  1385. package/lib/commonjs/skia/types/Video/Video.js.map +1 -0
  1386. package/lib/commonjs/skia/types/Video/index.d.ts +1 -0
  1387. package/lib/commonjs/skia/types/Video/index.js +17 -0
  1388. package/lib/commonjs/skia/types/Video/index.js.map +1 -0
  1389. package/lib/commonjs/skia/types/index.d.ts +36 -0
  1390. package/lib/commonjs/skia/types/index.js +402 -0
  1391. package/lib/commonjs/skia/types/index.js.map +1 -0
  1392. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.d.ts +9 -0
  1393. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js +30 -0
  1394. package/lib/commonjs/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -0
  1395. package/lib/commonjs/skia/web/Host.d.ts +19 -0
  1396. package/lib/commonjs/skia/web/Host.js +71 -0
  1397. package/lib/commonjs/skia/web/Host.js.map +1 -0
  1398. package/lib/commonjs/skia/web/JsiSkAnimatedImage.d.ts +11 -0
  1399. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +31 -0
  1400. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -0
  1401. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.d.ts +9 -0
  1402. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js +23 -0
  1403. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -0
  1404. package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +47 -0
  1405. package/lib/commonjs/skia/web/JsiSkCanvas.js +196 -0
  1406. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
  1407. package/lib/commonjs/skia/web/JsiSkColor.d.ts +2 -0
  1408. package/lib/commonjs/skia/web/JsiSkColor.js +304 -0
  1409. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
  1410. package/lib/commonjs/skia/web/JsiSkColorFilter.d.ts +6 -0
  1411. package/lib/commonjs/skia/web/JsiSkColorFilter.js +14 -0
  1412. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -0
  1413. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  1414. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +36 -0
  1415. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  1416. package/lib/commonjs/skia/web/JsiSkContourMeasure.d.ts +12 -0
  1417. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +32 -0
  1418. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
  1419. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  1420. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +22 -0
  1421. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  1422. package/lib/commonjs/skia/web/JsiSkData.d.ts +8 -0
  1423. package/lib/commonjs/skia/web/JsiSkData.js +14 -0
  1424. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
  1425. package/lib/commonjs/skia/web/JsiSkDataFactory.d.ts +19 -0
  1426. package/lib/commonjs/skia/web/JsiSkDataFactory.js +33 -0
  1427. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
  1428. package/lib/commonjs/skia/web/JsiSkFont.d.ts +34 -0
  1429. package/lib/commonjs/skia/web/JsiSkFont.js +134 -0
  1430. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
  1431. package/lib/commonjs/skia/web/JsiSkFontMgr.d.ts +10 -0
  1432. package/lib/commonjs/skia/web/JsiSkFontMgr.js +26 -0
  1433. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
  1434. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
  1435. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +22 -0
  1436. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  1437. package/lib/commonjs/skia/web/JsiSkImage.d.ts +17 -0
  1438. package/lib/commonjs/skia/web/JsiSkImage.js +122 -0
  1439. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -0
  1440. package/lib/commonjs/skia/web/JsiSkImageFactory.d.ts +16 -0
  1441. package/lib/commonjs/skia/web/JsiSkImageFactory.js +80 -0
  1442. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
  1443. package/lib/commonjs/skia/web/JsiSkImageFilter.d.ts +6 -0
  1444. package/lib/commonjs/skia/web/JsiSkImageFilter.js +14 -0
  1445. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
  1446. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +36 -0
  1447. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +151 -0
  1448. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -0
  1449. package/lib/commonjs/skia/web/JsiSkMaskFilter.d.ts +6 -0
  1450. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +14 -0
  1451. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
  1452. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  1453. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +18 -0
  1454. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  1455. package/lib/commonjs/skia/web/JsiSkMatrix.d.ts +19 -0
  1456. package/lib/commonjs/skia/web/JsiSkMatrix.js +67 -0
  1457. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
  1458. package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.d.ts +9 -0
  1459. package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js +48 -0
  1460. package/lib/commonjs/skia/web/JsiSkNativeBufferFactory.js.map +1 -0
  1461. package/lib/commonjs/skia/web/JsiSkPaint.d.ts +30 -0
  1462. package/lib/commonjs/skia/web/JsiSkPaint.js +167 -0
  1463. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
  1464. package/lib/commonjs/skia/web/JsiSkParagraph.d.ts +20 -0
  1465. package/lib/commonjs/skia/web/JsiSkParagraph.js +66 -0
  1466. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -0
  1467. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.d.ts +14 -0
  1468. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js +60 -0
  1469. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -0
  1470. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.d.ts +8 -0
  1471. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +27 -0
  1472. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -0
  1473. package/lib/commonjs/skia/web/JsiSkParagraphStyle.d.ts +5 -0
  1474. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js +65 -0
  1475. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -0
  1476. package/lib/commonjs/skia/web/JsiSkPath.d.ts +35 -0
  1477. package/lib/commonjs/skia/web/JsiSkPath.js +176 -0
  1478. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
  1479. package/lib/commonjs/skia/web/JsiSkPathBuilder.d.ts +45 -0
  1480. package/lib/commonjs/skia/web/JsiSkPathBuilder.js +192 -0
  1481. package/lib/commonjs/skia/web/JsiSkPathBuilder.js.map +1 -0
  1482. package/lib/commonjs/skia/web/JsiSkPathBuilderFactory.d.ts +9 -0
  1483. package/lib/commonjs/skia/web/JsiSkPathBuilderFactory.js +26 -0
  1484. package/lib/commonjs/skia/web/JsiSkPathBuilderFactory.js.map +1 -0
  1485. package/lib/commonjs/skia/web/JsiSkPathEffect.d.ts +6 -0
  1486. package/lib/commonjs/skia/web/JsiSkPathEffect.js +14 -0
  1487. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
  1488. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  1489. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +63 -0
  1490. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  1491. package/lib/commonjs/skia/web/JsiSkPathFactory.d.ts +25 -0
  1492. package/lib/commonjs/skia/web/JsiSkPathFactory.js +177 -0
  1493. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -0
  1494. package/lib/commonjs/skia/web/JsiSkPicture.d.ts +9 -0
  1495. package/lib/commonjs/skia/web/JsiSkPicture.js +25 -0
  1496. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -0
  1497. package/lib/commonjs/skia/web/JsiSkPictureFactory.d.ts +8 -0
  1498. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +22 -0
  1499. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
  1500. package/lib/commonjs/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  1501. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +23 -0
  1502. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
  1503. package/lib/commonjs/skia/web/JsiSkPoint.d.ts +9 -0
  1504. package/lib/commonjs/skia/web/JsiSkPoint.js +26 -0
  1505. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
  1506. package/lib/commonjs/skia/web/JsiSkRRect.d.ts +12 -0
  1507. package/lib/commonjs/skia/web/JsiSkRRect.js +47 -0
  1508. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
  1509. package/lib/commonjs/skia/web/JsiSkRSXform.d.ts +13 -0
  1510. package/lib/commonjs/skia/web/JsiSkRSXform.js +38 -0
  1511. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
  1512. package/lib/commonjs/skia/web/JsiSkRect.d.ts +12 -0
  1513. package/lib/commonjs/skia/web/JsiSkRect.js +38 -0
  1514. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -0
  1515. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.d.ts +16 -0
  1516. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +38 -0
  1517. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  1518. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  1519. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +22 -0
  1520. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  1521. package/lib/commonjs/skia/web/JsiSkSVG.d.ts +9 -0
  1522. package/lib/commonjs/skia/web/JsiSkSVG.js +25 -0
  1523. package/lib/commonjs/skia/web/JsiSkSVG.js.map +1 -0
  1524. package/lib/commonjs/skia/web/JsiSkSVGFactory.d.ts +10 -0
  1525. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +56 -0
  1526. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
  1527. package/lib/commonjs/skia/web/JsiSkShader.d.ts +6 -0
  1528. package/lib/commonjs/skia/web/JsiSkShader.js +14 -0
  1529. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
  1530. package/lib/commonjs/skia/web/JsiSkShaderFactory.d.ts +16 -0
  1531. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +41 -0
  1532. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
  1533. package/lib/commonjs/skia/web/JsiSkSurface.d.ts +14 -0
  1534. package/lib/commonjs/skia/web/JsiSkSurface.js +44 -0
  1535. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -0
  1536. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.d.ts +10 -0
  1537. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +42 -0
  1538. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -0
  1539. package/lib/commonjs/skia/web/JsiSkTextBlob.d.ts +6 -0
  1540. package/lib/commonjs/skia/web/JsiSkTextBlob.js +14 -0
  1541. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
  1542. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
  1543. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +30 -0
  1544. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  1545. package/lib/commonjs/skia/web/JsiSkTextStyle.d.ts +5 -0
  1546. package/lib/commonjs/skia/web/JsiSkTextStyle.js +51 -0
  1547. package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -0
  1548. package/lib/commonjs/skia/web/JsiSkTypeface.d.ts +9 -0
  1549. package/lib/commonjs/skia/web/JsiSkTypeface.js +25 -0
  1550. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
  1551. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  1552. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +22 -0
  1553. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  1554. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.d.ts +11 -0
  1555. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +64 -0
  1556. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -0
  1557. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +7 -0
  1558. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js +19 -0
  1559. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -0
  1560. package/lib/commonjs/skia/web/JsiSkVertices.d.ts +9 -0
  1561. package/lib/commonjs/skia/web/JsiSkVertices.js +21 -0
  1562. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
  1563. package/lib/commonjs/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  1564. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +30 -0
  1565. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
  1566. package/lib/commonjs/skia/web/JsiSkia.d.ts +3 -0
  1567. package/lib/commonjs/skia/web/JsiSkia.js +104 -0
  1568. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
  1569. package/lib/commonjs/skia/web/JsiSkottieAnimation.d.ts +58 -0
  1570. package/lib/commonjs/skia/web/JsiSkottieAnimation.js +240 -0
  1571. package/lib/commonjs/skia/web/JsiSkottieAnimation.js.map +1 -0
  1572. package/lib/commonjs/skia/web/JsiSkottieFactory.d.ts +9 -0
  1573. package/lib/commonjs/skia/web/JsiSkottieFactory.js +26 -0
  1574. package/lib/commonjs/skia/web/JsiSkottieFactory.js.map +1 -0
  1575. package/lib/commonjs/skia/web/JsiVideo.d.ts +28 -0
  1576. package/lib/commonjs/skia/web/JsiVideo.js +96 -0
  1577. package/lib/commonjs/skia/web/JsiVideo.js.map +1 -0
  1578. package/lib/commonjs/skia/web/index.d.ts +1 -0
  1579. package/lib/commonjs/skia/web/index.js +17 -0
  1580. package/lib/commonjs/skia/web/index.js.map +1 -0
  1581. package/lib/commonjs/sksg/Container.d.ts +3 -0
  1582. package/lib/commonjs/sksg/Container.js +12 -0
  1583. package/lib/commonjs/sksg/Container.js.map +1 -0
  1584. package/lib/commonjs/sksg/Container.native.d.ts +28 -0
  1585. package/lib/commonjs/sksg/Container.native.js +110 -0
  1586. package/lib/commonjs/sksg/Container.native.js.map +1 -0
  1587. package/lib/commonjs/sksg/Container.web.d.ts +13 -0
  1588. package/lib/commonjs/sksg/Container.web.js +131 -0
  1589. package/lib/commonjs/sksg/Container.web.js.map +1 -0
  1590. package/lib/commonjs/sksg/Elements.d.ts +67 -0
  1591. package/lib/commonjs/sksg/Elements.js +6 -0
  1592. package/lib/commonjs/sksg/Elements.js.map +1 -0
  1593. package/lib/commonjs/sksg/HostConfig.d.ts +19 -0
  1594. package/lib/commonjs/sksg/HostConfig.js +181 -0
  1595. package/lib/commonjs/sksg/HostConfig.js.map +1 -0
  1596. package/lib/commonjs/sksg/Node.d.ts +19 -0
  1597. package/lib/commonjs/sksg/Node.js +78 -0
  1598. package/lib/commonjs/sksg/Node.js.map +1 -0
  1599. package/lib/commonjs/sksg/Reconciler.d.ts +21 -0
  1600. package/lib/commonjs/sksg/Reconciler.js +72 -0
  1601. package/lib/commonjs/sksg/Reconciler.js.map +1 -0
  1602. package/lib/commonjs/sksg/Recorder/Core.d.ts +83 -0
  1603. package/lib/commonjs/sksg/Recorder/Core.js +94 -0
  1604. package/lib/commonjs/sksg/Recorder/Core.js.map +1 -0
  1605. package/lib/commonjs/sksg/Recorder/Debug.d.ts +2 -0
  1606. package/lib/commonjs/sksg/Recorder/Debug.js +86 -0
  1607. package/lib/commonjs/sksg/Recorder/Debug.js.map +1 -0
  1608. package/lib/commonjs/sksg/Recorder/DrawingContext.d.ts +23 -0
  1609. package/lib/commonjs/sksg/Recorder/DrawingContext.js +149 -0
  1610. package/lib/commonjs/sksg/Recorder/DrawingContext.js.map +1 -0
  1611. package/lib/commonjs/sksg/Recorder/FrameScope.d.ts +18 -0
  1612. package/lib/commonjs/sksg/Recorder/FrameScope.js +66 -0
  1613. package/lib/commonjs/sksg/Recorder/FrameScope.js.map +1 -0
  1614. package/lib/commonjs/sksg/Recorder/FrameScope.native.d.ts +10 -0
  1615. package/lib/commonjs/sksg/Recorder/FrameScope.native.js +26 -0
  1616. package/lib/commonjs/sksg/Recorder/FrameScope.native.js.map +1 -0
  1617. package/lib/commonjs/sksg/Recorder/Player.d.ts +3 -0
  1618. package/lib/commonjs/sksg/Recorder/Player.js +185 -0
  1619. package/lib/commonjs/sksg/Recorder/Player.js.map +1 -0
  1620. package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.d.ts +59 -0
  1621. package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js +214 -0
  1622. package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js.map +1 -0
  1623. package/lib/commonjs/sksg/Recorder/Recorder.d.ts +68 -0
  1624. package/lib/commonjs/sksg/Recorder/Recorder.js +336 -0
  1625. package/lib/commonjs/sksg/Recorder/Recorder.js.map +1 -0
  1626. package/lib/commonjs/sksg/Recorder/Visitor.d.ts +5 -0
  1627. package/lib/commonjs/sksg/Recorder/Visitor.js +315 -0
  1628. package/lib/commonjs/sksg/Recorder/Visitor.js.map +1 -0
  1629. package/lib/commonjs/sksg/Recorder/commands/Box.d.ts +13 -0
  1630. package/lib/commonjs/sksg/Recorder/commands/Box.js +69 -0
  1631. package/lib/commonjs/sksg/Recorder/commands/Box.js.map +1 -0
  1632. package/lib/commonjs/sksg/Recorder/commands/CTM.d.ts +3 -0
  1633. package/lib/commonjs/sksg/Recorder/commands/CTM.js +79 -0
  1634. package/lib/commonjs/sksg/Recorder/commands/CTM.js.map +1 -0
  1635. package/lib/commonjs/sksg/Recorder/commands/ColorFilters.d.ts +6 -0
  1636. package/lib/commonjs/sksg/Recorder/commands/ColorFilters.js +76 -0
  1637. package/lib/commonjs/sksg/Recorder/commands/ColorFilters.js.map +1 -0
  1638. package/lib/commonjs/sksg/Recorder/commands/Drawing.d.ts +22 -0
  1639. package/lib/commonjs/sksg/Recorder/commands/Drawing.js +370 -0
  1640. package/lib/commonjs/sksg/Recorder/commands/Drawing.js.map +1 -0
  1641. package/lib/commonjs/sksg/Recorder/commands/ImageFilters.d.ts +12 -0
  1642. package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js +207 -0
  1643. package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js.map +1 -0
  1644. package/lib/commonjs/sksg/Recorder/commands/Paint.d.ts +4 -0
  1645. package/lib/commonjs/sksg/Recorder/commands/Paint.js +63 -0
  1646. package/lib/commonjs/sksg/Recorder/commands/Paint.js.map +1 -0
  1647. package/lib/commonjs/sksg/Recorder/commands/PathEffects.d.ts +6 -0
  1648. package/lib/commonjs/sksg/Recorder/commands/PathEffects.js +137 -0
  1649. package/lib/commonjs/sksg/Recorder/commands/PathEffects.js.map +1 -0
  1650. package/lib/commonjs/sksg/Recorder/commands/Shaders.d.ts +5 -0
  1651. package/lib/commonjs/sksg/Recorder/commands/Shaders.js +221 -0
  1652. package/lib/commonjs/sksg/Recorder/commands/Shaders.js.map +1 -0
  1653. package/lib/commonjs/sksg/StaticContainer.d.ts +23 -0
  1654. package/lib/commonjs/sksg/StaticContainer.js +90 -0
  1655. package/lib/commonjs/sksg/StaticContainer.js.map +1 -0
  1656. package/lib/commonjs/sksg/utils.d.ts +10 -0
  1657. package/lib/commonjs/sksg/utils.js +51 -0
  1658. package/lib/commonjs/sksg/utils.js.map +1 -0
  1659. package/lib/commonjs/specs/NativeSkiaModule.d.ts +6 -0
  1660. package/lib/commonjs/specs/NativeSkiaModule.js +10 -0
  1661. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -0
  1662. package/lib/commonjs/specs/NativeSkiaModule.web.d.ts +25 -0
  1663. package/lib/commonjs/specs/NativeSkiaModule.web.js +104 -0
  1664. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -0
  1665. package/lib/commonjs/specs/SkiaGraphiteViewNativeComponent.d.ts +10 -0
  1666. package/lib/commonjs/specs/SkiaGraphiteViewNativeComponent.js +12 -0
  1667. package/lib/commonjs/specs/SkiaGraphiteViewNativeComponent.js.map +1 -0
  1668. package/lib/commonjs/specs/SkiaGraphiteViewNativeComponent.web.d.ts +9 -0
  1669. package/lib/commonjs/specs/SkiaGraphiteViewNativeComponent.web.js +28 -0
  1670. package/lib/commonjs/specs/SkiaGraphiteViewNativeComponent.web.js.map +1 -0
  1671. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.d.ts +14 -0
  1672. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +12 -0
  1673. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -0
  1674. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.web.d.ts +10 -0
  1675. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.web.js +29 -0
  1676. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.web.js.map +1 -0
  1677. package/lib/commonjs/views/SkiaGraphiteView.d.ts +20 -0
  1678. package/lib/commonjs/views/SkiaGraphiteView.js +58 -0
  1679. package/lib/commonjs/views/SkiaGraphiteView.js.map +1 -0
  1680. package/lib/commonjs/views/SkiaGraphiteView.web.d.ts +14 -0
  1681. package/lib/commonjs/views/SkiaGraphiteView.web.js +260 -0
  1682. package/lib/commonjs/views/SkiaGraphiteView.web.js.map +1 -0
  1683. package/lib/commonjs/views/SkiaPictureView.d.ts +28 -0
  1684. package/lib/commonjs/views/SkiaPictureView.js +99 -0
  1685. package/lib/commonjs/views/SkiaPictureView.js.map +1 -0
  1686. package/lib/commonjs/views/SkiaPictureView.web.d.ts +11 -0
  1687. package/lib/commonjs/views/SkiaPictureView.web.js +165 -0
  1688. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -0
  1689. package/lib/commonjs/views/SkiaViewNativeId.d.ts +3 -0
  1690. package/lib/commonjs/views/SkiaViewNativeId.js +10 -0
  1691. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -0
  1692. package/lib/commonjs/views/SkiaWebRenderer.d.ts +79 -0
  1693. package/lib/commonjs/views/SkiaWebRenderer.js +578 -0
  1694. package/lib/commonjs/views/SkiaWebRenderer.js.map +1 -0
  1695. package/lib/commonjs/views/api.d.ts +5 -0
  1696. package/lib/commonjs/views/api.js +11 -0
  1697. package/lib/commonjs/views/api.js.map +1 -0
  1698. package/lib/commonjs/views/formats.d.ts +1 -0
  1699. package/lib/commonjs/views/formats.js +28 -0
  1700. package/lib/commonjs/views/formats.js.map +1 -0
  1701. package/lib/commonjs/views/index.d.ts +4 -0
  1702. package/lib/commonjs/views/index.js +50 -0
  1703. package/lib/commonjs/views/index.js.map +1 -0
  1704. package/lib/commonjs/views/types.d.ts +69 -0
  1705. package/lib/commonjs/views/types.js +6 -0
  1706. package/lib/commonjs/views/types.js.map +1 -0
  1707. package/lib/commonjs/web/LoadSkiaWeb.d.ts +6 -0
  1708. package/lib/commonjs/web/LoadSkiaWeb.js +27 -0
  1709. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -0
  1710. package/lib/commonjs/web/WithSkiaWeb.d.ts +19 -0
  1711. package/lib/commonjs/web/WithSkiaWeb.js +36 -0
  1712. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -0
  1713. package/lib/commonjs/web/index.d.ts +2 -0
  1714. package/lib/commonjs/web/index.js +28 -0
  1715. package/lib/commonjs/web/index.js.map +1 -0
  1716. package/lib/module/Platform/IPlatform.d.ts +9 -0
  1717. package/lib/module/Platform/IPlatform.js +2 -0
  1718. package/lib/module/Platform/IPlatform.js.map +1 -0
  1719. package/lib/module/Platform/Platform.d.ts +2 -0
  1720. package/lib/module/Platform/Platform.js +16 -0
  1721. package/lib/module/Platform/Platform.js.map +1 -0
  1722. package/lib/module/Platform/Platform.web.d.ts +2 -0
  1723. package/lib/module/Platform/Platform.web.js +66 -0
  1724. package/lib/module/Platform/Platform.web.js.map +1 -0
  1725. package/lib/module/Platform/index.d.ts +1 -0
  1726. package/lib/module/Platform/index.js +2 -0
  1727. package/lib/module/Platform/index.js.map +1 -0
  1728. package/lib/module/animation/functions/index.d.ts +4 -0
  1729. package/lib/module/animation/functions/index.js +5 -0
  1730. package/lib/module/animation/functions/index.js.map +1 -0
  1731. package/lib/module/animation/functions/interpolate.d.ts +17 -0
  1732. package/lib/module/animation/functions/interpolate.js +123 -0
  1733. package/lib/module/animation/functions/interpolate.js.map +1 -0
  1734. package/lib/module/animation/functions/interpolateColors.d.ts +3 -0
  1735. package/lib/module/animation/functions/interpolateColors.js +27 -0
  1736. package/lib/module/animation/functions/interpolateColors.js.map +1 -0
  1737. package/lib/module/animation/functions/interpolatePaths.d.ts +19 -0
  1738. package/lib/module/animation/functions/interpolatePaths.js +80 -0
  1739. package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
  1740. package/lib/module/animation/functions/interpolateVector.d.ts +10 -0
  1741. package/lib/module/animation/functions/interpolateVector.js +15 -0
  1742. package/lib/module/animation/functions/interpolateVector.js.map +1 -0
  1743. package/lib/module/animation/index.d.ts +1 -0
  1744. package/lib/module/animation/index.js +2 -0
  1745. package/lib/module/animation/index.js.map +1 -0
  1746. package/lib/module/dom/nodes/datatypes/Circle.d.ts +6 -0
  1747. package/lib/module/dom/nodes/datatypes/Circle.js +29 -0
  1748. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -0
  1749. package/lib/module/dom/nodes/datatypes/Enum.d.ts +1 -0
  1750. package/lib/module/dom/nodes/datatypes/Enum.js +6 -0
  1751. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -0
  1752. package/lib/module/dom/nodes/datatypes/Fitting.d.ts +33 -0
  1753. package/lib/module/dom/nodes/datatypes/Fitting.js +132 -0
  1754. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -0
  1755. package/lib/module/dom/nodes/datatypes/Gradient.d.ts +253 -0
  1756. package/lib/module/dom/nodes/datatypes/Gradient.js +64 -0
  1757. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -0
  1758. package/lib/module/dom/nodes/datatypes/Path.d.ts +4 -0
  1759. package/lib/module/dom/nodes/datatypes/Path.js +18 -0
  1760. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -0
  1761. package/lib/module/dom/nodes/datatypes/Radius.d.ts +3 -0
  1762. package/lib/module/dom/nodes/datatypes/Radius.js +9 -0
  1763. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -0
  1764. package/lib/module/dom/nodes/datatypes/Rect.d.ts +7 -0
  1765. package/lib/module/dom/nodes/datatypes/Rect.js +57 -0
  1766. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -0
  1767. package/lib/module/dom/nodes/datatypes/Transform.d.ts +4 -0
  1768. package/lib/module/dom/nodes/datatypes/Transform.js +59 -0
  1769. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -0
  1770. package/lib/module/dom/nodes/datatypes/index.d.ts +8 -0
  1771. package/lib/module/dom/nodes/datatypes/index.js +9 -0
  1772. package/lib/module/dom/nodes/datatypes/index.js.map +1 -0
  1773. package/lib/module/dom/nodes/index.d.ts +2 -0
  1774. package/lib/module/dom/nodes/index.js +3 -0
  1775. package/lib/module/dom/nodes/index.js.map +1 -0
  1776. package/lib/module/dom/types/ColorFilters.d.ts +12 -0
  1777. package/lib/module/dom/types/ColorFilters.js +2 -0
  1778. package/lib/module/dom/types/ColorFilters.js.map +1 -0
  1779. package/lib/module/dom/types/Common.d.ts +60 -0
  1780. package/lib/module/dom/types/Common.js +2 -0
  1781. package/lib/module/dom/types/Common.js.map +1 -0
  1782. package/lib/module/dom/types/Drawings.d.ts +121 -0
  1783. package/lib/module/dom/types/Drawings.js +2 -0
  1784. package/lib/module/dom/types/Drawings.js.map +1 -0
  1785. package/lib/module/dom/types/ImageFilters.d.ts +37 -0
  1786. package/lib/module/dom/types/ImageFilters.js +2 -0
  1787. package/lib/module/dom/types/ImageFilters.js.map +1 -0
  1788. package/lib/module/dom/types/MaskFilters.d.ts +7 -0
  1789. package/lib/module/dom/types/MaskFilters.js +2 -0
  1790. package/lib/module/dom/types/MaskFilters.js.map +1 -0
  1791. package/lib/module/dom/types/Node.d.ts +17 -0
  1792. package/lib/module/dom/types/Node.js +2 -0
  1793. package/lib/module/dom/types/Node.js.map +1 -0
  1794. package/lib/module/dom/types/NodeType.d.ts +61 -0
  1795. package/lib/module/dom/types/NodeType.js +73 -0
  1796. package/lib/module/dom/types/NodeType.js.map +1 -0
  1797. package/lib/module/dom/types/Paragraph.d.ts +8 -0
  1798. package/lib/module/dom/types/Paragraph.js +2 -0
  1799. package/lib/module/dom/types/Paragraph.js.map +1 -0
  1800. package/lib/module/dom/types/PathEffects.d.ts +28 -0
  1801. package/lib/module/dom/types/PathEffects.js +2 -0
  1802. package/lib/module/dom/types/PathEffects.js.map +1 -0
  1803. package/lib/module/dom/types/Shaders.d.ts +58 -0
  1804. package/lib/module/dom/types/Shaders.js +2 -0
  1805. package/lib/module/dom/types/Shaders.js.map +1 -0
  1806. package/lib/module/dom/types/SkDOM.d.ts +73 -0
  1807. package/lib/module/dom/types/SkDOM.js +2 -0
  1808. package/lib/module/dom/types/SkDOM.js.map +1 -0
  1809. package/lib/module/dom/types/index.d.ts +11 -0
  1810. package/lib/module/dom/types/index.js +12 -0
  1811. package/lib/module/dom/types/index.js.map +1 -0
  1812. package/lib/module/external/ModuleProxy.d.ts +10 -0
  1813. package/lib/module/external/ModuleProxy.js +28 -0
  1814. package/lib/module/external/ModuleProxy.js.map +1 -0
  1815. package/lib/module/external/index.d.ts +1 -0
  1816. package/lib/module/external/index.js +2 -0
  1817. package/lib/module/external/index.js.map +1 -0
  1818. package/lib/module/external/reanimated/ReanimatedProxy.d.ts +3 -0
  1819. package/lib/module/external/reanimated/ReanimatedProxy.js +12 -0
  1820. package/lib/module/external/reanimated/ReanimatedProxy.js.map +1 -0
  1821. package/lib/module/external/reanimated/buffers.d.ts +7 -0
  1822. package/lib/module/external/reanimated/buffers.js +40 -0
  1823. package/lib/module/external/reanimated/buffers.js.map +1 -0
  1824. package/lib/module/external/reanimated/index.d.ts +6 -0
  1825. package/lib/module/external/reanimated/index.js +7 -0
  1826. package/lib/module/external/reanimated/index.js.map +1 -0
  1827. package/lib/module/external/reanimated/interpolators.d.ts +16 -0
  1828. package/lib/module/external/reanimated/interpolators.js +81 -0
  1829. package/lib/module/external/reanimated/interpolators.js.map +1 -0
  1830. package/lib/module/external/reanimated/renderHelpers.d.ts +16 -0
  1831. package/lib/module/external/reanimated/renderHelpers.js +44 -0
  1832. package/lib/module/external/reanimated/renderHelpers.js.map +1 -0
  1833. package/lib/module/external/reanimated/textures.d.ts +6 -0
  1834. package/lib/module/external/reanimated/textures.js +72 -0
  1835. package/lib/module/external/reanimated/textures.js.map +1 -0
  1836. package/lib/module/external/reanimated/useAnimatedImageValue.d.ts +3 -0
  1837. package/lib/module/external/reanimated/useAnimatedImageValue.js +45 -0
  1838. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -0
  1839. package/lib/module/external/reanimated/useVideo.d.ts +21 -0
  1840. package/lib/module/external/reanimated/useVideo.js +142 -0
  1841. package/lib/module/external/reanimated/useVideo.js.map +1 -0
  1842. package/lib/module/external/reanimated/useVideoLoading.d.ts +4 -0
  1843. package/lib/module/external/reanimated/useVideoLoading.js +33 -0
  1844. package/lib/module/external/reanimated/useVideoLoading.js.map +1 -0
  1845. package/lib/module/external/reanimated/useVideoLoading.web.d.ts +4 -0
  1846. package/lib/module/external/reanimated/useVideoLoading.web.js +13 -0
  1847. package/lib/module/external/reanimated/useVideoLoading.web.js.map +1 -0
  1848. package/lib/module/headless/index.d.ts +9 -0
  1849. package/lib/module/headless/index.js +36 -0
  1850. package/lib/module/headless/index.js.map +1 -0
  1851. package/lib/module/index.d.ts +11 -0
  1852. package/lib/module/index.js +12 -0
  1853. package/lib/module/index.js.map +1 -0
  1854. package/lib/module/mock/index.d.ts +2 -0
  1855. package/lib/module/mock/index.js +74 -0
  1856. package/lib/module/mock/index.js.map +1 -0
  1857. package/lib/module/renderer/Canvas.d.ts +48 -0
  1858. package/lib/module/renderer/Canvas.js +160 -0
  1859. package/lib/module/renderer/Canvas.js.map +1 -0
  1860. package/lib/module/renderer/Offscreen.d.ts +6 -0
  1861. package/lib/module/renderer/Offscreen.js +33 -0
  1862. package/lib/module/renderer/Offscreen.js.map +1 -0
  1863. package/lib/module/renderer/components/Blend.d.ts +4 -0
  1864. package/lib/module/renderer/components/Blend.js +5 -0
  1865. package/lib/module/renderer/components/Blend.js.map +1 -0
  1866. package/lib/module/renderer/components/Group.d.ts +8 -0
  1867. package/lib/module/renderer/components/Group.js +14 -0
  1868. package/lib/module/renderer/components/Group.js.map +1 -0
  1869. package/lib/module/renderer/components/ImageFilter.d.ts +4 -0
  1870. package/lib/module/renderer/components/ImageFilter.js +5 -0
  1871. package/lib/module/renderer/components/ImageFilter.js.map +1 -0
  1872. package/lib/module/renderer/components/Mask.d.ts +10 -0
  1873. package/lib/module/renderer/components/Mask.js +19 -0
  1874. package/lib/module/renderer/components/Mask.js.map +1 -0
  1875. package/lib/module/renderer/components/Paint.d.ts +4 -0
  1876. package/lib/module/renderer/components/Paint.js +5 -0
  1877. package/lib/module/renderer/components/Paint.js.map +1 -0
  1878. package/lib/module/renderer/components/Picture.d.ts +4 -0
  1879. package/lib/module/renderer/components/Picture.js +5 -0
  1880. package/lib/module/renderer/components/Picture.js.map +1 -0
  1881. package/lib/module/renderer/components/Skottie.d.ts +4 -0
  1882. package/lib/module/renderer/components/Skottie.js +5 -0
  1883. package/lib/module/renderer/components/Skottie.js.map +1 -0
  1884. package/lib/module/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
  1885. package/lib/module/renderer/components/backdrop/BackdropBlur.js +17 -0
  1886. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -0
  1887. package/lib/module/renderer/components/backdrop/BackdropFilter.d.ts +8 -0
  1888. package/lib/module/renderer/components/backdrop/BackdropFilter.js +10 -0
  1889. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -0
  1890. package/lib/module/renderer/components/backdrop/index.d.ts +2 -0
  1891. package/lib/module/renderer/components/backdrop/index.js +3 -0
  1892. package/lib/module/renderer/components/backdrop/index.js.map +1 -0
  1893. package/lib/module/renderer/components/colorFilters/BlendColor.d.ts +4 -0
  1894. package/lib/module/renderer/components/colorFilters/BlendColor.js +5 -0
  1895. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -0
  1896. package/lib/module/renderer/components/colorFilters/Lerp.d.ts +4 -0
  1897. package/lib/module/renderer/components/colorFilters/Lerp.js +5 -0
  1898. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -0
  1899. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
  1900. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +5 -0
  1901. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
  1902. package/lib/module/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
  1903. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +5 -0
  1904. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
  1905. package/lib/module/renderer/components/colorFilters/Matrix.d.ts +5 -0
  1906. package/lib/module/renderer/components/colorFilters/Matrix.js +6 -0
  1907. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -0
  1908. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
  1909. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +5 -0
  1910. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
  1911. package/lib/module/renderer/components/colorFilters/index.d.ts +6 -0
  1912. package/lib/module/renderer/components/colorFilters/index.js +7 -0
  1913. package/lib/module/renderer/components/colorFilters/index.js.map +1 -0
  1914. package/lib/module/renderer/components/image/Image.d.ts +4 -0
  1915. package/lib/module/renderer/components/image/Image.js +11 -0
  1916. package/lib/module/renderer/components/image/Image.js.map +1 -0
  1917. package/lib/module/renderer/components/image/ImageSVG.d.ts +4 -0
  1918. package/lib/module/renderer/components/image/ImageSVG.js +5 -0
  1919. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -0
  1920. package/lib/module/renderer/components/image/ImageShader.d.ts +4 -0
  1921. package/lib/module/renderer/components/image/ImageShader.js +17 -0
  1922. package/lib/module/renderer/components/image/ImageShader.js.map +1 -0
  1923. package/lib/module/renderer/components/image/index.d.ts +3 -0
  1924. package/lib/module/renderer/components/image/index.js +4 -0
  1925. package/lib/module/renderer/components/image/index.js.map +1 -0
  1926. package/lib/module/renderer/components/imageFilters/Blur.d.ts +4 -0
  1927. package/lib/module/renderer/components/imageFilters/Blur.js +11 -0
  1928. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -0
  1929. package/lib/module/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
  1930. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +5 -0
  1931. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
  1932. package/lib/module/renderer/components/imageFilters/Morphology.d.ts +4 -0
  1933. package/lib/module/renderer/components/imageFilters/Morphology.js +11 -0
  1934. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -0
  1935. package/lib/module/renderer/components/imageFilters/Offset.d.ts +4 -0
  1936. package/lib/module/renderer/components/imageFilters/Offset.js +13 -0
  1937. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -0
  1938. package/lib/module/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
  1939. package/lib/module/renderer/components/imageFilters/RuntimeShader.js +5 -0
  1940. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
  1941. package/lib/module/renderer/components/imageFilters/Shadow.d.ts +4 -0
  1942. package/lib/module/renderer/components/imageFilters/Shadow.js +5 -0
  1943. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -0
  1944. package/lib/module/renderer/components/imageFilters/index.d.ts +6 -0
  1945. package/lib/module/renderer/components/imageFilters/index.js +7 -0
  1946. package/lib/module/renderer/components/imageFilters/index.js.map +1 -0
  1947. package/lib/module/renderer/components/index.d.ts +18 -0
  1948. package/lib/module/renderer/components/index.js +19 -0
  1949. package/lib/module/renderer/components/index.js.map +1 -0
  1950. package/lib/module/renderer/components/maskFilters/Blur.d.ts +4 -0
  1951. package/lib/module/renderer/components/maskFilters/Blur.js +13 -0
  1952. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -0
  1953. package/lib/module/renderer/components/maskFilters/index.d.ts +1 -0
  1954. package/lib/module/renderer/components/maskFilters/index.js +2 -0
  1955. package/lib/module/renderer/components/maskFilters/index.js.map +1 -0
  1956. package/lib/module/renderer/components/paragraph/Paragraph.d.ts +4 -0
  1957. package/lib/module/renderer/components/paragraph/Paragraph.js +5 -0
  1958. package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -0
  1959. package/lib/module/renderer/components/paragraph/index.d.ts +1 -0
  1960. package/lib/module/renderer/components/paragraph/index.js +2 -0
  1961. package/lib/module/renderer/components/paragraph/index.js.map +1 -0
  1962. package/lib/module/renderer/components/pathEffects/Corner.d.ts +4 -0
  1963. package/lib/module/renderer/components/pathEffects/Corner.js +5 -0
  1964. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -0
  1965. package/lib/module/renderer/components/pathEffects/Dash.d.ts +4 -0
  1966. package/lib/module/renderer/components/pathEffects/Dash.js +5 -0
  1967. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -0
  1968. package/lib/module/renderer/components/pathEffects/Discrete.d.ts +4 -0
  1969. package/lib/module/renderer/components/pathEffects/Discrete.js +11 -0
  1970. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -0
  1971. package/lib/module/renderer/components/pathEffects/Line2D.d.ts +4 -0
  1972. package/lib/module/renderer/components/pathEffects/Line2D.js +5 -0
  1973. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -0
  1974. package/lib/module/renderer/components/pathEffects/Path1D.d.ts +4 -0
  1975. package/lib/module/renderer/components/pathEffects/Path1D.js +5 -0
  1976. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -0
  1977. package/lib/module/renderer/components/pathEffects/Path2D.d.ts +4 -0
  1978. package/lib/module/renderer/components/pathEffects/Path2D.js +5 -0
  1979. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -0
  1980. package/lib/module/renderer/components/pathEffects/Sum.d.ts +3 -0
  1981. package/lib/module/renderer/components/pathEffects/Sum.js +5 -0
  1982. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -0
  1983. package/lib/module/renderer/components/pathEffects/index.d.ts +7 -0
  1984. package/lib/module/renderer/components/pathEffects/index.js +8 -0
  1985. package/lib/module/renderer/components/pathEffects/index.js.map +1 -0
  1986. package/lib/module/renderer/components/shaders/Color.d.ts +4 -0
  1987. package/lib/module/renderer/components/shaders/Color.js +5 -0
  1988. package/lib/module/renderer/components/shaders/Color.js.map +1 -0
  1989. package/lib/module/renderer/components/shaders/FractalNoise.d.ts +4 -0
  1990. package/lib/module/renderer/components/shaders/FractalNoise.js +15 -0
  1991. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -0
  1992. package/lib/module/renderer/components/shaders/LinearGradient.d.ts +4 -0
  1993. package/lib/module/renderer/components/shaders/LinearGradient.js +5 -0
  1994. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -0
  1995. package/lib/module/renderer/components/shaders/RadialGradient.d.ts +4 -0
  1996. package/lib/module/renderer/components/shaders/RadialGradient.js +5 -0
  1997. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -0
  1998. package/lib/module/renderer/components/shaders/Shader.d.ts +4 -0
  1999. package/lib/module/renderer/components/shaders/Shader.js +11 -0
  2000. package/lib/module/renderer/components/shaders/Shader.js.map +1 -0
  2001. package/lib/module/renderer/components/shaders/ShaderLib.d.ts +4 -0
  2002. package/lib/module/renderer/components/shaders/ShaderLib.js +45 -0
  2003. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -0
  2004. package/lib/module/renderer/components/shaders/SweepGradient.d.ts +4 -0
  2005. package/lib/module/renderer/components/shaders/SweepGradient.js +5 -0
  2006. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -0
  2007. package/lib/module/renderer/components/shaders/Turbulence.d.ts +4 -0
  2008. package/lib/module/renderer/components/shaders/Turbulence.js +15 -0
  2009. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -0
  2010. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
  2011. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +5 -0
  2012. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
  2013. package/lib/module/renderer/components/shaders/index.d.ts +9 -0
  2014. package/lib/module/renderer/components/shaders/index.js +10 -0
  2015. package/lib/module/renderer/components/shaders/index.js.map +1 -0
  2016. package/lib/module/renderer/components/shapes/Atlas.d.ts +4 -0
  2017. package/lib/module/renderer/components/shapes/Atlas.js +5 -0
  2018. package/lib/module/renderer/components/shapes/Atlas.js.map +1 -0
  2019. package/lib/module/renderer/components/shapes/Box.d.ts +5 -0
  2020. package/lib/module/renderer/components/shapes/Box.js +8 -0
  2021. package/lib/module/renderer/components/shapes/Box.js.map +1 -0
  2022. package/lib/module/renderer/components/shapes/Circle.d.ts +4 -0
  2023. package/lib/module/renderer/components/shapes/Circle.js +5 -0
  2024. package/lib/module/renderer/components/shapes/Circle.js.map +1 -0
  2025. package/lib/module/renderer/components/shapes/DiffRect.d.ts +4 -0
  2026. package/lib/module/renderer/components/shapes/DiffRect.js +5 -0
  2027. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -0
  2028. package/lib/module/renderer/components/shapes/Fill.d.ts +4 -0
  2029. package/lib/module/renderer/components/shapes/Fill.js +5 -0
  2030. package/lib/module/renderer/components/shapes/Fill.js.map +1 -0
  2031. package/lib/module/renderer/components/shapes/FitBox.d.ts +13 -0
  2032. package/lib/module/renderer/components/shapes/FitBox.js +48 -0
  2033. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -0
  2034. package/lib/module/renderer/components/shapes/Line.d.ts +4 -0
  2035. package/lib/module/renderer/components/shapes/Line.js +5 -0
  2036. package/lib/module/renderer/components/shapes/Line.js.map +1 -0
  2037. package/lib/module/renderer/components/shapes/Oval.d.ts +4 -0
  2038. package/lib/module/renderer/components/shapes/Oval.js +5 -0
  2039. package/lib/module/renderer/components/shapes/Oval.js.map +1 -0
  2040. package/lib/module/renderer/components/shapes/Patch.d.ts +4 -0
  2041. package/lib/module/renderer/components/shapes/Patch.js +5 -0
  2042. package/lib/module/renderer/components/shapes/Patch.js.map +1 -0
  2043. package/lib/module/renderer/components/shapes/Path.d.ts +4 -0
  2044. package/lib/module/renderer/components/shapes/Path.js +13 -0
  2045. package/lib/module/renderer/components/shapes/Path.js.map +1 -0
  2046. package/lib/module/renderer/components/shapes/Points.d.ts +4 -0
  2047. package/lib/module/renderer/components/shapes/Points.js +11 -0
  2048. package/lib/module/renderer/components/shapes/Points.js.map +1 -0
  2049. package/lib/module/renderer/components/shapes/Rect.d.ts +4 -0
  2050. package/lib/module/renderer/components/shapes/Rect.js +5 -0
  2051. package/lib/module/renderer/components/shapes/Rect.js.map +1 -0
  2052. package/lib/module/renderer/components/shapes/RoundedRect.d.ts +4 -0
  2053. package/lib/module/renderer/components/shapes/RoundedRect.js +5 -0
  2054. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -0
  2055. package/lib/module/renderer/components/shapes/Vertices.d.ts +4 -0
  2056. package/lib/module/renderer/components/shapes/Vertices.js +11 -0
  2057. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -0
  2058. package/lib/module/renderer/components/shapes/index.d.ts +14 -0
  2059. package/lib/module/renderer/components/shapes/index.js +15 -0
  2060. package/lib/module/renderer/components/shapes/index.js.map +1 -0
  2061. package/lib/module/renderer/components/text/Glyphs.d.ts +4 -0
  2062. package/lib/module/renderer/components/text/Glyphs.js +13 -0
  2063. package/lib/module/renderer/components/text/Glyphs.js.map +1 -0
  2064. package/lib/module/renderer/components/text/Text.d.ts +4 -0
  2065. package/lib/module/renderer/components/text/Text.js +13 -0
  2066. package/lib/module/renderer/components/text/Text.js.map +1 -0
  2067. package/lib/module/renderer/components/text/TextBlob.d.ts +4 -0
  2068. package/lib/module/renderer/components/text/TextBlob.js +13 -0
  2069. package/lib/module/renderer/components/text/TextBlob.js.map +1 -0
  2070. package/lib/module/renderer/components/text/TextPath.d.ts +4 -0
  2071. package/lib/module/renderer/components/text/TextPath.js +11 -0
  2072. package/lib/module/renderer/components/text/TextPath.js.map +1 -0
  2073. package/lib/module/renderer/components/text/index.d.ts +4 -0
  2074. package/lib/module/renderer/components/text/index.js +5 -0
  2075. package/lib/module/renderer/components/text/index.js.map +1 -0
  2076. package/lib/module/renderer/index.d.ts +1 -0
  2077. package/lib/module/renderer/index.js +2 -0
  2078. package/lib/module/renderer/index.js.map +1 -0
  2079. package/lib/module/renderer/processors/Animations/Animations.d.ts +38 -0
  2080. package/lib/module/renderer/processors/Animations/Animations.js +23 -0
  2081. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -0
  2082. package/lib/module/renderer/processors/Animations/index.d.ts +1 -0
  2083. package/lib/module/renderer/processors/Animations/index.js +2 -0
  2084. package/lib/module/renderer/processors/Animations/index.js.map +1 -0
  2085. package/lib/module/renderer/processors/index.d.ts +2 -0
  2086. package/lib/module/renderer/processors/index.js +3 -0
  2087. package/lib/module/renderer/processors/index.js.map +1 -0
  2088. package/lib/module/renderer/processors/math/Coordinates.d.ts +29 -0
  2089. package/lib/module/renderer/processors/math/Coordinates.js +43 -0
  2090. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -0
  2091. package/lib/module/renderer/processors/math/Math.d.ts +16 -0
  2092. package/lib/module/renderer/processors/math/Math.js +30 -0
  2093. package/lib/module/renderer/processors/math/Math.js.map +1 -0
  2094. package/lib/module/renderer/processors/math/Transforms.d.ts +5 -0
  2095. package/lib/module/renderer/processors/math/Transforms.js +14 -0
  2096. package/lib/module/renderer/processors/math/Transforms.js.map +1 -0
  2097. package/lib/module/renderer/processors/math/index.d.ts +3 -0
  2098. package/lib/module/renderer/processors/math/index.js +4 -0
  2099. package/lib/module/renderer/processors/math/index.js.map +1 -0
  2100. package/lib/module/renderer/typeddash.d.ts +3 -0
  2101. package/lib/module/renderer/typeddash.js +29 -0
  2102. package/lib/module/renderer/typeddash.js.map +1 -0
  2103. package/lib/module/skia/NativeSetup.d.ts +1 -0
  2104. package/lib/module/skia/NativeSetup.js +18 -0
  2105. package/lib/module/skia/NativeSetup.js.map +1 -0
  2106. package/lib/module/skia/Skia.d.ts +8 -0
  2107. package/lib/module/skia/Skia.js +8 -0
  2108. package/lib/module/skia/Skia.js.map +1 -0
  2109. package/lib/module/skia/Skia.web.d.ts +1 -0
  2110. package/lib/module/skia/Skia.web.js +3 -0
  2111. package/lib/module/skia/Skia.web.js.map +1 -0
  2112. package/lib/module/skia/SkiaWorkletSerialization.d.ts +1 -0
  2113. package/lib/module/skia/SkiaWorkletSerialization.js +59 -0
  2114. package/lib/module/skia/SkiaWorkletSerialization.js.map +1 -0
  2115. package/lib/module/skia/core/AnimatedImage.d.ts +5 -0
  2116. package/lib/module/skia/core/AnimatedImage.js +9 -0
  2117. package/lib/module/skia/core/AnimatedImage.js.map +1 -0
  2118. package/lib/module/skia/core/Data.d.ts +5 -0
  2119. package/lib/module/skia/core/Data.js +66 -0
  2120. package/lib/module/skia/core/Data.js.map +1 -0
  2121. package/lib/module/skia/core/Font.d.ts +33 -0
  2122. package/lib/module/skia/core/Font.js +116 -0
  2123. package/lib/module/skia/core/Font.js.map +1 -0
  2124. package/lib/module/skia/core/Image.d.ts +16 -0
  2125. package/lib/module/skia/core/Image.js +36 -0
  2126. package/lib/module/skia/core/Image.js.map +1 -0
  2127. package/lib/module/skia/core/Matrix.d.ts +2 -0
  2128. package/lib/module/skia/core/Matrix.js +8 -0
  2129. package/lib/module/skia/core/Matrix.js.map +1 -0
  2130. package/lib/module/skia/core/Picture.d.ts +8 -0
  2131. package/lib/module/skia/core/Picture.js +22 -0
  2132. package/lib/module/skia/core/Picture.js.map +1 -0
  2133. package/lib/module/skia/core/RRect.d.ts +2 -0
  2134. package/lib/module/skia/core/RRect.js +7 -0
  2135. package/lib/module/skia/core/RRect.js.map +1 -0
  2136. package/lib/module/skia/core/Rect.d.ts +8 -0
  2137. package/lib/module/skia/core/Rect.js +43 -0
  2138. package/lib/module/skia/core/Rect.js.map +1 -0
  2139. package/lib/module/skia/core/SVG.d.ts +2 -0
  2140. package/lib/module/skia/core/SVG.js +5 -0
  2141. package/lib/module/skia/core/SVG.js.map +1 -0
  2142. package/lib/module/skia/core/SVG.web.d.ts +2 -0
  2143. package/lib/module/skia/core/SVG.web.js +30 -0
  2144. package/lib/module/skia/core/SVG.web.js.map +1 -0
  2145. package/lib/module/skia/core/Typeface.d.ts +5 -0
  2146. package/lib/module/skia/core/Typeface.js +9 -0
  2147. package/lib/module/skia/core/Typeface.js.map +1 -0
  2148. package/lib/module/skia/core/Vector.d.ts +7 -0
  2149. package/lib/module/skia/core/Vector.js +28 -0
  2150. package/lib/module/skia/core/Vector.js.map +1 -0
  2151. package/lib/module/skia/core/index.d.ts +11 -0
  2152. package/lib/module/skia/core/index.js +12 -0
  2153. package/lib/module/skia/core/index.js.map +1 -0
  2154. package/lib/module/skia/index.d.ts +3 -0
  2155. package/lib/module/skia/index.js +4 -0
  2156. package/lib/module/skia/index.js.map +1 -0
  2157. package/lib/module/skia/types/AnimatedImage/AnimatedImage.d.ts +29 -0
  2158. package/lib/module/skia/types/AnimatedImage/AnimatedImage.js +2 -0
  2159. package/lib/module/skia/types/AnimatedImage/AnimatedImage.js.map +1 -0
  2160. package/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +13 -0
  2161. package/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.js +2 -0
  2162. package/lib/module/skia/types/AnimatedImage/AnimatedImageFactory.js.map +1 -0
  2163. package/lib/module/skia/types/AnimatedImage/index.d.ts +2 -0
  2164. package/lib/module/skia/types/AnimatedImage/index.js +3 -0
  2165. package/lib/module/skia/types/AnimatedImage/index.js.map +1 -0
  2166. package/lib/module/skia/types/Canvas.d.ts +409 -0
  2167. package/lib/module/skia/types/Canvas.js +11 -0
  2168. package/lib/module/skia/types/Canvas.js.map +1 -0
  2169. package/lib/module/skia/types/Color.d.ts +2 -0
  2170. package/lib/module/skia/types/Color.js +2 -0
  2171. package/lib/module/skia/types/Color.js.map +1 -0
  2172. package/lib/module/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
  2173. package/lib/module/skia/types/ColorFilter/ColorFilter.js +2 -0
  2174. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -0
  2175. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
  2176. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js +2 -0
  2177. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -0
  2178. package/lib/module/skia/types/ColorFilter/index.d.ts +2 -0
  2179. package/lib/module/skia/types/ColorFilter/index.js +3 -0
  2180. package/lib/module/skia/types/ColorFilter/index.js.map +1 -0
  2181. package/lib/module/skia/types/ContourMeasure.d.ts +41 -0
  2182. package/lib/module/skia/types/ContourMeasure.js +2 -0
  2183. package/lib/module/skia/types/ContourMeasure.js.map +1 -0
  2184. package/lib/module/skia/types/Data/Data.d.ts +18 -0
  2185. package/lib/module/skia/types/Data/Data.js +7 -0
  2186. package/lib/module/skia/types/Data/Data.js.map +1 -0
  2187. package/lib/module/skia/types/Data/DataFactory.d.ts +18 -0
  2188. package/lib/module/skia/types/Data/DataFactory.js +2 -0
  2189. package/lib/module/skia/types/Data/DataFactory.js.map +1 -0
  2190. package/lib/module/skia/types/Data/index.d.ts +2 -0
  2191. package/lib/module/skia/types/Data/index.js +3 -0
  2192. package/lib/module/skia/types/Data/index.js.map +1 -0
  2193. package/lib/module/skia/types/Font/Font.d.ts +189 -0
  2194. package/lib/module/skia/types/Font/Font.js +57 -0
  2195. package/lib/module/skia/types/Font/Font.js.map +1 -0
  2196. package/lib/module/skia/types/Font/FontMgr.d.ts +8 -0
  2197. package/lib/module/skia/types/Font/FontMgr.js +2 -0
  2198. package/lib/module/skia/types/Font/FontMgr.js.map +1 -0
  2199. package/lib/module/skia/types/Font/FontMgrFactory.d.ts +4 -0
  2200. package/lib/module/skia/types/Font/FontMgrFactory.js +2 -0
  2201. package/lib/module/skia/types/Font/FontMgrFactory.js.map +1 -0
  2202. package/lib/module/skia/types/Font/index.d.ts +3 -0
  2203. package/lib/module/skia/types/Font/index.js +4 -0
  2204. package/lib/module/skia/types/Font/index.js.map +1 -0
  2205. package/lib/module/skia/types/Graphite.d.ts +34 -0
  2206. package/lib/module/skia/types/Graphite.js +2 -0
  2207. package/lib/module/skia/types/Graphite.js.map +1 -0
  2208. package/lib/module/skia/types/Image/ColorType.d.ts +21 -0
  2209. package/lib/module/skia/types/Image/ColorType.js +41 -0
  2210. package/lib/module/skia/types/Image/ColorType.js.map +1 -0
  2211. package/lib/module/skia/types/Image/Image.d.ts +131 -0
  2212. package/lib/module/skia/types/Image/Image.js +39 -0
  2213. package/lib/module/skia/types/Image/Image.js.map +1 -0
  2214. package/lib/module/skia/types/Image/ImageFactory.d.ts +110 -0
  2215. package/lib/module/skia/types/Image/ImageFactory.js +8 -0
  2216. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -0
  2217. package/lib/module/skia/types/Image/index.d.ts +3 -0
  2218. package/lib/module/skia/types/Image/index.js +4 -0
  2219. package/lib/module/skia/types/Image/index.js.map +1 -0
  2220. package/lib/module/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
  2221. package/lib/module/skia/types/ImageFilter/ImageFilter.js +23 -0
  2222. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -0
  2223. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.d.ts +367 -0
  2224. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +8 -0
  2225. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  2226. package/lib/module/skia/types/ImageFilter/index.d.ts +2 -0
  2227. package/lib/module/skia/types/ImageFilter/index.js +3 -0
  2228. package/lib/module/skia/types/ImageFilter/index.js.map +1 -0
  2229. package/lib/module/skia/types/JsiInstance.d.ts +5 -0
  2230. package/lib/module/skia/types/JsiInstance.js +2 -0
  2231. package/lib/module/skia/types/JsiInstance.js.map +1 -0
  2232. package/lib/module/skia/types/MaskFilter.d.ts +21 -0
  2233. package/lib/module/skia/types/MaskFilter.js +16 -0
  2234. package/lib/module/skia/types/MaskFilter.js.map +1 -0
  2235. package/lib/module/skia/types/Matrix.d.ts +23 -0
  2236. package/lib/module/skia/types/Matrix.js +13 -0
  2237. package/lib/module/skia/types/Matrix.js.map +1 -0
  2238. package/lib/module/skia/types/Matrix4.d.ts +122 -0
  2239. package/lib/module/skia/types/Matrix4.js +402 -0
  2240. package/lib/module/skia/types/Matrix4.js.map +1 -0
  2241. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.d.ts +29 -0
  2242. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js +5 -0
  2243. package/lib/module/skia/types/NativeBuffer/NativeBufferFactory.js.map +1 -0
  2244. package/lib/module/skia/types/NativeBuffer/index.d.ts +1 -0
  2245. package/lib/module/skia/types/NativeBuffer/index.js +2 -0
  2246. package/lib/module/skia/types/NativeBuffer/index.js.map +1 -0
  2247. package/lib/module/skia/types/Paint/BlendMode.d.ts +60 -0
  2248. package/lib/module/skia/types/Paint/BlendMode.js +94 -0
  2249. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -0
  2250. package/lib/module/skia/types/Paint/Paint.d.ts +142 -0
  2251. package/lib/module/skia/types/Paint/Paint.js +19 -0
  2252. package/lib/module/skia/types/Paint/Paint.js.map +1 -0
  2253. package/lib/module/skia/types/Paint/index.d.ts +2 -0
  2254. package/lib/module/skia/types/Paint/index.js +3 -0
  2255. package/lib/module/skia/types/Paint/index.js.map +1 -0
  2256. package/lib/module/skia/types/Paragraph/Paragraph.d.ts +171 -0
  2257. package/lib/module/skia/types/Paragraph/Paragraph.js +2 -0
  2258. package/lib/module/skia/types/Paragraph/Paragraph.js.map +1 -0
  2259. package/lib/module/skia/types/Paragraph/ParagraphBuilder.d.ts +60 -0
  2260. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js +24 -0
  2261. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -0
  2262. package/lib/module/skia/types/Paragraph/ParagraphStyle.d.ts +41 -0
  2263. package/lib/module/skia/types/Paragraph/ParagraphStyle.js +22 -0
  2264. package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -0
  2265. package/lib/module/skia/types/Paragraph/TextStyle.d.ts +62 -0
  2266. package/lib/module/skia/types/Paragraph/TextStyle.js +21 -0
  2267. package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -0
  2268. package/lib/module/skia/types/Paragraph/TypefaceFontProvider.d.ts +10 -0
  2269. package/lib/module/skia/types/Paragraph/TypefaceFontProvider.js +2 -0
  2270. package/lib/module/skia/types/Paragraph/TypefaceFontProvider.js.map +1 -0
  2271. package/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +4 -0
  2272. package/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.js +2 -0
  2273. package/lib/module/skia/types/Paragraph/TypefaceFontProviderFactory.js.map +1 -0
  2274. package/lib/module/skia/types/Paragraph/index.d.ts +6 -0
  2275. package/lib/module/skia/types/Paragraph/index.js +7 -0
  2276. package/lib/module/skia/types/Paragraph/index.js.map +1 -0
  2277. package/lib/module/skia/types/Path/Path.d.ts +141 -0
  2278. package/lib/module/skia/types/Path/Path.js +38 -0
  2279. package/lib/module/skia/types/Path/Path.js.map +1 -0
  2280. package/lib/module/skia/types/Path/PathBuilder.d.ts +201 -0
  2281. package/lib/module/skia/types/Path/PathBuilder.js +2 -0
  2282. package/lib/module/skia/types/Path/PathBuilder.js.map +1 -0
  2283. package/lib/module/skia/types/Path/PathBuilderFactory.d.ts +13 -0
  2284. package/lib/module/skia/types/Path/PathBuilderFactory.js +2 -0
  2285. package/lib/module/skia/types/Path/PathBuilderFactory.js.map +1 -0
  2286. package/lib/module/skia/types/Path/PathFactory.d.ts +115 -0
  2287. package/lib/module/skia/types/Path/PathFactory.js +2 -0
  2288. package/lib/module/skia/types/Path/PathFactory.js.map +1 -0
  2289. package/lib/module/skia/types/Path/index.d.ts +4 -0
  2290. package/lib/module/skia/types/Path/index.js +5 -0
  2291. package/lib/module/skia/types/Path/index.js.map +1 -0
  2292. package/lib/module/skia/types/PathEffect.d.ts +75 -0
  2293. package/lib/module/skia/types/PathEffect.js +8 -0
  2294. package/lib/module/skia/types/PathEffect.js.map +1 -0
  2295. package/lib/module/skia/types/Picture/Picture.d.ts +27 -0
  2296. package/lib/module/skia/types/Picture/Picture.js +2 -0
  2297. package/lib/module/skia/types/Picture/Picture.js.map +1 -0
  2298. package/lib/module/skia/types/Picture/PictureFactory.d.ts +8 -0
  2299. package/lib/module/skia/types/Picture/PictureFactory.js +2 -0
  2300. package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -0
  2301. package/lib/module/skia/types/Picture/PictureRecorder.d.ts +16 -0
  2302. package/lib/module/skia/types/Picture/PictureRecorder.js +2 -0
  2303. package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -0
  2304. package/lib/module/skia/types/Picture/index.d.ts +3 -0
  2305. package/lib/module/skia/types/Picture/index.js +4 -0
  2306. package/lib/module/skia/types/Picture/index.js.map +1 -0
  2307. package/lib/module/skia/types/Point.d.ts +10 -0
  2308. package/lib/module/skia/types/Point.js +7 -0
  2309. package/lib/module/skia/types/Point.js.map +1 -0
  2310. package/lib/module/skia/types/RRect.d.ts +16 -0
  2311. package/lib/module/skia/types/RRect.js +9 -0
  2312. package/lib/module/skia/types/RRect.js.map +1 -0
  2313. package/lib/module/skia/types/RSXform.d.ts +8 -0
  2314. package/lib/module/skia/types/RSXform.js +2 -0
  2315. package/lib/module/skia/types/RSXform.js.map +1 -0
  2316. package/lib/module/skia/types/Recorder.d.ts +64 -0
  2317. package/lib/module/skia/types/Recorder.js +2 -0
  2318. package/lib/module/skia/types/Recorder.js.map +1 -0
  2319. package/lib/module/skia/types/Rect.d.ts +11 -0
  2320. package/lib/module/skia/types/Rect.js +10 -0
  2321. package/lib/module/skia/types/Rect.js.map +1 -0
  2322. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
  2323. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js +2 -0
  2324. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -0
  2325. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
  2326. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js +2 -0
  2327. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
  2328. package/lib/module/skia/types/RuntimeEffect/index.d.ts +2 -0
  2329. package/lib/module/skia/types/RuntimeEffect/index.js +3 -0
  2330. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -0
  2331. package/lib/module/skia/types/SVG/SVG.d.ts +5 -0
  2332. package/lib/module/skia/types/SVG/SVG.js +2 -0
  2333. package/lib/module/skia/types/SVG/SVG.js.map +1 -0
  2334. package/lib/module/skia/types/SVG/SVGFactory.d.ts +7 -0
  2335. package/lib/module/skia/types/SVG/SVGFactory.js +2 -0
  2336. package/lib/module/skia/types/SVG/SVGFactory.js.map +1 -0
  2337. package/lib/module/skia/types/SVG/index.d.ts +2 -0
  2338. package/lib/module/skia/types/SVG/index.js +3 -0
  2339. package/lib/module/skia/types/SVG/index.js.map +1 -0
  2340. package/lib/module/skia/types/Shader/Shader.d.ts +10 -0
  2341. package/lib/module/skia/types/Shader/Shader.js +44 -0
  2342. package/lib/module/skia/types/Shader/Shader.js.map +1 -0
  2343. package/lib/module/skia/types/Shader/ShaderFactory.d.ts +104 -0
  2344. package/lib/module/skia/types/Shader/ShaderFactory.js +2 -0
  2345. package/lib/module/skia/types/Shader/ShaderFactory.js.map +1 -0
  2346. package/lib/module/skia/types/Shader/index.d.ts +2 -0
  2347. package/lib/module/skia/types/Shader/index.js +3 -0
  2348. package/lib/module/skia/types/Shader/index.js.map +1 -0
  2349. package/lib/module/skia/types/Size.d.ts +4 -0
  2350. package/lib/module/skia/types/Size.js +2 -0
  2351. package/lib/module/skia/types/Size.js.map +1 -0
  2352. package/lib/module/skia/types/Skia.d.ts +90 -0
  2353. package/lib/module/skia/types/Skia.js +2 -0
  2354. package/lib/module/skia/types/Skia.js.map +1 -0
  2355. package/lib/module/skia/types/Skottie.d.ts +223 -0
  2356. package/lib/module/skia/types/Skottie.js +74 -0
  2357. package/lib/module/skia/types/Skottie.js.map +1 -0
  2358. package/lib/module/skia/types/Surface/Surface.d.ts +52 -0
  2359. package/lib/module/skia/types/Surface/Surface.js +2 -0
  2360. package/lib/module/skia/types/Surface/Surface.js.map +1 -0
  2361. package/lib/module/skia/types/Surface/SurfaceFactory.d.ts +42 -0
  2362. package/lib/module/skia/types/Surface/SurfaceFactory.js +5 -0
  2363. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -0
  2364. package/lib/module/skia/types/Surface/index.d.ts +2 -0
  2365. package/lib/module/skia/types/Surface/index.js +3 -0
  2366. package/lib/module/skia/types/Surface/index.js.map +1 -0
  2367. package/lib/module/skia/types/TextBlob.d.ts +44 -0
  2368. package/lib/module/skia/types/TextBlob.js +2 -0
  2369. package/lib/module/skia/types/TextBlob.js.map +1 -0
  2370. package/lib/module/skia/types/Typeface/Typeface.d.ts +11 -0
  2371. package/lib/module/skia/types/Typeface/Typeface.js +2 -0
  2372. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -0
  2373. package/lib/module/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
  2374. package/lib/module/skia/types/Typeface/TypefaceFactory.js +2 -0
  2375. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -0
  2376. package/lib/module/skia/types/Typeface/index.d.ts +2 -0
  2377. package/lib/module/skia/types/Typeface/index.js +3 -0
  2378. package/lib/module/skia/types/Typeface/index.js.map +1 -0
  2379. package/lib/module/skia/types/Vertices/Vertices.d.ts +17 -0
  2380. package/lib/module/skia/types/Vertices/Vertices.js +7 -0
  2381. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -0
  2382. package/lib/module/skia/types/Vertices/index.d.ts +1 -0
  2383. package/lib/module/skia/types/Vertices/index.js +2 -0
  2384. package/lib/module/skia/types/Vertices/index.js.map +1 -0
  2385. package/lib/module/skia/types/Video/Video.d.ts +20 -0
  2386. package/lib/module/skia/types/Video/Video.js +2 -0
  2387. package/lib/module/skia/types/Video/Video.js.map +1 -0
  2388. package/lib/module/skia/types/Video/index.d.ts +1 -0
  2389. package/lib/module/skia/types/Video/index.js +2 -0
  2390. package/lib/module/skia/types/Video/index.js.map +1 -0
  2391. package/lib/module/skia/types/index.d.ts +36 -0
  2392. package/lib/module/skia/types/index.js +37 -0
  2393. package/lib/module/skia/types/index.js.map +1 -0
  2394. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.d.ts +9 -0
  2395. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js +23 -0
  2396. package/lib/module/skia/web/CanvasKitWebGLBufferImpl.js.map +1 -0
  2397. package/lib/module/skia/web/Host.d.ts +19 -0
  2398. package/lib/module/skia/web/Host.js +59 -0
  2399. package/lib/module/skia/web/Host.js.map +1 -0
  2400. package/lib/module/skia/web/JsiSkAnimatedImage.d.ts +11 -0
  2401. package/lib/module/skia/web/JsiSkAnimatedImage.js +24 -0
  2402. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -0
  2403. package/lib/module/skia/web/JsiSkAnimatedImageFactory.d.ts +9 -0
  2404. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js +16 -0
  2405. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -0
  2406. package/lib/module/skia/web/JsiSkCanvas.d.ts +47 -0
  2407. package/lib/module/skia/web/JsiSkCanvas.js +189 -0
  2408. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
  2409. package/lib/module/skia/web/JsiSkColor.d.ts +2 -0
  2410. package/lib/module/skia/web/JsiSkColor.js +297 -0
  2411. package/lib/module/skia/web/JsiSkColor.js.map +1 -0
  2412. package/lib/module/skia/web/JsiSkColorFilter.d.ts +6 -0
  2413. package/lib/module/skia/web/JsiSkColorFilter.js +7 -0
  2414. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -0
  2415. package/lib/module/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  2416. package/lib/module/skia/web/JsiSkColorFilterFactory.js +29 -0
  2417. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  2418. package/lib/module/skia/web/JsiSkContourMeasure.d.ts +12 -0
  2419. package/lib/module/skia/web/JsiSkContourMeasure.js +25 -0
  2420. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
  2421. package/lib/module/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  2422. package/lib/module/skia/web/JsiSkContourMeasureIter.js +15 -0
  2423. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  2424. package/lib/module/skia/web/JsiSkData.d.ts +8 -0
  2425. package/lib/module/skia/web/JsiSkData.js +7 -0
  2426. package/lib/module/skia/web/JsiSkData.js.map +1 -0
  2427. package/lib/module/skia/web/JsiSkDataFactory.d.ts +19 -0
  2428. package/lib/module/skia/web/JsiSkDataFactory.js +26 -0
  2429. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
  2430. package/lib/module/skia/web/JsiSkFont.d.ts +34 -0
  2431. package/lib/module/skia/web/JsiSkFont.js +127 -0
  2432. package/lib/module/skia/web/JsiSkFont.js.map +1 -0
  2433. package/lib/module/skia/web/JsiSkFontMgr.d.ts +10 -0
  2434. package/lib/module/skia/web/JsiSkFontMgr.js +19 -0
  2435. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
  2436. package/lib/module/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
  2437. package/lib/module/skia/web/JsiSkFontMgrFactory.js +15 -0
  2438. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  2439. package/lib/module/skia/web/JsiSkImage.d.ts +17 -0
  2440. package/lib/module/skia/web/JsiSkImage.js +115 -0
  2441. package/lib/module/skia/web/JsiSkImage.js.map +1 -0
  2442. package/lib/module/skia/web/JsiSkImageFactory.d.ts +16 -0
  2443. package/lib/module/skia/web/JsiSkImageFactory.js +73 -0
  2444. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
  2445. package/lib/module/skia/web/JsiSkImageFilter.d.ts +6 -0
  2446. package/lib/module/skia/web/JsiSkImageFilter.js +7 -0
  2447. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
  2448. package/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +36 -0
  2449. package/lib/module/skia/web/JsiSkImageFilterFactory.js +144 -0
  2450. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -0
  2451. package/lib/module/skia/web/JsiSkMaskFilter.d.ts +6 -0
  2452. package/lib/module/skia/web/JsiSkMaskFilter.js +7 -0
  2453. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
  2454. package/lib/module/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  2455. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +11 -0
  2456. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  2457. package/lib/module/skia/web/JsiSkMatrix.d.ts +19 -0
  2458. package/lib/module/skia/web/JsiSkMatrix.js +60 -0
  2459. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
  2460. package/lib/module/skia/web/JsiSkNativeBufferFactory.d.ts +9 -0
  2461. package/lib/module/skia/web/JsiSkNativeBufferFactory.js +41 -0
  2462. package/lib/module/skia/web/JsiSkNativeBufferFactory.js.map +1 -0
  2463. package/lib/module/skia/web/JsiSkPaint.d.ts +30 -0
  2464. package/lib/module/skia/web/JsiSkPaint.js +161 -0
  2465. package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
  2466. package/lib/module/skia/web/JsiSkParagraph.d.ts +20 -0
  2467. package/lib/module/skia/web/JsiSkParagraph.js +59 -0
  2468. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -0
  2469. package/lib/module/skia/web/JsiSkParagraphBuilder.d.ts +14 -0
  2470. package/lib/module/skia/web/JsiSkParagraphBuilder.js +53 -0
  2471. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -0
  2472. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.d.ts +8 -0
  2473. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +20 -0
  2474. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -0
  2475. package/lib/module/skia/web/JsiSkParagraphStyle.d.ts +5 -0
  2476. package/lib/module/skia/web/JsiSkParagraphStyle.js +58 -0
  2477. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -0
  2478. package/lib/module/skia/web/JsiSkPath.d.ts +35 -0
  2479. package/lib/module/skia/web/JsiSkPath.js +168 -0
  2480. package/lib/module/skia/web/JsiSkPath.js.map +1 -0
  2481. package/lib/module/skia/web/JsiSkPathBuilder.d.ts +45 -0
  2482. package/lib/module/skia/web/JsiSkPathBuilder.js +186 -0
  2483. package/lib/module/skia/web/JsiSkPathBuilder.js.map +1 -0
  2484. package/lib/module/skia/web/JsiSkPathBuilderFactory.d.ts +9 -0
  2485. package/lib/module/skia/web/JsiSkPathBuilderFactory.js +19 -0
  2486. package/lib/module/skia/web/JsiSkPathBuilderFactory.js.map +1 -0
  2487. package/lib/module/skia/web/JsiSkPathEffect.d.ts +6 -0
  2488. package/lib/module/skia/web/JsiSkPathEffect.js +7 -0
  2489. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
  2490. package/lib/module/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  2491. package/lib/module/skia/web/JsiSkPathEffectFactory.js +56 -0
  2492. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  2493. package/lib/module/skia/web/JsiSkPathFactory.d.ts +25 -0
  2494. package/lib/module/skia/web/JsiSkPathFactory.js +170 -0
  2495. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
  2496. package/lib/module/skia/web/JsiSkPicture.d.ts +9 -0
  2497. package/lib/module/skia/web/JsiSkPicture.js +18 -0
  2498. package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
  2499. package/lib/module/skia/web/JsiSkPictureFactory.d.ts +8 -0
  2500. package/lib/module/skia/web/JsiSkPictureFactory.js +15 -0
  2501. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
  2502. package/lib/module/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  2503. package/lib/module/skia/web/JsiSkPictureRecorder.js +16 -0
  2504. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
  2505. package/lib/module/skia/web/JsiSkPoint.d.ts +9 -0
  2506. package/lib/module/skia/web/JsiSkPoint.js +19 -0
  2507. package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
  2508. package/lib/module/skia/web/JsiSkRRect.d.ts +12 -0
  2509. package/lib/module/skia/web/JsiSkRRect.js +40 -0
  2510. package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
  2511. package/lib/module/skia/web/JsiSkRSXform.d.ts +13 -0
  2512. package/lib/module/skia/web/JsiSkRSXform.js +31 -0
  2513. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
  2514. package/lib/module/skia/web/JsiSkRect.d.ts +12 -0
  2515. package/lib/module/skia/web/JsiSkRect.js +31 -0
  2516. package/lib/module/skia/web/JsiSkRect.js.map +1 -0
  2517. package/lib/module/skia/web/JsiSkRuntimeEffect.d.ts +16 -0
  2518. package/lib/module/skia/web/JsiSkRuntimeEffect.js +31 -0
  2519. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  2520. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  2521. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +15 -0
  2522. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  2523. package/lib/module/skia/web/JsiSkSVG.d.ts +9 -0
  2524. package/lib/module/skia/web/JsiSkSVG.js +18 -0
  2525. package/lib/module/skia/web/JsiSkSVG.js.map +1 -0
  2526. package/lib/module/skia/web/JsiSkSVGFactory.d.ts +10 -0
  2527. package/lib/module/skia/web/JsiSkSVGFactory.js +49 -0
  2528. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
  2529. package/lib/module/skia/web/JsiSkShader.d.ts +6 -0
  2530. package/lib/module/skia/web/JsiSkShader.js +7 -0
  2531. package/lib/module/skia/web/JsiSkShader.js.map +1 -0
  2532. package/lib/module/skia/web/JsiSkShaderFactory.d.ts +16 -0
  2533. package/lib/module/skia/web/JsiSkShaderFactory.js +34 -0
  2534. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
  2535. package/lib/module/skia/web/JsiSkSurface.d.ts +14 -0
  2536. package/lib/module/skia/web/JsiSkSurface.js +37 -0
  2537. package/lib/module/skia/web/JsiSkSurface.js.map +1 -0
  2538. package/lib/module/skia/web/JsiSkSurfaceFactory.d.ts +10 -0
  2539. package/lib/module/skia/web/JsiSkSurfaceFactory.js +35 -0
  2540. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -0
  2541. package/lib/module/skia/web/JsiSkTextBlob.d.ts +6 -0
  2542. package/lib/module/skia/web/JsiSkTextBlob.js +7 -0
  2543. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
  2544. package/lib/module/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
  2545. package/lib/module/skia/web/JsiSkTextBlobFactory.js +23 -0
  2546. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  2547. package/lib/module/skia/web/JsiSkTextStyle.d.ts +5 -0
  2548. package/lib/module/skia/web/JsiSkTextStyle.js +44 -0
  2549. package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -0
  2550. package/lib/module/skia/web/JsiSkTypeface.d.ts +9 -0
  2551. package/lib/module/skia/web/JsiSkTypeface.js +18 -0
  2552. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
  2553. package/lib/module/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  2554. package/lib/module/skia/web/JsiSkTypefaceFactory.js +15 -0
  2555. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  2556. package/lib/module/skia/web/JsiSkTypefaceFontProvider.d.ts +11 -0
  2557. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +57 -0
  2558. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -0
  2559. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +7 -0
  2560. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js +12 -0
  2561. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -0
  2562. package/lib/module/skia/web/JsiSkVertices.d.ts +9 -0
  2563. package/lib/module/skia/web/JsiSkVertices.js +14 -0
  2564. package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
  2565. package/lib/module/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  2566. package/lib/module/skia/web/JsiSkVerticesFactory.js +23 -0
  2567. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
  2568. package/lib/module/skia/web/JsiSkia.d.ts +3 -0
  2569. package/lib/module/skia/web/JsiSkia.js +97 -0
  2570. package/lib/module/skia/web/JsiSkia.js.map +1 -0
  2571. package/lib/module/skia/web/JsiSkottieAnimation.d.ts +58 -0
  2572. package/lib/module/skia/web/JsiSkottieAnimation.js +233 -0
  2573. package/lib/module/skia/web/JsiSkottieAnimation.js.map +1 -0
  2574. package/lib/module/skia/web/JsiSkottieFactory.d.ts +9 -0
  2575. package/lib/module/skia/web/JsiSkottieFactory.js +19 -0
  2576. package/lib/module/skia/web/JsiSkottieFactory.js.map +1 -0
  2577. package/lib/module/skia/web/JsiVideo.d.ts +28 -0
  2578. package/lib/module/skia/web/JsiVideo.js +88 -0
  2579. package/lib/module/skia/web/JsiVideo.js.map +1 -0
  2580. package/lib/module/skia/web/index.d.ts +1 -0
  2581. package/lib/module/skia/web/index.js +2 -0
  2582. package/lib/module/skia/web/index.js.map +1 -0
  2583. package/lib/module/sksg/Container.d.ts +3 -0
  2584. package/lib/module/sksg/Container.js +5 -0
  2585. package/lib/module/sksg/Container.js.map +1 -0
  2586. package/lib/module/sksg/Container.native.d.ts +28 -0
  2587. package/lib/module/sksg/Container.native.js +103 -0
  2588. package/lib/module/sksg/Container.native.js.map +1 -0
  2589. package/lib/module/sksg/Container.web.d.ts +13 -0
  2590. package/lib/module/sksg/Container.web.js +124 -0
  2591. package/lib/module/sksg/Container.web.js.map +1 -0
  2592. package/lib/module/sksg/Elements.d.ts +67 -0
  2593. package/lib/module/sksg/Elements.js +2 -0
  2594. package/lib/module/sksg/Elements.js.map +1 -0
  2595. package/lib/module/sksg/HostConfig.d.ts +19 -0
  2596. package/lib/module/sksg/HostConfig.js +173 -0
  2597. package/lib/module/sksg/HostConfig.js.map +1 -0
  2598. package/lib/module/sksg/Node.d.ts +19 -0
  2599. package/lib/module/sksg/Node.js +67 -0
  2600. package/lib/module/sksg/Node.js.map +1 -0
  2601. package/lib/module/sksg/Reconciler.d.ts +21 -0
  2602. package/lib/module/sksg/Reconciler.js +64 -0
  2603. package/lib/module/sksg/Reconciler.js.map +1 -0
  2604. package/lib/module/sksg/Recorder/Core.d.ts +83 -0
  2605. package/lib/module/sksg/Recorder/Core.js +84 -0
  2606. package/lib/module/sksg/Recorder/Core.js.map +1 -0
  2607. package/lib/module/sksg/Recorder/Debug.d.ts +2 -0
  2608. package/lib/module/sksg/Recorder/Debug.js +79 -0
  2609. package/lib/module/sksg/Recorder/Debug.js.map +1 -0
  2610. package/lib/module/sksg/Recorder/DrawingContext.d.ts +23 -0
  2611. package/lib/module/sksg/Recorder/DrawingContext.js +142 -0
  2612. package/lib/module/sksg/Recorder/DrawingContext.js.map +1 -0
  2613. package/lib/module/sksg/Recorder/FrameScope.d.ts +18 -0
  2614. package/lib/module/sksg/Recorder/FrameScope.js +59 -0
  2615. package/lib/module/sksg/Recorder/FrameScope.js.map +1 -0
  2616. package/lib/module/sksg/Recorder/FrameScope.native.d.ts +10 -0
  2617. package/lib/module/sksg/Recorder/FrameScope.native.js +19 -0
  2618. package/lib/module/sksg/Recorder/FrameScope.native.js.map +1 -0
  2619. package/lib/module/sksg/Recorder/Player.d.ts +3 -0
  2620. package/lib/module/sksg/Recorder/Player.js +179 -0
  2621. package/lib/module/sksg/Recorder/Player.js.map +1 -0
  2622. package/lib/module/sksg/Recorder/ReanimatedRecorder.d.ts +59 -0
  2623. package/lib/module/sksg/Recorder/ReanimatedRecorder.js +208 -0
  2624. package/lib/module/sksg/Recorder/ReanimatedRecorder.js.map +1 -0
  2625. package/lib/module/sksg/Recorder/Recorder.d.ts +68 -0
  2626. package/lib/module/sksg/Recorder/Recorder.js +328 -0
  2627. package/lib/module/sksg/Recorder/Recorder.js.map +1 -0
  2628. package/lib/module/sksg/Recorder/Visitor.d.ts +5 -0
  2629. package/lib/module/sksg/Recorder/Visitor.js +307 -0
  2630. package/lib/module/sksg/Recorder/Visitor.js.map +1 -0
  2631. package/lib/module/sksg/Recorder/commands/Box.d.ts +13 -0
  2632. package/lib/module/sksg/Recorder/commands/Box.js +61 -0
  2633. package/lib/module/sksg/Recorder/commands/Box.js.map +1 -0
  2634. package/lib/module/sksg/Recorder/commands/CTM.d.ts +3 -0
  2635. package/lib/module/sksg/Recorder/commands/CTM.js +72 -0
  2636. package/lib/module/sksg/Recorder/commands/CTM.js.map +1 -0
  2637. package/lib/module/sksg/Recorder/commands/ColorFilters.d.ts +6 -0
  2638. package/lib/module/sksg/Recorder/commands/ColorFilters.js +67 -0
  2639. package/lib/module/sksg/Recorder/commands/ColorFilters.js.map +1 -0
  2640. package/lib/module/sksg/Recorder/commands/Drawing.d.ts +22 -0
  2641. package/lib/module/sksg/Recorder/commands/Drawing.js +344 -0
  2642. package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -0
  2643. package/lib/module/sksg/Recorder/commands/ImageFilters.d.ts +12 -0
  2644. package/lib/module/sksg/Recorder/commands/ImageFilters.js +197 -0
  2645. package/lib/module/sksg/Recorder/commands/ImageFilters.js.map +1 -0
  2646. package/lib/module/sksg/Recorder/commands/Paint.d.ts +4 -0
  2647. package/lib/module/sksg/Recorder/commands/Paint.js +56 -0
  2648. package/lib/module/sksg/Recorder/commands/Paint.js.map +1 -0
  2649. package/lib/module/sksg/Recorder/commands/PathEffects.d.ts +6 -0
  2650. package/lib/module/sksg/Recorder/commands/PathEffects.js +128 -0
  2651. package/lib/module/sksg/Recorder/commands/PathEffects.js.map +1 -0
  2652. package/lib/module/sksg/Recorder/commands/Shaders.d.ts +5 -0
  2653. package/lib/module/sksg/Recorder/commands/Shaders.js +213 -0
  2654. package/lib/module/sksg/Recorder/commands/Shaders.js.map +1 -0
  2655. package/lib/module/sksg/StaticContainer.d.ts +23 -0
  2656. package/lib/module/sksg/StaticContainer.js +82 -0
  2657. package/lib/module/sksg/StaticContainer.js.map +1 -0
  2658. package/lib/module/sksg/utils.d.ts +10 -0
  2659. package/lib/module/sksg/utils.js +41 -0
  2660. package/lib/module/sksg/utils.js.map +1 -0
  2661. package/lib/module/specs/NativeSkiaModule.d.ts +6 -0
  2662. package/lib/module/specs/NativeSkiaModule.js +4 -0
  2663. package/lib/module/specs/NativeSkiaModule.js.map +1 -0
  2664. package/lib/module/specs/NativeSkiaModule.web.d.ts +25 -0
  2665. package/lib/module/specs/NativeSkiaModule.web.js +98 -0
  2666. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -0
  2667. package/lib/module/specs/SkiaGraphiteViewNativeComponent.d.ts +10 -0
  2668. package/lib/module/specs/SkiaGraphiteViewNativeComponent.js +8 -0
  2669. package/lib/module/specs/SkiaGraphiteViewNativeComponent.js.map +1 -0
  2670. package/lib/module/specs/SkiaGraphiteViewNativeComponent.web.d.ts +9 -0
  2671. package/lib/module/specs/SkiaGraphiteViewNativeComponent.web.js +22 -0
  2672. package/lib/module/specs/SkiaGraphiteViewNativeComponent.web.js.map +1 -0
  2673. package/lib/module/specs/SkiaPictureViewNativeComponent.d.ts +14 -0
  2674. package/lib/module/specs/SkiaPictureViewNativeComponent.js +8 -0
  2675. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -0
  2676. package/lib/module/specs/SkiaPictureViewNativeComponent.web.d.ts +10 -0
  2677. package/lib/module/specs/SkiaPictureViewNativeComponent.web.js +23 -0
  2678. package/lib/module/specs/SkiaPictureViewNativeComponent.web.js.map +1 -0
  2679. package/lib/module/views/SkiaGraphiteView.d.ts +20 -0
  2680. package/lib/module/views/SkiaGraphiteView.js +49 -0
  2681. package/lib/module/views/SkiaGraphiteView.js.map +1 -0
  2682. package/lib/module/views/SkiaGraphiteView.web.d.ts +14 -0
  2683. package/lib/module/views/SkiaGraphiteView.web.js +254 -0
  2684. package/lib/module/views/SkiaGraphiteView.web.js.map +1 -0
  2685. package/lib/module/views/SkiaPictureView.d.ts +28 -0
  2686. package/lib/module/views/SkiaPictureView.js +91 -0
  2687. package/lib/module/views/SkiaPictureView.js.map +1 -0
  2688. package/lib/module/views/SkiaPictureView.web.d.ts +11 -0
  2689. package/lib/module/views/SkiaPictureView.web.js +156 -0
  2690. package/lib/module/views/SkiaPictureView.web.js.map +1 -0
  2691. package/lib/module/views/SkiaViewNativeId.d.ts +3 -0
  2692. package/lib/module/views/SkiaViewNativeId.js +4 -0
  2693. package/lib/module/views/SkiaViewNativeId.js.map +1 -0
  2694. package/lib/module/views/SkiaWebRenderer.d.ts +79 -0
  2695. package/lib/module/views/SkiaWebRenderer.js +571 -0
  2696. package/lib/module/views/SkiaWebRenderer.js.map +1 -0
  2697. package/lib/module/views/api.d.ts +5 -0
  2698. package/lib/module/views/api.js +4 -0
  2699. package/lib/module/views/api.js.map +1 -0
  2700. package/lib/module/views/formats.d.ts +1 -0
  2701. package/lib/module/views/formats.js +22 -0
  2702. package/lib/module/views/formats.js.map +1 -0
  2703. package/lib/module/views/index.d.ts +4 -0
  2704. package/lib/module/views/index.js +5 -0
  2705. package/lib/module/views/index.js.map +1 -0
  2706. package/lib/module/views/types.d.ts +69 -0
  2707. package/lib/module/views/types.js +2 -0
  2708. package/lib/module/views/types.js.map +1 -0
  2709. package/lib/module/web/LoadSkiaWeb.d.ts +6 -0
  2710. package/lib/module/web/LoadSkiaWeb.js +18 -0
  2711. package/lib/module/web/LoadSkiaWeb.js.map +1 -0
  2712. package/lib/module/web/WithSkiaWeb.d.ts +19 -0
  2713. package/lib/module/web/WithSkiaWeb.js +28 -0
  2714. package/lib/module/web/WithSkiaWeb.js.map +1 -0
  2715. package/lib/module/web/index.d.ts +2 -0
  2716. package/lib/module/web/index.js +3 -0
  2717. package/lib/module/web/index.js.map +1 -0
  2718. package/lib/typescript/eslint.config.d.mts +2 -0
  2719. package/lib/typescript/index.d.ts +1 -0
  2720. package/lib/typescript/jestEnv.d.ts +5 -0
  2721. package/lib/typescript/jestSetup.d.mts +1 -0
  2722. package/lib/typescript/jestSetup.d.ts +1 -0
  2723. package/lib/typescript/react-native.config.d.ts +3 -0
  2724. package/lib/typescript/src/Platform/IPlatform.d.ts +9 -0
  2725. package/lib/typescript/src/Platform/Platform.d.ts +2 -0
  2726. package/lib/typescript/src/Platform/Platform.web.d.ts +2 -0
  2727. package/lib/typescript/src/Platform/index.d.ts +1 -0
  2728. package/lib/typescript/src/animation/functions/index.d.ts +4 -0
  2729. package/lib/typescript/src/animation/functions/interpolate.d.ts +17 -0
  2730. package/lib/typescript/src/animation/functions/interpolateColors.d.ts +3 -0
  2731. package/lib/typescript/src/animation/functions/interpolatePaths.d.ts +19 -0
  2732. package/lib/typescript/src/animation/functions/interpolateVector.d.ts +10 -0
  2733. package/lib/typescript/src/animation/index.d.ts +1 -0
  2734. package/lib/typescript/src/dom/nodes/datatypes/Circle.d.ts +6 -0
  2735. package/lib/typescript/src/dom/nodes/datatypes/Enum.d.ts +1 -0
  2736. package/lib/typescript/src/dom/nodes/datatypes/Fitting.d.ts +33 -0
  2737. package/lib/typescript/src/dom/nodes/datatypes/Gradient.d.ts +253 -0
  2738. package/lib/typescript/src/dom/nodes/datatypes/Path.d.ts +4 -0
  2739. package/lib/typescript/src/dom/nodes/datatypes/Radius.d.ts +3 -0
  2740. package/lib/typescript/src/dom/nodes/datatypes/Rect.d.ts +7 -0
  2741. package/lib/typescript/src/dom/nodes/datatypes/Transform.d.ts +4 -0
  2742. package/lib/typescript/src/dom/nodes/datatypes/index.d.ts +8 -0
  2743. package/lib/typescript/src/dom/nodes/index.d.ts +2 -0
  2744. package/lib/typescript/src/dom/types/ColorFilters.d.ts +12 -0
  2745. package/lib/typescript/src/dom/types/Common.d.ts +60 -0
  2746. package/lib/typescript/src/dom/types/Drawings.d.ts +121 -0
  2747. package/lib/typescript/src/dom/types/ImageFilters.d.ts +37 -0
  2748. package/lib/typescript/src/dom/types/MaskFilters.d.ts +7 -0
  2749. package/lib/typescript/src/dom/types/Node.d.ts +17 -0
  2750. package/lib/typescript/src/dom/types/NodeType.d.ts +61 -0
  2751. package/lib/typescript/src/dom/types/Paragraph.d.ts +8 -0
  2752. package/lib/typescript/src/dom/types/PathEffects.d.ts +28 -0
  2753. package/lib/typescript/src/dom/types/Shaders.d.ts +58 -0
  2754. package/lib/typescript/src/dom/types/SkDOM.d.ts +73 -0
  2755. package/lib/typescript/src/dom/types/index.d.ts +11 -0
  2756. package/lib/typescript/src/external/ModuleProxy.d.ts +10 -0
  2757. package/lib/typescript/src/external/index.d.ts +1 -0
  2758. package/lib/typescript/src/external/reanimated/ReanimatedProxy.d.ts +3 -0
  2759. package/lib/typescript/src/external/reanimated/buffers.d.ts +7 -0
  2760. package/lib/typescript/src/external/reanimated/index.d.ts +6 -0
  2761. package/lib/typescript/src/external/reanimated/interpolators.d.ts +16 -0
  2762. package/lib/typescript/src/external/reanimated/renderHelpers.d.ts +16 -0
  2763. package/lib/typescript/src/external/reanimated/textures.d.ts +6 -0
  2764. package/lib/typescript/src/external/reanimated/useAnimatedImageValue.d.ts +3 -0
  2765. package/lib/typescript/src/external/reanimated/useVideo.d.ts +21 -0
  2766. package/lib/typescript/src/external/reanimated/useVideoLoading.d.ts +4 -0
  2767. package/lib/typescript/src/external/reanimated/useVideoLoading.web.d.ts +4 -0
  2768. package/lib/typescript/src/headless/index.d.ts +9 -0
  2769. package/lib/typescript/src/index.d.ts +11 -0
  2770. package/lib/typescript/src/mock/index.d.ts +2 -0
  2771. package/lib/typescript/src/renderer/Canvas.d.ts +48 -0
  2772. package/lib/typescript/src/renderer/Offscreen.d.ts +6 -0
  2773. package/lib/typescript/src/renderer/components/Blend.d.ts +4 -0
  2774. package/lib/typescript/src/renderer/components/Group.d.ts +8 -0
  2775. package/lib/typescript/src/renderer/components/ImageFilter.d.ts +4 -0
  2776. package/lib/typescript/src/renderer/components/Mask.d.ts +10 -0
  2777. package/lib/typescript/src/renderer/components/Paint.d.ts +4 -0
  2778. package/lib/typescript/src/renderer/components/Picture.d.ts +4 -0
  2779. package/lib/typescript/src/renderer/components/Skottie.d.ts +4 -0
  2780. package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +9 -0
  2781. package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +8 -0
  2782. package/lib/typescript/src/renderer/components/backdrop/index.d.ts +2 -0
  2783. package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +4 -0
  2784. package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +4 -0
  2785. package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +4 -0
  2786. package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +4 -0
  2787. package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +5 -0
  2788. package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +4 -0
  2789. package/lib/typescript/src/renderer/components/colorFilters/index.d.ts +6 -0
  2790. package/lib/typescript/src/renderer/components/image/Image.d.ts +4 -0
  2791. package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +4 -0
  2792. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +4 -0
  2793. package/lib/typescript/src/renderer/components/image/index.d.ts +3 -0
  2794. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +4 -0
  2795. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +4 -0
  2796. package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +4 -0
  2797. package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +4 -0
  2798. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +4 -0
  2799. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +4 -0
  2800. package/lib/typescript/src/renderer/components/imageFilters/index.d.ts +6 -0
  2801. package/lib/typescript/src/renderer/components/index.d.ts +18 -0
  2802. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +4 -0
  2803. package/lib/typescript/src/renderer/components/maskFilters/index.d.ts +1 -0
  2804. package/lib/typescript/src/renderer/components/paragraph/Paragraph.d.ts +4 -0
  2805. package/lib/typescript/src/renderer/components/paragraph/index.d.ts +1 -0
  2806. package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +4 -0
  2807. package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +4 -0
  2808. package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +4 -0
  2809. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +4 -0
  2810. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +4 -0
  2811. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +4 -0
  2812. package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +3 -0
  2813. package/lib/typescript/src/renderer/components/pathEffects/index.d.ts +7 -0
  2814. package/lib/typescript/src/renderer/components/shaders/Color.d.ts +4 -0
  2815. package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +4 -0
  2816. package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +4 -0
  2817. package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +4 -0
  2818. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +4 -0
  2819. package/lib/typescript/src/renderer/components/shaders/ShaderLib.d.ts +4 -0
  2820. package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +4 -0
  2821. package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +4 -0
  2822. package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +4 -0
  2823. package/lib/typescript/src/renderer/components/shaders/index.d.ts +9 -0
  2824. package/lib/typescript/src/renderer/components/shapes/Atlas.d.ts +4 -0
  2825. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +5 -0
  2826. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +4 -0
  2827. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +4 -0
  2828. package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +4 -0
  2829. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +13 -0
  2830. package/lib/typescript/src/renderer/components/shapes/Line.d.ts +4 -0
  2831. package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +4 -0
  2832. package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +4 -0
  2833. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +4 -0
  2834. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +4 -0
  2835. package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +4 -0
  2836. package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +4 -0
  2837. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +4 -0
  2838. package/lib/typescript/src/renderer/components/shapes/index.d.ts +14 -0
  2839. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +4 -0
  2840. package/lib/typescript/src/renderer/components/text/Text.d.ts +4 -0
  2841. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +4 -0
  2842. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +4 -0
  2843. package/lib/typescript/src/renderer/components/text/index.d.ts +4 -0
  2844. package/lib/typescript/src/renderer/index.d.ts +1 -0
  2845. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +38 -0
  2846. package/lib/typescript/src/renderer/processors/Animations/index.d.ts +1 -0
  2847. package/lib/typescript/src/renderer/processors/index.d.ts +2 -0
  2848. package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +29 -0
  2849. package/lib/typescript/src/renderer/processors/math/Math.d.ts +16 -0
  2850. package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +5 -0
  2851. package/lib/typescript/src/renderer/processors/math/index.d.ts +3 -0
  2852. package/lib/typescript/src/renderer/typeddash.d.ts +3 -0
  2853. package/lib/typescript/src/skia/NativeSetup.d.ts +1 -0
  2854. package/lib/typescript/src/skia/Skia.d.ts +8 -0
  2855. package/lib/typescript/src/skia/Skia.web.d.ts +1 -0
  2856. package/lib/typescript/src/skia/SkiaWorkletSerialization.d.ts +1 -0
  2857. package/lib/typescript/src/skia/core/AnimatedImage.d.ts +5 -0
  2858. package/lib/typescript/src/skia/core/Data.d.ts +5 -0
  2859. package/lib/typescript/src/skia/core/Font.d.ts +33 -0
  2860. package/lib/typescript/src/skia/core/Image.d.ts +16 -0
  2861. package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
  2862. package/lib/typescript/src/skia/core/Picture.d.ts +8 -0
  2863. package/lib/typescript/src/skia/core/RRect.d.ts +2 -0
  2864. package/lib/typescript/src/skia/core/Rect.d.ts +8 -0
  2865. package/lib/typescript/src/skia/core/SVG.d.ts +2 -0
  2866. package/lib/typescript/src/skia/core/SVG.web.d.ts +2 -0
  2867. package/lib/typescript/src/skia/core/Typeface.d.ts +5 -0
  2868. package/lib/typescript/src/skia/core/Vector.d.ts +7 -0
  2869. package/lib/typescript/src/skia/core/index.d.ts +11 -0
  2870. package/lib/typescript/src/skia/index.d.ts +3 -0
  2871. package/lib/typescript/src/skia/types/AnimatedImage/AnimatedImage.d.ts +29 -0
  2872. package/lib/typescript/src/skia/types/AnimatedImage/AnimatedImageFactory.d.ts +13 -0
  2873. package/lib/typescript/src/skia/types/AnimatedImage/index.d.ts +2 -0
  2874. package/lib/typescript/src/skia/types/Canvas.d.ts +409 -0
  2875. package/lib/typescript/src/skia/types/Color.d.ts +2 -0
  2876. package/lib/typescript/src/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
  2877. package/lib/typescript/src/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
  2878. package/lib/typescript/src/skia/types/ColorFilter/index.d.ts +2 -0
  2879. package/lib/typescript/src/skia/types/ContourMeasure.d.ts +41 -0
  2880. package/lib/typescript/src/skia/types/Data/Data.d.ts +18 -0
  2881. package/lib/typescript/src/skia/types/Data/DataFactory.d.ts +18 -0
  2882. package/lib/typescript/src/skia/types/Data/index.d.ts +2 -0
  2883. package/lib/typescript/src/skia/types/Font/Font.d.ts +189 -0
  2884. package/lib/typescript/src/skia/types/Font/FontMgr.d.ts +8 -0
  2885. package/lib/typescript/src/skia/types/Font/FontMgrFactory.d.ts +4 -0
  2886. package/lib/typescript/src/skia/types/Font/index.d.ts +3 -0
  2887. package/lib/typescript/src/skia/types/Graphite.d.ts +34 -0
  2888. package/lib/typescript/src/skia/types/Image/ColorType.d.ts +21 -0
  2889. package/lib/typescript/src/skia/types/Image/Image.d.ts +131 -0
  2890. package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +110 -0
  2891. package/lib/typescript/src/skia/types/Image/index.d.ts +3 -0
  2892. package/lib/typescript/src/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
  2893. package/lib/typescript/src/skia/types/ImageFilter/ImageFilterFactory.d.ts +367 -0
  2894. package/lib/typescript/src/skia/types/ImageFilter/index.d.ts +2 -0
  2895. package/lib/typescript/src/skia/types/JsiInstance.d.ts +5 -0
  2896. package/lib/typescript/src/skia/types/MaskFilter.d.ts +21 -0
  2897. package/lib/typescript/src/skia/types/Matrix.d.ts +23 -0
  2898. package/lib/typescript/src/skia/types/Matrix4.d.ts +122 -0
  2899. package/lib/typescript/src/skia/types/NativeBuffer/NativeBufferFactory.d.ts +29 -0
  2900. package/lib/typescript/src/skia/types/NativeBuffer/index.d.ts +1 -0
  2901. package/lib/typescript/src/skia/types/Paint/BlendMode.d.ts +60 -0
  2902. package/lib/typescript/src/skia/types/Paint/Paint.d.ts +142 -0
  2903. package/lib/typescript/src/skia/types/Paint/index.d.ts +2 -0
  2904. package/lib/typescript/src/skia/types/Paragraph/Paragraph.d.ts +171 -0
  2905. package/lib/typescript/src/skia/types/Paragraph/ParagraphBuilder.d.ts +60 -0
  2906. package/lib/typescript/src/skia/types/Paragraph/ParagraphStyle.d.ts +41 -0
  2907. package/lib/typescript/src/skia/types/Paragraph/TextStyle.d.ts +62 -0
  2908. package/lib/typescript/src/skia/types/Paragraph/TypefaceFontProvider.d.ts +10 -0
  2909. package/lib/typescript/src/skia/types/Paragraph/TypefaceFontProviderFactory.d.ts +4 -0
  2910. package/lib/typescript/src/skia/types/Paragraph/index.d.ts +6 -0
  2911. package/lib/typescript/src/skia/types/Path/Path.d.ts +141 -0
  2912. package/lib/typescript/src/skia/types/Path/PathBuilder.d.ts +201 -0
  2913. package/lib/typescript/src/skia/types/Path/PathBuilderFactory.d.ts +13 -0
  2914. package/lib/typescript/src/skia/types/Path/PathFactory.d.ts +115 -0
  2915. package/lib/typescript/src/skia/types/Path/index.d.ts +4 -0
  2916. package/lib/typescript/src/skia/types/PathEffect.d.ts +75 -0
  2917. package/lib/typescript/src/skia/types/Picture/Picture.d.ts +27 -0
  2918. package/lib/typescript/src/skia/types/Picture/PictureFactory.d.ts +8 -0
  2919. package/lib/typescript/src/skia/types/Picture/PictureRecorder.d.ts +16 -0
  2920. package/lib/typescript/src/skia/types/Picture/index.d.ts +3 -0
  2921. package/lib/typescript/src/skia/types/Point.d.ts +10 -0
  2922. package/lib/typescript/src/skia/types/RRect.d.ts +16 -0
  2923. package/lib/typescript/src/skia/types/RSXform.d.ts +8 -0
  2924. package/lib/typescript/src/skia/types/Recorder.d.ts +64 -0
  2925. package/lib/typescript/src/skia/types/Rect.d.ts +11 -0
  2926. package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +52 -0
  2927. package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
  2928. package/lib/typescript/src/skia/types/RuntimeEffect/index.d.ts +2 -0
  2929. package/lib/typescript/src/skia/types/SVG/SVG.d.ts +5 -0
  2930. package/lib/typescript/src/skia/types/SVG/SVGFactory.d.ts +7 -0
  2931. package/lib/typescript/src/skia/types/SVG/index.d.ts +2 -0
  2932. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +10 -0
  2933. package/lib/typescript/src/skia/types/Shader/ShaderFactory.d.ts +104 -0
  2934. package/lib/typescript/src/skia/types/Shader/index.d.ts +2 -0
  2935. package/lib/typescript/src/skia/types/Size.d.ts +4 -0
  2936. package/lib/typescript/src/skia/types/Skia.d.ts +90 -0
  2937. package/lib/typescript/src/skia/types/Skottie.d.ts +223 -0
  2938. package/lib/typescript/src/skia/types/Surface/Surface.d.ts +52 -0
  2939. package/lib/typescript/src/skia/types/Surface/SurfaceFactory.d.ts +42 -0
  2940. package/lib/typescript/src/skia/types/Surface/index.d.ts +2 -0
  2941. package/lib/typescript/src/skia/types/TextBlob.d.ts +44 -0
  2942. package/lib/typescript/src/skia/types/Typeface/Typeface.d.ts +11 -0
  2943. package/lib/typescript/src/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
  2944. package/lib/typescript/src/skia/types/Typeface/index.d.ts +2 -0
  2945. package/lib/typescript/src/skia/types/Vertices/Vertices.d.ts +17 -0
  2946. package/lib/typescript/src/skia/types/Vertices/index.d.ts +1 -0
  2947. package/lib/typescript/src/skia/types/Video/Video.d.ts +20 -0
  2948. package/lib/typescript/src/skia/types/Video/index.d.ts +1 -0
  2949. package/lib/typescript/src/skia/types/index.d.ts +36 -0
  2950. package/lib/typescript/src/skia/web/CanvasKitWebGLBufferImpl.d.ts +9 -0
  2951. package/lib/typescript/src/skia/web/Host.d.ts +19 -0
  2952. package/lib/typescript/src/skia/web/JsiSkAnimatedImage.d.ts +11 -0
  2953. package/lib/typescript/src/skia/web/JsiSkAnimatedImageFactory.d.ts +9 -0
  2954. package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +47 -0
  2955. package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
  2956. package/lib/typescript/src/skia/web/JsiSkColorFilter.d.ts +6 -0
  2957. package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  2958. package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +12 -0
  2959. package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  2960. package/lib/typescript/src/skia/web/JsiSkData.d.ts +8 -0
  2961. package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
  2962. package/lib/typescript/src/skia/web/JsiSkFont.d.ts +34 -0
  2963. package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +10 -0
  2964. package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
  2965. package/lib/typescript/src/skia/web/JsiSkImage.d.ts +17 -0
  2966. package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +16 -0
  2967. package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +6 -0
  2968. package/lib/typescript/src/skia/web/JsiSkImageFilterFactory.d.ts +36 -0
  2969. package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +6 -0
  2970. package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  2971. package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +19 -0
  2972. package/lib/typescript/src/skia/web/JsiSkNativeBufferFactory.d.ts +9 -0
  2973. package/lib/typescript/src/skia/web/JsiSkPaint.d.ts +30 -0
  2974. package/lib/typescript/src/skia/web/JsiSkParagraph.d.ts +20 -0
  2975. package/lib/typescript/src/skia/web/JsiSkParagraphBuilder.d.ts +14 -0
  2976. package/lib/typescript/src/skia/web/JsiSkParagraphBuilderFactory.d.ts +8 -0
  2977. package/lib/typescript/src/skia/web/JsiSkParagraphStyle.d.ts +5 -0
  2978. package/lib/typescript/src/skia/web/JsiSkPath.d.ts +35 -0
  2979. package/lib/typescript/src/skia/web/JsiSkPathBuilder.d.ts +45 -0
  2980. package/lib/typescript/src/skia/web/JsiSkPathBuilderFactory.d.ts +9 -0
  2981. package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +6 -0
  2982. package/lib/typescript/src/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  2983. package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +25 -0
  2984. package/lib/typescript/src/skia/web/JsiSkPicture.d.ts +9 -0
  2985. package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
  2986. package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  2987. package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +9 -0
  2988. package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +12 -0
  2989. package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +13 -0
  2990. package/lib/typescript/src/skia/web/JsiSkRect.d.ts +12 -0
  2991. package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +16 -0
  2992. package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  2993. package/lib/typescript/src/skia/web/JsiSkSVG.d.ts +9 -0
  2994. package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +10 -0
  2995. package/lib/typescript/src/skia/web/JsiSkShader.d.ts +6 -0
  2996. package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
  2997. package/lib/typescript/src/skia/web/JsiSkSurface.d.ts +14 -0
  2998. package/lib/typescript/src/skia/web/JsiSkSurfaceFactory.d.ts +10 -0
  2999. package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +6 -0
  3000. package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +13 -0
  3001. package/lib/typescript/src/skia/web/JsiSkTextStyle.d.ts +5 -0
  3002. package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +9 -0
  3003. package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  3004. package/lib/typescript/src/skia/web/JsiSkTypefaceFontProvider.d.ts +11 -0
  3005. package/lib/typescript/src/skia/web/JsiSkTypefaceFontProviderFactory.d.ts +7 -0
  3006. package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +9 -0
  3007. package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  3008. package/lib/typescript/src/skia/web/JsiSkia.d.ts +3 -0
  3009. package/lib/typescript/src/skia/web/JsiSkottieAnimation.d.ts +58 -0
  3010. package/lib/typescript/src/skia/web/JsiSkottieFactory.d.ts +9 -0
  3011. package/lib/typescript/src/skia/web/JsiVideo.d.ts +28 -0
  3012. package/lib/typescript/src/skia/web/index.d.ts +1 -0
  3013. package/lib/typescript/src/sksg/Container.d.ts +3 -0
  3014. package/lib/typescript/src/sksg/Container.native.d.ts +28 -0
  3015. package/lib/typescript/src/sksg/Container.web.d.ts +13 -0
  3016. package/lib/typescript/src/sksg/Elements.d.ts +67 -0
  3017. package/lib/typescript/src/sksg/HostConfig.d.ts +19 -0
  3018. package/lib/typescript/src/sksg/Node.d.ts +19 -0
  3019. package/lib/typescript/src/sksg/Reconciler.d.ts +21 -0
  3020. package/lib/typescript/src/sksg/Recorder/Core.d.ts +83 -0
  3021. package/lib/typescript/src/sksg/Recorder/Debug.d.ts +2 -0
  3022. package/lib/typescript/src/sksg/Recorder/DrawingContext.d.ts +23 -0
  3023. package/lib/typescript/src/sksg/Recorder/FrameScope.d.ts +18 -0
  3024. package/lib/typescript/src/sksg/Recorder/FrameScope.native.d.ts +10 -0
  3025. package/lib/typescript/src/sksg/Recorder/Player.d.ts +3 -0
  3026. package/lib/typescript/src/sksg/Recorder/ReanimatedRecorder.d.ts +59 -0
  3027. package/lib/typescript/src/sksg/Recorder/Recorder.d.ts +68 -0
  3028. package/lib/typescript/src/sksg/Recorder/Visitor.d.ts +5 -0
  3029. package/lib/typescript/src/sksg/Recorder/commands/Box.d.ts +13 -0
  3030. package/lib/typescript/src/sksg/Recorder/commands/CTM.d.ts +3 -0
  3031. package/lib/typescript/src/sksg/Recorder/commands/ColorFilters.d.ts +6 -0
  3032. package/lib/typescript/src/sksg/Recorder/commands/Drawing.d.ts +22 -0
  3033. package/lib/typescript/src/sksg/Recorder/commands/ImageFilters.d.ts +12 -0
  3034. package/lib/typescript/src/sksg/Recorder/commands/Paint.d.ts +4 -0
  3035. package/lib/typescript/src/sksg/Recorder/commands/PathEffects.d.ts +6 -0
  3036. package/lib/typescript/src/sksg/Recorder/commands/Shaders.d.ts +5 -0
  3037. package/lib/typescript/src/sksg/StaticContainer.d.ts +23 -0
  3038. package/lib/typescript/src/sksg/utils.d.ts +10 -0
  3039. package/lib/typescript/src/specs/NativeSkiaModule.d.ts +6 -0
  3040. package/lib/typescript/src/specs/NativeSkiaModule.web.d.ts +25 -0
  3041. package/lib/typescript/src/specs/SkiaGraphiteViewNativeComponent.d.ts +10 -0
  3042. package/lib/typescript/src/specs/SkiaGraphiteViewNativeComponent.web.d.ts +9 -0
  3043. package/lib/typescript/src/specs/SkiaPictureViewNativeComponent.d.ts +14 -0
  3044. package/lib/typescript/src/specs/SkiaPictureViewNativeComponent.web.d.ts +10 -0
  3045. package/lib/typescript/src/views/SkiaGraphiteView.d.ts +20 -0
  3046. package/lib/typescript/src/views/SkiaGraphiteView.web.d.ts +14 -0
  3047. package/lib/typescript/src/views/SkiaPictureView.d.ts +28 -0
  3048. package/lib/typescript/src/views/SkiaPictureView.web.d.ts +11 -0
  3049. package/lib/typescript/src/views/SkiaViewNativeId.d.ts +3 -0
  3050. package/lib/typescript/src/views/SkiaWebRenderer.d.ts +79 -0
  3051. package/lib/typescript/src/views/api.d.ts +5 -0
  3052. package/lib/typescript/src/views/formats.d.ts +1 -0
  3053. package/lib/typescript/src/views/index.d.ts +4 -0
  3054. package/lib/typescript/src/views/types.d.ts +69 -0
  3055. package/lib/typescript/src/web/LoadSkiaWeb.d.ts +6 -0
  3056. package/lib/typescript/src/web/WithSkiaWeb.d.ts +19 -0
  3057. package/lib/typescript/src/web/index.d.ts +2 -0
  3058. package/package.json +183 -11
  3059. package/react-native-skia.podspec +203 -0
  3060. package/react-native.config.js +5 -0
  3061. package/scripts/setup-canvaskit.js +111 -0
  3062. package/src/Platform/IPlatform.ts +15 -0
  3063. package/src/Platform/Platform.ts +26 -0
  3064. package/src/Platform/Platform.web.tsx +66 -0
  3065. package/src/Platform/index.ts +1 -0
  3066. package/src/animation/functions/index.ts +4 -0
  3067. package/src/animation/functions/interpolate.ts +185 -0
  3068. package/src/animation/functions/interpolateColors.ts +61 -0
  3069. package/src/animation/functions/interpolatePaths.ts +115 -0
  3070. package/src/animation/functions/interpolateVector.ts +31 -0
  3071. package/src/animation/index.ts +1 -0
  3072. package/src/dom/nodes/datatypes/Circle.ts +16 -0
  3073. package/src/dom/nodes/datatypes/Enum.ts +4 -0
  3074. package/src/dom/nodes/datatypes/Fitting.ts +131 -0
  3075. package/src/dom/nodes/datatypes/Gradient.ts +64 -0
  3076. package/src/dom/nodes/datatypes/Path.ts +21 -0
  3077. package/src/dom/nodes/datatypes/Radius.ts +10 -0
  3078. package/src/dom/nodes/datatypes/Rect.ts +84 -0
  3079. package/src/dom/nodes/datatypes/Transform.ts +54 -0
  3080. package/src/dom/nodes/datatypes/index.ts +8 -0
  3081. package/src/dom/nodes/index.ts +2 -0
  3082. package/src/dom/types/ColorFilters.ts +16 -0
  3083. package/src/dom/types/Common.ts +94 -0
  3084. package/src/dom/types/Drawings.ts +178 -0
  3085. package/src/dom/types/ImageFilters.ts +54 -0
  3086. package/src/dom/types/MaskFilters.ts +9 -0
  3087. package/src/dom/types/Node.ts +23 -0
  3088. package/src/dom/types/NodeType.ts +78 -0
  3089. package/src/dom/types/Paragraph.ts +10 -0
  3090. package/src/dom/types/PathEffects.ts +35 -0
  3091. package/src/dom/types/Shaders.ts +84 -0
  3092. package/src/dom/types/SkDOM.ts +184 -0
  3093. package/src/dom/types/index.ts +11 -0
  3094. package/src/external/ModuleProxy.ts +30 -0
  3095. package/src/external/index.ts +1 -0
  3096. package/src/external/reanimated/ReanimatedProxy.ts +18 -0
  3097. package/src/external/reanimated/buffers.ts +58 -0
  3098. package/src/external/reanimated/index.ts +6 -0
  3099. package/src/external/reanimated/interpolators.ts +144 -0
  3100. package/src/external/reanimated/renderHelpers.ts +49 -0
  3101. package/src/external/reanimated/textures.tsx +95 -0
  3102. package/src/external/reanimated/useAnimatedImageValue.ts +53 -0
  3103. package/src/external/reanimated/useVideo.ts +161 -0
  3104. package/src/external/reanimated/useVideoLoading.ts +39 -0
  3105. package/src/external/reanimated/useVideoLoading.web.ts +17 -0
  3106. package/src/headless/index.ts +41 -0
  3107. package/src/index.ts +11 -0
  3108. package/src/mock/index.ts +72 -0
  3109. package/src/renderer/Canvas.tsx +219 -0
  3110. package/src/renderer/Offscreen.tsx +46 -0
  3111. package/src/renderer/components/Blend.tsx +8 -0
  3112. package/src/renderer/components/Group.tsx +21 -0
  3113. package/src/renderer/components/ImageFilter.tsx +8 -0
  3114. package/src/renderer/components/Mask.tsx +43 -0
  3115. package/src/renderer/components/Paint.tsx +8 -0
  3116. package/src/renderer/components/Picture.tsx +8 -0
  3117. package/src/renderer/components/Skottie.tsx +8 -0
  3118. package/src/renderer/components/backdrop/BackdropBlur.tsx +24 -0
  3119. package/src/renderer/components/backdrop/BackdropFilter.tsx +23 -0
  3120. package/src/renderer/components/backdrop/index.ts +2 -0
  3121. package/src/renderer/components/colorFilters/BlendColor.tsx +8 -0
  3122. package/src/renderer/components/colorFilters/Lerp.tsx +8 -0
  3123. package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +8 -0
  3124. package/src/renderer/components/colorFilters/LumaColorFilter.tsx +8 -0
  3125. package/src/renderer/components/colorFilters/Matrix.tsx +31 -0
  3126. package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +8 -0
  3127. package/src/renderer/components/colorFilters/index.ts +6 -0
  3128. package/src/renderer/components/image/Image.tsx +8 -0
  3129. package/src/renderer/components/image/ImageSVG.tsx +8 -0
  3130. package/src/renderer/components/image/ImageShader.tsx +16 -0
  3131. package/src/renderer/components/image/index.ts +3 -0
  3132. package/src/renderer/components/imageFilters/Blur.tsx +11 -0
  3133. package/src/renderer/components/imageFilters/DisplacementMap.tsx +10 -0
  3134. package/src/renderer/components/imageFilters/Morphology.tsx +11 -0
  3135. package/src/renderer/components/imageFilters/Offset.tsx +12 -0
  3136. package/src/renderer/components/imageFilters/RuntimeShader.tsx +10 -0
  3137. package/src/renderer/components/imageFilters/Shadow.tsx +8 -0
  3138. package/src/renderer/components/imageFilters/index.ts +6 -0
  3139. package/src/renderer/components/index.ts +20 -0
  3140. package/src/renderer/components/maskFilters/Blur.tsx +12 -0
  3141. package/src/renderer/components/maskFilters/index.ts +1 -0
  3142. package/src/renderer/components/paragraph/Paragraph.tsx +8 -0
  3143. package/src/renderer/components/paragraph/index.ts +1 -0
  3144. package/src/renderer/components/pathEffects/Corner.tsx +8 -0
  3145. package/src/renderer/components/pathEffects/Dash.tsx +8 -0
  3146. package/src/renderer/components/pathEffects/Discrete.tsx +11 -0
  3147. package/src/renderer/components/pathEffects/Line2D.tsx +8 -0
  3148. package/src/renderer/components/pathEffects/Path1D.tsx +8 -0
  3149. package/src/renderer/components/pathEffects/Path2D.tsx +8 -0
  3150. package/src/renderer/components/pathEffects/Sum.tsx +7 -0
  3151. package/src/renderer/components/pathEffects/index.ts +7 -0
  3152. package/src/renderer/components/shaders/Color.tsx +8 -0
  3153. package/src/renderer/components/shaders/FractalNoise.tsx +23 -0
  3154. package/src/renderer/components/shaders/LinearGradient.tsx +8 -0
  3155. package/src/renderer/components/shaders/RadialGradient.tsx +8 -0
  3156. package/src/renderer/components/shaders/Shader.tsx +11 -0
  3157. package/src/renderer/components/shaders/ShaderLib.ts +46 -0
  3158. package/src/renderer/components/shaders/SweepGradient.tsx +8 -0
  3159. package/src/renderer/components/shaders/Turbulence.tsx +20 -0
  3160. package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +10 -0
  3161. package/src/renderer/components/shaders/index.ts +9 -0
  3162. package/src/renderer/components/shapes/Atlas.tsx +8 -0
  3163. package/src/renderer/components/shapes/Box.tsx +12 -0
  3164. package/src/renderer/components/shapes/Circle.tsx +8 -0
  3165. package/src/renderer/components/shapes/DiffRect.tsx +8 -0
  3166. package/src/renderer/components/shapes/Fill.tsx +8 -0
  3167. package/src/renderer/components/shapes/FitBox.tsx +58 -0
  3168. package/src/renderer/components/shapes/Line.tsx +8 -0
  3169. package/src/renderer/components/shapes/Oval.tsx +8 -0
  3170. package/src/renderer/components/shapes/Patch.tsx +8 -0
  3171. package/src/renderer/components/shapes/Path.tsx +12 -0
  3172. package/src/renderer/components/shapes/Points.tsx +11 -0
  3173. package/src/renderer/components/shapes/Rect.tsx +8 -0
  3174. package/src/renderer/components/shapes/RoundedRect.tsx +8 -0
  3175. package/src/renderer/components/shapes/Vertices.tsx +11 -0
  3176. package/src/renderer/components/shapes/index.ts +14 -0
  3177. package/src/renderer/components/text/Glyphs.tsx +12 -0
  3178. package/src/renderer/components/text/Text.tsx +12 -0
  3179. package/src/renderer/components/text/TextBlob.tsx +12 -0
  3180. package/src/renderer/components/text/TextPath.tsx +11 -0
  3181. package/src/renderer/components/text/index.ts +4 -0
  3182. package/src/renderer/index.ts +1 -0
  3183. package/src/renderer/processors/Animations/Animations.ts +56 -0
  3184. package/src/renderer/processors/Animations/index.ts +1 -0
  3185. package/src/renderer/processors/index.ts +2 -0
  3186. package/src/renderer/processors/math/Coordinates.ts +48 -0
  3187. package/src/renderer/processors/math/Math.ts +31 -0
  3188. package/src/renderer/processors/math/Transforms.ts +9 -0
  3189. package/src/renderer/processors/math/index.ts +3 -0
  3190. package/src/renderer/typeddash.ts +27 -0
  3191. package/src/skia/NativeSetup.ts +24 -0
  3192. package/src/skia/Skia.ts +11 -0
  3193. package/src/skia/Skia.web.ts +3 -0
  3194. package/src/skia/SkiaWorkletSerialization.ts +67 -0
  3195. package/src/skia/core/AnimatedImage.ts +16 -0
  3196. package/src/skia/core/Data.ts +103 -0
  3197. package/src/skia/core/Font.ts +160 -0
  3198. package/src/skia/core/Image.ts +55 -0
  3199. package/src/skia/core/Matrix.ts +8 -0
  3200. package/src/skia/core/Picture.ts +24 -0
  3201. package/src/skia/core/RRect.tsx +7 -0
  3202. package/src/skia/core/Rect.ts +50 -0
  3203. package/src/skia/core/SVG.ts +11 -0
  3204. package/src/skia/core/SVG.web.ts +37 -0
  3205. package/src/skia/core/Typeface.ts +14 -0
  3206. package/src/skia/core/Vector.ts +24 -0
  3207. package/src/skia/core/index.ts +11 -0
  3208. package/src/skia/index.ts +3 -0
  3209. package/src/skia/types/AnimatedImage/AnimatedImage.ts +35 -0
  3210. package/src/skia/types/AnimatedImage/AnimatedImageFactory.ts +15 -0
  3211. package/src/skia/types/AnimatedImage/index.ts +2 -0
  3212. package/src/skia/types/Canvas.ts +544 -0
  3213. package/src/skia/types/Color.ts +4 -0
  3214. package/src/skia/types/ColorFilter/ColorFilter.ts +7 -0
  3215. package/src/skia/types/ColorFilter/ColorFilterFactory.ts +52 -0
  3216. package/src/skia/types/ColorFilter/index.ts +2 -0
  3217. package/src/skia/types/ContourMeasure.tsx +47 -0
  3218. package/src/skia/types/Data/Data.ts +31 -0
  3219. package/src/skia/types/Data/DataFactory.ts +19 -0
  3220. package/src/skia/types/Data/index.ts +2 -0
  3221. package/src/skia/types/Font/Font.ts +229 -0
  3222. package/src/skia/types/Font/FontMgr.ts +10 -0
  3223. package/src/skia/types/Font/FontMgrFactory.ts +5 -0
  3224. package/src/skia/types/Font/index.ts +3 -0
  3225. package/src/skia/types/Graphite.ts +36 -0
  3226. package/src/skia/types/Image/ColorType.ts +21 -0
  3227. package/src/skia/types/Image/Image.ts +159 -0
  3228. package/src/skia/types/Image/ImageFactory.ts +128 -0
  3229. package/src/skia/types/Image/index.ts +3 -0
  3230. package/src/skia/types/ImageFilter/ImageFilter.ts +31 -0
  3231. package/src/skia/types/ImageFilter/ImageFilterFactory.ts +562 -0
  3232. package/src/skia/types/ImageFilter/index.ts +2 -0
  3233. package/src/skia/types/JsiInstance.ts +6 -0
  3234. package/src/skia/types/MaskFilter.ts +27 -0
  3235. package/src/skia/types/Matrix.ts +41 -0
  3236. package/src/skia/types/Matrix4.ts +599 -0
  3237. package/src/skia/types/NativeBuffer/NativeBufferFactory.ts +52 -0
  3238. package/src/skia/types/NativeBuffer/index.ts +1 -0
  3239. package/src/skia/types/Paint/BlendMode.ts +65 -0
  3240. package/src/skia/types/Paint/Paint.ts +172 -0
  3241. package/src/skia/types/Paint/index.ts +2 -0
  3242. package/src/skia/types/Paragraph/Paragraph.ts +182 -0
  3243. package/src/skia/types/Paragraph/ParagraphBuilder.ts +96 -0
  3244. package/src/skia/types/Paragraph/ParagraphStyle.ts +45 -0
  3245. package/src/skia/types/Paragraph/TextStyle.ts +70 -0
  3246. package/src/skia/types/Paragraph/TypefaceFontProvider.ts +11 -0
  3247. package/src/skia/types/Paragraph/TypefaceFontProviderFactory.ts +5 -0
  3248. package/src/skia/types/Paragraph/index.ts +6 -0
  3249. package/src/skia/types/Path/Path.ts +162 -0
  3250. package/src/skia/types/Path/PathBuilder.ts +303 -0
  3251. package/src/skia/types/Path/PathBuilderFactory.ts +15 -0
  3252. package/src/skia/types/Path/PathFactory.ts +141 -0
  3253. package/src/skia/types/Path/index.ts +4 -0
  3254. package/src/skia/types/PathEffect.ts +97 -0
  3255. package/src/skia/types/Picture/Picture.ts +35 -0
  3256. package/src/skia/types/Picture/PictureFactory.ts +9 -0
  3257. package/src/skia/types/Picture/PictureRecorder.ts +19 -0
  3258. package/src/skia/types/Picture/index.ts +3 -0
  3259. package/src/skia/types/Point.ts +12 -0
  3260. package/src/skia/types/RRect.ts +29 -0
  3261. package/src/skia/types/RSXform.ts +9 -0
  3262. package/src/skia/types/Recorder.ts +109 -0
  3263. package/src/skia/types/Rect.ts +26 -0
  3264. package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +65 -0
  3265. package/src/skia/types/RuntimeEffect/RuntimeEffectFactory.ts +12 -0
  3266. package/src/skia/types/RuntimeEffect/index.ts +2 -0
  3267. package/src/skia/types/SVG/SVG.ts +6 -0
  3268. package/src/skia/types/SVG/SVGFactory.ts +17 -0
  3269. package/src/skia/types/SVG/index.ts +2 -0
  3270. package/src/skia/types/Shader/Shader.ts +63 -0
  3271. package/src/skia/types/Shader/ShaderFactory.ts +169 -0
  3272. package/src/skia/types/Shader/index.ts +2 -0
  3273. package/src/skia/types/Size.ts +4 -0
  3274. package/src/skia/types/Skia.ts +113 -0
  3275. package/src/skia/types/Skottie.ts +266 -0
  3276. package/src/skia/types/Surface/Surface.ts +58 -0
  3277. package/src/skia/types/Surface/SurfaceFactory.ts +52 -0
  3278. package/src/skia/types/Surface/index.ts +2 -0
  3279. package/src/skia/types/TextBlob.ts +52 -0
  3280. package/src/skia/types/Typeface/Typeface.ts +12 -0
  3281. package/src/skia/types/Typeface/TypefaceFactory.ts +7 -0
  3282. package/src/skia/types/Typeface/index.ts +2 -0
  3283. package/src/skia/types/Vertices/Vertices.tsx +20 -0
  3284. package/src/skia/types/Vertices/index.ts +1 -0
  3285. package/src/skia/types/Video/Video.ts +19 -0
  3286. package/src/skia/types/Video/index.ts +1 -0
  3287. package/src/skia/types/index.ts +36 -0
  3288. package/src/skia/web/CanvasKitWebGLBufferImpl.ts +25 -0
  3289. package/src/skia/web/Host.ts +95 -0
  3290. package/src/skia/web/JsiSkAnimatedImage.ts +35 -0
  3291. package/src/skia/web/JsiSkAnimatedImageFactory.ts +27 -0
  3292. package/src/skia/web/JsiSkCanvas.ts +471 -0
  3293. package/src/skia/web/JsiSkColor.ts +340 -0
  3294. package/src/skia/web/JsiSkColorFilter.ts +14 -0
  3295. package/src/skia/web/JsiSkColorFilterFactory.ts +80 -0
  3296. package/src/skia/web/JsiSkContourMeasure.ts +39 -0
  3297. package/src/skia/web/JsiSkContourMeasureIter.ts +23 -0
  3298. package/src/skia/web/JsiSkData.ts +13 -0
  3299. package/src/skia/web/JsiSkDataFactory.ts +34 -0
  3300. package/src/skia/web/JsiSkFont.ts +181 -0
  3301. package/src/skia/web/JsiSkFontMgr.ts +27 -0
  3302. package/src/skia/web/JsiSkFontMgrFactory.ts +20 -0
  3303. package/src/skia/web/JsiSkImage.ts +181 -0
  3304. package/src/skia/web/JsiSkImageFactory.ts +112 -0
  3305. package/src/skia/web/JsiSkImageFilter.ts +14 -0
  3306. package/src/skia/web/JsiSkImageFilterFactory.ts +441 -0
  3307. package/src/skia/web/JsiSkMaskFilter.ts +14 -0
  3308. package/src/skia/web/JsiSkMaskFilterFactory.ts +24 -0
  3309. package/src/skia/web/JsiSkMatrix.ts +87 -0
  3310. package/src/skia/web/JsiSkNativeBufferFactory.ts +51 -0
  3311. package/src/skia/web/JsiSkPaint.ts +202 -0
  3312. package/src/skia/web/JsiSkParagraph.ts +75 -0
  3313. package/src/skia/web/JsiSkParagraphBuilder.ts +95 -0
  3314. package/src/skia/web/JsiSkParagraphBuilderFactory.ts +48 -0
  3315. package/src/skia/web/JsiSkParagraphStyle.ts +78 -0
  3316. package/src/skia/web/JsiSkPath.ts +211 -0
  3317. package/src/skia/web/JsiSkPathBuilder.ts +293 -0
  3318. package/src/skia/web/JsiSkPathBuilderFactory.ts +32 -0
  3319. package/src/skia/web/JsiSkPathEffect.ts +14 -0
  3320. package/src/skia/web/JsiSkPathEffectFactory.ts +94 -0
  3321. package/src/skia/web/JsiSkPathFactory.ts +272 -0
  3322. package/src/skia/web/JsiSkPicture.ts +47 -0
  3323. package/src/skia/web/JsiSkPictureFactory.ts +20 -0
  3324. package/src/skia/web/JsiSkPictureRecorder.ts +36 -0
  3325. package/src/skia/web/JsiSkPoint.ts +29 -0
  3326. package/src/skia/web/JsiSkRRect.ts +77 -0
  3327. package/src/skia/web/JsiSkRSXform.ts +46 -0
  3328. package/src/skia/web/JsiSkRect.ts +44 -0
  3329. package/src/skia/web/JsiSkRuntimeEffect.ts +70 -0
  3330. package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
  3331. package/src/skia/web/JsiSkSVG.ts +27 -0
  3332. package/src/skia/web/JsiSkSVGFactory.ts +61 -0
  3333. package/src/skia/web/JsiSkShader.ts +14 -0
  3334. package/src/skia/web/JsiSkShaderFactory.ts +190 -0
  3335. package/src/skia/web/JsiSkSurface.ts +55 -0
  3336. package/src/skia/web/JsiSkSurfaceFactory.ts +45 -0
  3337. package/src/skia/web/JsiSkTextBlob.ts +14 -0
  3338. package/src/skia/web/JsiSkTextBlobFactory.ts +55 -0
  3339. package/src/skia/web/JsiSkTextStyle.ts +58 -0
  3340. package/src/skia/web/JsiSkTypeface.ts +32 -0
  3341. package/src/skia/web/JsiSkTypefaceFactory.tsx +22 -0
  3342. package/src/skia/web/JsiSkTypefaceFontProvider.ts +73 -0
  3343. package/src/skia/web/JsiSkTypefaceFontProviderFactory.ts +18 -0
  3344. package/src/skia/web/JsiSkVertices.ts +23 -0
  3345. package/src/skia/web/JsiSkVerticesFactory.ts +41 -0
  3346. package/src/skia/web/JsiSkia.ts +145 -0
  3347. package/src/skia/web/JsiSkottieAnimation.ts +256 -0
  3348. package/src/skia/web/JsiSkottieFactory.ts +25 -0
  3349. package/src/skia/web/JsiVideo.ts +113 -0
  3350. package/src/skia/web/index.ts +1 -0
  3351. package/src/sksg/Container.native.ts +123 -0
  3352. package/src/sksg/Container.ts +7 -0
  3353. package/src/sksg/Container.web.ts +117 -0
  3354. package/src/sksg/Elements.tsx +139 -0
  3355. package/src/sksg/HostConfig.ts +270 -0
  3356. package/src/sksg/Node.ts +106 -0
  3357. package/src/sksg/Reconciler.ts +82 -0
  3358. package/src/sksg/Recorder/Core.ts +152 -0
  3359. package/src/sksg/Recorder/Debug.ts +87 -0
  3360. package/src/sksg/Recorder/DrawingContext.ts +173 -0
  3361. package/src/sksg/Recorder/FrameScope.native.ts +21 -0
  3362. package/src/sksg/Recorder/FrameScope.ts +69 -0
  3363. package/src/sksg/Recorder/Player.ts +233 -0
  3364. package/src/sksg/Recorder/ReanimatedRecorder.ts +305 -0
  3365. package/src/sksg/Recorder/Recorder.ts +325 -0
  3366. package/src/sksg/Recorder/Visitor.ts +353 -0
  3367. package/src/sksg/Recorder/commands/Box.ts +61 -0
  3368. package/src/sksg/Recorder/commands/CTM.ts +72 -0
  3369. package/src/sksg/Recorder/commands/ColorFilters.ts +88 -0
  3370. package/src/sksg/Recorder/commands/Drawing.ts +355 -0
  3371. package/src/sksg/Recorder/commands/ImageFilters.ts +285 -0
  3372. package/src/sksg/Recorder/commands/Paint.ts +67 -0
  3373. package/src/sksg/Recorder/commands/PathEffects.ts +170 -0
  3374. package/src/sksg/Recorder/commands/Shaders.ts +310 -0
  3375. package/src/sksg/StaticContainer.ts +99 -0
  3376. package/src/sksg/utils.ts +54 -0
  3377. package/src/specs/NativeSkiaModule.ts +9 -0
  3378. package/src/specs/NativeSkiaModule.web.ts +146 -0
  3379. package/src/specs/SkiaGraphiteViewNativeComponent.ts +17 -0
  3380. package/src/specs/SkiaGraphiteViewNativeComponent.web.ts +31 -0
  3381. package/src/specs/SkiaPictureViewNativeComponent.ts +24 -0
  3382. package/src/specs/SkiaPictureViewNativeComponent.web.ts +33 -0
  3383. package/src/views/SkiaGraphiteView.tsx +85 -0
  3384. package/src/views/SkiaGraphiteView.web.tsx +365 -0
  3385. package/src/views/SkiaPictureView.tsx +109 -0
  3386. package/src/views/SkiaPictureView.web.tsx +224 -0
  3387. package/src/views/SkiaViewNativeId.ts +1 -0
  3388. package/src/views/SkiaWebRenderer.ts +656 -0
  3389. package/src/views/api.ts +7 -0
  3390. package/src/views/formats.ts +21 -0
  3391. package/src/views/index.ts +4 -0
  3392. package/src/views/types.ts +99 -0
  3393. package/src/web/LoadSkiaWeb.tsx +27 -0
  3394. package/src/web/WithSkiaWeb.tsx +53 -0
  3395. package/src/web/index.ts +2 -0
@@ -0,0 +1,2769 @@
1
+ /*
2
+ * Copyright 2006 The Android Open Source Project
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 SkCanvas_DEFINED
9
+ #define SkCanvas_DEFINED
10
+
11
+ #include "include/core/SkArc.h"
12
+ #include "include/core/SkBlendMode.h"
13
+ #include "include/core/SkClipOp.h"
14
+ #include "include/core/SkColor.h"
15
+ #include "include/core/SkFontTypes.h"
16
+ #include "include/core/SkImageFilter.h"
17
+ #include "include/core/SkImageInfo.h"
18
+ #include "include/core/SkM44.h"
19
+ #include "include/core/SkMatrix.h"
20
+ #include "include/core/SkPaint.h"
21
+ #include "include/core/SkPoint.h"
22
+ #include "include/core/SkRSXform.h" // IWYU pragma: keep (for unspanned apis)
23
+ #include "include/core/SkRasterHandleAllocator.h"
24
+ #include "include/core/SkRect.h"
25
+ #include "include/core/SkRefCnt.h"
26
+ #include "include/core/SkSamplingOptions.h"
27
+ #include "include/core/SkScalar.h"
28
+ #include "include/core/SkSize.h"
29
+ #include "include/core/SkSpan.h"
30
+ #include "include/core/SkString.h"
31
+ #include "include/core/SkSurfaceProps.h"
32
+ #include "include/core/SkTileMode.h"
33
+ #include "include/core/SkTypes.h"
34
+ #include "include/private/SkCPUTypes.h"
35
+ #include "include/private/SkDeque.h"
36
+ #include "include/private/SkEnumBitMask.h"
37
+ #include "include/private/SkTArray.h"
38
+
39
+ #include <cstddef>
40
+ #include <cstdint>
41
+ #include <cstring>
42
+ #include <memory>
43
+ #include <optional>
44
+
45
+ #ifndef SK_SUPPORT_LEGACY_GETTOTALMATRIX
46
+ #define SK_SUPPORT_LEGACY_GETTOTALMATRIX
47
+ #endif
48
+
49
+ class AutoLayerForImageFilter;
50
+ class GrRecordingContext;
51
+
52
+ class SkBitmap;
53
+ class SkBlender;
54
+ class SkBlurMaskFilterImpl;
55
+ class SkColorSpace;
56
+ class SkData;
57
+ class SkDevice;
58
+ class SkDrawable;
59
+ class SkFont;
60
+ class SkImage;
61
+ class SkMesh;
62
+ class SkPaintFilterCanvas;
63
+ class SkPath;
64
+ class SkPicture;
65
+ class SkPixmap;
66
+ class SkRRect;
67
+ class SkRegion;
68
+ class SkRecorder;
69
+ class SkShader;
70
+ class SkSpecialImage;
71
+ class SkSurface;
72
+ class SkSurface_Base;
73
+ class SkTextBlob;
74
+ class SkVertices;
75
+ struct SkDrawShadowRec;
76
+
77
+ template<typename E>
78
+ class SkEnumBitMask;
79
+
80
+ namespace sktext {
81
+ class GlyphRunBuilder;
82
+ class GlyphRun;
83
+ class GlyphRunList;
84
+ } // namespace sktext
85
+
86
+ namespace skgpu::graphite { class Recorder; }
87
+ namespace sktext::gpu { class Slug; }
88
+ namespace SkRecords { class Draw; }
89
+ namespace skiatest {
90
+ template <typename Key>
91
+ class TestCanvas;// IWYU pragma: keep
92
+ }
93
+
94
+ /** \class SkCanvas
95
+ SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
96
+ SkCanvas contains a stack of SkMatrix and clip values.
97
+
98
+ SkCanvas and SkPaint together provide the state to draw into SkSurface or SkDevice.
99
+ Each SkCanvas draw call transforms the geometry of the object by the concatenation of all
100
+ SkMatrix values in the stack. The transformed geometry is clipped by the intersection
101
+ of all of clip values in the stack. The SkCanvas draw calls use SkPaint to supply drawing
102
+ state such as color, SkTypeface, text size, stroke width, SkShader and so on.
103
+
104
+ To draw to a pixel-based destination, create raster surface or GPU surface.
105
+ Request SkCanvas from SkSurface to obtain the interface to draw.
106
+ SkCanvas generated by raster surface draws to memory visible to the CPU.
107
+ SkCanvas generated by GPU surface uses Vulkan or OpenGL to draw to the GPU.
108
+
109
+ To draw to a document, obtain SkCanvas from SVG canvas, document PDF, or SkPictureRecorder.
110
+ SkDocument based SkCanvas and other SkCanvas subclasses reference SkDevice describing the
111
+ destination.
112
+
113
+ SkCanvas can be constructed to draw to SkBitmap without first creating raster surface.
114
+ This approach may be deprecated in the future.
115
+ */
116
+ class SK_API SkCanvas {
117
+ public:
118
+
119
+ /** Allocates raster SkCanvas that will draw directly into pixels.
120
+
121
+ SkCanvas is returned if all parameters are valid.
122
+ Valid parameters include:
123
+ info dimensions are zero or positive;
124
+ info contains SkColorType and SkAlphaType supported by raster surface;
125
+ pixels is not nullptr;
126
+ rowBytes is zero or large enough to contain info width pixels of SkColorType.
127
+
128
+ Pass zero for rowBytes to compute rowBytes from info width and size of pixel.
129
+ If rowBytes is greater than zero, it must be equal to or greater than
130
+ info width times bytes required for SkColorType.
131
+
132
+ Pixel buffer size should be info height times computed rowBytes.
133
+ Pixels are not initialized.
134
+ To access pixels after drawing, call flush() or peekPixels().
135
+
136
+ @param info width, height, SkColorType, SkAlphaType, SkColorSpace, of raster surface;
137
+ width, or height, or both, may be zero
138
+ @param pixels pointer to destination pixels buffer
139
+ @param rowBytes interval from one SkSurface row to the next, or zero
140
+ @param props LCD striping orientation and setting for device independent fonts;
141
+ may be nullptr
142
+ @return SkCanvas if all parameters are valid; otherwise, nullptr
143
+ */
144
+ static std::unique_ptr<SkCanvas> MakeRasterDirect(const SkImageInfo& info, void* pixels,
145
+ size_t rowBytes,
146
+ const SkSurfaceProps* props = nullptr);
147
+
148
+ /** Allocates raster SkCanvas specified by inline image specification. Subsequent SkCanvas
149
+ calls draw into pixels.
150
+ SkColorType is set to kN32_SkColorType.
151
+ SkAlphaType is set to kPremul_SkAlphaType.
152
+ To access pixels after drawing, call flush() or peekPixels().
153
+
154
+ SkCanvas is returned if all parameters are valid.
155
+ Valid parameters include:
156
+ width and height are zero or positive;
157
+ pixels is not nullptr;
158
+ rowBytes is zero or large enough to contain width pixels of kN32_SkColorType.
159
+
160
+ Pass zero for rowBytes to compute rowBytes from width and size of pixel.
161
+ If rowBytes is greater than zero, it must be equal to or greater than
162
+ width times bytes required for SkColorType.
163
+
164
+ Pixel buffer size should be height times rowBytes.
165
+
166
+ @param width pixel column count on raster surface created; must be zero or greater
167
+ @param height pixel row count on raster surface created; must be zero or greater
168
+ @param pixels pointer to destination pixels buffer; buffer size should be height
169
+ times rowBytes
170
+ @param rowBytes interval from one SkSurface row to the next, or zero
171
+ @return SkCanvas if all parameters are valid; otherwise, nullptr
172
+ */
173
+ static std::unique_ptr<SkCanvas> MakeRasterDirectN32(int width, int height, SkPMColor* pixels,
174
+ size_t rowBytes) {
175
+ return MakeRasterDirect(SkImageInfo::MakeN32Premul(width, height), pixels, rowBytes);
176
+ }
177
+
178
+ /** Creates an empty SkCanvas with no backing device or pixels, with
179
+ a width and height of zero.
180
+
181
+ @return empty SkCanvas
182
+
183
+ example: https://fiddle.skia.org/c/@Canvas_empty_constructor
184
+ */
185
+ SkCanvas();
186
+
187
+ /** Creates SkCanvas of the specified dimensions without a SkSurface.
188
+ Used by subclasses with custom implementations for draw member functions.
189
+
190
+ If props equals nullptr, SkSurfaceProps are created with
191
+ SkSurfaceProps::InitType settings, which choose the pixel striping
192
+ direction and order. Since a platform may dynamically change its direction when
193
+ the device is rotated, and since a platform may have multiple monitors with
194
+ different characteristics, it is best not to rely on this legacy behavior.
195
+
196
+ @param width zero or greater
197
+ @param height zero or greater
198
+ @param props LCD striping orientation and setting for device independent fonts;
199
+ may be nullptr
200
+ @return SkCanvas placeholder with dimensions
201
+
202
+ example: https://fiddle.skia.org/c/@Canvas_int_int_const_SkSurfaceProps_star
203
+ */
204
+ SkCanvas(int width, int height, const SkSurfaceProps* props = nullptr);
205
+
206
+ /** Private. For internal use only.
207
+ */
208
+ explicit SkCanvas(sk_sp<SkDevice> device);
209
+
210
+ /** Constructs a canvas that draws into bitmap.
211
+ Sets kUnknown_SkPixelGeometry in constructed SkSurface.
212
+
213
+ SkBitmap is copied so that subsequently editing bitmap will not affect
214
+ constructed SkCanvas.
215
+
216
+ May be deprecated in the future.
217
+
218
+ @param bitmap width, height, SkColorType, SkAlphaType, and pixel
219
+ storage of raster surface
220
+ @return SkCanvas that can be used to draw into bitmap
221
+
222
+ example: https://fiddle.skia.org/c/@Canvas_copy_const_SkBitmap
223
+ */
224
+ explicit SkCanvas(const SkBitmap& bitmap);
225
+
226
+ #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
227
+ /** Private.
228
+ */
229
+ enum class ColorBehavior {
230
+ kLegacy, //!< placeholder
231
+ };
232
+
233
+ /** Private. For use by Android framework only.
234
+
235
+ @param bitmap specifies a bitmap for the canvas to draw into
236
+ @param behavior specializes this constructor; value is unused
237
+ @return SkCanvas that can be used to draw into bitmap
238
+ */
239
+ SkCanvas(const SkBitmap& bitmap, ColorBehavior behavior);
240
+ #endif
241
+
242
+ /** Constructs a canvas that draws into bitmap.
243
+ Use props to match the device characteristics, like LCD striping.
244
+
245
+ bitmap is copied so that subsequently editing bitmap will not affect
246
+ constructed SkCanvas.
247
+
248
+ @param bitmap width, height, SkColorType, SkAlphaType,
249
+ and pixel storage of raster surface
250
+ @param props order and orientation of RGB striping; and whether to use
251
+ device independent fonts
252
+ @return SkCanvas that can be used to draw into bitmap
253
+
254
+ example: https://fiddle.skia.org/c/@Canvas_const_SkBitmap_const_SkSurfaceProps
255
+ */
256
+ SkCanvas(const SkBitmap& bitmap, const SkSurfaceProps& props);
257
+
258
+ /** Draws saved layers, if any.
259
+ Frees up resources used by SkCanvas.
260
+
261
+ example: https://fiddle.skia.org/c/@Canvas_destructor
262
+ */
263
+ virtual ~SkCanvas();
264
+
265
+ /** Returns SkImageInfo for SkCanvas. If SkCanvas is not associated with raster surface or
266
+ GPU surface, returned SkColorType is set to kUnknown_SkColorType.
267
+
268
+ @return dimensions and SkColorType of SkCanvas
269
+
270
+ example: https://fiddle.skia.org/c/@Canvas_imageInfo
271
+ */
272
+ SkImageInfo imageInfo() const;
273
+
274
+ /** Copies SkSurfaceProps, if SkCanvas is associated with raster surface or
275
+ GPU surface, and returns true. Otherwise, returns false and leave props unchanged.
276
+
277
+ @param props storage for writable SkSurfaceProps
278
+ @return true if SkSurfaceProps was copied
279
+
280
+ DEPRECATED: Replace usage with getBaseProps() or getTopProps()
281
+
282
+ example: https://fiddle.skia.org/c/@Canvas_getProps
283
+ */
284
+ bool getProps(SkSurfaceProps* props) const;
285
+
286
+ /** Returns the SkSurfaceProps associated with the canvas (i.e., at the base of the layer
287
+ stack).
288
+
289
+ @return base SkSurfaceProps
290
+ */
291
+ SkSurfaceProps getBaseProps() const;
292
+
293
+ /** Returns the SkSurfaceProps associated with the canvas that are currently active (i.e., at
294
+ the top of the layer stack). This can differ from getBaseProps depending on the flags
295
+ passed to saveLayer (see SaveLayerFlagsSet).
296
+
297
+ @return SkSurfaceProps active in the current/top layer
298
+ */
299
+ SkSurfaceProps getTopProps() const;
300
+
301
+ /** Gets the size of the base or root layer in global canvas coordinates. The
302
+ origin of the base layer is always (0,0). The area available for drawing may be
303
+ smaller (due to clipping or saveLayer).
304
+
305
+ @return integral width and height of base layer
306
+
307
+ example: https://fiddle.skia.org/c/@Canvas_getBaseLayerSize
308
+ */
309
+ virtual SkISize getBaseLayerSize() const;
310
+
311
+ /** Creates SkSurface matching info and props, and associates it with SkCanvas.
312
+ Returns nullptr if no match found.
313
+
314
+ If props is nullptr, matches SkSurfaceProps in SkCanvas. If props is nullptr and SkCanvas
315
+ does not have SkSurfaceProps, creates SkSurface with default SkSurfaceProps.
316
+
317
+ @param info width, height, SkColorType, SkAlphaType, and SkColorSpace
318
+ @param props SkSurfaceProps to match; may be nullptr to match SkCanvas
319
+ @return SkSurface matching info and props, or nullptr if no match is available
320
+
321
+ example: https://fiddle.skia.org/c/@Canvas_makeSurface
322
+ */
323
+ sk_sp<SkSurface> makeSurface(const SkImageInfo& info, const SkSurfaceProps* props = nullptr);
324
+
325
+ /** Returns Ganesh context of the GPU surface associated with SkCanvas.
326
+
327
+ @return GPU context, if available; nullptr otherwise
328
+
329
+ example: https://fiddle.skia.org/c/@Canvas_recordingContext
330
+ */
331
+ virtual GrRecordingContext* recordingContext() const;
332
+
333
+ /** Returns Recorder for the GPU surface associated with SkCanvas.
334
+
335
+ @return Recorder, if available; nullptr otherwise
336
+ */
337
+ virtual skgpu::graphite::Recorder* recorder() const;
338
+
339
+ /** Returns Recorder for the surface associated with SkCanvas.
340
+
341
+ @return Recorder, should be non-null
342
+ */
343
+ virtual SkRecorder* baseRecorder() const;
344
+
345
+ /** Sometimes a canvas is owned by a surface. If it is, getSurface() will return a bare
346
+ * pointer to that surface, else this will return nullptr.
347
+ */
348
+ SkSurface* getSurface() const;
349
+
350
+ /** Returns the pixel base address, SkImageInfo, rowBytes, and origin if the pixels
351
+ can be read directly. The returned address is only valid
352
+ while SkCanvas is in scope and unchanged. Any SkCanvas call or SkSurface call
353
+ may invalidate the returned address and other returned values.
354
+
355
+ If pixels are inaccessible, info, rowBytes, and origin are unchanged.
356
+
357
+ @param info storage for writable pixels' SkImageInfo; may be nullptr
358
+ @param rowBytes storage for writable pixels' row bytes; may be nullptr
359
+ @param origin storage for SkCanvas top layer origin, its top-left corner;
360
+ may be nullptr
361
+ @return address of pixels, or nullptr if inaccessible
362
+
363
+ example: https://fiddle.skia.org/c/@Canvas_accessTopLayerPixels_a
364
+ example: https://fiddle.skia.org/c/@Canvas_accessTopLayerPixels_b
365
+ */
366
+ void* accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin = nullptr);
367
+
368
+ /** Returns custom context that tracks the SkMatrix and clip.
369
+
370
+ Use SkRasterHandleAllocator to blend Skia drawing with custom drawing, typically performed
371
+ by the host platform user interface. The custom context returned is generated by
372
+ SkRasterHandleAllocator::MakeCanvas, which creates a custom canvas with raster storage for
373
+ the drawing destination.
374
+
375
+ @return context of custom allocation
376
+
377
+ example: https://fiddle.skia.org/c/@Canvas_accessTopRasterHandle
378
+ */
379
+ SkRasterHandleAllocator::Handle accessTopRasterHandle() const;
380
+
381
+ /** Returns true if SkCanvas has direct access to its pixels.
382
+
383
+ Pixels are readable when SkDevice is raster. Pixels are not readable when SkCanvas
384
+ is returned from GPU surface, returned by SkDocument::beginPage, returned by
385
+ SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility class
386
+ like DebugCanvas.
387
+
388
+ pixmap is valid only while SkCanvas is in scope and unchanged. Any
389
+ SkCanvas or SkSurface call may invalidate the pixmap values.
390
+
391
+ @param pixmap storage for pixel state if pixels are readable; otherwise, ignored
392
+ @return true if SkCanvas has direct access to pixels
393
+
394
+ example: https://fiddle.skia.org/c/@Canvas_peekPixels
395
+ */
396
+ bool peekPixels(SkPixmap* pixmap);
397
+
398
+ /** Copies SkRect of pixels from SkCanvas into dstPixels. SkMatrix and clip are
399
+ ignored.
400
+
401
+ Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
402
+ Destination SkRect corners are (0, 0) and (dstInfo.width(), dstInfo.height()).
403
+ Copies each readable pixel intersecting both rectangles, without scaling,
404
+ converting to dstInfo.colorType() and dstInfo.alphaType() if required.
405
+
406
+ Pixels are readable when SkDevice is raster, or backed by a GPU.
407
+ Pixels are not readable when SkCanvas is returned by SkDocument::beginPage,
408
+ returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
409
+ class like DebugCanvas.
410
+
411
+ The destination pixel storage must be allocated by the caller.
412
+
413
+ Pixel values are converted only if SkColorType and SkAlphaType
414
+ do not match. Only pixels within both source and destination rectangles
415
+ are copied. dstPixels contents outside SkRect intersection are unchanged.
416
+
417
+ Pass negative values for srcX or srcY to offset pixels across or down destination.
418
+
419
+ Does not copy, and returns false if:
420
+ - Source and destination rectangles do not intersect.
421
+ - SkCanvas pixels could not be converted to dstInfo.colorType() or dstInfo.alphaType().
422
+ - SkCanvas pixels are not readable; for instance, SkCanvas is document-based.
423
+ - dstRowBytes is too small to contain one row of pixels.
424
+
425
+ @param dstInfo width, height, SkColorType, and SkAlphaType of dstPixels
426
+ @param dstPixels storage for pixels; dstInfo.height() times dstRowBytes, or larger
427
+ @param dstRowBytes size of one destination row; dstInfo.width() times pixel size, or larger
428
+ @param srcX offset into readable pixels on x-axis; may be negative
429
+ @param srcY offset into readable pixels on y-axis; may be negative
430
+ @return true if pixels were copied
431
+ */
432
+ bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
433
+ int srcX, int srcY);
434
+
435
+ /** Copies SkRect of pixels from SkCanvas into pixmap. SkMatrix and clip are
436
+ ignored.
437
+
438
+ Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
439
+ Destination SkRect corners are (0, 0) and (pixmap.width(), pixmap.height()).
440
+ Copies each readable pixel intersecting both rectangles, without scaling,
441
+ converting to pixmap.colorType() and pixmap.alphaType() if required.
442
+
443
+ Pixels are readable when SkDevice is raster, or backed by a GPU.
444
+ Pixels are not readable when SkCanvas is returned by SkDocument::beginPage,
445
+ returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
446
+ class like DebugCanvas.
447
+
448
+ Caller must allocate pixel storage in pixmap if needed.
449
+
450
+ Pixel values are converted only if SkColorType and SkAlphaType
451
+ do not match. Only pixels within both source and destination SkRect
452
+ are copied. pixmap pixels contents outside SkRect intersection are unchanged.
453
+
454
+ Pass negative values for srcX or srcY to offset pixels across or down pixmap.
455
+
456
+ Does not copy, and returns false if:
457
+ - Source and destination rectangles do not intersect.
458
+ - SkCanvas pixels could not be converted to pixmap.colorType() or pixmap.alphaType().
459
+ - SkCanvas pixels are not readable; for instance, SkCanvas is document-based.
460
+ - SkPixmap pixels could not be allocated.
461
+ - pixmap.rowBytes() is too small to contain one row of pixels.
462
+
463
+ @param pixmap storage for pixels copied from SkCanvas
464
+ @param srcX offset into readable pixels on x-axis; may be negative
465
+ @param srcY offset into readable pixels on y-axis; may be negative
466
+ @return true if pixels were copied
467
+
468
+ example: https://fiddle.skia.org/c/@Canvas_readPixels_2
469
+ */
470
+ bool readPixels(const SkPixmap& pixmap, int srcX, int srcY);
471
+
472
+ /** Copies SkRect of pixels from SkCanvas into bitmap. SkMatrix and clip are
473
+ ignored.
474
+
475
+ Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
476
+ Destination SkRect corners are (0, 0) and (bitmap.width(), bitmap.height()).
477
+ Copies each readable pixel intersecting both rectangles, without scaling,
478
+ converting to bitmap.colorType() and bitmap.alphaType() if required.
479
+
480
+ Pixels are readable when SkDevice is raster, or backed by a GPU.
481
+ Pixels are not readable when SkCanvas is returned by SkDocument::beginPage,
482
+ returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
483
+ class like DebugCanvas.
484
+
485
+ Caller must allocate pixel storage in bitmap if needed.
486
+
487
+ SkBitmap values are converted only if SkColorType and SkAlphaType
488
+ do not match. Only pixels within both source and destination rectangles
489
+ are copied. SkBitmap pixels outside SkRect intersection are unchanged.
490
+
491
+ Pass negative values for srcX or srcY to offset pixels across or down bitmap.
492
+
493
+ Does not copy, and returns false if:
494
+ - Source and destination rectangles do not intersect.
495
+ - SkCanvas pixels could not be converted to bitmap.colorType() or bitmap.alphaType().
496
+ - SkCanvas pixels are not readable; for instance, SkCanvas is document-based.
497
+ - bitmap pixels could not be allocated.
498
+ - bitmap.rowBytes() is too small to contain one row of pixels.
499
+
500
+ @param bitmap storage for pixels copied from SkCanvas
501
+ @param srcX offset into readable pixels on x-axis; may be negative
502
+ @param srcY offset into readable pixels on y-axis; may be negative
503
+ @return true if pixels were copied
504
+
505
+ example: https://fiddle.skia.org/c/@Canvas_readPixels_3
506
+ */
507
+ bool readPixels(const SkBitmap& bitmap, int srcX, int srcY);
508
+
509
+ /** Copies SkRect from pixels to SkCanvas. SkMatrix and clip are ignored.
510
+ Source SkRect corners are (0, 0) and (info.width(), info.height()).
511
+ Destination SkRect corners are (x, y) and
512
+ (imageInfo().width(), imageInfo().height()).
513
+
514
+ Copies each readable pixel intersecting both rectangles, without scaling,
515
+ converting to imageInfo().colorType() and imageInfo().alphaType() if required.
516
+
517
+ Pixels are writable when SkDevice is raster, or backed by a GPU.
518
+ Pixels are not writable when SkCanvas is returned by SkDocument::beginPage,
519
+ returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
520
+ class like DebugCanvas.
521
+
522
+ Pixel values are converted only if SkColorType and SkAlphaType
523
+ do not match. Only pixels within both source and destination rectangles
524
+ are copied. SkCanvas pixels outside SkRect intersection are unchanged.
525
+
526
+ Pass negative values for x or y to offset pixels to the left or
527
+ above SkCanvas pixels.
528
+
529
+ Does not copy, and returns false if:
530
+ - Source and destination rectangles do not intersect.
531
+ - pixels could not be converted to SkCanvas imageInfo().colorType() or
532
+ imageInfo().alphaType().
533
+ - SkCanvas pixels are not writable; for instance, SkCanvas is document-based.
534
+ - rowBytes is too small to contain one row of pixels.
535
+
536
+ @param info width, height, SkColorType, and SkAlphaType of pixels
537
+ @param pixels pixels to copy, of size info.height() times rowBytes, or larger
538
+ @param rowBytes size of one row of pixels; info.width() times pixel size, or larger
539
+ @param x offset into SkCanvas writable pixels on x-axis; may be negative
540
+ @param y offset into SkCanvas writable pixels on y-axis; may be negative
541
+ @return true if pixels were written to SkCanvas
542
+
543
+ example: https://fiddle.skia.org/c/@Canvas_writePixels
544
+ */
545
+ bool writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, int x, int y);
546
+
547
+ /** Copies SkRect from pixels to SkCanvas. SkMatrix and clip are ignored.
548
+ Source SkRect corners are (0, 0) and (bitmap.width(), bitmap.height()).
549
+
550
+ Destination SkRect corners are (x, y) and
551
+ (imageInfo().width(), imageInfo().height()).
552
+
553
+ Copies each readable pixel intersecting both rectangles, without scaling,
554
+ converting to imageInfo().colorType() and imageInfo().alphaType() if required.
555
+
556
+ Pixels are writable when SkDevice is raster, or backed by a GPU.
557
+ Pixels are not writable when SkCanvas is returned by SkDocument::beginPage,
558
+ returned by SkPictureRecorder::beginRecording, or SkCanvas is the base of a utility
559
+ class like DebugCanvas.
560
+
561
+ Pixel values are converted only if SkColorType and SkAlphaType
562
+ do not match. Only pixels within both source and destination rectangles
563
+ are copied. SkCanvas pixels outside SkRect intersection are unchanged.
564
+
565
+ Pass negative values for x or y to offset pixels to the left or
566
+ above SkCanvas pixels.
567
+
568
+ Does not copy, and returns false if:
569
+ - Source and destination rectangles do not intersect.
570
+ - bitmap does not have allocated pixels.
571
+ - bitmap pixels could not be converted to SkCanvas imageInfo().colorType() or
572
+ imageInfo().alphaType().
573
+ - SkCanvas pixels are not writable; for instance, SkCanvas is document based.
574
+ - bitmap pixels are inaccessible; for instance, bitmap wraps a texture.
575
+
576
+ @param bitmap contains pixels copied to SkCanvas
577
+ @param x offset into SkCanvas writable pixels on x-axis; may be negative
578
+ @param y offset into SkCanvas writable pixels on y-axis; may be negative
579
+ @return true if pixels were written to SkCanvas
580
+
581
+ example: https://fiddle.skia.org/c/@Canvas_writePixels_2
582
+ example: https://fiddle.skia.org/c/@State_Stack_a
583
+ example: https://fiddle.skia.org/c/@State_Stack_b
584
+ */
585
+ bool writePixels(const SkBitmap& bitmap, int x, int y);
586
+
587
+ /** Saves SkMatrix and clip.
588
+ Calling restore() discards changes to SkMatrix and clip,
589
+ restoring the SkMatrix and clip to their state when save() was called.
590
+
591
+ SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(), setMatrix(),
592
+ and resetMatrix(). Clip may be changed by clipRect(), clipRRect(), clipPath(), clipRegion().
593
+
594
+ Saved SkCanvas state is put on a stack; multiple calls to save() should be balance
595
+ by an equal number of calls to restore().
596
+
597
+ Call restoreToCount() with result to restore this and subsequent saves.
598
+
599
+ @return depth of saved stack
600
+
601
+ example: https://fiddle.skia.org/c/@Canvas_save
602
+ */
603
+ int save();
604
+
605
+ /** Saves SkMatrix and clip, and allocates a SkSurface for subsequent drawing.
606
+ Calling restore() discards changes to SkMatrix and clip, and draws the SkSurface.
607
+
608
+ SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(),
609
+ setMatrix(), and resetMatrix(). Clip may be changed by clipRect(), clipRRect(),
610
+ clipPath(), clipRegion().
611
+
612
+ SkRect bounds suggests but does not define the SkSurface size. To clip drawing to
613
+ a specific rectangle, use clipRect().
614
+
615
+ Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and
616
+ SkBlendMode when restore() is called.
617
+
618
+ Call restoreToCount() with returned value to restore this and subsequent saves.
619
+
620
+ @param bounds hint to limit the size of the layer; may be nullptr
621
+ @param paint graphics state for layer; may be nullptr
622
+ @return depth of saved stack
623
+
624
+ example: https://fiddle.skia.org/c/@Canvas_saveLayer
625
+ example: https://fiddle.skia.org/c/@Canvas_saveLayer_4
626
+ */
627
+ int saveLayer(const SkRect* bounds, const SkPaint* paint);
628
+
629
+ /** Saves SkMatrix and clip, and allocates a SkSurface for subsequent drawing.
630
+ Calling restore() discards changes to SkMatrix and clip, and draws the SkSurface.
631
+
632
+ SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(),
633
+ setMatrix(), and resetMatrix(). Clip may be changed by clipRect(), clipRRect(),
634
+ clipPath(), clipRegion().
635
+
636
+ SkRect bounds suggests but does not define the layer size. To clip drawing to
637
+ a specific rectangle, use clipRect().
638
+
639
+ Optional SkPaint paint applies alpha, SkColorFilter, SkImageFilter, and
640
+ SkBlendMode when restore() is called.
641
+
642
+ Call restoreToCount() with returned value to restore this and subsequent saves.
643
+
644
+ @param bounds hint to limit the size of layer; may be nullptr
645
+ @param paint graphics state for layer; may be nullptr
646
+ @return depth of saved stack
647
+ */
648
+ int saveLayer(const SkRect& bounds, const SkPaint* paint) {
649
+ return this->saveLayer(&bounds, paint);
650
+ }
651
+
652
+ /** Saves SkMatrix and clip, and allocates SkSurface for subsequent drawing.
653
+
654
+ Calling restore() discards changes to SkMatrix and clip,
655
+ and blends layer with alpha opacity onto prior layer.
656
+
657
+ SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(),
658
+ setMatrix(), and resetMatrix(). Clip may be changed by clipRect(), clipRRect(),
659
+ clipPath(), clipRegion().
660
+
661
+ SkRect bounds suggests but does not define layer size. To clip drawing to
662
+ a specific rectangle, use clipRect().
663
+
664
+ alpha of zero is fully transparent, 1.0f is fully opaque.
665
+
666
+ Call restoreToCount() with returned value to restore this and subsequent saves.
667
+
668
+ @param bounds hint to limit the size of layer; may be nullptr
669
+ @param alpha opacity of layer
670
+ @return depth of saved stack
671
+
672
+ example: https://fiddle.skia.org/c/@Canvas_saveLayerAlpha
673
+ */
674
+ int saveLayerAlphaf(const SkRect* bounds, float alpha);
675
+ // Helper that accepts an int between 0 and 255, and divides it by 255.0
676
+ int saveLayerAlpha(const SkRect* bounds, U8CPU alpha) {
677
+ return this->saveLayerAlphaf(bounds, alpha * (1.0f / 255));
678
+ }
679
+
680
+ /** \enum SkCanvas::SaveLayerFlagsSet
681
+ SaveLayerFlags provides options that may be used in any combination in SaveLayerRec,
682
+ defining how layer allocated by saveLayer() operates. It may be set to zero,
683
+ kPreserveLCDText_SaveLayerFlag, kInitWithPrevious_SaveLayerFlag, or both flags.
684
+ */
685
+ enum SaveLayerFlagsSet {
686
+ kPreserveLCDText_SaveLayerFlag = 1 << 1,
687
+ kInitWithPrevious_SaveLayerFlag = 1 << 2, //!< initializes with previous contents
688
+ // instead of matching previous layer's colortype, use F16
689
+ kF16ColorType = 1 << 4,
690
+ };
691
+
692
+ using SaveLayerFlags = uint32_t;
693
+ using FilterSpan = SkSpan<sk_sp<SkImageFilter>>;
694
+ static constexpr int kMaxFiltersPerLayer = 16;
695
+
696
+ /** \struct SkCanvas::SaveLayerRec
697
+ SaveLayerRec contains the state used to create the layer.
698
+ */
699
+ struct SaveLayerRec {
700
+ /** Sets fBounds, fPaint, and fBackdrop to nullptr. Clears fSaveLayerFlags.
701
+
702
+ @return empty SaveLayerRec
703
+ */
704
+ SaveLayerRec() {}
705
+
706
+ /** Sets fBounds, fPaint, and fSaveLayerFlags; sets fBackdrop to nullptr.
707
+
708
+ @param bounds layer dimensions; may be nullptr
709
+ @param paint applied to layer when overlaying prior layer; may be nullptr
710
+ @param saveLayerFlags SaveLayerRec options to modify layer
711
+ @return SaveLayerRec with empty fBackdrop
712
+ */
713
+ SaveLayerRec(const SkRect* bounds, const SkPaint* paint, SaveLayerFlags saveLayerFlags = 0)
714
+ : SaveLayerRec(bounds, paint, nullptr, nullptr, 1.f, SkTileMode::kClamp,
715
+ saveLayerFlags, /*filters=*/{}) {}
716
+
717
+ /** Sets fBounds, fPaint, fBackdrop, and fSaveLayerFlags.
718
+
719
+ @param bounds layer dimensions; may be nullptr
720
+ @param paint applied to layer when overlaying prior layer;
721
+ may be nullptr
722
+ @param backdrop If not null, this causes the current layer to be filtered by
723
+ backdrop, and then drawn into the new layer
724
+ (respecting the current clip).
725
+ If null, the new layer is initialized with transparent-black.
726
+ @param saveLayerFlags SaveLayerRec options to modify layer
727
+ @return SaveLayerRec fully specified
728
+ */
729
+ SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
730
+ SaveLayerFlags saveLayerFlags)
731
+ : SaveLayerRec(bounds, paint, backdrop, nullptr, 1.f, SkTileMode::kClamp,
732
+ saveLayerFlags, /*filters=*/{}) {}
733
+
734
+ /** Sets fBounds, fBackdrop, fColorSpace, and fSaveLayerFlags.
735
+
736
+ @param bounds layer dimensions; may be nullptr
737
+ @param paint applied to layer when overlaying prior layer;
738
+ may be nullptr
739
+ @param backdrop If not null, this causes the current layer to be filtered by
740
+ backdrop, and then drawn into the new layer
741
+ (respecting the current clip).
742
+ If null, the new layer is initialized with transparent-black.
743
+ @param colorSpace If not null, when the layer is restored, a color space
744
+ conversion will be applied from this color space to the
745
+ parent's color space. The restore paint and backdrop filters will
746
+ be applied in this color space.
747
+ If null, the new layer will inherit the color space from its
748
+ parent.
749
+ @param saveLayerFlags SaveLayerRec options to modify layer
750
+ @return SaveLayerRec fully specified
751
+ */
752
+ SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
753
+ const SkColorSpace* colorSpace, SaveLayerFlags saveLayerFlags)
754
+ : SaveLayerRec(bounds, paint, backdrop, colorSpace, 1.f, SkTileMode::kClamp,
755
+ saveLayerFlags, /*filters=*/{}) {}
756
+
757
+
758
+ /** Sets fBounds, fBackdrop, fBackdropTileMode, fColorSpace, and fSaveLayerFlags.
759
+
760
+ @param bounds layer dimensions; may be nullptr
761
+ @param paint applied to layer when overlaying prior layer;
762
+ may be nullptr
763
+ @param backdrop If not null, this causes the current layer to be filtered by
764
+ backdrop, and then drawn into the new layer
765
+ (respecting the current clip).
766
+ If null, the new layer is initialized with transparent-black.
767
+ @param backdropTileMode If the 'backdrop' is not null, or 'saveLayerFlags' has
768
+ kInitWithPrevious set, this tile mode is used when the new layer
769
+ would read outside the backdrop image's available content.
770
+ @param colorSpace If not null, when the layer is restored, a color space
771
+ conversion will be applied from this color space to the parent's
772
+ color space. The restore paint and backdrop filters will be
773
+ applied in this color space.
774
+ If null, the new layer will inherit the color space from its
775
+ parent.
776
+ @param saveLayerFlags SaveLayerRec options to modify layer
777
+ @return SaveLayerRec fully specified
778
+ */
779
+ SaveLayerRec(const SkRect* bounds, const SkPaint* paint, const SkImageFilter* backdrop,
780
+ SkTileMode backdropTileMode, const SkColorSpace* colorSpace,
781
+ SaveLayerFlags saveLayerFlags)
782
+ : SaveLayerRec(bounds, paint, backdrop, colorSpace, 1.f, backdropTileMode,
783
+ saveLayerFlags, /*filters=*/{}) {}
784
+
785
+ /** hints at layer size limit */
786
+ const SkRect* fBounds = nullptr;
787
+
788
+ /** modifies overlay */
789
+ const SkPaint* fPaint = nullptr;
790
+
791
+ FilterSpan fFilters = {};
792
+
793
+ /**
794
+ * If not null, this triggers the same initialization behavior as setting
795
+ * kInitWithPrevious_SaveLayerFlag on fSaveLayerFlags: the current layer is copied into
796
+ * the new layer, rather than initializing the new layer with transparent-black.
797
+ * This is then filtered by fBackdrop (respecting the current clip).
798
+ */
799
+ const SkImageFilter* fBackdrop = nullptr;
800
+
801
+ /**
802
+ * If the layer is initialized with prior content (and/or with a backdrop filter) and this
803
+ * would require sampling outside of the available backdrop, this is the tilemode applied
804
+ * to the boundary of the prior layer's image.
805
+ */
806
+ SkTileMode fBackdropTileMode = SkTileMode::kClamp;
807
+
808
+ /**
809
+ * If not null, this triggers a color space conversion when the layer is restored. It
810
+ * will be as if the layer's contents are drawn in this color space. Filters from
811
+ * fBackdrop and fPaint will be applied in this color space.
812
+ */
813
+ const SkColorSpace* fColorSpace = nullptr;
814
+
815
+ /** preserves LCD text, creates with prior layer contents */
816
+ SaveLayerFlags fSaveLayerFlags = 0;
817
+
818
+ private:
819
+ friend class SkCanvas;
820
+ friend class SkCanvasPriv;
821
+
822
+ SaveLayerRec(const SkRect* bounds,
823
+ const SkPaint* paint,
824
+ const SkImageFilter* backdrop,
825
+ const SkColorSpace* colorSpace,
826
+ SkScalar backdropScale,
827
+ SkTileMode backdropTileMode,
828
+ SaveLayerFlags saveLayerFlags,
829
+ FilterSpan filters)
830
+ : fBounds(bounds)
831
+ , fPaint(paint)
832
+ , fFilters(filters)
833
+ , fBackdrop(backdrop)
834
+ , fBackdropTileMode(backdropTileMode)
835
+ , fColorSpace(colorSpace)
836
+ , fSaveLayerFlags(saveLayerFlags)
837
+ , fExperimentalBackdropScale(backdropScale) {
838
+ // We only allow the paint's image filter or the side-car list of filters -- not both.
839
+ SkASSERT(fFilters.empty() || !paint || !paint->getImageFilter());
840
+ // To keep things reasonable (during deserialization), we limit filter list size.
841
+ SkASSERT(fFilters.size() <= kMaxFiltersPerLayer);
842
+ }
843
+
844
+ // Relative scale factor that the image content used to initialize the layer when the
845
+ // kInitFromPrevious flag or a backdrop filter is used.
846
+ SkScalar fExperimentalBackdropScale = 1.f;
847
+ };
848
+
849
+ /** Saves SkMatrix and clip, and allocates SkSurface for subsequent drawing.
850
+
851
+ Calling restore() discards changes to SkMatrix and clip,
852
+ and blends SkSurface with alpha opacity onto the prior layer.
853
+
854
+ SkMatrix may be changed by translate(), scale(), rotate(), skew(), concat(),
855
+ setMatrix(), and resetMatrix(). Clip may be changed by clipRect(), clipRRect(),
856
+ clipPath(), clipRegion().
857
+
858
+ SaveLayerRec contains the state used to create the layer.
859
+
860
+ Call restoreToCount() with returned value to restore this and subsequent saves.
861
+
862
+ @param layerRec layer state
863
+ @return depth of save state stack before this call was made.
864
+
865
+ example: https://fiddle.skia.org/c/@Canvas_saveLayer_3
866
+ */
867
+ int saveLayer(const SaveLayerRec& layerRec);
868
+
869
+ /** Removes changes to SkMatrix and clip since SkCanvas state was
870
+ last saved. The state is removed from the stack.
871
+
872
+ Does nothing if the stack is empty.
873
+
874
+ example: https://fiddle.skia.org/c/@AutoCanvasRestore_restore
875
+
876
+ example: https://fiddle.skia.org/c/@Canvas_restore
877
+ */
878
+ void restore();
879
+
880
+ /** Returns the number of saved states, each containing: SkMatrix and clip.
881
+ Equals the number of save() calls less the number of restore() calls plus one.
882
+ The save count of a new canvas is one.
883
+
884
+ @return depth of save state stack
885
+
886
+ example: https://fiddle.skia.org/c/@Canvas_getSaveCount
887
+ */
888
+ int getSaveCount() const;
889
+
890
+ /** Restores state to SkMatrix and clip values when save(), saveLayer(),
891
+ saveLayerPreserveLCDTextRequests(), or saveLayerAlpha() returned saveCount.
892
+
893
+ Does nothing if saveCount is greater than state stack count.
894
+ Restores state to initial values if saveCount is less than or equal to one.
895
+
896
+ @param saveCount depth of state stack to restore
897
+
898
+ example: https://fiddle.skia.org/c/@Canvas_restoreToCount
899
+ */
900
+ void restoreToCount(int saveCount);
901
+
902
+ /** Translates SkMatrix by dx along the x-axis and dy along the y-axis.
903
+
904
+ Mathematically, replaces SkMatrix with a translation matrix
905
+ premultiplied with SkMatrix.
906
+
907
+ This has the effect of moving the drawing by (dx, dy) before transforming
908
+ the result with SkMatrix.
909
+
910
+ @param dx distance to translate on x-axis
911
+ @param dy distance to translate on y-axis
912
+
913
+ example: https://fiddle.skia.org/c/@Canvas_translate
914
+ */
915
+ void translate(SkScalar dx, SkScalar dy);
916
+
917
+ /** Scales SkMatrix by sx on the x-axis and sy on the y-axis.
918
+
919
+ Mathematically, replaces SkMatrix with a scale matrix
920
+ premultiplied with SkMatrix.
921
+
922
+ This has the effect of scaling the drawing by (sx, sy) before transforming
923
+ the result with SkMatrix.
924
+
925
+ @param sx amount to scale on x-axis
926
+ @param sy amount to scale on y-axis
927
+
928
+ example: https://fiddle.skia.org/c/@Canvas_scale
929
+ */
930
+ void scale(SkScalar sx, SkScalar sy);
931
+
932
+ /** Rotates SkMatrix by degrees. Positive degrees rotates clockwise.
933
+
934
+ Mathematically, replaces SkMatrix with a rotation matrix
935
+ premultiplied with SkMatrix.
936
+
937
+ This has the effect of rotating the drawing by degrees before transforming
938
+ the result with SkMatrix.
939
+
940
+ @param degrees amount to rotate, in degrees
941
+
942
+ example: https://fiddle.skia.org/c/@Canvas_rotate
943
+ */
944
+ void rotate(SkScalar degrees);
945
+
946
+ /** Rotates SkMatrix by degrees about a point at (px, py). Positive degrees rotates
947
+ clockwise.
948
+
949
+ Mathematically, constructs a rotation matrix; premultiplies the rotation matrix by
950
+ a translation matrix; then replaces SkMatrix with the resulting matrix
951
+ premultiplied with SkMatrix.
952
+
953
+ This has the effect of rotating the drawing about a given point before
954
+ transforming the result with SkMatrix.
955
+
956
+ @param degrees amount to rotate, in degrees
957
+ @param px x-axis value of the point to rotate about
958
+ @param py y-axis value of the point to rotate about
959
+
960
+ example: https://fiddle.skia.org/c/@Canvas_rotate_2
961
+ */
962
+ void rotate(SkScalar degrees, SkScalar px, SkScalar py);
963
+
964
+ /** Skews SkMatrix by sx on the x-axis and sy on the y-axis. A positive value of sx
965
+ skews the drawing right as y-axis values increase; a positive value of sy skews
966
+ the drawing down as x-axis values increase.
967
+
968
+ Mathematically, replaces SkMatrix with a skew matrix premultiplied with SkMatrix.
969
+
970
+ This has the effect of skewing the drawing by (sx, sy) before transforming
971
+ the result with SkMatrix.
972
+
973
+ @param sx amount to skew on x-axis
974
+ @param sy amount to skew on y-axis
975
+
976
+ example: https://fiddle.skia.org/c/@Canvas_skew
977
+ */
978
+ void skew(SkScalar sx, SkScalar sy);
979
+
980
+ /** Replaces SkMatrix with matrix premultiplied with existing SkMatrix.
981
+
982
+ This has the effect of transforming the drawn geometry by matrix, before
983
+ transforming the result with existing SkMatrix.
984
+
985
+ @param matrix matrix to premultiply with existing SkMatrix
986
+
987
+ example: https://fiddle.skia.org/c/@Canvas_concat
988
+ */
989
+ void concat(const SkMatrix& matrix);
990
+ void concat(const SkM44&);
991
+
992
+ /** Replaces SkMatrix with matrix.
993
+ Unlike concat(), any prior matrix state is overwritten.
994
+
995
+ @param matrix matrix to copy, replacing existing SkMatrix
996
+
997
+ example: https://fiddle.skia.org/c/@Canvas_setMatrix
998
+ */
999
+ void setMatrix(const SkM44& matrix);
1000
+
1001
+ // DEPRECATED -- use SkM44 version
1002
+ void setMatrix(const SkMatrix& matrix);
1003
+
1004
+ /** Sets SkMatrix to the identity matrix.
1005
+ Any prior matrix state is overwritten.
1006
+
1007
+ example: https://fiddle.skia.org/c/@Canvas_resetMatrix
1008
+ */
1009
+ void resetMatrix();
1010
+
1011
+ /** Replaces clip with the intersection or difference of clip and rect,
1012
+ with an aliased or anti-aliased clip edge. rect is transformed by SkMatrix
1013
+ before it is combined with clip.
1014
+
1015
+ @param rect SkRect to combine with clip
1016
+ @param op SkClipOp to apply to clip
1017
+ @param doAntiAlias true if clip is to be anti-aliased
1018
+
1019
+ example: https://fiddle.skia.org/c/@Canvas_clipRect
1020
+ */
1021
+ void clipRect(const SkRect& rect, SkClipOp op, bool doAntiAlias);
1022
+
1023
+ /** Replaces clip with the intersection or difference of clip and rect.
1024
+ Resulting clip is aliased; pixels are fully contained by the clip.
1025
+ rect is transformed by SkMatrix before it is combined with clip.
1026
+
1027
+ @param rect SkRect to combine with clip
1028
+ @param op SkClipOp to apply to clip
1029
+ */
1030
+ void clipRect(const SkRect& rect, SkClipOp op) {
1031
+ this->clipRect(rect, op, false);
1032
+ }
1033
+
1034
+ /** Replaces clip with the intersection of clip and rect.
1035
+ Resulting clip is aliased; pixels are fully contained by the clip.
1036
+ rect is transformed by SkMatrix
1037
+ before it is combined with clip.
1038
+
1039
+ @param rect SkRect to combine with clip
1040
+ @param doAntiAlias true if clip is to be anti-aliased
1041
+ */
1042
+ void clipRect(const SkRect& rect, bool doAntiAlias = false) {
1043
+ this->clipRect(rect, SkClipOp::kIntersect, doAntiAlias);
1044
+ }
1045
+
1046
+ void clipIRect(const SkIRect& irect, SkClipOp op = SkClipOp::kIntersect) {
1047
+ this->clipRect(SkRect::Make(irect), op, false);
1048
+ }
1049
+
1050
+ /** Sets the maximum clip rectangle, which can be set by clipRect(), clipRRect() and
1051
+ clipPath() and intersect the current clip with the specified rect.
1052
+ The maximum clip affects only future clipping operations; it is not retroactive.
1053
+ The clip restriction is not recorded in pictures.
1054
+
1055
+ Pass an empty rect to disable maximum clip.
1056
+ This private API is for use by Android framework only.
1057
+
1058
+ DEPRECATED: Replace usage with SkAndroidFrameworkUtils::replaceClip()
1059
+
1060
+ @param rect maximum allowed clip in device coordinates
1061
+ */
1062
+ void androidFramework_setDeviceClipRestriction(const SkIRect& rect);
1063
+
1064
+ /** Replaces clip with the intersection or difference of clip and rrect,
1065
+ with an aliased or anti-aliased clip edge.
1066
+ rrect is transformed by SkMatrix
1067
+ before it is combined with clip.
1068
+
1069
+ @param rrect SkRRect to combine with clip
1070
+ @param op SkClipOp to apply to clip
1071
+ @param doAntiAlias true if clip is to be anti-aliased
1072
+
1073
+ example: https://fiddle.skia.org/c/@Canvas_clipRRect
1074
+ */
1075
+ void clipRRect(const SkRRect& rrect, SkClipOp op, bool doAntiAlias);
1076
+
1077
+ /** Replaces clip with the intersection or difference of clip and rrect.
1078
+ Resulting clip is aliased; pixels are fully contained by the clip.
1079
+ rrect is transformed by SkMatrix before it is combined with clip.
1080
+
1081
+ @param rrect SkRRect to combine with clip
1082
+ @param op SkClipOp to apply to clip
1083
+ */
1084
+ void clipRRect(const SkRRect& rrect, SkClipOp op) {
1085
+ this->clipRRect(rrect, op, false);
1086
+ }
1087
+
1088
+ /** Replaces clip with the intersection of clip and rrect,
1089
+ with an aliased or anti-aliased clip edge.
1090
+ rrect is transformed by SkMatrix before it is combined with clip.
1091
+
1092
+ @param rrect SkRRect to combine with clip
1093
+ @param doAntiAlias true if clip is to be anti-aliased
1094
+ */
1095
+ void clipRRect(const SkRRect& rrect, bool doAntiAlias = false) {
1096
+ this->clipRRect(rrect, SkClipOp::kIntersect, doAntiAlias);
1097
+ }
1098
+
1099
+ /** Replaces clip with the intersection or difference of clip and path,
1100
+ with an aliased or anti-aliased clip edge. SkPath::FillType determines if path
1101
+ describes the area inside or outside its contours; and if path contour overlaps
1102
+ itself or another path contour, whether the overlaps form part of the area.
1103
+ path is transformed by SkMatrix before it is combined with clip.
1104
+
1105
+ @param path SkPath to combine with clip
1106
+ @param op SkClipOp to apply to clip
1107
+ @param doAntiAlias true if clip is to be anti-aliased
1108
+
1109
+ example: https://fiddle.skia.org/c/@Canvas_clipPath
1110
+ */
1111
+ void clipPath(const SkPath& path, SkClipOp op, bool doAntiAlias);
1112
+
1113
+ /** Replaces clip with the intersection or difference of clip and path.
1114
+ Resulting clip is aliased; pixels are fully contained by the clip.
1115
+ SkPath::FillType determines if path
1116
+ describes the area inside or outside its contours; and if path contour overlaps
1117
+ itself or another path contour, whether the overlaps form part of the area.
1118
+ path is transformed by SkMatrix
1119
+ before it is combined with clip.
1120
+
1121
+ @param path SkPath to combine with clip
1122
+ @param op SkClipOp to apply to clip
1123
+ */
1124
+ void clipPath(const SkPath& path, SkClipOp op) {
1125
+ this->clipPath(path, op, false);
1126
+ }
1127
+
1128
+ /** Replaces clip with the intersection of clip and path.
1129
+ Resulting clip is aliased; pixels are fully contained by the clip.
1130
+ SkPath::FillType determines if path
1131
+ describes the area inside or outside its contours; and if path contour overlaps
1132
+ itself or another path contour, whether the overlaps form part of the area.
1133
+ path is transformed by SkMatrix before it is combined with clip.
1134
+
1135
+ @param path SkPath to combine with clip
1136
+ @param doAntiAlias true if clip is to be anti-aliased
1137
+ */
1138
+ void clipPath(const SkPath& path, bool doAntiAlias = false) {
1139
+ this->clipPath(path, SkClipOp::kIntersect, doAntiAlias);
1140
+ }
1141
+
1142
+ void clipShader(sk_sp<SkShader>, SkClipOp = SkClipOp::kIntersect);
1143
+
1144
+ /** Replaces clip with the intersection or difference of clip and SkRegion deviceRgn.
1145
+ Resulting clip is aliased; pixels are fully contained by the clip.
1146
+ deviceRgn is unaffected by SkMatrix.
1147
+
1148
+ @param deviceRgn SkRegion to combine with clip
1149
+ @param op SkClipOp to apply to clip
1150
+
1151
+ example: https://fiddle.skia.org/c/@Canvas_clipRegion
1152
+ */
1153
+ void clipRegion(const SkRegion& deviceRgn, SkClipOp op = SkClipOp::kIntersect);
1154
+
1155
+ /** Returns true if SkRect rect, transformed by SkMatrix, can be quickly determined to be
1156
+ outside of clip. May return false even though rect is outside of clip.
1157
+
1158
+ Use to check if an area to be drawn is clipped out, to skip subsequent draw calls.
1159
+
1160
+ @param rect SkRect to compare with clip
1161
+ @return true if rect, transformed by SkMatrix, does not intersect clip
1162
+
1163
+ example: https://fiddle.skia.org/c/@Canvas_quickReject
1164
+ */
1165
+ bool quickReject(const SkRect& rect) const;
1166
+
1167
+ /** Returns true if path, transformed by SkMatrix, can be quickly determined to be
1168
+ outside of clip. May return false even though path is outside of clip.
1169
+
1170
+ Use to check if an area to be drawn is clipped out, to skip subsequent draw calls.
1171
+
1172
+ @param path SkPath to compare with clip
1173
+ @return true if path, transformed by SkMatrix, does not intersect clip
1174
+
1175
+ example: https://fiddle.skia.org/c/@Canvas_quickReject_2
1176
+ */
1177
+ bool quickReject(const SkPath& path) const;
1178
+
1179
+ /** Returns bounds of clip, transformed by inverse of SkMatrix. If clip is empty,
1180
+ return SkRect::MakeEmpty, where all SkRect sides equal zero.
1181
+
1182
+ SkRect returned is outset by one to account for partial pixel coverage if clip
1183
+ is anti-aliased.
1184
+
1185
+ @return bounds of clip in local coordinates
1186
+
1187
+ example: https://fiddle.skia.org/c/@Canvas_getLocalClipBounds
1188
+ */
1189
+ SkRect getLocalClipBounds() const;
1190
+
1191
+ /** Returns bounds of clip, transformed by inverse of SkMatrix. If clip is empty,
1192
+ return false, and set bounds to SkRect::MakeEmpty, where all SkRect sides equal zero.
1193
+
1194
+ bounds is outset by one to account for partial pixel coverage if clip
1195
+ is anti-aliased.
1196
+
1197
+ @param bounds SkRect of clip in local coordinates
1198
+ @return true if clip bounds is not empty
1199
+ */
1200
+ bool getLocalClipBounds(SkRect* bounds) const {
1201
+ *bounds = this->getLocalClipBounds();
1202
+ return !bounds->isEmpty();
1203
+ }
1204
+
1205
+ /** Returns SkIRect bounds of clip, unaffected by SkMatrix. If clip is empty,
1206
+ return SkRect::MakeEmpty, where all SkRect sides equal zero.
1207
+
1208
+ Unlike getLocalClipBounds(), returned SkIRect is not outset.
1209
+
1210
+ @return bounds of clip in base device coordinates
1211
+
1212
+ example: https://fiddle.skia.org/c/@Canvas_getDeviceClipBounds
1213
+ */
1214
+ SkIRect getDeviceClipBounds() const;
1215
+
1216
+ /** Returns SkIRect bounds of clip, unaffected by SkMatrix. If clip is empty,
1217
+ return false, and set bounds to SkRect::MakeEmpty, where all SkRect sides equal zero.
1218
+
1219
+ Unlike getLocalClipBounds(), bounds is not outset.
1220
+
1221
+ @param bounds SkRect of clip in device coordinates
1222
+ @return true if clip bounds is not empty
1223
+ */
1224
+ bool getDeviceClipBounds(SkIRect* bounds) const {
1225
+ *bounds = this->getDeviceClipBounds();
1226
+ return !bounds->isEmpty();
1227
+ }
1228
+
1229
+ /** Fills clip with color color.
1230
+ mode determines how ARGB is combined with destination.
1231
+
1232
+ @param color unpremultiplied ARGB
1233
+ @param mode SkBlendMode used to combine source color and destination
1234
+
1235
+ example: https://fiddle.skia.org/c/@Canvas_drawColor
1236
+ */
1237
+ void drawColor(SkColor color, SkBlendMode mode = SkBlendMode::kSrcOver) {
1238
+ this->drawColor(SkColor4f::FromColor(color), mode);
1239
+ }
1240
+
1241
+ /** Fills clip with color color.
1242
+ mode determines how ARGB is combined with destination.
1243
+
1244
+ @param color SkColor4f representing unpremultiplied color.
1245
+ @param mode SkBlendMode used to combine source color and destination
1246
+ */
1247
+ void drawColor(const SkColor4f& color, SkBlendMode mode = SkBlendMode::kSrcOver);
1248
+
1249
+ /** Fills clip with color color using SkBlendMode::kSrc.
1250
+ This has the effect of replacing all pixels contained by clip with color.
1251
+
1252
+ @param color unpremultiplied ARGB
1253
+ */
1254
+ void clear(SkColor color) {
1255
+ this->clear(SkColor4f::FromColor(color));
1256
+ }
1257
+
1258
+ /** Fills clip with color color using SkBlendMode::kSrc.
1259
+ This has the effect of replacing all pixels contained by clip with color.
1260
+
1261
+ @param color SkColor4f representing unpremultiplied color.
1262
+ */
1263
+ void clear(const SkColor4f& color) {
1264
+ this->drawColor(color, SkBlendMode::kSrc);
1265
+ }
1266
+
1267
+ /** Makes SkCanvas contents undefined. Subsequent calls that read SkCanvas pixels,
1268
+ such as drawing with SkBlendMode, return undefined results. discard() does
1269
+ not change clip or SkMatrix.
1270
+
1271
+ discard() may do nothing, depending on the implementation of SkSurface or SkDevice
1272
+ that created SkCanvas.
1273
+
1274
+ discard() allows optimized performance on subsequent draws by removing
1275
+ cached data associated with SkSurface or SkDevice.
1276
+ It is not necessary to call discard() once done with SkCanvas;
1277
+ any cached data is deleted when owning SkSurface or SkDevice is deleted.
1278
+ */
1279
+ void discard() { this->onDiscard(); }
1280
+
1281
+ /** Fills clip with SkPaint paint. SkPaint components, SkShader,
1282
+ SkColorFilter, SkImageFilter, and SkBlendMode affect drawing;
1283
+ SkMaskFilter and SkPathEffect in paint are ignored.
1284
+
1285
+ @param paint graphics state used to fill SkCanvas
1286
+
1287
+ example: https://fiddle.skia.org/c/@Canvas_drawPaint
1288
+ */
1289
+ void drawPaint(const SkPaint& paint);
1290
+
1291
+ /** \enum SkCanvas::PointMode
1292
+ Selects if an array of points are drawn as discrete points, as lines, or as
1293
+ an open polygon.
1294
+ */
1295
+ enum PointMode {
1296
+ kPoints_PointMode, //!< draw each point separately
1297
+ kLines_PointMode, //!< draw each pair of points as a line segment
1298
+ kPolygon_PointMode, //!< draw the array of points as a open polygon
1299
+ };
1300
+
1301
+ /** Draws pts using clip, SkMatrix and SkPaint paint.
1302
+ count is the number of points; if count is less than one, has no effect.
1303
+ mode may be one of: kPoints_PointMode, kLines_PointMode, or kPolygon_PointMode.
1304
+
1305
+ If mode is kPoints_PointMode, the shape of point drawn depends on paint
1306
+ SkPaint::Cap. If paint is set to SkPaint::kRound_Cap, each point draws a
1307
+ circle of diameter SkPaint stroke width. If paint is set to SkPaint::kSquare_Cap
1308
+ or SkPaint::kButt_Cap, each point draws a square of width and height
1309
+ SkPaint stroke width.
1310
+
1311
+ If mode is kLines_PointMode, each pair of points draws a line segment.
1312
+ One line is drawn for every two points; each point is used once. If count is odd,
1313
+ the final point is ignored.
1314
+
1315
+ If mode is kPolygon_PointMode, each adjacent pair of points draws a line segment.
1316
+ count minus one lines are drawn; the first and last point are used once.
1317
+
1318
+ Each line segment respects paint SkPaint::Cap and SkPaint stroke width.
1319
+ SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
1320
+
1321
+ Always draws each element one at a time; is not affected by
1322
+ SkPaint::Join, and unlike drawPath(), does not create a mask from all points
1323
+ and lines before drawing.
1324
+
1325
+ @param mode whether pts draws points or lines
1326
+ @param count number of points in the array
1327
+ @param pts array of points to draw
1328
+ @param paint stroke, blend, color, and so on, used to draw
1329
+
1330
+ example: https://fiddle.skia.org/c/@Canvas_drawPoints
1331
+ */
1332
+ void drawPoints(PointMode mode, SkSpan<const SkPoint>, const SkPaint& paint);
1333
+
1334
+ /** Draws point at (x, y) using clip, SkMatrix and SkPaint paint.
1335
+
1336
+ The shape of point drawn depends on paint SkPaint::Cap.
1337
+ If paint is set to SkPaint::kRound_Cap, draw a circle of diameter
1338
+ SkPaint stroke width. If paint is set to SkPaint::kSquare_Cap or SkPaint::kButt_Cap,
1339
+ draw a square of width and height SkPaint stroke width.
1340
+ SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
1341
+
1342
+ @param x left edge of circle or square
1343
+ @param y top edge of circle or square
1344
+ @param paint stroke, blend, color, and so on, used to draw
1345
+
1346
+ example: https://fiddle.skia.org/c/@Canvas_drawPoint
1347
+ */
1348
+ void drawPoint(SkScalar x, SkScalar y, const SkPaint& paint);
1349
+
1350
+ /** Draws point p using clip, SkMatrix and SkPaint paint.
1351
+
1352
+ The shape of point drawn depends on paint SkPaint::Cap.
1353
+ If paint is set to SkPaint::kRound_Cap, draw a circle of diameter
1354
+ SkPaint stroke width. If paint is set to SkPaint::kSquare_Cap or SkPaint::kButt_Cap,
1355
+ draw a square of width and height SkPaint stroke width.
1356
+ SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
1357
+
1358
+ @param p top-left edge of circle or square
1359
+ @param paint stroke, blend, color, and so on, used to draw
1360
+ */
1361
+ void drawPoint(SkPoint p, const SkPaint& paint) {
1362
+ this->drawPoint(p.x(), p.y(), paint);
1363
+ }
1364
+
1365
+ /** Draws line segment from (x0, y0) to (x1, y1) using clip, SkMatrix, and SkPaint paint.
1366
+ In paint: SkPaint stroke width describes the line thickness;
1367
+ SkPaint::Cap draws the end rounded or square;
1368
+ SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
1369
+
1370
+ @param x0 start of line segment on x-axis
1371
+ @param y0 start of line segment on y-axis
1372
+ @param x1 end of line segment on x-axis
1373
+ @param y1 end of line segment on y-axis
1374
+ @param paint stroke, blend, color, and so on, used to draw
1375
+
1376
+ example: https://fiddle.skia.org/c/@Canvas_drawLine
1377
+ */
1378
+ void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint& paint);
1379
+
1380
+ /** Draws line segment from p0 to p1 using clip, SkMatrix, and SkPaint paint.
1381
+ In paint: SkPaint stroke width describes the line thickness;
1382
+ SkPaint::Cap draws the end rounded or square;
1383
+ SkPaint::Style is ignored, as if were set to SkPaint::kStroke_Style.
1384
+
1385
+ @param p0 start of line segment
1386
+ @param p1 end of line segment
1387
+ @param paint stroke, blend, color, and so on, used to draw
1388
+ */
1389
+ void drawLine(SkPoint p0, SkPoint p1, const SkPaint& paint) {
1390
+ this->drawLine(p0.x(), p0.y(), p1.x(), p1.y(), paint);
1391
+ }
1392
+
1393
+ /** Draws SkRect rect using clip, SkMatrix, and SkPaint paint.
1394
+ In paint: SkPaint::Style determines if rectangle is stroked or filled;
1395
+ if stroked, SkPaint stroke width describes the line thickness, and
1396
+ SkPaint::Join draws the corners rounded or square.
1397
+
1398
+ @param rect rectangle to draw
1399
+ @param paint stroke or fill, blend, color, and so on, used to draw
1400
+
1401
+ example: https://fiddle.skia.org/c/@Canvas_drawRect
1402
+ */
1403
+ void drawRect(const SkRect& rect, const SkPaint& paint);
1404
+
1405
+ /** Draws SkIRect rect using clip, SkMatrix, and SkPaint paint.
1406
+ In paint: SkPaint::Style determines if rectangle is stroked or filled;
1407
+ if stroked, SkPaint stroke width describes the line thickness, and
1408
+ SkPaint::Join draws the corners rounded or square.
1409
+
1410
+ @param rect rectangle to draw
1411
+ @param paint stroke or fill, blend, color, and so on, used to draw
1412
+ */
1413
+ void drawIRect(const SkIRect& rect, const SkPaint& paint) {
1414
+ SkRect r;
1415
+ r.set(rect); // promotes the ints to scalars
1416
+ this->drawRect(r, paint);
1417
+ }
1418
+
1419
+ /** Draws SkRegion region using clip, SkMatrix, and SkPaint paint.
1420
+ In paint: SkPaint::Style determines if rectangle is stroked or filled;
1421
+ if stroked, SkPaint stroke width describes the line thickness, and
1422
+ SkPaint::Join draws the corners rounded or square.
1423
+
1424
+ @param region region to draw
1425
+ @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1426
+
1427
+ example: https://fiddle.skia.org/c/@Canvas_drawRegion
1428
+ */
1429
+ void drawRegion(const SkRegion& region, const SkPaint& paint);
1430
+
1431
+ /** Draws oval oval using clip, SkMatrix, and SkPaint.
1432
+ In paint: SkPaint::Style determines if oval is stroked or filled;
1433
+ if stroked, SkPaint stroke width describes the line thickness.
1434
+
1435
+ @param oval SkRect bounds of oval
1436
+ @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1437
+
1438
+ example: https://fiddle.skia.org/c/@Canvas_drawOval
1439
+ */
1440
+ void drawOval(const SkRect& oval, const SkPaint& paint);
1441
+
1442
+ /** Draws SkRRect rrect using clip, SkMatrix, and SkPaint paint.
1443
+ In paint: SkPaint::Style determines if rrect is stroked or filled;
1444
+ if stroked, SkPaint stroke width describes the line thickness.
1445
+
1446
+ rrect may represent a rectangle, circle, oval, uniformly rounded rectangle, or
1447
+ may have any combination of positive non-square radii for the four corners.
1448
+
1449
+ @param rrect SkRRect with up to eight corner radii to draw
1450
+ @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1451
+
1452
+ example: https://fiddle.skia.org/c/@Canvas_drawRRect
1453
+ */
1454
+ void drawRRect(const SkRRect& rrect, const SkPaint& paint);
1455
+
1456
+ /** Draws SkRRect outer and inner
1457
+ using clip, SkMatrix, and SkPaint paint.
1458
+ outer must contain inner or the drawing is undefined.
1459
+ In paint: SkPaint::Style determines if SkRRect is stroked or filled;
1460
+ if stroked, SkPaint stroke width describes the line thickness.
1461
+ If stroked and SkRRect corner has zero length radii, SkPaint::Join can
1462
+ draw corners rounded or square.
1463
+
1464
+ GPU-backed platforms optimize drawing when both outer and inner are
1465
+ concave and outer contains inner. These platforms may not be able to draw
1466
+ SkPath built with identical data as fast.
1467
+
1468
+ @param outer SkRRect outer bounds to draw
1469
+ @param inner SkRRect inner bounds to draw
1470
+ @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1471
+
1472
+ example: https://fiddle.skia.org/c/@Canvas_drawDRRect_a
1473
+ example: https://fiddle.skia.org/c/@Canvas_drawDRRect_b
1474
+ */
1475
+ void drawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint);
1476
+
1477
+ /** Draws circle at (cx, cy) with radius using clip, SkMatrix, and SkPaint paint.
1478
+ If radius is zero or less, nothing is drawn.
1479
+ In paint: SkPaint::Style determines if circle is stroked or filled;
1480
+ if stroked, SkPaint stroke width describes the line thickness.
1481
+
1482
+ @param cx circle center on the x-axis
1483
+ @param cy circle center on the y-axis
1484
+ @param radius half the diameter of circle
1485
+ @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1486
+
1487
+ example: https://fiddle.skia.org/c/@Canvas_drawCircle
1488
+ */
1489
+ void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint& paint);
1490
+
1491
+ /** Draws circle at center with radius using clip, SkMatrix, and SkPaint paint.
1492
+ If radius is zero or less, nothing is drawn.
1493
+ In paint: SkPaint::Style determines if circle is stroked or filled;
1494
+ if stroked, SkPaint stroke width describes the line thickness.
1495
+
1496
+ @param center circle center
1497
+ @param radius half the diameter of circle
1498
+ @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1499
+ */
1500
+ void drawCircle(SkPoint center, SkScalar radius, const SkPaint& paint) {
1501
+ this->drawCircle(center.x(), center.y(), radius, paint);
1502
+ }
1503
+
1504
+ /** Draws arc using clip, SkMatrix, and SkPaint paint.
1505
+
1506
+ Arc is part of oval bounded by oval, sweeping from startAngle to startAngle plus
1507
+ sweepAngle. startAngle and sweepAngle are in degrees.
1508
+
1509
+ startAngle of zero places start point at the right middle edge of oval.
1510
+ A positive sweepAngle places arc end point clockwise from start point;
1511
+ a negative sweepAngle places arc end point counterclockwise from start point.
1512
+ sweepAngle may exceed 360 degrees, a full circle.
1513
+ If useCenter is true, draw a wedge that includes lines from oval
1514
+ center to arc end points. If useCenter is false, draw arc between end points.
1515
+
1516
+ If SkRect oval is empty or sweepAngle is zero, nothing is drawn.
1517
+
1518
+ @param oval SkRect bounds of oval containing arc to draw
1519
+ @param startAngle angle in degrees where arc begins
1520
+ @param sweepAngle sweep angle in degrees; positive is clockwise
1521
+ @param useCenter if true, include the center of the oval
1522
+ @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1523
+ */
1524
+ void drawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle,
1525
+ bool useCenter, const SkPaint& paint);
1526
+
1527
+ /** Draws arc using clip, SkMatrix, and SkPaint paint.
1528
+
1529
+ Arc is part of oval bounded by oval, sweeping from startAngle to startAngle plus
1530
+ sweepAngle. startAngle and sweepAngle are in degrees.
1531
+
1532
+ startAngle of zero places start point at the right middle edge of oval.
1533
+ A positive sweepAngle places arc end point clockwise from start point;
1534
+ a negative sweepAngle places arc end point counterclockwise from start point.
1535
+ sweepAngle may exceed 360 degrees, a full circle.
1536
+ If useCenter is true, draw a wedge that includes lines from oval
1537
+ center to arc end points. If useCenter is false, draw arc between end points.
1538
+
1539
+ If SkRect oval is empty or sweepAngle is zero, nothing is drawn.
1540
+
1541
+ @param arc SkArc specifying oval, startAngle, sweepAngle, and arc-vs-wedge
1542
+ @param paint SkPaint stroke or fill, blend, color, and so on, used to draw
1543
+ */
1544
+ void drawArc(const SkArc& arc, const SkPaint& paint) {
1545
+ this->drawArc(arc.fOval, arc.fStartAngle, arc.fSweepAngle, arc.isWedge(), paint);
1546
+ }
1547
+
1548
+ /** Draws SkRRect bounded by SkRect rect, with corner radii (rx, ry) using clip,
1549
+ SkMatrix, and SkPaint paint.
1550
+
1551
+ In paint: SkPaint::Style determines if SkRRect is stroked or filled;
1552
+ if stroked, SkPaint stroke width describes the line thickness.
1553
+ If rx or ry are less than zero, they are treated as if they are zero.
1554
+ If rx plus ry exceeds rect width or rect height, radii are scaled down to fit.
1555
+ If rx and ry are zero, SkRRect is drawn as SkRect and if stroked is affected by
1556
+ SkPaint::Join.
1557
+
1558
+ @param rect SkRect bounds of SkRRect to draw
1559
+ @param rx axis length on x-axis of oval describing rounded corners
1560
+ @param ry axis length on y-axis of oval describing rounded corners
1561
+ @param paint stroke, blend, color, and so on, used to draw
1562
+
1563
+ example: https://fiddle.skia.org/c/@Canvas_drawRoundRect
1564
+ */
1565
+ void drawRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry, const SkPaint& paint);
1566
+
1567
+ /** Draws SkPath path using clip, SkMatrix, and SkPaint paint.
1568
+ SkPath contains an array of path contour, each of which may be open or closed.
1569
+
1570
+ In paint: SkPaint::Style determines if SkRRect is stroked or filled:
1571
+ if filled, SkPath::FillType determines whether path contour describes inside or
1572
+ outside of fill; if stroked, SkPaint stroke width describes the line thickness,
1573
+ SkPaint::Cap describes line ends, and SkPaint::Join describes how
1574
+ corners are drawn.
1575
+
1576
+ @param path SkPath to draw
1577
+ @param paint stroke, blend, color, and so on, used to draw
1578
+
1579
+ example: https://fiddle.skia.org/c/@Canvas_drawPath
1580
+ */
1581
+ void drawPath(const SkPath& path, const SkPaint& paint);
1582
+
1583
+ void drawImage(const SkImage* image, SkScalar left, SkScalar top) {
1584
+ this->drawImage(image, left, top, SkSamplingOptions(), nullptr);
1585
+ }
1586
+ void drawImage(const sk_sp<SkImage>& image, SkScalar left, SkScalar top) {
1587
+ this->drawImage(image.get(), left, top, SkSamplingOptions(), nullptr);
1588
+ }
1589
+
1590
+ /** \enum SkCanvas::SrcRectConstraint
1591
+ SrcRectConstraint controls the behavior at the edge of source SkRect,
1592
+ provided to drawImageRect() when there is any filtering. If kStrict is set,
1593
+ then extra code is used to ensure it never samples outside of the src-rect.
1594
+ kStrict_SrcRectConstraint disables the use of mipmaps and anisotropic filtering.
1595
+ */
1596
+ enum SrcRectConstraint {
1597
+ kStrict_SrcRectConstraint, //!< sample only inside bounds; slower
1598
+ kFast_SrcRectConstraint, //!< sample outside bounds; faster
1599
+ };
1600
+
1601
+ void drawImage(const SkImage*, SkScalar x, SkScalar y, const SkSamplingOptions&,
1602
+ const SkPaint* = nullptr);
1603
+ void drawImage(const sk_sp<SkImage>& image, SkScalar x, SkScalar y,
1604
+ const SkSamplingOptions& sampling, const SkPaint* paint = nullptr) {
1605
+ this->drawImage(image.get(), x, y, sampling, paint);
1606
+ }
1607
+ void drawImageRect(const SkImage*, const SkRect& src, const SkRect& dst,
1608
+ const SkSamplingOptions&, const SkPaint*, SrcRectConstraint);
1609
+ void drawImageRect(const SkImage*, const SkRect& dst, const SkSamplingOptions&,
1610
+ const SkPaint* = nullptr);
1611
+ void drawImageRect(const sk_sp<SkImage>& image, const SkRect& src, const SkRect& dst,
1612
+ const SkSamplingOptions& sampling, const SkPaint* paint,
1613
+ SrcRectConstraint constraint) {
1614
+ this->drawImageRect(image.get(), src, dst, sampling, paint, constraint);
1615
+ }
1616
+ void drawImageRect(const sk_sp<SkImage>& image, const SkRect& dst,
1617
+ const SkSamplingOptions& sampling, const SkPaint* paint = nullptr) {
1618
+ this->drawImageRect(image.get(), dst, sampling, paint);
1619
+ }
1620
+
1621
+ /** Draws SkImage image stretched proportionally to fit into SkRect dst.
1622
+ SkIRect center divides the image into nine sections: four sides, four corners, and
1623
+ the center. Corners are unmodified or scaled down proportionately if their sides
1624
+ are larger than dst; center and four sides are scaled to fit remaining space, if any.
1625
+
1626
+ Additionally transform draw using clip, SkMatrix, and optional SkPaint paint.
1627
+
1628
+ If SkPaint paint is supplied, apply SkColorFilter, alpha, SkImageFilter, and
1629
+ SkBlendMode. If image is kAlpha_8_SkColorType, apply SkShader.
1630
+ If paint contains SkMaskFilter, generate mask from image bounds.
1631
+ Any SkMaskFilter on paint is ignored as is paint anti-aliasing state.
1632
+
1633
+ If generated mask extends beyond image bounds, replicate image edge colors, just
1634
+ as SkShader made from SkImage::makeShader with SkShader::kClamp_TileMode set
1635
+ replicates the image edge color when it samples outside of its bounds.
1636
+
1637
+ @param image SkImage containing pixels, dimensions, and format
1638
+ @param center SkIRect edge of image corners and sides
1639
+ @param dst destination SkRect of image to draw to
1640
+ @param filter what technique to use when sampling the image
1641
+ @param paint SkPaint containing SkBlendMode, SkColorFilter, SkImageFilter,
1642
+ and so on; or nullptr
1643
+ */
1644
+ void drawImageNine(const SkImage* image, const SkIRect& center, const SkRect& dst,
1645
+ SkFilterMode filter, const SkPaint* paint = nullptr);
1646
+
1647
+ /** \struct SkCanvas::Lattice
1648
+ SkCanvas::Lattice divides SkBitmap or SkImage into a rectangular grid.
1649
+ Grid entries on even columns and even rows are fixed; these entries are
1650
+ always drawn at their original size if the destination is large enough.
1651
+ If the destination side is too small to hold the fixed entries, all fixed
1652
+ entries are proportionately scaled down to fit.
1653
+ The grid entries not on even columns and rows are scaled to fit the
1654
+ remaining space, if any.
1655
+ */
1656
+ struct Lattice {
1657
+
1658
+ /** \enum SkCanvas::Lattice::RectType
1659
+ Optional setting per rectangular grid entry to make it transparent,
1660
+ or to fill the grid entry with a color.
1661
+ */
1662
+ enum RectType : uint8_t {
1663
+ kDefault = 0, //!< draws SkBitmap into lattice rectangle
1664
+ kTransparent, //!< skips lattice rectangle by making it transparent
1665
+ kFixedColor, //!< draws one of fColors into lattice rectangle
1666
+ };
1667
+
1668
+ const int* fXDivs; //!< x-axis values dividing bitmap
1669
+ const int* fYDivs; //!< y-axis values dividing bitmap
1670
+ const RectType* fRectTypes; //!< array of fill types
1671
+ int fXCount; //!< number of x-coordinates
1672
+ int fYCount; //!< number of y-coordinates
1673
+ const SkIRect* fBounds; //!< source bounds to draw from
1674
+ const SkColor* fColors; //!< array of colors
1675
+ };
1676
+
1677
+ /** Draws SkImage image stretched proportionally to fit into SkRect dst.
1678
+
1679
+ SkCanvas::Lattice lattice divides image into a rectangular grid.
1680
+ Each intersection of an even-numbered row and column is fixed;
1681
+ fixed lattice elements never scale larger than their initial
1682
+ size and shrink proportionately when all fixed elements exceed the bitmap
1683
+ dimension. All other grid elements scale to fill the available space, if any.
1684
+
1685
+ Additionally transform draw using clip, SkMatrix, and optional SkPaint paint.
1686
+
1687
+ If SkPaint paint is supplied, apply SkColorFilter, alpha, SkImageFilter, and
1688
+ SkBlendMode. If image is kAlpha_8_SkColorType, apply SkShader.
1689
+ If paint contains SkMaskFilter, generate mask from image bounds.
1690
+ Any SkMaskFilter on paint is ignored as is paint anti-aliasing state.
1691
+
1692
+ If generated mask extends beyond bitmap bounds, replicate bitmap edge colors,
1693
+ just as SkShader made from SkShader::MakeBitmapShader with
1694
+ SkShader::kClamp_TileMode set replicates the bitmap edge color when it samples
1695
+ outside of its bounds.
1696
+
1697
+ @param image SkImage containing pixels, dimensions, and format
1698
+ @param lattice division of bitmap into fixed and variable rectangles
1699
+ @param dst destination SkRect of image to draw to
1700
+ @param filter what technique to use when sampling the image
1701
+ @param paint SkPaint containing SkBlendMode, SkColorFilter, SkImageFilter,
1702
+ and so on; or nullptr
1703
+ */
1704
+ void drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst,
1705
+ SkFilterMode filter, const SkPaint* paint = nullptr);
1706
+ void drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst) {
1707
+ this->drawImageLattice(image, lattice, dst, SkFilterMode::kNearest, nullptr);
1708
+ }
1709
+
1710
+ /**
1711
+ * Experimental. Controls anti-aliasing of each edge of images in an image-set.
1712
+ */
1713
+ enum QuadAAFlags : unsigned {
1714
+ kLeft_QuadAAFlag = 0b0001,
1715
+ kTop_QuadAAFlag = 0b0010,
1716
+ kRight_QuadAAFlag = 0b0100,
1717
+ kBottom_QuadAAFlag = 0b1000,
1718
+
1719
+ kNone_QuadAAFlags = 0b0000,
1720
+ kAll_QuadAAFlags = 0b1111,
1721
+ };
1722
+
1723
+ /** This is used by the experimental API below. */
1724
+ struct SK_API ImageSetEntry {
1725
+ ImageSetEntry(sk_sp<const SkImage> image, const SkRect& srcRect, const SkRect& dstRect,
1726
+ int matrixIndex, float alpha, unsigned aaFlags, bool hasClip);
1727
+
1728
+ ImageSetEntry(sk_sp<const SkImage> image, const SkRect& srcRect, const SkRect& dstRect,
1729
+ float alpha, unsigned aaFlags);
1730
+
1731
+ ImageSetEntry();
1732
+ ~ImageSetEntry();
1733
+ ImageSetEntry(const ImageSetEntry&);
1734
+ ImageSetEntry& operator=(const ImageSetEntry&);
1735
+
1736
+ sk_sp<const SkImage> fImage;
1737
+ SkRect fSrcRect;
1738
+ SkRect fDstRect;
1739
+ int fMatrixIndex = -1; // Index into the preViewMatrices arg, or < 0
1740
+ float fAlpha = 1.f;
1741
+ unsigned fAAFlags = kNone_QuadAAFlags; // QuadAAFlags
1742
+ bool fHasClip = false; // True to use next 4 points in dstClip arg as quad
1743
+ };
1744
+
1745
+ /**
1746
+ * This is an experimental API for the SkiaRenderer Chromium project, and its API will surely
1747
+ * evolve if it is not removed outright.
1748
+ *
1749
+ * This behaves very similarly to drawRect() combined with a clipPath() formed by clip
1750
+ * quadrilateral. 'rect' and 'clip' are in the same coordinate space. If 'clip' is null, then it
1751
+ * is as if the rectangle was not clipped (or, alternatively, clipped to itself). If not null,
1752
+ * then it must provide 4 points.
1753
+ *
1754
+ * In addition to combining the draw and clipping into one operation, this function adds the
1755
+ * additional capability of controlling each of the rectangle's edges anti-aliasing
1756
+ * independently. The edges of the clip will respect the per-edge AA flags. It is required that
1757
+ * 'clip' be contained inside 'rect'. In terms of mapping to edge labels, the 'clip' points
1758
+ * should be ordered top-left, top-right, bottom-right, bottom-left so that the edge between [0]
1759
+ * and [1] is "top", [1] and [2] is "right", [2] and [3] is "bottom", and [3] and [0] is "left".
1760
+ * This ordering matches SkRect::toQuad().
1761
+ *
1762
+ * This API only draws solid color, filled rectangles so it does not accept a full SkPaint.
1763
+ */
1764
+ void experimental_DrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aaFlags,
1765
+ const SkColor4f& color, SkBlendMode mode);
1766
+ void experimental_DrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aaFlags,
1767
+ SkColor color, SkBlendMode mode) {
1768
+ this->experimental_DrawEdgeAAQuad(rect, clip, aaFlags, SkColor4f::FromColor(color), mode);
1769
+ }
1770
+
1771
+ /**
1772
+ * This is an bulk variant of experimental_DrawEdgeAAQuad() that renders 'cnt' textured quads.
1773
+ * For each entry, 'fDstRect' is rendered with its clip (determined by entry's 'fHasClip' and
1774
+ * the current index in 'dstClip'). The entry's fImage is applied to the destination rectangle
1775
+ * by sampling from 'fSrcRect' sub-image. The corners of 'fSrcRect' map to the corners of
1776
+ * 'fDstRect', just like in drawImageRect(), and they will be properly interpolated when
1777
+ * applying a clip.
1778
+ *
1779
+ * Like experimental_DrawEdgeAAQuad(), each entry can specify edge AA flags that apply to both
1780
+ * the destination rect and its clip.
1781
+ *
1782
+ * If provided, the 'dstClips' array must have length equal 4 * the number of entries with
1783
+ * fHasClip true. If 'dstClips' is null, every entry must have 'fHasClip' set to false. The
1784
+ * destination clip coordinates will be read consecutively with the image set entries, advancing
1785
+ * by 4 points every time an entry with fHasClip is passed.
1786
+ *
1787
+ * This entry point supports per-entry manipulations to the canvas's current matrix. If an
1788
+ * entry provides 'fMatrixIndex' >= 0, it will be drawn as if the canvas's CTM was
1789
+ * canvas->getTotalMatrix() * preViewMatrices[fMatrixIndex]. If 'fMatrixIndex' is less than 0,
1790
+ * the pre-view matrix transform is implicitly the identity, so it will be drawn using just the
1791
+ * current canvas matrix. The pre-view matrix modifies the canvas's view matrix, it does not
1792
+ * affect the local coordinates of each entry.
1793
+ *
1794
+ * An optional paint may be provided, which supports the same subset of features usable with
1795
+ * drawImageRect (i.e. assumed to be filled and no path effects). When a paint is provided, the
1796
+ * image set is drawn as if each image used the applied paint independently, so each is affected
1797
+ * by the image, color, and/or mask filter.
1798
+ */
1799
+ void experimental_DrawEdgeAAImageSet(const ImageSetEntry imageSet[], int cnt,
1800
+ const SkPoint dstClips[], const SkMatrix preViewMatrices[],
1801
+ const SkSamplingOptions&, const SkPaint* paint = nullptr,
1802
+ SrcRectConstraint constraint = kStrict_SrcRectConstraint);
1803
+
1804
+ /** Draws text, with origin at (x, y), using clip, SkMatrix, SkFont font,
1805
+ and SkPaint paint.
1806
+
1807
+ When encoding is SkTextEncoding::kUTF8, SkTextEncoding::kUTF16, or
1808
+ SkTextEncoding::kUTF32, this function uses the default
1809
+ character-to-glyph mapping from the SkTypeface in font. It does not
1810
+ perform typeface fallback for characters not found in the SkTypeface.
1811
+ It does not perform kerning or other complex shaping; glyphs are
1812
+ positioned based on their default advances.
1813
+
1814
+ Text meaning depends on SkTextEncoding.
1815
+
1816
+ Text size is affected by SkMatrix and SkFont text size. Default text
1817
+ size is 12 point.
1818
+
1819
+ All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1820
+ SkColorFilter, and SkImageFilter; apply to text. By
1821
+ default, draws filled black glyphs.
1822
+
1823
+ @param text character code points or glyphs drawn
1824
+ @param byteLength byte length of text array
1825
+ @param encoding text encoding used in the text array
1826
+ @param x start of text on x-axis
1827
+ @param y start of text on y-axis
1828
+ @param font typeface, text size and so, used to describe the text
1829
+ @param paint blend, color, and so on, used to draw
1830
+ */
1831
+ void drawSimpleText(const void* text, size_t byteLength, SkTextEncoding encoding,
1832
+ SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint);
1833
+
1834
+ /** Draws null terminated string, with origin at (x, y), using clip, SkMatrix,
1835
+ SkFont font, and SkPaint paint.
1836
+
1837
+ This function uses the default character-to-glyph mapping from the
1838
+ SkTypeface in font. It does not perform typeface fallback for
1839
+ characters not found in the SkTypeface. It does not perform kerning;
1840
+ glyphs are positioned based on their default advances.
1841
+
1842
+ String str is encoded as UTF-8.
1843
+
1844
+ Text size is affected by SkMatrix and font text size. Default text
1845
+ size is 12 point.
1846
+
1847
+ All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1848
+ SkColorFilter, and SkImageFilter; apply to text. By
1849
+ default, draws filled black glyphs.
1850
+
1851
+ @param str character code points drawn,
1852
+ ending with a char value of zero
1853
+ @param x start of string on x-axis
1854
+ @param y start of string on y-axis
1855
+ @param font typeface, text size and so, used to describe the text
1856
+ @param paint blend, color, and so on, used to draw
1857
+ */
1858
+ void drawString(const char str[], SkScalar x, SkScalar y, const SkFont& font,
1859
+ const SkPaint& paint) {
1860
+ this->drawSimpleText(str, strlen(str), SkTextEncoding::kUTF8, x, y, font, paint);
1861
+ }
1862
+
1863
+ /** Draws SkString, with origin at (x, y), using clip, SkMatrix, SkFont font,
1864
+ and SkPaint paint.
1865
+
1866
+ This function uses the default character-to-glyph mapping from the
1867
+ SkTypeface in font. It does not perform typeface fallback for
1868
+ characters not found in the SkTypeface. It does not perform kerning;
1869
+ glyphs are positioned based on their default advances.
1870
+
1871
+ SkString str is encoded as UTF-8.
1872
+
1873
+ Text size is affected by SkMatrix and SkFont text size. Default text
1874
+ size is 12 point.
1875
+
1876
+ All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1877
+ SkColorFilter, and SkImageFilter; apply to text. By
1878
+ default, draws filled black glyphs.
1879
+
1880
+ @param str character code points drawn,
1881
+ ending with a char value of zero
1882
+ @param x start of string on x-axis
1883
+ @param y start of string on y-axis
1884
+ @param font typeface, text size and so, used to describe the text
1885
+ @param paint blend, color, and so on, used to draw
1886
+ */
1887
+ void drawString(const SkString& str, SkScalar x, SkScalar y, const SkFont& font,
1888
+ const SkPaint& paint) {
1889
+ this->drawSimpleText(str.c_str(), str.size(), SkTextEncoding::kUTF8, x, y, font, paint);
1890
+ }
1891
+
1892
+ /** Draws count glyphs, at positions relative to origin styled with font and paint with
1893
+ supporting utf8 and cluster information.
1894
+
1895
+ This function draw glyphs at the given positions relative to the given origin.
1896
+ It does not perform typeface fallback for glyphs not found in the SkTypeface in font.
1897
+
1898
+ The drawing obeys the current transform matrix and clipping.
1899
+
1900
+ All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1901
+ SkColorFilter, and SkImageFilter; apply to text. By
1902
+ default, draws filled black glyphs.
1903
+
1904
+ @param glyphs the span of glyphIDs to draw
1905
+ @param positions where to draw each glyph relative to origin
1906
+ @param clusters cluster information
1907
+ @param utf8text utf8text supporting information for the glyphs
1908
+ @param origin the origin of all the positions
1909
+ @param font typeface, text size and so, used to describe the text
1910
+ @param paint blend, color, and so on, used to draw
1911
+ */
1912
+ void drawGlyphs(SkSpan<const SkGlyphID> glyphs, SkSpan<const SkPoint> positions,
1913
+ SkSpan<const uint32_t> clusters, SkSpan<const char> utf8text,
1914
+ SkPoint origin, const SkFont& font, const SkPaint& paint);
1915
+
1916
+ /** Draws count glyphs, at positions relative to origin styled with font and paint.
1917
+
1918
+ This function draw glyphs at the given positions relative to the given origin.
1919
+ It does not perform typeface fallback for glyphs not found in the SkTypeface in font.
1920
+
1921
+ The drawing obeys the current transform matrix and clipping.
1922
+
1923
+ All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1924
+ SkColorFilter, and SkImageFilter; apply to text. By
1925
+ default, draws filled black glyphs.
1926
+
1927
+ @param count number of glyphs to draw
1928
+ @param glyphs the array of glyphIDs to draw
1929
+ @param positions where to draw each glyph relative to origin
1930
+ @param origin the origin of all the positions
1931
+ @param font typeface, text size and so, used to describe the text
1932
+ @param paint blend, color, and so on, used to draw
1933
+ */
1934
+ void drawGlyphs(SkSpan<const SkGlyphID> glyphs, SkSpan<const SkPoint> positions,
1935
+ SkPoint origin, const SkFont& font, const SkPaint& paint);
1936
+
1937
+ /** Draws count glyphs, at positions relative to origin styled with font and paint.
1938
+
1939
+ This function draw glyphs using the given scaling and rotations. They are positioned
1940
+ relative to the given origin. It does not perform typeface fallback for glyphs not found
1941
+ in the SkTypeface in font.
1942
+
1943
+ The drawing obeys the current transform matrix and clipping.
1944
+
1945
+ All elements of paint: SkPathEffect, SkMaskFilter, SkShader,
1946
+ SkColorFilter, and SkImageFilter; apply to text. By
1947
+ default, draws filled black glyphs.
1948
+
1949
+ @param count number of glyphs to draw
1950
+ @param glyphs the array of glyphIDs to draw
1951
+ @param xforms where to draw and orient each glyph
1952
+ @param origin the origin of all the positions
1953
+ @param font typeface, text size and so, used to describe the text
1954
+ @param paint blend, color, and so on, used to draw
1955
+ */
1956
+ void drawGlyphsRSXform(SkSpan<const SkGlyphID> glyphs, SkSpan<const SkRSXform> xforms,
1957
+ SkPoint origin, const SkFont& font, const SkPaint& paint);
1958
+
1959
+ /** Draws SkTextBlob blob at (x, y), using clip, SkMatrix, and SkPaint paint.
1960
+
1961
+ blob contains glyphs, their positions, and paint attributes specific to text:
1962
+ SkTypeface, SkPaint text size, SkPaint text scale x,
1963
+ SkPaint text skew x, SkPaint::Align, SkPaint::Hinting, anti-alias, SkPaint fake bold,
1964
+ SkPaint font embedded bitmaps, SkPaint full hinting spacing, LCD text, SkPaint linear text,
1965
+ and SkPaint subpixel text.
1966
+
1967
+ SkTextEncoding must be set to SkTextEncoding::kGlyphID.
1968
+
1969
+ Elements of paint: anti-alias, SkBlendMode, color including alpha,
1970
+ SkColorFilter, SkPaint dither, SkMaskFilter, SkPathEffect, SkShader, and
1971
+ SkPaint::Style; apply to blob. If SkPaint contains SkPaint::kStroke_Style:
1972
+ SkPaint miter limit, SkPaint::Cap, SkPaint::Join, and SkPaint stroke width;
1973
+ apply to SkPath created from blob.
1974
+
1975
+ @param blob glyphs, positions, and their paints' text size, typeface, and so on
1976
+ @param x horizontal offset applied to blob
1977
+ @param y vertical offset applied to blob
1978
+ @param paint blend, color, stroking, and so on, used to draw
1979
+
1980
+ example: https://fiddle.skia.org/c/@Canvas_drawTextBlob
1981
+ */
1982
+ void drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint);
1983
+
1984
+ /** Draws SkTextBlob blob at (x, y), using clip, SkMatrix, and SkPaint paint.
1985
+
1986
+ blob contains glyphs, their positions, and paint attributes specific to text:
1987
+ SkTypeface, SkPaint text size, SkPaint text scale x,
1988
+ SkPaint text skew x, SkPaint::Align, SkPaint::Hinting, anti-alias, SkPaint fake bold,
1989
+ SkPaint font embedded bitmaps, SkPaint full hinting spacing, LCD text, SkPaint linear text,
1990
+ and SkPaint subpixel text.
1991
+
1992
+ SkTextEncoding must be set to SkTextEncoding::kGlyphID.
1993
+
1994
+ Elements of paint: SkPathEffect, SkMaskFilter, SkShader, SkColorFilter,
1995
+ and SkImageFilter; apply to blob.
1996
+
1997
+ @param blob glyphs, positions, and their paints' text size, typeface, and so on
1998
+ @param x horizontal offset applied to blob
1999
+ @param y vertical offset applied to blob
2000
+ @param paint blend, color, stroking, and so on, used to draw
2001
+ */
2002
+ void drawTextBlob(const sk_sp<SkTextBlob>& blob, SkScalar x, SkScalar y, const SkPaint& paint) {
2003
+ this->drawTextBlob(blob.get(), x, y, paint);
2004
+ }
2005
+
2006
+ /** Draws SkPicture picture, using clip and SkMatrix.
2007
+ Clip and SkMatrix are unchanged by picture contents, as if
2008
+ save() was called before and restore() was called after drawPicture().
2009
+
2010
+ SkPicture records a series of draw commands for later playback.
2011
+
2012
+ @param picture recorded drawing commands to play
2013
+ */
2014
+ void drawPicture(const SkPicture* picture) {
2015
+ this->drawPicture(picture, nullptr, nullptr);
2016
+ }
2017
+
2018
+ /** Draws SkPicture picture, using clip and SkMatrix.
2019
+ Clip and SkMatrix are unchanged by picture contents, as if
2020
+ save() was called before and restore() was called after drawPicture().
2021
+
2022
+ SkPicture records a series of draw commands for later playback.
2023
+
2024
+ @param picture recorded drawing commands to play
2025
+ */
2026
+ void drawPicture(const sk_sp<SkPicture>& picture) {
2027
+ this->drawPicture(picture.get());
2028
+ }
2029
+
2030
+ /** Draws SkPicture picture, using clip and SkMatrix; transforming picture with
2031
+ SkMatrix matrix, if provided; and use SkPaint paint alpha, SkColorFilter,
2032
+ SkImageFilter, and SkBlendMode, if provided.
2033
+
2034
+ If paint is non-null, then the picture is always drawn into a temporary layer before
2035
+ actually landing on the canvas. Note that drawing into a layer can also change its
2036
+ appearance if there are any non-associative blendModes inside any of the pictures elements.
2037
+
2038
+ @param picture recorded drawing commands to play
2039
+ @param matrix SkMatrix to rotate, scale, translate, and so on; may be nullptr
2040
+ @param paint SkPaint to apply transparency, filtering, and so on; may be nullptr
2041
+
2042
+ example: https://fiddle.skia.org/c/@Canvas_drawPicture_3
2043
+ */
2044
+ void drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint);
2045
+
2046
+ /** Draws SkPicture picture, using clip and SkMatrix; transforming picture with
2047
+ SkMatrix matrix, if provided; and use SkPaint paint alpha, SkColorFilter,
2048
+ SkImageFilter, and SkBlendMode, if provided.
2049
+
2050
+ If paint is non-null, then the picture is always drawn into a temporary layer before
2051
+ actually landing on the canvas. Note that drawing into a layer can also change its
2052
+ appearance if there are any non-associative blendModes inside any of the pictures elements.
2053
+
2054
+ @param picture recorded drawing commands to play
2055
+ @param matrix SkMatrix to rotate, scale, translate, and so on; may be nullptr
2056
+ @param paint SkPaint to apply transparency, filtering, and so on; may be nullptr
2057
+ */
2058
+ void drawPicture(const sk_sp<SkPicture>& picture, const SkMatrix* matrix,
2059
+ const SkPaint* paint) {
2060
+ this->drawPicture(picture.get(), matrix, paint);
2061
+ }
2062
+
2063
+ /** Draws SkVertices vertices, a triangle mesh, using clip and SkMatrix.
2064
+ If paint contains an SkShader and vertices does not contain texCoords, the shader
2065
+ is mapped using the vertices' positions.
2066
+
2067
+ SkBlendMode is ignored if SkVertices does not have colors. Otherwise, it combines
2068
+ - the SkShader if SkPaint contains SkShader
2069
+ - or the opaque SkPaint color if SkPaint does not contain SkShader
2070
+ as the src of the blend and the interpolated vertex colors as the dst.
2071
+
2072
+ SkMaskFilter, SkPathEffect, and antialiasing on SkPaint are ignored.
2073
+
2074
+ @param vertices triangle mesh to draw
2075
+ @param mode combines vertices' colors with SkShader if present or SkPaint opaque color
2076
+ if not. Ignored if the vertices do not contain color.
2077
+ @param paint specifies the SkShader, used as SkVertices texture, and SkColorFilter.
2078
+
2079
+ example: https://fiddle.skia.org/c/@Canvas_drawVertices
2080
+ */
2081
+ void drawVertices(const SkVertices* vertices, SkBlendMode mode, const SkPaint& paint);
2082
+
2083
+ /** Draws SkVertices vertices, a triangle mesh, using clip and SkMatrix.
2084
+ If paint contains an SkShader and vertices does not contain texCoords, the shader
2085
+ is mapped using the vertices' positions.
2086
+
2087
+ SkBlendMode is ignored if SkVertices does not have colors. Otherwise, it combines
2088
+ - the SkShader if SkPaint contains SkShader
2089
+ - or the opaque SkPaint color if SkPaint does not contain SkShader
2090
+ as the src of the blend and the interpolated vertex colors as the dst.
2091
+
2092
+ SkMaskFilter, SkPathEffect, and antialiasing on SkPaint are ignored.
2093
+
2094
+ @param vertices triangle mesh to draw
2095
+ @param mode combines vertices' colors with SkShader if present or SkPaint opaque color
2096
+ if not. Ignored if the vertices do not contain color.
2097
+ @param paint specifies the SkShader, used as SkVertices texture, may be nullptr
2098
+
2099
+ example: https://fiddle.skia.org/c/@Canvas_drawVertices_2
2100
+ */
2101
+ void drawVertices(const sk_sp<SkVertices>& vertices, SkBlendMode mode, const SkPaint& paint);
2102
+
2103
+ /**
2104
+ Experimental, under active development, and subject to change without notice.
2105
+
2106
+ Draws a mesh using a user-defined specification (see SkMeshSpecification). Requires
2107
+ a GPU backend or SkSL to be compiled in.
2108
+
2109
+ SkBlender is ignored if SkMesh's specification does not output fragment shader color.
2110
+ Otherwise, it combines
2111
+ - the SkShader if SkPaint contains SkShader
2112
+ - or the opaque SkPaint color if SkPaint does not contain SkShader
2113
+ as the src of the blend and the mesh's fragment color as the dst.
2114
+
2115
+ SkMaskFilter, SkPathEffect, and antialiasing on SkPaint are ignored.
2116
+
2117
+ @param mesh the mesh vertices and compatible specification.
2118
+ @param blender combines vertices colors with SkShader if present or SkPaint opaque color
2119
+ if not. Ignored if the custom mesh does not output color. Defaults to
2120
+ SkBlendMode::kModulate if nullptr.
2121
+ @param paint specifies the SkShader, used as SkVertices texture, may be nullptr
2122
+ */
2123
+ void drawMesh(const SkMesh& mesh, sk_sp<SkBlender> blender, const SkPaint& paint);
2124
+
2125
+ /** Draws a Coons patch: the interpolation of four cubics with shared corners,
2126
+ associating a color, and optionally a texture SkPoint, with each corner.
2127
+
2128
+ SkPoint array cubics specifies four SkPath cubic starting at the top-left corner,
2129
+ in clockwise order, sharing every fourth point. The last SkPath cubic ends at the
2130
+ first point.
2131
+
2132
+ Color array color associates colors with corners in top-left, top-right,
2133
+ bottom-right, bottom-left order.
2134
+
2135
+ If paint contains SkShader, SkPoint array texCoords maps SkShader as texture to
2136
+ corners in top-left, top-right, bottom-right, bottom-left order. If texCoords is
2137
+ nullptr, SkShader is mapped using positions (derived from cubics).
2138
+
2139
+ SkBlendMode is ignored if colors is null. Otherwise, it combines
2140
+ - the SkShader if SkPaint contains SkShader
2141
+ - or the opaque SkPaint color if SkPaint does not contain SkShader
2142
+ as the src of the blend and the interpolated patch colors as the dst.
2143
+
2144
+ SkMaskFilter, SkPathEffect, and antialiasing on SkPaint are ignored.
2145
+
2146
+ @param cubics SkPath cubic array, sharing common points
2147
+ @param colors color array, one for each corner
2148
+ @param texCoords SkPoint array of texture coordinates, mapping SkShader to corners;
2149
+ may be nullptr
2150
+ @param mode combines patch's colors with SkShader if present or SkPaint opaque color
2151
+ if not. Ignored if colors is null.
2152
+ @param paint SkShader, SkColorFilter, SkBlendMode, used to draw
2153
+ */
2154
+ void drawPatch(const SkPoint cubics[12], const SkColor colors[4],
2155
+ const SkPoint texCoords[4], SkBlendMode mode, const SkPaint& paint);
2156
+
2157
+ /** Draws a set of sprites from atlas, using clip, SkMatrix, and optional SkPaint paint.
2158
+ paint uses anti-alias, alpha, SkColorFilter, SkImageFilter, and SkBlendMode
2159
+ to draw, if present. For each entry in the array, SkRect tex locates sprite in
2160
+ atlas, and SkRSXform xform transforms it into destination space.
2161
+
2162
+ SkMaskFilter and SkPathEffect on paint are ignored.
2163
+
2164
+ For non-empty spans, the number of draws will be the min of
2165
+ xform.size(), tex.size(), and (if not empty) colors.size().
2166
+
2167
+ Optional colors are applied for each sprite using SkBlendMode mode, treating
2168
+ sprite as source and colors as destination.
2169
+ Optional cullRect is a conservative bounds of all transformed sprites.
2170
+ If cullRect is outside of clip, canvas can skip drawing.
2171
+
2172
+ If atlas is nullptr, this draws nothing.
2173
+
2174
+ @param atlas SkImage containing sprites
2175
+ @param xform SkRSXform mappings for sprites in atlas
2176
+ @param tex SkRect locations of sprites in atlas
2177
+ @param colors one per sprite, blended with sprite using SkBlendMode; may be nullptr
2178
+ @param mode SkBlendMode combining colors and sprites
2179
+ @param sampling SkSamplingOptions used when sampling from the atlas image
2180
+ @param cullRect bounds of transformed sprites for efficient clipping; may be nullptr
2181
+ @param paint SkColorFilter, SkImageFilter, SkBlendMode, and so on; may be nullptr
2182
+ */
2183
+ void drawAtlas(const SkImage* atlas, SkSpan<const SkRSXform> xform,
2184
+ SkSpan<const SkRect> tex, SkSpan<const SkColor> colors, SkBlendMode mode,
2185
+ const SkSamplingOptions& sampling, const SkRect* cullRect, const SkPaint* paint);
2186
+
2187
+ /** Draws SkDrawable drawable using clip and SkMatrix, concatenated with
2188
+ optional matrix.
2189
+
2190
+ If SkCanvas has an asynchronous implementation, as is the case
2191
+ when it is recording into SkPicture, then drawable will be referenced,
2192
+ so that SkDrawable::draw() can be called when the operation is finalized. To force
2193
+ immediate drawing, call SkDrawable::draw() instead.
2194
+
2195
+ @param drawable custom struct encapsulating drawing commands
2196
+ @param matrix transformation applied to drawing; may be nullptr
2197
+
2198
+ example: https://fiddle.skia.org/c/@Canvas_drawDrawable
2199
+ */
2200
+ void drawDrawable(SkDrawable* drawable, const SkMatrix* matrix = nullptr);
2201
+
2202
+ /** Draws SkDrawable drawable using clip and SkMatrix, offset by (x, y).
2203
+
2204
+ If SkCanvas has an asynchronous implementation, as is the case
2205
+ when it is recording into SkPicture, then drawable will be referenced,
2206
+ so that SkDrawable::draw() can be called when the operation is finalized. To force
2207
+ immediate drawing, call SkDrawable::draw() instead.
2208
+
2209
+ @param drawable custom struct encapsulating drawing commands
2210
+ @param x offset into SkCanvas writable pixels on x-axis
2211
+ @param y offset into SkCanvas writable pixels on y-axis
2212
+
2213
+ example: https://fiddle.skia.org/c/@Canvas_drawDrawable_2
2214
+ */
2215
+ void drawDrawable(SkDrawable* drawable, SkScalar x, SkScalar y);
2216
+
2217
+ /** Associates SkRect on SkCanvas with an annotation; a key-value pair, where the key is
2218
+ a null-terminated UTF-8 string, and optional value is stored as SkData.
2219
+
2220
+ Only some canvas implementations, such as recording to SkPicture, or drawing to
2221
+ document PDF, use annotations.
2222
+
2223
+ @param rect SkRect extent of canvas to annotate
2224
+ @param key string used for lookup
2225
+ @param value data holding value stored in annotation
2226
+
2227
+ example: https://fiddle.skia.org/c/@Canvas_drawAnnotation_2
2228
+ */
2229
+ void drawAnnotation(const SkRect& rect, const char key[], SkData* value);
2230
+
2231
+ /** Associates SkRect on SkCanvas when an annotation; a key-value pair, where the key is
2232
+ a null-terminated UTF-8 string, and optional value is stored as SkData.
2233
+
2234
+ Only some canvas implementations, such as recording to SkPicture, or drawing to
2235
+ document PDF, use annotations.
2236
+
2237
+ @param rect SkRect extent of canvas to annotate
2238
+ @param key string used for lookup
2239
+ @param value data holding value stored in annotation
2240
+ */
2241
+ void drawAnnotation(const SkRect& rect, const char key[], const sk_sp<SkData>& value) {
2242
+ this->drawAnnotation(rect, key, value.get());
2243
+ }
2244
+
2245
+ /** Returns true if clip is empty; that is, nothing will draw.
2246
+
2247
+ May do work when called; it should not be called
2248
+ more often than needed. However, once called, subsequent calls perform no
2249
+ work until clip changes.
2250
+
2251
+ @return true if clip is empty
2252
+
2253
+ example: https://fiddle.skia.org/c/@Canvas_isClipEmpty
2254
+ */
2255
+ virtual bool isClipEmpty() const;
2256
+
2257
+ /** Returns true if clip is SkRect and not empty.
2258
+ Returns false if the clip is empty, or if it is not SkRect.
2259
+
2260
+ @return true if clip is SkRect and not empty
2261
+
2262
+ example: https://fiddle.skia.org/c/@Canvas_isClipRect
2263
+ */
2264
+ virtual bool isClipRect() const;
2265
+
2266
+ /** Returns the current transform from local coordinates to the 'device', which for most
2267
+ * purposes means pixels.
2268
+ *
2269
+ * @return transformation from local coordinates to device / pixels.
2270
+ */
2271
+ SkM44 getLocalToDevice() const;
2272
+
2273
+ /**
2274
+ * Throws away the 3rd row and column in the matrix, so be warned.
2275
+ */
2276
+ SkMatrix getLocalToDeviceAs3x3() const {
2277
+ return this->getLocalToDevice().asM33();
2278
+ }
2279
+
2280
+ #ifdef SK_SUPPORT_LEGACY_GETTOTALMATRIX
2281
+ /** DEPRECATED
2282
+ * Legacy version of getLocalToDevice(), which strips away any Z information, and
2283
+ * just returns a 3x3 version.
2284
+ *
2285
+ * @return 3x3 version of getLocalToDevice()
2286
+ *
2287
+ * example: https://fiddle.skia.org/c/@Canvas_getTotalMatrix
2288
+ * example: https://fiddle.skia.org/c/@Clip
2289
+ */
2290
+ SkMatrix getTotalMatrix() const;
2291
+ #endif
2292
+
2293
+ ///////////////////////////////////////////////////////////////////////////
2294
+
2295
+ /**
2296
+ * Returns the global clip as a region. If the clip contains AA, then only the bounds
2297
+ * of the clip may be returned.
2298
+ */
2299
+ void temporary_internal_getRgnClip(SkRegion* region);
2300
+
2301
+ void private_draw_shadow_rec(const SkPath&, const SkDrawShadowRec&);
2302
+
2303
+
2304
+ protected:
2305
+ // default impl defers to getDevice()->newSurface(info)
2306
+ virtual sk_sp<SkSurface> onNewSurface(const SkImageInfo& info, const SkSurfaceProps& props);
2307
+
2308
+ // default impl defers to its device
2309
+ virtual bool onPeekPixels(SkPixmap* pixmap);
2310
+ virtual bool onAccessTopLayerPixels(SkPixmap* pixmap);
2311
+ virtual SkImageInfo onImageInfo() const;
2312
+ virtual bool onGetProps(SkSurfaceProps* props, bool top) const;
2313
+
2314
+ // Subclass save/restore notifiers.
2315
+ // Overriders should call the corresponding INHERITED method up the inheritance chain.
2316
+ // getSaveLayerStrategy()'s return value may suppress full layer allocation.
2317
+ enum SaveLayerStrategy {
2318
+ kFullLayer_SaveLayerStrategy,
2319
+ kNoLayer_SaveLayerStrategy,
2320
+ };
2321
+
2322
+ virtual void willSave() {}
2323
+ // Overriders should call the corresponding INHERITED method up the inheritance chain.
2324
+ virtual SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec& ) {
2325
+ return kFullLayer_SaveLayerStrategy;
2326
+ }
2327
+
2328
+ // returns true if we should actually perform the saveBehind, or false if we should just save.
2329
+ virtual bool onDoSaveBehind(const SkRect*) { return true; }
2330
+ virtual void willRestore() {}
2331
+ virtual void didRestore() {}
2332
+
2333
+ virtual void didConcat44(const SkM44&) {}
2334
+ virtual void didSetM44(const SkM44&) {}
2335
+ virtual void didTranslate(SkScalar, SkScalar) {}
2336
+ virtual void didScale(SkScalar, SkScalar) {}
2337
+
2338
+ // NOTE: If you are adding a new onDraw virtual to SkCanvas, PLEASE add an override to
2339
+ // SkCanvasVirtualEnforcer (in SkCanvasVirtualEnforcer.h). This ensures that subclasses using
2340
+ // that mechanism will be required to implement the new function.
2341
+ virtual void onDrawPaint(const SkPaint& paint);
2342
+ virtual void onDrawBehind(const SkPaint& paint);
2343
+ virtual void onDrawRect(const SkRect& rect, const SkPaint& paint);
2344
+ virtual void onDrawRRect(const SkRRect& rrect, const SkPaint& paint);
2345
+ virtual void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint);
2346
+ virtual void onDrawOval(const SkRect& rect, const SkPaint& paint);
2347
+ virtual void onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle,
2348
+ bool useCenter, const SkPaint& paint);
2349
+ virtual void onDrawPath(const SkPath& path, const SkPaint& paint);
2350
+ virtual void onDrawRegion(const SkRegion& region, const SkPaint& paint);
2351
+
2352
+ virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
2353
+ const SkPaint& paint);
2354
+
2355
+ virtual void onDrawGlyphRunList(const sktext::GlyphRunList& glyphRunList, const SkPaint& paint);
2356
+
2357
+ virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
2358
+ const SkPoint texCoords[4], SkBlendMode mode, const SkPaint& paint);
2359
+ virtual void onDrawPoints(PointMode mode, size_t count, const SkPoint pts[],
2360
+ const SkPaint& paint);
2361
+
2362
+ virtual void onDrawImage2(const SkImage*, SkScalar dx, SkScalar dy, const SkSamplingOptions&,
2363
+ const SkPaint*);
2364
+ virtual void onDrawImageRect2(const SkImage*, const SkRect& src, const SkRect& dst,
2365
+ const SkSamplingOptions&, const SkPaint*, SrcRectConstraint);
2366
+ virtual void onDrawImageLattice2(const SkImage*, const Lattice&, const SkRect& dst,
2367
+ SkFilterMode, const SkPaint*);
2368
+ virtual void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect src[],
2369
+ const SkColor[], int count, SkBlendMode, const SkSamplingOptions&,
2370
+ const SkRect* cull, const SkPaint*);
2371
+ virtual void onDrawEdgeAAImageSet2(const ImageSetEntry imageSet[], int count,
2372
+ const SkPoint dstClips[], const SkMatrix preViewMatrices[],
2373
+ const SkSamplingOptions&, const SkPaint*,
2374
+ SrcRectConstraint);
2375
+
2376
+ virtual void onDrawVerticesObject(const SkVertices* vertices, SkBlendMode mode,
2377
+ const SkPaint& paint);
2378
+ virtual void onDrawMesh(const SkMesh&, sk_sp<SkBlender>, const SkPaint&);
2379
+ virtual void onDrawAnnotation(const SkRect& rect, const char key[], SkData* value);
2380
+ virtual void onDrawShadowRec(const SkPath&, const SkDrawShadowRec&);
2381
+
2382
+ virtual void onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix);
2383
+ virtual void onDrawPicture(const SkPicture* picture, const SkMatrix* matrix,
2384
+ const SkPaint* paint);
2385
+
2386
+ virtual void onDrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], QuadAAFlags aaFlags,
2387
+ const SkColor4f& color, SkBlendMode mode);
2388
+
2389
+ enum ClipEdgeStyle {
2390
+ kHard_ClipEdgeStyle,
2391
+ kSoft_ClipEdgeStyle
2392
+ };
2393
+
2394
+ virtual void onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle edgeStyle);
2395
+ virtual void onClipRRect(const SkRRect& rrect, SkClipOp op, ClipEdgeStyle edgeStyle);
2396
+ virtual void onClipPath(const SkPath& path, SkClipOp op, ClipEdgeStyle edgeStyle);
2397
+ virtual void onClipShader(sk_sp<SkShader>, SkClipOp);
2398
+ virtual void onClipRegion(const SkRegion& deviceRgn, SkClipOp op);
2399
+ virtual void onResetClip();
2400
+
2401
+ virtual void onDiscard();
2402
+
2403
+ /**
2404
+ */
2405
+ virtual sk_sp<sktext::gpu::Slug> onConvertGlyphRunListToSlug(
2406
+ const sktext::GlyphRunList& glyphRunList, const SkPaint& paint);
2407
+
2408
+ /**
2409
+ */
2410
+ virtual void onDrawSlug(const sktext::gpu::Slug* slug, const SkPaint& paint);
2411
+
2412
+ private:
2413
+ enum class PredrawFlags : unsigned {
2414
+ kNone = 0,
2415
+ kOpaqueShaderOverride = 1, // The paint's shader is overridden with an opaque image
2416
+ kNonOpaqueShaderOverride = 2, // The paint's shader is overridden but is not opaque
2417
+ kCheckForOverwrite = 4, // Check if the draw would overwrite the entire surface
2418
+ kSkipMaskFilterAutoLayer = 8, // Do not apply mask filters in the AutoLayer
2419
+ };
2420
+ SK_DECL_BITMASK_OPS_FRIENDS(PredrawFlags)
2421
+
2422
+ // notify our surface (if we have one) that we are about to draw, so it
2423
+ // can perform copy-on-write or invalidate any cached images
2424
+ // returns false if the copy failed
2425
+ [[nodiscard]] bool predrawNotify(bool willOverwritesEntireSurface = false);
2426
+ [[nodiscard]] bool predrawNotify(const SkRect*, const SkPaint*, SkEnumBitMask<PredrawFlags>);
2427
+
2428
+ // call the appropriate predrawNotify and create a layer if needed.
2429
+ std::optional<AutoLayerForImageFilter> aboutToDraw(
2430
+ const SkPaint& paint,
2431
+ const SkRect* rawBounds,
2432
+ SkEnumBitMask<PredrawFlags> flags);
2433
+ std::optional<AutoLayerForImageFilter> aboutToDraw(
2434
+ const SkPaint& paint,
2435
+ const SkRect* rawBounds = nullptr);
2436
+
2437
+ // The bottom-most device in the stack, only changed by init(). Image properties and the final
2438
+ // canvas pixels are determined by this device.
2439
+ SkDevice* rootDevice() const {
2440
+ SkASSERT(fRootDevice);
2441
+ return fRootDevice.get();
2442
+ }
2443
+
2444
+ // The top-most device in the stack, will change within saveLayer()'s. All drawing and clipping
2445
+ // operations should route to this device.
2446
+ SkDevice* topDevice() const;
2447
+
2448
+ // Canvases maintain a sparse stack of layers, where the top-most layer receives the drawing,
2449
+ // clip, and matrix commands. There is a layer per call to saveLayer() using the
2450
+ // kFullLayer_SaveLayerStrategy.
2451
+ struct Layer {
2452
+ sk_sp<SkDevice> fDevice;
2453
+ skia_private::STArray<1, sk_sp<SkImageFilter>> fImageFilters;
2454
+ SkPaint fPaint;
2455
+ bool fIsCoverage;
2456
+ bool fDiscard;
2457
+
2458
+ // If true, the layer image is sized to include a 1px buffer that remains transparent
2459
+ // to allow for faster linear filtering under complex transforms.
2460
+ bool fIncludesPadding;
2461
+
2462
+ Layer(sk_sp<SkDevice> device,
2463
+ FilterSpan imageFilters,
2464
+ const SkPaint& paint,
2465
+ bool isCoverage,
2466
+ bool includesPadding);
2467
+ };
2468
+
2469
+ // Encapsulate state needed to restore from saveBehind()
2470
+ struct BackImage {
2471
+ // Out of line to avoid including SkSpecialImage.h
2472
+ BackImage(sk_sp<SkSpecialImage>, SkIPoint);
2473
+ BackImage(const BackImage&);
2474
+ BackImage(BackImage&&);
2475
+ BackImage& operator=(const BackImage&);
2476
+ ~BackImage();
2477
+
2478
+ sk_sp<SkSpecialImage> fImage;
2479
+ SkIPoint fLoc;
2480
+ };
2481
+
2482
+ class MCRec {
2483
+ public:
2484
+ // If not null, this MCRec corresponds with the saveLayer() record that made the layer.
2485
+ // The base "layer" is not stored here, since it is stored inline in SkCanvas and has no
2486
+ // restoration behavior.
2487
+ std::unique_ptr<Layer> fLayer;
2488
+
2489
+ // This points to the device of the top-most layer (which may be lower in the stack), or
2490
+ // to the canvas's fRootDevice. The MCRec does not own the device.
2491
+ SkDevice* fDevice;
2492
+
2493
+ std::unique_ptr<BackImage> fBackImage;
2494
+ SkM44 fMatrix;
2495
+ int fDeferredSaveCount = 0;
2496
+
2497
+ MCRec(SkDevice* device);
2498
+ MCRec(const MCRec* prev);
2499
+ ~MCRec();
2500
+
2501
+ void newLayer(sk_sp<SkDevice> layerDevice,
2502
+ FilterSpan filters,
2503
+ const SkPaint& restorePaint,
2504
+ bool layerIsCoverage,
2505
+ bool includesPadding);
2506
+
2507
+ void reset(SkDevice* device);
2508
+ };
2509
+
2510
+ #if defined(SK_CANVAS_SAVE_RESTORE_PREALLOC_COUNT)
2511
+ static constexpr int kMCRecCount = SK_CANVAS_SAVE_RESTORE_PREALLOC_COUNT;
2512
+ #else
2513
+ static constexpr int kMCRecCount = 32; // common depth for save/restores
2514
+ #endif
2515
+
2516
+ // This stack allocation of memory will be used to house the first kMCRecCount
2517
+ // layers without need to call malloc.
2518
+ alignas(MCRec) std::byte fMCRecStorage[sizeof(MCRec) * kMCRecCount];
2519
+
2520
+ SkDeque fMCStack; // uses the stack memory
2521
+ MCRec* fMCRec; // points to top of stack for convenience
2522
+
2523
+ // Installed via init()
2524
+ sk_sp<SkDevice> fRootDevice;
2525
+ const SkSurfaceProps fProps;
2526
+
2527
+ int fSaveCount; // value returned by getSaveCount()
2528
+
2529
+ std::unique_ptr<SkRasterHandleAllocator> fAllocator;
2530
+
2531
+ SkSurface_Base* fSurfaceBase;
2532
+ void setSurfaceBase(SkSurface_Base* sb) {
2533
+ fSurfaceBase = sb;
2534
+ }
2535
+ friend class SkSurface_Base;
2536
+ friend class SkSurface_Ganesh;
2537
+ friend class SkCaptureCanvas;
2538
+
2539
+ SkIRect fClipRestrictionRect = SkIRect::MakeEmpty();
2540
+ int fClipRestrictionSaveCount = -1;
2541
+
2542
+ void doSave();
2543
+ void checkForDeferredSave();
2544
+ void internalSetMatrix(const SkM44&);
2545
+
2546
+ virtual void onSurfaceDelete() {}
2547
+
2548
+ friend class SkAndroidFrameworkUtils;
2549
+ friend class SkCanvasPriv; // needs to expose android functions for testing outside android
2550
+ friend class AutoLayerForImageFilter;
2551
+ friend class SkSurface_Raster; // needs getDevice()
2552
+ friend class SkNoDrawCanvas; // needs resetForNextPicture()
2553
+ friend class SkNWayCanvas;
2554
+ friend class SkPictureRecord; // predrawNotify (why does it need it? <reed>)
2555
+ friend class SkOverdrawCanvas;
2556
+ friend class SkRasterHandleAllocator;
2557
+ friend class SkRecords::Draw;
2558
+ template <typename Key>
2559
+ friend class skiatest::TestCanvas;
2560
+ friend class AutoGlyphRunBuilder;
2561
+
2562
+ protected:
2563
+ // For use by SkNoDrawCanvas (via SkCanvasVirtualEnforcer, which can't be a friend)
2564
+ explicit SkCanvas(const SkIRect& bounds);
2565
+
2566
+ private:
2567
+ SkCanvas(const SkBitmap&, std::unique_ptr<SkRasterHandleAllocator>,
2568
+ SkRasterHandleAllocator::Handle, const SkSurfaceProps* props);
2569
+
2570
+ SkCanvas(SkCanvas&&) = delete;
2571
+ SkCanvas(const SkCanvas&) = delete;
2572
+ SkCanvas& operator=(SkCanvas&&) = delete;
2573
+ SkCanvas& operator=(const SkCanvas&) = delete;
2574
+
2575
+ friend class sktext::gpu::Slug;
2576
+ friend class SkPicturePlayback;
2577
+ /**
2578
+ * Convert a SkTextBlob to a sktext::gpu::Slug using the current canvas state.
2579
+ */
2580
+ sk_sp<sktext::gpu::Slug> convertBlobToSlug(const SkTextBlob& blob, SkPoint origin,
2581
+ const SkPaint& paint);
2582
+
2583
+ /**
2584
+ * Draw an sktext::gpu::Slug given the current canvas state.
2585
+ */
2586
+ void drawSlug(const sktext::gpu::Slug* slug, const SkPaint& paint);
2587
+
2588
+ /** Experimental
2589
+ * Saves the specified subset of the current pixels in the current layer,
2590
+ * and then clears those pixels to transparent black.
2591
+ * Restores the pixels on restore() by drawing them in SkBlendMode::kDstOver.
2592
+ *
2593
+ * @param subset conservative bounds of the area to be saved / restored.
2594
+ * @return depth of save state stack before this call was made.
2595
+ */
2596
+ int only_axis_aligned_saveBehind(const SkRect* subset);
2597
+
2598
+ /**
2599
+ * Like drawPaint, but magically clipped to the most recent saveBehind buffer rectangle.
2600
+ * If there is no active saveBehind, then this draws nothing.
2601
+ */
2602
+ void drawClippedToSaveBehind(const SkPaint&);
2603
+
2604
+ void resetForNextPicture(const SkIRect& bounds);
2605
+
2606
+ // needs gettotalclip()
2607
+ friend class SkCanvasStateUtils;
2608
+
2609
+ void init(sk_sp<SkDevice>);
2610
+
2611
+ bool nothingToDraw(const SkPaint& paint) const;
2612
+
2613
+ // All base onDrawX() functions should call this and skip drawing if it returns true.
2614
+ // If 'matrix' is non-null, it maps the paint's fast bounds before checking for quick rejection
2615
+ bool internalQuickReject(const SkRect& bounds, const SkPaint& paint,
2616
+ const SkMatrix* matrix = nullptr);
2617
+
2618
+ void internalDrawPaint(const SkPaint& paint);
2619
+ void internalSaveLayer(const SaveLayerRec&, SaveLayerStrategy, bool coverageOnly=false);
2620
+ void internalSaveBehind(const SkRect*);
2621
+
2622
+ void internalConcat44(const SkM44&);
2623
+
2624
+ // shared by save() and saveLayer()
2625
+ void internalSave();
2626
+ void internalRestore();
2627
+
2628
+ enum class DeviceCompatibleWithFilter : int {
2629
+ // Check the src device's local-to-device matrix for compatibility with the filter, and if
2630
+ // it is not compatible, introduce an intermediate image and transformation that allows the
2631
+ // filter to be evaluated on the modified src content.
2632
+ kUnknown,
2633
+ // Assume that the src device's local-to-device matrix is compatible with the filter.
2634
+ kYes,
2635
+ // Assume that the src device's local-to-device matrix is compatible with the filter,
2636
+ // *and* the source image has a 1px buffer of padding.
2637
+ kYesWithPadding
2638
+ };
2639
+ /**
2640
+ * Filters the contents of 'src' and draws the result into 'dst'. The filter is evaluated
2641
+ * relative to the current canvas matrix, and src is drawn to dst using their relative transform
2642
+ * 'paint' is applied after the filter and must not have a mask or image filter of its own.
2643
+ * A null 'filter' behaves as if the identity filter were used.
2644
+ *
2645
+ * 'scaleFactor' is an extra uniform scale transform applied to downscale the 'src' image
2646
+ * before any filtering, or as part of the copy, and is then drawn with 1/scaleFactor to 'dst'.
2647
+ * Must be 1.0 if 'compat' is kYes (i.e. any scale factor has already been baked into the
2648
+ * relative transforms between the devices).
2649
+ *
2650
+ * 'srcTileMode' is the tile mode to apply to the boundary of the 'src' image when insufficient
2651
+ * content is available. It defaults to kDecal for the regular saveLayer() case.
2652
+ */
2653
+ void internalDrawDeviceWithFilter(SkDevice* src, SkDevice* dst,
2654
+ FilterSpan filters, const SkPaint& paint,
2655
+ DeviceCompatibleWithFilter compat,
2656
+ const SkColorInfo& filterColorInfo,
2657
+ SkScalar scaleFactor = 1.f,
2658
+ SkTileMode srcTileMode = SkTileMode::kDecal,
2659
+ bool srcIsCoverageLayer = false);
2660
+
2661
+ /*
2662
+ * Returns true if drawing the specified rect (or all if it is null) with the specified
2663
+ * paint (or default if null) would overwrite the entire root device of the canvas
2664
+ * (i.e. the canvas' surface if it had one).
2665
+ */
2666
+ bool wouldOverwriteEntireSurface(const SkRect*, const SkPaint*,
2667
+ SkEnumBitMask<PredrawFlags>) const;
2668
+
2669
+ /**
2670
+ * Returns true if the clip (for any active layer) contains antialiasing.
2671
+ * If the clip is empty, this will return false.
2672
+ */
2673
+ bool androidFramework_isClipAA() const;
2674
+
2675
+ /**
2676
+ * Reset the clip to be wide-open (modulo any separately specified device clip restriction).
2677
+ * This operate within the save/restore clip stack so it can be undone by restoring to an
2678
+ * earlier save point.
2679
+ */
2680
+ void internal_private_resetClip();
2681
+
2682
+ virtual SkPaintFilterCanvas* internal_private_asPaintFilterCanvas() const { return nullptr; }
2683
+
2684
+ // Keep track of the device clip bounds in the canvas' global space to reject draws before
2685
+ // invoking the top-level device.
2686
+ SkRect fQuickRejectBounds;
2687
+
2688
+ // Compute the clip's bounds based on all clipped SkDevice's reported device bounds transformed
2689
+ // into the canvas' global space.
2690
+ SkRect computeDeviceClipBounds(bool outsetForAA=true) const;
2691
+
2692
+ // Returns the paint's mask filter if it can be used to draw an rrect with an analytic blur, and
2693
+ // returns null otherwise.
2694
+ const SkBlurMaskFilterImpl* canAttemptBlurredRRectDraw(const SkPaint&) const;
2695
+
2696
+ // Attempt to draw a rrect with an analytic blur. If the draw succeeds or predrawNotify fails,
2697
+ // nullopt is returned indicating that nothing further should be drawn.
2698
+ std::optional<AutoLayerForImageFilter> attemptBlurredRRectDraw(const SkRRect&,
2699
+ const SkBlurMaskFilterImpl*,
2700
+ const SkPaint&,
2701
+ SkEnumBitMask<PredrawFlags>);
2702
+
2703
+ class AutoUpdateQRBounds;
2704
+ void validateClip() const;
2705
+
2706
+ sktext::GlyphRunBuilder* obtainGlyphRunBuilder();
2707
+
2708
+ void releaseGlyphRunBuilder();
2709
+
2710
+ /**
2711
+ * fRunBuilders will be reused across text drawing commands
2712
+ */
2713
+ skia_private::STArray<1, std::unique_ptr<sktext::GlyphRunBuilder>> fRunBuilders;
2714
+ int fRunBuildersUsed = 0;
2715
+ };
2716
+
2717
+ /** \class SkAutoCanvasRestore
2718
+ Stack helper class calls SkCanvas::restoreToCount when SkAutoCanvasRestore
2719
+ goes out of scope. Use this to guarantee that the canvas is restored to a known
2720
+ state.
2721
+ */
2722
+ class [[nodiscard]] SkAutoCanvasRestore {
2723
+ public:
2724
+
2725
+ /** Preserves SkCanvas::save() count. Optionally saves SkCanvas clip and SkCanvas matrix.
2726
+
2727
+ @param canvas SkCanvas to guard
2728
+ @param doSave call SkCanvas::save()
2729
+ @return utility to restore SkCanvas state on destructor
2730
+ */
2731
+ SkAutoCanvasRestore(SkCanvas* canvas, bool doSave) : fCanvas(canvas), fSaveCount(0) {
2732
+ if (fCanvas) {
2733
+ fSaveCount = canvas->getSaveCount();
2734
+ if (doSave) {
2735
+ canvas->save();
2736
+ }
2737
+ }
2738
+ }
2739
+
2740
+ /** Restores SkCanvas to saved state. Destructor is called when container goes out of
2741
+ scope.
2742
+ */
2743
+ ~SkAutoCanvasRestore() {
2744
+ if (fCanvas) {
2745
+ fCanvas->restoreToCount(fSaveCount);
2746
+ }
2747
+ }
2748
+
2749
+ /** Restores SkCanvas to saved state immediately. Subsequent calls and
2750
+ ~SkAutoCanvasRestore() have no effect.
2751
+ */
2752
+ void restore() {
2753
+ if (fCanvas) {
2754
+ fCanvas->restoreToCount(fSaveCount);
2755
+ fCanvas = nullptr;
2756
+ }
2757
+ }
2758
+
2759
+ private:
2760
+ SkCanvas* fCanvas;
2761
+ int fSaveCount;
2762
+
2763
+ SkAutoCanvasRestore(SkAutoCanvasRestore&&) = delete;
2764
+ SkAutoCanvasRestore(const SkAutoCanvasRestore&) = delete;
2765
+ SkAutoCanvasRestore& operator=(SkAutoCanvasRestore&&) = delete;
2766
+ SkAutoCanvasRestore& operator=(const SkAutoCanvasRestore&) = delete;
2767
+ };
2768
+
2769
+ #endif