@shopify/react-native-skia 0.1.236 → 0.1.238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1153) hide show
  1. package/cpp/api/JsiSkApi.h +2 -0
  2. package/cpp/api/JsiSkCanvas.h +36 -0
  3. package/cpp/api/JsiSkRSXform.h +35 -7
  4. package/cpp/rnskia/dom/JsiDomApi.h +2 -0
  5. package/cpp/rnskia/dom/base/JsiDomNode.h +16 -0
  6. package/cpp/rnskia/dom/nodes/JsiAtlasNode.h +60 -0
  7. package/cpp/rnskia/dom/props/RSXformProp.h +52 -0
  8. package/cpp/rnskia/dom/props/RectProp.h +31 -0
  9. package/lib/commonjs/Platform/Platform.js +1 -5
  10. package/lib/commonjs/Platform/Platform.js.map +1 -1
  11. package/lib/commonjs/Platform/Platform.web.js +11 -33
  12. package/lib/commonjs/Platform/Platform.web.js.map +1 -1
  13. package/lib/commonjs/Platform/index.js +0 -2
  14. package/lib/commonjs/Platform/index.js.map +1 -1
  15. package/lib/commonjs/animation/functions/index.js +0 -8
  16. package/lib/commonjs/animation/functions/index.js.map +1 -1
  17. package/lib/commonjs/animation/functions/interpolate.js +12 -31
  18. package/lib/commonjs/animation/functions/interpolate.js.map +1 -1
  19. package/lib/commonjs/animation/functions/interpolateColors.js +2 -13
  20. package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -1
  21. package/lib/commonjs/animation/functions/interpolatePaths.js +1 -16
  22. package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -1
  23. package/lib/commonjs/animation/functions/interpolateVector.js +0 -5
  24. package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -1
  25. package/lib/commonjs/animation/index.js +0 -2
  26. package/lib/commonjs/animation/index.js.map +1 -1
  27. package/lib/commonjs/dom/nodes/DrawingNode.js +7 -22
  28. package/lib/commonjs/dom/nodes/DrawingNode.js.map +1 -1
  29. package/lib/commonjs/dom/nodes/GroupNode.js +0 -6
  30. package/lib/commonjs/dom/nodes/GroupNode.js.map +1 -1
  31. package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +2 -1
  32. package/lib/commonjs/dom/nodes/JsiSkDOM.js +28 -86
  33. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +1 -1
  34. package/lib/commonjs/dom/nodes/LayerNode.js +0 -11
  35. package/lib/commonjs/dom/nodes/LayerNode.js.map +1 -1
  36. package/lib/commonjs/dom/nodes/Node.js +4 -36
  37. package/lib/commonjs/dom/nodes/Node.js.map +1 -1
  38. package/lib/commonjs/dom/nodes/PaintNode.js +1 -29
  39. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  40. package/lib/commonjs/dom/nodes/RenderNode.js +3 -35
  41. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  42. package/lib/commonjs/dom/nodes/datatypes/Circle.js +6 -8
  43. package/lib/commonjs/dom/nodes/datatypes/Circle.js.map +1 -1
  44. package/lib/commonjs/dom/nodes/datatypes/Enum.js +0 -2
  45. package/lib/commonjs/dom/nodes/datatypes/Enum.js.map +1 -1
  46. package/lib/commonjs/dom/nodes/datatypes/Fitting.js +15 -46
  47. package/lib/commonjs/dom/nodes/datatypes/Fitting.js.map +1 -1
  48. package/lib/commonjs/dom/nodes/datatypes/Gradient.js +9 -20
  49. package/lib/commonjs/dom/nodes/datatypes/Gradient.js.map +1 -1
  50. package/lib/commonjs/dom/nodes/datatypes/Path.js +2 -8
  51. package/lib/commonjs/dom/nodes/datatypes/Path.js.map +1 -1
  52. package/lib/commonjs/dom/nodes/datatypes/Radius.js +0 -3
  53. package/lib/commonjs/dom/nodes/datatypes/Radius.js.map +1 -1
  54. package/lib/commonjs/dom/nodes/datatypes/Rect.js +10 -15
  55. package/lib/commonjs/dom/nodes/datatypes/Rect.js.map +1 -1
  56. package/lib/commonjs/dom/nodes/datatypes/Transform.js +0 -6
  57. package/lib/commonjs/dom/nodes/datatypes/Transform.js.map +1 -1
  58. package/lib/commonjs/dom/nodes/datatypes/index.js +0 -16
  59. package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
  60. package/lib/commonjs/dom/nodes/drawings/AtlasNode.d.ts +8 -0
  61. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js +36 -0
  62. package/lib/commonjs/dom/nodes/drawings/AtlasNode.js.map +1 -0
  63. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js +4 -18
  64. package/lib/commonjs/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  65. package/lib/commonjs/dom/nodes/drawings/Box.js +8 -34
  66. package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
  67. package/lib/commonjs/dom/nodes/drawings/CircleNode.js +4 -15
  68. package/lib/commonjs/dom/nodes/drawings/CircleNode.js.map +1 -1
  69. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js +4 -12
  70. package/lib/commonjs/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  71. package/lib/commonjs/dom/nodes/drawings/FillNode.js +5 -14
  72. package/lib/commonjs/dom/nodes/drawings/FillNode.js.map +1 -1
  73. package/lib/commonjs/dom/nodes/drawings/ImageNode.js +6 -19
  74. package/lib/commonjs/dom/nodes/drawings/ImageNode.js.map +1 -1
  75. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js +3 -18
  76. package/lib/commonjs/dom/nodes/drawings/ImageSVG.js.map +1 -1
  77. package/lib/commonjs/dom/nodes/drawings/LineNode.js +4 -12
  78. package/lib/commonjs/dom/nodes/drawings/LineNode.js.map +1 -1
  79. package/lib/commonjs/dom/nodes/drawings/OvalNode.js +4 -15
  80. package/lib/commonjs/dom/nodes/drawings/OvalNode.js.map +1 -1
  81. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js +3 -12
  82. package/lib/commonjs/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  83. package/lib/commonjs/dom/nodes/drawings/PatchNode.js +6 -18
  84. package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
  85. package/lib/commonjs/dom/nodes/drawings/PathNode.js +4 -21
  86. package/lib/commonjs/dom/nodes/drawings/PathNode.js.map +1 -1
  87. package/lib/commonjs/dom/nodes/drawings/PictureNode.js +3 -11
  88. package/lib/commonjs/dom/nodes/drawings/PictureNode.js.map +1 -1
  89. package/lib/commonjs/dom/nodes/drawings/PointsNode.js +4 -14
  90. package/lib/commonjs/dom/nodes/drawings/PointsNode.js.map +1 -1
  91. package/lib/commonjs/dom/nodes/drawings/RRectNode.js +7 -18
  92. package/lib/commonjs/dom/nodes/drawings/RRectNode.js.map +1 -1
  93. package/lib/commonjs/dom/nodes/drawings/RectNode.js +4 -15
  94. package/lib/commonjs/dom/nodes/drawings/RectNode.js.map +1 -1
  95. package/lib/commonjs/dom/nodes/drawings/Text.js +18 -62
  96. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  97. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +4 -16
  98. package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
  99. package/lib/commonjs/dom/nodes/drawings/index.d.ts +1 -0
  100. package/lib/commonjs/dom/nodes/drawings/index.js +11 -34
  101. package/lib/commonjs/dom/nodes/drawings/index.js.map +1 -1
  102. package/lib/commonjs/dom/nodes/index.js +0 -6
  103. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  104. package/lib/commonjs/dom/nodes/paint/BlendNode.js +4 -18
  105. package/lib/commonjs/dom/nodes/paint/BlendNode.js.map +1 -1
  106. package/lib/commonjs/dom/nodes/paint/ColorFilters.js +0 -34
  107. package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
  108. package/lib/commonjs/dom/nodes/paint/ImageFilters.js +7 -60
  109. package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
  110. package/lib/commonjs/dom/nodes/paint/MaskFilters.js +0 -8
  111. package/lib/commonjs/dom/nodes/paint/MaskFilters.js.map +1 -1
  112. package/lib/commonjs/dom/nodes/paint/PathEffects.js +0 -45
  113. package/lib/commonjs/dom/nodes/paint/PathEffects.js.map +1 -1
  114. package/lib/commonjs/dom/nodes/paint/Shaders.js +1 -48
  115. package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
  116. package/lib/commonjs/dom/nodes/paint/index.js +0 -12
  117. package/lib/commonjs/dom/nodes/paint/index.js.map +1 -1
  118. package/lib/commonjs/dom/types/DeclarationContext.js +3 -30
  119. package/lib/commonjs/dom/types/DeclarationContext.js.map +1 -1
  120. package/lib/commonjs/dom/types/DrawingContext.js +3 -91
  121. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  122. package/lib/commonjs/dom/types/Drawings.d.ts +7 -1
  123. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  124. package/lib/commonjs/dom/types/NodeType.d.ts +1 -0
  125. package/lib/commonjs/dom/types/NodeType.js +7 -11
  126. package/lib/commonjs/dom/types/NodeType.js.map +1 -1
  127. package/lib/commonjs/dom/types/SkDOM.d.ts +2 -1
  128. package/lib/commonjs/dom/types/SkDOM.js.map +1 -1
  129. package/lib/commonjs/dom/types/index.js +0 -26
  130. package/lib/commonjs/dom/types/index.js.map +1 -1
  131. package/lib/commonjs/external/index.js +0 -2
  132. package/lib/commonjs/external/index.js.map +1 -1
  133. package/lib/commonjs/external/reanimated/buffers.d.ts +5 -0
  134. package/lib/commonjs/external/reanimated/buffers.js +39 -0
  135. package/lib/commonjs/external/reanimated/buffers.js.map +1 -0
  136. package/lib/commonjs/external/reanimated/index.d.ts +1 -0
  137. package/lib/commonjs/external/reanimated/index.js +11 -10
  138. package/lib/commonjs/external/reanimated/index.js.map +1 -1
  139. package/lib/commonjs/external/reanimated/interpolators.d.ts +1 -1
  140. package/lib/commonjs/external/reanimated/interpolators.js +5 -20
  141. package/lib/commonjs/external/reanimated/interpolators.js.map +1 -1
  142. package/lib/commonjs/external/reanimated/moduleWrapper.js +12 -29
  143. package/lib/commonjs/external/reanimated/moduleWrapper.js.map +1 -1
  144. package/lib/commonjs/external/reanimated/renderHelpers.js +5 -31
  145. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  146. package/lib/commonjs/external/reanimated/textures.js +3 -25
  147. package/lib/commonjs/external/reanimated/textures.js.map +1 -1
  148. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js +16 -14
  149. package/lib/commonjs/external/reanimated/useAnimatedImageValue.js.map +1 -1
  150. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js +0 -4
  151. package/lib/commonjs/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  152. package/lib/commonjs/headless/index.js +1 -12
  153. package/lib/commonjs/headless/index.js.map +1 -1
  154. package/lib/commonjs/index.js +0 -20
  155. package/lib/commonjs/index.js.map +1 -1
  156. package/lib/commonjs/mock/index.js +5 -6
  157. package/lib/commonjs/mock/index.js.map +1 -1
  158. package/lib/commonjs/renderer/Canvas.js +21 -46
  159. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  160. package/lib/commonjs/renderer/Container.js +4 -15
  161. package/lib/commonjs/renderer/Container.js.map +1 -1
  162. package/lib/commonjs/renderer/HostComponents.d.ts +3 -1
  163. package/lib/commonjs/renderer/HostComponents.js +3 -64
  164. package/lib/commonjs/renderer/HostComponents.js.map +1 -1
  165. package/lib/commonjs/renderer/HostConfig.js +9 -38
  166. package/lib/commonjs/renderer/HostConfig.js.map +1 -1
  167. package/lib/commonjs/renderer/Offscreen.d.ts +4 -2
  168. package/lib/commonjs/renderer/Offscreen.js +19 -24
  169. package/lib/commonjs/renderer/Offscreen.js.map +1 -1
  170. package/lib/commonjs/renderer/Reconciler.js +4 -20
  171. package/lib/commonjs/renderer/Reconciler.js.map +1 -1
  172. package/lib/commonjs/renderer/components/Blend.js +0 -4
  173. package/lib/commonjs/renderer/components/Blend.js.map +1 -1
  174. package/lib/commonjs/renderer/components/Group.js +6 -15
  175. package/lib/commonjs/renderer/components/Group.js.map +1 -1
  176. package/lib/commonjs/renderer/components/Mask.js +6 -14
  177. package/lib/commonjs/renderer/components/Mask.js.map +1 -1
  178. package/lib/commonjs/renderer/components/Paint.js +0 -4
  179. package/lib/commonjs/renderer/components/Paint.js.map +1 -1
  180. package/lib/commonjs/renderer/components/Picture.js +0 -4
  181. package/lib/commonjs/renderer/components/Picture.js.map +1 -1
  182. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +5 -13
  183. package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  184. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +5 -11
  185. package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  186. package/lib/commonjs/renderer/components/backdrop/index.js +0 -4
  187. package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -1
  188. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +0 -4
  189. package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -1
  190. package/lib/commonjs/renderer/components/colorFilters/Lerp.js +0 -4
  191. package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -1
  192. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +0 -4
  193. package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  194. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +0 -4
  195. package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  196. package/lib/commonjs/renderer/components/colorFilters/Matrix.js +0 -6
  197. package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -1
  198. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +0 -4
  199. package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  200. package/lib/commonjs/renderer/components/colorFilters/index.js +0 -12
  201. package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -1
  202. package/lib/commonjs/renderer/components/image/Image.js +0 -4
  203. package/lib/commonjs/renderer/components/image/Image.js.map +1 -1
  204. package/lib/commonjs/renderer/components/image/ImageSVG.js +0 -4
  205. package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -1
  206. package/lib/commonjs/renderer/components/image/ImageShader.js +9 -15
  207. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  208. package/lib/commonjs/renderer/components/image/index.js +0 -6
  209. package/lib/commonjs/renderer/components/image/index.js.map +1 -1
  210. package/lib/commonjs/renderer/components/imageFilters/Blur.js +4 -10
  211. package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -1
  212. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +0 -4
  213. package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  214. package/lib/commonjs/renderer/components/imageFilters/Morphology.js +4 -10
  215. package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -1
  216. package/lib/commonjs/renderer/components/imageFilters/Offset.js +5 -11
  217. package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -1
  218. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +0 -4
  219. package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  220. package/lib/commonjs/renderer/components/imageFilters/Shadow.js +0 -4
  221. package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -1
  222. package/lib/commonjs/renderer/components/imageFilters/index.js +0 -12
  223. package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -1
  224. package/lib/commonjs/renderer/components/index.js +0 -32
  225. package/lib/commonjs/renderer/components/index.js.map +1 -1
  226. package/lib/commonjs/renderer/components/maskFilters/Blur.js +5 -11
  227. package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -1
  228. package/lib/commonjs/renderer/components/maskFilters/index.js +0 -2
  229. package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -1
  230. package/lib/commonjs/renderer/components/paragraph/Paragraph.js +0 -4
  231. package/lib/commonjs/renderer/components/paragraph/Paragraph.js.map +1 -1
  232. package/lib/commonjs/renderer/components/paragraph/index.js +0 -2
  233. package/lib/commonjs/renderer/components/paragraph/index.js.map +1 -1
  234. package/lib/commonjs/renderer/components/pathEffects/Corner.js +0 -4
  235. package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -1
  236. package/lib/commonjs/renderer/components/pathEffects/Dash.js +0 -4
  237. package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -1
  238. package/lib/commonjs/renderer/components/pathEffects/Discrete.js +4 -10
  239. package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -1
  240. package/lib/commonjs/renderer/components/pathEffects/Line2D.js +0 -4
  241. package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -1
  242. package/lib/commonjs/renderer/components/pathEffects/Path1D.js +0 -4
  243. package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -1
  244. package/lib/commonjs/renderer/components/pathEffects/Path2D.js +0 -4
  245. package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -1
  246. package/lib/commonjs/renderer/components/pathEffects/Sum.js +0 -4
  247. package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -1
  248. package/lib/commonjs/renderer/components/pathEffects/index.js +0 -14
  249. package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -1
  250. package/lib/commonjs/renderer/components/shaders/Color.js +0 -4
  251. package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -1
  252. package/lib/commonjs/renderer/components/shaders/FractalNoise.js +6 -12
  253. package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -1
  254. package/lib/commonjs/renderer/components/shaders/LinearGradient.js +0 -4
  255. package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -1
  256. package/lib/commonjs/renderer/components/shaders/RadialGradient.js +0 -4
  257. package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -1
  258. package/lib/commonjs/renderer/components/shaders/Shader.js +4 -10
  259. package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -1
  260. package/lib/commonjs/renderer/components/shaders/ShaderLib.js +1 -2
  261. package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -1
  262. package/lib/commonjs/renderer/components/shaders/SweepGradient.js +0 -4
  263. package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -1
  264. package/lib/commonjs/renderer/components/shaders/Turbulence.js +6 -12
  265. package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -1
  266. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +0 -4
  267. package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  268. package/lib/commonjs/renderer/components/shaders/index.js +0 -18
  269. package/lib/commonjs/renderer/components/shaders/index.js.map +1 -1
  270. package/lib/commonjs/renderer/components/shapes/Atlas.d.ts +4 -0
  271. package/lib/commonjs/renderer/components/shapes/Atlas.js +13 -0
  272. package/lib/commonjs/renderer/components/shapes/Atlas.js.map +1 -0
  273. package/lib/commonjs/renderer/components/shapes/Box.js +0 -6
  274. package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -1
  275. package/lib/commonjs/renderer/components/shapes/Circle.js +0 -4
  276. package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -1
  277. package/lib/commonjs/renderer/components/shapes/DiffRect.js +0 -4
  278. package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -1
  279. package/lib/commonjs/renderer/components/shapes/Fill.js +0 -4
  280. package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -1
  281. package/lib/commonjs/renderer/components/shapes/FitBox.js +8 -18
  282. package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -1
  283. package/lib/commonjs/renderer/components/shapes/Line.js +0 -4
  284. package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -1
  285. package/lib/commonjs/renderer/components/shapes/Oval.js +0 -4
  286. package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -1
  287. package/lib/commonjs/renderer/components/shapes/Patch.js +0 -4
  288. package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -1
  289. package/lib/commonjs/renderer/components/shapes/Path.js +5 -11
  290. package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -1
  291. package/lib/commonjs/renderer/components/shapes/Points.js +4 -10
  292. package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -1
  293. package/lib/commonjs/renderer/components/shapes/Rect.js +0 -4
  294. package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -1
  295. package/lib/commonjs/renderer/components/shapes/RoundedRect.js +0 -4
  296. package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -1
  297. package/lib/commonjs/renderer/components/shapes/Vertices.js +4 -10
  298. package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -1
  299. package/lib/commonjs/renderer/components/shapes/index.d.ts +1 -0
  300. package/lib/commonjs/renderer/components/shapes/index.js +11 -26
  301. package/lib/commonjs/renderer/components/shapes/index.js.map +1 -1
  302. package/lib/commonjs/renderer/components/text/Glyphs.js +5 -11
  303. package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -1
  304. package/lib/commonjs/renderer/components/text/Text.js +5 -11
  305. package/lib/commonjs/renderer/components/text/Text.js.map +1 -1
  306. package/lib/commonjs/renderer/components/text/TextBlob.js +5 -11
  307. package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -1
  308. package/lib/commonjs/renderer/components/text/TextPath.js +4 -10
  309. package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -1
  310. package/lib/commonjs/renderer/components/text/index.js +0 -8
  311. package/lib/commonjs/renderer/components/text/index.js.map +1 -1
  312. package/lib/commonjs/renderer/index.js +0 -2
  313. package/lib/commonjs/renderer/index.js.map +1 -1
  314. package/lib/commonjs/renderer/processors/Animations/index.js +0 -2
  315. package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -1
  316. package/lib/commonjs/renderer/processors/index.js +0 -4
  317. package/lib/commonjs/renderer/processors/index.js.map +1 -1
  318. package/lib/commonjs/renderer/processors/math/Coordinates.js +0 -12
  319. package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -1
  320. package/lib/commonjs/renderer/processors/math/Math.js +1 -7
  321. package/lib/commonjs/renderer/processors/math/Math.js.map +1 -1
  322. package/lib/commonjs/renderer/processors/math/Transforms.js +0 -3
  323. package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -1
  324. package/lib/commonjs/renderer/processors/math/index.js +0 -6
  325. package/lib/commonjs/renderer/processors/math/index.js.map +1 -1
  326. package/lib/commonjs/renderer/typeddash.js +2 -11
  327. package/lib/commonjs/renderer/typeddash.js.map +1 -1
  328. package/lib/commonjs/skia/NativeSetup.js +0 -6
  329. package/lib/commonjs/skia/NativeSetup.js.map +1 -1
  330. package/lib/commonjs/skia/Skia.js +2 -3
  331. package/lib/commonjs/skia/Skia.js.map +1 -1
  332. package/lib/commonjs/skia/Skia.web.js +1 -4
  333. package/lib/commonjs/skia/Skia.web.js.map +1 -1
  334. package/lib/commonjs/skia/core/AnimatedImage.d.ts +1 -1
  335. package/lib/commonjs/skia/core/AnimatedImage.js +2 -7
  336. package/lib/commonjs/skia/core/AnimatedImage.js.map +1 -1
  337. package/lib/commonjs/skia/core/Data.d.ts +1 -1
  338. package/lib/commonjs/skia/core/Data.js +12 -25
  339. package/lib/commonjs/skia/core/Data.js.map +1 -1
  340. package/lib/commonjs/skia/core/Font.js +10 -36
  341. package/lib/commonjs/skia/core/Font.js.map +1 -1
  342. package/lib/commonjs/skia/core/Image.js +3 -16
  343. package/lib/commonjs/skia/core/Image.js.map +1 -1
  344. package/lib/commonjs/skia/core/Matrix.js +0 -4
  345. package/lib/commonjs/skia/core/Matrix.js.map +1 -1
  346. package/lib/commonjs/skia/core/Picture.js +0 -7
  347. package/lib/commonjs/skia/core/Picture.js.map +1 -1
  348. package/lib/commonjs/skia/core/RRect.js +0 -3
  349. package/lib/commonjs/skia/core/RRect.js.map +1 -1
  350. package/lib/commonjs/skia/core/Rect.d.ts +2 -2
  351. package/lib/commonjs/skia/core/Rect.js +0 -17
  352. package/lib/commonjs/skia/core/Rect.js.map +1 -1
  353. package/lib/commonjs/skia/core/SVG.js +0 -5
  354. package/lib/commonjs/skia/core/SVG.js.map +1 -1
  355. package/lib/commonjs/skia/core/Typeface.js +1 -6
  356. package/lib/commonjs/skia/core/Typeface.js.map +1 -1
  357. package/lib/commonjs/skia/core/Vector.js +3 -17
  358. package/lib/commonjs/skia/core/Vector.js.map +1 -1
  359. package/lib/commonjs/skia/core/index.js +0 -22
  360. package/lib/commonjs/skia/core/index.js.map +1 -1
  361. package/lib/commonjs/skia/index.js +0 -5
  362. package/lib/commonjs/skia/index.js.map +1 -1
  363. package/lib/commonjs/skia/types/AnimatedImage/index.js +0 -4
  364. package/lib/commonjs/skia/types/AnimatedImage/index.js.map +1 -1
  365. package/lib/commonjs/skia/types/Canvas.d.ts +16 -1
  366. package/lib/commonjs/skia/types/Canvas.js +6 -11
  367. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  368. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +0 -2
  369. package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  370. package/lib/commonjs/skia/types/ColorFilter/index.js +0 -4
  371. package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -1
  372. package/lib/commonjs/skia/types/Data/Data.js +0 -2
  373. package/lib/commonjs/skia/types/Data/Data.js.map +1 -1
  374. package/lib/commonjs/skia/types/Data/index.js +0 -4
  375. package/lib/commonjs/skia/types/Data/index.js.map +1 -1
  376. package/lib/commonjs/skia/types/Font/Font.js +16 -34
  377. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  378. package/lib/commonjs/skia/types/Font/index.js +0 -6
  379. package/lib/commonjs/skia/types/Font/index.js.map +1 -1
  380. package/lib/commonjs/skia/types/Image/Image.d.ts +8 -0
  381. package/lib/commonjs/skia/types/Image/Image.js +9 -17
  382. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  383. package/lib/commonjs/skia/types/Image/ImageFactory.js +6 -11
  384. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  385. package/lib/commonjs/skia/types/Image/index.js +0 -4
  386. package/lib/commonjs/skia/types/Image/index.js.map +1 -1
  387. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +3 -7
  388. package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  389. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +3 -5
  390. package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  391. package/lib/commonjs/skia/types/ImageFilter/index.js +0 -4
  392. package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -1
  393. package/lib/commonjs/skia/types/MaskFilter.js +4 -8
  394. package/lib/commonjs/skia/types/MaskFilter.js.map +1 -1
  395. package/lib/commonjs/skia/types/Matrix.js +0 -7
  396. package/lib/commonjs/skia/types/Matrix.js.map +1 -1
  397. package/lib/commonjs/skia/types/Matrix4.js +22 -90
  398. package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
  399. package/lib/commonjs/skia/types/Paint/BlendMode.js +3 -6
  400. package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -1
  401. package/lib/commonjs/skia/types/Paint/Paint.js +9 -19
  402. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  403. package/lib/commonjs/skia/types/Paint/index.js +0 -4
  404. package/lib/commonjs/skia/types/Paint/index.js.map +1 -1
  405. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js +3 -5
  406. package/lib/commonjs/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  407. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js +9 -17
  408. package/lib/commonjs/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  409. package/lib/commonjs/skia/types/Paragraph/TextStyle.js +9 -17
  410. package/lib/commonjs/skia/types/Paragraph/TextStyle.js.map +1 -1
  411. package/lib/commonjs/skia/types/Paragraph/index.js +0 -12
  412. package/lib/commonjs/skia/types/Paragraph/index.js.map +1 -1
  413. package/lib/commonjs/skia/types/Path/Path.js +9 -20
  414. package/lib/commonjs/skia/types/Path/Path.js.map +1 -1
  415. package/lib/commonjs/skia/types/Path/index.js +0 -4
  416. package/lib/commonjs/skia/types/Path/index.js.map +1 -1
  417. package/lib/commonjs/skia/types/PathEffect.js +3 -7
  418. package/lib/commonjs/skia/types/PathEffect.js.map +1 -1
  419. package/lib/commonjs/skia/types/Picture/index.js +0 -6
  420. package/lib/commonjs/skia/types/Picture/index.js.map +1 -1
  421. package/lib/commonjs/skia/types/Point.js +3 -5
  422. package/lib/commonjs/skia/types/Point.js.map +1 -1
  423. package/lib/commonjs/skia/types/RRect.js +2 -3
  424. package/lib/commonjs/skia/types/RRect.js.map +1 -1
  425. package/lib/commonjs/skia/types/RSXform.d.ts +7 -1
  426. package/lib/commonjs/skia/types/RSXform.js.map +1 -1
  427. package/lib/commonjs/skia/types/Rect.d.ts +4 -0
  428. package/lib/commonjs/skia/types/Rect.js +0 -3
  429. package/lib/commonjs/skia/types/Rect.js.map +1 -1
  430. package/lib/commonjs/skia/types/RuntimeEffect/index.js +0 -4
  431. package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -1
  432. package/lib/commonjs/skia/types/SVG/index.js +0 -4
  433. package/lib/commonjs/skia/types/SVG/index.js.map +1 -1
  434. package/lib/commonjs/skia/types/Shader/Shader.js +4 -12
  435. package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -1
  436. package/lib/commonjs/skia/types/Shader/index.js +0 -4
  437. package/lib/commonjs/skia/types/Shader/index.js.map +1 -1
  438. package/lib/commonjs/skia/types/Skia.d.ts +3 -2
  439. package/lib/commonjs/skia/types/Skia.js.map +1 -1
  440. package/lib/commonjs/skia/types/Surface/index.js +0 -4
  441. package/lib/commonjs/skia/types/Surface/index.js.map +1 -1
  442. package/lib/commonjs/skia/types/Typeface/index.js +0 -4
  443. package/lib/commonjs/skia/types/Typeface/index.js.map +1 -1
  444. package/lib/commonjs/skia/types/Vertices/Vertices.js +3 -5
  445. package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -1
  446. package/lib/commonjs/skia/types/Vertices/index.js +0 -2
  447. package/lib/commonjs/skia/types/Vertices/index.js.map +1 -1
  448. package/lib/commonjs/skia/types/index.js +0 -62
  449. package/lib/commonjs/skia/types/index.js.map +1 -1
  450. package/lib/commonjs/skia/web/Host.js +7 -29
  451. package/lib/commonjs/skia/web/Host.js.map +1 -1
  452. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js +3 -13
  453. package/lib/commonjs/skia/web/JsiSkAnimatedImage.js.map +1 -1
  454. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js +0 -9
  455. package/lib/commonjs/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  456. package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +2 -1
  457. package/lib/commonjs/skia/web/JsiSkCanvas.js +25 -72
  458. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  459. package/lib/commonjs/skia/web/JsiSkColor.js +10 -54
  460. package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -1
  461. package/lib/commonjs/skia/web/JsiSkColorFilter.js +3 -7
  462. package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -1
  463. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +0 -12
  464. package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  465. package/lib/commonjs/skia/web/JsiSkContourMeasure.js +3 -13
  466. package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -1
  467. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +3 -11
  468. package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  469. package/lib/commonjs/skia/web/JsiSkData.js +5 -8
  470. package/lib/commonjs/skia/web/JsiSkData.js.map +1 -1
  471. package/lib/commonjs/skia/web/JsiSkDataFactory.js +0 -10
  472. package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -1
  473. package/lib/commonjs/skia/web/JsiSkFont.js +5 -33
  474. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  475. package/lib/commonjs/skia/web/JsiSkFontMgr.js +0 -8
  476. package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -1
  477. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +0 -8
  478. package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  479. package/lib/commonjs/skia/web/JsiSkImage.js +11 -33
  480. package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -1
  481. package/lib/commonjs/skia/web/JsiSkImageFactory.js +2 -15
  482. package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -1
  483. package/lib/commonjs/skia/web/JsiSkImageFilter.js +3 -7
  484. package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -1
  485. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +0 -28
  486. package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  487. package/lib/commonjs/skia/web/JsiSkMaskFilter.js +3 -7
  488. package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -1
  489. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +0 -6
  490. package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  491. package/lib/commonjs/skia/web/JsiSkMatrix.js +9 -26
  492. package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -1
  493. package/lib/commonjs/skia/web/JsiSkPaint.js +3 -35
  494. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  495. package/lib/commonjs/skia/web/JsiSkParagraph.js +21 -47
  496. package/lib/commonjs/skia/web/JsiSkParagraph.js.map +1 -1
  497. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js +4 -26
  498. package/lib/commonjs/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  499. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js +1 -11
  500. package/lib/commonjs/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  501. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js +19 -24
  502. package/lib/commonjs/skia/web/JsiSkParagraphStyle.js.map +1 -1
  503. package/lib/commonjs/skia/web/JsiSkPath.js +4 -77
  504. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  505. package/lib/commonjs/skia/web/JsiSkPathEffect.js +3 -7
  506. package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -1
  507. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +0 -23
  508. package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  509. package/lib/commonjs/skia/web/JsiSkPathFactory.js +0 -16
  510. package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -1
  511. package/lib/commonjs/skia/web/JsiSkPicture.js +3 -13
  512. package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -1
  513. package/lib/commonjs/skia/web/JsiSkPictureFactory.js +0 -8
  514. package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -1
  515. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +4 -13
  516. package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -1
  517. package/lib/commonjs/skia/web/JsiSkPoint.js +5 -12
  518. package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -1
  519. package/lib/commonjs/skia/web/JsiSkRRect.js +5 -17
  520. package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -1
  521. package/lib/commonjs/skia/web/JsiSkRSXform.d.ts +8 -2
  522. package/lib/commonjs/skia/web/JsiSkRSXform.js +30 -9
  523. package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -1
  524. package/lib/commonjs/skia/web/JsiSkRect.d.ts +3 -2
  525. package/lib/commonjs/skia/web/JsiSkRect.js +11 -14
  526. package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -1
  527. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +3 -16
  528. package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  529. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +0 -8
  530. package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  531. package/lib/commonjs/skia/web/JsiSkSVGFactory.js +0 -6
  532. package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -1
  533. package/lib/commonjs/skia/web/JsiSkShader.js +3 -7
  534. package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -1
  535. package/lib/commonjs/skia/web/JsiSkShaderFactory.js +0 -15
  536. package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -1
  537. package/lib/commonjs/skia/web/JsiSkSurface.js +3 -13
  538. package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -1
  539. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +0 -14
  540. package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  541. package/lib/commonjs/skia/web/JsiSkTextBlob.js +3 -7
  542. package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -1
  543. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +2 -12
  544. package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  545. package/lib/commonjs/skia/web/JsiSkTextStyle.js +0 -3
  546. package/lib/commonjs/skia/web/JsiSkTextStyle.js.map +1 -1
  547. package/lib/commonjs/skia/web/JsiSkTypeface.js +3 -10
  548. package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -1
  549. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +0 -8
  550. package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  551. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js +16 -26
  552. package/lib/commonjs/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  553. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -6
  554. package/lib/commonjs/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  555. package/lib/commonjs/skia/web/JsiSkVertices.js +3 -10
  556. package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -1
  557. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +8 -27
  558. package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -1
  559. package/lib/commonjs/skia/web/JsiSkia.js +5 -33
  560. package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
  561. package/lib/commonjs/skia/web/index.js +0 -2
  562. package/lib/commonjs/skia/web/index.js.map +1 -1
  563. package/lib/commonjs/specs/NativeSkiaModule.js +1 -5
  564. package/lib/commonjs/specs/NativeSkiaModule.js.map +1 -1
  565. package/lib/commonjs/specs/NativeSkiaModule.web.js +1 -4
  566. package/lib/commonjs/specs/NativeSkiaModule.web.js.map +1 -1
  567. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +1 -6
  568. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +1 -1
  569. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js +1 -6
  570. package/lib/commonjs/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  571. package/lib/commonjs/views/SkiaBaseWebView.js +18 -66
  572. package/lib/commonjs/views/SkiaBaseWebView.js.map +1 -1
  573. package/lib/commonjs/views/SkiaDomView.js +8 -40
  574. package/lib/commonjs/views/SkiaDomView.js.map +1 -1
  575. package/lib/commonjs/views/SkiaDomView.web.js +0 -9
  576. package/lib/commonjs/views/SkiaDomView.web.js.map +1 -1
  577. package/lib/commonjs/views/SkiaJSDomView.js +10 -43
  578. package/lib/commonjs/views/SkiaJSDomView.js.map +1 -1
  579. package/lib/commonjs/views/SkiaJSDomView.web.js +0 -1
  580. package/lib/commonjs/views/SkiaJSDomView.web.js.map +1 -1
  581. package/lib/commonjs/views/SkiaPictureView.js +6 -32
  582. package/lib/commonjs/views/SkiaPictureView.js.map +1 -1
  583. package/lib/commonjs/views/SkiaPictureView.web.js +0 -5
  584. package/lib/commonjs/views/SkiaPictureView.web.js.map +1 -1
  585. package/lib/commonjs/views/SkiaViewNativeId.js +1 -2
  586. package/lib/commonjs/views/SkiaViewNativeId.js.map +1 -1
  587. package/lib/commonjs/views/api.js.map +1 -1
  588. package/lib/commonjs/views/index.js +0 -8
  589. package/lib/commonjs/views/index.js.map +1 -1
  590. package/lib/commonjs/views/types.js +3 -5
  591. package/lib/commonjs/views/types.js.map +1 -1
  592. package/lib/commonjs/views/useTouchHandler.js +19 -33
  593. package/lib/commonjs/views/useTouchHandler.js.map +1 -1
  594. package/lib/commonjs/web/LoadSkiaWeb.js +8 -12
  595. package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
  596. package/lib/commonjs/web/WithSkiaWeb.js +10 -18
  597. package/lib/commonjs/web/WithSkiaWeb.js.map +1 -1
  598. package/lib/commonjs/web/index.js +0 -4
  599. package/lib/commonjs/web/index.js.map +1 -1
  600. package/lib/module/Platform/Platform.js.map +1 -1
  601. package/lib/module/Platform/Platform.web.js +7 -23
  602. package/lib/module/Platform/Platform.web.js.map +1 -1
  603. package/lib/module/Platform/index.js.map +1 -1
  604. package/lib/module/animation/functions/index.js.map +1 -1
  605. package/lib/module/animation/functions/interpolate.js +12 -29
  606. package/lib/module/animation/functions/interpolate.js.map +1 -1
  607. package/lib/module/animation/functions/interpolateColors.js +2 -5
  608. package/lib/module/animation/functions/interpolateColors.js.map +1 -1
  609. package/lib/module/animation/functions/interpolatePaths.js +1 -13
  610. package/lib/module/animation/functions/interpolatePaths.js.map +1 -1
  611. package/lib/module/animation/functions/interpolateVector.js.map +1 -1
  612. package/lib/module/animation/index.js.map +1 -1
  613. package/lib/module/dom/nodes/DrawingNode.js +7 -17
  614. package/lib/module/dom/nodes/DrawingNode.js.map +1 -1
  615. package/lib/module/dom/nodes/GroupNode.js +0 -2
  616. package/lib/module/dom/nodes/GroupNode.js.map +1 -1
  617. package/lib/module/dom/nodes/JsiSkDOM.d.ts +2 -1
  618. package/lib/module/dom/nodes/JsiSkDOM.js +18 -65
  619. package/lib/module/dom/nodes/JsiSkDOM.js.map +1 -1
  620. package/lib/module/dom/nodes/LayerNode.js +0 -6
  621. package/lib/module/dom/nodes/LayerNode.js.map +1 -1
  622. package/lib/module/dom/nodes/Node.js +4 -32
  623. package/lib/module/dom/nodes/Node.js.map +1 -1
  624. package/lib/module/dom/nodes/PaintNode.js +1 -23
  625. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  626. package/lib/module/dom/nodes/RenderNode.js +3 -29
  627. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  628. package/lib/module/dom/nodes/datatypes/Circle.js +4 -4
  629. package/lib/module/dom/nodes/datatypes/Circle.js.map +1 -1
  630. package/lib/module/dom/nodes/datatypes/Enum.js.map +1 -1
  631. package/lib/module/dom/nodes/datatypes/Fitting.js +15 -39
  632. package/lib/module/dom/nodes/datatypes/Fitting.js.map +1 -1
  633. package/lib/module/dom/nodes/datatypes/Gradient.js +7 -9
  634. package/lib/module/dom/nodes/datatypes/Gradient.js.map +1 -1
  635. package/lib/module/dom/nodes/datatypes/Path.js +2 -3
  636. package/lib/module/dom/nodes/datatypes/Path.js.map +1 -1
  637. package/lib/module/dom/nodes/datatypes/Radius.js +0 -1
  638. package/lib/module/dom/nodes/datatypes/Radius.js.map +1 -1
  639. package/lib/module/dom/nodes/datatypes/Rect.js +5 -7
  640. package/lib/module/dom/nodes/datatypes/Rect.js.map +1 -1
  641. package/lib/module/dom/nodes/datatypes/Transform.js +0 -3
  642. package/lib/module/dom/nodes/datatypes/Transform.js.map +1 -1
  643. package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
  644. package/lib/module/dom/nodes/drawings/AtlasNode.d.ts +8 -0
  645. package/lib/module/dom/nodes/drawings/AtlasNode.js +29 -0
  646. package/lib/module/dom/nodes/drawings/AtlasNode.js.map +1 -0
  647. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js +4 -13
  648. package/lib/module/dom/nodes/drawings/BackdropFilterNode.js.map +1 -1
  649. package/lib/module/dom/nodes/drawings/Box.js +8 -27
  650. package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
  651. package/lib/module/dom/nodes/drawings/CircleNode.js +4 -10
  652. package/lib/module/dom/nodes/drawings/CircleNode.js.map +1 -1
  653. package/lib/module/dom/nodes/drawings/DiffRectNode.js +4 -8
  654. package/lib/module/dom/nodes/drawings/DiffRectNode.js.map +1 -1
  655. package/lib/module/dom/nodes/drawings/FillNode.js +5 -10
  656. package/lib/module/dom/nodes/drawings/FillNode.js.map +1 -1
  657. package/lib/module/dom/nodes/drawings/ImageNode.js +4 -14
  658. package/lib/module/dom/nodes/drawings/ImageNode.js.map +1 -1
  659. package/lib/module/dom/nodes/drawings/ImageSVG.js +3 -14
  660. package/lib/module/dom/nodes/drawings/ImageSVG.js.map +1 -1
  661. package/lib/module/dom/nodes/drawings/LineNode.js +4 -8
  662. package/lib/module/dom/nodes/drawings/LineNode.js.map +1 -1
  663. package/lib/module/dom/nodes/drawings/OvalNode.js +4 -10
  664. package/lib/module/dom/nodes/drawings/OvalNode.js.map +1 -1
  665. package/lib/module/dom/nodes/drawings/ParagraphNode.js +3 -8
  666. package/lib/module/dom/nodes/drawings/ParagraphNode.js.map +1 -1
  667. package/lib/module/dom/nodes/drawings/PatchNode.js +6 -12
  668. package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
  669. package/lib/module/dom/nodes/drawings/PathNode.js +4 -14
  670. package/lib/module/dom/nodes/drawings/PathNode.js.map +1 -1
  671. package/lib/module/dom/nodes/drawings/PictureNode.js +3 -7
  672. package/lib/module/dom/nodes/drawings/PictureNode.js.map +1 -1
  673. package/lib/module/dom/nodes/drawings/PointsNode.js +4 -8
  674. package/lib/module/dom/nodes/drawings/PointsNode.js.map +1 -1
  675. package/lib/module/dom/nodes/drawings/RRectNode.js +7 -13
  676. package/lib/module/dom/nodes/drawings/RRectNode.js.map +1 -1
  677. package/lib/module/dom/nodes/drawings/RectNode.js +4 -10
  678. package/lib/module/dom/nodes/drawings/RectNode.js.map +1 -1
  679. package/lib/module/dom/nodes/drawings/Text.js +18 -51
  680. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  681. package/lib/module/dom/nodes/drawings/VerticesNode.js +4 -10
  682. package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
  683. package/lib/module/dom/nodes/drawings/index.d.ts +1 -0
  684. package/lib/module/dom/nodes/drawings/index.js +1 -0
  685. package/lib/module/dom/nodes/drawings/index.js.map +1 -1
  686. package/lib/module/dom/nodes/index.js.map +1 -1
  687. package/lib/module/dom/nodes/paint/BlendNode.js +4 -9
  688. package/lib/module/dom/nodes/paint/BlendNode.js.map +1 -1
  689. package/lib/module/dom/nodes/paint/ColorFilters.js +0 -16
  690. package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
  691. package/lib/module/dom/nodes/paint/ImageFilters.js +3 -40
  692. package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
  693. package/lib/module/dom/nodes/paint/MaskFilters.js +0 -2
  694. package/lib/module/dom/nodes/paint/MaskFilters.js.map +1 -1
  695. package/lib/module/dom/nodes/paint/PathEffects.js +0 -26
  696. package/lib/module/dom/nodes/paint/PathEffects.js.map +1 -1
  697. package/lib/module/dom/nodes/paint/Shaders.js +0 -23
  698. package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
  699. package/lib/module/dom/nodes/paint/index.js.map +1 -1
  700. package/lib/module/dom/types/DeclarationContext.js +3 -27
  701. package/lib/module/dom/types/DeclarationContext.js.map +1 -1
  702. package/lib/module/dom/types/DrawingContext.js +3 -85
  703. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  704. package/lib/module/dom/types/Drawings.d.ts +7 -1
  705. package/lib/module/dom/types/Drawings.js.map +1 -1
  706. package/lib/module/dom/types/NodeType.d.ts +1 -0
  707. package/lib/module/dom/types/NodeType.js +7 -9
  708. package/lib/module/dom/types/NodeType.js.map +1 -1
  709. package/lib/module/dom/types/SkDOM.d.ts +2 -1
  710. package/lib/module/dom/types/SkDOM.js.map +1 -1
  711. package/lib/module/dom/types/index.js.map +1 -1
  712. package/lib/module/external/index.js.map +1 -1
  713. package/lib/module/external/reanimated/buffers.d.ts +5 -0
  714. package/lib/module/external/reanimated/buffers.js +29 -0
  715. package/lib/module/external/reanimated/buffers.js.map +1 -0
  716. package/lib/module/external/reanimated/index.d.ts +1 -0
  717. package/lib/module/external/reanimated/index.js +1 -0
  718. package/lib/module/external/reanimated/index.js.map +1 -1
  719. package/lib/module/external/reanimated/interpolators.d.ts +1 -1
  720. package/lib/module/external/reanimated/interpolators.js +5 -4
  721. package/lib/module/external/reanimated/interpolators.js.map +1 -1
  722. package/lib/module/external/reanimated/moduleWrapper.js +2 -4
  723. package/lib/module/external/reanimated/moduleWrapper.js.map +1 -1
  724. package/lib/module/external/reanimated/renderHelpers.js +5 -28
  725. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  726. package/lib/module/external/reanimated/textures.js +5 -18
  727. package/lib/module/external/reanimated/textures.js.map +1 -1
  728. package/lib/module/external/reanimated/useAnimatedImageValue.js +16 -9
  729. package/lib/module/external/reanimated/useAnimatedImageValue.js.map +1 -1
  730. package/lib/module/external/reanimated/useDerivedValueOnJS.js.map +1 -1
  731. package/lib/module/headless/index.js +3 -4
  732. package/lib/module/headless/index.js.map +1 -1
  733. package/lib/module/index.js.map +1 -1
  734. package/lib/module/mock/index.js +7 -4
  735. package/lib/module/mock/index.js.map +1 -1
  736. package/lib/module/renderer/Canvas.js +17 -28
  737. package/lib/module/renderer/Canvas.js.map +1 -1
  738. package/lib/module/renderer/Container.js +4 -12
  739. package/lib/module/renderer/Container.js.map +1 -1
  740. package/lib/module/renderer/HostComponents.d.ts +3 -1
  741. package/lib/module/renderer/HostComponents.js +2 -57
  742. package/lib/module/renderer/HostComponents.js.map +1 -1
  743. package/lib/module/renderer/HostConfig.js +8 -29
  744. package/lib/module/renderer/HostConfig.js.map +1 -1
  745. package/lib/module/renderer/Offscreen.d.ts +4 -2
  746. package/lib/module/renderer/Offscreen.js +16 -13
  747. package/lib/module/renderer/Offscreen.js.map +1 -1
  748. package/lib/module/renderer/Reconciler.js +4 -13
  749. package/lib/module/renderer/Reconciler.js.map +1 -1
  750. package/lib/module/renderer/components/Blend.js.map +1 -1
  751. package/lib/module/renderer/components/Group.js +4 -8
  752. package/lib/module/renderer/components/Group.js.map +1 -1
  753. package/lib/module/renderer/components/Mask.js +6 -7
  754. package/lib/module/renderer/components/Mask.js.map +1 -1
  755. package/lib/module/renderer/components/Paint.js.map +1 -1
  756. package/lib/module/renderer/components/Picture.js.map +1 -1
  757. package/lib/module/renderer/components/backdrop/BackdropBlur.js +5 -7
  758. package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -1
  759. package/lib/module/renderer/components/backdrop/BackdropFilter.js +5 -6
  760. package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -1
  761. package/lib/module/renderer/components/backdrop/index.js.map +1 -1
  762. package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -1
  763. package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -1
  764. package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -1
  765. package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -1
  766. package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -1
  767. package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -1
  768. package/lib/module/renderer/components/colorFilters/index.js.map +1 -1
  769. package/lib/module/renderer/components/image/Image.js.map +1 -1
  770. package/lib/module/renderer/components/image/ImageSVG.js.map +1 -1
  771. package/lib/module/renderer/components/image/ImageShader.js +9 -11
  772. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  773. package/lib/module/renderer/components/image/index.js.map +1 -1
  774. package/lib/module/renderer/components/imageFilters/Blur.js +4 -6
  775. package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -1
  776. package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -1
  777. package/lib/module/renderer/components/imageFilters/Morphology.js +4 -6
  778. package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -1
  779. package/lib/module/renderer/components/imageFilters/Offset.js +5 -7
  780. package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -1
  781. package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -1
  782. package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -1
  783. package/lib/module/renderer/components/imageFilters/index.js.map +1 -1
  784. package/lib/module/renderer/components/index.js.map +1 -1
  785. package/lib/module/renderer/components/maskFilters/Blur.js +5 -7
  786. package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -1
  787. package/lib/module/renderer/components/maskFilters/index.js.map +1 -1
  788. package/lib/module/renderer/components/paragraph/Paragraph.js.map +1 -1
  789. package/lib/module/renderer/components/paragraph/index.js.map +1 -1
  790. package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -1
  791. package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -1
  792. package/lib/module/renderer/components/pathEffects/Discrete.js +4 -6
  793. package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -1
  794. package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -1
  795. package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -1
  796. package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -1
  797. package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -1
  798. package/lib/module/renderer/components/pathEffects/index.js.map +1 -1
  799. package/lib/module/renderer/components/shaders/Color.js.map +1 -1
  800. package/lib/module/renderer/components/shaders/FractalNoise.js +6 -8
  801. package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -1
  802. package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -1
  803. package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -1
  804. package/lib/module/renderer/components/shaders/Shader.js +4 -6
  805. package/lib/module/renderer/components/shaders/Shader.js.map +1 -1
  806. package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -1
  807. package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -1
  808. package/lib/module/renderer/components/shaders/Turbulence.js +6 -8
  809. package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -1
  810. package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -1
  811. package/lib/module/renderer/components/shaders/index.js.map +1 -1
  812. package/lib/module/renderer/components/shapes/Atlas.d.ts +4 -0
  813. package/lib/module/renderer/components/shapes/Atlas.js +5 -0
  814. package/lib/module/renderer/components/shapes/Atlas.js.map +1 -0
  815. package/lib/module/renderer/components/shapes/Box.js.map +1 -1
  816. package/lib/module/renderer/components/shapes/Circle.js.map +1 -1
  817. package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -1
  818. package/lib/module/renderer/components/shapes/Fill.js.map +1 -1
  819. package/lib/module/renderer/components/shapes/FitBox.js +6 -7
  820. package/lib/module/renderer/components/shapes/FitBox.js.map +1 -1
  821. package/lib/module/renderer/components/shapes/Line.js.map +1 -1
  822. package/lib/module/renderer/components/shapes/Oval.js.map +1 -1
  823. package/lib/module/renderer/components/shapes/Patch.js.map +1 -1
  824. package/lib/module/renderer/components/shapes/Path.js +5 -7
  825. package/lib/module/renderer/components/shapes/Path.js.map +1 -1
  826. package/lib/module/renderer/components/shapes/Points.js +4 -6
  827. package/lib/module/renderer/components/shapes/Points.js.map +1 -1
  828. package/lib/module/renderer/components/shapes/Rect.js.map +1 -1
  829. package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -1
  830. package/lib/module/renderer/components/shapes/Vertices.js +4 -6
  831. package/lib/module/renderer/components/shapes/Vertices.js.map +1 -1
  832. package/lib/module/renderer/components/shapes/index.d.ts +1 -0
  833. package/lib/module/renderer/components/shapes/index.js +1 -0
  834. package/lib/module/renderer/components/shapes/index.js.map +1 -1
  835. package/lib/module/renderer/components/text/Glyphs.js +5 -7
  836. package/lib/module/renderer/components/text/Glyphs.js.map +1 -1
  837. package/lib/module/renderer/components/text/Text.js +5 -7
  838. package/lib/module/renderer/components/text/Text.js.map +1 -1
  839. package/lib/module/renderer/components/text/TextBlob.js +5 -7
  840. package/lib/module/renderer/components/text/TextBlob.js.map +1 -1
  841. package/lib/module/renderer/components/text/TextPath.js +4 -6
  842. package/lib/module/renderer/components/text/TextPath.js.map +1 -1
  843. package/lib/module/renderer/components/text/index.js.map +1 -1
  844. package/lib/module/renderer/index.js.map +1 -1
  845. package/lib/module/renderer/processors/Animations/index.js.map +1 -1
  846. package/lib/module/renderer/processors/index.js.map +1 -1
  847. package/lib/module/renderer/processors/math/Coordinates.js.map +1 -1
  848. package/lib/module/renderer/processors/math/Math.js +1 -1
  849. package/lib/module/renderer/processors/math/Math.js.map +1 -1
  850. package/lib/module/renderer/processors/math/Transforms.js.map +1 -1
  851. package/lib/module/renderer/processors/math/index.js.map +1 -1
  852. package/lib/module/renderer/typeddash.js +2 -5
  853. package/lib/module/renderer/typeddash.js.map +1 -1
  854. package/lib/module/skia/NativeSetup.js +0 -4
  855. package/lib/module/skia/NativeSetup.js.map +1 -1
  856. package/lib/module/skia/Skia.js +1 -0
  857. package/lib/module/skia/Skia.js.map +1 -1
  858. package/lib/module/skia/Skia.web.js.map +1 -1
  859. package/lib/module/skia/core/AnimatedImage.d.ts +1 -1
  860. package/lib/module/skia/core/AnimatedImage.js +2 -2
  861. package/lib/module/skia/core/AnimatedImage.js.map +1 -1
  862. package/lib/module/skia/core/Data.d.ts +1 -1
  863. package/lib/module/skia/core/Data.js +12 -17
  864. package/lib/module/skia/core/Data.js.map +1 -1
  865. package/lib/module/skia/core/Font.js +9 -24
  866. package/lib/module/skia/core/Font.js.map +1 -1
  867. package/lib/module/skia/core/Image.js +3 -8
  868. package/lib/module/skia/core/Image.js.map +1 -1
  869. package/lib/module/skia/core/Matrix.js.map +1 -1
  870. package/lib/module/skia/core/Picture.js +1 -3
  871. package/lib/module/skia/core/Picture.js.map +1 -1
  872. package/lib/module/skia/core/RRect.js.map +1 -1
  873. package/lib/module/skia/core/Rect.d.ts +2 -2
  874. package/lib/module/skia/core/Rect.js.map +1 -1
  875. package/lib/module/skia/core/SVG.js.map +1 -1
  876. package/lib/module/skia/core/Typeface.js +1 -1
  877. package/lib/module/skia/core/Typeface.js.map +1 -1
  878. package/lib/module/skia/core/Vector.js +1 -3
  879. package/lib/module/skia/core/Vector.js.map +1 -1
  880. package/lib/module/skia/core/index.js.map +1 -1
  881. package/lib/module/skia/index.js.map +1 -1
  882. package/lib/module/skia/types/AnimatedImage/index.js.map +1 -1
  883. package/lib/module/skia/types/Canvas.d.ts +16 -1
  884. package/lib/module/skia/types/Canvas.js +6 -9
  885. package/lib/module/skia/types/Canvas.js.map +1 -1
  886. package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -1
  887. package/lib/module/skia/types/ColorFilter/index.js.map +1 -1
  888. package/lib/module/skia/types/Data/Data.js.map +1 -1
  889. package/lib/module/skia/types/Data/index.js.map +1 -1
  890. package/lib/module/skia/types/Font/Font.js +15 -26
  891. package/lib/module/skia/types/Font/Font.js.map +1 -1
  892. package/lib/module/skia/types/Font/index.js.map +1 -1
  893. package/lib/module/skia/types/Image/Image.d.ts +8 -0
  894. package/lib/module/skia/types/Image/Image.js +9 -14
  895. package/lib/module/skia/types/Image/Image.js.map +1 -1
  896. package/lib/module/skia/types/Image/ImageFactory.js +6 -9
  897. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  898. package/lib/module/skia/types/Image/index.js.map +1 -1
  899. package/lib/module/skia/types/ImageFilter/ImageFilter.js +3 -5
  900. package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -1
  901. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +3 -4
  902. package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
  903. package/lib/module/skia/types/ImageFilter/index.js.map +1 -1
  904. package/lib/module/skia/types/MaskFilter.js +4 -5
  905. package/lib/module/skia/types/MaskFilter.js.map +1 -1
  906. package/lib/module/skia/types/Matrix.js.map +1 -1
  907. package/lib/module/skia/types/Matrix4.js +22 -64
  908. package/lib/module/skia/types/Matrix4.js.map +1 -1
  909. package/lib/module/skia/types/Paint/BlendMode.js +3 -4
  910. package/lib/module/skia/types/Paint/BlendMode.js.map +1 -1
  911. package/lib/module/skia/types/Paint/Paint.js +9 -15
  912. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  913. package/lib/module/skia/types/Paint/index.js.map +1 -1
  914. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js +3 -4
  915. package/lib/module/skia/types/Paragraph/ParagraphBuilder.js.map +1 -1
  916. package/lib/module/skia/types/Paragraph/ParagraphStyle.js +9 -14
  917. package/lib/module/skia/types/Paragraph/ParagraphStyle.js.map +1 -1
  918. package/lib/module/skia/types/Paragraph/TextStyle.js +9 -14
  919. package/lib/module/skia/types/Paragraph/TextStyle.js.map +1 -1
  920. package/lib/module/skia/types/Paragraph/index.js.map +1 -1
  921. package/lib/module/skia/types/Path/Path.js +9 -14
  922. package/lib/module/skia/types/Path/Path.js.map +1 -1
  923. package/lib/module/skia/types/Path/index.js.map +1 -1
  924. package/lib/module/skia/types/PathEffect.js +3 -4
  925. package/lib/module/skia/types/PathEffect.js.map +1 -1
  926. package/lib/module/skia/types/Picture/index.js.map +1 -1
  927. package/lib/module/skia/types/Point.js +3 -4
  928. package/lib/module/skia/types/Point.js.map +1 -1
  929. package/lib/module/skia/types/RRect.js +2 -1
  930. package/lib/module/skia/types/RRect.js.map +1 -1
  931. package/lib/module/skia/types/RSXform.d.ts +7 -1
  932. package/lib/module/skia/types/RSXform.js.map +1 -1
  933. package/lib/module/skia/types/Rect.d.ts +4 -0
  934. package/lib/module/skia/types/Rect.js +0 -1
  935. package/lib/module/skia/types/Rect.js.map +1 -1
  936. package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -1
  937. package/lib/module/skia/types/SVG/index.js.map +1 -1
  938. package/lib/module/skia/types/Shader/Shader.js +4 -9
  939. package/lib/module/skia/types/Shader/Shader.js.map +1 -1
  940. package/lib/module/skia/types/Shader/index.js.map +1 -1
  941. package/lib/module/skia/types/Skia.d.ts +3 -2
  942. package/lib/module/skia/types/Skia.js.map +1 -1
  943. package/lib/module/skia/types/Surface/index.js.map +1 -1
  944. package/lib/module/skia/types/Typeface/index.js.map +1 -1
  945. package/lib/module/skia/types/Vertices/Vertices.js +3 -4
  946. package/lib/module/skia/types/Vertices/Vertices.js.map +1 -1
  947. package/lib/module/skia/types/Vertices/index.js.map +1 -1
  948. package/lib/module/skia/types/index.js.map +1 -1
  949. package/lib/module/skia/web/Host.js +6 -16
  950. package/lib/module/skia/web/Host.js.map +1 -1
  951. package/lib/module/skia/web/JsiSkAnimatedImage.js +3 -9
  952. package/lib/module/skia/web/JsiSkAnimatedImage.js.map +1 -1
  953. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js +0 -4
  954. package/lib/module/skia/web/JsiSkAnimatedImageFactory.js.map +1 -1
  955. package/lib/module/skia/web/JsiSkCanvas.d.ts +2 -1
  956. package/lib/module/skia/web/JsiSkCanvas.js +27 -59
  957. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  958. package/lib/module/skia/web/JsiSkColor.js +10 -52
  959. package/lib/module/skia/web/JsiSkColor.js.map +1 -1
  960. package/lib/module/skia/web/JsiSkColorFilter.js +3 -4
  961. package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -1
  962. package/lib/module/skia/web/JsiSkColorFilterFactory.js +0 -8
  963. package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -1
  964. package/lib/module/skia/web/JsiSkContourMeasure.js +3 -8
  965. package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -1
  966. package/lib/module/skia/web/JsiSkContourMeasureIter.js +3 -7
  967. package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -1
  968. package/lib/module/skia/web/JsiSkData.js +5 -5
  969. package/lib/module/skia/web/JsiSkData.js.map +1 -1
  970. package/lib/module/skia/web/JsiSkDataFactory.js +0 -6
  971. package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -1
  972. package/lib/module/skia/web/JsiSkFont.js +5 -26
  973. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  974. package/lib/module/skia/web/JsiSkFontMgr.js +0 -5
  975. package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -1
  976. package/lib/module/skia/web/JsiSkFontMgrFactory.js +0 -4
  977. package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -1
  978. package/lib/module/skia/web/JsiSkImage.js +7 -23
  979. package/lib/module/skia/web/JsiSkImage.js.map +1 -1
  980. package/lib/module/skia/web/JsiSkImageFactory.js +2 -10
  981. package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -1
  982. package/lib/module/skia/web/JsiSkImageFilter.js +3 -4
  983. package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -1
  984. package/lib/module/skia/web/JsiSkImageFilterFactory.js +0 -23
  985. package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
  986. package/lib/module/skia/web/JsiSkMaskFilter.js +3 -4
  987. package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -1
  988. package/lib/module/skia/web/JsiSkMaskFilterFactory.js +0 -2
  989. package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -1
  990. package/lib/module/skia/web/JsiSkMatrix.js +7 -21
  991. package/lib/module/skia/web/JsiSkMatrix.js.map +1 -1
  992. package/lib/module/skia/web/JsiSkPaint.js +3 -27
  993. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  994. package/lib/module/skia/web/JsiSkParagraph.js +21 -44
  995. package/lib/module/skia/web/JsiSkParagraph.js.map +1 -1
  996. package/lib/module/skia/web/JsiSkParagraphBuilder.js +1 -18
  997. package/lib/module/skia/web/JsiSkParagraphBuilder.js.map +1 -1
  998. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js +0 -4
  999. package/lib/module/skia/web/JsiSkParagraphBuilderFactory.js.map +1 -1
  1000. package/lib/module/skia/web/JsiSkParagraphStyle.js +4 -6
  1001. package/lib/module/skia/web/JsiSkParagraphStyle.js.map +1 -1
  1002. package/lib/module/skia/web/JsiSkPath.js +4 -69
  1003. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  1004. package/lib/module/skia/web/JsiSkPathEffect.js +3 -4
  1005. package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -1
  1006. package/lib/module/skia/web/JsiSkPathEffectFactory.js +0 -17
  1007. package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -1
  1008. package/lib/module/skia/web/JsiSkPathFactory.js +0 -12
  1009. package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -1
  1010. package/lib/module/skia/web/JsiSkPicture.js +4 -6
  1011. package/lib/module/skia/web/JsiSkPicture.js.map +1 -1
  1012. package/lib/module/skia/web/JsiSkPictureFactory.js +0 -4
  1013. package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -1
  1014. package/lib/module/skia/web/JsiSkPictureRecorder.js +3 -6
  1015. package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -1
  1016. package/lib/module/skia/web/JsiSkPoint.js +5 -9
  1017. package/lib/module/skia/web/JsiSkPoint.js.map +1 -1
  1018. package/lib/module/skia/web/JsiSkRRect.js +5 -13
  1019. package/lib/module/skia/web/JsiSkRRect.js.map +1 -1
  1020. package/lib/module/skia/web/JsiSkRSXform.d.ts +8 -2
  1021. package/lib/module/skia/web/JsiSkRSXform.js +31 -7
  1022. package/lib/module/skia/web/JsiSkRSXform.js.map +1 -1
  1023. package/lib/module/skia/web/JsiSkRect.d.ts +3 -2
  1024. package/lib/module/skia/web/JsiSkRect.js +11 -11
  1025. package/lib/module/skia/web/JsiSkRect.js.map +1 -1
  1026. package/lib/module/skia/web/JsiSkRuntimeEffect.js +3 -11
  1027. package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -1
  1028. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +0 -4
  1029. package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -1
  1030. package/lib/module/skia/web/JsiSkSVGFactory.js +0 -3
  1031. package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -1
  1032. package/lib/module/skia/web/JsiSkShader.js +3 -4
  1033. package/lib/module/skia/web/JsiSkShader.js.map +1 -1
  1034. package/lib/module/skia/web/JsiSkShaderFactory.js +0 -9
  1035. package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -1
  1036. package/lib/module/skia/web/JsiSkSurface.js +3 -7
  1037. package/lib/module/skia/web/JsiSkSurface.js.map +1 -1
  1038. package/lib/module/skia/web/JsiSkSurfaceFactory.js +0 -10
  1039. package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
  1040. package/lib/module/skia/web/JsiSkTextBlob.js +3 -4
  1041. package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -1
  1042. package/lib/module/skia/web/JsiSkTextBlobFactory.js +2 -6
  1043. package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -1
  1044. package/lib/module/skia/web/JsiSkTextStyle.js +0 -1
  1045. package/lib/module/skia/web/JsiSkTextStyle.js.map +1 -1
  1046. package/lib/module/skia/web/JsiSkTypeface.js +3 -7
  1047. package/lib/module/skia/web/JsiSkTypeface.js.map +1 -1
  1048. package/lib/module/skia/web/JsiSkTypefaceFactory.js +0 -4
  1049. package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -1
  1050. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js +16 -23
  1051. package/lib/module/skia/web/JsiSkTypefaceFontProvider.js.map +1 -1
  1052. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js +0 -2
  1053. package/lib/module/skia/web/JsiSkTypefaceFontProviderFactory.js.map +1 -1
  1054. package/lib/module/skia/web/JsiSkVertices.js +3 -6
  1055. package/lib/module/skia/web/JsiSkVertices.js.map +1 -1
  1056. package/lib/module/skia/web/JsiSkVerticesFactory.js +8 -24
  1057. package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -1
  1058. package/lib/module/skia/web/JsiSkia.js +5 -0
  1059. package/lib/module/skia/web/JsiSkia.js.map +1 -1
  1060. package/lib/module/skia/web/index.js.map +1 -1
  1061. package/lib/module/specs/NativeSkiaModule.js.map +1 -1
  1062. package/lib/module/specs/NativeSkiaModule.web.js +2 -1
  1063. package/lib/module/specs/NativeSkiaModule.web.js.map +1 -1
  1064. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +1 -1
  1065. package/lib/module/specs/SkiaPictureViewNativeComponent.js.map +1 -1
  1066. package/lib/module/views/SkiaBaseWebView.js +16 -58
  1067. package/lib/module/views/SkiaBaseWebView.js.map +1 -1
  1068. package/lib/module/views/SkiaDomView.js +8 -23
  1069. package/lib/module/views/SkiaDomView.js.map +1 -1
  1070. package/lib/module/views/SkiaDomView.web.js +0 -4
  1071. package/lib/module/views/SkiaDomView.web.js.map +1 -1
  1072. package/lib/module/views/SkiaJSDomView.js +10 -26
  1073. package/lib/module/views/SkiaJSDomView.js.map +1 -1
  1074. package/lib/module/views/SkiaJSDomView.web.js.map +1 -1
  1075. package/lib/module/views/SkiaPictureView.js +5 -18
  1076. package/lib/module/views/SkiaPictureView.js.map +1 -1
  1077. package/lib/module/views/SkiaPictureView.web.js +0 -2
  1078. package/lib/module/views/SkiaPictureView.web.js.map +1 -1
  1079. package/lib/module/views/SkiaViewNativeId.js.map +1 -1
  1080. package/lib/module/views/api.js.map +1 -1
  1081. package/lib/module/views/index.js.map +1 -1
  1082. package/lib/module/views/types.js +4 -4
  1083. package/lib/module/views/types.js.map +1 -1
  1084. package/lib/module/views/useTouchHandler.js +13 -21
  1085. package/lib/module/views/useTouchHandler.js.map +1 -1
  1086. package/lib/module/web/LoadSkiaWeb.js +4 -5
  1087. package/lib/module/web/LoadSkiaWeb.js.map +1 -1
  1088. package/lib/module/web/WithSkiaWeb.js +7 -8
  1089. package/lib/module/web/WithSkiaWeb.js.map +1 -1
  1090. package/lib/module/web/index.js.map +1 -1
  1091. package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +2 -1
  1092. package/lib/typescript/src/dom/nodes/drawings/AtlasNode.d.ts +8 -0
  1093. package/lib/typescript/src/dom/nodes/drawings/index.d.ts +1 -0
  1094. package/lib/typescript/src/dom/types/Drawings.d.ts +7 -1
  1095. package/lib/typescript/src/dom/types/NodeType.d.ts +1 -0
  1096. package/lib/typescript/src/dom/types/SkDOM.d.ts +2 -1
  1097. package/lib/typescript/src/external/reanimated/buffers.d.ts +5 -0
  1098. package/lib/typescript/src/external/reanimated/index.d.ts +1 -0
  1099. package/lib/typescript/src/external/reanimated/interpolators.d.ts +1 -1
  1100. package/lib/typescript/src/renderer/HostComponents.d.ts +3 -1
  1101. package/lib/typescript/src/renderer/Offscreen.d.ts +4 -2
  1102. package/lib/typescript/src/renderer/components/shapes/Atlas.d.ts +4 -0
  1103. package/lib/typescript/src/renderer/components/shapes/index.d.ts +1 -0
  1104. package/lib/typescript/src/skia/core/AnimatedImage.d.ts +1 -1
  1105. package/lib/typescript/src/skia/core/Data.d.ts +1 -1
  1106. package/lib/typescript/src/skia/core/Rect.d.ts +2 -2
  1107. package/lib/typescript/src/skia/types/Canvas.d.ts +16 -1
  1108. package/lib/typescript/src/skia/types/Image/Image.d.ts +8 -0
  1109. package/lib/typescript/src/skia/types/RSXform.d.ts +7 -1
  1110. package/lib/typescript/src/skia/types/Rect.d.ts +4 -0
  1111. package/lib/typescript/src/skia/types/Skia.d.ts +3 -2
  1112. package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +2 -1
  1113. package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -2
  1114. package/lib/typescript/src/skia/web/JsiSkRect.d.ts +3 -2
  1115. package/package.json +15 -15
  1116. package/react-native-skia.podspec +1 -1
  1117. package/src/dom/nodes/JsiSkDOM.ts +8 -0
  1118. package/src/dom/nodes/Node.ts +1 -0
  1119. package/src/dom/nodes/drawings/AtlasNode.ts +24 -0
  1120. package/src/dom/nodes/drawings/index.ts +1 -0
  1121. package/src/dom/types/Drawings.ts +9 -0
  1122. package/src/dom/types/NodeType.ts +1 -0
  1123. package/src/dom/types/SkDOM.ts +2 -0
  1124. package/src/external/reanimated/buffers.ts +53 -0
  1125. package/src/external/reanimated/index.ts +1 -0
  1126. package/src/external/reanimated/interpolators.ts +4 -1
  1127. package/src/external/reanimated/textures.tsx +7 -19
  1128. package/src/external/reanimated/useAnimatedImageValue.ts +15 -4
  1129. package/src/mock/index.ts +5 -0
  1130. package/src/renderer/HostComponents.ts +6 -1
  1131. package/src/renderer/Offscreen.tsx +20 -16
  1132. package/src/renderer/components/shapes/Atlas.tsx +8 -0
  1133. package/src/renderer/components/shapes/index.ts +1 -0
  1134. package/src/skia/core/AnimatedImage.ts +3 -2
  1135. package/src/skia/core/Data.ts +8 -4
  1136. package/src/skia/types/Canvas.ts +32 -1
  1137. package/src/skia/types/Image/Image.ts +10 -0
  1138. package/src/skia/types/RSXform.ts +7 -1
  1139. package/src/skia/types/Rect.ts +6 -0
  1140. package/src/skia/types/Skia.ts +10 -2
  1141. package/src/skia/web/JsiSkCanvas.ts +60 -23
  1142. package/src/skia/web/JsiSkRSXform.ts +28 -4
  1143. package/src/skia/web/JsiSkRect.ts +12 -2
  1144. package/src/skia/web/JsiSkTextBlobFactory.ts +5 -5
  1145. package/src/skia/web/JsiSkia.ts +15 -0
  1146. package/lib/commonjs/animation/types.d.ts +0 -18
  1147. package/lib/commonjs/animation/types.js +0 -2
  1148. package/lib/commonjs/animation/types.js.map +0 -1
  1149. package/lib/module/animation/types.d.ts +0 -18
  1150. package/lib/module/animation/types.js +0 -2
  1151. package/lib/module/animation/types.js.map +0 -1
  1152. package/lib/typescript/src/animation/types.d.ts +0 -18
  1153. package/src/animation/types.ts +0 -23
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkRuntimeEffect","HostObject","constructor","CanvasKit","ref","sksl","delete","source","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, private sksl: string) {\n super(CanvasKit, ref, \"RuntimeEffect\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n source() {\n return this.sksl;\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,EAAmDC,IAAnD,EAAiE;IAC1E,MAAMF,SAAN,EAAiBC,GAAjB,EAAsB,eAAtB;IAD0E,KAAdC,IAAc,GAAdA,IAAc;;IAAA,iCAIlE,MAAM;MACd,KAAKD,GAAL,CAASE,MAAT;IACD,CAN2E;EAE3E;;EAMDC,MAAM,GAAG;IACP,OAAO,KAAKF,IAAZ;EACD;;EAEDG,UAAU,CAACC,QAAD,EAAqBC,WAArB,EAA6C;IACrD,OAAO,IAAIC,wBAAJ,CACL,KAAKR,SADA,EAEL,KAAKC,GAAL,CAASI,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,KAAKR,SADA,EAEL,KAAKC,GAAL,CAASW,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,KAAKhB,GAAL,CAASe,UAAT,CAAoBC,KAApB,CAAP;EACD;;EAEDC,eAAe,GAAG;IAChB,OAAO,KAAKjB,GAAL,CAASiB,eAAT,EAAP;EACD;;EAEDC,oBAAoB,GAAG;IACrB,OAAO,KAAKlB,GAAL,CAASkB,oBAAT,EAAP;EACD;;EAEDC,cAAc,CAACH,KAAD,EAAgB;IAC5B,OAAO,KAAKhB,GAAL,CAASmB,cAAT,CAAwBH,KAAxB,CAAP;EACD;;AAxDH"}
1
+ {"version":3,"names":["_Host","require","_JsiSkMatrix","_JsiSkShader","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkRuntimeEffect","HostObject","constructor","CanvasKit","ref","sksl","delete","source","makeShader","uniforms","localMatrix","JsiSkShader","undefined","JsiSkMatrix","fromValue","makeShaderWithChildren","children","map","child","getUniform","index","getUniformCount","getUniformFloatCount","getUniformName","exports"],"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, private sksl: string) {\n super(CanvasKit, ref, \"RuntimeEffect\");\n }\n\n dispose = () => {\n this.ref.delete();\n };\n\n source() {\n return this.sksl;\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,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAA4C,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAErC,MAAMW,kBAAkB,SACrBC,gBAAU,CAEpB;EACEC,WAAWA,CAACC,SAAoB,EAAEC,GAAkB,EAAUC,IAAY,EAAE;IAC1E,KAAK,CAACF,SAAS,EAAEC,GAAG,EAAE,eAAe,CAAC;IAAC,KADqBC,IAAY,GAAZA,IAAY;IAAA1B,eAAA,kBAIhE,MAAM;MACd,IAAI,CAACyB,GAAG,CAACE,MAAM,CAAC,CAAC;IACnB,CAAC;EAJD;EAMAC,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI,CAACF,IAAI;EAClB;EAEAG,UAAUA,CAACC,QAAkB,EAAEC,WAAsB,EAAE;IACrD,OAAO,IAAIC,wBAAW,CACpB,IAAI,CAACR,SAAS,EACd,IAAI,CAACC,GAAG,CAACI,UAAU,CACjBC,QAAQ,EACRC,WAAW,KAAKE,SAAS,GACrBC,wBAAW,CAACC,SAAS,CAACJ,WAAW,CAAC,GAClCA,WACN,CACF,CAAC;EACH;EAEAK,sBAAsBA,CACpBN,QAAkB,EAClBO,QAAqB,EACrBN,WAAsB,EACtB;IACA,OAAO,IAAIC,wBAAW,CACpB,IAAI,CAACR,SAAS,EACd,IAAI,CAACC,GAAG,CAACW,sBAAsB,CAC7BN,QAAQ,EACRO,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEC,GAAG,CAAEC,KAAK,IAAKP,wBAAW,CAACG,SAAS,CAACI,KAAK,CAAC,CAAC,EACtDR,WAAW,KAAKE,SAAS,GACrBC,wBAAW,CAACC,SAAS,CAACJ,WAAW,CAAC,GAClCA,WACN,CACF,CAAC;EACH;EAEAS,UAAUA,CAACC,KAAa,EAAE;IACxB,OAAO,IAAI,CAAChB,GAAG,CAACe,UAAU,CAACC,KAAK,CAAC;EACnC;EAEAC,eAAeA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACjB,GAAG,CAACiB,eAAe,CAAC,CAAC;EACnC;EAEAC,oBAAoBA,CAAA,EAAG;IACrB,OAAO,IAAI,CAAClB,GAAG,CAACkB,oBAAoB,CAAC,CAAC;EACxC;EAEAC,cAAcA,CAACH,KAAa,EAAE;IAC5B,OAAO,IAAI,CAAChB,GAAG,CAACmB,cAAc,CAACH,KAAK,CAAC;EACvC;AACF;AAACI,OAAA,CAAAxB,kBAAA,GAAAA,kBAAA"}
@@ -4,27 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkRuntimeEffectFactory = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
8
  var _JsiSkRuntimeEffect = require("./JsiSkRuntimeEffect");
11
-
12
9
  class JsiSkRuntimeEffectFactory extends _Host.Host {
13
10
  constructor(CanvasKit) {
14
11
  super(CanvasKit);
15
12
  }
16
-
17
13
  Make(sksl) {
18
14
  const re = this.CanvasKit.RuntimeEffect.Make(sksl);
19
-
20
15
  if (re === null) {
21
16
  return null;
22
17
  }
23
-
24
18
  return new _JsiSkRuntimeEffect.JsiSkRuntimeEffect(this.CanvasKit, re, sksl);
25
19
  }
26
-
27
20
  }
28
-
29
21
  exports.JsiSkRuntimeEffectFactory = JsiSkRuntimeEffectFactory;
30
22
  //# sourceMappingURL=JsiSkRuntimeEffectFactory.js.map
@@ -1 +1 @@
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, sksl);\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,EAA2CD,IAA3C,CAAP;EACD;;AAXH"}
1
+ {"version":3,"names":["_Host","require","_JsiSkRuntimeEffect","JsiSkRuntimeEffectFactory","Host","constructor","CanvasKit","Make","sksl","re","RuntimeEffect","JsiSkRuntimeEffect","exports"],"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, sksl);\n }\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AAEO,MAAME,yBAAyB,SAC5BC,UAAI,CAEd;EACEC,WAAWA,CAACC,SAAoB,EAAE;IAChC,KAAK,CAACA,SAAS,CAAC;EAClB;EAEAC,IAAIA,CAACC,IAAY,EAAE;IACjB,MAAMC,EAAE,GAAG,IAAI,CAACH,SAAS,CAACI,aAAa,CAACH,IAAI,CAACC,IAAI,CAAC;IAClD,IAAIC,EAAE,KAAK,IAAI,EAAE;MACf,OAAO,IAAI;IACb;IACA,OAAO,IAAIE,sCAAkB,CAAC,IAAI,CAACL,SAAS,EAAEG,EAAE,EAAED,IAAI,CAAC;EACzD;AACF;AAACI,OAAA,CAAAT,yBAAA,GAAAA,yBAAA"}
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkSVGFactory = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
8
  class JsiSkSVGFactory extends _Host.Host {
11
9
  constructor(CanvasKit) {
12
10
  super(CanvasKit);
13
11
  }
14
-
15
12
  MakeFromData(_data) {
16
13
  throw new _Host.NotImplementedOnRNWeb();
17
14
  }
18
-
19
15
  MakeFromString(_str) {
20
16
  throw new _Host.NotImplementedOnRNWeb();
21
17
  }
22
-
23
18
  }
