Skip to content

Commit ca3d314

Browse files
author
yingying.xwy
committed
Merge branch 'alpha' of github.com:antvis/S2 into fix_tests
2 parents 4bc9152 + 952d648 commit ca3d314

File tree

19 files changed

+30
-122
lines changed

19 files changed

+30
-122
lines changed

packages/s2-core/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# [@antv/s2-v1.8.0-alpha.6](https://github.com/antvis/S2/compare/@antv/s2-v1.8.0-alpha.5...@antv/s2-v1.8.0-alpha.6) (2022-02-10)
2+
3+
4+
### Bug Fixes
5+
6+
* 修复子节点收起后角头全部展开收起不生效 close [#1072](https://github.com/antvis/S2/issues/1072) ([#1074](https://github.com/antvis/S2/issues/1074)) ([6f70f38](https://github.com/antvis/S2/commit/6f70f389fe8a0825dfc80cac871e25adc45280ad))
7+
* 重命名 scrollReachNodeField ([a46a9ff](https://github.com/antvis/S2/commit/a46a9ff4b41040d4d43a64d92468a943cefe632b))
8+
9+
10+
### Features
11+
12+
* **interaction:** interaction增加点击行列头方法供外部调用 ([#1073](https://github.com/antvis/S2/issues/1073)) ([b5d6712](https://github.com/antvis/S2/commit/b5d6712255e0851cd67c3c2346e12125910cbc13))
13+
114
# [@antv/s2-v1.8.0-alpha.5](https://github.com/antvis/S2/compare/@antv/s2-v1.8.0-alpha.4...@antv/s2-v1.8.0-alpha.5) (2022-02-10)
215

316

packages/s2-core/__tests__/unit/utils/merge-spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ describe('merge test', () => {
139139
},
140140
frozenRowHeader: true,
141141
showSeriesNumber: false,
142-
scrollReachNodeField: {},
143142
customSVGIcons: [],
144143
showDefaultHeaderActionIcon: false,
145144
headerActionIcons: [],

packages/s2-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antv/s2",
3-
"version": "1.8.0-alpha.5",
3+
"version": "1.8.0-alpha.6",
44
"main": "lib/index.js",
55
"module": "esm/index.js",
66
"unpkg": "dist/index.min.js",

packages/s2-core/src/common/constant/events/basic.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ export enum S2Event {
5252

5353
/** ================ Table Layout ================ */
5454
LAYOUT_AFTER_HEADER_LAYOUT = 'layout:after-header-layout',
55-
LAYOUT_COL_NODE_BORDER_REACHED = 'layout:col-node-border-reached',
56-
LAYOUT_ROW_NODE_BORDER_REACHED = 'layout:row-node-border-reached',
5755
LAYOUT_CELL_SCROLL = 'layout:cell-scroll',
5856
LAYOUT_PAGINATION = 'layout:pagination',
5957
LAYOUT_COLLAPSE_ROWS = 'layout:collapsed-rows',

packages/s2-core/src/common/constant/options.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export const DEFAULT_OPTIONS: Readonly<S2Options> = {
7575
},
7676
},
7777
showSeriesNumber: false,
78-
scrollReachNodeField: {},
7978
customSVGIcons: [],
8079
showDefaultHeaderActionIcon: false,
8180
headerActionIcons: [],

packages/s2-core/src/common/interface/basic.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ export type Pagination = {
193193
total?: number;
194194
};
195195

196-
export interface NodeField {
196+
export interface ScrollReachNodeField {
197197
// 行头中需要监听滚动吸顶的度量id
198-
rowField?: string[];
198+
rowFields?: string[];
199199
// 列头中需要监听滚动吸「左」的度量id
200-
colField?: string[];
200+
colFields?: string[];
201201
}
202202

203203
export interface CustomSVGIcon {

packages/s2-core/src/common/interface/emitter.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ export interface EmitterType {
130130
}) => void;
131131
[S2Event.LAYOUT_AFTER_HEADER_LAYOUT]: (data: LayoutResult) => void;
132132
[S2Event.LAYOUT_CELL_SCROLL]: (data: CellScrollPosition) => void;
133-
[S2Event.LAYOUT_COL_NODE_BORDER_REACHED]: (data: Node) => void;
134-
[S2Event.LAYOUT_ROW_NODE_BORDER_REACHED]: (data: Node) => void;
135133
[S2Event.LAYOUT_TABLE_COL_EXPANDED]: (expandedNode: Node) => void;
136134
[S2Event.LAYOUT_TABLE_COL_HIDDEN]: (
137135
currentHiddenColumnsInfo: HiddenColumnsInfo,

packages/s2-core/src/common/interface/events.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ export interface CellScrollPosition {
99
scrollY: number;
1010
thumbOffset?: number;
1111
}
12-
13-
export type TargetLayoutNode = Node;
14-
1512
export interface ListSortParams {
1613
sortFieldId: string;
1714
sortMethod: string;

packages/s2-core/src/common/interface/s2Options.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
FrameCallback,
1717
MappingDataItemCallback,
1818
MergedCellInfo,
19-
NodeField,
19+
ScrollReachNodeField,
2020
Pagination,
2121
Style,
2222
Totals,
@@ -29,7 +29,6 @@ import {
2929
} from '@/common/interface/hooks';
3030
import { BaseDataSet } from '@/data-set';
3131
import { SpreadSheet } from '@/sheet-type';
32-
import { Node } from '@/facet/layout/node';
3332

3433
export interface S2BasicOptions<T = Element | string> {
3534
// canvas's width
@@ -54,8 +53,6 @@ export interface S2BasicOptions<T = Element | string> {
5453
readonly frozenRowHeader?: boolean;
5554
// show Series Number
5655
readonly showSeriesNumber?: boolean;
57-
// scroll reach node border(which field node belongs to) event config
58-
readonly scrollReachNodeField?: NodeField;
5956
// if show the default header actionIcons
6057
readonly showDefaultHeaderActionIcon?: boolean;
6158
// header cells including ColCell, RowCell, CornerCell action icon's config
@@ -107,13 +104,6 @@ export interface S2BasicOptions<T = Element | string> {
107104
// determine data mapping when shows in tooltip
108105
mappingDisplayDataItem?: MappingDataItemCallback;
109106
/** ***********CUSTOM LIFECYCLE HOOKS**************** */
110-
111-
/** ***********CUSTOM LAYOUT HOOKS**************** */
112-
otterLayout?: (
113-
spreadsheet: SpreadSheet,
114-
rowNode: Node,
115-
colNode: Node,
116-
) => void;
117107
}
118108

119109
// Table sheet options

packages/s2-core/src/common/interface/store.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ export interface StoreKey {
5151
hRowScrollX: number;
5252
// column cell click sort params
5353
sortParam: SortParam;
54-
// last reached border node id
55-
lastReachedBorderId: ReachedBorderId;
5654
// 下钻节点id和对应生成的 path寻址路径
5755
drillDownIdPathMap: Map<string, number[][]>;
5856
// 当前下钻节点

0 commit comments

Comments
 (0)