@univerjs-pro/engine-chart 0.6.5 → 0.6.6-nightly.202503151606
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 = "237NOia7 WwNj5eOia7(PiNw7rw, e3lPiNVw5) { Oj5 { Na7rO PiNw7rwm72aXbjOgjjb5 = PiNw7rw.rePiO('-'); Na7rO ajiYi7hwrrbYw = TL9C.ebjrw(bOal(PiNw7rwm72aXbjOgjjb5[J])); i2 (!ajiYi7hwrrbYw.3W) { ajiYi7hwrrbYw.3W = C3Klwj(PiNw7rwm72aXbjOgjjb5[n]); } Na7rO iruajSwj = O5ewa2 uajSwj8PalbPLNaew !== '37Ww2i7wW' && rwP2 i7rOb7Nwa2 uajSwj8PalbPLNaew; Na7rO Na7OwtO = iruajSwj ? rwP2 : Bi7WaB; Na7rO KwrrbYwuajW = Na7OwtO.__Abrwqn__.ebjrw(PiNw7rwm72aXbjOgjjb5[J]); Na7rO KwrrbYw = Na7OwtO.__dwt__.rOji7Yi25(KwrrbYwuajW); Na7rO riY7bO3jwuajW = Na7OwtO.__Abrwqn__.ebjrw(PiNw7rwm72aXbjOgjjb5[G]); Na7rO riY7bO3jw = Na7OwtO.__dwt__.rOji7Yi25(riY7bO3jwuajW); Na7rO riY7kbPiW = Na7OwtO.__Hwji25__(riY7bO3jw, KwrrbYw, e3lPiNVw5); Na7rO WaKbi7 = ajiYi7hwrrbYw.WK; 237NOia7 ir6aKbi7hbON0i7Y(aXbOOwj7, adarO) { Na7rO ebOOwj7 = aXbOOwj7.jwePbNw(/^.+/, ''); Na7rO 0arO = adarO.jwePbNw(/^.+/, ''); Na7rO ebOOwj7XbjOr = ebOOwj7.rePiO('.'); Na7rO 0arOXbjOr = 0arO.rePiO('.'); i2 (!ebOOwj7.i7NP3Wwr('*')) { jwO3j7 ebOOwj7 === 0arO; } i2 (ebOOwj7XbjOr.Pw7YO0 < J || ebOOwj7XbjOr[E] !== '*') { jwO3j7 2bPrw; } Na7rO ebOOwj7L322it = ebOOwj7XbjOr.rPiNw(y).Uai7('.'); Na7rO 0arOL322it = 0arOXbjOr.rPiNw(-ebOOwj7XbjOr.Pw7YO0 + y).Uai7('.'); jwO3j7 ebOOwj7L322it === 0arOL322it; } PwO WaKbi7kbPiW = (WaKbi7 && WaKbi7.Pw7YO0) ? WaKbi7.raKw((WKmOwK) => ir6aKbi7hbON0i7Y(WKmOwK, PaNbOia7.0arO7bKw)) : Oj3w; i2 (PaNbOia7.0arO7bKw === 'PaNbP0arO') { WaKbi7kbPiW = Oj3w; } Na7rO HbPiW = riY7kbPiW && WaKbi7kbPiW; jwO3j7 { HbPiW, KwrrbYw: ajiYi7hwrrbYw, }; } NbON0 (wjjaj) { jwO3j7 { HbPiW: 2bPrw, KwrrbYw: {}, }; }}";
|
|
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
E: string;
|
|
13
|
+
y: string;
|
|
14
14
|
J: string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
G: string;
|
|
16
|
+
n: string;
|
|
17
|
+
R: string;
|
|
18
|
+
q: string;
|
|
19
|
+
M: string;
|
|
17
20
|
o: string;
|
|
18
|
-
|
|
19
|
-
k: string;
|
|
20
|
-
h: string;
|
|
21
|
-
L: string;
|
|
22
|
-
t: string;
|
|
23
|
-
E: string;
|
|
24
|
-
p: string;
|
|
25
|
-
d: string;
|
|
26
|
-
T: string;
|
|
21
|
+
f: string;
|
|
27
22
|
b: string;
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
l: string;
|
|
24
|
+
N: string;
|
|
25
|
+
W: string;
|
|
26
|
+
w: string;
|
|
27
|
+
Y: string;
|
|
30
28
|
i: string;
|
|
29
|
+
U: string;
|
|
30
|
+
S: string;
|
|
31
31
|
P: string;
|
|
32
|
-
|
|
33
|
-
n: string;
|
|
32
|
+
K: string;
|
|
34
33
|
a: string;
|
|
35
|
-
F: string;
|
|
36
|
-
w: string;
|
|
37
|
-
W: string;
|
|
38
|
-
R: string;
|
|
39
|
-
I: string;
|
|
40
34
|
e: string;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
p: string;
|
|
36
|
+
j: string;
|
|
37
|
+
r: string;
|
|
38
|
+
O: string;
|
|
39
|
+
H: string;
|
|
45
40
|
B: string;
|
|
41
|
+
t: string;
|
|
46
42
|
c: string;
|
|
43
|
+
g: string;
|
|
47
44
|
A: string;
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
z: string;
|
|
46
|
+
v: string;
|
|
47
|
+
F: string;
|
|
48
|
+
d: string;
|
|
50
49
|
m: string;
|
|
51
|
-
|
|
52
|
-
f: string;
|
|
53
|
-
s: string;
|
|
54
|
-
j: string;
|
|
55
|
-
r: string;
|
|
50
|
+
T: string;
|
|
56
51
|
V: string;
|
|
57
|
-
Y: string;
|
|
58
|
-
M: string;
|
|
59
|
-
X: string;
|
|
60
52
|
Q: string;
|
|
61
|
-
|
|
53
|
+
h: string;
|
|
54
|
+
C: string;
|
|
55
|
+
X: string;
|
|
56
|
+
L: string;
|
|
57
|
+
Z: string;
|
|
62
58
|
x: string;
|
|
63
|
-
|
|
59
|
+
k: string;
|
|
60
|
+
u: string;
|
|
61
|
+
s: string;
|
|
62
|
+
D: string;
|
|
63
|
+
I: 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
|
}
|