@visactor/vtable 1.22.7-alpha.3 → 1.22.7-alpha.4
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 +2 -3
- package/cjs/ListTable.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +2 -2
- package/cjs/core/BaseTable.js +7 -9
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +0 -2
- package/cjs/core/TABLE_EVENT_TYPE.js +1 -3
- 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/plugins/plugin-manager.d.ts +0 -2
- package/cjs/plugins/plugin-manager.js +6 -13
- package/cjs/plugins/plugin-manager.js.map +1 -1
- package/cjs/scenegraph/graphic/active-cell-chart-list.js +63 -45
- package/cjs/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
- package/cjs/scenegraph/graphic/chart.js +10 -3
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +2 -2
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/events.d.ts +0 -8
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +2 -2
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +158 -127
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +2 -3
- package/es/ListTable.js.map +1 -1
- package/es/core/BaseTable.d.ts +2 -2
- package/es/core/BaseTable.js +7 -9
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +0 -2
- package/es/core/TABLE_EVENT_TYPE.js +1 -3
- 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/plugins/plugin-manager.d.ts +0 -2
- package/es/plugins/plugin-manager.js +6 -13
- package/es/plugins/plugin-manager.js.map +1 -1
- package/es/scenegraph/graphic/active-cell-chart-list.js +63 -45
- package/es/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
- package/es/scenegraph/graphic/chart.js +10 -3
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/ts-types/base-table.d.ts +2 -2
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/events.d.ts +0 -8
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +2 -2
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +7 -7
package/dist/vtable.js
CHANGED
|
@@ -9498,7 +9498,7 @@
|
|
|
9498
9498
|
}
|
|
9499
9499
|
}]), noAnimateAttrs && this.setAttributesAndPreventAnimate(noAnimateAttrs, !1, {
|
|
9500
9500
|
type: AttributeUpdateType.STATE
|
|
9501
|
-
});
|
|
9501
|
+
}), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
|
|
9502
9502
|
} else this.stopStateAnimates(), this.setAttributesAndPreventAnimate(attrs, !1, {
|
|
9503
9503
|
type: AttributeUpdateType.STATE
|
|
9504
9504
|
}), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
|
|
@@ -9524,7 +9524,7 @@
|
|
|
9524
9524
|
getNormalAttribute(key) {
|
|
9525
9525
|
var _a, _b;
|
|
9526
9526
|
const value = this.attribute[key];
|
|
9527
|
-
return this.animates ? null === (_a = this.finalAttribute) || void 0 === _a ? void 0 : _a[key] : null != value ? value : null === (_b = this.finalAttribute) || void 0 === _b ? void 0 : _b[key];
|
|
9527
|
+
return this.animates && this.animates.size ? null === (_a = this.finalAttribute) || void 0 === _a ? void 0 : _a[key] : null != value ? value : null === (_b = this.finalAttribute) || void 0 === _b ? void 0 : _b[key];
|
|
9528
9528
|
}
|
|
9529
9529
|
clearStates(hasAnimation) {
|
|
9530
9530
|
this.hasState() && this.normalAttrs ? (this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
|
|
@@ -36463,9 +36463,7 @@
|
|
|
36463
36463
|
DELETE_RECORD: 'delete_record',
|
|
36464
36464
|
UPDATE_RECORD: 'update_record',
|
|
36465
36465
|
ADD_COLUMN: 'add_column',
|
|
36466
|
-
DELETE_COLUMN: 'delete_column'
|
|
36467
|
-
FILTER_MENU_SHOW: 'filter_menu_show',
|
|
36468
|
-
FILTER_MENU_HIDE: 'filter_menu_hide'
|
|
36466
|
+
DELETE_COLUMN: 'delete_column'
|
|
36469
36467
|
};
|
|
36470
36468
|
|
|
36471
36469
|
const judgeType = (value) => {
|
|
@@ -49028,57 +49026,76 @@
|
|
|
49028
49026
|
chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance;
|
|
49029
49027
|
}
|
|
49030
49028
|
}
|
|
49031
|
-
|
|
49032
|
-
|
|
49033
|
-
|
|
49034
|
-
|
|
49035
|
-
|
|
49036
|
-
|
|
49037
|
-
if (
|
|
49038
|
-
|
|
49039
|
-
|
|
49040
|
-
|
|
49041
|
-
|
|
49042
|
-
|
|
49029
|
+
setTimeout(() => {
|
|
49030
|
+
if (chartInstanceListColumnByColumnDirection[col]?.[i]) {
|
|
49031
|
+
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
49032
|
+
let isShowTooltip = !isScatter;
|
|
49033
|
+
if (!isScatter && typeof chartDimensionLinkage === 'object') {
|
|
49034
|
+
isShowTooltip = chartDimensionLinkage.showTooltip ?? true;
|
|
49035
|
+
if (i === rowEnd && isShowTooltip) {
|
|
49036
|
+
const heightLimitToShowTooltipForEdgeRow = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow ?? 0;
|
|
49037
|
+
const { rowEnd: rowEnd1 } = table.getBodyVisibleRowRange(0, -heightLimitToShowTooltipForEdgeRow);
|
|
49038
|
+
if (rowEnd1 === rowEnd) {
|
|
49039
|
+
isShowTooltip = true;
|
|
49040
|
+
}
|
|
49041
|
+
else {
|
|
49042
|
+
const { rowEnd: rowEnd2 } = table.getBodyVisibleRowRange(0, 5);
|
|
49043
|
+
if (rowEnd2 !== rowEnd) {
|
|
49043
49044
|
isShowTooltip = true;
|
|
49044
49045
|
}
|
|
49045
49046
|
else {
|
|
49046
|
-
|
|
49047
|
-
if (rowEnd2 !== rowEnd) {
|
|
49048
|
-
isShowTooltip = true;
|
|
49049
|
-
}
|
|
49050
|
-
else {
|
|
49051
|
-
isShowTooltip = false;
|
|
49052
|
-
}
|
|
49047
|
+
isShowTooltip = false;
|
|
49053
49048
|
}
|
|
49054
49049
|
}
|
|
49055
49050
|
}
|
|
49056
|
-
if (
|
|
49057
|
-
|
|
49058
|
-
|
|
49059
|
-
|
|
49051
|
+
else if (i === rowStart && isShowTooltip) {
|
|
49052
|
+
const heightLimitToShowTooltipForEdgeRow = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow ?? 0;
|
|
49053
|
+
const { rowStart: rowStart1 } = table.getBodyVisibleRowRange(heightLimitToShowTooltipForEdgeRow, 0);
|
|
49054
|
+
if (rowStart1 === rowStart) {
|
|
49055
|
+
isShowTooltip = true;
|
|
49056
|
+
}
|
|
49057
|
+
else {
|
|
49058
|
+
const { rowStart: rowStart2 } = table.getBodyVisibleRowRange(0, -5);
|
|
49059
|
+
if (rowStart2 !== rowStart) {
|
|
49060
|
+
isShowTooltip = true;
|
|
49060
49061
|
}
|
|
49061
|
-
|
|
49062
|
-
|
|
49062
|
+
else {
|
|
49063
|
+
isShowTooltip = false;
|
|
49064
|
+
}
|
|
49065
|
+
}
|
|
49063
49066
|
}
|
|
49064
|
-
|
|
49065
|
-
|
|
49066
|
-
|
|
49067
|
-
|
|
49068
|
-
|
|
49069
|
-
showTooltipOption: { x: canvasXY.x, y: absolutePosition.top + 3, activeType: 'dimension' }
|
|
49070
|
-
});
|
|
49067
|
+
}
|
|
49068
|
+
if (isScatter) {
|
|
49069
|
+
chartInstanceListColumnByColumnDirection[col][i].showCrosshair?.((axis) => {
|
|
49070
|
+
if (axis.layoutOrient === 'left') {
|
|
49071
|
+
return positionValueOrYValue;
|
|
49071
49072
|
}
|
|
49072
|
-
|
|
49073
|
-
|
|
49074
|
-
|
|
49075
|
-
|
|
49076
|
-
|
|
49073
|
+
return dimensionValueOrXValue;
|
|
49074
|
+
});
|
|
49075
|
+
}
|
|
49076
|
+
else {
|
|
49077
|
+
const bodyBoundryTop = table.frozenRowCount
|
|
49078
|
+
? table.getCellRelativeRect(col, table.frozenRowCount - 1).bottom
|
|
49079
|
+
: 0;
|
|
49080
|
+
const absolutePositionTop = Math.max(bodyBoundryTop, table.getCellRelativeRect(col, i).top);
|
|
49081
|
+
if (hideTooltip) {
|
|
49082
|
+
if (table.stateManager.hover.cellPos.col !== col || table.stateManager.hover.cellPos.row !== i) {
|
|
49083
|
+
chartInstanceListColumnByColumnDirection[col][i].hideTooltip();
|
|
49077
49084
|
}
|
|
49085
|
+
chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49086
|
+
tooltip: false,
|
|
49087
|
+
showTooltipOption: { x: canvasXY.x, y: absolutePositionTop, activeType: 'dimension' }
|
|
49088
|
+
});
|
|
49089
|
+
}
|
|
49090
|
+
else {
|
|
49091
|
+
chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49092
|
+
tooltip: isShowTooltip,
|
|
49093
|
+
showTooltipOption: { x: canvasXY.x, y: absolutePositionTop, activeType: 'dimension' }
|
|
49094
|
+
});
|
|
49078
49095
|
}
|
|
49079
49096
|
}
|
|
49080
|
-
}
|
|
49081
|
-
}
|
|
49097
|
+
}
|
|
49098
|
+
}, 0);
|
|
49082
49099
|
table.scenegraph.updateNextFrame();
|
|
49083
49100
|
}
|
|
49084
49101
|
}
|
|
@@ -49124,57 +49141,76 @@
|
|
|
49124
49141
|
chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance;
|
|
49125
49142
|
}
|
|
49126
49143
|
}
|
|
49127
|
-
|
|
49128
|
-
|
|
49129
|
-
|
|
49130
|
-
|
|
49131
|
-
|
|
49132
|
-
|
|
49133
|
-
if (
|
|
49134
|
-
|
|
49135
|
-
|
|
49136
|
-
|
|
49137
|
-
|
|
49138
|
-
|
|
49144
|
+
setTimeout(() => {
|
|
49145
|
+
if (chartInstanceListRowByRowDirection[row]?.[i]) {
|
|
49146
|
+
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
49147
|
+
let isShowTooltip = !isScatter;
|
|
49148
|
+
if (!isScatter && typeof chartDimensionLinkage === 'object') {
|
|
49149
|
+
isShowTooltip = chartDimensionLinkage.showTooltip ?? true;
|
|
49150
|
+
if (i === colEnd && isShowTooltip) {
|
|
49151
|
+
const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn;
|
|
49152
|
+
const { colEnd: colEnd1 } = table.getBodyVisibleColRange(0, -widthLimitToShowTooltipForEdgeColumn);
|
|
49153
|
+
if (colEnd1 === colEnd) {
|
|
49154
|
+
isShowTooltip = true;
|
|
49155
|
+
}
|
|
49156
|
+
else {
|
|
49157
|
+
const { colEnd: colEnd2 } = table.getBodyVisibleColRange(0, 5);
|
|
49158
|
+
if (colEnd2 !== colEnd) {
|
|
49139
49159
|
isShowTooltip = true;
|
|
49140
49160
|
}
|
|
49141
49161
|
else {
|
|
49142
|
-
|
|
49143
|
-
if (colEnd2 !== colEnd) {
|
|
49144
|
-
isShowTooltip = true;
|
|
49145
|
-
}
|
|
49146
|
-
else {
|
|
49147
|
-
isShowTooltip = false;
|
|
49148
|
-
}
|
|
49162
|
+
isShowTooltip = false;
|
|
49149
49163
|
}
|
|
49150
49164
|
}
|
|
49151
49165
|
}
|
|
49152
|
-
if (
|
|
49153
|
-
|
|
49154
|
-
|
|
49155
|
-
|
|
49166
|
+
else if (i === colStart && isShowTooltip) {
|
|
49167
|
+
const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn;
|
|
49168
|
+
const { colStart: colStart1 } = table.getBodyVisibleColRange(widthLimitToShowTooltipForEdgeColumn, 0);
|
|
49169
|
+
if (colStart1 === colStart) {
|
|
49170
|
+
isShowTooltip = true;
|
|
49171
|
+
}
|
|
49172
|
+
else {
|
|
49173
|
+
const { colStart: colStart2 } = table.getBodyVisibleColRange(0, -5);
|
|
49174
|
+
if (colStart2 !== colStart) {
|
|
49175
|
+
isShowTooltip = true;
|
|
49156
49176
|
}
|
|
49157
|
-
|
|
49158
|
-
|
|
49177
|
+
else {
|
|
49178
|
+
isShowTooltip = false;
|
|
49179
|
+
}
|
|
49180
|
+
}
|
|
49159
49181
|
}
|
|
49160
|
-
|
|
49161
|
-
|
|
49162
|
-
|
|
49163
|
-
|
|
49164
|
-
|
|
49165
|
-
showTooltipOption: { x: absolutePosition.left + 3, y: canvasXY.y, activeType: 'dimension' }
|
|
49166
|
-
});
|
|
49182
|
+
}
|
|
49183
|
+
if (isScatter) {
|
|
49184
|
+
chartInstanceListRowByRowDirection[row][i].showCrosshair?.((axis) => {
|
|
49185
|
+
if (axis.layoutOrient === 'left') {
|
|
49186
|
+
return positionValueOrYValue;
|
|
49167
49187
|
}
|
|
49168
|
-
|
|
49169
|
-
|
|
49170
|
-
|
|
49171
|
-
|
|
49172
|
-
|
|
49188
|
+
return dimensionValueOrXValue;
|
|
49189
|
+
});
|
|
49190
|
+
}
|
|
49191
|
+
else {
|
|
49192
|
+
const bodyBoundryLeft = table.frozenColCount
|
|
49193
|
+
? table.getCellRelativeRect(table.frozenColCount - 1, row).right
|
|
49194
|
+
: 0;
|
|
49195
|
+
const absolutePositionLeft = Math.max(bodyBoundryLeft, table.getCellRelativeRect(i, row).left);
|
|
49196
|
+
if (hideTooltip) {
|
|
49197
|
+
if (table.stateManager.hover.cellPos.col !== i || table.stateManager.hover.cellPos.row !== row) {
|
|
49198
|
+
chartInstanceListRowByRowDirection[row][i].hideTooltip();
|
|
49173
49199
|
}
|
|
49200
|
+
chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49201
|
+
tooltip: false,
|
|
49202
|
+
showTooltipOption: { x: absolutePositionLeft, y: canvasXY.y, activeType: 'dimension' }
|
|
49203
|
+
});
|
|
49204
|
+
}
|
|
49205
|
+
else {
|
|
49206
|
+
chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49207
|
+
tooltip: isShowTooltip,
|
|
49208
|
+
showTooltipOption: { x: absolutePositionLeft, y: canvasXY.y, activeType: 'dimension' }
|
|
49209
|
+
});
|
|
49174
49210
|
}
|
|
49175
49211
|
}
|
|
49176
|
-
}
|
|
49177
|
-
}
|
|
49212
|
+
}
|
|
49213
|
+
}, 0);
|
|
49178
49214
|
table.scenegraph.updateNextFrame();
|
|
49179
49215
|
}
|
|
49180
49216
|
}
|
|
@@ -50244,7 +50280,16 @@
|
|
|
50244
50280
|
context.fill();
|
|
50245
50281
|
}
|
|
50246
50282
|
}
|
|
50247
|
-
}
|
|
50283
|
+
},
|
|
50284
|
+
componentShowContent: table.options.chartDimensionLinkage
|
|
50285
|
+
? {
|
|
50286
|
+
tooltip: {
|
|
50287
|
+
dimension: false,
|
|
50288
|
+
mark: true
|
|
50289
|
+
},
|
|
50290
|
+
crosshair: false
|
|
50291
|
+
}
|
|
50292
|
+
: undefined
|
|
50248
50293
|
}));
|
|
50249
50294
|
const chartStage = this.activeChartInstance.getStage();
|
|
50250
50295
|
const matrix = this.globalTransMatrix.clone();
|
|
@@ -50355,10 +50400,7 @@
|
|
|
50355
50400
|
}
|
|
50356
50401
|
if (indicatorsAsCol) {
|
|
50357
50402
|
const series = dimensionInfo.data[0].series;
|
|
50358
|
-
const width = this.attribute.spec.type === 'histogram' ||
|
|
50359
|
-
this.attribute.spec.type === 'boxPlot' ||
|
|
50360
|
-
series.type === 'line' ||
|
|
50361
|
-
series.type === 'area'
|
|
50403
|
+
const width = this.attribute.spec.type === 'histogram' || series.type === 'line' || series.type === 'area'
|
|
50362
50404
|
? 0
|
|
50363
50405
|
: series.getYAxisHelper().getBandwidth(0);
|
|
50364
50406
|
let y = series.valueToPositionY(dimensionValue);
|
|
@@ -50381,10 +50423,7 @@
|
|
|
50381
50423
|
}
|
|
50382
50424
|
else {
|
|
50383
50425
|
const series = dimensionInfo.data[0].series;
|
|
50384
|
-
const width = this.attribute.spec.type === 'histogram' ||
|
|
50385
|
-
this.attribute.spec.type === 'boxPlot' ||
|
|
50386
|
-
series.type === 'line' ||
|
|
50387
|
-
series.type === 'area'
|
|
50426
|
+
const width = this.attribute.spec.type === 'histogram' || series.type === 'line' || series.type === 'area'
|
|
50388
50427
|
? 0
|
|
50389
50428
|
: series.getXAxisHelper().getBandwidth(0);
|
|
50390
50429
|
let x = series.valueToPositionX(dimensionValue);
|
|
@@ -70024,7 +70063,6 @@
|
|
|
70024
70063
|
class PluginManager {
|
|
70025
70064
|
plugins = new Map();
|
|
70026
70065
|
table;
|
|
70027
|
-
pluginEventMap = new Map();
|
|
70028
70066
|
constructor(table, options) {
|
|
70029
70067
|
this.table = table;
|
|
70030
70068
|
options.plugins?.map(plugin => {
|
|
@@ -70045,35 +70083,29 @@
|
|
|
70045
70083
|
return Array.from(this.plugins.values()).find(plugin => plugin.name === name);
|
|
70046
70084
|
}
|
|
70047
70085
|
_bindTableEventForPlugin(plugin) {
|
|
70048
|
-
plugin.runTime?.forEach(
|
|
70049
|
-
|
|
70086
|
+
plugin.runTime?.forEach(runTime => {
|
|
70087
|
+
this.table.on(runTime, (...args) => {
|
|
70050
70088
|
plugin.run?.(...args, runTime, this.table);
|
|
70051
70089
|
});
|
|
70052
|
-
this.pluginEventMap.set(plugin.id, [...(this.pluginEventMap.get(plugin.id) || []), id]);
|
|
70053
70090
|
});
|
|
70054
70091
|
}
|
|
70055
|
-
|
|
70092
|
+
updatePlugins(plugins) {
|
|
70056
70093
|
const removedPlugins = Array.from(this.plugins.values()).filter(plugin => !plugins?.some(p => p.id === plugin.id));
|
|
70057
70094
|
removedPlugins.forEach(plugin => {
|
|
70058
|
-
this.pluginEventMap.get(plugin.id)?.forEach(id => {
|
|
70059
|
-
this.table.off(id);
|
|
70060
|
-
});
|
|
70061
70095
|
this.release();
|
|
70062
70096
|
this.plugins.delete(plugin.id);
|
|
70063
70097
|
});
|
|
70098
|
+
this.plugins.forEach(plugin => {
|
|
70099
|
+
if (plugin.update) {
|
|
70100
|
+
plugin.update();
|
|
70101
|
+
}
|
|
70102
|
+
});
|
|
70064
70103
|
const addedPlugins = plugins?.filter(plugin => !this.plugins.has(plugin.id));
|
|
70065
70104
|
addedPlugins?.forEach(plugin => {
|
|
70066
70105
|
this.register(plugin);
|
|
70067
70106
|
this._bindTableEventForPlugin(plugin);
|
|
70068
70107
|
});
|
|
70069
70108
|
}
|
|
70070
|
-
updatePlugins(plugins) {
|
|
70071
|
-
plugins?.forEach(plugin => {
|
|
70072
|
-
if (plugin.update) {
|
|
70073
|
-
plugin.update();
|
|
70074
|
-
}
|
|
70075
|
-
});
|
|
70076
|
-
}
|
|
70077
70109
|
release() {
|
|
70078
70110
|
this.plugins.forEach(plugin => {
|
|
70079
70111
|
plugin.release?.(this.table);
|
|
@@ -70118,7 +70150,7 @@
|
|
|
70118
70150
|
return TABLE_EVENT_TYPE;
|
|
70119
70151
|
}
|
|
70120
70152
|
options;
|
|
70121
|
-
version = "1.22.7-alpha.
|
|
70153
|
+
version = "1.22.7-alpha.4";
|
|
70122
70154
|
pagination;
|
|
70123
70155
|
id = `VTable${Date.now()}`;
|
|
70124
70156
|
headerStyleCache;
|
|
@@ -70996,13 +71028,13 @@
|
|
|
70996
71028
|
getDefaultColumnWidth(col) {
|
|
70997
71029
|
if (this.isRowHeader(col, 0) || this.isCornerHeader(col, 0)) {
|
|
70998
71030
|
return Array.isArray(this.defaultHeaderColWidth)
|
|
70999
|
-
?
|
|
71031
|
+
? this.defaultHeaderColWidth[col] ?? this.defaultColWidth
|
|
71000
71032
|
: this.defaultHeaderColWidth;
|
|
71001
71033
|
}
|
|
71002
71034
|
else if (this.isRightFrozenColumn(col, this.columnHeaderLevelCount)) {
|
|
71003
71035
|
if (this.isPivotTable()) {
|
|
71004
71036
|
return Array.isArray(this.defaultHeaderColWidth)
|
|
71005
|
-
?
|
|
71037
|
+
? this.defaultHeaderColWidth[this.rowHeaderLevelCount - this.rightFrozenColCount] ?? this.defaultColWidth
|
|
71006
71038
|
: this.defaultHeaderColWidth;
|
|
71007
71039
|
}
|
|
71008
71040
|
return this.defaultColWidth;
|
|
@@ -71012,12 +71044,12 @@
|
|
|
71012
71044
|
getDefaultRowHeight(row) {
|
|
71013
71045
|
if (this.isColumnHeader(0, row) || this.isCornerHeader(0, row) || this.isSeriesNumberInHeader(0, row)) {
|
|
71014
71046
|
return Array.isArray(this.defaultHeaderRowHeight)
|
|
71015
|
-
?
|
|
71047
|
+
? this.defaultHeaderRowHeight[row] ?? this.internalProps.defaultRowHeight
|
|
71016
71048
|
: this.defaultHeaderRowHeight;
|
|
71017
71049
|
}
|
|
71018
71050
|
if (this.isBottomFrozenRow(row)) {
|
|
71019
71051
|
return Array.isArray(this.defaultHeaderRowHeight)
|
|
71020
|
-
?
|
|
71052
|
+
? this.defaultHeaderRowHeight[this.columnHeaderLevelCount > 0 ? this.columnHeaderLevelCount - this.bottomFrozenRowCount : 0] ?? this.internalProps.defaultRowHeight
|
|
71021
71053
|
: this.defaultHeaderRowHeight;
|
|
71022
71054
|
}
|
|
71023
71055
|
return this.internalProps.defaultRowHeight;
|
|
@@ -71221,14 +71253,14 @@
|
|
|
71221
71253
|
this.colContentWidthsMap.put(col, width);
|
|
71222
71254
|
}
|
|
71223
71255
|
getAllRowsHeight() {
|
|
71224
|
-
if (
|
|
71256
|
+
if (this.internalProps.rowCount <= 0) {
|
|
71225
71257
|
return 0;
|
|
71226
71258
|
}
|
|
71227
71259
|
const h = this.getRowsHeight(0, this.internalProps.rowCount - 1);
|
|
71228
71260
|
return h;
|
|
71229
71261
|
}
|
|
71230
71262
|
getAllColsWidth() {
|
|
71231
|
-
if (
|
|
71263
|
+
if (this.internalProps.colCount <= 0) {
|
|
71232
71264
|
return 0;
|
|
71233
71265
|
}
|
|
71234
71266
|
const w = this.getColsWidth(0, this.internalProps.colCount - 1);
|
|
@@ -71590,26 +71622,26 @@
|
|
|
71590
71622
|
}
|
|
71591
71623
|
return { rowStart, colStart, rowEnd, colEnd };
|
|
71592
71624
|
}
|
|
71593
|
-
getBodyVisibleRowRange(
|
|
71625
|
+
getBodyVisibleRowRange(start_deltaY = 0, end_deltaY = 0) {
|
|
71594
71626
|
const { scrollTop } = this;
|
|
71595
71627
|
const frozenRowsHeight = this.getFrozenRowsHeight();
|
|
71596
71628
|
const bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight();
|
|
71597
|
-
const { row: rowStart } = this.getRowAt(scrollTop + frozenRowsHeight + 1);
|
|
71629
|
+
const { row: rowStart } = this.getRowAt(scrollTop + frozenRowsHeight + 1 + start_deltaY);
|
|
71598
71630
|
const rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight
|
|
71599
|
-
? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight +
|
|
71631
|
+
? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight + end_deltaY).row
|
|
71600
71632
|
: this.rowCount - 1;
|
|
71601
71633
|
if (rowEnd < 0) {
|
|
71602
71634
|
return null;
|
|
71603
71635
|
}
|
|
71604
71636
|
return { rowStart, rowEnd };
|
|
71605
71637
|
}
|
|
71606
|
-
getBodyVisibleColRange(
|
|
71638
|
+
getBodyVisibleColRange(start_deltaX = 0, end_deltaX = 0) {
|
|
71607
71639
|
const { scrollLeft } = this;
|
|
71608
71640
|
const frozenColsWidth = this.getFrozenColsWidth();
|
|
71609
71641
|
const rightFrozenColsWidth = this.getRightFrozenColsWidth();
|
|
71610
|
-
const { col: colStart } = this.getColAt(scrollLeft + frozenColsWidth + 1);
|
|
71642
|
+
const { col: colStart } = this.getColAt(scrollLeft + frozenColsWidth + 1 + start_deltaX);
|
|
71611
71643
|
const colEnd = this.getAllColsWidth() > this.tableNoFrameWidth
|
|
71612
|
-
? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth +
|
|
71644
|
+
? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth + end_deltaX).col
|
|
71613
71645
|
: this.colCount - 1;
|
|
71614
71646
|
if (colEnd < 0) {
|
|
71615
71647
|
return null;
|
|
@@ -78283,7 +78315,6 @@
|
|
|
78283
78315
|
clearRowHeightCache: true
|
|
78284
78316
|
}) {
|
|
78285
78317
|
const internalProps = this.internalProps;
|
|
78286
|
-
this.pluginManager.removeOrAddPlugins(options.plugins);
|
|
78287
78318
|
super.updateOption(options, updateConfig);
|
|
78288
78319
|
internalProps.frozenColDragHeaderMode =
|
|
78289
78320
|
options.dragOrder?.frozenColDragHeaderMode ?? options.frozenColDragHeaderMode;
|
|
@@ -78779,7 +78810,7 @@
|
|
|
78779
78810
|
return state && state[field];
|
|
78780
78811
|
});
|
|
78781
78812
|
}
|
|
78782
|
-
return
|
|
78813
|
+
return new Array(...this.stateManager.checkedState.values());
|
|
78783
78814
|
}
|
|
78784
78815
|
getCellCheckboxState(col, row) {
|
|
78785
78816
|
const define = this.getBodyColumnDefine(col, row);
|
|
@@ -78914,8 +78945,8 @@
|
|
|
78914
78945
|
getEditor(col, row) {
|
|
78915
78946
|
const define = this.getBodyColumnDefine(col, row);
|
|
78916
78947
|
let editorDefine = this.isHeader(col, row)
|
|
78917
|
-
?
|
|
78918
|
-
:
|
|
78948
|
+
? define?.headerEditor ?? this.options.headerEditor
|
|
78949
|
+
: define?.editor ?? this.options.editor;
|
|
78919
78950
|
if (typeof editorDefine === 'function') {
|
|
78920
78951
|
const arg = {
|
|
78921
78952
|
col,
|
|
@@ -78934,8 +78965,8 @@
|
|
|
78934
78965
|
isHasEditorDefine(col, row) {
|
|
78935
78966
|
const define = this.getBodyColumnDefine(col, row);
|
|
78936
78967
|
let editorDefine = this.isHeader(col, row)
|
|
78937
|
-
?
|
|
78938
|
-
:
|
|
78968
|
+
? define?.headerEditor ?? this.options.headerEditor
|
|
78969
|
+
: define?.editor ?? this.options.editor;
|
|
78939
78970
|
if (typeof editorDefine === 'function') {
|
|
78940
78971
|
const arg = {
|
|
78941
78972
|
col,
|
|
@@ -94851,7 +94882,7 @@
|
|
|
94851
94882
|
}
|
|
94852
94883
|
|
|
94853
94884
|
registerForVrender();
|
|
94854
|
-
const version = "1.22.7-alpha.
|
|
94885
|
+
const version = "1.22.7-alpha.4";
|
|
94855
94886
|
function getIcons() {
|
|
94856
94887
|
return get$2();
|
|
94857
94888
|
}
|