@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
@@ -4,263 +4,205 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiSkDOM = void 0;
7
-
8
7
  var _drawings = require("./drawings");
9
-
10
8
  var _paint = require("./paint");
11
-
12
9
  var _ColorFilters = require("./paint/ColorFilters");
13
-
14
10
  var _Shaders = require("./paint/Shaders");
15
-
16
11
  var _ImageFilters = require("./paint/ImageFilters");
17
-
18
12
  var _GroupNode = require("./GroupNode");
19
-
20
13
  var _PaintNode = require("./PaintNode");
21
-
22
14
  var _LayerNode = require("./LayerNode");
23
-
24
15
  var _ParagraphNode = require("./drawings/ParagraphNode");
25
-
26
16
  class JsiSkDOM {
27
17
  constructor(ctx, native) {
28
18
  this.ctx = ctx;
29
19
  this.native = native;
30
20
  }
31
-
32
21
  Layer(props) {
33
- return this.native ? global.SkiaDomApi.LayerNode(props ?? {}) : new _LayerNode.LayerNode(this.ctx, props ?? {});
22
+ return this.native ? global.SkiaDomApi.LayerNode(props !== null && props !== void 0 ? props : {}) : new _LayerNode.LayerNode(this.ctx, props !== null && props !== void 0 ? props : {});
34
23
  }
35
-
36
24
  Group(props) {
37
- return this.native ? global.SkiaDomApi.GroupNode(props ?? {}) : new _GroupNode.GroupNode(this.ctx, props ?? {});
25
+ return this.native ? global.SkiaDomApi.GroupNode(props !== null && props !== void 0 ? props : {}) : new _GroupNode.GroupNode(this.ctx, props !== null && props !== void 0 ? props : {});
38
26
  }
39
-
40
27
  Paint(props) {
41
- return this.native ? global.SkiaDomApi.PaintNode(props ?? {}) : new _PaintNode.PaintNode(this.ctx, props);
42
- } // Drawings
43
-
28
+ return this.native ? global.SkiaDomApi.PaintNode(props !== null && props !== void 0 ? props : {}) : new _PaintNode.PaintNode(this.ctx, props);
29
+ }
44
30
 
31
+ // Drawings
45
32
  Fill(props) {
46
- return this.native ? global.SkiaDomApi.FillNode(props ?? {}) : new _drawings.FillNode(this.ctx, props);
33
+ return this.native ? global.SkiaDomApi.FillNode(props !== null && props !== void 0 ? props : {}) : new _drawings.FillNode(this.ctx, props);
47
34
  }
48
-
49
35
  Image(props) {
50
- return this.native ? global.SkiaDomApi.ImageNode(props ?? {}) : new _drawings.ImageNode(this.ctx, props);
36
+ return this.native ? global.SkiaDomApi.ImageNode(props !== null && props !== void 0 ? props : {}) : new _drawings.ImageNode(this.ctx, props);
51
37
  }
52
-
53
38
  Circle(props) {
54
- return this.native ? global.SkiaDomApi.CircleNode(props ?? {}) : new _drawings.CircleNode(this.ctx, props);
39
+ return this.native ? global.SkiaDomApi.CircleNode(props !== null && props !== void 0 ? props : {}) : new _drawings.CircleNode(this.ctx, props);
55
40
  }
56
-
57
41
  Path(props) {
58
- return this.native ? global.SkiaDomApi.PathNode(props ?? {}) : new _drawings.PathNode(this.ctx, props);
42
+ return this.native ? global.SkiaDomApi.PathNode(props !== null && props !== void 0 ? props : {}) : new _drawings.PathNode(this.ctx, props);
59
43
  }
60
-
61
44
  Line(props) {
62
- return this.native ? global.SkiaDomApi.LineNode(props ?? {}) : new _drawings.LineNode(this.ctx, props);
45
+ return this.native ? global.SkiaDomApi.LineNode(props !== null && props !== void 0 ? props : {}) : new _drawings.LineNode(this.ctx, props);
63
46
  }
64
-
65
47
  Oval(props) {
66
- return this.native ? global.SkiaDomApi.OvalNode(props ?? {}) : new _drawings.OvalNode(this.ctx, props);
48
+ return this.native ? global.SkiaDomApi.OvalNode(props !== null && props !== void 0 ? props : {}) : new _drawings.OvalNode(this.ctx, props);
67
49
  }
68
-
69
50
  Patch(props) {
70
- return this.native ? global.SkiaDomApi.PatchNode(props ?? {}) : new _drawings.PatchNode(this.ctx, props);
51
+ return this.native ? global.SkiaDomApi.PatchNode(props !== null && props !== void 0 ? props : {}) : new _drawings.PatchNode(this.ctx, props);
71
52
  }
72
-
73
53
  Points(props) {
74
- return this.native ? global.SkiaDomApi.PointsNode(props ?? {}) : new _drawings.PointsNode(this.ctx, props);
54
+ return this.native ? global.SkiaDomApi.PointsNode(props !== null && props !== void 0 ? props : {}) : new _drawings.PointsNode(this.ctx, props);
75
55
  }
76
-
77
56
  Rect(props) {
78
57
  return this.native ? global.SkiaDomApi.RectNode(props) : new _drawings.RectNode(this.ctx, props);
79
58
  }
80
-
81
59
  RRect(props) {
82
60
  return this.native ? global.SkiaDomApi.RRectNode(props) : new _drawings.RRectNode(this.ctx, props);
83
61
  }
84
-
85
62
  Vertices(props) {
86
63
  return this.native ? global.SkiaDomApi.VerticesNode(props) : new _drawings.VerticesNode(this.ctx, props);
87
64
  }
88
-
89
65
  Text(props) {
90
66
  return this.native ? global.SkiaDomApi.TextNode(props) : new _drawings.TextNode(this.ctx, props);
91
67
  }
92
-
93
68
  TextPath(props) {
94
69
  return this.native ? global.SkiaDomApi.TextPathNode(props) : new _drawings.TextPathNode(this.ctx, props);
95
70
  }
96
-
97
71
  TextBlob(props) {
98
72
  return this.native ? global.SkiaDomApi.TextBlobNode(props) : new _drawings.TextBlobNode(this.ctx, props);
99
73
  }
100
-
101
74
  Glyphs(props) {
102
75
  return this.native ? global.SkiaDomApi.GlyphsNode(props) : new _drawings.GlyphsNode(this.ctx, props);
103
76
  }
104
-
105
77
  DiffRect(props) {
106
78
  return this.native ? global.SkiaDomApi.DiffRectNode(props) : new _drawings.DiffRectNode(this.ctx, props);
107
79
  }
108
-
109
80
  Picture(props) {
110
81
  return this.native ? global.SkiaDomApi.PictureNode(props) : new _drawings.PictureNode(this.ctx, props);
111
82
  }
112
-
83
+ Atlas(props) {
84
+ return this.native ? global.SkiaDomApi.AtlasNode(props) : new _drawings.AtlasNode(this.ctx, props);
85
+ }
113
86
  ImageSVG(props) {
114
87
  return this.native ? global.SkiaDomApi.ImageSVGNode(props) : new _drawings.ImageSVGNode(this.ctx, props);
115
- } // BlurMaskFilters
116
-
88
+ }
117
89
 
90
+ // BlurMaskFilters
118
91
  BlurMaskFilter(props) {
119
92
  return this.native ? global.SkiaDomApi.BlurMaskFilterNode(props) : new _paint.BlurMaskFilterNode(this.ctx, props);
120
- } // ImageFilters
121
-
93
+ }
122
94
 
95
+ // ImageFilters
123
96
  BlendImageFilter(props) {
124
97
  return this.native ? global.SkiaDomApi.BlendImageFilterNode(props) : new _paint.BlendImageFilterNode(this.ctx, props);
125
98
  }
126
-
127
99
  DropShadowImageFilter(props) {
128
100
  return this.native ? global.SkiaDomApi.DropShadowImageFilterNode(props) : new _paint.DropShadowImageFilterNode(this.ctx, props);
129
101
  }
