@univerjs-pro/sheets-chart 1.0.0-alpha.8 → 1.0.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.
Files changed (101) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/chart-source/source-util.d.ts +0 -20
  65. package/lib/types/commands/chart-persisted-context.d.ts +3 -0
  66. package/lib/types/commands/commands/sheets-chart-update-config.command.d.ts +7 -3
  67. package/lib/types/commands/mutations/sheets-chart-update-config.mutation.d.ts +3 -3
  68. package/lib/types/common/util.d.ts +2 -0
  69. package/lib/types/config/config.d.ts +0 -2
  70. package/lib/types/facade/index.d.ts +2 -2
  71. package/lib/types/index.d.ts +10 -3
  72. package/lib/types/locale/en-US.d.ts +37 -2
  73. package/lib/types/plugin.d.ts +0 -1
  74. package/lib/types/services/chart-model.service.d.ts +12 -14
  75. package/lib/types/services/sheet-chart-range-watcher.d.ts +5 -5
  76. package/lib/types/services/sheets-chart.service.d.ts +4 -5
  77. package/lib/umd/facade.js +1 -1
  78. package/lib/umd/index.js +1 -1
  79. package/lib/umd/locale/ar-SA.js +1 -1
  80. package/lib/umd/locale/ca-ES.js +1 -1
  81. package/lib/umd/locale/de-DE.js +1 -1
  82. package/lib/umd/locale/en-US.js +1 -1
  83. package/lib/umd/locale/es-ES.js +1 -1
  84. package/lib/umd/locale/fa-IR.js +1 -1
  85. package/lib/umd/locale/fr-FR.js +1 -1
  86. package/lib/umd/locale/id-ID.js +1 -1
  87. package/lib/umd/locale/it-IT.js +1 -1
  88. package/lib/umd/locale/ja-JP.js +1 -1
  89. package/lib/umd/locale/ko-KR.js +1 -1
  90. package/lib/umd/locale/pl-PL.js +1 -1
  91. package/lib/umd/locale/pt-BR.js +1 -1
  92. package/lib/umd/locale/ru-RU.js +1 -1
  93. package/lib/umd/locale/sk-SK.js +1 -1
  94. package/lib/umd/locale/vi-VN.js +1 -1
  95. package/lib/umd/locale/zh-CN.js +1 -1
  96. package/lib/umd/locale/zh-HK.js +1 -1
  97. package/lib/umd/locale/zh-TW.js +1 -1
  98. package/package.json +9 -9
  99. package/lib/types/chart-builder/index.d.ts +0 -10
  100. package/lib/types/facade/chart/index.d.ts +0 -2
  101. package/lib/types/models/chart-model.d.ts +0 -22