24
-
25
19
  exports.JsiSkSVGFactory = JsiSkSVGFactory;
26
20
  //# sourceMappingURL=JsiSkSVGFactory.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["_Host","require","JsiSkSVGFactory","Host","constructor","CanvasKit","MakeFromData","_data","NotImplementedOnRNWeb","MakeFromString","_str","exports"],"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,IAAAA,KAAA,GAAAC,OAAA;AAEO,MAAMC,eAAe,SAASC,UAAI,CAAuB;EAC9DC,WAAWA,CAACC,SAAoB,EAAE;IAChC,KAAK,CAACA,SAAS,CAAC;EAClB;EAEAC,YAAYA,CAACC,KAAa,EAAgB;IACxC,MAAM,IAAIC,2BAAqB,CAAC,CAAC;EACnC;EAEAC,cAAcA,CAACC,IAAY,EAAgB;IACzC,MAAM,IAAIF,2BAAqB,CAAC,CAAC;EACnC;AACF;AAACG,OAAA,CAAAT,eAAA,GAAAA,eAAA"}
@@ -4,21 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkShader = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
-
8
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
10
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
11
  class JsiSkShader extends _Host.HostObject {
13
12
  constructor(CanvasKit, ref) {
14
13
  super(CanvasKit, ref, "Shader");
15
-
16
14
  _defineProperty(this, "dispose", () => {
17
15
  this.ref.delete();
18
16
  });
19
17
  }
20
-
21
18
  }
