@univerjs-pro/boards-mind-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 (92) 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.css +12 -12
  42. package/lib/index.js +1 -1
  43. package/lib/locale/ar-SA.js +1 -1
  44. package/lib/locale/ca-ES.js +1 -1
  45. package/lib/locale/de-DE.js +1 -1
  46. package/lib/locale/en-US.js +1 -1
  47. package/lib/locale/es-ES.js +1 -1
  48. package/lib/locale/fa-IR.js +1 -1
  49. package/lib/locale/fr-FR.js +1 -1
  50. package/lib/locale/id-ID.js +1 -1
  51. package/lib/locale/it-IT.js +1 -1
  52. package/lib/locale/ja-JP.js +1 -1
  53. package/lib/locale/ko-KR.js +1 -1
  54. package/lib/locale/pl-PL.js +1 -1
  55. package/lib/locale/pt-BR.js +1 -1
  56. package/lib/locale/ru-RU.js +1 -1
  57. package/lib/locale/sk-SK.js +1 -1
  58. package/lib/locale/vi-VN.js +1 -1
  59. package/lib/locale/zh-CN.js +1 -1
  60. package/lib/locale/zh-HK.js +1 -1
  61. package/lib/locale/zh-TW.js +1 -1
  62. package/lib/types/controllers/board-mind-map-autosize-layout.render-controller.d.ts +1 -4
  63. package/lib/types/controllers/board-mind-map-drag-topology.render-controller.d.ts +2 -0
  64. package/lib/types/controllers/board-mind-map-insert.render-controller.d.ts +0 -1
  65. package/lib/types/controllers/board-mind-map-intrinsic-size.render-controller.d.ts +4 -2
  66. package/lib/types/controllers/board-mind-map-keyboard-shortcut.controller.d.ts +7 -10
  67. package/lib/types/controllers/board-mind-map-node-controls.render-controller.d.ts +3 -2
  68. package/lib/types/controllers/board-mind-map-shortcut-context.render-controller.d.ts +14 -0
  69. package/lib/types/controllers/board-mind-map-text-editing-shortcut.controller.d.ts +2 -10
  70. package/lib/types/services/board-mind-map-shortcut-runtime.service.d.ts +19 -0
  71. package/lib/types/views/BoardMindMapFloatingToolbar.d.ts +2 -2
  72. package/lib/umd/index.js +1 -1
  73. package/lib/umd/locale/ar-SA.js +1 -1
  74. package/lib/umd/locale/ca-ES.js +1 -1
  75. package/lib/umd/locale/de-DE.js +1 -1
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/id-ID.js +1 -1
  81. package/lib/umd/locale/it-IT.js +1 -1
  82. package/lib/umd/locale/ja-JP.js +1 -1
  83. package/lib/umd/locale/ko-KR.js +1 -1
  84. package/lib/umd/locale/pl-PL.js +1 -1
  85. package/lib/umd/locale/pt-BR.js +1 -1
  86. package/lib/umd/locale/ru-RU.js +1 -1
  87. package/lib/umd/locale/sk-SK.js +1 -1
  88. package/lib/umd/locale/vi-VN.js +1 -1
  89. package/lib/umd/locale/zh-CN.js +1 -1
  90. package/lib/umd/locale/zh-HK.js +1 -1
  91. package/lib/umd/locale/zh-TW.js +1 -1
  92. package/package.json +14 -14
