@visactor/vtable-gantt 1.10.4 → 1.10.5
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 +9 -8
- 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 +3 -3
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.10.
|
|
8
|
+
export declare const version = "1.10.5";
|
|
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,QAAQ,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.10.
|
|
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,QAAQ,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.10.5\";\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
|
@@ -37128,7 +37128,8 @@
|
|
|
37128
37128
|
matrix = this.globalTransMatrix.clone(),
|
|
37129
37129
|
stageMatrix = this.stage.window.getViewBoxTransform();
|
|
37130
37130
|
matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), this.activeChartInstance.renderSync(), null === (_b = null === (_a = table.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.updateDataStateToActiveChartInstance) || void 0 === _b || _b.call(_a, this.activeChartInstance), this.activeChartInstance.on("click", params => {
|
|
37131
|
-
|
|
37131
|
+
var _a;
|
|
37132
|
+
!1 === (null === (_a = this.attribute.spec.select) || void 0 === _a ? void 0 : _a.enable) ? table.scenegraph.updateChartState(null) : Chart.temp && table.scenegraph.updateChartState(null == params ? void 0 : params.datum);
|
|
37132
37133
|
}), this.activeChartInstance.on("brushEnd", params => {
|
|
37133
37134
|
var _a;
|
|
37134
37135
|
table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData), Chart.temp = 0, setTimeout(() => {
|
|
@@ -42985,13 +42986,13 @@
|
|
|
42985
42986
|
return this.table.internalProps.transpose ? prev.push({
|
|
42986
42987
|
field: item.field,
|
|
42987
42988
|
order: item.order,
|
|
42988
|
-
row: null !== (_b = column.startInTotal + this.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount) && void 0 !== _b ? _b : 0,
|
|
42989
|
-
col: column.level
|
|
42989
|
+
row: null !== (_b = (null == column ? void 0 : column.startInTotal) + this.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount) && void 0 !== _b ? _b : 0,
|
|
42990
|
+
col: null == column ? void 0 : column.level
|
|
42990
42991
|
}) : prev.push({
|
|
42991
42992
|
field: item.field,
|
|
42992
42993
|
order: item.order,
|
|
42993
|
-
col: null !== (_c = column.startInTotal + this.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount) && void 0 !== _c ? _c : 0,
|
|
42994
|
-
row: column.level
|
|
42994
|
+
col: null !== (_c = (null == column ? void 0 : column.startInTotal) + this.table.internalProps.layoutMap.leftRowSeriesNumberColumnCount) && void 0 !== _c ? _c : 0,
|
|
42995
|
+
row: null == column ? void 0 : column.level
|
|
42995
42996
|
}), prev;
|
|
42996
42997
|
}, []);
|
|
42997
42998
|
this.sort = sort || [];
|
|
@@ -47337,7 +47338,7 @@
|
|
|
47337
47338
|
constructor(container) {
|
|
47338
47339
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
47339
47340
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
47340
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.10.
|
|
47341
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.10.5", 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");
|
|
47341
47342
|
const {
|
|
47342
47343
|
frozenColCount = 0,
|
|
47343
47344
|
frozenRowCount: frozenRowCount,
|
|
@@ -51538,7 +51539,7 @@
|
|
|
51538
51539
|
col: this.stateManager.hover.cellPos.col,
|
|
51539
51540
|
row: this.stateManager.hover.cellPos.row
|
|
51540
51541
|
};
|
|
51541
|
-
if (this.scenegraph.clearCells(), void 0 !== sort && (this.internalProps.sortState = this.internalProps.multipleSort ? Array.isArray(sort) ? sort : [sort] : sort, this.stateManager.setSortState(this.sortState)), records) {
|
|
51542
|
+
if (this.scenegraph.clearCells(), void 0 !== sort && (!Array.isArray(sort) && isValid$1(sort.field) || Array.isArray(sort)) && (this.internalProps.sortState = this.internalProps.multipleSort ? Array.isArray(sort) ? sort : [sort] : sort, this.stateManager.setSortState(this.sortState)), records) {
|
|
51542
51543
|
if (_setRecords(this, records), this.sortState) {
|
|
51543
51544
|
const sortState = Array.isArray(this.sortState) ? this.sortState : [this.sortState];
|
|
51544
51545
|
sortState.some(item => item.order && item.field && "normal" !== item.order) && this.internalProps.layoutMap.headerObjectsIncludeHided.some(item => !1 !== item.define.sort) && this.dataSource.sort(sortState.map(item => {
|
|
@@ -57188,7 +57189,7 @@
|
|
|
57188
57189
|
themes: themes$1
|
|
57189
57190
|
});
|
|
57190
57191
|
|
|
57191
|
-
const version = "1.10.
|
|
57192
|
+
const version = "1.10.5";
|
|
57192
57193
|
|
|
57193
57194
|
exports.Gantt = Gantt;
|
|
57194
57195
|
exports.TYPES = index$2;
|