130
-
131
102
  DisplacementMapImageFilter(props) {
132
103
  return this.native ? global.SkiaDomApi.DisplacementMapImageFilterNode(props) : new _paint.DisplacementMapImageFilterNode(this.ctx, props);
133
104
  }
134
-
135
105
  BlurImageFilter(props) {
136
106
  return this.native ? global.SkiaDomApi.BlurImageFilterNode(props) : new _paint.BlurImageFilterNode(this.ctx, props);
137
107
  }
138
-
139
108
  OffsetImageFilter(props) {
140
109
  return this.native ? global.SkiaDomApi.OffsetImageFilterNode(props) : new _paint.OffsetImageFilterNode(this.ctx, props);
141
110
  }
142
-
143
111
  MorphologyImageFilter(props) {
144
112
  return this.native ? global.SkiaDomApi.MorphologyImageFilterNode(props) : new _ImageFilters.MorphologyImageFilterNode(this.ctx, props);
145
113
  }
146
-
147
114
  RuntimeShaderImageFilter(props) {
148
115
  return this.native ? global.SkiaDomApi.RuntimeShaderImageFilterNode(props) : new _paint.RuntimeShaderImageFilterNode(this.ctx, props);
149
- } // Color Filters
150
-
116
+ }
151
117
 
118
+ // Color Filters
152
119
  MatrixColorFilter(props) {
153
120
  return this.native ? global.SkiaDomApi.MatrixColorFilterNode(props) : new _ColorFilters.MatrixColorFilterNode(this.ctx, props);
154
121
  }
155
-
156
122
  BlendColorFilter(props) {
157
123
  return this.native ? global.SkiaDomApi.BlendColorFilterNode(props) : new _ColorFilters.BlendColorFilterNode(this.ctx, props);
158
124
  }
159
-
160
125
  LumaColorFilter() {
161
126
  return this.native ? global.SkiaDomApi.LumaColorFilterNode() : new _ColorFilters.LumaColorFilterNode(this.ctx);
162
127
  }
163
-
164
128
  LinearToSRGBGammaColorFilter() {
165
129
  return global.SkiaDomApi && global.SkiaDomApi.LinearToSRGBGammaColorFilterNode ? global.SkiaDomApi.LinearToSRGBGammaColorFilterNode() : new _ColorFilters.LinearToSRGBGammaColorFilterNode(this.ctx);
166
130
  }
167
-
168
131
  SRGBToLinearGammaColorFilter() {
169
132
  return global.SkiaDomApi && global.SkiaDomApi.SRGBToLinearGammaColorFilterNode ? global.SkiaDomApi.SRGBToLinearGammaColorFilterNode() : new _ColorFilters.SRGBToLinearGammaColorFilterNode(this.ctx);
170
133
  }
171
-
172
134
  LerpColorFilter(props) {
173
135
  return this.native ? global.SkiaDomApi.LerpColorFilterNode(props) : new _ColorFilters.LerpColorFilterNode(this.ctx, props);
174
- } // Shaders
175
-
136
+ }
176
137
 
138
+ // Shaders
177
139
  Shader(props) {
178
140
  return this.native ? global.SkiaDomApi.ShaderNode(props) : new _Shaders.ShaderNode(this.ctx, props);
179
141
  }
180
-
181
142
  ImageShader(props) {
182
143
  return this.native ? global.SkiaDomApi.ImageShaderNode(props) : new _Shaders.ImageShaderNode(this.ctx, props);
183
144
  }
184
-
185
145
  ColorShader(props) {
186
146
  return this.native ? global.SkiaDomApi.ColorShaderNode(props) : new _Shaders.ColorNode(this.ctx, props);
187
147
  }
188
-
189
148
  SweepGradient(props) {
190
149
  return this.native ? global.SkiaDomApi.SweepGradientNode(props) : new _Shaders.SweepGradientNode(this.ctx, props);
191
150
  }
192
-
193
151
  Turbulence(props) {
194
152
  return this.native ? global.SkiaDomApi.TurbulenceNode(props) : new _Shaders.TurbulenceNode(this.ctx, props);
195
153
  }
196
-
197
154
  FractalNoise(props) {
198
155
  return this.native ? global.SkiaDomApi.FractalNoiseNode(props) : new _Shaders.FractalNoiseNode(this.ctx, props);
199
156
  }
200
-
201
157
  LinearGradient(props) {
202
158
  return this.native ? global.SkiaDomApi.LinearGradientNode(props) : new _Shaders.LinearGradientNode(this.ctx, props);
203
159
  }
204
-
205
160
  RadialGradient(props) {
206
161
  return this.native ? global.SkiaDomApi.RadialGradientNode(props) : new _Shaders.RadialGradientNode(this.ctx, props);
207
162
  }
208
-
209
163
  TwoPointConicalGradient(props) {
210
164
  return this.native ? global.SkiaDomApi.TwoPointConicalGradientNode(props) : new _Shaders.TwoPointConicalGradientNode(this.ctx, props);
211
- } // Path Effects
212
-
165
+ }
213
166
 
167
+ // Path Effects
214
168
  CornerPathEffect(props) {
215
169
  return this.native ? global.SkiaDomApi.CornerPathEffectNode(props) : new _paint.CornerPathEffectNode(this.ctx, props);
216
170
  }
217
-
218
171
  DiscretePathEffect(props) {
219
172
  return this.native ? global.SkiaDomApi.DiscretePathEffectNode(props) : new _paint.DiscretePathEffectNode(this.ctx, props);
220
173
  }
221
-
222
174
  DashPathEffect(props) {
223
175
  return this.native ? global.SkiaDomApi.DashPathEffectNode(props) : new _paint.DashPathEffectNode(this.ctx, props);
224
176
  }
225
-
226
177
  Path1DPathEffect(props) {
227
178
  return this.native ? global.SkiaDomApi.Path1DPathEffectNode(props) : new _paint.Path1DPathEffectNode(this.ctx, props);
228
179
  }
229
-
230
180
  Path2DPathEffect(props) {
231
181
  return this.native ? global.SkiaDomApi.Path2DPathEffectNode(props) : new _paint.Path2DPathEffectNode(this.ctx, props);
232
182
  }
233
-
234
183
  SumPathEffect() {
235
184
  return this.native ? global.SkiaDomApi.SumPathEffectNode() : new _paint.SumPathEffectNode(this.ctx);
236
185
  }
237
-
238
186
  Line2DPathEffect(props) {
239
187
  return this.native ? global.SkiaDomApi.Line2DPathEffectNode(props) : new _paint.Line2DPathEffectNode(this.ctx, props);
240
188
  }
241
-
242
189
  Blend(props) {
243
190
  return this.native ? global.SkiaDomApi.BlendNode(props) : new _paint.BlendNode(this.ctx, props);
244
191
  }
245
-
246
192
  BackdropFilter(props) {
247
193
  return this.native ? global.SkiaDomApi.BackdropFilterNode(props) : new _drawings.BackdropFilterNode(this.ctx, props);
248
194
  }
249
-
250
195
  Box(props) {
251
196
  return this.native ? global.SkiaDomApi.BoxNode(props) : new _drawings.BoxNode(this.ctx, props);
252
197
  }
253
-
254
198
  BoxShadow(props) {
255
199
  return this.native ? global.SkiaDomApi.BoxShadowNode(props) : new _drawings.BoxShadowNode(this.ctx, props);
256
- } // Paragraph
257
-
200
+ }
258
201
 
202
+ // Paragraph
259
203
  Paragraph(props) {
260
204
  return this.native ? global.SkiaDomApi.ParagraphNode(props) : new _ParagraphNode.ParagraphNode(this.ctx, props);
261
205
  }
262
-
263
206
  }
264
-
265
207
  exports.JsiSkDOM = JsiSkDOM;
