@univerjs-pro/boards-mind-ui 1.0.0-alpha.8 → 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 (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.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 -93
  72. package/lib/types/views/BoardMindMapPanel.d.ts +0 -17
  73. package/lib/types/views/board-mind-map-floating-toolbar-config.d.ts +92 -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 +14 -14
@@ -1 +1 @@
1
- function _0x31fb(_0x26f6c9,_0x1b1759){_0x26f6c9=_0x26f6c9-0xd3;const _0x36c47c=_0x36c4();let _0x31fbf2=_0x36c47c[_0x26f6c9];return _0x31fbf2;}function _0x36c4(){const _0x101497=['右側樹狀圖','5zYWBuG','重新命名','縱向時間軸','搜尋節點','18809520zkpgIx','連接線樣式','8TFBASy','縱向心智圖','垂直置中','重新命名心智圖節點','貼上\x20OPML\x20XML','文字排版','分支間距','靠下對齊','2246682FGvdcz','21REcqtn','24swerWQ','匯出\x20OPML','36UeMCvn','橫向心智圖','左右對齊','同層間距','新增同層節點','直角折線','圓角折線','1299410PVTmSw','置中對齊','260296YbGhmE','靠上對齊','沒有節點','左側樹狀圖','3411583NWuDMe','字型顏色','新增子節點','6816117Yemgny','匯入\x20OPML','33322yIUjmR','橫向時間軸','版面配置','心智圖','為目前節點新增描述'];_0x36c4=function(){return _0x101497;};return _0x36c4();}const _0x20b26e=_0x31fb;(function(_0x2aae7e,_0x11915c){const _0x7ca05c=_0x31fb,_0x3f7a30=_0x2aae7e();while(!![]){try{const _0x45cc56=parseInt(_0x7ca05c(0xe4))/0x1*(-parseInt(_0x7ca05c(0xf8))/0x2)+parseInt(_0x7ca05c(0xe3))/0x3*(parseInt(_0x7ca05c(0xef))/0x4)+-parseInt(_0x7ca05c(0xd4))/0x5*(-parseInt(_0x7ca05c(0xe2))/0x6)+parseInt(_0x7ca05c(0xf3))/0x7*(-parseInt(_0x7ca05c(0xda))/0x8)+-parseInt(_0x7ca05c(0xe6))/0x9*(parseInt(_0x7ca05c(0xed))/0xa)+-parseInt(_0x7ca05c(0xf6))/0xb+parseInt(_0x7ca05c(0xd8))/0xc;if(_0x45cc56===_0x11915c)break;else _0x3f7a30['push'](_0x3f7a30['shift']());}catch(_0x66d127){_0x3f7a30['push'](_0x3f7a30['shift']());}}}(_0x36c4,0x5a85d));const e={'boards-mind-ui':{'alignBottom':_0x20b26e(0xe1),'alignMiddle':_0x20b26e(0xdc),'alignTop':_0x20b26e(0xf0),'alignJustify':_0x20b26e(0xe8),'alignRight':'靠右對齊','alignCenter':_0x20b26e(0xee),'alignLeft':'靠左對齊','saveDescription':'儲存','descriptionPlaceholder':_0x20b26e(0xfc),'description':'描述','cancel':'取消','panel':{'title':_0x20b26e(0xfb),'tab':{'importExport':'匯入/匯出','layout':'版面配置','structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0x20b26e(0xe7),'mindmapVertical':_0x20b26e(0xdb),'treeRight':_0x20b26e(0xd3),'treeLeft':_0x20b26e(0xf2),'treeAlternate':'左右樹狀圖','timelineHorizontal':_0x20b26e(0xf9),'timelineVertical':_0x20b26e(0xd6)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x20b26e(0xec),'orthogonal':_0x20b26e(0xeb)},'addText':'新增文字','cancel':'取消','emptyNodes':_0x20b26e(0xf1),'exportOPML':_0x20b26e(0xe5),'importOPML':_0x20b26e(0xf7),'pasteOPML':_0x20b26e(0xde),'rename':_0x20b26e(0xd5),'renamePrompt':_0x20b26e(0xdd),'searchNodes':_0x20b26e(0xd7),'spacing':{'branchGap':_0x20b26e(0xe0),'parentGap':'父子間距','siblingGap':_0x20b26e(0xe9)}},'toolbar':{'primary':{'line':_0x20b26e(0xd9),'fontColor':_0x20b26e(0xf4),'typography':_0x20b26e(0xdf),'more':'更多'},'panel':{'line':'線條','typography':'文字排版','more':'更多'},'action':{'addChild':_0x20b26e(0xf5),'addSibling':_0x20b26e(0xea),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':_0x20b26e(0xf4),'layout':_0x20b26e(0xfa),'paste':'貼上','stroke':'外框'}}}};export{e as default};
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 _0x2d11a5=_0xbbed;(function(_0x3e1a90,_0x4cb294){const _0x48e5e5=_0xbbed,_0x4b702c=_0x3e1a90();while(!![]){try{const _0x5d7fad=parseInt(_0x48e5e5(0x91))/0x1*(-parseInt(_0x48e5e5(0x82))/0x2)+parseInt(_0x48e5e5(0x8b))/0x3+parseInt(_0x48e5e5(0x81))/0x4*(-parseInt(_0x48e5e5(0x71))/0x5)+-parseInt(_0x48e5e5(0x86))/0x6*(parseInt(_0x48e5e5(0x72))/0x7)+parseInt(_0x48e5e5(0x87))/0x8*(parseInt(_0x48e5e5(0x80))/0x9)+-parseInt(_0x48e5e5(0x8f))/0xa*(-parseInt(_0x48e5e5(0x6f))/0xb)+-parseInt(_0x48e5e5(0x8e))/0xc*(-parseInt(_0x48e5e5(0x90))/0xd);if(_0x5d7fad===_0x4cb294)break;else _0x4b702c['push'](_0x4b702c['shift']());}catch(_0x16e9fe){_0x4b702c['push'](_0x4b702c['shift']());}}}(_0x2732,0xd7857));function _0x2732(){const _0x3b02ae=['靠右對齊','貼上\x20OPML\x20XML','縱向時間軸','同層間距','525151oyDKUB','為目前節點新增描述','1176445hYnqqz','9922129mhgCCv','左側樹狀圖','垂直置中','匯出\x20OPML','重新命名心智圖節點','左右對齊','匯入/匯出','新增文字','新增同層節點','匯入\x20OPML','版面配置','分支間距','父子間距','靠下對齊','3960351TQbuPE','20BQfKLa','23804zOjvWQ','直角折線','置中對齊','橫向心智圖','6CurZgq','8PiQWDf','文字排版','圓角折線','沒有節點','3849582KYzbyJ','新增子節點','靠上對齊','1241364jVrPLi','30ICGrnT','325GWTRyi','82dbHXpd','重新命名'];_0x2732=function(){return _0x3b02ae;};return _0x2732();}function _0xbbed(_0x111b38,_0x309700){_0x111b38=_0x111b38-0x6e;const _0x273215=_0x2732();let _0xbbed1=_0x273215[_0x111b38];return _0xbbed1;}const e={'boards-mind-ui':{'alignBottom':_0x2d11a5(0x7f),'alignMiddle':_0x2d11a5(0x74),'alignTop':_0x2d11a5(0x8d),'alignJustify':_0x2d11a5(0x77),'alignRight':_0x2d11a5(0x93),'alignCenter':_0x2d11a5(0x84),'alignLeft':'靠左對齊','saveDescription':'儲存','descriptionPlaceholder':_0x2d11a5(0x70),'description':'描述','cancel':'取消','panel':{'title':'心智圖','tab':{'importExport':_0x2d11a5(0x78),'layout':_0x2d11a5(0x7c),'structure':'結構'},'layout':{'both':'雙向','left':'左側','right':'右側'},'structureKind':{'mindmapHorizontal':_0x2d11a5(0x85),'mindmapVertical':'縱向心智圖','treeRight':'右側樹狀圖','treeLeft':_0x2d11a5(0x73),'treeAlternate':'左右樹狀圖','timelineHorizontal':'橫向時間軸','timelineVertical':_0x2d11a5(0x95)},'branchLineType':{'curve':'曲線','roundedOrthogonal':_0x2d11a5(0x89),'orthogonal':_0x2d11a5(0x83)},'addText':_0x2d11a5(0x79),'cancel':'取消','emptyNodes':_0x2d11a5(0x8a),'exportOPML':_0x2d11a5(0x75),'importOPML':_0x2d11a5(0x7b),'pasteOPML':_0x2d11a5(0x94),'rename':_0x2d11a5(0x92),'renamePrompt':_0x2d11a5(0x76),'searchNodes':'搜尋節點','spacing':{'branchGap':_0x2d11a5(0x7d),'parentGap':_0x2d11a5(0x7e),'siblingGap':_0x2d11a5(0x6e)}},'toolbar':{'primary':{'line':'連接線樣式','fontColor':'字型顏色','typography':_0x2d11a5(0x88),'more':'更多'},'panel':{'line':'線條','typography':_0x2d11a5(0x88),'more':'更多'},'action':{'addChild':_0x2d11a5(0x8c),'addSibling':_0x2d11a5(0x7a),'copy':'複製','delete':'刪除','fill':'填滿','fontColor':'字型顏色','layout':_0x2d11a5(0x7c),'paste':'貼上','stroke':'外框'}}}};export{e as default};
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
+ }
@@ -4,101 +4,10 @@ import type { IShapeData } from '@univerjs-pro/engine-shape';
4
4
  import type { IShapeTextUpdateOptions } from '@univerjs-pro/shape-editor-ui';