22
-
23
19
  exports.JsiSkShader = JsiSkShader;
24
20
  //# sourceMappingURL=JsiSkShader.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkShader","HostObject","constructor","CanvasKit","ref","delete"],"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 dispose = () => {\n this.ref.delete();\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;;IAD6C,iCAIrC,MAAM;MACd,KAAKA,GAAL,CAASC,MAAT;IACD,CAN8C;EAE9C;;AAHH"}
1
+ {"version":3,"names":["_Host","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkShader","HostObject","constructor","CanvasKit","ref","delete","exports"],"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 dispose = () => {\n this.ref.delete();\n };\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAAoC,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAE7B,MAAMW,WAAW,SACdC,gBAAU,CAEpB;EACEC,WAAWA,CAACC,SAAoB,EAAEC,GAAW,EAAE;IAC7C,KAAK,CAACD,SAAS,EAAEC,GAAG,EAAE,QAAQ,CAAC;IAACzB,eAAA,kBAGxB,MAAM;MACd,IAAI,CAACyB,GAAG,CAACC,MAAM,CAAC,CAAC;IACnB,CAAC;EAJD;AAKF;AAACC,OAAA,CAAAN,WAAA,GAAAA,WAAA"}
@@ -4,53 +4,38 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkShaderFactory = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
8
  var _JsiSkMatrix = require("./JsiSkMatrix");
