@reactvision/react-viro 2.41.6 → 2.43.0
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/react_viro/react_viro-release.aar +0 -0
- package/components/AR/ViroARPlaneSelector.tsx +76 -37
- package/components/AR/ViroARScene.tsx +7 -4
- package/components/AR/ViroARSceneNavigator.tsx +1 -2
- package/components/Utilities/ViroVersion.ts +1 -1
- package/components/Viro3DSceneNavigator.tsx +1 -1
- package/components/ViroCamera.tsx +1 -0
- package/components/ViroOrbitCamera.tsx +1 -0
- package/components/ViroScene.tsx +7 -3
- package/components/ViroSceneContext.tsx +4 -3
- package/components/ViroSceneNavigator.tsx +1 -1
- package/dist/components/AR/ViroARCamera.d.ts +1 -1
- package/dist/components/AR/ViroARCamera.js +17 -7
- package/dist/components/AR/ViroARImageMarker.d.ts +2 -2
- package/dist/components/AR/ViroARImageMarker.js +17 -7
- package/dist/components/AR/ViroARObjectMarker.d.ts +2 -2
- package/dist/components/AR/ViroARObjectMarker.js +17 -7
- package/dist/components/AR/ViroARPlane.d.ts +2 -2
- package/dist/components/AR/ViroARPlane.js +17 -7
- package/dist/components/AR/ViroARPlaneSelector.d.ts +3 -3
- package/dist/components/AR/ViroARPlaneSelector.js +63 -25
- package/dist/components/AR/ViroARScene.d.ts +2 -2
- package/dist/components/AR/ViroARScene.js +17 -7
- package/dist/components/AR/ViroARSceneNavigator.d.ts +2 -2
- package/dist/components/AR/ViroARSceneNavigator.js +17 -9
- package/dist/components/Types/ViroEvents.d.ts +6 -6
- package/dist/components/Types/ViroEvents.js +6 -6
- package/dist/components/Types/ViroUtils.d.ts +0 -1
- package/dist/components/Utilities/ViroProps.js +1 -2
- package/dist/components/Utilities/ViroUtils.js +3 -4
- package/dist/components/Utilities/ViroVersion.d.ts +1 -1
- package/dist/components/Utilities/ViroVersion.js +1 -1
- package/dist/components/Viro360Image.d.ts +1 -1
- package/dist/components/Viro360Image.js +17 -7
- package/dist/components/Viro360Video.d.ts +1 -1
- package/dist/components/Viro360Video.js +17 -7
- package/dist/components/Viro3DObject.d.ts +2 -2
- package/dist/components/Viro3DObject.js +17 -7
- package/dist/components/Viro3DSceneNavigator.d.ts +2 -2
- package/dist/components/Viro3DSceneNavigator.js +17 -7
- package/dist/components/ViroAmbientLight.d.ts +1 -1
- package/dist/components/ViroAmbientLight.js +17 -7
- package/dist/components/ViroAnimatedComponent.d.ts +1 -1
- package/dist/components/ViroAnimatedComponent.js +17 -7
- package/dist/components/ViroAnimatedImage.d.ts +2 -2
- package/dist/components/ViroAnimatedImage.js +17 -7
- package/dist/components/ViroBase.js +17 -7
- package/dist/components/ViroBox.d.ts +2 -2
- package/dist/components/ViroBox.js +17 -7
- package/dist/components/ViroButton.d.ts +1 -1
- package/dist/components/ViroButton.js +18 -8
- package/dist/components/ViroCamera.d.ts +3 -1
- package/dist/components/ViroCamera.js +17 -7
- package/dist/components/ViroConstants.js +3 -3
- package/dist/components/ViroController.d.ts +1 -1
- package/dist/components/ViroController.js +17 -7
- package/dist/components/ViroDirectionalLight.d.ts +1 -1
- package/dist/components/ViroDirectionalLight.js +17 -7
- package/dist/components/ViroFlexView.d.ts +2 -2
- package/dist/components/ViroFlexView.js +17 -7
- package/dist/components/ViroGeometry.d.ts +2 -2
- package/dist/components/ViroGeometry.js +17 -7
- package/dist/components/ViroImage.d.ts +2 -2
- package/dist/components/ViroImage.js +17 -7
- package/dist/components/ViroLightingEnvironment.d.ts +1 -1
- package/dist/components/ViroLightingEnvironment.js +17 -7
- package/dist/components/ViroMaterialVideo.d.ts +1 -1
- package/dist/components/ViroMaterialVideo.js +17 -7
- package/dist/components/ViroNode.d.ts +2 -2
- package/dist/components/ViroNode.js +17 -7
- package/dist/components/ViroOmniLight.d.ts +1 -1
- package/dist/components/ViroOmniLight.js +17 -7
- package/dist/components/ViroOrbitCamera.d.ts +3 -1
- package/dist/components/ViroOrbitCamera.js +17 -7
- package/dist/components/ViroParticleEmitter.d.ts +1 -1
- package/dist/components/ViroParticleEmitter.js +17 -7
- package/dist/components/ViroPolygon.d.ts +2 -2
- package/dist/components/ViroPolygon.js +17 -7
- package/dist/components/ViroPolyline.d.ts +2 -2
- package/dist/components/ViroPolyline.js +17 -7
- package/dist/components/ViroPortal.d.ts +2 -2
- package/dist/components/ViroPortal.js +17 -7
- package/dist/components/ViroPortalScene.d.ts +2 -2
- package/dist/components/ViroPortalScene.js +17 -7
- package/dist/components/ViroQuad.d.ts +2 -2
- package/dist/components/ViroQuad.js +17 -7
- package/dist/components/ViroScene.d.ts +10 -2
- package/dist/components/ViroScene.js +17 -7
- package/dist/components/ViroSceneContext.d.ts +4 -3
- package/dist/components/ViroSceneContext.js +17 -7
- package/dist/components/ViroSceneNavigator.d.ts +2 -2
- package/dist/components/ViroSceneNavigator.js +17 -7
- package/dist/components/ViroSkyBox.d.ts +1 -1
- package/dist/components/ViroSkyBox.js +17 -7
- package/dist/components/ViroSound.d.ts +1 -1
- package/dist/components/ViroSound.js +17 -7
- package/dist/components/ViroSoundField.d.ts +1 -1
- package/dist/components/ViroSoundField.js +17 -7
- package/dist/components/ViroSpatialSound.d.ts +1 -1
- package/dist/components/ViroSpatialSound.js +17 -7
- package/dist/components/ViroSphere.d.ts +2 -2
- package/dist/components/ViroSphere.js +17 -7
- package/dist/components/ViroSpinner.d.ts +2 -2
- package/dist/components/ViroSpinner.js +17 -7
- package/dist/components/ViroSpotLight.d.ts +1 -1
- package/dist/components/ViroSpotLight.js +17 -7
- package/dist/components/ViroSurface.d.ts +2 -2
- package/dist/components/ViroSurface.js +17 -7
- package/dist/components/ViroText.d.ts +2 -2
- package/dist/components/ViroText.js +17 -7
- package/dist/components/ViroVRSceneNavigator.d.ts +2 -2
- package/dist/components/ViroVRSceneNavigator.js +17 -7
- package/dist/components/ViroVideo.d.ts +10 -2
- package/dist/components/ViroVideo.js +17 -7
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -3
- package/dist/plugins/withViroAndroid.js +15 -11
- package/dist/plugins/withViroIos.js +1 -1
- package/index.ts +0 -2
- package/package.json +23 -14
- package/components/Telemetry/ViroTelemetry.ts +0 -93
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
47
|
exports.ViroButton = exports.ViroButtonStateTypes = void 0;
|
|
38
48
|
const React = __importStar(require("react"));
|
|
@@ -45,7 +55,7 @@ var ViroButtonStateTypes;
|
|
|
45
55
|
ViroButtonStateTypes["BTN_TYPE_HOVER"] = "hovering";
|
|
46
56
|
ViroButtonStateTypes["BTN_TYPE_NORMAL"] = "normal";
|
|
47
57
|
ViroButtonStateTypes["BTN_TYPE_CLICKED"] = "clicked";
|
|
48
|
-
})(ViroButtonStateTypes
|
|
58
|
+
})(ViroButtonStateTypes || (exports.ViroButtonStateTypes = ViroButtonStateTypes = {}));
|
|
49
59
|
/**
|
|
50
60
|
* Composite controle for 2D button
|
|
51
61
|
*/
|
|
@@ -13,6 +13,7 @@ import * as React from "react";
|
|
|
13
13
|
import { NativeSyntheticEvent, ViewProps } from "react-native";
|
|
14
14
|
import { ViroAnimationFinishEvent, ViroAnimationStartEvent } from "./Types/ViroEvents";
|
|
15
15
|
import { Viro3DPoint, ViroRotation } from "./Types/ViroUtils";
|
|
16
|
+
import { ViroSceneContext } from "./ViroSceneContext";
|
|
16
17
|
type Props = ViewProps & {
|
|
17
18
|
position?: Viro3DPoint;
|
|
18
19
|
rotation?: ViroRotation;
|
|
@@ -34,12 +35,13 @@ type State = {
|
|
|
34
35
|
export declare class ViroCamera extends React.Component<Props, State> {
|
|
35
36
|
_component: any;
|
|
36
37
|
static contextType?: React.Context<any> | undefined;
|
|
38
|
+
context: React.ContextType<typeof ViroSceneContext>;
|
|
37
39
|
componentDidMount(): void;
|
|
38
40
|
componentWillUnmount(): void;
|
|
39
41
|
componentDidUpdate(prevProps: Props, _prevState: State): void;
|
|
40
42
|
setNativeProps: (nativeProps: any) => void;
|
|
41
43
|
_onAnimationStart: (_event: NativeSyntheticEvent<ViroAnimationStartEvent>) => void;
|
|
42
44
|
_onAnimationFinish: (_event: NativeSyntheticEvent<ViroAnimationFinishEvent>) => void;
|
|
43
|
-
render(): JSX.Element;
|
|
45
|
+
render(): React.JSX.Element;
|
|
44
46
|
}
|
|
45
47
|
export {};
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
47
|
exports.ViroCamera = void 0;
|
|
38
48
|
const React = __importStar(require("react"));
|
|
@@ -23,18 +23,18 @@ var ViroRecordingErrorConstants;
|
|
|
23
23
|
ViroRecordingErrorConstants[ViroRecordingErrorConstants["RECORD_ERROR_WRITE_TO_FILE"] = 3] = "RECORD_ERROR_WRITE_TO_FILE";
|
|
24
24
|
ViroRecordingErrorConstants[ViroRecordingErrorConstants["RECORD_ERROR_ALREADY_RUNNING"] = 4] = "RECORD_ERROR_ALREADY_RUNNING";
|
|
25
25
|
ViroRecordingErrorConstants[ViroRecordingErrorConstants["RECORD_ERROR_ALREADY_STOPPED"] = 5] = "RECORD_ERROR_ALREADY_STOPPED";
|
|
26
|
-
})(ViroRecordingErrorConstants
|
|
26
|
+
})(ViroRecordingErrorConstants || (exports.ViroRecordingErrorConstants = ViroRecordingErrorConstants = {}));
|
|
27
27
|
var ViroTrackingStateConstants;
|
|
28
28
|
(function (ViroTrackingStateConstants) {
|
|
29
29
|
// Viro AR Tracking constants,
|
|
30
30
|
ViroTrackingStateConstants[ViroTrackingStateConstants["TRACKING_UNAVAILABLE"] = 1] = "TRACKING_UNAVAILABLE";
|
|
31
31
|
ViroTrackingStateConstants[ViroTrackingStateConstants["TRACKING_LIMITED"] = 2] = "TRACKING_LIMITED";
|
|
32
32
|
ViroTrackingStateConstants[ViroTrackingStateConstants["TRACKING_NORMAL"] = 3] = "TRACKING_NORMAL";
|
|
33
|
-
})(ViroTrackingStateConstants
|
|
33
|
+
})(ViroTrackingStateConstants || (exports.ViroTrackingStateConstants = ViroTrackingStateConstants = {}));
|
|
34
34
|
var ViroARTrackingReasonConstants;
|
|
35
35
|
(function (ViroARTrackingReasonConstants) {
|
|
36
36
|
// Viro AR Tracking reason constants,
|
|
37
37
|
ViroARTrackingReasonConstants[ViroARTrackingReasonConstants["TRACKING_REASON_NONE"] = 1] = "TRACKING_REASON_NONE";
|
|
38
38
|
ViroARTrackingReasonConstants[ViroARTrackingReasonConstants["TRACKING_REASON_EXCESSIVE_MOTION"] = 2] = "TRACKING_REASON_EXCESSIVE_MOTION";
|
|
39
39
|
ViroARTrackingReasonConstants[ViroARTrackingReasonConstants["TRACKING_REASON_INSUFFICIENT_FEATURES"] = 3] = "TRACKING_REASON_INSUFFICIENT_FEATURES";
|
|
40
|
-
})(ViroARTrackingReasonConstants
|
|
40
|
+
})(ViroARTrackingReasonConstants || (exports.ViroARTrackingReasonConstants = ViroARTrackingReasonConstants = {}));
|
|
@@ -23,6 +23,6 @@ export declare class ViroController extends React.Component<Props> {
|
|
|
23
23
|
getControllerForwardAsync(): Promise<any>;
|
|
24
24
|
setNativeProps(nativeProps: Props): void;
|
|
25
25
|
_onDrag(event: NativeSyntheticEvent<ViroDragEvent>): void;
|
|
26
|
-
render(): JSX.Element;
|
|
26
|
+
render(): React.JSX.Element;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -23,13 +23,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
23
23
|
}) : function(o, v) {
|
|
24
24
|
o["default"] = v;
|
|
25
25
|
});
|
|
26
|
-
var __importStar = (this && this.__importStar) || function (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
26
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
27
|
+
var ownKeys = function(o) {
|
|
28
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
29
|
+
var ar = [];
|
|
30
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
31
|
+
return ar;
|
|
32
|
+
};
|
|
33
|
+
return ownKeys(o);
|
|
34
|
+
};
|
|
35
|
+
return function (mod) {
|
|
36
|
+
if (mod && mod.__esModule) return mod;
|
|
37
|
+
var result = {};
|
|
38
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
39
|
+
__setModuleDefault(result, mod);
|
|
40
|
+
return result;
|
|
41
|
+
};
|
|
42
|
+
})();
|
|
33
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
44
|
exports.ViroController = void 0;
|
|
35
45
|
const React = __importStar(require("react"));
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
47
|
exports.ViroDirectionalLight = void 0;
|
|
38
48
|
const React = __importStar(require("react"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { ViroStyle } from "./Styles/ViroStyle";
|
|
3
3
|
import { ViroBase } from "./ViroBase";
|
|
4
4
|
type Props = {
|
|
@@ -8,6 +8,6 @@ type Props = {
|
|
|
8
8
|
* Used to render a ViroFlexView
|
|
9
9
|
*/
|
|
10
10
|
export declare class ViroFlexView extends ViroBase<Props> {
|
|
11
|
-
render(): JSX.Element;
|
|
11
|
+
render(): React.JSX.Element;
|
|
12
12
|
}
|
|
13
13
|
export {};
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
47
|
exports.ViroFlexView = void 0;
|
|
38
48
|
const React = __importStar(require("react"));
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
7
7
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
import * as React from "react";
|
|
10
10
|
import { Viro2DPoint, Viro3DPoint } from "./Types/ViroUtils";
|
|
11
11
|
import { ViroBase } from "./ViroBase";
|
|
12
12
|
type Props = {
|
|
@@ -16,6 +16,6 @@ type Props = {
|
|
|
16
16
|
triangleIndices?: Viro3DPoint[];
|
|
17
17
|
};
|
|
18
18
|
export declare class ViroGeometry extends ViroBase<Props> {
|
|
19
|
-
render(): JSX.Element;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -23,13 +23,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
23
23
|
}) : function(o, v) {
|
|
24
24
|
o["default"] = v;
|
|
25
25
|
});
|
|
26
|
-
var __importStar = (this && this.__importStar) || function (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
26
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
27
|
+
var ownKeys = function(o) {
|
|
28
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
29
|
+
var ar = [];
|
|
30
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
31
|
+
return ar;
|
|
32
|
+
};
|
|
33
|
+
return ownKeys(o);
|
|
34
|
+
};
|
|
35
|
+
return function (mod) {
|
|
36
|
+
if (mod && mod.__esModule) return mod;
|
|
37
|
+
var result = {};
|
|
38
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
39
|
+
__setModuleDefault(result, mod);
|
|
40
|
+
return result;
|
|
41
|
+
};
|
|
42
|
+
})();
|
|
33
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
44
|
exports.ViroGeometry = void 0;
|
|
35
45
|
const React = __importStar(require("react"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { NativeSyntheticEvent } from "react-native";
|
|
3
3
|
import { ViroStyle } from "./Styles/ViroStyle";
|
|
4
4
|
import { ViroLoadEndEvent, ViroLoadStartEvent } from "./Types/ViroEvents";
|
|
@@ -43,7 +43,7 @@ type Props = {
|
|
|
43
43
|
export declare class ViroImage extends ViroBase<Props> {
|
|
44
44
|
_onLoadStart: (event: NativeSyntheticEvent<ViroLoadStartEvent>) => void;
|
|
45
45
|
_onLoadEnd: (event: NativeSyntheticEvent<ViroLoadEndEvent>) => void;
|
|
46
|
-
render(): JSX.Element;
|
|
46
|
+
render(): React.JSX.Element;
|
|
47
47
|
static evictFromCache: (imageSource: ViroSource) => void;
|
|
48
48
|
}
|
|
49
49
|
export {};
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
47
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
48
|
};
|
|
@@ -37,6 +37,6 @@ export declare class ViroLightingEnvironment extends React.Component<Props> {
|
|
|
37
37
|
_onLoadEnd: (event: NativeSyntheticEvent<ViroLoadEndEvent>) => void;
|
|
38
38
|
_onError: (event: NativeSyntheticEvent<ViroLoadErrorEvent>) => void;
|
|
39
39
|
setNativeProps: (nativeProps: Props) => void;
|
|
40
|
-
render(): JSX.Element;
|
|
40
|
+
render(): React.JSX.Element;
|
|
41
41
|
}
|
|
42
42
|
export {};
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
47
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
48
|
};
|
|
@@ -51,7 +51,7 @@ export declare class ViroMaterialVideo extends React.Component<Props> {
|
|
|
51
51
|
_onError: (event: NativeSyntheticEvent<ViroErrorEvent>) => void;
|
|
52
52
|
_onUpdateTime: (event: NativeSyntheticEvent<ViroVideoUpdateTimeEvent>) => void;
|
|
53
53
|
setNativeProps: (nativeProps: Props) => void;
|
|
54
|
-
render(): JSX.Element;
|
|
54
|
+
render(): React.JSX.Element;
|
|
55
55
|
seekToTime: (timeInSeconds: number) => void;
|
|
56
56
|
}
|
|
57
57
|
export {};
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.ViroMaterialVideo = void 0;
|
|
27
37
|
/**
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @providesModule ViroNode
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
import * as React from "react";
|
|
12
12
|
import { ViroBase } from "./ViroBase";
|
|
13
13
|
/**
|
|
14
14
|
* Absolute container for Viro Controls
|
|
15
15
|
*/
|
|
16
16
|
export declare class ViroNode extends ViroBase<{}> {
|
|
17
|
-
render(): JSX.Element;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
18
|
}
|
|
@@ -25,13 +25,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
25
|
}) : function(o, v) {
|
|
26
26
|
o["default"] = v;
|
|
27
27
|
});
|
|
28
|
-
var __importStar = (this && this.__importStar) || function (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
35
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
46
|
exports.ViroNode = void 0;
|
|
37
47
|
const React = __importStar(require("react"));
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
47
|
exports.ViroOmniLight = void 0;
|
|
38
48
|
const React = __importStar(require("react"));
|
|
@@ -2,6 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { ViewProps } from "react-native";
|
|
3
3
|
import { ViroAnimation } from "./Animation/ViroAnimations";
|
|
4
4
|
import { Viro3DPoint, ViroNativeRef } from "./Types/ViroUtils";
|
|
5
|
+
import { ViroSceneContext } from "./ViroSceneContext";
|
|
5
6
|
export type Props = ViewProps & {
|
|
6
7
|
position?: Viro3DPoint;
|
|
7
8
|
focalPoint?: Viro3DPoint;
|
|
@@ -12,9 +13,10 @@ export type Props = ViewProps & {
|
|
|
12
13
|
export declare class ViroOrbitCamera extends React.Component<Props> {
|
|
13
14
|
_component: ViroNativeRef;
|
|
14
15
|
static contextType?: React.Context<any> | undefined;
|
|
16
|
+
context: React.ContextType<typeof ViroSceneContext>;
|
|
15
17
|
componentDidMount(): void;
|
|
16
18
|
componentWillUnmount(): void;
|
|
17
19
|
componentDidUpdate(prevProps: Props, _prevState: any): void;
|
|
18
20
|
setNativeProps: (nativeProps: Props) => void;
|
|
19
|
-
render(): JSX.Element;
|
|
21
|
+
render(): React.JSX.Element;
|
|
20
22
|
}
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
47
|
exports.ViroOrbitCamera = void 0;
|
|
38
48
|
const React = __importStar(require("react"));
|
|
@@ -106,7 +106,7 @@ export declare class ViroParticleEmitter extends React.Component<Props, State> {
|
|
|
106
106
|
_onNativeTransformUpdate(event: NativeSyntheticEvent<ViroNativeTransformUpdateEvent>): void;
|
|
107
107
|
shouldComponentUpdate(_nextProps: Props, nextState: State): boolean;
|
|
108
108
|
setNativeProps(nativeProps: Props): void;
|
|
109
|
-
render(): JSX.Element | undefined;
|
|
109
|
+
render(): React.JSX.Element | undefined;
|
|
110
110
|
static getDerivedStateFromProps(nextProps: Props, prevState: State): {
|
|
111
111
|
propsPositionState: number[];
|
|
112
112
|
} | {
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
47
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
48
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { ViroStyle } from "./Styles/ViroStyle";
|
|
3
3
|
import { Viro2DPoint, ViroUVCoordinate } from "./Types/ViroUtils";
|
|
4
4
|
import { ViroBase } from "./ViroBase";
|
|
@@ -47,6 +47,6 @@ type Props = {
|
|
|
47
47
|
* Used to render a ViroPolygon
|
|
48
48
|
*/
|
|
49
49
|
export declare class ViroPolygon extends ViroBase<Props> {
|
|
50
|
-
render(): JSX.Element;
|
|
50
|
+
render(): React.JSX.Element;
|
|
51
51
|
}
|
|
52
52
|
export {};
|