@visactor/vtable 0.9.1-alpha.5 → 0.9.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/core/BaseTable.js +2 -2
- 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/group-creater/cell-type/chart-cell.js +5 -4
- package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/cjs/scenegraph/layout/frozen.d.ts +3 -0
- package/cjs/scenegraph/layout/frozen.js +66 -0
- package/cjs/scenegraph/layout/frozen.js.map +1 -0
- package/cjs/scenegraph/layout/update-width.js +1 -1
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/refresh-node/update-chart.js +5 -5
- package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js +7 -47
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/style/frame-border.d.ts +1 -1
- package/cjs/scenegraph/style/frame-border.js +3 -3
- package/cjs/scenegraph/style/frame-border.js.map +1 -1
- package/cjs/scenegraph/utils/text-icon-layout.js +2 -2
- package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/dist/vtable.es5.js +129 -109
- package/dist/vtable.es5.min.js +1 -1
- package/dist/vtable.js +129 -109
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.js +2 -2
- 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/group-creater/cell-type/chart-cell.js +5 -4
- package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
- package/es/scenegraph/layout/frozen.d.ts +3 -0
- package/es/scenegraph/layout/frozen.js +58 -0
- package/es/scenegraph/layout/frozen.js.map +1 -0
- package/es/scenegraph/layout/update-width.js +1 -1
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/refresh-node/update-chart.js +5 -5
- package/es/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/es/scenegraph/scenegraph.js +8 -46
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/style/frame-border.d.ts +1 -1
- package/es/scenegraph/style/frame-border.js +3 -3
- package/es/scenegraph/style/frame-border.js.map +1 -1
- package/es/scenegraph/utils/text-icon-layout.js +2 -2
- package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
- package/package.json +4 -3
package/dist/vtable.js
CHANGED
|
@@ -27081,7 +27081,7 @@
|
|
|
27081
27081
|
}
|
|
27082
27082
|
newHeight = cellGroup.attribute.height - (padding[0] + padding[2]);
|
|
27083
27083
|
cellGroup.forEachChildren((child) => {
|
|
27084
|
-
if (child.type === 'rect') {
|
|
27084
|
+
if (child.type === 'rect' || child.type === 'chart') {
|
|
27085
27085
|
return;
|
|
27086
27086
|
}
|
|
27087
27087
|
if (child.name === 'mark') {
|
|
@@ -27100,7 +27100,7 @@
|
|
|
27100
27100
|
}
|
|
27101
27101
|
else if (textBaseline === 'middle' || textBaseline === 'bottom') {
|
|
27102
27102
|
cellGroup.forEachChildren((child) => {
|
|
27103
|
-
if (child.type === 'rect') {
|
|
27103
|
+
if (child.type === 'rect' || child.type === 'chart') {
|
|
27104
27104
|
return;
|
|
27105
27105
|
}
|
|
27106
27106
|
if (child.name === 'mark') {
|
|
@@ -28578,6 +28578,7 @@
|
|
|
28578
28578
|
}
|
|
28579
28579
|
cellGroup.AABBBounds.width();
|
|
28580
28580
|
const chartGroup = new Chart({
|
|
28581
|
+
stroke: false,
|
|
28581
28582
|
x: padding[3],
|
|
28582
28583
|
y: padding[0],
|
|
28583
28584
|
canvas: table.canvas,
|
|
@@ -28590,10 +28591,10 @@
|
|
|
28590
28591
|
data: table.getCellValue(col, row),
|
|
28591
28592
|
cellPadding: padding,
|
|
28592
28593
|
viewBox: {
|
|
28593
|
-
x1: Math.ceil(cellGroup.globalAABBBounds.x1 +
|
|
28594
|
-
x2: Math.ceil(cellGroup.globalAABBBounds.x1 + width
|
|
28595
|
-
y1: Math.ceil(cellGroup.globalAABBBounds.y1 +
|
|
28596
|
-
y2: Math.ceil(cellGroup.globalAABBBounds.y1 + height
|
|
28594
|
+
x1: Math.ceil(cellGroup.globalAABBBounds.x1 + padding[3] + table.scrollLeft),
|
|
28595
|
+
x2: Math.ceil(cellGroup.globalAABBBounds.x1 + width - padding[1] + table.scrollLeft),
|
|
28596
|
+
y1: Math.ceil(cellGroup.globalAABBBounds.y1 + padding[0] + table.scrollTop),
|
|
28597
|
+
y2: Math.ceil(cellGroup.globalAABBBounds.y1 + height - padding[2] + table.scrollTop)
|
|
28597
28598
|
}
|
|
28598
28599
|
});
|
|
28599
28600
|
cellGroup.appendChild(chartGroup);
|
|
@@ -30850,7 +30851,7 @@
|
|
|
30850
30851
|
const { autoRowHeight } = scene.table.internalProps;
|
|
30851
30852
|
let needRerangeRow = false;
|
|
30852
30853
|
const colOrCornerHeaderColumn = scene.getColGroup(col, true);
|
|
30853
|
-
const oldColOrCornerHeaderColumnWidth = colOrCornerHeaderColumn
|
|
30854
|
+
const oldColOrCornerHeaderColumnWidth = colOrCornerHeaderColumn?.attribute.width;
|
|
30854
30855
|
colOrCornerHeaderColumn?.setAttribute('width', oldColOrCornerHeaderColumnWidth + detaX);
|
|
30855
30856
|
colOrCornerHeaderColumn?.forEachChildren((cell, index) => {
|
|
30856
30857
|
const isHeightChange = updateCellWidth(scene, cell, col, cell.row, oldColOrCornerHeaderColumnWidth, detaX, index < scene.table.columnHeaderLevelCount, autoRowHeight);
|
|
@@ -32113,7 +32114,7 @@
|
|
|
32113
32114
|
}
|
|
32114
32115
|
}
|
|
32115
32116
|
|
|
32116
|
-
function createFrameBorder(group, frameTheme, role, strokeArray) {
|
|
32117
|
+
function createFrameBorder(group, frameTheme, role, strokeArray, justForXYPosition) {
|
|
32117
32118
|
if (!frameTheme) {
|
|
32118
32119
|
return;
|
|
32119
32120
|
}
|
|
@@ -32168,10 +32169,13 @@
|
|
|
32168
32169
|
if (isTableGroup && (rectAttributes.shadowBlur || rectAttributes.lineWidth)) {
|
|
32169
32170
|
const deltaX = (rectAttributes.shadowBlur ?? 0) + (borderLeft + borderRight) / 2;
|
|
32170
32171
|
const deltaY = (rectAttributes.shadowBlur ?? 0) + (borderTop + borderBottom) / 2;
|
|
32171
|
-
groupAttributes.x =
|
|
32172
|
-
groupAttributes.y =
|
|
32172
|
+
groupAttributes.x = deltaX;
|
|
32173
|
+
groupAttributes.y = deltaY;
|
|
32173
32174
|
}
|
|
32174
32175
|
group.setAttributes(groupAttributes);
|
|
32176
|
+
if (justForXYPosition) {
|
|
32177
|
+
return;
|
|
32178
|
+
}
|
|
32175
32179
|
if (rectAttributes.stroke) {
|
|
32176
32180
|
rectAttributes.x = borderLeft / 2;
|
|
32177
32181
|
rectAttributes.y = borderTop / 2;
|
|
@@ -34110,32 +34114,18 @@
|
|
|
34110
34114
|
const chartInstance = columnGroup.attribute?.chartInstance;
|
|
34111
34115
|
if (chartInstance) {
|
|
34112
34116
|
columnGroup.getChildren().forEach((cellNode) => {
|
|
34113
|
-
const width =
|
|
34114
|
-
const height =
|
|
34117
|
+
const width = scenegraph.table.getColWidth(cellNode.col);
|
|
34118
|
+
const height = scenegraph.table.getRowHeight(cellNode.row);
|
|
34115
34119
|
cellNode.children.forEach((node) => {
|
|
34116
34120
|
if (node.type === 'chart') {
|
|
34117
34121
|
node.cacheCanvas = null;
|
|
34118
34122
|
node.setAttribute('width', Math.ceil(width - node.attribute.cellPadding[3] - node.attribute.cellPadding[1]));
|
|
34119
34123
|
node.setAttribute('height', Math.ceil(height - node.attribute.cellPadding[0] - node.attribute.cellPadding[2]));
|
|
34120
34124
|
node.setAttribute('viewBox', {
|
|
34121
|
-
x1: Math.ceil(cellNode.globalAABBBounds.x1 +
|
|
34122
|
-
|
|
34123
|
-
|
|
34124
|
-
|
|
34125
|
-
x2: Math.ceil(cellNode.globalAABBBounds.x1 +
|
|
34126
|
-
width +
|
|
34127
|
-
scenegraph.table.tableX -
|
|
34128
|
-
node.attribute.cellPadding[1] +
|
|
34129
|
-
scenegraph.table.scrollLeft),
|
|
34130
|
-
y1: Math.ceil(cellNode.globalAABBBounds.y1 +
|
|
34131
|
-
scenegraph.table.tableY +
|
|
34132
|
-
node.attribute.cellPadding[0] +
|
|
34133
|
-
scenegraph.table.scrollTop),
|
|
34134
|
-
y2: Math.ceil(cellNode.globalAABBBounds.y1 +
|
|
34135
|
-
height +
|
|
34136
|
-
scenegraph.table.tableY -
|
|
34137
|
-
node.attribute.cellPadding[2] +
|
|
34138
|
-
scenegraph.table.scrollTop)
|
|
34125
|
+
x1: Math.ceil(cellNode.globalAABBBounds.x1 + node.attribute.cellPadding[3] + scenegraph.table.scrollLeft),
|
|
34126
|
+
x2: Math.ceil(cellNode.globalAABBBounds.x1 + width - node.attribute.cellPadding[1] + scenegraph.table.scrollLeft),
|
|
34127
|
+
y1: Math.ceil(cellNode.globalAABBBounds.y1 + node.attribute.cellPadding[0] + scenegraph.table.scrollTop),
|
|
34128
|
+
y2: Math.ceil(cellNode.globalAABBBounds.y1 + height - node.attribute.cellPadding[2] + scenegraph.table.scrollTop)
|
|
34139
34129
|
});
|
|
34140
34130
|
}
|
|
34141
34131
|
});
|
|
@@ -34144,6 +34134,107 @@
|
|
|
34144
34134
|
}
|
|
34145
34135
|
}
|
|
34146
34136
|
|
|
34137
|
+
function dealFrozen(scene) {
|
|
34138
|
+
if (scene.table.frozenColCount > scene.table.rowHeaderLevelCount) {
|
|
34139
|
+
scene.rowHeaderGroup.setAttribute('height', scene.bodyGroup.attribute.height);
|
|
34140
|
+
scene.rowHeaderGroup.setAttribute('y', scene.bodyGroup.attribute.y);
|
|
34141
|
+
scene.cornerHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height);
|
|
34142
|
+
for (let i = 0; i < scene.table.frozenColCount - scene.table.rowHeaderLevelCount; i++) {
|
|
34143
|
+
moveColumnFromBodyToRowHeader(scene);
|
|
34144
|
+
moveColumnFromColHeaderToCornerHeader(scene);
|
|
34145
|
+
}
|
|
34146
|
+
}
|
|
34147
|
+
else if (scene.table.frozenColCount < scene.table.rowHeaderLevelCount) {
|
|
34148
|
+
for (let i = 0; i < scene.table.rowHeaderLevelCount - scene.table.frozenColCount; i++) {
|
|
34149
|
+
moveColumnFromRowHeaderToBody(scene);
|
|
34150
|
+
moveColumnFromCornerHeaderToColHeader(scene);
|
|
34151
|
+
}
|
|
34152
|
+
}
|
|
34153
|
+
scene.bodyGroup.setAttribute('x', scene.rowHeaderGroup.attribute.width);
|
|
34154
|
+
scene.colHeaderGroup.setAttribute('x', scene.cornerHeaderGroup.attribute.width);
|
|
34155
|
+
scene.updateContainer();
|
|
34156
|
+
scene.updateBorderSizeAndPosition();
|
|
34157
|
+
if (!scene.isPivot && !scene.transpose) {
|
|
34158
|
+
scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);
|
|
34159
|
+
}
|
|
34160
|
+
scene.hasFrozen = true;
|
|
34161
|
+
scene.frozenColCount = scene.table.frozenColCount;
|
|
34162
|
+
scene.frozenRowCount = scene.colHeaderGroup.firstChild?.childrenCount ?? 0;
|
|
34163
|
+
}
|
|
34164
|
+
function resetFrozen(scene) {
|
|
34165
|
+
if (scene.frozenColCount > scene.table.rowHeaderLevelCount) {
|
|
34166
|
+
for (let i = 0; i < scene.frozenColCount - scene.table.rowHeaderLevelCount; i++) {
|
|
34167
|
+
moveColumnFromRowHeaderToBody(scene);
|
|
34168
|
+
moveColumnFromCornerHeaderToColHeader(scene);
|
|
34169
|
+
}
|
|
34170
|
+
}
|
|
34171
|
+
else if (scene.frozenColCount < scene.table.rowHeaderLevelCount) {
|
|
34172
|
+
scene.rowHeaderGroup.setAttribute('height', scene.bodyGroup.attribute.height);
|
|
34173
|
+
scene.rowHeaderGroup.setAttribute('y', scene.bodyGroup.attribute.y);
|
|
34174
|
+
scene.cornerHeaderGroup.setAttribute('height', scene.colHeaderGroup.attribute.height);
|
|
34175
|
+
for (let i = 0; i < scene.table.rowHeaderLevelCount - scene.frozenColCount; i++) {
|
|
34176
|
+
moveColumnFromBodyToRowHeader(scene);
|
|
34177
|
+
moveColumnFromColHeaderToCornerHeader(scene);
|
|
34178
|
+
}
|
|
34179
|
+
}
|
|
34180
|
+
scene.bodyGroup.setAttribute('x', scene.rowHeaderGroup.attribute.width);
|
|
34181
|
+
scene.colHeaderGroup.setAttribute('x', scene.cornerHeaderGroup.attribute.width);
|
|
34182
|
+
scene.updateContainer();
|
|
34183
|
+
scene.updateBorderSizeAndPosition();
|
|
34184
|
+
if (!scene.isPivot && !scene.transpose) {
|
|
34185
|
+
scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1);
|
|
34186
|
+
}
|
|
34187
|
+
scene.hasFrozen = true;
|
|
34188
|
+
scene.frozenColCount = scene.table.rowHeaderLevelCount;
|
|
34189
|
+
scene.frozenRowCount = scene.colHeaderGroup.firstChild?.childrenCount ?? 0;
|
|
34190
|
+
}
|
|
34191
|
+
function moveColumnFromBodyToRowHeader(scene) {
|
|
34192
|
+
const column = scene.bodyGroup.firstChild instanceof Group ? scene.bodyGroup.firstChild : null;
|
|
34193
|
+
if (column) {
|
|
34194
|
+
scene.rowHeaderGroup.appendChild(column);
|
|
34195
|
+
scene.rowHeaderGroup.setAttribute('width', scene.rowHeaderGroup.attribute.width + column.attribute.width);
|
|
34196
|
+
scene.bodyGroup.setAttribute('width', scene.bodyGroup.attribute.width - column.attribute.width);
|
|
34197
|
+
}
|
|
34198
|
+
}
|
|
34199
|
+
function moveColumnFromColHeaderToCornerHeader(scene) {
|
|
34200
|
+
const headerColumn = scene.colHeaderGroup.firstChild instanceof Group ? scene.colHeaderGroup.firstChild : null;
|
|
34201
|
+
if (headerColumn) {
|
|
34202
|
+
scene.cornerHeaderGroup.appendChild(headerColumn);
|
|
34203
|
+
scene.cornerHeaderGroup.setAttribute('width', scene.cornerHeaderGroup.attribute.width + headerColumn.attribute.width);
|
|
34204
|
+
scene.colHeaderGroup.setAttribute('width', scene.colHeaderGroup.attribute.width - headerColumn.attribute.width);
|
|
34205
|
+
}
|
|
34206
|
+
}
|
|
34207
|
+
function moveColumnFromRowHeaderToBody(scene) {
|
|
34208
|
+
const column = scene.rowHeaderGroup.lastChild instanceof Group
|
|
34209
|
+
? scene.rowHeaderGroup.lastChild
|
|
34210
|
+
: scene.rowHeaderGroup.lastChild?._prev;
|
|
34211
|
+
if (column) {
|
|
34212
|
+
if (scene.bodyGroup.firstChild) {
|
|
34213
|
+
scene.bodyGroup.insertBefore(column, scene.bodyGroup.firstChild);
|
|
34214
|
+
}
|
|
34215
|
+
else {
|
|
34216
|
+
scene.bodyGroup.appendChild(column);
|
|
34217
|
+
}
|
|
34218
|
+
scene.bodyGroup.setAttribute('width', scene.bodyGroup.attribute.width + column.attribute.width);
|
|
34219
|
+
scene.rowHeaderGroup.setAttribute('width', scene.rowHeaderGroup.attribute.width - column.attribute.width);
|
|
34220
|
+
}
|
|
34221
|
+
}
|
|
34222
|
+
function moveColumnFromCornerHeaderToColHeader(scene) {
|
|
34223
|
+
const headerColumn = scene.cornerHeaderGroup.lastChild instanceof Group
|
|
34224
|
+
? scene.cornerHeaderGroup.lastChild
|
|
34225
|
+
: scene.cornerHeaderGroup.lastChild?._prev;
|
|
34226
|
+
if (headerColumn) {
|
|
34227
|
+
if (scene.colHeaderGroup.firstChild) {
|
|
34228
|
+
scene.colHeaderGroup.insertBefore(headerColumn, scene.colHeaderGroup.firstChild);
|
|
34229
|
+
}
|
|
34230
|
+
else {
|
|
34231
|
+
scene.bodyGroup.appendChild(headerColumn);
|
|
34232
|
+
}
|
|
34233
|
+
scene.colHeaderGroup.setAttribute('width', scene.colHeaderGroup.attribute.width + headerColumn.attribute.width);
|
|
34234
|
+
scene.cornerHeaderGroup.setAttribute('width', scene.cornerHeaderGroup.attribute.width - headerColumn.attribute.width);
|
|
34235
|
+
}
|
|
34236
|
+
}
|
|
34237
|
+
|
|
34147
34238
|
container.load(splitModule);
|
|
34148
34239
|
class Scenegraph {
|
|
34149
34240
|
proxy;
|
|
@@ -34334,6 +34425,7 @@
|
|
|
34334
34425
|
this.frozenColCount = this.table.rowHeaderLevelCount;
|
|
34335
34426
|
this.frozenRowCount = this.table.columnHeaderLevelCount;
|
|
34336
34427
|
this.proxy = new SceneProxy(this.table);
|
|
34428
|
+
createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role, undefined, true);
|
|
34337
34429
|
this.createHeaderSceneGraph();
|
|
34338
34430
|
if (this.transpose || this.isPivot) {
|
|
34339
34431
|
this.createBodySceneGraph();
|
|
@@ -34597,7 +34689,7 @@
|
|
|
34597
34689
|
}
|
|
34598
34690
|
updateColWidth(col, detaX) {
|
|
34599
34691
|
updateColWidth(this, col, detaX);
|
|
34600
|
-
this.
|
|
34692
|
+
this.updateContainer();
|
|
34601
34693
|
}
|
|
34602
34694
|
updateChartSize(col) {
|
|
34603
34695
|
updateChartSize(this, col);
|
|
@@ -34790,83 +34882,10 @@
|
|
|
34790
34882
|
});
|
|
34791
34883
|
}
|
|
34792
34884
|
dealFrozen() {
|
|
34793
|
-
|
|
34794
|
-
this.rowHeaderGroup.setAttribute('height', this.bodyGroup.attribute.height);
|
|
34795
|
-
this.rowHeaderGroup.setAttribute('y', this.bodyGroup.attribute.y);
|
|
34796
|
-
this.cornerHeaderGroup.setAttribute('height', this.colHeaderGroup.attribute.height);
|
|
34797
|
-
for (let i = 0; i < this.table.frozenColCount - this.table.rowHeaderLevelCount; i++) {
|
|
34798
|
-
const column = this.bodyGroup.firstChild;
|
|
34799
|
-
if (column) {
|
|
34800
|
-
this.rowHeaderGroup.appendChild(column);
|
|
34801
|
-
this.rowHeaderGroup.setAttribute('width', this.rowHeaderGroup.attribute.width + column.attribute.width);
|
|
34802
|
-
this.bodyGroup.setAttribute('width', this.bodyGroup.attribute.width - column.attribute.width);
|
|
34803
|
-
}
|
|
34804
|
-
const headerColumn = this.colHeaderGroup.firstChild;
|
|
34805
|
-
if (headerColumn) {
|
|
34806
|
-
this.cornerHeaderGroup.appendChild(headerColumn);
|
|
34807
|
-
this.cornerHeaderGroup.setAttribute('width', this.cornerHeaderGroup.attribute.width + headerColumn.attribute.width);
|
|
34808
|
-
this.colHeaderGroup.setAttribute('width', this.colHeaderGroup.attribute.width - headerColumn.attribute.width);
|
|
34809
|
-
}
|
|
34810
|
-
}
|
|
34811
|
-
}
|
|
34812
|
-
this.bodyGroup.setAttribute('x', this.rowHeaderGroup.attribute.width);
|
|
34813
|
-
this.colHeaderGroup.setAttribute('x', this.cornerHeaderGroup.attribute.width);
|
|
34814
|
-
const bodyDeltaX = this.bodyGroup.firstChild?.attribute.x ?? 0;
|
|
34815
|
-
this.bodyGroup.forEachChildrenSkipChild((column) => {
|
|
34816
|
-
column.setAttribute('x', column.attribute.x - bodyDeltaX);
|
|
34817
|
-
});
|
|
34818
|
-
const colDeltaX = this.colHeaderGroup.firstChild?.attribute.x ?? 0;
|
|
34819
|
-
this.colHeaderGroup.forEachChildrenSkipChild((column) => {
|
|
34820
|
-
column.setAttribute('x', column.attribute.x - colDeltaX);
|
|
34821
|
-
});
|
|
34822
|
-
this.updateBorderSizeAndPosition();
|
|
34823
|
-
if (!this.isPivot && !this.transpose) {
|
|
34824
|
-
this.component.setFrozenColumnShadow(this.table.frozenColCount - 1);
|
|
34825
|
-
}
|
|
34826
|
-
this.hasFrozen = true;
|
|
34827
|
-
this.frozenColCount = this.table.frozenColCount;
|
|
34828
|
-
this.frozenRowCount = this.colHeaderGroup.firstChild?.childrenCount ?? 0;
|
|
34885
|
+
dealFrozen(this);
|
|
34829
34886
|
}
|
|
34830
34887
|
resetFrozen() {
|
|
34831
|
-
|
|
34832
|
-
for (let i = 0; i < this.frozenColCount - this.table.rowHeaderLevelCount; i++) {
|
|
34833
|
-
const column = this.rowHeaderGroup.lastChild instanceof Group
|
|
34834
|
-
? this.rowHeaderGroup.lastChild
|
|
34835
|
-
: this.rowHeaderGroup.lastChild._prev;
|
|
34836
|
-
if (column) {
|
|
34837
|
-
this.bodyGroup.insertBefore(column, this.bodyGroup.firstChild);
|
|
34838
|
-
this.bodyGroup.setAttribute('width', this.bodyGroup.attribute.width + column.attribute.width);
|
|
34839
|
-
this.rowHeaderGroup.setAttribute('width', this.rowHeaderGroup.attribute.width - column.attribute.width);
|
|
34840
|
-
}
|
|
34841
|
-
const headerColumn = this.cornerHeaderGroup.lastChild instanceof Group
|
|
34842
|
-
? this.cornerHeaderGroup.lastChild
|
|
34843
|
-
: this.cornerHeaderGroup.lastChild._prev;
|
|
34844
|
-
if (headerColumn) {
|
|
34845
|
-
this.colHeaderGroup.insertBefore(headerColumn, this.colHeaderGroup.firstChild);
|
|
34846
|
-
this.colHeaderGroup.setAttribute('width', this.colHeaderGroup.attribute.width + headerColumn.attribute.width);
|
|
34847
|
-
this.cornerHeaderGroup.setAttribute('width', this.cornerHeaderGroup.attribute.width - headerColumn.attribute.width);
|
|
34848
|
-
}
|
|
34849
|
-
}
|
|
34850
|
-
}
|
|
34851
|
-
this.bodyGroup.setAttribute('x', this.rowHeaderGroup.attribute.width);
|
|
34852
|
-
this.colHeaderGroup.setAttribute('x', this.cornerHeaderGroup.attribute.width);
|
|
34853
|
-
let bodyX = 0;
|
|
34854
|
-
this.bodyGroup.forEachChildrenSkipChild((column) => {
|
|
34855
|
-
column.setAttribute('x', bodyX);
|
|
34856
|
-
bodyX += column.attribute.width;
|
|
34857
|
-
});
|
|
34858
|
-
let colX = 0;
|
|
34859
|
-
this.colHeaderGroup.forEachChildrenSkipChild((column) => {
|
|
34860
|
-
column.setAttribute('x', colX);
|
|
34861
|
-
colX += column.attribute.width;
|
|
34862
|
-
});
|
|
34863
|
-
this.updateBorderSizeAndPosition();
|
|
34864
|
-
if (!this.isPivot && !this.transpose) {
|
|
34865
|
-
this.component.setFrozenColumnShadow(this.table.frozenColCount - 1);
|
|
34866
|
-
}
|
|
34867
|
-
this.hasFrozen = true;
|
|
34868
|
-
this.frozenColCount = this.table.rowHeaderLevelCount;
|
|
34869
|
-
this.frozenRowCount = this.colHeaderGroup.firstChild?.childrenCount ?? 0;
|
|
34888
|
+
resetFrozen(this);
|
|
34870
34889
|
}
|
|
34871
34890
|
updateCellLayoutWidthCertainWidth(columnGroup, detaRow, col) {
|
|
34872
34891
|
const width = columnGroup.attribute.width;
|
|
@@ -34940,6 +34959,7 @@
|
|
|
34940
34959
|
this.bodyGroup.setDeltaWidth(bodyX - this.bodyGroup.attribute.width);
|
|
34941
34960
|
this.colHeaderGroup.setAttribute('x', this.cornerHeaderGroup.attribute.width);
|
|
34942
34961
|
this.bodyGroup.setAttribute('x', this.rowHeaderGroup.attribute.width);
|
|
34962
|
+
this.updateTableSize();
|
|
34943
34963
|
const oldHorizontalBarPos = this.table.stateManeger.scroll.horizontalBarPos;
|
|
34944
34964
|
const oldVerticalBarPos = this.table.stateManeger.scroll.verticalBarPos;
|
|
34945
34965
|
this.component.updateScrollBar();
|
|
@@ -34961,7 +34981,7 @@
|
|
|
34961
34981
|
createFrameBorder(this.rowHeaderGroup, this.isPivot ? this.table.theme.rowHeaderStyle.frameStyle : this.table.theme.bodyStyle.frameStyle, this.rowHeaderGroup.role, isListTableWithFrozen ? [true, false, true, true] : undefined);
|
|
34962
34982
|
createFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle, this.colHeaderGroup.role, isListTableWithFrozen ? [true, true, true, false] : undefined);
|
|
34963
34983
|
createFrameBorder(this.cornerHeaderGroup, this.isPivot ? this.table.theme.cornerHeaderStyle.frameStyle : this.table.theme.headerStyle.frameStyle, this.cornerHeaderGroup.role, isListTableWithFrozen ? [true, false, true, true] : undefined);
|
|
34964
|
-
createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role);
|
|
34984
|
+
createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role, undefined);
|
|
34965
34985
|
}
|
|
34966
34986
|
getResizeColAt(abstractX, abstractY, cellGroup, offset = ResizeColumnHotSpotSize / 2) {
|
|
34967
34987
|
if (!cellGroup) ;
|
|
@@ -39773,7 +39793,7 @@
|
|
|
39773
39793
|
return TABLE_EVENT_TYPE;
|
|
39774
39794
|
}
|
|
39775
39795
|
options;
|
|
39776
|
-
version = "0.9.1
|
|
39796
|
+
version = "0.9.1";
|
|
39777
39797
|
pagerConf;
|
|
39778
39798
|
id = `VTable${Date.now()}`;
|
|
39779
39799
|
headerStyleCache;
|
|
@@ -46635,7 +46655,7 @@
|
|
|
46635
46655
|
percentCalc: percentCalc
|
|
46636
46656
|
});
|
|
46637
46657
|
|
|
46638
|
-
const version = "0.9.1
|
|
46658
|
+
const version = "0.9.1";
|
|
46639
46659
|
function getIcons() {
|
|
46640
46660
|
return get();
|
|
46641
46661
|
}
|