flow-mindmap 0.5.12 → 0.5.14

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.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  A modern, minimalist mind mapping tool — xmind-style, embeddable as a Vue 3 component.
4
4
 
5
5
  <p align="center">
6
- <img src="https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.11/docs/screenshots/overview.png" alt="flow-mindmap overview" width="780" />
6
+ <img src="https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.13/docs/screenshots/overview.png" alt="flow-mindmap overview" width="780" />
7
7
  </p>
8
8
 
9
9
  ## 特性
@@ -24,13 +24,13 @@ A modern, minimalist mind mapping tool — xmind-style, embeddable as a Vue 3 co
24
24
 
25
25
  | mindmap(默认) | tree(右向树) | org(向下组织结构) |
26
26
  | :-: | :-: | :-: |
27
- | ![](https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.11/docs/screenshots/layout-mindmap.png) | ![](https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.11/docs/screenshots/layout-tree.png) | ![](https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.11/docs/screenshots/layout-org.png) |
27
+ | ![](https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.13/docs/screenshots/layout-mindmap.png) | ![](https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.13/docs/screenshots/layout-tree.png) | ![](https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.13/docs/screenshots/layout-org.png) |
28
28
 
29
29
  ### 可调画板
30
30
 
31
31
  右键画布 → 设置 打开右侧抽屉,所有视觉项实时生效:
32
32
 
33
- ![settings panel](https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.11/docs/screenshots/settings-panel.png)
33
+ ![settings panel](https://cdn.jsdelivr.net/gh/xz333221/flow-mindmap@v0.5.13/docs/screenshots/settings-panel.png)
34
34
 
35
35
 
36
36
  ## 安装
@@ -98,6 +98,10 @@ export interface LayoutOptions {
98
98
  * min-width). The internal tier table is tuned for 14px; values
99
99
  * scale linearly. Default 14. */
100
100
  baseFontSize?: number;
101
+ /** Extra vertical gap (px) between first-level branches (children
102
+ * of the root). Adds to the base V_GAP so each top-level subtree
103
+ * gets more breathing room. Default 0 (no extra gap). */
104
+ branchGap?: number;
101
105
  /**
102
106
  * When true, layout() leaves each LayoutNode's existing x/y in
103
107
  * place — it still does the doLayout split / redirect / stack