@visactor/vtable 0.12.2 → 0.12.3-alpha.1
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 +7 -7
- package/cjs/ListTable.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/core/TABLE_EVENT_TYPE.d.ts +2 -1
- package/cjs/core/TABLE_EVENT_TYPE.js +2 -1
- package/cjs/core/TABLE_EVENT_TYPE.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/group-creater/progress/proxy.js +8 -7
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js +1 -1
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js +1 -1
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/ts-types/events.d.ts +4 -2
- package/cjs/ts-types/events.js.map +1 -1
- package/dist/vtable.js +24 -16
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +8 -7
- package/es/ListTable.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/core/TABLE_EVENT_TYPE.d.ts +2 -1
- package/es/core/TABLE_EVENT_TYPE.js +2 -1
- package/es/core/TABLE_EVENT_TYPE.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/group-creater/progress/proxy.js +8 -6
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/layout/update-width.js +1 -1
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/scenegraph.js +1 -1
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/ts-types/events.d.ts +4 -2
- package/es/ts-types/events.js.map +1 -1
- package/package.json +3 -3
package/dist/vtable.js
CHANGED
|
@@ -3043,7 +3043,8 @@
|
|
|
3043
3043
|
LEGEND_CHANGE: 'legend_change',
|
|
3044
3044
|
MOUSEENTER_AXIS: 'mouseenter_axis',
|
|
3045
3045
|
MOUSELEAVE_AXIS: 'mouseleave_axis',
|
|
3046
|
-
|
|
3046
|
+
AFTER_RENDER: 'after_render',
|
|
3047
|
+
INITIALIZED: 'initialized'
|
|
3047
3048
|
};
|
|
3048
3049
|
|
|
3049
3050
|
const judgeType = (value) => {
|
|
@@ -41072,7 +41073,7 @@
|
|
|
41072
41073
|
isHeightChange = updateCellContentWidth(cellGroup, distWidth, detaX, autoRowHeight, getQuadProps(style.padding), style.textAlign, style.textBaseline, scene);
|
|
41073
41074
|
}
|
|
41074
41075
|
}
|
|
41075
|
-
return isHeightChange;
|
|
41076
|
+
return autoRowHeight ? isHeightChange : false;
|
|
41076
41077
|
}
|
|
41077
41078
|
function resetRowHeight(scene, row) {
|
|
41078
41079
|
const maxHeight = computeRowHeight(row, 0, scene.table.colCount - 1, scene.table);
|
|
@@ -44583,7 +44584,7 @@
|
|
|
44583
44584
|
}
|
|
44584
44585
|
}
|
|
44585
44586
|
setParamsForColumn() {
|
|
44586
|
-
this.bodyLeftCol = this.table.
|
|
44587
|
+
this.bodyLeftCol = this.table.frozenColCount;
|
|
44587
44588
|
this.bodyRightCol = this.table.colCount - 1 - this.table.rightFrozenColCount;
|
|
44588
44589
|
const totalActualBodyColCount = Math.min(this.colLimit, this.bodyRightCol - this.bodyLeftCol + 1);
|
|
44589
44590
|
this.totalCol = this.bodyLeftCol + totalActualBodyColCount - 1;
|
|
@@ -44665,11 +44666,11 @@
|
|
|
44665
44666
|
createRowCellGroup(onceCount) {
|
|
44666
44667
|
const endRow = Math.min(this.totalRow, this.currentRow + onceCount);
|
|
44667
44668
|
computeRowsHeight(this.table, this.currentRow + 1, endRow, false);
|
|
44668
|
-
if (this.table.
|
|
44669
|
+
if (this.table.frozenColCount) {
|
|
44669
44670
|
let maxHeight = 0;
|
|
44670
|
-
for (let col = 0; col < this.table.
|
|
44671
|
+
for (let col = 0; col < this.table.frozenColCount; col++) {
|
|
44671
44672
|
const colGroup = this.table.scenegraph.getColGroup(col);
|
|
44672
|
-
const cellLocation = 'rowHeader';
|
|
44673
|
+
const cellLocation = this.table.isListTable() ? 'body' : 'rowHeader';
|
|
44673
44674
|
const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table, cellLocation);
|
|
44674
44675
|
maxHeight = Math.max(maxHeight, height);
|
|
44675
44676
|
this.table.scenegraph.rowHeaderGroup.setAttribute('height', maxHeight);
|
|
@@ -44679,7 +44680,7 @@
|
|
|
44679
44680
|
let maxHeight = 0;
|
|
44680
44681
|
for (let col = this.table.colCount - this.table.rightFrozenColCount; col < this.table.colCount; col++) {
|
|
44681
44682
|
const colGroup = this.table.scenegraph.getColGroup(col);
|
|
44682
|
-
const cellLocation = 'rowHeader';
|
|
44683
|
+
const cellLocation = this.table.isListTable() ? 'body' : 'rowHeader';
|
|
44683
44684
|
const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table, cellLocation);
|
|
44684
44685
|
maxHeight = Math.max(maxHeight, height);
|
|
44685
44686
|
this.table.scenegraph.rightFrozenGroup.setAttribute('height', maxHeight);
|
|
@@ -44688,6 +44689,9 @@
|
|
|
44688
44689
|
let maxHeight = 0;
|
|
44689
44690
|
for (let col = this.bodyLeftCol; col <= this.bodyRightCol; col++) {
|
|
44690
44691
|
const colGroup = this.table.scenegraph.getColGroup(col);
|
|
44692
|
+
if (!colGroup) {
|
|
44693
|
+
continue;
|
|
44694
|
+
}
|
|
44691
44695
|
const cellLocation = 'body';
|
|
44692
44696
|
const { height } = createComplexColumn(colGroup, col, colGroup.attribute.width, this.currentRow + 1, endRow, this.table.scenegraph.mergeMap, this.table.internalProps.defaultRowHeight, this.table, cellLocation);
|
|
44693
44697
|
maxHeight = Math.max(maxHeight, height);
|
|
@@ -46159,7 +46163,7 @@
|
|
|
46159
46163
|
enableLayout: true,
|
|
46160
46164
|
pluginList: table.isPivotChart() ? ['poptipForText'] : undefined,
|
|
46161
46165
|
afterRender: () => {
|
|
46162
|
-
this.table.fireListeners('
|
|
46166
|
+
this.table.fireListeners('after_render', null);
|
|
46163
46167
|
}
|
|
46164
46168
|
});
|
|
46165
46169
|
this.stage.defaultLayer.setTheme({
|
|
@@ -52725,7 +52729,7 @@
|
|
|
52725
52729
|
return TABLE_EVENT_TYPE;
|
|
52726
52730
|
}
|
|
52727
52731
|
options;
|
|
52728
|
-
version = "0.12.
|
|
52732
|
+
version = "0.12.3-alpha.1";
|
|
52729
52733
|
pagination;
|
|
52730
52734
|
id = `VTable${Date.now()}`;
|
|
52731
52735
|
headerStyleCache;
|
|
@@ -53553,6 +53557,9 @@
|
|
|
53553
53557
|
render() {
|
|
53554
53558
|
this.scenegraph.renderSceneGraph();
|
|
53555
53559
|
}
|
|
53560
|
+
renderAsync() {
|
|
53561
|
+
this.scenegraph.updateNextFrame();
|
|
53562
|
+
}
|
|
53556
53563
|
_toRelativeRect(absoluteRect) {
|
|
53557
53564
|
const rect = absoluteRect.copy();
|
|
53558
53565
|
const visibleRect = this.getVisibleRect();
|
|
@@ -55981,6 +55988,9 @@
|
|
|
55981
55988
|
internalProps.title = new Title(options.title, this);
|
|
55982
55989
|
this.scenegraph.resize();
|
|
55983
55990
|
}
|
|
55991
|
+
setTimeout(() => {
|
|
55992
|
+
this.fireListeners(TABLE_EVENT_TYPE.INITIALIZED, null);
|
|
55993
|
+
}, 0);
|
|
55984
55994
|
}
|
|
55985
55995
|
isListTable() {
|
|
55986
55996
|
return true;
|
|
@@ -56002,7 +56012,7 @@
|
|
|
56002
56012
|
this.headerStyleCache = new Map();
|
|
56003
56013
|
this.bodyStyleCache = new Map();
|
|
56004
56014
|
this.scenegraph.createSceneGraph();
|
|
56005
|
-
this.
|
|
56015
|
+
this.renderAsync();
|
|
56006
56016
|
}
|
|
56007
56017
|
get header() {
|
|
56008
56018
|
return this.internalProps.columns;
|
|
@@ -56011,9 +56021,7 @@
|
|
|
56011
56021
|
this.internalProps.columns = header;
|
|
56012
56022
|
this.options.header = header;
|
|
56013
56023
|
this.refreshHeader();
|
|
56014
|
-
|
|
56015
|
-
this.render();
|
|
56016
|
-
}, 0);
|
|
56024
|
+
this.renderAsync();
|
|
56017
56025
|
}
|
|
56018
56026
|
get transpose() {
|
|
56019
56027
|
return this.internalProps.transpose ?? false;
|
|
@@ -56028,7 +56036,7 @@
|
|
|
56028
56036
|
this.internalProps.layoutMap.transpose = transpose;
|
|
56029
56037
|
this.refreshRowColCount();
|
|
56030
56038
|
this._resetFrozenColCount();
|
|
56031
|
-
this.
|
|
56039
|
+
this.renderAsync();
|
|
56032
56040
|
}
|
|
56033
56041
|
}
|
|
56034
56042
|
getCellValue(col, row) {
|
|
@@ -56125,7 +56133,7 @@
|
|
|
56125
56133
|
this.dataSource.updatePagination(this.pagination);
|
|
56126
56134
|
this.refreshRowColCount();
|
|
56127
56135
|
this.scenegraph.createSceneGraph();
|
|
56128
|
-
this.
|
|
56136
|
+
this.renderAsync();
|
|
56129
56137
|
}
|
|
56130
56138
|
}
|
|
56131
56139
|
refreshHeader() {
|
|
@@ -62432,7 +62440,7 @@
|
|
|
62432
62440
|
return new Tag(params ? params.attribute : {});
|
|
62433
62441
|
}
|
|
62434
62442
|
|
|
62435
|
-
const version = "0.12.
|
|
62443
|
+
const version = "0.12.3-alpha.1";
|
|
62436
62444
|
function getIcons() {
|
|
62437
62445
|
return get$1();
|
|
62438
62446
|
}
|