react_hsbc_teller 1.7.0 → 1.7.1
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/demo/pdf.js +2 -1
- package/packages/pages/video/video.jsx +8 -4
package/package.json
CHANGED
package/packages/demo/pdf.js
CHANGED
|
@@ -55,8 +55,9 @@ handleResourcePath = (event) => {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
render() {
|
|
58
|
+
console.log('22',this.props)
|
|
58
59
|
return (
|
|
59
|
-
<div className="test">
|
|
60
|
+
<div className="test" style={{width: this.props.width,height:this.props.height}}>
|
|
60
61
|
{
|
|
61
62
|
<div>
|
|
62
63
|
坐席账号:<input placeholder="请输入坐席账号" value={this.state.tellerAccount} onChange={e => this.handleChangeTeller(e)}></input>
|
|
@@ -112,6 +112,8 @@ class Video extends Component {
|
|
|
112
112
|
isScreenSwitching: false,
|
|
113
113
|
whiteboardWidth: '',
|
|
114
114
|
whiteboardHeight: '',
|
|
115
|
+
whiteboardTop: '',
|
|
116
|
+
whiteboardLeft: '',
|
|
115
117
|
laveRoomSharedScreen: false,
|
|
116
118
|
isJoinRoom: false,
|
|
117
119
|
sessionType: false,
|
|
@@ -3724,7 +3726,7 @@ userType:'1'
|
|
|
3724
3726
|
// publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
3725
3727
|
publish_config.enableDesktopAudio=true
|
|
3726
3728
|
publish_config.degradationType=2
|
|
3727
|
-
publish_config.desktopStreamToCanvas=
|
|
3729
|
+
publish_config.desktopStreamToCanvas=false
|
|
3728
3730
|
publish_config.sid = document.getElementById('video20').name
|
|
3729
3731
|
this.test_controller.ChangeMediaStream(publish_config)
|
|
3730
3732
|
this.state.isScreenSwitching = true
|
|
@@ -3736,7 +3738,7 @@ userType:'1'
|
|
|
3736
3738
|
// publish_config.video_profile_type=100
|
|
3737
3739
|
// publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
3738
3740
|
publish_config.enableDesktopAudio=true
|
|
3739
|
-
publish_config.desktopStreamToCanvas=
|
|
3741
|
+
publish_config.desktopStreamToCanvas=false
|
|
3740
3742
|
publish_config.degradationType=2
|
|
3741
3743
|
publish_config.sid = document.getElementById('video20').name;
|
|
3742
3744
|
this.test_controller.ChangeMediaStream(publish_config);
|
|
@@ -3745,7 +3747,7 @@ userType:'1'
|
|
|
3745
3747
|
publish_config.publish_device = 2
|
|
3746
3748
|
publish_config.need_volume_analyser = true
|
|
3747
3749
|
publish_config.video_profile_type = 1
|
|
3748
|
-
publish_config.desktopStreamToCanvas=
|
|
3750
|
+
publish_config.desktopStreamToCanvas=false
|
|
3749
3751
|
// publish_config.video_profile_type=100
|
|
3750
3752
|
// publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
3751
3753
|
publish_config.enableDesktopAudio=true
|
|
@@ -4644,6 +4646,8 @@ userType:'1'
|
|
|
4644
4646
|
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
4645
4647
|
this.state.whiteboardWidth = box.offsetWidth,
|
|
4646
4648
|
this.state.whiteboardHeight = box.offsetHeight * 0.92,
|
|
4649
|
+
this.state.whiteboardTop = box.getBoundingClientRect().top * 1.08 - 40
|
|
4650
|
+
this.state.whiteboardLeft = box.getBoundingClientRect().left
|
|
4647
4651
|
console.log('whiteboardDIV', this.state.whiteboardHeight,box.clientHeight,this.state.whiteboardWidth)
|
|
4648
4652
|
}
|
|
4649
4653
|
}
|
|
@@ -4933,7 +4937,7 @@ userType:'1'
|
|
|
4933
4937
|
{tabTitleList}
|
|
4934
4938
|
{/* <img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" /> */}
|
|
4935
4939
|
<div id="whiteboardDIV" style={{height: 'calc(100% - 33px)'}}>
|
|
4936
|
-
<CanvasHome zIndexNum={this.state.zIndexNum} style={{width: this.state.whiteboardWidth,height: this.state.whiteboardHeight}}>
|
|
4940
|
+
<CanvasHome zIndexNum={this.state.zIndexNum} style={{width: this.state.whiteboardWidth,height: this.state.whiteboardHeight,top: this.state.whiteboardTop,left:this.state.whiteboardLeft}}>
|
|
4937
4941
|
{this.state.operateShow &&
|
|
4938
4942
|
<OpreateDiv id="operate">
|
|
4939
4943
|
<span style={{color: this.state.selectSpan == 'pen' ? '#1890ff' : '#333'}} onClick={() => this.setTool('pen')}>铅笔</span>
|