@@ -1 +1 @@
1
- function _0x1041(_0x188ef5,_0x442366){_0x188ef5=_0x188ef5-0x1db;const _0x202db9=_0x202d();let _0x1041b7=_0x202db9[_0x188ef5];return _0x1041b7;}const _0x9b9288=_0x1041;(function(_0x70c012,_0x55f3d2){const _0x563fef=_0x1041,_0xc4d025=_0x70c012();while(!![]){try{const _0x59c796=parseInt(_0x563fef(0x1fa))/0x1+-parseInt(_0x563fef(0x1f5))/0x2*(parseInt(_0x563fef(0x1df))/0x3)+parseInt(_0x563fef(0x1f6))/0x4*(parseInt(_0x563fef(0x1dc))/0x5)+-parseInt(_0x563fef(0x1f9))/0x6*(-parseInt(_0x563fef(0x1fd))/0x7)+parseInt(_0x563fef(0x1de))/0x8*(-parseInt(_0x563fef(0x1e3))/0x9)+parseInt(_0x563fef(0x1e6))/0xa+parseInt(_0x563fef(0x1e0))/0xb*(-parseInt(_0x563fef(0x1ff))/0xc);if(_0x59c796===_0x55f3d2)break;else _0xc4d025['push'](_0xc4d025['shift']());}catch(_0x483c2f){_0xc4d025['push'](_0xc4d025['shift']());}}}(_0x202d,0x8bf51));const e={'boards-mind-ui':{'alignBottom':_0x9b9288(0x1e7),'alignMiddle':_0x9b9288(0x1dd),'alignTop':'靠上對齊','alignJustify':_0x9b9288(0x1f2),'alignRight':_0x9b9288(0x1f0),'alignCenter':_0x9b9288(0x1e4),'alignLeft':_0x9b9288(0x1eb),'saveDescription':'儲存','descriptionPlaceholder':_0x9b9288(0x1f7),'description':'描述','cancel':'取消','panel':{'title':'心智圖','tab':{'importExport':_0x9b9288(0x1f4),'layout':_0x9b9288(0x1ef),'structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0x9b9288(0x1fb),'mindmapVertical':_0x9b9288(0x1fc),'treeRight':'右側樹狀圖','treeLeft':'左側樹狀圖','treeAlternate':_0x9b9288(0x200),'timelineHorizontal':_0x9b9288(0x1f3),'timelineVertical':'縱向時間軸'},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x9b9288(0x1ee),'orthogonal':_0x9b9288(0x1e9)},'addText':'新增文字','cancel':'取消','emptyNodes':'沒有節點','exportOPML':'匯出\x20OPML','importOPML':_0x9b9288(0x1db),'pasteOPML':_0x9b9288(0x1e5),'rename':_0x9b9288(0x1f8),'renamePrompt':_0x9b9288(0x1f1),'searchNodes':'搜尋節點','spacing':{'branchGap':_0x9b9288(0x1ec),'parentGap':_0x9b9288(0x1e2),'siblingGap':'同層間距'}},'toolbar':{'primary':{'line':_0x9b9288(0x1e1),'fontColor':'字型顏色','typography':_0x9b9288(0x1ed),'more':'更多'},'panel':{'line':'線條','typography':'文字排版','more':'更多'},'action':{'addChild':_0x9b9288(0x1ea),'addSibling':_0x9b9288(0x1fe),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0x9b9288(0x1e8),'layout':_0x9b9288(0x1ef),'paste':'貼上','stroke':'外框'}}}};export{e as default};function _0x202d(){const _0x4faed3=['父子間距','387ubKieU','置中對齊','貼上\x20OPML\x20XML','2797530qrUNeA','靠下對齊','字型顏色','直角折線','新增子節點','靠左對齊','分支間距','文字排版','圓角折線','版面配置','靠右對齊','重新命名心智圖節點','左右對齊','橫向時間軸','匯入/匯出','60866danbgk','244scFDeC','為目前節點新增描述','重新命名','6KyRMgb','171761lJmuEo','橫向心智圖','縱向心智圖','7940590zrkiZJ','新增同層節點','3888372ngCvFA','左右樹狀圖','匯入\x20OPML','74670WdfzQt','垂直置中','167368AoQSEd','69cMJwBe','11YoPxiR','連接線樣式'];_0x202d=function(){return _0x4faed3;};return _0x202d();}
1
+ function _0x34b6(_0x31bd01,_0x3f5550){_0x31bd01=_0x31bd01-0x1bc;const _0x635dd2=_0x635d();let _0x34b611=_0x635dd2[_0x31bd01];return _0x34b611;}const _0xc3cbf5=_0x34b6;(function(_0x4eef8f,_0x86b1d0){const _0x4d334c=_0x34b6,_0x1bc531=_0x4eef8f();while(!![]){try{const _0x8813a9=-parseInt(_0x4d334c(0x1cb))/0x1+parseInt(_0x4d334c(0x1c7))/0x2+parseInt(_0x4d334c(0x1cc))/0x3*(-parseInt(_0x4d334c(0x1d1))/0x4)+-parseInt(_0x4d334c(0x1e0))/0x5+parseInt(_0x4d334c(0x1c5))/0x6*(-parseInt(_0x4d334c(0x1d8))/0x7)+-parseInt(_0x4d334c(0x1cf))/0x8+-parseInt(_0x4d334c(0x1d2))/0x9*(-parseInt(_0x4d334c(0x1d9))/0xa);if(_0x8813a9===_0x86b1d0)break;else _0x1bc531['push'](_0x1bc531['shift']());}catch(_0x26548f){_0x1bc531['push'](_0x1bc531['shift']());}}}(_0x635d,0xd4328));function _0x635d(){const _0x512cb4=['匯入/匯出','連接線樣式','匯出\x20OPML','搜尋節點','圓角折線','匯入\x20OPML','1182Txdwik','左側樹狀圖','2215686KzAxXL','橫向心智圖','重新命名心智圖節點','貼上\x20OPML\x20XML','1212877tyWNlp','3ouNEzQ','左右樹狀圖','新增同層節點','13291720wsAhHp','縱向心智圖','2812492cKNuXe','9pPamGQ','新增子節點','心智圖','沒有節點','字型顏色','直角折線','22309jdEvUY','47413070XnwjXd','重新命名','置中對齊','垂直置中','文字排版','靠右對齊','左右對齊','3873430MafZnj','靠下對齊','靠左對齊','橫向時間軸','縱向時間軸','分支間距'];_0x635d=function(){return _0x512cb4;};return _0x635d();}const e={'boards-mind-ui':{'alignBottom':_0xc3cbf5(0x1e1),'alignMiddle':_0xc3cbf5(0x1dc),'alignTop':'靠上對齊','alignJustify':_0xc3cbf5(0x1df),'alignRight':_0xc3cbf5(0x1de),'alignCenter':_0xc3cbf5(0x1db),'alignLeft':_0xc3cbf5(0x1e2),'saveDescription':'儲存','descriptionPlaceholder':'為目前節點新增描述','description':'描述','cancel':'取消','panel':{'title':_0xc3cbf5(0x1d4),'tab':{'importExport':_0xc3cbf5(0x1bf),'layout':'版面配置','structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0xc3cbf5(0x1c8),'mindmapVertical':_0xc3cbf5(0x1d0),'treeRight':'右側樹狀圖','treeLeft':_0xc3cbf5(0x1c6),'treeAlternate':_0xc3cbf5(0x1cd),'timelineHorizontal':_0xc3cbf5(0x1bc),'timelineVertical':_0xc3cbf5(0x1bd)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0xc3cbf5(0x1c3),'orthogonal':_0xc3cbf5(0x1d7)},'addText':'新增文字','cancel':'取消','emptyNodes':_0xc3cbf5(0x1d5),'exportOPML':_0xc3cbf5(0x1c1),'importOPML':_0xc3cbf5(0x1c4),'pasteOPML':_0xc3cbf5(0x1ca),'rename':_0xc3cbf5(0x1da),'renamePrompt':_0xc3cbf5(0x1c9),'searchNodes':_0xc3cbf5(0x1c2),'spacing':{'branchGap':_0xc3cbf5(0x1be),'parentGap':'父子間距','siblingGap':'同層間距'}},'toolbar':{'primary':{'line':_0xc3cbf5(0x1c0),'fontColor':'字型顏色','typography':_0xc3cbf5(0x1dd),'more':'更多'},'panel':{'line':'線條','typography':_0xc3cbf5(0x1dd),'more':'更多'},'action':{'addChild':_0xc3cbf5(0x1d3),'addSibling':_0xc3cbf5(0x1ce),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0xc3cbf5(0x1d6),'layout':'版面配置','paste':'貼上','stroke':'外框'}}}};export{e as default};
@@ -1 +1 @@
1
- const _0x140fd5=_0x2722;(function(_0x4eeb7b,_0xc7ecdd){const _0x7f08c7=_0x2722,_0x58c5b3=_0x4eeb7b();while(!![]){try{const _0x1304e8=parseInt(_0x7f08c7(0x126))/0x1*(parseInt(_0x7f08c7(0x113))/0x2)+-parseInt(_0x7f08c7(0x12b))/0x3*(parseInt(_0x7f08c7(0x102))/0x4)+parseInt(_0x7f08c7(0x107))/0x5+parseInt(_0x7f08c7(0x114))/0x6+parseInt(_0x7f08c7(0x103))/0x7+parseInt(_0x7f08c7(0x11c))/0x8+parseInt(_0x7f08c7(0x127))/0x9*(-parseInt(_0x7f08c7(0x10c))/0xa);if(_0x1304e8===_0xc7ecdd)break;else _0x58c5b3['push'](_0x58c5b3['shift']());}catch(_0x139afb){_0x58c5b3['push'](_0x58c5b3['shift']());}}}(_0x2e9e,0xa6cdd));const e={'boards-mind-ui':{'alignBottom':_0x140fd5(0x104),'alignMiddle':'垂直置中','alignTop':_0x140fd5(0x123),'alignJustify':'左右對齊','alignRight':_0x140fd5(0x10d),'alignCenter':_0x140fd5(0x12a),'alignLeft':_0x140fd5(0x129),'saveDescription':'儲存','descriptionPlaceholder':_0x140fd5(0x128),'description':'描述','cancel':'取消','panel':{'title':_0x140fd5(0x125),'tab':{'importExport':_0x140fd5(0x115),'layout':_0x140fd5(0x10b),'structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0x140fd5(0x116),'mindmapVertical':_0x140fd5(0x11e),'treeRight':_0x140fd5(0x106),'treeLeft':_0x140fd5(0x11d),'treeAlternate':_0x140fd5(0x124),'timelineHorizontal':_0x140fd5(0x109),'timelineVertical':_0x140fd5(0x120)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x140fd5(0x11f),'orthogonal':'直角折線'},'addText':_0x140fd5(0x111),'cancel':'取消','emptyNodes':'沒有節點','exportOPML':_0x140fd5(0x105),'importOPML':_0x140fd5(0x122),'pasteOPML':_0x140fd5(0x110),'rename':_0x140fd5(0x10e),'renamePrompt':_0x140fd5(0x121),'searchNodes':_0x140fd5(0x10f),'spacing':{'branchGap':_0x140fd5(0x118),'parentGap':_0x140fd5(0x108),'siblingGap':_0x140fd5(0x11b)}},'toolbar':{'primary':{'line':_0x140fd5(0x117),'fontColor':'字型顏色','typography':_0x140fd5(0x112),'more':'更多'},'panel':{'line':'線條','typography':_0x140fd5(0x112),'more':'更多'},'action':{'addChild':_0x140fd5(0x10a),'addSibling':_0x140fd5(0x119),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0x140fd5(0x11a),'layout':_0x140fd5(0x10b),'paste':'貼上','stroke':'外框'}}}};export{e as default};function _0x2722(_0x93e4e4,_0x67432){_0x93e4e4=_0x93e4e4-0x102;const _0x2e9efd=_0x2e9e();let _0x2722bb=_0x2e9efd[_0x93e4e4];return _0x2722bb;}function _0x2e9e(){const _0x461b09=['6436xNQTyf','6194804hhfCqG','靠下對齊','匯出\x20OPML','右側樹狀圖','5986680qFZOkf','父子間距','橫向時間軸','新增子節點','版面配置','353470agSjoK','靠右對齊','重新命名','搜尋節點','貼上\x20OPML\x20XML','新增文字','文字排版','2efgPaK','1820280vzMPYq','匯入/匯出','橫向心智圖','連接線樣式','分支間距','新增同層節點','字型顏色','同層間距','7003488lfBzrf','左側樹狀圖','縱向心智圖','圓角折線','縱向時間軸','重新命名心智圖節點','匯入\x20OPML','靠上對齊','左右樹狀圖','心智圖','98132vrdUdn','522bScvnQ','為目前節點新增描述','靠左對齊','置中對齊','1167EQKWEg'];_0x2e9e=function(){return _0x461b09;};return _0x2e9e();}
1
+ const _0x56b906=_0x37e0;function _0x37e0(_0x190486,_0x64ce43){_0x190486=_0x190486-0x17b;const _0x44f9ba=_0x44f9();let _0x37e077=_0x44f9ba[_0x190486];return _0x37e077;}(function(_0x5be160,_0x293b27){const _0x13db5e=_0x37e0,_0x2eac1f=_0x5be160();while(!![]){try{const _0x23f770=-parseInt(_0x13db5e(0x184))/0x1*(parseInt(_0x13db5e(0x196))/0x2)+parseInt(_0x13db5e(0x189))/0x3+-parseInt(_0x13db5e(0x18e))/0x4+-parseInt(_0x13db5e(0x186))/0x5+-parseInt(_0x13db5e(0x193))/0x6+parseInt(_0x13db5e(0x18f))/0x7*(parseInt(_0x13db5e(0x197))/0x8)+parseInt(_0x13db5e(0x182))/0x9*(parseInt(_0x13db5e(0x17e))/0xa);if(_0x23f770===_0x293b27)break;else _0x2eac1f['push'](_0x2eac1f['shift']());}catch(_0x45f93c){_0x2eac1f['push'](_0x2eac1f['shift']());}}}(_0x44f9,0x23f30));function _0x44f9(){const _0x2d17da=['直角折線','文字排版','靠上對齊','4245380AkrgFY','圓角折線','字型顏色','縱向時間軸','18zvoInP','置中對齊','1QJmPrK','父子間距','838310EOPumP','匯出\x20OPML','靠右對齊','15765jJZTfR','左側樹狀圖','新增子節點','靠左對齊','為目前節點新增描述','1159696lBsUsh','70iZANRN','橫向心智圖','分支間距','匯入/匯出','1489638iInufN','左右樹狀圖','新增同層節點','111148yMbJBs','43480lfanhv','搜尋節點'];_0x44f9=function(){return _0x2d17da;};return _0x44f9();}const e={'boards-mind-ui':{'alignBottom':'靠下對齊','alignMiddle':'垂直置中','alignTop':_0x56b906(0x17d),'alignJustify':'左右對齊','alignRight':_0x56b906(0x188),'alignCenter':_0x56b906(0x183),'alignLeft':_0x56b906(0x18c),'saveDescription':'儲存','descriptionPlaceholder':_0x56b906(0x18d),'description':'描述','cancel':'取消','panel':{'title':'心智圖','tab':{'importExport':_0x56b906(0x192),'layout':'版面配置','structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0x56b906(0x190),'mindmapVertical':'縱向心智圖','treeRight':'右側樹狀圖','treeLeft':_0x56b906(0x18a),'treeAlternate':_0x56b906(0x194),'timelineHorizontal':'橫向時間軸','timelineVertical':_0x56b906(0x181)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x56b906(0x17f),'orthogonal':_0x56b906(0x17b)},'addText':'新增文字','cancel':'取消','emptyNodes':'沒有節點','exportOPML':_0x56b906(0x187),'importOPML':'匯入\x20OPML','pasteOPML':'貼上\x20OPML\x20XML','rename':'重新命名','renamePrompt':'重新命名心智圖節點','searchNodes':_0x56b906(0x198),'spacing':{'branchGap':_0x56b906(0x191),'parentGap':_0x56b906(0x185),'siblingGap':'同層間距'}},'toolbar':{'primary':{'line':'連接線樣式','fontColor':'字型顏色','typography':_0x56b906(0x17c),'more':'更多'},'panel':{'line':'線條','typography':'文字排版','more':'更多'},'action':{'addChild':_0x56b906(0x18b),'addSibling':_0x56b906(0x195),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0x56b906(0x180),'layout':'版面配置','paste':'貼上','stroke':'外框'}}}};export{e as default};
@@ -8,9 +8,7 @@ export declare class BoardMindMapAutosizeLayoutRenderController extends RxDispos
8
8
  private readonly _commandService;
9
9
  private readonly _nodeSizeByKey;
10
10
  private readonly _queuedLayouts;
11
- private readonly _debouncedLayouts;
12
11
  private _layoutFlushScheduled;
13
- private _debouncedLayoutTimer;
14
12
  constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _commandService: ICommandService);
15
13
  private _init;
16
14
  private _seedExistingNodeSizes;
@@ -18,7 +16,6 @@ export declare class BoardMindMapAutosizeLayoutRenderController extends RxDispos
18
16
  private _rememberNodeSize;
19
17
  private _resolveNodeSize;
20
18
  private _queueLayout;
21
- private _handleNodeUpdateCommand;
22
- private _queueDebouncedLayout;
19
+ private _executeRootAnchoredLayout;
23
20
  private _getElementKey;
24
21
  }
@@ -26,6 +26,7 @@ export declare class BoardMindMapDragTopologyRenderController extends RxDisposab
26
26
  private _attachObjectPointerListeners;
27
27
  private _resolveCurrentBoardContext;
28
28
  private _captureDragStart;
29
+ private _resolveCompleteSelectedScope;
29
30
  private _capturePointerChildDragStart;
30
31
  private _syncPointerChildDragPreview;
31
32
  private _applyPointerChildDrag;
@@ -38,6 +39,7 @@ export declare class BoardMindMapDragTopologyRenderController extends RxDisposab
38
39
  private _syncRootReparentPreview;
39
40
  private _syncChildDragPreview;
40
41
  private _applyDragTopologyAction;
42
+ private _applyScopeTranslation;
41
43
  private _executeChildDragAction;
42
44
  private _applyRootTranslation;
43
45
  private _resolveChildDragTopologyAction;
@@ -15,7 +15,6 @@ export declare class BoardMindMapInsertRenderController extends RxDisposable imp
15
15
  private _lastPoint;
16
16
  constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _stateService: IBoardUIStateService, _commandService: ICommandService, _insertStateService: BoardMindMapInsertStateService, _elementStateService: IBoardElementStateService, _boardTextEditingService: BoardTextEditingService);
17
17
  private _init;
18
- private _syncSceneInputMode;
19
18
  private _syncPreviewObject;
20
19
  private _ensurePreviewObject;
21
20
  private _removePreviewObject;
@@ -3,7 +3,7 @@ import type { UnitModel } from '@univerjs/core';
3
3
  import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
4
4
  import { IBoardElementService } from '@univerjs-pro/boards';
5
5
  import { BoardShapeIntrinsicSizeService, BoardTextEditingService } from '@univerjs-pro/boards-ui';
6
- import { RxDisposable } from '@univerjs/core';
6
+ import { ICommandService, RxDisposable } from '@univerjs/core';
7
7
  import { BoardMindMapPreviewRefreshService } from '../services/board-mind-map-preview-refresh.service';
8
8
  interface IMindMapHostSize {
9
9
  height: number;
@@ -16,10 +16,12 @@ export declare class BoardMindMapIntrinsicSizeRenderController extends RxDisposa
16
16
  private readonly _boardElementService;
17
17
  private readonly _textEditingService;
18
18
  private readonly _previewRefreshService;
19
+ private readonly _commandService;
19
20
  private _activePreview;
20
21
  private readonly _provider;
21
- constructor(_renderContext: IRenderContext<UnitModel>, _intrinsicSizeService: BoardShapeIntrinsicSizeService, _boardElementService: IBoardElementService, _textEditingService: BoardTextEditingService, _previewRefreshService: BoardMindMapPreviewRefreshService);
22
+ constructor(_renderContext: IRenderContext<UnitModel>, _intrinsicSizeService: BoardShapeIntrinsicSizeService, _boardElementService: IBoardElementService, _textEditingService: BoardTextEditingService, _previewRefreshService: BoardMindMapPreviewRefreshService, _commandService: ICommandService);
22
23
  private _updateHostSize;
24
+ private _updateShapeText;
23
25
  private _previewHostSize;
24
26
  private _resolveHostSize;
25
27
  private _initEditingRestore;
@@ -1,33 +1,30 @@
1
- import { IBoardElementService } from '@univerjs-pro/boards';
2
1
  import { IMindMapClipboardService } from '@univerjs-pro/boards-mind';
3
- import { BoardTextEditingService, IBoardElementStateService, IBoardUIStateService } from '@univerjs-pro/boards-ui';
4
2
  import { ICommandService, RxDisposable } from '@univerjs/core';
5
- import { IDialogService, IShortcutService } from '@univerjs/ui';
3
+ import { IShortcutService } from '@univerjs/ui';
4
+ import { BoardMindMapShortcutRuntimeService } from '../services/board-mind-map-shortcut-runtime.service';
6
5
  export declare const BOARD_MIND_MAP_KEYBOARD_SHORTCUT_OPERATION_ID = "board.operation.mind-map.keyboard-shortcut";
6
+ export declare const FOCUSING_MIND_MAP_NODE = "FOCUSING_MIND_MAP_NODE";
7
+ export declare const FOCUSING_MIND_MAP_BLANK_BOARD = "FOCUSING_MIND_MAP_BLANK_BOARD";
7
8
  export type MindMapKeyboardShortcutAction = 'copy' | 'paste' | 'paste-as-new' | 'add-child' | 'add-sibling-or-child' | 'promote' | 'toggle-collapse' | 'collapse-all' | 'edit-text' | 'open-description' | 'delete' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-down';
8
9
  export declare const BOARD_MIND_MAP_KEYBOARD_SHORTCUT_BINDINGS: Record<MindMapKeyboardShortcutAction, number>;
9
10
  export declare const BOARD_MIND_MAP_KEYBOARD_SHORTCUT_EXTRA_BINDINGS: Partial<Record<MindMapKeyboardShortcutAction, readonly number[]>>;
10
11
  export declare function getMindMapKeyboardShortcutBindings(action: MindMapKeyboardShortcutAction): readonly number[];
11
12
  export declare class BoardMindMapKeyboardShortcutController extends RxDisposable {
12
- private readonly _boardElementService;
13
- private readonly _elementStateService;
14
- private readonly _boardUIStateService;
15
13
  private readonly _mindMapClipboardService;
16
14
  private readonly _commandService;
17
15
  private readonly _shortcutService;
18
- private readonly _boardTextEditingService;
19
- private readonly _dialogService;
20
- constructor(_boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _boardUIStateService: IBoardUIStateService, _mindMapClipboardService: IMindMapClipboardService, _commandService: ICommandService, _shortcutService: IShortcutService, _boardTextEditingService: BoardTextEditingService, _dialogService: IDialogService);
16
+ constructor(_mindMapClipboardService: IMindMapClipboardService, _commandService: ICommandService, _shortcutService: IShortcutService);
21
17
  private _init;
22
18
  private _createKeyboardShortcutOperation;
23
19
  private _createShortcutItems;
24
- private _handleShortcut;
20
+ handleShortcut(runtime: BoardMindMapShortcutRuntimeService, action: MindMapKeyboardShortcutAction | undefined): boolean;
25
21
  private _copySelectedNode;
26
22
  private _pasteUnderSelectedNode;
27
23
  private _pasteAsNewMindMap;
28
24
  private _addChild;
29
25
  private _addSiblingOrChild;
30
26
  private _executeNodeOperation;
27
+ private _deleteSelectedNode;
31
28
  private _collapseAll;
32
29
  private _openSelectedTextEditing;
33
30
  private _openDescriptionDialog;
@@ -2,7 +2,7 @@ import type { UnitModel } from '@univerjs/core';
2
2
  import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
3
  import { IBoardElementService } from '@univerjs-pro/boards';
4
4
  import { BoardTextEditingService, IBoardElementStateService, IBoardUIStateService } from '@univerjs-pro/boards-ui';
5
- import { ICommandService, RxDisposable } from '@univerjs/core';
5
+ import { ICommandService, LocaleService, RxDisposable } from '@univerjs/core';
6
6
  import { BoardMindMapPreviewRefreshService } from '../services/board-mind-map-preview-refresh.service';
7
7
  export declare class BoardMindMapNodeControlsRenderController extends RxDisposable implements IRenderModule {
8
8
  private readonly _renderContext;
@@ -11,12 +11,13 @@ export declare class BoardMindMapNodeControlsRenderController extends RxDisposab
11
11
  private readonly _stateService;
12
12
  private readonly _commandService;
13
13
  private readonly _boardTextEditingService;
14
+ private readonly _localeService;
14
15
  private readonly _previewRefreshService;
15
16
  private _object;
16
17
  private _objectEventDisposables;
17
18
  private _activeNodeId;
18
19
  private _activeScopeId;
19
- constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _commandService: ICommandService, _boardTextEditingService: BoardTextEditingService, _previewRefreshService: BoardMindMapPreviewRefreshService);
20
+ constructor(_renderContext: IRenderContext<UnitModel>, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _commandService: ICommandService, _boardTextEditingService: BoardTextEditingService, _localeService: LocaleService, _previewRefreshService: BoardMindMapPreviewRefreshService);
20
21
  private _init;
21
22
  private _ensureObject;
22
23
  private _attachObjectEvents;
@@ -0,0 +1,14 @@
1
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
2
+ import { IBoardElementService } from '@univerjs-pro/boards';
3
+ import { BoardTextEditingService, IBoardElementStateService } from '@univerjs-pro/boards-ui';
4
+ import { IContextService, RxDisposable } from '@univerjs/core';
5
+ export declare class BoardMindMapShortcutContextRenderController extends RxDisposable implements IRenderModule {
6
+ private readonly _boardElementService;
7
+ private readonly _elementStateService;
8
+ private readonly _textEditingService;
9
+ private readonly _contextService;
10
+ constructor(_renderContext: IRenderContext, _boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _textEditingService: BoardTextEditingService, _contextService: IContextService);
11
+ private _syncContext;
12
+ dispose(): void;
13
+ private _resetContext;
14
+ }
@@ -1,18 +1,10 @@
1
- import { IBoardElementService } from '@univerjs-pro/boards';
2
- import { IBoardElementStateService } from '@univerjs-pro/boards-ui';
3
- import { ICommandService, IContextService, RxDisposable } from '@univerjs/core';
1
+ import { ICommandService, RxDisposable } from '@univerjs/core';
4
2
  import { IShortcutService } from '@univerjs/ui';
5
3
  export declare const FOCUSING_MIND_MAP_TEXT_EDITOR = "FOCUSING_MIND_MAP_TEXT_EDITOR";
6
4
  export declare class BoardMindMapTextEditingShortcutController extends RxDisposable {
7
- private readonly _boardElementService;
8
- private readonly _elementStateService;
9
- private readonly _contextService;
10
5
  private readonly _commandService;
11
6
  private readonly _shortcutService;
12
- constructor(_boardElementService: IBoardElementService, _elementStateService: IBoardElementStateService, _contextService: IContextService, _commandService: ICommandService, _shortcutService: IShortcutService);
7
+ constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
13
8
  private _init;
14
9
  private _createQuoteShortcut;
15
- private _syncMindMapTextEditorContext;
16
- private _isEditingMindMapNode;
17
- dispose(): void;
18
10
  }
@@ -0,0 +1,19 @@
1
+ import type { BoardModel } from '@univerjs-pro/boards';
2
+ import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
+ import { IBoardElementService } from '@univerjs-pro/boards';
4
+ import { IMindMapClipboardService } from '@univerjs-pro/boards-mind';
5
+ import { BoardTextEditingService, IBoardElementStateService, IBoardUIStateService } from '@univerjs-pro/boards-ui';
6
+ import { Disposable, ICommandService, LocaleService } from '@univerjs/core';
7
+ import { IDialogService } from '@univerjs/ui';
8
+ export declare class BoardMindMapShortcutRuntimeService extends Disposable implements IRenderModule {
9
+ readonly renderContext: IRenderContext<BoardModel>;
10
+ readonly commandService: ICommandService;
11
+ readonly elementService: IBoardElementService;
12
+ readonly elementStateService: IBoardElementStateService;
13
+ readonly uiStateService: IBoardUIStateService;
14
+ readonly clipboardService: IMindMapClipboardService;
15
+ readonly dialogService: IDialogService;
16
+ readonly localeService: LocaleService;
17
+ readonly textEditingService: BoardTextEditingService;
18
+ constructor(renderContext: IRenderContext<BoardModel>, commandService: ICommandService, elementService: IBoardElementService, elementStateService: IBoardElementStateService, uiStateService: IBoardUIStateService, clipboardService: IMindMapClipboardService, dialogService: IDialogService, localeService: LocaleService, textEditingService: BoardTextEditingService);
19
+ }
@@ -35,14 +35,14 @@ export declare function resolveMindMapToolbarTextState(shapeData: IShapeData | u
35
35
  verticalAlign: VerticalAlign;
36
36
  };
37
37
  export declare function resolveMindMapShortcutDisplay(shortcutService: Pick<IShortcutService, 'getShortcutDisplay'>, action?: MindMapKeyboardShortcutAction): string | undefined;
38
- export declare function handleMindMapToolbarStructureKindChange(commandService: ICommandService, params: {
38
+ export declare function handleMindMapToolbarStructureKindChange(commandService: ICommandService, runGrouped: <T>(action: () => T) => T, params: {
39
39
  unitId: string;
40
40
  subUnitId: string;
41
41
  scopeId: string;
42
42
  structureKind: MindMapStructureKind;
43
43
  branchLineType?: MindMapBranchLineType;
44
44
  }): Promise<boolean>;
45
- export declare function handleMindMapToolbarBranchLineTypeChange(commandService: ICommandService, params: {
45
+ export declare function handleMindMapToolbarBranchLineTypeChange(commandService: ICommandService, runGrouped: <T>(action: () => T) => T, params: {
46
46
  unitId: string;
47
47
  subUnitId: string;
48
48
  scopeId: string;