@voicenter-team/opensips-js 1.0.101 → 1.0.102
Sign up to get free protection for your applications and to get access to all the features.
package/dist/opensips-js.es.js
CHANGED
@@ -82427,24 +82427,24 @@ class u_e extends Pw {
|
|
82427
82427
|
drawEmptyWhiteboard() {
|
82428
82428
|
const e = this.selectors.document.getElementById(this.selectors.container);
|
82429
82429
|
e.style.setProperty("min-width", "100%"), e.style.setProperty("height", "100%");
|
82430
|
-
const t = e.clientWidth, n = e.clientHeight;
|
82430
|
+
const t = e.clientWidth, n = e.clientHeight, i = this.selectors.konvaContainer ? this.selectors.konvaContainer : this.selectors.drawerContainer;
|
82431
82431
|
this.konvaDrawer = new Ub({
|
82432
|
-
container:
|
82432
|
+
container: i,
|
82433
82433
|
width: t,
|
82434
82434
|
height: n
|
82435
82435
|
});
|
82436
|
-
const
|
82437
|
-
this.konvaDrawer.addRect(
|
82436
|
+
const s = this.konvaDrawer.addLayer();
|
82437
|
+
this.konvaDrawer.addRect(s, t, n), this.konvaDrawer.initFreeDrawing(s);
|
82438
82438
|
}
|
82439
82439
|
async drawImageWhiteboard() {
|
82440
|
-
const e = this.selectors.document.getElementById(this.selectors.container), t = e.clientWidth, n = e.clientHeight, i = await dde(this.imageSrc);
|
82440
|
+
const e = this.selectors.document.getElementById(this.selectors.container), t = e.clientWidth, n = e.clientHeight, i = await dde(this.imageSrc), s = this.selectors.konvaContainer ? this.selectors.konvaContainer : this.selectors.drawerContainer;
|
82441
82441
|
this.konvaDrawer = new Ub({
|
82442
|
-
container:
|
82442
|
+
container: s,
|
82443
82443
|
width: t,
|
82444
82444
|
height: n
|
82445
82445
|
});
|
82446
|
-
const
|
82447
|
-
this.konvaDrawer.addImage(
|
82446
|
+
const a = this.konvaDrawer.addLayer();
|
82447
|
+
this.konvaDrawer.addImage(a, i), a.batchDraw(), this.konvaDrawer.initFreeDrawing(a);
|
82448
82448
|
}
|
82449
82449
|
async generateStream() {
|
82450
82450
|
if (this.mode === Yx.WHITEBOARD)
|