@voicenter-team/opensips-js 1.0.112 → 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
|
}
|