@visactor/vtable-gantt 1.17.3-alpha.1 → 1.17.3-alpha.2

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.17.3-alpha.1";
8
+ export declare const version = "1.17.3-alpha.2";
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.17.3-alpha.1";
55
+ exports.VTable = VTable, exports.version = "1.17.3-alpha.2";
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.17.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"]}
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.17.3-alpha.2\";\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"]}
@@ -42127,12 +42127,12 @@
42127
42127
  isWidthNumber = !Array.isArray(strokeArrayWidth),
42128
42128
  isStrokeTrue = !Array.isArray(stroke),
42129
42129
  isSplitDraw = Array.isArray(strokeArrayColor) || widthInfo.isSplitDraw;
42130
- context.setStrokeStyle(rect, rect.attribute, x, y, rectAttribute);
42130
+ context.stroke(), context.setStrokeStyle(rect, rect.attribute, x, y, rectAttribute);
42131
42131
  const {
42132
42132
  lineDash = groupAttribute.lineDash
42133
42133
  } = group.attribute;
42134
42134
  let isDash = !1;
42135
- lineDash.length && lineDash.some(dash => Array.isArray(dash)) && (isDash = !0), context.moveTo(x, y);
42135
+ lineDash.length && lineDash.some(dash => Array.isArray(dash)) && (isDash = !0), context.beginPath(), context.moveTo(x, y);
42136
42136
  const strokeTop = (isStrokeTrue || stroke[0]) && (isWidthNumber || strokeArrayWidth[0]),
42137
42137
  strokeRight = (isStrokeTrue || stroke[1]) && (isWidthNumber || strokeArrayWidth[1]),
42138
42138
  strokeBottom = (isStrokeTrue || stroke[2]) && (isWidthNumber || strokeArrayWidth[2]),
@@ -42153,7 +42153,7 @@
42153
42153
  isWidthNumber ? widthInfo.width : strokeArrayWidth[3], isWidthNumber ? widthInfo.width : strokeArrayWidth[3];
42154
42154
  context.moveTo(x1, y1), context.lineTo(x2, y2), (isSplitDraw || isDash) && (strokeArrayColor && strokeArrayColor[3] ? context.strokeStyle = strokeArrayColor[3] : strokeArrayColor && !strokeArrayColor[3] && (context.strokeStyle = "transparent"), isWidthNumber || (context.lineWidth = strokeArrayWidth[3]), context.lineDashOffset = context.currentMatrix.f / context.currentMatrix.d, isDash && context.setLineDash(null !== (_d = lineDash[3]) && void 0 !== _d ? _d : []), context.stroke(), context.beginPath(), context.moveTo(x, y));
42155
42155
  } else 3 === i && context.moveTo(x, y);
42156
- isSplitDraw || isDash || (!isWidthNumber && widthInfo.width && (context.lineWidth = widthInfo.width), context.stroke()), context.lineDashOffset = 0, context.setLineDash([]), context.closePath();
42156
+ context.closePath(), isSplitDraw || isDash || (!isWidthNumber && widthInfo.width && (context.lineWidth = widthInfo.width), context.stroke()), context.lineDashOffset = 0, context.setLineDash([]), context.beginPath();
42157
42157
  }
42158
42158
 
42159
42159
  var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
@@ -44134,7 +44134,7 @@
44134
44134
  }
44135
44135
 
