jsmind 0.4.4 → 0.4.8

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2015, ZHANG ZHIGANG <hizzgdev@163.com>
1
+ Copyright (c) 2014-2021, ZHANG ZHIGANG <hizzgdev@163.com>
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -11,7 +11,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
11
11
 
12
12
 
13
13
 
14
- 版权所有 (c) 2014-2015, 张志刚 <hizzgdev@163.com>
14
+ 版权所有 (c) 2014-2021, 张志刚 <hizzgdev@163.com>
15
15
  保留一切权利。
16
16
 
17
17
  在满足下列条件的前提下,授予使用者使用及再发布本软件的源代码或二进制形式的权利,无论是否修改皆然:
package/README.md CHANGED
@@ -14,6 +14,7 @@ Links:
14
14
  * Demo :
15
15
  * <http://hizzgdev.github.io/jsmind/example/1_basic.html>
16
16
  * <http://hizzgdev.github.io/jsmind/example/2_features.html>
17
+ * <http://hizzgdev.github.io/jsmind/example/3_mathjax.html>
17
18
  * Documents :
18
19
  * [简体中文][1]
19
20
  * [English(draft)][2]
@@ -3,7 +3,7 @@
3
3
  1. **Usage**
4
4
  2. [Options](2.options.md)
5
5
  3. [Operation](3.operation.md)
6
-
6
+ 4. [Contribution](4.contribution.md)
7
7
 
8
8
  1.1. Basic Framework
9
9
  ===
@@ -65,7 +65,6 @@ Three formats are supported by jsMind: `node-tree format`,`node-array format`,`f
65
65
  These are simple demo for the 3 data format:
66
66
 
67
67
  A. node-tree format
68
- ---
69
68
 
70
69
  ```javascript