266
208
  //# sourceMappingURL=JsiSkDOM.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["JsiSkDOM","constructor","ctx","native","Layer","props","global","SkiaDomApi","LayerNode","Group","GroupNode","Paint","PaintNode","Fill","FillNode","Image","ImageNode","Circle","CircleNode","Path","PathNode","Line","LineNode","Oval","OvalNode","Patch","PatchNode","Points","PointsNode","Rect","RectNode","RRect","RRectNode","Vertices","VerticesNode","Text","TextNode","TextPath","TextPathNode","TextBlob","TextBlobNode","Glyphs","GlyphsNode","DiffRect","DiffRectNode","Picture","PictureNode","ImageSVG","ImageSVGNode","BlurMaskFilter","BlurMaskFilterNode","BlendImageFilter","BlendImageFilterNode","DropShadowImageFilter","DropShadowImageFilterNode","DisplacementMapImageFilter","DisplacementMapImageFilterNode","BlurImageFilter","BlurImageFilterNode","OffsetImageFilter","OffsetImageFilterNode","MorphologyImageFilter","MorphologyImageFilterNode","RuntimeShaderImageFilter","RuntimeShaderImageFilterNode","MatrixColorFilter","MatrixColorFilterNode","BlendColorFilter","BlendColorFilterNode","LumaColorFilter","LumaColorFilterNode","LinearToSRGBGammaColorFilter","LinearToSRGBGammaColorFilterNode","SRGBToLinearGammaColorFilter","SRGBToLinearGammaColorFilterNode","LerpColorFilter","LerpColorFilterNode","Shader","ShaderNode","ImageShader","ImageShaderNode","ColorShader","ColorShaderNode","ColorNode","SweepGradient","SweepGradientNode","Turbulence","TurbulenceNode","FractalNoise","FractalNoiseNode","LinearGradient","LinearGradientNode","RadialGradient","RadialGradientNode","TwoPointConicalGradient","TwoPointConicalGradientNode","CornerPathEffect","CornerPathEffectNode","DiscretePathEffect","DiscretePathEffectNode","DashPathEffect","DashPathEffectNode","Path1DPathEffect","Path1DPathEffectNode","Path2DPathEffect","Path2DPathEffectNode","SumPathEffect","SumPathEffectNode","Line2DPathEffect","Line2DPathEffectNode","Blend","BlendNode","BackdropFilter","BackdropFilterNode","Box","BoxNode","BoxShadow","BoxShadowNode","Paragraph","ParagraphNode"],"sources":["JsiSkDOM.ts"],"sourcesContent":["import type {\n PathProps,\n SkDOM,\n GroupProps,\n ImageProps,\n BlurImageFilterProps,\n MatrixColorFilterProps,\n CircleProps,\n BlurMaskFilterProps,\n LinearGradientProps,\n PaintProps,\n ShaderProps,\n ImageShaderProps,\n LineProps,\n OvalProps,\n PatchProps,\n PointsProps,\n RectProps,\n RoundedRectProps,\n VerticesProps,\n TextProps,\n DiffRectProps,\n OffsetImageFilterProps,\n BlendColorFilterProps,\n TextPathProps,\n TextBlobProps,\n GlyphsProps,\n TwoPointConicalGradientProps,\n TurbulenceProps,\n SweepGradientProps,\n RadialGradientProps,\n FractalNoiseProps,\n ColorProps,\n PictureProps,\n ImageSVGProps,\n LerpColorFilterProps,\n DrawingNodeProps,\n BoxProps,\n BoxShadowProps,\n ChildrenProps,\n} from \"../types\";\nimport type {\n BlendImageFilterProps,\n BlendProps,\n DisplacementMapImageFilterProps,\n DropShadowImageFilterProps,\n MorphologyImageFilterProps,\n RuntimeShaderImageFilterProps,\n} from \"../types/ImageFilters\";\nimport type {\n CornerPathEffectProps,\n DashPathEffectProps,\n DiscretePathEffectProps,\n Line2DPathEffectProps,\n Path1DPathEffectProps,\n Path2DPathEffectProps,\n} from \"../types/PathEffects\";\nimport type { ParagraphProps } from \"../types/Paragraph\";\n\nimport {\n FillNode,\n ImageNode,\n CircleNode,\n PathNode,\n LineNode,\n PatchNode,\n PointsNode,\n RectNode,\n RRectNode,\n VerticesNode,\n TextNode,\n OvalNode,\n TextPathNode,\n TextBlobNode,\n GlyphsNode,\n DiffRectNode,\n PictureNode,\n ImageSVGNode,\n BackdropFilterNode,\n BoxNode,\n BoxShadowNode,\n} from \"./drawings\";\nimport {\n BlendImageFilterNode,\n BlurImageFilterNode,\n BlurMaskFilterNode,\n DisplacementMapImageFilterNode,\n DropShadowImageFilterNode,\n OffsetImageFilterNode,\n RuntimeShaderImageFilterNode,\n CornerPathEffectNode,\n DiscretePathEffectNode,\n DashPathEffectNode,\n Path1DPathEffectNode,\n Path2DPathEffectNode,\n SumPathEffectNode,\n Line2DPathEffectNode,\n BlendNode,\n} from \"./paint\";\nimport {\n MatrixColorFilterNode,\n LumaColorFilterNode,\n LinearToSRGBGammaColorFilterNode,\n SRGBToLinearGammaColorFilterNode,\n BlendColorFilterNode,\n LerpColorFilterNode,\n} from \"./paint/ColorFilters\";\nimport {\n LinearGradientNode,\n ShaderNode,\n ImageShaderNode,\n TwoPointConicalGradientNode,\n TurbulenceNode,\n SweepGradientNode,\n RadialGradientNode,\n FractalNoiseNode,\n ColorNode,\n} from \"./paint/Shaders\";\nimport { MorphologyImageFilterNode } from \"./paint/ImageFilters\";\nimport { GroupNode } from \"./GroupNode\";\nimport { PaintNode } from \"./PaintNode\";\nimport type { NodeContext } from \"./Node\";\nimport { LayerNode } from \"./LayerNode\";\nimport { ParagraphNode } from \"./drawings/ParagraphNode\";\n\nexport class JsiSkDOM implements SkDOM {\n constructor(private ctx: NodeContext, private native: boolean) {}\n\n Layer(props?: ChildrenProps) {\n return this.native\n ? global.SkiaDomApi.LayerNode(props ?? {})\n : new LayerNode(this.ctx, props ?? {});\n }\n\n Group(props?: GroupProps) {\n return this.native\n ? global.SkiaDomApi.GroupNode(props ?? {})\n : new GroupNode(this.ctx, props ?? {});\n }\n\n Paint(props: PaintProps) {\n return this.native\n ? global.SkiaDomApi.PaintNode(props ?? {})\n : new PaintNode(this.ctx, props);\n }\n\n // Drawings\n Fill(props?: DrawingNodeProps) {\n return this.native\n ? global.SkiaDomApi.FillNode(props ?? {})\n : new FillNode(this.ctx, props);\n }\n\n Image(props: ImageProps) {\n return this.native\n ? global.SkiaDomApi.ImageNode(props ?? {})\n : new ImageNode(this.ctx, props);\n }\n\n Circle(props: CircleProps) {\n return this.native\n ? global.SkiaDomApi.CircleNode(props ?? {})\n : new CircleNode(this.ctx, props);\n }\n\n Path(props: PathProps) {\n return this.native\n ? global.SkiaDomApi.PathNode(props ?? {})\n : new PathNode(this.ctx, props);\n }\n\n Line(props: LineProps) {\n return this.native\n ? global.SkiaDomApi.LineNode(props ?? {})\n : new LineNode(this.ctx, props);\n }\n\n Oval(props: OvalProps) {\n return this.native\n ? global.SkiaDomApi.OvalNode(props ?? {})\n : new OvalNode(this.ctx, props);\n }\n\n Patch(props: PatchProps) {\n return this.native\n ? global.SkiaDomApi.PatchNode(props ?? {})\n : new PatchNode(this.ctx, props);\n }\n\n Points(props: PointsProps) {\n return this.native\n ? global.SkiaDomApi.PointsNode(props ?? {})\n : new PointsNode(this.ctx, props);\n }\n\n Rect(props: RectProps) {\n return this.native\n ? global.SkiaDomApi.RectNode(props)\n : new RectNode(this.ctx, props);\n }\n\n RRect(props: RoundedRectProps) {\n return this.native\n ? global.SkiaDomApi.RRectNode(props)\n : new RRectNode(this.ctx, props);\n }\n\n Vertices(props: VerticesProps) {\n return this.native\n ? global.SkiaDomApi.VerticesNode(props)\n : new VerticesNode(this.ctx, props);\n }\n\n Text(props: TextProps) {\n return this.native\n ? global.SkiaDomApi.TextNode(props)\n : new TextNode(this.ctx, props);\n }\n\n TextPath(props: TextPathProps) {\n return this.native\n ? global.SkiaDomApi.TextPathNode(props)\n : new TextPathNode(this.ctx, props);\n }\n\n TextBlob(props: TextBlobProps) {\n return this.native\n ? global.SkiaDomApi.TextBlobNode(props)\n : new TextBlobNode(this.ctx, props);\n }\n\n Glyphs(props: GlyphsProps) {\n return this.native\n ? global.SkiaDomApi.GlyphsNode(props)\n : new GlyphsNode(this.ctx, props);\n }\n\n DiffRect(props: DiffRectProps) {\n return this.native\n ? global.SkiaDomApi.DiffRectNode(props)\n : new DiffRectNode(this.ctx, props);\n }\n\n Picture(props: PictureProps) {\n return this.native\n ? global.SkiaDomApi.PictureNode(props)\n : new PictureNode(this.ctx, props);\n }\n\n ImageSVG(props: ImageSVGProps) {\n return this.native\n ? global.SkiaDomApi.ImageSVGNode(props)\n : new ImageSVGNode(this.ctx, props);\n }\n\n // BlurMaskFilters\n BlurMaskFilter(props: BlurMaskFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlurMaskFilterNode(props)\n : new BlurMaskFilterNode(this.ctx, props);\n }\n\n // ImageFilters\n BlendImageFilter(props: BlendImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlendImageFilterNode(props)\n : new BlendImageFilterNode(this.ctx, props);\n }\n\n DropShadowImageFilter(props: DropShadowImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.DropShadowImageFilterNode(props)\n : new DropShadowImageFilterNode(this.ctx, props);\n }\n\n DisplacementMapImageFilter(props: DisplacementMapImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.DisplacementMapImageFilterNode(props)\n : new DisplacementMapImageFilterNode(this.ctx, props);\n }\n\n BlurImageFilter(props: BlurImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlurImageFilterNode(props)\n : new BlurImageFilterNode(this.ctx, props);\n }\n\n OffsetImageFilter(props: OffsetImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.OffsetImageFilterNode(props)\n : new OffsetImageFilterNode(this.ctx, props);\n }\n\n MorphologyImageFilter(props: MorphologyImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.MorphologyImageFilterNode(props)\n : new MorphologyImageFilterNode(this.ctx, props);\n }\n\n RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.RuntimeShaderImageFilterNode(props)\n : new RuntimeShaderImageFilterNode(this.ctx, props);\n }\n\n // Color Filters\n MatrixColorFilter(props: MatrixColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.MatrixColorFilterNode(props)\n : new MatrixColorFilterNode(this.ctx, props);\n }\n\n BlendColorFilter(props: BlendColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlendColorFilterNode(props)\n : new BlendColorFilterNode(this.ctx, props);\n }\n\n LumaColorFilter() {\n return this.native\n ? global.SkiaDomApi.LumaColorFilterNode()\n : new LumaColorFilterNode(this.ctx);\n }\n\n LinearToSRGBGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.LinearToSRGBGammaColorFilterNode\n ? global.SkiaDomApi.LinearToSRGBGammaColorFilterNode()\n : new LinearToSRGBGammaColorFilterNode(this.ctx);\n }\n\n SRGBToLinearGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.SRGBToLinearGammaColorFilterNode\n ? global.SkiaDomApi.SRGBToLinearGammaColorFilterNode()\n : new SRGBToLinearGammaColorFilterNode(this.ctx);\n }\n\n LerpColorFilter(props: LerpColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.LerpColorFilterNode(props)\n : new LerpColorFilterNode(this.ctx, props);\n }\n\n // Shaders\n Shader(props: ShaderProps) {\n return this.native\n ? global.SkiaDomApi.ShaderNode(props)\n : new ShaderNode(this.ctx, props);\n }\n\n ImageShader(props: ImageShaderProps) {\n return this.native\n ? global.SkiaDomApi.ImageShaderNode(props)\n : new ImageShaderNode(this.ctx, props);\n }\n\n ColorShader(props: ColorProps) {\n return this.native\n ? global.SkiaDomApi.ColorShaderNode(props)\n : new ColorNode(this.ctx, props);\n }\n\n SweepGradient(props: SweepGradientProps) {\n return this.native\n ? global.SkiaDomApi.SweepGradientNode(props)\n : new SweepGradientNode(this.ctx, props);\n }\n\n Turbulence(props: TurbulenceProps) {\n return this.native\n ? global.SkiaDomApi.TurbulenceNode(props)\n : new TurbulenceNode(this.ctx, props);\n }\n\n FractalNoise(props: FractalNoiseProps) {\n return this.native\n ? global.SkiaDomApi.FractalNoiseNode(props)\n : new FractalNoiseNode(this.ctx, props);\n }\n\n LinearGradient(props: LinearGradientProps) {\n return this.native\n ? global.SkiaDomApi.LinearGradientNode(props)\n : new LinearGradientNode(this.ctx, props);\n }\n\n RadialGradient(props: RadialGradientProps) {\n return this.native\n ? global.SkiaDomApi.RadialGradientNode(props)\n : new RadialGradientNode(this.ctx, props);\n }\n\n TwoPointConicalGradient(props: TwoPointConicalGradientProps) {\n return this.native\n ? global.SkiaDomApi.TwoPointConicalGradientNode(props)\n : new TwoPointConicalGradientNode(this.ctx, props);\n }\n\n // Path Effects\n CornerPathEffect(props: CornerPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.CornerPathEffectNode(props)\n : new CornerPathEffectNode(this.ctx, props);\n }\n\n DiscretePathEffect(props: DiscretePathEffectProps) {\n return this.native\n ? global.SkiaDomApi.DiscretePathEffectNode(props)\n : new DiscretePathEffectNode(this.ctx, props);\n }\n\n DashPathEffect(props: DashPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.DashPathEffectNode(props)\n : new DashPathEffectNode(this.ctx, props);\n }\n\n Path1DPathEffect(props: Path1DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Path1DPathEffectNode(props)\n : new Path1DPathEffectNode(this.ctx, props);\n }\n\n Path2DPathEffect(props: Path2DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Path2DPathEffectNode(props)\n : new Path2DPathEffectNode(this.ctx, props);\n }\n\n SumPathEffect() {\n return this.native\n ? global.SkiaDomApi.SumPathEffectNode()\n : new SumPathEffectNode(this.ctx);\n }\n\n Line2DPathEffect(props: Line2DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Line2DPathEffectNode(props)\n : new Line2DPathEffectNode(this.ctx, props);\n }\n\n Blend(props: BlendProps) {\n return this.native\n ? global.SkiaDomApi.BlendNode(props)\n : new BlendNode(this.ctx, props);\n }\n\n BackdropFilter(props: ChildrenProps) {\n return this.native\n ? global.SkiaDomApi.BackdropFilterNode(props)\n : new BackdropFilterNode(this.ctx, props);\n }\n\n Box(props: BoxProps) {\n return this.native\n ? global.SkiaDomApi.BoxNode(props)\n : new BoxNode(this.ctx, props);\n }\n\n BoxShadow(props: BoxShadowProps) {\n return this.native\n ? global.SkiaDomApi.BoxShadowNode(props)\n : new BoxShadowNode(this.ctx, props);\n }\n\n // Paragraph\n Paragraph(props: ParagraphProps) {\n return this.native\n ? global.SkiaDomApi.ParagraphNode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,GAEH,IAAI8G,iBAAJ,CAAY,KAAKjH,GAAjB,EAAsBG,KAAtB,CAFJ;EAGD;;EAED+G,SAAS,CAAC/G,KAAD,EAAwB;IAC/B,OAAO,KAAKF,MAAL,GACHG,MAAM,CAACC,UAAP,CAAkB8G,aAAlB,CAAgChH,KAAhC,CADG,GAEH,IAAIgH,uBAAJ,CAAkB,KAAKnH,GAAvB,EAA4BG,KAA5B,CAFJ;EAGD,CAnVoC,CAqVrC;;;EACAiH,SAAS,CAACjH,KAAD,EAAwB;IAC/B,OAAO,KAAKF,MAAL,GACHG,MAAM,CAACC,UAAP,CAAkBgH,aAAlB,CAAgClH,KAAhC,CADG,GAEH,IAAIkH,4BAAJ,CAAkB,KAAKrH,GAAvB,EAA4BG,KAA5B,CAFJ;EAGD;;AA1VoC"}