@@ -1 +1 @@
1
- const _0x59a515=_0x5942;(function(_0x3ce87e,_0x3f5c63){const _0x552857=_0x5942,_0x4d3016=_0x3ce87e();while(!![]){try{const _0x448419=parseInt(_0x552857(0x138))/0x1*(parseInt(_0x552857(0x137))/0x2)+parseInt(_0x552857(0x127))/0x3*(parseInt(_0x552857(0x123))/0x4)+parseInt(_0x552857(0x134))/0x5+parseInt(_0x552857(0x130))/0x6*(parseInt(_0x552857(0x12d))/0x7)+parseInt(_0x552857(0x126))/0x8*(-parseInt(_0x552857(0x12b))/0x9)+parseInt(_0x552857(0x125))/0xa+-parseInt(_0x552857(0x132))/0xb;if(_0x448419===_0x3f5c63)break;else _0x4d3016['push'](_0x4d3016['shift']());}catch(_0x123dd1){_0x4d3016['push'](_0x4d3016['shift']());}}}(_0x31cf,0xc0398));const e={'sheets-chart':{'category':'類別','series':'系列','seriesDefaultName':'系列\x20{0}','categoryDefaultName':_0x59a515(0x12f),'blank':_0x59a515(0x128),'msg':{'emptyTips':'請先添加系列開始數據可視化','sankeyCircularTips':_0x59a515(0x13a)},'bubble':{'emptyTips':_0x59a515(0x12c)},'relation':{'emptyTips':_0x59a515(0x12a)},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x59a515(0x124)},'candlestick':{'series':_0x59a515(0x129),'category':_0x59a515(0x135),'open':'Open','high':'High','low':_0x59a515(0x136),'close':'Close'},'boxplot':{'min':_0x59a515(0x139),'q1':_0x59a515(0x12e),'median':'中位數','q3':'第三四分位數','max':_0x59a515(0x133)},'histogram':{'frequency':'頻數'},'treemap':{'hierarchy':'層級','value':'','ownValue':_0x59a515(0x131),'children':'子項'}}};function _0x5942(_0x4b2685,_0x1dc560){_0x4b2685=_0x4b2685-0x123;const _0x31cf08=_0x31cf();let _0x59423d=_0x31cf08[_0x4b2685];return _0x59423d;}function _0x31cf(){const _0x160633=['最小值','桑基圖不能包含循環數據','84052tiYQbz','累積占比','7797630fYoers','1588984THJLOG','3qfXKqm','()','OHLC','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','63wGaZcn','氣泡圖至少需要2欄,X軸、Y軸。','116284xsEcnQ','第一四分位數','類別\x20{0}','102plgjOh','自身值','6337870ETgUXE','最大值','4071945xCwHXv','Category','Low','678XcsKxg','2526TkcsUq'];_0x31cf=function(){return _0x160633;};return _0x31cf();}export{e as default};
1
+ const _0x4bb8e8=_0x36c9;function _0x3ab8(){const _0x1a9a95=['最大值','這個圖表類型沒有欄位使用規則。','開盤價','選取的欄位無法構成這個圖表所需的有效資料結構。','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','最小值','Category','436RbjXGF','20076oEuIbV','第三四分位數','120LxQdkD','請先添加系列開始數據可視化','12522GbNjmG','桑基圖不能包含循環數據','選取的圖表欄位已無法使用。','關係數','氣泡圖至少需要2欄,X軸、Y軸。','累積占比','最低價','Value','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','關聯值','系列\x20{0}','類別\x20{0}','250jelvmf','1207657tQYYpB','756954YMswtJ','最高價','這個圖表需要更多數值欄位。','920059bXPLeH','自身值','矩形樹圖至少需要一個階層欄位和一個數值欄位。','收盤價','階層欄位','數值欄位','5507244KXrJDi','OHLC\x20數列','中位數','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','第一四分位數','88NksvJB','2951100JGHnOu','旭日圖至少需要一個階層欄位和一個數值欄位。'];_0x3ab8=function(){return _0x1a9a95;};return _0x3ab8();}(function(_0x4a664f,_0x1b025c){const _0x55526c=_0x36c9,_0x37fca3=_0x4a664f();while(!![]){try{const _0xcf2e0c=parseInt(_0x55526c(0xde))/0x1+parseInt(_0x55526c(0xc1))/0x2+parseInt(_0x55526c(0xcf))/0x3*(parseInt(_0x55526c(0xca))/0x4)+-parseInt(_0x55526c(0xcd))/0x5*(-parseInt(_0x55526c(0xcb))/0x6)+-parseInt(_0x55526c(0xe1))/0x7*(-parseInt(_0x55526c(0xc0))/0x8)+-parseInt(_0x55526c(0xe7))/0x9+-parseInt(_0x55526c(0xdc))/0xa*(parseInt(_0x55526c(0xdd))/0xb);if(_0xcf2e0c===_0x1b025c)break;else _0x37fca3['push'](_0x37fca3['shift']());}catch(_0x301c4d){_0x37fca3['push'](_0x37fca3['shift']());}}}(_0x3ab8,0xd139e));function _0x36c9(_0x5d2415,_0x46e442){_0x5d2415=_0x5d2415-0xbd;const _0x3ab818=_0x3ab8();let _0x36c993=_0x3ab818[_0x5d2415];return _0x36c993;}const e={'sheets-chart':{'seriesDefaultName':_0x4bb8e8(0xda),'categoryDefaultName':_0x4bb8e8(0xdb),'blank':'()','msg':{'emptyTips':_0x4bb8e8(0xce),'sankeyCircularTips':_0x4bb8e8(0xd0)},'bubble':{'emptyTips':_0x4bb8e8(0xd3)},'relation':{'emptyTips':_0x4bb8e8(0xc7)},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x4bb8e8(0xd4)},'boxplot':{'min':_0x4bb8e8(0xc8),'q1':_0x4bb8e8(0xbf),'median':_0x4bb8e8(0xbd),'q3':_0x4bb8e8(0xcc),'max':_0x4bb8e8(0xc3)},'candlestick':{'series':_0x4bb8e8(0xe8),'category':_0x4bb8e8(0xc9),'open':_0x4bb8e8(0xc5),'high':_0x4bb8e8(0xdf),'low':_0x4bb8e8(0xd5),'close':_0x4bb8e8(0xe4)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':_0x4bb8e8(0xe5),'value':_0x4bb8e8(0xe6),'ownValue':_0x4bb8e8(0xe2),'children':'子項','diagnostic':_0x4bb8e8(0xe3)},'sunburst':{'hierarchy':'階層','value':_0x4bb8e8(0xd6),'ownValue':'自身值','children':'子項','diagnostic':_0x4bb8e8(0xc2)},'gauge':{'label':'標籤','value':_0x4bb8e8(0xd6),'emptyDiagnostic':'儀表圖至少需要一個有限數值。','mappingDiagnostic':_0x4bb8e8(0xd8),'configDiagnostic':_0x4bb8e8(0xd7)},'chord':{'emptyDiagnostic':'弦圖至少需要兩個不同節點之間的一條正權重關係。','mappingDiagnostic':_0x4bb8e8(0xbe),'configDiagnostic':'弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','source':'來源','target':'目標','value':_0x4bb8e8(0xd6),'count':_0x4bb8e8(0xd2),'associatedValue':_0x4bb8e8(0xd9)},'chartField':{'missingCategoryFields':'這個圖表需要更多標籤欄位。','missingSeriesFields':_0x4bb8e8(0xe0),'invalidFieldIndex':_0x4bb8e8(0xd1),'invalidValueFieldType':'選取的數值欄位不包含數值資料。','invalidDataStructure':_0x4bb8e8(0xc6),'unsupportedChartType':_0x4bb8e8(0xc4)}}};export{e as default};
@@ -7,28 +7,8 @@ export interface IChartSourceCellEntry {
7
7
  sourceType: ChartSourceDataTypeEnum;
8
8
  }
9
9
  export declare const getStringFromDataStream: (data: IDocumentData) => string;
10
- /**
11
- * Get the cell data value as number for source
12
- * @param cellData The cell data
13
- * @returns {number|null} The number value
14
- */
15
- export declare function convertCellDataToNumber(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: Record<string, any>): {
16
- v: null | number | string;
17
- t: ChartSourceDataTypeEnum;
18
- };
19
10
  export declare function convertArrayLikeRangeInfoToMatrix(sourceRange: IRange, sheet: Worksheet, index: number, matrix: ObjectMatrix<OptionDataValue>, sourceTypeMatrix: ObjectMatrix<ChartSourceDataTypeEnum>, sourceLabelsMatrix: ObjectMatrix<string>, styles: Styles): void;
20
11
  export declare function convertCellDataToSourceEntry(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: Record<string, any>): IChartSourceCellEntry;
21
- /**
22
- * transform cell data to dimension name
23
- * @param cellData the sheet cell data
24
- * @param styles workBook styles collection
25
- * @param patternInfoRecord The cache record for pattern info
26
- * @returns {string} The dimension name
27
- */
28
- export declare function convertCellDataToString(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: Record<string, any>): {
29
- v: string;
30
- t: ChartSourceDataTypeEnum;
31
- };
32
12
  /**
33
13
  * @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
34
14
  * @param {ISheetChartSourceSingleRange} rangeInfo the single range info
@@ -0,0 +1,3 @@
1
+ import type { IChartContext } from '@univerjs-pro/engine-chart';
2
+ export type IChartPersistedContext = Pick<IChartContext, 'categoryIndexes' | 'seriesIndexes' | 'histogram'>;
3
+ export declare function replacePersistedChartContext(current: IChartContext, persisted: IChartPersistedContext): IChartContext;
@@ -1,9 +1,13 @@
1
- import type { ChartPendingConfig, ChartStyle, ChartTypeBits, DataOrientation, IChartContext, IChartDataAggregation } from '@univerjs-pro/engine-chart';
1
+ import type { ChartPendingConfig, ChartStyle, ChartTypeBits, DataOrientation, IChartDataAggregation } from '@univerjs-pro/engine-chart';
2
2
  import type { ICommand } from '@univerjs/core';
3
+ import type { IChartPersistedContext } from '../chart-persisted-context';
3
4
  /** Switches supplied style, context, and aggregation groups from merge to replacement semantics. */
4
5
  export declare const ReplaceSheetChartConfig: unique symbol;
5
- type SheetChartStylePatch = Omit<ChartStyle, 'candlestick'> & {
6
+ type SheetChartStylePatch = Omit<ChartStyle, 'candlestick' | 'sunburst' | 'gauge' | 'chord'> & {
6
7
  candlestick?: ChartPendingConfig['candlestick'];
8
+ sunburst?: ChartPendingConfig['sunburst'];
9
+ gauge?: ChartPendingConfig['gauge'];
10
+ chord?: ChartPendingConfig['chord'];
7
11
  };
8
12
  export interface IChartUpdateConfigCommandParams {
9
13
  unitId: string;
@@ -12,7 +16,7 @@ export interface IChartUpdateConfigCommandParams {
12
16
  chartType?: ChartTypeBits;
13
17
  dataAggregation?: Partial<IChartDataAggregation>;
14
18
  style?: SheetChartStylePatch;
15
- context?: IChartContext;
19
+ context?: IChartPersistedContext;
16
20
  [ReplaceSheetChartConfig]?: true;
17
21
  }
18
22
  /**
@@ -1,6 +1,6 @@
1
- import type { ChartStyle, DeepNullish, IChartContext, IChartDataAggregation } from '@univerjs-pro/engine-chart';
1
+ import type { ChartStyle, ChartTypeBits, DeepNullish, IChartDataAggregation } from '@univerjs-pro/engine-chart';
2
2
  import type { IMutation } from '@univerjs/core';
3
- import { ChartTypeBits } from '@univerjs-pro/engine-chart';
3
+ import type { IChartPersistedContext } from '../chart-persisted-context';
4
4
  /**
5
5
  * Wire payload shared by incremental and replacement mutations.
6
6
  * Incremental mutations forward nested `null` values to the model; replacement callers should
@@ -12,7 +12,7 @@ export interface IChartUpdateConfigMutationParams {
12
12
  chartType?: ChartTypeBits;
13
13
  dataAggregation?: DeepNullish<IChartDataAggregation>;
14
14
  style?: DeepNullish<ChartStyle>;
15
- context?: DeepNullish<IChartContext>;
15
+ context?: DeepNullish<IChartPersistedContext>;
16
16
  }
17
17
  /**
18
18
  * Incrementally updates the model by merging each supplied config group.
@@ -1,3 +1,4 @@
1
+ import type { ChartRuntimeStyle } from '@univerjs-pro/engine-chart';
1
2
  import type { IAccessor } from '@univerjs/core';
2
3
  export declare const BUILD_TIMESTAMP: number;
3
4
  export declare const DefaultLimitedTypes: string[];
@@ -11,3 +12,4 @@ export declare const setProperty: (data: Record<string, any>, propertyPath: stri
11
12
  export declare const setGraphicToSpec: (spec: Record<string, any>, graphicElements: unknown[]) => void;
12
13
  export declare const translateAngleToRadian: (angle: number) => number;
13
14
  export declare function getAllowedChartTypes(accessor: IAccessor): string[];
15
+ export declare function withSheetChartWatermark(style: ChartRuntimeStyle, accessor: IAccessor): ChartRuntimeStyle;
@@ -1,4 +1,3 @@
1
- import type { IWordCloudRenderConfig } from '@univerjs-pro/engine-chart';
2
1
  export declare const SHEETS_CHART_PLUGIN_CONFIG_KEY = "sheets-chart.config";
3
2
  export declare const configSymbol: unique symbol;
4
3
  export declare enum ChartRenderMode {
@@ -6,7 +5,6 @@ export declare enum ChartRenderMode {
6
5
  Image = "image"
7
6
  }
8
7
  export interface IUniverSheetsChartConfig {
9
- wordCloudRenderConfig?: IWordCloudRenderConfig;
10
8
  chartRenderMode?: ChartRenderMode;
11
9
  }
12
10
  export declare const defaultPluginConfig: IUniverSheetsChartConfig;
@@ -1,4 +1,4 @@
1
1
  import './f-worksheet-charts';
2
2
  import './f-enum';
3
- export type { FSheetAnyChartBuilder, FSheetChartBuilder, FSheetChartBuilderOf, ISheetChartMethods } from './chart';
4
- export { FSheetCharts } from './chart';
3
+ export type { FSheetAnyChartBuilder, FSheetChartBuilder, FSheetChartBuilderOf, ISheetChartMethods } from './chart/f-sheet-chart-builder';
4
+ export { FSheetCharts } from './chart/f-sheet-charts';
@@ -1,5 +1,13 @@
1
- export { ChartDiagnosticSeverity, ChartSourceKind, ChartSourceOrientation, resolveInitialChartPosition, resolveSourceSeries, resolveSourceSpec, SheetChartBuilder, SheetChartBuilderAdapter, toSheetChartCreateSpec, } from './chart-builder';
2
- export type { ChartAnchorSpec, ChartSourceSpec, IChartCreateSpec, IChartDiagnostic, ISheetChartBuilderAdapter, ISheetChartDescriptionExtension, ISheetChartHostPatch, ISheetChartSourceContext, } from './chart-builder';
1
+ export { SheetChartBuilder, } from './chart-builder/sheet-chart-builder';
2
+ export { SheetChartBuilderAdapter } from './chart-builder/sheet-chart-builder-adapter';
3
+ export type { ISheetChartBuilderAdapter, ISheetChartHostPatch, } from './chart-builder/sheet-chart-builder-adapter';
4
+ export { toSheetChartCreateSpec } from './chart-builder/sheet-chart-create-spec';
5
+ export type { ISheetChartDescriptionExtension } from './chart-builder/sheet-chart-description';
6
+ export { resolveInitialChartPosition } from './chart-builder/sheet-chart-layout';
7
+ export { resolveSourceSeries, resolveSourceSpec } from './chart-builder/sheet-chart-source';
8
+ export type { ISheetChartSourceContext, } from './chart-builder/sheet-chart-source';
9
+ export { ChartDiagnosticSeverity, ChartSourceKind, ChartSourceOrientation, } from './chart-builder/types';
10
+ export type { ChartAnchorSpec, ChartSourceSpec, IChartCreateSpec, IChartDiagnostic, } from './chart-builder/types';
3
11
  export { ChartUpdateConfigCommand, ReplaceSheetChartConfig } from './commands/commands/sheets-chart-update-config.command';
4
12
  export type { IChartUpdateConfigCommandParams } from './commands/commands/sheets-chart-update-config.command';
5
13
  export { ChartUpdateSourceCommand } from './commands/commands/sheets-chart-update-source.command';
@@ -15,7 +23,6 @@ export type { IInsertSheetsChartMutationParams, IRemoveSheetsChartMutationParams
15
23
  export { getAllowedChartTypes, setProperty, } from './common/util';
16
24
  export { ChartRenderMode, SHEETS_CHART_PLUGIN_CONFIG_KEY, } from './config/config';
17
25
  export type { IUniverSheetsChartConfig } from './config/config';
18
- export { SheetChartModel } from './models/chart-model';
19
26
  export type { IChartSourceMultiRangeItem, IChartSourceRangeItem, ISheetChartDataSource, ISheetChartSourceSingleRange, ISheetChartSourceSnapshot, } from './models/types';
20
27
  export { SHEETS_CHART_PLUGIN_NAME, UniverSheetsChartPlugin, } from './plugin';
21
28
  export { ChartModelService } from './services/chart-model.service';
@@ -1,7 +1,5 @@
1
1
  declare const locale: {
2
2
  'sheets-chart': {
3
- category: string;
4
- series: string;
5
3
  seriesDefaultName: string;
6
4
  categoryDefaultName: string;
7
5
  blank: string;
@@ -45,11 +43,48 @@ declare const locale: {
45
43
  histogram: {
46
44
  frequency: string;
47
45
  };
46
+ pie: {
47
+ aggregateOther: string;
48
+ aggregateMembers: string;
49
+ };
48
50
  treemap: {
49
51
  hierarchy: string;
50
52
  value: string;
51
53
  ownValue: string;
52
54
  children: string;
55
+ diagnostic: string;
56
+ };
57
+ sunburst: {
58
+ hierarchy: string;
59
+ value: string;
60
+ ownValue: string;
61
+ children: string;
62
+ diagnostic: string;
63
+ };
64
+ gauge: {
65
+ label: string;
66
+ value: string;
67
+ emptyDiagnostic: string;
68
+ mappingDiagnostic: string;
69
+ configDiagnostic: string;
70
+ };
71
+ chord: {
72
+ emptyDiagnostic: string;
73
+ mappingDiagnostic: string;
74
+ configDiagnostic: string;
75
+ source: string;
76
+ target: string;
77
+ value: string;
78
+ count: string;
79
+ associatedValue: string;
80
+ };
81
+ chartField: {
82
+ missingCategoryFields: string;
83
+ missingSeriesFields: string;
84
+ invalidFieldIndex: string;
85
+ invalidValueFieldType: string;
86
+ invalidDataStructure: string;
87
+ unsupportedChartType: string;
53
88
  };
54
89
  };
55
90
  };
@@ -11,5 +11,4 @@ export declare class UniverSheetsChartPlugin extends Plugin {
11
11
  static version: string;
12
12
  constructor(_config: IUniverSheetsChartConfig | undefined, _injector: Injector, _configService: IConfigService);
13
13
  onStarting(): void;
14
- private _getWatermark;
15
14
  }
@@ -1,30 +1,28 @@
1
- import type { IChartContext } from '@univerjs-pro/engine-chart';
1
+ import type { IChartContext, IChartModelInit } from '@univerjs-pro/engine-chart';
2
2
  import type { Nullable } from '@univerjs/core';
3
- import type { IChartModelInit } from '../models/chart-model';
4
3
  import type { ISheetChartDataSource } from '../models/types';
5
- import { Disposable, Injector, LocaleService } from '@univerjs/core';
6
- import { SheetChartModel } from '../models/chart-model';
4
+ import { ChartModel } from '@univerjs-pro/engine-chart';
5
+ import { Disposable, Injector } from '@univerjs/core';
7
6
  export declare const SHEET_CHART_PLUGIN = "SHEET_CHART_PLUGIN";
8
7
  export declare class ChartModelService extends Disposable {
9
8
  private _injector;
10
- private _localeService;
11
9
  private readonly _activeChartModel$;
12
- readonly activeChartModel$: import("rxjs").Observable<Nullable<SheetChartModel>>;
13
- get activeChartModel(): Nullable<SheetChartModel>;
10
+ readonly activeChartModel$: import("rxjs").Observable<Nullable<ChartModel<ISheetChartDataSource>>>;
11
+ get activeChartModel(): Nullable<ChartModel<ISheetChartDataSource>>;
14
12
  private _models;
15
13
  private _converters;
16
14
  private readonly _chartModelAdded$;
17
- readonly chartModelAdded$: import("rxjs").Observable<SheetChartModel>;
15
+ readonly chartModelAdded$: import("rxjs").Observable<ChartModel<ISheetChartDataSource>>;
18
16
  private readonly _chartModelRemoved$;
19
17
  readonly chartModelRemoved$: import("rxjs").Observable<string>;
20
- constructor(_injector: Injector, _localeService: LocaleService);
21
- setActiveChartModel(chartModel: SheetChartModel | null): void;
22
- getActiveChartModel(): Nullable<SheetChartModel>;
23
- getChartModel(id: string): SheetChartModel | undefined;
18
+ constructor(_injector: Injector);
19
+ setActiveChartModel(chartModel: ChartModel<ISheetChartDataSource> | null): void;
20
+ getActiveChartModel(): Nullable<ChartModel<ISheetChartDataSource>>;
21
+ getChartModel(id: string): ChartModel<ISheetChartDataSource> | undefined;
24
22
  refreshChartModel(): void;
25
- createChartModel(id: string, options: IChartModelInit, isNew?: boolean): SheetChartModel;
23
+ createChartModel(id: string, options: IChartModelInit<ISheetChartDataSource>, isNew?: boolean): ChartModel<ISheetChartDataSource>;
26
24
  removeChartModel(id: string): void;
27
- generateChartModelContext(id: string): IChartContext | undefined;
25
+ generateChartModelContext(id: string, initializeSelection?: boolean): IChartContext | undefined;
28
26
  generateChartModelContextForDataSource(id: string, dataSource: ISheetChartDataSource): IChartContext | undefined;
29
27
  dispose(): void;
30
28
  }
@@ -1,17 +1,17 @@
1
- import type { SheetChartModel } from '../models/chart-model';
2
- import type { ISheetChartSourceRanges } from '../models/types';
1
+ import type { ChartModel } from '@univerjs-pro/engine-chart';
2
+ import type { ISheetChartDataSource, ISheetChartSourceRanges } from '../models/types';
3
3
  import { Disposable, ICommandService } from '@univerjs/core';
4
4
  import { RefRangeService } from '@univerjs/sheets';
5
5
  export interface ISheetChartRangeWatcherCallbacks {
6
- onDataChanged(model: SheetChartModel): void;
7
- onRangeChanged(model: SheetChartModel, rangeInfo: ISheetChartSourceRanges): void;
6
+ onDataChanged(model: ChartModel<ISheetChartDataSource>): void;
7
+ onRangeChanged(model: ChartModel<ISheetChartDataSource>, rangeInfo: ISheetChartSourceRanges): void;
8
8
  }
9
9
  export declare class SheetChartRangeWatcher extends Disposable {
10
10
  private readonly _commandService;
11
11
  private readonly _refRangeService;
12
12
  private readonly _bindings;
13
13
  constructor(_commandService: ICommandService, _refRangeService: RefRangeService);
14
- bind(model: SheetChartModel, callbacks: ISheetChartRangeWatcherCallbacks): void;
14
+ bind(model: ChartModel<ISheetChartDataSource>, callbacks: ISheetChartRangeWatcherCallbacks): void;
15
15
  unbind(chartId: string): void;
16
16
  private _watchRange;
17
17
  private _watchSingleRange;
@@ -1,6 +1,5 @@
1
- import type { IChartSnapshot } from '@univerjs-pro/engine-chart';
1
+ import type { ChartModel, IChartSnapshot } from '@univerjs-pro/engine-chart';
2
2
  import type { Nullable } from '@univerjs/core';
3
- import type { SheetChartModel } from '../models/chart-model';
4
3
  import type { ISheetChartDataSource, ISheetChartSourceRanges } from '../models/types';
5
4
  import { ChartTypeBits, DataOrientation } from '@univerjs-pro/engine-chart';
6
5
  import { Disposable, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
@@ -28,7 +27,7 @@ export declare class SheetsChartService extends Disposable {
28
27
  constructor(_resourcesManagerService: IResourceManagerService, _univerInstanceService: IUniverInstanceService, _chartModelService: ChartModelService, _rangeWatcher: SheetChartRangeWatcher);
29
28
  setLoaded(): void;
30
29
  getSubUnitId(unitId: string, chartModelId: string): Nullable<string>;
31
- getUnitChartModels(unitId: string, subUnitId: string): (SheetChartModel | undefined)[];
30
+ getUnitChartModels(unitId: string, subUnitId: string): (ChartModel<ISheetChartDataSource> | undefined)[];
32
31
  getChartSuggestion(rangeInfo: ISheetChartSourceRanges): {
33
32
  orient: DataOrientation;
34
33
  chartType: ChartTypeBits;
@@ -41,9 +40,9 @@ export declare class SheetsChartService extends Disposable {
41
40
  replaceChartDataSource(id: string, rangeInfo: ISheetChartSourceRanges): boolean;
42
41
  generateChartModelContextForSource(id: string, rangeInfo: ISheetChartSourceRanges): import("@univerjs-pro/engine-chart").IChartContext | undefined;
43
42
  refreshChartSource(): void;
44
- createChartModel(unitId: string, subUnitId: string, options: ISheetChartModelOptions, isNew?: boolean): SheetChartModel;
43
+ createChartModel(unitId: string, subUnitId: string, options: ISheetChartModelOptions, isNew?: boolean): ChartModel<ISheetChartDataSource>;
45
44
  removeChartModel(id: string): void;
46
- getChartModel(id: string): SheetChartModel | undefined;
45
+ getChartModel(id: string): ChartModel<ISheetChartDataSource> | undefined;
47
46
  private _serializeChartForUnit;
48
47
  private _refreshChartDataAndContext;
49
48
  private _bindRangeWatcher;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x26b7(_0x197082,_0x55ad73){_0x197082=_0x197082-0x73;const _0x3b5270=_0x3b52();let _0x26b786=_0x3b5270[_0x197082];return _0x26b786;}(function(_0x1cbc65,_0x399dfa){const _0x454ba5=_0x26b7,_0x4660b1=_0x1cbc65();while(!![]){try{const _0x26f8d4=-parseInt(_0x454ba5(0xb0))/0x1+parseInt(_0x454ba5(0xa2))/0x2+parseInt(_0x454ba5(0xdb))/0x3*(parseInt(_0x454ba5(0xc9))/0x4)+parseInt(_0x454ba5(0x85))/0x5+-parseInt(_0x454ba5(0xa7))/0x6+-parseInt(_0x454ba5(0xdd))/0x7+-parseInt(_0x454ba5(0x9a))/0x8*(-parseInt(_0x454ba5(0xe1))/0x9);if(_0x26f8d4===_0x399dfa)break;else _0x4660b1['push'](_0x4660b1['shift']());}catch(_0x48d17c){_0x4660b1['push'](_0x4660b1['shift']());}}}(_0x3b52,0x70b94),function(_0x3df563,_0xb22fec){const _0xf9d7d7=_0x26b7;typeof exports==_0xf9d7d7(0xc1)&&typeof module<'u'?_0xb22fec(exports,require('@univerjs/sheets/facade'),require('@univerjs-pro/engine-chart'),require('@univerjs-pro/engine-chart/facade'),require('@univerjs-pro/sheets-chart'),require('@univerjs/core'),require('@univerjs/sheets-drawing'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define([_0xf9d7d7(0x9d),'@univerjs/sheets/facade',_0xf9d7d7(0xa1),_0xf9d7d7(0xe7),_0xf9d7d7(0x98),_0xf9d7d7(0xe5),_0xf9d7d7(0xe8),_0xf9d7d7(0x77)],_0xb22fec):(_0x3df563=typeof globalThis<'u'?globalThis:_0x3df563||self,_0xb22fec(_0x3df563['UniverProSheetsChartFacade']={},_0x3df563[_0xf9d7d7(0xe6)],_0x3df563[_0xf9d7d7(0xa8)],_0x3df563[_0xf9d7d7(0xe3)],_0x3df563[_0xf9d7d7(0xc5)],_0x3df563[_0xf9d7d7(0xcf)],_0x3df563[_0xf9d7d7(0xf1)],_0x3df563[_0xf9d7d7(0x97)]));}(this,function(_0x1029ff,_0x2069be,_0x871fac,_0x5b222b,_0x2315c9,_0x495054,_0xe6c7e0,_0x929416){const _0x2fd372=_0x26b7;Object[_0x2fd372(0xd7)](_0x1029ff,Symbol[_0x2fd372(0x84)],{'value':_0x2fd372(0xed)});function _0x20f097(_0x2b5e48){const _0x1af9d6=_0x2fd372;return class extends _0x2b5e48{get[_0x1af9d6(0xbe)](){const _0x43197c=_0x1af9d6;return this[_0x43197c(0xad)];}[_0x1af9d6(0xd1)](_0x361bb8){return this['_sheetBuilder']['setSource'](_0x361bb8),this;}[_0x1af9d6(0xca)](){const _0x1272fa=_0x1af9d6;return this[_0x1272fa(0xbe)][_0x1272fa(0xca)]();}[_0x1af9d6(0xc3)](_0x15713d){const _0x19fba3=_0x1af9d6;return this[_0x19fba3(0xbe)][_0x19fba3(0x79)]({'anchor':_0x15713d}),this;}[_0x1af9d6(0xc6)](_0x4faf5c,_0x2b171c){const _0x3f70e4=_0x1af9d6;return this[_0x3f70e4(0xbe)]['setLayout']({'position':{'x':_0x4faf5c,'y':_0x2b171c}}),this;}['setSize'](_0x119200,_0x3d7a2a){const _0x308602=_0x1af9d6;return this['_sheetBuilder'][_0x308602(0x79)]({'size':{'width':_0x119200,'height':_0x3d7a2a}}),this;}};}let _0x1c51f9=new _0x5b222b[(_0x2fd372(0x90))](_0x52a466=>_0x20f097(_0x52a466));var _0x376b81=class{constructor(_0x39ff01,_0x375cca,_0x5e6ad8,_0xf3ae7e){const _0x19ff06=_0x2fd372;this[_0x19ff06(0x9c)]=_0x39ff01,this[_0x19ff06(0x95)]=_0x375cca,this[_0x19ff06(0xa6)]=_0x5e6ad8,this[_0x19ff06(0xde)]=_0xf3ae7e;}[_0x2fd372(0x80)](){return this['chartId'];}[_0x2fd372(0xae)](){const _0x2034b5=_0x2fd372;return this[_0x2034b5(0xa6)];}['getRange'](){const _0x688b6e=_0x2fd372;var _0x7dadf5;return(_0x7dadf5=this[_0x688b6e(0xde)]['get'](_0x2315c9[_0x688b6e(0x81)])[_0x688b6e(0xaf)](this['chartId']))==null?void 0x0:_0x7dadf5[_0x688b6e(0xb3)][_0x688b6e(0xe9)]();}['updateRange'](_0x4a8afb){const _0x1e4543=_0x2fd372;return this[_0x1e4543(0xde)][_0x1e4543(0xa5)](_0x495054[_0x1e4543(0xf0)])[_0x1e4543(0xd4)](_0x2315c9[_0x1e4543(0x7b)]['id'],{'unitId':this['unitId'],'chartModelId':this[_0x1e4543(0xa6)],'range':_0x4a8afb});}[_0x2fd372(0x96)](){const _0x3ada8d=_0x2fd372;var _0x3dca66;return(_0x3dca66=this['_injector'][_0x3ada8d(0xa5)](_0x2315c9[_0x3ada8d(0x81)])[_0x3ada8d(0xaf)](this[_0x3ada8d(0xa6)]))==null||(_0x3dca66=_0x3dca66[_0x3ada8d(0xd2)])==null?void 0x0:_0x3dca66['series'];}[_0x2fd372(0xd6)](){const _0x57a648=_0x2fd372;var _0x19bd02;return(_0x19bd02=this[_0x57a648(0xde)]['get'](_0x2315c9[_0x57a648(0x81)])['getChartModel'](this['chartId']))==null||(_0x19bd02=_0x19bd02[_0x57a648(0xd2)])==null?void 0x0:_0x19bd02[_0x57a648(0xb9)];}async[_0x2fd372(0xb2)](_0x465eec){const _0x7ba405=_0x2fd372;var _0x1218c3,_0x407634,_0x33f9ac,_0x41fcf3;let _0x5b9a6a=this[_0x7ba405(0xde)][_0x7ba405(0xa5)](_0x2315c9[_0x7ba405(0x81)])[_0x7ba405(0xaf)](this[_0x7ba405(0xa6)]);if(!_0x5b9a6a||!this[_0x7ba405(0xde)][_0x7ba405(0xf2)](_0xe6c7e0['ISheetDrawingService']))return null;let _0x1e8b23=this[_0x7ba405(0xde)]['get'](_0xe6c7e0[_0x7ba405(0xec)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x7ba405(0x95)],'drawingId':this[_0x7ba405(0xa6)]}),_0x2488ae=(0x0,_0x871fac['resolveChartRenderModelImageExportInput'])({'runtime':{'chartId':this[_0x7ba405(0xa6)],'model':_0x5b9a6a},'direction':this[_0x7ba405(0xde)][_0x7ba405(0xa5)](_0x495054[_0x7ba405(0xc2)])['getDirection'](),'width':(_0x1218c3=_0x1e8b23==null||(_0x407634=_0x1e8b23[_0x7ba405(0xbb)])==null?void 0x0:_0x407634[_0x7ba405(0x75)])==null?0x0:_0x1218c3,'height':(_0x33f9ac=_0x1e8b23==null||(_0x41fcf3=_0x1e8b23[_0x7ba405(0xbb)])==null?void 0x0:_0x41fcf3['height'])==null?0x0:_0x33f9ac});return _0x2488ae?this[_0x7ba405(0xde)][_0x7ba405(0xa5)](_0x871fac['IChartRenderModelManagerService'])[_0x7ba405(0xb2)](_0x2488ae,_0x465eec):null;}[_0x2fd372(0xc4)](){const _0x4a679e=_0x2fd372;return this[_0x4a679e(0xde)]['get'](_0x495054[_0x4a679e(0xf0)])[_0x4a679e(0xd4)](_0xe6c7e0['RemoveSheetDrawingCommand']['id'],{'unitId':this[_0x4a679e(0x9c)],'drawings':[{'unitId':this[_0x4a679e(0x9c)],'subUnitId':this[_0x4a679e(0x95)],'drawingId':this[_0x4a679e(0xa6)],'drawingType':_0x495054[_0x4a679e(0x73)][_0x4a679e(0x8b)]}]});}},_0x3efd50=class{constructor(_0x5579b8){const _0x57dadd=_0x2fd372;this[_0x57dadd(0xea)]=_0x5579b8;}async[_0x2fd372(0x86)](_0x408aa7){const _0x532a8a=_0x2fd372;var _0x303fa0,_0x273773,_0x18bc7,_0x23eb3b,_0x4bf2cf;let _0x2ce965=this[_0x532a8a(0xc7)](),_0x2a613c=[],_0x435a49=(0x0,_0x2315c9['resolveSourceSpec'])(_0x408aa7[_0x532a8a(0xe4)],_0x2ce965,_0x2a613c);if(!_0x435a49||_0x2a613c[_0x532a8a(0xbf)](_0x4be1d8=>_0x4be1d8[_0x532a8a(0x94)]===_0x2315c9['ChartDiagnosticSeverity'][_0x532a8a(0x7e)]))throw Error(_0x2a613c[_0x532a8a(0xaa)](_0x42af08=>_0x42af08[_0x532a8a(0xdc)])[_0x532a8a(0xe0)](';\x20')||'Invalid\x20Sheet\x20chart\x20source.');let _0x21fd94=(0x0,_0x495054[_0x532a8a(0x76)])(),_0x24b4a0=(0x0,_0x871fac['toChartModelConfig'])(_0x408aa7,{'series':(0x0,_0x2315c9[_0x532a8a(0x7f)])(_0x435a49,_0x2ce965,(_0x303fa0=(_0x273773=_0x408aa7[_0x532a8a(0xf3)])==null?void 0x0:_0x273773[_0x532a8a(0x87)])==null?0x0:_0x303fa0)}),_0x3bed27=(0x0,_0x2315c9[_0x532a8a(0xcb)])({'unitId':_0x2ce965['unitId'],'subUnitId':_0x2ce965[_0x532a8a(0x95)],'injector':this['_worksheet'][_0x532a8a(0xda)]()},_0x408aa7,_0x2a613c),_0x3c267d={'unitId':_0x2ce965[_0x532a8a(0x9c)],'subUnitId':_0x2ce965['subUnitId'],'chartId':_0x21fd94,'chartType':(0x0,_0x871fac[_0x532a8a(0xb6)])(_0x408aa7[_0x532a8a(0xdf)]),'source':_0x435a49[_0x532a8a(0x8d)]===_0x2315c9['ChartSourceKind'][_0x532a8a(0x89)]?_0x435a49[_0x532a8a(0xcd)]:_0x435a49[_0x532a8a(0x82)],'position':_0x3bed27,'width':(_0x18bc7=_0x408aa7[_0x532a8a(0xba)])==null?void 0x0:_0x18bc7[_0x532a8a(0x75)],'height':(_0x23eb3b=_0x408aa7['size'])==null?void 0x0:_0x23eb3b[_0x532a8a(0x7c)],'theme':(_0x4bf2cf=_0x408aa7[_0x532a8a(0xe2)])==null?void 0x0:_0x4bf2cf,'config':{'unitId':_0x2ce965[_0x532a8a(0x9c)],'chartModelId':_0x21fd94,'style':_0x24b4a0[_0x532a8a(0xa9)],'context':_0x24b4a0[_0x532a8a(0x99)],'dataAggregation':_0x24b4a0['dataAggregation']}};if(!await this[_0x532a8a(0xea)][_0x532a8a(0xda)]()[_0x532a8a(0xa5)](_0x495054[_0x532a8a(0xf0)])[_0x532a8a(0xd4)](_0x2315c9['InsertChartCommand']['id'],_0x3c267d))throw Error(_0x532a8a(0xeb));return new _0x376b81(_0x2ce965[_0x532a8a(0x9c)],_0x2ce965[_0x532a8a(0x95)],_0x21fd94,this[_0x532a8a(0xea)][_0x532a8a(0xda)]());}['get'](_0x4a80df){const _0x10818b=_0x2fd372;let {unitId:_0x60aec6,subUnitId:_0x24379b}=this['_sourceContext'](),_0x4068b7=this[_0x10818b(0xea)]['getInject']()['get'](_0x2315c9[_0x10818b(0x81)]);return _0x4068b7['getChartModel'](_0x4a80df)&&_0x4068b7['getSubUnitId'](_0x60aec6,_0x4a80df)===_0x24379b?new _0x376b81(_0x60aec6,_0x24379b,_0x4a80df,this[_0x10818b(0xea)][_0x10818b(0xda)]()):null;}['list'](){const _0x3804af=_0x2fd372;let {unitId:_0x1914d2,subUnitId:_0x2aaee9}=this[_0x3804af(0xc7)]();return this[_0x3804af(0xea)][_0x3804af(0xda)]()[_0x3804af(0xa5)](_0x2315c9['SheetsChartService'])[_0x3804af(0xd5)](_0x1914d2,_0x2aaee9)[_0x3804af(0x7a)](Boolean)[_0x3804af(0xaa)](_0x1ca084=>new _0x376b81(_0x1914d2,_0x2aaee9,_0x1ca084['id'],this[_0x3804af(0xea)][_0x3804af(0xda)]()));}[_0x2fd372(0xc4)](_0x5b1ca6){const _0x50d8f5=_0x2fd372;let _0x17c5e6=typeof _0x5b1ca6=='string'?this[_0x50d8f5(0xa5)](_0x5b1ca6):_0x5b1ca6;return _0x17c5e6?this['_worksheet']['getInject']()['get'](_0x495054[_0x50d8f5(0xf0)])['executeCommand'](_0xe6c7e0[_0x50d8f5(0xb4)]['id'],{'unitId':_0x17c5e6[_0x50d8f5(0x9c)],'drawings':[{'unitId':_0x17c5e6[_0x50d8f5(0x9c)],'subUnitId':_0x17c5e6[_0x50d8f5(0x95)],'drawingId':_0x17c5e6[_0x50d8f5(0xa6)],'drawingType':_0x495054[_0x50d8f5(0x73)][_0x50d8f5(0x8b)]}]}):Promise['resolve'](!0x1);}[_0x2fd372(0xc7)](){const _0x2c48ee=_0x2fd372;let _0x20cf5d=this[_0x2c48ee(0xea)][_0x2c48ee(0xef)](),_0x25bb50=this['_worksheet'][_0x2c48ee(0xda)]()[_0x2c48ee(0xa5)](_0x2315c9[_0x2c48ee(0x81)]);return{'unitId':_0x20cf5d[_0x2c48ee(0x88)](),'subUnitId':this['_worksheet'][_0x2c48ee(0xcc)](),'workbook':_0x20cf5d,'resolveAutoIsRowDirection':_0x51b90c=>_0x25bb50[_0x2c48ee(0xb7)](_0x51b90c)[_0x2c48ee(0xa0)]===_0x871fac[_0x2c48ee(0x9b)]['Row']};}};function _0x1a1b05(_0x21c91b){'@babel/helpers - typeof';const _0x2d66e1=_0x2fd372;return _0x1a1b05=typeof Symbol==_0x2d66e1(0x92)&&typeof Symbol[_0x2d66e1(0xbc)]==_0x2d66e1(0x8e)?function(_0x4d8e26){return typeof _0x4d8e26;}:function(_0x3f032a){const _0x2c67a3=_0x2d66e1;return _0x3f032a&&typeof Symbol==_0x2c67a3(0x92)&&_0x3f032a[_0x2c67a3(0xc0)]===Symbol&&_0x3f032a!==Symbol['prototype']?_0x2c67a3(0x8e):typeof _0x3f032a;},_0x1a1b05(_0x21c91b);}function _0x28f907(_0x14b136,_0x1672e7){const _0x963c66=_0x2fd372;if(_0x1a1b05(_0x14b136)!=_0x963c66(0xc1)||!_0x14b136)return _0x14b136;var _0x3d68ac=_0x14b136[Symbol[_0x963c66(0xbd)]];if(_0x3d68ac!==void 0x0){var _0x1063b4=_0x3d68ac[_0x963c66(0xce)](_0x14b136,_0x1672e7||'default');if(_0x1a1b05(_0x1063b4)!=_0x963c66(0xc1))return _0x1063b4;throw TypeError(_0x963c66(0x93));}return(_0x1672e7===_0x963c66(0xa3)?String:Number)(_0x14b136);}function _0x4f5db1(_0x4031fa){const _0xda8df0=_0x2fd372;var _0x131d59=_0x28f907(_0x4031fa,_0xda8df0(0xa3));return _0x1a1b05(_0x131d59)==_0xda8df0(0x8e)?_0x131d59:_0x131d59+'';}function _0x106506(_0x763d07,_0x383bed,_0x26c28b){const _0xd0c1fe=_0x2fd372;return(_0x383bed=_0x4f5db1(_0x383bed))in _0x763d07?Object[_0xd0c1fe(0xd7)](_0x763d07,_0x383bed,{'value':_0x26c28b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x763d07[_0x383bed]=_0x26c28b,_0x763d07;}var _0x411bd9=class extends _0x871fac[_0x2fd372(0xd8)]{constructor(_0x54a277,_0x2042e1){super(_0x54a277,'Insert\x20the\x20Sheet\x20chart\x20before\x20calling\x20commit().'),this['_resolveSource']=_0x2042e1;}[_0x2fd372(0xb8)](_0x2ad9cd){const _0x497c42=_0x2fd372;return this[_0x497c42(0xb1)]();}[_0x2fd372(0xb5)](_0xbc7b0d){const _0x26320d=_0x2fd372;return this[_0x26320d(0x78)](_0xbc7b0d);}},_0x17b2e6=class extends _0x5b222b[_0x2fd372(0x91)]{constructor(_0x3b3e7b){const _0x28c8d4=_0x2fd372;super(),this[_0x28c8d4(0xea)]=_0x3b3e7b,_0x106506(this,_0x28c8d4(0x74),void 0x0),this[_0x28c8d4(0x74)]=new _0x3efd50(_0x3b3e7b);}[_0x2fd372(0x86)](){const _0x6cbdf7=_0x2fd372;let _0x22e92e=(0x0,_0x495054[_0x6cbdf7(0x76)])(),_0x3e763a={'id':_0x22e92e,'type':_0x871fac[_0x6cbdf7(0xd0)],'series':{}},_0x44aaa4=new _0x2315c9['SheetChartBuilder'](_0x22e92e,_0x3e763a,new _0x411bd9(_0x3e763a,_0x42b2d4=>new _0x2315c9['SheetChartBuilderAdapter']({'unitId':this[_0x6cbdf7(0xea)]['getWorkbook']()['getUnitId'](),'subUnitId':this[_0x6cbdf7(0xea)]['getSheetId'](),'chartId':_0x22e92e,'injector':this[_0x6cbdf7(0xea)][_0x6cbdf7(0xda)]()})[_0x6cbdf7(0xb5)](_0x42b2d4)));return _0x1c51f9[_0x6cbdf7(0x86)](_0x44aaa4,_0x5b222b['FChartBuilderBase']);}async[_0x2fd372(0x8c)](_0x39c8c7){const _0x1d3246=_0x2fd372;let _0x45bdd3=_0x39c8c7[_0x1d3246(0x8f)]();if(!_0x45bdd3[_0x1d3246(0xe4)])throw Error(_0x1d3246(0xd9));let _0x1a607c=(0x0,_0x2315c9['toSheetChartCreateSpec'])(_0x45bdd3,(0x0,_0x5b222b[_0x1d3246(0xab)])(_0x39c8c7)),_0x2bdbae=await this[_0x1d3246(0x74)]['create'](_0x1a607c);return this[_0x1d3246(0xac)](_0x2bdbae);}[_0x2fd372(0xa5)](_0x19c02c){const _0xe28f78=_0x2fd372;let _0x1307e0=this[_0xe28f78(0x74)]['get'](_0x19c02c);return _0x1307e0?this['_wrap'](_0x1307e0):null;}[_0x2fd372(0xc8)](){const _0x116962=_0x2fd372;return this[_0x116962(0x74)][_0x116962(0xc8)]()[_0x116962(0xaa)](_0x5711c1=>this[_0x116962(0xac)](_0x5711c1));}[_0x2fd372(0xc4)](_0x75274f){const _0x1a14c8=_0x2fd372;return this['_commands']['remove'](typeof _0x75274f==_0x1a14c8(0xa3)?_0x75274f:_0x75274f[_0x1a14c8(0xae)]());}[_0x2fd372(0x9e)](_0xfa7362,_0x366574){const _0x130103=_0x2fd372;this['_worksheet'][_0x130103(0xda)]()['get'](_0x871fac[_0x130103(0xa4)])[_0x130103(0x9e)](_0xfa7362,_0x366574);}['_wrap'](_0x4402d3){const _0x2a45f6=_0x2fd372;let _0x49c7d2=new _0x2315c9[(_0x2a45f6(0xee))]({'unitId':_0x4402d3[_0x2a45f6(0x9c)],'subUnitId':_0x4402d3[_0x2a45f6(0x95)],'chartId':_0x4402d3['chartId'],'injector':this[_0x2a45f6(0xea)][_0x2a45f6(0xda)]()}),_0x37039b=_0x49c7d2['describe'](),_0x51ac91=new _0x2315c9[(_0x2a45f6(0xd3))](_0x4402d3[_0x2a45f6(0xae)](),_0x37039b,_0x49c7d2),_0x19670b=(0x0,_0x5b222b['getChartBuilderConstructor'])(_0x37039b[_0x2a45f6(0xdf)]);return _0x1c51f9[_0x2a45f6(0x86)](_0x51ac91,_0x19670b);}},_0x12135c=class extends _0x2069be[_0x2fd372(0x83)]{get[_0x2fd372(0x9f)](){return new _0x17b2e6(this);}};_0x2069be[_0x2fd372(0x83)][_0x2fd372(0x7d)](_0x12135c);var _0xbba18c=class extends _0x929416['FEnum']{get[_0x2fd372(0x8a)](){const _0x522cae=_0x2fd372;return _0x2315c9[_0x522cae(0x8a)];}};_0x929416['FEnum'][_0x2fd372(0x7d)](_0xbba18c),_0x1029ff['FSheetCharts']=_0x17b2e6;}));function _0x3b52(){const _0x1d4983=['getInject','6QKGsvc','message','1981833wXCdNE','_injector','type','join','74259ZhhfEX','theme','UniverProEngineChartFacade','source','@univerjs/core','UniverSheetsFacade','@univerjs-pro/engine-chart/facade','@univerjs/sheets-drawing','getRangeInfo','_worksheet','Failed\x20to\x20create\x20Sheet\x20chart.','ISheetDrawingService','Module','SheetChartBuilderAdapter','getWorkbook','ICommandService','UniverSheetsDrawing','has','mapping','DrawingTypeEnum','_commands','width','generateRandomId','@univerjs/core/facade','_resolveSource','setLayout','filter','ChartUpdateSourceCommand','height','extend','Error','resolveSourceSeries','getChartId','SheetsChartService','ranges','FWorksheet','toStringTag','3647425NMNcNG','create','categoryIndex','getUnitId','Range','ChartSourceOrientation','DRAWING_CHART','insert','kind','symbol','describe','HostBuilderComposer','FChartsBase','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','severity','subUnitId','getSeriesData','UniverCoreFacade','@univerjs-pro/sheets-chart','context','152xiLQMl','DataOrientation','unitId','exports','registerTheme','charts','orient','@univerjs-pro/engine-chart','798968Knubui','string','ChartThemeService','get','chartId','5526444rTdzCD','UniverProEngineChart','style','map','getChartBuilderPendingConfig','_wrap','_builder','getId','getChartModel','205683egnYaW','rejectCommit','exportImage','dataSource','RemoveSheetDrawingCommand','resolveSource','chartTypeToBits','getChartSuggestion','commitHost','category','size','transform','iterator','toPrimitive','_sheetBuilder','some','constructor','object','LocaleService','setPosition','remove','UniverProSheetsChart','setAbsolutePosition','_sourceContext','list','1171708xHacWj','getSource','resolveInitialChartPosition','getSheetId','rangeInfo','call','UniverCore','DEFAULT_CHART_TYPE','setSource','config','SheetChartBuilder','executeCommand','getUnitChartModels','getCategoryData','defineProperty','DetachedChartBuilderAdapter','Sheet\x20chart\x20source\x20is\x20required\x20before\x20insert().'];_0x3b52=function(){return _0x1d4983;};return _0x3b52();}
1
+ function _0x924e(_0x4145b8,_0x1d398f){_0x4145b8=_0x4145b8-0x184;const _0x279b73=_0x279b();let _0x924e44=_0x279b73[_0x4145b8];return _0x924e44;}function _0x279b(){const _0x587e45=['toSheetChartCreateSpec','FChartBuilderBase','getSeriesData','getRange','constructor','string','toChartModelConfig','getRangeInfo','UniverCore','function','getChartBuilderConstructor','rejectCommit','Module','iterator','385mhSElQ','map','call','category','chartId','Error','InsertChartCommand','UniverSheetsDrawing','Sheet\x20chart\x20source\x20is\x20required\x20before\x20insert().','mapping','ChartSourceOrientation','prototype','RemoveSheetDrawingCommand','_worksheet','Invalid\x20Sheet\x20chart\x20source.','describe','ChartThemeService','UniverSheetsFacade','width','setLayout','ICommandService','theme','Failed\x20to\x20create\x20Sheet\x20chart.','resolveSourceSeries','charts','getSubUnitId','resolveSource','toPrimitive','@univerjs/core/facade','join','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerTheme','638058kiBIAO','_sourceContext','FSheetCharts','getCategoryData','@univerjs/core','getUnitId','get','create','@univerjs-pro/engine-chart','DataOrientation','DrawingTypeEnum','unitId','setSource','symbol','109bicivO','DRAWING_CHART','getChartModel','getChartSuggestion','updateRange','defineProperty','UniverProSheetsChart','getId','dataAggregation','getUnitChartModels','UniverProEngineChart','remove','severity','410vXnrIg','Insert\x20the\x20Sheet\x20chart\x20before\x20calling\x20commit().','object','source','SheetChartBuilder','default','DetachedChartBuilderAdapter','generateRandomId','extend','UniverCoreFacade','getSheetId','4202vYRHnZ','chartTypeToBits','series','33464iRTZCQ','getChartBuilderPendingConfig','1139035fshJAt','subUnitId','637494ljORlH','Range','setAbsolutePosition','_injector','size','SheetChartBuilderAdapter','context','exportImage','getInject','_wrap','34920GYHKaP','type','FEnum','getWorkbook','list','SheetsChartService','ranges','config','executeCommand','getSource','509744ZHIYqA','FWorksheet','@univerjs/sheets/facade','some','_sheetBuilder','toStringTag','@univerjs-pro/engine-chart/facade','setSize','FChartsBase','_commands'];_0x279b=function(){return _0x587e45;};return _0x279b();}(function(_0x519646,_0x489108){const _0x17e79f=_0x924e,_0x3205a9=_0x519646();while(!![]){try{const _0x1d1ebd=parseInt(_0x17e79f(0x1d4))/0x1*(parseInt(_0x17e79f(0x1ec))/0x2)+parseInt(_0x17e79f(0x1f3))/0x3+-parseInt(_0x17e79f(0x18e))/0x4+-parseInt(_0x17e79f(0x1f1))/0x5+parseInt(_0x17e79f(0x1c6))/0x6+-parseInt(_0x17e79f(0x1a6))/0x7*(parseInt(_0x17e79f(0x1ef))/0x8)+parseInt(_0x17e79f(0x184))/0x9*(parseInt(_0x17e79f(0x1e1))/0xa);if(_0x1d1ebd===_0x489108)break;else _0x3205a9['push'](_0x3205a9['shift']());}catch(_0x1445f4){_0x3205a9['push'](_0x3205a9['shift']());}}}(_0x279b,0x1db16),function(_0x420410,_0x23fc85){const _0x3ba952=_0x924e;typeof exports==_0x3ba952(0x1e3)&&typeof module<'u'?_0x23fc85(exports,require('@univerjs/sheets/facade'),require('@univerjs-pro/engine-chart'),require('@univerjs-pro/engine-chart/facade'),require('@univerjs-pro/sheets-chart'),require('@univerjs/core'),require('@univerjs/sheets-drawing'),require('@univerjs/core/facade')):typeof define==_0x3ba952(0x1a1)&&define['amd']?define(['exports',_0x3ba952(0x190),_0x3ba952(0x1ce),_0x3ba952(0x194),'@univerjs-pro/sheets-chart',_0x3ba952(0x1ca),'@univerjs/sheets-drawing',_0x3ba952(0x1c2)],_0x23fc85):(_0x420410=typeof globalThis<'u'?globalThis:_0x420410||self,_0x23fc85(_0x420410['UniverProSheetsChartFacade']={},_0x420410[_0x3ba952(0x1b7)],_0x420410[_0x3ba952(0x1de)],_0x420410['UniverProEngineChartFacade'],_0x420410[_0x3ba952(0x1da)],_0x420410[_0x3ba952(0x1a0)],_0x420410[_0x3ba952(0x1ad)],_0x420410[_0x3ba952(0x1ea)]));}(this,function(_0x1d7a7a,_0x4eac2c,_0x369936,_0x13b7ad,_0x37f5b2,_0x3164d4,_0x44c818,_0x4d240a){const _0x5577d2=_0x924e;Object[_0x5577d2(0x1d9)](_0x1d7a7a,Symbol[_0x5577d2(0x193)],{'value':_0x5577d2(0x1a4)});function _0xadb2df(_0x28ac81){const _0xaac8bb=_0x5577d2;return class extends _0x28ac81{get[_0xaac8bb(0x192)](){return this['_builder'];}[_0xaac8bb(0x1d2)](_0x3b8237){const _0x8714b=_0xaac8bb;return this[_0x8714b(0x192)]['setSource'](_0x3b8237),this;}[_0xaac8bb(0x18d)](){const _0x1b0897=_0xaac8bb;return this[_0x1b0897(0x192)]['getSource']();}['setPosition'](_0x4a8bb9){const _0x2eb074=_0xaac8bb;return this['_sheetBuilder'][_0x2eb074(0x1b9)]({'anchor':_0x4a8bb9}),this;}[_0xaac8bb(0x1f5)](_0x5342ce,_0x1a0b62){const _0x577676=_0xaac8bb;return this[_0x577676(0x192)][_0x577676(0x1b9)]({'position':{'x':_0x5342ce,'y':_0x1a0b62}}),this;}[_0xaac8bb(0x195)](_0x35279d,_0x1272a8){const _0x123607=_0xaac8bb;return this[_0x123607(0x192)][_0x123607(0x1b9)]({'size':{'width':_0x35279d,'height':_0x1272a8}}),this;}};}let _0x3c9fdb=new _0x13b7ad['HostBuilderComposer'](_0x27ec9c=>_0xadb2df(_0x27ec9c));var _0x4cd11f=class{constructor(_0x1487b1,_0x22553a,_0x558979,_0x4fa31c){const _0x18f488=_0x5577d2;this[_0x18f488(0x1d1)]=_0x1487b1,this['subUnitId']=_0x22553a,this[_0x18f488(0x1aa)]=_0x558979,this[_0x18f488(0x1f6)]=_0x4fa31c;}['getChartId'](){const _0x2620f6=_0x5577d2;return this[_0x2620f6(0x1aa)];}[_0x5577d2(0x1db)](){const _0x4a3c78=_0x5577d2;return this[_0x4a3c78(0x1aa)];}[_0x5577d2(0x19b)](){const _0x3b4f30=_0x5577d2;var _0x2e6afe;return(_0x2e6afe=this['_injector'][_0x3b4f30(0x1cc)](_0x37f5b2['SheetsChartService'])['getChartModel'](this[_0x3b4f30(0x1aa)]))==null?void 0x0:_0x2e6afe['dataSource'][_0x3b4f30(0x19f)]();}[_0x5577d2(0x1d8)](_0x41271b){const _0x169e4a=_0x5577d2;return this[_0x169e4a(0x1f6)][_0x169e4a(0x1cc)](_0x3164d4[_0x169e4a(0x1ba)])[_0x169e4a(0x18c)](_0x37f5b2['ChartUpdateSourceCommand']['id'],{'unitId':this[_0x169e4a(0x1d1)],'chartModelId':this[_0x169e4a(0x1aa)],'range':_0x41271b});}[_0x5577d2(0x19a)](){const _0x1738f6=_0x5577d2;var _0x14aab1;return(_0x14aab1=this[_0x1738f6(0x1f6)][_0x1738f6(0x1cc)](_0x37f5b2['SheetsChartService'])['getChartModel'](this[_0x1738f6(0x1aa)]))==null||(_0x14aab1=_0x14aab1[_0x1738f6(0x18b)])==null?void 0x0:_0x14aab1[_0x1738f6(0x1ee)];}[_0x5577d2(0x1c9)](){const _0xb9fb1=_0x5577d2;var _0x2dd225;return(_0x2dd225=this['_injector'][_0xb9fb1(0x1cc)](_0x37f5b2['SheetsChartService'])['getChartModel'](this[_0xb9fb1(0x1aa)]))==null||(_0x2dd225=_0x2dd225['config'])==null?void 0x0:_0x2dd225[_0xb9fb1(0x1a9)];}async[_0x5577d2(0x1fa)](_0x23daa3){const _0x31c4d3=_0x5577d2;return new _0x37f5b2[(_0x31c4d3(0x1f8))]({'unitId':this['unitId'],'subUnitId':this[_0x31c4d3(0x1f2)],'chartId':this[_0x31c4d3(0x1aa)],'injector':this[_0x31c4d3(0x1f6)]})['exportImage'](_0x23daa3);}['remove'](){const _0x6e318d=_0x5577d2;return this[_0x6e318d(0x1f6)][_0x6e318d(0x1cc)](_0x3164d4[_0x6e318d(0x1ba)])['executeCommand'](_0x44c818['RemoveSheetDrawingCommand']['id'],{'unitId':this[_0x6e318d(0x1d1)],'drawings':[{'unitId':this['unitId'],'subUnitId':this[_0x6e318d(0x1f2)],'drawingId':this[_0x6e318d(0x1aa)],'drawingType':_0x3164d4[_0x6e318d(0x1d0)][_0x6e318d(0x1d5)]}]});}},_0xa665c7=class{constructor(_0x16b59a){const _0x8ab7ea=_0x5577d2;this[_0x8ab7ea(0x1b3)]=_0x16b59a;}async[_0x5577d2(0x1cd)](_0x4eebc2){const _0x392b12=_0x5577d2;var _0x11ad97,_0x5c9a0a,_0x341e57;let _0x44c328=this[_0x392b12(0x1c7)](),_0x59537e=[],_0x896e32=(0x0,_0x37f5b2['resolveSourceSpec'])(_0x4eebc2[_0x392b12(0x1e4)],_0x44c328,_0x59537e);if(!_0x896e32||_0x59537e[_0x392b12(0x191)](_0x44cbcd=>_0x44cbcd[_0x392b12(0x1e0)]===_0x37f5b2['ChartDiagnosticSeverity'][_0x392b12(0x1ab)]))throw Error(_0x59537e[_0x392b12(0x1a7)](_0x1fee6c=>_0x1fee6c['message'])[_0x392b12(0x1c3)](';\x20')||_0x392b12(0x1b4));let _0x19c4bb=(0x0,_0x3164d4[_0x392b12(0x1e8)])(),_0x7536cc=(0x0,_0x369936[_0x392b12(0x19e)])(_0x4eebc2,{'series':(0x0,_0x37f5b2[_0x392b12(0x1bd)])(_0x896e32,_0x44c328,((_0x11ad97=_0x4eebc2[_0x392b12(0x1af)])==null?void 0x0:_0x11ad97['categoryIndex'])??0x0)}),_0x399cae=(0x0,_0x37f5b2['resolveInitialChartPosition'])({'unitId':_0x44c328['unitId'],'subUnitId':_0x44c328[_0x392b12(0x1f2)],'injector':this[_0x392b12(0x1b3)][_0x392b12(0x1fb)]()},_0x4eebc2,_0x59537e),_0x4fc10e={'unitId':_0x44c328['unitId'],'subUnitId':_0x44c328[_0x392b12(0x1f2)],'chartId':_0x19c4bb,'chartType':(0x0,_0x369936[_0x392b12(0x1ed)])(_0x4eebc2[_0x392b12(0x185)]),'source':_0x896e32['kind']===_0x37f5b2['ChartSourceKind'][_0x392b12(0x1f4)]?_0x896e32['rangeInfo']:_0x896e32[_0x392b12(0x18a)],'position':_0x399cae,'width':(_0x5c9a0a=_0x4eebc2[_0x392b12(0x1f7)])==null?void 0x0:_0x5c9a0a[_0x392b12(0x1b8)],'height':(_0x341e57=_0x4eebc2[_0x392b12(0x1f7)])==null?void 0x0:_0x341e57['height'],'theme':_0x4eebc2[_0x392b12(0x1bb)]??void 0x0,'config':{'unitId':_0x44c328[_0x392b12(0x1d1)],'chartModelId':_0x19c4bb,'style':_0x7536cc['style'],'context':_0x7536cc[_0x392b12(0x1f9)],'dataAggregation':_0x7536cc[_0x392b12(0x1dc)]}};if(!await this['_worksheet']['getInject']()[_0x392b12(0x1cc)](_0x3164d4[_0x392b12(0x1ba)])['executeCommand'](_0x37f5b2[_0x392b12(0x1ac)]['id'],_0x4fc10e))throw Error(_0x392b12(0x1bc));return new _0x4cd11f(_0x44c328[_0x392b12(0x1d1)],_0x44c328[_0x392b12(0x1f2)],_0x19c4bb,this[_0x392b12(0x1b3)][_0x392b12(0x1fb)]());}[_0x5577d2(0x1cc)](_0x49bb34){const _0x25a7c2=_0x5577d2;let {unitId:_0x200fc9,subUnitId:_0xbb7bd}=this[_0x25a7c2(0x1c7)](),_0x5cd442=this[_0x25a7c2(0x1b3)]['getInject']()[_0x25a7c2(0x1cc)](_0x37f5b2[_0x25a7c2(0x189)]);return _0x5cd442[_0x25a7c2(0x1d6)](_0x49bb34)&&_0x5cd442[_0x25a7c2(0x1bf)](_0x200fc9,_0x49bb34)===_0xbb7bd?new _0x4cd11f(_0x200fc9,_0xbb7bd,_0x49bb34,this[_0x25a7c2(0x1b3)]['getInject']()):null;}[_0x5577d2(0x188)](){const _0x12c1e8=_0x5577d2;let {unitId:_0x169dad,subUnitId:_0x4b0e55}=this[_0x12c1e8(0x1c7)]();return this[_0x12c1e8(0x1b3)][_0x12c1e8(0x1fb)]()[_0x12c1e8(0x1cc)](_0x37f5b2[_0x12c1e8(0x189)])[_0x12c1e8(0x1dd)](_0x169dad,_0x4b0e55)['filter'](Boolean)[_0x12c1e8(0x1a7)](_0x1e99c0=>new _0x4cd11f(_0x169dad,_0x4b0e55,_0x1e99c0['id'],this[_0x12c1e8(0x1b3)][_0x12c1e8(0x1fb)]()));}['remove'](_0x4befa8){const _0x3101ed=_0x5577d2;let _0x5d7add=typeof _0x4befa8==_0x3101ed(0x19d)?this['get'](_0x4befa8):_0x4befa8;return _0x5d7add?this[_0x3101ed(0x1b3)]['getInject']()['get'](_0x3164d4[_0x3101ed(0x1ba)])[_0x3101ed(0x18c)](_0x44c818[_0x3101ed(0x1b2)]['id'],{'unitId':_0x5d7add[_0x3101ed(0x1d1)],'drawings':[{'unitId':_0x5d7add[_0x3101ed(0x1d1)],'subUnitId':_0x5d7add[_0x3101ed(0x1f2)],'drawingId':_0x5d7add['chartId'],'drawingType':_0x3164d4[_0x3101ed(0x1d0)]['DRAWING_CHART']}]}):Promise['resolve'](!0x1);}['_sourceContext'](){const _0x4d793a=_0x5577d2;let _0x58a582=this[_0x4d793a(0x1b3)][_0x4d793a(0x187)](),_0x3c6fe0=this[_0x4d793a(0x1b3)][_0x4d793a(0x1fb)]()[_0x4d793a(0x1cc)](_0x37f5b2[_0x4d793a(0x189)]);return{'unitId':_0x58a582['getUnitId'](),'subUnitId':this[_0x4d793a(0x1b3)][_0x4d793a(0x1eb)](),'workbook':_0x58a582,'resolveAutoIsRowDirection':_0x2d43f1=>_0x3c6fe0[_0x4d793a(0x1d7)](_0x2d43f1)['orient']===_0x369936[_0x4d793a(0x1cf)]['Row']};}};function _0x2387af(_0x4dd1d6){'@babel/helpers - typeof';const _0x240ab5=_0x5577d2;return _0x2387af=typeof Symbol==_0x240ab5(0x1a1)&&typeof Symbol[_0x240ab5(0x1a5)]=='symbol'?function(_0x1e445c){return typeof _0x1e445c;}:function(_0x55f71d){const _0x2ea05e=_0x240ab5;return _0x55f71d&&typeof Symbol=='function'&&_0x55f71d[_0x2ea05e(0x19c)]===Symbol&&_0x55f71d!==Symbol[_0x2ea05e(0x1b1)]?_0x2ea05e(0x1d3):typeof _0x55f71d;},_0x2387af(_0x4dd1d6);}function _0x3b6b4f(_0x1b9f4f,_0x190f26){const _0x4f8ee5=_0x5577d2;if(_0x2387af(_0x1b9f4f)!=_0x4f8ee5(0x1e3)||!_0x1b9f4f)return _0x1b9f4f;var _0x5c67e6=_0x1b9f4f[Symbol[_0x4f8ee5(0x1c1)]];if(_0x5c67e6!==void 0x0){var _0x4aa8c7=_0x5c67e6[_0x4f8ee5(0x1a8)](_0x1b9f4f,_0x190f26||_0x4f8ee5(0x1e6));if(_0x2387af(_0x4aa8c7)!='object')return _0x4aa8c7;throw TypeError(_0x4f8ee5(0x1c4));}return(_0x190f26===_0x4f8ee5(0x19d)?String:Number)(_0x1b9f4f);}function _0x5d8533(_0x277c28){const _0x27ff82=_0x5577d2;var _0x30997e=_0x3b6b4f(_0x277c28,'string');return _0x2387af(_0x30997e)==_0x27ff82(0x1d3)?_0x30997e:_0x30997e+'';}function _0x46afcf(_0x45f978,_0x549f60,_0x28ea2b){return(_0x549f60=_0x5d8533(_0x549f60))in _0x45f978?Object['defineProperty'](_0x45f978,_0x549f60,{'value':_0x28ea2b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45f978[_0x549f60]=_0x28ea2b,_0x45f978;}var _0x260e9b=class extends _0x369936[_0x5577d2(0x1e7)]{constructor(_0x2beffb,_0x530a1f,_0x41eca4){const _0x4a5fb6=_0x5577d2;super(_0x2beffb,_0x4a5fb6(0x1e2),_0x41eca4),this['_resolveSource']=_0x530a1f;}['commitHost'](_0x55ddf1){const _0xbfece9=_0x5577d2;return this[_0xbfece9(0x1a3)]();}[_0x5577d2(0x1c0)](_0x4cc477){return this['_resolveSource'](_0x4cc477);}},_0x2f93b1=class extends _0x13b7ad[_0x5577d2(0x196)]{constructor(_0x339a78){const _0x5e62a5=_0x5577d2;super(),this[_0x5e62a5(0x1b3)]=_0x339a78,_0x46afcf(this,'_commands',void 0x0),this['_commands']=new _0xa665c7(_0x339a78);}[_0x5577d2(0x1cd)](){const _0x8b8401=_0x5577d2;let _0x2b8b36=(0x0,_0x3164d4[_0x8b8401(0x1e8)])(),_0x42e750={'id':_0x2b8b36,'type':_0x369936['DEFAULT_CHART_TYPE'],'series':{}},_0x4722eb=this[_0x8b8401(0x1b3)][_0x8b8401(0x1fb)](),_0x26c5b5=new _0x37f5b2[(_0x8b8401(0x1e5))](_0x2b8b36,_0x42e750,new _0x260e9b(_0x42e750,_0x2c5a17=>new _0x37f5b2[(_0x8b8401(0x1f8))]({'unitId':this[_0x8b8401(0x1b3)][_0x8b8401(0x187)]()[_0x8b8401(0x1cb)](),'subUnitId':this['_worksheet']['getSheetId'](),'chartId':_0x2b8b36,'injector':_0x4722eb})[_0x8b8401(0x1c0)](_0x2c5a17),_0x4722eb));return _0x3c9fdb[_0x8b8401(0x1cd)](_0x26c5b5,_0x13b7ad[_0x8b8401(0x199)]);}async['insert'](_0x52bcca){const _0x3aafc1=_0x5577d2;let _0x59d7c0=_0x52bcca['describe']();if(!_0x59d7c0['source'])throw Error(_0x3aafc1(0x1ae));let _0x4d36bc=(0x0,_0x37f5b2[_0x3aafc1(0x198)])(_0x59d7c0,(0x0,_0x13b7ad[_0x3aafc1(0x1f0)])(_0x52bcca)),_0x17ba44=await this[_0x3aafc1(0x197)][_0x3aafc1(0x1cd)](_0x4d36bc);return this[_0x3aafc1(0x1fc)](_0x17ba44);}[_0x5577d2(0x1cc)](_0x2ac220){const _0x53fc2f=_0x5577d2;let _0x75b517=this[_0x53fc2f(0x197)][_0x53fc2f(0x1cc)](_0x2ac220);return _0x75b517?this[_0x53fc2f(0x1fc)](_0x75b517):null;}['list'](){const _0xc2553f=_0x5577d2;return this['_commands'][_0xc2553f(0x188)]()[_0xc2553f(0x1a7)](_0x33ce23=>this[_0xc2553f(0x1fc)](_0x33ce23));}[_0x5577d2(0x1df)](_0x4588a6){const _0x1d76a8=_0x5577d2;return this[_0x1d76a8(0x197)][_0x1d76a8(0x1df)](typeof _0x4588a6==_0x1d76a8(0x19d)?_0x4588a6:_0x4588a6[_0x1d76a8(0x1db)]());}[_0x5577d2(0x1c5)](_0x3bc722,_0x12e8c3){const _0x340bff=_0x5577d2;this[_0x340bff(0x1b3)]['getInject']()[_0x340bff(0x1cc)](_0x369936[_0x340bff(0x1b6)])[_0x340bff(0x1c5)](_0x3bc722,_0x12e8c3);}['_wrap'](_0xf04653){const _0x47c466=_0x5577d2;let _0x179e0e=new _0x37f5b2[(_0x47c466(0x1f8))]({'unitId':_0xf04653[_0x47c466(0x1d1)],'subUnitId':_0xf04653['subUnitId'],'chartId':_0xf04653[_0x47c466(0x1aa)],'injector':this['_worksheet'][_0x47c466(0x1fb)]()}),_0xe281bf=_0x179e0e[_0x47c466(0x1b5)](),_0x10e9ca=new _0x37f5b2['SheetChartBuilder'](_0xf04653[_0x47c466(0x1db)](),_0xe281bf,_0x179e0e),_0x3a97bf=(0x0,_0x13b7ad[_0x47c466(0x1a2)])(_0xe281bf['type']);return _0x3c9fdb['create'](_0x10e9ca,_0x3a97bf);}},_0x161ced=class extends _0x4eac2c[_0x5577d2(0x18f)]{get[_0x5577d2(0x1be)](){return new _0x2f93b1(this);}};_0x4eac2c['FWorksheet']['extend'](_0x161ced);var _0x341ea5=class extends _0x4d240a[_0x5577d2(0x186)]{get['ChartSourceOrientation'](){const _0x199804=_0x5577d2;return _0x37f5b2[_0x199804(0x1b0)];}};_0x4d240a['FEnum'][_0x5577d2(0x1e9)](_0x341ea5),_0x1d7a7a[_0x5577d2(0x1c8)]=_0x2f93b1;}));