@visactor/vtable-gantt 1.15.1-alpha.0 → 1.15.1-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 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.15.1-alpha.0";
8
+ export declare const version = "1.15.1-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
@@ -52,5 +52,5 @@ exports.VRender = VRender;
52
52
 
53
53
  const VTable = __importStar(require("./vtable"));
54
54
 
55
- exports.VTable = VTable, exports.version = "1.15.1-alpha.0";
55
+ exports.VTable = VTable, exports.version = "1.15.1-alpha.1";
56
56
  //# sourceMappingURL=index.js.map
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,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.15.1-alpha.0\";\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"]}
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.15.1-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"]}
@@ -38596,7 +38596,7 @@
38596
38596
  function computeRowsHeight(table, rowStart, rowEnd) {
38597
38597
  let isClearRowRangeHeightsMap = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !0;
38598
38598
  let update = arguments.length > 4 ? arguments[4] : undefined;
38599
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
38599
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
38600
38600
  "undefined" != typeof window && window.performance.now();
38601
38601
  const oldRowHeights = [],
38602
38602
  newHeights = [];
@@ -38687,10 +38687,14 @@
38687
38687
  newRowHeight !== (null !== (_h = oldRowHeights[row]) && void 0 !== _h ? _h : table.getRowHeight(row)) && table.scenegraph.updateRowHeight(row, newRowHeight - (null !== (_j = oldRowHeights[row]) && void 0 !== _j ? _j : table.getRowHeight(row)), !0);
38688
38688
  }
38689
38689
  }
38690
- for (let row = table.scenegraph.proxy.rowStart; row <= table.scenegraph.proxy.rowEnd; row++) {
38690
+ for (let row = 0; row < table.frozenRowCount; row++) {
38691
38691
  const newRowHeight = table.getRowHeight(row);
38692
38692
  newRowHeight !== (null !== (_k = oldRowHeights[row]) && void 0 !== _k ? _k : table.getRowHeight(row)) && table.scenegraph.updateRowHeight(row, newRowHeight - (null !== (_l = oldRowHeights[row]) && void 0 !== _l ? _l : table.getRowHeight(row)), !0);
38693
38693
  }
38694
+ for (let row = table.scenegraph.proxy.rowStart; row <= table.scenegraph.proxy.rowEnd; row++) {
38695
+ const newRowHeight = table.getRowHeight(row);
38696
+ newRowHeight !== (null !== (_m = oldRowHeights[row]) && void 0 !== _m ? _m : table.getRowHeight(row)) && table.scenegraph.updateRowHeight(row, newRowHeight - (null !== (_o = oldRowHeights[row]) && void 0 !== _o ? _o : table.getRowHeight(row)), !0);
38697
+ }
38694
38698
  }
38695
38699
  table.isPivotTable() && (layoutMap.disableUseGetBodyCache(), layoutMap.disableUseHeaderPathCache());
38696
38700
  }
@@ -44977,7 +44981,7 @@
44977
44981
  visible: !0,
44978
44982
  x: this.tableGroup.attribute.width - this.table.getRightFrozenColsWidth(),
44979
44983
  width: this.table.getRightFrozenColsWidth()
44980
- }));
44984
+ })), this.updateDomContainer();
44981
44985
  }
44982
44986
  updateRowHeight(row, detaY, skipTableHeightMap) {
44983
44987
  detaY = Math.round(detaY), updateRowHeight(this, row, detaY, skipTableHeightMap), this.updateContainerHeight(row, detaY);
@@ -45160,7 +45164,7 @@
45160
45164
  }, 0)) : (this._needUpdateContainer = !0, this.updateContainerSync());
45161
45165
  }
45162
45166
  updateContainerSync() {
45163
- this._needUpdateContainer && (this._needUpdateContainer = !1, this.updateContainerAttrWidthAndX(), this.updateTableSize(), this.component.updateScrollBar(), this.updateDomContainer(), this.updateNextFrame());
45167
+ this._needUpdateContainer && (this._needUpdateContainer = !1, this.updateContainerAttrWidthAndX(), this.updateTableSize(), this.component.updateScrollBar(), this.updateNextFrame());
45164
45168
  }
45165
45169
  updateCellContentWhileResize(col, row) {
45166
45170
  var _a;
@@ -51209,7 +51213,7 @@
51209
51213
  constructor(container) {
51210
51214
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
51211
51215
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
51212
- if (super(), this.showFrozenIcon = !0, this.version = "1.15.1-alpha.0", 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");
51216
+ if (super(), this.showFrozenIcon = !0, this.version = "1.15.1-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");
51213
51217
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
51214
51218
  const {
51215
51219
  frozenColCount = 0,
@@ -63640,7 +63644,7 @@
63640
63644
  themes: themes$1
63641
63645
  });
63642
63646
 
63643
- const version = "1.15.1-alpha.0";
63647
+ const version = "1.15.1-alpha.1";
63644
63648
 
63645
63649
  exports.Gantt = Gantt;
63646
63650
  exports.TYPES = index$3;