1
+ {"version":3,"names":["_drawings","require","_paint","_ColorFilters","_Shaders","_ImageFilters","_GroupNode","_PaintNode","_LayerNode","_ParagraphNode","JsiSkDOM","constructor","ctx","native","Layer","props","global","SkiaDomApi","LayerNode","Group","GroupNode","Paint","PaintNode","Fill","FillNode","Image","ImageNode","Circle","CircleNode","Path","PathNode","Line","LineNode","Oval","OvalNode","Patch","PatchNode","Points","PointsNode","Rect","RectNode","RRect","RRectNode","Vertices","VerticesNode","Text","TextNode","TextPath","TextPathNode","TextBlob","TextBlobNode","Glyphs","GlyphsNode","DiffRect","DiffRectNode","Picture","PictureNode","Atlas","AtlasNode","ImageSVG","ImageSVGNode","BlurMaskFilter","BlurMaskFilterNode","BlendImageFilter","BlendImageFilterNode","DropShadowImageFilter","DropShadowImageFilterNode","DisplacementMapImageFilter","DisplacementMapImageFilterNode","BlurImageFilter","BlurImageFilterNode","OffsetImageFilter","OffsetImageFilterNode","MorphologyImageFilter","MorphologyImageFilterNode","RuntimeShaderImageFilter","RuntimeShaderImageFilterNode","MatrixColorFilter","MatrixColorFilterNode","BlendColorFilter","BlendColorFilterNode","LumaColorFilter","LumaColorFilterNode","LinearToSRGBGammaColorFilter","LinearToSRGBGammaColorFilterNode","SRGBToLinearGammaColorFilter","SRGBToLinearGammaColorFilterNode","LerpColorFilter","LerpColorFilterNode","Shader","ShaderNode","ImageShader","ImageShaderNode","ColorShader","ColorShaderNode","ColorNode","SweepGradient","SweepGradientNode","Turbulence","TurbulenceNode","FractalNoise","FractalNoiseNode","LinearGradient","LinearGradientNode","RadialGradient","RadialGradientNode","TwoPointConicalGradient","TwoPointConicalGradientNode","CornerPathEffect","CornerPathEffectNode","DiscretePathEffect","DiscretePathEffectNode","DashPathEffect","DashPathEffectNode","Path1DPathEffect","Path1DPathEffectNode","Path2DPathEffect","Path2DPathEffectNode","SumPathEffect","SumPathEffectNode","Line2DPathEffect","Line2DPathEffectNode","Blend","BlendNode","BackdropFilter","BackdropFilterNode","Box","BoxNode","BoxShadow","BoxShadowNode","Paragraph","ParagraphNode","exports"],"sources":["JsiSkDOM.ts"],"sourcesContent":["import type {\n PathProps,\n SkDOM,\n GroupProps,\n ImageProps,\n BlurImageFilterProps,\n MatrixColorFilterProps,\n CircleProps,\n BlurMaskFilterProps,\n LinearGradientProps,\n PaintProps,\n ShaderProps,\n ImageShaderProps,\n LineProps,\n OvalProps,\n PatchProps,\n PointsProps,\n RectProps,\n RoundedRectProps,\n VerticesProps,\n TextProps,\n DiffRectProps,\n OffsetImageFilterProps,\n BlendColorFilterProps,\n TextPathProps,\n TextBlobProps,\n GlyphsProps,\n TwoPointConicalGradientProps,\n TurbulenceProps,\n SweepGradientProps,\n RadialGradientProps,\n FractalNoiseProps,\n ColorProps,\n PictureProps,\n ImageSVGProps,\n LerpColorFilterProps,\n DrawingNodeProps,\n BoxProps,\n BoxShadowProps,\n ChildrenProps,\n AtlasProps,\n} from \"../types\";\nimport type {\n BlendImageFilterProps,\n BlendProps,\n DisplacementMapImageFilterProps,\n DropShadowImageFilterProps,\n MorphologyImageFilterProps,\n RuntimeShaderImageFilterProps,\n} from \"../types/ImageFilters\";\nimport type {\n CornerPathEffectProps,\n DashPathEffectProps,\n DiscretePathEffectProps,\n Line2DPathEffectProps,\n Path1DPathEffectProps,\n Path2DPathEffectProps,\n} from \"../types/PathEffects\";\nimport type { ParagraphProps } from \"../types/Paragraph\";\n\nimport {\n FillNode,\n ImageNode,\n CircleNode,\n PathNode,\n LineNode,\n PatchNode,\n PointsNode,\n RectNode,\n RRectNode,\n VerticesNode,\n TextNode,\n OvalNode,\n TextPathNode,\n TextBlobNode,\n GlyphsNode,\n DiffRectNode,\n PictureNode,\n ImageSVGNode,\n BackdropFilterNode,\n BoxNode,\n BoxShadowNode,\n AtlasNode,\n} from \"./drawings\";\nimport {\n BlendImageFilterNode,\n BlurImageFilterNode,\n BlurMaskFilterNode,\n DisplacementMapImageFilterNode,\n DropShadowImageFilterNode,\n OffsetImageFilterNode,\n RuntimeShaderImageFilterNode,\n CornerPathEffectNode,\n DiscretePathEffectNode,\n DashPathEffectNode,\n Path1DPathEffectNode,\n Path2DPathEffectNode,\n SumPathEffectNode,\n Line2DPathEffectNode,\n BlendNode,\n} from \"./paint\";\nimport {\n MatrixColorFilterNode,\n LumaColorFilterNode,\n LinearToSRGBGammaColorFilterNode,\n SRGBToLinearGammaColorFilterNode,\n BlendColorFilterNode,\n LerpColorFilterNode,\n} from \"./paint/ColorFilters\";\nimport {\n LinearGradientNode,\n ShaderNode,\n ImageShaderNode,\n TwoPointConicalGradientNode,\n TurbulenceNode,\n SweepGradientNode,\n RadialGradientNode,\n FractalNoiseNode,\n ColorNode,\n} from \"./paint/Shaders\";\nimport { MorphologyImageFilterNode } from \"./paint/ImageFilters\";\nimport { GroupNode } from \"./GroupNode\";\nimport { PaintNode } from \"./PaintNode\";\nimport type { NodeContext } from \"./Node\";\nimport { LayerNode } from \"./LayerNode\";\nimport { ParagraphNode } from \"./drawings/ParagraphNode\";\n\nexport class JsiSkDOM implements SkDOM {\n constructor(private ctx: NodeContext, private native: boolean) {}\n\n Layer(props?: ChildrenProps) {\n return this.native\n ? global.SkiaDomApi.LayerNode(props ?? {})\n : new LayerNode(this.ctx, props ?? {});\n }\n\n Group(props?: GroupProps) {\n return this.native\n ? global.SkiaDomApi.GroupNode(props ?? {})\n : new GroupNode(this.ctx, props ?? {});\n }\n\n Paint(props: PaintProps) {\n return this.native\n ? global.SkiaDomApi.PaintNode(props ?? {})\n : new PaintNode(this.ctx, props);\n }\n\n // Drawings\n Fill(props?: DrawingNodeProps) {\n return this.native\n ? global.SkiaDomApi.FillNode(props ?? {})\n : new FillNode(this.ctx, props);\n }\n\n Image(props: ImageProps) {\n return this.native\n ? global.SkiaDomApi.ImageNode(props ?? {})\n : new ImageNode(this.ctx, props);\n }\n\n Circle(props: CircleProps) {\n return this.native\n ? global.SkiaDomApi.CircleNode(props ?? {})\n : new CircleNode(this.ctx, props);\n }\n\n Path(props: PathProps) {\n return this.native\n ? global.SkiaDomApi.PathNode(props ?? {})\n : new PathNode(this.ctx, props);\n }\n\n Line(props: LineProps) {\n return this.native\n ? global.SkiaDomApi.LineNode(props ?? {})\n : new LineNode(this.ctx, props);\n }\n\n Oval(props: OvalProps) {\n return this.native\n ? global.SkiaDomApi.OvalNode(props ?? {})\n : new OvalNode(this.ctx, props);\n }\n\n Patch(props: PatchProps) {\n return this.native\n ? global.SkiaDomApi.PatchNode(props ?? {})\n : new PatchNode(this.ctx, props);\n }\n\n Points(props: PointsProps) {\n return this.native\n ? global.SkiaDomApi.PointsNode(props ?? {})\n : new PointsNode(this.ctx, props);\n }\n\n Rect(props: RectProps) {\n return this.native\n ? global.SkiaDomApi.RectNode(props)\n : new RectNode(this.ctx, props);\n }\n\n RRect(props: RoundedRectProps) {\n return this.native\n ? global.SkiaDomApi.RRectNode(props)\n : new RRectNode(this.ctx, props);\n }\n\n Vertices(props: VerticesProps) {\n return this.native\n ? global.SkiaDomApi.VerticesNode(props)\n : new VerticesNode(this.ctx, props);\n }\n\n Text(props: TextProps) {\n return this.native\n ? global.SkiaDomApi.TextNode(props)\n : new TextNode(this.ctx, props);\n }\n\n TextPath(props: TextPathProps) {\n return this.native\n ? global.SkiaDomApi.TextPathNode(props)\n : new TextPathNode(this.ctx, props);\n }\n\n TextBlob(props: TextBlobProps) {\n return this.native\n ? global.SkiaDomApi.TextBlobNode(props)\n : new TextBlobNode(this.ctx, props);\n }\n\n Glyphs(props: GlyphsProps) {\n return this.native\n ? global.SkiaDomApi.GlyphsNode(props)\n : new GlyphsNode(this.ctx, props);\n }\n\n DiffRect(props: DiffRectProps) {\n return this.native\n ? global.SkiaDomApi.DiffRectNode(props)\n : new DiffRectNode(this.ctx, props);\n }\n\n Picture(props: PictureProps) {\n return this.native\n ? global.SkiaDomApi.PictureNode(props)\n : new PictureNode(this.ctx, props);\n }\n\n Atlas(props: AtlasProps) {\n return this.native\n ? global.SkiaDomApi.AtlasNode(props)\n : new AtlasNode(this.ctx, props);\n }\n\n ImageSVG(props: ImageSVGProps) {\n return this.native\n ? global.SkiaDomApi.ImageSVGNode(props)\n : new ImageSVGNode(this.ctx, props);\n }\n\n // BlurMaskFilters\n BlurMaskFilter(props: BlurMaskFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlurMaskFilterNode(props)\n : new BlurMaskFilterNode(this.ctx, props);\n }\n\n // ImageFilters\n BlendImageFilter(props: BlendImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlendImageFilterNode(props)\n : new BlendImageFilterNode(this.ctx, props);\n }\n\n DropShadowImageFilter(props: DropShadowImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.DropShadowImageFilterNode(props)\n : new DropShadowImageFilterNode(this.ctx, props);\n }\n\n DisplacementMapImageFilter(props: DisplacementMapImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.DisplacementMapImageFilterNode(props)\n : new DisplacementMapImageFilterNode(this.ctx, props);\n }\n\n BlurImageFilter(props: BlurImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlurImageFilterNode(props)\n : new BlurImageFilterNode(this.ctx, props);\n }\n\n OffsetImageFilter(props: OffsetImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.OffsetImageFilterNode(props)\n : new OffsetImageFilterNode(this.ctx, props);\n }\n\n MorphologyImageFilter(props: MorphologyImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.MorphologyImageFilterNode(props)\n : new MorphologyImageFilterNode(this.ctx, props);\n }\n\n RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps) {\n return this.native\n ? global.SkiaDomApi.RuntimeShaderImageFilterNode(props)\n : new RuntimeShaderImageFilterNode(this.ctx, props);\n }\n\n // Color Filters\n MatrixColorFilter(props: MatrixColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.MatrixColorFilterNode(props)\n : new MatrixColorFilterNode(this.ctx, props);\n }\n\n BlendColorFilter(props: BlendColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.BlendColorFilterNode(props)\n : new BlendColorFilterNode(this.ctx, props);\n }\n\n LumaColorFilter() {\n return this.native\n ? global.SkiaDomApi.LumaColorFilterNode()\n : new LumaColorFilterNode(this.ctx);\n }\n\n LinearToSRGBGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.LinearToSRGBGammaColorFilterNode\n ? global.SkiaDomApi.LinearToSRGBGammaColorFilterNode()\n : new LinearToSRGBGammaColorFilterNode(this.ctx);\n }\n\n SRGBToLinearGammaColorFilter() {\n return global.SkiaDomApi &&\n global.SkiaDomApi.SRGBToLinearGammaColorFilterNode\n ? global.SkiaDomApi.SRGBToLinearGammaColorFilterNode()\n : new SRGBToLinearGammaColorFilterNode(this.ctx);\n }\n\n LerpColorFilter(props: LerpColorFilterProps) {\n return this.native\n ? global.SkiaDomApi.LerpColorFilterNode(props)\n : new LerpColorFilterNode(this.ctx, props);\n }\n\n // Shaders\n Shader(props: ShaderProps) {\n return this.native\n ? global.SkiaDomApi.ShaderNode(props)\n : new ShaderNode(this.ctx, props);\n }\n\n ImageShader(props: ImageShaderProps) {\n return this.native\n ? global.SkiaDomApi.ImageShaderNode(props)\n : new ImageShaderNode(this.ctx, props);\n }\n\n ColorShader(props: ColorProps) {\n return this.native\n ? global.SkiaDomApi.ColorShaderNode(props)\n : new ColorNode(this.ctx, props);\n }\n\n SweepGradient(props: SweepGradientProps) {\n return this.native\n ? global.SkiaDomApi.SweepGradientNode(props)\n : new SweepGradientNode(this.ctx, props);\n }\n\n Turbulence(props: TurbulenceProps) {\n return this.native\n ? global.SkiaDomApi.TurbulenceNode(props)\n : new TurbulenceNode(this.ctx, props);\n }\n\n FractalNoise(props: FractalNoiseProps) {\n return this.native\n ? global.SkiaDomApi.FractalNoiseNode(props)\n : new FractalNoiseNode(this.ctx, props);\n }\n\n LinearGradient(props: LinearGradientProps) {\n return this.native\n ? global.SkiaDomApi.LinearGradientNode(props)\n : new LinearGradientNode(this.ctx, props);\n }\n\n RadialGradient(props: RadialGradientProps) {\n return this.native\n ? global.SkiaDomApi.RadialGradientNode(props)\n : new RadialGradientNode(this.ctx, props);\n }\n\n TwoPointConicalGradient(props: TwoPointConicalGradientProps) {\n return this.native\n ? global.SkiaDomApi.TwoPointConicalGradientNode(props)\n : new TwoPointConicalGradientNode(this.ctx, props);\n }\n\n // Path Effects\n CornerPathEffect(props: CornerPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.CornerPathEffectNode(props)\n : new CornerPathEffectNode(this.ctx, props);\n }\n\n DiscretePathEffect(props: DiscretePathEffectProps) {\n return this.native\n ? global.SkiaDomApi.DiscretePathEffectNode(props)\n : new DiscretePathEffectNode(this.ctx, props);\n }\n\n DashPathEffect(props: DashPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.DashPathEffectNode(props)\n : new DashPathEffectNode(this.ctx, props);\n }\n\n Path1DPathEffect(props: Path1DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Path1DPathEffectNode(props)\n : new Path1DPathEffectNode(this.ctx, props);\n }\n\n Path2DPathEffect(props: Path2DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Path2DPathEffectNode(props)\n : new Path2DPathEffectNode(this.ctx, props);\n }\n\n SumPathEffect() {\n return this.native\n ? global.SkiaDomApi.SumPathEffectNode()\n : new SumPathEffectNode(this.ctx);\n }\n\n Line2DPathEffect(props: Line2DPathEffectProps) {\n return this.native\n ? global.SkiaDomApi.Line2DPathEffectNode(props)\n : new Line2DPathEffectNode(this.ctx, props);\n }\n\n Blend(props: BlendProps) {\n return this.native\n ? global.SkiaDomApi.BlendNode(props)\n : new BlendNode(this.ctx, props);\n }\n\n BackdropFilter(props: ChildrenProps) {\n return this.native\n ? global.SkiaDomApi.BackdropFilterNode(props)\n : new BackdropFilterNode(this.ctx, props);\n }\n\n Box(props: BoxProps) {\n return this.native\n ? global.SkiaDomApi.BoxNode(props)\n : new BoxNode(this.ctx, props);\n }\n\n BoxShadow(props: BoxShadowProps) {\n return this.native\n ? global.SkiaDomApi.BoxShadowNode(props)\n : new BoxShadowNode(this.ctx, props);\n }\n\n // Paragraph\n Paragraph(props: ParagraphProps) {\n return this.native\n ? global.SkiaDomApi.ParagraphNode(props)\n : new ParagraphNode(this.ctx, props);\n }\n}\n"],"mappings":";;;;;;AA4DA,IAAAA,SAAA,GAAAC,OAAA;AAwBA,IAAAC,MAAA,GAAAD,OAAA;AAiBA,IAAAE,aAAA,GAAAF,OAAA;AAQA,IAAAG,QAAA,GAAAH,OAAA;AAWA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AAEO,MAAMS,QAAQ,CAAkB;EACrCC,WAAWA,CAASC,GAAgB,EAAUC,MAAe,EAAE;IAAA,KAA3CD,GAAgB,GAAhBA,GAAgB;IAAA,KAAUC,MAAe,GAAfA,MAAe;EAAG;EAEhEC,KAAKA,CAACC,KAAqB,EAAE;IAC3B,OAAO,IAAI,CAACF,MAAM,GACdG,MAAM,CAACC,UAAU,CAACC,SAAS,CAACH,KAAK,aAALA,KAAK,cAALA,KAAK,GAA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4G,kBAAkB,CAAC9G,KAAK,CAAC,GAC3C,IAAI8G,4BAAkB,CAAC,IAAI,CAACjH,GAAG,EAAEG,KAAK,CAAC;EAC7C;EAEA+G,GAAGA,CAAC/G,KAAe,EAAE;IACnB,OAAO,IAAI,CAACF,MAAM,GACdG,MAAM,CAACC,UAAU,CAAC8G,OAAO,CAAChH,KAAK,CAAC,GAChC,IAAIgH,iBAAO,CAAC,IAAI,CAACnH,GAAG,EAAEG,KAAK,CAAC;EAClC;EAEAiH,SAASA,CAACjH,KAAqB,EAAE;IAC/B,OAAO,IAAI,CAACF,MAAM,GACdG,MAAM,CAACC,UAAU,CAACgH,aAAa,CAAClH,KAAK,CAAC,GACtC,IAAIkH,uBAAa,CAAC,IAAI,CAACrH,GAAG,EAAEG,KAAK,CAAC;EACxC;;EAEA;EACAmH,SAASA,CAACnH,KAAqB,EAAE;IAC/B,OAAO,IAAI,CAACF,MAAM,GACdG,MAAM,CAACC,UAAU,CAACkH,aAAa,CAACpH,KAAK,CAAC,GACtC,IAAIoH,4BAAa,CAAC,IAAI,CAACvH,GAAG,EAAEG,KAAK,CAAC;EACxC;AACF;AAACqH,OAAA,CAAA1H,QAAA,GAAAA,QAAA"}
@@ -4,47 +4,36 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.LayerNode = void 0;
7
-
8
7
  var _types = require("../types");
