@visactor/vtable 0.10.1-alpha.3 → 0.10.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 +1 -1
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js +1 -1
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +1 -1
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/body-helper/body-helper.d.ts +1 -1
- package/cjs/body-helper/body-helper.js +2 -2
- package/cjs/body-helper/body-helper.js.map +1 -1
- package/cjs/components/axis/axis.js +7 -5
- package/cjs/components/axis/axis.js.map +1 -1
- package/cjs/components/axis/get-axis-attributes.d.ts +2 -0
- package/cjs/components/axis/get-axis-attributes.js +3 -1
- package/cjs/components/axis/get-axis-attributes.js.map +1 -1
- package/cjs/components/axis/get-axis-component-size.js +66 -34
- package/cjs/components/axis/get-axis-component-size.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuContainer.js +1 -1
- package/cjs/components/menu/dom/logic/MenuContainer.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuElement.js +3 -3
- package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +2 -2
- package/cjs/core/BaseTable.js +12 -11
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/media-click.js +1 -1
- package/cjs/event/media-click.js.map +1 -1
- package/cjs/event/sparkline-event.js +2 -2
- package/cjs/event/sparkline-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/chart-helper/get-axis-config.js +12 -4
- package/cjs/layout/chart-helper/get-axis-config.js.map +1 -1
- package/cjs/layout/chart-helper/get-chart-spec.js +7 -1
- package/cjs/layout/chart-helper/get-chart-spec.js.map +1 -1
- package/cjs/layout/pivot-header-layout.d.ts +2 -2
- package/cjs/layout/pivot-header-layout.js +8 -8
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/layout/pivot-layout.d.ts +2 -2
- package/cjs/layout/pivot-layout.js +10 -10
- package/cjs/layout/pivot-layout.js.map +1 -1
- package/cjs/layout/simple-header-layout.d.ts +2 -2
- package/cjs/layout/simple-header-layout.js +3 -3
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/scenegraph/component/cell-mover.js +3 -3
- package/cjs/scenegraph/component/cell-mover.js.map +1 -1
- package/cjs/scenegraph/component/menu.d.ts +41 -0
- package/cjs/scenegraph/group-creater/cell-helper.js +5 -5
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/column-helper.d.ts +2 -2
- package/cjs/scenegraph/group-creater/column-helper.js +4 -4
- package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/column.d.ts +2 -2
- package/cjs/scenegraph/group-creater/column.js +2 -2
- package/cjs/scenegraph/group-creater/column.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.d.ts +2 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +8 -21
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js +52 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js +52 -0
- package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
- package/cjs/scenegraph/layout/compute-col-width.js +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/compute-row-height.d.ts +1 -1
- package/cjs/scenegraph/layout/compute-row-height.js +14 -7
- package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
- package/cjs/scenegraph/layout/move-cell.js +1 -1
- package/cjs/scenegraph/layout/move-cell.js.map +1 -1
- package/cjs/scenegraph/layout/update-cell.js +1 -1
- package/cjs/scenegraph/layout/update-cell.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js +1 -1
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js +1 -1
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +4 -4
- package/cjs/scenegraph/scenegraph.js +5 -8
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/select/create-select-border.d.ts +2 -2
- package/cjs/scenegraph/select/create-select-border.js.map +1 -1
- package/cjs/scenegraph/select/delete-select-border.js.map +1 -1
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/state/cell-move/index.js +3 -3
- package/cjs/state/cell-move/index.js.map +1 -1
- package/cjs/state/drill/index.js +1 -1
- package/cjs/state/drill/index.js.map +1 -1
- package/cjs/state/state.js +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/common.d.ts +3 -3
- package/cjs/ts-types/common.js.map +1 -1
- package/cjs/ts-types/events.d.ts +2 -2
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/chart-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/chart-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/image-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/image-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/link-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/link-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/progressbar-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/sparkline-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -1
- package/cjs/ts-types/list-table/layout-map/api.d.ts +2 -2
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
- package/cjs/ts-types/menu.d.ts +2 -2
- package/cjs/ts-types/menu.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +1 -1
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/dist/vtable.js +1723 -1994
- package/dist/vtable.min.js +3 -3
- package/es/ListTable.js +1 -1
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js +1 -1
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +1 -1
- package/es/PivotTable.js.map +1 -1
- package/es/body-helper/body-helper.d.ts +1 -1
- package/es/body-helper/body-helper.js +2 -2
- package/es/body-helper/body-helper.js.map +1 -1
- package/es/components/axis/axis.js +7 -6
- package/es/components/axis/axis.js.map +1 -1
- package/es/components/axis/get-axis-attributes.d.ts +2 -0
- package/es/components/axis/get-axis-attributes.js +3 -1
- package/es/components/axis/get-axis-attributes.js.map +1 -1
- package/es/components/axis/get-axis-component-size.js +66 -34
- package/es/components/axis/get-axis-component-size.js.map +1 -1
- package/es/components/menu/dom/logic/MenuContainer.js +1 -1
- package/es/components/menu/dom/logic/MenuContainer.js.map +1 -1
- package/es/components/menu/dom/logic/MenuElement.js +3 -3
- package/es/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/es/core/BaseTable.d.ts +2 -2
- package/es/core/BaseTable.js +12 -11
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/media-click.js +1 -1
- package/es/event/media-click.js.map +1 -1
- package/es/event/sparkline-event.js +2 -2
- package/es/event/sparkline-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/chart-helper/get-axis-config.js +13 -5
- package/es/layout/chart-helper/get-axis-config.js.map +1 -1
- package/es/layout/chart-helper/get-chart-spec.js +7 -1
- package/es/layout/chart-helper/get-chart-spec.js.map +1 -1
- package/es/layout/pivot-header-layout.d.ts +2 -2
- package/es/layout/pivot-header-layout.js +8 -8
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/layout/pivot-layout.d.ts +2 -2
- package/es/layout/pivot-layout.js +10 -10
- package/es/layout/pivot-layout.js.map +1 -1
- package/es/layout/simple-header-layout.d.ts +2 -2
- package/es/layout/simple-header-layout.js +3 -3
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/scenegraph/component/cell-mover.js +3 -3
- package/es/scenegraph/component/cell-mover.js.map +1 -1
- package/es/scenegraph/component/menu.d.ts +41 -0
- package/es/scenegraph/group-creater/cell-helper.js +5 -5
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/column-helper.d.ts +2 -2
- package/es/scenegraph/group-creater/column-helper.js +4 -4
- package/es/scenegraph/group-creater/column-helper.js.map +1 -1
- package/es/scenegraph/group-creater/column.d.ts +2 -2
- package/es/scenegraph/group-creater/column.js +2 -2
- package/es/scenegraph/group-creater/column.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.d.ts +2 -1
- package/es/scenegraph/group-creater/progress/proxy.js +11 -20
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js +45 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js +47 -0
- package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
- package/es/scenegraph/layout/compute-col-width.js +1 -1
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/compute-row-height.d.ts +1 -1
- package/es/scenegraph/layout/compute-row-height.js +14 -7
- package/es/scenegraph/layout/compute-row-height.js.map +1 -1
- package/es/scenegraph/layout/move-cell.js +1 -1
- package/es/scenegraph/layout/move-cell.js.map +1 -1
- package/es/scenegraph/layout/update-cell.js +1 -1
- package/es/scenegraph/layout/update-cell.js.map +1 -1
- package/es/scenegraph/layout/update-height.js +1 -1
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/layout/update-width.js +1 -1
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +4 -4
- package/es/scenegraph/scenegraph.js +5 -7
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/select/create-select-border.d.ts +2 -2
- package/es/scenegraph/select/create-select-border.js.map +1 -1
- package/es/scenegraph/select/delete-select-border.js.map +1 -1
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/state/cell-move/index.js +3 -3
- package/es/state/cell-move/index.js.map +1 -1
- package/es/state/drill/index.js +1 -1
- package/es/state/drill/index.js.map +1 -1
- package/es/state/state.js +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/common.d.ts +3 -3
- package/es/ts-types/common.js.map +1 -1
- package/es/ts-types/events.d.ts +2 -2
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/list-table/define/basic-define.js.map +1 -1
- package/es/ts-types/list-table/define/chart-define.d.ts +1 -1
- package/es/ts-types/list-table/define/chart-define.js.map +1 -1
- package/es/ts-types/list-table/define/image-define.d.ts +1 -1
- package/es/ts-types/list-table/define/image-define.js.map +1 -1
- package/es/ts-types/list-table/define/link-define.d.ts +1 -1
- package/es/ts-types/list-table/define/link-define.js.map +1 -1
- package/es/ts-types/list-table/define/multilinetext-define.d.ts +1 -1
- package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -1
- package/es/ts-types/list-table/define/progressbar-define.d.ts +1 -1
- package/es/ts-types/list-table/define/progressbar-define.js.map +1 -1
- package/es/ts-types/list-table/define/sparkline-define.d.ts +1 -1
- package/es/ts-types/list-table/define/sparkline-define.js.map +1 -1
- package/es/ts-types/list-table/layout-map/api.d.ts +2 -2
- package/es/ts-types/list-table/layout-map/api.js.map +1 -1
- package/es/ts-types/menu.d.ts +2 -2
- package/es/ts-types/menu.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +1 -1
- package/es/ts-types/table-engine.js.map +1 -1
- package/package.json +9 -9
package/es/core/BaseTable.js
CHANGED
|
@@ -74,7 +74,7 @@ export class BaseTable extends EventTarget {
|
|
|
74
74
|
}
|
|
75
75
|
constructor(container, options = {}) {
|
|
76
76
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
77
|
-
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.10.1
|
|
77
|
+
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.10.1",
|
|
78
78
|
this.id = `VTable${Date.now()}`, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
79
79
|
!container) throw new Error("vtable's container is undefined");
|
|
80
80
|
const {frozenColCount: frozenColCount = 0, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, keyboardOptions: keyboardOptions, columnResizeMode: columnResizeMode, dragHeaderMode: dragHeaderMode, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount} = options;
|
|
@@ -383,7 +383,8 @@ export class BaseTable extends EventTarget {
|
|
|
383
383
|
return "number" == typeof width && width <= 0 ? 0 : width || (this.isRowHeader(col, 0) || this.isCornerHeader(col, 0) ? Array.isArray(this.defaultHeaderColWidth) ? null !== (_b = this.defaultHeaderColWidth[col]) && void 0 !== _b ? _b : this.defaultColWidth : this.defaultHeaderColWidth : this.isRightFrozenColumn(col, this.columnHeaderLevelCount) && this.isPivotTable() ? Array.isArray(this.defaultHeaderColWidth) ? null !== (_c = this.defaultHeaderColWidth[this.rowHeaderLevelCount - this.rightFrozenColCount]) && void 0 !== _c ? _c : this.defaultColWidth : this.defaultHeaderColWidth : this.defaultColWidth);
|
|
384
384
|
}
|
|
385
385
|
getColWidth(col) {
|
|
386
|
-
|
|
386
|
+
var _a;
|
|
387
|
+
const width = null !== (_a = this.colWidthsMap.get(col)) && void 0 !== _a ? _a : 0;
|
|
387
388
|
return "adaptive" === this.widthMode && "number" == typeof width || this.transpose && "number" == typeof width ? this._colWidthDefineToPxWidth(width) : this._adjustColWidth(col, this._colWidthDefineToPxWidth(width));
|
|
388
389
|
}
|
|
389
390
|
setColWidth(col, width, clearCache, skipCheckFrozen) {
|
|
@@ -916,7 +917,7 @@ export class BaseTable extends EventTarget {
|
|
|
916
917
|
return null == body ? void 0 : body.define;
|
|
917
918
|
}
|
|
918
919
|
getBodyColumnType(col, row) {
|
|
919
|
-
return this.internalProps.layoutMap.getBody(col, row).
|
|
920
|
+
return this.internalProps.layoutMap.getBody(col, row).cellType;
|
|
920
921
|
}
|
|
921
922
|
getHeaderField(col, row) {
|
|
922
923
|
return this.internalProps.layoutMap.getHeaderField(col, row);
|
|
@@ -928,8 +929,8 @@ export class BaseTable extends EventTarget {
|
|
|
928
929
|
const hd = this.internalProps.layoutMap.getHeader(col, row);
|
|
929
930
|
return null == hd ? void 0 : hd.define;
|
|
930
931
|
}
|
|
931
|
-
|
|
932
|
-
return this.internalProps.layoutMap.
|
|
932
|
+
getCellLocation(col, row) {
|
|
933
|
+
return this.internalProps.layoutMap.getCellLocation(col, row);
|
|
933
934
|
}
|
|
934
935
|
getCellHeaderPaths(col, row) {
|
|
935
936
|
return this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
@@ -1049,7 +1050,7 @@ export class BaseTable extends EventTarget {
|
|
|
1049
1050
|
field: this.getHeaderField(col, row),
|
|
1050
1051
|
cellHeaderPaths: this.internalProps.layoutMap.getCellHeaderPaths(col, row),
|
|
1051
1052
|
title: colDef.title,
|
|
1052
|
-
|
|
1053
|
+
cellType: colDef.cellType ? "string" == typeof colDef.cellType ? colDef.cellType : "progressbar" : "text",
|
|
1053
1054
|
originData: this.getCellOriginRecord(col, row),
|
|
1054
1055
|
cellRange: this.getCellRangeRelativeRect({
|
|
1055
1056
|
col: col,
|
|
@@ -1057,7 +1058,7 @@ export class BaseTable extends EventTarget {
|
|
|
1057
1058
|
}),
|
|
1058
1059
|
value: this.getCellValue(col, row),
|
|
1059
1060
|
dataValue: this.getCellOriginValue(col, row),
|
|
1060
|
-
|
|
1061
|
+
cellLocation: this.getCellLocation(col, row),
|
|
1061
1062
|
scaleRatio: this.canvas.getBoundingClientRect().width / this.canvas.offsetWidth
|
|
1062
1063
|
};
|
|
1063
1064
|
}
|
|
@@ -1106,7 +1107,7 @@ export class BaseTable extends EventTarget {
|
|
|
1106
1107
|
cacheKey = this.isListTable() && !this.transpose || this.isPivotTable() && this.internalProps.layoutMap.indicatorsAsCol ? col : row;
|
|
1107
1108
|
let cacheStyle = this.bodyStyleCache.get(cacheKey);
|
|
1108
1109
|
if (cacheStyle) return cacheStyle;
|
|
1109
|
-
const column = layoutMap.getBody(col, row), styleClass = this.internalProps.bodyHelper.getStyleClass(column.
|
|
1110
|
+
const column = layoutMap.getBody(col, row), styleClass = this.internalProps.bodyHelper.getStyleClass(column.cellType), style = null == column ? void 0 : column.style;
|
|
1110
1111
|
return cacheStyle = columnStyleContents.of(style, this.theme.bodyStyle, {
|
|
1111
1112
|
col: col,
|
|
1112
1113
|
row: row,
|
|
@@ -1331,7 +1332,7 @@ export class BaseTable extends EventTarget {
|
|
|
1331
1332
|
}
|
|
1332
1333
|
getCustomRender(col, row) {
|
|
1333
1334
|
let customRender;
|
|
1334
|
-
if ("body" !== this.
|
|
1335
|
+
if ("body" !== this.getCellLocation(col, row)) {
|
|
1335
1336
|
const define = this.getHeaderDefine(col, row);
|
|
1336
1337
|
customRender = null == define ? void 0 : define.headerCustomRender;
|
|
1337
1338
|
} else {
|
|
@@ -1342,7 +1343,7 @@ export class BaseTable extends EventTarget {
|
|
|
1342
1343
|
}
|
|
1343
1344
|
getCustomLayout(col, row) {
|
|
1344
1345
|
let customLayout;
|
|
1345
|
-
if ("body" !== this.
|
|
1346
|
+
if ("body" !== this.getCellLocation(col, row)) {
|
|
1346
1347
|
const define = this.getHeaderDefine(col, row);
|
|
1347
1348
|
customLayout = null == define ? void 0 : define.headerCustomLayout;
|
|
1348
1349
|
} else {
|
|
@@ -1352,7 +1353,7 @@ export class BaseTable extends EventTarget {
|
|
|
1352
1353
|
return customLayout;
|
|
1353
1354
|
}
|
|
1354
1355
|
hasAutoImageColumn() {
|
|
1355
|
-
return this.internalProps.layoutMap.columnObjects.find((column => !("image" !== column.
|
|
1356
|
+
return this.internalProps.layoutMap.columnObjects.find((column => !("image" !== column.cellType || !column.define.imageAutoSizing)));
|
|
1356
1357
|
}
|
|
1357
1358
|
_getActiveChartInstance() {
|
|
1358
1359
|
var _a, _b, _c, _d, _e, _f;
|