@univerjs-pro/sheets-chart 0.5.0-alpha.0 → 0.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/en-US.js +1 -1
  3. package/lib/cjs/locale/ru-RU.js +1 -1
  4. package/lib/cjs/locale/vi-VN.js +1 -1
  5. package/lib/cjs/locale/zh-CN.js +1 -1
  6. package/lib/cjs/locale/zh-TW.js +1 -1
  7. package/lib/es/index.js +1 -1
  8. package/lib/es/locale/en-US.js +1 -1
  9. package/lib/es/locale/ru-RU.js +1 -1
  10. package/lib/es/locale/vi-VN.js +1 -1
  11. package/lib/es/locale/zh-CN.js +1 -1
  12. package/lib/es/locale/zh-TW.js +1 -1
  13. package/lib/types/chart-source/chart-source.d.ts +59 -0
  14. package/lib/types/chart-source/source-util.d.ts +30 -0
  15. package/lib/types/commands/commands/sheets-chart-update-config.command.d.ts +14 -0
  16. package/lib/types/commands/commands/sheets-chart-update-source.command.d.ts +8 -0
  17. package/lib/types/commands/mutations/sheet-chart-update-source.mutation.d.ts +8 -0
  18. package/lib/types/commands/mutations/sheets-chart-update-config.mutation.d.ts +13 -0
  19. package/lib/types/commands/mutations/sheets-chart.mutation.d.ts +11 -0
  20. package/lib/types/common/util.d.ts +15 -0
  21. package/lib/types/index.d.ts +37 -814
  22. package/lib/types/locale/en-US.d.ts +3 -0
  23. package/lib/types/locale/ru-RU.d.ts +3 -0
  24. package/lib/types/locale/vi-VN.d.ts +3 -0
  25. package/lib/types/locale/zh-CN.d.ts +22 -0
  26. package/lib/types/locale/zh-TW.d.ts +3 -0
  27. package/lib/types/models/chart-data-operators/build-chart-data.d.ts +3 -0
  28. package/lib/types/models/chart-data-operators/index.d.ts +17 -0
  29. package/lib/types/models/chart-data-operators/operators.d.ts +24 -0
  30. package/lib/types/models/constants/build-in-theme/default.d.ts +2 -0
  31. package/lib/types/models/constants/build-in-theme/index.d.ts +15 -0
  32. package/lib/types/models/constants/build-in-theme/types.d.ts +77 -0
  33. package/lib/types/models/constants/build-in-theme/univer-gradient1.d.ts +2 -0
  34. package/lib/types/models/constants/build-in-theme/univer-gradient2.d.ts +2 -0
  35. package/lib/types/models/constants/build-in-theme/univer-gradient3.d.ts +2 -0
  36. package/lib/types/models/constants/build-in-theme/univer-gradient4.d.ts +2 -0
  37. package/lib/types/models/constants/build-in-theme/univer-gradient5.d.ts +2 -0
  38. package/lib/types/models/constants/build-in-theme/univer-gradient6.d.ts +2 -0
  39. package/lib/types/models/constants/build-in-theme/univer1.d.ts +2 -0
  40. package/lib/types/models/constants/build-in-theme/univer2.d.ts +2 -0
  41. package/lib/types/models/constants/build-in-theme/univer3.d.ts +2 -0
  42. package/lib/types/models/constants/build-in-theme/univer4.d.ts +2 -0
  43. package/lib/types/models/constants/build-in-theme/univer5.d.ts +2 -0
  44. package/lib/types/models/constants/build-in-theme/univer6.d.ts +2 -0
  45. package/lib/types/models/constants/default-chart-style.d.ts +63 -0
  46. package/lib/types/models/constants.d.ts +59 -0
  47. package/lib/types/models/data-context-transformers/bar-data-context-transformer.d.ts +3 -0
  48. package/lib/types/models/data-context-transformers/pie-data-context-transformer.d.ts +3 -0
  49. package/lib/types/models/runtime-context.types.d.ts +28 -0
  50. package/lib/types/models/style.types.d.ts +213 -0
  51. package/lib/types/models/types.d.ts +124 -0
  52. package/lib/types/plugins/univer-sheets-chart-plugin.d.ts +15 -0
  53. package/lib/types/services/chart-model.service.d.ts +23 -0
  54. package/lib/types/services/chart-theme.service.d.ts +17 -0
  55. package/lib/types/services/sheets-chart.service.d.ts +45 -0
  56. package/lib/umd/index.js +1 -1
  57. package/lib/umd/locale/en-US.js +1 -1
  58. package/lib/umd/locale/ru-RU.js +1 -1
  59. package/lib/umd/locale/vi-VN.js +1 -1
  60. package/lib/umd/locale/zh-CN.js +1 -1
  61. package/lib/umd/locale/zh-TW.js +1 -1
  62. package/package.json +10 -15
