@shopify/react-native-skia 1.11.0 → 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) 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/api/recorder/Convertor.h +2 -1
  6. package/cpp/api/recorder/DataTypes.h +70 -72
  7. package/cpp/api/recorder/Drawings.h +25 -24
  8. package/cpp/api/recorder/RNRecorder.h +12 -10
  9. package/cpp/api/recorder/Shaders.h +5 -5
  10. package/cpp/jsi/ViewProperty.h +5 -16
  11. package/cpp/rnskia/RNSkManager.cpp +1 -7
  12. package/ios/RNSkia-iOS/SkiaCVPixelBufferUtils.mm +8 -4
  13. package/lib/commonjs/dom/nodes/index.d.ts +0 -1
  14. package/lib/commonjs/dom/nodes/index.js +0 -11
  15. package/lib/commonjs/dom/nodes/index.js.map +1 -1
  16. package/lib/commonjs/external/reanimated/renderHelpers.d.ts +0 -6
  17. package/lib/commonjs/external/reanimated/renderHelpers.js +0 -73
  18. package/lib/commonjs/external/reanimated/renderHelpers.js.map +1 -1
  19. package/lib/commonjs/index.d.ts +0 -1
  20. package/lib/commonjs/index.js +0 -12
  21. package/lib/commonjs/index.js.map +1 -1
  22. package/lib/commonjs/renderer/Canvas.d.ts +10 -1
  23. package/lib/commonjs/renderer/Canvas.js +3 -1
  24. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  25. package/lib/commonjs/sksg/Container.d.ts +2 -0
  26. package/lib/commonjs/sksg/Container.js +10 -0
  27. package/lib/commonjs/sksg/Container.js.map +1 -1
  28. package/lib/commonjs/sksg/Elements.d.ts +65 -0
  29. package/lib/commonjs/sksg/Elements.js +6 -0
  30. package/lib/commonjs/sksg/Elements.js.map +1 -0
  31. package/lib/commonjs/sksg/Reconciler.d.ts +1 -0
  32. package/lib/commonjs/sksg/Reconciler.js +2 -0
  33. package/lib/commonjs/sksg/Reconciler.js.map +1 -1
  34. package/lib/commonjs/views/index.d.ts +0 -1
  35. package/lib/commonjs/views/index.js +0 -11
  36. package/lib/commonjs/views/index.js.map +1 -1
  37. package/lib/module/dom/nodes/index.d.ts +0 -1
  38. package/lib/module/dom/nodes/index.js +0 -1
  39. package/lib/module/dom/nodes/index.js.map +1 -1
  40. package/lib/module/external/reanimated/renderHelpers.d.ts +0 -6
  41. package/lib/module/external/reanimated/renderHelpers.js +0 -68
  42. package/lib/module/external/reanimated/renderHelpers.js.map +1 -1
  43. package/lib/module/index.d.ts +0 -1
  44. package/lib/module/index.js +0 -1
  45. package/lib/module/index.js.map +1 -1
  46. package/lib/module/renderer/Canvas.d.ts +10 -1
  47. package/lib/module/renderer/Canvas.js +1 -0
  48. package/lib/module/renderer/Canvas.js.map +1 -1
  49. package/lib/module/sksg/Container.d.ts +2 -0
  50. package/lib/module/sksg/Container.js +10 -0
  51. package/lib/module/sksg/Container.js.map +1 -1
  52. package/lib/module/sksg/Elements.d.ts +65 -0
  53. package/lib/module/sksg/Elements.js +2 -0
  54. package/lib/module/sksg/Elements.js.map +1 -0
  55. package/lib/module/sksg/Reconciler.d.ts +1 -0
  56. package/lib/module/sksg/Reconciler.js +2 -0
  57. package/lib/module/sksg/Reconciler.js.map +1 -1
  58. package/lib/module/views/index.d.ts +0 -1
  59. package/lib/module/views/index.js +0 -1
  60. package/lib/module/views/index.js.map +1 -1
  61. package/lib/typescript/lib/commonjs/external/reanimated/renderHelpers.d.ts +0 -3
  62. package/lib/typescript/lib/commonjs/renderer/Canvas.d.ts +1 -0
  63. package/lib/typescript/lib/commonjs/sksg/Container.d.ts +2 -0
  64. package/lib/typescript/lib/commonjs/sksg/Elements.d.ts +1 -0
  65. package/lib/typescript/lib/commonjs/sksg/Reconciler.d.ts +6 -0
  66. package/lib/typescript/lib/module/dom/nodes/index.d.ts +0 -1
  67. package/lib/typescript/lib/module/external/reanimated/renderHelpers.d.ts +0 -3
  68. package/lib/typescript/lib/module/index.d.ts +0 -1
  69. package/lib/typescript/lib/module/mock/index.d.ts +0 -1
  70. package/lib/typescript/lib/module/renderer/Canvas.d.ts +1 -0
  71. package/lib/typescript/lib/module/sksg/Container.d.ts +2 -0
  72. package/lib/typescript/lib/module/sksg/Elements.d.ts +1 -0
  73. package/lib/typescript/lib/module/sksg/Reconciler.d.ts +6 -0
  74. package/lib/typescript/lib/module/views/index.d.ts +0 -1
  75. package/lib/typescript/src/dom/nodes/index.d.ts +0 -1
  76. package/lib/typescript/src/external/reanimated/renderHelpers.d.ts +0 -6
  77. package/lib/typescript/src/index.d.ts +0 -1
  78. package/lib/typescript/src/renderer/Canvas.d.ts +10 -1
  79. package/lib/typescript/src/sksg/Container.d.ts +2 -0
  80. package/lib/typescript/src/sksg/Elements.d.ts +65 -0
  81. package/lib/typescript/src/sksg/Reconciler.d.ts +1 -0
  82. package/lib/typescript/src/views/index.d.ts +0 -1
  83. package/package.json +1 -1
  84. package/src/dom/nodes/index.ts +0 -1
  85. package/src/external/reanimated/renderHelpers.ts +1 -78
  86. package/src/index.ts +0 -1
  87. package/src/renderer/Canvas.tsx +11 -1
  88. package/src/sksg/Container.ts +11 -0
  89. package/src/sksg/Elements.tsx +136 -0
  90. package/src/sksg/Reconciler.ts +2 -0
  91. package/src/views/index.ts +0 -1
  92. package/android/cpp/jni/include/JniSkiaDomView.h +0 -82
  93. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomView.java +0 -41
  94. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomViewManager.java +0 -32
  95. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDomViewManagerDelegate.java +0 -34
  96. package/android/src/paper/java/com/facebook/react/viewmanagers/SkiaDomViewManagerInterface.java +0 -18
  97. package/cpp/rnskia/RNSkDomView.cpp +0 -121
  98. package/cpp/rnskia/RNSkDomView.h +0 -97
  99. package/cpp/rnskia/dom/JsiDomApi.h +0 -165
  100. package/cpp/rnskia/dom/base/BaseNodeProp.h +0 -72
  101. package/cpp/rnskia/dom/base/ConcatablePaint.cpp +0 -117
  102. package/cpp/rnskia/dom/base/ConcatablePaint.h +0 -49
  103. package/cpp/rnskia/dom/base/Declaration.h +0 -86
  104. package/cpp/rnskia/dom/base/DeclarationContext.h +0 -79
  105. package/cpp/rnskia/dom/base/DerivedNodeProp.h +0 -203
  106. package/cpp/rnskia/dom/base/DrawingContext.cpp +0 -55
  107. package/cpp/rnskia/dom/base/DrawingContext.h +0 -104
  108. package/cpp/rnskia/dom/base/JsiDomDeclarationNode.h +0 -119
  109. package/cpp/rnskia/dom/base/JsiDomDrawingNode.h +0 -71
  110. package/cpp/rnskia/dom/base/JsiDomNode.h +0 -572
  111. package/cpp/rnskia/dom/base/JsiDomRenderNode.h +0 -262
  112. package/cpp/rnskia/dom/base/NodeProp.h +0 -139
  113. package/cpp/rnskia/dom/base/NodePropsContainer.h +0 -158
  114. package/cpp/rnskia/dom/nodes/JsiAtlasNode.h +0 -64
  115. package/cpp/rnskia/dom/nodes/JsiBackdropFilterNode.h +0 -49
  116. package/cpp/rnskia/dom/nodes/JsiBlendNode.h +0 -94
  117. package/cpp/rnskia/dom/nodes/JsiBlurMaskNode.h +0 -75
  118. package/cpp/rnskia/dom/nodes/JsiBoxNode.h +0 -94
  119. package/cpp/rnskia/dom/nodes/JsiBoxShadowNode.h +0 -33
  120. package/cpp/rnskia/dom/nodes/JsiCircleNode.h +0 -35
  121. package/cpp/rnskia/dom/nodes/JsiColorFilterNodes.h +0 -164
  122. package/cpp/rnskia/dom/nodes/JsiDiffRectNode.h +0 -37
  123. package/cpp/rnskia/dom/nodes/JsiFillNode.h +0 -22
  124. package/cpp/rnskia/dom/nodes/JsiGlyphsNode.h +0 -53
  125. package/cpp/rnskia/dom/nodes/JsiGroupNode.h +0 -25
  126. package/cpp/rnskia/dom/nodes/JsiImageFilterNodes.h +0 -361
  127. package/cpp/rnskia/dom/nodes/JsiImageNode.h +0 -43
  128. package/cpp/rnskia/dom/nodes/JsiImageSvgNode.h +0 -63
  129. package/cpp/rnskia/dom/nodes/JsiLayerNode.h +0 -74
  130. package/cpp/rnskia/dom/nodes/JsiLineNode.h +0 -38
  131. package/cpp/rnskia/dom/nodes/JsiOvalNode.h +0 -32
  132. package/cpp/rnskia/dom/nodes/JsiPaintNode.h +0 -119
  133. package/cpp/rnskia/dom/nodes/JsiParagraphNode.h +0 -62
  134. package/cpp/rnskia/dom/nodes/JsiPatchNode.h +0 -50
  135. package/cpp/rnskia/dom/nodes/JsiPathEffectNodes.h +0 -268
  136. package/cpp/rnskia/dom/nodes/JsiPathNode.h +0 -181
  137. package/cpp/rnskia/dom/nodes/JsiPictureNode.h +0 -31
  138. package/cpp/rnskia/dom/nodes/JsiPointsNode.h +0 -48
  139. package/cpp/rnskia/dom/nodes/JsiRRectNode.h +0 -33
  140. package/cpp/rnskia/dom/nodes/JsiRectNode.h +0 -33
  141. package/cpp/rnskia/dom/nodes/JsiShaderNodes.h +0 -434
  142. package/cpp/rnskia/dom/nodes/JsiTextBlobNode.h +0 -44
  143. package/cpp/rnskia/dom/nodes/JsiTextNode.h +0 -51
  144. package/cpp/rnskia/dom/nodes/JsiTextPathNode.h +0 -33
  145. package/cpp/rnskia/dom/nodes/JsiVerticesNode.h +0 -41
  146. package/cpp/rnskia/dom/props/BezierProps.h +0 -65
  147. package/cpp/rnskia/dom/props/BlendModeProp.h +0 -103
  148. package/cpp/rnskia/dom/props/BoxShadowProps.h +0 -62
  149. package/cpp/rnskia/dom/props/CircleProp.h +0 -49
  150. package/cpp/rnskia/dom/props/ClipProp.h +0 -57
  151. package/cpp/rnskia/dom/props/ColorProp.h +0 -96
  152. package/cpp/rnskia/dom/props/FontProp.h +0 -42
  153. package/cpp/rnskia/dom/props/GlyphsProp.h +0 -55
  154. package/cpp/rnskia/dom/props/LayerProp.h +0 -52
  155. package/cpp/rnskia/dom/props/MatrixProp.h +0 -54
  156. package/cpp/rnskia/dom/props/NumbersProp.h +0 -67
  157. package/cpp/rnskia/dom/props/PaintProps.h +0 -133
  158. package/cpp/rnskia/dom/props/ParagraphProp.h +0 -45
  159. package/cpp/rnskia/dom/props/PathProp.h +0 -59
  160. package/cpp/rnskia/dom/props/PictureProp.h +0 -40
  161. package/cpp/rnskia/dom/props/PointProp.h +0 -65
  162. package/cpp/rnskia/dom/props/PointsProp.h +0 -81
  163. package/cpp/rnskia/dom/props/RRectProp.h +0 -222
  164. package/cpp/rnskia/dom/props/RSXformProp.h +0 -52
  165. package/cpp/rnskia/dom/props/RadiusProp.h +0 -43
  166. package/cpp/rnskia/dom/props/RectProp.h +0 -164
  167. package/cpp/rnskia/dom/props/SamplingProp.h +0 -54
  168. package/cpp/rnskia/dom/props/SkImageProps.h +0 -196
  169. package/cpp/rnskia/dom/props/StrokeProps.h +0 -79
  170. package/cpp/rnskia/dom/props/SvgProp.h +0 -45
  171. package/cpp/rnskia/dom/props/TextBlobProp.h +0 -133
  172. package/cpp/rnskia/dom/props/TileModeProp.h +0 -52
  173. package/cpp/rnskia/dom/props/TransformProp.h +0 -147
  174. package/cpp/rnskia/dom/props/TransformsProps.h +0 -66
  175. package/cpp/rnskia/dom/props/UniformsProp.h +0 -159
  176. package/cpp/rnskia/dom/props/VertexModeProp.h +0 -49
  177. package/cpp/rnskia/dom/props/VerticesProps.h +0 -63
  178. package/ios/RNSkia-iOS/SkiaDomView.h +0 -7
  179. package/ios/RNSkia-iOS/SkiaDomView.mm +0 -63
  180. package/ios/RNSkia-iOS/SkiaDomViewManager.h +0 -8
  181. package/ios/RNSkia-iOS/SkiaDomViewManager.mm +0 -51
  182. package/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +0 -64
  183. package/lib/commonjs/dom/nodes/JsiSkDOM.js +0 -196
  184. package/lib/commonjs/dom/nodes/JsiSkDOM.js.map +0 -1
  185. package/lib/commonjs/renderer/CanvasOld.d.ts +0 -11
  186. package/lib/commonjs/renderer/CanvasOld.js +0 -96
  187. package/lib/commonjs/renderer/CanvasOld.js.map +0 -1
  188. package/lib/commonjs/renderer/Container.d.ts +0 -10
  189. package/lib/commonjs/renderer/Container.js +0 -26
  190. package/lib/commonjs/renderer/Container.js.map +0 -1
  191. package/lib/commonjs/renderer/HostComponents.d.ts +0 -129
  192. package/lib/commonjs/renderer/HostComponents.js +0 -141
  193. package/lib/commonjs/renderer/HostComponents.js.map +0 -1
  194. package/lib/commonjs/renderer/HostConfig.d.ts +0 -18
  195. package/lib/commonjs/renderer/HostConfig.js +0 -157
  196. package/lib/commonjs/renderer/HostConfig.js.map +0 -1
  197. package/lib/commonjs/renderer/Reconciler.d.ts +0 -9
  198. package/lib/commonjs/renderer/Reconciler.js +0 -44
  199. package/lib/commonjs/renderer/Reconciler.js.map +0 -1
  200. package/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +0 -6
  201. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js +0 -11
  202. package/lib/commonjs/specs/SkiaDomViewNativeComponent.js.map +0 -1
  203. package/lib/commonjs/views/SkiaDomView.d.ts +0 -33
  204. package/lib/commonjs/views/SkiaDomView.js +0 -119
  205. package/lib/commonjs/views/SkiaDomView.js.map +0 -1
  206. package/lib/commonjs/views/SkiaDomView.web.d.ts +0 -0
  207. package/lib/commonjs/views/SkiaDomView.web.js +0 -2
  208. package/lib/commonjs/views/SkiaDomView.web.js.map +0 -1
  209. package/lib/module/dom/nodes/JsiSkDOM.d.ts +0 -64
  210. package/lib/module/dom/nodes/JsiSkDOM.js +0 -189
  211. package/lib/module/dom/nodes/JsiSkDOM.js.map +0 -1
  212. package/lib/module/renderer/CanvasOld.d.ts +0 -11
  213. package/lib/module/renderer/CanvasOld.js +0 -87
  214. package/lib/module/renderer/CanvasOld.js.map +0 -1
  215. package/lib/module/renderer/Container.d.ts +0 -10
  216. package/lib/module/renderer/Container.js +0 -19
  217. package/lib/module/renderer/Container.js.map +0 -1
  218. package/lib/module/renderer/HostComponents.d.ts +0 -129
  219. package/lib/module/renderer/HostComponents.js +0 -134
  220. package/lib/module/renderer/HostComponents.js.map +0 -1
  221. package/lib/module/renderer/HostConfig.d.ts +0 -18
  222. package/lib/module/renderer/HostConfig.js +0 -150
  223. package/lib/module/renderer/HostConfig.js.map +0 -1
  224. package/lib/module/renderer/Reconciler.d.ts +0 -9
  225. package/lib/module/renderer/Reconciler.js +0 -36
  226. package/lib/module/renderer/Reconciler.js.map +0 -1
  227. package/lib/module/specs/SkiaDomViewNativeComponent.d.ts +0 -6
  228. package/lib/module/specs/SkiaDomViewNativeComponent.js +0 -4
  229. package/lib/module/specs/SkiaDomViewNativeComponent.js.map +0 -1
  230. package/lib/module/views/SkiaDomView.d.ts +0 -33
  231. package/lib/module/views/SkiaDomView.js +0 -111
  232. package/lib/module/views/SkiaDomView.js.map +0 -1
  233. package/lib/module/views/SkiaDomView.web.d.ts +0 -0
  234. package/lib/module/views/SkiaDomView.web.js +0 -2
  235. package/lib/module/views/SkiaDomView.web.js.map +0 -1
  236. package/lib/typescript/lib/commonjs/dom/nodes/JsiSkDOM.d.ts +0 -60
  237. package/lib/typescript/lib/commonjs/renderer/CanvasOld.d.ts +0 -3
  238. package/lib/typescript/lib/commonjs/renderer/Container.d.ts +0 -9
  239. package/lib/typescript/lib/commonjs/renderer/HostComponents.d.ts +0 -2
  240. package/lib/typescript/lib/commonjs/renderer/HostConfig.d.ts +0 -40
  241. package/lib/typescript/lib/commonjs/renderer/Reconciler.d.ts +0 -10
  242. package/lib/typescript/lib/commonjs/specs/SkiaDomViewNativeComponent.d.ts +0 -3
  243. package/lib/typescript/lib/commonjs/views/SkiaDomView.d.ts +0 -30
  244. package/lib/typescript/lib/commonjs/views/SkiaDomView.web.d.ts +0 -0
  245. package/lib/typescript/lib/module/dom/nodes/JsiSkDOM.d.ts +0 -59
  246. package/lib/typescript/lib/module/renderer/CanvasOld.d.ts +0 -3
  247. package/lib/typescript/lib/module/renderer/Container.d.ts +0 -9
  248. package/lib/typescript/lib/module/renderer/HostComponents.d.ts +0 -1
  249. package/lib/typescript/lib/module/renderer/HostConfig.d.ts +0 -39
  250. package/lib/typescript/lib/module/renderer/Reconciler.d.ts +0 -9
  251. package/lib/typescript/lib/module/specs/SkiaDomViewNativeComponent.d.ts +0 -2
  252. package/lib/typescript/lib/module/views/SkiaDomView.d.ts +0 -27
  253. package/lib/typescript/lib/module/views/SkiaDomView.web.d.ts +0 -0
  254. package/lib/typescript/src/dom/nodes/JsiSkDOM.d.ts +0 -64
  255. package/lib/typescript/src/renderer/CanvasOld.d.ts +0 -11
  256. package/lib/typescript/src/renderer/Container.d.ts +0 -10
  257. package/lib/typescript/src/renderer/HostComponents.d.ts +0 -129
  258. package/lib/typescript/src/renderer/HostConfig.d.ts +0 -18
  259. package/lib/typescript/src/renderer/Reconciler.d.ts +0 -9
  260. package/lib/typescript/src/specs/SkiaDomViewNativeComponent.d.ts +0 -6
  261. package/lib/typescript/src/views/SkiaDomView.d.ts +0 -33
  262. package/lib/typescript/src/views/SkiaDomView.web.d.ts +0 -0
  263. package/src/dom/nodes/JsiSkDOM.ts +0 -298
  264. package/src/renderer/CanvasOld.tsx +0 -126
  265. package/src/renderer/Container.tsx +0 -19
  266. package/src/renderer/HostComponents.ts +0 -399
  267. package/src/renderer/HostConfig.ts +0 -258
  268. package/src/renderer/Reconciler.tsx +0 -54
  269. package/src/specs/SkiaDomViewNativeComponent.ts +0 -9
  270. package/src/views/SkiaDomView.tsx +0 -124
  271. package/src/views/SkiaDomView.web.tsx +0 -0
  272. /package/cpp/api/recorder/{Image.h → ImageFit.h} +0 -0