5
5
  import type { ITextStyle } from '@univerjs/core';
6
6
  import type { MindMapKeyboardShortcutAction } from '../controllers/board-mind-map-keyboard-shortcut.controller';
7
- import type { LocaleKey } from '../locale/types';
8
7
  import { HorizontalAlign, ICommandService, VerticalAlign } from '@univerjs/core';
9
8
  import { IShortcutService } from '@univerjs/ui';
10
9
  export declare const BOARD_MIND_MAP_FLOATING_TOOLBAR_KEY = "board.mind-map.floating-toolbar";
11
- export declare const BOARD_MIND_MAP_LINE_WIDTH_RANGE: {
12
- min: number;
13
- max: number;
14
- defaultValue: number;
15
- };
16
- export declare const BOARD_MIND_MAP_LINE_OPACITY_RANGE: {
17
- min: number;
18
- max: number;
19
- defaultValue: number;
20
- };
21
10
  export type BoardMindMapLineType = 'solid' | 'dash' | 'dot';
22
- export type BoardMindMapFloatingToolbarPanel = 'line' | 'more';
23
- export type BoardMindMapFloatingToolbarPrimaryItem = {
24
- kind: 'dropdown';
25
- titleKey: LocaleKey;
26
- panel: BoardMindMapFloatingToolbarPanel;
27
- dividerBefore?: boolean;
28
- } | {
29
- kind: 'fontColor';
30
- titleKey: LocaleKey;
31
- dividerBefore?: boolean;
32
- } | {
33
- kind: 'typography';
34
- titleKey: LocaleKey;
35
- dividerBefore?: boolean;
36
- };
37
- export declare const BOARD_MIND_MAP_FLOATING_TOOLBAR_PRIMARY_ITEMS: BoardMindMapFloatingToolbarPrimaryItem[];
38
- export declare const BOARD_MIND_MAP_FLOATING_TOOLBAR_PANELS: {
39
- line: {
40
- sections: readonly ["type", "width", "color", "opacity"];
41
- };
42
- more: {
43
- actionKeys: readonly ["addSibling", "addChild", "copy", "paste", "delete"];
44
- };
45
- };
46
- export declare const BOARD_MIND_MAP_MORE_ACTION_SHORTCUTS: {
47
- readonly addSibling: "add-sibling-or-child";
48
- readonly addChild: "add-child";
49
- readonly copy: "copy";
50
- readonly paste: "paste";
51
- readonly delete: "delete";
52
- };
53
- export type BoardMindMapFloatingToolbarLayoutIcon = MindMapStructureKind | 'branch-curve' | 'branch-rounded-orthogonal' | 'branch-orthogonal';
54
- export declare const BOARD_MIND_MAP_FLOATING_TOOLBAR_LAYOUT_GROUPS: readonly [{
55
- readonly key: "mind-map";
56
- readonly title: "Mind map";
57
- readonly items: readonly [{
58
- readonly value: "mindmap-horizontal";
59
- readonly icon: "mindmap-horizontal";
60
- }, {
61
- readonly value: "mindmap-vertical";
62
- readonly icon: "mindmap-vertical";
63
- }];
64
- }, {
65
- readonly key: "tree-diagram";
66
- readonly title: "Tree diagram";
67
- readonly items: readonly [{
68
- readonly value: "tree-right";
69
- readonly icon: "tree-right";
70
- }, {
71
- readonly value: "tree-left";
72
- readonly icon: "tree-left";
73
- }, {
74
- readonly value: "tree-alternate";
75
- readonly icon: "tree-alternate";
76
- }];
77
- }, {
78
- readonly key: "timeline";
79
- readonly title: "Timeline";
80
- readonly items: readonly [{
81
- readonly value: "timeline-horizontal";
82
- readonly icon: "timeline-horizontal";
83
- }, {
84
- readonly value: "timeline-vertical";
85
- readonly icon: "timeline-vertical";
86
- }];
87
- }];
88
- export declare const BOARD_MIND_MAP_FLOATING_TOOLBAR_BRANCH_GROUP: {
89
- readonly key: "branch";
90
- readonly title: "Branch";
91
- readonly items: readonly [{
92
- readonly value: "curve";
93
- readonly icon: "branch-curve";
94
- }, {
95
- readonly value: "rounded-orthogonal";
96
- readonly icon: "branch-rounded-orthogonal";
97
- }, {
98
- readonly value: "orthogonal";
99
- readonly icon: "branch-orthogonal";
100
- }];
101
- };
102
11
  interface IBoardMindMapFloatingToolbarExtraProps {
103
12
  unitId: string;
104
13
  subUnitId: string;
@@ -126,14 +35,14 @@ export declare function resolveMindMapToolbarTextState(shapeData: IShapeData | u
126
35
  verticalAlign: VerticalAlign;
127
36
  };
128
37
  export declare function resolveMindMapShortcutDisplay(shortcutService: Pick<IShortcutService, 'getShortcutDisplay'>, action?: MindMapKeyboardShortcutAction): string | undefined;
129
- export declare function handleMindMapToolbarStructureKindChange(commandService: ICommandService, params: {
38
+ export declare function handleMindMapToolbarStructureKindChange(commandService: ICommandService, runGrouped: <T>(action: () => T) => T, params: {
130
39
  unitId: string;
131
40
  subUnitId: string;
132
41
  scopeId: string;
133
42
  structureKind: MindMapStructureKind;
134
43
  branchLineType?: MindMapBranchLineType;
135
44
  }): Promise<boolean>;
136
- export declare function handleMindMapToolbarBranchLineTypeChange(commandService: ICommandService, params: {
45
+ export declare function handleMindMapToolbarBranchLineTypeChange(commandService: ICommandService, runGrouped: <T>(action: () => T) => T, params: {
137
46
  unitId: string;
138
47
  subUnitId: string;
139
48
  scopeId: string;
@@ -103,25 +103,8 @@ export declare function handleMindMapPanelImportOpml(commandService: ICommandSer
103
103
  export declare function collectMindMapPanelOutlineItems(elementData: Record<string, IBoardElementData>, scopeId: string, fallbackText?: string): IBoardMindMapPanelOutlineItem[];
104
104
  export declare function filterMindMapPanelOutlineItems(outlineItems: IBoardMindMapPanelOutlineItem[], query: string): IBoardMindMapPanelOutlineItem[];
105
105
  export declare function resolveMindMapPanelOutlineIndent(depth: number): CSSProperties;
106
- export declare function BoardMindMapPanelShell(props: {
107
- children?: ReactNode;
108
- }): import("react").JSX.Element;
109
- export declare function BoardMindMapPanelTabs(props: {
110
- items: Array<{
111
- label: string;
112
- value: BoardMindMapPanelTab;
113
- }>;
114
- value: BoardMindMapPanelTab;
115
- onChange: (tab: BoardMindMapPanelTab) => void;
116
- }): import("react").JSX.Element;
117
106
  export declare function BoardMindMapPanelSection(props: {
118
107
  title: string;
119
108
  children?: ReactNode;
120
109
  }): import("react").JSX.Element;
121
- export declare function BoardMindMapPanelEmptyState(props: {
122
- children?: ReactNode;
123
- }): import("react").JSX.Element;
124
- export declare function BoardMindMapPanelOutlineRenameButton(props: {
125
- onClick: () => void;
126
- }): import("react").JSX.Element;
127
110
  export declare function BoardMindMapPanel(props: IBoardMindMapPanelProps): import("react").JSX.Element;
@@ -0,0 +1,92 @@
1
+ import type { MindMapStructureKind } from '@univerjs-pro/boards-mind';
2
+ import type { LocaleKey } from '../locale/types';
3
+ export declare const BOARD_MIND_MAP_LINE_WIDTH_RANGE: {
4
+ min: number;
5
+ max: number;
6
+ defaultValue: number;
7
+ };
8
+ export declare const BOARD_MIND_MAP_LINE_OPACITY_RANGE: {
9
+ min: number;
10
+ max: number;
11
+ defaultValue: number;
12
+ };
13
+ export type BoardMindMapFloatingToolbarPanel = 'line' | 'more';
14
+ export type BoardMindMapFloatingToolbarPrimaryItem = {
15
+ kind: 'dropdown';
16
+ titleKey: LocaleKey;
17
+ panel: BoardMindMapFloatingToolbarPanel;
18
+ dividerBefore?: boolean;
19
+ } | {
20
+ kind: 'fontColor';
21
+ titleKey: LocaleKey;
22
+ dividerBefore?: boolean;
23
+ } | {
24
+ kind: 'typography';
25
+ titleKey: LocaleKey;
26
+ dividerBefore?: boolean;
27
+ };
28
+ export declare const BOARD_MIND_MAP_FLOATING_TOOLBAR_PRIMARY_ITEMS: BoardMindMapFloatingToolbarPrimaryItem[];
29
+ export declare const BOARD_MIND_MAP_FLOATING_TOOLBAR_PANELS: {
30
+ line: {
31
+ sections: readonly ["type", "width", "color", "opacity"];
32
+ };
33
+ more: {
34
+ actionKeys: readonly ["addSibling", "addChild", "copy", "paste", "delete"];
35
+ };
36
+ };
37
+ export declare const BOARD_MIND_MAP_MORE_ACTION_SHORTCUTS: {
38
+ readonly addSibling: "add-sibling-or-child";
39
+ readonly addChild: "add-child";
40
+ readonly copy: "copy";
41
+ readonly paste: "paste";
42
+ readonly delete: "delete";
43
+ };
44
+ export type BoardMindMapFloatingToolbarLayoutIcon = MindMapStructureKind | 'branch-curve' | 'branch-rounded-orthogonal' | 'branch-orthogonal';
45
+ export declare const BOARD_MIND_MAP_FLOATING_TOOLBAR_LAYOUT_GROUPS: readonly [{
46
+ readonly key: "mind-map";
47
+ readonly title: "Mind map";
48
+ readonly items: readonly [{
49
+ readonly value: "mindmap-horizontal";
50
+ readonly icon: "mindmap-horizontal";
51
+ }, {
52
+ readonly value: "mindmap-vertical";
53
+ readonly icon: "mindmap-vertical";
54
+ }];
55
+ }, {
56
+ readonly key: "tree-diagram";
57
+ readonly title: "Tree diagram";
58
+ readonly items: readonly [{
59
+ readonly value: "tree-right";
60
+ readonly icon: "tree-right";
61
+ }, {
62
+ readonly value: "tree-left";
63
+ readonly icon: "tree-left";
64
+ }, {
65
+ readonly value: "tree-alternate";
66
+ readonly icon: "tree-alternate";
67
+ }];
68
+ }, {
69
+ readonly key: "timeline";
70
+ readonly title: "Timeline";
71
+ readonly items: readonly [{
72
+ readonly value: "timeline-horizontal";
73
+ readonly icon: "timeline-horizontal";
74
+ }, {
75
+ readonly value: "timeline-vertical";
76
+ readonly icon: "timeline-vertical";
77
+ }];
78
+ }];
79
+ export declare const BOARD_MIND_MAP_FLOATING_TOOLBAR_BRANCH_GROUP: {
80
+ readonly key: "branch";
81
+ readonly title: "Branch";
82
+ readonly items: readonly [{
83
+ readonly value: "curve";
84
+ readonly icon: "branch-curve";
85
+ }, {
86
+ readonly value: "rounded-orthogonal";
87
+ readonly icon: "branch-rounded-orthogonal";
88
+ }, {
89
+ readonly value: "orthogonal";
90
+ readonly icon: "branch-orthogonal";
91
+ }];
92
+ };