jsmind 0.4.10 → 0.4.12
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 +1 -1
- package/docs/en/1.usage.md +47 -0
- package/docs/en/2.options.md +1 -1
- package/docs/zh/1.usage.md +48 -0
- package/docs/zh/2.options.md +1 -1
- package/es6/jsmind.js +1 -1
- package/es6/jsmind.js.map +1 -1
- package/js/jsmind.js +3 -4
- package/package.json +1 -1
package/js/jsmind.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// __name__ should be a const value, Never try to change it easily.
|
|
13
13
|
var __name__ = 'jsMind';
|
|
14
14
|
// library version
|
|
15
|
-
var __version__ = '0.4.
|
|
15
|
+
var __version__ = '0.4.12';
|
|
16
16
|
// author
|
|
17
17
|
var __author__ = 'hizzgdev@163.com';
|
|
18
18
|
|
|
@@ -1133,8 +1133,7 @@
|
|
|
1133
1133
|
// Avoid default page scrolling behavior.
|
|
1134
1134
|
event.preventDefault()
|
|
1135
1135
|
|
|
1136
|
-
|
|
1137
|
-
if (dir == "Up") {
|
|
1136
|
+
if (event.deltaY < 0) {
|
|
1138
1137
|
this.view.zoomIn()
|
|
1139
1138
|
} else {
|
|
1140
1139
|
this.view.zoomOut()
|
|
@@ -2604,7 +2603,7 @@
|
|
|
2604
2603
|
}
|
|
2605
2604
|
this.actualZoom = zoom;
|
|
2606
2605
|
for (var i = 0; i < this.e_panel.children.length; i++) {
|
|
2607
|
-
this.e_panel.children[i].style.
|
|
2606
|
+
this.e_panel.children[i].style.zoom = zoom;
|
|
2608
2607
|
};
|
|
2609
2608
|
this.show(true);
|
|
2610
2609
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsmind",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
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": "js/jsmind.js",
|
|
6
6
|
"directories": {
|