hizzgdev / jsmind Goto Github PK
View Code? Open in Web Editor NEWa mind mapping library built by javascript
Home Page: http://hizzgdev.github.io/jsmind/
License: Other
a mind mapping library built by javascript
Home Page: http://hizzgdev.github.io/jsmind/
License: Other
https://github.com/hizzgdev/jsmind/blob/master/docs/zh/3.operation.md#32-查找节点
need to add expand
property
昨天提到需要远程加载freemind示范,结果我后来追踪了一下代码,发现是jsMind.util.ajax.request 的实现有兼容性问题造成的,在实现中默认预设了远程获取数据只能是json类的,而不能兼容xml,所以造成这样的问题,解决办法是把var data = eval('('+xhr.responseText+')');
改为var data = xhr.responseText;
即可,这样修改后,远程加载json数据需要在自定义的回调函数中进行数据处理,比如例子中“2_features.html”的远程加载“open remote”的“"open_ajax()”的函数实现中需要把_jm.show(mind);
改为_jm.show( eval('('+mind+')'));
,这样兼容性更好
现在仅支持水平左右展示,想知道何时会支持垂直上下展示?很有业务需求都是垂直展示的
able to read a .mm file, and display the map.
able to generate data in freemind format
These tools are necessary if the mind map will be large more.
我按照示例进行实验,发现好像需要指定container高度,然后才能正常绘制脑图。
能否做到高度自适应呢?即container的高度随着脑图实际大小自动调整。
html 模式下 保存图片 节点内容显示的是html代码
我是想问想 我在网上看的demo好像是用svg的居多 想问下这块使用svg和canvas有什么区别吗?
请问咱们关闭节点时候能否关闭除二级节点外所有节点的方法?
我发现循环关闭节点很卡,谢谢了。
在点击打开节点的加号时,能否在这里添加方法使得能够异步加载数据。有的时候数据量非常大想在点击打开节点的时候载入数据
可以实现选择多个节点然后获取对应的文本内容吗?
请问有没有计划实现xmind中那种给节点添加批注的功能呢?
或者简单点,单纯显示批注的功能。
标准h5文档类型声明标签<!DOCTYPE html>
存在时,无法绘制
在ie8下显示没有连接线,ie9之后的浏览器就正常,是不是ie8的兼容性问题,demo在ie8浏览器下也无法打开
我尝试了几次,利用freemind格式的文件(利用xmind输出的)都不能正常显示。
利用的2_features.html 页面,在本地或者在你的页面 http://hizzgdev.github.io/jsmind/example/2_features.html 上都是类似的问题。
已经确认mind数据加载成功,单步调试可以看见文件被正确加载,但显示不出来。
下面是测试用的数据
tt.zip
建议添加右键添加菜单,目前在我的电脑里没有del键,无法对节点进行删除?是否有其它方式删除?
有没有可以控制节点默认展开还是关闭的API
请问在jsmind中能否支持放大和缩小呢?在不改变整个网页大小的前提下。
因为我是想将jsmind作为页面的一个局部进行展示,但是脑图太大的时候翻阅有点麻烦。
能不能提供一个刷新全部节点的方法?
Hi,
I would like implement a zoom in/zoom out feature.
One alternative is change the font size in the nodes (with the limitation that do not change the image nodes size).
As a experiment, I added the following method in features_2.html and works
function zoom_out() {
var localCss = document.getElementById('localStyle');
if (localCss == null) {
localCss = document.createElement('style');
localCss.id = 'localStyle';
localCss.title = 'localStyle';
localCss.type = 'text/css';
localCss.innerHTML = "jmnode {font:10px Arial !important}";
document.head.appendChild(localCss);
}
_jm.show(_jm.get_data());
}
Obviously a real solution is more complex, we need define the default font size, and increase/decrese the size, and/or other values, this is just a proof of concept.
Before start to code this, I would like to know if is a feature that would be accepted, and if this approach looks right.
加入子dom,target就不是node了,所以不是这么绑定的,
在拖动节点的时候遇到一个问题 选中之后 进行拖动的时候 鼠标未变成可移动的那个样式,也无法进行拖动。再进行刷新一下就又可以拖动了。
在IE下同纵向节点要是大于140线就没了,
横着是没问题的,怀疑是高度问题。
感谢您开源的jsmind强大功能,只是有IE和火狐的我说的我问题。
Hello,
would it be possible to add different background colors per label?
E.g.
{"id":"root", "isroot":true, "topic":"jsMind","background": "#ffff00"},
{"id":"sub1", "parentid":"root", "topic":"sub1","background": "#ff0000"}
Thanks
JSmind很好,对于思维导图等的展示很方便,不过希望增加对节点链接属性的支持,对有链接属性的节点展示一个特定的图标,并且可以点击打开链接。
如果节点中包含有html内容,html内容不能正常显示
with this feature, you can review the mindmap step-by-step.
jsmind.js 的1772行是定义的_layout_offset_subnodes_height:function(nodes)
,其实现代码中存在大量无效代码,其中从1774行至1811行的代码都在return之后,是不能执行的,是否是忘记注释掉了?
引入bootstrap3
,选中节点字体颜色变为白色(文字消失),原因是bootstrap primary
定义字体颜色为白色。
我的解决办法是第2172
行加入
this.e_editor.style.color = 'black';
这样修改可能并不好,仅作提醒
例子代码中有对json数据格式的远程加载示范,没有对freemind格式的。
例子中的freemind格式加载采用的是file对象,这和远程加载不同,我参照对json尝试对freemind进行加载,老是报错。我加载freemind的代码是:
jsMind.util.ajax.get("test.mm",function(freemind_data){
var options = {
container:'jsmind_container',
theme:'greensea',
editable:false
}
var mind={
"meta":{
"name":"testmm",
"author":"xdsnet",
"version":"1.0.0"
},
"format":"freemind",
"data":freemind_data
};
jsMind.show(options,mind);
}```
比如:初始化完成,内容被更改,新增节点,修改节点,删除节点等等
首先非常感谢作者的辛勤劳动!我这里有3个小问题想请教一下:
谢谢~
你好,非常感谢你开源的jsMind,对我们项目帮助很大。目前有一个小小的不足和建议,那就是jsMind应该提供对事件的支持。例如:选中事件,拖曳事件,节点改变事件等等。我想这也是jsMind能够更大强大的一个开发方向。
最后谢谢你开发并开源这么好的产品。
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.