@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.
@@ -16,8 +16,10 @@ import {
16
16
  NativeModules,
17
17
  processColor,
18
18
  } from "react-native";
19
+
19
20
  // @ts-ignore
20
- import assetRegistry from "react-native/Libraries/Image/AssetRegistry";
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 = assetRegistry.getAssetByID(material[prop]);
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";
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 = __importDefault(require("react-native/Libraries/Image/AssetRegistry"));
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.default.getAssetByID(material[prop]);
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";
1
+ export declare const VIRO_VERSION = "2.44.2";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VIRO_VERSION = void 0;
4
- exports.VIRO_VERSION = "2.44.1";
4
+ exports.VIRO_VERSION = "2.44.2";
@@ -33,14 +33,16 @@
33
33
  #include <chrono>
34
34
 
35
35
  /*
36
- OPTIONAL: Enable this flag to use change detection and update throttling.
37
- By default, all updates from ARCore/ARKit are passed through for maximum precision.
38
- Enable this only if you need to reduce update frequency for performance reasons.
39
-
40
- WARNING: Enabling this may reduce precision and cause ViroCore to behave differently
41
- from native ARCore/ARKit applications.
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
- // #define VRO_PLANE_CHANGE_DETECTION_ENABLED
45
+ #define VRO_PLANE_CHANGE_DETECTION_ENABLED
44
46
 
45
47
  enum class VROARPlaneAlignment {
46
48
  Horizontal = 0x1,
@@ -33,14 +33,16 @@
33
33
  #include <chrono>
34
34
 
35
35
  /*
36
- OPTIONAL: Enable this flag to use change detection and update throttling.
37
- By default, all updates from ARCore/ARKit are passed through for maximum precision.
38
- Enable this only if you need to reduce update frequency for performance reasons.
39
-
40
- WARNING: Enabling this may reduce precision and cause ViroCore to behave differently
41
- from native ARCore/ARKit applications.
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
- // #define VRO_PLANE_CHANGE_DETECTION_ENABLED
45
+ #define VRO_PLANE_CHANGE_DETECTION_ENABLED
44
46
 
45
47
  enum class VROARPlaneAlignment {
46
48
  Horizontal = 0x1,
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.1",
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://github.com/ReactVision/viro#readme",
92
- "author": ""
91
+ "homepage": "https://reactvision.xyz/viro-react",
92
+ "author": "ReactVision, Inc"
93
93
  }