@voicenter-team/opensips-js 1.0.111 → 1.0.113
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/dist/opensips-js.es.js
CHANGED
@@ -82371,12 +82371,15 @@ class Ub {
|
|
82371
82371
|
return e.add(i), this.emptyDrawerRect = i, i;
|
82372
82372
|
}
|
82373
82373
|
addImage(e, t) {
|
82374
|
+
console.log("this.stage.width()", this.stage.width()), console.log("this.stage.height()", this.stage.height()), console.log("imageObj.width", t.width), console.log("imageObj.height", t.height);
|
82374
82375
|
const n = new Tc.Image({
|
82375
82376
|
image: t,
|
82376
82377
|
x: (this.stage.width() - t.width) / 2,
|
82377
82378
|
// Center horizontally
|
82378
|
-
y: (this.stage.height() - t.height) / 2
|
82379
|
+
y: (this.stage.height() - t.height) / 2,
|
82379
82380
|
// Center vertically
|
82381
|
+
width: t.width,
|
82382
|
+
height: t.height
|
82380
82383
|
});
|
82381
82384
|
return e.add(n), n;
|
82382
82385
|
}
|
@@ -82516,7 +82519,9 @@ class u_e extends Pw {
|
|
82516
82519
|
async drawImageWhiteboard() {
|
82517
82520
|
const e = this.selectors.document.getElementById(this.selectors.container);
|
82518
82521
|
e.style.setProperty("min-width", "100%"), e.style.setProperty("height", "100%");
|
82519
|
-
const t = e.clientWidth, n = e.clientHeight
|
82522
|
+
const t = e.clientWidth, n = e.clientHeight;
|
82523
|
+
console.log("wrapperEl width", t), console.log("wrapperEl height", n);
|
82524
|
+
const i = await dde(this.imageSrc), s = this.selectors.document.getElementById(this.selectors.drawerContainer);
|
82520
82525
|
console.log("konvaContainer", s), this.konvaDrawer = new Ub({
|
82521
82526
|
container: s,
|
82522
82527
|
width: t,
|