44136
44136
  function createCellSelectBorder(scene, start_Col, start_Row, end_Col, end_Row, selectRangeType, selectId, strokes) {
44137
- var _a, _b, _c, _d, _e, _f, _g, _h;
44137
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
44138
44138
  let isHasFillHandleRect = !!(null === (_a = scene.table.options.excelOptions) || void 0 === _a ? void 0 : _a.fillHandle);
44139
44139
  if ((null === (_b = scene.table.stateManager.select.ranges) || void 0 === _b ? void 0 : _b.length) > 1) isHasFillHandleRect = !1, scene.removeFillHandleFromSelectComponents();else if (1 === (null === (_c = scene.table.stateManager.select.ranges) || void 0 === _c ? void 0 : _c.length)) {
44140
44140
  const maxRow = Math.max(scene.table.stateManager.select.ranges[0].start.row, scene.table.stateManager.select.ranges[0].end.row),
@@ -44160,7 +44160,8 @@
44160
44160
  y: firstCellBound.y1 - scene.tableGroup.attribute.y,
44161
44161
  width: 0,
44162
44162
  height: 0,
44163
- visible: !0
44163
+ visible: !0,
44164
+ cornerRadius: getCornerRadius(selectRangeType, null === (_j = scene.table.theme.frameStyle) || void 0 === _j ? void 0 : _j.cornerRadius, start_Col, start_Row, end_Col, end_Row, scene.table)
44164
44165
  });
44165
44166
  let fillhandle;
44166
44167
  isHasFillHandleRect && (fillhandle = createRect({
@@ -44178,6 +44179,15 @@
44178
44179
  role: selectRangeType
44179
44180
  }), scene.tableGroup.insertAfter(rect, "body" === selectRangeType ? scene.bodyGroup : "columnHeader" === selectRangeType ? scene.colHeaderGroup : "rowHeader" === selectRangeType ? scene.rowHeaderGroup : "cornerHeader" === selectRangeType ? scene.cornerHeaderGroup : "rightTopCorner" === selectRangeType ? scene.rightTopCornerGroup : "rightFrozen" === selectRangeType ? scene.rightFrozenGroup : "leftBottomCorner" === selectRangeType ? scene.leftBottomCornerGroup : "bottomFrozen" === selectRangeType ? scene.bottomFrozenGroup : scene.rightBottomCornerGroup), isHasFillHandleRect && scene.tableGroup.insertAfter(fillhandle, "body" === selectRangeType ? scene.bodyGroup : "columnHeader" === selectRangeType ? scene.colHeaderGroup : "rowHeader" === selectRangeType ? scene.rowHeaderGroup : "cornerHeader" === selectRangeType ? scene.cornerHeaderGroup : "rightTopCorner" === selectRangeType ? scene.rightTopCornerGroup : "rightFrozen" === selectRangeType ? scene.rightFrozenGroup : "leftBottomCorner" === selectRangeType ? scene.leftBottomCornerGroup : "bottomFrozen" === selectRangeType ? scene.bottomFrozenGroup : scene.rightBottomCornerGroup);
44180
44181
  }
44182
+ function getCornerRadius(selectRangeType, cornerRadius, start_Col, start_Row, end_Col, end_Row, table) {
44183
+ if (!cornerRadius) return;
44184
+ const cornerRadiusArray = Array.isArray(cornerRadius) ? cornerRadius : [cornerRadius, cornerRadius, cornerRadius, cornerRadius],
44185
+ tableEndCol = table.colCount - 1,
44186
+ tableEndRow = table.rowCount - 1,
44187
+ result = [0, 0, 0, 0];
44188
+ let changed = !1;
44189
+ return 0 === start_Col && 0 === start_Row ? (result[0] = cornerRadiusArray[0], changed = !0) : end_Col === tableEndCol && end_Row === tableEndRow ? (result[2] = cornerRadiusArray[2], changed = !0) : 0 === start_Col && end_Row === tableEndRow ? (result[3] = cornerRadiusArray[3], changed = !0) : end_Col === tableEndCol && 0 === start_Row && (result[1] = cornerRadiusArray[1], changed = !0), changed ? result : void 0;
44190
+ }
44181
44191
 
