@shopify/react-native-skia 0.1.128 → 0.1.131

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1659) hide show
  1. package/README.md +8 -0
  2. package/android/cpp/jni/JniSkiaDrawView.cpp +3 -2
  3. package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +1 -0
  4. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +2 -1
  5. package/cpp/api/JsiSkCanvas.h +2 -2
  6. package/cpp/api/JsiSkMatrix.h +40 -27
  7. package/cpp/api/JsiSkPaint.h +3 -1
  8. package/cpp/api/JsiSkPath.h +67 -61
  9. package/cpp/api/JsiSkPathFactory.h +14 -1
  10. package/cpp/api/JsiSkRuntimeEffect.h +7 -9
  11. package/cpp/api/JsiSkRuntimeShaderBuilder.h +18 -0
  12. package/cpp/api/JsiSkTypeface.h +11 -2
  13. package/cpp/api/JsiSkTypefaceFactory.h +5 -1
  14. package/cpp/api/JsiSkVertices.h +0 -2
  15. package/cpp/rnskia/RNSkInfoParameter.h +2 -0
  16. package/cpp/rnskia/values/RNSkValue.h +1 -1
  17. package/cpp/skia/include/codec/SkCodec.h +7 -1
  18. package/cpp/skia/include/core/SkAlphaType.h +45 -0
  19. package/cpp/skia/include/core/SkBitmap.h +4 -2
  20. package/cpp/skia/include/core/SkCanvas.h +31 -20
  21. package/cpp/skia/include/core/SkColor.h +1 -1
  22. package/cpp/skia/include/core/SkColorFilter.h +1 -0
  23. package/cpp/skia/include/core/SkColorType.h +66 -0
  24. package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +1 -1
  25. package/cpp/skia/include/core/SkDrawable.h +7 -0
  26. package/cpp/skia/include/core/SkEncodedImageFormat.h +1 -0
  27. package/cpp/skia/include/core/SkFont.h +4 -3
  28. package/cpp/skia/include/core/SkFontArguments.h +33 -1
  29. package/cpp/skia/include/core/SkGraphics.h +13 -0
  30. package/cpp/skia/include/core/SkImage.h +67 -22
  31. package/cpp/skia/include/core/SkImageEncoder.h +0 -3
  32. package/cpp/skia/include/core/SkImageGenerator.h +4 -3
  33. package/cpp/skia/include/core/SkImageInfo.h +35 -142
  34. package/cpp/skia/include/core/SkMesh.h +303 -0
  35. package/cpp/skia/include/core/SkMilestone.h +1 -1
  36. package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +30 -0
  37. package/cpp/skia/include/core/SkPaint.h +4 -19
  38. package/cpp/skia/include/core/SkPath.h +20 -33
  39. package/cpp/skia/include/core/SkPathBuilder.h +1 -6
  40. package/cpp/skia/include/core/SkPixelRef.h +1 -1
  41. package/cpp/skia/include/core/SkPixmap.h +3 -2
  42. package/cpp/skia/include/core/SkRSXform.h +1 -1
  43. package/cpp/skia/include/core/SkSamplingOptions.h +16 -5
  44. package/cpp/skia/include/core/SkSpan.h +5 -5
  45. package/cpp/skia/include/core/SkString.h +5 -8
  46. package/cpp/skia/include/core/SkSurface.h +21 -0
  47. package/cpp/skia/include/core/SkTypeface.h +20 -4
  48. package/cpp/skia/include/core/SkTypes.h +9 -5
  49. package/cpp/skia/include/effects/SkGradientShader.h +9 -18
  50. package/cpp/skia/include/effects/SkRuntimeEffect.h +16 -12
  51. package/cpp/skia/include/gpu/GpuTypes.h +32 -0
  52. package/cpp/skia/include/gpu/GrBackendSemaphore.h +1 -1
  53. package/cpp/skia/include/gpu/GrBackendSurface.h +6 -5
  54. package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +1 -1
  55. package/cpp/skia/include/gpu/GrContextOptions.h +11 -20
  56. package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +7 -0
  57. package/cpp/skia/include/gpu/GrDirectContext.h +16 -11
  58. package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +0 -2
  59. package/cpp/skia/include/gpu/GrRecordingContext.h +14 -7
  60. package/cpp/skia/include/gpu/GrSurfaceInfo.h +6 -6
  61. package/cpp/skia/include/gpu/dawn/GrDawnTypes.h +1 -1
  62. package/cpp/skia/include/gpu/gl/GrGLFunctions.h +3 -1
  63. package/cpp/skia/include/gpu/gl/GrGLInterface.h +2 -2
  64. package/cpp/skia/include/gpu/graphite/BackendTexture.h +64 -0
  65. package/cpp/skia/include/gpu/graphite/Context.h +124 -0
  66. package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +71 -0
  67. package/cpp/skia/include/gpu/graphite/Recorder.h +104 -0
  68. package/cpp/skia/include/gpu/graphite/Recording.h +39 -0
  69. package/cpp/skia/include/gpu/graphite/SkStuff.h +47 -0
  70. package/cpp/skia/include/gpu/graphite/TextureInfo.h +91 -0
  71. package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +24 -0
  72. package/cpp/skia/include/gpu/graphite/mtl/MtlTypes.h +68 -0
  73. package/cpp/skia/include/gpu/mock/GrMockTypes.h +1 -2
  74. package/cpp/skia/include/ports/SkCFObject.h +0 -4
  75. package/cpp/skia/include/ports/SkTypeface_win.h +2 -2
  76. package/cpp/skia/include/private/SingleOwner.h +72 -0
  77. package/cpp/skia/include/private/SkChecksum.h +11 -0
  78. package/cpp/skia/include/private/SkEncodedInfo.h +22 -5
  79. package/cpp/skia/include/private/SkFloatingPoint.h +0 -53
  80. package/cpp/skia/include/private/SkImageInfoPriv.h +8 -2
  81. package/cpp/skia/include/private/SkMacros.h +13 -18
  82. package/cpp/skia/include/private/SkMutex.h +8 -0
  83. package/cpp/skia/include/private/SkPathRef.h +2 -16
  84. package/cpp/skia/include/private/SkSLDefines.h +9 -1
  85. package/cpp/skia/include/private/SkSLIRNode.h +6 -5
  86. package/cpp/skia/include/private/SkSLLayout.h +11 -10
  87. package/cpp/skia/include/private/SkSLModifiers.h +4 -3
  88. package/cpp/skia/include/private/SkSLProgramElement.h +2 -2
  89. package/cpp/skia/include/private/SkSLProgramKind.h +8 -5
  90. package/cpp/skia/include/private/SkSLStatement.h +2 -3
  91. package/cpp/skia/include/private/SkSLString.h +17 -56
  92. package/cpp/skia/include/private/SkSLSymbol.h +4 -4
  93. package/cpp/skia/include/private/SkShadowFlags.h +3 -1
  94. package/cpp/skia/include/private/SkStringView.h +47 -0
  95. package/cpp/skia/include/private/SkTArray.h +4 -3
  96. package/cpp/skia/include/private/SkTHash.h +66 -24
  97. package/cpp/skia/include/private/SkTLogic.h +2 -32
  98. package/cpp/skia/include/private/SkTemplates.h +2 -2
  99. package/cpp/skia/include/private/SkThreadAnnotations.h +4 -4
  100. package/cpp/skia/include/private/SkVx.h +28 -28
  101. package/cpp/skia/include/private/chromium/GrSlug.h +40 -3
  102. package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +12 -6
  103. package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +99 -0
  104. package/cpp/skia/include/private/{GrD3DTypesMinimal.h → gpu/ganesh/GrD3DTypesMinimal.h} +0 -0
  105. package/cpp/skia/include/private/{GrDawnTypesPriv.h → gpu/ganesh/GrDawnTypesPriv.h} +0 -0
  106. package/cpp/skia/include/private/gpu/ganesh/GrGLTypesPriv.h +108 -0
  107. package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +55 -0
  108. package/cpp/skia/include/private/{GrMockTypesPriv.h → gpu/ganesh/GrMockTypesPriv.h} +0 -0
  109. package/cpp/skia/include/private/{GrMtlTypesPriv.h → gpu/ganesh/GrMtlTypesPriv.h} +0 -0
  110. package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1012 -0
  111. package/cpp/skia/include/private/{GrVkTypesPriv.h → gpu/ganesh/GrVkTypesPriv.h} +0 -0
  112. package/cpp/skia/include/private/gpu/graphite/MtlTypesPriv.h +74 -0
  113. package/cpp/skia/include/sksl/DSL.h +4 -0
  114. package/cpp/skia/include/sksl/DSLBlock.h +8 -3
  115. package/cpp/skia/include/sksl/DSLCase.h +6 -6
  116. package/cpp/skia/include/sksl/DSLCore.h +89 -78
  117. package/cpp/skia/include/sksl/DSLExpression.h +78 -45
  118. package/cpp/skia/include/sksl/DSLFunction.h +23 -18
  119. package/cpp/skia/include/sksl/DSLLayout.h +14 -16
  120. package/cpp/skia/include/sksl/DSLModifiers.h +7 -5
  121. package/cpp/skia/include/sksl/DSLRuntimeEffects.h +1 -1
  122. package/cpp/skia/include/sksl/DSLStatement.h +16 -10
  123. package/cpp/skia/include/sksl/DSLSymbols.h +7 -7
  124. package/cpp/skia/include/sksl/DSLType.h +27 -23
  125. package/cpp/skia/include/sksl/DSLVar.h +72 -61
  126. package/cpp/skia/include/sksl/SkSLErrorReporter.h +12 -49
  127. package/cpp/skia/include/sksl/SkSLOperator.h +151 -0
  128. package/cpp/skia/include/sksl/SkSLPosition.h +102 -0
  129. package/cpp/skia/include/svg/SkSVGCanvas.h +5 -1
  130. package/cpp/skia/include/utils/SkAnimCodecPlayer.h +7 -0
  131. package/cpp/skia/include/utils/SkCamera.h +2 -0
  132. package/cpp/skia/include/utils/SkCanvasStateUtils.h +4 -1
  133. package/cpp/skia/include/utils/SkCustomTypeface.h +6 -4
  134. package/cpp/skia/include/utils/SkNWayCanvas.h +34 -0
  135. package/cpp/skia/include/utils/SkNullCanvas.h +5 -1
  136. package/cpp/skia/include/utils/SkOrderedFontMgr.h +12 -0
  137. package/cpp/skia/include/utils/SkPaintFilterCanvas.h +30 -1
  138. package/cpp/skia/include/utils/SkParse.h +2 -0
  139. package/cpp/skia/include/utils/SkShadowUtils.h +3 -2
  140. package/cpp/skia/include/utils/SkTextUtils.h +8 -4
  141. package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +27 -1
  142. package/cpp/skia/modules/svg/include/SkSVGDOM.h +4 -0
  143. package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +32 -0
  144. package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +3 -3
  145. package/cpp/skia/modules/svg/include/SkSVGSVG.h +2 -0
  146. package/cpp/skia/modules/svg/include/SkSVGTypes.h +48 -9
  147. package/cpp/utils/RNSkLog.h +22 -0
  148. package/ios/RNSkia-iOS/PlatformContext.h +1 -1
  149. package/ios/RNSkia-iOS/RNSkDrawViewImpl.mm +1 -0
  150. package/ios/RNSkia-iOS/SkiaDrawView.mm +3 -2
  151. package/lib/commonjs/animation/decay/runDecay.js.map +1 -1
  152. package/lib/commonjs/animation/functions/index.js +47 -17
  153. package/lib/commonjs/animation/functions/index.js.map +1 -1
  154. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  155. package/lib/commonjs/animation/functions/interpolatePaths.js +45 -0
  156. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
  157. package/lib/commonjs/animation/functions/interpolateVector.js +20 -0
  158. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
  159. package/lib/commonjs/animation/spring/runSpring.js.map +1 -1
  160. package/lib/commonjs/animation/spring/useSpring.js.map +1 -1
  161. package/lib/commonjs/animation/timing/createTiming.js.map +1 -1
  162. package/lib/commonjs/animation/timing/runTiming.js.map +1 -1
  163. package/lib/commonjs/animation/timing/useTiming.js.map +1 -1
  164. package/lib/commonjs/index.js +13 -0
  165. package/lib/commonjs/index.js.map +1 -1
  166. package/lib/commonjs/renderer/Canvas.js +18 -36
  167. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  168. package/lib/commonjs/renderer/DependencyManager.js.map +1 -1
  169. package/lib/commonjs/renderer/HostConfig.js +2 -2
  170. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  171. package/lib/commonjs/renderer/components/Blend.js +10 -9
  172. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  173. package/lib/commonjs/renderer/components/Compose.js +9 -10
  174. package/lib/commonjs/renderer/components/Compose.js.map +1 -1
  175. package/lib/commonjs/renderer/components/Group.js +7 -6
  176. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  177. package/lib/commonjs/renderer/components/Mask.js +13 -10
  178. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  179. package/lib/commonjs/renderer/components/Paint.js +7 -4
  180. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  181. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  182. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +1 -1
  183. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  184. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +7 -6
  185. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  186. package/lib/commonjs/renderer/components/colorFilters/Compose.js +6 -6
  187. package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -1
  188. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +8 -9
  189. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  190. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +6 -6
  191. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  192. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +6 -6
  193. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  194. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +6 -7
  195. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  196. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +6 -6
  197. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  198. package/lib/commonjs/renderer/components/image/BoxFit.js +7 -9
  199. package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -1
  200. package/lib/commonjs/renderer/components/image/Image.js +3 -2
  201. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  202. package/lib/commonjs/renderer/components/image/ImageSVG.js +3 -2
  203. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  204. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -6
  205. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  206. package/lib/commonjs/renderer/components/imageFilters/Blur.js +7 -4
  207. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  208. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +10 -9
  209. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  210. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +10 -15
  211. package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  212. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +7 -6
  213. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  214. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -4
  215. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  216. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +13 -6
  217. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  218. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +7 -8
  219. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  220. package/lib/commonjs/renderer/components/imageFilters/getInput.js +7 -7
  221. package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -1
  222. package/lib/commonjs/renderer/components/maskFilters/Blur.js +6 -5
  223. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  224. package/lib/commonjs/renderer/components/pathEffects/Corner.js +8 -8
  225. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  226. package/lib/commonjs/renderer/components/pathEffects/Dash.js +8 -8
  227. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  228. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +8 -8
  229. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  230. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +8 -8
  231. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  232. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +8 -8
  233. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  234. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +8 -8
  235. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  236. package/lib/commonjs/renderer/components/pathEffects/Sum.js +7 -6
  237. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  238. package/lib/commonjs/renderer/components/shaders/Color.js +7 -4
  239. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  240. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +5 -4
  241. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  242. package/lib/commonjs/renderer/components/shaders/Gradient.js +5 -5
  243. package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -1
  244. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +6 -5
  245. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  246. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +6 -5
  247. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  248. package/lib/commonjs/renderer/components/shaders/Shader.js +6 -44
  249. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  250. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +6 -5
  251. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  252. package/lib/commonjs/renderer/components/shaders/Turbulence.js +5 -4
  253. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  254. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +6 -5
  255. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  256. package/lib/commonjs/renderer/components/shapes/Box.js +26 -29
  257. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  258. package/lib/commonjs/renderer/components/shapes/Circle.js +7 -5
  259. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  260. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  261. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  262. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  263. package/lib/commonjs/renderer/components/shapes/Oval.js +3 -2
  264. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  265. package/lib/commonjs/renderer/components/shapes/Patch.js +7 -6
  266. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  267. package/lib/commonjs/renderer/components/shapes/Path.js +5 -4
  268. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  269. package/lib/commonjs/renderer/components/shapes/Points.js +2 -2
  270. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  271. package/lib/commonjs/renderer/components/shapes/Rect.js +3 -2
  272. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  273. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +3 -2
  274. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  275. package/lib/commonjs/renderer/components/shapes/Vertices.js +9 -8
  276. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  277. package/lib/commonjs/renderer/components/text/Glyphs.js +3 -2
  278. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  279. package/lib/commonjs/renderer/components/text/Text.js +3 -2
  280. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  281. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  282. package/lib/commonjs/renderer/components/text/TextPath.js +7 -11
  283. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  284. package/lib/commonjs/renderer/index.js +26 -13
  285. package/lib/commonjs/renderer/index.js.map +1 -1
  286. package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -1
  287. package/lib/commonjs/renderer/nodes/Drawing.js +5 -5
  288. package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -1
  289. package/lib/commonjs/renderer/nodes/Node.js.map +1 -1
  290. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  291. package/lib/commonjs/renderer/processors/Circles.js +2 -4
  292. package/lib/commonjs/renderer/processors/Circles.js.map +1 -1
  293. package/lib/commonjs/renderer/processors/Clips.js +5 -5
  294. package/lib/commonjs/renderer/processors/Clips.js.map +1 -1
  295. package/lib/commonjs/renderer/processors/Color.js +27 -0
  296. package/lib/commonjs/renderer/processors/Color.js.map +1 -0
  297. package/lib/commonjs/renderer/processors/Font.js +4 -4
  298. package/lib/commonjs/renderer/processors/Font.js.map +1 -1
  299. package/lib/commonjs/renderer/processors/Paint.js +18 -14
  300. package/lib/commonjs/renderer/processors/Paint.js.map +1 -1
  301. package/lib/commonjs/renderer/processors/Paths.js +4 -4
  302. package/lib/commonjs/renderer/processors/Paths.js.map +1 -1
  303. package/lib/commonjs/renderer/processors/Radius.js +2 -4
  304. package/lib/commonjs/renderer/processors/Radius.js.map +1 -1
  305. package/lib/commonjs/renderer/processors/Rects.js +9 -56
  306. package/lib/commonjs/renderer/processors/Rects.js.map +1 -1
  307. package/lib/commonjs/renderer/processors/Transform.js +26 -17
  308. package/lib/commonjs/renderer/processors/Transform.js.map +1 -1
  309. package/lib/commonjs/renderer/processors/index.js +26 -13
  310. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  311. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  312. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  313. package/lib/commonjs/renderer/processors/math/index.js +0 -26
  314. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  315. package/lib/commonjs/renderer/useCanvas.js +30 -0
  316. package/lib/commonjs/renderer/useCanvas.js.map +1 -0
  317. package/lib/commonjs/skia/NativeSetup.js +1 -1
  318. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  319. package/lib/commonjs/skia/Skia.js +2 -36
  320. package/lib/commonjs/skia/Skia.js.map +1 -1
  321. package/lib/commonjs/skia/Skia.web.js +12 -0
  322. package/lib/commonjs/skia/Skia.web.js.map +1 -0
  323. package/lib/commonjs/skia/core/Data.js +79 -0
  324. package/lib/commonjs/skia/core/Data.js.map +1 -0
  325. package/lib/commonjs/skia/core/Font.js +34 -0
  326. package/lib/commonjs/skia/core/Font.js.map +1 -0
  327. package/lib/commonjs/skia/core/Image.js +18 -0
  328. package/lib/commonjs/skia/core/Image.js.map +1 -0
  329. package/lib/commonjs/skia/core/Matrix.js +15 -0
  330. package/lib/commonjs/skia/core/Matrix.js.map +1 -0
  331. package/lib/commonjs/skia/core/Paint.js +28 -0
  332. package/lib/commonjs/skia/core/Paint.js.map +1 -0
  333. package/lib/commonjs/skia/core/Path.js +72 -0
  334. package/lib/commonjs/skia/core/Path.js.map +1 -0
  335. package/lib/commonjs/skia/core/Picture.js +30 -0
  336. package/lib/commonjs/skia/core/Picture.js.map +1 -0
  337. package/lib/commonjs/skia/core/RRect.js +13 -0
  338. package/lib/commonjs/skia/core/RRect.js.map +1 -0
  339. package/lib/commonjs/skia/core/Rect.js +47 -0
  340. package/lib/commonjs/skia/core/Rect.js.map +1 -0
  341. package/lib/commonjs/skia/core/SVG.js +15 -0
  342. package/lib/commonjs/skia/core/SVG.js.map +1 -0
  343. package/lib/commonjs/skia/core/Typeface.js +18 -0
  344. package/lib/commonjs/skia/core/Typeface.js.map +1 -0
  345. package/lib/commonjs/skia/core/Vector.js +49 -0
  346. package/lib/commonjs/skia/core/Vector.js.map +1 -0
  347. package/lib/commonjs/skia/core/index.js +162 -0
  348. package/lib/commonjs/skia/core/index.js.map +1 -0
  349. package/lib/commonjs/skia/index.js +8 -302
  350. package/lib/commonjs/skia/index.js.map +1 -1
  351. package/lib/commonjs/skia/{Canvas.js → types/Canvas.js} +0 -0
  352. package/lib/commonjs/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
  353. package/lib/commonjs/skia/types/Color.js +2 -0
  354. package/lib/commonjs/skia/{ColorFilter/ColorFilterFactory.js.map → types/Color.js.map} +0 -0
  355. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
  356. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
  357. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
  358. package/lib/{module/skia → commonjs/skia/types}/ColorFilter/ColorFilterFactory.js.map +0 -0
  359. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
  360. package/lib/commonjs/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
  361. package/lib/commonjs/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
  362. package/lib/commonjs/skia/{ContourMeasure.js.map → types/ContourMeasure.js.map} +0 -0
  363. package/lib/commonjs/skia/types/Data/Data.js +6 -0
  364. package/lib/commonjs/skia/{Data/DataFactory.js.map → types/Data/Data.js.map} +0 -0
  365. package/lib/commonjs/skia/{Data → types/Data}/DataFactory.js +0 -0
  366. package/lib/{module/skia → commonjs/skia/types}/Data/DataFactory.js.map +0 -0
  367. package/lib/commonjs/skia/{Data → types/Data}/index.js +0 -0
  368. package/lib/commonjs/skia/{Data → types/Data}/index.js.map +0 -0
  369. package/lib/commonjs/skia/{Font → types/Font}/Font.js +0 -0
  370. package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
  371. package/lib/commonjs/skia/types/Font/index.js +19 -0
  372. package/lib/commonjs/skia/types/Font/index.js.map +1 -0
  373. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
  374. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgr.js.map +0 -0
  375. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
  376. package/lib/commonjs/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js.map +0 -0
  377. package/lib/commonjs/skia/types/FontMgr/index.js +32 -0
  378. package/lib/commonjs/skia/types/FontMgr/index.js.map +1 -0
  379. package/lib/commonjs/skia/{Image → types/Image}/Image.js +0 -0
  380. package/lib/commonjs/skia/types/Image/Image.js.map +1 -0
  381. package/lib/commonjs/skia/{Image → types/Image}/ImageFactory.js +0 -0
  382. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -0
  383. package/lib/commonjs/skia/types/Image/index.js +32 -0
  384. package/lib/commonjs/skia/types/Image/index.js.map +1 -0
  385. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
  386. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
  387. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
  388. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  389. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
  390. package/lib/commonjs/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
  391. package/lib/commonjs/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
  392. package/lib/commonjs/skia/{JsiInstance.js.map → types/JsiInstance.js.map} +0 -0
  393. package/lib/commonjs/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
  394. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
  395. package/lib/commonjs/skia/types/Matrix.js +78 -0
  396. package/lib/commonjs/skia/types/Matrix.js.map +1 -0
  397. package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js +0 -0
  398. package/lib/commonjs/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
  399. package/lib/commonjs/skia/types/Paint/Paint.js +36 -0
  400. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
  401. package/lib/commonjs/skia/types/Paint/index.js +32 -0
  402. package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
  403. package/lib/commonjs/skia/types/Path/Path.js +48 -0
  404. package/lib/commonjs/skia/types/Path/Path.js.map +1 -0
  405. package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js +0 -0
  406. package/lib/commonjs/skia/{Path → types/Path}/PathFactory.js.map +0 -0
  407. package/lib/commonjs/skia/types/Path/index.js +32 -0
  408. package/lib/commonjs/skia/types/Path/index.js.map +1 -0
  409. package/lib/commonjs/skia/{PathEffect.js → types/PathEffect.js} +0 -0
  410. package/lib/commonjs/skia/types/PathEffect.js.map +1 -0
  411. package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js +0 -0
  412. package/lib/commonjs/skia/{Picture → types/Picture}/Picture.js.map +0 -0
  413. package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
  414. package/lib/commonjs/skia/{Picture → types/Picture}/PictureFactory.js.map +0 -0
  415. package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
  416. package/lib/commonjs/skia/{Picture → types/Picture}/PictureRecorder.js.map +0 -0
  417. package/lib/commonjs/skia/types/Picture/index.js +45 -0
  418. package/lib/commonjs/skia/types/Picture/index.js.map +1 -0
  419. package/lib/commonjs/skia/{Point.js → types/Point.js} +0 -0
  420. package/lib/commonjs/skia/types/Point.js.map +1 -0
  421. package/lib/commonjs/skia/types/RRect.js +13 -0
  422. package/lib/commonjs/skia/types/RRect.js.map +1 -0
  423. package/lib/commonjs/skia/{RSXform.js → types/RSXform.js} +0 -0
  424. package/lib/commonjs/skia/{RSXform.js.map → types/RSXform.js.map} +0 -0
  425. package/lib/commonjs/skia/{Rect.js → types/Rect.js} +0 -0
  426. package/lib/commonjs/skia/{Rect.js.map → types/Rect.js.map} +0 -0
  427. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
  428. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js.map +0 -0
  429. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
  430. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js.map +0 -0
  431. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
  432. package/lib/commonjs/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
  433. package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js +0 -0
  434. package/lib/commonjs/skia/{SVG → types/SVG}/SVG.js.map +0 -0
  435. package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
  436. package/lib/commonjs/skia/{SVG → types/SVG}/SVGFactory.js.map +0 -0
  437. package/lib/commonjs/skia/types/SVG/index.js +32 -0
  438. package/lib/commonjs/skia/types/SVG/index.js.map +1 -0
  439. package/lib/commonjs/skia/types/Shader/Shader.js +61 -0
  440. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -0
  441. package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
  442. package/lib/commonjs/skia/{Shader → types/Shader}/ShaderFactory.js.map +0 -0
  443. package/lib/commonjs/skia/types/Shader/index.js +32 -0
  444. package/lib/commonjs/skia/types/Shader/index.js.map +1 -0
  445. package/lib/commonjs/skia/types/Skia.js +6 -0
  446. package/lib/commonjs/skia/{RRect.js.map → types/Skia.js.map} +0 -0
  447. package/lib/commonjs/skia/{Surface → types/Surface}/Surface.js +0 -0
  448. package/lib/commonjs/skia/{Surface → types/Surface}/Surface.js.map +0 -0
  449. package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
  450. package/lib/commonjs/skia/{Surface → types/Surface}/SurfaceFactory.js.map +0 -0
  451. package/lib/commonjs/skia/{Surface → types/Surface}/index.js +0 -0
  452. package/lib/commonjs/skia/{Surface → types/Surface}/index.js.map +0 -0
  453. package/lib/commonjs/skia/{TextBlob.js → types/TextBlob.js} +0 -0
  454. package/lib/commonjs/skia/{TextBlob.js.map → types/TextBlob.js.map} +0 -0
  455. package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
  456. package/lib/commonjs/skia/{Typeface → types/Typeface}/Typeface.js.map +0 -0
  457. package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
  458. package/lib/commonjs/skia/{Typeface → types/Typeface}/TypefaceFactory.js.map +0 -0
  459. package/lib/commonjs/skia/types/Typeface/index.js +32 -0
  460. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
  461. package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
  462. package/lib/commonjs/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
  463. package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js +0 -0
  464. package/lib/commonjs/skia/{Vertices → types/Vertices}/index.js.map +0 -0
  465. package/lib/commonjs/skia/types/index.js +370 -0
  466. package/lib/commonjs/skia/types/index.js.map +1 -0
  467. package/lib/commonjs/skia/web/Host.js +75 -0
  468. package/lib/commonjs/skia/web/Host.js.map +1 -0
  469. package/lib/commonjs/skia/web/JsiImageFilterFactory.js +68 -0
  470. package/lib/commonjs/skia/web/JsiImageFilterFactory.js.map +1 -0
  471. package/lib/commonjs/skia/web/JsiSkCanvas.js +184 -0
  472. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
  473. package/lib/commonjs/skia/web/JsiSkColor.js +339 -0
  474. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
  475. package/lib/commonjs/skia/web/JsiSkColorFilter.js +18 -0
  476. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -0
  477. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +48 -0
  478. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  479. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +42 -0
  480. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
  481. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +30 -0
  482. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  483. package/lib/commonjs/skia/web/JsiSkData.js +18 -0
  484. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
  485. package/lib/commonjs/skia/web/JsiSkDataFactory.js +44 -0
  486. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
  487. package/lib/commonjs/skia/web/JsiSkFont.js +111 -0
  488. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
  489. package/lib/commonjs/skia/web/JsiSkFontMgr.js +35 -0
  490. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
  491. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +25 -0
  492. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  493. package/lib/commonjs/skia/web/JsiSkImage.js +56 -0
  494. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -0
  495. package/lib/commonjs/skia/web/JsiSkImageFactory.js +47 -0
  496. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
  497. package/lib/commonjs/skia/web/JsiSkImageFilter.js +18 -0
  498. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
  499. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +18 -0
  500. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
  501. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +24 -0
  502. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  503. package/lib/commonjs/skia/web/JsiSkMatrix.js +38 -0
  504. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
  505. package/lib/commonjs/skia/web/JsiSkPaint.js +101 -0
  506. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
  507. package/lib/commonjs/skia/web/JsiSkPath.js +324 -0
  508. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
  509. package/lib/commonjs/skia/web/JsiSkPathEffect.js +18 -0
  510. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
  511. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +78 -0
  512. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  513. package/lib/commonjs/skia/web/JsiSkPathFactory.js +58 -0
  514. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -0
  515. package/lib/commonjs/skia/web/JsiSkPicture.js +29 -0
  516. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -0
  517. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +30 -0
  518. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
  519. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +30 -0
  520. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
  521. package/lib/commonjs/skia/web/JsiSkPoint.js +26 -0
  522. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
  523. package/lib/commonjs/skia/web/JsiSkRRect.js +32 -0
  524. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
  525. package/lib/commonjs/skia/web/JsiSkRSXform.js +18 -0
  526. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
  527. package/lib/commonjs/skia/web/JsiSkRect.js +42 -0
  528. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -0
  529. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +44 -0
  530. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  531. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +30 -0
  532. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  533. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +26 -0
  534. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
  535. package/lib/commonjs/skia/web/JsiSkShader.js +18 -0
  536. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
  537. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +52 -0
  538. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
  539. package/lib/commonjs/skia/web/JsiSkSurface.js +31 -0
  540. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -0
  541. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +30 -0
  542. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -0
  543. package/lib/commonjs/skia/web/JsiSkTextBlob.js +18 -0
  544. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
  545. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +36 -0
  546. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  547. package/lib/commonjs/skia/web/JsiSkTypeface.js +28 -0
  548. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
  549. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +30 -0
  550. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  551. package/lib/commonjs/skia/web/JsiSkVertices.js +28 -0
  552. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
  553. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +27 -0
  554. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
  555. package/lib/commonjs/skia/web/JsiSkia.js +97 -0
  556. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
  557. package/lib/commonjs/skia/web/index.js +19 -0
  558. package/lib/commonjs/skia/web/index.js.map +1 -0
  559. package/lib/commonjs/values/hooks/useValue.js.map +1 -1
  560. package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -1
  561. package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -1
  562. package/lib/commonjs/values/web/api.js +2 -2
  563. package/lib/commonjs/values/web/api.js.map +1 -1
  564. package/lib/commonjs/views/SkiaView.js.map +1 -1
  565. package/lib/commonjs/views/SkiaView.web.js +216 -0
  566. package/lib/commonjs/views/SkiaView.web.js.map +1 -0
  567. package/lib/commonjs/views/types.js.map +1 -1
  568. package/lib/commonjs/views/useTouchHandler.js +70 -46
  569. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  570. package/lib/commonjs/web/index.js +20 -0
  571. package/lib/commonjs/web/index.js.map +1 -0
  572. package/lib/module/animation/decay/runDecay.js.map +1 -1
  573. package/lib/module/animation/functions/index.js +4 -2
  574. package/lib/module/animation/functions/index.js.map +1 -1
  575. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  576. package/lib/module/animation/functions/interpolatePaths.js +36 -0
  577. package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
  578. package/lib/module/animation/functions/interpolateVector.js +7 -0
  579. package/lib/module/animation/functions/interpolateVector.js.map +1 -0
  580. package/lib/module/animation/spring/runSpring.js.map +1 -1
  581. package/lib/module/animation/spring/useSpring.js.map +1 -1
  582. package/lib/module/animation/timing/createTiming.js.map +1 -1
  583. package/lib/module/animation/timing/runTiming.js.map +1 -1
  584. package/lib/module/animation/timing/useTiming.js.map +1 -1
  585. package/lib/module/index.js +1 -0
  586. package/lib/module/index.js.map +1 -1
  587. package/lib/module/renderer/Canvas.js +15 -27
  588. package/lib/module/renderer/Canvas.js.map +1 -1
  589. package/lib/module/renderer/DependencyManager.js.map +1 -1
  590. package/lib/module/renderer/HostConfig.js +2 -2
  591. package/lib/module/renderer/HostConfig.js.map +1 -1
  592. package/lib/module/renderer/components/Blend.js +5 -3
  593. package/lib/module/renderer/components/Blend.js.map +1 -1
  594. package/lib/module/renderer/components/Compose.js +5 -4
  595. package/lib/module/renderer/components/Compose.js.map +1 -1
  596. package/lib/module/renderer/components/Group.js +7 -6
  597. package/lib/module/renderer/components/Group.js.map +1 -1
  598. package/lib/module/renderer/components/Mask.js +7 -3
  599. package/lib/module/renderer/components/Mask.js.map +1 -1
  600. package/lib/module/renderer/components/Paint.js +6 -3
  601. package/lib/module/renderer/components/Paint.js.map +1 -1
  602. package/lib/module/renderer/components/Picture.js.map +1 -1
  603. package/lib/module/renderer/components/backdrop/BackdropFilter.js +1 -1
  604. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  605. package/lib/module/renderer/components/colorFilters/BlendColor.js +6 -3
  606. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  607. package/lib/module/renderer/components/colorFilters/Compose.js +2 -2
  608. package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -1
  609. package/lib/module/renderer/components/colorFilters/Lerp.js +6 -4
  610. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  611. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +5 -3
  612. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  613. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +5 -3
  614. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  615. package/lib/module/renderer/components/colorFilters/Matrix.js +5 -3
  616. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  617. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +5 -3
  618. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  619. package/lib/module/renderer/components/image/BoxFit.js +7 -8
  620. package/lib/module/renderer/components/image/BoxFit.js.map +1 -1
  621. package/lib/module/renderer/components/image/Image.js +3 -2
  622. package/lib/module/renderer/components/image/Image.js.map +1 -1
  623. package/lib/module/renderer/components/image/ImageSVG.js +3 -2
  624. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  625. package/lib/module/renderer/components/image/ImageShader.js +10 -7
  626. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  627. package/lib/module/renderer/components/imageFilters/Blur.js +7 -4
  628. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  629. package/lib/module/renderer/components/imageFilters/DisplacementMap.js +7 -5
  630. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  631. package/lib/module/renderer/components/imageFilters/InnerShadow.js +3 -3
  632. package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -1
  633. package/lib/module/renderer/components/imageFilters/Morphology.js +6 -4
  634. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  635. package/lib/module/renderer/components/imageFilters/Offset.js +5 -3
  636. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  637. package/lib/module/renderer/components/imageFilters/RuntimeShader.js +13 -4
  638. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  639. package/lib/module/renderer/components/imageFilters/Shadow.js +6 -6
  640. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  641. package/lib/module/renderer/components/imageFilters/getInput.js +2 -2
  642. package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -1
  643. package/lib/module/renderer/components/maskFilters/Blur.js +5 -3
  644. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  645. package/lib/module/renderer/components/pathEffects/Corner.js +5 -3
  646. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  647. package/lib/module/renderer/components/pathEffects/Dash.js +5 -3
  648. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  649. package/lib/module/renderer/components/pathEffects/Discrete.js +5 -3
  650. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  651. package/lib/module/renderer/components/pathEffects/Line2D.js +5 -3
  652. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  653. package/lib/module/renderer/components/pathEffects/Path1D.js +6 -4
  654. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  655. package/lib/module/renderer/components/pathEffects/Path2D.js +6 -4
  656. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  657. package/lib/module/renderer/components/pathEffects/Sum.js +5 -3
  658. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  659. package/lib/module/renderer/components/shaders/Color.js +6 -3
  660. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  661. package/lib/module/renderer/components/shaders/FractalNoise.js +4 -2
  662. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  663. package/lib/module/renderer/components/shaders/Gradient.js +3 -3
  664. package/lib/module/renderer/components/shaders/Gradient.js.map +1 -1
  665. package/lib/module/renderer/components/shaders/LinearGradient.js +5 -3
  666. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  667. package/lib/module/renderer/components/shaders/RadialGradient.js +5 -3
  668. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  669. package/lib/module/renderer/components/shaders/Shader.js +6 -45
  670. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  671. package/lib/module/renderer/components/shaders/SweepGradient.js +5 -3
  672. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  673. package/lib/module/renderer/components/shaders/Turbulence.js +4 -2
  674. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  675. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +5 -3
  676. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  677. package/lib/module/renderer/components/shapes/Box.js +20 -19
  678. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  679. package/lib/module/renderer/components/shapes/Circle.js +7 -4
  680. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  681. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  682. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  683. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  684. package/lib/module/renderer/components/shapes/Oval.js +3 -2
  685. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  686. package/lib/module/renderer/components/shapes/Patch.js +5 -4
  687. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  688. package/lib/module/renderer/components/shapes/Path.js +4 -3
  689. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  690. package/lib/module/renderer/components/shapes/Points.js +1 -1
  691. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  692. package/lib/module/renderer/components/shapes/Rect.js +3 -2
  693. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  694. package/lib/module/renderer/components/shapes/RoundedRect.js +3 -2
  695. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  696. package/lib/module/renderer/components/shapes/Vertices.js +5 -3
  697. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  698. package/lib/module/renderer/components/text/Glyphs.js +3 -2
  699. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  700. package/lib/module/renderer/components/text/Text.js +3 -2
  701. package/lib/module/renderer/components/text/Text.js.map +1 -1
  702. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  703. package/lib/module/renderer/components/text/TextPath.js +3 -3
  704. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  705. package/lib/module/renderer/index.js +2 -1
  706. package/lib/module/renderer/index.js.map +1 -1
  707. package/lib/module/renderer/nodes/Declaration.js.map +1 -1
  708. package/lib/module/renderer/nodes/Drawing.js +3 -3
  709. package/lib/module/renderer/nodes/Drawing.js.map +1 -1
  710. package/lib/module/renderer/nodes/Node.js.map +1 -1
  711. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  712. package/lib/module/renderer/processors/Circles.js +2 -4
  713. package/lib/module/renderer/processors/Circles.js.map +1 -1
  714. package/lib/module/renderer/processors/Clips.js +3 -3
  715. package/lib/module/renderer/processors/Clips.js.map +1 -1
  716. package/lib/module/renderer/processors/Color.js +11 -0
  717. package/lib/module/renderer/processors/Color.js.map +1 -0
  718. package/lib/module/renderer/processors/Font.js +3 -2
  719. package/lib/module/renderer/processors/Font.js.map +1 -1
  720. package/lib/module/renderer/processors/Paint.js +8 -5
  721. package/lib/module/renderer/processors/Paint.js.map +1 -1
  722. package/lib/module/renderer/processors/Paths.js +2 -2
  723. package/lib/module/renderer/processors/Paths.js.map +1 -1
  724. package/lib/module/renderer/processors/Radius.js +2 -3
  725. package/lib/module/renderer/processors/Radius.js.map +1 -1
  726. package/lib/module/renderer/processors/Rects.js +7 -25
  727. package/lib/module/renderer/processors/Rects.js.map +1 -1
  728. package/lib/module/renderer/processors/Transform.js +24 -16
  729. package/lib/module/renderer/processors/Transform.js.map +1 -1
  730. package/lib/module/renderer/processors/index.js +2 -1
  731. package/lib/module/renderer/processors/index.js.map +1 -1
  732. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  733. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  734. package/lib/module/renderer/processors/math/index.js +0 -2
  735. package/lib/module/renderer/processors/math/index.js.map +1 -1
  736. package/lib/module/renderer/useCanvas.js +13 -0
  737. package/lib/module/renderer/useCanvas.js.map +1 -0
  738. package/lib/module/skia/NativeSetup.js +2 -2
  739. package/lib/module/skia/NativeSetup.js.map +1 -1
  740. package/lib/module/skia/Skia.js +2 -35
  741. package/lib/module/skia/Skia.js.map +1 -1
  742. package/lib/module/skia/Skia.web.js +3 -0
  743. package/lib/module/skia/Skia.web.js.map +1 -0
  744. package/lib/module/skia/core/Data.js +62 -0
  745. package/lib/module/skia/core/Data.js.map +1 -0
  746. package/lib/module/skia/core/Font.js +22 -0
  747. package/lib/module/skia/core/Font.js.map +1 -0
  748. package/lib/module/skia/core/Image.js +8 -0
  749. package/lib/module/skia/core/Image.js.map +1 -0
  750. package/lib/module/skia/core/Matrix.js +4 -0
  751. package/lib/module/skia/core/Matrix.js.map +1 -0
  752. package/lib/module/skia/core/Paint.js +17 -0
  753. package/lib/module/skia/core/Paint.js.map +1 -0
  754. package/lib/module/skia/core/Path.js +53 -0
  755. package/lib/module/skia/core/Path.js.map +1 -0
  756. package/lib/module/skia/core/Picture.js +19 -0
  757. package/lib/module/skia/core/Picture.js.map +1 -0
  758. package/lib/module/skia/core/RRect.js +3 -0
  759. package/lib/module/skia/core/RRect.js.map +1 -0
  760. package/lib/module/skia/core/Rect.js +17 -0
  761. package/lib/module/skia/core/Rect.js.map +1 -0
  762. package/lib/module/skia/core/SVG.js +4 -0
  763. package/lib/module/skia/core/SVG.js.map +1 -0
  764. package/lib/module/skia/core/Typeface.js +8 -0
  765. package/lib/module/skia/core/Typeface.js.map +1 -0
  766. package/lib/module/skia/core/Vector.js +23 -0
  767. package/lib/module/skia/core/Vector.js.map +1 -0
  768. package/lib/module/skia/core/index.js +13 -0
  769. package/lib/module/skia/core/index.js.map +1 -0
  770. package/lib/module/skia/index.js +2 -23
  771. package/lib/module/skia/index.js.map +1 -1
  772. package/lib/module/skia/{Canvas.js → types/Canvas.js} +0 -0
  773. package/lib/module/skia/{Canvas.js.map → types/Canvas.js.map} +0 -0
  774. package/lib/module/skia/types/Color.js +2 -0
  775. package/lib/module/skia/{ContourMeasure.js.map → types/Color.js.map} +0 -0
  776. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js +0 -0
  777. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilter.js.map +0 -0
  778. package/lib/module/skia/{ColorFilter → types/ColorFilter}/ColorFilterFactory.js +0 -0
  779. package/lib/module/skia/{FontMgr/FontMgr.js.map → types/ColorFilter/ColorFilterFactory.js.map} +0 -0
  780. package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js +0 -0
  781. package/lib/module/skia/{ColorFilter → types/ColorFilter}/index.js.map +0 -0
  782. package/lib/module/skia/{ContourMeasure.js → types/ContourMeasure.js} +0 -0
  783. package/lib/module/skia/{FontMgr/FontMgrFactory.js.map → types/ContourMeasure.js.map} +0 -0
  784. package/lib/module/skia/types/Data/Data.js +2 -0
  785. package/lib/module/skia/{JsiInstance.js.map → types/Data/Data.js.map} +0 -0
  786. package/lib/module/skia/{Data → types/Data}/DataFactory.js +0 -0
  787. package/lib/module/skia/{Path/PathFactory.js.map → types/Data/DataFactory.js.map} +0 -0
  788. package/lib/module/skia/{Data → types/Data}/index.js +0 -0
  789. package/lib/module/skia/{Data → types/Data}/index.js.map +0 -0
  790. package/lib/module/skia/{Font → types/Font}/Font.js +0 -0
  791. package/lib/module/skia/types/Font/Font.js.map +1 -0
  792. package/lib/module/skia/types/Font/index.js +2 -0
  793. package/lib/module/skia/types/Font/index.js.map +1 -0
  794. package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgr.js +0 -0
  795. package/lib/module/skia/{Picture/Picture.js.map → types/FontMgr/FontMgr.js.map} +0 -0
  796. package/lib/module/skia/{FontMgr → types/FontMgr}/FontMgrFactory.js +0 -0
  797. package/lib/module/skia/{Picture/PictureFactory.js.map → types/FontMgr/FontMgrFactory.js.map} +0 -0
  798. package/lib/module/skia/types/FontMgr/index.js +3 -0
  799. package/lib/module/skia/types/FontMgr/index.js.map +1 -0
  800. package/lib/module/skia/{Image → types/Image}/Image.js +0 -0
  801. package/lib/module/skia/types/Image/Image.js.map +1 -0
  802. package/lib/module/skia/{Image → types/Image}/ImageFactory.js +0 -0
  803. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -0
  804. package/lib/module/skia/types/Image/index.js +3 -0
  805. package/lib/module/skia/types/Image/index.js.map +1 -0
  806. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js +0 -0
  807. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilter.js.map +0 -0
  808. package/lib/module/skia/{ImageFilter → types/ImageFilter}/ImageFilterFactory.js +0 -0
  809. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
  810. package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js +0 -0
  811. package/lib/module/skia/{ImageFilter → types/ImageFilter}/index.js.map +0 -0
  812. package/lib/module/skia/{JsiInstance.js → types/JsiInstance.js} +0 -0
  813. package/lib/module/skia/{Picture/PictureRecorder.js.map → types/JsiInstance.js.map} +0 -0
  814. package/lib/module/skia/{MaskFilter.js → types/MaskFilter.js} +0 -0
  815. package/lib/module/skia/types/MaskFilter.js.map +1 -0
  816. package/lib/module/skia/types/Matrix.js +69 -0
  817. package/lib/module/skia/types/Matrix.js.map +1 -0
  818. package/lib/module/skia/{Paint → types/Paint}/BlendMode.js +0 -0
  819. package/lib/module/skia/{Paint → types/Paint}/BlendMode.js.map +0 -0
  820. package/lib/module/skia/types/Paint/Paint.js +25 -0
  821. package/lib/module/skia/types/Paint/Paint.js.map +1 -0
  822. package/lib/module/skia/types/Paint/index.js +3 -0
  823. package/lib/module/skia/types/Paint/index.js.map +1 -0
  824. package/lib/module/skia/types/Path/Path.js +36 -0
  825. package/lib/module/skia/types/Path/Path.js.map +1 -0
  826. package/lib/module/skia/{Path → types/Path}/PathFactory.js +0 -0
  827. package/lib/module/skia/{RRect.js.map → types/Path/PathFactory.js.map} +0 -0
  828. package/lib/module/skia/types/Path/index.js +3 -0
  829. package/lib/module/skia/types/Path/index.js.map +1 -0
  830. package/lib/module/skia/{PathEffect.js → types/PathEffect.js} +0 -0
  831. package/lib/module/skia/types/PathEffect.js.map +1 -0
  832. package/lib/module/skia/{Picture → types/Picture}/Picture.js +0 -0
  833. package/lib/module/skia/{RSXform.js.map → types/Picture/Picture.js.map} +0 -0
  834. package/lib/module/skia/{Picture → types/Picture}/PictureFactory.js +0 -0
  835. package/lib/module/skia/{Rect.js.map → types/Picture/PictureFactory.js.map} +0 -0
  836. package/lib/module/skia/{Picture → types/Picture}/PictureRecorder.js +0 -0
  837. package/lib/module/skia/{RuntimeEffect/RuntimeEffect.js.map → types/Picture/PictureRecorder.js.map} +0 -0
  838. package/lib/module/skia/types/Picture/index.js +4 -0
  839. package/lib/module/skia/types/Picture/index.js.map +1 -0
  840. package/lib/module/skia/{Point.js → types/Point.js} +0 -0
  841. package/lib/module/skia/types/Point.js.map +1 -0
  842. package/lib/module/skia/types/RRect.js +4 -0
  843. package/lib/module/skia/types/RRect.js.map +1 -0
  844. package/lib/module/skia/{RSXform.js → types/RSXform.js} +0 -0
  845. package/lib/module/skia/{RuntimeEffect/RuntimeEffectFactory.js.map → types/RSXform.js.map} +0 -0
  846. package/lib/module/skia/{Rect.js → types/Rect.js} +0 -0
  847. package/lib/module/skia/{SVG/SVG.js.map → types/Rect.js.map} +0 -0
  848. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffect.js +0 -0
  849. package/lib/module/skia/{SVG/SVGFactory.js.map → types/RuntimeEffect/RuntimeEffect.js.map} +0 -0
  850. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.js +0 -0
  851. package/lib/module/skia/{Shader/ShaderFactory.js.map → types/RuntimeEffect/RuntimeEffectFactory.js.map} +0 -0
  852. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js +0 -0
  853. package/lib/module/skia/{RuntimeEffect → types/RuntimeEffect}/index.js.map +0 -0
  854. package/lib/module/skia/{SVG → types/SVG}/SVG.js +0 -0
  855. package/lib/module/skia/{Surface/Surface.js.map → types/SVG/SVG.js.map} +0 -0
  856. package/lib/module/skia/{SVG → types/SVG}/SVGFactory.js +0 -0
  857. package/lib/module/skia/{Surface/SurfaceFactory.js.map → types/SVG/SVGFactory.js.map} +0 -0
  858. package/lib/module/skia/types/SVG/index.js +3 -0
  859. package/lib/module/skia/types/SVG/index.js.map +1 -0
  860. package/lib/module/skia/types/Shader/Shader.js +50 -0
  861. package/lib/module/skia/types/Shader/Shader.js.map +1 -0
  862. package/lib/module/skia/{Shader → types/Shader}/ShaderFactory.js +0 -0
  863. package/lib/module/skia/{TextBlob.js.map → types/Shader/ShaderFactory.js.map} +0 -0
  864. package/lib/module/skia/types/Shader/index.js +3 -0
  865. package/lib/module/skia/types/Shader/index.js.map +1 -0
  866. package/lib/module/skia/types/Skia.js +2 -0
  867. package/lib/module/skia/{Typeface/Typeface.js.map → types/Skia.js.map} +0 -0
  868. package/lib/module/skia/{Surface → types/Surface}/Surface.js +0 -0
  869. package/lib/module/skia/{Typeface/TypefaceFactory.js.map → types/Surface/Surface.js.map} +0 -0
  870. package/lib/module/skia/{Surface → types/Surface}/SurfaceFactory.js +0 -0
  871. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -0
  872. package/lib/module/skia/{Surface → types/Surface}/index.js +0 -0
  873. package/lib/module/skia/{Surface → types/Surface}/index.js.map +0 -0
  874. package/lib/module/skia/{TextBlob.js → types/TextBlob.js} +0 -0
  875. package/lib/module/skia/types/TextBlob.js.map +1 -0
  876. package/lib/module/skia/{Typeface → types/Typeface}/Typeface.js +0 -0
  877. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -0
  878. package/lib/module/skia/{Typeface → types/Typeface}/TypefaceFactory.js +0 -0
  879. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -0
  880. package/lib/module/skia/types/Typeface/index.js +3 -0
  881. package/lib/module/skia/types/Typeface/index.js.map +1 -0
  882. package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js +0 -0
  883. package/lib/module/skia/{Vertices → types/Vertices}/Vertices.js.map +0 -0
  884. package/lib/module/skia/{Vertices → types/Vertices}/index.js +0 -0
  885. package/lib/module/skia/{Vertices → types/Vertices}/index.js.map +0 -0
  886. package/lib/module/skia/types/index.js +29 -0
  887. package/lib/module/skia/types/index.js.map +1 -0
  888. package/lib/module/skia/web/Host.js +42 -0
  889. package/lib/module/skia/web/Host.js.map +1 -0
  890. package/lib/module/skia/web/JsiImageFilterFactory.js +57 -0
  891. package/lib/module/skia/web/JsiImageFilterFactory.js.map +1 -0
  892. package/lib/module/skia/web/JsiSkCanvas.js +173 -0
  893. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
  894. package/lib/module/skia/web/JsiSkColor.js +330 -0
  895. package/lib/module/skia/web/JsiSkColor.js.map +1 -0
  896. package/lib/module/skia/web/JsiSkColorFilter.js +8 -0
  897. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -0
  898. package/lib/module/skia/web/JsiSkColorFilterFactory.js +37 -0
  899. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
  900. package/lib/module/skia/web/JsiSkContourMeasure.js +31 -0
  901. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
  902. package/lib/module/skia/web/JsiSkContourMeasureIter.js +19 -0
  903. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
  904. package/lib/module/skia/web/JsiSkData.js +8 -0
  905. package/lib/module/skia/web/JsiSkData.js.map +1 -0
  906. package/lib/module/skia/web/JsiSkDataFactory.js +33 -0
  907. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
  908. package/lib/module/skia/web/JsiSkFont.js +99 -0
  909. package/lib/module/skia/web/JsiSkFont.js.map +1 -0
  910. package/lib/module/skia/web/JsiSkFontMgr.js +25 -0
  911. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
  912. package/lib/module/skia/web/JsiSkFontMgrFactory.js +14 -0
  913. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
  914. package/lib/module/skia/web/JsiSkImage.js +46 -0
  915. package/lib/module/skia/web/JsiSkImage.js.map +1 -0
  916. package/lib/module/skia/web/JsiSkImageFactory.js +36 -0
  917. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
  918. package/lib/module/skia/web/JsiSkImageFilter.js +8 -0
  919. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
  920. package/lib/module/skia/web/JsiSkMaskFilter.js +8 -0
  921. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
  922. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +13 -0
  923. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
  924. package/lib/module/skia/web/JsiSkMatrix.js +28 -0
  925. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
  926. package/lib/module/skia/web/JsiSkPaint.js +91 -0
  927. package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
  928. package/lib/module/skia/web/JsiSkPath.js +311 -0
  929. package/lib/module/skia/web/JsiSkPath.js.map +1 -0
  930. package/lib/module/skia/web/JsiSkPathEffect.js +8 -0
  931. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
  932. package/lib/module/skia/web/JsiSkPathEffectFactory.js +67 -0
  933. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
  934. package/lib/module/skia/web/JsiSkPathFactory.js +47 -0
  935. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
  936. package/lib/module/skia/web/JsiSkPicture.js +18 -0
  937. package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
  938. package/lib/module/skia/web/JsiSkPictureFactory.js +19 -0
  939. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
  940. package/lib/module/skia/web/JsiSkPictureRecorder.js +18 -0
  941. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
  942. package/lib/module/skia/web/JsiSkPoint.js +16 -0
  943. package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
  944. package/lib/module/skia/web/JsiSkRRect.js +21 -0
  945. package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
  946. package/lib/module/skia/web/JsiSkRSXform.js +8 -0
  947. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
  948. package/lib/module/skia/web/JsiSkRect.js +32 -0
  949. package/lib/module/skia/web/JsiSkRect.js.map +1 -0
  950. package/lib/module/skia/web/JsiSkRuntimeEffect.js +33 -0
  951. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
  952. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +19 -0
  953. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
  954. package/lib/module/skia/web/JsiSkSVGFactory.js +16 -0
  955. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
  956. package/lib/module/skia/web/JsiSkShader.js +8 -0
  957. package/lib/module/skia/web/JsiSkShader.js.map +1 -0
  958. package/lib/module/skia/web/JsiSkShaderFactory.js +41 -0
  959. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
  960. package/lib/module/skia/web/JsiSkSurface.js +19 -0
  961. package/lib/module/skia/web/JsiSkSurface.js.map +1 -0
  962. package/lib/module/skia/web/JsiSkSurfaceFactory.js +19 -0
  963. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -0
  964. package/lib/module/skia/web/JsiSkTextBlob.js +8 -0
  965. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
  966. package/lib/module/skia/web/JsiSkTextBlobFactory.js +25 -0
  967. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
  968. package/lib/module/skia/web/JsiSkTypeface.js +18 -0
  969. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
  970. package/lib/module/skia/web/JsiSkTypefaceFactory.js +19 -0
  971. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
  972. package/lib/module/skia/web/JsiSkVertices.js +17 -0
  973. package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
  974. package/lib/module/skia/web/JsiSkVerticesFactory.js +16 -0
  975. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
  976. package/lib/module/skia/web/JsiSkia.js +61 -0
  977. package/lib/module/skia/web/JsiSkia.js.map +1 -0
  978. package/lib/module/skia/web/index.js +2 -0
  979. package/lib/module/skia/web/index.js.map +1 -0
  980. package/lib/module/values/hooks/useValue.js.map +1 -1
  981. package/lib/module/values/hooks/useValueEffect.js.map +1 -1
  982. package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -1
  983. package/lib/module/values/web/api.js +2 -2
  984. package/lib/module/values/web/api.js.map +1 -1
  985. package/lib/module/views/SkiaView.js.map +1 -1
  986. package/lib/module/views/SkiaView.web.js +202 -0
  987. package/lib/module/views/SkiaView.web.js.map +1 -0
  988. package/lib/module/views/types.js.map +1 -1
  989. package/lib/module/views/useTouchHandler.js +64 -43
  990. package/lib/module/views/useTouchHandler.js.map +1 -1
  991. package/lib/module/web/index.js +8 -0
  992. package/lib/module/web/index.js.map +1 -0
  993. package/lib/typescript/src/animation/decay/runDecay.d.ts +2 -2
  994. package/lib/typescript/src/animation/functions/index.d.ts +4 -2
  995. package/lib/typescript/src/animation/functions/interpolatePaths.d.ts +17 -0
  996. package/lib/typescript/src/animation/functions/interpolateVector.d.ts +10 -0
  997. package/lib/typescript/src/animation/spring/runSpring.d.ts +2 -2
  998. package/lib/typescript/src/animation/spring/useSpring.d.ts +2 -2
  999. package/lib/typescript/src/animation/timing/createTiming.d.ts +2 -2
  1000. package/lib/typescript/src/animation/timing/runTiming.d.ts +2 -2
  1001. package/lib/typescript/src/animation/timing/useLoop.d.ts +1 -1
  1002. package/lib/typescript/src/animation/timing/useTiming.d.ts +2 -2
  1003. package/lib/typescript/src/index.d.ts +1 -0
  1004. package/lib/typescript/src/renderer/Canvas.d.ts +3 -14
  1005. package/lib/typescript/src/renderer/DependencyManager.d.ts +2 -2
  1006. package/lib/typescript/src/renderer/DrawingContext.d.ts +3 -4
  1007. package/lib/typescript/src/renderer/components/Blend.d.ts +1 -1
  1008. package/lib/typescript/src/renderer/components/Group.d.ts +1 -1
  1009. package/lib/typescript/src/renderer/components/Paint.d.ts +1 -1
  1010. package/lib/typescript/src/renderer/components/Picture.d.ts +1 -1
  1011. package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +2 -2
  1012. package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +2 -2
  1013. package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +13 -3
  1014. package/lib/typescript/src/renderer/components/image/Image.d.ts +1 -1
  1015. package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +1 -1
  1016. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +2 -2
  1017. package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +1 -1
  1018. package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +1 -1
  1019. package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +2 -3
  1020. package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +2 -1
  1021. package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +1 -1
  1022. package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +2 -1
  1023. package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +1 -1
  1024. package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +1 -1
  1025. package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +1 -1
  1026. package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +1 -1
  1027. package/lib/typescript/src/renderer/components/shaders/Color.d.ts +1 -1
  1028. package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +4 -4
  1029. package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +2 -1
  1030. package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +2 -1
  1031. package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +2 -9
  1032. package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +2 -1
  1033. package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +2 -1
  1034. package/lib/typescript/src/renderer/components/shapes/Box.d.ts +1 -2
  1035. package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +4 -1
  1036. package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +1 -1
  1037. package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +1 -1
  1038. package/lib/typescript/src/renderer/components/shapes/Line.d.ts +2 -1
  1039. package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +3 -3
  1040. package/lib/typescript/src/renderer/components/shapes/Path.d.ts +1 -1
  1041. package/lib/typescript/src/renderer/components/shapes/Points.d.ts +2 -2
  1042. package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +2 -2
  1043. package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +1 -1
  1044. package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +1 -1
  1045. package/lib/typescript/src/renderer/components/text/TextPath.d.ts +1 -1
  1046. package/lib/typescript/src/renderer/index.d.ts +2 -1
  1047. package/lib/typescript/src/renderer/nodes/Declaration.d.ts +1 -1
  1048. package/lib/typescript/src/renderer/nodes/Node.d.ts +1 -1
  1049. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +3 -5
  1050. package/lib/typescript/src/renderer/processors/Circles.d.ts +2 -2
  1051. package/lib/typescript/src/renderer/processors/Clips.d.ts +2 -3
  1052. package/lib/typescript/src/renderer/processors/Color.d.ts +7 -0
  1053. package/lib/typescript/src/renderer/processors/Font.d.ts +2 -3
  1054. package/lib/typescript/src/renderer/processors/Paint.d.ts +3 -3
  1055. package/lib/typescript/src/renderer/processors/Paths.d.ts +2 -2
  1056. package/lib/typescript/src/renderer/processors/Radius.d.ts +2 -2
  1057. package/lib/typescript/src/renderer/processors/Rects.d.ts +4 -13
  1058. package/lib/typescript/src/renderer/processors/Transform.d.ts +3 -4
  1059. package/lib/typescript/src/renderer/processors/index.d.ts +2 -1
  1060. package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +1 -1
  1061. package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +1 -1
  1062. package/lib/typescript/src/renderer/processors/math/index.d.ts +0 -2
  1063. package/lib/typescript/src/renderer/useCanvas.d.ts +14 -0
  1064. package/lib/typescript/src/skia/Skia.d.ts +2 -35
  1065. package/lib/typescript/src/skia/Skia.web.d.ts +1 -0
  1066. package/lib/typescript/src/skia/core/Data.d.ts +5 -0
  1067. package/lib/typescript/src/skia/core/Font.d.ts +5 -0
  1068. package/lib/typescript/src/skia/core/Image.d.ts +5 -0
  1069. package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
  1070. package/lib/typescript/src/skia/core/Paint.d.ts +6 -0
  1071. package/lib/typescript/src/skia/core/Path.d.ts +21 -0
  1072. package/lib/typescript/src/skia/core/Picture.d.ts +9 -0
  1073. package/lib/typescript/src/skia/core/RRect.d.ts +2 -0
  1074. package/lib/typescript/src/skia/core/Rect.d.ts +8 -0
  1075. package/lib/typescript/src/skia/core/SVG.d.ts +2 -0
  1076. package/lib/typescript/src/skia/core/Typeface.d.ts +5 -0
  1077. package/lib/typescript/src/skia/core/Vector.d.ts +12 -0
  1078. package/lib/typescript/src/skia/core/index.d.ts +12 -0
  1079. package/lib/typescript/src/skia/index.d.ts +2 -23
  1080. package/lib/typescript/src/skia/{Canvas.d.ts → types/Canvas.d.ts} +0 -0
  1081. package/lib/typescript/src/skia/types/Color.d.ts +2 -0
  1082. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.d.ts +0 -0
  1083. package/lib/typescript/src/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
  1084. package/lib/typescript/src/skia/{ColorFilter → types/ColorFilter}/index.d.ts +0 -0
  1085. package/lib/typescript/src/skia/types/ContourMeasure.d.ts +40 -0
  1086. package/lib/typescript/src/skia/types/Data/Data.d.ts +5 -0
  1087. package/lib/typescript/src/skia/types/Data/DataFactory.d.ts +18 -0
  1088. package/lib/typescript/src/skia/{Data → types/Data}/index.d.ts +0 -0
  1089. package/lib/typescript/src/skia/types/Font/Font.d.ts +187 -0
  1090. package/lib/typescript/src/skia/types/Font/index.d.ts +1 -0
  1091. package/lib/typescript/src/skia/types/FontMgr/FontMgr.d.ts +18 -0
  1092. package/lib/typescript/src/skia/types/FontMgr/FontMgrFactory.d.ts +4 -0
  1093. package/lib/typescript/src/skia/types/FontMgr/index.d.ts +2 -0
  1094. package/lib/typescript/src/skia/types/Image/Image.d.ts +75 -0
  1095. package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +62 -0
  1096. package/lib/typescript/src/skia/types/Image/index.d.ts +2 -0
  1097. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.d.ts +0 -0
  1098. package/lib/typescript/src/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
  1099. package/lib/typescript/src/skia/{ImageFilter → types/ImageFilter}/index.d.ts +0 -0
  1100. package/lib/typescript/src/skia/{JsiInstance.d.ts → types/JsiInstance.d.ts} +0 -0
  1101. package/lib/typescript/src/skia/types/MaskFilter.d.ts +21 -0
  1102. package/lib/typescript/src/skia/types/Matrix.d.ts +29 -0
  1103. package/lib/typescript/src/skia/{Paint → types/Paint}/BlendMode.d.ts +0 -0
  1104. package/lib/typescript/src/skia/types/Paint/Paint.d.ts +127 -0
  1105. package/lib/typescript/src/skia/types/Paint/index.d.ts +2 -0
  1106. package/lib/typescript/src/skia/types/Path/Path.d.ts +462 -0
  1107. package/lib/typescript/src/skia/types/Path/PathFactory.d.ts +29 -0
  1108. package/lib/typescript/src/skia/types/Path/index.d.ts +2 -0
  1109. package/lib/typescript/src/skia/types/PathEffect.d.ts +75 -0
  1110. package/lib/typescript/src/skia/types/Picture/Picture.d.ts +26 -0
  1111. package/lib/typescript/src/skia/{Picture → types/Picture}/PictureFactory.d.ts +0 -0
  1112. package/lib/typescript/src/skia/{Picture → types/Picture}/PictureRecorder.d.ts +0 -0
  1113. package/lib/typescript/src/skia/types/Picture/index.d.ts +3 -0
  1114. package/lib/typescript/src/skia/types/Point.d.ts +10 -0
  1115. package/lib/typescript/src/skia/types/RRect.d.ts +7 -0
  1116. package/lib/typescript/src/skia/{RSXform.d.ts → types/RSXform.d.ts} +0 -0
  1117. package/lib/typescript/src/skia/{Rect.d.ts → types/Rect.d.ts} +0 -0
  1118. package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +47 -0
  1119. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.d.ts +0 -0
  1120. package/lib/typescript/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.d.ts +0 -0
  1121. package/lib/typescript/src/skia/{SVG → types/SVG}/SVG.d.ts +0 -0
  1122. package/lib/typescript/src/skia/types/SVG/SVGFactory.d.ts +6 -0
  1123. package/lib/typescript/src/skia/types/SVG/index.d.ts +2 -0
  1124. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +11 -0
  1125. package/lib/typescript/src/skia/{Shader → types/Shader}/ShaderFactory.d.ts +0 -0
  1126. package/lib/typescript/src/skia/types/Shader/index.d.ts +2 -0
  1127. package/lib/typescript/src/skia/types/Skia.d.ts +68 -0
  1128. package/lib/typescript/src/skia/{Surface → types/Surface}/Surface.d.ts +0 -0
  1129. package/lib/typescript/src/skia/{Surface → types/Surface}/SurfaceFactory.d.ts +0 -0
  1130. package/lib/typescript/src/skia/{Surface → types/Surface}/index.d.ts +0 -0
  1131. package/lib/typescript/src/skia/{TextBlob.d.ts → types/TextBlob.d.ts} +0 -0
  1132. package/lib/typescript/src/skia/{Typeface → types/Typeface}/Typeface.d.ts +0 -0
  1133. package/lib/typescript/src/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
  1134. package/lib/typescript/src/skia/types/Typeface/index.d.ts +2 -0
  1135. package/lib/typescript/src/skia/{Vertices → types/Vertices}/Vertices.d.ts +0 -0
  1136. package/lib/typescript/src/skia/{Vertices → types/Vertices}/index.d.ts +0 -0
  1137. package/lib/typescript/src/skia/types/index.d.ts +28 -0
  1138. package/lib/typescript/src/skia/web/Host.d.ts +21 -0
  1139. package/lib/typescript/src/skia/web/JsiImageFilterFactory.d.ts +19 -0
  1140. package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +44 -0
  1141. package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
  1142. package/lib/typescript/src/skia/web/JsiSkColorFilter.d.ts +6 -0
  1143. package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
  1144. package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +16 -0
  1145. package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
  1146. package/lib/typescript/src/skia/web/JsiSkData.d.ts +8 -0
  1147. package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
  1148. package/lib/typescript/src/skia/web/JsiSkFont.d.ts +33 -0
  1149. package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +9 -0
  1150. package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
  1151. package/lib/typescript/src/skia/web/JsiSkImage.d.ts +12 -0
  1152. package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +10 -0
  1153. package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +6 -0
  1154. package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +6 -0
  1155. package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
  1156. package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +11 -0
  1157. package/lib/typescript/src/skia/web/JsiSkPaint.d.ts +26 -0
  1158. package/lib/typescript/src/skia/web/JsiSkPath.d.ts +56 -0
  1159. package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +6 -0
  1160. package/lib/typescript/src/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
  1161. package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +13 -0
  1162. package/lib/typescript/src/skia/web/JsiSkPicture.d.ts +9 -0
  1163. package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
  1164. package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +11 -0
  1165. package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +8 -0
  1166. package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +10 -0
  1167. package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -0
  1168. package/lib/typescript/src/skia/web/JsiSkRect.d.ts +11 -0
  1169. package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +14 -0
  1170. package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
  1171. package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +9 -0
  1172. package/lib/typescript/src/skia/web/JsiSkShader.d.ts +6 -0
  1173. package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
  1174. package/lib/typescript/src/skia/web/JsiSkSurface.d.ts +8 -0
  1175. package/lib/typescript/src/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
  1176. package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +6 -0
  1177. package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +12 -0
  1178. package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +8 -0
  1179. package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
  1180. package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +9 -0
  1181. package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +4 -0
  1182. package/lib/typescript/src/skia/web/JsiSkia.d.ts +3 -0
  1183. package/lib/typescript/src/skia/web/index.d.ts +1 -0
  1184. package/lib/typescript/src/values/api.d.ts +1 -1
  1185. package/lib/typescript/src/values/api.web.d.ts +1 -1
  1186. package/lib/typescript/src/values/hooks/useDerivedValue.d.ts +1 -1
  1187. package/lib/typescript/src/values/hooks/useValue.d.ts +2 -2
  1188. package/lib/typescript/src/values/hooks/useValueEffect.d.ts +2 -2
  1189. package/lib/typescript/src/values/types.d.ts +5 -5
  1190. package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +2 -2
  1191. package/lib/typescript/src/views/SkiaView.d.ts +4 -4
  1192. package/lib/typescript/src/views/SkiaView.web.d.ts +56 -0
  1193. package/lib/typescript/src/views/types.d.ts +4 -4
  1194. package/lib/typescript/src/views/useTouchHandler.d.ts +11 -1
  1195. package/lib/typescript/src/web/index.d.ts +5 -0
  1196. package/libs/android/arm64-v8a/libskia.a +0 -0
  1197. package/libs/android/arm64-v8a/libsvg.a +0 -0
  1198. package/libs/android/armeabi-v7a/libskia.a +0 -0
  1199. package/libs/android/armeabi-v7a/libsvg.a +0 -0
  1200. package/libs/android/x86/libskia.a +0 -0
  1201. package/libs/android/x86/libsvg.a +0 -0
  1202. package/libs/android/x86_64/libskia.a +0 -0
  1203. package/libs/android/x86_64/libsvg.a +0 -0
  1204. package/libs/ios/libskia.xcframework/Info.plist +5 -5
  1205. package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
  1206. package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  1207. package/libs/ios/libskshaper.xcframework/Info.plist +5 -5
  1208. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
  1209. package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  1210. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
  1211. package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  1212. package/package.json +3 -2
  1213. package/src/animation/decay/runDecay.ts +5 -2
  1214. package/src/animation/functions/index.ts +4 -2
  1215. package/src/animation/functions/interpolateColors.ts +1 -2
  1216. package/src/animation/functions/interpolatePaths.ts +38 -0
  1217. package/src/animation/functions/interpolateVector.ts +26 -0
  1218. package/src/animation/spring/runSpring.ts +2 -2
  1219. package/src/animation/spring/useSpring.ts +2 -2
  1220. package/src/animation/timing/createTiming.ts +2 -2
  1221. package/src/animation/timing/runTiming.ts +2 -2
  1222. package/src/animation/timing/useTiming.ts +2 -2
  1223. package/src/index.ts +1 -1
  1224. package/src/renderer/Canvas.tsx +13 -36
  1225. package/src/renderer/DependencyManager.tsx +2 -2
  1226. package/src/renderer/DrawingContext.ts +3 -5
  1227. package/src/renderer/HostConfig.ts +2 -2
  1228. package/src/renderer/components/Blend.tsx +12 -11
  1229. package/src/renderer/components/Compose.tsx +2 -4
  1230. package/src/renderer/components/Group.tsx +11 -6
  1231. package/src/renderer/components/Mask.tsx +5 -3
  1232. package/src/renderer/components/Paint.tsx +5 -4
  1233. package/src/renderer/components/Picture.tsx +1 -1
  1234. package/src/renderer/components/backdrop/BackdropFilter.tsx +1 -1
  1235. package/src/renderer/components/colorFilters/BlendColor.tsx +4 -4
  1236. package/src/renderer/components/colorFilters/Compose.ts +3 -2
  1237. package/src/renderer/components/colorFilters/Lerp.tsx +3 -3
  1238. package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +2 -3
  1239. package/src/renderer/components/colorFilters/LumaColorFilter.tsx +2 -3
  1240. package/src/renderer/components/colorFilters/Matrix.tsx +2 -3
  1241. package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +2 -3
  1242. package/src/renderer/components/image/BoxFit.ts +7 -13
  1243. package/src/renderer/components/image/Image.tsx +3 -3
  1244. package/src/renderer/components/image/ImageSVG.tsx +3 -3
  1245. package/src/renderer/components/image/ImageShader.tsx +8 -7
  1246. package/src/renderer/components/imageFilters/Blur.tsx +12 -10
  1247. package/src/renderer/components/imageFilters/DisplacementMap.tsx +4 -5
  1248. package/src/renderer/components/imageFilters/InnerShadow.tsx +4 -4
  1249. package/src/renderer/components/imageFilters/Morphology.tsx +3 -4
  1250. package/src/renderer/components/imageFilters/Offset.tsx +5 -4
  1251. package/src/renderer/components/imageFilters/RuntimeShader.tsx +12 -4
  1252. package/src/renderer/components/imageFilters/Shadow.tsx +10 -7
  1253. package/src/renderer/components/imageFilters/getInput.ts +3 -2
  1254. package/src/renderer/components/maskFilters/Blur.tsx +2 -3
  1255. package/src/renderer/components/pathEffects/Corner.tsx +2 -3
  1256. package/src/renderer/components/pathEffects/Dash.tsx +2 -3
  1257. package/src/renderer/components/pathEffects/Discrete.tsx +2 -3
  1258. package/src/renderer/components/pathEffects/Line2D.tsx +3 -4
  1259. package/src/renderer/components/pathEffects/Path1D.tsx +3 -4
  1260. package/src/renderer/components/pathEffects/Path2D.tsx +4 -5
  1261. package/src/renderer/components/pathEffects/Sum.tsx +7 -6
  1262. package/src/renderer/components/shaders/Color.tsx +7 -5
  1263. package/src/renderer/components/shaders/FractalNoise.tsx +1 -2
  1264. package/src/renderer/components/shaders/Gradient.ts +7 -10
  1265. package/src/renderer/components/shaders/LinearGradient.tsx +4 -4
  1266. package/src/renderer/components/shaders/RadialGradient.tsx +4 -4
  1267. package/src/renderer/components/shaders/Shader.tsx +6 -58
  1268. package/src/renderer/components/shaders/SweepGradient.tsx +4 -4
  1269. package/src/renderer/components/shaders/Turbulence.tsx +1 -2
  1270. package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +4 -4
  1271. package/src/renderer/components/shapes/Box.tsx +36 -19
  1272. package/src/renderer/components/shapes/Circle.tsx +3 -4
  1273. package/src/renderer/components/shapes/DiffRect.tsx +1 -1
  1274. package/src/renderer/components/shapes/FitBox.tsx +1 -1
  1275. package/src/renderer/components/shapes/Line.tsx +2 -1
  1276. package/src/renderer/components/shapes/Oval.tsx +6 -4
  1277. package/src/renderer/components/shapes/Patch.tsx +6 -11
  1278. package/src/renderer/components/shapes/Path.tsx +3 -3
  1279. package/src/renderer/components/shapes/Points.tsx +2 -2
  1280. package/src/renderer/components/shapes/Rect.tsx +6 -4
  1281. package/src/renderer/components/shapes/RoundedRect.tsx +2 -2
  1282. package/src/renderer/components/shapes/Vertices.tsx +5 -4
  1283. package/src/renderer/components/text/Glyphs.tsx +6 -3
  1284. package/src/renderer/components/text/Text.tsx +2 -2
  1285. package/src/renderer/components/text/TextBlob.tsx +1 -1
  1286. package/src/renderer/components/text/TextPath.tsx +3 -5
  1287. package/src/renderer/index.ts +2 -1
  1288. package/src/renderer/nodes/Declaration.tsx +1 -1
  1289. package/src/renderer/nodes/Drawing.tsx +3 -2
  1290. package/src/renderer/nodes/Node.ts +1 -1
  1291. package/src/renderer/processors/Animations/Animations.ts +5 -11
  1292. package/src/renderer/processors/Circles.ts +4 -4
  1293. package/src/renderer/processors/Clips.ts +9 -5
  1294. package/src/renderer/processors/Color.ts +15 -0
  1295. package/src/renderer/processors/Font.ts +10 -4
  1296. package/src/renderer/processors/Paint.ts +12 -7
  1297. package/src/renderer/processors/Paths.ts +3 -3
  1298. package/src/renderer/processors/Radius.ts +3 -4
  1299. package/src/renderer/processors/Rects.ts +12 -43
  1300. package/src/renderer/processors/Transform.ts +28 -19
  1301. package/src/renderer/processors/index.ts +2 -1
  1302. package/src/renderer/processors/math/Coordinates.ts +1 -1
  1303. package/src/renderer/processors/math/Transforms.ts +2 -1
  1304. package/src/renderer/processors/math/index.ts +0 -2
  1305. package/src/renderer/useCanvas.ts +21 -0
  1306. package/src/skia/NativeSetup.ts +2 -2
  1307. package/src/skia/Skia.ts +2 -38
  1308. package/src/skia/Skia.web.ts +3 -0
  1309. package/src/skia/core/Data.ts +81 -0
  1310. package/src/skia/core/Font.ts +28 -0
  1311. package/src/skia/core/Image.ts +12 -0
  1312. package/src/skia/core/Matrix.ts +6 -0
  1313. package/src/skia/core/Paint.ts +22 -0
  1314. package/src/skia/core/Path.ts +60 -0
  1315. package/src/skia/core/Picture.ts +25 -0
  1316. package/src/skia/core/RRect.tsx +5 -0
  1317. package/src/skia/core/Rect.ts +33 -0
  1318. package/src/skia/core/SVG.ts +9 -0
  1319. package/src/skia/core/Typeface.ts +11 -0
  1320. package/src/skia/core/Vector.ts +11 -0
  1321. package/src/skia/core/index.ts +12 -0
  1322. package/src/skia/index.ts +2 -23
  1323. package/src/skia/{Canvas.ts → types/Canvas.ts} +0 -0
  1324. package/src/skia/types/Color.ts +4 -0
  1325. package/src/skia/{ColorFilter → types/ColorFilter}/ColorFilter.ts +0 -0
  1326. package/src/skia/types/ColorFilter/ColorFilterFactory.ts +52 -0
  1327. package/src/skia/{ColorFilter → types/ColorFilter}/index.ts +0 -0
  1328. package/src/skia/types/ContourMeasure.tsx +47 -0
  1329. package/src/skia/types/Data/Data.ts +5 -0
  1330. package/src/skia/types/Data/DataFactory.ts +19 -0
  1331. package/src/skia/{Data → types/Data}/index.ts +0 -0
  1332. package/src/skia/types/Font/Font.ts +230 -0
  1333. package/src/skia/types/Font/index.ts +1 -0
  1334. package/src/skia/types/FontMgr/FontMgr.ts +24 -0
  1335. package/src/skia/types/FontMgr/FontMgrFactory.ts +12 -0
  1336. package/src/skia/types/FontMgr/index.ts +2 -0
  1337. package/src/skia/types/Image/Image.ts +96 -0
  1338. package/src/skia/types/Image/ImageFactory.ts +78 -0
  1339. package/src/skia/types/Image/index.ts +2 -0
  1340. package/src/skia/{ImageFilter → types/ImageFilter}/ImageFilter.ts +0 -0
  1341. package/src/skia/types/ImageFilter/ImageFilterFactory.ts +192 -0
  1342. package/src/skia/{ImageFilter → types/ImageFilter}/index.ts +0 -0
  1343. package/src/skia/{JsiInstance.ts → types/JsiInstance.ts} +0 -0
  1344. package/src/skia/types/MaskFilter.ts +27 -0
  1345. package/src/skia/types/Matrix.ts +95 -0
  1346. package/src/skia/{Paint → types/Paint}/BlendMode.ts +0 -0
  1347. package/src/skia/types/Paint/Paint.ts +153 -0
  1348. package/src/skia/types/Paint/index.ts +2 -0
  1349. package/src/skia/types/Path/Path.ts +565 -0
  1350. package/src/skia/types/Path/PathFactory.ts +34 -0
  1351. package/src/skia/types/Path/index.ts +2 -0
  1352. package/src/skia/types/PathEffect.ts +97 -0
  1353. package/src/skia/types/Picture/Picture.ts +34 -0
  1354. package/src/skia/{Picture → types/Picture}/PictureFactory.ts +0 -0
  1355. package/src/skia/{Picture → types/Picture}/PictureRecorder.ts +0 -0
  1356. package/src/skia/types/Picture/index.ts +3 -0
  1357. package/src/skia/types/Point.ts +12 -0
  1358. package/src/skia/types/RRect.ts +12 -0
  1359. package/src/skia/{RSXform.ts → types/RSXform.ts} +0 -0
  1360. package/src/skia/{Rect.ts → types/Rect.ts} +0 -0
  1361. package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +60 -0
  1362. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/RuntimeEffectFactory.ts +0 -0
  1363. package/src/skia/{RuntimeEffect → types/RuntimeEffect}/index.ts +0 -0
  1364. package/src/skia/{SVG → types/SVG}/SVG.ts +0 -0
  1365. package/src/skia/types/SVG/SVGFactory.ts +8 -0
  1366. package/src/skia/types/SVG/index.ts +2 -0
  1367. package/src/skia/types/Shader/Shader.ts +67 -0
  1368. package/src/skia/{Shader → types/Shader}/ShaderFactory.ts +0 -0
  1369. package/src/skia/types/Shader/index.ts +2 -0
  1370. package/src/skia/types/Skia.ts +84 -0
  1371. package/src/skia/{Surface → types/Surface}/Surface.ts +0 -0
  1372. package/src/skia/{Surface → types/Surface}/SurfaceFactory.ts +0 -0
  1373. package/src/skia/{Surface → types/Surface}/index.ts +0 -0
  1374. package/src/skia/{TextBlob.ts → types/TextBlob.ts} +0 -0
  1375. package/src/skia/{Typeface → types/Typeface}/Typeface.ts +0 -0
  1376. package/src/skia/types/Typeface/TypefaceFactory.ts +7 -0
  1377. package/src/skia/types/Typeface/index.ts +2 -0
  1378. package/src/skia/{Vertices → types/Vertices}/Vertices.tsx +0 -0
  1379. package/src/skia/{Vertices → types/Vertices}/index.ts +0 -0
  1380. package/src/skia/types/index.ts +28 -0
  1381. package/src/skia/web/Host.ts +56 -0
  1382. package/src/skia/web/JsiImageFilterFactory.ts +144 -0
  1383. package/src/skia/web/JsiSkCanvas.ts +330 -0
  1384. package/src/skia/web/JsiSkColor.ts +327 -0
  1385. package/src/skia/web/JsiSkColorFilter.ts +14 -0
  1386. package/src/skia/web/JsiSkColorFilterFactory.ts +67 -0
  1387. package/src/skia/web/JsiSkContourMeasure.ts +35 -0
  1388. package/src/skia/web/JsiSkContourMeasureIter.ts +23 -0
  1389. package/src/skia/web/JsiSkData.ts +13 -0
  1390. package/src/skia/web/JsiSkDataFactory.ts +35 -0
  1391. package/src/skia/web/JsiSkFont.ts +124 -0
  1392. package/src/skia/web/JsiSkFontMgr.ts +42 -0
  1393. package/src/skia/web/JsiSkFontMgrFactory.ts +18 -0
  1394. package/src/skia/web/JsiSkImage.ts +66 -0
  1395. package/src/skia/web/JsiSkImageFactory.ts +40 -0
  1396. package/src/skia/web/JsiSkImageFilter.ts +14 -0
  1397. package/src/skia/web/JsiSkMaskFilter.ts +14 -0
  1398. package/src/skia/web/JsiSkMaskFilterFactory.ts +20 -0
  1399. package/src/skia/web/JsiSkMatrix.ts +54 -0
  1400. package/src/skia/web/JsiSkPaint.ts +104 -0
  1401. package/src/skia/web/JsiSkPath.ts +369 -0
  1402. package/src/skia/web/JsiSkPathEffect.ts +14 -0
  1403. package/src/skia/web/JsiSkPathEffectFactory.ts +85 -0
  1404. package/src/skia/web/JsiSkPathFactory.ts +54 -0
  1405. package/src/skia/web/JsiSkPicture.ts +45 -0
  1406. package/src/skia/web/JsiSkPictureFactory.ts +20 -0
  1407. package/src/skia/web/JsiSkPictureRecorder.ts +31 -0
  1408. package/src/skia/web/JsiSkPoint.ts +19 -0
  1409. package/src/skia/web/JsiSkRRect.ts +27 -0
  1410. package/src/skia/web/JsiSkRSXform.ts +16 -0
  1411. package/src/skia/web/JsiSkRect.ts +37 -0
  1412. package/src/skia/web/JsiSkRuntimeEffect.ts +57 -0
  1413. package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
  1414. package/src/skia/web/JsiSkSVGFactory.ts +20 -0
  1415. package/src/skia/web/JsiSkShader.ts +14 -0
  1416. package/src/skia/web/JsiSkShaderFactory.ts +178 -0
  1417. package/src/skia/web/JsiSkSurface.ts +25 -0
  1418. package/src/skia/web/JsiSkSurfaceFactory.ts +20 -0
  1419. package/src/skia/web/JsiSkTextBlob.ts +14 -0
  1420. package/src/skia/web/JsiSkTextBlobFactory.ts +49 -0
  1421. package/src/skia/web/JsiSkTypeface.ts +28 -0
  1422. package/src/skia/web/JsiSkTypefaceFactory.tsx +20 -0
  1423. package/src/skia/web/JsiSkVertices.ts +23 -0
  1424. package/src/skia/web/JsiSkVerticesFactory.ts +27 -0
  1425. package/src/skia/web/JsiSkia.ts +98 -0
  1426. package/src/skia/web/index.ts +1 -0
  1427. package/src/values/hooks/useValue.ts +2 -2
  1428. package/src/values/hooks/useValueEffect.ts +2 -5
  1429. package/src/values/types.ts +6 -6
  1430. package/src/values/web/RNSkReadonlyValue.ts +2 -2
  1431. package/src/values/web/api.ts +6 -6
  1432. package/src/views/SkiaView.tsx +3 -3
  1433. package/src/views/SkiaView.web.tsx +192 -0
  1434. package/src/views/types.ts +4 -4
  1435. package/src/views/useTouchHandler.ts +82 -51
  1436. package/src/web/index.ts +13 -0
  1437. package/cpp/skia/include/core/SkCustomMesh.h +0 -202
  1438. package/cpp/skia/include/core/SkStringView.h +0 -185
  1439. package/cpp/skia/include/private/GrContext_Base.h +0 -92
  1440. package/cpp/skia/include/private/GrGLTypesPriv.h +0 -107
  1441. package/cpp/skia/include/private/GrImageContext.h +0 -55
  1442. package/cpp/skia/include/private/GrSingleOwner.h +0 -65
  1443. package/cpp/skia/include/private/GrTypesPriv.h +0 -1354
  1444. package/cpp/skia/include/private/SkPaintParamsKey.h +0 -110
  1445. package/cpp/skia/include/private/SkShaderCodeDictionary.h +0 -63
  1446. package/cpp/skia/include/private/SkTOptional.h +0 -362
  1447. package/lib/commonjs/renderer/processors/math/Matrix3.js +0 -66
  1448. package/lib/commonjs/renderer/processors/math/Matrix3.js.map +0 -1
  1449. package/lib/commonjs/renderer/processors/math/Vector.js +0 -60
  1450. package/lib/commonjs/renderer/processors/math/Vector.js.map +0 -1
  1451. package/lib/commonjs/skia/Color.js +0 -31
  1452. package/lib/commonjs/skia/Color.js.map +0 -1
  1453. package/lib/commonjs/skia/Data/Data.js +0 -53
  1454. package/lib/commonjs/skia/Data/Data.js.map +0 -1
  1455. package/lib/commonjs/skia/Font/Font.js.map +0 -1
  1456. package/lib/commonjs/skia/Font/index.js +0 -32
  1457. package/lib/commonjs/skia/Font/index.js.map +0 -1
  1458. package/lib/commonjs/skia/Font/useFont.js +0 -36
  1459. package/lib/commonjs/skia/Font/useFont.js.map +0 -1
  1460. package/lib/commonjs/skia/FontMgr/index.js +0 -19
  1461. package/lib/commonjs/skia/FontMgr/index.js.map +0 -1
  1462. package/lib/commonjs/skia/Image/Image.js.map +0 -1
  1463. package/lib/commonjs/skia/Image/ImageFactory.js.map +0 -1
  1464. package/lib/commonjs/skia/Image/index.js +0 -45
  1465. package/lib/commonjs/skia/Image/index.js.map +0 -1
  1466. package/lib/commonjs/skia/Image/useImage.js +0 -18
  1467. package/lib/commonjs/skia/Image/useImage.js.map +0 -1
  1468. package/lib/commonjs/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
  1469. package/lib/commonjs/skia/MaskFilter.js.map +0 -1
  1470. package/lib/commonjs/skia/Matrix.js +0 -21
  1471. package/lib/commonjs/skia/Matrix.js.map +0 -1
  1472. package/lib/commonjs/skia/Paint/Paint.js +0 -48
  1473. package/lib/commonjs/skia/Paint/Paint.js.map +0 -1
  1474. package/lib/commonjs/skia/Paint/index.js +0 -45
  1475. package/lib/commonjs/skia/Paint/index.js.map +0 -1
  1476. package/lib/commonjs/skia/Paint/usePaint.js +0 -26
  1477. package/lib/commonjs/skia/Paint/usePaint.js.map +0 -1
  1478. package/lib/commonjs/skia/Path/Path.js +0 -47
  1479. package/lib/commonjs/skia/Path/Path.js.map +0 -1
  1480. package/lib/commonjs/skia/Path/index.js +0 -45
  1481. package/lib/commonjs/skia/Path/index.js.map +0 -1
  1482. package/lib/commonjs/skia/Path/usePath.js +0 -60
  1483. package/lib/commonjs/skia/Path/usePath.js.map +0 -1
  1484. package/lib/commonjs/skia/PathEffect.js.map +0 -1
  1485. package/lib/commonjs/skia/Picture/index.js +0 -58
  1486. package/lib/commonjs/skia/Picture/index.js.map +0 -1
  1487. package/lib/commonjs/skia/Picture/usePicture.js +0 -30
  1488. package/lib/commonjs/skia/Picture/usePicture.js.map +0 -1
  1489. package/lib/commonjs/skia/Point.js.map +0 -1
  1490. package/lib/commonjs/skia/RRect.js +0 -6
  1491. package/lib/commonjs/skia/SVG/index.js +0 -45
  1492. package/lib/commonjs/skia/SVG/index.js.map +0 -1
  1493. package/lib/commonjs/skia/SVG/useSvg.js +0 -15
  1494. package/lib/commonjs/skia/SVG/useSvg.js.map +0 -1
  1495. package/lib/commonjs/skia/Shader/Shader.js +0 -11
  1496. package/lib/commonjs/skia/Shader/Shader.js.map +0 -1
  1497. package/lib/commonjs/skia/Shader/index.js +0 -45
  1498. package/lib/commonjs/skia/Shader/index.js.map +0 -1
  1499. package/lib/commonjs/skia/Shader/useShader.js +0 -18
  1500. package/lib/commonjs/skia/Shader/useShader.js.map +0 -1
  1501. package/lib/commonjs/skia/SkiaApi.js +0 -4
  1502. package/lib/commonjs/skia/SkiaApi.js.map +0 -1
  1503. package/lib/commonjs/skia/Typeface/index.js +0 -45
  1504. package/lib/commonjs/skia/Typeface/index.js.map +0 -1
  1505. package/lib/commonjs/skia/Typeface/useTypeface.js +0 -18
  1506. package/lib/commonjs/skia/Typeface/useTypeface.js.map +0 -1
  1507. package/lib/module/renderer/processors/math/Matrix3.js +0 -55
  1508. package/lib/module/renderer/processors/math/Matrix3.js.map +0 -1
  1509. package/lib/module/renderer/processors/math/Vector.js +0 -28
  1510. package/lib/module/renderer/processors/math/Vector.js.map +0 -1
  1511. package/lib/module/skia/Color.js +0 -13
  1512. package/lib/module/skia/Color.js.map +0 -1
  1513. package/lib/module/skia/Data/Data.js +0 -35
  1514. package/lib/module/skia/Data/Data.js.map +0 -1
  1515. package/lib/module/skia/Font/Font.js.map +0 -1
  1516. package/lib/module/skia/Font/index.js +0 -3
  1517. package/lib/module/skia/Font/index.js.map +0 -1
  1518. package/lib/module/skia/Font/useFont.js +0 -24
  1519. package/lib/module/skia/Font/useFont.js.map +0 -1
  1520. package/lib/module/skia/FontMgr/index.js +0 -2
  1521. package/lib/module/skia/FontMgr/index.js.map +0 -1
  1522. package/lib/module/skia/Image/Image.js.map +0 -1
  1523. package/lib/module/skia/Image/ImageFactory.js.map +0 -1
  1524. package/lib/module/skia/Image/index.js +0 -4
  1525. package/lib/module/skia/Image/index.js.map +0 -1
  1526. package/lib/module/skia/Image/useImage.js +0 -8
  1527. package/lib/module/skia/Image/useImage.js.map +0 -1
  1528. package/lib/module/skia/ImageFilter/ImageFilterFactory.js.map +0 -1
  1529. package/lib/module/skia/MaskFilter.js.map +0 -1
  1530. package/lib/module/skia/Matrix.js +0 -14
  1531. package/lib/module/skia/Matrix.js.map +0 -1
  1532. package/lib/module/skia/Paint/Paint.js +0 -31
  1533. package/lib/module/skia/Paint/Paint.js.map +0 -1
  1534. package/lib/module/skia/Paint/index.js +0 -4
  1535. package/lib/module/skia/Paint/index.js.map +0 -1
  1536. package/lib/module/skia/Paint/usePaint.js +0 -16
  1537. package/lib/module/skia/Paint/usePaint.js.map +0 -1
  1538. package/lib/module/skia/Path/Path.js +0 -35
  1539. package/lib/module/skia/Path/Path.js.map +0 -1
  1540. package/lib/module/skia/Path/index.js +0 -4
  1541. package/lib/module/skia/Path/index.js.map +0 -1
  1542. package/lib/module/skia/Path/usePath.js +0 -44
  1543. package/lib/module/skia/Path/usePath.js.map +0 -1
  1544. package/lib/module/skia/PathEffect.js.map +0 -1
  1545. package/lib/module/skia/Picture/index.js +0 -5
  1546. package/lib/module/skia/Picture/index.js.map +0 -1
  1547. package/lib/module/skia/Picture/usePicture.js +0 -19
  1548. package/lib/module/skia/Picture/usePicture.js.map +0 -1
  1549. package/lib/module/skia/Point.js.map +0 -1
  1550. package/lib/module/skia/RRect.js +0 -2
  1551. package/lib/module/skia/SVG/index.js +0 -4
  1552. package/lib/module/skia/SVG/index.js.map +0 -1
  1553. package/lib/module/skia/SVG/useSvg.js +0 -4
  1554. package/lib/module/skia/SVG/useSvg.js.map +0 -1
  1555. package/lib/module/skia/Shader/Shader.js +0 -2
  1556. package/lib/module/skia/Shader/Shader.js.map +0 -1
  1557. package/lib/module/skia/Shader/index.js +0 -4
  1558. package/lib/module/skia/Shader/index.js.map +0 -1
  1559. package/lib/module/skia/Shader/useShader.js +0 -7
  1560. package/lib/module/skia/Shader/useShader.js.map +0 -1
  1561. package/lib/module/skia/SkiaApi.js +0 -2
  1562. package/lib/module/skia/SkiaApi.js.map +0 -1
  1563. package/lib/module/skia/Typeface/index.js +0 -4
  1564. package/lib/module/skia/Typeface/index.js.map +0 -1
  1565. package/lib/module/skia/Typeface/useTypeface.js +0 -8
  1566. package/lib/module/skia/Typeface/useTypeface.js.map +0 -1
  1567. package/lib/typescript/src/renderer/processors/math/Matrix3.d.ts +0 -10
  1568. package/lib/typescript/src/renderer/processors/math/Vector.d.ts +0 -23
  1569. package/lib/typescript/src/skia/Color.d.ts +0 -8
  1570. package/lib/typescript/src/skia/ColorFilter/ColorFilterFactory.d.ts +0 -43
  1571. package/lib/typescript/src/skia/ContourMeasure.d.ts +0 -42
  1572. package/lib/typescript/src/skia/Data/Data.d.ts +0 -9
  1573. package/lib/typescript/src/skia/Data/DataFactory.d.ts +0 -18
  1574. package/lib/typescript/src/skia/Font/Font.d.ts +0 -187
  1575. package/lib/typescript/src/skia/Font/index.d.ts +0 -2
  1576. package/lib/typescript/src/skia/Font/useFont.d.ts +0 -6
  1577. package/lib/typescript/src/skia/FontMgr/FontMgr.d.ts +0 -18
  1578. package/lib/typescript/src/skia/FontMgr/FontMgrFactory.d.ts +0 -4
  1579. package/lib/typescript/src/skia/FontMgr/index.d.ts +0 -1
  1580. package/lib/typescript/src/skia/Image/Image.d.ts +0 -75
  1581. package/lib/typescript/src/skia/Image/ImageFactory.d.ts +0 -62
  1582. package/lib/typescript/src/skia/Image/index.d.ts +0 -3
  1583. package/lib/typescript/src/skia/Image/useImage.d.ts +0 -5
  1584. package/lib/typescript/src/skia/ImageFilter/ImageFilterFactory.d.ts +0 -130
  1585. package/lib/typescript/src/skia/MaskFilter.d.ts +0 -21
  1586. package/lib/typescript/src/skia/Matrix.d.ts +0 -28
  1587. package/lib/typescript/src/skia/Paint/Paint.d.ts +0 -128
  1588. package/lib/typescript/src/skia/Paint/index.d.ts +0 -3
  1589. package/lib/typescript/src/skia/Paint/usePaint.d.ts +0 -6
  1590. package/lib/typescript/src/skia/Path/Path.d.ts +0 -456
  1591. package/lib/typescript/src/skia/Path/PathFactory.d.ts +0 -24
  1592. package/lib/typescript/src/skia/Path/index.d.ts +0 -3
  1593. package/lib/typescript/src/skia/Path/usePath.d.ts +0 -22
  1594. package/lib/typescript/src/skia/PathEffect.d.ts +0 -75
  1595. package/lib/typescript/src/skia/Picture/Picture.d.ts +0 -26
  1596. package/lib/typescript/src/skia/Picture/index.d.ts +0 -4
  1597. package/lib/typescript/src/skia/Picture/usePicture.d.ts +0 -11
  1598. package/lib/typescript/src/skia/Point.d.ts +0 -9
  1599. package/lib/typescript/src/skia/RRect.d.ts +0 -6
  1600. package/lib/typescript/src/skia/RuntimeEffect/RuntimeEffect.d.ts +0 -48
  1601. package/lib/typescript/src/skia/SVG/SVGFactory.d.ts +0 -6
  1602. package/lib/typescript/src/skia/SVG/index.d.ts +0 -3
  1603. package/lib/typescript/src/skia/SVG/useSvg.d.ts +0 -2
  1604. package/lib/typescript/src/skia/Shader/Shader.d.ts +0 -3
  1605. package/lib/typescript/src/skia/Shader/index.d.ts +0 -3
  1606. package/lib/typescript/src/skia/Shader/useShader.d.ts +0 -1
  1607. package/lib/typescript/src/skia/SkiaApi.d.ts +0 -71
  1608. package/lib/typescript/src/skia/Typeface/TypefaceFactory.d.ts +0 -5
  1609. package/lib/typescript/src/skia/Typeface/index.d.ts +0 -3
  1610. package/lib/typescript/src/skia/Typeface/useTypeface.d.ts +0 -5
  1611. package/src/animation/timing/functions/__tests__/timing.spec.ts +0 -29
  1612. package/src/renderer/processors/math/Matrix3.ts +0 -73
  1613. package/src/renderer/processors/math/Vector.ts +0 -38
  1614. package/src/skia/Color.ts +0 -20
  1615. package/src/skia/ColorFilter/ColorFilterFactory.ts +0 -52
  1616. package/src/skia/ContourMeasure.tsx +0 -49
  1617. package/src/skia/Data/Data.ts +0 -61
  1618. package/src/skia/Data/DataFactory.ts +0 -19
  1619. package/src/skia/Font/Font.ts +0 -230
  1620. package/src/skia/Font/index.ts +0 -2
  1621. package/src/skia/Font/useFont.ts +0 -27
  1622. package/src/skia/FontMgr/FontMgr.ts +0 -24
  1623. package/src/skia/FontMgr/FontMgrFactory.ts +0 -17
  1624. package/src/skia/FontMgr/index.ts +0 -1
  1625. package/src/skia/Image/Image.ts +0 -96
  1626. package/src/skia/Image/ImageFactory.ts +0 -78
  1627. package/src/skia/Image/index.ts +0 -3
  1628. package/src/skia/Image/useImage.ts +0 -9
  1629. package/src/skia/ImageFilter/ImageFilterFactory.ts +0 -192
  1630. package/src/skia/MaskFilter.ts +0 -27
  1631. package/src/skia/Matrix.ts +0 -30
  1632. package/src/skia/Paint/Paint.ts +0 -160
  1633. package/src/skia/Paint/index.ts +0 -3
  1634. package/src/skia/Paint/usePaint.ts +0 -21
  1635. package/src/skia/Path/Path.ts +0 -554
  1636. package/src/skia/Path/PathFactory.ts +0 -27
  1637. package/src/skia/Path/index.ts +0 -3
  1638. package/src/skia/Path/usePath.ts +0 -54
  1639. package/src/skia/PathEffect.ts +0 -93
  1640. package/src/skia/Picture/Picture.ts +0 -34
  1641. package/src/skia/Picture/index.ts +0 -4
  1642. package/src/skia/Picture/usePicture.ts +0 -28
  1643. package/src/skia/Point.ts +0 -10
  1644. package/src/skia/RRect.ts +0 -7
  1645. package/src/skia/RuntimeEffect/RuntimeEffect.ts +0 -65
  1646. package/src/skia/SVG/SVGFactory.ts +0 -8
  1647. package/src/skia/SVG/index.ts +0 -3
  1648. package/src/skia/SVG/useSvg.ts +0 -6
  1649. package/src/skia/Shader/Shader.ts +0 -6
  1650. package/src/skia/Shader/index.ts +0 -3
  1651. package/src/skia/Shader/useShader.ts +0 -9
  1652. package/src/skia/SkiaApi.ts +0 -86
  1653. package/src/skia/Typeface/TypefaceFactory.ts +0 -7
  1654. package/src/skia/Typeface/index.ts +0 -3
  1655. package/src/skia/Typeface/useTypeface.ts +0 -9
  1656. package/src/values/web/__tests__/RNSkAnimation.spec.ts +0 -21
  1657. package/src/values/web/__tests__/RNSkDerivedValue.spec.ts +0 -15
  1658. package/src/values/web/__tests__/RNSkReadonlyValue.spec.ts +0 -8
  1659. package/src/values/web/__tests__/RNSkValue.spec.ts +0 -11
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkSurface = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ var _JsiSkCanvas = require("./JsiSkCanvas");
11
+
12
+ var _JsiSkImage = require("./JsiSkImage");
13
+
14
+ class JsiSkSurface extends _Host.HostObject {
15
+ constructor(CanvasKit, ref) {
16
+ super(CanvasKit, ref, "Surface");
17
+ }
18
+
19
+ getCanvas() {
20
+ return new _JsiSkCanvas.JsiSkCanvas(this.CanvasKit, this.ref.getCanvas());
21
+ }
22
+
23
+ makeImageSnapshot(bounds) {
24
+ const image = this.ref.makeImageSnapshot((0, _Host.toUndefinedableValue)(bounds));
25
+ return new _JsiSkImage.JsiSkImage(this.CanvasKit, image);
26
+ }
27
+
28
+ }
29
+
30
+ exports.JsiSkSurface = JsiSkSurface;
31
+ //# sourceMappingURL=JsiSkSurface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkSurface.ts"],"names":["JsiSkSurface","HostObject","constructor","CanvasKit","ref","getCanvas","JsiSkCanvas","makeImageSnapshot","bounds","image","JsiSkImage"],"mappings":";;;;;;;AAIA;;AACA;;AACA;;AAEO,MAAMA,YAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAqC;AAC9C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,SAAtB;AACD;;AAEDC,EAAAA,SAAS,GAAa;AACpB,WAAO,IAAIC,wBAAJ,CAAgB,KAAKH,SAArB,EAAgC,KAAKC,GAAL,CAASC,SAAT,EAAhC,CAAP;AACD;;AAEDE,EAAAA,iBAAiB,CAACC,MAAD,EAA2B;AAC1C,UAAMC,KAAK,GAAG,KAAKL,GAAL,CAASG,iBAAT,CAA2B,gCAAqBC,MAArB,CAA3B,CAAd;AACA,WAAO,IAAIE,sBAAJ,CAAe,KAAKP,SAApB,EAA+BM,KAA/B,CAAP;AACD;;AAZH","sourcesContent":["import type { CanvasKit, Surface } from \"canvaskit-wasm\";\n\nimport type { SkCanvas, SkImage, SkRect, SkSurface } from \"../types\";\n\nimport { HostObject, toUndefinedableValue } from \"./Host\";\nimport { JsiSkCanvas } from \"./JsiSkCanvas\";\nimport { JsiSkImage } from \"./JsiSkImage\";\n\nexport class JsiSkSurface\n extends HostObject<Surface, \"Surface\">\n implements SkSurface\n{\n constructor(CanvasKit: CanvasKit, ref: Surface) {\n super(CanvasKit, ref, \"Surface\");\n }\n\n getCanvas(): SkCanvas {\n return new JsiSkCanvas(this.CanvasKit, this.ref.getCanvas());\n }\n\n makeImageSnapshot(bounds?: SkRect): SkImage {\n const image = this.ref.makeImageSnapshot(toUndefinedableValue(bounds));\n return new JsiSkImage(this.CanvasKit, image);\n }\n}\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkSurfaceFactory = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ var _JsiSkSurface = require("./JsiSkSurface");
11
+
12
+ class JsiSkSurfaceFactory extends _Host.Host {
13
+ constructor(CanvasKit) {
14
+ super(CanvasKit);
15
+ }
16
+
17
+ Make(width, height) {
18
+ const surface = this.CanvasKit.MakeSurface(width, height);
19
+
20
+ if (!surface) {
21
+ throw new Error("Could not create surface");
22
+ }
23
+
24
+ return new _JsiSkSurface.JsiSkSurface(this.CanvasKit, surface);
25
+ }
26
+
27
+ }
28
+
29
+ exports.JsiSkSurfaceFactory = JsiSkSurfaceFactory;
30
+ //# sourceMappingURL=JsiSkSurfaceFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkSurfaceFactory.ts"],"names":["JsiSkSurfaceFactory","Host","constructor","CanvasKit","Make","width","height","surface","MakeSurface","Error","JsiSkSurface"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,mBAAN,SAAkCC,UAAlC,CAAiE;AACtEC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,IAAI,CAACC,KAAD,EAAgBC,MAAhB,EAAgC;AAClC,UAAMC,OAAO,GAAG,KAAKJ,SAAL,CAAeK,WAAf,CAA2BH,KAA3B,EAAkCC,MAAlC,CAAhB;;AACA,QAAI,CAACC,OAAL,EAAc;AACZ,YAAM,IAAIE,KAAJ,CAAU,0BAAV,CAAN;AACD;;AACD,WAAO,IAAIC,0BAAJ,CAAiB,KAAKP,SAAtB,EAAiCI,OAAjC,CAAP;AACD;;AAXqE","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SurfaceFactory } from \"../types\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkSurface } from \"./JsiSkSurface\";\n\nexport class JsiSkSurfaceFactory extends Host implements SurfaceFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n Make(width: number, height: number) {\n const surface = this.CanvasKit.MakeSurface(width, height);\n if (!surface) {\n throw new Error(\"Could not create surface\");\n }\n return new JsiSkSurface(this.CanvasKit, surface);\n }\n}\n"]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkTextBlob = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ class JsiSkTextBlob extends _Host.HostObject {
11
+ constructor(CanvasKit, ref) {
12
+ super(CanvasKit, ref, "TextBlob");
13
+ }
14
+
15
+ }
16
+
17
+ exports.JsiSkTextBlob = JsiSkTextBlob;
18
+ //# sourceMappingURL=JsiSkTextBlob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkTextBlob.ts"],"names":["JsiSkTextBlob","HostObject","constructor","CanvasKit","ref"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,aAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAsC;AAC/C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,UAAtB;AACD;;AAHH","sourcesContent":["import type { CanvasKit, TextBlob } from \"canvaskit-wasm\";\n\nimport type { SkTextBlob } from \"../types\";\n\nimport { HostObject } from \"./Host\";\n\nexport class JsiSkTextBlob\n extends HostObject<TextBlob, \"TextBlob\">\n implements SkTextBlob\n{\n constructor(CanvasKit: CanvasKit, ref: TextBlob) {\n super(CanvasKit, ref, \"TextBlob\");\n }\n}\n"]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkTextBlobFactory = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ var _JsiSkTextBlob = require("./JsiSkTextBlob");
11
+
12
+ class JsiSkTextBlobFactory extends _Host.Host {
13
+ constructor(CanvasKit) {
14
+ super(CanvasKit);
15
+ }
16
+
17
+ MakeFromText(str, font) {
18
+ return new _JsiSkTextBlob.JsiSkTextBlob(this.CanvasKit, this.CanvasKit.TextBlob.MakeFromText(str, (0, _Host.toValue)(font)));
19
+ }
20
+
21
+ MakeFromGlyphs(glyphs, font) {
22
+ return new _JsiSkTextBlob.JsiSkTextBlob(this.CanvasKit, this.CanvasKit.TextBlob.MakeFromGlyphs(glyphs, (0, _Host.toValue)(font)));
23
+ }
24
+
25
+ MakeFromRSXform(str, rsxforms, font) {
26
+ return new _JsiSkTextBlob.JsiSkTextBlob(this.CanvasKit, this.CanvasKit.TextBlob.MakeFromRSXform(str, rsxforms.map(f => (0, _Host.toValue)(f)), (0, _Host.toValue)(font)));
27
+ }
28
+
29
+ MakeFromRSXformGlyphs(glyphs, rsxforms, font) {
30
+ return new _JsiSkTextBlob.JsiSkTextBlob(this.CanvasKit, this.CanvasKit.TextBlob.MakeFromRSXformGlyphs(glyphs, rsxforms.map(f => (0, _Host.toValue)(f)), (0, _Host.toValue)(font)));
31
+ }
32
+
33
+ }
34
+
35
+ exports.JsiSkTextBlobFactory = JsiSkTextBlobFactory;
36
+ //# sourceMappingURL=JsiSkTextBlobFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkTextBlobFactory.ts"],"names":["JsiSkTextBlobFactory","Host","constructor","CanvasKit","MakeFromText","str","font","JsiSkTextBlob","TextBlob","MakeFromGlyphs","glyphs","MakeFromRSXform","rsxforms","map","f","MakeFromRSXformGlyphs"],"mappings":";;;;;;;AAKA;;AACA;;AAEO,MAAMA,oBAAN,SAAmCC,UAAnC,CAAmE;AACxEC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,YAAY,CAACC,GAAD,EAAcC,IAAd,EAA4B;AACtC,WAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBJ,YAAxB,CAAqCC,GAArC,EAA0C,mBAAQC,IAAR,CAA1C,CAFK,CAAP;AAID;;AAEDG,EAAAA,cAAc,CAACC,MAAD,EAAmBJ,IAAnB,EAAiC;AAC7C,WAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBC,cAAxB,CAAuCC,MAAvC,EAA+C,mBAAQJ,IAAR,CAA/C,CAFK,CAAP;AAID;;AAEDK,EAAAA,eAAe,CAACN,GAAD,EAAcO,QAAd,EAAqCN,IAArC,EAAmD;AAChE,WAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBG,eAAxB,CACEN,GADF,EAEEO,QAAQ,CAACC,GAAT,CAAcC,CAAD,IAAO,mBAAQA,CAAR,CAApB,CAFF,EAGE,mBAAQR,IAAR,CAHF,CAFK,CAAP;AAQD;;AAEDS,EAAAA,qBAAqB,CAACL,MAAD,EAAmBE,QAAnB,EAA0CN,IAA1C,EAAwD;AAC3E,WAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBO,qBAAxB,CACEL,MADF,EAEEE,QAAQ,CAACC,GAAT,CAAcC,CAAD,IAAO,mBAAQA,CAAR,CAApB,CAFF,EAGE,mBAAQR,IAAR,CAHF,CAFK,CAAP;AAQD;;AAvCuE","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkFont, SkRSXform } from \"../types\";\nimport type { TextBlobFactory } from \"../types/TextBlob\";\n\nimport { Host, toValue } from \"./Host\";\nimport { JsiSkTextBlob } from \"./JsiSkTextBlob\";\n\nexport class JsiSkTextBlobFactory extends Host implements TextBlobFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeFromText(str: string, font: SkFont) {\n return new JsiSkTextBlob(\n this.CanvasKit,\n this.CanvasKit.TextBlob.MakeFromText(str, toValue(font))\n );\n }\n\n MakeFromGlyphs(glyphs: number[], font: SkFont) {\n return new JsiSkTextBlob(\n this.CanvasKit,\n this.CanvasKit.TextBlob.MakeFromGlyphs(glyphs, toValue(font))\n );\n }\n\n MakeFromRSXform(str: string, rsxforms: SkRSXform[], font: SkFont) {\n return new JsiSkTextBlob(\n this.CanvasKit,\n this.CanvasKit.TextBlob.MakeFromRSXform(\n str,\n rsxforms.map((f) => toValue(f)),\n toValue(font)\n )\n );\n }\n\n MakeFromRSXformGlyphs(glyphs: number[], rsxforms: SkRSXform[], font: SkFont) {\n return new JsiSkTextBlob(\n this.CanvasKit,\n this.CanvasKit.TextBlob.MakeFromRSXformGlyphs(\n glyphs,\n rsxforms.map((f) => toValue(f)),\n toValue(font)\n )\n );\n }\n}\n"]}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkTypeface = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ class JsiSkTypeface extends _Host.HostObject {
11
+ constructor(CanvasKit, ref) {
12
+ super(CanvasKit, ref, "Typeface");
13
+ }
14
+
15
+ get bold() {
16
+ console.warn("Typeface.bold is deprecated and will be removed in a future release. The property will return false.");
17
+ return false;
18
+ }
19
+
20
+ get italic() {
21
+ console.warn("Typeface.italic is deprecated and will be removed in a future release. The property will return false.");
22
+ return false;
23
+ }
24
+
25
+ }
26
+
27
+ exports.JsiSkTypeface = JsiSkTypeface;
28
+ //# sourceMappingURL=JsiSkTypeface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkTypeface.ts"],"names":["JsiSkTypeface","HostObject","constructor","CanvasKit","ref","bold","console","warn","italic"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,aAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAsC;AAC/C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,UAAtB;AACD;;AAEO,MAAJC,IAAI,GAAY;AAClBC,IAAAA,OAAO,CAACC,IAAR,CACE,sGADF;AAGA,WAAO,KAAP;AACD;;AAES,MAANC,MAAM,GAAY;AACpBF,IAAAA,OAAO,CAACC,IAAR,CACE,wGADF;AAGA,WAAO,KAAP;AACD;;AAjBH","sourcesContent":["import type { CanvasKit, Typeface } from \"canvaskit-wasm\";\n\nimport type { SkTypeface } from \"../types\";\n\nimport { HostObject } from \"./Host\";\n\nexport class JsiSkTypeface\n extends HostObject<Typeface, \"Typeface\">\n implements SkTypeface\n{\n constructor(CanvasKit: CanvasKit, ref: Typeface) {\n super(CanvasKit, ref, \"Typeface\");\n }\n\n get bold(): boolean {\n console.warn(\n \"Typeface.bold is deprecated and will be removed in a future release. The property will return false.\"\n );\n return false;\n }\n\n get italic(): boolean {\n console.warn(\n \"Typeface.italic is deprecated and will be removed in a future release. The property will return false.\"\n );\n return false;\n }\n}\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkTypefaceFactory = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ var _JsiSkTypeface = require("./JsiSkTypeface");
11
+
12
+ class JsiSkTypefaceFactory extends _Host.Host {
13
+ constructor(CanvasKit) {
14
+ super(CanvasKit);
15
+ }
16
+
17
+ MakeFreeTypeFaceFromData(data) {
18
+ const tf = this.CanvasKit.Typeface.MakeFreeTypeFaceFromData((0, _Host.toValue)(data));
19
+
20
+ if (tf === null) {
21
+ return null;
22
+ }
23
+
24
+ return new _JsiSkTypeface.JsiSkTypeface(this.CanvasKit, tf);
25
+ }
26
+
27
+ }
28
+
29
+ exports.JsiSkTypefaceFactory = JsiSkTypefaceFactory;
30
+ //# sourceMappingURL=JsiSkTypefaceFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkTypefaceFactory.tsx"],"names":["JsiSkTypefaceFactory","Host","constructor","CanvasKit","MakeFreeTypeFaceFromData","data","tf","Typeface","JsiSkTypeface"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,oBAAN,SAAmCC,UAAnC,CAAmE;AACxEC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,wBAAwB,CAACC,IAAD,EAAe;AACrC,UAAMC,EAAE,GAAG,KAAKH,SAAL,CAAeI,QAAf,CAAwBH,wBAAxB,CAAiD,mBAAQC,IAAR,CAAjD,CAAX;;AACA,QAAIC,EAAE,KAAK,IAAX,EAAiB;AACf,aAAO,IAAP;AACD;;AACD,WAAO,IAAIE,4BAAJ,CAAkB,KAAKL,SAAvB,EAAkCG,EAAlC,CAAP;AACD;;AAXuE","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkData, TypefaceFactory } from \"../types\";\n\nimport { Host, toValue } from \"./Host\";\nimport { JsiSkTypeface } from \"./JsiSkTypeface\";\n\nexport class JsiSkTypefaceFactory extends Host implements TypefaceFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeFreeTypeFaceFromData(data: SkData) {\n const tf = this.CanvasKit.Typeface.MakeFreeTypeFaceFromData(toValue(data));\n if (tf === null) {\n return null;\n }\n return new JsiSkTypeface(this.CanvasKit, tf);\n }\n}\n"]}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkVertices = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ var _JsiSkRect = require("./JsiSkRect");
11
+
12
+ class JsiSkVertices extends _Host.HostObject {
13
+ constructor(CanvasKit, ref) {
14
+ super(CanvasKit, ref, "Vertices");
15
+ }
16
+
17
+ bounds() {
18
+ return new _JsiSkRect.JsiSkRect(this.CanvasKit, this.ref.bounds());
19
+ }
20
+
21
+ uniqueID() {
22
+ return this.ref.uniqueID();
23
+ }
24
+
25
+ }
26
+
27
+ exports.JsiSkVertices = JsiSkVertices;
28
+ //# sourceMappingURL=JsiSkVertices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkVertices.ts"],"names":["JsiSkVertices","HostObject","constructor","CanvasKit","ref","bounds","JsiSkRect","uniqueID"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,aAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAsC;AAC/C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,UAAtB;AACD;;AAEDC,EAAAA,MAAM,GAAG;AACP,WAAO,IAAIC,oBAAJ,CAAc,KAAKH,SAAnB,EAA8B,KAAKC,GAAL,CAASC,MAAT,EAA9B,CAAP;AACD;;AAEDE,EAAAA,QAAQ,GAAG;AACT,WAAO,KAAKH,GAAL,CAASG,QAAT,EAAP;AACD;;AAXH","sourcesContent":["import type { CanvasKit, Vertices } from \"canvaskit-wasm\";\n\nimport type { SkVertices } from \"../types\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkVertices\n extends HostObject<Vertices, \"Vertices\">\n implements SkVertices\n{\n constructor(CanvasKit: CanvasKit, ref: Vertices) {\n super(CanvasKit, ref, \"Vertices\");\n }\n\n bounds() {\n return new JsiSkRect(this.CanvasKit, this.ref.bounds());\n }\n\n uniqueID() {\n return this.ref.uniqueID();\n }\n}\n"]}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.MakeVertices = void 0;
7
+
8
+ var _Host = require("./Host");
9
+
10
+ var _JsiSkVertices = require("./JsiSkVertices");
11
+
12
+ const MakeVertices = (CanvasKit, mode, positions, textureCoordinates, colors, indices, isVolatile) => new _JsiSkVertices.JsiSkVertices(CanvasKit, CanvasKit.MakeVertices((0, _Host.ckEnum)(mode), positions.map(_ref => {
13
+ let {
14
+ x,
15
+ y
16
+ } = _ref;
17
+ return [x, y];
18
+ }).flat(), (textureCoordinates || []).map(_ref2 => {
19
+ let {
20
+ x,
21
+ y
22
+ } = _ref2;
23
+ return [x, y];
24
+ }).flat(), colors, indices, isVolatile));
25
+
26
+ exports.MakeVertices = MakeVertices;
27
+ //# sourceMappingURL=JsiSkVerticesFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkVerticesFactory.ts"],"names":["MakeVertices","CanvasKit","mode","positions","textureCoordinates","colors","indices","isVolatile","JsiSkVertices","map","x","y","flat"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,YAAY,GAAG,CAC1BC,SAD0B,EAE1BC,IAF0B,EAG1BC,SAH0B,EAI1BC,kBAJ0B,EAK1BC,MAL0B,EAM1BC,OAN0B,EAO1BC,UAP0B,KAS1B,IAAIC,4BAAJ,CACEP,SADF,EAEEA,SAAS,CAACD,YAAV,CACE,kBAAOE,IAAP,CADF,EAEEC,SAAS,CAACM,GAAV,CAAc;AAAA,MAAC;AAAEC,IAAAA,CAAF;AAAKC,IAAAA;AAAL,GAAD;AAAA,SAAc,CAACD,CAAD,EAAIC,CAAJ,CAAd;AAAA,CAAd,EAAoCC,IAApC,EAFF,EAGE,CAACR,kBAAkB,IAAI,EAAvB,EAA2BK,GAA3B,CAA+B;AAAA,MAAC;AAAEC,IAAAA,CAAF;AAAKC,IAAAA;AAAL,GAAD;AAAA,SAAc,CAACD,CAAD,EAAIC,CAAJ,CAAd;AAAA,CAA/B,EAAqDC,IAArD,EAHF,EAIEP,MAJF,EAKEC,OALF,EAMEC,UANF,CAFF,CATK","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkColor, SkPoint, VertexMode } from \"../types\";\n\nimport { ckEnum } from \"./Host\";\nimport { JsiSkVertices } from \"./JsiSkVertices\";\n\nexport const MakeVertices = (\n CanvasKit: CanvasKit,\n mode: VertexMode,\n positions: SkPoint[],\n textureCoordinates?: SkPoint[] | null,\n colors?: SkColor[],\n indices?: number[] | null,\n isVolatile?: boolean\n) =>\n new JsiSkVertices(\n CanvasKit,\n CanvasKit.MakeVertices(\n ckEnum(mode),\n positions.map(({ x, y }) => [x, y]).flat(),\n (textureCoordinates || []).map(({ x, y }) => [x, y]).flat(),\n colors,\n indices,\n isVolatile\n )\n );\n"]}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.JsiSkApi = void 0;
7
+
8
+ var _JsiSkPoint = require("./JsiSkPoint");
9
+
10
+ var _JsiSkPaint = require("./JsiSkPaint");
11
+
12
+ var _JsiSkRect = require("./JsiSkRect");
13
+
14
+ var _JsiSkColor = require("./JsiSkColor");
15
+
16
+ var _JsiSkSurfaceFactory = require("./JsiSkSurfaceFactory");
17
+
18
+ var _JsiSkRRect = require("./JsiSkRRect");
19
+
20
+ var _JsiSkRSXform = require("./JsiSkRSXform");
21
+
22
+ var _Host = require("./Host");
23
+
24
+ var _JsiSkContourMeasureIter = require("./JsiSkContourMeasureIter");
25
+
26
+ var _JsiSkPictureRecorder = require("./JsiSkPictureRecorder");
27
+
28
+ var _JsiSkPictureFactory = require("./JsiSkPictureFactory");
29
+
30
+ var _JsiSkPathFactory = require("./JsiSkPathFactory");
31
+
32
+ var _JsiSkMatrix = require("./JsiSkMatrix");
33
+
34
+ var _JsiSkColorFilterFactory = require("./JsiSkColorFilterFactory");
35
+
36
+ var _JsiSkTypefaceFactory = require("./JsiSkTypefaceFactory");
37
+
38
+ var _JsiSkMaskFilterFactory = require("./JsiSkMaskFilterFactory");
39
+
40
+ var _JsiSkRuntimeEffectFactory = require("./JsiSkRuntimeEffectFactory");
41
+
42
+ var _JsiImageFilterFactory = require("./JsiImageFilterFactory");
43
+
44
+ var _JsiSkShaderFactory = require("./JsiSkShaderFactory");
45
+
46
+ var _JsiSkPathEffectFactory = require("./JsiSkPathEffectFactory");
47
+
48
+ var _JsiSkDataFactory = require("./JsiSkDataFactory");
49
+
50
+ var _JsiSkImageFactory = require("./JsiSkImageFactory");
51
+
52
+ var _JsiSkSVGFactory = require("./JsiSkSVGFactory");
53
+
54
+ var _JsiSkTextBlobFactory = require("./JsiSkTextBlobFactory");
55
+
56
+ var _JsiSkFontMgrFactory = require("./JsiSkFontMgrFactory");
57
+
58
+ var _JsiSkFont = require("./JsiSkFont");
59
+
60
+ var _JsiSkVerticesFactory = require("./JsiSkVerticesFactory");
61
+
62
+ const JsiSkApi = CanvasKit => ({
63
+ Point: (x, y) => new _JsiSkPoint.JsiSkPoint(CanvasKit, Float32Array.of(x, y)),
64
+ RuntimeShaderBuilder: _ => {
65
+ throw new Error("Not implemented on React Native Web");
66
+ },
67
+ RRectXY: (rect, rx, ry) => new _JsiSkRRect.JsiSkRRect(CanvasKit, CanvasKit.RRectXY((0, _Host.toValue)(rect), rx, ry)),
68
+ RSXform: (scos, ssin, tx, ty) => new _JsiSkRSXform.JsiSkRSXform(CanvasKit, Float32Array.of(scos, ssin, tx, ty)),
69
+ Color: _JsiSkColor.Color,
70
+ ContourMeasureIter: (path, forceClosed, resScale) => new _JsiSkContourMeasureIter.JsiSkContourMeasureIter(CanvasKit, new CanvasKit.ContourMeasureIter((0, _Host.toValue)(path), forceClosed, resScale)),
71
+ Paint: () => new _JsiSkPaint.JsiSkPaint(CanvasKit, new CanvasKit.Paint()),
72
+ PictureRecorder: () => new _JsiSkPictureRecorder.JsiSkPictureRecorder(CanvasKit, new CanvasKit.PictureRecorder()),
73
+ Picture: new _JsiSkPictureFactory.JsiSkPictureFactory(CanvasKit),
74
+ Path: new _JsiSkPathFactory.JsiSkPathFactory(CanvasKit),
75
+ Matrix: matrix => new _JsiSkMatrix.JsiSkMatrix(CanvasKit, matrix ? Float32Array.of(...matrix) : Float32Array.of(...CanvasKit.Matrix.identity())),
76
+ ColorFilter: new _JsiSkColorFilterFactory.JsiSkColorFilterFactory(CanvasKit),
77
+ Font: (typeface, size) => new _JsiSkFont.JsiSkFont(CanvasKit, new CanvasKit.Font(typeface === undefined ? null : (0, _Host.toValue)(typeface), size)),
78
+ Typeface: new _JsiSkTypefaceFactory.JsiSkTypefaceFactory(CanvasKit),
79
+ MaskFilter: new _JsiSkMaskFilterFactory.JsiSkMaskFilterFactory(CanvasKit),
80
+ RuntimeEffect: new _JsiSkRuntimeEffectFactory.JsiSkRuntimeEffectFactory(CanvasKit),
81
+ ImageFilter: new _JsiImageFilterFactory.JsiSkImageFilterFactory(CanvasKit),
82
+ Shader: new _JsiSkShaderFactory.JsiSkShaderFactory(CanvasKit),
83
+ PathEffect: new _JsiSkPathEffectFactory.JsiSkPathEffectFactory(CanvasKit),
84
+ MakeVertices: _JsiSkVerticesFactory.MakeVertices.bind(null, CanvasKit),
85
+ Data: new _JsiSkDataFactory.JsiSkDataFactory(CanvasKit),
86
+ Image: new _JsiSkImageFactory.JsiSkImageFactory(CanvasKit),
87
+ SVG: new _JsiSkSVGFactory.JsiSkSVGFactory(CanvasKit),
88
+ TextBlob: new _JsiSkTextBlobFactory.JsiSkTextBlobFactory(CanvasKit),
89
+ FontMgr: new _JsiSkFontMgrFactory.JsiSkFontMgrFactory(CanvasKit),
90
+ XYWHRect: (x, y, width, height) => {
91
+ return new _JsiSkRect.JsiSkRect(CanvasKit, CanvasKit.XYWHRect(x, y, width, height));
92
+ },
93
+ Surface: new _JsiSkSurfaceFactory.JsiSkSurfaceFactory(CanvasKit)
94
+ });
95
+
96
+ exports.JsiSkApi = JsiSkApi;
97
+ //# sourceMappingURL=JsiSkia.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["JsiSkia.ts"],"names":["JsiSkApi","CanvasKit","Point","x","y","JsiSkPoint","Float32Array","of","RuntimeShaderBuilder","_","Error","RRectXY","rect","rx","ry","JsiSkRRect","RSXform","scos","ssin","tx","ty","JsiSkRSXform","Color","ContourMeasureIter","path","forceClosed","resScale","JsiSkContourMeasureIter","Paint","JsiSkPaint","PictureRecorder","JsiSkPictureRecorder","Picture","JsiSkPictureFactory","Path","JsiSkPathFactory","Matrix","matrix","JsiSkMatrix","identity","ColorFilter","JsiSkColorFilterFactory","Font","typeface","size","JsiSkFont","undefined","Typeface","JsiSkTypefaceFactory","MaskFilter","JsiSkMaskFilterFactory","RuntimeEffect","JsiSkRuntimeEffectFactory","ImageFilter","JsiSkImageFilterFactory","Shader","JsiSkShaderFactory","PathEffect","JsiSkPathEffectFactory","MakeVertices","bind","Data","JsiSkDataFactory","Image","JsiSkImageFactory","SVG","JsiSkSVGFactory","TextBlob","JsiSkTextBlobFactory","FontMgr","JsiSkFontMgrFactory","XYWHRect","width","height","JsiSkRect","Surface","JsiSkSurfaceFactory"],"mappings":";;;;;;;AAYA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEO,MAAMA,QAAQ,GAAIC,SAAD,KAAiC;AACvDC,EAAAA,KAAK,EAAE,CAACC,CAAD,EAAYC,CAAZ,KACL,IAAIC,sBAAJ,CAAeJ,SAAf,EAA0BK,YAAY,CAACC,EAAb,CAAgBJ,CAAhB,EAAmBC,CAAnB,CAA1B,CAFqD;AAGvDI,EAAAA,oBAAoB,EAAGC,CAAD,IAAgD;AACpE,UAAM,IAAIC,KAAJ,CAAU,qCAAV,CAAN;AACD,GALsD;AAMvDC,EAAAA,OAAO,EAAE,CAACC,IAAD,EAAeC,EAAf,EAA2BC,EAA3B,KACP,IAAIC,sBAAJ,CAAed,SAAf,EAA0BA,SAAS,CAACU,OAAV,CAAkB,mBAAQC,IAAR,CAAlB,EAAiCC,EAAjC,EAAqCC,EAArC,CAA1B,CAPqD;AAQvDE,EAAAA,OAAO,EAAE,CAACC,IAAD,EAAeC,IAAf,EAA6BC,EAA7B,EAAyCC,EAAzC,KACP,IAAIC,0BAAJ,CAAiBpB,SAAjB,EAA4BK,YAAY,CAACC,EAAb,CAAgBU,IAAhB,EAAsBC,IAAtB,EAA4BC,EAA5B,EAAgCC,EAAhC,CAA5B,CATqD;AAUvDE,EAAAA,KAAK,EAALA,iBAVuD;AAWvDC,EAAAA,kBAAkB,EAAE,CAClBC,IADkB,EAElBC,WAFkB,EAGlBC,QAHkB,KAKlB,IAAIC,gDAAJ,CACE1B,SADF,EAEE,IAAIA,SAAS,CAACsB,kBAAd,CAAiC,mBAAQC,IAAR,CAAjC,EAAgDC,WAAhD,EAA6DC,QAA7D,CAFF,CAhBqD;AAoBvDE,EAAAA,KAAK,EAAE,MAAM,IAAIC,sBAAJ,CAAe5B,SAAf,EAA0B,IAAIA,SAAS,CAAC2B,KAAd,EAA1B,CApB0C;AAqBvDE,EAAAA,eAAe,EAAE,MACf,IAAIC,0CAAJ,CAAyB9B,SAAzB,EAAoC,IAAIA,SAAS,CAAC6B,eAAd,EAApC,CAtBqD;AAuBvDE,EAAAA,OAAO,EAAE,IAAIC,wCAAJ,CAAwBhC,SAAxB,CAvB8C;AAwBvDiC,EAAAA,IAAI,EAAE,IAAIC,kCAAJ,CAAqBlC,SAArB,CAxBiD;AAyBvDmC,EAAAA,MAAM,EAAGC,MAAD,IACN,IAAIC,wBAAJ,CACErC,SADF,EAEEoC,MAAM,GACF/B,YAAY,CAACC,EAAb,CAAgB,GAAG8B,MAAnB,CADE,GAEF/B,YAAY,CAACC,EAAb,CAAgB,GAAGN,SAAS,CAACmC,MAAV,CAAiBG,QAAjB,EAAnB,CAJN,CA1BqD;AAgCvDC,EAAAA,WAAW,EAAE,IAAIC,gDAAJ,CAA4BxC,SAA5B,CAhC0C;AAiCvDyC,EAAAA,IAAI,EAAE,CAACC,QAAD,EAAwBC,IAAxB,KACJ,IAAIC,oBAAJ,CACE5C,SADF,EAEE,IAAIA,SAAS,CAACyC,IAAd,CACEC,QAAQ,KAAKG,SAAb,GAAyB,IAAzB,GAAgC,mBAAQH,QAAR,CADlC,EAEEC,IAFF,CAFF,CAlCqD;AAyCvDG,EAAAA,QAAQ,EAAE,IAAIC,0CAAJ,CAAyB/C,SAAzB,CAzC6C;AA0CvDgD,EAAAA,UAAU,EAAE,IAAIC,8CAAJ,CAA2BjD,SAA3B,CA1C2C;AA2CvDkD,EAAAA,aAAa,EAAE,IAAIC,oDAAJ,CAA8BnD,SAA9B,CA3CwC;AA4CvDoD,EAAAA,WAAW,EAAE,IAAIC,8CAAJ,CAA4BrD,SAA5B,CA5C0C;AA6CvDsD,EAAAA,MAAM,EAAE,IAAIC,sCAAJ,CAAuBvD,SAAvB,CA7C+C;AA8CvDwD,EAAAA,UAAU,EAAE,IAAIC,8CAAJ,CAA2BzD,SAA3B,CA9C2C;AA+CvD0D,EAAAA,YAAY,EAAEA,mCAAaC,IAAb,CAAkB,IAAlB,EAAwB3D,SAAxB,CA/CyC;AAgDvD4D,EAAAA,IAAI,EAAE,IAAIC,kCAAJ,CAAqB7D,SAArB,CAhDiD;AAiDvD8D,EAAAA,KAAK,EAAE,IAAIC,oCAAJ,CAAsB/D,SAAtB,CAjDgD;AAkDvDgE,EAAAA,GAAG,EAAE,IAAIC,gCAAJ,CAAoBjE,SAApB,CAlDkD;AAmDvDkE,EAAAA,QAAQ,EAAE,IAAIC,0CAAJ,CAAyBnE,SAAzB,CAnD6C;AAoDvDoE,EAAAA,OAAO,EAAE,IAAIC,wCAAJ,CAAwBrE,SAAxB,CApD8C;AAqDvDsE,EAAAA,QAAQ,EAAE,CAACpE,CAAD,EAAYC,CAAZ,EAAuBoE,KAAvB,EAAsCC,MAAtC,KAAyD;AACjE,WAAO,IAAIC,oBAAJ,CAAczE,SAAd,EAAyBA,SAAS,CAACsE,QAAV,CAAmBpE,CAAnB,EAAsBC,CAAtB,EAAyBoE,KAAzB,EAAgCC,MAAhC,CAAzB,CAAP;AACD,GAvDsD;AAwDvDE,EAAAA,OAAO,EAAE,IAAIC,wCAAJ,CAAwB3E,SAAxB;AAxD8C,CAAjC,CAAjB","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type {\n SkContourMeasureIter,\n Skia,\n SkPath,\n SkRect,\n SkRuntimeEffect,\n SkRuntimeShaderBuilder,\n SkTypeface,\n} from \"../types\";\n\nimport { JsiSkPoint } from \"./JsiSkPoint\";\nimport { JsiSkPaint } from \"./JsiSkPaint\";\nimport { JsiSkRect } from \"./JsiSkRect\";\nimport { Color } from \"./JsiSkColor\";\nimport { JsiSkSurfaceFactory } from \"./JsiSkSurfaceFactory\";\nimport { JsiSkRRect } from \"./JsiSkRRect\";\nimport { JsiSkRSXform } from \"./JsiSkRSXform\";\nimport { toValue } from \"./Host\";\nimport { JsiSkContourMeasureIter } from \"./JsiSkContourMeasureIter\";\nimport { JsiSkPictureRecorder } from \"./JsiSkPictureRecorder\";\nimport { JsiSkPictureFactory } from \"./JsiSkPictureFactory\";\nimport { JsiSkPathFactory } from \"./JsiSkPathFactory\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkColorFilterFactory } from \"./JsiSkColorFilterFactory\";\nimport { JsiSkTypefaceFactory } from \"./JsiSkTypefaceFactory\";\nimport { JsiSkMaskFilterFactory } from \"./JsiSkMaskFilterFactory\";\nimport { JsiSkRuntimeEffectFactory } from \"./JsiSkRuntimeEffectFactory\";\nimport { JsiSkImageFilterFactory } from \"./JsiImageFilterFactory\";\nimport { JsiSkShaderFactory } from \"./JsiSkShaderFactory\";\nimport { JsiSkPathEffectFactory } from \"./JsiSkPathEffectFactory\";\nimport { JsiSkDataFactory } from \"./JsiSkDataFactory\";\nimport { JsiSkImageFactory } from \"./JsiSkImageFactory\";\nimport { JsiSkSVGFactory } from \"./JsiSkSVGFactory\";\nimport { JsiSkTextBlobFactory } from \"./JsiSkTextBlobFactory\";\nimport { JsiSkFontMgrFactory } from \"./JsiSkFontMgrFactory\";\nimport { JsiSkFont } from \"./JsiSkFont\";\nimport { MakeVertices } from \"./JsiSkVerticesFactory\";\n\nexport const JsiSkApi = (CanvasKit: CanvasKit): Skia => ({\n Point: (x: number, y: number) =>\n new JsiSkPoint(CanvasKit, Float32Array.of(x, y)),\n RuntimeShaderBuilder: (_: SkRuntimeEffect): SkRuntimeShaderBuilder => {\n throw new Error(\"Not implemented on React Native Web\");\n },\n RRectXY: (rect: SkRect, rx: number, ry: number) =>\n new JsiSkRRect(CanvasKit, CanvasKit.RRectXY(toValue(rect), rx, ry)),\n RSXform: (scos: number, ssin: number, tx: number, ty: number) =>\n new JsiSkRSXform(CanvasKit, Float32Array.of(scos, ssin, tx, ty)),\n Color,\n ContourMeasureIter: (\n path: SkPath,\n forceClosed: boolean,\n resScale: number\n ): SkContourMeasureIter =>\n new JsiSkContourMeasureIter(\n CanvasKit,\n new CanvasKit.ContourMeasureIter(toValue(path), forceClosed, resScale)\n ),\n Paint: () => new JsiSkPaint(CanvasKit, new CanvasKit.Paint()),\n PictureRecorder: () =>\n new JsiSkPictureRecorder(CanvasKit, new CanvasKit.PictureRecorder()),\n Picture: new JsiSkPictureFactory(CanvasKit),\n Path: new JsiSkPathFactory(CanvasKit),\n Matrix: (matrix?: number[]) =>\n new JsiSkMatrix(\n CanvasKit,\n matrix\n ? Float32Array.of(...matrix)\n : Float32Array.of(...CanvasKit.Matrix.identity())\n ),\n ColorFilter: new JsiSkColorFilterFactory(CanvasKit),\n Font: (typeface?: SkTypeface, size?: number) =>\n new JsiSkFont(\n CanvasKit,\n new CanvasKit.Font(\n typeface === undefined ? null : toValue(typeface),\n size\n )\n ),\n Typeface: new JsiSkTypefaceFactory(CanvasKit),\n MaskFilter: new JsiSkMaskFilterFactory(CanvasKit),\n RuntimeEffect: new JsiSkRuntimeEffectFactory(CanvasKit),\n ImageFilter: new JsiSkImageFilterFactory(CanvasKit),\n Shader: new JsiSkShaderFactory(CanvasKit),\n PathEffect: new JsiSkPathEffectFactory(CanvasKit),\n MakeVertices: MakeVertices.bind(null, CanvasKit),\n Data: new JsiSkDataFactory(CanvasKit),\n Image: new JsiSkImageFactory(CanvasKit),\n SVG: new JsiSkSVGFactory(CanvasKit),\n TextBlob: new JsiSkTextBlobFactory(CanvasKit),\n FontMgr: new JsiSkFontMgrFactory(CanvasKit),\n XYWHRect: (x: number, y: number, width: number, height: number) => {\n return new JsiSkRect(CanvasKit, CanvasKit.XYWHRect(x, y, width, height));\n },\n Surface: new JsiSkSurfaceFactory(CanvasKit),\n});\n"]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _JsiSkia = require("./JsiSkia");
8
+
9
+ Object.keys(_JsiSkia).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _JsiSkia[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _JsiSkia[key];
16
+ }
17
+ });
18
+ });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from \"./JsiSkia\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["useValue.ts"],"names":["useValue","v","ValueApi","createValue"],"mappings":";;;;;;;AAAA;;AAEA;;AAGA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,GAAOC,CAAJ,IAA2B;AACjD;AACA,SAAO,oBAAQ,MAAMC,cAASC,WAAT,CAAqBF,CAArB,CAAd,EAAuC,EAAvC,CAAP;AACD,CAHM","sourcesContent":["import { useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\nimport type { SkiaValue } from \"../types\";\n\n/**\n * Creates a new value that holds some data.\n * @param v Value to hold\n * @returns A Value of type of v\n */\nexport const useValue = <T>(v: T): SkiaValue<T> => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useMemo(() => ValueApi.createValue(v), []);\n};\n"]}
1
+ {"version":3,"sources":["useValue.ts"],"names":["useValue","v","ValueApi","createValue"],"mappings":";;;;;;;AAAA;;AAEA;;AAGA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,GAAOC,CAAJ,IAAkC;AACxD;AACA,SAAO,oBAAQ,MAAMC,cAASC,WAAT,CAAqBF,CAArB,CAAd,EAAuC,EAAvC,CAAP;AACD,CAHM","sourcesContent":["import { useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\nimport type { SkiaMutableValue } from \"../types\";\n\n/**\n * Creates a new value that holds some data.\n * @param v Value to hold\n * @returns A Value of type of v\n */\nexport const useValue = <T>(v: T): SkiaMutableValue<T> => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useMemo(() => ValueApi.createValue(v), []);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["useValueEffect.ts"],"names":["useValueEffect","value","cb","addListener"],"mappings":";;;;;;;AAAA;;AAIA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GAAG,CAC5BC,KAD4B,EAE5BC,EAF4B,KAGzB;AACH,wBAAU,MAAM;AACd,WAAOD,KAAK,CAACE,WAAN,CAAkBD,EAAlB,CAAP,CADc,CAEd;AACD,GAHD,EAGG,CAACD,KAAD,CAHH;AAID,CARM","sourcesContent":["import { useEffect } from \"react\";\n\nimport type { SkiaReadonlyValue } from \"../types\";\n\n/**\n * Sets up an effect that will be run whenever the value changes\n * @param value Value to subscribe to changes on\n * @param cb Callback to run when value changes\n */\nexport const useValueEffect = <T>(\n value: SkiaReadonlyValue<T>,\n cb: (v: T) => void\n) => {\n useEffect(() => {\n return value.addListener(cb);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n};\n"]}
1
+ {"version":3,"sources":["useValueEffect.ts"],"names":["useValueEffect","value","cb","addListener"],"mappings":";;;;;;;AAAA;;AAIA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GAAG,CAAIC,KAAJ,EAAyBC,EAAzB,KAAgD;AAC5E,wBAAU,MAAM;AACd,WAAOD,KAAK,CAACE,WAAN,CAAkBD,EAAlB,CAAP,CADc,CAEd;AACD,GAHD,EAGG,CAACD,KAAD,CAHH;AAID,CALM","sourcesContent":["import { useEffect } from \"react\";\n\nimport type { SkiaValue } from \"../types\";\n\n/**\n * Sets up an effect that will be run whenever the value changes\n * @param value Value to subscribe to changes on\n * @param cb Callback to run when value changes\n */\nexport const useValueEffect = <T>(value: SkiaValue<T>, cb: (v: T) => void) => {\n useEffect(() => {\n return value.addListener(cb);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["RNSkReadonlyValue.ts"],"names":["RNSkReadonlyValue","constructor","value","_current","notifyListeners","_listeners","forEach","cb","update","nextValue","current","addListener","push","splice","indexOf"],"mappings":";;;;;;;;;AAEO,MAAMA,iBAAN,CAA2D;AAChEC,EAAAA,WAAW,CAACC,KAAD,EAAW;AAAA;;AAAA,wCAK0B,EAL1B;;AAAA,0CAgBS,WAhBT;;AACpB,SAAKC,QAAL,GAAgBD,KAAhB;AACD;;AAKOE,EAAAA,eAAe,GAAS;AAC9B,SAAKC,UAAL,CAAgBC,OAAhB,CAAyBC,EAAD,IAAQA,EAAE,CAAC,KAAKJ,QAAN,CAAlC;AACD;;AAESK,EAAAA,MAAM,CAACC,SAAD,EAAqB;AACnC,SAAKN,QAAL,GAAgBM,SAAhB;AACA,SAAKL,eAAL;AACD;;AAIiB,MAAPM,OAAO,GAAM;AACtB,WAAO,KAAKP,QAAZ;AACD;;AAEMQ,EAAAA,WAAW,CAACJ,EAAD,EAAyB;AACzC,SAAKF,UAAL,CAAgBO,IAAhB,CAAqBL,EAArB;;AACA,WAAO,MAAM;AACX,WAAKF,UAAL,CAAgBQ,MAAhB,CAAuB,KAAKR,UAAL,CAAgBS,OAAhB,CAAwBP,EAAxB,CAAvB,EAAoD,CAApD;AACD,KAFD;AAGD;;AA5B+D","sourcesContent":["import type { SkiaReadonlyValue } from \"../types\";\n\nexport class RNSkReadonlyValue<T> implements SkiaReadonlyValue<T> {\n constructor(value: T) {\n this._current = value;\n }\n\n private _current: T;\n private _listeners: Array<(value: T) => void> = [];\n\n private notifyListeners(): void {\n this._listeners.forEach((cb) => cb(this._current));\n }\n\n protected update(nextValue: T): void {\n this._current = nextValue;\n this.notifyListeners();\n }\n\n public readonly __typename__ = \"RNSkValue\";\n\n public get current(): T {\n return this._current;\n }\n\n public addListener(cb: (value: T) => void) {\n this._listeners.push(cb);\n return () => {\n this._listeners.splice(this._listeners.indexOf(cb), 1);\n };\n }\n}\n"]}
1
+ {"version":3,"sources":["RNSkReadonlyValue.ts"],"names":["RNSkReadonlyValue","constructor","value","_current","notifyListeners","_listeners","forEach","cb","update","nextValue","current","addListener","push","splice","indexOf"],"mappings":";;;;;;;;;AAEO,MAAMA,iBAAN,CAAmD;AACxDC,EAAAA,WAAW,CAACC,KAAD,EAAW;AAAA;;AAAA,wCAK0B,EAL1B;;AAAA,0CAgBS,WAhBT;;AACpB,SAAKC,QAAL,GAAgBD,KAAhB;AACD;;AAKOE,EAAAA,eAAe,GAAS;AAC9B,SAAKC,UAAL,CAAgBC,OAAhB,CAAyBC,EAAD,IAAQA,EAAE,CAAC,KAAKJ,QAAN,CAAlC;AACD;;AAESK,EAAAA,MAAM,CAACC,SAAD,EAAqB;AACnC,SAAKN,QAAL,GAAgBM,SAAhB;AACA,SAAKL,eAAL;AACD;;AAIiB,MAAPM,OAAO,GAAM;AACtB,WAAO,KAAKP,QAAZ;AACD;;AAEMQ,EAAAA,WAAW,CAACJ,EAAD,EAAyB;AACzC,SAAKF,UAAL,CAAgBO,IAAhB,CAAqBL,EAArB;;AACA,WAAO,MAAM;AACX,WAAKF,UAAL,CAAgBQ,MAAhB,CAAuB,KAAKR,UAAL,CAAgBS,OAAhB,CAAwBP,EAAxB,CAAvB,EAAoD,CAApD;AACD,KAFD;AAGD;;AA5BuD","sourcesContent":["import type { SkiaValue } from \"../types\";\n\nexport class RNSkReadonlyValue<T> implements SkiaValue<T> {\n constructor(value: T) {\n this._current = value;\n }\n\n private _current: T;\n private _listeners: Array<(value: T) => void> = [];\n\n private notifyListeners(): void {\n this._listeners.forEach((cb) => cb(this._current));\n }\n\n protected update(nextValue: T): void {\n this._current = nextValue;\n this.notifyListeners();\n }\n\n public readonly __typename__ = \"RNSkValue\";\n\n public get current(): T {\n return this._current;\n }\n\n public addListener(cb: (value: T) => void) {\n this._listeners.push(cb);\n return () => {\n this._listeners.splice(this._listeners.indexOf(cb), 1);\n };\n }\n}\n"]}
@@ -21,10 +21,10 @@ const ValueApi = {
21
21
  return new _RNSkDerivedValue.RNSkDerivedValue(cb, values);
22
22
  },