11
-
12
9
  var _JsiSkPoint = require("./JsiSkPoint");
13
-
14
10
  var _JsiSkShader = require("./JsiSkShader");
15
-
16
11
  class JsiSkShaderFactory extends _Host.Host {
17
12
  constructor(CanvasKit) {
18
13
  super(CanvasKit);
19
14
  }
20
-
21
15
  MakeLinearGradient(start, end, colors, pos, mode, localMatrix, flags) {
22
16
  return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.CanvasKit.Shader.MakeLinearGradient(_JsiSkPoint.JsiSkPoint.fromValue(start), _JsiSkPoint.JsiSkPoint.fromValue(end), colors, pos, (0, _Host.getEnum)(this.CanvasKit.TileMode, mode), localMatrix === undefined ? undefined : _JsiSkMatrix.JsiSkMatrix.fromValue(localMatrix), flags));
23
17
  }
24
-
25
18
  MakeRadialGradient(center, radius, colors, pos, mode, localMatrix, flags) {
26
19
  return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.CanvasKit.Shader.MakeRadialGradient(_JsiSkPoint.JsiSkPoint.fromValue(center), radius, colors, pos, (0, _Host.getEnum)(this.CanvasKit.TileMode, mode), localMatrix === undefined ? undefined : _JsiSkMatrix.JsiSkMatrix.fromValue(localMatrix), flags));
