@visactor/vtable 1.16.3-alpha.2 → 1.16.3-alpha.3

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.
@@ -90,7 +90,7 @@ export class BaseTable extends EventTarget {
90
90
  }
91
91
  constructor(container, options = {}) {
92
92
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
93
- if (super(), this.showFrozenIcon = !0, this.version = "1.16.3-alpha.2", this.id = `VTable${Date.now()}`,
93
+ if (super(), this.showFrozenIcon = !0, this.version = "1.16.3-alpha.3", this.id = `VTable${Date.now()}`,
94
94
  this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
95
95
  !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
96
96
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
@@ -442,7 +442,8 @@ export class BaseTable extends EventTarget {
442
442
  return this.internalProps.pixelRatio;
443
443
  }
444
444
  setPixelRatio(pixelRatio) {
445
- if (pixelRatio !== this.internalProps.pixelRatio) {
445
+ var _a;
446
+ if (pixelRatio !== (null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.pixelRatio)) {
446
447
  this.internalProps.pixelRatio = pixelRatio;
447
448
  const canvasWidth = this.canvasWidth;
448
449
  this.internalProps.calcWidthContext = {