react_hsbc_teller 1.4.0 → 1.4.3
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
|
@@ -432,9 +432,9 @@ class Video extends Component {
|
|
|
432
432
|
{
|
|
433
433
|
tag: 'VIDEO_SOURCE_SCREEN',
|
|
434
434
|
xPosition: 1290,
|
|
435
|
-
yPosition:
|
|
435
|
+
yPosition: 640,
|
|
436
436
|
width: 630,
|
|
437
|
-
height:
|
|
437
|
+
height: 350
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
tag: 'tag1',
|
|
@@ -4049,7 +4049,7 @@ class Video extends Component {
|
|
|
4049
4049
|
// if(os.isTablet){
|
|
4050
4050
|
width = (right - left)* window.screen.width / document.body.clientWidth
|
|
4051
4051
|
height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 50
|
|
4052
|
-
x = left * window.screen.width / document.body.clientWidth
|
|
4052
|
+
x = left * window.screen.width / document.body.clientWidth + 3
|
|
4053
4053
|
y = top* window.screen.width / document.body.clientWidth
|
|
4054
4054
|
// }
|
|
4055
4055
|
// if(os.isPc) {
|
|
@@ -4058,10 +4058,10 @@ class Video extends Component {
|
|
|
4058
4058
|
// x = left
|
|
4059
4059
|
// y = top
|
|
4060
4060
|
// }
|
|
4061
|
-
canvas.width =
|
|
4062
|
-
canvas.height =
|
|
4063
|
-
cobj.fillStyle = 'rgb(255 255 255)'
|
|
4064
|
-
cobj.fillRect(0,0,1280,720)
|
|
4061
|
+
canvas.width = 960;
|
|
4062
|
+
canvas.height = 540;
|
|
4063
|
+
// cobj.fillStyle = 'rgb(255 255 255)'
|
|
4064
|
+
// cobj.fillRect(0,0,1280,720)
|
|
4065
4065
|
// const height1 = document.getElementById("whiteboardDIV").getBoundingClientRect().height* window.screen.height / (document.body.clientHeight + 280)
|
|
4066
4066
|
|
|
4067
4067
|
videoMedia.addEventListener('play', (event) =>{
|
|
@@ -4070,10 +4070,7 @@ class Video extends Component {
|
|
|
4070
4070
|
loop()
|
|
4071
4071
|
function loop() {
|
|
4072
4072
|
if (!$this.paused && !$this.ended) {
|
|
4073
|
-
|
|
4074
|
-
// console.log('addEventListener',x,y,width,height1,height)
|
|
4075
|
-
|
|
4076
|
-
cobj.drawImage(videoMedia, x, y, width, height, 0, 0,1280, 720);
|
|
4073
|
+
cobj.drawImage(videoMedia, x, y, width, height, 0, 0,960, 540);
|
|
4077
4074
|
setTimeout(loop, 1000 / 10); // drawing at 30fps
|
|
4078
4075
|
}
|
|
4079
4076
|
}
|