@@ -86,10 +86,6 @@ add_library(
86
86
  "${PROJECT_SOURCE_DIR}/../cpp/jsi/JsiPromises.cpp"
87
87
 
88
88
  "${PROJECT_SOURCE_DIR}/../cpp/rnskia/RNSkManager.cpp"
89
- "${PROJECT_SOURCE_DIR}/../cpp/rnskia/RNSkDomView.cpp"
90
-
91
- "${PROJECT_SOURCE_DIR}/../cpp/rnskia/dom/base/DrawingContext.cpp"
92
- "${PROJECT_SOURCE_DIR}/../cpp/rnskia/dom/base/ConcatablePaint.cpp"
93
89
 
94
90
  "${PROJECT_SOURCE_DIR}/../cpp/api/third_party/CSSColorParser.cpp"
95
91
  "${PROJECT_SOURCE_DIR}/../cpp/api/third_party/base64.cpp"
@@ -122,10 +118,6 @@ target_include_directories(
122
118
  ../cpp/jsi
123
119
  ../cpp/rnskia
124
120
  ../cpp/rnskia/values
125
- ../cpp/rnskia/dom
126
- ../cpp/rnskia/dom/base
127
- ../cpp/rnskia/dom/nodes
128
- ../cpp/rnskia/dom/props
129
121
  ../cpp/utils
130
122
 
131
123
  ${libfbjni_include_DIRS}
@@ -1,5 +1,4 @@
1
1
  #include "JniPlatformContext.h"
2
- #include "JniSkiaDomView.h"
3
2
  #include "JniSkiaManager.h"
4
3
  #include "JniSkiaPictureView.h"
5
4
  #include <fbjni/fbjni.h>
@@ -9,7 +8,6 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
9
8
  return facebook::jni::initialize(vm, [] {
10
9
  RNSkia::JniSkiaManager::registerNatives();
11
10
  RNSkia::JniSkiaPictureView::registerNatives();
12
- RNSkia::JniSkiaDomView::registerNatives();
13
11
  RNSkia::JniPlatformContext::registerNatives();
14
12
  });
15
13
  }
@@ -42,7 +42,7 @@ public class RNSkiaPackage extends TurboReactPackage {
42
42
 
43
43
  @Override
44
44
  public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
45
- return Arrays.<ViewManager>asList(new SkiaPictureViewManager(), new SkiaDomViewManager());
45
+ return Arrays.<ViewManager>asList(new SkiaPictureViewManager());
46
46
  }
47
47
 
48
48
  @Override
@@ -12,9 +12,10 @@ package com.facebook.react.viewmanagers;
12
12
  import android.view.View;
13
13
  import androidx.annotation.Nullable;
14
14
  import com.facebook.react.uimanager.BaseViewManagerDelegate;
15
- import com.facebook.react.uimanager.BaseViewManagerInterface;
15
+ import com.facebook.react.uimanager.BaseViewManager;
16
+ import com.facebook.react.uimanager.LayoutShadowNode;
16
17
 
17
- public class SkiaPictureViewManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & SkiaPictureViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
18
+ public class SkiaPictureViewManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & SkiaPictureViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
18
19
  public SkiaPictureViewManagerDelegate(U viewManager) {
19
20
  super(viewManager);
20
21
  }
@@ -23,6 +24,7 @@ public class SkiaPictureViewManagerDelegate<T extends View, U extends BaseViewMa
23
24
  switch (propName) {
24
25
  case "opaque":
25
26
  mViewManager.setOpaque(view, value != null && (boolean) value);
27
+ break;
26
28
  case "debug":
27
29
  mViewManager.setDebug(view, value != null && (boolean) value);
28
30
  break;
@@ -781,7 +781,8 @@ SkRect getPropertyValue(jsi::Runtime &runtime, const jsi::Value &value) {
781
781
  }
782
782
 
783
783
  template <>
784
- std::variant<SkRect, SkRRect> getPropertyValue(jsi::Runtime &runtime, const jsi::Value &value) {
784
+ std::variant<SkRect, SkRRect> getPropertyValue(jsi::Runtime &runtime,
785
+ const jsi::Value &value) {
785
786
  if (value.isObject()) {
786
787
  auto rect = processRect(runtime, value);
787
788
  if (rect) {
@@ -148,87 +148,85 @@ std::shared_ptr<SkPath> processPath(jsi::Runtime &runtime,
148
148
  }
149
149
 
150
150
  // Function to process uniforms and return SkData for PushShaderCmd
151
- inline sk_sp<SkData> processUniforms(
152
- const sk_sp<SkRuntimeEffect>& effect,
153
- const Uniforms& uniforms) {
154
-
155
- size_t uniformSize = effect->uniformSize();
156
- auto uniformsData = SkData::MakeUninitialized(uniformSize);
157
- auto uniformDataPtr = static_cast<float*>(uniformsData->writable_data());
158
-
159
- const auto& sourceUniforms = effect->uniforms();
160
- for (const auto& uniform : sourceUniforms) {
161
- auto it = uniforms.find(std::string(uniform.name));
162
- if (it == uniforms.end()) {
163
- throw std::runtime_error("Missing uniform value for: " +
164
- std::string(uniform.name));
165
- }
151
+ inline sk_sp<SkData> processUniforms(const sk_sp<SkRuntimeEffect> &effect,
152
+ const Uniforms &uniforms) {
153
+
154
+ size_t uniformSize = effect->uniformSize();
155
+ auto uniformsData = SkData::MakeUninitialized(uniformSize);
156
+ auto uniformDataPtr = static_cast<float *>(uniformsData->writable_data());
157
+
158
+ const auto &sourceUniforms = effect->uniforms();
159
+ for (const auto &uniform : sourceUniforms) {
160
+ auto it = uniforms.find(std::string(uniform.name));
161
+ if (it == uniforms.end()) {
162
+ throw std::runtime_error("Missing uniform value for: " +
163
+ std::string(uniform.name));
164
+ }
166
165
 
167
- const auto& uniformValues = it->second;
168
- RuntimeEffectUniform reu = JsiSkRuntimeEffect::fromUniform(uniform);
169
- size_t expectedSize = reu.columns * reu.rows;
170
-
171
- if (uniformValues.size() != expectedSize) {
172
- throw std::runtime_error("Incorrect uniform size for: " +
173
- std::string(uniform.name) + ". Expected " +
174
- std::to_string(expectedSize) + " got " +
175
- std::to_string(uniformValues.size()));
176
- }
166
+ const auto &uniformValues = it->second;
167
+ RuntimeEffectUniform reu = JsiSkRuntimeEffect::fromUniform(uniform);
168
+ size_t expectedSize = reu.columns * reu.rows;
177
169
 
178
- // Process each element in the uniform
179
- for (std::size_t j = 0; j < expectedSize; ++j) {
180
- const std::size_t offset = reu.slot + j;
181
- float fValue = uniformValues[j];
182
-
183
- if (reu.isInteger) {
184
- int iValue = static_cast<int>(fValue);
185
- uniformDataPtr[offset] = SkBits2Float(iValue);
186
- } else {
187
- uniformDataPtr[offset] = fValue;
188
- }
189
- }
170
+ if (uniformValues.size() != expectedSize) {
171
+ throw std::runtime_error(
172
+ "Incorrect uniform size for: " + std::string(uniform.name) +
173
+ ". Expected " + std::to_string(expectedSize) + " got " +
174
+ std::to_string(uniformValues.size()));
175
+ }
176
+
177
+ // Process each element in the uniform
178
+ for (std::size_t j = 0; j < expectedSize; ++j) {
179
+ const std::size_t offset = reu.slot + j;
180
+ float fValue = uniformValues[j];
181
+
182
+ if (reu.isInteger) {
183
+ int iValue = static_cast<int>(fValue);
184
+ uniformDataPtr[offset] = SkBits2Float(iValue);
185
+ } else {
186
+ uniformDataPtr[offset] = fValue;
187
+ }
190
188
  }
189
+ }
191
190
 
192
- return uniformsData;
191
+ return uniformsData;
193
192
  }
194
193
 
195
- inline void processUniforms(
196
- SkRuntimeShaderBuilder& builder,
197
- const sk_sp<SkRuntimeEffect>& effect,
198
- const Uniforms& uniforms) {
199
-
200
- const auto& sourceUniforms = effect->uniforms();
201
- for (const auto& uniform : sourceUniforms) {
202
- auto it = uniforms.find(std::string(uniform.name));
203
- if (it == uniforms.end()) {
204
- throw std::runtime_error("Missing uniform value for: " +
205
- std::string(uniform.name));
206
- }
194
+ inline void processUniforms(SkRuntimeShaderBuilder &builder,
195
+ const sk_sp<SkRuntimeEffect> &effect,
196
+ const Uniforms &uniforms) {
207
197
 
208
- const auto& uniformValues = it->second;
209
- RuntimeEffectUniform reu = JsiSkRuntimeEffect::fromUniform(uniform);
210
- size_t expectedSize = reu.columns * reu.rows;
211
-
212
- if (uniformValues.size() != expectedSize) {
213
- throw std::runtime_error("Incorrect uniform size for: " +
214
- std::string(uniform.name) + ". Expected " +
215
- std::to_string(expectedSize) + " got " +
216
- std::to_string(uniformValues.size()));
217
- }
198
+ const auto &sourceUniforms = effect->uniforms();
199
+ for (const auto &uniform : sourceUniforms) {
200
+ auto it = uniforms.find(std::string(uniform.name));
201
+ if (it == uniforms.end()) {
202
+ throw std::runtime_error("Missing uniform value for: " +
203
+ std::string(uniform.name));
204
+ }
218
205
 
219
- auto builderUniform = builder.uniform(uniform.name);
220
-
221
- if (reu.isInteger) {
222
- std::vector<float> convertedValues(uniformValues.size());
223
- for (size_t i = 0; i < uniformValues.size(); ++i) {
224
- int iValue = static_cast<int>(uniformValues[i]);
225
- convertedValues[i] = SkBits2Float(iValue);
226
- }
227
- builderUniform.set(convertedValues.data(), convertedValues.size());
228
- } else {
229
- builderUniform.set(uniformValues.data(), uniformValues.size());
230
- }
206
+ const auto &uniformValues = it->second;
207
+ RuntimeEffectUniform reu = JsiSkRuntimeEffect::fromUniform(uniform);
208
+ size_t expectedSize = reu.columns * reu.rows;
209
+
210
+ if (uniformValues.size() != expectedSize) {
211
+ throw std::runtime_error(
212
+ "Incorrect uniform size for: " + std::string(uniform.name) +
213
+ ". Expected " + std::to_string(expectedSize) + " got " +
214
+ std::to_string(uniformValues.size()));
215
+ }
216
+
217
+ auto builderUniform = builder.uniform(uniform.name);
218
+
219
+ if (reu.isInteger) {
220
+ std::vector<float> convertedValues(uniformValues.size());
221
+ for (size_t i = 0; i < uniformValues.size(); ++i) {
222
+ int iValue = static_cast<int>(uniformValues[i]);
223
+ convertedValues[i] = SkBits2Float(iValue);
224
+ }
225
+ builderUniform.set(convertedValues.data(), convertedValues.size());
226
+ } else {
227
+ builderUniform.set(uniformValues.data(), uniformValues.size());
231
228
  }
229
+ }
232
230
  }
233
231
 
234
232
  } // namespace RNSkia
@@ -5,7 +5,7 @@
5
5
  #include "Command.h"
6
6
  #include "Convertor.h"
7
7
  #include "DrawingCtx.h"
8
- #include "Image.h"
8
+ #include "ImageFit.h"
9
9
 
10
10
  namespace RNSkia {
11
11
 
@@ -355,35 +355,35 @@ private:
355
355
  std::vector<BoxShadowCmdProps> shadows;
356
356
 
357
357
  // Helper function to inflate RRect (deflate is just negative inflation)
358
- SkRRect inflate(const SkRRect& box, float dx, float dy, float tx = 0, float ty = 0) {
359
- const auto& rect = box.rect();
360
- SkRect newRect = SkRect::MakeXYWH(
361
- rect.x() - dx + tx,
362
- rect.y() - dy + ty,
363
- rect.width() + 2 * dx,
364
- rect.height() + 2 * dy
365
- );
366
-
358
+ SkRRect inflate(const SkRRect &box, float dx, float dy, float tx = 0,
359
+ float ty = 0) {
360
+ const auto &rect = box.rect();
361
+ SkRect newRect =
362
+ SkRect::MakeXYWH(rect.x() - dx + tx, rect.y() - dy + ty,
363
+ rect.width() + 2 * dx, rect.height() + 2 * dy);
364
+
367
365
  SkRRect result;
368
366
  result.setRectXY(newRect, box.radii()[0].fX + dx, box.radii()[0].fY + dy);
369
367
  return result;
370
368
  }
371
369
 
372
- SkRRect deflate(const SkRRect& box, float dx, float dy, float tx = 0, float ty = 0) {
370
+ SkRRect deflate(const SkRRect &box, float dx, float dy, float tx = 0,
371
+ float ty = 0) {
373
372
  return inflate(box, -dx, -dy, tx, ty);
374
373
  }
375
374
 
376
375
  public:
377
- BoxCmd(jsi::Runtime &runtime, const jsi::Object &object, const jsi::Array &shadowsArray,
378
- Variables &variables)
376
+ BoxCmd(jsi::Runtime &runtime, const jsi::Object &object,
377
+ const jsi::Array &shadowsArray, Variables &variables)
379
378
  : Command(CommandType::DrawBox) {
380
-
379
+
381
380
  convertProperty(runtime, object, "box", props.box, variables);
382
381
  size_t shadowCount = shadowsArray.size(runtime);
383
382
  shadows.reserve(shadowCount);
384
-
383
+
385
384
  for (size_t i = 0; i < shadowCount; i++) {
386
- auto shadowObj = shadowsArray.getValueAtIndex(runtime, i).asObject(runtime);
385
+ auto shadowObj =
386
+ shadowsArray.getValueAtIndex(runtime, i).asObject(runtime);
387
387
  BoxShadowCmdProps shadow;
388
388
 
389
389
  convertProperty(runtime, shadowObj, "dx", shadow.dx, variables);
@@ -399,7 +399,6 @@ public:
399
399
 
400
400
  void draw(DrawingCtx *ctx) {
401
401
 
402
-
403
402
  // Get current paint properties
404
403
  auto paint = ctx->getPaint();
405
404
  float opacity = paint.getAlphaf();
@@ -414,16 +413,17 @@ public:
414
413
  }
415
414
 
416
415
  // Draw outer shadows first
417
- for (const auto& shadow : shadows) {
416
+ for (const auto &shadow : shadows) {
418
417
  if (!shadow.inner.value_or(false)) {
419
418
  SkPaint shadowPaint;
420
419
  shadowPaint.setAntiAlias(true);
421
420
  shadowPaint.setColor(shadow.color.value_or(SK_ColorBLACK));
422
421
  shadowPaint.setAlphaf(opacity);
423
422
  shadowPaint.setMaskFilter(SkMaskFilter::MakeBlur(
424
- SkBlurStyle::kNormal_SkBlurStyle, shadow.blur, true));
423
+ SkBlurStyle::kNormal_SkBlurStyle, shadow.blur, true));
425
424
 
426
- auto shadowBox = inflate(box, shadow.spread, shadow.spread, shadow.dx, shadow.dy);
425
+ auto shadowBox =
426
+ inflate(box, shadow.spread, shadow.spread, shadow.dx, shadow.dy);
427
427
  ctx->canvas->drawRRect(shadowBox, shadowPaint);
428
428
  }
429
429
  }
@@ -432,10 +432,10 @@ public:
432
432
  ctx->canvas->drawRRect(box, paint);
433
433
 
434
434
  // Draw inner shadows
435
- for (const auto& shadow : shadows) {
435
+ for (const auto &shadow : shadows) {
436
436
  if (shadow.inner.value_or(false)) {
437
437
  ctx->canvas->save();
438
-
438
+
439
439
  // Clip to box bounds
440
440
  ctx->canvas->clipRRect(box, SkClipOp::kIntersect, true);
441
441
 
@@ -444,11 +444,12 @@ public:
444
444
  shadowPaint.setColor(shadow.color.value_or(SK_ColorBLACK));
445
445
  shadowPaint.setAlphaf(opacity);
446
446
  shadowPaint.setMaskFilter(SkMaskFilter::MakeBlur(
447
- SkBlurStyle::kNormal_SkBlurStyle, shadow.blur, true));
447
+ SkBlurStyle::kNormal_SkBlurStyle, shadow.blur, true));
448
448
 
449
449
  // Calculate shadow bounds
450
450
  float delta = 10 + std::max(std::abs(shadow.dx), std::abs(shadow.dy));
451
- auto inner = deflate(box, shadow.spread, shadow.spread, shadow.dx, shadow.dy);
451
+ auto inner =
452
+ deflate(box, shadow.spread, shadow.spread, shadow.dx, shadow.dy);
452
453
  auto outer = inflate(box, delta, delta);
453
454
 
454
455
  ctx->canvas->drawDRRect(outer, inner, shadowPaint);
@@ -62,9 +62,10 @@ public:
62
62
  } else if (nodeType == "skTwoPointConicalGradient") {
63
63
  commands.push_back(std::make_unique<TwoPointConicalGradientCmd>(
64
64
  runtime, props, variables));
65
- // TODO: should receive skBlendShader here
65
+ // TODO: should receive skBlendShader here
66
66
  } else if (nodeType == "skBlend") {
67
- commands.push_back(std::make_unique<BlendShaderCmd>(runtime, props, variables));
67
+ commands.push_back(
68
+ std::make_unique<BlendShaderCmd>(runtime, props, variables));
68
69
  }
69
70
  }
70
71
 
@@ -204,8 +205,10 @@ public:
204
205
  commands.push_back(std::make_unique<Command>(CommandType::DrawPaint));
205
206
  }
206
207
 
207
- void drawBox(jsi::Runtime &runtime, const jsi::Object &props, const jsi::Array &shadows) {
208
- commands.push_back(std::make_unique<BoxCmd>(runtime, props, shadows, variables));
208
+ void drawBox(jsi::Runtime &runtime, const jsi::Object &props,
209
+ const jsi::Array &shadows) {
210
+ commands.push_back(
211
+ std::make_unique<BoxCmd>(runtime, props, shadows, variables));
209
212
  }
210
213
 
211
214
  void drawImage(jsi::Runtime &runtime, const jsi::Object &props) {
@@ -376,11 +379,10 @@ public:
376
379
  static_cast<TwoPointConicalGradientCmd *>(cmd.get());
377
380
  twoPointConicalGradientCmd->pushShader(ctx);
378
381
  } else if (nodeType == "skBlendShader") {
379
- auto *blendShaderCmd =
380
- static_cast<BlendShaderCmd *>(cmd.get());
382
+ auto *blendShaderCmd = static_cast<BlendShaderCmd *>(cmd.get());
381
383
  blendShaderCmd->pushShader(ctx);
382
384
  } else {
383
- throw std::runtime_error("Invalid shader type: " + nodeType);
385
+ throw std::runtime_error("Invalid shader type: " + nodeType);
384
386
  }
385
387
  break;
386
388
  }
@@ -442,8 +444,8 @@ public:
442
444
  auto *line2DCmd = static_cast<Line2DPathEffectCmd *>(cmd.get());
443
445
  line2DCmd->pushPathEffect(ctx);
444
446
  } else {
445
- throw std::runtime_error("Invalid path effect type: " + nodeType);
446
- }
447
+ throw std::runtime_error("Invalid path effect type: " + nodeType);
448
+ }
447
449
  break;
448
450
  }
449
451
 
@@ -470,7 +472,7 @@ public:
470
472
  auto *lerpCmd = static_cast<LerpColorFilterCmd *>(cmd.get());
471
473
  lerpCmd->pushColorFilter(ctx);
472
474
  } else {
473
- throw std::runtime_error("Invalid color filter type: " + nodeType);
475
+ throw std::runtime_error("Invalid color filter type: " + nodeType);
474
476
  }
475
477
  break;
476
478
  }
@@ -9,7 +9,7 @@
9
9
  #include "Command.h"
10
10
  #include "Convertor.h"
11
11
  #include "DrawingCtx.h"
12
- #include "Image.h"
12
+ #include "ImageFit.h"
13
13
 
14
14
  namespace RNSkia {
15
15
 
@@ -41,7 +41,7 @@ public:
41
41
 
42
42
  std::vector<sk_sp<SkShader>> children = ctx->popAllShaders();
43
43
  auto shader = source->makeShader(std::move(uniformsData), children.data(),
44
- children.size(), &m3);
44
+ children.size(), &m3);
45
45
 
46
46
  ctx->shaders.push_back(shader);
47
47
  }
@@ -384,17 +384,17 @@ public:
384
384
  void pushShader(DrawingCtx *ctx) {
385
385
  // Get all existing shaders from the context
386
386
  std::vector<sk_sp<SkShader>> shaders = ctx->popAllShaders();
387
-
387
+
388
388
  // We need at least 2 shaders to blend
389
389
  if (shaders.size() >= 2) {
390
390
  // Start from the last shader and blend backwards
391
391
  sk_sp<SkShader> blendedShader = shaders.back();
392
-
392
+
393
393
  // Iterate from second-to-last to first shader
394
394
  for (int i = shaders.size() - 2; i >= 0; i--) {
395
395
  blendedShader = SkShaders::Blend(props.mode, shaders[i], blendedShader);
396
396
  }
397
-
397
+
398
398
  ctx->shaders.push_back(blendedShader);
399
399
  } else if (shaders.size() == 1) {
400
400
  // If only one shader, just push it back
@@ -5,7 +5,6 @@
5
5
  #include <string>
6
6
  #include <variant>
7
7
 
8
- #include "JsiDomRenderNode.h"
9
8
  #include "JsiSkPicture.h"
10
9
 
11
10
  namespace RNJsi {
@@ -18,16 +17,10 @@ public:
18
17
  auto object = value.asObject(runtime);
19
18
  if (object.isHostObject(runtime)) {
20
19
  auto hostObject = object.asHostObject(runtime);
21
- auto dom =
22
- std::dynamic_pointer_cast<RNSkia::JsiDomRenderNode>(hostObject);
23
- if (dom) {
24
- _value = dom;
25
- } else {
26
- auto jsiPicture =
27
- std::dynamic_pointer_cast<RNSkia::JsiSkPicture>(hostObject);
28
- if (jsiPicture) {
29
- _value = jsiPicture->getObject();
30
- }
20
+ auto jsiPicture =
21
+ std::dynamic_pointer_cast<RNSkia::JsiSkPicture>(hostObject);
22
+ if (jsiPicture) {
23
+ _value = jsiPicture->getObject();
31
24
  }
32
25
  }
33
26
  }
@@ -35,15 +28,11 @@ public:
35
28
 
36
29
  bool isNull() { return std::holds_alternative<nullptr_t>(_value); }
37
30
 
38
- std::shared_ptr<RNSkia::JsiDomRenderNode> getDomRenderNode() {
39
- return std::get<std::shared_ptr<RNSkia::JsiDomRenderNode>>(_value);
40
- }
41
31
 
42
32
  sk_sp<SkPicture> getPicture() { return std::get<sk_sp<SkPicture>>(_value); }
43
33
 
44
34
  private:
45
- std::variant<nullptr_t, sk_sp<SkPicture>,
46
- std::shared_ptr<RNSkia::JsiDomRenderNode>>
35
+ std::variant<nullptr_t, sk_sp<SkPicture>>
47
36
  _value = nullptr;
48
37
  };
49
38
  } // namespace RNJsi
@@ -9,7 +9,6 @@
9
9
  #include "RNSkJsiViewApi.h"
10
10
  #include "RNSkView.h"
11
11
 
12
- #include "JsiDomApi.h"
13
12
  #include "RuntimeAwareCache.h"
14
13
 
15
14
  namespace RNSkia {
@@ -24,7 +23,7 @@ RNSkManager::RNSkManager(
24
23
  _viewApi(std::make_shared<RNSkJsiViewApi>(platformContext)) {
25
24
 
26
25
  // Register main runtime
27
- BaseRuntimeAwareCache::setMainJsRuntime(_jsRuntime);
26
+ RNJsi::BaseRuntimeAwareCache::setMainJsRuntime(_jsRuntime);
28
27
 
29
28
  // Install bindings
30
29
  installBindings();
@@ -77,10 +76,5 @@ void RNSkManager::installBindings() {
77
76
  _jsRuntime->global().setProperty(
78
77
  *_jsRuntime, "SkiaViewApi",
79
78
  jsi::Object::createFromHostObject(*_jsRuntime, _viewApi));
80
-
81
- auto skiaDomApi = std::make_shared<JsiDomApi>(_platformContext);
82
- _jsRuntime->global().setProperty(
83
- *_jsRuntime, "SkiaDomApi",
84
- jsi::Object::createFromHostObject(*_jsRuntime, std::move(skiaDomApi)));
85
79
  }
86
80
  } // namespace RNSkia
@@ -30,12 +30,16 @@
30
30
  #include <TargetConditionals.h>
31
31
  #if TARGET_RT_BIG_ENDIAN
32
32
  #define FourCC2Str(fourcc) \
33
- (const char[]){*((char *)&fourcc), *(((char *)&fourcc) + 1), \
34
- *(((char *)&fourcc) + 2), *(((char *)&fourcc) + 3), 0}
33
+ (const char[]) { \
34
+ *((char *)&fourcc), *(((char *)&fourcc) + 1), *(((char *)&fourcc) + 2), \
35
+ *(((char *)&fourcc) + 3), 0 \
36
+ }
35
37
  #else
36
38
  #define FourCC2Str(fourcc) \
37
- (const char[]){*(((char *)&fourcc) + 3), *(((char *)&fourcc) + 2), \
38
- *(((char *)&fourcc) + 1), *(((char *)&fourcc) + 0), 0}
39
+ (const char[]) { \
40
+ *(((char *)&fourcc) + 3), *(((char *)&fourcc) + 2), \
41
+ *(((char *)&fourcc) + 1), *(((char *)&fourcc) + 0), 0 \
42
+ }
39
43
  #endif
40
44
 
41
45
  // pragma MARK: TextureHolder
@@ -1,3 +1,2 @@
1
1
  export * from "../types";
2
- export * from "./JsiSkDOM";
3
2
  export * from "./datatypes";
@@ -14,17 +14,6 @@ Object.keys(_types).forEach(function (key) {
14
14
  }
15
15
  });
16
16
  });
17
- var _JsiSkDOM = require("./JsiSkDOM");
18
- Object.keys(_JsiSkDOM).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _JsiSkDOM[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _JsiSkDOM[key];
25
- }
26
- });
27
- });
28
17
  var _datatypes = require("./datatypes");
29
18
  Object.keys(_datatypes).forEach(function (key) {
30
19
  if (key === "default" || key === "__esModule") return;
@@ -1 +1 @@
1
- {"version":3,"names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_JsiSkDOM","_datatypes"],"sources":["index.ts"],"sourcesContent":["export * from \"../types\";\nexport * from \"./JsiSkDOM\";\nexport * from \"./datatypes\";\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,SAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,SAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,SAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,SAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,UAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,UAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,UAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,UAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_datatypes"],"sources":["index.ts"],"sourcesContent":["export * from \"../types\";\nexport * from \"./datatypes\";\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1,7 +1 @@
1
- import type { Container } from "../../renderer/Container";
2
- import type { AnimatedProps } from "../../renderer/processors";
3
- import type { Node } from "../../dom/types";
4
1
  export declare let HAS_REANIMATED_3: boolean;
5
- export declare const unbindReanimatedNode: (node: Node<unknown>) => void;
6
- export declare function extractReanimatedProps(props: AnimatedProps<any>): AnimatedProps<any, never>[];
7
- export declare function bindReanimatedProps(container: Container, node: Node<any>, reanimatedProps: AnimatedProps<any>): void;