@antv/s2-vue 2.0.0-next.1 → 2.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js.map +1 -1
- package/esm/index.d.ts +116 -92
- package/esm/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/esm/index.d.ts
CHANGED
|
@@ -106,12 +106,14 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
106
106
|
protected theme: S2Theme;
|
|
107
107
|
protected backgroundShape: DisplayObject;
|
|
108
108
|
protected textShape: DisplayObject;
|
|
109
|
+
protected textShapes: DisplayObject[];
|
|
109
110
|
protected linkFieldShape: DisplayObject;
|
|
110
111
|
protected actualText: string;
|
|
111
112
|
protected actualTextWidth: number;
|
|
112
113
|
protected conditions: Conditions;
|
|
113
114
|
protected conditionIntervalShape: DisplayObject | undefined;
|
|
114
115
|
protected conditionIconShape: GuiIcon;
|
|
116
|
+
protected conditionIconShapes: GuiIcon[];
|
|
115
117
|
protected stateShapes: Map<StateShapeLayer, DisplayObject<any, any>>;
|
|
116
118
|
constructor(meta: T, spreadsheet: SpreadSheet_2, ...restOptions: unknown[]);
|
|
117
119
|
getMeta(): T;
|
|
@@ -152,7 +154,7 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
152
154
|
protected abstract getMaxTextWidth(): number;
|
|
153
155
|
protected abstract getTextPosition(): PointLike;
|
|
154
156
|
protected abstract findFieldCondition(conditions: Condition[] | undefined): Condition | undefined;
|
|
155
|
-
protected abstract mappingValue(condition: Condition): MappingResult | undefined;
|
|
157
|
+
protected abstract mappingValue(condition: Condition): MappingResult | undefined | null;
|
|
156
158
|
getStyle<K extends keyof S2Theme = keyof CellThemes>(name?: K): DefaultCellTheme | S2Theme[K];
|
|
157
159
|
protected getResizeAreaStyle(): ResizeArea;
|
|
158
160
|
protected shouldDrawResizeAreaByType(type: keyof ResizeInteractionOptions, cell: S2CellType_2): boolean | ((cell: S2CellType_2<ViewMeta_2>) => boolean) | ResizeType | ((resizeInfo: ResizeInfo_2) => boolean) | undefined;
|
|
@@ -186,7 +188,13 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
186
188
|
};
|
|
187
189
|
hideInteractionShape(): void;
|
|
188
190
|
clearUnselectedState(): void;
|
|
189
|
-
getTextShape(): DisplayObject
|
|
191
|
+
getTextShape(): DisplayObject;
|
|
192
|
+
getTextShapes(): DisplayObject[];
|
|
193
|
+
addTextShape(textShape: DisplayObject): void;
|
|
194
|
+
getConditionIconShape(): GuiIcon;
|
|
195
|
+
getConditionIconShapes(): GuiIcon[];
|
|
196
|
+
addConditionIconShape(iconShape: GuiIcon): void;
|
|
197
|
+
resetTextAndConditionIconShapes(): void;
|
|
190
198
|
get cellConditions(): Conditions;
|
|
191
199
|
drawConditionIconShapes(): void;
|
|
192
200
|
getTextConditionFill(textStyle: TextTheme): string | undefined;
|
|
@@ -339,7 +347,7 @@ declare abstract class BaseFacet {
|
|
|
339
347
|
layoutResult: LayoutResult_2;
|
|
340
348
|
viewCellWidths: number[];
|
|
341
349
|
viewCellHeights: ViewCellHeights;
|
|
342
|
-
protected mobileWheel:
|
|
350
|
+
protected mobileWheel: WheelEvent_2;
|
|
343
351
|
protected timer: Timer;
|
|
344
352
|
hScrollBar: ScrollBar;
|
|
345
353
|
hRowScrollBar: ScrollBar;
|
|
@@ -347,7 +355,7 @@ declare abstract class BaseFacet {
|
|
|
347
355
|
rowHeader: RowHeader | null;
|
|
348
356
|
columnHeader: ColHeader;
|
|
349
357
|
cornerHeader: CornerHeader;
|
|
350
|
-
|
|
358
|
+
seriesNumberHeader: SeriesNumberHeader | null;
|
|
351
359
|
centerFrame: Frame;
|
|
352
360
|
gridInfo: GridInfo;
|
|
353
361
|
protected abstract doLayout(): LayoutResult_2;
|
|
@@ -632,14 +640,14 @@ loading: BooleanConstructor;
|
|
|
632
640
|
partDrillDown: ObjectConstructor;
|
|
633
641
|
header: ObjectConstructor;
|
|
634
642
|
options: {
|
|
635
|
-
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
636
|
-
default: S2Options<TooltipContentType, Pagination>;
|
|
643
|
+
type: PropType<S2Options<TooltipContentType, Pagination, string | Element, string>>;
|
|
644
|
+
default: S2Options<TooltipContentType, Pagination, string | Element, string>;
|
|
637
645
|
};
|
|
638
646
|
adaptive: {
|
|
639
647
|
type: PropType<Adaptive>;
|
|
640
648
|
default: Adaptive;
|
|
641
649
|
};
|
|
642
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
650
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
|
|
643
651
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
644
652
|
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
645
653
|
}, {
|
|
@@ -659,7 +667,7 @@ showSizeChange: (nextPageSize: number) => void;
|
|
|
659
667
|
handlePageChange: (nextCurrent: number) => void;
|
|
660
668
|
handlePageSizeChange: (nextSize: number) => void;
|
|
661
669
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
662
|
-
spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet;
|
|
670
|
+
spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet;
|
|
663
671
|
getSpreadSheet: (spreadsheet: SpreadSheet) => void;
|
|
664
672
|
sheetUpdate: SheetUpdateCallback;
|
|
665
673
|
rowCellHover: (data: TargetCellInfo) => void;
|
|
@@ -789,14 +797,14 @@ loading: BooleanConstructor;
|
|
|
789
797
|
partDrillDown: ObjectConstructor;
|
|
790
798
|
header: ObjectConstructor;
|
|
791
799
|
options: {
|
|
792
|
-
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
793
|
-
default: S2Options<TooltipContentType, Pagination>;
|
|
800
|
+
type: PropType<S2Options<TooltipContentType, Pagination, string | Element, string>>;
|
|
801
|
+
default: S2Options<TooltipContentType, Pagination, string | Element, string>;
|
|
794
802
|
};
|
|
795
803
|
adaptive: {
|
|
796
804
|
type: PropType<Adaptive>;
|
|
797
805
|
default: Adaptive;
|
|
798
806
|
};
|
|
799
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
807
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
|
|
800
808
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
801
809
|
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
802
810
|
}>> & {
|
|
@@ -910,10 +918,10 @@ record: RawData;
|
|
|
910
918
|
onScroll?: (position: CellScrollPosition) => any;
|
|
911
919
|
onRowCellBrushSelection?: (event: GEvent) => any;
|
|
912
920
|
onColCellBrushSelection?: (event: GEvent) => any;
|
|
913
|
-
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => any;
|
|
921
|
+
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
|
|
914
922
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
915
923
|
}, {
|
|
916
|
-
options: S2Options<TooltipContentType, Pagination>;
|
|
924
|
+
options: S2Options<TooltipContentType, Pagination, string | Element, string>;
|
|
917
925
|
loading: boolean;
|
|
918
926
|
adaptive: boolean | {
|
|
919
927
|
width?: boolean;
|
|
@@ -1077,10 +1085,10 @@ declare class BaseTooltip_2 {
|
|
|
1077
1085
|
private getContainer;
|
|
1078
1086
|
}
|
|
1079
1087
|
|
|
1080
|
-
declare interface BaseTooltipConfig<T = TooltipContentType_2> {
|
|
1088
|
+
declare interface BaseTooltipConfig<T = TooltipContentType_2, Icon = Element | string, Text = string> {
|
|
1081
1089
|
showTooltip?: boolean;
|
|
1082
1090
|
content?: TooltipShowOptions<T>['content'];
|
|
1083
|
-
operation?: TooltipOperation
|
|
1091
|
+
operation?: TooltipOperation<Icon, Text>;
|
|
1084
1092
|
autoAdjustBoundary?: TooltipAutoAdjustBoundary;
|
|
1085
1093
|
renderTooltip?: (spreadsheet: SpreadSheet_2) => BaseTooltip_2;
|
|
1086
1094
|
adjustPosition?: (positionInfo: TooltipPositionInfo) => TooltipPosition;
|
|
@@ -1367,7 +1375,6 @@ declare class CornerBBox extends BaseBBox {
|
|
|
1367
1375
|
declare class CornerCell extends HeaderCell {
|
|
1368
1376
|
cornerType: CornerNodeType;
|
|
1369
1377
|
protected headerConfig: CornerHeaderConfig;
|
|
1370
|
-
protected textShapes: DisplayObject[];
|
|
1371
1378
|
protected isBolderText(): boolean;
|
|
1372
1379
|
get cellType(): CellTypes;
|
|
1373
1380
|
protected getBorderPositions(): CellBorderPosition[];
|
|
@@ -1478,7 +1485,7 @@ declare interface CustomTreeNode {
|
|
|
1478
1485
|
children?: CustomTreeNode[];
|
|
1479
1486
|
}
|
|
1480
1487
|
|
|
1481
|
-
declare type Data = (RawData_2 & ExtraData) | undefined;
|
|
1488
|
+
declare type Data = (RawData_2 & ExtraData) | undefined | null;
|
|
1482
1489
|
|
|
1483
1490
|
/**
|
|
1484
1491
|
* DataCell for panelGroup area
|
|
@@ -1539,9 +1546,10 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
|
1539
1546
|
* Mapping value to get condition related attrs
|
|
1540
1547
|
* @param condition
|
|
1541
1548
|
*/
|
|
1542
|
-
mappingValue(condition: Condition): MappingResult;
|
|
1549
|
+
mappingValue(condition: Condition): MappingResult | undefined | null;
|
|
1543
1550
|
updateByState(stateName: InteractionStateName): void;
|
|
1544
1551
|
clearUnselectedState(): void;
|
|
1552
|
+
private toggleConditionIntervalShapeOpacity;
|
|
1545
1553
|
}
|
|
1546
1554
|
|
|
1547
1555
|
declare type DataCellCallback = (viewMeta: ViewMeta_2) => S2CellType_2;
|
|
@@ -1745,8 +1753,6 @@ declare interface Fields extends BaseFields {
|
|
|
1745
1753
|
customValueOrder?: number;
|
|
1746
1754
|
}
|
|
1747
1755
|
|
|
1748
|
-
declare type FilterDataItemCallback = (valueField: string, data: DataItem) => DataItem;
|
|
1749
|
-
|
|
1750
1756
|
declare interface FilterParam {
|
|
1751
1757
|
filterKey: string;
|
|
1752
1758
|
filteredValues?: unknown[];
|
|
@@ -2139,6 +2145,11 @@ declare interface LayoutResult_2 {
|
|
|
2139
2145
|
spreadsheet: SpreadSheet_2;
|
|
2140
2146
|
}
|
|
2141
2147
|
|
|
2148
|
+
/**
|
|
2149
|
+
* determine the series number cell coordinates
|
|
2150
|
+
*/
|
|
2151
|
+
declare type LayoutSeriesNumberNodes = (rowsHierarchy: Hierarchy, seriesNumberWidth: number, spreadsheet: SpreadSheet_2) => Node_2_2[];
|
|
2152
|
+
|
|
2142
2153
|
/**
|
|
2143
2154
|
* 布局类型:
|
|
2144
2155
|
* adaptive: 行列等宽,均分整个 canvas 画布宽度
|
|
@@ -2160,9 +2171,7 @@ declare interface LineTheme {
|
|
|
2160
2171
|
};
|
|
2161
2172
|
}
|
|
2162
2173
|
|
|
2163
|
-
declare type
|
|
2164
|
-
|
|
2165
|
-
declare type MappingFunction = (fieldValue: number | string, data: Record<string, any>) => MappingResult | undefined;
|
|
2174
|
+
declare type MappingFunction = (fieldValue: number | string, data: RawData_2) => MappingResult | undefined | null;
|
|
2166
2175
|
|
|
2167
2176
|
declare interface MappingResult extends ValueRange {
|
|
2168
2177
|
icon?: string;
|
|
@@ -2335,6 +2344,10 @@ declare class Node_2_2 {
|
|
|
2335
2344
|
static rootNode(): Node_2_2;
|
|
2336
2345
|
toJSON(): Omit_2<this, "config" | "parent" | "hierarchy" | "spreadsheet">;
|
|
2337
2346
|
getHeadLeafChild(): Node_2_2 | undefined;
|
|
2347
|
+
/**
|
|
2348
|
+
* 获取树状模式下,当前节点以及其所有子节点的高度总和
|
|
2349
|
+
* */
|
|
2350
|
+
getTotalHeightForTreeHierarchy(): number;
|
|
2338
2351
|
}
|
|
2339
2352
|
|
|
2340
2353
|
declare interface OffsetConfig {
|
|
@@ -2448,21 +2461,21 @@ loading: BooleanConstructor;
|
|
|
2448
2461
|
partDrillDown: ObjectConstructor;
|
|
2449
2462
|
header: ObjectConstructor;
|
|
2450
2463
|
options: {
|
|
2451
|
-
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
2452
|
-
default: S2Options<TooltipContentType, Pagination>;
|
|
2464
|
+
type: PropType<S2Options<TooltipContentType, Pagination, string | Element, string>>;
|
|
2465
|
+
default: S2Options<TooltipContentType, Pagination, string | Element, string>;
|
|
2453
2466
|
};
|
|
2454
2467
|
adaptive: {
|
|
2455
2468
|
type: PropType<Adaptive>;
|
|
2456
2469
|
default: Adaptive;
|
|
2457
2470
|
};
|
|
2458
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
2471
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
|
|
2459
2472
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2460
2473
|
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2461
2474
|
}, {
|
|
2462
2475
|
s2Ref: ShallowRef<SheetExpose>;
|
|
2463
|
-
options: S2Options<TooltipContentType, Pagination>;
|
|
2476
|
+
options: S2Options<TooltipContentType, Pagination, string | Element, string>;
|
|
2464
2477
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2465
|
-
spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet;
|
|
2478
|
+
spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet;
|
|
2466
2479
|
getSpreadSheet: (spreadsheet: SpreadSheet) => void;
|
|
2467
2480
|
sheetUpdate: SheetUpdateCallback;
|
|
2468
2481
|
rowCellHover: (data: TargetCellInfo) => void;
|
|
@@ -2592,14 +2605,14 @@ loading: BooleanConstructor;
|
|
|
2592
2605
|
partDrillDown: ObjectConstructor;
|
|
2593
2606
|
header: ObjectConstructor;
|
|
2594
2607
|
options: {
|
|
2595
|
-
type: PropType<S2Options<TooltipContentType, Pagination>>;
|
|
2596
|
-
default: S2Options<TooltipContentType, Pagination>;
|
|
2608
|
+
type: PropType<S2Options<TooltipContentType, Pagination, string | Element, string>>;
|
|
2609
|
+
default: S2Options<TooltipContentType, Pagination, string | Element, string>;
|
|
2597
2610
|
};
|
|
2598
2611
|
adaptive: {
|
|
2599
2612
|
type: PropType<Adaptive>;
|
|
2600
2613
|
default: Adaptive;
|
|
2601
2614
|
};
|
|
2602
|
-
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet>;
|
|
2615
|
+
onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
|
|
2603
2616
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2604
2617
|
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2605
2618
|
}>> & {
|
|
@@ -2713,10 +2726,10 @@ record: RawData;
|
|
|
2713
2726
|
onScroll?: (position: CellScrollPosition) => any;
|
|
2714
2727
|
onRowCellBrushSelection?: (event: GEvent) => any;
|
|
2715
2728
|
onColCellBrushSelection?: (event: GEvent) => any;
|
|
2716
|
-
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => any;
|
|
2729
|
+
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
|
|
2717
2730
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
2718
2731
|
}, {
|
|
2719
|
-
options: S2Options<TooltipContentType, Pagination>;
|
|
2732
|
+
options: S2Options<TooltipContentType, Pagination, string | Element, string>;
|
|
2720
2733
|
loading: boolean;
|
|
2721
2734
|
adaptive: boolean | {
|
|
2722
2735
|
width?: boolean;
|
|
@@ -2948,17 +2961,16 @@ declare class RowHeader extends BaseHeader<RowHeaderConfig> {
|
|
|
2948
2961
|
declare interface RowHeaderConfig extends BaseHeaderConfig {
|
|
2949
2962
|
hierarchyType: S2Options_2['hierarchyType'];
|
|
2950
2963
|
linkFields: string[];
|
|
2951
|
-
seriesNumberWidth: number;
|
|
2952
2964
|
}
|
|
2953
2965
|
|
|
2954
|
-
declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
2966
|
+
declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> {
|
|
2955
2967
|
width?: number;
|
|
2956
2968
|
height?: number;
|
|
2957
2969
|
debug?: boolean;
|
|
2958
2970
|
hierarchyType?: 'grid' | 'tree';
|
|
2959
2971
|
conditions?: Conditions;
|
|
2960
2972
|
totals?: Totals | null;
|
|
2961
|
-
tooltip?: Tooltip<T>;
|
|
2973
|
+
tooltip?: Tooltip<T, Icon, Text>;
|
|
2962
2974
|
interaction?: InteractionOptions;
|
|
2963
2975
|
pagination?: P;
|
|
2964
2976
|
frozenRowHeader?: boolean;
|
|
@@ -2980,6 +2992,7 @@ declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
|
2980
2992
|
/** ***********CUSTOM CELL/HEADER HOOKS**************** */
|
|
2981
2993
|
dataCell?: DataCellCallback;
|
|
2982
2994
|
cornerCell?: CellCallback<CornerHeaderConfig>;
|
|
2995
|
+
seriesNumberCell?: CellCallback<BaseHeaderConfig>;
|
|
2983
2996
|
rowCell?: CellCallback<RowHeaderConfig>;
|
|
2984
2997
|
colCell?: CellCallback<ColHeaderConfig>;
|
|
2985
2998
|
frame?: FrameCallback;
|
|
@@ -2989,12 +3002,10 @@ declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
|
2989
3002
|
layoutArrange?: LayoutArrange;
|
|
2990
3003
|
layoutCoordinate?: LayoutCoordinate;
|
|
2991
3004
|
layoutDataPosition?: LayoutDataPosition;
|
|
2992
|
-
|
|
2993
|
-
filterDisplayDataItem?: FilterDataItemCallback;
|
|
2994
|
-
mappingDisplayDataItem?: MappingDataItemCallback;
|
|
3005
|
+
layoutSeriesNumberNodes?: LayoutSeriesNumberNodes;
|
|
2995
3006
|
}
|
|
2996
3007
|
|
|
2997
|
-
declare type S2CellType_2<T extends SimpleBBox = ViewMeta_2> = DataCell_2 | HeaderCell | ColCell | CornerCell | RowCell | MergedCell | TableCornerCell | TableSeriesCell | BaseCell<T>;
|
|
3008
|
+
declare type S2CellType_2<T extends SimpleBBox = ViewMeta_2> = DataCell_2 | HeaderCell | ColCell | CornerCell | RowCell | SeriesNumberCell | MergedCell | TableCornerCell | TableSeriesCell | BaseCell<T>;
|
|
2998
3009
|
|
|
2999
3010
|
declare interface S2DataConfig_2 {
|
|
3000
3011
|
data: RawData_2[];
|
|
@@ -3110,7 +3121,7 @@ declare interface S2EventHandler {
|
|
|
3110
3121
|
|
|
3111
3122
|
declare type S2MountContainer_2 = string | Element;
|
|
3112
3123
|
|
|
3113
|
-
declare interface S2Options_2<T = TooltipContentType_2, P = Pagination_2> extends S2BasicOptions<T, P>, S2TableSheetOptions, S2PivotSheetOptions {
|
|
3124
|
+
declare interface S2Options_2<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> extends S2BasicOptions<T, P, Icon, Text>, S2TableSheetOptions, S2PivotSheetOptions {
|
|
3114
3125
|
dataSet?: (spreadsheet: SpreadSheet_2) => BaseDataSet_2;
|
|
3115
3126
|
}
|
|
3116
3127
|
|
|
@@ -3131,9 +3142,9 @@ declare interface S2Style {
|
|
|
3131
3142
|
rowExpandDepth?: number | null;
|
|
3132
3143
|
collapsedRows?: Record<string, boolean> | null;
|
|
3133
3144
|
collapsedCols?: Record<string, boolean>;
|
|
3134
|
-
cellCfg?: CellCfg;
|
|
3135
|
-
colCfg?: ColCfg;
|
|
3136
|
-
rowCfg?: RowCfg;
|
|
3145
|
+
cellCfg?: CellCfg | null | undefined;
|
|
3146
|
+
colCfg?: ColCfg | null | undefined;
|
|
3147
|
+
rowCfg?: RowCfg | null | undefined;
|
|
3137
3148
|
/**
|
|
3138
3149
|
* @deprecated use options.deviceType instead
|
|
3139
3150
|
*/
|
|
@@ -3160,7 +3171,6 @@ declare class ScrollBar extends Group {
|
|
|
3160
3171
|
trackLen: number;
|
|
3161
3172
|
thumbLen: number;
|
|
3162
3173
|
position: PointObject;
|
|
3163
|
-
minThumbLen: number;
|
|
3164
3174
|
thumbOffset: number;
|
|
3165
3175
|
scrollTargetMaxOffset: number;
|
|
3166
3176
|
theme: ScrollBarTheme;
|
|
@@ -3175,8 +3185,10 @@ declare class ScrollBar extends Group {
|
|
|
3175
3185
|
constructor(scrollBarCfg: ScrollBarCfg);
|
|
3176
3186
|
private getCoordinatesName;
|
|
3177
3187
|
/**
|
|
3178
|
-
* Antv/g
|
|
3179
|
-
*
|
|
3188
|
+
* Antv/g 5.0 环境下坐标修正
|
|
3189
|
+
*
|
|
3190
|
+
* 当 lineCap 设置为非 'butt' 后,实际绘制左右两端会多两个头,且不计入 getBBox 的计算
|
|
3191
|
+
* 如长100,strokeWidth=10,实际渲染110长度的线,getBBox 仍返回100
|
|
3180
3192
|
*/
|
|
3181
3193
|
private getCoordinatesWithBBoxExtraPadding;
|
|
3182
3194
|
/**
|
|
@@ -3221,10 +3233,9 @@ declare interface ScrollBarCfg {
|
|
|
3221
3233
|
readonly trackLen: number;
|
|
3222
3234
|
readonly thumbLen: number;
|
|
3223
3235
|
readonly position: PointObject;
|
|
3224
|
-
readonly minThumbLen?: number;
|
|
3225
3236
|
readonly thumbOffset?: number;
|
|
3226
3237
|
readonly scrollTargetMaxOffset: number;
|
|
3227
|
-
readonly theme?: ScrollBarTheme;
|
|
3238
|
+
readonly theme?: ScrollBarTheme | undefined;
|
|
3228
3239
|
}
|
|
3229
3240
|
|
|
3230
3241
|
declare enum ScrollbarPositionType {
|
|
@@ -3236,6 +3247,8 @@ declare interface ScrollBarTheme {
|
|
|
3236
3247
|
trackColor?: string;
|
|
3237
3248
|
thumbHoverColor?: string;
|
|
3238
3249
|
thumbColor?: string;
|
|
3250
|
+
thumbHorizontalMinSize?: number;
|
|
3251
|
+
thumbVerticalMinSize?: number;
|
|
3239
3252
|
size?: number;
|
|
3240
3253
|
hoverSize?: number;
|
|
3241
3254
|
/** 指定如何绘制每一条线段末端,lineCap?: 'butt' | 'round' | 'square'; */
|
|
@@ -3260,16 +3273,33 @@ declare interface SelectHeaderCellInfo {
|
|
|
3260
3273
|
isMultiSelection?: boolean;
|
|
3261
3274
|
}
|
|
3262
3275
|
|
|
3276
|
+
declare class SeriesNumberCell extends BaseCell<Node_2_2> {
|
|
3277
|
+
protected headerConfig: BaseHeaderConfig;
|
|
3278
|
+
protected handleRestOptions(...[headerConfig]: [BaseHeaderConfig]): void;
|
|
3279
|
+
get cellType(): CellTypes;
|
|
3280
|
+
protected getBorderPositions(): CellBorderPosition[];
|
|
3281
|
+
protected initCell(): void;
|
|
3282
|
+
protected getBackgroundColor(): {
|
|
3283
|
+
backgroundColor: string | undefined;
|
|
3284
|
+
backgroundColorOpacity: number | undefined;
|
|
3285
|
+
};
|
|
3286
|
+
update(): void;
|
|
3287
|
+
protected getTextStyle(): TextTheme;
|
|
3288
|
+
protected getFormattedFieldValue(): FormatResult;
|
|
3289
|
+
protected getMaxTextWidth(): number;
|
|
3290
|
+
protected getTextPosition(): PointLike;
|
|
3291
|
+
protected findFieldCondition(): Condition | undefined;
|
|
3292
|
+
protected mappingValue(): MappingResult | undefined;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3263
3295
|
declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
3264
|
-
private backgroundShape;
|
|
3265
|
-
private leftBorderShape;
|
|
3266
3296
|
/**
|
|
3267
3297
|
* Get seriesNumber header by config
|
|
3268
3298
|
*/
|
|
3269
3299
|
static getSeriesNumberHeader(options: {
|
|
3270
3300
|
panelBBox: PanelBBox;
|
|
3271
3301
|
seriesNumberWidth: number;
|
|
3272
|
-
|
|
3302
|
+
rowsHierarchy: Hierarchy;
|
|
3273
3303
|
spreadsheet: SpreadSheet_2;
|
|
3274
3304
|
cornerWidth: number;
|
|
3275
3305
|
}): SeriesNumberHeader;
|
|
@@ -3277,11 +3307,6 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
|
3277
3307
|
clip(): void;
|
|
3278
3308
|
layout(): void;
|
|
3279
3309
|
protected offset(): void;
|
|
3280
|
-
private addBackGround;
|
|
3281
|
-
private addBorder;
|
|
3282
|
-
private getStyle;
|
|
3283
|
-
private addText;
|
|
3284
|
-
private getTextPadding;
|
|
3285
3310
|
}
|
|
3286
3311
|
|
|
3287
3312
|
export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
@@ -3304,21 +3329,21 @@ loading: BooleanConstructor;
|
|
|
3304
3329
|
partDrillDown: ObjectConstructor;
|
|
3305
3330
|
header: ObjectConstructor;
|
|
3306
3331
|
options: {
|
|
3307
|
-
type: PropType<S2Options_2<TooltipContentType_2, Pagination_2>>;
|
|
3308
|
-
default: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3332
|
+
type: PropType<S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>>;
|
|
3333
|
+
default: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>;
|
|
3309
3334
|
};
|
|
3310
3335
|
adaptive: {
|
|
3311
3336
|
type: PropType<Adaptive>;
|
|
3312
3337
|
default: Adaptive;
|
|
3313
3338
|
};
|
|
3314
|
-
onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2>;
|
|
3339
|
+
onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2>;
|
|
3315
3340
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3316
3341
|
onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3317
3342
|
}, {
|
|
3318
3343
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3319
|
-
options: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3344
|
+
options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>;
|
|
3320
3345
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3321
|
-
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
3346
|
+
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
3322
3347
|
getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
|
|
3323
3348
|
sheetUpdate: SheetUpdateCallback;
|
|
3324
3349
|
rowCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -3448,14 +3473,14 @@ loading: BooleanConstructor;
|
|
|
3448
3473
|
partDrillDown: ObjectConstructor;
|
|
3449
3474
|
header: ObjectConstructor;
|
|
3450
3475
|
options: {
|
|
3451
|
-
type: PropType<S2Options_2<TooltipContentType_2, Pagination_2>>;
|
|
3452
|
-
default: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3476
|
+
type: PropType<S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>>;
|
|
3477
|
+
default: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>;
|
|
3453
3478
|
};
|
|
3454
3479
|
adaptive: {
|
|
3455
3480
|
type: PropType<Adaptive>;
|
|
3456
3481
|
default: Adaptive;
|
|
3457
3482
|
};
|
|
3458
|
-
onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2>;
|
|
3483
|
+
onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2>;
|
|
3459
3484
|
onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3460
3485
|
onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3461
3486
|
}>> & {
|
|
@@ -3569,10 +3594,10 @@ record: RawData_2;
|
|
|
3569
3594
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3570
3595
|
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3571
3596
|
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3572
|
-
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3597
|
+
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
3573
3598
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3574
3599
|
}, {
|
|
3575
|
-
options: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3600
|
+
options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>;
|
|
3576
3601
|
loading: boolean;
|
|
3577
3602
|
adaptive: boolean | {
|
|
3578
3603
|
width?: boolean;
|
|
@@ -3586,7 +3611,7 @@ onChange?: (current: number) => void;
|
|
|
3586
3611
|
}> | DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
3587
3612
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3588
3613
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3589
|
-
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
3614
|
+
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
3590
3615
|
getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
|
|
3591
3616
|
sheetUpdate: SheetUpdateCallback;
|
|
3592
3617
|
rowCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -3809,11 +3834,11 @@ record: RawData_2;
|
|
|
3809
3834
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3810
3835
|
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3811
3836
|
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
3812
|
-
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3837
|
+
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
3813
3838
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3814
3839
|
}, {}>>;
|
|
3815
3840
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3816
|
-
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
3841
|
+
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
3817
3842
|
getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
|
|
3818
3843
|
sheetUpdate: SheetUpdateCallback;
|
|
3819
3844
|
rowCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -4036,7 +4061,7 @@ record: RawData_2;
|
|
|
4036
4061
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4037
4062
|
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4038
4063
|
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4039
|
-
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
4064
|
+
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
4040
4065
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
4041
4066
|
}, {}>;
|
|
4042
4067
|
|
|
@@ -4236,7 +4261,6 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4236
4261
|
* but offsetY(vertical scroll don't need animation)
|
|
4237
4262
|
*/
|
|
4238
4263
|
updateScrollOffset(offsetConfig: OffsetConfig): void;
|
|
4239
|
-
getTooltipDataItemMappingCallback(): MappingDataItemCallback | undefined;
|
|
4240
4264
|
getCell<T extends S2CellType_2 = S2CellType_2>(target: CellEventTarget): T | null;
|
|
4241
4265
|
getCellType(target: CellEventTarget): CellTypes | undefined;
|
|
4242
4266
|
/**
|
|
@@ -4382,7 +4406,7 @@ declare class TableSeriesCell extends TableDataCell {
|
|
|
4382
4406
|
export declare const TableSheet: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
4383
4407
|
s2Ref: ShallowRef<SheetExpose>;
|
|
4384
4408
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4385
|
-
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
4409
|
+
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
4386
4410
|
getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
|
|
4387
4411
|
sheetUpdate: SheetUpdateCallback;
|
|
4388
4412
|
rowCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -4605,7 +4629,7 @@ record: RawData_2;
|
|
|
4605
4629
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4606
4630
|
onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4607
4631
|
onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
|
|
4608
|
-
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
4632
|
+
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
4609
4633
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
4610
4634
|
}, {}>;
|
|
4611
4635
|
|
|
@@ -4641,11 +4665,11 @@ declare interface ThemeCfg_2 {
|
|
|
4641
4665
|
|
|
4642
4666
|
declare type ThemeName = 'default' | 'colorful' | 'gray';
|
|
4643
4667
|
|
|
4644
|
-
declare interface Tooltip<T = TooltipContentType_2> extends BaseTooltipConfig<T> {
|
|
4645
|
-
row?: BaseTooltipConfig<T>;
|
|
4646
|
-
col?: BaseTooltipConfig<T>;
|
|
4647
|
-
corner?: BaseTooltipConfig<T>;
|
|
4648
|
-
data?: BaseTooltipConfig<T>;
|
|
4668
|
+
declare interface Tooltip<T = TooltipContentType_2, Icon = Element | string, Text = string> extends BaseTooltipConfig<T, Icon, Text> {
|
|
4669
|
+
row?: BaseTooltipConfig<T, Icon, Text>;
|
|
4670
|
+
col?: BaseTooltipConfig<T, Icon, Text>;
|
|
4671
|
+
corner?: BaseTooltipConfig<T, Icon, Text>;
|
|
4672
|
+
data?: BaseTooltipConfig<T, Icon, Text>;
|
|
4649
4673
|
}
|
|
4650
4674
|
|
|
4651
4675
|
declare type TooltipAutoAdjustBoundary = 'body' | 'container' | null | undefined;
|
|
@@ -4685,7 +4709,7 @@ declare type TooltipInterpretationOptions = {
|
|
|
4685
4709
|
render?: Element | string;
|
|
4686
4710
|
};
|
|
4687
4711
|
|
|
4688
|
-
declare interface TooltipOperation extends TooltipOperatorOptions {
|
|
4712
|
+
declare interface TooltipOperation<Icon = Element | string, Text = string> extends TooltipOperatorOptions<Icon, Text> {
|
|
4689
4713
|
hiddenColumns?: boolean;
|
|
4690
4714
|
trend?: boolean;
|
|
4691
4715
|
sort?: boolean;
|
|
@@ -4697,24 +4721,24 @@ declare type TooltipOperatorClickHandler = (params: {
|
|
|
4697
4721
|
[key: string]: unknown;
|
|
4698
4722
|
}) => void;
|
|
4699
4723
|
|
|
4700
|
-
declare interface TooltipOperatorMenu {
|
|
4724
|
+
declare interface TooltipOperatorMenu<Icon = Element | string, Text = string> {
|
|
4701
4725
|
key: string;
|
|
4702
|
-
icon?:
|
|
4703
|
-
text?:
|
|
4726
|
+
icon?: Icon;
|
|
4727
|
+
text?: Text;
|
|
4704
4728
|
onClick?: (cell: S2CellType_2) => void;
|
|
4705
4729
|
visible?: boolean | ((cell: S2CellType_2) => boolean);
|
|
4706
|
-
children?: TooltipOperatorMenu[];
|
|
4730
|
+
children?: TooltipOperatorMenu<Icon, Text>[];
|
|
4707
4731
|
}
|
|
4708
4732
|
|
|
4709
|
-
declare interface TooltipOperatorOptions {
|
|
4733
|
+
declare interface TooltipOperatorOptions<Icon = Element | string, Text = string> {
|
|
4710
4734
|
onClick?: TooltipOperatorClickHandler;
|
|
4711
|
-
menus?: TooltipOperatorMenu[];
|
|
4735
|
+
menus?: TooltipOperatorMenu<Icon, Text>[];
|
|
4712
4736
|
defaultSelectedKeys?: string[];
|
|
4713
4737
|
}
|
|
4714
4738
|
|
|
4715
|
-
declare interface TooltipOptions {
|
|
4739
|
+
declare interface TooltipOptions<Icon = Element | string, Text = string> {
|
|
4716
4740
|
hideSummary?: boolean;
|
|
4717
|
-
operator?: TooltipOperatorOptions
|
|
4741
|
+
operator?: TooltipOperatorOptions<Icon, Text>;
|
|
4718
4742
|
enterable?: boolean;
|
|
4719
4743
|
isTotals?: boolean;
|
|
4720
4744
|
showSingleTips?: boolean;
|
|
@@ -4730,12 +4754,12 @@ declare interface TooltipPositionInfo {
|
|
|
4730
4754
|
event: FederatedPointerEvent | MouseEvent;
|
|
4731
4755
|
}
|
|
4732
4756
|
|
|
4733
|
-
declare type TooltipShowOptions<T = TooltipContentType_2> = {
|
|
4757
|
+
declare type TooltipShowOptions<T = TooltipContentType_2, Icon = Element | string, Text = string> = {
|
|
4734
4758
|
position: TooltipPosition;
|
|
4735
4759
|
data?: TooltipData;
|
|
4736
4760
|
cellInfos?: TooltipDataItem[];
|
|
4737
|
-
options?: TooltipOptions
|
|
4738
|
-
content?: ((cell: S2CellType_2, defaultTooltipShowOptions: TooltipShowOptions<T>) => T) | T;
|
|
4761
|
+
options?: TooltipOptions<Icon, Text>;
|
|
4762
|
+
content?: ((cell: S2CellType_2, defaultTooltipShowOptions: TooltipShowOptions<T, Icon, Text>) => T) | T;
|
|
4739
4763
|
event?: FederatedPointerEvent | MouseEvent;
|
|
4740
4764
|
};
|
|
4741
4765
|
|
|
@@ -4840,7 +4864,7 @@ declare type ViewMetaIndexType = keyof Pick<ViewMeta_2, 'colIndex' | 'rowIndex'>
|
|
|
4840
4864
|
* 移动端滚动事件
|
|
4841
4865
|
* @see https://github.com/antvis/g-gesture/blob/master/src/event/wheel.ts
|
|
4842
4866
|
*/
|
|
4843
|
-
declare class
|
|
4867
|
+
declare class WheelEvent_2 extends EE {
|
|
4844
4868
|
private canvas;
|
|
4845
4869
|
private panning;
|
|
4846
4870
|
private preX;
|