9
-
10
8
  var _RenderNode = require("./RenderNode");
11
-
12
9
  var _Node = require("./Node");
13
-
14
10
  class LayerNode extends _RenderNode.JsiRenderNode {
15
11
  constructor(ctx, props) {
16
12
  super(ctx, _types.NodeType.Layer, props);
17
13
  }
18
-
19
14
  renderNode(ctx) {
20
15
  let hasLayer = false;
21
16
  const [layer, ...children] = this.children();
22
-
23
17
  if (layer instanceof _Node.JsiDeclarationNode) {
24
18
  const declCtx = ctx.declarationCtx;
25
19
  declCtx.save();
26
20
  layer.decorate(declCtx);
27
21
  const paint = declCtx.paints.pop();
28
22
  declCtx.restore();
29
-
30
23
  if (paint) {
31
24
  hasLayer = true;
32
25
  ctx.canvas.saveLayer(paint);
33
26
  }
34
27
  }
35
-
36
28
  children.map(child => {
37
29
  if (child instanceof _RenderNode.JsiRenderNode) {
38
30
  child.render(ctx);
39
31
  }
40
32
  });
41
-
42
33
  if (hasLayer) {
43
34
  ctx.canvas.restore();
44
35
  }
45
36
  }
46
-
47
37
  }