71
70
  var mind = {
@@ -100,7 +99,6 @@ var mind = {
100
99
  ```
101
100
 
102
101
  B. node-array format
103
- ---
104
102
 
105
103
  ```javascript
106
104
  var mind = {
@@ -132,7 +130,6 @@ var mind = {
132
130
  ```
133
131
 
134
132
  C. freemind format
135
- ---
136
133
 
137
134
  ```javascript
138
135
  var mind = {
@@ -147,7 +144,7 @@ var mind = {
147
144
  ```
148
145
 
149
146
  1.3. Themes
150
- ---
147
+ ===
151
148
 
152
149
  15 themes were supported in jsmind, you can preview those themes by visiting [feature-demo](http://hizzgdev.github.io/jsmind/example/2_features.html).
153
150
 
@@ -179,8 +176,10 @@ jmnodes.theme-greensea jmexpander{}
179
176
  jmnodes.theme-greensea jmexpander:hover{}
180
177
  ```
181
178
 
182
-
183
- COPYRIGHT
179
+ copyright notice
184
180
  ===
185
- No reproduction, No derivatives.
181
+
182
+ Reproduction and deduction are prohibited.
183
+
184
+ The jsMind project is still being updated and the corresponding documentation is updated at the same time as the version is updated. In order to avoid confusion to the user, it is forbidden to reprint this document without written permission and to make changes of any kind to this document.
186
185
 
@@ -1,3 +1,210 @@
1
+ [Contents](index.md)
1
2
 
2
- **Thank you for helping us complete this document**
3
+ 1. [Usage](1.usage.md)
4
+ 2. **Options**
5
+ 3. [Operation](3.operation.md)
6
+ 4. [Contribution](4.contribution.md)
3
7
 
8
+
9
+ 2.1. Introduction
10
+ ===
11
+
12
+ The options object for jsMind was briefly mentioned in the example in the previous chapter:
13
+
14
+ ```javascript
15
+ var options = {
16
+ container:'jsmind_container', // [required] ID of the container
17
+ editable:true, // [Optional] Whether to enable editing
18
+ theme:'orange' // [optional] theme
19
+ };
20
+ var jm = new jsMind(options);
21
+ ````
22
+
23
+ But that's only a small part of it, and the full definition of the options object for jsMind is shown below:
24
+
25
+ ```javascript
26
+ options = {
27
+ container : '', // [required] ID of the container
28
+ editable : false, // Is editing enabled?
29
+ theme : null, // theme
30
+ mode :'full', // display mode
31
+ support_html : true, // Does it support HTML elements in the node?
32
+ view:{
33
+ engine: 'canvas', // engine for drawing lines between nodes in the mindmap
34
+ hmargin:100, // Minimum horizontal distance of the mindmap from the outer frame of the container
35
+ vmargin:50, // Minimum vertical distance of the mindmap from the outer frame of the container
36
+ line_width:2, // thickness of the mindmap line
37
+ line_color:'#555', // Thought mindmap line color
38
+ draggable: false, // Drag the mind map with your mouse, when it's larger that the container
39
+ hide_scrollbars_when_draggable: false // Hide container scrollbars, when mind map is larger than container and draggable option is true.
40
+ },
41
+ layout:{
42
+ hspace:30, // horizontal spacing between nodes
43
+ vspace:20, // vertical spacing between nodes
44
+ pspace:13 // Horizontal spacing between node and connection line (to place node expander)
45
+ },
46
+ shortcut:{
47
+ enable:true, // whether to enable shortcut
48
+ handles:{}, // Named shortcut key event processor
49
+ mapping:{ // shortcut key mapping
50
+ addchild : 45, // <Insert>
51
+ addbrother : 13, // <Enter>
52
+ editnode : 113, // <F2>
53
+ delnode : 46, // <Delete>
54
+ toggle : 32, // <Space>
55
+ left : 37, // <Left>
56
+ up : 38, // <Up>
57
+ right : 39, // <Right>
58
+ down : 40, // <Down>
59
+ }
60
+ },
61
+ };
62
+ ```
63
+
64
+ The above options are the default options for jsMind and you can add the appropriate options to override these default options.
65
+
66
+ Except the container, there are all optional.
67
+
68
+ These options are described in more detail below.
69
+
70
+ 2.2 Conventional Options
71
+ ===
72
+
73
+ **container** : (string) [required] ID of the container
74
+
75
+ > This parameter is not default when instantiating a jsMind. jsMind uses this parameter to find a page element and output a mindmap to that element. For easy control of the size and position of the mind map, use [block element][1] as a container for the mind map, such as `<div>`.
76
+
77
+ > You can give the element retouching, but generally limited to setting its size, position, border, etc.; if you want to change the font, font size, background color, foreground color, etc. of the mindmap, it is recommended to add custom themes by way of processing.
78
+
79
+ **editable** : (bool) Enable editing or not
80
+
81
+ > If this parameter is set to true, you can use the API to do the above operations, otherwise the API will not take effect. By default, the value of this parameter is false .
82
+
83
+ > Note that jsMind only provides an editing interface and a small amount of shortcut key support, not full editing functionality, and this parameter is only used to limit the use of these APIs.
84
+
85
+ **theme** : (string) subject
86
+
87
+ > Specify the theme name of jsMind. (look in jsMind.css)
88
+
89
+ **mode** : (string) display mode
90
+
91
+ > jsMind now supports two display modes:
92
+
93
+ > * full - child nodes are dynamically distributed on both sides of the root node [default]
94
+ > * side - child nodes are distributed only to the right of the root node
95
+
96
+ **support_html** : (bool) Does it support HTML elements in nodes?
97
+
98
+ > 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 .
99
+
100
+ > Note that in freemind, the style of the node is controlled using the HTML language, and it is recommended to set this parameter to true if you are using data in freemind format.
101
+
102
+ 2.3 Layout Options
103
+ ===
104
+
105
+ **view.engine** : (string) engine for drawing lines between nodes in a mindmap
106
+
107
+ > jsMind now supports two line drawing engines:
108
+
109
+ > * CANVAS - Draw the lines on the canvas [default]
110
+ > * SVG - Using SVG to draw lines, when there are a lot of nodes and a huge area in the mind map, using this mode can bring significant performance improvements
111
+
112
+ **view.hmargin** : (number) Minimum horizontal distance (in pixels) of the mindmap from the container frame
113
+ **view.vmargin** : (number) Minimum vertical distance (in pixels) of the mindmap from the outer container frame
114
+
115
+ > These two parameters determine how close the mindmap can be to the border of the container. These two parameters are similar to the margin(css) property of the object if you consider the thought map itself as an object. For aesthetic purposes, the default setting is 100 pixels in the horizontal direction and 50 pixels in the vertical direction.
116
+
117
+ **view.line_width** : (number) Thickness of the mindmap line (pixels)
118
+ **view.line_color** : (string) color of the mindmap line (color representation in HTML)
119
+
120
+ > These two parameters determine the style of the lines in the mindmap. By default, the lines are 2px in thickness and dark gray in color (#555).
121
+
122
+ **view.draggable** : (bool) Do you want whole mind map draggable inside container?
123
+
124
+ > The default value of this parameter is false, as it keep the default behavior with vertical and horizontal scrollbars on the container when mind map is bigger than the container.
125
+
126
+ **view.hide_scrollbars_when_draggable** : (bool) Do you want to hide container scrollbars?
127
+
128
+ > Rely on draggable option activation, as otherwise it wouldn't be possible to explore the whole mind map when it's bigger than the container.
129
+ > The default value of this parameter is false, as it keep the default behavior with vertical and horizontal scrollbars on the container when mind map is bigger than the container.
130
+ > Otherwise, if true, there is no more scrollbars, and instead you can drag the mind map with your mouse, while button is down. It should be noted that in this case, the user will not be able to explore the mind map by rolling the mouse wheel.
131
+
132
+ **layout.hspace** : horizontal distance (pixels) between (number) nodes
133
+ **layout.vspace** : vertical spacing (pixels) between (number) nodes
134
+
135
+ > These two parameters are equivalent to the margin(css) property of the node object, which defaults to 30 pixels in the horizontal direction and 20 pixels in the vertical direction.
136
+
137
+ **layout.pspace** : (number) size of node expander (pixels)
138
+
139
+ > If a node (other than the root node) has a subordinate node, the outside of this node shows the controller for the shrinking/expanding subordinate node, which is used to set the size (width and height) of this controller, the default value is 13 pixels.
140
+
141
+ 2.4. Shortcuts
142
+ ===
143
+
144
+ **shortcut.enable** : (bool) Whether to enable shortcut keys
145
+
146
+ > This parameter is used to control whether you can use keyboard shortcuts to edit (or otherwise manipulate) a mindmap in the jsMind interface, the default value is true, i.e. shortcuts are enabled.
147
+
148
+ **shortcut.handles** : (object{string : function}) Named shortcut event handler
149
+
150
+ > jsMind provides some common event handler for manipulating mindmaps (see next section), and this parameter provides the ability to define additional event handler.
151
+ > This parameter is a collection of string->function(jsmind,event), string specifies the name of the event handler, and function is the logic to be executed by the event handler, in the next section of shortcut.mapping configuration, the name of the processor will be bound to the specific keys for the purpose of shortcut operation. For example, the following code defines a processor.
152
+
153
+ ```javascript
154
+ handles : {
155
+ 'dosomething' : function(jm,e){
156
+ // do something...
157
+ },
158
+ 'dosomeotherthing' : function(jm,e){
159
+ // do some other things
160
+ }
161
+ ...
162
+ }
163
+ ```
164
+
165
+ **shortcut.mapping** : (object{string : number}) Shortcut mapping configuration
166
+
167
+ > This parameter is used to configure the correspondence between a specific key and the event handler, this code shows the correspondence by default, e.g. the code for the [Insert] key is 45 and can be used to add a child node, while 112 represents the [F1] key for dosomething.
168
+
169
+ ```javascript
170
+ mapping:{ // handle mapping.
171
+ addchild : 45, // <Insert>
172
+ addbrother : 13, // <Enter>
173
+ editnode : 113, // <F2>
174
+ delnode : 46, // <Delete>
175
+ toggle : 32, // <Space>
176
+ left : 37, // <Left>
177
+ up : 38, // <Up>
178
+ right : 39, // <Right>
179
+ down : 40, // <Down>
180
+
181
+ // Examples
182
+ dosomething: 112, // <F1>
183
+ }
184
+ ```
185
+
186
+ > In addition to the single-key scenario described above, jsMind has added support for combination keys, where the code of the combination shortcut is the code of the regular key plus the identification code of the function key.
187
+ > Four function keys are currently supported, and the corresponding identification codes are.
188
+
189
+ > * Meta : 8192 (jsMind.key.meta)
190
+ > * Ctrl : 4096 (jsMind.key.ctrl)
191
+ > * ALT : 2048 (jsMind.key.alt)
192
+ > * SHIFT : 1024 (jsMind.key.shift)
193
+
194
+ > The following are some examples.
195
+
196
+ ```javascript
197
+ mapping:{
198
+ addchild : jsMind.key.ctrl + 73, // <Ctrl> + <I>
199
+ delnode : jsMind.key.ctrl + jsMind.key.alt + 68, // <Ctrl> + <ALT> + <D>
200
+ }
201
+ ```
202
+
203
+ copyright notice
204
+ ===
205
+
206
+ Reproduction and deduction are prohibited.
207
+
208
+ The jsMind project is still being updated and the corresponding documentation is updated at the same time as the version is updated. In order to avoid confusion to the user, it is forbidden to reprint this document without written permission and to make changes of any kind to this document.
209
+
210
+ [1]:http://www.nowamagic.net/librarys/veda/detail/1190 "CSS Block Level Element, Inline Element Concept"
@@ -1,3 +1,138 @@
1
+ [Contents](index.md)
1
2
 
2
- **Thank you for helping us complete this document**
3
+ 1. [Usage](1.usage.md)
4
+ 2. [Options](2.options.md)
5
+ 3. **Operation**
6
+ 4. [Contribution](4.contribution.md)
3
7
 
8
+
9
+ jsMind object
10
+ ===
11
+
12
+ jsMind provides a set of APIs for manipulating the mindmap, all of which are based on the `jsMind` object processing, which can be obtained using the following code.
13
+
14
+ ```javascript
15
+ /*
16
+ Method 1.
17
+ jsMind objects are available when you create a mindmap
18
+ */
19
+ var jm = new jsMind(options);
20
+
21
+ /*
22
+ Method 2.
23
+ This jsMind object can be obtained directly if a mindmap already exists on the current page
24
+ When multiple jsMind are created on a page, this method gets the last object created
25
+ */
26
+ var jm = jsMind.current;
27
+ ```
28
+
29
+ 3.1 Displaying a mindmap
30
+ ===
31
+
32
+ Use the `jm.show(mind)` method to display a mindmap, see [1.1. Basic framework](1.usage.md) for specific usage.
33
+
34
+ 3.2. Finding Nodes
35
+ ===
36
+
37
+ **Get root** : Use `jm.get_root()` to get the root of the current mindmap.
38
+
39
+ **Find node by id** : Use the `jm.get_node(nodeid)` method to find the node specified in the current mind map by id, and return `null` if it is not found.
40
+
41
+ **Get selected node** : Use `jm.get_selected_node()` to get the currently selected node and return `null` if there is no selected node.
42
+
43
+ **Find adjacent nodes** : Use `jm.find_node_before(node|nodeid)` and `find_node_after(node|nodeid)` to get the previous or next node of the specified node, and return `null` if there is no previous or next one.
44
+
45
+ **Fetch parent** : Use `node.parent` to get the parent node, the parent of the root node is `null`.
46
+
47
+ **Fetching a collection of child nodes** : A collection of child nodes can be obtained using `node.children`.
48
+
49
+ Tips
50
+ ---
51
+
52
+ A mindmap diagram is composed of multiple nodes and connections between nodes, a mindmap diagram has a root node, the root node can have multiple child nodes on the periphery, and the child node can have multiple child nodes. Each node contains more than one of the following attributes.
53
+
54
+ ```javascript
55
+ node {
56
+ id, // : string node id
57
+ index, // : integer node number
58
+ topic, // : string node topic
59
+ isroot, // : boolean indicates whether this node is root or not
60
+ parent, // : node The parent of this node, the parent program of the root node is null, but please do not judge whether this node is the root node based on this property.
61
+ direction, // : enum(left,center,right) The distribution position of the node
62
+ children, // : array of node The combination of children of the node
63
+ expanded, // : boolean Is the next level of the node expanded or not
64
+ data, // : object{string,object} Other additional data for this node
65
+ }
66
+ ```
67
+
68
+ 3.3 Operation on Nodes
69
+ ===
70
+
71
+ **Select node** : Use the `jm.select_node(node) method to select the specified node.
72
+
73
+ **Collapse child nodes** : Use the `jm.collapse_node(node|nodeid)` method to collapse the child nodes of the node.
74
+
75
+ **Expand Child Node** : Use the `jm.expand_node(node|nodeid)` method to expand the child node of this node.
76
+
77
+ **Collapse or expand child nodes** : Use the `jm.toggle_node(node|nodeid)` method to automatically expand or collapse child nodes.
78
+
79
+ **Expand all child nodes** : All child nodes can be expanded using the `jm.expand_all()` method.
80
+
81
+ **Expand to level** : Use the `jm.expand_to_depth(depth)` method to expand to a specified level.
82
+
83
+ **Move Node** : Use the `jm.move_node(node|nodeid,beforeid)` method to move the node to beforeid node, and set beforeid to `_first_` or `_last` to move the node to first or last of the adjacent node.
84
+
85
+ **Enable editing** : Use the `jm.enable_edit()` method to enable editing of the current mindmap.
86
+
87
+ **Disable_edit** : Use the `jm.disable_edit()` method to disable editing of the current mindmap.
88
+
89
+ **Edit Node** : The node can be adjusted to edit using the `jm.begin_edit(node|nodeid)` method.
90
+
91
+ **Stop editing** : The node can be adjusted to read-only using the `jm.end_edit()` method.
92
+
93
+
94
+ 3.4. Editing Nodes
95
+ ===
96
+
97
+ **Add Node** : A node can be added using the `jm.add_node(parent_node, nodeid, topic, data)` method.
98
+
99
+ **Insert node before specified location** : The `jm.insert_node_before(node_before, nodeid, topic, data)` method can be used to insert a node before a node_before node.
100
+
101
+ **Insert node after specified location** : Node can be inserted after node_after using `jm.insert_node_after(node_after, nodeid, topic, data)` method.
102
+
103
+ **Delete Node** : Use the `jm.remove_node(node|nodeid)` method to delete a specified node and all its children.
104
+
105
+ **Update node** : Use the `jm.update_node(nodeid, topic)` method to update the topic of the specified node.
106
+
107
+
108
+ 3.5 Setting Style
109
+ ===
110
+
111
+ **Set the theme** : Use the `jm.set_theme(theme)` method to set the theme of the mind map.
112
+
113
+ **Set background / foreground color** : Use the `jm.set_node_color(nodeid, bgcolor, fgcolor)` method to set the background and foreground color of the specified node.
114
+
115
+ **Set Font** : Use the `jm.set_node_font_style(nodeid, size, weight, style)` method to set the font of the specified node.
116
+
117
+ **Set background image** : Use the `jm.set_node_background_image(nodeid, image, width, height)` method to set the background image of the specified node.
118
+
119
+ 3.6 Access to Data
120
+ ===
121
+
122
+ **Get metadata** : Use the `jm.get_meta()` method to get metadata for the current mindmap.
123
+
124
+ **Get Data** : The `jm.get_data(data_format)` method is used to get the data text in the specified format of the current mindmap.
125
+
126
+ 3.7 Other Operations
127
+ ===
128
+
129
+ **Clear selection of nodes** : Use the `jm.select_clear()` method to clear the current selected state.
130
+
131
+ **Determine if the node is visible** : Use the `jm.is_node_visible(node)` method to determine if this node is visible.
132
+
133
+ copyright notice
134
+ ===
135
+
136
+ Reproduction and deduction are prohibited.
137
+
138
+ The jsMind project is still being updated and the corresponding documentation is updated at the same time as the version is updated. In order to avoid confusion to the user, it is forbidden to reprint this document without written permission and to make changes of any kind to this document.
@@ -0,0 +1,34 @@
1
+ [Contents](index.md)
2
+
3
+ 1. [Usage](1.usage.md)
4
+ 2. [Options](2.options.md)
5
+ 3. [Operation](3.operation.md)
6
+ 4. **Contribution**
7
+
8
+ 4.1. contribution code
9
+ ===
10
+
11
+ jsMind may not meet the needs of your project in some ways, and you are very welcome to extend jsMind and give feedback by contributing code.
12
+
13
+ The most convenient way to contribute code is to submit a pull-request to the jsMind project, which can be done in the github help documentation.
14
+
15
+ * :: [Creating a pull request from a fork](https://help.github.com/en/articles/creating-a-pull-request-from-a-fork)
16
+ * :: [Working with forks] (https://help.github.com/en/articles/working-with-forks)
17
+
18
+ Before submitting a pull-request, be sure to test it well and make a detailed note when submitting the pull-request, including feature descriptions, code change notes.
19
+
20
+ 4.2 Contribute ideas or needs
21
+ ===
22
+
23
+ Or you can bring up a problem or need you've encountered via an issue for discussion, and hopefully a friend who has the ability and energy to join in and solve the problem together.
24
+
25
+ For common requirements, it is recommended to implement post-implementation feedback to the open source project, for non-common requirements, you can fork out a separate warehouse for custom development.
26
+
27
+ It is important to note that open source does not mean free. jsMind itself doesn't restrict commercial use, but it's only right to be paid for custom development.
28
+
29
+ copyright notice
30
+ ===
31
+
32
+ Reproduction and deduction are prohibited.
33
+
34
+ The jsMind project is still being updated and the corresponding documentation is updated at the same time as the version is updated. In order to avoid confusion to the user, it is forbidden to reprint this document without written permission and to make changes of any kind to this document.
package/docs/en/index.md CHANGED
@@ -1,18 +1,28 @@
1
- Contents
1
+ Contents.
2
2
  ======
3
3
 
4
- **Sorry, documents in English have not been completed.**
5
-
6
- **Thank you for helping us complete (or revise) it.**
7
-
8
4
  * [1. Usage](1.usage.md)
9
- * 1.1. Basic Framework
10
- * 1.2. Data Format
11
- * 1.3. Themes
5
+ * 1.1 Basic Framework
6
+ * 1.2 Data Format
7
+ * 1.3 Themes
12
8
  * [2. Options](2.options.md)
13
- * [3. Operation](3.operation.md)
9
+ * 2.1 Introduction
10
+ * 2.2 Conventional Options
11
+ * 2.3 Layout Options
12
+ * 2.4 Shortcuts
13
+ * [3. API / Operation](3.operation.md)
14
+ * 3.1 Displaying a Mindmap
15
+ * 3.2 Finding Nodes
16
+ * 3.3 Operation on Nodes
17
+ * 3.4 Editing Nodes
18
+ * 3.5 Setting Style
19
+ * 3.6 Access to Data
20
+ * 3.7 Other Operations
21
+ * [4. Contribution](4.contribution.md)
22
+
23
+ copyright notice
24
+ ======
14
25
 
15
- COPYRIGHT
16
- ===
17
- No reproduction, No derivatives.
26
+ Reproduction and deduction are prohibited.
18
27
 
28
+ The jsMind project is still being updated and the corresponding documentation is updated at the same time as the version is updated. In order to avoid confusion to the user, it is forbidden to reprint this document without written permission and to make changes of any kind to this document.
@@ -3,7 +3,7 @@
3
3
  1. **基本用法**
4
4
  2. [选项](2.options.md)
5
5
  3. [界面操控](3.operation.md)
6
-
6
+ 4. [参与贡献](4.contribution.md)
7
7
 
8
8
  1.1. 基本框架
9
9
  ===
@@ -162,6 +162,7 @@ var mind = {
162
162
 
163
163
  注
164
164
  ---
165
+
165
166
  除 freemind 格式外,其余两种格式的基本数据结构如下:
166
167
 
167
168
  ```javascript
@@ -180,21 +181,21 @@ var mind = {
180
181
 
181
182
  jsMind 默认提供了 15 种主题,你可以访问[功能示例](http://hizzgdev.github.io/jsmind/example/2_features.html)页面浏览这些主题。
182
183
 
183
- + primary
184
- + warning
185
- + danger
186
- + success
187
- + info
188
- + greensea
189
- + nephrite
190
- + belizehole
191
- + wisteria
192
- + asphalt
193
- + orange
194
- + pumpkin
195
- + pomegranate
196
- + clouds
197
- + asbestos
184
+ * primary
185
+ * warning
186
+ * danger
187
+ * success
188
+ * info
189
+ * greensea
190
+ * nephrite
191
+ * belizehole
192
+ * wisteria
193
+ * asphalt
194
+ * orange
195
+ * pumpkin
196
+ * pomegranate
197
+ * clouds
198
+ * asbestos
198
199
 
199
200
  当然,你也可以添加自己的主题。只需在 jsmind.css 中按照以下格式添加样式定义即可:
200
201
 
@@ -208,9 +209,9 @@ jmnodes.theme-greensea jmexpander{} /* 展
208
209
  jmnodes.theme-greensea jmexpander:hover{} /* 鼠标悬停展开/关闭节点的控制点样式 */
209
210
  ```
210
211
 
211
-
212
212
  版权声明
213
213
  ===
214
+
214
215
  禁止转载、禁止演绎。
215
216
 
216
217
  jsMind 项目仍在不断升级变化,版本更新时会同时更新对应的文档。为避免给使用者带来困惑,在没有得到书面许可前,禁止转载本文档,同时禁止对本文档进行任何形式的更改。