@visactor/vtable 1.2.1-alpha.1 → 1.2.1-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.
Files changed (95) hide show
  1. package/cjs/components/title/title.js +4 -2
  2. package/cjs/components/title/title.js.map +1 -1
  3. package/cjs/components/tooltip/TooltipHandler.js +5 -5
  4. package/cjs/components/tooltip/TooltipHandler.js.map +1 -1
  5. package/cjs/components/tooltip/logic/BubbleTooltipElement.d.ts +0 -2
  6. package/cjs/components/tooltip/logic/BubbleTooltipElement.js +7 -25
  7. package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
  8. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js +1 -1
  9. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
  10. package/cjs/core/BaseTable.js +3 -2
  11. package/cjs/core/BaseTable.js.map +1 -1
  12. package/cjs/event/event.d.ts +1 -0
  13. package/cjs/event/event.js +1 -1
  14. package/cjs/event/event.js.map +1 -1
  15. package/cjs/event/sparkline-event.js +2 -1
  16. package/cjs/event/sparkline-event.js.map +1 -1
  17. package/cjs/index.d.ts +1 -1
  18. package/cjs/index.js +1 -1
  19. package/cjs/index.js.map +1 -1
  20. package/cjs/scenegraph/group-creater/cell-helper.js +1 -1
  21. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  22. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +1 -1
  23. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  24. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +1 -1
  25. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  26. package/cjs/scenegraph/icon/icon-update.js +9 -10
  27. package/cjs/scenegraph/icon/icon-update.js.map +1 -1
  28. package/cjs/scenegraph/layout/compute-col-width.js +14 -3
  29. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  30. package/cjs/scenegraph/utils/text-icon-layout.js +7 -6
  31. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -1
  32. package/cjs/state/state.js +1 -2
  33. package/cjs/state/state.js.map +1 -1
  34. package/cjs/themes/theme.js +0 -6
  35. package/cjs/themes/theme.js.map +1 -1
  36. package/cjs/ts-types/base-table.d.ts +1 -2
  37. package/cjs/ts-types/base-table.js.map +1 -1
  38. package/cjs/ts-types/component/title.d.ts +2 -0
  39. package/cjs/ts-types/component/title.js.map +1 -1
  40. package/cjs/ts-types/icon.d.ts +0 -3
  41. package/cjs/ts-types/icon.js.map +1 -1
  42. package/cjs/ts-types/theme.d.ts +0 -2
  43. package/cjs/ts-types/theme.js.map +1 -1
  44. package/cjs/ts-types/tooltip.d.ts +0 -3
  45. package/cjs/ts-types/tooltip.js.map +1 -1
  46. package/cjs/vrender.js.map +1 -1
  47. package/dist/vtable.js +64 -82
  48. package/dist/vtable.min.js +2 -2
  49. package/es/components/title/title.js +4 -2
  50. package/es/components/title/title.js.map +1 -1
  51. package/es/components/tooltip/TooltipHandler.js +5 -5
  52. package/es/components/tooltip/TooltipHandler.js.map +1 -1
  53. package/es/components/tooltip/logic/BubbleTooltipElement.d.ts +0 -2
  54. package/es/components/tooltip/logic/BubbleTooltipElement.js +7 -25
  55. package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
  56. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js +1 -1
  57. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
  58. package/es/core/BaseTable.js +3 -2
  59. package/es/core/BaseTable.js.map +1 -1
  60. package/es/event/event.d.ts +1 -0
  61. package/es/event/event.js +1 -1
  62. package/es/event/event.js.map +1 -1
  63. package/es/event/sparkline-event.js +2 -1
  64. package/es/event/sparkline-event.js.map +1 -1
  65. package/es/index.d.ts +1 -1
  66. package/es/index.js +1 -1
  67. package/es/index.js.map +1 -1
  68. package/es/scenegraph/group-creater/cell-helper.js +1 -1
  69. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  70. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +1 -1
  71. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  72. package/es/scenegraph/group-creater/cell-type/radio-cell.js +1 -1
  73. package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -1
  74. package/es/scenegraph/icon/icon-update.js +9 -10
  75. package/es/scenegraph/icon/icon-update.js.map +1 -1
  76. package/es/scenegraph/layout/compute-col-width.js +14 -3
  77. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  78. package/es/scenegraph/utils/text-icon-layout.js +8 -7
  79. package/es/scenegraph/utils/text-icon-layout.js.map +1 -1
  80. package/es/state/state.js +1 -2
  81. package/es/state/state.js.map +1 -1
  82. package/es/themes/theme.js +0 -6
  83. package/es/themes/theme.js.map +1 -1
  84. package/es/ts-types/base-table.d.ts +1 -2
  85. package/es/ts-types/base-table.js.map +1 -1
  86. package/es/ts-types/component/title.d.ts +2 -0
  87. package/es/ts-types/component/title.js.map +1 -1
  88. package/es/ts-types/icon.d.ts +0 -3
  89. package/es/ts-types/icon.js.map +1 -1
  90. package/es/ts-types/theme.d.ts +0 -2
  91. package/es/ts-types/theme.js.map +1 -1
  92. package/es/ts-types/tooltip.d.ts +0 -3
  93. package/es/ts-types/tooltip.js.map +1 -1
  94. package/es/vrender.js.map +1 -1
  95. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ts-types/theme.ts"],"names":[],"mappings":"","file":"theme.js","sourcesContent":["/* eslint-disable sort-imports */\nimport type { ColorsDef, LineDashsDef, LineWidthsDef, LineWidthsPropertyDefine, LineDashsPropertyDefine } from '.';\nimport type { CheckboxStyle, ITextStyleOption, RadioStyle } from './column/style';\nimport type { ColorPropertyDefine, ColorsPropertyDefine } from './style-define';\nimport type { ColumnIconOption } from './icon';\nimport type { ICellAxisOption } from './component/axis';\nimport type { PopTipAttributes } from '@visactor/vrender-components';\n// ****** Custom Theme *******\nexport type PartialTableThemeDefine = Partial<ITableThemeDefine>;\nexport type ThemeStyle = ITextStyleOption & {\n hover?: Omit<InteractionStyle, 'cellBorderColor' | 'cellBorderLineWidth'>; //鼠标hover到某个单元格\n select?: {\n inlineRowBgColor?: ColorPropertyDefine; //交互所在整行的背景颜色\n inlineColumnBgColor?: ColorPropertyDefine; //交互所在整列的背景颜色\n };\n frameStyle?: FrameStyle;\n};\nexport type InteractionStyle = {\n cellBorderColor?: ColorsPropertyDefine; //交互所在单元格的边框颜色\n cellBorderLineWidth?: LineWidthsPropertyDefine;\n // cellBorderLineDash?:LineDashsPropertyDefine,//用到的场景应该不多\n cellBgColor?: ColorPropertyDefine; //交互所在单元格的背景颜色\n // inlineRowBorderColor?: ColorsPropertyDefine,//交互所在整行的边框颜色\n inlineRowBgColor?: ColorPropertyDefine; //交互所在整行的背景颜色\n // inlineColBorderColor?: ColorsPropertyDefine,//交互所在整列的边框颜色\n inlineColumnBgColor?: ColorPropertyDefine; //交互所在整列的背景颜色\n // headerHighlightBorderColor?:ColorPropertyDefine,//表头底部高亮线\n};\nexport type FrameStyle = {\n borderColor?: ColorsDef;\n borderLineWidth?: LineWidthsDef;\n borderLineDash?: LineDashsDef;\n innerBorder?: boolean;\n};\nexport type TableFrameStyle = FrameStyle & {\n shadowBlur?: number; //阴影宽度\n shadowOffsetX?: number; //x方向偏移\n shadowOffsetY?: number; //Y方向偏移\n shadowColor?: string; //阴影颜色\n cornerRadius?: number; //边框圆角半径\n};\nexport type menuStyle = {\n color?: string;\n highlightColor?: string;\n fontSize?: number;\n fontFamily?: string;\n highlightFontSize?: number;\n highlightFontFamily?: string;\n hoverBgColor?: string;\n};\nexport type ScrollStyle = {\n /**滚动条滚动的颜色 */\n scrollRailColor?: string;\n /**滚动条滑块的颜色 */\n scrollSliderColor?: string;\n /**滚动条滑块的圆角半径 */\n scrollSliderCornerRadius?: number;\n /**滚动条宽度大小 */\n width?: number;\n /**滚动条是否可见 'always' | 'scrolling' | 'none' | 'focus',常驻|滚动时|不显示|聚焦在画布上时 */\n visible?: 'always' | 'scrolling' | 'none' | 'focus';\n /*** 悬浮与容器上,还是独立于容器外 */\n hoverOn?: boolean;\n /** 是否显示到容器的边缘 尽管内容没有撑满的情况下 默认false */\n barToSide?: boolean;\n};\n/**\n * 气泡框,按钮的的解释信息\n */\nexport type TooltipStyle = {\n fontFamily?: string;\n fontSize?: number;\n color?: string;\n padding?: number[];\n bgColor?: string;\n maxWidth?: number;\n maxHeight?: number;\n /** !目前未实现该逻辑。触发行为:hover or click */\n // trigger?: string | string[];\n /**气泡框位置,可选 top left right bottom */\n // placement?: Placement;\n};\nexport interface ITableThemeDefine {\n /** 表格绘制范围外的canvas上填充的颜色 */\n underlayBackgroundColor?: string;\n // selectionBgColor?: ColorPropertyDefine; //多选单元格背景色 手动设置的多选 非框选\n defaultStyle?: ThemeStyle;\n cornerHeaderStyle?: ThemeStyle; //角头样式\n cornerRightTopCellStyle?: ThemeStyle; // 右上角占位单元格样式\n cornerLeftBottomCellStyle?: ThemeStyle; // 左下角占位单元格样式\n cornerRightBottomCellStyle?: ThemeStyle; // 右下角占位单元格样式\n rightFrozenStyle?: ThemeStyle; // 右侧冻结单元格样式\n bottomFrozenStyle?: ThemeStyle; // 下部冻结单元格样式\n headerStyle?: ThemeStyle;\n rowHeaderStyle?: ThemeStyle;\n bodyStyle?: ThemeStyle;\n frameStyle?: TableFrameStyle;\n //列调整宽度的直线\n columnResize?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n labelColor?: string; //label的颜色\n labelFontSize?: number; //label的字体大小\n labelFontFamily?: string; //label的字体\n labelBackgroundFill?: string; //label的背景填充\n labelBackgroundCornerRadius?: number; //label的背景圆角\n };\n //拖拽表格换位分割线的样式\n dragHeaderSplitLine?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n lineWidth: number; //上面线的宽度\n shadowBlockColor?: string; //拖拽时阴影区域的颜色\n };\n //冻结列后面的效果\n frozenColumnLine?: {\n shadow?: {\n //默认效果 会有阴影配置\n width: number; //阴影整体宽度\n startColor: string; //开始颜色\n endColor: string; //结束颜色\n };\n /** TODO 暂未生效 */\n border?: {\n //有些需求要两种效果 这里配置滚动前的边框效果(实现方式是两条线叠加产生),滚动后按上面的阴影效果\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n };\n };\n\n // menuStyle?: menuStyle;\n scrollStyle?: ScrollStyle;\n tooltipStyle?: TooltipStyle;\n // selectHeaderHighlight?: boolean;\n /** 选择框样式 */\n selectionStyle?: //Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n {\n cellBorderColor?: string; //边框颜色\n cellBorderLineWidth?: number; //边框线宽度\n cellBgColor?: string; //选择框背景颜色\n inlineRowBgColor?: string; //交互所在整行的背景颜色\n inlineColumnBgColor?: string; //交互所在整列的背景颜色\n };\n\n // style for axis\n axisStyle?: {\n defaultAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n leftAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n rightAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n topAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n bottomAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n };\n\n checkboxStyle?: CheckboxStyle;\n radioStyle?: RadioStyle;\n\n // style for text pop tip\n textPopTipStyle?: PopTipAttributes;\n\n // senior config for fs\n // 表格四侧单元格,靠近边缘的border是否需要再绘制;如配置false的话,当表格左侧frame未设置情况下左侧单元格不显示左边框,其他方向同理\n cellInnerBorder?: boolean;\n // cell border clip direction\n cellBorderClipDirection?: 'top-left' | 'bottom-right'; // default is 'top-left'\n // text offset, hack for fs\n _contentOffset?: number;\n}\n\nexport type RequiredTableThemeDefine = Required<ITableThemeDefine>;\n"]}
