@univerjs-pro/sheets-chart 1.0.0-alpha.7 → 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 (104) 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-builder/sheet-chart-builder-adapter.d.ts +3 -3
  65. package/lib/types/chart-builder/types.d.ts +2 -2
  66. package/lib/types/chart-source/source-util.d.ts +0 -20
  67. package/lib/types/commands/chart-persisted-context.d.ts +3 -0
  68. package/lib/types/commands/commands/sheets-chart-update-config.command.d.ts +17 -3
  69. package/lib/types/commands/mutations/sheets-chart-update-config.mutation.d.ts +18 -4
  70. package/lib/types/common/util.d.ts +2 -8
  71. package/lib/types/config/config.d.ts +0 -2
  72. package/lib/types/facade/index.d.ts +2 -3
  73. package/lib/types/index.d.ts +12 -5
  74. package/lib/types/locale/en-US.d.ts +54 -2
  75. package/lib/types/models/types.d.ts +1 -2
  76. package/lib/types/plugin.d.ts +0 -1
  77. package/lib/types/services/chart-model.service.d.ts +12 -14
  78. package/lib/types/services/sheet-chart-range-watcher.d.ts +5 -5
  79. package/lib/types/services/sheets-chart.service.d.ts +4 -5
  80. package/lib/umd/facade.js +1 -1
  81. package/lib/umd/index.js +1 -1
  82. package/lib/umd/locale/ar-SA.js +1 -1
  83. package/lib/umd/locale/ca-ES.js +1 -1
  84. package/lib/umd/locale/de-DE.js +1 -1
  85. package/lib/umd/locale/en-US.js +1 -1
  86. package/lib/umd/locale/es-ES.js +1 -1
  87. package/lib/umd/locale/fa-IR.js +1 -1
  88. package/lib/umd/locale/fr-FR.js +1 -1
  89. package/lib/umd/locale/id-ID.js +1 -1
  90. package/lib/umd/locale/it-IT.js +1 -1
  91. package/lib/umd/locale/ja-JP.js +1 -1
  92. package/lib/umd/locale/ko-KR.js +1 -1
  93. package/lib/umd/locale/pl-PL.js +1 -1
  94. package/lib/umd/locale/pt-BR.js +1 -1
  95. package/lib/umd/locale/ru-RU.js +1 -1
  96. package/lib/umd/locale/sk-SK.js +1 -1
  97. package/lib/umd/locale/vi-VN.js +1 -1
  98. package/lib/umd/locale/zh-CN.js +1 -1
  99. package/lib/umd/locale/zh-HK.js +1 -1
  100. package/lib/umd/locale/zh-TW.js +1 -1
  101. package/package.json +9 -9
  102. package/lib/types/chart-builder/index.d.ts +0 -10
  103. package/lib/types/facade/chart/index.d.ts +0 -2
  104. package/lib/types/models/chart-model.d.ts +0 -22
