@univerjs-pro/sheets-chart 1.0.0-alpha.8 → 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 (112) 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 -21
  68. package/lib/types/commands/chart-persisted-context.d.ts +3 -0
  69. package/lib/types/commands/commands/sheets-chart-update-config.command.d.ts +7 -3
  70. package/lib/types/commands/mutations/sheets-chart-update-config.mutation.d.ts +3 -3
  71. package/lib/types/common/util.d.ts +2 -0
  72. package/lib/types/config/config.d.ts +2 -2
  73. package/lib/types/facade/f-enum.d.ts +27 -0
  74. package/lib/types/facade/f-worksheet.d.ts +134 -0
  75. package/lib/types/facade/index.d.ts +3 -3
  76. package/lib/types/index.d.ts +8 -3
  77. package/lib/types/locale/en-US.d.ts +37 -2
  78. package/lib/types/plugin.d.ts +0 -1
  79. package/lib/types/services/chart-model.service.d.ts +13 -14
  80. package/lib/types/services/sheet-chart-range-watcher.d.ts +5 -5
  81. package/lib/types/services/sheets-chart.service.d.ts +7 -5
  82. package/lib/umd/facade.js +1 -1
  83. package/lib/umd/index.js +1 -1
  84. package/lib/umd/locale/ar-SA.js +1 -1
  85. package/lib/umd/locale/ca-ES.js +1 -1
  86. package/lib/umd/locale/de-DE.js +1 -1
  87. package/lib/umd/locale/en-US.js +1 -1
  88. package/lib/umd/locale/es-ES.js +1 -1
  89. package/lib/umd/locale/fa-IR.js +1 -1
  90. package/lib/umd/locale/fr-FR.js +1 -1
  91. package/lib/umd/locale/id-ID.js +1 -1
  92. package/lib/umd/locale/it-IT.js +1 -1
  93. package/lib/umd/locale/ja-JP.js +1 -1
  94. package/lib/umd/locale/ko-KR.js +1 -1
  95. package/lib/umd/locale/pl-PL.js +1 -1
  96. package/lib/umd/locale/pt-BR.js +1 -1
  97. package/lib/umd/locale/ru-RU.js +1 -1
  98. package/lib/umd/locale/sk-SK.js +1 -1
  99. package/lib/umd/locale/vi-VN.js +1 -1
  100. package/lib/umd/locale/zh-CN.js +1 -1
  101. package/lib/umd/locale/zh-HK.js +1 -1
  102. package/lib/umd/locale/zh-TW.js +1 -1
  103. package/package.json +10 -9
  104. package/lib/types/chart-builder/index.d.ts +0 -10
  105. package/lib/types/chart-builder/sheet-chart-builder.d.ts +0 -17
  106. package/lib/types/chart-builder/sheet-chart-create-spec.d.ts +0 -6
  107. package/lib/types/facade/chart/f-sheet-chart-builder.d.ts +0 -83
  108. package/lib/types/facade/chart/f-sheet-charts.d.ts +0 -100
  109. package/lib/types/facade/chart/index.d.ts +0 -2
  110. package/lib/types/facade/chart/sheet-chart-command-adapter.d.ts +0 -13
  111. package/lib/types/facade/f-worksheet-charts.d.ts +0 -12
  112. package/lib/types/models/chart-model.d.ts +0 -22
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x26b7(_0x197082,_0x55ad73){_0x197082=_0x197082-0x73;const _0x3b5270=_0x3b52();let _0x26b786=_0x3b5270[_0x197082];return _0x26b786;}(function(_0x1cbc65,_0x399dfa){const _0x454ba5=_0x26b7,_0x4660b1=_0x1cbc65();while(!![]){try{const _0x26f8d4=-parseInt(_0x454ba5(0xb0))/0x1+parseInt(_0x454ba5(0xa2))/0x2+parseInt(_0x454ba5(0xdb))/0x3*(parseInt(_0x454ba5(0xc9))/0x4)+parseInt(_0x454ba5(0x85))/0x5+-parseInt(_0x454ba5(0xa7))/0x6+-parseInt(_0x454ba5(0xdd))/0x7+-parseInt(_0x454ba5(0x9a))/0x8*(-parseInt(_0x454ba5(0xe1))/0x9);if(_0x26f8d4===_0x399dfa)break;else _0x4660b1['push'](_0x4660b1['shift']());}catch(_0x48d17c){_0x4660b1['push'](_0x4660b1['shift']());}}}(_0x3b52,0x70b94),function(_0x3df563,_0xb22fec){const _0xf9d7d7=_0x26b7;typeof exports==_0xf9d7d7(0xc1)&&typeof module<'u'?_0xb22fec(exports,require('@univerjs/sheets/facade'),require('@univerjs-pro/engine-chart'),require('@univerjs-pro/engine-chart/facade'),require('@univerjs-pro/sheets-chart'),require('@univerjs/core'),require('@univerjs/sheets-drawing'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define([_0xf9d7d7(0x9d),'@univerjs/sheets/facade',_0xf9d7d7(0xa1),_0xf9d7d7(0xe7),_0xf9d7d7(0x98),_0xf9d7d7(0xe5),_0xf9d7d7(0xe8),_0xf9d7d7(0x77)],_0xb22fec):(_0x3df563=typeof globalThis<'u'?globalThis:_0x3df563||self,_0xb22fec(_0x3df563['UniverProSheetsChartFacade']={},_0x3df563[_0xf9d7d7(0xe6)],_0x3df563[_0xf9d7d7(0xa8)],_0x3df563[_0xf9d7d7(0xe3)],_0x3df563[_0xf9d7d7(0xc5)],_0x3df563[_0xf9d7d7(0xcf)],_0x3df563[_0xf9d7d7(0xf1)],_0x3df563[_0xf9d7d7(0x97)]));}(this,function(_0x1029ff,_0x2069be,_0x871fac,_0x5b222b,_0x2315c9,_0x495054,_0xe6c7e0,_0x929416){const _0x2fd372=_0x26b7;Object[_0x2fd372(0xd7)](_0x1029ff,Symbol[_0x2fd372(0x84)],{'value':_0x2fd372(0xed)});function _0x20f097(_0x2b5e48){const _0x1af9d6=_0x2fd372;return class extends _0x2b5e48{get[_0x1af9d6(0xbe)](){const _0x43197c=_0x1af9d6;return this[_0x43197c(0xad)];}[_0x1af9d6(0xd1)](_0x361bb8){return this['_sheetBuilder']['setSource'](_0x361bb8),this;}[_0x1af9d6(0xca)](){const _0x1272fa=_0x1af9d6;return this[_0x1272fa(0xbe)][_0x1272fa(0xca)]();}[_0x1af9d6(0xc3)](_0x15713d){const _0x19fba3=_0x1af9d6;return this[_0x19fba3(0xbe)][_0x19fba3(0x79)]({'anchor':_0x15713d}),this;}[_0x1af9d6(0xc6)](_0x4faf5c,_0x2b171c){const _0x3f70e4=_0x1af9d6;return this[_0x3f70e4(0xbe)]['setLayout']({'position':{'x':_0x4faf5c,'y':_0x2b171c}}),this;}['setSize'](_0x119200,_0x3d7a2a){const _0x308602=_0x1af9d6;return this['_sheetBuilder'][_0x308602(0x79)]({'size':{'width':_0x119200,'height':_0x3d7a2a}}),this;}};}let _0x1c51f9=new _0x5b222b[(_0x2fd372(0x90))](_0x52a466=>_0x20f097(_0x52a466));var _0x376b81=class{constructor(_0x39ff01,_0x375cca,_0x5e6ad8,_0xf3ae7e){const _0x19ff06=_0x2fd372;this[_0x19ff06(0x9c)]=_0x39ff01,this[_0x19ff06(0x95)]=_0x375cca,this[_0x19ff06(0xa6)]=_0x5e6ad8,this[_0x19ff06(0xde)]=_0xf3ae7e;}[_0x2fd372(0x80)](){return this['chartId'];}[_0x2fd372(0xae)](){const _0x2034b5=_0x2fd372;return this[_0x2034b5(0xa6)];}['getRange'](){const _0x688b6e=_0x2fd372;var _0x7dadf5;return(_0x7dadf5=this[_0x688b6e(0xde)]['get'](_0x2315c9[_0x688b6e(0x81)])[_0x688b6e(0xaf)](this['chartId']))==null?void 0x0:_0x7dadf5[_0x688b6e(0xb3)][_0x688b6e(0xe9)]();}['updateRange'](_0x4a8afb){const _0x1e4543=_0x2fd372;return this[_0x1e4543(0xde)][_0x1e4543(0xa5)](_0x495054[_0x1e4543(0xf0)])[_0x1e4543(0xd4)](_0x2315c9[_0x1e4543(0x7b)]['id'],{'unitId':this['unitId'],'chartModelId':this[_0x1e4543(0xa6)],'range':_0x4a8afb});}[_0x2fd372(0x96)](){const _0x3ada8d=_0x2fd372;var _0x3dca66;return(_0x3dca66=this['_injector'][_0x3ada8d(0xa5)](_0x2315c9[_0x3ada8d(0x81)])[_0x3ada8d(0xaf)](this[_0x3ada8d(0xa6)]))==null||(_0x3dca66=_0x3dca66[_0x3ada8d(0xd2)])==null?void 0x0:_0x3dca66['series'];}[_0x2fd372(0xd6)](){const _0x57a648=_0x2fd372;var _0x19bd02;return(_0x19bd02=this[_0x57a648(0xde)]['get'](_0x2315c9[_0x57a648(0x81)])['getChartModel'](this['chartId']))==null||(_0x19bd02=_0x19bd02[_0x57a648(0xd2)])==null?void 0x0:_0x19bd02[_0x57a648(0xb9)];}async[_0x2fd372(0xb2)](_0x465eec){const _0x7ba405=_0x2fd372;var _0x1218c3,_0x407634,_0x33f9ac,_0x41fcf3;let _0x5b9a6a=this[_0x7ba405(0xde)][_0x7ba405(0xa5)](_0x2315c9[_0x7ba405(0x81)])[_0x7ba405(0xaf)](this[_0x7ba405(0xa6)]);if(!_0x5b9a6a||!this[_0x7ba405(0xde)][_0x7ba405(0xf2)](_0xe6c7e0['ISheetDrawingService']))return null;let _0x1e8b23=this[_0x7ba405(0xde)]['get'](_0xe6c7e0[_0x7ba405(0xec)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x7ba405(0x95)],'drawingId':this[_0x7ba405(0xa6)]}),_0x2488ae=(0x0,_0x871fac['resolveChartRenderModelImageExportInput'])({'runtime':{'chartId':this[_0x7ba405(0xa6)],'model':_0x5b9a6a},'direction':this[_0x7ba405(0xde)][_0x7ba405(0xa5)](_0x495054[_0x7ba405(0xc2)])['getDirection'](),'width':(_0x1218c3=_0x1e8b23==null||(_0x407634=_0x1e8b23[_0x7ba405(0xbb)])==null?void 0x0:_0x407634[_0x7ba405(0x75)])==null?0x0:_0x1218c3,'height':(_0x33f9ac=_0x1e8b23==null||(_0x41fcf3=_0x1e8b23[_0x7ba405(0xbb)])==null?void 0x0:_0x41fcf3['height'])==null?0x0:_0x33f9ac});return _0x2488ae?this[_0x7ba405(0xde)][_0x7ba405(0xa5)](_0x871fac['IChartRenderModelManagerService'])[_0x7ba405(0xb2)](_0x2488ae,_0x465eec):null;}[_0x2fd372(0xc4)](){const _0x4a679e=_0x2fd372;return this[_0x4a679e(0xde)]['get'](_0x495054[_0x4a679e(0xf0)])[_0x4a679e(0xd4)](_0xe6c7e0['RemoveSheetDrawingCommand']['id'],{'unitId':this[_0x4a679e(0x9c)],'drawings':[{'unitId':this[_0x4a679e(0x9c)],'subUnitId':this[_0x4a679e(0x95)],'drawingId':this[_0x4a679e(0xa6)],'drawingType':_0x495054[_0x4a679e(0x73)][_0x4a679e(0x8b)]}]});}},_0x3efd50=class{constructor(_0x5579b8){const _0x57dadd=_0x2fd372;this[_0x57dadd(0xea)]=_0x5579b8;}async[_0x2fd372(0x86)](_0x408aa7){const _0x532a8a=_0x2fd372;var _0x303fa0,_0x273773,_0x18bc7,_0x23eb3b,_0x4bf2cf;let _0x2ce965=this[_0x532a8a(0xc7)](),_0x2a613c=[],_0x435a49=(0x0,_0x2315c9['resolveSourceSpec'])(_0x408aa7[_0x532a8a(0xe4)],_0x2ce965,_0x2a613c);if(!_0x435a49||_0x2a613c[_0x532a8a(0xbf)](_0x4be1d8=>_0x4be1d8[_0x532a8a(0x94)]===_0x2315c9['ChartDiagnosticSeverity'][_0x532a8a(0x7e)]))throw Error(_0x2a613c[_0x532a8a(0xaa)](_0x42af08=>_0x42af08[_0x532a8a(0xdc)])[_0x532a8a(0xe0)](';\x20')||'Invalid\x20Sheet\x20chart\x20source.');let _0x21fd94=(0x0,_0x495054[_0x532a8a(0x76)])(),_0x24b4a0=(0x0,_0x871fac['toChartModelConfig'])(_0x408aa7,{'series':(0x0,_0x2315c9[_0x532a8a(0x7f)])(_0x435a49,_0x2ce965,(_0x303fa0=(_0x273773=_0x408aa7[_0x532a8a(0xf3)])==null?void 0x0:_0x273773[_0x532a8a(0x87)])==null?0x0:_0x303fa0)}),_0x3bed27=(0x0,_0x2315c9[_0x532a8a(0xcb)])({'unitId':_0x2ce965['unitId'],'subUnitId':_0x2ce965[_0x532a8a(0x95)],'injector':this['_worksheet'][_0x532a8a(0xda)]()},_0x408aa7,_0x2a613c),_0x3c267d={'unitId':_0x2ce965[_0x532a8a(0x9c)],'subUnitId':_0x2ce965['subUnitId'],'chartId':_0x21fd94,'chartType':(0x0,_0x871fac[_0x532a8a(0xb6)])(_0x408aa7[_0x532a8a(0xdf)]),'source':_0x435a49[_0x532a8a(0x8d)]===_0x2315c9['ChartSourceKind'][_0x532a8a(0x89)]?_0x435a49[_0x532a8a(0xcd)]:_0x435a49[_0x532a8a(0x82)],'position':_0x3bed27,'width':(_0x18bc7=_0x408aa7[_0x532a8a(0xba)])==null?void 0x0:_0x18bc7[_0x532a8a(0x75)],'height':(_0x23eb3b=_0x408aa7['size'])==null?void 0x0:_0x23eb3b[_0x532a8a(0x7c)],'theme':(_0x4bf2cf=_0x408aa7[_0x532a8a(0xe2)])==null?void 0x0:_0x4bf2cf,'config':{'unitId':_0x2ce965[_0x532a8a(0x9c)],'chartModelId':_0x21fd94,'style':_0x24b4a0[_0x532a8a(0xa9)],'context':_0x24b4a0[_0x532a8a(0x99)],'dataAggregation':_0x24b4a0['dataAggregation']}};if(!await this[_0x532a8a(0xea)][_0x532a8a(0xda)]()[_0x532a8a(0xa5)](_0x495054[_0x532a8a(0xf0)])[_0x532a8a(0xd4)](_0x2315c9['InsertChartCommand']['id'],_0x3c267d))throw Error(_0x532a8a(0xeb));return new _0x376b81(_0x2ce965[_0x532a8a(0x9c)],_0x2ce965[_0x532a8a(0x95)],_0x21fd94,this[_0x532a8a(0xea)][_0x532a8a(0xda)]());}['get'](_0x4a80df){const _0x10818b=_0x2fd372;let {unitId:_0x60aec6,subUnitId:_0x24379b}=this['_sourceContext'](),_0x4068b7=this[_0x10818b(0xea)]['getInject']()['get'](_0x2315c9[_0x10818b(0x81)]);return _0x4068b7['getChartModel'](_0x4a80df)&&_0x4068b7['getSubUnitId'](_0x60aec6,_0x4a80df)===_0x24379b?new _0x376b81(_0x60aec6,_0x24379b,_0x4a80df,this[_0x10818b(0xea)][_0x10818b(0xda)]()):null;}['list'](){const _0x3804af=_0x2fd372;let {unitId:_0x1914d2,subUnitId:_0x2aaee9}=this[_0x3804af(0xc7)]();return this[_0x3804af(0xea)][_0x3804af(0xda)]()[_0x3804af(0xa5)](_0x2315c9['SheetsChartService'])[_0x3804af(0xd5)](_0x1914d2,_0x2aaee9)[_0x3804af(0x7a)](Boolean)[_0x3804af(0xaa)](_0x1ca084=>new _0x376b81(_0x1914d2,_0x2aaee9,_0x1ca084['id'],this[_0x3804af(0xea)][_0x3804af(0xda)]()));}[_0x2fd372(0xc4)](_0x5b1ca6){const _0x50d8f5=_0x2fd372;let _0x17c5e6=typeof _0x5b1ca6=='string'?this[_0x50d8f5(0xa5)](_0x5b1ca6):_0x5b1ca6;return _0x17c5e6?this['_worksheet']['getInject']()['get'](_0x495054[_0x50d8f5(0xf0)])['executeCommand'](_0xe6c7e0[_0x50d8f5(0xb4)]['id'],{'unitId':_0x17c5e6[_0x50d8f5(0x9c)],'drawings':[{'unitId':_0x17c5e6[_0x50d8f5(0x9c)],'subUnitId':_0x17c5e6[_0x50d8f5(0x95)],'drawingId':_0x17c5e6[_0x50d8f5(0xa6)],'drawingType':_0x495054[_0x50d8f5(0x73)][_0x50d8f5(0x8b)]}]}):Promise['resolve'](!0x1);}[_0x2fd372(0xc7)](){const _0x2c48ee=_0x2fd372;let _0x20cf5d=this[_0x2c48ee(0xea)][_0x2c48ee(0xef)](),_0x25bb50=this['_worksheet'][_0x2c48ee(0xda)]()[_0x2c48ee(0xa5)](_0x2315c9[_0x2c48ee(0x81)]);return{'unitId':_0x20cf5d[_0x2c48ee(0x88)](),'subUnitId':this['_worksheet'][_0x2c48ee(0xcc)](),'workbook':_0x20cf5d,'resolveAutoIsRowDirection':_0x51b90c=>_0x25bb50[_0x2c48ee(0xb7)](_0x51b90c)[_0x2c48ee(0xa0)]===_0x871fac[_0x2c48ee(0x9b)]['Row']};}};function _0x1a1b05(_0x21c91b){'@babel/helpers - typeof';const _0x2d66e1=_0x2fd372;return _0x1a1b05=typeof Symbol==_0x2d66e1(0x92)&&typeof Symbol[_0x2d66e1(0xbc)]==_0x2d66e1(0x8e)?function(_0x4d8e26){return typeof _0x4d8e26;}:function(_0x3f032a){const _0x2c67a3=_0x2d66e1;return _0x3f032a&&typeof Symbol==_0x2c67a3(0x92)&&_0x3f032a[_0x2c67a3(0xc0)]===Symbol&&_0x3f032a!==Symbol['prototype']?_0x2c67a3(0x8e):typeof _0x3f032a;},_0x1a1b05(_0x21c91b);}function _0x28f907(_0x14b136,_0x1672e7){const _0x963c66=_0x2fd372;if(_0x1a1b05(_0x14b136)!=_0x963c66(0xc1)||!_0x14b136)return _0x14b136;var _0x3d68ac=_0x14b136[Symbol[_0x963c66(0xbd)]];if(_0x3d68ac!==void 0x0){var _0x1063b4=_0x3d68ac[_0x963c66(0xce)](_0x14b136,_0x1672e7||'default');if(_0x1a1b05(_0x1063b4)!=_0x963c66(0xc1))return _0x1063b4;throw TypeError(_0x963c66(0x93));}return(_0x1672e7===_0x963c66(0xa3)?String:Number)(_0x14b136);}function _0x4f5db1(_0x4031fa){const _0xda8df0=_0x2fd372;var _0x131d59=_0x28f907(_0x4031fa,_0xda8df0(0xa3));return _0x1a1b05(_0x131d59)==_0xda8df0(0x8e)?_0x131d59:_0x131d59+'';}function _0x106506(_0x763d07,_0x383bed,_0x26c28b){const _0xd0c1fe=_0x2fd372;return(_0x383bed=_0x4f5db1(_0x383bed))in _0x763d07?Object[_0xd0c1fe(0xd7)](_0x763d07,_0x383bed,{'value':_0x26c28b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x763d07[_0x383bed]=_0x26c28b,_0x763d07;}var _0x411bd9=class extends _0x871fac[_0x2fd372(0xd8)]{constructor(_0x54a277,_0x2042e1){super(_0x54a277,'Insert\x20the\x20Sheet\x20chart\x20before\x20calling\x20commit().'),this['_resolveSource']=_0x2042e1;}[_0x2fd372(0xb8)](_0x2ad9cd){const _0x497c42=_0x2fd372;return this[_0x497c42(0xb1)]();}[_0x2fd372(0xb5)](_0xbc7b0d){const _0x26320d=_0x2fd372;return this[_0x26320d(0x78)](_0xbc7b0d);}},_0x17b2e6=class extends _0x5b222b[_0x2fd372(0x91)]{constructor(_0x3b3e7b){const _0x28c8d4=_0x2fd372;super(),this[_0x28c8d4(0xea)]=_0x3b3e7b,_0x106506(this,_0x28c8d4(0x74),void 0x0),this[_0x28c8d4(0x74)]=new _0x3efd50(_0x3b3e7b);}[_0x2fd372(0x86)](){const _0x6cbdf7=_0x2fd372;let _0x22e92e=(0x0,_0x495054[_0x6cbdf7(0x76)])(),_0x3e763a={'id':_0x22e92e,'type':_0x871fac[_0x6cbdf7(0xd0)],'series':{}},_0x44aaa4=new _0x2315c9['SheetChartBuilder'](_0x22e92e,_0x3e763a,new _0x411bd9(_0x3e763a,_0x42b2d4=>new _0x2315c9['SheetChartBuilderAdapter']({'unitId':this[_0x6cbdf7(0xea)]['getWorkbook']()['getUnitId'](),'subUnitId':this[_0x6cbdf7(0xea)]['getSheetId'](),'chartId':_0x22e92e,'injector':this[_0x6cbdf7(0xea)][_0x6cbdf7(0xda)]()})[_0x6cbdf7(0xb5)](_0x42b2d4)));return _0x1c51f9[_0x6cbdf7(0x86)](_0x44aaa4,_0x5b222b['FChartBuilderBase']);}async[_0x2fd372(0x8c)](_0x39c8c7){const _0x1d3246=_0x2fd372;let _0x45bdd3=_0x39c8c7[_0x1d3246(0x8f)]();if(!_0x45bdd3[_0x1d3246(0xe4)])throw Error(_0x1d3246(0xd9));let _0x1a607c=(0x0,_0x2315c9['toSheetChartCreateSpec'])(_0x45bdd3,(0x0,_0x5b222b[_0x1d3246(0xab)])(_0x39c8c7)),_0x2bdbae=await this[_0x1d3246(0x74)]['create'](_0x1a607c);return this[_0x1d3246(0xac)](_0x2bdbae);}[_0x2fd372(0xa5)](_0x19c02c){const _0xe28f78=_0x2fd372;let _0x1307e0=this[_0xe28f78(0x74)]['get'](_0x19c02c);return _0x1307e0?this['_wrap'](_0x1307e0):null;}[_0x2fd372(0xc8)](){const _0x116962=_0x2fd372;return this[_0x116962(0x74)][_0x116962(0xc8)]()[_0x116962(0xaa)](_0x5711c1=>this[_0x116962(0xac)](_0x5711c1));}[_0x2fd372(0xc4)](_0x75274f){const _0x1a14c8=_0x2fd372;return this['_commands']['remove'](typeof _0x75274f==_0x1a14c8(0xa3)?_0x75274f:_0x75274f[_0x1a14c8(0xae)]());}[_0x2fd372(0x9e)](_0xfa7362,_0x366574){const _0x130103=_0x2fd372;this['_worksheet'][_0x130103(0xda)]()['get'](_0x871fac[_0x130103(0xa4)])[_0x130103(0x9e)](_0xfa7362,_0x366574);}['_wrap'](_0x4402d3){const _0x2a45f6=_0x2fd372;let _0x49c7d2=new _0x2315c9[(_0x2a45f6(0xee))]({'unitId':_0x4402d3[_0x2a45f6(0x9c)],'subUnitId':_0x4402d3[_0x2a45f6(0x95)],'chartId':_0x4402d3['chartId'],'injector':this[_0x2a45f6(0xea)][_0x2a45f6(0xda)]()}),_0x37039b=_0x49c7d2['describe'](),_0x51ac91=new _0x2315c9[(_0x2a45f6(0xd3))](_0x4402d3[_0x2a45f6(0xae)](),_0x37039b,_0x49c7d2),_0x19670b=(0x0,_0x5b222b['getChartBuilderConstructor'])(_0x37039b[_0x2a45f6(0xdf)]);return _0x1c51f9[_0x2a45f6(0x86)](_0x51ac91,_0x19670b);}},_0x12135c=class extends _0x2069be[_0x2fd372(0x83)]{get[_0x2fd372(0x9f)](){return new _0x17b2e6(this);}};_0x2069be[_0x2fd372(0x83)][_0x2fd372(0x7d)](_0x12135c);var _0xbba18c=class extends _0x929416['FEnum']{get[_0x2fd372(0x8a)](){const _0x522cae=_0x2fd372;return _0x2315c9[_0x522cae(0x8a)];}};_0x929416['FEnum'][_0x2fd372(0x7d)](_0xbba18c),_0x1029ff['FSheetCharts']=_0x17b2e6;}));function _0x3b52(){const _0x1d4983=['getInject','6QKGsvc','message','1981833wXCdNE','_injector','type','join','74259ZhhfEX','theme','UniverProEngineChartFacade','source','@univerjs/core','UniverSheetsFacade','@univerjs-pro/engine-chart/facade','@univerjs/sheets-drawing','getRangeInfo','_worksheet','Failed\x20to\x20create\x20Sheet\x20chart.','ISheetDrawingService','Module','SheetChartBuilderAdapter','getWorkbook','ICommandService','UniverSheetsDrawing','has','mapping','DrawingTypeEnum','_commands','width','generateRandomId','@univerjs/core/facade','_resolveSource','setLayout','filter','ChartUpdateSourceCommand','height','extend','Error','resolveSourceSeries','getChartId','SheetsChartService','ranges','FWorksheet','toStringTag','3647425NMNcNG','create','categoryIndex','getUnitId','Range','ChartSourceOrientation','DRAWING_CHART','insert','kind','symbol','describe','HostBuilderComposer','FChartsBase','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','severity','subUnitId','getSeriesData','UniverCoreFacade','@univerjs-pro/sheets-chart','context','152xiLQMl','DataOrientation','unitId','exports','registerTheme','charts','orient','@univerjs-pro/engine-chart','798968Knubui','string','ChartThemeService','get','chartId','5526444rTdzCD','UniverProEngineChart','style','map','getChartBuilderPendingConfig','_wrap','_builder','getId','getChartModel','205683egnYaW','rejectCommit','exportImage','dataSource','RemoveSheetDrawingCommand','resolveSource','chartTypeToBits','getChartSuggestion','commitHost','category','size','transform','iterator','toPrimitive','_sheetBuilder','some','constructor','object','LocaleService','setPosition','remove','UniverProSheetsChart','setAbsolutePosition','_sourceContext','list','1171708xHacWj','getSource','resolveInitialChartPosition','getSheetId','rangeInfo','call','UniverCore','DEFAULT_CHART_TYPE','setSource','config','SheetChartBuilder','executeCommand','getUnitChartModels','getCategoryData','defineProperty','DetachedChartBuilderAdapter','Sheet\x20chart\x20source\x20is\x20required\x20before\x20insert().'];_0x3b52=function(){return _0x1d4983;};return _0x3b52();}
1
+ function _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();}