27
20
  }
28
-
29
21
  MakeTwoPointConicalGradient(start, startRadius, end, endRadius, colors, pos, mode, localMatrix, flags) {
30
22
  return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.CanvasKit.Shader.MakeTwoPointConicalGradient(_JsiSkPoint.JsiSkPoint.fromValue(start), startRadius, _JsiSkPoint.JsiSkPoint.fromValue(end), endRadius, colors, pos, (0, _Host.getEnum)(this.CanvasKit.TileMode, mode), localMatrix === undefined ? undefined : _JsiSkMatrix.JsiSkMatrix.fromValue(localMatrix), flags));
31
23
  }
32
-
33
24
  MakeSweepGradient(cx, cy, colors, pos, mode, localMatrix, flags, startAngleInDegrees, endAngleInDegrees) {
34
25
  return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.CanvasKit.Shader.MakeSweepGradient(cx, cy, colors, pos, (0, _Host.getEnum)(this.CanvasKit.TileMode, mode), localMatrix === undefined || localMatrix === null ? undefined : _JsiSkMatrix.JsiSkMatrix.fromValue(localMatrix), flags, startAngleInDegrees, endAngleInDegrees));
35
26
  }
36
-
37
27
  MakeTurbulence(baseFreqX, baseFreqY, octaves, seed, tileW, tileH) {
38
28
  return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.CanvasKit.Shader.MakeTurbulence(baseFreqX, baseFreqY, octaves, seed, tileW, tileH));