44182
44192
  function moveSelectingRangeComponentsToSelectedRangeComponents(scene) {
44183
44193
  scene.selectingRangeComponents.forEach((rangeComponent, key) => {
@@ -47672,76 +47682,108 @@
47672
47682
  var _a, _b;
47673
47683
  const totalHeight = this.table.getAllRowsHeight(),
47674
47684
  oldVerticalBarPos = this.scroll.verticalBarPos;
47675
- this.scroll.verticalBarPos = Math.ceil(yRatio * (totalHeight - this.table.scenegraph.height)), isValid$3(this.scroll.verticalBarPos) && !isNaN(this.scroll.verticalBarPos) || (this.scroll.verticalBarPos = 0), this.table.scenegraph.setY(-this.scroll.verticalBarPos, 1 === yRatio), this.scroll.verticalBarPos -= this.table.scenegraph.proxy.deltaY, this.table.scenegraph.proxy.deltaY = 0, this.updateHoverPos(-1, -1), this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
47685
+ let verticalBarPos = Math.ceil(yRatio * (totalHeight - this.table.scenegraph.height));
47686
+ isValid$3(verticalBarPos) && !isNaN(verticalBarPos) || (verticalBarPos = 0);
47687
+ const dy = verticalBarPos - this.table.scenegraph.proxy.deltaY - oldVerticalBarPos;
47688
+ if (this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
47676
47689
  event: void 0,
47677
- scrollTop: this.scroll.verticalBarPos,
47690
+ scrollTop: verticalBarPos - this.table.scenegraph.proxy.deltaY,
47678
47691
  scrollLeft: this.scroll.horizontalBarPos,
47679
47692
  scrollHeight: null === (_a = this.table.theme.scrollStyle) || void 0 === _a ? void 0 : _a.width,
47680
47693
  scrollWidth: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
47681
47694
  viewHeight: this.table.tableNoFrameHeight,
47682
47695
  viewWidth: this.table.tableNoFrameWidth,
47683
47696
  scrollDirection: "vertical",
47684
- scrollRatioY: yRatio
47685
- }), oldVerticalBarPos !== this.scroll.verticalBarPos && this.checkVerticalScrollBarEnd();
47697
+ scrollRatioY: yRatio,
47698
+ dy: dy
47699
+ }).some(value => !1 === value)) {
47700
+ const yRatio = this.scroll.verticalBarPos / (totalHeight - this.table.scenegraph.height);
47701
+ this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio);
47702
+ } else this.scroll.verticalBarPos = verticalBarPos, this.table.scenegraph.setY(-this.scroll.verticalBarPos, 1 === yRatio), this.scroll.verticalBarPos -= this.table.scenegraph.proxy.deltaY, this.table.scenegraph.proxy.deltaY = 0, this.updateHoverPos(-1, -1), oldVerticalBarPos !== this.scroll.verticalBarPos && this.checkVerticalScrollBarEnd();
47686
47703
  }
47687
47704
  updateHorizontalScrollBar(xRatio) {
47688
47705
  var _a, _b;
47689
47706
  const totalWidth = this.table.getAllColsWidth(),
47690
47707
  oldHorizontalBarPos = this.scroll.horizontalBarPos;
47691
- this.scroll.horizontalBarPos = Math.ceil(xRatio * (totalWidth - this.table.scenegraph.width)), isValid$3(this.scroll.horizontalBarPos) && !isNaN(this.scroll.horizontalBarPos) || (this.scroll.horizontalBarPos = 0), this.table.scenegraph.setX(-this.scroll.horizontalBarPos, 1 === xRatio), this.scroll.horizontalBarPos -= this.table.scenegraph.proxy.deltaX, this.table.scenegraph.proxy.deltaX = 0, this.updateHoverPos(-1, -1), this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
47708
+ let horizontalBarPos = Math.ceil(xRatio * (totalWidth - this.table.scenegraph.width));
47709
+ isValid$3(horizontalBarPos) && !isNaN(horizontalBarPos) || (horizontalBarPos = 0);
47710
+ const dx = horizontalBarPos - this.table.scenegraph.proxy.deltaX - oldHorizontalBarPos;
47711
+ if (this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
47692
47712
  event: void 0,
47693
47713
  scrollTop: this.scroll.verticalBarPos,
47694
- scrollLeft: this.scroll.horizontalBarPos,
47714
+ scrollLeft: horizontalBarPos - this.table.scenegraph.proxy.deltaX,
47695
47715
  scrollHeight: null === (_a = this.table.theme.scrollStyle) || void 0 === _a ? void 0 : _a.width,
47696
47716
  scrollWidth: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
47697
47717
  viewHeight: this.table.tableNoFrameHeight,
47698
47718
  viewWidth: this.table.tableNoFrameWidth,
47699
47719
  scrollDirection: "horizontal",
47700
- scrollRatioX: xRatio
47701
- }), oldHorizontalBarPos !== this.scroll.horizontalBarPos && this.checkHorizontalScrollBarEnd();
47720
+ scrollRatioX: xRatio,
47721
+ dx: dx
47722
+ }).some(value => !1 === value)) {
47723
+ const xRatio = this.scroll.horizontalBarPos / (totalWidth - this.table.scenegraph.width);
47724
+ this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio);
47725
+ } else this.scroll.horizontalBarPos = horizontalBarPos, this.table.scenegraph.setX(-this.scroll.horizontalBarPos, 1 === xRatio), this.scroll.horizontalBarPos -= this.table.scenegraph.proxy.deltaX, this.table.scenegraph.proxy.deltaX = 0, this.updateHoverPos(-1, -1), oldHorizontalBarPos !== this.scroll.horizontalBarPos && this.checkHorizontalScrollBarEnd();
47702
47726
  }
