@reactvision/react-viro 2.44.1 → 2.44.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/viro_renderer/viro_renderer-release.aar +0 -0
- package/components/Material/ViroMaterials.ts +4 -2
- package/components/Utilities/ViroVersion.ts +1 -1
- package/dist/components/Material/ViroMaterials.js +2 -2
- package/dist/components/Utilities/ViroVersion.d.ts +1 -1
- package/dist/components/Utilities/ViroVersion.js +1 -1
- package/ios/dist/ViroRenderer/ViroKit.framework/Headers/VROARPlaneAnchor.h +9 -7
- package/ios/dist/ViroRenderer/ViroKit.framework/ViroKit +0 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Headers/VROARPlaneAnchor.h +9 -7
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/ViroKit +0 -0
- package/package.json +3 -3
|
Binary file
|
|
@@ -16,8 +16,10 @@ import {
|
|
|
16
16
|
NativeModules,
|
|
17
17
|
processColor,
|
|
18
18
|
} from "react-native";
|
|
19
|
+
|
|
19
20
|
// @ts-ignore
|
|
20
|
-
import
|
|
21
|
+
import { getAssetByID } from "react-native/Libraries/Image/AssetRegistry";
|
|
22
|
+
|
|
21
23
|
// @ts-ignore
|
|
22
24
|
import resolveAssetSource from "react-native/Libraries/Image/resolveAssetSource";
|
|
23
25
|
import { ViroSource } from "../Types/ViroUtils";
|
|
@@ -104,7 +106,7 @@ export class ViroMaterials {
|
|
|
104
106
|
} else {
|
|
105
107
|
var assetType = "unknown";
|
|
106
108
|
if (typeof material[prop] !== "object") {
|
|
107
|
-
var asset =
|
|
109
|
+
var asset = getAssetByID(material[prop]);
|
|
108
110
|
if (asset) {
|
|
109
111
|
assetType = asset.type;
|
|
110
112
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VIRO_VERSION = "2.44.
|
|
1
|
+
export const VIRO_VERSION = "2.44.2";
|
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.ViroMaterials = void 0;
|
|
18
18
|
const react_native_1 = require("react-native");
|
|
19
19
|
// @ts-ignore
|
|
20
|
-
const AssetRegistry_1 =
|
|
20
|
+
const AssetRegistry_1 = require("react-native/Libraries/Image/AssetRegistry");
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
const resolveAssetSource_1 = __importDefault(require("react-native/Libraries/Image/resolveAssetSource"));
|
|
23
23
|
var MaterialManager = react_native_1.NativeModules.VRTMaterialManager;
|
|
@@ -47,7 +47,7 @@ class ViroMaterials {
|
|
|
47
47
|
else {
|
|
48
48
|
var assetType = "unknown";
|
|
49
49
|
if (typeof material[prop] !== "object") {
|
|
50
|
-
var asset = AssetRegistry_1.
|
|
50
|
+
var asset = (0, AssetRegistry_1.getAssetByID)(material[prop]);
|
|
51
51
|
if (asset) {
|
|
52
52
|
assetType = asset.type;
|
|
53
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VIRO_VERSION = "2.44.
|
|
1
|
+
export declare const VIRO_VERSION = "2.44.2";
|
|
@@ -33,14 +33,16 @@
|
|
|
33
33
|
#include <chrono>
|
|
34
34
|
|
|
35
35
|
/*
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
ENABLED: Change detection and update throttling to reduce noise and artifacts.
|
|
37
|
+
This filters out small plane changes and prevents excessive updates, which is
|
|
38
|
+
particularly important for vertical plane detection where ARCore can be noisy.
|
|
39
|
+
|
|
40
|
+
Thresholds:
|
|
41
|
+
- Minimum extent change: 1cm or 5%
|
|
42
|
+
- Minimum center change: 1cm
|
|
43
|
+
- Update throttle: 100ms (10 updates/sec max)
|
|
42
44
|
*/
|
|
43
|
-
|
|
45
|
+
#define VRO_PLANE_CHANGE_DETECTION_ENABLED
|
|
44
46
|
|
|
45
47
|
enum class VROARPlaneAlignment {
|
|
46
48
|
Horizontal = 0x1,
|
|
Binary file
|
|
@@ -33,14 +33,16 @@
|
|
|
33
33
|
#include <chrono>
|
|
34
34
|
|
|
35
35
|
/*
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
ENABLED: Change detection and update throttling to reduce noise and artifacts.
|
|
37
|
+
This filters out small plane changes and prevents excessive updates, which is
|
|
38
|
+
particularly important for vertical plane detection where ARCore can be noisy.
|
|
39
|
+
|
|
40
|
+
Thresholds:
|
|
41
|
+
- Minimum extent change: 1cm or 5%
|
|
42
|
+
- Minimum center change: 1cm
|
|
43
|
+
- Update throttle: 100ms (10 updates/sec max)
|
|
42
44
|
*/
|
|
43
|
-
|
|
45
|
+
#define VRO_PLANE_CHANGE_DETECTION_ENABLED
|
|
44
46
|
|
|
45
47
|
enum class VROARPlaneAlignment {
|
|
46
48
|
Horizontal = 0x1,
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"main": "dist/index.js",
|
|
4
4
|
"module": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
|
-
"version": "2.44.
|
|
6
|
+
"version": "2.44.2",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -88,6 +88,6 @@
|
|
|
88
88
|
"bugs": {
|
|
89
89
|
"url": "https://github.com/ReactVision/viro/issues"
|
|
90
90
|
},
|
|
91
|
-
"homepage": "https://
|
|
92
|
-
"author": ""
|
|
91
|
+
"homepage": "https://reactvision.xyz/viro-react",
|
|
92
|
+
"author": "ReactVision, Inc"
|
|
93
93
|
}
|