react_hsbc_teller 1.7.7 → 1.8.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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/foot/foot.jsx +1 -1
- package/packages/pages/video/video.jsx +40 -12
package/package.json
CHANGED
|
@@ -99,7 +99,7 @@ export default class foot extends Component {
|
|
|
99
99
|
</div>
|
|
100
100
|
}
|
|
101
101
|
{
|
|
102
|
-
item == '
|
|
102
|
+
item == 'BACKGROUND'&&<div className='footHover' onClick={this.virtualization.bind(this)}>
|
|
103
103
|
<div className="one">
|
|
104
104
|
<img className="imgClass" src={require("../../assets/img/beijing.png").default} alt="" />
|
|
105
105
|
<div className="text">
|
|
@@ -48,6 +48,7 @@ let beautyDiv = {};
|
|
|
48
48
|
let isBackgroundBlur = true
|
|
49
49
|
let isSuccuseHs = false
|
|
50
50
|
let isGraffiti = false
|
|
51
|
+
let strokeColor = '#333'
|
|
51
52
|
let CanvasHome = styled.div`
|
|
52
53
|
position: fixed;
|
|
53
54
|
z-index: ${props=>props.zIndexNum};
|
|
@@ -2335,15 +2336,7 @@ class Video extends Component {
|
|
|
2335
2336
|
}
|
|
2336
2337
|
}
|
|
2337
2338
|
if(sid == document.getElementById('publish_video1').name) {
|
|
2338
|
-
|
|
2339
|
-
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
2340
|
-
this.setState({
|
|
2341
|
-
whiteboardTop: box.getBoundingClientRect().top * 1.08 - 40,
|
|
2342
|
-
whiteboardLeft: box.getBoundingClientRect().left,
|
|
2343
|
-
leftVideo: (box.offsetWidth - this.state.widthVideo)/2 + box.getBoundingClientRect().left
|
|
2344
|
-
})
|
|
2345
|
-
console.log('whiteboardDIV',this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
2346
|
-
}
|
|
2339
|
+
|
|
2347
2340
|
this.setState({
|
|
2348
2341
|
|
|
2349
2342
|
loading: false,
|
|
@@ -2381,6 +2374,18 @@ class Video extends Component {
|
|
|
2381
2374
|
},
|
|
2382
2375
|
1000
|
|
2383
2376
|
);
|
|
2377
|
+
} else {
|
|
2378
|
+
var box=document.getElementById("whiteboardDIV");
|
|
2379
|
+
var box1 = document.getElementById("operate")
|
|
2380
|
+
var height = box1 ? box1.offsetHeight : 40
|
|
2381
|
+
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
2382
|
+
this.setState({
|
|
2383
|
+
whiteboardTop: box.getBoundingClientRect().top - height,
|
|
2384
|
+
whiteboardLeft: box.getBoundingClientRect().left,
|
|
2385
|
+
leftVideo: (box.offsetWidth - this.state.widthVideo)/2 + box.getBoundingClientRect().left
|
|
2386
|
+
})
|
|
2387
|
+
console.log('whiteboardDIV',this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
2388
|
+
}
|
|
2384
2389
|
}
|
|
2385
2390
|
};
|
|
2386
2391
|
// 发布媒体流失败
|
|
@@ -3776,6 +3781,7 @@ userType:'1'
|
|
|
3776
3781
|
}
|
|
3777
3782
|
}
|
|
3778
3783
|
componentWillMount() {
|
|
3784
|
+
console.log('hsbc_teller_sdk', '1.8.0')
|
|
3779
3785
|
if (this.props.sessionId) {
|
|
3780
3786
|
this.getRoomStatus({
|
|
3781
3787
|
sessionId: this.props.sessionId
|
|
@@ -4656,6 +4662,7 @@ userType:'1'
|
|
|
4656
4662
|
navigator.mediaDevices.getDisplayMedia({
|
|
4657
4663
|
video: true,
|
|
4658
4664
|
preferCurrentTab:true,
|
|
4665
|
+
audio: true
|
|
4659
4666
|
// video: {
|
|
4660
4667
|
// width: document.body.clientWidth,
|
|
4661
4668
|
// height: document.body.clientHeight
|
|
@@ -4720,7 +4727,7 @@ userType:'1'
|
|
|
4720
4727
|
openCanvas(drawCanvas) {
|
|
4721
4728
|
if (!this.boardOperate) {
|
|
4722
4729
|
this.boardOperate = new BoardOperate(drawCanvas, {
|
|
4723
|
-
drawColor:
|
|
4730
|
+
drawColor: strokeColor,
|
|
4724
4731
|
drawType: "pen",
|
|
4725
4732
|
lineWidth: 5,
|
|
4726
4733
|
fillStyle: '', // 初始背景色,若为空则透明背景
|
|
@@ -4740,8 +4747,23 @@ userType:'1'
|
|
|
4740
4747
|
});
|
|
4741
4748
|
|
|
4742
4749
|
this.setState({ drawConfig,selectSpan: type });
|
|
4750
|
+
this.boardOperate.drawColor = '#333'
|
|
4743
4751
|
}
|
|
4752
|
+
setStrokeColor() {
|
|
4753
|
+
console.log(this.boardOperate)
|
|
4754
|
+
const { drawConfig } = this.state;
|
|
4755
|
+
const type = 'pen'
|
|
4756
|
+
drawConfig.curryControl = type;
|
|
4757
|
+
this.boardOperate.changeWay({
|
|
4758
|
+
type
|
|
4759
|
+
});
|
|
4744
4760
|
|
|
4761
|
+
this.setState({ drawConfig,selectSpan: type });
|
|
4762
|
+
this.boardOperate.drawColor = '#ff4d4f'
|
|
4763
|
+
this.setState({
|
|
4764
|
+
selectSpan: 'redPen'
|
|
4765
|
+
})
|
|
4766
|
+
}
|
|
4745
4767
|
setOpreate(type) {
|
|
4746
4768
|
this.boardOperate[type]();
|
|
4747
4769
|
}
|
|
@@ -4810,6 +4832,9 @@ userType:'1'
|
|
|
4810
4832
|
this.openCanvas(canvas)
|
|
4811
4833
|
}, 0);
|
|
4812
4834
|
this.graffitiClick()
|
|
4835
|
+
this.setState({
|
|
4836
|
+
selectSpan: 'pen'
|
|
4837
|
+
})
|
|
4813
4838
|
} else {
|
|
4814
4839
|
// this.downCanvas()
|
|
4815
4840
|
this.closeCanvas();
|
|
@@ -4886,11 +4911,13 @@ userType:'1'
|
|
|
4886
4911
|
}
|
|
4887
4912
|
componentDidMount() {
|
|
4888
4913
|
var box=document.getElementById("whiteboardDIV");
|
|
4914
|
+
var box1 = document.getElementById("operate")
|
|
4915
|
+
var height = box1 ? box1.offsetHeight : 40
|
|
4889
4916
|
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
4890
4917
|
this.state.whiteboardWidth = box.offsetWidth,
|
|
4891
4918
|
this.state.whiteboardHeight = box.offsetHeight * 0.92,
|
|
4892
4919
|
this.state.widthVideo = this.state.whiteboardHeight * 1280 / 720
|
|
4893
|
-
this.state.whiteboardTop = box.getBoundingClientRect().top
|
|
4920
|
+
this.state.whiteboardTop = box.getBoundingClientRect().top - height
|
|
4894
4921
|
this.state.whiteboardLeft = box.getBoundingClientRect().left
|
|
4895
4922
|
this.state.leftVideo = (box.offsetWidth - this.state.widthVideo)/2 + box.getBoundingClientRect().left
|
|
4896
4923
|
console.log('whiteboardDIV', this.state.whiteboardHeight,this.state.whiteboardWidth,this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
@@ -5200,6 +5227,7 @@ userType:'1'
|
|
|
5200
5227
|
{this.state.operateShow &&
|
|
5201
5228
|
<OpreateDiv id="operate">
|
|
5202
5229
|
<span style={{color: this.state.selectSpan == 'pen' ? '#1890ff' : '#333'}} onClick={() => this.setTool('pen')}>铅笔</span>
|
|
5230
|
+
<span style={{color: this.state.selectSpan == 'redPen' ? '#1890ff' : '#333'}} onClick={() => this.setStrokeColor()}>红笔</span>
|
|
5203
5231
|
<span style={{color: this.state.selectSpan == 'eraser' ? '#1890ff' : '#333'}} onClick={() => this.setTool('eraser')}>橡皮</span>
|
|
5204
5232
|
<span onClick={() => this.setOpreate('undo')}>撤销</span>
|
|
5205
5233
|
<span onClick={() => this.setOpreate('redo')}>恢复</span>
|
|
@@ -5875,7 +5903,7 @@ sessionId: "",
|
|
|
5875
5903
|
microphoneSize: 25,
|
|
5876
5904
|
fontSize: '14',
|
|
5877
5905
|
fontFamily: 'auto',
|
|
5878
|
-
menus: ['BOARD','SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP', 'BEAUTY','GRAFFITI','
|
|
5906
|
+
menus: ['BOARD','SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP', 'BEAUTY','GRAFFITI','BACKGROUND'],
|
|
5879
5907
|
customLeaveRoom: '客户离开房间',
|
|
5880
5908
|
meetingInfo: {
|
|
5881
5909
|
title: '--',
|