@univerjs-pro/sheets-chart 0.5.0-alpha.0 → 0.5.0-beta.0
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/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/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/chart-source/chart-source.d.ts +59 -0
- package/lib/types/chart-source/source-util.d.ts +30 -0
- package/lib/types/commands/commands/sheets-chart-update-config.command.d.ts +14 -0
- package/lib/types/commands/commands/sheets-chart-update-source.command.d.ts +8 -0
- package/lib/types/commands/mutations/sheet-chart-update-source.mutation.d.ts +8 -0
- package/lib/types/commands/mutations/sheets-chart-update-config.mutation.d.ts +13 -0
- package/lib/types/commands/mutations/sheets-chart.mutation.d.ts +11 -0
- package/lib/types/common/util.d.ts +15 -0
- package/lib/types/index.d.ts +37 -814
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +3 -0
- package/lib/types/locale/vi-VN.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +22 -0
- package/lib/types/locale/zh-TW.d.ts +3 -0
- package/lib/types/models/chart-data-operators/build-chart-data.d.ts +3 -0
- package/lib/types/models/chart-data-operators/index.d.ts +17 -0
- package/lib/types/models/chart-data-operators/operators.d.ts +24 -0
- package/lib/types/models/constants/build-in-theme/default.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/index.d.ts +15 -0
- package/lib/types/models/constants/build-in-theme/types.d.ts +77 -0
- package/lib/types/models/constants/build-in-theme/univer-gradient1.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer-gradient2.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer-gradient3.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer-gradient4.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer-gradient5.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer-gradient6.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer1.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer2.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer3.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer4.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer5.d.ts +2 -0
- package/lib/types/models/constants/build-in-theme/univer6.d.ts +2 -0
- package/lib/types/models/constants/default-chart-style.d.ts +63 -0
- package/lib/types/models/constants.d.ts +59 -0
- package/lib/types/models/data-context-transformers/bar-data-context-transformer.d.ts +3 -0
- package/lib/types/models/data-context-transformers/pie-data-context-transformer.d.ts +3 -0
- package/lib/types/models/runtime-context.types.d.ts +28 -0
- package/lib/types/models/style.types.d.ts +213 -0
- package/lib/types/models/types.d.ts +124 -0
- package/lib/types/plugins/univer-sheets-chart-plugin.d.ts +15 -0
- package/lib/types/services/chart-model.service.d.ts +23 -0
- package/lib/types/services/chart-theme.service.d.ts +17 -0
- package/lib/types/services/sheets-chart.service.d.ts +45 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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 +10 -15
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2697(_0x18d01a,_0x8ea265){const _0x4306d9=_0x4306();return _0x2697=function(_0x2697c4,_0x1b0215){_0x2697c4=_0x2697c4-0x1e7;let _0x40c928=_0x4306d9[_0x2697c4];return _0x40c928;},_0x2697(_0x18d01a,_0x8ea265);}const _0x5278ab=_0x2697;function _0x4306(){const _0x50bcfd=['1493898ECDxRk','712110NMmDZB','154SJxwBK','915592aXznnV','179250MnNFqF','Series','521898VlUlkY','792032clUrua','337712ugfNbN','Category'];_0x4306=function(){return _0x50bcfd;};return _0x4306();}(function(_0x23f91a,_0xfc389e){const _0xdb246f=_0x2697,_0x2d9eaf=_0x23f91a();while(!![]){try{const _0x451b35=-parseInt(_0xdb246f(0x1ee))/0x1+-parseInt(_0xdb246f(0x1ef))/0x2+parseInt(_0xdb246f(0x1e9))/0x3+-parseInt(_0xdb246f(0x1eb))/0x4+parseInt(_0xdb246f(0x1ec))/0x5+parseInt(_0xdb246f(0x1e8))/0x6+-parseInt(_0xdb246f(0x1ea))/0x7*(-parseInt(_0xdb246f(0x1f0))/0x8);if(_0x451b35===_0xfc389e)break;else _0x2d9eaf['push'](_0x2d9eaf['shift']());}catch(_0x461fe8){_0x2d9eaf['push'](_0x2d9eaf['shift']());}}}(_0x4306,0x4a3e3));const e={'chart':{'category':_0x5278ab(0x1e7),'series':_0x5278ab(0x1ed)}};export{e as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1d7f9e=_0x4bc6;function _0x52ef(){const _0x34b3bd=['253630aaqMhI','4869472OnIDQU','Series','8455518Nllwas','1393732AGhlmt','Category','13646sCDAIw','15zqNorm','168FwapHU','22380300iApPzo','6762987aXriwk'];_0x52ef=function(){return _0x34b3bd;};return _0x52ef();}function _0x4bc6(_0x111f1a,_0xdff887){const _0x52ef48=_0x52ef();return _0x4bc6=function(_0x4bc624,_0x78fc7a){_0x4bc624=_0x4bc624-0x1c7;let _0x4b6d6f=_0x52ef48[_0x4bc624];return _0x4b6d6f;},_0x4bc6(_0x111f1a,_0xdff887);}(function(_0x3ae8f2,_0x38c269){const _0x1e5900=_0x4bc6,_0x4d82b3=_0x3ae8f2();while(!![]){try{const _0x27dae5=-parseInt(_0x1e5900(0x1c7))/0x1+parseInt(_0x1e5900(0x1cd))/0x2*(-parseInt(_0x1e5900(0x1cf))/0x3)+parseInt(_0x1e5900(0x1cb))/0x4*(parseInt(_0x1e5900(0x1ce))/0x5)+parseInt(_0x1e5900(0x1ca))/0x6+parseInt(_0x1e5900(0x1d1))/0x7+parseInt(_0x1e5900(0x1c8))/0x8+-parseInt(_0x1e5900(0x1d0))/0x9;if(_0x27dae5===_0x38c269)break;else _0x4d82b3['push'](_0x4d82b3['shift']());}catch(_0x126745){_0x4d82b3['push'](_0x4d82b3['shift']());}}}(_0x52ef,0xdd6cf));const e={'chart':{'category':_0x1d7f9e(0x1cc),'series':_0x1d7f9e(0x1c9)}};export{e as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x29c8b1=_0x577a;(function(_0x5f6c43,_0x4f1fe5){const _0x2381e7=_0x577a,_0x1dd392=_0x5f6c43();while(!![]){try{const _0x487516=parseInt(_0x2381e7(0x195))/0x1+parseInt(_0x2381e7(0x19a))/0x2*(-parseInt(_0x2381e7(0x197))/0x3)+-parseInt(_0x2381e7(0x190))/0x4+parseInt(_0x2381e7(0x192))/0x5*(-parseInt(_0x2381e7(0x194))/0x6)+parseInt(_0x2381e7(0x196))/0x7*(-parseInt(_0x2381e7(0x18f))/0x8)+parseInt(_0x2381e7(0x199))/0x9+-parseInt(_0x2381e7(0x198))/0xa;if(_0x487516===_0x4f1fe5)break;else _0x1dd392['push'](_0x1dd392['shift']());}catch(_0x4c8fcc){_0x1dd392['push'](_0x1dd392['shift']());}}}(_0x4da2,0xc15ee));const e={'chart':{'category':_0x29c8b1(0x193),'series':_0x29c8b1(0x191)}};function _0x577a(_0xb158d9,_0x4217dd){const _0x4da273=_0x4da2();return _0x577a=function(_0x577a17,_0x14ab54){_0x577a17=_0x577a17-0x18f;let _0x107f37=_0x4da273[_0x577a17];return _0x107f37;},_0x577a(_0xb158d9,_0x4217dd);}function _0x4da2(){const _0x177063=['Series','20cQPVAX','Category','806046EmJZNG','1243151TGPtlm','235557GcOjhO','606YUMsTa','8141750jxGsPL','13981122fnkoKV','4492OJgZId','32dcazcN','258912XpwXgP'];_0x4da2=function(){return _0x177063;};return _0x4da2();}export{e as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x55ea(){const _0x9271ca=['2066Tgundh','30310wYcbRU','140787dUXCcK','844704FZpdGw','7qtPtvg','117tzEXSz','880008SpeiUs','723808icOSNx','72ZvnmcJ','186060uPqZZn'];_0x55ea=function(){return _0x9271ca;};return _0x55ea();}(function(_0x10a6c9,_0x11eaab){const _0xdae6c=_0x34e2,_0x45a817=_0x10a6c9();while(!![]){try{const _0x2012c1=parseInt(_0xdae6c(0x1d2))/0x1+parseInt(_0xdae6c(0x1d0))/0x2*(-parseInt(_0xdae6c(0x1d5))/0x3)+-parseInt(_0xdae6c(0x1cd))/0x4+-parseInt(_0xdae6c(0x1cf))/0x5+-parseInt(_0xdae6c(0x1cc))/0x6*(-parseInt(_0xdae6c(0x1d4))/0x7)+parseInt(_0xdae6c(0x1d3))/0x8+-parseInt(_0xdae6c(0x1ce))/0x9*(parseInt(_0xdae6c(0x1d1))/0xa);if(_0x2012c1===_0x11eaab)break;else _0x45a817['push'](_0x45a817['shift']());}catch(_0x474fe2){_0x45a817['push'](_0x45a817['shift']());}}}(_0x55ea,0x1af08));const e={'chart':{'category':'类别','series':'系列'}};function _0x34e2(_0x54e3b3,_0x289a33){const _0x55ea82=_0x55ea();return _0x34e2=function(_0x34e282,_0x264dd9){_0x34e282=_0x34e282-0x1cc;let _0xc1e26a=_0x55ea82[_0x34e282];return _0xc1e26a;},_0x34e2(_0x54e3b3,_0x289a33);}export{e as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e9386,_0x5eabd3){const _0x50fad3=_0x336f,_0x1b39c5=_0x2e9386();while(!![]){try{const _0x3b2ba6=parseInt(_0x50fad3(0xb6))/0x1+parseInt(_0x50fad3(0xb4))/0x2*(-parseInt(_0x50fad3(0xb5))/0x3)+-parseInt(_0x50fad3(0xb8))/0x4+parseInt(_0x50fad3(0xba))/0x5+parseInt(_0x50fad3(0xb7))/0x6+parseInt(_0x50fad3(0xbd))/0x7*(-parseInt(_0x50fad3(0xb9))/0x8)+-parseInt(_0x50fad3(0xbc))/0x9*(-parseInt(_0x50fad3(0xbb))/0xa);if(_0x3b2ba6===_0x5eabd3)break;else _0x1b39c5['push'](_0x1b39c5['shift']());}catch(_0x1b4a63){_0x1b39c5['push'](_0x1b39c5['shift']());}}}(_0x5c6b,0xc9438));function _0x336f(_0x307fdc,_0x34a5ee){const _0x5c6bd4=_0x5c6b();return _0x336f=function(_0x336fd7,_0x39e038){_0x336fd7=_0x336fd7-0xb4;let _0x871a9e=_0x5c6bd4[_0x336fd7];return _0x871a9e;},_0x336f(_0x307fdc,_0x34a5ee);}function _0x5c6b(){const _0x52cf07=['801460LldqIu','45vfZUKd','341628enIfFb','9026swwnDl','441kycHMB','991847fxOKZo','3807954qSIiSU','999872erqixO','72oVhjYJ','748775iRLkJv'];_0x5c6b=function(){return _0x52cf07;};return _0x5c6b();}const e={'chart':{'category':'类别','series':'系列'}};export{e as default};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { DimensionDefinitionLoose, IChartDataSource, IChartSourceMultiRangeItem, ISheetChartSourceSingleRange, IUniverDataSet, OptionDataValue } from '../models/types';
|
|
4
|
+
/**
|
|
5
|
+
* @extends ChartDataSourceBase
|
|
6
|
+
* @description
|
|
7
|
+
* Represents a single data source for a chart.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChartDataSourceSingle implements IChartDataSource {
|
|
10
|
+
private readonly _univerInstanceService;
|
|
11
|
+
private _rangeInfo$;
|
|
12
|
+
private _data$;
|
|
13
|
+
private _canSwitchOrient$;
|
|
14
|
+
data$: Observable<IUniverDataSet>;
|
|
15
|
+
canSwitchOrient$: Observable<boolean>;
|
|
16
|
+
rangeInfo$: Observable<ISheetChartSourceSingleRange>;
|
|
17
|
+
constructor(_univerInstanceService: IUniverInstanceService, rangeInfo: ISheetChartSourceSingleRange);
|
|
18
|
+
private _init;
|
|
19
|
+
getRangeInfo(): ISheetChartSourceSingleRange;
|
|
20
|
+
getDataSet(): IUniverDataSet;
|
|
21
|
+
getDimensionCount(): number;
|
|
22
|
+
setRangeInfo(rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[]): void;
|
|
23
|
+
setOrient(flag: boolean): void;
|
|
24
|
+
canSwitchOrient(): boolean;
|
|
25
|
+
refresh(): void;
|
|
26
|
+
updateRangeInfo(): void;
|
|
27
|
+
watchRange(): void;
|
|
28
|
+
convertDataSet(): {
|
|
29
|
+
dimensions: DimensionDefinitionLoose[];
|
|
30
|
+
source: OptionDataValue[][];
|
|
31
|
+
};
|
|
32
|
+
dispose(): void;
|
|
33
|
+
}
|
|
34
|
+
export declare class ChartDataSourceMulti implements IChartDataSource {
|
|
35
|
+
private readonly _univerInstanceService;
|
|
36
|
+
private _rangeInfo$;
|
|
37
|
+
private _data$;
|
|
38
|
+
private _canSwitchOrient$;
|
|
39
|
+
data$: Observable<IUniverDataSet>;
|
|
40
|
+
canSwitchOrient$: Observable<boolean>;
|
|
41
|
+
rangeInfo$: Observable<IChartSourceMultiRangeItem[]>;
|
|
42
|
+
constructor(_univerInstanceService: IUniverInstanceService, rangeInfo: IChartSourceMultiRangeItem[]);
|
|
43
|
+
canSwitchOrient(): boolean;
|
|
44
|
+
getRangeInfo(): IChartSourceMultiRangeItem[];
|
|
45
|
+
getDataSet(): IUniverDataSet;
|
|
46
|
+
getDimensionCount(): number;
|
|
47
|
+
refresh(): void;
|
|
48
|
+
setOrient(flag: boolean): void;
|
|
49
|
+
setRangeInfo(rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[]): void;
|
|
50
|
+
updateRangeInfo(): void;
|
|
51
|
+
watchRange(): void;
|
|
52
|
+
convertDataSet(): {
|
|
53
|
+
dimensions: string[];
|
|
54
|
+
source: (string | number | null)[][];
|
|
55
|
+
};
|
|
56
|
+
dispose(): void;
|
|
57
|
+
}
|
|
58
|
+
export declare function createChartDataSource(univerInstanceService: IUniverInstanceService, rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[]): IChartDataSource;
|
|
59
|
+
export declare function getCategoryData(source: OptionDataValue[][], categoryIndex: number, isRowDirection: boolean): OptionDataValue[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ICellData, IDocumentData, IRange, Nullable, ObjectMatrix, Styles, Worksheet } from '@univerjs/core';
|
|
2
|
+
import { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange } from '../models/types';
|
|
3
|
+
export declare const getStringFromDataStream: (data: IDocumentData) => string;
|
|
4
|
+
/**
|
|
5
|
+
* Get the cell data value as number for source
|
|
6
|
+
* @param cellData The cell data
|
|
7
|
+
* @returns {number|null} The number value
|
|
8
|
+
*/
|
|
9
|
+
export declare function convertCellDataToNumber(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: Record<string, any>): null | number;
|
|
10
|
+
export declare function convertArrayLikeRangeInfoToMatrix(sourceRange: IRange, sheet: Worksheet, index: number, matrix: ObjectMatrix<Nullable<string | number | null>>, styles: Styles): void;
|
|
11
|
+
/**
|
|
12
|
+
* transform cell data to dimension name
|
|
13
|
+
* @param cellData the sheet cell data
|
|
14
|
+
* @param styles workBook styles collection
|
|
15
|
+
* @param patternInfoRecord The cache record for pattern info
|
|
16
|
+
* @returns {string} The dimension name
|
|
17
|
+
*/
|
|
18
|
+
export declare function convertCellDataToString(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: Record<string, any>): string;
|
|
19
|
+
/**
|
|
20
|
+
* @description this function is used to change the single range info to multi range info, we will split the single range to two range, one is the dimension range, the other is the value range
|
|
21
|
+
* @param {ISheetChartSourceSingleRange} rangeInfo the single range info
|
|
22
|
+
* @returns {IChartSourceMultiRangeItem} rangeInfo the multi range info
|
|
23
|
+
*/
|
|
24
|
+
export declare function changeSingleRangeInfoToMultiRangeInfo(rangeInfo: ISheetChartSourceSingleRange): IChartSourceMultiRangeItem[];
|
|
25
|
+
/**
|
|
26
|
+
* get the multi range info can switch orient or not
|
|
27
|
+
* @param {IChartSourceMultiRangeItem} rangeInfo the multi range info
|
|
28
|
+
* @returns {boolean} return the multi range info can switch orient or not
|
|
29
|
+
*/
|
|
30
|
+
export declare function isMultiRangeCanSwitchOrient(rangeInfo: IChartSourceMultiRangeItem[]): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
import { ChartTypeBits, DataOrientation } from '../../models/constants';
|
|
3
|
+
import { ChartStyle } from '../../models/style.types';
|
|
4
|
+
import { IChartContext, IChartDataAggregation } from '../../models/types';
|
|
5
|
+
export interface IChartUpdateConfigCommandParams {
|
|
6
|
+
unitId: string;
|
|
7
|
+
chartModelId: string;
|
|
8
|
+
orient?: DataOrientation;
|
|
9
|
+
chartType?: ChartTypeBits;
|
|
10
|
+
dataAggregation?: Partial<IChartDataAggregation>;
|
|
11
|
+
style?: ChartStyle;
|
|
12
|
+
context?: IChartContext;
|
|
13
|
+
}
|
|
14
|
+
export declare const ChartUpdateConfigCommand: ICommand<IChartUpdateConfigCommandParams>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
import { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange } from '../../models/types';
|
|
3
|
+
export interface IChartUpdateSourceCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
chartModelId: string;
|
|
6
|
+
range: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[];
|
|
7
|
+
}
|
|
8
|
+
export declare const ChartUpdateSourceCommand: ICommand<IChartUpdateSourceCommandParams>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IMutation } from '@univerjs/core';
|
|
2
|
+
import { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange } from '../../models/types';
|
|
3
|
+
export interface IChartUpdateSourceConfigMutationParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
chartModelId: string;
|
|
6
|
+
rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[];
|
|
7
|
+
}
|
|
8
|
+
export declare const ChartUpdateSourceConfigMutation: IMutation<IChartUpdateSourceConfigMutationParams>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IMutation } from '@univerjs/core';
|
|
2
|
+
import { ChartTypeBits } from '../../models/constants';
|
|
3
|
+
import { ChartStyle } from '../../models/style.types';
|
|
4
|
+
import { IChartContext, IChartDataAggregation } from '../../models/types';
|
|
5
|
+
export interface IChartUpdateConfigMutationParams {
|
|
6
|
+
unitId: string;
|
|
7
|
+
chartModelId: string;
|
|
8
|
+
chartType?: ChartTypeBits;
|
|
9
|
+
dataAggregation?: Partial<IChartDataAggregation>;
|
|
10
|
+
style?: ChartStyle;
|
|
11
|
+
context?: IChartContext;
|
|
12
|
+
}
|
|
13
|
+
export declare const ChartUpdateConfigMutation: IMutation<IChartUpdateConfigMutationParams>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IMutation, IRange } from '@univerjs/core';
|
|
2
|
+
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
3
|
+
export interface IInsertSheetsChartMutationParams extends ISheetCommandSharedParams {
|
|
4
|
+
range: IRange;
|
|
5
|
+
chartId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IRemoveSheetsChartMutationParams extends ISheetCommandSharedParams {
|
|
8
|
+
chartId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const InsertSheetsChartMutation: IMutation<IInsertSheetsChartMutationParams>;
|
|
11
|
+
export declare const RemoveSheetsChartMutation: IMutation<IRemoveSheetsChartMutationParams>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const setProperty: (data: Record<string, any>, propertyPath: string, value: any) => void;
|
|
2
|
+
/**
|
|
3
|
+
* Set graphic element to data.
|
|
4
|
+
* because we use graphic element to draw watermark title, so we need to set it to data.
|
|
5
|
+
*/
|
|
6
|
+
export declare const setGraphicToSpec: (spec: Record<string, any>, graphicElements: unknown[]) => void;
|
|
7
|
+
export declare const translateAngleToRadian: (angle: number) => number;
|
|
8
|
+
interface ISize {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const ChartTextMeasureCache: Map<string, ISize>;
|
|
13
|
+
export declare const calcPosition: (text: string, font: string) => ISize;
|
|
14
|
+
export declare const clearChartTextMeasureCache: () => void;
|
|
15
|
+
export {};
|