@@ -1 +1 @@
1
- const _0x625830=_0x3b15;(function(_0x546f5f,_0x2c4fde){const _0x4ebab2=_0x3b15,_0x356981=_0x546f5f();while(!![]){try{const _0x3617c0=-parseInt(_0x4ebab2(0x177))/0x1*(-parseInt(_0x4ebab2(0x176))/0x2)+-parseInt(_0x4ebab2(0x173))/0x3+parseInt(_0x4ebab2(0x171))/0x4+-parseInt(_0x4ebab2(0x172))/0x5*(-parseInt(_0x4ebab2(0x17a))/0x6)+parseInt(_0x4ebab2(0x175))/0x7+parseInt(_0x4ebab2(0x17c))/0x8+parseInt(_0x4ebab2(0x174))/0x9*(-parseInt(_0x4ebab2(0x178))/0xa);if(_0x3617c0===_0x2c4fde)break;else _0x356981['push'](_0x356981['shift']());}catch(_0x5249ae){_0x356981['push'](_0x356981['shift']());}}}(_0xe992,0x48645));const e={'chart':{'category':_0x625830(0x17b),'series':_0x625830(0x179)}};function _0x3b15(_0x3984a1,_0x14d64a){const _0xe992a5=_0xe992();return _0x3b15=function(_0x3b15dc,_0x5c36e9){_0x3b15dc=_0x3b15dc-0x171;let _0x18dbcf=_0xe992a5[_0x3b15dc];return _0x18dbcf;},_0x3b15(_0x3984a1,_0x14d64a);}function _0xe992(){const _0x24b719=['49442lYGjdB','1uYVqxd','8100BumYMf','Series','2502102SIVmkB','Category','1035752WySsRn','635092WIKHtC','5qfUMEu','403116ntHFbp','8136fuDeCe','3032043bxxdgS'];_0xe992=function(){return _0x24b719;};return _0xe992();}export{e as default};
1
+ function _0x2697(_0x18d01a,_0x8ea265){const _0x4306d9=_0x4306();return _0x2697=function(_0x2697c4,_0x1b0215){_0x2697c4=_0x2697c4-0x1e7;let _0x40c928=_0x4306d9[_0x2697c4];return _0x40c928;},_0x2697(_0x18d01a,_0x8ea265);}const _0x5278ab=_0x2697;function _0x4306(){const _0x50bcfd=['1493898ECDxRk','712110NMmDZB','154SJxwBK','915592aXznnV','179250MnNFqF','Series','521898VlUlkY','792032clUrua','337712ugfNbN','Category'];_0x4306=function(){return _0x50bcfd;};return _0x4306();}(function(_0x23f91a,_0xfc389e){const _0xdb246f=_0x2697,_0x2d9eaf=_0x23f91a();while(!![]){try{const _0x451b35=-parseInt(_0xdb246f(0x1ee))/0x1+-parseInt(_0xdb246f(0x1ef))/0x2+parseInt(_0xdb246f(0x1e9))/0x3+-parseInt(_0xdb246f(0x1eb))/0x4+parseInt(_0xdb246f(0x1ec))/0x5+parseInt(_0xdb246f(0x1e8))/0x6+-parseInt(_0xdb246f(0x1ea))/0x7*(-parseInt(_0xdb246f(0x1f0))/0x8);if(_0x451b35===_0xfc389e)break;else _0x2d9eaf['push'](_0x2d9eaf['shift']());}catch(_0x461fe8){_0x2d9eaf['push'](_0x2d9eaf['shift']());}}}(_0x4306,0x4a3e3));const e={'chart':{'category':_0x5278ab(0x1e7),'series':_0x5278ab(0x1ed)}};export{e as default};
@@ -1 +1 @@
1
- function _0x5ced(_0x103c9f,_0x290996){const _0x4a4fac=_0x4a4f();return _0x5ced=function(_0x5ced0d,_0x193897){_0x5ced0d=_0x5ced0d-0xca;let _0x1f20b0=_0x4a4fac[_0x5ced0d];return _0x1f20b0;},_0x5ced(_0x103c9f,_0x290996);}const _0x4b6ffd=_0x5ced;(function(_0x51291b,_0x4e7fd4){const _0x114b65=_0x5ced,_0x14bb8d=_0x51291b();while(!![]){try{const _0x1131fd=parseInt(_0x114b65(0xd3))/0x1+parseInt(_0x114b65(0xd4))/0x2*(parseInt(_0x114b65(0xcf))/0x3)+-parseInt(_0x114b65(0xd1))/0x4+-parseInt(_0x114b65(0xd2))/0x5*(parseInt(_0x114b65(0xd5))/0x6)+-parseInt(_0x114b65(0xce))/0x7+parseInt(_0x114b65(0xcc))/0x8*(-parseInt(_0x114b65(0xcb))/0x9)+parseInt(_0x114b65(0xcd))/0xa;if(_0x1131fd===_0x4e7fd4)break;else _0x14bb8d['push'](_0x14bb8d['shift']());}catch(_0x15c7db){_0x14bb8d['push'](_0x14bb8d['shift']());}}}(_0x4a4f,0xca110));const e={'chart':{'category':_0x4b6ffd(0xca),'series':_0x4b6ffd(0xd0)}};export{e as default};function _0x4a4f(){const _0x43510a=['24xJOGws','Category','117bRyalx','912904qNnIhd','13276210jiNNBy','3027584vYGsDo','57meypbD','Series','309884ginkhR','125990SKrZyv','747533APreNf','89132UNjrMS'];_0x4a4f=function(){return _0x43510a;};return _0x4a4f();}
1
+ const _0x1d7f9e=_0x4bc6;function _0x52ef(){const _0x34b3bd=['253630aaqMhI','4869472OnIDQU','Series','8455518Nllwas','1393732AGhlmt','Category','13646sCDAIw','15zqNorm','168FwapHU','22380300iApPzo','6762987aXriwk'];_0x52ef=function(){return _0x34b3bd;};return _0x52ef();}function _0x4bc6(_0x111f1a,_0xdff887){const _0x52ef48=_0x52ef();return _0x4bc6=function(_0x4bc624,_0x78fc7a){_0x4bc624=_0x4bc624-0x1c7;let _0x4b6d6f=_0x52ef48[_0x4bc624];return _0x4b6d6f;},_0x4bc6(_0x111f1a,_0xdff887);}(function(_0x3ae8f2,_0x38c269){const _0x1e5900=_0x4bc6,_0x4d82b3=_0x3ae8f2();while(!![]){try{const _0x27dae5=-parseInt(_0x1e5900(0x1c7))/0x1+parseInt(_0x1e5900(0x1cd))/0x2*(-parseInt(_0x1e5900(0x1cf))/0x3)+parseInt(_0x1e5900(0x1cb))/0x4*(parseInt(_0x1e5900(0x1ce))/0x5)+parseInt(_0x1e5900(0x1ca))/0x6+parseInt(_0x1e5900(0x1d1))/0x7+parseInt(_0x1e5900(0x1c8))/0x8+-parseInt(_0x1e5900(0x1d0))/0x9;if(_0x27dae5===_0x38c269)break;else _0x4d82b3['push'](_0x4d82b3['shift']());}catch(_0x126745){_0x4d82b3['push'](_0x4d82b3['shift']());}}}(_0x52ef,0xdd6cf));const e={'chart':{'category':_0x1d7f9e(0x1cc),'series':_0x1d7f9e(0x1c9)}};export{e as default};
@@ -1 +1 @@
1
- (function(_0x2974f3,_0x5a00e6){const _0x2f8ce7=_0x4fd0,_0x5abe41=_0x2974f3();while(!![]){try{const _0x1fa4f2=parseInt(_0x2f8ce7(0x10c))/0x1+-parseInt(_0x2f8ce7(0x10d))/0x2*(parseInt(_0x2f8ce7(0x10e))/0x3)+-parseInt(_0x2f8ce7(0x111))/0x4+parseInt(_0x2f8ce7(0x10f))/0x5*(-parseInt(_0x2f8ce7(0x10b))/0x6)+parseInt(_0x2f8ce7(0x10a))/0x7+-parseInt(_0x2f8ce7(0x112))/0x8+parseInt(_0x2f8ce7(0x110))/0x9;if(_0x1fa4f2===_0x5a00e6)break;else _0x5abe41['push'](_0x5abe41['shift']());}catch(_0x48e754){_0x5abe41['push'](_0x5abe41['shift']());}}}(_0xfa72,0x7c425));function _0x4fd0(_0x113751,_0x32dcdb){const _0x4fd0d3=_0xfa72();return _0x4fd0=function(_0x46b027,_0x16e646){_0x46b027=_0x46b027-0x10a;let _0x2b4bc9=_0x4fd0d3[_0x46b027];return _0x2b4bc9;},_0x4fd0(_0x113751,_0x32dcdb);}const e={'chart':{'category':'Category','series':'Series'}};function _0xfa72(){const _0x273b49=['8935xzlMzt','8452773DrSxNz','106588VSAMIu','3365552jULlPP','4022494TKtVgc','1398gHLzEL','859395fSbdMe','222346BmqYPs','27OpwqVS'];_0xfa72=function(){return _0x273b49;};return _0xfa72();}export{e as default};
1
+ const _0x29c8b1=_0x577a;(function(_0x5f6c43,_0x4f1fe5){const _0x2381e7=_0x577a,_0x1dd392=_0x5f6c43();while(!![]){try{const _0x487516=parseInt(_0x2381e7(0x195))/0x1+parseInt(_0x2381e7(0x19a))/0x2*(-parseInt(_0x2381e7(0x197))/0x3)+-parseInt(_0x2381e7(0x190))/0x4+parseInt(_0x2381e7(0x192))/0x5*(-parseInt(_0x2381e7(0x194))/0x6)+parseInt(_0x2381e7(0x196))/0x7*(-parseInt(_0x2381e7(0x18f))/0x8)+parseInt(_0x2381e7(0x199))/0x9+-parseInt(_0x2381e7(0x198))/0xa;if(_0x487516===_0x4f1fe5)break;else _0x1dd392['push'](_0x1dd392['shift']());}catch(_0x4c8fcc){_0x1dd392['push'](_0x1dd392['shift']());}}}(_0x4da2,0xc15ee));const e={'chart':{'category':_0x29c8b1(0x193),'series':_0x29c8b1(0x191)}};function _0x577a(_0xb158d9,_0x4217dd){const _0x4da273=_0x4da2();return _0x577a=function(_0x577a17,_0x14ab54){_0x577a17=_0x577a17-0x18f;let _0x107f37=_0x4da273[_0x577a17];return _0x107f37;},_0x577a(_0xb158d9,_0x4217dd);}function _0x4da2(){const _0x177063=['Series','20cQPVAX','Category','806046EmJZNG','1243151TGPtlm','235557GcOjhO','606YUMsTa','8141750jxGsPL','13981122fnkoKV','4492OJgZId','32dcazcN','258912XpwXgP'];_0x4da2=function(){return _0x177063;};return _0x4da2();}export{e as default};
@@ -1 +1 @@
1
- function _0x26ed(){const _0x1ec1a9=['2412468dFdasK','40264YXHJnv','426273LVWdsr','5185NWUQyh','42956208pAAMBn','427PSAhAD','4074behsmS','5372056jnNDGg','867887bFLykg'];_0x26ed=function(){return _0x1ec1a9;};return _0x26ed();}(function(_0x1a4f64,_0x5e7eca){const _0x4b4c13=_0x2a0c,_0xf04aec=_0x1a4f64();while(!![]){try{const _0x4b2a4d=-parseInt(_0x4b4c13(0x185))/0x1+-parseInt(_0x4b4c13(0x186))/0x2+-parseInt(_0x4b4c13(0x188))/0x3+-parseInt(_0x4b4c13(0x18d))/0x4+parseInt(_0x4b4c13(0x189))/0x5*(-parseInt(_0x4b4c13(0x18c))/0x6)+-parseInt(_0x4b4c13(0x18b))/0x7*(-parseInt(_0x4b4c13(0x187))/0x8)+parseInt(_0x4b4c13(0x18a))/0x9;if(_0x4b2a4d===_0x5e7eca)break;else _0xf04aec['push'](_0xf04aec['shift']());}catch(_0x42d6ab){_0xf04aec['push'](_0xf04aec['shift']());}}}(_0x26ed,0xc75c0));const e={'chart':{'category':'类别','series':'系列'}};function _0x2a0c(_0xfdf9d3,_0x354058){const _0x26edb7=_0x26ed();return _0x2a0c=function(_0x2a0cad,_0x59a520){_0x2a0cad=_0x2a0cad-0x185;let _0x3a0958=_0x26edb7[_0x2a0cad];return _0x3a0958;},_0x2a0c(_0xfdf9d3,_0x354058);}export{e as default};
1
+ function _0x55ea(){const _0x9271ca=['2066Tgundh','30310wYcbRU','140787dUXCcK','844704FZpdGw','7qtPtvg','117tzEXSz','880008SpeiUs','723808icOSNx','72ZvnmcJ','186060uPqZZn'];_0x55ea=function(){return _0x9271ca;};return _0x55ea();}(function(_0x10a6c9,_0x11eaab){const _0xdae6c=_0x34e2,_0x45a817=_0x10a6c9();while(!![]){try{const _0x2012c1=parseInt(_0xdae6c(0x1d2))/0x1+parseInt(_0xdae6c(0x1d0))/0x2*(-parseInt(_0xdae6c(0x1d5))/0x3)+-parseInt(_0xdae6c(0x1cd))/0x4+-parseInt(_0xdae6c(0x1cf))/0x5+-parseInt(_0xdae6c(0x1cc))/0x6*(-parseInt(_0xdae6c(0x1d4))/0x7)+parseInt(_0xdae6c(0x1d3))/0x8+-parseInt(_0xdae6c(0x1ce))/0x9*(parseInt(_0xdae6c(0x1d1))/0xa);if(_0x2012c1===_0x11eaab)break;else _0x45a817['push'](_0x45a817['shift']());}catch(_0x474fe2){_0x45a817['push'](_0x45a817['shift']());}}}(_0x55ea,0x1af08));const e={'chart':{'category':'类别','series':'系列'}};function _0x34e2(_0x54e3b3,_0x289a33){const _0x55ea82=_0x55ea();return _0x34e2=function(_0x34e282,_0x264dd9){_0x34e282=_0x34e282-0x1cc;let _0xc1e26a=_0x55ea82[_0x34e282];return _0xc1e26a;},_0x34e2(_0x54e3b3,_0x289a33);}export{e as default};
@@ -1 +1 @@
1
- (function(_0x346be3,_0x45b5ed){const _0x8a69c9=_0x1f28,_0x5e165b=_0x346be3();while(!![]){try{const _0x34074c=-parseInt(_0x8a69c9(0x7e))/0x1*(-parseInt(_0x8a69c9(0x77))/0x2)+-parseInt(_0x8a69c9(0x7c))/0x3+parseInt(_0x8a69c9(0x76))/0x4*(parseInt(_0x8a69c9(0x74))/0x5)+parseInt(_0x8a69c9(0x7b))/0x6+parseInt(_0x8a69c9(0x7a))/0x7*(-parseInt(_0x8a69c9(0x75))/0x8)+parseInt(_0x8a69c9(0x7d))/0x9+-parseInt(_0x8a69c9(0x79))/0xa*(parseInt(_0x8a69c9(0x78))/0xb);if(_0x34074c===_0x45b5ed)break;else _0x5e165b['push'](_0x5e165b['shift']());}catch(_0x3296dc){_0x5e165b['push'](_0x5e165b['shift']());}}}(_0x5d26,0x244e9));function _0x5d26(){const _0x133e67=['38641WqFBbJ','55TLGadg','137656DEvXdW','11404OdEQgJ','2GsYjUY','55swtAXB','123220AccVSE','70YXRrVX','1133538rnNIBk','412776DhlCTa','2349540CJlZDi'];_0x5d26=function(){return _0x133e67;};return _0x5d26();}function _0x1f28(_0x1bcd07,_0x4490f9){const _0x5d2661=_0x5d26();return _0x1f28=function(_0x1f2830,_0x1d7255){_0x1f2830=_0x1f2830-0x74;let _0x5ee0d7=_0x5d2661[_0x1f2830];return _0x5ee0d7;},_0x1f28(_0x1bcd07,_0x4490f9);}const e={'chart':{'category':'类别','series':'系列'}};export{e as default};
1
+ (function(_0x2e9386,_0x5eabd3){const _0x50fad3=_0x336f,_0x1b39c5=_0x2e9386();while(!![]){try{const _0x3b2ba6=parseInt(_0x50fad3(0xb6))/0x1+parseInt(_0x50fad3(0xb4))/0x2*(-parseInt(_0x50fad3(0xb5))/0x3)+-parseInt(_0x50fad3(0xb8))/0x4+parseInt(_0x50fad3(0xba))/0x5+parseInt(_0x50fad3(0xb7))/0x6+parseInt(_0x50fad3(0xbd))/0x7*(-parseInt(_0x50fad3(0xb9))/0x8)+-parseInt(_0x50fad3(0xbc))/0x9*(-parseInt(_0x50fad3(0xbb))/0xa);if(_0x3b2ba6===_0x5eabd3)break;else _0x1b39c5['push'](_0x1b39c5['shift']());}catch(_0x1b4a63){_0x1b39c5['push'](_0x1b39c5['shift']());}}}(_0x5c6b,0xc9438));function _0x336f(_0x307fdc,_0x34a5ee){const _0x5c6bd4=_0x5c6b();return _0x336f=function(_0x336fd7,_0x39e038){_0x336fd7=_0x336fd7-0xb4;let _0x871a9e=_0x5c6bd4[_0x336fd7];return _0x871a9e;},_0x336f(_0x307fdc,_0x34a5ee);}function _0x5c6b(){const _0x52cf07=['801460LldqIu','45vfZUKd','341628enIfFb','9026swwnDl','441kycHMB','991847fxOKZo','3807954qSIiSU','999872erqixO','72oVhjYJ','748775iRLkJv'];_0x5c6b=function(){return _0x52cf07;};return _0x5c6b();}const e={'chart':{'category':'类别','series':'系列'}};export{e as default};
@@ -0,0 +1,59 @@
1
+ import { IUniverInstanceService } from '@univerjs/core';
2
+ import { Observable } from 'rxjs';
3
+ import { DimensionDefinitionLoose, IChartDataSource, IChartSourceMultiRangeItem, ISheetChartSourceSingleRange, IUniverDataSet, OptionDataValue } from '../models/types';
4
+ /**
5
+ * @extends ChartDataSourceBase
6
+ * @description
7
+ * Represents a single data source for a chart.
8
+ */
9
+ export declare class ChartDataSourceSingle implements IChartDataSource {
10
+ private readonly _univerInstanceService;
11
+ private _rangeInfo$;
12
+ private _data$;
13
+ private _canSwitchOrient$;
14
+ data$: Observable<IUniverDataSet>;
15
+ canSwitchOrient$: Observable<boolean>;
16
+ rangeInfo$: Observable<ISheetChartSourceSingleRange>;
17
+ constructor(_univerInstanceService: IUniverInstanceService, rangeInfo: ISheetChartSourceSingleRange);
18
+ private _init;
19
+ getRangeInfo(): ISheetChartSourceSingleRange;
20
+ getDataSet(): IUniverDataSet;
21
+ getDimensionCount(): number;
22
+ setRangeInfo(rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[]): void;
23
+ setOrient(flag: boolean): void;
24
+ canSwitchOrient(): boolean;
25
+ refresh(): void;
26
+ updateRangeInfo(): void;
27
+ watchRange(): void;
28
+ convertDataSet(): {
29
+ dimensions: DimensionDefinitionLoose[];
30
+ source: OptionDataValue[][];
31
+ };
32
+ dispose(): void;
33
+ }
34
+ export declare class ChartDataSourceMulti implements IChartDataSource {
35
+ private readonly _univerInstanceService;
36
+ private _rangeInfo$;
37
+ private _data$;
38
+ private _canSwitchOrient$;
39
+ data$: Observable<IUniverDataSet>;
40
+ canSwitchOrient$: Observable<boolean>;
41
+ rangeInfo$: Observable<IChartSourceMultiRangeItem[]>;
42
+ constructor(_univerInstanceService: IUniverInstanceService, rangeInfo: IChartSourceMultiRangeItem[]);
43
+ canSwitchOrient(): boolean;
44
+ getRangeInfo(): IChartSourceMultiRangeItem[];
45
+ getDataSet(): IUniverDataSet;
46
+ getDimensionCount(): number;
47
+ refresh(): void;
48
+ setOrient(flag: boolean): void;
49
+ setRangeInfo(rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[]): void;
50
+ updateRangeInfo(): void;
51
+ watchRange(): void;
52
+ convertDataSet(): {
53
+ dimensions: string[];
54
+ source: (string | number | null)[][];
55
+ };
56
+ dispose(): void;
57
+ }
58
+ export declare function createChartDataSource(univerInstanceService: IUniverInstanceService, rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[]): IChartDataSource;
59
+ export declare function getCategoryData(source: OptionDataValue[][], categoryIndex: number, isRowDirection: boolean): OptionDataValue[];
@@ -0,0 +1,30 @@
1
+ import { ICellData, IDocumentData, IRange, Nullable, ObjectMatrix, Styles, Worksheet } from '@univerjs/core';
2
+ import { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange } from '../models/types';
3
+ export declare const getStringFromDataStream: (data: IDocumentData) => string;
4
+ /**
5
+ * Get the cell data value as number for source
6
+ * @param cellData The cell data
7
+ * @returns {number|null} The number value
8
+ */
9
+ export declare function convertCellDataToNumber(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: Record<string, any>): null | number;
10
+ export declare function convertArrayLikeRangeInfoToMatrix(sourceRange: IRange, sheet: Worksheet, index: number, matrix: ObjectMatrix<Nullable<string | number | null>>, styles: Styles): void;
11
+ /**
12
+ * transform cell data to dimension name
13
+ * @param cellData the sheet cell data
14
+ * @param styles workBook styles collection
15
+ * @param patternInfoRecord The cache record for pattern info
16
+ * @returns {string} The dimension name
17
+ */
18
+ export declare function convertCellDataToString(cellData: Nullable<ICellData>, styles: Styles, patternInfoRecord: Record<string, any>): string;
19
+ /**
20
+ * @description this function is used to change the single range info to multi range info, we will split the single range to two range, one is the dimension range, the other is the value range
21
+ * @param {ISheetChartSourceSingleRange} rangeInfo the single range info
22
+ * @returns {IChartSourceMultiRangeItem} rangeInfo the multi range info
23
+ */
24
+ export declare function changeSingleRangeInfoToMultiRangeInfo(rangeInfo: ISheetChartSourceSingleRange): IChartSourceMultiRangeItem[];
25
+ /**
26
+ * get the multi range info can switch orient or not
27
+ * @param {IChartSourceMultiRangeItem} rangeInfo the multi range info
28
+ * @returns {boolean} return the multi range info can switch orient or not
29
+ */
30
+ export declare function isMultiRangeCanSwitchOrient(rangeInfo: IChartSourceMultiRangeItem[]): boolean;
@@ -0,0 +1,14 @@
1
+ import { ICommand } from '@univerjs/core';
2
+ import { ChartTypeBits, DataOrientation } from '../../models/constants';
3
+ import { ChartStyle } from '../../models/style.types';
4
+ import { IChartContext, IChartDataAggregation } from '../../models/types';
5
+ export interface IChartUpdateConfigCommandParams {
6
+ unitId: string;
7
+ chartModelId: string;
8
+ orient?: DataOrientation;
9
+ chartType?: ChartTypeBits;
10
+ dataAggregation?: Partial<IChartDataAggregation>;
11
+ style?: ChartStyle;
12
+ context?: IChartContext;
13
+ }
14
+ export declare const ChartUpdateConfigCommand: ICommand<IChartUpdateConfigCommandParams>;
@@ -0,0 +1,8 @@
1
+ import { ICommand } from '@univerjs/core';
2
+ import { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange } from '../../models/types';
3
+ export interface IChartUpdateSourceCommandParams {
4
+ unitId: string;
5
+ chartModelId: string;
6
+ range: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[];
7
+ }
8
+ export declare const ChartUpdateSourceCommand: ICommand<IChartUpdateSourceCommandParams>;
@@ -0,0 +1,8 @@
1
+ import { IMutation } from '@univerjs/core';
2
+ import { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange } from '../../models/types';
3
+ export interface IChartUpdateSourceConfigMutationParams {
4
+ unitId: string;
5
+ chartModelId: string;
6
+ rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[];
7
+ }
8
+ export declare const ChartUpdateSourceConfigMutation: IMutation<IChartUpdateSourceConfigMutationParams>;
@@ -0,0 +1,13 @@
1
+ import { IMutation } from '@univerjs/core';
2
+ import { ChartTypeBits } from '../../models/constants';
3
+ import { ChartStyle } from '../../models/style.types';
4
+ import { IChartContext, IChartDataAggregation } from '../../models/types';
5
+ export interface IChartUpdateConfigMutationParams {
6
+ unitId: string;
7
+ chartModelId: string;
8
+ chartType?: ChartTypeBits;
9
+ dataAggregation?: Partial<IChartDataAggregation>;
10
+ style?: ChartStyle;
11
+ context?: IChartContext;
12
+ }
13
+ export declare const ChartUpdateConfigMutation: IMutation<IChartUpdateConfigMutationParams>;
@@ -0,0 +1,11 @@
1
+ import { IMutation, IRange } from '@univerjs/core';
2
+ import { ISheetCommandSharedParams } from '@univerjs/sheets';
3
+ export interface IInsertSheetsChartMutationParams extends ISheetCommandSharedParams {
4
+ range: IRange;
5
+ chartId: string;
6
+ }
7
+ export interface IRemoveSheetsChartMutationParams extends ISheetCommandSharedParams {
8
+ chartId: string;
9
+ }
10
+ export declare const InsertSheetsChartMutation: IMutation<IInsertSheetsChartMutationParams>;
11
+ export declare const RemoveSheetsChartMutation: IMutation<IRemoveSheetsChartMutationParams>;
@@ -0,0 +1,15 @@
1
+ export declare const setProperty: (data: Record<string, any>, propertyPath: string, value: any) => void;
2
+ /**
3
+ * Set graphic element to data.
4
+ * because we use graphic element to draw watermark title, so we need to set it to data.
5
+ */
6
+ export declare const setGraphicToSpec: (spec: Record<string, any>, graphicElements: unknown[]) => void;
7
+ export declare const translateAngleToRadian: (angle: number) => number;
8
+ interface ISize {
9
+ width: number;
10
+ height: number;
11
+ }
12
+ export declare const ChartTextMeasureCache: Map<string, ISize>;
13
+ export declare const calcPosition: (text: string, font: string) => ISize;
14
+ export declare const clearChartTextMeasureCache: () => void;
15
+ export {};