@shopify/react-native-skia 0.0.135

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2190) hide show
  1. package/LICENSE.md +7 -0
  2. package/README.md +52 -0
  3. package/android/CMakeLists.txt +151 -0
  4. package/android/README.md +14 -0
  5. package/android/build.gradle +258 -0
  6. package/android/cpp/jni/JniLoad.cpp +13 -0
  7. package/android/cpp/jni/JniPlatformContext.cpp +142 -0
  8. package/android/cpp/jni/JniSkiaDrawView.cpp +113 -0
  9. package/android/cpp/jni/JniSkiaManager.cpp +57 -0
  10. package/android/cpp/jni/include/JniPlatformContext.h +75 -0
  11. package/android/cpp/jni/include/JniSkiaDrawView.h +78 -0
  12. package/android/cpp/jni/include/JniSkiaManager.h +81 -0
  13. package/android/cpp/rnskia-android/RNSkDrawViewImpl.cpp +73 -0
  14. package/android/cpp/rnskia-android/RNSkDrawViewImpl.h +48 -0
  15. package/android/cpp/rnskia-android/RNSkPlatformContextImpl.h +54 -0
  16. package/android/cpp/rnskia-android/SkiaOpenGLRenderer.cpp +325 -0
  17. package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +131 -0
  18. package/android/src/main/AndroidManifest.xml +6 -0
  19. package/android/src/main/java/com/shopify/reactnative/skia/PlatformContext.java +181 -0
  20. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +88 -0
  21. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +24 -0
  22. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaViewManager.java +72 -0
  23. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +131 -0
  24. package/android/src/main/java/com/shopify/reactnative/skia/SkiaManager.java +66 -0
  25. package/cpp/api/JsiSkApi.h +105 -0
  26. package/cpp/api/JsiSkCanvas.h +540 -0
  27. package/cpp/api/JsiSkColor.h +83 -0
  28. package/cpp/api/JsiSkColorFilter.h +43 -0
  29. package/cpp/api/JsiSkColorFilterFactory.h +99 -0
  30. package/cpp/api/JsiSkContourMeasure.h +102 -0
  31. package/cpp/api/JsiSkContourMeasureIter.h +90 -0
  32. package/cpp/api/JsiSkData.h +46 -0
  33. package/cpp/api/JsiSkDataFactory.h +92 -0
  34. package/cpp/api/JsiSkFont.h +354 -0
  35. package/cpp/api/JsiSkFontMgr.h +84 -0
  36. package/cpp/api/JsiSkFontMgrFactory.h +48 -0
  37. package/cpp/api/JsiSkHostObjects.h +83 -0
  38. package/cpp/api/JsiSkImage.h +124 -0
  39. package/cpp/api/JsiSkImageFactory.h +50 -0
  40. package/cpp/api/JsiSkImageFilter.h +45 -0
  41. package/cpp/api/JsiSkImageFilterFactory.h +237 -0
  42. package/cpp/api/JsiSkImageInfo.h +57 -0
  43. package/cpp/api/JsiSkMaskFilter.h +45 -0
  44. package/cpp/api/JsiSkMaskFilterFactory.h +42 -0
  45. package/cpp/api/JsiSkMatrix.h +119 -0
  46. package/cpp/api/JsiSkPaint.h +199 -0
  47. package/cpp/api/JsiSkPath.h +592 -0
  48. package/cpp/api/JsiSkPathEffect.h +45 -0
  49. package/cpp/api/JsiSkPathEffectFactory.h +123 -0
  50. package/cpp/api/JsiSkPathFactory.h +172 -0
  51. package/cpp/api/JsiSkPicture.h +71 -0
  52. package/cpp/api/JsiSkPictureFactory.h +50 -0
  53. package/cpp/api/JsiSkPictureRecorder.h +53 -0
  54. package/cpp/api/JsiSkPoint.h +81 -0
  55. package/cpp/api/JsiSkRRect.h +93 -0
  56. package/cpp/api/JsiSkRSXform.h +105 -0
  57. package/cpp/api/JsiSkRect.h +119 -0
  58. package/cpp/api/JsiSkRuntimeEffect.h +222 -0
  59. package/cpp/api/JsiSkRuntimeEffectFactory.h +42 -0
  60. package/cpp/api/JsiSkRuntimeShaderBuilder.h +88 -0
  61. package/cpp/api/JsiSkSVG.h +43 -0
  62. package/cpp/api/JsiSkSVGFactory.h +48 -0
  63. package/cpp/api/JsiSkShader.h +45 -0
  64. package/cpp/api/JsiSkShaderFactory.h +214 -0
  65. package/cpp/api/JsiSkSurface.h +67 -0
  66. package/cpp/api/JsiSkSurfaceFactory.h +44 -0
  67. package/cpp/api/JsiSkTextBlob.h +50 -0
  68. package/cpp/api/JsiSkTextBlobFactory.h +109 -0
  69. package/cpp/api/JsiSkTypeface.h +85 -0
  70. package/cpp/api/JsiSkTypefaceFactory.h +34 -0
  71. package/cpp/api/JsiSkVertices.h +145 -0
  72. package/cpp/api/third_party/CSSColorParser.cpp +194 -0
  73. package/cpp/api/third_party/CSSColorParser.h +134 -0
  74. package/cpp/jsi/JsiHostObject.cpp +154 -0
  75. package/cpp/jsi/JsiHostObject.h +241 -0
  76. package/cpp/jsi/JsiSimpleValueWrapper.h +108 -0
  77. package/cpp/rnskia/RNSkAnimation.h +68 -0
  78. package/cpp/rnskia/RNSkDispatchQueue.cpp +84 -0
  79. package/cpp/rnskia/RNSkDispatchQueue.h +47 -0
  80. package/cpp/rnskia/RNSkDrawView.cpp +291 -0
  81. package/cpp/rnskia/RNSkDrawView.h +212 -0
  82. package/cpp/rnskia/RNSkInfoParameter.h +102 -0
  83. package/cpp/rnskia/RNSkJsiViewApi.h +308 -0
  84. package/cpp/rnskia/RNSkManager.cpp +81 -0
  85. package/cpp/rnskia/RNSkManager.h +81 -0
  86. package/cpp/rnskia/RNSkPlatformContext.h +196 -0
  87. package/cpp/rnskia/RNSkValueApi.h +73 -0
  88. package/cpp/rnskia/values/RNSkClockValue.h +141 -0
  89. package/cpp/rnskia/values/RNSkComputedValue.h +99 -0
  90. package/cpp/rnskia/values/RNSkReadonlyValue.h +142 -0
  91. package/cpp/rnskia/values/RNSkValue.h +117 -0
  92. package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +61 -0
  93. package/cpp/skia/include/android/SkAnimatedImage.h +179 -0
  94. package/cpp/skia/include/c/sk_canvas.h +159 -0
  95. package/cpp/skia/include/c/sk_colorspace.h +25 -0
  96. package/cpp/skia/include/c/sk_data.h +65 -0
  97. package/cpp/skia/include/c/sk_image.h +71 -0
  98. package/cpp/skia/include/c/sk_imageinfo.h +62 -0
  99. package/cpp/skia/include/c/sk_maskfilter.h +47 -0
  100. package/cpp/skia/include/c/sk_matrix.h +49 -0
  101. package/cpp/skia/include/c/sk_paint.h +145 -0
  102. package/cpp/skia/include/c/sk_path.h +102 -0
  103. package/cpp/skia/include/c/sk_picture.h +70 -0
  104. package/cpp/skia/include/c/sk_shader.h +143 -0
  105. package/cpp/skia/include/c/sk_surface.h +73 -0
  106. package/cpp/skia/include/c/sk_types.h +278 -0
  107. package/cpp/skia/include/codec/SkAndroidCodec.h +263 -0
  108. package/cpp/skia/include/codec/SkCodec.h +998 -0
  109. package/cpp/skia/include/codec/SkCodecAnimation.h +61 -0
  110. package/cpp/skia/include/codec/SkEncodedOrigin.h +54 -0
  111. package/cpp/skia/include/config/SkUserConfig.h +89 -0
  112. package/cpp/skia/include/core/SkAlphaType.h +45 -0
  113. package/cpp/skia/include/core/SkAnnotation.h +50 -0
  114. package/cpp/skia/include/core/SkBBHFactory.h +63 -0
  115. package/cpp/skia/include/core/SkBitmap.h +1214 -0
  116. package/cpp/skia/include/core/SkBlendMode.h +110 -0
  117. package/cpp/skia/include/core/SkBlender.h +33 -0
  118. package/cpp/skia/include/core/SkBlurTypes.h +22 -0
  119. package/cpp/skia/include/core/SkCanvas.h +2594 -0
  120. package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +61 -0
  121. package/cpp/skia/include/core/SkClipOp.h +19 -0
  122. package/cpp/skia/include/core/SkColor.h +438 -0
  123. package/cpp/skia/include/core/SkColorFilter.h +91 -0
  124. package/cpp/skia/include/core/SkColorPriv.h +152 -0
  125. package/cpp/skia/include/core/SkColorSpace.h +245 -0
  126. package/cpp/skia/include/core/SkColorType.h +66 -0
  127. package/cpp/skia/include/core/SkContourMeasure.h +131 -0
  128. package/cpp/skia/include/core/SkCoverageMode.h +30 -0
  129. package/cpp/skia/include/core/SkCubicMap.h +45 -0
  130. package/cpp/skia/include/core/SkData.h +188 -0
  131. package/cpp/skia/include/core/SkDataTable.h +118 -0
  132. package/cpp/skia/include/core/SkDeferredDisplayList.h +110 -0
  133. package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +97 -0
  134. package/cpp/skia/include/core/SkDocument.h +91 -0
  135. package/cpp/skia/include/core/SkDrawLooper.h +135 -0
  136. package/cpp/skia/include/core/SkDrawable.h +167 -0
  137. package/cpp/skia/include/core/SkEncodedImageFormat.h +36 -0
  138. package/cpp/skia/include/core/SkExecutor.h +41 -0
  139. package/cpp/skia/include/core/SkFlattenable.h +113 -0
  140. package/cpp/skia/include/core/SkFont.h +535 -0
  141. package/cpp/skia/include/core/SkFontArguments.h +94 -0
  142. package/cpp/skia/include/core/SkFontMetrics.h +138 -0
  143. package/cpp/skia/include/core/SkFontMgr.h +157 -0
  144. package/cpp/skia/include/core/SkFontParameters.h +42 -0
  145. package/cpp/skia/include/core/SkFontStyle.h +81 -0
  146. package/cpp/skia/include/core/SkFontTypes.h +25 -0
  147. package/cpp/skia/include/core/SkGraphics.h +166 -0
  148. package/cpp/skia/include/core/SkICC.h +19 -0
  149. package/cpp/skia/include/core/SkImage.h +1347 -0
  150. package/cpp/skia/include/core/SkImageEncoder.h +69 -0
  151. package/cpp/skia/include/core/SkImageFilter.h +114 -0
  152. package/cpp/skia/include/core/SkImageGenerator.h +216 -0
  153. package/cpp/skia/include/core/SkImageInfo.h +614 -0
  154. package/cpp/skia/include/core/SkM44.h +426 -0
  155. package/cpp/skia/include/core/SkMallocPixelRef.h +42 -0
  156. package/cpp/skia/include/core/SkMaskFilter.h +50 -0
  157. package/cpp/skia/include/core/SkMath.h +54 -0
  158. package/cpp/skia/include/core/SkMatrix.h +1986 -0
  159. package/cpp/skia/include/core/SkMesh.h +303 -0
  160. package/cpp/skia/include/core/SkMilestone.h +9 -0
  161. package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +30 -0
  162. package/cpp/skia/include/core/SkOverdrawCanvas.h +68 -0
  163. package/cpp/skia/include/core/SkPaint.h +705 -0
  164. package/cpp/skia/include/core/SkPath.h +1878 -0
  165. package/cpp/skia/include/core/SkPathBuilder.h +263 -0
  166. package/cpp/skia/include/core/SkPathEffect.h +106 -0
  167. package/cpp/skia/include/core/SkPathMeasure.h +88 -0
  168. package/cpp/skia/include/core/SkPathTypes.h +59 -0
  169. package/cpp/skia/include/core/SkPicture.h +280 -0
  170. package/cpp/skia/include/core/SkPictureRecorder.h +115 -0
  171. package/cpp/skia/include/core/SkPixelRef.h +123 -0
  172. package/cpp/skia/include/core/SkPixmap.h +721 -0
  173. package/cpp/skia/include/core/SkPngChunkReader.h +45 -0
  174. package/cpp/skia/include/core/SkPoint.h +566 -0
  175. package/cpp/skia/include/core/SkPoint3.h +157 -0
  176. package/cpp/skia/include/core/SkPromiseImageTexture.h +46 -0
  177. package/cpp/skia/include/core/SkRRect.h +512 -0
  178. package/cpp/skia/include/core/SkRSXform.h +69 -0
  179. package/cpp/skia/include/core/SkRasterHandleAllocator.h +92 -0
  180. package/cpp/skia/include/core/SkRect.h +1378 -0
  181. package/cpp/skia/include/core/SkRefCnt.h +382 -0
  182. package/cpp/skia/include/core/SkRegion.h +672 -0
  183. package/cpp/skia/include/core/SkSamplingOptions.h +103 -0
  184. package/cpp/skia/include/core/SkScalar.h +194 -0
  185. package/cpp/skia/include/core/SkSerialProcs.h +73 -0
  186. package/cpp/skia/include/core/SkShader.h +148 -0
  187. package/cpp/skia/include/core/SkSize.h +90 -0
  188. package/cpp/skia/include/core/SkSpan.h +89 -0
  189. package/cpp/skia/include/core/SkStream.h +524 -0
  190. package/cpp/skia/include/core/SkString.h +299 -0
  191. package/cpp/skia/include/core/SkStrokeRec.h +154 -0
  192. package/cpp/skia/include/core/SkSurface.h +1100 -0
  193. package/cpp/skia/include/core/SkSurfaceCharacterization.h +263 -0
  194. package/cpp/skia/include/core/SkSurfaceProps.h +92 -0
  195. package/cpp/skia/include/core/SkSwizzle.h +19 -0
  196. package/cpp/skia/include/core/SkTextBlob.h +503 -0
  197. package/cpp/skia/include/core/SkTileMode.h +41 -0
  198. package/cpp/skia/include/core/SkTime.h +63 -0
  199. package/cpp/skia/include/core/SkTraceMemoryDump.h +99 -0
  200. package/cpp/skia/include/core/SkTypeface.h +470 -0
  201. package/cpp/skia/include/core/SkTypes.h +625 -0
  202. package/cpp/skia/include/core/SkUnPreMultiply.h +56 -0
  203. package/cpp/skia/include/core/SkVertices.h +132 -0
  204. package/cpp/skia/include/core/SkYUVAInfo.h +304 -0
  205. package/cpp/skia/include/core/SkYUVAPixmaps.h +336 -0
  206. package/cpp/skia/include/docs/SkPDFDocument.h +196 -0
  207. package/cpp/skia/include/docs/SkXPSDocument.h +27 -0
  208. package/cpp/skia/include/effects/Sk1DPathEffect.h +35 -0
  209. package/cpp/skia/include/effects/Sk2DPathEffect.h +30 -0
  210. package/cpp/skia/include/effects/SkBlenders.h +27 -0
  211. package/cpp/skia/include/effects/SkBlurDrawLooper.h +26 -0
  212. package/cpp/skia/include/effects/SkBlurMaskFilter.h +35 -0
  213. package/cpp/skia/include/effects/SkColorMatrix.h +55 -0
  214. package/cpp/skia/include/effects/SkColorMatrixFilter.h +25 -0
  215. package/cpp/skia/include/effects/SkCornerPathEffect.h +28 -0
  216. package/cpp/skia/include/effects/SkDashPathEffect.h +39 -0
  217. package/cpp/skia/include/effects/SkDiscretePathEffect.h +37 -0
  218. package/cpp/skia/include/effects/SkGradientShader.h +255 -0
  219. package/cpp/skia/include/effects/SkHighContrastFilter.h +80 -0
  220. package/cpp/skia/include/effects/SkImageFilters.h +551 -0
  221. package/cpp/skia/include/effects/SkLayerDrawLooper.h +161 -0
  222. package/cpp/skia/include/effects/SkLumaColorFilter.h +34 -0
  223. package/cpp/skia/include/effects/SkOpPathEffect.h +39 -0
  224. package/cpp/skia/include/effects/SkOverdrawColorFilter.h +29 -0
  225. package/cpp/skia/include/effects/SkPerlinNoiseShader.h +54 -0
  226. package/cpp/skia/include/effects/SkRuntimeEffect.h +522 -0
  227. package/cpp/skia/include/effects/SkShaderMaskFilter.h +24 -0
  228. package/cpp/skia/include/effects/SkStrokeAndFillPathEffect.h +28 -0
  229. package/cpp/skia/include/effects/SkTableColorFilter.h +42 -0
  230. package/cpp/skia/include/effects/SkTableMaskFilter.h +37 -0
  231. package/cpp/skia/include/effects/SkTrimPathEffect.h +41 -0
  232. package/cpp/skia/include/encode/SkEncoder.h +42 -0
  233. package/cpp/skia/include/encode/SkJpegEncoder.h +97 -0
  234. package/cpp/skia/include/encode/SkPngEncoder.h +99 -0
  235. package/cpp/skia/include/encode/SkWebpEncoder.h +48 -0
  236. package/cpp/skia/include/gpu/GpuTypes.h +32 -0
  237. package/cpp/skia/include/gpu/GrBackendDrawableInfo.h +44 -0
  238. package/cpp/skia/include/gpu/GrBackendSemaphore.h +140 -0
  239. package/cpp/skia/include/gpu/GrBackendSurface.h +644 -0
  240. package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +91 -0
  241. package/cpp/skia/include/gpu/GrConfig.h +53 -0
  242. package/cpp/skia/include/gpu/GrContextOptions.h +355 -0
  243. package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +166 -0
  244. package/cpp/skia/include/gpu/GrDirectContext.h +885 -0
  245. package/cpp/skia/include/gpu/GrDriverBugWorkarounds.h +52 -0
  246. package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +43 -0
  247. package/cpp/skia/include/gpu/GrRecordingContext.h +282 -0
  248. package/cpp/skia/include/gpu/GrSurfaceInfo.h +166 -0
  249. package/cpp/skia/include/gpu/GrTypes.h +244 -0
  250. package/cpp/skia/include/gpu/GrYUVABackendTextures.h +124 -0
  251. package/cpp/skia/include/gpu/ShaderErrorHandler.h +36 -0
  252. package/cpp/skia/include/gpu/d3d/GrD3DBackendContext.h +35 -0
  253. package/cpp/skia/include/gpu/d3d/GrD3DTypes.h +248 -0
  254. package/cpp/skia/include/gpu/dawn/GrDawnTypes.h +95 -0
  255. package/cpp/skia/include/gpu/gl/GrGLAssembleHelpers.h +11 -0
  256. package/cpp/skia/include/gpu/gl/GrGLAssembleInterface.h +39 -0
  257. package/cpp/skia/include/gpu/gl/GrGLConfig.h +79 -0
  258. package/cpp/skia/include/gpu/gl/GrGLConfig_chrome.h +14 -0
  259. package/cpp/skia/include/gpu/gl/GrGLExtensions.h +78 -0
  260. package/cpp/skia/include/gpu/gl/GrGLFunctions.h +306 -0
  261. package/cpp/skia/include/gpu/gl/GrGLInterface.h +342 -0
  262. package/cpp/skia/include/gpu/gl/GrGLTypes.h +207 -0
  263. package/cpp/skia/include/gpu/gl/egl/GrGLMakeEGLInterface.h +14 -0
  264. package/cpp/skia/include/gpu/gl/glx/GrGLMakeGLXInterface.h +14 -0
  265. package/cpp/skia/include/gpu/graphite/BackendTexture.h +64 -0
  266. package/cpp/skia/include/gpu/graphite/Context.h +124 -0
  267. package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +71 -0
  268. package/cpp/skia/include/gpu/graphite/Recorder.h +104 -0
  269. package/cpp/skia/include/gpu/graphite/Recording.h +39 -0
  270. package/cpp/skia/include/gpu/graphite/SkStuff.h +47 -0
  271. package/cpp/skia/include/gpu/graphite/TextureInfo.h +91 -0
  272. package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +24 -0
  273. package/cpp/skia/include/gpu/graphite/mtl/MtlTypes.h +68 -0
  274. package/cpp/skia/include/gpu/mock/GrMockTypes.h +143 -0
  275. package/cpp/skia/include/gpu/mtl/GrMtlBackendContext.h +21 -0
  276. package/cpp/skia/include/gpu/mtl/GrMtlTypes.h +63 -0
  277. package/cpp/skia/include/gpu/vk/GrVkBackendContext.h +76 -0
  278. package/cpp/skia/include/gpu/vk/GrVkExtensions.h +63 -0
  279. package/cpp/skia/include/gpu/vk/GrVkMemoryAllocator.h +140 -0
  280. package/cpp/skia/include/gpu/vk/GrVkTypes.h +187 -0
  281. package/cpp/skia/include/gpu/vk/GrVkVulkan.h +32 -0
  282. package/cpp/skia/include/pathops/SkPathOps.h +113 -0
  283. package/cpp/skia/include/ports/SkCFObject.h +180 -0
  284. package/cpp/skia/include/ports/SkFontConfigInterface.h +115 -0
  285. package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +20 -0
  286. package/cpp/skia/include/ports/SkFontMgr_android.h +45 -0
  287. package/cpp/skia/include/ports/SkFontMgr_directory.h +21 -0
  288. package/cpp/skia/include/ports/SkFontMgr_empty.h +21 -0
  289. package/cpp/skia/include/ports/SkFontMgr_fontconfig.h +22 -0
  290. package/cpp/skia/include/ports/SkFontMgr_fuchsia.h +19 -0
  291. package/cpp/skia/include/ports/SkFontMgr_indirect.h +102 -0
  292. package/cpp/skia/include/ports/SkFontMgr_mac_ct.h +27 -0
  293. package/cpp/skia/include/ports/SkImageGeneratorCG.h +20 -0
  294. package/cpp/skia/include/ports/SkImageGeneratorNDK.h +40 -0
  295. package/cpp/skia/include/ports/SkImageGeneratorWIC.h +35 -0
  296. package/cpp/skia/include/ports/SkRemotableFontMgr.h +139 -0
  297. package/cpp/skia/include/ports/SkTypeface_mac.h +44 -0
  298. package/cpp/skia/include/ports/SkTypeface_win.h +79 -0
  299. package/cpp/skia/include/private/SingleOwner.h +72 -0
  300. package/cpp/skia/include/private/SkBitmaskEnum.h +59 -0
  301. package/cpp/skia/include/private/SkChecksum.h +77 -0
  302. package/cpp/skia/include/private/SkColorData.h +441 -0
  303. package/cpp/skia/include/private/SkDeque.h +141 -0
  304. package/cpp/skia/include/private/SkEncodedInfo.h +266 -0
  305. package/cpp/skia/include/private/SkFixed.h +141 -0
  306. package/cpp/skia/include/private/SkFloatBits.h +91 -0
  307. package/cpp/skia/include/private/SkFloatingPoint.h +219 -0
  308. package/cpp/skia/include/private/SkHalf.h +85 -0
  309. package/cpp/skia/include/private/SkIDChangeListener.h +75 -0
  310. package/cpp/skia/include/private/SkImageInfoPriv.h +199 -0
  311. package/cpp/skia/include/private/SkMacros.h +79 -0
  312. package/cpp/skia/include/private/SkMalloc.h +143 -0
  313. package/cpp/skia/include/private/SkMutex.h +64 -0
  314. package/cpp/skia/include/private/SkNoncopyable.h +30 -0
  315. package/cpp/skia/include/private/SkNx.h +430 -0
  316. package/cpp/skia/include/private/SkNx_neon.h +713 -0
  317. package/cpp/skia/include/private/SkNx_sse.h +823 -0
  318. package/cpp/skia/include/private/SkOnce.h +53 -0
  319. package/cpp/skia/include/private/SkOpts_spi.h +21 -0
  320. package/cpp/skia/include/private/SkPathRef.h +522 -0
  321. package/cpp/skia/include/private/SkSLDefines.h +64 -0
  322. package/cpp/skia/include/private/SkSLIRNode.h +64 -0
  323. package/cpp/skia/include/private/SkSLLayout.h +144 -0
  324. package/cpp/skia/include/private/SkSLModifiers.h +142 -0
  325. package/cpp/skia/include/private/SkSLProgramElement.h +77 -0
  326. package/cpp/skia/include/private/SkSLProgramKind.h +34 -0
  327. package/cpp/skia/include/private/SkSLSampleUsage.h +89 -0
  328. package/cpp/skia/include/private/SkSLStatement.h +86 -0
  329. package/cpp/skia/include/private/SkSLString.h +41 -0
  330. package/cpp/skia/include/private/SkSLSymbol.h +90 -0
  331. package/cpp/skia/include/private/SkSafe32.h +34 -0
  332. package/cpp/skia/include/private/SkSafe_math.h +52 -0
  333. package/cpp/skia/include/private/SkSemaphore.h +83 -0
  334. package/cpp/skia/include/private/SkShadowFlags.h +27 -0
  335. package/cpp/skia/include/private/SkSpinlock.h +57 -0
  336. package/cpp/skia/include/private/SkStringView.h +47 -0
  337. package/cpp/skia/include/private/SkTArray.h +641 -0
  338. package/cpp/skia/include/private/SkTDArray.h +385 -0
  339. package/cpp/skia/include/private/SkTFitsIn.h +99 -0
  340. package/cpp/skia/include/private/SkTHash.h +590 -0
  341. package/cpp/skia/include/private/SkTLogic.h +56 -0
  342. package/cpp/skia/include/private/SkTPin.h +23 -0
  343. package/cpp/skia/include/private/SkTemplates.h +453 -0
  344. package/cpp/skia/include/private/SkThreadAnnotations.h +91 -0
  345. package/cpp/skia/include/private/SkThreadID.h +20 -0
  346. package/cpp/skia/include/private/SkTo.h +28 -0
  347. package/cpp/skia/include/private/SkUniquePaintParamsID.h +35 -0
  348. package/cpp/skia/include/private/SkVx.h +943 -0
  349. package/cpp/skia/include/private/SkWeakRefCnt.h +170 -0
  350. package/cpp/skia/include/private/chromium/GrSlug.h +78 -0
  351. package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +149 -0
  352. package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +99 -0
  353. package/cpp/skia/include/private/gpu/ganesh/GrD3DTypesMinimal.h +74 -0
  354. package/cpp/skia/include/private/gpu/ganesh/GrDawnTypesPriv.h +26 -0
  355. package/cpp/skia/include/private/gpu/ganesh/GrGLTypesPriv.h +108 -0
  356. package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +55 -0
  357. package/cpp/skia/include/private/gpu/ganesh/GrMockTypesPriv.h +31 -0
  358. package/cpp/skia/include/private/gpu/ganesh/GrMtlTypesPriv.h +75 -0
  359. package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1012 -0
  360. package/cpp/skia/include/private/gpu/ganesh/GrVkTypesPriv.h +107 -0
  361. package/cpp/skia/include/private/gpu/graphite/MtlTypesPriv.h +74 -0
  362. package/cpp/skia/include/sksl/DSL.h +38 -0
  363. package/cpp/skia/include/sksl/DSLBlock.h +72 -0
  364. package/cpp/skia/include/sksl/DSLCase.h +68 -0
  365. package/cpp/skia/include/sksl/DSLCore.h +499 -0
  366. package/cpp/skia/include/sksl/DSLExpression.h +332 -0
  367. package/cpp/skia/include/sksl/DSLFunction.h +121 -0
  368. package/cpp/skia/include/sksl/DSLLayout.h +92 -0
  369. package/cpp/skia/include/sksl/DSLModifiers.h +66 -0
  370. package/cpp/skia/include/sksl/DSLRuntimeEffects.h +32 -0
  371. package/cpp/skia/include/sksl/DSLStatement.h +117 -0
  372. package/cpp/skia/include/sksl/DSLSymbols.h +71 -0
  373. package/cpp/skia/include/sksl/DSLType.h +263 -0
  374. package/cpp/skia/include/sksl/DSLVar.h +321 -0
  375. package/cpp/skia/include/sksl/DSLWrapper.h +77 -0
  376. package/cpp/skia/include/sksl/SkSLDebugTrace.h +28 -0
  377. package/cpp/skia/include/sksl/SkSLErrorReporter.h +78 -0
  378. package/cpp/skia/include/sksl/SkSLOperator.h +151 -0
  379. package/cpp/skia/include/sksl/SkSLPosition.h +102 -0
  380. package/cpp/skia/include/svg/SkSVGCanvas.h +41 -0
  381. package/cpp/skia/include/third_party/skcms/LICENSE +29 -0
  382. package/cpp/skia/include/third_party/skcms/skcms.h +394 -0
  383. package/cpp/skia/include/third_party/vulkan/LICENSE +29 -0
  384. package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +84 -0
  385. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +93 -0
  386. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +112 -0
  387. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +12620 -0
  388. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +47 -0
  389. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +47 -0
  390. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +315 -0
  391. package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +55 -0
  392. package/cpp/skia/include/utils/SkAnimCodecPlayer.h +67 -0
  393. package/cpp/skia/include/utils/SkBase64.h +51 -0
  394. package/cpp/skia/include/utils/SkCamera.h +109 -0
  395. package/cpp/skia/include/utils/SkCanvasStateUtils.h +81 -0
  396. package/cpp/skia/include/utils/SkCustomTypeface.h +50 -0
  397. package/cpp/skia/include/utils/SkEventTracer.h +79 -0
  398. package/cpp/skia/include/utils/SkNWayCanvas.h +126 -0
  399. package/cpp/skia/include/utils/SkNoDrawCanvas.h +80 -0
  400. package/cpp/skia/include/utils/SkNullCanvas.h +22 -0
  401. package/cpp/skia/include/utils/SkOrderedFontMgr.h +65 -0
  402. package/cpp/skia/include/utils/SkPaintFilterCanvas.h +136 -0
  403. package/cpp/skia/include/utils/SkParse.h +34 -0
  404. package/cpp/skia/include/utils/SkParsePath.h +25 -0
  405. package/cpp/skia/include/utils/SkRandom.h +169 -0
  406. package/cpp/skia/include/utils/SkShadowUtils.h +86 -0
  407. package/cpp/skia/include/utils/SkTextUtils.h +42 -0
  408. package/cpp/skia/include/utils/SkTraceEventPhase.h +19 -0
  409. package/cpp/skia/include/utils/mac/SkCGUtils.h +78 -0
  410. package/cpp/skia/modules/skresources/include/SkResources.h +254 -0
  411. package/cpp/skia/modules/svg/include/SkSVGAttribute.h +113 -0
  412. package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +160 -0
  413. package/cpp/skia/modules/svg/include/SkSVGCircle.h +43 -0
  414. package/cpp/skia/modules/svg/include/SkSVGClipPath.h +35 -0
  415. package/cpp/skia/modules/svg/include/SkSVGContainer.h +36 -0
  416. package/cpp/skia/modules/svg/include/SkSVGDOM.h +100 -0
  417. package/cpp/skia/modules/svg/include/SkSVGDefs.h +23 -0
  418. package/cpp/skia/modules/svg/include/SkSVGEllipse.h +41 -0
  419. package/cpp/skia/modules/svg/include/SkSVGFe.h +85 -0
  420. package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +45 -0
  421. package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +46 -0
  422. package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +46 -0
  423. package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +46 -0
  424. package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +32 -0
  425. package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +41 -0
  426. package/cpp/skia/modules/svg/include/SkSVGFeImage.h +35 -0
  427. package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +89 -0
  428. package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +121 -0
  429. package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +47 -0
  430. package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +35 -0
  431. package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +40 -0
  432. package/cpp/skia/modules/svg/include/SkSVGFilter.h +39 -0
  433. package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +69 -0
  434. package/cpp/skia/modules/svg/include/SkSVGG.h +23 -0
  435. package/cpp/skia/modules/svg/include/SkSVGGradient.h +48 -0
  436. package/cpp/skia/modules/svg/include/SkSVGHiddenContainer.h +23 -0
  437. package/cpp/skia/modules/svg/include/SkSVGIDMapper.h +19 -0
  438. package/cpp/skia/modules/svg/include/SkSVGImage.h +58 -0
  439. package/cpp/skia/modules/svg/include/SkSVGLine.h +42 -0
  440. package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +37 -0
  441. package/cpp/skia/modules/svg/include/SkSVGMask.h +43 -0
  442. package/cpp/skia/modules/svg/include/SkSVGNode.h +223 -0
  443. package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +32 -0
  444. package/cpp/skia/modules/svg/include/SkSVGPath.h +36 -0
  445. package/cpp/skia/modules/svg/include/SkSVGPattern.h +55 -0
  446. package/cpp/skia/modules/svg/include/SkSVGPoly.h +45 -0
  447. package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +38 -0
  448. package/cpp/skia/modules/svg/include/SkSVGRect.h +46 -0
  449. package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +188 -0
  450. package/cpp/skia/modules/svg/include/SkSVGSVG.h +54 -0
  451. package/cpp/skia/modules/svg/include/SkSVGShape.h +33 -0
  452. package/cpp/skia/modules/svg/include/SkSVGStop.h +34 -0
  453. package/cpp/skia/modules/svg/include/SkSVGText.h +122 -0
  454. package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +36 -0
  455. package/cpp/skia/modules/svg/include/SkSVGTypes.h +730 -0
  456. package/cpp/skia/modules/svg/include/SkSVGUse.h +42 -0
  457. package/cpp/skia/modules/svg/include/SkSVGValue.h +85 -0
  458. package/cpp/skia/readme.txt +1 -0
  459. package/cpp/utils/RNSkLog.h +80 -0
  460. package/cpp/utils/RNSkMeasureTime.h +32 -0
  461. package/cpp/utils/RNSkTimingInfo.h +103 -0
  462. package/ios/RNSkia-iOS/DisplayLink.h +17 -0
  463. package/ios/RNSkia-iOS/DisplayLink.mm +36 -0
  464. package/ios/RNSkia-iOS/PlatformContext.h +76 -0
  465. package/ios/RNSkia-iOS/PlatformContext.mm +52 -0
  466. package/ios/RNSkia-iOS/RNSkDrawViewImpl.h +52 -0
  467. package/ios/RNSkia-iOS/RNSkDrawViewImpl.mm +112 -0
  468. package/ios/RNSkia-iOS/SkiaDrawView.h +23 -0
  469. package/ios/RNSkia-iOS/SkiaDrawView.mm +169 -0
  470. package/ios/RNSkia-iOS/SkiaDrawViewManager.h +7 -0
  471. package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +42 -0
  472. package/ios/RNSkia-iOS/SkiaManager.h +17 -0
  473. package/ios/RNSkia-iOS/SkiaManager.mm +50 -0
  474. package/ios/RNSkiaModule.h +11 -0
  475. package/ios/RNSkiaModule.mm +42 -0
  476. package/ios/Rnskia.xcodeproj/project.pbxproj +281 -0
  477. package/ios/Rnskia.xcworkspace/contents.xcworkspacedata +7 -0
  478. package/jestSetup.js +5 -0
  479. package/lib/commonjs/animation/decay/decay.js +42 -0
  480. package/lib/commonjs/animation/decay/decay.js.map +1 -0
  481. package/lib/commonjs/animation/decay/index.js +14 -0
  482. package/lib/commonjs/animation/decay/index.js.map +1 -0
  483. package/lib/commonjs/animation/decay/runDecay.js +48 -0
  484. package/lib/commonjs/animation/decay/runDecay.js.map +1 -0
  485. package/lib/commonjs/animation/decay/types.js +6 -0
  486. package/lib/commonjs/animation/decay/types.js.map +1 -0
  487. package/lib/commonjs/animation/functions/index.js +58 -0
  488. package/lib/commonjs/animation/functions/index.js.map +1 -0
  489. package/lib/commonjs/animation/functions/interpolate.js +142 -0
  490. package/lib/commonjs/animation/functions/interpolate.js.map +1 -0
  491. package/lib/commonjs/animation/functions/interpolateColors.js +39 -0
  492. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -0
  493. package/lib/commonjs/animation/functions/interpolatePaths.js +79 -0
  494. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
  495. package/lib/commonjs/animation/functions/interpolateVector.js +20 -0
  496. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
  497. package/lib/commonjs/animation/index.js +58 -0
  498. package/lib/commonjs/animation/index.js.map +1 -0
  499. package/lib/commonjs/animation/spring/Spring.js +77 -0
  500. package/lib/commonjs/animation/spring/Spring.js.map +1 -0
  501. package/lib/commonjs/animation/spring/functions/index.js +14 -0
  502. package/lib/commonjs/animation/spring/functions/index.js.map +1 -0
  503. package/lib/commonjs/animation/spring/functions/spring.js +94 -0
  504. package/lib/commonjs/animation/spring/functions/spring.js.map +1 -0
  505. package/lib/commonjs/animation/spring/index.js +30 -0
  506. package/lib/commonjs/animation/spring/index.js.map +1 -0
  507. package/lib/commonjs/animation/spring/runSpring.js +32 -0
  508. package/lib/commonjs/animation/spring/runSpring.js.map +1 -0
  509. package/lib/commonjs/animation/spring/types.js +2 -0
  510. package/lib/commonjs/animation/spring/types.js.map +1 -0
  511. package/lib/commonjs/animation/spring/useSpring.js +24 -0
  512. package/lib/commonjs/animation/spring/useSpring.js.map +1 -0
  513. package/lib/commonjs/animation/timing/Easing.js +108 -0
  514. package/lib/commonjs/animation/timing/Easing.js.map +1 -0
  515. package/lib/commonjs/animation/timing/createTiming.js +59 -0
  516. package/lib/commonjs/animation/timing/createTiming.js.map +1 -0
  517. package/lib/commonjs/animation/timing/functions/bezier.js +147 -0
  518. package/lib/commonjs/animation/timing/functions/bezier.js.map +1 -0
  519. package/lib/commonjs/animation/timing/functions/getResolvedParams.js +56 -0
  520. package/lib/commonjs/animation/timing/functions/getResolvedParams.js.map +1 -0
  521. package/lib/commonjs/animation/timing/functions/index.js +54 -0
  522. package/lib/commonjs/animation/timing/functions/index.js.map +1 -0
  523. package/lib/commonjs/animation/timing/functions/timing.js +50 -0
  524. package/lib/commonjs/animation/timing/functions/timing.js.map +1 -0
  525. package/lib/commonjs/animation/timing/functions/types.js +2 -0
  526. package/lib/commonjs/animation/timing/functions/types.js.map +1 -0
  527. package/lib/commonjs/animation/timing/index.js +38 -0
  528. package/lib/commonjs/animation/timing/index.js.map +1 -0
  529. package/lib/commonjs/animation/timing/runTiming.js +33 -0
  530. package/lib/commonjs/animation/timing/runTiming.js.map +1 -0
  531. package/lib/commonjs/animation/timing/useLoop.js +22 -0
  532. package/lib/commonjs/animation/timing/useLoop.js.map +1 -0
  533. package/lib/commonjs/animation/timing/useTiming.js +66 -0
  534. package/lib/commonjs/animation/timing/useTiming.js.map +1 -0
  535. package/lib/commonjs/animation/types.js +2 -0
  536. package/lib/commonjs/animation/types.js.map +1 -0
  537. package/lib/commonjs/external/index.js +19 -0
  538. package/lib/commonjs/external/index.js.map +1 -0
  539. package/lib/commonjs/external/reanimated/index.js +19 -0
  540. package/lib/commonjs/external/reanimated/index.js.map +1 -0
  541. package/lib/commonjs/external/reanimated/useSharedValueEffect.js +86 -0
  542. package/lib/commonjs/external/reanimated/useSharedValueEffect.js.map +1 -0
  543. package/lib/commonjs/index.js +99 -0
  544. package/lib/commonjs/index.js.map +1 -0
  545. package/lib/commonjs/mock/index.js +134 -0
  546. package/lib/commonjs/mock/index.js.map +1 -0
  547. package/lib/commonjs/renderer/Canvas.js +163 -0
  548. package/lib/commonjs/renderer/Canvas.js.map +1 -0
  549. package/lib/commonjs/renderer/DependencyManager.js +70 -0
  550. package/lib/commonjs/renderer/DependencyManager.js.map +1 -0
  551. package/lib/commonjs/renderer/DrawingContext.js +6 -0
  552. package/lib/commonjs/renderer/DrawingContext.js.map +1 -0
  553. package/lib/commonjs/renderer/HostConfig.js +250 -0
  554. package/lib/commonjs/renderer/HostConfig.js.map +1 -0
  555. package/lib/commonjs/renderer/components/Blend.js +47 -0
  556. package/lib/commonjs/renderer/components/Blend.js.map +1 -0
  557. package/lib/commonjs/renderer/components/Compose.js +40 -0
  558. package/lib/commonjs/renderer/components/Compose.js.map +1 -0
  559. package/lib/commonjs/renderer/components/Drawing.js +31 -0
  560. package/lib/commonjs/renderer/components/Drawing.js.map +1 -0
  561. package/lib/commonjs/renderer/components/Group.js +85 -0
  562. package/lib/commonjs/renderer/components/Group.js.map +1 -0
  563. package/lib/commonjs/renderer/components/Mask.js +61 -0
  564. package/lib/commonjs/renderer/components/Mask.js.map +1 -0
  565. package/lib/commonjs/renderer/components/Paint.js +37 -0
  566. package/lib/commonjs/renderer/components/Paint.js.map +1 -0
  567. package/lib/commonjs/renderer/components/Picture.js +35 -0
  568. package/lib/commonjs/renderer/components/Picture.js.map +1 -0
  569. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +33 -0
  570. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -0
  571. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +54 -0
  572. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -0
  573. package/lib/commonjs/renderer/components/backdrop/index.js +32 -0
  574. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -0
  575. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +41 -0
  576. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -0
  577. package/lib/commonjs/renderer/components/colorFilters/Compose.js +24 -0
  578. package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -0
  579. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +39 -0
  580. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -0
  581. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +33 -0
  582. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
  583. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +33 -0
  584. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
  585. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +40 -0
  586. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -0
  587. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +33 -0
  588. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
  589. package/lib/commonjs/renderer/components/colorFilters/index.js +84 -0
  590. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -0
  591. package/lib/commonjs/renderer/components/image/BoxFit.js +160 -0
  592. package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -0
  593. package/lib/commonjs/renderer/components/image/Image.js +56 -0
  594. package/lib/commonjs/renderer/components/image/Image.js.map +1 -0
  595. package/lib/commonjs/renderer/components/image/ImageSVG.js +46 -0
  596. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -0
  597. package/lib/commonjs/renderer/components/image/ImageShader.js +85 -0
  598. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -0
  599. package/lib/commonjs/renderer/components/image/index.js +58 -0
  600. package/lib/commonjs/renderer/components/image/index.js.map +1 -0
  601. package/lib/commonjs/renderer/components/imageFilters/Blur.js +46 -0
  602. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -0
  603. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +54 -0
  604. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
  605. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +28 -0
  606. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -0
  607. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +44 -0
  608. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -0
  609. package/lib/commonjs/renderer/components/imageFilters/Offset.js +40 -0
  610. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -0
  611. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +44 -0
  612. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
  613. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +55 -0
  614. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -0
  615. package/lib/commonjs/renderer/components/imageFilters/getInput.js +33 -0
  616. package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -0
  617. package/lib/commonjs/renderer/components/imageFilters/index.js +84 -0
  618. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -0
  619. package/lib/commonjs/renderer/components/index.js +227 -0
  620. package/lib/commonjs/renderer/components/index.js.map +1 -0
  621. package/lib/commonjs/renderer/components/maskFilters/Blur.js +43 -0
  622. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -0
  623. package/lib/commonjs/renderer/components/maskFilters/index.js +19 -0
  624. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -0
  625. package/lib/commonjs/renderer/components/pathEffects/Corner.js +46 -0
  626. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -0
  627. package/lib/commonjs/renderer/components/pathEffects/Dash.js +43 -0
  628. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -0
  629. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +47 -0
  630. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -0
  631. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +47 -0
  632. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -0
  633. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +53 -0
  634. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -0
  635. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +49 -0
  636. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -0
  637. package/lib/commonjs/renderer/components/pathEffects/Sum.js +33 -0
  638. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -0
  639. package/lib/commonjs/renderer/components/pathEffects/index.js +97 -0
  640. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -0
  641. package/lib/commonjs/renderer/components/shaders/Color.js +35 -0
  642. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -0
  643. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +43 -0
  644. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -0
  645. package/lib/commonjs/renderer/components/shaders/Gradient.js +32 -0
  646. package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -0
  647. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +44 -0
  648. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -0
  649. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +44 -0
  650. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -0
  651. package/lib/commonjs/renderer/components/shaders/Shader.js +42 -0
  652. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -0
  653. package/lib/commonjs/renderer/components/shaders/ShaderLib.js +52 -0
  654. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -0
  655. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +45 -0
  656. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -0
  657. package/lib/commonjs/renderer/components/shaders/Turbulence.js +43 -0
  658. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -0
  659. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +46 -0
  660. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
  661. package/lib/commonjs/renderer/components/shaders/index.js +123 -0
  662. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -0
  663. package/lib/commonjs/renderer/components/shapes/Box.js +123 -0
  664. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -0
  665. package/lib/commonjs/renderer/components/shapes/Circle.js +44 -0
  666. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -0
  667. package/lib/commonjs/renderer/components/shapes/DiffRect.js +35 -0
  668. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -0
  669. package/lib/commonjs/renderer/components/shapes/Fill.js +31 -0
  670. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -0
  671. package/lib/commonjs/renderer/components/shapes/FitBox.js +42 -0
  672. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -0
  673. package/lib/commonjs/renderer/components/shapes/Line.js +35 -0
  674. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -0
  675. package/lib/commonjs/renderer/components/shapes/Oval.js +39 -0
  676. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -0
  677. package/lib/commonjs/renderer/components/shapes/Patch.js +53 -0
  678. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -0
  679. package/lib/commonjs/renderer/components/shapes/Path.js +67 -0
  680. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -0
  681. package/lib/commonjs/renderer/components/shapes/Points.js +45 -0
  682. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -0
  683. package/lib/commonjs/renderer/components/shapes/Rect.js +35 -0
  684. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -0
  685. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +38 -0
  686. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -0
  687. package/lib/commonjs/renderer/components/shapes/Vertices.js +55 -0
  688. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -0
  689. package/lib/commonjs/renderer/components/shapes/index.js +175 -0
  690. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -0
  691. package/lib/commonjs/renderer/components/text/Glyphs.js +61 -0
  692. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -0
  693. package/lib/commonjs/renderer/components/text/Text.js +46 -0
  694. package/lib/commonjs/renderer/components/text/Text.js.map +1 -0
  695. package/lib/commonjs/renderer/components/text/TextBlob.js +40 -0
  696. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -0
  697. package/lib/commonjs/renderer/components/text/TextPath.js +91 -0
  698. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -0
  699. package/lib/commonjs/renderer/components/text/index.js +58 -0
  700. package/lib/commonjs/renderer/components/text/index.js.map +1 -0
  701. package/lib/commonjs/renderer/index.js +71 -0
  702. package/lib/commonjs/renderer/index.js.map +1 -0
  703. package/lib/commonjs/renderer/nodes/Container.js +28 -0
  704. package/lib/commonjs/renderer/nodes/Container.js.map +1 -0
  705. package/lib/commonjs/renderer/nodes/Declaration.js +58 -0
  706. package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -0
  707. package/lib/commonjs/renderer/nodes/Drawing.js +60 -0
  708. package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -0
  709. package/lib/commonjs/renderer/nodes/Node.js +71 -0
  710. package/lib/commonjs/renderer/nodes/Node.js.map +1 -0
  711. package/lib/commonjs/renderer/nodes/index.js +58 -0
  712. package/lib/commonjs/renderer/nodes/index.js.map +1 -0
  713. package/lib/commonjs/renderer/processors/Animations/Animations.js +52 -0
  714. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -0
  715. package/lib/commonjs/renderer/processors/Animations/index.js +19 -0
  716. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -0
  717. package/lib/commonjs/renderer/processors/Circles.js +24 -0
  718. package/lib/commonjs/renderer/processors/Circles.js.map +1 -0
  719. package/lib/commonjs/renderer/processors/Clips.js +24 -0
  720. package/lib/commonjs/renderer/processors/Clips.js.map +1 -0
  721. package/lib/commonjs/renderer/processors/Color.js +27 -0
  722. package/lib/commonjs/renderer/processors/Color.js.map +1 -0
  723. package/lib/commonjs/renderer/processors/Font.js +39 -0
  724. package/lib/commonjs/renderer/processors/Font.js.map +1 -0
  725. package/lib/commonjs/renderer/processors/Paint.js +98 -0
  726. package/lib/commonjs/renderer/processors/Paint.js.map +1 -0
  727. package/lib/commonjs/renderer/processors/Paths.js +26 -0
  728. package/lib/commonjs/renderer/processors/Paths.js.map +1 -0
  729. package/lib/commonjs/renderer/processors/Radius.js +17 -0
  730. package/lib/commonjs/renderer/processors/Radius.js.map +1 -0
  731. package/lib/commonjs/renderer/processors/Rects.js +41 -0
  732. package/lib/commonjs/renderer/processors/Rects.js.map +1 -0
  733. package/lib/commonjs/renderer/processors/Transform.js +65 -0
  734. package/lib/commonjs/renderer/processors/Transform.js.map +1 -0
  735. package/lib/commonjs/renderer/processors/index.js +149 -0
  736. package/lib/commonjs/renderer/processors/index.js.map +1 -0
  737. package/lib/commonjs/renderer/processors/math/Coordinates.js +43 -0
  738. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -0
  739. package/lib/commonjs/renderer/processors/math/Math.js +29 -0
  740. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -0
  741. package/lib/commonjs/renderer/processors/math/Transforms.js +22 -0
  742. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -0
  743. package/lib/commonjs/renderer/processors/math/index.js +45 -0
  744. package/lib/commonjs/renderer/processors/math/index.js.map +1 -0
  745. package/lib/commonjs/renderer/typeddash.js +41 -0
  746. package/lib/commonjs/renderer/typeddash.js.map +1 -0
  747. package/lib/commonjs/renderer/useCanvas.js +30 -0
  748. package/lib/commonjs/renderer/useCanvas.js.map +1 -0
  749. package/lib/commonjs/renderer/useContextBridge.js +35 -0
  750. package/lib/commonjs/renderer/useContextBridge.js.map +1 -0
  751. package/lib/commonjs/skia/NativeSetup.js +19 -0
  752. package/lib/commonjs/skia/NativeSetup.js.map +1 -0
  753. package/lib/commonjs/skia/Skia.js +15 -0
  754. package/lib/commonjs/skia/Skia.js.map +1 -0
  755. package/lib/commonjs/skia/Skia.web.js +12 -0
  756. package/lib/commonjs/skia/Skia.web.js.map +1 -0
  757. package/lib/commonjs/skia/core/Data.js +69 -0
  758. package/lib/commonjs/skia/core/Data.js.map +1 -0
  759. package/lib/commonjs/skia/core/Font.js +34 -0
  760. package/lib/commonjs/skia/core/Font.js.map +1 -0
  761. package/lib/commonjs/skia/core/Image.js +18 -0
  762. package/lib/commonjs/skia/core/Image.js.map +1 -0
  763. package/lib/commonjs/skia/core/Matrix.js +15 -0
  764. package/lib/commonjs/skia/core/Matrix.js.map +1 -0
  765. package/lib/commonjs/skia/core/Paint.js +28 -0
  766. package/lib/commonjs/skia/core/Paint.js.map +1 -0
  767. package/lib/commonjs/skia/core/Path.js +72 -0
  768. package/lib/commonjs/skia/core/Path.js.map +1 -0
  769. package/lib/commonjs/skia/core/Picture.js +30 -0
  770. package/lib/commonjs/skia/core/Picture.js.map +1 -0
  771. package/lib/commonjs/skia/core/RRect.js +13 -0
  772. package/lib/commonjs/skia/core/RRect.js.map +1 -0
  773. package/lib/commonjs/skia/core/Rect.js +47 -0
  774. package/lib/commonjs/skia/core/Rect.js.map +1 -0
  775. package/lib/commonjs/skia/core/SVG.js +15 -0
  776. package/lib/commonjs/skia/core/SVG.js.map +1 -0
  777. package/lib/commonjs/skia/core/Typeface.js +18 -0
  778. package/lib/commonjs/skia/core/Typeface.js.map +1 -0
  779. package/lib/commonjs/skia/core/Vector.js +49 -0
  780. package/lib/commonjs/skia/core/Vector.js.map +1 -0
  781. package/lib/commonjs/skia/core/index.js +162 -0
  782. package/lib/commonjs/skia/core/index.js.map +1 -0
  783. package/lib/commonjs/skia/index.js +45 -0
  784. package/lib/commonjs/skia/index.js.map +1 -0
  785. package/lib/commonjs/skia/types/Canvas.js +22 -0
  786. package/lib/commonjs/skia/types/Canvas.js.map +1 -0
  787. package/lib/commonjs/skia/types/Color.js +2 -0
  788. package/lib/commonjs/skia/types/Color.js.map +1 -0
  789. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +11 -0
  790. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -0
  791. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js +6 -0
  792. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -0
  793. package/lib/commonjs/skia/types/ColorFilter/index.js +32 -0
  794. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -0
  795. package/lib/commonjs/skia/types/ContourMeasure.js +6 -0
  796. package/lib/commonjs/skia/types/ContourMeasure.js.map +1 -0
  797. package/lib/commonjs/skia/types/Data/Data.js +6 -0
  798. package/lib/commonjs/skia/types/Data/Data.js.map +1 -0
  799. package/lib/commonjs/skia/types/Data/DataFactory.js +6 -0
  800. package/lib/commonjs/skia/types/Data/DataFactory.js.map +1 -0
  801. package/lib/commonjs/skia/types/Data/index.js +32 -0
  802. package/lib/commonjs/skia/types/Data/index.js.map +1 -0
  803. package/lib/commonjs/skia/types/Font/Font.js +81 -0
  804. package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
  805. package/lib/commonjs/skia/types/Font/index.js +19 -0
  806. package/lib/commonjs/skia/types/Font/index.js.map +1 -0
  807. package/lib/commonjs/skia/types/FontMgr/FontMgr.js +6 -0
  808. package/lib/commonjs/skia/types/FontMgr/FontMgr.js.map +1 -0
  809. package/lib/commonjs/skia/types/FontMgr/FontMgrFactory.js +6 -0
  810. package/lib/commonjs/skia/types/FontMgr/FontMgrFactory.js.map +1 -0
  811. package/lib/commonjs/skia/types/FontMgr/index.js +32 -0
  812. package/lib/commonjs/skia/types/FontMgr/index.js.map +1 -0
  813. package/lib/commonjs/skia/types/Image/Image.js +32 -0
  814. package/lib/commonjs/skia/types/Image/Image.js.map +1 -0
  815. package/lib/commonjs/skia/types/Image/ImageFactory.js +46 -0
  816. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -0
  817. package/lib/commonjs/skia/types/Image/index.js +32 -0
  818. package/lib/commonjs/skia/types/Image/index.js.map +1 -0
  819. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +20 -0
  820. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -0
  821. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +16 -0
  822. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  823. package/lib/commonjs/skia/types/ImageFilter/index.js +32 -0
  824. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -0
  825. package/lib/commonjs/skia/types/JsiInstance.js +2 -0
  826. package/lib/commonjs/skia/types/JsiInstance.js.map +1 -0
  827. package/lib/commonjs/skia/types/MaskFilter.js +20 -0
  828. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
  829. package/lib/commonjs/skia/types/Matrix.js +78 -0
  830. package/lib/commonjs/skia/types/Matrix.js.map +1 -0
  831. package/lib/commonjs/skia/types/Paint/BlendMode.js +69 -0
  832. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -0
  833. package/lib/commonjs/skia/types/Paint/Paint.js +36 -0
  834. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
  835. package/lib/commonjs/skia/types/Paint/index.js +32 -0
  836. package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
  837. package/lib/commonjs/skia/types/Path/Path.js +47 -0
  838. package/lib/commonjs/skia/types/Path/Path.js.map +1 -0
  839. package/lib/commonjs/skia/types/Path/PathFactory.js +6 -0
  840. package/lib/commonjs/skia/types/Path/PathFactory.js.map +1 -0
  841. package/lib/commonjs/skia/types/Path/index.js +32 -0
  842. package/lib/commonjs/skia/types/Path/index.js.map +1 -0
  843. package/lib/commonjs/skia/types/PathEffect.js +19 -0
  844. package/lib/commonjs/skia/types/PathEffect.js.map +1 -0
  845. package/lib/commonjs/skia/types/Picture/Picture.js +6 -0
  846. package/lib/commonjs/skia/types/Picture/Picture.js.map +1 -0
  847. package/lib/commonjs/skia/types/Picture/PictureFactory.js +6 -0
  848. package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -0
  849. package/lib/commonjs/skia/types/Picture/PictureRecorder.js +6 -0
  850. package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -0
  851. package/lib/commonjs/skia/types/Picture/index.js +45 -0
  852. package/lib/commonjs/skia/types/Picture/index.js.map +1 -0
  853. package/lib/commonjs/skia/types/Point.js +15 -0
  854. package/lib/commonjs/skia/types/Point.js.map +1 -0
  855. package/lib/commonjs/skia/types/RRect.js +13 -0
  856. package/lib/commonjs/skia/types/RRect.js.map +1 -0
  857. package/lib/commonjs/skia/types/RSXform.js +6 -0
  858. package/lib/commonjs/skia/types/RSXform.js.map +1 -0
  859. package/lib/commonjs/skia/types/Rect.js +2 -0
  860. package/lib/commonjs/skia/types/Rect.js.map +1 -0
  861. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js +6 -0
  862. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -0
  863. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js +6 -0
  864. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
  865. package/lib/commonjs/skia/types/RuntimeEffect/index.js +32 -0
  866. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -0
  867. package/lib/commonjs/skia/types/SVG/SVG.js +6 -0
  868. package/lib/commonjs/skia/types/SVG/SVG.js.map +1 -0
  869. package/lib/commonjs/skia/types/SVG/SVGFactory.js +6 -0
  870. package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -0
  871. package/lib/commonjs/skia/types/SVG/index.js +32 -0
  872. package/lib/commonjs/skia/types/SVG/index.js.map +1 -0
  873. package/lib/commonjs/skia/types/Shader/Shader.js +55 -0
  874. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -0
  875. package/lib/commonjs/skia/types/Shader/ShaderFactory.js +6 -0
  876. package/lib/commonjs/skia/types/Shader/ShaderFactory.js.map +1 -0
  877. package/lib/commonjs/skia/types/Shader/index.js +32 -0
  878. package/lib/commonjs/skia/types/Shader/index.js.map +1 -0
  879. package/lib/commonjs/skia/types/Skia.js +6 -0
  880. package/lib/commonjs/skia/types/Skia.js.map +1 -0
  881. package/lib/commonjs/skia/types/Surface/Surface.js +6 -0
  882. package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -0
  883. package/lib/commonjs/skia/types/Surface/SurfaceFactory.js +6 -0
  884. package/lib/commonjs/skia/types/Surface/SurfaceFactory.js.map +1 -0
  885. package/lib/commonjs/skia/types/Surface/index.js +32 -0
  886. package/lib/commonjs/skia/types/Surface/index.js.map +1 -0
  887. package/lib/commonjs/skia/types/TextBlob.js +6 -0
  888. package/lib/commonjs/skia/types/TextBlob.js.map +1 -0
  889. package/lib/commonjs/skia/types/Typeface/Typeface.js +6 -0
  890. package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -0
  891. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js +6 -0
  892. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js.map +1 -0
  893. package/lib/commonjs/skia/types/Typeface/index.js +32 -0
  894. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
  895. package/lib/commonjs/skia/types/Vertices/Vertices.js +15 -0
  896. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -0
  897. package/lib/commonjs/skia/types/Vertices/index.js +19 -0
  898. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -0
  899. package/lib/commonjs/skia/types/index.js +370 -0
  900. package/lib/commonjs/skia/types/index.js.map +1 -0
  901. package/lib/commonjs/skia/web/Host.js +75 -0
  902. package/lib/commonjs/skia/web/Host.js.map +1 -0
  903. package/lib/commonjs/skia/web/JsiSkCanvas.js +184 -0
  904. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
  905. package/lib/commonjs/skia/web/JsiSkColor.js +339 -0
  906. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
  907. package/lib/commonjs/skia/web/JsiSkColorFilter.js +18 -0
  908. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -0
  909. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +48 -0
  910. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  911. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +42 -0
  912. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
  913. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +30 -0
  914. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  915. package/lib/commonjs/skia/web/JsiSkData.js +18 -0
  916. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
  917. package/lib/commonjs/skia/web/JsiSkDataFactory.js +44 -0
  918. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
  919. package/lib/commonjs/skia/web/JsiSkFont.js +119 -0
  920. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
  921. package/lib/commonjs/skia/web/JsiSkFontMgr.js +33 -0
  922. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
  923. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +25 -0
  924. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  925. package/lib/commonjs/skia/web/JsiSkImage.js +60 -0
  926. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -0
  927. package/lib/commonjs/skia/web/JsiSkImageFactory.js +47 -0
  928. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
  929. package/lib/commonjs/skia/web/JsiSkImageFilter.js +18 -0
  930. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
  931. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +68 -0
  932. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -0
  933. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +18 -0
  934. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
  935. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +24 -0
  936. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  937. package/lib/commonjs/skia/web/JsiSkMatrix.js +38 -0
  938. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
  939. package/lib/commonjs/skia/web/JsiSkPaint.js +101 -0
  940. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
  941. package/lib/commonjs/skia/web/JsiSkPath.js +337 -0
  942. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
  943. package/lib/commonjs/skia/web/JsiSkPathEffect.js +18 -0
  944. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
  945. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +78 -0
  946. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  947. package/lib/commonjs/skia/web/JsiSkPathFactory.js +58 -0
  948. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -0
  949. package/lib/commonjs/skia/web/JsiSkPicture.js +29 -0
  950. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -0
  951. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +30 -0
  952. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
  953. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +30 -0
  954. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
  955. package/lib/commonjs/skia/web/JsiSkPoint.js +26 -0
  956. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
  957. package/lib/commonjs/skia/web/JsiSkRRect.js +32 -0
  958. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
  959. package/lib/commonjs/skia/web/JsiSkRSXform.js +18 -0
  960. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
  961. package/lib/commonjs/skia/web/JsiSkRect.js +42 -0
  962. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -0
  963. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +44 -0
  964. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  965. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +30 -0
  966. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  967. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +26 -0
  968. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
  969. package/lib/commonjs/skia/web/JsiSkShader.js +18 -0
  970. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
  971. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +52 -0
  972. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
  973. package/lib/commonjs/skia/web/JsiSkSurface.js +31 -0
  974. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -0
  975. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +30 -0
  976. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -0
  977. package/lib/commonjs/skia/web/JsiSkTextBlob.js +18 -0
  978. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
  979. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +36 -0
  980. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  981. package/lib/commonjs/skia/web/JsiSkTypeface.js +28 -0
  982. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
  983. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +30 -0
  984. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  985. package/lib/commonjs/skia/web/JsiSkVertices.js +28 -0
  986. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
  987. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +49 -0
  988. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
  989. package/lib/commonjs/skia/web/JsiSkia.js +97 -0
  990. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
  991. package/lib/commonjs/skia/web/index.js +19 -0
  992. package/lib/commonjs/skia/web/index.js.map +1 -0
  993. package/lib/commonjs/values/api.js +12 -0
  994. package/lib/commonjs/values/api.js.map +1 -0
  995. package/lib/commonjs/values/api.web.js +18 -0
  996. package/lib/commonjs/values/api.web.js.map +1 -0
  997. package/lib/commonjs/values/hooks/index.js +58 -0
  998. package/lib/commonjs/values/hooks/index.js.map +1 -0
  999. package/lib/commonjs/values/hooks/useClockValue.js +27 -0
  1000. package/lib/commonjs/values/hooks/useClockValue.js.map +1 -0
  1001. package/lib/commonjs/values/hooks/useComputedValue.js +32 -0
  1002. package/lib/commonjs/values/hooks/useComputedValue.js.map +1 -0
  1003. package/lib/commonjs/values/hooks/useValue.js +23 -0
  1004. package/lib/commonjs/values/hooks/useValue.js.map +1 -0
  1005. package/lib/commonjs/values/hooks/useValueEffect.js +22 -0
  1006. package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -0
  1007. package/lib/commonjs/values/index.js +45 -0
  1008. package/lib/commonjs/values/index.js.map +1 -0
  1009. package/lib/commonjs/values/types.js +2 -0
  1010. package/lib/commonjs/values/types.js.map +1 -0
  1011. package/lib/commonjs/values/web/RNSkAnimation.js +46 -0
  1012. package/lib/commonjs/values/web/RNSkAnimation.js.map +1 -0
  1013. package/lib/commonjs/values/web/RNSkClockValue.js +75 -0
  1014. package/lib/commonjs/values/web/RNSkClockValue.js.map +1 -0
  1015. package/lib/commonjs/values/web/RNSkComputedValue.js +51 -0
  1016. package/lib/commonjs/values/web/RNSkComputedValue.js.map +1 -0
  1017. package/lib/commonjs/values/web/RNSkReadonlyValue.js +45 -0
  1018. package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -0
  1019. package/lib/commonjs/values/web/RNSkValue.js +73 -0
  1020. package/lib/commonjs/values/web/RNSkValue.js.map +1 -0
  1021. package/lib/commonjs/values/web/api.js +31 -0
  1022. package/lib/commonjs/values/web/api.js.map +1 -0
  1023. package/lib/commonjs/values/web/index.js +19 -0
  1024. package/lib/commonjs/values/web/index.js.map +1 -0
  1025. package/lib/commonjs/views/SkiaView.js +128 -0
  1026. package/lib/commonjs/views/SkiaView.js.map +1 -0
  1027. package/lib/commonjs/views/SkiaView.web.js +216 -0
  1028. package/lib/commonjs/views/SkiaView.web.js.map +1 -0
  1029. package/lib/commonjs/views/api.js +11 -0
  1030. package/lib/commonjs/views/api.js.map +1 -0
  1031. package/lib/commonjs/views/index.js +58 -0
  1032. package/lib/commonjs/views/index.js.map +1 -0
  1033. package/lib/commonjs/views/types.js +16 -0
  1034. package/lib/commonjs/views/types.js.map +1 -0
  1035. package/lib/commonjs/views/useDrawCallback.js +23 -0
  1036. package/lib/commonjs/views/useDrawCallback.js.map +1 -0
  1037. package/lib/commonjs/views/useTouchHandler.js +99 -0
  1038. package/lib/commonjs/views/useTouchHandler.js.map +1 -0
  1039. package/lib/commonjs/web/index.js +22 -0
  1040. package/lib/commonjs/web/index.js.map +1 -0
  1041. package/lib/module/animation/decay/decay.js +33 -0
  1042. package/lib/module/animation/decay/decay.js.map +1 -0
  1043. package/lib/module/animation/decay/index.js +2 -0
  1044. package/lib/module/animation/decay/index.js.map +1 -0
  1045. package/lib/module/animation/decay/runDecay.js +38 -0
  1046. package/lib/module/animation/decay/runDecay.js.map +1 -0
  1047. package/lib/module/animation/decay/types.js +2 -0
  1048. package/lib/module/animation/decay/types.js.map +1 -0
  1049. package/lib/module/animation/functions/index.js +5 -0
  1050. package/lib/module/animation/functions/index.js.map +1 -0
  1051. package/lib/module/animation/functions/interpolate.js +132 -0
  1052. package/lib/module/animation/functions/interpolate.js.map +1 -0
  1053. package/lib/module/animation/functions/interpolateColors.js +23 -0
  1054. package/lib/module/animation/functions/interpolateColors.js.map +1 -0
  1055. package/lib/module/animation/functions/interpolatePaths.js +69 -0
  1056. package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
  1057. package/lib/module/animation/functions/interpolateVector.js +7 -0
  1058. package/lib/module/animation/functions/interpolateVector.js.map +1 -0
  1059. package/lib/module/animation/index.js +5 -0
  1060. package/lib/module/animation/index.js.map +1 -0
  1061. package/lib/module/animation/spring/Spring.js +69 -0
  1062. package/lib/module/animation/spring/Spring.js.map +1 -0
  1063. package/lib/module/animation/spring/functions/index.js +2 -0
  1064. package/lib/module/animation/spring/functions/index.js.map +1 -0
  1065. package/lib/module/animation/spring/functions/spring.js +85 -0
  1066. package/lib/module/animation/spring/functions/spring.js.map +1 -0
  1067. package/lib/module/animation/spring/index.js +4 -0
  1068. package/lib/module/animation/spring/index.js.map +1 -0
  1069. package/lib/module/animation/spring/runSpring.js +21 -0
  1070. package/lib/module/animation/spring/runSpring.js.map +1 -0
  1071. package/lib/module/animation/spring/types.js +2 -0
  1072. package/lib/module/animation/spring/types.js.map +1 -0
  1073. package/lib/module/animation/spring/useSpring.js +13 -0
  1074. package/lib/module/animation/spring/useSpring.js.map +1 -0
  1075. package/lib/module/animation/timing/Easing.js +98 -0
  1076. package/lib/module/animation/timing/Easing.js.map +1 -0
  1077. package/lib/module/animation/timing/createTiming.js +49 -0
  1078. package/lib/module/animation/timing/createTiming.js.map +1 -0
  1079. package/lib/module/animation/timing/functions/bezier.js +141 -0
  1080. package/lib/module/animation/timing/functions/bezier.js.map +1 -0
  1081. package/lib/module/animation/timing/functions/getResolvedParams.js +48 -0
  1082. package/lib/module/animation/timing/functions/getResolvedParams.js.map +1 -0
  1083. package/lib/module/animation/timing/functions/index.js +5 -0
  1084. package/lib/module/animation/timing/functions/index.js.map +1 -0
  1085. package/lib/module/animation/timing/functions/timing.js +41 -0
  1086. package/lib/module/animation/timing/functions/timing.js.map +1 -0
  1087. package/lib/module/animation/timing/functions/types.js +2 -0
  1088. package/lib/module/animation/timing/functions/types.js.map +1 -0
  1089. package/lib/module/animation/timing/index.js +5 -0
  1090. package/lib/module/animation/timing/index.js.map +1 -0
  1091. package/lib/module/animation/timing/runTiming.js +23 -0
  1092. package/lib/module/animation/timing/runTiming.js.map +1 -0
  1093. package/lib/module/animation/timing/useLoop.js +13 -0
  1094. package/lib/module/animation/timing/useLoop.js.map +1 -0
  1095. package/lib/module/animation/timing/useTiming.js +54 -0
  1096. package/lib/module/animation/timing/useTiming.js.map +1 -0
  1097. package/lib/module/animation/types.js +2 -0
  1098. package/lib/module/animation/types.js.map +1 -0
  1099. package/lib/module/external/index.js +2 -0
  1100. package/lib/module/external/index.js.map +1 -0
  1101. package/lib/module/external/reanimated/index.js +2 -0
  1102. package/lib/module/external/reanimated/index.js.map +1 -0
  1103. package/lib/module/external/reanimated/useSharedValueEffect.js +81 -0
  1104. package/lib/module/external/reanimated/useSharedValueEffect.js.map +1 -0
  1105. package/lib/module/index.js +9 -0
  1106. package/lib/module/index.js.map +1 -0
  1107. package/lib/module/mock/index.js +108 -0
  1108. package/lib/module/mock/index.js.map +1 -0
  1109. package/lib/module/renderer/Canvas.js +131 -0
  1110. package/lib/module/renderer/Canvas.js.map +1 -0
  1111. package/lib/module/renderer/DependencyManager.js +60 -0
  1112. package/lib/module/renderer/DependencyManager.js.map +1 -0
  1113. package/lib/module/renderer/DrawingContext.js +2 -0
  1114. package/lib/module/renderer/DrawingContext.js.map +1 -0
  1115. package/lib/module/renderer/HostConfig.js +237 -0
  1116. package/lib/module/renderer/HostConfig.js.map +1 -0
  1117. package/lib/module/renderer/components/Blend.js +30 -0
  1118. package/lib/module/renderer/components/Blend.js.map +1 -0
  1119. package/lib/module/renderer/components/Compose.js +25 -0
  1120. package/lib/module/renderer/components/Compose.js.map +1 -0
  1121. package/lib/module/renderer/components/Drawing.js +17 -0
  1122. package/lib/module/renderer/components/Drawing.js.map +1 -0
  1123. package/lib/module/renderer/components/Group.js +69 -0
  1124. package/lib/module/renderer/components/Group.js.map +1 -0
  1125. package/lib/module/renderer/components/Mask.js +44 -0
  1126. package/lib/module/renderer/components/Mask.js.map +1 -0
  1127. package/lib/module/renderer/components/Paint.js +19 -0
  1128. package/lib/module/renderer/components/Paint.js.map +1 -0
  1129. package/lib/module/renderer/components/Picture.js +21 -0
  1130. package/lib/module/renderer/components/Picture.js.map +1 -0
  1131. package/lib/module/renderer/components/backdrop/BackdropBlur.js +19 -0
  1132. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -0
  1133. package/lib/module/renderer/components/backdrop/BackdropFilter.js +39 -0
  1134. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -0
  1135. package/lib/module/renderer/components/backdrop/index.js +3 -0
  1136. package/lib/module/renderer/components/backdrop/index.js.map +1 -0
  1137. package/lib/module/renderer/components/colorFilters/BlendColor.js +24 -0
  1138. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -0
  1139. package/lib/module/renderer/components/colorFilters/Compose.js +14 -0
  1140. package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -0
  1141. package/lib/module/renderer/components/colorFilters/Lerp.js +23 -0
  1142. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -0
  1143. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +19 -0
  1144. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
  1145. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +19 -0
  1146. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
  1147. package/lib/module/renderer/components/colorFilters/Matrix.js +22 -0
  1148. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -0
  1149. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +19 -0
  1150. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
  1151. package/lib/module/renderer/components/colorFilters/index.js +7 -0
  1152. package/lib/module/renderer/components/colorFilters/index.js.map +1 -0
  1153. package/lib/module/renderer/components/image/BoxFit.js +144 -0
  1154. package/lib/module/renderer/components/image/BoxFit.js.map +1 -0
  1155. package/lib/module/renderer/components/image/Image.js +40 -0
  1156. package/lib/module/renderer/components/image/Image.js.map +1 -0
  1157. package/lib/module/renderer/components/image/ImageSVG.js +31 -0
  1158. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -0
  1159. package/lib/module/renderer/components/image/ImageShader.js +69 -0
  1160. package/lib/module/renderer/components/image/ImageShader.js.map +1 -0
  1161. package/lib/module/renderer/components/image/index.js +5 -0
  1162. package/lib/module/renderer/components/image/index.js.map +1 -0
  1163. package/lib/module/renderer/components/imageFilters/Blur.js +28 -0
  1164. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -0
  1165. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +34 -0
  1166. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
  1167. package/lib/module/renderer/components/imageFilters/InnerShadow.js +17 -0
  1168. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -0
  1169. package/lib/module/renderer/components/imageFilters/Morphology.js +28 -0
  1170. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -0
  1171. package/lib/module/renderer/components/imageFilters/Offset.js +25 -0
  1172. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -0
  1173. package/lib/module/renderer/components/imageFilters/RuntimeShader.js +28 -0
  1174. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
  1175. package/lib/module/renderer/components/imageFilters/Shadow.js +38 -0
  1176. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -0
  1177. package/lib/module/renderer/components/imageFilters/getInput.js +23 -0
  1178. package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -0
  1179. package/lib/module/renderer/components/imageFilters/index.js +7 -0
  1180. package/lib/module/renderer/components/imageFilters/index.js.map +1 -0
  1181. package/lib/module/renderer/components/index.js +18 -0
  1182. package/lib/module/renderer/components/index.js.map +1 -0
  1183. package/lib/module/renderer/components/maskFilters/Blur.js +27 -0
  1184. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -0
  1185. package/lib/module/renderer/components/maskFilters/index.js +2 -0
  1186. package/lib/module/renderer/components/maskFilters/index.js.map +1 -0
  1187. package/lib/module/renderer/components/pathEffects/Corner.js +31 -0
  1188. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -0
  1189. package/lib/module/renderer/components/pathEffects/Dash.js +28 -0
  1190. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -0
  1191. package/lib/module/renderer/components/pathEffects/Discrete.js +32 -0
  1192. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -0
  1193. package/lib/module/renderer/components/pathEffects/Line2D.js +32 -0
  1194. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -0
  1195. package/lib/module/renderer/components/pathEffects/Path1D.js +36 -0
  1196. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -0
  1197. package/lib/module/renderer/components/pathEffects/Path2D.js +33 -0
  1198. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -0
  1199. package/lib/module/renderer/components/pathEffects/Sum.js +18 -0
  1200. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -0
  1201. package/lib/module/renderer/components/pathEffects/index.js +8 -0
  1202. package/lib/module/renderer/components/pathEffects/index.js.map +1 -0
  1203. package/lib/module/renderer/components/shaders/Color.js +20 -0
  1204. package/lib/module/renderer/components/shaders/Color.js.map +1 -0
  1205. package/lib/module/renderer/components/shaders/FractalNoise.js +29 -0
  1206. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -0
  1207. package/lib/module/renderer/components/shaders/Gradient.js +20 -0
  1208. package/lib/module/renderer/components/shaders/Gradient.js.map +1 -0
  1209. package/lib/module/renderer/components/shaders/LinearGradient.js +29 -0
  1210. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -0
  1211. package/lib/module/renderer/components/shaders/RadialGradient.js +29 -0
  1212. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -0
  1213. package/lib/module/renderer/components/shaders/Shader.js +26 -0
  1214. package/lib/module/renderer/components/shaders/Shader.js.map +1 -0
  1215. package/lib/module/renderer/components/shaders/ShaderLib.js +45 -0
  1216. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -0
  1217. package/lib/module/renderer/components/shaders/SweepGradient.js +30 -0
  1218. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -0
  1219. package/lib/module/renderer/components/shaders/Turbulence.js +29 -0
  1220. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -0
  1221. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +31 -0
  1222. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
  1223. package/lib/module/renderer/components/shaders/index.js +10 -0
  1224. package/lib/module/renderer/components/shaders/index.js.map +1 -0
  1225. package/lib/module/renderer/components/shapes/Box.js +103 -0
  1226. package/lib/module/renderer/components/shapes/Box.js.map +1 -0
  1227. package/lib/module/renderer/components/shapes/Circle.js +29 -0
  1228. package/lib/module/renderer/components/shapes/Circle.js.map +1 -0
  1229. package/lib/module/renderer/components/shapes/DiffRect.js +21 -0
  1230. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -0
  1231. package/lib/module/renderer/components/shapes/Fill.js +17 -0
  1232. package/lib/module/renderer/components/shapes/Fill.js.map +1 -0
  1233. package/lib/module/renderer/components/shapes/FitBox.js +23 -0
  1234. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -0
  1235. package/lib/module/renderer/components/shapes/Line.js +21 -0
  1236. package/lib/module/renderer/components/shapes/Line.js.map +1 -0
  1237. package/lib/module/renderer/components/shapes/Oval.js +24 -0
  1238. package/lib/module/renderer/components/shapes/Oval.js.map +1 -0
  1239. package/lib/module/renderer/components/shapes/Patch.js +36 -0
  1240. package/lib/module/renderer/components/shapes/Patch.js.map +1 -0
  1241. package/lib/module/renderer/components/shapes/Path.js +51 -0
  1242. package/lib/module/renderer/components/shapes/Path.js.map +1 -0
  1243. package/lib/module/renderer/components/shapes/Points.js +27 -0
  1244. package/lib/module/renderer/components/shapes/Points.js.map +1 -0
  1245. package/lib/module/renderer/components/shapes/Rect.js +20 -0
  1246. package/lib/module/renderer/components/shapes/Rect.js.map +1 -0
  1247. package/lib/module/renderer/components/shapes/RoundedRect.js +23 -0
  1248. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -0
  1249. package/lib/module/renderer/components/shapes/Vertices.js +38 -0
  1250. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -0
  1251. package/lib/module/renderer/components/shapes/index.js +14 -0
  1252. package/lib/module/renderer/components/shapes/index.js.map +1 -0
  1253. package/lib/module/renderer/components/text/Glyphs.js +46 -0
  1254. package/lib/module/renderer/components/text/Glyphs.js.map +1 -0
  1255. package/lib/module/renderer/components/text/Text.js +31 -0
  1256. package/lib/module/renderer/components/text/Text.js.map +1 -0
  1257. package/lib/module/renderer/components/text/TextBlob.js +26 -0
  1258. package/lib/module/renderer/components/text/TextBlob.js.map +1 -0
  1259. package/lib/module/renderer/components/text/TextPath.js +76 -0
  1260. package/lib/module/renderer/components/text/TextPath.js.map +1 -0
  1261. package/lib/module/renderer/components/text/index.js +5 -0
  1262. package/lib/module/renderer/components/text/index.js.map +1 -0
  1263. package/lib/module/renderer/index.js +6 -0
  1264. package/lib/module/renderer/index.js.map +1 -0
  1265. package/lib/module/renderer/nodes/Container.js +18 -0
  1266. package/lib/module/renderer/nodes/Container.js.map +1 -0
  1267. package/lib/module/renderer/nodes/Declaration.js +37 -0
  1268. package/lib/module/renderer/nodes/Declaration.js.map +1 -0
  1269. package/lib/module/renderer/nodes/Drawing.js +40 -0
  1270. package/lib/module/renderer/nodes/Drawing.js.map +1 -0
  1271. package/lib/module/renderer/nodes/Node.js +61 -0
  1272. package/lib/module/renderer/nodes/Node.js.map +1 -0
  1273. package/lib/module/renderer/nodes/index.js +5 -0
  1274. package/lib/module/renderer/nodes/index.js.map +1 -0
  1275. package/lib/module/renderer/processors/Animations/Animations.js +36 -0
  1276. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -0
  1277. package/lib/module/renderer/processors/Animations/index.js +2 -0
  1278. package/lib/module/renderer/processors/Animations/index.js.map +1 -0
  1279. package/lib/module/renderer/processors/Circles.js +15 -0
  1280. package/lib/module/renderer/processors/Circles.js.map +1 -0
  1281. package/lib/module/renderer/processors/Clips.js +13 -0
  1282. package/lib/module/renderer/processors/Clips.js.map +1 -0
  1283. package/lib/module/renderer/processors/Color.js +11 -0
  1284. package/lib/module/renderer/processors/Color.js.map +1 -0
  1285. package/lib/module/renderer/processors/Font.js +27 -0
  1286. package/lib/module/renderer/processors/Font.js.map +1 -0
  1287. package/lib/module/renderer/processors/Paint.js +84 -0
  1288. package/lib/module/renderer/processors/Paint.js.map +1 -0
  1289. package/lib/module/renderer/processors/Paths.js +13 -0
  1290. package/lib/module/renderer/processors/Paths.js.map +1 -0
  1291. package/lib/module/renderer/processors/Radius.js +8 -0
  1292. package/lib/module/renderer/processors/Radius.js.map +1 -0
  1293. package/lib/module/renderer/processors/Rects.js +25 -0
  1294. package/lib/module/renderer/processors/Rects.js.map +1 -0
  1295. package/lib/module/renderer/processors/Transform.js +49 -0
  1296. package/lib/module/renderer/processors/Transform.js.map +1 -0
  1297. package/lib/module/renderer/processors/index.js +12 -0
  1298. package/lib/module/renderer/processors/index.js.map +1 -0
  1299. package/lib/module/renderer/processors/math/Coordinates.js +19 -0
  1300. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -0
  1301. package/lib/module/renderer/processors/math/Math.js +17 -0
  1302. package/lib/module/renderer/processors/math/Math.js.map +1 -0
  1303. package/lib/module/renderer/processors/math/Transforms.js +12 -0
  1304. package/lib/module/renderer/processors/math/Transforms.js.map +1 -0
  1305. package/lib/module/renderer/processors/math/index.js +4 -0
  1306. package/lib/module/renderer/processors/math/index.js.map +1 -0
  1307. package/lib/module/renderer/typeddash.js +26 -0
  1308. package/lib/module/renderer/typeddash.js.map +1 -0
  1309. package/lib/module/renderer/useCanvas.js +13 -0
  1310. package/lib/module/renderer/useCanvas.js.map +1 -0
  1311. package/lib/module/renderer/useContextBridge.js +21 -0
  1312. package/lib/module/renderer/useContextBridge.js.map +1 -0
  1313. package/lib/module/skia/NativeSetup.js +17 -0
  1314. package/lib/module/skia/NativeSetup.js.map +1 -0
  1315. package/lib/module/skia/Skia.js +7 -0
  1316. package/lib/module/skia/Skia.js.map +1 -0
  1317. package/lib/module/skia/Skia.web.js +3 -0
  1318. package/lib/module/skia/Skia.web.js.map +1 -0
  1319. package/lib/module/skia/core/Data.js +53 -0
  1320. package/lib/module/skia/core/Data.js.map +1 -0
  1321. package/lib/module/skia/core/Font.js +22 -0
  1322. package/lib/module/skia/core/Font.js.map +1 -0
  1323. package/lib/module/skia/core/Image.js +8 -0
  1324. package/lib/module/skia/core/Image.js.map +1 -0
  1325. package/lib/module/skia/core/Matrix.js +4 -0
  1326. package/lib/module/skia/core/Matrix.js.map +1 -0
  1327. package/lib/module/skia/core/Paint.js +17 -0
  1328. package/lib/module/skia/core/Paint.js.map +1 -0
  1329. package/lib/module/skia/core/Path.js +53 -0
  1330. package/lib/module/skia/core/Path.js.map +1 -0
  1331. package/lib/module/skia/core/Picture.js +19 -0
  1332. package/lib/module/skia/core/Picture.js.map +1 -0
  1333. package/lib/module/skia/core/RRect.js +3 -0
  1334. package/lib/module/skia/core/RRect.js.map +1 -0
  1335. package/lib/module/skia/core/Rect.js +17 -0
  1336. package/lib/module/skia/core/Rect.js.map +1 -0
  1337. package/lib/module/skia/core/SVG.js +4 -0
  1338. package/lib/module/skia/core/SVG.js.map +1 -0
  1339. package/lib/module/skia/core/Typeface.js +8 -0
  1340. package/lib/module/skia/core/Typeface.js.map +1 -0
  1341. package/lib/module/skia/core/Vector.js +23 -0
  1342. package/lib/module/skia/core/Vector.js.map +1 -0
  1343. package/lib/module/skia/core/index.js +13 -0
  1344. package/lib/module/skia/core/index.js.map +1 -0
  1345. package/lib/module/skia/index.js +4 -0
  1346. package/lib/module/skia/index.js.map +1 -0
  1347. package/lib/module/skia/types/Canvas.js +14 -0
  1348. package/lib/module/skia/types/Canvas.js.map +1 -0
  1349. package/lib/module/skia/types/Color.js +2 -0
  1350. package/lib/module/skia/types/Color.js.map +1 -0
  1351. package/lib/module/skia/types/ColorFilter/ColorFilter.js +2 -0
  1352. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -0
  1353. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js +2 -0
  1354. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -0
  1355. package/lib/module/skia/types/ColorFilter/index.js +3 -0
  1356. package/lib/module/skia/types/ColorFilter/index.js.map +1 -0
  1357. package/lib/module/skia/types/ContourMeasure.js +2 -0
  1358. package/lib/module/skia/types/ContourMeasure.js.map +1 -0
  1359. package/lib/module/skia/types/Data/Data.js +2 -0
  1360. package/lib/module/skia/types/Data/Data.js.map +1 -0
  1361. package/lib/module/skia/types/Data/DataFactory.js +2 -0
  1362. package/lib/module/skia/types/Data/DataFactory.js.map +1 -0
  1363. package/lib/module/skia/types/Data/index.js +3 -0
  1364. package/lib/module/skia/types/Data/index.js.map +1 -0
  1365. package/lib/module/skia/types/Font/Font.js +68 -0
  1366. package/lib/module/skia/types/Font/Font.js.map +1 -0
  1367. package/lib/module/skia/types/Font/index.js +2 -0
  1368. package/lib/module/skia/types/Font/index.js.map +1 -0
  1369. package/lib/module/skia/types/FontMgr/FontMgr.js +2 -0
  1370. package/lib/module/skia/types/FontMgr/FontMgr.js.map +1 -0
  1371. package/lib/module/skia/types/FontMgr/FontMgrFactory.js +2 -0
  1372. package/lib/module/skia/types/FontMgr/FontMgrFactory.js.map +1 -0
  1373. package/lib/module/skia/types/FontMgr/index.js +3 -0
  1374. package/lib/module/skia/types/FontMgr/index.js.map +1 -0
  1375. package/lib/module/skia/types/Image/Image.js +23 -0
  1376. package/lib/module/skia/types/Image/Image.js.map +1 -0
  1377. package/lib/module/skia/types/Image/ImageFactory.js +37 -0
  1378. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -0
  1379. package/lib/module/skia/types/Image/index.js +3 -0
  1380. package/lib/module/skia/types/Image/index.js.map +1 -0
  1381. package/lib/module/skia/types/ImageFilter/ImageFilter.js +11 -0
  1382. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -0
  1383. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +9 -0
  1384. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  1385. package/lib/module/skia/types/ImageFilter/index.js +3 -0
  1386. package/lib/module/skia/types/ImageFilter/index.js.map +1 -0
  1387. package/lib/module/skia/types/JsiInstance.js +2 -0
  1388. package/lib/module/skia/types/JsiInstance.js.map +1 -0
  1389. package/lib/module/skia/types/MaskFilter.js +11 -0
  1390. package/lib/module/skia/types/MaskFilter.js.map +1 -0
  1391. package/lib/module/skia/types/Matrix.js +69 -0
  1392. package/lib/module/skia/types/Matrix.js.map +1 -0
  1393. package/lib/module/skia/types/Paint/BlendMode.js +61 -0
  1394. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -0
  1395. package/lib/module/skia/types/Paint/Paint.js +25 -0
  1396. package/lib/module/skia/types/Paint/Paint.js.map +1 -0
  1397. package/lib/module/skia/types/Paint/index.js +3 -0
  1398. package/lib/module/skia/types/Paint/index.js.map +1 -0
  1399. package/lib/module/skia/types/Path/Path.js +35 -0
  1400. package/lib/module/skia/types/Path/Path.js.map +1 -0
  1401. package/lib/module/skia/types/Path/PathFactory.js +2 -0
  1402. package/lib/module/skia/types/Path/PathFactory.js.map +1 -0
  1403. package/lib/module/skia/types/Path/index.js +3 -0
  1404. package/lib/module/skia/types/Path/index.js.map +1 -0
  1405. package/lib/module/skia/types/PathEffect.js +9 -0
  1406. package/lib/module/skia/types/PathEffect.js.map +1 -0
  1407. package/lib/module/skia/types/Picture/Picture.js +2 -0
  1408. package/lib/module/skia/types/Picture/Picture.js.map +1 -0
  1409. package/lib/module/skia/types/Picture/PictureFactory.js +2 -0
  1410. package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -0
  1411. package/lib/module/skia/types/Picture/PictureRecorder.js +2 -0
  1412. package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -0
  1413. package/lib/module/skia/types/Picture/index.js +4 -0
  1414. package/lib/module/skia/types/Picture/index.js.map +1 -0
  1415. package/lib/module/skia/types/Point.js +8 -0
  1416. package/lib/module/skia/types/Point.js.map +1 -0
  1417. package/lib/module/skia/types/RRect.js +4 -0
  1418. package/lib/module/skia/types/RRect.js.map +1 -0
  1419. package/lib/module/skia/types/RSXform.js +2 -0
  1420. package/lib/module/skia/types/RSXform.js.map +1 -0
  1421. package/lib/module/skia/types/Rect.js +2 -0
  1422. package/lib/module/skia/types/Rect.js.map +1 -0
  1423. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js +2 -0
  1424. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -0
  1425. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js +2 -0
  1426. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
  1427. package/lib/module/skia/types/RuntimeEffect/index.js +3 -0
  1428. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -0
  1429. package/lib/module/skia/types/SVG/SVG.js +2 -0
  1430. package/lib/module/skia/types/SVG/SVG.js.map +1 -0
  1431. package/lib/module/skia/types/SVG/SVGFactory.js +2 -0
  1432. package/lib/module/skia/types/SVG/SVGFactory.js.map +1 -0
  1433. package/lib/module/skia/types/SVG/index.js +3 -0
  1434. package/lib/module/skia/types/SVG/index.js.map +1 -0
  1435. package/lib/module/skia/types/Shader/Shader.js +44 -0
  1436. package/lib/module/skia/types/Shader/Shader.js.map +1 -0
  1437. package/lib/module/skia/types/Shader/ShaderFactory.js +2 -0
  1438. package/lib/module/skia/types/Shader/ShaderFactory.js.map +1 -0
  1439. package/lib/module/skia/types/Shader/index.js +3 -0
  1440. package/lib/module/skia/types/Shader/index.js.map +1 -0
  1441. package/lib/module/skia/types/Skia.js +2 -0
  1442. package/lib/module/skia/types/Skia.js.map +1 -0
  1443. package/lib/module/skia/types/Surface/Surface.js +2 -0
  1444. package/lib/module/skia/types/Surface/Surface.js.map +1 -0
  1445. package/lib/module/skia/types/Surface/SurfaceFactory.js +2 -0
  1446. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -0
  1447. package/lib/module/skia/types/Surface/index.js +3 -0
  1448. package/lib/module/skia/types/Surface/index.js.map +1 -0
  1449. package/lib/module/skia/types/TextBlob.js +2 -0
  1450. package/lib/module/skia/types/TextBlob.js.map +1 -0
  1451. package/lib/module/skia/types/Typeface/Typeface.js +2 -0
  1452. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -0
  1453. package/lib/module/skia/types/Typeface/TypefaceFactory.js +2 -0
  1454. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -0
  1455. package/lib/module/skia/types/Typeface/index.js +3 -0
  1456. package/lib/module/skia/types/Typeface/index.js.map +1 -0
  1457. package/lib/module/skia/types/Vertices/Vertices.js +8 -0
  1458. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -0
  1459. package/lib/module/skia/types/Vertices/index.js +2 -0
  1460. package/lib/module/skia/types/Vertices/index.js.map +1 -0
  1461. package/lib/module/skia/types/index.js +29 -0
  1462. package/lib/module/skia/types/index.js.map +1 -0
  1463. package/lib/module/skia/web/Host.js +42 -0
  1464. package/lib/module/skia/web/Host.js.map +1 -0
  1465. package/lib/module/skia/web/JsiSkCanvas.js +173 -0
  1466. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
  1467. package/lib/module/skia/web/JsiSkColor.js +330 -0
  1468. package/lib/module/skia/web/JsiSkColor.js.map +1 -0
  1469. package/lib/module/skia/web/JsiSkColorFilter.js +8 -0
  1470. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -0
  1471. package/lib/module/skia/web/JsiSkColorFilterFactory.js +37 -0
  1472. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  1473. package/lib/module/skia/web/JsiSkContourMeasure.js +31 -0
  1474. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
  1475. package/lib/module/skia/web/JsiSkContourMeasureIter.js +19 -0
  1476. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  1477. package/lib/module/skia/web/JsiSkData.js +8 -0
  1478. package/lib/module/skia/web/JsiSkData.js.map +1 -0
  1479. package/lib/module/skia/web/JsiSkDataFactory.js +33 -0
  1480. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
  1481. package/lib/module/skia/web/JsiSkFont.js +107 -0
  1482. package/lib/module/skia/web/JsiSkFont.js.map +1 -0
  1483. package/lib/module/skia/web/JsiSkFontMgr.js +23 -0
  1484. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
  1485. package/lib/module/skia/web/JsiSkFontMgrFactory.js +14 -0
  1486. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  1487. package/lib/module/skia/web/JsiSkImage.js +49 -0
  1488. package/lib/module/skia/web/JsiSkImage.js.map +1 -0
  1489. package/lib/module/skia/web/JsiSkImageFactory.js +36 -0
  1490. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
  1491. package/lib/module/skia/web/JsiSkImageFilter.js +8 -0
  1492. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
  1493. package/lib/module/skia/web/JsiSkImageFilterFactory.js +57 -0
  1494. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -0
  1495. package/lib/module/skia/web/JsiSkMaskFilter.js +8 -0
  1496. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
  1497. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +13 -0
  1498. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  1499. package/lib/module/skia/web/JsiSkMatrix.js +28 -0
  1500. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
  1501. package/lib/module/skia/web/JsiSkPaint.js +91 -0
  1502. package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
  1503. package/lib/module/skia/web/JsiSkPath.js +324 -0
  1504. package/lib/module/skia/web/JsiSkPath.js.map +1 -0
  1505. package/lib/module/skia/web/JsiSkPathEffect.js +8 -0
  1506. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
  1507. package/lib/module/skia/web/JsiSkPathEffectFactory.js +67 -0
  1508. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  1509. package/lib/module/skia/web/JsiSkPathFactory.js +47 -0
  1510. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
  1511. package/lib/module/skia/web/JsiSkPicture.js +18 -0
  1512. package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
  1513. package/lib/module/skia/web/JsiSkPictureFactory.js +19 -0
  1514. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
  1515. package/lib/module/skia/web/JsiSkPictureRecorder.js +18 -0
  1516. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
  1517. package/lib/module/skia/web/JsiSkPoint.js +16 -0
  1518. package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
  1519. package/lib/module/skia/web/JsiSkRRect.js +21 -0
  1520. package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
  1521. package/lib/module/skia/web/JsiSkRSXform.js +8 -0
  1522. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
  1523. package/lib/module/skia/web/JsiSkRect.js +32 -0
  1524. package/lib/module/skia/web/JsiSkRect.js.map +1 -0
  1525. package/lib/module/skia/web/JsiSkRuntimeEffect.js +33 -0
  1526. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  1527. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +19 -0
  1528. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  1529. package/lib/module/skia/web/JsiSkSVGFactory.js +16 -0
  1530. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
  1531. package/lib/module/skia/web/JsiSkShader.js +8 -0
  1532. package/lib/module/skia/web/JsiSkShader.js.map +1 -0
  1533. package/lib/module/skia/web/JsiSkShaderFactory.js +41 -0
  1534. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
  1535. package/lib/module/skia/web/JsiSkSurface.js +19 -0
  1536. package/lib/module/skia/web/JsiSkSurface.js.map +1 -0
  1537. package/lib/module/skia/web/JsiSkSurfaceFactory.js +19 -0
  1538. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -0
  1539. package/lib/module/skia/web/JsiSkTextBlob.js +8 -0
  1540. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
  1541. package/lib/module/skia/web/JsiSkTextBlobFactory.js +25 -0
  1542. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  1543. package/lib/module/skia/web/JsiSkTypeface.js +18 -0
  1544. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
  1545. package/lib/module/skia/web/JsiSkTypefaceFactory.js +19 -0
  1546. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  1547. package/lib/module/skia/web/JsiSkVertices.js +17 -0
  1548. package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
  1549. package/lib/module/skia/web/JsiSkVerticesFactory.js +39 -0
  1550. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
  1551. package/lib/module/skia/web/JsiSkia.js +61 -0
  1552. package/lib/module/skia/web/JsiSkia.js.map +1 -0
  1553. package/lib/module/skia/web/index.js +2 -0
  1554. package/lib/module/skia/web/index.js.map +1 -0
  1555. package/lib/module/values/api.js +5 -0
  1556. package/lib/module/values/api.js.map +1 -0
  1557. package/lib/module/values/api.web.js +7 -0
  1558. package/lib/module/values/api.web.js.map +1 -0
  1559. package/lib/module/values/hooks/index.js +5 -0
  1560. package/lib/module/values/hooks/index.js.map +1 -0
  1561. package/lib/module/values/hooks/useClockValue.js +17 -0
  1562. package/lib/module/values/hooks/useClockValue.js.map +1 -0
  1563. package/lib/module/values/hooks/useComputedValue.js +18 -0
  1564. package/lib/module/values/hooks/useComputedValue.js.map +1 -0
  1565. package/lib/module/values/hooks/useValue.js +13 -0
  1566. package/lib/module/values/hooks/useValue.js.map +1 -0
  1567. package/lib/module/values/hooks/useValueEffect.js +13 -0
  1568. package/lib/module/values/hooks/useValueEffect.js.map +1 -0
  1569. package/lib/module/values/index.js +4 -0
  1570. package/lib/module/values/index.js.map +1 -0
  1571. package/lib/module/values/types.js +2 -0
  1572. package/lib/module/values/types.js.map +1 -0
  1573. package/lib/module/values/web/RNSkAnimation.js +36 -0
  1574. package/lib/module/values/web/RNSkAnimation.js.map +1 -0
  1575. package/lib/module/values/web/RNSkClockValue.js +65 -0
  1576. package/lib/module/values/web/RNSkClockValue.js.map +1 -0
  1577. package/lib/module/values/web/RNSkComputedValue.js +41 -0
  1578. package/lib/module/values/web/RNSkComputedValue.js.map +1 -0
  1579. package/lib/module/values/web/RNSkReadonlyValue.js +36 -0
  1580. package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -0
  1581. package/lib/module/values/web/RNSkValue.js +63 -0
  1582. package/lib/module/values/web/RNSkValue.js.map +1 -0
  1583. package/lib/module/values/web/api.js +19 -0
  1584. package/lib/module/values/web/api.js.map +1 -0
  1585. package/lib/module/values/web/index.js +2 -0
  1586. package/lib/module/values/web/index.js.map +1 -0
  1587. package/lib/module/views/SkiaView.js +109 -0
  1588. package/lib/module/views/SkiaView.js.map +1 -0
  1589. package/lib/module/views/SkiaView.web.js +202 -0
  1590. package/lib/module/views/SkiaView.web.js.map +1 -0
  1591. package/lib/module/views/api.js +4 -0
  1592. package/lib/module/views/api.js.map +1 -0
  1593. package/lib/module/views/index.js +5 -0
  1594. package/lib/module/views/index.js.map +1 -0
  1595. package/lib/module/views/types.js +9 -0
  1596. package/lib/module/views/types.js.map +1 -0
  1597. package/lib/module/views/useDrawCallback.js +14 -0
  1598. package/lib/module/views/useDrawCallback.js.map +1 -0
  1599. package/lib/module/views/useTouchHandler.js +85 -0
  1600. package/lib/module/views/useTouchHandler.js.map +1 -0
  1601. package/lib/module/web/index.js +10 -0
  1602. package/lib/module/web/index.js.map +1 -0
  1603. package/lib/typescript/index.d.ts +1 -0
  1604. package/lib/typescript/jestSetup.d.ts +1 -0
  1605. package/lib/typescript/src/animation/decay/decay.d.ts +2 -0
  1606. package/lib/typescript/src/animation/decay/index.d.ts +1 -0
  1607. package/lib/typescript/src/animation/decay/runDecay.d.ts +10 -0
  1608. package/lib/typescript/src/animation/decay/types.d.ts +21 -0
  1609. package/lib/typescript/src/animation/functions/index.d.ts +4 -0
  1610. package/lib/typescript/src/animation/functions/interpolate.d.ts +17 -0
  1611. package/lib/typescript/src/animation/functions/interpolateColors.d.ts +3 -0
  1612. package/lib/typescript/src/animation/functions/interpolatePaths.d.ts +19 -0
  1613. package/lib/typescript/src/animation/functions/interpolateVector.d.ts +10 -0
  1614. package/lib/typescript/src/animation/index.d.ts +4 -0
  1615. package/lib/typescript/src/animation/spring/Spring.d.ts +65 -0
  1616. package/lib/typescript/src/animation/spring/functions/index.d.ts +1 -0
  1617. package/lib/typescript/src/animation/spring/functions/spring.d.ts +10 -0
  1618. package/lib/typescript/src/animation/spring/index.d.ts +3 -0
  1619. package/lib/typescript/src/animation/spring/runSpring.d.ts +16 -0
  1620. package/lib/typescript/src/animation/spring/types.d.ts +6 -0
  1621. package/lib/typescript/src/animation/spring/useSpring.d.ts +10 -0
  1622. package/lib/typescript/src/animation/timing/Easing.d.ts +19 -0
  1623. package/lib/typescript/src/animation/timing/createTiming.d.ts +17 -0
  1624. package/lib/typescript/src/animation/timing/functions/bezier.d.ts +1 -0
  1625. package/lib/typescript/src/animation/timing/functions/getResolvedParams.d.ts +7 -0
  1626. package/lib/typescript/src/animation/timing/functions/index.d.ts +4 -0
  1627. package/lib/typescript/src/animation/timing/functions/timing.d.ts +17 -0
  1628. package/lib/typescript/src/animation/timing/functions/types.d.ts +7 -0
  1629. package/lib/typescript/src/animation/timing/index.d.ts +4 -0
  1630. package/lib/typescript/src/animation/timing/runTiming.d.ts +16 -0
  1631. package/lib/typescript/src/animation/timing/useLoop.d.ts +8 -0
  1632. package/lib/typescript/src/animation/timing/useTiming.d.ts +10 -0
  1633. package/lib/typescript/src/animation/types.d.ts +18 -0
  1634. package/lib/typescript/src/external/index.d.ts +1 -0
  1635. package/lib/typescript/src/external/reanimated/index.d.ts +1 -0
  1636. package/lib/typescript/src/external/reanimated/useSharedValueEffect.d.ts +11 -0
  1637. package/lib/typescript/src/index.d.ts +8 -0
  1638. package/lib/typescript/src/mock/index.d.ts +16 -0
  1639. package/lib/typescript/src/renderer/Canvas.d.ts +16 -0
  1640. package/lib/typescript/src/renderer/DependencyManager.d.ts +21 -0
  1641. package/lib/typescript/src/renderer/DrawingContext.d.ts +12 -0
  1642. package/lib/typescript/src/renderer/HostConfig.d.ts +27 -0
  1643. package/lib/typescript/src/renderer/components/Blend.d.ts +9 -0
  1644. package/lib/typescript/src/renderer/components/Compose.d.ts +6 -0
  1645. package/lib/typescript/src/renderer/components/Drawing.d.ts +7 -0
  1646. package/lib/typescript/src/renderer/components/Group.d.ts +9 -0
  1647. package/lib/typescript/src/renderer/components/Mask.d.ts +15 -0
  1648. package/lib/typescript/src/renderer/components/Paint.d.ts +9 -0
  1649. package/lib/typescript/src/renderer/components/Picture.d.ts +6 -0
  1650. package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +8 -0
  1651. package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
  1652. package/lib/typescript/src/renderer/components/backdrop/index.d.ts +2 -0
  1653. package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +10 -0
  1654. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +3 -0
  1655. package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +7 -0
  1656. package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +5 -0
  1657. package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +5 -0
  1658. package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +9 -0
  1659. package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +5 -0
  1660. package/lib/typescript/src/renderer/components/colorFilters/index.d.ts +6 -0
  1661. package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +33 -0
  1662. package/lib/typescript/src/renderer/components/image/Image.d.ts +19 -0
  1663. package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +7 -0
  1664. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +26 -0
  1665. package/lib/typescript/src/renderer/components/image/index.d.ts +4 -0
  1666. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +15 -0
  1667. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +10 -0
  1668. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +2 -0
  1669. package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +13 -0
  1670. package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +14 -0
  1671. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +8 -0
  1672. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +12 -0
  1673. package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +3 -0
  1674. package/lib/typescript/src/renderer/components/imageFilters/index.d.ts +6 -0
  1675. package/lib/typescript/src/renderer/components/index.d.ts +17 -0
  1676. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +16 -0
  1677. package/lib/typescript/src/renderer/components/maskFilters/index.d.ts +1 -0
  1678. package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +7 -0
  1679. package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +8 -0
  1680. package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +14 -0
  1681. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +9 -0
  1682. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +13 -0
  1683. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +10 -0
  1684. package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +6 -0
  1685. package/lib/typescript/src/renderer/components/pathEffects/index.d.ts +7 -0
  1686. package/lib/typescript/src/renderer/components/shaders/Color.d.ts +7 -0
  1687. package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +18 -0
  1688. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +17 -0
  1689. package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +9 -0
  1690. package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +9 -0
  1691. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +14 -0
  1692. package/lib/typescript/src/renderer/components/shaders/ShaderLib.d.ts +4 -0
  1693. package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +10 -0
  1694. package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +18 -0
  1695. package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +11 -0
  1696. package/lib/typescript/src/renderer/components/shaders/index.d.ts +9 -0
  1697. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +22 -0
  1698. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +12 -0
  1699. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +9 -0
  1700. package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +5 -0
  1701. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +25 -0
  1702. package/lib/typescript/src/renderer/components/shapes/Line.d.ts +8 -0
  1703. package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +10 -0
  1704. package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +21 -0
  1705. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +23 -0
  1706. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +15 -0
  1707. package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +4 -0
  1708. package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +9 -0
  1709. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +18 -0
  1710. package/lib/typescript/src/renderer/components/shapes/index.d.ts +13 -0
  1711. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +20 -0
  1712. package/lib/typescript/src/renderer/components/text/Text.d.ts +15 -0
  1713. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +15 -0
  1714. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +15 -0
  1715. package/lib/typescript/src/renderer/components/text/index.d.ts +4 -0
  1716. package/lib/typescript/src/renderer/index.d.ts +5 -0
  1717. package/lib/typescript/src/renderer/nodes/Container.d.ts +8 -0
  1718. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +22 -0
  1719. package/lib/typescript/src/renderer/nodes/Drawing.d.ts +21 -0
  1720. package/lib/typescript/src/renderer/nodes/Node.d.ts +23 -0
  1721. package/lib/typescript/src/renderer/nodes/index.d.ts +4 -0
  1722. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +7 -0
  1723. package/lib/typescript/src/renderer/processors/Animations/index.d.ts +1 -0
  1724. package/lib/typescript/src/renderer/processors/Circles.d.ts +13 -0
  1725. package/lib/typescript/src/renderer/processors/Clips.d.ts +4 -0
  1726. package/lib/typescript/src/renderer/processors/Color.d.ts +7 -0
  1727. package/lib/typescript/src/renderer/processors/Font.d.ts +11 -0
  1728. package/lib/typescript/src/renderer/processors/Paint.d.ts +22 -0
  1729. package/lib/typescript/src/renderer/processors/Paths.d.ts +4 -0
  1730. package/lib/typescript/src/renderer/processors/Radius.d.ts +3 -0
  1731. package/lib/typescript/src/renderer/processors/Rects.d.ts +20 -0
  1732. package/lib/typescript/src/renderer/processors/Transform.d.ts +90 -0
  1733. package/lib/typescript/src/renderer/processors/index.d.ts +11 -0
  1734. package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +29 -0
  1735. package/lib/typescript/src/renderer/processors/math/Math.d.ts +15 -0
  1736. package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +5 -0
  1737. package/lib/typescript/src/renderer/processors/math/index.d.ts +3 -0
  1738. package/lib/typescript/src/renderer/typeddash.d.ts +3 -0
  1739. package/lib/typescript/src/renderer/useCanvas.d.ts +14 -0
  1740. package/lib/typescript/src/renderer/useContextBridge.d.ts +5 -0
  1741. package/lib/typescript/src/skia/NativeSetup.d.ts +1 -0
  1742. package/lib/typescript/src/skia/Skia.d.ts +8 -0
  1743. package/lib/typescript/src/skia/Skia.web.d.ts +1 -0
  1744. package/lib/typescript/src/skia/core/Data.d.ts +5 -0
  1745. package/lib/typescript/src/skia/core/Font.d.ts +5 -0
  1746. package/lib/typescript/src/skia/core/Image.d.ts +5 -0
  1747. package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
  1748. package/lib/typescript/src/skia/core/Paint.d.ts +6 -0
  1749. package/lib/typescript/src/skia/core/Path.d.ts +21 -0
  1750. package/lib/typescript/src/skia/core/Picture.d.ts +9 -0
  1751. package/lib/typescript/src/skia/core/RRect.d.ts +2 -0
  1752. package/lib/typescript/src/skia/core/Rect.d.ts +8 -0
  1753. package/lib/typescript/src/skia/core/SVG.d.ts +2 -0
  1754. package/lib/typescript/src/skia/core/Typeface.d.ts +5 -0
  1755. package/lib/typescript/src/skia/core/Vector.d.ts +12 -0
  1756. package/lib/typescript/src/skia/core/index.d.ts +12 -0
  1757. package/lib/typescript/src/skia/index.d.ts +3 -0
  1758. package/lib/typescript/src/skia/types/Canvas.d.ts +381 -0
  1759. package/lib/typescript/src/skia/types/Color.d.ts +2 -0
  1760. package/lib/typescript/src/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
  1761. package/lib/typescript/src/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
  1762. package/lib/typescript/src/skia/types/ColorFilter/index.d.ts +2 -0
  1763. package/lib/typescript/src/skia/types/ContourMeasure.d.ts +40 -0
  1764. package/lib/typescript/src/skia/types/Data/Data.d.ts +5 -0
  1765. package/lib/typescript/src/skia/types/Data/DataFactory.d.ts +18 -0
  1766. package/lib/typescript/src/skia/types/Data/index.d.ts +2 -0
  1767. package/lib/typescript/src/skia/types/Font/Font.d.ts +192 -0
  1768. package/lib/typescript/src/skia/types/Font/index.d.ts +1 -0
  1769. package/lib/typescript/src/skia/types/FontMgr/FontMgr.d.ts +18 -0
  1770. package/lib/typescript/src/skia/types/FontMgr/FontMgrFactory.d.ts +4 -0
  1771. package/lib/typescript/src/skia/types/FontMgr/index.d.ts +2 -0
  1772. package/lib/typescript/src/skia/types/Image/Image.d.ts +75 -0
  1773. package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +62 -0
  1774. package/lib/typescript/src/skia/types/Image/index.d.ts +2 -0
  1775. package/lib/typescript/src/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
  1776. package/lib/typescript/src/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
  1777. package/lib/typescript/src/skia/types/ImageFilter/index.d.ts +2 -0
  1778. package/lib/typescript/src/skia/types/JsiInstance.d.ts +3 -0
  1779. package/lib/typescript/src/skia/types/MaskFilter.d.ts +21 -0
  1780. package/lib/typescript/src/skia/types/Matrix.d.ts +29 -0
  1781. package/lib/typescript/src/skia/types/Paint/BlendMode.d.ts +58 -0
  1782. package/lib/typescript/src/skia/types/Paint/Paint.d.ts +127 -0
  1783. package/lib/typescript/src/skia/types/Paint/index.d.ts +2 -0
  1784. package/lib/typescript/src/skia/types/Path/Path.d.ts +461 -0
  1785. package/lib/typescript/src/skia/types/Path/PathFactory.d.ts +29 -0
  1786. package/lib/typescript/src/skia/types/Path/index.d.ts +2 -0
  1787. package/lib/typescript/src/skia/types/PathEffect.d.ts +75 -0
  1788. package/lib/typescript/src/skia/types/Picture/Picture.d.ts +26 -0
  1789. package/lib/typescript/src/skia/types/Picture/PictureFactory.d.ts +8 -0
  1790. package/lib/typescript/src/skia/types/Picture/PictureRecorder.d.ts +15 -0
  1791. package/lib/typescript/src/skia/types/Picture/index.d.ts +3 -0
  1792. package/lib/typescript/src/skia/types/Point.d.ts +10 -0
  1793. package/lib/typescript/src/skia/types/RRect.d.ts +7 -0
  1794. package/lib/typescript/src/skia/types/RSXform.d.ts +2 -0
  1795. package/lib/typescript/src/skia/types/Rect.d.ts +6 -0
  1796. package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +48 -0
  1797. package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
  1798. package/lib/typescript/src/skia/types/RuntimeEffect/index.d.ts +2 -0
  1799. package/lib/typescript/src/skia/types/SVG/SVG.d.ts +2 -0
  1800. package/lib/typescript/src/skia/types/SVG/SVGFactory.d.ts +6 -0
  1801. package/lib/typescript/src/skia/types/SVG/index.d.ts +2 -0
  1802. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +11 -0
  1803. package/lib/typescript/src/skia/types/Shader/ShaderFactory.d.ts +104 -0
  1804. package/lib/typescript/src/skia/types/Shader/index.d.ts +2 -0
  1805. package/lib/typescript/src/skia/types/Skia.d.ts +68 -0
  1806. package/lib/typescript/src/skia/types/Surface/Surface.d.ts +25 -0
  1807. package/lib/typescript/src/skia/types/Surface/SurfaceFactory.d.ts +11 -0
  1808. package/lib/typescript/src/skia/types/Surface/index.d.ts +2 -0
  1809. package/lib/typescript/src/skia/types/TextBlob.d.ts +44 -0
  1810. package/lib/typescript/src/skia/types/Typeface/Typeface.d.ts +5 -0
  1811. package/lib/typescript/src/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
  1812. package/lib/typescript/src/skia/types/Typeface/index.d.ts +2 -0
  1813. package/lib/typescript/src/skia/types/Vertices/Vertices.d.ts +17 -0
  1814. package/lib/typescript/src/skia/types/Vertices/index.d.ts +1 -0
  1815. package/lib/typescript/src/skia/types/index.d.ts +28 -0
  1816. package/lib/typescript/src/skia/web/Host.d.ts +21 -0
  1817. package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +44 -0
  1818. package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
  1819. package/lib/typescript/src/skia/web/JsiSkColorFilter.d.ts +6 -0
  1820. package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  1821. package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +16 -0
  1822. package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  1823. package/lib/typescript/src/skia/web/JsiSkData.d.ts +8 -0
  1824. package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
  1825. package/lib/typescript/src/skia/web/JsiSkFont.d.ts +34 -0
  1826. package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +9 -0
  1827. package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
  1828. package/lib/typescript/src/skia/web/JsiSkImage.d.ts +12 -0
  1829. package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +10 -0
  1830. package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +6 -0
  1831. package/lib/typescript/src/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
  1832. package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +6 -0
  1833. package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  1834. package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +11 -0
  1835. package/lib/typescript/src/skia/web/JsiSkPaint.d.ts +26 -0
  1836. package/lib/typescript/src/skia/web/JsiSkPath.d.ts +56 -0
  1837. package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +6 -0
  1838. package/lib/typescript/src/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  1839. package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +13 -0
  1840. package/lib/typescript/src/skia/web/JsiSkPicture.d.ts +9 -0
  1841. package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
  1842. package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  1843. package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +8 -0
  1844. package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +10 -0
  1845. package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -0
  1846. package/lib/typescript/src/skia/web/JsiSkRect.d.ts +11 -0
  1847. package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +14 -0
  1848. package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  1849. package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +9 -0
  1850. package/lib/typescript/src/skia/web/JsiSkShader.d.ts +6 -0
  1851. package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
  1852. package/lib/typescript/src/skia/web/JsiSkSurface.d.ts +8 -0
  1853. package/lib/typescript/src/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
  1854. package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +6 -0
  1855. package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +12 -0
  1856. package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +8 -0
  1857. package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  1858. package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +9 -0
  1859. package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  1860. package/lib/typescript/src/skia/web/JsiSkia.d.ts +3 -0
  1861. package/lib/typescript/src/skia/web/index.d.ts +1 -0
  1862. package/lib/typescript/src/values/api.d.ts +5 -0
  1863. package/lib/typescript/src/values/api.web.d.ts +2 -0
  1864. package/lib/typescript/src/values/hooks/index.d.ts +4 -0
  1865. package/lib/typescript/src/values/hooks/useClockValue.d.ts +6 -0
  1866. package/lib/typescript/src/values/hooks/useComputedValue.d.ts +9 -0
  1867. package/lib/typescript/src/values/hooks/useValue.d.ts +7 -0
  1868. package/lib/typescript/src/values/hooks/useValueEffect.d.ts +7 -0
  1869. package/lib/typescript/src/values/index.d.ts +3 -0
  1870. package/lib/typescript/src/values/types.d.ts +59 -0
  1871. package/lib/typescript/src/values/web/RNSkAnimation.d.ts +9 -0
  1872. package/lib/typescript/src/values/web/RNSkClockValue.d.ts +13 -0
  1873. package/lib/typescript/src/values/web/RNSkComputedValue.d.ts +9 -0
  1874. package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +11 -0
  1875. package/lib/typescript/src/values/web/RNSkValue.d.ts +14 -0
  1876. package/lib/typescript/src/values/web/api.d.ts +2 -0
  1877. package/lib/typescript/src/values/web/index.d.ts +1 -0
  1878. package/lib/typescript/src/views/SkiaView.d.ts +37 -0
  1879. package/lib/typescript/src/views/SkiaView.web.d.ts +56 -0
  1880. package/lib/typescript/src/views/api.d.ts +5 -0
  1881. package/lib/typescript/src/views/index.d.ts +4 -0
  1882. package/lib/typescript/src/views/types.d.ts +76 -0
  1883. package/lib/typescript/src/views/useDrawCallback.d.ts +8 -0
  1884. package/lib/typescript/src/views/useTouchHandler.d.ts +22 -0
  1885. package/lib/typescript/src/web/index.d.ts +5 -0
  1886. package/libs/android/arm64-v8a/libskia.a +0 -0
  1887. package/libs/android/arm64-v8a/libskshaper.a +0 -0
  1888. package/libs/android/arm64-v8a/libsvg.a +0 -0
  1889. package/libs/android/armeabi-v7a/libskia.a +0 -0
  1890. package/libs/android/armeabi-v7a/libskshaper.a +0 -0
  1891. package/libs/android/armeabi-v7a/libsvg.a +0 -0
  1892. package/libs/android/x86/libskia.a +0 -0
  1893. package/libs/android/x86/libskshaper.a +0 -0
  1894. package/libs/android/x86/libsvg.a +0 -0
  1895. package/libs/android/x86_64/libskia.a +0 -0
  1896. package/libs/android/x86_64/libskshaper.a +0 -0
  1897. package/libs/android/x86_64/libsvg.a +0 -0
  1898. package/libs/ios/libskia.xcframework/Info.plist +42 -0
  1899. package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
  1900. package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  1901. package/libs/ios/libskshaper.xcframework/Info.plist +42 -0
  1902. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
  1903. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  1904. package/libs/ios/libsvg.xcframework/Info.plist +42 -0
  1905. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
  1906. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  1907. package/package.json +102 -0
  1908. package/react-native-skia.podspec +71 -0
  1909. package/scripts/install-npm.js +23 -0
  1910. package/src/animation/decay/decay.ts +35 -0
  1911. package/src/animation/decay/index.ts +1 -0
  1912. package/src/animation/decay/runDecay.ts +40 -0
  1913. package/src/animation/decay/types.ts +24 -0
  1914. package/src/animation/functions/index.ts +4 -0
  1915. package/src/animation/functions/interpolate.ts +184 -0
  1916. package/src/animation/functions/interpolateColors.ts +57 -0
  1917. package/src/animation/functions/interpolatePaths.ts +87 -0
  1918. package/src/animation/functions/interpolateVector.ts +26 -0
  1919. package/src/animation/index.ts +4 -0
  1920. package/src/animation/spring/Spring.ts +61 -0
  1921. package/src/animation/spring/functions/index.ts +1 -0
  1922. package/src/animation/spring/functions/spring.ts +86 -0
  1923. package/src/animation/spring/index.ts +3 -0
  1924. package/src/animation/spring/runSpring.ts +37 -0
  1925. package/src/animation/spring/types.ts +6 -0
  1926. package/src/animation/spring/useSpring.ts +28 -0
  1927. package/src/animation/timing/Easing.ts +102 -0
  1928. package/src/animation/timing/createTiming.ts +62 -0
  1929. package/src/animation/timing/functions/bezier.ts +165 -0
  1930. package/src/animation/timing/functions/getResolvedParams.ts +50 -0
  1931. package/src/animation/timing/functions/index.ts +4 -0
  1932. package/src/animation/timing/functions/timing.ts +44 -0
  1933. package/src/animation/timing/functions/types.ts +8 -0
  1934. package/src/animation/timing/index.ts +4 -0
  1935. package/src/animation/timing/runTiming.ts +33 -0
  1936. package/src/animation/timing/useLoop.ts +18 -0
  1937. package/src/animation/timing/useTiming.ts +68 -0
  1938. package/src/animation/types.ts +23 -0
  1939. package/src/external/index.ts +1 -0
  1940. package/src/external/reanimated/index.ts +1 -0
  1941. package/src/external/reanimated/useSharedValueEffect.ts +81 -0
  1942. package/src/index.ts +8 -0
  1943. package/src/mock/index.ts +110 -0
  1944. package/src/renderer/Canvas.tsx +158 -0
  1945. package/src/renderer/DependencyManager.tsx +59 -0
  1946. package/src/renderer/DrawingContext.ts +14 -0
  1947. package/src/renderer/HostConfig.ts +303 -0
  1948. package/src/renderer/components/Blend.tsx +29 -0
  1949. package/src/renderer/components/Compose.tsx +26 -0
  1950. package/src/renderer/components/Drawing.tsx +16 -0
  1951. package/src/renderer/components/Group.tsx +83 -0
  1952. package/src/renderer/components/Mask.tsx +45 -0
  1953. package/src/renderer/components/Paint.tsx +30 -0
  1954. package/src/renderer/components/Picture.tsx +17 -0
  1955. package/src/renderer/components/backdrop/BackdropBlur.tsx +23 -0
  1956. package/src/renderer/components/backdrop/BackdropFilter.tsx +47 -0
  1957. package/src/renderer/components/backdrop/index.ts +2 -0
  1958. package/src/renderer/components/colorFilters/BlendColor.tsx +30 -0
  1959. package/src/renderer/components/colorFilters/Compose.ts +18 -0
  1960. package/src/renderer/components/colorFilters/Lerp.tsx +27 -0
  1961. package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +20 -0
  1962. package/src/renderer/components/colorFilters/LumaColorFilter.tsx +18 -0
  1963. package/src/renderer/components/colorFilters/Matrix.tsx +46 -0
  1964. package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +20 -0
  1965. package/src/renderer/components/colorFilters/index.ts +6 -0
  1966. package/src/renderer/components/image/BoxFit.ts +125 -0
  1967. package/src/renderer/components/image/Image.tsx +50 -0
  1968. package/src/renderer/components/image/ImageSVG.tsx +24 -0
  1969. package/src/renderer/components/image/ImageShader.tsx +82 -0
  1970. package/src/renderer/components/image/index.ts +4 -0
  1971. package/src/renderer/components/imageFilters/Blur.tsx +37 -0
  1972. package/src/renderer/components/imageFilters/DisplacementMap.tsx +34 -0
  1973. package/src/renderer/components/imageFilters/InnerShadow.tsx +38 -0
  1974. package/src/renderer/components/imageFilters/Morphology.tsx +33 -0
  1975. package/src/renderer/components/imageFilters/Offset.tsx +28 -0
  1976. package/src/renderer/components/imageFilters/RuntimeShader.tsx +31 -0
  1977. package/src/renderer/components/imageFilters/Shadow.tsx +42 -0
  1978. package/src/renderer/components/imageFilters/getInput.ts +20 -0
  1979. package/src/renderer/components/imageFilters/index.ts +6 -0
  1980. package/src/renderer/components/index.ts +18 -0
  1981. package/src/renderer/components/maskFilters/Blur.tsx +32 -0
  1982. package/src/renderer/components/maskFilters/index.ts +1 -0
  1983. package/src/renderer/components/pathEffects/Corner.tsx +31 -0
  1984. package/src/renderer/components/pathEffects/Dash.tsx +27 -0
  1985. package/src/renderer/components/pathEffects/Discrete.tsx +34 -0
  1986. package/src/renderer/components/pathEffects/Line2D.tsx +33 -0
  1987. package/src/renderer/components/pathEffects/Path1D.tsx +43 -0
  1988. package/src/renderer/components/pathEffects/Path2D.tsx +35 -0
  1989. package/src/renderer/components/pathEffects/Sum.tsx +21 -0
  1990. package/src/renderer/components/pathEffects/index.ts +7 -0
  1991. package/src/renderer/components/shaders/Color.tsx +20 -0
  1992. package/src/renderer/components/shaders/FractalNoise.tsx +36 -0
  1993. package/src/renderer/components/shaders/Gradient.ts +24 -0
  1994. package/src/renderer/components/shaders/LinearGradient.tsx +33 -0
  1995. package/src/renderer/components/shaders/RadialGradient.tsx +33 -0
  1996. package/src/renderer/components/shaders/Shader.tsx +32 -0
  1997. package/src/renderer/components/shaders/ShaderLib.ts +46 -0
  1998. package/src/renderer/components/shaders/SweepGradient.tsx +36 -0
  1999. package/src/renderer/components/shaders/Turbulence.tsx +36 -0
  2000. package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +39 -0
  2001. package/src/renderer/components/shaders/index.ts +9 -0
  2002. package/src/renderer/components/shapes/Box.tsx +115 -0
  2003. package/src/renderer/components/shapes/Circle.tsx +24 -0
  2004. package/src/renderer/components/shapes/DiffRect.tsx +21 -0
  2005. package/src/renderer/components/shapes/Fill.tsx +15 -0
  2006. package/src/renderer/components/shapes/FitBox.tsx +28 -0
  2007. package/src/renderer/components/shapes/Line.tsx +17 -0
  2008. package/src/renderer/components/shapes/Oval.tsx +27 -0
  2009. package/src/renderer/components/shapes/Patch.tsx +63 -0
  2010. package/src/renderer/components/shapes/Path.tsx +57 -0
  2011. package/src/renderer/components/shapes/Points.tsx +28 -0
  2012. package/src/renderer/components/shapes/Rect.tsx +22 -0
  2013. package/src/renderer/components/shapes/RoundedRect.tsx +25 -0
  2014. package/src/renderer/components/shapes/Vertices.tsx +45 -0
  2015. package/src/renderer/components/shapes/index.ts +13 -0
  2016. package/src/renderer/components/text/Glyphs.tsx +52 -0
  2017. package/src/renderer/components/text/Text.tsx +32 -0
  2018. package/src/renderer/components/text/TextBlob.tsx +26 -0
  2019. package/src/renderer/components/text/TextPath.tsx +68 -0
  2020. package/src/renderer/components/text/index.ts +4 -0
  2021. package/src/renderer/index.ts +5 -0
  2022. package/src/renderer/nodes/Container.tsx +17 -0
  2023. package/src/renderer/nodes/Declaration.tsx +67 -0
  2024. package/src/renderer/nodes/Drawing.tsx +67 -0
  2025. package/src/renderer/nodes/Node.ts +57 -0
  2026. package/src/renderer/nodes/index.ts +4 -0
  2027. package/src/renderer/processors/Animations/Animations.ts +42 -0
  2028. package/src/renderer/processors/Animations/index.ts +1 -0
  2029. package/src/renderer/processors/Circles.ts +26 -0
  2030. package/src/renderer/processors/Clips.ts +23 -0
  2031. package/src/renderer/processors/Color.ts +15 -0
  2032. package/src/renderer/processors/Font.ts +31 -0
  2033. package/src/renderer/processors/Paint.ts +118 -0
  2034. package/src/renderer/processors/Paths.ts +19 -0
  2035. package/src/renderer/processors/Radius.ts +10 -0
  2036. package/src/renderer/processors/Rects.ts +50 -0
  2037. package/src/renderer/processors/Transform.ts +53 -0
  2038. package/src/renderer/processors/index.ts +11 -0
  2039. package/src/renderer/processors/math/Coordinates.ts +32 -0
  2040. package/src/renderer/processors/math/Math.ts +18 -0
  2041. package/src/renderer/processors/math/Transforms.ts +8 -0
  2042. package/src/renderer/processors/math/index.ts +3 -0
  2043. package/src/renderer/typeddash.ts +23 -0
  2044. package/src/renderer/useCanvas.ts +21 -0
  2045. package/src/renderer/useContextBridge.tsx +21 -0
  2046. package/src/skia/NativeSetup.ts +18 -0
  2047. package/src/skia/Skia.ts +11 -0
  2048. package/src/skia/Skia.web.ts +3 -0
  2049. package/src/skia/core/Data.ts +98 -0
  2050. package/src/skia/core/Font.ts +28 -0
  2051. package/src/skia/core/Image.ts +12 -0
  2052. package/src/skia/core/Matrix.ts +6 -0
  2053. package/src/skia/core/Paint.ts +22 -0
  2054. package/src/skia/core/Path.ts +60 -0
  2055. package/src/skia/core/Picture.ts +25 -0
  2056. package/src/skia/core/RRect.tsx +5 -0
  2057. package/src/skia/core/Rect.ts +33 -0
  2058. package/src/skia/core/SVG.ts +9 -0
  2059. package/src/skia/core/Typeface.ts +16 -0
  2060. package/src/skia/core/Vector.ts +11 -0
  2061. package/src/skia/core/index.ts +12 -0
  2062. package/src/skia/index.ts +3 -0
  2063. package/src/skia/types/Canvas.ts +495 -0
  2064. package/src/skia/types/Color.ts +4 -0
  2065. package/src/skia/types/ColorFilter/ColorFilter.ts +7 -0
  2066. package/src/skia/types/ColorFilter/ColorFilterFactory.ts +52 -0
  2067. package/src/skia/types/ColorFilter/index.ts +2 -0
  2068. package/src/skia/types/ContourMeasure.tsx +47 -0
  2069. package/src/skia/types/Data/Data.ts +5 -0
  2070. package/src/skia/types/Data/DataFactory.ts +19 -0
  2071. package/src/skia/types/Data/index.ts +2 -0
  2072. package/src/skia/types/Font/Font.ts +232 -0
  2073. package/src/skia/types/Font/index.ts +1 -0
  2074. package/src/skia/types/FontMgr/FontMgr.ts +24 -0
  2075. package/src/skia/types/FontMgr/FontMgrFactory.ts +12 -0
  2076. package/src/skia/types/FontMgr/index.ts +2 -0
  2077. package/src/skia/types/Image/Image.ts +96 -0
  2078. package/src/skia/types/Image/ImageFactory.ts +78 -0
  2079. package/src/skia/types/Image/index.ts +2 -0
  2080. package/src/skia/types/ImageFilter/ImageFilter.ts +31 -0
  2081. package/src/skia/types/ImageFilter/ImageFilterFactory.ts +192 -0
  2082. package/src/skia/types/ImageFilter/index.ts +2 -0
  2083. package/src/skia/types/JsiInstance.ts +3 -0
  2084. package/src/skia/types/MaskFilter.ts +27 -0
  2085. package/src/skia/types/Matrix.ts +95 -0
  2086. package/src/skia/types/Paint/BlendMode.ts +61 -0
  2087. package/src/skia/types/Paint/Paint.ts +153 -0
  2088. package/src/skia/types/Paint/index.ts +2 -0
  2089. package/src/skia/types/Path/Path.ts +564 -0
  2090. package/src/skia/types/Path/PathFactory.ts +34 -0
  2091. package/src/skia/types/Path/index.ts +2 -0
  2092. package/src/skia/types/PathEffect.ts +97 -0
  2093. package/src/skia/types/Picture/Picture.ts +34 -0
  2094. package/src/skia/types/Picture/PictureFactory.ts +9 -0
  2095. package/src/skia/types/Picture/PictureRecorder.ts +18 -0
  2096. package/src/skia/types/Picture/index.ts +3 -0
  2097. package/src/skia/types/Point.ts +12 -0
  2098. package/src/skia/types/RRect.ts +12 -0
  2099. package/src/skia/types/RSXform.ts +3 -0
  2100. package/src/skia/types/Rect.ts +6 -0
  2101. package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +61 -0
  2102. package/src/skia/types/RuntimeEffect/RuntimeEffectFactory.ts +12 -0
  2103. package/src/skia/types/RuntimeEffect/index.ts +2 -0
  2104. package/src/skia/types/SVG/SVG.ts +3 -0
  2105. package/src/skia/types/SVG/SVGFactory.ts +8 -0
  2106. package/src/skia/types/SVG/index.ts +2 -0
  2107. package/src/skia/types/Shader/Shader.ts +65 -0
  2108. package/src/skia/types/Shader/ShaderFactory.ts +169 -0
  2109. package/src/skia/types/Shader/index.ts +2 -0
  2110. package/src/skia/types/Skia.ts +84 -0
  2111. package/src/skia/types/Surface/Surface.ts +27 -0
  2112. package/src/skia/types/Surface/SurfaceFactory.ts +12 -0
  2113. package/src/skia/types/Surface/index.ts +2 -0
  2114. package/src/skia/types/TextBlob.ts +52 -0
  2115. package/src/skia/types/Typeface/Typeface.ts +6 -0
  2116. package/src/skia/types/Typeface/TypefaceFactory.ts +7 -0
  2117. package/src/skia/types/Typeface/index.ts +2 -0
  2118. package/src/skia/types/Vertices/Vertices.tsx +20 -0
  2119. package/src/skia/types/Vertices/index.ts +1 -0
  2120. package/src/skia/types/index.ts +28 -0
  2121. package/src/skia/web/Host.ts +56 -0
  2122. package/src/skia/web/JsiSkCanvas.ts +330 -0
  2123. package/src/skia/web/JsiSkColor.ts +327 -0
  2124. package/src/skia/web/JsiSkColorFilter.ts +14 -0
  2125. package/src/skia/web/JsiSkColorFilterFactory.ts +67 -0
  2126. package/src/skia/web/JsiSkContourMeasure.ts +35 -0
  2127. package/src/skia/web/JsiSkContourMeasureIter.ts +23 -0
  2128. package/src/skia/web/JsiSkData.ts +13 -0
  2129. package/src/skia/web/JsiSkDataFactory.ts +35 -0
  2130. package/src/skia/web/JsiSkFont.ts +134 -0
  2131. package/src/skia/web/JsiSkFontMgr.ts +38 -0
  2132. package/src/skia/web/JsiSkFontMgrFactory.ts +18 -0
  2133. package/src/skia/web/JsiSkImage.ts +87 -0
  2134. package/src/skia/web/JsiSkImageFactory.ts +40 -0
  2135. package/src/skia/web/JsiSkImageFilter.ts +14 -0
  2136. package/src/skia/web/JsiSkImageFilterFactory.ts +144 -0
  2137. package/src/skia/web/JsiSkMaskFilter.ts +14 -0
  2138. package/src/skia/web/JsiSkMaskFilterFactory.ts +20 -0
  2139. package/src/skia/web/JsiSkMatrix.ts +54 -0
  2140. package/src/skia/web/JsiSkPaint.ts +104 -0
  2141. package/src/skia/web/JsiSkPath.ts +386 -0
  2142. package/src/skia/web/JsiSkPathEffect.ts +14 -0
  2143. package/src/skia/web/JsiSkPathEffectFactory.ts +85 -0
  2144. package/src/skia/web/JsiSkPathFactory.ts +54 -0
  2145. package/src/skia/web/JsiSkPicture.ts +45 -0
  2146. package/src/skia/web/JsiSkPictureFactory.ts +20 -0
  2147. package/src/skia/web/JsiSkPictureRecorder.ts +31 -0
  2148. package/src/skia/web/JsiSkPoint.ts +19 -0
  2149. package/src/skia/web/JsiSkRRect.ts +27 -0
  2150. package/src/skia/web/JsiSkRSXform.ts +16 -0
  2151. package/src/skia/web/JsiSkRect.ts +37 -0
  2152. package/src/skia/web/JsiSkRuntimeEffect.ts +57 -0
  2153. package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
  2154. package/src/skia/web/JsiSkSVGFactory.ts +20 -0
  2155. package/src/skia/web/JsiSkShader.ts +14 -0
  2156. package/src/skia/web/JsiSkShaderFactory.ts +181 -0
  2157. package/src/skia/web/JsiSkSurface.ts +25 -0
  2158. package/src/skia/web/JsiSkSurfaceFactory.ts +20 -0
  2159. package/src/skia/web/JsiSkTextBlob.ts +14 -0
  2160. package/src/skia/web/JsiSkTextBlobFactory.ts +49 -0
  2161. package/src/skia/web/JsiSkTypeface.ts +28 -0
  2162. package/src/skia/web/JsiSkTypefaceFactory.tsx +20 -0
  2163. package/src/skia/web/JsiSkVertices.ts +23 -0
  2164. package/src/skia/web/JsiSkVerticesFactory.ts +41 -0
  2165. package/src/skia/web/JsiSkia.ts +98 -0
  2166. package/src/skia/web/index.ts +1 -0
  2167. package/src/values/api.ts +8 -0
  2168. package/src/values/api.web.ts +5 -0
  2169. package/src/values/hooks/index.ts +4 -0
  2170. package/src/values/hooks/useClockValue.ts +18 -0
  2171. package/src/values/hooks/useComputedValue.ts +23 -0
  2172. package/src/values/hooks/useValue.ts +14 -0
  2173. package/src/values/hooks/useValueEffect.ts +15 -0
  2174. package/src/values/index.ts +3 -0
  2175. package/src/values/types.ts +69 -0
  2176. package/src/values/web/RNSkAnimation.ts +33 -0
  2177. package/src/values/web/RNSkClockValue.ts +58 -0
  2178. package/src/values/web/RNSkComputedValue.ts +38 -0
  2179. package/src/values/web/RNSkReadonlyValue.ts +32 -0
  2180. package/src/values/web/RNSkValue.ts +57 -0
  2181. package/src/values/web/api.ts +33 -0
  2182. package/src/values/web/index.ts +1 -0
  2183. package/src/views/SkiaView.tsx +105 -0
  2184. package/src/views/SkiaView.web.tsx +193 -0
  2185. package/src/views/api.ts +7 -0
  2186. package/src/views/index.ts +4 -0
  2187. package/src/views/types.ts +96 -0
  2188. package/src/views/useDrawCallback.ts +19 -0
  2189. package/src/views/useTouchHandler.ts +111 -0
  2190. package/src/web/index.ts +15 -0
