react_hsbc_teller 1.7.9 → 1.7.51
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/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -15,16 +15,16 @@ roomId: "656467744508298",
|
|
|
15
15
|
// sessionId: '',
|
|
16
16
|
isVideo: false,
|
|
17
17
|
tellerAccount: '00000000',
|
|
18
|
-
|
|
19
|
-
callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
|
|
18
|
+
callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
|
|
19
|
+
// callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
|
|
20
20
|
businessNumber: '',
|
|
21
21
|
lang: 'zh',
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
|
|
26
|
-
baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
|
|
27
|
-
resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
|
|
22
|
+
roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
23
|
+
baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
|
|
24
|
+
resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
25
|
+
// roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
|
|
26
|
+
// baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
|
|
27
|
+
// resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
|
|
28
28
|
prohibitPrompt: '无客户',
|
|
29
29
|
titleBackground: '#40a9ff',
|
|
30
30
|
titleColor: '#faad14',
|
|
@@ -56,9 +56,6 @@ export default class foot extends Component {
|
|
|
56
56
|
graffiti=()=>{
|
|
57
57
|
this.props.graffiti()
|
|
58
58
|
}
|
|
59
|
-
virtualization=()=>{
|
|
60
|
-
this.props.virtualization()
|
|
61
|
-
}
|
|
62
59
|
render() {
|
|
63
60
|
const {clickedOcr,clickedFacial,img,isWhiteboard,cameraImg,isTranscribing ,screenName,suspendName,customerList,menus,voiceName,beautyName} = this.props
|
|
64
61
|
const content = (
|
|
@@ -84,7 +81,8 @@ export default class foot extends Component {
|
|
|
84
81
|
</div>
|
|
85
82
|
</div>
|
|
86
83
|
</div>
|
|
87
|
-
} */}
|
|
84
|
+
} */}
|
|
85
|
+
|
|
88
86
|
{
|
|
89
87
|
menus.map((item,index)=>{
|
|
90
88
|
return <div key={index}className='footHover'>
|
|
@@ -97,16 +95,6 @@ export default class foot extends Component {
|
|
|
97
95
|
</div>
|
|
98
96
|
</div>
|
|
99
97
|
</div>
|
|
100
|
-
}
|
|
101
|
-
{
|
|
102
|
-
item == 'BACK'&&<div className='footHover' onClick={this.virtualization.bind(this)}>
|
|
103
|
-
<div className="one">
|
|
104
|
-
<img className="imgClass" src={require("../../assets/img/beijing.png").default} alt="" />
|
|
105
|
-
<div className="text">
|
|
106
|
-
背景虚化
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
98
|
}
|
|
111
99
|
{
|
|
112
100
|
item == 'BOARD'&&<div className='footHover' onClick={this.switchExternal.bind(this)}>
|
|
@@ -45,10 +45,8 @@ let messageValue = ''
|
|
|
45
45
|
let beautyNum = 0 // 0-关闭 1--弱 2--中 5---高
|
|
46
46
|
let rateList = []
|
|
47
47
|
let beautyDiv = {};
|
|
48
|
-
let isBackgroundBlur =
|
|
48
|
+
let isBackgroundBlur = false
|
|
49
49
|
let isSuccuseHs = false
|
|
50
|
-
let isGraffiti = false
|
|
51
|
-
let strokeColor = '#333'
|
|
52
50
|
let CanvasHome = styled.div`
|
|
53
51
|
position: fixed;
|
|
54
52
|
z-index: ${props=>props.zIndexNum};
|
|
@@ -96,47 +94,27 @@ function startBeauty(stream) {
|
|
|
96
94
|
beautyDiv = meetingBeautifyStream(newStream, beautyNum);
|
|
97
95
|
newStream = beautyDiv.stream;
|
|
98
96
|
return newStream
|
|
99
|
-
}
|
|
100
|
-
async function startMix(stream,onState) {
|
|
101
|
-
var drawCanvas = document.getElementById('canvas');
|
|
102
|
-
await mixInit(drawCanvas);
|
|
103
|
-
mixStart(stream,onState);
|
|
104
|
-
|
|
105
|
-
|
|
106
97
|
}
|
|
107
98
|
async function startHs(stream) {
|
|
108
99
|
// var canvas = document.getElementById('publish_video_canvas');
|
|
109
|
-
|
|
110
|
-
|
|
100
|
+
var video_src = document.getElementById("publish_video1");
|
|
101
|
+
var mode = 'blur';
|
|
102
|
+
video_src.srcObject = stream;
|
|
111
103
|
|
|
112
104
|
await hsInit();
|
|
113
|
-
|
|
114
|
-
hsStart(stream,
|
|
105
|
+
isSuccuseHs = true;
|
|
106
|
+
hsStart(stream, mode);
|
|
115
107
|
|
|
116
108
|
}
|
|
117
109
|
|
|
118
110
|
async function stopHs() {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
stream = null;
|
|
126
|
-
}
|
|
127
|
-
isSuccuseHs = false
|
|
128
|
-
|
|
111
|
+
var video_src = document.getElementById("publish_video1");
|
|
112
|
+
if(video_src) {
|
|
113
|
+
console.log('video_src',video_src)
|
|
114
|
+
video_src.srcObject = null;
|
|
115
|
+
isSuccuseHs = false
|
|
116
|
+
hsStop();
|
|
129
117
|
}
|
|
130
|
-
async function mixStopClick() {
|
|
131
|
-
var stop_stream = true;//控制是否内部来进行关闭流
|
|
132
|
-
var stream = mixStop(stop_stream);
|
|
133
|
-
if (stream != null && stream != undefined) {
|
|
134
|
-
stream.getTracks().forEach((track) => {
|
|
135
|
-
track.stop();
|
|
136
|
-
});
|
|
137
|
-
stream = null;
|
|
138
|
-
}
|
|
139
|
-
isGraffiti = false
|
|
140
118
|
|
|
141
119
|
}
|
|
142
120
|
message.config({
|
|
@@ -156,10 +134,8 @@ class Video extends Component {
|
|
|
156
134
|
isScreenSwitching: false,
|
|
157
135
|
whiteboardWidth: '',
|
|
158
136
|
whiteboardHeight: '',
|
|
159
|
-
widthVideo: '',
|
|
160
137
|
whiteboardTop: '',
|
|
161
138
|
whiteboardLeft: '',
|
|
162
|
-
leftVideo: '',
|
|
163
139
|
laveRoomSharedScreen: false,
|
|
164
140
|
isJoinRoom: false,
|
|
165
141
|
sessionType: false,
|
|
@@ -2222,100 +2198,42 @@ class Video extends Component {
|
|
|
2222
2198
|
this.test_controller.OnSendTextMsgFailed =(msgId, code, msg)=>{
|
|
2223
2199
|
console.log('发送失败',msgId,code, msg)
|
|
2224
2200
|
}
|
|
2225
|
-
this.test_controller.StreamFilterHandler = async (publish_tag, stream, stream_type, publish_device, media_type)
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
// 清理原始流
|
|
2260
|
-
newStream.oninactive = function () {
|
|
2261
|
-
clearOriginStream(stream);
|
|
2262
|
-
};
|
|
2263
|
-
newStream.getVideoTracks()[0].onended = function () {
|
|
2264
|
-
clearOriginStream(stream);
|
|
2265
|
-
};
|
|
2266
|
-
function clearOriginStream(stream) {
|
|
2267
|
-
stream.getTracks().forEach((track) => {
|
|
2268
|
-
track.stop();
|
|
2269
|
-
});
|
|
2270
|
-
stream = null;
|
|
2271
|
-
}
|
|
2272
|
-
}
|
|
2273
|
-
if (stream.getAudioTracks()[0] && newStream.addTrack) {
|
|
2274
|
-
newStream.addTrack(stream.getAudioTracks()[0])
|
|
2275
|
-
}
|
|
2276
|
-
return newStream
|
|
2277
|
-
}
|
|
2278
|
-
|
|
2279
|
-
if(publish_tag == 'projectionWhiteboard' && publish_device == 2) {
|
|
2280
|
-
// this.graffiti()
|
|
2281
|
-
console.log('projectionWhiteboard',stream)
|
|
2282
|
-
let newStream1 = stream;
|
|
2283
|
-
if (stream.getVideoTracks()[0]) {
|
|
2284
|
-
if(this.state.operateShow) {
|
|
2285
|
-
await startMix(newStream1,'mix');
|
|
2286
|
-
|
|
2287
|
-
isGraffiti = true
|
|
2288
|
-
this.setState({
|
|
2289
|
-
zIndexNum: 999
|
|
2290
|
-
})
|
|
2291
|
-
const canvas = document.getElementById('canvas');
|
|
2292
|
-
canvas.width = this.state.widthVideo
|
|
2293
|
-
} else {
|
|
2294
|
-
await startMix(newStream1,'none');
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
newStream1 = mixCaptureStream();
|
|
2298
|
-
console.log('projectionWhiteboard1',newStream1)
|
|
2299
|
-
// 清理原始流
|
|
2300
|
-
newStream1.oninactive = function () {
|
|
2301
|
-
clearOriginStream(stream);
|
|
2302
|
-
};
|
|
2303
|
-
newStream1.getVideoTracks()[0].onended = function () {
|
|
2304
|
-
clearOriginStream(stream);
|
|
2305
|
-
};
|
|
2306
|
-
function clearOriginStream(stream) {
|
|
2307
|
-
stream.getTracks().forEach((track) => {
|
|
2308
|
-
track.stop();
|
|
2309
|
-
});
|
|
2310
|
-
stream = null;
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
return newStream1
|
|
2314
|
-
} else {
|
|
2315
|
-
return stream
|
|
2316
|
-
}
|
|
2201
|
+
// this.test_controller.StreamFilterHandler = async function (publish_tag, stream, stream_type, publish_device, media_type) {
|
|
2202
|
+
// console.log(`stream processed by client, publish_device=${publish_device}, media_type=${media_type}, publish_tag=${publish_tag},stream_type=${stream_type}`);
|
|
2203
|
+
// if (stream_type == "subscribe") {
|
|
2204
|
+
// return stream
|
|
2205
|
+
// }
|
|
2206
|
+
// if (media_type == 2 || media_type == 4) {
|
|
2207
|
+
// return stream
|
|
2208
|
+
// }
|
|
2209
|
+
// if(publish_tag == 'tag1') {
|
|
2210
|
+
// let newStream = stream;
|
|
2211
|
+
// let beauty_strength = beautyNum;
|
|
2212
|
+
// if (beauty_strength != 0 && stream.getVideoTracks()[0]) {
|
|
2213
|
+
// newStream = new MediaStream([startBeauty(stream).getVideoTracks()[0]]);
|
|
2214
|
+
// // 清理原始流
|
|
2215
|
+
// newStream.oninactive = function () {
|
|
2216
|
+
// clearOriginStream(stream);
|
|
2217
|
+
// };
|
|
2218
|
+
// newStream.getVideoTracks()[0].onended = function () {
|
|
2219
|
+
// clearOriginStream(stream);
|
|
2220
|
+
// };
|
|
2221
|
+
// function clearOriginStream(stream) {
|
|
2222
|
+
// stream.getTracks().forEach((track) => {
|
|
2223
|
+
// track.stop();
|
|
2224
|
+
// });
|
|
2225
|
+
// stream = null;
|
|
2226
|
+
// }
|
|
2227
|
+
// };
|
|
2228
|
+
// if (stream.getAudioTracks()[0] && newStream.addTrack) {
|
|
2229
|
+
// newStream.addTrack(stream.getAudioTracks()[0])
|
|
2230
|
+
// }
|
|
2231
|
+
// return newStream
|
|
2232
|
+
// } else {
|
|
2233
|
+
// return stream
|
|
2234
|
+
// }
|
|
2317
2235
|
|
|
2318
|
-
}
|
|
2236
|
+
// }
|
|
2319
2237
|
// 发布媒体流成功
|
|
2320
2238
|
this.test_controller.OnPublishSucc = (sid) => {
|
|
2321
2239
|
console.log('发布媒体流成功', sid)
|
|
@@ -2336,7 +2254,14 @@ class Video extends Component {
|
|
|
2336
2254
|
}
|
|
2337
2255
|
}
|
|
2338
2256
|
if(sid == document.getElementById('publish_video1').name) {
|
|
2339
|
-
|
|
2257
|
+
var box=document.getElementById("whiteboardDIV");
|
|
2258
|
+
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
2259
|
+
this.setState({
|
|
2260
|
+
whiteboardTop: box.getBoundingClientRect().top * 1.08 - 40,
|
|
2261
|
+
whiteboardLeft: box.getBoundingClientRect().left
|
|
2262
|
+
})
|
|
2263
|
+
console.log('whiteboardDIV',this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
2264
|
+
}
|
|
2340
2265
|
this.setState({
|
|
2341
2266
|
|
|
2342
2267
|
loading: false,
|
|
@@ -2374,18 +2299,6 @@ class Video extends Component {
|
|
|
2374
2299
|
},
|
|
2375
2300
|
1000
|
|
2376
2301
|
);
|
|
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
|
-
}
|
|
2389
2302
|
}
|
|
2390
2303
|
};
|
|
2391
2304
|
// 发布媒体流失败
|
|
@@ -3140,9 +3053,6 @@ class Video extends Component {
|
|
|
3140
3053
|
if(isSuccuseHs) {
|
|
3141
3054
|
stopHs();
|
|
3142
3055
|
}
|
|
3143
|
-
if(isGraffiti) {
|
|
3144
|
-
mixStopClick()
|
|
3145
|
-
}
|
|
3146
3056
|
|
|
3147
3057
|
console.log('退出房间回调', leaveType);
|
|
3148
3058
|
};
|
|
@@ -3730,12 +3640,11 @@ userType:'1'
|
|
|
3730
3640
|
this.props.resourcePath + "/html2canvas.js",
|
|
3731
3641
|
this.props.resourcePath + "/dom-to-image.js",
|
|
3732
3642
|
|
|
3733
|
-
this.props.resourcePath + "/hs/hs_human_segmentation_wrapper.js",
|
|
3734
|
-
this.props.resourcePath + "/hs/hs_human_segmentation.js",
|
|
3735
|
-
this.props.resourcePath + "/hs/hs_human_segmentation.wasm",
|
|
3643
|
+
// this.props.resourcePath + "/hs/hs_human_segmentation_wrapper.js",
|
|
3644
|
+
// this.props.resourcePath + "/hs/hs_human_segmentation.js",
|
|
3645
|
+
// this.props.resourcePath + "/hs/hs_human_segmentation.wasm",
|
|
3736
3646
|
|
|
3737
|
-
|
|
3738
|
-
this.props.resourcePath + "/mix/pageBoard.js"
|
|
3647
|
+
|
|
3739
3648
|
|
|
3740
3649
|
]
|
|
3741
3650
|
const that = this
|
|
@@ -4330,9 +4239,9 @@ userType:'1'
|
|
|
4330
4239
|
facialImg: ocrImage,
|
|
4331
4240
|
},()=>{
|
|
4332
4241
|
this.setState({
|
|
4333
|
-
|
|
4334
|
-
})
|
|
4242
|
+
isModalVisibleFacial: true,
|
|
4335
4243
|
})
|
|
4244
|
+
})
|
|
4336
4245
|
}
|
|
4337
4246
|
}
|
|
4338
4247
|
sgsinImage=()=>{
|
|
@@ -4612,14 +4521,6 @@ userType:'1'
|
|
|
4612
4521
|
|
|
4613
4522
|
videoMedia.addEventListener('play', (event) =>{
|
|
4614
4523
|
var $this = this; //cache
|
|
4615
|
-
if($this.state.operateShow) {
|
|
4616
|
-
isGraffiti = false
|
|
4617
|
-
this.setState({
|
|
4618
|
-
zIndexNum: 999
|
|
4619
|
-
})
|
|
4620
|
-
const canvas = document.getElementById('canvas');
|
|
4621
|
-
canvas.width = this.state.whiteboardWidth
|
|
4622
|
-
}
|
|
4623
4524
|
console.log('addEventListener',!$this.paused,!$this.ended,x, y, width, height)
|
|
4624
4525
|
loop()
|
|
4625
4526
|
function loop() {
|
|
@@ -4661,7 +4562,6 @@ userType:'1'
|
|
|
4661
4562
|
navigator.mediaDevices.getDisplayMedia({
|
|
4662
4563
|
video: true,
|
|
4663
4564
|
preferCurrentTab:true,
|
|
4664
|
-
audio: true
|
|
4665
4565
|
// video: {
|
|
4666
4566
|
// width: document.body.clientWidth,
|
|
4667
4567
|
// height: document.body.clientHeight
|
|
@@ -4681,7 +4581,6 @@ userType:'1'
|
|
|
4681
4581
|
})
|
|
4682
4582
|
|
|
4683
4583
|
streamShare = stream
|
|
4684
|
-
|
|
4685
4584
|
stream.getVideoTracks()[0].onended = async ()=>{
|
|
4686
4585
|
//单击停止共享按钮后,触发这个事件
|
|
4687
4586
|
streamShare = ''
|
|
@@ -4726,7 +4625,7 @@ userType:'1'
|
|
|
4726
4625
|
openCanvas(drawCanvas) {
|
|
4727
4626
|
if (!this.boardOperate) {
|
|
4728
4627
|
this.boardOperate = new BoardOperate(drawCanvas, {
|
|
4729
|
-
drawColor:
|
|
4628
|
+
drawColor: "#000000",
|
|
4730
4629
|
drawType: "pen",
|
|
4731
4630
|
lineWidth: 5,
|
|
4732
4631
|
fillStyle: '', // 初始背景色,若为空则透明背景
|
|
@@ -4746,23 +4645,8 @@ userType:'1'
|
|
|
4746
4645
|
});
|
|
4747
4646
|
|
|
4748
4647
|
this.setState({ drawConfig,selectSpan: type });
|
|
4749
|
-
this.boardOperate.drawColor = '#333'
|
|
4750
4648
|
}
|
|
4751
|
-
setStrokeColor() {
|
|
4752
|
-
console.log(this.boardOperate)
|
|
4753
|
-
const { drawConfig } = this.state;
|
|
4754
|
-
const type = 'pen'
|
|
4755
|
-
drawConfig.curryControl = type;
|
|
4756
|
-
this.boardOperate.changeWay({
|
|
4757
|
-
type
|
|
4758
|
-
});
|
|
4759
4649
|
|
|
4760
|
-
this.setState({ drawConfig,selectSpan: type });
|
|
4761
|
-
this.boardOperate.drawColor = '#ff4d4f'
|
|
4762
|
-
this.setState({
|
|
4763
|
-
selectSpan: 'redPen'
|
|
4764
|
-
})
|
|
4765
|
-
}
|
|
4766
4650
|
setOpreate(type) {
|
|
4767
4651
|
this.boardOperate[type]();
|
|
4768
4652
|
}
|
|
@@ -4780,30 +4664,13 @@ userType:'1'
|
|
|
4780
4664
|
img.src = base64;
|
|
4781
4665
|
document.body.appendChild(img);
|
|
4782
4666
|
|
|
4783
|
-
}
|
|
4784
|
-
graffitiClick=async()=>{
|
|
4785
|
-
if(!isGraffiti) {
|
|
4786
|
-
if (this.state.tabTitles.find(el=>el.value == 'RMScreen')) {
|
|
4787
|
-
// await startMix(document.getElementById('video20').srcObject);
|
|
4788
|
-
// document.getElementById('video20').srcObject = mixCaptureStream();
|
|
4789
|
-
|
|
4790
|
-
mixSetMode('mix')
|
|
4791
|
-
isGraffiti = true
|
|
4792
|
-
console.log('isGraffiti',isGraffiti)
|
|
4793
|
-
const canvas = document.getElementById('canvas');
|
|
4794
|
-
canvas.width = this.state.widthVideo
|
|
4795
|
-
}
|
|
4796
|
-
}
|
|
4797
|
-
|
|
4798
4667
|
}
|
|
4799
4668
|
graffiti=()=>{
|
|
4800
|
-
|
|
4801
4669
|
if(!this.state.operateShow) {
|
|
4802
4670
|
this.setState({
|
|
4803
4671
|
zIndexNum: 999
|
|
4804
4672
|
})
|
|
4805
4673
|
this.change(true)
|
|
4806
|
-
|
|
4807
4674
|
}
|
|
4808
4675
|
|
|
4809
4676
|
}
|
|
@@ -4812,13 +4679,6 @@ userType:'1'
|
|
|
4812
4679
|
zIndexNum: -1
|
|
4813
4680
|
})
|
|
4814
4681
|
this.change(false)
|
|
4815
|
-
if(isGraffiti) {
|
|
4816
|
-
isGraffiti = false
|
|
4817
|
-
mixSetMode('none')
|
|
4818
|
-
console.log('isGraffiti',isGraffiti)
|
|
4819
|
-
// var stream = mixStop(false);
|
|
4820
|
-
// document.getElementById('video20').srcObject = stream
|
|
4821
|
-
}
|
|
4822
4682
|
}
|
|
4823
4683
|
change(val) {
|
|
4824
4684
|
this.setState({ operateShow: val })
|
|
@@ -4830,10 +4690,6 @@ userType:'1'
|
|
|
4830
4690
|
setTimeout(() => {
|
|
4831
4691
|
this.openCanvas(canvas)
|
|
4832
4692
|
}, 0);
|
|
4833
|
-
this.graffitiClick()
|
|
4834
|
-
this.setState({
|
|
4835
|
-
selectSpan: 'pen'
|
|
4836
|
-
})
|
|
4837
4693
|
} else {
|
|
4838
4694
|
// this.downCanvas()
|
|
4839
4695
|
this.closeCanvas();
|
|
@@ -4910,15 +4766,11 @@ userType:'1'
|
|
|
4910
4766
|
}
|
|
4911
4767
|
componentDidMount() {
|
|
4912
4768
|
var box=document.getElementById("whiteboardDIV");
|
|
4913
|
-
var box1 = document.getElementById("operate")
|
|
4914
|
-
var height = box1 ? box1.offsetHeight : 40
|
|
4915
4769
|
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
4916
4770
|
this.state.whiteboardWidth = box.offsetWidth,
|
|
4917
4771
|
this.state.whiteboardHeight = box.offsetHeight * 0.92,
|
|
4918
|
-
this.state.
|
|
4919
|
-
this.state.whiteboardTop = box.getBoundingClientRect().top - height
|
|
4772
|
+
this.state.whiteboardTop = box.getBoundingClientRect().top * 1.08 - 40
|
|
4920
4773
|
this.state.whiteboardLeft = box.getBoundingClientRect().left
|
|
4921
|
-
this.state.leftVideo = (box.offsetWidth - this.state.widthVideo)/2 + box.getBoundingClientRect().left
|
|
4922
4774
|
console.log('whiteboardDIV', this.state.whiteboardHeight,this.state.whiteboardWidth,this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
4923
4775
|
}
|
|
4924
4776
|
}
|
|
@@ -5054,20 +4906,6 @@ userType:'1'
|
|
|
5054
4906
|
});
|
|
5055
4907
|
},100)
|
|
5056
4908
|
|
|
5057
|
-
}
|
|
5058
|
-
virtualizationClick=async()=>{
|
|
5059
|
-
if(!isSuccuseHs) {
|
|
5060
|
-
|
|
5061
|
-
hsSetMode('blur')
|
|
5062
|
-
isSuccuseHs = true
|
|
5063
|
-
} else {
|
|
5064
|
-
hsSetMode('none')
|
|
5065
|
-
isSuccuseHs = false
|
|
5066
|
-
}
|
|
5067
|
-
}
|
|
5068
|
-
virtualization=()=>{
|
|
5069
|
-
this.virtualizationClick()
|
|
5070
|
-
|
|
5071
4909
|
}
|
|
5072
4910
|
handleChangeIdCardName = (event) => {
|
|
5073
4911
|
this.setState({idCardName: event.target.value});
|
|
@@ -5222,11 +5060,10 @@ userType:'1'
|
|
|
5222
5060
|
{tabTitleList}
|
|
5223
5061
|
{/* <img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" /> */}
|
|
5224
5062
|
<div id="whiteboardDIV" style={{height: 'calc(100% - 33px)'}}>
|
|
5225
|
-
<CanvasHome zIndexNum={this.state.zIndexNum} style={{width:
|
|
5063
|
+
<CanvasHome zIndexNum={this.state.zIndexNum} style={{width: this.state.whiteboardWidth + 'Px',height: this.state.whiteboardHeight + 'Px',top: this.state.whiteboardTop + 'Px',left:this.state.whiteboardLeft + 'Px'}}>
|
|
5226
5064
|
{this.state.operateShow &&
|
|
5227
5065
|
<OpreateDiv id="operate">
|
|
5228
5066
|
<span style={{color: this.state.selectSpan == 'pen' ? '#1890ff' : '#333'}} onClick={() => this.setTool('pen')}>铅笔</span>
|
|
5229
|
-
<span style={{color: this.state.selectSpan == 'redPen' ? '#1890ff' : '#333'}} onClick={() => this.setStrokeColor()}>红笔</span>
|
|
5230
5067
|
<span style={{color: this.state.selectSpan == 'eraser' ? '#1890ff' : '#333'}} onClick={() => this.setTool('eraser')}>橡皮</span>
|
|
5231
5068
|
<span onClick={() => this.setOpreate('undo')}>撤销</span>
|
|
5232
5069
|
<span onClick={() => this.setOpreate('redo')}>恢复</span>
|
|
@@ -5237,12 +5074,11 @@ userType:'1'
|
|
|
5237
5074
|
<canvas id="canvas" className="canvas"></canvas>
|
|
5238
5075
|
</CanvasHome>
|
|
5239
5076
|
<div className="videoDiv" style={{ display: (this.state.isSelect == 'RMScreen' || this.state.isSelect == 'staffScreen') ? '' : 'none', }}>
|
|
5240
|
-
<div className="videoDiv"
|
|
5077
|
+
<div className="videoDiv">
|
|
5241
5078
|
<video
|
|
5242
5079
|
id="video20"
|
|
5243
5080
|
autoPlay
|
|
5244
5081
|
muted={true}
|
|
5245
|
-
style={{ height: this.state.whiteboardHeight + 'px',width: this.state.widthVideo + 'px'}}
|
|
5246
5082
|
className="videoTab"
|
|
5247
5083
|
disablePictureInPicture
|
|
5248
5084
|
/>
|
|
@@ -5729,7 +5565,6 @@ userType:'1'
|
|
|
5729
5565
|
inspection={this.inspection}
|
|
5730
5566
|
beautyClick={this.beautyClick}
|
|
5731
5567
|
graffiti={this.graffiti}
|
|
5732
|
-
virtualization={this.virtualization}
|
|
5733
5568
|
></Foot>
|
|
5734
5569
|
<Modal cancelText="取消" okText="确定" visible={this.state.isModalVisible} onOk={this.handleOk}
|
|
5735
5570
|
onCancel={this.handleCancel}>
|
|
@@ -5902,7 +5737,7 @@ sessionId: "",
|
|
|
5902
5737
|
microphoneSize: 25,
|
|
5903
5738
|
fontSize: '14',
|
|
5904
5739
|
fontFamily: 'auto',
|
|
5905
|
-
menus: ['BOARD','SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP', 'BEAUTY','GRAFFITI'
|
|
5740
|
+
menus: ['BOARD','SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP', 'BEAUTY','GRAFFITI'],
|
|
5906
5741
|
customLeaveRoom: '客户离开房间',
|
|
5907
5742
|
meetingInfo: {
|
|
5908
5743
|
title: '--',
|
|
Binary file
|