@visactor/vtable 0.12.0-alpha.11 → 0.12.0-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.
- package/cjs/components/axis/get-axis-attributes.d.ts +151 -0
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/dataset/flatDataToObject.js +2 -1
- package/cjs/event/sparkline-event.js +1 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/scenegraph/hover-state.js +1 -1
- package/cjs/scenegraph/scenegraph.js +1 -1
- package/cjs/state/state.js +1 -1
- package/cjs/themes/ARCO.js +1 -1
- package/cjs/themes/BRIGHT.js +1 -2
- package/cjs/themes/DARK.js +1 -1
- package/cjs/themes/DEFAULT.js +1 -1
- package/cjs/themes/SIMPLIFY.js +1 -1
- package/cjs/themes/theme.js +1 -1
- package/cjs/tools/calc.js +1 -1
- package/cjs/tools/debounce.js +2 -1
- package/cjs/tools/diff-cell.js +2 -2
- package/cjs/tools/dom.js +1 -1
- package/cjs/tools/env.js +1 -1
- package/cjs/tools/global.js +1 -1
- package/cjs/tools/helper.js +1 -1
- package/cjs/tools/icons.js +1 -1
- package/cjs/tools/isx.js +1 -1
- package/dist/vtable.js +3336 -29438
- package/dist/vtable.min.js +2 -2
- package/es/components/axis/get-axis-attributes.d.ts +151 -0
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/dataset/flatDataToObject.js +2 -1
- package/es/event/sparkline-event.js +1 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/scenegraph/hover-state.js +1 -1
- package/es/scenegraph/scenegraph.js +1 -1
- package/es/state/state.js +1 -1
- package/es/themes/ARCO.js +1 -1
- package/es/themes/BRIGHT.js +1 -2
- package/es/themes/DARK.js +1 -1
- package/es/themes/DEFAULT.js +1 -1
- package/es/themes/SIMPLIFY.js +1 -1
- package/es/themes/theme.js +1 -1
- package/es/tools/calc.js +1 -1
- package/es/tools/debounce.js +2 -1
- package/es/tools/diff-cell.js +1 -1
- package/es/tools/dom.js +1 -1
- package/es/tools/env.js +1 -1
- package/es/tools/global.js +1 -1
- package/es/tools/helper.js +1 -1
- package/es/tools/icons.js +1 -1
- package/es/tools/isx.js +1 -2
- package/package.json +4 -4
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type { ICellAxisOption } from '../../ts-types/component/axis';
|
|
2
|
+
export declare const commonAxis: {
|
|
3
|
+
domainLine: {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
style: {
|
|
6
|
+
lineWidth: number;
|
|
7
|
+
stroke: string;
|
|
8
|
+
strokeOpacity: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
grid: {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
style: {
|
|
14
|
+
lineWidth: number;
|
|
15
|
+
stroke: string;
|
|
16
|
+
strokeOpacity: number;
|
|
17
|
+
lineDash: any[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
subGrid: {
|
|
21
|
+
visible: boolean;
|
|
22
|
+
style: {
|
|
23
|
+
lineWidth: number;
|
|
24
|
+
stroke: string;
|
|
25
|
+
strokeOpacity: number;
|
|
26
|
+
lineDash: number[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
tick: {
|
|
30
|
+
visible: boolean;
|
|
31
|
+
tickSize: number;
|
|
32
|
+
style: {
|
|
33
|
+
lineWidth: number;
|
|
34
|
+
stroke: string;
|
|
35
|
+
strokeOpacity: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
subTick: {
|
|
39
|
+
visible: boolean;
|
|
40
|
+
tickSize: number;
|
|
41
|
+
style: {
|
|
42
|
+
lineWidth: number;
|
|
43
|
+
stroke: string;
|
|
44
|
+
strokeOpacity: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
label: {
|
|
48
|
+
visible: boolean;
|
|
49
|
+
space: number;
|
|
50
|
+
style: {
|
|
51
|
+
fontSize: number;
|
|
52
|
+
fill: string;
|
|
53
|
+
fontWeight: string;
|
|
54
|
+
fillOpacity: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
title: {
|
|
58
|
+
space: number;
|
|
59
|
+
style: {
|
|
60
|
+
fontSize: number;
|
|
61
|
+
fill: string;
|
|
62
|
+
fontWeight: string;
|
|
63
|
+
fillOpacity: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export declare function getAxisAttributes(option: ICellAxisOption): {
|
|
68
|
+
orient: import("@visactor/vchart/esm/typings").IOrientType;
|
|
69
|
+
select: boolean;
|
|
70
|
+
hover: boolean;
|
|
71
|
+
line: any;
|
|
72
|
+
label: {
|
|
73
|
+
formatMethod: ((text: string | string[], datum?: import("@visactor/vchart/esm/typings").Datum) => string | string[]) | ((value: any, datum: any, index: number) => string | string[]);
|
|
74
|
+
space?: number;
|
|
75
|
+
inside?: boolean;
|
|
76
|
+
minGap?: number;
|
|
77
|
+
style: any;
|
|
78
|
+
state: any;
|
|
79
|
+
dataFilter?: (data: import("@visactor/vrender-components").AxisItem[], layer: number) => import("@visactor/vrender-components").AxisItem[];
|
|
80
|
+
visible?: boolean;
|
|
81
|
+
flush?: boolean;
|
|
82
|
+
lastVisible?: boolean;
|
|
83
|
+
containerAlign?: "left" | "top" | "center" | "right" | "bottom" | "middle";
|
|
84
|
+
autoRotate?: boolean;
|
|
85
|
+
autoRotateAngle?: number[];
|
|
86
|
+
autoHide?: boolean;
|
|
87
|
+
autoHideMethod?: "parity" | "greedy" | import("@visactor/vrender-components").CustomMethod;
|
|
88
|
+
autoHideSeparation?: number;
|
|
89
|
+
autoLimit?: boolean;
|
|
90
|
+
limitEllipsis?: string;
|
|
91
|
+
layoutFunc?: (labels: import("@visactor/vrender").IText[], labelData: import("@visactor/vrender-components").AxisItem[], layer: number, axis: import("@visactor/vrender").IGroup) => void;
|
|
92
|
+
};
|
|
93
|
+
tick: {
|
|
94
|
+
visible: boolean;
|
|
95
|
+
length: number;
|
|
96
|
+
inside: boolean;
|
|
97
|
+
alignWithLabel: boolean;
|
|
98
|
+
style: any;
|
|
99
|
+
state: any;
|
|
100
|
+
dataFilter: (data: import("@visactor/vrender-components").AxisItem[]) => import("@visactor/vrender-components").AxisItem[];
|
|
101
|
+
};
|
|
102
|
+
subTick: {
|
|
103
|
+
visible: boolean;
|
|
104
|
+
length: number;
|
|
105
|
+
inside: boolean;
|
|
106
|
+
count: number;
|
|
107
|
+
style: any;
|
|
108
|
+
state: any;
|
|
109
|
+
};
|
|
110
|
+
grid: {
|
|
111
|
+
type: string;
|
|
112
|
+
visible: boolean;
|
|
113
|
+
alternateColor: string | string[];
|
|
114
|
+
alignWithLabel: boolean;
|
|
115
|
+
style: any;
|
|
116
|
+
};
|
|
117
|
+
subGrid: {
|
|
118
|
+
type: string;
|
|
119
|
+
visible: boolean;
|
|
120
|
+
alternateColor: string | string[];
|
|
121
|
+
style: any;
|
|
122
|
+
};
|
|
123
|
+
title: {
|
|
124
|
+
visible: boolean;
|
|
125
|
+
position: "end" | "start" | "middle";
|
|
126
|
+
space: number;
|
|
127
|
+
autoRotate: boolean;
|
|
128
|
+
angle: number;
|
|
129
|
+
textStyle: any;
|
|
130
|
+
padding: number | number[] | import("@visactor/vchart/esm/typings").IPadding;
|
|
131
|
+
shape: {
|
|
132
|
+
visible: boolean;
|
|
133
|
+
space: number;
|
|
134
|
+
style: any;
|
|
135
|
+
};
|
|
136
|
+
background: {
|
|
137
|
+
visible: boolean;
|
|
138
|
+
style: any;
|
|
139
|
+
};
|
|
140
|
+
state: {
|
|
141
|
+
text: any;
|
|
142
|
+
shape: any;
|
|
143
|
+
background: any;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
panel: {
|
|
147
|
+
visible: boolean;
|
|
148
|
+
style: any;
|
|
149
|
+
state: any;
|
|
150
|
+
};
|
|
151
|
+
};
|
package/cjs/core/BaseTable.js
CHANGED
|
@@ -45,7 +45,7 @@ class BaseTable extends EventTarget_1.EventTarget {
|
|
|
45
45
|
}
|
|
46
46
|
constructor(container, options = {}) {
|
|
47
47
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
48
|
-
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.12.0-alpha.
|
|
48
|
+
if (super(), this.showFrozenIcon = !0, this.showSort = !0, this.version = "0.12.0-alpha.2",
|
|
49
49
|
this.id = `VTable${Date.now()}`, this.isReleased = !1, this.throttleInvalidate = (0,
|
|
50
50
|
util_1.throttle2)(this.render.bind(this), 200), !container) throw new Error("vtable's container is undefined");
|
|
51
51
|
const {frozenColCount: frozenColCount = 0, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, keyboardOptions: keyboardOptions, columnResizeMode: columnResizeMode, dragHeaderMode: dragHeaderMode, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = pixel_ratio_1.defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount} = options;
|