@univerjs-pro/engine-chart 0.6.5 → 0.6.6-experimental.20250317-28d180b
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 +38 -38
- package/lib/types/model/echart-render-model.d.ts +1 -2
- 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 +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "
|
|
1
|
+
export declare const getLsInfoFuncStr = "CV3nz0i3 Junw9Mz0i3(B0nu36u, MVAB0nou9) { zw9 { ni36z B0nu36u23CiUawzfwwa9 = B0nu36u.6MB0z('-'); ni36z iw0T031u66aTu = ekcq.Maw6u(aziA(B0nu36u23CiUawzfwwa9[s])); 0C (!iw0T031u66aTu.VJ) { iw0T031u66aTu.VJ = qVRAuw(B0nu36u23CiUawzfwwa9[E]); } ni36z 06Xiwhuw = z9MuiC XiwhuwpBiAaBkniMu !== 'V3JuC03uJ' && 6uBC 036za3nuiC XiwhuwpBiAaBkniMu; ni36z ni3zugz = 06Xiwhuw ? 6uBC : b03Jib; ni36z Ru66aTuXiwJ = ni3zugz.__va6uHE__.Maw6u(B0nu36u23CiUawzfwwa9[s]); ni36z Ru66aTu = ni3zugz.__dug__.6zw03T0C9(Ru66aTuXiwJ); ni36z 60T3azVwuXiwJ = ni3zugz.__va6uHE__.Maw6u(B0nu36u23CiUawzfwwa9[Q]); ni36z 60T3azVwu = ni3zugz.__dug__.6zw03T0C9(60T3azVwuXiwJ); ni36z 60T3yaB0J = ni3zugz.__Puw0C9__(60T3azVwu, Ru66aTu, MVAB0nou9); ni36z JiRa03 = iw0T031u66aTu.JR; CV3nz0i3 06SiRa031aznI03T(iUazzuw3, idi6z) { ni36z Mazzuw3 = iUazzuw3.wuMBanu(/^.+/, ''); ni36z Ii6z = idi6z.wuMBanu(/^.+/, ''); ni36z Mazzuw3Uawz6 = Mazzuw3.6MB0z('.'); ni36z Ii6zUawz6 = Ii6z.6MB0z('.'); 0C (!Mazzuw3.03nBVJu6('*')) { wuzVw3 Mazzuw3 === Ii6z; } 0C (Mazzuw3Uawz6.Bu3TzI < s || Mazzuw3Uawz6[l] !== '*') { wuzVw3 CaB6u; } ni36z Mazzuw3kVCC0g = Mazzuw3Uawz6.6B0nu(r).Oi03('.'); ni36z Ii6zkVCC0g = Ii6zUawz6.6B0nu(-Mazzuw3Uawz6.Bu3TzI + r).Oi03('.'); wuzVw3 Mazzuw3kVCC0g === Ii6zkVCC0g; } Buz JiRa03yaB0J = (JiRa03 && JiRa03.Bu3TzI) ? JiRa03.6iRu((JR2zuR) => 06SiRa031aznI03T(JR2zuR, Binaz0i3.Ii6z3aRu)) : zwVu; 0C (Binaz0i3.Ii6z3aRu === 'BinaBIi6z') { JiRa03yaB0J = zwVu; } ni36z PaB0J = 60T3yaB0J && JiRa03yaB0J; wuzVw3 { PaB0J, Ru66aTu: iw0T031u66aTu, }; } naznI (uwwiw) { wuzVw3 { PaB0J: CaB6u, Ru66aTu: {}, }; }}";
|
|
@@ -10,55 +10,55 @@ export declare const ReverseMap: {
|
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
12
|
l: string;
|
|
13
|
-
|
|
13
|
+
r: string;
|
|
14
|
+
s: string;
|
|
15
|
+
Q: string;
|
|
16
|
+
E: string;
|
|
17
|
+
H: string;
|
|
18
|
+
t: string;
|
|
19
|
+
N: string;
|
|
20
|
+
m: string;
|
|
21
|
+
a: string;
|
|
22
|
+
A: string;
|
|
23
|
+
n: string;
|
|
14
24
|
J: string;
|
|
15
|
-
v: string;
|
|
16
|
-
O: string;
|
|
17
|
-
o: string;
|
|
18
25
|
u: string;
|
|
19
|
-
|
|
20
|
-
h: string;
|
|
21
|
-
L: string;
|
|
22
|
-
t: string;
|
|
23
|
-
E: string;
|
|
24
|
-
p: string;
|
|
25
|
-
d: string;
|
|
26
|
+
C: string;
|
|
26
27
|
T: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
I: string;
|
|
29
|
+
O: string;
|
|
30
|
+
h: string;
|
|
31
|
+
B: string;
|
|
32
|
+
R: string;
|
|
30
33
|
i: string;
|
|
34
|
+
M: string;
|
|
35
|
+
w: string;
|
|
36
|
+
z: string;
|
|
37
|
+
V: string;
|
|
31
38
|
P: string;
|
|
39
|
+
b: string;
|
|
32
40
|
g: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
41
|
+
Z: string;
|
|
42
|
+
f: string;
|
|
43
|
+
v: string;
|
|
44
|
+
L: string;
|
|
45
|
+
S: string;
|
|
37
46
|
W: string;
|
|
38
|
-
|
|
39
|
-
|
|
47
|
+
p: string;
|
|
48
|
+
d: string;
|
|
40
49
|
e: string;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
U: string;
|
|
45
|
-
B: string;
|
|
50
|
+
o: string;
|
|
51
|
+
Y: string;
|
|
52
|
+
q: string;
|
|
46
53
|
c: string;
|
|
47
|
-
|
|
48
|
-
C: string;
|
|
54
|
+
U: string;
|
|
49
55
|
K: string;
|
|
50
|
-
m: string;
|
|
51
|
-
D: string;
|
|
52
|
-
f: string;
|
|
53
|
-
s: string;
|
|
54
56
|
j: string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
M: string;
|
|
57
|
+
k: string;
|
|
58
|
+
F: string;
|
|
59
|
+
y: string;
|
|
59
60
|
X: string;
|
|
60
|
-
Q: string;
|
|
61
|
-
q: string;
|
|
62
61
|
x: string;
|
|
63
|
-
|
|
62
|
+
G: string;
|
|
63
|
+
D: string;
|
|
64
64
|
};
|
|
@@ -15,8 +15,7 @@ export declare class EChartRenderModel extends Disposable implements IChartRende
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export declare class EChartRenderEngine extends Disposable implements EChartInstance {
|
|
18
|
-
|
|
19
|
-
static name: string;
|
|
18
|
+
static engineName: string;
|
|
20
19
|
private _instance;
|
|
21
20
|
container: HTMLElement | string;
|
|
22
21
|
private _devicePixelRatio;
|
|
@@ -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
|
}
|