@visactor/vtable 0.21.4-alpha.4 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/ListTable.d.ts +2 -4
- package/cjs/ListTable.js +37 -28
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.d.ts +1 -0
- package/cjs/PivotChart.js +1 -0
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.d.ts +1 -0
- package/cjs/PivotTable.js +13 -4
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/components/menu/dom/MenuHandler.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +14 -9
- package/cjs/core/BaseTable.js +44 -33
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/row-series-number-helper.d.ts +8 -0
- package/cjs/core/row-series-number-helper.js +45 -0
- package/cjs/core/row-series-number-helper.js.map +1 -0
- package/cjs/core/style.js +2 -1
- package/cjs/core/tableHelper.js +1 -1
- package/cjs/core/tableHelper.js.map +1 -1
- package/cjs/data/CachedDataSource.d.ts +2 -2
- package/cjs/data/CachedDataSource.js +5 -5
- package/cjs/data/CachedDataSource.js.map +1 -1
- package/cjs/data/DataSource.d.ts +6 -2
- package/cjs/data/DataSource.js +113 -41
- package/cjs/data/DataSource.js.map +1 -1
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/table-group.js +2 -1
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/event/media-click.js +1 -2
- package/cjs/event/media-click.js.map +1 -1
- package/cjs/event/scroll.js +1 -0
- package/cjs/header-helper/header-helper.js.map +1 -1
- package/cjs/icons.js +14 -0
- package/cjs/icons.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/layout-helper.d.ts +1 -0
- package/cjs/layout/layout-helper.js +12 -2
- package/cjs/layout/layout-helper.js.map +1 -1
- package/cjs/layout/pivot-header-layout.d.ts +16 -5
- package/cjs/layout/pivot-header-layout.js +102 -46
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/layout/simple-header-layout.d.ts +17 -4
- package/cjs/layout/simple-header-layout.js +170 -61
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/plugins/themes.js +1 -2
- package/cjs/scenegraph/component/cell-mover.js +1 -1
- package/cjs/scenegraph/component/cell-mover.js.map +1 -1
- package/cjs/scenegraph/component/custom.js +1 -1
- package/cjs/scenegraph/component/custom.js.map +1 -1
- package/cjs/scenegraph/component/menu.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.d.ts +0 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +28 -18
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.js +3 -4
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +9 -2
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +2 -2
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js +2 -2
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-row.js +8 -2
- package/cjs/scenegraph/layout/update-row.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +1 -1
- package/cjs/scenegraph/scenegraph.js +4 -3
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/select/update-select-border.d.ts +1 -3
- package/cjs/scenegraph/select/update-select-border.js +4 -21
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -1
- package/cjs/scenegraph/utils/get-hierarchy-offset.js.map +1 -1
- package/cjs/state/cell-move/adjust-header.js +3 -4
- package/cjs/state/cell-move/adjust-header.js.map +1 -1
- package/cjs/state/cell-move/index.js +15 -10
- package/cjs/state/cell-move/index.js.map +1 -1
- package/cjs/state/hover/is-cell-hover.js.map +1 -1
- package/cjs/state/resize/update-resize-column.js.map +1 -1
- package/cjs/state/select/update-position.js +33 -6
- package/cjs/state/select/update-position.js.map +1 -1
- package/cjs/state/state.js +2 -1
- package/cjs/state/state.js.map +1 -1
- package/cjs/themes/component.js +1 -1
- package/cjs/ts-types/base-table.d.ts +15 -6
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/icon.d.ts +4 -2
- package/cjs/ts-types/icon.js +3 -2
- package/cjs/ts-types/icon.js.map +1 -1
- package/cjs/ts-types/list-table/layout-map/api.d.ts +17 -3
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
- package/cjs/ts-types/new-data-set.d.ts +1 -2
- package/cjs/ts-types/new-data-set.js.map +1 -1
- package/cjs/ts-types/pivot-table/title.d.ts +5 -5
- package/cjs/ts-types/pivot-table/title.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +30 -3
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +1042 -296
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.d.ts +2 -4
- package/es/ListTable.js +37 -28
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.d.ts +1 -0
- package/es/PivotChart.js +1 -0
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.d.ts +1 -0
- package/es/PivotTable.js +13 -4
- package/es/PivotTable.js.map +1 -1
- package/es/components/menu/dom/MenuHandler.js.map +1 -1
- package/es/core/BaseTable.d.ts +14 -9
- package/es/core/BaseTable.js +46 -34
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/row-series-number-helper.d.ts +8 -0
- package/es/core/row-series-number-helper.js +14 -0
- package/es/core/row-series-number-helper.js.map +1 -0
- package/es/core/style.js +2 -1
- package/es/core/tableHelper.js +1 -1
- package/es/core/tableHelper.js.map +1 -1
- package/es/data/CachedDataSource.d.ts +2 -2
- package/es/data/CachedDataSource.js +5 -5
- package/es/data/CachedDataSource.js.map +1 -1
- package/es/data/DataSource.d.ts +6 -2
- package/es/data/DataSource.js +113 -41
- package/es/data/DataSource.js.map +1 -1
- package/es/event/event.js.map +1 -1
- package/es/event/listener/table-group.js +3 -2
- package/es/event/listener/table-group.js.map +1 -1
- package/es/event/media-click.js +1 -2
- package/es/event/media-click.js.map +1 -1
- package/es/event/scroll.js +2 -1
- package/es/header-helper/header-helper.js.map +1 -1
- package/es/icons.js +14 -0
- package/es/icons.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/layout-helper.d.ts +1 -0
- package/es/layout/layout-helper.js +10 -0
- package/es/layout/layout-helper.js.map +1 -1
- package/es/layout/pivot-header-layout.d.ts +16 -5
- package/es/layout/pivot-header-layout.js +102 -46
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/layout/simple-header-layout.d.ts +17 -4
- package/es/layout/simple-header-layout.js +170 -61
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/plugins/themes.js +1 -2
- package/es/scenegraph/component/cell-mover.js +1 -1
- package/es/scenegraph/component/cell-mover.js.map +1 -1
- package/es/scenegraph/component/custom.js +1 -1
- package/es/scenegraph/component/custom.js.map +1 -1
- package/es/scenegraph/component/menu.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.d.ts +0 -1
- package/es/scenegraph/group-creater/cell-helper.js +26 -14
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.js +5 -6
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +6 -2
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +3 -3
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.js +3 -3
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/layout/update-row.js +7 -2
- package/es/scenegraph/layout/update-row.js.map +1 -1
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +1 -1
- package/es/scenegraph/scenegraph.js +4 -3
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/select/update-select-border.d.ts +1 -3
- package/es/scenegraph/select/update-select-border.js +2 -18
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/scenegraph/utils/get-cell-merge.js.map +1 -1
- package/es/scenegraph/utils/get-hierarchy-offset.js.map +1 -1
- package/es/state/cell-move/adjust-header.js +3 -4
- package/es/state/cell-move/adjust-header.js.map +1 -1
- package/es/state/cell-move/index.js +14 -10
- package/es/state/cell-move/index.js.map +1 -1
- package/es/state/hover/is-cell-hover.js.map +1 -1
- package/es/state/resize/update-resize-column.js.map +1 -1
- package/es/state/select/update-position.js +33 -6
- package/es/state/select/update-position.js.map +1 -1
- package/es/state/state.js +2 -1
- package/es/state/state.js.map +1 -1
- package/es/themes/component.js +1 -1
- package/es/ts-types/base-table.d.ts +15 -6
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/icon.d.ts +4 -2
- package/es/ts-types/icon.js +3 -2
- package/es/ts-types/icon.js.map +1 -1
- package/es/ts-types/list-table/layout-map/api.d.ts +17 -3
- package/es/ts-types/list-table/layout-map/api.js.map +1 -1
- package/es/ts-types/new-data-set.d.ts +1 -2
- package/es/ts-types/new-data-set.js.map +1 -1
- package/es/ts-types/pivot-table/title.d.ts +5 -5
- package/es/ts-types/pivot-table/title.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +30 -3
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +5 -5
|
@@ -32,6 +32,7 @@ export class PivotHeaderLayoutMap {
|
|
|
32
32
|
this._indicatorShowType = "column", this.rowDimensionKeys = [], this.colDimensionKeys = [],
|
|
33
33
|
this.indicatorKeys = [], this.indicatorDimensionKey = IndicatorDimensionKeyPlaceholder,
|
|
34
34
|
this._rowHeaderExtensionTree = {}, this._extensionRowDimensionKeys = [], this.fullRowDimensionKeys = [],
|
|
35
|
+
this.leftRowSeriesNumberColumnCount = 0, this.rightRowSeriesNumberColumnCount = 0,
|
|
35
36
|
this.sharedVar = {
|
|
36
37
|
seqId: 0
|
|
37
38
|
}, this._table = table, "tree" === table.options.rowHierarchyType && (this.extensionRows = table.options.extensionRows),
|
|
@@ -103,10 +104,40 @@ export class PivotHeaderLayoutMap {
|
|
|
103
104
|
this._chartPaddingOuter = null !== (_g = isArray(bandAxisConfig.paddingOuter) ? bandAxisConfig.paddingOuter[0] : bandAxisConfig.paddingOuter) && void 0 !== _g ? _g : 0),
|
|
104
105
|
this._chartItemSpanSize > 0 || (null === (_h = indicatorObject.chartSpec.series) || void 0 === _h || _h.find((seriesObject => (seriesObject.barWidth && "number" == typeof seriesObject.barWidth && (this._chartItemSpanSize = seriesObject.barWidth),
|
|
105
106
|
this._chartItemSpanSize > 0))), !1);
|
|
106
|
-
}))), this.setColumnWidths();
|
|
107
|
+
}))), this.handleRowSeriesNumber(table.internalProps.rowSeriesNumber), this.setColumnWidths();
|
|
108
|
+
}
|
|
109
|
+
handleRowSeriesNumber(rowSeriesNumber) {
|
|
110
|
+
var _a;
|
|
111
|
+
rowSeriesNumber && (Array.isArray(rowSeriesNumber) ? this.rowSeriesNumberColumn = rowSeriesNumber.map((seriesNumber => {
|
|
112
|
+
var _a;
|
|
113
|
+
return {
|
|
114
|
+
id: "",
|
|
115
|
+
title: seriesNumber.title,
|
|
116
|
+
define: seriesNumber,
|
|
117
|
+
cellType: null !== (_a = seriesNumber.cellType) && void 0 !== _a ? _a : "text",
|
|
118
|
+
width: seriesNumber.width,
|
|
119
|
+
style: seriesNumber.style,
|
|
120
|
+
format: seriesNumber.format,
|
|
121
|
+
field: seriesNumber.field,
|
|
122
|
+
icon: seriesNumber.icon
|
|
123
|
+
};
|
|
124
|
+
})) : this.rowSeriesNumberColumn = [ {
|
|
125
|
+
id: "",
|
|
126
|
+
title: rowSeriesNumber.title,
|
|
127
|
+
define: rowSeriesNumber,
|
|
128
|
+
cellType: null !== (_a = rowSeriesNumber.cellType) && void 0 !== _a ? _a : "text",
|
|
129
|
+
style: rowSeriesNumber.style,
|
|
130
|
+
width: rowSeriesNumber.width,
|
|
131
|
+
format: rowSeriesNumber.format,
|
|
132
|
+
field: "",
|
|
133
|
+
icon: rowSeriesNumber.icon,
|
|
134
|
+
isChildNode: !1
|
|
135
|
+
} ], this.leftRowSeriesNumberColumn = this.rowSeriesNumberColumn.filter((rowSeriesNumberItem => !0)),
|
|
136
|
+
this.rightRowSeriesNumberColumn = this.rowSeriesNumberColumn.filter((rowSeriesNumberItem => !1)),
|
|
137
|
+
this.leftRowSeriesNumberColumnCount = this.leftRowSeriesNumberColumn.length, this.rightRowSeriesNumberColumnCount = this.rightRowSeriesNumberColumn.length);
|
|
107
138
|
}
|
|
108
139
|
_generateColHeaderIds() {
|
|
109
|
-
var _a, _b;
|
|
140
|
+
var _a, _b, _c, _d, _e, _f;
|
|
110
141
|
if ((null === (_a = this.columnDimensionTree.tree.children) || void 0 === _a ? void 0 : _a.length) >= 1 && (this.columnHeaderObjs = this._addHeaders(this._columnHeaderCellIds, 0, this.columnDimensionTree.tree.children, [])),
|
|
111
142
|
this.columnHeaderTitle) {
|
|
112
143
|
this.sharedVar.seqId = Math.max(this.sharedVar.seqId, this._headerObjects.length);
|
|
@@ -116,19 +147,19 @@ export class PivotHeaderLayoutMap {
|
|
|
116
147
|
id: id,
|
|
117
148
|
title: "string" == typeof this.columnHeaderTitle.title ? this.columnHeaderTitle.title : this.columnsDefine.reduce(((title, value) => "string" == typeof value ? title : title + (title ? `/${value.title}` : `${value.title}`)), ""),
|
|
118
149
|
field: void 0,
|
|
119
|
-
headerType: null !== (_b = this.columnHeaderTitle.headerType) && void 0 !==
|
|
120
|
-
style: this.columnHeaderTitle.headerStyle,
|
|
150
|
+
headerType: null !== (_c = null === (_b = this.columnHeaderTitle) || void 0 === _b ? void 0 : _b.headerType) && void 0 !== _c ? _c : "text",
|
|
151
|
+
style: null === (_d = this.columnHeaderTitle) || void 0 === _d ? void 0 : _d.headerStyle,
|
|
121
152
|
define: {
|
|
122
153
|
id: id,
|
|
123
|
-
disableHeaderHover: !!this.columnHeaderTitle.disableHeaderHover,
|
|
124
|
-
disableHeaderSelect: !!this.columnHeaderTitle.disableHeaderSelect
|
|
154
|
+
disableHeaderHover: !!(null === (_e = this.columnHeaderTitle) || void 0 === _e ? void 0 : _e.disableHeaderHover),
|
|
155
|
+
disableHeaderSelect: !!(null === (_f = this.columnHeaderTitle) || void 0 === _f ? void 0 : _f.disableHeaderSelect)
|
|
125
156
|
}
|
|
126
157
|
};
|
|
127
158
|
this.columnHeaderObjs.push(cell), this._headerObjects[id] = cell;
|
|
128
159
|
}
|
|
129
160
|
}
|
|
130
161
|
_generateRowHeaderIds() {
|
|
131
|
-
var _a, _b, _c, _d;
|
|
162
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
132
163
|
if ((null === (_a = this.rowDimensionTree.tree.children) || void 0 === _a ? void 0 : _a.length) >= 1 && (this.rowHeaderObjs = "tree" === this.rowHierarchyType ? this._addHeadersForTreeMode(this._rowHeaderCellIds_FULL, 0, this.rowDimensionTree.tree.children, [], this.rowDimensionTree.totalLevel, !0, this.rowsDefine) : this._addHeaders(this._rowHeaderCellIds_FULL, 0, this.rowDimensionTree.tree.children, [])),
|
|
133
164
|
this.rowHeaderTitle) {
|
|
134
165
|
this.sharedVar.seqId = Math.max(this.sharedVar.seqId, this._headerObjects.length);
|
|
@@ -138,12 +169,12 @@ export class PivotHeaderLayoutMap {
|
|
|
138
169
|
id: id,
|
|
139
170
|
title: "string" == typeof this.rowHeaderTitle.title ? this.rowHeaderTitle.title : this.rowsDefine.reduce(((title, value) => "string" == typeof value ? title : title + (title ? `/${value.title}` : `${value.title}`)), ""),
|
|
140
171
|
field: void 0,
|
|
141
|
-
headerType: null !== (_d = this.rowHeaderTitle.headerType) && void 0 !==
|
|
142
|
-
style: this.rowHeaderTitle.headerStyle,
|
|
172
|
+
headerType: null !== (_e = null === (_d = this.rowHeaderTitle) || void 0 === _d ? void 0 : _d.headerType) && void 0 !== _e ? _e : "text",
|
|
173
|
+
style: null === (_f = this.rowHeaderTitle) || void 0 === _f ? void 0 : _f.headerStyle,
|
|
143
174
|
define: {
|
|
144
175
|
id: id,
|
|
145
|
-
disableHeaderHover: !!this.
|
|
146
|
-
disableHeaderSelect: !!this.
|
|
176
|
+
disableHeaderHover: !!(null === (_g = this.rowHeaderTitle) || void 0 === _g ? void 0 : _g.disableHeaderHover),
|
|
177
|
+
disableHeaderSelect: !!(null === (_h = this.rowHeaderTitle) || void 0 === _h ? void 0 : _h.disableHeaderSelect)
|
|
147
178
|
}
|
|
148
179
|
};
|
|
149
180
|
this.rowHeaderObjs.push(cell), this._headerObjects[id] = cell;
|
|
@@ -256,12 +287,13 @@ export class PivotHeaderLayoutMap {
|
|
|
256
287
|
setColumnWidths() {
|
|
257
288
|
var _a, _b, _c;
|
|
258
289
|
const returnWidths = new Array(this.colCount).fill(void 0);
|
|
259
|
-
if (this.
|
|
290
|
+
if (this.leftRowSeriesNumberColumnCount && (returnWidths[0] = this.leftRowSeriesNumberColumn[0]),
|
|
291
|
+
this.showHeader && this.showRowHeader) if (this.rowHeaderTitle && (returnWidths[0 + this.leftRowSeriesNumberColumnCount] = {}),
|
|
260
292
|
"tree" === this.rowHierarchyType) {
|
|
261
293
|
const mainDimensionFirstRowKey = this.rowDimensionKeys[0];
|
|
262
294
|
if (mainDimensionFirstRowKey) {
|
|
263
295
|
const dimension = null === (_a = this.rowsDefine) || void 0 === _a ? void 0 : _a.find((dimension => "string" != typeof dimension && dimension.dimensionKey === mainDimensionFirstRowKey));
|
|
264
|
-
dimension && (returnWidths[0 + (this.rowHeaderTitle ? 1 : 0)] = {
|
|
296
|
+
dimension && (returnWidths[0 + (this.rowHeaderTitle ? 1 : 0) + this.leftRowSeriesNumberColumnCount] = {
|
|
265
297
|
width: dimension.width,
|
|
266
298
|
minWidth: dimension.minWidth,
|
|
267
299
|
maxWidth: dimension.maxWidth
|
|
@@ -272,7 +304,7 @@ export class PivotHeaderLayoutMap {
|
|
|
272
304
|
const curDimensionFirstRowKey = extensionRowDimensionKeys[0];
|
|
273
305
|
if (curDimensionFirstRowKey) {
|
|
274
306
|
const dimension = null === (_a = this.extensionRows[index].rows) || void 0 === _a ? void 0 : _a.find((dimension => "string" != typeof dimension && dimension.dimensionKey === curDimensionFirstRowKey));
|
|
275
|
-
dimension && (returnWidths[index + 1 + (this.rowHeaderTitle ? 1 : 0)] = {
|
|
307
|
+
dimension && (returnWidths[index + 1 + (this.rowHeaderTitle ? 1 : 0) + this.leftRowSeriesNumberColumnCount] = {
|
|
276
308
|
width: dimension.width,
|
|
277
309
|
minWidth: dimension.minWidth,
|
|
278
310
|
maxWidth: dimension.maxWidth
|
|
@@ -282,7 +314,7 @@ export class PivotHeaderLayoutMap {
|
|
|
282
314
|
} else this.rowDimensionKeys.forEach(((objKey, index) => {
|
|
283
315
|
var _a;
|
|
284
316
|
const dimension = null === (_a = this.rowsDefine) || void 0 === _a ? void 0 : _a.find((dimension => "string" != typeof dimension && dimension.dimensionKey === objKey));
|
|
285
|
-
dimension && (returnWidths[index + (this.rowHeaderTitle ? 1 : 0)] = {
|
|
317
|
+
dimension && (returnWidths[index + (this.rowHeaderTitle ? 1 : 0) + this.leftRowSeriesNumberColumnCount] = {
|
|
286
318
|
width: dimension.width,
|
|
287
319
|
minWidth: dimension.minWidth,
|
|
288
320
|
maxWidth: dimension.maxWidth
|
|
@@ -350,19 +382,19 @@ export class PivotHeaderLayoutMap {
|
|
|
350
382
|
return this.isCornerHeader(col, row) ? "cornerHeader" : this.isColumnHeader(col, row) ? "columnHeader" : this.isRowHeader(col, row) ? "rowHeader" : "body";
|
|
351
383
|
}
|
|
352
384
|
isHeader(col, row) {
|
|
353
|
-
return col >=
|
|
385
|
+
return col >= this.leftRowSeriesNumberColumnCount && col < this.rowHeaderLevelCount + this.leftRowSeriesNumberColumnCount || (row >= 0 && row < this.columnHeaderLevelCount || (col >= this.colCount - this.rightHeaderColCount || row >= this.rowCount - this.bottomHeaderRowCount));
|
|
354
386
|
}
|
|
355
387
|
isCornerHeader(col, row) {
|
|
356
|
-
return col >= 0 && col < this.rowHeaderLevelCount && row >= 0 && row < this.columnHeaderLevelCount;
|
|
388
|
+
return col >= 0 && col < this.rowHeaderLevelCount + this.leftRowSeriesNumberColumnCount && row >= 0 && row < this.columnHeaderLevelCount;
|
|
357
389
|
}
|
|
358
390
|
isColumnHeader(col, row) {
|
|
359
391
|
return col >= this.rowHeaderLevelCount && row >= 0 && row < this.columnHeaderLevelCount;
|
|
360
392
|
}
|
|
361
393
|
isRowHeader(col, row) {
|
|
362
|
-
return col >=
|
|
394
|
+
return col >= this.leftRowSeriesNumberColumnCount && col < this.rowHeaderLevelCount + this.leftRowSeriesNumberColumnCount && row >= this.columnHeaderLevelCount;
|
|
363
395
|
}
|
|
364
396
|
isFrozen(col, row) {
|
|
365
|
-
return this.isFrozenColumn(col) || this.isRightFrozenColumn(col) || this.isBottomFrozenRow(row) || this.isFrozenRow(row);
|
|
397
|
+
return this.isFrozenColumn(col) || this.isRightFrozenColumn(col) || this.isBottomFrozenRow(row) || this.isFrozenRow(row) || this.isSeriesNumberInBody(col, row) || this.isSeriesNumberInHeader(col, row);
|
|
366
398
|
}
|
|
367
399
|
isFrozenColumn(col, row) {
|
|
368
400
|
if (isValid(row)) {
|
|
@@ -492,7 +524,7 @@ export class PivotHeaderLayoutMap {
|
|
|
492
524
|
this._rowHeaderLevelCount = count;
|
|
493
525
|
}
|
|
494
526
|
get colCount() {
|
|
495
|
-
return this.columnDimensionTree.tree.size + this.rowHeaderLevelCount + this.rightHeaderColCount;
|
|
527
|
+
return this.columnDimensionTree.tree.size + this.rowHeaderLevelCount + this.rightHeaderColCount + this.leftRowSeriesNumberColumnCount;
|
|
496
528
|
}
|
|
497
529
|
get rowCount() {
|
|
498
530
|
var _a, _b, _c, _d;
|
|
@@ -530,15 +562,17 @@ export class PivotHeaderLayoutMap {
|
|
|
530
562
|
getCellId(col, row) {
|
|
531
563
|
var _a, _b;
|
|
532
564
|
if (row >= 0 && col >= 0) {
|
|
533
|
-
if (this.
|
|
534
|
-
if (this.
|
|
535
|
-
if (this.
|
|
565
|
+
if (this.isSeriesNumber(col, row)) return "";
|
|
566
|
+
if (this.isCornerHeader(col, row)) return this._cornerHeaderCellIds[row][col - this.leftRowSeriesNumberColumnCount];
|
|
567
|
+
if (this.isColumnHeader(col, row)) return this._columnHeaderCellIds[row][col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
568
|
+
if (this.isRowHeader(col, row)) return null === (_a = this._rowHeaderCellIds[row - this.columnHeaderLevelCount]) || void 0 === _a ? void 0 : _a[col - this.leftRowSeriesNumberColumnCount];
|
|
536
569
|
if (this.isRightFrozenColumn(col, row)) return this._rowHeaderCellIds[row - this.columnHeaderLevelCount][this.rowHeaderLevelCount - 1];
|
|
537
|
-
if (this.isBottomFrozenRow(col, row)) return null === (_b = this._columnHeaderCellIds[this.columnHeaderLevelCount - 1]) || void 0 === _b ? void 0 : _b[col - this.rowHeaderLevelCount];
|
|
570
|
+
if (this.isBottomFrozenRow(col, row)) return null === (_b = this._columnHeaderCellIds[this.columnHeaderLevelCount - 1]) || void 0 === _b ? void 0 : _b[col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
538
571
|
}
|
|
539
572
|
}
|
|
540
573
|
getHeader(col, row) {
|
|
541
574
|
var _a;
|
|
575
|
+
if (this.isSeriesNumberInHeader(col, row)) return this.getSeriesNumberHeader(col, row);
|
|
542
576
|
const id = this.getCellId(col, row);
|
|
543
577
|
return null !== (_a = this._headerObjectMap[id]) && void 0 !== _a ? _a : {
|
|
544
578
|
id: void 0,
|
|
@@ -581,6 +615,7 @@ export class PivotHeaderLayoutMap {
|
|
|
581
615
|
}
|
|
582
616
|
getBody(_col, _row) {
|
|
583
617
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
618
|
+
if (this.isSeriesNumber(_col, _row)) return this.getSeriesNumberBody(_col, _row);
|
|
584
619
|
const paths = this.getCellHeaderPaths(_col, _row);
|
|
585
620
|
if (this.indicatorsAsCol) {
|
|
586
621
|
const indicatorKey = null === (_b = null === (_a = paths.colHeaderPaths) || void 0 === _a ? void 0 : _a.find((colPath => colPath.indicatorKey))) || void 0 === _b ? void 0 : _b.indicatorKey;
|
|
@@ -656,7 +691,7 @@ export class PivotHeaderLayoutMap {
|
|
|
656
691
|
for (let c = col - 1; c >= 0 && id === this.getCellId(c, row); c--) result.start.col = c;
|
|
657
692
|
for (let c = col + 1; c < (null !== (_a = this.colCount) && void 0 !== _a ? _a : 0) && id === this.getCellId(c, row); c++) result.end.col = c;
|
|
658
693
|
for (let r = row - 1; r >= 0 && id === this.getCellId(col, r); r--) result.start.row = r;
|
|
659
|
-
for (let r = row + 1; r < (null !== (_b = this.rowCount) && void 0 !== _b ? _b : 0) && id
|
|
694
|
+
for (let r = row + 1; r < (null !== (_b = this.rowCount) && void 0 !== _b ? _b : 0) && !(id !== this.getCellId(col, r) || this.isSeriesNumberInHeader(col, row) && r >= this.columnHeaderLevelCount); r++) result.end.row = r;
|
|
660
695
|
}
|
|
661
696
|
return (result.end.col - result.start.col > 100 || result.end.row - result.start.row > 100) && this._largeCellRangeCache.push(result),
|
|
662
697
|
result;
|
|
@@ -675,7 +710,7 @@ export class PivotHeaderLayoutMap {
|
|
|
675
710
|
return this._table.isPivotChart() ? this.rightFrozenColCount : 0;
|
|
676
711
|
}
|
|
677
712
|
getBodyIndexByCol(col) {
|
|
678
|
-
return col < this.rowHeaderLevelCount || col >= this.colCount - this.rightHeaderColCount ? -1 : col - this.rowHeaderLevelCount;
|
|
713
|
+
return col < this.rowHeaderLevelCount + this.leftRowSeriesNumberColumnCount || col >= this.colCount - this.rightHeaderColCount ? -1 : col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount;
|
|
679
714
|
}
|
|
680
715
|
getRecordStartRowByRecordIndex(index) {
|
|
681
716
|
return this.columnHeaderLevelCount + index;
|
|
@@ -709,7 +744,7 @@ export class PivotHeaderLayoutMap {
|
|
|
709
744
|
rowPath = rowPath.concat(findedRowPath), findTree = this._rowHeaderExtensionTree[row_pathIds[level]],
|
|
710
745
|
level++;
|
|
711
746
|
}
|
|
712
|
-
} else rowPath = this.rowDimensionTree.getTreePath(recordRow, this.showHeader && this.showRowHeader ? col - (this.rowHeaderTitle ? 1 : 0) : this.rowDimensionTree.totalLevel);
|
|
747
|
+
} else rowPath = this.rowDimensionTree.getTreePath(recordRow, this.showHeader && this.showRowHeader ? col - (this.rowHeaderTitle ? 1 : 0) - this.leftRowSeriesNumberColumnCount : this.rowDimensionTree.totalLevel);
|
|
713
748
|
const p = {
|
|
714
749
|
colHeaderPaths: colPath,
|
|
715
750
|
rowHeaderPaths: rowPath,
|
|
@@ -774,7 +809,7 @@ export class PivotHeaderLayoutMap {
|
|
|
774
809
|
return this.isColumnIndicatorHeader(col, row) || this.isRowIndicatorHeader(col, row);
|
|
775
810
|
}
|
|
776
811
|
toggleHierarchyState(col, row) {
|
|
777
|
-
var _a, _b;
|
|
812
|
+
var _a, _b, _c, _d, _e, _f;
|
|
778
813
|
const oldRowHeaderCellIds = this._rowHeaderCellIds_FULL.slice(0), oldRowHeaderCellPositons = oldRowHeaderCellIds.map(((id, row) => ({
|
|
779
814
|
col: col,
|
|
780
815
|
row: row + this.columnHeaderLevelCount
|
|
@@ -789,22 +824,22 @@ export class PivotHeaderLayoutMap {
|
|
|
789
824
|
id: id,
|
|
790
825
|
title: "string" == typeof this.rowHeaderTitle.title ? this.rowHeaderTitle.title : this.rowsDefine.reduce(((title, value) => "string" == typeof value ? title : title + (title ? `/${value.title}` : `${value.title}`)), ""),
|
|
791
826
|
field: void 0,
|
|
792
|
-
headerType: null !== (_a = this.rowHeaderTitle.headerType) && void 0 !==
|
|
793
|
-
style: this.rowHeaderTitle.headerStyle,
|
|
827
|
+
headerType: null !== (_b = null === (_a = this.rowHeaderTitle) || void 0 === _a ? void 0 : _a.headerType) && void 0 !== _b ? _b : "text",
|
|
828
|
+
style: null === (_c = this.rowHeaderTitle) || void 0 === _c ? void 0 : _c.headerStyle,
|
|
794
829
|
define: {
|
|
795
830
|
field: "",
|
|
796
831
|
headerType: "text",
|
|
797
832
|
cellType: "text",
|
|
798
|
-
disableHeaderHover: !!this.
|
|
799
|
-
disableHeaderSelect: !!this.
|
|
833
|
+
disableHeaderHover: !!(null === (_d = this.rowHeaderTitle) || void 0 === _d ? void 0 : _d.disableHeaderHover),
|
|
834
|
+
disableHeaderSelect: !!(null === (_e = this.rowHeaderTitle) || void 0 === _e ? void 0 : _e.disableHeaderSelect)
|
|
800
835
|
}
|
|
801
836
|
};
|
|
802
837
|
this.rowHeaderObjs.push(cell), this._headerObjects[id] = cell;
|
|
803
838
|
}
|
|
804
|
-
this._rowHeaderCellIds_FULL = transpose(this._rowHeaderCellIds_FULL), "tree" === this.rowHierarchyType && (null === (
|
|
839
|
+
this._rowHeaderCellIds_FULL = transpose(this._rowHeaderCellIds_FULL), "tree" === this.rowHierarchyType && (null === (_f = this.extensionRows) || void 0 === _f ? void 0 : _f.length) >= 1 && this.generateExtensionRowTree(),
|
|
805
840
|
this.colIndex = 0, this._headerObjectMap = this._headerObjects.reduce(((o, e) => (o[e.id] = e,
|
|
806
841
|
o)), {}), this._CellHeaderPathMap = new Map, this._largeCellRangeCache.length = 0;
|
|
807
|
-
const diffCell = diffCellAddress(col, row, oldRowHeaderCellIds.map((oldCellId => oldCellId[col])), this._rowHeaderCellIds_FULL.map((newCellId => newCellId[col])), oldRowHeaderCellPositons, this);
|
|
842
|
+
const diffCell = diffCellAddress(col, row, oldRowHeaderCellIds.map((oldCellId => oldCellId[col - this.leftRowSeriesNumberColumnCount])), this._rowHeaderCellIds_FULL.map((newCellId => newCellId[col - this.leftRowSeriesNumberColumnCount])), oldRowHeaderCellPositons, this);
|
|
808
843
|
return this._rowHeaderCellIds = this._rowHeaderCellIds_FULL.slice(), diffCell;
|
|
809
844
|
}
|
|
810
845
|
isHeaderForColWidth(col, row) {
|
|
@@ -824,13 +859,13 @@ export class PivotHeaderLayoutMap {
|
|
|
824
859
|
let col = 0;
|
|
825
860
|
return "grid" === this.rowHierarchyType && (col = this.rowDimensionKeys.indexOf(highlightDimension.dimensionKey)),
|
|
826
861
|
-1 === col ? void 0 : {
|
|
827
|
-
col: this.rowHeaderTitle ? col + 1 : col,
|
|
862
|
+
col: (this.rowHeaderTitle ? col + 1 : col) + this.leftRowSeriesNumberColumnCount,
|
|
828
863
|
row: 0
|
|
829
864
|
};
|
|
830
865
|
}
|
|
831
866
|
const row = this.colDimensionKeys.indexOf(highlightDimension.dimensionKey);
|
|
832
867
|
return -1 === row ? void 0 : {
|
|
833
|
-
col: 0,
|
|
868
|
+
col: 0 + this.leftRowSeriesNumberColumnCount,
|
|
834
869
|
row: this.columnHeaderTitle ? row + 1 : row
|
|
835
870
|
};
|
|
836
871
|
}
|
|
@@ -854,14 +889,14 @@ export class PivotHeaderLayoutMap {
|
|
|
854
889
|
if (rowDimension) {
|
|
855
890
|
row = this.columnHeaderLevelCount;
|
|
856
891
|
const {startInTotal: startInTotal, level: level} = rowDimension;
|
|
857
|
-
return row += startInTotal, col = "grid" === this.rowHierarchyType ? this.rowHeaderTitle ? level + 1 : level : 0,
|
|
892
|
+
return row += startInTotal, col = "grid" === this.rowHierarchyType ? (this.rowHeaderTitle ? level + 1 : level) + this.leftRowSeriesNumberColumnCount : 0 + this.leftRowSeriesNumberColumnCount,
|
|
858
893
|
{
|
|
859
894
|
col: col,
|
|
860
895
|
row: row
|
|
861
896
|
};
|
|
862
897
|
}
|
|
863
898
|
if (colDimension) {
|
|
864
|
-
col = this.rowHeaderLevelCount;
|
|
899
|
+
col = this.rowHeaderLevelCount + this.leftRowSeriesNumberColumnCount;
|
|
865
900
|
const {startInTotal: startInTotal, level: level} = colDimension;
|
|
866
901
|
return col += startInTotal, row = this.columnHeaderTitle ? level + 1 : level, {
|
|
867
902
|
col: col,
|
|
@@ -887,7 +922,7 @@ export class PivotHeaderLayoutMap {
|
|
|
887
922
|
indicatorKey: path.indicatorKey
|
|
888
923
|
});
|
|
889
924
|
})) : this.isCornerHeader(col, row) && ("row" === (null === (_a = null == this ? void 0 : this.cornerSetting) || void 0 === _a ? void 0 : _a.titleOnDimension) ? pivotInfo.push({
|
|
890
|
-
dimensionKey: this.rowDimensionKeys[this.rowHeaderTitle ? col - 1 : col],
|
|
925
|
+
dimensionKey: this.rowDimensionKeys[(this.rowHeaderTitle ? col - 1 : col) - this.leftRowSeriesNumberColumnCount],
|
|
891
926
|
isPivotCorner: !0
|
|
892
927
|
}) : pivotInfo.push({
|
|
893
928
|
dimensionKey: this.colDimensionKeys[this.columnHeaderTitle ? row - 1 : row],
|
|
@@ -910,7 +945,10 @@ export class PivotHeaderLayoutMap {
|
|
|
910
945
|
};
|
|
911
946
|
}
|
|
912
947
|
canMoveHeaderPosition(source, target) {
|
|
948
|
+
if (this.isSeriesNumberInHeader(target.col, target.row) || this.isSeriesNumberInHeader(source.col, source.row)) return !1;
|
|
913
949
|
if (source.col < 0 || source.row < 0 || target.col < 0 || target.row < 0) return !1;
|
|
950
|
+
this.isSeriesNumberInBody(target.col, target.row) && this.isSeriesNumberInBody(source.col, source.row) && (source.col = source.col + this.leftRowSeriesNumberColumnCount + this.rowHeaderLevelCount - 1,
|
|
951
|
+
target.col = target.col + this.leftRowSeriesNumberColumnCount + this.rowHeaderLevelCount - 1);
|
|
914
952
|
const sourceCellRange = this.getCellRange(source.col, source.row);
|
|
915
953
|
if (this.isColumnHeader(source.col, source.row)) {
|
|
916
954
|
return this.getParentCellId(source.col, sourceCellRange.start.row) === this.getParentCellId(target.col, sourceCellRange.start.row);
|
|
@@ -940,12 +978,13 @@ export class PivotHeaderLayoutMap {
|
|
|
940
978
|
if (targetIndex = target.col >= source.col ? targetCellRange.end.col - sourceSize + 1 : targetCellRange.start.col,
|
|
941
979
|
targetIndex === sourceCellRange.start.col) return null;
|
|
942
980
|
for (let row = 0; row < this._columnHeaderCellIds.length; row++) {
|
|
943
|
-
const sourceIds = this._columnHeaderCellIds[row].splice(sourceCellRange.start.col - this.rowHeaderLevelCount, sourceSize);
|
|
944
|
-
sourceIds.unshift(targetIndex - this.rowHeaderLevelCount
|
|
981
|
+
const sourceIds = this._columnHeaderCellIds[row].splice(sourceCellRange.start.col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount, sourceSize);
|
|
982
|
+
sourceIds.unshift(targetIndex - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount, 0),
|
|
983
|
+
Array.prototype.splice.apply(this._columnHeaderCellIds[row], sourceIds);
|
|
945
984
|
}
|
|
946
|
-
const sourceColumns = this._columnWidths.splice(sourceCellRange.start.col, sourceSize);
|
|
947
|
-
return sourceColumns.unshift(targetIndex
|
|
948
|
-
this.columnDimensionTree.movePosition(this.getCellHeaderPathsWidthTreeNode(source.col, source.row).colHeaderPaths.length - 1, sourceCellRange.start.col - this.rowHeaderLevelCount, targetCellRange.start.col - this.rowHeaderLevelCount),
|
|
985
|
+
const sourceColumns = this._columnWidths.splice(sourceCellRange.start.col - this.leftRowSeriesNumberColumnCount, sourceSize);
|
|
986
|
+
return sourceColumns.unshift(targetIndex - this.leftRowSeriesNumberColumnCount, 0),
|
|
987
|
+
Array.prototype.splice.apply(this._columnWidths, sourceColumns), this.columnDimensionTree.movePosition(this.getCellHeaderPathsWidthTreeNode(source.col, source.row).colHeaderPaths.length - 1, sourceCellRange.start.col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount, targetCellRange.start.col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount),
|
|
949
988
|
this.columnDimensionTree.reset(this.columnDimensionTree.tree.children, !0), this._CellHeaderPathMap = new Map,
|
|
950
989
|
this._largeCellRangeCache.length = 0, {
|
|
951
990
|
sourceIndex: sourceCellRange.start.col,
|
|
@@ -1021,7 +1060,7 @@ export class PivotHeaderLayoutMap {
|
|
|
1021
1060
|
for (let j = 0; j < rowArr.length; j++) {
|
|
1022
1061
|
const dimension = rowArr[j];
|
|
1023
1062
|
if (!isValid(rowDimension.indicatorKey) && dimension.dimensionKey === rowDimension.dimensionKey && dimension.value === rowDimension.value || isValid(rowDimension.indicatorKey) && dimension.indicatorKey === rowDimension.indicatorKey && (!rowDimension.value || dimension.value === rowDimension.value)) {
|
|
1024
|
-
rowArr = dimension.children,
|
|
1063
|
+
rowArr = dimension.children, needLowestLevel && !rowArr ? rowDimensionFinded = dimension : needLowestLevel || (rowDimensionFinded = dimension);
|
|
1025
1064
|
break;
|
|
1026
1065
|
}
|
|
1027
1066
|
}
|
|
@@ -1030,7 +1069,7 @@ export class PivotHeaderLayoutMap {
|
|
|
1030
1069
|
if (rowDimensionFinded || forceBody) {
|
|
1031
1070
|
row = this.columnHeaderLevelCount;
|
|
1032
1071
|
const {startInTotal: startInTotal, level: level} = null !== (_a = rowDimensionFinded) && void 0 !== _a ? _a : defaultDimension;
|
|
1033
|
-
row += null != startInTotal ? startInTotal : 0, defaultCol = "grid" === this.rowHierarchyType ? this.rowHeaderTitle ? level + 1 : level : 0;
|
|
1072
|
+
row += null != startInTotal ? startInTotal : 0, defaultCol = "grid" === this.rowHierarchyType ? (this.rowHeaderTitle ? level + 1 : level) + this.leftRowSeriesNumberColumnCount : 0;
|
|
1034
1073
|
}
|
|
1035
1074
|
if (colDimensionFinded || forceBody) {
|
|
1036
1075
|
col = this.rowHeaderLevelCount;
|
|
@@ -1322,6 +1361,23 @@ export class PivotHeaderLayoutMap {
|
|
|
1322
1361
|
this._rowHeaderCellIds_FULL = transpose(this._rowHeaderCellIds_FULL), this._headerObjectMap = this._headerObjects.reduce(((o, e) => (o[e.id] = e,
|
|
1323
1362
|
o)), {}), this.setPagination(this.pagination);
|
|
1324
1363
|
}
|
|
1364
|
+
isSeriesNumberInHeader(col, row) {
|
|
1365
|
+
return this.leftRowSeriesNumberColumnCount > 0 && col >= 0 && row >= 0 && col < this.leftRowSeriesNumberColumnCount && row < this.headerLevelCount || this.rightRowSeriesNumberColumnCount > 0 && row >= 0 && col >= this.colCount - this.rightRowSeriesNumberColumnCount && row < this.headerLevelCount;
|
|
1366
|
+
}
|
|
1367
|
+
isSeriesNumberInBody(col, row) {
|
|
1368
|
+
return this.leftRowSeriesNumberColumnCount > 0 && col >= 0 && col < this.leftRowSeriesNumberColumnCount && row >= this.headerLevelCount || this.rightRowSeriesNumberColumnCount > 0 && col >= this.colCount - this.rightRowSeriesNumberColumnCount && row >= this.headerLevelCount;
|
|
1369
|
+
}
|
|
1370
|
+
isSeriesNumber(col, row) {
|
|
1371
|
+
return this.leftRowSeriesNumberColumnCount > 0 && col >= 0 && row >= 0 && col < this.leftRowSeriesNumberColumnCount || this.rightRowSeriesNumberColumnCount > 0 && row >= 0 && col >= this.colCount - this.rightRowSeriesNumberColumnCount;
|
|
1372
|
+
}
|
|
1373
|
+
getSeriesNumberHeader(col, row) {
|
|
1374
|
+
return this.leftRowSeriesNumberColumnCount > 0 && col >= 0 && col < this.leftRowSeriesNumberColumnCount && row < this.headerLevelCount ? Object.assign({}, this.leftRowSeriesNumberColumn[col], {
|
|
1375
|
+
style: this._table.internalProps.rowSeriesNumber.headerStyle
|
|
1376
|
+
}) : this.rightRowSeriesNumberColumnCount > 0 && col >= this.colCount - this.rightRowSeriesNumberColumnCount && row < this.headerLevelCount && row < this.headerLevelCount ? this.rightRowSeriesNumberColumn[col - (this.colCount - this.rightRowSeriesNumberColumnCount)] : void 0;
|
|
1377
|
+
}
|
|
1378
|
+
getSeriesNumberBody(col, row) {
|
|
1379
|
+
return this.leftRowSeriesNumberColumnCount > 0 && col >= 0 && col < this.leftRowSeriesNumberColumnCount && row >= this.headerLevelCount ? this.leftRowSeriesNumberColumn[col] : this.rightRowSeriesNumberColumnCount > 0 && col >= this.colCount - this.rightRowSeriesNumberColumnCount && row >= this.headerLevelCount ? this.rightRowSeriesNumberColumn[col - (this.colCount - this.rightRowSeriesNumberColumnCount)] : void 0;
|
|
1380
|
+
}
|
|
1325
1381
|
}
|
|
1326
1382
|
|
|
1327
1383
|
function scaleWholeRangeSize(count, bandwidth, paddingInner, paddingOuter) {
|