@antv/s2-vue 2.0.0-alpha.0 → 2.0.0-next.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.
- package/README.md +1 -1
- package/esm/index.d.ts +21 -6
- package/package.json +5 -6
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<img alt="Version" src="https://img.shields.io/npm/v/@antv/s2-vue/latest.svg" alt="latest version">
|
|
13
13
|
</a>
|
|
14
14
|
<a href="https://www.npmjs.com/package/@antv/s2-vue" target="_blank">
|
|
15
|
-
<img alt="Version" src="https://img.shields.io/npm/v/@antv/s2-vue/
|
|
15
|
+
<img alt="Version" src="https://img.shields.io/npm/v/@antv/s2-vue/next.svg" alt="next version">
|
|
16
16
|
</a>
|
|
17
17
|
<a href="https://github.com/antvis/S2/actions/workflows/test.yml" target="_blank">
|
|
18
18
|
<img src="https://github.com/antvis/S2/actions/workflows/test.yml/badge.svg" alt="ci test status"/>
|
package/esm/index.d.ts
CHANGED
|
@@ -64,6 +64,11 @@ declare enum Aggregation {
|
|
|
64
64
|
AVG = "AVG"
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
declare interface AreaRange {
|
|
68
|
+
start: number;
|
|
69
|
+
width: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
declare interface Background {
|
|
68
73
|
opacity?: number;
|
|
69
74
|
color?: string;
|
|
@@ -506,6 +511,7 @@ declare abstract class BaseFacet {
|
|
|
506
511
|
private emitScrollEvent;
|
|
507
512
|
protected onAfterScroll: DebouncedFunc<() => void>;
|
|
508
513
|
protected saveInitColumnLeafNodes(columnNodes?: Node_2_2[]): void;
|
|
514
|
+
getHiddenColumnsInfo(columnNode: Node_2_2): HiddenColumnsInfo_2 | undefined;
|
|
509
515
|
}
|
|
510
516
|
|
|
511
517
|
declare interface BaseFields {
|
|
@@ -1285,6 +1291,12 @@ declare class ColCell extends HeaderCell {
|
|
|
1285
1291
|
height: number;
|
|
1286
1292
|
};
|
|
1287
1293
|
protected isLastColumn(): boolean;
|
|
1294
|
+
/**
|
|
1295
|
+
* 计算文本位置时候需要,留给后代根据情况(固定列)覆盖
|
|
1296
|
+
* @param viewport
|
|
1297
|
+
* @returns viewport
|
|
1298
|
+
*/
|
|
1299
|
+
protected handleViewport(viewport: AreaRange): AreaRange;
|
|
1288
1300
|
}
|
|
1289
1301
|
|
|
1290
1302
|
declare interface ColCfg {
|
|
@@ -1429,7 +1441,7 @@ declare enum CornerNodeType {
|
|
|
1429
1441
|
Series = "series"
|
|
1430
1442
|
}
|
|
1431
1443
|
|
|
1432
|
-
declare type CustomHeaderField =
|
|
1444
|
+
declare type CustomHeaderField = CustomTreeNode | string;
|
|
1433
1445
|
|
|
1434
1446
|
declare type CustomHeaderFields = CustomHeaderField[];
|
|
1435
1447
|
|
|
@@ -1460,7 +1472,7 @@ export declare class CustomTooltip extends BaseTooltip {
|
|
|
1460
1472
|
|
|
1461
1473
|
declare interface CustomTreeNode {
|
|
1462
1474
|
key: string;
|
|
1463
|
-
title
|
|
1475
|
+
title?: string;
|
|
1464
1476
|
collapsed?: boolean;
|
|
1465
1477
|
description?: string;
|
|
1466
1478
|
children?: CustomTreeNode[];
|
|
@@ -2717,6 +2729,11 @@ onChange?: (current: number) => void;
|
|
|
2717
2729
|
};
|
|
2718
2730
|
}>;
|
|
2719
2731
|
|
|
2732
|
+
declare interface Point {
|
|
2733
|
+
x: number;
|
|
2734
|
+
y: number;
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2720
2737
|
declare interface PointObject {
|
|
2721
2738
|
x: number;
|
|
2722
2739
|
y: number;
|
|
@@ -4341,6 +4358,7 @@ declare class TableColCell extends ColCell {
|
|
|
4341
4358
|
protected getTextStyle(): TextTheme;
|
|
4342
4359
|
protected getHorizontalResizeAreaName(): string;
|
|
4343
4360
|
protected drawBackgroundShape(): void;
|
|
4361
|
+
protected handleViewport(viewport: AreaRange): AreaRange;
|
|
4344
4362
|
}
|
|
4345
4363
|
|
|
4346
4364
|
declare class TableCornerCell extends TableColCell {
|
|
@@ -4705,10 +4723,7 @@ declare interface TooltipOptions {
|
|
|
4705
4723
|
forceRender?: boolean;
|
|
4706
4724
|
}
|
|
4707
4725
|
|
|
4708
|
-
declare
|
|
4709
|
-
x: number;
|
|
4710
|
-
y: number;
|
|
4711
|
-
}
|
|
4726
|
+
declare type TooltipPosition = Point;
|
|
4712
4727
|
|
|
4713
4728
|
declare interface TooltipPositionInfo {
|
|
4714
4729
|
position: TooltipPosition;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@antv/s2-vue",
|
|
4
|
-
"version": "2.0.0-
|
|
4
|
+
"version": "2.0.0-next.1",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"unpkg": "dist/index.min.js",
|
|
7
7
|
"module": "esm/index.js",
|
|
8
8
|
"types": "esm/index.d.ts",
|
|
9
9
|
"description": "use S2 with vue",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"homepage": "https://s2.antv.
|
|
11
|
+
"homepage": "https://s2.antv.antgroup.com",
|
|
12
12
|
"author": "https://github.com/orgs/antvis/people",
|
|
13
13
|
"directories": {
|
|
14
14
|
"lib": "lib",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@antv/s2": ">=1.0.0",
|
|
61
|
-
"ant-design-vue": "
|
|
61
|
+
"ant-design-vue": ">=3.2.0",
|
|
62
62
|
"vue": ">=3.x"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"lodash": "^4.17.21"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@antv/s2": "^2.0.0-
|
|
69
|
+
"@antv/s2": "^2.0.0-next.1",
|
|
70
70
|
"@antv/s2-shared": "*",
|
|
71
71
|
"@testing-library/vue": "^6.6.1",
|
|
72
72
|
"@vue/tsconfig": "^0.1.3",
|
|
@@ -87,6 +87,5 @@
|
|
|
87
87
|
],
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
|
-
}
|
|
91
|
-
"gitHead": "531522ce5ae758f202a9f6bdbff8df7c3739a6a6"
|
|
90
|
+
}
|
|
92
91
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 AntV
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|