@antv/s2-vue 1.1.0 → 1.2.0-alpha.1

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.
@@ -1 +1 @@
1
- .antv-s2-tooltip-operator{color:#000000a6;font-size:12px;line-height:32px;background:#f9f9f9;padding:0 12px;border:0;cursor:pointer}.antv-s2-tooltip-operator .ant-dropdown-trigger,.antv-s2-tooltip-operator-dropdown{padding:0 6px 0 0}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu{font-size:12px;line-height:32px;color:#000000a6;border:0;margin:0 -12px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item{height:30px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item:not(:last-child){margin:0}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu>.ant-menu-submenu-title{height:30px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{color:#000000a6}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item{font-size:12px;line-height:32px;padding:0 12px;color:#000000a6;border:0;margin:0}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title{padding:0 12px;font-size:12px;line-height:32px;color:#000000a6;margin:0}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content{margin-right:12px}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,.antv-s2-tooltip-operator-submenu-popup .ant-menu-item{font-size:12px;line-height:32px;padding:0 12px;color:#000000a6}.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item{margin:0;height:30px;line-height:32px}.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item:not(:last-child){margin:0}.antv-s2-tooltip-operator-icon{vertical-align:middle;margin-right:4px}.antv-s2-tooltip-operator-icon svg{width:12px;height:12px}.antv-s2-tooltip-container{position:fixed;user-select:text;min-width:200px;max-width:640px;max-height:100vh;overflow:auto;z-index:1024;display:inline-block;background:rgba(255,255,255,.96);border-radius:2px;box-shadow:0 1px 4px #0003;font-size:12px;font-family:Roboto,PingFang SC,Chinese Quote,BlinkMacSystemFont,Segoe UI,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.antv-s2-tooltip-container-hide{opacity:0;visibility:hidden;pointer-events:none}.antv-s2-tooltip-container-hide *{transition:none}.antv-s2-tooltip-container-show{opacity:1;visibility:visible;pointer-events:all}.antv-s2-tooltip-tips,.antv-s2-tooltip-name{padding:12px;line-height:16px;overflow-wrap:break-word;color:#000000d9}.antv-s2-tooltip-tips{padding:4px 12px;color:#00000073}.antv-s2-tooltip-infos{padding:4px 12px;line-height:20px;color:#00000073;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow-wrap:break-word;background:rgba(249,249,249,.96);border-radius:0 0 2px 2px;background-color:#f9f9f9}.antv-s2-tooltip-summary{line-height:20px;color:#000000a6;overflow:hidden;padding:12px}.antv-s2-tooltip-summary-item{display:flex}.antv-s2-tooltip-summary-key{margin-right:20px}.antv-s2-tooltip-summary-val{flex:1;text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.antv-s2-tooltip-interpretation{color:#000000a6;overflow:hidden;padding:12px}.antv-s2-tooltip-interpretation+.antv-s2-tooltip-head-info-list{border-top:1px solid #e9e9e9}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head{margin-bottom:12px}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-icon{width:14px;height:14px}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name{color:#000}.antv-s2-tooltip-head-info-list{color:#a2a2a2;padding:12px 12px 4px;line-height:20px}.antv-s2-tooltip-bold,.antv-s2-tooltip-selected{font-weight:700}.antv-s2-tooltip-selected{margin-right:5px}.antv-s2-tooltip-highlight{color:#000000d9}.antv-s2-tooltip-detail-list{padding:2px 12px 8px}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item{color:#000000a6;overflow:hidden;margin:4px 0;display:flex;justify-content:space-around;align-items:center}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key{margin-right:20px}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-val{flex:1;text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ant-dropdown-menu-item.operation-item{font-size:12px}.antv-s2-spin.ant-spin-nested-loading,.antv-s2-spin>.ant-spin-container{height:100%}.antv-s2-wrapper{padding:0;margin:0;display:flex;flex-direction:column;height:100%}.antv-s2-container{overflow:auto;flex:1 1 auto}.antv-s2-container canvas{display:block}.antv-s2-pagination{display:flex;align-items:center;z-index:1024}.antv-s2-pagination-count{margin-left:12px;text-overflow:ellipsis;white-space:nowrap;max-width:64px}.s2-drill-down[data-v-6eb1ccd0]{width:260px;min-height:20px;position:relative}.s2-drill-down-header[data-v-6eb1ccd0]{display:flex;height:32px;font-size:14px;padding:0 16px;margin-top:16px}.s2-drill-down-header button[data-v-6eb1ccd0]{position:absolute;right:0;top:-4px;font-size:12px;color:#1890ff;letter-spacing:-.2px;line-height:20px}.s2-drill-down-search[data-v-6eb1ccd0]{height:24px;width:228px!important;margin:0 16px;border:1px solid rgba(0,0,0,.15);border-radius:2px;background-color:#fff}.s2-drill-down-search input[data-v-6eb1ccd0],.s2-drill-down-search span[data-v-6eb1ccd0]{font-size:12px}.s2-drill-down-menu[data-v-6eb1ccd0]{max-height:314px;overflow-y:auto;overflow-x:hidden}.s2-drill-down-menu-item[data-v-6eb1ccd0]{height:32px!important;line-height:32px!important;font-size:12px;opacity:.65}.s2-drill-down-menu-item span[data-v-6eb1ccd0]:last-child{line-height:32px}.s2-drill-down-menu-item svg[data-v-6eb1ccd0]{margin-right:8px}.s2-drill-down-empty[data-v-6eb1ccd0]{padding:18px 18px 0;font-size:12px}
1
+ .antv-s2-tooltip-operator{color:#000000a6;font-size:12px;line-height:32px;background:#f9f9f9;padding:0 12px;border:0;cursor:pointer}.antv-s2-tooltip-operator .ant-dropdown-trigger,.antv-s2-tooltip-operator-dropdown{padding:0 6px 0 0}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu{font-size:12px;line-height:32px;color:#000000a6;border:0;margin:0 -12px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item{height:30px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item:not(:last-child){margin:0}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu>.ant-menu-submenu-title{height:30px}.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu>.ant-menu-submenu-title .ant-menu-submenu-arrow{color:#000000a6}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item{font-size:12px;line-height:32px;padding:0 12px;color:#000000a6;border:0;margin:0}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title{padding:0 12px;font-size:12px;line-height:32px;color:#000000a6;margin:0}.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content{margin-right:12px}.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,.antv-s2-tooltip-operator-submenu-popup .ant-menu-item{font-size:12px;line-height:32px;padding:0 12px;color:#000000a6}.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item{margin:0;height:30px;line-height:32px}.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item:not(:last-child){margin:0}.antv-s2-tooltip-operator-icon{vertical-align:middle;margin-right:4px}.antv-s2-tooltip-operator-icon svg{width:12px;height:12px}.antv-s2-tooltip-container{position:fixed;user-select:text;min-width:200px;max-width:640px;max-height:100vh;overflow:auto;z-index:1024;display:inline-block;background:rgba(255,255,255,.96);border-radius:2px;box-shadow:0 1px 4px #0003;font-size:12px;font-family:Roboto,PingFang SC,Chinese Quote,BlinkMacSystemFont,Segoe UI,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.antv-s2-tooltip-container-hide{opacity:0;visibility:hidden;pointer-events:none}.antv-s2-tooltip-container-hide *{transition:none}.antv-s2-tooltip-container-show{opacity:1;visibility:visible;pointer-events:all}.antv-s2-tooltip-tips,.antv-s2-tooltip-name{padding:12px;line-height:16px;overflow-wrap:break-word;color:#000000d9}.antv-s2-tooltip-description{padding:0 12px 12px;line-height:16px;overflow-wrap:break-word;color:#000000a6}.antv-s2-tooltip-tips{padding:4px 12px;color:#00000073}.antv-s2-tooltip-infos{padding:4px 12px;line-height:20px;color:#00000073;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow-wrap:break-word;background:rgba(249,249,249,.96);border-radius:0 0 2px 2px;background-color:#f9f9f9}.antv-s2-tooltip-summary{line-height:20px;color:#000000a6;overflow:hidden;padding:12px}.antv-s2-tooltip-summary-item{display:flex}.antv-s2-tooltip-summary-key{margin-right:20px}.antv-s2-tooltip-summary-val{flex:1;text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.antv-s2-tooltip-interpretation{color:#000000a6;overflow:hidden;padding:12px}.antv-s2-tooltip-interpretation+.antv-s2-tooltip-head-info-list{border-top:1px solid #e9e9e9}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head{margin-bottom:12px}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-icon{width:14px;height:14px}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name{color:#000}.antv-s2-tooltip-head-info-list{color:#a2a2a2;padding:12px 12px 4px;line-height:20px}.antv-s2-tooltip-bold,.antv-s2-tooltip-selected{font-weight:700}.antv-s2-tooltip-selected{margin-right:5px}.antv-s2-tooltip-highlight{color:#000000d9}.antv-s2-tooltip-detail-list{padding:2px 12px 8px}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item{color:#000000a6;overflow:hidden;margin:4px 0;display:flex;justify-content:space-around;align-items:center}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key{margin-right:20px}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-val{flex:1;text-align:right;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ant-dropdown-menu-item.operation-item{font-size:12px}.antv-s2-spin.ant-spin-nested-loading,.antv-s2-spin>.ant-spin-container{height:100%}.antv-s2-wrapper{padding:0;margin:0;display:flex;flex-direction:column;height:100%}.antv-s2-container{overflow:auto;flex:1 1 auto}.antv-s2-container canvas{display:block}.antv-s2-pagination{display:flex;align-items:center;z-index:1024}.antv-s2-pagination-count{margin-left:12px;text-overflow:ellipsis;white-space:nowrap;max-width:64px}.s2-drill-down[data-v-6eb1ccd0]{width:260px;min-height:20px;position:relative}.s2-drill-down-header[data-v-6eb1ccd0]{display:flex;height:32px;font-size:14px;padding:0 16px;margin-top:16px}.s2-drill-down-header button[data-v-6eb1ccd0]{position:absolute;right:0;top:-4px;font-size:12px;color:#1890ff;letter-spacing:-.2px;line-height:20px}.s2-drill-down-search[data-v-6eb1ccd0]{height:24px;width:228px!important;margin:0 16px;border:1px solid rgba(0,0,0,.15);border-radius:2px;background-color:#fff}.s2-drill-down-search input[data-v-6eb1ccd0],.s2-drill-down-search span[data-v-6eb1ccd0]{font-size:12px}.s2-drill-down-menu[data-v-6eb1ccd0]{max-height:314px;overflow-y:auto;overflow-x:hidden}.s2-drill-down-menu-item[data-v-6eb1ccd0]{height:32px!important;line-height:32px!important;font-size:12px;opacity:.65}.s2-drill-down-menu-item span[data-v-6eb1ccd0]:last-child{line-height:32px}.s2-drill-down-menu-item svg[data-v-6eb1ccd0]{margin-right:8px}.s2-drill-down-empty[data-v-6eb1ccd0]{padding:18px 18px 0;font-size:12px}
package/esm/index.d.ts CHANGED
@@ -18,6 +18,7 @@ import EE from '@antv/event-emitter';
18
18
  import { Event as Event_2 } from '@antv/g-canvas';
19
19
  import { ExtractPropTypes } from 'vue';
20
20
  import type { GEvent } from '@antv/s2';
21
+ import { GM } from '@antv/g-gesture';
21
22
  import { Group } from '@antv/g-canvas';
22
23
  import { HiddenColumnsInfo } from '@antv/s2';
23
24
  import type { IElement } from '@antv/g-canvas';
@@ -67,6 +68,12 @@ declare interface Background {
67
68
  color?: string;
68
69
  }
69
70
 
71
+ declare interface BarTheme {
72
+ intervalPadding?: number;
73
+ fill?: string;
74
+ opacity?: number;
75
+ }
76
+
70
77
  declare abstract class BaseBBox implements BBox {
71
78
  protected spreadsheet: SpreadSheet_2;
72
79
  protected facet: BaseFacet;
@@ -268,6 +275,9 @@ declare interface BaseDrillDownComponentProps<DataSet = BaseDataSet> {
268
275
  declare abstract class BaseEvent {
269
276
  spreadsheet: SpreadSheet_2;
270
277
  constructor(spreadsheet: SpreadSheet_2);
278
+ getCellAppendInfo<T extends Record<string, any> = CellAppendInfo>(eventTarget: Event_2['target']): T;
279
+ isLinkFieldText: (eventTarget: Event_2['target']) => boolean;
280
+ reset(): void;
271
281
  abstract bindEvents(): void;
272
282
  }
273
283
 
@@ -451,6 +461,7 @@ declare abstract class BaseFacet {
451
461
  * @protected
452
462
  */
453
463
  protected dynamicRenderCell(): void;
464
+ private putMergedCellsGroupToFront;
454
465
  private emitScrollEvent;
455
466
  protected onAfterScroll: DebouncedFunc<() => void>;
456
467
  protected saveInitColumnLeafNodes(columnNodes?: Node_2_2[]): void;
@@ -1002,7 +1013,7 @@ declare interface BaseTooltipConfig<T = TooltipContentType> {
1002
1013
  renderTooltip?: (spreadsheet: SpreadSheet_2) => BaseTooltip;
1003
1014
  adjustPosition?: (positionInfo: TooltipPositionInfo) => TooltipPosition;
1004
1015
  getContainer?: () => HTMLElement;
1005
- className?: string;
1016
+ className?: string | string[];
1006
1017
  style?: CSS_2.Properties;
1007
1018
  }
1008
1019
 
@@ -1036,6 +1047,11 @@ declare interface CalcTotals {
1036
1047
 
1037
1048
  declare type CanvasEventHandler = (event: Event_2) => void;
1038
1049
 
1050
+ declare interface CellAppendInfo<T = Node_2_2> extends Partial<ResizeInfo_2> {
1051
+ isLinkFieldText?: boolean;
1052
+ cellData?: T;
1053
+ }
1054
+
1039
1055
  declare enum CellBorderPosition {
1040
1056
  TOP = "TOP",
1041
1057
  BOTTOM = "BOTTOM",
@@ -1051,9 +1067,6 @@ declare interface CellCfg {
1051
1067
  valuesCfg?: {
1052
1068
  originalValueField?: string;
1053
1069
  widthPercent?: number[];
1054
- conditions?: {
1055
- text: Condition;
1056
- };
1057
1070
  };
1058
1071
  }
1059
1072
 
@@ -1108,8 +1121,8 @@ declare enum CellTypes {
1108
1121
 
1109
1122
  declare class ColCell extends HeaderCell {
1110
1123
  protected headerConfig: ColHeaderConfig;
1111
- /** 文字区域(含icon)绘制起始坐标 */
1112
- protected textAreaPosition: Point;
1124
+ /** 文字绘制起始坐标 */
1125
+ protected textPosition: Point;
1113
1126
  get cellType(): CellTypes;
1114
1127
  protected initCell(): void;
1115
1128
  protected drawBackgroundShape(): void;
@@ -1129,17 +1142,22 @@ declare class ColCell extends HeaderCell {
1129
1142
  y: number;
1130
1143
  };
1131
1144
  protected drawVerticalResizeArea(): void;
1132
- private drawResizeArea;
1145
+ protected drawResizeArea(): void;
1133
1146
  protected drawHorizontalBorder(): void;
1134
1147
  protected drawVerticalBorder(dir: CellBorderPosition): void;
1135
1148
  protected drawBorders(): void;
1136
1149
  protected hasHiddenColumnCell(): boolean;
1137
- private getExpandIconTheme;
1138
- private addExpandColumnSplitLine;
1139
- private addExpandColumnIconShapes;
1140
- private addExpandColumnIcon;
1141
- private getExpandColumnIconConfig;
1142
- private isLastColumn;
1150
+ protected getExpandIconTheme(): IconTheme;
1151
+ protected addExpandColumnSplitLine(): void;
1152
+ protected addExpandColumnIconShapes(): void;
1153
+ protected addExpandColumnIcon(): void;
1154
+ protected getExpandColumnIconConfig(): {
1155
+ x: number;
1156
+ y: number;
1157
+ width: number;
1158
+ height: number;
1159
+ };
1160
+ protected isLastColumn(): boolean;
1143
1161
  }
1144
1162
 
1145
1163
  declare interface ColCfg {
@@ -1188,7 +1206,7 @@ declare type CollapsedRowsType_2 = {
1188
1206
  * One field can hold a condition
1189
1207
  */
1190
1208
  declare interface Condition {
1191
- field: string | RegExp;
1209
+ field?: string | RegExp;
1192
1210
  mapping: MappingFunction;
1193
1211
  }
1194
1212
 
@@ -1217,19 +1235,19 @@ declare class CornerCell extends HeaderCell {
1217
1235
  /**
1218
1236
  * 绘制折叠展开的icon
1219
1237
  */
1220
- private drawTreeIcon;
1221
- private drawBackgroundShape;
1238
+ protected drawTreeIcon(): void;
1239
+ protected drawBackgroundShape(): void;
1222
1240
  /**
1223
1241
  * Render cell horizontalBorder border
1224
- * @private
1242
+ * @protected
1225
1243
  */
1226
1244
  protected drawBorderShape(): void;
1227
- private isLastRowCornerCell;
1228
- private getResizeAreaEffect;
1229
- private drawResizeArea;
1230
- private showTreeIcon;
1245
+ protected isLastRowCornerCell(): boolean;
1246
+ protected getResizeAreaEffect(): ResizeAreaEffect.Field | ResizeAreaEffect.Tree | ResizeAreaEffect.Series;
1247
+ protected drawResizeArea(): void;
1248
+ protected showTreeIcon(): boolean;
1231
1249
  protected getIconPosition(): Point;
1232
- private getTreeIconWidth;
1250
+ protected getTreeIconWidth(): number;
1233
1251
  protected getTextStyle(): TextTheme;
1234
1252
  protected getMaxTextWidth(): number;
1235
1253
  protected getTextPosition(): Point;
@@ -1333,7 +1351,7 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
1333
1351
  protected drawConditionIconShapes(): void;
1334
1352
  /**
1335
1353
  * Draw interval condition shape
1336
- * @private
1354
+ * @protected
1337
1355
  */
1338
1356
  protected drawConditionIntervalShape(): void;
1339
1357
  getBackgroundColor(): {
@@ -1352,10 +1370,10 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
1352
1370
  * Draw interactive color
1353
1371
  */
1354
1372
  protected drawInteractiveBgShape(): void;
1355
- private changeRowColSelectState;
1373
+ protected changeRowColSelectState(indexType: ViewMetaIndexType): void;
1356
1374
  /**
1357
1375
  * Render cell border controlled by verticalBorder & horizontalBorder
1358
- * @private
1376
+ * @protected
1359
1377
  */
1360
1378
  protected drawBorderShape(): void;
1361
1379
  /**
@@ -1949,8 +1967,7 @@ declare type Margin = Padding;
1949
1967
  */
1950
1968
  declare class MergedCell extends DataCell_2 {
1951
1969
  cells: S2CellType[];
1952
- isPartiallyVisible: boolean;
1953
- constructor(spreadsheet: SpreadSheet_2, cells: S2CellType[], meta?: ViewMeta_2, isPartiallyVisible?: boolean);
1970
+ constructor(spreadsheet: SpreadSheet_2, cells: S2CellType[], meta?: ViewMeta_2);
1954
1971
  handleRestOptions(...[cells]: [S2CellType[]]): void;
1955
1972
  get cellType(): CellTypes;
1956
1973
  update(): void;
@@ -1985,12 +2002,14 @@ declare type MiniChartData = BaseChartData | BulletValue;
1985
2002
 
1986
2003
  declare interface MiniChartTheme {
1987
2004
  line?: LineTheme;
2005
+ bar?: BarTheme;
1988
2006
  bullet?: BulletTheme;
1989
2007
  }
1990
2008
 
1991
2009
  /** mini 图类型 */
1992
2010
  declare enum MiniChartTypes {
1993
2011
  Line = "line",
2012
+ Bar = "bar",
1994
2013
  Bullet = "bullet"
1995
2014
  }
1996
2015
 
@@ -2566,6 +2585,7 @@ declare class RootInteraction {
2566
2585
  constructor(spreadsheet: SpreadSheet_2);
2567
2586
  destroy(): void;
2568
2587
  reset(): void;
2588
+ private onTriggerInteractionsResetEffect;
2569
2589
  setState(interactionStateInfo: InteractionStateInfo): void;
2570
2590
  getState(): InteractionStateInfo;
2571
2591
  setInteractedCells(cell: S2CellType): void;
@@ -2614,15 +2634,15 @@ declare class RootInteraction {
2614
2634
 
2615
2635
  declare class RowCell extends HeaderCell {
2616
2636
  protected headerConfig: RowHeaderConfig;
2617
- private gm;
2637
+ protected gm: GM;
2618
2638
  get cellType(): CellTypes;
2619
2639
  destroy(): void;
2620
2640
  protected initCell(): void;
2621
2641
  protected drawBackgroundShape(): void;
2622
2642
  protected drawInteractiveBgShape(): void;
2623
- private showTreeIcon;
2624
- private showTreeLeafNodeAlignDot;
2625
- private getParentTreeIconCfg;
2643
+ protected showTreeIcon(): boolean;
2644
+ protected showTreeLeafNodeAlignDot(): boolean;
2645
+ protected getParentTreeIconCfg(): any;
2626
2646
  protected drawTreeIcon(): void;
2627
2647
  protected drawTreeLeafNodeAlignDot(): void;
2628
2648
  protected drawTextShape(): void;
@@ -2639,9 +2659,14 @@ declare class RowCell extends HeaderCell {
2639
2659
  y: any;
2640
2660
  };
2641
2661
  protected getMaxTextWidth(): number;
2642
- private getTextArea;
2662
+ protected getTextArea(): {
2663
+ x: number;
2664
+ width: number;
2665
+ y: number;
2666
+ height: number;
2667
+ };
2643
2668
  protected getTextPosition(): Point;
2644
- private getIconYPosition;
2669
+ protected getIconYPosition(): number;
2645
2670
  }
2646
2671
 
2647
2672
  declare type RowCellCollapseTreeRowsType = {
@@ -3796,6 +3821,7 @@ declare abstract class SpreadSheet_2 extends EE {
3796
3821
  backgroundGroup: IGroup;
3797
3822
  panelGroup: IGroup;
3798
3823
  panelScrollGroup: PanelScrollGroup;
3824
+ mergedCellsGroup: IGroup;
3799
3825
  frozenRowGroup: FrozenGroup_2;
3800
3826
  frozenColGroup: FrozenGroup_2;
3801
3827
  frozenTrailingRowGroup: FrozenGroup_2;
@@ -3869,13 +3895,8 @@ declare abstract class SpreadSheet_2 extends EE {
3869
3895
  setOptions(options: Partial<S2Options_2>): void;
3870
3896
  render(reloadData?: boolean, options?: S2RenderOptions_2): void;
3871
3897
  destroy(): void;
3872
- /**
3873
- * Update theme config, if the {@param type} is exists, re-use it,
3874
- * otherwise create new one {@see theme}
3875
- * @param type string
3876
- * @param theme
3877
- */
3878
3898
  setThemeCfg(themeCfg?: ThemeCfg_2): void;
3899
+ setTheme(theme: S2Theme): void;
3879
3900
  /**
3880
3901
  * Update pagination config which store in {@see options}
3881
3902
  * @param pagination
@@ -4286,6 +4307,7 @@ declare type TooltipData = {
4286
4307
  interpretation?: TooltipInterpretationOptions;
4287
4308
  colIndex?: number;
4288
4309
  rowIndex?: number;
4310
+ description?: string;
4289
4311
  };
4290
4312
 
4291
4313
  declare type TooltipDataItem = Record<string, any>;
@@ -4432,4 +4454,6 @@ declare interface ViewMeta_2 {
4432
4454
  [key: string]: unknown;
4433
4455
  }
4434
4456
 
4457
+ declare type ViewMetaIndexType = keyof Pick<ViewMeta_2, 'colIndex' | 'rowIndex'>;
4458
+
4435
4459
  export { }