@univerjs-pro/boards-mind-ui 1.0.0-beta.0 → 1.0.0-beta.1

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 +12 -12
@@ -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 _0x8c95(_0x5171bd,_0x1332d0){_0x5171bd=_0x5171bd-0x176;const _0x3d663f=_0x3d66();let _0x8c95fb=_0x3d663f[_0x5171bd];return _0x8c95fb;}const _0x3a87b6=_0x8c95;(function(_0xf97fbd,_0xade537){const _0x5d9d52=_0x8c95,_0x15a607=_0xf97fbd();while(!![]){try{const _0x2fa794=-parseInt(_0x5d9d52(0x195))/0x1+parseInt(_0x5d9d52(0x185))/0x2+parseInt(_0x5d9d52(0x17f))/0x3*(parseInt(_0x5d9d52(0x187))/0x4)+parseInt(_0x5d9d52(0x180))/0x5+-parseInt(_0x5d9d52(0x18e))/0x6+-parseInt(_0x5d9d52(0x17e))/0x7+parseInt(_0x5d9d52(0x182))/0x8;if(_0x2fa794===_0xade537)break;else _0x15a607['push'](_0x15a607['shift']());}catch(_0x1ae12b){_0x15a607['push'](_0x15a607['shift']());}}}(_0x3d66,0xa78fc));const e={'boards-mind-ui':{'alignBottom':'靠下對齊','alignMiddle':_0x3a87b6(0x189),'alignTop':_0x3a87b6(0x17d),'alignJustify':_0x3a87b6(0x197),'alignRight':_0x3a87b6(0x178),'alignCenter':_0x3a87b6(0x192),'alignLeft':_0x3a87b6(0x18c),'saveDescription':'儲存','descriptionPlaceholder':_0x3a87b6(0x190),'description':'描述','cancel':'取消','panel':{'title':'心智圖','tab':{'importExport':_0x3a87b6(0x18d),'layout':_0x3a87b6(0x184),'structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0x3a87b6(0x199),'mindmapVertical':_0x3a87b6(0x17b),'treeRight':_0x3a87b6(0x188),'treeLeft':'左側樹狀圖','treeAlternate':'左右樹狀圖','timelineHorizontal':'橫向時間軸','timelineVertical':'縱向時間軸'},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x3a87b6(0x179),'orthogonal':_0x3a87b6(0x183)},'addText':_0x3a87b6(0x176),'cancel':'取消','emptyNodes':_0x3a87b6(0x18b),'exportOPML':'匯出\x20OPML','importOPML':_0x3a87b6(0x17a),'pasteOPML':_0x3a87b6(0x17c),'rename':_0x3a87b6(0x196),'renamePrompt':_0x3a87b6(0x177),'searchNodes':_0x3a87b6(0x18a),'spacing':{'branchGap':_0x3a87b6(0x194),'parentGap':_0x3a87b6(0x191),'siblingGap':_0x3a87b6(0x186)}},'toolbar':{'primary':{'line':_0x3a87b6(0x181),'fontColor':'字型顏色','typography':_0x3a87b6(0x18f),'more':'更多'},'panel':{'line':'線條','typography':'文字排版','more':'更多'},'action':{'addChild':_0x3a87b6(0x198),'addSibling':'新增同層節點','copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0x3a87b6(0x193),'layout':_0x3a87b6(0x184),'paste':'貼上','stroke':'外框'}}}};function _0x3d66(){const _0x754f55=['父子間距','置中對齊','字型顏色','分支間距','1366307kOEezH','重新命名','左右對齊','新增子節點','橫向心智圖','新增文字','重新命名心智圖節點','靠右對齊','圓角折線','匯入\x20OPML','縱向心智圖','貼上\x20OPML\x20XML','靠上對齊','4079565XJZVZx','81453tfhCbG','5572775tnDUQv','連接線樣式','13151632dtFthd','直角折線','版面配置','233708XRyRLy','同層間距','100JxKNEw','右側樹狀圖','垂直置中','搜尋節點','沒有節點','靠左對齊','匯入/匯出','5512224adAdeF','文字排版','為目前節點新增描述'];_0x3d66=function(){return _0x754f55;};return _0x3d66();}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
+ function _0x3ac2(_0x41f865,_0x31260f){_0x41f865=_0x41f865-0x84;const _0x2576a5=_0x2576();let _0x3ac20e=_0x2576a5[_0x41f865];return _0x3ac20e;}function _0x2576(){const _0x19af10=['左右對齊','沒有節點','2393315irCeLF','新增子節點','貼上\x20OPML\x20XML','垂直置中','匯出\x20OPML','置中對齊','重新命名心智圖節點','文字排版','靠上對齊','字型顏色','835292vLPKvc','縱向時間軸','7SUiQAz','直角折線','連接線樣式','為目前節點新增描述','2007042UCMmFE','左右樹狀圖','版面配置','分支間距','4198560HfbspD','新增文字','圓角折線','1060230yCXSIO','重新命名','匯入/匯出','搜尋節點','橫向時間軸','新增同層節點','靠右對齊','縱向心智圖','靠左對齊','3855020ShNGwy','34005352RfjOuF','匯入\x20OPML','左側樹狀圖'];_0x2576=function(){return _0x19af10;};return _0x2576();}const _0x6fca39=_0x3ac2;(function(_0x95286,_0x561696){const _0x386d2c=_0x3ac2,_0x26b230=_0x95286();while(!![]){try{const _0x2f031b=-parseInt(_0x386d2c(0x92))/0x1+parseInt(_0x386d2c(0x9f))/0x2+-parseInt(_0x386d2c(0x9c))/0x3+-parseInt(_0x386d2c(0xa8))/0x4+-parseInt(_0x386d2c(0x88))/0x5+parseInt(_0x386d2c(0x98))/0x6*(-parseInt(_0x386d2c(0x94))/0x7)+parseInt(_0x386d2c(0xa9))/0x8;if(_0x2f031b===_0x561696)break;else _0x26b230['push'](_0x26b230['shift']());}catch(_0x15da92){_0x26b230['push'](_0x26b230['shift']());}}}(_0x2576,0xbbc17));const e={'boards-mind-ui':{'alignBottom':'靠下對齊','alignMiddle':_0x6fca39(0x8b),'alignTop':_0x6fca39(0x90),'alignJustify':_0x6fca39(0x86),'alignRight':_0x6fca39(0xa5),'alignCenter':_0x6fca39(0x8d),'alignLeft':_0x6fca39(0xa7),'saveDescription':'儲存','descriptionPlaceholder':_0x6fca39(0x97),'description':'描述','cancel':'取消','panel':{'title':'心智圖','tab':{'importExport':_0x6fca39(0xa1),'layout':_0x6fca39(0x9a),'structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':'橫向心智圖','mindmapVertical':_0x6fca39(0xa6),'treeRight':'右側樹狀圖','treeLeft':_0x6fca39(0x85),'treeAlternate':_0x6fca39(0x99),'timelineHorizontal':_0x6fca39(0xa3),'timelineVertical':_0x6fca39(0x93)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x6fca39(0x9e),'orthogonal':_0x6fca39(0x95)},'addText':_0x6fca39(0x9d),'cancel':'取消','emptyNodes':_0x6fca39(0x87),'exportOPML':_0x6fca39(0x8c),'importOPML':_0x6fca39(0x84),'pasteOPML':_0x6fca39(0x8a),'rename':_0x6fca39(0xa0),'renamePrompt':_0x6fca39(0x8e),'searchNodes':_0x6fca39(0xa2),'spacing':{'branchGap':_0x6fca39(0x9b),'parentGap':'父子間距','siblingGap':'同層間距'}},'toolbar':{'primary':{'line':_0x6fca39(0x96),'fontColor':'字型顏色','typography':'文字排版','more':'更多'},'panel':{'line':'線條','typography':_0x6fca39(0x8f),'more':'更多'},'action':{'addChild':_0x6fca39(0x89),'addSibling':_0x6fca39(0xa4),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0x6fca39(0x91),'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;