@univerjs-pro/sheets-chart 0.5.0 → 0.5.1-nightly.202411301606
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/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -0
- 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 -0
- 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/locale/fr-FR.d.ts +3 -0
- package/lib/types/models/chart-data-operators/operators.d.ts +4 -2
- package/lib/types/models/constants/build-in-theme/index.d.ts +6 -6
- package/lib/types/models/constants/default-chart-style.d.ts +6 -4
- package/lib/types/models/data-context-transformers/line-like-context-transformer.d.ts +3 -0
- package/lib/types/models/data-context-transformers/percent-data-conext-transformer.d.ts +3 -0
- package/lib/types/models/style.types.d.ts +16 -0
- package/lib/types/services/sheets-chart.service.d.ts +1 -0
- 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 -0
- 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 -7
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3988b5=_0x1f80;function _0x1f80(_0x54d4ae,_0x7da770){const _0x16ba28=_0x16ba();return _0x1f80=function(_0x1f803a,_0x3726c3){_0x1f803a=_0x1f803a-0x88;let _0x223329=_0x16ba28[_0x1f803a];return _0x223329;},_0x1f80(_0x54d4ae,_0x7da770);}(function(_0x551ef4,_0xe8e464){const _0x26cbe4=_0x1f80,_0x49a2ec=_0x551ef4();while(!![]){try{const _0x5a3c3b=parseInt(_0x26cbe4(0x96))/0x1*(parseInt(_0x26cbe4(0x91))/0x2)+-parseInt(_0x26cbe4(0x8b))/0x3*(parseInt(_0x26cbe4(0x95))/0x4)+parseInt(_0x26cbe4(0x8e))/0x5*(-parseInt(_0x26cbe4(0x93))/0x6)+-parseInt(_0x26cbe4(0x8c))/0x7*(-parseInt(_0x26cbe4(0x8f))/0x8)+-parseInt(_0x26cbe4(0x97))/0x9*(-parseInt(_0x26cbe4(0x90))/0xa)+-parseInt(_0x26cbe4(0x8a))/0xb*(-parseInt(_0x26cbe4(0x92))/0xc)+parseInt(_0x26cbe4(0x8d))/0xd*(-parseInt(_0x26cbe4(0x89))/0xe);if(_0x5a3c3b===_0xe8e464)break;else _0x49a2ec['push'](_0x49a2ec['shift']());}catch(_0xda05e){_0x49a2ec['push'](_0x49a2ec['shift']());}}}(_0x16ba,0x3a533));const e={'chart':{'category':_0x3988b5(0x88),'series':_0x3988b5(0x94)}};export{e as default};function _0x16ba(){const _0x359ae5=['8orcZrK','2uhOKzJ','615348NnwnBi','Category','6759718uXDpKZ','201784HkOJSw','108411WLIvhd','24997DHFbWn','13YHryQp','5QWdcYt','344qMqSOn','50ZqDmmf','272162LLydjK','24CUKRLf','61518lNwHWe','Series'];_0x16ba=function(){return _0x359ae5;};return _0x16ba();}
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x90c29f=_0x2849;function _0x22bb(){const _0x2ef98d=['11300300WXXAms','1718172QokZMk','10qolnWj','753004GoAxXj','1320ULFMrF','10MhLNPA','Category','625929zjaBnx','1996QPaBBW','1609624NmkOgJ','14nrMYYW','175062gVHrsj'];_0x22bb=function(){return _0x2ef98d;};return _0x22bb();}function _0x2849(_0x5826d3,_0x349f0a){const _0x22bbf7=_0x22bb();return _0x2849=function(_0x28491f,_0x32c714){_0x28491f=_0x28491f-0x15d;let _0x30dc35=_0x22bbf7[_0x28491f];return _0x30dc35;},_0x2849(_0x5826d3,_0x349f0a);}(function(_0x3a024c,_0x5e56ca){const _0x4c8cd6=_0x2849,_0x24d0a8=_0x3a024c();while(!![]){try{const _0x46047f=-parseInt(_0x4c8cd6(0x15e))/0x1+parseInt(_0x4c8cd6(0x15d))/0x2*(parseInt(_0x4c8cd6(0x162))/0x3)+parseInt(_0x4c8cd6(0x163))/0x4*(-parseInt(_0x4c8cd6(0x15f))/0x5)+-parseInt(_0x4c8cd6(0x166))/0x6+parseInt(_0x4c8cd6(0x165))/0x7*(-parseInt(_0x4c8cd6(0x164))/0x8)+-parseInt(_0x4c8cd6(0x168))/0x9+parseInt(_0x4c8cd6(0x160))/0xa*(parseInt(_0x4c8cd6(0x167))/0xb);if(_0x46047f===_0x5e56ca)break;else _0x24d0a8['push'](_0x24d0a8['shift']());}catch(_0x3a7aff){_0x24d0a8['push'](_0x24d0a8['shift']());}}}(_0x22bb,0x89854));const e={'chart':{'category':_0x90c29f(0x161),'series':'Series'}},a=e;export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x1fb368=_0x4ec0;function _0x4ec0(_0xf9a39c,_0x48558a){const _0x28b760=_0x28b7();return _0x4ec0=function(_0x4ec071,_0x3e15d9){_0x4ec071=_0x4ec071-0x172;let _0x271699=_0x28b760[_0x4ec071];return _0x271699;},_0x4ec0(_0xf9a39c,_0x48558a);}function _0x28b7(){const _0x2cc131=['262aKUGzx','923607KSoxGm','44534ZLsnla','20SDnTGV','534ehoQoR','Category','Series','1591232BrvwUk','1323980sKTTZy','815825ErdwwB','2039gqaQqg','1237875yLacvv'];_0x28b7=function(){return _0x2cc131;};return _0x28b7();}(function(_0x27327e,_0x590e0a){const _0x16a6db=_0x4ec0,_0x223c91=_0x27327e();while(!![]){try{const _0x249e10=parseInt(_0x16a6db(0x17d))/0x1*(parseInt(_0x16a6db(0x173))/0x2)+-parseInt(_0x16a6db(0x172))/0x3+-parseInt(_0x16a6db(0x17b))/0x4+-parseInt(_0x16a6db(0x17c))/0x5+-parseInt(_0x16a6db(0x177))/0x6*(-parseInt(_0x16a6db(0x175))/0x7)+parseInt(_0x16a6db(0x17a))/0x8+-parseInt(_0x16a6db(0x174))/0x9*(-parseInt(_0x16a6db(0x176))/0xa);if(_0x249e10===_0x590e0a)break;else _0x223c91['push'](_0x223c91['shift']());}catch(_0x16b5de){_0x223c91['push'](_0x223c91['shift']());}}}(_0x28b7,0x50bc4));const e={'chart':{'category':_0x1fb368(0x178),'series':_0x1fb368(0x179)}},a=e;export{a as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4ab31a=_0xd238;function _0xd238(_0x2d8ca3,_0x2457e9){const _0x16f525=_0x16f5();return _0xd238=function(_0xd23870,_0x1cfc27){_0xd23870=_0xd23870-0x183;let _0x34924d=_0x16f525[_0xd23870];return _0x34924d;},_0xd238(_0x2d8ca3,_0x2457e9);}(function(_0x4ef2a8,_0x580d39){const _0x46e157=_0xd238,_0x7e400b=_0x4ef2a8();while(!![]){try{const _0x5ca783=-parseInt(_0x46e157(0x183))/0x1+parseInt(_0x46e157(0x187))/0x2+-parseInt(_0x46e157(0x188))/0x3+parseInt(_0x46e157(0x186))/0x4*(-parseInt(_0x46e157(0x189))/0x5)+-parseInt(_0x46e157(0x185))/0x6+parseInt(_0x46e157(0x18a))/0x7+parseInt(_0x46e157(0x184))/0x8*(parseInt(_0x46e157(0x18b))/0x9);if(_0x5ca783===_0x580d39)break;else _0x7e400b['push'](_0x7e400b['shift']());}catch(_0x3f45fe){_0x7e400b['push'](_0x7e400b['shift']());}}}(_0x16f5,0x7cf58));const e={'chart':{'category':'Category','series':_0x4ab31a(0x18c)}};export{e as default};function _0x16f5(){const _0x1bc6e6=['Series','872623OYwNMb','8uDJucz','4098360txmXWR','1628336YmjYrF','707548oLSCAV','2931915yxJfVy','5NadSQI','763672zNuhIH','26901306rPHMPg'];_0x16f5=function(){return _0x1bc6e6;};return _0x16f5();}
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x44a3(){const _0xcbd790=['2941424xdrkKk','222363lIPzvn','16975bJSISJ','300yJOsXK','290zgNiTU','14844joEaBd','49577XgdkCC','436FXUWvC','149932USfUDt','10QTuyvp','Series','290741ZvfrwW','36KUGfFu'];_0x44a3=function(){return _0xcbd790;};return _0x44a3();}const _0x3d7b71=_0x493d;(function(_0x47787e,_0x101d8b){const _0x20b9e4=_0x493d,_0x27606d=_0x47787e();while(!![]){try{const _0x160029=-parseInt(_0x20b9e4(0x1c9))/0x1+parseInt(_0x20b9e4(0x1ca))/0x2*(parseInt(_0x20b9e4(0x1c8))/0x3)+parseInt(_0x20b9e4(0x1cb))/0x4*(-parseInt(_0x20b9e4(0x1cc))/0x5)+parseInt(_0x20b9e4(0x1d3))/0x6*(parseInt(_0x20b9e4(0x1d2))/0x7)+parseInt(_0x20b9e4(0x1d0))/0x8+parseInt(_0x20b9e4(0x1d1))/0x9*(-parseInt(_0x20b9e4(0x1c7))/0xa)+-parseInt(_0x20b9e4(0x1ce))/0xb*(parseInt(_0x20b9e4(0x1cf))/0xc);if(_0x160029===_0x101d8b)break;else _0x27606d['push'](_0x27606d['shift']());}catch(_0xb3e75b){_0x27606d['push'](_0x27606d['shift']());}}}(_0x44a3,0x9e055));const e={'chart':{'category':'Category','series':_0x3d7b71(0x1cd)}};function _0x493d(_0x2fca75,_0x2fc183){const _0x44a3d8=_0x44a3();return _0x493d=function(_0x493deb,_0xac166a){_0x493deb=_0x493deb-0x1c7;let _0x2ec01a=_0x44a3d8[_0x493deb];return _0x2ec01a;},_0x493d(_0x2fca75,_0x2fc183);}export{e as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x42d3(){const _0x481a27=['18288gMBEWs','12790MZosBH','161Blihrj','2926170OQRijl','1113465pZwqsk','182010HbnkaF','4STVmrI','171020uyfHyU','101067wxzRJk','6904296XKwjgV'];_0x42d3=function(){return _0x481a27;};return _0x42d3();}function _0x3e79(_0x451ce4,_0x2a2802){const _0x42d360=_0x42d3();return _0x3e79=function(_0x3e79a5,_0x2cfca8){_0x3e79a5=_0x3e79a5-0x153;let _0x1d12cf=_0x42d360[_0x3e79a5];return _0x1d12cf;},_0x3e79(_0x451ce4,_0x2a2802);}(function(_0x1fcd3c,_0xef0aef){const _0x1c6561=_0x3e79,_0x99972e=_0x1fcd3c();while(!![]){try{const _0x3e3e4b=parseInt(_0x1c6561(0x156))/0x1+-parseInt(_0x1c6561(0x154))/0x2*(-parseInt(_0x1c6561(0x15c))/0x3)+parseInt(_0x1c6561(0x155))/0x4+parseInt(_0x1c6561(0x15b))/0x5+-parseInt(_0x1c6561(0x153))/0x6*(-parseInt(_0x1c6561(0x15a))/0x7)+parseInt(_0x1c6561(0x157))/0x8+-parseInt(_0x1c6561(0x158))/0x9*(parseInt(_0x1c6561(0x159))/0xa);if(_0x3e3e4b===_0xef0aef)break;else _0x99972e['push'](_0x99972e['shift']());}catch(_0x4246a5){_0x99972e['push'](_0x99972e['shift']());}}}(_0x42d3,0x69c1c));const e={'chart':{'category':'类别','series':'系列'}};export{e as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5f1092,_0x1cc74e){const _0x8e9457=_0x4dcd,_0x3c717c=_0x5f1092();while(!![]){try{const _0x4a78d5=parseInt(_0x8e9457(0xb4))/0x1+parseInt(_0x8e9457(0xaf))/0x2+parseInt(_0x8e9457(0xac))/0x3+parseInt(_0x8e9457(0xae))/0x4+-parseInt(_0x8e9457(0xad))/0x5*(parseInt(_0x8e9457(0xb1))/0x6)+-parseInt(_0x8e9457(0xb2))/0x7*(parseInt(_0x8e9457(0xb3))/0x8)+parseInt(_0x8e9457(0xb0))/0x9;if(_0x4a78d5===_0x1cc74e)break;else _0x3c717c['push'](_0x3c717c['shift']());}catch(_0x5860b8){_0x3c717c['push'](_0x3c717c['shift']());}}}(_0x1a3e,0x3fc55));function _0x1a3e(){const _0xe7515a=['2501487xEaLPz','6mkEItg','826798acGVNo','16oOjFzW','462922orXWNT','219111quwzhX','2486355yTRszy','67936eNAygV','327636QkrVHI'];_0x1a3e=function(){return _0xe7515a;};return _0x1a3e();}function _0x4dcd(_0x2f9a1b,_0x579b67){const _0x1a3e2d=_0x1a3e();return _0x4dcd=function(_0x4dcd25,_0x19d595){_0x4dcd25=_0x4dcd25-0xac;let _0x9c85cd=_0x1a3e2d[_0x4dcd25];return _0x9c85cd;},_0x4dcd(_0x2f9a1b,_0x579b67);}const e={'chart':{'category':'类别','series':'系列'}};export{e as default};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ChartModel } from '../chart-model';
|
|
1
2
|
import { ChartDataSourceValue, ChartDataSourceValues, IChartContext, IChartDataAggregation, IChartDataSource, OptionDataValue } from '../types';
|
|
2
|
-
export type IChartContextOperator = (dataSource: IChartDataSource, context: IChartContext) => IChartContext;
|
|
3
|
+
export type IChartContextOperator = (dataSource: IChartDataSource, context: IChartContext, model: ChartModel) => IChartContext;
|
|
3
4
|
export type IChartDataAggregateOperator = (dataSource: ChartDataSourceValues, context: IChartContext, dataAggregation: IChartDataAggregation) => ChartDataSourceValues | void;
|
|
4
5
|
type Nil = null | undefined;
|
|
5
6
|
export declare function isNil(value: any): value is Nil;
|
|
@@ -11,7 +12,7 @@ export declare function toString(value: ChartDataSourceValue): string;
|
|
|
11
12
|
export declare function toNumber(value: ChartDataSourceValue): number;
|
|
12
13
|
export declare function toColumnOrient<T = any>(dataSource: T[][]): T[][];
|
|
13
14
|
export declare function findCategoryIndexes(dataSource: IChartDataSource): number[];
|
|
14
|
-
export declare function
|
|
15
|
+
export declare function groupByToArray<T = any>(ary: T[], selector: (item: T, index: number) => string): {
|
|
15
16
|
name: string;
|
|
16
17
|
values: T[];
|
|
17
18
|
}[];
|
|
@@ -19,6 +20,7 @@ export declare function sumArray(ary: ChartDataSourceValue[]): number;
|
|
|
19
20
|
export declare const findHeaderOperator: IChartContextOperator;
|
|
20
21
|
export declare const findCategoryOperator: IChartContextOperator;
|
|
21
22
|
export declare const findSeriesOperator: IChartContextOperator;
|
|
23
|
+
export declare const pieSeriesFilterOperator: IChartContextOperator;
|
|
22
24
|
export declare const aggregateOperator: IChartDataAggregateOperator;
|
|
23
25
|
export declare const topNOperator: IChartDataAggregateOperator;
|
|
24
26
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { themeDefault } from './default';
|
|
2
2
|
export { getThemeAxesByType, getThemeProps } from './theme-util';
|
|
3
3
|
export type { IEchartTheme } from './types';
|
|
4
|
-
export { univerGradient1 as UniverThemeGradient1 } from './univer-gradient1';
|
|
5
|
-
export { univerGradient2 as UniverThemeGradient2 } from './univer-gradient2';
|
|
6
|
-
export { univerGradient3 as UniverThemeGradient3 } from './univer-gradient3';
|
|
7
|
-
export { univerGradient4 as UniverThemeGradient4 } from './univer-gradient4';
|
|
8
|
-
export { univerGradient5 as UniverThemeGradient5 } from './univer-gradient5';
|
|
9
|
-
export { univerGradient6 as UniverThemeGradient6 } from './univer-gradient6';
|
|
10
4
|
export { univer1 as UniverTheme1 } from './univer1';
|
|
11
5
|
export { univer2 as UniverTheme2 } from './univer2';
|
|
12
6
|
export { univer3 as UniverTheme3 } from './univer3';
|
|
13
7
|
export { univer4 as UniverTheme4 } from './univer4';
|
|
14
8
|
export { univer5 as UniverTheme5 } from './univer5';
|
|
15
9
|
export { univer6 as UniverTheme6 } from './univer6';
|
|
10
|
+
export { univerGradient1 as UniverThemeGradient1 } from './univer-gradient1';
|
|
11
|
+
export { univerGradient2 as UniverThemeGradient2 } from './univer-gradient2';
|
|
12
|
+
export { univerGradient3 as UniverThemeGradient3 } from './univer-gradient3';
|
|
13
|
+
export { univerGradient4 as UniverThemeGradient4 } from './univer-gradient4';
|
|
14
|
+
export { univerGradient5 as UniverThemeGradient5 } from './univer-gradient5';
|
|
15
|
+
export { univerGradient6 as UniverThemeGradient6 } from './univer-gradient6';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChartTypeBits } from '../constants';
|
|
2
|
-
import { AreaLineStyle, AxisAlignEnum, ChartBorderDashType, InvalidValueType, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, SeriesLabelPosition, TextAlign, TitlePositionEnum } from '../style.types';
|
|
2
|
+
import { AreaLineStyle, AxisAlignEnum, ChartBorderDashType, InvalidValueType, LabelContentType, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarPointShape, RadarShape, SeriesLabelPosition, TextAlign, TitlePositionEnum } from '../style.types';
|
|
3
3
|
export declare const themeColors: string[];
|
|
4
4
|
export declare const defaultChartConfig: {
|
|
5
5
|
allSeriesId: string;
|
|
@@ -21,9 +21,8 @@ export declare const defaultChartConfig: {
|
|
|
21
21
|
opacity: number;
|
|
22
22
|
width: number;
|
|
23
23
|
specialChartWidthMap: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
32: number;
|
|
24
|
+
lineOrArea: number;
|
|
25
|
+
radar: number;
|
|
27
26
|
};
|
|
28
27
|
dashType: ChartBorderDashType;
|
|
29
28
|
};
|
|
@@ -59,5 +58,8 @@ export declare const defaultChartConfig: {
|
|
|
59
58
|
};
|
|
60
59
|
radar: {
|
|
61
60
|
shape: RadarShape;
|
|
61
|
+
symbolSize: number;
|
|
62
|
+
symbolType: RadarPointShape;
|
|
63
|
+
areaOpacity: number;
|
|
62
64
|
};
|
|
63
65
|
};
|
|
@@ -63,6 +63,21 @@ export declare enum LinePointShape {
|
|
|
63
63
|
Triangle = "triangle",
|
|
64
64
|
Diamond = "diamond"
|
|
65
65
|
}
|
|
66
|
+
export declare enum RadarPointShape {
|
|
67
|
+
Circle = "circle",
|
|
68
|
+
Square = "square",
|
|
69
|
+
Triangle = "triangle",
|
|
70
|
+
Diamond = "diamond",
|
|
71
|
+
Rect = "rect",
|
|
72
|
+
RoundRect = "roundRect",
|
|
73
|
+
Pin = "pin",
|
|
74
|
+
Arrow = "arrow",
|
|
75
|
+
None = "none"
|
|
76
|
+
}
|
|
77
|
+
export interface IRadarPointStyle {
|
|
78
|
+
shape: RadarPointShape;
|
|
79
|
+
size: number;
|
|
80
|
+
}
|
|
66
81
|
export interface IPointStyle {
|
|
67
82
|
shape: LinePointShape;
|
|
68
83
|
size: number;
|
|
@@ -95,6 +110,7 @@ export interface ISeriesStyle {
|
|
|
95
110
|
dataPoints: {
|
|
96
111
|
[index: number]: IDataPointStyle;
|
|
97
112
|
};
|
|
113
|
+
radarPoints?: IRadarPointStyle;
|
|
98
114
|
}
|
|
99
115
|
export interface IAllSeriesStyle extends Pick<ISeriesStyle, 'border' | 'label' | 'rightYAxis' | 'point' | 'color'> {
|
|
100
116
|
}
|
|
@@ -24,6 +24,7 @@ export declare class SheetsChartService extends Disposable {
|
|
|
24
24
|
private readonly _commandService;
|
|
25
25
|
private _chartModelIdMap;
|
|
26
26
|
private _dataSourceMap;
|
|
27
|
+
private _hasLoaded;
|
|
27
28
|
constructor(_injector: Injector, _resourcesManagerService: IResourceManagerService, _refRangeService: RefRangeService, _univerInstanceService: IUniverInstanceService, _chartModelService: ChartModelService, _commandService: ICommandService);
|
|
28
29
|
getUnitChartModels(unitId: string, subUnitId: string): (ChartModel | undefined)[];
|
|
29
30
|
getChartSuggestion(rangeInfo: ISheetChartSourceRanges): {
|