Comments (2)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>KityMinder Example</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" >
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon">
<link rel="stylesheet" href="dist/kityminder.core.css" rel="stylesheet">
<script type="text/javascript" src="dist/kity.min.js"></script>
<script type="text/javascript" src="dist/kityminder.core.min.js"></script>
<style type="text/css">
body {
margin: 0;
padding: 0;
height: 100%;
}
#minder-container {
position: absolute;
border: 1px solid #ccc;
left: 10px;
top: 10px;
bottom: 10px;
right: 10px;
}
</style>
</head>
<body>
<div id="minder-container"></div>
</body>
<script type="text/javascript">
var glJson = {
"root": {
"data": {
"text": "test111"
},
"children": [
{ "data": { "text": "新闻\nsrc/module/node.j"}},
{ "data": { "text": "网页"} },
{ "data": { "text": "贴吧"} },
{ "data": { "text": "知道"} },
{ "data": { "text": "音乐" } },
{ "data": { "text": "图片"} },
{ "data": { "text": "视频"} },
{ "data": { "text": "地图" } },
{ "data": { "text": "百科","expandState":"collapse"}}
]
},
"template":"default"
};
var km = new kityminder.Minder({
renderTo: '#minder-container'
});
km.importJson(glJson);
km.execCommand('hand');
</script>
</html>
文档确实不清晰,demo可以看这个
from kityminder-core.
百度的产品~ 百度的开源产品!!!我搞了2个小时 居然跑不出来! 如果文档不齐全请不要开源!
应该是没找对方法吧。
其实很容易的的,安装 node 环境,然后运行 npm 命令就能运行了。
from kityminder-core.
Related Issues (20)
- 布局错乱
- 您好,请问有禁止拖拽的命令吗? HOT 2
- 请问如何将脑图定位到最左边 HOT 1
- svg text标签不同famliy文字位置改变,根据平台和设备处理还是
- 缺少bower.json文件 HOT 1
- 插入图片后,立即获取数据,获得的是老数据
- 调用接口select()选中节点,无效
- 无法导出png格式和svg格式
- 这个库是不是已经不维护了
- 火狐浏览器兼容性问题
- 这是github上最强大的开源脑图了吧,为什么不开发了 HOT 2
- 导出xmind文件只有标题但不显示注释啊……什么时候能修复
- 放入容器中view_pointer平移的计算位置不准确
- 不支持vue3 HOT 1
- module destory 未实现 clearSelect
- 节点粘贴前面有4个空格的字符(如:“ aa”)或报错
- 长一些的文本会遮挡
- 默认shortcut有哪些呢?怎么自定义shortcut呢? HOT 1
- 脑图节点拖动后的位置信息怎么保存,或者如何自定义节点位置
- 如何自定义主题样式
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kityminder-core.