jsmind 0.5.0 → 0.5.2
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 +28 -11
- package/docs/en/2.options.md +9 -2
- package/docs/zh/2.options.md +5 -3
- package/es6/jsmind.js +1 -1
- package/es6/jsmind.js.map +1 -1
- package/js/jsmind.js +3 -3
- 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.5.
|
|
15
|
+
var __version__ = '0.5.2';
|
|
16
16
|
// author
|
|
17
17
|
var __author__ = 'hizzgdev@163.com';
|
|
18
18
|
|
|
@@ -2616,10 +2616,10 @@
|
|
|
2616
2616
|
var outer_h = this.e_panel.clientHeight;
|
|
2617
2617
|
if (this.size.w > outer_w) {
|
|
2618
2618
|
var _offset = this.get_view_offset();
|
|
2619
|
-
this.e_panel.scrollLeft = _offset.x - outer_w / 2;
|
|
2619
|
+
this.e_panel.scrollLeft = _offset.x * this.actualZoom - outer_w / 2;
|
|
2620
2620
|
}
|
|
2621
2621
|
if (this.size.h > outer_h) {
|
|
2622
|
-
this.e_panel.scrollTop = (this.size.h - outer_h) / 2;
|
|
2622
|
+
this.e_panel.scrollTop = (this.size.h * this.actualZoom - outer_h) / 2;
|
|
2623
2623
|
}
|
|
2624
2624
|
},
|
|
2625
2625
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsmind",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
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": {
|