39
29
  }
40
-
41
30
  MakeFractalNoise(baseFreqX, baseFreqY, octaves, seed, tileW, tileH) {
42
31
  return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.CanvasKit.Shader.MakeFractalNoise(baseFreqX, baseFreqY, octaves, seed, tileW, tileH));
43
32
  }
44
-
45
33
  MakeBlend(mode, one, two) {
46
34
  return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.CanvasKit.Shader.MakeBlend((0, _Host.getEnum)(this.CanvasKit.BlendMode, mode), _JsiSkShader.JsiSkShader.fromValue(one), _JsiSkShader.JsiSkShader.fromValue(two)));
47
35
  }
48
-
49
36
  MakeColor(color) {
50
37
  return new _JsiSkShader.JsiSkShader(this.CanvasKit, this.CanvasKit.Shader.MakeColor(color, this.CanvasKit.ColorSpace.SRGB));
51
38
  }
52
-
53
39
  }
54
-
55
40
  exports.JsiSkShaderFactory = JsiSkShaderFactory;
56
41
  //# sourceMappingURL=JsiSkShaderFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkShaderFactory","Host","constructor","CanvasKit","MakeLinearGradient","start","end","colors","pos","mode","localMatrix","flags","JsiSkShader","Shader","JsiSkPoint","fromValue","getEnum","TileMode","undefined","JsiSkMatrix","MakeRadialGradient","center","radius","MakeTwoPointConicalGradient","startRadius","endRadius","MakeSweepGradient","cx","cy","startAngleInDegrees","endAngleInDegrees","MakeTurbulence","baseFreqX","baseFreqY","octaves","seed","tileW","tileH","MakeFractalNoise","MakeBlend","one","two","BlendMode","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, getEnum } 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 getEnum(this.CanvasKit.TileMode, 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 getEnum(this.CanvasKit.TileMode, 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 getEnum(this.CanvasKit.TileMode, 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 getEnum(this.CanvasKit.TileMode, 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 getEnum(this.CanvasKit.BlendMode, 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":"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"}
1
+ {"version":3,"names":["_Host","require","_JsiSkMatrix","_JsiSkPoint","_JsiSkShader","JsiSkShaderFactory","Host","constructor","CanvasKit","MakeLinearGradient","start","end","colors","pos","mode","localMatrix","flags","JsiSkShader","Shader","JsiSkPoint","fromValue","getEnum","TileMode","undefined","JsiSkMatrix","MakeRadialGradient","center","radius","MakeTwoPointConicalGradient","startRadius","endRadius","MakeSweepGradient","cx","cy","startAngleInDegrees","endAngleInDegrees","MakeTurbulence","baseFreqX","baseFreqY","octaves","seed","tileW","tileH","MakeFractalNoise","MakeBlend","one","two","BlendMode","MakeColor","color","ColorSpace","SRGB","exports"],"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, getEnum } 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 getEnum(this.CanvasKit.TileMode, 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 getEnum(this.CanvasKit.TileMode, 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 getEnum(this.CanvasKit.TileMode, 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 getEnum(this.CanvasKit.TileMode, 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 getEnum(this.CanvasKit.BlendMode, 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":"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"}
@@ -4,40 +4,30 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkSurface = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
8
  var _JsiSkCanvas = require("./JsiSkCanvas");
11
-
12
9
  var _JsiSkImage = require("./JsiSkImage");
13
-
14
10
  var _JsiSkRect = require("./JsiSkRect");
15
-
16
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
-
11
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
13
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
14
  class JsiSkSurface extends _Host.HostObject {
19
15
  constructor(CanvasKit, ref) {
20
16
  super(CanvasKit, ref, "Surface");
21
-
22
17
  _defineProperty(this, "dispose", () => {
23
18
  this.ref.delete();
24
19
  });
25
20
  }
26
-
27
21
  flush() {
28
22
  this.ref.flush();
29
23
  }
30
-
31
24
  getCanvas() {
32
25
  return new _JsiSkCanvas.JsiSkCanvas(this.CanvasKit, this.ref.getCanvas());
33
26
  }
34
-
35
27
  makeImageSnapshot(bounds) {
36
28
  const image = this.ref.makeImageSnapshot(bounds ? Array.from(_JsiSkRect.JsiSkRect.fromValue(this.CanvasKit, bounds)) : undefined);
37
29
  return new _JsiSkImage.JsiSkImage(this.CanvasKit, image);
38
30
  }
39
-
40
31
  }
41
-
42
32
  exports.JsiSkSurface = JsiSkSurface;
43
33
  //# sourceMappingURL=JsiSkSurface.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkSurface","HostObject","constructor","CanvasKit","ref","delete","flush","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 dispose = () => {\n this.ref.delete();\n };\n\n flush() {\n this.ref.flush();\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;;IAD8C,iCAItC,MAAM;MACd,KAAKA,GAAL,CAASC,MAAT;IACD,CAN+C;EAE/C;;EAMDC,KAAK,GAAG;IACN,KAAKF,GAAL,CAASE,KAAT;EACD;;EAEDC,SAAS,GAAa;IACpB,OAAO,IAAIC,wBAAJ,CAAgB,KAAKL,SAArB,EAAgC,KAAKC,GAAL,CAASG,SAAT,EAAhC,CAAP;EACD;;EAEDE,iBAAiB,CAACC,MAAD,EAA2B;IAC1C,MAAMC,KAAK,GAAG,KAAKP,GAAL,CAASK,iBAAT,CACZC,MAAM,GACFE,KAAK,CAACC,IAAN,CAAWC,oBAAA,CAAUC,SAAV,CAAoB,KAAKZ,SAAzB,EAAoCO,MAApC,CAAX,CADE,GAEFM,SAHQ,CAAd;IAKA,OAAO,IAAIC,sBAAJ,CAAe,KAAKd,SAApB,EAA+BQ,KAA/B,CAAP;EACD;;AAxBH"}