48
-
49
38
  exports.LayerNode = LayerNode;
50
39
  //# sourceMappingURL=LayerNode.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["LayerNode","JsiRenderNode","constructor","ctx","props","NodeType","Layer","renderNode","hasLayer","layer","children","JsiDeclarationNode","declCtx","declarationCtx","save","decorate","paint","paints","pop","restore","canvas","saveLayer","map","child","render"],"sources":["LayerNode.ts"],"sourcesContent":["import type { DrawingContext } from \"../types\";\nimport { NodeType } from \"../types\";\nimport type { ChildrenProps } from \"../types/Common\";\n\nimport { JsiRenderNode } from \"./RenderNode\";\nimport type { NodeContext } from \"./Node\";\nimport { JsiDeclarationNode } from \"./Node\";\n\nexport class LayerNode extends JsiRenderNode<ChildrenProps> {\n constructor(ctx: NodeContext, props: ChildrenProps) {\n super(ctx, NodeType.Layer, props);\n }\n\n renderNode(ctx: DrawingContext): void {\n let hasLayer = false;\n const [layer, ...children] = this.children();\n if (layer instanceof JsiDeclarationNode) {\n const declCtx = ctx.declarationCtx;\n declCtx.save();\n layer.decorate(declCtx);\n const paint = declCtx.paints.pop();\n declCtx.restore();\n if (paint) {\n hasLayer = true;\n ctx.canvas.saveLayer(paint);\n }\n }\n children.map((child) => {\n if (child instanceof JsiRenderNode) {\n child.render(ctx);\n }\n });\n if (hasLayer) {\n ctx.canvas.restore();\n }\n }\n}\n"],"mappings":";;;;;;;AACA;;AAGA;;AAEA;;AAEO,MAAMA,SAAN,SAAwBC,yBAAxB,CAAqD;EAC1DC,WAAW,CAACC,GAAD,EAAmBC,KAAnB,EAAyC;IAClD,MAAMD,GAAN,EAAWE,eAAA,CAASC,KAApB,EAA2BF,KAA3B;EACD;;EAEDG,UAAU,CAACJ,GAAD,EAA4B;IACpC,IAAIK,QAAQ,GAAG,KAAf;IACA,MAAM,CAACC,KAAD,EAAQ,GAAGC,QAAX,IAAuB,KAAKA,QAAL,EAA7B;;IACA,IAAID,KAAK,YAAYE,wBAArB,EAAyC;MACvC,MAAMC,OAAO,GAAGT,GAAG,CAACU,cAApB;MACAD,OAAO,CAACE,IAAR;MACAL,KAAK,CAACM,QAAN,CAAeH,OAAf;MACA,MAAMI,KAAK,GAAGJ,OAAO,CAACK,MAAR,CAAeC,GAAf,EAAd;MACAN,OAAO,CAACO,OAAR;;MACA,IAAIH,KAAJ,EAAW;QACTR,QAAQ,GAAG,IAAX;QACAL,GAAG,CAACiB,MAAJ,CAAWC,SAAX,CAAqBL,KAArB;MACD;IACF;;IACDN,QAAQ,CAACY,GAAT,CAAcC,KAAD,IAAW;MACtB,IAAIA,KAAK,YAAYtB,yBAArB,EAAoC;QAClCsB,KAAK,CAACC,MAAN,CAAarB,GAAb;MACD;IACF,CAJD;;IAKA,IAAIK,QAAJ,EAAc;MACZL,GAAG,CAACiB,MAAJ,CAAWD,OAAX;IACD;EACF;;AA3ByD"}