1
+ {"version":3,"sources":["../src/ts-types/theme.ts"],"names":[],"mappings":"","file":"theme.js","sourcesContent":["/* eslint-disable sort-imports */\nimport type { ColorsDef, LineDashsDef, LineWidthsDef, LineWidthsPropertyDefine, LineDashsPropertyDefine } from '.';\nimport type { CheckboxStyle, ITextStyleOption, RadioStyle } from './column/style';\nimport type { ColorPropertyDefine, ColorsPropertyDefine } from './style-define';\nimport type { ColumnIconOption } from './icon';\nimport type { ICellAxisOption } from './component/axis';\nimport type { PopTipAttributes } from '@visactor/vrender-components';\n// ****** Custom Theme *******\nexport type PartialTableThemeDefine = Partial<ITableThemeDefine>;\nexport type ThemeStyle = ITextStyleOption & {\n hover?: Omit<InteractionStyle, 'cellBorderColor' | 'cellBorderLineWidth'>; //鼠标hover到某个单元格\n select?: {\n inlineRowBgColor?: ColorPropertyDefine; //交互所在整行的背景颜色\n inlineColumnBgColor?: ColorPropertyDefine; //交互所在整列的背景颜色\n };\n frameStyle?: FrameStyle;\n};\nexport type InteractionStyle = {\n cellBorderColor?: ColorsPropertyDefine; //交互所在单元格的边框颜色\n cellBorderLineWidth?: LineWidthsPropertyDefine;\n // cellBorderLineDash?:LineDashsPropertyDefine,//用到的场景应该不多\n cellBgColor?: ColorPropertyDefine; //交互所在单元格的背景颜色\n // inlineRowBorderColor?: ColorsPropertyDefine,//交互所在整行的边框颜色\n inlineRowBgColor?: ColorPropertyDefine; //交互所在整行的背景颜色\n // inlineColBorderColor?: ColorsPropertyDefine,//交互所在整列的边框颜色\n inlineColumnBgColor?: ColorPropertyDefine; //交互所在整列的背景颜色\n // headerHighlightBorderColor?:ColorPropertyDefine,//表头底部高亮线\n};\nexport type FrameStyle = {\n borderColor?: ColorsDef;\n borderLineWidth?: LineWidthsDef;\n borderLineDash?: LineDashsDef;\n innerBorder?: boolean;\n};\nexport type TableFrameStyle = FrameStyle & {\n shadowBlur?: number; //阴影宽度\n shadowOffsetX?: number; //x方向偏移\n shadowOffsetY?: number; //Y方向偏移\n shadowColor?: string; //阴影颜色\n cornerRadius?: number; //边框圆角半径\n};\nexport type menuStyle = {\n color?: string;\n highlightColor?: string;\n fontSize?: number;\n fontFamily?: string;\n highlightFontSize?: number;\n highlightFontFamily?: string;\n hoverBgColor?: string;\n};\nexport type ScrollStyle = {\n /**滚动条滚动的颜色 */\n scrollRailColor?: string;\n /**滚动条滑块的颜色 */\n scrollSliderColor?: string;\n /**滚动条滑块的圆角半径 */\n scrollSliderCornerRadius?: number;\n /**滚动条宽度大小 */\n width?: number;\n /**滚动条是否可见 'always' | 'scrolling' | 'none' | 'focus',常驻|滚动时|不显示|聚焦在画布上时 */\n visible?: 'always' | 'scrolling' | 'none' | 'focus';\n /*** 悬浮与容器上,还是独立于容器外 */\n hoverOn?: boolean;\n /** 是否显示到容器的边缘 尽管内容没有撑满的情况下 默认false */\n barToSide?: boolean;\n};\n/**\n * 气泡框,按钮的的解释信息\n */\nexport type TooltipStyle = {\n fontFamily?: string;\n fontSize?: number;\n color?: string;\n padding?: number[];\n bgColor?: string;\n /** !目前未实现该逻辑。触发行为:hover or click */\n // trigger?: string | string[];\n /**气泡框位置,可选 top left right bottom */\n // placement?: Placement;\n};\nexport interface ITableThemeDefine {\n /** 表格绘制范围外的canvas上填充的颜色 */\n underlayBackgroundColor?: string;\n // selectionBgColor?: ColorPropertyDefine; //多选单元格背景色 手动设置的多选 非框选\n defaultStyle?: ThemeStyle;\n cornerHeaderStyle?: ThemeStyle; //角头样式\n cornerRightTopCellStyle?: ThemeStyle; // 右上角占位单元格样式\n cornerLeftBottomCellStyle?: ThemeStyle; // 左下角占位单元格样式\n cornerRightBottomCellStyle?: ThemeStyle; // 右下角占位单元格样式\n rightFrozenStyle?: ThemeStyle; // 右侧冻结单元格样式\n bottomFrozenStyle?: ThemeStyle; // 下部冻结单元格样式\n headerStyle?: ThemeStyle;\n rowHeaderStyle?: ThemeStyle;\n bodyStyle?: ThemeStyle;\n frameStyle?: TableFrameStyle;\n //列调整宽度的直线\n columnResize?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n labelColor?: string; //label的颜色\n labelFontSize?: number; //label的字体大小\n labelFontFamily?: string; //label的字体\n labelBackgroundFill?: string; //label的背景填充\n labelBackgroundCornerRadius?: number; //label的背景圆角\n };\n //拖拽表格换位分割线的样式\n dragHeaderSplitLine?: {\n lineColor: ColorPropertyDefine; //上面线的颜色\n lineWidth: number; //上面线的宽度\n shadowBlockColor?: string; //拖拽时阴影区域的颜色\n };\n //冻结列后面的效果\n frozenColumnLine?: {\n shadow?: {\n //默认效果 会有阴影配置\n width: number; //阴影整体宽度\n startColor: string; //开始颜色\n endColor: string; //结束颜色\n };\n /** TODO 暂未生效 */\n border?: {\n //有些需求要两种效果 这里配置滚动前的边框效果(实现方式是两条线叠加产生),滚动后按上面的阴影效果\n lineColor: ColorPropertyDefine; //上面线的颜色\n bgColor?: ColorPropertyDefine; //背景线的颜色\n lineWidth: number; //上面线的宽度\n width?: number; //背景线的宽度\n };\n };\n\n // menuStyle?: menuStyle;\n scrollStyle?: ScrollStyle;\n tooltipStyle?: TooltipStyle;\n // selectHeaderHighlight?: boolean;\n /** 选择框样式 */\n selectionStyle?: //Omit<InteractionStyle, 'inlineRowBgColor' | 'inlineColumnBgColor'>; //鼠标点击到某个单元格\n {\n cellBorderColor?: string; //边框颜色\n cellBorderLineWidth?: number; //边框线宽度\n cellBgColor?: string; //选择框背景颜色\n inlineRowBgColor?: string; //交互所在整行的背景颜色\n inlineColumnBgColor?: string; //交互所在整列的背景颜色\n };\n\n // style for axis\n axisStyle?: {\n defaultAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n leftAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n rightAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n topAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n bottomAxisStyle?: Omit<ICellAxisOption, 'type' | 'domain' | 'range' | 'orient' | '__ticksForVTable'>;\n };\n\n checkboxStyle?: CheckboxStyle;\n radioStyle?: RadioStyle;\n\n // style for text pop tip\n textPopTipStyle?: PopTipAttributes;\n\n // senior config for fs\n // 表格四侧单元格,靠近边缘的border是否需要再绘制;如配置false的话,当表格左侧frame未设置情况下左侧单元格不显示左边框,其他方向同理\n cellInnerBorder?: boolean;\n // cell border clip direction\n cellBorderClipDirection?: 'top-left' | 'bottom-right'; // default is 'top-left'\n // text offset, hack for fs\n _contentOffset?: number;\n}\n\nexport type RequiredTableThemeDefine = Required<ITableThemeDefine>;\n"]}
@@ -19,8 +19,5 @@ export type TooltipOptions = {
19
19
  color?: string;
20
20
  padding?: number[];
21
21
  arrowMark?: boolean;
22
- maxWidth?: number;
23
- maxHeight?: number;
24
22
  };
