@visactor/vtable 1.7.0-alpha.1 → 1.7.0-alpha.5

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.
@@ -78,7 +78,7 @@ export class BaseTable extends EventTarget {
78
78
  }
79
79
  constructor(container, options = {}) {
80
80
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
81
- if (super(), this.showFrozenIcon = !0, this.version = "1.7.0-alpha.1", this.id = `VTable${Date.now()}`,
81
+ if (super(), this.showFrozenIcon = !0, this.version = "1.7.0-alpha.5", this.id = `VTable${Date.now()}`,
82
82
  this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
83
83
  !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
84
84
  const {frozenColCount: frozenColCount = 0, frozenRowCount: frozenRowCount, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, widthAdaptiveMode: widthAdaptiveMode = "only-body", heightAdaptiveMode: heightAdaptiveMode = "only-body", keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", dragHeaderMode: dragHeaderMode, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight, clearDOM: clearDOM = !0} = options;
@@ -183,7 +183,8 @@ export class BaseTable extends EventTarget {
183
183
  return this.internalProps.canvas;
184
184
  }
185
185
  setCanvasSize(canvasWidth, canvasHeight) {
186
- this.canvasWidth = canvasWidth, this.canvasHeight = canvasHeight, this.resize();
186
+ this.canvasWidth = canvasWidth, this.canvasHeight = canvasHeight, this.options.canvasHeight = canvasHeight,
187
+ this.options.canvasWidth = canvasWidth, this.resize();
187
188
  }
188
189
  resize() {
189
190
  var _a;