1
+ {"version":3,"names":["_types","require","_RenderNode","_Node","LayerNode","JsiRenderNode","constructor","ctx","props","NodeType","Layer","renderNode","hasLayer","layer","children","JsiDeclarationNode","declCtx","declarationCtx","save","decorate","paint","paints","pop","restore","canvas","saveLayer","map","child","render","exports"],"sources":["LayerNode.ts"],"sourcesContent":["import type { DrawingContext } from \"../types\";\nimport { NodeType } from \"../types\";\nimport type { ChildrenProps } from \"../types/Common\";\n\nimport { JsiRenderNode } from \"./RenderNode\";\nimport type { NodeContext } from \"./Node\";\nimport { JsiDeclarationNode } from \"./Node\";\n\nexport class LayerNode extends JsiRenderNode<ChildrenProps> {\n constructor(ctx: NodeContext, props: ChildrenProps) {\n super(ctx, NodeType.Layer, props);\n }\n\n renderNode(ctx: DrawingContext): void {\n let hasLayer = false;\n const [layer, ...children] = this.children();\n if (layer instanceof JsiDeclarationNode) {\n const declCtx = ctx.declarationCtx;\n declCtx.save();\n layer.decorate(declCtx);\n const paint = declCtx.paints.pop();\n declCtx.restore();\n if (paint) {\n hasLayer = true;\n ctx.canvas.saveLayer(paint);\n }\n }\n children.map((child) => {\n if (child instanceof JsiRenderNode) {\n child.render(ctx);\n }\n });\n if (hasLayer) {\n ctx.canvas.restore();\n }\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AAEO,MAAMG,SAAS,SAASC,yBAAa,CAAgB;EAC1DC,WAAWA,CAACC,GAAgB,EAAEC,KAAoB,EAAE;IAClD,KAAK,CAACD,GAAG,EAAEE,eAAQ,CAACC,KAAK,EAAEF,KAAK,CAAC;EACnC;EAEAG,UAAUA,CAACJ,GAAmB,EAAQ;IACpC,IAAIK,QAAQ,GAAG,KAAK;IACpB,MAAM,CAACC,KAAK,EAAE,GAAGC,QAAQ,CAAC,GAAG,IAAI,CAACA,QAAQ,CAAC,CAAC;IAC5C,IAAID,KAAK,YAAYE,wBAAkB,EAAE;MACvC,MAAMC,OAAO,GAAGT,GAAG,CAACU,cAAc;MAClCD,OAAO,CAACE,IAAI,CAAC,CAAC;MACdL,KAAK,CAACM,QAAQ,CAACH,OAAO,CAAC;MACvB,MAAMI,KAAK,GAAGJ,OAAO,CAACK,MAAM,CAACC,GAAG,CAAC,CAAC;MAClCN,OAAO,CAACO,OAAO,CAAC,CAAC;MACjB,IAAIH,KAAK,EAAE;QACTR,QAAQ,GAAG,IAAI;QACfL,GAAG,CAACiB,MAAM,CAACC,SAAS,CAACL,KAAK,CAAC;MAC7B;IACF;IACAN,QAAQ,CAACY,GAAG,CAAEC,KAAK,IAAK;MACtB,IAAIA,KAAK,YAAYtB,yBAAa,EAAE;QAClCsB,KAAK,CAACC,MAAM,CAACrB,GAAG,CAAC;MACnB;IACF,CAAC,CAAC;IACF,IAAIK,QAAQ,EAAE;MACZL,GAAG,CAACiB,MAAM,CAACD,OAAO,CAAC,CAAC;IACtB;EACF;AACF;AAACM,OAAA,CAAAzB,SAAA,GAAAA,SAAA"}
@@ -4,81 +4,61 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JsiNode = exports.JsiDeclarationNode = void 0;
7
-
8
- 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; }
9
-
7
+ 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; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
9
+ 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); }
10
10
  class JsiNode {
11
11
  constructor(ctx, type, props) {
12
12
  this.type = type;
13
13
  this.props = props;
14
-
15
14
  _defineProperty(this, "_children", []);
16
-
17
15
  _defineProperty(this, "Skia", void 0);
18
-
19
16
  this.Skia = ctx.Skia;
20
17
  }
21
-
22
18
  setProps(props) {
23
19
  this.props = props;
24
20
  }
25
-
26
21
  setProp(name, v) {
27
22
  const hasChanged = this.props[name] !== v;
28
23
  this.props[name] = v;
29
24
  return hasChanged;
30
25
  }
31
-
32
26
  getProps() {
33
27
  return this.props;
34
28
  }
35
-
36
29
  children() {
37
30
  return this._children;
38
31
  }
39
-
40
32
  addChild(child) {
33
+ this.removeChild(child);
41
34
  this._children.push(child);
42
35
  }
43
-
44
36
  dispose() {
45
37
  this._children.forEach(child => child.dispose());
46
38
  }
47
-
48
39
  removeChild(child) {
49
40
  const index = this._children.indexOf(child);
50
-
51
41
  if (index !== -1) {
52
42
  const [node] = this._children.splice(index, 1);
53
-
54
43
  node.dispose();
55
44
  }
56
45
  }
57
-
58
46
  insertChildBefore(child, before) {
59
47
  const index = this._children.indexOf(child);
60
-
61
48
  if (index !== -1) {
62
49
  this._children.splice(index, 1);
63
50
  }
64
-
65
51
  const beforeIndex = this._children.indexOf(before);
66
-
67
52
  this._children.splice(beforeIndex, 0, child);
68
53
  }
69
-
70
54
  }
