@univerjs-pro/engine-chart 0.6.5 → 0.6.6-nightly.202503141606
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/extra/func.d.ts +1 -1
- package/lib/types/extra/reverse.d.ts +41 -41
- package/lib/types/model/echart-render-model.d.ts +0 -1
- package/lib/types/model/mode-converter/mode-converter.d.ts +4 -0
- package/lib/types/source/chart-source.d.ts +2 -1
- package/lib/types/source/static-chart-source.d.ts +5 -1
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "jJhNUQ3h KmNpPAUQ3h(qQNmh2m, AJdqQNcmP) { UpP { N3h2U qQNmh2mShj3aEpUIppEP = qQNmh2m.2AqQU('-'); N3h2U 3pQiQhXm22Eim = nFZM.AEp2m(EU3d(qQNmh2mShj3aEpUIppEP[D])); Qj (!3pQiQhXm22Eim.JK) { 3pQiQhXm22Eim.JK = MJ9dmp(qQNmh2mShj3aEpUIppEP[G]); } N3h2U Q2e3p4mp = UPAm3j e3p4mpzq3dEqFN3Am !== 'JhKmjQhmK' && 2mqj Qh2UEhNm3j e3p4mpzq3dEqFN3Am; N3h2U N3hUmtU = Q2e3p4mp ? 2mqj : yQhK3y; N3h2U 9m22Eime3pK = N3hUmtU.__fE2mvG__.AEp2m(qQNmh2mShj3aEpUIppEP[D]); N3h2U 9m22Eim = N3hUmtU.__6mt__.2UpQhiQjP(9m22Eime3pK); N3h2U 2QihEUJpme3pK = N3hUmtU.__fE2mvG__.AEp2m(qQNmh2mShj3aEpUIppEP[7]); N3h2U 2QihEUJpm = N3hUmtU.__6mt__.2UpQhiQjP(2QihEUJpme3pK); N3h2U 2QihVEqQK = N3hUmtU.__8mpQjP__(2QihEUJpm, 9m22Eim, AJdqQNcmP); N3h2U K39EQh = 3pQiQhXm22Eim.K9; jJhNUQ3h Q2B39EQhXEUNCQhi(3aEUUmph, 3632U) { N3h2U AEUUmph = 3aEUUmph.pmAqENm(/^.+/, ''); N3h2U C32U = 3632U.pmAqENm(/^.+/, ''); N3h2U AEUUmphaEpU2 = AEUUmph.2AqQU('.'); N3h2U C32UaEpU2 = C32U.2AqQU('.'); Qj (!AEUUmph.QhNqJKm2('*')) { pmUJph AEUUmph === C32U; } Qj (AEUUmphaEpU2.qmhiUC < D || AEUUmphaEpU2[Y] !== '*') { pmUJph jEq2m; } N3h2U AEUUmphFJjjQt = AEUUmphaEpU2.2qQNm(W).R3Qh('.'); N3h2U C32UFJjjQt = C32UaEpU2.2qQNm(-AEUUmphaEpU2.qmhiUC + W).R3Qh('.'); pmUJph AEUUmphFJjjQt === C32UFJjjQt; } qmU K39EQhVEqQK = (K39EQh && K39EQh.qmhiUC) ? K39EQh.239m((K9SUm9) => Q2B39EQhXEUNCQhi(K9SUm9, q3NEUQ3h.C32UhE9m)) : UpJm; Qj (q3NEUQ3h.C32UhE9m === 'q3NEqC32U') { K39EQhVEqQK = UpJm; } N3h2U 8EqQK = 2QihVEqQK && K39EQhVEqQK; pmUJph { 8EqQK, 9m22Eim: 3pQiQhXm22Eim, }; } NEUNC (mpp3p) { pmUJph { 8EqQK: jEq2m, 9m22Eim: {}, }; }}";
|
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
Y: string;
|
|
13
|
+
W: string;
|
|
14
|
+
D: string;
|
|
15
|
+
G: string;
|
|
16
|
+
b: string;
|
|
15
17
|
v: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
k: string;
|
|
20
|
-
h: string;
|
|
21
|
-
L: string;
|
|
22
|
-
t: string;
|
|
18
|
+
H: string;
|
|
19
|
+
T: string;
|
|
20
|
+
r: string;
|
|
23
21
|
E: string;
|
|
24
|
-
p: string;
|
|
25
22
|
d: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
N: string;
|
|
24
|
+
K: string;
|
|
25
|
+
m: string;
|
|
26
|
+
j: string;
|
|
30
27
|
i: string;
|
|
28
|
+
C: string;
|
|
29
|
+
Q: string;
|
|
30
|
+
R: string;
|
|
31
|
+
q: string;
|
|
32
|
+
h: string;
|
|
33
|
+
A: string;
|
|
34
|
+
p: string;
|
|
35
|
+
U: string;
|
|
36
|
+
J: string;
|
|
37
|
+
y: string;
|
|
38
|
+
t: string;
|
|
31
39
|
P: string;
|
|
32
40
|
g: string;
|
|
41
|
+
I: string;
|
|
42
|
+
f: string;
|
|
43
|
+
B: string;
|
|
44
|
+
O: string;
|
|
45
|
+
x: string;
|
|
46
|
+
z: string;
|
|
47
|
+
S: string;
|
|
33
48
|
n: string;
|
|
49
|
+
c: string;
|
|
50
|
+
X: string;
|
|
51
|
+
M: string;
|
|
52
|
+
Z: string;
|
|
34
53
|
a: string;
|
|
54
|
+
L: string;
|
|
55
|
+
k: string;
|
|
35
56
|
F: string;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
I: string;
|
|
57
|
+
u: string;
|
|
58
|
+
o: string;
|
|
59
|
+
V: string;
|
|
40
60
|
e: string;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
G: string;
|
|
44
|
-
U: string;
|
|
45
|
-
B: string;
|
|
46
|
-
c: string;
|
|
47
|
-
A: string;
|
|
48
|
-
C: string;
|
|
49
|
-
K: string;
|
|
50
|
-
m: string;
|
|
51
|
-
D: string;
|
|
52
|
-
f: string;
|
|
61
|
+
l: string;
|
|
62
|
+
w: string;
|
|
53
63
|
s: string;
|
|
54
|
-
j: string;
|
|
55
|
-
r: string;
|
|
56
|
-
V: string;
|
|
57
|
-
Y: string;
|
|
58
|
-
M: string;
|
|
59
|
-
X: string;
|
|
60
|
-
Q: string;
|
|
61
|
-
q: string;
|
|
62
|
-
x: string;
|
|
63
|
-
H: string;
|
|
64
64
|
};
|
|
@@ -15,7 +15,6 @@ export declare class EChartRenderModel extends Disposable implements IChartRende
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export declare class EChartRenderEngine extends Disposable implements EChartInstance {
|
|
18
|
-
[Symbol.dispose](): void;
|
|
19
18
|
static name: string;
|
|
20
19
|
private _instance;
|
|
21
20
|
container: HTMLElement | string;
|
|
@@ -45,6 +45,10 @@ export interface IChartModelInitParams {
|
|
|
45
45
|
* The theme name of the chart model. This property will be provided by chart model json.
|
|
46
46
|
*/
|
|
47
47
|
themeName?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The direction of the data source. If the data source is column direction, the value should be false.The default value is true.
|
|
50
|
+
*/
|
|
51
|
+
isRowDirection?: boolean;
|
|
48
52
|
}
|
|
49
53
|
/**
|
|
50
54
|
* Convert the initial data to a chart model.
|
|
@@ -11,7 +11,7 @@ export declare abstract class ChartDataSource implements IChartDataSource {
|
|
|
11
11
|
* The data source can switch the orient or not
|
|
12
12
|
*/
|
|
13
13
|
canSwitchOrient$: Observable<boolean>;
|
|
14
|
-
protected _isRowDirection
|
|
14
|
+
protected _isRowDirection$: BehaviorSubject<boolean>;
|
|
15
15
|
/**
|
|
16
16
|
* The data source is row direction or not
|
|
17
17
|
*/
|
|
@@ -23,6 +23,7 @@ export declare abstract class ChartDataSource implements IChartDataSource {
|
|
|
23
23
|
constructor();
|
|
24
24
|
protected _init(): void;
|
|
25
25
|
setData(data: IUniverDataSet): void;
|
|
26
|
+
get isRowDirection(): boolean;
|
|
26
27
|
updateCanSwitchOrient(flag: boolean): void;
|
|
27
28
|
updateIsRowDirection(flag: boolean): void;
|
|
28
29
|
getDataSet(): IUniverDataSet;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { IUniverDataSet } from '../types';
|
|
2
2
|
import { ChartDataSource } from './chart-source';
|
|
3
3
|
export declare class StaticChartSource extends ChartDataSource {
|
|
4
|
+
private _columnDirectionDataSetCache;
|
|
4
5
|
constructor();
|
|
5
|
-
initData(data: IUniverDataSet): void;
|
|
6
|
+
initData(data: IUniverDataSet, isRowDirection?: boolean): void;
|
|
7
|
+
updateIsRowDirection(flag: boolean): void;
|
|
8
|
+
refresh(): void;
|
|
6
9
|
convertDataSet(): IUniverDataSet;
|
|
10
|
+
dispose(): void;
|
|
7
11
|
}
|