@visactor/vtable 0.19.2-alpha.0 → 0.19.2-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/dist/vtable.js CHANGED
@@ -35240,8 +35240,9 @@
35240
35240
  dx: hierarchyOffset,
35241
35241
  x
35242
35242
  };
35243
+ const oldText = textMark.attribute.text;
35243
35244
  textMark.setAttributes(cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute);
35244
- if (textMark.attribute.text) {
35245
+ if (!oldText && textMark.attribute.text) {
35245
35246
  const textBaseline = cellTheme.text.textBaseline;
35246
35247
  const height = cellHeight - (padding[0] + padding[2]);
35247
35248
  let y = 0;
@@ -39556,10 +39557,13 @@
39556
39557
  context.moveTo(x, y);
39557
39558
  context.lineTo(x + width, y);
39558
39559
  }
39559
- if ((isSplitDraw || isDash) && (!strokeArrayColor || strokeArrayColor[0])) {
39560
- if (strokeArrayColor) {
39560
+ if (isSplitDraw || isDash) {
39561
+ if (strokeArrayColor && strokeArrayColor[0]) {
39561
39562
  context.strokeStyle = strokeArrayColor[0];
39562
39563
  }
39564
+ else {
39565
+ context.strokeStyle = 'transparent';
39566
+ }
39563
39567
  if (!isWidthNumber) {
39564
39568
  context.lineWidth = strokeArrayWidth[0];
39565
39569
  }
@@ -39582,10 +39586,13 @@
39582
39586
  context.moveTo(x + width, y);
39583
39587
  context.lineTo(x + width, y + height);
39584
39588
  }
39585
- if ((isSplitDraw || isDash) && (!strokeArrayColor || strokeArrayColor[1])) {
39586
- if (strokeArrayColor) {
39589
+ if (isSplitDraw || isDash) {
39590
+ if (strokeArrayColor && strokeArrayColor[1]) {
39587
39591
  context.strokeStyle = strokeArrayColor[1];
39588
39592
  }
39593
+ else {
39594
+ context.strokeStyle = 'transparent';
39595
+ }
39589
39596
  if (!isWidthNumber) {
39590
39597
  context.lineWidth = strokeArrayWidth[1];
39591
39598
  }
@@ -39608,10 +39615,13 @@
39608
39615
  context.moveTo(x, y + height);
39609
39616
  context.lineTo(x + width, y + height);
39610
39617
  }
39611
- if ((isSplitDraw || isDash) && (!strokeArrayColor || strokeArrayColor[2])) {
39612
- if (strokeArrayColor) {
39618
+ if (isSplitDraw || isDash) {
39619
+ if (strokeArrayColor && strokeArrayColor[2]) {
39613
39620
  context.strokeStyle = strokeArrayColor[2];
39614
39621
  }
39622
+ else {
39623
+ context.strokeStyle = 'transparent';
39624
+ }
39615
39625
  if (!isWidthNumber) {
39616
39626
  context.lineWidth = strokeArrayWidth[2];
39617
39627
  }
@@ -39634,10 +39644,13 @@
39634
39644
  context.moveTo(x, y);
39635
39645
  context.lineTo(x, y + height);
39636
39646
  }
39637
- if ((isSplitDraw || isDash) && (!strokeArrayColor || strokeArrayColor[3])) {
39638
- if (strokeArrayColor) {
39647
+ if (isSplitDraw || isDash) {
39648
+ if (strokeArrayColor && strokeArrayColor[3]) {
39639
39649
  context.strokeStyle = strokeArrayColor[3];
39640
39650
  }
39651
+ else {
39652
+ context.strokeStyle = 'transparent';
39653
+ }
39641
39654
  if (!isWidthNumber) {
39642
39655
  context.lineWidth = strokeArrayWidth[3];
39643
39656
  }
@@ -45041,7 +45054,11 @@
45041
45054
  this.updateTableSize();
45042
45055
  const isListTableWithFrozen = !this.isPivot;
45043
45056
  createFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle, this.bodyGroup.role, isListTableWithFrozen ? [true, true, true, false] : undefined);
45044
- createFrameBorder(this.rowHeaderGroup, this.isPivot ? this.table.theme.rowHeaderStyle.frameStyle : this.table.theme.bodyStyle.frameStyle, this.rowHeaderGroup.role, isListTableWithFrozen ? [true, false, true, true] : undefined);
45057
+ createFrameBorder(this.rowHeaderGroup, this.isPivot
45058
+ ? this.table.theme.rowHeaderStyle.frameStyle
45059
+ : this.table.internalProps.transpose
45060
+ ? this.table.theme.headerStyle.frameStyle
45061
+ : this.table.theme.bodyStyle.frameStyle, this.rowHeaderGroup.role, isListTableWithFrozen ? [true, false, true, true] : undefined);
45045
45062
  createFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle, this.colHeaderGroup.role, isListTableWithFrozen ? [true, true, true, false] : undefined);
45046
45063
  createFrameBorder(this.cornerHeaderGroup, this.isPivot ? this.table.theme.cornerHeaderStyle.frameStyle : this.table.theme.headerStyle.frameStyle, this.cornerHeaderGroup.role, isListTableWithFrozen ? [true, false, true, true] : undefined);
45047
45064
  createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role, undefined);
@@ -51721,7 +51738,7 @@
51721
51738
  return TABLE_EVENT_TYPE;
51722
51739
  }
51723
51740
  options;
51724
- version = "0.19.2-alpha.0";
51741
+ version = "0.19.2-alpha.2";
51725
51742
  pagination;
51726
51743
  id = `VTable${Date.now()}`;
51727
51744
  headerStyleCache;
@@ -53448,15 +53465,24 @@
53448
53465
  }, styleClass, this.options.autoWrapText);
53449
53466
  }
53450
53467
  else {
53468
+ let defaultStyle;
53469
+ if (layoutMap.isColumnHeader(col, row) || layoutMap.isBottomFrozenRow(col, row)) {
53470
+ defaultStyle = this.theme.headerStyle;
53471
+ }
53472
+ else if (this.internalProps.transpose && layoutMap.isRowHeader(col, row)) {
53473
+ defaultStyle = this.theme.headerStyle;
53474
+ }
53475
+ else if (layoutMap.isRowHeader(col, row) || layoutMap.isRightFrozenColumn(col, row)) {
53476
+ defaultStyle = this.theme.rowHeaderStyle;
53477
+ }
53478
+ else {
53479
+ defaultStyle = this.theme.cornerHeaderStyle;
53480
+ }
53451
53481
  const style = hd?.style || {};
53452
53482
  if (paddingForAxis) {
53453
53483
  style.padding = paddingForAxis;
53454
53484
  }
53455
- cacheStyle = of$1(style, layoutMap.isColumnHeader(col, row) || layoutMap.isBottomFrozenRow(col, row)
53456
- ? this.theme.headerStyle
53457
- : layoutMap.isRowHeader(col, row) || layoutMap.isRightFrozenColumn(col, row)
53458
- ? this.theme.rowHeaderStyle
53459
- : this.theme.cornerHeaderStyle, {
53485
+ cacheStyle = of$1(style, defaultStyle, {
53460
53486
  col,
53461
53487
  row,
53462
53488
  table: this,
@@ -63143,7 +63169,7 @@
63143
63169
  }
63144
63170
 
63145
63171
  registerForVrender();
63146
- const version = "0.19.2-alpha.0";
63172
+ const version = "0.19.2-alpha.2";
63147
63173
  function getIcons() {
63148
63174
  return get$1();
63149
63175
  }