1
+ {"version":3,"names":["_Host","require","_JsiSkCanvas","_JsiSkImage","_JsiSkRect","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkSurface","HostObject","constructor","CanvasKit","ref","delete","flush","getCanvas","JsiSkCanvas","makeImageSnapshot","bounds","image","Array","from","JsiSkRect","fromValue","undefined","JsiSkImage","exports"],"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 dispose = () => {\n this.ref.delete();\n };\n\n flush() {\n this.ref.flush();\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,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAAwC,SAAAI,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAEjC,MAAMW,YAAY,SACfC,gBAAU,CAEpB;EACEC,WAAWA,CAACC,SAAoB,EAAEC,GAAY,EAAE;IAC9C,KAAK,CAACD,SAAS,EAAEC,GAAG,EAAE,SAAS,CAAC;IAACzB,eAAA,kBAGzB,MAAM;MACd,IAAI,CAACyB,GAAG,CAACC,MAAM,CAAC,CAAC;IACnB,CAAC;EAJD;EAMAC,KAAKA,CAAA,EAAG;IACN,IAAI,CAACF,GAAG,CAACE,KAAK,CAAC,CAAC;EAClB;EAEAC,SAASA,CAAA,EAAa;IACpB,OAAO,IAAIC,wBAAW,CAAC,IAAI,CAACL,SAAS,EAAE,IAAI,CAACC,GAAG,CAACG,SAAS,CAAC,CAAC,CAAC;EAC9D;EAEAE,iBAAiBA,CAACC,MAAe,EAAW;IAC1C,MAAMC,KAAK,GAAG,IAAI,CAACP,GAAG,CAACK,iBAAiB,CACtCC,MAAM,GACFE,KAAK,CAACC,IAAI,CAACC,oBAAS,CAACC,SAAS,CAAC,IAAI,CAACZ,SAAS,EAAEO,MAAM,CAAC,CAAC,GACvDM,SACN,CAAC;IACD,OAAO,IAAIC,sBAAU,CAAC,IAAI,CAACd,SAAS,EAAEQ,KAAK,CAAC;EAC9C;AACF;AAACO,OAAA,CAAAlB,YAAA,GAAAA,YAAA"}
@@ -4,54 +4,40 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkSurfaceFactory = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
8
  var _JsiSkSurface = require("./JsiSkSurface");
11
-
12
9
  class JsiSkSurfaceFactory extends _Host.Host {
13
10
  constructor(CanvasKit) {
14
11
  super(CanvasKit);
15
12
  }
16
-
17
13
  Make(width, height) {
18
14
  const surface = this.CanvasKit.MakeSurface(width, height);
19
-
20
15
  if (!surface) {
21
16
  return null;
22
17
  }
23
-
24
18
  return new _JsiSkSurface.JsiSkSurface(this.CanvasKit, surface);
25
19
  }
26
-
27
20
  MakeOffscreen(width, height) {
28
21
  // OffscreenCanvas may be unvailable in some environments.
29
22
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
30
23
  const OC = globalThis.OffscreenCanvas;
31
24
  let surface;
32
-
33
25
  if (OC === undefined) {
34
26
  surface = this.CanvasKit.MakeSurface(width, height);
35
27
  } else {
36
28
  const offscreen = new OC(width, height);
37
29
  const webglContext = this.CanvasKit.GetWebGLContext(offscreen);
38
30
  const grContext = this.CanvasKit.MakeWebGLContext(webglContext);
39
-
40
31
  if (!grContext) {
41
32
  throw new Error("Could not make a graphics context");
42
33
  }
43
-
44
34
  surface = this.CanvasKit.MakeRenderTarget(grContext, width, height);
45
35
  }
46
-
47
36
  if (!surface) {
48
37
  return null;
49
38
  }
50
-
51
39
  return new _JsiSkSurface.JsiSkSurface(this.CanvasKit, surface);
52
40
  }
53
-
54
41
  }
55
-
56
42
  exports.JsiSkSurfaceFactory = JsiSkSurfaceFactory;
57
43
  //# sourceMappingURL=JsiSkSurfaceFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkSurfaceFactory","Host","constructor","CanvasKit","Make","width","height","surface","MakeSurface","JsiSkSurface","MakeOffscreen","OC","globalThis","OffscreenCanvas","undefined","offscreen","webglContext","GetWebGLContext","grContext","MakeWebGLContext","Error","MakeRenderTarget"],"sources":["JsiSkSurfaceFactory.ts"],"sourcesContent":["import type { CanvasKit, Surface } 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 return null;\n }\n return new JsiSkSurface(this.CanvasKit, surface);\n }\n\n MakeOffscreen(width: number, height: number) {\n // OffscreenCanvas may be unvailable in some environments.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const OC = (globalThis as any).OffscreenCanvas;\n let surface: Surface | null;\n if (OC === undefined) {\n surface = this.CanvasKit.MakeSurface(width, height);\n } else {\n const offscreen = new OC(width, height);\n const webglContext = this.CanvasKit.GetWebGLContext(offscreen);\n const grContext = this.CanvasKit.MakeWebGLContext(webglContext);\n if (!grContext) {\n throw new Error(\"Could not make a graphics context\");\n }\n surface = this.CanvasKit.MakeRenderTarget(grContext, width, height);\n }\n if (!surface) {\n return null;\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,OAAO,IAAP;IACD;;IACD,OAAO,IAAIE,0BAAJ,CAAiB,KAAKN,SAAtB,EAAiCI,OAAjC,CAAP;EACD;;EAEDG,aAAa,CAACL,KAAD,EAAgBC,MAAhB,EAAgC;IAC3C;IACA;IACA,MAAMK,EAAE,GAAIC,UAAD,CAAoBC,eAA/B;IACA,IAAIN,OAAJ;;IACA,IAAII,EAAE,KAAKG,SAAX,EAAsB;MACpBP,OAAO,GAAG,KAAKJ,SAAL,CAAeK,WAAf,CAA2BH,KAA3B,EAAkCC,MAAlC,CAAV;IACD,CAFD,MAEO;MACL,MAAMS,SAAS,GAAG,IAAIJ,EAAJ,CAAON,KAAP,EAAcC,MAAd,CAAlB;MACA,MAAMU,YAAY,GAAG,KAAKb,SAAL,CAAec,eAAf,CAA+BF,SAA/B,CAArB;MACA,MAAMG,SAAS,GAAG,KAAKf,SAAL,CAAegB,gBAAf,CAAgCH,YAAhC,CAAlB;;MACA,IAAI,CAACE,SAAL,EAAgB;QACd,MAAM,IAAIE,KAAJ,CAAU,mCAAV,CAAN;MACD;;MACDb,OAAO,GAAG,KAAKJ,SAAL,CAAekB,gBAAf,CAAgCH,SAAhC,EAA2Cb,KAA3C,EAAkDC,MAAlD,CAAV;IACD;;IACD,IAAI,CAACC,OAAL,EAAc;MACZ,OAAO,IAAP;IACD;;IACD,OAAO,IAAIE,0BAAJ,CAAiB,KAAKN,SAAtB,EAAiCI,OAAjC,CAAP;EACD;;AAjCqE"}
1
+ {"version":3,"names":["_Host","require","_JsiSkSurface","JsiSkSurfaceFactory","Host","constructor","CanvasKit","Make","width","height","surface","MakeSurface","JsiSkSurface","MakeOffscreen","OC","globalThis","OffscreenCanvas","undefined","offscreen","webglContext","GetWebGLContext","grContext","MakeWebGLContext","Error","MakeRenderTarget","exports"],"sources":["JsiSkSurfaceFactory.ts"],"sourcesContent":["import type { CanvasKit, Surface } 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 return null;\n }\n return new JsiSkSurface(this.CanvasKit, surface);\n }\n\n MakeOffscreen(width: number, height: number) {\n // OffscreenCanvas may be unvailable in some environments.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const OC = (globalThis as any).OffscreenCanvas;\n let surface: Surface | null;\n if (OC === undefined) {\n surface = this.CanvasKit.MakeSurface(width, height);\n } else {\n const offscreen = new OC(width, height);\n const webglContext = this.CanvasKit.GetWebGLContext(offscreen);\n const grContext = this.CanvasKit.MakeWebGLContext(webglContext);\n if (!grContext) {\n throw new Error(\"Could not make a graphics context\");\n }\n surface = this.CanvasKit.MakeRenderTarget(grContext, width, height);\n }\n if (!surface) {\n return null;\n }\n return new JsiSkSurface(this.CanvasKit, surface);\n }\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEO,MAAME,mBAAmB,SAASC,UAAI,CAA2B;EACtEC,WAAWA,CAACC,SAAoB,EAAE;IAChC,KAAK,CAACA,SAAS,CAAC;EAClB;EAEAC,IAAIA,CAACC,KAAa,EAAEC,MAAc,EAAE;IAClC,MAAMC,OAAO,GAAG,IAAI,CAACJ,SAAS,CAACK,WAAW,CAACH,KAAK,EAAEC,MAAM,CAAC;IACzD,IAAI,CAACC,OAAO,EAAE;MACZ,OAAO,IAAI;IACb;IACA,OAAO,IAAIE,0BAAY,CAAC,IAAI,CAACN,SAAS,EAAEI,OAAO,CAAC;EAClD;EAEAG,aAAaA,CAACL,KAAa,EAAEC,MAAc,EAAE;IAC3C;IACA;IACA,MAAMK,EAAE,GAAIC,UAAU,CAASC,eAAe;IAC9C,IAAIN,OAAuB;IAC3B,IAAII,EAAE,KAAKG,SAAS,EAAE;MACpBP,OAAO,GAAG,IAAI,CAACJ,SAAS,CAACK,WAAW,CAACH,KAAK,EAAEC,MAAM,CAAC;IACrD,CAAC,MAAM;MACL,MAAMS,SAAS,GAAG,IAAIJ,EAAE,CAACN,KAAK,EAAEC,MAAM,CAAC;MACvC,MAAMU,YAAY,GAAG,IAAI,CAACb,SAAS,CAACc,eAAe,CAACF,SAAS,CAAC;MAC9D,MAAMG,SAAS,GAAG,IAAI,CAACf,SAAS,CAACgB,gBAAgB,CAACH,YAAY,CAAC;MAC/D,IAAI,CAACE,SAAS,EAAE;QACd,MAAM,IAAIE,KAAK,CAAC,mCAAmC,CAAC;MACtD;MACAb,OAAO,GAAG,IAAI,CAACJ,SAAS,CAACkB,gBAAgB,CAACH,SAAS,EAAEb,KAAK,EAAEC,MAAM,CAAC;IACrE;IACA,IAAI,CAACC,OAAO,EAAE;MACZ,OAAO,IAAI;IACb;IACA,OAAO,IAAIE,0BAAY,CAAC,IAAI,CAACN,SAAS,EAAEI,OAAO,CAAC;EAClD;AACF;AAACe,OAAA,CAAAtB,mBAAA,GAAAA,mBAAA"}
@@ -4,21 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkTextBlob = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
-
8
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
10
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
11
  class JsiSkTextBlob extends _Host.HostObject {
13
12
  constructor(CanvasKit, ref) {
14
13
  super(CanvasKit, ref, "TextBlob");
15
-
16
14
  _defineProperty(this, "dispose", () => {
17
15
  this.ref.delete();
18
16
  });
19
17
  }
20
-
21
18
  }
22
-
23
19
  exports.JsiSkTextBlob = JsiSkTextBlob;
24
20
  //# sourceMappingURL=JsiSkTextBlob.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkTextBlob","HostObject","constructor","CanvasKit","ref","delete"],"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 dispose = () => {\n this.ref.delete();\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;;IAD+C,iCAIvC,MAAM;MACd,KAAKA,GAAL,CAASC,MAAT;IACD,CANgD;EAEhD;;AAHH"}
1
+ {"version":3,"names":["_Host","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","JsiSkTextBlob","HostObject","constructor","CanvasKit","ref","delete","exports"],"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 dispose = () => {\n this.ref.delete();\n };\n}\n"],"mappings":";;;;;;AAIA,IAAAA,KAAA,GAAAC,OAAA;AAAoC,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAE7B,MAAMW,aAAa,SAChBC,gBAAU,CAEpB;EACEC,WAAWA,CAACC,SAAoB,EAAEC,GAAa,EAAE;IAC/C,KAAK,CAACD,SAAS,EAAEC,GAAG,EAAE,UAAU,CAAC;IAACzB,eAAA,kBAG1B,MAAM;MACd,IAAI,CAACyB,GAAG,CAACC,MAAM,CAAC,CAAC;IACnB,CAAC;EAJD;AAKF;AAACC,OAAA,CAAAN,aAAA,GAAAA,aAAA"}
@@ -4,37 +4,27 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkTextBlobFactory = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
8
  var _JsiSkFont = require("./JsiSkFont");
11
-
12
9
  var _JsiSkTextBlob = require("./JsiSkTextBlob");
13
-
14
10
  var _JsiSkRSXform = require("./JsiSkRSXform");
15
-
16
11
  class JsiSkTextBlobFactory extends _Host.Host {
17
12
  constructor(CanvasKit) {
18
13
  super(CanvasKit);
19
14
  }
20
-
21
15
  MakeFromText(str, font) {
22
16
  return new _JsiSkTextBlob.JsiSkTextBlob(this.CanvasKit, this.CanvasKit.TextBlob.MakeFromText(str, _JsiSkFont.JsiSkFont.fromValue(font)));
23
17
  }
24
-
25
18
  MakeFromGlyphs(glyphs, font) {
26
19
  return new _JsiSkTextBlob.JsiSkTextBlob(this.CanvasKit, this.CanvasKit.TextBlob.MakeFromGlyphs(glyphs, _JsiSkFont.JsiSkFont.fromValue(font)));
27
20
  }
28
-
29
21
  MakeFromRSXform(str, rsxforms, font) {
30
22
  return new _JsiSkTextBlob.JsiSkTextBlob(this.CanvasKit, this.CanvasKit.TextBlob.MakeFromRSXform(str, rsxforms.map(f => Array.from(_JsiSkRSXform.JsiSkRSXform.fromValue(f))).flat(), _JsiSkFont.JsiSkFont.fromValue(font)));
31
23
  }
32
-
33
24
  MakeFromRSXformGlyphs(glyphs, rsxforms, font) {
34
- return new _JsiSkTextBlob.JsiSkTextBlob(this.CanvasKit, this.CanvasKit.TextBlob.MakeFromRSXformGlyphs(glyphs, rsxforms.map(f => _JsiSkRSXform.JsiSkRSXform.fromValue(f)), _JsiSkFont.JsiSkFont.fromValue(font)));
25
+ const transforms = rsxforms.flatMap(s => Array.from(_JsiSkRSXform.JsiSkRSXform.fromValue(s)));
26
+ return new _JsiSkTextBlob.JsiSkTextBlob(this.CanvasKit, this.CanvasKit.TextBlob.MakeFromRSXformGlyphs(glyphs, transforms, _JsiSkFont.JsiSkFont.fromValue(font)));
35
27
  }
36
-
37
28
  }
38
-
39
29
  exports.JsiSkTextBlobFactory = JsiSkTextBlobFactory;
40
30
  //# sourceMappingURL=JsiSkTextBlobFactory.js.map
