jsmind 0.6.5-preview → 0.7.0

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.
@@ -14,18 +14,15 @@
14
14
  width: 800px;
15
15
  height: 500px;
16
16
  border: solid 1px #ccc;
17
- /*background:#f4f4f4;*/
18
17
  background: #f4f4f4;
19
18
  }
20
19
  </style>
21
20
  </head>
21
+
22
22
  <body>
23
23
  <div id="jsmind_container"></div>
24
- <script type="text/javascript" src="//cdn.jsdelivr.net/npm/jsmind/es6/jsmind.js"></script>
25
- <script
26
- type="text/javascript"
27
- src="//cdn.jsdelivr.net/npm/jsmind/es6/jsmind.draggable-node.js"
28
- ></script>
24
+ <script src="//cdn.jsdelivr.net/npm/jsmind/es6/jsmind.js"></script>
25
+ <script src="//cdn.jsdelivr.net/npm/jsmind/es6/jsmind.draggable-node.js"></script>
29
26
  <script type="text/javascript">
30
27
  function load_jsmind() {
31
28
  var mind = {
@@ -14,7 +14,6 @@
14
14
  width: 800px;
15
15
  height: 500px;
16
16
  border: solid 1px #ccc;
17
- /*background:#f4f4f4;*/
18
17
  background: #f4f4f4;
19
18
  }
20
19
  </style>
@@ -22,11 +21,8 @@
22
21
 
23
22
  <body>
24
23
  <div id="jsmind_container"></div>
25
- <script type="text/javascript" src="//jsd.onmicrosoft.cn/npm/jsmind/es6/jsmind.js"></script>
26
- <script
27
- type="text/javascript"
28
- src="//jsd.onmicrosoft.cn/npm/jsmind/es6/jsmind.draggable-node.js"
29
- ></script>
24
+ <script src="//jsd.onmicrosoft.cn/npm/jsmind/es6/jsmind.js"></script>
25
+ <script src="//jsd.onmicrosoft.cn/npm/jsmind/es6/jsmind.draggable-node.js"></script>
30
26
  <script type="text/javascript">
31
27
  function load_jsmind() {
32
28
  var mind = {
@@ -0,0 +1,61 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>jsMind</title>
7
+ <link
8
+ type="text/css"
9
+ rel="stylesheet"
10
+ href="https://unpkg.com/jsmind@latest/style/jsmind.css"
11
+ />
12
+ <style type="text/css">
13
+ #jsmind_container {
14
+ width: 900px;
15
+ height: 600px;
16
+ border: solid 1px #ccc;
17
+ background: #f4f4f4;
18
+ }
19
+ </style>
20
+ </head>
21
+
22
+ <body>
23
+ <p>查看页面源文件了解具体写法</p>
24
+ <p>See the page source for details</p>
25
+ <div id="jsmind_container"></div>
26
+ </body>
27
+
28
+ <script src="https://requirejs.org/docs/release/2.3.6/minified/require.js"></script>
29
+ <script type="text/javascript">
30
+ require.config({
31
+ paths: {
32
+ // note: replace `latest` with a specific version on production
33
+ 'jsmind': 'https://unpkg.com/jsmind@latest/es6/jsmind',
34
+ 'jsmind/draggable_node':
35
+ 'https://unpkg.com/jsmind@latest/es6/jsmind.draggable-node',
36
+ },
37
+ });
38
+ require(['jsmind', 'jsmind/draggable_node'], function (jsMind, _) {
39
+ let mind = {
40
+ meta: {
41
+ name: 'jsMind example',
42
+ author: 'hizzgdev@163.com',
43
+ version: '0.7.0',
44
+ },
45
+ format: 'node_tree',
46
+ data: {
47
+ id: 'root',
48
+ topic: 'jsMind',
49
+ children: [],
50
+ },
51
+ };
52
+ let options = {
53
+ container: 'jsmind_container',
54
+ editable: true,
55
+ theme: 'primary',
56
+ };
57
+ let jm = new jsMind(options);
58
+ jm.show(mind);
59
+ });
60
+ </script>
61
+ </html>
package/js/README.md ADDED
@@ -0,0 +1,7 @@
1
+ ES6 版本现已发布,详情请查阅 [../es6/README.md](../es6/README.md) 。
2
+
3
+ 老版 jsmind 以及对应的插件已移至 `js-legacy` 目录下,其最终版本为 0.5.7 。我们将不再升级它,并会在未来的某个时间里删除它们,建议所有人使用最新版本以获得最新的功能及 bug 修复。
4
+
5
+ The ES6 version of jsMind has been launched. see details from [../es6/README-en.md](../es6/README-en.md).
6
+
7
+ Legacy jsmind.js and plugins have been moved to `/js-legacy`. we will no longer update them, and will remove them one day in the future. It's recommended that everyone use the latest version to follow continuous feature updates and bug fixes.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "jsmind",
3
- "version": "0.6.5-preview",
3
+ "version": "0.7.0",
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
5
  "main": "es6/jsmind.js",
6
6
  "exports": {
7
- ".": "es6/jsmind.js",
7
+ ".": "./es6/jsmind.js",
8
8
  "draggable-node": "./es6/jsmind.draggable-node.js",
9
9
  "screenshot": "./es6/jsmind.screenshot.js"
10
10
  },
File without changes
File without changes
File without changes