47703
47727
  setScrollTop(top, event) {
47704
47728
  let triggerEvent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
47705
- var _a, _b, _c;
47729
+ var _a, _b, _c, _d, _e;
47706
47730
  const totalHeight = this.table.getAllRowsHeight(),
47707
47731
  sizeTolerance = (null === (_a = this.table.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? 1 : 0;
47708
- top = Math.max(0, Math.min(top, totalHeight - this.table.scenegraph.height - sizeTolerance)), ((top = Math.ceil(top)) !== this.scroll.verticalBarPos || this.table.isPivotChart()) && this.updateHoverPos(-1, -1);
47709
- const oldVerticalBarPos = this.scroll.verticalBarPos;
47710
- this.scroll.verticalBarPos = top, isValid$3(this.scroll.verticalBarPos) && !isNaN(this.scroll.verticalBarPos) || (this.scroll.verticalBarPos = 0), this.table.scenegraph.setY(-top);
47711
- const yRatio = top / (totalHeight - this.table.scenegraph.height);
47712
- this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio), oldVerticalBarPos !== top && triggerEvent && (this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
47713
- event: null == event ? void 0 : event.nativeEvent,
47714
- scrollTop: this.scroll.verticalBarPos,
47715
- scrollLeft: this.scroll.horizontalBarPos,
47716
- scrollHeight: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
47717
- scrollWidth: null === (_c = this.table.theme.scrollStyle) || void 0 === _c ? void 0 : _c.width,
47718
- viewHeight: this.table.tableNoFrameHeight,
47719
- viewWidth: this.table.tableNoFrameWidth,
47720
- scrollDirection: "vertical",
47721
- scrollRatioY: yRatio
47722
- }), this.checkVerticalScrollBarEnd());
47732
+ top = Math.max(0, Math.min(top, totalHeight - this.table.scenegraph.height - sizeTolerance)), top = Math.ceil(top);
47733
+ const oldVerticalBarPos = this.scroll.verticalBarPos,
47734
+ yRatio = top / (totalHeight - this.table.scenegraph.height);
47735
+ if ((oldVerticalBarPos !== top || !0 === (null === (_c = null === (_b = this.table.options) || void 0 === _b ? void 0 : _b.customConfig) || void 0 === _c ? void 0 : _c.scrollEventAlwaysTrigger)) && triggerEvent) {
47736
+ let verticalBarPos = top;
47737
+ isValid$3(verticalBarPos) && !isNaN(verticalBarPos) || (verticalBarPos = 0);
47738
+ const dy = verticalBarPos - oldVerticalBarPos;
47739
+ if (this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
47740
+ event: null == event ? void 0 : event.nativeEvent,
47741
+ scrollTop: verticalBarPos,
47742
+ scrollLeft: this.scroll.horizontalBarPos,
47743
+ scrollHeight: null === (_d = this.table.theme.scrollStyle) || void 0 === _d ? void 0 : _d.width,
47744
+ scrollWidth: null === (_e = this.table.theme.scrollStyle) || void 0 === _e ? void 0 : _e.width,
47745
+ viewHeight: this.table.tableNoFrameHeight,
47746
+ viewWidth: this.table.tableNoFrameWidth,
47747
+ scrollDirection: "vertical",
47748
+ scrollRatioY: yRatio,
47749
+ dy: dy
47750
+ }).some(value => !1 === value)) {
47751
+ const yRatio = this.scroll.verticalBarPos / (totalHeight - this.table.scenegraph.height);
47752
+ return void this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio);
47753
+ }
47754
+ }
47755
+ (top !== this.scroll.verticalBarPos || this.table.isPivotChart()) && this.updateHoverPos(-1, -1), this.scroll.verticalBarPos = top, isValid$3(this.scroll.verticalBarPos) && !isNaN(this.scroll.verticalBarPos) || (this.scroll.verticalBarPos = 0), this.table.scenegraph.setY(-top), this.table.scenegraph.component.updateVerticalScrollBarPos(yRatio), oldVerticalBarPos !== top && triggerEvent && this.checkVerticalScrollBarEnd();
47723
47756
  }
