@reactvision/react-viro 2.43.1 → 2.43.4
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.
- package/README.md +14 -11
- package/android/react_viro/react_viro-release.aar +0 -0
- package/android/viro_renderer/viro_renderer-release.aar +0 -0
- package/components/AR/ViroARPlaneSelector.tsx +1 -1
- package/components/AR/ViroARSceneNavigator.tsx +16 -17
- package/components/Utilities/ViroVersion.ts +1 -1
- package/components/ViroVRSceneNavigator.tsx +1 -1
- package/dist/components/AR/ViroARPlaneSelector.d.ts +1 -1
- package/dist/components/AR/ViroARSceneNavigator.d.ts +9 -9
- package/dist/components/AR/ViroARSceneNavigator.js +11 -11
- package/dist/components/Utilities/ViroVersion.d.ts +1 -1
- package/dist/components/Utilities/ViroVersion.js +1 -1
- package/dist/components/ViroVRSceneNavigator.d.ts +1 -1
- package/dist/dynamic-index.js +2 -2
- package/dist/plugins/withViroAndroid.js +20 -60
- package/ios/ViroReact.podspec +7 -9
- package/ios/dist/ViroRenderer/ViroKit.framework/Headers/VROBodyMesher.h +1 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/Headers/VROVideoTextureCache.h +1 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/Headers/ViroKit.h +11 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/Info.plist +0 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/ViroKit +0 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/bodymesh.mlmodelc/metadata.json +14 -11
- package/ios/dist/ViroRenderer/ViroKit.framework/hourglass_2_1.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/ViroKit.framework/hourglass_2_1_ds_t.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/ViroKit.framework/hourglass_2_1_t.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/ViroKit.podspec +4 -4
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Headers/VROBodyMesher.h +1 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Headers/VROVideoTextureCache.h +1 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Headers/ViroKit.h +11 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Info.plist +0 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/ViroKit +0 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/bodymesh.mlmodelc/metadata.json +14 -11
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/hourglass_2_1.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/hourglass_2_1_ds_t.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/hourglass_2_1_t.mlmodelc/metadata.json +12 -9
- package/ios/dist/armv7_arm64/libViroReact.a +0 -0
- package/ios/dist/include/VRTFabricCrashFix.h +16 -0
- package/ios/dist/lib/libViroReact.a +0 -0
- package/package.json +13 -20
- package/dist/components/Telemetry/ViroTelemetry.d.ts +0 -16
- package/dist/components/Telemetry/ViroTelemetry.js +0 -87
- package/dist/components/Telemetry/index.d.ts +0 -16
- package/dist/components/Telemetry/index.js +0 -97
- package/dist/examples/AutoDetectionExample.d.ts +0 -10
- package/dist/examples/AutoDetectionExample.js +0 -91
- package/dist/fabric-interop/NativeViro.d.ts +0 -42
- package/dist/fabric-interop/NativeViro.js +0 -262
- package/dist/fabric-interop/ViroEventsManager.d.ts +0 -83
- package/dist/fabric-interop/ViroEventsManager.js +0 -222
- package/dist/fabric-interop/ViroFabricContainer.d.ts +0 -34
- package/dist/fabric-interop/ViroFabricContainer.js +0 -200
- package/dist/fabric-interop/android/src/main/js/specs/ViroFabricContainerViewNativeComponent.d.ts +0 -35
- package/dist/fabric-interop/android/src/main/js/specs/ViroFabricContainerViewNativeComponent.js +0 -20
- package/dist/fabric-interop/components/AR/ViroARPlane.d.ts +0 -22
- package/dist/fabric-interop/components/AR/ViroARPlane.js +0 -95
- package/dist/fabric-interop/components/AR/ViroARPlaneSelector.d.ts +0 -43
- package/dist/fabric-interop/components/AR/ViroARPlaneSelector.js +0 -152
- package/dist/fabric-interop/components/AR/ViroARTrackingTargets.d.ts +0 -55
- package/dist/fabric-interop/components/AR/ViroARTrackingTargets.js +0 -85
- package/dist/fabric-interop/components/AR/ViroCommonProps.d.ts +0 -91
- package/dist/fabric-interop/components/AR/ViroCommonProps.js +0 -7
- package/dist/fabric-interop/components/Animation/ViroAnimations.d.ts +0 -48
- package/dist/fabric-interop/components/Animation/ViroAnimations.js +0 -64
- package/dist/fabric-interop/components/Material/ViroMaterials.d.ts +0 -66
- package/dist/fabric-interop/components/Material/ViroMaterials.js +0 -85
- package/dist/fabric-interop/components/Types/ViroEvents.d.ts +0 -202
- package/dist/fabric-interop/components/Types/ViroEvents.js +0 -53
- package/dist/fabric-interop/components/Types/ViroUtils.d.ts +0 -137
- package/dist/fabric-interop/components/Types/ViroUtils.js +0 -7
- package/dist/fabric-interop/components/Viro360Image.d.ts +0 -23
- package/dist/fabric-interop/components/Viro360Image.js +0 -45
- package/dist/fabric-interop/components/Viro360Video.d.ts +0 -29
- package/dist/fabric-interop/components/Viro360Video.js +0 -47
- package/dist/fabric-interop/components/Viro3DObject.d.ts +0 -60
- package/dist/fabric-interop/components/Viro3DObject.js +0 -49
- package/dist/fabric-interop/components/Viro3DSceneNavigator.d.ts +0 -49
- package/dist/fabric-interop/components/Viro3DSceneNavigator.js +0 -388
- package/dist/fabric-interop/components/ViroARCamera.d.ts +0 -29
- package/dist/fabric-interop/components/ViroARCamera.js +0 -64
- package/dist/fabric-interop/components/ViroARImageMarker.d.ts +0 -21
- package/dist/fabric-interop/components/ViroARImageMarker.js +0 -71
- package/dist/fabric-interop/components/ViroARObjectMarker.d.ts +0 -21
- package/dist/fabric-interop/components/ViroARObjectMarker.js +0 -71
- package/dist/fabric-interop/components/ViroARPlane.d.ts +0 -24
- package/dist/fabric-interop/components/ViroARPlane.js +0 -88
- package/dist/fabric-interop/components/ViroARScene.d.ts +0 -29
- package/dist/fabric-interop/components/ViroARScene.js +0 -89
- package/dist/fabric-interop/components/ViroARSceneNavigator.d.ts +0 -29
- package/dist/fabric-interop/components/ViroARSceneNavigator.js +0 -76
- package/dist/fabric-interop/components/ViroAmbientLight.d.ts +0 -19
- package/dist/fabric-interop/components/ViroAmbientLight.js +0 -46
- package/dist/fabric-interop/components/ViroAnimatedComponent.d.ts +0 -24
- package/dist/fabric-interop/components/ViroAnimatedComponent.js +0 -63
- package/dist/fabric-interop/components/ViroAnimatedImage.d.ts +0 -28
- package/dist/fabric-interop/components/ViroAnimatedImage.js +0 -49
- package/dist/fabric-interop/components/ViroBox.d.ts +0 -20
- package/dist/fabric-interop/components/ViroBox.js +0 -47
- package/dist/fabric-interop/components/ViroButton.d.ts +0 -32
- package/dist/fabric-interop/components/ViroButton.js +0 -92
- package/dist/fabric-interop/components/ViroCamera.d.ts +0 -17
- package/dist/fabric-interop/components/ViroCamera.js +0 -30
- package/dist/fabric-interop/components/ViroController.d.ts +0 -19
- package/dist/fabric-interop/components/ViroController.js +0 -64
- package/dist/fabric-interop/components/ViroDirectionalLight.d.ts +0 -28
- package/dist/fabric-interop/components/ViroDirectionalLight.js +0 -55
- package/dist/fabric-interop/components/ViroFlexView.d.ts +0 -36
- package/dist/fabric-interop/components/ViroFlexView.js +0 -97
- package/dist/fabric-interop/components/ViroGeometry.d.ts +0 -23
- package/dist/fabric-interop/components/ViroGeometry.js +0 -50
- package/dist/fabric-interop/components/ViroGlobal.d.ts +0 -45
- package/dist/fabric-interop/components/ViroGlobal.js +0 -20
- package/dist/fabric-interop/components/ViroImage.d.ts +0 -29
- package/dist/fabric-interop/components/ViroImage.js +0 -52
- package/dist/fabric-interop/components/ViroLightingEnvironment.d.ts +0 -19
- package/dist/fabric-interop/components/ViroLightingEnvironment.js +0 -44
- package/dist/fabric-interop/components/ViroMaterialVideo.d.ts +0 -30
- package/dist/fabric-interop/components/ViroMaterialVideo.js +0 -48
- package/dist/fabric-interop/components/ViroNode.d.ts +0 -36
- package/dist/fabric-interop/components/ViroNode.js +0 -28
- package/dist/fabric-interop/components/ViroOmniLight.d.ts +0 -21
- package/dist/fabric-interop/components/ViroOmniLight.js +0 -48
- package/dist/fabric-interop/components/ViroOrbitCamera.d.ts +0 -17
- package/dist/fabric-interop/components/ViroOrbitCamera.js +0 -30
- package/dist/fabric-interop/components/ViroParticleEmitter.d.ts +0 -51
- package/dist/fabric-interop/components/ViroParticleEmitter.js +0 -50
- package/dist/fabric-interop/components/ViroPolygon.d.ts +0 -20
- package/dist/fabric-interop/components/ViroPolygon.js +0 -47
- package/dist/fabric-interop/components/ViroPolyline.d.ts +0 -19
- package/dist/fabric-interop/components/ViroPolyline.js +0 -46
- package/dist/fabric-interop/components/ViroPortal.d.ts +0 -16
- package/dist/fabric-interop/components/ViroPortal.js +0 -73
- package/dist/fabric-interop/components/ViroPortalScene.d.ts +0 -16
- package/dist/fabric-interop/components/ViroPortalScene.js +0 -29
- package/dist/fabric-interop/components/ViroQuad.d.ts +0 -39
- package/dist/fabric-interop/components/ViroQuad.js +0 -49
- package/dist/fabric-interop/components/ViroScene.d.ts +0 -29
- package/dist/fabric-interop/components/ViroScene.js +0 -103
- package/dist/fabric-interop/components/ViroSceneNavigator.d.ts +0 -23
- package/dist/fabric-interop/components/ViroSceneNavigator.js +0 -73
- package/dist/fabric-interop/components/ViroSkyBox.d.ts +0 -39
- package/dist/fabric-interop/components/ViroSkyBox.js +0 -44
- package/dist/fabric-interop/components/ViroSound.d.ts +0 -23
- package/dist/fabric-interop/components/ViroSound.js +0 -46
- package/dist/fabric-interop/components/ViroSoundField.d.ts +0 -24
- package/dist/fabric-interop/components/ViroSoundField.js +0 -47
- package/dist/fabric-interop/components/ViroSpatialSound.d.ts +0 -27
- package/dist/fabric-interop/components/ViroSpatialSound.js +0 -50
- package/dist/fabric-interop/components/ViroSphere.d.ts +0 -22
- package/dist/fabric-interop/components/ViroSphere.js +0 -49
- package/dist/fabric-interop/components/ViroSpinner.d.ts +0 -18
- package/dist/fabric-interop/components/ViroSpinner.js +0 -45
- package/dist/fabric-interop/components/ViroSpotLight.d.ts +0 -30
- package/dist/fabric-interop/components/ViroSpotLight.js +0 -57
- package/dist/fabric-interop/components/ViroSurface.d.ts +0 -38
- package/dist/fabric-interop/components/ViroSurface.js +0 -48
- package/dist/fabric-interop/components/ViroText.d.ts +0 -36
- package/dist/fabric-interop/components/ViroText.js +0 -59
- package/dist/fabric-interop/components/ViroUtils.d.ts +0 -63
- package/dist/fabric-interop/components/ViroUtils.js +0 -140
- package/dist/fabric-interop/components/ViroVRSceneNavigator.d.ts +0 -25
- package/dist/fabric-interop/components/ViroVRSceneNavigator.js +0 -73
- package/dist/fabric-interop/components/ViroVideo.d.ts +0 -32
- package/dist/fabric-interop/components/ViroVideo.js +0 -52
- package/dist/fabric-interop/components/index.d.ts +0 -62
- package/dist/fabric-interop/components/index.js +0 -144
- package/dist/fabric-interop/examples/BasicSceneExample.d.ts +0 -11
- package/dist/fabric-interop/examples/BasicSceneExample.js +0 -244
- package/dist/fabric-interop/examples/ComprehensiveExample.d.ts +0 -13
- package/dist/fabric-interop/examples/ComprehensiveExample.js +0 -327
- package/dist/fabric-interop/examples/SimpleARExample.d.ts +0 -8
- package/dist/fabric-interop/examples/SimpleARExample.js +0 -62
- package/dist/fabric-interop/index.d.ts +0 -14
- package/dist/fabric-interop/index.js +0 -117
- package/dist/fabric-interop/specs/ViroEventsTurboModule.d.ts +0 -19
- package/dist/fabric-interop/specs/ViroEventsTurboModule.js +0 -11
- package/dist/fabric-interop/test/BasicFunctionalityTest.d.ts +0 -9
- package/dist/fabric-interop/test/BasicFunctionalityTest.js +0 -222
- package/dist/fabric.d.ts +0 -13
- package/dist/fabric.js +0 -29
- package/dynamic-index-source.d.ts +0 -77
- package/dynamic-index.ts +0 -41
- package/fabric-interop/NativeViro.ts +0 -335
- package/fabric-interop/README.md +0 -282
- package/fabric-interop/ViroEventsManager.js +0 -257
- package/fabric-interop/ViroFabricContainer.tsx +0 -273
- package/fabric-interop/components/AR/ViroARPlane.tsx +0 -108
- package/fabric-interop/components/AR/ViroARPlaneSelector.tsx +0 -185
- package/fabric-interop/components/AR/ViroARTrackingTargets.ts +0 -108
- package/fabric-interop/components/AR/ViroCommonProps.ts +0 -140
- package/fabric-interop/components/Animation/ViroAnimations.ts +0 -96
- package/fabric-interop/components/Material/ViroMaterials.ts +0 -127
- package/fabric-interop/components/Resources/viro_spinner_1.png +0 -0
- package/fabric-interop/components/Resources/viro_spinner_1_w.png +0 -0
- package/fabric-interop/components/Resources/viro_spinner_1a.png +0 -0
- package/fabric-interop/components/Resources/viro_spinner_1a_w.png +0 -0
- package/fabric-interop/components/Types/ViroEvents.ts +0 -285
- package/fabric-interop/components/Types/ViroUtils.ts +0 -160
- package/fabric-interop/components/Viro360Image.tsx +0 -70
- package/fabric-interop/components/Viro360Video.tsx +0 -78
- package/fabric-interop/components/Viro3DObject.tsx +0 -122
- package/fabric-interop/components/Viro3DSceneNavigator.tsx +0 -503
- package/fabric-interop/components/ViroARCamera.tsx +0 -105
- package/fabric-interop/components/ViroARImageMarker.tsx +0 -98
- package/fabric-interop/components/ViroARObjectMarker.tsx +0 -100
- package/fabric-interop/components/ViroARPlane.tsx +0 -120
- package/fabric-interop/components/ViroARScene.tsx +0 -127
- package/fabric-interop/components/ViroARSceneNavigator.tsx +0 -82
- package/fabric-interop/components/ViroAmbientLight.tsx +0 -62
- package/fabric-interop/components/ViroAnimatedComponent.tsx +0 -91
- package/fabric-interop/components/ViroAnimatedImage.tsx +0 -81
- package/fabric-interop/components/ViroBox.tsx +0 -72
- package/fabric-interop/components/ViroButton.tsx +0 -125
- package/fabric-interop/components/ViroCamera.tsx +0 -45
- package/fabric-interop/components/ViroController.tsx +0 -87
- package/fabric-interop/components/ViroDirectionalLight.tsx +0 -84
- package/fabric-interop/components/ViroFlexView.tsx +0 -146
- package/fabric-interop/components/ViroGeometry.tsx +0 -78
- package/fabric-interop/components/ViroGlobal.ts +0 -114
- package/fabric-interop/components/ViroImage.tsx +0 -85
- package/fabric-interop/components/ViroLightingEnvironment.tsx +0 -63
- package/fabric-interop/components/ViroMaterialVideo.tsx +0 -82
- package/fabric-interop/components/ViroNode.tsx +0 -62
- package/fabric-interop/components/ViroOmniLight.tsx +0 -66
- package/fabric-interop/components/ViroOrbitCamera.tsx +0 -45
- package/fabric-interop/components/ViroParticleEmitter.tsx +0 -111
- package/fabric-interop/components/ViroPolygon.tsx +0 -72
- package/fabric-interop/components/ViroPolyline.tsx +0 -71
- package/fabric-interop/components/ViroPortal.tsx +0 -91
- package/fabric-interop/components/ViroPortalScene.tsx +0 -43
- package/fabric-interop/components/ViroQuad.tsx +0 -82
- package/fabric-interop/components/ViroScene.tsx +0 -117
- package/fabric-interop/components/ViroSceneNavigator.tsx +0 -71
- package/fabric-interop/components/ViroSkyBox.tsx +0 -75
- package/fabric-interop/components/ViroSound.tsx +0 -71
- package/fabric-interop/components/ViroSoundField.tsx +0 -75
- package/fabric-interop/components/ViroSpatialSound.tsx +0 -81
- package/fabric-interop/components/ViroSphere.tsx +0 -75
- package/fabric-interop/components/ViroSpinner.tsx +0 -63
- package/fabric-interop/components/ViroSpotLight.tsx +0 -86
- package/fabric-interop/components/ViroSurface.tsx +0 -80
- package/fabric-interop/components/ViroText.tsx +0 -114
- package/fabric-interop/components/ViroUtils.ts +0 -208
- package/fabric-interop/components/ViroVRSceneNavigator.tsx +0 -75
- package/fabric-interop/components/ViroVideo.tsx +0 -91
- package/fabric-interop/components/index.ts +0 -94
- package/fabric-interop/dist/NativeViro.d.ts +0 -43
- package/fabric-interop/dist/NativeViro.d.ts.map +0 -1
- package/fabric-interop/dist/NativeViro.js +0 -263
- package/fabric-interop/dist/NativeViro.js.map +0 -1
- package/fabric-interop/dist/ViroFabricContainer.d.ts +0 -35
- package/fabric-interop/dist/ViroFabricContainer.d.ts.map +0 -1
- package/fabric-interop/dist/ViroFabricContainer.js +0 -201
- package/fabric-interop/dist/ViroFabricContainer.js.map +0 -1
- package/fabric-interop/dist/components/AR/ViroARPlane.d.ts +0 -23
- package/fabric-interop/dist/components/AR/ViroARPlane.d.ts.map +0 -1
- package/fabric-interop/dist/components/AR/ViroARPlane.js +0 -96
- package/fabric-interop/dist/components/AR/ViroARPlane.js.map +0 -1
- package/fabric-interop/dist/components/AR/ViroARPlaneSelector.d.ts +0 -44
- package/fabric-interop/dist/components/AR/ViroARPlaneSelector.d.ts.map +0 -1
- package/fabric-interop/dist/components/AR/ViroARPlaneSelector.js +0 -156
- package/fabric-interop/dist/components/AR/ViroARPlaneSelector.js.map +0 -1
- package/fabric-interop/dist/components/AR/ViroARTrackingTargets.d.ts +0 -56
- package/fabric-interop/dist/components/AR/ViroARTrackingTargets.d.ts.map +0 -1
- package/fabric-interop/dist/components/AR/ViroARTrackingTargets.js +0 -86
- package/fabric-interop/dist/components/AR/ViroARTrackingTargets.js.map +0 -1
- package/fabric-interop/dist/components/AR/ViroCommonProps.d.ts +0 -92
- package/fabric-interop/dist/components/AR/ViroCommonProps.d.ts.map +0 -1
- package/fabric-interop/dist/components/AR/ViroCommonProps.js +0 -8
- package/fabric-interop/dist/components/AR/ViroCommonProps.js.map +0 -1
- package/fabric-interop/dist/components/Animation/ViroAnimations.d.ts +0 -49
- package/fabric-interop/dist/components/Animation/ViroAnimations.d.ts.map +0 -1
- package/fabric-interop/dist/components/Animation/ViroAnimations.js +0 -65
- package/fabric-interop/dist/components/Animation/ViroAnimations.js.map +0 -1
- package/fabric-interop/dist/components/Material/ViroMaterials.d.ts +0 -67
- package/fabric-interop/dist/components/Material/ViroMaterials.d.ts.map +0 -1
- package/fabric-interop/dist/components/Material/ViroMaterials.js +0 -86
- package/fabric-interop/dist/components/Material/ViroMaterials.js.map +0 -1
- package/fabric-interop/dist/components/Types/ViroEvents.d.ts +0 -203
- package/fabric-interop/dist/components/Types/ViroEvents.d.ts.map +0 -1
- package/fabric-interop/dist/components/Types/ViroEvents.js +0 -54
- package/fabric-interop/dist/components/Types/ViroEvents.js.map +0 -1
- package/fabric-interop/dist/components/Types/ViroUtils.d.ts +0 -138
- package/fabric-interop/dist/components/Types/ViroUtils.d.ts.map +0 -1
- package/fabric-interop/dist/components/Types/ViroUtils.js +0 -8
- package/fabric-interop/dist/components/Types/ViroUtils.js.map +0 -1
- package/fabric-interop/dist/components/Viro360Image.d.ts +0 -24
- package/fabric-interop/dist/components/Viro360Image.d.ts.map +0 -1
- package/fabric-interop/dist/components/Viro360Image.js +0 -47
- package/fabric-interop/dist/components/Viro360Image.js.map +0 -1
- package/fabric-interop/dist/components/Viro360Video.d.ts +0 -30
- package/fabric-interop/dist/components/Viro360Video.d.ts.map +0 -1
- package/fabric-interop/dist/components/Viro360Video.js +0 -49
- package/fabric-interop/dist/components/Viro360Video.js.map +0 -1
- package/fabric-interop/dist/components/Viro3DObject.d.ts +0 -61
- package/fabric-interop/dist/components/Viro3DObject.d.ts.map +0 -1
- package/fabric-interop/dist/components/Viro3DObject.js +0 -51
- package/fabric-interop/dist/components/Viro3DObject.js.map +0 -1
- package/fabric-interop/dist/components/Viro3DSceneNavigator.d.ts +0 -50
- package/fabric-interop/dist/components/Viro3DSceneNavigator.d.ts.map +0 -1
- package/fabric-interop/dist/components/Viro3DSceneNavigator.js +0 -389
- package/fabric-interop/dist/components/Viro3DSceneNavigator.js.map +0 -1
- package/fabric-interop/dist/components/ViroARCamera.d.ts +0 -30
- package/fabric-interop/dist/components/ViroARCamera.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroARCamera.js +0 -65
- package/fabric-interop/dist/components/ViroARCamera.js.map +0 -1
- package/fabric-interop/dist/components/ViroARImageMarker.d.ts +0 -22
- package/fabric-interop/dist/components/ViroARImageMarker.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroARImageMarker.js +0 -72
- package/fabric-interop/dist/components/ViroARImageMarker.js.map +0 -1
- package/fabric-interop/dist/components/ViroARObjectMarker.d.ts +0 -22
- package/fabric-interop/dist/components/ViroARObjectMarker.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroARObjectMarker.js +0 -72
- package/fabric-interop/dist/components/ViroARObjectMarker.js.map +0 -1
- package/fabric-interop/dist/components/ViroARPlane.d.ts +0 -25
- package/fabric-interop/dist/components/ViroARPlane.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroARPlane.js +0 -89
- package/fabric-interop/dist/components/ViroARPlane.js.map +0 -1
- package/fabric-interop/dist/components/ViroARScene.d.ts +0 -30
- package/fabric-interop/dist/components/ViroARScene.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroARScene.js +0 -90
- package/fabric-interop/dist/components/ViroARScene.js.map +0 -1
- package/fabric-interop/dist/components/ViroARSceneNavigator.d.ts +0 -30
- package/fabric-interop/dist/components/ViroARSceneNavigator.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroARSceneNavigator.js +0 -78
- package/fabric-interop/dist/components/ViroARSceneNavigator.js.map +0 -1
- package/fabric-interop/dist/components/ViroAmbientLight.d.ts +0 -20
- package/fabric-interop/dist/components/ViroAmbientLight.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroAmbientLight.js +0 -48
- package/fabric-interop/dist/components/ViroAmbientLight.js.map +0 -1
- package/fabric-interop/dist/components/ViroAnimatedComponent.d.ts +0 -25
- package/fabric-interop/dist/components/ViroAnimatedComponent.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroAnimatedComponent.js +0 -65
- package/fabric-interop/dist/components/ViroAnimatedComponent.js.map +0 -1
- package/fabric-interop/dist/components/ViroAnimatedImage.d.ts +0 -29
- package/fabric-interop/dist/components/ViroAnimatedImage.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroAnimatedImage.js +0 -51
- package/fabric-interop/dist/components/ViroAnimatedImage.js.map +0 -1
- package/fabric-interop/dist/components/ViroBox.d.ts +0 -21
- package/fabric-interop/dist/components/ViroBox.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroBox.js +0 -49
- package/fabric-interop/dist/components/ViroBox.js.map +0 -1
- package/fabric-interop/dist/components/ViroButton.d.ts +0 -33
- package/fabric-interop/dist/components/ViroButton.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroButton.js +0 -94
- package/fabric-interop/dist/components/ViroButton.js.map +0 -1
- package/fabric-interop/dist/components/ViroCamera.d.ts +0 -18
- package/fabric-interop/dist/components/ViroCamera.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroCamera.js +0 -31
- package/fabric-interop/dist/components/ViroCamera.js.map +0 -1
- package/fabric-interop/dist/components/ViroController.d.ts +0 -20
- package/fabric-interop/dist/components/ViroController.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroController.js +0 -65
- package/fabric-interop/dist/components/ViroController.js.map +0 -1
- package/fabric-interop/dist/components/ViroDirectionalLight.d.ts +0 -29
- package/fabric-interop/dist/components/ViroDirectionalLight.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroDirectionalLight.js +0 -57
- package/fabric-interop/dist/components/ViroDirectionalLight.js.map +0 -1
- package/fabric-interop/dist/components/ViroFlexView.d.ts +0 -37
- package/fabric-interop/dist/components/ViroFlexView.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroFlexView.js +0 -98
- package/fabric-interop/dist/components/ViroFlexView.js.map +0 -1
- package/fabric-interop/dist/components/ViroGeometry.d.ts +0 -24
- package/fabric-interop/dist/components/ViroGeometry.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroGeometry.js +0 -52
- package/fabric-interop/dist/components/ViroGeometry.js.map +0 -1
- package/fabric-interop/dist/components/ViroGlobal.d.ts +0 -46
- package/fabric-interop/dist/components/ViroGlobal.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroGlobal.js +0 -21
- package/fabric-interop/dist/components/ViroGlobal.js.map +0 -1
- package/fabric-interop/dist/components/ViroImage.d.ts +0 -30
- package/fabric-interop/dist/components/ViroImage.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroImage.js +0 -54
- package/fabric-interop/dist/components/ViroImage.js.map +0 -1
- package/fabric-interop/dist/components/ViroLightingEnvironment.d.ts +0 -20
- package/fabric-interop/dist/components/ViroLightingEnvironment.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroLightingEnvironment.js +0 -46
- package/fabric-interop/dist/components/ViroLightingEnvironment.js.map +0 -1
- package/fabric-interop/dist/components/ViroMaterialVideo.d.ts +0 -31
- package/fabric-interop/dist/components/ViroMaterialVideo.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroMaterialVideo.js +0 -50
- package/fabric-interop/dist/components/ViroMaterialVideo.js.map +0 -1
- package/fabric-interop/dist/components/ViroNode.d.ts +0 -37
- package/fabric-interop/dist/components/ViroNode.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroNode.js +0 -29
- package/fabric-interop/dist/components/ViroNode.js.map +0 -1
- package/fabric-interop/dist/components/ViroOmniLight.d.ts +0 -22
- package/fabric-interop/dist/components/ViroOmniLight.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroOmniLight.js +0 -50
- package/fabric-interop/dist/components/ViroOmniLight.js.map +0 -1
- package/fabric-interop/dist/components/ViroOrbitCamera.d.ts +0 -18
- package/fabric-interop/dist/components/ViroOrbitCamera.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroOrbitCamera.js +0 -31
- package/fabric-interop/dist/components/ViroOrbitCamera.js.map +0 -1
- package/fabric-interop/dist/components/ViroParticleEmitter.d.ts +0 -52
- package/fabric-interop/dist/components/ViroParticleEmitter.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroParticleEmitter.js +0 -52
- package/fabric-interop/dist/components/ViroParticleEmitter.js.map +0 -1
- package/fabric-interop/dist/components/ViroPolygon.d.ts +0 -21
- package/fabric-interop/dist/components/ViroPolygon.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroPolygon.js +0 -49
- package/fabric-interop/dist/components/ViroPolygon.js.map +0 -1
- package/fabric-interop/dist/components/ViroPolyline.d.ts +0 -20
- package/fabric-interop/dist/components/ViroPolyline.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroPolyline.js +0 -48
- package/fabric-interop/dist/components/ViroPolyline.js.map +0 -1
- package/fabric-interop/dist/components/ViroPortal.d.ts +0 -17
- package/fabric-interop/dist/components/ViroPortal.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroPortal.js +0 -74
- package/fabric-interop/dist/components/ViroPortal.js.map +0 -1
- package/fabric-interop/dist/components/ViroPortalScene.d.ts +0 -17
- package/fabric-interop/dist/components/ViroPortalScene.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroPortalScene.js +0 -30
- package/fabric-interop/dist/components/ViroPortalScene.js.map +0 -1
- package/fabric-interop/dist/components/ViroQuad.d.ts +0 -40
- package/fabric-interop/dist/components/ViroQuad.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroQuad.js +0 -51
- package/fabric-interop/dist/components/ViroQuad.js.map +0 -1
- package/fabric-interop/dist/components/ViroScene.d.ts +0 -30
- package/fabric-interop/dist/components/ViroScene.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroScene.js +0 -105
- package/fabric-interop/dist/components/ViroScene.js.map +0 -1
- package/fabric-interop/dist/components/ViroSceneNavigator.d.ts +0 -24
- package/fabric-interop/dist/components/ViroSceneNavigator.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroSceneNavigator.js +0 -74
- package/fabric-interop/dist/components/ViroSceneNavigator.js.map +0 -1
- package/fabric-interop/dist/components/ViroSkyBox.d.ts +0 -40
- package/fabric-interop/dist/components/ViroSkyBox.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroSkyBox.js +0 -46
- package/fabric-interop/dist/components/ViroSkyBox.js.map +0 -1
- package/fabric-interop/dist/components/ViroSound.d.ts +0 -24
- package/fabric-interop/dist/components/ViroSound.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroSound.js +0 -48
- package/fabric-interop/dist/components/ViroSound.js.map +0 -1
- package/fabric-interop/dist/components/ViroSoundField.d.ts +0 -25
- package/fabric-interop/dist/components/ViroSoundField.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroSoundField.js +0 -49
- package/fabric-interop/dist/components/ViroSoundField.js.map +0 -1
- package/fabric-interop/dist/components/ViroSpatialSound.d.ts +0 -28
- package/fabric-interop/dist/components/ViroSpatialSound.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroSpatialSound.js +0 -52
- package/fabric-interop/dist/components/ViroSpatialSound.js.map +0 -1
- package/fabric-interop/dist/components/ViroSphere.d.ts +0 -23
- package/fabric-interop/dist/components/ViroSphere.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroSphere.js +0 -51
- package/fabric-interop/dist/components/ViroSphere.js.map +0 -1
- package/fabric-interop/dist/components/ViroSpinner.d.ts +0 -19
- package/fabric-interop/dist/components/ViroSpinner.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroSpinner.js +0 -47
- package/fabric-interop/dist/components/ViroSpinner.js.map +0 -1
- package/fabric-interop/dist/components/ViroSpotLight.d.ts +0 -31
- package/fabric-interop/dist/components/ViroSpotLight.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroSpotLight.js +0 -59
- package/fabric-interop/dist/components/ViroSpotLight.js.map +0 -1
- package/fabric-interop/dist/components/ViroSurface.d.ts +0 -39
- package/fabric-interop/dist/components/ViroSurface.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroSurface.js +0 -50
- package/fabric-interop/dist/components/ViroSurface.js.map +0 -1
- package/fabric-interop/dist/components/ViroText.d.ts +0 -37
- package/fabric-interop/dist/components/ViroText.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroText.js +0 -61
- package/fabric-interop/dist/components/ViroText.js.map +0 -1
- package/fabric-interop/dist/components/ViroUtils.d.ts +0 -64
- package/fabric-interop/dist/components/ViroUtils.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroUtils.js +0 -141
- package/fabric-interop/dist/components/ViroUtils.js.map +0 -1
- package/fabric-interop/dist/components/ViroVRSceneNavigator.d.ts +0 -26
- package/fabric-interop/dist/components/ViroVRSceneNavigator.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroVRSceneNavigator.js +0 -74
- package/fabric-interop/dist/components/ViroVRSceneNavigator.js.map +0 -1
- package/fabric-interop/dist/components/ViroVideo.d.ts +0 -33
- package/fabric-interop/dist/components/ViroVideo.d.ts.map +0 -1
- package/fabric-interop/dist/components/ViroVideo.js +0 -54
- package/fabric-interop/dist/components/ViroVideo.js.map +0 -1
- package/fabric-interop/dist/components/index.d.ts +0 -63
- package/fabric-interop/dist/components/index.d.ts.map +0 -1
- package/fabric-interop/dist/components/index.js +0 -145
- package/fabric-interop/dist/components/index.js.map +0 -1
- package/fabric-interop/dist/index.d.ts +0 -15
- package/fabric-interop/dist/index.d.ts.map +0 -1
- package/fabric-interop/dist/index.js +0 -118
- package/fabric-interop/dist/index.js.map +0 -1
- package/fabric-interop/dist/specs/ViroEventsTurboModule.d.ts +0 -20
- package/fabric-interop/dist/specs/ViroEventsTurboModule.d.ts.map +0 -1
- package/fabric-interop/dist/specs/ViroEventsTurboModule.js +0 -12
- package/fabric-interop/dist/specs/ViroEventsTurboModule.js.map +0 -1
- package/fabric-interop/examples/BasicSceneExample.tsx +0 -287
- package/fabric-interop/examples/ComprehensiveExample.tsx +0 -441
- package/fabric-interop/examples/SimpleARExample.tsx +0 -95
- package/fabric-interop/global.d.ts +0 -14
- package/fabric-interop/index.ts +0 -107
- package/fabric-interop/metro.config.js +0 -12
- package/fabric-interop/package.json +0 -40
- package/fabric-interop/react-native.config.js +0 -22
- package/fabric-interop/scripts/validate-build.js +0 -393
- package/fabric-interop/scripts/validate-implementation.js +0 -272
- package/fabric-interop/specs/README.md +0 -22
- package/fabric-interop/specs/ViroEventsTurboModule.ts +0 -27
- package/fabric-interop/test/BasicFunctionalityTest.tsx +0 -243
- package/fabric-interop/tsconfig.json +0 -38
- package/fabric.d.ts +0 -5
- package/fabric.ts +0 -14
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@reactvision/react-viro)
|
|
8
8
|
[](https://www.npmjs.com/package/@reactvision/react-viro)
|
|
9
|
-
[](https://discord.gg/
|
|
9
|
+
[](https://discord.gg/yqqEGUjK)
|
|
10
10
|
|
|
11
11
|
# ViroReact
|
|
12
12
|
|
|
@@ -41,14 +41,24 @@ Check out the [examples](./examples) directory for sample code demonstrating how
|
|
|
41
41
|
|
|
42
42
|
You can also see our [Example projects](https://viro-community.readme.io/docs/examples) page. These are a little old (~2019) but are a great reference point for how to use bits of the library.
|
|
43
43
|
|
|
44
|
-
#
|
|
44
|
+
# Connect with the ReactVision Community
|
|
45
45
|
|
|
46
|
-
Whether you're looking for support with building your AR or VR application or you want to contribute to ViroReact, the best way to contact our team
|
|
46
|
+
Whether you're looking for support with building your AR or VR application or you want to contribute to ViroReact, the best way to contact our team and connect with the ReactVision Community is via Discord.
|
|
47
47
|
|
|
48
|
-
<a href="https://discord.gg/
|
|
48
|
+
<a href="https://discord.gg/yqqEGUjK">
|
|
49
49
|
<img src="https://discordapp.com/api/guilds/774471080713781259/widget.png?style=banner2" alt="Discord Banner 2"/>
|
|
50
50
|
</a>
|
|
51
51
|
|
|
52
|
+
# External Support
|
|
53
|
+
|
|
54
|
+
If you need hands-on support with a project, you can visit our documentation site, where we have a [list of trusted partners whom you can hire to help with your project](https://viro-community.readme.io/docs/hire-a-viro-react-expert). All partners are vetted by the ReactVision team and all have experience creating production-grade apps with Viro.
|
|
55
|
+
|
|
56
|
+
# Supporters
|
|
57
|
+
A huge thank you to everyone who supports the ongoing development of ReactVision and Viro by [sponsoring us on GitHub](https://github.com/sponsors/ReactVision).
|
|
58
|
+
- [devicecloud-dev](https://github.com/devicecloud-dev) - [Device Cloud](https://devicecloud.dev/)
|
|
59
|
+
- [lentesta](https://github.com/lentesta)
|
|
60
|
+
- [Looking Glass](http://looking-glass.space)
|
|
61
|
+
|
|
52
62
|
# A little history...
|
|
53
63
|
|
|
54
64
|
ViroReact was originally developed by the [Viro Media](http://www.viromedia.com/), but was open-sourced in 2019. In late 2020, the Viro Community was formed to help maintain and move the project onwards, updating it so it could run with modern versions of React Native, and start to add in new features.
|
|
@@ -57,10 +67,3 @@ Following years of support, in 2025, [Morrow acquired ReactVision](https://www.t
|
|
|
57
67
|
|
|
58
68
|
We, as a community, owe a great debt to Viro Media and the people who developed this library originally. We hope to make them proud as it continues to develop and grow within ReactVision.
|
|
59
69
|
|
|
60
|
-
# Supporters
|
|
61
|
-
|
|
62
|
-
<p align="center">
|
|
63
|
-
<a href="https://themorrow.digital/">
|
|
64
|
-
<img src="readmes/morrow-supporter.png" alt="Morrow">
|
|
65
|
-
</a>
|
|
66
|
-
</p>
|
|
Binary file
|
|
Binary file
|
|
@@ -69,7 +69,7 @@ export class ViroARPlaneSelector extends React.Component<Props, State> {
|
|
|
69
69
|
|
|
70
70
|
_getARPlanes() {
|
|
71
71
|
// Always render a fixed number of planes, controlling visibility instead of conditional rendering
|
|
72
|
-
let arPlanes: JSX.Element[] = [];
|
|
72
|
+
let arPlanes: React.JSX.Element[] = [];
|
|
73
73
|
let numPlanes = this.props.maxPlanes || _maxPlanes;
|
|
74
74
|
|
|
75
75
|
// Create all plane slots (both detected and placeholder)
|
|
@@ -28,7 +28,6 @@ import {
|
|
|
28
28
|
ViroSceneDictionary,
|
|
29
29
|
} from "../Types/ViroUtils";
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
const ViroARSceneNavigatorModule = NativeModules.VRTARSceneNavigatorModule;
|
|
33
32
|
|
|
34
33
|
let mathRandomOffset = 0;
|
|
@@ -42,7 +41,7 @@ type Props = ViewProps & {
|
|
|
42
41
|
/**
|
|
43
42
|
* The React Class to render for this scene.
|
|
44
43
|
*/
|
|
45
|
-
scene: () => JSX.Element;
|
|
44
|
+
scene: () => React.JSX.Element;
|
|
46
45
|
};
|
|
47
46
|
initialSceneKey?: string;
|
|
48
47
|
|
|
@@ -152,12 +151,25 @@ export class ViroARSceneNavigator extends React.Component<Props, State> {
|
|
|
152
151
|
* @param point
|
|
153
152
|
* @returns
|
|
154
153
|
*/
|
|
155
|
-
async
|
|
154
|
+
_project = async (point: Viro3DPoint) => {
|
|
156
155
|
return await ViroARSceneNavigatorModule.project(
|
|
157
156
|
findNodeHandle(this),
|
|
158
157
|
point
|
|
159
158
|
);
|
|
160
|
-
}
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* TODO: Document _unproject
|
|
163
|
+
*
|
|
164
|
+
* @param point
|
|
165
|
+
* @returns
|
|
166
|
+
*/
|
|
167
|
+
_unproject = async (point: Viro3DPoint) => {
|
|
168
|
+
return await ViroARSceneNavigatorModule.unproject(
|
|
169
|
+
findNodeHandle(this),
|
|
170
|
+
point
|
|
171
|
+
);
|
|
172
|
+
};
|
|
161
173
|
|
|
162
174
|
/**
|
|
163
175
|
* Gets a random tag string.
|
|
@@ -506,19 +518,6 @@ export class ViroARSceneNavigator extends React.Component<Props, State> {
|
|
|
506
518
|
return -1;
|
|
507
519
|
};
|
|
508
520
|
|
|
509
|
-
/**
|
|
510
|
-
* TODO: Document _unproject
|
|
511
|
-
*
|
|
512
|
-
* @param point
|
|
513
|
-
* @returns
|
|
514
|
-
*/
|
|
515
|
-
_unproject = async (point: Viro3DPoint) => {
|
|
516
|
-
return await ViroARSceneNavigatorModule.unproject(
|
|
517
|
-
findNodeHandle(this),
|
|
518
|
-
point
|
|
519
|
-
);
|
|
520
|
-
};
|
|
521
|
-
|
|
522
521
|
/**
|
|
523
522
|
* [iOS Only]
|
|
524
523
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VIRO_VERSION = "2.43.
|
|
1
|
+
export const VIRO_VERSION = "2.43.4";
|
|
@@ -37,7 +37,7 @@ export declare class ViroARPlaneSelector extends React.Component<Props, State> {
|
|
|
37
37
|
arPlaneSizes: number[];
|
|
38
38
|
};
|
|
39
39
|
render(): React.JSX.Element;
|
|
40
|
-
_getARPlanes(): JSX.Element[];
|
|
40
|
+
_getARPlanes(): React.JSX.Element[];
|
|
41
41
|
_getOnClickSurface: (index: number, event: ViroClickStateEvent) => void;
|
|
42
42
|
_onARPlaneUpdated: (index: number) => (updateMap: ViroPlaneUpdatedMap) => void;
|
|
43
43
|
_onPlaneSelected: (updateMap: ViroPlaneUpdatedMap) => void;
|
|
@@ -22,7 +22,7 @@ type Props = ViewProps & {
|
|
|
22
22
|
/**
|
|
23
23
|
* The React Class to render for this scene.
|
|
24
24
|
*/
|
|
25
|
-
scene: () => JSX.Element;
|
|
25
|
+
scene: () => React.JSX.Element;
|
|
26
26
|
};
|
|
27
27
|
initialSceneKey?: string;
|
|
28
28
|
autofocus?: boolean;
|
|
@@ -83,7 +83,14 @@ export declare class ViroARSceneNavigator extends React.Component<Props, State>
|
|
|
83
83
|
* @param point
|
|
84
84
|
* @returns
|
|
85
85
|
*/
|
|
86
|
-
_project(point: Viro3DPoint)
|
|
86
|
+
_project: (point: Viro3DPoint) => Promise<any>;
|
|
87
|
+
/**
|
|
88
|
+
* TODO: Document _unproject
|
|
89
|
+
*
|
|
90
|
+
* @param point
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
_unproject: (point: Viro3DPoint) => Promise<any>;
|
|
87
94
|
/**
|
|
88
95
|
* Gets a random tag string.
|
|
89
96
|
*
|
|
@@ -190,13 +197,6 @@ export declare class ViroARSceneNavigator extends React.Component<Props, State>
|
|
|
190
197
|
* @returns the index of the scene
|
|
191
198
|
*/
|
|
192
199
|
getSceneIndex: (sceneTag: string) => number;
|
|
193
|
-
/**
|
|
194
|
-
* TODO: Document _unproject
|
|
195
|
-
*
|
|
196
|
-
* @param point
|
|
197
|
-
* @returns
|
|
198
|
-
*/
|
|
199
|
-
_unproject: (point: Viro3DPoint) => Promise<any>;
|
|
200
200
|
/**
|
|
201
201
|
* [iOS Only]
|
|
202
202
|
*
|
|
@@ -110,9 +110,18 @@ class ViroARSceneNavigator extends React.Component {
|
|
|
110
110
|
* @param point
|
|
111
111
|
* @returns
|
|
112
112
|
*/
|
|
113
|
-
async
|
|
113
|
+
_project = async (point) => {
|
|
114
114
|
return await ViroARSceneNavigatorModule.project((0, react_native_1.findNodeHandle)(this), point);
|
|
115
|
-
}
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* TODO: Document _unproject
|
|
118
|
+
*
|
|
119
|
+
* @param point
|
|
120
|
+
* @returns
|
|
121
|
+
*/
|
|
122
|
+
_unproject = async (point) => {
|
|
123
|
+
return await ViroARSceneNavigatorModule.unproject((0, react_native_1.findNodeHandle)(this), point);
|
|
124
|
+
};
|
|
116
125
|
/**
|
|
117
126
|
* Gets a random tag string.
|
|
118
127
|
*
|
|
@@ -403,15 +412,6 @@ class ViroARSceneNavigator extends React.Component {
|
|
|
403
412
|
// Unable to find the given sceneTag, return -1
|
|
404
413
|
return -1;
|
|
405
414
|
};
|
|
406
|
-
/**
|
|
407
|
-
* TODO: Document _unproject
|
|
408
|
-
*
|
|
409
|
-
* @param point
|
|
410
|
-
* @returns
|
|
411
|
-
*/
|
|
412
|
-
_unproject = async (point) => {
|
|
413
|
-
return await ViroARSceneNavigatorModule.unproject((0, react_native_1.findNodeHandle)(this), point);
|
|
414
|
-
};
|
|
415
415
|
/**
|
|
416
416
|
* [iOS Only]
|
|
417
417
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VIRO_VERSION = "2.43.
|
|
1
|
+
export declare const VIRO_VERSION = "2.43.4";
|
package/dist/dynamic-index.js
CHANGED
|
@@ -24,5 +24,5 @@ function validateNewArchitecture() {
|
|
|
24
24
|
}
|
|
25
25
|
// Validate New Architecture on module load
|
|
26
26
|
validateNewArchitecture();
|
|
27
|
-
// Export
|
|
28
|
-
module.exports = require("./
|
|
27
|
+
// Export main components
|
|
28
|
+
module.exports = require("./index");
|
|
@@ -54,72 +54,36 @@ const withBranchAndroid = (config) => {
|
|
|
54
54
|
` packages.add(new ReactViroPackage(ReactViroPackage.ViroPlatform.${viroConfig}))\n`;
|
|
55
55
|
}
|
|
56
56
|
else {
|
|
57
|
+
// Use proper Kotlin syntax for newer formats
|
|
57
58
|
target =
|
|
58
59
|
target +
|
|
59
|
-
`
|
|
60
|
+
` packages.add(ReactViroPackage(ReactViroPackage.ViroPlatform.${viroConfig}))\n`;
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
if (isJava) {
|
|
63
64
|
data = (0, insertLinesHelper_1.insertLinesHelper)(target, "List<ReactPackage> packages = new PackageList(this).getPackages();", data);
|
|
64
65
|
}
|
|
65
66
|
else {
|
|
67
|
+
// Handle various MainApplication.kt formats
|
|
66
68
|
if (data.includes("// packages.add(new MyReactNativePackage());")) {
|
|
67
|
-
// console.log("[VIRO]: \n" + target);
|
|
68
|
-
/**
|
|
69
|
-
* ================================================================
|
|
70
|
-
* HACK/EXPO PREBIULD BUG
|
|
71
|
-
* ================================================================
|
|
72
|
-
*
|
|
73
|
-
* ```
|
|
74
|
-
* // DOESN'T WORK - EXPO SDK 50 `npx expo prebuild` RESULT
|
|
75
|
-
* override fun getPackages(): List<ReactPackage> {
|
|
76
|
-
* // Packages that cannot be autolinked yet can be added manually here, for example:
|
|
77
|
-
* // packages.add(new MyReactNativePackage());
|
|
78
|
-
* PackageList(this).packages.apply {
|
|
79
|
-
* add(ReactViroPackage(ReactViroPackage.ViroPlatform.GVR))
|
|
80
|
-
* }
|
|
81
|
-
* return PackageList(this).packages
|
|
82
|
-
* }
|
|
83
|
-
*
|
|
84
|
-
* // DOES WORK - REACT NATIVE STARTER KIT 0.73.4
|
|
85
|
-
* override fun getPackages(): List<ReactPackage> =
|
|
86
|
-
* PackageList(this).packages.apply {
|
|
87
|
-
* // Packages that cannot be autolinked yet can be added manually here, for example:
|
|
88
|
-
* // add(MyReactNativePackage())
|
|
89
|
-
* // https://viro-community.readme.io/docs/installation-instructions#5-now-add-the-viro-package-to-your-mainapplication
|
|
90
|
-
* // add(ReactViroPackage(ReactViroPackage.ViroPlatform.OVR_MOBILE))
|
|
91
|
-
* add(ReactViroPackage(ReactViroPackage.ViroPlatform.GVR))
|
|
92
|
-
* // add(ReactViroPackage(ReactViroPackage.ViroPlatform.AR))
|
|
93
|
-
* }
|
|
94
|
-
* ```
|
|
95
|
-
*/
|
|
96
|
-
/*
|
|
97
|
-
data = data.replace(
|
|
98
|
-
`override fun getPackages(): List<ReactPackage> {
|
|
99
|
-
// Packages that cannot be autolinked yet can be added manually here, for example:
|
|
100
|
-
// packages.add(new MyReactNativePackage());
|
|
101
|
-
return PackageList(this).packages
|
|
102
|
-
}`,
|
|
103
|
-
`override fun getPackages(): List<ReactPackage> =
|
|
104
|
-
PackageList(this).packages.apply {
|
|
105
|
-
// Packages that cannot be autolinked yet can be added manually here, for example:
|
|
106
|
-
// add(MyReactNativePackage())
|
|
107
|
-
}`
|
|
108
|
-
);*/
|
|
109
69
|
data = (0, insertLinesHelper_1.insertLinesHelper)(target, "// packages.add(new MyReactNativePackage());", data);
|
|
110
70
|
}
|
|
111
71
|
else if (data.includes("// add(MyReactNativePackage())")) {
|
|
112
|
-
// console.log("[VIRO]: \n" + target);
|
|
113
72
|
data = (0, insertLinesHelper_1.insertLinesHelper)(target, "// add(MyReactNativePackage())", data);
|
|
114
73
|
}
|
|
74
|
+
else if (data.includes("// packages.add(MyReactNativePackage())")) {
|
|
75
|
+
// Handle newer Expo format: // packages.add(MyReactNativePackage())
|
|
76
|
+
data = (0, insertLinesHelper_1.insertLinesHelper)(target, "// packages.add(MyReactNativePackage())", data);
|
|
77
|
+
}
|
|
78
|
+
else if (data.includes("val packages = PackageList(this).packages")) {
|
|
79
|
+
// Handle newer format where packages is declared as val
|
|
80
|
+
data = (0, insertLinesHelper_1.insertLinesHelper)(target, "val packages = PackageList(this).packages", data);
|
|
81
|
+
}
|
|
115
82
|
else {
|
|
116
|
-
throw new Error("Unable to insert Android packages into package list. Please create a new issue on GitHub and reference this message!"
|
|
83
|
+
throw new Error("Unable to insert Android packages into package list. Please create a new issue on GitHub and reference this message! " +
|
|
84
|
+
"Expected to find one of: '// packages.add(new MyReactNativePackage());', '// add(MyReactNativePackage())', " +
|
|
85
|
+
"'// packages.add(MyReactNativePackage())', or 'val packages = PackageList(this).packages'");
|
|
117
86
|
}
|
|
118
|
-
// data = insertLinesHelper(
|
|
119
|
-
// target,
|
|
120
|
-
// "// packages.add(new MyReactNativePackage());",
|
|
121
|
-
// data
|
|
122
|
-
// );
|
|
123
87
|
}
|
|
124
88
|
fs_1.default.writeFile(mainApplicationPath, data, "utf-8", function (err) {
|
|
125
89
|
if (err)
|
|
@@ -138,21 +102,19 @@ const withViroProjectBuildGradle = (config) => (0, config_plugins_1.withProjectB
|
|
|
138
102
|
}
|
|
139
103
|
newConfig.modResults.contents = newConfig.modResults.contents.replace(/minSdkVersion.*/, `minSdkVersion = 24`);
|
|
140
104
|
// Ensure New Architecture is enabled
|
|
141
|
-
if (!newConfig.modResults.contents.includes("newArchEnabled=true")) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
105
|
+
//if (!newConfig.modResults.contents.includes("newArchEnabled=true")) {
|
|
106
|
+
// newConfig.modResults.contents +=
|
|
107
|
+
// "\n// ViroReact requires New Architecture\nnewArchEnabled=true\n";
|
|
108
|
+
//}
|
|
145
109
|
newConfig.modResults.contents = newConfig.modResults.contents.replace(/classpath\("com.android.tools.build:gradle.*/, `classpath('com.android.tools.build:gradle:4.1.1')`);
|
|
146
110
|
return newConfig;
|
|
147
111
|
});
|
|
148
112
|
const withViroAppBuildGradle = (config) => (0, config_plugins_1.withAppBuildGradle)(config, async (config) => {
|
|
149
|
-
//
|
|
113
|
+
// ViroReact New Architecture (Fabric) Dependencies
|
|
150
114
|
const viroNewArchDependencies = `
|
|
151
115
|
// ========================================================================
|
|
152
116
|
// ViroReact New Architecture (Fabric) Dependencies
|
|
153
117
|
// https://viro-community.readme.io/docs/installation-instructions
|
|
154
|
-
implementation project(':fabric-interop')
|
|
155
|
-
implementation project(':viro_bridge')
|
|
156
118
|
implementation project(':gvr_common')
|
|
157
119
|
implementation project(':arcore_client')
|
|
158
120
|
implementation project(path: ':react_viro')
|
|
@@ -171,13 +133,11 @@ const withViroAppBuildGradle = (config) => (0, config_plugins_1.withAppBuildGrad
|
|
|
171
133
|
});
|
|
172
134
|
const withViroSettingsGradle = (config) => (0, config_plugins_1.withSettingsGradle)(config, async (config) => {
|
|
173
135
|
config.modResults.contents += `
|
|
174
|
-
include ':react_viro', ':arcore_client', ':gvr_common', ':viro_renderer'
|
|
136
|
+
include ':react_viro', ':arcore_client', ':gvr_common', ':viro_renderer'
|
|
175
137
|
project(':arcore_client').projectDir = new File('../node_modules/@reactvision/react-viro/android/arcore_client')
|
|
176
138
|
project(':gvr_common').projectDir = new File('../node_modules/@reactvision/react-viro/android/gvr_common')
|
|
177
139
|
project(':viro_renderer').projectDir = new File('../node_modules/@reactvision/react-viro/android/viro_renderer')
|
|
178
140
|
project(':react_viro').projectDir = new File('../node_modules/@reactvision/react-viro/android/react_viro')
|
|
179
|
-
project(':viro_bridge').projectDir = new File('../node_modules/@reactvision/react-viro/android/viro_bridge')
|
|
180
|
-
project(':fabric-interop').projectDir = new File('../node_modules/@reactvision/react-viro/fabric-interop/android')
|
|
181
141
|
`;
|
|
182
142
|
return config;
|
|
183
143
|
});
|
package/ios/ViroReact.podspec
CHANGED
|
@@ -15,15 +15,18 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
s.ios.deployment_target = '12.0'
|
|
16
16
|
|
|
17
17
|
# Base source files (always included)
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
source_files_array = ['ViroReact/**/*.{h,m,mm}']
|
|
19
|
+
header_files_array = ['ViroReact/**/*.h']
|
|
20
20
|
|
|
21
21
|
# Include dist files if they exist (for release builds)
|
|
22
22
|
if File.exist?(File.join(__dir__, 'dist/include'))
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
source_files_array << 'dist/include/**/*.{h,m,mm}'
|
|
24
|
+
header_files_array << 'dist/include/*.h'
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
s.source_files = source_files_array
|
|
28
|
+
s.public_header_files = header_files_array
|
|
29
|
+
|
|
27
30
|
if File.exist?(File.join(__dir__, 'dist/lib/libViroReact.a'))
|
|
28
31
|
s.vendored_libraries = 'dist/lib/libViroReact.a'
|
|
29
32
|
end
|
|
@@ -40,7 +43,6 @@ Pod::Spec.new do |s|
|
|
|
40
43
|
s.pod_target_xcconfig = {
|
|
41
44
|
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
|
|
42
45
|
'HEADER_SEARCH_PATHS' => [
|
|
43
|
-
'"$(PODS_TARGET_SRCROOT)/ViroFabric"',
|
|
44
46
|
'"$(PODS_TARGET_SRCROOT)/ViroReact"',
|
|
45
47
|
'"$(PODS_TARGET_SRCROOT)/dist/include"',
|
|
46
48
|
'"$(PODS_ROOT)/Headers/Public"',
|
|
@@ -52,8 +54,4 @@ Pod::Spec.new do |s|
|
|
|
52
54
|
'OTHER_CPLUSPLUSFLAGS' => '$(inherited) -std=c++17'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
# User target configuration for consumers
|
|
56
|
-
s.user_target_xcconfig = {
|
|
57
|
-
'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/ViroReact/ViroFabric"'
|
|
58
|
-
}
|
|
59
57
|
end
|
|
@@ -212,6 +212,17 @@ FOUNDATION_EXPORT const unsigned char ViroKitVersionString[];
|
|
|
212
212
|
#import <ViroKit/VROARObjectTarget.h>
|
|
213
213
|
#import <ViroKit/VROARObjectTargetiOS.h>
|
|
214
214
|
|
|
215
|
+
// Advanced AR Features (New)
|
|
216
|
+
#import <ViroKit/VROARGeospatialAnchor.h>
|
|
217
|
+
#import <ViroKit/VROARLocationAnchoriOS.h>
|
|
218
|
+
#import <ViroKit/VROARSceneSemantics.h>
|
|
219
|
+
#import <ViroKit/VROARSceneUnderstandingiOS.h>
|
|
220
|
+
#import <ViroKit/VROARAugmentedFace.h>
|
|
221
|
+
#import <ViroKit/VROARFaceTrackingiOS.h>
|
|
222
|
+
#import <ViroKit/VROARCloudAnchor.h>
|
|
223
|
+
#import <ViroKit/VROARMemoryManager.h>
|
|
224
|
+
#import <ViroKit/VROARPerformanceOptimizer.h>
|
|
225
|
+
|
|
215
226
|
// Test
|
|
216
227
|
#import <ViroKit/VRORendererTest.h>
|
|
217
228
|
#import <ViroKit/VRORendererTestHarness.h>
|
|
Binary file
|
|
Binary file
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,23 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"PaddingReflection" : 1,
|
|
33
|
-
"ActivationLinear" : 68,
|
|
34
|
-
"ActivationSigmoidHard" : 34,
|
|
35
|
-
"Add" : 10,
|
|
36
|
-
"ActivationTanh" : 1,
|
|
37
|
-
"BatchNorm" : 51,
|
|
38
|
-
"Convolution" : 62,
|
|
39
|
-
"UpsampleNearestNeighbor" : 5
|
|
40
|
-
},
|
|
41
34
|
"modelType" : {
|
|
42
35
|
"name" : "MLModelType_neuralNetwork"
|
|
43
36
|
},
|
|
44
37
|
"userDefinedMetadata" : {
|
|
45
38
|
|
|
46
39
|
},
|
|
47
|
-
"generatedClassName" : "bodymesh",
|
|
48
40
|
"inputSchema" : [
|
|
49
41
|
{
|
|
50
42
|
"height" : "224",
|
|
@@ -59,6 +51,17 @@
|
|
|
59
51
|
"name" : "image"
|
|
60
52
|
}
|
|
61
53
|
],
|
|
54
|
+
"generatedClassName" : "bodymesh",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"PaddingReflection" : 1,
|
|
57
|
+
"ActivationLinear" : 68,
|
|
58
|
+
"ActivationSigmoidHard" : 34,
|
|
59
|
+
"Add" : 10,
|
|
60
|
+
"UpsampleINVALID" : 5,
|
|
61
|
+
"BatchNorm" : 51,
|
|
62
|
+
"Convolution" : 62,
|
|
63
|
+
"ActivationTanh" : 1
|
|
64
|
+
},
|
|
62
65
|
"method" : "predict"
|
|
63
66
|
}
|
|
64
67
|
]
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,21 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"UpsampleNearestNeighbor" : 8,
|
|
33
|
-
"PoolingMax" : 9,
|
|
34
|
-
"Convolution" : 71,
|
|
35
|
-
"BatchNorm" : 68,
|
|
36
|
-
"ActivationReLU" : 67,
|
|
37
|
-
"Add" : 31
|
|
38
|
-
},
|
|
39
34
|
"modelType" : {
|
|
40
35
|
"name" : "MLModelType_neuralNetwork"
|
|
41
36
|
},
|
|
42
37
|
"userDefinedMetadata" : {
|
|
43
38
|
|
|
44
39
|
},
|
|
45
|
-
"generatedClassName" : "hourglass_2_1",
|
|
46
40
|
"inputSchema" : [
|
|
47
41
|
{
|
|
48
42
|
"height" : "256",
|
|
@@ -57,6 +51,15 @@
|
|
|
57
51
|
"name" : "image"
|
|
58
52
|
}
|
|
59
53
|
],
|
|
54
|
+
"generatedClassName" : "hourglass_2_1",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"UpsampleINVALID" : 8,
|
|
57
|
+
"Convolution" : 71,
|
|
58
|
+
"PoolingINVALID" : 9,
|
|
59
|
+
"BatchNorm" : 68,
|
|
60
|
+
"ActivationReLU" : 67,
|
|
61
|
+
"Add" : 31
|
|
62
|
+
},
|
|
60
63
|
"method" : "predict"
|
|
61
64
|
}
|
|
62
65
|
]
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,21 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"UpsampleNearestNeighbor" : 8,
|
|
33
|
-
"PoolingMax" : 9,
|
|
34
|
-
"Convolution" : 71,
|
|
35
|
-
"BatchNorm" : 68,
|
|
36
|
-
"ActivationReLU" : 67,
|
|
37
|
-
"Add" : 31
|
|
38
|
-
},
|
|
39
34
|
"modelType" : {
|
|
40
35
|
"name" : "MLModelType_neuralNetwork"
|
|
41
36
|
},
|
|
42
37
|
"userDefinedMetadata" : {
|
|
43
38
|
|
|
44
39
|
},
|
|
45
|
-
"generatedClassName" : "hourglass_2_1_ds_t",
|
|
46
40
|
"inputSchema" : [
|
|
47
41
|
{
|
|
48
42
|
"height" : "256",
|
|
@@ -57,6 +51,15 @@
|
|
|
57
51
|
"name" : "image"
|
|
58
52
|
}
|
|
59
53
|
],
|
|
54
|
+
"generatedClassName" : "hourglass_2_1_ds_t",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"UpsampleINVALID" : 8,
|
|
57
|
+
"Convolution" : 71,
|
|
58
|
+
"PoolingINVALID" : 9,
|
|
59
|
+
"BatchNorm" : 68,
|
|
60
|
+
"ActivationReLU" : 67,
|
|
61
|
+
"Add" : 31
|
|
62
|
+
},
|
|
60
63
|
"method" : "predict"
|
|
61
64
|
}
|
|
62
65
|
]
|