@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.
- package/cjs/core/BaseTable.js +9 -2
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +1 -0
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/dataset/dataset-pivot-table.js +2 -1
- package/cjs/edit/editors.js +1 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/chart-helper/get-axis-config.js +7 -5
- package/cjs/layout/chart-helper/get-axis-config.js.map +1 -1
- package/cjs/layout/pivot-header-layout.js +8 -5
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/scenegraph/select/update-select-border.js +5 -1
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/state/select/update-position.js +2 -2
- package/cjs/state/select/update-position.js.map +1 -1
- package/cjs/ts-types/events.d.ts +7 -0
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +70 -20
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.js +9 -2
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +1 -0
- package/es/core/TABLE_EVENT_TYPE.js +1 -0
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/dataset/dataset-pivot-table.js +2 -1
- package/es/edit/editors.js +1 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/chart-helper/get-axis-config.js +7 -5
- package/es/layout/chart-helper/get-axis-config.js.map +1 -1
- package/es/layout/pivot-header-layout.js +7 -5
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/scenegraph/select/update-select-border.js +5 -1
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/state/select/update-position.js +2 -2
- package/es/state/select/update-position.js.map +1 -1
- package/es/ts-types/events.d.ts +7 -0
- package/es/ts-types/events.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/cjs/core/BaseTable.js
CHANGED
|
@@ -43,7 +43,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
43
43
|
}
|
|
44
44
|
constructor(container, options = {}) {
|
|
45
45
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
46
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-alpha.
|
|
46
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-alpha.3", this.id = `VTable${Date.now()}`,
|
|
47
47
|
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = (0, util_1.throttle2)(this.render.bind(this), 200),
|
|
48
48
|
!container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
49
49
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vrender_1.vglobal.isImageAnonymous = !1);
|
|
@@ -192,7 +192,14 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
192
192
|
this._updateSize(), null === (_a = this.internalProps.legends) || void 0 === _a || _a.forEach((legend => {
|
|
193
193
|
null == legend || legend.resize();
|
|
194
194
|
})), this.internalProps.title && this.internalProps.title.resize(), this.internalProps.emptyTip && this.internalProps.emptyTip.resize(),
|
|
195
|
-
this.scenegraph.resize()
|
|
195
|
+
this.scenegraph.resize(), setTimeout((() => {
|
|
196
|
+
this.fireListeners(TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE.RESIZE_TABLE, {
|
|
197
|
+
tableX: this.tableX,
|
|
198
|
+
tableY: this.tableY,
|
|
199
|
+
tableWidth: this.tableNoFrameWidth,
|
|
200
|
+
tableHeight: this.tableNoFrameHeight
|
|
201
|
+
});
|
|
202
|
+
}), 0);
|
|
196
203
|
}
|
|
197
204
|
get rowCount() {
|
|
198
205
|
return this.internalProps.rowCount;
|