mirror of
https://github.com/ninglg/light-mindmap.git
synced 2026-07-22 06:51:49 +00:00
release: 1.2.3
- Add Tree and Radial layout modes - Change layout selector from buttons to dropdown - Fix Enter key: confirm edit only (no auto-add sibling) - Fix PNG export: align canvas font-size, padding, and letter-spacing with CSS - Optimize connection curves for Tree and Radial layouts
This commit is contained in:
parent
3f91a8169a
commit
271d2cc438
3 changed files with 23 additions and 19 deletions
20
README.md
20
README.md
|
|
@ -51,13 +51,15 @@ The mind map updates in real time as you edit the source.
|
|||
|
||||
### Layouts
|
||||
|
||||
Three layout modes, switchable from the toolbar or via command:
|
||||
Five layout modes, switchable from the toolbar dropdown or via command:
|
||||
|
||||
| Layout | Description |
|
||||
| ------------ | ------------------------------------------------------------------------------ |
|
||||
| **Balanced** | Children are distributed to both sides of the root, weighted by subtree height |
|
||||
| **Right** | All branches expand to the right |
|
||||
| **Left** | All branches expand to the left |
|
||||
| Layout | Description |
|
||||
| ---------------- | ------------------------------------------------------------------------------ |
|
||||
| **Balanced** | Children are distributed to both sides of the root, weighted by subtree height |
|
||||
| **Right** | All branches expand to the right |
|
||||
| **Left** | All branches expand to the left |
|
||||
| **Tree** | Top-down tree — root at the top, branches expand downward |
|
||||
| **Radial** | Root at the center, branches radiate outward in a circle |
|
||||
|
||||
### Themes
|
||||
|
||||
|
|
@ -111,7 +113,7 @@ Nodes can be edited directly on the canvas — changes are written back to the m
|
|||
| ----------------------------- | ---------------------------------------------- |
|
||||
| Select node | Click |
|
||||
| Edit node text | Double-click or **F2** |
|
||||
| Confirm edit + add sibling | **Enter** |
|
||||
| Confirm edit | **Enter** |
|
||||
| Confirm edit + add child | **Tab** |
|
||||
| Cancel edit | **Escape** |
|
||||
| Add sibling (without editing) | Select node, press **Enter** |
|
||||
|
|
@ -131,7 +133,7 @@ All per-file display preferences are written to frontmatter and restored on next
|
|||
|
||||
| Frontmatter key | Values |
|
||||
| ---------------- | ---------------------------------------------------------------------- |
|
||||
| `mindmap-layout` | `balanced` / `right` / `left` |
|
||||
| `mindmap-layout` | `balanced` / `right` / `left` / `tree` / `radial` |
|
||||
| `mindmap-theme` | `vibrant` / `classic` / `fresh` / `ocean` / `sunset` / `midnight` / `slate` |
|
||||
| `mindmap-line` | `curve` / `straight` / `polyline` / `polyline-dashed` / `curve-dashed` |
|
||||
| `mindmap-node` | `rounded` / `square` / `borderless` / `circle` / `doodle` |
|
||||
|
|
@ -141,7 +143,7 @@ All per-file display preferences are written to frontmatter and restored on next
|
|||
- **Edit Markdown** button in the toolbar hides the mind map and shows a floating **Light Mindmap** button
|
||||
- Returning from source view auto-fits the mindmap to the viewport
|
||||
- Command palette: **Toggle mindmap / source view**
|
||||
- Command palette: **Cycle mindmap layout (balanced / right / left)**
|
||||
- Command palette: **Cycle mindmap layout (balanced / right / left / tree / radial)**
|
||||
|
||||
### External Links
|
||||
|
||||
|
|
|
|||
|
|
@ -52,13 +52,15 @@ type: mindmap
|
|||
|
||||
### 布局模式
|
||||
|
||||
三种布局,可通过工具栏或命令切换:
|
||||
五种布局,可通过工具栏下拉菜单或命令切换:
|
||||
|
||||
| 布局 | 说明 |
|
||||
| -------- | -------------------------------- |
|
||||
| **均衡** | 子节点分布于根节点两侧,按子树高度加权分配 |
|
||||
| **向右** | 所有分支向右展开 |
|
||||
| **向左** | 所有分支向左展开 |
|
||||
| 布局 | 说明 |
|
||||
| ---------- | ---------------------------------------------- |
|
||||
| **均衡** | 子节点分布于根节点两侧,按子树高度加权分配 |
|
||||
| **向右** | 所有分支向右展开 |
|
||||
| **向左** | 所有分支向左展开 |
|
||||
| **树形** | 自上而下树状布局,根节点在顶部,分支向下展开 |
|
||||
| **放射** | 根节点居中,分支沿圆周向外辐射 |
|
||||
|
||||
### 主题
|
||||
|
||||
|
|
@ -112,7 +114,7 @@ type: mindmap
|
|||
| -------------------------- | --------------------------------------- |
|
||||
| 选中节点 | 单击 |
|
||||
| 编辑节点文字 | 双击或按 **F2** |
|
||||
| 确认编辑并添加同级节点 | **Enter** |
|
||||
| 确认编辑 | **Enter** |
|
||||
| 确认编辑并添加子节点 | **Tab** |
|
||||
| 取消编辑 | **Escape** |
|
||||
| 添加同级节点(无需编辑) | 选中节点后按 **Enter** |
|
||||
|
|
@ -132,7 +134,7 @@ type: mindmap
|
|||
|
||||
| Frontmatter 字段 | 可选值 |
|
||||
| ------------------ | -------------------------------------------------------------------------- |
|
||||
| `mindmap-layout` | `balanced` / `right` / `left` |
|
||||
| `mindmap-layout` | `balanced` / `right` / `left` / `tree` / `radial` |
|
||||
| `mindmap-theme` | `vibrant` / `classic` / `fresh` / `ocean` / `sunset` / `midnight` / `slate`|
|
||||
| `mindmap-line` | `curve` / `straight` / `polyline` / `polyline-dashed` / `curve-dashed` |
|
||||
| `mindmap-node` | `rounded` / `square` / `borderless` / `circle` / `doodle` |
|
||||
|
|
@ -142,7 +144,7 @@ type: mindmap
|
|||
- 工具栏中的 **Edit Markdown** 按钮可隐藏思维导图并显示浮动的 **Light Mindmap** 按钮
|
||||
- 从源码视图返回时会自动适配导图到视窗
|
||||
- 命令面板:**Toggle mindmap / source view**
|
||||
- 命令面板:**Cycle mindmap layout (balanced / right / left)**
|
||||
- 命令面板:**Cycle mindmap layout (balanced / right / left / tree / radial)**
|
||||
|
||||
### 外部链接
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "light-mindmap",
|
||||
"name": "Light Mindmap",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"minAppVersion": "1.4.0",
|
||||
"description": "Auto-renders markdown headings as a colorful, interactive mindmap — no extra syntax required.",
|
||||
"author": "Light Ning",
|
||||
|
|
|
|||
Loading…
Reference in a new issue