@univerjs-pro/sheets-chart 1.0.0-alpha.1 → 1.0.0-alpha.2
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/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/commands/commands/sheets-chart.command.d.ts +1 -0
- package/lib/types/config/config.d.ts +5 -0
- package/lib/types/facade/chart-facade-adapter.d.ts +58 -0
- package/lib/types/facade/chart-facade-builders.d.ts +62 -0
- package/lib/types/facade/chart-facade-types.d.ts +393 -0
- package/lib/types/facade/f-chart.d.ts +11 -0
- package/lib/types/facade/f-worksheet-charts.d.ts +28 -0
- package/lib/types/facade/index.d.ts +5 -0
- package/lib/types/index.d.ts +1 -1
- 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 +9 -9
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5ed6(_0x2b1eb8,_0x4a978f){_0x2b1eb8=_0x2b1eb8-0xd2;const _0x219600=_0x2196();let _0x5ed692=_0x219600[_0x2b1eb8];return _0x5ed692;}function _0x2196(){const _0x10cd62=['Категория\x20{0}','4955482BqaHsx','Минимум','195111jVzrFR','Серия\x20{0}','Слово','Диаграмма\x20Санки\x20не\x20может\x20содержать\x20циклические\x20данные','858825ZMFrLK','Источником\x20данных\x20для\x20графика\x20взаимоотношений\x20является\x20матрица\x20сопутствующих\x20слов\x20с\x20дополнительным\x20столбцом\x20типа\x20во\x20втором\x20столбце.','2410566PvqudY','Series','22320756EFgvLr','Положительное','Category','25026PlPLtq','548488vIQkDg','Пусто','20sPxspx','Частота','64FJXqRk','Накопительный\x20процент'];_0x2196=function(){return _0x10cd62;};return _0x2196();}const _0x4e14e8=_0x5ed6;(function(_0x282e22,_0x240da1){const _0x3dcefc=_0x5ed6,_0x5a3316=_0x282e22();while(!![]){try{const _0x15125a=-parseInt(_0x3dcefc(0xd6))/0x1*(parseInt(_0x3dcefc(0xdb))/0x2)+parseInt(_0x3dcefc(0xe0))/0x3+-parseInt(_0x3dcefc(0xd9))/0x4*(parseInt(_0x3dcefc(0xe4))/0x5)+parseInt(_0x3dcefc(0xe6))/0x6+-parseInt(_0x3dcefc(0xde))/0x7+parseInt(_0x3dcefc(0xd7))/0x8+parseInt(_0x3dcefc(0xd3))/0x9;if(_0x15125a===_0x240da1)break;else _0x5a3316['push'](_0x5a3316['shift']());}catch(_0x393ea4){_0x5a3316['push'](_0x5a3316['shift']());}}}(_0x2196,0x9e2b4));const e={'sheets-chart':{'category':_0x4e14e8(0xd5),'series':_0x4e14e8(0xd2),'seriesDefaultName':_0x4e14e8(0xe1),'categoryDefaultName':_0x4e14e8(0xdd),'blank':_0x4e14e8(0xd8),'msg':{'emptyTips':'Добавьте\x20серию,\x20чтобы\x20начать\x20визуализацию\x20данных','sankeyCircularTips':_0x4e14e8(0xe3)},'bubble':{'emptyTips':'Диаграмма\x20пузырей\x20требует\x20как\x20минимум\x202\x20столбца:\x20ось\x20X,\x20ось\x20Y'},'relation':{'emptyTips':_0x4e14e8(0xe5)},'cloud':{'word':_0x4e14e8(0xe2),'frequency':_0x4e14e8(0xda)},'waterfall':{'positive':_0x4e14e8(0xd4),'negative':'Отрицательное','subtotal':'Промежуточный\x20итог'},'pareto':{'lineName':_0x4e14e8(0xdc)},'boxplot':{'min':_0x4e14e8(0xdf),'q1':'Первый\x20квартиль','median':'Медиана','q3':'Третий\x20квартиль','max':'Максимум'}}};export{e as default};
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xe3d799=_0x38a6;(function(_0x3d44b3,_0x2a3304){const _0x231171=_0x38a6,_0x45a9ea=_0x3d44b3();while(!![]){try{const _0x498214=-parseInt(_0x231171(0xf5))/0x1+-parseInt(_0x231171(0xfa))/0x2*(parseInt(_0x231171(0xfd))/0x3)+parseInt(_0x231171(0xf2))/0x4+-parseInt(_0x231171(0xfc))/0x5*(-parseInt(_0x231171(0x100))/0x6)+-parseInt(_0x231171(0x107))/0x7*(parseInt(_0x231171(0xf1))/0x8)+parseInt(_0x231171(0xf9))/0x9+-parseInt(_0x231171(0xf4))/0xa*(parseInt(_0x231171(0xff))/0xb);if(_0x498214===_0x2a3304)break;else _0x45a9ea['push'](_0x45a9ea['shift']());}catch(_0x2c3aae){_0x45a9ea['push'](_0x45a9ea['shift']());}}}(_0x5493,0x9c739));const e={'sheets-chart':{'category':_0xe3d799(0xfe),'series':_0xe3d799(0x105),'seriesDefaultName':_0xe3d799(0x106),'categoryDefaultName':_0xe3d799(0xfb),'blank':_0xe3d799(0xef),'msg':{'emptyTips':_0xe3d799(0xf7),'sankeyCircularTips':_0xe3d799(0xf0)},'bubble':{'emptyTips':_0xe3d799(0xf6)},'relation':{'emptyTips':_0xe3d799(0x108)},'cloud':{'word':_0xe3d799(0x103),'frequency':_0xe3d799(0x102)},'waterfall':{'positive':_0xe3d799(0x101),'negative':'Negatívne','subtotal':_0xe3d799(0xf3)},'pareto':{'lineName':'Kumulatívne\x20percento'},'boxplot':{'min':'Minimum','q1':_0xe3d799(0xf8),'median':'Medián','q3':'Tretí\x20kvartil','max':_0xe3d799(0x104)}}};function _0x38a6(_0x2cf3b3,_0xe08ddc){_0x2cf3b3=_0x2cf3b3-0xef;const _0x549324=_0x5493();let _0x38a6af=_0x549324[_0x2cf3b3];return _0x38a6af;}export{e as default};function _0x5493(){const _0x524f73=['3JdqIEB','Category','13409OUClKz','901878UhxUGL','Pozitívne','Frekvencia','Slovo','Maximum','Series','Séria\x20{0}','3450153oZDatN','Zdrojové\x20dáta\x20pre\x20graf\x20vzťahov\x20sú\x20ko-slovná\x20matica\x20s\x20dodatočným\x20typovým\x20stĺpcom\x20v\x20druhom\x20stĺpci','(Prázdne)','Sankeyho\x20graf\x20nemôže\x20obsahovať\x20cyklické\x20údaje','8eeTgKG','4789836oBdrQV','Medzisúčet','9730AXHnEz','375924PQPPHp','Bublinový\x20graf\x20vyžaduje\x20aspoň\x202\x20stĺpce:\x20os\x20X,\x20os\x20Y','Pridajte\x20sériu\x20a\x20začnite\x20vizualizovať\x20údaje','Prvý\x20kvartil','7638795OtcHIL','1106006BJBraP','Kategória\x20{0}','40ejYIsF'];_0x5493=function(){return _0x524f73;};return _0x5493();}
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x54b0(_0x50cbd3,_0x225017){_0x50cbd3=_0x50cbd3-0x17b;const _0x22289a=_0x2228();let _0x54b0a1=_0x22289a[_0x50cbd3];return _0x54b0a1;}const _0x59f074=_0x54b0;function _0x2228(){const _0x2ad4ee=['Loạt\x20{0}','40Eeetrw','Phần\x20tư\x20thứ\x20ba','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','856DfiyFd','Biểu\x20đồ\x20bong\x20bóng\x20yêu\x20cầu\x20ít\x20nhất\x202\x20cột:\x20trục\x20X,\x20trục\x20Y','Trung\x20vị','960WUmUdL','72pxBJvj','Category','Giá\x20trị\x20dương','Series','763870eeMPHk','249161RZcPVL','(Trống)','270393PIFskT','Giá\x20trị\x20âm','2ygogSF','303403qDvqET','Biểu\x20đồ\x20Sankey\x20không\x20thể\x20chứa\x20dữ\x20liệu\x20vòng\x20lặp','14119OFeMMJ','6064405WhKquV','Không\x20có\x20dữ\x20liệu\x20để\x20hiển\x20thị.','Tần\x20suất','Giá\x20trị\x20nhỏ\x20nhất','Tổng\x20phụ','1913082cUVfSO','Phần\x20tư\x20thứ\x20nhất'];_0x2228=function(){return _0x2ad4ee;};return _0x2228();}(function(_0x2288ad,_0x175a6d){const _0x27f779=_0x54b0,_0xfc1d68=_0x2288ad();while(!![]){try{const _0x41fa55=-parseInt(_0x27f779(0x17b))/0x1*(-parseInt(_0x27f779(0x196))/0x2)+parseInt(_0x27f779(0x194))/0x3*(parseInt(_0x27f779(0x186))/0x4)+parseInt(_0x27f779(0x17e))/0x5+-parseInt(_0x27f779(0x183))/0x6+parseInt(_0x27f779(0x17d))/0x7*(-parseInt(_0x27f779(0x189))/0x8)+parseInt(_0x27f779(0x18d))/0x9*(parseInt(_0x27f779(0x191))/0xa)+-parseInt(_0x27f779(0x192))/0xb*(parseInt(_0x27f779(0x18c))/0xc);if(_0x41fa55===_0x175a6d)break;else _0xfc1d68['push'](_0xfc1d68['shift']());}catch(_0x129bc0){_0xfc1d68['push'](_0xfc1d68['shift']());}}}(_0x2228,0xa67d8));const e={'sheets-chart':{'category':_0x59f074(0x18e),'series':_0x59f074(0x190),'seriesDefaultName':_0x59f074(0x185),'categoryDefaultName':'Danh\x20mục\x20{0}','blank':_0x59f074(0x193),'msg':{'emptyTips':_0x59f074(0x17f),'sankeyCircularTips':_0x59f074(0x17c)},'bubble':{'emptyTips':_0x59f074(0x18a)},'relation':{'emptyTips':_0x59f074(0x188)},'cloud':{'word':'Từ','frequency':_0x59f074(0x180)},'waterfall':{'positive':_0x59f074(0x18f),'negative':_0x59f074(0x195),'subtotal':_0x59f074(0x182)},'pareto':{'lineName':'Tỷ\x20lệ\x20tích\x20lũy'},'boxplot':{'min':_0x59f074(0x181),'q1':_0x59f074(0x184),'median':_0x59f074(0x18b),'q3':_0x59f074(0x187),'max':'Giá\x20trị\x20lớn\x20nhất'}}};export{e as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x412b2c=_0x5abb;(function(_0x4a6eb7,_0x1385b1){const _0x512bdf=_0x5abb,_0x3ae4fe=_0x4a6eb7();while(!![]){try{const _0x467ee3=parseInt(_0x512bdf(0x15f))/0x1+parseInt(_0x512bdf(0x15e))/0x2*(-parseInt(_0x512bdf(0x162))/0x3)+parseInt(_0x512bdf(0x155))/0x4+parseInt(_0x512bdf(0x158))/0x5+parseInt(_0x512bdf(0x154))/0x6+-parseInt(_0x512bdf(0x156))/0x7+-parseInt(_0x512bdf(0x165))/0x8*(parseInt(_0x512bdf(0x160))/0x9);if(_0x467ee3===_0x1385b1)break;else _0x3ae4fe['push'](_0x3ae4fe['shift']());}catch(_0xbf76c2){_0x3ae4fe['push'](_0x3ae4fe['shift']());}}}(_0x43ae,0xe6a0a));function _0x43ae(){const _0x10ba0b=['累积占比','最大值','964086MKUteK','991679ymwVLo','4122AZeJbo','(空)','9hwmvij','Category','关系图数据源为额外添加类型列在第二列的共词矩阵','22728DvLbfu','请先添加系列开始数据可视化','类别\x20{0}','第一四分位数','10288050LiHfSM','270416cgJWqe','3107188cYNovi','桑基图不能包含循环数据','6809415Pyrrxd','第三四分位数','气泡图至少需要2列,X轴、Y轴。','中位数'];_0x43ae=function(){return _0x10ba0b;};return _0x43ae();}function _0x5abb(_0x4d20eb,_0x364cd7){_0x4d20eb=_0x4d20eb-0x154;const _0x43ae73=_0x43ae();let _0x5abb2a=_0x43ae73[_0x4d20eb];return _0x5abb2a;}const e={'sheets-chart':{'category':_0x412b2c(0x163),'series':'Series','seriesDefaultName':'系列\x20{0}','categoryDefaultName':_0x412b2c(0x167),'blank':_0x412b2c(0x161),'msg':{'emptyTips':_0x412b2c(0x166),'sankeyCircularTips':_0x412b2c(0x157)},'bubble':{'emptyTips':_0x412b2c(0x15a)},'relation':{'emptyTips':_0x412b2c(0x164)},'cloud':{'word':'词语','frequency':'频率'},'waterfall':{'positive':'正值','negative':'负值','subtotal':'小计'},'pareto':{'lineName':_0x412b2c(0x15c)},'boxplot':{'min':'最小值','q1':_0x412b2c(0x168),'median':_0x412b2c(0x15b),'q3':_0x412b2c(0x159),'max':_0x412b2c(0x15d)}}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2c9b6f=_0x1f1e;(function(_0x56b8f3,_0x163ef4){const _0xc4b8a8=_0x1f1e,_0x578803=_0x56b8f3();while(!![]){try{const _0x2c8525=parseInt(_0xc4b8a8(0x1fb))/0x1*(parseInt(_0xc4b8a8(0x1f5))/0x2)+-parseInt(_0xc4b8a8(0x1eb))/0x3+-parseInt(_0xc4b8a8(0x1ed))/0x4+parseInt(_0xc4b8a8(0x1ec))/0x5*(parseInt(_0xc4b8a8(0x1ea))/0x6)+parseInt(_0xc4b8a8(0x1fa))/0x7+parseInt(_0xc4b8a8(0x1f3))/0x8+-parseInt(_0xc4b8a8(0x1f0))/0x9;if(_0x2c8525===_0x163ef4)break;else _0x578803['push'](_0x578803['shift']());}catch(_0x162fd7){_0x578803['push'](_0x578803['shift']());}}}(_0x2bc5,0xb7ede));function _0x1f1e(_0x5f7b12,_0x2647ef){_0x5f7b12=_0x5f7b12-0x1ea;const _0x2bc58f=_0x2bc5();let _0x1f1ecd=_0x2bc58f[_0x5f7b12];return _0x1f1ecd;}const e={'sheets-chart':{'category':'Category','series':'Series','seriesDefaultName':'系列\x20{0}','categoryDefaultName':_0x2c9b6f(0x1fc),'blank':_0x2c9b6f(0x1f9),'msg':{'emptyTips':_0x2c9b6f(0x1f1),'sankeyCircularTips':_0x2c9b6f(0x1f4)},'bubble':{'emptyTips':_0x2c9b6f(0x1ee)},'relation':{'emptyTips':'關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣'},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x2c9b6f(0x1f8)},'boxplot':{'min':_0x2c9b6f(0x1ef),'q1':_0x2c9b6f(0x1f7),'median':_0x2c9b6f(0x1f2),'q3':_0x2c9b6f(0x1f6),'max':'最大值'}}};export{e as default};function _0x2bc5(){const _0x2118d5=['氣泡圖至少需要2欄,X軸、Y軸。','最小值','6443946QWRxFe','請先添加系列開始數據可視化','中位數','6062520PmlbAy','桑基圖不能包含循環數據','12506jOEUWu','第三四分位數','第一四分位數','累積占比','(空)','8433684SffMIi','157fvOJkm','類別\x20{0}','48KpTQob','3691176UkJsKq','90040fjPEKh','1554608iQGqyr'];_0x2bc5=function(){return _0x2118d5;};return _0x2bc5();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4d1619=_0x1b84;(function(_0x2d922e,_0x3a6c23){const _0x3d7bd7=_0x1b84,_0x356fbe=_0x2d922e();while(!![]){try{const _0x43bf6d=parseInt(_0x3d7bd7(0x6d))/0x1+-parseInt(_0x3d7bd7(0x7f))/0x2+parseInt(_0x3d7bd7(0x6e))/0x3+-parseInt(_0x3d7bd7(0x80))/0x4+parseInt(_0x3d7bd7(0x7d))/0x5*(-parseInt(_0x3d7bd7(0x7e))/0x6)+parseInt(_0x3d7bd7(0x70))/0x7+parseInt(_0x3d7bd7(0x72))/0x8;if(_0x43bf6d===_0x3a6c23)break;else _0x356fbe['push'](_0x356fbe['shift']());}catch(_0x3f181d){_0x356fbe['push'](_0x356fbe['shift']());}}}(_0x272a,0x8376b));function _0x1b84(_0xb9f267,_0x50c60c){_0xb9f267=_0xb9f267-0x6d;const _0x272a57=_0x272a();let _0x1b840b=_0x272a57[_0xb9f267];return _0x1b840b;}const e={'sheets-chart':{'category':_0x4d1619(0x71),'series':_0x4d1619(0x7a),'seriesDefaultName':'系列\x20{0}','categoryDefaultName':_0x4d1619(0x77),'blank':'(空)','msg':{'emptyTips':_0x4d1619(0x7c),'sankeyCircularTips':_0x4d1619(0x74)},'bubble':{'emptyTips':_0x4d1619(0x6f)},'relation':{'emptyTips':_0x4d1619(0x78)},'cloud':{'word':'詞','frequency':'頻率'},'waterfall':{'positive':'正值','negative':'負值','subtotal':'小計'},'pareto':{'lineName':_0x4d1619(0x73)},'boxplot':{'min':_0x4d1619(0x76),'q1':_0x4d1619(0x79),'median':_0x4d1619(0x7b),'q3':'第三四分位數','max':_0x4d1619(0x75)}}};export{e as default};function _0x272a(){const _0x399752=['Series','中位數','請先添加系列開始數據可視化','545135MOGmme','18TDpeAL','1506490TtINgw','1780196EMpFUq','649818rXpJTC','1139691BOXzmA','氣泡圖至少需要2欄,X軸、Y軸。','5395691uEWgtk','Category','2106576Ovkbvs','累積占比','桑基圖不能包含循環數據','最大值','最小值','類別\x20{0}','關係圖資料來源為額外新增類型欄在第二欄的共詞矩陣','第一四分位數'];_0x272a=function(){return _0x399752;};return _0x272a();}
|
|
@@ -19,4 +19,5 @@ export interface IInsertChartCommandParams extends ISheetCommandSharedParams {
|
|
|
19
19
|
config?: IChartUpdateConfigMutationParams;
|
|
20
20
|
isRowDirection?: boolean;
|
|
21
21
|
}
|
|
22
|
+
export declare function resolveInsertChartDrawingBackground(params: Pick<IInsertChartCommandParams, 'backgroundColor' | 'config'>): string;
|
|
22
23
|
export declare const InsertChartCommand: ICommand;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { IWordCloudRenderConfig } from '@univerjs-pro/engine-chart';
|
|
2
2
|
export declare const SHEETS_CHART_PLUGIN_CONFIG_KEY = "sheets-chart.config";
|
|
3
3
|
export declare const configSymbol: unique symbol;
|
|
4
|
+
export declare enum ChartRenderMode {
|
|
5
|
+
Dom = "dom",
|
|
6
|
+
Image = "image"
|
|
7
|
+
}
|
|
4
8
|
export interface IUniverSheetsChartConfig {
|
|
5
9
|
wordCloudRenderConfig?: IWordCloudRenderConfig;
|
|
10
|
+
chartRenderMode?: ChartRenderMode;
|
|
6
11
|
}
|
|
7
12
|
export declare const defaultPluginConfig: IUniverSheetsChartConfig;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ChartStyle, ChartTypeBits as ChartTypeBitsType, IChartContext, IChartDataAggregation, IChartDataSeries } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { ISheetChartSourceSingleRange } from '@univerjs-pro/sheets-chart';
|
|
3
|
+
import type { Injector, IRange, Workbook } from '@univerjs/core';
|
|
4
|
+
import type { ChartCapabilities, ChartCreateSpec, ChartDescription, ChartDiagnostic, ChartDiagnosticCode, ChartInstanceCapabilities, ChartKnownTypeName, ChartLayoutPatch, ChartSourceDescription, ChartSourceSpec, ChartSuggestion, ChartTypeName, ChartUpdatePatch, ChartValidationResult } from './chart-facade-types';
|
|
5
|
+
import { SheetsChartService } from '@univerjs-pro/sheets-chart';
|
|
6
|
+
import { ISheetDrawingService } from '@univerjs/sheets-drawing';
|
|
7
|
+
export declare class ChartFacadeError extends Error {
|
|
8
|
+
readonly diagnostics: ChartDiagnostic[];
|
|
9
|
+
constructor(message: string, diagnostics: ChartDiagnostic[]);
|
|
10
|
+
}
|
|
11
|
+
export declare function diagnostic(code: ChartDiagnosticCode, message: string, path?: string, severity?: ChartDiagnostic['severity'], details?: unknown, metadata?: Pick<ChartDiagnostic, 'allowedValues' | 'suggestion'>): ChartDiagnostic;
|
|
12
|
+
export declare function hasError(diagnostics: ChartDiagnostic[]): boolean;
|
|
13
|
+
export declare function throwIfInvalid(result: ChartValidationResult): void;
|
|
14
|
+
export declare function chartTypeNameToBits(type: unknown, diagnostics: ChartDiagnostic[], path?: string): ChartTypeBitsType | null;
|
|
15
|
+
export declare function chartTypeBitsToName(type: ChartTypeBitsType, style?: ChartStyle): ChartTypeName;
|
|
16
|
+
export declare function buildDonutStyle(type: ChartKnownTypeName | undefined): ChartStyle | undefined;
|
|
17
|
+
export interface IChartFacadeSourceContext {
|
|
18
|
+
unitId: string;
|
|
19
|
+
subUnitId: string;
|
|
20
|
+
workbook: Workbook;
|
|
21
|
+
}
|
|
22
|
+
export type ChartFacadeSourceContext = IChartFacadeSourceContext;
|
|
23
|
+
export interface IResolvedChartSource {
|
|
24
|
+
range: IRange;
|
|
25
|
+
sourceSheetName?: string;
|
|
26
|
+
rangeInfo: ISheetChartSourceSingleRange;
|
|
27
|
+
isRowDirection?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export type ResolvedChartSource = IResolvedChartSource;
|
|
30
|
+
export declare function resolveSourceSpec(source: ChartSourceSpec | undefined, context: ChartFacadeSourceContext, diagnostics: ChartDiagnostic[], path?: string): ResolvedChartSource | null;
|
|
31
|
+
export declare function validateCreateSpec(spec: ChartCreateSpec, context: ChartFacadeSourceContext): ChartValidationResult<ChartCreateSpec>;
|
|
32
|
+
export declare function validateUpdatePatch(patch: ChartUpdatePatch, context: ChartFacadeSourceContext): ChartValidationResult<ChartUpdatePatch>;
|
|
33
|
+
export interface IChartConfigPatch {
|
|
34
|
+
chartType?: ChartTypeBitsType;
|
|
35
|
+
style?: ChartStyle;
|
|
36
|
+
context?: IChartContext;
|
|
37
|
+
dataAggregation?: Partial<IChartDataAggregation>;
|
|
38
|
+
}
|
|
39
|
+
export type ChartConfigPatch = IChartConfigPatch;
|
|
40
|
+
export declare function buildChartConfigPatch(patch: ChartCreateSpec | ChartUpdatePatch, diagnostics: ChartDiagnostic[], series?: IChartDataSeries[], currentContext?: IChartContext): ChartConfigPatch;
|
|
41
|
+
export declare function buildSourceDescription(source: ISheetChartSourceSingleRange, workbook?: Workbook): ChartSourceDescription;
|
|
42
|
+
export declare function buildSuggestions(source: ChartSourceSpec, context: ChartFacadeSourceContext, sheetsChartService: SheetsChartService): ChartSuggestion[];
|
|
43
|
+
export declare function getWorksheetChartCapabilities(): ChartCapabilities;
|
|
44
|
+
export declare function getChartInstanceCapabilities(chartId: string, type: ChartTypeName, rawType?: number): ChartInstanceCapabilities;
|
|
45
|
+
export interface IChartRuntimeContext {
|
|
46
|
+
unitId: string;
|
|
47
|
+
subUnitId: string;
|
|
48
|
+
chartId: string;
|
|
49
|
+
injector: Injector;
|
|
50
|
+
}
|
|
51
|
+
export type ChartRuntimeContext = IChartRuntimeContext;
|
|
52
|
+
export declare function describeChart(context: ChartRuntimeContext): ChartDescription | null;
|
|
53
|
+
export declare function getWorkbook(injector: Injector, unitId: string): Workbook | null;
|
|
54
|
+
export declare function buildLayoutDrawingPatch(context: ChartRuntimeContext, layout: ChartLayoutPatch, diagnostics: ChartDiagnostic[]): NonNullable<ReturnType<ISheetDrawingService['getDrawingByParam']>> | null;
|
|
55
|
+
export declare function resolveInitialChartPosition(context: Pick<ChartRuntimeContext, 'unitId' | 'subUnitId' | 'injector'>, layout: Pick<ChartCreateSpec, 'anchor' | 'position'>, diagnostics: ChartDiagnostic[]): {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
} | undefined;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { ChartAdvancedStylePatch, ChartAggregationSpec, ChartAnchorSpec, ChartAppearanceSpec, ChartAxesSpec, ChartCreateSpec, ChartKnownTypeName, ChartLayoutPatch, ChartLegendSpec, ChartMappingSpec, ChartPieSpec, ChartRadarSpec, ChartSeriesPatch, ChartSourceSpec, ChartTitleSpec, ChartUpdatePatch, ChartUpdateResult, ChartValidationResult, ChartWordCloudSpec } from './chart-facade-types';
|
|
2
|
+
import type { FChart } from './f-chart';
|
|
3
|
+
export declare class ChartCreateBuilder {
|
|
4
|
+
private readonly _create;
|
|
5
|
+
private readonly _validate;
|
|
6
|
+
private readonly _spec;
|
|
7
|
+
constructor(_create: (spec: ChartCreateSpec) => Promise<FChart>, _validate: (spec: ChartCreateSpec) => ChartValidationResult<ChartCreateSpec>);
|
|
8
|
+
type(type: ChartKnownTypeName): this;
|
|
9
|
+
source(source: ChartSourceSpec): this;
|
|
10
|
+
column(source: ChartSourceSpec): this;
|
|
11
|
+
line(source: ChartSourceSpec): this;
|
|
12
|
+
bar(source: ChartSourceSpec): this;
|
|
13
|
+
pie(source: ChartSourceSpec): this;
|
|
14
|
+
radar(source: ChartSourceSpec): this;
|
|
15
|
+
wordCloud(source: ChartSourceSpec): this;
|
|
16
|
+
at(anchor: ChartAnchorSpec): this;
|
|
17
|
+
position(x: number, y: number): this;
|
|
18
|
+
size(width: number, height: number): this;
|
|
19
|
+
title(title: ChartTitleSpec): this;
|
|
20
|
+
legend(legend: ChartLegendSpec): this;
|
|
21
|
+
axes(axes: ChartAxesSpec): this;
|
|
22
|
+
series(series: ChartSeriesPatch[]): this;
|
|
23
|
+
wordCloudOptions(wordCloud: ChartWordCloudSpec): this;
|
|
24
|
+
appearance(appearance: ChartAppearanceSpec): this;
|
|
25
|
+
mapping(mapping: ChartMappingSpec): this;
|
|
26
|
+
aggregation(aggregation: ChartAggregationSpec): this;
|
|
27
|
+
pieOptions(pie: ChartPieSpec): this;
|
|
28
|
+
radarOptions(radar: ChartRadarSpec): this;
|
|
29
|
+
advancedStyle(advancedStyle: ChartAdvancedStylePatch): this;
|
|
30
|
+
theme(theme: string): this;
|
|
31
|
+
toSpec(): ChartCreateSpec;
|
|
32
|
+
validate(): ChartValidationResult<ChartCreateSpec>;
|
|
33
|
+
commit(): Promise<FChart>;
|
|
34
|
+
}
|
|
35
|
+
export declare class ChartUpdateBuilder {
|
|
36
|
+
private readonly _update;
|
|
37
|
+
private readonly _validate;
|
|
38
|
+
private readonly _patch;
|
|
39
|
+
constructor(_update: (patch: ChartUpdatePatch) => Promise<ChartUpdateResult>, _validate: (patch: ChartUpdatePatch) => ChartValidationResult<ChartUpdatePatch>);
|
|
40
|
+
type(type: ChartKnownTypeName): this;
|
|
41
|
+
source(source: ChartSourceSpec): this;
|
|
42
|
+
layout(layout: ChartLayoutPatch): this;
|
|
43
|
+
at(anchor: ChartAnchorSpec): this;
|
|
44
|
+
position(x: number, y: number): this;
|
|
45
|
+
size(width: number, height: number): this;
|
|
46
|
+
title(title: ChartTitleSpec): this;
|
|
47
|
+
legend(legend: ChartLegendSpec): this;
|
|
48
|
+
axes(axes: ChartAxesSpec): this;
|
|
49
|
+
series(series: ChartSeriesPatch[]): this;
|
|
50
|
+
setSeries(series: ChartSeriesPatch): this;
|
|
51
|
+
wordCloud(wordCloud: ChartWordCloudSpec): this;
|
|
52
|
+
appearance(appearance: ChartAppearanceSpec): this;
|
|
53
|
+
mapping(mapping: ChartMappingSpec): this;
|
|
54
|
+
aggregation(aggregation: ChartAggregationSpec): this;
|
|
55
|
+
pieOptions(pie: ChartPieSpec): this;
|
|
56
|
+
radarOptions(radar: ChartRadarSpec): this;
|
|
57
|
+
advancedStyle(advancedStyle: ChartAdvancedStylePatch): this;
|
|
58
|
+
theme(theme: string): this;
|
|
59
|
+
toSpec(): ChartUpdatePatch;
|
|
60
|
+
validate(): ChartValidationResult<ChartUpdatePatch>;
|
|
61
|
+
commit(): Promise<ChartUpdateResult>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import type { ChartBorderDashType, ChartStyle, IChartDataCategory, IChartDataSeries, IEchartTheme, LabelContentType, LinePointShape, RadarShape, WordCloudShapeEnum } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { IRange } from '@univerjs/core';
|
|
3
|
+
import type { FChart } from './f-chart';
|
|
4
|
+
export type DeepReadonly<T> = T extends (...args: any[]) => unknown ? T : T extends readonly (infer U)[] ? readonly DeepReadonly<U>[] : T extends object ? {
|
|
5
|
+
readonly [K in keyof T]: DeepReadonly<T[K]>;
|
|
6
|
+
} : T;
|
|
7
|
+
export type DeepPartial<T> = T extends (...args: any[]) => unknown ? T : T extends readonly (infer U)[] ? DeepPartial<U>[] : T extends object ? {
|
|
8
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
9
|
+
} : T;
|
|
10
|
+
export type ChartKnownTypeName = 'line' | 'column' | 'bar' | 'pie' | 'donut' | 'doughnut' | 'area' | 'radar' | 'scatter' | 'combo' | 'combination' | 'wordCloud';
|
|
11
|
+
export type ChartTypeName = ChartKnownTypeName | 'unsupported';
|
|
12
|
+
export type ChartSourceOrientation = 'auto' | 'row' | 'column' | 'rows' | 'columns' | 'rowsAsSeries' | 'columnsAsSeries';
|
|
13
|
+
export type ChartRangeSpec = string | IRange;
|
|
14
|
+
export type ChartSourceSpec = ChartRangeSpec | {
|
|
15
|
+
range: ChartRangeSpec;
|
|
16
|
+
sheetName?: string;
|
|
17
|
+
sheetId?: string;
|
|
18
|
+
unitId?: string;
|
|
19
|
+
orientation?: ChartSourceOrientation;
|
|
20
|
+
};
|
|
21
|
+
export type ChartAnchorSpec = string | {
|
|
22
|
+
row: number;
|
|
23
|
+
column: number;
|
|
24
|
+
rowOffset?: number;
|
|
25
|
+
columnOffset?: number;
|
|
26
|
+
};
|
|
27
|
+
export interface IChartSizeSpec {
|
|
28
|
+
width?: number;
|
|
29
|
+
height?: number;
|
|
30
|
+
}
|
|
31
|
+
export type ChartSizeSpec = IChartSizeSpec;
|
|
32
|
+
export interface IChartLayoutPatch {
|
|
33
|
+
anchor?: ChartAnchorSpec;
|
|
34
|
+
position?: {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
};
|
|
38
|
+
size?: ChartSizeSpec;
|
|
39
|
+
}
|
|
40
|
+
export type ChartLayoutPatch = IChartLayoutPatch;
|
|
41
|
+
export type ChartTitleSpec = string | {
|
|
42
|
+
text?: string;
|
|
43
|
+
visible?: boolean;
|
|
44
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
45
|
+
alignment?: 'left' | 'center' | 'right';
|
|
46
|
+
fontSize?: number;
|
|
47
|
+
color?: string;
|
|
48
|
+
bold?: boolean;
|
|
49
|
+
};
|
|
50
|
+
export type ChartLegendSpec = boolean | {
|
|
51
|
+
visible?: boolean;
|
|
52
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
53
|
+
selectMode?: 'single' | 'multiple' | 'close';
|
|
54
|
+
fontSize?: number;
|
|
55
|
+
color?: string;
|
|
56
|
+
bold?: boolean;
|
|
57
|
+
italic?: boolean;
|
|
58
|
+
};
|
|
59
|
+
export interface IChartAxisSpec {
|
|
60
|
+
title?: string;
|
|
61
|
+
min?: number | null;
|
|
62
|
+
max?: number | null;
|
|
63
|
+
reverse?: boolean;
|
|
64
|
+
line?: {
|
|
65
|
+
visible?: boolean;
|
|
66
|
+
color?: string;
|
|
67
|
+
width?: number;
|
|
68
|
+
};
|
|
69
|
+
tick?: {
|
|
70
|
+
visible?: boolean;
|
|
71
|
+
color?: string;
|
|
72
|
+
width?: number;
|
|
73
|
+
length?: number;
|
|
74
|
+
position?: 'inside' | 'outside';
|
|
75
|
+
};
|
|
76
|
+
format?: string | null;
|
|
77
|
+
titleStyle?: {
|
|
78
|
+
color?: string;
|
|
79
|
+
fontSize?: number;
|
|
80
|
+
bold?: boolean;
|
|
81
|
+
italic?: boolean;
|
|
82
|
+
family?: string;
|
|
83
|
+
};
|
|
84
|
+
label?: {
|
|
85
|
+
visible?: boolean;
|
|
86
|
+
color?: string;
|
|
87
|
+
fontSize?: number;
|
|
88
|
+
rotate?: number;
|
|
89
|
+
};
|
|
90
|
+
gridLine?: {
|
|
91
|
+
visible?: boolean;
|
|
92
|
+
color?: string;
|
|
93
|
+
width?: number;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export type ChartAxisSpec = IChartAxisSpec;
|
|
97
|
+
export interface IChartAxesSpec {
|
|
98
|
+
x?: ChartAxisSpec;
|
|
99
|
+
y?: ChartAxisSpec;
|
|
100
|
+
rightY?: Omit<ChartAxisSpec, 'reverse'>;
|
|
101
|
+
}
|
|
102
|
+
export type ChartAxesSpec = IChartAxesSpec;
|
|
103
|
+
export type ChartSeriesSelector = {
|
|
104
|
+
index: number;
|
|
105
|
+
} | {
|
|
106
|
+
name: string;
|
|
107
|
+
};
|
|
108
|
+
export interface IChartSeriesPatch {
|
|
109
|
+
selector: ChartSeriesSelector;
|
|
110
|
+
name?: string;
|
|
111
|
+
type?: 'column' | 'line' | 'area';
|
|
112
|
+
color?: string;
|
|
113
|
+
fillOpacity?: number;
|
|
114
|
+
border?: {
|
|
115
|
+
color?: string | null;
|
|
116
|
+
width?: number;
|
|
117
|
+
opacity?: number;
|
|
118
|
+
dashType?: ChartBorderDashType;
|
|
119
|
+
};
|
|
120
|
+
point?: {
|
|
121
|
+
shape?: LinePointShape;
|
|
122
|
+
size?: number;
|
|
123
|
+
color?: string | null;
|
|
124
|
+
};
|
|
125
|
+
rightAxis?: boolean;
|
|
126
|
+
label?: {
|
|
127
|
+
visible?: boolean;
|
|
128
|
+
position?: 'top' | 'bottom' | 'inside' | 'outside';
|
|
129
|
+
contentType?: LabelContentType;
|
|
130
|
+
color?: string;
|
|
131
|
+
fontSize?: number;
|
|
132
|
+
bold?: boolean;
|
|
133
|
+
italic?: boolean;
|
|
134
|
+
};
|
|
135
|
+
dataPoints?: Record<number, {
|
|
136
|
+
shape?: LinePointShape;
|
|
137
|
+
size?: number;
|
|
138
|
+
color?: string | null;
|
|
139
|
+
fillOpacity?: number;
|
|
140
|
+
}>;
|
|
141
|
+
}
|
|
142
|
+
export type ChartSeriesPatch = IChartSeriesPatch;
|
|
143
|
+
export interface IChartWordCloudSpec {
|
|
144
|
+
shape?: WordCloudShapeEnum;
|
|
145
|
+
/**
|
|
146
|
+
* Stable wordcloud mask resource id/key known to the runtime.
|
|
147
|
+
*
|
|
148
|
+
* The public facade intentionally does not recommend arbitrary URL/data URL
|
|
149
|
+
* input in v1. Legacy URL/data URL values may still appear through rawStyle
|
|
150
|
+
* for expert/debug compatibility, but normal callers should use registered
|
|
151
|
+
* mask resource ids.
|
|
152
|
+
*
|
|
153
|
+
* Patch semantics:
|
|
154
|
+
* - omitted/undefined: keep the current mask image setting.
|
|
155
|
+
* - null: clear the persisted mask image and fall back to shape.
|
|
156
|
+
* - string: set the mask image id; the mask image takes precedence over shape.
|
|
157
|
+
*/
|
|
158
|
+
maskImageId?: string | null;
|
|
159
|
+
repeat?: boolean;
|
|
160
|
+
}
|
|
161
|
+
export type ChartWordCloudSpec = IChartWordCloudSpec;
|
|
162
|
+
export interface IChartWordCloudDescription {
|
|
163
|
+
shape?: WordCloudShapeEnum;
|
|
164
|
+
maskImageId?: string;
|
|
165
|
+
repeat?: boolean;
|
|
166
|
+
effectiveShapeSource: 'shape' | 'maskImage';
|
|
167
|
+
}
|
|
168
|
+
export type ChartWordCloudDescription = IChartWordCloudDescription;
|
|
169
|
+
export interface IChartAppearanceSpec {
|
|
170
|
+
background?: {
|
|
171
|
+
color?: string | null;
|
|
172
|
+
gradient?: boolean;
|
|
173
|
+
};
|
|
174
|
+
border?: {
|
|
175
|
+
color?: string | null;
|
|
176
|
+
width?: number;
|
|
177
|
+
};
|
|
178
|
+
font?: {
|
|
179
|
+
color?: string;
|
|
180
|
+
size?: number;
|
|
181
|
+
family?: string;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
export type ChartAppearanceSpec = IChartAppearanceSpec;
|
|
185
|
+
export interface IChartMappingSpec {
|
|
186
|
+
categoryIndex?: number | null;
|
|
187
|
+
seriesIndexes?: number[] | null;
|
|
188
|
+
useDateAxis?: boolean | null;
|
|
189
|
+
bubble?: {
|
|
190
|
+
sizeSeriesIndex?: number | null;
|
|
191
|
+
xAxisIndex?: number | null;
|
|
192
|
+
yAxisIndex?: number | null;
|
|
193
|
+
labelIndex?: number | null;
|
|
194
|
+
seriesIndex?: number | null;
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
export type ChartMappingSpec = IChartMappingSpec;
|
|
198
|
+
export interface IChartAggregationSpec {
|
|
199
|
+
aggregate?: boolean;
|
|
200
|
+
topN?: number | null;
|
|
201
|
+
}
|
|
202
|
+
export type ChartAggregationSpec = IChartAggregationSpec;
|
|
203
|
+
export interface IChartPieSpec {
|
|
204
|
+
doughnutHole?: number | null;
|
|
205
|
+
borderColor?: string;
|
|
206
|
+
hasPaddingAngle?: boolean;
|
|
207
|
+
isHalfPie?: boolean;
|
|
208
|
+
rosePie?: boolean;
|
|
209
|
+
showLabelLine?: boolean;
|
|
210
|
+
valueScale?: number;
|
|
211
|
+
valueSuffix?: string;
|
|
212
|
+
digitalFixed?: number;
|
|
213
|
+
label?: {
|
|
214
|
+
visible?: boolean;
|
|
215
|
+
position?: 'inside' | 'outside';
|
|
216
|
+
contentType?: LabelContentType;
|
|
217
|
+
color?: string;
|
|
218
|
+
fontSize?: number;
|
|
219
|
+
bold?: boolean;
|
|
220
|
+
italic?: boolean;
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
export type ChartPieSpec = IChartPieSpec;
|
|
224
|
+
export interface IChartRadarSpec {
|
|
225
|
+
shape?: RadarShape;
|
|
226
|
+
fill?: boolean;
|
|
227
|
+
}
|
|
228
|
+
export type ChartRadarSpec = IChartRadarSpec;
|
|
229
|
+
export type ChartAdvancedStylePatch = DeepPartial<Pick<ChartStyle, 'tooltip' | 'area' | 'funnel' | 'relation' | 'waterfall'>>;
|
|
230
|
+
export interface IChartCreateSpec {
|
|
231
|
+
type: ChartKnownTypeName;
|
|
232
|
+
source: ChartSourceSpec;
|
|
233
|
+
anchor?: ChartAnchorSpec;
|
|
234
|
+
position?: {
|
|
235
|
+
x: number;
|
|
236
|
+
y: number;
|
|
237
|
+
};
|
|
238
|
+
size?: ChartSizeSpec;
|
|
239
|
+
title?: ChartTitleSpec;
|
|
240
|
+
legend?: ChartLegendSpec;
|
|
241
|
+
axes?: ChartAxesSpec;
|
|
242
|
+
series?: ChartSeriesPatch[];
|
|
243
|
+
wordCloud?: ChartWordCloudSpec;
|
|
244
|
+
appearance?: ChartAppearanceSpec;
|
|
245
|
+
mapping?: ChartMappingSpec;
|
|
246
|
+
aggregation?: ChartAggregationSpec;
|
|
247
|
+
pie?: ChartPieSpec;
|
|
248
|
+
radar?: ChartRadarSpec;
|
|
249
|
+
advancedStyle?: ChartAdvancedStylePatch;
|
|
250
|
+
theme?: string;
|
|
251
|
+
}
|
|
252
|
+
export type ChartCreateSpec = IChartCreateSpec;
|
|
253
|
+
export interface IChartUpdatePatch {
|
|
254
|
+
type?: ChartKnownTypeName;
|
|
255
|
+
source?: ChartSourceSpec;
|
|
256
|
+
title?: ChartTitleSpec;
|
|
257
|
+
legend?: ChartLegendSpec;
|
|
258
|
+
axes?: ChartAxesSpec;
|
|
259
|
+
series?: ChartSeriesPatch[];
|
|
260
|
+
wordCloud?: ChartWordCloudSpec;
|
|
261
|
+
appearance?: ChartAppearanceSpec;
|
|
262
|
+
mapping?: ChartMappingSpec;
|
|
263
|
+
aggregation?: ChartAggregationSpec;
|
|
264
|
+
pie?: ChartPieSpec;
|
|
265
|
+
radar?: ChartRadarSpec;
|
|
266
|
+
advancedStyle?: ChartAdvancedStylePatch;
|
|
267
|
+
theme?: string;
|
|
268
|
+
layout?: ChartLayoutPatch;
|
|
269
|
+
}
|
|
270
|
+
export type ChartUpdatePatch = IChartUpdatePatch;
|
|
271
|
+
export type ChartDiagnosticCode = 'CHART_NOT_FOUND' | 'SERIES_NOT_FOUND' | 'AMBIGUOUS_SERIES_SELECTOR' | 'INVALID_RANGE' | 'SINGLE_CELL_SOURCE' | 'NO_NUMERIC_SERIES' | 'UNKNOWN_CHART_TYPE' | 'UNSUPPORTED_CHART_TYPE' | 'INVALID_SIZE' | 'INVALID_COLOR' | 'COMMAND_FAILED' | 'UNKNOWN_OPTION';
|
|
272
|
+
export interface IChartDiagnostic {
|
|
273
|
+
code: ChartDiagnosticCode;
|
|
274
|
+
severity: 'error' | 'warning';
|
|
275
|
+
message: string;
|
|
276
|
+
path?: string;
|
|
277
|
+
details?: unknown;
|
|
278
|
+
allowedValues?: readonly unknown[];
|
|
279
|
+
suggestion?: string;
|
|
280
|
+
}
|
|
281
|
+
export type ChartDiagnostic = IChartDiagnostic;
|
|
282
|
+
export interface IChartValidationResult<TNormalized = unknown> {
|
|
283
|
+
ok: boolean;
|
|
284
|
+
diagnostics: ChartDiagnostic[];
|
|
285
|
+
normalized?: DeepReadonly<TNormalized>;
|
|
286
|
+
}
|
|
287
|
+
export type ChartValidationResult<TNormalized = unknown> = IChartValidationResult<TNormalized>;
|
|
288
|
+
export interface IChartUpdateResult {
|
|
289
|
+
ok: boolean;
|
|
290
|
+
chart: FChart | null;
|
|
291
|
+
diagnostics: ChartDiagnostic[];
|
|
292
|
+
changed: Array<'source' | 'type' | 'style' | 'data' | 'layout'>;
|
|
293
|
+
}
|
|
294
|
+
export type ChartUpdateResult = IChartUpdateResult;
|
|
295
|
+
export interface IChartSuggestion {
|
|
296
|
+
type: ChartKnownTypeName;
|
|
297
|
+
orientation: 'rows' | 'columns';
|
|
298
|
+
reason?: string;
|
|
299
|
+
}
|
|
300
|
+
export type ChartSuggestion = IChartSuggestion;
|
|
301
|
+
export interface IChartCapabilities {
|
|
302
|
+
version: string;
|
|
303
|
+
chartTypes: readonly ChartKnownTypeName[];
|
|
304
|
+
patchSemantics: {
|
|
305
|
+
omitted: 'noChange';
|
|
306
|
+
undefined: 'noChange';
|
|
307
|
+
null: 'clearWhereSupported';
|
|
308
|
+
object: 'semanticMerge';
|
|
309
|
+
array: 'replaceUnlessSelectorMerge';
|
|
310
|
+
unknownField: 'validationError';
|
|
311
|
+
};
|
|
312
|
+
createGroups: readonly string[];
|
|
313
|
+
updateGroups: readonly string[];
|
|
314
|
+
styleGroups: readonly string[];
|
|
315
|
+
advancedStyle: {
|
|
316
|
+
supported: boolean;
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
export type ChartCapabilities = IChartCapabilities;
|
|
320
|
+
export interface IChartInstanceCapabilities extends IChartCapabilities {
|
|
321
|
+
chartId: string;
|
|
322
|
+
type: ChartTypeName;
|
|
323
|
+
rawType?: number;
|
|
324
|
+
unsupportedGroups: readonly string[];
|
|
325
|
+
}
|
|
326
|
+
export type ChartInstanceCapabilities = IChartInstanceCapabilities;
|
|
327
|
+
export interface IChartSourceDescription {
|
|
328
|
+
range: IRange;
|
|
329
|
+
sheetName?: string;
|
|
330
|
+
sheetId: string;
|
|
331
|
+
unitId: string;
|
|
332
|
+
orientation: ChartSourceOrientation;
|
|
333
|
+
}
|
|
334
|
+
export type ChartSourceDescription = IChartSourceDescription;
|
|
335
|
+
export interface IChartSeriesDescription {
|
|
336
|
+
index: number;
|
|
337
|
+
name: string;
|
|
338
|
+
type?: 'column' | 'line' | 'area';
|
|
339
|
+
color?: string | null;
|
|
340
|
+
fillOpacity?: number;
|
|
341
|
+
border?: ChartSeriesPatch['border'];
|
|
342
|
+
point?: ChartSeriesPatch['point'];
|
|
343
|
+
rightAxis?: boolean;
|
|
344
|
+
label?: {
|
|
345
|
+
visible?: boolean;
|
|
346
|
+
position?: 'top' | 'bottom' | 'inside' | 'outside';
|
|
347
|
+
contentType?: LabelContentType;
|
|
348
|
+
color?: string;
|
|
349
|
+
fontSize?: number;
|
|
350
|
+
bold?: boolean;
|
|
351
|
+
italic?: boolean;
|
|
352
|
+
};
|
|
353
|
+
dataPoints?: ChartSeriesPatch['dataPoints'];
|
|
354
|
+
data?: DeepReadonly<IChartDataSeries>;
|
|
355
|
+
}
|
|
356
|
+
export type ChartSeriesDescription = IChartSeriesDescription;
|
|
357
|
+
export interface IChartLayoutDescription {
|
|
358
|
+
position?: {
|
|
359
|
+
x: number;
|
|
360
|
+
y: number;
|
|
361
|
+
};
|
|
362
|
+
size?: ChartSizeSpec;
|
|
363
|
+
anchor?: {
|
|
364
|
+
row: number;
|
|
365
|
+
column: number;
|
|
366
|
+
rowOffset?: number;
|
|
367
|
+
columnOffset?: number;
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
export type ChartLayoutDescription = IChartLayoutDescription;
|
|
371
|
+
export interface IChartDescription {
|
|
372
|
+
id: string;
|
|
373
|
+
type: ChartTypeName;
|
|
374
|
+
rawType?: number;
|
|
375
|
+
diagnostics?: ChartDiagnostic[];
|
|
376
|
+
source: ChartSourceDescription | null;
|
|
377
|
+
title?: ChartTitleSpec;
|
|
378
|
+
legend?: ChartLegendSpec;
|
|
379
|
+
axes?: ChartAxesSpec;
|
|
380
|
+
wordCloud?: ChartWordCloudDescription;
|
|
381
|
+
appearance?: ChartAppearanceSpec;
|
|
382
|
+
mapping?: ChartMappingSpec;
|
|
383
|
+
aggregation?: ChartAggregationSpec;
|
|
384
|
+
pie?: ChartPieSpec;
|
|
385
|
+
radar?: ChartRadarSpec;
|
|
386
|
+
series: ChartSeriesDescription[];
|
|
387
|
+
category?: DeepReadonly<IChartDataCategory>;
|
|
388
|
+
theme?: string;
|
|
389
|
+
layout?: ChartLayoutDescription;
|
|
390
|
+
rawStyle?: DeepReadonly<ChartStyle>;
|
|
391
|
+
}
|
|
392
|
+
export type ChartDescription = IChartDescription;
|
|
393
|
+
export type { IEchartTheme };
|