@univerjs-pro/docs-shape-ui 1.0.0-beta.0 → 1.0.0-beta.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.
Files changed (94) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/commands/operations/shape-ribbon.operation.d.ts +13 -0
  62. package/lib/types/const.d.ts +7 -0
  63. package/lib/types/controllers/doc-shape-printing.controller.d.ts +12 -0
  64. package/lib/types/controllers/shape-contextual-ribbon.controller.d.ts +18 -0
  65. package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +5 -4
  66. package/lib/types/controllers/ui.controller.d.ts +0 -3
  67. package/lib/types/locale/en-US.d.ts +1 -0
  68. package/lib/types/menu/schema.d.ts +1 -0
  69. package/lib/types/menu/shape-format-ribbon.menu.d.ts +25 -0
  70. package/lib/types/plugin.d.ts +1 -0
  71. package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +3 -4
  72. package/lib/types/views/shape-format-ribbon/DocsShapeFormatRibbonControls.d.ts +18 -0
  73. package/lib/types/views/shape-format-ribbon/DocsShapeWrappingStyleIcons.d.ts +8 -0
  74. package/lib/umd/index.js +1 -1
  75. package/lib/umd/locale/ar-SA.js +1 -1
  76. package/lib/umd/locale/ca-ES.js +1 -1
  77. package/lib/umd/locale/de-DE.js +1 -1
  78. package/lib/umd/locale/en-US.js +1 -1
  79. package/lib/umd/locale/es-ES.js +1 -1
  80. package/lib/umd/locale/fa-IR.js +1 -1
  81. package/lib/umd/locale/fr-FR.js +1 -1
  82. package/lib/umd/locale/id-ID.js +1 -1
  83. package/lib/umd/locale/it-IT.js +1 -1
  84. package/lib/umd/locale/ja-JP.js +1 -1
  85. package/lib/umd/locale/ko-KR.js +1 -1
  86. package/lib/umd/locale/pl-PL.js +1 -1
  87. package/lib/umd/locale/pt-BR.js +1 -1
  88. package/lib/umd/locale/ru-RU.js +1 -1
  89. package/lib/umd/locale/sk-SK.js +1 -1
  90. package/lib/umd/locale/vi-VN.js +1 -1
  91. package/lib/umd/locale/zh-CN.js +1 -1
  92. package/lib/umd/locale/zh-HK.js +1 -1
  93. package/lib/umd/locale/zh-TW.js +1 -1
  94. package/package.json +18 -18
