@visactor/vtable-calendar 1.17.7-alpha.0 → 1.17.7-alpha.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.
@@ -27753,8 +27753,7 @@
27753
27753
  DBLCLICK_FILL_HANDLE: "dblclick_fill_handle",
27754
27754
  EMPTY_TIP_CLICK: "empty_tip_click",
27755
27755
  EMPTY_TIP_DBLCLICK: "empty_tip_dblclick",
27756
- BUTTON_CLICK: "button_click",
27757
- BEFORE_CACHE_CHART_IMAGE: "before_cache_chart_image"
27756
+ BUTTON_CLICK: "button_click"
27758
27757
  };
27759
27758
 
27760
27759
  const judgeType = value => {
@@ -36678,9 +36677,6 @@
36678
36677
  }
36679
36678
  null === (_g = chartInstance.updateFullDataSync) || void 0 === _g || _g.call(chartInstance, dataBatch);
36680
36679
  }
36681
- table.fireListeners("before_cache_chart_image", {
36682
- chartInstance: chartInstance
36683
- });
36684
36680
  cacheStageCanvas(chartInstance.getStage(), chart);
36685
36681
  }
36686
36682
  function startRenderChartQueue(table) {
@@ -47809,7 +47805,7 @@
47809
47805
  constructor(container) {
47810
47806
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
47811
47807
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
47812
- if (super(), this.showFrozenIcon = !0, this.version = "1.17.7-alpha.0", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
47808
+ if (super(), this.showFrozenIcon = !0, this.version = "1.17.7-alpha.2", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
47813
47809
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
47814
47810
  const {
47815
47811
  frozenColCount = 0,
@@ -49548,9 +49544,11 @@
49548
49544
  this.render();
49549
49545
  const stage = this.scenegraph.stage;
49550
49546
  if (stage) {
49551
- const contentWidth = this.tableX + this.getAllColsWidth(),
49547
+ let contentWidth = this.tableX + this.getAllColsWidth(),
49552
49548
  contentHeight = this.tableY + this.getAllRowsHeight();
49553
- if (contentWidth >= this.canvasWidth && contentHeight >= this.canvasHeight) {
49549
+ if (this.internalProps.legends && this.internalProps.legends.forEach(legend => {
49550
+ "right" === legend.orient ? contentWidth = Math.max(contentWidth, legend.legendComponent.globalAABBBounds.x2) : "bottom" === legend.orient && (contentHeight = Math.max(contentHeight, legend.legendComponent.globalAABBBounds.y2));
49551
+ }), this.internalProps.title && ("right" === this.internalProps.title._titleOption.orient ? contentWidth = Math.max(contentWidth, this.internalProps.title.getComponentGraphic().globalAABBBounds.x2) : "bottom" === this.internalProps.title._titleOption.orient && (contentHeight = Math.max(contentHeight, this.internalProps.title.getComponentGraphic().globalAABBBounds.y2))), contentWidth >= this.canvasWidth && contentHeight >= this.canvasHeight) {
49554
49552
  stage.render();
49555
49553
  return stage.window.getImageBuffer(type);
49556
49554
  }