dcim-topology2d 1.1.1 → 1.1.2
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/core/src/calling.js +2 -0
- package/core/src/models/node.js +13 -11
- package/package.json +1 -1
package/core/src/calling.js
CHANGED
@@ -14,6 +14,7 @@ var Calling = (function () {
|
|
14
14
|
if (!options) {
|
15
15
|
options = {};
|
16
16
|
}
|
17
|
+
options.type = this.store.options.isFitview ? 'titLogo' : 'bottLogo';
|
17
18
|
Object.assign(this.store.options, options);
|
18
19
|
if (typeof parent === 'string') {
|
19
20
|
this.store.parentElem = document.getElementById(parent);
|
@@ -137,6 +138,7 @@ var Calling = (function () {
|
|
137
138
|
}
|
138
139
|
this.store.data.scale *= scale;
|
139
140
|
!center && (center = this.getRect().center);
|
141
|
+
center.type = this.store.options.type;
|
140
142
|
for (var _i = 0, _a = this.store.data.pens; _i < _a.length; _i++) {
|
141
143
|
var item = _a[_i];
|
142
144
|
item.scale(scale, center, w, h);
|
package/core/src/models/node.js
CHANGED
@@ -238,12 +238,12 @@ var Node = /** @class */ (function (_super) {
|
|
238
238
|
this.iframe ||
|
239
239
|
this.elementId ||
|
240
240
|
this.hasGif()) {
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
241
|
+
if(type) {
|
242
|
+
// 复合Echarts初始化
|
243
|
+
createChildrenDivByElementId(this);
|
244
|
+
}else {
|
245
|
+
Store.set(this.generateStoreKey('LT:addDiv'), this);
|
246
|
+
}
|
247
247
|
}
|
248
248
|
};
|
249
249
|
Node.prototype.hasGif = function () {
|
@@ -749,11 +749,13 @@ var Node = /** @class */ (function (_super) {
|
|
749
749
|
this.rect.height *= h;
|
750
750
|
this.rect.ex = this.rect.x + this.rect.width;
|
751
751
|
this.rect.ey = this.rect.y + this.rect.height;
|
752
|
-
if
|
753
|
-
this.imageWidth
|
754
|
-
|
755
|
-
|
756
|
-
this.imageHeight
|
752
|
+
if(!(center.type && center.type === 'bottLogo')) {
|
753
|
+
if (this.imageWidth) {
|
754
|
+
this.imageWidth *= w;
|
755
|
+
}
|
756
|
+
if (this.imageHeight) {
|
757
|
+
this.imageHeight *= h;
|
758
|
+
}
|
757
759
|
}
|
758
760
|
this.lastImage = null;
|
759
761
|
this.font.fontSize *= scale;
|