@visactor/vtable-gantt 1.13.2 → 1.13.3-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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/vtable-gantt.js +13 -9
- package/dist/vtable-gantt.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +4 -4
package/cjs/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import { Gantt } from './Gantt';
|
|
|
5
5
|
import * as tools from './tools';
|
|
6
6
|
import * as VRender from './vrender';
|
|
7
7
|
import * as VTable from './vtable';
|
|
8
|
-
export declare const version = "1.13.
|
|
8
|
+
export declare const version = "1.13.3-alpha.1";
|
|
9
9
|
export { TYPES, GanttConstructorOptions, Gantt, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, tools, VRender, VTable };
|
package/cjs/index.js
CHANGED
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAuBlC,sBAAK;AATP,mCAAgC;AAW9B,sFAXO,aAAK,OAWP;AAVP,+CAAiC;AAsB/B,sBAAK;AArBP,mDAAqC;AAsBnC,0BAAO;AArBT,iDAAmC;AAsBjC,wBAAM;AArBK,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAoC;AAuBlC,sBAAK;AATP,mCAAgC;AAW9B,sFAXO,aAAK,OAWP;AAVP,+CAAiC;AAsB/B,sBAAK;AArBP,mDAAqC;AAsBnC,0BAAO;AArBT,iDAAmC;AAsBjC,wBAAM;AArBK,QAAA,OAAO,GAAG,gBAAgB,CAAC","file":"index.js","sourcesContent":["import type { GanttConstructorOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType\n} from '@visactor/vtable';\nimport { Gantt } from './Gantt';\nimport * as tools from './tools';\nimport * as VRender from './vrender';\nimport * as VTable from './vtable';\nexport const version = \"1.13.3-alpha.1\";\n/**\n * @namespace VTable\n */\nexport {\n TYPES,\n GanttConstructorOptions,\n Gantt,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n tools,\n VRender,\n VTable\n};\n"]}
|
package/dist/vtable-gantt.js
CHANGED
|
@@ -38170,12 +38170,16 @@
|
|
|
38170
38170
|
}
|
|
38171
38171
|
function computeRowHeight(row, startCol, endCol, table) {
|
|
38172
38172
|
var _a;
|
|
38173
|
-
if (!("autoHeight" === table.heightMode || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
|
|
38173
|
+
if (!("autoHeight" === table.heightMode || table.options.customComputeRowHeight || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
|
|
38174
38174
|
let maxHeight;
|
|
38175
|
-
if (table.options.customComputeRowHeight)
|
|
38176
|
-
|
|
38177
|
-
|
|
38178
|
-
|
|
38175
|
+
if (table.options.customComputeRowHeight) {
|
|
38176
|
+
const customRowHeight = table.options.customComputeRowHeight({
|
|
38177
|
+
row: row,
|
|
38178
|
+
table: table
|
|
38179
|
+
});
|
|
38180
|
+
if ("number" == typeof customRowHeight) return customRowHeight;
|
|
38181
|
+
if ("auto" !== customRowHeight) return table.getDefaultRowHeight(row);
|
|
38182
|
+
}
|
|
38179
38183
|
if (table.isPivotChart() && row >= table.columnHeaderLevelCount && row < table.rowCount - table.bottomFrozenRowCount) if (table.internalProps.layoutMap.indicatorsAsCol) {
|
|
38180
38184
|
const optimunHeight = table.internalProps.layoutMap.getOptimunHeightForChart(row);
|
|
38181
38185
|
if (optimunHeight > 0) return optimunHeight;
|
|
@@ -42386,12 +42390,12 @@
|
|
|
42386
42390
|
}
|
|
42387
42391
|
updateCellGroups(count) {
|
|
42388
42392
|
const distRow = Math.min(this.bodyBottomRow, this.rowUpdatePos + count);
|
|
42389
|
-
"autoHeight" === this.table.heightMode && computeRowsHeight(this.table, this.rowUpdatePos, distRow, !1), updateRowContent(this.rowUpdatePos, distRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(0, this.table.frozenColCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0)), this.rowUpdatePos = distRow + 1;
|
|
42393
|
+
("autoHeight" === this.table.heightMode || this.table.options.customComputeRowHeight) && computeRowsHeight(this.table, this.rowUpdatePos, distRow, !1), updateRowContent(this.rowUpdatePos, distRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(0, this.table.frozenColCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0)), this.rowUpdatePos = distRow + 1;
|
|
42390
42394
|
}
|
|
42391
42395
|
updateBottomFrozenCellGroups() {
|
|
42392
42396
|
const startRow = this.table.rowCount - this.table.bottomFrozenRowCount,
|
|
42393
42397
|
endRow = this.table.rowCount - 1;
|
|
42394
|
-
"autoHeight" === this.table.heightMode && computeRowsHeight(this.table, startRow, endRow, !1), updateRowContent(startRow, endRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(0, this.table.frozenColCount - 1, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, startRow, endRow, this.table, this.rowUpdateDirection));
|
|
42398
|
+
("autoHeight" === this.table.heightMode || this.table.options.customComputeRowHeight) && computeRowsHeight(this.table, startRow, endRow, !1), updateRowContent(startRow, endRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(0, this.table.frozenColCount - 1, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, startRow, endRow, this.table, this.rowUpdateDirection));
|
|
42395
42399
|
}
|
|
42396
42400
|
updateRightFrozenCellGroups() {
|
|
42397
42401
|
const startCol = this.table.colCount - this.table.rightFrozenColCount,
|
|
@@ -50454,7 +50458,7 @@
|
|
|
50454
50458
|
constructor(container) {
|
|
50455
50459
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
50456
50460
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
50457
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.13.
|
|
50461
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.13.3-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
50458
50462
|
const {
|
|
50459
50463
|
frozenColCount = 0,
|
|
50460
50464
|
frozenRowCount: frozenRowCount,
|
|
@@ -61791,7 +61795,7 @@
|
|
|
61791
61795
|
themes: themes$1
|
|
61792
61796
|
});
|
|
61793
61797
|
|
|
61794
|
-
const version = "1.13.
|
|
61798
|
+
const version = "1.13.3-alpha.1";
|
|
61795
61799
|
|
|
61796
61800
|
exports.Gantt = Gantt;
|
|
61797
61801
|
exports.TYPES = index$3;
|