23
23
  createClockValue: function () {
24
- return new _RNSkClockValue.RNSkClockValue(requestAnimationFrame);
24
+ return new _RNSkClockValue.RNSkClockValue(requestAnimationFrame.bind(window));
25
25
  },
26
26
  createAnimation: function (cb) {
27
- return new _RNSkAnimation.RNSkAnimation(cb, requestAnimationFrame);
27
+ return new _RNSkAnimation.RNSkAnimation(cb, requestAnimationFrame.bind(window));
28
28
  }
29
29
  };
30
30
  exports.ValueApi = ValueApi;
@@ -1 +1 @@
1
- {"version":3,"sources":["api.ts"],"names":["ValueApi","createValue","initialValue","RNSkValue","createDerivedValue","cb","values","RNSkDerivedValue","createClockValue","RNSkClockValue","requestAnimationFrame","createAnimation","RNSkAnimation"],"mappings":";;;;;;;AASA;;AACA;;AACA;;AACA;;AAEO,MAAMA,QAAuB,GAAG;AACrCC,EAAAA,WAAW,EAAE,UAAaC,YAAb,EAA4C;AACvD,WAAO,IAAIC,oBAAJ,CAAcD,YAAd,CAAP;AACD,GAHoC;AAIrCE,EAAAA,kBAAkB,EAAE,UAClBC,EADkB,EAElBC,MAFkB,EAGI;AACtB,WAAO,IAAIC,kCAAJ,CAAqBF,EAArB,EAAyBC,MAAzB,CAAP;AACD,GAToC;AAUrCE,EAAAA,gBAAgB,EAAE,YAA4B;AAC5C,WAAO,IAAIC,8BAAJ,CAAmBC,qBAAnB,CAAP;AACD,GAZoC;AAarCC,EAAAA,eAAe,EAAE,UACfN,EADe,EAEA;AACf,WAAO,IAAIO,4BAAJ,CAAkBP,EAAlB,EAAsBK,qBAAtB,CAAP;AACD;AAjBoC,CAAhC","sourcesContent":["import type {\n ISkiaValueApi,\n SkiaValue,\n SkiaReadonlyValue,\n SkiaClockValue,\n AnimationState,\n SkiaAnimation,\n} from \"../types\";\n\nimport { RNSkAnimation } from \"./RNSkAnimation\";\nimport { RNSkClockValue } from \"./RNSkClockValue\";\nimport { RNSkDerivedValue } from \"./RNSkDerivedValue\";\nimport { RNSkValue } from \"./RNSkValue\";\n\nexport const ValueApi: ISkiaValueApi = {\n createValue: function <T>(initialValue: T): SkiaValue<T> {\n return new RNSkValue(initialValue);\n },\n createDerivedValue: function <R>(\n cb: () => R,\n values: SkiaReadonlyValue<unknown>[]\n ): SkiaReadonlyValue<R> {\n return new RNSkDerivedValue(cb, values);\n },\n createClockValue: function (): SkiaClockValue {\n return new RNSkClockValue(requestAnimationFrame);\n },\n createAnimation: function <S extends AnimationState = AnimationState>(\n cb: (t: number, state: S | undefined) => S\n ): SkiaAnimation {\n return new RNSkAnimation(cb, requestAnimationFrame);\n },\n};\n"]}
1
+ {"version":3,"sources":["api.ts"],"names":["ValueApi","createValue","initialValue","RNSkValue","createDerivedValue","cb","values","RNSkDerivedValue","createClockValue","RNSkClockValue","requestAnimationFrame","bind","window","createAnimation","RNSkAnimation"],"mappings":";;;;;;;AASA;;AACA;;AACA;;AACA;;AAEO,MAAMA,QAAuB,GAAG;AACrCC,EAAAA,WAAW,EAAE,UAAaC,YAAb,EAAmD;AAC9D,WAAO,IAAIC,oBAAJ,CAAcD,YAAd,CAAP;AACD,GAHoC;AAIrCE,EAAAA,kBAAkB,EAAE,UAClBC,EADkB,EAElBC,MAFkB,EAGJ;AACd,WAAO,IAAIC,kCAAJ,CAAqBF,EAArB,EAAyBC,MAAzB,CAAP;AACD,GAToC;AAUrCE,EAAAA,gBAAgB,EAAE,YAA4B;AAC5C,WAAO,IAAIC,8BAAJ,CAAmBC,qBAAqB,CAACC,IAAtB,CAA2BC,MAA3B,CAAnB,CAAP;AACD,GAZoC;AAarCC,EAAAA,eAAe,EAAE,UACfR,EADe,EAEA;AACf,WAAO,IAAIS,4BAAJ,CAAkBT,EAAlB,EAAsBK,qBAAqB,CAACC,IAAtB,CAA2BC,MAA3B,CAAtB,CAAP;AACD;AAjBoC,CAAhC","sourcesContent":["import type {\n ISkiaValueApi,\n SkiaMutableValue,\n SkiaValue,\n SkiaClockValue,\n AnimationState,\n SkiaAnimation,\n} from \"../types\";\n\nimport { RNSkAnimation } from \"./RNSkAnimation\";\nimport { RNSkClockValue } from \"./RNSkClockValue\";\nimport { RNSkDerivedValue } from \"./RNSkDerivedValue\";\nimport { RNSkValue } from \"./RNSkValue\";\n\nexport const ValueApi: ISkiaValueApi = {\n createValue: function <T>(initialValue: T): SkiaMutableValue<T> {\n return new RNSkValue(initialValue);\n },\n createDerivedValue: function <R>(\n cb: () => R,\n values: SkiaValue<unknown>[]\n ): SkiaValue<R> {\n return new RNSkDerivedValue(cb, values);\n },\n createClockValue: function (): SkiaClockValue {\n return new RNSkClockValue(requestAnimationFrame.bind(window));\n },\n createAnimation: function <S extends AnimationState = AnimationState>(\n cb: (t: number, state: S | undefined) => S\n ): SkiaAnimation {\n return new RNSkAnimation(cb, requestAnimationFrame.bind(window));\n },\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["SkiaView.tsx"],"names":["SkiaViewNativeId","NativeSkiaView","SkiaView","React","Component","constructor","props","_nativeId","onDraw","assertDrawCallbacksEnabled","SkiaViewApi","setDrawCallback","nativeId","componentDidUpdate","prevProps","makeImageSnapshot","rect","redraw","invalidateSkiaView","setDrawMode","mode","registerValues","values","registerValuesInView","render","debug","viewProps","Error"],"mappings":";;;;;;;AAAA;;AACA;;AAKA;;;;;;;;AAGA,IAAIA,gBAAgB,GAAG,IAAvB;AAEA,MAAMC,cAAc,GAAG,yCACrB,qBADqB,CAAvB;;AAIO,MAAMC,QAAN,SAAuBC,eAAMC,SAA7B,CAAsD;AAC3DC,EAAAA,WAAW,CAACC,KAAD,EAAuB;AAChC,UAAMA,KAAN;;AADgC;;AAEhC,SAAKC,SAAL,GAAiBP,gBAAgB,EAAjC;AACA,UAAM;AAAEQ,MAAAA;AAAF,QAAaF,KAAnB;;AACA,QAAIE,MAAJ,EAAY;AACVC,MAAAA,0BAA0B;;AAC1BC,uBAAYC,eAAZ,CAA4B,KAAKJ,SAAjC,EAA4CC,MAA5C;AACD;AACF;;AAIkB,MAARI,QAAQ,GAAG;AACpB,WAAO,KAAKL,SAAZ;AACD;;AAEDM,EAAAA,kBAAkB,CAACC,SAAD,EAA2B;AAC3C,UAAM;AAAEN,MAAAA;AAAF,QAAa,KAAKF,KAAxB;;AACA,QAAIE,MAAM,KAAKM,SAAS,CAACN,MAAzB,EAAiC;AAC/BC,MAAAA,0BAA0B;;AAC1BC,uBAAYC,eAAZ,CAA4B,KAAKJ,SAAjC,EAA4CC,MAA5C;AACD;AACF;AAED;AACF;AACA;AACA;AACA;;;AACSO,EAAAA,iBAAiB,CAACC,IAAD,EAAgB;AACtCP,IAAAA,0BAA0B;AAC1B,WAAOC,iBAAYK,iBAAZ,CAA8B,KAAKR,SAAnC,EAA8CS,IAA9C,CAAP;AACD;AAED;AACF;AACA;;;AACSC,EAAAA,MAAM,GAAG;AACdR,IAAAA,0BAA0B;;AAC1BC,qBAAYQ,kBAAZ,CAA+B,KAAKX,SAApC;AACD;AAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACSY,EAAAA,WAAW,CAACC,IAAD,EAAiB;AACjCX,IAAAA,0BAA0B;;AAC1BC,qBAAYS,WAAZ,CAAwB,KAAKZ,SAA7B,EAAwCa,IAAxC;AACD;AAED;AACF;AACA;AACA;AACA;;;AACSC,EAAAA,cAAc,CAACC,MAAD,EAAuC;AAC1Db,IAAAA,0BAA0B;AAC1B,WAAOC,iBAAYa,oBAAZ,CAAiC,KAAKhB,SAAtC,EAAiDe,MAAjD,CAAP;AACD;;AAEDE,EAAAA,MAAM,GAAG;AACP,UAAM;AAAEJ,MAAAA,IAAF;AAAQK,MAAAA,KAAK,GAAG,KAAhB;AAAuB,SAAGC;AAA1B,QAAwC,KAAKpB,KAAnD;AACA,wBACE,6BAAC,cAAD;AACE,MAAA,WAAW,EAAE,KADf;AAEE,MAAA,QAAQ,EAAG,GAAE,KAAKC,SAAU,EAF9B;AAGE,MAAA,IAAI,EAAEa,IAHR;AAIE,MAAA,KAAK,EAAEK;AAJT,OAKMC,SALN,EADF;AASD;;AA9E0D;;;;AAiF7D,MAAMjB,0BAA0B,GAAG,MAAM;AACvC,MACEC,qBAAgB,IAAhB,IACAA,iBAAYC,eAAZ,IAA+B,IAD/B,IAEAD,iBAAYQ,kBAAZ,IAAkC,IAHpC,EAIE;AACA,UAAMS,KAAK,CAAC,0BAAD,CAAX;AACD;AACF,CARD","sourcesContent":["import React from \"react\";\nimport { requireNativeComponent } from \"react-native\";\n\nimport type { SkRect } from \"../skia\";\nimport type { SkiaReadonlyValue } from \"../values\";\n\nimport { SkiaViewApi } from \"./api\";\nimport type { DrawMode, NativeSkiaViewProps, SkiaViewProps } from \"./types\";\n\nlet SkiaViewNativeId = 1000;\n\nconst NativeSkiaView = requireNativeComponent<NativeSkiaViewProps>(\n \"ReactNativeSkiaView\"\n);\n\nexport class SkiaView extends React.Component<SkiaViewProps> {\n constructor(props: SkiaViewProps) {\n super(props);\n this._nativeId = SkiaViewNativeId++;\n const { onDraw } = props;\n if (onDraw) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawCallback(this._nativeId, onDraw);\n }\n }\n\n private _nativeId: number;\n\n public get nativeId() {\n return this._nativeId;\n }\n\n componentDidUpdate(prevProps: SkiaViewProps) {\n const { onDraw } = this.props;\n if (onDraw !== prevProps.onDraw) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawCallback(this._nativeId, onDraw);\n }\n }\n\n /**\n * Creates a snapshot from the canvas in the surface\n * @param rect Rect to use as bounds. Optional.\n * @returns An Image object.\n */\n public makeImageSnapshot(rect?: SkRect) {\n assertDrawCallbacksEnabled();\n return SkiaViewApi.makeImageSnapshot(this._nativeId, rect);\n }\n\n /**\n * Sends a redraw request to the native SkiaView.\n */\n public redraw() {\n assertDrawCallbacksEnabled();\n SkiaViewApi.invalidateSkiaView(this._nativeId);\n }\n\n /**\n * Updates the drawing mode for the skia view. This is the same\n * as declaratively setting the mode property on the SkiaView.\n * There are two drawing modes, \"continuous\" and \"default\",\n * where the continuous mode will continuously redraw the view and\n * the default mode will only redraw when any of the regular react\n * properties are changed like size and margins.\n * @param mode Drawing mode to use.\n */\n public setDrawMode(mode: DrawMode) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawMode(this._nativeId, mode);\n }\n\n /**\n * Registers one or move values as a dependant value of the Skia View. The view will\n * The view will redraw itself when any of the values change.\n * @param values Values to register\n */\n public registerValues(values: SkiaReadonlyValue<unknown>[]) {\n assertDrawCallbacksEnabled();\n return SkiaViewApi.registerValuesInView(this._nativeId, values);\n }\n\n render() {\n const { mode, debug = false, ...viewProps } = this.props;\n return (\n <NativeSkiaView\n collapsable={false}\n nativeID={`${this._nativeId}`}\n mode={mode}\n debug={debug}\n {...viewProps}\n />\n );\n }\n}\n\nconst assertDrawCallbacksEnabled = () => {\n if (\n SkiaViewApi === null ||\n SkiaViewApi.setDrawCallback == null ||\n SkiaViewApi.invalidateSkiaView == null\n ) {\n throw Error(\"Skia Api is not enabled.\");\n }\n};\n"]}
1
+ {"version":3,"sources":["SkiaView.tsx"],"names":["SkiaViewNativeId","NativeSkiaView","SkiaView","React","Component","constructor","props","_nativeId","onDraw","assertDrawCallbacksEnabled","SkiaViewApi","setDrawCallback","nativeId","componentDidUpdate","prevProps","makeImageSnapshot","rect","redraw","invalidateSkiaView","setDrawMode","mode","registerValues","values","registerValuesInView","render","debug","viewProps","Error"],"mappings":";;;;;;;AAAA;;AACA;;AAKA;;;;;;;;AAGA,IAAIA,gBAAgB,GAAG,IAAvB;AAEA,MAAMC,cAAc,GAAG,yCACrB,qBADqB,CAAvB;;AAIO,MAAMC,QAAN,SAAuBC,eAAMC,SAA7B,CAAsD;AAC3DC,EAAAA,WAAW,CAACC,KAAD,EAAuB;AAChC,UAAMA,KAAN;;AADgC;;AAEhC,SAAKC,SAAL,GAAiBP,gBAAgB,EAAjC;AACA,UAAM;AAAEQ,MAAAA;AAAF,QAAaF,KAAnB;;AACA,QAAIE,MAAJ,EAAY;AACVC,MAAAA,0BAA0B;;AAC1BC,uBAAYC,eAAZ,CAA4B,KAAKJ,SAAjC,EAA4CC,MAA5C;AACD;AACF;;AAIkB,MAARI,QAAQ,GAAG;AACpB,WAAO,KAAKL,SAAZ;AACD;;AAEDM,EAAAA,kBAAkB,CAACC,SAAD,EAA2B;AAC3C,UAAM;AAAEN,MAAAA;AAAF,QAAa,KAAKF,KAAxB;;AACA,QAAIE,MAAM,KAAKM,SAAS,CAACN,MAAzB,EAAiC;AAC/BC,MAAAA,0BAA0B;;AAC1BC,uBAAYC,eAAZ,CAA4B,KAAKJ,SAAjC,EAA4CC,MAA5C;AACD;AACF;AAED;AACF;AACA;AACA;AACA;;;AACSO,EAAAA,iBAAiB,CAACC,IAAD,EAAgB;AACtCP,IAAAA,0BAA0B;AAC1B,WAAOC,iBAAYK,iBAAZ,CAA8B,KAAKR,SAAnC,EAA8CS,IAA9C,CAAP;AACD;AAED;AACF;AACA;;;AACSC,EAAAA,MAAM,GAAG;AACdR,IAAAA,0BAA0B;;AAC1BC,qBAAYQ,kBAAZ,CAA+B,KAAKX,SAApC;AACD;AAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACSY,EAAAA,WAAW,CAACC,IAAD,EAAiB;AACjCX,IAAAA,0BAA0B;;AAC1BC,qBAAYS,WAAZ,CAAwB,KAAKZ,SAA7B,EAAwCa,IAAxC;AACD;AAED;AACF;AACA;AACA;AACA;;;AACSC,EAAAA,cAAc,CAACC,MAAD,EAA+B;AAClDb,IAAAA,0BAA0B;AAC1B,WAAOC,iBAAYa,oBAAZ,CAAiC,KAAKhB,SAAtC,EAAiDe,MAAjD,CAAP;AACD;;AAEDE,EAAAA,MAAM,GAAG;AACP,UAAM;AAAEJ,MAAAA,IAAF;AAAQK,MAAAA,KAAK,GAAG,KAAhB;AAAuB,SAAGC;AAA1B,QAAwC,KAAKpB,KAAnD;AACA,wBACE,6BAAC,cAAD;AACE,MAAA,WAAW,EAAE,KADf;AAEE,MAAA,QAAQ,EAAG,GAAE,KAAKC,SAAU,EAF9B;AAGE,MAAA,IAAI,EAAEa,IAHR;AAIE,MAAA,KAAK,EAAEK;AAJT,OAKMC,SALN,EADF;AASD;;AA9E0D;;;;AAiF7D,MAAMjB,0BAA0B,GAAG,MAAM;AACvC,MACEC,qBAAgB,IAAhB,IACAA,iBAAYC,eAAZ,IAA+B,IAD/B,IAEAD,iBAAYQ,kBAAZ,IAAkC,IAHpC,EAIE;AACA,UAAMS,KAAK,CAAC,0BAAD,CAAX;AACD;AACF,CARD","sourcesContent":["import React from \"react\";\nimport { requireNativeComponent } from \"react-native\";\n\nimport type { SkRect } from \"../skia/types\";\nimport type { SkiaValue } from \"../values\";\n\nimport { SkiaViewApi } from \"./api\";\nimport type { DrawMode, NativeSkiaViewProps, SkiaViewProps } from \"./types\";\n\nlet SkiaViewNativeId = 1000;\n\nconst NativeSkiaView = requireNativeComponent<NativeSkiaViewProps>(\n \"ReactNativeSkiaView\"\n);\n\nexport class SkiaView extends React.Component<SkiaViewProps> {\n constructor(props: SkiaViewProps) {\n super(props);\n this._nativeId = SkiaViewNativeId++;\n const { onDraw } = props;\n if (onDraw) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawCallback(this._nativeId, onDraw);\n }\n }\n\n private _nativeId: number;\n\n public get nativeId() {\n return this._nativeId;\n }\n\n componentDidUpdate(prevProps: SkiaViewProps) {\n const { onDraw } = this.props;\n if (onDraw !== prevProps.onDraw) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawCallback(this._nativeId, onDraw);\n }\n }\n\n /**\n * Creates a snapshot from the canvas in the surface\n * @param rect Rect to use as bounds. Optional.\n * @returns An Image object.\n */\n public makeImageSnapshot(rect?: SkRect) {\n assertDrawCallbacksEnabled();\n return SkiaViewApi.makeImageSnapshot(this._nativeId, rect);\n }\n\n /**\n * Sends a redraw request to the native SkiaView.\n */\n public redraw() {\n assertDrawCallbacksEnabled();\n SkiaViewApi.invalidateSkiaView(this._nativeId);\n }\n\n /**\n * Updates the drawing mode for the skia view. This is the same\n * as declaratively setting the mode property on the SkiaView.\n * There are two drawing modes, \"continuous\" and \"default\",\n * where the continuous mode will continuously redraw the view and\n * the default mode will only redraw when any of the regular react\n * properties are changed like size and margins.\n * @param mode Drawing mode to use.\n */\n public setDrawMode(mode: DrawMode) {\n assertDrawCallbacksEnabled();\n SkiaViewApi.setDrawMode(this._nativeId, mode);\n }\n\n /**\n * Registers one or move values as a dependant value of the Skia View. The view will\n * The view will redraw itself when any of the values change.\n * @param values Values to register\n */\n public registerValues(values: SkiaValue<unknown>[]) {\n assertDrawCallbacksEnabled();\n return SkiaViewApi.registerValuesInView(this._nativeId, values);\n }\n\n render() {\n const { mode, debug = false, ...viewProps } = this.props;\n return (\n <NativeSkiaView\n collapsable={false}\n nativeID={`${this._nativeId}`}\n mode={mode}\n debug={debug}\n {...viewProps}\n />\n );\n }\n}\n\nconst assertDrawCallbacksEnabled = () => {\n if (\n SkiaViewApi === null ||\n SkiaViewApi.setDrawCallback == null ||\n SkiaViewApi.invalidateSkiaView == null\n ) {\n throw Error(\"Skia Api is not enabled.\");\n }\n};\n"]}