@voicenter-team/opensips-js 1.0.119 → 1.0.121

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.
@@ -82422,9 +82422,9 @@ class Wy extends Dw {
82422
82422
  }, this.selectors.document || (this.selectors.document = document);
82423
82423
  }
82424
82424
  createVideoElement() {
82425
- const e = this.selectors.document.createElement("video");
82425
+ const e = document.createElement("video");
82426
82426
  e.setAttribute("id", this.selectors.videoElement), e.setAttribute("autoplay", ""), e.style.setProperty("visibility", "hidden"), e.style.setProperty("width", "auto"), e.style.setProperty("height", "auto"), this.video = e;
82427
- const t = this.selectors.document.createElement("div");
82427
+ const t = document.createElement("div");
82428
82428
  t.classList.add(this.selectors.videoElementContainer), t.style.setProperty("display", "none"), t.appendChild(e), this.wrapperEl = t, this.selectors.document.body ? this.selectors.document.body.appendChild(t) : this.selectors.document.appendChild(t);
82429
82429
  }
82430
82430
  getAspectRatioDimensions(e, t) {
@@ -82450,26 +82450,27 @@ class Wy extends Dw {
82450
82450
  n.style.setProperty("position", "relative"), n.style.setProperty("margin", "auto 0");
82451
82451
  const { width: i, height: s } = this.getAspectRatioDimensions(e, t);
82452
82452
  let a = i, o = s;
82453
+ const u = this.selectors.document.getElementById(this.selectors.drawerContainer);
82453
82454
  this.screenShareKonvaDrawer = new Ub({
82454
- container: this.selectors.drawerContainer,
82455
+ container: u,
82455
82456
  width: a,
82456
82457
  height: o
82457
82458
  });
82458
- const u = this.screenShareKonvaDrawer.addLayer();
82459
- this.screenShareKonvaDrawer.initFreeDrawing(u);
82460
- const c = this.selectors.document.getElementById(this.selectors.drawerContainer), d = c.querySelector("canvas"), p = c.querySelector(".konvajs-content"), m = this.selectors.document.getElementById(this.selectors.compositeCanvas);
82461
- m.style.setProperty("position", "absolute"), m.style.setProperty("top", "0"), m.style.setProperty("left", "0");
82462
- const _ = m.getContext("2d"), y = () => {
82463
- const { width: w, height: x } = this.getAspectRatioDimensions(e, t);
82464
- a = w, o = x, d.width = w, d.height = x, d.style.width = `${w}px`, d.style.height = `${x}px`, p.style.width = `${w}px`, p.style.height = `${x}px`, n.style.height = `${x}px`, m.width = w, m.height = x;
82459
+ const c = this.screenShareKonvaDrawer.addLayer();
82460
+ this.screenShareKonvaDrawer.initFreeDrawing(c);
82461
+ const d = this.selectors.document.getElementById(this.selectors.drawerContainer), p = d.querySelector("canvas"), m = d.querySelector(".konvajs-content"), _ = this.selectors.document.getElementById(this.selectors.compositeCanvas);
82462
+ _.style.setProperty("position", "absolute"), _.style.setProperty("top", "0"), _.style.setProperty("left", "0");
82463
+ const y = _.getContext("2d"), b = () => {
82464
+ const { width: x, height: E } = this.getAspectRatioDimensions(e, t);
82465
+ a = x, o = E, p.width = x, p.height = E, p.style.width = `${x}px`, p.style.height = `${E}px`, m.style.width = `${x}px`, m.style.height = `${E}px`, n.style.height = `${E}px`, _.width = x, _.height = E;
82465
82466
  };
82466
- y(), window.addEventListener("resize", () => {
82467
- y(), this.screenShareKonvaDrawer.addWakeupLine(u);
82467
+ b(), window.addEventListener("resize", () => {
82468
+ b(), this.screenShareKonvaDrawer.addWakeupLine(c);
82468
82469
  });
82469
- const b = this.video, T = () => {
82470
- _.drawImage(b, 0, 0, a, o), _.drawImage(d, 0, 0, a, o), requestAnimationFrame(T);
82470
+ const T = this.video, w = () => {
82471
+ y.drawImage(T, 0, 0, a, o), y.drawImage(p, 0, 0, a, o), requestAnimationFrame(w);
82471
82472
  };
82472
- return T(), m.captureStream(30);
82473
+ return w(), _.captureStream(30);
82473
82474
  }
82474
82475
  /**
82475
82476
  * Stops stream processing