@visactor/vtable 1.20.0-alpha.4 → 1.20.0
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/ListTable.js +1 -1
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js +1 -1
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +1 -1
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +1 -0
- package/cjs/core/BaseTable.js +4 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/dataset/dataset-pivot-table.js +2 -1
- package/cjs/edit/editors.js +1 -2
- package/cjs/event/event.js +16 -5
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/table-group.js +8 -7
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/scenegraph/select/update-select-border.js +5 -4
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +1 -0
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +54 -27
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +1 -1
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js +1 -1
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +1 -1
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.d.ts +1 -0
- package/es/core/BaseTable.js +4 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/dataset/dataset-pivot-table.js +2 -1
- package/es/edit/editors.js +1 -2
- package/es/event/event.js +16 -5
- package/es/event/event.js.map +1 -1
- package/es/event/listener/table-group.js +8 -7
- package/es/event/listener/table-group.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/scenegraph/select/update-select-border.js +5 -4
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/ts-types/base-table.d.ts +1 -0
- package/es/ts-types/base-table.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +12 -9
package/es/core/BaseTable.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ export declare abstract class BaseTable extends EventTarget implements BaseTable
|
|
|
106
106
|
_resetFrozenColCount(): void;
|
|
107
107
|
get frozenRowCount(): number;
|
|
108
108
|
set frozenRowCount(frozenRowCount: number);
|
|
109
|
+
_setFrozenRowCount(frozenRowCount: number): void;
|
|
109
110
|
get rightFrozenColCount(): number;
|
|
110
111
|
set rightFrozenColCount(rightFrozenColCount: number);
|
|
111
112
|
get bottomFrozenRowCount(): number;
|
package/es/core/BaseTable.js
CHANGED
|
@@ -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, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
93
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.20.0
|
|
93
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.20.0", this.id = `VTable${Date.now()}`,
|
|
94
94
|
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
95
95
|
"node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container,
|
|
96
96
|
container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
@@ -317,6 +317,9 @@ export class BaseTable extends EventTarget {
|
|
|
317
317
|
this.internalProps.frozenRowCount = frozenRowCount, this.options.frozenRowCount = frozenRowCount,
|
|
318
318
|
this.stateManager.setFrozenRow(this.internalProps.frozenRowCount);
|
|
319
319
|
}
|
|
320
|
+
_setFrozenRowCount(frozenRowCount) {
|
|
321
|
+
this.internalProps.frozenRowCount = frozenRowCount, this.stateManager.setFrozenRow(this.internalProps.frozenRowCount);
|
|
322
|
+
}
|
|
320
323
|
get rightFrozenColCount() {
|
|
321
324
|
var _a, _b, _c, _d, _e;
|
|
322
325
|
return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.rightFrozenColCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.rightFrozenColCount) && void 0 !== _e ? _e : 0;
|