@visactor/vtable 1.17.3-alpha.10 → 1.17.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.
Files changed (45) hide show
  1. package/cjs/core/BaseTable.js +9 -2
  2. package/cjs/core/BaseTable.js.map +1 -1
  3. package/cjs/core/TABLE_EVENT_TYPE.d.ts +1 -0
  4. package/cjs/core/TABLE_EVENT_TYPE.js +1 -0
  5. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
  6. package/cjs/dataset/dataset-pivot-table.js +2 -1
  7. package/cjs/edit/editors.js +1 -2
  8. package/cjs/index.d.ts +1 -1
  9. package/cjs/index.js +1 -1
  10. package/cjs/index.js.map +1 -1
  11. package/cjs/layout/chart-helper/get-axis-config.js +7 -5
  12. package/cjs/layout/chart-helper/get-axis-config.js.map +1 -1
  13. package/cjs/layout/pivot-header-layout.js +8 -5
  14. package/cjs/layout/pivot-header-layout.js.map +1 -1
  15. package/cjs/scenegraph/select/update-select-border.js +5 -1
  16. package/cjs/scenegraph/select/update-select-border.js.map +1 -1
  17. package/cjs/state/select/update-position.js +2 -2
  18. package/cjs/state/select/update-position.js.map +1 -1
  19. package/cjs/ts-types/events.d.ts +7 -0
  20. package/cjs/ts-types/events.js.map +1 -1
  21. package/cjs/vrender.js.map +1 -1
  22. package/dist/vtable.js +70 -20
  23. package/dist/vtable.min.js +2 -2
  24. package/es/core/BaseTable.js +9 -2
  25. package/es/core/BaseTable.js.map +1 -1
  26. package/es/core/TABLE_EVENT_TYPE.d.ts +1 -0
  27. package/es/core/TABLE_EVENT_TYPE.js +1 -0
  28. package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
  29. package/es/dataset/dataset-pivot-table.js +2 -1
  30. package/es/edit/editors.js +1 -2
  31. package/es/index.d.ts +1 -1
  32. package/es/index.js +1 -1
  33. package/es/index.js.map +1 -1
  34. package/es/layout/chart-helper/get-axis-config.js +7 -5
  35. package/es/layout/chart-helper/get-axis-config.js.map +1 -1
  36. package/es/layout/pivot-header-layout.js +7 -5
  37. package/es/layout/pivot-header-layout.js.map +1 -1
  38. package/es/scenegraph/select/update-select-border.js +5 -1
  39. package/es/scenegraph/select/update-select-border.js.map +1 -1
  40. package/es/state/select/update-position.js +2 -2
  41. package/es/state/select/update-position.js.map +1 -1
  42. package/es/ts-types/events.d.ts +7 -0
  43. package/es/ts-types/events.js.map +1 -1
  44. package/es/vrender.js.map +1 -1
  45. package/package.json +4 -4
@@ -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, _m, _o, _p, _q, _r;
93
- if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-alpha.10", this.id = `VTable${Date.now()}`,
93
+ if (super(), this.showFrozenIcon = !0, this.version = "1.17.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);
@@ -236,7 +236,14 @@ export class BaseTable extends EventTarget {
236
236
  this._updateSize(), null === (_a = this.internalProps.legends) || void 0 === _a || _a.forEach((legend => {
237
237
  null == legend || legend.resize();
238
238
  })), this.internalProps.title && this.internalProps.title.resize(), this.internalProps.emptyTip && this.internalProps.emptyTip.resize(),
239
- this.scenegraph.resize();
239
+ this.scenegraph.resize(), setTimeout((() => {
240
+ this.fireListeners(TABLE_EVENT_TYPE.RESIZE_TABLE, {
241
+ tableX: this.tableX,
242
+ tableY: this.tableY,
243
+ tableWidth: this.tableNoFrameWidth,
244
+ tableHeight: this.tableNoFrameHeight
245
+ });
246
+ }), 0);
240
247
  }
241
248
  get rowCount() {
242
249
  return this.internalProps.rowCount;