47724
47757
  setScrollLeft(left, event) {
47725
47758
  let triggerEvent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
47726
- var _a, _b, _c;
47759
+ var _a, _b, _c, _d, _e;
47727
47760
  this.table.scrollLeft;
47728
47761
  const totalWidth = this.table.getAllColsWidth(),
47729
47762
  sizeTolerance = (this.table.getFrozenColsWidth(), (null === (_a = this.table.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? 1 : 0);
47730
- left = Math.max(0, Math.min(left, totalWidth - this.table.scenegraph.width - sizeTolerance)), (left = Math.ceil(left)) !== this.scroll.horizontalBarPos && this.updateHoverPos(-1, -1);
47731
- const oldHorizontalBarPos = this.scroll.horizontalBarPos;
47732
- this.scroll.horizontalBarPos = left, isValid$3(this.scroll.horizontalBarPos) && !isNaN(this.scroll.horizontalBarPos) || (this.scroll.horizontalBarPos = 0), this.table.scenegraph.setX(-left);
47733
- const xRatio = left / (totalWidth - this.table.scenegraph.width);
47734
- this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio), oldHorizontalBarPos !== left && triggerEvent && (this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
47735
- event: null == event ? void 0 : event.nativeEvent,
47736
- scrollTop: this.scroll.verticalBarPos,
47737
- scrollLeft: this.scroll.horizontalBarPos,
47738
- scrollHeight: null === (_b = this.table.theme.scrollStyle) || void 0 === _b ? void 0 : _b.width,
47739
- scrollWidth: null === (_c = this.table.theme.scrollStyle) || void 0 === _c ? void 0 : _c.width,
47740
- viewHeight: this.table.tableNoFrameHeight,
47741
- viewWidth: this.table.tableNoFrameWidth,
47742
- scrollDirection: "horizontal",
47743
- scrollRatioX: xRatio
47744
- }), this.checkHorizontalScrollBarEnd());
47763
+ left = Math.max(0, Math.min(left, totalWidth - this.table.scenegraph.width - sizeTolerance)), left = Math.ceil(left);
47764
+ const oldHorizontalBarPos = this.scroll.horizontalBarPos,
47765
+ xRatio = left / (totalWidth - this.table.scenegraph.width);
47766
+ if ((oldHorizontalBarPos !== left || !0 === (null === (_c = null === (_b = this.table.options) || void 0 === _b ? void 0 : _b.customConfig) || void 0 === _c ? void 0 : _c.scrollEventAlwaysTrigger)) && triggerEvent) {
47767
+ let horizontalBarPos = left;
47768
+ isValid$3(horizontalBarPos) && !isNaN(horizontalBarPos) || (horizontalBarPos = 0);
47769
+ const dx = horizontalBarPos - oldHorizontalBarPos;
47770
+ if (this.table.fireListeners(TABLE_EVENT_TYPE.SCROLL, {
47771
+ event: null == event ? void 0 : event.nativeEvent,
47772
+ scrollTop: this.scroll.verticalBarPos,
47773
+ scrollLeft: horizontalBarPos,
47774
+ scrollHeight: null === (_d = this.table.theme.scrollStyle) || void 0 === _d ? void 0 : _d.width,
47775
+ scrollWidth: null === (_e = this.table.theme.scrollStyle) || void 0 === _e ? void 0 : _e.width,
47776
+ viewHeight: this.table.tableNoFrameHeight,
47777
+ viewWidth: this.table.tableNoFrameWidth,
47778
+ scrollDirection: "horizontal",
47779
+ scrollRatioX: xRatio,
47780
+ dx: dx
47781
+ }).some(value => !1 === value)) {
47782
+ const xRatio = this.scroll.horizontalBarPos / (totalWidth - this.table.scenegraph.width);
47783
+ return void this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio);
47784
+ }
47785
+ }
47786
+ left !== this.scroll.horizontalBarPos && this.updateHoverPos(-1, -1), this.scroll.horizontalBarPos = left, isValid$3(this.scroll.horizontalBarPos) && !isNaN(this.scroll.horizontalBarPos) || (this.scroll.horizontalBarPos = 0), this.table.scenegraph.setX(-left), this.table.scenegraph.component.updateHorizontalScrollBarPos(xRatio), oldHorizontalBarPos !== left && triggerEvent && this.checkHorizontalScrollBarEnd();
47745
47787
  }
