@univerjs-pro/sheets-chart 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/chart-builder/index.d.ts +10 -0
- package/lib/types/chart-builder/sheet-chart-builder-adapter.d.ts +41 -0
- package/lib/types/chart-builder/sheet-chart-builder.d.ts +17 -0
- package/lib/types/chart-builder/sheet-chart-create-spec.d.ts +6 -0
- package/lib/types/chart-builder/sheet-chart-description.d.ts +5 -0
- package/lib/types/chart-builder/sheet-chart-layout.d.ts +21 -0
- package/lib/types/chart-builder/sheet-chart-source.d.ts +32 -0
- package/lib/types/chart-builder/types.d.ts +159 -0
- package/lib/types/chart-source/chart-source.d.ts +14 -7
- package/lib/types/commands/commands/sheets-chart-update-config.command.d.ts +2 -0
- package/lib/types/commands/commands/sheets-chart.command.d.ts +3 -4
- package/lib/types/commands/mutations/sheets-chart-update-config.mutation.d.ts +1 -0
- package/lib/types/commands/mutations/sheets-chart.mutation.d.ts +15 -5
- package/lib/types/common/util.d.ts +1 -1
- package/lib/types/facade/chart/f-sheet-chart-builder.d.ts +83 -0
- package/lib/types/facade/chart/f-sheet-charts.d.ts +100 -0
- package/lib/types/facade/chart/index.d.ts +2 -0
- package/lib/types/facade/chart/sheet-chart-command-adapter.d.ts +13 -0
- package/lib/types/facade/f-chart.d.ts +1 -143
- package/lib/types/facade/f-enum.d.ts +7 -205
- package/lib/types/facade/f-worksheet-charts.d.ts +3 -19
- package/lib/types/facade/index.d.ts +3 -23
- package/lib/types/index.d.ts +7 -6
- package/lib/types/models/chart-model.d.ts +3 -3
- package/lib/types/models/types.d.ts +14 -1
- package/lib/types/plugin.d.ts +1 -0
- package/lib/types/services/chart-model.service.d.ts +2 -0
- package/lib/types/services/sheet-chart-range-watcher.d.ts +22 -0
- package/lib/types/services/sheets-chart.service.d.ts +8 -8
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +10 -10
- package/lib/types/facade/chart-builder/builder-util.d.ts +0 -5
- package/lib/types/facade/chart-builder/chart-builder-base.d.ts +0 -919
- package/lib/types/facade/chart-builder/line-chart-builder.d.ts +0 -165
- package/lib/types/facade/chart-builder/pie-chart-builder.d.ts +0 -196
- package/lib/types/facade/chart-builder/radar-chart-builder.d.ts +0 -100
- package/lib/types/facade/chart-builder/types.d.ts +0 -34
- package/lib/types/facade/chart-facade-adapter.d.ts +0 -58
- package/lib/types/facade/chart-facade-builders.d.ts +0 -62
- package/lib/types/facade/chart-facade-types.d.ts +0 -393
- package/lib/types/facade/f-worksheet.d.ts +0 -205
package/lib/locale/it-IT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x378c(_0x4e7320,_0x28d248){_0x4e7320=_0x4e7320-0x1da;const _0x1b0095=_0x1b00();let _0x378c82=_0x1b0095[_0x4e7320];return _0x378c82;}const _0x2ce94b=_0x378c;(function(_0x5eb041,_0x19cf1f){const _0x16f39e=_0x378c,_0x50f61e=_0x5eb041();while(!![]){try{const _0x300786=-parseInt(_0x16f39e(0x1f0))/0x1*(-parseInt(_0x16f39e(0x1ee))/0x2)+-parseInt(_0x16f39e(0x1eb))/0x3+parseInt(_0x16f39e(0x1ed))/0x4+-parseInt(_0x16f39e(0x1ec))/0x5+-parseInt(_0x16f39e(0x1f1))/0x6+parseInt(_0x16f39e(0x1db))/0x7*(-parseInt(_0x16f39e(0x1ef))/0x8)+parseInt(_0x16f39e(0x1e4))/0x9;if(_0x300786===_0x19cf1f)break;else _0x50f61e['push'](_0x50f61e['shift']());}catch(_0x3005e3){_0x50f61e['push'](_0x50f61e['shift']());}}}(_0x1b00,0x25eac));const e={'sheets-chart':{'category':'Categoria','series':_0x2ce94b(0x1e9),'seriesDefaultName':_0x2ce94b(0x1f2),'categoryDefaultName':_0x2ce94b(0x1dc),'blank':_0x2ce94b(0x1dd),'msg':{'emptyTips':_0x2ce94b(0x1e2),'sankeyCircularTips':_0x2ce94b(0x1da)},'bubble':{'emptyTips':_0x2ce94b(0x1e6)},'relation':{'emptyTips':_0x2ce94b(0x1ea)},'cloud':{'word':'Parola','frequency':_0x2ce94b(0x1e1)},'waterfall':{'positive':'Positivo','negative':_0x2ce94b(0x1e8),'subtotal':_0x2ce94b(0x1f3)},'pareto':{'lineName':_0x2ce94b(0x1e7)},'boxplot':{'min':_0x2ce94b(0x1e5),'q1':_0x2ce94b(0x1df),'median':_0x2ce94b(0x1e0),'q3':_0x2ce94b(0x1de),'max':_0x2ce94b(0x1e3)}}};export{e as default};function _0x1b00(){const _0x208292=['1iqzlZw','1181412NHePqA','Serie\x20{0}','Subtotale','Il\x20grafico\x20di\x20Sankey\x20non\x20può\x20contenere\x20dati\x20circolari','27846OPpRWX','Categoria\x20{0}','(Vuoto)','Terzo\x20quartile','Primo\x20quartile','Mediana','Frequenza','Aggiungi\x20una\x20serie\x20per\x20iniziare\x20a\x20visualizzare\x20i\x20dati','Massimo','5987133LoAVZW','Minimo','Il\x20grafico\x20a\x20bolle\x20richiede\x20almeno\x202\x20colonne:\x20asse\x20X,\x20asse\x20Y','Percentuale\x20cumulativa','Negativo','Serie','La\x20fonte\x20dati\x20per\x20il\x20grafico\x20delle\x20relazioni\x20è\x20la\x20matrice\x20di\x20co-occorrenze\x20con\x20la\x20colonna\x20tipo\x20aggiuntiva\x20nella\x20seconda\x20colonna','486375ZYGflW','1501745HPsjGw','725368Kykyny','278318sntUvH','344PjIKob'];_0x1b00=function(){return _0x208292;};return _0x1b00();}
|
package/lib/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x519175=_0x2f4f;(function(_0x154f06,_0x241279){const _0x3b68de=_0x2f4f,_0x19eb90=_0x154f06();while(!![]){try{const _0x9a8a9e=parseInt(_0x3b68de(0x7b))/0x1+-parseInt(_0x3b68de(0x78))/0x2+parseInt(_0x3b68de(0x7f))/0x3+-parseInt(_0x3b68de(0x83))/0x4*(-parseInt(_0x3b68de(0x7a))/0x5)+-parseInt(_0x3b68de(0x75))/0x6*(parseInt(_0x3b68de(0x7e))/0x7)+parseInt(_0x3b68de(0x80))/0x8+-parseInt(_0x3b68de(0x81))/0x9;if(_0x9a8a9e===_0x241279)break;else _0x19eb90['push'](_0x19eb90['shift']());}catch(_0x1f57df){_0x19eb90['push'](_0x19eb90['shift']());}}}(_0x1092,0x9611c));function _0x2f4f(_0x1f7e6f,_0x535892){_0x1f7e6f=_0x1f7e6f-0x73;const _0x1092c7=_0x1092();let _0x2f4f10=_0x1092c7[_0x1f7e6f];return _0x2f4f10;}function _0x1092(){const _0x393404=['系列{0}','70386OqTjDo','(空白)','関係図のデータソースは、2列目に追加のタイプ列を含む共起行列です','1980386xIrkcK','累積パーセンテージ','290wSqHYf','594403RvDOhA','項目{0}','バブルチャートには少なくとも2列必要です:\x20横軸、縦軸','210CrmrUb','3157752nFplLe','8159272yKykjI','7209819qwTRZC','最大値','6276jYQWQb','最小値','系列を追加してデータの可視化を開始してください','第3四分位数'];_0x1092=function(){return _0x393404;};return _0x1092();}const e={'sheets-chart':{'category':'カテゴリ','series':'系列','seriesDefaultName':_0x519175(0x74),'categoryDefaultName':_0x519175(0x7c),'blank':_0x519175(0x76),'msg':{'emptyTips':_0x519175(0x85),'sankeyCircularTips':'サンキー図には循環データを含めることはできません'},'bubble':{'emptyTips':_0x519175(0x7d)},'relation':{'emptyTips':_0x519175(0x77)},'cloud':{'word':'単語','frequency':'頻度'},'waterfall':{'positive':'正の値','negative':'負の値','subtotal':'小計'},'pareto':{'lineName':_0x519175(0x79)},'boxplot':{'min':_0x519175(0x84),'q1':'第1四分位数','median':'中央値','q3':_0x519175(0x73),'max':_0x519175(0x82)}}};export{e as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x22a3(){const _0x57c427=['681536DxNszX','3732123JOGhiB','부분합','거품형\x20차트는\x20가로\x20축,\x20세로\x20축\x20등\x20최소\x202개의\x20열이\x20필요합니다','계열을\x20추가하여\x20데이터\x20시각화를\x20시작하세요','15444630uDaDjZ','생키\x20차트에는\x20순환형\x20데이터를\x20포함할\x20수\x20없습니다','관계형\x20차트\x20데이터\x20원본은\x20두\x20번째\x20열에\x20추가\x20유형\x20열이\x20포함된\x20동시\x20발생\x20행렬입니다','계열{0}','1590500rDqAet','최소값','4556592teucQx','최대값','2CtirDw','카테고리','49xAJKAj','중앙값','1215192NfhFxW','항목{0}','361181mxusJB','제1사분위수'];_0x22a3=function(){return _0x57c427;};return _0x22a3();}function _0x25b1(_0x522cd3,_0x50a4f7){_0x522cd3=_0x522cd3-0x122;const _0x22a30b=_0x22a3();let _0x25b165=_0x22a30b[_0x522cd3];return _0x25b165;}const _0x483b6a=_0x25b1;(function(_0x51073e,_0xf63763){const _0x508494=_0x25b1,_0x33cfb2=_0x51073e();while(!![]){try{const _0x1698fa=-parseInt(_0x508494(0x125))/0x1+parseInt(_0x508494(0x134))/0x2*(parseInt(_0x508494(0x128))/0x3)+parseInt(_0x508494(0x127))/0x4+-parseInt(_0x508494(0x130))/0x5+-parseInt(_0x508494(0x132))/0x6+-parseInt(_0x508494(0x136))/0x7*(parseInt(_0x508494(0x123))/0x8)+parseInt(_0x508494(0x12c))/0x9;if(_0x1698fa===_0xf63763)break;else _0x33cfb2['push'](_0x33cfb2['shift']());}catch(_0x10c21c){_0x33cfb2['push'](_0x33cfb2['shift']());}}}(_0x22a3,0x99709));const e={'sheets-chart':{'category':_0x483b6a(0x135),'series':'계열','seriesDefaultName':_0x483b6a(0x12f),'categoryDefaultName':_0x483b6a(0x124),'blank':'(비어\x20있음)','msg':{'emptyTips':_0x483b6a(0x12b),'sankeyCircularTips':_0x483b6a(0x12d)},'bubble':{'emptyTips':_0x483b6a(0x12a)},'relation':{'emptyTips':_0x483b6a(0x12e)},'cloud':{'word':'단어','frequency':'빈도'},'waterfall':{'positive':'양수','negative':'음수','subtotal':_0x483b6a(0x129)},'pareto':{'lineName':'누적\x20백분율'},'boxplot':{'min':_0x483b6a(0x131),'q1':_0x483b6a(0x126),'median':_0x483b6a(0x122),'q3':'제3사분위수','max':_0x483b6a(0x133)}}};export{e as default};
|
package/lib/locale/pl-PL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x41dafd=_0x44e7;function _0x44e7(_0x100ee2,_0x4e36c2){_0x100ee2=_0x100ee2-0x14e;const _0x4f5b0f=_0x4f5b();let _0x44e787=_0x4f5b0f[_0x100ee2];return _0x44e787;}(function(_0x81f197,_0x1519df){const _0x4f93a0=_0x44e7,_0x41484c=_0x81f197();while(!![]){try{const _0x38d9a7=parseInt(_0x4f93a0(0x15f))/0x1*(parseInt(_0x4f93a0(0x162))/0x2)+parseInt(_0x4f93a0(0x14f))/0x3*(-parseInt(_0x4f93a0(0x166))/0x4)+parseInt(_0x4f93a0(0x165))/0x5*(parseInt(_0x4f93a0(0x15d))/0x6)+-parseInt(_0x4f93a0(0x152))/0x7*(-parseInt(_0x4f93a0(0x156))/0x8)+parseInt(_0x4f93a0(0x157))/0x9+-parseInt(_0x4f93a0(0x15b))/0xa+-parseInt(_0x4f93a0(0x155))/0xb;if(_0x38d9a7===_0x1519df)break;else _0x41484c['push'](_0x41484c['shift']());}catch(_0x497f75){_0x41484c['push'](_0x41484c['shift']());}}}(_0x4f5b,0x1f890));const e={'sheets-chart':{'category':'Kategoria','series':'Seria','seriesDefaultName':_0x41dafd(0x159),'categoryDefaultName':_0x41dafd(0x151),'blank':_0x41dafd(0x15c),'msg':{'emptyTips':'Dodaj\x20serię,\x20aby\x20rozpocząć\x20wizualizację\x20danych','sankeyCircularTips':_0x41dafd(0x14e)},'bubble':{'emptyTips':_0x41dafd(0x164)},'relation':{'emptyTips':'Źródło\x20danych\x20dla\x20wykresu\x20relacji\x20to\x20macierz\x20współwystępowania\x20z\x20dodatkową\x20kolumną\x20typu\x20w\x20drugiej\x20kolumnie'},'cloud':{'word':_0x41dafd(0x15a),'frequency':_0x41dafd(0x153)},'waterfall':{'positive':'Dodatnie','negative':_0x41dafd(0x15e),'subtotal':_0x41dafd(0x160)},'pareto':{'lineName':_0x41dafd(0x161)},'boxplot':{'min':'Minimum','q1':_0x41dafd(0x158),'median':_0x41dafd(0x150),'q3':_0x41dafd(0x163),'max':_0x41dafd(0x154)}}};export{e as default};function _0x4f5b(){const _0x5e0690=['Trzeci\x20kwartyl','Wykres\x20bąbelkowy\x20wymaga\x20co\x20najmniej\x202\x20kolumn:\x20oś\x20X,\x20oś\x20Y','21485hHYbJZ','10852NyxOvi','Wykres\x20Sankeya\x20nie\x20może\x20zawierać\x20danych\x20cyklicznych','93jZJjQm','Mediana','Kategoria\x20{0}','7FCDbyn','Częstotliwość','Maksimum','6591673GJboUD','1780280DVySVL','2294145CpzNZN','Pierwszy\x20kwartyl','Seria\x20{0}','Słowo','567570aGzoyY','(Puste)','258nFYKqv','Ujemne','9860dEOJCk','Suma\x20częściowa','Skumulowany\x20procent','42MjtCOO'];_0x4f5b=function(){return _0x5e0690;};return _0x4f5b();}
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x22a935=_0x2cc4;(function(_0x45731d,_0x3ed5a9){const _0x58ccb8=_0x2cc4,_0x3f1ba8=_0x45731d();while(!![]){try{const _0x153c35=-parseInt(_0x58ccb8(0x11f))/0x1*(parseInt(_0x58ccb8(0x126))/0x2)+-parseInt(_0x58ccb8(0x127))/0x3+-parseInt(_0x58ccb8(0x123))/0x4+-parseInt(_0x58ccb8(0x122))/0x5+-parseInt(_0x58ccb8(0x12d))/0x6*(parseInt(_0x58ccb8(0x117))/0x7)+parseInt(_0x58ccb8(0x120))/0x8*(parseInt(_0x58ccb8(0x11d))/0x9)+parseInt(_0x58ccb8(0x12e))/0xa;if(_0x153c35===_0x3ed5a9)break;else _0x3f1ba8['push'](_0x3f1ba8['shift']());}catch(_0x158b5e){_0x3f1ba8['push'](_0x3f1ba8['shift']());}}}(_0x35ad,0xe0c93));function _0x2cc4(_0x486715,_0xa2ffe6){_0x486715=_0x486715-0x116;const _0x35ad10=_0x35ad();let _0x2cc4b5=_0x35ad10[_0x486715];return _0x2cc4b5;}const e={'sheets-chart':{'category':_0x22a935(0x118),'series':'Série','seriesDefaultName':_0x22a935(0x12b),'categoryDefaultName':_0x22a935(0x116),'blank':_0x22a935(0x125),'msg':{'emptyTips':_0x22a935(0x12c),'sankeyCircularTips':'O\x20gráfico\x20de\x20Sankey\x20não\x20pode\x20conter\x20dados\x20circulares'},'bubble':{'emptyTips':_0x22a935(0x128)},'relation':{'emptyTips':_0x22a935(0x11a)},'cloud':{'word':'Palavra','frequency':_0x22a935(0x121)},'waterfall':{'positive':_0x22a935(0x11c),'negative':_0x22a935(0x124),'subtotal':_0x22a935(0x11e)},'pareto':{'lineName':_0x22a935(0x119)},'boxplot':{'min':'Mínimo','q1':_0x22a935(0x11b),'median':_0x22a935(0x129),'q3':'Terceiro\x20quartil','max':_0x22a935(0x12a)}}};export{e as default};function _0x35ad(){const _0xb1fe92=['Primeiro\x20quartil','Positivo','81ydvhBU','Subtotal','33802jVnBRj','1571160VgfXWc','Frequência','5067360yTqFJS','4804256QTaKRO','Negativo','(Vazio)','42VcgGLg','978045RMjqlA','O\x20gráfico\x20de\x20bolhas\x20requer\x20pelo\x20menos\x202\x20colunas:\x20Eixo\x20X,\x20Eixo\x20Y','Mediana','Máximo','Série\x20{0}','Adicione\x20uma\x20série\x20para\x20começar\x20a\x20visualizar\x20seus\x20dados','607962hcMapo','39234660ipQXHk','Categoria\x20{0}','105GMBQrF','Categoria','Porcentagem\x20Cumulativa','A\x20fonte\x20de\x20dados\x20para\x20o\x20gráfico\x20de\x20relacionamento\x20é\x20a\x20matriz\x20de\x20coocorrência\x20de\x20palavras\x20com\x20a\x20coluna\x20de\x20tipo\x20adicional\x20na\x20segunda\x20coluna'];_0x35ad=function(){return _0xb1fe92;};return _0x35ad();}
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3ba6(){const _0xb28cd8=['36336jUCaPV','49035KgfClz','Отрицательное','Категория\x20{0}','Минимум','Третий\x20квартиль','Первый\x20квартиль','20tEVDON','193665alsYbL','Категория','Промежуточный\x20итог','3075664eYbjJN','Частота','99vsngPF','9oHPWPa','Положительное','Накопительный\x20процент','Максимум','Ряд\x20данных','Серия\x20{0}','2HVwQvk','1052004xYOxSq','Слово','Источником\x20данных\x20для\x20графика\x20взаимоотношений\x20является\x20матрица\x20сопутствующих\x20слов\x20с\x20дополнительным\x20столбцом\x20типа\x20во\x20втором\x20столбце.','Медиана','13266AkJQlp','Диаграмма\x20пузырей\x20требует\x20как\x20минимум\x202\x20столбца:\x20ось\x20X,\x20ось\x20Y','511IDtVVT','1066760kQynvI','Пусто'];_0x3ba6=function(){return _0xb28cd8;};return _0x3ba6();}const _0x2d1050=_0x508f;(function(_0x3e0cff,_0x3fa223){const _0x2b0a7e=_0x508f,_0x3976d7=_0x3e0cff();while(!![]){try{const _0x1dbce4=parseInt(_0x2b0a7e(0x1a5))/0x1*(-parseInt(_0x2b0a7e(0x1b1))/0x2)+-parseInt(_0x2b0a7e(0x1bc))/0x3+parseInt(_0x2b0a7e(0x1bb))/0x4*(-parseInt(_0x2b0a7e(0x1a4))/0x5)+parseInt(_0x2b0a7e(0x1b6))/0x6*(parseInt(_0x2b0a7e(0x1b8))/0x7)+parseInt(_0x2b0a7e(0x1a8))/0x8*(-parseInt(_0x2b0a7e(0x1ab))/0x9)+-parseInt(_0x2b0a7e(0x1b9))/0xa+parseInt(_0x2b0a7e(0x1aa))/0xb*(parseInt(_0x2b0a7e(0x1b2))/0xc);if(_0x1dbce4===_0x3fa223)break;else _0x3976d7['push'](_0x3976d7['shift']());}catch(_0x553c0f){_0x3976d7['push'](_0x3976d7['shift']());}}}(_0x3ba6,0x33fbe));function _0x508f(_0x1c6352,_0x31257a){_0x1c6352=_0x1c6352-0x19f;const _0x3ba657=_0x3ba6();let _0x508f3b=_0x3ba657[_0x1c6352];return _0x508f3b;}const e={'sheets-chart':{'category':_0x2d1050(0x1a6),'series':_0x2d1050(0x1af),'seriesDefaultName':_0x2d1050(0x1b0),'categoryDefaultName':_0x2d1050(0x1a0),'blank':_0x2d1050(0x1ba),'msg':{'emptyTips':'Добавьте\x20серию,\x20чтобы\x20начать\x20визуализацию\x20данных','sankeyCircularTips':'Диаграмма\x20Санки\x20не\x20может\x20содержать\x20циклические\x20данные'},'bubble':{'emptyTips':_0x2d1050(0x1b7)},'relation':{'emptyTips':_0x2d1050(0x1b4)},'cloud':{'word':_0x2d1050(0x1b3),'frequency':_0x2d1050(0x1a9)},'waterfall':{'positive':_0x2d1050(0x1ac),'negative':_0x2d1050(0x19f),'subtotal':_0x2d1050(0x1a7)},'pareto':{'lineName':_0x2d1050(0x1ad)},'boxplot':{'min':_0x2d1050(0x1a1),'q1':_0x2d1050(0x1a3),'median':_0x2d1050(0x1b5),'q3':_0x2d1050(0x1a2),'max':_0x2d1050(0x1ae)}}};export{e as default};
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x13c7(){const _0x3a934c=['Medzisúčet','Bublinový\x20graf\x20vyžaduje\x20aspoň\x202\x20stĺpce:\x20os\x20X,\x20os\x20Y','(Prázdne)','Slovo','Tretí\x20kvartil','Negatívne','84024pUpqbN','11wmPlLz','3303186mStmhm','Medián','Séria','Kategória','Zdrojové\x20dáta\x20pre\x20graf\x20vzťahov\x20sú\x20ko-slovná\x20matica\x20s\x20dodatočným\x20typovým\x20stĺpcom\x20v\x20druhom\x20stĺpci','Maximum','Minimum','Pozitívne','1906473piVjjG','456180XDAolg','3404696ujDuwb','2358530XxYCWA','2719788gDIqLJ','Frekvencia','Pridajte\x20sériu\x20a\x20začnite\x20vizualizovať\x20údaje','Prvý\x20kvartil','Kategória\x20{0}','Séria\x20{0}','9YaLuWc','7WeVqFh'];_0x13c7=function(){return _0x3a934c;};return _0x13c7();}const _0x54c588=_0x3eca;(function(_0x3511ae,_0x40d8b0){const _0x18e329=_0x3eca,_0x4e7353=_0x3511ae();while(!![]){try{const _0x434407=parseInt(_0x18e329(0x19d))/0x1*(parseInt(_0x18e329(0x19c))/0x2)+-parseInt(_0x18e329(0x1a6))/0x3+parseInt(_0x18e329(0x1aa))/0x4+parseInt(_0x18e329(0x1a7))/0x5+parseInt(_0x18e329(0x19e))/0x6+parseInt(_0x18e329(0x195))/0x7*(-parseInt(_0x18e329(0x1a8))/0x8)+parseInt(_0x18e329(0x194))/0x9*(-parseInt(_0x18e329(0x1a9))/0xa);if(_0x434407===_0x40d8b0)break;else _0x4e7353['push'](_0x4e7353['shift']());}catch(_0x55e4d5){_0x4e7353['push'](_0x4e7353['shift']());}}}(_0x13c7,0x76e03));const e={'sheets-chart':{'category':_0x54c588(0x1a1),'series':_0x54c588(0x1a0),'seriesDefaultName':_0x54c588(0x1af),'categoryDefaultName':_0x54c588(0x1ae),'blank':_0x54c588(0x198),'msg':{'emptyTips':_0x54c588(0x1ac),'sankeyCircularTips':'Sankeyho\x20graf\x20nemôže\x20obsahovať\x20cyklické\x20údaje'},'bubble':{'emptyTips':_0x54c588(0x197)},'relation':{'emptyTips':_0x54c588(0x1a2)},'cloud':{'word':_0x54c588(0x199),'frequency':_0x54c588(0x1ab)},'waterfall':{'positive':_0x54c588(0x1a5),'negative':_0x54c588(0x19b),'subtotal':_0x54c588(0x196)},'pareto':{'lineName':'Kumulatívne\x20percento'},'boxplot':{'min':_0x54c588(0x1a4),'q1':_0x54c588(0x1ad),'median':_0x54c588(0x19f),'q3':_0x54c588(0x19a),'max':_0x54c588(0x1a3)}}};function _0x3eca(_0x16013d,_0x3aee28){_0x16013d=_0x16013d-0x194;const _0x13c70d=_0x13c7();let _0x3eca3f=_0x13c70d[_0x16013d];return _0x3eca3f;}export{e as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2be8(_0x3f6682,_0x1dca50){_0x3f6682=_0x3f6682-0x116;const _0xdc448b=_0xdc44();let _0x2be86e=_0xdc448b[_0x3f6682];return _0x2be86e;}const _0x2aa7b5=_0x2be8;function _0xdc44(){const _0x384ef7=['21759ygDfaH','Giá\x20trị\x20âm','72esPMFC','Phần\x20tư\x20thứ\x20nhất','Giá\x20trị\x20lớn\x20nhất','Loạt\x20{0}','Tần\x20suất','9qtAPUn','3210CLyobk','Giá\x20trị\x20dương','Không\x20có\x20dữ\x20liệu\x20để\x20hiển\x20thị.','Phần\x20tư\x20thứ\x20ba','Biểu\x20đồ\x20Sankey\x20không\x20thể\x20chứa\x20dữ\x20liệu\x20vòng\x20lặp','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','Chuỗi','2440cIWpjJ','3458987YZwKTs','Tỷ\x20lệ\x20tích\x20lũy','9277136YTtshg','Trung\x20vị','35202TOdrHP','Tổng\x20phụ','Biểu\x20đồ\x20bong\x20bóng\x20yêu\x20cầu\x20ít\x20nhất\x202\x20cột:\x20trục\x20X,\x20trục\x20Y','1740576gUrMPN','16kxNgoc','5945670qiuxcH','Danh\x20mục\x20{0}'];_0xdc44=function(){return _0x384ef7;};return _0xdc44();}(function(_0x35ec99,_0x12399f){const _0x3ed8bc=_0x2be8,_0x8f6009=_0x35ec99();while(!![]){try{const _0x3203d9=-parseInt(_0x3ed8bc(0x12e))/0x1*(-parseInt(_0x3ed8bc(0x117))/0x2)+-parseInt(_0x3ed8bc(0x11a))/0x3*(-parseInt(_0x3ed8bc(0x11c))/0x4)+parseInt(_0x3ed8bc(0x129))/0x5*(-parseInt(_0x3ed8bc(0x122))/0x6)+parseInt(_0x3ed8bc(0x12a))/0x7+parseInt(_0x3ed8bc(0x116))/0x8+parseInt(_0x3ed8bc(0x121))/0x9*(parseInt(_0x3ed8bc(0x118))/0xa)+-parseInt(_0x3ed8bc(0x12c))/0xb;if(_0x3203d9===_0x12399f)break;else _0x8f6009['push'](_0x8f6009['shift']());}catch(_0x53c867){_0x8f6009['push'](_0x8f6009['shift']());}}}(_0xdc44,0x95e6a));const e={'sheets-chart':{'category':'Danh\x20mục','series':_0x2aa7b5(0x128),'seriesDefaultName':_0x2aa7b5(0x11f),'categoryDefaultName':_0x2aa7b5(0x119),'blank':'(Trống)','msg':{'emptyTips':_0x2aa7b5(0x124),'sankeyCircularTips':_0x2aa7b5(0x126)},'bubble':{'emptyTips':_0x2aa7b5(0x130)},'relation':{'emptyTips':_0x2aa7b5(0x127)},'cloud':{'word':'Từ','frequency':_0x2aa7b5(0x120)},'waterfall':{'positive':_0x2aa7b5(0x123),'negative':_0x2aa7b5(0x11b),'subtotal':_0x2aa7b5(0x12f)},'pareto':{'lineName':_0x2aa7b5(0x12b)},'boxplot':{'min':'Giá\x20trị\x20nhỏ\x20nhất','q1':_0x2aa7b5(0x11d),'median':_0x2aa7b5(0x12d),'q3':_0x2aa7b5(0x125),'max':_0x2aa7b5(0x11e)}}};export{e as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3cf91f=_0x6576;(function(_0x473dca,_0x3304e1){const _0x4d52aa=_0x6576,_0x359199=_0x473dca();while(!![]){try{const _0x6c62c3=-parseInt(_0x4d52aa(0x96))/0x1+parseInt(_0x4d52aa(0x8f))/0x2*(parseInt(_0x4d52aa(0x85))/0x3)+-parseInt(_0x4d52aa(0x87))/0x4+parseInt(_0x4d52aa(0x93))/0x5*(parseInt(_0x4d52aa(0x8d))/0x6)+parseInt(_0x4d52aa(0x8c))/0x7+-parseInt(_0x4d52aa(0x94))/0x8+-parseInt(_0x4d52aa(0x91))/0x9;if(_0x6c62c3===_0x3304e1)break;else _0x359199['push'](_0x359199['shift']());}catch(_0x2caade){_0x359199['push'](_0x359199['shift']());}}}(_0x4241,0xc0825));function _0x4241(){const _0x460de6=['6552160FVIcco','系列\x20{0}','180167SMgyhS','36LlJZuC','第三四分位数','627596dwTgMv','累积占比','气泡图至少需要2列,X轴、Y轴。','最小值','类别\x20{0}','7092400fjSFyq','6482478lIIHFC','(空)','44224GrlJon','桑基图不能包含循环数据','3729186Hqcapr','关系图数据源为额外添加类型列在第二列的共词矩阵','5QVhxsB'];_0x4241=function(){return _0x460de6;};return _0x4241();}function _0x6576(_0x2d6253,_0x53d2e9){_0x2d6253=_0x2d6253-0x85;const _0x4241dc=_0x4241();let _0x6576cd=_0x4241dc[_0x2d6253];return _0x6576cd;}const e={'sheets-chart':{'category':'类别','series':'系列','seriesDefaultName':_0x3cf91f(0x95),'categoryDefaultName':_0x3cf91f(0x8b),'blank':_0x3cf91f(0x8e),'msg':{'emptyTips':'请先添加系列开始数据可视化','sankeyCircularTips':_0x3cf91f(0x90)},'bubble':{'emptyTips':_0x3cf91f(0x89)},'relation':{'emptyTips':_0x3cf91f(0x92)},'cloud':{'word':'词语','frequency':'频率'},'waterfall':{'positive':'正值','negative':'负值','subtotal':'小计'},'pareto':{'lineName':_0x3cf91f(0x88)},'boxplot':{'min':_0x3cf91f(0x8a),'q1':'第一四分位数','median':'中位数','q3':_0x3cf91f(0x86),'max':'最大值'}}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x54a542=_0x3402;function _0x1e5a(){const _0x5aac5d=['571383DFpYbe','49BVgcND','類別\x20{0}','中位數','第一四分位數','第三四分位數','380720PNbdwj','1070sZvWia','83685qPUcci','系列\x20{0}','桑基圖不能包含循環數據','累積占比','最大值','733740laUNLn','756885dBuhum','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','5033644uOMQni','251CqCmIl','20oJukAc','52YTdWBK'];_0x1e5a=function(){return _0x5aac5d;};return _0x1e5a();}function _0x3402(_0x5578e8,_0x445b6f){_0x5578e8=_0x5578e8-0x79;const _0x1e5a72=_0x1e5a();let _0x340291=_0x1e5a72[_0x5578e8];return _0x340291;}(function(_0x41deec,_0x2e3ead){const _0x27b44c=_0x3402,_0x4071ec=_0x41deec();while(!![]){try{const _0x14e2b5=parseInt(_0x27b44c(0x88))/0x1*(-parseInt(_0x27b44c(0x7e))/0x2)+-parseInt(_0x27b44c(0x85))/0x3+parseInt(_0x27b44c(0x8a))/0x4*(parseInt(_0x27b44c(0x7f))/0x5)+-parseInt(_0x27b44c(0x84))/0x6+parseInt(_0x27b44c(0x8c))/0x7*(parseInt(_0x27b44c(0x7d))/0x8)+parseInt(_0x27b44c(0x8b))/0x9*(-parseInt(_0x27b44c(0x89))/0xa)+parseInt(_0x27b44c(0x87))/0xb;if(_0x14e2b5===_0x2e3ead)break;else _0x4071ec['push'](_0x4071ec['shift']());}catch(_0x1a81bf){_0x4071ec['push'](_0x4071ec['shift']());}}}(_0x1e5a,0x5aef7));const e={'sheets-chart':{'category':'類別','series':'系列','seriesDefaultName':_0x54a542(0x80),'categoryDefaultName':_0x54a542(0x79),'blank':'(空)','msg':{'emptyTips':'請先添加系列開始數據可視化','sankeyCircularTips':_0x54a542(0x81)},'bubble':{'emptyTips':'氣泡圖至少需要2欄,X軸、Y軸。'},'relation':{'emptyTips':_0x54a542(0x86)},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x54a542(0x82)},'boxplot':{'min':'最小值','q1':_0x54a542(0x7b),'median':_0x54a542(0x7a),'q3':_0x54a542(0x7c),'max':_0x54a542(0x83)}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5e43ea=_0x5a41;function _0x5a41(_0x57574e,_0x934fa){_0x57574e=_0x57574e-0xe4;const _0x2d81b9=_0x2d81();let _0x5a4156=_0x2d81b9[_0x57574e];return _0x5a4156;}(function(_0x438004,_0xa88d13){const _0x2fbc84=_0x5a41,_0x9237ff=_0x438004();while(!![]){try{const _0x5123d6=-parseInt(_0x2fbc84(0xea))/0x1*(parseInt(_0x2fbc84(0xef))/0x2)+parseInt(_0x2fbc84(0xf8))/0x3+-parseInt(_0x2fbc84(0xf6))/0x4*(-parseInt(_0x2fbc84(0xf1))/0x5)+parseInt(_0x2fbc84(0xe8))/0x6*(-parseInt(_0x2fbc84(0xe6))/0x7)+parseInt(_0x2fbc84(0xe4))/0x8*(-parseInt(_0x2fbc84(0xeb))/0x9)+-parseInt(_0x2fbc84(0xee))/0xa+parseInt(_0x2fbc84(0xf7))/0xb;if(_0x5123d6===_0xa88d13)break;else _0x9237ff['push'](_0x9237ff['shift']());}catch(_0x12cf21){_0x9237ff['push'](_0x9237ff['shift']());}}}(_0x2d81,0xb0927));const e={'sheets-chart':{'category':'類別','series':'系列','seriesDefaultName':'系列\x20{0}','categoryDefaultName':_0x5e43ea(0xf0),'blank':_0x5e43ea(0xe5),'msg':{'emptyTips':_0x5e43ea(0xf4),'sankeyCircularTips':'桑基圖不能包含循環數據'},'bubble':{'emptyTips':_0x5e43ea(0xed)},'relation':{'emptyTips':_0x5e43ea(0xf3)},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x5e43ea(0xf9)},'boxplot':{'min':_0x5e43ea(0xec),'q1':_0x5e43ea(0xe7),'median':_0x5e43ea(0xf5),'q3':_0x5e43ea(0xe9),'max':_0x5e43ea(0xf2)}}};export{e as default};function _0x2d81(){const _0x43aadd=['13625360RRlieT','44kNXvTb','類別\x20{0}','10CPXGWS','最大值','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','請先添加系列開始數據可視化','中位數','462900HeVAMc','34219141zURyca','2059566uFBeYa','累積占比','3233576GQvGeA','(空)','84cfprwy','第一四分位數','59304qOZoxz','第三四分位數','46183LWXVoL','18SlyZBg','最小值','氣泡圖至少需要2欄,X軸、Y軸。'];_0x2d81=function(){return _0x43aadd;};return _0x2d81();}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { SheetChartBuilder } from './sheet-chart-builder';
|
|
2
|
+
export { SheetChartBuilderAdapter } from './sheet-chart-builder-adapter';
|
|
3
|
+
export type { ISheetChartBuilderAdapter, ISheetChartBuilderAdapterContext, ISheetChartHostPatch } from './sheet-chart-builder-adapter';
|
|
4
|
+
export { toSheetChartCreateSpec } from './sheet-chart-create-spec';
|
|
5
|
+
export type { ISheetChartDescriptionExtension } from './sheet-chart-description';
|
|
6
|
+
export { buildLayoutDrawingPatch, describeLayout, getWorkbook, resolveInitialChartPosition } from './sheet-chart-layout';
|
|
7
|
+
export type { ISheetChartLayoutContext } from './sheet-chart-layout';
|
|
8
|
+
export { resolveSourceSeries, resolveSourceSpec } from './sheet-chart-source';
|
|
9
|
+
export type { ISheetChartSourceContext } from './sheet-chart-source';
|
|
10
|
+
export * from './types';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ChartPendingConfig, IChartBuilderAdapter, IChartDescription, IChartRenderModelImageExportOptions, IChartRenderModelImageExportResult, IResolvedChartData, IUniverDataSet } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { Injector } from '@univerjs/core';
|
|
3
|
+
import type { ISheetChartDescriptionExtension } from './sheet-chart-description';
|
|
4
|
+
import type { ChartSourceSpec, IChartLayoutPatch } from './types';
|
|
5
|
+
/** Sheet-owned changes committed alongside engine chart configuration. */
|
|
6
|
+
export interface ISheetChartHostPatch {
|
|
7
|
+
source?: ChartSourceSpec;
|
|
8
|
+
layout?: IChartLayoutPatch;
|
|
9
|
+
}
|
|
10
|
+
/** Persistence seam required by a Sheet chart builder. */
|
|
11
|
+
export interface ISheetChartBuilderAdapter extends IChartBuilderAdapter<ISheetChartDescriptionExtension> {
|
|
12
|
+
commitHost(patch: ISheetChartHostPatch): void;
|
|
13
|
+
resolveData(config: ChartPendingConfig, source?: ChartSourceSpec): IResolvedChartData;
|
|
14
|
+
resolveSource(source: ChartSourceSpec): {
|
|
15
|
+
dataSet: IUniverDataSet;
|
|
16
|
+
isRowDirection: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/** Stable Sheet identity and services used by the builder adapter. */
|
|
20
|
+
export interface ISheetChartBuilderAdapterContext {
|
|
21
|
+
unitId: string;
|
|
22
|
+
subUnitId: string;
|
|
23
|
+
chartId: string;
|
|
24
|
+
injector: Injector;
|
|
25
|
+
}
|
|
26
|
+
/** Commits Sheet chart changes using raw identity and package-owned commands. */
|
|
27
|
+
export declare class SheetChartBuilderAdapter implements ISheetChartBuilderAdapter {
|
|
28
|
+
private readonly _context;
|
|
29
|
+
private readonly _injector;
|
|
30
|
+
constructor(_context: ISheetChartBuilderAdapterContext);
|
|
31
|
+
describe(config?: ChartPendingConfig, dataSet?: IUniverDataSet): IChartDescription & ISheetChartDescriptionExtension;
|
|
32
|
+
commit(configChange: ChartPendingConfig): void;
|
|
33
|
+
resolveData(configChange: ChartPendingConfig, source?: ChartSourceSpec): IResolvedChartData;
|
|
34
|
+
resolveSource(source: ChartSourceSpec): {
|
|
35
|
+
dataSet: IUniverDataSet;
|
|
36
|
+
isRowDirection: boolean;
|
|
37
|
+
};
|
|
38
|
+
commitHost(patch: ISheetChartHostPatch): void;
|
|
39
|
+
exportImage(options?: IChartRenderModelImageExportOptions): Promise<IChartRenderModelImageExportResult | null>;
|
|
40
|
+
private _resolveSourceRange;
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IChartDescription } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { ISheetChartBuilderAdapter } from './sheet-chart-builder-adapter';
|
|
3
|
+
import type { ISheetChartDescriptionExtension } from './sheet-chart-description';
|
|
4
|
+
import type { ChartSourceSpec, IChartLayoutPatch } from './types';
|
|
5
|
+
import { ChartBuilder } from '@univerjs-pro/engine-chart';
|
|
6
|
+
/** Maintains engine and Sheet-specific pending state for one chart. */
|
|
7
|
+
export declare class SheetChartBuilder extends ChartBuilder<ISheetChartDescriptionExtension> {
|
|
8
|
+
private _hostPending;
|
|
9
|
+
constructor(id: string, baseline: IChartDescription & ISheetChartDescriptionExtension, adapter: ISheetChartBuilderAdapter);
|
|
10
|
+
setSource(source: ChartSourceSpec): void;
|
|
11
|
+
setLayout(patch: IChartLayoutPatch): void;
|
|
12
|
+
getSource(): Readonly<ChartSourceSpec> | undefined;
|
|
13
|
+
resolveData(): import("@univerjs-pro/engine-chart").IChartData;
|
|
14
|
+
protected composeHostDescription(description: IChartDescription & ISheetChartDescriptionExtension): IChartDescription & ISheetChartDescriptionExtension;
|
|
15
|
+
commit(): void;
|
|
16
|
+
protected getDescriptionDataSetOverride(): import("@univerjs-pro/engine-chart").IUniverDataSet | undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChartPendingConfig, IChartDescription } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { DeepReadonly } from '@univerjs/core';
|
|
3
|
+
import type { ISheetChartDescriptionExtension } from './sheet-chart-description';
|
|
4
|
+
import type { IChartCreateSpec } from './types';
|
|
5
|
+
/** Converts a detached Sheet chart description into the canonical create input. */
|
|
6
|
+
export declare function toSheetChartCreateSpec(description: IChartDescription & ISheetChartDescriptionExtension, pending: DeepReadonly<ChartPendingConfig>): IChartCreateSpec;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Injector, Workbook } from '@univerjs/core';
|
|
2
|
+
import type { IChartCreateSpec, IChartDiagnostic, IChartLayoutDescription, IChartLayoutPatch } from './types';
|
|
3
|
+
import { ISheetDrawingService } from '@univerjs/sheets-drawing';
|
|
4
|
+
/** Identifies a Sheet chart drawing and the services used to resolve its layout. */
|
|
5
|
+
export interface ISheetChartLayoutContext {
|
|
6
|
+
unitId: string;
|
|
7
|
+
subUnitId: string;
|
|
8
|
+
chartId: string;
|
|
9
|
+
injector: Injector;
|
|
10
|
+
}
|
|
11
|
+
/** Resolves the workbook that owns a Sheet chart. */
|
|
12
|
+
export declare function getWorkbook(injector: Injector, unitId: string): Workbook | null;
|
|
13
|
+
/** Builds the drawing update produced by a chart layout patch. */
|
|
14
|
+
export declare function buildLayoutDrawingPatch(context: ISheetChartLayoutContext, layout: IChartLayoutPatch, diagnostics: IChartDiagnostic[]): NonNullable<ReturnType<ISheetDrawingService['getDrawingByParam']>> | null;
|
|
15
|
+
/** Resolves the initial drawing position from an absolute position or cell anchor. */
|
|
16
|
+
export declare function resolveInitialChartPosition(context: Pick<ISheetChartLayoutContext, 'unitId' | 'subUnitId' | 'injector'>, layout: Pick<IChartCreateSpec, 'anchor' | 'position'>, diagnostics: IChartDiagnostic[]): {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
} | undefined;
|
|
20
|
+
/** Describes the current position, size, and cell anchor of a Sheet chart. */
|
|
21
|
+
export declare function describeLayout(context: ISheetChartLayoutContext): IChartLayoutDescription | undefined;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IChartDataSeries } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { IRange, Workbook } from '@univerjs/core';
|
|
3
|
+
import type { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange } from '../models/types';
|
|
4
|
+
import type { ChartSourceDescription, ChartSourceSpec, IChartDiagnostic } from './types';
|
|
5
|
+
import { ChartFacadeHostGroup, ChartSourceKind } from './types';
|
|
6
|
+
export interface ISheetChartSourceContext {
|
|
7
|
+
unitId: string;
|
|
8
|
+
subUnitId: string;
|
|
9
|
+
workbook: Workbook;
|
|
10
|
+
resolveAutoIsRowDirection?: (rangeInfo: ISheetChartSourceSingleRange) => boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IResolvedChartRangeSource {
|
|
13
|
+
kind: ChartSourceKind.Range;
|
|
14
|
+
range: IRange;
|
|
15
|
+
sourceSheetName?: string;
|
|
16
|
+
rangeInfo: ISheetChartSourceSingleRange;
|
|
17
|
+
isRowDirection?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface IResolvedChartMultiRangeSource {
|
|
20
|
+
kind: ChartSourceKind.Ranges;
|
|
21
|
+
ranges: IChartSourceMultiRangeItem[];
|
|
22
|
+
isRowDirection: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type ResolvedChartSource = IResolvedChartRangeSource | IResolvedChartMultiRangeSource;
|
|
25
|
+
export declare function resolveSourceSpec(source: ChartSourceSpec | undefined, context: ISheetChartSourceContext, diagnostics: IChartDiagnostic[], path?: ChartFacadeHostGroup): ResolvedChartSource | null;
|
|
26
|
+
/**
|
|
27
|
+
* Reads source header entries so name-based series selectors can be resolved
|
|
28
|
+
* before the insert command creates a chart model.
|
|
29
|
+
*/
|
|
30
|
+
export declare function resolveSourceSeries(source: ResolvedChartSource, context: ISheetChartSourceContext, categoryIndex?: number): IChartDataSeries[];
|
|
31
|
+
export declare function buildSourceDescription(source: ISheetChartSourceSingleRange, workbook?: Workbook): ChartSourceDescription;
|
|
32
|
+
export declare function buildMultiRangeSourceDescription(source: IChartSourceMultiRangeItem[], workbook?: Workbook): ChartSourceDescription;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import type { ChartTypeString, IChartCreateConfig, IEchartTheme, IChartDescription as IEngineChartDescription } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { IRange } from '@univerjs/core';
|
|
3
|
+
export declare enum ChartSourceOrientation {
|
|
4
|
+
Auto = "auto",
|
|
5
|
+
Row = "row",
|
|
6
|
+
Column = "column",
|
|
7
|
+
Rows = "rows",
|
|
8
|
+
Columns = "columns",
|
|
9
|
+
RowsAsSeries = "rowsAsSeries",
|
|
10
|
+
ColumnsAsSeries = "columnsAsSeries"
|
|
11
|
+
}
|
|
12
|
+
export declare enum ChartSourceKind {
|
|
13
|
+
Range = "range",
|
|
14
|
+
Ranges = "ranges"
|
|
15
|
+
}
|
|
16
|
+
export type ChartRangeSpec = string | IRange;
|
|
17
|
+
export interface IChartSourceVectorSpec {
|
|
18
|
+
/** One row or one column of values. All vectors are aligned by position. */
|
|
19
|
+
range: ChartRangeSpec;
|
|
20
|
+
/** Optional single-cell display name. It never consumes a value from `range`. */
|
|
21
|
+
header?: ChartRangeSpec;
|
|
22
|
+
}
|
|
23
|
+
interface IChartSourceLocationSpec {
|
|
24
|
+
sheetName?: string;
|
|
25
|
+
sheetId?: string;
|
|
26
|
+
unitId?: string;
|
|
27
|
+
orientation?: ChartSourceOrientation;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Chart data from either one rectangular table or explicit positional vectors.
|
|
31
|
+
* Exactly one of `range` and `ranges` may be provided.
|
|
32
|
+
*
|
|
33
|
+
* @example Single rectangular table
|
|
34
|
+
* ```ts
|
|
35
|
+
* { sheetName: 'Sales', range: 'A1:C7', orientation: univerAPI.Enum.ChartSourceOrientation.Columns }
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @example Equal-length positional vectors with optional single-cell headers
|
|
39
|
+
* ```ts
|
|
40
|
+
* {
|
|
41
|
+
* sheetName: 'Sales',
|
|
42
|
+
* orientation: univerAPI.Enum.ChartSourceOrientation.Columns,
|
|
43
|
+
* ranges: [
|
|
44
|
+
* { header: 'A1', range: 'A2:A7' },
|
|
45
|
+
* { header: 'C1', range: 'C2:C7' },
|
|
46
|
+
* ],
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
* Vector array order defines mapping indexes. Vectors must have equal lengths
|
|
50
|
+
* and a common row-or-column orientation; no join or padding is performed.
|
|
51
|
+
*/
|
|
52
|
+
export type ChartSourceSpec = ChartRangeSpec | (IChartSourceLocationSpec & {
|
|
53
|
+
range: ChartRangeSpec;
|
|
54
|
+
ranges?: never;
|
|
55
|
+
}) | (IChartSourceLocationSpec & {
|
|
56
|
+
range?: never;
|
|
57
|
+
ranges: readonly IChartSourceVectorSpec[];
|
|
58
|
+
});
|
|
59
|
+
export type ChartAnchorSpec = string | {
|
|
60
|
+
row: number;
|
|
61
|
+
column: number;
|
|
62
|
+
rowOffset?: number;
|
|
63
|
+
columnOffset?: number;
|
|
64
|
+
};
|
|
65
|
+
export interface IChartSizeSpec {
|
|
66
|
+
width?: number;
|
|
67
|
+
height?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface IChartLayoutPatch {
|
|
70
|
+
anchor?: ChartAnchorSpec;
|
|
71
|
+
position?: {
|
|
72
|
+
x: number;
|
|
73
|
+
y: number;
|
|
74
|
+
};
|
|
75
|
+
size?: IChartSizeSpec;
|
|
76
|
+
}
|
|
77
|
+
export interface IChartCreateSpec extends IChartCreateConfig {
|
|
78
|
+
source: ChartSourceSpec;
|
|
79
|
+
anchor?: ChartAnchorSpec;
|
|
80
|
+
position?: {
|
|
81
|
+
x: number;
|
|
82
|
+
y: number;
|
|
83
|
+
};
|
|
84
|
+
size?: IChartSizeSpec;
|
|
85
|
+
}
|
|
86
|
+
export declare enum ChartDiagnosticCode {
|
|
87
|
+
InvalidRange = "INVALID_RANGE",
|
|
88
|
+
SingleCellSource = "SINGLE_CELL_SOURCE",
|
|
89
|
+
CommandFailed = "COMMAND_FAILED"
|
|
90
|
+
}
|
|
91
|
+
export declare enum ChartDiagnosticSeverity {
|
|
92
|
+
Error = "error"
|
|
93
|
+
}
|
|
94
|
+
export declare enum ChartFacadeHostGroup {
|
|
95
|
+
Source = "source",
|
|
96
|
+
Layout = "layout"
|
|
97
|
+
}
|
|
98
|
+
export declare enum ChartFacadeCreateLayoutKey {
|
|
99
|
+
Anchor = "anchor"
|
|
100
|
+
}
|
|
101
|
+
export interface IChartDiagnostic {
|
|
102
|
+
code: ChartDiagnosticCode;
|
|
103
|
+
severity: ChartDiagnosticSeverity;
|
|
104
|
+
message: string;
|
|
105
|
+
path?: string;
|
|
106
|
+
details?: unknown;
|
|
107
|
+
allowedValues?: readonly unknown[];
|
|
108
|
+
suggestion?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface IChartSuggestion {
|
|
111
|
+
type: ChartTypeString;
|
|
112
|
+
orientation: ChartSourceOrientation;
|
|
113
|
+
reason?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface IChartRangeSourceDescription {
|
|
116
|
+
range: IRange;
|
|
117
|
+
ranges?: never;
|
|
118
|
+
sheetName?: string;
|
|
119
|
+
sheetId: string;
|
|
120
|
+
unitId: string;
|
|
121
|
+
orientation: ChartSourceOrientation;
|
|
122
|
+
}
|
|
123
|
+
export interface IChartSourceVectorDescription {
|
|
124
|
+
range: IChartRangeSourceDescription;
|
|
125
|
+
header?: IChartRangeSourceDescription;
|
|
126
|
+
}
|
|
127
|
+
export interface IChartMultiRangeSourceDescription {
|
|
128
|
+
range?: never;
|
|
129
|
+
ranges: IChartSourceVectorDescription[];
|
|
130
|
+
orientation: ChartSourceOrientation;
|
|
131
|
+
}
|
|
132
|
+
export type ChartSourceDescription = IChartRangeSourceDescription | IChartMultiRangeSourceDescription;
|
|
133
|
+
export interface IChartLayoutDescription {
|
|
134
|
+
position?: {
|
|
135
|
+
x: number;
|
|
136
|
+
y: number;
|
|
137
|
+
};
|
|
138
|
+
size?: IChartSizeSpec;
|
|
139
|
+
anchor?: {
|
|
140
|
+
row: number;
|
|
141
|
+
column: number;
|
|
142
|
+
rowOffset?: number;
|
|
143
|
+
columnOffset?: number;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export interface IChartDescription extends IEngineChartDescription {
|
|
147
|
+
identity: {
|
|
148
|
+
unitId: string;
|
|
149
|
+
subUnitId: string;
|
|
150
|
+
chartId: string;
|
|
151
|
+
};
|
|
152
|
+
dataSource: {
|
|
153
|
+
kind: ChartSourceKind;
|
|
154
|
+
source: ChartSourceDescription | null;
|
|
155
|
+
};
|
|
156
|
+
source: ChartSourceDescription | null;
|
|
157
|
+
layout?: IChartLayoutDescription;
|
|
158
|
+
}
|
|
159
|
+
export type { IEchartTheme };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import type { Observable } from 'rxjs';
|
|
3
|
-
import type { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange, IUniverDataSet, OptionDataValue } from '../models/types';
|
|
3
|
+
import type { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange, ISheetChartSourceSnapshot, IUniverDataSet, OptionDataValue } from '../models/types';
|
|
4
4
|
import { ChartDataSource, ChartSourceDataTypeEnum } from '@univerjs-pro/engine-chart';
|
|
5
5
|
/**
|
|
6
6
|
* @extends ChartDataSourceBase
|
|
@@ -9,7 +9,8 @@ import { ChartDataSource, ChartSourceDataTypeEnum } from '@univerjs-pro/engine-c
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class ChartDataSourceSingle extends ChartDataSource {
|
|
11
11
|
private readonly _univerInstanceService;
|
|
12
|
-
private
|
|
12
|
+
private _snapshot$;
|
|
13
|
+
snapshot$: Observable<ISheetChartSourceSnapshot>;
|
|
13
14
|
rangeInfo$: Observable<ISheetChartSourceSingleRange>;
|
|
14
15
|
constructor(_univerInstanceService: IUniverInstanceService, rangeInfo: ISheetChartSourceSingleRange);
|
|
15
16
|
getRangeInfo(): ISheetChartSourceSingleRange;
|
|
@@ -18,20 +19,24 @@ export declare class ChartDataSourceSingle extends ChartDataSource {
|
|
|
18
19
|
canSwitchOrient(): boolean;
|
|
19
20
|
updateRangeInfo(): void;
|
|
20
21
|
watchRange(): void;
|
|
21
|
-
convertDataSet(): IUniverDataSet;
|
|
22
|
+
convertDataSet(sourceInfo?: ISheetChartSourceSingleRange): IUniverDataSet;
|
|
23
|
+
getDataSet(): IUniverDataSet;
|
|
24
|
+
refresh(): void;
|
|
25
|
+
private _emit;
|
|
22
26
|
}
|
|
23
27
|
export declare class ChartDataSourceMulti extends ChartDataSource {
|
|
24
28
|
private readonly _univerInstanceService;
|
|
25
|
-
private
|
|
29
|
+
private _snapshot$;
|
|
30
|
+
snapshot$: Observable<ISheetChartSourceSnapshot>;
|
|
26
31
|
rangeInfo$: Observable<IChartSourceMultiRangeItem[]>;
|
|
27
32
|
constructor(_univerInstanceService: IUniverInstanceService, rangeInfo: IChartSourceMultiRangeItem[]);
|
|
28
33
|
canSwitchOrient(): boolean;
|
|
29
34
|
getRangeInfo(): IChartSourceMultiRangeItem[];
|
|
30
|
-
setOrient(
|
|
35
|
+
setOrient(_flag: boolean): void;
|
|
31
36
|
setRangeInfo(rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[]): void;
|
|
32
37
|
updateRangeInfo(): void;
|
|
33
38
|
watchRange(): void;
|
|
34
|
-
convertDataSet(): {
|
|
39
|
+
convertDataSet(rangeInfos?: IChartSourceMultiRangeItem[]): {
|
|
35
40
|
dimensions: never[];
|
|
36
41
|
source: never[];
|
|
37
42
|
sourceType?: undefined;
|
|
@@ -42,6 +47,8 @@ export declare class ChartDataSourceMulti extends ChartDataSource {
|
|
|
42
47
|
sourceType: ChartSourceDataTypeEnum[][];
|
|
43
48
|
sourceLabels: string[][];
|
|
44
49
|
};
|
|
50
|
+
getDataSet(): IUniverDataSet;
|
|
51
|
+
refresh(): void;
|
|
52
|
+
private _emit;
|
|
45
53
|
}
|
|
46
54
|
export declare function createChartDataSource(univerInstanceService: IUniverInstanceService, rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[]): ChartDataSourceSingle | ChartDataSourceMulti;
|
|
47
|
-
export declare function getCategoryData(source: OptionDataValue[][], categoryIndex: number, _isRowDirection: boolean): OptionDataValue[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ChartStyle, ChartTypeBits, DataOrientation, IChartContext, IChartDataAggregation } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { ICommand } from '@univerjs/core';
|
|
3
|
+
export declare const ReplaceSheetChartConfig: unique symbol;
|
|
3
4
|
export interface IChartUpdateConfigCommandParams {
|
|
4
5
|
unitId: string;
|
|
5
6
|
chartModelId: string;
|
|
@@ -8,5 +9,6 @@ export interface IChartUpdateConfigCommandParams {
|
|
|
8
9
|
dataAggregation?: Partial<IChartDataAggregation>;
|
|
9
10
|
style?: ChartStyle;
|
|
10
11
|
context?: IChartContext;
|
|
12
|
+
[ReplaceSheetChartConfig]?: true;
|
|
11
13
|
}
|
|
12
14
|
export declare const ChartUpdateConfigCommand: ICommand<IChartUpdateConfigCommandParams>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
2
|
-
import type { ICommand
|
|
2
|
+
import type { ICommand } from '@univerjs/core';
|
|
3
3
|
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
4
|
+
import type { ISheetChartSourceRanges } from '../../models/types';
|
|
4
5
|
import type { IChartUpdateConfigMutationParams } from '../mutations/sheets-chart-update-config.mutation';
|
|
5
6
|
export interface IInsertChartCommandParams extends ISheetCommandSharedParams {
|
|
6
7
|
chartType: ChartTypeBits;
|
|
7
|
-
|
|
8
|
-
sourceSheetName?: string;
|
|
8
|
+
source: ISheetChartSourceRanges;
|
|
9
9
|
chartId?: string;
|
|
10
10
|
theme?: string;
|
|
11
11
|
position?: {
|
|
@@ -17,7 +17,6 @@ export interface IInsertChartCommandParams extends ISheetCommandSharedParams {
|
|
|
17
17
|
backgroundColor?: string;
|
|
18
18
|
borderColor?: string;
|
|
19
19
|
config?: IChartUpdateConfigMutationParams;
|
|
20
|
-
isRowDirection?: boolean;
|
|
21
20
|
}
|
|
22
21
|
export declare function resolveInsertChartDrawingBackground(params: Pick<IInsertChartCommandParams, 'backgroundColor' | 'config'>): string;
|
|
23
22
|
export declare const InsertChartCommand: ICommand;
|