Loading...
Loading...
Compare original and translation side by side
.xmind.xmindpathsheetsnode <skill-dir>/scripts/create_xmind.mjs < /tmp/xmind_input.json<skill-dir>pathsheetsnode <skill-dir>/scripts/create_xmind.mjs < /tmp/xmind_input.json<skill-dir>{
"path": "/Users/user/Desktop/my_mindmap.xmind",
"sheets": [
{
"title": "Sheet 1",
"rootTopic": {
"title": "Central Topic",
"children": [
{
"title": "Branch 1",
"notes": "Plain text note",
"children": [
{ "title": "Sub-topic A" },
{ "title": "Sub-topic B" }
]
}
]
},
"relationships": [
{ "sourceTitle": "Sub-topic A", "targetTitle": "Sub-topic B", "title": "related" }
]
}
]
}{
"path": "/Users/user/Desktop/my_mindmap.xmind",
"sheets": [
{
"title": "Sheet 1",
"rootTopic": {
"title": "Central Topic",
"children": [
{
"title": "Branch 1",
"notes": "Plain text note",
"children": [
{ "title": "Sub-topic A" },
{ "title": "Sub-topic B" }
]
}
]
},
"relationships": [
{ "sourceTitle": "Sub-topic A", "targetTitle": "Sub-topic B", "title": "related" }
]
}
]
}| Field | Type | Description |
|---|---|---|
| string (required) | Topic title |
| array of topics | Child topics |
| string or | Notes. HTML supports: |
| string | External URL link |
| string | Absolute path to a file to attach (embedded in the .xmind). Mutually exclusive with |
| string | Title of another topic to link to (internal |
| string[] | Tags/labels |
| string[] | Marker IDs: |
| string[] | Callout text bubbles |
| | Visual grouping of children. Range: |
| | Summary topics spanning children ranges |
| string | Layout (see below) |
| string | Topic shape (see shapes below) |
| | Absolute position (only for detached topics in free-positioning sheets) |
| 字段 | 类型 | 说明 |
|---|---|---|
| 字符串(必填) | 主题标题 |
| 主题数组 | 子主题 |
| 字符串或 | 备注。HTML支持: |
| 字符串 | 外部URL链接 |
| 字符串 | 要附加的文件的绝对路径(嵌入到.xmind文件中)。与 |
| 字符串 | 要链接到的另一个主题的标题(内部 |
| 字符串数组 | 标签/标记 |
| 字符串数组 | 标记ID: |
| 字符串数组 | 标注文本气泡 |
| | 子主题的可视化分组。范围格式: |
| | 覆盖子主题范围的汇总主题 |
| 字符串 | 布局(见下文) |
| 字符串 | 主题形状(见下文形状列表) |
| | 绝对位置(仅适用于自由定位工作表中的独立主题) |
org.xmind.topicShape.roundedRectorg.xmind.topicShape.diamondorg.xmind.topicShape.ellipserectorg.xmind.topicShape.rectorg.xmind.topicShape.underlineorg.xmind.topicShape.circleorg.xmind.topicShape.parallelogramorg.xmind.topicShape.roundedRectorg.xmind.topicShape.diamondorg.xmind.topicShape.ellipserectorg.xmind.topicShape.rectorg.xmind.topicShape.underlineorg.xmind.topicShape.circleorg.xmind.topicShape.parallelogramorg.xmind.ui.map.clockwiseorg.xmind.ui.map.unbalancedorg.xmind.ui.logic.rightorg.xmind.ui.org-chart.downorg.xmind.ui.tree.rightorg.xmind.ui.fishbone.leftHeadedorg.xmind.ui.timeline.horizontalorg.xmind.ui.map.clockwiseorg.xmind.ui.map.unbalancedorg.xmind.ui.logic.rightorg.xmind.ui.org-chart.downorg.xmind.ui.tree.rightorg.xmind.ui.fishbone.leftHeadedorg.xmind.ui.timeline.horizontaltaskStatus"todo""done"| Field | Type | Description |
|---|---|---|
| number 0.0-1.0 | Completion progress |
| number 1-9 | Priority (1=highest) |
| ISO 8601 string | Start date, e.g. |
| ISO 8601 string | Due date |
| number | Duration in days (preferred for relative planning) |
| array | |
durationDaysdependenciesstartDatedueDatetaskStatus"todo""done"| 字段 | 类型 | 说明 |
|---|---|---|
| 数字(0.0-1.0) | 完成进度 |
| 数字(1-9) | 优先级(1=最高) |
| ISO 8601格式字符串 | 开始日期,例如 |
| ISO 8601格式字符串 | 截止日期 |
| 数字 | 持续天数(相对规划首选) |
| 数组 | |
durationDaysdependenciesstartDatedueDate| Field | Type | Description |
|---|---|---|
| string (required) | Sheet title |
| topic (required) | Root topic |
| array | |
| array of topics | Free-floating topics (require |
| boolean | Enable free topic positioning (for logic/flow diagrams) |
| 字段 | 类型 | 说明 |
|---|---|---|
| 字符串(必填) | 工作表标题 |
| 主题(必填) | 根主题 |
| 数组 | |
| 主题数组 | 自由浮动主题(需要开启 |
| 布尔值 | 启用主题自由定位(用于逻辑/流程图) |
{
"path": "/tmp/flowchart.xmind",
"sheets": [{
"title": "Algorithm",
"freePositioning": true,
"rootTopic": {
"title": "START",
"shape": "org.xmind.topicShape.ellipserect",
"structureClass": "org.xmind.ui.map.clockwise"
},
"detachedTopics": [
{"title": "IS X > 0?", "position": {"x": 0, "y": 130}, "shape": "org.xmind.topicShape.diamond"},
{"title": "PRINT YES", "position": {"x": 200, "y": 130}},
{"title": "PRINT NO", "position": {"x": -200, "y": 130}},
{"title": "END", "position": {"x": 0, "y": 260}, "shape": "org.xmind.topicShape.ellipserect"}
],
"relationships": [
{"sourceTitle": "START", "targetTitle": "IS X > 0?", "shape": "org.xmind.relationshipShape.straight"},
{"sourceTitle": "IS X > 0?", "targetTitle": "PRINT YES", "title": "YES", "shape": "org.xmind.relationshipShape.straight"},
{"sourceTitle": "IS X > 0?", "targetTitle": "PRINT NO", "title": "NO", "shape": "org.xmind.relationshipShape.straight"},
{"sourceTitle": "PRINT YES", "targetTitle": "END", "shape": "org.xmind.relationshipShape.straight"},
{"sourceTitle": "PRINT NO", "targetTitle": "END", "shape": "org.xmind.relationshipShape.straight"}
]
}]
}"org.xmind.relationshipShape.straight"{
"path": "/tmp/flowchart.xmind",
"sheets": [{
"title": "Algorithm",
"freePositioning": true,
"rootTopic": {
"title": "START",
"shape": "org.xmind.topicShape.ellipserect",
"structureClass": "org.xmind.ui.map.clockwise"
},
"detachedTopics": [
{"title": "IS X > 0?", "position": {"x": 0, "y": 130}, "shape": "org.xmind.topicShape.diamond"},
{"title": "PRINT YES", "position": {"x": 200, "y": 130}},
{"title": "PRINT NO", "position": {"x": -200, "y": 130}},
{"title": "END", "position": {"x": 0, "y": 260}, "shape": "org.xmind.topicShape.ellipserect"}
],
"relationships": [
{"sourceTitle": "START", "targetTitle": "IS X > 0?", "shape": "org.xmind.relationshipShape.straight"},
{"sourceTitle": "IS X > 0?", "targetTitle": "PRINT YES", "title": "YES", "shape": "org.xmind.relationshipShape.straight"},
{"sourceTitle": "IS X > 0?", "targetTitle": "PRINT NO", "title": "NO", "shape": "org.xmind.relationshipShape.straight"},
{"sourceTitle": "PRINT YES", "targetTitle": "END", "shape": "org.xmind.relationshipShape.straight"},
{"sourceTitle": "PRINT NO", "targetTitle": "END", "shape": "org.xmind.relationshipShape.straight"}
]
}]
}"org.xmind.relationshipShape.straight"undefinedundefined
Then read `/tmp/extracted.txt` to build the mind map.
然后读取`/tmp/extracted.txt`来构建思维导图。.xmind<strong><u><ul><ol><li><br><code>linkToTopic<strong><ul><li><br>.xmind<strong><u><ul><ol><li><br><code>linkToTopic<strong><ul><li><br>