71
-
72
55
  exports.JsiNode = JsiNode;
73
-
74
56
  class JsiDeclarationNode extends JsiNode {
75
57
  constructor(ctx, declarationType, type, props) {
76
58
  super(ctx, type, props);
77
59
  this.declarationType = declarationType;
78
-
79
60
  _defineProperty(this, "invalidate", () => {});
80
61
  }
81
-
82
62
  decorateChildren(ctx) {
83
63
  this.children().forEach(child => {
84
64
  if (child instanceof JsiDeclarationNode) {
@@ -86,50 +66,38 @@ class JsiDeclarationNode extends JsiNode {
86
66
  }
87
67
  });
88
68
  }
89
-
90
69
  addChild(child) {
91
70
  if (!(child instanceof JsiDeclarationNode)) {
92
71
  throw new Error(`Cannot add child of type ${child.type} to ${this.type}`);
93
72
  }
94
-
95
73
  super.addChild(child);
96
74
  this.invalidate();
97
75
  }
98
-
99
76
  insertChildBefore(child, before) {
100
77
  if (!(child instanceof JsiDeclarationNode)) {
101
78
  throw new Error(`Cannot add child of type ${child.type} to ${this.type}`);
102
79
  }
103
-
104
80
  super.insertChildBefore(child, before);
105
81
  this.invalidate();
106
82
  }
107
-
108
83
  dispose() {
109
84
  this.invalidate();
110
85
  super.dispose();
111
86
  }
112
-
113
87
  setInvalidate(invalidate) {
114
88
  this.invalidate = invalidate;
115
89
  }
116
-
117
90
  setProps(props) {
118
91
  super.setProps(props);
119
92
  this.invalidate();
120
93
  }
121
-
122
94
  setProp(name, v) {
123
95
  const hasChanged = super.setProp(name, v);
124
-
125
96
  if (hasChanged) {
126
97
  this.invalidate();
127
98
  }
128
-
129
99
  return hasChanged;
130
100
  }
131
-
132
101
  }
133
-
134
102
  exports.JsiDeclarationNode = JsiDeclarationNode;
135
103
  //# sourceMappingURL=Node.js.map