@shopify/react-native-skia 1.11.1 → 1.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. package/android/CMakeLists.txt +0 -8
  2. package/android/cpp/jni/JniLoad.cpp +0 -2
  3. package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +1 -1
  4. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaPictureViewManagerDelegate.java +4 -2
  5. package/cpp/jsi/ViewProperty.h +5 -16
  6. package/cpp/rnskia/RNSkManager.cpp +1 -7
  7. package/lib/commonjs/dom/nodes/index.d.ts +0 -1
  8. package/lib/commonjs/dom/nodes/index.js +0 -11
  9. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  10. package/lib/commonjs/external/reanimated/renderHelpers.d.ts +0 -6
  11. package/lib/commonjs/external/reanimated/renderHelpers.js +0 -73
  12. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  13. package/lib/commonjs/index.d.ts +0 -1
  14. package/lib/commonjs/index.js +0 -12
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/commonjs/renderer/Canvas.d.ts +10 -1
  17. package/lib/commonjs/renderer/Canvas.js +3 -1
  18. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  19. package/lib/commonjs/sksg/Container.d.ts +2 -0
  20. package/lib/commonjs/sksg/Container.js +10 -0
  21. package/lib/commonjs/sksg/Container.js.map +1 -1
  22. package/lib/commonjs/sksg/Elements.d.ts +65 -0
  23. package/lib/commonjs/sksg/Elements.js +6 -0
  24. package/lib/commonjs/sksg/Elements.js.map +1 -0
  25. package/lib/commonjs/sksg/Reconciler.d.ts +1 -0
  26. package/lib/commonjs/sksg/Reconciler.js +2 -0
  27. package/lib/commonjs/sksg/Reconciler.js.map +1 -1
  28. package/lib/commonjs/views/index.d.ts +0 -1
  29. package/lib/commonjs/views/index.js +0 -11
  30. package/lib/commonjs/views/index.js.map +1 -1
  31. package/lib/module/dom/nodes/index.d.ts +0 -1
  32. package/lib/module/dom/nodes/index.js +0 -1
  33. package/lib/module/dom/nodes/index.js.map +1 -1
  34. package/lib/module/external/reanimated/renderHelpers.d.ts +0 -6
  35. package/lib/module/external/reanimated/renderHelpers.js +0 -68
  36. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  37. package/lib/module/index.d.ts +0 -1
  38. package/lib/module/index.js +0 -1
  39. package/lib/module/index.js.map +1 -1
  40. package/lib/module/renderer/Canvas.d.ts +10 -1
  41. package/lib/module/renderer/Canvas.js +1 -0
  42. package/lib/module/renderer/Canvas.js.map +1 -1
  43. package/lib/module/sksg/Container.d.ts +2 -0
  44. package/lib/module/sksg/Container.js +10 -0
  45. package/lib/module/sksg/Container.js.map +1 -1
  46. package/lib/module/sksg/Elements.d.ts +65 -0
  47. package/lib/module/sksg/Elements.js +2 -0
  48. package/lib/module/sksg/Elements.js.map +1 -0
  49. package/lib/module/sksg/Reconciler.d.ts +1 -0
  50. package/lib/module/sksg/Reconciler.js +2 -0
  51. package/lib/module/sksg/Reconciler.js.map +1 -1
  52. package/lib/module/views/index.d.ts +0 -1
  53. package/lib/module/views/index.js +0 -1
  54. package/lib/module/views/index.js.map +1 -1
  55. package/lib/typescript/lib/commonjs/external/reanimated/renderHelpers.d.ts +0 -3
  56. package/lib/typescript/lib/commonjs/renderer/Canvas.d.ts +1 -0
  57. package/lib/typescript/lib/commonjs/sksg/Container.d.ts +2 -0
  58. package/lib/typescript/lib/commonjs/sksg/Elements.d.ts +1 -0
  59. package/lib/typescript/lib/commonjs/sksg/Reconciler.d.ts +6 -0
  60. package/lib/typescript/lib/module/dom/nodes/index.d.ts +0 -1
  61. package/lib/typescript/lib/module/external/reanimated/renderHelpers.d.ts +0 -3
  62. package/lib/typescript/lib/module/index.d.ts +0 -1
  63. package/lib/typescript/lib/module/mock/index.d.ts +0 -1
  64. package/lib/typescript/lib/module/renderer/Canvas.d.ts +1 -0
  65. package/lib/typescript/lib/module/sksg/Container.d.ts +2 -0
  66. package/lib/typescript/lib/module/sksg/Elements.d.ts +1 -0
  67. package/lib/typescript/lib/module/sksg/Reconciler.d.ts +6 -0
  68. package/lib/typescript/lib/module/views/index.d.ts +0 -1
  69. package/lib/typescript/src/dom/nodes/index.d.ts +0 -1
  70. package/lib/typescript/src/external/reanimated/renderHelpers.d.ts +0 -6
  71. package/lib/typescript/src/index.d.ts +0 -1
  72. package/lib/typescript/src/renderer/Canvas.d.ts +10 -1
  73. package/lib/typescript/src/sksg/Container.d.ts +2 -0
  74. package/lib/typescript/src/sksg/Elements.d.ts +65 -0
  75. package/lib/typescript/src/sksg/Reconciler.d.ts +1 -0
  76. package/lib/typescript/src/views/index.d.ts +0 -1
  77. package/package.json +1 -1
  78. package/react-native-skia.podspec +1 -1
  79. package/src/dom/nodes/index.ts +0 -1
  80. package/src/external/reanimated/renderHelpers.ts +1 -78
  81. package/src/index.ts +0 -1
  82. package/src/renderer/Canvas.tsx +11 -1
  83. package/src/sksg/Container.ts +11 -0
  84. package/src/sksg/Elements.tsx +136 -0
  85. package/src/sksg/Reconciler.ts +2 -0
  86. package/src/views/index.ts +0 -1
  87. package/android/cpp/jni/include/JniSkiaDomView.h +0 -82
  88. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomView.java +0 -41
  89. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomViewManager.java +0 -32
  90. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDomViewManagerDelegate.java +0 -34
  91. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDomViewManagerInterface.java +0 -18
  92. package/cpp/rnskia/RNSkDomView.cpp +0 -121
  93. package/cpp/rnskia/RNSkDomView.h +0 -97
  94. package/cpp/rnskia/dom/JsiDomApi.h +0 -165
  95. package/cpp/rnskia/dom/base/BaseNodeProp.h +0 -72
  96. package/cpp/rnskia/dom/base/ConcatablePaint.cpp +0 -117
  97. package/cpp/rnskia/dom/base/ConcatablePaint.h +0 -49
  98. package/cpp/rnskia/dom/base/Declaration.h +0 -86
  99. package/cpp/rnskia/dom/base/DeclarationContext.h +0 -79
  100. package/cpp/rnskia/dom/base/DerivedNodeProp.h +0 -203
  101. package/cpp/rnskia/dom/base/DrawingContext.cpp +0 -55
  102. package/cpp/rnskia/dom/base/DrawingContext.h +0 -104
  103. package/cpp/rnskia/dom/base/JsiDomDeclarationNode.h +0 -119
  104. package/cpp/rnskia/dom/base/JsiDomDrawingNode.h +0 -71
  105. package/cpp/rnskia/dom/base/JsiDomNode.h +0 -572
  106. package/cpp/rnskia/dom/base/JsiDomRenderNode.h +0 -262
  107. package/cpp/rnskia/dom/base/NodeProp.h +0 -139
  108. package/cpp/rnskia/dom/base/NodePropsContainer.h +0 -158
  109. package/cpp/rnskia/dom/nodes/JsiAtlasNode.h +0 -64
  110. package/cpp/rnskia/dom/nodes/JsiBackdropFilterNode.h +0 -49
  111. package/cpp/rnskia/dom/nodes/JsiBlendNode.h +0 -94
  112. package/cpp/rnskia/dom/nodes/JsiBlurMaskNode.h +0 -75
  113. package/cpp/rnskia/dom/nodes/JsiBoxNode.h +0 -94
  114. package/cpp/rnskia/dom/nodes/JsiBoxShadowNode.h +0 -33
  115. package/cpp/rnskia/dom/nodes/JsiCircleNode.h +0 -35
  116. package/cpp/rnskia/dom/nodes/JsiColorFilterNodes.h +0 -164
  117. package/cpp/rnskia/dom/nodes/JsiDiffRectNode.h +0 -37
  118. package/cpp/rnskia/dom/nodes/JsiFillNode.h +0 -22
  119. package/cpp/rnskia/dom/nodes/JsiGlyphsNode.h +0 -53
  120. package/cpp/rnskia/dom/nodes/JsiGroupNode.h +0 -25
  121. package/cpp/rnskia/dom/nodes/JsiImageFilterNodes.h +0 -361
  122. package/cpp/rnskia/dom/nodes/JsiImageNode.h +0 -43
  123. package/cpp/rnskia/dom/nodes/JsiImageSvgNode.h +0 -63
  124. package/cpp/rnskia/dom/nodes/JsiLayerNode.h +0 -74
  125. package/cpp/rnskia/dom/nodes/JsiLineNode.h +0 -38
  126. package/cpp/rnskia/dom/nodes/JsiOvalNode.h +0 -32
  127. package/cpp/rnskia/dom/nodes/JsiPaintNode.h +0 -119
  128. package/cpp/rnskia/dom/nodes/JsiParagraphNode.h +0 -62
  129. package/cpp/rnskia/dom/nodes/JsiPatchNode.h +0 -50
  130. package/cpp/rnskia/dom/nodes/JsiPathEffectNodes.h +0 -268
  131. package/cpp/rnskia/dom/nodes/JsiPathNode.h +0 -181
  132. package/cpp/rnskia/dom/nodes/JsiPictureNode.h +0 -31
  133. package/cpp/rnskia/dom/nodes/JsiPointsNode.h +0 -48
  134. package/cpp/rnskia/dom/nodes/JsiRRectNode.h +0 -33
  135. package/cpp/rnskia/dom/nodes/JsiRectNode.h +0 -33
  136. package/cpp/rnskia/dom/nodes/JsiShaderNodes.h +0 -434
  137. package/cpp/rnskia/dom/nodes/JsiTextBlobNode.h +0 -44
  138. package/cpp/rnskia/dom/nodes/JsiTextNode.h +0 -51
  139. package/cpp/rnskia/dom/nodes/JsiTextPathNode.h +0 -33
  140. package/cpp/rnskia/dom/nodes/JsiVerticesNode.h +0 -41
  141. package/cpp/rnskia/dom/props/BezierProps.h +0 -65
  142. package/cpp/rnskia/dom/props/BlendModeProp.h +0 -103
  143. package/cpp/rnskia/dom/props/BoxShadowProps.h +0 -62
  144. package/cpp/rnskia/dom/props/CircleProp.h +0 -49
  145. package/cpp/rnskia/dom/props/ClipProp.h +0 -57
  146. package/cpp/rnskia/dom/props/ColorProp.h +0 -96
  147. package/cpp/rnskia/dom/props/FontProp.h +0 -42
  148. package/cpp/rnskia/dom/props/GlyphsProp.h +0 -55
  149. package/cpp/rnskia/dom/props/LayerProp.h +0 -52
  150. package/cpp/rnskia/dom/props/MatrixProp.h +0 -54
  151. package/cpp/rnskia/dom/props/NumbersProp.h +0 -67
  152. package/cpp/rnskia/dom/props/PaintProps.h +0 -133
  153. package/cpp/rnskia/dom/props/ParagraphProp.h +0 -45
  154. package/cpp/rnskia/dom/props/PathProp.h +0 -59
  155. package/cpp/rnskia/dom/props/PictureProp.h +0 -40
  156. package/cpp/rnskia/dom/props/PointProp.h +0 -65
  157. package/cpp/rnskia/dom/props/PointsProp.h +0 -81
  158. package/cpp/rnskia/dom/props/RRectProp.h +0 -222
  159. package/cpp/rnskia/dom/props/RSXformProp.h +0 -52
  160. package/cpp/rnskia/dom/props/RadiusProp.h +0 -43
  161. package/cpp/rnskia/dom/props/RectProp.h +0 -164
  162. package/cpp/rnskia/dom/props/SamplingProp.h +0 -54
  163. package/cpp/rnskia/dom/props/SkImageProps.h +0 -196
  164. package/cpp/rnskia/dom/props/StrokeProps.h +0 -79
  165. package/cpp/rnskia/dom/props/SvgProp.h +0 -45
  166. package/cpp/rnskia/dom/props/TextBlobProp.h +0 -133
  167. package/cpp/rnskia/dom/props/TileModeProp.h +0 -52
  168. package/cpp/rnskia/dom/props/TransformProp.h +0 -147
  169. package/cpp/rnskia/dom/props/TransformsProps.h +0 -66
  170. package/cpp/rnskia/dom/props/UniformsProp.h +0 -159
  171. package/cpp/rnskia/dom/props/VertexModeProp.h +0 -49
  172. package/cpp/rnskia/dom/props/VerticesProps.h +0 -63
  173. package/ios/RNSkia-iOS/SkiaDomView.h +0 -7
  174. package/ios/RNSkia-iOS/SkiaDomView.mm +0 -63
  175. package/ios/RNSkia-iOS/SkiaDomViewManager.h +0 -8
  176. package/ios/RNSkia-iOS/SkiaDomViewManager.mm +0 -51
  177. package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +0 -64
  178. package/lib/commonjs/dom/nodes/JsiSkDOM.js +0 -196
  179. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +0 -1
  180. package/lib/commonjs/renderer/CanvasOld.d.ts +0 -11
  181. package/lib/commonjs/renderer/CanvasOld.js +0 -96
  182. package/lib/commonjs/renderer/CanvasOld.js.map +0 -1
  183. package/lib/commonjs/renderer/Container.d.ts +0 -10
  184. package/lib/commonjs/renderer/Container.js +0 -26
  185. package/lib/commonjs/renderer/Container.js.map +0 -1
  186. package/lib/commonjs/renderer/HostComponents.d.ts +0 -129
  187. package/lib/commonjs/renderer/HostComponents.js +0 -141
  188. package/lib/commonjs/renderer/HostComponents.js.map +0 -1
  189. package/lib/commonjs/renderer/HostConfig.d.ts +0 -18
  190. package/lib/commonjs/renderer/HostConfig.js +0 -157
  191. package/lib/commonjs/renderer/HostConfig.js.map +0 -1
  192. package/lib/commonjs/renderer/Reconciler.d.ts +0 -9
  193. package/lib/commonjs/renderer/Reconciler.js +0 -44
  194. package/lib/commonjs/renderer/Reconciler.js.map +0 -1
  195. package/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +0 -6
  196. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +0 -11
  197. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +0 -1
  198. package/lib/commonjs/views/SkiaDomView.d.ts +0 -33
  199. package/lib/commonjs/views/SkiaDomView.js +0 -119
  200. package/lib/commonjs/views/SkiaDomView.js.map +0 -1
  201. package/lib/commonjs/views/SkiaDomView.web.d.ts +0 -0
  202. package/lib/commonjs/views/SkiaDomView.web.js +0 -2
  203. package/lib/commonjs/views/SkiaDomView.web.js.map +0 -1
  204. package/lib/module/dom/nodes/JsiSkDOM.d.ts +0 -64
  205. package/lib/module/dom/nodes/JsiSkDOM.js +0 -189
  206. package/lib/module/dom/nodes/JsiSkDOM.js.map +0 -1
  207. package/lib/module/renderer/CanvasOld.d.ts +0 -11
  208. package/lib/module/renderer/CanvasOld.js +0 -87
  209. package/lib/module/renderer/CanvasOld.js.map +0 -1
  210. package/lib/module/renderer/Container.d.ts +0 -10
  211. package/lib/module/renderer/Container.js +0 -19
  212. package/lib/module/renderer/Container.js.map +0 -1
  213. package/lib/module/renderer/HostComponents.d.ts +0 -129
  214. package/lib/module/renderer/HostComponents.js +0 -134
  215. package/lib/module/renderer/HostComponents.js.map +0 -1
  216. package/lib/module/renderer/HostConfig.d.ts +0 -18
  217. package/lib/module/renderer/HostConfig.js +0 -150
  218. package/lib/module/renderer/HostConfig.js.map +0 -1
  219. package/lib/module/renderer/Reconciler.d.ts +0 -9
  220. package/lib/module/renderer/Reconciler.js +0 -36
  221. package/lib/module/renderer/Reconciler.js.map +0 -1
  222. package/lib/module/specs/SkiaDomViewNativeComponent.d.ts +0 -6
  223. package/lib/module/specs/SkiaDomViewNativeComponent.js +0 -4
  224. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +0 -1
  225. package/lib/module/views/SkiaDomView.d.ts +0 -33
  226. package/lib/module/views/SkiaDomView.js +0 -111
  227. package/lib/module/views/SkiaDomView.js.map +0 -1
  228. package/lib/module/views/SkiaDomView.web.d.ts +0 -0
  229. package/lib/module/views/SkiaDomView.web.js +0 -2
  230. package/lib/module/views/SkiaDomView.web.js.map +0 -1
  231. package/lib/typescript/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +0 -60
  232. package/lib/typescript/lib/commonjs/renderer/CanvasOld.d.ts +0 -3
  233. package/lib/typescript/lib/commonjs/renderer/Container.d.ts +0 -9
  234. package/lib/typescript/lib/commonjs/renderer/HostComponents.d.ts +0 -2
  235. package/lib/typescript/lib/commonjs/renderer/HostConfig.d.ts +0 -40
  236. package/lib/typescript/lib/commonjs/renderer/Reconciler.d.ts +0 -10
  237. package/lib/typescript/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +0 -3
  238. package/lib/typescript/lib/commonjs/views/SkiaDomView.d.ts +0 -30
  239. package/lib/typescript/lib/commonjs/views/SkiaDomView.web.d.ts +0 -0
  240. package/lib/typescript/lib/module/dom/nodes/JsiSkDOM.d.ts +0 -59
  241. package/lib/typescript/lib/module/renderer/CanvasOld.d.ts +0 -3
  242. package/lib/typescript/lib/module/renderer/Container.d.ts +0 -9
  243. package/lib/typescript/lib/module/renderer/HostComponents.d.ts +0 -1
  244. package/lib/typescript/lib/module/renderer/HostConfig.d.ts +0 -39
  245. package/lib/typescript/lib/module/renderer/Reconciler.d.ts +0 -9
  246. package/lib/typescript/lib/module/specs/SkiaDomViewNativeComponent.d.ts +0 -2
  247. package/lib/typescript/lib/module/views/SkiaDomView.d.ts +0 -27
  248. package/lib/typescript/lib/module/views/SkiaDomView.web.d.ts +0 -0
  249. package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +0 -64
  250. package/lib/typescript/src/renderer/CanvasOld.d.ts +0 -11
  251. package/lib/typescript/src/renderer/Container.d.ts +0 -10
  252. package/lib/typescript/src/renderer/HostComponents.d.ts +0 -129
  253. package/lib/typescript/src/renderer/HostConfig.d.ts +0 -18
  254. package/lib/typescript/src/renderer/Reconciler.d.ts +0 -9
  255. package/lib/typescript/src/specs/SkiaDomViewNativeComponent.d.ts +0 -6
  256. package/lib/typescript/src/views/SkiaDomView.d.ts +0 -33
  257. package/lib/typescript/src/views/SkiaDomView.web.d.ts +0 -0
  258. package/src/dom/nodes/JsiSkDOM.ts +0 -298
  259. package/src/renderer/CanvasOld.tsx +0 -126
  260. package/src/renderer/Container.tsx +0 -19
  261. package/src/renderer/HostComponents.ts +0 -399
  262. package/src/renderer/HostConfig.ts +0 -258
  263. package/src/renderer/Reconciler.tsx +0 -54
  264. package/src/specs/SkiaDomViewNativeComponent.ts +0 -9
  265. package/src/views/SkiaDomView.tsx +0 -124
  266. package/src/views/SkiaDomView.web.tsx +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_Platform","_SkiaDomViewNativeComponent","_api","_SkiaViewNativeId","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_defineProperty","_toPropertyKey","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","NativeSkiaDomView","Platform","OS","SkiaDomViewNativeComponent","SkiaDomView","React","Component","constructor","props","_nativeId","SkiaViewNativeId","current","root","onSize","assertSkiaViewApi","SkiaViewApi","setJsiProperty","tick","nativeId","componentDidUpdate","prevProps","componentWillUnmount","requestId","cancelAnimationFrame","redraw","mode","requestAnimationFrame","makeImageSnapshot","rect","makeImageSnapshotAsync","requestRedraw","render","debug","opaque","viewProps","createElement","collapsable","nativeID","exports","Error"],"sources":["SkiaDomView.tsx"],"sourcesContent":["import React from \"react\";\nimport type { HostComponent } from \"react-native\";\n\nimport type { SkRect } from \"../skia/types\";\nimport { Platform } from \"../Platform\";\nimport SkiaDomViewNativeComponent from \"../specs/SkiaDomViewNativeComponent\";\n\nimport { SkiaViewApi } from \"./api\";\nimport type { SkiaDomViewNativeProps } from \"./types\";\nimport { SkiaViewNativeId } from \"./SkiaViewNativeId\";\n\nconst NativeSkiaDomView: HostComponent<SkiaDomViewNativeProps> =\n Platform.OS !== \"web\"\n ? SkiaDomViewNativeComponent\n : // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (null as any);\n\ninterface SkiaDomViewProps extends SkiaDomViewNativeProps {\n mode?: \"default\" | \"continuous\";\n}\n\nexport class SkiaDomView extends React.Component<SkiaDomViewProps> {\n constructor(props: SkiaDomViewProps) {\n super(props);\n this._nativeId = SkiaViewNativeId.current++;\n const { root, onSize } = props;\n if (root) {\n assertSkiaViewApi();\n SkiaViewApi.setJsiProperty(this._nativeId, \"root\", root);\n }\n if (onSize) {\n assertSkiaViewApi();\n SkiaViewApi.setJsiProperty(this._nativeId, \"onSize\", onSize);\n }\n this.tick();\n }\n\n private _nativeId: number;\n private requestId = 0;\n\n public get nativeId() {\n return this._nativeId;\n }\n\n componentDidUpdate(prevProps: SkiaDomViewProps) {\n const { root, onSize } = this.props;\n if (root !== prevProps.root) {\n assertSkiaViewApi();\n SkiaViewApi.setJsiProperty(this._nativeId, \"root\", root);\n }\n if (onSize !== prevProps.onSize) {\n assertSkiaViewApi();\n SkiaViewApi.setJsiProperty(this._nativeId, \"onSize\", onSize);\n }\n if (onSize !== prevProps.onSize || root !== prevProps.root) {\n this.tick();\n }\n }\n\n componentWillUnmount(): void {\n if (this.requestId) {\n cancelAnimationFrame(this.requestId);\n }\n }\n\n private tick() {\n this.redraw();\n if (this.props.mode === \"continuous\") {\n this.requestId = requestAnimationFrame(this.tick.bind(this));\n }\n }\n\n /**\n * Creates a snapshot from the canvas in the surface\n * @param rect Rect to use as bounds. Optional.\n * @returns An Image object.\n */\n public makeImageSnapshot(rect?: SkRect) {\n assertSkiaViewApi();\n return SkiaViewApi.makeImageSnapshot(this._nativeId, rect);\n }\n\n /**\n * Creates a snapshot from the canvas in the surface\n * @param rect Rect to use as bounds. Optional.\n * @returns An Image object.\n */\n public makeImageSnapshotAsync(rect?: SkRect) {\n assertSkiaViewApi();\n return SkiaViewApi.makeImageSnapshotAsync(this._nativeId, rect);\n }\n\n /**\n * Sends a redraw request to the native SkiaView.\n */\n public redraw() {\n assertSkiaViewApi();\n SkiaViewApi.requestRedraw(this._nativeId);\n }\n\n render() {\n const { debug = false, opaque = false, ...viewProps } = this.props;\n return (\n <NativeSkiaDomView\n collapsable={false}\n nativeID={`${this._nativeId}`}\n debug={debug}\n opaque={opaque}\n {...viewProps}\n />\n );\n }\n}\n\nconst assertSkiaViewApi = () => {\n if (\n SkiaViewApi === null ||\n SkiaViewApi.setJsiProperty === null ||\n SkiaViewApi.requestRedraw === null ||\n SkiaViewApi.makeImageSnapshot === null\n ) {\n throw Error(\"Skia View Api was not found.\");\n }\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,IAAA,GAAAH,OAAA;AAEA,IAAAI,iBAAA,GAAAJ,OAAA;AAAsD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,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AAI,EACtC;IACA,MAAMY,KAAK,CAAC,8BAA8B,CAAC;EAC7C;AACF,CAAC","ignoreList":[]}
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=SkiaDomView.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["SkiaDomView.web.tsx"],"sourcesContent":[""],"mappings":"","ignoreList":[]}
@@ -1,64 +0,0 @@
1
- import type { PathProps, SkDOM, GroupProps, ImageProps, BlurImageFilterProps, MatrixColorFilterProps, CircleProps, BlurMaskFilterProps, LinearGradientProps, PaintProps, ShaderProps, ImageShaderProps, LineProps, OvalProps, PatchProps, PointsProps, RectProps, RoundedRectProps, VerticesProps, TextProps, DiffRectProps, OffsetImageFilterProps, BlendColorFilterProps, TextPathProps, TextBlobProps, GlyphsProps, TwoPointConicalGradientProps, TurbulenceProps, SweepGradientProps, RadialGradientProps, FractalNoiseProps, ColorProps, PictureProps, ImageSVGProps, LerpColorFilterProps, DrawingNodeProps, BoxProps, BoxShadowProps, ChildrenProps, AtlasProps } from "../types";
2
- import type { BlendImageFilterProps, BlendProps, DisplacementMapImageFilterProps, DropShadowImageFilterProps, MorphologyImageFilterProps, RuntimeShaderImageFilterProps } from "../types/ImageFilters";
3
- import type { CornerPathEffectProps, DashPathEffectProps, DiscretePathEffectProps, Line2DPathEffectProps, Path1DPathEffectProps, Path2DPathEffectProps } from "../types/PathEffects";
4
- import type { ParagraphProps } from "../types/Paragraph";
5
- export declare class JsiSkDOM implements SkDOM {
6
- constructor();
7
- Layer(props?: ChildrenProps): import("../types").RenderNode<ChildrenProps>;
8
- Group(props?: GroupProps): import("../types").RenderNode<GroupProps>;
9
- Paint(props: PaintProps): import("../types").DeclarationNode<PaintProps>;
10
- Fill(props?: DrawingNodeProps): import("../types").RenderNode<PaintProps>;
11
- Image(props: ImageProps): import("../types").RenderNode<ImageProps>;
12
- Circle(props: CircleProps): import("../types").RenderNode<CircleProps>;
13
- Path(props: PathProps): import("../types").RenderNode<PathProps>;
14
- Line(props: LineProps): import("../types").RenderNode<LineProps>;
15
- Oval(props: OvalProps): import("../types").RenderNode<OvalProps>;
16
- Patch(props: PatchProps): import("../types").RenderNode<PatchProps>;
17
- Points(props: PointsProps): import("../types").RenderNode<PointsProps>;
18
- Rect(props: RectProps): import("../types").RenderNode<RectProps>;
19
- RRect(props: RoundedRectProps): import("../types").RenderNode<RoundedRectProps>;
20
- Vertices(props: VerticesProps): import("../types").RenderNode<VerticesProps>;
21
- Text(props: TextProps): import("../types").RenderNode<TextProps>;
22
- TextPath(props: TextPathProps): import("../types").RenderNode<TextPathProps>;
23
- TextBlob(props: TextBlobProps): import("../types").RenderNode<TextBlobProps>;
24
- Glyphs(props: GlyphsProps): import("../types").RenderNode<GlyphsProps>;
25
- DiffRect(props: DiffRectProps): import("../types").RenderNode<DiffRectProps>;
26
- Picture(props: PictureProps): import("../types").RenderNode<PictureProps>;
27
- Atlas(props: AtlasProps): import("../types").RenderNode<AtlasProps>;
28
- ImageSVG(props: ImageSVGProps): import("../types").RenderNode<ImageSVGProps>;
29
- BlurMaskFilter(props: BlurMaskFilterProps): import("../types").DeclarationNode<BlurMaskFilterProps>;
30
- BlendImageFilter(props: BlendImageFilterProps): import("../types").DeclarationNode<BlendImageFilterProps>;
31
- DropShadowImageFilter(props: DropShadowImageFilterProps): import("../types").DeclarationNode<DropShadowImageFilterProps>;
32
- DisplacementMapImageFilter(props: DisplacementMapImageFilterProps): import("../types").DeclarationNode<DisplacementMapImageFilterProps>;
33
- BlurImageFilter(props: BlurImageFilterProps): import("../types").DeclarationNode<BlurImageFilterProps>;
34
- OffsetImageFilter(props: OffsetImageFilterProps): import("../types").DeclarationNode<OffsetImageFilterProps>;
35
- MorphologyImageFilter(props: MorphologyImageFilterProps): import("../types").DeclarationNode<MorphologyImageFilterProps>;
36
- RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps): import("../types").DeclarationNode<RuntimeShaderImageFilterProps>;
37
- MatrixColorFilter(props: MatrixColorFilterProps): import("../types").DeclarationNode<MatrixColorFilterProps>;
38
- BlendColorFilter(props: BlendColorFilterProps): import("../types").DeclarationNode<BlendColorFilterProps>;
39
- LumaColorFilter(): import("../types").DeclarationNode<null>;
40
- LinearToSRGBGammaColorFilter(): import("../types").DeclarationNode<null>;
41
- SRGBToLinearGammaColorFilter(): import("../types").DeclarationNode<null>;
42
- LerpColorFilter(props: LerpColorFilterProps): import("../types").DeclarationNode<LerpColorFilterProps>;
43
- Shader(props: ShaderProps): import("../types").DeclarationNode<ShaderProps>;
44
- ImageShader(props: ImageShaderProps): import("../types").DeclarationNode<ImageShaderProps>;
45
- ColorShader(props: ColorProps): import("../types").DeclarationNode<ColorProps>;
46
- SweepGradient(props: SweepGradientProps): import("../types").DeclarationNode<SweepGradientProps>;
47
- Turbulence(props: TurbulenceProps): import("../types").DeclarationNode<TurbulenceProps>;
48
- FractalNoise(props: FractalNoiseProps): import("../types").DeclarationNode<FractalNoiseProps>;
49
- LinearGradient(props: LinearGradientProps): import("../types").DeclarationNode<LinearGradientProps>;
50
- RadialGradient(props: RadialGradientProps): import("../types").DeclarationNode<RadialGradientProps>;
51
- TwoPointConicalGradient(props: TwoPointConicalGradientProps): import("../types").DeclarationNode<TwoPointConicalGradientProps>;
52
- CornerPathEffect(props: CornerPathEffectProps): import("../types").DeclarationNode<CornerPathEffectProps>;
53
- DiscretePathEffect(props: DiscretePathEffectProps): import("../types").DeclarationNode<DiscretePathEffectProps>;
54
- DashPathEffect(props: DashPathEffectProps): import("../types").DeclarationNode<DashPathEffectProps>;
55
- Path1DPathEffect(props: Path1DPathEffectProps): import("../types").DeclarationNode<Path1DPathEffectProps>;
56
- Path2DPathEffect(props: Path2DPathEffectProps): import("../types").DeclarationNode<Path2DPathEffectProps>;
57
- SumPathEffect(): import("../types").DeclarationNode<null>;
58
- Line2DPathEffect(props: Line2DPathEffectProps): import("../types").DeclarationNode<Line2DPathEffectProps>;
59
- Blend(props: BlendProps): import("../types").DeclarationNode<BlendProps>;
60
- BackdropFilter(props: ChildrenProps): import("../types").RenderNode<ChildrenProps>;
61
- Box(props: BoxProps): import("../types").RenderNode<BoxProps>;
62
- BoxShadow(props: BoxShadowProps): import("../types").DeclarationNode<BoxShadowProps>;
63
- Paragraph(props: ParagraphProps): import("../types").RenderNode<ParagraphProps>;
64
- }
@@ -1,189 +0,0 @@
1
- export class JsiSkDOM {
2
- constructor() {}
3
- Layer(props) {
4
- return global.SkiaDomApi.LayerNode(props !== null && props !== void 0 ? props : {});
5
- }
6
- Group(props) {
7
- return global.SkiaDomApi.GroupNode(props !== null && props !== void 0 ? props : {});
8
- }
9
- Paint(props) {
10
- return global.SkiaDomApi.PaintNode(props !== null && props !== void 0 ? props : {});
11
- }
12
-
13
- // Drawings
14
- Fill(props) {
15
- return global.SkiaDomApi.FillNode(props !== null && props !== void 0 ? props : {});
16
- }
17
- Image(props) {
18
- return global.SkiaDomApi.ImageNode(props !== null && props !== void 0 ? props : {});
19
- }
20
- Circle(props) {
21
- return global.SkiaDomApi.CircleNode(props !== null && props !== void 0 ? props : {});
22
- }
23
- Path(props) {
24
- return global.SkiaDomApi.PathNode(props !== null && props !== void 0 ? props : {});
25
- }
26
- Line(props) {
27
- return global.SkiaDomApi.LineNode(props !== null && props !== void 0 ? props : {});
28
- }
29
- Oval(props) {
30
- return global.SkiaDomApi.OvalNode(props !== null && props !== void 0 ? props : {});
31
- }
32
- Patch(props) {
33
- return global.SkiaDomApi.PatchNode(props !== null && props !== void 0 ? props : {});
34
- }
35
- Points(props) {
36
- return global.SkiaDomApi.PointsNode(props !== null && props !== void 0 ? props : {});
37
- }
38
- Rect(props) {
39
- return global.SkiaDomApi.RectNode(props);
40
- }
41
- RRect(props) {
42
- return global.SkiaDomApi.RRectNode(props);
43
- }
44
- Vertices(props) {
45
- return global.SkiaDomApi.VerticesNode(props);
46
- }
47
- Text(props) {
48
- return global.SkiaDomApi.TextNode(props);
49
- }
50
- TextPath(props) {
51
- return global.SkiaDomApi.TextPathNode(props);
52
- }
53
- TextBlob(props) {
54
- return global.SkiaDomApi.TextBlobNode(props);
55
- }
56
- Glyphs(props) {
57
- return global.SkiaDomApi.GlyphsNode(props);
58
- }
59
- DiffRect(props) {
60
- return global.SkiaDomApi.DiffRectNode(props);
61
- }
62
- Picture(props) {
63
- return global.SkiaDomApi.PictureNode(props);
64
- }
65
- Atlas(props) {
66
- return global.SkiaDomApi.AtlasNode(props);
67
- }
68
- ImageSVG(props) {
69
- return global.SkiaDomApi.ImageSVGNode(props);
70
- }
71
-
72
- // BlurMaskFilters
73
- BlurMaskFilter(props) {
74
- return global.SkiaDomApi.BlurMaskFilterNode(props);
75
- }
76
-
77
- // ImageFilters
78
- BlendImageFilter(props) {
79
- return global.SkiaDomApi.BlendImageFilterNode(props);
80
- }
81
- DropShadowImageFilter(props) {
82
- return global.SkiaDomApi.DropShadowImageFilterNode(props);
83
- }
84
- DisplacementMapImageFilter(props) {
85
- return global.SkiaDomApi.DisplacementMapImageFilterNode(props);
86
- }
87
- BlurImageFilter(props) {
88
- return global.SkiaDomApi.BlurImageFilterNode(props);
89
- }
90
- OffsetImageFilter(props) {
91
- return global.SkiaDomApi.OffsetImageFilterNode(props);
92
- }
93
- MorphologyImageFilter(props) {
94
- return global.SkiaDomApi.MorphologyImageFilterNode(props);
95
- }
96
- RuntimeShaderImageFilter(props) {
97
- return global.SkiaDomApi.RuntimeShaderImageFilterNode(props);
98
- }
99
-
100
- // Color Filters
101
- MatrixColorFilter(props) {
102
- return global.SkiaDomApi.MatrixColorFilterNode(props);
103
- }
104
- BlendColorFilter(props) {
105
- return global.SkiaDomApi.BlendColorFilterNode(props);
106
- }
107
- LumaColorFilter() {
108
- return global.SkiaDomApi.LumaColorFilterNode();
109
- }
110
- LinearToSRGBGammaColorFilter() {
111
- return global.SkiaDomApi.LinearToSRGBGammaColorFilterNode();
112
- }
113
- SRGBToLinearGammaColorFilter() {
114
- return global.SkiaDomApi.SRGBToLinearGammaColorFilterNode();
115
- }
116
- LerpColorFilter(props) {
117
- return global.SkiaDomApi.LerpColorFilterNode(props);
118
- }
119
-
120
- // Shaders
121
- Shader(props) {
122
- return global.SkiaDomApi.ShaderNode(props);
123
- }
124
- ImageShader(props) {
125
- return global.SkiaDomApi.ImageShaderNode(props);
126
- }
127
- ColorShader(props) {
128
- return global.SkiaDomApi.ColorShaderNode(props);
129
- }
130
- SweepGradient(props) {
131
- return global.SkiaDomApi.SweepGradientNode(props);
132
- }
133
- Turbulence(props) {
134
- return global.SkiaDomApi.TurbulenceNode(props);
135
- }
136
- FractalNoise(props) {
137
- return global.SkiaDomApi.FractalNoiseNode(props);
138
- }
139
- LinearGradient(props) {
140
- return global.SkiaDomApi.LinearGradientNode(props);
141
- }
142
- RadialGradient(props) {
143
- return global.SkiaDomApi.RadialGradientNode(props);
144
- }
145
- TwoPointConicalGradient(props) {
146
- return global.SkiaDomApi.TwoPointConicalGradientNode(props);
147
- }
148
-
149
- // Path Effects
150
- CornerPathEffect(props) {
151
- return global.SkiaDomApi.CornerPathEffectNode(props);
152
- }
153
- DiscretePathEffect(props) {
154
- return global.SkiaDomApi.DiscretePathEffectNode(props);
155
- }
156
- DashPathEffect(props) {
157
- return global.SkiaDomApi.DashPathEffectNode(props);
158
- }
159
- Path1DPathEffect(props) {
160
- return global.SkiaDomApi.Path1DPathEffectNode(props);
161
- }
162
- Path2DPathEffect(props) {
163
- return global.SkiaDomApi.Path2DPathEffectNode(props);
164
- }
165
- SumPathEffect() {
166
- return global.SkiaDomApi.SumPathEffectNode();
167
- }
168
- Line2DPathEffect(props) {
169
- return global.SkiaDomApi.Line2DPathEffectNode(props);
170
- }
171
- Blend(props) {
172
- return global.SkiaDomApi.BlendNode(props);
173
- }
174
- BackdropFilter(props) {
175
- return global.SkiaDomApi.BackdropFilterNode(props);
176
- }
177
- Box(props) {
178
- return global.SkiaDomApi.BoxNode(props);
179
- }
180
- BoxShadow(props) {
181
- return global.SkiaDomApi.BoxShadowNode(props);
182
- }
183
-
184
- // Paragraph
185
- Paragraph(props) {
186
- return global.SkiaDomApi.ParagraphNode(props);
187
- }
188
- }
189
- //# sourceMappingURL=JsiSkDOM.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["JsiSkDOM","constructor","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","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 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\nexport class JsiSkDOM implements SkDOM {\n constructor() {}\n\n Layer(props?: ChildrenProps) {\n return global.SkiaDomApi.LayerNode(props ?? {});\n }\n\n Group(props?: GroupProps) {\n return global.SkiaDomApi.GroupNode(props ?? {});\n }\n\n Paint(props: PaintProps) {\n return global.SkiaDomApi.PaintNode(props ?? {});\n }\n\n // Drawings\n Fill(props?: DrawingNodeProps) {\n return global.SkiaDomApi.FillNode(props ?? {});\n }\n\n Image(props: ImageProps) {\n return global.SkiaDomApi.ImageNode(props ?? {});\n }\n\n Circle(props: CircleProps) {\n return global.SkiaDomApi.CircleNode(props ?? {});\n }\n\n Path(props: PathProps) {\n return global.SkiaDomApi.PathNode(props ?? {});\n }\n\n Line(props: LineProps) {\n return global.SkiaDomApi.LineNode(props ?? {});\n }\n\n Oval(props: OvalProps) {\n return global.SkiaDomApi.OvalNode(props ?? {});\n }\n\n Patch(props: PatchProps) {\n return global.SkiaDomApi.PatchNode(props ?? {});\n }\n\n Points(props: PointsProps) {\n return global.SkiaDomApi.PointsNode(props ?? {});\n }\n\n Rect(props: RectProps) {\n return global.SkiaDomApi.RectNode(props);\n }\n\n RRect(props: RoundedRectProps) {\n return global.SkiaDomApi.RRectNode(props);\n }\n\n Vertices(props: VerticesProps) {\n return global.SkiaDomApi.VerticesNode(props);\n }\n\n Text(props: TextProps) {\n return global.SkiaDomApi.TextNode(props);\n }\n\n TextPath(props: TextPathProps) {\n return global.SkiaDomApi.TextPathNode(props);\n }\n\n TextBlob(props: TextBlobProps) {\n return global.SkiaDomApi.TextBlobNode(props);\n }\n\n Glyphs(props: GlyphsProps) {\n return global.SkiaDomApi.GlyphsNode(props);\n }\n\n DiffRect(props: DiffRectProps) {\n return global.SkiaDomApi.DiffRectNode(props);\n }\n\n Picture(props: PictureProps) {\n return global.SkiaDomApi.PictureNode(props);\n }\n\n Atlas(props: AtlasProps) {\n return global.SkiaDomApi.AtlasNode(props);\n }\n\n ImageSVG(props: ImageSVGProps) {\n return global.SkiaDomApi.ImageSVGNode(props);\n }\n\n // BlurMaskFilters\n BlurMaskFilter(props: BlurMaskFilterProps) {\n return global.SkiaDomApi.BlurMaskFilterNode(props);\n }\n\n // ImageFilters\n BlendImageFilter(props: BlendImageFilterProps) {\n return global.SkiaDomApi.BlendImageFilterNode(props);\n }\n\n DropShadowImageFilter(props: DropShadowImageFilterProps) {\n return global.SkiaDomApi.DropShadowImageFilterNode(props);\n }\n\n DisplacementMapImageFilter(props: DisplacementMapImageFilterProps) {\n return global.SkiaDomApi.DisplacementMapImageFilterNode(props);\n }\n\n BlurImageFilter(props: BlurImageFilterProps) {\n return global.SkiaDomApi.BlurImageFilterNode(props);\n }\n\n OffsetImageFilter(props: OffsetImageFilterProps) {\n return global.SkiaDomApi.OffsetImageFilterNode(props);\n }\n\n MorphologyImageFilter(props: MorphologyImageFilterProps) {\n return global.SkiaDomApi.MorphologyImageFilterNode(props);\n }\n\n RuntimeShaderImageFilter(props: RuntimeShaderImageFilterProps) {\n return global.SkiaDomApi.RuntimeShaderImageFilterNode(props);\n }\n\n // Color Filters\n MatrixColorFilter(props: MatrixColorFilterProps) {\n return global.SkiaDomApi.MatrixColorFilterNode(props);\n }\n\n BlendColorFilter(props: BlendColorFilterProps) {\n return global.SkiaDomApi.BlendColorFilterNode(props);\n }\n\n LumaColorFilter() {\n return global.SkiaDomApi.LumaColorFilterNode();\n }\n\n LinearToSRGBGammaColorFilter() {\n return global.SkiaDomApi.LinearToSRGBGammaColorFilterNode();\n }\n\n SRGBToLinearGammaColorFilter() {\n return global.SkiaDomApi.SRGBToLinearGammaColorFilterNode();\n }\n\n LerpColorFilter(props: LerpColorFilterProps) {\n return global.SkiaDomApi.LerpColorFilterNode(props);\n }\n\n // Shaders\n Shader(props: ShaderProps) {\n return global.SkiaDomApi.ShaderNode(props);\n }\n\n ImageShader(props: ImageShaderProps) {\n return global.SkiaDomApi.ImageShaderNode(props);\n }\n\n ColorShader(props: ColorProps) {\n return global.SkiaDomApi.ColorShaderNode(props);\n }\n\n SweepGradient(props: SweepGradientProps) {\n return global.SkiaDomApi.SweepGradientNode(props);\n }\n\n Turbulence(props: TurbulenceProps) {\n return global.SkiaDomApi.TurbulenceNode(props);\n }\n\n FractalNoise(props: FractalNoiseProps) {\n return global.SkiaDomApi.FractalNoiseNode(props);\n }\n\n LinearGradient(props: LinearGradientProps) {\n return global.SkiaDomApi.LinearGradientNode(props);\n }\n\n RadialGradient(props: RadialGradientProps) {\n return global.SkiaDomApi.RadialGradientNode(props);\n }\n\n TwoPointConicalGradient(props: TwoPointConicalGradientProps) {\n return global.SkiaDomApi.TwoPointConicalGradientNode(props);\n }\n\n // Path Effects\n CornerPathEffect(props: CornerPathEffectProps) {\n return global.SkiaDomApi.CornerPathEffectNode(props);\n }\n\n DiscretePathEffect(props: DiscretePathEffectProps) {\n return global.SkiaDomApi.DiscretePathEffectNode(props);\n }\n\n DashPathEffect(props: DashPathEffectProps) {\n return global.SkiaDomApi.DashPathEffectNode(props);\n }\n\n Path1DPathEffect(props: Path1DPathEffectProps) {\n return global.SkiaDomApi.Path1DPathEffectNode(props);\n }\n\n Path2DPathEffect(props: Path2DPathEffectProps) {\n return global.SkiaDomApi.Path2DPathEffectNode(props);\n }\n\n SumPathEffect() {\n return global.SkiaDomApi.SumPathEffectNode();\n }\n\n Line2DPathEffect(props: Line2DPathEffectProps) {\n return global.SkiaDomApi.Line2DPathEffectNode(props);\n }\n\n Blend(props: BlendProps) {\n return global.SkiaDomApi.BlendNode(props);\n }\n\n BackdropFilter(props: ChildrenProps) {\n return global.SkiaDomApi.BackdropFilterNode(props);\n }\n\n Box(props: BoxProps) {\n return global.SkiaDomApi.BoxNode(props);\n }\n\n BoxShadow(props: BoxShadowProps) {\n return global.SkiaDomApi.BoxShadowNode(props);\n }\n\n // Paragraph\n Paragraph(props: ParagraphProps) {\n return global.SkiaDomApi.ParagraphNode(props);\n }\n}\n"],"mappings":"AA4DA,OAAO,MAAMA,QAAQ,CAAkB;EACrCC,WAAWA,CAAA,EAAG,CAAC;EAEfC,KAAKA,CAACC,KAAqB,EAAE;IAC3B,OAAOC,MAAM,CAACC,UAAU,CAACC,SAAS,CAACH,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,CAAC,CAAC,CAAC;EACjD;EAEAI,KAAKA,CAACJ,KAAkB,EAAE;IACxB,OAAOC,MAAM,CAACC,UAAU,CAACG,SAAS,CAACL,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,CAAC,CAAC,CAAC;EACjD;EAEAM,KAAKA,CAACN,KAAiB,EAAE;IACvB,OAAOC,MAAM,CAACC,UAAU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C,UAAU,CAAC+G,aAAa,CAACjH,KAAK,CAAC;EAC/C;;EAEA;EACAkH,SAASA,CAAClH,KAAqB,EAAE;IAC/B,OAAOC,MAAM,CAACC,UAAU,CAACiH,aAAa,CAACnH,KAAK,CAAC;EAC/C;AACF","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import type { RefObject, ReactNode, FunctionComponent } from "react";
3
- import { SkiaDomView } from "../views";
4
- import type { SkiaBaseViewProps } from "../views";
5
- export declare const useCanvasRef: () => React.RefObject<SkiaDomView>;
6
- export interface CanvasOldProps extends SkiaBaseViewProps {
7
- ref?: RefObject<SkiaDomView>;
8
- children: ReactNode;
9
- mode?: "default" | "continuous";
10
- }
11
- export declare const CanvasOld: FunctionComponent<CanvasOldProps & React.RefAttributes<SkiaDomView>>;
@@ -1,87 +0,0 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import React, { useEffect, useCallback, useMemo, forwardRef, useRef } from "react";
3
- import { SkiaDomView } from "../views";
4
- import { SkiaRoot } from "./Reconciler";
5
- export const useCanvasRef = () => useRef(null);
6
- const useOnSizeEvent = (resultValue, onLayout) => {
7
- return useCallback(event => {
8
- if (onLayout) {
9
- onLayout(event);
10
- }
11
- const {
12
- width,
13
- height
14
- } = event.nativeEvent.layout;
15
- if (resultValue) {
16
- resultValue.value = {
17
- width,
18
- height
19
- };
20
- }
21
- }, [onLayout, resultValue]);
22
- };
23
- export const CanvasOld = /*#__PURE__*/forwardRef(({
24
- children,
25
- style,
26
- debug,
27
- mode = "default",
28
- onSize: _onSize,
29
- onLayout: _onLayout,
30
- ...props
31
- }, forwardedRef) => {
32
- const onLayout = useOnSizeEvent(_onSize, _onLayout);
33
- const innerRef = useCanvasRef();
34
- const ref = useCombinedRefs(forwardedRef, innerRef);
35
- const redraw = useCallback(() => {
36
- var _innerRef$current;
37
- (_innerRef$current = innerRef.current) === null || _innerRef$current === void 0 || _innerRef$current.redraw();
38
- }, [innerRef]);
39
- const getNativeId = useCallback(() => {
40
- var _innerRef$current$nat, _innerRef$current2;
41
- const id = (_innerRef$current$nat = (_innerRef$current2 = innerRef.current) === null || _innerRef$current2 === void 0 ? void 0 : _innerRef$current2.nativeId) !== null && _innerRef$current$nat !== void 0 ? _innerRef$current$nat : -1;
42
- return id;
43
- }, [innerRef]);
44
- const root = useMemo(() => new SkiaRoot(redraw, getNativeId), [redraw, getNativeId]);
45
-
46
- // Render effect
47
- useEffect(() => {
48
- root.render(children);
49
- }, [children, root, redraw]);
50
- useEffect(() => {
51
- return () => {
52
- root.unmount();
53
- };
54
- }, [root]);
55
- return /*#__PURE__*/React.createElement(SkiaDomView, _extends({
56
- ref: ref,
57
- style: style,
58
- root: root.dom,
59
- onLayout: onLayout,
60
- debug: debug,
61
- mode: mode
62
- }, props));
63
- });
64
-
65
- /**
66
- * Combines a list of refs into a single ref. This can be used to provide
67
- * both a forwarded ref and an internal ref keeping the same functionality
68
- * on both of the refs.
69
- * @param refs Array of refs to combine
70
- * @returns A single ref that can be used in a ref prop.
71
- */
72
- const useCombinedRefs = (...refs) => {
73
- const targetRef = React.useRef(null);
74
- React.useEffect(() => {
75
- refs.forEach(ref => {
76
- if (ref) {
77
- if (typeof ref === "function") {
78
- ref(targetRef.current);
79
- } else {
80
- ref.current = targetRef.current;
81
- }
82
- }
83
- });
84
- }, [refs]);
85
- return targetRef;
86
- };
87
- //# sourceMappingURL=CanvasOld.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useEffect","useCallback","useMemo","forwardRef","useRef","SkiaDomView","SkiaRoot","useCanvasRef","useOnSizeEvent","resultValue","onLayout","event","width","height","nativeEvent","layout","value","CanvasOld","children","style","debug","mode","onSize","_onSize","_onLayout","props","forwardedRef","innerRef","ref","useCombinedRefs","redraw","_innerRef$current","current","getNativeId","_innerRef$current$nat","_innerRef$current2","id","nativeId","root","render","unmount","createElement","_extends","dom","refs","targetRef","forEach"],"sources":["CanvasOld.tsx"],"sourcesContent":["import React, {\n useEffect,\n useCallback,\n useMemo,\n forwardRef,\n useRef,\n} from \"react\";\nimport type {\n RefObject,\n ReactNode,\n MutableRefObject,\n ForwardedRef,\n FunctionComponent,\n} from \"react\";\nimport type { LayoutChangeEvent } from \"react-native\";\n\nimport { SkiaDomView } from \"../views\";\nimport type { SkiaBaseViewProps } from \"../views\";\n\nimport { SkiaRoot } from \"./Reconciler\";\n\nexport const useCanvasRef = () => useRef<SkiaDomView>(null);\n\nexport interface CanvasOldProps extends SkiaBaseViewProps {\n ref?: RefObject<SkiaDomView>;\n children: ReactNode;\n mode?: \"default\" | \"continuous\";\n}\n\nconst useOnSizeEvent = (\n resultValue: SkiaBaseViewProps[\"onSize\"],\n onLayout?: (event: LayoutChangeEvent) => void\n) => {\n return useCallback(\n (event: LayoutChangeEvent) => {\n if (onLayout) {\n onLayout(event);\n }\n const { width, height } = event.nativeEvent.layout;\n\n if (resultValue) {\n resultValue.value = { width, height };\n }\n },\n [onLayout, resultValue]\n );\n};\n\nexport const CanvasOld = forwardRef<SkiaDomView, CanvasOldProps>(\n (\n {\n children,\n style,\n debug,\n mode = \"default\",\n onSize: _onSize,\n onLayout: _onLayout,\n ...props\n },\n forwardedRef\n ) => {\n const onLayout = useOnSizeEvent(_onSize, _onLayout);\n const innerRef = useCanvasRef();\n const ref = useCombinedRefs(forwardedRef, innerRef);\n const redraw = useCallback(() => {\n innerRef.current?.redraw();\n }, [innerRef]);\n const getNativeId = useCallback(() => {\n const id = innerRef.current?.nativeId ?? -1;\n return id;\n }, [innerRef]);\n\n const root = useMemo(\n () => new SkiaRoot(redraw, getNativeId),\n [redraw, getNativeId]\n );\n\n // Render effect\n useEffect(() => {\n root.render(children);\n }, [children, root, redraw]);\n\n useEffect(() => {\n return () => {\n root.unmount();\n };\n }, [root]);\n\n return (\n <SkiaDomView\n ref={ref}\n style={style}\n root={root.dom}\n onLayout={onLayout}\n debug={debug}\n mode={mode}\n {...props}\n />\n );\n }\n) as FunctionComponent<CanvasOldProps & React.RefAttributes<SkiaDomView>>;\n\n/**\n * Combines a list of refs into a single ref. This can be used to provide\n * both a forwarded ref and an internal ref keeping the same functionality\n * on both of the refs.\n * @param refs Array of refs to combine\n * @returns A single ref that can be used in a ref prop.\n */\nconst useCombinedRefs = <T,>(\n ...refs: Array<MutableRefObject<T> | ForwardedRef<T>>\n) => {\n const targetRef = React.useRef<T>(null);\n React.useEffect(() => {\n refs.forEach((ref) => {\n if (ref) {\n if (typeof ref === \"function\") {\n ref(targetRef.current);\n } else {\n ref.current = targetRef.current;\n }\n }\n });\n }, [refs]);\n return targetRef;\n};\n"],"mappings":";AAAA,OAAOA,KAAK,IACVC,SAAS,EACTC,WAAW,EACXC,OAAO,EACPC,UAAU,EACVC,MAAM,QACD,OAAO;AAUd,SAASC,WAAW,QAAQ,UAAU;AAGtC,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,YAAY,GAAGA,CAAA,KAAMH,MAAM,CAAc,IAAI,CAAC;AAQ3D,MAAMI,cAAc,GAAGA,CACrBC,WAAwC,EACxCC,QAA6C,KAC1C;EACH,OAAOT,WAAW,CACfU,KAAwB,IAAK;IAC5B,IAAID,QAAQ,EAAE;MACZA,QAAQ,CAACC,KAAK,CAAC;IACjB;IACA,MAAM;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAGF,KAAK,CAACG,WAAW,CAACC,MAAM;IAElD,IAAIN,WAAW,EAAE;MACfA,WAAW,CAACO,KAAK,GAAG;QAAEJ,KAAK;QAAEC;MAAO,CAAC;IACvC;EACF,CAAC,EACD,CAACH,QAAQ,EAAED,WAAW,CACxB,CAAC;AACH,CAAC;AAED,OAAO,MAAMQ,SAAS,gBAAGd,UAAU,CACjC,CACE;EACEe,QAAQ;EACRC,KAAK;EACLC,KAAK;EACLC,IAAI,GAAG,SAAS;EAChBC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,CAAA0C,aAAA,CAACpC,WAAW,EAAAqC,QAAA;IACVd,GAAG,EAAEA,GAAI;IACTT,KAAK,EAAEA,KAAM;IACbmB,IAAI,EAAEA,IAAI,CAACK,GAAI;IACfjC,QAAQ,EAAEA,QAAS;IACnBU,KAAK,EAAEA,KAAM;IACbC,IAAI,EAAEA;EAAK,GACPI,KAAK,CACV,CAAC;AAEN,CACF,CAAyE;;AAEzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMI,eAAe,GAAGA,CACtB,GAAGe,IAAkD,KAClD;EACH,MAAMC,SAAS,GAAG9C,KAAK,CAACK,MAAM,CAAI,IAAI,CAAC;EACvCL,KAAK,CAACC,SAAS,CAAC,MAAM;IACpB4C,IAAI,CAACE,OAAO,CAAElB,GAAG,IAAK;MACpB,IAAIA,GAAG,EAAE;QACP,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;UAC7BA,GAAG,CAACiB,SAAS,CAACb,OAAO,CAAC;QACxB,CAAC,MAAM;UACLJ,GAAG,CAACI,OAAO,GAAGa,SAAS,CAACb,OAAO;QACjC;MACF;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACY,IAAI,CAAC,CAAC;EACV,OAAOC,SAAS;AAClB,CAAC","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- import type { Node, SkDOM } from "../dom/types";
2
- export declare class Container {
3
- redraw: () => void;
4
- getNativeId: () => number;
5
- private _root;
6
- Sk: SkDOM;
7
- unmounted: boolean;
8
- constructor(redraw?: () => void, getNativeId?: () => number);
9
- get root(): Node<unknown>;
10
- }
@@ -1,19 +0,0 @@
1
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
- 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); }
4
- import { JsiSkDOM } from "../dom/nodes";
5
- export class Container {
6
- constructor(redraw = () => {}, getNativeId = () => 0) {
7
- this.redraw = redraw;
8
- this.getNativeId = getNativeId;
9
- _defineProperty(this, "_root", void 0);
10
- _defineProperty(this, "Sk", void 0);
11
- _defineProperty(this, "unmounted", false);
12
- this.Sk = new JsiSkDOM();
13
- this._root = this.Sk.Group();
14
- }
15
- get root() {
16
- return this._root;
17
- }
18
- }
19
- //# sourceMappingURL=Container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["JsiSkDOM","Container","constructor","redraw","getNativeId","_defineProperty","Sk","_root","Group","root"],"sources":["Container.tsx"],"sourcesContent":["import { JsiSkDOM } from \"../dom/nodes\";\nimport type { Node, SkDOM } from \"../dom/types\";\n\nexport class Container {\n private _root: Node<unknown>;\n public Sk: SkDOM;\n public unmounted = false;\n constructor(\n public redraw: () => void = () => {},\n public getNativeId: () => number = () => 0\n ) {\n this.Sk = new JsiSkDOM();\n this._root = this.Sk.Group();\n }\n\n get root() {\n return this._root;\n }\n}\n"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAGvC,OAAO,MAAMC,SAAS,CAAC;EAIrBC,WAAWA,CACFC,MAAkB,GAAGA,CAAA,KAAM,CAAC,CAAC,EAC7BC,WAAyB,GAAGA,CAAA,KAAM,CAAC,EAC1C;IAAA,KAFOD,MAAkB,GAAlBA,MAAkB;IAAA,KAClBC,WAAyB,GAAzBA,WAAyB;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA,oBAHf,KAAK;IAKtB,IAAI,CAACC,EAAE,GAAG,IAAIN,QAAQ,CAAC,CAAC;IACxB,IAAI,CAACO,KAAK,GAAG,IAAI,CAACD,EAAE,CAACE,KAAK,CAAC,CAAC;EAC9B;EAEA,IAAIC,IAAIA,CAAA,EAAG;IACT,OAAO,IAAI,CAACF,KAAK;EACnB;AACF","ignoreList":[]}
@@ -1,129 +0,0 @@
1
- import { NodeType } from "../dom/types";
2
- import type { DeclarationNode, FractalNoiseProps, RenderNode, CircleProps, DrawingNodeProps, ImageProps, PaintProps, PathProps, LineProps, OvalProps, DiffRectProps, PointsProps, RectProps, RoundedRectProps, TextProps, VerticesProps, BlurMaskFilterProps, BlendImageFilterProps, BlurImageFilterProps, DisplacementMapImageFilterProps, DropShadowImageFilterProps, OffsetImageFilterProps, RuntimeShaderImageFilterProps, MatrixColorFilterProps, ShaderProps, ImageShaderProps, LinearGradientProps, GroupProps, PatchProps, BlendColorFilterProps, DashPathEffectProps, DiscretePathEffectProps, CornerPathEffectProps, Line2DPathEffectProps, Path1DPathEffectProps, Path2DPathEffectProps, TextPathProps, TextBlobProps, GlyphsProps, TwoPointConicalGradientProps, TurbulenceProps, SweepGradientProps, RadialGradientProps, ColorProps, PictureProps, ImageSVGProps, LerpColorFilterProps, BoxProps, BoxShadowProps, ParagraphProps, AtlasProps } from "../dom/types";
3
- import type { ChildrenProps } from "../dom/types/Common";
4
- import type { BlendProps, MorphologyImageFilterProps } from "../dom/types/ImageFilters";
5
- import type { Container } from "./Container";
6
- import type { SkiaProps } from "./processors";
7
- declare global {
8
- var SkiaDomApi: {
9
- RectNode: (props: RectProps) => RenderNode<RectProps>;
10
- RRectNode: (props: RoundedRectProps) => RenderNode<RoundedRectProps>;
11
- GroupNode: (props: GroupProps) => RenderNode<GroupProps>;
12
- PaintNode: (props: PaintProps) => DeclarationNode<PaintProps>;
13
- FillNode: (props: PaintProps) => RenderNode<PaintProps>;
14
- CircleNode: (props: CircleProps) => RenderNode<CircleProps>;
15
- PathNode: (props: PathProps) => RenderNode<PathProps>;
16
- LineNode: (props: LineProps) => RenderNode<LineProps>;
17
- ImageNode: (props: ImageProps) => RenderNode<ImageProps>;
18
- OvalNode: (props: OvalProps) => RenderNode<OvalProps>;
19
- PatchNode: (props: PatchProps) => RenderNode<PatchProps>;
20
- PointsNode: (props: PointsProps) => RenderNode<PointsProps>;
21
- DiffRectNode: (props: DiffRectProps) => RenderNode<DiffRectProps>;
22
- AtlasNode: (props: AtlasProps) => RenderNode<AtlasProps>;
23
- BlurMaskFilterNode: (props: BlurMaskFilterProps) => DeclarationNode<BlurMaskFilterProps>;
24
- DashPathEffectNode: (props: DashPathEffectProps) => DeclarationNode<DashPathEffectProps>;
25
- DiscretePathEffectNode: (props: DiscretePathEffectProps) => DeclarationNode<DiscretePathEffectProps>;
26
- CornerPathEffectNode: (props: CornerPathEffectProps) => DeclarationNode<CornerPathEffectProps>;
27
- Path1DPathEffectNode: (props: Path1DPathEffectProps) => DeclarationNode<Path1DPathEffectProps>;
28
- Path2DPathEffectNode: (props: Path2DPathEffectProps) => DeclarationNode<Path2DPathEffectProps>;
29
- Line2DPathEffectNode: (props: Line2DPathEffectProps) => DeclarationNode<Line2DPathEffectProps>;
30
- SumPathEffectNode: () => DeclarationNode<null>;
31
- BlendImageFilterNode: (props: BlendImageFilterProps) => DeclarationNode<BlendImageFilterProps>;
32
- DropShadowImageFilterNode: (props: DropShadowImageFilterProps) => DeclarationNode<DropShadowImageFilterProps>;
33
- DisplacementMapImageFilterNode: (props: DisplacementMapImageFilterProps) => DeclarationNode<DisplacementMapImageFilterProps>;
34
- BlurImageFilterNode: (props: BlurImageFilterProps) => DeclarationNode<BlurImageFilterProps>;
35
- OffsetImageFilterNode: (props: OffsetImageFilterProps) => DeclarationNode<OffsetImageFilterProps>;
36
- MorphologyImageFilterNode: (props: MorphologyImageFilterProps) => DeclarationNode<MorphologyImageFilterProps>;
37
- RuntimeShaderImageFilterNode: (props: RuntimeShaderImageFilterProps) => DeclarationNode<RuntimeShaderImageFilterProps>;
38
- MatrixColorFilterNode: (props: MatrixColorFilterProps) => DeclarationNode<MatrixColorFilterProps>;
39
- BlendColorFilterNode: (props: BlendColorFilterProps) => DeclarationNode<BlendColorFilterProps>;
40
- LinearToSRGBGammaColorFilterNode: () => DeclarationNode<null>;
41
- SRGBToLinearGammaColorFilterNode: () => DeclarationNode<null>;
42
- LumaColorFilterNode: () => DeclarationNode<null>;
43
- LerpColorFilterNode: (props: LerpColorFilterProps) => DeclarationNode<LerpColorFilterProps>;
44
- ShaderNode: (props: ShaderProps) => DeclarationNode<ShaderProps>;
45
- ImageShaderNode: (props: ImageShaderProps) => DeclarationNode<ImageShaderProps>;
46
- ColorShaderNode: (props: ColorProps) => DeclarationNode<ColorProps>;
47
- TurbulenceNode: (props: TurbulenceProps) => DeclarationNode<TurbulenceProps>;
48
- FractalNoiseNode: (props: FractalNoiseProps) => DeclarationNode<FractalNoiseProps>;
49
- LinearGradientNode: (props: LinearGradientProps) => DeclarationNode<LinearGradientProps>;
50
- RadialGradientNode: (props: RadialGradientProps) => DeclarationNode<RadialGradientProps>;
51
- SweepGradientNode: (props: SweepGradientProps) => DeclarationNode<SweepGradientProps>;
52
- TwoPointConicalGradientNode: (props: TwoPointConicalGradientProps) => DeclarationNode<TwoPointConicalGradientProps>;
53
- PictureNode: (props: PictureProps) => RenderNode<PictureProps>;
54
- ImageSVGNode: (props: ImageSVGProps) => RenderNode<ImageSVGProps>;
55
- VerticesNode: (props: VerticesProps) => RenderNode<VerticesProps>;
56
- TextNode: (prop: TextProps) => RenderNode<TextProps>;
57
- TextPathNode: (prop: TextPathProps) => RenderNode<TextPathProps>;
58
- TextBlobNode: (prop: TextBlobProps) => RenderNode<TextBlobProps>;
59
- GlyphsNode: (prop: GlyphsProps) => RenderNode<GlyphsProps>;
60
- BlendNode: (prop: BlendProps) => DeclarationNode<BlendProps>;
61
- BackdropFilterNode: (prop: ChildrenProps) => RenderNode<ChildrenProps>;
62
- BoxNode: (prop: BoxProps) => RenderNode<BoxProps>;
63
- BoxShadowNode: (prop: BoxShadowProps) => DeclarationNode<BoxShadowProps>;
64
- LayerNode: (prop: ChildrenProps) => RenderNode<ChildrenProps>;
65
- ParagraphNode: (props: ParagraphProps) => RenderNode<ParagraphProps>;
66
- };
67
- namespace JSX {
68
- interface IntrinsicElements {
69
- skGroup: SkiaProps<GroupProps>;
70
- skLayer: SkiaProps<ChildrenProps>;
71
- skPaint: SkiaProps<PaintProps>;
72
- skFill: SkiaProps<DrawingNodeProps>;
73
- skImage: SkiaProps<ImageProps>;
74
- skCircle: SkiaProps<CircleProps>;
75
- skPath: SkiaProps<PathProps>;
76
- skLine: SkiaProps<LineProps>;
77
- skOval: SkiaProps<OvalProps>;
78
- skPatch: SkiaProps<PatchProps>;
79
- skPoints: SkiaProps<PointsProps>;
80
- skRect: SkiaProps<RectProps>;
81
- skRRect: SkiaProps<RoundedRectProps>;
82
- skAtlas: SkiaProps<AtlasProps>;
83
- skVertices: SkiaProps<VerticesProps>;
84
- skText: SkiaProps<TextProps>;
85
- skTextPath: SkiaProps<TextPathProps>;
86
- skTextBlob: SkiaProps<TextBlobProps>;
87
- skGlyphs: SkiaProps<GlyphsProps>;
88
- skDiffRect: SkiaProps<DiffRectProps>;
89
- skPicture: SkiaProps<PictureProps>;
90
- skImageSVG: SkiaProps<ImageSVGProps>;
91
- skBlurMaskFilter: SkiaProps<BlurMaskFilterProps>;
92
- skBlendImageFilter: SkiaProps<BlendImageFilterProps>;
93
- skBlurImageFilter: SkiaProps<BlurImageFilterProps>;
94
- skOffsetImageFilter: SkiaProps<OffsetImageFilterProps>;
95
- skDropShadowImageFilter: SkiaProps<DropShadowImageFilterProps>;
96
- skDisplacementMapImageFilter: SkiaProps<DisplacementMapImageFilterProps>;
97
- skRuntimeShaderImageFilter: SkiaProps<RuntimeShaderImageFilterProps>;
98
- skMorphologyImageFilter: SkiaProps<MorphologyImageFilterProps>;
99
- skMatrixColorFilter: SkiaProps<MatrixColorFilterProps>;
100
- skBlendColorFilter: SkiaProps<BlendColorFilterProps>;
101
- skLinearToSRGBGammaColorFilter: SkiaProps<ChildrenProps>;
102
- skSRGBToLinearGammaColorFilter: SkiaProps<ChildrenProps>;
103
- skLumaColorFilter: SkiaProps<ChildrenProps>;
104
- skLerpColorFilter: SkiaProps<LerpColorFilterProps>;
105
- skShader: SkiaProps<ShaderProps>;
106
- skImageShader: SkiaProps<ImageShaderProps>;
107
- skColorShader: SkiaProps<ColorProps>;
108
- skTurbulence: SkiaProps<TurbulenceProps>;
109
- skFractalNoise: SkiaProps<FractalNoiseProps>;
110
- skLinearGradient: SkiaProps<LinearGradientProps>;
111
- skRadialGradient: SkiaProps<RadialGradientProps>;
112
- skSweepGradient: SkiaProps<SweepGradientProps>;
113
- skTwoPointConicalGradient: SkiaProps<TwoPointConicalGradientProps>;
114
- skDiscretePathEffect: SkiaProps<DiscretePathEffectProps>;
115
- skDashPathEffect: SkiaProps<DashPathEffectProps>;
116
- skPath1DPathEffect: SkiaProps<Path1DPathEffectProps>;
117
- skPath2DPathEffect: SkiaProps<Path2DPathEffectProps>;
118
- skCornerPathEffect: SkiaProps<CornerPathEffectProps>;
119
- skSumPathEffect: ChildrenProps;
120
- skLine2DPathEffect: SkiaProps<Line2DPathEffectProps>;
121
- skBlend: SkiaProps<BlendProps>;
122
- skBackdropFilter: SkiaProps<ChildrenProps>;
123
- skBox: SkiaProps<BoxProps>;
124
- skBoxShadow: SkiaProps<BoxShadowProps>;
125
- skParagraph: SkiaProps<ParagraphProps>;
126
- }
127
- }
128
- }
129
- export declare const createNode: (container: Container, type: NodeType, props: any) => RenderNode<ChildrenProps> | DeclarationNode<BlurMaskFilterProps> | DeclarationNode<null> | DeclarationNode<ImageShaderProps> | DeclarationNode<ColorProps> | DeclarationNode<TurbulenceProps> | DeclarationNode<LinearGradientProps> | DeclarationNode<RadialGradientProps> | DeclarationNode<SweepGradientProps> | DeclarationNode<BoxShadowProps>;