@@ -0,0 +1,1986 @@
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 SkMatrix_DEFINED
9
+ #define SkMatrix_DEFINED
10
+
11
+ #include "include/core/SkRect.h"
12
+ #include "include/private/SkMacros.h"
13
+ #include "include/private/SkTo.h"
14
+
15
+ struct SkRSXform;
16
+ struct SkPoint3;
17
+
18
+ // Remove when clients are updated to live without this
19
+ #define SK_SUPPORT_LEGACY_MATRIX_RECTTORECT
20
+
21
+ /**
22
+ * When we transform points through a matrix containing perspective (the bottom row is something
23
+ * other than 0,0,1), the bruteforce math can produce confusing results (since we might divide
24
+ * by 0, or a negative w value). By default, methods that map rects and paths will apply
25
+ * perspective clipping, but this can be changed by specifying kYes to those methods.
26
+ */
27
+ enum class SkApplyPerspectiveClip {
28
+ kNo, //!< Don't pre-clip the geometry before applying the (perspective) matrix
29
+ kYes, //!< Do pre-clip the geometry before applying the (perspective) matrix
30
+ };
31
+
32
+ /** \class SkMatrix
33
+ SkMatrix holds a 3x3 matrix for transforming coordinates. This allows mapping
34
+ SkPoint and vectors with translation, scaling, skewing, rotation, and
35
+ perspective.
36
+
37
+ SkMatrix elements are in row major order.
38
+ SkMatrix constexpr default constructs to identity.
39
+
40
+ SkMatrix includes a hidden variable that classifies the type of matrix to
41
+ improve performance. SkMatrix is not thread safe unless getType() is called first.
42
+
43
+ example: https://fiddle.skia.org/c/@Matrix_063
44
+ */
45
+ SK_BEGIN_REQUIRE_DENSE
46
+ class SK_API SkMatrix {
47
+ public:
48
+
49
+ /** Creates an identity SkMatrix:
50
+
51
+ | 1 0 0 |
52
+ | 0 1 0 |
53
+ | 0 0 1 |
54
+ */
55
+ constexpr SkMatrix() : SkMatrix(1,0,0, 0,1,0, 0,0,1, kIdentity_Mask | kRectStaysRect_Mask) {}
56
+
57
+ /** Sets SkMatrix to scale by (sx, sy). Returned matrix is:
58
+
59
+ | sx 0 0 |
60
+ | 0 sy 0 |
61
+ | 0 0 1 |
62
+
63
+ @param sx horizontal scale factor
64
+ @param sy vertical scale factor
65
+ @return SkMatrix with scale
66
+ */
67
+ static SkMatrix SK_WARN_UNUSED_RESULT Scale(SkScalar sx, SkScalar sy) {
68
+ SkMatrix m;
69
+ m.setScale(sx, sy);
70
+ return m;
71
+ }
72
+
73
+ /** Sets SkMatrix to translate by (dx, dy). Returned matrix is:
74
+
75
+ | 1 0 dx |
76
+ | 0 1 dy |
77
+ | 0 0 1 |
78
+
79
+ @param dx horizontal translation
80
+ @param dy vertical translation
81
+ @return SkMatrix with translation
82
+ */
83
+ static SkMatrix SK_WARN_UNUSED_RESULT Translate(SkScalar dx, SkScalar dy) {
84
+ SkMatrix m;
85
+ m.setTranslate(dx, dy);
86
+ return m;
87
+ }
88
+ static SkMatrix SK_WARN_UNUSED_RESULT Translate(SkVector t) { return Translate(t.x(), t.y()); }
89
+ static SkMatrix SK_WARN_UNUSED_RESULT Translate(SkIVector t) { return Translate(t.x(), t.y()); }
90
+
91
+ /** Sets SkMatrix to rotate by |deg| about a pivot point at (0, 0).
92
+
93
+ @param deg rotation angle in degrees (positive rotates clockwise)
94
+ @return SkMatrix with rotation
95
+ */
96
+ static SkMatrix SK_WARN_UNUSED_RESULT RotateDeg(SkScalar deg) {
97
+ SkMatrix m;
98
+ m.setRotate(deg);
99
+ return m;
100
+ }
101
+ static SkMatrix SK_WARN_UNUSED_RESULT RotateDeg(SkScalar deg, SkPoint pt) {
102
+ SkMatrix m;
103
+ m.setRotate(deg, pt.x(), pt.y());
104
+ return m;
105
+ }
106
+ static SkMatrix SK_WARN_UNUSED_RESULT RotateRad(SkScalar rad) {
107
+ return RotateDeg(SkRadiansToDegrees(rad));
108
+ }
109
+
110
+ /** Sets SkMatrix to skew by (kx, ky) about pivot point (0, 0).
111
+
112
+ @param kx horizontal skew factor
113
+ @param ky vertical skew factor
114
+ @return SkMatrix with skew
115
+ */
116
+ static SkMatrix SK_WARN_UNUSED_RESULT Skew(SkScalar kx, SkScalar ky) {
117
+ SkMatrix m;
118
+ m.setSkew(kx, ky);
119
+ return m;
120
+ }
121
+
122
+ /** \enum SkMatrix::ScaleToFit
123
+ ScaleToFit describes how SkMatrix is constructed to map one SkRect to another.
124
+ ScaleToFit may allow SkMatrix to have unequal horizontal and vertical scaling,
125
+ or may restrict SkMatrix to square scaling. If restricted, ScaleToFit specifies
126
+ how SkMatrix maps to the side or center of the destination SkRect.
127
+ */
128
+ enum ScaleToFit {
129
+ kFill_ScaleToFit, //!< scales in x and y to fill destination SkRect
130
+ kStart_ScaleToFit, //!< scales and aligns to left and top
131
+ kCenter_ScaleToFit, //!< scales and aligns to center
132
+ kEnd_ScaleToFit, //!< scales and aligns to right and bottom
133
+ };
134
+
135
+ /** Returns SkMatrix set to scale and translate src to dst. ScaleToFit selects
136
+ whether mapping completely fills dst or preserves the aspect ratio, and how to
137
+ align src within dst. Returns the identity SkMatrix if src is empty. If dst is
138
+ empty, returns SkMatrix set to:
139
+
140
+ | 0 0 0 |
141
+ | 0 0 0 |
142
+ | 0 0 1 |
143
+
144
+ @param src SkRect to map from
145
+ @param dst SkRect to map to
146
+ @param mode How to handle the mapping
147
+ @return SkMatrix mapping src to dst
148
+ */
149
+ static SkMatrix SK_WARN_UNUSED_RESULT RectToRect(const SkRect& src, const SkRect& dst,
150
+ ScaleToFit mode = kFill_ScaleToFit) {
151
+ return MakeRectToRect(src, dst, mode);
152
+ }
153
+
154
+ /** Sets SkMatrix to:
155
+
156
+ | scaleX skewX transX |
157
+ | skewY scaleY transY |
158
+ | pers0 pers1 pers2 |
159
+
160
+ @param scaleX horizontal scale factor
161
+ @param skewX horizontal skew factor
162
+ @param transX horizontal translation
163
+ @param skewY vertical skew factor
164
+ @param scaleY vertical scale factor
165
+ @param transY vertical translation
166
+ @param pers0 input x-axis perspective factor
167
+ @param pers1 input y-axis perspective factor
168
+ @param pers2 perspective scale factor
169
+ @return SkMatrix constructed from parameters
170
+ */
171
+ static SkMatrix SK_WARN_UNUSED_RESULT MakeAll(SkScalar scaleX, SkScalar skewX, SkScalar transX,
172
+ SkScalar skewY, SkScalar scaleY, SkScalar transY,
173
+ SkScalar pers0, SkScalar pers1, SkScalar pers2) {
174
+ SkMatrix m;
175
+ m.setAll(scaleX, skewX, transX, skewY, scaleY, transY, pers0, pers1, pers2);
176
+ return m;
177
+ }
178
+
179
+ /** \enum SkMatrix::TypeMask
180
+ Enum of bit fields for mask returned by getType().
181
+ Used to identify the complexity of SkMatrix, to optimize performance.
182
+ */
183
+ enum TypeMask {
184
+ kIdentity_Mask = 0, //!< identity SkMatrix; all bits clear
185
+ kTranslate_Mask = 0x01, //!< translation SkMatrix
186
+ kScale_Mask = 0x02, //!< scale SkMatrix
187
+ kAffine_Mask = 0x04, //!< skew or rotate SkMatrix
188
+ kPerspective_Mask = 0x08, //!< perspective SkMatrix
189
+ };
190
+
191
+ /** Returns a bit field describing the transformations the matrix may
192
+ perform. The bit field is computed conservatively, so it may include
193
+ false positives. For example, when kPerspective_Mask is set, all
194
+ other bits are set.
195
+
196
+ @return kIdentity_Mask, or combinations of: kTranslate_Mask, kScale_Mask,
197
+ kAffine_Mask, kPerspective_Mask
198
+ */
199
+ TypeMask getType() const {
200
+ if (fTypeMask & kUnknown_Mask) {
201
+ fTypeMask = this->computeTypeMask();
202
+ }
203
+ // only return the public masks
204
+ return (TypeMask)(fTypeMask & 0xF);
205
+ }
206
+
207
+ /** Returns true if SkMatrix is identity. Identity matrix is:
208
+
209
+ | 1 0 0 |
210
+ | 0 1 0 |
211
+ | 0 0 1 |
212
+
213
+ @return true if SkMatrix has no effect
214
+ */
215
+ bool isIdentity() const {
216
+ return this->getType() == 0;
217
+ }
218
+
219
+ /** Returns true if SkMatrix at most scales and translates. SkMatrix may be identity,
220
+ contain only scale elements, only translate elements, or both. SkMatrix form is:
221
+
222
+ | scale-x 0 translate-x |
223
+ | 0 scale-y translate-y |
224
+ | 0 0 1 |
225
+
226
+ @return true if SkMatrix is identity; or scales, translates, or both
227
+ */
228
+ bool isScaleTranslate() const {
229
+ return !(this->getType() & ~(kScale_Mask | kTranslate_Mask));
230
+ }
231
+
232
+ /** Returns true if SkMatrix is identity, or translates. SkMatrix form is:
233
+
234
+ | 1 0 translate-x |
235
+ | 0 1 translate-y |
236
+ | 0 0 1 |
237
+
238
+ @return true if SkMatrix is identity, or translates
239
+ */
240
+ bool isTranslate() const { return !(this->getType() & ~(kTranslate_Mask)); }
241
+
242
+ /** Returns true SkMatrix maps SkRect to another SkRect. If true, SkMatrix is identity,
243
+ or scales, or rotates a multiple of 90 degrees, or mirrors on axes. In all
244
+ cases, SkMatrix may also have translation. SkMatrix form is either:
245
+
246
+ | scale-x 0 translate-x |
247
+ | 0 scale-y translate-y |
248
+ | 0 0 1 |
249
+
250
+ or
251
+
252
+ | 0 rotate-x translate-x |
253
+ | rotate-y 0 translate-y |
254
+ | 0 0 1 |
255
+
256
+ for non-zero values of scale-x, scale-y, rotate-x, and rotate-y.
257
+
258
+ Also called preservesAxisAlignment(); use the one that provides better inline
259
+ documentation.
260
+
261
+ @return true if SkMatrix maps one SkRect into another
262
+ */
263
+ bool rectStaysRect() const {
264
+ if (fTypeMask & kUnknown_Mask) {
265
+ fTypeMask = this->computeTypeMask();
266
+ }
267
+ return (fTypeMask & kRectStaysRect_Mask) != 0;
268
+ }
269
+
270
+ /** Returns true SkMatrix maps SkRect to another SkRect. If true, SkMatrix is identity,
271
+ or scales, or rotates a multiple of 90 degrees, or mirrors on axes. In all
272
+ cases, SkMatrix may also have translation. SkMatrix form is either:
273
+
274
+ | scale-x 0 translate-x |
275
+ | 0 scale-y translate-y |
276
+ | 0 0 1 |
277
+
278
+ or
279
+
280
+ | 0 rotate-x translate-x |
281
+ | rotate-y 0 translate-y |
282
+ | 0 0 1 |
283
+
284
+ for non-zero values of scale-x, scale-y, rotate-x, and rotate-y.
285
+
286
+ Also called rectStaysRect(); use the one that provides better inline
287
+ documentation.
288
+
289
+ @return true if SkMatrix maps one SkRect into another
290
+ */
291
+ bool preservesAxisAlignment() const { return this->rectStaysRect(); }
292
+
293
+ /** Returns true if the matrix contains perspective elements. SkMatrix form is:
294
+
295
+ | -- -- -- |
296
+ | -- -- -- |
297
+ | perspective-x perspective-y perspective-scale |
298
+
299
+ where perspective-x or perspective-y is non-zero, or perspective-scale is
300
+ not one. All other elements may have any value.
301
+
302
+ @return true if SkMatrix is in most general form
303
+ */
304
+ bool hasPerspective() const {
305
+ return SkToBool(this->getPerspectiveTypeMaskOnly() &
306
+ kPerspective_Mask);
307
+ }
308
+
309
+ /** Returns true if SkMatrix contains only translation, rotation, reflection, and
310
+ uniform scale.
311
+ Returns false if SkMatrix contains different scales, skewing, perspective, or
312
+ degenerate forms that collapse to a line or point.
313
+
314
+ Describes that the SkMatrix makes rendering with and without the matrix are
315
+ visually alike; a transformed circle remains a circle. Mathematically, this is
316
+ referred to as similarity of a Euclidean space, or a similarity transformation.
317
+
318
+ Preserves right angles, keeping the arms of the angle equal lengths.
319
+
320
+ @param tol to be deprecated
321
+ @return true if SkMatrix only rotates, uniformly scales, translates
322
+
323
+ example: https://fiddle.skia.org/c/@Matrix_isSimilarity
324
+ */
325
+ bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
326
+
327
+ /** Returns true if SkMatrix contains only translation, rotation, reflection, and
328
+ scale. Scale may differ along rotated axes.
329
+ Returns false if SkMatrix skewing, perspective, or degenerate forms that collapse
330
+ to a line or point.
331
+
332
+ Preserves right angles, but not requiring that the arms of the angle
333
+ retain equal lengths.
334
+
335
+ @param tol to be deprecated
336
+ @return true if SkMatrix only rotates, scales, translates
337
+
338
+ example: https://fiddle.skia.org/c/@Matrix_preservesRightAngles
339
+ */
340
+ bool preservesRightAngles(SkScalar tol = SK_ScalarNearlyZero) const;
341
+
342
+ /** SkMatrix organizes its values in row-major order. These members correspond to
343
+ each value in SkMatrix.
344
+ */
345
+ static constexpr int kMScaleX = 0; //!< horizontal scale factor
346
+ static constexpr int kMSkewX = 1; //!< horizontal skew factor
347
+ static constexpr int kMTransX = 2; //!< horizontal translation
348
+ static constexpr int kMSkewY = 3; //!< vertical skew factor
349
+ static constexpr int kMScaleY = 4; //!< vertical scale factor
350
+ static constexpr int kMTransY = 5; //!< vertical translation
351
+ static constexpr int kMPersp0 = 6; //!< input x perspective factor
352
+ static constexpr int kMPersp1 = 7; //!< input y perspective factor
353
+ static constexpr int kMPersp2 = 8; //!< perspective bias
354
+
355
+ /** Affine arrays are in column-major order to match the matrix used by
356
+ PDF and XPS.
357
+ */
358
+ static constexpr int kAScaleX = 0; //!< horizontal scale factor
359
+ static constexpr int kASkewY = 1; //!< vertical skew factor
360
+ static constexpr int kASkewX = 2; //!< horizontal skew factor
361
+ static constexpr int kAScaleY = 3; //!< vertical scale factor
362
+ static constexpr int kATransX = 4; //!< horizontal translation
363
+ static constexpr int kATransY = 5; //!< vertical translation
364
+
365
+ /** Returns one matrix value. Asserts if index is out of range and SK_DEBUG is
366
+ defined.
367
+
368
+ @param index one of: kMScaleX, kMSkewX, kMTransX, kMSkewY, kMScaleY, kMTransY,
369
+ kMPersp0, kMPersp1, kMPersp2
370
+ @return value corresponding to index
371
+ */
372
+ SkScalar operator[](int index) const {
373
+ SkASSERT((unsigned)index < 9);
374
+ return fMat[index];
375
+ }
376
+
377
+ /** Returns one matrix value. Asserts if index is out of range and SK_DEBUG is
378
+ defined.
379
+
380
+ @param index one of: kMScaleX, kMSkewX, kMTransX, kMSkewY, kMScaleY, kMTransY,
381
+ kMPersp0, kMPersp1, kMPersp2
382
+ @return value corresponding to index
383
+ */
384
+ SkScalar get(int index) const {
385
+ SkASSERT((unsigned)index < 9);
386
+ return fMat[index];
387
+ }
388
+
389
+ /** Returns one matrix value from a particular row/column. Asserts if index is out
390
+ of range and SK_DEBUG is defined.
391
+
392
+ @param r matrix row to fetch
393
+ @param c matrix column to fetch
394
+ @return value at the given matrix position
395
+ */
396
+ SkScalar rc(int r, int c) const {
397
+ SkASSERT(r >= 0 && r <= 2);
398
+ SkASSERT(c >= 0 && c <= 2);
399
+ return fMat[r*3 + c];
400
+ }
401
+
402
+ /** Returns scale factor multiplied by x-axis input, contributing to x-axis output.
403
+ With mapPoints(), scales SkPoint along the x-axis.
404
+
405
+ @return horizontal scale factor
406
+ */
407
+ SkScalar getScaleX() const { return fMat[kMScaleX]; }
408
+
409
+ /** Returns scale factor multiplied by y-axis input, contributing to y-axis output.
410
+ With mapPoints(), scales SkPoint along the y-axis.
411
+
412
+ @return vertical scale factor
413
+ */
414
+ SkScalar getScaleY() const { return fMat[kMScaleY]; }
415
+
416
+ /** Returns scale factor multiplied by x-axis input, contributing to y-axis output.
417
+ With mapPoints(), skews SkPoint along the y-axis.
418
+ Skewing both axes can rotate SkPoint.
419
+
420
+ @return vertical skew factor
421
+ */
422
+ SkScalar getSkewY() const { return fMat[kMSkewY]; }
423
+
424
+ /** Returns scale factor multiplied by y-axis input, contributing to x-axis output.
425
+ With mapPoints(), skews SkPoint along the x-axis.
426
+ Skewing both axes can rotate SkPoint.
427
+
428
+ @return horizontal scale factor
429
+ */
430
+ SkScalar getSkewX() const { return fMat[kMSkewX]; }
431
+
432
+ /** Returns translation contributing to x-axis output.
433
+ With mapPoints(), moves SkPoint along the x-axis.
434
+
435
+ @return horizontal translation factor
436
+ */
437
+ SkScalar getTranslateX() const { return fMat[kMTransX]; }
438
+
439
+ /** Returns translation contributing to y-axis output.
440
+ With mapPoints(), moves SkPoint along the y-axis.
441
+
442
+ @return vertical translation factor
443
+ */
444
+ SkScalar getTranslateY() const { return fMat[kMTransY]; }
445
+
446
+ /** Returns factor scaling input x-axis relative to input y-axis.
447
+
448
+ @return input x-axis perspective factor
449
+ */
450
+ SkScalar getPerspX() const { return fMat[kMPersp0]; }
451
+
452
+ /** Returns factor scaling input y-axis relative to input x-axis.
453
+
454
+ @return input y-axis perspective factor
455
+ */
456
+ SkScalar getPerspY() const { return fMat[kMPersp1]; }
457
+
458
+ /** Returns writable SkMatrix value. Asserts if index is out of range and SK_DEBUG is
459
+ defined. Clears internal cache anticipating that caller will change SkMatrix value.
460
+
461
+ Next call to read SkMatrix state may recompute cache; subsequent writes to SkMatrix
462
+ value must be followed by dirtyMatrixTypeCache().
463
+
464
+ @param index one of: kMScaleX, kMSkewX, kMTransX, kMSkewY, kMScaleY, kMTransY,
465
+ kMPersp0, kMPersp1, kMPersp2
466
+ @return writable value corresponding to index
467
+ */
468
+ SkScalar& operator[](int index) {
469
+ SkASSERT((unsigned)index < 9);
470
+ this->setTypeMask(kUnknown_Mask);
471
+ return fMat[index];
472
+ }
473
+
474
+ /** Sets SkMatrix value. Asserts if index is out of range and SK_DEBUG is
475
+ defined. Safer than operator[]; internal cache is always maintained.
476
+
477
+ @param index one of: kMScaleX, kMSkewX, kMTransX, kMSkewY, kMScaleY, kMTransY,
478
+ kMPersp0, kMPersp1, kMPersp2
479
+ @param value scalar to store in SkMatrix
480
+ */
481
+ SkMatrix& set(int index, SkScalar value) {
482
+ SkASSERT((unsigned)index < 9);
483
+ fMat[index] = value;
484
+ this->setTypeMask(kUnknown_Mask);
485
+ return *this;
486
+ }
487
+
488
+ /** Sets horizontal scale factor.
489
+
490
+ @param v horizontal scale factor to store
491
+ */
492
+ SkMatrix& setScaleX(SkScalar v) { return this->set(kMScaleX, v); }
493
+
494
+ /** Sets vertical scale factor.
495
+
496
+ @param v vertical scale factor to store
497
+ */
498
+ SkMatrix& setScaleY(SkScalar v) { return this->set(kMScaleY, v); }
499
+
500
+ /** Sets vertical skew factor.
501
+
502
+ @param v vertical skew factor to store
503
+ */
504
+ SkMatrix& setSkewY(SkScalar v) { return this->set(kMSkewY, v); }
505
+
506
+ /** Sets horizontal skew factor.
507
+
508
+ @param v horizontal skew factor to store
509
+ */
510
+ SkMatrix& setSkewX(SkScalar v) { return this->set(kMSkewX, v); }
511
+
512
+ /** Sets horizontal translation.
513
+
514
+ @param v horizontal translation to store
515
+ */
516
+ SkMatrix& setTranslateX(SkScalar v) { return this->set(kMTransX, v); }
517
+
518
+ /** Sets vertical translation.
519
+
520
+ @param v vertical translation to store
521
+ */
522
+ SkMatrix& setTranslateY(SkScalar v) { return this->set(kMTransY, v); }
523
+
524
+ /** Sets input x-axis perspective factor, which causes mapXY() to vary input x-axis values
525
+ inversely proportional to input y-axis values.
526
+
527
+ @param v perspective factor
528
+ */
529
+ SkMatrix& setPerspX(SkScalar v) { return this->set(kMPersp0, v); }
530
+
531
+ /** Sets input y-axis perspective factor, which causes mapXY() to vary input y-axis values
532
+ inversely proportional to input x-axis values.
533
+
534
+ @param v perspective factor
535
+ */
536
+ SkMatrix& setPerspY(SkScalar v) { return this->set(kMPersp1, v); }
537
+
538
+ /** Sets all values from parameters. Sets matrix to:
539
+
540
+ | scaleX skewX transX |
541
+ | skewY scaleY transY |
542
+ | persp0 persp1 persp2 |
543
+
544
+ @param scaleX horizontal scale factor to store
545
+ @param skewX horizontal skew factor to store
546
+ @param transX horizontal translation to store
547
+ @param skewY vertical skew factor to store
548
+ @param scaleY vertical scale factor to store
549
+ @param transY vertical translation to store
550
+ @param persp0 input x-axis values perspective factor to store
551
+ @param persp1 input y-axis values perspective factor to store
552
+ @param persp2 perspective scale factor to store
553
+ */
554
+ SkMatrix& setAll(SkScalar scaleX, SkScalar skewX, SkScalar transX,
555
+ SkScalar skewY, SkScalar scaleY, SkScalar transY,
556
+ SkScalar persp0, SkScalar persp1, SkScalar persp2) {
557
+ fMat[kMScaleX] = scaleX;
558
+ fMat[kMSkewX] = skewX;
559
+ fMat[kMTransX] = transX;
560
+ fMat[kMSkewY] = skewY;
561
+ fMat[kMScaleY] = scaleY;
562
+ fMat[kMTransY] = transY;
563
+ fMat[kMPersp0] = persp0;
564
+ fMat[kMPersp1] = persp1;
565
+ fMat[kMPersp2] = persp2;
566
+ this->setTypeMask(kUnknown_Mask);
567
+ return *this;
568
+ }
569
+
570
+ /** Copies nine scalar values contained by SkMatrix into buffer, in member value
571
+ ascending order: kMScaleX, kMSkewX, kMTransX, kMSkewY, kMScaleY, kMTransY,
572
+ kMPersp0, kMPersp1, kMPersp2.
573
+
574
+ @param buffer storage for nine scalar values
575
+ */
576
+ void get9(SkScalar buffer[9]) const {
577
+ memcpy(buffer, fMat, 9 * sizeof(SkScalar));
578
+ }
579
+
580
+ /** Sets SkMatrix to nine scalar values in buffer, in member value ascending order:
581
+ kMScaleX, kMSkewX, kMTransX, kMSkewY, kMScaleY, kMTransY, kMPersp0, kMPersp1,
582
+ kMPersp2.
583
+
584
+ Sets matrix to:
585
+
586
+ | buffer[0] buffer[1] buffer[2] |
587
+ | buffer[3] buffer[4] buffer[5] |
588
+ | buffer[6] buffer[7] buffer[8] |
589
+
590
+ In the future, set9 followed by get9 may not return the same values. Since SkMatrix
591
+ maps non-homogeneous coordinates, scaling all nine values produces an equivalent
592
+ transformation, possibly improving precision.
593
+
594
+ @param buffer nine scalar values
595
+ */
596
+ SkMatrix& set9(const SkScalar buffer[9]);
597
+
598
+ /** Sets SkMatrix to identity; which has no effect on mapped SkPoint. Sets SkMatrix to:
599
+
600
+ | 1 0 0 |
601
+ | 0 1 0 |
602
+ | 0 0 1 |
603
+
604
+ Also called setIdentity(); use the one that provides better inline
605
+ documentation.
606
+ */
607
+ SkMatrix& reset();
608
+
609
+ /** Sets SkMatrix to identity; which has no effect on mapped SkPoint. Sets SkMatrix to:
610
+
611
+ | 1 0 0 |
612
+ | 0 1 0 |
613
+ | 0 0 1 |
614
+
615
+ Also called reset(); use the one that provides better inline
616
+ documentation.
617
+ */
618
+ SkMatrix& setIdentity() { return this->reset(); }
619
+
620
+ /** Sets SkMatrix to translate by (dx, dy).
621
+
622
+ @param dx horizontal translation
623
+ @param dy vertical translation
624
+ */
625
+ SkMatrix& setTranslate(SkScalar dx, SkScalar dy);
626
+
627
+ /** Sets SkMatrix to translate by (v.fX, v.fY).
628
+
629
+ @param v vector containing horizontal and vertical translation
630
+ */
631
+ SkMatrix& setTranslate(const SkVector& v) { return this->setTranslate(v.fX, v.fY); }
632
+
633
+ /** Sets SkMatrix to scale by sx and sy, about a pivot point at (px, py).
634
+ The pivot point is unchanged when mapped with SkMatrix.
635
+
636
+ @param sx horizontal scale factor
637
+ @param sy vertical scale factor
638
+ @param px pivot on x-axis
639
+ @param py pivot on y-axis
640
+ */
641
+ SkMatrix& setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py);
642
+
643
+ /** Sets SkMatrix to scale by sx and sy about at pivot point at (0, 0).
644
+
645
+ @param sx horizontal scale factor
646
+ @param sy vertical scale factor
647
+ */
648
+ SkMatrix& setScale(SkScalar sx, SkScalar sy);
649
+
650
+ /** Sets SkMatrix to rotate by degrees about a pivot point at (px, py).
651
+ The pivot point is unchanged when mapped with SkMatrix.
652
+
653
+ Positive degrees rotates clockwise.
654
+
655
+ @param degrees angle of axes relative to upright axes
656
+ @param px pivot on x-axis
657
+ @param py pivot on y-axis
658
+ */
659
+ SkMatrix& setRotate(SkScalar degrees, SkScalar px, SkScalar py);
660
+
661
+ /** Sets SkMatrix to rotate by degrees about a pivot point at (0, 0).
662
+ Positive degrees rotates clockwise.
663
+
664
+ @param degrees angle of axes relative to upright axes
665
+ */
666
+ SkMatrix& setRotate(SkScalar degrees);
667
+
668
+ /** Sets SkMatrix to rotate by sinValue and cosValue, about a pivot point at (px, py).
669
+ The pivot point is unchanged when mapped with SkMatrix.
670
+
671
+ Vector (sinValue, cosValue) describes the angle of rotation relative to (0, 1).
672
+ Vector length specifies scale.
673
+
674
+ @param sinValue rotation vector x-axis component
675
+ @param cosValue rotation vector y-axis component
676
+ @param px pivot on x-axis
677
+ @param py pivot on y-axis
678
+ */
679
+ SkMatrix& setSinCos(SkScalar sinValue, SkScalar cosValue,
680
+ SkScalar px, SkScalar py);
681
+
682
+ /** Sets SkMatrix to rotate by sinValue and cosValue, about a pivot point at (0, 0).
683
+
684
+ Vector (sinValue, cosValue) describes the angle of rotation relative to (0, 1).
685
+ Vector length specifies scale.
686
+
687
+ @param sinValue rotation vector x-axis component
688
+ @param cosValue rotation vector y-axis component
689
+ */
690
+ SkMatrix& setSinCos(SkScalar sinValue, SkScalar cosValue);
691
+
692
+ /** Sets SkMatrix to rotate, scale, and translate using a compressed matrix form.
693
+
694
+ Vector (rsxForm.fSSin, rsxForm.fSCos) describes the angle of rotation relative
695
+ to (0, 1). Vector length specifies scale. Mapped point is rotated and scaled
696
+ by vector, then translated by (rsxForm.fTx, rsxForm.fTy).
697
+
698
+ @param rsxForm compressed SkRSXform matrix
699
+ @return reference to SkMatrix
700
+
701
+ example: https://fiddle.skia.org/c/@Matrix_setRSXform
702
+ */
703
+ SkMatrix& setRSXform(const SkRSXform& rsxForm);
704
+
705
+ /** Sets SkMatrix to skew by kx and ky, about a pivot point at (px, py).
706
+ The pivot point is unchanged when mapped with SkMatrix.
707
+
708
+ @param kx horizontal skew factor
709
+ @param ky vertical skew factor
710
+ @param px pivot on x-axis
711
+ @param py pivot on y-axis
712
+ */
713
+ SkMatrix& setSkew(SkScalar kx, SkScalar ky, SkScalar px, SkScalar py);
714
+
715
+ /** Sets SkMatrix to skew by kx and ky, about a pivot point at (0, 0).
716
+
717
+ @param kx horizontal skew factor
718
+ @param ky vertical skew factor
719
+ */
720
+ SkMatrix& setSkew(SkScalar kx, SkScalar ky);
721
+
722
+ /** Sets SkMatrix to SkMatrix a multiplied by SkMatrix b. Either a or b may be this.
723
+
724
+ Given:
725
+
726
+ | A B C | | J K L |
727
+ a = | D E F |, b = | M N O |
728
+ | G H I | | P Q R |
729
+
730
+ sets SkMatrix to:
731
+
732
+ | A B C | | J K L | | AJ+BM+CP AK+BN+CQ AL+BO+CR |
733
+ a * b = | D E F | * | M N O | = | DJ+EM+FP DK+EN+FQ DL+EO+FR |
734
+ | G H I | | P Q R | | GJ+HM+IP GK+HN+IQ GL+HO+IR |
735
+
736
+ @param a SkMatrix on left side of multiply expression
737
+ @param b SkMatrix on right side of multiply expression
738
+ */
739
+ SkMatrix& setConcat(const SkMatrix& a, const SkMatrix& b);
740
+
741
+ /** Sets SkMatrix to SkMatrix multiplied by SkMatrix constructed from translation (dx, dy).
742
+ This can be thought of as moving the point to be mapped before applying SkMatrix.
743
+
744
+ Given:
745
+
746
+ | A B C | | 1 0 dx |
747
+ Matrix = | D E F |, T(dx, dy) = | 0 1 dy |
748
+ | G H I | | 0 0 1 |
749
+
750
+ sets SkMatrix to:
751
+
752
+ | A B C | | 1 0 dx | | A B A*dx+B*dy+C |
753
+ Matrix * T(dx, dy) = | D E F | | 0 1 dy | = | D E D*dx+E*dy+F |
754
+ | G H I | | 0 0 1 | | G H G*dx+H*dy+I |
755
+
756
+ @param dx x-axis translation before applying SkMatrix
757
+ @param dy y-axis translation before applying SkMatrix
758
+ */
759
+ SkMatrix& preTranslate(SkScalar dx, SkScalar dy);
760
+
761
+ /** Sets SkMatrix to SkMatrix multiplied by SkMatrix constructed from scaling by (sx, sy)
762
+ about pivot point (px, py).
763
+ This can be thought of as scaling about a pivot point before applying SkMatrix.
764
+
765
+ Given:
766
+
767
+ | A B C | | sx 0 dx |
768
+ Matrix = | D E F |, S(sx, sy, px, py) = | 0 sy dy |
769
+ | G H I | | 0 0 1 |
770
+
771
+ where
772
+
773
+ dx = px - sx * px
774
+ dy = py - sy * py
775
+
776
+ sets SkMatrix to:
777
+
778
+ | A B C | | sx 0 dx | | A*sx B*sy A*dx+B*dy+C |
779
+ Matrix * S(sx, sy, px, py) = | D E F | | 0 sy dy | = | D*sx E*sy D*dx+E*dy+F |
780
+ | G H I | | 0 0 1 | | G*sx H*sy G*dx+H*dy+I |
781
+
782
+ @param sx horizontal scale factor
783
+ @param sy vertical scale factor
784
+ @param px pivot on x-axis
785
+ @param py pivot on y-axis
786
+ */
787
+ SkMatrix& preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py);
788
+
789
+ /** Sets SkMatrix to SkMatrix multiplied by SkMatrix constructed from scaling by (sx, sy)
790
+ about pivot point (0, 0).
791
+ This can be thought of as scaling about the origin before applying SkMatrix.
792
+
793
+ Given:
794
+
795
+ | A B C | | sx 0 0 |
796
+ Matrix = | D E F |, S(sx, sy) = | 0 sy 0 |
797
+ | G H I | | 0 0 1 |
798
+
799
+ sets SkMatrix to:
800
+
801
+ | A B C | | sx 0 0 | | A*sx B*sy C |
802
+ Matrix * S(sx, sy) = | D E F | | 0 sy 0 | = | D*sx E*sy F |
803
+ | G H I | | 0 0 1 | | G*sx H*sy I |
804
+
805
+ @param sx horizontal scale factor
806
+ @param sy vertical scale factor
807
+ */
808
+ SkMatrix& preScale(SkScalar sx, SkScalar sy);
809
+
810
+ /** Sets SkMatrix to SkMatrix multiplied by SkMatrix constructed from rotating by degrees
811
+ about pivot point (px, py).
812
+ This can be thought of as rotating about a pivot point before applying SkMatrix.
813
+
814
+ Positive degrees rotates clockwise.
815
+
816
+ Given:
817
+
818
+ | A B C | | c -s dx |
819
+ Matrix = | D E F |, R(degrees, px, py) = | s c dy |
820
+ | G H I | | 0 0 1 |
821
+
822
+ where
823
+
824
+ c = cos(degrees)
825
+ s = sin(degrees)
826
+ dx = s * py + (1 - c) * px
827
+ dy = -s * px + (1 - c) * py
828
+
829
+ sets SkMatrix to:
830
+
831
+ | A B C | | c -s dx | | Ac+Bs -As+Bc A*dx+B*dy+C |
832
+ Matrix * R(degrees, px, py) = | D E F | | s c dy | = | Dc+Es -Ds+Ec D*dx+E*dy+F |
833
+ | G H I | | 0 0 1 | | Gc+Hs -Gs+Hc G*dx+H*dy+I |
834
+
835
+ @param degrees angle of axes relative to upright axes
836
+ @param px pivot on x-axis
837
+ @param py pivot on y-axis
838
+ */
839
+ SkMatrix& preRotate(SkScalar degrees, SkScalar px, SkScalar py);
840
+
841
+ /** Sets SkMatrix to SkMatrix multiplied by SkMatrix constructed from rotating by degrees
842
+ about pivot point (0, 0).
843
+ This can be thought of as rotating about the origin before applying SkMatrix.
844
+
845
+ Positive degrees rotates clockwise.
846
+
847
+ Given:
848
+
849
+ | A B C | | c -s 0 |
850
+ Matrix = | D E F |, R(degrees, px, py) = | s c 0 |
851
+ | G H I | | 0 0 1 |
852
+
853
+ where
854
+
855
+ c = cos(degrees)
856
+ s = sin(degrees)
857
+
858
+ sets SkMatrix to:
859
+
860
+ | A B C | | c -s 0 | | Ac+Bs -As+Bc C |
861
+ Matrix * R(degrees, px, py) = | D E F | | s c 0 | = | Dc+Es -Ds+Ec F |
862
+ | G H I | | 0 0 1 | | Gc+Hs -Gs+Hc I |
863
+
864
+ @param degrees angle of axes relative to upright axes
865
+ */
866
+ SkMatrix& preRotate(SkScalar degrees);
867
+
868
+ /** Sets SkMatrix to SkMatrix multiplied by SkMatrix constructed from skewing by (kx, ky)
869
+ about pivot point (px, py).
870
+ This can be thought of as skewing about a pivot point before applying SkMatrix.
871
+
872
+ Given:
873
+
874
+ | A B C | | 1 kx dx |
875
+ Matrix = | D E F |, K(kx, ky, px, py) = | ky 1 dy |
876
+ | G H I | | 0 0 1 |
877
+
878
+ where
879
+
880
+ dx = -kx * py
881
+ dy = -ky * px
882
+
883
+ sets SkMatrix to:
884
+
885
+ | A B C | | 1 kx dx | | A+B*ky A*kx+B A*dx+B*dy+C |
886
+ Matrix * K(kx, ky, px, py) = | D E F | | ky 1 dy | = | D+E*ky D*kx+E D*dx+E*dy+F |
887
+ | G H I | | 0 0 1 | | G+H*ky G*kx+H G*dx+H*dy+I |
888
+
889
+ @param kx horizontal skew factor
890
+ @param ky vertical skew factor
891
+ @param px pivot on x-axis
892
+ @param py pivot on y-axis
893
+ */
894
+ SkMatrix& preSkew(SkScalar kx, SkScalar ky, SkScalar px, SkScalar py);
895
+
896
+ /** Sets SkMatrix to SkMatrix multiplied by SkMatrix constructed from skewing by (kx, ky)
897
+ about pivot point (0, 0).
898
+ This can be thought of as skewing about the origin before applying SkMatrix.
899
+
900
+ Given:
901
+
902
+ | A B C | | 1 kx 0 |
903
+ Matrix = | D E F |, K(kx, ky) = | ky 1 0 |
904
+ | G H I | | 0 0 1 |
905
+
906
+ sets SkMatrix to:
907
+
908
+ | A B C | | 1 kx 0 | | A+B*ky A*kx+B C |
909
+ Matrix * K(kx, ky) = | D E F | | ky 1 0 | = | D+E*ky D*kx+E F |
910
+ | G H I | | 0 0 1 | | G+H*ky G*kx+H I |
911
+
912
+ @param kx horizontal skew factor
913
+ @param ky vertical skew factor
914
+ */
915
+ SkMatrix& preSkew(SkScalar kx, SkScalar ky);
916
+
917
+ /** Sets SkMatrix to SkMatrix multiplied by SkMatrix other.
918
+ This can be thought of mapping by other before applying SkMatrix.
919
+
920
+ Given:
921
+
922
+ | A B C | | J K L |
923
+ Matrix = | D E F |, other = | M N O |
924
+ | G H I | | P Q R |
925
+
926
+ sets SkMatrix to:
927
+
928
+ | A B C | | J K L | | AJ+BM+CP AK+BN+CQ AL+BO+CR |
929
+ Matrix * other = | D E F | * | M N O | = | DJ+EM+FP DK+EN+FQ DL+EO+FR |
930
+ | G H I | | P Q R | | GJ+HM+IP GK+HN+IQ GL+HO+IR |
931
+
932
+ @param other SkMatrix on right side of multiply expression
933
+ */
934
+ SkMatrix& preConcat(const SkMatrix& other);
935
+
936
+ /** Sets SkMatrix to SkMatrix constructed from translation (dx, dy) multiplied by SkMatrix.
937
+ This can be thought of as moving the point to be mapped after applying SkMatrix.
938
+
939
+ Given:
940
+
941
+ | J K L | | 1 0 dx |
942
+ Matrix = | M N O |, T(dx, dy) = | 0 1 dy |
943
+ | P Q R | | 0 0 1 |
944
+
945
+ sets SkMatrix to:
946
+
947
+ | 1 0 dx | | J K L | | J+dx*P K+dx*Q L+dx*R |
948
+ T(dx, dy) * Matrix = | 0 1 dy | | M N O | = | M+dy*P N+dy*Q O+dy*R |
949
+ | 0 0 1 | | P Q R | | P Q R |
950
+
951
+ @param dx x-axis translation after applying SkMatrix
952
+ @param dy y-axis translation after applying SkMatrix
953
+ */
954
+ SkMatrix& postTranslate(SkScalar dx, SkScalar dy);
955
+
956
+ /** Sets SkMatrix to SkMatrix constructed from scaling by (sx, sy) about pivot point
957
+ (px, py), multiplied by SkMatrix.
958
+ This can be thought of as scaling about a pivot point after applying SkMatrix.
959
+
960
+ Given:
961
+
962
+ | J K L | | sx 0 dx |
963
+ Matrix = | M N O |, S(sx, sy, px, py) = | 0 sy dy |
964
+ | P Q R | | 0 0 1 |
965
+
966
+ where
967
+
968
+ dx = px - sx * px
969
+ dy = py - sy * py
970
+
971
+ sets SkMatrix to:
972
+
973
+ | sx 0 dx | | J K L | | sx*J+dx*P sx*K+dx*Q sx*L+dx+R |
974
+ S(sx, sy, px, py) * Matrix = | 0 sy dy | | M N O | = | sy*M+dy*P sy*N+dy*Q sy*O+dy*R |
975
+ | 0 0 1 | | P Q R | | P Q R |
976
+
977
+ @param sx horizontal scale factor
978
+ @param sy vertical scale factor
979
+ @param px pivot on x-axis
980
+ @param py pivot on y-axis
981
+ */
982
+ SkMatrix& postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py);
983
+
984
+ /** Sets SkMatrix to SkMatrix constructed from scaling by (sx, sy) about pivot point
985
+ (0, 0), multiplied by SkMatrix.
986
+ This can be thought of as scaling about the origin after applying SkMatrix.
987
+
988
+ Given:
989
+
990
+ | J K L | | sx 0 0 |
991
+ Matrix = | M N O |, S(sx, sy) = | 0 sy 0 |
992
+ | P Q R | | 0 0 1 |
993
+
994
+ sets SkMatrix to:
995
+
996
+ | sx 0 0 | | J K L | | sx*J sx*K sx*L |
997
+ S(sx, sy) * Matrix = | 0 sy 0 | | M N O | = | sy*M sy*N sy*O |
998
+ | 0 0 1 | | P Q R | | P Q R |
999
+
1000
+ @param sx horizontal scale factor
1001
+ @param sy vertical scale factor
1002
+ */
1003
+ SkMatrix& postScale(SkScalar sx, SkScalar sy);
1004
+
1005
+ /** Sets SkMatrix to SkMatrix constructed from rotating by degrees about pivot point
1006
+ (px, py), multiplied by SkMatrix.
1007
+ This can be thought of as rotating about a pivot point after applying SkMatrix.
1008
+
1009
+ Positive degrees rotates clockwise.
1010
+
1011
+ Given:
1012
+
1013
+ | J K L | | c -s dx |
1014
+ Matrix = | M N O |, R(degrees, px, py) = | s c dy |
1015
+ | P Q R | | 0 0 1 |
1016
+
1017
+ where
1018
+
1019
+ c = cos(degrees)
1020
+ s = sin(degrees)
1021
+ dx = s * py + (1 - c) * px
1022
+ dy = -s * px + (1 - c) * py
1023
+
1024
+ sets SkMatrix to:
1025
+
1026
+ |c -s dx| |J K L| |cJ-sM+dx*P cK-sN+dx*Q cL-sO+dx+R|
1027
+ R(degrees, px, py) * Matrix = |s c dy| |M N O| = |sJ+cM+dy*P sK+cN+dy*Q sL+cO+dy*R|
1028
+ |0 0 1| |P Q R| | P Q R|
1029
+
1030
+ @param degrees angle of axes relative to upright axes
1031
+ @param px pivot on x-axis
1032
+ @param py pivot on y-axis
1033
+ */
1034
+ SkMatrix& postRotate(SkScalar degrees, SkScalar px, SkScalar py);
1035
+
1036
+ /** Sets SkMatrix to SkMatrix constructed from rotating by degrees about pivot point
1037
+ (0, 0), multiplied by SkMatrix.
1038
+ This can be thought of as rotating about the origin after applying SkMatrix.
1039
+
1040
+ Positive degrees rotates clockwise.
1041
+
1042
+ Given:
1043
+
1044
+ | J K L | | c -s 0 |
1045
+ Matrix = | M N O |, R(degrees, px, py) = | s c 0 |
1046
+ | P Q R | | 0 0 1 |
1047
+
1048
+ where
1049
+
1050
+ c = cos(degrees)
1051
+ s = sin(degrees)
1052
+
1053
+ sets SkMatrix to:
1054
+
1055
+ | c -s dx | | J K L | | cJ-sM cK-sN cL-sO |
1056
+ R(degrees, px, py) * Matrix = | s c dy | | M N O | = | sJ+cM sK+cN sL+cO |
1057
+ | 0 0 1 | | P Q R | | P Q R |
1058
+
1059
+ @param degrees angle of axes relative to upright axes
1060
+ */
1061
+ SkMatrix& postRotate(SkScalar degrees);
1062
+
1063
+ /** Sets SkMatrix to SkMatrix constructed from skewing by (kx, ky) about pivot point
1064
+ (px, py), multiplied by SkMatrix.
1065
+ This can be thought of as skewing about a pivot point after applying SkMatrix.
1066
+
1067
+ Given:
1068
+
1069
+ | J K L | | 1 kx dx |
1070
+ Matrix = | M N O |, K(kx, ky, px, py) = | ky 1 dy |
1071
+ | P Q R | | 0 0 1 |
1072
+
1073
+ where
1074
+
1075
+ dx = -kx * py
1076
+ dy = -ky * px
1077
+
1078
+ sets SkMatrix to:
1079
+
1080
+ | 1 kx dx| |J K L| |J+kx*M+dx*P K+kx*N+dx*Q L+kx*O+dx+R|
1081
+ K(kx, ky, px, py) * Matrix = |ky 1 dy| |M N O| = |ky*J+M+dy*P ky*K+N+dy*Q ky*L+O+dy*R|
1082
+ | 0 0 1| |P Q R| | P Q R|
1083
+
1084
+ @param kx horizontal skew factor
1085
+ @param ky vertical skew factor
1086
+ @param px pivot on x-axis
1087
+ @param py pivot on y-axis
1088
+ */
1089
+ SkMatrix& postSkew(SkScalar kx, SkScalar ky, SkScalar px, SkScalar py);
1090
+
1091
+ /** Sets SkMatrix to SkMatrix constructed from skewing by (kx, ky) about pivot point
1092
+ (0, 0), multiplied by SkMatrix.
1093
+ This can be thought of as skewing about the origin after applying SkMatrix.
1094
+
1095
+ Given:
1096
+
1097
+ | J K L | | 1 kx 0 |
1098
+ Matrix = | M N O |, K(kx, ky) = | ky 1 0 |
1099
+ | P Q R | | 0 0 1 |
1100
+
1101
+ sets SkMatrix to:
1102
+
1103
+ | 1 kx 0 | | J K L | | J+kx*M K+kx*N L+kx*O |
1104
+ K(kx, ky) * Matrix = | ky 1 0 | | M N O | = | ky*J+M ky*K+N ky*L+O |
1105
+ | 0 0 1 | | P Q R | | P Q R |
1106
+
1107
+ @param kx horizontal skew factor
1108
+ @param ky vertical skew factor
1109
+ */
1110
+ SkMatrix& postSkew(SkScalar kx, SkScalar ky);
1111
+
1112
+ /** Sets SkMatrix to SkMatrix other multiplied by SkMatrix.
1113
+ This can be thought of mapping by other after applying SkMatrix.
1114
+
1115
+ Given:
1116
+
1117
+ | J K L | | A B C |
1118
+ Matrix = | M N O |, other = | D E F |
1119
+ | P Q R | | G H I |
1120
+
1121
+ sets SkMatrix to:
1122
+
1123
+ | A B C | | J K L | | AJ+BM+CP AK+BN+CQ AL+BO+CR |
1124
+ other * Matrix = | D E F | * | M N O | = | DJ+EM+FP DK+EN+FQ DL+EO+FR |
1125
+ | G H I | | P Q R | | GJ+HM+IP GK+HN+IQ GL+HO+IR |
1126
+
1127
+ @param other SkMatrix on left side of multiply expression
1128
+ */
1129
+ SkMatrix& postConcat(const SkMatrix& other);
1130
+
1131
+ #ifndef SK_SUPPORT_LEGACY_MATRIX_RECTTORECT
1132
+ private:
1133
+ #endif
1134
+ /** Sets SkMatrix to scale and translate src SkRect to dst SkRect. stf selects whether
1135
+ mapping completely fills dst or preserves the aspect ratio, and how to align
1136
+ src within dst. Returns false if src is empty, and sets SkMatrix to identity.
1137
+ Returns true if dst is empty, and sets SkMatrix to:
1138
+
1139
+ | 0 0 0 |
1140
+ | 0 0 0 |
1141
+ | 0 0 1 |
1142
+
1143
+ @param src SkRect to map from
1144
+ @param dst SkRect to map to
1145
+ @return true if SkMatrix can represent SkRect mapping
1146
+
1147
+ example: https://fiddle.skia.org/c/@Matrix_setRectToRect
1148
+ */
1149
+ bool setRectToRect(const SkRect& src, const SkRect& dst, ScaleToFit stf);
1150
+
1151
+ /** Returns SkMatrix set to scale and translate src SkRect to dst SkRect. stf selects
1152
+ whether mapping completely fills dst or preserves the aspect ratio, and how to
1153
+ align src within dst. Returns the identity SkMatrix if src is empty. If dst is
1154
+ empty, returns SkMatrix set to:
1155
+
1156
+ | 0 0 0 |
1157
+ | 0 0 0 |
1158
+ | 0 0 1 |
1159
+
1160
+ @param src SkRect to map from
1161
+ @param dst SkRect to map to
1162
+ @return SkMatrix mapping src to dst
1163
+ */
1164
+ static SkMatrix MakeRectToRect(const SkRect& src, const SkRect& dst, ScaleToFit stf) {
1165
+ SkMatrix m;
1166
+ m.setRectToRect(src, dst, stf);
1167
+ return m;
1168
+ }
1169
+ #ifndef SK_SUPPORT_LEGACY_MATRIX_RECTTORECT
1170
+ public:
1171
+ #endif
1172
+
1173
+ /** Sets SkMatrix to map src to dst. count must be zero or greater, and four or less.
1174
+
1175
+ If count is zero, sets SkMatrix to identity and returns true.
1176
+ If count is one, sets SkMatrix to translate and returns true.
1177
+ If count is two or more, sets SkMatrix to map SkPoint if possible; returns false
1178
+ if SkMatrix cannot be constructed. If count is four, SkMatrix may include
1179
+ perspective.
1180
+
1181
+ @param src SkPoint to map from
1182
+ @param dst SkPoint to map to
1183
+ @param count number of SkPoint in src and dst
1184
+ @return true if SkMatrix was constructed successfully
1185
+
1186
+ example: https://fiddle.skia.org/c/@Matrix_setPolyToPoly
1187
+ */
1188
+ bool setPolyToPoly(const SkPoint src[], const SkPoint dst[], int count);
1189
+
1190
+ /** Sets inverse to reciprocal matrix, returning true if SkMatrix can be inverted.
1191
+ Geometrically, if SkMatrix maps from source to destination, inverse SkMatrix
1192
+ maps from destination to source. If SkMatrix can not be inverted, inverse is
1193
+ unchanged.
1194
+
1195
+ @param inverse storage for inverted SkMatrix; may be nullptr
1196
+ @return true if SkMatrix can be inverted
1197
+ */
1198
+ bool SK_WARN_UNUSED_RESULT invert(SkMatrix* inverse) const {
1199
+ // Allow the trivial case to be inlined.
1200
+ if (this->isIdentity()) {
1201
+ if (inverse) {
1202
+ inverse->reset();
1203
+ }
1204
+ return true;
1205
+ }
1206
+ return this->invertNonIdentity(inverse);
1207
+ }
1208
+
1209
+ /** Fills affine with identity values in column major order.
1210
+ Sets affine to:
1211
+
1212
+ | 1 0 0 |
1213
+ | 0 1 0 |
1214
+
1215
+ Affine 3 by 2 matrices in column major order are used by OpenGL and XPS.
1216
+
1217
+ @param affine storage for 3 by 2 affine matrix
1218
+
1219
+ example: https://fiddle.skia.org/c/@Matrix_SetAffineIdentity
1220
+ */
1221
+ static void SetAffineIdentity(SkScalar affine[6]);
1222
+
1223
+ /** Fills affine in column major order. Sets affine to:
1224
+
1225
+ | scale-x skew-x translate-x |
1226
+ | skew-y scale-y translate-y |
1227
+
1228
+ If SkMatrix contains perspective, returns false and leaves affine unchanged.
1229
+
1230
+ @param affine storage for 3 by 2 affine matrix; may be nullptr
1231
+ @return true if SkMatrix does not contain perspective
1232
+ */
1233
+ bool SK_WARN_UNUSED_RESULT asAffine(SkScalar affine[6]) const;
1234
+
1235
+ /** Sets SkMatrix to affine values, passed in column major order. Given affine,
1236
+ column, then row, as:
1237
+
1238
+ | scale-x skew-x translate-x |
1239
+ | skew-y scale-y translate-y |
1240
+
1241
+ SkMatrix is set, row, then column, to:
1242
+
1243
+ | scale-x skew-x translate-x |
1244
+ | skew-y scale-y translate-y |
1245
+ | 0 0 1 |
1246
+
1247
+ @param affine 3 by 2 affine matrix
1248
+ */
1249
+ SkMatrix& setAffine(const SkScalar affine[6]);
1250
+
1251
+ /**
1252
+ * A matrix is categorized as 'perspective' if the bottom row is not [0, 0, 1].
1253
+ * However, for most uses (e.g. mapPoints) a bottom row of [0, 0, X] behaves like a
1254
+ * non-perspective matrix, though it will be categorized as perspective. Calling
1255
+ * normalizePerspective() will change the matrix such that, if its bottom row was [0, 0, X],
1256
+ * it will be changed to [0, 0, 1] by scaling the rest of the matrix by 1/X.
1257
+ *
1258
+ * | A B C | | A/X B/X C/X |
1259
+ * | D E F | -> | D/X E/X F/X | for X != 0
1260
+ * | 0 0 X | | 0 0 1 |
1261
+ */
1262
+ void normalizePerspective() {
1263
+ if (fMat[8] != 1) {
1264
+ this->doNormalizePerspective();
1265
+ }
1266
+ }
1267
+
1268
+ /** Maps src SkPoint array of length count to dst SkPoint array of equal or greater
1269
+ length. SkPoint are mapped by multiplying each SkPoint by SkMatrix. Given:
1270
+
1271
+ | A B C | | x |
1272
+ Matrix = | D E F |, pt = | y |
1273
+ | G H I | | 1 |
1274
+
1275
+ where
1276
+
1277
+ for (i = 0; i < count; ++i) {
1278
+ x = src[i].fX
1279
+ y = src[i].fY
1280
+ }
1281
+
1282
+ each dst SkPoint is computed as:
1283
+
1284
+ |A B C| |x| Ax+By+C Dx+Ey+F
1285
+ Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , -------
1286
+ |G H I| |1| Gx+Hy+I Gx+Hy+I
1287
+
1288
+ src and dst may point to the same storage.
1289
+
1290
+ @param dst storage for mapped SkPoint
1291
+ @param src SkPoint to transform
1292
+ @param count number of SkPoint to transform
1293
+
1294
+ example: https://fiddle.skia.org/c/@Matrix_mapPoints
1295
+ */
1296
+ void mapPoints(SkPoint dst[], const SkPoint src[], int count) const;
1297
+
1298
+ /** Maps pts SkPoint array of length count in place. SkPoint are mapped by multiplying
1299
+ each SkPoint by SkMatrix. Given:
1300
+
1301
+ | A B C | | x |
1302
+ Matrix = | D E F |, pt = | y |
1303
+ | G H I | | 1 |
1304
+
1305
+ where
1306
+
1307
+ for (i = 0; i < count; ++i) {
1308
+ x = pts[i].fX
1309
+ y = pts[i].fY
1310
+ }
1311
+
1312
+ each resulting pts SkPoint is computed as:
1313
+
1314
+ |A B C| |x| Ax+By+C Dx+Ey+F
1315
+ Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , -------
1316
+ |G H I| |1| Gx+Hy+I Gx+Hy+I
1317
+
1318
+ @param pts storage for mapped SkPoint
1319
+ @param count number of SkPoint to transform
1320
+ */
1321
+ void mapPoints(SkPoint pts[], int count) const {
1322
+ this->mapPoints(pts, pts, count);
1323
+ }
1324
+
1325
+ /** Maps src SkPoint3 array of length count to dst SkPoint3 array, which must of length count or
1326
+ greater. SkPoint3 array is mapped by multiplying each SkPoint3 by SkMatrix. Given:
1327
+
1328
+ | A B C | | x |
1329
+ Matrix = | D E F |, src = | y |
1330
+ | G H I | | z |
1331
+
1332
+ each resulting dst SkPoint is computed as:
1333
+
1334
+ |A B C| |x|
1335
+ Matrix * src = |D E F| |y| = |Ax+By+Cz Dx+Ey+Fz Gx+Hy+Iz|
1336
+ |G H I| |z|
1337
+
1338
+ @param dst storage for mapped SkPoint3 array
1339
+ @param src SkPoint3 array to transform
1340
+ @param count items in SkPoint3 array to transform
1341
+
1342
+ example: https://fiddle.skia.org/c/@Matrix_mapHomogeneousPoints
1343
+ */
1344
+ void mapHomogeneousPoints(SkPoint3 dst[], const SkPoint3 src[], int count) const;
1345
+
1346
+ /**
1347
+ * Returns homogeneous points, starting with 2D src points (with implied w = 1).
1348
+ */
1349
+ void mapHomogeneousPoints(SkPoint3 dst[], const SkPoint src[], int count) const;
1350
+
1351
+ /** Returns SkPoint pt multiplied by SkMatrix. Given:
1352
+
1353
+ | A B C | | x |
1354
+ Matrix = | D E F |, pt = | y |
1355
+ | G H I | | 1 |
1356
+
1357
+ result is computed as:
1358
+
1359
+ |A B C| |x| Ax+By+C Dx+Ey+F
1360
+ Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , -------
1361
+ |G H I| |1| Gx+Hy+I Gx+Hy+I
1362
+
1363
+ @param p SkPoint to map
1364
+ @return mapped SkPoint
1365
+ */
1366
+ SkPoint mapPoint(SkPoint pt) const {
1367
+ SkPoint result;
1368
+ this->mapXY(pt.x(), pt.y(), &result);
1369
+ return result;
1370
+ }
1371
+
1372
+ /** Maps SkPoint (x, y) to result. SkPoint is mapped by multiplying by SkMatrix. Given:
1373
+
1374
+ | A B C | | x |
1375
+ Matrix = | D E F |, pt = | y |
1376
+ | G H I | | 1 |
1377
+
1378
+ result is computed as:
1379
+
1380
+ |A B C| |x| Ax+By+C Dx+Ey+F
1381
+ Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , -------
1382
+ |G H I| |1| Gx+Hy+I Gx+Hy+I
1383
+
1384
+ @param x x-axis value of SkPoint to map
1385
+ @param y y-axis value of SkPoint to map
1386
+ @param result storage for mapped SkPoint
1387
+
1388
+ example: https://fiddle.skia.org/c/@Matrix_mapXY
1389
+ */
1390
+ void mapXY(SkScalar x, SkScalar y, SkPoint* result) const;
1391
+
1392
+ /** Returns SkPoint (x, y) multiplied by SkMatrix. Given:
1393
+
1394
+ | A B C | | x |
1395
+ Matrix = | D E F |, pt = | y |
1396
+ | G H I | | 1 |
1397
+
1398
+ result is computed as:
1399
+
1400
+ |A B C| |x| Ax+By+C Dx+Ey+F
1401
+ Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , -------
1402
+ |G H I| |1| Gx+Hy+I Gx+Hy+I
1403
+
1404
+ @param x x-axis value of SkPoint to map
1405
+ @param y y-axis value of SkPoint to map
1406
+ @return mapped SkPoint
1407
+ */
1408
+ SkPoint mapXY(SkScalar x, SkScalar y) const {
1409
+ SkPoint result;
1410
+ this->mapXY(x,y, &result);
1411
+ return result;
1412
+ }
1413
+
1414
+
1415
+ /** Returns (0, 0) multiplied by SkMatrix. Given:
1416
+
1417
+ | A B C | | 0 |
1418
+ Matrix = | D E F |, pt = | 0 |
1419
+ | G H I | | 1 |
1420
+
1421
+ result is computed as:
1422
+
1423
+ |A B C| |0| C F
1424
+ Matrix * pt = |D E F| |0| = |C F I| = - , -
1425
+ |G H I| |1| I I
1426
+
1427
+ @return mapped (0, 0)
1428
+ */
1429
+ SkPoint mapOrigin() const {
1430
+ SkScalar x = this->getTranslateX(),
1431
+ y = this->getTranslateY();
1432
+ if (this->hasPerspective()) {
1433
+ SkScalar w = fMat[kMPersp2];
1434
+ if (w) { w = 1 / w; }
1435
+ x *= w;
1436
+ y *= w;
1437
+ }
1438
+ return {x, y};
1439
+ }
1440
+
1441
+ /** Maps src vector array of length count to vector SkPoint array of equal or greater
1442
+ length. Vectors are mapped by multiplying each vector by SkMatrix, treating
1443
+ SkMatrix translation as zero. Given:
1444
+
1445
+ | A B 0 | | x |
1446
+ Matrix = | D E 0 |, src = | y |
1447
+ | G H I | | 1 |
1448
+
1449
+ where
1450
+
1451
+ for (i = 0; i < count; ++i) {
1452
+ x = src[i].fX
1453
+ y = src[i].fY
1454
+ }
1455
+
1456
+ each dst vector is computed as:
1457
+
1458
+ |A B 0| |x| Ax+By Dx+Ey
1459
+ Matrix * src = |D E 0| |y| = |Ax+By Dx+Ey Gx+Hy+I| = ------- , -------
1460
+ |G H I| |1| Gx+Hy+I Gx+Hy+I
1461
+
1462
+ src and dst may point to the same storage.
1463
+
1464
+ @param dst storage for mapped vectors
1465
+ @param src vectors to transform
1466
+ @param count number of vectors to transform
1467
+
1468
+ example: https://fiddle.skia.org/c/@Matrix_mapVectors
1469
+ */
1470
+ void mapVectors(SkVector dst[], const SkVector src[], int count) const;
1471
+
1472
+ /** Maps vecs vector array of length count in place, multiplying each vector by
1473
+ SkMatrix, treating SkMatrix translation as zero. Given:
1474
+
1475
+ | A B 0 | | x |
1476
+ Matrix = | D E 0 |, vec = | y |
1477
+ | G H I | | 1 |
1478
+
1479
+ where
1480
+
1481
+ for (i = 0; i < count; ++i) {
1482
+ x = vecs[i].fX
1483
+ y = vecs[i].fY
1484
+ }
1485
+
1486
+ each result vector is computed as:
1487
+
1488
+ |A B 0| |x| Ax+By Dx+Ey
1489
+ Matrix * vec = |D E 0| |y| = |Ax+By Dx+Ey Gx+Hy+I| = ------- , -------
1490
+ |G H I| |1| Gx+Hy+I Gx+Hy+I
1491
+
1492
+ @param vecs vectors to transform, and storage for mapped vectors
1493
+ @param count number of vectors to transform
1494
+ */
1495
+ void mapVectors(SkVector vecs[], int count) const {
1496
+ this->mapVectors(vecs, vecs, count);
1497
+ }
1498
+
1499
+ /** Maps vector (dx, dy) to result. Vector is mapped by multiplying by SkMatrix,
1500
+ treating SkMatrix translation as zero. Given:
1501
+
1502
+ | A B 0 | | dx |
1503
+ Matrix = | D E 0 |, vec = | dy |
1504
+ | G H I | | 1 |
1505
+
1506
+ each result vector is computed as:
1507
+
1508
+ |A B 0| |dx| A*dx+B*dy D*dx+E*dy
1509
+ Matrix * vec = |D E 0| |dy| = |A*dx+B*dy D*dx+E*dy G*dx+H*dy+I| = ----------- , -----------
1510
+ |G H I| | 1| G*dx+H*dy+I G*dx+*dHy+I
1511
+
1512
+ @param dx x-axis value of vector to map
1513
+ @param dy y-axis value of vector to map
1514
+ @param result storage for mapped vector
1515
+ */
1516
+ void mapVector(SkScalar dx, SkScalar dy, SkVector* result) const {
1517
+ SkVector vec = { dx, dy };
1518
+ this->mapVectors(result, &vec, 1);
1519
+ }
1520
+
1521
+ /** Returns vector (dx, dy) multiplied by SkMatrix, treating SkMatrix translation as zero.
1522
+ Given:
1523
+
1524
+ | A B 0 | | dx |
1525
+ Matrix = | D E 0 |, vec = | dy |
1526
+ | G H I | | 1 |
1527
+
1528
+ each result vector is computed as:
1529
+
1530
+ |A B 0| |dx| A*dx+B*dy D*dx+E*dy
1531
+ Matrix * vec = |D E 0| |dy| = |A*dx+B*dy D*dx+E*dy G*dx+H*dy+I| = ----------- , -----------
1532
+ |G H I| | 1| G*dx+H*dy+I G*dx+*dHy+I
1533
+
1534
+ @param dx x-axis value of vector to map
1535
+ @param dy y-axis value of vector to map
1536
+ @return mapped vector
1537
+ */
1538
+ SkVector mapVector(SkScalar dx, SkScalar dy) const {
1539
+ SkVector vec = { dx, dy };
1540
+ this->mapVectors(&vec, &vec, 1);
1541
+ return vec;
1542
+ }
1543
+
1544
+ /** Sets dst to bounds of src corners mapped by SkMatrix.
1545
+ Returns true if mapped corners are dst corners.
1546
+
1547
+ Returned value is the same as calling rectStaysRect().
1548
+
1549
+ @param dst storage for bounds of mapped SkPoint
1550
+ @param src SkRect to map
1551
+ @param pc whether to apply perspective clipping
1552
+ @return true if dst is equivalent to mapped src
1553
+
1554
+ example: https://fiddle.skia.org/c/@Matrix_mapRect
1555
+ */
1556
+ bool mapRect(SkRect* dst, const SkRect& src,
1557
+ SkApplyPerspectiveClip pc = SkApplyPerspectiveClip::kYes) const;
1558
+
1559
+ /** Sets rect to bounds of rect corners mapped by SkMatrix.
1560
+ Returns true if mapped corners are computed rect corners.
1561
+
1562
+ Returned value is the same as calling rectStaysRect().
1563
+
1564
+ @param rect rectangle to map, and storage for bounds of mapped corners
1565
+ @param pc whether to apply perspective clipping
1566
+ @return true if result is equivalent to mapped rect
1567
+ */
1568
+ bool mapRect(SkRect* rect, SkApplyPerspectiveClip pc = SkApplyPerspectiveClip::kYes) const {
1569
+ return this->mapRect(rect, *rect, pc);
1570
+ }
1571
+
1572
+ /** Returns bounds of src corners mapped by SkMatrix.
1573
+
1574
+ @param src rectangle to map
1575
+ @return mapped bounds
1576
+ */
1577
+ SkRect mapRect(const SkRect& src,
1578
+ SkApplyPerspectiveClip pc = SkApplyPerspectiveClip::kYes) const {
1579
+ SkRect dst;
1580
+ (void)this->mapRect(&dst, src, pc);
1581
+ return dst;
1582
+ }
1583
+
1584
+ /** Maps four corners of rect to dst. SkPoint are mapped by multiplying each
1585
+ rect corner by SkMatrix. rect corner is processed in this order:
1586
+ (rect.fLeft, rect.fTop), (rect.fRight, rect.fTop), (rect.fRight, rect.fBottom),
1587
+ (rect.fLeft, rect.fBottom).
1588
+
1589
+ rect may be empty: rect.fLeft may be greater than or equal to rect.fRight;
1590
+ rect.fTop may be greater than or equal to rect.fBottom.
1591
+
1592
+ Given:
1593
+
1594
+ | A B C | | x |
1595
+ Matrix = | D E F |, pt = | y |
1596
+ | G H I | | 1 |
1597
+
1598
+ where pt is initialized from each of (rect.fLeft, rect.fTop),
1599
+ (rect.fRight, rect.fTop), (rect.fRight, rect.fBottom), (rect.fLeft, rect.fBottom),
1600
+ each dst SkPoint is computed as:
1601
+
1602
+ |A B C| |x| Ax+By+C Dx+Ey+F
1603
+ Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , -------
1604
+ |G H I| |1| Gx+Hy+I Gx+Hy+I
1605
+
1606
+ @param dst storage for mapped corner SkPoint
1607
+ @param rect SkRect to map
1608
+
1609
+ Note: this does not perform perspective clipping (as that might result in more than
1610
+ 4 points, so results are suspect if the matrix contains perspective.
1611
+ */
1612
+ void mapRectToQuad(SkPoint dst[4], const SkRect& rect) const {
1613
+ // This could potentially be faster if we only transformed each x and y of the rect once.
1614
+ rect.toQuad(dst);
1615
+ this->mapPoints(dst, 4);
1616
+ }
1617
+
1618
+ /** Sets dst to bounds of src corners mapped by SkMatrix. If matrix contains
1619
+ elements other than scale or translate: asserts if SK_DEBUG is defined;
1620
+ otherwise, results are undefined.
1621
+
1622
+ @param dst storage for bounds of mapped SkPoint
1623
+ @param src SkRect to map
1624
+
1625
+ example: https://fiddle.skia.org/c/@Matrix_mapRectScaleTranslate
1626
+ */
1627
+ void mapRectScaleTranslate(SkRect* dst, const SkRect& src) const;
1628
+
1629
+ /** Returns geometric mean radius of ellipse formed by constructing circle of
1630
+ size radius, and mapping constructed circle with SkMatrix. The result squared is
1631
+ equal to the major axis length times the minor axis length.
1632
+ Result is not meaningful if SkMatrix contains perspective elements.
1633
+
1634
+ @param radius circle size to map
1635
+ @return average mapped radius
1636
+
1637
+ example: https://fiddle.skia.org/c/@Matrix_mapRadius
1638
+ */
1639
+ SkScalar mapRadius(SkScalar radius) const;
1640
+
1641
+ /** Compares a and b; returns true if a and b are numerically equal. Returns true
1642
+ even if sign of zero values are different. Returns false if either SkMatrix
1643
+ contains NaN, even if the other SkMatrix also contains NaN.
1644
+
1645
+ @param a SkMatrix to compare
1646
+ @param b SkMatrix to compare
1647
+ @return true if SkMatrix a and SkMatrix b are numerically equal
1648
+ */
1649
+ friend SK_API bool operator==(const SkMatrix& a, const SkMatrix& b);
1650
+
1651
+ /** Compares a and b; returns true if a and b are not numerically equal. Returns false
1652
+ even if sign of zero values are different. Returns true if either SkMatrix
1653
+ contains NaN, even if the other SkMatrix also contains NaN.
1654
+
1655
+ @param a SkMatrix to compare
1656
+ @param b SkMatrix to compare
1657
+ @return true if SkMatrix a and SkMatrix b are numerically not equal
1658
+ */
1659
+ friend SK_API bool operator!=(const SkMatrix& a, const SkMatrix& b) {
1660
+ return !(a == b);
1661
+ }
1662
+
1663
+ /** Writes text representation of SkMatrix to standard output. Floating point values
1664
+ are written with limited precision; it may not be possible to reconstruct
1665
+ original SkMatrix from output.
1666
+
1667
+ example: https://fiddle.skia.org/c/@Matrix_dump
1668
+ */
1669
+ void dump() const;
1670
+
1671
+ /** Returns the minimum scaling factor of SkMatrix by decomposing the scaling and
1672
+ skewing elements.
1673
+ Returns -1 if scale factor overflows or SkMatrix contains perspective.
1674
+
1675
+ @return minimum scale factor
1676
+
1677
+ example: https://fiddle.skia.org/c/@Matrix_getMinScale
1678
+ */
1679
+ SkScalar getMinScale() const;
1680
+
1681
+ /** Returns the maximum scaling factor of SkMatrix by decomposing the scaling and
1682
+ skewing elements.
1683
+ Returns -1 if scale factor overflows or SkMatrix contains perspective.
1684
+
1685
+ @return maximum scale factor
1686
+
1687
+ example: https://fiddle.skia.org/c/@Matrix_getMaxScale
1688
+ */
1689
+ SkScalar getMaxScale() const;
1690
+
1691
+ /** Sets scaleFactors[0] to the minimum scaling factor, and scaleFactors[1] to the
1692
+ maximum scaling factor. Scaling factors are computed by decomposing
1693
+ the SkMatrix scaling and skewing elements.
1694
+
1695
+ Returns true if scaleFactors are found; otherwise, returns false and sets
1696
+ scaleFactors to undefined values.
1697
+
1698
+ @param scaleFactors storage for minimum and maximum scale factors
1699
+ @return true if scale factors were computed correctly
1700
+ */
1701
+ bool SK_WARN_UNUSED_RESULT getMinMaxScales(SkScalar scaleFactors[2]) const;
1702
+
1703
+ /** Decomposes SkMatrix into scale components and whatever remains. Returns false if
1704
+ SkMatrix could not be decomposed.
1705
+
1706
+ Sets scale to portion of SkMatrix that scale axes. Sets remaining to SkMatrix
1707
+ with scaling factored out. remaining may be passed as nullptr
1708
+ to determine if SkMatrix can be decomposed without computing remainder.
1709
+
1710
+ Returns true if scale components are found. scale and remaining are
1711
+ unchanged if SkMatrix contains perspective; scale factors are not finite, or
1712
+ are nearly zero.
1713
+
1714
+ On success: Matrix = Remaining * scale.
1715
+
1716
+ @param scale axes scaling factors; may be nullptr
1717
+ @param remaining SkMatrix without scaling; may be nullptr
1718
+ @return true if scale can be computed
1719
+
1720
+ example: https://fiddle.skia.org/c/@Matrix_decomposeScale
1721
+ */
1722
+ bool decomposeScale(SkSize* scale, SkMatrix* remaining = nullptr) const;
1723
+
1724
+ /** Returns reference to const identity SkMatrix. Returned SkMatrix is set to:
1725
+
1726
+ | 1 0 0 |
1727
+ | 0 1 0 |
1728
+ | 0 0 1 |
1729
+
1730
+ @return const identity SkMatrix
1731
+
1732
+ example: https://fiddle.skia.org/c/@Matrix_I
1733
+ */
1734
+ static const SkMatrix& I();
1735
+
1736
+ /** Returns reference to a const SkMatrix with invalid values. Returned SkMatrix is set
1737
+ to:
1738
+
1739
+ | SK_ScalarMax SK_ScalarMax SK_ScalarMax |
1740
+ | SK_ScalarMax SK_ScalarMax SK_ScalarMax |
1741
+ | SK_ScalarMax SK_ScalarMax SK_ScalarMax |
1742
+
1743
+ @return const invalid SkMatrix
1744
+
1745
+ example: https://fiddle.skia.org/c/@Matrix_InvalidMatrix
1746
+ */
1747
+ static const SkMatrix& InvalidMatrix();
1748
+
1749
+ /** Returns SkMatrix a multiplied by SkMatrix b.
1750
+
1751
+ Given:
1752
+
1753
+ | A B C | | J K L |
1754
+ a = | D E F |, b = | M N O |
1755
+ | G H I | | P Q R |
1756
+
1757
+ sets SkMatrix to:
1758
+
1759
+ | A B C | | J K L | | AJ+BM+CP AK+BN+CQ AL+BO+CR |
1760
+ a * b = | D E F | * | M N O | = | DJ+EM+FP DK+EN+FQ DL+EO+FR |
1761
+ | G H I | | P Q R | | GJ+HM+IP GK+HN+IQ GL+HO+IR |
1762
+
1763
+ @param a SkMatrix on left side of multiply expression
1764
+ @param b SkMatrix on right side of multiply expression
1765
+ @return SkMatrix computed from a times b
1766
+ */
1767
+ static SkMatrix Concat(const SkMatrix& a, const SkMatrix& b) {
1768
+ SkMatrix result;
1769
+ result.setConcat(a, b);
1770
+ return result;
1771
+ }
1772
+
1773
+ friend SkMatrix operator*(const SkMatrix& a, const SkMatrix& b) {
1774
+ return Concat(a, b);
1775
+ }
1776
+
1777
+ /** Sets internal cache to unknown state. Use to force update after repeated
1778
+ modifications to SkMatrix element reference returned by operator[](int index).
1779
+ */
1780
+ void dirtyMatrixTypeCache() {
1781
+ this->setTypeMask(kUnknown_Mask);
1782
+ }
1783
+
1784
+ /** Initializes SkMatrix with scale and translate elements.
1785
+
1786
+ | sx 0 tx |
1787
+ | 0 sy ty |
1788
+ | 0 0 1 |
1789
+
1790
+ @param sx horizontal scale factor to store
1791
+ @param sy vertical scale factor to store
1792
+ @param tx horizontal translation to store
1793
+ @param ty vertical translation to store
1794
+ */
1795
+ void setScaleTranslate(SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty) {
1796
+ fMat[kMScaleX] = sx;
1797
+ fMat[kMSkewX] = 0;
1798
+ fMat[kMTransX] = tx;
1799
+
1800
+ fMat[kMSkewY] = 0;
1801
+ fMat[kMScaleY] = sy;
1802
+ fMat[kMTransY] = ty;
1803
+
1804
+ fMat[kMPersp0] = 0;
1805
+ fMat[kMPersp1] = 0;
1806
+ fMat[kMPersp2] = 1;
1807
+
1808
+ int mask = 0;
1809
+ if (sx != 1 || sy != 1) {
1810
+ mask |= kScale_Mask;
1811
+ }
1812
+ if (tx != 0.0f || ty != 0.0f) {
1813
+ mask |= kTranslate_Mask;
1814
+ }
1815
+ this->setTypeMask(mask | kRectStaysRect_Mask);
1816
+ }
1817
+
1818
+ /** Returns true if all elements of the matrix are finite. Returns false if any
1819
+ element is infinity, or NaN.
1820
+
1821
+ @return true if matrix has only finite elements
1822
+ */
1823
+ bool isFinite() const { return SkScalarsAreFinite(fMat, 9); }
1824
+
1825
+ private:
1826
+ /** Set if the matrix will map a rectangle to another rectangle. This
1827
+ can be true if the matrix is scale-only, or rotates a multiple of
1828
+ 90 degrees.
1829
+
1830
+ This bit will be set on identity matrices
1831
+ */
1832
+ static constexpr int kRectStaysRect_Mask = 0x10;
1833
+
1834
+ /** Set if the perspective bit is valid even though the rest of
1835
+ the matrix is Unknown.
1836
+ */
1837
+ static constexpr int kOnlyPerspectiveValid_Mask = 0x40;
1838
+
1839
+ static constexpr int kUnknown_Mask = 0x80;
1840
+
1841
+ static constexpr int kORableMasks = kTranslate_Mask |
1842
+ kScale_Mask |
1843
+ kAffine_Mask |
1844
+ kPerspective_Mask;
1845
+
1846
+ static constexpr int kAllMasks = kTranslate_Mask |
1847
+ kScale_Mask |
1848
+ kAffine_Mask |
1849
+ kPerspective_Mask |
1850
+ kRectStaysRect_Mask;
1851
+
1852
+ SkScalar fMat[9];
1853
+ mutable int32_t fTypeMask;
1854
+
1855
+ constexpr SkMatrix(SkScalar sx, SkScalar kx, SkScalar tx,
1856
+ SkScalar ky, SkScalar sy, SkScalar ty,
1857
+ SkScalar p0, SkScalar p1, SkScalar p2, int typeMask)
1858
+ : fMat{sx, kx, tx,
1859
+ ky, sy, ty,
1860
+ p0, p1, p2}
1861
+ , fTypeMask(typeMask) {}
1862
+
1863
+ static void ComputeInv(SkScalar dst[9], const SkScalar src[9], double invDet, bool isPersp);
1864
+
1865
+ uint8_t computeTypeMask() const;
1866
+ uint8_t computePerspectiveTypeMask() const;
1867
+
1868
+ void setTypeMask(int mask) {
1869
+ // allow kUnknown or a valid mask
1870
+ SkASSERT(kUnknown_Mask == mask || (mask & kAllMasks) == mask ||
1871
+ ((kUnknown_Mask | kOnlyPerspectiveValid_Mask) & mask)
1872
+ == (kUnknown_Mask | kOnlyPerspectiveValid_Mask));
1873
+ fTypeMask = mask;
1874
+ }
1875
+
1876
+ void orTypeMask(int mask) {
1877
+ SkASSERT((mask & kORableMasks) == mask);
1878
+ fTypeMask |= mask;
1879
+ }
1880
+
1881
+ void clearTypeMask(int mask) {
1882
+ // only allow a valid mask
1883
+ SkASSERT((mask & kAllMasks) == mask);
1884
+ fTypeMask &= ~mask;
1885
+ }
1886
+
1887
+ TypeMask getPerspectiveTypeMaskOnly() const {
1888
+ if ((fTypeMask & kUnknown_Mask) &&
1889
+ !(fTypeMask & kOnlyPerspectiveValid_Mask)) {
1890
+ fTypeMask = this->computePerspectiveTypeMask();
1891
+ }
1892
+ return (TypeMask)(fTypeMask & 0xF);
1893
+ }
1894
+
1895
+ /** Returns true if we already know that the matrix is identity;
1896
+ false otherwise.
1897
+ */
1898
+ bool isTriviallyIdentity() const {
1899
+ if (fTypeMask & kUnknown_Mask) {
1900
+ return false;
1901
+ }
1902
+ return ((fTypeMask & 0xF) == 0);
1903
+ }
1904
+
1905
+ inline void updateTranslateMask() {
1906
+ if ((fMat[kMTransX] != 0) | (fMat[kMTransY] != 0)) {
1907
+ fTypeMask |= kTranslate_Mask;
1908
+ } else {
1909
+ fTypeMask &= ~kTranslate_Mask;
1910
+ }
1911
+ }
1912
+
1913
+ typedef void (*MapXYProc)(const SkMatrix& mat, SkScalar x, SkScalar y,
1914
+ SkPoint* result);
1915
+
1916
+ static MapXYProc GetMapXYProc(TypeMask mask) {
1917
+ SkASSERT((mask & ~kAllMasks) == 0);
1918
+ return gMapXYProcs[mask & kAllMasks];
1919
+ }
1920
+
1921
+ MapXYProc getMapXYProc() const {
1922
+ return GetMapXYProc(this->getType());
1923
+ }
1924
+
1925
+ typedef void (*MapPtsProc)(const SkMatrix& mat, SkPoint dst[],
1926
+ const SkPoint src[], int count);
1927
+
1928
+ static MapPtsProc GetMapPtsProc(TypeMask mask) {
1929
+ SkASSERT((mask & ~kAllMasks) == 0);
1930
+ return gMapPtsProcs[mask & kAllMasks];
1931
+ }
1932
+
1933
+ MapPtsProc getMapPtsProc() const {
1934
+ return GetMapPtsProc(this->getType());
1935
+ }
1936
+
1937
+ bool SK_WARN_UNUSED_RESULT invertNonIdentity(SkMatrix* inverse) const;
1938
+
1939
+ static bool Poly2Proc(const SkPoint[], SkMatrix*);
1940
+ static bool Poly3Proc(const SkPoint[], SkMatrix*);
1941
+ static bool Poly4Proc(const SkPoint[], SkMatrix*);
1942
+
1943
+ static void Identity_xy(const SkMatrix&, SkScalar, SkScalar, SkPoint*);
1944
+ static void Trans_xy(const SkMatrix&, SkScalar, SkScalar, SkPoint*);
1945
+ static void Scale_xy(const SkMatrix&, SkScalar, SkScalar, SkPoint*);
1946
+ static void ScaleTrans_xy(const SkMatrix&, SkScalar, SkScalar, SkPoint*);
1947
+ static void Rot_xy(const SkMatrix&, SkScalar, SkScalar, SkPoint*);
1948
+ static void RotTrans_xy(const SkMatrix&, SkScalar, SkScalar, SkPoint*);
1949
+ static void Persp_xy(const SkMatrix&, SkScalar, SkScalar, SkPoint*);
1950
+
1951
+ static const MapXYProc gMapXYProcs[];
1952
+
1953
+ static void Identity_pts(const SkMatrix&, SkPoint[], const SkPoint[], int);
1954
+ static void Trans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int);
1955
+ static void Scale_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int);
1956
+ static void ScaleTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[],
1957
+ int count);
1958
+ static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int);
1959
+
1960
+ static void Affine_vpts(const SkMatrix&, SkPoint dst[], const SkPoint[], int);
1961
+
1962
+ static const MapPtsProc gMapPtsProcs[];
1963
+
1964
+ // return the number of bytes written, whether or not buffer is null
1965
+ size_t writeToMemory(void* buffer) const;
1966
+ /**
1967
+ * Reads data from the buffer parameter
1968
+ *
1969
+ * @param buffer Memory to read from
1970
+ * @param length Amount of memory available in the buffer
1971
+ * @return number of bytes read (must be a multiple of 4) or
1972
+ * 0 if there was not enough memory available
1973
+ */
1974
+ size_t readFromMemory(const void* buffer, size_t length);
1975
+
1976
+ // legacy method -- still needed? why not just postScale(1/divx, ...)?
1977
+ bool postIDiv(int divx, int divy);
1978
+ void doNormalizePerspective();
1979
+
1980
+ friend class SkPerspIter;
1981
+ friend class SkMatrixPriv;
1982
+ friend class SerializationTest;
1983
+ };
1984
+ SK_END_REQUIRE_DENSE
1985
+
1986
+ #endif