@visactor/vtable 1.2.0-alpha.3 → 1.2.0

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.
Files changed (57) hide show
  1. package/cjs/components/tooltip/TooltipHandler.js +2 -4
  2. package/cjs/components/tooltip/TooltipHandler.js.map +1 -1
  3. package/cjs/components/tooltip/logic/BubbleTooltipElement.d.ts +0 -2
  4. package/cjs/components/tooltip/logic/BubbleTooltipElement.js +4 -18
  5. package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
  6. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js +1 -1
  7. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
  8. package/cjs/core/BaseTable.js +1 -1
  9. package/cjs/core/BaseTable.js.map +1 -1
  10. package/cjs/index.d.ts +1 -1
  11. package/cjs/index.js +2 -2
  12. package/cjs/index.js.map +1 -1
  13. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  14. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +13 -2
  15. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
  16. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +1 -1
  17. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +11 -5
  18. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  19. package/cjs/scenegraph/icon/icon-update.js +0 -1
  20. package/cjs/scenegraph/icon/icon-update.js.map +1 -1
  21. package/cjs/ts-types/base-table.d.ts +0 -2
  22. package/cjs/ts-types/base-table.js.map +1 -1
  23. package/cjs/ts-types/icon.d.ts +0 -1
  24. package/cjs/ts-types/icon.js.map +1 -1
  25. package/cjs/ts-types/tooltip.d.ts +0 -1
  26. package/cjs/ts-types/tooltip.js.map +1 -1
  27. package/cjs/vrender.js.map +1 -1
  28. package/dist/vtable.js +138 -117
  29. package/dist/vtable.min.js +2 -2
  30. package/es/components/tooltip/TooltipHandler.js +2 -4
  31. package/es/components/tooltip/TooltipHandler.js.map +1 -1
  32. package/es/components/tooltip/logic/BubbleTooltipElement.d.ts +0 -2
  33. package/es/components/tooltip/logic/BubbleTooltipElement.js +4 -18
  34. package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
  35. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js +1 -1
  36. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
  37. package/es/core/BaseTable.js +1 -1
  38. package/es/core/BaseTable.js.map +1 -1
  39. package/es/index.d.ts +1 -1
  40. package/es/index.js +1 -1
  41. package/es/index.js.map +1 -1
  42. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  43. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +13 -2
  44. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
  45. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +1 -1
  46. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +10 -4
  47. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  48. package/es/scenegraph/icon/icon-update.js +0 -1
  49. package/es/scenegraph/icon/icon-update.js.map +1 -1
  50. package/es/ts-types/base-table.d.ts +0 -2
  51. package/es/ts-types/base-table.js.map +1 -1
  52. package/es/ts-types/icon.d.ts +0 -1
  53. package/es/ts-types/icon.js.map +1 -1
  54. package/es/ts-types/tooltip.d.ts +0 -1
  55. package/es/ts-types/tooltip.js.map +1 -1
  56. package/es/vrender.js.map +1 -1
  57. package/package.json +8 -8
package/dist/vtable.js CHANGED
@@ -10584,6 +10584,7 @@
10584
10584
  var _a;
10585
10585
  if (!states.length) return void this.clearStates(hasAnimation);
10586
10586
  if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
10587
+ this.stopStateAnimates();
10587
10588
  const stateAttrs = {},
10588
10589
  subAttrs = this.subGraphic.map(() => ({}));
10589
10590
  states.forEach(stateName => {
@@ -10597,9 +10598,9 @@
10597
10598
  }), this.updateNormalAttrs(stateAttrs), this.currentStates = states, this.applyStateAttrs(stateAttrs, states, hasAnimation);
10598
10599
  }
10599
10600
  clearStates(hasAnimation) {
10600
- this.hasState() && this.normalAttrs && (this.subGraphic.forEach(graphic => {
10601
+ this.stopStateAnimates(), this.hasState() && this.normalAttrs ? (this.currentStates = [], this.subGraphic.forEach(graphic => {
10601
10602
  graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, !0), graphic.normalAttrs = null;
10602
- }), this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0), this.normalAttrs = null, this.currentStates = []);
10603
+ }), this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
10603
10604
  }