@@ -1 +1 @@
1
- const _0x3dc514=_0x5738;(function(_0x349f3b,_0xa86da1){const _0x40930a=_0x5738,_0x19d19b=_0x349f3b();while(!![]){try{const _0x419368=-parseInt(_0x40930a(0x177))/0x1+-parseInt(_0x40930a(0x193))/0x2*(-parseInt(_0x40930a(0x187))/0x3)+parseInt(_0x40930a(0x17e))/0x4+-parseInt(_0x40930a(0x17b))/0x5*(parseInt(_0x40930a(0x189))/0x6)+-parseInt(_0x40930a(0x174))/0x7*(-parseInt(_0x40930a(0x179))/0x8)+-parseInt(_0x40930a(0x17f))/0x9*(parseInt(_0x40930a(0x171))/0xa)+parseInt(_0x40930a(0x173))/0xb*(parseInt(_0x40930a(0x170))/0xc);if(_0x419368===_0xa86da1)break;else _0x19d19b['push'](_0x19d19b['shift']());}catch(_0x144795){_0x19d19b['push'](_0x19d19b['shift']());}}}(_0x32f6,0x75c70));const e={'docs-shape-ui':{'title':'形狀','insertShape':_0x3dc514(0x186),'openPanel':_0x3dc514(0x178),'deleteShape':_0x3dc514(0x18f),'hidePanel':'隱藏形狀面板','formatShape':'格式化形狀','shapeStyle':_0x3dc514(0x16e),'shapePosition':_0x3dc514(0x184),'toggleFlipH':'切換水平翻轉','toggleFlipV':_0x3dc514(0x18e),'rotateRight90':'順時針\x2090\x20度旋轉','rotateLeft90':_0x3dc514(0x172),'toggleTextVertical':_0x3dc514(0x176),'objectListPanel':{'title':'圖層','open':_0x3dc514(0x18c),'empty':_0x3dc514(0x183),'showAll':_0x3dc514(0x17a),'hideAll':_0x3dc514(0x175),'show':'顯示','hide':'隱藏','moveForward':_0x3dc514(0x191),'moveBackward':_0x3dc514(0x188),'close':'關閉','name':'名稱','nameInput':_0x3dc514(0x182),'description':'描述','descriptionPlaceholder':_0x3dc514(0x190),'details':'詳情','noSelection':_0x3dc514(0x16c)},'toolbar':{'alignLeft':_0x3dc514(0x17d),'alignCenter':_0x3dc514(0x16d),'alignRight':'右對齊','alignJustify':'兩端對齊','bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0x3dc514(0x18b),'textColor':'文字顏色','fillColor':'文字背景色','resetColor':_0x3dc514(0x192)},'align':{'top':_0x3dc514(0x185),'middle':_0x3dc514(0x180),'bottom':'底部對齊'},'textWrap':{'inline':_0x3dc514(0x17c),'square':'矩形','topAndBottom':_0x3dc514(0x16f),'behindText':_0x3dc514(0x181),'inFrontText':_0x3dc514(0x18a)},'crop':{'shape':_0x3dc514(0x18d)}}};function _0x5738(_0x3f74dc,_0x1c764f){_0x3f74dc=_0x3f74dc-0x16c;const _0x32f640=_0x32f6();let _0x5738d0=_0x32f640[_0x3f74dc];return _0x5738d0;}function _0x32f6(){const _0x37f5f6=['下移一層','6UEDGkZ','文字在後','刪除線','開啟圖層面板','裁切為形狀','切換垂直翻轉','刪除形狀','新增描述','上移一層','重置顏色','2ZGEpvl','選擇物件以編輯詳情','居中對齊','圖形樣式','上及下','12EHMrkp','2167570hxnqLf','逆時針\x2090\x20度旋轉','16673943nZGVWs','47887TvAuIM','全部隱藏','切換文本豎排','936020NmhYzU','打開形狀面板','392tgDxIl','全部顯示','4270175vxuRob','與文字排列','左對齊','844740ORrnFn','18sePDLr','垂直居中','文字在前','物件名稱','暫無物件','圖形位置','頂部對齊','插入形狀','1931334FNHFTq'];_0x32f6=function(){return _0x37f5f6;};return _0x32f6();}export{e as default};
1
+ function _0x12db(){const _0xc642f5=['下移一層','34962PjybuK','打開形狀面板','底部對齊','選擇物件以編輯詳情','10371193HfKPUA','切換文本豎排','1290472iFSSMx','全部顯示','居中對齊','631553cgUswn','重置顏色','上移一層','右對齊','順時針\x2090\x20度旋轉','兩端對齊','6754705hJPfZj','開啟圖層面板','63jOQxvv','與文字排列','957819bEAAFA','快速樣式','左對齊','裁切為形狀','頂部對齊','切換水平翻轉','文字在前','刪除線','文字在後','刪除形狀','全部隱藏','物件名稱','上及下','4AOlgmB','文字顏色','圖形位置','3287874UBghSx','逆時針\x2090\x20度旋轉'];_0x12db=function(){return _0xc642f5;};return _0x12db();}const _0xf6ad11=_0x2d05;(function(_0x7740e0,_0x26b827){const _0x59dfc5=_0x2d05,_0x291583=_0x7740e0();while(!![]){try{const _0x38a4de=parseInt(_0x59dfc5(0x1d2))/0x1+parseInt(_0x59dfc5(0x1c9))/0x2+-parseInt(_0x59dfc5(0x1b6))/0x3+-parseInt(_0x59dfc5(0x1c3))/0x4*(-parseInt(_0x59dfc5(0x1d8))/0x5)+-parseInt(_0x59dfc5(0x1c6))/0x6+-parseInt(_0x59dfc5(0x1cd))/0x7+-parseInt(_0x59dfc5(0x1cf))/0x8*(-parseInt(_0x59dfc5(0x1da))/0x9);if(_0x38a4de===_0x26b827)break;else _0x291583['push'](_0x291583['shift']());}catch(_0x401fe1){_0x291583['push'](_0x291583['shift']());}}}(_0x12db,0xbe7ff));function _0x2d05(_0x2ea057,_0x26fee3){_0x2ea057=_0x2ea057-0x1b6;const _0x12db5e=_0x12db();let _0x2d0515=_0x12db5e[_0x2ea057];return _0x2d0515;}const e={'docs-shape-ui':{'quickStyles':_0xf6ad11(0x1b7),'title':'形狀','insertShape':'插入形狀','openPanel':_0xf6ad11(0x1ca),'deleteShape':_0xf6ad11(0x1bf),'hidePanel':'隱藏形狀面板','formatShape':'格式化形狀','shapeStyle':'圖形樣式','shapePosition':_0xf6ad11(0x1c5),'toggleFlipH':_0xf6ad11(0x1bb),'toggleFlipV':'切換垂直翻轉','rotateRight90':_0xf6ad11(0x1d6),'rotateLeft90':_0xf6ad11(0x1c7),'toggleTextVertical':_0xf6ad11(0x1ce),'objectListPanel':{'title':'圖層','open':_0xf6ad11(0x1d9),'empty':'暫無物件','showAll':_0xf6ad11(0x1d0),'hideAll':_0xf6ad11(0x1c0),'show':'顯示','hide':'隱藏','moveForward':_0xf6ad11(0x1d4),'moveBackward':_0xf6ad11(0x1c8),'close':'關閉','name':'名稱','nameInput':_0xf6ad11(0x1c1),'description':'描述','descriptionPlaceholder':'新增描述','details':'詳情','noSelection':_0xf6ad11(0x1cc)},'toolbar':{'alignLeft':_0xf6ad11(0x1b8),'alignCenter':_0xf6ad11(0x1d1),'alignRight':_0xf6ad11(0x1d5),'alignJustify':_0xf6ad11(0x1d7),'bold':'粗體','italic':'斜體','underline':'底線','strikethrough':_0xf6ad11(0x1bd),'textColor':_0xf6ad11(0x1c4),'fillColor':'文字背景色','resetColor':_0xf6ad11(0x1d3)},'align':{'top':_0xf6ad11(0x1ba),'middle':'垂直居中','bottom':_0xf6ad11(0x1cb)},'textWrap':{'inline':_0xf6ad11(0x1db),'square':'矩形','topAndBottom':_0xf6ad11(0x1c2),'behindText':_0xf6ad11(0x1bc),'inFrontText':_0xf6ad11(0x1be)},'crop':{'shape':_0xf6ad11(0x1b9)}}};export{e as default};
@@ -1 +1 @@
1
- const _0x39278a=_0x3128;function _0x2d71(){const _0x13525d=['1086moKcir','文字顏色','下移一層','插入形狀','開啟圖層面板','515040HFNfQG','7766620IHlAqa','圖形位置','順時針\x2090\x20度旋轉','與文字排列','379Igwqug','全部隱藏','底部對齊','1710432ayLbyI','重置顏色','暫無物件','選取物件以編輯詳細資料','垂直居中','12GVgkvX','圖形樣式','全部顯示','1974bjaaJy','上及下','右對齊','刪除形狀','逆時針\x2090\x20度旋轉','兩端對齊','文字在後','切換垂直翻轉','居中對齊','詳細資料','914nnbtKe','新增描述','切換文本竖排','切換水平翻轉','97947aYfJLQ','430935ZnbLfj','上移一層'];_0x2d71=function(){return _0x13525d;};return _0x2d71();}(function(_0x48e59d,_0xcee571){const _0x1c7839=_0x3128,_0x161f13=_0x48e59d();while(!![]){try{const _0x458306=-parseInt(_0x1c7839(0xed))/0x1*(parseInt(_0x1c7839(0xdc))/0x2)+parseInt(_0x1c7839(0xe0))/0x3+-parseInt(_0x1c7839(0xcf))/0x4*(parseInt(_0x1c7839(0xe1))/0x5)+parseInt(_0x1c7839(0xe3))/0x6*(parseInt(_0x1c7839(0xd2))/0x7)+-parseInt(_0x1c7839(0xe8))/0x8+-parseInt(_0x1c7839(0xca))/0x9+parseInt(_0x1c7839(0xe9))/0xa;if(_0x458306===_0xcee571)break;else _0x161f13['push'](_0x161f13['shift']());}catch(_0x41fa24){_0x161f13['push'](_0x161f13['shift']());}}}(_0x2d71,0x2a851));const e={'docs-shape-ui':{'title':'形狀','insertShape':_0x39278a(0xe6),'openPanel':'打開形狀面板','deleteShape':_0x39278a(0xd5),'hidePanel':'隱藏形狀面板','formatShape':'格式化形狀','shapeStyle':_0x39278a(0xd0),'shapePosition':_0x39278a(0xea),'toggleFlipH':_0x39278a(0xdf),'toggleFlipV':_0x39278a(0xd9),'rotateRight90':_0x39278a(0xeb),'rotateLeft90':_0x39278a(0xd6),'toggleTextVertical':_0x39278a(0xde),'objectListPanel':{'title':'圖層','open':_0x39278a(0xe7),'empty':_0x39278a(0xcc),'showAll':_0x39278a(0xd1),'hideAll':_0x39278a(0xee),'show':'顯示','hide':'隱藏','moveForward':_0x39278a(0xe2),'moveBackward':_0x39278a(0xe5),'close':'關閉','name':'名稱','nameInput':'物件名稱','description':'描述','descriptionPlaceholder':_0x39278a(0xdd),'details':_0x39278a(0xdb),'noSelection':_0x39278a(0xcd)},'toolbar':{'alignLeft':'左對齊','alignCenter':_0x39278a(0xda),'alignRight':_0x39278a(0xd4),'alignJustify':_0x39278a(0xd7),'bold':'粗體','italic':'斜體','underline':'底線','strikethrough':'刪除線','textColor':_0x39278a(0xe4),'fillColor':'文字背景色','resetColor':_0x39278a(0xcb)},'align':{'top':'頂部對齊','middle':_0x39278a(0xce),'bottom':_0x39278a(0xc9)},'textWrap':{'inline':_0x39278a(0xec),'square':'矩形','topAndBottom':_0x39278a(0xd3),'behindText':'文字在前','inFrontText':_0x39278a(0xd8)},'crop':{'shape':'裁切為形狀'}}};function _0x3128(_0x1a4ba0,_0x1afe67){_0x1a4ba0=_0x1a4ba0-0xc9;const _0x2d7132=_0x2d71();let _0x312854=_0x2d7132[_0x1a4ba0];return _0x312854;}export{e as default};
1
+ const _0x2ad1ff=_0x24cd;function _0x24cd(_0x3ccc6c,_0xea998b){_0x3ccc6c=_0x3ccc6c-0xd5;const _0x199577=_0x1995();let _0x24cd24=_0x199577[_0x3ccc6c];return _0x24cd24;}(function(_0x416c36,_0x20f2d2){const _0x596e0e=_0x24cd,_0xb79b9f=_0x416c36();while(!![]){try{const _0x123e59=parseInt(_0x596e0e(0xf2))/0x1*(parseInt(_0x596e0e(0xd6))/0x2)+parseInt(_0x596e0e(0xe8))/0x3*(-parseInt(_0x596e0e(0xef))/0x4)+-parseInt(_0x596e0e(0xe9))/0x5*(-parseInt(_0x596e0e(0xda))/0x6)+-parseInt(_0x596e0e(0xe3))/0x7+-parseInt(_0x596e0e(0xd7))/0x8+-parseInt(_0x596e0e(0xed))/0x9+parseInt(_0x596e0e(0xee))/0xa;if(_0x123e59===_0x20f2d2)break;else _0xb79b9f['push'](_0xb79b9f['shift']());}catch(_0x1dd1ed){_0xb79b9f['push'](_0xb79b9f['shift']());}}}(_0x1995,0x3f2a4));const e={'docs-shape-ui':{'quickStyles':_0x2ad1ff(0xf3),'title':'形狀','insertShape':_0x2ad1ff(0xfa),'openPanel':_0x2ad1ff(0xf6),'deleteShape':'刪除形狀','hidePanel':_0x2ad1ff(0xd9),'formatShape':_0x2ad1ff(0xfb),'shapeStyle':_0x2ad1ff(0xe1),'shapePosition':_0x2ad1ff(0xe5),'toggleFlipH':_0x2ad1ff(0xeb),'toggleFlipV':_0x2ad1ff(0xe4),'rotateRight90':_0x2ad1ff(0xdd),'rotateLeft90':_0x2ad1ff(0xe0),'toggleTextVertical':_0x2ad1ff(0xf0),'objectListPanel':{'title':'圖層','open':_0x2ad1ff(0xec),'empty':_0x2ad1ff(0xdc),'showAll':_0x2ad1ff(0xe7),'hideAll':_0x2ad1ff(0xe6),'show':'顯示','hide':'隱藏','moveForward':'上移一層','moveBackward':_0x2ad1ff(0xf7),'close':'關閉','name':'名稱','nameInput':_0x2ad1ff(0xde),'description':'描述','descriptionPlaceholder':_0x2ad1ff(0xfc),'details':_0x2ad1ff(0xdf),'noSelection':_0x2ad1ff(0xf4)},'toolbar':{'alignLeft':'左對齊','alignCenter':_0x2ad1ff(0xf9),'alignRight':'右對齊','alignJustify':'兩端對齊','bold':'粗體','italic':'斜體','underline':'底線','strikethrough':'刪除線','textColor':_0x2ad1ff(0xdb),'fillColor':_0x2ad1ff(0xf5),'resetColor':_0x2ad1ff(0xd5)},'align':{'top':'頂部對齊','middle':_0x2ad1ff(0xe2),'bottom':_0x2ad1ff(0xd8)},'textWrap':{'inline':_0x2ad1ff(0xf1),'square':'矩形','topAndBottom':_0x2ad1ff(0xfd),'behindText':_0x2ad1ff(0xf8),'inFrontText':_0x2ad1ff(0xea)},'crop':{'shape':'裁切為形狀'}}};export{e as default};function _0x1995(){const _0x5e1028=['全部顯示','15tXXaiL','22770sjAuln','文字在後','切換水平翻轉','開啟圖層面板','1637739KpoJVl','4316470svUAaq','185104IgQMmH','切換文本竖排','與文字排列','62iVyLKE','快捷樣式','選取物件以編輯詳細資料','文字背景色','打開形狀面板','下移一層','文字在前','居中對齊','插入形狀','格式化形狀','新增描述','上及下','重置顏色','12898OFXpeM','1025880Izblpr','底部對齊','隱藏形狀面板','90gdUZmv','文字顏色','暫無物件','順時針\x2090\x20度旋轉','物件名稱','詳細資料','逆時針\x2090\x20度旋轉','圖形樣式','垂直居中','696395dGhWsb','切換垂直翻轉','圖形位置','全部隱藏'];_0x1995=function(){return _0x5e1028;};return _0x1995();}
@@ -0,0 +1,13 @@
1
+ import type { ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { ICommand } from '@univerjs/core';
3
+ interface IApplyDocsShapeQuickStyleOperationParams {
4
+ value?: string;
5
+ presetId?: string;
6
+ }
7
+ interface IUpdateDocsShapeTypeOperationParams {
8
+ value?: ShapeTypeEnum;
9
+ shapeType?: ShapeTypeEnum;
10
+ }
11
+ export declare const ApplyDocsShapeQuickStyleOperation: ICommand<IApplyDocsShapeQuickStyleOperationParams>;
12
+ export declare const UpdateDocsShapeTypeOperation: ICommand<IUpdateDocsShapeTypeOperationParams>;
13
+ export {};
@@ -1,4 +1,11 @@
1
1
  export declare const DOCS_SHAPE_EDIT_PANEL_KEY = "doc.shape.edit.panel";
2
+ export declare const DOCS_SHAPE_FORMAT_RIBBON_TAB = "docs-shape-ui.ribbon.shape-format";
3
+ export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_QUICK_STYLES = "docs-shape-ui.ribbon.shape-format.quick-styles";
4
+ export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_STYLE = "docs-shape-ui.ribbon.shape-format.style";
5
+ export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_TEXT = "docs-shape-ui.ribbon.shape-format.text";
6
+ export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_ARRANGE = "docs-shape-ui.ribbon.shape-format.arrange";
7
+ export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_FORMULA = "docs-shape-ui.ribbon.shape-format.formula";
8
+ export declare const DOCS_SHAPE_FORMAT_RIBBON_GROUP_ADVANCED = "docs-shape-ui.ribbon.shape-format.advanced";
2
9
  export declare const DOCS_SHAPE_OBJECT_LIST_PANEL_KEY = "doc.shape.object-list.panel";
3
10
  export declare const DOCS_SHAPE_EDITOR_UNIT_ID_KEY: string;
4
11
  export declare const SHAPE_TEXT_FLOAT_MENU_COMPONENT_KEY = "doc.shape.text.float-menu";
@@ -0,0 +1,12 @@
1
+ import { Disposable } from '@univerjs/core';
2
+ import { DocPrintInterceptorService } from '@univerjs/docs-ui';
3
+ import { IDrawingManagerService } from '@univerjs/drawing';
4
+ import { DocDrawingShapeRenderController } from './doc-shape-render.controller';
5
+ /** Adds visible document shapes to each isolated print scene. */
6
+ export declare class DocShapePrintingController extends Disposable {
7
+ private readonly _docPrintInterceptorService;
8
+ private readonly _drawingManagerService;
9
+ private readonly _shapeRenderController;
10
+ constructor(_docPrintInterceptorService: DocPrintInterceptorService, _drawingManagerService: IDrawingManagerService, _shapeRenderController: DocDrawingShapeRenderController);
11
+ private _initPrinting;
12
+ }
@@ -0,0 +1,18 @@
1
+ import { ShapeFloatingToolbarService } from '@univerjs-pro/shape-editor-ui';
2
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
3
+ import { IDrawingManagerService } from '@univerjs/drawing';
4
+ import { IRenderManagerService } from '@univerjs/engine-render';
5
+ import { IMenuManagerService, IRibbonService } from '@univerjs/ui';
6
+ export declare class DocsShapeContextualRibbonController extends Disposable {
7
+ private readonly _menuManagerService;
8
+ private readonly _ribbonService;
9
+ private readonly _drawingManagerService;
10
+ private readonly _univerInstanceService;
11
+ private readonly _renderManagerService;
12
+ private readonly _shapeFloatingToolbarService;
13
+ private _visible;
14
+ constructor(_menuManagerService: IMenuManagerService, _ribbonService: IRibbonService, _drawingManagerService: IDrawingManagerService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _shapeFloatingToolbarService: ShapeFloatingToolbarService);
15
+ dispose(): void;
16
+ private _update;
17
+ private _hide;
18
+ }
@@ -1,8 +1,9 @@
1
1
  import type { DocumentDataModel } from '@univerjs/core';
2
2
  import type { IRenderContext } from '@univerjs/engine-render';
3
- import { ShapeTextFloatMenuRenderControllerBase } from '@univerjs-pro/shape-editor-ui';
4
- import { DocSelectionManagerService } from '@univerjs/docs';
5
- import { DocCanvasPopManagerService, DocSelectionRenderService } from '@univerjs/docs-ui';
3
+ import { ShapeTextFloatMenuRenderControllerBase, ShapeTextHyperLinkPopupService } from '@univerjs-pro/shape-editor-ui';
4
+ import { ICommandService } from '@univerjs/core';
5
+ import { DocInterceptorService, DocSelectionManagerService } from '@univerjs/docs';
6
+ import { DocCanvasPopManagerService, DocEventManagerService, DocRenderController, DocSelectionRenderService } from '@univerjs/docs-ui';
6
7
  export declare class ShapeTextFloatMenuRenderController extends ShapeTextFloatMenuRenderControllerBase {
7
- constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService, docSelectionRenderService: DocSelectionRenderService);
8
+ constructor(context: IRenderContext<DocumentDataModel>, docSelectionManagerService: DocSelectionManagerService, docCanvasPopManagerService: DocCanvasPopManagerService, docSelectionRenderService: DocSelectionRenderService, commandService: ICommandService, eventManagerService: DocEventManagerService, popupService: ShapeTextHyperLinkPopupService, interceptorService: DocInterceptorService, renderController: DocRenderController);
8
9
  }
@@ -21,11 +21,9 @@ export declare class DocsShapeUIController extends Disposable {
21
21
  private _activeShapeInfo;
22
22
  private _isOpenedShapeEditPanel;
23
23
  private _shapeEditPanelVersion;
24
- private _initializedShapePopupMenu;
25
24
  private _disposePopups;
26
25
  constructor(_univerInstanceService: IUniverInstanceService, _sidebarService: ISidebarService, _menuManagerService: IMenuManagerService, _docsShapeService: DocsShapeService, _localeService: LocaleService, _commandService: ICommandService, _drawingManagerService: IDrawingManagerService, _docCanvasPopManagerService: DocCanvasPopManagerService, _renderManagerService: IRenderManagerService, _contextService: IContextService, _shapeTextEditingService: ShapeTextEditingService);
27
26
  private _initMenu;
28
- private _initShapePopupMenu;
29
27
  getShapePopupMenus(unitId: string, subUnitId: string, drawingId: string, drawingType: DrawingTypeEnum): ({
30
28
  label: string;
31
29
  index: number;
@@ -54,7 +52,6 @@ export declare class DocsShapeUIController extends Disposable {
54
52
  disable: boolean;
55
53
  })[];
56
54
  private _getShapeInfo;
57
- private _createShapePopupMenu;
58
55
  private _clearPopups;
59
56
  private _popupMenuListener;
60
57
  private _registerOperations;
@@ -1,5 +1,6 @@
1
1
  declare const locale: {
2
2
  'docs-shape-ui': {
3
+ quickStyles: string;
3
4
  title: string;
4
5
  insertShape: string;
5
6
  openPanel: string;
@@ -1,2 +1,3 @@
1
1
  import type { MenuSchemaType } from '@univerjs/ui';
2
+ export declare const docsShapeContextualRibbonSchema: MenuSchemaType;
2
3
  export declare const menuSchema: MenuSchemaType;
@@ -0,0 +1,25 @@
1
+ import type { ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { IAccessor } from '@univerjs/core';
3
+ import type { IDocDrawing } from '@univerjs/docs-drawing';
4
+ import type { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
5
+ import { TextWrappingStyle } from '@univerjs/docs-drawing';
6
+ export declare const DOCS_SHAPE_STYLE_RIBBON_CONTROL_ID = "docs-shape-ui.ribbon.shape-format.style-control";
7
+ export declare const DOCS_SHAPE_TEXT_RIBBON_CONTROL_ID = "docs-shape-ui.ribbon.shape-format.text-control";
8
+ export declare const DOCS_FORMULA_SHAPE_RIBBON_CONTROL_ID = "docs-shape-ui.ribbon.shape-format.formula-control";
9
+ export declare const DOCS_SHAPE_ARRANGE_FORWARD_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-forward";
10
+ export declare const DOCS_SHAPE_ARRANGE_BACKWARD_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-backward";
11
+ export declare const DOCS_SHAPE_ARRANGE_FRONT_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-front";
12
+ export declare const DOCS_SHAPE_ARRANGE_BACK_MENU_ID = "docs-shape-ui.ribbon.shape-format.arrange-back";
13
+ export declare const DOCS_SHAPE_WRAPPING_STYLE_MENU_ID = "docs-shape-ui.ribbon.shape-format.wrapping-style";
14
+ export declare function resolveDocsShapeWrappingStyle(drawing: Pick<IDocDrawing, 'behindDoc' | 'layoutType'> | undefined): TextWrappingStyle;
15
+ export declare function DocsShapeQuickStyleGalleryFactory(accessor: IAccessor): IMenuSelectorItem<string>;
16
+ export declare function DocsChangeShapeMenuFactory(accessor: IAccessor): IMenuSelectorItem<string, ShapeTypeEnum | undefined, ShapeTypeEnum>;
17
+ export declare const DocsShapeStyleRibbonControlFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
18
+ export declare const DocsShapeTextRibbonControlFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
19
+ export declare const DocsFormulaShapeRibbonControlFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
20
+ export declare function DocsShapeWrappingStyleFactory(accessor: IAccessor): IMenuSelectorItem<string, TextWrappingStyle>;
21
+ export declare const DocsShapeArrangeForwardFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
22
+ export declare const DocsShapeArrangeBackwardFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
23
+ export declare const DocsShapeArrangeFrontFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
24
+ export declare const DocsShapeArrangeBackFactory: (accessor: IAccessor) => IMenuButtonItem<string>;
25
+ export declare function DocsShapeOpenPanelFactory(accessor: IAccessor): IMenuButtonItem<string>;
@@ -14,6 +14,7 @@ export declare class UniverDocsShapeUIPlugin extends Plugin {
14
14
  constructor(_config: Partial<IUniverDocsShapeUIConfig> | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService, _renderManagerService: IRenderManagerService);
15
15
  onStarting(): void;
16
16
  onReady(): void;
17
+ onRendered(): void;
17
18
  private _initCommands;
18
19
  private _initUIPart;
19
20
  }
@@ -1,4 +1,5 @@
1
1
  import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { IPopupWithExtraProps } from '@univerjs/ui';
2
3
  export declare const DOCS_SHAPE_FLOATING_TOOLBAR_KEY = "doc.shape.floating-toolbar";
3
4
  interface IShapeFloatingToolbarExtraProps {
4
5
  unitId: string;
@@ -8,9 +9,7 @@ interface IShapeFloatingToolbarExtraProps {
8
9
  shapeData: IShapeData;
9
10
  }
10
11
  interface IShapeFloatingToolbarProps {
11
- popup: {
12
- extraProps: IShapeFloatingToolbarExtraProps;
13
- };
12
+ popup: IPopupWithExtraProps<IShapeFloatingToolbarExtraProps>;
14
13
  }
15
- export declare function DocsShapeFloatingToolbar(props: IShapeFloatingToolbarProps): import("react").JSX.Element;
14
+ export declare function DocsShapeFloatingToolbar(props: IShapeFloatingToolbarProps): import("react").JSX.Element | null;
16
15
  export {};
@@ -0,0 +1,18 @@
1
+ import type { ICustomComponentProps } from '@univerjs/ui';
2
+ import type { LocaleKey } from '../../locale/types';
3
+ import { TextWrappingStyle } from '@univerjs/docs-drawing';
4
+ export declare const DOCS_SHAPE_QUICK_STYLE_GALLERY_COMPONENT = "docs-shape-ui.shape-format.quick-style-gallery";
5
+ export declare const DOCS_SHAPE_STYLE_RIBBON_COMPONENT = "docs-shape-ui.shape-format.style-ribbon-control";
6
+ export declare const DOCS_SHAPE_TEXT_RIBBON_COMPONENT = "docs-shape-ui.shape-format.text-ribbon-control";
7
+ export declare const DOCS_FORMULA_SHAPE_RIBBON_COMPONENT = "docs-shape-ui.shape-format.formula-ribbon-control";
8
+ export declare const DOCS_SHAPE_WRAPPING_STYLE_LABEL_COMPONENT = "docs-shape-ui.shape-format.wrapping-style-label";
9
+ export declare const DOCS_SHAPE_WRAPPING_STYLE_OPTIONS: ReadonlyArray<{
10
+ value: TextWrappingStyle;
11
+ label: LocaleKey;
12
+ icon: string;
13
+ }>;
14
+ export declare function DocsShapeStyleRibbonControl(): import("react").JSX.Element | null;
15
+ export declare function DocsShapeQuickStyleGallery(): import("react").JSX.Element | null;
16
+ export declare function DocsShapeTextRibbonControl(): import("react").JSX.Element | null;
17
+ export declare function DocsFormulaShapeRibbonControl(): import("react").JSX.Element | null;
18
+ export declare function DocsShapeWrappingStyleLabel({ value }: ICustomComponentProps<string | number | undefined>): import("react").JSX.Element | null;
@@ -0,0 +1,8 @@
1
+ import type { IIconProps } from '@univerjs/ui';
2
+ export declare const DOCS_SHAPE_WRAPPING_STYLE_ICONS: {
3
+ readonly DocsShapeWrapInlineIcon: (props: IIconProps) => import("react").JSX.Element;
4
+ readonly DocsShapeWrapSquareIcon: (props: IIconProps) => import("react").JSX.Element;
5
+ readonly DocsShapeWrapTopBottomIcon: (props: IIconProps) => import("react").JSX.Element;
6
+ readonly DocsShapeWrapBehindTextIcon: (props: IIconProps) => import("react").JSX.Element;
7
+ readonly DocsShapeWrapInFrontOfTextIcon: (props: IIconProps) => import("react").JSX.Element;
8
+ };