dcim-topology2d 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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);
@@ -238,12 +238,12 @@ var Node = /** @class */ (function (_super) {
238
238
  this.iframe ||
239
239
  this.elementId ||
240
240
  this.hasGif()) {
241
- if(type) {
242
- // 复合Echarts初始化
243
- createChildrenDivByElementId(this);
244
- }else {
245
- Store.set(this.generateStoreKey('LT:addDiv'), this);
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 (this.imageWidth) {
753
- this.imageWidth *= w;
754
- }
755
- if (this.imageHeight) {
756
- this.imageHeight *= h;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcim-topology2d",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "-",
6
6
  "scripts": {