@shopify/react-native-skia 0.1.150 → 0.1.152

Sign up to get free protection for your applications and to get access to all the features.
Files changed (774) hide show
  1. package/android/CMakeLists.txt +4 -5
  2. package/android/cpp/jni/JniLoad.cpp +7 -5
  3. package/android/cpp/jni/JniSkiaManager.cpp +2 -15
  4. package/android/cpp/jni/include/JniSkiaBaseView.h +68 -0
  5. package/android/cpp/jni/include/JniSkiaDrawView.h +64 -47
  6. package/android/cpp/jni/include/JniSkiaManager.h +8 -10
  7. package/android/cpp/jni/include/JniSkiaPictureView.h +96 -0
  8. package/android/cpp/rnskia-android/{RNSkPlatformContextImpl.h → RNSkAndroidPlatformContext.h} +4 -4
  9. package/android/cpp/rnskia-android/RNSkAndroidView.h +100 -0
  10. package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.cpp +91 -0
  11. package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.h +39 -0
  12. package/android/cpp/rnskia-android/SkiaOpenGLRenderer.cpp +15 -6
  13. package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +5 -4
  14. package/android/src/main/java/com/shopify/reactnative/skia/PlatformContext.java +5 -11
  15. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +1 -2
  16. package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseView.java +143 -0
  17. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +17 -145
  18. package/android/src/main/java/com/shopify/reactnative/skia/{RNSkiaViewManager.java → SkiaDrawViewManager.java} +4 -15
  19. package/android/src/main/java/com/shopify/reactnative/skia/SkiaManager.java +1 -10
  20. package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureView.java +45 -0
  21. package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureViewManager.java +64 -0
  22. package/cpp/jsi/JsiValueWrapper.h +11 -0
  23. package/cpp/rnskia/RNSkInfoParameter.h +4 -14
  24. package/cpp/rnskia/RNSkJsView.cpp +211 -0
  25. package/cpp/rnskia/RNSkJsView.h +115 -0
  26. package/cpp/rnskia/RNSkJsiViewApi.h +6 -6
  27. package/cpp/rnskia/RNSkManager.cpp +7 -7
  28. package/cpp/rnskia/RNSkManager.h +7 -7
  29. package/cpp/rnskia/RNSkPictureView.h +124 -0
  30. package/cpp/rnskia/RNSkView.h +287 -0
  31. package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.h +38 -0
  32. package/ios/RNSkia-iOS/{RNSkDrawViewImpl.mm → RNSkMetalCanvasProvider.mm} +40 -23
  33. package/ios/RNSkia-iOS/{PlatformContext.h → RNSkiOSPlatformContext.h} +4 -4
  34. package/ios/RNSkia-iOS/{PlatformContext.mm → RNSkiOSPlatformContext.mm} +5 -5
  35. package/ios/RNSkia-iOS/RNSkiOSView.h +34 -0
  36. package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +19 -11
  37. package/ios/RNSkia-iOS/SkiaManager.mm +3 -3
  38. package/ios/RNSkia-iOS/SkiaPictureViewManager.h +8 -0
  39. package/ios/RNSkia-iOS/SkiaPictureViewManager.mm +51 -0
  40. package/ios/RNSkia-iOS/SkiaUIView.h +26 -0
  41. package/ios/RNSkia-iOS/{SkiaDrawView.mm → SkiaUIView.mm} +29 -23
  42. package/lib/commonjs/animation/decay/decay.js.map +1 -1
  43. package/lib/commonjs/animation/decay/index.js.map +1 -1
  44. package/lib/commonjs/animation/decay/runDecay.js.map +1 -1
  45. package/lib/commonjs/animation/decay/types.js.map +1 -1
  46. package/lib/commonjs/animation/functions/index.js.map +1 -1
  47. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  48. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  49. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  50. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  51. package/lib/commonjs/animation/index.js.map +1 -1
  52. package/lib/commonjs/animation/spring/Spring.js.map +1 -1
  53. package/lib/commonjs/animation/spring/functions/index.js.map +1 -1
  54. package/lib/commonjs/animation/spring/functions/spring.js.map +1 -1
  55. package/lib/commonjs/animation/spring/index.js.map +1 -1
  56. package/lib/commonjs/animation/spring/runSpring.js +1 -1
  57. package/lib/commonjs/animation/spring/runSpring.js.map +1 -1
  58. package/lib/commonjs/animation/spring/types.js.map +1 -1
  59. package/lib/commonjs/animation/spring/useSpring.js +1 -1
  60. package/lib/commonjs/animation/spring/useSpring.js.map +1 -1
  61. package/lib/commonjs/animation/timing/Easing.js.map +1 -1
  62. package/lib/commonjs/animation/timing/createTiming.js +2 -6
  63. package/lib/commonjs/animation/timing/createTiming.js.map +1 -1
  64. package/lib/commonjs/animation/timing/functions/bezier.js.map +1 -1
  65. package/lib/commonjs/animation/timing/functions/getResolvedParams.js +6 -10
  66. package/lib/commonjs/animation/timing/functions/getResolvedParams.js.map +1 -1
  67. package/lib/commonjs/animation/timing/functions/index.js.map +1 -1
  68. package/lib/commonjs/animation/timing/functions/timing.js.map +1 -1
  69. package/lib/commonjs/animation/timing/functions/types.js.map +1 -1
  70. package/lib/commonjs/animation/timing/index.js.map +1 -1
  71. package/lib/commonjs/animation/timing/runTiming.js.map +1 -1
  72. package/lib/commonjs/animation/timing/useLoop.js.map +1 -1
  73. package/lib/commonjs/animation/timing/useTiming.js +1 -3
  74. package/lib/commonjs/animation/timing/useTiming.js.map +1 -1
  75. package/lib/commonjs/animation/types.js.map +1 -1
  76. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  77. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  78. package/lib/commonjs/dom/nodes/JsiSkDOM.js +1 -1
  79. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  80. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  81. package/lib/commonjs/dom/nodes/PaintContext.js.map +1 -1
  82. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  83. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  84. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  85. package/lib/commonjs/dom/nodes/datatypes/Color.js.map +1 -1
  86. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  87. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  88. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +2 -2
  89. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  90. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  91. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  92. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  93. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  94. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  95. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  96. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  97. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  98. package/lib/commonjs/dom/nodes/drawings/CustomDrawingNode.js.map +1 -1
  99. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  100. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  101. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  102. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  103. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  104. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  105. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  106. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  107. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  108. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  109. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  110. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  111. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  112. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  113. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  114. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  115. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  116. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  117. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  118. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  119. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  120. package/lib/commonjs/dom/nodes/paint/Shaders.js +2 -4
  121. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  122. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  123. package/lib/commonjs/dom/types/ColorFilters.js.map +1 -1
  124. package/lib/commonjs/dom/types/Common.js.map +1 -1
  125. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  126. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  127. package/lib/commonjs/dom/types/ImageFilters.js.map +1 -1
  128. package/lib/commonjs/dom/types/MaskFilters.js.map +1 -1
  129. package/lib/commonjs/dom/types/Node.js.map +1 -1
  130. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  131. package/lib/commonjs/dom/types/PathEffects.js.map +1 -1
  132. package/lib/commonjs/dom/types/Shaders.js.map +1 -1
  133. package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
  134. package/lib/commonjs/dom/types/index.js.map +1 -1
  135. package/lib/commonjs/external/index.js.map +1 -1
  136. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  137. package/lib/commonjs/external/reanimated/useSharedValueEffect.js.map +1 -1
  138. package/lib/commonjs/index.js.map +1 -1
  139. package/lib/commonjs/mock/index.js +6 -10
  140. package/lib/commonjs/mock/index.js.map +1 -1
  141. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  142. package/lib/commonjs/renderer/Container.js.map +1 -1
  143. package/lib/commonjs/renderer/DependencyManager.js.map +1 -1
  144. package/lib/commonjs/renderer/DrawingContext.js.map +1 -1
  145. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  146. package/lib/commonjs/renderer/HostConfig.js +0 -2
  147. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  148. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  149. package/lib/commonjs/renderer/components/Drawing.js.map +1 -1
  150. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  151. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  152. package/lib/commonjs/renderer/components/Paint.js +1 -1
  153. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  154. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  155. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +1 -1
  156. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  157. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  158. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  159. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  160. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  161. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  162. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  163. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  164. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  165. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  166. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  167. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  168. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  169. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  170. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  171. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  172. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  173. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  174. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  175. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  176. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  177. package/lib/commonjs/renderer/components/index.js.map +1 -1
  178. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  179. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  180. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  181. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  182. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  183. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  184. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  185. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  186. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  187. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  188. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  189. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  190. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  191. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  192. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  193. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  194. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  195. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  196. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  197. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  198. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  199. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  200. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  201. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  202. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  203. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  204. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  205. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  206. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  207. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  208. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  209. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  210. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  211. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  212. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  213. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  214. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  215. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  216. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  217. package/lib/commonjs/renderer/index.js.map +1 -1
  218. package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
  219. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  220. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  221. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  222. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  223. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  224. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  225. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  226. package/lib/commonjs/renderer/useCanvas.js.map +1 -1
  227. package/lib/commonjs/renderer/useContextBridge.js.map +1 -1
  228. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  229. package/lib/commonjs/skia/Skia.js.map +1 -1
  230. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  231. package/lib/commonjs/skia/core/Data.js.map +1 -1
  232. package/lib/commonjs/skia/core/Font.js.map +1 -1
  233. package/lib/commonjs/skia/core/Image.js.map +1 -1
  234. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  235. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  236. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  237. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  238. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  239. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  240. package/lib/commonjs/skia/core/Vector.js +1 -1
  241. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  242. package/lib/commonjs/skia/core/index.js.map +1 -1
  243. package/lib/commonjs/skia/index.js.map +1 -1
  244. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  245. package/lib/commonjs/skia/types/Color.js.map +1 -1
  246. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  247. package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
  248. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  249. package/lib/commonjs/skia/types/ContourMeasure.js.map +1 -1
  250. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  251. package/lib/commonjs/skia/types/Data/DataFactory.js.map +1 -1
  252. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  253. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  254. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  255. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  256. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  257. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  258. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  259. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  260. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  261. package/lib/commonjs/skia/types/JsiInstance.js.map +1 -1
  262. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  263. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  264. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  265. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  266. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  267. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  268. package/lib/commonjs/skia/types/Path/PathFactory.js.map +1 -1
  269. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  270. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  271. package/lib/commonjs/skia/types/Picture/Picture.js.map +1 -1
  272. package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -1
  273. package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -1
  274. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  275. package/lib/commonjs/skia/types/Point.js.map +1 -1
  276. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  277. package/lib/commonjs/skia/types/RSXform.js.map +1 -1
  278. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  279. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  280. package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
  281. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  282. package/lib/commonjs/skia/types/SVG/SVG.js.map +1 -1
  283. package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -1
  284. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  285. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  286. package/lib/commonjs/skia/types/Shader/ShaderFactory.js.map +1 -1
  287. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  288. package/lib/commonjs/skia/types/Skia.js.map +1 -1
  289. package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -1
  290. package/lib/commonjs/skia/types/Surface/SurfaceFactory.js.map +1 -1
  291. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  292. package/lib/commonjs/skia/types/TextBlob.js.map +1 -1
  293. package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -1
  294. package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js.map +1 -1
  295. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  296. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  297. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  298. package/lib/commonjs/skia/types/index.js.map +1 -1
  299. package/lib/commonjs/skia/web/Host.js +1 -1
  300. package/lib/commonjs/skia/web/Host.js.map +1 -1
  301. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  302. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  303. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  304. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  305. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  306. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  307. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  308. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  309. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  310. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  311. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  312. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  313. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  314. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  315. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  316. package/lib/commonjs/skia/web/JsiSkMatrix.js +1 -1
  317. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  318. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  319. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  320. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  321. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  322. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  323. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  324. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  325. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  326. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  327. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  328. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  329. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  330. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  331. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  332. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  333. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  334. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  335. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  336. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  337. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  338. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  339. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  340. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  341. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  342. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  343. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  344. package/lib/commonjs/skia/web/index.js.map +1 -1
  345. package/lib/commonjs/values/api.js.map +1 -1
  346. package/lib/commonjs/values/api.web.js.map +1 -1
  347. package/lib/commonjs/values/hooks/index.js.map +1 -1
  348. package/lib/commonjs/values/hooks/useClockValue.js.map +1 -1
  349. package/lib/commonjs/values/hooks/useComputedValue.js.map +1 -1
  350. package/lib/commonjs/values/hooks/useValue.js.map +1 -1
  351. package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -1
  352. package/lib/commonjs/values/index.js.map +1 -1
  353. package/lib/commonjs/values/selector.js.map +1 -1
  354. package/lib/commonjs/values/types.js.map +1 -1
  355. package/lib/commonjs/values/web/RNSkAnimation.js +2 -2
  356. package/lib/commonjs/values/web/RNSkAnimation.js.map +1 -1
  357. package/lib/commonjs/values/web/RNSkClockValue.js.map +1 -1
  358. package/lib/commonjs/values/web/RNSkComputedValue.js +1 -1
  359. package/lib/commonjs/values/web/RNSkComputedValue.js.map +1 -1
  360. package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -1
  361. package/lib/commonjs/values/web/RNSkValue.js.map +1 -1
  362. package/lib/commonjs/values/web/api.js.map +1 -1
  363. package/lib/commonjs/values/web/index.js.map +1 -1
  364. package/lib/commonjs/views/SkiaBaseWebView.js +213 -0
  365. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -0
  366. package/lib/commonjs/views/SkiaPictureView.js +112 -0
  367. package/lib/commonjs/views/SkiaPictureView.js.map +1 -0
  368. package/lib/commonjs/views/SkiaPictureView.web.js +31 -0
  369. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -0
  370. package/lib/commonjs/views/SkiaView.js +2 -2
  371. package/lib/commonjs/views/SkiaView.js.map +1 -1
  372. package/lib/commonjs/views/SkiaView.web.js +14 -203
  373. package/lib/commonjs/views/SkiaView.web.js.map +1 -1
  374. package/lib/commonjs/views/api.js.map +1 -1
  375. package/lib/commonjs/views/index.js +13 -0
  376. package/lib/commonjs/views/index.js.map +1 -1
  377. package/lib/commonjs/views/types.js.map +1 -1
  378. package/lib/commonjs/views/useDrawCallback.js.map +1 -1
  379. package/lib/commonjs/views/useTouchHandler.js +6 -6
  380. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  381. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  382. package/lib/commonjs/web/WithSkiaWeb.js +1 -1
  383. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  384. package/lib/commonjs/web/index.js.map +1 -1
  385. package/lib/module/animation/decay/decay.js.map +1 -1
  386. package/lib/module/animation/decay/index.js.map +1 -1
  387. package/lib/module/animation/decay/runDecay.js.map +1 -1
  388. package/lib/module/animation/decay/types.js.map +1 -1
  389. package/lib/module/animation/functions/index.js.map +1 -1
  390. package/lib/module/animation/functions/interpolate.js.map +1 -1
  391. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  392. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  393. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  394. package/lib/module/animation/index.js.map +1 -1
  395. package/lib/module/animation/spring/Spring.js.map +1 -1
  396. package/lib/module/animation/spring/functions/index.js.map +1 -1
  397. package/lib/module/animation/spring/functions/spring.js.map +1 -1
  398. package/lib/module/animation/spring/index.js.map +1 -1
  399. package/lib/module/animation/spring/runSpring.js +1 -1
  400. package/lib/module/animation/spring/runSpring.js.map +1 -1
  401. package/lib/module/animation/spring/types.js.map +1 -1
  402. package/lib/module/animation/spring/useSpring.js +1 -1
  403. package/lib/module/animation/spring/useSpring.js.map +1 -1
  404. package/lib/module/animation/timing/Easing.js.map +1 -1
  405. package/lib/module/animation/timing/createTiming.js +2 -6
  406. package/lib/module/animation/timing/createTiming.js.map +1 -1
  407. package/lib/module/animation/timing/functions/bezier.js.map +1 -1
  408. package/lib/module/animation/timing/functions/getResolvedParams.js +6 -10
  409. package/lib/module/animation/timing/functions/getResolvedParams.js.map +1 -1
  410. package/lib/module/animation/timing/functions/index.js.map +1 -1
  411. package/lib/module/animation/timing/functions/timing.js.map +1 -1
  412. package/lib/module/animation/timing/functions/types.js.map +1 -1
  413. package/lib/module/animation/timing/index.js.map +1 -1
  414. package/lib/module/animation/timing/runTiming.js.map +1 -1
  415. package/lib/module/animation/timing/useLoop.js.map +1 -1
  416. package/lib/module/animation/timing/useTiming.js +1 -3
  417. package/lib/module/animation/timing/useTiming.js.map +1 -1
  418. package/lib/module/animation/types.js.map +1 -1
  419. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  420. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  421. package/lib/module/dom/nodes/JsiSkDOM.js +1 -1
  422. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  423. package/lib/module/dom/nodes/Node.js.map +1 -1
  424. package/lib/module/dom/nodes/PaintContext.js.map +1 -1
  425. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  426. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  427. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  428. package/lib/module/dom/nodes/datatypes/Color.js.map +1 -1
  429. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  430. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  431. package/lib/module/dom/nodes/datatypes/Gradient.js +2 -2
  432. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  433. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  434. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  435. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  436. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  437. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  438. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  439. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  440. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  441. package/lib/module/dom/nodes/drawings/CustomDrawingNode.js.map +1 -1
  442. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  443. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  444. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  445. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  446. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  447. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  448. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  449. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  450. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  451. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  452. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  453. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  454. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  455. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  456. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  457. package/lib/module/dom/nodes/index.js.map +1 -1
  458. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  459. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  460. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  461. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  462. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  463. package/lib/module/dom/nodes/paint/Shaders.js +2 -4
  464. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  465. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  466. package/lib/module/dom/types/ColorFilters.js.map +1 -1
  467. package/lib/module/dom/types/Common.js.map +1 -1
  468. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  469. package/lib/module/dom/types/Drawings.js.map +1 -1
  470. package/lib/module/dom/types/ImageFilters.js.map +1 -1
  471. package/lib/module/dom/types/MaskFilters.js.map +1 -1
  472. package/lib/module/dom/types/Node.js.map +1 -1
  473. package/lib/module/dom/types/NodeType.js.map +1 -1
  474. package/lib/module/dom/types/PathEffects.js.map +1 -1
  475. package/lib/module/dom/types/Shaders.js.map +1 -1
  476. package/lib/module/dom/types/SkDOM.js.map +1 -1
  477. package/lib/module/dom/types/index.js.map +1 -1
  478. package/lib/module/external/index.js.map +1 -1
  479. package/lib/module/external/reanimated/index.js.map +1 -1
  480. package/lib/module/external/reanimated/useSharedValueEffect.js.map +1 -1
  481. package/lib/module/index.js.map +1 -1
  482. package/lib/module/mock/index.js +6 -10
  483. package/lib/module/mock/index.js.map +1 -1
  484. package/lib/module/renderer/Canvas.js.map +1 -1
  485. package/lib/module/renderer/Container.js.map +1 -1
  486. package/lib/module/renderer/DependencyManager.js.map +1 -1
  487. package/lib/module/renderer/DrawingContext.js.map +1 -1
  488. package/lib/module/renderer/HostComponents.js.map +1 -1
  489. package/lib/module/renderer/HostConfig.js +0 -2
  490. package/lib/module/renderer/HostConfig.js.map +1 -1
  491. package/lib/module/renderer/components/Blend.js.map +1 -1
  492. package/lib/module/renderer/components/Drawing.js.map +1 -1
  493. package/lib/module/renderer/components/Group.js.map +1 -1
  494. package/lib/module/renderer/components/Mask.js.map +1 -1
  495. package/lib/module/renderer/components/Paint.js +1 -1
  496. package/lib/module/renderer/components/Paint.js.map +1 -1
  497. package/lib/module/renderer/components/Picture.js.map +1 -1
  498. package/lib/module/renderer/components/backdrop/BackdropBlur.js +1 -1
  499. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  500. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  501. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  502. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  503. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  504. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  505. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  506. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  507. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  508. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  509. package/lib/module/renderer/components/image/Image.js.map +1 -1
  510. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  511. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  512. package/lib/module/renderer/components/image/index.js.map +1 -1
  513. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  514. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  515. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  516. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  517. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  518. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  519. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  520. package/lib/module/renderer/components/index.js.map +1 -1
  521. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  522. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  523. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  524. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  525. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  526. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  527. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  528. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  529. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  530. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  531. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  532. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  533. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  534. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  535. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  536. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  537. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  538. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  539. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  540. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  541. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  542. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  543. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  544. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  545. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  546. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  547. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  548. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  549. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  550. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  551. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  552. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  553. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  554. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  555. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  556. package/lib/module/renderer/components/text/Text.js.map +1 -1
  557. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  558. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  559. package/lib/module/renderer/components/text/index.js.map +1 -1
  560. package/lib/module/renderer/index.js.map +1 -1
  561. package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
  562. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  563. package/lib/module/renderer/processors/index.js.map +1 -1
  564. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  565. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  566. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  567. package/lib/module/renderer/processors/math/index.js.map +1 -1
  568. package/lib/module/renderer/typeddash.js.map +1 -1
  569. package/lib/module/renderer/useCanvas.js.map +1 -1
  570. package/lib/module/renderer/useContextBridge.js.map +1 -1
  571. package/lib/module/skia/NativeSetup.js.map +1 -1
  572. package/lib/module/skia/Skia.js.map +1 -1
  573. package/lib/module/skia/Skia.web.js.map +1 -1
  574. package/lib/module/skia/core/Data.js.map +1 -1
  575. package/lib/module/skia/core/Font.js.map +1 -1
  576. package/lib/module/skia/core/Image.js.map +1 -1
  577. package/lib/module/skia/core/Matrix.js.map +1 -1
  578. package/lib/module/skia/core/Picture.js.map +1 -1
  579. package/lib/module/skia/core/RRect.js.map +1 -1
  580. package/lib/module/skia/core/Rect.js.map +1 -1
  581. package/lib/module/skia/core/SVG.js.map +1 -1
  582. package/lib/module/skia/core/Typeface.js.map +1 -1
  583. package/lib/module/skia/core/Vector.js +1 -1
  584. package/lib/module/skia/core/Vector.js.map +1 -1
  585. package/lib/module/skia/core/index.js.map +1 -1
  586. package/lib/module/skia/index.js.map +1 -1
  587. package/lib/module/skia/types/Canvas.js.map +1 -1
  588. package/lib/module/skia/types/Color.js.map +1 -1
  589. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  590. package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -1
  591. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  592. package/lib/module/skia/types/ContourMeasure.js.map +1 -1
  593. package/lib/module/skia/types/Data/Data.js.map +1 -1
  594. package/lib/module/skia/types/Data/DataFactory.js.map +1 -1
  595. package/lib/module/skia/types/Data/index.js.map +1 -1
  596. package/lib/module/skia/types/Font/Font.js.map +1 -1
  597. package/lib/module/skia/types/Font/index.js.map +1 -1
  598. package/lib/module/skia/types/Image/Image.js.map +1 -1
  599. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  600. package/lib/module/skia/types/Image/index.js.map +1 -1
  601. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  602. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  603. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  604. package/lib/module/skia/types/JsiInstance.js.map +1 -1
  605. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  606. package/lib/module/skia/types/Matrix.js.map +1 -1
  607. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  608. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  609. package/lib/module/skia/types/Paint/index.js.map +1 -1
  610. package/lib/module/skia/types/Path/Path.js.map +1 -1
  611. package/lib/module/skia/types/Path/PathFactory.js.map +1 -1
  612. package/lib/module/skia/types/Path/index.js.map +1 -1
  613. package/lib/module/skia/types/PathEffect.js.map +1 -1
  614. package/lib/module/skia/types/Picture/Picture.js.map +1 -1
  615. package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -1
  616. package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -1
  617. package/lib/module/skia/types/Picture/index.js.map +1 -1
  618. package/lib/module/skia/types/Point.js.map +1 -1
  619. package/lib/module/skia/types/RRect.js.map +1 -1
  620. package/lib/module/skia/types/RSXform.js.map +1 -1
  621. package/lib/module/skia/types/Rect.js.map +1 -1
  622. package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -1
  623. package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -1
  624. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  625. package/lib/module/skia/types/SVG/SVG.js.map +1 -1
  626. package/lib/module/skia/types/SVG/SVGFactory.js.map +1 -1
  627. package/lib/module/skia/types/SVG/index.js.map +1 -1
  628. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  629. package/lib/module/skia/types/Shader/ShaderFactory.js.map +1 -1
  630. package/lib/module/skia/types/Shader/index.js.map +1 -1
  631. package/lib/module/skia/types/Skia.js.map +1 -1
  632. package/lib/module/skia/types/Surface/Surface.js.map +1 -1
  633. package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -1
  634. package/lib/module/skia/types/Surface/index.js.map +1 -1
  635. package/lib/module/skia/types/TextBlob.js.map +1 -1
  636. package/lib/module/skia/types/Typeface/Typeface.js.map +1 -1
  637. package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -1
  638. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  639. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  640. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  641. package/lib/module/skia/types/index.js.map +1 -1
  642. package/lib/module/skia/web/Host.js +1 -1
  643. package/lib/module/skia/web/Host.js.map +1 -1
  644. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  645. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  646. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  647. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  648. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  649. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  650. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  651. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  652. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  653. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  654. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  655. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  656. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  657. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  658. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  659. package/lib/module/skia/web/JsiSkMatrix.js +1 -1
  660. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  661. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  662. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  663. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  664. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  665. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  666. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  667. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  668. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  669. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  670. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  671. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  672. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  673. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  674. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  675. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  676. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  677. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  678. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  679. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  680. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  681. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  682. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  683. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  684. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  685. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  686. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  687. package/lib/module/skia/web/index.js.map +1 -1
  688. package/lib/module/values/api.js.map +1 -1
  689. package/lib/module/values/api.web.js.map +1 -1
  690. package/lib/module/values/hooks/index.js.map +1 -1
  691. package/lib/module/values/hooks/useClockValue.js.map +1 -1
  692. package/lib/module/values/hooks/useComputedValue.js.map +1 -1
  693. package/lib/module/values/hooks/useValue.js.map +1 -1
  694. package/lib/module/values/hooks/useValueEffect.js.map +1 -1
  695. package/lib/module/values/index.js.map +1 -1
  696. package/lib/module/values/selector.js.map +1 -1
  697. package/lib/module/values/types.js.map +1 -1
  698. package/lib/module/values/web/RNSkAnimation.js +2 -2
  699. package/lib/module/values/web/RNSkAnimation.js.map +1 -1
  700. package/lib/module/values/web/RNSkClockValue.js.map +1 -1
  701. package/lib/module/values/web/RNSkComputedValue.js +1 -1
  702. package/lib/module/values/web/RNSkComputedValue.js.map +1 -1
  703. package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -1
  704. package/lib/module/values/web/RNSkValue.js.map +1 -1
  705. package/lib/module/values/web/api.js.map +1 -1
  706. package/lib/module/values/web/index.js.map +1 -1
  707. package/lib/module/views/SkiaBaseWebView.js +198 -0
  708. package/lib/module/views/SkiaBaseWebView.js.map +1 -0
  709. package/lib/module/views/SkiaPictureView.js +94 -0
  710. package/lib/module/views/SkiaPictureView.js.map +1 -0
  711. package/lib/module/views/SkiaPictureView.web.js +19 -0
  712. package/lib/module/views/SkiaPictureView.web.js.map +1 -0
  713. package/lib/module/views/SkiaView.js +2 -2
  714. package/lib/module/views/SkiaView.js.map +1 -1
  715. package/lib/module/views/SkiaView.web.js +15 -201
  716. package/lib/module/views/SkiaView.web.js.map +1 -1
  717. package/lib/module/views/api.js.map +1 -1
  718. package/lib/module/views/index.js +1 -0
  719. package/lib/module/views/index.js.map +1 -1
  720. package/lib/module/views/types.js.map +1 -1
  721. package/lib/module/views/useDrawCallback.js.map +1 -1
  722. package/lib/module/views/useTouchHandler.js +6 -6
  723. package/lib/module/views/useTouchHandler.js.map +1 -1
  724. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  725. package/lib/module/web/WithSkiaWeb.js +1 -1
  726. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  727. package/lib/module/web/index.js.map +1 -1
  728. package/lib/typescript/src/animation/decay/runDecay.d.ts +1 -1
  729. package/lib/typescript/src/animation/spring/runSpring.d.ts +1 -1
  730. package/lib/typescript/src/animation/spring/useSpring.d.ts +1 -1
  731. package/lib/typescript/src/animation/timing/createTiming.d.ts +1 -1
  732. package/lib/typescript/src/animation/timing/functions/getResolvedParams.d.ts +1 -1
  733. package/lib/typescript/src/animation/timing/runTiming.d.ts +1 -1
  734. package/lib/typescript/src/animation/timing/useLoop.d.ts +1 -1
  735. package/lib/typescript/src/animation/timing/useTiming.d.ts +1 -1
  736. package/lib/typescript/src/mock/index.d.ts +1 -1
  737. package/lib/typescript/src/renderer/Canvas.d.ts +1 -1
  738. package/lib/typescript/src/renderer/HostConfig.d.ts +1 -1
  739. package/lib/typescript/src/renderer/components/Paint.d.ts +1 -1
  740. package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +1 -1
  741. package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +4 -4
  742. package/lib/typescript/src/renderer/typeddash.d.ts +2 -2
  743. package/lib/typescript/src/skia/core/Font.d.ts +1 -1
  744. package/lib/typescript/src/skia/core/Vector.d.ts +2 -2
  745. package/lib/typescript/src/skia/types/Shader/Shader.d.ts +1 -1
  746. package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +2 -2
  747. package/lib/typescript/src/views/SkiaBaseWebView.d.ts +58 -0
  748. package/lib/typescript/src/views/SkiaPictureView.d.ts +27 -0
  749. package/lib/typescript/src/views/SkiaPictureView.web.d.ts +7 -0
  750. package/lib/typescript/src/views/SkiaView.d.ts +4 -4
  751. package/lib/typescript/src/views/SkiaView.web.d.ts +6 -53
  752. package/lib/typescript/src/views/index.d.ts +1 -0
  753. package/lib/typescript/src/views/types.d.ts +7 -2
  754. package/lib/typescript/src/web/LoadSkiaWeb.d.ts +2 -2
  755. package/package.json +6 -6
  756. package/src/renderer/HostConfig.ts +3 -4
  757. package/src/renderer/components/backdrop/BackdropFilter.tsx +1 -1
  758. package/src/renderer/processors/Animations/Animations.ts +11 -4
  759. package/src/renderer/typeddash.ts +3 -2
  760. package/src/values/web/RNSkComputedValue.ts +6 -1
  761. package/src/views/SkiaBaseWebView.tsx +177 -0
  762. package/src/views/SkiaPictureView.tsx +93 -0
  763. package/src/views/SkiaPictureView.web.tsx +23 -0
  764. package/src/views/SkiaView.tsx +6 -7
  765. package/src/views/SkiaView.web.tsx +18 -167
  766. package/src/views/index.ts +1 -0
  767. package/src/views/types.ts +9 -2
  768. package/android/cpp/jni/JniSkiaDrawView.cpp +0 -113
  769. package/android/cpp/rnskia-android/RNSkDrawViewImpl.cpp +0 -73
  770. package/android/cpp/rnskia-android/RNSkDrawViewImpl.h +0 -48
  771. package/cpp/rnskia/RNSkDrawView.cpp +0 -315
  772. package/cpp/rnskia/RNSkDrawView.h +0 -226
  773. package/ios/RNSkia-iOS/RNSkDrawViewImpl.h +0 -52
  774. package/ios/RNSkia-iOS/SkiaDrawView.h +0 -23
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkPaint.ts"],"names":["JsiSkPaint","HostObject","constructor","CanvasKit","ref","copy","reset","Paint","getColor","getStrokeCap","value","getStrokeJoin","getStrokeMiter","getStrokeWidth","setAlphaf","alpha","setAntiAlias","aa","setBlendMode","blendMode","setColor","color","setColorFilter","filter","JsiSkColorFilter","fromValue","setImageFilter","JsiSkImageFilter","setMaskFilter","JsiSkMaskFilter","setPathEffect","effect","JsiSkPathEffect","setShader","shader","JsiSkShader","setStrokeCap","cap","setStrokeJoin","join","setStrokeMiter","limit","setStrokeWidth","width","setStyle","style"],"mappings":";;;;;;;AAgBA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEO,MAAMA,UAAN,SAAyBC,gBAAzB,CAAuE;AAC5EC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAmC;AAC5C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,OAAtB;AACD;;AAEDC,EAAAA,IAAI,GAAG;AACL,WAAO,IAAIL,UAAJ,CAAe,KAAKG,SAApB,EAA+B,KAAKC,GAAL,CAASC,IAAT,EAA/B,CAAP;AACD;;AAEDC,EAAAA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AL,CAASwB,aAAT,CAAuBL,MAAM,GAAGM,iCAAgBJ,SAAhB,CAA0BF,MAA1B,CAAH,GAAuC,IAApE;AACD;;AAEDO,EAAAA,aAAa,CAACC,MAAD,EAA8B;AACzC,SAAK3B,GAAL,CAAS0B,aAAT,CAAuBC,MAAM,GAAGC,iCAAgBP,SAAhB,CAA0BM,MAA1B,CAAH,GAAuC,IAApE;AACD;;AAEDE,EAAAA,SAAS,CAACC,MAAD,EAA0B;AACjC,SAAK9B,GAAL,CAAS6B,SAAT,CAAmBC,MAAM,GAAGC,yBAAYV,SAAZ,CAAsBS,MAAtB,CAAH,GAAmC,IAA5D;AACD;;AAEDE,EAAAA,YAAY,CAACC,GAAD,EAAiB;AAC3B,SAAKjC,GAAL,CAASgC,YAAT,CAAsB,kBAAOC,GAAP,CAAtB;AACD;;AAEDC,EAAAA,aAAa,CAACC,IAAD,EAAmB;AAC9B,SAAKnC,GAAL,CAASkC,aAAT,CAAuB,kBAAOC,IAAP,CAAvB;AACD;;AAEDC,EAAAA,cAAc,CAACC,KAAD,EAAgB;AAC5B,SAAKrC,GAAL,CAASoC,cAAT,CAAwBC,KAAxB;AACD;;AAEDC,EAAAA,cAAc,CAACC,KAAD,EAAgB;AAC5B,SAAKvC,GAAL,CAASsC,cAAT,CAAwBC,KAAxB;AACD;;AAEDC,EAAAA,QAAQ,CAACC,KAAD,EAAoB;AAC1B,SAAKzC,GAAL,CAASwC,QAAT,CAAkB;AAAElC,MAAAA,KAAK,EAAEmC;AAAT,KAAlB;AACD;;AAvF2E","sourcesContent":["import type { CanvasKit, Paint } from \"canvaskit-wasm\";\n\nimport type {\n StrokeJoin,\n BlendMode,\n SkColor,\n SkColorFilter,\n SkImageFilter,\n SkPaint,\n SkShader,\n StrokeCap,\n PaintStyle,\n SkMaskFilter,\n SkPathEffect,\n} from \"../types\";\n\nimport { HostObject, ckEnum } from \"./Host\";\nimport { JsiSkColorFilter } from \"./JsiSkColorFilter\";\nimport { JsiSkImageFilter } from \"./JsiSkImageFilter\";\nimport { JsiSkMaskFilter } from \"./JsiSkMaskFilter\";\nimport { JsiSkPathEffect } from \"./JsiSkPathEffect\";\nimport { JsiSkShader } from \"./JsiSkShader\";\n\nexport class JsiSkPaint extends HostObject<Paint, \"Paint\"> implements SkPaint {\n constructor(CanvasKit: CanvasKit, ref: Paint) {\n super(CanvasKit, ref, \"Paint\");\n }\n\n copy() {\n return new JsiSkPaint(this.CanvasKit, this.ref.copy());\n }\n\n reset() {\n this.ref = new this.CanvasKit.Paint();\n }\n\n getColor() {\n return this.ref.getColor();\n }\n\n getStrokeCap() {\n return this.ref.getStrokeCap().value;\n }\n\n getStrokeJoin() {\n return this.ref.getStrokeJoin().value;\n }\n\n getStrokeMiter() {\n return this.ref.getStrokeMiter();\n }\n\n getStrokeWidth() {\n return this.ref.getStrokeWidth();\n }\n\n setAlphaf(alpha: number) {\n this.ref.setAlphaf(alpha);\n }\n\n setAntiAlias(aa: boolean) {\n this.ref.setAntiAlias(aa);\n }\n\n setBlendMode(blendMode: BlendMode) {\n this.ref.setBlendMode(ckEnum(blendMode));\n }\n\n setColor(color: SkColor) {\n this.ref.setColor(color);\n }\n\n setColorFilter(filter: SkColorFilter | null) {\n this.ref.setColorFilter(filter ? JsiSkColorFilter.fromValue(filter) : null);\n }\n\n setImageFilter(filter: SkImageFilter | null) {\n this.ref.setImageFilter(filter ? JsiSkImageFilter.fromValue(filter) : null);\n }\n\n setMaskFilter(filter: SkMaskFilter | null) {\n this.ref.setMaskFilter(filter ? JsiSkMaskFilter.fromValue(filter) : null);\n }\n\n setPathEffect(effect: SkPathEffect | null) {\n this.ref.setPathEffect(effect ? JsiSkPathEffect.fromValue(effect) : null);\n }\n\n setShader(shader: SkShader | null) {\n this.ref.setShader(shader ? JsiSkShader.fromValue(shader) : null);\n }\n\n setStrokeCap(cap: StrokeCap) {\n this.ref.setStrokeCap(ckEnum(cap));\n }\n\n setStrokeJoin(join: StrokeJoin) {\n this.ref.setStrokeJoin(ckEnum(join));\n }\n\n setStrokeMiter(limit: number) {\n this.ref.setStrokeMiter(limit);\n }\n\n setStrokeWidth(width: number) {\n this.ref.setStrokeWidth(width);\n }\n\n setStyle(style: PaintStyle) {\n this.ref.setStyle({ value: style });\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkPaint","HostObject","constructor","CanvasKit","ref","copy","reset","Paint","getColor","getStrokeCap","value","getStrokeJoin","getStrokeMiter","getStrokeWidth","setAlphaf","alpha","setAntiAlias","aa","setBlendMode","blendMode","ckEnum","setColor","color","setColorFilter","filter","JsiSkColorFilter","fromValue","setImageFilter","JsiSkImageFilter","setMaskFilter","JsiSkMaskFilter","setPathEffect","effect","JsiSkPathEffect","setShader","shader","JsiSkShader","setStrokeCap","cap","setStrokeJoin","join","setStrokeMiter","limit","setStrokeWidth","width","setStyle","style"],"sources":["JsiSkPaint.ts"],"sourcesContent":["import type { CanvasKit, Paint } from \"canvaskit-wasm\";\n\nimport type {\n StrokeJoin,\n BlendMode,\n SkColor,\n SkColorFilter,\n SkImageFilter,\n SkPaint,\n SkShader,\n StrokeCap,\n PaintStyle,\n SkMaskFilter,\n SkPathEffect,\n} from \"../types\";\n\nimport { HostObject, ckEnum } from \"./Host\";\nimport { JsiSkColorFilter } from \"./JsiSkColorFilter\";\nimport { JsiSkImageFilter } from \"./JsiSkImageFilter\";\nimport { JsiSkMaskFilter } from \"./JsiSkMaskFilter\";\nimport { JsiSkPathEffect } from \"./JsiSkPathEffect\";\nimport { JsiSkShader } from \"./JsiSkShader\";\n\nexport class JsiSkPaint extends HostObject<Paint, \"Paint\"> implements SkPaint {\n constructor(CanvasKit: CanvasKit, ref: Paint) {\n super(CanvasKit, ref, \"Paint\");\n }\n\n copy() {\n return new JsiSkPaint(this.CanvasKit, this.ref.copy());\n }\n\n reset() {\n this.ref = new this.CanvasKit.Paint();\n }\n\n getColor() {\n return this.ref.getColor();\n }\n\n getStrokeCap() {\n return this.ref.getStrokeCap().value;\n }\n\n getStrokeJoin() {\n return this.ref.getStrokeJoin().value;\n }\n\n getStrokeMiter() {\n return this.ref.getStrokeMiter();\n }\n\n getStrokeWidth() {\n return this.ref.getStrokeWidth();\n }\n\n setAlphaf(alpha: number) {\n this.ref.setAlphaf(alpha);\n }\n\n setAntiAlias(aa: boolean) {\n this.ref.setAntiAlias(aa);\n }\n\n setBlendMode(blendMode: BlendMode) {\n this.ref.setBlendMode(ckEnum(blendMode));\n }\n\n setColor(color: SkColor) {\n this.ref.setColor(color);\n }\n\n setColorFilter(filter: SkColorFilter | null) {\n this.ref.setColorFilter(filter ? JsiSkColorFilter.fromValue(filter) : null);\n }\n\n setImageFilter(filter: SkImageFilter | null) {\n this.ref.setImageFilter(filter ? JsiSkImageFilter.fromValue(filter) : null);\n }\n\n setMaskFilter(filter: SkMaskFilter | null) {\n this.ref.setMaskFilter(filter ? JsiSkMaskFilter.fromValue(filter) : null);\n }\n\n setPathEffect(effect: SkPathEffect | null) {\n this.ref.setPathEffect(effect ? JsiSkPathEffect.fromValue(effect) : null);\n }\n\n setShader(shader: SkShader | null) {\n this.ref.setShader(shader ? JsiSkShader.fromValue(shader) : null);\n }\n\n setStrokeCap(cap: StrokeCap) {\n this.ref.setStrokeCap(ckEnum(cap));\n }\n\n setStrokeJoin(join: StrokeJoin) {\n this.ref.setStrokeJoin(ckEnum(join));\n }\n\n setStrokeMiter(limit: number) {\n this.ref.setStrokeMiter(limit);\n }\n\n setStrokeWidth(width: number) {\n this.ref.setStrokeWidth(width);\n }\n\n setStyle(style: PaintStyle) {\n this.ref.setStyle({ value: style });\n }\n}\n"],"mappings":";;;;;;;AAgBA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEO,MAAMA,UAAN,SAAyBC,gBAAzB,CAAuE;EAC5EC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAmC;IAC5C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,OAAtB;EACD;;EAEDC,IAAI,GAAG;IACL,OAAO,IAAIL,UAAJ,CAAe,KAAKG,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AAL,CAASyB,aAAT,CAAuBL,MAAM,GAAGM,gCAAA,CAAgBJ,SAAhB,CAA0BF,MAA1B,CAAH,GAAuC,IAApE;EACD;;EAEDO,aAAa,CAACC,MAAD,EAA8B;IACzC,KAAK5B,GAAL,CAAS2B,aAAT,CAAuBC,MAAM,GAAGC,gCAAA,CAAgBP,SAAhB,CAA0BM,MAA1B,CAAH,GAAuC,IAApE;EACD;;EAEDE,SAAS,CAACC,MAAD,EAA0B;IACjC,KAAK/B,GAAL,CAAS8B,SAAT,CAAmBC,MAAM,GAAGC,wBAAA,CAAYV,SAAZ,CAAsBS,MAAtB,CAAH,GAAmC,IAA5D;EACD;;EAEDE,YAAY,CAACC,GAAD,EAAiB;IAC3B,KAAKlC,GAAL,CAASiC,YAAT,CAAsB,IAAAjB,YAAA,EAAOkB,GAAP,CAAtB;EACD;;EAEDC,aAAa,CAACC,IAAD,EAAmB;IAC9B,KAAKpC,GAAL,CAASmC,aAAT,CAAuB,IAAAnB,YAAA,EAAOoB,IAAP,CAAvB;EACD;;EAEDC,cAAc,CAACC,KAAD,EAAgB;IAC5B,KAAKtC,GAAL,CAASqC,cAAT,CAAwBC,KAAxB;EACD;;EAEDC,cAAc,CAACC,KAAD,EAAgB;IAC5B,KAAKxC,GAAL,CAASuC,cAAT,CAAwBC,KAAxB;EACD;;EAEDC,QAAQ,CAACC,KAAD,EAAoB;IAC1B,KAAK1C,GAAL,CAASyC,QAAT,CAAkB;MAAEnC,KAAK,EAAEoC;IAAT,CAAlB;EACD;;AAvF2E"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkPath.ts"],"names":["CommandCount","PathVerb","Move","Line","Quad","Conic","Cubic","Close","JsiSkPath","HostObject","constructor","CanvasKit","ref","addArc","oval","startAngleInDegrees","sweepAngleInDegrees","JsiSkRect","fromValue","addOval","isCCW","startIndex","countPoints","addPoly","points","close","map","p","Array","from","JsiSkPoint","flat","moveTo","x","y","lineTo","makeAsWinding","result","offset","dx","dy","rArcTo","rx","ry","xAxisRotateInDegrees","useSmallArc","rConicTo","dx1","dy1","dx2","dy2","w","rCubicTo","cpx1","cpy1","cpx2","cpy2","rMoveTo","rLineTo","rQuadTo","x1","y1","x2","y2","setFillType","fill","setIsVolatile","volatile","stroke","opts","undefined","width","miter_limit","precision","join","cap","reset","rewind","computeTightBounds","arcToOval","forceMoveTo","arcToRotated","arcToTangent","radius","conicTo","contains","copy","cubicTo","dash","on","off","phase","equals","other","getBounds","getFillType","value","quadTo","addRect","rect","addRRect","rrect","JsiSkRRect","getPoint","index","isEmpty","isVolatile","addCircle","r","getLastPt","op","path","simplify","toSVGString","trim","startT","stopT","isComplement","transform","m3","JsiSkMatrix","interpolate","end","t","Path","MakeFromPathInterpolation","isInterpolatable","path2","CanInterpolate","toCmds","cmds","reduce","acc","cmd","i","push","current","length"],"mappings":";;;;;;;AAEA;;AAaA;;AACA;;AACA;;AACA;;AACA;;AAEA,MAAMA,YAAY,GAAG;AACnB,GAACC,gBAASC,IAAV,GAAiB,CADE;AAEnB,GAACD,gBAASE,IAAV,GAAiB,CAFE;AAGnB,GAACF,gBAASG,IAAV,GAAiB,CAHE;AAInB,GAACH,gBAASI,KAAV,GAAkB,CAJC;AAKnB,GAACJ,gBAASK,KAAV,GAAkB,CALC;AAMnB,GAACL,gBAASM,KAAV,GAAkB;AANC,CAArB;;AASO,MAAMC,SAAN,SAAwBC,gBAAxB,CAAmE;AACxEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAkC;AAC3C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,MAAtB;AACD;;AAEDC,EAAAA,MAAM,CACJC,IADI,EAEJC,mBAFI,EAGJC,mBAHI,EAIJ;AACA,SAAKJ,GAAL,CAASC,MAAT,CACEI,qBAAUC,SAAV,CAAoB,KAAKP,SAAzB,EAAoCG,IAApC,CADF,EAEEC,mBAFF,EAGEC,mBAHF;AAKA,WAAO,IAAP;AACD;;AAEDG,EAAAA,OAAO,CAACL,IAAD,EA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CAAR,CAA3B;;AACA,YAAIA,OAAO,CAACC,MAAR,GAAiBA,MAArB,EAA6B;AAC3BD,UAAAA,OAAO,CAACD,IAAR,CAAaF,GAAb;AACD;;AACD,YAAIG,OAAO,CAACC,MAAR,KAAmBA,MAAnB,IAA6BH,CAAC,KAAKJ,IAAI,CAACO,MAAL,GAAc,CAArD,EAAwD;AACtDL,UAAAA,GAAG,CAACG,IAAJ,CAAS,EAAT;AACD;AACF;;AACD,aAAOH,GAAP;AACD,KArBc,EAqBZ,EArBY,CAAf;AAsBA,WAAO/F,MAAP;AACD;;AAxUuE","sourcesContent":["import type { CanvasKit, Path } from \"canvaskit-wasm\";\n\nimport { PathVerb } from \"../types\";\nimport type {\n FillType,\n PathCommand,\n PathOp,\n SkMatrix,\n SkPath,\n SkPoint,\n SkRect,\n SkRRect,\n StrokeOpts,\n} from \"../types\";\n\nimport { ckEnum, HostObject, optEnum } from \"./Host\";\nimport { JsiSkPoint } from \"./JsiSkPoint\";\nimport { JsiSkRect } from \"./JsiSkRect\";\nimport { JsiSkRRect } from \"./JsiSkRRect\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\n\nconst CommandCount = {\n [PathVerb.Move]: 3,\n [PathVerb.Line]: 3,\n [PathVerb.Quad]: 5,\n [PathVerb.Conic]: 6,\n [PathVerb.Cubic]: 7,\n [PathVerb.Close]: 1,\n};\n\nexport class JsiSkPath extends HostObject<Path, \"Path\"> implements SkPath {\n constructor(CanvasKit: CanvasKit, ref: Path) {\n super(CanvasKit, ref, \"Path\");\n }\n\n addArc(\n oval: SkRect,\n startAngleInDegrees: number,\n sweepAngleInDegrees: number\n ) {\n this.ref.addArc(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n startAngleInDegrees,\n sweepAngleInDegrees\n );\n return this;\n }\n\n addOval(oval: SkRect, isCCW?: boolean, startIndex?: number) {\n this.ref.addOval(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n isCCW,\n startIndex\n );\n return this;\n }\n\n countPoints() {\n return this.ref.countPoints();\n }\n\n addPoly(points: SkPoint[], close: boolean) {\n this.ref.addPoly(\n points.map((p) => Array.from(JsiSkPoint.fromValue(p))).flat(),\n close\n );\n return this;\n }\n\n moveTo(x: number, y: number) {\n this.ref.moveTo(x, y);\n return this;\n }\n\n lineTo(x: number, y: number) {\n this.ref.lineTo(x, y);\n return this;\n }\n\n makeAsWinding() {\n const result = this.ref.makeAsWinding();\n return result === null ? result : this;\n }\n\n offset(dx: number, dy: number) {\n this.ref.offset(dx, dy);\n return this;\n }\n\n rArcTo(\n rx: number,\n ry: number,\n xAxisRotateInDegrees: number,\n useSmallArc: boolean,\n isCCW: boolean,\n dx: number,\n dy: number\n ) {\n this.ref.rArcTo(rx, ry, xAxisRotateInDegrees, useSmallArc, isCCW, dx, dy);\n return this;\n }\n\n rConicTo(dx1: number, dy1: number, dx2: number, dy2: number, w: number) {\n this.ref.rConicTo(dx1, dy1, dx2, dy2, w);\n return this;\n }\n\n rCubicTo(\n cpx1: number,\n cpy1: number,\n cpx2: number,\n cpy2: number,\n x: number,\n y: number\n ) {\n this.ref.rCubicTo(cpx1, cpy1, cpx2, cpy2, x, y);\n return this;\n }\n\n rMoveTo(x: number, y: number) {\n this.ref.rMoveTo(x, y);\n return this;\n }\n\n rLineTo(x: number, y: number) {\n this.ref.rLineTo(x, y);\n return this;\n }\n\n rQuadTo(x1: number, y1: number, x2: number, y2: number) {\n this.ref.rQuadTo(x1, y1, x2, y2);\n return this;\n }\n\n setFillType(fill: FillType) {\n this.ref.setFillType(ckEnum(fill));\n }\n\n setIsVolatile(volatile: boolean) {\n this.ref.setIsVolatile(volatile);\n }\n\n stroke(opts?: StrokeOpts) {\n const result = this.ref.stroke(\n opts === undefined\n ? undefined\n : {\n width: opts.width,\n // eslint-disable-next-line camelcase\n miter_limit: opts.width,\n precision: opts.width,\n join: optEnum(opts.join),\n cap: optEnum(opts.cap),\n }\n );\n return result === null ? result : this;\n }\n\n close() {\n this.ref.close();\n }\n\n reset() {\n this.ref.reset();\n }\n\n rewind() {\n this.ref.rewind();\n }\n\n computeTightBounds(): SkRect {\n return new JsiSkRect(this.CanvasKit, this.ref.computeTightBounds());\n }\n\n arcToOval(\n oval: SkRect,\n startAngleInDegrees: number,\n sweepAngleInDegrees: number,\n forceMoveTo: boolean\n ) {\n this.ref.arcToOval(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n startAngleInDegrees,\n sweepAngleInDegrees,\n forceMoveTo\n );\n return this;\n }\n\n arcToRotated(\n rx: number,\n ry: number,\n xAxisRotateInDegrees: number,\n useSmallArc: boolean,\n isCCW: boolean,\n x: number,\n y: number\n ) {\n this.ref.arcToRotated(\n rx,\n ry,\n xAxisRotateInDegrees,\n useSmallArc,\n isCCW,\n x,\n y\n );\n return this;\n }\n\n arcToTangent(x1: number, y1: number, x2: number, y2: number, radius: number) {\n this.ref.arcToTangent(x1, y1, x2, y2, radius);\n return this;\n }\n\n conicTo(x1: number, y1: number, x2: number, y2: number, w: number) {\n this.ref.conicTo(x1, y1, x2, y2, w);\n return this;\n }\n\n contains(x: number, y: number) {\n return this.ref.contains(x, y);\n }\n\n copy() {\n return new JsiSkPath(this.CanvasKit, this.ref.copy());\n }\n\n cubicTo(\n cpx1: number,\n cpy1: number,\n cpx2: number,\n cpy2: number,\n x: number,\n y: number\n ) {\n this.ref.cubicTo(cpx1, cpy1, cpx2, cpy2, x, y);\n return this;\n }\n\n dash(on: number, off: number, phase: number) {\n return this.ref.dash(on, off, phase);\n }\n\n equals(other: SkPath) {\n return this.ref.equals(JsiSkPath.fromValue(other));\n }\n\n getBounds() {\n return new JsiSkRect(this.CanvasKit, this.ref.getBounds());\n }\n\n getFillType() {\n return this.ref.getFillType().value;\n }\n\n quadTo(x1: number, y1: number, x2: number, y2: number) {\n this.ref.quadTo(x1, y1, x2, y2);\n }\n\n addRect(rect: SkRect, isCCW?: boolean) {\n this.ref.addRect(JsiSkRect.fromValue(this.CanvasKit, rect), isCCW);\n }\n\n addRRect(rrect: SkRRect, isCCW?: boolean) {\n this.ref.addRRect(JsiSkRRect.fromValue(this.CanvasKit, rrect), isCCW);\n return this;\n }\n\n getPoint(index: number) {\n return new JsiSkPoint(this.CanvasKit, this.ref.getPoint(index));\n }\n\n isEmpty() {\n return this.ref.isEmpty();\n }\n\n isVolatile() {\n return this.ref.isVolatile();\n }\n\n addCircle(x: number, y: number, r: number) {\n this.ref.addCircle(x, y, r);\n return this;\n }\n\n getLastPt() {\n return new JsiSkPoint(\n this.CanvasKit,\n this.ref.getPoint(this.ref.countPoints() - 1)\n );\n }\n\n op(path: SkPath, op: PathOp) {\n return this.ref.op(JsiSkPath.fromValue(path), ckEnum(op));\n }\n\n simplify() {\n return this.ref.simplify();\n }\n\n toSVGString() {\n return this.ref.toSVGString();\n }\n\n trim(startT: number, stopT: number, isComplement: boolean) {\n const result = this.ref.trim(startT, stopT, isComplement);\n return result === null ? result : this;\n }\n\n transform(m3: SkMatrix) {\n this.ref.transform(JsiSkMatrix.fromValue(m3));\n }\n\n interpolate(end: SkPath, t: number) {\n const path = this.CanvasKit.Path.MakeFromPathInterpolation(\n this.ref,\n JsiSkPath.fromValue(end),\n t\n );\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n isInterpolatable(path2: SkPath): boolean {\n return this.CanvasKit.Path.CanInterpolate(\n this.ref,\n JsiSkPath.fromValue(path2)\n );\n }\n\n toCmds() {\n const cmds = this.ref.toCmds();\n const result = cmds.reduce<PathCommand[]>((acc, cmd, i) => {\n if (i === 0) {\n acc.push([]);\n }\n const current = acc[acc.length - 1];\n if (current.length === 0) {\n current.push(cmd);\n const length = CommandCount[current[0] as PathVerb];\n if (current.length === length && i !== cmds.length - 1) {\n acc.push([]);\n }\n } else {\n const length = CommandCount[current[0] as PathVerb];\n if (current.length < length) {\n current.push(cmd);\n }\n if (current.length === length && i !== cmds.length - 1) {\n acc.push([]);\n }\n }\n return acc;\n }, []);\n return result;\n }\n}\n"]}
1
+ {"version":3,"names":["CommandCount","PathVerb","Move","Line","Quad","Conic","Cubic","Close","JsiSkPath","HostObject","constructor","CanvasKit","ref","addArc","oval","startAngleInDegrees","sweepAngleInDegrees","JsiSkRect","fromValue","addOval","isCCW","startIndex","countPoints","addPoly","points","close","map","p","Array","from","JsiSkPoint","flat","moveTo","x","y","lineTo","makeAsWinding","result","offset","dx","dy","rArcTo","rx","ry","xAxisRotateInDegrees","useSmallArc","rConicTo","dx1","dy1","dx2","dy2","w","rCubicTo","cpx1","cpy1","cpx2","cpy2","rMoveTo","rLineTo","rQuadTo","x1","y1","x2","y2","setFillType","fill","ckEnum","setIsVolatile","volatile","stroke","opts","undefined","width","miter_limit","precision","join","optEnum","cap","reset","rewind","computeTightBounds","arcToOval","forceMoveTo","arcToRotated","arcToTangent","radius","conicTo","contains","copy","cubicTo","dash","on","off","phase","equals","other","getBounds","getFillType","value","quadTo","addRect","rect","addRRect","rrect","JsiSkRRect","getPoint","index","isEmpty","isVolatile","addCircle","r","getLastPt","op","path","simplify","toSVGString","trim","startT","stopT","isComplement","transform","m3","JsiSkMatrix","interpolate","end","t","Path","MakeFromPathInterpolation","isInterpolatable","path2","CanInterpolate","toCmds","cmds","reduce","acc","cmd","i","push","current","length"],"sources":["JsiSkPath.ts"],"sourcesContent":["import type { CanvasKit, Path } from \"canvaskit-wasm\";\n\nimport { PathVerb } from \"../types\";\nimport type {\n FillType,\n PathCommand,\n PathOp,\n SkMatrix,\n SkPath,\n SkPoint,\n SkRect,\n SkRRect,\n StrokeOpts,\n} from \"../types\";\n\nimport { ckEnum, HostObject, optEnum } from \"./Host\";\nimport { JsiSkPoint } from \"./JsiSkPoint\";\nimport { JsiSkRect } from \"./JsiSkRect\";\nimport { JsiSkRRect } from \"./JsiSkRRect\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\n\nconst CommandCount = {\n [PathVerb.Move]: 3,\n [PathVerb.Line]: 3,\n [PathVerb.Quad]: 5,\n [PathVerb.Conic]: 6,\n [PathVerb.Cubic]: 7,\n [PathVerb.Close]: 1,\n};\n\nexport class JsiSkPath extends HostObject<Path, \"Path\"> implements SkPath {\n constructor(CanvasKit: CanvasKit, ref: Path) {\n super(CanvasKit, ref, \"Path\");\n }\n\n addArc(\n oval: SkRect,\n startAngleInDegrees: number,\n sweepAngleInDegrees: number\n ) {\n this.ref.addArc(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n startAngleInDegrees,\n sweepAngleInDegrees\n );\n return this;\n }\n\n addOval(oval: SkRect, isCCW?: boolean, startIndex?: number) {\n this.ref.addOval(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n isCCW,\n startIndex\n );\n return this;\n }\n\n countPoints() {\n return this.ref.countPoints();\n }\n\n addPoly(points: SkPoint[], close: boolean) {\n this.ref.addPoly(\n points.map((p) => Array.from(JsiSkPoint.fromValue(p))).flat(),\n close\n );\n return this;\n }\n\n moveTo(x: number, y: number) {\n this.ref.moveTo(x, y);\n return this;\n }\n\n lineTo(x: number, y: number) {\n this.ref.lineTo(x, y);\n return this;\n }\n\n makeAsWinding() {\n const result = this.ref.makeAsWinding();\n return result === null ? result : this;\n }\n\n offset(dx: number, dy: number) {\n this.ref.offset(dx, dy);\n return this;\n }\n\n rArcTo(\n rx: number,\n ry: number,\n xAxisRotateInDegrees: number,\n useSmallArc: boolean,\n isCCW: boolean,\n dx: number,\n dy: number\n ) {\n this.ref.rArcTo(rx, ry, xAxisRotateInDegrees, useSmallArc, isCCW, dx, dy);\n return this;\n }\n\n rConicTo(dx1: number, dy1: number, dx2: number, dy2: number, w: number) {\n this.ref.rConicTo(dx1, dy1, dx2, dy2, w);\n return this;\n }\n\n rCubicTo(\n cpx1: number,\n cpy1: number,\n cpx2: number,\n cpy2: number,\n x: number,\n y: number\n ) {\n this.ref.rCubicTo(cpx1, cpy1, cpx2, cpy2, x, y);\n return this;\n }\n\n rMoveTo(x: number, y: number) {\n this.ref.rMoveTo(x, y);\n return this;\n }\n\n rLineTo(x: number, y: number) {\n this.ref.rLineTo(x, y);\n return this;\n }\n\n rQuadTo(x1: number, y1: number, x2: number, y2: number) {\n this.ref.rQuadTo(x1, y1, x2, y2);\n return this;\n }\n\n setFillType(fill: FillType) {\n this.ref.setFillType(ckEnum(fill));\n }\n\n setIsVolatile(volatile: boolean) {\n this.ref.setIsVolatile(volatile);\n }\n\n stroke(opts?: StrokeOpts) {\n const result = this.ref.stroke(\n opts === undefined\n ? undefined\n : {\n width: opts.width,\n // eslint-disable-next-line camelcase\n miter_limit: opts.width,\n precision: opts.width,\n join: optEnum(opts.join),\n cap: optEnum(opts.cap),\n }\n );\n return result === null ? result : this;\n }\n\n close() {\n this.ref.close();\n }\n\n reset() {\n this.ref.reset();\n }\n\n rewind() {\n this.ref.rewind();\n }\n\n computeTightBounds(): SkRect {\n return new JsiSkRect(this.CanvasKit, this.ref.computeTightBounds());\n }\n\n arcToOval(\n oval: SkRect,\n startAngleInDegrees: number,\n sweepAngleInDegrees: number,\n forceMoveTo: boolean\n ) {\n this.ref.arcToOval(\n JsiSkRect.fromValue(this.CanvasKit, oval),\n startAngleInDegrees,\n sweepAngleInDegrees,\n forceMoveTo\n );\n return this;\n }\n\n arcToRotated(\n rx: number,\n ry: number,\n xAxisRotateInDegrees: number,\n useSmallArc: boolean,\n isCCW: boolean,\n x: number,\n y: number\n ) {\n this.ref.arcToRotated(\n rx,\n ry,\n xAxisRotateInDegrees,\n useSmallArc,\n isCCW,\n x,\n y\n );\n return this;\n }\n\n arcToTangent(x1: number, y1: number, x2: number, y2: number, radius: number) {\n this.ref.arcToTangent(x1, y1, x2, y2, radius);\n return this;\n }\n\n conicTo(x1: number, y1: number, x2: number, y2: number, w: number) {\n this.ref.conicTo(x1, y1, x2, y2, w);\n return this;\n }\n\n contains(x: number, y: number) {\n return this.ref.contains(x, y);\n }\n\n copy() {\n return new JsiSkPath(this.CanvasKit, this.ref.copy());\n }\n\n cubicTo(\n cpx1: number,\n cpy1: number,\n cpx2: number,\n cpy2: number,\n x: number,\n y: number\n ) {\n this.ref.cubicTo(cpx1, cpy1, cpx2, cpy2, x, y);\n return this;\n }\n\n dash(on: number, off: number, phase: number) {\n return this.ref.dash(on, off, phase);\n }\n\n equals(other: SkPath) {\n return this.ref.equals(JsiSkPath.fromValue(other));\n }\n\n getBounds() {\n return new JsiSkRect(this.CanvasKit, this.ref.getBounds());\n }\n\n getFillType() {\n return this.ref.getFillType().value;\n }\n\n quadTo(x1: number, y1: number, x2: number, y2: number) {\n this.ref.quadTo(x1, y1, x2, y2);\n }\n\n addRect(rect: SkRect, isCCW?: boolean) {\n this.ref.addRect(JsiSkRect.fromValue(this.CanvasKit, rect), isCCW);\n }\n\n addRRect(rrect: SkRRect, isCCW?: boolean) {\n this.ref.addRRect(JsiSkRRect.fromValue(this.CanvasKit, rrect), isCCW);\n return this;\n }\n\n getPoint(index: number) {\n return new JsiSkPoint(this.CanvasKit, this.ref.getPoint(index));\n }\n\n isEmpty() {\n return this.ref.isEmpty();\n }\n\n isVolatile() {\n return this.ref.isVolatile();\n }\n\n addCircle(x: number, y: number, r: number) {\n this.ref.addCircle(x, y, r);\n return this;\n }\n\n getLastPt() {\n return new JsiSkPoint(\n this.CanvasKit,\n this.ref.getPoint(this.ref.countPoints() - 1)\n );\n }\n\n op(path: SkPath, op: PathOp) {\n return this.ref.op(JsiSkPath.fromValue(path), ckEnum(op));\n }\n\n simplify() {\n return this.ref.simplify();\n }\n\n toSVGString() {\n return this.ref.toSVGString();\n }\n\n trim(startT: number, stopT: number, isComplement: boolean) {\n const result = this.ref.trim(startT, stopT, isComplement);\n return result === null ? result : this;\n }\n\n transform(m3: SkMatrix) {\n this.ref.transform(JsiSkMatrix.fromValue(m3));\n }\n\n interpolate(end: SkPath, t: number) {\n const path = this.CanvasKit.Path.MakeFromPathInterpolation(\n this.ref,\n JsiSkPath.fromValue(end),\n t\n );\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n isInterpolatable(path2: SkPath): boolean {\n return this.CanvasKit.Path.CanInterpolate(\n this.ref,\n JsiSkPath.fromValue(path2)\n );\n }\n\n toCmds() {\n const cmds = this.ref.toCmds();\n const result = cmds.reduce<PathCommand[]>((acc, cmd, i) => {\n if (i === 0) {\n acc.push([]);\n }\n const current = acc[acc.length - 1];\n if (current.length === 0) {\n current.push(cmd);\n const length = CommandCount[current[0] as PathVerb];\n if (current.length === length && i !== cmds.length - 1) {\n acc.push([]);\n }\n } else {\n const length = CommandCount[current[0] as PathVerb];\n if (current.length < length) {\n current.push(cmd);\n }\n if (current.length === length && i !== cmds.length - 1) {\n acc.push([]);\n }\n }\n return acc;\n }, []);\n return result;\n }\n}\n"],"mappings":";;;;;;;AAEA;;AAaA;;AACA;;AACA;;AACA;;AACA;;AAEA,MAAMA,YAAY,GAAG;EACnB,CAACC,eAAA,CAASC,IAAV,GAAiB,CADE;EAEnB,CAACD,eAAA,CAASE,IAAV,GAAiB,CAFE;EAGnB,CAACF,eAAA,CAASG,IAAV,GAAiB,CAHE;EAInB,CAACH,eAAA,CAASI,KAAV,GAAkB,CAJC;EAKnB,CAACJ,eAAA,CAASK,KAAV,GAAkB,CALC;EAMnB,CAACL,eAAA,CAASM,KAAV,GAAkB;AANC,CAArB;;AASO,MAAMC,SAAN,SAAwBC,gBAAxB,CAAmE;EACxEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAkC;IAC3C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,MAAtB;EACD;;EAEDC,MAAM,CACJC,IADI,EAEJC,mBAFI,EAGJC,mBAHI,EAIJ;IACA,KAAKJ,GAAL,CAASC,MAAT,CACEI,oBAAA,CAAUC,SAAV,CAAoB,KAAKP,SAAzB,EAAoCG,IAApC,CADF,EAEEC,mBAFF,EAGEC,mBAHF;IAKA,OAAO,IAAP;EACD;;EAEDG,OAAO,CAACL,IAAD,EAAeM,KAAf,EAAgCC,UAAhC,EAAqD;IAC1D,KAAKT,GAAL,CAASO,OAAT,CACEF,oBAAA,CAAUC,SAAV,CAAoB,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],"names":["JsiSkPathEffect","HostObject","constructor","CanvasKit","ref"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,eAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAwC;AACjD,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,YAAtB;AACD;;AAHH","sourcesContent":["import type { CanvasKit, PathEffect } from \"canvaskit-wasm\";\n\nimport type { SkPathEffect } from \"../types/PathEffect\";\n\nimport { HostObject } from \"./Host\";\n\nexport class JsiSkPathEffect\n extends HostObject<PathEffect, \"PathEffect\">\n implements SkPathEffect\n{\n constructor(CanvasKit: CanvasKit, ref: PathEffect) {\n super(CanvasKit, ref, \"PathEffect\");\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkPathEffect","HostObject","constructor","CanvasKit","ref"],"sources":["JsiSkPathEffect.ts"],"sourcesContent":["import type { CanvasKit, PathEffect } from \"canvaskit-wasm\";\n\nimport type { SkPathEffect } from \"../types/PathEffect\";\n\nimport { HostObject } from \"./Host\";\n\nexport class JsiSkPathEffect\n extends HostObject<PathEffect, \"PathEffect\">\n implements SkPathEffect\n{\n constructor(CanvasKit: CanvasKit, ref: PathEffect) {\n super(CanvasKit, ref, \"PathEffect\");\n }\n}\n"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,eAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAwC;IACjD,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,YAAtB;EACD;;AAHH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkPathEffectFactory.ts"],"names":["JsiSkPathEffectFactory","Host","constructor","CanvasKit","MakeCorner","radius","pe","PathEffect","JsiSkPathEffect","MakeDash","intervals","phase","MakeDiscrete","segLength","dev","seedAssist","MakeCompose","_outer","_inner","NotImplementedOnRNWeb","MakeSum","MakeLine2D","width","matrix","JsiSkMatrix","fromValue","MakePath1D","path","advance","style","JsiSk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,CACTC,KADS,EAETE,yBAAYC,SAAZ,CAAsBF,MAAtB,CAFS,CAAX;;AAIA,QAAIjB,EAAE,KAAK,IAAX,EAAiB;AACf,aAAO,IAAP;AACD;;AACD,WAAO,IAAIE,gCAAJ,CAAoB,KAAKL,SAAzB,EAAoCG,EAApC,CAAP;AACD;;AAEDoB,EAAAA,UAAU,CACRC,IADQ,EAERC,OAFQ,EAGRjB,KAHQ,EAIRkB,KAJQ,EAKR;AACA,UAAMvB,EAAE,GAAG,KAAKH,SAAL,CAAeI,UAAf,CAA0BmB,UAA1B,CACTI,qBAAUL,SAAV,CAAoBE,IAApB,CADS,EAETC,OAFS,EAGTjB,KAHS,EAIT,kBAAOkB,KAAP,CAJS,CAAX;;AAMA,QAAIvB,EAAE,KAAK,IAAX,EAAiB;AACf,aAAO,IAAP;AACD;;AACD,WAAO,IAAIE,gCAAJ,CAAoB,KAAKL,SAAzB,EAAoCG,EAApC,CAAP;AACD;;AAEDyB,EAAAA,UAAU,CAACR,MAAD,EAAmBI,IAAnB,EAAiC;AACzC,UAAMrB,EAAE,GAAG,KAAKH,SAAL,CAAeI,UAAf,CAA0BwB,UAA1B,CACTP,yBAAYC,SAAZ,CAAsBF,MAAtB,CADS,EAETO,qBAAUL,SAAV,CAAoBE,IAApB,CAFS,CAAX;;AAIA,QAAIrB,EAAE,KAAK,IAAX,EAAiB;AACf,aAAO,IAAP;AACD;;AACD,WAAO,IAAIE,gCAAJ,CAAoB,KAAKL,SAAzB,EAAoCG,EAApC,CAAP;AACD;;AAzE2E","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type {\n Path1DEffectStyle,\n PathEffectFactory,\n SkMatrix,\n SkPath,\n SkPathEffect,\n} from \"../types\";\n\nimport { ckEnum, Host, NotImplementedOnRNWeb } from \"./Host\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkPath } from \"./JsiSkPath\";\nimport { JsiSkPathEffect } from \"./JsiSkPathEffect\";\n\nexport class JsiSkPathEffectFactory extends Host implements PathEffectFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeCorner(radius: number) {\n const pe = this.CanvasKit.PathEffect.MakeCorner(radius);\n if (pe === null) {\n return null;\n }\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakeDash(intervals: number[], phase?: number) {\n const pe = this.CanvasKit.PathEffect.MakeDash(intervals, phase);\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakeDiscrete(segLength: number, dev: number, seedAssist: number) {\n const pe = this.CanvasKit.PathEffect.MakeDiscrete(\n segLength,\n dev,\n seedAssist\n );\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakeCompose(_outer: SkPathEffect, _inner: SkPathEffect): SkPathEffect {\n throw new NotImplementedOnRNWeb();\n }\n\n MakeSum(_outer: SkPathEffect, _inner: SkPathEffect): SkPathEffect {\n throw new NotImplementedOnRNWeb();\n }\n\n MakeLine2D(width: number, matrix: SkMatrix) {\n const pe = this.CanvasKit.PathEffect.MakeLine2D(\n width,\n JsiSkMatrix.fromValue(matrix)\n );\n if (pe === null) {\n return null;\n }\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakePath1D(\n path: SkPath,\n advance: number,\n phase: number,\n style: Path1DEffectStyle\n ) {\n const pe = this.CanvasKit.PathEffect.MakePath1D(\n JsiSkPath.fromValue(path),\n advance,\n phase,\n ckEnum(style)\n );\n if (pe === null) {\n return null;\n }\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakePath2D(matrix: SkMatrix, path: SkPath) {\n const pe = this.CanvasKit.PathEffect.MakePath2D(\n JsiSkMatrix.fromValue(matrix),\n JsiSkPath.fromValue(path)\n );\n if (pe === null) {\n return null;\n }\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkPathEffectFactory","Host","constructor","CanvasKit","MakeCorner","radius","pe","PathEffect","JsiSkPathEffect","MakeDash","intervals","phase","MakeDiscrete","segLength","dev","seedAssist","MakeCompose","_outer","_inner","NotImplementedOnRNWeb","MakeSum","MakeLine2D","width","matrix","JsiSkMatrix","fromValue","MakePath1D","path","advance","style","JsiSkPath","ckEnum","MakePath2D"],"sources":["JsiSkPathEffectFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type {\n Path1DEffectStyle,\n PathEffectFactory,\n SkMatrix,\n SkPath,\n SkPathEffect,\n} from \"../types\";\n\nimport { ckEnum, Host, NotImplementedOnRNWeb } from \"./Host\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkPath } from \"./JsiSkPath\";\nimport { JsiSkPathEffect } from \"./JsiSkPathEffect\";\n\nexport class JsiSkPathEffectFactory extends Host implements PathEffectFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeCorner(radius: number) {\n const pe = this.CanvasKit.PathEffect.MakeCorner(radius);\n if (pe === null) {\n return null;\n }\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakeDash(intervals: number[], phase?: number) {\n const pe = this.CanvasKit.PathEffect.MakeDash(intervals, phase);\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakeDiscrete(segLength: number, dev: number, seedAssist: number) {\n const pe = this.CanvasKit.PathEffect.MakeDiscrete(\n segLength,\n dev,\n seedAssist\n );\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakeCompose(_outer: SkPathEffect, _inner: SkPathEffect): SkPathEffect {\n throw new NotImplementedOnRNWeb();\n }\n\n MakeSum(_outer: SkPathEffect, _inner: SkPathEffect): SkPathEffect {\n throw new NotImplementedOnRNWeb();\n }\n\n MakeLine2D(width: number, matrix: SkMatrix) {\n const pe = this.CanvasKit.PathEffect.MakeLine2D(\n width,\n JsiSkMatrix.fromValue(matrix)\n );\n if (pe === null) {\n return null;\n }\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakePath1D(\n path: SkPath,\n advance: number,\n phase: number,\n style: Path1DEffectStyle\n ) {\n const pe = this.CanvasKit.PathEffect.MakePath1D(\n JsiSkPath.fromValue(path),\n advance,\n phase,\n ckEnum(style)\n );\n if (pe === null) {\n return null;\n }\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n\n MakePath2D(matrix: SkMatrix, path: SkPath) {\n const pe = this.CanvasKit.PathEffect.MakePath2D(\n JsiSkMatrix.fromValue(matrix),\n JsiSkPath.fromValue(path)\n );\n if (pe === null) {\n return null;\n }\n return new JsiSkPathEffect(this.CanvasKit, pe);\n }\n}\n"],"mappings":";;;;;;;AAUA;;AACA;;AACA;;AACA;;AAEO,MAAMA,sBAAN,SAAqCC,UAArC,CAAuE;EAC5EC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,UAAU,CAACC,MAAD,EAAiB;IACzB,MAAMC,EAAE,GAAG,KAAKH,SAAL,CAAeI,UAAf,CAA0BH,UAA1B,CAAqCC,MAArC,CAAX;;IACA,IAAIC,EAAE,KAAK,IAAX,EAAiB;MACf,OAAO,IAAP;IACD;;IACD,OAAO,IAAIE,gCAAJ,CAAoB,KAAKL,SAAzB,EAAoCG,EAApC,CAAP;EACD;;EAEDG,QAAQ,CAACC,SAAD,EAAsBC,KAAtB,EAAsC;IAC5C,MAAML,EAAE,GAAG,KAAKH,SAAL,CAAeI,UAAf,CAA0BE,QAA1B,CAAmCC,SAAnC,EAA8CC,KAA9C,CAAX;IACA,OAAO,IAAIH,gCAAJ,CAAoB,KAAKL,SAAzB,EAAoCG,EAApC,CAAP;EACD;;EAEDM,YAAY,CAACC,SAAD,EAAoBC,GAApB,EAAiCC,UAAjC,EAAqD;IAC/D,MAAMT,EAAE,GAAG,KAAKH,SAAL,CAAeI,UAAf,CAA0BK,YAA1B,CACTC,SADS,EAETC,GAFS,EAGTC,UAHS,CAAX;IAKA,OAAO,IAAIP,gCAAJ,CAAoB,KAAKL,SAAzB,EAAoCG,E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B,KAAKL,SAAzB,EAAoCG,EAApC,CAAP;EACD;;AAzE2E"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkPathFactory.ts"],"names":["JsiSkPathFactory","Host","constructor","CanvasKit","Make","JsiSkPath","Path","MakeFromSVGString","str","path","MakeFromOp","one","two","op","fromValue","MakeFromCmds","cmds","flat","MakeFromText","_text","_x","_y","_font","NotImplementedOnRNWeb"],"mappings":";;;;;;;AAKA;;AACA;;AAEO,MAAMA,gBAAN,SAA+BC,UAA/B,CAA2D;AAChEC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,IAAI,GAAG;AACL,WAAO,IAAIC,oBAAJ,CAAc,KAAKF,SAAnB,EAA8B,IAAI,KAAKA,SAAL,CAAeG,IAAnB,EAA9B,CAAP;AACD;;AAEDC,EAAAA,iBAAiB,CAACC,GAAD,EAAc;AAC7B,UAAMC,IAAI,GAAG,KAAKN,SAAL,CAAeG,IAAf,CAAoBC,iBAApB,CAAsCC,GAAtC,CAAb;;AACA,QAAIC,IAAI,KAAK,IAAb,EAAmB;AACjB,aAAO,IAAP;AACD;;AACD,WAAO,IAAIJ,oBAAJ,CAAc,KAAKF,SAAnB,EAA8BM,IAA9B,CAAP;AACD;;AAEDC,EAAAA,UAAU,CAACC,GAAD,EAAcC,GAAd,EAA2BC,EAA3B,EAAuC;AAC/C,UAAMJ,IAAI,GAAG,KAAKN,SAAL,CAAeG,IAAf,CAAoBI,UAApB,CACXL,qBAAUS,SAAV,CAAoBH,GAApB,CADW,EAEXN,qBAAUS,SAAV,CAAoBF,GAApB,CAFW,EAGX,kBAAOC,EAAP,CAHW,CAAb;;AAKA,QAAIJ,IAAI,KAAK,IAAb,EAAmB;AACjB,aAAO,IAAP;AACD;;AACD,WAAO,IAAIJ,oBAAJ,CAAc,KAAKF,SAAnB,EAA8BM,IAA9B,CAAP;AACD;;AAEDM,EAAAA,YAAY,CAACC,IAAD,EAAsB;AAChC,UAAMP,IAAI,GAAG,KAAKN,SAAL,CAAeG,IAAf,CAAoBS,YAApB,CAAiCC,IAAI,CAACC,IAAL,EAAjC,CAAb;;AACA,QAAIR,IAAI,KAAK,IAAb,EAAmB;AACjB,aAAO,IAAP;AACD;;AACD,WAAO,IAAIJ,oBAAJ,CAAc,KAAKF,SAAnB,EAA8BM,IAA9B,CAAP;AACD;;AAEDS,EAAAA,YAAY,CACVC,KADU,EAEVC,EAFU,EAGVC,EAHU,EAIVC,KAJU,EAKK;AACf,UAAM,IAAIC,2BAAJ,EAAN;AACD;;AA5C+D","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { PathCommand, PathOp, SkFont, SkPath } from \"../types\";\nimport type { PathFactory } from \"../types/Path/PathFactory\";\n\nimport { Host, ckEnum, NotImplementedOnRNWeb } from \"./Host\";\nimport { JsiSkPath } from \"./JsiSkPath\";\n\nexport class JsiSkPathFactory extends Host implements PathFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n Make() {\n return new JsiSkPath(this.CanvasKit, new this.CanvasKit.Path());\n }\n\n MakeFromSVGString(str: string) {\n const path = this.CanvasKit.Path.MakeFromSVGString(str);\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromOp(one: SkPath, two: SkPath, op: PathOp) {\n const path = this.CanvasKit.Path.MakeFromOp(\n JsiSkPath.fromValue(one),\n JsiSkPath.fromValue(two),\n ckEnum(op)\n );\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromCmds(cmds: PathCommand[]) {\n const path = this.CanvasKit.Path.MakeFromCmds(cmds.flat());\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromText(\n _text: string,\n _x: number,\n _y: number,\n _font: SkFont\n ): SkPath | null {\n throw new NotImplementedOnRNWeb();\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkPathFactory","Host","constructor","CanvasKit","Make","JsiSkPath","Path","MakeFromSVGString","str","path","MakeFromOp","one","two","op","fromValue","ckEnum","MakeFromCmds","cmds","flat","MakeFromText","_text","_x","_y","_font","NotImplementedOnRNWeb"],"sources":["JsiSkPathFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { PathCommand, PathOp, SkFont, SkPath } from \"../types\";\nimport type { PathFactory } from \"../types/Path/PathFactory\";\n\nimport { Host, ckEnum, NotImplementedOnRNWeb } from \"./Host\";\nimport { JsiSkPath } from \"./JsiSkPath\";\n\nexport class JsiSkPathFactory extends Host implements PathFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n Make() {\n return new JsiSkPath(this.CanvasKit, new this.CanvasKit.Path());\n }\n\n MakeFromSVGString(str: string) {\n const path = this.CanvasKit.Path.MakeFromSVGString(str);\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromOp(one: SkPath, two: SkPath, op: PathOp) {\n const path = this.CanvasKit.Path.MakeFromOp(\n JsiSkPath.fromValue(one),\n JsiSkPath.fromValue(two),\n ckEnum(op)\n );\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromCmds(cmds: PathCommand[]) {\n const path = this.CanvasKit.Path.MakeFromCmds(cmds.flat());\n if (path === null) {\n return null;\n }\n return new JsiSkPath(this.CanvasKit, path);\n }\n\n MakeFromText(\n _text: string,\n _x: number,\n _y: number,\n _font: SkFont\n ): SkPath | null {\n throw new NotImplementedOnRNWeb();\n }\n}\n"],"mappings":";;;;;;;AAKA;;AACA;;AAEO,MAAMA,gBAAN,SAA+BC,UAA/B,CAA2D;EAChEC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,IAAI,GAAG;IACL,OAAO,IAAIC,oBAAJ,CAAc,KAAKF,SAAnB,EAA8B,IAAI,KAAKA,SAAL,CAAeG,IAAnB,EAA9B,CAAP;EACD;;EAEDC,iBAAiB,CAACC,GAAD,EAAc;IAC7B,MAAMC,IAAI,GAAG,KAAKN,SAAL,CAAeG,IAAf,CAAoBC,iBAApB,CAAsCC,GAAtC,CAAb;;IACA,IAAIC,IAAI,KAAK,IAAb,EAAmB;MACjB,OAAO,IAAP;IACD;;IACD,OAAO,IAAIJ,oBAAJ,CAAc,KAAKF,SAAnB,EAA8BM,IAA9B,CAAP;EACD;;EAEDC,UAAU,CAACC,GAAD,EAAcC,GAAd,EAA2BC,EAA3B,EAAuC;IAC/C,MAAMJ,IAAI,GAAG,KAAKN,SAAL,CAAeG,IAAf,CAAoBI,UAApB,CACXL,oBAAA,CAAUS,SAAV,CAAoBH,GAApB,CADW,EAEXN,oBAAA,CAAUS,SAAV,CAAoBF,GAApB,CAFW,EAGX,IAAAG,YAAA,EAAOF,EAAP,CAHW,CAAb;;IAKA,IAAIJ,IAAI,KAAK,IAAb,EAAmB;MACjB,OAAO,IAAP;IACD;;IACD,OAAO,IAAIJ,oBAAJ,CAAc,KAAKF,SAAnB,EAA8BM,IAA9B,CAAP;EACD;;EAEDO,YAAY,CAACC,IAAD,EAAsB;IAChC,MAAMR,IAAI,GAAG,KAAKN,SAAL,CAAeG,IAAf,CAAoBU,YAApB,CAAiCC,IAAI,CAACC,IAAL,EAAjC,CAAb;;IACA,IAAIT,IAAI,KAAK,IAAb,EAAmB;MACjB,OAAO,IAAP;IACD;;IACD,OAAO,IAAIJ,oBAAJ,CAAc,KAAKF,SAAnB,EAA8BM,IAA9B,CAAP;EACD;;EAEDU,YAAY,CACVC,KADU,EAEVC,EAFU,EAGVC,EAHU,EAIVC,KAJU,EAKK;IACf,MAAM,IAAIC,2BAAJ,EAAN;EACD;;AA5C+D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkPicture.ts"],"names":["JsiSkPicture","HostObject","constructor","CanvasKit","ref","makeShader","tmx","tmy","mode","localMatrix","tileRect","JsiSkShader","JsiSkMatrix","fromValue","undefined","JsiSkRect","serialize"],"mappings":";;;;;;;AAWA;;AACA;;AACA;;AACA;;AAdA;AAgBO,MAAMA,YAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAqC;AAC9C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,SAAtB;AACD;;AAEDC,EAAAA,UAAU,CACRC,GADQ,EAERC,GAFQ,EAGRC,IAHQ,EAIRC,WAJQ,EAKRC,QALQ,EAMR;AACA,WAAO,IAAIC,wBAAJ,CACL,KAAKR,SADA,EAEL,KAAKC,GAAL,CAASC,UAAT,CACE,kBAAOC,GAAP,CADF,EAEE,kBAAOC,GAAP,CAFF,EAGE,kBAAOC,IAAP,CAHF,EAIEC,WAAW,GAAGG,yBAAYC,SAAZ,CAAsBJ,WAAtB,CAAH,GAAwCK,SAJrD,EAKEJ,QAAQ,GAAGK,qBAAUF,SAAV,CAAoB,KAAKV,SAAzB,EAAoCO,QAApC,CAAH,GAAmDI,SAL7D,CAFK,CAAP;AAUD;;AAEDE,EAAAA,SAAS,GAAG;AACV,WAAO,KAAKZ,GAAL,CAASY,SAAT,EAAP;AACD;;AA1BH","sourcesContent":["// TODO: suggest to rename SkPicture to Picture for consistency\nimport type { CanvasKit, SkPicture as Picture } from \"canvaskit-wasm\";\n\nimport type {\n FilterMode,\n SkRect,\n TileMode,\n SkPicture,\n SkMatrix,\n} from \"../types\";\n\nimport { HostObject, ckEnum } from \"./Host\";\nimport { JsiSkShader } from \"./JsiSkShader\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkPicture\n extends HostObject<Picture, \"Picture\">\n implements SkPicture\n{\n constructor(CanvasKit: CanvasKit, ref: Picture) {\n super(CanvasKit, ref, \"Picture\");\n }\n\n makeShader(\n tmx: TileMode,\n tmy: TileMode,\n mode: FilterMode,\n localMatrix?: SkMatrix,\n tileRect?: SkRect\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShader(\n ckEnum(tmx),\n ckEnum(tmy),\n ckEnum(mode),\n localMatrix ? JsiSkMatrix.fromValue(localMatrix) : undefined,\n tileRect ? JsiSkRect.fromValue(this.CanvasKit, tileRect) : undefined\n )\n );\n }\n\n serialize() {\n return this.ref.serialize();\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkPicture","HostObject","constructor","CanvasKit","ref","makeShader","tmx","tmy","mode","localMatrix","tileRect","JsiSkShader","ckEnum","JsiSkMatrix","fromValue","undefined","JsiSkRect","serialize"],"sources":["JsiSkPicture.ts"],"sourcesContent":["// TODO: suggest to rename SkPicture to Picture for consistency\nimport type { CanvasKit, SkPicture as Picture } from \"canvaskit-wasm\";\n\nimport type {\n FilterMode,\n SkRect,\n TileMode,\n SkPicture,\n SkMatrix,\n} from \"../types\";\n\nimport { HostObject, ckEnum } from \"./Host\";\nimport { JsiSkShader } from \"./JsiSkShader\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkPicture\n extends HostObject<Picture, \"Picture\">\n implements SkPicture\n{\n constructor(CanvasKit: CanvasKit, ref: Picture) {\n super(CanvasKit, ref, \"Picture\");\n }\n\n makeShader(\n tmx: TileMode,\n tmy: TileMode,\n mode: FilterMode,\n localMatrix?: SkMatrix,\n tileRect?: SkRect\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShader(\n ckEnum(tmx),\n ckEnum(tmy),\n ckEnum(mode),\n localMatrix ? JsiSkMatrix.fromValue(localMatrix) : undefined,\n tileRect ? JsiSkRect.fromValue(this.CanvasKit, tileRect) : undefined\n )\n );\n }\n\n serialize() {\n return this.ref.serialize();\n }\n}\n"],"mappings":";;;;;;;AAWA;;AACA;;AACA;;AACA;;AAdA;AAgBO,MAAMA,YAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAqC;IAC9C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,SAAtB;EACD;;EAEDC,UAAU,CACRC,GADQ,EAERC,GAFQ,EAGRC,IAHQ,EAIRC,WAJQ,EAKRC,QALQ,EAMR;IACA,OAAO,IAAIC,wBAAJ,CACL,KAAKR,SADA,EAEL,KAAKC,GAAL,CAASC,UAAT,CACE,IAAAO,YAAA,EAAON,GAAP,CADF,EAEE,IAAAM,YAAA,EAAOL,GAAP,CAFF,EAGE,IAAAK,YAAA,EAAOJ,IAAP,CAHF,EAIEC,WAAW,GAAGI,wBAAA,CAAYC,SAAZ,CAAsBL,WAAtB,CAAH,GAAwCM,SAJrD,EAKEL,QAAQ,GAAGM,oBAAA,CAAUF,SAAV,CAAoB,KAAKX,SAAzB,EAAoCO,QAApC,CAAH,GAAmDK,SAL7D,CAFK,CAAP;EAUD;;EAEDE,SAAS,GAAG;IACV,OAAO,KAAKb,GAAL,CAASa,SAAT,EAAP;EACD;;AA1BH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkPictureFactory.ts"],"names":["JsiSkPictureFactory","Host","constructor","CanvasKit","MakePicture","bytes","pic","JsiSkPicture"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,mBAAN,SAAkCC,UAAlC,CAAiE;AACtEC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,WAAW,CAACC,KAAD,EAAkC;AAC3C,UAAMC,GAAG,GAAG,KAAKH,SAAL,CAAeC,WAAf,CAA2BC,KAA3B,CAAZ;;AACA,QAAIC,GAAG,KAAK,IAAZ,EAAkB;AAChB,aAAO,IAAP;AACD;;AACD,WAAO,IAAIC,0BAAJ,CAAiB,KAAKJ,SAAtB,EAAiCG,GAAjC,CAAP;AACD;;AAXqE","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { PictureFactory } from \"../types\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\n\nexport class JsiSkPictureFactory extends Host implements PictureFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakePicture(bytes: Uint8Array | ArrayBuffer) {\n const pic = this.CanvasKit.MakePicture(bytes);\n if (pic === null) {\n return null;\n }\n return new JsiSkPicture(this.CanvasKit, pic);\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkPictureFactory","Host","constructor","CanvasKit","MakePicture","bytes","pic","JsiSkPicture"],"sources":["JsiSkPictureFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { PictureFactory } from \"../types\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\n\nexport class JsiSkPictureFactory extends Host implements PictureFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakePicture(bytes: Uint8Array | ArrayBuffer) {\n const pic = this.CanvasKit.MakePicture(bytes);\n if (pic === null) {\n return null;\n }\n return new JsiSkPicture(this.CanvasKit, pic);\n }\n}\n"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,mBAAN,SAAkCC,UAAlC,CAAiE;EACtEC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,WAAW,CAACC,KAAD,EAAkC;IAC3C,MAAMC,GAAG,GAAG,KAAKH,SAAL,CAAeC,WAAf,CAA2BC,KAA3B,CAAZ;;IACA,IAAIC,GAAG,KAAK,IAAZ,EAAkB;MAChB,OAAO,IAAP;IACD;;IACD,OAAO,IAAIC,0BAAJ,CAAiB,KAAKJ,SAAtB,EAAiCG,GAAjC,CAAP;EACD;;AAXqE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkPictureRecorder.ts"],"names":["JsiSkPictureRecorder","HostObject","constructor","CanvasKit","ref","beginRecording","bounds","JsiSkCanvas","JsiSkRect","fromValue","finishRecordingAsPicture","JsiSkPicture"],"mappings":";;;;;;;AAKA;;AACA;;AACA;;AACA;;AAEO,MAAMA,oBAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAA6C;AACtD,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,iBAAtB;AACD;;AAEDC,EAAAA,cAAc,CAACC,MAAD,EAAiB;AAC7B,WAAO,IAAIC,wBAAJ,CACL,KAAKJ,SADA,EAEL,KAAKC,GAAL,CAASC,cAAT,CAAwBG,qBAAUC,SAAV,CAAoB,KAAKN,SAAzB,EAAoCG,MAApC,CAAxB,CAFK,CAAP;AAID;;AAEDI,EAAAA,wBAAwB,GAAG;AACzB,WAAO,IAAIC,0BAAJ,CACL,KAAKR,SADA,EAEL,KAAKC,GAAL,CAASM,wBAAT,EAFK,CAAP;AAID;;AAjBH","sourcesContent":["import type { CanvasKit, PictureRecorder } from \"canvaskit-wasm\";\n\nimport type { SkRect } from \"../types\";\nimport type { SkPictureRecorder } from \"../types/Picture/PictureRecorder\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkCanvas } from \"./JsiSkCanvas\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkPictureRecorder\n extends HostObject<PictureRecorder, \"PictureRecorder\">\n implements SkPictureRecorder\n{\n constructor(CanvasKit: CanvasKit, ref: PictureRecorder) {\n super(CanvasKit, ref, \"PictureRecorder\");\n }\n\n beginRecording(bounds: SkRect) {\n return new JsiSkCanvas(\n this.CanvasKit,\n this.ref.beginRecording(JsiSkRect.fromValue(this.CanvasKit, bounds))\n );\n }\n\n finishRecordingAsPicture() {\n return new JsiSkPicture(\n this.CanvasKit,\n this.ref.finishRecordingAsPicture()\n );\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkPictureRecorder","HostObject","constructor","CanvasKit","ref","beginRecording","bounds","JsiSkCanvas","JsiSkRect","fromValue","finishRecordingAsPicture","JsiSkPicture"],"sources":["JsiSkPictureRecorder.ts"],"sourcesContent":["import type { CanvasKit, PictureRecorder } from \"canvaskit-wasm\";\n\nimport type { SkRect } from \"../types\";\nimport type { SkPictureRecorder } from \"../types/Picture/PictureRecorder\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkCanvas } from \"./JsiSkCanvas\";\nimport { JsiSkPicture } from \"./JsiSkPicture\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkPictureRecorder\n extends HostObject<PictureRecorder, \"PictureRecorder\">\n implements SkPictureRecorder\n{\n constructor(CanvasKit: CanvasKit, ref: PictureRecorder) {\n super(CanvasKit, ref, \"PictureRecorder\");\n }\n\n beginRecording(bounds: SkRect) {\n return new JsiSkCanvas(\n this.CanvasKit,\n this.ref.beginRecording(JsiSkRect.fromValue(this.CanvasKit, bounds))\n );\n }\n\n finishRecordingAsPicture() {\n return new JsiSkPicture(\n this.CanvasKit,\n this.ref.finishRecordingAsPicture()\n );\n }\n}\n"],"mappings":";;;;;;;AAKA;;AACA;;AACA;;AACA;;AAEO,MAAMA,oBAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAA6C;IACtD,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,iBAAtB;EACD;;EAEDC,cAAc,CAACC,MAAD,EAAiB;IAC7B,OAAO,IAAIC,wBAAJ,CACL,KAAKJ,SADA,EAEL,KAAKC,GAAL,CAASC,cAAT,CAAwBG,oBAAA,CAAUC,SAAV,CAAoB,KAAKN,SAAzB,EAAoCG,MAApC,CAAxB,CAFK,CAAP;EAID;;EAEDI,wBAAwB,GAAG;IACzB,OAAO,IAAIC,0BAAJ,CACL,KAAKR,SADA,EAEL,KAAKC,GAAL,CAASM,wBAAT,EAFK,CAAP;EAID;;AAjBH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkPoint.ts"],"names":["JsiSkPoint","BaseHostObject","fromValue","point","ref","Float32Array","x","y","constructor","CanvasKit"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,UAAN,SACGC,oBADH,CAGP;AACkB,SAATC,SAAS,CAACC,KAAD,EAAiB;AAC/B,QAAIA,KAAK,YAAYH,UAArB,EAAiC;AAC/B,aAAOG,KAAK,CAACC,GAAb;AACD;;AACD,WAAO,IAAIC,YAAJ,CAAiB,CAACF,KAAK,CAACG,CAAP,EAAUH,KAAK,CAACI,CAAhB,CAAjB,CAAP;AACD;;AAEDC,EAAAA,WAAW,CAACC,SAAD,EAAuBL,GAAvB,EAAmC;AAC5C,UAAMK,SAAN,EAAiBL,GAAjB,EAAsB,OAAtB;AACD;;AAEI,MAADE,CAAC,GAAG;AACN,WAAO,KAAKF,GAAL,CAAS,CAAT,CAAP;AACD;;AAEI,MAADG,CAAC,GAAG;AACN,WAAO,KAAKH,GAAL,CAAS,CAAT,CAAP;AACD;;AAlBH","sourcesContent":["import type { CanvasKit, Point } from \"canvaskit-wasm\";\n\nimport type { SkPoint } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport class JsiSkPoint\n extends BaseHostObject<Point, \"Point\">\n implements SkPoint\n{\n static fromValue(point: SkPoint) {\n if (point instanceof JsiSkPoint) {\n return point.ref;\n }\n return new Float32Array([point.x, point.y]);\n }\n\n constructor(CanvasKit: CanvasKit, ref: Point) {\n super(CanvasKit, ref, \"Point\");\n }\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkPoint","BaseHostObject","fromValue","point","ref","Float32Array","x","y","constructor","CanvasKit"],"sources":["JsiSkPoint.ts"],"sourcesContent":["import type { CanvasKit, Point } from \"canvaskit-wasm\";\n\nimport type { SkPoint } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport class JsiSkPoint\n extends BaseHostObject<Point, \"Point\">\n implements SkPoint\n{\n static fromValue(point: SkPoint) {\n if (point instanceof JsiSkPoint) {\n return point.ref;\n }\n return new Float32Array([point.x, point.y]);\n }\n\n constructor(CanvasKit: CanvasKit, ref: Point) {\n super(CanvasKit, ref, \"Point\");\n }\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n}\n"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,UAAN,SACGC,oBADH,CAGP;EACkB,OAATC,SAAS,CAACC,KAAD,EAAiB;IAC/B,IAAIA,KAAK,YAAYH,UAArB,EAAiC;MAC/B,OAAOG,KAAK,CAACC,GAAb;IACD;;IACD,OAAO,IAAIC,YAAJ,CAAiB,CAACF,KAAK,CAACG,CAAP,EAAUH,KAAK,CAACI,CAAhB,CAAjB,CAAP;EACD;;EAEDC,WAAW,CAACC,SAAD,EAAuBL,GAAvB,EAAmC;IAC5C,MAAMK,SAAN,EAAiBL,GAAjB,EAAsB,OAAtB;EACD;;EAEI,IAADE,CAAC,GAAG;IACN,OAAO,KAAKF,GAAL,CAAS,CAAT,CAAP;EACD;;EAEI,IAADG,CAAC,GAAG;IACN,OAAO,KAAKH,GAAL,CAAS,CAAT,CAAP;EACD;;AAlBH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkRRect.ts"],"names":["JsiSkRRect","BaseHostObject","fromValue","CanvasKit","rect","JsiSkRect","ref","RRectXY","rx","ry","constructor","Float32Array","of"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,UAAN,SACGC,oBADH,CAGP;AACkB,SAATC,SAAS,CAACC,SAAD,EAAuBC,IAAvB,EAAsC;AACpD,QAAIA,IAAI,YAAYC,oBAApB,EAA+B;AAC7B,aAAOD,IAAI,CAACE,GAAZ;AACD;;AACD,WAAOH,SAAS,CAACI,OAAV,CACLF,qBAAUH,SAAV,CAAoBC,SAApB,EAA+BC,IAAI,CAACA,IAApC,CADK,EAELA,IAAI,CAACI,EAFA,EAGLJ,IAAI,CAACK,EAHA,CAAP;AAKD;;AAEDC,EAAAA,WAAW,CAACP,SAAD,EAAuBG,GAAvB,EAAmC;AAC5C,UAAMH,SAAN,EAAiBG,GAAjB,EAAsB,OAAtB;AACD;;AAEK,MAAFE,EAAE,GAAG;AACP,WAAO,KAAKF,GAAL,CAAS,CAAT,CAAP;AACD;;AAEK,MAAFG,EAAE,GAAG;AACP,WAAO,KAAKH,GAAL,CAAS,CAAT,CAAP;AACD;;AAEO,MAAJF,IAAI,GAAG;AACT,WAAO,IAAIC,oBAAJ,CACL,KAAKF,SADA,EAELQ,YAAY,CAACC,EAAb,CAAgB,KAAKN,GAAL,CAAS,CAAT,CAAhB,EAA6B,KAAKA,GAAL,CAAS,CAAT,CAA7B,EAA0C,KAAKA,GAAL,CAAS,CAAT,CAA1C,EAAuD,KAAKA,GAAL,CAAS,CAAT,CAAvD,CAFK,CAAP;AAID;;AA7BH","sourcesContent":["import type { CanvasKit, RRect } from \"canvaskit-wasm\";\n\nimport type { SkRRect } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkRRect\n extends BaseHostObject<RRect, \"RRect\">\n implements SkRRect\n{\n static fromValue(CanvasKit: CanvasKit, rect: SkRRect) {\n if (rect instanceof JsiSkRect) {\n return rect.ref;\n }\n return CanvasKit.RRectXY(\n JsiSkRect.fromValue(CanvasKit, rect.rect),\n rect.rx,\n rect.ry\n );\n }\n\n constructor(CanvasKit: CanvasKit, ref: RRect) {\n super(CanvasKit, ref, \"RRect\");\n }\n\n get rx() {\n return this.ref[4];\n }\n\n get ry() {\n return this.ref[5];\n }\n\n get rect() {\n return new JsiSkRect(\n this.CanvasKit,\n Float32Array.of(this.ref[0], this.ref[1], this.ref[2], this.ref[3])\n );\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkRRect","BaseHostObject","fromValue","CanvasKit","rect","JsiSkRect","ref","RRectXY","rx","ry","constructor","Float32Array","of"],"sources":["JsiSkRRect.ts"],"sourcesContent":["import type { CanvasKit, RRect } from \"canvaskit-wasm\";\n\nimport type { SkRRect } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\nimport { JsiSkRect } from \"./JsiSkRect\";\n\nexport class JsiSkRRect\n extends BaseHostObject<RRect, \"RRect\">\n implements SkRRect\n{\n static fromValue(CanvasKit: CanvasKit, rect: SkRRect) {\n if (rect instanceof JsiSkRect) {\n return rect.ref;\n }\n return CanvasKit.RRectXY(\n JsiSkRect.fromValue(CanvasKit, rect.rect),\n rect.rx,\n rect.ry\n );\n }\n\n constructor(CanvasKit: CanvasKit, ref: RRect) {\n super(CanvasKit, ref, \"RRect\");\n }\n\n get rx() {\n return this.ref[4];\n }\n\n get ry() {\n return this.ref[5];\n }\n\n get rect() {\n return new JsiSkRect(\n this.CanvasKit,\n Float32Array.of(this.ref[0], this.ref[1], this.ref[2], this.ref[3])\n );\n }\n}\n"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,UAAN,SACGC,oBADH,CAGP;EACkB,OAATC,SAAS,CAACC,SAAD,EAAuBC,IAAvB,EAAsC;IACpD,IAAIA,IAAI,YAAYC,oBAApB,EAA+B;MAC7B,OAAOD,IAAI,CAACE,GAAZ;IACD;;IACD,OAAOH,SAAS,CAACI,OAAV,CACLF,oBAAA,CAAUH,SAAV,CAAoBC,SAApB,EAA+BC,IAAI,CAACA,IAApC,CADK,EAELA,IAAI,CAACI,EAFA,EAGLJ,IAAI,CAACK,EAHA,CAAP;EAKD;;EAEDC,WAAW,CAACP,SAAD,EAAuBG,GAAvB,EAAmC;IAC5C,MAAMH,SAAN,EAAiBG,GAAjB,EAAsB,OAAtB;EACD;;EAEK,IAAFE,EAAE,GAAG;IACP,OAAO,KAAKF,GAAL,CAAS,CAAT,CAAP;EACD;;EAEK,IAAFG,EAAE,GAAG;IACP,OAAO,KAAKH,GAAL,CAAS,CAAT,CAAP;EACD;;EAEO,IAAJF,IAAI,GAAG;IACT,OAAO,IAAIC,oBAAJ,CACL,KAAKF,SADA,EAELQ,YAAY,CAACC,EAAb,CAAgB,KAAKN,GAAL,CAAS,CAAT,CAAhB,EAA6B,KAAKA,GAAL,CAAS,CAAT,CAA7B,EAA0C,KAAKA,GAAL,CAAS,CAAT,CAA1C,EAAuD,KAAKA,GAAL,CAAS,CAAT,CAAvD,CAFK,CAAP;EAID;;AA7BH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkRSXform.ts"],"names":["JsiSkRSXform","HostObject","constructor","CanvasKit","ref"],"mappings":";;;;;;;AAIA;;AAIO,MAAMA,YAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAqC;AAC9C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,SAAtB;AACD;;AAHH","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkRSXform } from \"../types\";\n\nimport { HostObject } from \"./Host\";\n\nexport type RSXform = Float32Array;\n\nexport class JsiSkRSXform\n extends HostObject<RSXform, \"RSXform\">\n implements SkRSXform\n{\n constructor(CanvasKit: CanvasKit, ref: RSXform) {\n super(CanvasKit, ref, \"RSXform\");\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkRSXform","HostObject","constructor","CanvasKit","ref"],"sources":["JsiSkRSXform.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkRSXform } from \"../types\";\n\nimport { HostObject } from \"./Host\";\n\nexport type RSXform = Float32Array;\n\nexport class JsiSkRSXform\n extends HostObject<RSXform, \"RSXform\">\n implements SkRSXform\n{\n constructor(CanvasKit: CanvasKit, ref: RSXform) {\n super(CanvasKit, ref, \"RSXform\");\n }\n}\n"],"mappings":";;;;;;;AAIA;;AAIO,MAAMA,YAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAqC;IAC9C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,SAAtB;EACD;;AAHH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkRect.ts"],"names":["JsiSkRect","BaseHostObject","fromValue","CanvasKit","rect","ref","XYWHRect","x","y","width","height","constructor"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,SAAN,SAAwBC,oBAAxB,CAAuE;AAC5D,SAATC,SAAS,CAACC,SAAD,EAAuBC,IAAvB,EAAqC;AACnD,QAAIA,IAAI,YAAYJ,SAApB,EAA+B;AAC7B,aAAOI,IAAI,CAACC,GAAZ;AACD;;AACD,WAAOF,SAAS,CAACG,QAAV,CAAmBF,IAAI,CAACG,CAAxB,EAA2BH,IAAI,CAACI,CAAhC,EAAmCJ,IAAI,CAACK,KAAxC,EAA+CL,IAAI,CAACM,MAApD,CAAP;AACD;;AAEDC,EAAAA,WAAW,CAACR,SAAD,EAAuBE,GAAvB,EAAkC;AAC3C,UAAMF,SAAN,EAAiBE,GAAjB,EAAsB,MAAtB;AACD;;AAEI,MAADE,CAAC,GAAG;AACN,WAAO,KAAKF,GAAL,CAAS,CAAT,CAAP;AACD;;AAEI,MAADG,CAAC,GAAG;AACN,WAAO,KAAKH,GAAL,CAAS,CAAT,CAAP;AACD;;AAEQ,MAALI,KAAK,GAAG;AACV,WAAO,KAAKJ,GAAL,CAAS,CAAT,IAAc,KAAKA,GAAL,CAAS,CAAT,CAArB;AACD;;AAES,MAANK,MAAM,GAAG;AACX,WAAO,KAAKL,GAAL,CAAS,CAAT,IAAc,KAAKA,GAAL,CAAS,CAAT,CAArB;AACD;;AA1B2E","sourcesContent":["import type { CanvasKit, Rect } from \"canvaskit-wasm\";\n\nimport type { SkRect } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport class JsiSkRect extends BaseHostObject<Rect, \"Rect\"> implements SkRect {\n static fromValue(CanvasKit: CanvasKit, rect: SkRect) {\n if (rect instanceof JsiSkRect) {\n return rect.ref;\n }\n return CanvasKit.XYWHRect(rect.x, rect.y, rect.width, rect.height);\n }\n\n constructor(CanvasKit: CanvasKit, ref: Rect) {\n super(CanvasKit, ref, \"Rect\");\n }\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n\n get width() {\n return this.ref[2] - this.ref[0];\n }\n\n get height() {\n return this.ref[3] - this.ref[1];\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkRect","BaseHostObject","fromValue","CanvasKit","rect","ref","XYWHRect","x","y","width","height","constructor"],"sources":["JsiSkRect.ts"],"sourcesContent":["import type { CanvasKit, Rect } from \"canvaskit-wasm\";\n\nimport type { SkRect } from \"../types\";\n\nimport { BaseHostObject } from \"./Host\";\n\nexport class JsiSkRect extends BaseHostObject<Rect, \"Rect\"> implements SkRect {\n static fromValue(CanvasKit: CanvasKit, rect: SkRect) {\n if (rect instanceof JsiSkRect) {\n return rect.ref;\n }\n return CanvasKit.XYWHRect(rect.x, rect.y, rect.width, rect.height);\n }\n\n constructor(CanvasKit: CanvasKit, ref: Rect) {\n super(CanvasKit, ref, \"Rect\");\n }\n\n get x() {\n return this.ref[0];\n }\n\n get y() {\n return this.ref[1];\n }\n\n get width() {\n return this.ref[2] - this.ref[0];\n }\n\n get height() {\n return this.ref[3] - this.ref[1];\n }\n}\n"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,SAAN,SAAwBC,oBAAxB,CAAuE;EAC5D,OAATC,SAAS,CAACC,SAAD,EAAuBC,IAAvB,EAAqC;IACnD,IAAIA,IAAI,YAAYJ,SAApB,EAA+B;MAC7B,OAAOI,IAAI,CAACC,GAAZ;IACD;;IACD,OAAOF,SAAS,CAACG,QAAV,CAAmBF,IAAI,CAACG,CAAxB,EAA2BH,IAAI,CAACI,CAAhC,EAAmCJ,IAAI,CAACK,KAAxC,EAA+CL,IAAI,CAACM,MAApD,CAAP;EACD;;EAEDC,WAAW,CAACR,SAAD,EAAuBE,GAAvB,EAAkC;IAC3C,MAAMF,SAAN,EAAiBE,GAAjB,EAAsB,MAAtB;EACD;;EAEI,IAADE,CAAC,GAAG;IACN,OAAO,KAAKF,GAAL,CAAS,CAAT,CAAP;EACD;;EAEI,IAADG,CAAC,GAAG;IACN,OAAO,KAAKH,GAAL,CAAS,CAAT,CAAP;EACD;;EAEQ,IAALI,KAAK,GAAG;IACV,OAAO,KAAKJ,GAAL,CAAS,CAAT,IAAc,KAAKA,GAAL,CAAS,CAAT,CAArB;EACD;;EAES,IAANK,MAAM,GAAG;IACX,OAAO,KAAKL,GAAL,CAAS,CAAT,IAAc,KAAKA,GAAL,CAAS,CAAT,CAArB;EACD;;AA1B2E"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkRuntimeEffect.ts"],"names":["JsiSkRuntimeEffect","HostObject","constructor","CanvasKit","ref","makeShader","uniforms","localMatrix","JsiSkShader","undefined","JsiSkMatrix","fromValue","makeShaderWithChildren","children","map","child","getUniform","index","getUniformCount","getUniformFloatCount","getUniformName"],"mappings":";;;;;;;AAKA;;AACA;;AACA;;AAEO,MAAMA,kBAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAA2C;AACpD,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,eAAtB;AACD;;AAEDC,EAAAA,UAAU,CAACC,QAAD,EAAqBC,WAArB,EAA6C;AACrD,WAAO,IAAIC,wBAAJ,CACL,KAAKL,SADA,EAEL,KAAKC,GAAL,CAASC,UAAT,CACEC,QADF,EAEEC,WAAW,KAAKE,SAAhB,GACIC,yBAAYC,SAAZ,CAAsBJ,WAAtB,CADJ,GAEIA,WAJN,CAFK,CAAP;AASD;;AAEDK,EAAAA,sBAAsB,CACpBN,QADoB,EAEpBO,QAFoB,EAGpBN,WAHoB,EAIpB;AACA,WAAO,IAAIC,wBAAJ,CACL,KAAKL,SADA,EAEL,KAAKC,GAAL,CAASQ,sBAAT,CACEN,QADF,EAEEO,QAFF,aAEEA,QAFF,uBAEEA,QAAQ,CAAEC,GAAV,CAAeC,KAAD,IAAWP,yBAAYG,SAAZ,CAAsBI,KAAtB,CAAzB,CAFF,EAGER,WAAW,KAAKE,SAAhB,GACIC,yBAAYC,SAAZ,CAAsBJ,WAAtB,CADJ,GAEIA,WALN,CAFK,CAAP;AAUD;;AAEDS,EAAAA,UAAU,CAACC,KAAD,EAAgB;AACxB,WAAO,KAAKb,GAAL,CAASY,UAAT,CAAoBC,KAApB,CAAP;AACD;;AAEDC,EAAAA,eAAe,GAAG;AAChB,WAAO,KAAKd,GAAL,CAASc,eAAT,EAAP;AACD;;AAEDC,EAAAA,oBAAoB,GAAG;AACrB,WAAO,KAAKf,GAAL,CAASe,oBAAT,EAAP;AACD;;AAEDC,EAAAA,cAAc,CAACH,KAAD,EAAgB;AAC5B,WAAO,KAAKb,GAAL,CAASgB,cAAT,CAAwBH,KAAxB,CAAP;AACD;;AAhDH","sourcesContent":["import type { CanvasKit, RuntimeEffect } from \"canvaskit-wasm\";\n\nimport type { SkMatrix, SkShader } from \"../types\";\nimport type { SkRuntimeEffect } from \"../types/RuntimeEffect/RuntimeEffect\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkShader } from \"./JsiSkShader\";\n\nexport class JsiSkRuntimeEffect\n extends HostObject<RuntimeEffect, \"RuntimeEffect\">\n implements SkRuntimeEffect\n{\n constructor(CanvasKit: CanvasKit, ref: RuntimeEffect) {\n super(CanvasKit, ref, \"RuntimeEffect\");\n }\n\n makeShader(uniforms: number[], localMatrix?: SkMatrix) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShader(\n uniforms,\n localMatrix !== undefined\n ? JsiSkMatrix.fromValue(localMatrix)\n : localMatrix\n )\n );\n }\n\n makeShaderWithChildren(\n uniforms: number[],\n children?: SkShader[],\n localMatrix?: SkMatrix\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShaderWithChildren(\n uniforms,\n children?.map((child) => JsiSkShader.fromValue(child)),\n localMatrix !== undefined\n ? JsiSkMatrix.fromValue(localMatrix)\n : localMatrix\n )\n );\n }\n\n getUniform(index: number) {\n return this.ref.getUniform(index);\n }\n\n getUniformCount() {\n return this.ref.getUniformCount();\n }\n\n getUniformFloatCount() {\n return this.ref.getUniformFloatCount();\n }\n\n getUniformName(index: number) {\n return this.ref.getUniformName(index);\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkRuntimeEffect","HostObject","constructor","CanvasKit","ref","makeShader","uniforms","localMatrix","JsiSkShader","undefined","JsiSkMatrix","fromValue","makeShaderWithChildren","children","map","child","getUniform","index","getUniformCount","getUniformFloatCount","getUniformName"],"sources":["JsiSkRuntimeEffect.ts"],"sourcesContent":["import type { CanvasKit, RuntimeEffect } from \"canvaskit-wasm\";\n\nimport type { SkMatrix, SkShader } from \"../types\";\nimport type { SkRuntimeEffect } from \"../types/RuntimeEffect/RuntimeEffect\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkShader } from \"./JsiSkShader\";\n\nexport class JsiSkRuntimeEffect\n extends HostObject<RuntimeEffect, \"RuntimeEffect\">\n implements SkRuntimeEffect\n{\n constructor(CanvasKit: CanvasKit, ref: RuntimeEffect) {\n super(CanvasKit, ref, \"RuntimeEffect\");\n }\n\n makeShader(uniforms: number[], localMatrix?: SkMatrix) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShader(\n uniforms,\n localMatrix !== undefined\n ? JsiSkMatrix.fromValue(localMatrix)\n : localMatrix\n )\n );\n }\n\n makeShaderWithChildren(\n uniforms: number[],\n children?: SkShader[],\n localMatrix?: SkMatrix\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.ref.makeShaderWithChildren(\n uniforms,\n children?.map((child) => JsiSkShader.fromValue(child)),\n localMatrix !== undefined\n ? JsiSkMatrix.fromValue(localMatrix)\n : localMatrix\n )\n );\n }\n\n getUniform(index: number) {\n return this.ref.getUniform(index);\n }\n\n getUniformCount() {\n return this.ref.getUniformCount();\n }\n\n getUniformFloatCount() {\n return this.ref.getUniformFloatCount();\n }\n\n getUniformName(index: number) {\n return this.ref.getUniformName(index);\n }\n}\n"],"mappings":";;;;;;;AAKA;;AACA;;AACA;;AAEO,MAAMA,kBAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAA2C;IACpD,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,eAAtB;EACD;;EAEDC,UAAU,CAACC,QAAD,EAAqBC,WAArB,EAA6C;IACrD,OAAO,IAAIC,wBAAJ,CACL,KAAKL,SADA,EAEL,KAAKC,GAAL,CAASC,UAAT,CACEC,QADF,EAEEC,WAAW,KAAKE,SAAhB,GACIC,wBAAA,CAAYC,SAAZ,CAAsBJ,WAAtB,CADJ,GAEIA,WAJN,CAFK,CAAP;EASD;;EAEDK,sBAAsB,CACpBN,QADoB,EAEpBO,QAFoB,EAGpBN,WAHoB,EAIpB;IACA,OAAO,IAAIC,wBAAJ,CACL,KAAKL,SADA,EAEL,KAAKC,GAAL,CAASQ,sBAAT,CACEN,QADF,EAEEO,QAFF,aAEEA,QAFF,uBAEEA,QAAQ,CAAEC,GAAV,CAAeC,KAAD,IAAWP,wBAAA,CAAYG,SAAZ,CAAsBI,KAAtB,CAAzB,CAFF,EAGER,WAAW,KAAKE,SAAhB,GACIC,wBAAA,CAAYC,SAAZ,CAAsBJ,WAAtB,CADJ,GAEIA,WALN,CAFK,CAAP;EAUD;;EAEDS,UAAU,CAACC,KAAD,EAAgB;IACxB,OAAO,KAAKb,GAAL,CAASY,UAAT,CAAoBC,KAApB,CAAP;EACD;;EAEDC,eAAe,GAAG;IAChB,OAAO,KAAKd,GAAL,CAASc,eAAT,EAAP;EACD;;EAEDC,oBAAoB,GAAG;IACrB,OAAO,KAAKf,GAAL,CAASe,oBAAT,EAAP;EACD;;EAEDC,cAAc,CAACH,KAAD,EAAgB;IAC5B,OAAO,KAAKb,GAAL,CAASgB,cAAT,CAAwBH,KAAxB,CAAP;EACD;;AAhDH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkRuntimeEffectFactory.ts"],"names":["JsiSkRuntimeEffectFactory","Host","constructor","CanvasKit","Make","sksl","re","RuntimeEffect","JsiSkRuntimeEffect"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,yBAAN,SACGC,UADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,IAAI,CAACC,IAAD,EAAe;AACjB,UAAMC,EAAE,GAAG,KAAKH,SAAL,CAAeI,aAAf,CAA6BH,IAA7B,CAAkCC,IAAlC,CAAX;;AACA,QAAIC,EAAE,KAAK,IAAX,EAAiB;AACf,aAAO,IAAP;AACD;;AACD,WAAO,IAAIE,sCAAJ,CAAuB,KAAKL,SAA5B,EAAuCG,EAAvC,CAAP;AACD;;AAXH","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { RuntimeEffectFactory } from \"../types/RuntimeEffect/RuntimeEffectFactory\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkRuntimeEffect } from \"./JsiSkRuntimeEffect\";\n\nexport class JsiSkRuntimeEffectFactory\n extends Host\n implements RuntimeEffectFactory\n{\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n Make(sksl: string) {\n const re = this.CanvasKit.RuntimeEffect.Make(sksl);\n if (re === null) {\n return null;\n }\n return new JsiSkRuntimeEffect(this.CanvasKit, re);\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkRuntimeEffectFactory","Host","constructor","CanvasKit","Make","sksl","re","RuntimeEffect","JsiSkRuntimeEffect"],"sources":["JsiSkRuntimeEffectFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { RuntimeEffectFactory } from \"../types/RuntimeEffect/RuntimeEffectFactory\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkRuntimeEffect } from \"./JsiSkRuntimeEffect\";\n\nexport class JsiSkRuntimeEffectFactory\n extends Host\n implements RuntimeEffectFactory\n{\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n Make(sksl: string) {\n const re = this.CanvasKit.RuntimeEffect.Make(sksl);\n if (re === null) {\n return null;\n }\n return new JsiSkRuntimeEffect(this.CanvasKit, re);\n }\n}\n"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,yBAAN,SACGC,UADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,IAAI,CAACC,IAAD,EAAe;IACjB,MAAMC,EAAE,GAAG,KAAKH,SAAL,CAAeI,aAAf,CAA6BH,IAA7B,CAAkCC,IAAlC,CAAX;;IACA,IAAIC,EAAE,KAAK,IAAX,EAAiB;MACf,OAAO,IAAP;IACD;;IACD,OAAO,IAAIE,sCAAJ,CAAuB,KAAKL,SAA5B,EAAuCG,EAAvC,CAAP;EACD;;AAXH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkSVGFactory.ts"],"names":["JsiSkSVGFactory","Host","constructor","CanvasKit","MakeFromData","_data","NotImplementedOnRNWeb","MakeFromString","_str"],"mappings":";;;;;;;AAKA;;AAEO,MAAMA,eAAN,SAA8BC,UAA9B,CAAyD;AAC9DC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,YAAY,CAACC,KAAD,EAA8B;AACxC,UAAM,IAAIC,2BAAJ,EAAN;AACD;;AAEDC,EAAAA,cAAc,CAACC,IAAD,EAA6B;AACzC,UAAM,IAAIF,2BAAJ,EAAN;AACD;;AAX6D","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkData, SkSVG } from \"../types\";\nimport type { SVGFactory } from \"../types/SVG/SVGFactory\";\n\nimport { Host, NotImplementedOnRNWeb } from \"./Host\";\n\nexport class JsiSkSVGFactory extends Host implements SVGFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeFromData(_data: SkData): SkSVG | null {\n throw new NotImplementedOnRNWeb();\n }\n\n MakeFromString(_str: string): SkSVG | null {\n throw new NotImplementedOnRNWeb();\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkSVGFactory","Host","constructor","CanvasKit","MakeFromData","_data","NotImplementedOnRNWeb","MakeFromString","_str"],"sources":["JsiSkSVGFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkData, SkSVG } from \"../types\";\nimport type { SVGFactory } from \"../types/SVG/SVGFactory\";\n\nimport { Host, NotImplementedOnRNWeb } from \"./Host\";\n\nexport class JsiSkSVGFactory extends Host implements SVGFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeFromData(_data: SkData): SkSVG | null {\n throw new NotImplementedOnRNWeb();\n }\n\n MakeFromString(_str: string): SkSVG | null {\n throw new NotImplementedOnRNWeb();\n }\n}\n"],"mappings":";;;;;;;AAKA;;AAEO,MAAMA,eAAN,SAA8BC,UAA9B,CAAyD;EAC9DC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,YAAY,CAACC,KAAD,EAA8B;IACxC,MAAM,IAAIC,2BAAJ,EAAN;EACD;;EAEDC,cAAc,CAACC,IAAD,EAA6B;IACzC,MAAM,IAAIF,2BAAJ,EAAN;EACD;;AAX6D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkShader.ts"],"names":["JsiSkShader","HostObject","constructor","CanvasKit","ref"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,WAAN,SACGC,gBADH,CAGP;AACEC,EAAAA,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAoC;AAC7C,UAAMD,SAAN,EAAiBC,GAAjB,EAAsB,QAAtB;AACD;;AAHH","sourcesContent":["import type { CanvasKit, Shader } from \"canvaskit-wasm\";\n\nimport type { SkShader } from \"../types\";\n\nimport { HostObject } from \"./Host\";\n\nexport class JsiSkShader\n extends HostObject<Shader, \"Shader\">\n implements SkShader\n{\n constructor(CanvasKit: CanvasKit, ref: Shader) {\n super(CanvasKit, ref, \"Shader\");\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkShader","HostObject","constructor","CanvasKit","ref"],"sources":["JsiSkShader.ts"],"sourcesContent":["import type { CanvasKit, Shader } from \"canvaskit-wasm\";\n\nimport type { SkShader } from \"../types\";\n\nimport { HostObject } from \"./Host\";\n\nexport class JsiSkShader\n extends HostObject<Shader, \"Shader\">\n implements SkShader\n{\n constructor(CanvasKit: CanvasKit, ref: Shader) {\n super(CanvasKit, ref, \"Shader\");\n }\n}\n"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,WAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAoC;IAC7C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,QAAtB;EACD;;AAHH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkShaderFactory.ts"],"names":["JsiSkShaderFactory","Host","constructor","CanvasKit","MakeLinearGradient","start","end","colors","pos","mode","localMatrix","flags","JsiSkShader","Shader","JsiSkPoint","fromValue","undefined","JsiSkMatrix","MakeRadialGradient","center","radius","MakeTwoPointConicalGradient","startRadius","endRadius","MakeSweepGradient","cx","cy","startAngleInDegrees","endAngleInDegrees","MakeTurbulence","baseFreqX","baseFreqY","octaves","seed","tileW","tileH","MakeFractalNoise","MakeBlend","one","two","MakeColor","color","ColorSpace","SRGB"],"mappings":";;;;;;;AAYA;;AACA;;AACA;;AACA;;AAEO,MAAMA,kBAAN,SAAiCC,UAAjC,CAA+D;AACpEC,EAAAA,WAAW,CAACC,SAAD,EAAuB;AAChC,UAAMA,SAAN;AACD;;AAEDC,EAAAA,kBAAkB,CAChBC,KADgB,EAEhBC,GAFgB,EAGhBC,MAHgB,EAIhBC,GAJgB,EAKhBC,IALgB,EAMhBC,WANgB,EAOhBC,KAPgB,EAQhB;AACA,WAAO,IAAIC,wBAAJ,CACL,KAAKT,SADA,EAEL,KAAKA,SAAL,CAAeU,MAAf,CAAsBT,kBAAtB,CACEU,uBAAWC,SAAX,CAAqBV,KAArB,CADF,EAEES,uBAAWC,SAAX,CAAqBT,GAArB,C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FF,EAGE1B,yBAAYG,SAAZ,CAAsBwB,GAAtB,CAHF,CAFK,CAAP;AAQD;;AAEDC,EAAAA,SAAS,CAACC,KAAD,EAAiB;AACxB,WAAO,IAAI7B,wBAAJ,CACL,KAAKT,SADA,EAEL,KAAKA,SAAL,CAAeU,MAAf,CAAsB2B,SAAtB,CAAgCC,KAAhC,EAAuC,KAAKtC,SAAL,CAAeuC,UAAf,CAA0BC,IAAjE,CAFK,CAAP;AAID;;AA3KmE","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type {\n BlendMode,\n SkColor,\n SkMatrix,\n SkPoint,\n SkShader,\n TileMode,\n} from \"../types\";\nimport type { ShaderFactory } from \"../types/Shader/ShaderFactory\";\n\nimport { Host, ckEnum } from \"./Host\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkPoint } from \"./JsiSkPoint\";\nimport { JsiSkShader } from \"./JsiSkShader\";\n\nexport class JsiSkShaderFactory extends Host implements ShaderFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeLinearGradient(\n start: SkPoint,\n end: SkPoint,\n colors: SkColor[],\n pos: number[] | null,\n mode: TileMode,\n localMatrix?: SkMatrix,\n flags?: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeLinearGradient(\n JsiSkPoint.fromValue(start),\n JsiSkPoint.fromValue(end),\n colors,\n pos,\n ckEnum(mode),\n localMatrix === undefined\n ? undefined\n : JsiSkMatrix.fromValue(localMatrix),\n flags\n )\n );\n }\n\n MakeRadialGradient(\n center: SkPoint,\n radius: number,\n colors: SkColor[],\n pos: number[] | null,\n mode: TileMode,\n localMatrix?: SkMatrix,\n flags?: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeRadialGradient(\n JsiSkPoint.fromValue(center),\n radius,\n colors,\n pos,\n ckEnum(mode),\n localMatrix === undefined\n ? undefined\n : JsiSkMatrix.fromValue(localMatrix),\n flags\n )\n );\n }\n\n MakeTwoPointConicalGradient(\n start: SkPoint,\n startRadius: number,\n end: SkPoint,\n endRadius: number,\n colors: SkColor[],\n pos: number[] | null,\n mode: TileMode,\n localMatrix?: SkMatrix,\n flags?: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeTwoPointConicalGradient(\n JsiSkPoint.fromValue(start),\n startRadius,\n JsiSkPoint.fromValue(end),\n endRadius,\n colors,\n pos,\n ckEnum(mode),\n localMatrix === undefined\n ? undefined\n : JsiSkMatrix.fromValue(localMatrix),\n flags\n )\n );\n }\n\n MakeSweepGradient(\n cx: number,\n cy: number,\n colors: SkColor[],\n pos: number[] | null,\n mode: TileMode,\n localMatrix?: SkMatrix | null,\n flags?: number,\n startAngleInDegrees?: number,\n endAngleInDegrees?: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeSweepGradient(\n cx,\n cy,\n colors,\n pos,\n ckEnum(mode),\n localMatrix === undefined || localMatrix === null\n ? undefined\n : JsiSkMatrix.fromValue(localMatrix),\n flags,\n startAngleInDegrees,\n endAngleInDegrees\n )\n );\n }\n\n MakeTurbulence(\n baseFreqX: number,\n baseFreqY: number,\n octaves: number,\n seed: number,\n tileW: number,\n tileH: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeTurbulence(\n baseFreqX,\n baseFreqY,\n octaves,\n seed,\n tileW,\n tileH\n )\n );\n }\n\n MakeFractalNoise(\n baseFreqX: number,\n baseFreqY: number,\n octaves: number,\n seed: number,\n tileW: number,\n tileH: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeFractalNoise(\n baseFreqX,\n baseFreqY,\n octaves,\n seed,\n tileW,\n tileH\n )\n );\n }\n\n MakeBlend(mode: BlendMode, one: SkShader, two: SkShader) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeBlend(\n ckEnum(mode),\n JsiSkShader.fromValue(one),\n JsiSkShader.fromValue(two)\n )\n );\n }\n\n MakeColor(color: SkColor) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeColor(color, this.CanvasKit.ColorSpace.SRGB)\n );\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkShaderFactory","Host","constructor","CanvasKit","MakeLinearGradient","start","end","colors","pos","mode","localMatrix","flags","JsiSkShader","Shader","JsiSkPoint","fromValue","ckEnum","undefined","JsiSkMatrix","MakeRadialGradient","center","radius","MakeTwoPointConicalGradient","startRadius","endRadius","MakeSweepGradient","cx","cy","startAngleInDegrees","endAngleInDegrees","MakeTurbulence","baseFreqX","baseFreqY","octaves","seed","tileW","tileH","MakeFractalNoise","MakeBlend","one","two","MakeColor","color","ColorSpace","SRGB"],"sources":["JsiSkShaderFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type {\n BlendMode,\n SkColor,\n SkMatrix,\n SkPoint,\n SkShader,\n TileMode,\n} from \"../types\";\nimport type { ShaderFactory } from \"../types/Shader/ShaderFactory\";\n\nimport { Host, ckEnum } from \"./Host\";\nimport { JsiSkMatrix } from \"./JsiSkMatrix\";\nimport { JsiSkPoint } from \"./JsiSkPoint\";\nimport { JsiSkShader } from \"./JsiSkShader\";\n\nexport class JsiSkShaderFactory extends Host implements ShaderFactory {\n constructor(CanvasKit: CanvasKit) {\n super(CanvasKit);\n }\n\n MakeLinearGradient(\n start: SkPoint,\n end: SkPoint,\n colors: SkColor[],\n pos: number[] | null,\n mode: TileMode,\n localMatrix?: SkMatrix,\n flags?: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeLinearGradient(\n JsiSkPoint.fromValue(start),\n JsiSkPoint.fromValue(end),\n colors,\n pos,\n ckEnum(mode),\n localMatrix === undefined\n ? undefined\n : JsiSkMatrix.fromValue(localMatrix),\n flags\n )\n );\n }\n\n MakeRadialGradient(\n center: SkPoint,\n radius: number,\n colors: SkColor[],\n pos: number[] | null,\n mode: TileMode,\n localMatrix?: SkMatrix,\n flags?: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeRadialGradient(\n JsiSkPoint.fromValue(center),\n radius,\n colors,\n pos,\n ckEnum(mode),\n localMatrix === undefined\n ? undefined\n : JsiSkMatrix.fromValue(localMatrix),\n flags\n )\n );\n }\n\n MakeTwoPointConicalGradient(\n start: SkPoint,\n startRadius: number,\n end: SkPoint,\n endRadius: number,\n colors: SkColor[],\n pos: number[] | null,\n mode: TileMode,\n localMatrix?: SkMatrix,\n flags?: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeTwoPointConicalGradient(\n JsiSkPoint.fromValue(start),\n startRadius,\n JsiSkPoint.fromValue(end),\n endRadius,\n colors,\n pos,\n ckEnum(mode),\n localMatrix === undefined\n ? undefined\n : JsiSkMatrix.fromValue(localMatrix),\n flags\n )\n );\n }\n\n MakeSweepGradient(\n cx: number,\n cy: number,\n colors: SkColor[],\n pos: number[] | null,\n mode: TileMode,\n localMatrix?: SkMatrix | null,\n flags?: number,\n startAngleInDegrees?: number,\n endAngleInDegrees?: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeSweepGradient(\n cx,\n cy,\n colors,\n pos,\n ckEnum(mode),\n localMatrix === undefined || localMatrix === null\n ? undefined\n : JsiSkMatrix.fromValue(localMatrix),\n flags,\n startAngleInDegrees,\n endAngleInDegrees\n )\n );\n }\n\n MakeTurbulence(\n baseFreqX: number,\n baseFreqY: number,\n octaves: number,\n seed: number,\n tileW: number,\n tileH: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeTurbulence(\n baseFreqX,\n baseFreqY,\n octaves,\n seed,\n tileW,\n tileH\n )\n );\n }\n\n MakeFractalNoise(\n baseFreqX: number,\n baseFreqY: number,\n octaves: number,\n seed: number,\n tileW: number,\n tileH: number\n ) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeFractalNoise(\n baseFreqX,\n baseFreqY,\n octaves,\n seed,\n tileW,\n tileH\n )\n );\n }\n\n MakeBlend(mode: BlendMode, one: SkShader, two: SkShader) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeBlend(\n ckEnum(mode),\n JsiSkShader.fromValue(one),\n JsiSkShader.fromValue(two)\n )\n );\n }\n\n MakeColor(color: SkColor) {\n return new JsiSkShader(\n this.CanvasKit,\n this.CanvasKit.Shader.MakeColor(color, this.CanvasKit.ColorSpace.SRGB)\n );\n }\n}\n"],"mappings":";;;;;;;AAYA;;AACA;;AACA;;AACA;;AAEO,MAAMA,kBAAN,SAAiCC,UAAjC,CAA+D;EACpEC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,kBAAkB,CAChBC,KADgB,EAEhBC,GAFgB,EAGhBC,MAHgB,EAIhBC,GAJgB,EAKhBC,IALgB,EAMhBC,WANgB,EAOhBC,KAPgB,EAQhB;IACA,OAAO,IAAIC,wBAAJ,CACL,KAAKT,SADA,EAEL,KAAKA,SAAL,CAAeU,MAAf,CAAsBT,kBAAtB,CACEU,sBAAA,CAAWC,SAAX,CAAqBV,KAArB,CADF,EAEES,sBAAA,CAAWC,SAAX,CAAqBT,GAArB,CAFF,EAGEC,MAHF,EAIEC,GAJF,EAKE,IAAAQ,YAAA,EAAOP,IAAP,CALF,EAMEC,WAAW,KAAKO,SAAhB,GACIA,SADJ,GAEIC,wBAAA,CAAYH,SAAZ,CAAsBL,WAAtB,CARN,EASEC,KATF,CAFK,CAAP;EAcD;;EAEDQ,kBAAkB,CAChBC,MADgB,EAEhBC,MAFgB,EAGhBd,MAHgB,EAIhBC,GAJgB,EAKhBC,IALgB,EAMhBC,WANgB,EAOhBC,KAPgB,EAQhB;IACA,OAAO,IAAIC,wBAAJ,CACL,KAAKT,SADA,EAEL,KAAKA,SA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
1
- {"version":3,"sources":["JsiSkSurface.ts"],"names":["JsiSkSurface","HostObject","constructor","CanvasKit","ref","getCanvas","JsiSkCanvas","makeImageSnapshot","bounds","image","Array","from","JsiSkRect","fromValue","undefined","JsiSkImage"],"mappings":";;;;;;;AAIA;;AACA;;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,CACZC,MAAM,GACFE,KAAK,CAACC,IAAN,CAAWC,qBAAUC,SAAV,CAAoB,KAAKV,SAAzB,EAAoCK,MAApC,CAAX,CADE,GAEFM,SAHQ,CAAd;AAKA,WAAO,IAAIC,sBAAJ,CAAe,KAAKZ,SAApB,EAA+BM,KAA/B,CAAP;AACD;;AAhBH","sourcesContent":["import type { CanvasKit, Surface } from \"canvaskit-wasm\";\n\nimport type { SkCanvas, SkImage, SkRect, SkSurface } from \"../types\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkCanvas } from \"./JsiSkCanvas\";\nimport { JsiSkImage } from \"./JsiSkImage\";\nimport { JsiSkRect } from \"./JsiSkRect\";\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(\n bounds\n ? Array.from(JsiSkRect.fromValue(this.CanvasKit, bounds))\n : undefined\n );\n return new JsiSkImage(this.CanvasKit, image);\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkSurface","HostObject","constructor","CanvasKit","ref","getCanvas","JsiSkCanvas","makeImageSnapshot","bounds","image","Array","from","JsiSkRect","fromValue","undefined","JsiSkImage"],"sources":["JsiSkSurface.ts"],"sourcesContent":["import type { CanvasKit, Surface } from \"canvaskit-wasm\";\n\nimport type { SkCanvas, SkImage, SkRect, SkSurface } from \"../types\";\n\nimport { HostObject } from \"./Host\";\nimport { JsiSkCanvas } from \"./JsiSkCanvas\";\nimport { JsiSkImage } from \"./JsiSkImage\";\nimport { JsiSkRect } from \"./JsiSkRect\";\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(\n bounds\n ? Array.from(JsiSkRect.fromValue(this.CanvasKit, bounds))\n : undefined\n );\n return new JsiSkImage(this.CanvasKit, image);\n }\n}\n"],"mappings":";;;;;;;AAIA;;AACA;;AACA;;AACA;;AAEO,MAAMA,YAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAqC;IAC9C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,SAAtB;EACD;;EAEDC,SAAS,GAAa;IACpB,OAAO,IAAIC,wBAAJ,CAAgB,KAAKH,SAArB,EAAgC,KAAKC,GAAL,CAASC,SAAT,EAAhC,CAAP;EACD;;EAEDE,iBAAiB,CAACC,MAAD,EAA2B;IAC1C,MAAMC,KAAK,GAAG,KAAKL,GAAL,CAASG,iBAAT,CACZC,MAAM,GACFE,KAAK,CAACC,IAAN,CAAWC,oBAAA,CAAUC,SAAV,CAAoB,KAAKV,SAAzB,EAAoCK,MAApC,CAAX,CADE,GAEFM,SAHQ,CAAd;IAKA,OAAO,IAAIC,sBAAJ,CAAe,KAAKZ,SAApB,EAA+BM,KAA/B,CAAP;EACD;;AAhBH"}
@@ -1 +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"]}
1
+ {"version":3,"names":["JsiSkSurfaceFactory","Host","constructor","CanvasKit","Make","width","height","surface","MakeSurface","Error","JsiSkSurface"],"sources":["JsiSkSurfaceFactory.ts"],"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"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,mBAAN,SAAkCC,UAAlC,CAAiE;EACtEC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,IAAI,CAACC,KAAD,EAAgBC,MAAhB,EAAgC;IAClC,MAAMC,OAAO,GAAG,KAAKJ,SAAL,CAAeK,WAAf,CAA2BH,KAA3B,EAAkCC,MAAlC,CAAhB;;IACA,IAAI,CAACC,OAAL,EAAc;MACZ,MAAM,IAAIE,KAAJ,CAAU,0BAAV,CAAN;IACD;;IACD,OAAO,IAAIC,0BAAJ,CAAiB,KAAKP,SAAtB,EAAiCI,OAAjC,CAAP;EACD;;AAXqE"}
@@ -1 +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"]}
1
+ {"version":3,"names":["JsiSkTextBlob","HostObject","constructor","CanvasKit","ref"],"sources":["JsiSkTextBlob.ts"],"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"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,aAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAsC;IAC/C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,UAAtB;EACD;;AAHH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkTextBlobFactory.ts"],"names":["JsiSkTextBlobFactory","Host","constructor","CanvasKit","MakeFromText","str","font","JsiSkTextBlob","TextBlob","JsiSkFont","fromValue","MakeFromGlyphs","glyphs","MakeFromRSXform","rsxforms","map","f","Array","from","JsiSkRSXform","flat","MakeFromRSXformGlyphs"],"mappings":";;;;;;;AAMA;;AACA;;AACA;;AAEA;;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,EAA0CI,qBAAUC,SAAV,CAAoBJ,IAApB,CAA1C,CAFK,CAAP;AAID;;AAEDK,EAAAA,cAAc,CAACC,MAAD,EAAmBN,IAAnB,EAAiC;AAC7C,WAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBG,cAAxB,CAAuCC,MAAvC,EAA+CH,qBAAUC,SAAV,CAAoBJ,IAApB,CAA/C,CAFK,CAAP;AAID;;AAEDO,EAAAA,eAAe,CAACR,GAAD,EAAcS,QAAd,EAAqCR,IAArC,EAAmD;AAChE,WAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBK,eAAxB,CACER,GADF,EAEES,QAAQ,CACLC,GADH,CACQC,CAAD,IAAOC,KAAK,CAACC,IAAN,CAAWC,2BAAaT,SAAb,CAAgCM,CAAhC,CAAX,CADd,EAEGI,IAFH,EAFF,EAKEX,qBAAUC,SAAV,CAAoBJ,IAApB,CALF,CAFK,CAAP;AAUD;;AAEDe,EAAAA,qBAAqB,CAACT,MAAD,EAAmBE,QAAnB,EAA0CR,IAA1C,EAAwD;AAC3E,WAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBa,qBAAxB,CACET,MADF,EAEEE,QAAQ,CAACC,GAAT,CAAcC,CAAD,IAAOG,2BAAaT,SAAb,CAAuBM,CAAvB,CAApB,CAFF,EAGEP,qBAAUC,SAAV,CAAoBJ,IAApB,CAHF,CAFK,CAAP;AAQD;;AAzCuE","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkFont } from \"../types\";\nimport type { TextBlobFactory } from \"../types/TextBlob\";\nimport type { SkRSXform } from \"../types/RSXform\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkFont } from \"./JsiSkFont\";\nimport { JsiSkTextBlob } from \"./JsiSkTextBlob\";\nimport type { RSXform } from \"./JsiSkRSXform\";\nimport { JsiSkRSXform } from \"./JsiSkRSXform\";\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, JsiSkFont.fromValue(font))\n );\n }\n\n MakeFromGlyphs(glyphs: number[], font: SkFont) {\n return new JsiSkTextBlob(\n this.CanvasKit,\n this.CanvasKit.TextBlob.MakeFromGlyphs(glyphs, JsiSkFont.fromValue(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\n .map((f) => Array.from(JsiSkRSXform.fromValue<RSXform>(f)))\n .flat(),\n JsiSkFont.fromValue(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) => JsiSkRSXform.fromValue(f)),\n JsiSkFont.fromValue(font)\n )\n );\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkTextBlobFactory","Host","constructor","CanvasKit","MakeFromText","str","font","JsiSkTextBlob","TextBlob","JsiSkFont","fromValue","MakeFromGlyphs","glyphs","MakeFromRSXform","rsxforms","map","f","Array","from","JsiSkRSXform","flat","MakeFromRSXformGlyphs"],"sources":["JsiSkTextBlobFactory.ts"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkFont } from \"../types\";\nimport type { TextBlobFactory } from \"../types/TextBlob\";\nimport type { SkRSXform } from \"../types/RSXform\";\n\nimport { Host } from \"./Host\";\nimport { JsiSkFont } from \"./JsiSkFont\";\nimport { JsiSkTextBlob } from \"./JsiSkTextBlob\";\nimport type { RSXform } from \"./JsiSkRSXform\";\nimport { JsiSkRSXform } from \"./JsiSkRSXform\";\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, JsiSkFont.fromValue(font))\n );\n }\n\n MakeFromGlyphs(glyphs: number[], font: SkFont) {\n return new JsiSkTextBlob(\n this.CanvasKit,\n this.CanvasKit.TextBlob.MakeFromGlyphs(glyphs, JsiSkFont.fromValue(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\n .map((f) => Array.from(JsiSkRSXform.fromValue<RSXform>(f)))\n .flat(),\n JsiSkFont.fromValue(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) => JsiSkRSXform.fromValue(f)),\n JsiSkFont.fromValue(font)\n )\n );\n }\n}\n"],"mappings":";;;;;;;AAMA;;AACA;;AACA;;AAEA;;AAEO,MAAMA,oBAAN,SAAmCC,UAAnC,CAAmE;EACxEC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,YAAY,CAACC,GAAD,EAAcC,IAAd,EAA4B;IACtC,OAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBJ,YAAxB,CAAqCC,GAArC,EAA0CI,oBAAA,CAAUC,SAAV,CAAoBJ,IAApB,CAA1C,CAFK,CAAP;EAID;;EAEDK,cAAc,CAACC,MAAD,EAAmBN,IAAnB,EAAiC;IAC7C,OAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBG,cAAxB,CAAuCC,MAAvC,EAA+CH,oBAAA,CAAUC,SAAV,CAAoBJ,IAApB,CAA/C,CAFK,CAAP;EAID;;EAEDO,eAAe,CAACR,GAAD,EAAcS,QAAd,EAAqCR,IAArC,EAAmD;IAChE,OAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBK,eAAxB,CACER,GADF,EAEES,QAAQ,CACLC,GADH,CACQC,CAAD,IAAOC,KAAK,CAACC,IAAN,CAAWC,0BAAA,CAAaT,SAAb,CAAgCM,CAAhC,CAAX,CADd,EAEGI,IAFH,EAFF,EAKEX,oBAAA,CAAUC,SAAV,CAAoBJ,IAApB,CALF,CAFK,CAAP;EAUD;;EAEDe,qBAAqB,CAACT,MAAD,EAAmBE,QAAnB,EAA0CR,IAA1C,EAAwD;IAC3E,OAAO,IAAIC,4BAAJ,CACL,KAAKJ,SADA,EAEL,KAAKA,SAAL,CAAeK,QAAf,CAAwBa,qBAAxB,CACET,MADF,EAEEE,QAAQ,CAACC,GAAT,CAAcC,CAAD,IAAOG,0BAAA,CAAaT,SAAb,CAAuBM,CAAvB,CAApB,CAFF,EAGEP,oBAAA,CAAUC,SAAV,CAAoBJ,IAApB,CAHF,CAFK,CAAP;EAQD;;AAzCuE"}
@@ -1 +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"]}
1
+ {"version":3,"names":["JsiSkTypeface","HostObject","constructor","CanvasKit","ref","bold","console","warn","italic"],"sources":["JsiSkTypeface.ts"],"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"],"mappings":";;;;;;;AAIA;;AAEO,MAAMA,aAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAsC;IAC/C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,UAAtB;EACD;;EAEO,IAAJC,IAAI,GAAY;IAClBC,OAAO,CAACC,IAAR,CACE,sGADF;IAGA,OAAO,KAAP;EACD;;EAES,IAANC,MAAM,GAAY;IACpBF,OAAO,CAACC,IAAR,CACE,wGADF;IAGA,OAAO,KAAP;EACD;;AAjBH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkTypefaceFactory.tsx"],"names":["JsiSkTypefaceFactory","Host","constructor","CanvasKit","MakeFreeTypeFaceFromData","data","tf","Typeface","JsiSkTypeface","fromValue"],"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,CACTI,6BAAcC,SAAd,CAAwBJ,IAAxB,CADS,CAAX;;AAGA,QAAIC,EAAE,KAAK,IAAX,EAAiB;AACf,aAAO,IAAP;AACD;;AACD,WAAO,IAAIE,4BAAJ,CAAkB,KAAKL,SAAvB,EAAkCG,EAAlC,CAAP;AACD;;AAbuE","sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkData, TypefaceFactory } from \"../types\";\n\nimport { Host } 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(\n JsiSkTypeface.fromValue(data)\n );\n if (tf === null) {\n return null;\n }\n return new JsiSkTypeface(this.CanvasKit, tf);\n }\n}\n"]}
1
+ {"version":3,"names":["JsiSkTypefaceFactory","Host","constructor","CanvasKit","MakeFreeTypeFaceFromData","data","tf","Typeface","JsiSkTypeface","fromValue"],"sources":["JsiSkTypefaceFactory.tsx"],"sourcesContent":["import type { CanvasKit } from \"canvaskit-wasm\";\n\nimport type { SkData, TypefaceFactory } from \"../types\";\n\nimport { Host } 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(\n JsiSkTypeface.fromValue(data)\n );\n if (tf === null) {\n return null;\n }\n return new JsiSkTypeface(this.CanvasKit, tf);\n }\n}\n"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,oBAAN,SAAmCC,UAAnC,CAAmE;EACxEC,WAAW,CAACC,SAAD,EAAuB;IAChC,MAAMA,SAAN;EACD;;EAEDC,wBAAwB,CAACC,IAAD,EAAe;IACrC,MAAMC,EAAE,GAAG,KAAKH,SAAL,CAAeI,QAAf,CAAwBH,wBAAxB,CACTI,4BAAA,CAAcC,SAAd,CAAwBJ,IAAxB,CADS,CAAX;;IAGA,IAAIC,EAAE,KAAK,IAAX,EAAiB;MACf,OAAO,IAAP;IACD;;IACD,OAAO,IAAIE,4BAAJ,CAAkB,KAAKL,SAAvB,EAAkCG,EAAlC,CAAP;EACD;;AAbuE"}
@@ -1 +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"]}
1
+ {"version":3,"names":["JsiSkVertices","HostObject","constructor","CanvasKit","ref","bounds","JsiSkRect","uniqueID"],"sources":["JsiSkVertices.ts"],"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"],"mappings":";;;;;;;AAIA;;AACA;;AAEO,MAAMA,aAAN,SACGC,gBADH,CAGP;EACEC,WAAW,CAACC,SAAD,EAAuBC,GAAvB,EAAsC;IAC/C,MAAMD,SAAN,EAAiBC,GAAjB,EAAsB,UAAtB;EACD;;EAEDC,MAAM,GAAG;IACP,OAAO,IAAIC,oBAAJ,CAAc,KAAKH,SAAnB,EAA8B,KAAKC,GAAL,CAASC,MAAT,EAA9B,CAAP;EACD;;EAEDE,QAAQ,GAAG;IACT,OAAO,KAAKH,GAAL,CAASG,QAAT,EAAP;EACD;;AAXH"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkVerticesFactory.ts"],"names":["concat","totalLength","arrays","arr","length","result","Float32Array","offset","set","MakeVertices","CanvasKit","mode","positions","textureCoordinates","colors","indices","isVolatile","JsiSkVertices","map","x","y","flat","reduce","a","c"],"mappings":";;;;;;;AAIA;;AACA;;AAEA,MAAMA,MAAM,GAAG,YAA+B;A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K","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\nconst concat = (...arrays: Float32Array[]) => {\n let totalLength = 0;\n for (const arr of arrays) {\n totalLength += arr.length;\n }\n const result = new Float32Array(totalLength);\n let offset = 0;\n for (const arr of arrays) {\n result.set(arr, offset);\n offset += arr.length;\n }\n return result;\n};\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 ? null : colors.reduce((a, c) => concat(a, c)),\n indices,\n isVolatile\n )\n );\n"]}
1
+ {"version":3,"names":["concat","totalLength","arrays","arr","length","result","Float32Array","offset","set","MakeVertices","CanvasKit","mode","positions","textureCoordinates","colors","indices","isVolatile","JsiSkVertices","ckEnum","map","x","y","flat","reduce","a","c"],"sources":["JsiSkVerticesFactory.ts"],"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\nconst concat = (...arrays: Float32Array[]) => {\n let totalLength = 0;\n for (const arr of arrays) {\n totalLength += arr.length;\n }\n const result = new Float32Array(totalLength);\n let offset = 0;\n for (const arr of arrays) {\n result.set(arr, offset);\n offset += arr.length;\n }\n return result;\n};\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 ? null : colors.reduce((a, c) => concat(a, c)),\n indices,\n isVolatile\n )\n );\n"],"mappings":";;;;;;;AAIA;;AACA;;AAEA,MAAMA,MAAM,GAAG,YAA+B;EAC5C,IAAIC,WAAW,GAAG,CAAlB;;EAD4C,kCAA3BC,MAA2B;IAA3BA,MAA2B;EAAA;;EAE5C,KAAK,MAAMC,GAAX,IAAkBD,MAAlB,EAA0B;IACxBD,WAAW,IAAIE,GAAG,CAACC,MAAnB;EACD;;EACD,MAAMC,MAAM,GAAG,IAAIC,YAAJ,CAAiBL,WAAjB,CAAf;EACA,IAAIM,MAAM,GAAG,CAAb;;EACA,KAAK,MAAMJ,GAAX,IAAkBD,MAAlB,EAA0B;IACxBG,MAAM,CAACG,GAAP,CAAWL,GAAX,EAAgBI,MAAhB;IACAA,MAAM,IAAIJ,GAAG,CAACC,MAAd;EACD;;EACD,OAAOC,MAAP;AACD,CAZD;;AAcO,MAAMI,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,IAAAS,YAAA,EAAOP,IAAP,CADF,EAEEC,SAAS,CAACO,GAAV,CAAc;EAAA,IAAC;IAAEC,CAAF;IAAKC;EAAL,CAAD;EAAA,OAAc,CAACD,CAAD,EAAIC,CAAJ,CAAd;AAAA,CAAd,EAAoCC,IAApC,EAFF,EAGE,CAACT,kBAAkB,IAAI,EAAvB,EAA2BM,GAA3B,CAA+B;EAAA,IAAC;IAAEC,CAAF;IAAKC;EAAL,CAAD;EAAA,OAAc,CAACD,CAAD,EAAIC,CAAJ,CAAd;AAAA,CAA/B,EAAqDC,IAArD,EAHF,EAIE,CAACR,MAAD,GAAU,IAAV,GAAiBA,MAAM,CAACS,MAAP,CAAc,CAACC,CAAD,EAAIC,CAAJ,KAAUzB,MAAM,CAACwB,CAAD,EAAIC,CAAJ,CAA9B,CAJnB,EAKEV,OALF,EAMEC,UANF,CAFF,CATK"}
@@ -1 +1 @@
1
- {"version":3,"sources":["JsiSkia.ts"],"names":["JsiSkApi","CanvasKit","Point","x","y","JsiSkPoint","Float32Array","of","RuntimeShaderBuilder","_","Error","RRectXY","rect","rx","ry","JsiSkRRect","JsiSkRect","fromValue","RSXform","scos","ssin","tx","ty","JsiSkRSXform","Color","ContourMeasureIter","path","forceClosed","resScale","JsiSkContourMeasureIter","JsiSkPath","Paint","paint","JsiSkPaint","setAntiAlias","PictureRecorder","JsiSkPictureRecorder","Picture","JsiSkPictureFactory","Path","JsiSkPathFactory","Matrix","matrix","JsiSkMatrix","identity","ColorFilter","JsiSkColorFilterFactory","Font","typeface","size","JsiSkFont","undefined","JsiSkTypeface","Typeface","JsiSkTypefaceFactory","MaskFilter","JsiSkMaskFilterFactory","RuntimeEffect","JsiSkRuntimeEffectFactory","ImageFilter","JsiSkImageFilterFactory","Shader","JsiSkShaderFactory","PathEffect","JsiSkPathEffectFactory","MakeVertices","bind","Data","JsiSkDataFactory","Image","JsiSkImageFactory","SVG","JsiSkSVGFactory","TextBlob","JsiSkTextBlobFactory","XYWHRect","width","height","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,E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ArB,CA3DiD;AA4DvDoE,EAAAA,KAAK,EAAE,IAAIC,oCAAJ,CAAsBrE,SAAtB,CA5DgD;AA6DvDsE,EAAAA,GAAG,EAAE,IAAIC,gCAAJ,CAAoBvE,SAApB,CA7DkD;AA8DvDwE,EAAAA,QAAQ,EAAE,IAAIC,0CAAJ,CAAyBzE,SAAzB,CA9D6C;AA+DvD0E,EAAAA,QAAQ,EAAE,CAACxE,CAAD,EAAYC,CAAZ,EAAuBwE,KAAvB,EAAsCC,MAAtC,KAAyD;AACjE,WAAO,IAAI7D,oBAAJ,CAAcf,SAAd,EAAyBA,SAAS,CAAC0E,QAAV,CAAmBxE,CAAnB,EAAsBC,CAAtB,EAAyBwE,KAAzB,EAAgCC,MAAhC,CAAzB,CAAP;AACD,GAjEsD;AAkEvDC,EAAAA,OAAO,EAAE,IAAIC,wCAAJ,CAAwB9E,SAAxB;AAlE8C,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 { 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 \"./JsiSkImageFilterFactory\";\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 { JsiSkFont } from \"./JsiSkFont\";\nimport { MakeVertices } from \"./JsiSkVerticesFactory\";\nimport { JsiSkPath } from \"./JsiSkPath\";\nimport { JsiSkTypeface } from \"./JsiSkTypeface\";\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(\n CanvasKit,\n CanvasKit.RRectXY(JsiSkRect.fromValue(CanvasKit, rect), rx, ry)\n ),\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(\n JsiSkPath.fromValue(path),\n forceClosed,\n resScale\n )\n ),\n Paint: () => {\n const paint = new JsiSkPaint(CanvasKit, new CanvasKit.Paint());\n paint.setAntiAlias(true);\n return paint;\n },\n PictureRecorder: () =>\n new JsiSkPictureRecorder(CanvasKit, new CanvasKit.PictureRecorder()),\n Picture: new JsiSkPictureFactory(CanvasKit),\n Path: new JsiSkPathFactory(CanvasKit),\n Matrix: (matrix?: readonly 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 : JsiSkTypeface.fromValue(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 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"]}
1
+ {"version":3,"names":["JsiSkApi","CanvasKit","Point","x","y","JsiSkPoint","Float32Array","of","RuntimeShaderBuilder","_","Error","RRectXY","rect","rx","ry","JsiSkRRect","JsiSkRect","fromValue","RSXform","scos","ssin","tx","ty","JsiSkRSXform","Color","ContourMeasureIter","path","forceClosed","resScale","JsiSkContourMeasureIter","JsiSkPath","Paint","paint","JsiSkPaint","setAntiAlias","PictureRecorder","JsiSkPictureRecorder","Picture","JsiSkPictureFactory","Path","JsiSkPathFactory","Matrix","matrix","JsiSkMatrix","identity","ColorFilter","JsiSkColorFilterFactory","Font","typeface","size","JsiSkFont","undefined","JsiSkTypeface","Typeface","JsiSkTypefaceFactory","MaskFilter","JsiSkMaskFilterFactory","RuntimeEffect","JsiSkRuntimeEffectFactory","ImageFilter","JsiSkImageFilterFactory","Shader","JsiSkShaderFactory","PathEffect","JsiSkPathEffectFactory","MakeVertices","bind","Data","JsiSkDataFactory","Image","JsiSkImageFactory","SVG","JsiSkSVGFactory","TextBlob","JsiSkTextBlobFactory","XYWHRect","width","height","Surface","JsiSkSurfaceFactory"],"sources":["JsiSkia.ts"],"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 { 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 \"./JsiSkImageFilterFactory\";\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 { JsiSkFont } from \"./JsiSkFont\";\nimport { MakeVertices } from \"./JsiSkVerticesFactory\";\nimport { JsiSkPath } from \"./JsiSkPath\";\nimport { JsiSkTypeface } from \"./JsiSkTypeface\";\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(\n CanvasKit,\n CanvasKit.RRectXY(JsiSkRect.fromValue(CanvasKit, rect), rx, ry)\n ),\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(\n JsiSkPath.fromValue(path),\n forceClosed,\n resScale\n )\n ),\n Paint: () => {\n const paint = new JsiSkPaint(CanvasKit, new CanvasKit.Paint());\n paint.setAntiAlias(true);\n return paint;\n },\n PictureRecorder: () =>\n new JsiSkPictureRecorder(CanvasKit, new CanvasKit.PictureRecorder()),\n Picture: new JsiSkPictureFactory(CanvasKit),\n Path: new JsiSkPathFactory(CanvasKit),\n Matrix: (matrix?: readonly 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 : JsiSkTypeface.fromValue(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 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"],"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;EACvDC,KAAK,EAAE,CAACC,CAAD,EAAYC,CAAZ,KACL,IAAIC,sBAAJ,CAAeJ,SAAf,EAA0BK,YAAY,CAACC,EAAb,CAAgBJ,CAAhB,EAAmBC,CAAnB,CAA1B,CAFqD;EAGvDI,oBAAoB,EAAGC,CAAD,IAAgD;IACpE,MAAM,IAAIC,KAAJ,CAAU,qCAAV,CAAN;EACD,CALsD;EAMvDC,OAAO,EAAE,CAACC,IAAD,EAAeC,EAAf,EAA2BC,EAA3B,KACP,IAAIC,sBAAJ,CACEd,SADF,EAEEA,SAAS,CAACU,OA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KAAzB,EAAgCC,MAAhC,CAAzB,CAAP;EACD,CAjEsD;EAkEvDC,OAAO,EAAE,IAAIC,wCAAJ,CAAwB9E,SAAxB;AAlE8C,CAAjC,CAAjB"}
@@ -1 +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
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./JsiSkia\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["api.ts"],"names":["SkiaValueApi","global","ValueApi"],"mappings":";;;;;;AAMA,MAAM;AAAEA,EAAAA;AAAF,IAAmBC,MAAzB;AACO,MAAMC,QAAQ,GAAGF,YAAjB","sourcesContent":["import type { ISkiaValueApi } from \"./types\";\n\ndeclare global {\n var SkiaValueApi: ISkiaValueApi;\n}\n\nconst { SkiaValueApi } = global;\nexport const ValueApi = SkiaValueApi;\n"]}
1
+ {"version":3,"names":["SkiaValueApi","global","ValueApi"],"sources":["api.ts"],"sourcesContent":["import type { ISkiaValueApi } from \"./types\";\n\ndeclare global {\n var SkiaValueApi: ISkiaValueApi;\n}\n\nconst { SkiaValueApi } = global;\nexport const ValueApi = SkiaValueApi;\n"],"mappings":";;;;;;AAMA,MAAM;EAAEA;AAAF,IAAmBC,MAAzB;AACO,MAAMC,QAAQ,GAAGF,YAAjB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["api.web.ts"],"names":["ValueApi","ValueApiWeb","createValue","createComputedValue"],"mappings":";;;;;;;AAAA;;AAEO,MAAMA,QAAQ,GAAGC,aAAjB;;AAEA,MAAM;AAAEC,EAAAA,WAAF;AAAeC,EAAAA;AAAf,IAAuCH,QAA7C","sourcesContent":["import { ValueApi as ValueApiWeb } from \"./web\";\n\nexport const ValueApi = ValueApiWeb;\n\nexport const { createValue, createComputedValue } = ValueApi;\n"]}
1
+ {"version":3,"names":["ValueApi","ValueApiWeb","createValue","createComputedValue"],"sources":["api.web.ts"],"sourcesContent":["import { ValueApi as ValueApiWeb } from \"./web\";\n\nexport const ValueApi = ValueApiWeb;\n\nexport const { createValue, createComputedValue } = ValueApi;\n"],"mappings":";;;;;;;AAAA;;AAEO,MAAMA,QAAQ,GAAGC,aAAjB;;AAEA,MAAM;EAAEC,WAAF;EAAeC;AAAf,IAAuCH,QAA7C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from \"./useClockValue\";\nexport * from \"./useComputedValue\";\nexport * from \"./useValue\";\nexport * from \"./useValueEffect\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./useClockValue\";\nexport * from \"./useComputedValue\";\nexport * from \"./useValue\";\nexport * from \"./useValueEffect\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["useClockValue.ts"],"names":["useClockValue","clock","ValueApi","createClockValue","start","stop"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAEO,MAAMA,aAAa,GAAG,MAAM;AACjC,QAAMC,KAAK,GAAG,oBAAQ,MAAMC,cAASC,gBAAT,EAAd,EAA2C,EAA3C,CAAd;AACA,wBAAU,MAAM;AACdF,IAAAA,KAAK,CAACG,KAAN;AACA,WAAOH,KAAK,CAACI,IAAb;AACD,GAHD,EAGG,CAACJ,KAAD,CAHH;AAIA,SAAOA,KAAP;AACD,CAPM","sourcesContent":["import { useEffect, useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\n\n/**\n * @returns A new value that will be updated on every frame redraw with the\n * number of milliseconds elapsed since the value was started.\n * The clock is created in the stopped state.\n */\n\nexport const useClockValue = () => {\n const clock = useMemo(() => ValueApi.createClockValue(), []);\n useEffect(() => {\n clock.start();\n return clock.stop;\n }, [clock]);\n return clock;\n};\n"]}
1
+ {"version":3,"names":["useClockValue","clock","useMemo","ValueApi","createClockValue","useEffect","start","stop"],"sources":["useClockValue.ts"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\n\n/**\n * @returns A new value that will be updated on every frame redraw with the\n * number of milliseconds elapsed since the value was started.\n * The clock is created in the stopped state.\n */\n\nexport const useClockValue = () => {\n const clock = useMemo(() => ValueApi.createClockValue(), []);\n useEffect(() => {\n clock.start();\n return clock.stop;\n }, [clock]);\n return clock;\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAEO,MAAMA,aAAa,GAAG,MAAM;EACjC,MAAMC,KAAK,GAAG,IAAAC,cAAA,EAAQ,MAAMC,aAAA,CAASC,gBAAT,EAAd,EAA2C,EAA3C,CAAd;EACA,IAAAC,gBAAA,EAAU,MAAM;IACdJ,KAAK,CAACK,KAAN;IACA,OAAOL,KAAK,CAACM,IAAb;EACD,CAHD,EAGG,CAACN,KAAD,CAHH;EAIA,OAAOA,KAAP;AACD,CAPM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["useComputedValue.ts"],"names":["useComputedValue","cb","values","value","ValueApi","createComputedValue","filter","isValue","__invalidate"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,gBAAgB,GAAG,CAAIC,EAAJ,EAAiBC,MAAjB,KAAuC;AACrE,QAAMC,KAAK,GAAG,oBACZ,MAAMC,cAASC,mBAAT,CAAgCJ,EAAhC,EAAoCC,MAAM,CAACI,MAAP,CAAcC,mBAAd,CAApC,CADM,EAEZ;AACAL,EAAAA,MAHY,CAAd;AAKA,wBAAU,MAAM,MAAMC,KAAK,CAACK,YAAN,EAAtB,EAA4C,CAACL,KAAD,CAA5C;AACA,SAAOA,KAAP;AACD,CARM","sourcesContent":["import { useEffect, useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\nimport { isValue } from \"../../renderer/processors/Animations\";\n\n/**\n * Creates a new computed value - a value that will calculate its value depending\n * on other values.\n * @param cb Callback to calculate new value\n * @param values Dependant values\n * @returns A readonly value\n */\nexport const useComputedValue = <R>(cb: () => R, values: unknown[]) => {\n const value = useMemo(\n () => ValueApi.createComputedValue<R>(cb, values.filter(isValue)),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n values\n );\n useEffect(() => () => value.__invalidate(), [value]);\n return value;\n};\n"]}
1
+ {"version":3,"names":["useComputedValue","cb","values","value","useMemo","ValueApi","createComputedValue","filter","isValue","useEffect","__invalidate"],"sources":["useComputedValue.ts"],"sourcesContent":["import { useEffect, useMemo } from \"react\";\n\nimport { ValueApi } from \"../api\";\nimport { isValue } from \"../../renderer/processors/Animations\";\n\n/**\n * Creates a new computed value - a value that will calculate its value depending\n * on other values.\n * @param cb Callback to calculate new value\n * @param values Dependant values\n * @returns A readonly value\n */\nexport const useComputedValue = <R>(cb: () => R, values: unknown[]) => {\n const value = useMemo(\n () => ValueApi.createComputedValue<R>(cb, values.filter(isValue)),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n values\n );\n useEffect(() => () => value.__invalidate(), [value]);\n return value;\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,gBAAgB,GAAG,CAAIC,EAAJ,EAAiBC,MAAjB,KAAuC;EACrE,MAAMC,KAAK,GAAG,IAAAC,cAAA,EACZ,MAAMC,aAAA,CAASC,mBAAT,CAAgCL,EAAhC,EAAoCC,MAAM,CAACK,MAAP,CAAcC,mBAAd,CAApC,CADM,EAEZ;EACAN,MAHY,CAAd;EAKA,IAAAO,gBAAA,EAAU,MAAM,MAAMN,KAAK,CAACO,YAAN,EAAtB,EAA4C,CAACP,KAAD,CAA5C;EACA,OAAOA,KAAP;AACD,CARM"}
@@ -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,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
+ {"version":3,"names":["useValue","v","useMemo","ValueApi","createValue"],"sources":["useValue.ts"],"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"],"mappings":";;;;;;;AAAA;;AAEA;;AAGA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,GAAOC,CAAJ,IAAkC;EACxD;EACA,OAAO,IAAAC,cAAA,EAAQ,MAAMC,aAAA,CAASC,WAAT,CAAqBH,CAArB,CAAd,EAAuC,EAAvC,CAAP;AACD,CAHM"}
@@ -1 +1 @@
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
+ {"version":3,"names":["useValueEffect","value","cb","useEffect","addListener"],"sources":["useValueEffect.ts"],"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"],"mappings":";;;;;;;AAAA;;AAIA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GAAG,CAAIC,KAAJ,EAAyBC,EAAzB,KAAgD;EAC5E,IAAAC,gBAAA,EAAU,MAAM;IACd,OAAOF,KAAK,CAACG,WAAN,CAAkBF,EAAlB,CAAP,CADc,CAEd;EACD,CAHD,EAGG,CAACD,KAAD,CAHH;AAID,CALM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from \"./types\";\nexport * from \"./hooks\";\nexport * from \"./api\";\nexport * from \"./selector\";\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./types\";\nexport * from \"./hooks\";\nexport * from \"./api\";\nexport * from \"./selector\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["selector.ts"],"names":["Selector","value","selector"],"mappings":";;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,GAAG,CACtBC,KADsB,EAEtBC,QAFsB,KAGY;AAClC,SAAO;AACLA,IAAAA,QADK;AAELD,IAAAA;AAFK,GAAP;AAID,CARM","sourcesContent":["import type { SkiaValue } from \"./types\";\n\nexport type SkiaSelector<TReturn, TInput = unknown> = {\n value: SkiaValue<TInput>;\n selector: (v: TInput) => TReturn;\n};\n\n/**\n * Wraps a Skia Value with a selector function. The selector function can access the\n * inner values of the Skia Value so that we can dynamically ready array values and\n * object values when doing animations in Skia.\n * @param value Dependant value\n * @param selector Selector function to calculate new value from the Skia Value's value\n * @returns A descriptor that will be used by the reconciler to calculate the value\n */\nexport const Selector = <TInput, TReturn>(\n value: SkiaValue<TInput>,\n selector: (v: TInput) => TReturn\n): SkiaSelector<TReturn, TInput> => {\n return {\n selector,\n value,\n };\n};\n"]}
1
+ {"version":3,"names":["Selector","value","selector"],"sources":["selector.ts"],"sourcesContent":["import type { SkiaValue } from \"./types\";\n\nexport type SkiaSelector<TReturn, TInput = unknown> = {\n value: SkiaValue<TInput>;\n selector: (v: TInput) => TReturn;\n};\n\n/**\n * Wraps a Skia Value with a selector function. The selector function can access the\n * inner values of the Skia Value so that we can dynamically ready array values and\n * object values when doing animations in Skia.\n * @param value Dependant value\n * @param selector Selector function to calculate new value from the Skia Value's value\n * @returns A descriptor that will be used by the reconciler to calculate the value\n */\nexport const Selector = <TInput, TReturn>(\n value: SkiaValue<TInput>,\n selector: (v: TInput) => TReturn\n): SkiaSelector<TReturn, TInput> => {\n return {\n selector,\n value,\n };\n};\n"],"mappings":";;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,GAAG,CACtBC,KADsB,EAEtBC,QAFsB,KAGY;EAClC,OAAO;IACLA,QADK;IAELD;EAFK,CAAP;AAID,CARM"}