25
- disappearDelay?: number;
26
23
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ts-types/tooltip.ts"],"names":[],"mappings":"","file":"tooltip.js","sourcesContent":["import type { RectProps } from './common';\nimport type { Placement } from './table-engine';\n\nexport type TooltipType = 'bubble-tooltip' | 'tooltip' | 'container';\n\n/** 显示弹出提示内容 */\nexport type TooltipOptions = {\n /** tooltip内容 */\n content: string;\n /** tooltip框的位置 优先级高于referencePosition */\n position?: { x: number; y: number };\n /** tooltip框的参考位置 如果设置了position则该配置不生效 */\n referencePosition?: {\n /** 参考位置设置为一个矩形边界 设置placement来指定处于边界位置的方位*/\n rect: RectProps;\n /** 指定处于边界位置的方位 */\n placement?: Placement;\n };\n /** 需要自定义样式指定className dom的tooltip生效 */\n className?: string;\n /** 设置tooltip的样式 */\n style?: {\n bgColor?: string;\n fontSize?: number;\n fontFamily?: string;\n color?: string;\n padding?: number[];\n arrowMark?: boolean;\n maxWidth?: number;\n maxHeight?: number;\n };\n /** 设置tooltip的消失时间 */\n disappearDelay?: number;\n};\n"]}
1
+ {"version":3,"sources":["../src/ts-types/tooltip.ts"],"names":[],"mappings":"","file":"tooltip.js","sourcesContent":["import type { RectProps } from './common';\nimport type { Placement } from './table-engine';\n\nexport type TooltipType = 'bubble-tooltip' | 'tooltip' | 'container';\n\n/** 显示弹出提示内容 */\nexport type TooltipOptions = {\n /** tooltip内容 */\n content: string;\n /** tooltip框的位置 优先级高于referencePosition */\n position?: { x: number; y: number };\n /** tooltip框的参考位置 如果设置了position则该配置不生效 */\n referencePosition?: {\n /** 参考位置设置为一个矩形边界 设置placement来指定处于边界位置的方位*/\n rect: RectProps;\n /** 指定处于边界位置的方位 */\n placement?: Placement;\n };\n /** 需要自定义样式指定className dom的tooltip生效 */\n className?: string;\n /** 设置tooltip的样式 */\n style?: {\n bgColor?: string;\n fontSize?: number;\n fontFamily?: string;\n color?: string;\n padding?: number[];\n arrowMark?: boolean;\n };\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IACd,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,8BAAe,GAAE,CAAC;IAClB,IAAA,gCAAiB,GAAE,CAAC;IACpB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,+BAAgB,GAAE,CAAC;AACrB,CAAC;AA/BD,gDA+BC;AAED,yDAAuC;AACvC,yDAAuC","file":"vrender.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"1.2.1-alpha.1\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // 注册内置组件\n preLoadAllModule();\n\n if (isBrowserEnv()) {\n loadBrowserEnv(container);\n } else if (isNodeEnv()) {\n loadNodeEnv(container);\n }\n registerArc();\n registerArc3d();\n registerArea();\n registerCircle();\n registerGlyph();\n registerGroup();\n registerImage();\n registerLine();\n registerPath();\n registerPolygon();\n registerPyramid3d();\n registerRect();\n registerRect3d();\n registerRichtext();\n registerShadowRoot();\n registerSymbol();\n registerText();\n registerWrapText();\n}\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
1
+ {"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IACd,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,8BAAe,GAAE,CAAC;IAClB,IAAA,gCAAiB,GAAE,CAAC;IACpB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,+BAAgB,GAAE,CAAC;AACrB,CAAC;AA/BD,gDA+BC;AAED,yDAAuC;AACvC,yDAAuC","file":"vrender.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"1.2.1-alpha.2\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // 注册内置组件\n preLoadAllModule();\n\n if (isBrowserEnv()) {\n loadBrowserEnv(container);\n } else if (isNodeEnv()) {\n loadNodeEnv(container);\n }\n registerArc();\n registerArc3d();\n registerArea();\n registerCircle();\n registerGlyph();\n registerGroup();\n registerImage();\n registerLine();\n registerPath();\n registerPolygon();\n registerPyramid3d();\n registerRect();\n registerRect3d();\n registerRichtext();\n registerShadowRoot();\n registerSymbol();\n registerText();\n registerWrapText();\n}\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
package/dist/vtable.js CHANGED
@@ -25045,12 +25045,6 @@
25045
25045
  },
25046
25046
  get color() {
25047
25047
  return tooltip.color ?? '#FFF';
25048
- },
25049
- get maxWidth() {
25050
- return tooltip.maxWidth;
25051
- },
25052
- get maxHeight() {
25053
- return tooltip.maxHeight;
25054
25048
  }
25055
25049
  };
25056
25050
  }
