react_hsbc_teller 1.3.3 → 1.3.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -4017,20 +4017,22 @@ class Video extends Component {
4017
4017
  const top = document.getElementById("whiteboardDIV").getBoundingClientRect().top
4018
4018
  const bottom = document.getElementById("whiteboardDIV").getBoundingClientRect().bottom
4019
4019
  const width = (right - left)* window.screen.width / document.body.clientWidth
4020
- const height = (bottom - top)* window.screen.height / (document.body.clientHeight + 100)
4020
+ const height = (bottom - top)* window.screen.width / (document.body.clientWidth)
4021
4021
  const x = left * window.screen.width / document.body.clientWidth
4022
- const y = top* window.screen.height / (document.body.clientHeight - 50)
4022
+ const y = top* window.screen.width / (document.body.clientWidth)
4023
4023
  canvas.width = width;
4024
4024
  canvas.height = height;
4025
- console.log('addEventListener',x,y,width,height)
4025
+ // const height1 = document.getElementById("whiteboardDIV").getBoundingClientRect().height* window.screen.height / (document.body.clientHeight + 280)
4026
+
4026
4027
  videoMedia.addEventListener('play', (event) =>{
4027
4028
  var $this = this; //cache
4028
4029
  console.log('addEventListener',!$this.paused,!$this.ended)
4029
4030
  loop()
4030
4031
  function loop() {
4031
4032
  if (!$this.paused && !$this.ended) {
4032
- cobj.drawImage(videoMedia, x, y, width, height, 0, 0,width, height,);
4033
- // cobj.drawImage(videoMedia, 338.4848327636719, 145.45452880859375, 674.6685180664062, 553.39013671875, 0, 0,674.6685180664062, 553.39013671875,);
4033
+
4034
+ // console.log('addEventListener',x,y,width,height1,height)
4035
+ cobj.drawImage(videoMedia, x, y, width, height, 0, 0,width, height);
4034
4036
  setTimeout(loop, 1000 / 10); // drawing at 30fps
4035
4037
  }
4036
4038
  }