zhuifengshen / xmind Goto Github PK
View Code? Open in Web Editor NEWXMind思维导图创建、解析、更新的一站式解决方案(Python)!
Home Page: https://pypi.org/project/XMind/
License: MIT License
XMind思维导图创建、解析、更新的一站式解决方案(Python)!
Home Page: https://pypi.org/project/XMind/
License: MIT License
微信号 17610086125 希望能拉我进群 谢谢~~
毕竟人家是商业软件,虽然.xmind文件相当于是开放给大家看了
1,怎么设置线条的样式(如曲线,折线),颜色?
2,怎么设置subTopic的位置?如,一个父topic,有两个子topic,怎么让两个子topic左、右各一个。
如题,请教下如何把脑图另存为图片?
能否对每个节点设置颜色?
软件 xmind 8版本
100多KB的时候打开要等两三分钟才打开
数据量多一点
2M的文件等了一个小时还打不开。
'WorkbookDocument' object has no attribute 'getData'
"id": "428akmkh9a0tog6c91qj995qdl",
"link": null,
"title": "You can try using XMind 8 Update 3 or later version to open",
"note": null,
"label": null,
"comment": null,
"markers": []
removeChild方法直接调用会报错, 相关Issue, xmindltd/xmind-sdk-python#2
调用下面的remove_node
方法, 然后再save
, topic就会被删除
例如: 小明-小红, 想要删除小红, 调用remove_node(小红)
def remove_topic(topic_remove, topic_parent=None):
"""
删除Topic
Args:
topic_remove: 想要删除的topic
topic_remove: 想要删除的topic的父topic, 使用方法1时会用到, 方法2不需要
"""
# 方法1
# 当直接调用ElementTopic中的removeChild方法, 实际调用的是父类Element的removeChild
#
# def removeChild(self, child_node):
# child_node = child_node.getImplementation()
# self._node.removeChild(child_node) # 这里的self._node是xml.dom.minidom.Node类型
#
# 所以关键方法就是xml.dom.minidom.Node中的removeChild
# def removeChild(self, oldChild):
# try:
# self.childNodes.remove(oldChild) # self.childNodes是list, 所以核心就是list删除一个元素
# except ValueError:
# raise xml.dom.NotFoundErr()
#
# 所以需要找父节点的childNodes, 和子节点中的node, 只要子节点的node在父节点childNodes中, 删除即可
#
# 找父节点的childNodes, 下面的例子是, 一个父节点带一个子节点
# topic_parent._node, <DOM Element: topic at 0x7f85eb904310>
# topic_parent._node.childNodes, [<DOM Element: title at 0x7f85eb9043a0>,
# <DOM Element: children at 0x7f85eb904430>]
# topic_parent._node.childNodes[1], <DOM Element: children at 0x7f85eb904430>
# topic_parent._node.childNodes[1].childNodes, [<DOM Element: topics at 0x7f85eb9044c0>]
# topic_parent._node.childNodes[1].childNodes[0], <DOM Element: topics at 0x7f85eb9044c0>
# topic_holding._node.childNodes[1].childNodes[0].childNodes, [<DOM Element: topic at 0x7f85eb904550>]
#
# 找子节点的node
# topic_remove._node, <DOM Element: topic at 0x7f85eb904550>
#
# 然后发现topic_remove._node的id和topic_holding._node.childNodes[1].childNodes[0].childNodes[0]的id是一样的
# 调用topic_parent._node.childNodes[1].childNodes[0].removeChild(topic_remove._node), 就从父节点中删除了子节点
# 方法1的最终结果:
# topic_parent._node.childNodes[1].childNodes[0].removeChild(topic_remove._node)
# 方法2: 更简单
topic_remove.getParentNode().removeChild(topic_remove._node)
This file can not be opened normally, please do not modify and save, otherwise the contents will be permanently lost
You can try using XMind 8 Update 3 or later version to open
导出的文件无法使用xmind2020打开,详细信息:
not a valid XMind File_
这个原因是什么呢,我想去做修改,但是无从下手~
may I know why https://github.com/xmindltd/xmind-sdk-python is archived?
支持xmind2020或者xmind2022版本转化为Excel吗?
xmind改成zip文件,
解压后 在目录内创建 META-INF文件夹
META-INF文件夹内创建 manifest.xml文件
文件内容:
重新打包后zip文件 然后后缀改成 xmind
具体代码 自己去实现吧
能否解析xmind中图片:
我这边xmind文件是包含图片的,目前遇到图片的节点,解析到的数据为空,能否解析xmind中的图片然后保存到json数据中。
或者告诉一下,怎么做能自己处理一下。
谢谢!
XMind-ZEN-Update-2019-for-Windows-64bit-9.1.3.201812101752.exe
我用的win10, python3
Traceback (most recent call last):
File "xmind.py", line 1, in
import xmind
File "/home/user/tool-package/xmind.py", line 48, in
gen_my_xmind_file()
File "/home/user/tool-package/xmind.py", line 4, in gen_my_xmind_file
workbook = xmind.load("my.xmind")
AttributeError: module 'xmind' has no attribute 'load'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.