@visactor/vtable 0.13.0-alpha.5 → 0.13.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/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.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/graphic/chart.js +6 -1
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +3 -3
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +5 -3
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
- package/dist/vtable.js +25 -10
- package/dist/vtable.min.js +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.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/graphic/chart.js +6 -1
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +3 -3
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +5 -3
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
- package/package.json +3 -3
package/dist/vtable.js
CHANGED
|
@@ -42523,6 +42523,12 @@
|
|
|
42523
42523
|
static temp = 1;
|
|
42524
42524
|
deactivate() {
|
|
42525
42525
|
this.active = false;
|
|
42526
|
+
this.activeChartInstance.updateViewBox({
|
|
42527
|
+
x1: -1000,
|
|
42528
|
+
x2: -800,
|
|
42529
|
+
y1: -1000,
|
|
42530
|
+
y2: -800
|
|
42531
|
+
}, false, false);
|
|
42526
42532
|
this.activeChartInstance.release();
|
|
42527
42533
|
this.activeChartInstance = null;
|
|
42528
42534
|
}
|
|
@@ -44363,7 +44369,7 @@
|
|
|
44363
44369
|
createColGroup(rightBottomCornerGroup, xOrigin, yOrigin, table.colCount - 1 - table.rightFrozenColCount + 1, table.colCount - 1, table.rowCount - 1 - table.bottomFrozenRowCount + 1, table.rowCount - 1, 'body', table);
|
|
44364
44370
|
}
|
|
44365
44371
|
createColGroup(bodyGroup, xOrigin, yOrigin, table.frozenColCount, Math.min(proxy.firstScreenColLimit, table.colCount - 1 - table.rightFrozenColCount), table.columnHeaderLevelCount, Math.min(proxy.firstScreenRowLimit, table.rowCount - 1 - table.bottomFrozenRowCount), 'body', table);
|
|
44366
|
-
if (!bodyGroup.firstChild) {
|
|
44372
|
+
if (!bodyGroup.firstChild && !colHeaderGroup.firstChild) {
|
|
44367
44373
|
proxy.currentRow = proxy.totalRow;
|
|
44368
44374
|
proxy.rowEnd = proxy.currentRow;
|
|
44369
44375
|
proxy.rowUpdatePos = proxy.rowEnd;
|
|
@@ -44378,7 +44384,8 @@
|
|
|
44378
44384
|
proxy.rowEnd = proxy.currentRow;
|
|
44379
44385
|
proxy.rowUpdatePos = proxy.rowEnd;
|
|
44380
44386
|
proxy.referenceRow = proxy.rowStart + Math.floor((proxy.rowEnd - proxy.rowStart) / 2);
|
|
44381
|
-
proxy.currentCol =
|
|
44387
|
+
proxy.currentCol =
|
|
44388
|
+
bodyGroup.lastChild?.col ?? colHeaderGroup.lastChild?.col ?? proxy.totalCol;
|
|
44382
44389
|
proxy.colEnd = proxy.currentCol;
|
|
44383
44390
|
proxy.colUpdatePos = proxy.colEnd;
|
|
44384
44391
|
proxy.referenceCol = proxy.colStart + Math.floor((proxy.colEnd - proxy.colStart) / 2);
|
|
@@ -44594,7 +44601,7 @@
|
|
|
44594
44601
|
updateColContent(syncLeftCol, syncRightCol, proxy);
|
|
44595
44602
|
checkFirstColMerge(distStartCol, proxy);
|
|
44596
44603
|
updateAutoColumn(syncLeftCol, syncRightCol, proxy.table, direction);
|
|
44597
|
-
const colGroup = proxy.table.scenegraph.getColGroup(screenLeftCol);
|
|
44604
|
+
const colGroup = proxy.table.scenegraph.getColGroup(screenLeftCol) || proxy.table.scenegraph.getColGroup(screenLeftCol, true);
|
|
44598
44605
|
const deltaX = screenLeftX - (colGroup.attribute.x + proxy.table.getFrozenColsWidth() + proxy.table.scenegraph.proxy.deltaX);
|
|
44599
44606
|
proxy.table.scenegraph.proxy.deltaX += deltaX;
|
|
44600
44607
|
proxy.currentCol = direction === 'left' ? proxy.currentCol + count : proxy.currentCol - count;
|
|
@@ -45061,7 +45068,7 @@
|
|
|
45061
45068
|
this.xLimitRight = totalWidth - totalBodyWidth / 2;
|
|
45062
45069
|
const widthLimit = this.table.tableNoFrameWidth * 5;
|
|
45063
45070
|
this.screenColCount = Math.ceil(this.table.tableNoFrameWidth / defaultColWidth);
|
|
45064
|
-
this.firstScreenColLimit = this.bodyLeftCol + Math.ceil(widthLimit / defaultColWidth);
|
|
45071
|
+
this.firstScreenColLimit = this.bodyLeftCol + Math.min(this.colLimit, Math.ceil(widthLimit / defaultColWidth));
|
|
45065
45072
|
this.colUpdatePos = this.bodyRightCol;
|
|
45066
45073
|
}
|
|
45067
45074
|
setParamsForRow() {
|
|
@@ -45078,7 +45085,7 @@
|
|
|
45078
45085
|
this.yLimitBottom = totalHeight - totalBodyHeight / 2;
|
|
45079
45086
|
const heightLimit = this.table.tableNoFrameHeight * 5;
|
|
45080
45087
|
this.screenRowCount = Math.ceil(this.table.tableNoFrameHeight / defaultRowHeight);
|
|
45081
|
-
this.firstScreenRowLimit = this.bodyTopRow + Math.ceil(heightLimit / defaultRowHeight);
|
|
45088
|
+
this.firstScreenRowLimit = this.bodyTopRow + Math.min(this.rowLimit, Math.ceil(heightLimit / defaultRowHeight));
|
|
45082
45089
|
this.rowUpdatePos = this.bodyBottomRow;
|
|
45083
45090
|
}
|
|
45084
45091
|
async createGroupForFirstScreen(cornerHeaderGroup, colHeaderGroup, rowHeaderGroup, rightFrozenGroup, bottomFrozenGroup, bodyGroup, xOrigin, yOrigin) {
|
|
@@ -45193,9 +45200,17 @@
|
|
|
45193
45200
|
const yOrigin = lastColumnGroup.attribute.y;
|
|
45194
45201
|
createColGroup(this.table.scenegraph.bottomFrozenGroup, xOrigin, yOrigin, this.currentCol + 1, endCol, this.table.rowCount - this.table.bottomFrozenRowCount, this.table.rowCount - 1, 'columnHeader', this.table);
|
|
45195
45202
|
}
|
|
45196
|
-
|
|
45197
|
-
|
|
45198
|
-
|
|
45203
|
+
let lastColumnGroup = this.table.scenegraph.bodyGroup.lastChild &&
|
|
45204
|
+
(this.table.scenegraph.bodyGroup.lastChild instanceof Group
|
|
45205
|
+
? this.table.scenegraph.bodyGroup.lastChild
|
|
45206
|
+
: this.table.scenegraph.bodyGroup.lastChild._prev);
|
|
45207
|
+
if (!lastColumnGroup) {
|
|
45208
|
+
lastColumnGroup =
|
|
45209
|
+
this.table.scenegraph.colHeaderGroup.lastChild &&
|
|
45210
|
+
(this.table.scenegraph.colHeaderGroup.lastChild instanceof Group
|
|
45211
|
+
? this.table.scenegraph.colHeaderGroup.lastChild
|
|
45212
|
+
: this.table.scenegraph.colHeaderGroup.lastChild._prev);
|
|
45213
|
+
}
|
|
45199
45214
|
const xOrigin = lastColumnGroup.attribute.x + lastColumnGroup.attribute.width;
|
|
45200
45215
|
const yOrigin = lastColumnGroup.attribute.y;
|
|
45201
45216
|
createColGroup(this.table.scenegraph.bodyGroup, xOrigin, yOrigin, this.currentCol + 1, endCol, this.rowStart, this.rowEnd, 'body', this.table);
|
|
@@ -53253,7 +53268,7 @@
|
|
|
53253
53268
|
return TABLE_EVENT_TYPE;
|
|
53254
53269
|
}
|
|
53255
53270
|
options;
|
|
53256
|
-
version = "0.13.0
|
|
53271
|
+
version = "0.13.0";
|
|
53257
53272
|
pagination;
|
|
53258
53273
|
id = `VTable${Date.now()}`;
|
|
53259
53274
|
headerStyleCache;
|
|
@@ -63014,7 +63029,7 @@
|
|
|
63014
63029
|
return new Tag(params ? params.attribute : {});
|
|
63015
63030
|
}
|
|
63016
63031
|
|
|
63017
|
-
const version = "0.13.0
|
|
63032
|
+
const version = "0.13.0";
|
|
63018
63033
|
function getIcons() {
|
|
63019
63034
|
return get$1();
|
|
63020
63035
|
}
|