@@ -1 +1 @@
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
+ {"version":3,"names":["_Host","require","_JsiSkFont","_JsiSkTextBlob","_JsiSkRSXform","JsiSkTextBlobFactory","Host","constructor","CanvasKit","MakeFromText","str","font","JsiSkTextBlob","TextBlob","JsiSkFont","fromValue","MakeFromGlyphs","glyphs","MakeFromRSXform","rsxforms","map","f","Array","from","JsiSkRSXform","flat","MakeFromRSXformGlyphs","transforms","flatMap","s","exports"],"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 { 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.map((f) => Array.from(JsiSkRSXform.fromValue(f))).flat(),\n JsiSkFont.fromValue(font)\n )\n );\n }\n\n MakeFromRSXformGlyphs(glyphs: number[], rsxforms: SkRSXform[], font: SkFont) {\n const transforms = rsxforms.flatMap((s) =>\n Array.from(JsiSkRSXform.fromValue(s))\n );\n return new JsiSkTextBlob(\n this.CanvasKit,\n this.CanvasKit.TextBlob.MakeFromRSXformGlyphs(\n glyphs,\n transforms,\n JsiSkFont.fromValue(font)\n )\n );\n }\n}\n"],"mappings":";;;;;;AAMA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAEO,MAAMI,oBAAoB,SAASC,UAAI,CAA4B;EACxEC,WAAWA,CAACC,SAAoB,EAAE;IAChC,KAAK,CAACA,SAAS,CAAC;EAClB;EAEAC,YAAYA,CAACC,GAAW,EAAEC,IAAY,EAAE;IACtC,OAAO,IAAIC,4BAAa,CACtB,IAAI,CAACJ,SAAS,EACd,IAAI,CAACA,SAAS,CAACK,QAAQ,CAACJ,YAAY,CAACC,GAAG,EAAEI,oBAAS,CAACC,SAAS,CAACJ,IAAI,CAAC,CACrE,CAAC;EACH;EAEAK,cAAcA,CAACC,MAAgB,EAAEN,IAAY,EAAE;IAC7C,OAAO,IAAIC,4BAAa,CACtB,IAAI,CAACJ,SAAS,EACd,IAAI,CAACA,SAAS,CAACK,QAAQ,CAACG,cAAc,CAACC,MAAM,EAAEH,oBAAS,CAACC,SAAS,CAACJ,IAAI,CAAC,CAC1E,CAAC;EACH;EAEAO,eAAeA,CAACR,GAAW,EAAES,QAAqB,EAAER,IAAY,EAAE;IAChE,OAAO,IAAIC,4BAAa,CACtB,IAAI,CAACJ,SAAS,EACd,IAAI,CAACA,SAAS,CAACK,QAAQ,CAACK,eAAe,CACrCR,GAAG,EACHS,QAAQ,CAACC,GAAG,CAAEC,CAAC,IAAKC,KAAK,CAACC,IAAI,CAACC,0BAAY,CAACT,SAAS,CAACM,CAAC,CAAC,CAAC,CAAC,CAACI,IAAI,CAAC,CAAC,EACjEX,oBAAS,CAACC,SAAS,CAACJ,IAAI,CAC1B,CACF,CAAC;EACH;EAEAe,qBAAqBA,CAACT,MAAgB,EAAEE,QAAqB,EAAER,IAAY,EAAE;IAC3E,MAAMgB,UAAU,GAAGR,QAAQ,CAACS,OAAO,CAAEC,CAAC,IACpCP,KAAK,CAACC,IAAI,CAACC,0BAAY,CAACT,SAAS,CAACc,CAAC,CAAC,CACtC,CAAC;IACD,OAAO,IAAIjB,4BAAa,CACtB,IAAI,CAACJ,SAAS,EACd,IAAI,CAACA,SAAS,CAACK,QAAQ,CAACa,qBAAqB,CAC3CT,MAAM,EACNU,UAAU,EACVb,oBAAS,CAACC,SAAS,CAACJ,IAAI,CAC1B,CACF,CAAC;EACH;AACF;AAACmB,OAAA,CAAAzB,oBAAA,GAAAA,oBAAA"}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkTextStyle = void 0;
7
-
8
7
  class JsiSkTextStyle {
9
8
  static toTextStyle(value) {
10
9
  return {
@@ -47,8 +46,6 @@ class JsiSkTextStyle {
47
46
  wordSpacing: value.wordSpacing
48
47
  };
49
48
  }
50
-
51
49
  }
52
-
53
50
  exports.JsiSkTextStyle = JsiSkTextStyle;
54
51
  //# sourceMappingURL=JsiSkTextStyle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkTextStyle","toTextStyle","value","backgroundColor","color","decoration","decorationColor","decorationStyle","undefined","decorationThickness","fontFamilies","fontSize","fontStyle","slant","weight","width","fontFeatures","foregroundColor","fontVariations","halfLeading","heightMultiplier","letterSpacing","locale","shadows","map","shadow","blurRadius","offset","x","y","textBaseline","wordSpacing"],"sources":["JsiSkTextStyle.ts"],"sourcesContent":["import type { TextStyle } from \"canvaskit-wasm\";\n\nimport type { SkTextStyle } from \"../types\";\n\nexport class JsiSkTextStyle {\n static toTextStyle(value: SkTextStyle): TextStyle {\n return {\n backgroundColor: value.backgroundColor,\n color: value.color,\n decoration: value.decoration,\n decorationColor: value.decorationColor,\n decorationStyle: value.decorationStyle\n ? { value: value.decorationStyle }\n : undefined,\n decorationThickness: value.decorationThickness,\n fontFamilies: value.fontFamilies,\n fontSize: value.fontSize,\n fontStyle: value.fontStyle\n ? {\n slant: value.fontStyle.slant\n ? { value: value.fontStyle.slant }\n : undefined,\n weight: value.fontStyle.weight\n ? { value: value.fontStyle.weight }\n : undefined,\n width: value.fontStyle.width\n ? { value: value.fontStyle.width }\n : undefined,\n }\n : undefined,\n fontFeatures: value.fontFeatures,\n foregroundColor: value.foregroundColor,\n fontVariations: value.fontVariations,\n halfLeading: value.halfLeading,\n heightMultiplier: value.heightMultiplier,\n letterSpacing: value.letterSpacing,\n locale: value.locale,\n shadows: value.shadows\n ? value.shadows.map((shadow) => ({\n blurRadius: shadow.blurRadius,\n color: shadow.color,\n offset: shadow.offset\n ? [shadow.offset.x, shadow.offset.y]\n : undefined,\n }))\n : undefined,\n textBaseline: value.textBaseline\n ? { value: value.textBaseline }\n : undefined,\n wordSpacing: value.wordSpacing,\n };\n }\n}\n"],"mappings":";;;;;;;AAIO,MAAMA,cAAN,CAAqB;EACR,OAAXC,WAAW,CAACC,KAAD,EAAgC;IAChD,OAAO;MACLC,eAAe,EAAED,KAAK,CAACC,eADlB;MAELC,KAAK,EAAEF,KAAK,CAACE,KAFR;MAGLC,UAAU,EAAEH,KAAK,CAACG,UAHb;MAILC,eAAe,EAAEJ,KAAK,CAACI,eAJlB;MAKLC,eAAe,EAAEL,KAAK,CAACK,eAAN,GACb;QAAEL,KAAK,EAAEA,KAAK,CAACK;MAAf,CADa,GAEbC,SAPC;MAQLC,mBAAmB,EAAEP,KAAK,CAACO,mBARtB;MASLC,YAAY,EAAER,KAAK,CAACQ,YATf;MAULC,QAAQ,EAAET,KAAK,CAACS,QAVX;MAWLC,SAAS,EAAEV,KAAK,CAACU,SAAN,GACP;QACEC,KAAK,EAAEX,KAAK,CAACU,SAAN,CAAgBC,KAAhB,GACH;UAAEX,KAAK,EAAEA,KAAK,CAACU,SAAN,CAAgBC;QAAzB,CADG,GAEHL,SAHN;QAIEM,MAAM,EAAEZ,KAAK,CAACU,SAAN,CAAgBE,MAAhB,GACJ;UAAEZ,KAAK,EAAEA,KAAK,CAACU,SAAN,CAAgBE;QAAzB,CADI,GAEJN,SANN;QAOEO,KAAK,EAAEb,KAAK,CAACU,SAAN,CAAgBG,KAAhB,GACH;UAAEb,KAAK,EAAEA,KAAK,CAACU,SAAN,CAAgBG;QAAzB,CADG,GAEHP;MATN,CADO,GAYPA,SAvBC;MAwBLQ,YAAY,EAAEd,KAAK,CAACc,YAxBf;MAyBLC,eAAe,EAAEf,KAAK,CAACe,eAzBlB;MA0BLC,cAAc,EAAEhB,KAAK,CAACgB,cA1BjB;MA2BLC,WAAW,EAAEjB,KAAK,CAACiB,WA3Bd;MA4BLC,gBAAgB,EAAElB,KAAK,CAACkB,gBA5BnB;MA6BLC,aAAa,EAAEnB,KAAK,CAACmB,aA7BhB;MA8BLC,MAAM,EAAEpB,KAAK,CAACoB,MA9BT;MA+BLC,OAAO,EAAErB,KAAK,CAACqB,OAAN,GACLrB,KAAK,CAACqB,OAAN,CAAcC,GAAd,CAAmBC,MAAD,KAAa;QAC7BC,UAAU,EAAED,MAAM,CAACC,UADU;QAE7BtB,KAAK,EAAEqB,MAAM,CAACrB,KAFe;QAG7BuB,MAAM,EAAEF,MAAM,CAACE,MAAP,GACJ,CAACF,MAAM,CAACE,MAAP,CAAcC,CAAf,EAAkBH,MAAM,CAACE,MAAP,CAAcE,CAAhC,CADI,GAEJrB;MALyB,CAAb,CAAlB,CADK,GAQLA,SAvCC;MAwCLsB,YAAY,EAAE5B,KAAK,CAAC4B,YAAN,GACV;QAAE5B,KAAK,EAAEA,KAAK,CAAC4B;MAAf,CADU,GAEVtB,SA1CC;MA2CLuB,WAAW,EAAE7B,KAAK,CAAC6B;IA3Cd,CAAP;EA6CD;;AA/CyB"}
1
+ {"version":3,"names":["JsiSkTextStyle","toTextStyle","value","backgroundColor","color","decoration","decorationColor","decorationStyle","undefined","decorationThickness","fontFamilies","fontSize","fontStyle","slant","weight","width","fontFeatures","foregroundColor","fontVariations","halfLeading","heightMultiplier","letterSpacing","locale","shadows","map","shadow","blurRadius","offset","x","y","textBaseline","wordSpacing","exports"],"sources":["JsiSkTextStyle.ts"],"sourcesContent":["import type { TextStyle } from \"canvaskit-wasm\";\n\nimport type { SkTextStyle } from \"../types\";\n\nexport class JsiSkTextStyle {\n static toTextStyle(value: SkTextStyle): TextStyle {\n return {\n backgroundColor: value.backgroundColor,\n color: value.color,\n decoration: value.decoration,\n decorationColor: value.decorationColor,\n decorationStyle: value.decorationStyle\n ? { value: value.decorationStyle }\n : undefined,\n decorationThickness: value.decorationThickness,\n fontFamilies: value.fontFamilies,\n fontSize: value.fontSize,\n fontStyle: value.fontStyle\n ? {\n slant: value.fontStyle.slant\n ? { value: value.fontStyle.slant }\n : undefined,\n weight: value.fontStyle.weight\n ? { value: value.fontStyle.weight }\n : undefined,\n width: value.fontStyle.width\n ? { value: value.fontStyle.width }\n : undefined,\n }\n : undefined,\n fontFeatures: value.fontFeatures,\n foregroundColor: value.foregroundColor,\n fontVariations: value.fontVariations,\n halfLeading: value.halfLeading,\n heightMultiplier: value.heightMultiplier,\n letterSpacing: value.letterSpacing,\n locale: value.locale,\n shadows: value.shadows\n ? value.shadows.map((shadow) => ({\n blurRadius: shadow.blurRadius,\n color: shadow.color,\n offset: shadow.offset\n ? [shadow.offset.x, shadow.offset.y]\n : undefined,\n }))\n : undefined,\n textBaseline: value.textBaseline\n ? { value: value.textBaseline }\n : undefined,\n wordSpacing: value.wordSpacing,\n };\n }\n}\n"],"mappings":";;;;;;AAIO,MAAMA,cAAc,CAAC;EAC1B,OAAOC,WAAWA,CAACC,KAAkB,EAAa;IAChD,OAAO;MACLC,eAAe,EAAED,KAAK,CAACC,eAAe;MACtCC,KAAK,EAAEF,KAAK,CAACE,KAAK;MAClBC,UAAU,EAAEH,KAAK,CAACG,UAAU;MAC5BC,eAAe,EAAEJ,KAAK,CAACI,eAAe;MACtCC,eAAe,EAAEL,KAAK,CAACK,eAAe,GAClC;QAAEL,KAAK,EAAEA,KAAK,CAACK;MAAgB,CAAC,GAChCC,SAAS;MACbC,mBAAmB,EAAEP,KAAK,CAACO,mBAAmB;MAC9CC,YAAY,EAAER,KAAK,CAACQ,YAAY;MAChCC,QAAQ,EAAET,KAAK,CAACS,QAAQ;MACxBC,SAAS,EAAEV,KAAK,CAACU,SAAS,GACtB;QACEC,KAAK,EAAEX,KAAK,CAACU,SAAS,CAACC,KAAK,GACxB;UAAEX,KAAK,EAAEA,KAAK,CAACU,SAAS,CAACC;QAAM,CAAC,GAChCL,SAAS;QACbM,MAAM,EAAEZ,KAAK,CAACU,SAAS,CAACE,MAAM,GAC1B;UAAEZ,KAAK,EAAEA,KAAK,CAACU,SAAS,CAACE;QAAO,CAAC,GACjCN,SAAS;QACbO,KAAK,EAAEb,KAAK,CAACU,SAAS,CAACG,KAAK,GACxB;UAAEb,KAAK,EAAEA,KAAK,CAACU,SAAS,CAACG;QAAM,CAAC,GAChCP;MACN,CAAC,GACDA,SAAS;MACbQ,YAAY,EAAEd,KAAK,CAACc,YAAY;MAChCC,eAAe,EAAEf,KAAK,CAACe,eAAe;MACtCC,cAAc,EAAEhB,KAAK,CAACgB,cAAc;MACpCC,WAAW,EAAEjB,KAAK,CAACiB,WAAW;MAC9BC,gBAAgB,EAAElB,KAAK,CAACkB,gBAAgB;MACxCC,aAAa,EAAEnB,KAAK,CAACmB,aAAa;MAClCC,MAAM,EAAEpB,KAAK,CAACoB,MAAM;MACpBC,OAAO,EAAErB,KAAK,CAACqB,OAAO,GAClBrB,KAAK,CAACqB,OAAO,CAACC,GAAG,CAAEC,MAAM,KAAM;QAC7BC,UAAU,EAAED,MAAM,CAACC,UAAU;QAC7BtB,KAAK,EAAEqB,MAAM,CAACrB,KAAK;QACnBuB,MAAM,EAAEF,MAAM,CAACE,MAAM,GACjB,CAACF,MAAM,CAACE,MAAM,CAACC,CAAC,EAAEH,MAAM,CAACE,MAAM,CAACE,CAAC,CAAC,GAClCrB;MACN,CAAC,CAAC,CAAC,GACHA,SAAS;MACbsB,YAAY,EAAE5B,KAAK,CAAC4B,YAAY,GAC5B;QAAE5B,KAAK,EAAEA,KAAK,CAAC4B;MAAa,CAAC,GAC7BtB,SAAS;MACbuB,WAAW,EAAE7B,KAAK,CAAC6B;IACrB,CAAC;EACH;AACF;AAACC,OAAA,CAAAhC,cAAA,GAAAA,cAAA"}
@@ -4,35 +4,28 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkTypeface = void 0;
7
-
8
7
  var _Host = require("./Host");
9
-
10
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
-
8
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
10
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
11
  class JsiSkTypeface extends _Host.HostObject {
13
12
  constructor(CanvasKit, ref) {
14
13
  super(CanvasKit, ref, "Typeface");
15
-
16
14
  _defineProperty(this, "dispose", () => {
17
15
  this.ref.delete();
18
16
  });
19
17
  }
20
-
21
18
  get bold() {
22
19
  console.warn("Typeface.bold is deprecated and will be removed in a future release. The property will return false.");
23
20
  return false;
24
21
  }
25
-
26
22
  get italic() {
27
23
  console.warn("Typeface.italic is deprecated and will be removed in a future release. The property will return false.");
28
24
  return false;
29
25
  }
30
-
31
26
  getGlyphIDs(str, numCodePoints) {
32
27
  return Array.from(this.ref.getGlyphIDs(str, numCodePoints));
33
28
  }
34
-
35
29
  }
36
-
37
30
  exports.JsiSkTypeface = JsiSkTypeface;
38
31
  //# sourceMappingURL=JsiSkTypeface.js.map