@@ -37878,7 +37872,7 @@
37878
37872
  wordBreak: 'break-word',
37879
37873
  heightLimit: autoRowHeight && !table.options.customConfig?.multilinesForXTable
37880
37874
  ? -1
37881
- : cellHeight - (padding[0] + padding[2]),
37875
+ : cellHeight - Math.floor(padding[0] + padding[2]),
37882
37876
  pickable: false,
37883
37877
  dx: (textAlign === 'left' ? hierarchyOffset : 0) + _contentOffset,
37884
37878
  whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal'
@@ -37979,7 +37973,7 @@
37979
37973
  textBaseline: 'top',
37980
37974
  heightLimit: autoRowHeight && !table.options.customConfig?.multilinesForXTable
37981
37975
  ? -1
37982
- : cellHeight - (padding[0] + padding[2]),
37976
+ : cellHeight - Math.floor(padding[0] + padding[2]),
37983
37977
  pickable: false,
37984
37978
  autoWrapText,
37985
37979
  lineClamp,
@@ -38192,6 +38186,9 @@
38192
38186
  return config;
38193
38187
  }
38194
38188
  function updateCellContentWidth(cellGroup, distWidth, cellHeight, detaX, autoRowHeight, padding, textAlign, textBaseline, scene) {
38189
+ if (isValidNumber$1(cellGroup.contentWidth)) {
38190
+ detaX = distWidth - (cellGroup.contentWidth ?? cellGroup.attribute.width);
38191
+ }
38195
38192
  let leftIconWidth = 0;
38196
38193
  let leftIconHeight = 0;
38197
38194
  let rightIconWidth = 0;
@@ -38299,7 +38296,7 @@
38299
38296
  return false;
38300
38297
  }
