Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【请教】请问小书匠是怎么实现如此智能化的思维导图生成方式? #1720

Open
BluerAngala opened this issue Feb 14, 2024 · 1 comment

Comments

@BluerAngala
Copy link

image

您好,我是个业余的编程菜鸟,同时也是您的粉丝,已经follow你很久了。有个问题下冒昧请教您,最近我想将以前的markdown文章转化为思维导图,使用的是node js,折腾了很久,效果很一般。部分文章标题层级太多,通过markmap生成的图片太丑,而且无法生成png、jpg等常用图片格式,我想像小书匠这样设计一个层级深度来生成图片,不知道您能否指点一下?

新年大吉,膜拜大佬!

@suziwen
Copy link
Owner

suziwen commented Feb 14, 2024

感谢支持,龙年大吉。

这个我是自己写的,布局算法用了阿里蚂蚁的这个库 antvis/hierarchy: Layout algorithms for visualizing hierarchical data. , 还参考了这个库 Klortho/d3-flextree: Flexible tree layout algorithm that allows for variable node sizes

这种思维导图,结点多了,都会变得很乱,想要更合理效果的话,还是要手动二次调整。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants