@univerjs-pro/sheets-chart 1.0.0-beta.0 → 1.0.0-beta.1

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 (102) 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 → sheet-chart-config-adapter.d.ts} +17 -8
  65. package/lib/types/chart-builder/types.d.ts +5 -1
  66. package/lib/types/chart-source/chart-source.d.ts +2 -0
  67. package/lib/types/chart-source/source-util.d.ts +5 -1
  68. package/lib/types/config/config.d.ts +2 -0
  69. package/lib/types/facade/f-enum.d.ts +27 -0
  70. package/lib/types/facade/f-worksheet.d.ts +134 -0
  71. package/lib/types/facade/index.d.ts +3 -3
  72. package/lib/types/index.d.ts +3 -5
  73. package/lib/types/services/chart-model.service.d.ts +1 -0
  74. package/lib/types/services/sheets-chart.service.d.ts +3 -0
  75. package/lib/umd/facade.js +1 -1
  76. package/lib/umd/index.js +1 -1
  77. package/lib/umd/locale/ar-SA.js +1 -1
  78. package/lib/umd/locale/ca-ES.js +1 -1
  79. package/lib/umd/locale/de-DE.js +1 -1
  80. package/lib/umd/locale/en-US.js +1 -1
  81. package/lib/umd/locale/es-ES.js +1 -1
  82. package/lib/umd/locale/fa-IR.js +1 -1
  83. package/lib/umd/locale/fr-FR.js +1 -1
  84. package/lib/umd/locale/id-ID.js +1 -1
  85. package/lib/umd/locale/it-IT.js +1 -1
  86. package/lib/umd/locale/ja-JP.js +1 -1
  87. package/lib/umd/locale/ko-KR.js +1 -1
  88. package/lib/umd/locale/pl-PL.js +1 -1
  89. package/lib/umd/locale/pt-BR.js +1 -1
  90. package/lib/umd/locale/ru-RU.js +1 -1
  91. package/lib/umd/locale/sk-SK.js +1 -1
  92. package/lib/umd/locale/vi-VN.js +1 -1
  93. package/lib/umd/locale/zh-CN.js +1 -1
  94. package/lib/umd/locale/zh-HK.js +1 -1
  95. package/lib/umd/locale/zh-TW.js +1 -1
  96. package/package.json +10 -9
  97. package/lib/types/chart-builder/sheet-chart-builder.d.ts +0 -17
  98. package/lib/types/chart-builder/sheet-chart-create-spec.d.ts +0 -6
  99. package/lib/types/facade/chart/f-sheet-chart-builder.d.ts +0 -83
  100. package/lib/types/facade/chart/f-sheet-charts.d.ts +0 -100
  101. package/lib/types/facade/chart/sheet-chart-command-adapter.d.ts +0 -13
  102. package/lib/types/facade/f-worksheet-charts.d.ts +0 -12
@@ -1 +1 @@
1
- function _0x302e(_0x4d47e8,_0x33741f){_0x4d47e8=_0x4d47e8-0x156;const _0x59adc7=_0x59ad();let _0x302e85=_0x59adc7[_0x4d47e8];return _0x302e85;}const _0x36ab3a=_0x302e;(function(_0x1628ce,_0xd89c96){const _0x849e12=_0x302e,_0x3ad640=_0x1628ce();while(!![]){try{const _0x471a3e=-parseInt(_0x849e12(0x16c))/0x1*(parseInt(_0x849e12(0x186))/0x2)+-parseInt(_0x849e12(0x184))/0x3*(-parseInt(_0x849e12(0x179))/0x4)+parseInt(_0x849e12(0x174))/0x5*(parseInt(_0x849e12(0x176))/0x6)+parseInt(_0x849e12(0x160))/0x7+parseInt(_0x849e12(0x17e))/0x8*(-parseInt(_0x849e12(0x185))/0x9)+parseInt(_0x849e12(0x169))/0xa+-parseInt(_0x849e12(0x181))/0xb;if(_0x471a3e===_0xd89c96)break;else _0x3ad640['push'](_0x3ad640['shift']());}catch(_0x424ce6){_0x3ad640['push'](_0x3ad640['shift']());}}}(_0x59ad,0x4d9ae));const e={'sheets-chart':{'seriesDefaultName':'Loạt\x20{0}','categoryDefaultName':_0x36ab3a(0x15a),'blank':'(Trống)','msg':{'emptyTips':_0x36ab3a(0x166),'sankeyCircularTips':_0x36ab3a(0x159)},'bubble':{'emptyTips':_0x36ab3a(0x168)},'relation':{'emptyTips':_0x36ab3a(0x167)},'cloud':{'word':'Từ','frequency':_0x36ab3a(0x15d)},'waterfall':{'positive':_0x36ab3a(0x15b),'negative':_0x36ab3a(0x180),'subtotal':_0x36ab3a(0x163)},'pareto':{'lineName':'Tỷ\x20lệ\x20tích\x20lũy'},'boxplot':{'min':_0x36ab3a(0x15e),'q1':_0x36ab3a(0x162),'median':_0x36ab3a(0x157),'q3':_0x36ab3a(0x178),'max':_0x36ab3a(0x158)},'candlestick':{'series':'Chuỗi\x20OHLC','category':_0x36ab3a(0x165),'open':_0x36ab3a(0x183),'high':_0x36ab3a(0x173),'low':_0x36ab3a(0x156),'close':'Giá\x20đóng\x20cửa'},'histogram':{'frequency':_0x36ab3a(0x15d)},'pie':{'aggregateOther':_0x36ab3a(0x175),'aggregateMembers':_0x36ab3a(0x16b)},'treemap':{'hierarchy':_0x36ab3a(0x17a),'value':_0x36ab3a(0x17d),'ownValue':_0x36ab3a(0x16a),'children':'Phần\x20tử\x20con','diagnostic':_0x36ab3a(0x172)},'sunburst':{'hierarchy':'Hệ\x20thống\x20phân\x20cấp','value':_0x36ab3a(0x182),'ownValue':_0x36ab3a(0x16a),'children':_0x36ab3a(0x16e),'diagnostic':'Biểu\x20đồ\x20sunburst\x20cần\x20ít\x20nhất\x20một\x20trường\x20phân\x20cấp\x20và\x20một\x20trường\x20giá\x20trị\x20số.'},'gauge':{'label':'Nhãn','value':'Value','emptyDiagnostic':'Biểu\x20đồ\x20đồng\x20hồ\x20cần\x20ít\x20nhất\x20một\x20giá\x20trị\x20số\x20hữu\x20hạn.','mappingDiagnostic':_0x36ab3a(0x15f),'configDiagnostic':'Cấu\x20hình\x20biểu\x20đồ\x20đồng\x20hồ\x20không\x20hợp\x20lệ.\x20Hãy\x20kiểm\x20tra\x20thang\x20đo,\x20phạm\x20vi,\x20tỷ\x20lệ\x20và\x20kích\x20thước.'},'chord':{'emptyDiagnostic':_0x36ab3a(0x16d),'mappingDiagnostic':_0x36ab3a(0x171),'configDiagnostic':_0x36ab3a(0x177),'source':_0x36ab3a(0x164),'target':_0x36ab3a(0x15c),'value':_0x36ab3a(0x182),'count':_0x36ab3a(0x17f),'associatedValue':_0x36ab3a(0x17b)},'chartField':{'missingCategoryFields':'Biểu\x20đồ\x20này\x20cần\x20thêm\x20trường\x20nhãn.','missingSeriesFields':'Biểu\x20đồ\x20này\x20cần\x20thêm\x20trường\x20giá\x20trị\x20số.','invalidFieldIndex':_0x36ab3a(0x161),'invalidValueFieldType':_0x36ab3a(0x16f),'invalidDataStructure':_0x36ab3a(0x170),'unsupportedChartType':_0x36ab3a(0x17c)}}};function _0x59ad(){const _0x23a570=['Cấu\x20hình\x20biểu\x20đồ\x20dây\x20cung\x20không\x20hợp\x20lệ.\x20Hãy\x20kiểm\x20tra\x20góc,\x20bán\x20kính,\x20độ\x20mờ\x20và\x20kích\x20thước.','Phần\x20tư\x20thứ\x20ba','4jHFcXP','Trường\x20phân\x20cấp','Giá\x20trị\x20liên\x20kết','Loại\x20biểu\x20đồ\x20này\x20không\x20có\x20chính\x20sách\x20sử\x20dụng\x20trường.','Trường\x20giá\x20trị','16OkCUHu','Số\x20lượng\x20mối\x20quan\x20hệ','Giá\x20trị\x20âm','3688707rKNWCS','Value','Giá\x20mở\x20cửa','819813tnFgtL','2584674xXSIQa','1086722puCsEz','Giá\x20thấp\x20nhất','Trung\x20vị','Giá\x20trị\x20lớn\x20nhất','Biểu\x20đồ\x20Sankey\x20không\x20thể\x20chứa\x20dữ\x20liệu\x20vòng\x20lặp','Danh\x20mục\x20{0}','Giá\x20trị\x20dương','Mục\x20tiêu','Tần\x20suất','Giá\x20trị\x20nhỏ\x20nhất','Biểu\x20đồ\x20đồng\x20hồ\x20cần\x20một\x20trường\x20nhãn\x20và\x20đúng\x20một\x20trường\x20giá\x20trị.','2826635cCfhwr','Một\x20trường\x20biểu\x20đồ\x20đã\x20chọn\x20không\x20còn\x20khả\x20dụng.','Phần\x20tư\x20thứ\x20nhất','Tổng\x20phụ','Nguồn','Category','Không\x20có\x20dữ\x20liệu\x20để\x20hiển\x20thị.','Nguồn\x20dữ\x20liệu\x20cho\x20biểu\x20đồ\x20quan\x20hệ\x20là\x20ma\x20trận\x20đồng\x20từ\x20với\x20cột\x20loại\x20bổ\x20sung\x20ở\x20cột\x20thứ\x20hai','Biểu\x20đồ\x20bong\x20bóng\x20yêu\x20cầu\x20ít\x20nhất\x202\x20cột:\x20trục\x20X,\x20trục\x20Y','5045000bMdXLl','Giá\x20trị\x20riêng','Thành\x20phần','1imSila','Biểu\x20đồ\x20dây\x20cung\x20cần\x20ít\x20nhất\x20một\x20quan\x20hệ\x20có\x20trọng\x20số\x20dương\x20giữa\x20hai\x20nút\x20khác\x20nhau.','Phần\x20tử\x20con','Trường\x20giá\x20trị\x20đã\x20chọn\x20không\x20chứa\x20dữ\x20liệu\x20số.','Các\x20trường\x20đã\x20chọn\x20không\x20tạo\x20thành\x20cấu\x20trúc\x20dữ\x20liệu\x20hợp\x20lệ\x20cho\x20biểu\x20đồ\x20này.','Biểu\x20đồ\x20dây\x20cung\x20cần\x20các\x20trường\x20Nguồn\x20và\x20Đích\x20khác\x20nhau\x20cùng\x20một\x20trường\x20Giá\x20trị\x20khác\x20biệt\x20không\x20bắt\x20buộc.','Biểu\x20đồ\x20cây\x20cần\x20ít\x20nhất\x20một\x20trường\x20phân\x20cấp\x20và\x20một\x20trường\x20giá\x20trị\x20số.','Giá\x20cao\x20nhất','5QBGXQk','Khác','3536184FGBsYc'];_0x59ad=function(){return _0x23a570;};return _0x59ad();}export{e as default};
1
+ const _0x248298=_0x36d2;function _0x36d2(_0x48fb9a,_0x209c1c){_0x48fb9a=_0x48fb9a-0x120;const _0x2aa378=_0x2aa3();let _0x36d2d4=_0x2aa378[_0x48fb9a];return _0x36d2d4;}(function(_0x2a72de,_0x4114a0){const _0x3cc585=_0x36d2,_0x489a9c=_0x2a72de();while(!![]){try{const _0x365e34=-parseInt(_0x3cc585(0x12d))/0x1*(-parseInt(_0x3cc585(0x121))/0x2)+-parseInt(_0x3cc585(0x13f))/0x3*(-parseInt(_0x3cc585(0x120))/0x4)+parseInt(_0x3cc585(0x128))/0x5+-parseInt(_0x3cc585(0x12a))/0x6*(-parseInt(_0x3cc585(0x150))/0x7)+parseInt(_0x3cc585(0x12f))/0x8+-parseInt(_0x3cc585(0x147))/0x9+-parseInt(_0x3cc585(0x125))/0xa;if(_0x365e34===_0x4114a0)break;else _0x489a9c['push'](_0x489a9c['shift']());}catch(_0x82a493){_0x489a9c['push'](_0x489a9c['shift']());}}}(_0x2aa3,0x6daa9));const e={'sheets-chart':{'seriesDefaultName':_0x248298(0x14d),'categoryDefaultName':_0x248298(0x138),'blank':_0x248298(0x136),'msg':{'emptyTips':_0x248298(0x148),'sankeyCircularTips':_0x248298(0x151)},'bubble':{'emptyTips':_0x248298(0x14e)},'relation':{'emptyTips':'Nguồn\x20dữ\x20liệu\x20cho\x20biểu\x20đồ\x20quan\x20hệ\x20là\x20ma\x20trận\x20đồng\x20từ\x20với\x20cột\x20loại\x20bổ\x20sung\x20ở\x20cột\x20thứ\x20hai'},'cloud':{'word':'Từ','frequency':_0x248298(0x143)},'waterfall':{'positive':_0x248298(0x13d),'negative':_0x248298(0x14b),'subtotal':_0x248298(0x14f)},'pareto':{'lineName':_0x248298(0x149)},'boxplot':{'min':_0x248298(0x124),'q1':'Phần\x20tư\x20thứ\x20nhất','median':_0x248298(0x141),'q3':_0x248298(0x14a),'max':_0x248298(0x131)},'candlestick':{'series':_0x248298(0x145),'category':_0x248298(0x146),'open':_0x248298(0x132),'high':_0x248298(0x140),'low':_0x248298(0x12c),'close':_0x248298(0x13a)},'histogram':{'frequency':'Tần\x20suất'},'pie':{'aggregateOther':_0x248298(0x129),'aggregateMembers':_0x248298(0x152)},'treemap':{'hierarchy':_0x248298(0x135),'value':_0x248298(0x123),'ownValue':'Giá\x20trị\x20riêng','children':_0x248298(0x144),'diagnostic':_0x248298(0x154)},'sunburst':{'hierarchy':_0x248298(0x13c),'value':'Value','ownValue':_0x248298(0x13e),'children':'Phần\x20tử\x20con','diagnostic':_0x248298(0x130)},'gauge':{'label':_0x248298(0x127),'value':_0x248298(0x155),'emptyDiagnostic':'Biểu\x20đồ\x20đồng\x20hồ\x20cần\x20ít\x20nhất\x20một\x20giá\x20trị\x20số\x20hữu\x20hạn.','mappingDiagnostic':_0x248298(0x133),'configDiagnostic':_0x248298(0x153)},'chord':{'emptyDiagnostic':_0x248298(0x137),'mappingDiagnostic':'Biểu\x20đồ\x20dây\x20cung\x20cần\x20các\x20trường\x20Nguồn\x20và\x20Đích\x20khác\x20nhau\x20cùng\x20một\x20trường\x20Giá\x20trị\x20khác\x20biệt\x20không\x20bắt\x20buộc.','configDiagnostic':_0x248298(0x12e),'source':_0x248298(0x14c),'target':_0x248298(0x139),'value':_0x248298(0x155),'count':'Số\x20lượng\x20mối\x20quan\x20hệ','associatedValue':_0x248298(0x134)},'chartField':{'missingCategoryFields':_0x248298(0x126),'missingSeriesFields':_0x248298(0x13b),'invalidFieldIndex':_0x248298(0x12b),'invalidValueFieldType':'Trường\x20giá\x20trị\x20đã\x20chọn\x20không\x20chứa\x20dữ\x20liệu\x20số.','invalidDataStructure':_0x248298(0x122),'unsupportedChartType':_0x248298(0x142)}}};export{e as default};function _0x2aa3(){const _0x13a0be=['Giá\x20trị\x20dương','Giá\x20trị\x20riêng','3DxWOYa','Giá\x20cao\x20nhất','Trung\x20vị','Loại\x20biểu\x20đồ\x20này\x20không\x20có\x20chính\x20sách\x20sử\x20dụng\x20trường.','Tần\x20suất','Phần\x20tử\x20con','Chuỗi\x20OHLC','Category','6254145gdvXaD','Không\x20có\x20dữ\x20liệu\x20để\x20hiển\x20thị.','Tỷ\x20lệ\x20tích\x20lũy','Phần\x20tư\x20thứ\x20ba','Giá\x20trị\x20âm','Nguồn','Loạt\x20{0}','Biểu\x20đồ\x20bong\x20bóng\x20yêu\x20cầu\x20ít\x20nhất\x202\x20cột:\x20trục\x20X,\x20trục\x20Y','Tổng\x20phụ','2303XyJEHq','Biểu\x20đồ\x20Sankey\x20không\x20thể\x20chứa\x20dữ\x20liệu\x20vòng\x20lặp','Thành\x20phần','Cấu\x20hình\x20biểu\x20đồ\x20đồng\x20hồ\x20không\x20hợp\x20lệ.\x20Hãy\x20kiểm\x20tra\x20thang\x20đo,\x20phạm\x20vi,\x20tỷ\x20lệ\x20và\x20kích\x20thước.','Biểu\x20đồ\x20cây\x20cần\x20ít\x20nhất\x20một\x20trường\x20phân\x20cấp\x20và\x20một\x20trường\x20giá\x20trị\x20số.','Value','182948zSpokI','110XgJInI','Các\x20trường\x20đã\x20chọn\x20không\x20tạo\x20thành\x20cấu\x20trúc\x20dữ\x20liệu\x20hợp\x20lệ\x20cho\x20biểu\x20đồ\x20này.','Trường\x20giá\x20trị','Giá\x20trị\x20nhỏ\x20nhất','4201460ewjqUN','Biểu\x20đồ\x20này\x20cần\x20thêm\x20trường\x20nhãn.','Nhãn','173300eLTnSV','Khác','6078yrueXB','Một\x20trường\x20biểu\x20đồ\x20đã\x20chọn\x20không\x20còn\x20khả\x20dụng.','Giá\x20thấp\x20nhất','11996ADJSzC','Cấu\x20hình\x20biểu\x20đồ\x20dây\x20cung\x20không\x20hợp\x20lệ.\x20Hãy\x20kiểm\x20tra\x20góc,\x20bán\x20kính,\x20độ\x20mờ\x20và\x20kích\x20thước.','3926320qEKsdG','Biểu\x20đồ\x20sunburst\x20cần\x20ít\x20nhất\x20một\x20trường\x20phân\x20cấp\x20và\x20một\x20trường\x20giá\x20trị\x20số.','Giá\x20trị\x20lớn\x20nhất','Giá\x20mở\x20cửa','Biểu\x20đồ\x20đồng\x20hồ\x20cần\x20một\x20trường\x20nhãn\x20và\x20đúng\x20một\x20trường\x20giá\x20trị.','Giá\x20trị\x20liên\x20kết','Trường\x20phân\x20cấp','(Trống)','Biểu\x20đồ\x20dây\x20cung\x20cần\x20ít\x20nhất\x20một\x20quan\x20hệ\x20có\x20trọng\x20số\x20dương\x20giữa\x20hai\x20nút\x20khác\x20nhau.','Danh\x20mục\x20{0}','Mục\x20tiêu','Giá\x20đóng\x20cửa','Biểu\x20đồ\x20này\x20cần\x20thêm\x20trường\x20giá\x20trị\x20số.','Hệ\x20thống\x20phân\x20cấp'];_0x2aa3=function(){return _0x13a0be;};return _0x2aa3();}
@@ -1 +1 @@
1
- const _0x58a818=_0x4d5c;function _0x4d5c(_0x2c7e34,_0x38d70b){_0x2c7e34=_0x2c7e34-0x164;const _0x24a038=_0x24a0();let _0x4d5c90=_0x24a038[_0x2c7e34];return _0x4d5c90;}(function(_0x3ce17d,_0x61582b){const _0x2f9349=_0x4d5c,_0xd0d4e3=_0x3ce17d();while(!![]){try{const _0x448034=parseInt(_0x2f9349(0x173))/0x1*(-parseInt(_0x2f9349(0x186))/0x2)+parseInt(_0x2f9349(0x166))/0x3+-parseInt(_0x2f9349(0x17e))/0x4*(parseInt(_0x2f9349(0x164))/0x5)+-parseInt(_0x2f9349(0x178))/0x6+parseInt(_0x2f9349(0x175))/0x7*(parseInt(_0x2f9349(0x169))/0x8)+parseInt(_0x2f9349(0x17f))/0x9+parseInt(_0x2f9349(0x179))/0xa*(parseInt(_0x2f9349(0x16c))/0xb);if(_0x448034===_0x61582b)break;else _0xd0d4e3['push'](_0xd0d4e3['shift']());}catch(_0x4f5d07){_0xd0d4e3['push'](_0xd0d4e3['shift']());}}}(_0x24a0,0x7ba4b));const e={'sheets-chart':{'seriesDefaultName':_0x58a818(0x165),'categoryDefaultName':_0x58a818(0x16d),'blank':_0x58a818(0x189),'msg':{'emptyTips':_0x58a818(0x168),'sankeyCircularTips':_0x58a818(0x16a)},'bubble':{'emptyTips':_0x58a818(0x171)},'relation':{'emptyTips':_0x58a818(0x17a)},'cloud':{'word':'词语','frequency':'频率'},'waterfall':{'positive':'正值','negative':'负值','subtotal':'小计'},'pareto':{'lineName':'累积占比'},'boxplot':{'min':'最小值','q1':_0x58a818(0x182),'median':_0x58a818(0x183),'q3':_0x58a818(0x17d),'max':'最大值'},'candlestick':{'series':_0x58a818(0x177),'category':'Category','open':'开盘','high':'最高','low':'最低','close':'收盘'},'histogram':{'frequency':'频数'},'pie':{'aggregateOther':'其他','aggregateMembers':_0x58a818(0x176)},'treemap':{'hierarchy':'层级字段','value':_0x58a818(0x185),'ownValue':'自身值','children':'子项','diagnostic':'矩形树图至少需要一个层级字段和一个数值字段。'},'sunburst':{'hierarchy':'层级','value':_0x58a818(0x187),'ownValue':_0x58a818(0x167),'children':'子项','diagnostic':_0x58a818(0x170)},'gauge':{'label':'标签','value':'Value','emptyDiagnostic':_0x58a818(0x17c),'mappingDiagnostic':'仪表图需要一个标签字段且只能有一个数值字段。','configDiagnostic':_0x58a818(0x16f)},'chord':{'emptyDiagnostic':_0x58a818(0x172),'mappingDiagnostic':_0x58a818(0x184),'configDiagnostic':_0x58a818(0x188),'source':'来源','target':'目标','value':_0x58a818(0x187),'count':_0x58a818(0x180),'associatedValue':'关联值'},'chartField':{'missingCategoryFields':'此图表需要更多标签字段。','missingSeriesFields':_0x58a818(0x16b),'invalidFieldIndex':_0x58a818(0x17b),'invalidValueFieldType':_0x58a818(0x16e),'invalidDataStructure':_0x58a818(0x181),'unsupportedChartType':_0x58a818(0x174)}}};export{e as default};function _0x24a0(){const _0x1bd1a1=['所选字段无法构成此图表所需的有效数据结构。','第一四分位数','中位数','弦图需要不同的来源字段和目标字段,并可选一个与二者不同的数值字段。','数值字段','47894KOhCBS','Value','弦图配置无效,请检查角度、半径、不透明度和尺寸。','(空)','1763855mcPNhj','系列\x20{0}','307509hTUiWe','自身值','请先添加系列开始数据可视化','7016zHrljX','桑基图不能包含循环数据','此图表需要更多数值字段。','41591pqfDxF','类别\x20{0}','所选值字段不包含数值数据。','仪表图配置无效,请检查刻度范围、分段区间、比例和尺寸。','旭日图至少需要一个层级字段和一个数值字段。','气泡图至少需要2列,X轴、Y轴。','弦图至少需要两个不同节点之间的一条正权重关系。','13okxDZR','此图表类型没有字段使用规则。','3283UMrHie','成员数','OHLC\x20系列','1933740YHHGKS','2410eZeaxi','关系图数据源为额外添加类型列在第二列的共词矩阵','所选图表字段已不可用。','仪表图至少需要一个有限数值。','第三四分位数','8RxlOKr','3784941HIXkah','关系计数'];_0x24a0=function(){return _0x1bd1a1;};return _0x24a0();}
1
+ const _0x10c420=_0x4abc;function _0x4abc(_0x1f722a,_0x21c48f){_0x1f722a=_0x1f722a-0xe6;const _0x4fcbb9=_0x4fcb();let _0x4abc7c=_0x4fcbb9[_0x1f722a];return _0x4abc7c;}(function(_0x9fd58d,_0x133686){const _0x3db50f=_0x4abc,_0x2b1d46=_0x9fd58d();while(!![]){try{const _0x343100=-parseInt(_0x3db50f(0xfa))/0x1+-parseInt(_0x3db50f(0xfd))/0x2+parseInt(_0x3db50f(0xfe))/0x3+parseInt(_0x3db50f(0xeb))/0x4+-parseInt(_0x3db50f(0xf5))/0x5*(-parseInt(_0x3db50f(0xf4))/0x6)+-parseInt(_0x3db50f(0xe7))/0x7*(-parseInt(_0x3db50f(0x107))/0x8)+-parseInt(_0x3db50f(0x104))/0x9*(parseInt(_0x3db50f(0xe6))/0xa);if(_0x343100===_0x133686)break;else _0x2b1d46['push'](_0x2b1d46['shift']());}catch(_0x3b81a4){_0x2b1d46['push'](_0x2b1d46['shift']());}}}(_0x4fcb,0x495d9));const e={'sheets-chart':{'seriesDefaultName':_0x10c420(0xf0),'categoryDefaultName':_0x10c420(0xe8),'blank':_0x10c420(0x108),'msg':{'emptyTips':'请先添加系列开始数据可视化','sankeyCircularTips':_0x10c420(0xf1)},'bubble':{'emptyTips':_0x10c420(0xf2)},'relation':{'emptyTips':_0x10c420(0x103)},'cloud':{'word':'词语','frequency':'频率'},'waterfall':{'positive':'正值','negative':'负值','subtotal':'小计'},'pareto':{'lineName':_0x10c420(0xea)},'boxplot':{'min':'最小值','q1':_0x10c420(0xf6),'median':_0x10c420(0xec),'q3':_0x10c420(0xe9),'max':_0x10c420(0xf7)},'candlestick':{'series':'OHLC\x20系列','category':'Category','open':'开盘','high':'最高','low':'最低','close':'收盘'},'histogram':{'frequency':'频数'},'pie':{'aggregateOther':'其他','aggregateMembers':'成员数'},'treemap':{'hierarchy':_0x10c420(0x100),'value':_0x10c420(0xed),'ownValue':'自身值','children':'子项','diagnostic':_0x10c420(0x109)},'sunburst':{'hierarchy':'层级','value':_0x10c420(0xfb),'ownValue':_0x10c420(0x106),'children':'子项','diagnostic':_0x10c420(0xf8)},'gauge':{'label':'标签','value':'Value','emptyDiagnostic':_0x10c420(0x101),'mappingDiagnostic':_0x10c420(0xef),'configDiagnostic':'仪表图配置无效,请检查刻度范围、分段区间、比例和尺寸。'},'chord':{'emptyDiagnostic':_0x10c420(0x105),'mappingDiagnostic':'弦图需要不同的来源字段和目标字段,并可选一个与二者不同的数值字段。','configDiagnostic':_0x10c420(0xf9),'source':'来源','target':'目标','value':_0x10c420(0xfb),'count':_0x10c420(0xf3),'associatedValue':'关联值'},'chartField':{'missingCategoryFields':'此图表需要更多标签字段。','missingSeriesFields':_0x10c420(0xee),'invalidFieldIndex':_0x10c420(0x102),'invalidValueFieldType':_0x10c420(0xfc),'invalidDataStructure':'所选字段无法构成此图表所需的有效数据结构。','unsupportedChartType':_0x10c420(0xff)}}};function _0x4fcb(){const _0xf19a9a=['所选值字段不包含数值数据。','665902kKywME','225822IzPnoJ','此图表类型没有字段使用规则。','层级字段','仪表图至少需要一个有限数值。','所选图表字段已不可用。','关系图数据源为额外添加类型列在第二列的共词矩阵','81SFsoBV','弦图至少需要两个不同节点之间的一条正权重关系。','自身值','3712488heASrn','(空)','矩形树图至少需要一个层级字段和一个数值字段。','370070EDmBtD','7QTfqMC','类别\x20{0}','第三四分位数','累积占比','1416304JWAebK','中位数','数值字段','此图表需要更多数值字段。','仪表图需要一个标签字段且只能有一个数值字段。','系列\x20{0}','桑基图不能包含循环数据','气泡图至少需要2列,X轴、Y轴。','关系计数','48pQsnfm','49625pgsRzs','第一四分位数','最大值','旭日图至少需要一个层级字段和一个数值字段。','弦图配置无效,请检查角度、半径、不透明度和尺寸。','6292uXHqvX','Value'];_0x4fcb=function(){return _0xf19a9a;};return _0x4fcb();}export{e as default};
@@ -1 +1 @@
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
+ function _0x183c(_0x3d2f2b,_0x3524a3){_0x3d2f2b=_0x3d2f2b-0x8c;const _0x172c7f=_0x172c();let _0x183c93=_0x172c7f[_0x3d2f2b];return _0x183c93;}const _0x2c14e4=_0x183c;(function(_0x3ad54e,_0x5e9154){const _0x466109=_0x183c,_0x3c191c=_0x3ad54e();while(!![]){try{const _0x47380d=parseInt(_0x466109(0x8d))/0x1+parseInt(_0x466109(0x9c))/0x2*(-parseInt(_0x466109(0x93))/0x3)+-parseInt(_0x466109(0xb0))/0x4+-parseInt(_0x466109(0x8f))/0x5+parseInt(_0x466109(0xa0))/0x6*(parseInt(_0x466109(0x90))/0x7)+-parseInt(_0x466109(0xa7))/0x8+-parseInt(_0x466109(0xae))/0x9*(-parseInt(_0x466109(0x99))/0xa);if(_0x47380d===_0x5e9154)break;else _0x3c191c['push'](_0x3c191c['shift']());}catch(_0x357d45){_0x3c191c['push'](_0x3c191c['shift']());}}}(_0x172c,0xa26b2));const e={'sheets-chart':{'seriesDefaultName':_0x2c14e4(0xa6),'categoryDefaultName':_0x2c14e4(0xa4),'blank':_0x2c14e4(0xb4),'msg':{'emptyTips':_0x2c14e4(0xaf),'sankeyCircularTips':_0x2c14e4(0xa2)},'bubble':{'emptyTips':_0x2c14e4(0x94)},'relation':{'emptyTips':'關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣'},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x2c14e4(0x9a)},'boxplot':{'min':'最小值','q1':_0x2c14e4(0xaa),'median':_0x2c14e4(0xad),'q3':'第三四分位數','max':_0x2c14e4(0x97)},'candlestick':{'series':_0x2c14e4(0xb2),'category':_0x2c14e4(0x8e),'open':'開盤價','high':_0x2c14e4(0xa9),'low':_0x2c14e4(0xac),'close':_0x2c14e4(0x8c)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':_0x2c14e4(0x9f),'value':_0x2c14e4(0x9d),'ownValue':_0x2c14e4(0x98),'children':'子項','diagnostic':_0x2c14e4(0x9b)},'sunburst':{'hierarchy':'階層','value':_0x2c14e4(0xb3),'ownValue':_0x2c14e4(0x98),'children':'子項','diagnostic':_0x2c14e4(0xb1)},'gauge':{'label':'標籤','value':'Value','emptyDiagnostic':_0x2c14e4(0x91),'mappingDiagnostic':'儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','configDiagnostic':'儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。'},'chord':{'emptyDiagnostic':'弦圖至少需要兩個不同節點之間的一條正權重關係。','mappingDiagnostic':_0x2c14e4(0x92),'configDiagnostic':_0x2c14e4(0x96),'source':'來源','target':'目標','value':_0x2c14e4(0xb3),'count':_0x2c14e4(0x95),'associatedValue':_0x2c14e4(0xa1)},'chartField':{'missingCategoryFields':_0x2c14e4(0xa5),'missingSeriesFields':_0x2c14e4(0x9e),'invalidFieldIndex':_0x2c14e4(0xab),'invalidValueFieldType':_0x2c14e4(0xa8),'invalidDataStructure':'所選欄位無法構成此圖表所需的有效資料結構。','unsupportedChartType':_0x2c14e4(0xa3)}}};function _0x172c(){const _0x5c42fd=['儀表圖至少需要一個有限數值。','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','291PiPisT','氣泡圖至少需要2欄,X軸、Y軸。','關係數','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','最大值','自身值','119230BIUxqc','累積占比','矩形樹圖至少需要一個階層欄位和一個數值欄位。','22284exmAES','數值欄位','此圖表需要更多數值欄位。','階層欄位','1056DTjkji','關聯值','桑基圖不能包含循環數據','此圖表類型沒有欄位使用規則。','類別\x20{0}','此圖表需要更多標籤欄位。','系列\x20{0}','3439800PDBKwv','所選數值欄位不包含數值資料。','最高價','第一四分位數','所選圖表欄位已無法使用。','最低價','中位數','2583kVGIZu','請先添加系列開始數據可視化','3683152pgCxVU','旭日圖至少需要一個階層欄位和一個數值欄位。','OHLC\x20數列','Value','(空)','收盤價','100886YqGkHM','Category','5378000sWaCBY','25837IIhIMc'];_0x172c=function(){return _0x5c42fd;};return _0x172c();}export{e as default};
@@ -1 +1 @@
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
+ const _0xa5ae37=_0x1183;(function(_0x3d00a1,_0x117974){const _0xa64fcf=_0x1183,_0x5dac38=_0x3d00a1();while(!![]){try{const _0x4c4857=parseInt(_0xa64fcf(0x151))/0x1*(-parseInt(_0xa64fcf(0x138))/0x2)+-parseInt(_0xa64fcf(0x148))/0x3*(parseInt(_0xa64fcf(0x132))/0x4)+-parseInt(_0xa64fcf(0x12d))/0x5*(-parseInt(_0xa64fcf(0x13b))/0x6)+parseInt(_0xa64fcf(0x136))/0x7+-parseInt(_0xa64fcf(0x129))/0x8+-parseInt(_0xa64fcf(0x14f))/0x9+parseInt(_0xa64fcf(0x12a))/0xa*(parseInt(_0xa64fcf(0x13f))/0xb);if(_0x4c4857===_0x117974)break;else _0x5dac38['push'](_0x5dac38['shift']());}catch(_0x2336e9){_0x5dac38['push'](_0x5dac38['shift']());}}}(_0x3dce,0xdfe5e));function _0x1183(_0x35a232,_0x4023de){_0x35a232=_0x35a232-0x129;const _0x3dce67=_0x3dce();let _0x1183fa=_0x3dce67[_0x35a232];return _0x1183fa;}function _0x3dce(){const _0x3fc9e8=['最大值','168aQhCoN','選取的欄位無法構成這個圖表所需的有效資料結構。','這個圖表需要更多標籤欄位。','關係數','33BRZaKo','最高價','旭日圖至少需要一個階層欄位和一個數值欄位。','選取的圖表欄位已無法使用。','儀表圖需要一個標籤欄位,而且只能有一個數值欄位。','儀表圖至少需要一個有限數值。','弦圖需要不同的來源與目標欄位,並可選擇一個與兩者不同的數值欄位。','第三四分位數','這個圖表需要更多數值欄位。','1452rOGfcg','累積占比','自身值','類別\x20{0}','儀表圖設定無效,請檢查刻度範圍、分段區間、比例和尺寸。','關聯值','最小值','202428oAXgOF','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','2YeZjIb','8047112bhuZLd','11264410ErZPVr','收盤價','最低價','31905cuoFrJ','弦圖設定無效,請檢查角度、半徑、不透明度和尺寸。','開盤價','氣泡圖至少需要2欄,X軸、Y軸。','請先添加系列開始數據可視化','10312wDtLkm','第一四分位數','(空)','這個圖表類型沒有欄位使用規則。','7997822mnLnFj','OHLC\x20數列','1507318MyTuxu','中位數'];_0x3dce=function(){return _0x3fc9e8;};return _0x3dce();}const e={'sheets-chart':{'seriesDefaultName':'系列\x20{0}','categoryDefaultName':_0xa5ae37(0x14b),'blank':_0xa5ae37(0x134),'msg':{'emptyTips':_0xa5ae37(0x131),'sankeyCircularTips':'桑基圖不能包含循環數據'},'bubble':{'emptyTips':_0xa5ae37(0x130)},'relation':{'emptyTips':_0xa5ae37(0x150)},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0xa5ae37(0x149)},'boxplot':{'min':_0xa5ae37(0x14e),'q1':_0xa5ae37(0x133),'median':_0xa5ae37(0x139),'q3':_0xa5ae37(0x146),'max':_0xa5ae37(0x13a)},'candlestick':{'series':_0xa5ae37(0x137),'category':'Category','open':_0xa5ae37(0x12f),'high':_0xa5ae37(0x140),'low':_0xa5ae37(0x12c),'close':_0xa5ae37(0x12b)},'histogram':{'frequency':'頻數'},'pie':{'aggregateOther':'其他','aggregateMembers':'成員'},'treemap':{'hierarchy':'階層欄位','value':'數值欄位','ownValue':_0xa5ae37(0x14a),'children':'子項','diagnostic':'矩形樹圖至少需要一個階層欄位和一個數值欄位。'},'sunburst':{'hierarchy':'階層','value':'Value','ownValue':_0xa5ae37(0x14a),'children':'子項','diagnostic':_0xa5ae37(0x141)},'gauge':{'label':'標籤','value':'Value','emptyDiagnostic':_0xa5ae37(0x144),'mappingDiagnostic':_0xa5ae37(0x143),'configDiagnostic':_0xa5ae37(0x14c)},'chord':{'emptyDiagnostic':'弦圖至少需要兩個不同節點之間的一條正權重關係。','mappingDiagnostic':_0xa5ae37(0x145),'configDiagnostic':_0xa5ae37(0x12e),'source':'來源','target':'目標','value':'Value','count':_0xa5ae37(0x13e),'associatedValue':_0xa5ae37(0x14d)},'chartField':{'missingCategoryFields':_0xa5ae37(0x13d),'missingSeriesFields':_0xa5ae37(0x147),'invalidFieldIndex':_0xa5ae37(0x142),'invalidValueFieldType':'選取的數值欄位不包含數值資料。','invalidDataStructure':_0xa5ae37(0x13c),'unsupportedChartType':_0xa5ae37(0x135)}}};export{e as default};
@@ -1,14 +1,14 @@
1
- import type { ChartPendingConfig, IChartBuilderAdapter, IChartData, IChartDescription, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IUniverDataSet } from '@univerjs-pro/engine-chart';
2
- import type { Injector } from '@univerjs/core';
1
+ import type { ChartPendingConfig, IChartBuilderAdapter, IChartCreateConfig, IChartData, IChartDescription, IChartLiveAdapter, IUniverDataSet } from '@univerjs-pro/engine-chart';
2
+ import type { ArrangeTypeEnum, Injector } from '@univerjs/core';
3
3
  import type { ISheetChartDescriptionExtension } from './sheet-chart-description';
4
- import type { ChartSourceSpec, IChartLayoutPatch } from './types';
4
+ import type { ChartSourceSpec, IChartLayoutPatch, ISheetChartInfo } from './types';
5
5
  /** Sheet-owned changes committed alongside engine chart configuration. */
6
6
  export interface ISheetChartHostPatch {
7
7
  source?: ChartSourceSpec;
8
8
  layout?: IChartLayoutPatch;
9
9
  }
10
10
  /** Persistence seam required by a Sheet chart builder. */
11
- export interface ISheetChartBuilderAdapter extends IChartBuilderAdapter<ISheetChartDescriptionExtension> {
11
+ export interface ISheetChartConfigAdapter extends IChartBuilderAdapter<ISheetChartDescriptionExtension> {
12
12
  commitHost(patch: ISheetChartHostPatch): void;
13
13
  resolveData(config: ChartPendingConfig, source?: ChartSourceSpec): IChartData;
14
14
  resolveSource(source: ChartSourceSpec): {
@@ -17,25 +17,34 @@ export interface ISheetChartBuilderAdapter extends IChartBuilderAdapter<ISheetCh
17
17
  };
18
18
  }
19
19
  /** Stable Sheet identity and services used by the builder adapter. */
20
- export interface ISheetChartBuilderAdapterContext {
20
+ export interface ISheetChartConfigAdapterContext {
21
21
  unitId: string;
22
22
  subUnitId: string;
23
23
  chartId: string;
24
24
  injector: Injector;
25
25
  }
26
26
  /** Commits Sheet chart changes using raw identity and package-owned commands. */
27
- export declare class SheetChartBuilderAdapter implements ISheetChartBuilderAdapter {
27
+ export declare class SheetChartConfigAdapter implements ISheetChartConfigAdapter, IChartLiveAdapter<ChartSourceSpec, ISheetChartInfo> {
28
28
  private readonly _context;
29
29
  private readonly _injector;
30
- constructor(_context: ISheetChartBuilderAdapterContext);
30
+ constructor(_context: ISheetChartConfigAdapterContext);
31
31
  describe(config?: ChartPendingConfig, dataSet?: IUniverDataSet): IChartDescription & ISheetChartDescriptionExtension;
32
+ getInfo(): ISheetChartInfo;
32
33
  commit(configChange: ChartPendingConfig): void;
34
+ update(info: ISheetChartInfo): Promise<void>;
35
+ commitChanges(source: ChartSourceSpec, config: IChartCreateConfig, layout: IChartLayoutPatch): Promise<void>;
36
+ private _replaceConfig;
37
+ setDataSource(source: ChartSourceSpec): void;
38
+ setAbsolutePosition(x: number, y: number): void;
39
+ setSize(width: number, height: number): void;
40
+ arrange(type: ArrangeTypeEnum): void;
41
+ setZOrder(zOrder: number): void;
33
42
  resolveData(configChange: ChartPendingConfig, source?: ChartSourceSpec): IChartData;
34
43
  resolveSource(source: ChartSourceSpec): {
35
44
  dataSet: IUniverDataSet;
36
45
  isRowDirection: boolean;
37
46
  };
38
47
  commitHost(patch: ISheetChartHostPatch): void;
39
- exportImage(options?: IChartRenderModelImageExportOptions): Promise<IChartRenderModelImageExportResult | null>;
48
+ remove(): Promise<boolean>;
40
49
  private _resolveSourceRange;
41
50
  }
@@ -1,4 +1,4 @@
1
- import type { ChartTypeString, IChartCreateConfig, IChartDescription as IEngineChartDescription } from '@univerjs-pro/engine-chart';
1
+ import type { ChartTypeString, IChartCreateConfig, IChartInfo, 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",
@@ -83,6 +83,10 @@ export interface IChartCreateSpec extends IChartCreateConfig {
83
83
  };
84
84
  size?: IChartSizeSpec;
85
85
  }
86
+ /** Detached Sheet Chart information produced by the Facade builder. */
87
+ export interface ISheetChartInfo extends IChartInfo<ChartSourceSpec> {
88
+ anchor?: ChartAnchorSpec;
89
+ }
86
90
  export declare enum ChartDiagnosticCode {
87
91
  InvalidRange = "INVALID_RANGE",
88
92
  SingleCellSource = "SINGLE_CELL_SOURCE",
@@ -21,6 +21,7 @@ export declare class ChartDataSourceSingle extends ChartDataSource {
21
21
  watchRange(): void;
22
22
  convertDataSet(sourceInfo?: ISheetChartSourceSingleRange): IUniverDataSet;
23
23
  getDataSet(): IUniverDataSet;
24
+ getDimensionCount(): number;
24
25
  refresh(): void;
25
26
  private _emit;
26
27
  }
@@ -48,6 +49,7 @@ export declare class ChartDataSourceMulti extends ChartDataSource {
48
49
  sourceLabels: string[][];
49
50
  };
50
51
  getDataSet(): IUniverDataSet;
52
+ getDimensionCount(): number;
51
53
  refresh(): void;
52
54
  private _emit;
53
55
  }
@@ -1,6 +1,8 @@
1
1
  import type { ICellData, IDocumentData, IRange, Nullable, ObjectMatrix, Styles, Worksheet } from '@univerjs/core';
2
2
  import type { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange, OptionDataValue } from '../models/types';
3
3
  import { ChartSourceDataTypeEnum } from '@univerjs-pro/engine-chart';
4
+ import { numfmt } from '@univerjs/core';
5
+ type ChartSourcePatternInfoRecord = Record<string, ReturnType<typeof numfmt.getFormatInfo>>;
4
6
  export interface IChartSourceCellEntry {
5
7
  value: OptionDataValue;
6
8
  label: string;
@@ -8,7 +10,8 @@ export interface IChartSourceCellEntry {
8
10
  }
9
11
  export declare const getStringFromDataStream: (data: IDocumentData) => string;
10
12
  export declare function convertArrayLikeRangeInfoToMatrix(sourceRange: IRange, sheet: Worksheet, index: number, matrix: ObjectMatrix<OptionDataValue>, sourceTypeMatrix: ObjectMatrix<ChartSourceDataTypeEnum>, sourceLabelsMatrix: ObjectMatrix<string>, styles: Styles): void;
11
- export declare function convertCellDataToSourceEntry(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: Record<string, any>): IChartSourceCellEntry;
13
+ export declare function getCellSourceEntry(worksheet: Worksheet, row: number, column: number, styles: Styles, patternInfoRecord: ChartSourcePatternInfoRecord): IChartSourceCellEntry;
14
+ export declare function convertCellDataToSourceEntry(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: ChartSourcePatternInfoRecord, sourceCellData?: Nullable<ICellData>): IChartSourceCellEntry;
12
15
  /**
13
16
  * @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
14
17
  * @param {ISheetChartSourceSingleRange} rangeInfo the single range info
@@ -21,3 +24,4 @@ export declare function changeSingleRangeInfoToMultiRangeInfo(rangeInfo: ISheetC
21
24
  * @returns {boolean} return the multi range info can switch orient or not
22
25
  */
23
26
  export declare function isMultiRangeCanSwitchOrient(rangeInfo: IChartSourceMultiRangeItem[]): boolean;
27
+ export {};
@@ -1,3 +1,4 @@
1
+ import type { IChartHostRect } from '@univerjs-pro/engine-chart';
1
2
  export declare const SHEETS_CHART_PLUGIN_CONFIG_KEY = "sheets-chart.config";
2
3
  export declare const configSymbol: unique symbol;
3
4
  export declare enum ChartRenderMode {
@@ -6,5 +7,6 @@ export declare enum ChartRenderMode {
6
7
  }
7
8
  export interface IUniverSheetsChartConfig {
8
9
  chartRenderMode?: ChartRenderMode;
10
+ defaultChartSize?: IChartHostRect;
9
11
  }
10
12
  export declare const defaultPluginConfig: IUniverSheetsChartConfig;
@@ -2,8 +2,35 @@ import { ChartSourceOrientation } from '@univerjs-pro/sheets-chart';
2
2
  import { FEnum } from '@univerjs/core/facade';
3
3
  /** @ignore */
4
4
  export interface IFSheetsChartEnumMixin {
5
+ /**
6
+ * Controls how a Sheet range is interpreted as Chart series.
7
+ *
8
+ * - `Auto` lets Sheet Chart infer the orientation from the selected range.
9
+ * - `Row`, `Rows`, and `RowsAsSeries` are equivalent: each row is treated as a series.
10
+ * - `Column`, `Columns`, and `ColumnsAsSeries` are equivalent: each column is treated as a series.
11
+ *
12
+ * Pass a value through `orientation` when calling a Sheet Chart builder's
13
+ * `setSource()` method or a live Sheet Chart's `setDataSource()` method.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const fWorkbook = univerAPI.getActiveWorkbook();
18
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
19
+ *
20
+ * const chartInfo = fWorksheet
21
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
22
+ * .setSource({
23
+ * range: 'A1:D8',
24
+ * orientation: univerAPI.Enum.ChartSourceOrientation.Columns,
25
+ * })
26
+ * .build();
27
+ *
28
+ * await fWorksheet.insertChart(chartInfo);
29
+ * ```
30
+ */
5
31
  ChartSourceOrientation: typeof ChartSourceOrientation;
6
32
  }
33
+ /** @ignore */
7
34
  export declare class FSheetsChartEnumMixin extends FEnum implements IFSheetsChartEnumMixin {
8
35
  get ChartSourceOrientation(): typeof ChartSourceOrientation;
9
36
  }
@@ -0,0 +1,134 @@
1
+ import type { ChartTypeString } from '@univerjs-pro/engine-chart';
2
+ import type { HostComposedChartBuilder, IChartBuilderTypeMap } from '@univerjs-pro/engine-chart/facade';
3
+ import type { ChartAnchorSpec, ChartSourceSpec, ISheetChartInfo } from '@univerjs-pro/sheets-chart';
4
+ import { FWorksheet } from '@univerjs/sheets/facade';
5
+ import { FSheetChart } from './f-chart';
6
+ /** Sheet-only methods composed onto every Sheet Chart Builder. */
7
+ export interface ISheetChartMethods {
8
+ /**
9
+ * Sets the cell anchor used when inserting the Chart.
10
+ * @param {ChartAnchorSpec} anchor A1 notation or a zero-based row/column anchor with optional offsets.
11
+ * @returns {this} This Builder for chaining.
12
+ * @example
13
+ * ```ts
14
+ * const fWorkbook = univerAPI.getActiveWorkbook();
15
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
16
+ *
17
+ * const chartInfo = fWorksheet
18
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
19
+ * .setSource({
20
+ * range: 'A1:D8',
21
+ * orientation: univerAPI.Enum.ChartSourceOrientation.Columns,
22
+ * })
23
+ * .setPosition({
24
+ * row: 1,
25
+ * column: 5,
26
+ * rowOffset: 10,
27
+ * columnOffset: 20,
28
+ * })
29
+ * .setSize(640, 360)
30
+ * .setTitle('Quarterly sales')
31
+ * .build();
32
+ * await fWorksheet.insertChart(chartInfo);
33
+ * ```
34
+ */
35
+ setPosition(anchor: ChartAnchorSpec): this;
36
+ }
37
+ /** A type-specific Chart Builder composed with Sheet-only insertion methods. */
38
+ export type FSheetChartBuilderOf<T extends ChartTypeString> = HostComposedChartBuilder<IChartBuilderTypeMap<ChartSourceSpec, ChartSourceSpec, ISheetChartInfo>[T], ISheetChartMethods>;
39
+ /** @ignore */
40
+ export interface IFWorksheetChartMixin {
41
+ /**
42
+ * Creates a detached, type-specific Chart builder for this worksheet.
43
+ *
44
+ * @param {ChartTypeString} type The Chart type to create.
45
+ * @returns {FSheetChartBuilderOf<T>} A detached builder that produces insertable Sheet Chart information.
46
+ * @example
47
+ * ```ts
48
+ * const fWorkbook = univerAPI.getActiveWorkbook();
49
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
50
+ *
51
+ * const chartInfo = fWorksheet
52
+ * .newChart(univerAPI.Enum.ChartTypeString.Column)
53
+ * .setSource({
54
+ * range: 'A1:D8',
55
+ * orientation: univerAPI.Enum.ChartSourceOrientation.Columns,
56
+ * })
57
+ * .setPosition('F2')
58
+ * .setSize(640, 360)
59
+ * .setTitle('Quarterly sales')
60
+ * .build();
61
+ *
62
+ * const fChart = await fWorksheet.insertChart(chartInfo);
63
+ * console.log(fChart.getId());
64
+ * ```
65
+ */
66
+ newChart<T extends ChartTypeString>(type: T): FSheetChartBuilderOf<T>;
67
+ /**
68
+ * Inserts a Chart into this worksheet from detached Chart information.
69
+ *
70
+ * @param {ISheetChartInfo} info The Chart configuration, Sheet data source, and optional placement produced by a Chart builder.
71
+ * @returns {Promise<FSheetChart>} A live facade for the inserted Sheet Chart.
72
+ * @example
73
+ * ```ts
74
+ * const fWorkbook = univerAPI.getActiveWorkbook();
75
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
76
+ *
77
+ * const chartInfo = fWorksheet
78
+ * .newChart(univerAPI.Enum.ChartTypeString.Pie)
79
+ * .setSource('A1:B8')
80
+ * .setPosition('D2')
81
+ * .setSize(480, 320)
82
+ * .setDoughnutHole(0.4)
83
+ * .build();
84
+ *
85
+ * const fChart = await fWorksheet.insertChart(chartInfo);
86
+ * fChart.setPosition('E3');
87
+ * ```
88
+ */
89
+ insertChart(info: ISheetChartInfo): Promise<FSheetChart>;
90
+ /**
91
+ * Returns a Chart on this worksheet by its stable Chart identifier.
92
+ *
93
+ * @param {string} chartId The identifier returned by {@link FSheetChart.getId}.
94
+ * @returns {FSheetChart | null} A live Sheet Chart facade, or `null` if the Chart does not exist on this worksheet.
95
+ * @example
96
+ * ```ts
97
+ * const fWorkbook = univerAPI.getActiveWorkbook();
98
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
99
+ *
100
+ * const firstChart = fWorksheet.getCharts()[0];
101
+ * const fChart = firstChart ? fWorksheet.getChart(firstChart.getId()) : null;
102
+ * console.log(fChart?.getInfo());
103
+ * ```
104
+ */
105
+ getChart(chartId: string): FSheetChart | null;
106
+ /**
107
+ * Returns all Charts on this worksheet.
108
+ *
109
+ * @returns {FSheetChart[]} Live Sheet Chart facades in the worksheet's model order.
110
+ * @example
111
+ * ```ts
112
+ * const fWorkbook = univerAPI.getActiveWorkbook();
113
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
114
+ *
115
+ * const fCharts = fWorksheet.getCharts();
116
+ * fCharts.forEach((fChart) => {
117
+ * console.log(fChart.getId(), fChart.getInfo());
118
+ * });
119
+ * ```
120
+ */
121
+ getCharts(): FSheetChart[];
122
+ }
123
+ /** @ignore */
124
+ export declare class FWorksheetChartMixin extends FWorksheet implements IFWorksheetChartMixin {
125
+ newChart<T extends ChartTypeString>(type: T): FSheetChartBuilderOf<T>;
126
+ insertChart(info: ISheetChartInfo): Promise<FSheetChart>;
127
+ getChart(chartId: string): FSheetChart | null;
128
+ getCharts(): FSheetChart[];
129
+ private _chartSourceContext;
130
+ }
131
+ declare module '@univerjs/sheets/facade' {
132
+ interface FWorksheet extends IFWorksheetChartMixin {
133
+ }
134
+ }
@@ -1,4 +1,4 @@
1
- import './f-worksheet-charts';
1
+ import './f-worksheet';
2
2
  import './f-enum';
3
- export type { FSheetAnyChartBuilder, FSheetChartBuilder, FSheetChartBuilderOf, ISheetChartMethods } from './chart/f-sheet-chart-builder';
4
- export { FSheetCharts } from './chart/f-sheet-charts';
3
+ export { FSheetChart } from './f-chart';
4
+ export type { FSheetChartBuilderOf, ISheetChartMethods } from './f-worksheet';
@@ -1,13 +1,11 @@
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';
1
+ export { SheetChartConfigAdapter } from './chart-builder/sheet-chart-config-adapter';
2
+ export type { ISheetChartConfigAdapter, ISheetChartHostPatch, } from './chart-builder/sheet-chart-config-adapter';
5
3
  export type { ISheetChartDescriptionExtension } from './chart-builder/sheet-chart-description';
6
4
  export { resolveInitialChartPosition } from './chart-builder/sheet-chart-layout';
7
5
  export { resolveSourceSeries, resolveSourceSpec } from './chart-builder/sheet-chart-source';
8
6
  export type { ISheetChartSourceContext, } from './chart-builder/sheet-chart-source';
9
7
  export { ChartDiagnosticSeverity, ChartSourceKind, ChartSourceOrientation, } from './chart-builder/types';
10
- export type { ChartAnchorSpec, ChartSourceSpec, IChartCreateSpec, IChartDiagnostic, } from './chart-builder/types';
8
+ export type { ChartAnchorSpec, ChartSourceSpec, IChartCreateSpec, IChartDiagnostic, ISheetChartInfo, } from './chart-builder/types';
11
9
  export { ChartUpdateConfigCommand, ReplaceSheetChartConfig } from './commands/commands/sheets-chart-update-config.command';
12
10
  export type { IChartUpdateConfigCommandParams } from './commands/commands/sheets-chart-update-config.command';
13
11
  export { ChartUpdateSourceCommand } from './commands/commands/sheets-chart-update-source.command';
@@ -23,6 +23,7 @@ export declare class ChartModelService extends Disposable {
23
23
  createChartModel(id: string, options: IChartModelInit<ISheetChartDataSource>, isNew?: boolean): ChartModel<ISheetChartDataSource>;
24
24
  removeChartModel(id: string): void;
25
25
  generateChartModelContext(id: string, initializeSelection?: boolean): IChartContext | undefined;
26
+ reconcileChartModelContext(id: string): IChartContext | undefined;
26
27
  generateChartModelContextForDataSource(id: string, dataSource: ISheetChartDataSource): IChartContext | undefined;
27
28
  dispose(): void;
28
29
  }
@@ -32,6 +32,9 @@ export declare class SheetsChartService extends Disposable {
32
32
  orient: DataOrientation;
33
33
  chartType: ChartTypeBits;
34
34
  };
35
+ private _getPrimaryChartSuggestion;
36
+ private _hasSeries;
37
+ private _getSuggestionForOrientation;
35
38
  private _normalizeInitialRangeInfo;
36
39
  private _hasNonNumberCellInSingleRow;
37
40
  ensureChartModelCollection(unitId: string, subUnitId: string): Set<string>;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
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;}));
1
+ function _0x32da(_0x3d4098,_0x5e9ee2){_0x3d4098=_0x3d4098-0x7f;const _0x5e0658=_0x5e06();let _0x32da92=_0x5e0658[_0x3d4098];return _0x32da92;}(function(_0x113c08,_0x16b9fb){const _0x5a121a=_0x32da,_0x431c91=_0x113c08();while(!![]){try{const _0x3cd0f1=-parseInt(_0x5a121a(0xa1))/0x1+-parseInt(_0x5a121a(0x97))/0x2*(-parseInt(_0x5a121a(0xad))/0x3)+parseInt(_0x5a121a(0xc6))/0x4*(parseInt(_0x5a121a(0x8c))/0x5)+parseInt(_0x5a121a(0xd0))/0x6*(parseInt(_0x5a121a(0x96))/0x7)+-parseInt(_0x5a121a(0xc0))/0x8*(-parseInt(_0x5a121a(0x90))/0x9)+parseInt(_0x5a121a(0x81))/0xa*(-parseInt(_0x5a121a(0xb5))/0xb)+-parseInt(_0x5a121a(0xd1))/0xc*(parseInt(_0x5a121a(0xbc))/0xd);if(_0x3cd0f1===_0x16b9fb)break;else _0x431c91['push'](_0x431c91['shift']());}catch(_0x2a4dc2){_0x431c91['push'](_0x431c91['shift']());}}}(_0x5e06,0xeeda3),function(_0x154a40,_0x54cf1a){const _0x20d804=_0x32da;typeof exports=='object'&&typeof module<'u'?_0x54cf1a(exports,require('@univerjs-pro/engine-chart'),require('@univerjs-pro/engine-chart/facade'),require('@univerjs-pro/sheets-chart'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x20d804(0xbd)&&define[_0x20d804(0xa0)]?define([_0x20d804(0xa5),_0x20d804(0xcc),_0x20d804(0x9e),_0x20d804(0x9c),'@univerjs/core',_0x20d804(0xb2),'@univerjs/core/facade'],_0x54cf1a):(_0x154a40=typeof globalThis<'u'?globalThis:_0x154a40||self,_0x54cf1a(_0x154a40[_0x20d804(0xca)]={},_0x154a40[_0x20d804(0xc2)],_0x154a40['UniverProEngineChartFacade'],_0x154a40[_0x20d804(0xc7)],_0x154a40[_0x20d804(0x83)],_0x154a40[_0x20d804(0xb3)],_0x154a40['UniverCoreFacade']));}(this,function(_0x2678b9,_0x55555a,_0xce0752,_0x3875dd,_0x206f36,_0x2b435a,_0x4619b6){const _0x553b85=_0x32da;Object[_0x553b85(0xa4)](_0x2678b9,Symbol[_0x553b85(0xc9)],{'value':'Module'});var _0x5bcc4b=class extends _0xce0752[_0x553b85(0x8d)]{constructor(_0x479f7c,_0x5106ac,_0x4646bf,_0x358f33){const _0x130b8b=_0x553b85;super(_0x4646bf,()=>new _0x3875dd['SheetChartConfigAdapter']({'unitId':_0x479f7c,'subUnitId':_0x5106ac,'chartId':_0x4646bf,'injector':_0x358f33}),(_0x3c60ff,_0x1840bb,_0x3ddd0d)=>(0x0,_0xce0752[_0x130b8b(0xa7)])({'info':_0x3c60ff,'description':_0x1840bb,'type':_0x3ddd0d,'normalizeSource':_0x163766=>_0x163766,'extension':({setInfo:_0x52a120})=>({'setPosition'(_0x1d3b76){const _0x2ee796=_0x130b8b;return _0x52a120(_0x2ee796(0xd3),_0x1d3b76),this;}})}),_0x358f33),this[_0x130b8b(0xce)]=_0x479f7c,this['subUnitId']=_0x5106ac,this['chartId']=_0x4646bf;}[_0x553b85(0xa3)](){const _0x254e61=_0x553b85;var _0x19c4e1;return(_0x19c4e1=this['_injector'][_0x254e61(0x98)](_0x3875dd['SheetsChartService'])[_0x254e61(0xb1)](this[_0x254e61(0xc5)]))==null?void 0x0:_0x19c4e1[_0x254e61(0xb7)][_0x254e61(0x8b)]();}[_0x553b85(0xb4)](_0x404977){const _0x7626e6=_0x553b85;return this[_0x7626e6(0xab)]()[_0x7626e6(0xcd)]({'layout':{'anchor':_0x404977}}),this;}['_createSheetAdapter'](){const _0x33d2e4=_0x553b85;return new _0x3875dd['SheetChartConfigAdapter']({'unitId':this['unitId'],'subUnitId':this[_0x33d2e4(0xc8)],'chartId':this[_0x33d2e4(0xc5)],'injector':this[_0x33d2e4(0x94)]});}},_0x394ab6=class extends _0x2b435a['FWorksheet']{[_0x553b85(0xba)](_0x426f6c){const _0x3093ce=_0x553b85;return(0x0,_0xce0752[_0x3093ce(0xa7)])({'type':_0x426f6c,'injector':this['_injector'],'commitError':_0x3093ce(0xb0),'normalizeSource':_0x2b760a=>_0x2b760a,'createInfo':()=>({'anchor':void 0x0}),'extension':({setInfo:_0x21b24b})=>({'setPosition'(_0x43b6fa){const _0x2f2e99=_0x3093ce;return _0x21b24b(_0x2f2e99(0xd3),_0x43b6fa),this;}})});}async[_0x553b85(0xc3)](_0x15ae17){const _0xf20344=_0x553b85;var _0x48a1e1,_0xe44d36,_0x30a745;let {config:_0x2f6c6d,dataSource:_0x5e32ed,anchor:_0x5f2715,position:_0xc9837a,size:_0x335305}=_0x15ae17,_0x146c1a={..._0x2f6c6d,'source':_0x5e32ed,'anchor':_0x5f2715,'position':_0xc9837a,'size':_0x335305},_0x18710e=this['_chartSourceContext'](),_0x167376=[],_0x3f709c=(0x0,_0x3875dd['resolveSourceSpec'])(_0x146c1a['source'],_0x18710e,_0x167376);if(!_0x3f709c||_0x167376['some'](_0x1ff6cf=>_0x1ff6cf[_0xf20344(0xcf)]===_0x3875dd[_0xf20344(0x88)]['Error']))throw Error(_0x167376[_0xf20344(0xcb)](_0x24b9ad=>_0x24b9ad[_0xf20344(0x89)])[_0xf20344(0x9f)](';\x20')||_0xf20344(0xc1));let _0x1e8c47=(0x0,_0x206f36[_0xf20344(0xbe)])(),_0x1b528b=(0x0,_0x55555a['toChartModelConfig'])(_0x146c1a,{'series':(0x0,_0x3875dd[_0xf20344(0x92)])(_0x3f709c,_0x18710e,((_0x48a1e1=_0x146c1a[_0xf20344(0x91)])==null?void 0x0:_0x48a1e1[_0xf20344(0x8a)])??0x0)}),_0x10f866=(0x0,_0x3875dd[_0xf20344(0xa2)])({'unitId':_0x18710e[_0xf20344(0xce)],'subUnitId':_0x18710e[_0xf20344(0xc8)],'injector':this[_0xf20344(0x84)]()},_0x146c1a,_0x167376),_0x5c95ea={'unitId':_0x18710e[_0xf20344(0xce)],'subUnitId':_0x18710e[_0xf20344(0xc8)],'chartId':_0x1e8c47,'chartType':(0x0,_0x55555a[_0xf20344(0x9b)])(_0x146c1a[_0xf20344(0x85)]),'source':_0x3f709c['kind']===_0x3875dd['ChartSourceKind'][_0xf20344(0xb6)]?_0x3f709c[_0xf20344(0xa6)]:_0x3f709c[_0xf20344(0xb8)],'position':_0x10f866,'width':(_0xe44d36=_0x146c1a['size'])==null?void 0x0:_0xe44d36[_0xf20344(0xa9)],'height':(_0x30a745=_0x146c1a[_0xf20344(0x93)])==null?void 0x0:_0x30a745[_0xf20344(0x8f)],'theme':_0x146c1a[_0xf20344(0x87)]??void 0x0,'config':{'unitId':_0x18710e[_0xf20344(0xce)],'chartModelId':_0x1e8c47,'style':_0x1b528b[_0xf20344(0xb9)],'context':_0x1b528b[_0xf20344(0xbb)],'dataAggregation':_0x1b528b['dataAggregation']}};if(!await this[_0xf20344(0x84)]()['get'](_0x206f36['ICommandService'])[_0xf20344(0xac)](_0x3875dd['InsertChartCommand']['id'],_0x5c95ea))throw Error(_0xf20344(0x9d));return this[_0xf20344(0x94)]['createInstance'](_0x5bcc4b,_0x18710e[_0xf20344(0xce)],_0x18710e[_0xf20344(0xc8)],_0x1e8c47,this['_injector']);}[_0x553b85(0xbf)](_0x323256){const _0x161fba=_0x553b85;let {unitId:_0x434003,subUnitId:_0x3faa1f}=this[_0x161fba(0xa8)](),_0x2750d7=this[_0x161fba(0x84)]()['get'](_0x3875dd[_0x161fba(0x99)]);return _0x2750d7[_0x161fba(0xb1)](_0x323256)&&_0x2750d7[_0x161fba(0x7f)](_0x434003,_0x323256)===_0x3faa1f?this[_0x161fba(0x94)]['createInstance'](_0x5bcc4b,_0x434003,_0x3faa1f,_0x323256,this[_0x161fba(0x94)]):null;}['getCharts'](){const _0x5446f6=_0x553b85;let {unitId:_0x101c56,subUnitId:_0x10d41e}=this[_0x5446f6(0xa8)]();return this[_0x5446f6(0x84)]()['get'](_0x3875dd['SheetsChartService'])[_0x5446f6(0xaf)](_0x101c56,_0x10d41e)['filter'](Boolean)[_0x5446f6(0xcb)](_0x2ce37e=>this[_0x5446f6(0x94)]['createInstance'](_0x5bcc4b,_0x101c56,_0x10d41e,_0x2ce37e['id'],this[_0x5446f6(0x94)]));}['_chartSourceContext'](){const _0x49f655=_0x553b85;let _0x443811=this[_0x49f655(0x86)](),_0x187510=this[_0x49f655(0x84)]()[_0x49f655(0x98)](_0x3875dd['SheetsChartService']);return{'unitId':_0x443811[_0x49f655(0x9a)](),'subUnitId':this['getSheetId'](),'workbook':_0x443811,'resolveAutoIsRowDirection':_0x23b31d=>_0x187510[_0x49f655(0xd2)](_0x23b31d)[_0x49f655(0x95)]===_0x55555a[_0x49f655(0x80)]['Row']};}};_0x2b435a[_0x553b85(0x82)][_0x553b85(0xae)](_0x394ab6);var _0x5e8e6b=class extends _0x4619b6[_0x553b85(0x8e)]{get[_0x553b85(0xc4)](){const _0x22a78c=_0x553b85;return _0x3875dd[_0x22a78c(0xc4)];}};_0x4619b6[_0x553b85(0x8e)]['extend'](_0x5e8e6b),_0x2678b9[_0x553b85(0xaa)]=_0x5bcc4b;}));function _0x5e06(){const _0x6a7bed=['ChartDiagnosticSeverity','message','categoryIndex','getRangeInfo','2530uXdxfz','FChart','FEnum','height','1143vpYqFn','mapping','resolveSourceSeries','size','_injector','orient','12359753GzePVh','277394JvKYqD','get','SheetsChartService','getUnitId','chartTypeToBits','@univerjs-pro/sheets-chart','Failed\x20to\x20create\x20Sheet\x20chart.','@univerjs-pro/engine-chart/facade','join','amd','106671HJJfQM','resolveInitialChartPosition','getRange','defineProperty','exports','rangeInfo','createChartBuilder','_chartSourceContext','width','FSheetChart','_createSheetAdapter','executeCommand','3gjmCMW','extend','getUnitChartModels','Insert\x20the\x20Sheet\x20chart\x20before\x20updating\x20it.','getChartModel','@univerjs/sheets/facade','UniverSheetsFacade','setPosition','426921cQPQzS','Range','dataSource','ranges','style','newChart','context','13uNYUyj','function','generateRandomId','getChart','93344MovGvo','Invalid\x20Sheet\x20chart\x20source.','UniverProEngineChart','insertChart','ChartSourceOrientation','chartId','5660NmAWhM','UniverProSheetsChart','subUnitId','toStringTag','UniverProSheetsChartFacade','map','@univerjs-pro/engine-chart','commitHost','unitId','severity','6rHKYMs','26425932QncMzG','getChartSuggestion','anchor','getSubUnitId','DataOrientation','210DjBWbq','FWorksheet','UniverCore','getInject','type','getWorkbook','theme'];_0x5e06=function(){return _0x6a7bed;};return _0x5e06();}