@@ -1 +1 @@
1
- const _0x489b5e=_0x565a;(function(_0x4c9b1f,_0x3a1114){const _0x399257=_0x565a,_0x976136=_0x4c9b1f();while(!![]){try{const _0x5d6971=parseInt(_0x399257(0xdb))/0x1*(-parseInt(_0x399257(0xe1))/0x2)+parseInt(_0x399257(0xe5))/0x3+-parseInt(_0x399257(0xdf))/0x4*(parseInt(_0x399257(0xd6))/0x5)+parseInt(_0x399257(0xe3))/0x6+-parseInt(_0x399257(0xd4))/0x7+parseInt(_0x399257(0xe0))/0x8*(parseInt(_0x399257(0xe7))/0x9)+parseInt(_0x399257(0xd3))/0xa;if(_0x5d6971===_0x3a1114)break;else _0x976136['push'](_0x976136['shift']());}catch(_0x41aeb8){_0x976136['push'](_0x976136['shift']());}}}(_0x4459,0xaa340));function _0x4459(){const _0x2d2741=['系列\x20{0}','1298994LQuBbh','()','2176665qAKGmw','請先添加系列開始數據可視化','9YvssZs','14908620bSPmiH','7641550NVAApz','氣泡圖至少需要2欄,X軸、Y軸。','15KKItLX','中位數','第三四分位數','第一四分位數','累積占比','3tcHFYU','最小值','桑基圖不能包含循環數據','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','1177060AkbYmf','6365576RbIuvX','371344NuRLVD'];_0x4459=function(){return _0x2d2741;};return _0x4459();}const e={'sheets-chart':{'category':'類別','series':'系列','seriesDefaultName':_0x489b5e(0xe2),'categoryDefaultName':'類別\x20{0}','blank':_0x489b5e(0xe4),'msg':{'emptyTips':_0x489b5e(0xe6),'sankeyCircularTips':_0x489b5e(0xdd)},'bubble':{'emptyTips':_0x489b5e(0xd5)},'relation':{'emptyTips':_0x489b5e(0xde)},'cloud':{'word':'','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x489b5e(0xda)},'boxplot':{'min':_0x489b5e(0xdc),'q1':_0x489b5e(0xd9),'median':_0x489b5e(0xd7),'q3':_0x489b5e(0xd8),'max':'最大值'}}};function _0x565a(_0x84464,_0x51af72){_0x84464=_0x84464-0xd3;const _0x44599f=_0x4459();let _0x565ac2=_0x44599f[_0x84464];return _0x565ac2;}export{e as default};
1
+ const _0xf30b7e=_0x392b;function _0x4cc7(){const _0x3be6d7=['儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','系列\x20{0}','此圖表類型沒有欄位使用規則。','最高價','自身值','6zCIGER','7YtXUwj','關聯值','所選數值欄位不包含數值資料。','桑基圖不能包含循環數據','累積占比','64074bhaVFY','52336JZUAUh','此圖表需要更多數值欄位。','3736272bsfXxw','第一四分位數','204087kzjcIC','第三四分位數','45kwjfig','1177134yOXHeH','146760wBdvbU','氣泡圖至少需要2欄,X軸、Y軸。','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','弦圖至少需要兩個不同節點之間的一條正權重關係。','384090qYvhZL','類別\x20{0}','最小值','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','Value','最低價','11KKYTCF','關係數','432WdXIin','Category','(空)','中位數','開盤價'];_0x4cc7=function(){return _0x3be6d7;};return _0x4cc7();}function _0x392b(_0x35c44c,_0x5c596d){_0x35c44c=_0x35c44c-0x165;const _0x4cc7f3=_0x4cc7();let _0x392bd5=_0x4cc7f3[_0x35c44c];return _0x392bd5;}(function(_0x40f40a,_0x127ef8){const _0x365983=_0x392b,_0x1a5d2b=_0x40f40a();while(!![]){try{const _0x2201c4=parseInt(_0x365983(0x179))/0x1+-parseInt(_0x365983(0x16e))/0x2*(-parseInt(_0x365983(0x174))/0x3)+-parseInt(_0x365983(0x17d))/0x4*(parseInt(_0x365983(0x17b))/0x5)+-parseInt(_0x365983(0x17c))/0x6*(-parseInt(_0x365983(0x16f))/0x7)+-parseInt(_0x365983(0x175))/0x8*(-parseInt(_0x365983(0x189))/0x9)+parseInt(_0x365983(0x181))/0xa+parseInt(_0x365983(0x187))/0xb*(-parseInt(_0x365983(0x177))/0xc);if(_0x2201c4===_0x127ef8)break;else _0x1a5d2b['push'](_0x1a5d2b['shift']());}catch(_0x5d420d){_0x1a5d2b['push'](_0x1a5d2b['shift']());}}}(_0x4cc7,0x2ac69));const e={'sheets-chart':{'seriesDefaultName':_0xf30b7e(0x16a),'categoryDefaultName':_0xf30b7e(0x182),'blank':_0xf30b7e(0x166),'msg':{'emptyTips':'請先添加系列開始數據可視化','sankeyCircularTips':_0xf30b7e(0x172)},'bubble':{'emptyTips':_0xf30b7e(0x17e)},'relation':{'emptyTips':'關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣'},'cloud':{'word':'','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0xf30b7e(0x173)},'boxplot':{'min':_0xf30b7e(0x183),'q1':_0xf30b7e(0x178),'median':_0xf30b7e(0x167),'q3':_0xf30b7e(0x17a),'max':'最大值'},'candlestick':{'series':'OHLC\x20數列','category':_0xf30b7e(0x165),'open':_0xf30b7e(0x168),'high':_0xf30b7e(0x16c),'low':_0xf30b7e(0x186),'close':'收盤價'},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':'階層欄位','value':'數值欄位','ownValue':_0xf30b7e(0x16d),'children':'子項','diagnostic':'矩形樹圖至少需要一個階層欄位和一個數值欄位。'},'sunburst':{'hierarchy':'階層','value':_0xf30b7e(0x185),'ownValue':'自身值','children':'子項','diagnostic':'旭日圖至少需要一個階層欄位和一個數值欄位。'},'gauge':{'label':'標籤','value':_0xf30b7e(0x185),'emptyDiagnostic':'儀表圖至少需要一個有限數值。','mappingDiagnostic':_0xf30b7e(0x17f),'configDiagnostic':_0xf30b7e(0x169)},'chord':{'emptyDiagnostic':_0xf30b7e(0x180),'mappingDiagnostic':_0xf30b7e(0x184),'configDiagnostic':'弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','source':'來源','target':'目標','value':_0xf30b7e(0x185),'count':_0xf30b7e(0x188),'associatedValue':_0xf30b7e(0x170)},'chartField':{'missingCategoryFields':'此圖表需要更多標籤欄位。','missingSeriesFields':_0xf30b7e(0x176),'invalidFieldIndex':'所選圖表欄位已無法使用。','invalidValueFieldType':_0xf30b7e(0x171),'invalidDataStructure':'所選欄位無法構成此圖表所需的有效資料結構。','unsupportedChartType':_0xf30b7e(0x16b)}}};export{e as default};
@@ -1 +1 @@
1
- function _0x1bca(){const _0x2136c6=['系列\x20{0}','(空)','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','2xkOitF','981369BUGzks','4281BCGOuk','4MmBBfy','桑基圖不能包含循環數據','4180578FktAcG','326024azIjgx','243IsFynG','第三四分位數','請先添加系列開始數據可視化','7sjYkgM','686240EsFoGz','29214031YFjKcW','12QtzoZw','5346060FyPTYO','類別\x20{0}'];_0x1bca=function(){return _0x2136c6;};return _0x1bca();}const _0x119cea=_0x2ad5;(function(_0x248479,_0x5e480b){const _0x3d73aa=_0x2ad5,_0x2d764b=_0x248479();while(!![]){try{const _0x2b4b76=-parseInt(_0x3d73aa(0x104))/0x1*(parseInt(_0x3d73aa(0x103))/0x2)+-parseInt(_0x3d73aa(0x105))/0x3*(parseInt(_0x3d73aa(0x106))/0x4)+-parseInt(_0x3d73aa(0xfb))/0x5+parseInt(_0x3d73aa(0x108))/0x6*(parseInt(_0x3d73aa(0x10d))/0x7)+parseInt(_0x3d73aa(0x109))/0x8*(-parseInt(_0x3d73aa(0x10a))/0x9)+-parseInt(_0x3d73aa(0xfe))/0xa+parseInt(_0x3d73aa(0xfc))/0xb*(parseInt(_0x3d73aa(0xfd))/0xc);if(_0x2b4b76===_0x5e480b)break;else _0x2d764b['push'](_0x2d764b['shift']());}catch(_0x4d6fa8){_0x2d764b['push'](_0x2d764b['shift']());}}}(_0x1bca,0x91e63));const e={'sheets-chart':{'category':'類別','series':'系列','seriesDefaultName':_0x119cea(0x100),'categoryDefaultName':_0x119cea(0xff),'blank':_0x119cea(0x101),'msg':{'emptyTips':_0x119cea(0x10c),'sankeyCircularTips':_0x119cea(0x107)},'bubble':{'emptyTips':'氣泡圖至少需要2欄,X軸、Y軸。'},'relation':{'emptyTips':_0x119cea(0x102)},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':'累積占比'},'boxplot':{'min':'最小值','q1':'第一四分位數','median':'中位數','q3':_0x119cea(0x10b),'max':'最大值'}}};function _0x2ad5(_0xd06636,_0x442ad2){_0xd06636=_0xd06636-0xfb;const _0x1bca6a=_0x1bca();let _0x2ad569=_0x1bca6a[_0xd06636];return _0x2ad569;}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};
@@ -1,4 +1,4 @@
1
- import type { ChartPendingConfig, IChartBuilderAdapter, IChartDescription, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IResolvedChartData, IUniverDataSet } from '@univerjs-pro/engine-chart';
1
+ import type { ChartPendingConfig, IChartBuilderAdapter, IChartData, IChartDescription, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IUniverDataSet } from '@univerjs-pro/engine-chart';
2
2
  import type { Injector } from '@univerjs/core';
3
3
  import type { ISheetChartDescriptionExtension } from './sheet-chart-description';
4
4
  import type { ChartSourceSpec, IChartLayoutPatch } from './types';
@@ -10,7 +10,7 @@ export interface ISheetChartHostPatch {
10
10
  /** Persistence seam required by a Sheet chart builder. */
11
11
  export interface ISheetChartBuilderAdapter extends IChartBuilderAdapter<ISheetChartDescriptionExtension> {
12
12
  commitHost(patch: ISheetChartHostPatch): void;
13
- resolveData(config: ChartPendingConfig, source?: ChartSourceSpec): IResolvedChartData;
13
+ resolveData(config: ChartPendingConfig, source?: ChartSourceSpec): IChartData;
14
14
  resolveSource(source: ChartSourceSpec): {
15
15
  dataSet: IUniverDataSet;
16
16
  isRowDirection: boolean;
@@ -30,7 +30,7 @@ export declare class SheetChartBuilderAdapter implements ISheetChartBuilderAdapt
30
30
  constructor(_context: ISheetChartBuilderAdapterContext);
31
31
  describe(config?: ChartPendingConfig, dataSet?: IUniverDataSet): IChartDescription & ISheetChartDescriptionExtension;
32
32
  commit(configChange: ChartPendingConfig): void;
33
- resolveData(configChange: ChartPendingConfig, source?: ChartSourceSpec): IResolvedChartData;
33
+ resolveData(configChange: ChartPendingConfig, source?: ChartSourceSpec): IChartData;
34
34
  resolveSource(source: ChartSourceSpec): {
35
35
  dataSet: IUniverDataSet;
36
36
  isRowDirection: boolean;
@@ -1,4 +1,4 @@
1
- import type { ChartTypeString, IChartCreateConfig, IEchartTheme, IChartDescription as IEngineChartDescription } from '@univerjs-pro/engine-chart';
1
+ import type { ChartTypeString, IChartCreateConfig, IChartDescription as IEngineChartDescription } from '@univerjs-pro/engine-chart';
2
2
  import type { IRange } from '@univerjs/core';
3
3
  export declare enum ChartSourceOrientation {
4
4
  Auto = "auto",
@@ -156,4 +156,4 @@ export interface IChartDescription extends IEngineChartDescription {
156
156
  source: ChartSourceDescription | null;
157
157
  layout?: IChartLayoutDescription;
158
158
  }
159
- export type { IEchartTheme };
159
+ export {};
@@ -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,14 +1,28 @@
1
- import type { 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';
4
+ /** Switches supplied style, context, and aggregation groups from merge to replacement semantics. */
3
5
  export declare const ReplaceSheetChartConfig: unique symbol;
6
+ type SheetChartStylePatch = Omit<ChartStyle, 'candlestick' | 'sunburst' | 'gauge' | 'chord'> & {
7
+ candlestick?: ChartPendingConfig['candlestick'];
8
+ sunburst?: ChartPendingConfig['sunburst'];
9
+ gauge?: ChartPendingConfig['gauge'];
10
+ chord?: ChartPendingConfig['chord'];
11
+ };
4
12
  export interface IChartUpdateConfigCommandParams {
5
13
  unitId: string;
6
14
  chartModelId: string;
7
15
  orient?: DataOrientation;
8
16
  chartType?: ChartTypeBits;
9
17
  dataAggregation?: Partial<IChartDataAggregation>;
10
- style?: ChartStyle;
11
- context?: IChartContext;
18
+ style?: SheetChartStylePatch;
19
+ context?: IChartPersistedContext;
12
20
  [ReplaceSheetChartConfig]?: true;
13
21
  }
22
+ /**
23
+ * Updates supplied style, context, and aggregation groups by merging them with the current model.
24
+ * With `ReplaceSheetChartConfig`, supplied groups replace their complete current values, omitted
25
+ * groups remain unchanged, and a supplied context must be canonical.
26
+ */
14
27
  export declare const ChartUpdateConfigCommand: ICommand<IChartUpdateConfigCommandParams>;
28
+ export {};
@@ -1,12 +1,26 @@
1
- import type { ChartStyle, ChartTypeBits, 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 type { IChartPersistedContext } from '../chart-persisted-context';
4
+ /**
5
+ * Wire payload shared by incremental and replacement mutations.
6
+ * Incremental mutations forward nested `null` values to the model; replacement callers should
7
+ * provide complete values for every supplied config group.
8
+ */
3
9
  export interface IChartUpdateConfigMutationParams {
4
10
  unitId: string;
5
11
  chartModelId: string;
6
12
  chartType?: ChartTypeBits;
7
- dataAggregation?: Partial<IChartDataAggregation>;
8
- style?: ChartStyle;
9
- context?: IChartContext;
13
+ dataAggregation?: DeepNullish<IChartDataAggregation>;
14
+ style?: DeepNullish<ChartStyle>;
15
+ context?: DeepNullish<IChartPersistedContext>;
10
16
  }
17
+ /**
18
+ * Incrementally updates the model by merging each supplied config group.
19
+ * Unspecified fields are preserved, and nested `null` values are forwarded to the model unchanged.
20
+ */
11
21
  export declare const ChartUpdateConfigMutation: IMutation<IChartUpdateConfigMutationParams>;
22
+ /**
23
+ * Replaces each supplied config group while leaving omitted groups unchanged.
24
+ * Supplied context must be complete, canonical, and free of Pending-only `null` deletion markers.
25
+ */
12
26
  export declare const ChartReplaceConfigMutation: IMutation<IChartUpdateConfigMutationParams>;
@@ -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[];
@@ -10,12 +11,5 @@ export declare const setProperty: (data: Record<string, any>, propertyPath: stri
10
11
  */
11
12
  export declare const setGraphicToSpec: (spec: Record<string, any>, graphicElements: unknown[]) => void;
12
13
  export declare const translateAngleToRadian: (angle: number) => number;
13
- interface ISize {
14
- width: number;
15
- height: number;
16
- }
17
- export declare const ChartTextMeasureCache: Map<string, ISize>;
18
- export declare const calcPosition: (text: string, font: string) => ISize;
19
- export declare const clearChartTextMeasureCache: () => void;
20
14
  export declare function getAllowedChartTypes(accessor: IAccessor): string[];
21
- export {};
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,5 +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';
5
- export { ChartSourceOrientation } from '@univerjs-pro/sheets-chart';
3
+ export type { FSheetAnyChartBuilder, FSheetChartBuilder, FSheetChartBuilderOf, ISheetChartMethods } from './chart/f-sheet-chart-builder';
4
+ export { FSheetCharts } from './chart/f-sheet-charts';
@@ -1,6 +1,14 @@
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';
3
- export { ChartUpdateConfigCommand } from './commands/commands/sheets-chart-update-config.command';
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';
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';
6
14
  export type { IChartUpdateSourceCommandParams } from './commands/commands/sheets-chart-update-source.command';
@@ -15,8 +23,7 @@ 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
- export type { IChartSourceMultiRangeItem, IChartSourceRangeItem, ISheetChartSourceSingleRange, ISheetChartSourceSnapshot, ISheetChartDataSource, } from './models/types';
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';
22
29
  export { SheetsChartService } from './services/sheets-chart.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;
@@ -34,6 +32,60 @@ declare const locale: {
34
32
  q3: string;
35
33
  max: string;
36
34
  };
35
+ candlestick: {
36
+ series: string;
37
+ category: string;
38
+ open: string;
39
+ high: string;
40
+ low: string;
41
+ close: string;
42
+ };
43
+ histogram: {
44
+ frequency: string;
45
+ };
46
+ pie: {
47
+ aggregateOther: string;
48
+ aggregateMembers: string;
49
+ };
50
+ treemap: {
51
+ hierarchy: string;
52
+ value: string;
53
+ ownValue: string;
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;
88
+ };
37
89
  };
38
90
  };
39
91
  export default locale;
@@ -1,7 +1,6 @@
1
- import type { ChartTypeBits, DatasetComponentOption, IChartConfig, IChartData, IChartDataSource, IUniverDataSet, OptionDataValue } from '@univerjs-pro/engine-chart';
1
+ import type { ChartTypeBits, IChartConfig, IChartData, IChartDataSource, IUniverDataSet, OptionDataValue } from '@univerjs-pro/engine-chart';
2
2
  import type { IRange } from '@univerjs/core';
3
3
  import type { Observable } from 'rxjs';
4
- export type DatasetOption = DatasetComponentOption;
5
4
  export interface IDimensionDefinition {
6
5
  type?: 'number' | 'ordinal' | 'time' | 'float' | 'int';
7
6
  name?: string;
@@ -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(_0x48b1c9,_0x1626ca){const _0x19121d=_0x1d41,_0x6bc947=_0x48b1c9();while(!![]){try{const _0xbd680a=-parseInt(_0x19121d(0x204))/0x1+parseInt(_0x19121d(0x240))/0x2+-parseInt(_0x19121d(0x236))/0x3*(parseInt(_0x19121d(0x22d))/0x4)+-parseInt(_0x19121d(0x1e2))/0x5+-parseInt(_0x19121d(0x230))/0x6*(-parseInt(_0x19121d(0x216))/0x7)+-parseInt(_0x19121d(0x231))/0x8*(-parseInt(_0x19121d(0x208))/0x9)+parseInt(_0x19121d(0x1d2))/0xa*(parseInt(_0x19121d(0x227))/0xb);if(_0xbd680a===_0x1626ca)break;else _0x6bc947['push'](_0x6bc947['shift']());}catch(_0x4e1df0){_0x6bc947['push'](_0x6bc947['shift']());}}}(_0x134d,0x34419),function(_0x363724,_0x36a4b0){const _0x15296f=_0x1d41;typeof exports=='object'&&typeof module<'u'?_0x36a4b0(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==_0x15296f(0x1dd)&&define['amd']?define(['exports','@univerjs/sheets/facade',_0x15296f(0x1e4),_0x15296f(0x1e3),'@univerjs-pro/sheets-chart',_0x15296f(0x1f1),'@univerjs/sheets-drawing',_0x15296f(0x1f3)],_0x36a4b0):(_0x363724=typeof globalThis<'u'?globalThis:_0x363724||self,_0x36a4b0(_0x363724['UniverProSheetsChartFacade']={},_0x363724[_0x15296f(0x222)],_0x363724['UniverProEngineChart'],_0x363724[_0x15296f(0x209)],_0x363724[_0x15296f(0x1c4)],_0x363724[_0x15296f(0x1fc)],_0x363724[_0x15296f(0x1fe)],_0x363724[_0x15296f(0x1fd)]));}(this,function(_0x142f41,_0x102176,_0x1dfadb,_0x235fbe,_0xea7f11,_0x2a48a2,_0x4a87af,_0x1a51d7){const _0x5a31d1=_0x1d41;Object[_0x5a31d1(0x1d9)](_0x142f41,Symbol[_0x5a31d1(0x1ec)],{'value':_0x5a31d1(0x239)});function _0x81915c(_0x1a7b94){const _0x4338a7=_0x5a31d1;return class extends _0x1a7b94{get[_0x4338a7(0x1c8)](){const _0x4f29c8=_0x4338a7;return this[_0x4f29c8(0x1c1)];}[_0x4338a7(0x229)](_0x2b525b){const _0x4f2665=_0x4338a7;return this[_0x4f2665(0x1c8)][_0x4f2665(0x229)](_0x2b525b),this;}[_0x4338a7(0x21d)](){const _0x9d9c4f=_0x4338a7;return this[_0x9d9c4f(0x1c8)][_0x9d9c4f(0x21d)]();}[_0x4338a7(0x232)](_0x20512c){return this['_sheetBuilder']['setLayout']({'anchor':_0x20512c}),this;}[_0x4338a7(0x1ce)](_0x4415b2,_0x3d4abc){const _0x3873fb=_0x4338a7;return this[_0x3873fb(0x1c8)][_0x3873fb(0x1dc)]({'position':{'x':_0x4415b2,'y':_0x3d4abc}}),this;}['setSize'](_0x5d7161,_0x4eb235){const _0x4568e4=_0x4338a7;return this[_0x4568e4(0x1c8)][_0x4568e4(0x1dc)]({'size':{'width':_0x5d7161,'height':_0x4eb235}}),this;}};}let _0x538cfe=new _0x235fbe[(_0x5a31d1(0x20c))](_0x1016f2=>_0x81915c(_0x1016f2));var _0x26bb2c=class{constructor(_0x51bd38,_0x3d832d,_0x21cdf1,_0x2e8fa0){const _0x3b701f=_0x5a31d1;this[_0x3b701f(0x226)]=_0x51bd38,this[_0x3b701f(0x219)]=_0x3d832d,this[_0x3b701f(0x225)]=_0x21cdf1,this[_0x3b701f(0x211)]=_0x2e8fa0;}[_0x5a31d1(0x224)](){const _0x4af43f=_0x5a31d1;return this[_0x4af43f(0x225)];}[_0x5a31d1(0x1f0)](){const _0x2586af=_0x5a31d1;return this[_0x2586af(0x225)];}[_0x5a31d1(0x205)](){const _0x112563=_0x5a31d1;var _0x11f42a;return(_0x11f42a=this[_0x112563(0x211)][_0x112563(0x1e5)](_0xea7f11[_0x112563(0x21c)])[_0x112563(0x233)](this['chartId']))==null?void 0x0:_0x11f42a[_0x112563(0x20b)][_0x112563(0x1eb)]();}[_0x5a31d1(0x1d6)](_0x2635a2){const _0x319f8f=_0x5a31d1;return this[_0x319f8f(0x211)][_0x319f8f(0x1e5)](_0x2a48a2['ICommandService'])[_0x319f8f(0x238)](_0xea7f11[_0x319f8f(0x1fb)]['id'],{'unitId':this[_0x319f8f(0x226)],'chartModelId':this[_0x319f8f(0x225)],'range':_0x2635a2});}['getSeriesData'](){const _0x2867ea=_0x5a31d1;var _0x531daf;return(_0x531daf=this['_injector'][_0x2867ea(0x1e5)](_0xea7f11[_0x2867ea(0x21c)])[_0x2867ea(0x233)](this[_0x2867ea(0x225)]))==null||(_0x531daf=_0x531daf[_0x2867ea(0x1c9)])==null?void 0x0:_0x531daf['series'];}['getCategoryData'](){const _0x34e968=_0x5a31d1;var _0x267b18;return(_0x267b18=this[_0x34e968(0x211)][_0x34e968(0x1e5)](_0xea7f11[_0x34e968(0x21c)])[_0x34e968(0x233)](this['chartId']))==null||(_0x267b18=_0x267b18['config'])==null?void 0x0:_0x267b18[_0x34e968(0x218)];}async[_0x5a31d1(0x1e8)](_0x2114e8){const _0x145227=_0x5a31d1;var _0x116f5b,_0x2553ca,_0x1bc242,_0x23dbce;let _0x5e2a51=this[_0x145227(0x211)][_0x145227(0x1e5)](_0xea7f11[_0x145227(0x21c)])[_0x145227(0x233)](this['chartId']);if(!_0x5e2a51||!this[_0x145227(0x211)][_0x145227(0x234)](_0x4a87af[_0x145227(0x1d5)]))return null;let _0x10c9d8=this['_injector'][_0x145227(0x1e5)](_0x4a87af[_0x145227(0x1d5)])[_0x145227(0x1ca)]({'unitId':this[_0x145227(0x226)],'subUnitId':this[_0x145227(0x219)],'drawingId':this[_0x145227(0x225)]}),_0x1db4aa=(0x0,_0x1dfadb[_0x145227(0x217)])({'runtime':{'chartId':this[_0x145227(0x225)],'model':_0x5e2a51},'direction':this[_0x145227(0x211)]['get'](_0x2a48a2['LocaleService'])[_0x145227(0x200)](),'width':(_0x116f5b=_0x10c9d8==null||(_0x2553ca=_0x10c9d8[_0x145227(0x1fa)])==null?void 0x0:_0x2553ca['width'])==null?0x0:_0x116f5b,'height':(_0x1bc242=_0x10c9d8==null||(_0x23dbce=_0x10c9d8[_0x145227(0x1fa)])==null?void 0x0:_0x23dbce['height'])==null?0x0:_0x1bc242});return _0x1db4aa?this[_0x145227(0x211)][_0x145227(0x1e5)](_0x1dfadb[_0x145227(0x20a)])[_0x145227(0x1e8)](_0x1db4aa,_0x2114e8):null;}[_0x5a31d1(0x1d8)](){const _0xbe3ba9=_0x5a31d1;return this[_0xbe3ba9(0x211)][_0xbe3ba9(0x1e5)](_0x2a48a2[_0xbe3ba9(0x215)])[_0xbe3ba9(0x238)](_0x4a87af[_0xbe3ba9(0x1ee)]['id'],{'unitId':this[_0xbe3ba9(0x226)],'drawings':[{'unitId':this[_0xbe3ba9(0x226)],'subUnitId':this[_0xbe3ba9(0x219)],'drawingId':this[_0xbe3ba9(0x225)],'drawingType':_0x2a48a2[_0xbe3ba9(0x1c6)][_0xbe3ba9(0x1e7)]}]});}},_0x19c970=class{constructor(_0x2a655c){this['_worksheet']=_0x2a655c;}async[_0x5a31d1(0x213)](_0x29abb5){const _0x5ecbc5=_0x5a31d1;var _0x32f68b,_0x597ba3,_0x55a581,_0x289194,_0x157499;let _0x439301=this[_0x5ecbc5(0x1d7)](),_0x526f93=[],_0x59ebf5=(0x0,_0xea7f11['resolveSourceSpec'])(_0x29abb5['source'],_0x439301,_0x526f93);if(!_0x59ebf5||_0x526f93[_0x5ecbc5(0x21a)](_0x2f1d64=>_0x2f1d64['severity']===_0xea7f11[_0x5ecbc5(0x201)][_0x5ecbc5(0x1e1)]))throw Error(_0x526f93[_0x5ecbc5(0x235)](_0x2a92c9=>_0x2a92c9['message'])[_0x5ecbc5(0x1d1)](';\x20')||_0x5ecbc5(0x1f4));let _0xdbcdb4=(0x0,_0x2a48a2[_0x5ecbc5(0x21f)])(),_0xf3c1dc=(0x0,_0x1dfadb['toChartModelConfig'])(_0x29abb5,{'series':(0x0,_0xea7f11[_0x5ecbc5(0x1cf)])(_0x59ebf5,_0x439301,(_0x32f68b=(_0x597ba3=_0x29abb5[_0x5ecbc5(0x1c5)])==null?void 0x0:_0x597ba3['categoryIndex'])==null?0x0:_0x32f68b)}),_0x1096c5=(0x0,_0xea7f11[_0x5ecbc5(0x1f7)])({'unitId':_0x439301[_0x5ecbc5(0x226)],'subUnitId':_0x439301[_0x5ecbc5(0x219)],'injector':this[_0x5ecbc5(0x23b)][_0x5ecbc5(0x1ea)]()},_0x29abb5,_0x526f93),_0x3929b4={'unitId':_0x439301[_0x5ecbc5(0x226)],'subUnitId':_0x439301[_0x5ecbc5(0x219)],'chartId':_0xdbcdb4,'chartType':(0x0,_0x1dfadb[_0x5ecbc5(0x202)])(_0x29abb5['type']),'source':_0x59ebf5['kind']===_0xea7f11[_0x5ecbc5(0x210)][_0x5ecbc5(0x1df)]?_0x59ebf5[_0x5ecbc5(0x1ed)]:_0x59ebf5['ranges'],'position':_0x1096c5,'width':(_0x55a581=_0x29abb5[_0x5ecbc5(0x1f2)])==null?void 0x0:_0x55a581[_0x5ecbc5(0x22b)],'height':(_0x289194=_0x29abb5['size'])==null?void 0x0:_0x289194[_0x5ecbc5(0x22a)],'theme':(_0x157499=_0x29abb5['theme'])==null?void 0x0:_0x157499,'config':{'unitId':_0x439301['unitId'],'chartModelId':_0xdbcdb4,'style':_0xf3c1dc[_0x5ecbc5(0x1f5)],'context':_0xf3c1dc[_0x5ecbc5(0x20f)],'dataAggregation':_0xf3c1dc[_0x5ecbc5(0x1db)]}};if(!await this['_worksheet'][_0x5ecbc5(0x1ea)]()[_0x5ecbc5(0x1e5)](_0x2a48a2[_0x5ecbc5(0x215)])[_0x5ecbc5(0x238)](_0xea7f11[_0x5ecbc5(0x1e9)]['id'],_0x3929b4))throw Error(_0x5ecbc5(0x237));return new _0x26bb2c(_0x439301[_0x5ecbc5(0x226)],_0x439301[_0x5ecbc5(0x219)],_0xdbcdb4,this['_worksheet']['getInject']());}['get'](_0x528c97){const _0x44fa5b=_0x5a31d1;let {unitId:_0x383b27,subUnitId:_0x49c194}=this[_0x44fa5b(0x1d7)](),_0x30aec6=this[_0x44fa5b(0x23b)][_0x44fa5b(0x1ea)]()[_0x44fa5b(0x1e5)](_0xea7f11[_0x44fa5b(0x21c)]);return _0x30aec6[_0x44fa5b(0x233)](_0x528c97)&&_0x30aec6[_0x44fa5b(0x1c0)](_0x383b27,_0x528c97)===_0x49c194?new _0x26bb2c(_0x383b27,_0x49c194,_0x528c97,this['_worksheet']['getInject']()):null;}[_0x5a31d1(0x1da)](){const _0x2afdd6=_0x5a31d1;let {unitId:_0x2eb07d,subUnitId:_0x3399be}=this[_0x2afdd6(0x1d7)]();return this[_0x2afdd6(0x23b)]['getInject']()['get'](_0xea7f11[_0x2afdd6(0x21c)])[_0x2afdd6(0x21b)](_0x2eb07d,_0x3399be)['filter'](Boolean)[_0x2afdd6(0x235)](_0x3a7914=>new _0x26bb2c(_0x2eb07d,_0x3399be,_0x3a7914['id'],this['_worksheet'][_0x2afdd6(0x1ea)]()));}['remove'](_0x39b3ee){const _0x450895=_0x5a31d1;let _0x371059=typeof _0x39b3ee==_0x450895(0x23c)?this['get'](_0x39b3ee):_0x39b3ee;return _0x371059?this[_0x450895(0x23b)][_0x450895(0x1ea)]()['get'](_0x2a48a2[_0x450895(0x215)])['executeCommand'](_0x4a87af['RemoveSheetDrawingCommand']['id'],{'unitId':_0x371059[_0x450895(0x226)],'drawings':[{'unitId':_0x371059[_0x450895(0x226)],'subUnitId':_0x371059[_0x450895(0x219)],'drawingId':_0x371059[_0x450895(0x225)],'drawingType':_0x2a48a2[_0x450895(0x1c6)][_0x450895(0x1e7)]}]}):Promise[_0x450895(0x242)](!0x1);}[_0x5a31d1(0x1d7)](){const _0x43d956=_0x5a31d1;let _0x21a3ac=this[_0x43d956(0x23b)][_0x43d956(0x23d)](),_0x5671ec=this['_worksheet'][_0x43d956(0x1ea)]()[_0x43d956(0x1e5)](_0xea7f11[_0x43d956(0x21c)]);return{'unitId':_0x21a3ac[_0x43d956(0x22c)](),'subUnitId':this[_0x43d956(0x23b)][_0x43d956(0x23a)](),'workbook':_0x21a3ac,'resolveAutoIsRowDirection':_0x4b81ed=>_0x5671ec[_0x43d956(0x214)](_0x4b81ed)[_0x43d956(0x23e)]===_0x1dfadb[_0x43d956(0x221)][_0x43d956(0x1f8)]};}};function _0x1f5611(_0x1c2991){'@babel/helpers - typeof';const _0x56746b=_0x5a31d1;return _0x1f5611=typeof Symbol=='function'&&typeof Symbol[_0x56746b(0x1d4)]==_0x56746b(0x206)?function(_0x58f7cf){return typeof _0x58f7cf;}:function(_0x308443){const _0x2c1c23=_0x56746b;return _0x308443&&typeof Symbol=='function'&&_0x308443[_0x2c1c23(0x1d0)]===Symbol&&_0x308443!==Symbol[_0x2c1c23(0x1de)]?_0x2c1c23(0x206):typeof _0x308443;},_0x1f5611(_0x1c2991);}function _0x183fb9(_0x23f0ac,_0x761101){const _0x17df2f=_0x5a31d1;if(_0x1f5611(_0x23f0ac)!=_0x17df2f(0x23f)||!_0x23f0ac)return _0x23f0ac;var _0x224812=_0x23f0ac[Symbol[_0x17df2f(0x212)]];if(_0x224812!==void 0x0){var _0x1e951b=_0x224812['call'](_0x23f0ac,_0x761101||_0x17df2f(0x1c2));if(_0x1f5611(_0x1e951b)!=_0x17df2f(0x23f))return _0x1e951b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x761101===_0x17df2f(0x23c)?String:Number)(_0x23f0ac);}function _0x565b52(_0x39fcee){const _0x1aa90a=_0x5a31d1;var _0x31124b=_0x183fb9(_0x39fcee,'string');return _0x1f5611(_0x31124b)==_0x1aa90a(0x206)?_0x31124b:_0x31124b+'';}function _0x5c2443(_0x38a7ac,_0x503780,_0x5093bf){return(_0x503780=_0x565b52(_0x503780))in _0x38a7ac?Object['defineProperty'](_0x38a7ac,_0x503780,{'value':_0x5093bf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x38a7ac[_0x503780]=_0x5093bf,_0x38a7ac;}var _0x5b7059=class extends _0x1dfadb['DetachedChartBuilderAdapter']{constructor(_0x2e4b0e,_0x4c2c4a){const _0x164357=_0x5a31d1;super(_0x2e4b0e,_0x164357(0x1cd)),this[_0x164357(0x203)]=_0x4c2c4a;}[_0x5a31d1(0x1e6)](_0x5f4ff2){const _0x35b12a=_0x5a31d1;return this[_0x35b12a(0x1cc)]();}[_0x5a31d1(0x1e0)](_0x2ca21f){return this['_resolveSource'](_0x2ca21f);}},_0x1cfdd2=class extends _0x235fbe[_0x5a31d1(0x20e)]{constructor(_0x4fe839){const _0x5339d7=_0x5a31d1;super(),this[_0x5339d7(0x23b)]=_0x4fe839,_0x5c2443(this,_0x5339d7(0x207),void 0x0),this['_commands']=new _0x19c970(_0x4fe839);}[_0x5a31d1(0x213)](){const _0x1c2dbc=_0x5a31d1;let _0x46a247=(0x0,_0x2a48a2['generateRandomId'])(),_0x418a50={'id':_0x46a247,'type':_0x1dfadb['DEFAULT_CHART_TYPE'],'series':{}},_0x14596f=new _0xea7f11[(_0x1c2dbc(0x22e))](_0x46a247,_0x418a50,new _0x5b7059(_0x418a50,_0x41bdf1=>new _0xea7f11[(_0x1c2dbc(0x223))]({'unitId':this[_0x1c2dbc(0x23b)]['getWorkbook']()[_0x1c2dbc(0x22c)](),'subUnitId':this[_0x1c2dbc(0x23b)][_0x1c2dbc(0x23a)](),'chartId':_0x46a247,'injector':this[_0x1c2dbc(0x23b)][_0x1c2dbc(0x1ea)]()})[_0x1c2dbc(0x1e0)](_0x41bdf1)));return _0x538cfe[_0x1c2dbc(0x213)](_0x14596f,_0x235fbe[_0x1c2dbc(0x1ef)]);}async[_0x5a31d1(0x1ff)](_0x4a67f0){const _0x51580a=_0x5a31d1;let _0x499f00=_0x4a67f0[_0x51580a(0x1cb)]();if(!_0x499f00[_0x51580a(0x1d3)])throw Error(_0x51580a(0x1c7));let _0x2ad63d=(0x0,_0xea7f11['toSheetChartCreateSpec'])(_0x499f00,(0x0,_0x235fbe[_0x51580a(0x21e)])(_0x4a67f0)),_0x201b0d=await this[_0x51580a(0x207)][_0x51580a(0x213)](_0x2ad63d);return this['_wrap'](_0x201b0d);}[_0x5a31d1(0x1e5)](_0x1de89c){const _0x252338=_0x5a31d1;let _0x1ad13f=this[_0x252338(0x207)][_0x252338(0x1e5)](_0x1de89c);return _0x1ad13f?this[_0x252338(0x228)](_0x1ad13f):null;}[_0x5a31d1(0x1da)](){const _0x4fea65=_0x5a31d1;return this[_0x4fea65(0x207)][_0x4fea65(0x1da)]()[_0x4fea65(0x235)](_0x1c6c9d=>this[_0x4fea65(0x228)](_0x1c6c9d));}[_0x5a31d1(0x1d8)](_0x30d942){const _0x2eb8be=_0x5a31d1;return this[_0x2eb8be(0x207)][_0x2eb8be(0x1d8)](typeof _0x30d942==_0x2eb8be(0x23c)?_0x30d942:_0x30d942['getId']());}['registerTheme'](_0x47f214,_0x21702c){const _0x1670c9=_0x5a31d1;this[_0x1670c9(0x23b)][_0x1670c9(0x1ea)]()[_0x1670c9(0x1e5)](_0x1dfadb['ChartThemeService'])[_0x1670c9(0x22f)](_0x47f214,_0x21702c);}[_0x5a31d1(0x228)](_0x46c3b5){const _0x249444=_0x5a31d1;let _0x450754=new _0xea7f11['SheetChartBuilderAdapter']({'unitId':_0x46c3b5[_0x249444(0x226)],'subUnitId':_0x46c3b5[_0x249444(0x219)],'chartId':_0x46c3b5['chartId'],'injector':this[_0x249444(0x23b)][_0x249444(0x1ea)]()}),_0x59664d=_0x450754[_0x249444(0x1cb)](),_0x299ea3=new _0xea7f11[(_0x249444(0x22e))](_0x46c3b5[_0x249444(0x1f0)](),_0x59664d,_0x450754),_0x46aa25=(0x0,_0x235fbe[_0x249444(0x220)])(_0x59664d[_0x249444(0x1f9)]);return _0x538cfe[_0x249444(0x213)](_0x299ea3,_0x46aa25);}},_0x5e8512=class extends _0x102176['FWorksheet']{get[_0x5a31d1(0x20d)](){return new _0x1cfdd2(this);}};_0x102176['FWorksheet'][_0x5a31d1(0x1c3)](_0x5e8512);var _0x4f2f64=class extends _0x1a51d7[_0x5a31d1(0x1bf)]{get['ChartSourceOrientation'](){const _0x3d4778=_0x5a31d1;return _0xea7f11[_0x3d4778(0x1f6)];}};_0x1a51d7[_0x5a31d1(0x1bf)]['extend'](_0x4f2f64),Object[_0x5a31d1(0x1d9)](_0x142f41,_0x5a31d1(0x1f6),{'enumerable':!0x0,'get':function(){return _0xea7f11['ChartSourceOrientation'];}}),_0x142f41[_0x5a31d1(0x241)]=_0x1cfdd2;}));function _0x1d41(_0x307212,_0x1dcab7){_0x307212=_0x307212-0x1bf;const _0x134de5=_0x134d();let _0x1d412e=_0x134de5[_0x307212];return _0x1d412e;}function _0x134d(){const _0x4c3652=['ISheetDrawingService','updateRange','_sourceContext','remove','defineProperty','list','dataAggregation','setLayout','function','prototype','Range','resolveSource','Error','964115yohAJs','@univerjs-pro/engine-chart/facade','@univerjs-pro/engine-chart','get','commitHost','DRAWING_CHART','exportImage','InsertChartCommand','getInject','getRangeInfo','toStringTag','rangeInfo','RemoveSheetDrawingCommand','FChartBuilderBase','getId','@univerjs/core','size','@univerjs/core/facade','Invalid\x20Sheet\x20chart\x20source.','style','ChartSourceOrientation','resolveInitialChartPosition','Row','type','transform','ChartUpdateSourceCommand','UniverCore','UniverCoreFacade','UniverSheetsDrawing','insert','getDirection','ChartDiagnosticSeverity','chartTypeToBits','_resolveSource','156766rNeTUI','getRange','symbol','_commands','9JjbdKl','UniverProEngineChartFacade','IChartRenderModelManagerService','dataSource','HostBuilderComposer','charts','FChartsBase','context','ChartSourceKind','_injector','toPrimitive','create','getChartSuggestion','ICommandService','334999uvavzF','resolveChartRenderModelImageExportInput','category','subUnitId','some','getUnitChartModels','SheetsChartService','getSource','getChartBuilderPendingConfig','generateRandomId','getChartBuilderConstructor','DataOrientation','UniverSheetsFacade','SheetChartBuilderAdapter','getChartId','chartId','unitId','65373mfAfXU','_wrap','setSource','height','width','getUnitId','64aNKddQ','SheetChartBuilder','registerTheme','30jdwuAC','979256BEdEtz','setPosition','getChartModel','has','map','76344wQBtua','Failed\x20to\x20create\x20Sheet\x20chart.','executeCommand','Module','getSheetId','_worksheet','string','getWorkbook','orient','object','136586TymOEt','FSheetCharts','resolve','FEnum','getSubUnitId','_builder','default','extend','UniverProSheetsChart','mapping','DrawingTypeEnum','Sheet\x20chart\x20source\x20is\x20required\x20before\x20insert().','_sheetBuilder','config','getDrawingByParam','describe','rejectCommit','Insert\x20the\x20Sheet\x20chart\x20before\x20calling\x20commit().','setAbsolutePosition','resolveSourceSeries','constructor','join','910KGiVNC','source','iterator'];_0x134d=function(){return _0x4c3652;};return _0x134d();}
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;}));