@visactor/vtable 1.22.7-alpha.0 → 1.22.7-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 +4 -3
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/body-helper/body-helper.js +1 -2
- package/cjs/body-helper/style.js +2 -1
- package/cjs/core/BaseTable.d.ts +2 -2
- package/cjs/core/BaseTable.js +9 -7
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +2 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +3 -1
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/dataset/dataset-pivot-table.js +2 -1
- package/cjs/edit/editors.js +1 -2
- package/cjs/event/event.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.map +1 -1
- package/cjs/plugins/plugin-manager.d.ts +3 -1
- package/cjs/plugins/plugin-manager.js +13 -6
- package/cjs/plugins/plugin-manager.js.map +1 -1
- package/cjs/scenegraph/graphic/active-cell-chart-list.js +44 -62
- package/cjs/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
- package/cjs/scenegraph/graphic/chart.js +1 -8
- package/cjs/scenegraph/graphic/chart.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/state/state.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 +8 -0
- 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 +181 -217
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +4 -3
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js.map +1 -1
- package/es/body-helper/body-helper.js +1 -2
- package/es/body-helper/style.js +2 -1
- package/es/core/BaseTable.d.ts +2 -2
- package/es/core/BaseTable.js +9 -7
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +2 -0
- package/es/core/TABLE_EVENT_TYPE.js +3 -1
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/dataset/dataset-pivot-table.js +2 -1
- package/es/edit/editors.js +1 -2
- package/es/event/event.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.map +1 -1
- package/es/plugins/plugin-manager.d.ts +3 -1
- package/es/plugins/plugin-manager.js +13 -6
- package/es/plugins/plugin-manager.js.map +1 -1
- package/es/scenegraph/graphic/active-cell-chart-list.js +44 -62
- package/es/scenegraph/graphic/active-cell-chart-list.js.map +1 -1
- package/es/scenegraph/graphic/chart.js +1 -8
- package/es/scenegraph/graphic/chart.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/state/state.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 +8 -0
- 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 +5 -5
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
|
+
});
|
|
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
|
|
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];
|
|
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,7 +36463,9 @@
|
|
|
36463
36463
|
DELETE_RECORD: 'delete_record',
|
|
36464
36464
|
UPDATE_RECORD: 'update_record',
|
|
36465
36465
|
ADD_COLUMN: 'add_column',
|
|
36466
|
-
DELETE_COLUMN: 'delete_column'
|
|
36466
|
+
DELETE_COLUMN: 'delete_column',
|
|
36467
|
+
FILTER_MENU_SHOW: 'filter_menu_show',
|
|
36468
|
+
FILTER_MENU_HIDE: 'filter_menu_hide'
|
|
36467
36469
|
};
|
|
36468
36470
|
|
|
36469
36471
|
const judgeType = (value) => {
|
|
@@ -45455,8 +45457,8 @@
|
|
|
45455
45457
|
const type = isVtableMerge || isCustomMerge
|
|
45456
45458
|
? 'text'
|
|
45457
45459
|
: table.isHeader(col, row)
|
|
45458
|
-
? table._getHeaderLayoutMap(col, row).headerType ?? 'text'
|
|
45459
|
-
: table.getBodyColumnType(col, row) ?? 'text';
|
|
45460
|
+
? (table._getHeaderLayoutMap(col, row).headerType ?? 'text')
|
|
45461
|
+
: (table.getBodyColumnType(col, row) ?? 'text');
|
|
45460
45462
|
const padding = cellTheme._vtable.padding;
|
|
45461
45463
|
const textAlign = cellTheme.text.textAlign;
|
|
45462
45464
|
const textBaseline = cellTheme.text.textBaseline;
|
|
@@ -47129,8 +47131,8 @@
|
|
|
47129
47131
|
const type = isVtableMerge || isCustomMerge
|
|
47130
47132
|
? 'text'
|
|
47131
47133
|
: scene.table.isHeader(col, row)
|
|
47132
|
-
? scene.table._getHeaderLayoutMap(col, row).headerType ?? 'text'
|
|
47133
|
-
: scene.table.getBodyColumnType(col, row) ?? 'text';
|
|
47134
|
+
? (scene.table._getHeaderLayoutMap(col, row).headerType ?? 'text')
|
|
47135
|
+
: (scene.table.getBodyColumnType(col, row) ?? 'text');
|
|
47134
47136
|
let isHeightChange = false;
|
|
47135
47137
|
if (type === 'progressbar') {
|
|
47136
47138
|
const columnDefine = scene.table.getBodyColumnDefine(col, row);
|
|
@@ -49026,76 +49028,57 @@
|
|
|
49026
49028
|
chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance;
|
|
49027
49029
|
}
|
|
49028
49030
|
}
|
|
49029
|
-
|
|
49030
|
-
|
|
49031
|
-
|
|
49032
|
-
|
|
49033
|
-
|
|
49034
|
-
isShowTooltip =
|
|
49035
|
-
if (
|
|
49036
|
-
|
|
49037
|
-
|
|
49038
|
-
|
|
49039
|
-
|
|
49040
|
-
|
|
49041
|
-
else {
|
|
49042
|
-
const { rowEnd: rowEnd2 } = table.getBodyVisibleRowRange(0, 5);
|
|
49043
|
-
if (rowEnd2 !== rowEnd) {
|
|
49031
|
+
if (table.stateManager.hover.cellPos.col !== col || table.stateManager.hover.cellPos.row !== i) {
|
|
49032
|
+
setTimeout(() => {
|
|
49033
|
+
if (chartInstanceListColumnByColumnDirection[col]?.[i]) {
|
|
49034
|
+
const absolutePosition = table.getCellRelativeRect(col, i);
|
|
49035
|
+
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
49036
|
+
let isShowTooltip = !isScatter;
|
|
49037
|
+
if (!isScatter && typeof chartDimensionLinkage === 'object') {
|
|
49038
|
+
isShowTooltip = chartDimensionLinkage.showTooltip ?? true;
|
|
49039
|
+
if (i === rowEnd && isShowTooltip) {
|
|
49040
|
+
const heightLimitToShowTooltipForLastRow = chartDimensionLinkage.heightLimitToShowTooltipForLastRow;
|
|
49041
|
+
const { rowEnd: rowEnd1 } = table.getBodyVisibleRowRange(-heightLimitToShowTooltipForLastRow);
|
|
49042
|
+
if (rowEnd1 === rowEnd) {
|
|
49044
49043
|
isShowTooltip = true;
|
|
49045
49044
|
}
|
|
49046
49045
|
else {
|
|
49047
|
-
|
|
49046
|
+
const { rowEnd: rowEnd2 } = table.getBodyVisibleRowRange(5);
|
|
49047
|
+
if (rowEnd2 !== rowEnd) {
|
|
49048
|
+
isShowTooltip = true;
|
|
49049
|
+
}
|
|
49050
|
+
else {
|
|
49051
|
+
isShowTooltip = false;
|
|
49052
|
+
}
|
|
49048
49053
|
}
|
|
49049
49054
|
}
|
|
49050
49055
|
}
|
|
49051
|
-
|
|
49052
|
-
|
|
49053
|
-
|
|
49054
|
-
|
|
49055
|
-
isShowTooltip = true;
|
|
49056
|
-
}
|
|
49057
|
-
else {
|
|
49058
|
-
const { rowStart: rowStart2 } = table.getBodyVisibleRowRange(0, -5);
|
|
49059
|
-
if (rowStart2 !== rowStart) {
|
|
49060
|
-
isShowTooltip = true;
|
|
49061
|
-
}
|
|
49062
|
-
else {
|
|
49063
|
-
isShowTooltip = false;
|
|
49056
|
+
if (isScatter) {
|
|
49057
|
+
chartInstanceListColumnByColumnDirection[col][i].showCrosshair?.((axis) => {
|
|
49058
|
+
if (axis.layoutOrient === 'left') {
|
|
49059
|
+
return positionValueOrYValue;
|
|
49064
49060
|
}
|
|
49065
|
-
|
|
49066
|
-
}
|
|
49067
|
-
}
|
|
49068
|
-
if (isScatter) {
|
|
49069
|
-
chartInstanceListColumnByColumnDirection[col][i].showCrosshair?.((axis) => {
|
|
49070
|
-
if (axis.layoutOrient === 'left') {
|
|
49071
|
-
return positionValueOrYValue;
|
|
49072
|
-
}
|
|
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();
|
|
49084
|
-
}
|
|
49085
|
-
chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49086
|
-
tooltip: false,
|
|
49087
|
-
showTooltipOption: { x: canvasXY.x, y: absolutePositionTop, activeType: 'dimension' }
|
|
49061
|
+
return dimensionValueOrXValue;
|
|
49088
49062
|
});
|
|
49089
49063
|
}
|
|
49090
49064
|
else {
|
|
49091
|
-
|
|
49092
|
-
|
|
49093
|
-
|
|
49094
|
-
|
|
49065
|
+
if (hideTooltip) {
|
|
49066
|
+
chartInstanceListColumnByColumnDirection[col][i].hideTooltip();
|
|
49067
|
+
chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49068
|
+
tooltip: false,
|
|
49069
|
+
showTooltipOption: { x: canvasXY.x, y: absolutePosition.top + 3, activeType: 'dimension' }
|
|
49070
|
+
});
|
|
49071
|
+
}
|
|
49072
|
+
else {
|
|
49073
|
+
chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49074
|
+
tooltip: isShowTooltip,
|
|
49075
|
+
showTooltipOption: { x: canvasXY.x, y: absolutePosition.top + 3, activeType: 'dimension' }
|
|
49076
|
+
});
|
|
49077
|
+
}
|
|
49095
49078
|
}
|
|
49096
49079
|
}
|
|
49097
|
-
}
|
|
49098
|
-
}
|
|
49080
|
+
}, 0);
|
|
49081
|
+
}
|
|
49099
49082
|
table.scenegraph.updateNextFrame();
|
|
49100
49083
|
}
|
|
49101
49084
|
}
|
|
@@ -49141,76 +49124,57 @@
|
|
|
49141
49124
|
chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance;
|
|
49142
49125
|
}
|
|
49143
49126
|
}
|
|
49144
|
-
|
|
49145
|
-
|
|
49146
|
-
|
|
49147
|
-
|
|
49148
|
-
|
|
49149
|
-
isShowTooltip =
|
|
49150
|
-
if (
|
|
49151
|
-
|
|
49152
|
-
|
|
49153
|
-
|
|
49154
|
-
|
|
49155
|
-
|
|
49156
|
-
else {
|
|
49157
|
-
const { colEnd: colEnd2 } = table.getBodyVisibleColRange(0, 5);
|
|
49158
|
-
if (colEnd2 !== colEnd) {
|
|
49127
|
+
if (table.stateManager.hover.cellPos.col !== i || table.stateManager.hover.cellPos.row !== row) {
|
|
49128
|
+
setTimeout(() => {
|
|
49129
|
+
if (chartInstanceListRowByRowDirection[row]?.[i]) {
|
|
49130
|
+
const absolutePosition = table.getCellRelativeRect(i, row);
|
|
49131
|
+
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
49132
|
+
let isShowTooltip = !isScatter;
|
|
49133
|
+
if (!isScatter && typeof chartDimensionLinkage === 'object') {
|
|
49134
|
+
isShowTooltip = chartDimensionLinkage.showTooltip ?? true;
|
|
49135
|
+
if (i === colEnd && isShowTooltip) {
|
|
49136
|
+
const widthLimitToShowTooltipForLastColumn = chartDimensionLinkage.widthLimitToShowTooltipForLastColumn;
|
|
49137
|
+
const { colEnd: colEnd1 } = table.getBodyVisibleColRange(-widthLimitToShowTooltipForLastColumn);
|
|
49138
|
+
if (colEnd1 === colEnd) {
|
|
49159
49139
|
isShowTooltip = true;
|
|
49160
49140
|
}
|
|
49161
49141
|
else {
|
|
49162
|
-
|
|
49142
|
+
const { colEnd: colEnd2 } = table.getBodyVisibleColRange(5);
|
|
49143
|
+
if (colEnd2 !== colEnd) {
|
|
49144
|
+
isShowTooltip = true;
|
|
49145
|
+
}
|
|
49146
|
+
else {
|
|
49147
|
+
isShowTooltip = false;
|
|
49148
|
+
}
|
|
49163
49149
|
}
|
|
49164
49150
|
}
|
|
49165
49151
|
}
|
|
49166
|
-
|
|
49167
|
-
|
|
49168
|
-
|
|
49169
|
-
|
|
49170
|
-
isShowTooltip = true;
|
|
49171
|
-
}
|
|
49172
|
-
else {
|
|
49173
|
-
const { colStart: colStart2 } = table.getBodyVisibleColRange(0, -5);
|
|
49174
|
-
if (colStart2 !== colStart) {
|
|
49175
|
-
isShowTooltip = true;
|
|
49176
|
-
}
|
|
49177
|
-
else {
|
|
49178
|
-
isShowTooltip = false;
|
|
49152
|
+
if (isScatter) {
|
|
49153
|
+
chartInstanceListRowByRowDirection[row][i].showCrosshair?.((axis) => {
|
|
49154
|
+
if (axis.layoutOrient === 'left') {
|
|
49155
|
+
return positionValueOrYValue;
|
|
49179
49156
|
}
|
|
49180
|
-
|
|
49181
|
-
}
|
|
49182
|
-
}
|
|
49183
|
-
if (isScatter) {
|
|
49184
|
-
chartInstanceListRowByRowDirection[row][i].showCrosshair?.((axis) => {
|
|
49185
|
-
if (axis.layoutOrient === 'left') {
|
|
49186
|
-
return positionValueOrYValue;
|
|
49187
|
-
}
|
|
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();
|
|
49199
|
-
}
|
|
49200
|
-
chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49201
|
-
tooltip: false,
|
|
49202
|
-
showTooltipOption: { x: absolutePositionLeft, y: canvasXY.y, activeType: 'dimension' }
|
|
49157
|
+
return dimensionValueOrXValue;
|
|
49203
49158
|
});
|
|
49204
49159
|
}
|
|
49205
49160
|
else {
|
|
49206
|
-
|
|
49207
|
-
|
|
49208
|
-
|
|
49209
|
-
|
|
49161
|
+
if (hideTooltip) {
|
|
49162
|
+
chartInstanceListRowByRowDirection[row][i].hideTooltip();
|
|
49163
|
+
chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49164
|
+
tooltip: false,
|
|
49165
|
+
showTooltipOption: { x: absolutePosition.left + 3, y: canvasXY.y, activeType: 'dimension' }
|
|
49166
|
+
});
|
|
49167
|
+
}
|
|
49168
|
+
else {
|
|
49169
|
+
chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
49170
|
+
tooltip: isShowTooltip,
|
|
49171
|
+
showTooltipOption: { x: absolutePosition.left + 3, y: canvasXY.y, activeType: 'dimension' }
|
|
49172
|
+
});
|
|
49173
|
+
}
|
|
49210
49174
|
}
|
|
49211
49175
|
}
|
|
49212
|
-
}
|
|
49213
|
-
}
|
|
49176
|
+
}, 0);
|
|
49177
|
+
}
|
|
49214
49178
|
table.scenegraph.updateNextFrame();
|
|
49215
49179
|
}
|
|
49216
49180
|
}
|
|
@@ -50280,16 +50244,7 @@
|
|
|
50280
50244
|
context.fill();
|
|
50281
50245
|
}
|
|
50282
50246
|
}
|
|
50283
|
-
}
|
|
50284
|
-
componentShowContent: table.options.chartDimensionLinkage
|
|
50285
|
-
? {
|
|
50286
|
-
tooltip: {
|
|
50287
|
-
dimension: false,
|
|
50288
|
-
mark: true
|
|
50289
|
-
},
|
|
50290
|
-
crosshair: false
|
|
50291
|
-
}
|
|
50292
|
-
: undefined
|
|
50247
|
+
}
|
|
50293
50248
|
}));
|
|
50294
50249
|
const chartStage = this.activeChartInstance.getStage();
|
|
50295
50250
|
const matrix = this.globalTransMatrix.clone();
|
|
@@ -50650,18 +50605,18 @@
|
|
|
50650
50605
|
dataBatch.push({
|
|
50651
50606
|
id: dataIdStr,
|
|
50652
50607
|
values: dataIdAndField
|
|
50653
|
-
? data?.filter((item) => {
|
|
50608
|
+
? (data?.filter((item) => {
|
|
50654
50609
|
return item.hasOwnProperty(dataIdAndField);
|
|
50655
|
-
}) ?? []
|
|
50656
|
-
: data ?? [],
|
|
50610
|
+
}) ?? [])
|
|
50611
|
+
: (data ?? []),
|
|
50657
50612
|
fields: series?.data?.fields
|
|
50658
50613
|
});
|
|
50659
50614
|
if (!chartInstance.updateFullDataSync) {
|
|
50660
50615
|
chartInstance.updateDataSync(dataIdStr, dataIdAndField
|
|
50661
|
-
? data?.filter((item) => {
|
|
50616
|
+
? (data?.filter((item) => {
|
|
50662
50617
|
return item.hasOwnProperty(dataIdAndField);
|
|
50663
|
-
}) ?? []
|
|
50664
|
-
: data ?? []);
|
|
50618
|
+
}) ?? [])
|
|
50619
|
+
: (data ?? []));
|
|
50665
50620
|
}
|
|
50666
50621
|
}
|
|
50667
50622
|
chartInstance.getChart().setLayoutTag(true);
|
|
@@ -50828,18 +50783,18 @@
|
|
|
50828
50783
|
dataBatch.push({
|
|
50829
50784
|
id: dataIdStr,
|
|
50830
50785
|
values: dataIdAndField
|
|
50831
|
-
? data?.filter((item) => {
|
|
50786
|
+
? (data?.filter((item) => {
|
|
50832
50787
|
return item.hasOwnProperty(dataIdAndField);
|
|
50833
|
-
}) ?? []
|
|
50834
|
-
: data ?? [],
|
|
50788
|
+
}) ?? [])
|
|
50789
|
+
: (data ?? []),
|
|
50835
50790
|
fields: series?.data?.fields
|
|
50836
50791
|
});
|
|
50837
50792
|
if (!activeChartInstance.updateFullDataSync) {
|
|
50838
50793
|
activeChartInstance.updateDataSync(dataIdStr, dataIdAndField
|
|
50839
|
-
? data?.filter((item) => {
|
|
50794
|
+
? (data?.filter((item) => {
|
|
50840
50795
|
return item.hasOwnProperty(dataIdAndField);
|
|
50841
|
-
}) ?? []
|
|
50842
|
-
: data ?? []);
|
|
50796
|
+
}) ?? [])
|
|
50797
|
+
: (data ?? []));
|
|
50843
50798
|
}
|
|
50844
50799
|
}
|
|
50845
50800
|
activeChartInstance.updateFullDataSync?.(dataBatch);
|
|
@@ -58215,7 +58170,8 @@
|
|
|
58215
58170
|
: this.table.options.indicatorsAsCol
|
|
58216
58171
|
? row !== this.table.stateManager.hover.cellPos.row ||
|
|
58217
58172
|
this.table.stateManager.hover.cellPos.col < this.table.frozenColCount ||
|
|
58218
|
-
this.table.stateManager.hover.cellPos.col >
|
|
58173
|
+
this.table.stateManager.hover.cellPos.col >
|
|
58174
|
+
this.table.colCount - 1 - this.table.rightFrozenColCount
|
|
58219
58175
|
: col !== this.table.stateManager.hover.cellPos.col ||
|
|
58220
58176
|
this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount ||
|
|
58221
58177
|
this.table.stateManager.hover.cellPos.row >
|
|
@@ -58513,16 +58469,16 @@
|
|
|
58513
58469
|
if (rectAttributes?.strokeArrayWidth) {
|
|
58514
58470
|
borderTop = rectAttributes.strokeArrayWidth
|
|
58515
58471
|
? rectAttributes.strokeArrayWidth[0]
|
|
58516
|
-
: rectAttributes.lineWidth ?? 0;
|
|
58472
|
+
: (rectAttributes.lineWidth ?? 0);
|
|
58517
58473
|
borderRight = rectAttributes.strokeArrayWidth
|
|
58518
58474
|
? rectAttributes.strokeArrayWidth[1]
|
|
58519
|
-
: rectAttributes.lineWidth ?? 0;
|
|
58475
|
+
: (rectAttributes.lineWidth ?? 0);
|
|
58520
58476
|
borderBottom = rectAttributes.strokeArrayWidth
|
|
58521
58477
|
? rectAttributes.strokeArrayWidth[2]
|
|
58522
|
-
: rectAttributes.lineWidth ?? 0;
|
|
58478
|
+
: (rectAttributes.lineWidth ?? 0);
|
|
58523
58479
|
borderLeft = rectAttributes.strokeArrayWidth
|
|
58524
58480
|
? rectAttributes.strokeArrayWidth[3]
|
|
58525
|
-
: rectAttributes.lineWidth ?? 0;
|
|
58481
|
+
: (rectAttributes.lineWidth ?? 0);
|
|
58526
58482
|
}
|
|
58527
58483
|
else {
|
|
58528
58484
|
borderTop = rectAttributes?.lineWidth ?? 0;
|
|
@@ -61969,7 +61925,7 @@
|
|
|
61969
61925
|
function flatten(cols, parentStartIndex = 0) {
|
|
61970
61926
|
cols.forEach((col) => {
|
|
61971
61927
|
const startIndex = col.startInTotal
|
|
61972
|
-
? col.startInTotal + state.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount ?? 0
|
|
61928
|
+
? (col.startInTotal + state.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount ?? 0)
|
|
61973
61929
|
: parentStartIndex;
|
|
61974
61930
|
if (col.columns) {
|
|
61975
61931
|
flatten(col.columns, startIndex);
|
|
@@ -65575,7 +65531,7 @@
|
|
|
65575
65531
|
}
|
|
65576
65532
|
const shiftMultiSelect = this.table.keyboardOptions?.shiftMultiSelect ?? true;
|
|
65577
65533
|
const ctrlMultiSelect = this.table.keyboardOptions?.ctrlMultiSelect ?? true;
|
|
65578
|
-
this.table.stateManager.updateSelectPos(this.table.stateManager.select.selectInline === 'row' ? this.table.colCount - 1 : eventArgs.col, this.table.stateManager.select.selectInline === 'col' ? this.table.rowCount - 1 : eventArgs.row, eventArgs.event.shiftKey && shiftMultiSelect, (eventArgs.event.ctrlKey || eventArgs.event.metaKey) && ctrlMultiSelect, false, isSelectMoving ? false : this.table.options.select?.makeSelectCellVisible ?? true);
|
|
65534
|
+
this.table.stateManager.updateSelectPos(this.table.stateManager.select.selectInline === 'row' ? this.table.colCount - 1 : eventArgs.col, this.table.stateManager.select.selectInline === 'col' ? this.table.rowCount - 1 : eventArgs.row, eventArgs.event.shiftKey && shiftMultiSelect, (eventArgs.event.ctrlKey || eventArgs.event.metaKey) && ctrlMultiSelect, false, isSelectMoving ? false : (this.table.options.select?.makeSelectCellVisible ?? true));
|
|
65579
65535
|
return true;
|
|
65580
65536
|
}
|
|
65581
65537
|
return false;
|
|
@@ -70069,6 +70025,7 @@
|
|
|
70069
70025
|
class PluginManager {
|
|
70070
70026
|
plugins = new Map();
|
|
70071
70027
|
table;
|
|
70028
|
+
pluginEventMap = new Map();
|
|
70072
70029
|
constructor(table, options) {
|
|
70073
70030
|
this.table = table;
|
|
70074
70031
|
options.plugins?.map(plugin => {
|
|
@@ -70090,28 +70047,34 @@
|
|
|
70090
70047
|
}
|
|
70091
70048
|
_bindTableEventForPlugin(plugin) {
|
|
70092
70049
|
plugin.runTime?.forEach(runTime => {
|
|
70093
|
-
this.table.on(runTime, (...args) => {
|
|
70050
|
+
const id = this.table.on(runTime, (...args) => {
|
|
70094
70051
|
plugin.run?.(...args, runTime, this.table);
|
|
70095
70052
|
});
|
|
70053
|
+
this.pluginEventMap.set(plugin.id, [...(this.pluginEventMap.get(plugin.id) || []), id]);
|
|
70096
70054
|
});
|
|
70097
70055
|
}
|
|
70098
|
-
|
|
70056
|
+
removeOrAddPlugins(plugins) {
|
|
70099
70057
|
const removedPlugins = Array.from(this.plugins.values()).filter(plugin => !plugins?.some(p => p.id === plugin.id));
|
|
70100
70058
|
removedPlugins.forEach(plugin => {
|
|
70059
|
+
this.pluginEventMap.get(plugin.id)?.forEach(id => {
|
|
70060
|
+
this.table.off(id);
|
|
70061
|
+
});
|
|
70101
70062
|
this.release();
|
|
70102
70063
|
this.plugins.delete(plugin.id);
|
|
70103
70064
|
});
|
|
70104
|
-
this.plugins.forEach(plugin => {
|
|
70105
|
-
if (plugin.update) {
|
|
70106
|
-
plugin.update();
|
|
70107
|
-
}
|
|
70108
|
-
});
|
|
70109
70065
|
const addedPlugins = plugins?.filter(plugin => !this.plugins.has(plugin.id));
|
|
70110
70066
|
addedPlugins?.forEach(plugin => {
|
|
70111
70067
|
this.register(plugin);
|
|
70112
70068
|
this._bindTableEventForPlugin(plugin);
|
|
70113
70069
|
});
|
|
70114
70070
|
}
|
|
70071
|
+
updatePlugins() {
|
|
70072
|
+
this.plugins.forEach(plugin => {
|
|
70073
|
+
if (plugin.update) {
|
|
70074
|
+
plugin.update();
|
|
70075
|
+
}
|
|
70076
|
+
});
|
|
70077
|
+
}
|
|
70115
70078
|
release() {
|
|
70116
70079
|
this.plugins.forEach(plugin => {
|
|
70117
70080
|
plugin.release?.(this.table);
|
|
@@ -70156,7 +70119,7 @@
|
|
|
70156
70119
|
return TABLE_EVENT_TYPE;
|
|
70157
70120
|
}
|
|
70158
70121
|
options;
|
|
70159
|
-
version = "1.22.7-alpha.
|
|
70122
|
+
version = "1.22.7-alpha.1";
|
|
70160
70123
|
pagination;
|
|
70161
70124
|
id = `VTable${Date.now()}`;
|
|
70162
70125
|
headerStyleCache;
|
|
@@ -71034,13 +70997,13 @@
|
|
|
71034
70997
|
getDefaultColumnWidth(col) {
|
|
71035
70998
|
if (this.isRowHeader(col, 0) || this.isCornerHeader(col, 0)) {
|
|
71036
70999
|
return Array.isArray(this.defaultHeaderColWidth)
|
|
71037
|
-
? this.defaultHeaderColWidth[col] ?? this.defaultColWidth
|
|
71000
|
+
? (this.defaultHeaderColWidth[col] ?? this.defaultColWidth)
|
|
71038
71001
|
: this.defaultHeaderColWidth;
|
|
71039
71002
|
}
|
|
71040
71003
|
else if (this.isRightFrozenColumn(col, this.columnHeaderLevelCount)) {
|
|
71041
71004
|
if (this.isPivotTable()) {
|
|
71042
71005
|
return Array.isArray(this.defaultHeaderColWidth)
|
|
71043
|
-
? this.defaultHeaderColWidth[this.rowHeaderLevelCount - this.rightFrozenColCount] ?? this.defaultColWidth
|
|
71006
|
+
? (this.defaultHeaderColWidth[this.rowHeaderLevelCount - this.rightFrozenColCount] ?? this.defaultColWidth)
|
|
71044
71007
|
: this.defaultHeaderColWidth;
|
|
71045
71008
|
}
|
|
71046
71009
|
return this.defaultColWidth;
|
|
@@ -71050,12 +71013,12 @@
|
|
|
71050
71013
|
getDefaultRowHeight(row) {
|
|
71051
71014
|
if (this.isColumnHeader(0, row) || this.isCornerHeader(0, row) || this.isSeriesNumberInHeader(0, row)) {
|
|
71052
71015
|
return Array.isArray(this.defaultHeaderRowHeight)
|
|
71053
|
-
? this.defaultHeaderRowHeight[row] ?? this.internalProps.defaultRowHeight
|
|
71016
|
+
? (this.defaultHeaderRowHeight[row] ?? this.internalProps.defaultRowHeight)
|
|
71054
71017
|
: this.defaultHeaderRowHeight;
|
|
71055
71018
|
}
|
|
71056
71019
|
if (this.isBottomFrozenRow(row)) {
|
|
71057
71020
|
return Array.isArray(this.defaultHeaderRowHeight)
|
|
71058
|
-
? this.defaultHeaderRowHeight[this.columnHeaderLevelCount > 0 ? this.columnHeaderLevelCount - this.bottomFrozenRowCount : 0] ?? this.internalProps.defaultRowHeight
|
|
71021
|
+
? (this.defaultHeaderRowHeight[this.columnHeaderLevelCount > 0 ? this.columnHeaderLevelCount - this.bottomFrozenRowCount : 0] ?? this.internalProps.defaultRowHeight)
|
|
71059
71022
|
: this.defaultHeaderRowHeight;
|
|
71060
71023
|
}
|
|
71061
71024
|
return this.internalProps.defaultRowHeight;
|
|
@@ -71259,14 +71222,14 @@
|
|
|
71259
71222
|
this.colContentWidthsMap.put(col, width);
|
|
71260
71223
|
}
|
|
71261
71224
|
getAllRowsHeight() {
|
|
71262
|
-
if (this.internalProps.rowCount <= 0) {
|
|
71225
|
+
if (!this.internalProps?.rowCount || this.internalProps.rowCount <= 0) {
|
|
71263
71226
|
return 0;
|
|
71264
71227
|
}
|
|
71265
71228
|
const h = this.getRowsHeight(0, this.internalProps.rowCount - 1);
|
|
71266
71229
|
return h;
|
|
71267
71230
|
}
|
|
71268
71231
|
getAllColsWidth() {
|
|
71269
|
-
if (this.internalProps.colCount <= 0) {
|
|
71232
|
+
if (!this.internalProps?.colCount || this.internalProps.colCount <= 0) {
|
|
71270
71233
|
return 0;
|
|
71271
71234
|
}
|
|
71272
71235
|
const w = this.getColsWidth(0, this.internalProps.colCount - 1);
|
|
@@ -71628,26 +71591,26 @@
|
|
|
71628
71591
|
}
|
|
71629
71592
|
return { rowStart, colStart, rowEnd, colEnd };
|
|
71630
71593
|
}
|
|
71631
|
-
getBodyVisibleRowRange(
|
|
71594
|
+
getBodyVisibleRowRange(deltaY = 0) {
|
|
71632
71595
|
const { scrollTop } = this;
|
|
71633
71596
|
const frozenRowsHeight = this.getFrozenRowsHeight();
|
|
71634
71597
|
const bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight();
|
|
71635
|
-
const { row: rowStart } = this.getRowAt(scrollTop + frozenRowsHeight + 1
|
|
71598
|
+
const { row: rowStart } = this.getRowAt(scrollTop + frozenRowsHeight + 1);
|
|
71636
71599
|
const rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight
|
|
71637
|
-
? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight +
|
|
71600
|
+
? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight + deltaY).row
|
|
71638
71601
|
: this.rowCount - 1;
|
|
71639
71602
|
if (rowEnd < 0) {
|
|
71640
71603
|
return null;
|
|
71641
71604
|
}
|
|
71642
71605
|
return { rowStart, rowEnd };
|
|
71643
71606
|
}
|
|
71644
|
-
getBodyVisibleColRange(
|
|
71607
|
+
getBodyVisibleColRange(deltaX = 0) {
|
|
71645
71608
|
const { scrollLeft } = this;
|
|
71646
71609
|
const frozenColsWidth = this.getFrozenColsWidth();
|
|
71647
71610
|
const rightFrozenColsWidth = this.getRightFrozenColsWidth();
|
|
71648
|
-
const { col: colStart } = this.getColAt(scrollLeft + frozenColsWidth + 1
|
|
71611
|
+
const { col: colStart } = this.getColAt(scrollLeft + frozenColsWidth + 1);
|
|
71649
71612
|
const colEnd = this.getAllColsWidth() > this.tableNoFrameWidth
|
|
71650
|
-
? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth +
|
|
71613
|
+
? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth + deltaX).col
|
|
71651
71614
|
: this.colCount - 1;
|
|
71652
71615
|
if (colEnd < 0) {
|
|
71653
71616
|
return null;
|
|
@@ -78321,6 +78284,7 @@
|
|
|
78321
78284
|
clearRowHeightCache: true
|
|
78322
78285
|
}) {
|
|
78323
78286
|
const internalProps = this.internalProps;
|
|
78287
|
+
this.pluginManager.removeOrAddPlugins(options.plugins);
|
|
78324
78288
|
super.updateOption(options, updateConfig);
|
|
78325
78289
|
internalProps.frozenColDragHeaderMode =
|
|
78326
78290
|
options.dragOrder?.frozenColDragHeaderMode ?? options.frozenColDragHeaderMode;
|
|
@@ -78385,7 +78349,7 @@
|
|
|
78385
78349
|
this.internalProps.emptyTip?.resetVisible();
|
|
78386
78350
|
}
|
|
78387
78351
|
}
|
|
78388
|
-
this.pluginManager.updatePlugins(
|
|
78352
|
+
this.pluginManager.updatePlugins();
|
|
78389
78353
|
setTimeout(() => {
|
|
78390
78354
|
this.fireListeners(TABLE_EVENT_TYPE.UPDATED, null);
|
|
78391
78355
|
}, 0);
|
|
@@ -78816,7 +78780,7 @@
|
|
|
78816
78780
|
return state && state[field];
|
|
78817
78781
|
});
|
|
78818
78782
|
}
|
|
78819
|
-
return
|
|
78783
|
+
return [...this.stateManager.checkedState.values()];
|
|
78820
78784
|
}
|
|
78821
78785
|
getCellCheckboxState(col, row) {
|
|
78822
78786
|
const define = this.getBodyColumnDefine(col, row);
|
|
@@ -78951,8 +78915,8 @@
|
|
|
78951
78915
|
getEditor(col, row) {
|
|
78952
78916
|
const define = this.getBodyColumnDefine(col, row);
|
|
78953
78917
|
let editorDefine = this.isHeader(col, row)
|
|
78954
|
-
? define?.headerEditor ?? this.options.headerEditor
|
|
78955
|
-
: define?.editor ?? this.options.editor;
|
|
78918
|
+
? (define?.headerEditor ?? this.options.headerEditor)
|
|
78919
|
+
: (define?.editor ?? this.options.editor);
|
|
78956
78920
|
if (typeof editorDefine === 'function') {
|
|
78957
78921
|
const arg = {
|
|
78958
78922
|
col,
|
|
@@ -78971,8 +78935,8 @@
|
|
|
78971
78935
|
isHasEditorDefine(col, row) {
|
|
78972
78936
|
const define = this.getBodyColumnDefine(col, row);
|
|
78973
78937
|
let editorDefine = this.isHeader(col, row)
|
|
78974
|
-
? define?.headerEditor ?? this.options.headerEditor
|
|
78975
|
-
: define?.editor ?? this.options.editor;
|
|
78938
|
+
? (define?.headerEditor ?? this.options.headerEditor)
|
|
78939
|
+
: (define?.editor ?? this.options.editor);
|
|
78976
78940
|
if (typeof editorDefine === 'function') {
|
|
78977
78941
|
const arg = {
|
|
78978
78942
|
col,
|
|
@@ -87266,7 +87230,7 @@
|
|
|
87266
87230
|
this._indicators?.length > 0 &&
|
|
87267
87231
|
!this._rowHeaderCellIds?.length
|
|
87268
87232
|
? 1
|
|
87269
|
-
: this._rowHeaderCellIds?.length ?? 0) +
|
|
87233
|
+
: (this._rowHeaderCellIds?.length ?? 0)) +
|
|
87270
87234
|
this.columnHeaderLevelCount +
|
|
87271
87235
|
this.bottomHeaderRowCount);
|
|
87272
87236
|
}
|
|
@@ -87412,14 +87376,14 @@
|
|
|
87412
87376
|
if (this.indicatorsAsCol) {
|
|
87413
87377
|
const indicatorKey = paths.colHeaderPaths?.find(colPath => colPath.indicatorKey)?.indicatorKey;
|
|
87414
87378
|
const body = isValid$3(indicatorKey)
|
|
87415
|
-
? this._indicators?.find(indicator => indicator.indicatorKey === indicatorKey) ??
|
|
87379
|
+
? (this._indicators?.find(indicator => indicator.indicatorKey === indicatorKey) ??
|
|
87416
87380
|
this._indicators[0] ?? {
|
|
87417
87381
|
id: '',
|
|
87418
87382
|
field: undefined,
|
|
87419
87383
|
indicatorKey: undefined,
|
|
87420
87384
|
cellType: 'text',
|
|
87421
87385
|
define: undefined
|
|
87422
|
-
}
|
|
87386
|
+
})
|
|
87423
87387
|
: {
|
|
87424
87388
|
id: '',
|
|
87425
87389
|
field: undefined,
|
|
@@ -87432,14 +87396,14 @@
|
|
|
87432
87396
|
}
|
|
87433
87397
|
const indicatorKey = paths.rowHeaderPaths?.find(rowPath => rowPath.indicatorKey)?.indicatorKey;
|
|
87434
87398
|
const body = isValid$3(indicatorKey)
|
|
87435
|
-
? this._indicators?.find(indicator => indicator.indicatorKey === indicatorKey) ??
|
|
87399
|
+
? (this._indicators?.find(indicator => indicator.indicatorKey === indicatorKey) ??
|
|
87436
87400
|
this._indicators[0] ?? {
|
|
87437
87401
|
id: '',
|
|
87438
87402
|
field: undefined,
|
|
87439
87403
|
indicatorKey: undefined,
|
|
87440
87404
|
cellType: 'text',
|
|
87441
87405
|
define: undefined
|
|
87442
|
-
}
|
|
87406
|
+
})
|
|
87443
87407
|
: {
|
|
87444
87408
|
id: '',
|
|
87445
87409
|
field: undefined,
|
|
@@ -87686,7 +87650,7 @@
|
|
|
87686
87650
|
rowHeaderPath.value =
|
|
87687
87651
|
rowHeader.value ??
|
|
87688
87652
|
(rowHeader.indicatorKey
|
|
87689
|
-
? this.getIndicatorInfoByIndicatorKey(rowHeader.indicatorKey)?.title ?? ''
|
|
87653
|
+
? (this.getIndicatorInfoByIndicatorKey(rowHeader.indicatorKey)?.title ?? '')
|
|
87690
87654
|
: rowHeader.value);
|
|
87691
87655
|
rowHeaderPath.virtual = rowHeader.virtual;
|
|
87692
87656
|
rowHeaderPath.role = rowHeader.role;
|
|
@@ -88792,10 +88756,10 @@
|
|
|
88792
88756
|
if (chartSpec) {
|
|
88793
88757
|
dimensionKey =
|
|
88794
88758
|
type === 'yField'
|
|
88795
|
-
? chartSpec.yField ?? chartSpec?.series?.[0]?.yField
|
|
88759
|
+
? (chartSpec.yField ?? chartSpec?.series?.[0]?.yField)
|
|
88796
88760
|
: chartSpec.type === 'histogram'
|
|
88797
88761
|
? chartSpec.x2Field
|
|
88798
|
-
: chartSpec.xField ?? chartSpec?.series?.[0]?.xField;
|
|
88762
|
+
: (chartSpec.xField ?? chartSpec?.series?.[0]?.xField);
|
|
88799
88763
|
if (dimensionKey) {
|
|
88800
88764
|
return dimensionKey;
|
|
88801
88765
|
}
|
|
@@ -88805,10 +88769,10 @@
|
|
|
88805
88769
|
if (chartSpec) {
|
|
88806
88770
|
dimensionKey =
|
|
88807
88771
|
type === 'yField'
|
|
88808
|
-
? chartSpec.yField ?? chartSpec?.series?.[0]?.yField
|
|
88772
|
+
? (chartSpec.yField ?? chartSpec?.series?.[0]?.yField)
|
|
88809
88773
|
: chartSpec.type === 'histogram'
|
|
88810
88774
|
? chartSpec.x2Field
|
|
88811
|
-
: chartSpec.xField ?? chartSpec?.series?.[0]?.xField;
|
|
88775
|
+
: (chartSpec.xField ?? chartSpec?.series?.[0]?.xField);
|
|
88812
88776
|
if (dimensionKey) {
|
|
88813
88777
|
return dimensionKey;
|
|
88814
88778
|
}
|
|
@@ -88822,10 +88786,10 @@
|
|
|
88822
88786
|
type === 'xField'
|
|
88823
88787
|
? chartSpec.type === 'histogram'
|
|
88824
88788
|
? chartSpec.x2Field
|
|
88825
|
-
: chartSpec.xField ?? chartSpec?.series?.[0]?.xField
|
|
88789
|
+
: (chartSpec.xField ?? chartSpec?.series?.[0]?.xField)
|
|
88826
88790
|
: chartSpec.type === 'histogram'
|
|
88827
88791
|
? chartSpec.y2Field
|
|
88828
|
-
: chartSpec.yField ?? chartSpec?.series?.[0]?.yField;
|
|
88792
|
+
: (chartSpec.yField ?? chartSpec?.series?.[0]?.yField);
|
|
88829
88793
|
if (dimensionKey) {
|
|
88830
88794
|
return dimensionKey;
|
|
88831
88795
|
}
|
|
@@ -88837,8 +88801,8 @@
|
|
|
88837
88801
|
type === 'xField'
|
|
88838
88802
|
? chartSpec.type === 'histogram'
|
|
88839
88803
|
? chartSpec.x2Field
|
|
88840
|
-
: chartSpec.xField ?? chartSpec?.series?.[0]?.xField
|
|
88841
|
-
: chartSpec.yField ?? chartSpec?.series?.[0]?.yField;
|
|
88804
|
+
: (chartSpec.xField ?? chartSpec?.series?.[0]?.xField)
|
|
88805
|
+
: (chartSpec.yField ?? chartSpec?.series?.[0]?.yField);
|
|
88842
88806
|
if (dimensionKey) {
|
|
88843
88807
|
return dimensionKey;
|
|
88844
88808
|
}
|
|
@@ -93178,7 +93142,7 @@
|
|
|
93178
93142
|
}
|
|
93179
93143
|
const rowKeys = rowDimensionTree?.dimensionKeys?.count
|
|
93180
93144
|
? rowDimensionTree.dimensionKeys.valueArr()
|
|
93181
|
-
: options.rows?.reduce((keys, rowObj) => {
|
|
93145
|
+
: (options.rows?.reduce((keys, rowObj) => {
|
|
93182
93146
|
if (typeof rowObj === 'string') {
|
|
93183
93147
|
keys.push(rowObj);
|
|
93184
93148
|
}
|
|
@@ -93186,10 +93150,10 @@
|
|
|
93186
93150
|
keys.push(rowObj.dimensionKey);
|
|
93187
93151
|
}
|
|
93188
93152
|
return keys;
|
|
93189
|
-
}, []) ?? [];
|
|
93153
|
+
}, []) ?? []);
|
|
93190
93154
|
const columnKeys = columnDimensionTree?.dimensionKeys?.count
|
|
93191
93155
|
? columnDimensionTree.dimensionKeys.valueArr()
|
|
93192
|
-
: options.columns?.reduce((keys, columnObj) => {
|
|
93156
|
+
: (options.columns?.reduce((keys, columnObj) => {
|
|
93193
93157
|
if (typeof columnObj === 'string') {
|
|
93194
93158
|
keys.push(columnObj);
|
|
93195
93159
|
}
|
|
@@ -93197,7 +93161,7 @@
|
|
|
93197
93161
|
keys.push(columnObj.dimensionKey);
|
|
93198
93162
|
}
|
|
93199
93163
|
return keys;
|
|
93200
|
-
}, []) ?? [];
|
|
93164
|
+
}, []) ?? []);
|
|
93201
93165
|
const indicatorKeys = options.indicators?.reduce((keys, indicatorObj) => {
|
|
93202
93166
|
if (typeof indicatorObj === 'string') {
|
|
93203
93167
|
keys.push(indicatorObj);
|
|
@@ -93346,7 +93310,7 @@
|
|
|
93346
93310
|
}
|
|
93347
93311
|
const rowKeys = rowDimensionTree?.dimensionKeys?.count
|
|
93348
93312
|
? rowDimensionTree.dimensionKeys.valueArr()
|
|
93349
|
-
: options.rows?.reduce((keys, rowObj) => {
|
|
93313
|
+
: (options.rows?.reduce((keys, rowObj) => {
|
|
93350
93314
|
if (typeof rowObj === 'string') {
|
|
93351
93315
|
keys.push(rowObj);
|
|
93352
93316
|
}
|
|
@@ -93354,10 +93318,10 @@
|
|
|
93354
93318
|
keys.push(rowObj.dimensionKey);
|
|
93355
93319
|
}
|
|
93356
93320
|
return keys;
|
|
93357
|
-
}, []) ?? [];
|
|
93321
|
+
}, []) ?? []);
|
|
93358
93322
|
const columnKeys = columnDimensionTree?.dimensionKeys?.count
|
|
93359
93323
|
? columnDimensionTree.dimensionKeys.valueArr()
|
|
93360
|
-
: options.columns?.reduce((keys, columnObj) => {
|
|
93324
|
+
: (options.columns?.reduce((keys, columnObj) => {
|
|
93361
93325
|
if (typeof columnObj === 'string') {
|
|
93362
93326
|
keys.push(columnObj);
|
|
93363
93327
|
}
|
|
@@ -93365,7 +93329,7 @@
|
|
|
93365
93329
|
keys.push(columnObj.dimensionKey);
|
|
93366
93330
|
}
|
|
93367
93331
|
return keys;
|
|
93368
|
-
}, []) ?? [];
|
|
93332
|
+
}, []) ?? []);
|
|
93369
93333
|
const indicatorKeys = options.indicators?.reduce((keys, indicatorObj) => {
|
|
93370
93334
|
if (typeof indicatorObj === 'string') {
|
|
93371
93335
|
keys.push(indicatorObj);
|
|
@@ -93765,7 +93729,7 @@
|
|
|
93765
93729
|
type: chartSeries.direction !== 'horizontal' ? 'xField' : undefined,
|
|
93766
93730
|
range: hasLinearAxis(chartSeries, this._axes, chartSeries.direction === 'horizontal', true),
|
|
93767
93731
|
sortBy: chartSeries.direction !== 'horizontal'
|
|
93768
|
-
? chartSeries?.data?.fields?.[xField]?.domain ?? indicatorSpec?.data?.fields?.[xField]?.domain
|
|
93732
|
+
? (chartSeries?.data?.fields?.[xField]?.domain ?? indicatorSpec?.data?.fields?.[xField]?.domain)
|
|
93769
93733
|
: undefined
|
|
93770
93734
|
};
|
|
93771
93735
|
const yField = chartSeries.yField;
|
|
@@ -93777,7 +93741,7 @@
|
|
|
93777
93741
|
range: hasLinearAxis(chartSeries, this._axes, chartSeries.direction === 'horizontal', false),
|
|
93778
93742
|
sumBy: chartSeries.stack && columnKeys.concat(chartSeries?.xField),
|
|
93779
93743
|
sortBy: chartSeries.direction === 'horizontal'
|
|
93780
|
-
? chartSeries?.data?.fields?.[yField]?.domain ?? indicatorSpec?.data?.fields?.[yField]?.domain
|
|
93744
|
+
? (chartSeries?.data?.fields?.[yField]?.domain ?? indicatorSpec?.data?.fields?.[yField]?.domain)
|
|
93781
93745
|
: undefined,
|
|
93782
93746
|
extendRange: parseMarkLineGetExtendRange(indicatorSpec.markLine)
|
|
93783
93747
|
};
|
|
@@ -93836,7 +93800,7 @@
|
|
|
93836
93800
|
type: chartSeries.direction === 'horizontal' ? 'yField' : undefined,
|
|
93837
93801
|
range: hasLinearAxis(chartSeries, this._axes, chartSeries.direction === 'horizontal', false),
|
|
93838
93802
|
sortBy: chartSeries.direction === 'horizontal'
|
|
93839
|
-
? chartSeries?.data?.fields?.[yField]?.domain ?? indicatorSpec?.data?.fields?.[yField]?.domain
|
|
93803
|
+
? (chartSeries?.data?.fields?.[yField]?.domain ?? indicatorSpec?.data?.fields?.[yField]?.domain)
|
|
93840
93804
|
: undefined
|
|
93841
93805
|
};
|
|
93842
93806
|
const xField = chartSeries.xField;
|
|
@@ -93848,7 +93812,7 @@
|
|
|
93848
93812
|
range: hasLinearAxis(chartSeries, this._axes, chartSeries.direction === 'horizontal', true),
|
|
93849
93813
|
sumBy: chartSeries.stack && rowKeys.concat(chartSeries?.yField),
|
|
93850
93814
|
sortBy: chartSeries.direction !== 'horizontal'
|
|
93851
|
-
? chartSeries?.data?.fields?.[xField]?.domain ?? indicatorSpec?.data?.fields?.[xField]?.domain
|
|
93815
|
+
? (chartSeries?.data?.fields?.[xField]?.domain ?? indicatorSpec?.data?.fields?.[xField]?.domain)
|
|
93852
93816
|
: undefined,
|
|
93853
93817
|
extendRange: parseMarkLineGetExtendRange(indicatorSpec.markLine)
|
|
93854
93818
|
};
|
|
@@ -94125,18 +94089,18 @@
|
|
|
94125
94089
|
dataBatch.push({
|
|
94126
94090
|
id: dataIdStr,
|
|
94127
94091
|
values: dataIdAndField
|
|
94128
|
-
? data?.filter((item) => {
|
|
94092
|
+
? (data?.filter((item) => {
|
|
94129
94093
|
return item.hasOwnProperty(dataIdAndField);
|
|
94130
|
-
}) ?? []
|
|
94131
|
-
: data ?? [],
|
|
94094
|
+
}) ?? [])
|
|
94095
|
+
: (data ?? []),
|
|
94132
94096
|
fields: series?.data?.fields
|
|
94133
94097
|
});
|
|
94134
94098
|
if (!chartInstance.updateFullDataSync) {
|
|
94135
94099
|
chartInstance.updateDataSync(dataIdStr, dataIdAndField
|
|
94136
|
-
? data?.filter((item) => {
|
|
94100
|
+
? (data?.filter((item) => {
|
|
94137
94101
|
return item.hasOwnProperty(dataIdAndField);
|
|
94138
|
-
}) ?? []
|
|
94139
|
-
: data ?? []);
|
|
94102
|
+
}) ?? [])
|
|
94103
|
+
: (data ?? []));
|
|
94140
94104
|
}
|
|
94141
94105
|
}
|
|
94142
94106
|
chartInstance.updateFullDataSync?.(dataBatch);
|
|
@@ -94197,18 +94161,18 @@
|
|
|
94197
94161
|
dataBatch.push({
|
|
94198
94162
|
id: dataIdStr,
|
|
94199
94163
|
values: dataIdAndField
|
|
94200
|
-
? data?.filter((item) => {
|
|
94164
|
+
? (data?.filter((item) => {
|
|
94201
94165
|
return item.hasOwnProperty(dataIdAndField);
|
|
94202
|
-
}) ?? []
|
|
94203
|
-
: data ?? [],
|
|
94166
|
+
}) ?? [])
|
|
94167
|
+
: (data ?? []),
|
|
94204
94168
|
fields: series?.data?.fields
|
|
94205
94169
|
});
|
|
94206
94170
|
if (!activeChartInstance.updateFullDataSync) {
|
|
94207
94171
|
activeChartInstance.updateDataSync(dataIdStr, dataIdAndField
|
|
94208
|
-
? data?.filter((item) => {
|
|
94172
|
+
? (data?.filter((item) => {
|
|
94209
94173
|
return item.hasOwnProperty(dataIdAndField);
|
|
94210
|
-
}) ?? []
|
|
94211
|
-
: data ?? []);
|
|
94174
|
+
}) ?? [])
|
|
94175
|
+
: (data ?? []));
|
|
94212
94176
|
}
|
|
94213
94177
|
}
|
|
94214
94178
|
activeChartInstance.updateFullDataSync?.(dataBatch);
|
|
@@ -94888,7 +94852,7 @@
|
|
|
94888
94852
|
}
|
|
94889
94853
|
|
|
94890
94854
|
registerForVrender();
|
|
94891
|
-
const version = "1.22.7-alpha.
|
|
94855
|
+
const version = "1.22.7-alpha.1";
|
|
94892
94856
|
function getIcons() {
|
|
94893
94857
|
return get$2();
|
|
94894
94858
|
}
|