pannellum-react
Advanced tools
Comparing version
@@ -64,2 +64,5 @@ var _class, _temp; | ||
panorama: _this.props.image, | ||
haov: _this.props.haov, | ||
vaov: _this.props.vaov, | ||
vOffset: _this.props.vOffset, | ||
yaw: _this.props.yaw, | ||
@@ -87,6 +90,8 @@ pitch: _this.props.pitch, | ||
draggable: _this.props.draggable, | ||
disableKeyboardCtrl: _this.props.disableKeyboardCtrl, | ||
showFullscreenCtrl: _this.props.showFullscreenCtrl, | ||
showControls: _this.props.showControls, | ||
hotSpotDebug: _this.props.hotspotDebug, | ||
hotSpots: hotspotArray | ||
hotSpots: hotspotArray, | ||
onRender: _this.props.onRender | ||
}; | ||
@@ -198,2 +203,5 @@ | ||
image: "", | ||
haov: 360, | ||
vaov: 180, | ||
vOffset: 0, | ||
yaw: 0, | ||
@@ -221,2 +229,3 @@ pitch: 0, | ||
draggable: true, | ||
disableKeyboardCtrl: false, | ||
showFullscreenCtrl: true, | ||
@@ -233,3 +242,4 @@ showControls: true, | ||
onTouchend: function onTouchend() {}, | ||
hotspotDebug: false | ||
hotspotDebug: false, | ||
onRender: null | ||
}, _temp); | ||
@@ -242,2 +252,5 @@ Pannellum.propTypes = process.env.NODE_ENV !== "production" ? { | ||
image: propTypes.string, | ||
haov: propTypes.number, | ||
vaov: propTypes.number, | ||
vOffset: propTypes.number, | ||
yaw: propTypes.number, | ||
@@ -265,2 +278,3 @@ pitch: propTypes.number, | ||
draggable: propTypes.bool, | ||
disableKeyboardCtrl: propTypes.bool, | ||
showFullscreenCtrl: propTypes.bool, | ||
@@ -282,3 +296,4 @@ showControls: propTypes.bool, | ||
handleClickArg: propTypes.object, | ||
cssClass: propTypes.string | ||
cssClass: propTypes.string, | ||
onRender: propTypes.func | ||
} : {}; | ||
@@ -285,0 +300,0 @@ |
@@ -79,2 +79,5 @@ "use strict"; | ||
panorama: _this.props.image, | ||
haov: _this.props.haov, | ||
vaov: _this.props.vaov, | ||
vOffset: _this.props.vOffset, | ||
yaw: _this.props.yaw, | ||
@@ -102,6 +105,8 @@ pitch: _this.props.pitch, | ||
draggable: _this.props.draggable, | ||
disableKeyboardCtrl: _this.props.disableKeyboardCtrl, | ||
showFullscreenCtrl: _this.props.showFullscreenCtrl, | ||
showControls: _this.props.showControls, | ||
hotSpotDebug: _this.props.hotspotDebug, | ||
hotSpots: hotspotArray | ||
hotSpots: hotspotArray, | ||
onRender: _this.props.onRender | ||
}; | ||
@@ -213,2 +218,5 @@ | ||
image: "", | ||
haov: 360, | ||
vaov: 180, | ||
vOffset: 0, | ||
yaw: 0, | ||
@@ -236,2 +244,3 @@ pitch: 0, | ||
draggable: true, | ||
disableKeyboardCtrl: false, | ||
showFullscreenCtrl: true, | ||
@@ -248,3 +257,4 @@ showControls: true, | ||
onTouchend: function onTouchend() {}, | ||
hotspotDebug: false | ||
hotspotDebug: false, | ||
onRender: null | ||
}, _temp); | ||
@@ -257,2 +267,5 @@ Pannellum.propTypes = process.env.NODE_ENV !== "production" ? { | ||
image: _propTypes2.default.string, | ||
haov: _propTypes2.default.number, | ||
vaov: _propTypes2.default.number, | ||
vOffset: _propTypes2.default.number, | ||
yaw: _propTypes2.default.number, | ||
@@ -280,2 +293,3 @@ pitch: _propTypes2.default.number, | ||
draggable: _propTypes2.default.bool, | ||
disableKeyboardCtrl: _propTypes2.default.bool, | ||
showFullscreenCtrl: _propTypes2.default.bool, | ||
@@ -297,3 +311,4 @@ showControls: _propTypes2.default.bool, | ||
handleClickArg: _propTypes2.default.object, | ||
cssClass: _propTypes2.default.string | ||
cssClass: _propTypes2.default.string, | ||
onRender: _propTypes2.default.func | ||
} : {}; | ||
@@ -300,0 +315,0 @@ |
{ | ||
"name": "pannellum-react", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "Pannellum React Component", | ||
@@ -31,3 +31,3 @@ "main": "lib/index.js", | ||
"codecov.io": "^0.1.6", | ||
"coveralls": "^3.0.2", | ||
"coveralls": "^3.0.3", | ||
"enzyme": "^3.3.0", | ||
@@ -34,0 +34,0 @@ "enzyme-adapter-react-16": "^1.1.1", |
@@ -137,2 +137,5 @@ # pannellum-react | ||
| image | String | "" | The 360 image path | | ||
| haov | Number | 360 | Initial horizontal angle of view | | ||
| vaov | Number | 180 | Initial vertical angle of view | | ||
| vOffsect | Number | 0 | Initial vertical offset angle | | ||
| yaw | Number | 0 | Starting yaw position in degrees | | ||
@@ -253,2 +256,5 @@ | pitch | Number | 0 | Starting pitch position in degrees | | ||
image={myImage} | ||
haov={180} | ||
vaov={90} | ||
vOffset={1} | ||
pitch={10} | ||
@@ -255,0 +261,0 @@ yaw={180} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
5724256
0.07%70005
0.08%323
1.89%