@univerjs-pro/sheets-chart 0.5.1 → 0.5.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/README.md +40 -7
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/types/commands/mutations/sheets-chart.mutation.d.ts +1 -0
- package/lib/types/common/util.d.ts +6 -0
- package/lib/types/extra/func.d.ts +1 -0
- package/lib/types/extra/reverse.d.ts +64 -0
- package/lib/types/index.d.ts +4 -5
- package/lib/types/models/constants/build-in-theme/types.d.ts +1 -1
- package/lib/types/models/constants/default-chart-style.d.ts +7 -2
- package/lib/types/models/style.types.d.ts +22 -12
- package/lib/types/models/types.d.ts +5 -3
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -6
- /package/lib/types/models/data-context-transformers/{percent-data-conext-transformer.d.ts → percent-data-context-transformer.d.ts} +0 -0
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3aac2a=_0x2702;(function(_0x4d5a68,_0x48f12c){const _0x516a72=_0x2702,_0x222df8=_0x4d5a68();while(!![]){try{const _0x4dcd17=-parseInt(_0x516a72(0xb3))/0x1*(parseInt(_0x516a72(0xb2))/0x2)+parseInt(_0x516a72(0xb5))/0x3+parseInt(_0x516a72(0xaf))/0x4+parseInt(_0x516a72(0xae))/0x5*(parseInt(_0x516a72(0xb1))/0x6)+parseInt(_0x516a72(0xac))/0x7+parseInt(_0x516a72(0xab))/0x8*(parseInt(_0x516a72(0xaa))/0x9)+-parseInt(_0x516a72(0xb4))/0xa;if(_0x4dcd17===_0x48f12c)break;else _0x222df8['push'](_0x222df8['shift']());}catch(_0x3a60a3){_0x222df8['push'](_0x222df8['shift']());}}}(_0x4f38,0x2759f));function _0x4f38(){const _0x3288b9=['181990cCNXfa','1BXrkZh','2176240TyIPQg','274212oGCwtE','18GpWaCn','281008RQyfFb','892563mvVrnm','Category','5rZCaFk','565584BkDSTI','Series','235446knlLrF'];_0x4f38=function(){return _0x3288b9;};return _0x4f38();}const e={'chart':{'category':_0x3aac2a(0xad),'series':_0x3aac2a(0xb0)}};function _0x2702(_0xca0ebd,_0x5ba3dc){const _0x4f38d4=_0x4f38();return _0x2702=function(_0x2702e3,_0x2cc6b0){_0x2702e3=_0x2702e3-0xaa;let _0x36cc52=_0x4f38d4[_0x2702e3];return _0x36cc52;},_0x2702(_0xca0ebd,_0x5ba3dc);}export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4b0ed0=_0x371e;(function(_0x4c707e,_0x2833df){const _0x5ca47f=_0x371e,_0x2663bf=_0x4c707e();while(!![]){try{const _0x32c0f7=-parseInt(_0x5ca47f(0xde))/0x1*(-parseInt(_0x5ca47f(0xdd))/0x2)+-parseInt(_0x5ca47f(0xe0))/0x3+-parseInt(_0x5ca47f(0xd9))/0x4+parseInt(_0x5ca47f(0xdc))/0x5+-parseInt(_0x5ca47f(0xdb))/0x6*(parseInt(_0x5ca47f(0xdf))/0x7)+-parseInt(_0x5ca47f(0xd8))/0x8+parseInt(_0x5ca47f(0xda))/0x9;if(_0x32c0f7===_0x2833df)break;else _0x2663bf['push'](_0x2663bf['shift']());}catch(_0x1c653c){_0x2663bf['push'](_0x2663bf['shift']());}}}(_0xf20b,0x2d938));const e={'chart':{'category':_0x4b0ed0(0xe1),'series':'Series'}},a=e;function _0x371e(_0x281128,_0x332d38){const _0xf20b84=_0xf20b();return _0x371e=function(_0x371e91,_0x4fa1c7){_0x371e91=_0x371e91-0xd8;let _0x3b1b30=_0xf20b84[_0x371e91];return _0x3b1b30;},_0x371e(_0x281128,_0x332d38);}export{a as default};function _0xf20b(){const _0x1ec9fd=['1198752oQBLJR','9393741pdpGsv','114WGIMqd','1049135uPTrvd','2jknhmA','59667zKQJjN','98021qdxWKj','1069998fkWyge','Category','1633216vqzkAf'];_0xf20b=function(){return _0x1ec9fd;};return _0xf20b();}
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x2394c7=_0x4fff;function _0x4fff(_0x524ce4,_0x402019){const _0x4363c3=_0x4363();return _0x4fff=function(_0x4fff54,_0x49cd49){_0x4fff54=_0x4fff54-0x1eb;let _0x335aeb=_0x4363c3[_0x4fff54];return _0x335aeb;},_0x4fff(_0x524ce4,_0x402019);}(function(_0x4930d7,_0x4ea2a6){const _0x58e2c2=_0x4fff,_0x5f0866=_0x4930d7();while(!![]){try{const _0x255e6e=-parseInt(_0x58e2c2(0x1f5))/0x1*(-parseInt(_0x58e2c2(0x1f6))/0x2)+parseInt(_0x58e2c2(0x1ec))/0x3+-parseInt(_0x58e2c2(0x1ef))/0x4*(-parseInt(_0x58e2c2(0x1ed))/0x5)+parseInt(_0x58e2c2(0x1f0))/0x6*(-parseInt(_0x58e2c2(0x1ee))/0x7)+parseInt(_0x58e2c2(0x1f4))/0x8*(-parseInt(_0x58e2c2(0x1f3))/0x9)+-parseInt(_0x58e2c2(0x1eb))/0xa+-parseInt(_0x58e2c2(0x1f2))/0xb;if(_0x255e6e===_0x4ea2a6)break;else _0x5f0866['push'](_0x5f0866['shift']());}catch(_0x306a2a){_0x5f0866['push'](_0x5f0866['shift']());}}}(_0x4363,0xda9d7));const e={'chart':{'category':'Category','series':_0x2394c7(0x1f1)}},a=e;export{a as default};function _0x4363(){const _0x2f7153=['12821006JxPBog','207MriWqu','57184LzQfPe','311475mcMYNh','8jLFUVO','2137770HWCeSj','4405620DnVyAn','1445IkTKRg','7030891XTNkHM','10092Rzhxjf','6FBXTJC','Series'];_0x4363=function(){return _0x2f7153;};return _0x4363();}
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x3e1665=_0x3ea4;function _0x2a86(){const _0x59ed1b=['1272168NLIqbS','503600wbMcrE','432530eHEluF','16blXoSS','Category','582565BowJkG','161oucPDr','117060gDGEaz','122736fNYfZs','1868024eBayLd','36jotPtp'];_0x2a86=function(){return _0x59ed1b;};return _0x2a86();}function _0x3ea4(_0x407627,_0x4ac1a4){const _0x2a8693=_0x2a86();return _0x3ea4=function(_0x3ea4a0,_0x5d6816){_0x3ea4a0=_0x3ea4a0-0x1ca;let _0x784033=_0x2a8693[_0x3ea4a0];return _0x784033;},_0x3ea4(_0x407627,_0x4ac1a4);}(function(_0x11546a,_0xaa3216){const _0x135038=_0x3ea4,_0x3b2c43=_0x11546a();while(!![]){try{const _0x1f48b6=-parseInt(_0x135038(0x1cf))/0x1+parseInt(_0x135038(0x1d1))/0x2*(parseInt(_0x135038(0x1ca))/0x3)+-parseInt(_0x135038(0x1cc))/0x4+parseInt(_0x135038(0x1d3))/0x5+parseInt(_0x135038(0x1cb))/0x6*(parseInt(_0x135038(0x1d4))/0x7)+parseInt(_0x135038(0x1ce))/0x8+-parseInt(_0x135038(0x1cd))/0x9*(-parseInt(_0x135038(0x1d0))/0xa);if(_0x1f48b6===_0xaa3216)break;else _0x3b2c43['push'](_0x3b2c43['shift']());}catch(_0x362be3){_0x3b2c43['push'](_0x3b2c43['shift']());}}}(_0x2a86,0x3f9ec));const e={'chart':{'category':_0x3e1665(0x1d2),'series':'Series'}};export{e as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x22ec(){const _0x373ce2=['35WXdSXc','518064bnNNLI','Category','590097YRyXPE','Series','1420844tyEeHy','282102MdYiHP','1613304lUCpkX','67444mPPlZS','950656QPfMHQ'];_0x22ec=function(){return _0x373ce2;};return _0x22ec();}const _0x3b350f=_0x140a;(function(_0xa25e3b,_0x3fa277){const _0x11c0ae=_0x140a,_0x58b970=_0xa25e3b();while(!![]){try{const _0x402512=-parseInt(_0x11c0ae(0x15b))/0x1+parseInt(_0x11c0ae(0x158))/0x2+parseInt(_0x11c0ae(0x153))/0x3+parseInt(_0x11c0ae(0x155))/0x4+-parseInt(_0x11c0ae(0x15a))/0x5*(-parseInt(_0x11c0ae(0x156))/0x6)+-parseInt(_0x11c0ae(0x157))/0x7+parseInt(_0x11c0ae(0x159))/0x8;if(_0x402512===_0x3fa277)break;else _0x58b970['push'](_0x58b970['shift']());}catch(_0x39793a){_0x58b970['push'](_0x58b970['shift']());}}}(_0x22ec,0x45977));function _0x140a(_0x3ec22a,_0x5bf930){const _0x22ecdf=_0x22ec();return _0x140a=function(_0x140aad,_0x1213f3){_0x140aad=_0x140aad-0x153;let _0x5a3429=_0x22ecdf[_0x140aad];return _0x5a3429;},_0x140a(_0x3ec22a,_0x5bf930);}const e={'chart':{'category':_0x3b350f(0x15c),'series':_0x3b350f(0x154)}};export{e as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x30ec(_0x6856ab,_0x7da04d){const _0x3b4765=_0x3b47();return _0x30ec=function(_0x30ec05,_0x5cd116){_0x30ec05=_0x30ec05-0x77;let _0x213c78=_0x3b4765[_0x30ec05];return _0x213c78;},_0x30ec(_0x6856ab,_0x7da04d);}(function(_0x4452a6,_0x44a329){const _0x16df26=_0x30ec,_0x47ee08=_0x4452a6();while(!![]){try{const _0x1c2b80=parseInt(_0x16df26(0x7d))/0x1*(parseInt(_0x16df26(0x78))/0x2)+parseInt(_0x16df26(0x79))/0x3+-parseInt(_0x16df26(0x7a))/0x4*(parseInt(_0x16df26(0x81))/0x5)+-parseInt(_0x16df26(0x80))/0x6+-parseInt(_0x16df26(0x7b))/0x7*(-parseInt(_0x16df26(0x7f))/0x8)+parseInt(_0x16df26(0x7e))/0x9*(parseInt(_0x16df26(0x7c))/0xa)+-parseInt(_0x16df26(0x77))/0xb;if(_0x1c2b80===_0x44a329)break;else _0x47ee08['push'](_0x47ee08['shift']());}catch(_0x2ace88){_0x47ee08['push'](_0x47ee08['shift']());}}}(_0x3b47,0x90601));function _0x3b47(){const _0x493911=['155619UMOAGs','8XbnDLl','2768670mamQYv','1085125qKWNjH','13796486NVvDdF','66hEUXPC','2770017iFWrVX','12kmgoFw','4968089jQPCvT','410kyFacK','18670oeTkYh'];_0x3b47=function(){return _0x493911;};return _0x3b47();}const e={'chart':{'category':'类别','series':'系列'}};export{e as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4cf075,_0x3bc6b1){const _0x913a3d=_0x54b9,_0x490b0d=_0x4cf075();while(!![]){try{const _0x5c0398=-parseInt(_0x913a3d(0xe4))/0x1*(parseInt(_0x913a3d(0xe9))/0x2)+-parseInt(_0x913a3d(0xea))/0x3*(-parseInt(_0x913a3d(0xe2))/0x4)+-parseInt(_0x913a3d(0xe5))/0x5+-parseInt(_0x913a3d(0xe8))/0x6*(-parseInt(_0x913a3d(0xe1))/0x7)+-parseInt(_0x913a3d(0xe3))/0x8+parseInt(_0x913a3d(0xe6))/0x9+parseInt(_0x913a3d(0xe7))/0xa;if(_0x5c0398===_0x3bc6b1)break;else _0x490b0d['push'](_0x490b0d['shift']());}catch(_0x3f4fc4){_0x490b0d['push'](_0x490b0d['shift']());}}}(_0x5934,0xc2f01));function _0x54b9(_0x58272a,_0x106534){const _0x593460=_0x5934();return _0x54b9=function(_0x54b90d,_0x2f7918){_0x54b90d=_0x54b90d-0xe1;let _0x183414=_0x593460[_0x54b90d];return _0x183414;},_0x54b9(_0x58272a,_0x106534);}const e={'chart':{'category':'类别','series':'系列'}};function _0x5934(){const _0x44690e=['4374540YhzZXo','7880373Hlqyhb','7351080Thnfup','4453470lgkcky','260loeBYx','12jcHVfU','7MnCJar','1053028ycxOji','12563960oKOoKB','1247wOvXoY'];_0x5934=function(){return _0x44690e;};return _0x5934();}export{e as default};
|
|
@@ -5,6 +5,7 @@ export interface IInsertSheetsChartMutationParams extends ISheetCommandSharedPar
|
|
|
5
5
|
range: IRange;
|
|
6
6
|
chartId: string;
|
|
7
7
|
chartType: ChartTypeBits;
|
|
8
|
+
isRowDirection?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export interface IRemoveSheetsChartMutationParams extends ISheetCommandSharedParams {
|
|
10
11
|
chartId: string;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { IAccessor } from '@univerjs/core';
|
|
2
|
+
export declare const BUILD_TIMESTAMP: number;
|
|
3
|
+
export declare const DefaultLimitedTypes: string[];
|
|
4
|
+
export declare const DefaultAllTypes: string[];
|
|
5
|
+
export declare const DefaultInValidTypes: never[];
|
|
1
6
|
export declare const setProperty: (data: Record<string, any>, propertyPath: string, value: any) => void;
|
|
2
7
|
/**
|
|
3
8
|
* Set graphic element to data.
|
|
@@ -12,4 +17,5 @@ interface ISize {
|
|
|
12
17
|
export declare const ChartTextMeasureCache: Map<string, ISize>;
|
|
13
18
|
export declare const calcPosition: (text: string, font: string) => ISize;
|
|
14
19
|
export declare const clearChartTextMeasureCache: () => void;
|
|
20
|
+
export declare function getAllowedChartTypes(accessor: IAccessor): string[];
|
|
15
21
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getLsInfoFuncStr = "L9xdOoRx P8dWSaOoRx(Eod8xG8, a9gEodc8S) { OWS { dRxGO Eod8xG8FxLRKZWOsWWZS = Eod8xG8.GaEoO('-'); dRxGO RWoCoxp8GGZC8 = rY47.aZWG8(ZORg(Eod8xG8FxLRKZWOsWWZS[D])); oL (!RWoCoxp8GGZC8.9P) { RWoCoxp8GGZC8.9P = 79ig8W(Eod8xG8FxLRKZWOsWWZS[k]); } dRxGO oGHRWI8W = OSa8RL HRWI8WeERgZEYdRa8 !== '9xP8Lox8P' && G8EL oxGOZxd8RL HRWI8WeERgZEYdRa8; dRxGO dRxO8fO = oGHRWI8W ? G8EL : loxPRl; dRxGO i8GGZC8HRWP = dRxO8fO.__TZG8Ak__.aZWG8(Eod8xG8FxLRKZWOsWWZS[D]); dRxGO i8GGZC8 = dRxO8fO.__m8f__.GOWoxCoLS(i8GGZC8HRWP); dRxGO GoCxZO9W8HRWP = dRxO8fO.__TZG8Ak__.aZWG8(Eod8xG8FxLRKZWOsWWZS[z]); dRxGO GoCxZO9W8 = dRxO8fO.__m8f__.GOWoxCoLS(GoCxZO9W8HRWP); dRxGO GoCxUZEoP = dRxO8fO.__M8WoLS__(GoCxZO9W8, i8GGZC8, a9gEodc8S); dRxGO PRiZox = RWoCoxp8GGZC8.Pi; L9xdOoRx oGbRiZoxpZOdVoxC(RKZOO8Wx, RmRGO) { dRxGO aZOO8Wx = RKZOO8Wx.W8aEZd8(/^.+/, ''); dRxGO VRGO = RmRGO.W8aEZd8(/^.+/, ''); dRxGO aZOO8WxKZWOG = aZOO8Wx.GaEoO('.'); dRxGO VRGOKZWOG = VRGO.GaEoO('.'); oL (!aZOO8Wx.oxdE9P8G('*')) { W8O9Wx aZOO8Wx === VRGO; } oL (aZOO8WxKZWOG.E8xCOV < D || aZOO8WxKZWOG[2] !== '*') { W8O9Wx LZEG8; } dRxGO aZOO8WxY9LLof = aZOO8WxKZWOG.GEod8(n).vRox('.'); dRxGO VRGOY9LLof = VRGOKZWOG.GEod8(-aZOO8WxKZWOG.E8xCOV + n).vRox('.'); W8O9Wx aZOO8WxY9LLof === VRGOY9LLof; } E8O PRiZoxUZEoP = (PRiZox && PRiZox.E8xCOV) ? PRiZox.GRi8((PiFO8i) => oGbRiZoxpZOdVoxC(PiFO8i, ERdZOoRx.VRGOxZi8)) : OW98; oL (ERdZOoRx.VRGOxZi8 === 'ERdZEVRGO') { PRiZoxUZEoP = OW98; } dRxGO MZEoP = GoCxUZEoP && PRiZoxUZEoP; W8O9Wx { MZEoP, i8GGZC8: RWoCoxp8GGZC8, }; } dZOdV (8WWRW) { W8O9Wx { MZEoP: LZEG8, i8GGZC8: {}, }; }}";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const ReverseMap: {
|
|
2
|
+
"0": string;
|
|
3
|
+
"1": string;
|
|
4
|
+
"2": string;
|
|
5
|
+
"3": string;
|
|
6
|
+
"4": string;
|
|
7
|
+
"5": string;
|
|
8
|
+
"6": string;
|
|
9
|
+
"7": string;
|
|
10
|
+
"8": string;
|
|
11
|
+
"9": string;
|
|
12
|
+
n: string;
|
|
13
|
+
D: string;
|
|
14
|
+
z: string;
|
|
15
|
+
k: string;
|
|
16
|
+
A: string;
|
|
17
|
+
Z: string;
|
|
18
|
+
g: string;
|
|
19
|
+
d: string;
|
|
20
|
+
P: string;
|
|
21
|
+
L: string;
|
|
22
|
+
C: string;
|
|
23
|
+
V: string;
|
|
24
|
+
o: string;
|
|
25
|
+
v: string;
|
|
26
|
+
I: string;
|
|
27
|
+
E: string;
|
|
28
|
+
i: string;
|
|
29
|
+
x: string;
|
|
30
|
+
R: string;
|
|
31
|
+
a: string;
|
|
32
|
+
j: string;
|
|
33
|
+
W: string;
|
|
34
|
+
G: string;
|
|
35
|
+
O: string;
|
|
36
|
+
M: string;
|
|
37
|
+
l: string;
|
|
38
|
+
f: string;
|
|
39
|
+
S: string;
|
|
40
|
+
s: string;
|
|
41
|
+
T: string;
|
|
42
|
+
u: string;
|
|
43
|
+
b: string;
|
|
44
|
+
X: string;
|
|
45
|
+
J: string;
|
|
46
|
+
e: string;
|
|
47
|
+
m: string;
|
|
48
|
+
F: string;
|
|
49
|
+
r: string;
|
|
50
|
+
c: string;
|
|
51
|
+
t: string;
|
|
52
|
+
p: string;
|
|
53
|
+
K: string;
|
|
54
|
+
Q: string;
|
|
55
|
+
h: string;
|
|
56
|
+
Y: string;
|
|
57
|
+
y: string;
|
|
58
|
+
q: string;
|
|
59
|
+
U: string;
|
|
60
|
+
H: string;
|
|
61
|
+
N: string;
|
|
62
|
+
w: string;
|
|
63
|
+
B: string;
|
|
64
|
+
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ChartModel } from './models/chart-model';
|
|
2
2
|
export { CategoryType, ChartAttributeBits, chartBitsUtils, ChartTypeBits, DataOrientation } from './models/constants';
|
|
3
|
-
export type { IChartConfig, IChartContext, IChartSourceMultiRangeItem, IChartSourceRangeItem, ISheetChartSourceSingleRange } from './models/types';
|
|
3
|
+
export type { IChartConfig, IChartContext, IChartDataCategory, IChartDataSeries, IChartSourceMultiRangeItem, IChartSourceRangeItem, ISheetChartSourceSingleRange } from './models/types';
|
|
4
4
|
export * from './models/style.types';
|
|
5
5
|
export * from './models/runtime-context.types';
|
|
6
6
|
export { type IUniverSheetsChartPluginConfig, SHEETS_CHART_PLUGIN_NAME, UniverSheetsChartPlugin } from './plugins/univer-sheets-chart-plugin';
|
|
@@ -13,10 +13,9 @@ export { ChartUpdateConfigCommand, type IChartUpdateConfigCommandParams } from '
|
|
|
13
13
|
export { type IInsertSheetsChartMutationParams, InsertSheetsChartMutation, type IRemoveSheetsChartMutationParams, RemoveSheetsChartMutation } from './commands/mutations/sheets-chart.mutation';
|
|
14
14
|
export { ChartUpdateConfigMutation, type IChartUpdateConfigMutationParams } from './commands/mutations/sheets-chart-update-config.mutation';
|
|
15
15
|
export { ChartUpdateSourceConfigMutation, type IChartUpdateSourceConfigMutationParams } from './commands/mutations/sheet-chart-update-source.mutation';
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export * from './models/chart-data-operators/operators';
|
|
19
|
-
export * from './chart-source/chart-source';
|
|
16
|
+
export { defaultChartConfig, themeColors } from './models/constants/default-chart-style';
|
|
17
|
+
export { ChartDataSourceMulti, ChartDataSourceSingle, createChartDataSource, getCategoryData } from './chart-source/chart-source';
|
|
20
18
|
export { ChartThemeService } from './services/chart-theme.service';
|
|
21
19
|
export { getThemeAxesByType, getThemeProps } from './models/constants/build-in-theme';
|
|
22
20
|
export type { IEchartTheme } from './models/constants/build-in-theme';
|
|
21
|
+
export { calcPosition, getAllowedChartTypes, setGraphicToSpec, setProperty, translateAngleToRadian } from './common/util';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChartTypeBits } from '../constants';
|
|
2
|
-
import { AreaLineStyle, AxisAlignEnum, ChartBorderDashType, InvalidValueType, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition,
|
|
2
|
+
import { AreaLineStyle, AxisAlignEnum, ChartBorderDashType, InvalidValueType, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, SelectModeEnum, SeriesLabelPosition, TextAlign, TitlePositionEnum } from '../style.types';
|
|
3
3
|
export declare const themeColors: string[];
|
|
4
4
|
export declare const defaultChartConfig: {
|
|
5
5
|
allSeriesId: string;
|
|
@@ -7,6 +7,7 @@ export declare const defaultChartConfig: {
|
|
|
7
7
|
point: {
|
|
8
8
|
shape: LinePointShape;
|
|
9
9
|
size: number;
|
|
10
|
+
scatterSymbolSize: number;
|
|
10
11
|
};
|
|
11
12
|
backgroundColor: string;
|
|
12
13
|
axis: {
|
|
@@ -16,6 +17,7 @@ export declare const defaultChartConfig: {
|
|
|
16
17
|
};
|
|
17
18
|
legend: {
|
|
18
19
|
position: LegendPositionEnum;
|
|
20
|
+
selectMode: SelectModeEnum;
|
|
19
21
|
};
|
|
20
22
|
borderStyle: {
|
|
21
23
|
opacity: number;
|
|
@@ -59,7 +61,10 @@ export declare const defaultChartConfig: {
|
|
|
59
61
|
radar: {
|
|
60
62
|
shape: RadarShape;
|
|
61
63
|
symbolSize: number;
|
|
62
|
-
symbolType:
|
|
64
|
+
symbolType: LinePointShape;
|
|
63
65
|
areaOpacity: number;
|
|
64
66
|
};
|
|
67
|
+
tooltipAxisLabelBackground: string;
|
|
68
|
+
tooltipAxisLabelColor: string;
|
|
69
|
+
indicatorLineType: ChartBorderDashType;
|
|
65
70
|
};
|
|
@@ -58,12 +58,6 @@ export interface IPieLabelStyle extends Omit<ILabelStyle, 'align' | 'content'> {
|
|
|
58
58
|
position: PieLabelPosition;
|
|
59
59
|
}
|
|
60
60
|
export declare enum LinePointShape {
|
|
61
|
-
Circle = "circle",
|
|
62
|
-
Square = "square",
|
|
63
|
-
Triangle = "triangle",
|
|
64
|
-
Diamond = "diamond"
|
|
65
|
-
}
|
|
66
|
-
export declare enum RadarPointShape {
|
|
67
61
|
Circle = "circle",
|
|
68
62
|
Square = "square",
|
|
69
63
|
Triangle = "triangle",
|
|
@@ -72,11 +66,15 @@ export declare enum RadarPointShape {
|
|
|
72
66
|
RoundRect = "roundRect",
|
|
73
67
|
Pin = "pin",
|
|
74
68
|
Arrow = "arrow",
|
|
75
|
-
None = "none"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
None = "none",
|
|
70
|
+
EmptyCircle = "emptyCircle",
|
|
71
|
+
EmptySquare = "emptySquare",
|
|
72
|
+
EmptyTriangle = "emptyTriangle",
|
|
73
|
+
EmptyDiamond = "emptyDiamond",
|
|
74
|
+
EmptyRect = "emptyRect",
|
|
75
|
+
EmptyRoundRect = "emptyRoundRect",
|
|
76
|
+
EmptyPin = "emptyPin",
|
|
77
|
+
EmptyArrow = "emptyArrow"
|
|
80
78
|
}
|
|
81
79
|
export interface IPointStyle {
|
|
82
80
|
shape: LinePointShape;
|
|
@@ -110,7 +108,6 @@ export interface ISeriesStyle {
|
|
|
110
108
|
dataPoints: {
|
|
111
109
|
[index: number]: IDataPointStyle;
|
|
112
110
|
};
|
|
113
|
-
radarPoints?: IRadarPointStyle;
|
|
114
111
|
}
|
|
115
112
|
export interface IAllSeriesStyle extends Pick<ISeriesStyle, 'border' | 'label' | 'rightYAxis' | 'point' | 'color'> {
|
|
116
113
|
}
|
|
@@ -147,9 +144,15 @@ export declare enum AxisAlignEnum {
|
|
|
147
144
|
Center = "center",
|
|
148
145
|
End = "end"
|
|
149
146
|
}
|
|
147
|
+
export declare enum SelectModeEnum {
|
|
148
|
+
Single = "single",
|
|
149
|
+
Multiple = "multiple",
|
|
150
|
+
Close = "close"
|
|
151
|
+
}
|
|
150
152
|
export interface ILegendStyle {
|
|
151
153
|
position?: LegendPositionEnum;
|
|
152
154
|
label?: Omit<ILabelStyle, 'visible' | 'align' | 'content'>;
|
|
155
|
+
selectMode?: SelectModeEnum;
|
|
153
156
|
}
|
|
154
157
|
export interface IGridLineStyle {
|
|
155
158
|
visible: boolean;
|
|
@@ -159,6 +162,7 @@ export interface IGridLineStyle {
|
|
|
159
162
|
export interface IAxisOptions {
|
|
160
163
|
lineVisible: boolean;
|
|
161
164
|
label: Omit<ILabelStyle, 'align' | 'content'>;
|
|
165
|
+
lineStyle: IGridLineStyle;
|
|
162
166
|
gridLine: IGridLineStyle;
|
|
163
167
|
tick: {
|
|
164
168
|
visible: boolean;
|
|
@@ -226,5 +230,11 @@ export interface IChartStyle {
|
|
|
226
230
|
shape: RadarShape;
|
|
227
231
|
fill: boolean;
|
|
228
232
|
};
|
|
233
|
+
tooltip: {
|
|
234
|
+
indicatorLabelColor: string;
|
|
235
|
+
indicatorLineType: ChartBorderDashType;
|
|
236
|
+
indicatorLineColor: string;
|
|
237
|
+
indicatorLabelTextColor: string;
|
|
238
|
+
};
|
|
229
239
|
}
|
|
230
240
|
export type ChartStyle = DeepPartial<IChartStyle>;
|
|
@@ -93,14 +93,14 @@ interface IChartDataItem {
|
|
|
93
93
|
value: OptionDataValue;
|
|
94
94
|
label: string;
|
|
95
95
|
}
|
|
96
|
-
interface IChartDataCategory {
|
|
96
|
+
export interface IChartDataCategory {
|
|
97
97
|
index: number;
|
|
98
98
|
name: string;
|
|
99
99
|
type: CategoryType;
|
|
100
100
|
items: IChartDataItem[];
|
|
101
101
|
keys: string[];
|
|
102
102
|
}
|
|
103
|
-
interface IChartDataSeries {
|
|
103
|
+
export interface IChartDataSeries {
|
|
104
104
|
index: number;
|
|
105
105
|
name: string;
|
|
106
106
|
items: IChartDataItem[];
|
|
@@ -109,8 +109,10 @@ export interface IChartData {
|
|
|
109
109
|
category?: IChartDataCategory;
|
|
110
110
|
headers?: string[];
|
|
111
111
|
series: IChartDataSeries[];
|
|
112
|
+
maxValue: number;
|
|
113
|
+
minValue: number;
|
|
112
114
|
/**
|
|
113
|
-
* the dataset of the chart, it should match
|
|
115
|
+
* the dataset of the chart, it should match echart dataset option
|
|
114
116
|
*/
|
|
115
117
|
dataset?: IUniverDataSet;
|
|
116
118
|
}
|