@reactvision/react-viro 2.43.1 → 2.43.3

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 (475) hide show
  1. package/README.md +3 -5
  2. package/android/react_viro/react_viro-release.aar +0 -0
  3. package/components/Utilities/ViroVersion.ts +1 -1
  4. package/dist/components/Utilities/ViroVersion.d.ts +1 -1
  5. package/dist/components/Utilities/ViroVersion.js +1 -1
  6. package/dist/plugins/withViro.d.ts +0 -3
  7. package/dist/plugins/withViro.js +0 -19
  8. package/dist/plugins/withViroAndroid.js +20 -24
  9. package/dist/plugins/withViroIos.js +2 -20
  10. package/ios/ViroReact.podspec +11 -51
  11. package/ios/dist/armv7_arm64/libViroReact.a +0 -0
  12. package/ios/dist/include/VRTFabricCrashFix.h +16 -0
  13. package/ios/dist/lib/libViroReact.a +0 -0
  14. package/package.json +10 -23
  15. package/dist/dynamic-index.d.ts +0 -11
  16. package/dist/dynamic-index.js +0 -28
  17. package/dist/examples/AutoDetectionExample.d.ts +0 -10
  18. package/dist/examples/AutoDetectionExample.js +0 -91
  19. package/dist/fabric-interop/NativeViro.d.ts +0 -42
  20. package/dist/fabric-interop/NativeViro.js +0 -262
  21. package/dist/fabric-interop/ViroEventsManager.d.ts +0 -83
  22. package/dist/fabric-interop/ViroEventsManager.js +0 -222
  23. package/dist/fabric-interop/ViroFabricContainer.d.ts +0 -34
  24. package/dist/fabric-interop/ViroFabricContainer.js +0 -200
  25. package/dist/fabric-interop/android/src/main/js/specs/ViroFabricContainerViewNativeComponent.d.ts +0 -35
  26. package/dist/fabric-interop/android/src/main/js/specs/ViroFabricContainerViewNativeComponent.js +0 -20
  27. package/dist/fabric-interop/components/AR/ViroARPlane.d.ts +0 -22
  28. package/dist/fabric-interop/components/AR/ViroARPlane.js +0 -95
  29. package/dist/fabric-interop/components/AR/ViroARPlaneSelector.d.ts +0 -43
  30. package/dist/fabric-interop/components/AR/ViroARPlaneSelector.js +0 -152
  31. package/dist/fabric-interop/components/AR/ViroARTrackingTargets.d.ts +0 -55
  32. package/dist/fabric-interop/components/AR/ViroARTrackingTargets.js +0 -85
  33. package/dist/fabric-interop/components/AR/ViroCommonProps.d.ts +0 -91
  34. package/dist/fabric-interop/components/AR/ViroCommonProps.js +0 -7
  35. package/dist/fabric-interop/components/Animation/ViroAnimations.d.ts +0 -48
  36. package/dist/fabric-interop/components/Animation/ViroAnimations.js +0 -64
  37. package/dist/fabric-interop/components/Material/ViroMaterials.d.ts +0 -66
  38. package/dist/fabric-interop/components/Material/ViroMaterials.js +0 -85
  39. package/dist/fabric-interop/components/Types/ViroEvents.d.ts +0 -202
  40. package/dist/fabric-interop/components/Types/ViroEvents.js +0 -53
  41. package/dist/fabric-interop/components/Types/ViroUtils.d.ts +0 -137
  42. package/dist/fabric-interop/components/Types/ViroUtils.js +0 -7
  43. package/dist/fabric-interop/components/Viro360Image.d.ts +0 -23
  44. package/dist/fabric-interop/components/Viro360Image.js +0 -45
  45. package/dist/fabric-interop/components/Viro360Video.d.ts +0 -29
  46. package/dist/fabric-interop/components/Viro360Video.js +0 -47
  47. package/dist/fabric-interop/components/Viro3DObject.d.ts +0 -60
  48. package/dist/fabric-interop/components/Viro3DObject.js +0 -49
  49. package/dist/fabric-interop/components/Viro3DSceneNavigator.d.ts +0 -49
  50. package/dist/fabric-interop/components/Viro3DSceneNavigator.js +0 -388
  51. package/dist/fabric-interop/components/ViroARCamera.d.ts +0 -29
  52. package/dist/fabric-interop/components/ViroARCamera.js +0 -64
  53. package/dist/fabric-interop/components/ViroARImageMarker.d.ts +0 -21
  54. package/dist/fabric-interop/components/ViroARImageMarker.js +0 -71
  55. package/dist/fabric-interop/components/ViroARObjectMarker.d.ts +0 -21
  56. package/dist/fabric-interop/components/ViroARObjectMarker.js +0 -71
  57. package/dist/fabric-interop/components/ViroARPlane.d.ts +0 -24
  58. package/dist/fabric-interop/components/ViroARPlane.js +0 -88
  59. package/dist/fabric-interop/components/ViroARScene.d.ts +0 -29
  60. package/dist/fabric-interop/components/ViroARScene.js +0 -89
  61. package/dist/fabric-interop/components/ViroARSceneNavigator.d.ts +0 -29
  62. package/dist/fabric-interop/components/ViroARSceneNavigator.js +0 -76
  63. package/dist/fabric-interop/components/ViroAmbientLight.d.ts +0 -19
  64. package/dist/fabric-interop/components/ViroAmbientLight.js +0 -46
  65. package/dist/fabric-interop/components/ViroAnimatedComponent.d.ts +0 -24
  66. package/dist/fabric-interop/components/ViroAnimatedComponent.js +0 -63
  67. package/dist/fabric-interop/components/ViroAnimatedImage.d.ts +0 -28
  68. package/dist/fabric-interop/components/ViroAnimatedImage.js +0 -49
  69. package/dist/fabric-interop/components/ViroBox.d.ts +0 -20
  70. package/dist/fabric-interop/components/ViroBox.js +0 -47
  71. package/dist/fabric-interop/components/ViroButton.d.ts +0 -32
  72. package/dist/fabric-interop/components/ViroButton.js +0 -92
  73. package/dist/fabric-interop/components/ViroCamera.d.ts +0 -17
  74. package/dist/fabric-interop/components/ViroCamera.js +0 -30
  75. package/dist/fabric-interop/components/ViroController.d.ts +0 -19
  76. package/dist/fabric-interop/components/ViroController.js +0 -64
  77. package/dist/fabric-interop/components/ViroDirectionalLight.d.ts +0 -28
  78. package/dist/fabric-interop/components/ViroDirectionalLight.js +0 -55
  79. package/dist/fabric-interop/components/ViroFlexView.d.ts +0 -36
  80. package/dist/fabric-interop/components/ViroFlexView.js +0 -97
  81. package/dist/fabric-interop/components/ViroGeometry.d.ts +0 -23
  82. package/dist/fabric-interop/components/ViroGeometry.js +0 -50
  83. package/dist/fabric-interop/components/ViroGlobal.d.ts +0 -45
  84. package/dist/fabric-interop/components/ViroGlobal.js +0 -20
  85. package/dist/fabric-interop/components/ViroImage.d.ts +0 -29
  86. package/dist/fabric-interop/components/ViroImage.js +0 -52
  87. package/dist/fabric-interop/components/ViroLightingEnvironment.d.ts +0 -19
  88. package/dist/fabric-interop/components/ViroLightingEnvironment.js +0 -44
  89. package/dist/fabric-interop/components/ViroMaterialVideo.d.ts +0 -30
  90. package/dist/fabric-interop/components/ViroMaterialVideo.js +0 -48
  91. package/dist/fabric-interop/components/ViroNode.d.ts +0 -36
  92. package/dist/fabric-interop/components/ViroNode.js +0 -28
  93. package/dist/fabric-interop/components/ViroOmniLight.d.ts +0 -21
  94. package/dist/fabric-interop/components/ViroOmniLight.js +0 -48
  95. package/dist/fabric-interop/components/ViroOrbitCamera.d.ts +0 -17
  96. package/dist/fabric-interop/components/ViroOrbitCamera.js +0 -30
  97. package/dist/fabric-interop/components/ViroParticleEmitter.d.ts +0 -51
  98. package/dist/fabric-interop/components/ViroParticleEmitter.js +0 -50
  99. package/dist/fabric-interop/components/ViroPolygon.d.ts +0 -20
  100. package/dist/fabric-interop/components/ViroPolygon.js +0 -47
  101. package/dist/fabric-interop/components/ViroPolyline.d.ts +0 -19
  102. package/dist/fabric-interop/components/ViroPolyline.js +0 -46
  103. package/dist/fabric-interop/components/ViroPortal.d.ts +0 -16
  104. package/dist/fabric-interop/components/ViroPortal.js +0 -73
  105. package/dist/fabric-interop/components/ViroPortalScene.d.ts +0 -16
  106. package/dist/fabric-interop/components/ViroPortalScene.js +0 -29
  107. package/dist/fabric-interop/components/ViroQuad.d.ts +0 -39
  108. package/dist/fabric-interop/components/ViroQuad.js +0 -49
  109. package/dist/fabric-interop/components/ViroScene.d.ts +0 -29
  110. package/dist/fabric-interop/components/ViroScene.js +0 -103
  111. package/dist/fabric-interop/components/ViroSceneNavigator.d.ts +0 -23
  112. package/dist/fabric-interop/components/ViroSceneNavigator.js +0 -73
  113. package/dist/fabric-interop/components/ViroSkyBox.d.ts +0 -39
  114. package/dist/fabric-interop/components/ViroSkyBox.js +0 -44
  115. package/dist/fabric-interop/components/ViroSound.d.ts +0 -23
  116. package/dist/fabric-interop/components/ViroSound.js +0 -46
  117. package/dist/fabric-interop/components/ViroSoundField.d.ts +0 -24
  118. package/dist/fabric-interop/components/ViroSoundField.js +0 -47
  119. package/dist/fabric-interop/components/ViroSpatialSound.d.ts +0 -27
  120. package/dist/fabric-interop/components/ViroSpatialSound.js +0 -50
  121. package/dist/fabric-interop/components/ViroSphere.d.ts +0 -22
  122. package/dist/fabric-interop/components/ViroSphere.js +0 -49
  123. package/dist/fabric-interop/components/ViroSpinner.d.ts +0 -18
  124. package/dist/fabric-interop/components/ViroSpinner.js +0 -45
  125. package/dist/fabric-interop/components/ViroSpotLight.d.ts +0 -30
  126. package/dist/fabric-interop/components/ViroSpotLight.js +0 -57
  127. package/dist/fabric-interop/components/ViroSurface.d.ts +0 -38
  128. package/dist/fabric-interop/components/ViroSurface.js +0 -48
  129. package/dist/fabric-interop/components/ViroText.d.ts +0 -36
  130. package/dist/fabric-interop/components/ViroText.js +0 -59
  131. package/dist/fabric-interop/components/ViroUtils.d.ts +0 -63
  132. package/dist/fabric-interop/components/ViroUtils.js +0 -140
  133. package/dist/fabric-interop/components/ViroVRSceneNavigator.d.ts +0 -25
  134. package/dist/fabric-interop/components/ViroVRSceneNavigator.js +0 -73
  135. package/dist/fabric-interop/components/ViroVideo.d.ts +0 -32
  136. package/dist/fabric-interop/components/ViroVideo.js +0 -52
  137. package/dist/fabric-interop/components/index.d.ts +0 -62
  138. package/dist/fabric-interop/components/index.js +0 -144
  139. package/dist/fabric-interop/examples/BasicSceneExample.d.ts +0 -11
  140. package/dist/fabric-interop/examples/BasicSceneExample.js +0 -244
  141. package/dist/fabric-interop/examples/ComprehensiveExample.d.ts +0 -13
  142. package/dist/fabric-interop/examples/ComprehensiveExample.js +0 -327
  143. package/dist/fabric-interop/examples/SimpleARExample.d.ts +0 -8
  144. package/dist/fabric-interop/examples/SimpleARExample.js +0 -62
  145. package/dist/fabric-interop/index.d.ts +0 -14
  146. package/dist/fabric-interop/index.js +0 -117
  147. package/dist/fabric-interop/specs/ViroEventsTurboModule.d.ts +0 -19
  148. package/dist/fabric-interop/specs/ViroEventsTurboModule.js +0 -11
  149. package/dist/fabric-interop/test/BasicFunctionalityTest.d.ts +0 -9
  150. package/dist/fabric-interop/test/BasicFunctionalityTest.js +0 -222
  151. package/dist/fabric.d.ts +0 -13
  152. package/dist/fabric.js +0 -29
  153. package/dynamic-index-source.d.ts +0 -77
  154. package/dynamic-index.ts +0 -41
  155. package/fabric-interop/NativeViro.ts +0 -335
  156. package/fabric-interop/README.md +0 -282
  157. package/fabric-interop/ViroEventsManager.js +0 -257
  158. package/fabric-interop/ViroFabricContainer.tsx +0 -273
  159. package/fabric-interop/components/AR/ViroARPlane.tsx +0 -108
  160. package/fabric-interop/components/AR/ViroARPlaneSelector.tsx +0 -185
  161. package/fabric-interop/components/AR/ViroARTrackingTargets.ts +0 -108
  162. package/fabric-interop/components/AR/ViroCommonProps.ts +0 -140
  163. package/fabric-interop/components/Animation/ViroAnimations.ts +0 -96
  164. package/fabric-interop/components/Material/ViroMaterials.ts +0 -127
  165. package/fabric-interop/components/Resources/viro_spinner_1.png +0 -0
  166. package/fabric-interop/components/Resources/viro_spinner_1_w.png +0 -0
  167. package/fabric-interop/components/Resources/viro_spinner_1a.png +0 -0
  168. package/fabric-interop/components/Resources/viro_spinner_1a_w.png +0 -0
  169. package/fabric-interop/components/Types/ViroEvents.ts +0 -285
  170. package/fabric-interop/components/Types/ViroUtils.ts +0 -160
  171. package/fabric-interop/components/Viro360Image.tsx +0 -70
  172. package/fabric-interop/components/Viro360Video.tsx +0 -78
  173. package/fabric-interop/components/Viro3DObject.tsx +0 -122
  174. package/fabric-interop/components/Viro3DSceneNavigator.tsx +0 -503
  175. package/fabric-interop/components/ViroARCamera.tsx +0 -105
  176. package/fabric-interop/components/ViroARImageMarker.tsx +0 -98
  177. package/fabric-interop/components/ViroARObjectMarker.tsx +0 -100
  178. package/fabric-interop/components/ViroARPlane.tsx +0 -120
  179. package/fabric-interop/components/ViroARScene.tsx +0 -127
  180. package/fabric-interop/components/ViroARSceneNavigator.tsx +0 -82
  181. package/fabric-interop/components/ViroAmbientLight.tsx +0 -62
  182. package/fabric-interop/components/ViroAnimatedComponent.tsx +0 -91
  183. package/fabric-interop/components/ViroAnimatedImage.tsx +0 -81
  184. package/fabric-interop/components/ViroBox.tsx +0 -72
  185. package/fabric-interop/components/ViroButton.tsx +0 -125
  186. package/fabric-interop/components/ViroCamera.tsx +0 -45
  187. package/fabric-interop/components/ViroController.tsx +0 -87
  188. package/fabric-interop/components/ViroDirectionalLight.tsx +0 -84
  189. package/fabric-interop/components/ViroFlexView.tsx +0 -146
  190. package/fabric-interop/components/ViroGeometry.tsx +0 -78
  191. package/fabric-interop/components/ViroGlobal.ts +0 -114
  192. package/fabric-interop/components/ViroImage.tsx +0 -85
  193. package/fabric-interop/components/ViroLightingEnvironment.tsx +0 -63
  194. package/fabric-interop/components/ViroMaterialVideo.tsx +0 -82
  195. package/fabric-interop/components/ViroNode.tsx +0 -62
  196. package/fabric-interop/components/ViroOmniLight.tsx +0 -66
  197. package/fabric-interop/components/ViroOrbitCamera.tsx +0 -45
  198. package/fabric-interop/components/ViroParticleEmitter.tsx +0 -111
  199. package/fabric-interop/components/ViroPolygon.tsx +0 -72
  200. package/fabric-interop/components/ViroPolyline.tsx +0 -71
  201. package/fabric-interop/components/ViroPortal.tsx +0 -91
  202. package/fabric-interop/components/ViroPortalScene.tsx +0 -43
  203. package/fabric-interop/components/ViroQuad.tsx +0 -82
  204. package/fabric-interop/components/ViroScene.tsx +0 -117
  205. package/fabric-interop/components/ViroSceneNavigator.tsx +0 -71
  206. package/fabric-interop/components/ViroSkyBox.tsx +0 -75
  207. package/fabric-interop/components/ViroSound.tsx +0 -71
  208. package/fabric-interop/components/ViroSoundField.tsx +0 -75
  209. package/fabric-interop/components/ViroSpatialSound.tsx +0 -81
  210. package/fabric-interop/components/ViroSphere.tsx +0 -75
  211. package/fabric-interop/components/ViroSpinner.tsx +0 -63
  212. package/fabric-interop/components/ViroSpotLight.tsx +0 -86
  213. package/fabric-interop/components/ViroSurface.tsx +0 -80
  214. package/fabric-interop/components/ViroText.tsx +0 -114
  215. package/fabric-interop/components/ViroUtils.ts +0 -208
  216. package/fabric-interop/components/ViroVRSceneNavigator.tsx +0 -75
  217. package/fabric-interop/components/ViroVideo.tsx +0 -91
  218. package/fabric-interop/components/index.ts +0 -94
  219. package/fabric-interop/dist/NativeViro.d.ts +0 -43
  220. package/fabric-interop/dist/NativeViro.d.ts.map +0 -1
  221. package/fabric-interop/dist/NativeViro.js +0 -263
  222. package/fabric-interop/dist/NativeViro.js.map +0 -1
  223. package/fabric-interop/dist/ViroFabricContainer.d.ts +0 -35
  224. package/fabric-interop/dist/ViroFabricContainer.d.ts.map +0 -1
  225. package/fabric-interop/dist/ViroFabricContainer.js +0 -201
  226. package/fabric-interop/dist/ViroFabricContainer.js.map +0 -1
  227. package/fabric-interop/dist/components/AR/ViroARPlane.d.ts +0 -23
  228. package/fabric-interop/dist/components/AR/ViroARPlane.d.ts.map +0 -1
  229. package/fabric-interop/dist/components/AR/ViroARPlane.js +0 -96
  230. package/fabric-interop/dist/components/AR/ViroARPlane.js.map +0 -1
  231. package/fabric-interop/dist/components/AR/ViroARPlaneSelector.d.ts +0 -44
  232. package/fabric-interop/dist/components/AR/ViroARPlaneSelector.d.ts.map +0 -1
  233. package/fabric-interop/dist/components/AR/ViroARPlaneSelector.js +0 -156
  234. package/fabric-interop/dist/components/AR/ViroARPlaneSelector.js.map +0 -1
  235. package/fabric-interop/dist/components/AR/ViroARTrackingTargets.d.ts +0 -56
  236. package/fabric-interop/dist/components/AR/ViroARTrackingTargets.d.ts.map +0 -1
  237. package/fabric-interop/dist/components/AR/ViroARTrackingTargets.js +0 -86
  238. package/fabric-interop/dist/components/AR/ViroARTrackingTargets.js.map +0 -1
  239. package/fabric-interop/dist/components/AR/ViroCommonProps.d.ts +0 -92
  240. package/fabric-interop/dist/components/AR/ViroCommonProps.d.ts.map +0 -1
  241. package/fabric-interop/dist/components/AR/ViroCommonProps.js +0 -8
  242. package/fabric-interop/dist/components/AR/ViroCommonProps.js.map +0 -1
  243. package/fabric-interop/dist/components/Animation/ViroAnimations.d.ts +0 -49
  244. package/fabric-interop/dist/components/Animation/ViroAnimations.d.ts.map +0 -1
  245. package/fabric-interop/dist/components/Animation/ViroAnimations.js +0 -65
  246. package/fabric-interop/dist/components/Animation/ViroAnimations.js.map +0 -1
  247. package/fabric-interop/dist/components/Material/ViroMaterials.d.ts +0 -67
  248. package/fabric-interop/dist/components/Material/ViroMaterials.d.ts.map +0 -1
  249. package/fabric-interop/dist/components/Material/ViroMaterials.js +0 -86
  250. package/fabric-interop/dist/components/Material/ViroMaterials.js.map +0 -1
  251. package/fabric-interop/dist/components/Types/ViroEvents.d.ts +0 -203
  252. package/fabric-interop/dist/components/Types/ViroEvents.d.ts.map +0 -1
  253. package/fabric-interop/dist/components/Types/ViroEvents.js +0 -54
  254. package/fabric-interop/dist/components/Types/ViroEvents.js.map +0 -1
  255. package/fabric-interop/dist/components/Types/ViroUtils.d.ts +0 -138
  256. package/fabric-interop/dist/components/Types/ViroUtils.d.ts.map +0 -1
  257. package/fabric-interop/dist/components/Types/ViroUtils.js +0 -8
  258. package/fabric-interop/dist/components/Types/ViroUtils.js.map +0 -1
  259. package/fabric-interop/dist/components/Viro360Image.d.ts +0 -24
  260. package/fabric-interop/dist/components/Viro360Image.d.ts.map +0 -1
  261. package/fabric-interop/dist/components/Viro360Image.js +0 -47
  262. package/fabric-interop/dist/components/Viro360Image.js.map +0 -1
  263. package/fabric-interop/dist/components/Viro360Video.d.ts +0 -30
  264. package/fabric-interop/dist/components/Viro360Video.d.ts.map +0 -1
  265. package/fabric-interop/dist/components/Viro360Video.js +0 -49
  266. package/fabric-interop/dist/components/Viro360Video.js.map +0 -1
  267. package/fabric-interop/dist/components/Viro3DObject.d.ts +0 -61
  268. package/fabric-interop/dist/components/Viro3DObject.d.ts.map +0 -1
  269. package/fabric-interop/dist/components/Viro3DObject.js +0 -51
  270. package/fabric-interop/dist/components/Viro3DObject.js.map +0 -1
  271. package/fabric-interop/dist/components/Viro3DSceneNavigator.d.ts +0 -50
  272. package/fabric-interop/dist/components/Viro3DSceneNavigator.d.ts.map +0 -1
  273. package/fabric-interop/dist/components/Viro3DSceneNavigator.js +0 -389
  274. package/fabric-interop/dist/components/Viro3DSceneNavigator.js.map +0 -1
  275. package/fabric-interop/dist/components/ViroARCamera.d.ts +0 -30
  276. package/fabric-interop/dist/components/ViroARCamera.d.ts.map +0 -1
  277. package/fabric-interop/dist/components/ViroARCamera.js +0 -65
  278. package/fabric-interop/dist/components/ViroARCamera.js.map +0 -1
  279. package/fabric-interop/dist/components/ViroARImageMarker.d.ts +0 -22
  280. package/fabric-interop/dist/components/ViroARImageMarker.d.ts.map +0 -1
  281. package/fabric-interop/dist/components/ViroARImageMarker.js +0 -72
  282. package/fabric-interop/dist/components/ViroARImageMarker.js.map +0 -1
  283. package/fabric-interop/dist/components/ViroARObjectMarker.d.ts +0 -22
  284. package/fabric-interop/dist/components/ViroARObjectMarker.d.ts.map +0 -1
  285. package/fabric-interop/dist/components/ViroARObjectMarker.js +0 -72
  286. package/fabric-interop/dist/components/ViroARObjectMarker.js.map +0 -1
  287. package/fabric-interop/dist/components/ViroARPlane.d.ts +0 -25
  288. package/fabric-interop/dist/components/ViroARPlane.d.ts.map +0 -1
  289. package/fabric-interop/dist/components/ViroARPlane.js +0 -89
  290. package/fabric-interop/dist/components/ViroARPlane.js.map +0 -1
  291. package/fabric-interop/dist/components/ViroARScene.d.ts +0 -30
  292. package/fabric-interop/dist/components/ViroARScene.d.ts.map +0 -1
  293. package/fabric-interop/dist/components/ViroARScene.js +0 -90
  294. package/fabric-interop/dist/components/ViroARScene.js.map +0 -1
  295. package/fabric-interop/dist/components/ViroARSceneNavigator.d.ts +0 -30
  296. package/fabric-interop/dist/components/ViroARSceneNavigator.d.ts.map +0 -1
  297. package/fabric-interop/dist/components/ViroARSceneNavigator.js +0 -78
  298. package/fabric-interop/dist/components/ViroARSceneNavigator.js.map +0 -1
  299. package/fabric-interop/dist/components/ViroAmbientLight.d.ts +0 -20
  300. package/fabric-interop/dist/components/ViroAmbientLight.d.ts.map +0 -1
  301. package/fabric-interop/dist/components/ViroAmbientLight.js +0 -48
  302. package/fabric-interop/dist/components/ViroAmbientLight.js.map +0 -1
  303. package/fabric-interop/dist/components/ViroAnimatedComponent.d.ts +0 -25
  304. package/fabric-interop/dist/components/ViroAnimatedComponent.d.ts.map +0 -1
  305. package/fabric-interop/dist/components/ViroAnimatedComponent.js +0 -65
  306. package/fabric-interop/dist/components/ViroAnimatedComponent.js.map +0 -1
  307. package/fabric-interop/dist/components/ViroAnimatedImage.d.ts +0 -29
  308. package/fabric-interop/dist/components/ViroAnimatedImage.d.ts.map +0 -1
  309. package/fabric-interop/dist/components/ViroAnimatedImage.js +0 -51
  310. package/fabric-interop/dist/components/ViroAnimatedImage.js.map +0 -1
  311. package/fabric-interop/dist/components/ViroBox.d.ts +0 -21
  312. package/fabric-interop/dist/components/ViroBox.d.ts.map +0 -1
  313. package/fabric-interop/dist/components/ViroBox.js +0 -49
  314. package/fabric-interop/dist/components/ViroBox.js.map +0 -1
  315. package/fabric-interop/dist/components/ViroButton.d.ts +0 -33
  316. package/fabric-interop/dist/components/ViroButton.d.ts.map +0 -1
  317. package/fabric-interop/dist/components/ViroButton.js +0 -94
  318. package/fabric-interop/dist/components/ViroButton.js.map +0 -1
  319. package/fabric-interop/dist/components/ViroCamera.d.ts +0 -18
  320. package/fabric-interop/dist/components/ViroCamera.d.ts.map +0 -1
  321. package/fabric-interop/dist/components/ViroCamera.js +0 -31
  322. package/fabric-interop/dist/components/ViroCamera.js.map +0 -1
  323. package/fabric-interop/dist/components/ViroController.d.ts +0 -20
  324. package/fabric-interop/dist/components/ViroController.d.ts.map +0 -1
  325. package/fabric-interop/dist/components/ViroController.js +0 -65
  326. package/fabric-interop/dist/components/ViroController.js.map +0 -1
  327. package/fabric-interop/dist/components/ViroDirectionalLight.d.ts +0 -29
  328. package/fabric-interop/dist/components/ViroDirectionalLight.d.ts.map +0 -1
  329. package/fabric-interop/dist/components/ViroDirectionalLight.js +0 -57
  330. package/fabric-interop/dist/components/ViroDirectionalLight.js.map +0 -1
  331. package/fabric-interop/dist/components/ViroFlexView.d.ts +0 -37
  332. package/fabric-interop/dist/components/ViroFlexView.d.ts.map +0 -1
  333. package/fabric-interop/dist/components/ViroFlexView.js +0 -98
  334. package/fabric-interop/dist/components/ViroFlexView.js.map +0 -1
  335. package/fabric-interop/dist/components/ViroGeometry.d.ts +0 -24
  336. package/fabric-interop/dist/components/ViroGeometry.d.ts.map +0 -1
  337. package/fabric-interop/dist/components/ViroGeometry.js +0 -52
  338. package/fabric-interop/dist/components/ViroGeometry.js.map +0 -1
  339. package/fabric-interop/dist/components/ViroGlobal.d.ts +0 -46
  340. package/fabric-interop/dist/components/ViroGlobal.d.ts.map +0 -1
  341. package/fabric-interop/dist/components/ViroGlobal.js +0 -21
  342. package/fabric-interop/dist/components/ViroGlobal.js.map +0 -1
  343. package/fabric-interop/dist/components/ViroImage.d.ts +0 -30
  344. package/fabric-interop/dist/components/ViroImage.d.ts.map +0 -1
  345. package/fabric-interop/dist/components/ViroImage.js +0 -54
  346. package/fabric-interop/dist/components/ViroImage.js.map +0 -1
  347. package/fabric-interop/dist/components/ViroLightingEnvironment.d.ts +0 -20
  348. package/fabric-interop/dist/components/ViroLightingEnvironment.d.ts.map +0 -1
  349. package/fabric-interop/dist/components/ViroLightingEnvironment.js +0 -46
  350. package/fabric-interop/dist/components/ViroLightingEnvironment.js.map +0 -1
  351. package/fabric-interop/dist/components/ViroMaterialVideo.d.ts +0 -31
  352. package/fabric-interop/dist/components/ViroMaterialVideo.d.ts.map +0 -1
  353. package/fabric-interop/dist/components/ViroMaterialVideo.js +0 -50
  354. package/fabric-interop/dist/components/ViroMaterialVideo.js.map +0 -1
  355. package/fabric-interop/dist/components/ViroNode.d.ts +0 -37
  356. package/fabric-interop/dist/components/ViroNode.d.ts.map +0 -1
  357. package/fabric-interop/dist/components/ViroNode.js +0 -29
  358. package/fabric-interop/dist/components/ViroNode.js.map +0 -1
  359. package/fabric-interop/dist/components/ViroOmniLight.d.ts +0 -22
  360. package/fabric-interop/dist/components/ViroOmniLight.d.ts.map +0 -1
  361. package/fabric-interop/dist/components/ViroOmniLight.js +0 -50
  362. package/fabric-interop/dist/components/ViroOmniLight.js.map +0 -1
  363. package/fabric-interop/dist/components/ViroOrbitCamera.d.ts +0 -18
  364. package/fabric-interop/dist/components/ViroOrbitCamera.d.ts.map +0 -1
  365. package/fabric-interop/dist/components/ViroOrbitCamera.js +0 -31
  366. package/fabric-interop/dist/components/ViroOrbitCamera.js.map +0 -1
  367. package/fabric-interop/dist/components/ViroParticleEmitter.d.ts +0 -52
  368. package/fabric-interop/dist/components/ViroParticleEmitter.d.ts.map +0 -1
  369. package/fabric-interop/dist/components/ViroParticleEmitter.js +0 -52
  370. package/fabric-interop/dist/components/ViroParticleEmitter.js.map +0 -1
  371. package/fabric-interop/dist/components/ViroPolygon.d.ts +0 -21
  372. package/fabric-interop/dist/components/ViroPolygon.d.ts.map +0 -1
  373. package/fabric-interop/dist/components/ViroPolygon.js +0 -49
  374. package/fabric-interop/dist/components/ViroPolygon.js.map +0 -1
  375. package/fabric-interop/dist/components/ViroPolyline.d.ts +0 -20
  376. package/fabric-interop/dist/components/ViroPolyline.d.ts.map +0 -1
  377. package/fabric-interop/dist/components/ViroPolyline.js +0 -48
  378. package/fabric-interop/dist/components/ViroPolyline.js.map +0 -1
  379. package/fabric-interop/dist/components/ViroPortal.d.ts +0 -17
  380. package/fabric-interop/dist/components/ViroPortal.d.ts.map +0 -1
  381. package/fabric-interop/dist/components/ViroPortal.js +0 -74
  382. package/fabric-interop/dist/components/ViroPortal.js.map +0 -1
  383. package/fabric-interop/dist/components/ViroPortalScene.d.ts +0 -17
  384. package/fabric-interop/dist/components/ViroPortalScene.d.ts.map +0 -1
  385. package/fabric-interop/dist/components/ViroPortalScene.js +0 -30
  386. package/fabric-interop/dist/components/ViroPortalScene.js.map +0 -1
  387. package/fabric-interop/dist/components/ViroQuad.d.ts +0 -40
  388. package/fabric-interop/dist/components/ViroQuad.d.ts.map +0 -1
  389. package/fabric-interop/dist/components/ViroQuad.js +0 -51
  390. package/fabric-interop/dist/components/ViroQuad.js.map +0 -1
  391. package/fabric-interop/dist/components/ViroScene.d.ts +0 -30
  392. package/fabric-interop/dist/components/ViroScene.d.ts.map +0 -1
  393. package/fabric-interop/dist/components/ViroScene.js +0 -105
  394. package/fabric-interop/dist/components/ViroScene.js.map +0 -1
  395. package/fabric-interop/dist/components/ViroSceneNavigator.d.ts +0 -24
  396. package/fabric-interop/dist/components/ViroSceneNavigator.d.ts.map +0 -1
  397. package/fabric-interop/dist/components/ViroSceneNavigator.js +0 -74
  398. package/fabric-interop/dist/components/ViroSceneNavigator.js.map +0 -1
  399. package/fabric-interop/dist/components/ViroSkyBox.d.ts +0 -40
  400. package/fabric-interop/dist/components/ViroSkyBox.d.ts.map +0 -1
  401. package/fabric-interop/dist/components/ViroSkyBox.js +0 -46
  402. package/fabric-interop/dist/components/ViroSkyBox.js.map +0 -1
  403. package/fabric-interop/dist/components/ViroSound.d.ts +0 -24
  404. package/fabric-interop/dist/components/ViroSound.d.ts.map +0 -1
  405. package/fabric-interop/dist/components/ViroSound.js +0 -48
  406. package/fabric-interop/dist/components/ViroSound.js.map +0 -1
  407. package/fabric-interop/dist/components/ViroSoundField.d.ts +0 -25
  408. package/fabric-interop/dist/components/ViroSoundField.d.ts.map +0 -1
  409. package/fabric-interop/dist/components/ViroSoundField.js +0 -49
  410. package/fabric-interop/dist/components/ViroSoundField.js.map +0 -1
  411. package/fabric-interop/dist/components/ViroSpatialSound.d.ts +0 -28
  412. package/fabric-interop/dist/components/ViroSpatialSound.d.ts.map +0 -1
  413. package/fabric-interop/dist/components/ViroSpatialSound.js +0 -52
  414. package/fabric-interop/dist/components/ViroSpatialSound.js.map +0 -1
  415. package/fabric-interop/dist/components/ViroSphere.d.ts +0 -23
  416. package/fabric-interop/dist/components/ViroSphere.d.ts.map +0 -1
  417. package/fabric-interop/dist/components/ViroSphere.js +0 -51
  418. package/fabric-interop/dist/components/ViroSphere.js.map +0 -1
  419. package/fabric-interop/dist/components/ViroSpinner.d.ts +0 -19
  420. package/fabric-interop/dist/components/ViroSpinner.d.ts.map +0 -1
  421. package/fabric-interop/dist/components/ViroSpinner.js +0 -47
  422. package/fabric-interop/dist/components/ViroSpinner.js.map +0 -1
  423. package/fabric-interop/dist/components/ViroSpotLight.d.ts +0 -31
  424. package/fabric-interop/dist/components/ViroSpotLight.d.ts.map +0 -1
  425. package/fabric-interop/dist/components/ViroSpotLight.js +0 -59
  426. package/fabric-interop/dist/components/ViroSpotLight.js.map +0 -1
  427. package/fabric-interop/dist/components/ViroSurface.d.ts +0 -39
  428. package/fabric-interop/dist/components/ViroSurface.d.ts.map +0 -1
  429. package/fabric-interop/dist/components/ViroSurface.js +0 -50
  430. package/fabric-interop/dist/components/ViroSurface.js.map +0 -1
  431. package/fabric-interop/dist/components/ViroText.d.ts +0 -37
  432. package/fabric-interop/dist/components/ViroText.d.ts.map +0 -1
  433. package/fabric-interop/dist/components/ViroText.js +0 -61
  434. package/fabric-interop/dist/components/ViroText.js.map +0 -1
  435. package/fabric-interop/dist/components/ViroUtils.d.ts +0 -64
  436. package/fabric-interop/dist/components/ViroUtils.d.ts.map +0 -1
  437. package/fabric-interop/dist/components/ViroUtils.js +0 -141
  438. package/fabric-interop/dist/components/ViroUtils.js.map +0 -1
  439. package/fabric-interop/dist/components/ViroVRSceneNavigator.d.ts +0 -26
  440. package/fabric-interop/dist/components/ViroVRSceneNavigator.d.ts.map +0 -1
  441. package/fabric-interop/dist/components/ViroVRSceneNavigator.js +0 -74
  442. package/fabric-interop/dist/components/ViroVRSceneNavigator.js.map +0 -1
  443. package/fabric-interop/dist/components/ViroVideo.d.ts +0 -33
  444. package/fabric-interop/dist/components/ViroVideo.d.ts.map +0 -1
  445. package/fabric-interop/dist/components/ViroVideo.js +0 -54
  446. package/fabric-interop/dist/components/ViroVideo.js.map +0 -1
  447. package/fabric-interop/dist/components/index.d.ts +0 -63
  448. package/fabric-interop/dist/components/index.d.ts.map +0 -1
  449. package/fabric-interop/dist/components/index.js +0 -145
  450. package/fabric-interop/dist/components/index.js.map +0 -1
  451. package/fabric-interop/dist/index.d.ts +0 -15
  452. package/fabric-interop/dist/index.d.ts.map +0 -1
  453. package/fabric-interop/dist/index.js +0 -118
  454. package/fabric-interop/dist/index.js.map +0 -1
  455. package/fabric-interop/dist/specs/ViroEventsTurboModule.d.ts +0 -20
  456. package/fabric-interop/dist/specs/ViroEventsTurboModule.d.ts.map +0 -1
  457. package/fabric-interop/dist/specs/ViroEventsTurboModule.js +0 -12
  458. package/fabric-interop/dist/specs/ViroEventsTurboModule.js.map +0 -1
  459. package/fabric-interop/examples/BasicSceneExample.tsx +0 -287
  460. package/fabric-interop/examples/ComprehensiveExample.tsx +0 -441
  461. package/fabric-interop/examples/SimpleARExample.tsx +0 -95
  462. package/fabric-interop/global.d.ts +0 -14
  463. package/fabric-interop/index.ts +0 -107
  464. package/fabric-interop/metro.config.js +0 -12
  465. package/fabric-interop/package.json +0 -40
  466. package/fabric-interop/react-native.config.js +0 -22
  467. package/fabric-interop/scripts/validate-build.js +0 -393
  468. package/fabric-interop/scripts/validate-implementation.js +0 -272
  469. package/fabric-interop/specs/README.md +0 -22
  470. package/fabric-interop/specs/ViroEventsTurboModule.ts +0 -27
  471. package/fabric-interop/test/BasicFunctionalityTest.tsx +0 -243
  472. package/fabric-interop/tsconfig.json +0 -38
  473. package/fabric.d.ts +0 -5
  474. package/fabric.ts +0 -14
  475. package/scripts/copy-types.js +0 -46
