jsmind 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -7
- package/docs/en/2.options.md +9 -2
- package/docs/zh/2.options.md +5 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# jsMind
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/jsmind)
|
|
3
4
|

|
|
4
5
|
|
|
5
6
|
jsMind 是一个显示/编辑思维导图的纯 javascript 类库,其基于 html5 canvas (和 svg) 进行设计。jsMind 以 BSD 协议开源,在此基础上你可以在你的项目上任意使用。你可以在此浏览[适用于 jsMind 的许可协议][3]。
|
|
@@ -24,7 +25,7 @@ jsMind is mind map library built by javascript, it base on html5 canvas and svg.
|
|
|
24
25
|
<script type="text/javascript">
|
|
25
26
|
var mind = {
|
|
26
27
|
// 3 data formats were supported ...
|
|
27
|
-
// see
|
|
28
|
+
// see documents for more information
|
|
28
29
|
};
|
|
29
30
|
var options = {
|
|
30
31
|
container: 'jsmind_container',
|
|
@@ -40,14 +41,17 @@ jsMind is mind map library built by javascript, it base on html5 canvas and svg.
|
|
|
40
41
|
|
|
41
42
|
## Links
|
|
42
43
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- npm : <https://www.npmjs.com/package/jsmind>
|
|
44
|
+
- Project Home :
|
|
45
|
+
- on Github: <https://github.com/hizzgdev/jsmind>
|
|
46
|
+
- on npm : <https://www.npmjs.com/package/jsmind>
|
|
47
|
+
- Apps :
|
|
48
|
+
- <https://jsmind.online>
|
|
49
|
+
- <https://jsmind.sinaapp.com>
|
|
46
50
|
- Demo :
|
|
47
51
|
- <http://hizzgdev.github.io/jsmind/example/1_basic.html>
|
|
48
52
|
- <http://hizzgdev.github.io/jsmind/example/2_features.html>
|
|
49
53
|
- ~~<http://hizzgdev.github.io/jsmind/example/3_mathjax.html>~~
|
|
50
|
-
-
|
|
54
|
+
- Document :
|
|
51
55
|
- [简体中文][1]
|
|
52
56
|
- [English][2]
|
|
53
57
|
- Wiki :
|
|
@@ -60,8 +64,8 @@ jsMind is mind map library built by javascript, it base on html5 canvas and svg.
|
|
|
60
64
|
## ES6 Pilot Version
|
|
61
65
|
|
|
62
66
|
- 目前处于测试阶段,欢迎试用找 bug, ES6 代码位于 `/src`, 可运行于浏览器的 js 文件位于 `/es6`
|
|
63
|
-
- Currently it's in the testing stage,
|
|
64
|
-
- Demo <http://hizzgdev.github.io/jsmind/example/2_features_es6.html>
|
|
67
|
+
- Currently it's in the testing stage, welcome to trial and dig bugs, the ES6 code is located in `/src`, and the js files that can run in browsers are located in `/es6`
|
|
68
|
+
- Demo: <http://hizzgdev.github.io/jsmind/example/2_features_es6.html>
|
|
65
69
|
|
|
66
70
|
## Maintainer
|
|
67
71
|
|
package/docs/en/2.options.md
CHANGED
|
@@ -87,13 +87,20 @@ These options are described in more detail below.
|
|
|
87
87
|
|
|
88
88
|
> Specify the theme name of jsMind. (look in jsMind.css)
|
|
89
89
|
|
|
90
|
-
**mode** : (string)
|
|
90
|
+
**mode** : (string) layout mode
|
|
91
91
|
|
|
92
|
-
> jsMind
|
|
92
|
+
> When adding a first-level child node to the mind map, jsMind will decide which side to place the node based on this option. 2 layout modes are currently supported::
|
|
93
93
|
|
|
94
94
|
> * full - child nodes are dynamically distributed on both sides of the root node [default]
|
|
95
95
|
> * side - child nodes are distributed only to the right of the root node
|
|
96
96
|
|
|
97
|
+
> 当往脑图里添加一级子节点时,jsMind 将根据此参数决定把节点放置在哪一侧。目前支持两种布局模式:
|
|
98
|
+
|
|
99
|
+
> * full - 子节点动态分布在根节点两侧 [默认值]
|
|
100
|
+
> * side - 子节点只分布在根节点右侧
|
|
101
|
+
|
|
102
|
+
> Note that this option only takes effect when adding nodes (`jsMind.add_node(...)`)
|
|
103
|
+
|
|
97
104
|
**support_html** : (bool) Does it support HTML elements in nodes?
|
|
98
105
|
|
|
99
106
|
> The default value of this parameter is true, meaning that it allows HTML code to be used in the node's header, and you can even insert a table `<table>` in the node's header if you wish. If you want only plain text in the title, set this parameter to false .
|
package/docs/zh/2.options.md
CHANGED
|
@@ -27,7 +27,7 @@ options = {
|
|
|
27
27
|
container : '', // [必选] 容器的ID
|
|
28
28
|
editable : false, // 是否启用编辑
|
|
29
29
|
theme : null, // 主题
|
|
30
|
-
mode :'full', //
|
|
30
|
+
mode :'full', // 布局模式
|
|
31
31
|
support_html : true, // 是否支持节点里的HTML元素
|
|
32
32
|
log_level: 'info', // 日志级别
|
|
33
33
|
view:{
|
|
@@ -85,13 +85,15 @@ options = {
|
|
|
85
85
|
|
|
86
86
|
> 指定 jsMind 的主题名。
|
|
87
87
|
|
|
88
|
-
**mode** : (string)
|
|
88
|
+
**mode** : (string) 布局模式
|
|
89
89
|
|
|
90
|
-
> jsMind
|
|
90
|
+
> 当往脑图里添加一级子节点时,jsMind 将根据此参数决定把节点放置在哪一侧。目前支持两种布局模式:
|
|
91
91
|
|
|
92
92
|
> * full - 子节点动态分布在根节点两侧 [默认值]
|
|
93
93
|
> * side - 子节点只分布在根节点右侧
|
|
94
94
|
|
|
95
|
+
> 需要注意的是,此参数只在添加节点时(`jsMind.add_node(...)`)生效。
|
|
96
|
+
|
|
95
97
|
**support_html** : (bool) 是否支持节点里的HTML元素
|
|
96
98
|
|
|
97
99
|
> 该参数的默认值为 true ,含义为允许在节点的标题中使用 HTML 代码,如果你愿意,你甚至可以在节点标题里插入一个表格`<table>`。如果你希望标题中只有纯文本,请将该参数设为 false 。
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsmind",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "jsMind is a pure javascript library for mindmap, it base on html5 canvas. jsMind was released under BSD license, you can embed it in any project, if only you observe the license.",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "es6/jsmind.js",
|
|
6
6
|
"directories": {
|
|
7
7
|
"doc": "docs",
|
|
8
8
|
"example": "example"
|