47746
47788
  hideVerticalScrollBar() {
47747
47789
  this.table.scenegraph.component.hideVerticalScrollBar();
@@ -52202,7 +52244,7 @@
52202
52244
  constructor(container) {
52203
52245
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
52204
52246
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
52205
- if (super(), this.showFrozenIcon = !0, this.version = "1.17.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");
52247
+ if (super(), this.showFrozenIcon = !0, this.version = "1.17.3-alpha.2", 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");
52206
52248
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
52207
52249
  const {
52208
52250
  frozenColCount = 0,
@@ -52557,7 +52599,7 @@
52557
52599
  }
52558
52600
  }
52559
52601
  _updateSize() {
52560
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
52602
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
52561
52603
  const {
52562
52604
  padding: padding
52563
52605
  } = this;
@@ -52575,20 +52617,20 @@
52575
52617
  const {
52576
52618
  canvas: canvas
52577
52619
  } = this.internalProps;
52578
- widthP = (null !== (_c = null === (_b = canvas.parentElement) || void 0 === _b ? void 0 : _b.offsetWidth) && void 0 !== _c ? _c : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), heightP = (null !== (_e = null === (_d = canvas.parentElement) || void 0 === _d ? void 0 : _d.offsetHeight) && void 0 !== _e ? _e : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), (null === (_f = null == this ? void 0 : this.scenegraph) || void 0 === _f ? void 0 : _f.stage) ? this.scenegraph.stage.resize(widthP, heightP) : (canvas.style.width = "", canvas.style.height = "", canvas.width = widthP, canvas.height = heightP, canvas.style.width = `${widthP}px`, canvas.style.height = `${heightP}px`);
52620
+ widthP = (null !== (_c = null === (_b = canvas.parentElement) || void 0 === _b ? void 0 : _b.offsetWidth) && void 0 !== _c ? _c : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), heightP = (null !== (_e = null === (_d = canvas.parentElement) || void 0 === _d ? void 0 : _d.offsetHeight) && void 0 !== _e ? _e : 1) - (this.options.tableSizeAntiJitter ? 1 : 0), (null === (_f = null == this ? void 0 : this.scenegraph) || void 0 === _f ? void 0 : _f.stage) || (canvas.style.width = "", canvas.style.height = "", canvas.width = widthP, canvas.height = heightP, canvas.style.width = `${widthP}px`, canvas.style.height = `${heightP}px`), (null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox) && (widthP = this.options.viewBox.x2 - this.options.viewBox.x1, heightP = this.options.viewBox.y2 - this.options.viewBox.y1), (null === (_h = null == this ? void 0 : this.scenegraph) || void 0 === _h ? void 0 : _h.stage) && (this.options.viewBox ? this.scenegraph.stage.setViewBox(this.options.viewBox, !1) : this.scenegraph.stage.resize(widthP, heightP));
52579
52621
  } else "node" === Env.mode && (widthP = this.canvasWidth - 1, heightP = this.canvasHeight - 1);
52580
52622
  const width = Math.floor(widthP - getVerticalScrollBarSize(this.getTheme().scrollStyle)),
52581
52623
  height = Math.floor(heightP - getHorizontalScrollBarSize(this.getTheme().scrollStyle));
52582
- if (null === (_g = this.internalProps.theme) || void 0 === _g ? void 0 : _g.frameStyle) {
52583
- const lineWidths = toBoxArray(null !== (_j = null === (_h = this.internalProps.theme.frameStyle) || void 0 === _h ? void 0 : _h.borderLineWidth) && void 0 !== _j ? _j : [null]),
52584
- shadowWidths = toBoxArray(null !== (_l = null === (_k = this.internalProps.theme.frameStyle) || void 0 === _k ? void 0 : _k.shadowBlur) && void 0 !== _l ? _l : [0]);
52585
- (null === (_m = this.theme.frameStyle) || void 0 === _m ? void 0 : _m.innerBorder) ? (this.tableX = 0, this.tableY = 0, this.tableNoFrameWidth = width - (null !== (_o = shadowWidths[1]) && void 0 !== _o ? _o : 0), this.tableNoFrameHeight = height - (null !== (_p = shadowWidths[2]) && void 0 !== _p ? _p : 0)) : (this.tableX = (null !== (_q = lineWidths[3]) && void 0 !== _q ? _q : 0) + (null !== (_r = shadowWidths[3]) && void 0 !== _r ? _r : 0), this.tableY = (null !== (_s = lineWidths[0]) && void 0 !== _s ? _s : 0) + (null !== (_t = shadowWidths[0]) && void 0 !== _t ? _t : 0), this.tableNoFrameWidth = width - ((null !== (_u = lineWidths[1]) && void 0 !== _u ? _u : 0) + (null !== (_v = shadowWidths[1]) && void 0 !== _v ? _v : 0)) - ((null !== (_w = lineWidths[3]) && void 0 !== _w ? _w : 0) + (null !== (_x = shadowWidths[3]) && void 0 !== _x ? _x : 0)), this.tableNoFrameHeight = height - ((null !== (_y = lineWidths[0]) && void 0 !== _y ? _y : 0) + (null !== (_z = shadowWidths[0]) && void 0 !== _z ? _z : 0)) - ((null !== (_0 = lineWidths[2]) && void 0 !== _0 ? _0 : 0) + (null !== (_1 = shadowWidths[2]) && void 0 !== _1 ? _1 : 0)));
52624
+ if (null === (_j = this.internalProps.theme) || void 0 === _j ? void 0 : _j.frameStyle) {
52625
+ const lineWidths = toBoxArray(null !== (_l = null === (_k = this.internalProps.theme.frameStyle) || void 0 === _k ? void 0 : _k.borderLineWidth) && void 0 !== _l ? _l : [null]),
52626
+ shadowWidths = toBoxArray(null !== (_o = null === (_m = this.internalProps.theme.frameStyle) || void 0 === _m ? void 0 : _m.shadowBlur) && void 0 !== _o ? _o : [0]);
52627
+ (null === (_p = this.theme.frameStyle) || void 0 === _p ? void 0 : _p.innerBorder) ? (this.tableX = 0, this.tableY = 0, this.tableNoFrameWidth = width - (null !== (_q = shadowWidths[1]) && void 0 !== _q ? _q : 0), this.tableNoFrameHeight = height - (null !== (_r = shadowWidths[2]) && void 0 !== _r ? _r : 0)) : (this.tableX = (null !== (_s = lineWidths[3]) && void 0 !== _s ? _s : 0) + (null !== (_t = shadowWidths[3]) && void 0 !== _t ? _t : 0), this.tableY = (null !== (_u = lineWidths[0]) && void 0 !== _u ? _u : 0) + (null !== (_v = shadowWidths[0]) && void 0 !== _v ? _v : 0), this.tableNoFrameWidth = width - ((null !== (_w = lineWidths[1]) && void 0 !== _w ? _w : 0) + (null !== (_x = shadowWidths[1]) && void 0 !== _x ? _x : 0)) - ((null !== (_y = lineWidths[3]) && void 0 !== _y ? _y : 0) + (null !== (_z = shadowWidths[3]) && void 0 !== _z ? _z : 0)), this.tableNoFrameHeight = height - ((null !== (_0 = lineWidths[0]) && void 0 !== _0 ? _0 : 0) + (null !== (_1 = shadowWidths[0]) && void 0 !== _1 ? _1 : 0)) - ((null !== (_2 = lineWidths[2]) && void 0 !== _2 ? _2 : 0) + (null !== (_3 = shadowWidths[2]) && void 0 !== _3 ? _3 : 0)));
52586
52628
  }
52587
52629
  }
52588
52630
  updateViewBox(newViewBox) {
52589
- var _a, _b, _c, _d, _e, _f, _g, _h;
52590
- const oldWidth = null !== (_d = null !== (_b = null === (_a = this.options) || void 0 === _a ? void 0 : _a.viewBox.x2) && void 0 !== _b ? _b : 0 - (null === (_c = this.options) || void 0 === _c ? void 0 : _c.viewBox.x1)) && void 0 !== _d ? _d : 0,
52591
- oldHeight = null !== (_h = null !== (_f = null === (_e = this.options) || void 0 === _e ? void 0 : _e.viewBox.y2) && void 0 !== _f ? _f : 0 - (null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox.y1)) && void 0 !== _h ? _h : 0,
52631
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
52632
+ const oldWidth = (null !== (_c = null === (_b = null === (_a = this.options) || void 0 === _a ? void 0 : _a.viewBox) || void 0 === _b ? void 0 : _b.x2) && void 0 !== _c ? _c : 0) - (null !== (_f = null === (_e = null === (_d = this.options) || void 0 === _d ? void 0 : _d.viewBox) || void 0 === _e ? void 0 : _e.x1) && void 0 !== _f ? _f : 0),
52633
+ oldHeight = (null !== (_j = null === (_h = null === (_g = this.options) || void 0 === _g ? void 0 : _g.viewBox) || void 0 === _h ? void 0 : _h.y2) && void 0 !== _j ? _j : 0) - (null !== (_m = null === (_l = null === (_k = this.options) || void 0 === _k ? void 0 : _k.viewBox) || void 0 === _l ? void 0 : _l.y1) && void 0 !== _m ? _m : 0),
52592
52634
  newWidth = newViewBox.x2 - newViewBox.x1,
52593
52635
  newHeight = newViewBox.y2 - newViewBox.y1;
52594
52636
  this.options.viewBox = newViewBox, oldWidth !== newWidth || oldHeight !== newHeight ? this.resize() : this.scenegraph.stage.setViewBox(this.options.viewBox, !0);
@@ -65213,7 +65255,7 @@
65213
65255
  themes: themes$1
65214
65256
  });
65215
65257
 
65216
- const version = "1.17.3-alpha.1";
65258
+ const version = "1.17.3-alpha.2";
65217
65259
 
65218
65260
  exports.Gantt = Gantt;
65219
65261
  exports.TYPES = index$3;