jsmind 0.6.5-preview → 0.6.5

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.6.5',
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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "jsmind",
3
- "version": "0.6.5-preview",
3
+ "version": "0.6.5",
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
  },