@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/cjs/core/BaseTable.js
CHANGED
|
@@ -45,7 +45,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
45
45
|
}
|
|
46
46
|
constructor(container, options = {}) {
|
|
47
47
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
48
|
-
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.10.1
|
|
48
|
+
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.10.1",
|
|
49
49
|
this.id = `VTable${Date.now()}`, this.throttleInvalidate = (0, util_1.throttle2)(this.render.bind(this), 200),
|
|
50
50
|
!container) throw new Error("vtable's container is undefined");
|
|
51
51
|
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 = pixel_ratio_1.defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount} = options;
|
|
@@ -358,7 +358,8 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
358
358
|
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);
|
|
359
359
|
}
|
|
360
360
|
getColWidth(col) {
|
|
361
|
-
|
|
361
|
+
var _a;
|
|
362
|
+
const width = null !== (_a = this.colWidthsMap.get(col)) && void 0 !== _a ? _a : 0;
|
|
362
363
|
return "adaptive" === this.widthMode && "number" == typeof width || this.transpose && "number" == typeof width ? this._colWidthDefineToPxWidth(width) : this._adjustColWidth(col, this._colWidthDefineToPxWidth(width));
|
|
363
364
|
}
|
|
364
365
|
setColWidth(col, width, clearCache, skipCheckFrozen) {
|
|
@@ -896,7 +897,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
896
897
|
return null == body ? void 0 : body.define;
|
|
897
898
|
}
|
|
898
899
|
getBodyColumnType(col, row) {
|
|
899
|
-
return this.internalProps.layoutMap.getBody(col, row).
|
|
900
|
+
return this.internalProps.layoutMap.getBody(col, row).cellType;
|
|
900
901
|
}
|
|
901
902
|
getHeaderField(col, row) {
|
|
902
903
|
return this.internalProps.layoutMap.getHeaderField(col, row);
|
|
@@ -908,8 +909,8 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
908
909
|
const hd = this.internalProps.layoutMap.getHeader(col, row);
|
|
909
910
|
return null == hd ? void 0 : hd.define;
|
|
910
911
|
}
|
|
911
|
-
|
|
912
|
-
return this.internalProps.layoutMap.
|
|
912
|
+
getCellLocation(col, row) {
|
|
913
|
+
return this.internalProps.layoutMap.getCellLocation(col, row);
|
|
913
914
|
}
|
|
914
915
|
getCellHeaderPaths(col, row) {
|
|
915
916
|
return this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
@@ -1029,7 +1030,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
1029
1030
|
field: this.getHeaderField(col, row),
|
|
1030
1031
|
cellHeaderPaths: this.internalProps.layoutMap.getCellHeaderPaths(col, row),
|
|
1031
1032
|
title: colDef.title,
|
|
1032
|
-
|
|
1033
|
+
cellType: colDef.cellType ? "string" == typeof colDef.cellType ? colDef.cellType : "progressbar" : "text",
|
|
1033
1034
|
originData: this.getCellOriginRecord(col, row),
|
|
1034
1035
|
cellRange: this.getCellRangeRelativeRect({
|
|
1035
1036
|
col: col,
|
|
@@ -1037,7 +1038,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
1037
1038
|
}),
|
|
1038
1039
|
value: this.getCellValue(col, row),
|
|
1039
1040
|
dataValue: this.getCellOriginValue(col, row),
|
|
1040
|
-
|
|
1041
|
+
cellLocation: this.getCellLocation(col, row),
|
|
1041
1042
|
scaleRatio: this.canvas.getBoundingClientRect().width / this.canvas.offsetWidth
|
|
1042
1043
|
};
|
|
1043
1044
|
}
|
|
@@ -1086,7 +1087,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
1086
1087
|
cacheKey = this.isListTable() && !this.transpose || this.isPivotTable() && this.internalProps.layoutMap.indicatorsAsCol ? col : row;
|
|
1087
1088
|
let cacheStyle = this.bodyStyleCache.get(cacheKey);
|
|
1088
1089
|
if (cacheStyle) return cacheStyle;
|
|
1089
|
-
const column = layoutMap.getBody(col, row), styleClass = this.internalProps.bodyHelper.getStyleClass(column.
|
|
1090
|
+
const column = layoutMap.getBody(col, row), styleClass = this.internalProps.bodyHelper.getStyleClass(column.cellType), style = null == column ? void 0 : column.style;
|
|
1090
1091
|
return cacheStyle = columnStyleContents.of(style, this.theme.bodyStyle, {
|
|
1091
1092
|
col: col,
|
|
1092
1093
|
row: row,
|
|
@@ -1311,7 +1312,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
1311
1312
|
}
|
|
1312
1313
|
getCustomRender(col, row) {
|
|
1313
1314
|
let customRender;
|
|
1314
|
-
if ("body" !== this.
|
|
1315
|
+
if ("body" !== this.getCellLocation(col, row)) {
|
|
1315
1316
|
const define = this.getHeaderDefine(col, row);
|
|
1316
1317
|
customRender = null == define ? void 0 : define.headerCustomRender;
|
|
1317
1318
|
} else {
|
|
@@ -1322,7 +1323,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
1322
1323
|
}
|
|
1323
1324
|
getCustomLayout(col, row) {
|
|
1324
1325
|
let customLayout;
|
|
1325
|
-
if ("body" !== this.
|
|
1326
|
+
if ("body" !== this.getCellLocation(col, row)) {
|
|
1326
1327
|
const define = this.getHeaderDefine(col, row);
|
|
1327
1328
|
customLayout = null == define ? void 0 : define.headerCustomLayout;
|
|
1328
1329
|
} else {
|
|
@@ -1332,7 +1333,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
1332
1333
|
return customLayout;
|
|
1333
1334
|
}
|
|
1334
1335
|
hasAutoImageColumn() {
|
|
1335
|
-
return this.internalProps.layoutMap.columnObjects.find((column => !("image" !== column.
|
|
1336
|
+
return this.internalProps.layoutMap.columnObjects.find((column => !("image" !== column.cellType || !column.define.imageAutoSizing)));
|
|
1336
1337
|
}
|
|
1337
1338
|
_getActiveChartInstance() {
|
|
1338
1339
|
var _a, _b, _c, _d, _e, _f;
|