Commit 6074b46a authored by techird's avatar techird

缩放恢复后保持清晰状态

parent 49821b86
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="title" content="百度脑图"> <meta name="title" content="百度脑图(KityMinder)">
<meta name="keyword" content="图,kity,svg,minder,百度,fex,前端,在线"> <meta name="keyword" content="kityminder,脑图,思维导图,kity,svg,minder,百度,fex,前端,在线">
<meta name="description" content="百度脑图,便捷的脑图编辑工具。让您在线上直接创建、保存并分享你的思路。"> <meta name="description" content="百度脑图,便捷的脑图编辑工具。让您在线上直接创建、保存并分享你的思路。">
<script src="lib/jquery-2.1.0.min.js" charset="utf-8"></script> <script src="lib/jquery-2.1.0.min.js" charset="utf-8"></script>
......
...@@ -16,6 +16,10 @@ KityMinder.registerModule('Zoom', function() { ...@@ -16,6 +16,10 @@ KityMinder.registerModule('Zoom', function() {
finishValue: zoom / 100, finishValue: zoom / 100,
setter: function(target, value) { setter: function(target, value) {
viewport.zoom = value; viewport.zoom = value;
viewport.center = {
x: viewport.center.x | 0 + 0.5,
y: viewport.center.y | 0 + 0.5
};
target.setViewPort(viewport); target.setViewPort(viewport);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment