@visactor/vtable 0.22.0 → 0.22.2-alpha.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 (103) hide show
  1. package/cjs/ListTable.js.map +1 -1
  2. package/cjs/body-helper/style/Style.d.ts +3 -0
  3. package/cjs/body-helper/style/Style.js +22 -15
  4. package/cjs/body-helper/style/Style.js.map +1 -1
  5. package/cjs/core/BaseTable.d.ts +1 -1
  6. package/cjs/core/BaseTable.js +23 -8
  7. package/cjs/core/BaseTable.js.map +1 -1
  8. package/cjs/data/DataSource.js +5 -1
  9. package/cjs/data/DataSource.js.map +1 -1
  10. package/cjs/event/event.js +2 -1
  11. package/cjs/event/event.js.map +1 -1
  12. package/cjs/header-helper/style/Style.d.ts +3 -0
  13. package/cjs/header-helper/style/Style.js +26 -19
  14. package/cjs/header-helper/style/Style.js.map +1 -1
  15. package/cjs/index.d.ts +1 -1
  16. package/cjs/index.js +1 -1
  17. package/cjs/index.js.map +1 -1
  18. package/cjs/layout/pivot-header-layout.js +1 -1
  19. package/cjs/layout/pivot-header-layout.js.map +1 -1
  20. package/cjs/scenegraph/component/custom.js +1 -1
  21. package/cjs/scenegraph/component/custom.js.map +1 -1
  22. package/cjs/scenegraph/group-creater/cell-helper.d.ts +1 -0
  23. package/cjs/scenegraph/group-creater/cell-helper.js +19 -27
  24. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  25. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +5 -4
  26. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
  27. package/cjs/scenegraph/group-creater/column-helper.js +3 -2
  28. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  29. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +1 -1
  30. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  31. package/cjs/scenegraph/group-creater/progress/proxy.js +1 -1
  32. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  33. package/cjs/scenegraph/layout/compute-col-width.js +7 -4
  34. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  35. package/cjs/scenegraph/layout/compute-row-height.js +70 -71
  36. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  37. package/cjs/scenegraph/layout/update-height.js +18 -11
  38. package/cjs/scenegraph/layout/update-height.js.map +1 -1
  39. package/cjs/scenegraph/layout/update-width.js +19 -13
  40. package/cjs/scenegraph/layout/update-width.js.map +1 -1
  41. package/cjs/scenegraph/select/update-select-border.d.ts +2 -0
  42. package/cjs/scenegraph/select/update-select-border.js +19 -2
  43. package/cjs/scenegraph/select/update-select-border.js.map +1 -1
  44. package/cjs/scenegraph/utils/text-icon-layout.js +1 -1
  45. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  46. package/cjs/scenegraph/utils/text-measure.js +6 -6
  47. package/cjs/scenegraph/utils/text-measure.js.map +1 -1
  48. package/cjs/ts-types/new-data-set.d.ts +2 -1
  49. package/cjs/ts-types/new-data-set.js.map +1 -1
  50. package/cjs/vrender.js.map +1 -1
  51. package/dist/vtable.js +245 -172
  52. package/dist/vtable.min.js +2 -2
  53. package/es/ListTable.js.map +1 -1
  54. package/es/body-helper/style/Style.d.ts +3 -0
  55. package/es/body-helper/style/Style.js +22 -15
  56. package/es/body-helper/style/Style.js.map +1 -1
  57. package/es/core/BaseTable.d.ts +1 -1
  58. package/es/core/BaseTable.js +22 -8
  59. package/es/core/BaseTable.js.map +1 -1
  60. package/es/data/DataSource.js +5 -1
  61. package/es/data/DataSource.js.map +1 -1
  62. package/es/event/event.js +2 -1
  63. package/es/event/event.js.map +1 -1
  64. package/es/header-helper/style/Style.d.ts +3 -0
  65. package/es/header-helper/style/Style.js +26 -19
  66. package/es/header-helper/style/Style.js.map +1 -1
  67. package/es/index.d.ts +1 -1
  68. package/es/index.js +1 -1
  69. package/es/index.js.map +1 -1
  70. package/es/layout/pivot-header-layout.js +1 -1
  71. package/es/layout/pivot-header-layout.js.map +1 -1
  72. package/es/scenegraph/component/custom.js +1 -1
  73. package/es/scenegraph/component/custom.js.map +1 -1
  74. package/es/scenegraph/group-creater/cell-helper.d.ts +1 -0
  75. package/es/scenegraph/group-creater/cell-helper.js +14 -25
  76. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  77. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +6 -3
  78. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
  79. package/es/scenegraph/group-creater/column-helper.js +5 -4
  80. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  81. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +1 -1
  82. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  83. package/es/scenegraph/group-creater/progress/proxy.js +1 -1
  84. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  85. package/es/scenegraph/layout/compute-col-width.js +6 -4
  86. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  87. package/es/scenegraph/layout/compute-row-height.js +69 -70
  88. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  89. package/es/scenegraph/layout/update-height.js +16 -9
  90. package/es/scenegraph/layout/update-height.js.map +1 -1
  91. package/es/scenegraph/layout/update-width.js +19 -10
  92. package/es/scenegraph/layout/update-width.js.map +1 -1
  93. package/es/scenegraph/select/update-select-border.d.ts +2 -0
  94. package/es/scenegraph/select/update-select-border.js +16 -0
  95. package/es/scenegraph/select/update-select-border.js.map +1 -1
  96. package/es/scenegraph/utils/text-icon-layout.js +1 -1
  97. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  98. package/es/scenegraph/utils/text-measure.js +6 -6
  99. package/es/scenegraph/utils/text-measure.js.map +1 -1
  100. package/es/ts-types/new-data-set.d.ts +2 -1
  101. package/es/ts-types/new-data-set.js.map +1 -1
  102. package/es/vrender.js.map +1 -1
  103. package/package.json +5 -5
@@ -18,7 +18,7 @@ class Style extends EventTarget_1.EventTarget {
18
18
  return defaultStyle || (defaultStyle = new Style);
19
19
  }
20
20
  constructor(style = {}, headerStyle = {}) {
21
- 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, _4;
21
+ 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, _4, _5, _6;
22
22
  super(), this._defaultPadding = [ 10, 16, 10, 16 ], this._color = null !== (_a = style.color) && void 0 !== _a ? _a : null == headerStyle ? void 0 : headerStyle.color,
23
23
  this._fontSize = null !== (_b = style.fontSize) && void 0 !== _b ? _b : null == headerStyle ? void 0 : headerStyle.fontSize,
24
24
  this._fontFamily = null !== (_c = style.fontFamily) && void 0 !== _c ? _c : null == headerStyle ? void 0 : headerStyle.fontFamily,
@@ -27,24 +27,25 @@ class Style extends EventTarget_1.EventTarget {
27
27
  this._fontStyle = null !== (_f = style.fontStyle) && void 0 !== _f ? _f : null == headerStyle ? void 0 : headerStyle.fontStyle,
28
28
  this._textOverflow = (null !== (_g = style.textOverflow) && void 0 !== _g ? _g : null == headerStyle ? void 0 : headerStyle.textOverflow) || "ellipsis",
29
29
  this._textStick = null !== (_j = null !== (_h = style.textStick) && void 0 !== _h ? _h : null == headerStyle ? void 0 : headerStyle.textStick) && void 0 !== _j && _j,
30
- this._marked = null !== (_l = null !== (_k = style.marked) && void 0 !== _k ? _k : null == headerStyle ? void 0 : headerStyle.marked) && void 0 !== _l && _l,
31
- this._textAlign = (null !== (_m = style.textAlign) && void 0 !== _m ? _m : null == headerStyle ? void 0 : headerStyle.textAlign) || "left",
32
- this._textBaseline = (null !== (_o = style.textBaseline) && void 0 !== _o ? _o : null == headerStyle ? void 0 : headerStyle.textBaseline) || "middle",
33
- this._bgColor = null !== (_p = style.bgColor) && void 0 !== _p ? _p : null == headerStyle ? void 0 : headerStyle.bgColor,
34
- this._padding = null !== (_r = null !== (_q = style.padding) && void 0 !== _q ? _q : null == headerStyle ? void 0 : headerStyle.padding) && void 0 !== _r ? _r : this._defaultPadding,
35
- this._borderColor = null !== (_s = style.borderColor) && void 0 !== _s ? _s : null == headerStyle ? void 0 : headerStyle.borderColor,
36
- this._lineHeight = null !== (_t = style.lineHeight) && void 0 !== _t ? _t : null == headerStyle ? void 0 : headerStyle.lineHeight,
37
- this._underline = null !== (_u = style.underline) && void 0 !== _u ? _u : null == headerStyle ? void 0 : headerStyle.underline,
38
- this._underlineColor = null !== (_v = style.underlineColor) && void 0 !== _v ? _v : null == headerStyle ? void 0 : headerStyle.underlineColor,
39
- this._underlineDash = null !== (_w = style.underlineDash) && void 0 !== _w ? _w : null == headerStyle ? void 0 : headerStyle.underlineDash,
40
- this._underlineOffset = null !== (_x = style.underlineOffset) && void 0 !== _x ? _x : null == headerStyle ? void 0 : headerStyle.underlineOffset,
41
- this._lineThrough = null !== (_y = style.lineThrough) && void 0 !== _y ? _y : null == headerStyle ? void 0 : headerStyle.lineThrough,
42
- this._lineThroughColor = null !== (_z = style.lineThroughColor) && void 0 !== _z ? _z : null == headerStyle ? void 0 : headerStyle.lineThroughColor,
43
- this._lineThroughDash = null !== (_0 = style.lineThroughDash) && void 0 !== _0 ? _0 : null == headerStyle ? void 0 : headerStyle.lineThroughDash,
44
- this._linkColor = null !== (_1 = style.linkColor) && void 0 !== _1 ? _1 : null == headerStyle ? void 0 : headerStyle.linkColor,
45
- this._cursor = null !== (_2 = style.cursor) && void 0 !== _2 ? _2 : null == headerStyle ? void 0 : headerStyle.cursor,
46
- this._borderLineWidth = null !== (_3 = style.borderLineWidth) && void 0 !== _3 ? _3 : null == headerStyle ? void 0 : headerStyle.borderLineWidth,
47
- this._borderLineDash = null !== (_4 = style.borderLineDash) && void 0 !== _4 ? _4 : null == headerStyle ? void 0 : headerStyle.borderLineDash;
30
+ this._textStickBaseOnAlign = null !== (_l = null !== (_k = style.textStickBaseOnAlign) && void 0 !== _k ? _k : null == headerStyle ? void 0 : headerStyle.textStickBaseOnAlign) && void 0 !== _l && _l,
31
+ this._marked = null !== (_o = null !== (_m = style.marked) && void 0 !== _m ? _m : null == headerStyle ? void 0 : headerStyle.marked) && void 0 !== _o && _o,
32
+ this._textAlign = (null !== (_p = style.textAlign) && void 0 !== _p ? _p : null == headerStyle ? void 0 : headerStyle.textAlign) || "left",
33
+ this._textBaseline = (null !== (_q = style.textBaseline) && void 0 !== _q ? _q : null == headerStyle ? void 0 : headerStyle.textBaseline) || "middle",
34
+ this._bgColor = null !== (_r = style.bgColor) && void 0 !== _r ? _r : null == headerStyle ? void 0 : headerStyle.bgColor,
35
+ this._padding = null !== (_t = null !== (_s = style.padding) && void 0 !== _s ? _s : null == headerStyle ? void 0 : headerStyle.padding) && void 0 !== _t ? _t : this._defaultPadding,
36
+ this._borderColor = null !== (_u = style.borderColor) && void 0 !== _u ? _u : null == headerStyle ? void 0 : headerStyle.borderColor,
37
+ this._lineHeight = null !== (_v = style.lineHeight) && void 0 !== _v ? _v : null == headerStyle ? void 0 : headerStyle.lineHeight,
38
+ this._underline = null !== (_w = style.underline) && void 0 !== _w ? _w : null == headerStyle ? void 0 : headerStyle.underline,
39
+ this._underlineColor = null !== (_x = style.underlineColor) && void 0 !== _x ? _x : null == headerStyle ? void 0 : headerStyle.underlineColor,
40
+ this._underlineDash = null !== (_y = style.underlineDash) && void 0 !== _y ? _y : null == headerStyle ? void 0 : headerStyle.underlineDash,
41
+ this._underlineOffset = null !== (_z = style.underlineOffset) && void 0 !== _z ? _z : null == headerStyle ? void 0 : headerStyle.underlineOffset,
42
+ this._lineThrough = null !== (_0 = style.lineThrough) && void 0 !== _0 ? _0 : null == headerStyle ? void 0 : headerStyle.lineThrough,
43
+ this._lineThroughColor = null !== (_1 = style.lineThroughColor) && void 0 !== _1 ? _1 : null == headerStyle ? void 0 : headerStyle.lineThroughColor,
44
+ this._lineThroughDash = null !== (_2 = style.lineThroughDash) && void 0 !== _2 ? _2 : null == headerStyle ? void 0 : headerStyle.lineThroughDash,
45
+ this._linkColor = null !== (_3 = style.linkColor) && void 0 !== _3 ? _3 : null == headerStyle ? void 0 : headerStyle.linkColor,
46
+ this._cursor = null !== (_4 = style.cursor) && void 0 !== _4 ? _4 : null == headerStyle ? void 0 : headerStyle.cursor,
47
+ this._borderLineWidth = null !== (_5 = style.borderLineWidth) && void 0 !== _5 ? _5 : null == headerStyle ? void 0 : headerStyle.borderLineWidth,
48
+ this._borderLineDash = null !== (_6 = style.borderLineDash) && void 0 !== _6 ? _6 : null == headerStyle ? void 0 : headerStyle.borderLineDash;
48
49
  }
49
50
  get bgColor() {
50
51
  return this._bgColor;
@@ -113,6 +114,12 @@ class Style extends EventTarget_1.EventTarget {
113
114
  set textStick(textStick) {
114
115
  this._textStick = textStick;
115
116
  }
117
+ get textStickBaseOnAlign() {
118
+ return this._textStickBaseOnAlign;
119
+ }
120
+ set textStickBaseOnAlign(textStickBaseOnAlign) {
121
+ this._textStickBaseOnAlign = textStickBaseOnAlign;
122
+ }
116
123
  get marked() {
117
124
  return this._marked;
118
125
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/header-helper/style/Style.ts"],"names":[],"mappings":";;;AAsBA,IAAI,YAAmB,CAAC;AACxB,yDAAsD;AACtD,MAAM,UAAU,GAAG;IACjB,YAAY,EAAE,cAAc;CAC7B,CAAC;AACF,MAAa,KAAM,SAAQ,yBAAW;IAqCpC,MAAM,KAAK,UAAU;QACnB,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,MAAM,KAAK,OAAO;QAChB,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,QAAsB,EAAE,EAAE,cAA4B,EAAE;;QAClE,KAAK,EAAE,CAAC;QAnCF,oBAAe,GAA2B,CAAC,EAAE,EAAE,EAAE,EAAE,EA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AAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IACD,IAAI,gBAAgB,CAAC,gBAAiD;QACpE,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAE5C,CAAC;IACD,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IACD,IAAI,eAAe,CAAC,eAAmD;QACrE,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAE1C,CAAC;IACD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IACD,IAAI,SAAS,CAAC,SAA0C;QACtD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAE9B,CAAC;IAoCD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,IAAI,MAAM,CAAC,MAAwC;QACjD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAExB,CAAC;IACD,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IACD,IAAI,eAAe,CAAC,eAAqD;QACvE,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAE1C,CAAC;IACD,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IACD,IAAI,cAAc,CAAC,cAAmD;QACpE,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IAExC,CAAC;IAID,KAAK;QACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACF;AArTD,sBAqTC","file":"Style.js","sourcesContent":["import type {\n ColorPropertyDefine,\n ColorsPropertyDefine,\n ColumnStyle,\n IStyleOption,\n TextOverflow,\n UnderlinePropertyDefine,\n LineThroughPropertyDefine,\n LineDashPropertyDefine,\n PaddingsPropertyDefine,\n CursorPropertyDefine,\n LineWidthsPropertyDefine,\n LineDashsPropertyDefine,\n MarkedPropertyDefine,\n FontSizePropertyDefine,\n FontFamilyPropertyDefine,\n FontWeightPropertyDefine,\n FontVariantPropertyDefine,\n FontStylePropertyDefine,\n TextAlignType,\n TextBaselineType\n} from '../../ts-types';\nlet defaultStyle: Style;\nimport { EventTarget } from '../../event/EventTarget';\nconst EVENT_TYPE = {\n CHANGE_STYLE: 'change_style'\n};\nexport class Style extends EventTarget implements ColumnStyle {\n private _color?: ColorPropertyDefine;\n private _fontSize?: FontSizePropertyDefine;\n private _fontFamily?: FontFamilyPropertyDefine;\n private _fontWeight?: FontWeightPropertyDefine;\n private _fontVariant?: FontVariantPropertyDefine;\n private _fontStyle?: FontStylePropertyDefine;\n private _textOverflow: TextOverflow;\n private _padding: PaddingsPropertyDefine | undefined;\n private _defaultPadding: PaddingsPropertyDefine = [10, 16, 10, 16];\n private _textStick: boolean;\n private _marked: MarkedPropertyDefine;\n // eslint-disable-next-line no-undef\n private _textAlign: TextAlignType;\n // eslint-disable-next-line no-undef\n private _textBaseline: TextBaselineType;\n private _bgColor?: ColorPropertyDefine;\n private _borderColor?: ColorsPropertyDefine;\n private _lineHeight?: number;\n private _underline?: UnderlinePropertyDefine;\n private _underlineColor?: ColorPropertyDefine;\n private _underlineDash?: LineDashPropertyDefine;\n private _underlineOffset?: number;\n private _lineThrough?: LineThroughPropertyDefine;\n private _lineThroughColor?: ColorPropertyDefine;\n private _lineThroughDash?: LineDashPropertyDefine;\n private _linkColor?: ColorPropertyDefine;\n\n // private _tag?: TagPropertyDefine;\n // private _tagFont?: FontPropertyDefine;\n // private _tagColor?: ColorPropertyDefine;\n // private _tagBgColor?: ColorPropertyDefine;\n // private _tagMargin?: number | string | (number | string)[];\n\n private _cursor?: CursorPropertyDefine;\n private _borderLineWidth?: LineWidthsPropertyDefine;\n private _borderLineDash?: LineDashsPropertyDefine;\n static get EVENT_TYPE(): { CHANGE_STYLE: string } {\n return EVENT_TYPE;\n }\n static get DEFAULT(): Style {\n return defaultStyle ? defaultStyle : (defaultStyle = new Style());\n }\n constructor(style: IStyleOption = {}, headerStyle: IStyleOption = {}) {\n super();\n this._color = style.color ?? headerStyle?.color;\n // icon为文字前后可添加的图标\n // this._icon = style.icon;\n this._fontSize = style.fontSize ?? headerStyle?.fontSize;\n this._fontFamily = style.fontFamily ?? headerStyle?.fontFamily;\n this._fontWeight = style.fontWeight ?? headerStyle?.fontWeight;\n this._fontVariant = style.fontVariant ?? headerStyle?.fontVariant;\n this._fontStyle = style.fontStyle ?? headerStyle?.fontStyle;\n this._textOverflow = (style.textOverflow ?? headerStyle?.textOverflow) || 'ellipsis';\n this._textStick = style.textStick ?? headerStyle?.textStick ?? false;\n this._marked = style.marked ?? headerStyle?.marked ?? false;\n this._textAlign = (style.textAlign ?? headerStyle?.textAlign) || 'left';\n this._textBaseline = (style.textBaseline ?? headerStyle?.textBaseline) || 'middle';\n this._bgColor = style.bgColor ?? headerStyle?.bgColor;\n this._padding = style.padding ?? headerStyle?.padding ?? this._defaultPadding;\n this._borderColor = style.borderColor ?? headerStyle?.borderColor;\n this._lineHeight = style.lineHeight ?? headerStyle?.lineHeight;\n this._underline = style.underline ?? headerStyle?.underline;\n this._underlineColor = style.underlineColor ?? headerStyle?.underlineColor;\n this._underlineDash = style.underlineDash ?? headerStyle?.underlineDash;\n this._underlineOffset = style.underlineOffset ?? headerStyle?.underlineOffset;\n this._lineThrough = style.lineThrough ?? headerStyle?.lineThrough;\n this._lineThroughColor = style.lineThroughColor ?? headerStyle?.lineThroughColor;\n this._lineThroughDash = style.lineThroughDash ?? headerStyle?.lineThroughDash;\n this._linkColor = style.linkColor ?? headerStyle?.linkColor;\n\n // this._tag = style.tag ?? headerStyle?.tag;\n // this._tagFont = style.tagFont ?? headerStyle?.tagFont;\n // this._tagColor = style.tagColor ?? headerStyle?.tagColor;\n // this._tagBgColor = style.tagBgColor ?? headerStyle?.tagBgColor;\n // this._tagMargin = style.tagMargin ?? headerStyle?.tagMargin;\n this._cursor = style.cursor ?? headerStyle?.cursor;\n this._borderLineWidth = style.borderLineWidth ?? headerStyle?.borderLineWidth;\n this._borderLineDash = style.borderLineDash ?? headerStyle?.borderLineDash;\n }\n get bgColor(): ColorPropertyDefine | undefined {\n return this._bgColor;\n }\n set bgColor(bgColor: ColorPropertyDefine | undefined) {\n this._bgColor = bgColor;\n //this.doChangeStyle();\n }\n get color(): ColorPropertyDefine | undefined {\n return this._color;\n }\n set color(color: ColorPropertyDefine | undefined) {\n this._color = color;\n //this.doChangeStyle();\n }\n get fontSize(): FontSizePropertyDefine | undefined {\n return this._fontSize;\n }\n set fontSize(fontSize: FontSizePropertyDefine | undefined) {\n this._fontSize = fontSize;\n //this.doChangeStyle();\n }\n get fontFamily(): FontFamilyPropertyDefine | undefined {\n return this._fontFamily;\n }\n set fontFamily(fontFamily: FontFamilyPropertyDefine | undefined) {\n this._fontFamily = fontFamily;\n //this.doChangeStyle();\n }\n get fontWeight(): FontWeightPropertyDefine | undefined {\n return this._fontWeight;\n }\n set fontWeight(fontWeight: FontWeightPropertyDefine | undefined) {\n this._fontWeight = fontWeight;\n //this.doChangeStyle();\n }\n get fontVariant(): FontVariantPropertyDefine | undefined {\n return this._fontVariant;\n }\n set fontVariant(fontVariant: FontVariantPropertyDefine | undefined) {\n this._fontVariant = fontVariant;\n //this.doChangeStyle();\n }\n get fontStyle(): FontStylePropertyDefine | undefined {\n return this._fontStyle;\n }\n set fontStyle(fontStyle: FontStylePropertyDefine | undefined) {\n this._fontStyle = fontStyle;\n //this.doChangeStyle();\n }\n get textOverflow(): TextOverflow {\n return this._textOverflow;\n }\n set textOverflow(textOverflow: TextOverflow) {\n this._textOverflow = textOverflow;\n //this.doChangeStyle();\n }\n get padding(): PaddingsPropertyDefine | undefined {\n return this._padding ?? this._defaultPadding;\n }\n set padding(padding: PaddingsPropertyDefine | undefined) {\n this._padding = padding;\n //this.doChangeStyle();\n }\n get borderColor(): ColorsPropertyDefine | undefined {\n return this._borderColor;\n }\n set borderColor(borderColor: ColorsPropertyDefine | undefined) {\n this._borderColor = borderColor;\n //this.doChangeStyle();\n }\n get textStick(): boolean {\n return this._textStick;\n }\n set textStick(textStick: boolean) {\n this._textStick = textStick;\n //this.doChangeStyle();\n }\n get marked(): MarkedPropertyDefine | undefined {\n return this._marked;\n }\n set marked(marked: MarkedPropertyDefine | undefined) {\n this._marked = marked;\n //this.doChangeStyle();\n }\n // eslint-disable-next-line no-undef\n get textAlign(): TextAlignType {\n return this._textAlign;\n }\n // eslint-disable-next-line no-undef\n set textAlign(textAlign: TextAlignType) {\n this._textAlign = textAlign;\n //this.doChangeStyle();\n }\n // eslint-disable-next-line no-undef\n get textBaseline(): TextBaselineType {\n return this._textBaseline;\n }\n // eslint-disable-next-line no-undef\n set textBaseline(textBaseline: TextBaselineType) {\n this._textBaseline = textBaseline;\n //this.doChangeStyle();\n }\n get lineHeight(): number | undefined {\n return this._lineHeight;\n }\n set lineHeight(lineHeight: number | undefined) {\n this._lineHeight = lineHeight;\n //this.doChangeStyle();\n }\n get underline(): UnderlinePropertyDefine | undefined {\n return this._underline;\n }\n set underline(underline: UnderlinePropertyDefine | undefined) {\n this._underline = underline;\n //this.doChangeStyle();\n }\n get underlineColor(): ColorPropertyDefine | undefined {\n return this._underlineColor;\n }\n set underlineColor(underlineColor: ColorPropertyDefine | undefined) {\n this._underlineColor = underlineColor;\n //this.doChangeStyle();\n }\n get underlineDash(): LineDashPropertyDefine | undefined {\n return this._underlineDash;\n }\n set underlineDash(underlineDash: LineDashPropertyDefine | undefined) {\n this._underlineDash = underlineDash;\n //this.doChangeStyle();\n }\n\n get underlineOffset(): number | undefined {\n return this._underlineOffset;\n }\n set underlineOffset(underlineOffset: number | undefined) {\n this._underlineOffset = underlineOffset;\n //this.doChangeStyle();\n }\n\n get lineThrough(): LineThroughPropertyDefine | undefined {\n return this._lineThrough;\n }\n set lineThrough(lineThrough: LineThroughPropertyDefine | undefined) {\n this._lineThrough = lineThrough;\n //this.doChangeStyle();\n }\n get lineThroughColor(): ColorPropertyDefine | undefined {\n return this._lineThroughColor;\n }\n set lineThroughColor(lineThroughColor: ColorPropertyDefine | undefined) {\n this._lineThroughColor = lineThroughColor;\n //this.doChangeStyle();\n }\n get lineThroughDash(): LineDashPropertyDefine | undefined {\n return this._lineThroughDash;\n }\n set lineThroughDash(lineThroughDash: LineDashPropertyDefine | undefined) {\n this._lineThroughDash = lineThroughDash;\n //this.doChangeStyle();\n }\n get linkColor(): ColorPropertyDefine | undefined {\n return this._linkColor;\n }\n set linkColor(linkColor: ColorPropertyDefine | undefined) {\n this._linkColor = linkColor;\n //this.doChangeStyle();\n }\n // get tag(): TagPropertyDefine | undefined {\n // return this._tag;\n // }\n // set tag(tag: TagPropertyDefine | undefined) {\n // this._tag = tag;\n // //this.doChangeStyle();\n // }\n // get tagFont(): FontPropertyDefine | undefined {\n // return this._tagFont;\n // }\n // set tagFont(tagFont: FontPropertyDefine | undefined) {\n // this._tagFont = tagFont;\n // //this.doChangeStyle();\n // }\n // get tagColor(): ColorPropertyDefine | undefined {\n // return this._tagColor;\n // }\n // set tagColor(tagColor: ColorPropertyDefine | undefined) {\n // this._tagColor = tagColor;\n // //this.doChangeStyle();\n // }\n // get tagBgColor(): ColorPropertyDefine | undefined {\n // return this._tagBgColor;\n // }\n // set tagBgColor(tagBgColor: ColorPropertyDefine | undefined) {\n // this._tagBgColor = tagBgColor;\n // //this.doChangeStyle();\n // }\n // get tagMargin(): number | string | (number | string)[] | undefined {\n // return this._tagMargin;\n // }\n // set tagMargin(tagMargin: number | string | (number | string)[] | undefined) {\n // this._tagMargin = tagMargin;\n // //this.doChangeStyle();\n // }\n get cursor(): CursorPropertyDefine | undefined {\n return this._cursor;\n }\n set cursor(cursor: CursorPropertyDefine | undefined) {\n this._cursor = cursor;\n //this.doChangeStyle();\n }\n get borderLineWidth(): LineWidthsPropertyDefine | undefined {\n return this._borderLineWidth;\n }\n set borderLineWidth(borderLineWidth: LineWidthsPropertyDefine | undefined) {\n this._borderLineWidth = borderLineWidth;\n //this.doChangeStyle();\n }\n get borderLineDash(): LineDashsPropertyDefine | undefined {\n return this._borderLineDash;\n }\n set borderLineDash(borderLineDash: LineDashsPropertyDefine | undefined) {\n this._borderLineDash = borderLineDash;\n //this.doChangeStyle();\n }\n // doChangeStyle(): void {\n // this.fireListeners(EVENT_TYPE.CHANGE_STYLE);\n // }\n clone(): Style {\n return new Style(this);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/header-helper/style/Style.ts"],"names":[],"mappings":";;;AAsBA,IAAI,YAAmB,CAAC;AACxB,yDAAsD;AACtD,MAAM,UAAU,GAAG;IACjB,YAAY,EAAE,cAAc;CAC7B,CAAC;AACF,MAAa,KAAM,SAAQ,yBAAW;IAsCpC,MAAM,KAAK,UAAU;QACnB,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,MAAM,KAAK,OAAO;QAChB,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,QAAsB,EAAE,EAAE,cAA4B,EAAE;;QAClE,KAAK,EAAE,CAAC;QApCF,oBAAe,GAA2B,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAqCjE,IAAI,CAAC,MAAM,GAAG,MAAA,KAAK,CAAC,KAAK,mCAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,CAAC;QAGhD,IAAI,CAAC,SAAS,GAAG,MAAA,KAAK,CAAC,QAAQ,mCAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,CAAC;QACzD,IAAI,CAAC,WAAW,GAAG,MAAA,KAAK,CAAC,UAAU,mCAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,CAAC;QAC/D,IAAI,CAAC,WAAW,GAAG,MAAA,KAAK,CAAC,UAAU,mCAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,CAAC;QAC/D,I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,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IACD,IAAI,eAAe,CAAC,eAAmD;QACrE,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAE1C,CAAC;IACD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IACD,IAAI,SAAS,CAAC,SAA0C;QACtD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAE9B,CAAC;IAoCD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,IAAI,MAAM,CAAC,MAAwC;QACjD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAExB,CAAC;IACD,IAAI,eAAe;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IACD,IAAI,eAAe,CAAC,eAAqD;QACvE,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAE1C,CAAC;IACD,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IACD,IAAI,cAAc,CAAC,cAAmD;QACpE,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IAExC,CAAC;IAID,KAAK;QACH,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACF;AA9TD,sBA8TC","file":"Style.js","sourcesContent":["import type {\n ColorPropertyDefine,\n ColorsPropertyDefine,\n ColumnStyle,\n IStyleOption,\n TextOverflow,\n UnderlinePropertyDefine,\n LineThroughPropertyDefine,\n LineDashPropertyDefine,\n PaddingsPropertyDefine,\n CursorPropertyDefine,\n LineWidthsPropertyDefine,\n LineDashsPropertyDefine,\n MarkedPropertyDefine,\n FontSizePropertyDefine,\n FontFamilyPropertyDefine,\n FontWeightPropertyDefine,\n FontVariantPropertyDefine,\n FontStylePropertyDefine,\n TextAlignType,\n TextBaselineType\n} from '../../ts-types';\nlet defaultStyle: Style;\nimport { EventTarget } from '../../event/EventTarget';\nconst EVENT_TYPE = {\n CHANGE_STYLE: 'change_style'\n};\nexport class Style extends EventTarget implements ColumnStyle {\n private _color?: ColorPropertyDefine;\n private _fontSize?: FontSizePropertyDefine;\n private _fontFamily?: FontFamilyPropertyDefine;\n private _fontWeight?: FontWeightPropertyDefine;\n private _fontVariant?: FontVariantPropertyDefine;\n private _fontStyle?: FontStylePropertyDefine;\n private _textOverflow: TextOverflow;\n private _padding: PaddingsPropertyDefine | undefined;\n private _defaultPadding: PaddingsPropertyDefine = [10, 16, 10, 16];\n private _textStick: boolean;\n private _textStickBaseOnAlign: boolean;\n private _marked: MarkedPropertyDefine;\n // eslint-disable-next-line no-undef\n private _textAlign: TextAlignType;\n // eslint-disable-next-line no-undef\n private _textBaseline: TextBaselineType;\n private _bgColor?: ColorPropertyDefine;\n private _borderColor?: ColorsPropertyDefine;\n private _lineHeight?: number;\n private _underline?: UnderlinePropertyDefine;\n private _underlineColor?: ColorPropertyDefine;\n private _underlineDash?: LineDashPropertyDefine;\n private _underlineOffset?: number;\n private _lineThrough?: LineThroughPropertyDefine;\n private _lineThroughColor?: ColorPropertyDefine;\n private _lineThroughDash?: LineDashPropertyDefine;\n private _linkColor?: ColorPropertyDefine;\n\n // private _tag?: TagPropertyDefine;\n // private _tagFont?: FontPropertyDefine;\n // private _tagColor?: ColorPropertyDefine;\n // private _tagBgColor?: ColorPropertyDefine;\n // private _tagMargin?: number | string | (number | string)[];\n\n private _cursor?: CursorPropertyDefine;\n private _borderLineWidth?: LineWidthsPropertyDefine;\n private _borderLineDash?: LineDashsPropertyDefine;\n static get EVENT_TYPE(): { CHANGE_STYLE: string } {\n return EVENT_TYPE;\n }\n static get DEFAULT(): Style {\n return defaultStyle ? defaultStyle : (defaultStyle = new Style());\n }\n constructor(style: IStyleOption = {}, headerStyle: IStyleOption = {}) {\n super();\n this._color = style.color ?? headerStyle?.color;\n // icon为文字前后可添加的图标\n // this._icon = style.icon;\n this._fontSize = style.fontSize ?? headerStyle?.fontSize;\n this._fontFamily = style.fontFamily ?? headerStyle?.fontFamily;\n this._fontWeight = style.fontWeight ?? headerStyle?.fontWeight;\n this._fontVariant = style.fontVariant ?? headerStyle?.fontVariant;\n this._fontStyle = style.fontStyle ?? headerStyle?.fontStyle;\n this._textOverflow = (style.textOverflow ?? headerStyle?.textOverflow) || 'ellipsis';\n this._textStick = style.textStick ?? headerStyle?.textStick ?? false;\n this._textStickBaseOnAlign = style.textStickBaseOnAlign ?? headerStyle?.textStickBaseOnAlign ?? false;\n this._marked = style.marked ?? headerStyle?.marked ?? false;\n this._textAlign = (style.textAlign ?? headerStyle?.textAlign) || 'left';\n this._textBaseline = (style.textBaseline ?? headerStyle?.textBaseline) || 'middle';\n this._bgColor = style.bgColor ?? headerStyle?.bgColor;\n this._padding = style.padding ?? headerStyle?.padding ?? this._defaultPadding;\n this._borderColor = style.borderColor ?? headerStyle?.borderColor;\n this._lineHeight = style.lineHeight ?? headerStyle?.lineHeight;\n this._underline = style.underline ?? headerStyle?.underline;\n this._underlineColor = style.underlineColor ?? headerStyle?.underlineColor;\n this._underlineDash = style.underlineDash ?? headerStyle?.underlineDash;\n this._underlineOffset = style.underlineOffset ?? headerStyle?.underlineOffset;\n this._lineThrough = style.lineThrough ?? headerStyle?.lineThrough;\n this._lineThroughColor = style.lineThroughColor ?? headerStyle?.lineThroughColor;\n this._lineThroughDash = style.lineThroughDash ?? headerStyle?.lineThroughDash;\n this._linkColor = style.linkColor ?? headerStyle?.linkColor;\n\n // this._tag = style.tag ?? headerStyle?.tag;\n // this._tagFont = style.tagFont ?? headerStyle?.tagFont;\n // this._tagColor = style.tagColor ?? headerStyle?.tagColor;\n // this._tagBgColor = style.tagBgColor ?? headerStyle?.tagBgColor;\n // this._tagMargin = style.tagMargin ?? headerStyle?.tagMargin;\n this._cursor = style.cursor ?? headerStyle?.cursor;\n this._borderLineWidth = style.borderLineWidth ?? headerStyle?.borderLineWidth;\n this._borderLineDash = style.borderLineDash ?? headerStyle?.borderLineDash;\n }\n get bgColor(): ColorPropertyDefine | undefined {\n return this._bgColor;\n }\n set bgColor(bgColor: ColorPropertyDefine | undefined) {\n this._bgColor = bgColor;\n //this.doChangeStyle();\n }\n get color(): ColorPropertyDefine | undefined {\n return this._color;\n }\n set color(color: ColorPropertyDefine | undefined) {\n this._color = color;\n //this.doChangeStyle();\n }\n get fontSize(): FontSizePropertyDefine | undefined {\n return this._fontSize;\n }\n set fontSize(fontSize: FontSizePropertyDefine | undefined) {\n this._fontSize = fontSize;\n //this.doChangeStyle();\n }\n get fontFamily(): FontFamilyPropertyDefine | undefined {\n return this._fontFamily;\n }\n set fontFamily(fontFamily: FontFamilyPropertyDefine | undefined) {\n this._fontFamily = fontFamily;\n //this.doChangeStyle();\n }\n get fontWeight(): FontWeightPropertyDefine | undefined {\n return this._fontWeight;\n }\n set fontWeight(fontWeight: FontWeightPropertyDefine | undefined) {\n this._fontWeight = fontWeight;\n //this.doChangeStyle();\n }\n get fontVariant(): FontVariantPropertyDefine | undefined {\n return this._fontVariant;\n }\n set fontVariant(fontVariant: FontVariantPropertyDefine | undefined) {\n this._fontVariant = fontVariant;\n //this.doChangeStyle();\n }\n get fontStyle(): FontStylePropertyDefine | undefined {\n return this._fontStyle;\n }\n set fontStyle(fontStyle: FontStylePropertyDefine | undefined) {\n this._fontStyle = fontStyle;\n //this.doChangeStyle();\n }\n get textOverflow(): TextOverflow {\n return this._textOverflow;\n }\n set textOverflow(textOverflow: TextOverflow) {\n this._textOverflow = textOverflow;\n //this.doChangeStyle();\n }\n get padding(): PaddingsPropertyDefine | undefined {\n return this._padding ?? this._defaultPadding;\n }\n set padding(padding: PaddingsPropertyDefine | undefined) {\n this._padding = padding;\n //this.doChangeStyle();\n }\n get borderColor(): ColorsPropertyDefine | undefined {\n return this._borderColor;\n }\n set borderColor(borderColor: ColorsPropertyDefine | undefined) {\n this._borderColor = borderColor;\n //this.doChangeStyle();\n }\n get textStick(): boolean {\n return this._textStick;\n }\n set textStick(textStick: boolean) {\n this._textStick = textStick;\n //this.doChangeStyle();\n }\n get textStickBaseOnAlign(): boolean {\n return this._textStickBaseOnAlign;\n }\n set textStickBaseOnAlign(textStickBaseOnAlign: boolean) {\n this._textStickBaseOnAlign = textStickBaseOnAlign;\n // this.doChangeStyle();\n }\n get marked(): MarkedPropertyDefine | undefined {\n return this._marked;\n }\n set marked(marked: MarkedPropertyDefine | undefined) {\n this._marked = marked;\n //this.doChangeStyle();\n }\n // eslint-disable-next-line no-undef\n get textAlign(): TextAlignType {\n return this._textAlign;\n }\n // eslint-disable-next-line no-undef\n set textAlign(textAlign: TextAlignType) {\n this._textAlign = textAlign;\n //this.doChangeStyle();\n }\n // eslint-disable-next-line no-undef\n get textBaseline(): TextBaselineType {\n return this._textBaseline;\n }\n // eslint-disable-next-line no-undef\n set textBaseline(textBaseline: TextBaselineType) {\n this._textBaseline = textBaseline;\n //this.doChangeStyle();\n }\n get lineHeight(): number | undefined {\n return this._lineHeight;\n }\n set lineHeight(lineHeight: number | undefined) {\n this._lineHeight = lineHeight;\n //this.doChangeStyle();\n }\n get underline(): UnderlinePropertyDefine | undefined {\n return this._underline;\n }\n set underline(underline: UnderlinePropertyDefine | undefined) {\n this._underline = underline;\n //this.doChangeStyle();\n }\n get underlineColor(): ColorPropertyDefine | undefined {\n return this._underlineColor;\n }\n set underlineColor(underlineColor: ColorPropertyDefine | undefined) {\n this._underlineColor = underlineColor;\n //this.doChangeStyle();\n }\n get underlineDash(): LineDashPropertyDefine | undefined {\n return this._underlineDash;\n }\n set underlineDash(underlineDash: LineDashPropertyDefine | undefined) {\n this._underlineDash = underlineDash;\n //this.doChangeStyle();\n }\n\n get underlineOffset(): number | undefined {\n return this._underlineOffset;\n }\n set underlineOffset(underlineOffset: number | undefined) {\n this._underlineOffset = underlineOffset;\n //this.doChangeStyle();\n }\n\n get lineThrough(): LineThroughPropertyDefine | undefined {\n return this._lineThrough;\n }\n set lineThrough(lineThrough: LineThroughPropertyDefine | undefined) {\n this._lineThrough = lineThrough;\n //this.doChangeStyle();\n }\n get lineThroughColor(): ColorPropertyDefine | undefined {\n return this._lineThroughColor;\n }\n set lineThroughColor(lineThroughColor: ColorPropertyDefine | undefined) {\n this._lineThroughColor = lineThroughColor;\n //this.doChangeStyle();\n }\n get lineThroughDash(): LineDashPropertyDefine | undefined {\n return this._lineThroughDash;\n }\n set lineThroughDash(lineThroughDash: LineDashPropertyDefine | undefined) {\n this._lineThroughDash = lineThroughDash;\n //this.doChangeStyle();\n }\n get linkColor(): ColorPropertyDefine | undefined {\n return this._linkColor;\n }\n set linkColor(linkColor: ColorPropertyDefine | undefined) {\n this._linkColor = linkColor;\n //this.doChangeStyle();\n }\n // get tag(): TagPropertyDefine | undefined {\n // return this._tag;\n // }\n // set tag(tag: TagPropertyDefine | undefined) {\n // this._tag = tag;\n // //this.doChangeStyle();\n // }\n // get tagFont(): FontPropertyDefine | undefined {\n // return this._tagFont;\n // }\n // set tagFont(tagFont: FontPropertyDefine | undefined) {\n // this._tagFont = tagFont;\n // //this.doChangeStyle();\n // }\n // get tagColor(): ColorPropertyDefine | undefined {\n // return this._tagColor;\n // }\n // set tagColor(tagColor: ColorPropertyDefine | undefined) {\n // this._tagColor = tagColor;\n // //this.doChangeStyle();\n // }\n // get tagBgColor(): ColorPropertyDefine | undefined {\n // return this._tagBgColor;\n // }\n // set tagBgColor(tagBgColor: ColorPropertyDefine | undefined) {\n // this._tagBgColor = tagBgColor;\n // //this.doChangeStyle();\n // }\n // get tagMargin(): number | string | (number | string)[] | undefined {\n // return this._tagMargin;\n // }\n // set tagMargin(tagMargin: number | string | (number | string)[] | undefined) {\n // this._tagMargin = tagMargin;\n // //this.doChangeStyle();\n // }\n get cursor(): CursorPropertyDefine | undefined {\n return this._cursor;\n }\n set cursor(cursor: CursorPropertyDefine | undefined) {\n this._cursor = cursor;\n //this.doChangeStyle();\n }\n get borderLineWidth(): LineWidthsPropertyDefine | undefined {\n return this._borderLineWidth;\n }\n set borderLineWidth(borderLineWidth: LineWidthsPropertyDefine | undefined) {\n this._borderLineWidth = borderLineWidth;\n //this.doChangeStyle();\n }\n get borderLineDash(): LineDashsPropertyDefine | undefined {\n return this._borderLineDash;\n }\n set borderLineDash(borderLineDash: LineDashsPropertyDefine | undefined) {\n this._borderLineDash = borderLineDash;\n //this.doChangeStyle();\n }\n // doChangeStyle(): void {\n // this.fireListeners(EVENT_TYPE.CHANGE_STYLE);\n // }\n clone(): Style {\n return new Style(this);\n }\n}\n"]}
package/cjs/index.d.ts CHANGED
@@ -16,7 +16,7 @@ import { renderChart } from './scenegraph/graphic/contributions/chart-render-hel
16
16
  import { restoreMeasureText, setCustomAlphabetCharSet } from './scenegraph/utils/text-measure';
17
17
  export { getDataCellPath } from './tools/get-data-path';
18
18
  export * from './render/jsx';
19
- export declare const version = "0.22.0";
19
+ export declare const version = "0.22.2-alpha.0";
20
20
  export { TYPES, core, ListTable, ListTableConstructorOptions, PivotTable, PivotTableConstructorOptions, PivotChartConstructorOptions, PivotChart, IHeaderTreeDefine, IDimension, IIndicator, ITitleDefine, ICornerDefine, ColumnsDefine, ColumnDefine, LinkColumnDefine, ChartColumnDefine, ImageColumnDefine, SparklineColumnDefine, ProgressbarColumnDefine, TextColumnDefine, GroupColumnDefine, TextAlignType, TextBaselineType, themes, data, MousePointerCellEvent, getIcons, clearGlobal, register, DataStatistics, CustomLayout, updateCell, renderChart, graphicUtil, setCustomAlphabetCharSet, restoreMeasureText };
21
21
  declare function getIcons(): {
22
22
  [key: string]: TYPES.ColumnIconOption;
package/cjs/index.js CHANGED
@@ -142,6 +142,6 @@ Object.defineProperty(exports, "getDataCellPath", {
142
142
  get: function() {
143
143
  return get_data_path_1.getDataCellPath;
144
144
  }
145
- }), __exportStar(require("./render/jsx"), exports), exports.version = "0.22.0",
145
+ }), __exportStar(require("./render/jsx"), exports), exports.version = "0.22.2-alpha.0",
146
146
  exports.getIcons = getIcons, exports.clearGlobal = clearGlobal, TYPES.AggregationType;
147
147
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAA4D;AA8F1D,4FA9FO,qBAAW,OA8FP;AA7Fb,IAAA,4BAAkB,GAAE,CAAC;AAErB,kDAAoC;AAqDlC,sBAAK;AApDP,6CAA+B;AAqD7B,oBAAI;AApDN,6CAA+B;AA4E7B,oBAAI;AA3EN,+CAAiC;AACjC,qDAAuC;AA+ErC,4BAAQ;AA9EV,iDAAmC;AAwEjC,wBAAM;AAvER,yEAA2D;AAiFzD,wCAAc;AA3DhB,2CAAwC;AA2BtC,0FA3BO,qBAAS,OA2BP;AA1BX,6CAA0C;AA4BxC,2FA5BO,uBAAU,OA4BP;AA3BZ,6CAA0C;AA8BxC,2FA9BO,uBAAU,OA8BP;AA5BZ,8DAAgD;AAwD9C,oCAAY;AAtDd,wEAAoE;AAuDlE,2FAvDO,wBAAU,OAuDP;AAtDZ,gGAAqF;AAuDnF,4FAvDO,iCAAW,OAuDP;AAtDb,kEAA+F;AAyD7F,mGAzDO,iCAAkB,OAyDP;AADlB,yGAxD2B,uCAAwB,OAwD3B;AAnD1B,uDAAwD;AAA/C,gHAAA,eAAe,OAAA;AACxB,+CAA6B;AAEhB,QAAA,OAAO,GAAG,QAAQ,CAAC;AAqDhC,SAAS,QAAQ;IAGf,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AArBC,4BAAQ;AAuBV,SAAS,WAAW;IAClB,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAGtB,CAAC;AA1BC,kCAAW;AA2Bb,KAAK,CAAC,eAAe,CAAC","file":"index.js","sourcesContent":["/* eslint-disable sort-imports */\nimport { graphicUtil, registerForVrender } from './vrender';\nregisterForVrender();\n\nimport * as TYPES from './ts-types';\nimport * as core from './core';\nimport * as data from './data';\nimport * as icons from './icons';\nimport * as register from './register';\nimport * as themes from './themes';\nimport * as DataStatistics from './dataset/DataStatistics';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n ListTableConstructorOptions,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n TextAlignType,\n TextBaselineType\n} from './ts-types';\nimport { ListTable } from './ListTable';\nimport { PivotTable } from './PivotTable';\nimport { PivotChart } from './PivotChart';\nimport type { MousePointerCellEvent } from './ts-types/events';\nimport * as CustomLayout from './render/layout';\n\nimport { updateCell } from './scenegraph/group-creater/cell-helper';\nimport { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';\nimport { restoreMeasureText, setCustomAlphabetCharSet } from './scenegraph/utils/text-measure';\n\n// import { container, loadCanvasPicker } from '@src/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\n\nexport const version = \"0.22.0\";\n/**\n * @namespace VTable\n */\nexport {\n /**\n * Types\n * @namespace VTable.TYPES\n */\n TYPES,\n core,\n ListTable,\n ListTableConstructorOptions,\n PivotTable,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n PivotChart,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n themes,\n data,\n MousePointerCellEvent,\n getIcons,\n clearGlobal,\n //plugin registers\n register,\n /**\n * 暂不推荐使用\n */\n DataStatistics,\n CustomLayout,\n updateCell,\n renderChart,\n graphicUtil,\n setCustomAlphabetCharSet,\n restoreMeasureText\n};\n\n/** @private */\nfunction getIcons(): {\n [key: string]: TYPES.ColumnIconOption;\n} {\n return icons.get();\n}\n/** 清理内部的全局变量 如注册的icon theme等 以及共享的header column类实例 */\nfunction clearGlobal() {\n register.clearAll();\n // headers.type.clearGlobal();\n // columns.type.clearGlobal();\n}\nTYPES.AggregationType;\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAA4D;AA8F1D,4FA9FO,qBAAW,OA8FP;AA7Fb,IAAA,4BAAkB,GAAE,CAAC;AAErB,kDAAoC;AAqDlC,sBAAK;AApDP,6CAA+B;AAqD7B,oBAAI;AApDN,6CAA+B;AA4E7B,oBAAI;AA3EN,+CAAiC;AACjC,qDAAuC;AA+ErC,4BAAQ;AA9EV,iDAAmC;AAwEjC,wBAAM;AAvER,yEAA2D;AAiFzD,wCAAc;AA3DhB,2CAAwC;AA2BtC,0FA3BO,qBAAS,OA2BP;AA1BX,6CAA0C;AA4BxC,2FA5BO,uBAAU,OA4BP;AA3BZ,6CAA0C;AA8BxC,2FA9BO,uBAAU,OA8BP;AA5BZ,8DAAgD;AAwD9C,oCAAY;AAtDd,wEAAoE;AAuDlE,2FAvDO,wBAAU,OAuDP;AAtDZ,gGAAqF;AAuDnF,4FAvDO,iCAAW,OAuDP;AAtDb,kEAA+F;AAyD7F,mGAzDO,iCAAkB,OAyDP;AADlB,yGAxD2B,uCAAwB,OAwD3B;AAnD1B,uDAAwD;AAA/C,gHAAA,eAAe,OAAA;AACxB,+CAA6B;AAEhB,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAqDxC,SAAS,QAAQ;IAGf,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC;AACrB,CAAC;AArBC,4BAAQ;AAuBV,SAAS,WAAW;IAClB,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAGtB,CAAC;AA1BC,kCAAW;AA2Bb,KAAK,CAAC,eAAe,CAAC","file":"index.js","sourcesContent":["/* eslint-disable sort-imports */\nimport { graphicUtil, registerForVrender } from './vrender';\nregisterForVrender();\n\nimport * as TYPES from './ts-types';\nimport * as core from './core';\nimport * as data from './data';\nimport * as icons from './icons';\nimport * as register from './register';\nimport * as themes from './themes';\nimport * as DataStatistics from './dataset/DataStatistics';\nimport type {\n ColumnDefine,\n ColumnsDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n ListTableConstructorOptions,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n TextAlignType,\n TextBaselineType\n} from './ts-types';\nimport { ListTable } from './ListTable';\nimport { PivotTable } from './PivotTable';\nimport { PivotChart } from './PivotChart';\nimport type { MousePointerCellEvent } from './ts-types/events';\nimport * as CustomLayout from './render/layout';\n\nimport { updateCell } from './scenegraph/group-creater/cell-helper';\nimport { renderChart } from './scenegraph/graphic/contributions/chart-render-helper';\nimport { restoreMeasureText, setCustomAlphabetCharSet } from './scenegraph/utils/text-measure';\n\n// import { container, loadCanvasPicker } from '@src/vrender';\n// loadCanvasPicker(container);\n\nexport { getDataCellPath } from './tools/get-data-path';\nexport * from './render/jsx';\n\nexport const version = \"0.22.2-alpha.0\";\n/**\n * @namespace VTable\n */\nexport {\n /**\n * Types\n * @namespace VTable.TYPES\n */\n TYPES,\n core,\n ListTable,\n ListTableConstructorOptions,\n PivotTable,\n PivotTableConstructorOptions,\n PivotChartConstructorOptions,\n PivotChart,\n IHeaderTreeDefine,\n IDimension,\n IIndicator,\n ITitleDefine,\n ICornerDefine,\n ColumnsDefine,\n ColumnDefine,\n LinkColumnDefine,\n ChartColumnDefine,\n ImageColumnDefine,\n SparklineColumnDefine,\n ProgressbarColumnDefine,\n TextColumnDefine,\n GroupColumnDefine,\n TextAlignType,\n TextBaselineType,\n themes,\n data,\n MousePointerCellEvent,\n getIcons,\n clearGlobal,\n //plugin registers\n register,\n /**\n * 暂不推荐使用\n */\n DataStatistics,\n CustomLayout,\n updateCell,\n renderChart,\n graphicUtil,\n setCustomAlphabetCharSet,\n restoreMeasureText\n};\n\n/** @private */\nfunction getIcons(): {\n [key: string]: TYPES.ColumnIconOption;\n} {\n return icons.get();\n}\n/** 清理内部的全局变量 如注册的icon theme等 以及共享的header column类实例 */\nfunction clearGlobal() {\n register.clearAll();\n // headers.type.clearGlobal();\n // columns.type.clearGlobal();\n}\nTYPES.AggregationType;\n"]}
@@ -1054,7 +1054,7 @@ class PivotHeaderLayoutMap {
1054
1054
  const dimension = rowArr[j];
1055
1055
  if (!(0, vutils_1.isValid)(rowDimension.indicatorKey) && dimension.dimensionKey === rowDimension.dimensionKey && dimension.value === rowDimension.value || (0,
1056
1056
  vutils_1.isValid)(rowDimension.indicatorKey) && dimension.indicatorKey === rowDimension.indicatorKey && (!rowDimension.value || dimension.value === rowDimension.value)) {
1057
- rowArr = dimension.children, needLowestLevel && !rowArr ? rowDimensionFinded = dimension : needLowestLevel || (rowDimensionFinded = dimension);
1057
+ rowArr = dimension.children, (!needLowestLevel || rowArr && !rowArr.some((row => "axis" === row.dimensionKey))) && needLowestLevel || (rowDimensionFinded = dimension);
1058
1058
  break;
1059
1059
  }
1060
1060
  }