@visactor/vtable 1.17.3-alpha.5 → 1.17.3-alpha.7
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/PivotTable.d.ts +0 -5
- package/cjs/PivotTable.js +0 -13
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +14 -15
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/dataset/dataset.js +4 -6
- package/cjs/dataset/dataset.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/layout/pivot-header-layout.js +3 -5
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +4 -4
- package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +2 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/layout/frozen.js +5 -5
- package/cjs/scenegraph/layout/frozen.js.map +1 -1
- package/cjs/scenegraph/select/create-select-border.js +2 -13
- package/cjs/scenegraph/select/create-select-border.js.map +1 -1
- package/cjs/state/state.js +47 -79
- package/cjs/state/state.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +1 -1
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/common.d.ts +1 -3
- package/cjs/ts-types/common.js.map +1 -1
- package/cjs/ts-types/events.d.ts +1 -3
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +0 -1
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +67 -195
- package/dist/vtable.min.js +1 -1
- package/es/PivotTable.d.ts +0 -5
- package/es/PivotTable.js +0 -13
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +14 -15
- package/es/core/BaseTable.js.map +1 -1
- package/es/dataset/dataset.js +4 -6
- package/es/dataset/dataset.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/layout/pivot-header-layout.js +3 -5
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js +4 -4
- package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +2 -1
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/layout/frozen.js +5 -5
- package/es/scenegraph/layout/frozen.js.map +1 -1
- package/es/scenegraph/select/create-select-border.js +2 -13
- package/es/scenegraph/select/create-select-border.js.map +1 -1
- package/es/state/state.js +47 -79
- package/es/state/state.js.map +1 -1
- package/es/ts-types/base-table.d.ts +1 -1
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/common.d.ts +1 -3
- package/es/ts-types/common.js.map +1 -1
- package/es/ts-types/events.d.ts +1 -3
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +0 -1
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +2 -2
package/dist/vtable.js
CHANGED
|
@@ -42702,14 +42702,12 @@
|
|
|
42702
42702
|
const isWidthNumber = !Array.isArray(strokeArrayWidth);
|
|
42703
42703
|
const isStrokeTrue = !Array.isArray(stroke);
|
|
42704
42704
|
const isSplitDraw = Array.isArray(strokeArrayColor) || widthInfo.isSplitDraw;
|
|
42705
|
-
context.stroke();
|
|
42706
42705
|
context.setStrokeStyle(rect, rect.attribute, x, y, rectAttribute);
|
|
42707
42706
|
const { lineDash = groupAttribute.lineDash } = group.attribute;
|
|
42708
42707
|
let isDash = false;
|
|
42709
42708
|
if (lineDash.length && lineDash.some((dash) => Array.isArray(dash))) {
|
|
42710
42709
|
isDash = true;
|
|
42711
42710
|
}
|
|
42712
|
-
context.beginPath();
|
|
42713
42711
|
context.moveTo(x, y);
|
|
42714
42712
|
const strokeTop = (isStrokeTrue || stroke[0]) && (isWidthNumber || strokeArrayWidth[0]);
|
|
42715
42713
|
const strokeRight = (isStrokeTrue || stroke[1]) && (isWidthNumber || strokeArrayWidth[1]);
|
|
@@ -42822,7 +42820,6 @@
|
|
|
42822
42820
|
else if (i === 3) {
|
|
42823
42821
|
context.moveTo(x, y);
|
|
42824
42822
|
}
|
|
42825
|
-
context.closePath();
|
|
42826
42823
|
if (!isSplitDraw && !isDash) {
|
|
42827
42824
|
if (!isWidthNumber && widthInfo.width) {
|
|
42828
42825
|
context.lineWidth = widthInfo.width;
|
|
@@ -42831,7 +42828,7 @@
|
|
|
42831
42828
|
}
|
|
42832
42829
|
context.lineDashOffset = 0;
|
|
42833
42830
|
context.setLineDash([]);
|
|
42834
|
-
context.
|
|
42831
|
+
context.closePath();
|
|
42835
42832
|
}
|
|
42836
42833
|
|
|
42837
42834
|
let loadingImage;
|
|
@@ -45070,6 +45067,9 @@
|
|
|
45070
45067
|
if (this.table.options.maintainedDataCount) {
|
|
45071
45068
|
this.rowLimit = this.table.options.maintainedDataCount;
|
|
45072
45069
|
}
|
|
45070
|
+
if (this.table.options.maintainedColumnCount) {
|
|
45071
|
+
this.colLimit = this.table.options.maintainedColumnCount;
|
|
45072
|
+
}
|
|
45073
45073
|
}
|
|
45074
45074
|
get bodyLeftCol() {
|
|
45075
45075
|
return this.table.frozenColCount;
|
|
@@ -46112,8 +46112,7 @@
|
|
|
46112
46112
|
y: firstCellBound.y1 - scene.tableGroup.attribute.y,
|
|
46113
46113
|
width: 0,
|
|
46114
46114
|
height: 0,
|
|
46115
|
-
visible: true
|
|
46116
|
-
cornerRadius: getCornerRadius(selectRangeType, scene.table.theme.frameStyle?.cornerRadius, start_Col, start_Row, end_Col, end_Row, scene.table)
|
|
46115
|
+
visible: true
|
|
46117
46116
|
});
|
|
46118
46117
|
let fillhandle;
|
|
46119
46118
|
if (isHasFillHandleRect) {
|
|
@@ -46170,40 +46169,6 @@
|
|
|
46170
46169
|
? scene.bottomFrozenGroup
|
|
46171
46170
|
: scene.rightBottomCornerGroup);
|
|
46172
46171
|
}
|
|
46173
|
-
function getCornerRadius(selectRangeType, cornerRadius, start_Col, start_Row, end_Col, end_Row, table) {
|
|
46174
|
-
if (!cornerRadius) {
|
|
46175
|
-
return undefined;
|
|
46176
|
-
}
|
|
46177
|
-
const cornerRadiusArray = Array.isArray(cornerRadius)
|
|
46178
|
-
? cornerRadius
|
|
46179
|
-
: [cornerRadius, cornerRadius, cornerRadius, cornerRadius];
|
|
46180
|
-
const tableStartCol = 0;
|
|
46181
|
-
const tableStartRow = 0;
|
|
46182
|
-
const tableEndCol = table.colCount - 1;
|
|
46183
|
-
const tableEndRow = table.rowCount - 1;
|
|
46184
|
-
const result = [0, 0, 0, 0];
|
|
46185
|
-
let changed = false;
|
|
46186
|
-
if (start_Col === tableStartCol && start_Row === tableStartRow) {
|
|
46187
|
-
result[0] = cornerRadiusArray[0];
|
|
46188
|
-
changed = true;
|
|
46189
|
-
}
|
|
46190
|
-
else if (end_Col === tableEndCol && end_Row === tableEndRow) {
|
|
46191
|
-
result[2] = cornerRadiusArray[2];
|
|
46192
|
-
changed = true;
|
|
46193
|
-
}
|
|
46194
|
-
else if (start_Col === tableStartCol && end_Row === tableEndRow) {
|
|
46195
|
-
result[3] = cornerRadiusArray[3];
|
|
46196
|
-
changed = true;
|
|
46197
|
-
}
|
|
46198
|
-
else if (end_Col === tableEndCol && start_Row === tableStartRow) {
|
|
46199
|
-
result[1] = cornerRadiusArray[1];
|
|
46200
|
-
changed = true;
|
|
46201
|
-
}
|
|
46202
|
-
if (changed) {
|
|
46203
|
-
return result;
|
|
46204
|
-
}
|
|
46205
|
-
return undefined;
|
|
46206
|
-
}
|
|
46207
46172
|
|
|
46208
46173
|
function moveSelectingRangeComponentsToSelectedRangeComponents(scene) {
|
|
46209
46174
|
scene.selectingRangeComponents.forEach((rangeComponent, key) => {
|
|
@@ -46914,10 +46879,7 @@
|
|
|
46914
46879
|
}
|
|
46915
46880
|
scene.hasFrozen = true;
|
|
46916
46881
|
scene.frozenColCount = scene.table.frozenColCount;
|
|
46917
|
-
scene.frozenRowCount =
|
|
46918
|
-
scene.colHeaderGroup.firstChild?.childrenCount ??
|
|
46919
|
-
scene.cornerHeaderGroup.firstChild?.childrenCount ??
|
|
46920
|
-
scene.table.frozenRowCount;
|
|
46882
|
+
scene.frozenRowCount = scene.colHeaderGroup.firstChild?.childrenCount ?? 0;
|
|
46921
46883
|
}
|
|
46922
46884
|
function resetFrozen(scene) {
|
|
46923
46885
|
if (scene.frozenColCount > scene.table.frozenColCount) {
|
|
@@ -46943,10 +46905,7 @@
|
|
|
46943
46905
|
updateReactComponentContainer(scene);
|
|
46944
46906
|
scene.recreateAllSelectRangeComponents();
|
|
46945
46907
|
scene.frozenColCount = scene.table.frozenColCount;
|
|
46946
|
-
scene.frozenRowCount =
|
|
46947
|
-
scene.colHeaderGroup.firstChild?.childrenCount ??
|
|
46948
|
-
scene.cornerHeaderGroup.firstChild?.childrenCount ??
|
|
46949
|
-
scene.table.frozenRowCount;
|
|
46908
|
+
scene.frozenRowCount = scene.colHeaderGroup.firstChild?.childrenCount ?? 0;
|
|
46950
46909
|
scene.proxy.colStart = scene.bodyGroup.firstChild?.col ?? scene.table.frozenColCount;
|
|
46951
46910
|
scene.bodyGroup.setAttribute('x', scene.rowHeaderGroup.attribute.width);
|
|
46952
46911
|
scene.colHeaderGroup.setAttribute('x', scene.cornerHeaderGroup.attribute.width);
|
|
@@ -52406,33 +52365,25 @@
|
|
|
52406
52365
|
updateVerticalScrollBar(yRatio) {
|
|
52407
52366
|
const totalHeight = this.table.getAllRowsHeight();
|
|
52408
52367
|
const oldVerticalBarPos = this.scroll.verticalBarPos;
|
|
52409
|
-
|
|
52410
|
-
if (!isValid$3(verticalBarPos) || isNaN(verticalBarPos)) {
|
|
52411
|
-
verticalBarPos = 0;
|
|
52368
|
+
this.scroll.verticalBarPos = Math.ceil(yRatio * (totalHeight - this.table.scenegraph.height));
|
|
52369
|
+
if (!isValid$3(this.scroll.verticalBarPos) || isNaN(this.scroll.verticalBarPos)) {
|
|
52370
|
+
this.scroll.verticalBarPos = 0;
|
|
52412
52371
|
}
|
|
52413
|
-
|
|
52414
|
-
|
|
52372
|
+
this.table.scenegraph.setY(-this.scroll.verticalBarPos, yRatio === 1);
|
|
52373
|
+
this.scroll.verticalBarPos -= this.table.scenegraph.proxy.deltaY;
|
|
52374
|
+
this.table.scenegraph.proxy.deltaY = 0;
|
|
52375
|
+
this.updateHoverPos(-1, -1);
|
|
52376
|
+
this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
52415
52377
|
event: undefined,
|
|
52416
|
-
scrollTop:
|
|
52378
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
52417
52379
|
scrollLeft: this.scroll.horizontalBarPos,
|
|
52418
52380
|
scrollHeight: this.table.theme.scrollStyle?.width,
|
|
52419
52381
|
scrollWidth: this.table.theme.scrollStyle?.width,
|
|
52420
52382
|
viewHeight: this.table.tableNoFrameHeight,
|
|
52421
52383
|
viewWidth: this.table.tableNoFrameWidth,
|
|
52422
52384
|
scrollDirection: 'vertical',
|
|
52423
|
-
scrollRatioY: yRatio
|
|
52424
|
-
dy
|
|
52385
|
+
scrollRatioY: yRatio
|
|
52425
52386
|
});
|
|
52426
|
-
if (canScroll.some(value => value === false)) {
|
|
52427
|
-
const yRatio = this.scroll.verticalBarPos / (totalHeight - this.table.scenegraph.height);
|
|
52428
|
-
this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio);
|
|
52429
|
-
return;
|
|
52430
|
-
}
|
|
52431
|
-
this.scroll.verticalBarPos = verticalBarPos;
|
|
52432
|
-
this.table.scenegraph.setY(-this.scroll.verticalBarPos, yRatio === 1);
|
|
52433
|
-
this.scroll.verticalBarPos -= this.table.scenegraph.proxy.deltaY;
|
|
52434
|
-
this.table.scenegraph.proxy.deltaY = 0;
|
|
52435
|
-
this.updateHoverPos(-1, -1);
|
|
52436
52387
|
if (oldVerticalBarPos !== this.scroll.verticalBarPos) {
|
|
52437
52388
|
this.checkVerticalScrollBarEnd();
|
|
52438
52389
|
}
|
|
@@ -52440,33 +52391,25 @@
|
|
|
52440
52391
|
updateHorizontalScrollBar(xRatio) {
|
|
52441
52392
|
const totalWidth = this.table.getAllColsWidth();
|
|
52442
52393
|
const oldHorizontalBarPos = this.scroll.horizontalBarPos;
|
|
52443
|
-
|
|
52444
|
-
if (!isValid$3(horizontalBarPos) || isNaN(horizontalBarPos)) {
|
|
52445
|
-
horizontalBarPos = 0;
|
|
52394
|
+
this.scroll.horizontalBarPos = Math.ceil(xRatio * (totalWidth - this.table.scenegraph.width));
|
|
52395
|
+
if (!isValid$3(this.scroll.horizontalBarPos) || isNaN(this.scroll.horizontalBarPos)) {
|
|
52396
|
+
this.scroll.horizontalBarPos = 0;
|
|
52446
52397
|
}
|
|
52447
|
-
|
|
52448
|
-
|
|
52398
|
+
this.table.scenegraph.setX(-this.scroll.horizontalBarPos, xRatio === 1);
|
|
52399
|
+
this.scroll.horizontalBarPos -= this.table.scenegraph.proxy.deltaX;
|
|
52400
|
+
this.table.scenegraph.proxy.deltaX = 0;
|
|
52401
|
+
this.updateHoverPos(-1, -1);
|
|
52402
|
+
this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
52449
52403
|
event: undefined,
|
|
52450
52404
|
scrollTop: this.scroll.verticalBarPos,
|
|
52451
|
-
scrollLeft:
|
|
52405
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
52452
52406
|
scrollHeight: this.table.theme.scrollStyle?.width,
|
|
52453
52407
|
scrollWidth: this.table.theme.scrollStyle?.width,
|
|
52454
52408
|
viewHeight: this.table.tableNoFrameHeight,
|
|
52455
52409
|
viewWidth: this.table.tableNoFrameWidth,
|
|
52456
52410
|
scrollDirection: 'horizontal',
|
|
52457
|
-
scrollRatioX: xRatio
|
|
52458
|
-
dx: dx
|
|
52411
|
+
scrollRatioX: xRatio
|
|
52459
52412
|
});
|
|
52460
|
-
if (canScroll.some(value => value === false)) {
|
|
52461
|
-
const xRatio = this.scroll.horizontalBarPos / (totalWidth - this.table.scenegraph.width);
|
|
52462
|
-
this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio);
|
|
52463
|
-
return;
|
|
52464
|
-
}
|
|
52465
|
-
this.scroll.horizontalBarPos = horizontalBarPos;
|
|
52466
|
-
this.table.scenegraph.setX(-this.scroll.horizontalBarPos, xRatio === 1);
|
|
52467
|
-
this.scroll.horizontalBarPos -= this.table.scenegraph.proxy.deltaX;
|
|
52468
|
-
this.table.scenegraph.proxy.deltaX = 0;
|
|
52469
|
-
this.updateHoverPos(-1, -1);
|
|
52470
52413
|
if (oldHorizontalBarPos !== this.scroll.horizontalBarPos) {
|
|
52471
52414
|
this.checkHorizontalScrollBarEnd();
|
|
52472
52415
|
}
|
|
@@ -52476,43 +52419,29 @@
|
|
|
52476
52419
|
const sizeTolerance = this.table.options.customConfig?._disableColumnAndRowSizeRound ? 1 : 0;
|
|
52477
52420
|
top = Math.max(0, Math.min(top, totalHeight - this.table.scenegraph.height - sizeTolerance));
|
|
52478
52421
|
top = Math.ceil(top);
|
|
52479
|
-
const oldVerticalBarPos = this.scroll.verticalBarPos;
|
|
52480
|
-
const yRatio = top / (totalHeight - this.table.scenegraph.height);
|
|
52481
|
-
if ((oldVerticalBarPos !== top || this.table.options?.customConfig?.scrollEventAlwaysTrigger === true) &&
|
|
52482
|
-
triggerEvent) {
|
|
52483
|
-
let verticalBarPos = top;
|
|
52484
|
-
if (!isValid$3(verticalBarPos) || isNaN(verticalBarPos)) {
|
|
52485
|
-
verticalBarPos = 0;
|
|
52486
|
-
}
|
|
52487
|
-
const dy = verticalBarPos - oldVerticalBarPos;
|
|
52488
|
-
const canScroll = this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
52489
|
-
event: event?.nativeEvent,
|
|
52490
|
-
scrollTop: verticalBarPos,
|
|
52491
|
-
scrollLeft: this.scroll.horizontalBarPos,
|
|
52492
|
-
scrollHeight: this.table.theme.scrollStyle?.width,
|
|
52493
|
-
scrollWidth: this.table.theme.scrollStyle?.width,
|
|
52494
|
-
viewHeight: this.table.tableNoFrameHeight,
|
|
52495
|
-
viewWidth: this.table.tableNoFrameWidth,
|
|
52496
|
-
scrollDirection: 'vertical',
|
|
52497
|
-
scrollRatioY: yRatio,
|
|
52498
|
-
dy
|
|
52499
|
-
});
|
|
52500
|
-
if (canScroll.some(value => value === false)) {
|
|
52501
|
-
const yRatio = this.scroll.verticalBarPos / (totalHeight - this.table.scenegraph.height);
|
|
52502
|
-
this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio);
|
|
52503
|
-
return;
|
|
52504
|
-
}
|
|
52505
|
-
}
|
|
52506
52422
|
if (top !== this.scroll.verticalBarPos || this.table.isPivotChart()) {
|
|
52507
52423
|
this.updateHoverPos(-1, -1);
|
|
52508
52424
|
}
|
|
52425
|
+
const oldVerticalBarPos = this.scroll.verticalBarPos;
|
|
52509
52426
|
this.scroll.verticalBarPos = top;
|
|
52510
52427
|
if (!isValid$3(this.scroll.verticalBarPos) || isNaN(this.scroll.verticalBarPos)) {
|
|
52511
52428
|
this.scroll.verticalBarPos = 0;
|
|
52512
52429
|
}
|
|
52513
52430
|
this.table.scenegraph.setY(-top);
|
|
52431
|
+
const yRatio = top / (totalHeight - this.table.scenegraph.height);
|
|
52514
52432
|
this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio);
|
|
52515
52433
|
if (oldVerticalBarPos !== top && triggerEvent) {
|
|
52434
|
+
this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
52435
|
+
event: event?.nativeEvent,
|
|
52436
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
52437
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
52438
|
+
scrollHeight: this.table.theme.scrollStyle?.width,
|
|
52439
|
+
scrollWidth: this.table.theme.scrollStyle?.width,
|
|
52440
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
52441
|
+
viewWidth: this.table.tableNoFrameWidth,
|
|
52442
|
+
scrollDirection: 'vertical',
|
|
52443
|
+
scrollRatioY: yRatio
|
|
52444
|
+
});
|
|
52516
52445
|
this.checkVerticalScrollBarEnd();
|
|
52517
52446
|
}
|
|
52518
52447
|
}
|
|
@@ -52523,43 +52452,29 @@
|
|
|
52523
52452
|
const sizeTolerance = this.table.options.customConfig?._disableColumnAndRowSizeRound ? 1 : 0;
|
|
52524
52453
|
left = Math.max(0, Math.min(left, totalWidth - this.table.scenegraph.width - sizeTolerance));
|
|
52525
52454
|
left = Math.ceil(left);
|
|
52526
|
-
const oldHorizontalBarPos = this.scroll.horizontalBarPos;
|
|
52527
|
-
const xRatio = left / (totalWidth - this.table.scenegraph.width);
|
|
52528
|
-
if ((oldHorizontalBarPos !== left || this.table.options?.customConfig?.scrollEventAlwaysTrigger === true) &&
|
|
52529
|
-
triggerEvent) {
|
|
52530
|
-
let horizontalBarPos = left;
|
|
52531
|
-
if (!isValid$3(horizontalBarPos) || isNaN(horizontalBarPos)) {
|
|
52532
|
-
horizontalBarPos = 0;
|
|
52533
|
-
}
|
|
52534
|
-
const dx = horizontalBarPos - oldHorizontalBarPos;
|
|
52535
|
-
const canScroll = this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
52536
|
-
event: event?.nativeEvent,
|
|
52537
|
-
scrollTop: this.scroll.verticalBarPos,
|
|
52538
|
-
scrollLeft: horizontalBarPos,
|
|
52539
|
-
scrollHeight: this.table.theme.scrollStyle?.width,
|
|
52540
|
-
scrollWidth: this.table.theme.scrollStyle?.width,
|
|
52541
|
-
viewHeight: this.table.tableNoFrameHeight,
|
|
52542
|
-
viewWidth: this.table.tableNoFrameWidth,
|
|
52543
|
-
scrollDirection: 'horizontal',
|
|
52544
|
-
scrollRatioX: xRatio,
|
|
52545
|
-
dx
|
|
52546
|
-
});
|
|
52547
|
-
if (canScroll.some(value => value === false)) {
|
|
52548
|
-
const xRatio = this.scroll.horizontalBarPos / (totalWidth - this.table.scenegraph.width);
|
|
52549
|
-
this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio);
|
|
52550
|
-
return;
|
|
52551
|
-
}
|
|
52552
|
-
}
|
|
52553
52455
|
if (left !== this.scroll.horizontalBarPos) {
|
|
52554
52456
|
this.updateHoverPos(-1, -1);
|
|
52555
52457
|
}
|
|
52458
|
+
const oldHorizontalBarPos = this.scroll.horizontalBarPos;
|
|
52556
52459
|
this.scroll.horizontalBarPos = left;
|
|
52557
52460
|
if (!isValid$3(this.scroll.horizontalBarPos) || isNaN(this.scroll.horizontalBarPos)) {
|
|
52558
52461
|
this.scroll.horizontalBarPos = 0;
|
|
52559
52462
|
}
|
|
52560
52463
|
this.table.scenegraph.setX(-left);
|
|
52464
|
+
const xRatio = left / (totalWidth - this.table.scenegraph.width);
|
|
52561
52465
|
this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio);
|
|
52562
52466
|
if (oldHorizontalBarPos !== left && triggerEvent) {
|
|
52467
|
+
this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
|
|
52468
|
+
event: event?.nativeEvent,
|
|
52469
|
+
scrollTop: this.scroll.verticalBarPos,
|
|
52470
|
+
scrollLeft: this.scroll.horizontalBarPos,
|
|
52471
|
+
scrollHeight: this.table.theme.scrollStyle?.width,
|
|
52472
|
+
scrollWidth: this.table.theme.scrollStyle?.width,
|
|
52473
|
+
viewHeight: this.table.tableNoFrameHeight,
|
|
52474
|
+
viewWidth: this.table.tableNoFrameWidth,
|
|
52475
|
+
scrollDirection: 'horizontal',
|
|
52476
|
+
scrollRatioX: xRatio
|
|
52477
|
+
});
|
|
52563
52478
|
this.checkHorizontalScrollBarEnd();
|
|
52564
52479
|
}
|
|
52565
52480
|
}
|
|
@@ -60287,7 +60202,7 @@
|
|
|
60287
60202
|
return TABLE_EVENT_TYPE;
|
|
60288
60203
|
}
|
|
60289
60204
|
options;
|
|
60290
|
-
version = "1.17.3-alpha.
|
|
60205
|
+
version = "1.17.3-alpha.7";
|
|
60291
60206
|
pagination;
|
|
60292
60207
|
id = `VTable${Date.now()}`;
|
|
60293
60208
|
headerStyleCache;
|
|
@@ -60899,7 +60814,10 @@
|
|
|
60899
60814
|
const { canvas } = this.internalProps;
|
|
60900
60815
|
widthP = (canvas.parentElement?.offsetWidth ?? 1) - (this.options.tableSizeAntiJitter ? 1 : 0);
|
|
60901
60816
|
heightP = (canvas.parentElement?.offsetHeight ?? 1) - (this.options.tableSizeAntiJitter ? 1 : 0);
|
|
60902
|
-
if (
|
|
60817
|
+
if (this?.scenegraph?.stage) {
|
|
60818
|
+
this.scenegraph.stage.resize(widthP, heightP);
|
|
60819
|
+
}
|
|
60820
|
+
else {
|
|
60903
60821
|
canvas.style.width = '';
|
|
60904
60822
|
canvas.style.height = '';
|
|
60905
60823
|
canvas.width = widthP;
|
|
@@ -60907,21 +60825,6 @@
|
|
|
60907
60825
|
canvas.style.width = `${widthP}px`;
|
|
60908
60826
|
canvas.style.height = `${heightP}px`;
|
|
60909
60827
|
}
|
|
60910
|
-
else if (this.options?.viewBox && !this.options?.canvas) {
|
|
60911
|
-
this.scenegraph.stage.resize(widthP, heightP, false);
|
|
60912
|
-
}
|
|
60913
|
-
if (this.options?.viewBox) {
|
|
60914
|
-
widthP = this.options.viewBox.x2 - this.options.viewBox.x1;
|
|
60915
|
-
heightP = this.options.viewBox.y2 - this.options.viewBox.y1;
|
|
60916
|
-
}
|
|
60917
|
-
if (this?.scenegraph?.stage) {
|
|
60918
|
-
if (this.options.viewBox) {
|
|
60919
|
-
this.scenegraph.stage.setViewBox(this.options.viewBox, false);
|
|
60920
|
-
}
|
|
60921
|
-
else {
|
|
60922
|
-
this.scenegraph.stage.resize(widthP, heightP);
|
|
60923
|
-
}
|
|
60924
|
-
}
|
|
60925
60828
|
}
|
|
60926
60829
|
else if (Env.mode === 'node') {
|
|
60927
60830
|
widthP = this.canvasWidth - 1;
|
|
@@ -60949,8 +60852,8 @@
|
|
|
60949
60852
|
}
|
|
60950
60853
|
}
|
|
60951
60854
|
updateViewBox(newViewBox) {
|
|
60952
|
-
const oldWidth =
|
|
60953
|
-
const oldHeight =
|
|
60855
|
+
const oldWidth = this.options?.viewBox.x2 ?? 0 - this.options?.viewBox.x1 ?? 0;
|
|
60856
|
+
const oldHeight = this.options?.viewBox.y2 ?? 0 - this.options?.viewBox.y1 ?? 0;
|
|
60954
60857
|
const newWidth = newViewBox.x2 - newViewBox.x1;
|
|
60955
60858
|
const newHeight = newViewBox.y2 - newViewBox.y1;
|
|
60956
60859
|
this.options.viewBox = newViewBox;
|
|
@@ -75298,7 +75201,7 @@
|
|
|
75298
75201
|
let tree;
|
|
75299
75202
|
if (typeof extensionRow.rowTree === 'function') {
|
|
75300
75203
|
const fullCellIds = this.findFullCellIds(row_ids);
|
|
75301
|
-
tree = extensionRow.rowTree(fullCellIds.map(
|
|
75204
|
+
tree = extensionRow.rowTree(fullCellIds.map(id => {
|
|
75302
75205
|
return { dimensionKey: this._headerObjects[id].field, value: this._headerObjects[id].title };
|
|
75303
75206
|
}));
|
|
75304
75207
|
}
|
|
@@ -76189,7 +76092,6 @@
|
|
|
76189
76092
|
colHeaderPath.indicatorKey = colHeader.indicatorKey;
|
|
76190
76093
|
colHeaderPath.value = colHeader.value ?? this.getIndicatorInfoByIndicatorKey(colHeader.indicatorKey)?.title ?? '';
|
|
76191
76094
|
colHeaderPath.virtual = colHeader.virtual;
|
|
76192
|
-
colHeaderPath.role = colHeader.role;
|
|
76193
76095
|
headerPaths.colHeaderPaths.push(colHeaderPath);
|
|
76194
76096
|
});
|
|
76195
76097
|
headerPathsWidthNode.rowHeaderPaths?.forEach((rowHeader) => {
|
|
@@ -76200,7 +76102,6 @@
|
|
|
76200
76102
|
rowHeaderPath.value =
|
|
76201
76103
|
rowHeader.value ?? this.getIndicatorInfoByIndicatorKey(rowHeader.indicatorKey)?.title ?? '';
|
|
76202
76104
|
rowHeaderPath.virtual = rowHeader.virtual;
|
|
76203
|
-
rowHeaderPath.role = rowHeader.role;
|
|
76204
76105
|
headerPaths.rowHeaderPaths.push(rowHeaderPath);
|
|
76205
76106
|
}
|
|
76206
76107
|
});
|
|
@@ -77082,7 +76983,7 @@
|
|
|
77082
76983
|
if (isCol) {
|
|
77083
76984
|
continue;
|
|
77084
76985
|
}
|
|
77085
|
-
for (let k = 0; k <
|
|
76986
|
+
for (let k = 0; k < rowArr?.length ?? 0; k++) {
|
|
77086
76987
|
const dimension = rowArr[k];
|
|
77087
76988
|
if ((isValid$3(highlightDimension.dimensionKey) &&
|
|
77088
76989
|
dimension.dimensionKey === highlightDimension.dimensionKey &&
|
|
@@ -79266,8 +79167,7 @@
|
|
|
79266
79167
|
value: indicator.title
|
|
79267
79168
|
};
|
|
79268
79169
|
})
|
|
79269
|
-
: []
|
|
79270
|
-
role: 'sub-total'
|
|
79170
|
+
: []
|
|
79271
79171
|
};
|
|
79272
79172
|
curChild.push(totalChild);
|
|
79273
79173
|
curChild = totalChild.children ?? [];
|
|
@@ -79315,8 +79215,7 @@
|
|
|
79315
79215
|
indicatorKey: indicator.indicatorKey,
|
|
79316
79216
|
value: indicator.title
|
|
79317
79217
|
};
|
|
79318
|
-
}) ?? []
|
|
79319
|
-
role: 'grand-total'
|
|
79218
|
+
}) ?? []
|
|
79320
79219
|
};
|
|
79321
79220
|
if (showGrandTotalsOnTop) {
|
|
79322
79221
|
result.unshift(node);
|
|
@@ -79456,7 +79355,7 @@
|
|
|
79456
79355
|
}
|
|
79457
79356
|
getFieldMatchColDimensionPaths(record) {
|
|
79458
79357
|
const fieldMatchDimensionPaths = [];
|
|
79459
|
-
for (let i = 0; i <
|
|
79358
|
+
for (let i = 0; i < this.customColTreeDimensionPaths?.length ?? 0; i++) {
|
|
79460
79359
|
const dimensionPath = this.customColTreeDimensionPaths[i];
|
|
79461
79360
|
let isMatch = true;
|
|
79462
79361
|
for (let j = 0; j < dimensionPath.length; j++) {
|
|
@@ -79475,7 +79374,7 @@
|
|
|
79475
79374
|
}
|
|
79476
79375
|
getFieldMatchRowDimensionPaths(record) {
|
|
79477
79376
|
const fieldMatchDimensionPaths = [];
|
|
79478
|
-
for (let i = 0; i <
|
|
79377
|
+
for (let i = 0; i < this.customRowTreeDimensionPaths?.length ?? 0; i++) {
|
|
79479
79378
|
const dimensionPath = this.customRowTreeDimensionPaths[i];
|
|
79480
79379
|
let isMatch = true;
|
|
79481
79380
|
for (let j = 0; j < dimensionPath.length; j++) {
|
|
@@ -81104,33 +81003,6 @@
|
|
|
81104
81003
|
getFilteredRecords() {
|
|
81105
81004
|
return this.dataset?.filterRules;
|
|
81106
81005
|
}
|
|
81107
|
-
getCellPivotRole(col, row) {
|
|
81108
|
-
const path = this.getCellHeaderPaths(col, row);
|
|
81109
|
-
const { cellLocation, colHeaderPaths, rowHeaderPaths } = path;
|
|
81110
|
-
let colRole = colHeaderPaths.length ? 'normal' : undefined;
|
|
81111
|
-
let rowRole = rowHeaderPaths.length ? 'normal' : undefined;
|
|
81112
|
-
colHeaderPaths.forEach((path) => {
|
|
81113
|
-
if (path.role === 'sub-total') {
|
|
81114
|
-
colRole = 'sub-total';
|
|
81115
|
-
}
|
|
81116
|
-
else if (path.role === 'grand-total') {
|
|
81117
|
-
colRole = 'grand-total';
|
|
81118
|
-
}
|
|
81119
|
-
});
|
|
81120
|
-
rowHeaderPaths.forEach((path) => {
|
|
81121
|
-
if (path.role === 'sub-total') {
|
|
81122
|
-
rowRole = 'sub-total';
|
|
81123
|
-
}
|
|
81124
|
-
else if (path.role === 'grand-total') {
|
|
81125
|
-
rowRole = 'grand-total';
|
|
81126
|
-
}
|
|
81127
|
-
});
|
|
81128
|
-
return {
|
|
81129
|
-
colRole,
|
|
81130
|
-
rowRole,
|
|
81131
|
-
cellLocation
|
|
81132
|
-
};
|
|
81133
|
-
}
|
|
81134
81006
|
setLoadingHierarchyState(col, row) {
|
|
81135
81007
|
this.scenegraph.setLoadingHierarchyState(col, row);
|
|
81136
81008
|
}
|
|
@@ -82877,7 +82749,7 @@
|
|
|
82877
82749
|
}
|
|
82878
82750
|
|
|
82879
82751
|
registerForVrender();
|
|
82880
|
-
const version = "1.17.3-alpha.
|
|
82752
|
+
const version = "1.17.3-alpha.7";
|
|
82881
82753
|
function getIcons() {
|
|
82882
82754
|
return get$2();
|
|
82883
82755
|
}
|