@@ -1 +0,0 @@
1
- {"version":3,"file":"Viro3DObject.d.ts","sourceRoot":"","sources":["../../components/Viro3DObject.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,eAAe,EAIhB,MAAM,aAAa,CAAC;AAGrB,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IAExD,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM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AAM,CAAC,EAAE,MAAM,EAAE,CAAC;SACnB,CAAC;QACF,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QACpC,KAAK,CAAC,EAAE;YACN,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;YAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;SACpC,CAAC;QACF,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;KACnC,CAAC;IAGF,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwCpD,CAAC"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /**
3
- * Viro3DObject
4
- *
5
- * A component for loading and displaying 3D models in various formats.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Viro3DObject = void 0;
9
- const ViroUtils_1 = require("./ViroUtils");
10
- /**
11
- * Viro3DObject is a component for loading and displaying 3D models in various formats.
12
- */
13
- const Viro3DObject = (props) => {
14
- var _a;
15
- // Convert common props to the format expected by the native code
16
- const nativeProps = {
17
- ...(0, ViroUtils_1.convertCommonProps)(props),
18
- source: props.source,
19
- resources: props.resources,
20
- type: props.type,
21
- materials: props.materials,
22
- morphTargets: props.morphTargets,
23
- lightReceivingBitMask: props.lightReceivingBitMask,
24
- shadowCastingBitMask: props.shadowCastingBitMask,
25
- highAccuracyEvents: props.highAccuracyEvents,
26
- physicsBody: props.physicsBody,
27
- };
28
- // Create the node (parent will be determined by context)
29
- const nodeId = (0, ViroUtils_1.useViroNode)("object", nativeProps);
30
- // Register event handlers using our new event system
31
- (0, ViroUtils_1.useViroEventListeners)(nodeId, {
32
- onHover: props.onHover,
33
- onClick: props.onClick,
34
- onClickState: props.onClickState,
35
- onTouch: props.onTouch,
36
- onScroll: props.onScroll,
37
- onSwipe: props.onSwipe,
38
- onDrag: props.onDrag,
39
- onPinch: props.onPinch,
40
- onRotate: props.onRotate,
41
- onFuse: typeof props.onFuse === "function"
42
- ? props.onFuse
43
- : (_a = props.onFuse) === null || _a === void 0 ? void 0 : _a.callback,
44
- onCollision: props.onCollision,
45
- onTransformUpdate: props.onTransformUpdate,
46
- });
47
- // Component doesn't have children, so just return null
48
- return null;
49
- };
50
- exports.Viro3DObject = Viro3DObject;
51
- //# sourceMappingURL=Viro3DObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Viro3DObject.js","sourceRoot":"","sources":["../../components/Viro3DObject.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,2CAKqB;AAkErB;;GAEG;AACI,MAAM,YAAY,GAAgC,CAAC,KAAK,EAAE,EAAE;;IACjE,iEAAiE;IACjE,MAAM,WAAW,GAAG;QAClB,GAAG,IAAA,8BAAkB,EAAC,KAAK,CAAC;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,qBAAqB,EAAE,KAAK,CAAC,qBAAqB;QAClD,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;QAChD,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;QAC5C,WAAW,EAAE,KAAK,CAAC,WAAW;KAC/B,CAAC;IAEF,yDAAyD;IACzD,MAAM,MAAM,GAAG,IAAA,uBAAW,EAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IAGlD,qDAAqD;IACrD,IAAA,iCAAqB,EAAC,MAAM,EAAE;QAC5B,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,MAAM,EACJ,OAAO,KAAK,CAAC,MAAM,KAAK,UAAU;YAChC,CAAC,CAAC,KAAK,CAAC,MAAM;YACd,CAAC,CAAC,MAAA,KAAK,CAAC,MAAM,0CAAE,QAAQ;QAC5B,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;KAC3C,CAAC,CAAC;IAEH,uDAAuD;IACvD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAxCW,QAAA,YAAY,gBAwCvB"}
@@ -1,50 +0,0 @@
1
- /**
2
- * Viro3DSceneNavigator
3
- *
4
- * Component for transitioning between multiple scenes in a 3D environment.
5
- */
6
- import * as React from "react";
7
- import { ViewProps } from "react-native";
8
- import { ViroScene } from "./ViroScene";
9
- type Props = ViewProps & {
10
- /**
11
- * initial scene key
12
- */
13
- initialSceneKey?: string;
14
- /**
15
- * A flag to enable/disable some debug features
16
- */
17
- debug?: boolean;
18
- viroAppProps?: any;
19
- /**
20
- * ViroSceneNavigator uses "scene" objects like the following to
21
- * describe a scene.
22
- */
23
- initialScene: {
24
- /**
25
- * The React Component to render for this scene.
26
- */
27
- scene: typeof ViroScene;
28
- passProps?: any;
29
- };
30
- /**
31
- * Called when either the user physically decides to exit vr (hits
32
- * the "X" button).
33
- */
34
- onExitViro?: () => void;
35
- /**
36
- * Renderer settings that can be used to enable or disable various
37
- * renderer capabilities and algorithms.
38
- */
39
- hdrEnabled?: boolean;
40
- pbrEnabled?: boolean;
41
- bloomEnabled?: boolean;
42
- shadowsEnabled?: boolean;
43
- multisamplingEnabled?: boolean;
44
- };
45
- /**
46
- * Viro3DSceneNavigator is used to transition between multiple scenes.
47
- */
48
- export declare function Viro3DSceneNavigator(props: Props): React.ReactElement;
49
- export {};
50
- //# sourceMappingURL=Viro3DSceneNavigator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Viro3DSceneNavigator.d.ts","sourceRoot":"","sources":["../../components/Viro3DSceneNavigator.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,KAAK,KAAK,GAAG,SAAS,GAAG;IACvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,YAAY,CAAC,EAAE,GAAG,CAAC;IAEnB;;;OAGG;IACH,YAAY,EAAE;QACZ;;WAEG;QACH,KAAK,EAAE,OAAO,SAAS,CAAC;QACxB,SAAS,CAAC,EAAE,GAAG,CAAC;KACjB,CAAC;IAEF;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA+arE"}
@@ -1,389 +0,0 @@
1
- "use strict";
2
- /**
3
- * Viro3DSceneNavigator
4
- *
5
- * Component for transitioning between multiple scenes in a 3D environment.
6
- */
7
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
- if (k2 === undefined) k2 = k;
9
- var desc = Object.getOwnPropertyDescriptor(m, k);
10
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
- desc = { enumerable: true, get: function() { return m[k]; } };
12
- }
13
- Object.defineProperty(o, k2, desc);
14
- }) : (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- o[k2] = m[k];
17
- }));
18
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
19
- Object.defineProperty(o, "default", { enumerable: true, value: v });
20
- }) : function(o, v) {
21
- o["default"] = v;
22
- });
23
- var __importStar = (this && this.__importStar) || (function () {
24
- var ownKeys = function(o) {
25
- ownKeys = Object.getOwnPropertyNames || function (o) {
26
- var ar = [];
27
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
28
- return ar;
29
- };
30
- return ownKeys(o);
31
- };
32
- return function (mod) {
33
- if (mod && mod.__esModule) return mod;
34
- var result = {};
35
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
36
- __setModuleDefault(result, mod);
37
- return result;
38
- };
39
- })();
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.Viro3DSceneNavigator = Viro3DSceneNavigator;
42
- const React = __importStar(require("react"));
43
- const react_1 = require("react");
44
- const react_native_1 = require("react-native");
45
- const NativeViro_1 = require("../NativeViro");
46
- const ViroGlobal_1 = require("./ViroGlobal");
47
- /**
48
- * Viro3DSceneNavigator is used to transition between multiple scenes.
49
- */
50
- function Viro3DSceneNavigator(props) {
51
- const { initialSceneKey, initialScene, viroAppProps, onExitViro, debug = false, hdrEnabled, pbrEnabled, bloomEnabled, shadowsEnabled, multisamplingEnabled, style, ...rest } = props;
52
- // Generate a random tag for scenes
53
- const mathRandomOffsetRef = (0, react_1.useRef)(0);
54
- const getRandomTag = () => {
55
- const randomTag = Math.random() + mathRandomOffsetRef.current;
56
- mathRandomOffsetRef.current++;
57
- return randomTag.toString();
58
- };
59
- // Initialize state
60
- const initialTag = initialSceneKey || getRandomTag();
61
- const initialSceneObj = {
62
- sceneClass: initialScene,
63
- tag: initialTag,
64
- referenceCount: 1,
65
- };
66
- const [sceneDictionary, setSceneDictionary] = (0, react_1.useState)({
67
- [initialTag]: initialSceneObj,
68
- });
69
- const [sceneHistory, setSceneHistory] = (0, react_1.useState)([initialTag]);
70
- const [currentSceneIndex, setCurrentSceneIndex] = (0, react_1.useState)(0);
71
- // Create a ref for the navigator node
72
- const navigatorRef = (0, react_1.useRef)((0, NativeViro_1.generateNodeId)());
73
- // Set up event listeners
74
- (0, react_1.useEffect)(() => {
75
- if (!navigatorRef.current)
76
- return;
77
- const exitViroCallbackId = onExitViro
78
- ? (0, NativeViro_1.registerEventListener)(navigatorRef.current, "onExitViro", () => {
79
- onExitViro();
80
- })
81
- : null;
82
- // Clean up event listeners
83
- return () => {
84
- if (exitViroCallbackId) {
85
- (0, NativeViro_1.unregisterEventListener)(navigatorRef.current, "onExitViro", exitViroCallbackId);
86
- }
87
- };
88
- }, [navigatorRef.current, onExitViro]);
89
- /**
90
- * Increments the reference count for a scene within sceneDictionary that is
91
- * mapped to the given sceneKey. If no scenes are found / mapped, we create
92
- * one, initialize it with a reference count of 1, and store it within the
93
- * sceneDictionary for future reference.
94
- */
95
- const incrementSceneReference = (scene, sceneKey, limitOne) => {
96
- setSceneDictionary((prevDictionary) => {
97
- const newDictionary = { ...prevDictionary };
98
- if (!(sceneKey in newDictionary)) {
99
- const newScene = {
100
- sceneClass: scene,
101
- tag: sceneKey,
102
- referenceCount: 0,
103
- };
104
- newDictionary[sceneKey] = newScene;
105
- }
106
- // Error out if there are no scenes matching the given sceneKey
107
- const currentScene = newDictionary[sceneKey];
108
- if (!currentScene) {
109
- console.log("ERROR: No scene found for: " + sceneKey);
110
- return prevDictionary;
111
- }
112
- // Update the scene's reference count
113
- if ((limitOne && currentScene.referenceCount < 1) || !limitOne) {
114
- currentScene.referenceCount++;
115
- }
116
- newDictionary[sceneKey] = currentScene;
117
- return newDictionary;
118
- });
119
- };
120
- /**
121
- * Decrements the reference count for the last N scenes within
122
- * the sceneHistory by 1. If nothing else references that given scene
123
- * (counts equals 0), we then remove that scene from sceneDictionary.
124
- */
125
- const decrementReferenceForLastNScenes = (n) => {
126
- setSceneDictionary((prevDictionary) => {
127
- const newDictionary = { ...prevDictionary };
128
- // Now update and release any reference counts
129
- for (let i = 1; i <= n; i++) {
130
- const sceneTag = sceneHistory[sceneHistory.length - i];
131
- const scene = newDictionary[sceneTag];
132
- if (!scene)
133
- continue;
134
- scene.referenceCount--;
135
- if (scene.referenceCount <= 0) {
136
- delete newDictionary[sceneTag];
137
- }
138
- else {
139
- newDictionary[sceneTag] = scene;
140
- }
141
- }
142
- return newDictionary;
143
- });
144
- };
145
- /**
146
- * Adds the given sceneKey to the sceneHistory and updates the currentSceneIndex to point
147
- * to the scene on the top of the history stack (the most recent scene).
148
- */
149
- const addToHistory = (sceneKey) => {
150
- setSceneHistory((prevHistory) => [...prevHistory, sceneKey]);
151
- // Find the index of the scene in the dictionary
152
- let index = 0;
153
- for (const key in sceneDictionary) {
154
- if (sceneKey === sceneDictionary[key].tag) {
155
- setCurrentSceneIndex(index);
156
- break;
157
- }
158
- index++;
159
- }
160
- };
161
- /**
162
- * Instead of preserving history, we find the last pushed sceneKey within the history stack
163
- * matching the given sceneKey and re-order it to the front.
164
- */
165
- const reorderHistory = (sceneKey) => {
166
- setSceneHistory((prevHistory) => {
167
- // Find the last sceneKey within sceneHistory and remove it
168
- const newHistory = [...prevHistory];
169
- for (let i = newHistory.length - 1; i >= 0; i--) {
170
- if (sceneKey === newHistory[i]) {
171
- newHistory.splice(i, 1);
172
- break;
173
- }
174
- }
175
- // Add back the sceneKey to the front of the History stack
176
- return [...newHistory, sceneKey];
177
- });
178
- // Find the index of the scene in the dictionary
179
- let index = 0;
180
- for (const key in sceneDictionary) {
181
- if (sceneKey === sceneDictionary[key].tag) {
182
- setCurrentSceneIndex(index);
183
- break;
184
- }
185
- index++;
186
- }
187
- };
188
- /**
189
- * Removes the last N scenes from the history stack
190
- */
191
- const popHistoryByN = (n) => {
192
- setSceneHistory((prevHistory) => {
193
- const newHistory = [...prevHistory];
194
- newHistory.splice(newHistory.length - n, n);
195
- // Find the index of the last scene in the dictionary
196
- if (newHistory.length > 0) {
197
- const lastSceneTag = newHistory[newHistory.length - 1];
198
- let index = 0;
199
- for (const key in sceneDictionary) {
200
- if (lastSceneTag === sceneDictionary[key].tag) {
201
- setCurrentSceneIndex(index);
202
- break;
203
- }
204
- index++;
205
- }
206
- }
207
- return newHistory;
208
- });
209
- };
210
- /**
211
- * Pushes a scene and reference it with the given key if provided.
212
- */
213
- const push = (param1, param2) => {
214
- let sceneKey = undefined;
215
- let scene = undefined;
216
- if (typeof param1 === "string") {
217
- sceneKey = param1;
218
- scene = param2;
219
- }
220
- else {
221
- scene = param1;
222
- }
223
- if (scene === undefined && sceneKey === undefined) {
224
- console.log("ERROR: pushing requires either the scene tag, or both the tag and scene.");
225
- return;
226
- }
227
- else if (scene === undefined &&
228
- sceneKey !== undefined &&
229
- !(sceneKey in sceneDictionary)) {
230
- console.log("ERROR: Cannot push with a new sceneKey with no associated scene.");
231
- return;
232
- }
233
- if (sceneKey === undefined ||
234
- (typeof sceneKey === "string" && sceneKey.trim().length <= 0)) {
235
- sceneKey = getRandomTag();
236
- }
237
- incrementSceneReference(scene, sceneKey, false);
238
- addToHistory(sceneKey);
239
- };
240
- /**
241
- * Replace the top scene in the stack with the given scene.
242
- */
243
- const replace = (param1, param2) => {
244
- let sceneKey = undefined;
245
- let scene = undefined;
246
- if (typeof param1 === "string") {
247
- sceneKey = param1;
248
- scene = param2;
249
- }
250
- else {
251
- scene = param1;
252
- }
253
- if (scene === undefined && sceneKey === undefined) {
254
- console.log("ERROR: replacing requires either the scene tag, or both the tag and scene.");
255
- return;
256
- }
257
- else if (scene === undefined &&
258
- sceneKey !== undefined &&
259
- !(sceneKey in sceneDictionary)) {
260
- console.log("ERROR: Cannot replace with a new sceneKey with no associated scene.");
261
- return;
262
- }
263
- if (sceneKey === undefined ||
264
- (typeof sceneKey === "string" && sceneKey.trim().length <= 0)) {
265
- sceneKey = getRandomTag();
266
- }
267
- // Pop 1 off the scene history, then push this scene
268
- decrementReferenceForLastNScenes(1);
269
- popHistoryByN(1);
270
- incrementSceneReference(scene, sceneKey, false);
271
- addToHistory(sceneKey);
272
- };
273
- /**
274
- * Jumps to a given scene that had been previously pushed.
275
- */
276
- const jump = (param1, param2) => {
277
- let sceneKey = undefined;
278
- let scene = undefined;
279
- if (typeof param1 === "string") {
280
- sceneKey = param1;
281
- scene = param2;
282
- }
283
- else {
284
- scene = param1;
285
- }
286
- if (scene === undefined && sceneKey === undefined) {
287
- console.log("ERROR: jumping requires either the scene tag, or both the tag and scene.");
288
- return;
289
- }
290
- else if (scene === undefined &&
291
- sceneKey !== undefined &&
292
- !(sceneKey in sceneDictionary)) {
293
- console.log("ERROR: Cannot jump with a new sceneKey with no associated scene.");
294
- return;
295
- }
296
- if (sceneKey === undefined ||
297
- (typeof sceneKey === "string" && sceneKey.trim().length <= 0)) {
298
- sceneKey = getRandomTag();
299
- }
300
- incrementSceneReference(scene, sceneKey, true);
301
- reorderHistory(sceneKey);
302
- };
303
- /**
304
- * Pops the current scene from the stack
305
- */
306
- const pop = () => {
307
- popN(1);
308
- };
309
- /**
310
- * Pops N scenes from the stack
311
- */
312
- const popN = (n) => {
313
- if (n === 0) {
314
- return;
315
- }
316
- if (sceneHistory.length - n <= 0) {
317
- console.log("WARN: Attempted to pop the root scene in ViroSceneNavigator!");
318
- return;
319
- }
320
- decrementReferenceForLastNScenes(n);
321
- popHistoryByN(n);
322
- };
323
- /**
324
- * Recenter the tracking
325
- */
326
- const recenterTracking = () => {
327
- const nativeViro = (0, ViroGlobal_1.getNativeViro)();
328
- if (nativeViro && navigatorRef.current) {
329
- nativeViro.recenterTracking(navigatorRef.current);
330
- }
331
- };
332
- /**
333
- * Project a 3D point to screen space
334
- */
335
- const project = async (point) => {
336
- const nativeViro = (0, ViroGlobal_1.getNativeViro)();
337
- if (nativeViro && navigatorRef.current) {
338
- return await nativeViro.project(navigatorRef.current, point);
339
- }
340
- return null;
341
- };
342
- /**
343
- * Unproject a screen point to 3D space
344
- */
345
- const unproject = async (point) => {
346
- const nativeViro = (0, ViroGlobal_1.getNativeViro)();
347
- if (nativeViro && navigatorRef.current) {
348
- return await nativeViro.unproject(navigatorRef.current, point);
349
- }
350
- return null;
351
- };
352
- // Create the sceneNavigator object to pass to scenes
353
- const sceneNavigator = {
354
- push,
355
- pop,
356
- popN,
357
- jump,
358
- replace,
359
- recenterTracking,
360
- project,
361
- unproject,
362
- viroAppProps: viroAppProps || {},
363
- };
364
- // Render the scenes
365
- const renderScenes = () => {
366
- const views = [];
367
- let i = 0;
368
- for (const key in sceneDictionary) {
369
- const sceneInfo = sceneDictionary[key];
370
- const Component = sceneInfo.sceneClass.scene;
371
- const passProps = sceneInfo.sceneClass.passProps || {};
372
- views.push(<Component key={`scene${i}`} sceneNavigator={sceneNavigator} {...passProps}/>);
373
- i++;
374
- }
375
- return views;
376
- };
377
- // Render the navigator
378
- return (<react_native_1.View style={[styles.container, style]} {...rest}>
379
- {renderScenes()}
380
- </react_native_1.View>);
381
- }
382
- const styles = react_native_1.StyleSheet.create({
383
- container: {
384
- flex: 1,
385
- justifyContent: "center",
386
- alignItems: "center",
387
- },
388
- });
389
- //# sourceMappingURL=Viro3DSceneNavigator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Viro3DSceneNavigator.js","sourceRoot":"","sources":["../../components/Viro3DSceneNavigator.tsx"],"names":[],"mappings":";A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I;QACJ,OAAO;QACP,gBAAgB;QAChB,OAAO;QACP,SAAS;QACT,YAAY,EAAE,YAAY,IAAI,EAAE;KACjC,CAAC;IAEF,oBAAoB;IACpB,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,GAAG,CAAC,CAAC;QAEV,KAAK,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YAClC,MAAM,SAAS,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;YACvC,MAAM,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC;YAC7C,MAAM,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,SAAS,IAAI,EAAE,CAAC;YAEvD,KAAK,CAAC,IAAI,CACR,CAAC,SAAS,CACR,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CACjB,cAAc,CAAC,CAAC,cAAc,CAAC,CAC/B,IAAI,SAAS,CAAC,EACd,CACH,CAAC;YACF,CAAC,EAAE,CAAC;QACN,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,uBAAuB;IACvB,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAC/C;MAAA,CAAC,YAAY,EAAE,CACjB;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;CACF,CAAC,CAAC"}
@@ -1,30 +0,0 @@
1
- /**
2
- * ViroARCamera
3
- *
4
- * A component for controlling the camera in an AR scene.
5
- */
6
- import React from "react";
7
- import { ViroCommonProps } from "./ViroUtils";
8
- export type ViroARCameraTransformUpdateEvent = {
9
- position: [number, number, number];
10
- rotation: [number, number, number];
11
- forward: [number, number, number];
12
- up: [number, number, number];
13
- };
14
- export type ViroARTrackingStateEvent = {
15
- state: "NORMAL" | "LIMITED" | "NOT_AVAILABLE";
16
- reason?: "NONE" | "INITIALIZING" | "EXCESSIVE_MOTION" | "INSUFFICIENT_FEATURES";
17
- };
18
- export interface ViroARCameraProps extends Omit<ViroCommonProps, "onTransformUpdate"> {
19
- active?: boolean;
20
- onTransformUpdate?: (event: ViroARCameraTransformUpdateEvent) => void;
21
- onTrackingUpdated?: (event: ViroARTrackingStateEvent) => void;
22
- children?: React.ReactNode;
23
- }
24
- /**
25
- * ViroARCamera is a component for controlling the camera in an AR scene.
26
- * It provides information about the camera's position and orientation in the real world,
27
- * as well as tracking state updates.
28
- */
29
- export declare const ViroARCamera: React.FC<ViroARCameraProps>;
30
- //# sourceMappingURL=ViroARCamera.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViroARCamera.d.ts","sourceRoot":"","sources":["../../components/ViroARCamera.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,eAAe,EAKhB,MAAM,aAAa,CAAC;AAIrB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B,CAAC;AAGF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,eAAe,CAAC;IAC9C,MAAM,CAAC,EACH,MAAM,GACN,cAAc,GACd,kBAAkB,GAClB,uBAAuB,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,mBAAmB,CAAC;IAElD,MAAM,CAAC,EAAE,OAAO,CAAC;IAGjB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,CAAC;IACtE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAG9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoDpD,CAAC"}
@@ -1,65 +0,0 @@
1
- "use strict";
2
- /**
3
- * ViroARCamera
4
- *
5
- * A component for controlling the camera in an AR scene.
6
- */
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.ViroARCamera = void 0;
12
- const react_1 = __importDefault(require("react"));
13
- const ViroUtils_1 = require("./ViroUtils");
14
- const ViroGlobal_1 = require("./ViroGlobal");
15
- /**
16
- * ViroARCamera is a component for controlling the camera in an AR scene.
17
- * It provides information about the camera's position and orientation in the real world,
18
- * as well as tracking state updates.
19
- */
20
- const ViroARCamera = (props) => {
21
- // Convert common props to the format expected by the native code
22
- const nativeProps = {
23
- ...(0, ViroUtils_1.convertCommonProps)(props),
24
- active: props.active,
25
- };
26
- // Create the node (parent will be determined by context)
27
- const nodeId = (0, ViroUtils_1.useViroNode)("arCamera", nativeProps);
28
- // Register event handlers
29
- react_1.default.useEffect(() => {
30
- const nativeViro = (0, ViroGlobal_1.getNativeViro)();
31
- if (!nativeViro)
32
- return;
33
- const eventHandlers = [
34
- { name: "onTransformUpdate", handler: props.onTransformUpdate },
35
- { name: "onTrackingUpdated", handler: props.onTrackingUpdated },
36
- ];
37
- // Register all event handlers and store callback IDs for cleanup
38
- const registeredCallbacks = eventHandlers
39
- .filter(({ handler }) => !!handler)
40
- .map(({ name, handler }) => {
41
- const callbackId = `${nodeId}_${name}`;
42
- // Register the callback in the global registry
43
- if (typeof global !== "undefined" && global.registerViroEventCallback) {
44
- global.registerViroEventCallback(callbackId, handler);
45
- }
46
- // Register with native code
47
- nativeViro.registerEventCallback(nodeId, name, callbackId);
48
- return { name, callbackId };
49
- });
50
- // Cleanup when unmounting
51
- return () => {
52
- const nativeViro = (0, ViroGlobal_1.getNativeViro)();
53
- if (!nativeViro)
54
- return;
55
- // Unregister all event handlers
56
- registeredCallbacks.forEach(({ name, callbackId }) => {
57
- nativeViro.unregisterEventCallback(nodeId, name, callbackId);
58
- });
59
- };
60
- }, [nodeId, props.onTransformUpdate, props.onTrackingUpdated]);
61
- // Render children with this AR camera as their parent
62
- return (<ViroUtils_1.ViroContextProvider value={nodeId}>{props.children}</ViroUtils_1.ViroContextProvider>);
63
- };
64
- exports.ViroARCamera = ViroARCamera;
65
- //# sourceMappingURL=ViroARCamera.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViroARCamera.js","sourceRoot":"","sources":["../../components/ViroARCamera.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,kDAA0B;AAC1B,2CAMqB;AACrB,6CAA6C;AAiC7C;;;;GAIG;AACI,MAAM,YAAY,GAAgC,CAAC,KAAK,EAAE,EAAE;IACjE,iEAAiE;IACjE,MAAM,WAAW,GAAG;QAClB,GAAG,IAAA,8BAAkB,EAAC,KAAK,CAAC;QAC5B,MAAM,EAAE,KAAK,CAAC,MAAM;KACrB,CAAC;IAEF,yDAAyD;IACzD,MAAM,MAAM,GAAG,IAAA,uBAAW,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAEpD,0BAA0B;IAC1B,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,UAAU,GAAG,IAAA,0BAAa,GAAE,CAAC;QACnC,IAAI,CAAC,UAAU;YAAE,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sDAAsD;IACtD,OAAO,CACL,CAAC,+BAAmB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,+BAAmB,CAAC,CAC3E,CAAC;AACJ,CAAC,CAAC;AApDW,QAAA,YAAY,gBAoDvB"}
@@ -1,22 +0,0 @@
1
- /**
2
- * ViroARImageMarker
3
- *
4
- * A component for detecting and tracking images in the real world.
5
- */
6
- import React from "react";
7
- import { ViroCommonProps } from "./ViroUtils";
8
- export interface ViroARImageMarkerProps extends ViroCommonProps {
9
- target: string;
10
- visible?: boolean;
11
- opacity?: number;
12
- onAnchorFound?: () => void;
13
- onAnchorUpdated?: () => void;
14
- onAnchorRemoved?: () => void;
15
- children?: React.ReactNode;
16
- }
17
- /**
18
- * ViroARImageMarker is a component for detecting and tracking images in the real world.
19
- * It allows you to attach virtual content to real-world images, such as posters, book covers, or logos.
20
- */
21
- export declare const ViroARImageMarker: React.FC<ViroARImageMarkerProps>;
22
- //# sourceMappingURL=ViroARImageMarker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViroARImageMarker.d.ts","sourceRoot":"","sources":["../../components/ViroARImageMarker.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,eAAe,EAKhB,MAAM,aAAa,CAAC;AAGrB,MAAM,WAAW,sBAAuB,SAAQ,eAAe;IAE7D,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAG7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA4D9D,CAAC"}