10604
10605
  clone() {
10605
10606
  const glyph = new Glyph(Object.assign({}, this.attribute));
@@ -12114,7 +12115,7 @@
12114
12115
  onClearIncremental: new SyncHook(["graphic", "group", "stage"]),
12115
12116
  beforeUpdateAABBBounds: new SyncHook(["graphic", "stage", "willUpdate", "aabbBounds"]),
12116
12117
  afterUpdateAABBBounds: new SyncHook(["graphic", "stage", "aabbBounds", "globalAABBBounds", "selfChange"])
12117
- }, this.tempAABBBounds1 = new AABBBounds(), this.tempAABBBounds2 = new AABBBounds(), this._rectBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._symbolBoundsContribitions = [new DefaultSymbolOuterBorderBoundsContribution()], this._circleBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._arcBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._pathBoundsContribitions = [new DefaultOuterBorderBoundsContribution()];
12118
+ }, this.tempAABBBounds1 = new AABBBounds(), this.tempAABBBounds2 = new AABBBounds(), this._rectBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._symbolBoundsContribitions = [new DefaultSymbolOuterBorderBoundsContribution()], this._imageBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._circleBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._arcBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._pathBoundsContribitions = [new DefaultOuterBorderBoundsContribution()];
12118
12119
  }
12119
12120
  onAttributeUpdate(graphic) {
12120
12121
  this.hooks.onAttributeUpdate.taps.length && this.hooks.onAttributeUpdate.call(graphic);
@@ -12515,7 +12516,9 @@
12515
12516
  }
12516
12517
  const tb1 = this.tempAABBBounds1,
12517
12518
  tb2 = this.tempAABBBounds2;
12518
- return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.transformAABBBounds(attribute, aabbBounds, imageTheme, !1, graphic), aabbBounds;
12519
+ return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._imageBoundsContribitions.length && this._imageBoundsContribitions.forEach(c => {
12520
+ c.updateBounds(attribute, imageTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
12521
+ }), this.transformAABBBounds(attribute, aabbBounds, imageTheme, !1, graphic), aabbBounds;
12519
12522
  }
12520
12523
  combindShadowAABBBounds(bounds, graphic) {
12521
12524
  if (graphic && graphic.shadowRoot) {
@@ -13443,70 +13446,6 @@
13443
13446
  return path.closePath(), path;
13444
13447
  }
13445
13448
 
13446
- class DefaultImageBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
13447
- constructor() {
13448
- super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
13449
- }
13450
- drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb) {
13451
- const {
13452
- background: background,
13453
- backgroundMode = graphicAttribute.backgroundMode,
13454
- backgroundFit = graphicAttribute.backgroundFit
13455
- } = graphic.attribute;
13456
- if (background) if (graphic.backgroundImg) {
13457
- const res = graphic.resources.get(background);
13458
- if ("success" !== res.state || !res.data) return;
13459
- if (context.save(), graphic.parent && !graphic.transMatrix.onlyTranslate()) {
13460
- const groupAttribute = getTheme(graphic.parent).group,
13461
- {
13462
- scrollX = groupAttribute.scrollX,
13463
- scrollY = groupAttribute.scrollY
13464
- } = graphic.parent.attribute;
13465
- context.setTransformFromMatrix(graphic.parent.globalTransMatrix, !0), context.translate(scrollX, scrollY);
13466
- }
13467
- const b = graphic.AABBBounds;
13468
- this.doDrawImage(context, res.data, b, backgroundMode, backgroundFit), context.restore(), graphic.transMatrix.onlyTranslate() || context.setTransformForCurrent();
13469
- } else if (isObject$4(background)) {
13470
- const {
13471
- stroke: stroke,
13472
- fill: fill,
13473
- lineWidth = 1,
13474
- cornerRadius = 0,
13475
- expandX = 0,
13476
- expandY = 0
13477
- } = background;
13478
- if (!stroke && !fill) return;
13479
- context.beginPath();
13480
- const {
13481
- x: x,
13482
- y: y,
13483
- width: width,
13484
- height: height
13485
- } = getActualPosition(graphic);
13486
- cornerRadius ? createRectPath(context, x - expandX, y - expandY, width + 2 * expandX, height + 2 * expandY, cornerRadius) : context.rect(x - expandX, y - expandY, width + 2 * expandX, height + 2 * expandY), context.globalAlpha = 1, fill && (context.fillStyle = fill, context.fill()), stroke && lineWidth > 0 && (context.lineWidth = lineWidth, context.strokeStyle = stroke, context.stroke());
13487
- } else {
13488
- context.beginPath();
13489
- const b = graphic.AABBBounds;
13490
- context.rect(x, y, b.width(), b.height()), context.fillStyle = background, context.globalAlpha = 1, context.fill();
13491
- }
13492
- }
13493
- }
13494
- function getActualPosition(graphic) {
13495
- const boundsPadding = parsePadding(graphic.attribute.boundsPadding),
13496
- bounds = graphic.AABBBounds;
13497
- let x = bounds.x1,
13498
- y = bounds.y1,
13499
- width = bounds.width(),
13500
- height = bounds.height();
13501
- return isNumber$2(boundsPadding) ? (x += boundsPadding, y += boundsPadding, width -= 2 * boundsPadding, height -= 2 * boundsPadding) : (x += boundsPadding[3], y += boundsPadding[0], width -= boundsPadding[1] + boundsPadding[3], height -= boundsPadding[0] + boundsPadding[2]), {
13502
- x: x,
13503
- y: y,
13504
- width: width,
13505
- height: height
13506
- };
13507
- }
13508
- const defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
13509
-
13510
13449
  var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
