targetj 1.1.7 → 1.1.9

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/Export.js CHANGED
@@ -81,7 +81,7 @@ const TargetJS = {
81
81
  ...ParticleRendererModule,
82
82
  ...ParticleRuntimeModule,
83
83
  ...ParticleUtilModule,
84
- ...HtmlToCanvas
84
+ ...HtmlToCanvasModule
85
85
  };
86
86
 
87
87
  if (typeof window !== "undefined") {
@@ -452,12 +452,12 @@ var BaseModel = /*#__PURE__*/function () {
452
452
  this.calcAbsolutePosition(this.getX(), this.getY());
453
453
  }
454
454
  } else if (key === 'width' || key === 'height') {
455
- var dimension = Math.floor(key === 'width' ? this.val('width') : this.val('height'));
456
- if (this.styleMap[key] === dimension) {
455
+ if (this.styleMap[key] === this.val(key)) {
457
456
  styleFlag = false;
458
457
  }
459
458
  } else if (key === 'dim') {
460
- if (this.styleMap[key] === Math.floor(this.val('dim'))) {
459
+ var dim = this.val('dim');
460
+ if (this.styleMap.width === dim && this.styleMap.height === dim) {
461
461
  styleFlag = false;
462
462
  }
463
463
  } else if (TUtil.isDefined(this.val(key)) && this.styleMap[key] === this.val(key)) {