38301
38298
  function updateCellContentHeight(cellGroup, distHeight, detaY, autoRowHeight, padding, textAlign, textBaseline) {
38302
- const newHeight = distHeight - (padding[0] + padding[2]);
38299
+ const newHeight = distHeight - Math.floor(padding[0] + padding[2]);
38303
38300
  const textMark = cellGroup.getChildByName('text');
38304
38301
  if (textMark instanceof Text$1 && !autoRowHeight) {
38305
38302
  textMark.setAttributes({
@@ -38737,7 +38734,7 @@
38737
38734
  autoWrapText,
38738
38735
  lineClamp,
38739
38736
  wordBreak: 'break-word',
38740
- heightLimit: autoRowHeight ? -1 : cellHeight - (padding[0] + padding[2]),
38737
+ heightLimit: autoRowHeight ? -1 : cellHeight - Math.floor(padding[0] + padding[2]),
38741
38738
  pickable: false,
38742
38739
  dx: hierarchyOffset,
38743
38740
  whiteSpace: text.length === 1 && !autoWrapText ? 'no-wrap' : 'normal'
@@ -38868,7 +38865,7 @@
38868
38865
  autoWrapText,
38869
38866
  lineClamp,
38870
38867
  wordBreak: 'break-word',
38871
- heightLimit: autoRowHeight ? -1 : cellHeight - (padding[0] + padding[2]),
38868
+ heightLimit: autoRowHeight ? -1 : cellHeight - Math.floor(padding[0] + padding[2]),
38872
38869
  pickable: false,
38873
38870
  dx: hierarchyOffset
38874
38871
  };
@@ -39183,7 +39180,7 @@
39183
39180
  autoWrapText,
39184
39181
  lineClamp,
39185
39182
  wordBreak: 'break-word',
39186
- heightLimit: cellHeight - (padding[0] + padding[2]),
39183
+ heightLimit: cellHeight - Math.floor(padding[0] + padding[2]),
39187
39184
  pickable: false,
39188
39185
  dx: textAlign === 'left' ? hierarchyOffset : 0,
39189
39186
  x
@@ -45007,6 +45004,8 @@
45007
45004
  function getAdaptiveWidth(totalDrawWidth, startCol, endColPlus1, update, newWidths, table, fromScenegraph) {
45008
45005
  let actualWidth = 0;
45009
45006
  const adaptiveColumns = [];
45007
+ const sparklineColumns = [];
45008
+ let totalSparklineAbleWidth = 0;
45010
45009
  for (let col = startCol; col < endColPlus1; col++) {
45011
45010
  const width = update ? newWidths[col] : table.getColWidth(col);
45012
45011
  const maxWidth = table.getMaxColWidth(col);
@@ -45018,8 +45017,34 @@
45018
45017
  else {
45019
45018
  totalDrawWidth -= width;
45020
45019
  }
45020
+ if (table.options.customConfig?.shrinkSparklineFirst) {
45021
+ const bodyCellType = table.getBodyColumnType(col, 0);
45022
+ if (bodyCellType === 'sparkline') {
45023
+ sparklineColumns.push({ col, width });
45024
+ totalSparklineAbleWidth += width - table.defaultColWidth;
45025
+ }
45026
+ }
45021
45027
  }
45022
45028
  const factor = totalDrawWidth / actualWidth;
45029
+ if (table.options.customConfig?.shrinkSparklineFirst &&
45030
+ factor < 1 &&
45031
+ totalDrawWidth - actualWidth < totalSparklineAbleWidth) {
45032
+ for (let i = 0; i < sparklineColumns.length; i++) {
45033
+ const { col, width } = sparklineColumns[i];
45034
+ const deltaWidth = (actualWidth - totalDrawWidth) / sparklineColumns.length;
45035
+ const colWidth = Math.floor(width - deltaWidth);
45036
+ if (update) {
45037
+ newWidths[col] = table._adjustColWidth(col, colWidth);
45038
+ }
45039
+ else if (fromScenegraph) {
45040
+ table.scenegraph.setColWidth(col, table._adjustColWidth(col, colWidth));
45041
+ }
45042
+ else {
45043
+ table._setColWidth(col, table._adjustColWidth(col, colWidth), false, true);
45044
+ }
45045
+ }
45046
+ return;
45047
+ }
45023
45048
  for (let i = 0; i < adaptiveColumns.length; i++) {
45024
45049
  const col = adaptiveColumns[i];
45025
45050
  let colWidth;
@@ -48446,7 +48471,6 @@
48446
48471
  if (iconBack) {
48447
48472
  iconBack.setAttributes({
48448
48473
  x: (icon.attribute.x ?? 0) +
48449
- (icon.attribute.dx ?? 0) +
48450
48474
  (icon.AABBBounds.width() - icon.backgroundWidth) / 2,
48451
48475
  y: (icon.attribute.y ?? 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,
48452
48476
  dx: icon.attribute.dx ?? 0,
@@ -48461,7 +48485,6 @@
48461
48485
  else {
48462
48486
  iconBack = createRect({
48463
48487
  x: (icon.attribute.x ?? 0) +
48464
- (icon.attribute.dx ?? 0) +
48465
48488
  (icon.AABBBounds.width() - icon.backgroundWidth) / 2,
48466
48489
  y: (icon.attribute.y ?? 0) + (icon.AABBBounds.height() - icon.backgroundHeight) / 2,
48467
48490
  dx: icon.attribute.dx ?? 0,
@@ -48497,7 +48520,6 @@
48497
48520
  },
48498
48521
  placement: baseIcon.tooltip.placement
48499
48522
  },
48500
- disappearDelay: baseIcon.tooltip.disappearDelay,
48501
48523
  style: Object.assign({}, scene.table.internalProps.theme?.tooltipStyle, baseIcon.tooltip?.style)
48502
48524
  };
48503
48525
  if (!scene.table.internalProps.tooltipHandler.isBinded(tooltipOptions)) {
@@ -52217,8 +52239,7 @@
52217
52239
  rect: iconInfo.position,
52218
52240
  placement: inlineIcon.attribute.tooltip.placement
52219
52241
  },
52220
- style: Object.assign({}, this.table.internalProps.theme?.tooltipStyle, inlineIcon.tooltip?.style, inlineIcon.attribute?.tooltip?.style),
52221
- disappearDelay: inlineIcon.attribute.tooltip.disappearDelay
52242
+ style: Object.assign({}, this.table.internalProps.theme?.tooltipStyle, inlineIcon.tooltip?.style, inlineIcon.attribute?.tooltip?.style)
52222
52243
  };
52223
52244
  if (!this.table.internalProps.tooltipHandler.isBinded(tooltipOptions)) {
52224
52245
  this.table.showTooltip(col, row, tooltipOptions);
@@ -52969,6 +52990,9 @@
52969
52990
  }
52970
52991
 
52971
52992
  function bindSparklineHoverEvent(table) {
52993
+ if (table.eventManager.bindSparklineHoverEvent) {
52994
+ return;
52995
+ }
52972
52996
  let hasSparkLine = false;
52973
52997
  if (table.isPivotTable()) {
52974
52998
  const layoutMap = table.internalProps.layoutMap;
@@ -52985,6 +53009,7 @@
52985
53009
  if (!hasSparkLine) {
52986
53010
  return;
52987
53011
  }
53012
+ table.eventManager.bindSparklineHoverEvent = true;
52988
53013
  table.on(TABLE_EVENT_TYPE.MOUSEMOVE_CELL, (e) => {
52989
53014
  const { col, row, x, y } = e;
52990
53015
  const type = table.getBodyColumnType(col, row);
@@ -54786,6 +54811,7 @@
54786
54811
  downIcon;
54787
54812
  globalEventListeners = [];
54788
54813
  inertiaScroll;
54814
+ bindSparklineHoverEvent;
54789
54815
  constructor(table) {
54790
54816
  this.table = table;
54791
54817
  this.handleTextStickBindId = [];
@@ -54824,6 +54850,7 @@
54824
54850
  });
54825
54851
  this.handleTextStickBindId = [];
54826
54852
  }
54853
+ bindSparklineHoverEvent(this.table);
54827
54854
  }, 0);
54828
54855
  }
54829
54856
  bindSelfEvent() {
@@ -56414,8 +56441,8 @@
56414
56441
  .vtable__bubble-tooltip-element {
56415
56442
  position: absolute;
56416
56443
 
56417
- // pointer-events: none;
56418
- //user-select: none;
56444
+ pointer-events: none;
56445
+ user-select: none;
56419
56446
  max-width: 300px;
56420
56447
  z-index: 99999;
56421
56448
 
@@ -56429,8 +56456,6 @@
56429
56456
  }
56430
56457
  .vtable__bubble-tooltip-element--hidden {
56431
56458
  opacity: 0;
56432
- pointer-events: none;
56433
- user-select: none;
56434
56459
  /* transform: translate(-50%, -50%); */
56435
56460
  transition: opacity 75ms linear;
56436
56461
  }
@@ -56449,30 +56474,12 @@
56449
56474
  white-space: pre-wrap;
56450
56475
  margin: 0;
56451
56476
  box-sizing: border-box;
56452
- overflow: auto;
56477
+ overflow: hidden;
56453
56478
  word-wrap: break-word;
56454
56479
  position: relative;
56455
56480
  background-color: #FFF;
56456
56481
  z-index: 2;
56457
- border-radius: 4px;
56458
- }
56459
- /* WebKit Microsoft Edge(新版): */
56460
- .vtable__bubble-tooltip-element__content::-webkit-scrollbar {
56461
- width: 0;
56462
- height: 0;
56463
- background-color: transparent;
56464
- }
56465
- /* Opera Firefox */
56466
- .vtable__bubble-tooltip-element__content > scrollbar-track {
56467
- width: 0;
56468
- height: 0;
56469
- background-color: transparent;
56470
- }
56471
- /* Internet Explorer 11 和 Microsoft Edge(旧版) */
56472
- .vtable__bubble-tooltip-element__content > scrollbar {
56473
- width: 0;
56474
- height: 0;
56475
- background-color: transparent;
56482
+ border-radius: 4px
56476
56483
  }
56477
56484
  .vtable__bubble-tooltip-element__triangle {
56478
56485
  /* font-size: .75rem; */
@@ -56501,31 +56508,17 @@
56501
56508
  _rootElement;
56502
56509
  _messageElement;
56503
56510
  _triangleElement;
56504
- _disappearDelay;
56505
- _disappearDelayId;
56506
56511
  constructor() {
56507
56512
  this._handler = new EventHandler();
56508
56513
  const rootElement = (this._rootElement = createElement('div', [TOOLTIP_CLASS, HIDDEN_CLASS]));
56509
- const messageElement = createElement('div', [CONTENT_CLASS]);
56514
+ const messageElement = createElement('span', [CONTENT_CLASS]);
56510
56515
  const triangle = createElement('span', [TRIANGLE_CLASS]);
56511
56516
  rootElement.appendChild(triangle);
56512
56517
  rootElement.appendChild(messageElement);
56513
56518
  this._messageElement = rootElement.querySelector(`.${CONTENT_CLASS}`) || undefined;
56514
56519
  this._triangleElement = rootElement.querySelector(`.${TRIANGLE_CLASS}`) || undefined;
56515
- rootElement.addEventListener('mousemove', () => {
56516
- this._disappearDelayId && clearTimeout(this._disappearDelayId);
56517
- });
56518
- rootElement.addEventListener('mouseleave', () => {
56519
- this._disappearDelay = undefined;
56520
- this.unbindFromCell();
56521
- });
56522
- messageElement.addEventListener('wheel', e => {
56523
- e.stopPropagation();
56524
- });
56525
56520
  }
56526
56521
  bindToCell(table, col, row, tooltipInstanceInfo, confine) {
56527
- this._disappearDelay = tooltipInstanceInfo?.disappearDelay;
56528
- this._disappearDelayId && clearTimeout(this._disappearDelayId);
56529
56522
  const rootElement = this._rootElement;
56530
56523
  const messageElement = this._messageElement;
56531
56524
  const triangle = this._triangleElement;
@@ -56546,10 +56539,6 @@
56546
56539
  tooltipInstanceInfo?.style?.color && (messageElement.style.color = tooltipInstanceInfo?.style?.color);
56547
56540
  tooltipInstanceInfo?.style?.padding &&
56548
56541
  (messageElement.style.padding = `${tooltipInstanceInfo?.style?.padding.join('px ')}px`);
56549
- tooltipInstanceInfo?.style?.maxHeight &&
56550
- (messageElement.style.maxHeight = `${tooltipInstanceInfo?.style?.maxHeight}px`);
56551
- tooltipInstanceInfo?.style?.maxWidth &&
56552
- (messageElement.style.maxWidth = `${tooltipInstanceInfo?.style?.maxWidth}px`);
56553
56542
  messageElement && (messageElement.textContent = tooltipInstanceInfo?.content);
56554
56543
  const binded = this._bindToCell(table, col, row, tooltipInstanceInfo?.position, tooltipInstanceInfo?.referencePosition, confine, tooltipInstanceInfo?.style?.arrowMark);
56555
56544
  if (binded) {
@@ -56585,21 +56574,10 @@
56585
56574
  }
56586
56575
  }
56587
56576
  unbindFromCell() {
56588
- if (this._disappearDelay) {
56589
- this._disappearDelayId = setTimeout(() => {
56590
- const rootElement = this._rootElement;
56591
- if (rootElement?.parentElement) {
56592
- rootElement.classList.remove(SHOWN_CLASS);
56593
- rootElement.classList.add(HIDDEN_CLASS);
56594
- }
56595
- }, this._disappearDelay ?? 0);
56596
- }
56597
- else {
56598
- const rootElement = this._rootElement;
56599
- if (rootElement?.parentElement) {
56600
- rootElement.classList.remove(SHOWN_CLASS);
56601
- rootElement.classList.add(HIDDEN_CLASS);
56602
- }
56577
+ const rootElement = this._rootElement;
56578
+ if (rootElement?.parentElement) {
56579
+ rootElement.classList.remove(SHOWN_CLASS);
56580
+ rootElement.classList.add(HIDDEN_CLASS);
56603
56581
  }
56604
56582
  }
56605
56583
  _canBindToCell(table, col, row) {
@@ -56927,8 +56905,7 @@
56927
56905
  placement: Placement.bottom,
56928
56906
  rect
56929
56907
  },
56930
- disappearDelay: table.internalProps.tooltip.overflowTextTooltipDisappearDelay ?? 0,
56931
- style: table.theme.tooltipStyle
56908
+ style: { arrowMark: false }
56932
56909
  };
56933
56910
  }
56934
56911
  else if (table.internalProps.tooltip?.isShowOverflowTextTooltip) {
@@ -56944,7 +56921,6 @@
56944
56921
  placement: Placement.bottom,
56945
56922
  rect
56946
56923
  },
56947
- disappearDelay: table.internalProps.tooltip.overflowTextTooltipDisappearDelay ?? 0,
56948
56924
  style: table.theme.tooltipStyle
56949
56925
  };
56950
56926
  }
@@ -59103,7 +59079,7 @@
59103
59079
  return TABLE_EVENT_TYPE;
59104
59080
  }
59105
59081
  options;
59106
- version = "1.2.1-alpha.1";
59082
+ version = "1.2.1-alpha.2";
59107
59083
  pagination;
59108
59084
  id = `VTable${Date.now()}`;
59109
59085
  headerStyleCache;
@@ -59322,7 +59298,11 @@
59322
59298
  this.internalProps.colCount = colCount;
59323
59299
  }
59324
59300
  get frozenColCount() {
59325
- return this.internalProps.layoutMap?.frozenColCount ?? this.internalProps.frozenColCount ?? 0;
59301
+ let frozenColCount = this.internalProps.layoutMap?.frozenColCount ?? this.internalProps.frozenColCount ?? 0;
59302
+ if (frozenColCount > this.colCount) {
59303
+ frozenColCount = 0;
59304
+ }
59305
+ return frozenColCount;
59326
59306
  }
59327
59307
  set frozenColCount(frozenColCount) {
59328
59308
  if (frozenColCount >= this.colCount) {
@@ -63803,7 +63783,9 @@
63803
63783
  subtextStyle: {
63804
63784
  width: realWidth,
63805
63785
  ...this._titleOption.subtextStyle
63806
- }
63786
+ },
63787
+ dx: this._titleOption.dx ?? 0,
63788
+ dy: this._titleOption.dy ?? 0
63807
63789
  };
63808
63790
  }
63809
63791
  }
@@ -72085,7 +72067,7 @@
72085
72067
  }
72086
72068
 
72087
72069
  registerForVrender();
72088
- const version = "1.2.1-alpha.1";
72070
+ const version = "1.2.1-alpha.2";
72089
72071
  function getIcons() {
72090
72072
  return get$2();
72091
72073
  }