13511
13450
  var d,
13512
13451
  c = arguments.length,
@@ -13613,6 +13552,79 @@
13613
13552
  const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
13614
13553
  const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
13615
13554
 
13555
+ class DefaultImageBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
13556
+ constructor() {
13557
+ super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
13558
+ }
13559
+ drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb) {
13560
+ const {
13561
+ background: background,
13562
+ backgroundMode = graphicAttribute.backgroundMode,
13563
+ backgroundFit = graphicAttribute.backgroundFit
13564
+ } = graphic.attribute;
13565
+ if (background) if (graphic.backgroundImg) {
13566
+ const res = graphic.resources.get(background);
13567
+ if ("success" !== res.state || !res.data) return;
13568
+ if (context.save(), graphic.parent && !graphic.transMatrix.onlyTranslate()) {
13569
+ const groupAttribute = getTheme(graphic.parent).group,
13570
+ {
13571
+ scrollX = groupAttribute.scrollX,
13572
+ scrollY = groupAttribute.scrollY
13573
+ } = graphic.parent.attribute;
13574
+ context.setTransformFromMatrix(graphic.parent.globalTransMatrix, !0), context.translate(scrollX, scrollY);
13575
+ }
13576
+ const b = graphic.AABBBounds;
13577
+ this.doDrawImage(context, res.data, b, backgroundMode, backgroundFit), context.restore(), graphic.transMatrix.onlyTranslate() || context.setTransformForCurrent();
13578
+ } else if (isObject$4(background)) {
13579
+ const {
13580
+ stroke: stroke,
13581
+ fill: fill,
13582
+ lineWidth = 1,
13583
+ cornerRadius = 0,
13584
+ expandX = 0,
13585
+ expandY = 0
13586
+ } = background;
13587
+ if (!stroke && !fill) return;
13588
+ context.beginPath();
13589
+ const {
13590
+ x: x,
13591
+ y: y,
13592
+ width: width,
13593
+ height: height
13594
+ } = getActualPosition(graphic);
13595
+ cornerRadius ? createRectPath(context, x - expandX, y - expandY, width + 2 * expandX, height + 2 * expandY, cornerRadius) : context.rect(x - expandX, y - expandY, width + 2 * expandX, height + 2 * expandY), context.globalAlpha = 1, fill && (context.fillStyle = fill, context.fill()), stroke && lineWidth > 0 && (context.lineWidth = lineWidth, context.strokeStyle = stroke, context.stroke());
13596
+ } else {
13597
+ context.beginPath();
13598
+ const b = graphic.AABBBounds;
13599
+ context.rect(x, y, b.width(), b.height()), context.fillStyle = background, context.globalAlpha = 1, context.fill();
13600
+ }
13601
+ }
13602
+ }
13603
+ function getActualPosition(graphic) {
13604
+ const boundsPadding = parsePadding(graphic.attribute.boundsPadding),
13605
+ bounds = graphic.AABBBounds;
13606
+ let x = bounds.x1,
13607
+ y = bounds.y1,
13608
+ width = bounds.width(),
13609
+ height = bounds.height();
13610
+ return isNumber$2(boundsPadding) ? (x += boundsPadding, y += boundsPadding, width -= 2 * boundsPadding, height -= 2 * boundsPadding) : (x += boundsPadding[3], y += boundsPadding[0], width -= boundsPadding[1] + boundsPadding[3], height -= boundsPadding[0] + boundsPadding[2]), {
13611
+ x: x,
13612
+ y: y,
13613
+ width: width,
13614
+ height: height
13615
+ };
13616
+ }
13617
+ class DefaultImageRenderContribution extends DefaultRectRenderContribution {
13618
+ constructor() {
13619
+ super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
13620
+ }
13621
+ drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
13622
+ return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
13623
+ }
13624
+ }
13625
+ const defaultImageRenderContribution = new DefaultImageRenderContribution();
13626
+ const defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
13627
+
13616
13628
  class DefaultSymbolRenderContribution {
13617
13629
  constructor() {
13618
13630
  this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
@@ -15182,15 +15194,17 @@
15182
15194
  const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
15183
15195
  let DefaultCanvasImageRender = class extends BaseRender {
15184
15196
  constructor(imageRenderContribitions) {
15185
- super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
15197
+ super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
15186
15198
  }
15187
- drawShape(image, context, x, y, drawContext, params, fillCb) {
15199
+ drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
15188
15200
  const imageAttribute = getTheme(image).image,
15189
15201
  {
15190
15202
  width = imageAttribute.width,
15191
15203
  height = imageAttribute.height,
15192
15204
  repeatX = imageAttribute.repeatX,
15193
15205
  repeatY = imageAttribute.repeatY,
15206
+ x: originX = imageAttribute.x,
15207
+ y: originY = imageAttribute.y,
15194
15208
  cornerRadius = imageAttribute.cornerRadius,
15195
15209
  image: url
15196
15210
  } = image.attribute,
@@ -15215,7 +15229,7 @@
15215
15229
  } else context.drawImage(res.data, x, y, width, height);
15216
15230
  needRestore && context.restore();
15217
15231
  }
15218
- this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
15232
+ doStroke && (strokeCb ? strokeCb(context, image.attribute, imageAttribute) : sVisible && (context.setStrokeStyle(image, image.attribute, originX - x, originY - y, imageAttribute), context.stroke())), this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
15219
15233
  }
15220
15234
  draw(image, renderService, drawContext) {
15221
15235
  const {
@@ -17247,7 +17261,9 @@
17247
17261
  let _isBrowserEnv;
17248
17262
  function initIsBrowserEnv() {
17249
17263
  if (null == _isBrowserEnv) try {
17250
- _isBrowserEnv = globalThis === window, _isBrowserEnv && (_isBrowserEnv = !!document.createElement);
17264
+ const canvas = document.createElement("canvas"),
17265
+ ctx = canvas.getContext("2d");
17266
+ _isBrowserEnv = !!(window && canvas.getBoundingClientRect && requestAnimationFrame && window.devicePixelRatio && ctx && ctx.isPointInPath && ctx.isPointInStroke), _isBrowserEnv && (_isBrowserEnv = !!document.createElement);
17251
17267
  } catch (err) {
17252
17268
  _isBrowserEnv = !1;
17253
17269
  }
@@ -30407,6 +30423,7 @@
30407
30423
  return inverse && (isHorizontal ? (res.x0 = 1, res.x1 = 0) : (res.y0 = 1, res.y1 = 0)), res;
30408
30424
  }
30409
30425
  _updateColor() {
30426
+ var _a;
30410
30427
  const {
30411
30428
  layout = "horizontal",
30412
30429
  colors: colors,
@@ -30416,7 +30433,8 @@
30416
30433
  {
30417
30434
  startHandler: startHandler,
30418
30435
  endHandler: endHandler,
30419
- track: track
30436
+ track: track,
30437
+ attribute: attribute
30420
30438
  } = this._slider,
30421
30439
  {
30422
30440
  startValue: startValue,
@@ -30424,9 +30442,15 @@
30424
30442
  startPos: startPos,
30425
30443
  endPos: endPos
30426
30444
  } = this._slider.currentValue,
30427
- startHandlerColor = this._colorScale.scale(startValue),
30428
- endHandlerColor = this._colorScale.scale(endValue);
30429
- null == startHandler || startHandler.setAttribute("fill", startHandlerColor), null == endHandler || endHandler.setAttribute("fill", endHandlerColor);
30445
+ handlerColor = null === (_a = attribute.handlerStyle) || void 0 === _a ? void 0 : _a.fill;
30446
+ if (startHandler && !handlerColor) {
30447
+ const startHandlerColor = this._colorScale.scale(startValue);
30448
+ startHandler.setAttribute("fill", startHandlerColor);
30449
+ }
30450
+ if (endHandler && !handlerColor) {
30451
+ const endHandlerColor = this._colorScale.scale(endValue);
30452
+ endHandler.setAttribute("fill", endHandlerColor);
30453
+ }
30430
30454
  const railLen = "horizontal" === layout ? railWidth : railHeight;
30431
30455
  if (Math.abs(startPos - endPos) !== railLen && colors && colors.length > 1) {
30432
30456
  const stops = this._color.stops,
@@ -30471,6 +30495,7 @@
30471
30495
  },
30472
30496
  handlerSize: 10,
30473
30497
  handlerStyle: {
30498
+ fill: null,
30474
30499
  lineWidth: 4,
30475
30500
  stroke: "#fff",
30476
30501
  outerBorder: {
@@ -45513,6 +45538,21 @@
45513
45538
  colGroup.needUpdate = false;
45514
45539
  colGroup.setAttribute('width', proxy.table.getColWidth(colGroup.col));
45515
45540
  }
45541
+ function updateColGroupContentAsync(colGroup, proxy) {
45542
+ if (!colGroup) {
45543
+ return;
45544
+ }
45545
+ const screenTopRow = proxy.screenTopRow;
45546
+ const topRow = Math.max(proxy.bodyTopRow, screenTopRow - proxy.screenRowCount * 1);
45547
+ const bottomRow = Math.min(proxy.bodyBottomRow, screenTopRow + proxy.screenRowCount * 2);
45548
+ for (let row = topRow; row <= bottomRow; row++) {
45549
+ const cellGroup = proxy.highPerformanceGetCell(colGroup.col, row, true);
45550
+ proxy.updateCellGroupContent(cellGroup);
45551
+ }
45552
+ proxy.rowUpdatePos = proxy.rowStart;
45553
+ colGroup.needUpdate = false;
45554
+ colGroup.setAttribute('width', proxy.table.getColWidth(colGroup.col));
45555
+ }
45516
45556
  function updatePartColPosition(startCol, endCol, direction, proxy) {
45517
45557
  for (let col = startCol; col <= endCol; col++) {
45518
45558
  if (proxy.table.scenegraph.bodyGroup.childrenCount > 0 &&
@@ -45548,8 +45588,6 @@
45548
45588
  }
45549
45589
  function updateColContent(syncLeftCol, syncRightCol, proxy) {
45550
45590
  for (let col = syncLeftCol; col <= syncRightCol; col++) {
45551
- const colGroup = proxy.table.scenegraph.getColGroup(col);
45552
- colGroup && updateColGroupContent(colGroup, proxy);
45553
45591
  const colHeaderColGroup = proxy.table.scenegraph.getColGroup(col, true);
45554
45592
  colHeaderColGroup && updateColGroupContent(colHeaderColGroup, proxy);
45555
45593
  const bottomColGroup = proxy.table.scenegraph.getColGroupInBottom(col);
@@ -45558,7 +45596,10 @@
45558
45596
  rightTopColGroup && updateColGroupContent(rightTopColGroup, proxy);
45559
45597
  const rightBottomColGroup = proxy.table.scenegraph.getColGroupInRightBottomCorner(col);
45560
45598
  rightBottomColGroup && updateColGroupContent(rightBottomColGroup, proxy);
45599
+ const colGroup = proxy.table.scenegraph.getColGroup(col);
45600
+ colGroup && updateColGroupContentAsync(colGroup, proxy);
45561
45601
  }
45602
+ proxy.progress();
45562
45603
  }
45563
45604
  function updateAllColPosition(distStartColY, count, direction, proxy) {
45564
45605
  proxy.table.scenegraph.colHeaderGroup.forEachChildren((colGroup, index) => {
@@ -45725,7 +45766,7 @@
45725
45766
  updatePartRowPosition(startRow, endRow, direction, proxy);
45726
45767
  proxy.rowStart = direction === 'up' ? proxy.rowStart + count : proxy.rowStart - count;
45727
45768
  proxy.rowEnd = direction === 'up' ? proxy.rowEnd + count : proxy.rowEnd - count;
45728
- updateRowContent(syncTopRow, syncBottomRow, proxy);
45769
+ updateRowContent(syncTopRow, syncBottomRow, proxy, true);
45729
45770
  if (proxy.table.heightMode === 'autoHeight') {
45730
45771
  updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up', true);
45731
45772
  updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up', true);
@@ -45764,7 +45805,7 @@
45764
45805
  updateAllRowPosition(distStartRowY, count, direction, proxy);
45765
45806
  proxy.rowStart = distStartRow;
45766
45807
  proxy.rowEnd = distEndRow;
45767
- updateRowContent(syncTopRow, syncBottomRow, proxy);
45808
+ updateRowContent(syncTopRow, syncBottomRow, proxy, true);
45768
45809
  if (proxy.table.heightMode === 'autoHeight') {
45769
45810
  updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up');
45770
45811
  updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up');
@@ -45854,7 +45895,7 @@
45854
45895
  });
45855
45896
  }
45856
45897
  }
45857
- function updateRowContent(syncTopRow, syncBottomRow, proxy) {
45898
+ function updateRowContent(syncTopRow, syncBottomRow, proxy, async = false) {
45858
45899
  for (let col = 0; col < proxy.table.frozenColCount; col++) {
45859
45900
  for (let row = syncTopRow; row <= syncBottomRow; row++) {
45860
45901
  const cellGroup = proxy.highPerformanceGetCell(col, row, true);
@@ -45867,7 +45908,14 @@
45867
45908
  proxy.updateCellGroupContent(cellGroup);
45868
45909
  }
45869
45910
  }
45870
- for (let col = proxy.bodyLeftCol; col <= proxy.bodyRightCol; col++) {
45911
+ let leftCol = proxy.bodyLeftCol;
45912
+ let rightCol = proxy.bodyRightCol;
45913
+ if (async) {
45914
+ const screenLeftCol = proxy.screenLeftCol;
45915
+ leftCol = Math.max(proxy.bodyLeftCol, screenLeftCol - proxy.screenColCount * 1);
45916
+ rightCol = Math.min(proxy.bodyRightCol, screenLeftCol + proxy.screenColCount * 2);
45917
+ }
45918
+ for (let col = leftCol; col <= rightCol; col++) {
45871
45919
  for (let row = syncTopRow; row <= syncBottomRow; row++) {
45872
45920
  const cellGroup = proxy.highPerformanceGetCell(col, row);
45873
45921
  proxy.updateCellGroupContent(cellGroup);
@@ -48443,7 +48491,6 @@
48443
48491
  },
48444
48492
  placement: baseIcon.tooltip.placement
48445
48493
  },
48446
- disappearDelay: baseIcon.tooltip.disappearDelay,
48447
48494
  style: Object.assign({}, scene.table.internalProps.theme?.tooltipStyle, baseIcon.tooltip?.style)
48448
48495
  };
48449
48496
  if (!scene.table.internalProps.tooltipHandler.isBinded(tooltipOptions)) {
@@ -56359,8 +56406,8 @@
56359
56406
  .vtable__bubble-tooltip-element {
56360
56407
  position: absolute;
56361
56408
 
56362
- // pointer-events: none;
56363
- //user-select: none;
56409
+ pointer-events: none;
56410
+ user-select: none;
56364
56411
  max-width: 300px;
56365
56412
  z-index: 99999;
56366
56413
 
@@ -56374,8 +56421,6 @@
56374
56421
  }
56375
56422
  .vtable__bubble-tooltip-element--hidden {
56376
56423
  opacity: 0;
56377
- pointer-events: none;
56378
- user-select: none;
56379
56424
  /* transform: translate(-50%, -50%); */
56380
56425
  transition: opacity 75ms linear;
56381
56426
  }
@@ -56428,8 +56473,6 @@
56428
56473
  _rootElement;
56429
56474
  _messageElement;
56430
56475
  _triangleElement;
56431
- _disappearDelay;
56432
- _disappearDelayId;
56433
56476
  constructor() {
56434
56477
  this._handler = new EventHandler();
56435
56478
  const rootElement = (this._rootElement = createElement('div', [TOOLTIP_CLASS, HIDDEN_CLASS]));
@@ -56439,17 +56482,8 @@
56439
56482
  rootElement.appendChild(messageElement);
56440
56483
  this._messageElement = rootElement.querySelector(`.${CONTENT_CLASS}`) || undefined;
56441
56484
  this._triangleElement = rootElement.querySelector(`.${TRIANGLE_CLASS}`) || undefined;
56442
- rootElement.addEventListener('mousemove', () => {
56443
- this._disappearDelayId && clearTimeout(this._disappearDelayId);
56444
- });
56445
- rootElement.addEventListener('mouseleave', () => {
56446
- this._disappearDelay = undefined;
56447
- this.unbindFromCell();
56448
- });
56449
56485
  }
56450
56486
  bindToCell(table, col, row, tooltipInstanceInfo, confine) {
56451
- this._disappearDelay = tooltipInstanceInfo?.disappearDelay;
56452
- this._disappearDelayId && clearTimeout(this._disappearDelayId);
56453
56487
  const rootElement = this._rootElement;
56454
56488
  const messageElement = this._messageElement;
56455
56489
  const triangle = this._triangleElement;
@@ -56505,21 +56539,10 @@
56505
56539
  }
56506
56540
  }
56507
56541
  unbindFromCell() {
56508
- if (this._disappearDelay) {
56509
- this._disappearDelayId = setTimeout(() => {
56510
- const rootElement = this._rootElement;
56511
- if (rootElement?.parentElement) {
56512
- rootElement.classList.remove(SHOWN_CLASS);
56513
- rootElement.classList.add(HIDDEN_CLASS);
56514
- }
56515
- }, this._disappearDelay ?? 0);
56516
- }
56517
- else {
56518
- const rootElement = this._rootElement;
56519
- if (rootElement?.parentElement) {
56520
- rootElement.classList.remove(SHOWN_CLASS);
56521
- rootElement.classList.add(HIDDEN_CLASS);
56522
- }
56542
+ const rootElement = this._rootElement;
56543
+ if (rootElement?.parentElement) {
56544
+ rootElement.classList.remove(SHOWN_CLASS);
56545
+ rootElement.classList.add(HIDDEN_CLASS);
56523
56546
  }
56524
56547
  }
56525
56548
  _canBindToCell(table, col, row) {
@@ -56847,7 +56870,6 @@
56847
56870
  placement: Placement.bottom,
56848
56871
  rect
56849
56872
  },
56850
- disappearDelay: table.internalProps.tooltip.overflowTextTooltipDisappearDelay ?? 0,
56851
56873
  style: { arrowMark: false }
56852
56874
  };
56853
56875
  }
@@ -56864,7 +56886,6 @@
56864
56886
  placement: Placement.bottom,
56865
56887
  rect
56866
56888
  },
56867
- disappearDelay: table.internalProps.tooltip.overflowTextTooltipDisappearDelay ?? 0,
56868
56889
  style: table.theme.tooltipStyle
56869
56890
  };
56870
56891
  }
@@ -59023,7 +59044,7 @@
59023
59044
  return TABLE_EVENT_TYPE;
59024
59045
  }
59025
59046
  options;
59026
- version = "1.2.0-alpha.3";
59047
+ version = "1.2.0";
59027
59048
  pagination;
59028
59049
  id = `VTable${Date.now()}`;
59029
59050
  headerStyleCache;
@@ -72002,7 +72023,7 @@
72002
72023
  }
72003
72024
 
72004
72025
  registerForVrender();
72005
- const version = "1.2.0-alpha.3";
72026
+ const version = "1.2.0";
72006
72027
  function getIcons() {
72007
72028
  return get$2();
72008
72029
  }